j)for(;z<=N;)Xe(C[z],K,E,!0),z++;else{const L=z,X=z,Ee=new Map;for(z=X;z<=j;z++){const V=R[z]=U?Un(R[z]):rn(R[z]);V.key!=null&&Ee.set(V.key,z)}let Se,st=0;const ct=j-X+1;let Pt=!1,mt=0;const wi=new Array(ct);for(z=0;z=ct){Xe(V,K,E,!0);continue}let xe;if(V.key!=null)xe=Ee.get(V.key);else for(Se=X;Se<=j;Se++)if(wi[Se-X]===0&&Io(V,R[Se])){xe=Se;break}xe===void 0?Xe(V,K,E,!0):(wi[xe-X]=z+1,xe>=mt?mt=xe:Pt=!0,v(V,R[xe],F,null,K,E,T,M,U),st++)}const H=Pt?Lg(wi):Zr;for(Se=H.length-1,z=ct-1;z>=0;z--){const V=X+z,xe=R[V],He=V+1 {const{el:E,type:T,transition:M,children:U,shapeFlag:z}=C;if(z&6){Ge(C.component.subTree,R,F,G);return}if(z&128){C.suspense.move(R,F,G);return}if(z&64){T.move(C,R,F,he);return}if(T===$t){n(E,R,F);for(let N=0;NM.enter(E),K);else{const{leave:N,delayLeave:j,afterLeave:L}=M,X=()=>n(E,R,F),Ee=()=>{N(E,()=>{X(),L&&L()})};j?j(E,X,Ee):Ee()}else n(E,R,F)},Xe=(C,R,F,G=!1,K=!1)=>{const{type:E,props:T,ref:M,children:U,dynamicChildren:z,shapeFlag:Q,patchFlag:N,dirs:j,cacheIndex:L}=C;if(N===-2&&(K=!1),M!=null&&za(M,null,F,C,!0),L!=null&&(R.renderCache[L]=void 0),Q&256){R.ctx.deactivate(C);return}const X=Q&1&&j,Ee=!io(C);let Se;if(Ee&&(Se=T&&T.onVnodeBeforeUnmount)&&zi(Se,R,C),Q&6)q(C.component,F,G);else{if(Q&128){C.suspense.unmount(F,G);return}X&&ur(C,null,R,"beforeUnmount"),Q&64?C.type.remove(C,R,F,he,G):z&&!z.hasOnce&&(E!==$t||N>0&&N&64)?re(z,R,F,!1,!0):(E===$t&&N&384||!K&&Q&16)&&re(U,R,F),G&&It(C)}(Ee&&(Se=T&&T.onVnodeUnmounted)||X)&&bi(()=>{Se&&zi(Se,R,C),X&&ur(C,null,R,"unmounted")},F)},It=C=>{const{type:R,el:F,anchor:G,transition:K}=C;if(R===$t){ht(F,G);return}if(R===js){x(C);return}const E=()=>{r(F),K&&!K.persisted&&K.afterLeave&&K.afterLeave()};if(C.shapeFlag&1&&K&&!K.persisted){const{leave:T,delayLeave:M}=K,U=()=>T(F,E);M?M(C.el,E,U):U()}else E()},ht=(C,R)=>{let F;for(;C!==R;)F=h(C),r(C),C=F;r(R)},q=(C,R,F)=>{const{bum:G,scope:K,job:E,subTree:T,um:M,m:U,a:z}=C;Dd(U),Dd(z),G&&Ns(G),K.stop(),E&&(E.flags|=8,Xe(T,C,R,F)),M&&bi(M,R),bi(()=>{C.isUnmounted=!0},R),R&&R.pendingBranch&&!R.isUnmounted&&C.asyncDep&&!C.asyncResolved&&C.suspenseId===R.pendingId&&(R.deps--,R.deps===0&&R.resolve())},re=(C,R,F,G=!1,K=!1,E=0)=>{for(let T=E;T {if(C.shapeFlag&6)return Ne(C.component.subTree);if(C.shapeFlag&128)return C.suspense.next();const R=h(C.anchor||C.el),F=R&&R[tg];return F?h(F):R};let Ve=!1;const Pe=(C,R,F)=>{C==null?R._vnode&&Xe(R._vnode,null,null,!0):v(R._vnode||null,C,R,null,null,null,F),R._vnode=C,Ve||(Ve=!0,Sd(),Yf(),Ve=!1)},he={p:v,um:Xe,m:Ge,r:It,mt:Re,mc:W,pc:ne,pbc:ee,n:Ne,o:e};let Me,Ae;return{render:Pe,hydrate:Me,createApp:Eg(Pe,Me)}}function Us({type:e,props:i},t){return t==="svg"&&e==="foreignObject"||t==="mathml"&&e==="annotation-xml"&&i&&i.encoding&&i.encoding.includes("html")?void 0:t}function cr({effect:e,job:i},t){t?(e.flags|=32,i.flags|=4):(e.flags&=-33,i.flags&=-5)}function $g(e,i){return(!e||e&&!e.pendingBranch)&&i&&!i.persisted}function h_(e,i,t=!1){const n=e.children,r=i.children;if(we(n)&&we(r))for(let o=0;o >1,e[t[s]]0&&(i[n]=t[o-1]),t[o]=n)}}for(o=t.length,a=t[o-1];o-- >0;)t[o]=a,a=i[a];return t}function f_(e){const i=e.subTree.component;if(i)return i.asyncDep&&!i.asyncResolved?i:f_(i)}function Dd(e){if(e)for(let i=0;i ei(Ng);function Lt(e,i,t){return __(e,i,t)}function __(e,i,t=at){const{immediate:n,deep:r,flush:o,once:a}=t,s=Nt({},t),l=i&&n||!i&&o!=="post";let u;if(Jo){if(o==="sync"){const b=Mg();u=b.__watcherHandles||(b.__watcherHandles=[])}else if(!l){const b=()=>{};return b.stop=sn,b.resume=sn,b.pause=sn,b}}const c=zt;s.call=(b,y,v)=>un(b,c,y,v);let d=!1;o==="post"?s.scheduler=b=>{bi(b,c&&c.suspense)}:o!=="sync"&&(d=!0,s.scheduler=(b,y)=>{y?b():wc(b)}),s.augmentJob=b=>{i&&(b.flags|=4),d&&(b.flags|=2,c&&(b.id=c.uid,b.i=c))};const h=Xb(e,i,s);return Jo&&(u?u.push(h):l&&h()),h}function Pg(e,i,t){const n=this.proxy,r=wt(e)?e.includes(".")?m_(n,e):()=>n[e]:e.bind(n,n);let o;Te(i)?o=i:(o=i.handler,t=i);const a=la(this),s=__(r,o.bind(n),t);return a(),s}function m_(e,i){const t=i.split(".");return()=>{let n=e;for(let r=0;r i==="modelValue"||i==="model-value"?e.modelModifiers:e[`${i}Modifiers`]||e[`${Kn(i)}Modifiers`]||e[`${Mr(i)}Modifiers`];function Vg(e,i,...t){if(e.isUnmounted)return;const n=e.vnode.props||at;let r=t;const o=i.startsWith("update:"),a=o&&Bg(n,i.slice(7));a&&(a.trim&&(r=t.map(c=>wt(c)?c.trim():c)),a.number&&(r=t.map(bb)));let s,l=n[s=Ls(i)]||n[s=Ls(Kn(i))];!l&&o&&(l=n[s=Ls(Mr(i))]),l&&un(l,e,6,r);const u=n[s+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,un(u,e,6,r)}}function b_(e,i,t=!1){const n=i.emitsCache,r=n.get(e);if(r!==void 0)return r;const o=e.emits;let a={},s=!1;if(!Te(e)){const l=u=>{const c=b_(u,i,!0);c&&(s=!0,Nt(a,c))};!t&&i.mixins.length&&i.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!s?(dt(e)&&n.set(e,null),null):(we(o)?o.forEach(l=>a[l]=null):Nt(a,o),dt(e)&&n.set(e,a),a)}function cs(e,i){return!e||!ts(i)?!1:(i=i.slice(2).replace(/Once$/,""),Ye(e,i[0].toLowerCase()+i.slice(1))||Ye(e,Mr(i))||Ye(e,i))}function Fs(e){const{type:i,vnode:t,proxy:n,withProxy:r,propsOptions:[o],slots:a,attrs:s,emit:l,render:u,renderCache:c,props:d,data:h,setupState:b,ctx:y,inheritAttrs:v}=e,p=qa(e);let f,_;try{if(t.shapeFlag&4){const x=r||n,D=x;f=rn(u.call(D,x,c,d,b,h,y)),_=s}else{const x=i;f=rn(x.length>1?x(d,{attrs:s,slots:a,emit:l}):x(d,null)),_=i.props?s:Hg(s)}}catch(x){Po.length=0,ss(x,e,1),f=qe(Yn)}let w=f;if(_&&v!==!1){const x=Object.keys(_),{shapeFlag:D}=w;x.length&&D&7&&(o&&x.some(pc)&&(_=Ug(_,o)),w=oo(w,_,!1,!0))}return t.dirs&&(w=oo(w,null,!1,!0),w.dirs=w.dirs?w.dirs.concat(t.dirs):t.dirs),t.transition&&Ec(w,t.transition),f=w,qa(p),f}const Hg=e=>{let i;for(const t in e)(t==="class"||t==="style"||ts(t))&&((i||(i={}))[t]=e[t]);return i},Ug=(e,i)=>{const t={};for(const n in e)(!pc(n)||!(n.slice(9)in i))&&(t[n]=e[n]);return t};function Fg(e,i,t){const{props:n,children:r,component:o}=e,{props:a,children:s,patchFlag:l}=i,u=o.emitsOptions;if(i.dirs||i.transition)return!0;if(t&&l>=0){if(l&1024)return!0;if(l&16)return n?Rd(n,a,u):!!a;if(l&8){const c=i.dynamicProps;for(let d=0;d e.__isSuspense;function Wg(e,i){i&&i.pendingBranch?we(e)?i.effects.push(...e):i.effects.push(e):eg(e)}const $t=Symbol.for("v-fgt"),sa=Symbol.for("v-txt"),Yn=Symbol.for("v-cmt"),js=Symbol.for("v-stc"),Po=[];let vi=null;function De(e=!1){Po.push(vi=e?null:[])}function Gg(){Po.pop(),vi=Po[Po.length-1]||null}let zo=1;function $d(e,i=!1){zo+=e,e<0&&vi&&i&&(vi.hasOnce=!0)}function v_(e){return e.dynamicChildren=zo>0?vi||Zr:null,Gg(),zo>0&&vi&&vi.push(e),e}function tt(e,i,t,n,r,o){return v_(qt(e,i,t,n,r,o,!0))}function yi(e,i,t,n,r){return v_(qe(e,i,t,n,r,!0))}function Ko(e){return e?e.__v_isVNode===!0:!1}function Io(e,i){return e.type===i.type&&e.key===i.key}const y_=({key:e})=>e??null,Na=({ref:e,ref_key:i,ref_for:t})=>(typeof e=="number"&&(e=""+e),e!=null?wt(e)||Ut(e)||Te(e)?{i:Qt,r:e,k:i,f:!!t}:e:null);function qt(e,i=null,t=null,n=0,r=null,o=e===$t?0:1,a=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:i,key:i&&y_(i),ref:i&&Na(i),scopeId:Xf,slotScopeIds:null,children:t,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:n,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Qt};return s?(Cc(l,t),o&128&&e.normalize(l)):t&&(l.shapeFlag|=wt(t)?8:16),zo>0&&!a&&vi&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&vi.push(l),l}const qe=qg;function qg(e,i=null,t=null,n=0,r=null,o=!1){if((!e||e===fg)&&(e=Yn),Ko(e)){const s=oo(e,i,!0);return t&&Cc(s,t),zo>0&&!o&&vi&&(s.shapeFlag&6?vi[vi.indexOf(e)]=s:vi.push(s)),s.patchFlag=-2,s}if(n1(e)&&(e=e.__vccOpts),i){i=zg(i);let{class:s,style:l}=i;s&&!wt(s)&&(i.class=os(s)),dt(l)&&(kc(l)&&!we(l)&&(l=Nt({},l)),i.style=_c(l))}const a=wt(e)?1:g_(e)?128:ig(e)?64:dt(e)?4:Te(e)?2:0;return qt(e,i,t,n,r,a,o,!0)}function zg(e){return e?kc(e)||a_(e)?Nt({},e):e:null}function oo(e,i,t=!1,n=!1){const{props:r,ref:o,patchFlag:a,children:s,transition:l}=e,u=i?Yg(r||{},i):r,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&y_(u),ref:i&&i.ref?t&&o?we(o)?o.concat(Na(i)):[o,Na(i)]:Na(i):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:i&&e.type!==$t?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&oo(e.ssContent),ssFallback:e.ssFallback&&oo(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&n&&Ec(c,l.clone(c)),c}function Kg(e=" ",i=0){return qe(sa,null,e,i)}function An(e="",i=!1){return i?(De(),yi(Yn,null,e)):qe(Yn,null,e)}function rn(e){return e==null||typeof e=="boolean"?qe(Yn):we(e)?qe($t,null,e.slice()):Ko(e)?Un(e):qe(sa,null,String(e))}function Un(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:oo(e)}function Cc(e,i){let t=0;const{shapeFlag:n}=e;if(i==null)i=null;else if(we(i))t=16;else if(typeof i=="object")if(n&65){const r=i.default;r&&(r._c&&(r._d=!1),Cc(e,r()),r._c&&(r._d=!0));return}else{t=32;const r=i._;!r&&!a_(i)?i._ctx=Qt:r===3&&Qt&&(Qt.slots._===1?i._=1:(i._=2,e.patchFlag|=1024))}else Te(i)?(i={default:i,_ctx:Qt},t=32):(i=String(i),n&64?(t=16,i=[Kg(i)]):t=8);e.children=i,e.shapeFlag|=t}function Yg(...e){const i={};for(let t=0;t zt||Qt;let Ya,Hu;{const e=rs(),i=(t,n)=>{let r;return(r=e[t])||(r=e[t]=[]),r.push(n),o=>{r.length>1?r.forEach(a=>a(o)):r[0](o)}};Ya=i("__VUE_INSTANCE_SETTERS__",t=>zt=t),Hu=i("__VUE_SSR_SETTERS__",t=>Jo=t)}const la=e=>{const i=zt;return Ya(e),e.scope.on(),()=>{e.scope.off(),Ya(i)}},Ld=()=>{zt&&zt.scope.off(),Ya(null)};function x_(e){return e.vnode.shapeFlag&4}let Jo=!1;function Qg(e,i=!1,t=!1){i&&Hu(i);const{props:n,children:r}=e.vnode,o=x_(e);Sg(e,n,o,i),Ag(e,r,t);const a=o?e1(e,i):void 0;return i&&Hu(!1),a}function e1(e,i){const t=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,bg);const{setup:n}=t;if(n){Jn();const r=e.setupContext=n.length>1?i1(e):null,o=la(e),a=aa(n,e,0,[e.props,r]),s=vf(a);if(Xn(),o(),(s||e.sp)&&!io(e)&&Zf(e),s){if(a.then(Ld,Ld),i)return a.then(l=>{Nd(e,l,i)}).catch(l=>{ss(l,e,0)});e.asyncDep=a}else Nd(e,a,i)}else k_(e,i)}function Nd(e,i,t){Te(i)?e.type.__ssrInlineRender?e.ssrRender=i:e.render=i:dt(i)&&(e.setupState=Gf(i)),k_(e,t)}let Md;function k_(e,i,t){const n=e.type;if(!e.render){if(!i&&Md&&!n.render){const r=n.template||Ic(e).template;if(r){const{isCustomElement:o,compilerOptions:a}=e.appContext.config,{delimiters:s,compilerOptions:l}=n,u=Nt(Nt({isCustomElement:o,delimiters:s},a),l);n.render=Md(r,u)}}e.render=n.render||sn}{const r=la(e);Jn();try{gg(e)}finally{Xn(),r()}}}const t1={get(e,i){return Wt(e,"get",""),e[i]}};function i1(e){const i=t=>{e.exposed=t||{}};return{attrs:new Proxy(e.attrs,t1),slots:e.slots,emit:e.emit,expose:i}}function Ac(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Gf(Gb(e.exposed)),{get(i,t){if(t in i)return i[t];if(t in Mo)return Mo[t](e)},has(i,t){return t in i||t in Mo}})):e.proxy}function n1(e){return Te(e)&&"__vccOpts"in e}const Ue=(e,i)=>Yb(e,i,Jo);function Cr(e,i,t){const n=arguments.length;return n===2?dt(i)&&!we(i)?Ko(i)?qe(e,null,[i]):qe(e,i):qe(e,null,i):(n>3?t=Array.prototype.slice.call(arguments,2):n===3&&Ko(t)&&(t=[t]),qe(e,i,t))}const r1="3.5.13";/** * @vue/runtime-dom v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/let El;const _c=typeof window<"u"&&window.trustedTypes;if(_c)try{El=_c.createPolicy("vue",{createHTML:e=>e})}catch{}const Yp=El?e=>El.createHTML(e):e=>e,wg="http://www.w3.org/2000/svg",kg="http://www.w3.org/1998/Math/MathML",Vn=typeof document<"u"?document:null,mc=Vn&&Vn.createElement("template"),Sg={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const i=t==="svg"?Vn.createElementNS(wg,e):t==="mathml"?Vn.createElementNS(kg,e):n?Vn.createElement(e,{is:n}):Vn.createElement(e);return e==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:e=>Vn.createTextNode(e),createComment:e=>Vn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Vn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,i,o){const a=n?n.previousSibling:t.lastChild;if(i&&(i===o||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===o||!(i=i.nextSibling)););else{mc.innerHTML=Yp(r==="svg"?``:r==="mathml"?``:e);const s=mc.content;if(r==="svg"||r==="mathml"){const l=s.firstChild;for(;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}t.insertBefore(s,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Tg=Symbol("_vtc");function Ag(e,t,n){const r=e[Tg];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const gc=Symbol("_vod"),Cg=Symbol("_vsh"),Ig=Symbol(""),Og=/(^|;)\s*display\s*:/;function Rg(e,t,n){const r=e.style,i=pt(n);let o=!1;if(n&&!i){if(t)if(pt(t))for(const a of t.split(";")){const s=a.slice(0,a.indexOf(":")).trim();n[s]==null&&jo(r,s,"")}else for(const a in t)n[a]==null&&jo(r,a,"");for(const a in n)a==="display"&&(o=!0),jo(r,a,n[a])}else if(i){if(t!==n){const a=r[Ig];a&&(n+=";"+a),r.cssText=n,o=Og.test(n)}}else t&&e.removeAttribute("style");gc in e&&(e[gc]=o?r.display:"",e[Cg]&&(r.display="none"))}const bc=/\s*!important$/;function jo(e,t,n){if(_e(n))n.forEach(r=>jo(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=Dg(e,t);bc.test(n)?e.setProperty(Zr(r),n.replace(bc,""),"important"):e[r]=n}}const yc=["Webkit","Moz","ms"],Ga={};function Dg(e,t){const n=Ga[t];if(n)return n;let r=fr(t);if(r!=="filter"&&r in e)return Ga[t]=r;r=zf(r);for(let i=0;i Ka||(Mg.then(()=>Ka=0),Ka=Date.now());function Fg(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Pn(Ug(r,n.value),t,5,[r])};return n.value=e,n.attached=Bg(),n}function Ug(e,t){if(_e(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>i=>!i._stopped&&r&&r(i))}else return t}const Sc=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Vg=(e,t,n,r,i,o)=>{const a=i==="svg";t==="class"?Ag(e,r,a):t==="style"?Rg(e,n,r):sa(t)?ql(t)||Ng(e,t,n,r,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Hg(e,t,r,a))?(Ec(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&xc(e,t,r,a,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!pt(r))?Ec(e,fr(t),r,o,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),xc(e,t,r,a))};function Hg(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&Sc(t)&&ve(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return Sc(t)&&pt(n)?!1:t in e}const jg=kt({patchProp:Vg},Sg);let Tc;function Xp(){return Tc||(Tc=Ym(jg))}const zi=(...e)=>{Xp().render(...e)},qg=(...e)=>{const t=Xp().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=Gg(r);if(!i)return;const o=t._component;!ve(o)&&!o.render&&!o.template&&(o.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const a=n(i,!1,Wg(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),a},t};function Wg(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Gg(e){return pt(e)?document.querySelector(e):e}const Kg=["title"],zg={fill:"none",width:"18",height:"18",viewBox:"0 0 16 16","aria-hidden":"true"},Yg=["d","fill"],Xg="M8 16C12.4183 16 16 12.4183 16 8C16 3.58172 12.4183 0 8 0C3.58172 0 0 3.58172 0 8C0 12.4183 3.58172 16 8 16ZM12.0355 8.49997V7.49997H8.50008V3.96454H7.50008V7.49997H3.96443V8.49997H7.50008V12.0356H8.50008V8.49997H12.0355Z",Jg="#3498db",Qg="M16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM12.0355 7.49997V8.49997L3.96443 8.49997V7.49997H12.0355Z",Zg="#b5b5b5",eb=Lt({__name:"PluginTableActionIcon",props:{isAdd:{type:Boolean},title:{}},setup(e){const t=e,n=We(()=>t.isAdd?Xg:Qg),r=We(()=>t.isAdd?Jg:Zg);return(i,o)=>(Pe(),it("button",{class:da(["kuc-action-button",i.isAdd?"add":"remove"]),title:i.title},[(Pe(),it("svg",zg,[Ht("path",{d:n.value,"fill-rule":"evenodd","clip-rule":"evenodd",fill:r.value},null,8,Yg)]))],10,Kg))}});var ao=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function tb(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var hn={},za={},Ac;function ma(){return Ac||(Ac=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.injectPlatformDeps=e.platformDeps=void 0,e.platformDeps={readFileFromPath:function(){throw new Error("not implemented")},getRequestToken:function(){throw new Error("not implemented")},getDefaultAuth:function(){throw new Error("not implemented")},buildPlatformDependentConfig:function(){throw new Error("not implemented")},buildHeaders:function(){throw new Error("not implemented")},buildFormDataValue:function(){throw new Error("not implemented")},buildBaseUrl:function(){throw new Error("not implemented")},getVersion:function(){throw new Error("not implemented")}};var t=function(n){n.readFileFromPath&&(e.platformDeps.readFileFromPath=n.readFileFromPath),n.getRequestToken&&(e.platformDeps.getRequestToken=n.getRequestToken),n.getDefaultAuth&&(e.platformDeps.getDefaultAuth=n.getDefaultAuth),n.buildPlatformDependentConfig&&(e.platformDeps.buildPlatformDependentConfig=n.buildPlatformDependentConfig),n.buildHeaders&&(e.platformDeps.buildHeaders=n.buildHeaders),n.buildFormDataValue&&(e.platformDeps.buildFormDataValue=n.buildFormDataValue),n.buildBaseUrl&&(e.platformDeps.buildBaseUrl=n.buildBaseUrl),n.getVersion&&(e.platformDeps.getVersion=n.getVersion)};e.injectPlatformDeps=t}(za)),za}var Je={},Rr={},Cc;function uu(){if(Cc)return Rr;Cc=1;var e=Rr&&Rr.__extends||function(){var n=function(r,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,a){o.__proto__=a}||function(o,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(o[s]=a[s])},n(r,i)};return function(r,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(r,i);function o(){this.constructor=r}r.prototype=i===null?Object.create(i):(o.prototype=i.prototype,new o)}}();Object.defineProperty(Rr,"__esModule",{value:!0}),Rr.UnsupportedPlatformError=void 0;var t=function(n){e(r,n);function r(i){var o=this,a="This function is not supported in ".concat(i," environment");return o=n.call(this,a)||this,Error.captureStackTrace&&Error.captureStackTrace(o,r),o.name="UnsupportedPlatformError",o.platform=i,Object.setPrototypeOf(o,r.prototype),o}return r}(Error);return Rr.UnsupportedPlatformError=t,Rr}var Ya,Ic;function nb(){if(Ic)return Ya;Ic=1;function e(){this._types=Object.create(null),this._extensions=Object.create(null);for(let t=0;t =18"},Eb={"@rollup/plugin-babel":"^6.0.4","@rollup/plugin-commonjs":"^26.0.3","@rollup/plugin-json":"^6.1.0","@rollup/plugin-node-resolve":"^15.3.1","@rollup/plugin-terser":"^0.4.4","@types/core-js":"^2.5.8","@types/js-base64":"^3.3.1","@types/mime":"^3.0.4","@types/qs":"^6.9.17",rollup:"^4.30.1","rollup-plugin-ecma-version-validator":"^0.2.13","rollup-plugin-license":"^3.5.3","rollup-plugin-node-globals":"^1.4.0","rollup-plugin-polyfill-node":"^0.13.0",webpack:"^5.97.1","webpack-cli":"^5.1.4","babel-loader":"^9.2.1",vite:"^5.4.11",rimraf:"^5.0.10","cross-env":"^7.0.3"},wb={"core-js":"^3.39.0",axios:"^1.7.9","form-data":"^4.0.1","js-base64":"^3.7.7",mime:"^3.0.0",qs:"^6.12.3"},kb={".":{types:{import:"./esm/src/index.d.ts",require:"./lib/src/index.d.ts",default:"./lib/src/index.d.ts"},node:{import:"./index.mjs",require:"./lib/src/index.js",default:"./lib/src/index.js"},browser:"./lib/src/index.browser.js"},"./package.json":"./package.json"},Sb={name:ob,version:ab,publishConfig:sb,author:lb,description:ub,main:cb,module:db,browser:fb,types:pb,scripts:hb,repository:_b,files:mb,keywords:gb,license:bb,bugs:yb,homepage:vb,engines:xb,devDependencies:Eb,dependencies:wb,exports:kb};var Dc;function Tb(){if(Dc)return Je;Dc=1;var e=Je&&Je.__awaiter||function(y,v,p,h){function m(E){return E instanceof p?E:new p(function(x){x(E)})}return new(p||(p=Promise))(function(E,x){function O(q){try{C(h.next(q))}catch(Z){x(Z)}}function I(q){try{C(h.throw(q))}catch(Z){x(Z)}}function C(q){q.done?E(q.value):m(q.value).then(O,I)}C((h=h.apply(y,v||[])).next())})},t=Je&&Je.__generator||function(y,v){var p={label:0,sent:function(){if(E[0]&1)throw E[1];return E[1]},trys:[],ops:[]},h,m,E,x=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return x.next=O(0),x.throw=O(1),x.return=O(2),typeof Symbol=="function"&&(x[Symbol.iterator]=function(){return this}),x;function O(C){return function(q){return I([C,q])}}function I(C){if(h)throw new TypeError("Generator is already executing.");for(;x&&(x=0,C[0]&&(p=0)),p;)try{if(h=1,m&&(E=C[0]&2?m.return:C[0]?m.throw||((E=m.return)&&E.call(m),0):m.next)&&!(E=E.call(m,C[1])).done)return E;switch(m=0,E&&(C=[C[0]&2,E.value]),C[0]){case 0:case 1:E=C;break;case 4:return p.label++,{value:C[1],done:!1};case 5:p.label++,m=C[1],C=[0];continue;case 7:C=p.ops.pop(),p.trys.pop();continue;default:if(E=p.trys,!(E=E.length>0&&E[E.length-1])&&(C[0]===6||C[0]===2)){p=0;continue}if(C[0]===3&&(!E||C[1]>E[0]&&C[1] 0&&f[f.length-1])&&(p[0]===6||p[0]===2)){u=0;continue}if(p[0]===3&&(!f||p[1]>f[0]&&p[1] 0?Math.min.apply(Math,o):null},r.extractErrorIndex=function(i,o,a){if(o.bulkRequestIndex!==void 0&&o.errors){var s=r.parseErrorIndex(o.errors);if(s!==null)return i+o.bulkRequestIndex*a+s}},r.buildErrorMessage=function(i,o,a){var s="";return a!==void 0&&(s="An error occurred at records[".concat(a,"]. ")),s+="".concat(i,"/").concat(o," records are processed successfully"),s},r}(Error);return $r.KintoneAllRecordsError=t,$r}var Mr={},Fc;function Db(){if(Fc)return Mr;Fc=1;var e=Mr&&Mr.__extends||function(){var n=function(r,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,a){o.__proto__=a}||function(o,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(o[s]=a[s])},n(r,i)};return function(r,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");n(r,i);function o(){this.constructor=r}r.prototype=i===null?Object.create(i):(o.prototype=i.prototype,new o)}}();Object.defineProperty(Mr,"__esModule",{value:!0}),Mr.KintoneRestAPIError=void 0;var t=function(n){e(r,n);function r(i){var o=this,a=r.buildErrorResponseDateWithIndex(i),s=a.data,l=a.bulkRequestIndex;return o=n.call(this,s.message)||this,o.name="KintoneRestAPIError",o.id=s.id,o.code=s.code,o.errors=s.errors,o.status=i.status,o.bulkRequestIndex=l,o.headers=i.headers,o.message="[".concat(i.status,"] [").concat(o.code,"] ").concat(o.message," (").concat(o.id,")"),Error.captureStackTrace&&Error.captureStackTrace(o,r),Object.setPrototypeOf(o,r.prototype),o}return r.findErrorResponseDataWithIndex=function(i){for(var o=0;o 0&&m[m.length-1])&&(I[0]===6||I[0]===2)){v=0;continue}if(I[0]===3&&(!m||I[1]>m[0]&&I[1] 0?E[0].$id.type!=="__ID__"?[3,3]:[4,this.updateRecord(v)]:[3,4];case 2:return x=I.sent().revision,[2,{id:E[0].$id.value,revision:x}];case 3:throw new Error("Missing `$id` in `getRecords` response. This error is likely caused by a bug in Kintone REST API Client. Please file an issue.");case 4:return[2,this.addRecord({app:p,record:Object.assign({},m,(O={},O[h.field]={value:h.value},O))})]}})})},y.prototype.getRecords=function(v){return n(this,void 0,void 0,function(){var p,h;return r(this,function(m){switch(m.label){case 0:return p=this.buildPathWithGuestSpaceId({endpointName:"records"}),[4,this.client.get(p,v)];case 1:return h=m.sent(),this.warnMaximumOffsetValueIfNeeded(v.query),[2,h]}})})},y.prototype.warnMaximumOffsetValueIfNeeded=function(v){if(v){var p=/offset\s+(\d+)/i,h=v.match(p);!this.didWarnMaximumOffsetValue&&h&&Number(h[1])>1e4&&(this.didWarnMaximumOffsetValue=!0,console.warn("Warning: The maximum offset value will be limited to 10,000 in the future. Please use `createCursor()` and `getRecordsByCursor()` instead."))}},y.prototype.addRecords=function(v){return n(this,void 0,void 0,function(){var p,h,m,E;return r(this,function(x){switch(x.label){case 0:return p=this.buildPathWithGuestSpaceId({endpointName:"records"}),[4,this.client.post(p,v)];case 1:return h=x.sent(),m=h.ids,E=h.revisions,[2,{ids:m,revisions:E,records:m.map(function(O,I){return{id:O,revision:E[I]}})}]}})})},y.prototype.updateRecords=function(v){var p=this.buildPathWithGuestSpaceId({endpointName:"records"});return this.client.put(p,v)},y.prototype.deleteRecords=function(v){var p=this.buildPathWithGuestSpaceId({endpointName:"records"});return this.client.delete(p,v)},y.prototype.createCursor=function(v){var p=this.buildPathWithGuestSpaceId({endpointName:"records/cursor"});return this.client.post(p,v)},y.prototype.getRecordsByCursor=function(v){var p=this.buildPathWithGuestSpaceId({endpointName:"records/cursor"});return this.client.get(p,v)},y.prototype.deleteCursor=function(v){var p=this.buildPathWithGuestSpaceId({endpointName:"records/cursor"});return this.client.delete(p,v)},y.prototype.getAllRecords=function(v){return n(this,void 0,void 0,function(){var p,h,m,E,x,O,I;return r(this,function(C){return p=v.condition,h=v.orderBy,m=v.withCursor,E=m===void 0?!0:m,x=i(v,["condition","orderBy","withCursor"]),h?E?(O=p?"".concat(p," "):"",I="".concat(O).concat(h?"order by ".concat(h):""),[2,this.getAllRecordsWithCursor(t(t({},x),{query:I}))]):[2,this.getAllRecordsWithOffset(t(t({},x),{orderBy:h,condition:p}))]:[2,this.getAllRecordsWithId(t(t({},x),{condition:p}))]})})},y.prototype.getAllRecordsWithId=function(v){return n(this,void 0,void 0,function(){var p,h,m,E,x,O,I,C,q,Z;return r(this,function(ee){switch(ee.label){case 0:p=v.fields,h=v.condition,m=i(v,["fields","condition"]),E=p,E&&E.length>0&&E.indexOf("$id")===-1&&(E=o(o([],E,!0),["$id"],!1)),x=h?"(".concat(h,") and "):"",O=[],I="0",ee.label=1;case 1:return C="".concat(x,"$id > ").concat(I," order by $id asc limit ").concat(d),[4,this.getRecords(t(t({},m),{fields:E,query:C}))];case 2:if(q=ee.sent(),O=O.concat(q.records),q.records.length 0&&y[y.length-1])&&(m[0]===6||m[0]===2)){d=0;continue}if(m[0]===3&&(!y||m[1]>y[0]&&m[1] b=>{const k=t.call(b);return _[k]||(_[k]=k.slice(8,-1).toLowerCase())})(Object.create(null)),i=_=>(_=_.toLowerCase(),b=>r(b)===_),o=_=>b=>typeof b===_,{isArray:a}=Array,s=o("undefined");function l(_){return _!==null&&!s(_)&&_.constructor!==null&&!s(_.constructor)&&f(_.constructor.isBuffer)&&_.constructor.isBuffer(_)}const u=i("ArrayBuffer");function c(_){let b;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?b=ArrayBuffer.isView(_):b=_&&_.buffer&&u(_.buffer),b}const d=o("string"),f=o("function"),g=o("number"),y=_=>_!==null&&typeof _=="object",v=_=>_===!0||_===!1,p=_=>{if(r(_)!=="object")return!1;const b=n(_);return(b===null||b===Object.prototype||Object.getPrototypeOf(b)===null)&&!(Symbol.toStringTag in _)&&!(Symbol.iterator in _)},h=i("Date"),m=i("File"),E=i("Blob"),x=i("FileList"),O=_=>y(_)&&f(_.pipe),I=_=>{let b;return _&&(typeof FormData=="function"&&_ instanceof FormData||f(_.append)&&((b=r(_))==="formdata"||b==="object"&&f(_.toString)&&_.toString()==="[object FormData]"))},C=i("URLSearchParams"),[q,Z,ee,ae]=["ReadableStream","Request","Response","Headers"].map(i),Q=_=>_.trim?_.trim():_.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ke(_,b,{allOwnKeys:k=!1}={}){if(_===null||typeof _>"u")return;let S,D;if(typeof _!="object"&&(_=[_]),a(_))for(S=0,D=_.length;S 0;)if(D=k[S],b===D.toLowerCase())return D;return null}const ge=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:ao,Re=_=>!s(_)&&_!==ge;function he(){const{caseless:_}=Re(this)&&this||{},b={},k=(S,D)=>{const $=_&&Oe(b,D)||D;p(b[$])&&p(S)?b[$]=he(b[$],S):p(S)?b[$]=he({},S):a(S)?b[$]=S.slice():b[$]=S};for(let S=0,D=arguments.length;S (ke(b,(D,$)=>{k&&f(D)?_[$]=e(D,k):_[$]=D},{allOwnKeys:S}),_),Te=_=>(_.charCodeAt(0)===65279&&(_=_.slice(1)),_),Ze=(_,b,k,S)=>{_.prototype=Object.create(b.prototype,S),_.prototype.constructor=_,Object.defineProperty(_,"super",{value:b.prototype}),k&&Object.assign(_.prototype,k)},Ye=(_,b,k,S)=>{let D,$,M;const X={};if(b=b||{},_==null)return b;do{for(D=Object.getOwnPropertyNames(_),$=D.length;$-- >0;)M=D[$],(!S||S(M,_,b))&&!X[M]&&(b[M]=_[M],X[M]=!0);_=k!==!1&&n(_)}while(_&&(!k||k(_,b))&&_!==Object.prototype);return b},He=(_,b,k)=>{_=String(_),(k===void 0||k>_.length)&&(k=_.length),k-=b.length;const S=_.indexOf(b,k);return S!==-1&&S===k},_t=_=>{if(!_)return null;if(a(_))return _;let b=_.length;if(!g(b))return null;const k=new Array(b);for(;b-- >0;)k[b]=_[b];return k},rt=(_=>b=>_&&b instanceof _)(typeof Uint8Array<"u"&&n(Uint8Array)),W=(_,b)=>{const S=(_&&_[Symbol.iterator]).call(_);let D;for(;(D=S.next())&&!D.done;){const $=D.value;b.call(_,$[0],$[1])}},te=(_,b)=>{let k;const S=[];for(;(k=_.exec(b))!==null;)S.push(k);return S},Ae=i("HTMLFormElement"),Le=_=>_.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(k,S,D){return S.toUpperCase()+D}),De=(({hasOwnProperty:_})=>(b,k)=>_.call(b,k))(Object.prototype),le=i("RegExp"),Ce=(_,b)=>{const k=Object.getOwnPropertyDescriptors(_),S={};ke(k,(D,$)=>{let M;(M=b(D,$,_))!==!1&&(S[$]=M||D)}),Object.defineProperties(_,S)},xe=_=>{Ce(_,(b,k)=>{if(f(_)&&["arguments","caller","callee"].indexOf(k)!==-1)return!1;const S=_[k];if(f(S)){if(b.enumerable=!1,"writable"in b){b.writable=!1;return}b.set||(b.set=()=>{throw Error("Can not rewrite read-only method '"+k+"'")})}})},A=(_,b)=>{const k={},S=D=>{D.forEach($=>{k[$]=!0})};return a(_)?S(_):S(String(_).split(b)),k},R=()=>{},V=(_,b)=>_!=null&&Number.isFinite(_=+_)?_:b,j="abcdefghijklmnopqrstuvwxyz",K="0123456789",w={DIGIT:K,ALPHA:j,ALPHA_DIGIT:j+j.toUpperCase()+K},T=(_=16,b=w.ALPHA_DIGIT)=>{let k="";const{length:S}=b;for(;_--;)k+=b[Math.random()*S|0];return k};function N(_){return!!(_&&f(_.append)&&_[Symbol.toStringTag]==="FormData"&&_[Symbol.iterator])}const U=_=>{const b=new Array(10),k=(S,D)=>{if(y(S)){if(b.indexOf(S)>=0)return;if(!("toJSON"in S)){b[D]=S;const $=a(S)?[]:{};return ke(S,(M,X)=>{const se=k(M,D+1);!s(se)&&($[X]=se)}),b[D]=void 0,$}}return S};return k(_,0)},G=i("AsyncFunction"),J=_=>_&&(y(_)||f(_))&&f(_.then)&&f(_.catch),L=((_,b)=>_?setImmediate:b?((k,S)=>(ge.addEventListener("message",({source:D,data:$})=>{D===ge&&$===k&&S.length&&S.shift()()},!1),D=>{S.push(D),ge.postMessage(k,"*")}))(`axios@${Math.random()}`,[]):k=>setTimeout(k))(typeof setImmediate=="function",f(ge.postMessage)),H=typeof queueMicrotask<"u"?queueMicrotask.bind(ge):typeof process<"u"&&process.nextTick||L;var P={isArray:a,isArrayBuffer:u,isBuffer:l,isFormData:I,isArrayBufferView:c,isString:d,isNumber:g,isBoolean:v,isObject:y,isPlainObject:p,isReadableStream:q,isRequest:Z,isResponse:ee,isHeaders:ae,isUndefined:s,isDate:h,isFile:m,isBlob:E,isRegExp:le,isFunction:f,isStream:O,isURLSearchParams:C,isTypedArray:rt,isFileList:x,forEach:ke,merge:he,extend:ie,trim:Q,stripBOM:Te,inherits:Ze,toFlatObject:Ye,kindOf:r,kindOfTest:i,endsWith:He,toArray:_t,forEachEntry:W,matchAll:te,isHTMLForm:Ae,hasOwnProperty:De,hasOwnProp:De,reduceDescriptors:Ce,freezeMethods:xe,toObjectSet:A,toCamelCase:Le,noop:R,toFiniteNumber:V,findKey:Oe,global:ge,isContextDefined:Re,ALPHABET:w,generateString:T,isSpecCompliantForm:N,toJSONObject:U,isAsyncFn:G,isThenable:J,setImmediate:L,asap:H};function Y(_,b,k,S,D){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=_,this.name="AxiosError",b&&(this.code=b),k&&(this.config=k),S&&(this.request=S),D&&(this.response=D,this.status=D.status?D.status:null)}P.inherits(Y,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:P.toJSONObject(this.config),code:this.code,status:this.status}}});const me=Y.prototype,be={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(_=>{be[_]={value:_}}),Object.defineProperties(Y,be),Object.defineProperty(me,"isAxiosError",{value:!0}),Y.from=(_,b,k,S,D,$)=>{const M=Object.create(me);return P.toFlatObject(_,M,function(se){return se!==Error.prototype},X=>X!=="isAxiosError"),Y.call(M,_.message,b,k,S,D),M.cause=_,M.name=_.name,$&&Object.assign(M,$),M};var Xe=null;function et(_){return P.isPlainObject(_)||P.isArray(_)}function St(_){return P.endsWith(_,"[]")?_.slice(0,-2):_}function st(_,b,k){return _?_.concat(b).map(function(D,$){return D=St(D),!k&&$?"["+D+"]":D}).join(k?".":""):b}function nn(_){return P.isArray(_)&&!_.some(et)}const F=P.toFlatObject(P,{},null,function(b){return/^is[A-Z]/.test(b)});function B(_,b,k){if(!P.isObject(_))throw new TypeError("target must be an object");b=b||new FormData,k=P.toFlatObject(k,{metaTokens:!0,dots:!1,indexes:!1},!1,function(Ee,de){return!P.isUndefined(de[Ee])});const S=k.metaTokens,D=k.visitor||re,$=k.dots,M=k.indexes,se=(k.Blob||typeof Blob<"u"&&Blob)&&P.isSpecCompliantForm(b);if(!P.isFunction(D))throw new TypeError("visitor must be a function");function ne(ce){if(ce===null)return"";if(P.isDate(ce))return ce.toISOString();if(!se&&P.isBlob(ce))throw new Y("Blob is not supported. Use a Buffer instead.");return P.isArrayBuffer(ce)||P.isTypedArray(ce)?se&&typeof Blob=="function"?new Blob([ce]):Buffer.from(ce):ce}function re(ce,Ee,de){let ot=ce;if(ce&&!de&&typeof ce=="object"){if(P.endsWith(Ee,"{}"))Ee=S?Ee:Ee.slice(0,-2),ce=JSON.stringify(ce);else if(P.isArray(ce)&&nn(ce)||(P.isFileList(ce)||P.endsWith(Ee,"[]"))&&(ot=P.toArray(ce)))return Ee=St(Ee),ot.forEach(function(wt,Mn){!(P.isUndefined(wt)||wt===null)&&b.append(M===!0?st([Ee],Mn,$):M===null?Ee:Ee+"[]",ne(wt))}),!1}return et(ce)?!0:(b.append(st(de,Ee,$),ne(ce)),!1)}const ue=[],Ge=Object.assign(F,{defaultVisitor:re,convertValue:ne,isVisitable:et});function mt(ce,Ee){if(!P.isUndefined(ce)){if(ue.indexOf(ce)!==-1)throw Error("Circular reference detected in "+Ee.join("."));ue.push(ce),P.forEach(ce,function(ot,gt){(!(P.isUndefined(ot)||ot===null)&&D.call(b,ot,P.isString(gt)?gt.trim():gt,Ee,Ge))===!0&&mt(ot,Ee?Ee.concat(gt):[gt])}),ue.pop()}}if(!P.isObject(_))throw new TypeError("data must be an object");return mt(_),b}function pe(_){const b={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(_).replace(/[!'()~]|%20|%00/g,function(S){return b[S]})}function Ne(_,b){this._pairs=[],_&&B(_,this,b)}const je=Ne.prototype;je.append=function(b,k){this._pairs.push([b,k])},je.toString=function(b){const k=b?function(S){return b.call(this,S,pe)}:pe;return this._pairs.map(function(D){return k(D[0])+"="+k(D[1])},"").join("&")};function ye(_){return encodeURIComponent(_).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function dn(_,b,k){if(!b)return _;const S=k&&k.encode||ye;P.isFunction(k)&&(k={serialize:k});const D=k&&k.serialize;let $;if(D?$=D(b,k):$=P.isURLSearchParams(b)?b.toString():new Ne(b,k).toString(S),$){const M=_.indexOf("#");M!==-1&&(_=_.slice(0,M)),_+=(_.indexOf("?")===-1?"?":"&")+$}return _}class $n{constructor(){this.handlers=[]}use(b,k,S){return this.handlers.push({fulfilled:b,rejected:k,synchronous:S?S.synchronous:!1,runWhen:S?S.runWhen:null}),this.handlers.length-1}eject(b){this.handlers[b]&&(this.handlers[b]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(b){P.forEach(this.handlers,function(S){S!==null&&b(S)})}}var It=$n,fn={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ti=typeof URLSearchParams<"u"?URLSearchParams:Ne,Qn=typeof FormData<"u"?FormData:null,Wt=typeof Blob<"u"?Blob:null,wo={isBrowser:!0,classes:{URLSearchParams:Ti,FormData:Qn,Blob:Wt},protocols:["http","https","file","blob","url","data"]};const ni=typeof window<"u"&&typeof document<"u",ri=typeof navigator=="object"&&navigator||void 0,wr=ni&&(!ri||["ReactNative","NativeScript","NS"].indexOf(ri.product)<0),Ai=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",ii=ni&&window.location.href||"http://localhost";var Ci=Object.freeze({__proto__:null,hasBrowserEnv:ni,hasStandardBrowserWebWorkerEnv:Ai,hasStandardBrowserEnv:wr,navigator:ri,origin:ii}),lt={...Ci,...wo};function ko(_,b){return B(_,new lt.classes.URLSearchParams,Object.assign({visitor:function(k,S,D,$){return lt.isNode&&P.isBuffer(k)?(this.append(S,k.toString("base64")),!1):$.defaultVisitor.apply(this,arguments)}},b))}function So(_){return P.matchAll(/\w+|\[(\w*)]/g,_).map(b=>b[0]==="[]"?"":b[1]||b[0])}function Ii(_){const b={},k=Object.keys(_);let S;const D=k.length;let $;for(S=0;S =k.length;return M=!M&&P.isArray(D)?D.length:M,se?(P.hasOwnProp(D,M)?D[M]=[D[M],S]:D[M]=S,!X):((!D[M]||!P.isObject(D[M]))&&(D[M]=[]),b(k,S,D[M],$)&&P.isArray(D[M])&&(D[M]=Ii(D[M])),!X)}if(P.isFormData(_)&&P.isFunction(_.entries)){const k={};return P.forEachEntry(_,(S,D)=>{b(So(S),D,k,0)}),k}return null}function Ri(_,b,k){if(P.isString(_))try{return(b||JSON.parse)(_),P.trim(_)}catch(S){if(S.name!=="SyntaxError")throw S}return(0,JSON.stringify)(_)}const oi={transitional:fn,adapter:["xhr","http","fetch"],transformRequest:[function(b,k){const S=k.getContentType()||"",D=S.indexOf("application/json")>-1,$=P.isObject(b);if($&&P.isHTMLForm(b)&&(b=new FormData(b)),P.isFormData(b))return D?JSON.stringify(Oi(b)):b;if(P.isArrayBuffer(b)||P.isBuffer(b)||P.isStream(b)||P.isFile(b)||P.isBlob(b)||P.isReadableStream(b))return b;if(P.isArrayBufferView(b))return b.buffer;if(P.isURLSearchParams(b))return k.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),b.toString();let X;if($){if(S.indexOf("application/x-www-form-urlencoded")>-1)return ko(b,this.formSerializer).toString();if((X=P.isFileList(b))||S.indexOf("multipart/form-data")>-1){const se=this.env&&this.env.FormData;return B(X?{"files[]":b}:b,se&&new se,this.formSerializer)}}return $||D?(k.setContentType("application/json",!1),Ri(b)):b}],transformResponse:[function(b){const k=this.transitional||oi.transitional,S=k&&k.forcedJSONParsing,D=this.responseType==="json";if(P.isResponse(b)||P.isReadableStream(b))return b;if(b&&P.isString(b)&&(S&&!this.responseType||D)){const M=!(k&&k.silentJSONParsing)&&D;try{return JSON.parse(b)}catch(X){if(M)throw X.name==="SyntaxError"?Y.from(X,Y.ERR_BAD_RESPONSE,this,null,this.response):X}}return b}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:lt.classes.FormData,Blob:lt.classes.Blob},validateStatus:function(b){return b>=200&&b<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};P.forEach(["delete","get","head","post","put","patch"],_=>{oi.headers[_]={}});var Di=oi;const Pi=P.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var Zn=_=>{const b={};let k,S,D;return _&&_.split(` -`).forEach(function(M){D=M.indexOf(":"),k=M.substring(0,D).trim().toLowerCase(),S=M.substring(D+1).trim(),!(!k||b[k]&&Pi[k])&&(k==="set-cookie"?b[k]?b[k].push(S):b[k]=[S]:b[k]=b[k]?b[k]+", "+S:S)}),b};const kr=Symbol("internals");function Sr(_){return _&&String(_).trim().toLowerCase()}function Tr(_){return _===!1||_==null?_:P.isArray(_)?_.map(Tr):String(_)}function r_(_){const b=Object.create(null),k=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let S;for(;S=k.exec(_);)b[S[1]]=S[2];return b}const i_=_=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(_.trim());function Ia(_,b,k,S,D){if(P.isFunction(S))return S.call(this,b,k);if(D&&(b=k),!!P.isString(b)){if(P.isString(S))return b.indexOf(S)!==-1;if(P.isRegExp(S))return S.test(b)}}function o_(_){return _.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(b,k,S)=>k.toUpperCase()+S)}function a_(_,b){const k=P.toCamelCase(" "+b);["get","set","has"].forEach(S=>{Object.defineProperty(_,S+k,{value:function(D,$,M){return this[S].call(this,b,D,$,M)},configurable:!0})})}class To{constructor(b){b&&this.set(b)}set(b,k,S){const D=this;function $(X,se,ne){const re=Sr(se);if(!re)throw new Error("header name must be a non-empty string");const ue=P.findKey(D,re);(!ue||D[ue]===void 0||ne===!0||ne===void 0&&D[ue]!==!1)&&(D[ue||se]=Tr(X))}const M=(X,se)=>P.forEach(X,(ne,re)=>$(ne,re,se));if(P.isPlainObject(b)||b instanceof this.constructor)M(b,k);else if(P.isString(b)&&(b=b.trim())&&!i_(b))M(Zn(b),k);else if(P.isHeaders(b))for(const[X,se]of b.entries())$(se,X,S);else b!=null&&$(k,b,S);return this}get(b,k){if(b=Sr(b),b){const S=P.findKey(this,b);if(S){const D=this[S];if(!k)return D;if(k===!0)return r_(D);if(P.isFunction(k))return k.call(this,D,S);if(P.isRegExp(k))return k.exec(D);throw new TypeError("parser must be boolean|regexp|function")}}}has(b,k){if(b=Sr(b),b){const S=P.findKey(this,b);return!!(S&&this[S]!==void 0&&(!k||Ia(this,this[S],S,k)))}return!1}delete(b,k){const S=this;let D=!1;function $(M){if(M=Sr(M),M){const X=P.findKey(S,M);X&&(!k||Ia(S,S[X],X,k))&&(delete S[X],D=!0)}}return P.isArray(b)?b.forEach($):$(b),D}clear(b){const k=Object.keys(this);let S=k.length,D=!1;for(;S--;){const $=k[S];(!b||Ia(this,this[$],$,b,!0))&&(delete this[$],D=!0)}return D}normalize(b){const k=this,S={};return P.forEach(this,(D,$)=>{const M=P.findKey(S,$);if(M){k[M]=Tr(D),delete k[$];return}const X=b?o_($):String($).trim();X!==$&&delete k[$],k[X]=Tr(D),S[X]=!0}),this}concat(...b){return this.constructor.concat(this,...b)}toJSON(b){const k=Object.create(null);return P.forEach(this,(S,D)=>{S!=null&&S!==!1&&(k[D]=b&&P.isArray(S)?S.join(", "):S)}),k}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([b,k])=>b+": "+k).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(b){return b instanceof this?b:new this(b)}static concat(b,...k){const S=new this(b);return k.forEach(D=>S.set(D)),S}static accessor(b){const S=(this[kr]=this[kr]={accessors:{}}).accessors,D=this.prototype;function $(M){const X=Sr(M);S[X]||(a_(D,M),S[X]=!0)}return P.isArray(b)?b.forEach($):$(b),this}}To.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),P.reduceDescriptors(To.prototype,({value:_},b)=>{let k=b[0].toUpperCase()+b.slice(1);return{get:()=>_,set(S){this[k]=S}}}),P.freezeMethods(To);var pn=To;function Oa(_,b){const k=this||Di,S=b||k,D=pn.from(S.headers);let $=S.data;return P.forEach(_,function(X){$=X.call(k,$,D.normalize(),b?b.status:void 0)}),D.normalize(),$}function $u(_){return!!(_&&_.__CANCEL__)}function ai(_,b,k){Y.call(this,_??"canceled",Y.ERR_CANCELED,b,k),this.name="CanceledError"}P.inherits(ai,Y,{__CANCEL__:!0});function Mu(_,b,k){const S=k.config.validateStatus;!k.status||!S||S(k.status)?_(k):b(new Y("Request failed with status code "+k.status,[Y.ERR_BAD_REQUEST,Y.ERR_BAD_RESPONSE][Math.floor(k.status/100)-4],k.config,k.request,k))}function s_(_){const b=/^([-+\w]{1,25})(:?\/\/|:)/.exec(_);return b&&b[1]||""}function l_(_,b){_=_||10;const k=new Array(_),S=new Array(_);let D=0,$=0,M;return b=b!==void 0?b:1e3,function(se){const ne=Date.now(),re=S[$];M||(M=ne),k[D]=se,S[D]=ne;let ue=$,Ge=0;for(;ue!==D;)Ge+=k[ue++],ue=ue%_;if(D=(D+1)%_,D===$&&($=($+1)%_),ne-M{k=re,D=null,$&&(clearTimeout($),$=null),_.apply(null,ne)};return[(...ne)=>{const re=Date.now(),ue=re-k;ue>=S?M(ne,re):(D=ne,$||($=setTimeout(()=>{$=null,M(D)},S-ue)))},()=>D&&M(D)]}const Ao=(_,b,k=3)=>{let S=0;const D=l_(50,250);return u_($=>{const M=$.loaded,X=$.lengthComputable?$.total:void 0,se=M-S,ne=D(se),re=M<=X;S=M;const ue={loaded:M,total:X,progress:X?M/X:void 0,bytes:se,rate:ne||void 0,estimated:ne&&X&&re?(X-M)/ne:void 0,event:$,lengthComputable:X!=null,[b?"download":"upload"]:!0};_(ue)},k)},Bu=(_,b)=>{const k=_!=null;return[S=>b[0]({lengthComputable:k,total:_,loaded:S}),b[1]]},Fu=_=>(...b)=>P.asap(()=>_(...b));var c_=lt.hasStandardBrowserEnv?((_,b)=>k=>(k=new URL(k,lt.origin),_.protocol===k.protocol&&_.host===k.host&&(b||_.port===k.port)))(new URL(lt.origin),lt.navigator&&/(msie|trident)/i.test(lt.navigator.userAgent)):()=>!0,d_=lt.hasStandardBrowserEnv?{write(_,b,k,S,D,$){const M=[_+"="+encodeURIComponent(b)];P.isNumber(k)&&M.push("expires="+new Date(k).toGMTString()),P.isString(S)&&M.push("path="+S),P.isString(D)&&M.push("domain="+D),$===!0&&M.push("secure"),document.cookie=M.join("; ")},read(_){const b=document.cookie.match(new RegExp("(^|;\\s*)("+_+")=([^;]*)"));return b?decodeURIComponent(b[3]):null},remove(_){this.write(_,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function f_(_){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(_)}function p_(_,b){return b?_.replace(/\/?\/$/,"")+"/"+b.replace(/^\/+/,""):_}function Uu(_,b){return _&&!f_(b)?p_(_,b):b}const Vu=_=>_ instanceof pn?{..._}:_;function Ar(_,b){b=b||{};const k={};function S(ne,re,ue,Ge){return P.isPlainObject(ne)&&P.isPlainObject(re)?P.merge.call({caseless:Ge},ne,re):P.isPlainObject(re)?P.merge({},re):P.isArray(re)?re.slice():re}function D(ne,re,ue,Ge){if(P.isUndefined(re)){if(!P.isUndefined(ne))return S(void 0,ne,ue,Ge)}else return S(ne,re,ue,Ge)}function $(ne,re){if(!P.isUndefined(re))return S(void 0,re)}function M(ne,re){if(P.isUndefined(re)){if(!P.isUndefined(ne))return S(void 0,ne)}else return S(void 0,re)}function X(ne,re,ue){if(ue in b)return S(ne,re);if(ue in _)return S(void 0,ne)}const se={url:$,method:$,data:$,baseURL:M,transformRequest:M,transformResponse:M,paramsSerializer:M,timeout:M,timeoutMessage:M,withCredentials:M,withXSRFToken:M,adapter:M,responseType:M,xsrfCookieName:M,xsrfHeaderName:M,onUploadProgress:M,onDownloadProgress:M,decompress:M,maxContentLength:M,maxBodyLength:M,beforeRedirect:M,transport:M,httpAgent:M,httpsAgent:M,cancelToken:M,socketPath:M,responseEncoding:M,validateStatus:X,headers:(ne,re,ue)=>D(Vu(ne),Vu(re),ue,!0)};return P.forEach(Object.keys(Object.assign({},_,b)),function(re){const ue=se[re]||D,Ge=ue(_[re],b[re],re);P.isUndefined(Ge)&&ue!==X||(k[re]=Ge)}),k}var Hu=_=>{const b=Ar({},_);let{data:k,withXSRFToken:S,xsrfHeaderName:D,xsrfCookieName:$,headers:M,auth:X}=b;b.headers=M=pn.from(M),b.url=dn(Uu(b.baseURL,b.url),_.params,_.paramsSerializer),X&&M.set("Authorization","Basic "+btoa((X.username||"")+":"+(X.password?unescape(encodeURIComponent(X.password)):"")));let se;if(P.isFormData(k)){if(lt.hasStandardBrowserEnv||lt.hasStandardBrowserWebWorkerEnv)M.setContentType(void 0);else if((se=M.getContentType())!==!1){const[ne,...re]=se?se.split(";").map(ue=>ue.trim()).filter(Boolean):[];M.setContentType([ne||"multipart/form-data",...re].join("; "))}}if(lt.hasStandardBrowserEnv&&(S&&P.isFunction(S)&&(S=S(b)),S||S!==!1&&c_(b.url))){const ne=D&&$&&d_.read($);ne&&M.set(D,ne)}return b},h_=typeof XMLHttpRequest<"u"&&function(_){return new Promise(function(k,S){const D=Hu(_);let $=D.data;const M=pn.from(D.headers).normalize();let{responseType:X,onUploadProgress:se,onDownloadProgress:ne}=D,re,ue,Ge,mt,ce;function Ee(){mt&&mt(),ce&&ce(),D.cancelToken&&D.cancelToken.unsubscribe(re),D.signal&&D.signal.removeEventListener("abort",re)}let de=new XMLHttpRequest;de.open(D.method.toUpperCase(),D.url,!0),de.timeout=D.timeout;function ot(){if(!de)return;const wt=pn.from("getAllResponseHeaders"in de&&de.getAllResponseHeaders()),Ut={data:!X||X==="text"||X==="json"?de.responseText:de.response,status:de.status,statusText:de.statusText,headers:wt,config:_,request:de};Mu(function(Cr){k(Cr),Ee()},function(Cr){S(Cr),Ee()},Ut),de=null}"onloadend"in de?de.onloadend=ot:de.onreadystatechange=function(){!de||de.readyState!==4||de.status===0&&!(de.responseURL&&de.responseURL.indexOf("file:")===0)||setTimeout(ot)},de.onabort=function(){de&&(S(new Y("Request aborted",Y.ECONNABORTED,_,de)),de=null)},de.onerror=function(){S(new Y("Network Error",Y.ERR_NETWORK,_,de)),de=null},de.ontimeout=function(){let Mn=D.timeout?"timeout of "+D.timeout+"ms exceeded":"timeout exceeded";const Ut=D.transitional||fn;D.timeoutErrorMessage&&(Mn=D.timeoutErrorMessage),S(new Y(Mn,Ut.clarifyTimeoutError?Y.ETIMEDOUT:Y.ECONNABORTED,_,de)),de=null},$===void 0&&M.setContentType(null),"setRequestHeader"in de&&P.forEach(M.toJSON(),function(Mn,Ut){de.setRequestHeader(Ut,Mn)}),P.isUndefined(D.withCredentials)||(de.withCredentials=!!D.withCredentials),X&&X!=="json"&&(de.responseType=D.responseType),ne&&([Ge,ce]=Ao(ne,!0),de.addEventListener("progress",Ge)),se&&de.upload&&([ue,mt]=Ao(se),de.upload.addEventListener("progress",ue),de.upload.addEventListener("loadend",mt)),(D.cancelToken||D.signal)&&(re=wt=>{de&&(S(!wt||wt.type?new ai(null,_,de):wt),de.abort(),de=null)},D.cancelToken&&D.cancelToken.subscribe(re),D.signal&&(D.signal.aborted?re():D.signal.addEventListener("abort",re)));const gt=s_(D.url);if(gt&<.protocols.indexOf(gt)===-1){S(new Y("Unsupported protocol "+gt+":",Y.ERR_BAD_REQUEST,_));return}de.send($||null)})},__=(_,b)=>{const{length:k}=_=_?_.filter(Boolean):[];if(b||k){let S=new AbortController,D;const $=function(ne){if(!D){D=!0,X();const re=ne instanceof Error?ne:this.reason;S.abort(re instanceof Y?re:new ai(re instanceof Error?re.message:re))}};let M=b&&setTimeout(()=>{M=null,$(new Y(`timeout ${b} of ms exceeded`,Y.ETIMEDOUT))},b);const X=()=>{_&&(M&&clearTimeout(M),M=null,_.forEach(ne=>{ne.unsubscribe?ne.unsubscribe($):ne.removeEventListener("abort",$)}),_=null)};_.forEach(ne=>ne.addEventListener("abort",$));const{signal:se}=S;return se.unsubscribe=()=>P.asap(X),se}};const m_=function*(_,b){let k=_.byteLength;if(k{const D=g_(_,b);let $=0,M,X=se=>{M||(M=!0,S&&S(se))};return new ReadableStream({async pull(se){try{const{done:ne,value:re}=await D.next();if(ne){X(),se.close();return}let ue=re.byteLength;if(k){let Ge=$+=ue;k(Ge)}se.enqueue(new Uint8Array(re))}catch(ne){throw X(ne),ne}},cancel(se){return X(se),D.return()}},{highWaterMark:2})},Co=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",qu=Co&&typeof ReadableStream=="function",y_=Co&&(typeof TextEncoder=="function"?(_=>b=>_.encode(b))(new TextEncoder):async _=>new Uint8Array(await new Response(_).arrayBuffer())),Wu=(_,...b)=>{try{return!!_(...b)}catch{return!1}},v_=qu&&Wu(()=>{let _=!1;const b=new Request(lt.origin,{body:new ReadableStream,method:"POST",get duplex(){return _=!0,"half"}}).headers.has("Content-Type");return _&&!b}),Gu=64*1024,Ra=qu&&Wu(()=>P.isReadableStream(new Response("").body)),Io={stream:Ra&&(_=>_.body)};Co&&(_=>{["text","arrayBuffer","blob","formData","stream"].forEach(b=>{!Io[b]&&(Io[b]=P.isFunction(_[b])?k=>k[b]():(k,S)=>{throw new Y(`Response type '${b}' is not supported`,Y.ERR_NOT_SUPPORT,S)})})})(new Response);const x_=async _=>{if(_==null)return 0;if(P.isBlob(_))return _.size;if(P.isSpecCompliantForm(_))return(await new Request(lt.origin,{method:"POST",body:_}).arrayBuffer()).byteLength;if(P.isArrayBufferView(_)||P.isArrayBuffer(_))return _.byteLength;if(P.isURLSearchParams(_)&&(_=_+""),P.isString(_))return(await y_(_)).byteLength},E_=async(_,b)=>{const k=P.toFiniteNumber(_.getContentLength());return k??x_(b)};var w_=Co&&(async _=>{let{url:b,method:k,data:S,signal:D,cancelToken:$,timeout:M,onDownloadProgress:X,onUploadProgress:se,responseType:ne,headers:re,withCredentials:ue="same-origin",fetchOptions:Ge}=Hu(_);ne=ne?(ne+"").toLowerCase():"text";let mt=__([D,$&&$.toAbortSignal()],M),ce;const Ee=mt&&mt.unsubscribe&&(()=>{mt.unsubscribe()});let de;try{if(se&&v_&&k!=="get"&&k!=="head"&&(de=await E_(re,S))!==0){let Ut=new Request(b,{method:"POST",body:S,duplex:"half"}),er;if(P.isFormData(S)&&(er=Ut.headers.get("content-type"))&&re.setContentType(er),Ut.body){const[Cr,Lo]=Bu(de,Ao(Fu(se)));S=ju(Ut.body,Gu,Cr,Lo)}}P.isString(ue)||(ue=ue?"include":"omit");const ot="credentials"in Request.prototype;ce=new Request(b,{...Ge,signal:mt,method:k.toUpperCase(),headers:re.normalize().toJSON(),body:S,duplex:"half",credentials:ot?ue:void 0});let gt=await fetch(ce);const wt=Ra&&(ne==="stream"||ne==="response");if(Ra&&(X||wt&&Ee)){const Ut={};["status","statusText","headers"].forEach(Zu=>{Ut[Zu]=gt[Zu]});const er=P.toFiniteNumber(gt.headers.get("content-length")),[Cr,Lo]=X&&Bu(er,Ao(Fu(X),!0))||[];gt=new Response(ju(gt.body,Gu,Cr,()=>{Lo&&Lo(),Ee&&Ee()}),Ut)}ne=ne||"text";let Mn=await Io[P.findKey(Io,ne)||"text"](gt,_);return!wt&&Ee&&Ee(),await new Promise((Ut,er)=>{Mu(Ut,er,{data:Mn,headers:pn.from(gt.headers),status:gt.status,statusText:gt.statusText,config:_,request:ce})})}catch(ot){throw Ee&&Ee(),ot&&ot.name==="TypeError"&&/fetch/i.test(ot.message)?Object.assign(new Y("Network Error",Y.ERR_NETWORK,_,ce),{cause:ot.cause||ot}):Y.from(ot,ot&&ot.code,_,ce)}});const Da={http:Xe,xhr:h_,fetch:w_};P.forEach(Da,(_,b)=>{if(_){try{Object.defineProperty(_,"name",{value:b})}catch{}Object.defineProperty(_,"adapterName",{value:b})}});const Ku=_=>`- ${_}`,k_=_=>P.isFunction(_)||_===null||_===!1;var zu={getAdapter:_=>{_=P.isArray(_)?_:[_];const{length:b}=_;let k,S;const D={};for(let $=0;$`adapter ${X} `+(se===!1?"is not supported by the environment":"is not available in the build"));let M=b?$.length>1?`since : -`+$.map(Ku).join(` -`):" "+Ku($[0]):"as no adapter specified";throw new Y("There is no suitable adapter to dispatch the request "+M,"ERR_NOT_SUPPORT")}return S},adapters:Da};function Pa(_){if(_.cancelToken&&_.cancelToken.throwIfRequested(),_.signal&&_.signal.aborted)throw new ai(null,_)}function Yu(_){return Pa(_),_.headers=pn.from(_.headers),_.data=Oa.call(_,_.transformRequest),["post","put","patch"].indexOf(_.method)!==-1&&_.headers.setContentType("application/x-www-form-urlencoded",!1),zu.getAdapter(_.adapter||Di.adapter)(_).then(function(S){return Pa(_),S.data=Oa.call(_,_.transformResponse,S),S.headers=pn.from(S.headers),S},function(S){return $u(S)||(Pa(_),S&&S.response&&(S.response.data=Oa.call(_,_.transformResponse,S.response),S.response.headers=pn.from(S.response.headers))),Promise.reject(S)})}const Xu="1.7.9",Oo={};["object","boolean","number","function","string","symbol"].forEach((_,b)=>{Oo[_]=function(S){return typeof S===_||"a"+(b<1?"n ":" ")+_}});const Ju={};Oo.transitional=function(b,k,S){function D($,M){return"[Axios v"+Xu+"] Transitional option '"+$+"'"+M+(S?". "+S:"")}return($,M,X)=>{if(b===!1)throw new Y(D(M," has been removed"+(k?" in "+k:"")),Y.ERR_DEPRECATED);return k&&!Ju[M]&&(Ju[M]=!0,console.warn(D(M," has been deprecated since v"+k+" and will be removed in the near future"))),b?b($,M,X):!0}},Oo.spelling=function(b){return(k,S)=>(console.warn(`${S} is likely a misspelling of ${b}`),!0)};function S_(_,b,k){if(typeof _!="object")throw new Y("options must be an object",Y.ERR_BAD_OPTION_VALUE);const S=Object.keys(_);let D=S.length;for(;D-- >0;){const $=S[D],M=b[$];if(M){const X=_[$],se=X===void 0||M(X,$,_);if(se!==!0)throw new Y("option "+$+" must be "+se,Y.ERR_BAD_OPTION_VALUE);continue}if(k!==!0)throw new Y("Unknown option "+$,Y.ERR_BAD_OPTION)}}var Ro={assertOptions:S_,validators:Oo};const En=Ro.validators;class Do{constructor(b){this.defaults=b,this.interceptors={request:new It,response:new It}}async request(b,k){try{return await this._request(b,k)}catch(S){if(S instanceof Error){let D={};Error.captureStackTrace?Error.captureStackTrace(D):D=new Error;const $=D.stack?D.stack.replace(/^.+\n/,""):"";try{S.stack?$&&!String(S.stack).endsWith($.replace(/^.+\n.+\n/,""))&&(S.stack+=` -`+$):S.stack=$}catch{}}throw S}}_request(b,k){typeof b=="string"?(k=k||{},k.url=b):k=b||{},k=Ar(this.defaults,k);const{transitional:S,paramsSerializer:D,headers:$}=k;S!==void 0&&Ro.assertOptions(S,{silentJSONParsing:En.transitional(En.boolean),forcedJSONParsing:En.transitional(En.boolean),clarifyTimeoutError:En.transitional(En.boolean)},!1),D!=null&&(P.isFunction(D)?k.paramsSerializer={serialize:D}:Ro.assertOptions(D,{encode:En.function,serialize:En.function},!0)),Ro.assertOptions(k,{baseUrl:En.spelling("baseURL"),withXsrfToken:En.spelling("withXSRFToken")},!0),k.method=(k.method||this.defaults.method||"get").toLowerCase();let M=$&&P.merge($.common,$[k.method]);$&&P.forEach(["delete","get","head","post","put","patch","common"],ce=>{delete $[ce]}),k.headers=pn.concat(M,$);const X=[];let se=!0;this.interceptors.request.forEach(function(Ee){typeof Ee.runWhen=="function"&&Ee.runWhen(k)===!1||(se=se&&Ee.synchronous,X.unshift(Ee.fulfilled,Ee.rejected))});const ne=[];this.interceptors.response.forEach(function(Ee){ne.push(Ee.fulfilled,Ee.rejected)});let re,ue=0,Ge;if(!se){const ce=[Yu.bind(this),void 0];for(ce.unshift.apply(ce,X),ce.push.apply(ce,ne),Ge=ce.length,re=Promise.resolve(k);ue {if(!S._listeners)return;let $=S._listeners.length;for(;$-- >0;)S._listeners[$](D);S._listeners=null}),this.promise.then=D=>{let $;const M=new Promise(X=>{S.subscribe(X),$=X}).then(D);return M.cancel=function(){S.unsubscribe($)},M},b(function($,M,X){S.reason||(S.reason=new ai($,M,X),k(S.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(b){if(this.reason){b(this.reason);return}this._listeners?this._listeners.push(b):this._listeners=[b]}unsubscribe(b){if(!this._listeners)return;const k=this._listeners.indexOf(b);k!==-1&&this._listeners.splice(k,1)}toAbortSignal(){const b=new AbortController,k=S=>{b.abort(S)};return this.subscribe(k),b.signal.unsubscribe=()=>this.unsubscribe(k),b.signal}static source(){let b;return{token:new La(function(D){b=D}),cancel:b}}}var T_=La;function A_(_){return function(k){return _.apply(null,k)}}function C_(_){return P.isObject(_)&&_.isAxiosError===!0}const Na={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Na).forEach(([_,b])=>{Na[b]=_});var I_=Na;function Qu(_){const b=new Po(_),k=e(Po.prototype.request,b);return P.extend(k,Po.prototype,b,{allOwnKeys:!0}),P.extend(k,b,null,{allOwnKeys:!0}),k.create=function(D){return Qu(Ar(_,D))},k}const ut=Qu(Di);return ut.Axios=Po,ut.CanceledError=ai,ut.CancelToken=T_,ut.isCancel=$u,ut.VERSION=Xu,ut.toFormData=B,ut.AxiosError=Y,ut.Cancel=ut.CanceledError,ut.all=function(b){return Promise.all(b)},ut.spread=A_,ut.isAxiosError=C_,ut.mergeConfig=Ar,ut.AxiosHeaders=pn,ut.formToJSON=_=>Oi(P.isHTMLForm(_)?new FormData(_):_),ut.getAdapter=zu.getAdapter,ut.HttpStatusCode=I_,ut.default=ut,es=ut,es}var Kc;function Bb(){if(Kc)return Kt;Kc=1;var e=Kt&&Kt.__assign||function(){return e=Object.assign||function(a){for(var s,l=1,u=arguments.length;l0&&d[d.length-1])&&(v[0]===6||v[0]===2)){l=0;continue}if(v[0]===3&&(!d||v[1]>d[0]&&v[1] -1e3&&F<1e3||I.call(/e/,B))return B;var pe=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof F=="number"){var Ne=F<0?-ee(-F):ee(F);if(Ne!==F){var je=String(Ne),ye=m.call(B,je.length+1);return E.call(je,pe,"$&_")+"."+E.call(E.call(ye,/([0-9]{3})/g,"$&_"),/_$/,"")}}return E.call(B,pe,"$&_")}var Te=Hb,Ze=Te.custom,Ye=A(Ze)?Ze:null,He={__proto__:null,double:'"',single:"'"},_t={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};ns=function F(B,pe,Ne,je){var ye=pe||{};if(j(ye,"quoteStyle")&&!j(He,ye.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(j(ye,"maxStringLength")&&(typeof ye.maxStringLength=="number"?ye.maxStringLength<0&&ye.maxStringLength!==1/0:ye.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var dn=j(ye,"customInspect")?ye.customInspect:!0;if(typeof dn!="boolean"&&dn!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(j(ye,"indent")&&ye.indent!==null&&ye.indent!==" "&&!(parseInt(ye.indent,10)===ye.indent&&ye.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(j(ye,"numericSeparator")&&typeof ye.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var $n=ye.numericSeparator;if(typeof B>"u")return"undefined";if(B===null)return"null";if(typeof B=="boolean")return B?"true":"false";if(typeof B=="string")return P(B,ye);if(typeof B=="number"){if(B===0)return 1/0/B>0?"0":"-0";var It=String(B);return $n?ie(B,It):It}if(typeof B=="bigint"){var fn=String(B)+"n";return $n?ie(B,fn):fn}var Ti=typeof ye.depth>"u"?5:ye.depth;if(typeof Ne>"u"&&(Ne=0),Ne>=Ti&&Ti>0&&typeof B=="object")return te(B)?"[Array]":"[Object]";var Qn=St(ye,Ne);if(typeof je>"u")je=[];else if(T(je,B)>=0)return"[Circular]";function Wt(Zn,kr,Sr){if(kr&&(je=Z.call(je),je.push(kr)),Sr){var Tr={depth:ye.depth};return j(ye,"quoteStyle")&&(Tr.quoteStyle=ye.quoteStyle),F(Zn,Tr,Ne+1,je)}return F(Zn,ye,Ne+1,je)}if(typeof B=="function"&&!Le(B)){var wo=w(B),ni=nn(B,Wt);return"[Function"+(wo?": "+wo:" (anonymous)")+"]"+(ni.length>0?" { "+q.call(ni,", ")+" }":"")}if(A(B)){var ri=Oe?E.call(String(B),/^(Symbol\(.*\))_[^)]*$/,"$1"):ke.call(B);return typeof B=="object"&&!Oe?me(ri):ri}if(H(B)){for(var wr="<"+O.call(String(B.nodeName)),Ai=B.attributes||[],ii=0;ii ",B.childNodes&&B.childNodes.length&&(wr+="..."),wr+=""+O.call(String(B.nodeName))+">",wr}if(te(B)){if(B.length===0)return"[]";var Ci=nn(B,Wt);return Qn&&!et(Ci)?"["+st(Ci,Qn)+"]":"[ "+q.call(Ci,", ")+" ]"}if(De(B)){var lt=nn(B,Wt);return!("cause"in Error.prototype)&&"cause"in B&&!Re.call(B,"cause")?"{ ["+String(B)+"] "+q.call(C.call("[cause]: "+Wt(B.cause),lt),", ")+" }":lt.length===0?"["+String(B)+"]":"{ ["+String(B)+"] "+q.call(lt,", ")+" }"}if(typeof B=="object"&&dn){if(Ye&&typeof B[Ye]=="function"&&Te)return Te(B,{depth:Ti-Ne});if(dn!=="symbol"&&typeof B.inspect=="function")return B.inspect()}if(N(B)){var ko=[];return r&&r.call(B,function(Zn,kr){ko.push(Wt(kr,B,!0)+" => "+Wt(Zn,B))}),Xe("Map",n.call(B),ko,Qn)}if(J(B)){var So=[];return s&&s.call(B,function(Zn){So.push(Wt(Zn,B))}),Xe("Set",a.call(B),So,Qn)}if(U(B))return be("WeakMap");if(L(B))return be("WeakSet");if(G(B))return be("WeakRef");if(Ce(B))return me(Wt(Number(B)));if(R(B))return me(Wt(ae.call(B)));if(xe(B))return me(y.call(B));if(le(B))return me(Wt(String(B)));if(typeof window<"u"&&B===window)return"{ [object Window] }";if(typeof globalThis<"u"&&B===globalThis||typeof ao<"u"&&B===ao)return"{ [object globalThis] }";if(!Ae(B)&&!Le(B)){var Ii=nn(B,Wt),Oi=he?he(B)===Object.prototype:B instanceof Object||B.constructor===Object,Ri=B instanceof Object?"":"null prototype",oi=!Oi&&ge&&Object(B)===B&&ge in B?m.call(K(B),8,-1):Ri?"Object":"",Di=Oi||typeof B.constructor!="function"?"":B.constructor.name?B.constructor.name+" ":"",Pi=Di+(oi||Ri?"["+q.call(C.call([],oi||[],Ri||[]),": ")+"] ":"");return Ii.length===0?Pi+"{}":Qn?Pi+"{"+st(Ii,Qn)+"}":Pi+"{ "+q.call(Ii,", ")+" }"}return String(B)};function rt(F,B,pe){var Ne=pe.quoteStyle||B,je=He[Ne];return je+F+je}function W(F){return E.call(String(F),/"/g,""")}function te(F){return K(F)==="[object Array]"&&(!ge||!(typeof F=="object"&&ge in F))}function Ae(F){return K(F)==="[object Date]"&&(!ge||!(typeof F=="object"&&ge in F))}function Le(F){return K(F)==="[object RegExp]"&&(!ge||!(typeof F=="object"&&ge in F))}function De(F){return K(F)==="[object Error]"&&(!ge||!(typeof F=="object"&&ge in F))}function le(F){return K(F)==="[object String]"&&(!ge||!(typeof F=="object"&&ge in F))}function Ce(F){return K(F)==="[object Number]"&&(!ge||!(typeof F=="object"&&ge in F))}function xe(F){return K(F)==="[object Boolean]"&&(!ge||!(typeof F=="object"&&ge in F))}function A(F){if(Oe)return F&&typeof F=="object"&&F instanceof Symbol;if(typeof F=="symbol")return!0;if(!F||typeof F!="object"||!ke)return!1;try{return ke.call(F),!0}catch{}return!1}function R(F){if(!F||typeof F!="object"||!ae)return!1;try{return ae.call(F),!0}catch{}return!1}var V=Object.prototype.hasOwnProperty||function(F){return F in this};function j(F,B){return V.call(F,B)}function K(F){return v.call(F)}function w(F){if(F.name)return F.name;var B=h.call(p.call(F),/^function\s*([\w$]+)/);return B?B[1]:null}function T(F,B){if(F.indexOf)return F.indexOf(B);for(var pe=0,Ne=F.length;pe B.maxStringLength){var pe=F.length-B.maxStringLength,Ne="... "+pe+" more character"+(pe>1?"s":"");return P(m.call(F,0,B.maxStringLength),B)+Ne}var je=_t[B.quoteStyle||"single"];je.lastIndex=0;var ye=E.call(E.call(F,je,"\\$1"),/[\x00-\x1f]/g,Y);return rt(ye,"single",B)}function Y(F){var B=F.charCodeAt(0),pe={8:"b",9:"t",10:"n",12:"f",13:"r"}[B];return pe?"\\"+pe:"\\x"+(B<16?"0":"")+x.call(B.toString(16))}function me(F){return"Object("+F+")"}function be(F){return F+" { ? }"}function Xe(F,B,pe,Ne){var je=Ne?st(pe,Ne):q.call(pe,", ");return F+" ("+B+") {"+je+"}"}function et(F){for(var B=0;B =0)return!1;return!0}function St(F,B){var pe;if(F.indent===" ")pe=" ";else if(typeof F.indent=="number"&&F.indent>0)pe=q.call(Array(F.indent+1)," ");else return null;return{base:pe,prev:q.call(Array(B+1),pe)}}function st(F,B){if(F.length===0)return"";var pe=` -`+B.prev+B.base;return pe+q.call(F,","+pe)+` -`+B.prev}function nn(F,B){var pe=te(F),Ne=[];if(pe){Ne.length=F.length;for(var je=0;je "u"||!C?e:C(Uint8Array),Oe={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":I&&C?C([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":Q,"%AsyncGenerator%":Q,"%AsyncGeneratorFunction%":Q,"%AsyncIteratorPrototype%":Q,"%Atomics%":typeof Atomics>"u"?e:Atomics,"%BigInt%":typeof BigInt>"u"?e:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?e:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":n,"%eval%":eval,"%EvalError%":r,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":p,"%GeneratorFunction%":Q,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":I&&C?C(C([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!I||!C?e:C(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":m,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":i,"%ReferenceError%":o,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!I||!C?e:C(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":I&&C?C(""[Symbol.iterator]()):e,"%Symbol%":I?Symbol:e,"%SyntaxError%":a,"%ThrowTypeError%":O,"%TypedArray%":ke,"%TypeError%":s,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":l,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet,"%Function.prototype.call%":ae,"%Function.prototype.apply%":ee,"%Object.defineProperty%":E,"%Object.getPrototypeOf%":q,"%Math.abs%":u,"%Math.floor%":c,"%Math.max%":d,"%Math.min%":f,"%Math.pow%":g,"%Math.round%":y,"%Math.sign%":v,"%Reflect.getPrototypeOf%":Z};if(C)try{null.error}catch(De){var ge=C(C(De));Oe["%Error.prototype%"]=ge}var Re=function De(le){var Ce;if(le==="%AsyncFunction%")Ce=h("async function () {}");else if(le==="%GeneratorFunction%")Ce=h("function* () {}");else if(le==="%AsyncGeneratorFunction%")Ce=h("async function* () {}");else if(le==="%AsyncGenerator%"){var xe=De("%AsyncGeneratorFunction%");xe&&(Ce=xe.prototype)}else if(le==="%AsyncIteratorPrototype%"){var A=De("%AsyncGenerator%");A&&C&&(Ce=C(A.prototype))}return Oe[le]=Ce,Ce},he={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},ie=ba(),Te=py(),Ze=ie.call(ae,Array.prototype.concat),Ye=ie.call(ee,Array.prototype.splice),He=ie.call(ae,String.prototype.replace),_t=ie.call(ae,String.prototype.slice),rt=ie.call(ae,RegExp.prototype.exec),W=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,te=/\\(\\)?/g,Ae=function(le){var Ce=_t(le,0,1),xe=_t(le,-1);if(Ce==="%"&&xe!=="%")throw new a("invalid intrinsic syntax, expected closing `%`");if(xe==="%"&&Ce!=="%")throw new a("invalid intrinsic syntax, expected opening `%`");var A=[];return He(le,W,function(R,V,j,K){A[A.length]=j?He(K,te,"$1"):V||R}),A},Le=function(le,Ce){var xe=le,A;if(Te(he,xe)&&(A=he[xe],xe="%"+A[0]+"%"),Te(Oe,xe)){var R=Oe[xe];if(R===Q&&(R=Re(xe)),typeof R>"u"&&!Ce)throw new s("intrinsic "+le+" exists, but is not available. Please file an issue!");return{alias:A,name:xe,value:R}}throw new a("intrinsic "+le+" does not exist!")};return $s=function(le,Ce){if(typeof le!="string"||le.length===0)throw new s("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof Ce!="boolean")throw new s('"allowMissing" argument must be a boolean');if(rt(/^%?[^%]*%?$/,le)===null)throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var xe=Ae(le),A=xe.length>0?xe[0]:"",R=Le("%"+A+"%",Ce),V=R.name,j=R.value,K=!1,w=R.alias;w&&(A=w[0],Ye(xe,Ze([0,1],w)));for(var T=1,N=!0;T =xe.length){var L=m(j,U);N=!!L,N&&"get"in L&&!("originalValue"in L.get)?j=L.get:j=j[U]}else N=Te(j,U),j=j[U];N&&!K&&(Oe[V]=j)}}return j},$s}var Ms,Rd;function ih(){if(Rd)return Ms;Rd=1;var e=fu(),t=rh(),n=t([e("%String.prototype.indexOf%")]);return Ms=function(i,o){var a=e(i,!!o);return typeof a=="function"&&n(i,".prototype.")>-1?t([a]):a},Ms}var Bs,Dd;function oh(){if(Dd)return Bs;Dd=1;var e=fu(),t=ih(),n=ga(),r=Si(),i=e("%Map%",!0),o=t("Map.prototype.get",!0),a=t("Map.prototype.set",!0),s=t("Map.prototype.has",!0),l=t("Map.prototype.delete",!0),u=t("Map.prototype.size",!0);return Bs=!!i&&function(){var d,f={assert:function(g){if(!f.has(g))throw new r("Side channel does not contain "+n(g))},delete:function(g){if(d){var y=l(d,g);return u(d)===0&&(d=void 0),y}return!1},get:function(g){if(d)return o(d,g)},has:function(g){return d?s(d,g):!1},set:function(g,y){d||(d=new i),a(d,g,y)}};return f},Bs}var Fs,Pd;function hy(){if(Pd)return Fs;Pd=1;var e=fu(),t=ih(),n=ga(),r=oh(),i=Si(),o=e("%WeakMap%",!0),a=t("WeakMap.prototype.get",!0),s=t("WeakMap.prototype.set",!0),l=t("WeakMap.prototype.has",!0),u=t("WeakMap.prototype.delete",!0);return Fs=o?function(){var d,f,g={assert:function(y){if(!g.has(y))throw new i("Side channel does not contain "+n(y))},delete:function(y){if(o&&y&&(typeof y=="object"||typeof y=="function")){if(d)return u(d,y)}else if(r&&f)return f.delete(y);return!1},get:function(y){return o&&y&&(typeof y=="object"||typeof y=="function")&&d?a(d,y):f&&f.get(y)},has:function(y){return o&&y&&(typeof y=="object"||typeof y=="function")&&d?l(d,y):!!f&&f.has(y)},set:function(y,v){o&&y&&(typeof y=="object"||typeof y=="function")?(d||(d=new o),s(d,y,v)):r&&(f||(f=r()),f.set(y,v))}};return g}:r,Fs}var Us,Ld;function _y(){if(Ld)return Us;Ld=1;var e=Si(),t=ga(),n=jb(),r=oh(),i=hy(),o=i||r||n;return Us=function(){var s,l={assert:function(u){if(!l.has(u))throw new e("Side channel does not contain "+t(u))},delete:function(u){return!!s&&s.delete(u)},get:function(u){return s&&s.get(u)},has:function(u){return!!s&&s.has(u)},set:function(u,c){s||(s=o()),s.set(u,c)}};return l},Us}var Vs,Nd;function pu(){if(Nd)return Vs;Nd=1;var e=String.prototype.replace,t=/%20/g,n={RFC1738:"RFC1738",RFC3986:"RFC3986"};return Vs={default:n.RFC3986,formatters:{RFC1738:function(r){return e.call(r,t,"+")},RFC3986:function(r){return String(r)}},RFC1738:n.RFC1738,RFC3986:n.RFC3986},Vs}var Hs,$d;function ah(){if($d)return Hs;$d=1;var e=pu(),t=Object.prototype.hasOwnProperty,n=Array.isArray,r=function(){for(var p=[],h=0;h<256;++h)p.push("%"+((h<16?"0":"")+h.toString(16)).toUpperCase());return p}(),i=function(h){for(;h.length>1;){var m=h.pop(),E=m.obj[m.prop];if(n(E)){for(var x=[],O=0;O =u?I.slice(q,q+u):I,ee=[],ae=0;ae =48&&Q<=57||Q>=65&&Q<=90||Q>=97&&Q<=122||O===e.RFC1738&&(Q===40||Q===41)){ee[ee.length]=Z.charAt(ae);continue}if(Q<128){ee[ee.length]=r[Q];continue}if(Q<2048){ee[ee.length]=r[192|Q>>6]+r[128|Q&63];continue}if(Q<55296||Q>=57344){ee[ee.length]=r[224|Q>>12]+r[128|Q>>6&63]+r[128|Q&63];continue}ae+=1,Q=65536+((Q&1023)<<10|Z.charCodeAt(ae)&1023),ee[ee.length]=r[240|Q>>18]+r[128|Q>>12&63]+r[128|Q>>6&63]+r[128|Q&63]}C+=ee.join("")}return C},d=function(h){for(var m=[{obj:{o:h},prop:"o"}],E=[],x=0;x "u"&&(Ze=0)}if(typeof Z=="function"?ie=Z(h,ie):ie instanceof Date?ie=Q(ie):m==="comma"&&o(ie)&&(ie=t.maybeMap(ie,function(V){return V instanceof Date?Q(V):V})),ie===null){if(O)return q&&!ge?q(h,c.encoder,Re,"key",ke):h;ie=""}if(d(ie)||t.isBuffer(ie)){if(q){var _t=ge?h:q(h,c.encoder,Re,"key",ke);return[Oe(_t)+"="+Oe(q(ie,c.encoder,Re,"value",ke))]}return[Oe(h)+"="+Oe(String(ie))]}var rt=[];if(typeof ie>"u")return rt;var W;if(m==="comma"&&o(ie))ge&&q&&(ie=t.maybeMap(ie,q)),W=[{value:ie.length>0?ie.join(",")||null:void 0}];else if(o(Z))W=Z;else{var te=Object.keys(ie);W=ee?te.sort(ee):te}var Ae=C?String(h).replace(/\./g,"%2E"):String(h),Le=E&&o(ie)&&ie.length===1?Ae+"[]":Ae;if(x&&o(ie)&&ie.length===0)return Le+"[]";for(var De=0;De "u"?p.encodeDotInKeys===!0?!0:c.allowDots:!!p.allowDots;return{addQueryPrefix:typeof p.addQueryPrefix=="boolean"?p.addQueryPrefix:c.addQueryPrefix,allowDots:I,allowEmptyArrays:typeof p.allowEmptyArrays=="boolean"?!!p.allowEmptyArrays:c.allowEmptyArrays,arrayFormat:O,charset:h,charsetSentinel:typeof p.charsetSentinel=="boolean"?p.charsetSentinel:c.charsetSentinel,commaRoundTrip:!!p.commaRoundTrip,delimiter:typeof p.delimiter>"u"?c.delimiter:p.delimiter,encode:typeof p.encode=="boolean"?p.encode:c.encode,encodeDotInKeys:typeof p.encodeDotInKeys=="boolean"?p.encodeDotInKeys:c.encodeDotInKeys,encoder:typeof p.encoder=="function"?p.encoder:c.encoder,encodeValuesOnly:typeof p.encodeValuesOnly=="boolean"?p.encodeValuesOnly:c.encodeValuesOnly,filter:x,format:m,formatter:E,serializeDate:typeof p.serializeDate=="function"?p.serializeDate:c.serializeDate,skipNulls:typeof p.skipNulls=="boolean"?p.skipNulls:c.skipNulls,sort:typeof p.sort=="function"?p.sort:null,strictNullHandling:typeof p.strictNullHandling=="boolean"?p.strictNullHandling:c.strictNullHandling}};return js=function(v,p){var h=v,m=y(p),E,x;typeof m.filter=="function"?(x=m.filter,h=x("",h)):o(m.filter)&&(x=m.filter,E=x);var O=[];if(typeof h!="object"||h===null)return"";var I=i[m.arrayFormat],C=I==="comma"&&m.commaRoundTrip;E||(E=Object.keys(h)),m.sort&&E.sort(m.sort);for(var q=e(),Z=0;Z 0?ke+Q:""},js}var qs,Bd;function gy(){if(Bd)return qs;Bd=1;var e=ah(),t=Object.prototype.hasOwnProperty,n=Array.isArray,r={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:e.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},i=function(f){return f.replace(/(\d+);/g,function(g,y){return String.fromCharCode(parseInt(y,10))})},o=function(f,g,y){if(f&&typeof f=="string"&&g.comma&&f.indexOf(",")>-1)return f.split(",");if(g.throwOnLimitExceeded&&y>=g.arrayLimit)throw new RangeError("Array limit exceeded. Only "+g.arrayLimit+" element"+(g.arrayLimit===1?"":"s")+" allowed in an array.");return f},a="utf8=%26%2310003%3B",s="utf8=%E2%9C%93",l=function(g,y){var v={__proto__:null},p=y.ignoreQueryPrefix?g.replace(/^\?/,""):g;p=p.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var h=y.parameterLimit===1/0?void 0:y.parameterLimit,m=p.split(y.delimiter,y.throwOnLimitExceeded?h+1:h);if(y.throwOnLimitExceeded&&m.length>h)throw new RangeError("Parameter limit exceeded. Only "+h+" parameter"+(h===1?"":"s")+" allowed.");var E=-1,x,O=y.charset;if(y.charsetSentinel)for(x=0;x -1&&(ee=n(ee)?[ee]:ee);var ae=t.call(v,Z);ae&&y.duplicates==="combine"?v[Z]=e.combine(v[Z],ee):(!ae||y.duplicates==="last")&&(v[Z]=ee)}return v},u=function(f,g,y,v){var p=0;if(f.length>0&&f[f.length-1]==="[]"){var h=f.slice(0,-1).join("");p=Array.isArray(g)&&g[h]?g[h].length:0}for(var m=v?g:o(g,y,p),E=f.length-1;E>=0;--E){var x,O=f[E];if(O==="[]"&&y.parseArrays)x=y.allowEmptyArrays&&(m===""||y.strictNullHandling&&m===null)?[]:e.combine([],m);else{x=y.plainObjects?{__proto__:null}:{};var I=O.charAt(0)==="["&&O.charAt(O.length-1)==="]"?O.slice(1,-1):O,C=y.decodeDotInKeys?I.replace(/%2E/g,"."):I,q=parseInt(C,10);!y.parseArrays&&C===""?x={0:m}:!isNaN(q)&&O!==C&&String(q)===C&&q>=0&&y.parseArrays&&q<=y.arrayLimit?(x=[],x[q]=m):C!=="__proto__"&&(x[C]=m)}m=x}return m},c=function(g,y,v,p){if(g){var h=v.allowDots?g.replace(/\.([^.[]+)/g,"[$1]"):g,m=/(\[[^[\]]*])/,E=/(\[[^[\]]*])/g,x=v.depth>0&&m.exec(h),O=x?h.slice(0,x.index):h,I=[];if(O){if(!v.plainObjects&&t.call(Object.prototype,O)&&!v.allowPrototypes)return;I.push(O)}for(var C=0;v.depth>0&&(x=E.exec(h))!==null&&C "u"?r.charset:g.charset,v=typeof g.duplicates>"u"?r.duplicates:g.duplicates;if(v!=="combine"&&v!=="first"&&v!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var p=typeof g.allowDots>"u"?g.decodeDotInKeys===!0?!0:r.allowDots:!!g.allowDots;return{allowDots:p,allowEmptyArrays:typeof g.allowEmptyArrays=="boolean"?!!g.allowEmptyArrays:r.allowEmptyArrays,allowPrototypes:typeof g.allowPrototypes=="boolean"?g.allowPrototypes:r.allowPrototypes,allowSparse:typeof g.allowSparse=="boolean"?g.allowSparse:r.allowSparse,arrayLimit:typeof g.arrayLimit=="number"?g.arrayLimit:r.arrayLimit,charset:y,charsetSentinel:typeof g.charsetSentinel=="boolean"?g.charsetSentinel:r.charsetSentinel,comma:typeof g.comma=="boolean"?g.comma:r.comma,decodeDotInKeys:typeof g.decodeDotInKeys=="boolean"?g.decodeDotInKeys:r.decodeDotInKeys,decoder:typeof g.decoder=="function"?g.decoder:r.decoder,delimiter:typeof g.delimiter=="string"||e.isRegExp(g.delimiter)?g.delimiter:r.delimiter,depth:typeof g.depth=="number"||g.depth===!1?+g.depth:r.depth,duplicates:v,ignoreQueryPrefix:g.ignoreQueryPrefix===!0,interpretNumericEntities:typeof g.interpretNumericEntities=="boolean"?g.interpretNumericEntities:r.interpretNumericEntities,parameterLimit:typeof g.parameterLimit=="number"?g.parameterLimit:r.parameterLimit,parseArrays:g.parseArrays!==!1,plainObjects:typeof g.plainObjects=="boolean"?g.plainObjects:r.plainObjects,strictDepth:typeof g.strictDepth=="boolean"?!!g.strictDepth:r.strictDepth,strictNullHandling:typeof g.strictNullHandling=="boolean"?g.strictNullHandling:r.strictNullHandling,throwOnLimitExceeded:typeof g.throwOnLimitExceeded=="boolean"?g.throwOnLimitExceeded:!1}};return qs=function(f,g){var y=d(g);if(f===""||f===null||typeof f>"u")return y.plainObjects?{__proto__:null}:{};for(var v=typeof f=="string"?l(f,y):f,p=y.plainObjects?{__proto__:null}:{},h=Object.keys(v),m=0;m 255||(Le=W.charCodeAt(xe++))>255||(De=W.charCodeAt(xe++))>255)throw new TypeError("invalid character found");te=Ae<<16|Le<<8|De,le+=l[te>>18&63]+l[te>>12&63]+l[te>>6&63]+l[te&63]}return Ce?le.slice(0,Ce-3)+"===".substring(Ce):le},p=typeof btoa=="function"?function(W){return btoa(W)}:i?function(W){return Buffer.from(W,"binary").toString("base64")}:v,h=i?function(W){return Buffer.from(W).toString("base64")}:function(W){for(var te=4096,Ae=[],Le=0,De=W.length;Le >>6)+d(128|te&63):d(224|te>>>12&15)+d(128|te>>>6&63)+d(128|te&63)}else{var te=65536+(W.charCodeAt(0)-55296)*1024+(W.charCodeAt(1)-56320);return d(240|te>>>18&7)+d(128|te>>>12&63)+d(128|te>>>6&63)+d(128|te&63)}},x=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,O=function(W){return W.replace(x,E)},I=i?function(W){return Buffer.from(W,"utf8").toString("base64")}:a?function(W){return h(a.encode(W))}:function(W){return p(O(W))},C=function(W,te){return te===void 0&&(te=!1),te?g(I(W)):I(W)},q=function(W){return C(W,!0)},Z=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,ee=function(W){switch(W.length){case 4:var te=(7&W.charCodeAt(0))<<18|(63&W.charCodeAt(1))<<12|(63&W.charCodeAt(2))<<6|63&W.charCodeAt(3),Ae=te-65536;return d((Ae>>>10)+55296)+d((Ae&1023)+56320);case 3:return d((15&W.charCodeAt(0))<<12|(63&W.charCodeAt(1))<<6|63&W.charCodeAt(2));default:return d((31&W.charCodeAt(0))<<6|63&W.charCodeAt(1))}},ae=function(W){return W.replace(Z,ee)},Q=function(W){if(W=W.replace(/\s+/g,""),!c.test(W))throw new TypeError("malformed base64.");W+="==".slice(2-(W.length&3));for(var te,Ae="",Le,De,le=0;le >16&255):De===64?d(te>>16&255,te>>8&255):d(te>>16&255,te>>8&255,te&255);return Ae},ke=typeof atob=="function"?function(W){return atob(y(W))}:i?function(W){return Buffer.from(W,"base64").toString("binary")}:Q,Oe=i?function(W){return f(Buffer.from(W,"base64"))}:function(W){return f(ke(W).split("").map(function(te){return te.charCodeAt(0)}))},ge=function(W){return Oe(he(W))},Re=i?function(W){return Buffer.from(W,"base64").toString("utf8")}:o?function(W){return o.decode(Oe(W))}:function(W){return ae(ke(W))},he=function(W){return y(W.replace(/[-_]/g,function(te){return te=="-"?"+":"/"}))},ie=function(W){return Re(he(W))},Te=function(W){if(typeof W!="string")return!1;var te=W.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(te)||!/[^\s0-9a-zA-Z\-_]/.test(te)},Ze=function(W){return{value:W,enumerable:!1,writable:!0,configurable:!0}},Ye=function(){var W=function(te,Ae){return Object.defineProperty(String.prototype,te,Ze(Ae))};W("fromBase64",function(){return ie(this)}),W("toBase64",function(te){return C(this,te)}),W("toBase64URI",function(){return C(this,!0)}),W("toBase64URL",function(){return C(this,!0)}),W("toUint8Array",function(){return ge(this)})},He=function(){var W=function(te,Ae){return Object.defineProperty(Uint8Array.prototype,te,Ze(Ae))};W("toBase64",function(te){return m(this,te)}),W("toBase64URI",function(){return m(this,!0)}),W("toBase64URL",function(){return m(this,!0)})},_t=function(){Ye(),He()},rt={version:n,VERSION:r,atob:ke,atobPolyfill:Q,btoa:p,btoaPolyfill:v,fromBase64:ie,toBase64:C,encode:C,encodeURI:q,encodeURL:q,utob:O,btou:ae,decode:ie,isValid:Te,fromUint8Array:m,toUint8Array:ge,extendString:Ye,extendUint8Array:He,extendBuiltins:_t};return rt.Base64={},Object.keys(rt).forEach(function(W){return rt.Base64[W]=rt[W]}),rt})}(qo)),qo.exports}var Vd;function xy(){if(Vd)return zt;Vd=1;var e=zt&&zt.__assign||function(){return e=Object.assign||function(d){for(var f,g=1,y=arguments.length;g 0&&p[p.length-1])&&(x[0]===6||x[0]===2)){g=0;continue}if(x[0]===3&&(!p||x[1]>p[0]&&x[1] u?(m=[e({},p)],Z={method:"post",headers:e(e({},this.headers),{"X-HTTP-Method-Override":"GET"})},[4,this.buildData(y)]):[3,3];case 2:return[2,e.apply(void 0,m.concat([(Z.data=Q.sent(),Z)]))];case 3:return[2,e(e({},p),{url:I})];case 4:return y instanceof i.default?[4,this.buildData(y)]:[3,6];case 5:return E=Q.sent(),[2,e(e({},p),{headers:typeof E.getHeaders=="function"?e(e({},this.headers),E.getHeaders()):this.headers,data:E})];case 6:return x=[e({},p)],ee={},[4,this.buildData(y)];case 7:return[2,e.apply(void 0,x.concat([(ee.data=Q.sent(),ee)]))];case 8:return O=[e({},p)],ae={},[4,this.buildData(y)];case 9:return[2,e.apply(void 0,O.concat([(ae.data=Q.sent(),ae)]))];case 10:return C=this.buildRequestUrl,q=[g],[4,this.buildData(y)];case 11:return I=C.apply(this,q.concat([Q.sent()])),[2,e(e({},p),{url:I})];case 12:throw new Error("".concat(f," method is not supported"));case 13:return[2]}})})},d.prototype.buildProxyConfig=function(f){var g;if(f!==void 0){if(f===!1)return!1;var y=f;return y.auth&&(y.auth.username.length===0||y.auth.password.length===0)&&(y.auth=void 0),y.protocol=(g=y.protocol)!==null&&g!==void 0?g:l,y}},d.prototype.buildRequestUrl=function(f,g){return"".concat(this.baseUrl).concat(f,"?").concat(o.default.stringify(g))},d.prototype.buildData=function(f){return t(this,void 0,void 0,function(){var g;return n(this,function(y){switch(y.label){case 0:return this.auth.type!=="session"?[3,2]:[4,this.getRequestToken()];case 1:return g=y.sent(),f instanceof i.default?(f.append("__REQUEST_TOKEN__",g),[2,f]):[2,e({__REQUEST_TOKEN__:g},f)];case 2:return[2,f]}})})},d.prototype.buildHeaders=function(f){var g=f.basicAuth,y=f.userAgent,v=g?{Authorization:"Basic ".concat(a.Base64.encode("".concat(g.username,":").concat(g.password)))}:{},p=s.platformDeps.buildHeaders({userAgent:y}),h=e(e({},p),v);switch(this.auth.type){case"password":return e(e({},h),{"X-Cybozu-Authorization":a.Base64.encode("".concat(this.auth.username,":").concat(this.auth.password))});case"apiToken":{var m=this.auth.apiToken;return Array.isArray(m)?e(e({},h),{"X-Cybozu-API-Token":m.join(",")}):e(e({},h),{"X-Cybozu-API-Token":m})}case"oAuthToken":return e(e({},h),{Authorization:"Bearer ".concat(this.auth.oAuthToken)});default:return e(e({},h),{"X-Requested-With":"XMLHttpRequest"})}},d.prototype.getRequestToken=function(){return t(this,void 0,void 0,function(){var f;return n(this,function(g){switch(g.label){case 0:return this.requestToken!==null?[3,2]:(f=this,[4,s.platformDeps.getRequestToken()]);case 1:f.requestToken=g.sent(),g.label=2;case 2:return[2,this.requestToken]}})})},d}();return zt.KintoneRequestConfigBuilder=c,zt}var Fn={},Hd;function Ey(){if(Hd)return Fn;Hd=1;var e=Fn&&Fn.__assign||function(){return e=Object.assign||function(i){for(var o,a=1,s=arguments.length;a
(e[t]=t,e),{});function Ay(e){return t=>(t==null?void 0:t.type)===e}const Kn=Object.fromEntries(sh.map(e=>[e,Ay(e)]));function Cy(e){return Kn.CALC(e)?e.format==="DAY_HOUR_MINUTE"||e.format==="HOUR_MINUTE":!1}function Iy(e){return!!so(e)}const hu=e=>({type:"LOOKUP_FROM_LEFT",format:e,check:function(t,n){var r;return so(t)&&n?so(n)?t.type===n.type:!1:!!((r=this.format)!=null&&r.find(i=>i===t.type))}}),kl=hu(["SINGLE_LINE_TEXT"]),Oy=hu(["NUMBER"]),ta=hu(["SINGLE_LINE_TEXT","NUMBER"]),lh={type:"CALC_FROM_LEFT",format:{NUMBER:[ta],NUMBER_DIGIT:[ta],DATE:["DATE"],TIME:["TIME"],DATETIME:["DATETIME"],HOUR_MINUTE:[],DAY_HOUR_MINUTE:[]},check:function(e,t){let n=[];return t&&Kn.CALC(t)&&(n=this.format[t.format]),!!n.find(r=>_u(r)&&Py(r)?r.check(e,t):r===e.type)}},ya={type:"LINK",format:{WEB:["WEB"],CALL:["CALL"],MAIL:["MAIL"]},check:function(e,t){let n=[];return t&&Kn.LINK(t)&&(n=this.format[t.protocol]),e&&Kn.LINK(e)?!!n.find(r=>r===e.protocol):!1}},uh={SINGLE_LINE_TEXT:[kl],NUMBER:[Oy],CALC:[lh],DATE:["DATE"],TIME:["TIME"],DATETIME:["DATETIME"],LINK:[ya]},In=e=>({type:"CALC_FROM_RIGHT",format:e,check:function(t,n){var r;return Kn.CALC(t)&&!!((r=this.format)!=null&&r.find(i=>i===t.format))}}),ch={SINGLE_LINE_TEXT:["SINGLE_LINE_TEXT",In(["NUMBER","NUMBER_DIGIT"])],NUMBER:["NUMBER",In(["NUMBER","NUMBER_DIGIT"])],DATE:["DATE",In(["DATE"])],TIME:["TIME",In(["TIME"])],DATETIME:["DATETIME",In(["DATETIME"])],LINK:[ya]};function Ry(e){return e===void 0?Object.keys(ch):e?uh[e.type]:[]}function Dy(e){return e===void 0?Object.keys(uh):e?ch[e.type]:[]}function _u(e){return typeof e=="object"&&!Array.isArray(e)&&"type"in e}function Py(e){return e.type==="LOOKUP_FROM_LEFT"}function so(e){return"lookup"in e}const bi={value:"",label:"--------"};function Xr(){const e=new Date().getTime().toString(36),t=Math.random().toString(36).substring(2,11);return`${e}-${t}`}function Gn(e,t){return e.find(n=>n.id===t)}const Ly=()=>({field:"",condition:"",data:"",id:Xr()}),dh=()=>({leftField:"",rightField:"",id:Xr()}),Ny=()=>({leftField:"",rightField:"",id:Xr()});function Sl(e=Xr()){return fh({id:e,app:""})}function fh(e){return e.table="",ph(e)}function ph(e){return e.onConditions=[dh()],e.fieldsMapping=[Ny()],e.whereConditions=[Ly()],e}const Gs=100,hh=async(e=0,t=[])=>{const{apps:n}=await wl.app.getApps({limit:Gs,offset:e}),r=[...t,...n.map(i=>({value:i.appId,label:i.name+"(ID: "+i.appId+")"}))];return n.length===Gs?hh(e+Gs,r):(r.sort((i,o)=>Number(o.value)-Number(i.value)),r.unshift(bi),r)},_h=async(e=kintone.app.getId())=>{const t=(await wl.app.getFormFields({app:e})).properties;return{fields:$y(t),layout:(await wl.app.getFormLayout({app:e})).layout}};function $y(e){const t={};return Object.values(e).forEach(n=>{Kn.SUBTABLE(n)&&Object.values(n.fields).forEach(r=>{const i=JSON.parse(JSON.stringify(r));i.label="["+n.code+"]."+r.label,t[r.code]=i})}),{...e,...t}}const Tl=({fields:e,layout:t},{subTableCode:n,filterType:r,baseFilter:i,dependFilterField:o,defaultLabel:a,defaultDisableCallback:s,needSubTableField:l=!0})=>{let u,c=e;if(n){const f=t.find(y=>y.type==="SUBTABLE"&&y.code===n);u=(f==null?void 0:f.fields.map(y=>i?i.find(v=>v===y.type)?y.code:"":y.code))||[];const g=c[n];c=(g==null?void 0:g.fields)||{}}else u=mh(t,i,!!l);const d=[{value:bi.value,label:a||bi.label}];return u.reduce((f,g)=>{const y=c[g];return g&&f.push({value:g,label:y.label+"(FC: "+g+")",disabled:s&&s(y)||r&&!My(y,o,r)}),f},d)},My=(e,t,n)=>n.length?!!n.find(r=>_u(r)?r.check(e,t):Kn[r](e)):!0,By=({fields:e},t)=>Object.keys(e).reduce((n,r)=>{const i=e[r];return t&&!Kn[t](i)||n.push({value:r,label:i.label+"(FC: "+r+")"}),n},[bi]),mh=(e,t,n)=>e.reduce((r,i)=>(i.type==="GROUP"?r.push(...mh(i.layout,t,n)):(i.type==="ROW"||n&&i.type==="SUBTABLE")&&r.push(...i.fields.map(o=>"code"in o?t?t.find(a=>a===o.type)&&(o==null?void 0:o.code)||"":o.code:"")),r),[]);function mu(e,{fields:t},n){return gh(t,n)[e]}function gh(e,t,n){if(!e||!t)return e;let r=e;const i=r[t];if(Kn.SUBTABLE(i)){const o=i.fields;Object.values(o).forEach(a=>{typeof a=="object"&&a!==null&&(a.subField=!0)}),n?r={...e,...o}:r=o}return r}const Fy=Lt({__name:"PluginTableActionIconGroup",props:{canAdd:{type:Boolean,default:!0},canDelete:{type:Boolean,default:!0},tableId:{}},setup(e){const t=e,n=Zt("savedData"),r=i=>{if(i==="add"){const o=n.joinTables.findIndex(a=>a.id===t.tableId);o!==-1?n.joinTables.splice(o+1,0,Sl()):n.joinTables.push(Sl())}else n.joinTables.length>1&&(n.joinTables=n.joinTables.filter(o=>o.id!==t.tableId))};return(i,o)=>{const a=eb;return Pe(),it("div",null,[i.canAdd?(Pe(),sn(a,{key:0,"is-add":!0,title:"Add Row",onClick:o[0]||(o[0]=s=>r("add"))})):_r("",!0),i.canDelete?(Pe(),sn(a,{key:1,"is-add":!1,title:"Delete this row",onClick:o[1]||(o[1]=s=>r("remove"))})):_r("",!0)])}}});/** +**/let Uu;const Pd=typeof window<"u"&&window.trustedTypes;if(Pd)try{Uu=Pd.createPolicy("vue",{createHTML:e=>e})}catch{}const w_=Uu?e=>Uu.createHTML(e):e=>e,o1="http://www.w3.org/2000/svg",a1="http://www.w3.org/1998/Math/MathML",yn=typeof document<"u"?document:null,Bd=yn&&yn.createElement("template"),s1={insert:(e,i,t)=>{i.insertBefore(e,t||null)},remove:e=>{const i=e.parentNode;i&&i.removeChild(e)},createElement:(e,i,t,n)=>{const r=i==="svg"?yn.createElementNS(o1,e):i==="mathml"?yn.createElementNS(a1,e):t?yn.createElement(e,{is:t}):yn.createElement(e);return e==="select"&&n&&n.multiple!=null&&r.setAttribute("multiple",n.multiple),r},createText:e=>yn.createTextNode(e),createComment:e=>yn.createComment(e),setText:(e,i)=>{e.nodeValue=i},setElementText:(e,i)=>{e.textContent=i},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>yn.querySelector(e),setScopeId(e,i){e.setAttribute(i,"")},insertStaticContent(e,i,t,n,r,o){const a=t?t.previousSibling:i.lastChild;if(r&&(r===o||r.nextSibling))for(;i.insertBefore(r.cloneNode(!0),t),!(r===o||!(r=r.nextSibling)););else{Bd.innerHTML=w_(n==="svg"?``:n==="mathml"?``:e);const s=Bd.content;if(n==="svg"||n==="mathml"){const l=s.firstChild;for(;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}i.insertBefore(s,t)}return[a?a.nextSibling:i.firstChild,t?t.previousSibling:i.lastChild]}},l1=Symbol("_vtc");function u1(e,i,t){const n=e[l1];n&&(i=(i?[i,...n]:[...n]).join(" ")),i==null?e.removeAttribute("class"):t?e.setAttribute("class",i):e.className=i}const Vd=Symbol("_vod"),c1=Symbol("_vsh"),d1=Symbol(""),p1=/(^|;)\s*display\s*:/;function h1(e,i,t){const n=e.style,r=wt(t);let o=!1;if(t&&!r){if(i)if(wt(i))for(const a of i.split(";")){const s=a.slice(0,a.indexOf(":")).trim();t[s]==null&&Ma(n,s,"")}else for(const a in i)t[a]==null&&Ma(n,a,"");for(const a in t)a==="display"&&(o=!0),Ma(n,a,t[a])}else if(r){if(i!==t){const a=n[d1];a&&(t+=";"+a),n.cssText=t,o=p1.test(t)}}else i&&e.removeAttribute("style");Vd in e&&(e[Vd]=o?n.display:"",e[c1]&&(n.display="none"))}const Hd=/\s*!important$/;function Ma(e,i,t){if(we(t))t.forEach(n=>Ma(e,i,n));else if(t==null&&(t=""),i.startsWith("--"))e.setProperty(i,t);else{const n=f1(e,i);Hd.test(t)?e.setProperty(Mr(n),t.replace(Hd,""),"important"):e[n]=t}}const Ud=["Webkit","Moz","ms"],Ws={};function f1(e,i){const t=Ws[i];if(t)return t;let n=Kn(i);if(n!=="filter"&&n in e)return Ws[i]=n;n=kf(n);for(let r=0;rGs||(v1.then(()=>Gs=0),Gs=Date.now());function x1(e,i){const t=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=t.attached)return;un(k1(n,t.value),i,5,[n])};return t.value=e,t.attached=y1(),t}function k1(e,i){if(we(i)){const t=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{t.call(e),e._stopped=!0},i.map(n=>r=>!r._stopped&&n&&n(r))}else return i}const zd=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,w1=(e,i,t,n,r,o)=>{const a=r==="svg";i==="class"?u1(e,n,a):i==="style"?h1(e,t,n):ts(i)?pc(i)||b1(e,i,t,n,o):(i[0]==="."?(i=i.slice(1),!0):i[0]==="^"?(i=i.slice(1),!1):E1(e,i,n,a))?(Wd(e,i,n),!e.tagName.includes("-")&&(i==="value"||i==="checked"||i==="selected")&&jd(e,i,n,a,o,i!=="value")):e._isVueCE&&(/[A-Z]/.test(i)||!wt(n))?Wd(e,Kn(i),n,o,i):(i==="true-value"?e._trueValue=n:i==="false-value"&&(e._falseValue=n),jd(e,i,n,a))};function E1(e,i,t,n){if(n)return!!(i==="innerHTML"||i==="textContent"||i in e&&zd(i)&&Te(t));if(i==="spellcheck"||i==="draggable"||i==="translate"||i==="form"||i==="list"&&e.tagName==="INPUT"||i==="type"&&e.tagName==="TEXTAREA")return!1;if(i==="width"||i==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return zd(i)&&wt(t)?!1:i in e}const S1=["ctrl","shift","alt","meta"],I1={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,i)=>S1.some(t=>e[`${t}Key`]&&!i.includes(t))},nn=(e,i)=>{const t=e._withMods||(e._withMods={}),n=i.join(".");return t[n]||(t[n]=(r,...o)=>{for(let a=0;a {E_().render(...e)},C1=(...e)=>{const i=E_().createApp(...e),{mount:t}=i;return i.mount=n=>{const r=O1(n);if(!r)return;const o=i._component;!Te(o)&&!o.render&&!o.template&&(o.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const a=t(r,!1,A1(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),a},i};function A1(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function O1(e){return wt(e)?document.querySelector(e):e}/** * @license * Copyright 2019 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const Wo=globalThis,gu=Wo.ShadowRoot&&(Wo.ShadyCSS===void 0||Wo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,bh=Symbol(),Wd=new WeakMap;let Uy=class{constructor(t,n,r){if(this._$cssResult$=!0,r!==bh)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=n}get styleSheet(){let t=this.o;const n=this.t;if(gu&&t===void 0){const r=n!==void 0&&n.length===1;r&&(t=Wd.get(n)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&Wd.set(n,t))}return t}toString(){return this.cssText}};const Vy=e=>new Uy(typeof e=="string"?e:e+"",void 0,bh),Hy=(e,t)=>{if(gu)e.adoptedStyleSheets=t.map(n=>n instanceof CSSStyleSheet?n:n.styleSheet);else for(const n of t){const r=document.createElement("style"),i=Wo.litNonce;i!==void 0&&r.setAttribute("nonce",i),r.textContent=n.cssText,e.appendChild(r)}},Gd=gu?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let n="";for(const r of t.cssRules)n+=r.cssText;return Vy(n)})(e):e;/** + */const Pa=globalThis,Oc=Pa.ShadowRoot&&(Pa.ShadyCSS===void 0||Pa.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,S_=Symbol(),Yd=new WeakMap;let D1=class{constructor(i,t,n){if(this._$cssResult$=!0,n!==S_)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=i,this.t=t}get styleSheet(){let i=this.o;const t=this.t;if(Oc&&i===void 0){const n=t!==void 0&&t.length===1;n&&(i=Yd.get(t)),i===void 0&&((this.o=i=new CSSStyleSheet).replaceSync(this.cssText),n&&Yd.set(t,i))}return i}toString(){return this.cssText}};const R1=e=>new D1(typeof e=="string"?e:e+"",void 0,S_),$1=(e,i)=>{if(Oc)e.adoptedStyleSheets=i.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const t of i){const n=document.createElement("style"),r=Pa.litNonce;r!==void 0&&n.setAttribute("nonce",r),n.textContent=t.cssText,e.appendChild(n)}},Jd=Oc?e=>e:e=>e instanceof CSSStyleSheet?(i=>{let t="";for(const n of i.cssRules)t+=n.cssText;return R1(t)})(e):e;/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const{is:jy,defineProperty:qy,getOwnPropertyDescriptor:Wy,getOwnPropertyNames:Gy,getOwnPropertySymbols:Ky,getPrototypeOf:zy}=Object,lr=globalThis,Kd=lr.trustedTypes,Yy=Kd?Kd.emptyScript:"",Ks=lr.reactiveElementPolyfillSupport,Yi=(e,t)=>e,na={toAttribute(e,t){switch(t){case Boolean:e=e?Yy:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let n=e;switch(t){case Boolean:n=e!==null;break;case Number:n=e===null?null:Number(e);break;case Object:case Array:try{n=JSON.parse(e)}catch{n=null}}return n}},bu=(e,t)=>!jy(e,t),zd={attribute:!0,type:String,converter:na,reflect:!1,hasChanged:bu};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),lr.litPropertyMetadata??(lr.litPropertyMetadata=new WeakMap);let ui=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,n=zd){if(n.state&&(n.attribute=!1),this._$Ei(),this.elementProperties.set(t,n),!n.noAccessor){const r=Symbol(),i=this.getPropertyDescriptor(t,r,n);i!==void 0&&qy(this.prototype,t,i)}}static getPropertyDescriptor(t,n,r){const{get:i,set:o}=Wy(this.prototype,t)??{get(){return this[n]},set(a){this[n]=a}};return{get(){return i==null?void 0:i.call(this)},set(a){const s=i==null?void 0:i.call(this);o.call(this,a),this.requestUpdate(t,s,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??zd}static _$Ei(){if(this.hasOwnProperty(Yi("elementProperties")))return;const t=zy(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Yi("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Yi("properties"))){const n=this.properties,r=[...Gy(n),...Ky(n)];for(const i of r)this.createProperty(i,n[i])}const t=this[Symbol.metadata];if(t!==null){const n=litPropertyMetadata.get(t);if(n!==void 0)for(const[r,i]of n)this.elementProperties.set(r,i)}this._$Eh=new Map;for(const[n,r]of this.elementProperties){const i=this._$Eu(n,r);i!==void 0&&this._$Eh.set(i,n)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const n=[];if(Array.isArray(t)){const r=new Set(t.flat(1/0).reverse());for(const i of r)n.unshift(Gd(i))}else t!==void 0&&n.push(Gd(t));return n}static _$Eu(t,n){const r=n.attribute;return r===!1?void 0:typeof r=="string"?r:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(n=>this.enableUpdating=n),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(n=>n(this))}addController(t){var n;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((n=t.hostConnected)==null||n.call(t))}removeController(t){var n;(n=this._$EO)==null||n.delete(t)}_$E_(){const t=new Map,n=this.constructor.elementProperties;for(const r of n.keys())this.hasOwnProperty(r)&&(t.set(r,this[r]),delete this[r]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Hy(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(n=>{var r;return(r=n.hostConnected)==null?void 0:r.call(n)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(n=>{var r;return(r=n.hostDisconnected)==null?void 0:r.call(n)})}attributeChangedCallback(t,n,r){this._$AK(t,r)}_$EC(t,n){var o;const r=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,r);if(i!==void 0&&r.reflect===!0){const a=(((o=r.converter)==null?void 0:o.toAttribute)!==void 0?r.converter:na).toAttribute(n,r.type);this._$Em=t,a==null?this.removeAttribute(i):this.setAttribute(i,a),this._$Em=null}}_$AK(t,n){var o;const r=this.constructor,i=r._$Eh.get(t);if(i!==void 0&&this._$Em!==i){const a=r.getPropertyOptions(i),s=typeof a.converter=="function"?{fromAttribute:a.converter}:((o=a.converter)==null?void 0:o.fromAttribute)!==void 0?a.converter:na;this._$Em=i,this[i]=s.fromAttribute(n,a.type),this._$Em=null}}requestUpdate(t,n,r){if(t!==void 0){if(r??(r=this.constructor.getPropertyOptions(t)),!(r.hasChanged??bu)(this[t],n))return;this.P(t,n,r)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,n,r){this._$AL.has(t)||this._$AL.set(t,n),r.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(n){Promise.reject(n)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var r;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[o,a]of this._$Ep)this[o]=a;this._$Ep=void 0}const i=this.constructor.elementProperties;if(i.size>0)for(const[o,a]of i)a.wrapped!==!0||this._$AL.has(o)||this[o]===void 0||this.P(o,this[o],a)}let t=!1;const n=this._$AL;try{t=this.shouldUpdate(n),t?(this.willUpdate(n),(r=this._$EO)==null||r.forEach(i=>{var o;return(o=i.hostUpdate)==null?void 0:o.call(i)}),this.update(n)):this._$EU()}catch(i){throw t=!1,this._$EU(),i}t&&this._$AE(n)}willUpdate(t){}_$AE(t){var n;(n=this._$EO)==null||n.forEach(r=>{var i;return(i=r.hostUpdated)==null?void 0:i.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(n=>this._$EC(n,this[n]))),this._$EU()}updated(t){}firstUpdated(t){}};ui.elementStyles=[],ui.shadowRootOptions={mode:"open"},ui[Yi("elementProperties")]=new Map,ui[Yi("finalized")]=new Map,Ks==null||Ks({ReactiveElement:ui}),(lr.reactiveElementVersions??(lr.reactiveElementVersions=[])).push("2.0.4");/** + */const{is:L1,defineProperty:N1,getOwnPropertyDescriptor:M1,getOwnPropertyNames:P1,getOwnPropertySymbols:B1,getPrototypeOf:V1}=Object,qn=globalThis,Xd=qn.trustedTypes,H1=Xd?Xd.emptyScript:"",qs=qn.reactiveElementPolyfillSupport,Vo=(e,i)=>e,Ja={toAttribute(e,i){switch(i){case Boolean:e=e?H1:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,i){let t=e;switch(i){case Boolean:t=e!==null;break;case Number:t=e===null?null:Number(e);break;case Object:case Array:try{t=JSON.parse(e)}catch{t=null}}return t}},Dc=(e,i)=>!L1(e,i),Zd={attribute:!0,type:String,converter:Ja,reflect:!1,hasChanged:Dc};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),qn.litPropertyMetadata??(qn.litPropertyMetadata=new WeakMap);let Jr=class extends HTMLElement{static addInitializer(i){this._$Ei(),(this.l??(this.l=[])).push(i)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(i,t=Zd){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(i,t),!t.noAccessor){const n=Symbol(),r=this.getPropertyDescriptor(i,n,t);r!==void 0&&N1(this.prototype,i,r)}}static getPropertyDescriptor(i,t,n){const{get:r,set:o}=M1(this.prototype,i)??{get(){return this[t]},set(a){this[t]=a}};return{get(){return r==null?void 0:r.call(this)},set(a){const s=r==null?void 0:r.call(this);o.call(this,a),this.requestUpdate(i,s,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(i){return this.elementProperties.get(i)??Zd}static _$Ei(){if(this.hasOwnProperty(Vo("elementProperties")))return;const i=V1(this);i.finalize(),i.l!==void 0&&(this.l=[...i.l]),this.elementProperties=new Map(i.elementProperties)}static finalize(){if(this.hasOwnProperty(Vo("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Vo("properties"))){const t=this.properties,n=[...P1(t),...B1(t)];for(const r of n)this.createProperty(r,t[r])}const i=this[Symbol.metadata];if(i!==null){const t=litPropertyMetadata.get(i);if(t!==void 0)for(const[n,r]of t)this.elementProperties.set(n,r)}this._$Eh=new Map;for(const[t,n]of this.elementProperties){const r=this._$Eu(t,n);r!==void 0&&this._$Eh.set(r,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(i){const t=[];if(Array.isArray(i)){const n=new Set(i.flat(1/0).reverse());for(const r of n)t.unshift(Jd(r))}else i!==void 0&&t.push(Jd(i));return t}static _$Eu(i,t){const n=t.attribute;return n===!1?void 0:typeof n=="string"?n:typeof i=="string"?i.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var i;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(i=this.constructor.l)==null||i.forEach(t=>t(this))}addController(i){var t;(this._$EO??(this._$EO=new Set)).add(i),this.renderRoot!==void 0&&this.isConnected&&((t=i.hostConnected)==null||t.call(i))}removeController(i){var t;(t=this._$EO)==null||t.delete(i)}_$E_(){const i=new Map,t=this.constructor.elementProperties;for(const n of t.keys())this.hasOwnProperty(n)&&(i.set(n,this[n]),delete this[n]);i.size>0&&(this._$Ep=i)}createRenderRoot(){const i=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return $1(i,this.constructor.elementStyles),i}connectedCallback(){var i;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(i=this._$EO)==null||i.forEach(t=>{var n;return(n=t.hostConnected)==null?void 0:n.call(t)})}enableUpdating(i){}disconnectedCallback(){var i;(i=this._$EO)==null||i.forEach(t=>{var n;return(n=t.hostDisconnected)==null?void 0:n.call(t)})}attributeChangedCallback(i,t,n){this._$AK(i,n)}_$EC(i,t){var o;const n=this.constructor.elementProperties.get(i),r=this.constructor._$Eu(i,n);if(r!==void 0&&n.reflect===!0){const a=(((o=n.converter)==null?void 0:o.toAttribute)!==void 0?n.converter:Ja).toAttribute(t,n.type);this._$Em=i,a==null?this.removeAttribute(r):this.setAttribute(r,a),this._$Em=null}}_$AK(i,t){var o;const n=this.constructor,r=n._$Eh.get(i);if(r!==void 0&&this._$Em!==r){const a=n.getPropertyOptions(r),s=typeof a.converter=="function"?{fromAttribute:a.converter}:((o=a.converter)==null?void 0:o.fromAttribute)!==void 0?a.converter:Ja;this._$Em=r,this[r]=s.fromAttribute(t,a.type),this._$Em=null}}requestUpdate(i,t,n){if(i!==void 0){if(n??(n=this.constructor.getPropertyOptions(i)),!(n.hasChanged??Dc)(this[i],t))return;this.P(i,t,n)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(i,t,n){this._$AL.has(i)||this._$AL.set(i,t),n.reflect===!0&&this._$Em!==i&&(this._$Ej??(this._$Ej=new Set)).add(i)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const i=this.scheduleUpdate();return i!=null&&await i,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var n;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[o,a]of this._$Ep)this[o]=a;this._$Ep=void 0}const r=this.constructor.elementProperties;if(r.size>0)for(const[o,a]of r)a.wrapped!==!0||this._$AL.has(o)||this[o]===void 0||this.P(o,this[o],a)}let i=!1;const t=this._$AL;try{i=this.shouldUpdate(t),i?(this.willUpdate(t),(n=this._$EO)==null||n.forEach(r=>{var o;return(o=r.hostUpdate)==null?void 0:o.call(r)}),this.update(t)):this._$EU()}catch(r){throw i=!1,this._$EU(),r}i&&this._$AE(t)}willUpdate(i){}_$AE(i){var t;(t=this._$EO)==null||t.forEach(n=>{var r;return(r=n.hostUpdated)==null?void 0:r.call(n)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(i)),this.updated(i)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(i){return!0}update(i){this._$Ej&&(this._$Ej=this._$Ej.forEach(t=>this._$EC(t,this[t]))),this._$EU()}updated(i){}firstUpdated(i){}};Jr.elementStyles=[],Jr.shadowRootOptions={mode:"open"},Jr[Vo("elementProperties")]=new Map,Jr[Vo("finalized")]=new Map,qs==null||qs({ReactiveElement:Jr}),(qn.reactiveElementVersions??(qn.reactiveElementVersions=[])).push("2.0.4");/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const Xi=globalThis,ra=Xi.trustedTypes,Yd=ra?ra.createPolicy("lit-html",{createHTML:e=>e}):void 0,yh="$lit$",or=`lit$${Math.random().toFixed(9).slice(2)}$`,vh="?"+or,Xy=`<${vh}>`,Jr=document,lo=()=>Jr.createComment(""),uo=e=>e===null||typeof e!="object"&&typeof e!="function",yu=Array.isArray,Jy=e=>yu(e)||typeof(e==null?void 0:e[Symbol.iterator])=="function",zs=`[ -\f\r]`,Mi=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Xd=/-->/g,Jd=/>/g,Ur=RegExp(`>|${zs}(?:([^\\s"'>=/]+)(${zs}*=${zs}*(?:[^ -\f\r"'\`<>=]|("|')|))|$)`,"g"),Qd=/'/g,Zd=/"/g,xh=/^(?:script|style|textarea|title)$/i,Eh=e=>(t,...n)=>({_$litType$:e,strings:t,values:n}),fe=Eh(1),ur=Eh(2),Qr=Symbol.for("lit-noChange"),ct=Symbol.for("lit-nothing"),ef=new WeakMap,jr=Jr.createTreeWalker(Jr,129);function wh(e,t){if(!yu(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return Yd!==void 0?Yd.createHTML(t):t}const Qy=(e,t)=>{const n=e.length-1,r=[];let i,o=t===2?"":t===3?"":"")),r]};class co{constructor({strings:t,_$litType$:n},r){let i;this.parts=[];let o=0,a=0;const s=t.length-1,l=this.parts,[u,c]=Qy(t,n);if(this.el=co.createElement(u,r),jr.currentNode=this.el.content,n===2||n===3){const d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(i=jr.nextNode())!==null&&l.length 0){i.textContent=ra?ra.emptyScript:"";for(let g=0;g2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=ct}_$AI(t,n=this,r,i){const o=this.strings;let a=!1;if(o===void 0)t=yi(this,t,n,0),a=!uo(t)||t!==this._$AH&&t!==Qr,a&&(this._$AH=t);else{const s=t;let l,u;for(t=o[0],l=0;l {const r=(n==null?void 0:n.renderBefore)??t;let i=r._$litPart$;if(i===void 0){const o=(n==null?void 0:n.renderBefore)??null;r._$litPart$=i=new yo(t.insertBefore(lo(),o),o,void 0,n??{})}return i._$AI(e),i};/** + */const Ho=globalThis,Xa=Ho.trustedTypes,Qd=Xa?Xa.createPolicy("lit-html",{createHTML:e=>e}):void 0,I_="$lit$",jn=`lit$${Math.random().toFixed(9).slice(2)}$`,T_="?"+jn,U1=`<${T_}>`,Rr=document,Xo=()=>Rr.createComment(""),Zo=e=>e===null||typeof e!="object"&&typeof e!="function",Rc=Array.isArray,F1=e=>Rc(e)||typeof(e==null?void 0:e[Symbol.iterator])=="function",zs=`[ +\f\r]`,To=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ep=/-->/g,tp=/>/g,dr=RegExp(`>|${zs}(?:([^\\s"'>=/]+)(${zs}*=${zs}*(?:[^ +\f\r"'\`<>=]|("|')|))|$)`,"g"),ip=/'/g,np=/"/g,C_=/^(?:script|style|textarea|title)$/i,A_=e=>(i,...t)=>({_$litType$:e,strings:i,values:t}),Y=A_(1),Be=A_(2),$r=Symbol.for("lit-noChange"),yt=Symbol.for("lit-nothing"),rp=new WeakMap,Sr=Rr.createTreeWalker(Rr,129);function O_(e,i){if(!Rc(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return Qd!==void 0?Qd.createHTML(i):i}const j1=(e,i)=>{const t=e.length-1,n=[];let r,o=i===2?"":i===3?"":"")),n]};class Qo{constructor({strings:i,_$litType$:t},n){let r;this.parts=[];let o=0,a=0;const s=i.length-1,l=this.parts,[u,c]=j1(i,t);if(this.el=Qo.createElement(u,n),Sr.currentNode=this.el.content,t===2||t===3){const d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(r=Sr.nextNode())!==null&&l.length 0){r.textContent=Xa?Xa.emptyScript:"";for(let b=0;b2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=yt}_$AI(i,t=this,n,r){const o=this.strings;let a=!1;if(o===void 0)i=ao(this,i,t,0),a=!Zo(i)||i!==this._$AH&&i!==$r,a&&(this._$AH=i);else{const s=i;let l,u;for(i=o[0],l=0;l {const n=(t==null?void 0:t.renderBefore)??i;let r=n._$litPart$;if(r===void 0){const o=(t==null?void 0:t.renderBefore)??null;n._$litPart$=r=new ua(i.insertBefore(Xo(),o),o,void 0,t??{})}return r._$AI(e),r};/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */let Ji=class extends ui{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var n;const t=super.createRenderRoot();return(n=this.renderOptions).renderBefore??(n.renderBefore=t.firstChild),t}update(t){const n=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=iv(n,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return Qr}};var jf;Ji._$litElement$=!0,Ji.finalized=!0,(jf=globalThis.litElementHydrateSupport)==null||jf.call(globalThis,{LitElement:Ji});const Xs=globalThis.litElementPolyfillSupport;Xs==null||Xs({LitElement:Ji});(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.1.1");/** + */let Uo=class extends Jr{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t;const i=super.createRenderRoot();return(t=this.renderOptions).renderBefore??(t.renderBefore=i.firstChild),i}update(i){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(i),this._$Do=Y1(t,this.renderRoot,this.renderOptions)}connectedCallback(){var i;super.connectedCallback(),(i=this._$Do)==null||i.setConnected(!0)}disconnectedCallback(){var i;super.disconnectedCallback(),(i=this._$Do)==null||i.setConnected(!1)}render(){return $r}};var bf;Uo._$litElement$=!0,Uo.finalized=!0,(bf=globalThis.litElementHydrateSupport)==null||bf.call(globalThis,{LitElement:Uo});const Ys=globalThis.litElementPolyfillSupport;Ys==null||Ys({LitElement:Uo});(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.1.1");/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const ov={attribute:!0,type:String,converter:na,reflect:!1,hasChanged:bu},av=(e=ov,t,n)=>{const{kind:r,metadata:i}=n;let o=globalThis.litPropertyMetadata.get(i);if(o===void 0&&globalThis.litPropertyMetadata.set(i,o=new Map),o.set(n.name,e),r==="accessor"){const{name:a}=n;return{set(s){const l=t.get.call(this);t.set.call(this,s),this.requestUpdate(a,l,e)},init(s){return s!==void 0&&this.P(a,void 0,e),s}}}if(r==="setter"){const{name:a}=n;return function(s){const l=this[a];t.call(this,s),this.requestUpdate(a,l,e)}}throw Error("Unsupported decorator location: "+r)};function z(e){return(t,n)=>typeof n=="object"?av(e,t,n):((r,i,o)=>{const a=i.hasOwnProperty(o);return i.constructor.createProperty(o,a?{...r,wrapped:!0}:r),a?Object.getOwnPropertyDescriptor(i,o):void 0})(e,t,n)}/** + */const J1={attribute:!0,type:String,converter:Ja,reflect:!1,hasChanged:Dc},X1=(e=J1,i,t)=>{const{kind:n,metadata:r}=t;let o=globalThis.litPropertyMetadata.get(r);if(o===void 0&&globalThis.litPropertyMetadata.set(r,o=new Map),o.set(t.name,e),n==="accessor"){const{name:a}=t;return{set(s){const l=i.get.call(this);i.set.call(this,s),this.requestUpdate(a,l,e)},init(s){return s!==void 0&&this.P(a,void 0,e),s}}}if(n==="setter"){const{name:a}=t;return function(s){const l=this[a];i.call(this,s),this.requestUpdate(a,l,e)}}throw Error("Unsupported decorator location: "+n)};function k(e){return(i,t)=>typeof t=="object"?X1(e,i,t):((n,r,o)=>{const a=r.hasOwnProperty(o);return r.constructor.createProperty(o,a?{...n,wrapped:!0}:n),a?Object.getOwnPropertyDescriptor(r,o):void 0})(e,i,t)}/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */function yt(e){return z({...e,state:!0,attribute:!1})}/** + */function ge(e){return k({...e,state:!0,attribute:!1})}/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const kh=(e,t,n)=>(n.configurable=!0,n.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(e,t,n),n);/** + */const D_=(e,i,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof i!="object"&&Object.defineProperty(e,i,t),t);/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */function we(e,t){return(n,r,i)=>{const o=a=>{var s;return((s=a.renderRoot)==null?void 0:s.querySelector(e))??null};return kh(n,r,{get(){return o(this)}})}}/** + */function le(e,i){return(t,n,r)=>{const o=a=>{var s;return((s=a.renderRoot)==null?void 0:s.querySelector(e))??null};return D_(t,n,{get(){return o(this)}})}}/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */let sv;function Al(e){return(t,n)=>kh(t,n,{get(){return(this.renderRoot??sv??(sv=document.createDocumentFragment())).querySelectorAll(e)}})}const ar={ITEMS:{IS_NOT_ARRAY:"'items' property is not array.",IS_DUPLICATED:"'value' property is not unique in items.",IS_NOT_SPECIFIED:"'value' property is not specified in items."},FILES:{IS_NOT_ARRAY:"'files' property is not array."},VALUE:{IS_NOT_ARRAY:"'value' property is not array.",IS_NOT_STRING:"'value' property is not string."},SELECTED_INDEX:{IS_NOT_ARRAY:"'selectedIndex' property is not array.",IS_NOT_NUMBER:"'selectedIndex' property is not number."},COLUMNS:{IS_NOT_ARRAY:"'columns' property is not array.",FIELD_REQUIRED:"'field' property is not specified in columns.",FIELD_UNIQUE:"'field' property is not unique in columns."},ROWS_PER_PAGE:{INVALID:"'rowsPerPage' property is not positive integer."},DATA:{IS_NOT_ARRAY:"'data' property is not array."},CONTAINER:{INVALID:"'container' property is not HTMLElement."}};/** + */let Z1;function ti(e){return(i,t)=>D_(i,t,{get(){return(this.renderRoot??Z1??(Z1=document.createDocumentFragment())).querySelectorAll(e)}})}const op=1024,ap=1048576,sp=1073741824,Q1="NaN size",lp={ATTACHMENT_BROWSE:"Browse",ATTACHMENT_DRAG_DROP_ZONE:"Drop files here."},e0={ATTACHMENT_BROWSE:"参照",ATTACHMENT_DRAG_DROP_ZONE:"ここにファイルをドロップします。"},t0={ATTACHMENT_BROWSE:"选择文件",ATTACHMENT_DRAG_DROP_ZONE:"拖动文件到此。"},i0={ATTACHMENT_BROWSE:"選擇檔案",ATTACHMENT_DRAG_DROP_ZONE:"拖曳檔案到此。"},n0={ATTACHMENT_BROWSE:"Examinar",ATTACHMENT_DRAG_DROP_ZONE:"Suelte los archivos aquí."},ke={ITEMS:{IS_NOT_ARRAY:"'items' property is not array.",IS_DUPLICATED:"'value' property is not unique in items.",IS_NOT_SPECIFIED:"'value' property is not specified in items."},FILES:{IS_NOT_ARRAY:"'files' property is not array."},VALUE:{IS_NOT_ARRAY:"'value' property is not array.",IS_NOT_STRING:"'value' property is not string."},SELECTED_INDEX:{IS_NOT_ARRAY:"'selectedIndex' property is not array.",IS_NOT_NUMBER:"'selectedIndex' property is not number."},COLUMNS:{IS_NOT_ARRAY:"'columns' property is not array.",FIELD_REQUIRED:"'field' property is not specified in columns.",FIELD_UNIQUE:"'field' property is not unique in columns."},ROWS_PER_PAGE:{INVALID:"'rowsPerPage' property is not positive integer."},DATA:{IS_NOT_ARRAY:"'data' property is not array."},CONTAINER:{INVALID:"'container' property is not HTMLElement."}};/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */const lv={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},uv=e=>(...t)=>({_$litDirective$:e,values:t});let cv=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,n,r){this._$Ct=t,this._$AM=n,this._$Ci=r}_$AS(t,n){return this.update(t,n)}update(t,n){return this.render(...n)}};/** + */const r0={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},o0=e=>(...i)=>({_$litDirective$:e,values:i});let a0=class{constructor(i){}get _$AU(){return this._$AM._$AU}_$AT(i,t,n){this._$Ct=i,this._$AM=t,this._$Ci=n}_$AS(i,t){return this.update(i,t)}update(i,t){return this.render(...t)}};/** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */class Cl extends cv{constructor(t){if(super(t),this.it=ct,t.type!==lv.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===ct||t==null)return this._t=void 0,this.it=t;if(t===Qr)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const n=[t];return n.raw=n,this._t={_$litType$:this.constructor.resultType,strings:n,values:[]}}}Cl.directiveName="unsafeHTML",Cl.resultType=1;const dv=uv(Cl),zr=60,cr=24,vn=12,On={AM:"AM",PM:"PM"},Sh='"max" must be greater than or equal to "min".',Th="Time is out of valid range.",Ah="'timeStep' property is not number.",Il="00:00",Ch="23:59",gn={VALUE:"'value' property format is not valid.",MAX:"'max' property format is not valid.",MIN:"'min' property format is not valid.",TIME_STEP:"'timeStep' property format is not valid."},tf={MONTH_SELECT:["JANUARY","FEBRUARY","MARCH","APRIL","MAY","JUNE","JULY","AUGUST","SEPTEMBER","OCTOBER","NOVEMBER","DECEMBER"],YEAR_SELECT_POSTFIX:"",WEEK_DAYS:[{text:"SUN",abbr:"Sunday"},{text:"MON",abbr:"Monday"},{text:"TUE",abbr:"Tuesday"},{text:"WED",abbr:"Wednesday"},{text:"THU",abbr:"Thursday"},{text:"FRI",abbr:"Friday"},{text:"SAT",abbr:"Saturday"}],INVALID_FORMAT:"Format is not valid.",INVALID_TIME_FORMAT:"Format is not valid.",CALENDAR_FOOTER_TEXT:{none:"None",today:"Today",close:"Close"},TIME_IS_OUT_OF_VALID_RANGE:"Time is out of valid range."},fv={MONTH_SELECT:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],YEAR_SELECT_POSTFIX:"年",WEEK_DAYS:[{text:"日",abbr:"日"},{text:"月",abbr:"月"},{text:"火",abbr:"火"},{text:"水",abbr:"水"},{text:"木",abbr:"木"},{text:"金",abbr:"金"},{text:"土",abbr:"土"}],INVALID_FORMAT:"日付の形式が不正です。",INVALID_TIME_FORMAT:"時刻の形式が不正です。",CALENDAR_FOOTER_TEXT:{none:"選択を解除",today:"今日",close:"閉じる"},TIME_IS_OUT_OF_VALID_RANGE:"時刻が有効な範囲外です。"},pv={MONTH_SELECT:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],YEAR_SELECT_POSTFIX:"年",WEEK_DAYS:[{text:"周日",abbr:"周日"},{text:"周一",abbr:"周一"},{text:"周二",abbr:"周二"},{text:"周三",abbr:"周三"},{text:"周四",abbr:"周四"},{text:"周五",abbr:"周五"},{text:"周六",abbr:"周六"}],INVALID_FORMAT:"日期格式不正确。",INVALID_TIME_FORMAT:"时间格式不正确。",CALENDAR_FOOTER_TEXT:{none:"清空",today:"今天",close:"关闭"},TIME_IS_OUT_OF_VALID_RANGE:"时间超出有效范围。"},hv={MONTH_SELECT:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],YEAR_SELECT_POSTFIX:"年",WEEK_DAYS:[{text:"週日",abbr:"週日"},{text:"週一",abbr:"週一"},{text:"週二",abbr:"週二"},{text:"週三",abbr:"週三"},{text:"週四",abbr:"週四"},{text:"週五",abbr:"週五"},{text:"週六",abbr:"週六"}],INVALID_FORMAT:"日期格式錯誤。",INVALID_TIME_FORMAT:"時間格式錯誤。",CALENDAR_FOOTER_TEXT:{none:"清空",today:"今天",close:"關閉"},TIME_IS_OUT_OF_VALID_RANGE:"時間超出有效範圍。"},_v={MONTH_SELECT:["ENERO","FEBRERO","MARZO","ABRIL","MAYO","JUNIO","JULIO","AGOSTO","SEPTIEMBRE","OCTUBRE","NOVIEMBRE","DICIEMBRE"],YEAR_SELECT_POSTFIX:"",WEEK_DAYS:[{text:"Do.",abbr:"Domingo"},{text:"Lu.",abbr:"Lunes"},{text:"Ma.",abbr:"Martes"},{text:"Mi.",abbr:"Miércoles"},{text:"Ju.",abbr:"Jueves"},{text:"Vi.",abbr:"Viernes"},{text:"Sá.",abbr:"Sábado"}],INVALID_FORMAT:"Formato no válido.",INVALID_TIME_FORMAT:"Formato no válido.",CALENDAR_FOOTER_TEXT:{none:"Ninguno",today:"Hoy",close:"Cerrar"},TIME_IS_OUT_OF_VALID_RANGE:"La hora está fuera del rango válido."},mv=(e,t)=>{const n=Av(e,t);let r=new Date(n.start),i=[];const o=[];for(;r<=n.end;)i.push(kv(r)),i.length===7&&(o.push(i),i=[]),r.setDate(r.getDate()+1),r=new Date(r);return o},gv=(e,t,n,r)=>{const i=[],o=Math.round(t),a=vi(r),s=vi(n);if(o>0){const l=Math.floor((a-s)/o)+1;for(let u=0;u {let n,r;n=Math.floor(e/zr),r=e%zr;const i=n%cr {const t=e.split(":");let n=parseInt(t[0],10),r=parseInt(t[1],10);return isNaN(n)||isNaN(r)?0:(n<0?n=0:n>=cr&&(n=cr-1),r<0?r=0:r>=zr&&(r=zr-1),n*zr+r)},dr=(e,t)=>{const n=vi(e),r=vi(t);return n>r?1:n===r?0:-1},yv=(e,t)=>{const n=e.split(":"),r=parseInt(n[0],10),i=parseInt(n[1],10),o=r%cr;return isNaN(o)||isNaN(i)?{hours:"",minutes:"",suffix:""}:t?Ev(r,i):{hours:tt(o),minutes:tt(i),suffix:""}},vv=e=>{let t=e%vn;return t=t===0?vn:t,t},xv=e=>e>=vn?On.PM:On.AM,Ev=(e,t)=>{const n=xv(e),r=vv(e);return{hours:tt(r),minutes:tt(t),suffix:n}},Js=e=>{const[t,n]=e.split(" "),[r,i]=t.split(":");return n?`${wv(r,n)}:${i}`:e},wv=(e,t)=>{const n=parseInt(e,10);if(t===On.PM){const i=n===vn?12:n+12;return tt(i)}return tt(n===vn?0:n)},kv=e=>{const t=new Date(e),n=t.getFullYear(),r=tt(t.getMonth()+1),i=tt(t.getDate()),o=`${t.getFullYear()}-${t.getMonth()+1}-${t.getDate()}`,a=`${n}-${r}-${i}`;return{text:o,attr:a}},Sv=(e,t)=>{if(t&&!vu(t)){const n=t.split("-");if(n.length!==3)return t;const r=n[0],i=n[1],o=n[2];return e==="en"?`${i}/${o}/${r}`:`${r}-${i}-${o}`}return t},nf=(e,t)=>{if(vu(t))return t;const n=e==="en",r=n?"/":"-",i=t.split(r),o=n?i[2]:i[0],a=n?i[0]:i[1],s=n?i[1]:i[2];return`${o}-${a}-${s}`},vu=e=>e==null||e.length===0||!/[^(^\s*)|(\s*$)]/.test(e),Vi=(e="ja")=>{const t=new Date,n=t.getFullYear(),r=tt(t.getMonth()+1),i=tt(t.getDate());return e==="ja"||e==="zh"?n+"-"+r+"-"+i:r+"/"+i+"/"+n},Tv=(e,t)=>{if(t&&!vu(t)){const n=e==="en",r=n?"/":"-";if(new Date(`${t}${n?"":"T00:00:00"}`).getDate()!==parseInt(t.split(r)[n?1:2],10))return!1;const a=/^(0[1-9]|1[0-2])\/(0[1-9]|[12][0-9]|3[01])\/(\d{4})$/;if(e==="en")return t.match(a)!==null;const s=/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$/g;return t.match(s)!==null}return!1},tt=(e,t=2)=>{const n=`0000000000${e}`;return n.substr(n.length-t)},Av=(e,t)=>{const n=new Date(e,t);n.setDate(1);const r=new Date(n);r.setDate(r.getDate()-r.getDay());const i=new Date(e,t);i.setMonth(i.getMonth()+1,0);const o=new Date(i);o.setDate(o.getDate()+(6-o.getDay()));const a=(o.getTime()-r.getTime())/(1e3*60*60*24);return o.setDate(o.getDate()+(42-a)),{start:r,end:o}},ln=e=>{switch(e){case"en":return tf;case"zh":return pv;case"ja":return fv;case"zh-TW":return hv;case"es":return _v;default:return tf}},Ih=()=>ur` + */let Fu=class extends a0{constructor(i){if(super(i),this.it=yt,i.type!==r0.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(i){if(i===yt||i==null)return this._t=void 0,this.it=i;if(i===$r)return i;if(typeof i!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(i===this.it)return this._t;this.it=i;const t=[i];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}};Fu.directiveName="unsafeHTML",Fu.resultType=1;const s0=o0(Fu),Ar=60,In=24,ji=12,on={AM:"AM",PM:"PM"},R_='"max" must be greater than or equal to "min".',$_="Time is out of valid range.",L_="'timeStep' property is not number.",ju="00:00",N_="23:59",Kt={VALUE:"'value' property format is not valid.",MAX:"'max' property format is not valid.",MIN:"'min' property format is not valid.",TIME_STEP:"'timeStep' property format is not valid."},up={MONTH_SELECT:["JANUARY","FEBRUARY","MARCH","APRIL","MAY","JUNE","JULY","AUGUST","SEPTEMBER","OCTOBER","NOVEMBER","DECEMBER"],YEAR_SELECT_POSTFIX:"",WEEK_DAYS:[{text:"SUN",abbr:"Sunday"},{text:"MON",abbr:"Monday"},{text:"TUE",abbr:"Tuesday"},{text:"WED",abbr:"Wednesday"},{text:"THU",abbr:"Thursday"},{text:"FRI",abbr:"Friday"},{text:"SAT",abbr:"Saturday"}],INVALID_FORMAT:"Format is not valid.",INVALID_TIME_FORMAT:"Format is not valid.",CALENDAR_FOOTER_TEXT:{none:"None",today:"Today",close:"Close"},TIME_IS_OUT_OF_VALID_RANGE:"Time is out of valid range."},l0={MONTH_SELECT:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],YEAR_SELECT_POSTFIX:"年",WEEK_DAYS:[{text:"日",abbr:"日"},{text:"月",abbr:"月"},{text:"火",abbr:"火"},{text:"水",abbr:"水"},{text:"木",abbr:"木"},{text:"金",abbr:"金"},{text:"土",abbr:"土"}],INVALID_FORMAT:"日付の形式が不正です。",INVALID_TIME_FORMAT:"時刻の形式が不正です。",CALENDAR_FOOTER_TEXT:{none:"選択を解除",today:"今日",close:"閉じる"},TIME_IS_OUT_OF_VALID_RANGE:"時刻が有効な範囲外です。"},u0={MONTH_SELECT:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],YEAR_SELECT_POSTFIX:"年",WEEK_DAYS:[{text:"周日",abbr:"周日"},{text:"周一",abbr:"周一"},{text:"周二",abbr:"周二"},{text:"周三",abbr:"周三"},{text:"周四",abbr:"周四"},{text:"周五",abbr:"周五"},{text:"周六",abbr:"周六"}],INVALID_FORMAT:"日期格式不正确。",INVALID_TIME_FORMAT:"时间格式不正确。",CALENDAR_FOOTER_TEXT:{none:"清空",today:"今天",close:"关闭"},TIME_IS_OUT_OF_VALID_RANGE:"时间超出有效范围。"},c0={MONTH_SELECT:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],YEAR_SELECT_POSTFIX:"年",WEEK_DAYS:[{text:"週日",abbr:"週日"},{text:"週一",abbr:"週一"},{text:"週二",abbr:"週二"},{text:"週三",abbr:"週三"},{text:"週四",abbr:"週四"},{text:"週五",abbr:"週五"},{text:"週六",abbr:"週六"}],INVALID_FORMAT:"日期格式錯誤。",INVALID_TIME_FORMAT:"時間格式錯誤。",CALENDAR_FOOTER_TEXT:{none:"清空",today:"今天",close:"關閉"},TIME_IS_OUT_OF_VALID_RANGE:"時間超出有效範圍。"},d0={MONTH_SELECT:["ENERO","FEBRERO","MARZO","ABRIL","MAYO","JUNIO","JULIO","AGOSTO","SEPTIEMBRE","OCTUBRE","NOVIEMBRE","DICIEMBRE"],YEAR_SELECT_POSTFIX:"",WEEK_DAYS:[{text:"Do.",abbr:"Domingo"},{text:"Lu.",abbr:"Lunes"},{text:"Ma.",abbr:"Martes"},{text:"Mi.",abbr:"Miércoles"},{text:"Ju.",abbr:"Jueves"},{text:"Vi.",abbr:"Viernes"},{text:"Sá.",abbr:"Sábado"}],INVALID_FORMAT:"Formato no válido.",INVALID_TIME_FORMAT:"Formato no válido.",CALENDAR_FOOTER_TEXT:{none:"Ninguno",today:"Hoy",close:"Cerrar"},TIME_IS_OUT_OF_VALID_RANGE:"La hora está fuera del rango válido."},M_=(e,i)=>{const t=v0(e,i);let n=new Date(t.start),r=[];const o=[];for(;n<=t.end;)r.push(g0(n)),r.length===7&&(o.push(r),r=[]),n.setDate(n.getDate()+1),n=new Date(n);return o},p0=(e,i,t,n)=>{const r=[],o=Math.round(i),a=so(n),s=so(t);if(o>0){const l=Math.floor((a-s)/o)+1;for(let u=0;u {let t,n;t=Math.floor(e/Ar),n=e%Ar;const r=t%In {const i=e.split(":");let t=parseInt(i[0],10),n=parseInt(i[1],10);return isNaN(t)||isNaN(n)?0:(t<0?t=0:t>=In&&(t=In-1),n<0?n=0:n>=Ar&&(n=Ar-1),t*Ar+n)},zn=(e,i)=>{const t=so(e),n=so(i);return t>n?1:t===n?0:-1},f0=(e,i)=>{const t=e.split(":"),n=parseInt(t[0],10),r=parseInt(t[1],10),o=n%In;return isNaN(o)||isNaN(r)?{hours:"",minutes:"",suffix:""}:i?m0(n,r):{hours:je(o),minutes:je(r),suffix:""}},_0=(e,i)=>{const t={hours:"",minutes:"",suffix:""},n=e.split(":"),r=parseInt(n[0],10),o=parseInt(n[1],10),a=r%In;return isNaN(a)||(t.hours=je(i?P_(a):a),t.suffix=i?B_(a):""),isNaN(o)||(t.minutes=je(o)),t},P_=e=>{let i=e%ji;return i=i===0?ji:i,i},B_=e=>e>=ji?on.PM:on.AM,m0=(e,i)=>{const t=B_(e),n=P_(e);return{hours:je(n),minutes:je(i),suffix:t}},Fo=e=>{const[i,t]=e.split(" "),[n,r]=i.split(":");return t?`${b0(n,t)}:${r}`:e},b0=(e,i)=>{const t=parseInt(e,10);if(i===on.PM){const r=t===ji?12:t+12;return je(r)}return je(t===ji?0:t)},g0=e=>{const i=new Date(e),t=i.getFullYear(),n=je(i.getMonth()+1),r=je(i.getDate()),o=`${i.getFullYear()}-${i.getMonth()+1}-${i.getDate()}`,a=`${t}-${n}-${r}`;return{text:o,attr:a}},V_=(e,i)=>{if(i&&!$c(i)){const t=i.split("-");if(t.length!==3)return i;const n=t[0],r=t[1],o=t[2];return e==="en"?`${r}/${o}/${n}`:`${n}-${r}-${o}`}return i},Wu=(e,i)=>{if($c(i))return i;const t=e==="en",n=t?"/":"-",r=i.split(n),o=t?r[2]:r[0],a=t?r[0]:r[1],s=t?r[1]:r[2];return`${o}-${a}-${s}`},$c=e=>e==null||e.length===0||!/[^(^\s*)|(\s*$)]/.test(e),Wn=(e="ja")=>{const i=new Date,t=i.getFullYear(),n=je(i.getMonth()+1),r=je(i.getDate());return e==="ja"||e==="zh"?t+"-"+n+"-"+r:n+"/"+r+"/"+t},H_=(e,i)=>{if(i&&!$c(i)){const t=e==="en",n=t?"/":"-";if(new Date(`${i}${t?"":"T00:00:00"}`).getDate()!==parseInt(i.split(n)[t?1:2],10))return!1;const a=/^(0[1-9]|1[0-2])\/(0[1-9]|[12][0-9]|3[01])\/(\d{4})$/;if(e==="en")return i.match(a)!==null;const s=/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$/g;return i.match(s)!==null}return!1},je=(e,i=2)=>{const t=`0000000000${e}`;return t.substr(t.length-i)},v0=(e,i)=>{const t=new Date(e,i);t.setDate(1);const n=new Date(t);n.setDate(n.getDate()-n.getDay());const r=new Date(e,i);r.setMonth(r.getMonth()+1,0);const o=new Date(r);o.setDate(o.getDate()+(6-o.getDay()));const a=(o.getTime()-n.getTime())/(1e3*60*60*24);return o.setDate(o.getDate()+(42-a)),{start:n,end:o}},Et=e=>{switch(e){case"en":return up;case"zh":return u0;case"ja":return l0;case"zh-TW":return c0;case"es":return d0;default:return up}},y0=(e=1)=>{const i=[];for(let t=0;t<=59;t+=e)i.push({value:je(t),label:je(t)});return i},x0=(e=!1)=>e?cp("AM").concat(cp("PM")):k0(),cp=e=>{const i=[];i.push({value:`${e} 12`,label:`${e} 12`});for(let t=1;t<=11;t++)i.push({value:`${e} ${je(t)}`,label:`${e} ${je(t)}`});return i},k0=()=>{const e=[];e.push({value:"00",label:"00"});for(let i=1;i<=23;i++)e.push({value:je(i),label:`${je(i)}`});return e},U_=()=>Be` - `,Cv=()=>ur` + `,w0=()=>Be` - `;function ia(e,t){const n=e.querySelector(".kuc-base-datetime-listbox-1-18-0__listbox"),r=xa(e);if(!e.parentElement||!n||!r)return;const{inputToBottom:i,inputToTop:o}=r,l=e.tagName.toLowerCase()==="kuc-base-datetime-header-month-1-18-0"?360:300,u=18,c=e.parentElement.getBoundingClientRect().height;if(n.style.maxHeight=l+"px",e.parentElement.style.position="relative",i>=l){if(n.style.height=l+"px",t==="bottom"){n.style.top=c+"px";return}n.style.bottom=c+"px";return}if(t==="bottom"){n.style.top=c+"px",n.style.height=i-u+"px";return}n.style.height=o-u+"px",n.style.top="auto",n.style.bottom=e.parentElement.getBoundingClientRect().height+"px"}const xa=e=>{var t,n;if(!e.parentElement)return{inputToBottom:0,inputToTop:0,inputToRight:0,inputToLeft:0};const r=(t=e.closest("kuc-base-date-1-18-0"))!==null&&t!==void 0?t:e.closest("kuc-mobile-base-date-1-18-0"),o=((n=r.getElementsByClassName("kuc-base-date-1-18-0__input")[0])!==null&&n!==void 0?n:r.getElementsByClassName("kuc-mobile-base-date-1-18-0__group")[0]).getBoundingClientRect().width,a=window.innerHeight-e.parentElement.getBoundingClientRect().bottom,s=e.parentElement.getBoundingClientRect().top,l=window.innerWidth-e.parentElement.getBoundingClientRect().left,u=e.parentElement.getBoundingClientRect().left+o;return{inputToBottom:a,inputToTop:s,inputToRight:l,inputToLeft:u}},Iv=()=>ur` + `;function Za(e,i){const t=e.querySelector(".kuc-base-datetime-listbox-1-18-0__listbox"),n=ca(e);if(!e.parentElement||!t||!n)return;const{inputToBottom:r,inputToTop:o}=n,l=e.tagName.toLowerCase()==="kuc-base-datetime-header-month-1-18-0"?360:300,u=18,c=e.parentElement.getBoundingClientRect().height;if(t.style.maxHeight=l+"px",e.parentElement.style.position="relative",r>=l){if(t.style.height=l+"px",i==="bottom"){t.style.top=c+"px";return}t.style.bottom=c+"px";return}if(i==="bottom"){t.style.top=c+"px",t.style.height=r-u+"px";return}t.style.height=o-u+"px",t.style.top="auto",t.style.bottom=e.parentElement.getBoundingClientRect().height+"px"}const ca=e=>{var i,t;if(!e.parentElement)return{inputToBottom:0,inputToTop:0,inputToRight:0,inputToLeft:0};const n=(i=e.closest("kuc-base-date-1-18-0"))!==null&&i!==void 0?i:e.closest("kuc-mobile-base-date-1-18-0"),o=((t=n.getElementsByClassName("kuc-base-date-1-18-0__input")[0])!==null&&t!==void 0?t:n.getElementsByClassName("kuc-mobile-base-date-1-18-0__group")[0]).getBoundingClientRect().width,a=window.innerHeight-e.parentElement.getBoundingClientRect().bottom,s=e.parentElement.getBoundingClientRect().top,l=window.innerWidth-e.parentElement.getBoundingClientRect().left,u=e.parentElement.getBoundingClientRect().left+o;return{inputToBottom:a,inputToTop:s,inputToRight:l,inputToLeft:u}},E0=()=>Be` - `,ei={fromAttribute(e){return e===null},toAttribute(e){return e?null:""}},xu={fromAttribute:e=>!e||["en","ja","zh","zh-TW","es"].indexOf(e)===-1,toAttribute:e=>{const t=["en","ja","zh","zh-TW","es"];return t.indexOf(e)!==-1?e:t.indexOf(document.documentElement.lang)!==-1?document.documentElement.lang:"en"}},Oh=e=>e instanceof HTMLElement?e:dv(e),Rh=e=>{if(e===void 0||e==="")return"";let t=[];return e.indexOf("-")>0&&(t=e.split("-")),t.length<2?`${e}-01-01`:t.length===2?`${tt(t[0],4)}-${tt(t[1])}-01`:t.length>2?`${tt(t[0],4)}-${tt(t[1])}-${tt(t[2])}`:""},qr=e=>{if(e.length===5||e==="")return e;const n=e.indexOf(":"),r=e.substr(0,n),i=e.substr(n+1,5);return`${tt(r)}:${tt(i)}`};var At=[];for(var Qs=0;Qs<256;++Qs)At.push((Qs+256).toString(16).slice(1));function Ov(e,t=0){return(At[e[t+0]]+At[e[t+1]]+At[e[t+2]]+At[e[t+3]]+"-"+At[e[t+4]]+At[e[t+5]]+"-"+At[e[t+6]]+At[e[t+7]]+"-"+At[e[t+8]]+At[e[t+9]]+"-"+At[e[t+10]]+At[e[t+11]]+At[e[t+12]]+At[e[t+13]]+At[e[t+14]]+At[e[t+15]]).toLowerCase()}var Bo,Rv=new Uint8Array(16);function Dv(){if(!Bo&&(Bo=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Bo))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Bo(Rv)}var Pv=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const rf={randomUUID:Pv};function Lv(e,t,n){if(rf.randomUUID&&!t&&!e)return rf.randomUUID();e=e||{};var r=e.random||(e.rng||Dv)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,Ov(r)}class vt extends Ji{createRenderRoot(){return this}async throwErrorAfterUpdateComplete(t){throw await this.updateComplete,new Error(t)}}const Ie=(e,t,n)=>{const r=new CustomEvent(t,{detail:n,bubbles:!0,composed:!0});return e.dispatchEvent(r)},xt=e=>{const t="kuc-style-1-18-0";let n=document.getElementById(t);n||(n=document.createElement("style"),n.id=t,document.head.appendChild(n)),n.appendChild(document.createTextNode(e))},vo=()=>Lv();function br(e){if(!e||typeof e!="object")return{};const t={...e};for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&t[n]===void 0&&delete t[n];return t}function Nv(e){return!!(e===""||e===void 0||/(^(\d{1,4})-(0?[1-9]|1[0-2])-(0?[1-9]|[12][0-9]|3[01])$)|(^(\d{1,4})$)|(^(\d{1,4})-(0?[1-9]|1[0-2])$)/g.test(e))}function Qi(e){return!!(e===""||/^(2[0-3]|[01]?[0-9]):([0-9]|[0-5][0-9])$/.test(e))}function Dh(e,t,n){const r=Math.round(e),i=vi(t),o=vi(n);return!isNaN(r)&&r>0&&r<=i-o}function oa(e){const[t,n,r]=e.split("-"),i=new Date(`${e}T00:00:00`),o=i.getFullYear(),a=i.getMonth(),s=i.getDate();return o===Number(t)&&a===Number(n)-1&&s===Number(r)}function $v(e){return typeof e=="string"}function Mv(e,t){const n=/(^(\d{4})-(0[0-9]|1[0-2])-(0[1-9]|([12][0-9]|3[01]))$)|(^(\d{4})$)|(^(\d{4})-(0[0-9]|1[0-2])$)/g,r=/(^([01][0-9]|2[0-3])$)|(^([01][0-9]|2[0-3]):([0-5][0-9]))$|(^([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9])$/;return!(!n.test(e)||!r.test(t))}function Bv(e){return e.length<2?!0:!e.some(t=>e.indexOf(t)!==e.lastIndexOf(t))}const Fv=e=>{for(let t=0;t {const t=e.map(r=>r.field);return t.some(function(r,i){return t.indexOf(r)!==i})};function Ph(e){return typeof e=="number"&&!Number.isNaN(e)}function Ol(e){return Array.isArray(e)}const Vv=` + `,nt={fromAttribute(e){return e===null},toAttribute(e){return e?null:""}},Pr={fromAttribute:e=>!e||["en","ja","zh","zh-TW","es"].indexOf(e)===-1,toAttribute:e=>{const i=["en","ja","zh","zh-TW","es"];return i.indexOf(e)!==-1?e:i.indexOf(document.documentElement.lang)!==-1?document.documentElement.lang:"en"}},ln=e=>e instanceof HTMLElement?e:s0(e),ps=e=>{if(e===void 0||e==="")return"";let i=[];return e.indexOf("-")>0&&(i=e.split("-")),i.length<2?`${e}-01-01`:i.length===2?`${je(i[0],4)}-${je(i[1])}-01`:i.length>2?`${je(i[0],4)}-${je(i[1])}-${je(i[2])}`:""},wn=e=>{if(e.length===5||e==="")return e;const t=e.indexOf(":"),n=e.substr(0,t),r=e.substr(t+1,5);return`${je(n)}:${je(r)}`};var Ht=[];for(var Js=0;Js<256;++Js)Ht.push((Js+256).toString(16).slice(1));function S0(e,i=0){return(Ht[e[i+0]]+Ht[e[i+1]]+Ht[e[i+2]]+Ht[e[i+3]]+"-"+Ht[e[i+4]]+Ht[e[i+5]]+"-"+Ht[e[i+6]]+Ht[e[i+7]]+"-"+Ht[e[i+8]]+Ht[e[i+9]]+"-"+Ht[e[i+10]]+Ht[e[i+11]]+Ht[e[i+12]]+Ht[e[i+13]]+Ht[e[i+14]]+Ht[e[i+15]]).toLowerCase()}var Aa,I0=new Uint8Array(16);function T0(){if(!Aa&&(Aa=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Aa))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Aa(I0)}var C0=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const dp={randomUUID:C0};function A0(e,i,t){if(dp.randomUUID&&!i&&!e)return dp.randomUUID();e=e||{};var n=e.random||(e.rng||T0)();return n[6]=n[6]&15|64,n[8]=n[8]&63|128,S0(n)}class ve extends Uo{createRenderRoot(){return this}async throwErrorAfterUpdateComplete(i){throw await this.updateComplete,new Error(i)}}const ae=(e,i,t)=>{const n=new CustomEvent(i,{detail:t,bubbles:!0,composed:!0});return e.dispatchEvent(n)},ye=e=>{const i="kuc-style-1-18-0";let t=document.getElementById(i);t||(t=document.createElement("style"),t.id=i,document.head.appendChild(t)),t.appendChild(document.createTextNode(e))},pt=()=>A0(),O0=` + kuc-base-error-1-18-0, + kuc-base-error-1-18-0 *, + kuc-base-error-1-18-0:lang(en), + kuc-base-error-1-18-0:lang(en) * { + font-family: sans-serif; + } + kuc-base-error-1-18-0:lang(es), + kuc-base-error-1-18-0:lang(es) * { + font-family: sans-serif; + } + kuc-base-error-1-18-0:lang(ja), + kuc-base-error-1-18-0:lang(ja) * { + font-family: "メイリオ", "Hiragino Kaku Gothic ProN", Meiryo, + sans-serif; + } + kuc-base-error-1-18-0:lang(zh), + kuc-base-error-1-18-0:lang(zh) * { + font-family: "微软雅黑", "Microsoft YaHei", "新宋体", NSimSun, STHeiti, + Hei, "Heiti SC", sans-serif; + } + kuc-base-error-1-18-0:lang(zh-TW), + kuc-base-error-1-18-0:lang(zh-TW) * { + font-family: "微軟正黑體","Microsoft JhengHei","新宋体",NSimSun,STHeiti, + Hei,"Heiti SC",sans-serif; + } + kuc-base-error-1-18-0 { + width: 100%; + font-size: 14px; + display: inline-table; + vertical-align: top; + } + kuc-base-error-1-18-0[hidden] { + display: none; + } + .kuc-base-error-1-18-0__error { + line-height: 1.5; + padding: 4px 18px; + box-sizing: border-box; + background-color: #e74c3c; + color: #ffffff; + margin: 8px 0px; + word-break: break-all; + white-space: normal; + } + .kuc-base-error-1-18-0__error[hidden] { + display: none; + } +`;var Lc=function(e,i,t,n){var r=arguments.length,o=r<3?i:n===null?n=Object.getOwnPropertyDescriptor(i,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,i,t,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(r<3?a(o):r>3?a(i,t,o):a(i,t))||o);return r>3&&o&&Object.defineProperty(i,t,o),o};class hs extends ve{constructor(){super(...arguments),this.ariaLive="",this.guid="",this.text=""}render(){return Y` + ${this.ariaLive&&this.ariaLive!==""?Y` + + ${this.text} ++ `:Y` ++ ${this.text} ++ `} + `}}Lc([k({type:String})],hs.prototype,"ariaLive",void 0);Lc([k({type:String})],hs.prototype,"guid",void 0);Lc([k({type:String})],hs.prototype,"text",void 0);window.customElements.get("kuc-base-error-1-18-0")||(ye(O0),window.customElements.define("kuc-base-error-1-18-0",hs));const D0=` + kuc-base-label-1-18-0, + kuc-base-label-1-18-0 *, + kuc-base-label-1-18-0:lang(en), + kuc-base-label-1-18-0:lang(en) * { + font-family: sans-serif; + } + kuc-base-label-1-18-0:lang(es), + kuc-base-label-1-18-0:lang(es) * { + font-family: sans-serif; + } + kuc-base-label-1-18-0:lang(ja), + kuc-base-label-1-18-0:lang(ja) * { + font-family: "メイリオ", "Hiragino Kaku Gothic ProN", Meiryo, + sans-serif; + } + kuc-base-label-1-18-0:lang(zh), + kuc-base-label-1-18-0:lang(zh) * { + font-family: "微软雅黑", "Microsoft YaHei", "新宋体", NSimSun, STHeiti, + Hei, "Heiti SC", sans-serif; + } + kuc-base-label-1-18-0:lang(zh-TW), + kuc-base-label-1-18-0:lang(zh-TW) * { + font-family: "微軟正黑體","Microsoft JhengHei","新宋体",NSimSun,STHeiti, + Hei,"Heiti SC",sans-serif; + } + kuc-base-label-1-18-0 { + font-size: 14px; + color: #333333; + display: inline-table; + vertical-align: top; + } + kuc-base-label-1-18-0[hidden] { + display: none; + } + .kuc-base-label-1-18-0__required-icon { + font-size: 20px; + vertical-align: -3px; + color: #e74c3c; + margin-left: 4px; + line-height: 1; + } + .kuc-base-label-1-18-0__required-icon[hidden] { + display: none; + } +`;var Nc=function(e,i,t,n){var r=arguments.length,o=r<3?i:n===null?n=Object.getOwnPropertyDescriptor(i,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,i,t,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(r<3?a(o):r>3?a(i,t,o):a(i,t))||o);return r>3&&o&&Object.defineProperty(i,t,o),o};class fs extends ve{constructor(){super(...arguments),this.requiredIcon=!1,this.guid="",this.text=""}render(){return Y` + ${this._getTextTemplate()} + + `}_getTextTemplate(){return this.guid&&this.guid!==""?Y` + ${this.text} + `:Y` ${this.text} `}}Nc([k({type:Boolean})],fs.prototype,"requiredIcon",void 0);Nc([k({type:String})],fs.prototype,"guid",void 0);Nc([k({type:String})],fs.prototype,"text",void 0);window.customElements.get("kuc-base-label-1-18-0")||(ye(D0),window.customElements.define("kuc-base-label-1-18-0",fs));function We(e){if(!e||typeof e!="object")return{};const i={...e};for(const t in i)Object.prototype.hasOwnProperty.call(i,t)&&i[t]===void 0&&delete i[t];return i}function F_(e){return!!(e===""||e===void 0||/(^(\d{1,4})-(0?[1-9]|1[0-2])-(0?[1-9]|[12][0-9]|3[01])$)|(^(\d{1,4})$)|(^(\d{1,4})-(0?[1-9]|1[0-2])$)/g.test(e))}function Or(e){return!!(e===""||/^(2[0-3]|[01]?[0-9]):([0-9]|[0-5][0-9])$/.test(e))}function j_(e,i,t){const n=Math.round(e),r=so(i),o=so(t);return!isNaN(n)&&n>0&&n<=r-o}function Lr(e){const[i,t,n]=e.split("-"),r=new Date(`${e}T00:00:00`),o=r.getFullYear(),a=r.getMonth(),s=r.getDate();return o===Number(i)&&a===Number(t)-1&&s===Number(n)}function ho(e){return typeof e=="string"}function W_(e,i){const t=/(^(\d{4})-(0[0-9]|1[0-2])-(0[1-9]|([12][0-9]|3[01]))$)|(^(\d{4})$)|(^(\d{4})-(0[0-9]|1[0-2])$)/g,n=/(^([01][0-9]|2[0-3])$)|(^([01][0-9]|2[0-3]):([0-5][0-9]))$|(^([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9])$/;return!(!t.test(e)||!n.test(i))}function G_(e){return e.length<2?!0:!e.some(i=>e.indexOf(i)!==e.lastIndexOf(i))}function Xs(e){return!(e<.5||!Br(e))}const R0=e=>{for(let i=0;i{const i=e.map(n=>n.field);return i.some(function(n,r){return i.indexOf(n)!==r})};function L0(e){return/^[1-9]\d*$/.test(e)}function Br(e){return typeof e=="number"&&!Number.isNaN(e)}function it(e){return Array.isArray(e)}const N0=` + kuc-attachment-1-18-0, + kuc-attachment-1-18-0 *, + kuc-attachment-1-18-0:lang(en), + kuc-attachment-1-18-0:lang(en) * { + font-family: sans-serif; + } + kuc-attachment-1-18-0:lang(ja), + kuc-attachment-1-18-0:lang(ja) * { + font-family: "メイリオ", "Hiragino Kaku Gothic ProN", Meiryo, + sans-serif; + } + kuc-attachment-1-18-0:lang(zh), + kuc-attachment-1-18-0:lang(zh) * { + font-family: "微软雅黑", "Microsoft YaHei", "新宋体", NSimSun, STHeiti, + Hei, "Heiti SC", sans-serif; + } + kuc-attachment-1-18-0:lang(zh-TW), + kuc-attachment-1-18-0:lang(zh-TW) * { + font-family: "微軟正黑體","Microsoft JhengHei","新宋体",NSimSun,STHeiti, + Hei,"Heiti SC",sans-serif; + } + kuc-attachment-1-18-0:lang(es), + kuc-attachment-1-18-0:lang(es) * { + font-family: sans-serif; + } + kuc-attachment-1-18-0 { + font-size: 14px; + display: inline-table; + vertical-align: top; + width: var(--kuc-attachment-width, 191px); + min-width: var(--kuc-attachment-width, 191px); + } + kuc-attachment-1-18-0[hidden] { + display: none; + } + .kuc-attachment-1-18-0__group { + width: 100%; + height: auto; + box-sizing: border-box; + position: relative; + display: block; + } + .kuc-attachment-1-18-0__group__label { + display: inline-block; + padding: 4px 0 8px 0; + color: #333333; + white-space: nowrap; + } + .kuc-attachment-1-18-0__group__label[hidden] { + display: none; + } + .kuc-attachment-1-18-0__group__files { + border: solid 1px #e3e7e8; + background-color: #eeeeee; + padding: 16px 4px; + display: block; + font-size: 14px; + overflow: hidden; + position: relative; + box-sizing: border-box; + width: var(--kuc-attachment-width, auto); + height: var(--kuc-attachment-height, auto); + } + .kuc-attachment-1-18-0__group__files--disabled { + cursor: not-allowed; + } + .kuc-attachment-1-18-0__group__files__browse-button { + border: 1px solid transparent; + position: relative; + display: inline-block; + margin-right: 16px; + padding: 8px; + text-decoration: none; + } + .kuc-attachment-1-18-0__group__files__browse-button[hidden]{ + display: none; + } + .kuc-attachment-1-18-0__group__files__browse-button:focus-within { + border: 1px solid #3498db; + } + .kuc-attachment-1-18-0__group__files__browse-button:hover + .kuc-attachment-1-18-0__group__files__browse-button__text { + color: #217dbb; + } + .kuc-attachment-1-18-0__group__files__browse-button__text { + color: #3498db; + font-size: 14px; + } + .kuc-attachment-1-18-0__group__files__browse-button__input-container { + opacity: 0; + position: absolute; + top: 0; + left: 0; + right: 0; + bottom: 0; + overflow: hidden; + display: inline-block; + } + .kuc-attachment-1-18-0__group__files__browse-button__input-container__input { + cursor: pointer; + font-size: 999px; + vertical-align: middle; + height: 100%; + width: 100%; + line-height: 1.5; + } + .kuc-attachment-1-18-0__group__files__display-area { + padding-inline-start: 0px; + list-style-type: disc; + margin-block-start: 0em; + margin-block-end: 0em; + } + .kuc-attachment-1-18-0__group__files__display-area__item { + position: relative; + margin-bottom: 8px; + height: auto; + min-height: 24px; + border: 2px solid #f1f4f5; + background-color: #f1f4f5; + list-style: none; + display: flex; + align-items: center; + } + .kuc-attachment-1-18-0__group__files__display-area__item__name { + display: inline-block; + padding: 3px calc(4.6em + 4px) 3px 26px; + width: 100%; + max-width: 177px; + box-sizing: border-box; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + word-wrap: normal; + font-size: var(--kuc-attachment-item-font-size, 14px); + line-height: 1.2; + } + .kuc-attachment-1-18-0__group__files__display-area__item__remove-button__container { + display: inline-block; + position: absolute; + top: calc(50% - 12px); + left: 0; + width: 24px; + height: 24px; + } + .kuc-attachment-1-18-0__group__files__display-area__item__remove-button__container[hidden] { + display: none; + } + .kuc-attachment-1-18-0__group__files__display-area__item__remove-button__container__button { + background-color: #f2f4f6; + display: flex; + align-items: center; + justify-content: center; + border: 1px solid transparent; + padding: 0px; + width:100%; + height:100%; + } + .kuc-attachment-1-18-0__group__files__display-area__item__remove-button__container__button:hover { + background: #d8e1e6; + } + .kuc-attachment-1-18-0__group__files__display-area__item__remove-button__container__button:focus-within { + border: 1px solid #3498db; + } + .kuc-attachment-1-18-0__group__files__display-area__item__remove-button__container__button:focus { + outline: none; + } + .kuc-attachment-1-18-0__group__files__display-area__item__size { + display: inline-block; + position: absolute; + right: 0; + color: #888888; + padding: 0 3px 0 0; + max-width: 4.6em; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + word-wrap: normal; + font-size: var(--kuc-attachment-item-font-size, 14px); + line-height: 1.2; + } + .kuc-attachment-1-18-0__group__files__droppable { + display: block; + position: absolute; + top: 0; + left: 0; + margin: auto 0; + } + .kuc-attachment-1-18-0__group__files__droppable[hidden] { + display: none; + } + .kuc-attachment-1-18-0__group__files__droppable__text { + background-color: #e2f2fe; + border: dashed 2px #3498db; + display: table-cell; + vertical-align: middle; + text-align: center; + color: #3498db; + font-size: 14px; + } + .kuc-attachment-1-18-0__group__files__browse-message { + display: inline-block; + color: var(--kuc-attachment-message-color, #888888); + font-size: var(--kuc-attachment-message-font-size, 14px); + margin: 3px 0 0; + word-break: break-all; + } + .kuc-attachment-1-18-0__group__files__browse-message--disabled { + color: #888888; + } + .kuc-attachment-1-18-0__group__files__browse-message[hidden] { + display: none; + } + .kuc-attachment-1-18-0__group__files__not-droppable--dragenter { + visibility: hidden; + } +`;var Bt=function(e,i,t,n){var r=arguments.length,o=r<3?i:n===null?n=Object.getOwnPropertyDescriptor(i,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,i,t,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(r<3?a(o):r>3?a(i,t,o):a(i,t))||o);return r>3&&o&&Object.defineProperty(i,t,o),o};let Zs;(()=>{if(Zs=window.customElements.get("kuc-attachment-1-18-0"),Zs)return;class e extends ve{constructor(t){super(),this.className="",this.error="",this.id="",this.label="",this.language="auto",this.message="",this.disabled=!1,this.requiredIcon=!1,this.visible=!0,this.files=[],this._isDraging=!1,this._dragEnterCounter=0,this._locale=this._getLocale(),this._isFileOrDirectoryDrag=r=>{if(!r.dataTransfer)return!1;if(r.dataTransfer.items!==void 0){for(let o=0;o + + + + + `}_getAttachmentItemTemplate(t,n){return Y` + + + + + + `}async updated(t){await this.updateComplete,this._updateFileNameMaxWidth()}_updateFileNameMaxWidth(){const r=this._labelEl.getBoundingClientRect().width;this._fileItemsEl.forEach(o=>{o.style.maxWidth=`calc(var(--kuc-attachment-width, ${r<191?191:r}px) - ${7*2}px)`})}_getRemoveButtonIcon(){return Be``}_getLanguage(){const t=["en","ja","zh","zh-TW","es"];return t.indexOf(this.language)!==-1?this.language:t.indexOf(document.documentElement.lang)!==-1?document.documentElement.lang:"en"}_getLocale(){switch(this._getLanguage()){case"en":return lp;case"zh":return t0;case"zh-TW":return i0;case"ja":return e0;case"es":return n0;default:return lp}}_handleClickFileRemove(t){const n=t.currentTarget,r=parseInt(n.getAttribute("data-file-index"),10);if(this.files){r===this.files.length-1&&this._inputEl.focus();const o=[...this.files];this.files.splice(r,1);const a={oldFiles:o,files:this.files,type:"remove-file",fileIndex:[r]};ae(this,"change",a),this.requestUpdate(),r<=this.files.length-1&&this._fileRemoveButtons[r].focus()}}_handleClickLabel(t){t.preventDefault()}_handleDragEnter(t){if(!this.disabled&&(this._dragEnterCounter++,this._dragEnterCounter===1&&this._isFileOrDirectoryDrag(t))){t.preventDefault();const n=2,r=1;this._groupFilesEl.style.height=this._groupFilesEl.getBoundingClientRect().height+"px",this._dragTextEl.style.width=this._groupFilesEl.getBoundingClientRect().width-r*2+"px",this._dragTextEl.style.height=this._groupFilesEl.getBoundingClientRect().height-(r+n)*2+"px",this._isDraging=!0}}_handleDragOver(t){this.disabled||(t.stopPropagation(),this._isFileOrDirectoryDrag(t)&&t.preventDefault())}_handleDragDrop(t){this.disabled||!this._isDraging||(t.preventDefault(),this._handleDragLeave(),this._isFileDrop(t)&&this._addFiles(t))}_isFileDrop(t){var n;if(t.dataTransfer&&t.dataTransfer.items){for(let r=0;rn[s]);const r=[...this.files],o=n.map((s,l)=>r.length+l);n.forEach(s=>this.files.push(s));const a={oldFiles:r,files:this.files,type:"add-file",fileIndex:o};ae(this,"change",a),this.requestUpdate()}this._inputEl.value=""}_getFileSize(t){return typeof t=="number"?this._formatFileSize(t):L0(t)?this._formatFileSize(parseInt(t,10)):Q1}_formatFileSize(t){return t>=sp?Math.round(t/sp)+" GB":t>=ap?Math.round(t/ap)+" MB":t>=op?Math.round(t/op)+" KB":Math.round(t)+" bytes"}}Bt([k({type:String,reflect:!0,attribute:"class"})],e.prototype,"className",void 0),Bt([k({type:String})],e.prototype,"error",void 0),Bt([k({type:String,reflect:!0,attribute:"id"})],e.prototype,"id",void 0),Bt([k({type:String})],e.prototype,"label",void 0),Bt([k({type:String,attribute:"lang",reflect:!0,converter:Pr})],e.prototype,"language",void 0),Bt([k({type:String})],e.prototype,"message",void 0),Bt([k({type:Boolean})],e.prototype,"disabled",void 0),Bt([k({type:Boolean})],e.prototype,"requiredIcon",void 0),Bt([k({type:Boolean,attribute:"hidden",reflect:!0,converter:nt})],e.prototype,"visible",void 0),Bt([k({type:Array})],e.prototype,"files",void 0),Bt([ge()],e.prototype,"_isDraging",void 0),Bt([le(".kuc-attachment-1-18-0__group__files")],e.prototype,"_groupFilesEl",void 0),Bt([le(".kuc-attachment-1-18-0__group__files__droppable__text")],e.prototype,"_dragTextEl",void 0),Bt([le(".kuc-attachment-1-18-0__group__files__browse-button__input-container__input")],e.prototype,"_inputEl",void 0),Bt([le(".kuc-attachment-1-18-0__group__label")],e.prototype,"_labelEl",void 0),Bt([ti(".kuc-attachment-1-18-0__group__files__display-area__item__name")],e.prototype,"_fileItemsEl",void 0),Bt([ti(".kuc-attachment-1-18-0__group__files__display-area__item__remove-button__container__button")],e.prototype,"_fileRemoveButtons",void 0),window.customElements.define("kuc-attachment-1-18-0",e),ye(N0),Zs=e})();const M0=` + kuc-button-1-18-0, + kuc-button-1-18-0 *, + kuc-button-1-18-0:lang(en), + kuc-button-1-18-0:lang(en) * { + font-family: sans-serif; + } + kuc-button-1-18-0:lang(es), + kuc-button-1-18-0:lang(es) * { + font-family: sans-serif; + } + kuc-button-1-18-0:lang(ja), + kuc-button-1-18-0:lang(ja) * { + font-family: "メイリオ", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif; + } + kuc-button-1-18-0:lang(zh), + kuc-button-1-18-0:lang(zh) * { + font-family: "微软雅黑", "Microsoft YaHei", "新宋体", NSimSun, STHeiti, Hei, + "Heiti SC", sans-serif; + } + kuc-button-1-18-0:lang(zh-TW), + kuc-button-1-18-0:lang(zh-TW) * { + font-family: "微軟正黑體","Microsoft JhengHei","新宋体",NSimSun,STHeiti, + Hei,"Heiti SC",sans-serif; + } + kuc-button-1-18-0 { + display: inline-block; + vertical-align: top; + } + kuc-button-1-18-0[hidden] { + display: none; + } + .kuc-button-1-18-0__button { + display: grid; + align-items: center; + align-content: center; + font-size: var(--kuc-button-font-size, 16px); + width: var(--kuc-button-width, "auto"); + height: var(--kuc-button-height, 48px); + min-width: var(--kuc-button-width, 163px); + padding: 0px 16px; + user-select: none; + white-space: nowrap; + } + .kuc-button-1-18-0__button--normal { + background-color: var(--kuc-button-background-color, #f7f9fa); + color: var(--kuc-button-text-color, #3498db); + border: 1px solid #e3e7e8; + } + .kuc-button-1-18-0__button--normal:hover, + .kuc-button-1-18-0__button--normal:focus-visible, + .kuc-button-1-18-0__button--normal:active { + cursor: pointer; + } + .kuc-button-1-18-0__button--normal:hover { + background-color: var(--kuc-button-background-color-hover, #c8d6dd); + } + .kuc-button-1-18-0__button--normal:focus-visible { + background-color: var(--kuc-button-background-color-focus, #c8d6dd); + } + .kuc-button-1-18-0__button--normal:active { + background-color: var(--kuc-button-background-color-active, #c8d6dd); + } + .kuc-button-1-18-0__button--submit { + background-color: var(--kuc-button-background-color, #3498db); + color: var(--kuc-button-text-color, #ffffff); + border: 1px solid #e3e7e8; + } + .kuc-button-1-18-0__button--submit:hover, + .kuc-button-1-18-0__button--submit:focus-visible, + .kuc-button-1-18-0__button--submit:active { + cursor: pointer; + } + .kuc-button-1-18-0__button--submit:hover { + background-color: var(--kuc-button-background-color-hover, #1d6fa5); + } + .kuc-button-1-18-0__button--submit:focus-visible { + background-color: var(--kuc-button-background-color-focus, #1d6fa5); + } + .kuc-button-1-18-0__button--submit:active { + background-color: var(--kuc-button-background-color-active, #1d6fa5); + } + .kuc-button-1-18-0__button--alert { + background-color: var(--kuc-button-background-color, #e74c3c); + color: var(--kuc-button-text-color, #ffffff); + border: 1px solid #e3e7e8; + } + .kuc-button-1-18-0__button--alert:hover, + .kuc-button-1-18-0__button--alert:focus-visible, + .kuc-button-1-18-0__button--alert:active { + cursor: pointer; + } + .kuc-button-1-18-0__button--alert:hover { + background-color: var(--kuc-button-background-color-hover, #bf2718); + } + .kuc-button-1-18-0__button--alert:focus-visible { + background-color: var(--kuc-button-background-color-focus, #bf2718); + } + .kuc-button-1-18-0__button--alert:active { + background-color: var(--kuc-button-background-color-active, #bf2718); + } + .kuc-button-1-18-0__button:disabled { + background-color: #d4d7d7; + border: 1px solid #e3e7e8; + color: #888888; + cursor: not-allowed; + } + .kuc-button-1-18-0__button--normal:focus-visible, + .kuc-button-1-18-0__button--submit:focus-visible, + .kuc-button-1-18-0__button--alert:focus-visible { + outline: 1px solid #3498db; + } +`;var pr=function(e,i,t,n){var r=arguments.length,o=r<3?i:n===null?n=Object.getOwnPropertyDescriptor(i,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,i,t,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(r<3?a(o):r>3?a(i,t,o):a(i,t))||o);return r>3&&o&&Object.defineProperty(i,t,o),o};let Ba;(()=>{if(Ba=window.customElements.get("kuc-button-1-18-0"),Ba)return;class e extends ve{constructor(t){super(),this.className="",this.id="",this.text="",this.type="normal",this.content="",this.disabled=!1,this.visible=!0;const n=We(t);Object.assign(this,n)}_handleClickButton(t){t.stopPropagation(),ae(this,"click")}_getButtonColorType(){return this.type==="normal"||this.type==="submit"||this.type==="alert"?this.type:"normal"}render(){return Y` + + `}}pr([k({type:String,reflect:!0,attribute:"class"})],e.prototype,"className",void 0),pr([k({type:String,reflect:!0,attribute:"id"})],e.prototype,"id",void 0),pr([k({type:String})],e.prototype,"text",void 0),pr([k({type:String})],e.prototype,"type",void 0),pr([k()],e.prototype,"content",void 0),pr([k({type:Boolean})],e.prototype,"disabled",void 0),pr([k({type:Boolean,attribute:"hidden",reflect:!0,converter:nt})],e.prototype,"visible",void 0),window.customElements.define("kuc-button-1-18-0",e),ye(M0),Ba=e})();const P0=Ba,B0=` + kuc-checkbox-1-18-0, + kuc-checkbox-1-18-0 *, + kuc-checkbox-1-18-0:lang(en), + kuc-checkbox-1-18-0:lang(en) * { + font-family: sans-serif; + } + kuc-checkbox-1-18-0:lang(es), + kuc-checkbox-1-18-0:lang(es) * { + font-family: sans-serif; + } + kuc-checkbox-1-18-0:lang(ja), + kuc-checkbox-1-18-0:lang(ja) * { + font-family: "メイリオ", "Hiragino Kaku Gothic ProN", Meiryo, + sans-serif; + } + kuc-checkbox-1-18-0:lang(zh), + kuc-checkbox-1-18-0:lang(zh) * { + font-family: "微软雅黑", "Microsoft YaHei", "新宋体", NSimSun, STHeiti, + Hei, "Heiti SC", sans-serif; + } + kuc-checkbox-1-18-0:lang(zh-TW), + kuc-checkbox-1-18-0:lang(zh-TW) * { + font-family: "微軟正黑體","Microsoft JhengHei","新宋体",NSimSun,STHeiti, + Hei,"Heiti SC",sans-serif; + } + kuc-checkbox-1-18-0 { + font-size: 14px; + color: #333333; + display: inline-table; + vertical-align: top; + width: var(--kuc-checkbox-menu-width, 239px); + min-width: var(--kuc-checkbox-menu-width, 239px); + line-height: 1.5; + } + kuc-checkbox-1-18-0[hidden] { + display: none; + } + .kuc-checkbox-1-18-0__group { + border: none; + padding: 0px; + height: auto; + display: inline-block; + width: 100%; + margin: 0px; + } + .kuc-checkbox-1-18-0__group__select-menu { + white-space: nowrap; + width: var(--kuc-checkbox-menu-width, auto); + height: var(--kuc-checkbox-menu-height, auto); + color: var(--kuc-checkbox-menu-color, #333333); + font-size: var(--kuc-checkbox-menu-font-size, 14px); + display: flex; + align-items: flex-start; + } + .kuc-checkbox-1-18-0__group__select-menu[itemLayout="vertical"] { + display: block; + } + .kuc-checkbox-1-18-0__group__label { + display: inline-block; + padding: 4px 0 8px 0; + white-space: nowrap; + } + .kuc-checkbox-1-18-0__group__label[hidden] { + display: none; + } + .kuc-checkbox-1-18-0__group__select-menu[borderVisible] { + border-color: #e3e7e8; + border-width: 1px; + border-style: solid; + padding: 4px 0 0 4px; + } + .kuc-checkbox-1-18-0__group__select-menu__item { + margin-bottom: 4px; + margin-right: 16px; + padding: 4px; + border: 1px solid transparent; + position: relative; + white-space: normal; + word-wrap: normal; + display: flex; + align-items: center; + } + .kuc-checkbox-1-18-0__group__select-menu__item[focused] { + border: 1px solid #3498db; + } + .kuc-checkbox-1-18-0__group__select-menu__item__input { + position: absolute; + opacity: 0; + cursor: pointer; + } + .kuc-checkbox-1-18-0__group__select-menu__item__input:hover + + .kuc-checkbox-1-18-0__group__select-menu__item__label { + color: var(--kuc-checkbox-menu-color-hover, #666666); + } + .kuc-checkbox-1-18-0__group__select-menu__item__label__icon { + position: absolute; + left: -30px; + box-sizing: border-box; + width: 21px; + height: 21px; + box-shadow: 1px 1px 3px #f5f5f5 inset, -1px -1px 3px #f5f5f5 inset; + content: ""; + } + .kuc-checkbox-1-18-0__group__select-menu__item__input[disabled] + + .kuc-checkbox-1-18-0__group__select-menu__item__label { + color: #888888; + cursor: not-allowed; + } + .kuc-checkbox-1-18-0__group__select-menu__item__label { + cursor: pointer; + position: relative; + margin-left: 32px; + display: flex; + align-items: center; + vertical-align: middle; + white-space: nowrap; + min-height: 24px; + line-height: 1.2; + } + `;var ri=function(e,i,t,n){var r=arguments.length,o=r<3?i:n===null?n=Object.getOwnPropertyDescriptor(i,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,i,t,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(r<3?a(o):r>3?a(i,t,o):a(i,t))||o);return r>3&&o&&Object.defineProperty(i,t,o),o};let Qs;(()=>{if(Qs=window.customElements.get("kuc-checkbox-1-18-0"),Qs)return;class e extends ve{constructor(t){super(),this.className="",this.error="",this.id="",this.itemLayout="horizontal",this.label="",this.borderVisible=!0,this.disabled=!1,this.requiredIcon=!1,this.visible=!0,this.items=[],this.selectedIndex=[],this.value=[],this._valueMapping={},this._GUID=pt();const n=We(t);this._setInitialValue(n),Object.assign(this,n)}_setInitialValue(t){const n="value"in t,r="selectedIndex"in t,o=t.selectedIndex||[];if(!n&&r){if(!it(o))return;const a=this._getValueMapping(t);this.value=this._getValidValue(a,o)}}shouldUpdate(t){return t.has("items")&&!it(this.items)?(this.throwErrorAfterUpdateComplete(ke.ITEMS.IS_NOT_ARRAY),!1):t.has("value")&&!it(this.value)?(this.throwErrorAfterUpdateComplete(ke.VALUE.IS_NOT_ARRAY),!1):t.has("selectedIndex")&&!it(this.selectedIndex)?(this.throwErrorAfterUpdateComplete(ke.SELECTED_INDEX.IS_NOT_ARRAY),!1):!0}willUpdate(t){if(t.has("value")){if(this.value.length>0)return;this.selectedIndex=[]}}_getNewValueMapping(t,n){const r=parseInt(n,10),o=Object.keys(this._valueMapping),a={...this._valueMapping};return o.indexOf(n)>-1?(delete a[r],a):(a[r]=t,a)}_handleChangeInput(t){t.stopPropagation();const n=t.target,r=n.dataset.index||"0",o=n.value,a=this.value?[...this.value]:this.value,s=this._getNewValueMapping(o,r),l=this.items.map(h=>h.value),u=Object.values(s).filter(h=>l.indexOf(h)>-1);if(u===a)return;const c=Object.keys(s).map(h=>parseInt(h,10));this.value=u,this.selectedIndex=c,ae(this,"change",{oldValue:a,value:u})}_handleFocusInput(t){t.target.parentNode.setAttribute("focused","")}_handleBlurInput(t){t.target.parentNode.removeAttribute("focused")}_getCheckboxIconSvgTemplate(t,n){return Be` + + `}_getSVGStrokeValue(t,n){return t?"#d8d8d8":n?"#3498db":"#d8d8d8"}_isCheckedItem(t,n){const r=Object.values(this._valueMapping),o=Object.keys(this._valueMapping);return r.filter((s,l)=>s===t.value&&n===parseInt(o[l],10)).length>0}_getItemTemplate(t,n){const r=this._isCheckedItem(t,n),o=t.disabled||this.disabled;return Y` + + `}update(t){(t.has("items")||t.has("value")||t.has("selectedIndex"))&&(this._valueMapping=this._getValueMapping({items:this.items,value:this.value,selectedIndex:this.selectedIndex}),this._setValueAndSelectedIndex()),super.update(t)}render(){return Y` + ++ `}updated(){this._inputEls.forEach(t=>{t.checked=this.value.indexOf(t.value)>-1})}_getValueMapping(t){const n=t.items||[],r=t.value||[],o=t.selectedIndex||[],a=n.map(c=>c.value||""),s=Object.assign({},a),l={};if(r.length===0){const c=this._getValidValue(s,o);return o.forEach((d,h)=>l[d]=c[h]),l}return this._getValidSelectedIndex(s).forEach((c,d)=>l[c]=r[d]),l}_getValidValue(t,n){return n.filter(r=>t[r]).map(r=>t[r])}_getValidSelectedIndex(t){const n=[];for(let r=0;r++ ++ + s.value===this.value[r]);n.push(a)}return n}_setValueAndSelectedIndex(){this.value=Object.values(this._valueMapping),this.selectedIndex=Object.keys(this._valueMapping).map(t=>parseInt(t,10))}}ri([k({type:String,reflect:!0,attribute:"class"})],e.prototype,"className",void 0),ri([k({type:String})],e.prototype,"error",void 0),ri([k({type:String,reflect:!0,attribute:"id"})],e.prototype,"id",void 0),ri([k({type:String})],e.prototype,"itemLayout",void 0),ri([k({type:String})],e.prototype,"label",void 0),ri([k({type:Boolean})],e.prototype,"borderVisible",void 0),ri([k({type:Boolean})],e.prototype,"disabled",void 0),ri([k({type:Boolean})],e.prototype,"requiredIcon",void 0),ri([k({type:Boolean,attribute:"hidden",reflect:!0,converter:nt})],e.prototype,"visible",void 0),ri([k({type:Array})],e.prototype,"items",void 0),ri([k({type:Array})],e.prototype,"selectedIndex",void 0),ri([k({type:Array})],e.prototype,"value",void 0),ri([ti(".kuc-checkbox-1-18-0__group__select-menu__item__input")],e.prototype,"_inputEls",void 0),ri([ge()],e.prototype,"_valueMapping",void 0),window.customElements.define("kuc-checkbox-1-18-0",e),ye(B0),Qs=e})();const V0=` kuc-combobox-1-18-0, kuc-combobox-1-18-0 *, kuc-combobox-1-18-0:lang(en), @@ -253,132 +998,7 @@ .kuc-combobox-1-18-0__group__select-menu__highlight[role="option"] { background-color: #e2f2fe; } -`,Hv=` - kuc-base-label-1-18-0, - kuc-base-label-1-18-0 *, - kuc-base-label-1-18-0:lang(en), - kuc-base-label-1-18-0:lang(en) * { - font-family: sans-serif; - } - kuc-base-label-1-18-0:lang(es), - kuc-base-label-1-18-0:lang(es) * { - font-family: sans-serif; - } - kuc-base-label-1-18-0:lang(ja), - kuc-base-label-1-18-0:lang(ja) * { - font-family: "メイリオ", "Hiragino Kaku Gothic ProN", Meiryo, - sans-serif; - } - kuc-base-label-1-18-0:lang(zh), - kuc-base-label-1-18-0:lang(zh) * { - font-family: "微软雅黑", "Microsoft YaHei", "新宋体", NSimSun, STHeiti, - Hei, "Heiti SC", sans-serif; - } - kuc-base-label-1-18-0:lang(zh-TW), - kuc-base-label-1-18-0:lang(zh-TW) * { - font-family: "微軟正黑體","Microsoft JhengHei","新宋体",NSimSun,STHeiti, - Hei,"Heiti SC",sans-serif; - } - kuc-base-label-1-18-0 { - font-size: 14px; - color: #333333; - display: inline-table; - vertical-align: top; - } - kuc-base-label-1-18-0[hidden] { - display: none; - } - .kuc-base-label-1-18-0__required-icon { - font-size: 20px; - vertical-align: -3px; - color: #e74c3c; - margin-left: 4px; - line-height: 1; - } - .kuc-base-label-1-18-0__required-icon[hidden] { - display: none; - } -`;var Eu=function(e,t,n,r){var i=arguments.length,o=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o};class Ea extends vt{constructor(){super(...arguments),this.requiredIcon=!1,this.guid="",this.text=""}render(){return fe` - ${this._getTextTemplate()} - - `}_getTextTemplate(){return this.guid&&this.guid!==""?fe` - ${this.text} - `:fe` ${this.text} `}}Eu([z({type:Boolean})],Ea.prototype,"requiredIcon",void 0);Eu([z({type:String})],Ea.prototype,"guid",void 0);Eu([z({type:String})],Ea.prototype,"text",void 0);window.customElements.get("kuc-base-label-1-18-0")||(xt(Hv),window.customElements.define("kuc-base-label-1-18-0",Ea));const jv=` - kuc-base-error-1-18-0, - kuc-base-error-1-18-0 *, - kuc-base-error-1-18-0:lang(en), - kuc-base-error-1-18-0:lang(en) * { - font-family: sans-serif; - } - kuc-base-error-1-18-0:lang(es), - kuc-base-error-1-18-0:lang(es) * { - font-family: sans-serif; - } - kuc-base-error-1-18-0:lang(ja), - kuc-base-error-1-18-0:lang(ja) * { - font-family: "メイリオ", "Hiragino Kaku Gothic ProN", Meiryo, - sans-serif; - } - kuc-base-error-1-18-0:lang(zh), - kuc-base-error-1-18-0:lang(zh) * { - font-family: "微软雅黑", "Microsoft YaHei", "新宋体", NSimSun, STHeiti, - Hei, "Heiti SC", sans-serif; - } - kuc-base-error-1-18-0:lang(zh-TW), - kuc-base-error-1-18-0:lang(zh-TW) * { - font-family: "微軟正黑體","Microsoft JhengHei","新宋体",NSimSun,STHeiti, - Hei,"Heiti SC",sans-serif; - } - kuc-base-error-1-18-0 { - width: 100%; - font-size: 14px; - display: inline-table; - vertical-align: top; - } - kuc-base-error-1-18-0[hidden] { - display: none; - } - .kuc-base-error-1-18-0__error { - line-height: 1.5; - padding: 4px 18px; - box-sizing: border-box; - background-color: #e74c3c; - color: #ffffff; - margin: 8px 0px; - word-break: break-all; - white-space: normal; - } - .kuc-base-error-1-18-0__error[hidden] { - display: none; - } -`;var wu=function(e,t,n,r){var i=arguments.length,o=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o};class wa extends vt{constructor(){super(...arguments),this.ariaLive="",this.guid="",this.text=""}render(){return fe` - ${this.ariaLive&&this.ariaLive!==""?fe` - - ${this.text} -- `:fe` -- ${this.text} -- `} - `}}wu([z({type:String})],wa.prototype,"ariaLive",void 0);wu([z({type:String})],wa.prototype,"guid",void 0);wu([z({type:String})],wa.prototype,"text",void 0);window.customElements.get("kuc-base-error-1-18-0")||(xt(jv),window.customElements.define("kuc-base-error-1-18-0",wa));var at=function(e,t,n,r){var i=arguments.length,o=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o};let Zs;(()=>{if(Zs=window.customElements.get("kuc-combobox-1-18-0"),Zs)return;class e extends vt{constructor(n){super(),this.className="",this.error="",this.id="",this.label="",this.value="",this.disabled=!1,this.requiredIcon=!1,this.visible=!0,this.items=[],this._selectorVisible=!1,this._searchText="",this._DISABLED_CLASS="kuc-combobox-1-18-0__group__select-menu__item--disabled",this._query="",this._matchingItems=[],this._GUID=vo();const r=br(n);this._handleClickDocument=this._handleClickDocument.bind(this),Object.assign(this,r)}shouldUpdate(n){if(n.has("items")){if(!Ol(this.items))return this.throwErrorAfterUpdateComplete(ar.ITEMS.IS_NOT_ARRAY),!1;const r=this.items.map(i=>i.value);if(!Bv(r))return this.throwErrorAfterUpdateComplete(ar.ITEMS.IS_DUPLICATED),!1}return n.has("value")&&!$v(this.value)?(this.throwErrorAfterUpdateComplete(ar.VALUE.IS_NOT_STRING),!1):!0}willUpdate(n){n.has("value")&&(this._searchText=this._getSelectedLabel()||"")}render(){return fe` +`;var _t=function(e,i,t,n){var r=arguments.length,o=r<3?i:n===null?n=Object.getOwnPropertyDescriptor(i,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,i,t,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(r<3?a(o):r>3?a(i,t,o):a(i,t))||o);return r>3&&o&&Object.defineProperty(i,t,o),o};let el;(()=>{if(el=window.customElements.get("kuc-combobox-1-18-0"),el)return;class e extends ve{constructor(t){super(),this.className="",this.error="",this.id="",this.label="",this.value="",this.disabled=!1,this.requiredIcon=!1,this.visible=!0,this.items=[],this._selectorVisible=!1,this._searchText="",this._DISABLED_CLASS="kuc-combobox-1-18-0__group__select-menu__item--disabled",this._query="",this._matchingItems=[],this._GUID=pt();const n=We(t);this._handleClickDocument=this._handleClickDocument.bind(this),Object.assign(this,n)}shouldUpdate(t){if(t.has("items")){if(!it(this.items))return this.throwErrorAfterUpdateComplete(ke.ITEMS.IS_NOT_ARRAY),!1;const n=this.items.map(r=>r.value);if(!G_(n))return this.throwErrorAfterUpdateComplete(ke.ITEMS.IS_DUPLICATED),!1}return t.has("value")&&!ho(this.value)?(this.throwErrorAfterUpdateComplete(ke.VALUE.IS_NOT_STRING),!1):!0}willUpdate(t){t.has("value")&&(this._searchText=this._getSelectedLabel()||"")}render(){return Y`- ${this._matchingItems.map((n,r)=>this._getItemTemplate(n,r))} + ${this._matchingItems.map((t,n)=>this._getItemTemplate(t,n))}- `}firstUpdated(){window.addEventListener("resize",()=>{this._actionResizeScrollWindow()}),window.addEventListener("scroll",()=>{this._actionResizeScrollWindow()})}async updated(n){super.updated(n),await this.updateComplete,this._selectorVisible?(this._setMenuPosition(),this._scrollToView(),this._selectedItemEl===null||this._selectedItemEl.classList.contains(this._DISABLED_CLASS)?this._actionClearAllHighlightMenuItem():this._setHighlightAndActiveDescendantMenu(this._selectedItemEl),setTimeout(()=>{document.addEventListener("click",this._handleClickDocument,!0)},1)):setTimeout(()=>{document.removeEventListener("click",this._handleClickDocument,!0)},1)}_getToggleIconSvgTemplate(){return ur` + `}firstUpdated(){window.addEventListener("resize",()=>{this._actionResizeScrollWindow()}),window.addEventListener("scroll",()=>{this._actionResizeScrollWindow()})}async updated(t){super.updated(t),await this.updateComplete,this._selectorVisible?(this._setMenuPosition(),this._scrollToView(),this._selectedItemEl===null||this._selectedItemEl.classList.contains(this._DISABLED_CLASS)?this._actionClearAllHighlightMenuItem():this._setHighlightAndActiveDescendantMenu(this._selectedItemEl),setTimeout(()=>{document.addEventListener("click",this._handleClickDocument,!0)},1)):setTimeout(()=>{document.removeEventListener("click",this._handleClickDocument,!0)},1)}_getToggleIconSvgTemplate(){return Be` - `}_getItemTemplate(n,r){const i=this._isCheckedItem(n),o=n.disabled,a=n.label===void 0?n.value:n.label;let s=i?fe`${a}`:fe`${a}`;const l=this._query.trim().toLowerCase();if(l&&a){const u=a.toLowerCase().indexOf(l),c=u+l.length;s=fe` + `}_getItemTemplate(t,n){const r=this._isCheckedItem(t),o=t.disabled,a=t.label===void 0?t.value:t.label;let s=r?Y`${a}`:Y`${a}`;const l=this._query.trim().toLowerCase();if(l&&a){const u=a.toLowerCase().indexOf(l),c=u+l.length;s=Y` ${a.slice(0,u)}${a.slice(u,c)}${a.slice(c)} - `}return fe` + `}return Y`- ${this._getComboboxIconSvgTemplate(i,o)} + ${this._getComboboxIconSvgTemplate(r,o)} ${s} - `}_getComboboxIconSvgTemplate(n,r){return ur` - ${n?ur` - `:""}`}_handleMouseDownComboboxItem(n){const i=this._getItemElementWhenMouseOverDown(n.target).getAttribute("value");this._actionUpdateValue(i)}_handleMouseOverComboboxItem(n){const r=this._getItemElementWhenMouseOverDown(n.target);this._actionHighlightMenuItem(r)}_handleMouseLeaveMenu(){this._actionClearAllHighlightMenuItem()}_handleMouseDownMenu(n){n.preventDefault()}_handleClickToggleButton(n){n.preventDefault(),this._inputEl.focus(),this._inputEl.select(),this._resetToggleInputValue(),this._actionToggleMenu()}_handleInputComboboxInput(n){n.stopPropagation(),this._searchText=this._inputEl.value,this._query=this._inputEl.value,this._setMatchingItems()}_handleClickComboboxInput(n){n.stopPropagation(),this._inputEl.select(),this._setMatchingItems()}_handleChangeComboboxInput(n){n.stopPropagation()}_handleBlurComboboxInput(n){this._resetToggleInputValue()}_handleClickDocument(n){(n.target===this._toggleEl||this._toggleEl.contains(n.target))&&(this._inputEl.focus(),n.stopPropagation()),!Array.from(this._disabledItemsEl).some(r=>r===n.target||r.contains(n.target))&&this._actionHideMenu()}_handleKeyDownComboboxInput(n){switch(n.key){case"Up":case"ArrowUp":{if(n.preventDefault(),!this._selectorVisible){this._actionShowMenu();break}this._actionHighlightPrevMenuItem();break}case"Tab":this._selectorVisible&&this._actionHideMenu();break;case"Down":case"ArrowDown":{if(n.preventDefault(),!this._selectorVisible){this._actionShowMenu();break}this._actionHighlightNextMenuItem();break}case"Enter":{n.preventDefault();const r=this._highlightItemEl;if(r===null)break;const i=r.getAttribute("value");this._actionUpdateValue(i),this._actionHideMenu();break}case"Escape":{n.preventDefault(),this._selectorVisible&&n.stopPropagation(),this._resetToggleInputValue(),this._actionHideMenu();break}case"Home":{this._selectorVisible&&(n.preventDefault(),this._actionHighlightFirstMenuItem());break}case"End":{this._selectorVisible&&(n.preventDefault(),this._actionHighlightLastMenuItem());break}}}_getSelectedLabel(){const n=this.items.filter((r,i)=>this._isCheckedItem(r));return n.length===0?"":n[0].label===void 0?n[0].value:n[0].label}_actionShowMenu(){this._query.trim()===""&&(this._matchingItems=this.items),!(this.items.length===0||this._matchingItems.length===0)&&(this._inputEl.focus(),this._selectorVisible=!0)}_actionHideMenu(){this._selectorVisible=!1,this._actionRemoveActiveDescendant()}_actionToggleMenu(){if(this._selectorVisible){this._actionHideMenu();return}this._actionShowMenu()}_actionHighlightFirstMenuItem(){let n=this._firstItemEl,r=!1;for(let i=0;i{n.classList.remove("kuc-combobox-1-18-0__group__select-menu__highlight")}),this._actionRemoveActiveDescendant()}_setHighlightAndActiveDescendantMenu(n){this._actionHighlightMenuItem(n),this._actionSetActiveDescendant(n.id),this._scrollToView()}_actionHighlightMenuItem(n){this._actionClearAllHighlightMenuItem(),n.classList.add("kuc-combobox-1-18-0__group__select-menu__highlight")}_actionUpdateValue(n){if(this.value===n){this._resetToggleInputValue();return}const r={oldValue:this.value,value:n};this.value=n,this._query="",Ie(this,"change",r)}_actionSetActiveDescendant(n){n!==void 0&&this._inputEl!==null&&this._inputEl.setAttribute("aria-activedescendant",n)}_actionRemoveActiveDescendant(){this._inputEl.removeAttribute("aria-activedescendant")}_setMatchingItems(){const n=this.items.filter(r=>{const i=a=>a.replace(/[.*+?^=!:${}()|[\]/\\]/g,"\\$&"),o=new RegExp(i(this._query.trim()),"gi");return r.label?o.test(r.label):r.value?o.test(r.value):!1});n.length===0?(this._matchingItems=[],this._actionHideMenu()):(this._matchingItems=n,this._actionShowMenu())}_getScrollbarWidthHeight(){const n=document.createElement("div");n.style.cssText="overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(n);const r=n.offsetWidth-n.clientWidth,i=n.offsetHeight-n.clientHeight;return document.body.removeChild(n),{scrollbarWidth:r,scrollbarHeight:i}}_getDistanceToggleButton(){const{scrollbarWidth:n,scrollbarHeight:r}=this._getScrollbarWidthHeight(),i=document.body.scrollHeight>window.innerHeight,o=document.body.scrollWidth>window.innerWidth,a=this._toggleEl.getBoundingClientRect().top,s=window.innerHeight-this._toggleEl.getBoundingClientRect().bottom-(o?r:0),l=this._toggleEl.getBoundingClientRect().left,u=window.innerWidth-this._toggleEl.getBoundingClientRect().left-(i?n:0);return{toTop:a,toBottom:s,toLeft:l,toRight:u}}_setMenuPositionAboveOrBelow(){this._menuEl.style.height="auto",this._menuEl.style.bottom="auto",this._menuEl.style.overflowY="";const n=16,r=this._menuEl.getBoundingClientRect().height,i=this._getDistanceToggleButton();if(!(i.toBottom>=r))if(i.toBottom =r)return;this._menuEl.style.height=`${i.toTop}px`,this._menuEl.style.overflowY="scroll"}else this._menuEl.style.height=`${i.toBottom}px`,this._menuEl.style.overflowY="scroll"}_setMenuPositionLeftOrRight(){this._menuEl.style.right="auto";const n=this._menuEl.getBoundingClientRect().width,r=this._getDistanceToggleButton();if(r.toRight>=n||r.toLeft 0?`${i}px`:"0px"}_setMenuPosition(){this._setMenuPositionAboveOrBelow(),this._setMenuPositionLeftOrRight()}_scrollToView(){if(!this._highlightItemEl||!this._menuEl)return;const n=this._menuEl.getBoundingClientRect(),r=this._highlightItemEl.getBoundingClientRect();r.top {this._timeoutID=null,this._setMenuPosition()},50))}_isCheckedItem(n){return n.value===this.value}_resetToggleInputValue(){const n=this._getSelectedLabel();this._searchText!==n&&(this._searchText=n||""),this._query=""}_getItemElementWhenMouseOverDown(n){return n.classList.value.split(" ").includes("kuc-combobox-1-18-0__group__select-menu__item")?n:this._getItemElementWhenMouseOverDown(n.parentElement)}}at([z({type:String,reflect:!0,attribute:"class"})],e.prototype,"className",void 0),at([z({type:String})],e.prototype,"error",void 0),at([z({type:String,reflect:!0,attribute:"id"})],e.prototype,"id",void 0),at([z({type:String})],e.prototype,"label",void 0),at([z({type:String})],e.prototype,"value",void 0),at([z({type:Boolean})],e.prototype,"disabled",void 0),at([z({type:Boolean})],e.prototype,"requiredIcon",void 0),at([z({type:Boolean,attribute:"hidden",reflect:!0,converter:ei})],e.prototype,"visible",void 0),at([z({type:Array})],e.prototype,"items",void 0),at([yt()],e.prototype,"_selectorVisible",void 0),at([we(".kuc-combobox-1-18-0__group__toggle")],e.prototype,"_toggleEl",void 0),at([we(".kuc-combobox-1-18-0__group__toggle__input")],e.prototype,"_inputEl",void 0),at([we(".kuc-combobox-1-18-0__group__select-menu")],e.prototype,"_menuEl",void 0),at([Al(".kuc-combobox-1-18-0__group__select-menu__item")],e.prototype,"_itemsEl",void 0),at([we(".kuc-combobox-1-18-0__group__select-menu__item")],e.prototype,"_firstItemEl",void 0),at([we(".kuc-combobox-1-18-0__group__select-menu__item:last-child")],e.prototype,"_lastItemEl",void 0),at([we(".kuc-combobox-1-18-0__group__select-menu__item[aria-selected=true]")],e.prototype,"_selectedItemEl",void 0),at([we(".kuc-combobox-1-18-0__group__select-menu__highlight")],e.prototype,"_highlightItemEl",void 0),at([we(".kuc-base-error-1-18-0__error")],e.prototype,"_errorEl",void 0),at([Al(".kuc-combobox-1-18-0__group__select-menu__item--disabled")],e.prototype,"_disabledItemsEl",void 0),at([yt()],e.prototype,"_searchText",void 0),window.customElements.define("kuc-combobox-1-18-0",e),xt(Vv),Zs=e})();const qv=["items","value","disabled"],Rl=Lt({__name:"TableCombobox",props:{items:{},modelValue:{},dataList:{},id:{},selectedAppData:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=Dn(0);jt(()=>n.items.value,()=>{n.modelValue.value&&(r.value+=1)},{once:!0});const i=t,o=({detail:a})=>{i("update:modelValue",{obj:Gn(n.dataList,n.id),value:a.value||""})};return(a,s)=>(Pe(),it("kuc-combobox-1-18-0",{className:"kuc-text-input",items:a.items.value,value:a.modelValue.value,onChange:o,key:r.value,disabled:a.selectedAppData.loading==null?!1:a.selectedAppData.loading},null,40,qv))}}),Wv=[{value:"=",label:"=(等しい)",type:e=>Hi[e.type]||"input"},{value:"!=",label:"≠ (等しくない)",type:e=>Hi[e.type]||"input"},{value:"<=",label:e=>of(e)?"≦ (以前)":"≦ (以下)",type:e=>Hi[e.type]||"input"},{value:"<",label:"< (より前)",type:"input"},{value:">=",label:e=>of(e)?"≧ (以降)":"≧ (以上)",type:e=>Hi[e.type]||"input"},{value:">",label:"> (より後)",type:"input"},{value:"like",label:"次のキーワードを含む",type:"input"},{value:"not like",label:"次のキーワードを含まない",type:"input"},{value:"in",label:"次のいずれかを含む",type:"input"},{value:"not in",label:"次のいずれも含まない",type:"input"}],Lh=Wv.reduce((e,t)=>(e[t.value]=t,e),{}),Dl=["=","!=","in","like","not like"],el=["=","!=","<=",">="],Bi=["=","!=","<=",">=","<",">"],mn=["in","not in"],Gv={SINGLE_LINE_TEXT:Dl,MULTI_LINE_TEXT:mn,RICH_TEXT:mn,NUMBER:el,CHECK_BOX:mn,RADIO_BUTTON:mn,DROP_DOWN:mn,MULTI_SELECT:mn,USER_SELECT:mn,ORGANIZATION_SELECT:mn,GROUP_SELECT:mn,LINK:Dl,CALC:el,TIME:Bi,DATE:Bi,DATETIME:Bi,CREATED_TIME:Bi,CREATOR:mn,UPDATED_TIME:Bi,MODIFIER:mn,RECORD_NUMBER:el},Kv=(e,t,n)=>{if(!e||!t.fields)return;const r=mu(e,t,"");return r?(Gv[r.type]||Dl).map(o=>{const a={...Lh[o]};return a.label=typeof a.label=="function"?a.label(r):a.label,a}):void 0},zv={input:"kuc-text",select:"kuc-combobox",time:"kuc-time",date:"date",datetime:"datetime"},of=e=>e.type in Hi,Hi={TIME:"time"},Yv=(e,t)=>{if(!e||!t)return;const n=Lh[e].type;return zv[typeof n=="function"?n(t):n]},Nh=[{key:"",value:"%s",label:e=>e?"日時を指定":"日付を指定"},{key:"FROM_TODAY",value:"FROM_TODAY(%s)",label:"今日から"},{key:"NOW",value:"NOW()",label:"当時刻",condition:"datetime"},{key:"TODAY",value:"TODAY()",label:"今日"},{key:"THIS_WEEK",value:"THIS_WEEK(%s)",label:"今週"},{key:"THIS_MONTH",value:"THIS_MONTH(%s)",label:"今月"}];Nh.reduce((e,t)=>(e[t.key]=t,e),{});const Xv=e=>Nh.filter(t=>t.condition?t.condition===(e?"datetime":"date"):!0),Jv=["items","value","disabled"],Qv=Lt({__name:"TableCondition",props:{modelValue:{},selectedAppData:{},whereConditions:{},id:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=We(()=>Gn(n.whereConditions,n.id)),i=We(()=>{var l;return Kv(((l=r.value)==null?void 0:l.field)||"",n.selectedAppData.appFields,n.selectedAppData.table.table)}),o=Dn(n.modelValue.value);jt(()=>i,()=>{var l,u;if(((l=r.value)==null?void 0:l.condition)===""){const c=((u=i.value)==null?void 0:u[0])||{value:""};o.value=c.value,s({detail:c})}},{deep:!0});const a=t,s=({detail:l})=>{a("update:modelValue",{obj:r.value,value:l.value})};return(l,u)=>{var c;return(c=i.value)!=null&&c.length?(Pe(),it("kuc-combobox-1-18-0",{key:0,items:i.value,value:o.value,onChange:s,disabled:l.selectedAppData.loading==null?!1:l.selectedAppData.loading},null,40,Jv)):_r("",!0)}}}),Zv=` + fill="${n?"#888888":"#3498db"}"/> + `:""}`}_handleMouseDownComboboxItem(t){const r=this._getItemElementWhenMouseOverDown(t.target).getAttribute("value");this._actionUpdateValue(r)}_handleMouseOverComboboxItem(t){const n=this._getItemElementWhenMouseOverDown(t.target);this._actionHighlightMenuItem(n)}_handleMouseLeaveMenu(){this._actionClearAllHighlightMenuItem()}_handleMouseDownMenu(t){t.preventDefault()}_handleClickToggleButton(t){t.preventDefault(),this._inputEl.focus(),this._inputEl.select(),this._resetToggleInputValue(),this._actionToggleMenu()}_handleInputComboboxInput(t){t.stopPropagation(),this._searchText=this._inputEl.value,this._query=this._inputEl.value,this._setMatchingItems()}_handleClickComboboxInput(t){t.stopPropagation(),this._inputEl.select(),this._setMatchingItems()}_handleChangeComboboxInput(t){t.stopPropagation()}_handleBlurComboboxInput(t){this._resetToggleInputValue()}_handleClickDocument(t){(t.target===this._toggleEl||this._toggleEl.contains(t.target))&&(this._inputEl.focus(),t.stopPropagation()),!Array.from(this._disabledItemsEl).some(n=>n===t.target||n.contains(t.target))&&this._actionHideMenu()}_handleKeyDownComboboxInput(t){switch(t.key){case"Up":case"ArrowUp":{if(t.preventDefault(),!this._selectorVisible){this._actionShowMenu();break}this._actionHighlightPrevMenuItem();break}case"Tab":this._selectorVisible&&this._actionHideMenu();break;case"Down":case"ArrowDown":{if(t.preventDefault(),!this._selectorVisible){this._actionShowMenu();break}this._actionHighlightNextMenuItem();break}case"Enter":{t.preventDefault();const n=this._highlightItemEl;if(n===null)break;const r=n.getAttribute("value");this._actionUpdateValue(r),this._actionHideMenu();break}case"Escape":{t.preventDefault(),this._selectorVisible&&t.stopPropagation(),this._resetToggleInputValue(),this._actionHideMenu();break}case"Home":{this._selectorVisible&&(t.preventDefault(),this._actionHighlightFirstMenuItem());break}case"End":{this._selectorVisible&&(t.preventDefault(),this._actionHighlightLastMenuItem());break}}}_getSelectedLabel(){const t=this.items.filter((n,r)=>this._isCheckedItem(n));return t.length===0?"":t[0].label===void 0?t[0].value:t[0].label}_actionShowMenu(){this._query.trim()===""&&(this._matchingItems=this.items),!(this.items.length===0||this._matchingItems.length===0)&&(this._inputEl.focus(),this._selectorVisible=!0)}_actionHideMenu(){this._selectorVisible=!1,this._actionRemoveActiveDescendant()}_actionToggleMenu(){if(this._selectorVisible){this._actionHideMenu();return}this._actionShowMenu()}_actionHighlightFirstMenuItem(){let t=this._firstItemEl,n=!1;for(let r=0;r {t.classList.remove("kuc-combobox-1-18-0__group__select-menu__highlight")}),this._actionRemoveActiveDescendant()}_setHighlightAndActiveDescendantMenu(t){this._actionHighlightMenuItem(t),this._actionSetActiveDescendant(t.id),this._scrollToView()}_actionHighlightMenuItem(t){this._actionClearAllHighlightMenuItem(),t.classList.add("kuc-combobox-1-18-0__group__select-menu__highlight")}_actionUpdateValue(t){if(this.value===t){this._resetToggleInputValue();return}const n={oldValue:this.value,value:t};this.value=t,this._query="",ae(this,"change",n)}_actionSetActiveDescendant(t){t!==void 0&&this._inputEl!==null&&this._inputEl.setAttribute("aria-activedescendant",t)}_actionRemoveActiveDescendant(){this._inputEl.removeAttribute("aria-activedescendant")}_setMatchingItems(){const t=this.items.filter(n=>{const r=a=>a.replace(/[.*+?^=!:${}()|[\]/\\]/g,"\\$&"),o=new RegExp(r(this._query.trim()),"gi");return n.label?o.test(n.label):n.value?o.test(n.value):!1});t.length===0?(this._matchingItems=[],this._actionHideMenu()):(this._matchingItems=t,this._actionShowMenu())}_getScrollbarWidthHeight(){const t=document.createElement("div");t.style.cssText="overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(t);const n=t.offsetWidth-t.clientWidth,r=t.offsetHeight-t.clientHeight;return document.body.removeChild(t),{scrollbarWidth:n,scrollbarHeight:r}}_getDistanceToggleButton(){const{scrollbarWidth:t,scrollbarHeight:n}=this._getScrollbarWidthHeight(),r=document.body.scrollHeight>window.innerHeight,o=document.body.scrollWidth>window.innerWidth,a=this._toggleEl.getBoundingClientRect().top,s=window.innerHeight-this._toggleEl.getBoundingClientRect().bottom-(o?n:0),l=this._toggleEl.getBoundingClientRect().left,u=window.innerWidth-this._toggleEl.getBoundingClientRect().left-(r?t:0);return{toTop:a,toBottom:s,toLeft:l,toRight:u}}_setMenuPositionAboveOrBelow(){this._menuEl.style.height="auto",this._menuEl.style.bottom="auto",this._menuEl.style.overflowY="";const t=16,n=this._menuEl.getBoundingClientRect().height,r=this._getDistanceToggleButton();if(!(r.toBottom>=n))if(r.toBottom =n)return;this._menuEl.style.height=`${r.toTop}px`,this._menuEl.style.overflowY="scroll"}else this._menuEl.style.height=`${r.toBottom}px`,this._menuEl.style.overflowY="scroll"}_setMenuPositionLeftOrRight(){this._menuEl.style.right="auto";const t=this._menuEl.getBoundingClientRect().width,n=this._getDistanceToggleButton();if(n.toRight>=t||n.toLeft 0?`${r}px`:"0px"}_setMenuPosition(){this._setMenuPositionAboveOrBelow(),this._setMenuPositionLeftOrRight()}_scrollToView(){if(!this._highlightItemEl||!this._menuEl)return;const t=this._menuEl.getBoundingClientRect(),n=this._highlightItemEl.getBoundingClientRect();n.top {this._timeoutID=null,this._setMenuPosition()},50))}_isCheckedItem(t){return t.value===this.value}_resetToggleInputValue(){const t=this._getSelectedLabel();this._searchText!==t&&(this._searchText=t||""),this._query=""}_getItemElementWhenMouseOverDown(t){return t.classList.value.split(" ").includes("kuc-combobox-1-18-0__group__select-menu__item")?t:this._getItemElementWhenMouseOverDown(t.parentElement)}}_t([k({type:String,reflect:!0,attribute:"class"})],e.prototype,"className",void 0),_t([k({type:String})],e.prototype,"error",void 0),_t([k({type:String,reflect:!0,attribute:"id"})],e.prototype,"id",void 0),_t([k({type:String})],e.prototype,"label",void 0),_t([k({type:String})],e.prototype,"value",void 0),_t([k({type:Boolean})],e.prototype,"disabled",void 0),_t([k({type:Boolean})],e.prototype,"requiredIcon",void 0),_t([k({type:Boolean,attribute:"hidden",reflect:!0,converter:nt})],e.prototype,"visible",void 0),_t([k({type:Array})],e.prototype,"items",void 0),_t([ge()],e.prototype,"_selectorVisible",void 0),_t([le(".kuc-combobox-1-18-0__group__toggle")],e.prototype,"_toggleEl",void 0),_t([le(".kuc-combobox-1-18-0__group__toggle__input")],e.prototype,"_inputEl",void 0),_t([le(".kuc-combobox-1-18-0__group__select-menu")],e.prototype,"_menuEl",void 0),_t([ti(".kuc-combobox-1-18-0__group__select-menu__item")],e.prototype,"_itemsEl",void 0),_t([le(".kuc-combobox-1-18-0__group__select-menu__item")],e.prototype,"_firstItemEl",void 0),_t([le(".kuc-combobox-1-18-0__group__select-menu__item:last-child")],e.prototype,"_lastItemEl",void 0),_t([le(".kuc-combobox-1-18-0__group__select-menu__item[aria-selected=true]")],e.prototype,"_selectedItemEl",void 0),_t([le(".kuc-combobox-1-18-0__group__select-menu__highlight")],e.prototype,"_highlightItemEl",void 0),_t([le(".kuc-base-error-1-18-0__error")],e.prototype,"_errorEl",void 0),_t([ti(".kuc-combobox-1-18-0__group__select-menu__item--disabled")],e.prototype,"_disabledItemsEl",void 0),_t([ge()],e.prototype,"_searchText",void 0),window.customElements.define("kuc-combobox-1-18-0",e),ye(V0),el=e})();const H0=` .kuc-base-datetime-header-year-1-18-0__toggle { position: relative; box-sizing: border-box; @@ -513,7 +1133,7 @@ border: 1px solid #3498db; outline: none; } -`;var ka=function(e,t,n,r){var i=arguments.length,o=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o};class xo extends vt{constructor(){super(),this.year=new Date().getFullYear(),this.postfix="",this._listBoxVisible=!1,this._handleScrollDocument=this._handleScrollDocument.bind(this)}connectedCallback(){super.connectedCallback(),setTimeout(()=>{document.addEventListener("scroll",this._handleScrollDocument)},1)}disconnectedCallback(){document.removeEventListener("scroll",this._handleScrollDocument),super.disconnectedCallback()}update(t){this._listBoxItems=this._getYearOptions().map(n=>({value:`${n}`,label:`${n}${this.postfix}`})),super.update(t)}render(){return fe` +`;var _s=function(e,i,t,n){var r=arguments.length,o=r<3?i:n===null?n=Object.getOwnPropertyDescriptor(i,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,i,t,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(r<3?a(o):r>3?a(i,t,o):a(i,t))||o);return r>3&&o&&Object.defineProperty(i,t,o),o};class da extends ve{constructor(){super(),this.year=new Date().getFullYear(),this.postfix="",this._listBoxVisible=!1,this._handleScrollDocument=this._handleScrollDocument.bind(this)}connectedCallback(){super.connectedCallback(),setTimeout(()=>{document.addEventListener("scroll",this._handleScrollDocument)},1)}disconnectedCallback(){document.removeEventListener("scroll",this._handleScrollDocument),super.disconnectedCallback()}update(i){this._listBoxItems=this._getYearOptions().map(t=>({value:`${t}`,label:`${t}${this.postfix}`})),super.update(i)}render(){return Y` ${this._getListBoxTemplate()} - `}async updated(t){await this.updateComplete,t.has("_listBoxVisible")&&this._listBoxVisible&&this._handleScrollDocument(),super.update(t)}closeListBox(){this._listBoxVisible=!1,this._toggleEl.focus()}_handleScrollDocument(){const t=xa(this);if(t.inputToBottom>=t.inputToTop){ia(this,"bottom");return}ia(this,"top")}_getListBoxTemplate(){return this._listBoxVisible?fe` + `}async updated(i){await this.updateComplete,i.has("_listBoxVisible")&&this._listBoxVisible&&this._handleScrollDocument(),super.update(i)}closeListBox(){this._listBoxVisible=!1,this._toggleEl.focus()}_handleScrollDocument(){const i=ca(this);if(i.inputToBottom>=i.inputToTop){Za(this,"bottom");return}Za(this,"top")}_getListBoxTemplate(){return this._listBoxVisible?Y` - `:""}_handleFocusOutListBox(){this._listBoxVisible=!1,this._toggleEl.focus()}_handleListBoxEscape(){this._handleFocusOutListBox()}_handleMouseUpDropdownToggle(t){t.preventDefault()}_handleMouseDownDropdownToggle(t){t.preventDefault()}_handleClickDropdownYearToggle(t){t.stopPropagation(),t.preventDefault(),this._listBoxVisible?this.closeListBox():this._openListBox(),Ie(this,"kuc:year-dropdown-click",{value:this._listBoxVisible.toString(),oldValue:(!this._listBoxVisible).toString()})}_handleKeyDownYearToggle(t){t.key!=="Tab"&&(t.preventDefault(),this._openListBoxByKey(t.key))}_openListBoxByKey(t){[" ","Up","ArrowUp","Down","ArrowDown","Enter"].indexOf(t)>-1&&this._openListBox()}_handleChangeListBox(t){if(t.preventDefault(),t.stopPropagation(),this.closeListBox(),!t.detail.value)return;this.year=Number(t.detail.value);const n={value:`${this.year}`};Ie(this,"kuc:year-dropdown-change",n)}_openListBox(){this._listBoxVisible=!0}_getYearOptions(){const t=[];Number.isInteger(this.year)||(this.year=new Date().getFullYear());let n=this.year<100?0:this.year-100;const r=this.year>=9899?9999:this.year+100;for(n;n<=r;n++)t.push(n);return t}}ka([z({type:Number})],xo.prototype,"year",void 0);ka([z({type:String})],xo.prototype,"postfix",void 0);ka([yt()],xo.prototype,"_listBoxVisible",void 0);ka([we(".kuc-base-datetime-header-year-1-18-0__toggle")],xo.prototype,"_toggleEl",void 0);window.customElements.get("kuc-base-datetime-header-year-1-18-0")||(xt(Zv),window.customElements.define("kuc-base-datetime-header-year-1-18-0",xo));const e1=` + `:""}_handleFocusOutListBox(){this._listBoxVisible=!1,this._toggleEl.focus()}_handleListBoxEscape(){this._handleFocusOutListBox()}_handleMouseUpDropdownToggle(i){i.preventDefault()}_handleMouseDownDropdownToggle(i){i.preventDefault()}_handleClickDropdownYearToggle(i){i.stopPropagation(),i.preventDefault(),this._listBoxVisible?this.closeListBox():this._openListBox(),ae(this,"kuc:year-dropdown-click",{value:this._listBoxVisible.toString(),oldValue:(!this._listBoxVisible).toString()})}_handleKeyDownYearToggle(i){i.key!=="Tab"&&(i.preventDefault(),this._openListBoxByKey(i.key))}_openListBoxByKey(i){[" ","Up","ArrowUp","Down","ArrowDown","Enter"].indexOf(i)>-1&&this._openListBox()}_handleChangeListBox(i){if(i.preventDefault(),i.stopPropagation(),this.closeListBox(),!i.detail.value)return;this.year=Number(i.detail.value);const t={value:`${this.year}`};ae(this,"kuc:year-dropdown-change",t)}_openListBox(){this._listBoxVisible=!0}_getYearOptions(){const i=[];Number.isInteger(this.year)||(this.year=new Date().getFullYear());let t=this.year<100?0:this.year-100;const n=this.year>=9899?9999:this.year+100;for(t;t<=n;t++)i.push(t);return i}}_s([k({type:Number})],da.prototype,"year",void 0);_s([k({type:String})],da.prototype,"postfix",void 0);_s([ge()],da.prototype,"_listBoxVisible",void 0);_s([le(".kuc-base-datetime-header-year-1-18-0__toggle")],da.prototype,"_toggleEl",void 0);window.customElements.get("kuc-base-datetime-header-year-1-18-0")||(ye(H0),window.customElements.define("kuc-base-datetime-header-year-1-18-0",da));const U0=` .kuc-base-datetime-header-month-1-18-0__toggle { position: relative; box-sizing: border-box; @@ -569,7 +1189,7 @@ border: 1px solid #3498db; outline: none; } -`;var Sa=function(e,t,n,r){var i=arguments.length,o=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o};class Eo extends vt{constructor(){super(),this.language="auto",this.month=1,this._listBoxVisible=!1,this._locale=ln("en"),this._monthLabel="",this._maxHeight=1e3,this._handleScrollDocument=this._handleScrollDocument.bind(this)}connectedCallback(){super.connectedCallback(),setTimeout(()=>{document.addEventListener("scroll",this._handleScrollDocument)},1)}disconnectedCallback(){document.removeEventListener("scroll",this._handleScrollDocument),super.disconnectedCallback()}update(t){t.has("language")&&(this._locale=ln(this.language),this._listBoxItems=this._getListBoxItems()),t.has("month")&&(this._monthLabel=this._getMonthLabel()),super.update(t)}render(){return fe` +`;var ms=function(e,i,t,n){var r=arguments.length,o=r<3?i:n===null?n=Object.getOwnPropertyDescriptor(i,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,i,t,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(r<3?a(o):r>3?a(i,t,o):a(i,t))||o);return r>3&&o&&Object.defineProperty(i,t,o),o};class pa extends ve{constructor(){super(),this.language="auto",this.month=1,this._listBoxVisible=!1,this._locale=Et("en"),this._monthLabel="",this._maxHeight=1e3,this._handleScrollDocument=this._handleScrollDocument.bind(this)}connectedCallback(){super.connectedCallback(),setTimeout(()=>{document.addEventListener("scroll",this._handleScrollDocument)},1)}disconnectedCallback(){document.removeEventListener("scroll",this._handleScrollDocument),super.disconnectedCallback()}update(i){i.has("language")&&(this._locale=Et(this.language),this._listBoxItems=this._getListBoxItems()),i.has("month")&&(this._monthLabel=this._getMonthLabel()),super.update(i)}render(){return Y` ${this._getListBoxTemplate()} - `}async updated(t){await this.updateComplete,t.has("_listBoxVisible")&&this._listBoxVisible&&this._handleScrollDocument(),super.update(t)}_handleScrollDocument(){const t=xa(this);if(t.inputToBottom>=t.inputToTop){ia(this,"bottom");return}ia(this,"top")}closeListBox(){this._listBoxVisible=!1,this._toggleEl.focus()}_getListBoxTemplate(){return this._listBoxVisible?fe` + `}async updated(i){await this.updateComplete,i.has("_listBoxVisible")&&this._listBoxVisible&&this._handleScrollDocument(),super.update(i)}_handleScrollDocument(){const i=ca(this);if(i.inputToBottom>=i.inputToTop){Za(this,"bottom");return}Za(this,"top")}closeListBox(){this._listBoxVisible=!1,this._toggleEl.focus()}_getListBoxTemplate(){return this._listBoxVisible?Y` - `:""}_handleFocusOutListBox(){this._listBoxVisible=!1,this._toggleEl.focus()}_handleListBoxEscape(){this._handleFocusOutListBox()}_handleClickDropdownMonthToggle(t){t.stopPropagation(),t.preventDefault(),this._listBoxVisible?this.closeListBox():this._openListBox(),Ie(this,"kuc:month-dropdown-click",{value:this._listBoxVisible.toString(),oldValue:(!this._listBoxVisible).toString()})}_handleMouseUpDropdownToggle(t){t.preventDefault()}_handleMouseDownDropdownToggle(t){t.preventDefault()}_handleKeyDownMonthToggle(t){this._handleTabKey(t.key)||(t.preventDefault(),this._openListBoxByKey(t.key))}_openListBoxByKey(t){[" ","Up","ArrowUp","Down","ArrowDown","Enter"].indexOf(t)>-1&&this._openListBox()}_handleTabKey(t){return t==="Tab"}_handleChangeListBox(t){if(t.preventDefault(),t.stopPropagation(),this.closeListBox(),!t.detail.value)return;this.month=Number(t.detail.value);const n={value:`${this.month}`};Ie(this,"kuc:month-dropdown-change",n)}_openListBox(){this._listBoxVisible=!0}_getListBoxItems(){return this._locale.MONTH_SELECT.map((t,n)=>({value:`${n+1}`,label:`${t}`}))}_getMonthLabel(){const t=this._locale.MONTH_SELECT.filter((n,r)=>this.month===r+1);return t.length>0?t[0]:"JANUARY"}}Sa([z({type:String,attribute:"lang",reflect:!0})],Eo.prototype,"language",void 0);Sa([z({type:Number})],Eo.prototype,"month",void 0);Sa([yt()],Eo.prototype,"_listBoxVisible",void 0);Sa([we(".kuc-base-datetime-header-month-1-18-0__toggle")],Eo.prototype,"_toggleEl",void 0);window.customElements.get("kuc-base-datetime-header-month-1-18-0")||(xt(e1),window.customElements.define("kuc-base-datetime-header-month-1-18-0",Eo));const t1=` + `:""}_handleFocusOutListBox(){this._listBoxVisible=!1,this._toggleEl.focus()}_handleListBoxEscape(){this._handleFocusOutListBox()}_handleClickDropdownMonthToggle(i){i.stopPropagation(),i.preventDefault(),this._listBoxVisible?this.closeListBox():this._openListBox(),ae(this,"kuc:month-dropdown-click",{value:this._listBoxVisible.toString(),oldValue:(!this._listBoxVisible).toString()})}_handleMouseUpDropdownToggle(i){i.preventDefault()}_handleMouseDownDropdownToggle(i){i.preventDefault()}_handleKeyDownMonthToggle(i){this._handleTabKey(i.key)||(i.preventDefault(),this._openListBoxByKey(i.key))}_openListBoxByKey(i){[" ","Up","ArrowUp","Down","ArrowDown","Enter"].indexOf(i)>-1&&this._openListBox()}_handleTabKey(i){return i==="Tab"}_handleChangeListBox(i){if(i.preventDefault(),i.stopPropagation(),this.closeListBox(),!i.detail.value)return;this.month=Number(i.detail.value);const t={value:`${this.month}`};ae(this,"kuc:month-dropdown-change",t)}_openListBox(){this._listBoxVisible=!0}_getListBoxItems(){return this._locale.MONTH_SELECT.map((i,t)=>({value:`${t+1}`,label:`${i}`}))}_getMonthLabel(){const i=this._locale.MONTH_SELECT.filter((t,n)=>this.month===n+1);return i.length>0?i[0]:"JANUARY"}}ms([k({type:String,attribute:"lang",reflect:!0})],pa.prototype,"language",void 0);ms([k({type:Number})],pa.prototype,"month",void 0);ms([ge()],pa.prototype,"_listBoxVisible",void 0);ms([le(".kuc-base-datetime-header-month-1-18-0__toggle")],pa.prototype,"_toggleEl",void 0);window.customElements.get("kuc-base-datetime-header-month-1-18-0")||(ye(U0),window.customElements.define("kuc-base-datetime-header-month-1-18-0",pa));const F0=` kuc-base-datetime-calendar-header-1-18-0, kuc-base-datetime-calendar-header-1-18-0 *, kuc-base-datetime-calendar-header-1-18-0:lang(en), @@ -666,7 +1286,7 @@ kuc-base-datetime-calendar-header-1-18-0:lang(ja) kuc-base-datetime-listbox-1-18 .kuc-base-datetime-calendar-header-1-18-0__month { margin: 0 4px 0 4px; } -`;var ti=function(e,t,n,r){var i=arguments.length,o=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o};function n1(e){return e>0&&e<13}function r1(e){return e>=0&&e<1e4}class yr extends vt{constructor(){super(...arguments),this.language="en",this.month=1,this.year=new Date().getFullYear(),this._locale=ln("en")}update(t){t.has("language")&&(this._locale=ln(this.language)),super.update(t)}render(){return fe` +`;var Vr=function(e,i,t,n){var r=arguments.length,o=r<3?i:n===null?n=Object.getOwnPropertyDescriptor(i,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,i,t,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(r<3?a(o):r>3?a(i,t,o):a(i,t))||o);return r>3&&o&&Object.defineProperty(i,t,o),o};function j0(e){return e>0&&e<13}function W0(e){return e>=0&&e<1e4}class Zn extends ve{constructor(){super(...arguments),this.language="en",this.month=1,this.year=new Date().getFullYear(),this._locale=Et("en")}update(i){i.has("language")&&(this._locale=Et(this.language)),super.update(i)}render(){return Y` ${this._getYearMonthTemplate()} @@ -686,10 +1306,10 @@ kuc-base-datetime-calendar-header-1-18-0:lang(ja) kuc-base-datetime-listbox-1-18 class="kuc-base-datetime-calendar-header-1-18-0__group__button kuc-base-datetime-calendar-header-1-18-0__group__button--next-month" @click="${this._handleClickCalendarNextMonthBtn}" > - ${Iv()} + ${E0()}- `}_getYearTemplate(){return fe` + `}_getYearTemplate(){return Y`- `}_getMonthTemplate(){return fe` + `}_getMonthTemplate(){return Y` - `}_getYearMonthTemplate(){return this.language==="zh"||this.language==="ja"||this.language==="zh-TW"?fe` ${this._getYearTemplate()}${this._getMonthTemplate()} `:fe` ${this._getMonthTemplate()}${this._getYearTemplate()} `}_handleMonthDropdownChange(t){t.stopPropagation(),t.preventDefault(),this.month=parseInt(t.detail.value,10),this._dispatchCalendarHeaderChangeEvent()}_handleYearDropdownChange(t){t.stopPropagation(),t.preventDefault(),this.year=parseInt(t.detail.value,10),this._dispatchCalendarHeaderChangeEvent()}_handleYearDropdownClick(){this._listBoxMonthEl&&this._baseDateTimeHeaderMonthEl.closeListBox()}_handleMonthDropdownClick(){this._listBoxYearEl&&this._baseDateTimeHeaderYearEl.closeListBox()}_handleClickCalendarPrevMonthBtn(t){t.stopPropagation(),this.month===1?(this.month=12,this.year--):this.month-=1,this._dispatchCalendarHeaderChangeEvent()}_handleKeyDownCalendarPrevMonthBtn(t){!t.shiftKey||t.key!=="Tab"||(t.preventDefault(),Ie(this,"kuc:calendar-header-previous-shifttab"))}_handleClickCalendarNextMonthBtn(t){t.stopPropagation(),this.month===12?(this.month=1,this.year++):this.month+=1,this._dispatchCalendarHeaderChangeEvent()}_dispatchCalendarHeaderChangeEvent(){const t=this.year,n=this.month,r={value:`${t}-${n}`};Ie(this,"kuc:calendar-header-change",r)}}ti([z({type:String,attribute:"lang",reflect:!0})],yr.prototype,"language",void 0);ti([z({type:Number,hasChanged(e){return n1(e)}})],yr.prototype,"month",void 0);ti([z({type:Number,hasChanged(e){return r1(e)}})],yr.prototype,"year",void 0);ti([we(".kuc-base-datetime-calendar-header-1-18-0__month")],yr.prototype,"_baseDateTimeHeaderMonthEl",void 0);ti([we(".kuc-base-datetime-calendar-header-1-18-0__year")],yr.prototype,"_baseDateTimeHeaderYearEl",void 0);ti([we(".kuc-base-datetime-header-month-1-18-0__listbox")],yr.prototype,"_listBoxMonthEl",void 0);ti([we(".kuc-base-datetime-header-year-1-18-0__listbox")],yr.prototype,"_listBoxYearEl",void 0);window.customElements.get("kuc-base-datetime-calendar-header-1-18-0")||(xt(t1),window.customElements.define("kuc-base-datetime-calendar-header-1-18-0",yr));const i1=` + `}_getYearMonthTemplate(){return this.language==="zh"||this.language==="ja"||this.language==="zh-TW"?Y` ${this._getYearTemplate()}${this._getMonthTemplate()} `:Y` ${this._getMonthTemplate()}${this._getYearTemplate()} `}_handleMonthDropdownChange(i){i.stopPropagation(),i.preventDefault(),this.month=parseInt(i.detail.value,10),this._dispatchCalendarHeaderChangeEvent()}_handleYearDropdownChange(i){i.stopPropagation(),i.preventDefault(),this.year=parseInt(i.detail.value,10),this._dispatchCalendarHeaderChangeEvent()}_handleYearDropdownClick(){this._listBoxMonthEl&&this._baseDateTimeHeaderMonthEl.closeListBox()}_handleMonthDropdownClick(){this._listBoxYearEl&&this._baseDateTimeHeaderYearEl.closeListBox()}_handleClickCalendarPrevMonthBtn(i){i.stopPropagation(),this.month===1?(this.month=12,this.year--):this.month-=1,this._dispatchCalendarHeaderChangeEvent()}_handleKeyDownCalendarPrevMonthBtn(i){!i.shiftKey||i.key!=="Tab"||(i.preventDefault(),ae(this,"kuc:calendar-header-previous-shifttab"))}_handleClickCalendarNextMonthBtn(i){i.stopPropagation(),this.month===12?(this.month=1,this.year++):this.month+=1,this._dispatchCalendarHeaderChangeEvent()}_dispatchCalendarHeaderChangeEvent(){const i=this.year,t=this.month,n={value:`${i}-${t}`};ae(this,"kuc:calendar-header-change",n)}}Vr([k({type:String,attribute:"lang",reflect:!0})],Zn.prototype,"language",void 0);Vr([k({type:Number,hasChanged(e){return j0(e)}})],Zn.prototype,"month",void 0);Vr([k({type:Number,hasChanged(e){return W0(e)}})],Zn.prototype,"year",void 0);Vr([le(".kuc-base-datetime-calendar-header-1-18-0__month")],Zn.prototype,"_baseDateTimeHeaderMonthEl",void 0);Vr([le(".kuc-base-datetime-calendar-header-1-18-0__year")],Zn.prototype,"_baseDateTimeHeaderYearEl",void 0);Vr([le(".kuc-base-datetime-header-month-1-18-0__listbox")],Zn.prototype,"_listBoxMonthEl",void 0);Vr([le(".kuc-base-datetime-header-year-1-18-0__listbox")],Zn.prototype,"_listBoxYearEl",void 0);window.customElements.get("kuc-base-datetime-calendar-header-1-18-0")||(ye(F0),window.customElements.define("kuc-base-datetime-calendar-header-1-18-0",Zn));const G0=` kuc-base-datetime-calendar-body-1-18-0, kuc-base-datetime-calendar-body-1-18-0 *, kuc-base-datetime-calendar-body-1-18-0:lang(en), @@ -799,38 +1419,38 @@ kuc-base-datetime-calendar-body-1-18-0:lang(es) * { .kuc-base-datetime-calendar-body-1-18-0__table__date--other-month:hover { color: #d4d7d7; } -`;var Xn=function(e,t,n,r){var i=arguments.length,o=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o};class Ln extends vt{constructor(){super(),this.month=1,this.year=2021,this.language="en",this.value="",this._month=1,this._year=2021,this._locale=ln("en"),this._handleClickDocument=this._handleClickDocument.bind(this),this._handleKeyDownDocument=this._handleKeyDownDocument.bind(this)}connectedCallback(){super.connectedCallback(),setTimeout(()=>{document.addEventListener("click",this._handleClickDocument),document.addEventListener("keydown",this._handleKeyDownDocument)},1)}disconnectedCallback(){document.removeEventListener("click",this._handleClickDocument),document.removeEventListener("keydown",this._handleKeyDownDocument),super.disconnectedCallback()}update(t){if(t.forEach((n,r)=>{r==="language"&&(this._locale=ln(this.language))}),t.has("month")&&(this._month=this.month),t.has("year")&&(this._year=this.year),t.has("value")){const{month:n,year:r}=this._separateDateValue();this._month=parseInt(n,10),this._year=parseInt(r,10)}super.update(t)}render(){return fe` +`;var Rn=function(e,i,t,n){var r=arguments.length,o=r<3?i:n===null?n=Object.getOwnPropertyDescriptor(i,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,i,t,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(r<3?a(o):r>3?a(i,t,o):a(i,t))||o);return r>3&&o&&Object.defineProperty(i,t,o),o};class cn extends ve{constructor(){super(),this.month=1,this.year=2021,this.language="en",this.value="",this._month=1,this._year=2021,this._locale=Et("en"),this._handleClickDocument=this._handleClickDocument.bind(this),this._handleKeyDownDocument=this._handleKeyDownDocument.bind(this)}connectedCallback(){super.connectedCallback(),setTimeout(()=>{document.addEventListener("click",this._handleClickDocument),document.addEventListener("keydown",this._handleKeyDownDocument)},1)}disconnectedCallback(){document.removeEventListener("click",this._handleClickDocument),document.removeEventListener("keydown",this._handleKeyDownDocument),super.disconnectedCallback()}update(i){if(i.forEach((t,n)=>{n==="language"&&(this._locale=Et(this.language))}),i.has("month")&&(this._month=this.month),i.has("year")&&(this._year=this.year),i.has("value")){const{month:t,year:n}=this._separateDateValue();this._month=parseInt(t,10),this._year=parseInt(n,10)}super.update(i)}render(){return Y` ${this._getHeaderItemsTemplate()}${this._getDateItemsTemplate()}
- `}updated(t){t.has("value")&&this._focusDateEl(),super.update(t)}_handleClickDocument(){Ie(this,"kuc:calendar-body-blur",{})}_handleKeyDownDocument(t){t.key==="Escape"&&(t.preventDefault(),t.stopPropagation(),Ie(this,"kuc:calendar-body-blur",{}))}_handleClickDate(t){t.preventDefault(),t.stopPropagation();const n=t.target;n.setAttribute("aria-selected","true");const r=n.getAttribute("data-date")||"";this._dispatchClickEvent(r)}_handleKeyDownDate(t){let n=!1;switch(t.key){case"Up":case"ArrowUp":{n=!0,this._moveToDate(-7);break}case"Down":case"ArrowDown":{n=!0,this._moveToDate(7);break}case"Left":case"ArrowLeft":{n=!0,this._moveToDate(-1);break}case"Right":case"ArrowRight":{n=!0,this._moveToDate(1);break}case" ":case"Enter":{n=!0;const r=this._getSelectedValue();this._dispatchClickEvent(r);break}}n&&(t.stopPropagation(),t.preventDefault())}_dispatchClickEvent(t){const n={oldValue:this.value,value:t};Ie(this,"kuc:calendar-body-click-date",n),this.value=t}_isToday(t){const n=new Date;return parseInt(t[0],10)===n.getFullYear()&&parseInt(t[1],10)===n.getMonth()+1&&parseInt(t[2],10)===n.getDate()}_moveToDate(t){let n=this.value;const r=this._getSelectedValue(),{day:i}=this._separateDateValue(r);n=`${this._year}-${tt(this._month)}-${i}`;const o=new Date(`${n||this._getValueItemFocused()}T00:00:00`);if(isNaN(o.getTime()))return;o.setDate(o.getDate()+t);const a=this._getDateString(o),s=n;this.value=a,Ie(this,"kuc:calendar-body-change-date",{oldValue:s,value:a})}_separateDateValue(t=this.value){const n=t.split("-");return{day:n[2],month:n[1],year:n[0]}}_getSelectedValue(){return this._highlightItem?this._highlightItem.dataset.date||"":this._selectedItem&&this._selectedItem.getAttribute("data-date")||""}_getValueItemFocused(){return this._focusedItem&&this._focusedItem.getAttribute("data-date")||""}_getDateClass(t,n){return n?this._isToday(t)?" kuc-base-datetime-calendar-body-1-18-0__table__date--selected--today":"":this._isToday(t)?" kuc-base-datetime-calendar-body-1-18-0__table__date--selected--today":" kuc-base-datetime-calendar-body-1-18-0__table__date--other-month"}_getDateString(t=new Date){const n=t.getFullYear(),r=tt(t.getMonth()+1),i=tt(t.getDate());return`${n}-${r}-${i}`}_isSameDayOfMoment(t){const n=parseInt(t[1],10),r=parseInt(t[2],10),i=parseInt(t[0],10);let o=new Date().getDate();if(!this.value.split("-")[2])return!1;if(this.value&&(o=new Date(`${this.value}T00:00:00`).getDate()),o===r&&n===this._month)return!0;const s=new Date(i,this._month,0).getDate();return o>s&&s===r&&n===this._month}_getHeaderItemsTemplate(){return fe` + `}updated(i){i.has("value")&&this._focusDateEl(),super.update(i)}_handleClickDocument(){ae(this,"kuc:calendar-body-blur",{})}_handleKeyDownDocument(i){i.key==="Escape"&&(i.preventDefault(),i.stopPropagation(),ae(this,"kuc:calendar-body-blur",{}))}_handleClickDate(i){i.preventDefault(),i.stopPropagation();const t=i.target;t.setAttribute("aria-selected","true");const n=t.getAttribute("data-date")||"";this._dispatchClickEvent(n)}_handleKeyDownDate(i){let t=!1;switch(i.key){case"Up":case"ArrowUp":{t=!0,this._moveToDate(-7);break}case"Down":case"ArrowDown":{t=!0,this._moveToDate(7);break}case"Left":case"ArrowLeft":{t=!0,this._moveToDate(-1);break}case"Right":case"ArrowRight":{t=!0,this._moveToDate(1);break}case" ":case"Enter":{t=!0;const n=this._getSelectedValue();this._dispatchClickEvent(n);break}}t&&(i.stopPropagation(),i.preventDefault())}_dispatchClickEvent(i){const t={oldValue:this.value,value:i};ae(this,"kuc:calendar-body-click-date",t),this.value=i}_isToday(i){const t=new Date;return parseInt(i[0],10)===t.getFullYear()&&parseInt(i[1],10)===t.getMonth()+1&&parseInt(i[2],10)===t.getDate()}_moveToDate(i){let t=this.value;const n=this._getSelectedValue(),{day:r}=this._separateDateValue(n);t=`${this._year}-${je(this._month)}-${r}`;const o=new Date(`${t||this._getValueItemFocused()}T00:00:00`);if(isNaN(o.getTime()))return;o.setDate(o.getDate()+i);const a=this._getDateString(o),s=t;this.value=a,ae(this,"kuc:calendar-body-change-date",{oldValue:s,value:a})}_separateDateValue(i=this.value){const t=i.split("-");return{day:t[2],month:t[1],year:t[0]}}_getSelectedValue(){return this._highlightItem?this._highlightItem.dataset.date||"":this._selectedItem&&this._selectedItem.getAttribute("data-date")||""}_getValueItemFocused(){return this._focusedItem&&this._focusedItem.getAttribute("data-date")||""}_getDateClass(i,t){return t?this._isToday(i)?" kuc-base-datetime-calendar-body-1-18-0__table__date--selected--today":"":this._isToday(i)?" kuc-base-datetime-calendar-body-1-18-0__table__date--selected--today":" kuc-base-datetime-calendar-body-1-18-0__table__date--other-month"}_getDateString(i=new Date){const t=i.getFullYear(),n=je(i.getMonth()+1),r=je(i.getDate());return`${t}-${n}-${r}`}_isSameDayOfMoment(i){const t=parseInt(i[1],10),n=parseInt(i[2],10),r=parseInt(i[0],10);let o=new Date().getDate();if(!this.value.split("-")[2])return!1;if(this.value&&(o=new Date(`${this.value}T00:00:00`).getDate()),o===n&&t===this._month)return!0;const s=new Date(r,this._month,0).getDate();return o>s&&s===n&&t===this._month}_getHeaderItemsTemplate(){return Y`- ${this._locale.WEEK_DAYS.map(t=>fe` + ${this._locale.WEEK_DAYS.map(i=>Y` - `}_getDateItemsTemplate(){const t=mv(this._year,this._month-1),n=this._locale.MONTH_SELECT[this._month-1];return fe` + `}_getDateItemsTemplate(){const i=M_(this._year,this._month-1),t=this._locale.MONTH_SELECT[this._month-1];return Y` - ${t.map(r=>fe` + ${i.map(n=>Y`- ${t.text} + ${i.text} `)}- ${r.map(i=>{const o=i.text.split("-"),a=this._isSameDayOfMoment(o),s=parseInt(o[1],10)===this._month,l=(this.value===i.attr||a)&&s;return fe` + ${n.map(r=>{const o=r.text.split("-"),a=this._isSameDayOfMoment(o),s=parseInt(o[1],10)===this._month,l=(this.value===r.attr||a)&&s;return Y` `)} - `}_focusDateEl(){this._focusedItem&&this._focusedItem.focus({preventScroll:!0})}}Xn([z({type:Number})],Ln.prototype,"month",void 0);Xn([z({type:Number})],Ln.prototype,"year",void 0);Xn([z({type:String,attribute:"lang",reflect:!0})],Ln.prototype,"language",void 0);Xn([z({type:String,reflect:!0})],Ln.prototype,"value",void 0);Xn([yt()],Ln.prototype,"_month",void 0);Xn([yt()],Ln.prototype,"_year",void 0);Xn([we('.kuc-base-datetime-calendar-body-1-18-0__table__date--selected[aria-selected="true"]')],Ln.prototype,"_selectedItem",void 0);Xn([we(".kuc-base-datetime-calendar-body-1-18-0__table__date--selected")],Ln.prototype,"_highlightItem",void 0);Xn([we('.kuc-base-datetime-calendar-body-1-18-0__table__date--selected[tabindex="0"]')],Ln.prototype,"_focusedItem",void 0);window.customElements.get("kuc-base-datetime-calendar-body-1-18-0")||(xt(i1),window.customElements.define("kuc-base-datetime-calendar-body-1-18-0",Ln));const o1=` + `}_focusDateEl(){this._focusedItem&&this._focusedItem.focus({preventScroll:!0})}}Rn([k({type:Number})],cn.prototype,"month",void 0);Rn([k({type:Number})],cn.prototype,"year",void 0);Rn([k({type:String,attribute:"lang",reflect:!0})],cn.prototype,"language",void 0);Rn([k({type:String,reflect:!0})],cn.prototype,"value",void 0);Rn([ge()],cn.prototype,"_month",void 0);Rn([ge()],cn.prototype,"_year",void 0);Rn([le('.kuc-base-datetime-calendar-body-1-18-0__table__date--selected[aria-selected="true"]')],cn.prototype,"_selectedItem",void 0);Rn([le(".kuc-base-datetime-calendar-body-1-18-0__table__date--selected")],cn.prototype,"_highlightItem",void 0);Rn([le('.kuc-base-datetime-calendar-body-1-18-0__table__date--selected[tabindex="0"]')],cn.prototype,"_focusedItem",void 0);window.customElements.get("kuc-base-datetime-calendar-body-1-18-0")||(ye(G0),window.customElements.define("kuc-base-datetime-calendar-body-1-18-0",cn));const q0=` kuc-base-datetime-calendar-footer-1-18-0, kuc-base-datetime-calendar-footer-1-18-0 *, kuc-base-datetime-calendar-footer-1-18-0:lang(en), @@ -893,7 +1513,7 @@ kuc-base-datetime-calendar-footer-1-18-0:lang(es) * { .kuc-base-datetime-calendar-footer-1-18-0__group__center { width: 100%; } -`;var $h=function(e,t,n,r){var i=arguments.length,o=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o};class ku extends vt{constructor(){super(...arguments),this.language="en",this._locale=ln("en")}update(t){t.has("language")&&(this._locale=ln(this.language)),super.update(t)}_handleClickCalendarFooterButtonNone(t){t.stopPropagation(),Ie(this,"kuc:calendar-footer-click-none")}_handleClickCalendarFooterButtonToday(t){t.stopPropagation(),Ie(this,"kuc:calendar-footer-click-today")}_handleKeyDownCalendarFooterButtonNone(t){t.key==="Tab"&&(t.shiftKey||(t.preventDefault(),Ie(this,"kuc:calendar-footer-tab-none")))}render(){return fe` +`;var q_=function(e,i,t,n){var r=arguments.length,o=r<3?i:n===null?n=Object.getOwnPropertyDescriptor(i,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,i,t,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(r<3?a(o):r>3?a(i,t,o):a(i,t))||o);return r>3&&o&&Object.defineProperty(i,t,o),o};class Mc extends ve{constructor(){super(...arguments),this.language="en",this._locale=Et("en")}update(i){i.has("language")&&(this._locale=Et(this.language)),super.update(i)}_handleClickCalendarFooterButtonNone(i){i.stopPropagation(),ae(this,"kuc:calendar-footer-click-none")}_handleClickCalendarFooterButtonToday(i){i.stopPropagation(),ae(this,"kuc:calendar-footer-click-today")}_handleKeyDownCalendarFooterButtonNone(i){i.key==="Tab"&&(i.shiftKey||(i.preventDefault(),ae(this,"kuc:calendar-footer-tab-none")))}render(){return Y` - `}}$h([z({type:String,attribute:"lang",reflect:!0})],ku.prototype,"language",void 0);$h([yt()],ku.prototype,"_locale",void 0);window.customElements.get("kuc-base-datetime-calendar-footer-1-18-0")||(xt(o1),window.customElements.define("kuc-base-datetime-calendar-footer-1-18-0",ku));const a1=` + `}}q_([k({type:String,attribute:"lang",reflect:!0})],Mc.prototype,"language",void 0);q_([ge()],Mc.prototype,"_locale",void 0);window.customElements.get("kuc-base-datetime-calendar-footer-1-18-0")||(ye(q0),window.customElements.define("kuc-base-datetime-calendar-footer-1-18-0",Mc));const z0=` .kuc-base-datetime-calendar-1-18-0__group { display: inline-block; box-sizing: border-box; @@ -925,7 +1545,7 @@ kuc-base-datetime-calendar-footer-1-18-0:lang(es) * { text-align: center; font-size: 13px; } -`;var Jn=function(e,t,n,r){var i=arguments.length,o=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o};class Nn extends vt{constructor(){super(...arguments),this.language="en",this.value="",this._month=1,this._year=new Date().getFullYear()}update(t){t.has("value")&&this._updateValue(),super.update(t)}render(){return fe` +`;var $n=function(e,i,t,n){var r=arguments.length,o=r<3?i:n===null?n=Object.getOwnPropertyDescriptor(i,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,i,t,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(r<3?a(o):r>3?a(i,t,o):a(i,t))||o);return r>3&&o&&Object.defineProperty(i,t,o),o};class dn extends ve{constructor(){super(...arguments),this.language="en",this.value="",this._month=1,this._year=new Date().getFullYear()}update(i){i.has("value")&&this._updateValue(),super.update(i)}render(){return Y`@@ -840,7 +1460,7 @@ kuc-base-datetime-calendar-body-1-18-0:lang(es) * { - `}async updated(t){await this.updateComplete,this._calculateBodyCalendarPosition(),super.updated(t)}_handleKeyDownCalendarGroup(t){t.key==="Escape"&&(t.preventDefault(),t.stopPropagation(),Ie(this,"kuc:calendar-escape",{}))}_handleClickCalendarGroup(t){t.stopPropagation(),this._listBoxMonthEl&&this._monthEl.closeListBox(),this._listBoxYearEl&&this._yearEl.closeListBox()}_calculateBodyCalendarPosition(){const{inputToBottom:t,inputToTop:n,inputToRight:r,inputToLeft:i}=xa(this),o=this._baseCalendarGroupEl.getBoundingClientRect().height;if(t>=o){this._calculateCalendarPosition(r,i,"bottom");return}if(n<0||t>n){this._calculateCalendarPosition(r,i,"bottom");return}this._calculateCalendarPosition(r,i,"top")}_calculateCalendarPosition(t,n,r){if(!this.parentElement)return;const i=this.parentElement.getElementsByClassName("kuc-base-date-1-18-0__input")[0],o=336,a=i.getBoundingClientRect().height,s=i.getBoundingClientRect().width;if(ts?d-s:0;this._setCalendarPosition({top:f,bottom:g,right:y});return}const l=r==="bottom"?a:"auto",u=r==="bottom"?"auto":a;this._setCalendarPosition({bottom:u,top:l,left:0})}_setCalendarPosition({top:t="auto",left:n="auto",right:r="auto",bottom:i="auto"}){const o=this._baseCalendarGroupEl.parentElement;!this.parentElement||!o||(this.parentElement.style.position="relative",o.style.bottom=i==="auto"?i:i+"px",o.style.top=t==="auto"?t:t+"px",o.style.left=n==="auto"?n:n+"px",o.style.right=r==="auto"?r:r+"px")}_handleCalendarHeaderChange(t){const{year:n,month:r}=this._separateValue(t.detail.value);this._year=n,this._month=r}_handleCalendarBodyChangeDate(t){const{year:n,month:r}=this._separateValue(t.detail.value);this._year=n,this._month=r}_updateValue(){this.value===""&&(this.value=Vi().slice(0,7)+"-01");const{year:t,month:n}=this._separateValue(this.value);this._year=t,this._month=n}_separateValue(t){const n=t.split("-");return{year:parseInt(n[0],10),month:parseInt(n[1],10)}}}Jn([z({type:String,attribute:"lang",reflect:!0})],Nn.prototype,"language",void 0);Jn([z({type:String,reflect:!0})],Nn.prototype,"value",void 0);Jn([we(".kuc-base-datetime-calendar-1-18-0__group")],Nn.prototype,"_baseCalendarGroupEl",void 0);Jn([we(".kuc-base-datetime-calendar-header-1-18-0__month")],Nn.prototype,"_monthEl",void 0);Jn([we(".kuc-base-datetime-calendar-header-1-18-0__year")],Nn.prototype,"_yearEl",void 0);Jn([we(".kuc-base-datetime-header-month-1-18-0__listbox")],Nn.prototype,"_listBoxMonthEl",void 0);Jn([we(".kuc-base-datetime-header-year-1-18-0__listbox")],Nn.prototype,"_listBoxYearEl",void 0);Jn([yt()],Nn.prototype,"_month",void 0);Jn([yt()],Nn.prototype,"_year",void 0);window.customElements.get("kuc-base-datetime-calendar-1-18-0")||(xt(a1),window.customElements.define("kuc-base-datetime-calendar-1-18-0",Nn));const s1=` + `}async updated(i){await this.updateComplete,this._calculateBodyCalendarPosition(),super.updated(i)}_handleKeyDownCalendarGroup(i){i.key==="Escape"&&(i.preventDefault(),i.stopPropagation(),ae(this,"kuc:calendar-escape",{}))}_handleClickCalendarGroup(i){i.stopPropagation(),this._listBoxMonthEl&&this._monthEl.closeListBox(),this._listBoxYearEl&&this._yearEl.closeListBox()}_calculateBodyCalendarPosition(){const{inputToBottom:i,inputToTop:t,inputToRight:n,inputToLeft:r}=ca(this),o=this._baseCalendarGroupEl.getBoundingClientRect().height;if(i>=o){this._calculateCalendarPosition(n,r,"bottom");return}if(t<0||i>t){this._calculateCalendarPosition(n,r,"bottom");return}this._calculateCalendarPosition(n,r,"top")}_calculateCalendarPosition(i,t,n){if(!this.parentElement)return;const r=this.parentElement.getElementsByClassName("kuc-base-date-1-18-0__input")[0],o=336,a=r.getBoundingClientRect().height,s=r.getBoundingClientRect().width;if(i s?d-s:0;this._setCalendarPosition({top:h,bottom:b,right:y});return}const l=n==="bottom"?a:"auto",u=n==="bottom"?"auto":a;this._setCalendarPosition({bottom:u,top:l,left:0})}_setCalendarPosition({top:i="auto",left:t="auto",right:n="auto",bottom:r="auto"}){const o=this._baseCalendarGroupEl.parentElement;!this.parentElement||!o||(this.parentElement.style.position="relative",o.style.bottom=r==="auto"?r:r+"px",o.style.top=i==="auto"?i:i+"px",o.style.left=t==="auto"?t:t+"px",o.style.right=n==="auto"?n:n+"px")}_handleCalendarHeaderChange(i){const{year:t,month:n}=this._separateValue(i.detail.value);this._year=t,this._month=n}_handleCalendarBodyChangeDate(i){const{year:t,month:n}=this._separateValue(i.detail.value);this._year=t,this._month=n}_updateValue(){this.value===""&&(this.value=Wn().slice(0,7)+"-01");const{year:i,month:t}=this._separateValue(this.value);this._year=i,this._month=t}_separateValue(i){const t=i.split("-");return{year:parseInt(t[0],10),month:parseInt(t[1],10)}}}$n([k({type:String,attribute:"lang",reflect:!0})],dn.prototype,"language",void 0);$n([k({type:String,reflect:!0})],dn.prototype,"value",void 0);$n([le(".kuc-base-datetime-calendar-1-18-0__group")],dn.prototype,"_baseCalendarGroupEl",void 0);$n([le(".kuc-base-datetime-calendar-header-1-18-0__month")],dn.prototype,"_monthEl",void 0);$n([le(".kuc-base-datetime-calendar-header-1-18-0__year")],dn.prototype,"_yearEl",void 0);$n([le(".kuc-base-datetime-header-month-1-18-0__listbox")],dn.prototype,"_listBoxMonthEl",void 0);$n([le(".kuc-base-datetime-header-year-1-18-0__listbox")],dn.prototype,"_listBoxYearEl",void 0);$n([ge()],dn.prototype,"_month",void 0);$n([ge()],dn.prototype,"_year",void 0);window.customElements.get("kuc-base-datetime-calendar-1-18-0")||(ye(z0),window.customElements.define("kuc-base-datetime-calendar-1-18-0",dn));const K0=` kuc-base-datetime-listbox-1-18-0, kuc-base-datetime-listbox-1-18-0 *, kuc-base-datetime-listbox-1-18-0:lang(en), @@ -1020,7 +1640,7 @@ kuc-base-datetime-listbox-1-18-0:lang(es) * { .kuc-base-datetime-listbox-1-18-0__listbox__item:focus { outline: none; } -`;var un=function(e,t,n,r){var i=arguments.length,o=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o};class tn extends vt{constructor(){super(),this.value="",this.items=[],this.maxHeight=300,this.doFocus=!0,this._actionKeyboard=!1,this._firstHighlight=!0,this._handleClickDocument=this._handleClickDocument.bind(this)}connectedCallback(){super.connectedCallback(),setTimeout(()=>{document.addEventListener("click",this._handleClickDocument)},1)}disconnectedCallback(){document.removeEventListener("click",this._handleClickDocument),super.disconnectedCallback()}getHighlightItemEl(){return this._highlightItemEl}render(){return fe` +`;var Oi=function(e,i,t,n){var r=arguments.length,o=r<3?i:n===null?n=Object.getOwnPropertyDescriptor(i,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,i,t,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(r<3?a(o):r>3?a(i,t,o):a(i,t))||o);return r>3&&o&&Object.defineProperty(i,t,o),o};class ki extends ve{constructor(){super(),this.value="",this.items=[],this.maxHeight=300,this.doFocus=!0,this._actionKeyboard=!1,this._firstHighlight=!0,this._handleClickDocument=this._handleClickDocument.bind(this)}connectedCallback(){super.connectedCallback(),setTimeout(()=>{document.addEventListener("click",this._handleClickDocument)},1)}disconnectedCallback(){document.removeEventListener("click",this._handleClickDocument),super.disconnectedCallback()}getHighlightItemEl(){return this._highlightItemEl}render(){return Y` - ${this.items.map(t=>this._getListBoxItemTemplate(t))} + ${this.items.map(i=>this._getListBoxItemTemplate(i))}
- `}async updated(t){await this.updateComplete,t.has("value")&&this._highlightSelectedItem(),this._setListBoxPosition(),this._scrollToView(),super.updated(t)}_handleClickDocument(){Ie(this,"kuc:listbox-blur",{})}_handleClickListBox(t){t.stopPropagation()}_handleKeyDownListBox(t){switch(t.preventDefault(),t.stopPropagation(),t.key){case"Up":case"ArrowUp":this._actionKeyboard=!0,this._highlightPrevItemEl(),this._focusHighlightItemEl(),this._scrollToView();break;case"Down":case"ArrowDown":this._actionKeyboard=!0,this._highlightNextItemEl(),this._focusHighlightItemEl(),this._scrollToView();break;case"Home":this._actionKeyboard=!0,this._highlightFirstItem(),this._focusHighlightItemEl();break;case"End":this._actionKeyboard=!0,this._highlightLastItem(),this._focusHighlightItemEl();break;case"Tab":Ie(this,"kuc:listbox-click",{});break;case"Escape":Ie(this,"kuc:listbox-escape",{});break;case" ":case"Enter":{const r={value:this._highlightItemEl.getAttribute("value")||""};Ie(this,"kuc:listbox-click",r);break}}}_handleMouseDownListBox(t){if(t.preventDefault(),t.stopPropagation(),t.target===t.currentTarget)return;const i={value:t.target.getAttribute("value")||""};Ie(this,"kuc:listbox-click",i)}_handleMouseOverItem(t){if(this._actionKeyboard){this._actionKeyboard=!1;return}const n=t.target;this._setHighlightItemEl(n),this.doFocus&&this._focusHighlightItemEl(!1)}_setListBoxPosition(){const t=this._listBoxEl.getBoundingClientRect().height;if(!this._listBoxEl.parentElement||!this.parentElement)return;const r=window.innerHeight-this.parentElement.getBoundingClientRect().bottom,i=this.parentElement.offsetHeight;this._listBoxEl.style.bottom="auto",this._listBoxEl.style.left="auto",!(r>=t)&&(this.parentElement.style.position="relative",this._listBoxEl.style.bottom=i+"px",this._listBoxEl.style.left="0px")}_setHighlightItemEl(t){this._removeHighlight(),t.classList.add("kuc-base-datetime-listbox-1-18-0__listbox--highlight"),t.setAttribute("tabindex","0")}_highlightSelectedItem(){if(!this.doFocus)return;const n=Array.from(this._itemsEl).filter(r=>r.getAttribute("aria-selected")==="true")[0];n&&(this._itemSelectedEl=n,this._setHighlightItemEl(n),this._focusHighlightItemEl())}_highlightFirstItem(){this._itemSelectedEl=this._firstItemEl,this._setHighlightItemEl(this._firstItemEl)}_highlightLastItem(){this._itemSelectedEl=this._lastItemEl,this._setHighlightItemEl(this._lastItemEl)}_highlightNextItemEl(){if(this._highlightItemEl===null||this._iconChecked===null){this._highlightFirstItem();return}const t=this._getNextItemEl();if(t){this._setHighlightItemEl(t),this._firstHighlight=!1,this._itemSelectedEl=t;return}this._highlightFirstItem()}_getNextItemEl(){const t=this._iconChecked.parentElement;!this._itemSelectedEl&&t&&this._firstHighlight&&(this._itemSelectedEl=t);let n=this._highlightItemEl.nextElementSibling;return this._itemSelectedEl?this._itemSelectedEl.nextElementSibling?(n=this._itemSelectedEl.nextElementSibling,n):this._firstItemEl:n}_highlightPrevItemEl(){if(this._highlightItemEl===null||this._iconChecked===null){this._highlightLastItem();return}const t=this._getPreviousItemEl();if(t){this._setHighlightItemEl(t),this._firstHighlight=!1,this._itemSelectedEl=t;return}this._highlightLastItem()}_getPreviousItemEl(){const t=this._iconChecked.parentElement;!this._itemSelectedEl&&t&&this._firstHighlight&&(this._itemSelectedEl=t);let n=this._highlightItemEl.previousElementSibling;return this._itemSelectedEl?this._itemSelectedEl.previousElementSibling?(n=this._itemSelectedEl.previousElementSibling,n):this._lastItemEl:n}_removeHighlight(){this._highlightItemEl&&(this._highlightItemEl.setAttribute("tabindex","-1"),this._highlightItemEl.classList.remove("kuc-base-datetime-listbox-1-18-0__listbox--highlight"))}_focusHighlightItemEl(t){const n=this._highlightItemEl;n&&(n.focus({preventScroll:!0}),t!==!1&&this._dispatchListBoxFocusChange())}_dispatchListBoxFocusChange(){const n={value:this._highlightItemEl.getAttribute("value")||""};Ie(this,"kuc:listbox-focus-change",n)}_scrollToView(){const t=this._highlightItemEl||this._getHighlightItemByValue();if(!t||!this._listBoxEl)return;const n=t.offsetHeight,r=this._listBoxEl.clientHeight/n/2;let i=t.offsetTop-r*n;i<0&&(i=0),this._listBoxEl.scrollTop=i}_getHighlightItemByValue(){const t=Array.from(this._listBoxEl.children),n=new Date(Date.parse(`2021/01/01 ${this.value}`));let r=t.find(i=>new Date(Date.parse(`2021/01/01 ${i.title}`))>=n);return r||(r=t[t.length-1]),!this.doFocus||!r||(this._setHighlightItemEl(r),this._focusHighlightItemEl()),r}_getListBoxItemTemplate(t){const n=this.value===t.value&&this.doFocus;return fe` + `}async updated(i){await this.updateComplete,i.has("value")&&this._highlightSelectedItem(),this._setListBoxPosition(),this._scrollToView(),super.updated(i)}_handleClickDocument(){ae(this,"kuc:listbox-blur",{})}_handleClickListBox(i){i.stopPropagation()}_handleKeyDownListBox(i){switch(i.preventDefault(),i.stopPropagation(),i.key){case"Up":case"ArrowUp":this._actionKeyboard=!0,this._highlightPrevItemEl(),this._focusHighlightItemEl(),this._scrollToView();break;case"Down":case"ArrowDown":this._actionKeyboard=!0,this._highlightNextItemEl(),this._focusHighlightItemEl(),this._scrollToView();break;case"Home":this._actionKeyboard=!0,this._highlightFirstItem(),this._focusHighlightItemEl();break;case"End":this._actionKeyboard=!0,this._highlightLastItem(),this._focusHighlightItemEl();break;case"Tab":ae(this,"kuc:listbox-click",{});break;case"Escape":ae(this,"kuc:listbox-escape",{});break;case" ":case"Enter":{const n={value:this._highlightItemEl.getAttribute("value")||""};ae(this,"kuc:listbox-click",n);break}}}_handleMouseDownListBox(i){if(i.preventDefault(),i.stopPropagation(),i.target===i.currentTarget)return;const r={value:i.target.getAttribute("value")||""};ae(this,"kuc:listbox-click",r)}_handleMouseOverItem(i){if(this._actionKeyboard){this._actionKeyboard=!1;return}const t=i.target;this._setHighlightItemEl(t),this.doFocus&&this._focusHighlightItemEl(!1)}_setListBoxPosition(){const i=this._listBoxEl.getBoundingClientRect().height;if(!this._listBoxEl.parentElement||!this.parentElement)return;const n=window.innerHeight-this.parentElement.getBoundingClientRect().bottom,r=this.parentElement.offsetHeight;this._listBoxEl.style.bottom="auto",this._listBoxEl.style.left="auto",!(n>=i)&&(this.parentElement.style.position="relative",this._listBoxEl.style.bottom=r+"px",this._listBoxEl.style.left="0px")}_setHighlightItemEl(i){this._removeHighlight(),i.classList.add("kuc-base-datetime-listbox-1-18-0__listbox--highlight"),i.setAttribute("tabindex","0")}_highlightSelectedItem(){if(!this.doFocus)return;const t=Array.from(this._itemsEl).filter(n=>n.getAttribute("aria-selected")==="true")[0];t&&(this._itemSelectedEl=t,this._setHighlightItemEl(t),this._focusHighlightItemEl())}_highlightFirstItem(){this._itemSelectedEl=this._firstItemEl,this._setHighlightItemEl(this._firstItemEl)}_highlightLastItem(){this._itemSelectedEl=this._lastItemEl,this._setHighlightItemEl(this._lastItemEl)}_highlightNextItemEl(){if(this._highlightItemEl===null||this._iconChecked===null){this._highlightFirstItem();return}const i=this._getNextItemEl();if(i){this._setHighlightItemEl(i),this._firstHighlight=!1,this._itemSelectedEl=i;return}this._highlightFirstItem()}_getNextItemEl(){const i=this._iconChecked.parentElement;!this._itemSelectedEl&&i&&this._firstHighlight&&(this._itemSelectedEl=i);let t=this._highlightItemEl.nextElementSibling;return this._itemSelectedEl?this._itemSelectedEl.nextElementSibling?(t=this._itemSelectedEl.nextElementSibling,t):this._firstItemEl:t}_highlightPrevItemEl(){if(this._highlightItemEl===null||this._iconChecked===null){this._highlightLastItem();return}const i=this._getPreviousItemEl();if(i){this._setHighlightItemEl(i),this._firstHighlight=!1,this._itemSelectedEl=i;return}this._highlightLastItem()}_getPreviousItemEl(){const i=this._iconChecked.parentElement;!this._itemSelectedEl&&i&&this._firstHighlight&&(this._itemSelectedEl=i);let t=this._highlightItemEl.previousElementSibling;return this._itemSelectedEl?this._itemSelectedEl.previousElementSibling?(t=this._itemSelectedEl.previousElementSibling,t):this._lastItemEl:t}_removeHighlight(){this._highlightItemEl&&(this._highlightItemEl.setAttribute("tabindex","-1"),this._highlightItemEl.classList.remove("kuc-base-datetime-listbox-1-18-0__listbox--highlight"))}_focusHighlightItemEl(i){const t=this._highlightItemEl;t&&(t.focus({preventScroll:!0}),i!==!1&&this._dispatchListBoxFocusChange())}_dispatchListBoxFocusChange(){const t={value:this._highlightItemEl.getAttribute("value")||""};ae(this,"kuc:listbox-focus-change",t)}_scrollToView(){const i=this._highlightItemEl||this._getHighlightItemByValue();if(!i||!this._listBoxEl)return;const t=i.offsetHeight,n=this._listBoxEl.clientHeight/t/2;let r=i.offsetTop-n*t;r<0&&(r=0),this._listBoxEl.scrollTop=r}_getHighlightItemByValue(){const i=Array.from(this._listBoxEl.children),t=new Date(Date.parse(`2021/01/01 ${this.value}`));let n=i.find(r=>new Date(Date.parse(`2021/01/01 ${r.title}`))>=t);return n||(n=i[i.length-1]),!this.doFocus||!n||(this._setHighlightItemEl(n),this._focusHighlightItemEl()),n}_getListBoxItemTemplate(i){const t=this.value===i.value&&this.doFocus;return Y`- ${n?this._getCheckedIconSvgTemplate():""} - ${t.label===void 0?t.value:t.label} + ${t?this._getCheckedIconSvgTemplate():""} + ${i.label===void 0?i.value:i.label} - `}_getCheckedIconSvgTemplate(){return ur` - `}}un([z({type:String})],tn.prototype,"value",void 0);un([z({type:Array})],tn.prototype,"items",void 0);un([z({type:Number})],tn.prototype,"maxHeight",void 0);un([z({type:Boolean})],tn.prototype,"doFocus",void 0);un([we(".kuc-base-datetime-listbox-1-18-0__listbox")],tn.prototype,"_listBoxEl",void 0);un([Al(".kuc-base-datetime-listbox-1-18-0__listbox__item")],tn.prototype,"_itemsEl",void 0);un([we(".kuc-base-datetime-listbox-1-18-0__listbox__item")],tn.prototype,"_firstItemEl",void 0);un([we(".kuc-base-datetime-listbox-1-18-0__listbox__item:last-child")],tn.prototype,"_lastItemEl",void 0);un([we(".kuc-base-datetime-listbox-1-18-0__listbox--highlight")],tn.prototype,"_highlightItemEl",void 0);un([we(".kuc-base-datetime-listbox-1-18-0__listbox__item__icon")],tn.prototype,"_iconChecked",void 0);un([yt()],tn.prototype,"_actionKeyboard",void 0);un([yt()],tn.prototype,"_firstHighlight",void 0);window.customElements.get("kuc-base-datetime-listbox-1-18-0")||(xt(s1),window.customElements.define("kuc-base-datetime-listbox-1-18-0",tn));const l1=` + `}}Oi([k({type:String})],ki.prototype,"value",void 0);Oi([k({type:Array})],ki.prototype,"items",void 0);Oi([k({type:Number})],ki.prototype,"maxHeight",void 0);Oi([k({type:Boolean})],ki.prototype,"doFocus",void 0);Oi([le(".kuc-base-datetime-listbox-1-18-0__listbox")],ki.prototype,"_listBoxEl",void 0);Oi([ti(".kuc-base-datetime-listbox-1-18-0__listbox__item")],ki.prototype,"_itemsEl",void 0);Oi([le(".kuc-base-datetime-listbox-1-18-0__listbox__item")],ki.prototype,"_firstItemEl",void 0);Oi([le(".kuc-base-datetime-listbox-1-18-0__listbox__item:last-child")],ki.prototype,"_lastItemEl",void 0);Oi([le(".kuc-base-datetime-listbox-1-18-0__listbox--highlight")],ki.prototype,"_highlightItemEl",void 0);Oi([le(".kuc-base-datetime-listbox-1-18-0__listbox__item__icon")],ki.prototype,"_iconChecked",void 0);Oi([ge()],ki.prototype,"_actionKeyboard",void 0);Oi([ge()],ki.prototype,"_firstHighlight",void 0);window.customElements.get("kuc-base-datetime-listbox-1-18-0")||(ye(K0),window.customElements.define("kuc-base-datetime-listbox-1-18-0",ki));const Y0=` input.kuc-base-date-1-18-0__input { width: 100px; height: 40px; @@ -1107,7 +1727,7 @@ input.kuc-base-date-1-18-0__input:disabled { height: 1px !important; width: 1px !important; } -`;var xn=function(e,t,n,r){var i=arguments.length,o=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o};class cn extends vt{constructor(){super(...arguments),this.inputAriaLabel="",this.inputId="",this.language="en",this.value="",this.disabled=!1,this.inputAriaInvalid=!1,this.required=!1,this._dateTimeCalendarVisible=!1,this._locale=ln("en"),this._calendarValue="",this._inputValue="",this._valueForReset=""}update(t){t.has("inputId")&&(this._GUID=this.inputId),t.has("language")&&(this._locale=ln(this.language),this._updateValueProp()),t.has("value")&&this._updateValueProp(),super.update(t)}render(){return fe` +`;var Wi=function(e,i,t,n){var r=arguments.length,o=r<3?i:n===null?n=Object.getOwnPropertyDescriptor(i,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,i,t,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(r<3?a(o):r>3?a(i,t,o):a(i,t))||o);return r>3&&o&&Object.defineProperty(i,t,o),o};class Di extends ve{constructor(){super(...arguments),this.inputAriaLabel="",this.inputId="",this.language="en",this.value="",this.disabled=!1,this.inputAriaInvalid=!1,this.required=!1,this._dateTimeCalendarVisible=!1,this._locale=Et("en"),this._calendarValue="",this._inputValue="",this._valueForReset=""}update(i){i.has("inputId")&&(this._GUID=this.inputId),i.has("language")&&(this._locale=Et(this.language),this._updateValueProp()),i.has("value")&&this._updateValueProp(),super.update(i)}render(){return Y` show date picker - ${this._dateTimeCalendarVisible?fe` + ${this._dateTimeCalendarVisible?Y``:""} - `}updated(t){t.has("inputAriaLabel")&&this.inputAriaLabel&&this._dateInput.setAttribute("aria-label",this.inputAriaLabel),super.updated(t)}_handleInputValue(t){const n=t.target.value;this._inputValue=n||""}_handleClickInput(){if(!this._dateTimeCalendarVisible){this._valueForReset=this.value,this._calendarValue=this._getNewCalendarValue(this._inputValue||""),this._openCalendar();return}this._closeCalendar()}_updateValueProp(){if(this.value){const n=this._setCalendarValueWhenInvalidValue();this._inputValue=Sv(this.language,this.value),this._calendarValue=n||this.value;return}const t=Vi();this._inputValue="",this._calendarValue=this._calendarValue?this._calendarValue.slice(0,7)+"-01":t.slice(0,7)}_setCalendarValueWhenInvalidValue(){if(this.value&&!oa(this.value)){const t=Vi();return this._calendarValue||t.slice(0,7)}return""}_getNewCalendarValue(t){if(Tv(this.language,t))return nf(this.language,t);if(!this._calendarValue)return"";let n=this._calendarValue.slice(0,7);return t===""&&(n=this._calendarValue.slice(0,7)+"-01"),n}_handleChangeInput(t){t.stopPropagation();const n=(t==null?void 0:t.target).value;if(this._calendarValue=this._getNewCalendarValue(n),this._calendarValue.length>7){this._dispathDateChangeCustomEvent(nf(this.language,n));return}const r={value:void 0,oldValue:this.value,error:this._locale.INVALID_FORMAT};this._inputValue=n,Ie(this,"kuc:base-date-change",r)}_handleKeyDownInput(t){t.key==="Escape"&&this._closeCalendar()}_closeCalendar(){this._dateTimeCalendarVisible=!1}_openCalendar(){this._dateTimeCalendarVisible=!0}_handleShiftTabCalendarPrevMonth(){this._footerNoneBtn.focus()}_handleClickCalendarChangeDate(t){t.detail.oldValue=this.value,this.value=t.detail.value,Ie(this,"kuc:base-date-change",t.detail)}_handleClickCalendarClickDate(t){this._closeCalendar(),t.detail.oldValue=this.value,this._dateInput.focus(),t.detail.oldValue!==t.detail.value&&(this.value=t.detail.value,Ie(this,"kuc:base-date-change",t.detail))}_handleClickCalendarFooterButtonNone(){this._closeCalendar(),this._dateInput.focus(),this._inputValue="";const t=Vi();let n=this._setCalendarValueWhenInvalidValue();n||(n=this._calendarValue?this._calendarValue.slice(0,7)+"-01":t.slice(0,7)+"-01"),this._calendarValue=n,this._dispathDateChangeCustomEvent(void 0)}_handleTabCalendarFooterButtonNone(){this._previousMonth.focus()}_handleClickCalendarFooterButtonToday(){this._closeCalendar();const t=Vi();this._dateInput.focus(),this._dispathDateChangeCustomEvent(t)}_handleCalendarEscape(){const t=this._valueForReset;if(this._closeCalendar(),this._dateInput.focus(),t===this.value)return;const n={oldValue:this.value,value:t};this.value=t,Ie(this,"kuc:base-date-change",n)}_handleCalendarBlurBody(t){t.preventDefault(),this._dateTimeCalendarVisible=!1}_dispathDateChangeCustomEvent(t){const n={value:t,oldValue:this.value};this.value=t===void 0?"":t,Ie(this,"kuc:base-date-change",n)}_handleClickButton(){if(!this._dateTimeCalendarVisible){this._valueForReset=this.value,this._calendarValue=this._getNewCalendarValue(this._inputValue||""),this._openCalendar();return}this._closeCalendar()}_handleBlurButton(){this._dateInput.classList.remove("kuc-base-date-1-18-0__input--focus")}_handleFocusButton(){this._dateInput.classList.add("kuc-base-date-1-18-0__input--focus")}}xn([z({type:String})],cn.prototype,"inputAriaLabel",void 0);xn([z({type:String})],cn.prototype,"inputId",void 0);xn([z({type:String,attribute:"lang",reflect:!0})],cn.prototype,"language",void 0);xn([z({type:String,reflect:!0})],cn.prototype,"value",void 0);xn([z({type:Boolean})],cn.prototype,"disabled",void 0);xn([z({type:Boolean})],cn.prototype,"inputAriaInvalid",void 0);xn([z({type:Boolean})],cn.prototype,"required",void 0);xn([we(".kuc-base-date-1-18-0__input")],cn.prototype,"_dateInput",void 0);xn([we(".kuc-base-datetime-calendar-header-1-18-0__group__button--previous-month")],cn.prototype,"_previousMonth",void 0);xn([we(".kuc-base-datetime-calendar-footer-1-18-0__group__button--none")],cn.prototype,"_footerNoneBtn",void 0);xn([yt()],cn.prototype,"_dateTimeCalendarVisible",void 0);window.customElements.get("kuc-base-date-1-18-0")||(xt(l1),window.customElements.define("kuc-base-date-1-18-0",cn));const u1=` + `}updated(i){i.has("inputAriaLabel")&&this.inputAriaLabel&&this._dateInput.setAttribute("aria-label",this.inputAriaLabel),super.updated(i)}_handleInputValue(i){const t=i.target.value;this._inputValue=t||""}_handleClickInput(){if(!this._dateTimeCalendarVisible){this._valueForReset=this.value,this._calendarValue=this._getNewCalendarValue(this._inputValue||""),this._openCalendar();return}this._closeCalendar()}_updateValueProp(){if(this.value){const t=this._setCalendarValueWhenInvalidValue();this._inputValue=V_(this.language,this.value),this._calendarValue=t||this.value;return}const i=Wn();this._inputValue="",this._calendarValue=this._calendarValue?this._calendarValue.slice(0,7)+"-01":i.slice(0,7)}_setCalendarValueWhenInvalidValue(){if(this.value&&!Lr(this.value)){const i=Wn();return this._calendarValue||i.slice(0,7)}return""}_getNewCalendarValue(i){if(H_(this.language,i))return Wu(this.language,i);if(!this._calendarValue)return"";let t=this._calendarValue.slice(0,7);return i===""&&(t=this._calendarValue.slice(0,7)+"-01"),t}_handleChangeInput(i){i.stopPropagation();const t=(i==null?void 0:i.target).value;if(this._calendarValue=this._getNewCalendarValue(t),this._calendarValue.length>7){this._dispathDateChangeCustomEvent(Wu(this.language,t));return}const n={value:void 0,oldValue:this.value,error:this._locale.INVALID_FORMAT};this._inputValue=t,ae(this,"kuc:base-date-change",n)}_handleKeyDownInput(i){i.key==="Escape"&&this._closeCalendar()}_closeCalendar(){this._dateTimeCalendarVisible=!1}_openCalendar(){this._dateTimeCalendarVisible=!0}_handleShiftTabCalendarPrevMonth(){this._footerNoneBtn.focus()}_handleClickCalendarChangeDate(i){i.detail.oldValue=this.value,this.value=i.detail.value,ae(this,"kuc:base-date-change",i.detail)}_handleClickCalendarClickDate(i){this._closeCalendar(),i.detail.oldValue=this.value,this._dateInput.focus(),i.detail.oldValue!==i.detail.value&&(this.value=i.detail.value,ae(this,"kuc:base-date-change",i.detail))}_handleClickCalendarFooterButtonNone(){this._closeCalendar(),this._dateInput.focus(),this._inputValue="";const i=Wn();let t=this._setCalendarValueWhenInvalidValue();t||(t=this._calendarValue?this._calendarValue.slice(0,7)+"-01":i.slice(0,7)+"-01"),this._calendarValue=t,this._dispathDateChangeCustomEvent(void 0)}_handleTabCalendarFooterButtonNone(){this._previousMonth.focus()}_handleClickCalendarFooterButtonToday(){this._closeCalendar();const i=Wn();this._dateInput.focus(),this._dispathDateChangeCustomEvent(i)}_handleCalendarEscape(){const i=this._valueForReset;if(this._closeCalendar(),this._dateInput.focus(),i===this.value)return;const t={oldValue:this.value,value:i};this.value=i,ae(this,"kuc:base-date-change",t)}_handleCalendarBlurBody(i){i.preventDefault(),this._dateTimeCalendarVisible=!1}_dispathDateChangeCustomEvent(i){const t={value:i,oldValue:this.value};this.value=i===void 0?"":i,ae(this,"kuc:base-date-change",t)}_handleClickButton(){if(!this._dateTimeCalendarVisible){this._valueForReset=this.value,this._calendarValue=this._getNewCalendarValue(this._inputValue||""),this._openCalendar();return}this._closeCalendar()}_handleBlurButton(){this._dateInput.classList.remove("kuc-base-date-1-18-0__input--focus")}_handleFocusButton(){this._dateInput.classList.add("kuc-base-date-1-18-0__input--focus")}}Wi([k({type:String})],Di.prototype,"inputAriaLabel",void 0);Wi([k({type:String})],Di.prototype,"inputId",void 0);Wi([k({type:String,attribute:"lang",reflect:!0})],Di.prototype,"language",void 0);Wi([k({type:String,reflect:!0})],Di.prototype,"value",void 0);Wi([k({type:Boolean})],Di.prototype,"disabled",void 0);Wi([k({type:Boolean})],Di.prototype,"inputAriaInvalid",void 0);Wi([k({type:Boolean})],Di.prototype,"required",void 0);Wi([le(".kuc-base-date-1-18-0__input")],Di.prototype,"_dateInput",void 0);Wi([le(".kuc-base-datetime-calendar-header-1-18-0__group__button--previous-month")],Di.prototype,"_previousMonth",void 0);Wi([le(".kuc-base-datetime-calendar-footer-1-18-0__group__button--none")],Di.prototype,"_footerNoneBtn",void 0);Wi([ge()],Di.prototype,"_dateTimeCalendarVisible",void 0);window.customElements.get("kuc-base-date-1-18-0")||(ye(Y0),window.customElements.define("kuc-base-date-1-18-0",Di));const J0=` +kuc-date-picker-1-18-0, +kuc-date-picker-1-18-0 *, +kuc-date-picker-1-18-0:lang(en), +kuc-date-picker-1-18-0:lang(en) * { + font-family: sans-serif; +} +kuc-date-picker-1-18-0:lang(ja), +kuc-date-picker-1-18-0:lang(ja) * { + font-family: "メイリオ", "Hiragino Kaku Gothic ProN", Meiryo, + sans-serif; +} +kuc-date-picker-1-18-0:lang(zh), +kuc-date-picker-1-18-0:lang(zh) * { + font-family: "微软雅黑", "Microsoft YaHei", "新宋体", NSimSun, STHeiti, + Hei, "Heiti SC", sans-serif; +} +kuc-date-picker-1-18-0:lang(zh-TW), +kuc-date-picker-1-18-0:lang(zh-TW) * { + font-family: "微軟正黑體","Microsoft JhengHei","新宋体",NSimSun,STHeiti, + Hei,"Heiti SC" +} +kuc-date-picker-1-18-0:lang(es), +kuc-date-picker-1-18-0:lang(es) * { + font-family: sans-serif; +} +kuc-date-picker-1-18-0 { + font-size: 14px; + color: #333333; + display: inline-table; + vertical-align: top; + max-width: var(--kuc-date-picker-input-width, 100px); + width: var(--kuc-date-picker-input-width, 100px); + line-height: 1.5; +} +kuc-date-picker-1-18-0[hidden] { + display: none; +} +.kuc-date-picker-1-18-0__group { + display: flex; + flex-direction: column; + border: none; + padding: 0px; + height: auto; + margin: 0px; +} +.kuc-date-picker-1-18-0__group__label { + display: inline-block; + padding: 4px 0px 8px 0px; + white-space: nowrap; +} +.kuc-date-picker-1-18-0__group__label[hidden] { + display: none; +} +.kuc-date-picker-1-18-0__group input[type=text].kuc-base-date-1-18-0__input { + width: var(--kuc-date-picker-input-width, 100px); + height: var(--kuc-date-picker-input-height, 40px); + padding: 0px; + text-align: center; + color: var(--kuc-date-picker-input-color); + border: 1px solid #e3e7e8; + box-sizing: border-box; + font-size: var(--kuc-date-picker-input-font-size, 14px); + box-shadow: 2px 2px 4px #f5f5f5 inset, -2px -2px 4px #f5f5f5 inset; +} + +.kuc-date-picker-1-18-0__group kuc-base-date-1-18-0 { + display: inline-flex; +} + +.kuc-date-picker-1-18-0__group input[type=text].kuc-base-date-1-18-0__input:focus { + outline: none; + border: 1px solid #3498db; +} +.kuc-date-picker-1-18-0__group input[type=text].kuc-base-date-1-18-0__input--focus { + box-shadow: 2px 2px 4px #f5f5f5 inset, -2px -2px 4px #f5f5f5 inset; + border: 1px solid #3498db; + background-color: #ffffff; + color: var(--kuc-date-picker-input-color, #333333); +} +.kuc-date-picker-1-18-0__group input[type=text].kuc-base-date-1-18-0__input:disabled { + color: #888888; + background-color: #d4d7d7; + box-shadow: none; + cursor: not-allowed; +} +`;var Ki=function(e,i,t,n){var r=arguments.length,o=r<3?i:n===null?n=Object.getOwnPropertyDescriptor(i,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,i,t,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(r<3?a(o):r>3?a(i,t,o):a(i,t))||o);return r>3&&o&&Object.defineProperty(i,t,o),o};let tl;(()=>{if(tl=window.customElements.get("kuc-date-picker-1-18-0"),tl)return;class e extends ve{constructor(t){super(),this.className="",this.error="",this.id="",this.label="",this.disabled=!1,this.requiredIcon=!1,this.language="auto",this.value="",this.visible=!0,this._errorFormat="",this._errorText="",this._inputValue="",this._invalidValue="",this._valueConverted="",this._GUID=pt();const n=We(t);Object.assign(this,n)}shouldUpdate(t){return this.value===void 0||this.value===""?!0:typeof this.value!="string"||!F_(this.value)?(this.throwErrorAfterUpdateComplete(Kt.VALUE),!1):(this._valueConverted=ps(this.value),this._valueConverted&&!Lr(this._valueConverted)?(this.throwErrorAfterUpdateComplete(Kt.VALUE),!1):!0)}willUpdate(t){t.has("value")&&(this.value===void 0?this._inputValue=this._invalidValue:(this.value=this.value===""?this.value:this._valueConverted,this._inputValue=this.value,this._errorFormat="")),this._updateErrorText()}render(){return Y` + + ++ `}updated(){this._invalidValue=""}_updateErrorText(){this._errorText=this._errorFormat||this.error}_getLanguage(){const t=["en","ja","zh","zh-TW","es"];return t.indexOf(this.language)!==-1?this.language:t.indexOf(document.documentElement.lang)!==-1?document.documentElement.lang:"en"}_handleClickLabel(t){t.preventDefault()}_handleDateChange(t){t.stopPropagation(),t.preventDefault();const n={oldValue:this.value,value:""};t.detail.error?(this.value=void 0,this._invalidValue=this._dateInput.value,this._errorFormat=t.detail.error,this.error="",n.value=void 0):(this._errorFormat="",this.value=t.detail.value===void 0?"":t.detail.value,n.value=this.value),this._dispatchChangeEvent(n)}_dispatchChangeEvent(t){ae(this,"change",t)}}Ki([k({type:String,reflect:!0,attribute:"class"})],e.prototype,"className",void 0),Ki([k({type:String})],e.prototype,"error",void 0),Ki([k({type:String,reflect:!0,attribute:"id"})],e.prototype,"id",void 0),Ki([k({type:String})],e.prototype,"label",void 0),Ki([k({type:Boolean})],e.prototype,"disabled",void 0),Ki([k({type:Boolean})],e.prototype,"requiredIcon",void 0),Ki([k({type:String,attribute:"lang",reflect:!0,converter:Pr})],e.prototype,"language",void 0),Ki([k({type:String})],e.prototype,"value",void 0),Ki([k({type:Boolean,attribute:"hidden",reflect:!0,converter:nt})],e.prototype,"visible",void 0),Ki([le(".kuc-base-date-1-18-0__input")],e.prototype,"_dateInput",void 0),window.customElements.define("kuc-date-picker-1-18-0",e),ye(J0),tl=e})();const X0=` :lang(ja) .kuc-base-time-1-18-0__group input.kuc-base-time-1-18-0__group__hours, :lang(ja) .kuc-base-time-1-18-0__group input.kuc-base-time-1-18-0__group__minutes { width: 2ch; @@ -1247,7 +1981,7 @@ input.kuc-base-date-1-18-0__input:disabled { color: #888888; -webkit-text-fill-color: #888888; } -`;var Et=function(e,t,n,r){var i=arguments.length,o=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o};class ht extends vt{constructor(){super(...arguments),this.language="en",this.max="",this.min="",this.value="",this.disabled=!1,this.hour12=!1,this.timeStep=30,this._listBoxVisible=!1,this._valueLabel="",this._doFocusListBox=!1,this._hours="",this._minutes="",this._suffix="",this._valueForReset="",this._locale=ln("en")}update(t){(t.has("hour12")||t.has("timeStep")||t.has("max")||t.has("min"))&&(this._listBoxItems=gv(this.hour12,this.timeStep,this.min,this.max),this._updateInputValue()),t.has("value")&&this._updateInputValue(),t.has("language")&&(this._locale=ln(this.language)),super.update(t)}render(){return fe` +`;var Dt=function(e,i,t,n){var r=arguments.length,o=r<3?i:n===null?n=Object.getOwnPropertyDescriptor(i,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,i,t,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(r<3?a(o):r>3?a(i,t,o):a(i,t))||o);return r>3&&o&&Object.defineProperty(i,t,o),o};class St extends ve{constructor(){super(...arguments),this.language="en",this.max="",this.min="",this.value="",this.disabled=!1,this.hour12=!1,this.timeStep=30,this._listBoxVisible=!1,this._valueLabel="",this._doFocusListBox=!1,this._hours="",this._minutes="",this._suffix="",this._valueForReset="",this._locale=Et("en")}update(i){(i.has("hour12")||i.has("timeStep")||i.has("max")||i.has("min"))&&(this._listBoxItems=p0(this.hour12,this.timeStep,this.min,this.max),this._updateInputValue()),i.has("value")&&this._updateInputValue(),i.has("language")&&(this._locale=Et(this.language)),super.update(i)}render(){return Y`+ ++ ${this._getListBoxTemplate()} - `}updated(t){t.has("disabled")&&this._toggleDisabledGroup(),super.update(t)}_handleClickInputGroup(t){if(this.disabled)return;if(this.value===""){this._toggleEl.focus(),this._openListBox();return}const n=t.target;if(this._openListBox(),n.tagName.toUpperCase()==="INPUT"){n.select();return}this._hoursEl.select()}_handleBlurListBox(t){t.preventDefault(),!this._inputFocusEl&&(this._listBoxVisible=!1)}_toggleDisabledGroup(){return this.disabled?this._inputGroupEl.classList.add("kuc-base-time-1-18-0__group--disabled"):this._inputGroupEl.classList.remove("kuc-base-time-1-18-0__group--disabled")}_updateInputValue(){var t;const n=yv(this.value,this.hour12);this._hours=n.hours,this._minutes=n.minutes,this._suffix=n.suffix||"",this._valueLabel=this._getValueLabel(n),this._inputGroupEl&&(this._setValueToInput(n),(t=this._inputFocusEl)===null||t===void 0||t.select())}_getValueLabel(t){if(!t.hours||!t.minutes)return"";const n=`${t.hours}:${t.minutes}`;return t.suffix?n+` ${t.suffix}`:n}_setValueToInput(t){this._hoursEl.value=t.hours,this._minutesEl.value=t.minutes,this._suffixEl&&(this._suffixEl.value=t.suffix||"")}_handleKeyDownButton(t){switch(t.key){case"Tab":case"Escape":if(t.key==="Escape"&&t.preventDefault(),!this._listBoxVisible)return;this._closeListBox();break;case"Enter":case" ":case"ArrowUp":case"ArrowDown":t.preventDefault(),t.stopPropagation(),this._openListBoxByKey();break;default:t.preventDefault(),t.stopPropagation(),this._handleDefaultKeyButton(t.key);break}}_handleBlurButton(){this._inputGroupEl.classList.remove("kuc-base-time-1-18-0__group--focus")}_handleFocusButton(t){t.stopPropagation(),this._inputGroupEl.classList.add("kuc-base-time-1-18-0__group--focus")}_openListBoxByKey(){return this._listBoxVisible?!1:(this._valueForReset=this.value,this._doFocusListBox=!0,this._listBoxVisible=!0,this._inputGroupEl.classList.remove("kuc-base-time-1-18-0__group--focus"),!0)}_handleListBoxEscape(){if(this._closeListBox(),this.value=this._valueForReset,this._actionUpdateInputValue(this.value),this.value===""){this._toggleEl.focus();return}this._hoursEl.select()}_handleDefaultKeyButton(t){if(!/^[0-9]$/i.test(t)||this.value!=="")return;const r=this._computeNumberKeyValueHours(t);this._actionUpdateInputValue(r),this._hoursEl.select()}_handleChangeListBox(t){if(t.preventDefault(),t.stopPropagation(),this._closeListBox(),this._inputFocusEl=this._hoursEl,this._hoursEl.select(),!t.detail.value)return;const n=t.detail.value;this._actionUpdateInputValue(n)}_handleListBoxFocusChange(t){const n=t.detail.value,r=Js(n);this._actionUpdateInputValue(r)}_handleFocusInput(t){this._inputFocusEl=t.target,this._inputFocusEl.select(),this._inputGroupEl.classList.add("kuc-base-time-1-18-0__group--focus")}_handleBlurInput(t){this._inputFocusEl=null;const n=t.relatedTarget;n&&n instanceof HTMLInputElement&&[this._hoursEl,this._minutesEl,this._suffixEl].indexOf(n)>-1||(this._closeListBox(),this._inputGroupEl.classList.remove("kuc-base-time-1-18-0__group--focus"))}_handleTabKey(t){return t.key==="Tab"}_handleKeyDownInput(t){this._closeListBox(),!this._handleTabKey(t)&&this._handleSupportedKey(t)}_handlePasteInput(t){t.preventDefault()}_handleSupportedKey(t){t.preventDefault();const n=t.key;let r;switch(n){case"Enter":case"ArrowRight":this._actionSelectNextRange();break;case"ArrowLeft":this._actionSelectPreviousRange();break;case"ArrowUp":r=this._computeArrowUpDownValue(1),this._actionUpdateInputValue(r);break;case"ArrowDown":r=this._computeArrowUpDownValue(-1),this._actionUpdateInputValue(r);break;case"Backspace":case"Delete":r=this._computeDeleteValue(),this._actionUpdateInputValue(r);break;default:r=this._computeDefaultKeyValue(n),this._actionUpdateInputValue(r);break}}_actionUpdateInputValue(t){const n=this.value===""?this.value:this._formatKeyDownValue(),r=Js(n),i=Js(t);r!==i&&(this.value=i,this._dispatchEventTimeChange(i,r))}_computeDeleteValue(){return this._inputFocusEl===this._minutesEl?this._formatKeyDownValue({minutes:"00"}):this._inputFocusEl===this._hoursEl?this._formatKeyDownValue({hours:"00"}):this._formatKeyDownValue()}_computeArrowUpDownValue(t){return this._inputFocusEl===this._hoursEl?this._computeArrowUpDownHourValue(t):this._inputFocusEl===this._minutesEl?this._computeArrowUpDownMinuteValue(t):this._computeKeyDownSuffixValue()}_computeKeyDownSuffixValue(t){if(!t){const i=this._suffix===On.AM?On.PM:On.AM;return this._formatKeyDownValue({suffix:i})}if(["a","A","p","P"].indexOf(t)===-1)return this._formatKeyDownValue();const r=t==="a"||t==="A"?On.AM:On.PM;return this.value===""&&this._hoursEl.select(),this._formatKeyDownValue({suffix:r})}_computeArrowUpDownHourValue(t){let r=parseInt(this._hours,10)+t;return this.hour12?(r%=vn,r=r<=0?vn:r):(r%=cr,r=r<0?cr-1:r),this._formatKeyDownValue({hours:r.toString()})}_computeArrowUpDownMinuteValue(t){let r=parseInt(this._minutes,10)+t;return r%=zr,r=r<0?zr-1:r,this._formatKeyDownValue({minutes:r.toString()})}_computeDefaultKeyValue(t){return/^[0-9]$/i.test(t)?this._computeNumberKeyValue(t):this._inputFocusEl===this._suffixEl?this._computeKeyDownSuffixValue(t):this._formatKeyDownValue()}_computeNumberKeyValue(t){return this._inputFocusEl===this._minutesEl?this._computeNumberKeyValueMinutes(t):this._inputFocusEl===this._hoursEl?this._computeNumberKeyValueHours(t):this._formatKeyDownValue()}_computeNumberKeyValueMinutes(t){const n=this._getPreviousMinutes(this._minutes),r=tt(n+t);return this.value===""?(this._hoursEl.select(),this._computeNumberKeyValueHours(t)):this._formatKeyDownValue({minutes:r})}_computeNumberKeyValueHours(t){const n=this._getPreviousHours(this._hours,t),r=tt(n+t);return this.value===""?this._formatKeyDownValue({hours:r,minutes:"00"}):this._formatKeyDownValue({hours:r})}_getPreviousMinutes(t){let n;return n=parseInt(t,10)>10?(""+t)[1]:""+t,n=parseInt(n,10)>5?"0":n,n}_getPreviousHours(t,n){let r;r=parseInt(t,10)>10?(""+t)[1]:""+t;const i=parseInt(r+n,10);return r=this.hour12&&i>vn||!this.hour12&&i>=cr?"0":r,r}_actionSelectNextRange(){if(this._inputFocusEl===this._hoursEl){this._minutesEl.select();return}this.hour12&&this._inputFocusEl===this._minutesEl&&this._suffixEl.select()}_actionSelectPreviousRange(){if(this._inputFocusEl===this._suffixEl){this._minutesEl.select();return}this._inputFocusEl===this._minutesEl&&this._hoursEl.select()}_dispatchEventTimeChange(t,n){const r={value:t,oldValue:n};(dr(t,this.min)<0||dr(this.max,t)<0)&&(r.error=this._locale.TIME_IS_OUT_OF_VALID_RANGE),Ie(this,"kuc:base-time-change",r)}_formatKeyDownValue(t={hours:this._hours,minutes:this._minutes,suffix:this._suffix}){const n=t.hours||this._hours,r=t.minutes||this._minutes,i=t.suffix||this._suffix,o=`${tt(n)}:${tt(r)}`;return i?`${o} ${i}`:o}_openListBox(){this._listBoxVisible||(this._doFocusListBox=!1,this._listBoxVisible=!0)}_closeListBox(){this._doFocusListBox=!1,this._listBoxVisible=!1}_getColonTemplate(){return this._hours?fe` : `:""}_getSuffixTemplate(){return this.hour12?fe` + `}updated(i){i.has("disabled")&&this._toggleDisabledGroup(),super.update(i)}_handleClickInputGroup(i){if(this.disabled)return;if(this.value===""){this._toggleEl.focus(),this._openListBox();return}const t=i.target;if(this._openListBox(),t.tagName.toUpperCase()==="INPUT"){t.select();return}this._hoursEl.select()}_handleBlurListBox(i){i.preventDefault(),!this._inputFocusEl&&(this._listBoxVisible=!1)}_toggleDisabledGroup(){return this.disabled?this._inputGroupEl.classList.add("kuc-base-time-1-18-0__group--disabled"):this._inputGroupEl.classList.remove("kuc-base-time-1-18-0__group--disabled")}_updateInputValue(){var i;const t=f0(this.value,this.hour12);this._hours=t.hours,this._minutes=t.minutes,this._suffix=t.suffix||"",this._valueLabel=this._getValueLabel(t),this._inputGroupEl&&(this._setValueToInput(t),(i=this._inputFocusEl)===null||i===void 0||i.select())}_getValueLabel(i){if(!i.hours||!i.minutes)return"";const t=`${i.hours}:${i.minutes}`;return i.suffix?t+` ${i.suffix}`:t}_setValueToInput(i){this._hoursEl.value=i.hours,this._minutesEl.value=i.minutes,this._suffixEl&&(this._suffixEl.value=i.suffix||"")}_handleKeyDownButton(i){switch(i.key){case"Tab":case"Escape":if(i.key==="Escape"&&i.preventDefault(),!this._listBoxVisible)return;this._closeListBox();break;case"Enter":case" ":case"ArrowUp":case"ArrowDown":i.preventDefault(),i.stopPropagation(),this._openListBoxByKey();break;default:i.preventDefault(),i.stopPropagation(),this._handleDefaultKeyButton(i.key);break}}_handleBlurButton(){this._inputGroupEl.classList.remove("kuc-base-time-1-18-0__group--focus")}_handleFocusButton(i){i.stopPropagation(),this._inputGroupEl.classList.add("kuc-base-time-1-18-0__group--focus")}_openListBoxByKey(){return this._listBoxVisible?!1:(this._valueForReset=this.value,this._doFocusListBox=!0,this._listBoxVisible=!0,this._inputGroupEl.classList.remove("kuc-base-time-1-18-0__group--focus"),!0)}_handleListBoxEscape(){if(this._closeListBox(),this.value=this._valueForReset,this._actionUpdateInputValue(this.value),this.value===""){this._toggleEl.focus();return}this._hoursEl.select()}_handleDefaultKeyButton(i){if(!/^[0-9]$/i.test(i)||this.value!=="")return;const n=this._computeNumberKeyValueHours(i);this._actionUpdateInputValue(n),this._hoursEl.select()}_handleChangeListBox(i){if(i.preventDefault(),i.stopPropagation(),this._closeListBox(),this._inputFocusEl=this._hoursEl,this._hoursEl.select(),!i.detail.value)return;const t=i.detail.value;this._actionUpdateInputValue(t)}_handleListBoxFocusChange(i){const t=i.detail.value,n=Fo(t);this._actionUpdateInputValue(n)}_handleFocusInput(i){this._inputFocusEl=i.target,this._inputFocusEl.select(),this._inputGroupEl.classList.add("kuc-base-time-1-18-0__group--focus")}_handleBlurInput(i){this._inputFocusEl=null;const t=i.relatedTarget;t&&t instanceof HTMLInputElement&&[this._hoursEl,this._minutesEl,this._suffixEl].indexOf(t)>-1||(this._closeListBox(),this._inputGroupEl.classList.remove("kuc-base-time-1-18-0__group--focus"))}_handleTabKey(i){return i.key==="Tab"}_handleKeyDownInput(i){this._closeListBox(),!this._handleTabKey(i)&&this._handleSupportedKey(i)}_handlePasteInput(i){i.preventDefault()}_handleSupportedKey(i){i.preventDefault();const t=i.key;let n;switch(t){case"Enter":case"ArrowRight":this._actionSelectNextRange();break;case"ArrowLeft":this._actionSelectPreviousRange();break;case"ArrowUp":n=this._computeArrowUpDownValue(1),this._actionUpdateInputValue(n);break;case"ArrowDown":n=this._computeArrowUpDownValue(-1),this._actionUpdateInputValue(n);break;case"Backspace":case"Delete":n=this._computeDeleteValue(),this._actionUpdateInputValue(n);break;default:n=this._computeDefaultKeyValue(t),this._actionUpdateInputValue(n);break}}_actionUpdateInputValue(i){const t=this.value===""?this.value:this._formatKeyDownValue(),n=Fo(t),r=Fo(i);n!==r&&(this.value=r,this._dispatchEventTimeChange(r,n))}_computeDeleteValue(){return this._inputFocusEl===this._minutesEl?this._formatKeyDownValue({minutes:"00"}):this._inputFocusEl===this._hoursEl?this._formatKeyDownValue({hours:"00"}):this._formatKeyDownValue()}_computeArrowUpDownValue(i){return this._inputFocusEl===this._hoursEl?this._computeArrowUpDownHourValue(i):this._inputFocusEl===this._minutesEl?this._computeArrowUpDownMinuteValue(i):this._computeKeyDownSuffixValue()}_computeKeyDownSuffixValue(i){if(!i){const r=this._suffix===on.AM?on.PM:on.AM;return this._formatKeyDownValue({suffix:r})}if(["a","A","p","P"].indexOf(i)===-1)return this._formatKeyDownValue();const n=i==="a"||i==="A"?on.AM:on.PM;return this.value===""&&this._hoursEl.select(),this._formatKeyDownValue({suffix:n})}_computeArrowUpDownHourValue(i){let n=parseInt(this._hours,10)+i;return this.hour12?(n%=ji,n=n<=0?ji:n):(n%=In,n=n<0?In-1:n),this._formatKeyDownValue({hours:n.toString()})}_computeArrowUpDownMinuteValue(i){let n=parseInt(this._minutes,10)+i;return n%=Ar,n=n<0?Ar-1:n,this._formatKeyDownValue({minutes:n.toString()})}_computeDefaultKeyValue(i){return/^[0-9]$/i.test(i)?this._computeNumberKeyValue(i):this._inputFocusEl===this._suffixEl?this._computeKeyDownSuffixValue(i):this._formatKeyDownValue()}_computeNumberKeyValue(i){return this._inputFocusEl===this._minutesEl?this._computeNumberKeyValueMinutes(i):this._inputFocusEl===this._hoursEl?this._computeNumberKeyValueHours(i):this._formatKeyDownValue()}_computeNumberKeyValueMinutes(i){const t=this._getPreviousMinutes(this._minutes),n=je(t+i);return this.value===""?(this._hoursEl.select(),this._computeNumberKeyValueHours(i)):this._formatKeyDownValue({minutes:n})}_computeNumberKeyValueHours(i){const t=this._getPreviousHours(this._hours,i),n=je(t+i);return this.value===""?this._formatKeyDownValue({hours:n,minutes:"00"}):this._formatKeyDownValue({hours:n})}_getPreviousMinutes(i){let t;return t=parseInt(i,10)>10?(""+i)[1]:""+i,t=parseInt(t,10)>5?"0":t,t}_getPreviousHours(i,t){let n;n=parseInt(i,10)>10?(""+i)[1]:""+i;const r=parseInt(n+t,10);return n=this.hour12&&r>ji||!this.hour12&&r>=In?"0":n,n}_actionSelectNextRange(){if(this._inputFocusEl===this._hoursEl){this._minutesEl.select();return}this.hour12&&this._inputFocusEl===this._minutesEl&&this._suffixEl.select()}_actionSelectPreviousRange(){if(this._inputFocusEl===this._suffixEl){this._minutesEl.select();return}this._inputFocusEl===this._minutesEl&&this._hoursEl.select()}_dispatchEventTimeChange(i,t){const n={value:i,oldValue:t};(zn(i,this.min)<0||zn(this.max,i)<0)&&(n.error=this._locale.TIME_IS_OUT_OF_VALID_RANGE),ae(this,"kuc:base-time-change",n)}_formatKeyDownValue(i={hours:this._hours,minutes:this._minutes,suffix:this._suffix}){const t=i.hours||this._hours,n=i.minutes||this._minutes,r=i.suffix||this._suffix,o=`${je(t)}:${je(n)}`;return r?`${o} ${r}`:o}_openListBox(){this._listBoxVisible||(this._doFocusListBox=!1,this._listBoxVisible=!0)}_closeListBox(){this._doFocusListBox=!1,this._listBoxVisible=!1}_getColonTemplate(){return this._hours?Y` : `:""}_getSuffixTemplate(){return this.hour12?Y` - `:""}_getListBoxTemplate(){return this._listBoxVisible?fe` + `:""}_getListBoxTemplate(){return this._listBoxVisible?Y`- `:""}}Et([z({type:String,attribute:"lang",reflect:!0})],ht.prototype,"language",void 0);Et([z({type:String})],ht.prototype,"max",void 0);Et([z({type:String})],ht.prototype,"min",void 0);Et([z({type:String})],ht.prototype,"value",void 0);Et([z({type:Boolean})],ht.prototype,"disabled",void 0);Et([z({type:Boolean})],ht.prototype,"hour12",void 0);Et([z({type:Number})],ht.prototype,"timeStep",void 0);Et([yt()],ht.prototype,"_listBoxVisible",void 0);Et([yt()],ht.prototype,"_valueLabel",void 0);Et([yt()],ht.prototype,"_doFocusListBox",void 0);Et([yt()],ht.prototype,"_hours",void 0);Et([yt()],ht.prototype,"_minutes",void 0);Et([yt()],ht.prototype,"_suffix",void 0);Et([yt()],ht.prototype,"_inputFocusEl",void 0);Et([we(".kuc-base-time-1-18-0__group__hours")],ht.prototype,"_hoursEl",void 0);Et([we(".kuc-base-time-1-18-0__group__minutes")],ht.prototype,"_minutesEl",void 0);Et([we(".kuc-base-time-1-18-0__group__suffix")],ht.prototype,"_suffixEl",void 0);Et([we(".kuc-base-time-1-18-0__assistive-text")],ht.prototype,"_toggleEl",void 0);Et([we(".kuc-base-time-1-18-0__group")],ht.prototype,"_inputGroupEl",void 0);window.customElements.get("kuc-base-time-1-18-0")||(xt(u1),window.customElements.define("kuc-base-time-1-18-0",ht));const c1=` + `:""}}Dt([k({type:String,attribute:"lang",reflect:!0})],St.prototype,"language",void 0);Dt([k({type:String})],St.prototype,"max",void 0);Dt([k({type:String})],St.prototype,"min",void 0);Dt([k({type:String})],St.prototype,"value",void 0);Dt([k({type:Boolean})],St.prototype,"disabled",void 0);Dt([k({type:Boolean})],St.prototype,"hour12",void 0);Dt([k({type:Number})],St.prototype,"timeStep",void 0);Dt([ge()],St.prototype,"_listBoxVisible",void 0);Dt([ge()],St.prototype,"_valueLabel",void 0);Dt([ge()],St.prototype,"_doFocusListBox",void 0);Dt([ge()],St.prototype,"_hours",void 0);Dt([ge()],St.prototype,"_minutes",void 0);Dt([ge()],St.prototype,"_suffix",void 0);Dt([ge()],St.prototype,"_inputFocusEl",void 0);Dt([le(".kuc-base-time-1-18-0__group__hours")],St.prototype,"_hoursEl",void 0);Dt([le(".kuc-base-time-1-18-0__group__minutes")],St.prototype,"_minutesEl",void 0);Dt([le(".kuc-base-time-1-18-0__group__suffix")],St.prototype,"_suffixEl",void 0);Dt([le(".kuc-base-time-1-18-0__assistive-text")],St.prototype,"_toggleEl",void 0);Dt([le(".kuc-base-time-1-18-0__group")],St.prototype,"_inputGroupEl",void 0);window.customElements.get("kuc-base-time-1-18-0")||(ye(X0),window.customElements.define("kuc-base-time-1-18-0",St));const Z0=` kuc-datetime-picker-1-18-0, kuc-datetime-picker-1-18-0 *, kuc-datetime-picker-1-18-0:lang(en), @@ -1392,7 +2126,7 @@ kuc-datetime-picker-1-18-0[hidden] { .kuc-datetime-picker-1-18-0__group .kuc-base-time-1-18-0__group--focus { color: var(--kuc-date-time-picker-input-color, #333333); } -`;var Vt=function(e,t,n,r){var i=arguments.length,o=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o};let tl;(()=>{if(tl=window.customElements.get("kuc-datetime-picker-1-18-0"),tl)return;class e extends vt{constructor(n){super(),this.className="",this.error="",this.id="",this.label="",this.language="auto",this.max="",this.min="",this.value="",this.disabled=!1,this.hour12=!1,this.requiredIcon=!1,this.visible=!0,this.timeStep=30,this._dateValue="",this._timeValue="",this._previousTimeValue="",this._previousDateValue="",this._errorFormat="",this._errorText="",this._dateConverted="",this._changeDateByUI=!1,this._changeTimeByUI=!1,this._inputMax="",this._inputMin="",this._timeConverted="",this._errorInvalidTime="",this._inputTimeStep=30,this._GUID=vo();const r=br(n);Object.assign(this,r)}shouldUpdate(n){return(n.has("max")||n.has("min"))&&!this._checkAndUpdateMaxMinProperty()||n.has("timeStep")&&!this._checkAndUpdateTimeStepProperty()?!1:this.value===void 0||this.value===""?!0:typeof this.value!="string"?(this.throwErrorAfterUpdateComplete(gn.VALUE),!1):(this._dateAndTime=this._getDateTimeValue(this.value),this._dateConverted=Rh(this._dateAndTime.date),Mv(this._dateAndTime.date,this._dateAndTime.time)&&oa(this._dateConverted)?(this._timeConverted=qr(this._dateAndTime.time.slice(0,5)),n.has("value")&&(dr(this._timeConverted,this._inputMin)<0||dr(this._inputMax,this._timeConverted)<0)?(this.throwErrorAfterUpdateComplete(Th),!1):!0):(this.throwErrorAfterUpdateComplete(gn.VALUE),!1))}willUpdate(n){if(this._changeDateByUI||this._changeTimeByUI){this._updateValueChangeByUI();return}this._updateValueWhenSetter()}_checkAndUpdateMaxMinProperty(){let n=this._inputMin,r=this._inputMax;if(this.max===void 0||this.max==="")r=Ch;else{if(!Qi(this.max))return this.throwErrorAfterUpdateComplete(gn.MAX),!1;r=this.max=qr(this.max)}if(this.min===void 0||this.min==="")n=Il;else{if(!Qi(this.min))return this.throwErrorAfterUpdateComplete(gn.MIN),!1;n=this.min=qr(this.min)}return dr(r,n)<0?(this.throwErrorAfterUpdateComplete(Sh),!1):(this._inputMin=n,this._inputMax=r,!0)}_checkAndUpdateTimeStepProperty(){return Ph(this.timeStep)?Dh(this.timeStep,this._inputMax,this._inputMin)?(this._inputTimeStep=this.timeStep,!0):(this.throwErrorAfterUpdateComplete(gn.TIME_STEP),!1):(this.throwErrorAfterUpdateComplete(Ah),!1)}_updateValueChangeByUI(){const n=this._validateDateTimeFormat();this.value=n?this.value:void 0,n&&!this._dateValue&&!this._timeValue&&(this.value="");const r=!this._dateValue&&this._timeValue,i=this._dateValue&&!this._timeValue;if(r||i){this._errorText=this.error||this._errorFormat||this._errorInvalidTime;return}this._errorText=n?this.error:this._errorFormat||this._errorInvalidTime}_validateDateTimeFormat(){const n=!!this._timeValue&&!this._dateValue,r=!!this._dateValue&&!this._timeValue;return!this._errorFormat&&!this._errorInvalidTime&&!n&&!r}_updateValueWhenSetter(){if(this._errorText=this.error,this.value===""||this.value===void 0){this._previousTimeValue="",this._errorFormat="",this._errorInvalidTime="";return}this._setDateTimeValueSeparate(this._dateAndTime,this._dateConverted),this.value=this._getDateTimeString()}_setDateTimeValueSeparate(n,r){this._dateValue=r||this._dateInput.value,this._timeValue=this._dateValue&&oa(r)?qr(n.time.slice(0,5)):this._previousTimeValue}update(n){n.has("value")&&(this.value===void 0&&this._setUndefinedValue(),this.value===""&&this._setEmptyValue()),(n.has("max")||n.has("min")||n.has("value"))&&this.value!==void 0&&(this._errorInvalidTime=""),super.update(n)}_setUndefinedValue(){if(!this._changeTimeByUI){if(this._errorFormat){if(this._changeDateByUI){this._dateValue=this._dateInput.value;return}this._dateValue="",this._timeValue="";return}this._dateValue=this._previousDateValue,this._timeValue=this._previousTimeValue}}_setEmptyValue(){this._dateValue="",this._timeValue="",this._previousTimeValue="",this._previousDateValue="",this._errorFormat="",this._errorInvalidTime=""}render(){return fe` +`;var oi=function(e,i,t,n){var r=arguments.length,o=r<3?i:n===null?n=Object.getOwnPropertyDescriptor(i,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,i,t,n);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(r<3?a(o):r>3?a(i,t,o):a(i,t))||o);return r>3&&o&&Object.defineProperty(i,t,o),o};let il;(()=>{if(il=window.customElements.get("kuc-datetime-picker-1-18-0"),il)return;class e extends ve{constructor(t){super(),this.className="",this.error="",this.id="",this.label="",this.language="auto",this.max="",this.min="",this.value="",this.disabled=!1,this.hour12=!1,this.requiredIcon=!1,this.visible=!0,this.timeStep=30,this._dateValue="",this._timeValue="",this._previousTimeValue="",this._previousDateValue="",this._errorFormat="",this._errorText="",this._dateConverted="",this._changeDateByUI=!1,this._changeTimeByUI=!1,this._inputMax="",this._inputMin="",this._timeConverted="",this._errorInvalidTime="",this._inputTimeStep=30,this._GUID=pt();const n=We(t);Object.assign(this,n)}shouldUpdate(t){return(t.has("max")||t.has("min"))&&!this._checkAndUpdateMaxMinProperty()||t.has("timeStep")&&!this._checkAndUpdateTimeStepProperty()?!1:this.value===void 0||this.value===""?!0:typeof this.value!="string"?(this.throwErrorAfterUpdateComplete(Kt.VALUE),!1):(this._dateAndTime=this._getDateTimeValue(this.value),this._dateConverted=ps(this._dateAndTime.date),W_(this._dateAndTime.date,this._dateAndTime.time)&&Lr(this._dateConverted)?(this._timeConverted=wn(this._dateAndTime.time.slice(0,5)),t.has("value")&&(zn(this._timeConverted,this._inputMin)<0||zn(this._inputMax,this._timeConverted)<0)?(this.throwErrorAfterUpdateComplete($_),!1):!0):(this.throwErrorAfterUpdateComplete(Kt.VALUE),!1))}willUpdate(t){if(this._changeDateByUI||this._changeTimeByUI){this._updateValueChangeByUI();return}this._updateValueWhenSetter()}_checkAndUpdateMaxMinProperty(){let t=this._inputMin,n=this._inputMax;if(this.max===void 0||this.max==="")n=N_;else{if(!Or(this.max))return this.throwErrorAfterUpdateComplete(Kt.MAX),!1;n=this.max=wn(this.max)}if(this.min===void 0||this.min==="")t=ju;else{if(!Or(this.min))return this.throwErrorAfterUpdateComplete(Kt.MIN),!1;t=this.min=wn(this.min)}return zn(n,t)<0?(this.throwErrorAfterUpdateComplete(R_),!1):(this._inputMin=t,this._inputMax=n,!0)}_checkAndUpdateTimeStepProperty(){return Br(this.timeStep)?j_(this.timeStep,this._inputMax,this._inputMin)?(this._inputTimeStep=this.timeStep,!0):(this.throwErrorAfterUpdateComplete(Kt.TIME_STEP),!1):(this.throwErrorAfterUpdateComplete(L_),!1)}_updateValueChangeByUI(){const t=this._validateDateTimeFormat();this.value=t?this.value:void 0,t&&!this._dateValue&&!this._timeValue&&(this.value="");const n=!this._dateValue&&this._timeValue,r=this._dateValue&&!this._timeValue;if(n||r){this._errorText=this.error||this._errorFormat||this._errorInvalidTime;return}this._errorText=t?this.error:this._errorFormat||this._errorInvalidTime}_validateDateTimeFormat(){const t=!!this._timeValue&&!this._dateValue,n=!!this._dateValue&&!this._timeValue;return!this._errorFormat&&!this._errorInvalidTime&&!t&&!n}_updateValueWhenSetter(){if(this._errorText=this.error,this.value===""||this.value===void 0){this._previousTimeValue="",this._errorFormat="",this._errorInvalidTime="";return}this._setDateTimeValueSeparate(this._dateAndTime,this._dateConverted),this.value=this._getDateTimeString()}_setDateTimeValueSeparate(t,n){this._dateValue=n||this._dateInput.value,this._timeValue=this._dateValue&&Lr(n)?wn(t.time.slice(0,5)):this._previousTimeValue}update(t){t.has("value")&&(this.value===void 0&&this._setUndefinedValue(),this.value===""&&this._setEmptyValue()),(t.has("max")||t.has("min")||t.has("value"))&&this.value!==void 0&&(this._errorInvalidTime=""),super.update(t)}_setUndefinedValue(){if(!this._changeTimeByUI){if(this._errorFormat){if(this._changeDateByUI){this._dateValue=this._dateInput.value;return}this._dateValue="",this._timeValue="";return}this._dateValue=this._previousDateValue,this._timeValue=this._previousTimeValue}}_setEmptyValue(){this._dateValue="",this._timeValue="",this._previousTimeValue="",this._previousDateValue="",this._errorFormat="",this._errorInvalidTime=""}render(){return Y` - `}updated(){this._resetState()}_resetState(){this._previousTimeValue="",this._previousDateValue="",this._changeDateByUI=!1,this._changeTimeByUI=!1}_handleDateChange(n){n.stopPropagation(),n.preventDefault(),this._changeDateByUI=!0;let r=this._dateValue;n.detail.error?(this._errorFormat=n.detail.error,this.error=""):(r=n.detail.value,this._errorFormat=""),this._updateDateTimeValue(r,"date")}_handleTimeChange(n){n.preventDefault(),n.stopPropagation(),this._changeTimeByUI=!0;const r=n.detail.value;n.detail.error?(this._errorInvalidTime=n.detail.error,this.error=""):this._errorInvalidTime="",this._updateDateTimeValue(r,"time")}_updateDateTimeValue(n,r){const i=this.value;r==="date"?this._dateValue=n||"":this._timeValue=n,this._previousTimeValue=this._timeValue,this._previousDateValue=this._dateValue;const o=this._errorFormat||this._errorInvalidTime?void 0:this._getDateTimeString(),a=this._errorFormat||this._errorInvalidTime?void 0:o;this.value=a,this._validateDateTimeFormat()&&!this._dateValue&&!this._timeValue&&(this.value="");const l={value:this.value,oldValue:i,changedPart:r};Ie(this,"change",l)}_getDateTimeString(){if(!this._dateValue||!this._timeValue)return;if(!this.value)return`${this._dateValue}T${this._timeValue}:00`;const n=this.value.split(":");return n.length===3?`${this._dateValue}T${this._timeValue}:${n[2]}`:`${this._dateValue}T${this._timeValue}:00`}_getDateTimeValue(n){if(n===""||n===void 0)return{date:"",time:""};const r=n.split("T"),i=r[0],o=r[1];if(n.indexOf("T")===n.length-1||r.length>2)return{date:i,time:""};if(!o)return{date:i,time:Il};const[a,s,l]=o.split(":");if(a===""||s===""||l==="")return{date:i,time:o};const u=`${a}:${s||"00"}`;return l?{date:i,time:`${u}:${l}`}:{date:i,time:u}}_getLanguage(){const n=["en","ja","zh","zh-TW","es"];return n.indexOf(this.language)!==-1?this.language:n.indexOf(document.documentElement.lang)!==-1?document.documentElement.lang:"en"}}Vt([z({type:String,reflect:!0,attribute:"class"})],e.prototype,"className",void 0),Vt([z({type:String})],e.prototype,"error",void 0),Vt([z({type:String,reflect:!0,attribute:"id"})],e.prototype,"id",void 0),Vt([z({type:String})],e.prototype,"label",void 0),Vt([z({type:String,attribute:"lang",reflect:!0,converter:xu})],e.prototype,"language",void 0),Vt([z({type:String})],e.prototype,"max",void 0),Vt([z({type:String})],e.prototype,"min",void 0),Vt([z({type:String,hasChanged(t,n){return(t===""||t===void 0)&&t===n?!0:t!==n}})],e.prototype,"value",void 0),Vt([z({type:Boolean})],e.prototype,"disabled",void 0),Vt([z({type:Boolean})],e.prototype,"hour12",void 0),Vt([z({type:Boolean})],e.prototype,"requiredIcon",void 0),Vt([z({type:Boolean,attribute:"hidden",reflect:!0,converter:ei})],e.prototype,"visible",void 0),Vt([z({type:Number})],e.prototype,"timeStep",void 0),Vt([we(".kuc-base-date-1-18-0__input")],e.prototype,"_dateInput",void 0),window.customElements.define("kuc-datetime-picker-1-18-0",e),xt(c1),tl=e})();const d1=` -kuc-date-picker-1-18-0, -kuc-date-picker-1-18-0 *, -kuc-date-picker-1-18-0:lang(en), -kuc-date-picker-1-18-0:lang(en) * { - font-family: sans-serif; -} -kuc-date-picker-1-18-0:lang(ja), -kuc-date-picker-1-18-0:lang(ja) * { - font-family: "メイリオ", "Hiragino Kaku Gothic ProN", Meiryo, - sans-serif; -} -kuc-date-picker-1-18-0:lang(zh), -kuc-date-picker-1-18-0:lang(zh) * { - font-family: "微软雅黑", "Microsoft YaHei", "新宋体", NSimSun, STHeiti, - Hei, "Heiti SC", sans-serif; -} -kuc-date-picker-1-18-0:lang(zh-TW), -kuc-date-picker-1-18-0:lang(zh-TW) * { - font-family: "微軟正黑體","Microsoft JhengHei","新宋体",NSimSun,STHeiti, - Hei,"Heiti SC" -} -kuc-date-picker-1-18-0:lang(es), -kuc-date-picker-1-18-0:lang(es) * { - font-family: sans-serif; -} -kuc-date-picker-1-18-0 { - font-size: 14px; - color: #333333; - display: inline-table; - vertical-align: top; - max-width: var(--kuc-date-picker-input-width, 100px); - width: var(--kuc-date-picker-input-width, 100px); - line-height: 1.5; -} -kuc-date-picker-1-18-0[hidden] { - display: none; -} -.kuc-date-picker-1-18-0__group { - display: flex; - flex-direction: column; - border: none; - padding: 0px; - height: auto; - margin: 0px; -} -.kuc-date-picker-1-18-0__group__label { - display: inline-block; - padding: 4px 0px 8px 0px; - white-space: nowrap; -} -.kuc-date-picker-1-18-0__group__label[hidden] { - display: none; -} -.kuc-date-picker-1-18-0__group input[type=text].kuc-base-date-1-18-0__input { - width: var(--kuc-date-picker-input-width, 100px); - height: var(--kuc-date-picker-input-height, 40px); - padding: 0px; - text-align: center; - color: var(--kuc-date-picker-input-color); - border: 1px solid #e3e7e8; - box-sizing: border-box; - font-size: var(--kuc-date-picker-input-font-size, 14px); - box-shadow: 2px 2px 4px #f5f5f5 inset, -2px -2px 4px #f5f5f5 inset; -} + `}updated(){this._resetState()}_resetState(){this._previousTimeValue="",this._previousDateValue="",this._changeDateByUI=!1,this._changeTimeByUI=!1}_handleDateChange(t){t.stopPropagation(),t.preventDefault(),this._changeDateByUI=!0;let n=this._dateValue;t.detail.error?(this._errorFormat=t.detail.error,this.error=""):(n=t.detail.value,this._errorFormat=""),this._updateDateTimeValue(n,"date")}_handleTimeChange(t){t.preventDefault(),t.stopPropagation(),this._changeTimeByUI=!0;const n=t.detail.value;t.detail.error?(this._errorInvalidTime=t.detail.error,this.error=""):this._errorInvalidTime="",this._updateDateTimeValue(n,"time")}_updateDateTimeValue(t,n){const r=this.value;n==="date"?this._dateValue=t||"":this._timeValue=t,this._previousTimeValue=this._timeValue,this._previousDateValue=this._dateValue;const o=this._errorFormat||this._errorInvalidTime?void 0:this._getDateTimeString(),a=this._errorFormat||this._errorInvalidTime?void 0:o;this.value=a,this._validateDateTimeFormat()&&!this._dateValue&&!this._timeValue&&(this.value="");const l={value:this.value,oldValue:r,changedPart:n};ae(this,"change",l)}_getDateTimeString(){if(!this._dateValue||!this._timeValue)return;if(!this.value)return`${this._dateValue}T${this._timeValue}:00`;const t=this.value.split(":");return t.length===3?`${this._dateValue}T${this._timeValue}:${t[2]}`:`${this._dateValue}T${this._timeValue}:00`}_getDateTimeValue(t){if(t===""||t===void 0)return{date:"",time:""};const n=t.split("T"),r=n[0],o=n[1];if(t.indexOf("T")===t.length-1||n.length>2)return{date:r,time:""};if(!o)return{date:r,time:ju};const[a,s,l]=o.split(":");if(a===""||s===""||l==="")return{date:r,time:o};const u=`${a}:${s||"00"}`;return l?{date:r,time:`${u}:${l}`}:{date:r,time:u}}_getLanguage(){const t=["en","ja","zh","zh-TW","es"];return t.indexOf(this.language)!==-1?this.language:t.indexOf(document.documentElement.lang)!==-1?document.documentElement.lang:"en"}}oi([k({type:String,reflect:!0,attribute:"class"})],e.prototype,"className",void 0),oi([k({type:String})],e.prototype,"error",void 0),oi([k({type:String,reflect:!0,attribute:"id"})],e.prototype,"id",void 0),oi([k({type:String})],e.prototype,"label",void 0),oi([k({type:String,attribute:"lang",reflect:!0,converter:Pr})],e.prototype,"language",void 0),oi([k({type:String})],e.prototype,"max",void 0),oi([k({type:String})],e.prototype,"min",void 0),oi([k({type:String,hasChanged(i,t){return(i===""||i===void 0)&&i===t?!0:i!==t}})],e.prototype,"value",void 0),oi([k({type:Boolean})],e.prototype,"disabled",void 0),oi([k({type:Boolean})],e.prototype,"hour12",void 0),oi([k({type:Boolean})],e.prototype,"requiredIcon",void 0),oi([k({type:Boolean,attribute:"hidden",reflect:!0,converter:nt})],e.prototype,"visible",void 0),oi([k({type:Number})],e.prototype,"timeStep",void 0),oi([le(".kuc-base-date-1-18-0__input")],e.prototype,"_dateInput",void 0),window.customElements.define("kuc-datetime-picker-1-18-0",e),ye(Z0),il=e})();const Q0=` + kuc-dialog-1-18-0, + kuc-dialog-1-18-0 *, + kuc-dialog-1-18-0:lang(en), + kuc-dialog-1-18-0:lang(en) * { + font-family: sans-serif; + } + kuc-dialog-1-18-0:lang(es), + kuc-dialog-1-18-0:lang(es) * { + font-family: sans-serif; + } + kuc-dialog-1-18-0:lang(ja), + kuc-dialog-1-18-0:lang(ja) * { + font-family: "メイリオ", "Hiragino Kaku Gothic ProN", Meiryo, + sans-serif; + } + kuc-dialog-1-18-0:lang(zh), + kuc-dialog-1-18-0:lang(zh) * { + font-family: "微软雅黑", "Microsoft YaHei", "新宋体", NSimSun, STHeiti, + Hei, "Heiti SC", sans-serif; + } + kuc-dialog-1-18-0:lang(zh-TW), + kuc-dialog-1-18-0:lang(zh-TW) * { + font-family: "微軟正黑體","Microsoft JhengHei","新宋体",NSimSun,STHeiti, + Hei,"Heiti SC",sans-serif; + } -.kuc-date-picker-1-18-0__group kuc-base-date-1-18-0 { - display: inline-flex; -} + kuc-dialog-1-18-0 { + display: none; + } -.kuc-date-picker-1-18-0__group input[type=text].kuc-base-date-1-18-0__input:focus { - outline: none; - border: 1px solid #3498db; -} -.kuc-date-picker-1-18-0__group input[type=text].kuc-base-date-1-18-0__input--focus { - box-shadow: 2px 2px 4px #f5f5f5 inset, -2px -2px 4px #f5f5f5 inset; - border: 1px solid #3498db; - background-color: #ffffff; - color: var(--kuc-date-picker-input-color, #333333); -} -.kuc-date-picker-1-18-0__group input[type=text].kuc-base-date-1-18-0__input:disabled { - color: #888888; - background-color: #d4d7d7; - box-shadow: none; - cursor: not-allowed; -} -`;var kn=function(e,t,n,r){var i=arguments.length,o=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o};let nl;(()=>{if(nl=window.customElements.get("kuc-date-picker-1-18-0"),nl)return;class e extends vt{constructor(n){super(),this.className="",this.error="",this.id="",this.label="",this.disabled=!1,this.requiredIcon=!1,this.language="auto",this.value="",this.visible=!0,this._errorFormat="",this._errorText="",this._inputValue="",this._invalidValue="",this._valueConverted="",this._GUID=vo();const r=br(n);Object.assign(this,r)}shouldUpdate(n){return this.value===void 0||this.value===""?!0:typeof this.value!="string"||!Nv(this.value)?(this.throwErrorAfterUpdateComplete(gn.VALUE),!1):(this._valueConverted=Rh(this.value),this._valueConverted&&!oa(this._valueConverted)?(this.throwErrorAfterUpdateComplete(gn.VALUE),!1):!0)}willUpdate(n){n.has("value")&&(this.value===void 0?this._inputValue=this._invalidValue:(this.value=this.value===""?this.value:this._valueConverted,this._inputValue=this.value,this._errorFormat="")),this._updateErrorText()}render(){return fe` - -