From 4c7364d3830336c8100f5d0e88f24fd1a42e60f7 Mon Sep 17 00:00:00 2001 From: jezlan-tridz Date: Mon, 29 Jan 2024 05:29:44 +0000 Subject: [PATCH] Fix:duplicate invoice bug --- .../{Login-55f35886.js => Login-68d9adae.js} | 2 +- .../public/urypos/assets/index-009f89fa.css | 1 - .../public/urypos/assets/index-70dee3f7.js | 156 ++++++++++++++++++ .../public/urypos/assets/index-7e30cef0.css | 1 + .../public/urypos/assets/index-c5bdbe79.js | 137 --------------- ury_pos/public/urypos/index.html | 4 +- ury_pos/www/urypos.html | 4 +- urypos/src/stores/invoiceData.js | 5 +- 8 files changed, 165 insertions(+), 145 deletions(-) rename ury_pos/public/urypos/assets/{Login-55f35886.js => Login-68d9adae.js} (98%) delete mode 100644 ury_pos/public/urypos/assets/index-009f89fa.css create mode 100644 ury_pos/public/urypos/assets/index-70dee3f7.js create mode 100644 ury_pos/public/urypos/assets/index-7e30cef0.css delete mode 100644 ury_pos/public/urypos/assets/index-c5bdbe79.js diff --git a/ury_pos/public/urypos/assets/Login-55f35886.js b/ury_pos/public/urypos/assets/Login-68d9adae.js similarity index 98% rename from ury_pos/public/urypos/assets/Login-55f35886.js rename to ury_pos/public/urypos/assets/Login-68d9adae.js index 170f6fa..5c15a3d 100644 --- a/ury_pos/public/urypos/assets/Login-55f35886.js +++ b/ury_pos/public/urypos/assets/Login-68d9adae.js @@ -1 +1 @@ -import{_ as n,u as a,o,c as i,a as e,w as d,b as l,v as u,d as c}from"./index-c5bdbe79.js";const p={setup(){return{auth:a()}}},h={class:"flex flex-col justify-center py-12 sm:px-6 lg:px-8"},m={class:"mt-8 sm:mx-auto sm:w-full sm:max-w-md"},f={class:"bg-white py-8 px-4 shadow sm:rounded-lg sm:px-10"},w={class:"relative mt-1"},x=e("div",{class:"absolute inset-y-0 left-0 flex items-center px-2"},[e("svg",{class:"field-icon email-icon",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e("path",{d:"M2.5 7.65149V15.0757C2.5 15.4374 2.64367 15.7842 2.8994 16.04C3.15513 16.2957 3.50198 16.4394 3.86364 16.4394H16.1364C16.498 16.4394 16.8449 16.2957 17.1006 16.04C17.3563 15.7842 17.5 15.4374 17.5 15.0757V7.65149",stroke:"#74808B","stroke-miterlimit":"10","stroke-linecap":"square"}),e("path",{d:"M17.5 7.57572V5.53026C17.5 5.1686 17.3563 4.82176 17.1006 4.56603C16.8449 4.31029 16.498 4.16663 16.1364 4.16663H3.86364C3.50198 4.16663 3.15513 4.31029 2.8994 4.56603C2.64367 4.82176 2.5 5.1686 2.5 5.53026V7.57572L10 10.8333L17.5 7.57572Z",stroke:"#74808B","stroke-miterlimit":"10","stroke-linecap":"square"})])],-1),C={class:"mt-1"},g={class:"relative"},b=["type"],_=e("div",{class:"absolute inset-y-0 left-0 flex items-center px-2"},[e("svg",{class:"field-icon password-icon",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.0961 1.93768H10.0264C8.94806 1.92763 7.90976 2.34591 7.13951 3.10075C6.36866 3.85619 5.9294 4.88687 5.91833 5.96612L5.91831 5.96612V5.97124V6.52695H4.3125C3.20793 6.52695 2.3125 7.42238 2.3125 8.52695V16.0165C2.3125 17.121 3.20793 18.0165 4.3125 18.0165H15.7356C16.8401 18.0165 17.7356 17.121 17.7356 16.0165V8.52695C17.7356 7.42238 16.8401 6.52695 15.7356 6.52695H14.1297V6.04576C14.1397 4.96742 13.7214 3.92913 12.9666 3.15888C12.2112 2.38803 11.1805 1.94877 10.1012 1.9377V1.93768H10.0961ZM13.1297 6.52695V6.04336V6.03838H13.1297C13.1378 5.22428 12.8222 4.44029 12.2524 3.85881C11.6831 3.27793 10.9067 2.94667 10.0934 2.93768H10.024H10.019V2.93765C9.20491 2.92955 8.42092 3.24512 7.83944 3.81497C7.25856 4.38423 6.9273 5.1607 6.91831 5.9739V6.52695H13.1297ZM4.3125 7.52695C3.76022 7.52695 3.3125 7.97467 3.3125 8.52695V16.0165C3.3125 16.5687 3.76022 17.0165 4.3125 17.0165H15.7356C16.2879 17.0165 16.7356 16.5687 16.7356 16.0165V8.52695C16.7356 7.97467 16.2879 7.52695 15.7356 7.52695H4.3125ZM10.0242 13.2384C10.5581 13.2384 10.9909 12.8056 10.9909 12.2717C10.9909 11.7377 10.5581 11.3049 10.0242 11.3049C9.49023 11.3049 9.05738 11.7377 9.05738 12.2717C9.05738 12.8056 9.49023 13.2384 10.0242 13.2384ZM11.9909 12.2717C11.9909 13.3579 11.1104 14.2384 10.0242 14.2384C8.93794 14.2384 8.05738 13.3579 8.05738 12.2717C8.05738 11.1854 8.93794 10.3049 10.0242 10.3049C11.1104 10.3049 11.9909 11.1854 11.9909 12.2717Z",fill:"#74808B"})])],-1),v={class:"absolute inset-y-0 right-0 flex items-center pr-3 text-sm leading-5"},y={key:0,class:"text-gray-400"},V={key:1,class:"text-gray-400"},H=e("div",null,[e("button",{type:"submit",class:"flex w-full justify-center rounded-md border border-transparent bg-blue-600 py-2 px-4 text-sm font-medium text-white shadow-sm hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2"}," Sign in ")],-1);function k(r,s,M,B,P,Z){return o(),i("div",h,[e("div",m,[e("div",f,[e("form",{class:"space-y-6",onSubmit:s[3]||(s[3]=d((...t)=>this.auth.login&&this.auth.login(...t),["prevent"]))},[e("div",w,[l(e("input",{name:"user_id","onUpdate:modelValue":s[0]||(s[0]=t=>this.auth.userId=t),required:"",class:"block w-full appearance-none rounded-md border border-gray-300 px-3 py-2 pr-8 pl-10 placeholder-gray-400 shadow-sm focus:border-blue-500 focus:outline-none focus:ring-blue-500 sm:text-sm",placeholder:"jane@exmaple.com"},null,512),[[u,this.auth.userId]]),x]),e("div",C,[e("div",g,[l(e("input",{name:"currentPassword",type:this.auth.passwordFieldType,"onUpdate:modelValue":s[1]||(s[1]=t=>this.auth.currentPassword=t),required:"",placeholder:"•••••",class:"block w-full appearance-none rounded-md border border-gray-300 px-3 py-2 pl-10 placeholder-gray-400 shadow-sm focus:border-blue-500 focus:outline-none focus:ring-blue-500 sm:text-sm"},null,8,b),[[c,this.auth.currentPassword]]),_,e("div",v,[e("button",{type:"button",class:"absolute inset-y-0 right-0 flex items-center pr-3 text-sm leading-5",onClick:s[2]||(s[2]=t=>this.auth.showPassword=!this.auth.showPassword)},[this.auth.showPassword?(o(),i("span",y,"Hide")):(o(),i("span",V,"Show"))])])])]),H],32)])])])}const q=n(p,[["render",k]]);export{q as default}; +import{_ as n,u as a,o,c as i,a as e,w as d,b as l,v as u,d as c}from"./index-70dee3f7.js";const p={setup(){return{auth:a()}}},h={class:"flex flex-col justify-center py-12 sm:px-6 lg:px-8"},m={class:"mt-8 sm:mx-auto sm:w-full sm:max-w-md"},f={class:"bg-white py-8 px-4 shadow sm:rounded-lg sm:px-10"},w={class:"relative mt-1"},x=e("div",{class:"absolute inset-y-0 left-0 flex items-center px-2"},[e("svg",{class:"field-icon email-icon",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e("path",{d:"M2.5 7.65149V15.0757C2.5 15.4374 2.64367 15.7842 2.8994 16.04C3.15513 16.2957 3.50198 16.4394 3.86364 16.4394H16.1364C16.498 16.4394 16.8449 16.2957 17.1006 16.04C17.3563 15.7842 17.5 15.4374 17.5 15.0757V7.65149",stroke:"#74808B","stroke-miterlimit":"10","stroke-linecap":"square"}),e("path",{d:"M17.5 7.57572V5.53026C17.5 5.1686 17.3563 4.82176 17.1006 4.56603C16.8449 4.31029 16.498 4.16663 16.1364 4.16663H3.86364C3.50198 4.16663 3.15513 4.31029 2.8994 4.56603C2.64367 4.82176 2.5 5.1686 2.5 5.53026V7.57572L10 10.8333L17.5 7.57572Z",stroke:"#74808B","stroke-miterlimit":"10","stroke-linecap":"square"})])],-1),C={class:"mt-1"},g={class:"relative"},b=["type"],_=e("div",{class:"absolute inset-y-0 left-0 flex items-center px-2"},[e("svg",{class:"field-icon password-icon",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.0961 1.93768H10.0264C8.94806 1.92763 7.90976 2.34591 7.13951 3.10075C6.36866 3.85619 5.9294 4.88687 5.91833 5.96612L5.91831 5.96612V5.97124V6.52695H4.3125C3.20793 6.52695 2.3125 7.42238 2.3125 8.52695V16.0165C2.3125 17.121 3.20793 18.0165 4.3125 18.0165H15.7356C16.8401 18.0165 17.7356 17.121 17.7356 16.0165V8.52695C17.7356 7.42238 16.8401 6.52695 15.7356 6.52695H14.1297V6.04576C14.1397 4.96742 13.7214 3.92913 12.9666 3.15888C12.2112 2.38803 11.1805 1.94877 10.1012 1.9377V1.93768H10.0961ZM13.1297 6.52695V6.04336V6.03838H13.1297C13.1378 5.22428 12.8222 4.44029 12.2524 3.85881C11.6831 3.27793 10.9067 2.94667 10.0934 2.93768H10.024H10.019V2.93765C9.20491 2.92955 8.42092 3.24512 7.83944 3.81497C7.25856 4.38423 6.9273 5.1607 6.91831 5.9739V6.52695H13.1297ZM4.3125 7.52695C3.76022 7.52695 3.3125 7.97467 3.3125 8.52695V16.0165C3.3125 16.5687 3.76022 17.0165 4.3125 17.0165H15.7356C16.2879 17.0165 16.7356 16.5687 16.7356 16.0165V8.52695C16.7356 7.97467 16.2879 7.52695 15.7356 7.52695H4.3125ZM10.0242 13.2384C10.5581 13.2384 10.9909 12.8056 10.9909 12.2717C10.9909 11.7377 10.5581 11.3049 10.0242 11.3049C9.49023 11.3049 9.05738 11.7377 9.05738 12.2717C9.05738 12.8056 9.49023 13.2384 10.0242 13.2384ZM11.9909 12.2717C11.9909 13.3579 11.1104 14.2384 10.0242 14.2384C8.93794 14.2384 8.05738 13.3579 8.05738 12.2717C8.05738 11.1854 8.93794 10.3049 10.0242 10.3049C11.1104 10.3049 11.9909 11.1854 11.9909 12.2717Z",fill:"#74808B"})])],-1),v={class:"absolute inset-y-0 right-0 flex items-center pr-3 text-sm leading-5"},y={key:0,class:"text-gray-400"},V={key:1,class:"text-gray-400"},H=e("div",null,[e("button",{type:"submit",class:"flex w-full justify-center rounded-md border border-transparent bg-blue-600 py-2 px-4 text-sm font-medium text-white shadow-sm hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2"}," Sign in ")],-1);function k(r,s,M,B,P,Z){return o(),i("div",h,[e("div",m,[e("div",f,[e("form",{class:"space-y-6",onSubmit:s[3]||(s[3]=d((...t)=>this.auth.login&&this.auth.login(...t),["prevent"]))},[e("div",w,[l(e("input",{name:"user_id","onUpdate:modelValue":s[0]||(s[0]=t=>this.auth.userId=t),required:"",class:"block w-full appearance-none rounded-md border border-gray-300 px-3 py-2 pr-8 pl-10 placeholder-gray-400 shadow-sm focus:border-blue-500 focus:outline-none focus:ring-blue-500 sm:text-sm",placeholder:"jane@exmaple.com"},null,512),[[u,this.auth.userId]]),x]),e("div",C,[e("div",g,[l(e("input",{name:"currentPassword",type:this.auth.passwordFieldType,"onUpdate:modelValue":s[1]||(s[1]=t=>this.auth.currentPassword=t),required:"",placeholder:"•••••",class:"block w-full appearance-none rounded-md border border-gray-300 px-3 py-2 pl-10 placeholder-gray-400 shadow-sm focus:border-blue-500 focus:outline-none focus:ring-blue-500 sm:text-sm"},null,8,b),[[c,this.auth.currentPassword]]),_,e("div",v,[e("button",{type:"button",class:"absolute inset-y-0 right-0 flex items-center pr-3 text-sm leading-5",onClick:s[2]||(s[2]=t=>this.auth.showPassword=!this.auth.showPassword)},[this.auth.showPassword?(o(),i("span",y,"Hide")):(o(),i("span",V,"Show"))])])])]),H],32)])])])}const q=n(p,[["render",k]]);export{q as default}; diff --git a/ury_pos/public/urypos/assets/index-009f89fa.css b/ury_pos/public/urypos/assets/index-009f89fa.css deleted file mode 100644 index a83a7eb..0000000 --- a/ury_pos/public/urypos/assets/index-009f89fa.css +++ /dev/null @@ -1 +0,0 @@ -*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}.tooltip-arrow,.tooltip-arrow:before{position:absolute;width:8px;height:8px;background:inherit}.tooltip-arrow{visibility:hidden}.tooltip-arrow:before{content:"";visibility:visible;transform:rotate(45deg)}[data-tooltip-style^=light]+.tooltip>.tooltip-arrow:before{border-style:solid;border-color:#e5e7eb}[data-tooltip-style^=light]+.tooltip[data-popper-placement^=top]>.tooltip-arrow:before{border-bottom-width:1px;border-right-width:1px}[data-tooltip-style^=light]+.tooltip[data-popper-placement^=right]>.tooltip-arrow:before{border-bottom-width:1px;border-left-width:1px}[data-tooltip-style^=light]+.tooltip[data-popper-placement^=bottom]>.tooltip-arrow:before{border-top-width:1px;border-left-width:1px}[data-tooltip-style^=light]+.tooltip[data-popper-placement^=left]>.tooltip-arrow:before{border-top-width:1px;border-right-width:1px}.tooltip[data-popper-placement^=top]>.tooltip-arrow{bottom:-4px}.tooltip[data-popper-placement^=bottom]>.tooltip-arrow{top:-4px}.tooltip[data-popper-placement^=left]>.tooltip-arrow{right:-4px}.tooltip[data-popper-placement^=right]>.tooltip-arrow{left:-4px}.tooltip.invisible>.tooltip-arrow:before{visibility:hidden}[data-popper-arrow],[data-popper-arrow]:before{position:absolute;width:8px;height:8px;background:inherit}[data-popper-arrow]{visibility:hidden}[data-popper-arrow]:before{content:"";visibility:visible;transform:rotate(45deg)}[data-popper-arrow]:after{content:"";visibility:visible;transform:rotate(45deg);position:absolute;width:9px;height:9px;background:inherit}[role=tooltip]>[data-popper-arrow]:before{border-style:solid;border-color:#e5e7eb}.dark [role=tooltip]>[data-popper-arrow]:before{border-style:solid;border-color:#4b5563}[role=tooltip]>[data-popper-arrow]:after{border-style:solid;border-color:#e5e7eb}.dark [role=tooltip]>[data-popper-arrow]:after{border-style:solid;border-color:#4b5563}[data-popover][role=tooltip][data-popper-placement^=top]>[data-popper-arrow]:before{border-bottom-width:1px;border-right-width:1px}[data-popover][role=tooltip][data-popper-placement^=top]>[data-popper-arrow]:after{border-bottom-width:1px;border-right-width:1px}[data-popover][role=tooltip][data-popper-placement^=right]>[data-popper-arrow]:before{border-bottom-width:1px;border-left-width:1px}[data-popover][role=tooltip][data-popper-placement^=right]>[data-popper-arrow]:after{border-bottom-width:1px;border-left-width:1px}[data-popover][role=tooltip][data-popper-placement^=bottom]>[data-popper-arrow]:before{border-top-width:1px;border-left-width:1px}[data-popover][role=tooltip][data-popper-placement^=bottom]>[data-popper-arrow]:after{border-top-width:1px;border-left-width:1px}[data-popover][role=tooltip][data-popper-placement^=left]>[data-popper-arrow]:before{border-top-width:1px;border-right-width:1px}[data-popover][role=tooltip][data-popper-placement^=left]>[data-popper-arrow]:after{border-top-width:1px;border-right-width:1px}[data-popover][role=tooltip][data-popper-placement^=top]>[data-popper-arrow]{bottom:-5px}[data-popover][role=tooltip][data-popper-placement^=bottom]>[data-popper-arrow]{top:-5px}[data-popover][role=tooltip][data-popper-placement^=left]>[data-popper-arrow]{right:-5px}[data-popover][role=tooltip][data-popper-placement^=right]>[data-popper-arrow]{left:-5px}[role=tooltip].invisible>[data-popper-arrow]:before{visibility:hidden}[role=tooltip].invisible>[data-popper-arrow]:after{visibility:hidden}[type=text],[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-width:1px;border-radius:0;padding:.5rem .75rem;font-size:1rem;line-height:1.5rem;--tw-shadow: 0 0 #0000}[type=text]:focus,[type=email]:focus,[type=url]:focus,[type=password]:focus,[type=number]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=month]:focus,[type=search]:focus,[type=tel]:focus,[type=time]:focus,[type=week]:focus,[multiple]:focus,textarea:focus,select:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: #1C64F2;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);border-color:#1c64f2}input::-moz-placeholder,textarea::-moz-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em}select:not([size]){background-image:url("data:image/svg+xml,%3csvg aria-hidden='true' xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 10 6'%3e %3cpath stroke='%236B7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 1 4 4 4-4'/%3e %3c/svg%3e");background-position:right .75rem center;background-repeat:no-repeat;background-size:.75em .75em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple]{background-image:initial;background-position:initial;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;display:inline-block;vertical-align:middle;background-origin:border-box;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-shrink:0;height:1rem;width:1rem;color:#1c64f2;background-color:#fff;border-color:#6b7280;border-width:1px;--tw-shadow: 0 0 #0000}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 2px;--tw-ring-offset-color: #fff;--tw-ring-color: #1C64F2;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}[type=checkbox]:checked,[type=radio]:checked,.dark [type=checkbox]:checked,.dark [type=radio]:checked{border-color:transparent;background-color:currentColor;background-size:.55em .55em;background-position:center;background-repeat:no-repeat}[type=checkbox]:checked{background-image:url("data:image/svg+xml,%3csvg aria-hidden='true' xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 12'%3e %3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M1 5.917 5.724 10.5 15 1.5'/%3e %3c/svg%3e");background-repeat:no-repeat;background-size:.55em .55em;-webkit-print-color-adjust:exact;print-color-adjust:exact}[type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e");background-size:1em 1em}.dark [type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e");background-size:1em 1em}[type=checkbox]:indeterminate{background-image:url("data:image/svg+xml,%3csvg aria-hidden='true' xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 12'%3e %3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M1 5.917 5.724 10.5 15 1.5'/%3e %3c/svg%3e");background-color:currentColor;border-color:transparent;background-position:center;background-repeat:no-repeat;background-size:.55em .55em;-webkit-print-color-adjust:exact;print-color-adjust:exact}[type=checkbox]:indeterminate:hover,[type=checkbox]:indeterminate:focus{border-color:transparent;background-color:currentColor}[type=file]{background:unset;border-color:inherit;border-width:0;border-radius:0;padding:0;font-size:unset;line-height:inherit}[type=file]:focus{outline:1px auto inherit}input[type=file]::file-selector-button{color:#fff;background:#1F2937;border:0;font-weight:500;font-size:.875rem;cursor:pointer;padding:.625rem 1rem .625rem 2rem;margin-inline-start:-1rem;margin-inline-end:1rem}input[type=file]::file-selector-button:hover{background:#374151}.dark input[type=file]::file-selector-button{color:#fff;background:#4B5563}.dark input[type=file]::file-selector-button:hover{background:#6B7280}input[type=range]::-webkit-slider-thumb{height:1.25rem;width:1.25rem;background:#1C64F2;border-radius:9999px;border:0;appearance:none;-moz-appearance:none;-webkit-appearance:none;cursor:pointer}input[type=range]:disabled::-webkit-slider-thumb{background:#9CA3AF}.dark input[type=range]:disabled::-webkit-slider-thumb{background:#6B7280}input[type=range]:focus::-webkit-slider-thumb{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1px;--tw-ring-color: rgb(164 202 254 / var(--tw-ring-opacity))}input[type=range]::-moz-range-thumb{height:1.25rem;width:1.25rem;background:#1C64F2;border-radius:9999px;border:0;appearance:none;-moz-appearance:none;-webkit-appearance:none;cursor:pointer}input[type=range]:disabled::-moz-range-thumb{background:#9CA3AF}.dark input[type=range]:disabled::-moz-range-thumb{background:#6B7280}input[type=range]::-moz-range-progress{background:#3F83F8}input[type=range]::-ms-fill-lower{background:#3F83F8}.toggle-bg:after{content:"";position:absolute;top:.125rem;left:.125rem;background:white;border-color:#d1d5db;border-width:1px;border-radius:9999px;height:1.25rem;width:1.25rem;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-duration:.15s;box-shadow:var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color)}input:checked+.toggle-bg:after{transform:translate(100%);border-color:#fff}input:checked+.toggle-bg{background:#1C64F2;border-color:#1c64f2}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(63 131 248 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(63 131 248 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.inset-y-0{top:0;bottom:0}.-bottom-1{bottom:-.25rem}.-bottom-1\.5{bottom:-.375rem}.-bottom-2{bottom:-.5rem}.-bottom-4{bottom:-1rem}.-left-1{left:-.25rem}.-left-1\.5{left:-.375rem}.-right-0{right:-0px}.-right-0\.5{right:-.125rem}.-right-1{right:-.25rem}.-right-1\.5{right:-.375rem}.-top-1{top:-.25rem}.-top-1\.5{top:-.375rem}.bottom-0{bottom:0}.bottom-2{bottom:.5rem}.bottom-2\.5{bottom:.625rem}.bottom-20{bottom:5rem}.bottom-5{bottom:1.25rem}.bottom-\[60px\]{bottom:60px}.left-0{left:0}.left-1\/2{left:50%}.right-0{right:0}.right-2{right:.5rem}.right-2\.5{right:.625rem}.right-3{right:.75rem}.right-4{right:1rem}.right-5{right:1.25rem}.right-7{right:1.75rem}.top-0{top:0}.top-1\/2{top:50%}.top-10{top:2.5rem}.top-3{top:.75rem}.top-4{top:1rem}.top-full{top:100%}.z-0{z-index:0}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.float-right{float:right}.m-3{margin:.75rem}.m-auto{margin:auto}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.-mx-1\.5{margin-left:-.375rem;margin-right:-.375rem}.-my-1{margin-top:-.25rem;margin-bottom:-.25rem}.-my-1\.5{margin-top:-.375rem;margin-bottom:-.375rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-1\.5{margin-left:.375rem;margin-right:.375rem}.mx-auto{margin-left:auto;margin-right:auto}.my-6{margin-top:1.5rem;margin-bottom:1.5rem}.-mb-px{margin-bottom:-1px}.-ml-px{margin-left:-1px}.mb-1{margin-bottom:.25rem}.mb-10{margin-bottom:2.5rem}.mb-12{margin-bottom:3rem}.mb-16{margin-bottom:4rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.me-2{margin-inline-end:.5rem}.ml-0{margin-left:0}.ml-1{margin-left:.25rem}.ml-12{margin-left:3rem}.ml-2{margin-left:.5rem}.ml-28{margin-left:7rem}.ml-3{margin-left:.75rem}.ml-4{margin-left:1rem}.ml-5{margin-left:1.25rem}.ml-auto{margin-left:auto}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mr-3{margin-right:.75rem}.mr-4{margin-right:1rem}.mr-5{margin-right:1.25rem}.mt-0{margin-top:0}.mt-1{margin-top:.25rem}.mt-1\.5{margin-top:.375rem}.mt-10{margin-top:2.5rem}.mt-11{margin-top:2.75rem}.mt-14{margin-top:3.5rem}.mt-2{margin-top:.5rem}.mt-20{margin-top:5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.mt-9{margin-top:2.25rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.flow-root{display:flow-root}.grid{display:grid}.hidden{display:none}.h-0{height:0px}.h-0\.5{height:.125rem}.h-1{height:.25rem}.h-1\.5{height:.375rem}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-16{height:4rem}.h-2{height:.5rem}.h-2\.5{height:.625rem}.h-20{height:5rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-36{height:9rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-56{height:14rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-96{height:24rem}.h-auto{height:auto}.h-full{height:100%}.h-modal{height:calc(100% - 2rem)}.h-px{height:1px}.h-screen{height:100vh}.max-h-64{max-height:16rem}.min-h-screen{min-height:100vh}.w-0{width:0px}.w-0\.5{width:.125rem}.w-1{width:.25rem}.w-1\.5{width:.375rem}.w-1\/2{width:50%}.w-10{width:2.5rem}.w-11{width:2.75rem}.w-12{width:3rem}.w-2{width:.5rem}.w-2\.5{width:.625rem}.w-2\/3{width:66.666667%}.w-20{width:5rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-32{width:8rem}.w-36{width:9rem}.w-4{width:1rem}.w-48{width:12rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-64{width:16rem}.w-7{width:1.75rem}.w-8{width:2rem}.w-9{width:2.25rem}.w-auto{width:auto}.w-full{width:100%}.w-px{width:1px}.min-w-0{min-width:0px}.max-w-2xl{max-width:42rem}.max-w-3xl{max-width:48rem}.max-w-4xl{max-width:56rem}.max-w-5xl{max-width:64rem}.max-w-6xl{max-width:72rem}.max-w-7xl{max-width:80rem}.max-w-full{max-width:100%}.max-w-lg{max-width:32rem}.max-w-md{max-width:28rem}.max-w-screen-2xl{max-width:1536px}.max-w-sm{max-width:24rem}.max-w-xl{max-width:36rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.flex-shrink{flex-shrink:1}.flex-shrink-0,.shrink-0{flex-shrink:0}.-translate-x-1\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-full{--tw-translate-x: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-0{--tw-translate-y: -0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-full{--tw-translate-y: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-full{--tw-translate-x: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-1\/2{--tw-translate-y: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-full{--tw-translate-y: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-180{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform-none{transform:none}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize{resize:both}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.flex-nowrap{flex-wrap:nowrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.-space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(-1rem * var(--tw-space-x-reverse));margin-left:calc(-1rem * calc(1 - var(--tw-space-x-reverse)))}.-space-x-px>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(-1px * var(--tw-space-x-reverse));margin-left:calc(-1px * calc(1 - var(--tw-space-x-reverse)))}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.divide-x>:not([hidden])~:not([hidden]){--tw-divide-x-reverse: 0;border-right-width:calc(1px * var(--tw-divide-x-reverse));border-left-width:calc(1px * calc(1 - var(--tw-divide-x-reverse)))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-gray-100>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(243 244 246 / var(--tw-divide-opacity))}.divide-gray-200>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(229 231 235 / var(--tw-divide-opacity))}.self-center{align-self:center}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-scroll{overflow-y:scroll}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.\!rounded-full{border-radius:9999px!important}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-b{border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-l-lg{border-top-left-radius:.5rem;border-bottom-left-radius:.5rem}.rounded-r-lg{border-top-right-radius:.5rem;border-bottom-right-radius:.5rem}.rounded-t{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.rounded-t-lg{border-top-left-radius:.5rem;border-top-right-radius:.5rem}.rounded-t-xl{border-top-left-radius:.75rem;border-top-right-radius:.75rem}.border{border-width:1px}.border-0{border-width:0px}.border-2{border-width:2px}.border-x{border-left-width:1px;border-right-width:1px}.border-x-0{border-left-width:0px;border-right-width:0px}.border-b{border-bottom-width:1px}.border-b-0{border-bottom-width:0px}.border-b-2{border-bottom-width:2px}.border-l{border-left-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-t-0{border-top-width:0px}.border-t-4{border-top-width:4px}.border-none{border-style:none}.border-blue-400{--tw-border-opacity: 1;border-color:rgb(118 169 250 / var(--tw-border-opacity))}.border-blue-500{--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity))}.border-blue-600{--tw-border-opacity: 1;border-color:rgb(28 100 242 / var(--tw-border-opacity))}.border-blue-700{--tw-border-opacity: 1;border-color:rgb(26 86 219 / var(--tw-border-opacity))}.border-gray-100{--tw-border-opacity: 1;border-color:rgb(243 244 246 / var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.border-gray-400{--tw-border-opacity: 1;border-color:rgb(156 163 175 / var(--tw-border-opacity))}.border-gray-500{--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity))}.border-gray-600{--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity))}.border-gray-700{--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity))}.border-gray-800{--tw-border-opacity: 1;border-color:rgb(31 41 55 / var(--tw-border-opacity))}.border-green-500{--tw-border-opacity: 1;border-color:rgb(14 159 110 / var(--tw-border-opacity))}.border-green-600{--tw-border-opacity: 1;border-color:rgb(5 122 85 / var(--tw-border-opacity))}.border-green-700{--tw-border-opacity: 1;border-color:rgb(4 108 78 / var(--tw-border-opacity))}.border-pink-600{--tw-border-opacity: 1;border-color:rgb(214 31 105 / var(--tw-border-opacity))}.border-pink-700{--tw-border-opacity: 1;border-color:rgb(191 18 93 / var(--tw-border-opacity))}.border-purple-600{--tw-border-opacity: 1;border-color:rgb(126 58 242 / var(--tw-border-opacity))}.border-purple-700{--tw-border-opacity: 1;border-color:rgb(108 43 217 / var(--tw-border-opacity))}.border-red-500{--tw-border-opacity: 1;border-color:rgb(240 82 82 / var(--tw-border-opacity))}.border-red-600{--tw-border-opacity: 1;border-color:rgb(224 36 36 / var(--tw-border-opacity))}.border-red-700{--tw-border-opacity: 1;border-color:rgb(200 30 30 / var(--tw-border-opacity))}.border-transparent{border-color:transparent}.border-white{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity))}.border-yellow-400{--tw-border-opacity: 1;border-color:rgb(227 160 8 / var(--tw-border-opacity))}.border-yellow-500{--tw-border-opacity: 1;border-color:rgb(194 120 3 / var(--tw-border-opacity))}.border-b-gray-200{--tw-border-opacity: 1;border-bottom-color:rgb(229 231 235 / var(--tw-border-opacity))}.border-l-white{--tw-border-opacity: 1;border-left-color:rgb(255 255 255 / var(--tw-border-opacity))}.border-r-white{--tw-border-opacity: 1;border-right-color:rgb(255 255 255 / var(--tw-border-opacity))}.border-t-white{--tw-border-opacity: 1;border-top-color:rgb(255 255 255 / var(--tw-border-opacity))}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.bg-blue-100{--tw-bg-opacity: 1;background-color:rgb(225 239 254 / var(--tw-bg-opacity))}.bg-blue-200{--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity))}.bg-blue-400{--tw-bg-opacity: 1;background-color:rgb(118 169 250 / var(--tw-bg-opacity))}.bg-blue-50{--tw-bg-opacity: 1;background-color:rgb(235 245 255 / var(--tw-bg-opacity))}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(63 131 248 / var(--tw-bg-opacity))}.bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity))}.bg-blue-700{--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.bg-gray-400{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.bg-gray-600{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}.bg-gray-700{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.bg-green-100{--tw-bg-opacity: 1;background-color:rgb(222 247 236 / var(--tw-bg-opacity))}.bg-green-200{--tw-bg-opacity: 1;background-color:rgb(188 240 218 / var(--tw-bg-opacity))}.bg-green-400{--tw-bg-opacity: 1;background-color:rgb(49 196 141 / var(--tw-bg-opacity))}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(14 159 110 / var(--tw-bg-opacity))}.bg-green-600{--tw-bg-opacity: 1;background-color:rgb(5 122 85 / var(--tw-bg-opacity))}.bg-green-700{--tw-bg-opacity: 1;background-color:rgb(4 108 78 / var(--tw-bg-opacity))}.bg-indigo-100{--tw-bg-opacity: 1;background-color:rgb(229 237 255 / var(--tw-bg-opacity))}.bg-indigo-200{--tw-bg-opacity: 1;background-color:rgb(205 219 254 / var(--tw-bg-opacity))}.bg-indigo-500{--tw-bg-opacity: 1;background-color:rgb(104 117 245 / var(--tw-bg-opacity))}.bg-indigo-600{--tw-bg-opacity: 1;background-color:rgb(88 80 236 / var(--tw-bg-opacity))}.bg-orange-100{--tw-bg-opacity: 1;background-color:rgb(254 236 220 / var(--tw-bg-opacity))}.bg-pink-100{--tw-bg-opacity: 1;background-color:rgb(252 232 243 / var(--tw-bg-opacity))}.bg-pink-200{--tw-bg-opacity: 1;background-color:rgb(250 209 232 / var(--tw-bg-opacity))}.bg-pink-700{--tw-bg-opacity: 1;background-color:rgb(191 18 93 / var(--tw-bg-opacity))}.bg-purple-100{--tw-bg-opacity: 1;background-color:rgb(237 235 254 / var(--tw-bg-opacity))}.bg-purple-200{--tw-bg-opacity: 1;background-color:rgb(220 215 254 / var(--tw-bg-opacity))}.bg-purple-500{--tw-bg-opacity: 1;background-color:rgb(144 97 249 / var(--tw-bg-opacity))}.bg-purple-600{--tw-bg-opacity: 1;background-color:rgb(126 58 242 / var(--tw-bg-opacity))}.bg-purple-700{--tw-bg-opacity: 1;background-color:rgb(108 43 217 / var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(253 232 232 / var(--tw-bg-opacity))}.bg-red-200{--tw-bg-opacity: 1;background-color:rgb(251 213 213 / var(--tw-bg-opacity))}.bg-red-400{--tw-bg-opacity: 1;background-color:rgb(249 128 128 / var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(240 82 82 / var(--tw-bg-opacity))}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(224 36 36 / var(--tw-bg-opacity))}.bg-red-700{--tw-bg-opacity: 1;background-color:rgb(200 30 30 / var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-white\/30{background-color:#ffffff4d}.bg-white\/50{background-color:#ffffff80}.bg-yellow-100{--tw-bg-opacity: 1;background-color:rgb(253 246 178 / var(--tw-bg-opacity))}.bg-yellow-200{--tw-bg-opacity: 1;background-color:rgb(252 233 106 / var(--tw-bg-opacity))}.bg-yellow-400{--tw-bg-opacity: 1;background-color:rgb(227 160 8 / var(--tw-bg-opacity))}.bg-opacity-50{--tw-bg-opacity: .5}.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-blue-500{--tw-gradient-from: #3F83F8 var(--tw-gradient-from-position);--tw-gradient-to: rgb(63 131 248 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-cyan-500{--tw-gradient-from: #06b6d4 var(--tw-gradient-from-position);--tw-gradient-to: rgb(6 182 212 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-green-400{--tw-gradient-from: #31C48D var(--tw-gradient-from-position);--tw-gradient-to: rgb(49 196 141 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-green-500{--tw-gradient-from: #0E9F6E var(--tw-gradient-from-position);--tw-gradient-to: rgb(14 159 110 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-lime-500{--tw-gradient-from: #84cc16 var(--tw-gradient-from-position);--tw-gradient-to: rgb(132 204 22 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-pink-500{--tw-gradient-from: #E74694 var(--tw-gradient-from-position);--tw-gradient-to: rgb(231 70 148 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-purple-500{--tw-gradient-from: #9061F9 var(--tw-gradient-from-position);--tw-gradient-to: rgb(144 97 249 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-purple-600{--tw-gradient-from: #7E3AF2 var(--tw-gradient-from-position);--tw-gradient-to: rgb(126 58 242 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-red-200{--tw-gradient-from: #FBD5D5 var(--tw-gradient-from-position);--tw-gradient-to: rgb(251 213 213 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-red-500{--tw-gradient-from: #F05252 var(--tw-gradient-from-position);--tw-gradient-to: rgb(240 82 82 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-teal-200{--tw-gradient-from: #AFECEF var(--tw-gradient-from-position);--tw-gradient-to: rgb(175 236 239 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-teal-300{--tw-gradient-from: #7EDCE2 var(--tw-gradient-from-position);--tw-gradient-to: rgb(126 220 226 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-teal-500{--tw-gradient-from: #0694A2 var(--tw-gradient-from-position);--tw-gradient-to: rgb(6 148 162 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.via-blue-600{--tw-gradient-to: rgb(28 100 242 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #1C64F2 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-cyan-600{--tw-gradient-to: rgb(8 145 178 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #0891b2 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-green-600{--tw-gradient-to: rgb(5 122 85 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #057A55 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-lime-600{--tw-gradient-to: rgb(101 163 13 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #65a30d var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-pink-600{--tw-gradient-to: rgb(214 31 105 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #D61F69 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-purple-600{--tw-gradient-to: rgb(126 58 242 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #7E3AF2 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-red-300{--tw-gradient-to: rgb(248 180 180 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #F8B4B4 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-red-600{--tw-gradient-to: rgb(224 36 36 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #E02424 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-teal-600{--tw-gradient-to: rgb(4 116 129 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #047481 var(--tw-gradient-via-position), var(--tw-gradient-to)}.to-blue-500{--tw-gradient-to: #3F83F8 var(--tw-gradient-to-position)}.to-blue-600{--tw-gradient-to: #1C64F2 var(--tw-gradient-to-position)}.to-blue-700{--tw-gradient-to: #1A56DB var(--tw-gradient-to-position)}.to-cyan-700{--tw-gradient-to: #0e7490 var(--tw-gradient-to-position)}.to-green-700{--tw-gradient-to: #046C4E var(--tw-gradient-to-position)}.to-lime-200{--tw-gradient-to: #d9f99d var(--tw-gradient-to-position)}.to-lime-300{--tw-gradient-to: #bef264 var(--tw-gradient-to-position)}.to-lime-700{--tw-gradient-to: #4d7c0f var(--tw-gradient-to-position)}.to-orange-400{--tw-gradient-to: #FF8A4C var(--tw-gradient-to-position)}.to-pink-500{--tw-gradient-to: #E74694 var(--tw-gradient-to-position)}.to-pink-700{--tw-gradient-to: #BF125D var(--tw-gradient-to-position)}.to-purple-700{--tw-gradient-to: #6C2BD9 var(--tw-gradient-to-position)}.to-red-700{--tw-gradient-to: #C81E1E var(--tw-gradient-to-position)}.to-teal-700{--tw-gradient-to: #036672 var(--tw-gradient-to-position)}.to-yellow-200{--tw-gradient-to: #FCE96A var(--tw-gradient-to-position)}.fill-blue-600{fill:#1c64f2}.fill-gray-300{fill:#d1d5db}.fill-gray-600{fill:#4b5563}.fill-green-500{fill:#0e9f6e}.fill-pink-600{fill:#d61f69}.fill-purple-600{fill:#7e3af2}.fill-red-600{fill:#e02424}.fill-white{fill:#fff}.fill-yellow-400{fill:#e3a008}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0{padding:0}.p-0\.5{padding:.125rem}.p-1{padding:.25rem}.p-1\.5{padding:.375rem}.p-2{padding:.5rem}.p-2\.5{padding:.625rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-0{padding-top:0;padding-bottom:0}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-2{padding-bottom:.5rem}.pb-4{padding-bottom:1rem}.pl-10{padding-left:2.5rem}.pl-3{padding-left:.75rem}.pr-3{padding-right:.75rem}.pr-4{padding-right:1rem}.pr-8{padding-right:2rem}.pt-0{padding-top:0}.pt-2{padding-top:.5rem}.pt-2\.5{padding-top:.625rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.text-justify{text-align:justify}.align-middle{vertical-align:middle}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-extrabold{font-weight:800}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.leading-5{line-height:1.25rem}.leading-6{line-height:1.5rem}.leading-9{line-height:2.25rem}.leading-none{line-height:1}.leading-normal{line-height:1.5}.leading-tight{line-height:1.25}.text-blue-100{--tw-text-opacity: 1;color:rgb(225 239 254 / var(--tw-text-opacity))}.text-blue-300{--tw-text-opacity: 1;color:rgb(164 202 254 / var(--tw-text-opacity))}.text-blue-400{--tw-text-opacity: 1;color:rgb(118 169 250 / var(--tw-text-opacity))}.text-blue-500{--tw-text-opacity: 1;color:rgb(63 131 248 / var(--tw-text-opacity))}.text-blue-600{--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity))}.text-blue-700{--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}.text-blue-800{--tw-text-opacity: 1;color:rgb(30 66 159 / var(--tw-text-opacity))}.text-gray-200{--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity))}.text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-green-200{--tw-text-opacity: 1;color:rgb(188 240 218 / var(--tw-text-opacity))}.text-green-500{--tw-text-opacity: 1;color:rgb(14 159 110 / var(--tw-text-opacity))}.text-green-600{--tw-text-opacity: 1;color:rgb(5 122 85 / var(--tw-text-opacity))}.text-green-700{--tw-text-opacity: 1;color:rgb(4 108 78 / var(--tw-text-opacity))}.text-green-800{--tw-text-opacity: 1;color:rgb(3 84 63 / var(--tw-text-opacity))}.text-green-900{--tw-text-opacity: 1;color:rgb(1 71 55 / var(--tw-text-opacity))}.text-indigo-500{--tw-text-opacity: 1;color:rgb(104 117 245 / var(--tw-text-opacity))}.text-indigo-700{--tw-text-opacity: 1;color:rgb(81 69 205 / var(--tw-text-opacity))}.text-indigo-800{--tw-text-opacity: 1;color:rgb(66 56 157 / var(--tw-text-opacity))}.text-indigo-900{--tw-text-opacity: 1;color:rgb(54 47 120 / var(--tw-text-opacity))}.text-orange-200{--tw-text-opacity: 1;color:rgb(252 217 189 / var(--tw-text-opacity))}.text-orange-500{--tw-text-opacity: 1;color:rgb(255 90 31 / var(--tw-text-opacity))}.text-pink-500{--tw-text-opacity: 1;color:rgb(231 70 148 / var(--tw-text-opacity))}.text-pink-600{--tw-text-opacity: 1;color:rgb(214 31 105 / var(--tw-text-opacity))}.text-pink-700{--tw-text-opacity: 1;color:rgb(191 18 93 / var(--tw-text-opacity))}.text-pink-800{--tw-text-opacity: 1;color:rgb(153 21 75 / var(--tw-text-opacity))}.text-pink-900{--tw-text-opacity: 1;color:rgb(117 26 61 / var(--tw-text-opacity))}.text-purple-500{--tw-text-opacity: 1;color:rgb(144 97 249 / var(--tw-text-opacity))}.text-purple-600{--tw-text-opacity: 1;color:rgb(126 58 242 / var(--tw-text-opacity))}.text-purple-700{--tw-text-opacity: 1;color:rgb(108 43 217 / var(--tw-text-opacity))}.text-purple-800{--tw-text-opacity: 1;color:rgb(85 33 181 / var(--tw-text-opacity))}.text-purple-900{--tw-text-opacity: 1;color:rgb(74 29 150 / var(--tw-text-opacity))}.text-red-200{--tw-text-opacity: 1;color:rgb(251 213 213 / var(--tw-text-opacity))}.text-red-300{--tw-text-opacity: 1;color:rgb(248 180 180 / var(--tw-text-opacity))}.text-red-500{--tw-text-opacity: 1;color:rgb(240 82 82 / var(--tw-text-opacity))}.text-red-600{--tw-text-opacity: 1;color:rgb(224 36 36 / var(--tw-text-opacity))}.text-red-700{--tw-text-opacity: 1;color:rgb(200 30 30 / var(--tw-text-opacity))}.text-red-800{--tw-text-opacity: 1;color:rgb(155 28 28 / var(--tw-text-opacity))}.text-red-900{--tw-text-opacity: 1;color:rgb(119 29 29 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-yellow-400{--tw-text-opacity: 1;color:rgb(227 160 8 / var(--tw-text-opacity))}.text-yellow-500{--tw-text-opacity: 1;color:rgb(194 120 3 / var(--tw-text-opacity))}.text-yellow-700{--tw-text-opacity: 1;color:rgb(142 75 16 / var(--tw-text-opacity))}.text-yellow-800{--tw-text-opacity: 1;color:rgb(114 59 19 / var(--tw-text-opacity))}.text-yellow-900{--tw-text-opacity: 1;color:rgb(99 49 18 / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.placeholder-gray-400::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity))}.placeholder-gray-400::placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity))}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-50{opacity:.5}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-blue-500\/50{--tw-shadow-color: rgb(63 131 248 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-blue-800\/80{--tw-shadow-color: rgb(30 66 159 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-cyan-500\/50{--tw-shadow-color: rgb(6 182 212 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-cyan-800\/80{--tw-shadow-color: rgb(21 94 117 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-green-500\/50{--tw-shadow-color: rgb(14 159 110 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-green-800\/80{--tw-shadow-color: rgb(3 84 63 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-lime-500\/50{--tw-shadow-color: rgb(132 204 22 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-lime-800\/80{--tw-shadow-color: rgb(63 98 18 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-pink-500\/50{--tw-shadow-color: rgb(231 70 148 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-pink-800\/80{--tw-shadow-color: rgb(153 21 75 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-purple-500\/50{--tw-shadow-color: rgb(144 97 249 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-purple-800\/80{--tw-shadow-color: rgb(85 33 181 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-red-500\/50{--tw-shadow-color: rgb(240 82 82 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-red-800\/80{--tw-shadow-color: rgb(155 28 28 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-teal-500\/50{--tw-shadow-color: rgb(6 148 162 / .5);--tw-shadow: var(--tw-shadow-colored)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-blue-800{--tw-ring-opacity: 1;--tw-ring-color: rgb(30 66 159 / var(--tw-ring-opacity))}.ring-cyan-800{--tw-ring-opacity: 1;--tw-ring-color: rgb(21 94 117 / var(--tw-ring-opacity))}.ring-gray-300{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity))}.ring-gray-600{--tw-ring-opacity: 1;--tw-ring-color: rgb(75 85 99 / var(--tw-ring-opacity))}.ring-gray-800{--tw-ring-opacity: 1;--tw-ring-color: rgb(31 41 55 / var(--tw-ring-opacity))}.ring-green-800{--tw-ring-opacity: 1;--tw-ring-color: rgb(3 84 63 / var(--tw-ring-opacity))}.ring-pink-800{--tw-ring-opacity: 1;--tw-ring-color: rgb(153 21 75 / var(--tw-ring-opacity))}.ring-pink-900{--tw-ring-opacity: 1;--tw-ring-color: rgb(117 26 61 / var(--tw-ring-opacity))}.ring-purple-800{--tw-ring-opacity: 1;--tw-ring-color: rgb(85 33 181 / var(--tw-ring-opacity))}.ring-purple-900{--tw-ring-opacity: 1;--tw-ring-color: rgb(74 29 150 / var(--tw-ring-opacity))}.ring-red-400{--tw-ring-opacity: 1;--tw-ring-color: rgb(249 128 128 / var(--tw-ring-opacity))}.ring-red-900{--tw-ring-opacity: 1;--tw-ring-color: rgb(119 29 29 / var(--tw-ring-opacity))}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-md{--tw-backdrop-blur: blur(12px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-75{transition-duration:75ms}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.hover\:border-gray-300:hover{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.hover\:bg-\[\#2557D6\]\/90:hover{background-color:#2557d6e6}.hover\:bg-blue-100:hover{--tw-bg-opacity: 1;background-color:rgb(225 239 254 / var(--tw-bg-opacity))}.hover\:bg-blue-200:hover{--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity))}.hover\:bg-blue-600:hover{--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity))}.hover\:bg-blue-700:hover{--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}.hover\:bg-blue-800:hover{--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity))}.hover\:bg-blue-900:hover{--tw-bg-opacity: 1;background-color:rgb(35 56 118 / var(--tw-bg-opacity))}.hover\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.hover\:bg-gray-200:hover{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.hover\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.hover\:bg-gray-600:hover{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}.hover\:bg-gray-900:hover{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.hover\:bg-green-200:hover{--tw-bg-opacity: 1;background-color:rgb(188 240 218 / var(--tw-bg-opacity))}.hover\:bg-green-800:hover{--tw-bg-opacity: 1;background-color:rgb(3 84 63 / var(--tw-bg-opacity))}.hover\:bg-pink-800:hover{--tw-bg-opacity: 1;background-color:rgb(153 21 75 / var(--tw-bg-opacity))}.hover\:bg-purple-800:hover{--tw-bg-opacity: 1;background-color:rgb(85 33 181 / var(--tw-bg-opacity))}.hover\:bg-red-200:hover{--tw-bg-opacity: 1;background-color:rgb(251 213 213 / var(--tw-bg-opacity))}.hover\:bg-red-800:hover{--tw-bg-opacity: 1;background-color:rgb(155 28 28 / var(--tw-bg-opacity))}.hover\:bg-white:hover{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.hover\:bg-yellow-200:hover{--tw-bg-opacity: 1;background-color:rgb(252 233 106 / var(--tw-bg-opacity))}.hover\:bg-yellow-500:hover{--tw-bg-opacity: 1;background-color:rgb(194 120 3 / var(--tw-bg-opacity))}.hover\:bg-gradient-to-bl:hover{background-image:linear-gradient(to bottom left,var(--tw-gradient-stops))}.hover\:bg-gradient-to-br:hover{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.hover\:bg-gradient-to-l:hover{background-image:linear-gradient(to left,var(--tw-gradient-stops))}.hover\:from-teal-200:hover{--tw-gradient-from: #AFECEF var(--tw-gradient-from-position);--tw-gradient-to: rgb(175 236 239 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.hover\:to-lime-200:hover{--tw-gradient-to: #d9f99d var(--tw-gradient-to-position)}.hover\:text-blue-500:hover{--tw-text-opacity: 1;color:rgb(63 131 248 / var(--tw-text-opacity))}.hover\:text-blue-600:hover{--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity))}.hover\:text-blue-700:hover{--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}.hover\:text-gray-600:hover{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.hover\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.hover\:text-gray-900:hover{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.hover\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.hover\:underline:hover{text-decoration-line:underline}.hover\:no-underline:hover{text-decoration-line:none}.focus\:z-10:focus{z-index:10}.focus\:border-blue-500:focus{--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity))}.focus\:text-blue-700:focus{--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-4:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-\[\#2557D6\]\/50:focus{--tw-ring-color: rgb(37 87 214 / .5)}.focus\:ring-blue-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(164 202 254 / var(--tw-ring-opacity))}.focus\:ring-blue-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(118 169 250 / var(--tw-ring-opacity))}.focus\:ring-blue-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(63 131 248 / var(--tw-ring-opacity))}.focus\:ring-blue-700:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(26 86 219 / var(--tw-ring-opacity))}.focus\:ring-cyan-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(165 243 252 / var(--tw-ring-opacity))}.focus\:ring-cyan-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(103 232 249 / var(--tw-ring-opacity))}.focus\:ring-gray-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(229 231 235 / var(--tw-ring-opacity))}.focus\:ring-gray-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity))}.focus\:ring-gray-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(156 163 175 / var(--tw-ring-opacity))}.focus\:ring-green-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(188 240 218 / var(--tw-ring-opacity))}.focus\:ring-green-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(132 225 188 / var(--tw-ring-opacity))}.focus\:ring-green-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(49 196 141 / var(--tw-ring-opacity))}.focus\:ring-lime-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(217 249 157 / var(--tw-ring-opacity))}.focus\:ring-lime-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(190 242 100 / var(--tw-ring-opacity))}.focus\:ring-pink-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(250 209 232 / var(--tw-ring-opacity))}.focus\:ring-pink-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(248 180 217 / var(--tw-ring-opacity))}.focus\:ring-purple-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(220 215 254 / var(--tw-ring-opacity))}.focus\:ring-purple-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(202 191 253 / var(--tw-ring-opacity))}.focus\:ring-red-100:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(253 232 232 / var(--tw-ring-opacity))}.focus\:ring-red-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(248 180 180 / var(--tw-ring-opacity))}.focus\:ring-red-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(249 128 128 / var(--tw-ring-opacity))}.focus\:ring-teal-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(126 220 226 / var(--tw-ring-opacity))}.focus\:ring-yellow-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(250 202 21 / var(--tw-ring-opacity))}.focus\:ring-yellow-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(227 160 8 / var(--tw-ring-opacity))}.focus\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.group:hover .group-hover\:bg-white\/50{background-color:#ffffff80}.group:hover .group-hover\:bg-opacity-0{--tw-bg-opacity: 0}.group:hover .group-hover\:from-cyan-500{--tw-gradient-from: #06b6d4 var(--tw-gradient-from-position);--tw-gradient-to: rgb(6 182 212 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:from-green-400{--tw-gradient-from: #31C48D var(--tw-gradient-from-position);--tw-gradient-to: rgb(49 196 141 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:from-pink-500{--tw-gradient-from: #E74694 var(--tw-gradient-from-position);--tw-gradient-to: rgb(231 70 148 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:from-purple-500{--tw-gradient-from: #9061F9 var(--tw-gradient-from-position);--tw-gradient-to: rgb(144 97 249 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:from-purple-600{--tw-gradient-from: #7E3AF2 var(--tw-gradient-from-position);--tw-gradient-to: rgb(126 58 242 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:from-red-200{--tw-gradient-from: #FBD5D5 var(--tw-gradient-from-position);--tw-gradient-to: rgb(251 213 213 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:from-teal-300{--tw-gradient-from: #7EDCE2 var(--tw-gradient-from-position);--tw-gradient-to: rgb(126 220 226 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:via-red-300{--tw-gradient-to: rgb(248 180 180 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #F8B4B4 var(--tw-gradient-via-position), var(--tw-gradient-to)}.group:hover .group-hover\:to-blue-500{--tw-gradient-to: #3F83F8 var(--tw-gradient-to-position)}.group:hover .group-hover\:to-blue-600{--tw-gradient-to: #1C64F2 var(--tw-gradient-to-position)}.group:hover .group-hover\:to-lime-300{--tw-gradient-to: #bef264 var(--tw-gradient-to-position)}.group:hover .group-hover\:to-orange-400{--tw-gradient-to: #FF8A4C var(--tw-gradient-to-position)}.group:hover .group-hover\:to-pink-500{--tw-gradient-to: #E74694 var(--tw-gradient-to-position)}.group:hover .group-hover\:to-yellow-200{--tw-gradient-to: #FCE96A var(--tw-gradient-to-position)}.group:hover .group-hover\:text-blue-600{--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity))}.group:hover .group-hover\:text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.group:focus .group-focus\:outline-none{outline:2px solid transparent;outline-offset:2px}.group:focus .group-focus\:ring-4{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.group:focus .group-focus\:ring-white{--tw-ring-opacity: 1;--tw-ring-color: rgb(255 255 255 / var(--tw-ring-opacity))}:is(.dark .dark\:divide-gray-700)>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(55 65 81 / var(--tw-divide-opacity))}:is(.dark .dark\:border-blue-500){--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity))}:is(.dark .dark\:border-gray-500){--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity))}:is(.dark .dark\:border-gray-600){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity))}:is(.dark .dark\:border-gray-700){--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity))}:is(.dark .dark\:border-gray-800){--tw-border-opacity: 1;border-color:rgb(31 41 55 / var(--tw-border-opacity))}:is(.dark .dark\:border-gray-900){--tw-border-opacity: 1;border-color:rgb(17 24 39 / var(--tw-border-opacity))}:is(.dark .dark\:border-green-500){--tw-border-opacity: 1;border-color:rgb(14 159 110 / var(--tw-border-opacity))}:is(.dark .dark\:border-pink-400){--tw-border-opacity: 1;border-color:rgb(241 126 184 / var(--tw-border-opacity))}:is(.dark .dark\:border-pink-500){--tw-border-opacity: 1;border-color:rgb(231 70 148 / var(--tw-border-opacity))}:is(.dark .dark\:border-purple-400){--tw-border-opacity: 1;border-color:rgb(172 148 250 / var(--tw-border-opacity))}:is(.dark .dark\:border-purple-500){--tw-border-opacity: 1;border-color:rgb(144 97 249 / var(--tw-border-opacity))}:is(.dark .dark\:border-red-500){--tw-border-opacity: 1;border-color:rgb(240 82 82 / var(--tw-border-opacity))}:is(.dark .dark\:border-transparent){border-color:transparent}:is(.dark .dark\:border-yellow-300){--tw-border-opacity: 1;border-color:rgb(250 202 21 / var(--tw-border-opacity))}:is(.dark .dark\:bg-blue-200){--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-blue-600){--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-blue-900){--tw-bg-opacity: 1;background-color:rgb(35 56 118 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-300){--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-400){--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-600){--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-700){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-800){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-800\/30){background-color:#1f29374d}:is(.dark .dark\:bg-gray-800\/50){background-color:#1f293780}:is(.dark .dark\:bg-gray-900){--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-green-200){--tw-bg-opacity: 1;background-color:rgb(188 240 218 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-green-500){--tw-bg-opacity: 1;background-color:rgb(14 159 110 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-green-600){--tw-bg-opacity: 1;background-color:rgb(5 122 85 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-green-800){--tw-bg-opacity: 1;background-color:rgb(3 84 63 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-indigo-200){--tw-bg-opacity: 1;background-color:rgb(205 219 254 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-indigo-500){--tw-bg-opacity: 1;background-color:rgb(104 117 245 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-orange-700){--tw-bg-opacity: 1;background-color:rgb(180 52 3 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-pink-200){--tw-bg-opacity: 1;background-color:rgb(250 209 232 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-pink-600){--tw-bg-opacity: 1;background-color:rgb(214 31 105 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-purple-200){--tw-bg-opacity: 1;background-color:rgb(220 215 254 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-purple-500){--tw-bg-opacity: 1;background-color:rgb(144 97 249 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-purple-600){--tw-bg-opacity: 1;background-color:rgb(126 58 242 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-red-200){--tw-bg-opacity: 1;background-color:rgb(251 213 213 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-red-500){--tw-bg-opacity: 1;background-color:rgb(240 82 82 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-red-600){--tw-bg-opacity: 1;background-color:rgb(224 36 36 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-red-800){--tw-bg-opacity: 1;background-color:rgb(155 28 28 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-red-900){--tw-bg-opacity: 1;background-color:rgb(119 29 29 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-yellow-200){--tw-bg-opacity: 1;background-color:rgb(252 233 106 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-opacity-80){--tw-bg-opacity: .8}:is(.dark .dark\:fill-gray-300){fill:#d1d5db}:is(.dark .dark\:text-blue-200){--tw-text-opacity: 1;color:rgb(195 221 253 / var(--tw-text-opacity))}:is(.dark .dark\:text-blue-300){--tw-text-opacity: 1;color:rgb(164 202 254 / var(--tw-text-opacity))}:is(.dark .dark\:text-blue-500){--tw-text-opacity: 1;color:rgb(63 131 248 / var(--tw-text-opacity))}:is(.dark .dark\:text-blue-800){--tw-text-opacity: 1;color:rgb(30 66 159 / var(--tw-text-opacity))}:is(.dark .dark\:text-gray-200){--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity))}:is(.dark .dark\:text-gray-300){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}:is(.dark .dark\:text-gray-400){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}:is(.dark .dark\:text-gray-500){--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}:is(.dark .dark\:text-gray-600){--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}:is(.dark .dark\:text-gray-800){--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}:is(.dark .dark\:text-green-200){--tw-text-opacity: 1;color:rgb(188 240 218 / var(--tw-text-opacity))}:is(.dark .dark\:text-green-500){--tw-text-opacity: 1;color:rgb(14 159 110 / var(--tw-text-opacity))}:is(.dark .dark\:text-green-800){--tw-text-opacity: 1;color:rgb(3 84 63 / var(--tw-text-opacity))}:is(.dark .dark\:text-green-900){--tw-text-opacity: 1;color:rgb(1 71 55 / var(--tw-text-opacity))}:is(.dark .dark\:text-indigo-500){--tw-text-opacity: 1;color:rgb(104 117 245 / var(--tw-text-opacity))}:is(.dark .dark\:text-indigo-900){--tw-text-opacity: 1;color:rgb(54 47 120 / var(--tw-text-opacity))}:is(.dark .dark\:text-orange-200){--tw-text-opacity: 1;color:rgb(252 217 189 / var(--tw-text-opacity))}:is(.dark .dark\:text-pink-400){--tw-text-opacity: 1;color:rgb(241 126 184 / var(--tw-text-opacity))}:is(.dark .dark\:text-pink-500){--tw-text-opacity: 1;color:rgb(231 70 148 / var(--tw-text-opacity))}:is(.dark .dark\:text-pink-900){--tw-text-opacity: 1;color:rgb(117 26 61 / var(--tw-text-opacity))}:is(.dark .dark\:text-purple-400){--tw-text-opacity: 1;color:rgb(172 148 250 / var(--tw-text-opacity))}:is(.dark .dark\:text-purple-500){--tw-text-opacity: 1;color:rgb(144 97 249 / var(--tw-text-opacity))}:is(.dark .dark\:text-purple-900){--tw-text-opacity: 1;color:rgb(74 29 150 / var(--tw-text-opacity))}:is(.dark .dark\:text-red-200){--tw-text-opacity: 1;color:rgb(251 213 213 / var(--tw-text-opacity))}:is(.dark .dark\:text-red-300){--tw-text-opacity: 1;color:rgb(248 180 180 / var(--tw-text-opacity))}:is(.dark .dark\:text-red-500){--tw-text-opacity: 1;color:rgb(240 82 82 / var(--tw-text-opacity))}:is(.dark .dark\:text-red-800){--tw-text-opacity: 1;color:rgb(155 28 28 / var(--tw-text-opacity))}:is(.dark .dark\:text-red-900){--tw-text-opacity: 1;color:rgb(119 29 29 / var(--tw-text-opacity))}:is(.dark .dark\:text-white){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}:is(.dark .dark\:text-yellow-300){--tw-text-opacity: 1;color:rgb(250 202 21 / var(--tw-text-opacity))}:is(.dark .dark\:text-yellow-500){--tw-text-opacity: 1;color:rgb(194 120 3 / var(--tw-text-opacity))}:is(.dark .dark\:text-yellow-800){--tw-text-opacity: 1;color:rgb(114 59 19 / var(--tw-text-opacity))}:is(.dark .dark\:text-yellow-900){--tw-text-opacity: 1;color:rgb(99 49 18 / var(--tw-text-opacity))}:is(.dark .dark\:placeholder-gray-400)::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity))}:is(.dark .dark\:placeholder-gray-400)::placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity))}:is(.dark .dark\:shadow-lg){--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}:is(.dark .dark\:shadow-blue-800\/80){--tw-shadow-color: rgb(30 66 159 / .8);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:shadow-cyan-800\/80){--tw-shadow-color: rgb(21 94 117 / .8);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:shadow-green-800\/80){--tw-shadow-color: rgb(3 84 63 / .8);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:shadow-lime-800\/80){--tw-shadow-color: rgb(63 98 18 / .8);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:shadow-pink-800\/80){--tw-shadow-color: rgb(153 21 75 / .8);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:shadow-purple-800\/80){--tw-shadow-color: rgb(85 33 181 / .8);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:shadow-red-800\/80){--tw-shadow-color: rgb(155 28 28 / .8);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:shadow-teal-800\/80){--tw-shadow-color: rgb(5 80 92 / .8);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:ring-gray-500){--tw-ring-opacity: 1;--tw-ring-color: rgb(107 114 128 / var(--tw-ring-opacity))}:is(.dark .dark\:hover\:border-gray-600:hover){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity))}:is(.dark .dark\:hover\:bg-blue-300:hover){--tw-bg-opacity: 1;background-color:rgb(164 202 254 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-blue-500:hover){--tw-bg-opacity: 1;background-color:rgb(63 131 248 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-blue-600:hover){--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-blue-700:hover){--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-gray-600:hover){--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-gray-700:hover){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-gray-800:hover){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-green-300:hover){--tw-bg-opacity: 1;background-color:rgb(132 225 188 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-green-600:hover){--tw-bg-opacity: 1;background-color:rgb(5 122 85 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-green-700:hover){--tw-bg-opacity: 1;background-color:rgb(4 108 78 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-pink-500:hover){--tw-bg-opacity: 1;background-color:rgb(231 70 148 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-pink-700:hover){--tw-bg-opacity: 1;background-color:rgb(191 18 93 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-purple-500:hover){--tw-bg-opacity: 1;background-color:rgb(144 97 249 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-purple-700:hover){--tw-bg-opacity: 1;background-color:rgb(108 43 217 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-red-300:hover){--tw-bg-opacity: 1;background-color:rgb(248 180 180 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-red-600:hover){--tw-bg-opacity: 1;background-color:rgb(224 36 36 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-red-700:hover){--tw-bg-opacity: 1;background-color:rgb(200 30 30 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-yellow-300:hover){--tw-bg-opacity: 1;background-color:rgb(250 202 21 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-yellow-400:hover){--tw-bg-opacity: 1;background-color:rgb(227 160 8 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:text-blue-500:hover){--tw-text-opacity: 1;color:rgb(63 131 248 / var(--tw-text-opacity))}:is(.dark .dark\:hover\:text-gray-300:hover){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}:is(.dark .dark\:hover\:text-gray-900:hover){--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}:is(.dark .dark\:hover\:text-white:hover){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}:is(.dark .dark\:focus\:border-blue-500:focus){--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity))}:is(.dark .dark\:focus\:text-white:focus){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}:is(.dark .dark\:focus\:ring-\[\#2557D6\]\/50:focus){--tw-ring-color: rgb(37 87 214 / .5)}:is(.dark .dark\:focus\:ring-blue-500:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(63 131 248 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-blue-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(30 66 159 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-cyan-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(21 94 117 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-gray-400:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(156 163 175 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-gray-500:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(107 114 128 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-gray-600:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(75 85 99 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-gray-700:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(55 65 81 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-gray-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(31 41 55 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-green-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(3 84 63 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-lime-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(63 98 18 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-pink-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(153 21 75 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-pink-900:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(117 26 61 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-purple-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(85 33 181 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-purple-900:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(74 29 150 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-red-400:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(249 128 128 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-red-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(155 28 28 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-red-900:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(119 29 29 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-teal-700:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(3 102 114 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-teal-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(5 80 92 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-yellow-900:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(99 49 18 / var(--tw-ring-opacity))}:is(.dark .group:hover .dark\:group-hover\:bg-gray-800\/60){background-color:#1f293799}:is(.dark .group:hover .dark\:group-hover\:text-blue-500){--tw-text-opacity: 1;color:rgb(63 131 248 / var(--tw-text-opacity))}:is(.dark .group:hover .dark\:group-hover\:text-white){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}:is(.dark .group:focus .dark\:group-focus\:ring-gray-800\/70){--tw-ring-color: rgb(31 41 55 / .7)}@media (min-width: 640px){.sm\:mx-auto{margin-left:auto;margin-right:auto}.sm\:mt-0{margin-top:0}.sm\:h-10{height:2.5rem}.sm\:h-6{height:1.5rem}.sm\:h-64{height:16rem}.sm\:w-1\/4{width:25%}.sm\:w-10{width:2.5rem}.sm\:w-6{width:1.5rem}.sm\:w-full{width:100%}.sm\:max-w-md{max-width:28rem}.sm\:rounded-lg{border-radius:.5rem}.sm\:p-8{padding:2rem}.sm\:px-10{padding-left:2.5rem;padding-right:2.5rem}.sm\:px-4{padding-left:1rem;padding-right:1rem}.sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\:py-4{padding-top:1rem;padding-bottom:1rem}.sm\:text-center{text-align:center}.sm\:text-sm{font-size:.875rem;line-height:1.25rem}}@media (min-width: 768px){.md\:inset-0{inset:0}.md\:order-2{order:2}.md\:col-span-1{grid-column:span 1 / span 1}.md\:ml-10{margin-left:2.5rem}.md\:ml-2{margin-left:.5rem}.md\:ml-96{margin-left:24rem}.md\:mr-0{margin-right:0}.md\:mr-6{margin-right:1.5rem}.md\:mt-0{margin-top:0}.md\:block{display:block}.md\:flex{display:flex}.md\:hidden{display:none}.md\:h-auto{height:auto}.md\:h-full{height:100%}.md\:w-1\/3{width:33.333333%}.md\:w-1\/4{width:25%}.md\:w-2\/3{width:66.666667%}.md\:w-3\/5{width:60%}.md\:w-48{width:12rem}.md\:w-auto{width:auto}.md\:w-full{width:100%}.md\:max-w-md{max-width:28rem}.md\:max-w-xl{max-width:36rem}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:items-center{align-items:center}.md\:justify-between{justify-content:space-between}.md\:space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.md\:space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(2rem * var(--tw-space-x-reverse));margin-left:calc(2rem * calc(1 - var(--tw-space-x-reverse)))}.md\:rounded-none{border-radius:0}.md\:rounded-l-lg{border-top-left-radius:.5rem;border-bottom-left-radius:.5rem}.md\:border-0{border-width:0px}.md\:bg-transparent{background-color:transparent}.md\:p-0{padding:0}.md\:p-6{padding:1.5rem}.md\:text-sm{font-size:.875rem;line-height:1.25rem}.md\:font-medium{font-weight:500}.md\:text-blue-700{--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}.md\:hover\:bg-transparent:hover{background-color:transparent}.md\:hover\:text-blue-700:hover{--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}:is(.dark .md\:dark\:bg-gray-900){--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}:is(.dark .md\:dark\:hover\:bg-transparent:hover){background-color:transparent}:is(.dark .md\:dark\:hover\:text-white:hover){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}}@media (min-width: 1024px){.lg\:right-auto{right:auto}.lg\:mb-16{margin-bottom:4rem}.lg\:h-11{height:2.75rem}.lg\:w-11{width:2.75rem}.lg\:w-2\/5{width:40%}.lg\:w-44{width:11rem}.lg\:w-96{width:24rem}.lg\:w-full{width:100%}.lg\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.lg\:px-8{padding-left:2rem;padding-right:2rem}}@media (min-width: 1280px){.xl\:h-80{height:20rem}.xl\:w-1\/6{width:16.666667%}}@media (min-width: 1536px){.\32xl\:h-96{height:24rem}}.switch-wrapper[data-v-80551b1d]{display:inline-flex;position:relative;padding:4px;border:1px solid lightgray;margin-bottom:15px;border-radius:.5rem;background:white}.switch-wrapper [type=radio][data-v-80551b1d]{position:absolute;left:-9999px}.switch-wrapper [type=radio]:checked#Table~label[for=Table][data-v-80551b1d],.switch-wrapper [type=radio]:checked#take_away~label[for=take_away][data-v-80551b1d]{color:#fff}.switch-wrapper [type=radio]:checked#Table~label[for=Table][data-v-80551b1d]:hover,.switch-wrapper [type=radio]:checked#take_away~label[for=take_away][data-v-80551b1d]:hover{background:transparent}.switch-wrapper [type=radio]:checked#Table+label[for=take_away]~.highlighter[data-v-80551b1d]{transform:none}.switch-wrapper [type=radio]:checked#take_away+label[for=Table]~.highlighter[data-v-80551b1d]{transform:translate(100%)}.switch-wrapper label[data-v-80551b1d]{font-size:16px;z-index:1;min-width:100px;line-height:32px;cursor:pointer;border-radius:30px;transition:color .25s ease-in-out}.switch-wrapper label[data-v-80551b1d]:hover{background:whitesmoke}.switch-wrapper .highlighter[data-v-80551b1d]{position:absolute;top:4px;left:4px;width:calc(50% - 4px);height:calc(100% - 8px);border-radius:.2rem;background:#1b5ed9;transition:transform .25s ease-in-out}.bg-gray-100{background-color:#0003}.mx-icon-left:before,.mx-icon-right:before,.mx-icon-double-left:before,.mx-icon-double-right:before,.mx-icon-double-left:after,.mx-icon-double-right:after{content:"";position:relative;top:-1px;display:inline-block;width:10px;height:10px;vertical-align:middle;border-style:solid;border-color:currentColor;border-width:2px 0 0 2px;border-radius:1px;box-sizing:border-box;transform-origin:center;transform:rotate(-45deg) scale(.7)}.mx-icon-double-left:after{left:-4px}.mx-icon-double-right:before{left:4px}.mx-icon-right:before,.mx-icon-double-right:before,.mx-icon-double-right:after{transform:rotate(135deg) scale(.7)}.mx-btn{box-sizing:border-box;line-height:1;font-size:14px;font-weight:500;padding:7px 15px;margin:0;cursor:pointer;background-color:transparent;outline:none;border:1px solid rgba(0,0,0,.1);border-radius:4px;color:#73879c;white-space:nowrap}.mx-btn:hover{border-color:#1284e7;color:#1284e7}.mx-btn-text{border:0;padding:0 4px;text-align:left;line-height:inherit}.mx-scrollbar{height:100%}.mx-scrollbar:hover .mx-scrollbar-track{opacity:1}.mx-scrollbar-wrap{height:100%;overflow-x:hidden;overflow-y:auto}.mx-scrollbar-track{position:absolute;top:2px;right:2px;bottom:2px;width:6px;z-index:1;border-radius:4px;opacity:0;transition:opacity .24s ease-out}.mx-scrollbar-track .mx-scrollbar-thumb{position:absolute;width:100%;height:0;cursor:pointer;border-radius:inherit;background-color:#9093994d;transition:background-color .3s}.mx-zoom-in-down-enter-active,.mx-zoom-in-down-leave-active{opacity:1;transform:scaleY(1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1);transform-origin:center top}.mx-zoom-in-down-enter,.mx-zoom-in-down-enter-from,.mx-zoom-in-down-leave-to{opacity:0;transform:scaleY(0)}.mx-datepicker{position:relative;display:inline-block;width:210px}.mx-datepicker svg{width:1em;height:1em;vertical-align:-.15em;fill:currentColor;overflow:hidden}.mx-datepicker-range{width:320px}.mx-datepicker-inline{width:auto}.mx-input-wrapper{position:relative}.mx-input-wrapper .mx-icon-clear{display:none}.mx-input-wrapper:hover .mx-icon-clear{display:block}.mx-input-wrapper:hover .mx-icon-clear+.mx-icon-calendar{display:none}.mx-input{display:inline-block;box-sizing:border-box;width:100%;height:34px;padding:6px 30px 6px 10px;font-size:14px;line-height:1.4;color:#555;background-color:#fff;border:1px solid #ccc;border-radius:4px;box-shadow:inset 0 1px 1px #00000013}.mx-input:hover,.mx-input:focus{border-color:#409aff}.mx-input:disabled,.mx-input.disabled{color:#ccc;background-color:#f3f3f3;border-color:#ccc;cursor:not-allowed}.mx-input:focus{outline:none}.mx-input::-ms-clear{display:none}.mx-icon-calendar,.mx-icon-clear{position:absolute;top:50%;right:8px;transform:translateY(-50%);font-size:16px;line-height:1;color:#00000080;vertical-align:middle}.mx-icon-clear{cursor:pointer}.mx-icon-clear:hover{color:#000c}.mx-datepicker-main{font:14px/1.5 Helvetica Neue,Helvetica,Arial,Microsoft Yahei,sans-serif;color:#73879c;background-color:#fff;border:1px solid #e8e8e8}.mx-datepicker-popup{position:absolute;margin-top:1px;margin-bottom:1px;box-shadow:0 6px 12px #0000002d;z-index:2001}.mx-datepicker-sidebar{float:left;box-sizing:border-box;width:100px;padding:6px;overflow:auto}.mx-datepicker-sidebar+.mx-datepicker-content{margin-left:100px;border-left:1px solid #e8e8e8}.mx-datepicker-body{position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none}.mx-btn-shortcut{display:block;padding:0 6px;line-height:24px}.mx-datepicker-header{padding:6px 8px;border-bottom:1px solid #e8e8e8}.mx-datepicker-footer{padding:6px 8px;text-align:right;border-top:1px solid #e8e8e8}.mx-calendar-range,.mx-time-range{display:flex}@media (max-width: 750px){.mx-calendar-range,.mx-time-range{flex-direction:column}}.mx-calendar{box-sizing:border-box;width:248px;padding:6px 12px}.mx-calendar+.mx-calendar{border-left:1px solid #e8e8e8}.mx-calendar-header,.mx-time-header{box-sizing:border-box;height:34px;line-height:34px;text-align:center;overflow:hidden}.mx-btn-icon-left,.mx-btn-icon-double-left{float:left}.mx-btn-icon-right,.mx-btn-icon-double-right{float:right}.mx-calendar-header-label{font-size:14px}.mx-calendar-decade-separator{margin:0 2px}.mx-calendar-decade-separator:after{content:"~"}.mx-calendar-content{position:relative;height:224px;box-sizing:border-box}.mx-calendar-content .cell{cursor:pointer}.mx-calendar-content .cell:hover{color:#73879c;background-color:#f3f9fe}.mx-calendar-content .cell.active{color:#fff;background-color:#1284e7}.mx-calendar-content .cell.in-range,.mx-calendar-content .cell.hover-in-range{color:#73879c;background-color:#dbedfb}.mx-calendar-content .cell.disabled{cursor:not-allowed;color:#ccc;background-color:#f3f3f3}.mx-calendar-week-mode .mx-date-row{cursor:pointer}.mx-calendar-week-mode .mx-date-row:hover{background-color:#f3f9fe}.mx-calendar-week-mode .mx-date-row.mx-active-week{background-color:#dbedfb}.mx-calendar-week-mode .mx-date-row .cell:hover,.mx-calendar-week-mode .mx-date-row .cell.active{color:inherit;background-color:transparent}.mx-week-number{opacity:.5}.mx-table{table-layout:fixed;border-collapse:separate;border-spacing:0;width:100%;height:100%;box-sizing:border-box;text-align:center}.mx-table th{padding:0;font-weight:500;vertical-align:middle}.mx-table td{padding:0;vertical-align:middle}.mx-table-date td,.mx-table-date th{height:32px;font-size:12px}.mx-table-date .today{color:#2a90e9}.mx-table-date .cell.not-current-month{color:#ccc;background:none}.mx-time{flex:1;width:224px;background:#fff}.mx-time+.mx-time{border-left:1px solid #e8e8e8}.mx-date-time{position:relative;width:248px;height:270px}.mx-date-time .mx-time{position:absolute;top:0;left:0;width:100%;height:100%}.mx-date-time-range{position:relative;width:496px;height:270px}.mx-date-time-range .mx-time-range{position:absolute;top:0;left:0;width:100%;height:100%}.mx-time-header{border-bottom:1px solid #e8e8e8}.mx-time-content{height:224px;box-sizing:border-box;overflow:hidden}.mx-time-columns{display:flex;width:100%;height:100%;overflow:hidden}.mx-time-column{flex:1;position:relative;border-left:1px solid #e8e8e8;text-align:center}.mx-time-column:first-child{border-left:0}.mx-time-column .mx-time-list{margin:0;padding:0;list-style:none}.mx-time-column .mx-time-list:after{content:"";display:block;height:192px}.mx-time-column .mx-time-item{cursor:pointer;font-size:12px;height:32px;line-height:32px}.mx-time-column .mx-time-item:hover{color:#73879c;background-color:#f3f9fe}.mx-time-column .mx-time-item.active{color:#1284e7;background-color:transparent;font-weight:700}.mx-time-column .mx-time-item.disabled{cursor:not-allowed;color:#ccc;background-color:#f3f3f3}.mx-time-option{cursor:pointer;padding:8px 10px;font-size:14px;line-height:20px}.mx-time-option:hover{color:#73879c;background-color:#f3f9fe}.mx-time-option.active{color:#1284e7;background-color:transparent;font-weight:700}.mx-time-option.disabled{cursor:not-allowed;color:#ccc;background-color:#f3f3f3}.my-custom-date-picker,.my-custom-time-picker{width:100%;color:#000} diff --git a/ury_pos/public/urypos/assets/index-70dee3f7.js b/ury_pos/public/urypos/assets/index-70dee3f7.js new file mode 100644 index 0000000..7c70bb2 --- /dev/null +++ b/ury_pos/public/urypos/assets/index-70dee3f7.js @@ -0,0 +1,156 @@ +var Ev=Object.defineProperty,Cv=Object.defineProperties;var kv=Object.getOwnPropertyDescriptors;var ka=Object.getOwnPropertySymbols;var lf=Object.prototype.hasOwnProperty,cf=Object.prototype.propertyIsEnumerable;var uf=(e,t,r)=>t in e?Ev(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,wt=(e,t)=>{for(var r in t||(t={}))lf.call(t,r)&&uf(e,r,t[r]);if(ka)for(var r of ka(t))cf.call(t,r)&&uf(e,r,t[r]);return e},gr=(e,t)=>Cv(e,kv(t));var Os=(e,t)=>{var r={};for(var n in e)lf.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ka)for(var n of ka(e))t.indexOf(n)<0&&cf.call(e,n)&&(r[n]=e[n]);return r};var Ee=(e,t,r)=>new Promise((n,s)=>{var i=u=>{try{o(r.next(u))}catch(l){s(l)}},a=u=>{try{o(r.throw(u))}catch(l){s(l)}},o=u=>u.done?n(u.value):Promise.resolve(u.value).then(i,a);o((r=r.apply(e,t)).next())});(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))n(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function r(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(s){if(s.ep)return;s.ep=!0;const i=r(s);fetch(s.href,i)}})();/** +* @vue/shared v3.4.15 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function bc(e,t){const r=new Set(e.split(","));return t?n=>r.has(n.toLowerCase()):n=>r.has(n)}const Qe={},qs=[],Gt=()=>{},Av=()=>!1,Ro=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),wc=e=>e.startsWith("onUpdate:"),yt=Object.assign,xc=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},Pv=Object.prototype.hasOwnProperty,He=(e,t)=>Pv.call(e,t),ge=Array.isArray,Ks=e=>oa(e)==="[object Map]",ci=e=>oa(e)==="[object Set]",hf=e=>oa(e)==="[object Date]",ke=e=>typeof e=="function",ut=e=>typeof e=="string",$n=e=>typeof e=="symbol",We=e=>e!==null&&typeof e=="object",a0=e=>(We(e)||ke(e))&&ke(e.then)&&ke(e.catch),o0=Object.prototype.toString,oa=e=>o0.call(e),Tv=e=>oa(e).slice(8,-1),u0=e=>oa(e)==="[object Object]",Sc=e=>ut(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ya=bc(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Io=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},Dv=/-(\w)/g,Mr=Io(e=>e.replace(Dv,(t,r)=>r?r.toUpperCase():"")),Fv=/\B([A-Z])/g,ws=Io(e=>e.replace(Fv,"-$1").toLowerCase()),No=Io(e=>e.charAt(0).toUpperCase()+e.slice(1)),Mu=Io(e=>e?`on${No(e)}`:""),Hn=(e,t)=>!Object.is(e,t),za=(e,t)=>{for(let r=0;r{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:r})},Vi=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Ov=e=>{const t=ut(e)?Number(e):NaN;return isNaN(t)?e:t};let ff;const l0=()=>ff||(ff=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});function Fn(e){if(ge(e)){const t={};for(let r=0;r{if(r){const n=r.split(Iv);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Ce(e){let t="";if(ut(e))t=e;else if(ge(e))for(let r=0;rjn(r,t))}const ye=e=>ut(e)?e:e==null?"":ge(e)||We(e)&&(e.toString===o0||!ke(e.toString))?JSON.stringify(e,h0,2):String(e),h0=(e,t)=>t&&t.__v_isRef?h0(e,t.value):Ks(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[n,s],i)=>(r[Bu(n,i)+" =>"]=s,r),{})}:ci(t)?{[`Set(${t.size})`]:[...t.values()].map(r=>Bu(r))}:$n(t)?Bu(t):We(t)&&!ge(t)&&!u0(t)?String(t):t,Bu=(e,t="")=>{var r;return $n(e)?`Symbol(${(r=e.description)!=null?r:t})`:e};/** +* @vue/reactivity v3.4.15 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let Kt;class f0{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Kt,!t&&Kt&&(this.index=(Kt.scopes||(Kt.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const r=Kt;try{return Kt=this,t()}finally{Kt=r}}}on(){Kt=this}off(){Kt=this.parent}stop(t){if(this._active){let r,n;for(r=0,n=this.effects.length;r=2))break}this._dirtyLevel<2&&(this._dirtyLevel=0),Ss()}return this._dirtyLevel>=2}set dirty(t){this._dirtyLevel=t?2:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=On,r=ps;try{return On=!0,ps=this,this._runnings++,df(this),this.fn()}finally{pf(this),this._runnings--,ps=r,On=t}}stop(){var t;this.active&&(df(this),pf(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function Uv(e){return e.value}function df(e){e._trackId++,e._depsLength=0}function pf(e){if(e.deps&&e.deps.length>e._depsLength){for(let t=e._depsLength;t{const r=new Map;return r.cleanup=e,r.computed=t,r},ao=new WeakMap,gs=Symbol(""),Dl=Symbol("");function Ht(e,t,r){if(On&&ps){let n=ao.get(e);n||ao.set(e,n=new Map);let s=n.get(r);s||n.set(r,s=w0(()=>n.delete(r))),v0(ps,s)}}function Jr(e,t,r,n,s,i){const a=ao.get(e);if(!a)return;let o=[];if(t==="clear")o=[...a.values()];else if(r==="length"&&ge(e)){const u=Number(n);a.forEach((l,c)=>{(c==="length"||!$n(c)&&c>=u)&&o.push(l)})}else switch(r!==void 0&&o.push(a.get(r)),t){case"add":ge(e)?Sc(r)&&o.push(a.get("length")):(o.push(a.get(gs)),Ks(e)&&o.push(a.get(Dl)));break;case"delete":ge(e)||(o.push(a.get(gs)),Ks(e)&&o.push(a.get(Dl)));break;case"set":Ks(e)&&o.push(a.get(gs));break}Cc();for(const u of o)u&&y0(u,2);kc()}function qv(e,t){var r;return(r=ao.get(e))==null?void 0:r.get(t)}const Kv=bc("__proto__,__v_isRef,__isVue"),x0=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter($n)),gf=Yv();function Yv(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...r){const n=Ne(this);for(let i=0,a=this.length;i{e[t]=function(...r){xs(),Cc();const n=Ne(this)[t].apply(this,r);return kc(),Ss(),n}}),e}function zv(e){const t=Ne(this);return Ht(t,"has",e),t.hasOwnProperty(e)}class S0{constructor(t=!1,r=!1){this._isReadonly=t,this._shallow=r}get(t,r,n){const s=this._isReadonly,i=this._shallow;if(r==="__v_isReactive")return!s;if(r==="__v_isReadonly")return s;if(r==="__v_isShallow")return i;if(r==="__v_raw")return n===(s?i?ay:k0:i?C0:E0).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const a=ge(t);if(!s){if(a&&He(gf,r))return Reflect.get(gf,r,n);if(r==="hasOwnProperty")return zv}const o=Reflect.get(t,r,n);return($n(r)?x0.has(r):Kv(r))||(s||Ht(t,"get",r),i)?o:gt(o)?a&&Sc(r)?o:o.value:We(o)?s?P0(o):Br(o):o}}class _0 extends S0{constructor(t=!1){super(!1,t)}set(t,r,n,s){let i=t[r];if(!this._shallow){const u=Qs(i);if(!oo(n)&&!Qs(n)&&(i=Ne(i),n=Ne(n)),!ge(t)&>(i)&&!gt(n))return u?!1:(i.value=n,!0)}const a=ge(t)&&Sc(r)?Number(r)e,Mo=e=>Reflect.getPrototypeOf(e);function Aa(e,t,r=!1,n=!1){e=e.__v_raw;const s=Ne(e),i=Ne(t);r||(Hn(t,i)&&Ht(s,"get",t),Ht(s,"get",i));const{has:a}=Mo(s),o=n?Ac:r?Dc:Ui;if(a.call(s,t))return o(e.get(t));if(a.call(s,i))return o(e.get(i));e!==s&&e.get(t)}function Pa(e,t=!1){const r=this.__v_raw,n=Ne(r),s=Ne(e);return t||(Hn(e,s)&&Ht(n,"has",e),Ht(n,"has",s)),e===s?r.has(e):r.has(e)||r.has(s)}function Ta(e,t=!1){return e=e.__v_raw,!t&&Ht(Ne(e),"iterate",gs),Reflect.get(e,"size",e)}function mf(e){e=Ne(e);const t=Ne(this);return Mo(t).has.call(t,e)||(t.add(e),Jr(t,"add",e,e)),this}function vf(e,t){t=Ne(t);const r=Ne(this),{has:n,get:s}=Mo(r);let i=n.call(r,e);i||(e=Ne(e),i=n.call(r,e));const a=s.call(r,e);return r.set(e,t),i?Hn(t,a)&&Jr(r,"set",e,t):Jr(r,"add",e,t),this}function yf(e){const t=Ne(this),{has:r,get:n}=Mo(t);let s=r.call(t,e);s||(e=Ne(e),s=r.call(t,e)),n&&n.call(t,e);const i=t.delete(e);return s&&Jr(t,"delete",e,void 0),i}function bf(){const e=Ne(this),t=e.size!==0,r=e.clear();return t&&Jr(e,"clear",void 0,void 0),r}function Da(e,t){return function(n,s){const i=this,a=i.__v_raw,o=Ne(a),u=t?Ac:e?Dc:Ui;return!e&&Ht(o,"iterate",gs),a.forEach((l,c)=>n.call(s,u(l),u(c),i))}}function Fa(e,t,r){return function(...n){const s=this.__v_raw,i=Ne(s),a=Ks(i),o=e==="entries"||e===Symbol.iterator&&a,u=e==="keys"&&a,l=s[e](...n),c=r?Ac:t?Dc:Ui;return!t&&Ht(i,"iterate",u?Dl:gs),{next(){const{value:f,done:h}=l.next();return h?{value:f,done:h}:{value:o?[c(f[0]),c(f[1])]:c(f),done:h}},[Symbol.iterator](){return this}}}}function dn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Zv(){const e={get(i){return Aa(this,i)},get size(){return Ta(this)},has:Pa,add:mf,set:vf,delete:yf,clear:bf,forEach:Da(!1,!1)},t={get(i){return Aa(this,i,!1,!0)},get size(){return Ta(this)},has:Pa,add:mf,set:vf,delete:yf,clear:bf,forEach:Da(!1,!0)},r={get(i){return Aa(this,i,!0)},get size(){return Ta(this,!0)},has(i){return Pa.call(this,i,!0)},add:dn("add"),set:dn("set"),delete:dn("delete"),clear:dn("clear"),forEach:Da(!0,!1)},n={get(i){return Aa(this,i,!0,!0)},get size(){return Ta(this,!0)},has(i){return Pa.call(this,i,!0)},add:dn("add"),set:dn("set"),delete:dn("delete"),clear:dn("clear"),forEach:Da(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Fa(i,!1,!1),r[i]=Fa(i,!0,!1),t[i]=Fa(i,!1,!0),n[i]=Fa(i,!0,!0)}),[e,r,t,n]}const[Qv,ey,ty,ry]=Zv();function Pc(e,t){const r=t?e?ry:ty:e?ey:Qv;return(n,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?n:Reflect.get(He(r,s)&&s in n?r:n,s,i)}const ny={get:Pc(!1,!1)},sy={get:Pc(!1,!0)},iy={get:Pc(!0,!1)},E0=new WeakMap,C0=new WeakMap,k0=new WeakMap,ay=new WeakMap;function oy(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function uy(e){return e.__v_skip||!Object.isExtensible(e)?0:oy(Tv(e))}function Br(e){return Qs(e)?e:Tc(e,!1,Gv,ny,E0)}function A0(e){return Tc(e,!1,Xv,sy,C0)}function P0(e){return Tc(e,!0,Jv,iy,k0)}function Tc(e,t,r,n,s){if(!We(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=s.get(e);if(i)return i;const a=uy(e);if(a===0)return e;const o=new Proxy(e,a===2?n:r);return s.set(e,o),o}function Rn(e){return Qs(e)?Rn(e.__v_raw):!!(e&&e.__v_isReactive)}function Qs(e){return!!(e&&e.__v_isReadonly)}function oo(e){return!!(e&&e.__v_isShallow)}function T0(e){return Rn(e)||Qs(e)}function Ne(e){const t=e&&e.__v_raw;return t?Ne(t):e}function Bo(e){return io(e,"__v_skip",!0),e}const Ui=e=>We(e)?Br(e):e,Dc=e=>We(e)?P0(e):e;class D0{constructor(t,r,n,s){this._setter=r,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Ec(()=>t(this._value),()=>Wa(this,1),()=>this.dep&&b0(this.dep)),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=n}get value(){const t=Ne(this);return(!t._cacheable||t.effect.dirty)&&Hn(t._value,t._value=t.effect.run())&&Wa(t,2),F0(t),t.effect._dirtyLevel>=1&&Wa(t,1),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function ly(e,t,r=!1){let n,s;const i=ke(e);return i?(n=e,s=Gt):(n=e.get,s=e.set),new D0(n,s,i||!s,r)}function F0(e){On&&ps&&(e=Ne(e),v0(ps,e.dep||(e.dep=w0(()=>e.dep=void 0,e instanceof D0?e:void 0))))}function Wa(e,t=2,r){e=Ne(e);const n=e.dep;n&&y0(n,t)}function gt(e){return!!(e&&e.__v_isRef===!0)}function tt(e){return R0(e,!1)}function O0(e){return R0(e,!0)}function R0(e,t){return gt(e)?e:new cy(e,t)}class cy{constructor(t,r){this.__v_isShallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?t:Ne(t),this._value=r?t:Ui(t)}get value(){return F0(this),this._value}set value(t){const r=this.__v_isShallow||oo(t)||Qs(t);t=r?t:Ne(t),Hn(t,this._rawValue)&&(this._rawValue=t,this._value=r?t:Ui(t),Wa(this,2))}}function In(e){return gt(e)?e.value:e}const hy={get:(e,t,r)=>In(Reflect.get(e,t,r)),set:(e,t,r,n)=>{const s=e[t];return gt(s)&&!gt(r)?(s.value=r,!0):Reflect.set(e,t,r,n)}};function I0(e){return Rn(e)?e:new Proxy(e,hy)}function N0(e){const t=ge(e)?new Array(e.length):{};for(const r in e)t[r]=M0(e,r);return t}class fy{constructor(t,r,n){this._object=t,this._key=r,this._defaultValue=n,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return qv(Ne(this._object),this._key)}}class dy{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function py(e,t,r){return gt(e)?e:ke(e)?new dy(e):We(e)&&arguments.length>1?M0(e,t,r):tt(e)}function M0(e,t,r){const n=e[t];return gt(n)?n:new fy(e,t,r)}/** +* @vue/runtime-core v3.4.15 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function Nn(e,t,r,n){let s;try{s=n?e(...n):e()}catch(i){$o(i,t,r)}return s}function sr(e,t,r,n){if(ke(e)){const i=Nn(e,t,r,n);return i&&a0(i)&&i.catch(a=>{$o(a,t,r)}),i}const s=[];for(let i=0;i>>1,s=Tt[n],i=Ki(s);iOr&&Tt.splice(t,1)}function yy(e){ge(e)?Ys.push(...e):(!xn||!xn.includes(e,e.allowRecurse?us+1:us))&&Ys.push(e),$0()}function wf(e,t,r=qi?Or+1:0){for(;rKi(r)-Ki(n));if(Ys.length=0,xn){xn.push(...t);return}for(xn=t,us=0;use.id==null?1/0:e.id,by=(e,t)=>{const r=Ki(e)-Ki(t);if(r===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return r};function j0(e){Fl=!1,qi=!0,Tt.sort(by);const t=Gt;try{for(Or=0;Orut(p)?p.trim():p)),f&&(s=r.map(Vi))}let o,u=n[o=Mu(t)]||n[o=Mu(Mr(t))];!u&&i&&(u=n[o=Mu(ws(t))]),u&&sr(u,e,6,s);const l=n[o+"Once"];if(l){if(!e.emitted)e.emitted={};else if(e.emitted[o])return;e.emitted[o]=!0,sr(l,e,6,s)}}function L0(e,t,r=!1){const n=t.emitsCache,s=n.get(e);if(s!==void 0)return s;const i=e.emits;let a={},o=!1;if(!ke(e)){const u=l=>{const c=L0(l,t,!0);c&&(o=!0,yt(a,c))};!r&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!i&&!o?(We(e)&&n.set(e,null),null):(ge(i)?i.forEach(u=>a[u]=null):yt(a,i),We(e)&&n.set(e,a),a)}function Ho(e,t){return!e||!Ro(t)?!1:(t=t.slice(2).replace(/Once$/,""),He(e,t[0].toLowerCase()+t.slice(1))||He(e,ws(t))||He(e,t))}let ft=null,jo=null;function uo(e){const t=ft;return ft=e,jo=e&&e.type.__scopeId||null,t}function V0(e){jo=e}function U0(){jo=null}const xy=e=>Wt;function Wt(e,t=ft,r){if(!t||e._n)return e;const n=(...s)=>{n._d&&If(-1);const i=uo(t);let a;try{a=e(...s)}finally{uo(i),n._d&&If(1)}return a};return n._n=!0,n._c=!0,n._d=!0,n}function $u(e){const{type:t,vnode:r,proxy:n,withProxy:s,props:i,propsOptions:[a],slots:o,attrs:u,emit:l,render:c,renderCache:f,data:h,setupState:p,ctx:d,inheritAttrs:g}=e;let m,y;const w=uo(e);try{if(r.shapeFlag&4){const k=s||n,P=k;m=Fr(c.call(P,k,f,i,p,h,d)),y=u}else{const k=t;m=Fr(k.length>1?k(i,{attrs:u,slots:o,emit:l}):k(i,null)),y=t.props?u:Sy(u)}}catch(k){Ri.length=0,$o(k,e,1),m=q(ar)}let C=m;if(y&&g!==!1){const k=Object.keys(y),{shapeFlag:P}=C;k.length&&P&7&&(a&&k.some(wc)&&(y=_y(y,a)),C=Ln(C,y))}return r.dirs&&(C=Ln(C),C.dirs=C.dirs?C.dirs.concat(r.dirs):r.dirs),r.transition&&(C.transition=r.transition),m=C,uo(w),m}const Sy=e=>{let t;for(const r in e)(r==="class"||r==="style"||Ro(r))&&((t||(t={}))[r]=e[r]);return t},_y=(e,t)=>{const r={};for(const n in e)(!wc(n)||!(n.slice(9)in t))&&(r[n]=e[n]);return r};function Ey(e,t,r){const{props:n,children:s,component:i}=e,{props:a,children:o,patchFlag:u}=t,l=i.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&u>=0){if(u&1024)return!0;if(u&16)return n?xf(n,a,l):!!a;if(u&8){const c=t.dynamicProps;for(let f=0;fe.__isSuspense;function Py(e,t){t&&t.pendingBranch?ge(e)?t.effects.push(...e):t.effects.push(e):yy(e)}const Ty=Symbol.for("v-scx"),Dy=()=>Jt(Ty);function ir(e,t){return Ic(e,null,t)}const Oa={};function zs(e,t,r){return Ic(e,t,r)}function Ic(e,t,{immediate:r,deep:n,flush:s,once:i,onTrack:a,onTrigger:o}=Qe){if(t&&i){const b=t;t=(..._)=>{b(..._),P()}}const u=Et,l=b=>n===!0?b:cs(b,n===!1?1:void 0);let c,f=!1,h=!1;if(gt(e)?(c=()=>e.value,f=oo(e)):Rn(e)?(c=()=>l(e),f=!0):ge(e)?(h=!0,f=e.some(b=>Rn(b)||oo(b)),c=()=>e.map(b=>{if(gt(b))return b.value;if(Rn(b))return l(b);if(ke(b))return Nn(b,u,2)})):ke(e)?t?c=()=>Nn(e,u,2):c=()=>(p&&p(),sr(e,u,3,[d])):c=Gt,t&&n){const b=c;c=()=>cs(b())}let p,d=b=>{p=C.onStop=()=>{Nn(b,u,4),p=C.onStop=void 0}},g;if(Ko)if(d=Gt,t?r&&sr(t,u,3,[c(),h?[]:void 0,d]):c(),s==="sync"){const b=Dy();g=b.__watcherHandles||(b.__watcherHandles=[])}else return Gt;let m=h?new Array(e.length).fill(Oa):Oa;const y=()=>{if(!(!C.active||!C.dirty))if(t){const b=C.run();(n||f||(h?b.some((_,S)=>Hn(_,m[S])):Hn(b,m)))&&(p&&p(),sr(t,u,3,[b,m===Oa?void 0:h&&m[0]===Oa?[]:m,d]),m=b)}else C.run()};y.allowRecurse=!!t;let w;s==="sync"?w=y:s==="post"?w=()=>Mt(y,u&&u.suspense):(y.pre=!0,u&&(y.id=u.uid),w=()=>Oc(y));const C=new Ec(c,Gt,w),k=p0(),P=()=>{C.stop(),k&&xc(k.effects,C)};return t?r?y():m=C.run():s==="post"?Mt(C.run.bind(C),u&&u.suspense):C.run(),g&&g.push(P),P}function Fy(e,t,r){const n=this.proxy,s=ut(e)?e.includes(".")?Y0(n,e):()=>n[e]:e.bind(n,n);let i;ke(t)?i=t:(i=t.handler,r=t);const a=la(this),o=Ic(s,i.bind(n),r);return a(),o}function Y0(e,t){const r=t.split(".");return()=>{let n=e;for(let s=0;s0){if(r>=t)return e;r++}if(n=n||new Set,n.has(e))return e;if(n.add(e),gt(e))cs(e.value,t,r,n);else if(ge(e))for(let s=0;s{cs(s,t,r,n)});else if(u0(e))for(const s in e)cs(e[s],t,r,n);return e}function _e(e,t){if(ft===null)return e;const r=Yo(ft)||ft.proxy,n=e.dirs||(e.dirs=[]);for(let s=0;s{e.isMounted=!0}),X0(()=>{e.isUnmounting=!0}),e}const Qt=[Function,Array],z0={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Qt,onEnter:Qt,onAfterEnter:Qt,onEnterCancelled:Qt,onBeforeLeave:Qt,onLeave:Qt,onAfterLeave:Qt,onLeaveCancelled:Qt,onBeforeAppear:Qt,onAppear:Qt,onAfterAppear:Qt,onAppearCancelled:Qt},Ry={name:"BaseTransition",props:z0,setup(e,{slots:t}){const r=hg(),n=Oy();let s;return()=>{const i=t.default&&G0(t.default(),!0);if(!i||!i.length)return;let a=i[0];if(i.length>1){for(const g of i)if(g.type!==ar){a=g;break}}const o=Ne(e),{mode:u}=o;if(n.isLeaving)return Hu(a);const l=_f(a);if(!l)return Hu(a);const c=Ol(l,o,n,r);Rl(l,c);const f=r.subTree,h=f&&_f(f);let p=!1;const{getTransitionKey:d}=l.type;if(d){const g=d();s===void 0?s=g:g!==s&&(s=g,p=!0)}if(h&&h.type!==ar&&(!ls(l,h)||p)){const g=Ol(h,o,n,r);if(Rl(h,g),u==="out-in")return n.isLeaving=!0,g.afterLeave=()=>{n.isLeaving=!1,r.update.active!==!1&&(r.effect.dirty=!0,r.update())},Hu(a);u==="in-out"&&l.type!==ar&&(g.delayLeave=(m,y,w)=>{const C=W0(n,h);C[String(h.key)]=h,m[Sn]=()=>{y(),m[Sn]=void 0,delete c.delayedLeave},c.delayedLeave=w})}return a}}},Iy=Ry;function W0(e,t){const{leavingVNodes:r}=e;let n=r.get(t.type);return n||(n=Object.create(null),r.set(t.type,n)),n}function Ol(e,t,r,n){const{appear:s,mode:i,persisted:a=!1,onBeforeEnter:o,onEnter:u,onAfterEnter:l,onEnterCancelled:c,onBeforeLeave:f,onLeave:h,onAfterLeave:p,onLeaveCancelled:d,onBeforeAppear:g,onAppear:m,onAfterAppear:y,onAppearCancelled:w}=t,C=String(e.key),k=W0(r,e),P=(S,x)=>{S&&sr(S,n,9,x)},b=(S,x)=>{const A=x[1];P(S,x),ge(S)?S.every(T=>T.length<=1)&&A():S.length<=1&&A()},_={mode:i,persisted:a,beforeEnter(S){let x=o;if(!r.isMounted)if(s)x=g||o;else return;S[Sn]&&S[Sn](!0);const A=k[C];A&&ls(e,A)&&A.el[Sn]&&A.el[Sn](),P(x,[S])},enter(S){let x=u,A=l,T=c;if(!r.isMounted)if(s)x=m||u,A=y||l,T=w||c;else return;let D=!1;const N=S[Ra]=F=>{D||(D=!0,F?P(T,[S]):P(A,[S]),_.delayedLeave&&_.delayedLeave(),S[Ra]=void 0)};x?b(x,[S,N]):N()},leave(S,x){const A=String(e.key);if(S[Ra]&&S[Ra](!0),r.isUnmounting)return x();P(f,[S]);let T=!1;const D=S[Sn]=N=>{T||(T=!0,x(),N?P(d,[S]):P(p,[S]),S[Sn]=void 0,k[A]===e&&delete k[A])};k[A]=e,h?b(h,[S,D]):D()},clone(S){return Ol(S,t,r,n)}};return _}function Hu(e){if(Lo(e))return e=Ln(e),e.children=null,e}function _f(e){return Lo(e)?e.children?e.children[0]:void 0:e}function Rl(e,t){e.shapeFlag&6&&e.component?Rl(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function G0(e,t=!1,r){let n=[],s=0;for(let i=0;i1)for(let i=0;iyt({name:e.name},t,{setup:e}))():e}const Di=e=>!!e.type.__asyncLoader,Lo=e=>e.type.__isKeepAlive;function Ny(e,t){J0(e,"a",t)}function My(e,t){J0(e,"da",t)}function J0(e,t,r=Et){const n=e.__wdc||(e.__wdc=()=>{let s=r;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(Vo(t,n,r),r){let s=r.parent;for(;s&&s.parent;)Lo(s.parent.vnode)&&By(n,t,r,s),s=s.parent}}function By(e,t,r,n){const s=Vo(t,e,n,!0);Nc(()=>{xc(n[t],s)},r)}function Vo(e,t,r=Et,n=!1){if(r){const s=r[e]||(r[e]=[]),i=t.__weh||(t.__weh=(...a)=>{if(r.isUnmounted)return;xs();const o=la(r),u=sr(t,r,e,a);return o(),Ss(),u});return n?s.unshift(i):s.push(i),i}}const an=e=>(t,r=Et)=>(!Ko||e==="sp")&&Vo(e,(...n)=>t(...n),r),$y=an("bm"),Yi=an("m"),Hy=an("bu"),jy=an("u"),X0=an("bum"),Nc=an("um"),Ly=an("sp"),Vy=an("rtg"),Uy=an("rtc");function qy(e,t=Et){Vo("ec",e,t)}function ht(e,t,r,n){let s;const i=r&&r[n];if(ge(e)||ut(e)){s=new Array(e.length);for(let a=0,o=e.length;at(a,o,void 0,i&&i[o]));else{const a=Object.keys(e);s=new Array(a.length);for(let o=0,u=a.length;oGi(t)?!(t.type===ar||t.type===Te&&!Z0(t.children)):!0)?e:null}const Il=e=>e?fg(e)?Yo(e)||e.proxy:Il(e.parent):null,Fi=yt(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Il(e.parent),$root:e=>Il(e.root),$emit:e=>e.emit,$options:e=>Mc(e),$forceUpdate:e=>e.f||(e.f=()=>{e.effect.dirty=!0,Oc(e.update)}),$nextTick:e=>e.n||(e.n=ua.bind(e.proxy)),$watch:e=>Fy.bind(e)}),ju=(e,t)=>e!==Qe&&!e.__isScriptSetup&&He(e,t),Ky={get({_:e},t){const{ctx:r,setupState:n,data:s,props:i,accessCache:a,type:o,appContext:u}=e;let l;if(t[0]!=="$"){const p=a[t];if(p!==void 0)switch(p){case 1:return n[t];case 2:return s[t];case 4:return r[t];case 3:return i[t]}else{if(ju(n,t))return a[t]=1,n[t];if(s!==Qe&&He(s,t))return a[t]=2,s[t];if((l=e.propsOptions[0])&&He(l,t))return a[t]=3,i[t];if(r!==Qe&&He(r,t))return a[t]=4,r[t];Nl&&(a[t]=0)}}const c=Fi[t];let f,h;if(c)return t==="$attrs"&&Ht(e,"get",t),c(e);if((f=o.__cssModules)&&(f=f[t]))return f;if(r!==Qe&&He(r,t))return a[t]=4,r[t];if(h=u.config.globalProperties,He(h,t))return h[t]},set({_:e},t,r){const{data:n,setupState:s,ctx:i}=e;return ju(s,t)?(s[t]=r,!0):n!==Qe&&He(n,t)?(n[t]=r,!0):He(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:n,appContext:s,propsOptions:i}},a){let o;return!!r[a]||e!==Qe&&He(e,a)||ju(t,a)||(o=i[0])&&He(o,a)||He(n,a)||He(Fi,a)||He(s.config.globalProperties,a)},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:He(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};function Yy(){return zy().slots}function zy(){const e=hg();return e.setupContext||(e.setupContext=pg(e))}function Ef(e){return ge(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}let Nl=!0;function Wy(e){const t=Mc(e),r=e.proxy,n=e.ctx;Nl=!1,t.beforeCreate&&Cf(t.beforeCreate,e,"bc");const{data:s,computed:i,methods:a,watch:o,provide:u,inject:l,created:c,beforeMount:f,mounted:h,beforeUpdate:p,updated:d,activated:g,deactivated:m,beforeDestroy:y,beforeUnmount:w,destroyed:C,unmounted:k,render:P,renderTracked:b,renderTriggered:_,errorCaptured:S,serverPrefetch:x,expose:A,inheritAttrs:T,components:D,directives:N,filters:F}=t;if(l&&Gy(l,n,null),a)for(const $ in a){const ae=a[$];ke(ae)&&(n[$]=ae.bind(r))}if(s){const $=s.call(r,r);We($)&&(e.data=Br($))}if(Nl=!0,i)for(const $ in i){const ae=i[$],ve=ke(ae)?ae.bind(r,r):ke(ae.get)?ae.get.bind(r,r):Gt,de=!ke(ae)&&ke(ae.set)?ae.set.bind(r):Gt,Fe=et({get:ve,set:de});Object.defineProperty(n,$,{enumerable:!0,configurable:!0,get:()=>Fe.value,set:Be=>Fe.value=Be})}if(o)for(const $ in o)Q0(o[$],n,r,$);if(u){const $=ke(u)?u.call(r):u;Reflect.ownKeys($).forEach(ae=>{ms(ae,$[ae])})}c&&Cf(c,e,"c");function M($,ae){ge(ae)?ae.forEach(ve=>$(ve.bind(r))):ae&&$(ae.bind(r))}if(M($y,f),M(Yi,h),M(Hy,p),M(jy,d),M(Ny,g),M(My,m),M(qy,S),M(Uy,b),M(Vy,_),M(X0,w),M(Nc,k),M(Ly,x),ge(A))if(A.length){const $=e.exposed||(e.exposed={});A.forEach(ae=>{Object.defineProperty($,ae,{get:()=>r[ae],set:ve=>r[ae]=ve})})}else e.exposed||(e.exposed={});P&&e.render===Gt&&(e.render=P),T!=null&&(e.inheritAttrs=T),D&&(e.components=D),N&&(e.directives=N)}function Gy(e,t,r=Gt){ge(e)&&(e=Ml(e));for(const n in e){const s=e[n];let i;We(s)?"default"in s?i=Jt(s.from||n,s.default,!0):i=Jt(s.from||n):i=Jt(s),gt(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:a=>i.value=a}):t[n]=i}}function Cf(e,t,r){sr(ge(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,r)}function Q0(e,t,r,n){const s=n.includes(".")?Y0(r,n):()=>r[n];if(ut(e)){const i=t[e];ke(i)&&zs(s,i)}else if(ke(e))zs(s,e.bind(r));else if(We(e))if(ge(e))e.forEach(i=>Q0(i,t,r,n));else{const i=ke(e.handler)?e.handler.bind(r):t[e.handler];ke(i)&&zs(s,i,e)}}function Mc(e){const t=e.type,{mixins:r,extends:n}=t,{mixins:s,optionsCache:i,config:{optionMergeStrategies:a}}=e.appContext,o=i.get(t);let u;return o?u=o:!s.length&&!r&&!n?u=t:(u={},s.length&&s.forEach(l=>lo(u,l,a,!0)),lo(u,t,a)),We(t)&&i.set(t,u),u}function lo(e,t,r,n=!1){const{mixins:s,extends:i}=t;i&&lo(e,i,r,!0),s&&s.forEach(a=>lo(e,a,r,!0));for(const a in t)if(!(n&&a==="expose")){const o=Jy[a]||r&&r[a];e[a]=o?o(e[a],t[a]):t[a]}return e}const Jy={data:kf,props:Af,emits:Af,methods:Pi,computed:Pi,beforeCreate:Ot,created:Ot,beforeMount:Ot,mounted:Ot,beforeUpdate:Ot,updated:Ot,beforeDestroy:Ot,beforeUnmount:Ot,destroyed:Ot,unmounted:Ot,activated:Ot,deactivated:Ot,errorCaptured:Ot,serverPrefetch:Ot,components:Pi,directives:Pi,watch:Zy,provide:kf,inject:Xy};function kf(e,t){return t?e?function(){return yt(ke(e)?e.call(this,this):e,ke(t)?t.call(this,this):t)}:t:e}function Xy(e,t){return Pi(Ml(e),Ml(t))}function Ml(e){if(ge(e)){const t={};for(let r=0;r1)return r&&ke(t)?t.call(n&&n.proxy):t}}function tb(){return!!(Et||ft||zi)}function rb(e,t,r,n=!1){const s={},i={};io(i,qo,1),e.propsDefaults=Object.create(null),tg(e,t,s,i);for(const a in e.propsOptions[0])a in s||(s[a]=void 0);r?e.props=n?s:A0(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function nb(e,t,r,n){const{props:s,attrs:i,vnode:{patchFlag:a}}=e,o=Ne(s),[u]=e.propsOptions;let l=!1;if((n||a>0)&&!(a&16)){if(a&8){const c=e.vnode.dynamicProps;for(let f=0;f{u=!0;const[h,p]=rg(f,t,!0);yt(a,h),p&&o.push(...p)};!r&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!i&&!u)return We(e)&&n.set(e,qs),qs;if(ge(i))for(let c=0;c-1,p[1]=g<0||d-1||He(p,"default"))&&o.push(f)}}}const l=[a,o];return We(e)&&n.set(e,l),l}function Pf(e){return e[0]!=="$"}function Tf(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Df(e,t){return Tf(e)===Tf(t)}function Ff(e,t){return ge(t)?t.findIndex(r=>Df(r,e)):ke(t)&&Df(t,e)?0:-1}const ng=e=>e[0]==="_"||e==="$stable",Bc=e=>ge(e)?e.map(Fr):[Fr(e)],sb=(e,t,r)=>{if(t._n)return t;const n=Wt((...s)=>Bc(t(...s)),r);return n._c=!1,n},sg=(e,t,r)=>{const n=e._ctx;for(const s in e){if(ng(s))continue;const i=e[s];if(ke(i))t[s]=sb(s,i,n);else if(i!=null){const a=Bc(i);t[s]=()=>a}}},ig=(e,t)=>{const r=Bc(t);e.slots.default=()=>r},ib=(e,t)=>{if(e.vnode.shapeFlag&32){const r=t._;r?(e.slots=Ne(t),io(t,"_",r)):sg(t,e.slots={})}else e.slots={},t&&ig(e,t);io(e.slots,qo,1)},ab=(e,t,r)=>{const{vnode:n,slots:s}=e;let i=!0,a=Qe;if(n.shapeFlag&32){const o=t._;o?r&&o===1?i=!1:(yt(s,t),!r&&o===1&&delete s._):(i=!t.$stable,sg(t,s)),a=t}else t&&(ig(e,t),a={default:1});if(i)for(const o in s)!ng(o)&&a[o]==null&&delete s[o]};function $l(e,t,r,n,s=!1){if(ge(e)){e.forEach((h,p)=>$l(h,t&&(ge(t)?t[p]:t),r,n,s));return}if(Di(n)&&!s)return;const i=n.shapeFlag&4?Yo(n.component)||n.component.proxy:n.el,a=s?null:i,{i:o,r:u}=e,l=t&&t.r,c=o.refs===Qe?o.refs={}:o.refs,f=o.setupState;if(l!=null&&l!==u&&(ut(l)?(c[l]=null,He(f,l)&&(f[l]=null)):gt(l)&&(l.value=null)),ke(u))Nn(u,o,12,[a,c]);else{const h=ut(u),p=gt(u),d=e.f;if(h||p){const g=()=>{if(d){const m=h?He(f,u)?f[u]:c[u]:u.value;s?ge(m)&&xc(m,i):ge(m)?m.includes(i)||m.push(i):h?(c[u]=[i],He(f,u)&&(f[u]=c[u])):(u.value=[i],e.k&&(c[e.k]=u.value))}else h?(c[u]=a,He(f,u)&&(f[u]=a)):p&&(u.value=a,e.k&&(c[e.k]=a))};s||d?g():(g.id=-1,Mt(g,r))}}}const Mt=Py;function ob(e){return ub(e)}function ub(e,t){const r=l0();r.__VUE__=!0;const{insert:n,remove:s,patchProp:i,createElement:a,createText:o,createComment:u,setText:l,setElementText:c,parentNode:f,nextSibling:h,setScopeId:p=Gt,insertStaticContent:d}=e,g=(O,I,j,K=null,Y=null,Q=null,oe=void 0,J=null,te=!!I.dynamicChildren)=>{if(O===I)return;O&&!ls(O,I)&&(K=L(O),Be(O,Y,Q,!0),O=null),I.patchFlag===-2&&(te=!1,I.dynamicChildren=null);const{type:X,ref:ce,shapeFlag:se}=I;switch(X){case Uo:m(O,I,j,K);break;case ar:y(O,I,j,K);break;case Vu:O==null&&w(I,j,K,oe);break;case Te:D(O,I,j,K,Y,Q,oe,J,te);break;default:se&1?P(O,I,j,K,Y,Q,oe,J,te):se&6?N(O,I,j,K,Y,Q,oe,J,te):(se&64||se&128)&&X.process(O,I,j,K,Y,Q,oe,J,te,ne)}ce!=null&&Y&&$l(ce,O&&O.ref,Q,I||O,!I)},m=(O,I,j,K)=>{if(O==null)n(I.el=o(I.children),j,K);else{const Y=I.el=O.el;I.children!==O.children&&l(Y,I.children)}},y=(O,I,j,K)=>{O==null?n(I.el=u(I.children||""),j,K):I.el=O.el},w=(O,I,j,K)=>{[O.el,O.anchor]=d(O.children,I,j,K,O.el,O.anchor)},C=({el:O,anchor:I},j,K)=>{let Y;for(;O&&O!==I;)Y=h(O),n(O,j,K),O=Y;n(I,j,K)},k=({el:O,anchor:I})=>{let j;for(;O&&O!==I;)j=h(O),s(O),O=j;s(I)},P=(O,I,j,K,Y,Q,oe,J,te)=>{I.type==="svg"?oe="svg":I.type==="math"&&(oe="mathml"),O==null?b(I,j,K,Y,Q,oe,J,te):x(O,I,Y,Q,oe,J,te)},b=(O,I,j,K,Y,Q,oe,J)=>{let te,X;const{props:ce,shapeFlag:se,transition:fe,dirs:ie}=O;if(te=O.el=a(O.type,Q,ce&&ce.is,ce),se&8?c(te,O.children):se&16&&S(O.children,te,null,K,Y,Lu(O,Q),oe,J),ie&&Qn(O,null,K,"created"),_(te,O,O.scopeId,oe,K),ce){for(const ze in ce)ze!=="value"&&!Ya(ze)&&i(te,ze,null,ce[ze],Q,O.children,K,Y,je);"value"in ce&&i(te,"value",null,ce.value,Q),(X=ce.onVnodeBeforeMount)&&Tr(X,K,O)}ie&&Qn(O,null,K,"beforeMount");const Se=lb(Y,fe);Se&&fe.beforeEnter(te),n(te,I,j),((X=ce&&ce.onVnodeMounted)||Se||ie)&&Mt(()=>{X&&Tr(X,K,O),Se&&fe.enter(te),ie&&Qn(O,null,K,"mounted")},Y)},_=(O,I,j,K,Y)=>{if(j&&p(O,j),K)for(let Q=0;Q{for(let X=te;X{const J=I.el=O.el;let{patchFlag:te,dynamicChildren:X,dirs:ce}=I;te|=O.patchFlag&16;const se=O.props||Qe,fe=I.props||Qe;let ie;if(j&&es(j,!1),(ie=fe.onVnodeBeforeUpdate)&&Tr(ie,j,I,O),ce&&Qn(I,O,j,"beforeUpdate"),j&&es(j,!0),X?A(O.dynamicChildren,X,J,j,K,Lu(I,Y),Q):oe||ae(O,I,J,null,j,K,Lu(I,Y),Q,!1),te>0){if(te&16)T(J,I,se,fe,j,K,Y);else if(te&2&&se.class!==fe.class&&i(J,"class",null,fe.class,Y),te&4&&i(J,"style",se.style,fe.style,Y),te&8){const Se=I.dynamicProps;for(let ze=0;ze{ie&&Tr(ie,j,I,O),ce&&Qn(I,O,j,"updated")},K)},A=(O,I,j,K,Y,Q,oe)=>{for(let J=0;J{if(j!==K){if(j!==Qe)for(const J in j)!Ya(J)&&!(J in K)&&i(O,J,j[J],null,oe,I.children,Y,Q,je);for(const J in K){if(Ya(J))continue;const te=K[J],X=j[J];te!==X&&J!=="value"&&i(O,J,X,te,oe,I.children,Y,Q,je)}"value"in K&&i(O,"value",j.value,K.value,oe)}},D=(O,I,j,K,Y,Q,oe,J,te)=>{const X=I.el=O?O.el:o(""),ce=I.anchor=O?O.anchor:o("");let{patchFlag:se,dynamicChildren:fe,slotScopeIds:ie}=I;ie&&(J=J?J.concat(ie):ie),O==null?(n(X,j,K),n(ce,j,K),S(I.children||[],j,ce,Y,Q,oe,J,te)):se>0&&se&64&&fe&&O.dynamicChildren?(A(O.dynamicChildren,fe,j,Y,Q,oe,J),(I.key!=null||Y&&I===Y.subTree)&&$c(O,I,!0)):ae(O,I,j,ce,Y,Q,oe,J,te)},N=(O,I,j,K,Y,Q,oe,J,te)=>{I.slotScopeIds=J,O==null?I.shapeFlag&512?Y.ctx.activate(I,j,K,oe,te):F(I,j,K,Y,Q,oe,te):R(O,I,te)},F=(O,I,j,K,Y,Q,oe)=>{const J=O.component=wb(O,K,Y);if(Lo(O)&&(J.ctx.renderer=ne),xb(J),J.asyncDep){if(Y&&Y.registerDep(J,M),!O.el){const te=J.subTree=q(ar);y(null,te,I,j)}}else M(J,O,I,j,Y,Q,oe)},R=(O,I,j)=>{const K=I.component=O.component;if(Ey(O,I,j))if(K.asyncDep&&!K.asyncResolved){$(K,I,j);return}else K.next=I,vy(K.update),K.effect.dirty=!0,K.update();else I.el=O.el,K.vnode=I},M=(O,I,j,K,Y,Q,oe)=>{const J=()=>{if(O.isMounted){let{next:ce,bu:se,u:fe,parent:ie,vnode:Se}=O;{const Fs=ag(O);if(Fs){ce&&(ce.el=Se.el,$(O,ce,oe)),Fs.asyncDep.then(()=>{O.isUnmounted||J()});return}}let ze=ce,it;es(O,!1),ce?(ce.el=Se.el,$(O,ce,oe)):ce=Se,se&&za(se),(it=ce.props&&ce.props.onVnodeBeforeUpdate)&&Tr(it,ie,ce,Se),es(O,!0);const bt=$u(O),pr=O.subTree;O.subTree=bt,g(pr,bt,f(pr.el),L(pr),O,Y,Q),ce.el=bt.el,ze===null&&Cy(O,bt.el),fe&&Mt(fe,Y),(it=ce.props&&ce.props.onVnodeUpdated)&&Mt(()=>Tr(it,ie,ce,Se),Y)}else{let ce;const{el:se,props:fe}=I,{bm:ie,m:Se,parent:ze}=O,it=Di(I);if(es(O,!1),ie&&za(ie),!it&&(ce=fe&&fe.onVnodeBeforeMount)&&Tr(ce,ze,I),es(O,!0),se&&be){const bt=()=>{O.subTree=$u(O),be(se,O.subTree,O,Y,null)};it?I.type.__asyncLoader().then(()=>!O.isUnmounted&&bt()):bt()}else{const bt=O.subTree=$u(O);g(null,bt,j,K,O,Y,Q),I.el=bt.el}if(Se&&Mt(Se,Y),!it&&(ce=fe&&fe.onVnodeMounted)){const bt=I;Mt(()=>Tr(ce,ze,bt),Y)}(I.shapeFlag&256||ze&&Di(ze.vnode)&&ze.vnode.shapeFlag&256)&&O.a&&Mt(O.a,Y),O.isMounted=!0,I=j=K=null}},te=O.effect=new Ec(J,Gt,()=>Oc(X),O.scope),X=O.update=()=>{te.dirty&&te.run()};X.id=O.uid,es(O,!0),X()},$=(O,I,j)=>{I.component=O;const K=O.vnode.props;O.vnode=I,O.next=null,nb(O,I.props,K,j),ab(O,I.children,j),xs(),wf(O),Ss()},ae=(O,I,j,K,Y,Q,oe,J,te=!1)=>{const X=O&&O.children,ce=O?O.shapeFlag:0,se=I.children,{patchFlag:fe,shapeFlag:ie}=I;if(fe>0){if(fe&128){de(X,se,j,K,Y,Q,oe,J,te);return}else if(fe&256){ve(X,se,j,K,Y,Q,oe,J,te);return}}ie&8?(ce&16&&je(X,Y,Q),se!==X&&c(j,se)):ce&16?ie&16?de(X,se,j,K,Y,Q,oe,J,te):je(X,Y,Q,!0):(ce&8&&c(j,""),ie&16&&S(se,j,K,Y,Q,oe,J,te))},ve=(O,I,j,K,Y,Q,oe,J,te)=>{O=O||qs,I=I||qs;const X=O.length,ce=I.length,se=Math.min(X,ce);let fe;for(fe=0;fece?je(O,Y,Q,!0,!1,se):S(I,j,K,Y,Q,oe,J,te,se)},de=(O,I,j,K,Y,Q,oe,J,te)=>{let X=0;const ce=I.length;let se=O.length-1,fe=ce-1;for(;X<=se&&X<=fe;){const ie=O[X],Se=I[X]=te?_n(I[X]):Fr(I[X]);if(ls(ie,Se))g(ie,Se,j,null,Y,Q,oe,J,te);else break;X++}for(;X<=se&&X<=fe;){const ie=O[se],Se=I[fe]=te?_n(I[fe]):Fr(I[fe]);if(ls(ie,Se))g(ie,Se,j,null,Y,Q,oe,J,te);else break;se--,fe--}if(X>se){if(X<=fe){const ie=fe+1,Se=iefe)for(;X<=se;)Be(O[X],Y,Q,!0),X++;else{const ie=X,Se=X,ze=new Map;for(X=Se;X<=fe;X++){const Vt=I[X]=te?_n(I[X]):Fr(I[X]);Vt.key!=null&&ze.set(Vt.key,X)}let it,bt=0;const pr=fe-Se+1;let Fs=!1,sf=0;const bi=new Array(pr);for(X=0;X=pr){Be(Vt,Y,Q,!0);continue}let Pr;if(Vt.key!=null)Pr=ze.get(Vt.key);else for(it=Se;it<=fe;it++)if(bi[it-Se]===0&&ls(Vt,I[it])){Pr=it;break}Pr===void 0?Be(Vt,Y,Q,!0):(bi[Pr-Se]=X+1,Pr>=sf?sf=Pr:Fs=!0,g(Vt,I[Pr],j,null,Y,Q,oe,J,te),bt++)}const af=Fs?cb(bi):qs;for(it=af.length-1,X=pr-1;X>=0;X--){const Vt=Se+X,Pr=I[Vt],of=Vt+1{const{el:Q,type:oe,transition:J,children:te,shapeFlag:X}=O;if(X&6){Fe(O.component.subTree,I,j,K);return}if(X&128){O.suspense.move(I,j,K);return}if(X&64){oe.move(O,I,j,ne);return}if(oe===Te){n(Q,I,j);for(let se=0;seJ.enter(Q),Y);else{const{leave:se,delayLeave:fe,afterLeave:ie}=J,Se=()=>n(Q,I,j),ze=()=>{se(Q,()=>{Se(),ie&&ie()})};fe?fe(Q,Se,ze):ze()}else n(Q,I,j)},Be=(O,I,j,K=!1,Y=!1)=>{const{type:Q,props:oe,ref:J,children:te,dynamicChildren:X,shapeFlag:ce,patchFlag:se,dirs:fe}=O;if(J!=null&&$l(J,null,j,O,!0),ce&256){I.ctx.deactivate(O);return}const ie=ce&1&&fe,Se=!Di(O);let ze;if(Se&&(ze=oe&&oe.onVnodeBeforeUnmount)&&Tr(ze,I,O),ce&6)Ar(O.component,j,K);else{if(ce&128){O.suspense.unmount(j,K);return}ie&&Qn(O,null,I,"beforeUnmount"),ce&64?O.type.remove(O,I,j,Y,ne,K):X&&(Q!==Te||se>0&&se&64)?je(X,I,j,!1,!0):(Q===Te&&se&384||!Y&&ce&16)&&je(te,I,j),K&&st(O)}(Se&&(ze=oe&&oe.onVnodeUnmounted)||ie)&&Mt(()=>{ze&&Tr(ze,I,O),ie&&Qn(O,null,I,"unmounted")},j)},st=O=>{const{type:I,el:j,anchor:K,transition:Y}=O;if(I===Te){Ze(j,K);return}if(I===Vu){k(O);return}const Q=()=>{s(j),Y&&!Y.persisted&&Y.afterLeave&&Y.afterLeave()};if(O.shapeFlag&1&&Y&&!Y.persisted){const{leave:oe,delayLeave:J}=Y,te=()=>oe(j,Q);J?J(O.el,Q,te):te()}else Q()},Ze=(O,I)=>{let j;for(;O!==I;)j=h(O),s(O),O=j;s(I)},Ar=(O,I,j)=>{const{bum:K,scope:Y,update:Q,subTree:oe,um:J}=O;K&&za(K),Y.stop(),Q&&(Q.active=!1,Be(oe,O,I,j)),J&&Mt(J,I),Mt(()=>{O.isUnmounted=!0},I),I&&I.pendingBranch&&!I.isUnmounted&&O.asyncDep&&!O.asyncResolved&&O.suspenseId===I.pendingId&&(I.deps--,I.deps===0&&I.resolve())},je=(O,I,j,K=!1,Y=!1,Q=0)=>{for(let oe=Q;oeO.shapeFlag&6?L(O.component.subTree):O.shapeFlag&128?O.suspense.next():h(O.anchor||O.el);let W=!1;const G=(O,I,j)=>{O==null?I._vnode&&Be(I._vnode,null,null,!0):g(I._vnode||null,O,I,null,null,null,j),W||(W=!0,wf(),H0(),W=!1),I._vnode=O},ne={p:g,um:Be,m:Fe,r:st,mt:F,mc:S,pc:ae,pbc:A,n:L,o:e};let xe,be;return t&&([xe,be]=t(ne)),{render:G,hydrate:xe,createApp:eb(G,xe)}}function Lu({type:e,props:t},r){return r==="svg"&&e==="foreignObject"||r==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:r}function es({effect:e,update:t},r){e.allowRecurse=t.allowRecurse=r}function lb(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function $c(e,t,r=!1){const n=e.children,s=t.children;if(ge(n)&&ge(s))for(let i=0;i>1,e[r[o]]0&&(t[n]=r[i-1]),r[i]=n)}}for(i=r.length,a=r[i-1];i-- >0;)r[i]=a,a=t[a];return r}function ag(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:ag(t)}const hb=e=>e.__isTeleport,Oi=e=>e&&(e.disabled||e.disabled===""),Of=e=>typeof SVGElement!="undefined"&&e instanceof SVGElement,Rf=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Hl=(e,t)=>{const r=e&&e.to;return ut(r)?t?t(r):null:r},fb={name:"Teleport",__isTeleport:!0,process(e,t,r,n,s,i,a,o,u,l){const{mc:c,pc:f,pbc:h,o:{insert:p,querySelector:d,createText:g,createComment:m}}=l,y=Oi(t.props);let{shapeFlag:w,children:C,dynamicChildren:k}=t;if(e==null){const P=t.el=g(""),b=t.anchor=g("");p(P,r,n),p(b,r,n);const _=t.target=Hl(t.props,d),S=t.targetAnchor=g("");_&&(p(S,_),a==="svg"||Of(_)?a="svg":(a==="mathml"||Rf(_))&&(a="mathml"));const x=(A,T)=>{w&16&&c(C,A,T,s,i,a,o,u)};y?x(r,b):_&&x(_,S)}else{t.el=e.el;const P=t.anchor=e.anchor,b=t.target=e.target,_=t.targetAnchor=e.targetAnchor,S=Oi(e.props),x=S?r:b,A=S?P:_;if(a==="svg"||Of(b)?a="svg":(a==="mathml"||Rf(b))&&(a="mathml"),k?(h(e.dynamicChildren,k,x,s,i,a,o),$c(e,t,!0)):u||f(e,t,x,A,s,i,a,o,!1),y)S?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Ia(t,r,P,l,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const T=t.target=Hl(t.props,d);T&&Ia(t,T,null,l,0)}else S&&Ia(t,b,_,l,1)}og(t)},remove(e,t,r,n,{um:s,o:{remove:i}},a){const{shapeFlag:o,children:u,anchor:l,targetAnchor:c,target:f,props:h}=e;if(f&&i(c),a&&i(l),o&16){const p=a||!Oi(h);for(let d=0;d0?yr||qs:null,gb(),Wi>0&&yr&&yr.push(e),e}function V(e,t,r,n,s,i){return ug(E(e,t,r,n,s,i,!0))}function on(e,t,r,n,s){return ug(q(e,t,r,n,s,!0))}function Gi(e){return e?e.__v_isVNode===!0:!1}function ls(e,t){return e.type===t.type&&e.key===t.key}const qo="__vInternal",lg=({key:e})=>e!=null?e:null,Ga=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?ut(e)||gt(e)||ke(e)?{i:ft,r:e,k:t,f:!!r}:e:null);function E(e,t=null,r=null,n=0,s=null,i=e===Te?0:1,a=!1,o=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&lg(t),ref:t&&Ga(t),scopeId:jo,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:n,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:ft};return o?(Hc(u,r),i&128&&e.normalize(u)):r&&(u.shapeFlag|=ut(r)?8:16),Wi>0&&!a&&yr&&(u.patchFlag>0||i&6)&&u.patchFlag!==32&&yr.push(u),u}const q=mb;function mb(e,t=null,r=null,n=0,s=null,i=!1){if((!e||e===q0)&&(e=ar),Gi(e)){const o=Ln(e,t,!0);return r&&Hc(o,r),Wi>0&&!i&&yr&&(o.shapeFlag&6?yr[yr.indexOf(e)]=o:yr.push(o)),o.patchFlag|=-2,o}if(Cb(e)&&(e=e.__vccOpts),t){t=cg(t);let{class:o,style:u}=t;o&&!ut(o)&&(t.class=Ce(o)),We(u)&&(T0(u)&&!ge(u)&&(u=yt({},u)),t.style=Fn(u))}const a=ut(e)?1:Ay(e)?128:hb(e)?64:We(e)?4:ke(e)?2:0;return E(e,t,r,n,s,a,i,!0)}function cg(e){return e?T0(e)||qo in e?yt({},e):e:null}function Ln(e,t,r=!1){const{props:n,ref:s,patchFlag:i,children:a}=e,o=t?vb(n||{},t):n;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:o,key:o&&lg(o),ref:t&&t.ref?r&&s?ge(s)?s.concat(Ga(t)):[s,Ga(t)]:Ga(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Te?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Ln(e.ssContent),ssFallback:e.ssFallback&&Ln(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function ti(e=" ",t=0){return q(Uo,null,e,t)}function ue(e="",t=!1){return t?(H(),on(ar,null,e)):q(ar,null,e)}function Fr(e){return e==null||typeof e=="boolean"?q(ar):ge(e)?q(Te,null,e.slice()):typeof e=="object"?_n(e):q(Uo,null,String(e))}function _n(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Ln(e)}function Hc(e,t){let r=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(ge(t))r=16;else if(typeof t=="object")if(n&65){const s=t.default;s&&(s._c&&(s._d=!1),Hc(e,s()),s._c&&(s._d=!0));return}else{r=32;const s=t._;!s&&!(qo in t)?t._ctx=ft:s===3&&ft&&(ft.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else ke(t)?(t={default:t,_ctx:ft},r=32):(t=String(t),n&64?(r=16,t=[ti(t)]):r=8);e.children=t,e.shapeFlag|=r}function vb(...e){const t={};for(let r=0;rEt||ft;let co,jl;{const e=l0(),t=(r,n)=>{let s;return(s=e[r])||(s=e[r]=[]),s.push(n),i=>{s.length>1?s.forEach(a=>a(i)):s[0](i)}};co=t("__VUE_INSTANCE_SETTERS__",r=>Et=r),jl=t("__VUE_SSR_SETTERS__",r=>Ko=r)}const la=e=>{const t=Et;return co(e),e.scope.on(),()=>{e.scope.off(),co(t)}},Nf=()=>{Et&&Et.scope.off(),co(null)};function fg(e){return e.vnode.shapeFlag&4}let Ko=!1;function xb(e,t=!1){t&&jl(t);const{props:r,children:n}=e.vnode,s=fg(e);rb(e,r,s,t),ib(e,n);const i=s?Sb(e,t):void 0;return t&&jl(!1),i}function Sb(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=Bo(new Proxy(e.ctx,Ky));const{setup:n}=r;if(n){const s=e.setupContext=n.length>1?pg(e):null,i=la(e);xs();const a=Nn(n,e,0,[e.props,s]);if(Ss(),i(),a0(a)){if(a.then(Nf,Nf),t)return a.then(o=>{Mf(e,o,t)}).catch(o=>{$o(o,e,0)});e.asyncDep=a}else Mf(e,a,t)}else dg(e,t)}function Mf(e,t,r){ke(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:We(t)&&(e.setupState=I0(t)),dg(e,r)}let Bf;function dg(e,t,r){const n=e.type;if(!e.render){if(!t&&Bf&&!n.render){const s=n.template||Mc(e).template;if(s){const{isCustomElement:i,compilerOptions:a}=e.appContext.config,{delimiters:o,compilerOptions:u}=n,l=yt(yt({isCustomElement:i,delimiters:o},a),u);n.render=Bf(s,l)}}e.render=n.render||Gt}{const s=la(e);xs();try{Wy(e)}finally{Ss(),s()}}}function _b(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,r){return Ht(e,"get","$attrs"),t[r]}}))}function pg(e){const t=r=>{e.exposed=r||{}};return{get attrs(){return _b(e)},slots:e.slots,emit:e.emit,expose:t}}function Yo(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(I0(Bo(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in Fi)return Fi[r](e)},has(t,r){return r in t||r in Fi}}))}function Eb(e,t=!0){return ke(e)?e.displayName||e.name:e.name||t&&e.__name}function Cb(e){return ke(e)&&"__vccOpts"in e}const et=(e,t)=>ly(e,t,Ko);function Ji(e,t,r){const n=arguments.length;return n===2?We(t)&&!ge(t)?Gi(t)?q(e,null,[t]):q(e,t):q(e,null,t):(n>3?r=Array.prototype.slice.call(arguments,2):n===3&&Gi(r)&&(r=[r]),q(e,t,r))}const kb="3.4.15";/** +* @vue/runtime-dom v3.4.15 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/const Ab="http://www.w3.org/2000/svg",Pb="http://www.w3.org/1998/Math/MathML",En=typeof document!="undefined"?document:null,$f=En&&En.createElement("template"),Tb={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,n)=>{const s=t==="svg"?En.createElementNS(Ab,e):t==="mathml"?En.createElementNS(Pb,e):En.createElement(e,r?{is:r}:void 0);return e==="select"&&n&&n.multiple!=null&&s.setAttribute("multiple",n.multiple),s},createText:e=>En.createTextNode(e),createComment:e=>En.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>En.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,n,s,i){const a=r?r.previousSibling:t.lastChild;if(s&&(s===i||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),r),!(s===i||!(s=s.nextSibling)););else{$f.innerHTML=n==="svg"?`${e}`:n==="mathml"?`${e}`:e;const o=$f.content;if(n==="svg"||n==="mathml"){const u=o.firstChild;for(;u.firstChild;)o.appendChild(u.firstChild);o.removeChild(u)}t.insertBefore(o,r)}return[a?a.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}},pn="transition",wi="animation",Xi=Symbol("_vtc"),jc=(e,{slots:t})=>Ji(Iy,Db(e),t);jc.displayName="Transition";const gg={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};jc.props=yt({},z0,gg);const ts=(e,t=[])=>{ge(e)?e.forEach(r=>r(...t)):e&&e(...t)},Hf=e=>e?ge(e)?e.some(t=>t.length>1):e.length>1:!1;function Db(e){const t={};for(const D in e)D in gg||(t[D]=e[D]);if(e.css===!1)return t;const{name:r="v",type:n,duration:s,enterFromClass:i=`${r}-enter-from`,enterActiveClass:a=`${r}-enter-active`,enterToClass:o=`${r}-enter-to`,appearFromClass:u=i,appearActiveClass:l=a,appearToClass:c=o,leaveFromClass:f=`${r}-leave-from`,leaveActiveClass:h=`${r}-leave-active`,leaveToClass:p=`${r}-leave-to`}=e,d=Fb(s),g=d&&d[0],m=d&&d[1],{onBeforeEnter:y,onEnter:w,onEnterCancelled:C,onLeave:k,onLeaveCancelled:P,onBeforeAppear:b=y,onAppear:_=w,onAppearCancelled:S=C}=t,x=(D,N,F)=>{rs(D,N?c:o),rs(D,N?l:a),F&&F()},A=(D,N)=>{D._isLeaving=!1,rs(D,f),rs(D,p),rs(D,h),N&&N()},T=D=>(N,F)=>{const R=D?_:w,M=()=>x(N,D,F);ts(R,[N,M]),jf(()=>{rs(N,D?u:i),gn(N,D?c:o),Hf(R)||Lf(N,n,g,M)})};return yt(t,{onBeforeEnter(D){ts(y,[D]),gn(D,i),gn(D,a)},onBeforeAppear(D){ts(b,[D]),gn(D,u),gn(D,l)},onEnter:T(!1),onAppear:T(!0),onLeave(D,N){D._isLeaving=!0;const F=()=>A(D,N);gn(D,f),Ib(),gn(D,h),jf(()=>{D._isLeaving&&(rs(D,f),gn(D,p),Hf(k)||Lf(D,n,m,F))}),ts(k,[D,F])},onEnterCancelled(D){x(D,!1),ts(C,[D])},onAppearCancelled(D){x(D,!0),ts(S,[D])},onLeaveCancelled(D){A(D),ts(P,[D])}})}function Fb(e){if(e==null)return null;if(We(e))return[Uu(e.enter),Uu(e.leave)];{const t=Uu(e);return[t,t]}}function Uu(e){return Ov(e)}function gn(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e[Xi]||(e[Xi]=new Set)).add(t)}function rs(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.remove(n));const r=e[Xi];r&&(r.delete(t),r.size||(e[Xi]=void 0))}function jf(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Ob=0;function Lf(e,t,r,n){const s=e._endId=++Ob,i=()=>{s===e._endId&&n()};if(r)return setTimeout(i,r);const{type:a,timeout:o,propCount:u}=Rb(e,t);if(!a)return n();const l=a+"end";let c=0;const f=()=>{e.removeEventListener(l,h),i()},h=p=>{p.target===e&&++c>=u&&f()};setTimeout(()=>{c(r[d]||"").split(", "),s=n(`${pn}Delay`),i=n(`${pn}Duration`),a=Vf(s,i),o=n(`${wi}Delay`),u=n(`${wi}Duration`),l=Vf(o,u);let c=null,f=0,h=0;t===pn?a>0&&(c=pn,f=a,h=i.length):t===wi?l>0&&(c=wi,f=l,h=u.length):(f=Math.max(a,l),c=f>0?a>l?pn:wi:null,h=c?c===pn?i.length:u.length:0);const p=c===pn&&/\b(transform|all)(,|$)/.test(n(`${pn}Property`).toString());return{type:c,timeout:f,propCount:h,hasTransform:p}}function Vf(e,t){for(;e.lengthUf(r)+Uf(e[n])))}function Uf(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Ib(){return document.body.offsetHeight}function Nb(e,t,r){const n=e[Xi];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const Lc=Symbol("_vod"),Vc={beforeMount(e,{value:t},{transition:r}){e[Lc]=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):xi(e,t)},mounted(e,{value:t},{transition:r}){r&&t&&r.enter(e)},updated(e,{value:t,oldValue:r},{transition:n}){!t!=!r&&(n?t?(n.beforeEnter(e),xi(e,!0),n.enter(e)):n.leave(e,()=>{xi(e,!1)}):xi(e,t))},beforeUnmount(e,{value:t}){xi(e,t)}};function xi(e,t){e.style.display=t?e[Lc]:"none"}const Mb=Symbol("");function Bb(e,t,r){const n=e.style,s=n.display,i=ut(r);if(r&&!i){if(t&&!ut(t))for(const a in t)r[a]==null&&Ll(n,a,"");for(const a in r)Ll(n,a,r[a])}else if(i){if(t!==r){const a=n[Mb];a&&(r+=";"+a),n.cssText=r}}else t&&e.removeAttribute("style");Lc in e&&(n.display=s)}const qf=/\s*!important$/;function Ll(e,t,r){if(ge(r))r.forEach(n=>Ll(e,t,n));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const n=$b(e,t);qf.test(r)?e.setProperty(ws(n),r.replace(qf,""),"important"):e[n]=r}}const Kf=["Webkit","Moz","ms"],qu={};function $b(e,t){const r=qu[t];if(r)return r;let n=Mr(t);if(n!=="filter"&&n in e)return qu[t]=n;n=No(n);for(let s=0;sKu||(qb.then(()=>Ku=0),Ku=Date.now());function Yb(e,t){const r=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=r.attached)return;sr(zb(n,r.value),t,5,[n])};return r.value=e,r.attached=Kb(),r}function zb(e,t){if(ge(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(n=>s=>!s._stopped&&n&&n(s))}else return t}const Gf=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Wb=(e,t,r,n,s,i,a,o,u)=>{const l=s==="svg";t==="class"?Nb(e,n,l):t==="style"?Bb(e,r,n):Ro(t)?wc(t)||Vb(e,t,r,n,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Gb(e,t,n,l))?jb(e,t,n,i,a,o,u):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),Hb(e,t,n,l))};function Gb(e,t,r,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&Gf(t)&&ke(r));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 s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return Gf(t)&&ut(r)?!1:t in e}const Vn=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ge(t)?r=>za(t,r):t};function Jb(e){e.target.composing=!0}function Jf(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const or=Symbol("_assign"),Ae={created(e,{modifiers:{lazy:t,trim:r,number:n}},s){e[or]=Vn(s);const i=n||s.props&&s.props.type==="number";zr(e,t?"change":"input",a=>{if(a.target.composing)return;let o=e.value;r&&(o=o.trim()),i&&(o=Vi(o)),e[or](o)}),r&&zr(e,"change",()=>{e.value=e.value.trim()}),t||(zr(e,"compositionstart",Jb),zr(e,"compositionend",Jf),zr(e,"change",Jf))},mounted(e,{value:t}){e.value=t==null?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:r,trim:n,number:s}},i){if(e[or]=Vn(i),e.composing)return;const a=s||e.type==="number"?Vi(e.value):e.value,o=t==null?"":t;a!==o&&(document.activeElement===e&&e.type!=="range"&&(r||n&&e.value.trim()===o)||(e.value=o))}},Xb={deep:!0,created(e,t,r){e[or]=Vn(r),zr(e,"change",()=>{const n=e._modelValue,s=ri(e),i=e.checked,a=e[or];if(ge(n)){const o=_c(n,s),u=o!==-1;if(i&&!u)a(n.concat(s));else if(!i&&u){const l=[...n];l.splice(o,1),a(l)}}else if(ci(n)){const o=new Set(n);i?o.add(s):o.delete(s),a(o)}else a(vg(e,i))})},mounted:Xf,beforeUpdate(e,t,r){e[or]=Vn(r),Xf(e,t,r)}};function Xf(e,{value:t,oldValue:r},n){e._modelValue=t,ge(t)?e.checked=_c(t,n.props.value)>-1:ci(t)?e.checked=t.has(n.props.value):t!==r&&(e.checked=jn(t,vg(e,!0)))}const Vl={created(e,{value:t},r){e.checked=jn(t,r.props.value),e[or]=Vn(r),zr(e,"change",()=>{e[or](ri(e))})},beforeUpdate(e,{value:t,oldValue:r},n){e[or]=Vn(n),t!==r&&(e.checked=jn(t,n.props.value))}},mg={deep:!0,created(e,{value:t,modifiers:{number:r}},n){const s=ci(t);zr(e,"change",()=>{const i=Array.prototype.filter.call(e.options,a=>a.selected).map(a=>r?Vi(ri(a)):ri(a));e[or](e.multiple?s?new Set(i):i:i[0]),e._assigning=!0,ua(()=>{e._assigning=!1})}),e[or]=Vn(n)},mounted(e,{value:t,oldValue:r,modifiers:{number:n}}){Zf(e,t,r,n)},beforeUpdate(e,t,r){e[or]=Vn(r)},updated(e,{value:t,oldValue:r,modifiers:{number:n}}){e._assigning||Zf(e,t,r,n)}};function Zf(e,t,r,n){const s=e.multiple,i=ge(t);if(!(s&&!i&&!ci(t))&&!(i&&jn(t,r))){for(let a=0,o=e.options.length;a-1}else u.selected=t.has(l);else if(jn(ri(u),t)){e.selectedIndex!==a&&(e.selectedIndex=a);return}}!s&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function ri(e){return"_value"in e?e._value:e.value}function vg(e,t){const r=t?"_trueValue":"_falseValue";return r in e?e[r]:t}const fB={created(e,t,r){Na(e,t,r,null,"created")},mounted(e,t,r){Na(e,t,r,null,"mounted")},beforeUpdate(e,t,r,n){Na(e,t,r,n,"beforeUpdate")},updated(e,t,r,n){Na(e,t,r,n,"updated")}};function Zb(e,t){switch(e){case"SELECT":return mg;case"TEXTAREA":return Ae;default:switch(t){case"checkbox":return Xb;case"radio":return Vl;default:return Ae}}}function Na(e,t,r,n,s){const a=Zb(e.tagName,r.props&&r.props.type)[s];a&&a(e,t,r,n)}const Qb=["ctrl","shift","alt","meta"],ew={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,t)=>Qb.some(r=>e[`${r}Key`]&&!t.includes(r))},tw=(e,t)=>{const r=e._withMods||(e._withMods={}),n=t.join(".");return r[n]||(r[n]=(s,...i)=>{for(let a=0;a{const r=e._withKeys||(e._withKeys={}),n=t.join(".");return r[n]||(r[n]=s=>{if(!("key"in s))return;const i=ws(s.key);if(t.some(a=>a===i||rw[a]===i))return e(s)})},sw=yt({patchProp:Wb},Tb);let Qf;function iw(){return Qf||(Qf=ob(sw))}const aw=(...e)=>{const t=iw().createApp(...e),{mount:r}=t;return t.mount=n=>{const s=uw(n);if(!s)return;const i=t._component;!ke(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.innerHTML="";const a=r(s,!1,ow(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),a},t};function ow(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function uw(e){return ut(e)?document.querySelector(e):e}var lw=!1;/*! + * pinia v2.1.7 + * (c) 2023 Eduardo San Martin Morote + * @license MIT + */let yg;const zo=e=>yg=e,bg=Symbol();function Ul(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Ii;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Ii||(Ii={}));function cw(){const e=d0(!0),t=e.run(()=>tt({}));let r=[],n=[];const s=Bo({install(i){zo(s),s._a=i,i.provide(bg,s),i.config.globalProperties.$pinia=s,n.forEach(a=>r.push(a)),n=[]},use(i){return!this._a&&!lw?n.push(i):r.push(i),this},_p:r,_a:null,_e:e,_s:new Map,state:t});return s}const wg=()=>{};function ed(e,t,r,n=wg){e.push(t);const s=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),n())};return!r&&p0()&&Vv(s),s}function Rs(e,...t){e.slice().forEach(r=>{r(...t)})}const hw=e=>e();function ql(e,t){e instanceof Map&&t instanceof Map&&t.forEach((r,n)=>e.set(n,r)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const r in t){if(!t.hasOwnProperty(r))continue;const n=t[r],s=e[r];Ul(s)&&Ul(n)&&e.hasOwnProperty(r)&&!gt(n)&&!Rn(n)?e[r]=ql(s,n):e[r]=n}return e}const fw=Symbol();function dw(e){return!Ul(e)||!e.hasOwnProperty(fw)}const{assign:yn}=Object;function pw(e){return!!(gt(e)&&e.effect)}function gw(e,t,r,n){const{state:s,actions:i,getters:a}=t,o=r.state.value[e];let u;function l(){o||(r.state.value[e]=s?s():{});const c=N0(r.state.value[e]);return yn(c,i,Object.keys(a||{}).reduce((f,h)=>(f[h]=Bo(et(()=>{zo(r);const p=r._s.get(e);return a[h].call(p,p)})),f),{}))}return u=xg(e,l,t,r,n,!0),u}function xg(e,t,r={},n,s,i){let a;const o=yn({actions:{}},r),u={deep:!0};let l,c,f=[],h=[],p;const d=n.state.value[e];!i&&!d&&(n.state.value[e]={}),tt({});let g;function m(S){let x;l=c=!1,typeof S=="function"?(S(n.state.value[e]),x={type:Ii.patchFunction,storeId:e,events:p}):(ql(n.state.value[e],S),x={type:Ii.patchObject,payload:S,storeId:e,events:p});const A=g=Symbol();ua().then(()=>{g===A&&(l=!0)}),c=!0,Rs(f,x,n.state.value[e])}const y=i?function(){const{state:x}=r,A=x?x():{};this.$patch(T=>{yn(T,A)})}:wg;function w(){a.stop(),f=[],h=[],n._s.delete(e)}function C(S,x){return function(){zo(n);const A=Array.from(arguments),T=[],D=[];function N(M){T.push(M)}function F(M){D.push(M)}Rs(h,{args:A,name:S,store:P,after:N,onError:F});let R;try{R=x.apply(this&&this.$id===e?this:P,A)}catch(M){throw Rs(D,M),M}return R instanceof Promise?R.then(M=>(Rs(T,M),M)).catch(M=>(Rs(D,M),Promise.reject(M))):(Rs(T,R),R)}}const k={_p:n,$id:e,$onAction:ed.bind(null,h),$patch:m,$reset:y,$subscribe(S,x={}){const A=ed(f,S,x.detached,()=>T()),T=a.run(()=>zs(()=>n.state.value[e],D=>{(x.flush==="sync"?c:l)&&S({storeId:e,type:Ii.direct,events:p},D)},yn({},u,x)));return A},$dispose:w},P=Br(k);n._s.set(e,P);const _=(n._a&&n._a.runWithContext||hw)(()=>n._e.run(()=>(a=d0()).run(t)));for(const S in _){const x=_[S];if(gt(x)&&!pw(x)||Rn(x))i||(d&&dw(x)&&(gt(x)?x.value=d[S]:ql(x,d[S])),n.state.value[e][S]=x);else if(typeof x=="function"){const A=C(S,x);_[S]=A,o.actions[S]=x}}return yn(P,_),yn(Ne(P),_),Object.defineProperty(P,"$state",{get:()=>n.state.value[e],set:S=>{m(x=>{yn(x,S)})}}),n._p.forEach(S=>{yn(P,a.run(()=>S({store:P,app:n._a,pinia:n,options:o})))}),d&&i&&r.hydrate&&r.hydrate(P.$state,d),l=!0,c=!0,P}function Cr(e,t,r){let n,s;const i=typeof t=="function";typeof e=="string"?(n=e,s=i?r:t):(s=e,n=e.id);function a(o,u){const l=tb();return o=o||(l?Jt(bg,null):null),o&&zo(o),o=yg,o._s.has(n)||(i?xg(n,t,s,o):gw(n,s,o)),o._s.get(n)}return a.$id=n,a}/*! + * vue-router v4.2.5 + * (c) 2023 Eduardo San Martin Morote + * @license MIT + */const $s=typeof window!="undefined";function mw(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const qe=Object.assign;function Yu(e,t){const r={};for(const n in t){const s=t[n];r[n]=wr(s)?s.map(e):e(s)}return r}const Ni=()=>{},wr=Array.isArray,vw=/\/$/,yw=e=>e.replace(vw,"");function zu(e,t,r="/"){let n,s={},i="",a="";const o=t.indexOf("#");let u=t.indexOf("?");return o=0&&(u=-1),u>-1&&(n=t.slice(0,u),i=t.slice(u+1,o>-1?o:t.length),s=e(i)),o>-1&&(n=n||t.slice(0,o),a=t.slice(o,t.length)),n=Sw(n!=null?n:t,r),{fullPath:n+(i&&"?")+i+a,path:n,query:s,hash:a}}function bw(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function td(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function ww(e,t,r){const n=t.matched.length-1,s=r.matched.length-1;return n>-1&&n===s&&ni(t.matched[n],r.matched[s])&&Sg(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function ni(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Sg(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!xw(e[r],t[r]))return!1;return!0}function xw(e,t){return wr(e)?rd(e,t):wr(t)?rd(t,e):e===t}function rd(e,t){return wr(t)?e.length===t.length&&e.every((r,n)=>r===t[n]):e.length===1&&e[0]===t}function Sw(e,t){if(e.startsWith("/"))return e;if(!e)return t;const r=t.split("/"),n=e.split("/"),s=n[n.length-1];(s===".."||s===".")&&n.push("");let i=r.length-1,a,o;for(a=0;a1&&i--;else break;return r.slice(0,i).join("/")+"/"+n.slice(a-(a===n.length?1:0)).join("/")}var Zi;(function(e){e.pop="pop",e.push="push"})(Zi||(Zi={}));var Mi;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Mi||(Mi={}));function _w(e){if(!e)if($s){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),yw(e)}const Ew=/^[^#]+#/;function Cw(e,t){return e.replace(Ew,"#")+t}function kw(e,t){const r=document.documentElement.getBoundingClientRect(),n=e.getBoundingClientRect();return{behavior:t.behavior,left:n.left-r.left-(t.left||0),top:n.top-r.top-(t.top||0)}}const Wo=()=>({left:window.pageXOffset,top:window.pageYOffset});function Aw(e){let t;if("el"in e){const r=e.el,n=typeof r=="string"&&r.startsWith("#"),s=typeof r=="string"?n?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!s)return;t=kw(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function nd(e,t){return(history.state?history.state.position-t:-1)+e}const Kl=new Map;function Pw(e,t){Kl.set(e,t)}function Tw(e){const t=Kl.get(e);return Kl.delete(e),t}let Dw=()=>location.protocol+"//"+location.host;function _g(e,t){const{pathname:r,search:n,hash:s}=t,i=e.indexOf("#");if(i>-1){let o=s.includes(e.slice(i))?e.slice(i).length:1,u=s.slice(o);return u[0]!=="/"&&(u="/"+u),td(u,"")}return td(r,e)+n+s}function Fw(e,t,r,n){let s=[],i=[],a=null;const o=({state:h})=>{const p=_g(e,location),d=r.value,g=t.value;let m=0;if(h){if(r.value=p,t.value=h,a&&a===d){a=null;return}m=g?h.position-g.position:0}else n(p);s.forEach(y=>{y(r.value,d,{delta:m,type:Zi.pop,direction:m?m>0?Mi.forward:Mi.back:Mi.unknown})})};function u(){a=r.value}function l(h){s.push(h);const p=()=>{const d=s.indexOf(h);d>-1&&s.splice(d,1)};return i.push(p),p}function c(){const{history:h}=window;h.state&&h.replaceState(qe({},h.state,{scroll:Wo()}),"")}function f(){for(const h of i)h();i=[],window.removeEventListener("popstate",o),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",o),window.addEventListener("beforeunload",c,{passive:!0}),{pauseListeners:u,listen:l,destroy:f}}function sd(e,t,r,n=!1,s=!1){return{back:e,current:t,forward:r,replaced:n,position:window.history.length,scroll:s?Wo():null}}function Ow(e){const{history:t,location:r}=window,n={value:_g(e,r)},s={value:t.state};s.value||i(n.value,{back:null,current:n.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(u,l,c){const f=e.indexOf("#"),h=f>-1?(r.host&&document.querySelector("base")?e:e.slice(f))+u:Dw()+e+u;try{t[c?"replaceState":"pushState"](l,"",h),s.value=l}catch(p){console.error(p),r[c?"replace":"assign"](h)}}function a(u,l){const c=qe({},t.state,sd(s.value.back,u,s.value.forward,!0),l,{position:s.value.position});i(u,c,!0),n.value=u}function o(u,l){const c=qe({},s.value,t.state,{forward:u,scroll:Wo()});i(c.current,c,!0);const f=qe({},sd(n.value,u,null),{position:c.position+1},l);i(u,f,!1),n.value=u}return{location:n,state:s,push:o,replace:a}}function Rw(e){e=_w(e);const t=Ow(e),r=Fw(e,t.state,t.location,t.replace);function n(i,a=!0){a||r.pauseListeners(),history.go(i)}const s=qe({location:"",base:e,go:n,createHref:Cw.bind(null,e)},t,r);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}function Iw(e){return typeof e=="string"||e&&typeof e=="object"}function Eg(e){return typeof e=="string"||typeof e=="symbol"}const mn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Cg=Symbol("");var id;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(id||(id={}));function si(e,t){return qe(new Error,{type:e,[Cg]:!0},t)}function Ur(e,t){return e instanceof Error&&Cg in e&&(t==null||!!(e.type&t))}const ad="[^/]+?",Nw={sensitive:!1,strict:!1,start:!0,end:!0},Mw=/[.+*?^${}()[\]/\\]/g;function Bw(e,t){const r=qe({},Nw,t),n=[];let s=r.start?"^":"";const i=[];for(const l of e){const c=l.length?[]:[90];r.strict&&!l.length&&(s+="/");for(let f=0;ft.length?t.length===1&&t[0]===40+40?1:-1:0}function Hw(e,t){let r=0;const n=e.score,s=t.score;for(;r0&&t[t.length-1]<0}const jw={type:0,value:""},Lw=/[a-zA-Z0-9_]/;function Vw(e){if(!e)return[[]];if(e==="/")return[[jw]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${r})/"${l}": ${p}`)}let r=0,n=r;const s=[];let i;function a(){i&&s.push(i),i=[]}let o=0,u,l="",c="";function f(){l&&(r===0?i.push({type:0,value:l}):r===1||r===2||r===3?(i.length>1&&(u==="*"||u==="+")&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:l,regexp:c,repeatable:u==="*"||u==="+",optional:u==="*"||u==="?"})):t("Invalid state to consume buffer"),l="")}function h(){l+=u}for(;o{a(w)}:Ni}function a(c){if(Eg(c)){const f=n.get(c);f&&(n.delete(c),r.splice(r.indexOf(f),1),f.children.forEach(a),f.alias.forEach(a))}else{const f=r.indexOf(c);f>-1&&(r.splice(f,1),c.record.name&&n.delete(c.record.name),c.children.forEach(a),c.alias.forEach(a))}}function o(){return r}function u(c){let f=0;for(;f=0&&(c.record.path!==r[f].record.path||!kg(c,r[f]));)f++;r.splice(f,0,c),c.record.name&&!ld(c)&&n.set(c.record.name,c)}function l(c,f){let h,p={},d,g;if("name"in c&&c.name){if(h=n.get(c.name),!h)throw si(1,{location:c});g=h.record.name,p=qe(ud(f.params,h.keys.filter(w=>!w.optional).map(w=>w.name)),c.params&&ud(c.params,h.keys.map(w=>w.name))),d=h.stringify(p)}else if("path"in c)d=c.path,h=r.find(w=>w.re.test(d)),h&&(p=h.parse(d),g=h.record.name);else{if(h=f.name?n.get(f.name):r.find(w=>w.re.test(f.path)),!h)throw si(1,{location:c,currentLocation:f});g=h.record.name,p=qe({},f.params,c.params),d=h.stringify(p)}const m=[];let y=h;for(;y;)m.unshift(y.record),y=y.parent;return{name:g,path:d,params:p,matched:m,meta:zw(m)}}return e.forEach(c=>i(c)),{addRoute:i,resolve:l,removeRoute:a,getRoutes:o,getRecordMatcher:s}}function ud(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}function Kw(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Yw(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function Yw(e){const t={},r=e.props||!1;if("component"in e)t.default=r;else for(const n in e.components)t[n]=typeof r=="object"?r[n]:r;return t}function ld(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function zw(e){return e.reduce((t,r)=>qe(t,r.meta),{})}function cd(e,t){const r={};for(const n in e)r[n]=n in t?t[n]:e[n];return r}function kg(e,t){return t.children.some(r=>r===e||kg(e,r))}const Ag=/#/g,Ww=/&/g,Gw=/\//g,Jw=/=/g,Xw=/\?/g,Pg=/\+/g,Zw=/%5B/g,Qw=/%5D/g,Tg=/%5E/g,e2=/%60/g,Dg=/%7B/g,t2=/%7C/g,Fg=/%7D/g,r2=/%20/g;function Uc(e){return encodeURI(""+e).replace(t2,"|").replace(Zw,"[").replace(Qw,"]")}function n2(e){return Uc(e).replace(Dg,"{").replace(Fg,"}").replace(Tg,"^")}function Yl(e){return Uc(e).replace(Pg,"%2B").replace(r2,"+").replace(Ag,"%23").replace(Ww,"%26").replace(e2,"`").replace(Dg,"{").replace(Fg,"}").replace(Tg,"^")}function s2(e){return Yl(e).replace(Jw,"%3D")}function i2(e){return Uc(e).replace(Ag,"%23").replace(Xw,"%3F")}function a2(e){return e==null?"":i2(e).replace(Gw,"%2F")}function ho(e){try{return decodeURIComponent(""+e)}catch(t){}return""+e}function o2(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;si&&Yl(i)):[n&&Yl(n)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+r,i!=null&&(t+="="+i))})}return t}function u2(e){const t={};for(const r in e){const n=e[r];n!==void 0&&(t[r]=wr(n)?n.map(s=>s==null?null:""+s):n==null?n:""+n)}return t}const l2=Symbol(""),fd=Symbol(""),qc=Symbol(""),Og=Symbol(""),zl=Symbol("");function Si(){let e=[];function t(n){return e.push(n),()=>{const s=e.indexOf(n);s>-1&&e.splice(s,1)}}function r(){e=[]}return{add:t,list:()=>e.slice(),reset:r}}function Cn(e,t,r,n,s){const i=n&&(n.enterCallbacks[s]=n.enterCallbacks[s]||[]);return()=>new Promise((a,o)=>{const u=f=>{f===!1?o(si(4,{from:r,to:t})):f instanceof Error?o(f):Iw(f)?o(si(2,{from:t,to:f})):(i&&n.enterCallbacks[s]===i&&typeof f=="function"&&i.push(f),a())},l=e.call(n&&n.instances[s],t,r,u);let c=Promise.resolve(l);e.length<3&&(c=c.then(u)),c.catch(f=>o(f))})}function Wu(e,t,r,n){const s=[];for(const i of e)for(const a in i.components){let o=i.components[a];if(!(t!=="beforeRouteEnter"&&!i.instances[a]))if(c2(o)){const l=(o.__vccOpts||o)[t];l&&s.push(Cn(l,r,n,i,a))}else{let u=o();s.push(()=>u.then(l=>{if(!l)return Promise.reject(new Error(`Couldn't resolve component "${a}" at "${i.path}"`));const c=mw(l)?l.default:l;i.components[a]=c;const h=(c.__vccOpts||c)[t];return h&&Cn(h,r,n,i,a)()}))}}return s}function c2(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function dd(e){const t=Jt(qc),r=Jt(Og),n=et(()=>t.resolve(In(e.to))),s=et(()=>{const{matched:u}=n.value,{length:l}=u,c=u[l-1],f=r.matched;if(!c||!f.length)return-1;const h=f.findIndex(ni.bind(null,c));if(h>-1)return h;const p=pd(u[l-2]);return l>1&&pd(c)===p&&f[f.length-1].path!==p?f.findIndex(ni.bind(null,u[l-2])):h}),i=et(()=>s.value>-1&&p2(r.params,n.value.params)),a=et(()=>s.value>-1&&s.value===r.matched.length-1&&Sg(r.params,n.value.params));function o(u={}){return d2(u)?t[In(e.replace)?"replace":"push"](In(e.to)).catch(Ni):Promise.resolve()}return{route:n,href:et(()=>n.value.href),isActive:i,isExactActive:a,navigate:o}}const h2=Er({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:dd,setup(e,{slots:t}){const r=Br(dd(e)),{options:n}=Jt(qc),s=et(()=>({[gd(e.activeClass,n.linkActiveClass,"router-link-active")]:r.isActive,[gd(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const i=t.default&&t.default(r);return e.custom?i:Ji("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:s.value},i)}}}),f2=h2;function d2(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function p2(e,t){for(const r in t){const n=t[r],s=e[r];if(typeof n=="string"){if(n!==s)return!1}else if(!wr(s)||s.length!==n.length||n.some((i,a)=>i!==s[a]))return!1}return!0}function pd(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const gd=(e,t,r)=>e!=null?e:t!=null?t:r,g2=Er({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){const n=Jt(zl),s=et(()=>e.route||n.value),i=Jt(fd,0),a=et(()=>{let l=In(i);const{matched:c}=s.value;let f;for(;(f=c[l])&&!f.components;)l++;return l}),o=et(()=>s.value.matched[a.value]);ms(fd,et(()=>a.value+1)),ms(l2,o),ms(zl,s);const u=tt();return zs(()=>[u.value,o.value,e.name],([l,c,f],[h,p,d])=>{c&&(c.instances[f]=l,p&&p!==c&&l&&l===h&&(c.leaveGuards.size||(c.leaveGuards=p.leaveGuards),c.updateGuards.size||(c.updateGuards=p.updateGuards))),l&&c&&(!p||!ni(c,p)||!h)&&(c.enterCallbacks[f]||[]).forEach(g=>g(l))},{flush:"post"}),()=>{const l=s.value,c=e.name,f=o.value,h=f&&f.components[c];if(!h)return md(r.default,{Component:h,route:l});const p=f.props[c],d=p?p===!0?l.params:typeof p=="function"?p(l):p:null,m=Ji(h,qe({},d,t,{onVnodeUnmounted:y=>{y.component.isUnmounted&&(f.instances[c]=null)},ref:u}));return md(r.default,{Component:m,route:l})||m}}});function md(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const m2=g2;function v2(e){const t=qw(e.routes,e),r=e.parseQuery||o2,n=e.stringifyQuery||hd,s=e.history,i=Si(),a=Si(),o=Si(),u=O0(mn);let l=mn;$s&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=Yu.bind(null,L=>""+L),f=Yu.bind(null,a2),h=Yu.bind(null,ho);function p(L,W){let G,ne;return Eg(L)?(G=t.getRecordMatcher(L),ne=W):ne=L,t.addRoute(ne,G)}function d(L){const W=t.getRecordMatcher(L);W&&t.removeRoute(W)}function g(){return t.getRoutes().map(L=>L.record)}function m(L){return!!t.getRecordMatcher(L)}function y(L,W){if(W=qe({},W||u.value),typeof L=="string"){const I=zu(r,L,W.path),j=t.resolve({path:I.path},W),K=s.createHref(I.fullPath);return qe(I,j,{params:h(j.params),hash:ho(I.hash),redirectedFrom:void 0,href:K})}let G;if("path"in L)G=qe({},L,{path:zu(r,L.path,W.path).path});else{const I=qe({},L.params);for(const j in I)I[j]==null&&delete I[j];G=qe({},L,{params:f(I)}),W.params=f(W.params)}const ne=t.resolve(G,W),xe=L.hash||"";ne.params=c(h(ne.params));const be=bw(n,qe({},L,{hash:n2(xe),path:ne.path})),O=s.createHref(be);return qe({fullPath:be,hash:xe,query:n===hd?u2(L.query):L.query||{}},ne,{redirectedFrom:void 0,href:O})}function w(L){return typeof L=="string"?zu(r,L,u.value.path):qe({},L)}function C(L,W){if(l!==L)return si(8,{from:W,to:L})}function k(L){return _(L)}function P(L){return k(qe(w(L),{replace:!0}))}function b(L){const W=L.matched[L.matched.length-1];if(W&&W.redirect){const{redirect:G}=W;let ne=typeof G=="function"?G(L):G;return typeof ne=="string"&&(ne=ne.includes("?")||ne.includes("#")?ne=w(ne):{path:ne},ne.params={}),qe({query:L.query,hash:L.hash,params:"path"in ne?{}:L.params},ne)}}function _(L,W){const G=l=y(L),ne=u.value,xe=L.state,be=L.force,O=L.replace===!0,I=b(G);if(I)return _(qe(w(I),{state:typeof I=="object"?qe({},xe,I.state):xe,force:be,replace:O}),W||G);const j=G;j.redirectedFrom=W;let K;return!be&&ww(n,ne,G)&&(K=si(16,{to:j,from:ne}),Fe(ne,ne,!0,!1)),(K?Promise.resolve(K):A(j,ne)).catch(Y=>Ur(Y)?Ur(Y,2)?Y:de(Y):ae(Y,j,ne)).then(Y=>{if(Y){if(Ur(Y,2))return _(qe({replace:O},w(Y.to),{state:typeof Y.to=="object"?qe({},xe,Y.to.state):xe,force:be}),W||j)}else Y=D(j,ne,!0,O,xe);return T(j,ne,Y),Y})}function S(L,W){const G=C(L,W);return G?Promise.reject(G):Promise.resolve()}function x(L){const W=Ze.values().next().value;return W&&typeof W.runWithContext=="function"?W.runWithContext(L):L()}function A(L,W){let G;const[ne,xe,be]=y2(L,W);G=Wu(ne.reverse(),"beforeRouteLeave",L,W);for(const I of ne)I.leaveGuards.forEach(j=>{G.push(Cn(j,L,W))});const O=S.bind(null,L,W);return G.push(O),je(G).then(()=>{G=[];for(const I of i.list())G.push(Cn(I,L,W));return G.push(O),je(G)}).then(()=>{G=Wu(xe,"beforeRouteUpdate",L,W);for(const I of xe)I.updateGuards.forEach(j=>{G.push(Cn(j,L,W))});return G.push(O),je(G)}).then(()=>{G=[];for(const I of be)if(I.beforeEnter)if(wr(I.beforeEnter))for(const j of I.beforeEnter)G.push(Cn(j,L,W));else G.push(Cn(I.beforeEnter,L,W));return G.push(O),je(G)}).then(()=>(L.matched.forEach(I=>I.enterCallbacks={}),G=Wu(be,"beforeRouteEnter",L,W),G.push(O),je(G))).then(()=>{G=[];for(const I of a.list())G.push(Cn(I,L,W));return G.push(O),je(G)}).catch(I=>Ur(I,8)?I:Promise.reject(I))}function T(L,W,G){o.list().forEach(ne=>x(()=>ne(L,W,G)))}function D(L,W,G,ne,xe){const be=C(L,W);if(be)return be;const O=W===mn,I=$s?history.state:{};G&&(ne||O?s.replace(L.fullPath,qe({scroll:O&&I&&I.scroll},xe)):s.push(L.fullPath,xe)),u.value=L,Fe(L,W,G,O),de()}let N;function F(){N||(N=s.listen((L,W,G)=>{if(!Ar.listening)return;const ne=y(L),xe=b(ne);if(xe){_(qe(xe,{replace:!0}),ne).catch(Ni);return}l=ne;const be=u.value;$s&&Pw(nd(be.fullPath,G.delta),Wo()),A(ne,be).catch(O=>Ur(O,12)?O:Ur(O,2)?(_(O.to,ne).then(I=>{Ur(I,20)&&!G.delta&&G.type===Zi.pop&&s.go(-1,!1)}).catch(Ni),Promise.reject()):(G.delta&&s.go(-G.delta,!1),ae(O,ne,be))).then(O=>{O=O||D(ne,be,!1),O&&(G.delta&&!Ur(O,8)?s.go(-G.delta,!1):G.type===Zi.pop&&Ur(O,20)&&s.go(-1,!1)),T(ne,be,O)}).catch(Ni)}))}let R=Si(),M=Si(),$;function ae(L,W,G){de(L);const ne=M.list();return ne.length?ne.forEach(xe=>xe(L,W,G)):console.error(L),Promise.reject(L)}function ve(){return $&&u.value!==mn?Promise.resolve():new Promise((L,W)=>{R.add([L,W])})}function de(L){return $||($=!L,F(),R.list().forEach(([W,G])=>L?G(L):W()),R.reset()),L}function Fe(L,W,G,ne){const{scrollBehavior:xe}=e;if(!$s||!xe)return Promise.resolve();const be=!G&&Tw(nd(L.fullPath,0))||(ne||!G)&&history.state&&history.state.scroll||null;return ua().then(()=>xe(L,W,be)).then(O=>O&&Aw(O)).catch(O=>ae(O,L,W))}const Be=L=>s.go(L);let st;const Ze=new Set,Ar={currentRoute:u,listening:!0,addRoute:p,removeRoute:d,hasRoute:m,getRoutes:g,resolve:y,options:e,push:k,replace:P,go:Be,back:()=>Be(-1),forward:()=>Be(1),beforeEach:i.add,beforeResolve:a.add,afterEach:o.add,onError:M.add,isReady:ve,install(L){const W=this;L.component("RouterLink",f2),L.component("RouterView",m2),L.config.globalProperties.$router=W,Object.defineProperty(L.config.globalProperties,"$route",{enumerable:!0,get:()=>In(u)}),$s&&!st&&u.value===mn&&(st=!0,k(s.location).catch(xe=>{}));const G={};for(const xe in mn)Object.defineProperty(G,xe,{get:()=>u.value[xe],enumerable:!0});L.provide(qc,W),L.provide(Og,A0(G)),L.provide(zl,u);const ne=L.unmount;Ze.add(L),L.unmount=function(){Ze.delete(L),Ze.size<1&&(l=mn,N&&N(),N=null,u.value=mn,st=!1,$=!1),ne()}}};function je(L){return L.reduce((W,G)=>W.then(()=>x(G)),Promise.resolve())}return Ar}function y2(e,t){const r=[],n=[],s=[],i=Math.max(t.matched.length,e.matched.length);for(let a=0;ani(l,o))?n.push(o):r.push(o));const u=e.matched[a];u&&(t.matched.find(l=>ni(l,u))||s.push(u))}return[r,n,s]}const b2="modulepreload",w2=function(e){return"/assets/ury_pos/urypos/"+e},vd={},x2=function(t,r,n){if(!r||r.length===0)return t();const s=document.getElementsByTagName("link");return Promise.all(r.map(i=>{if(i=w2(i),i in vd)return;vd[i]=!0;const a=i.endsWith(".css"),o=a?'[rel="stylesheet"]':"";if(!!n)for(let c=s.length-1;c>=0;c--){const f=s[c];if(f.href===i&&(!a||f.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${o}`))return;const l=document.createElement("link");if(l.rel=a?"stylesheet":b2,a||(l.as="script",l.crossOrigin=""),l.href=i,document.head.appendChild(l),a)return new Promise((c,f)=>{l.addEventListener("load",c),l.addEventListener("error",()=>f(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t()).catch(i=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i})},S2=[{path:"/login",name:"Login",component:()=>x2(()=>import("./Login-68d9adae.js"),[]),meta:{isLoginPage:!0},props:!0}],ca=Cr("notification",{state:()=>({}),actions:{createNotification(e){const t=document.createElement("div");t.classList.add("fixed","bottom-20","right-5"),document.body.appendChild(t);const r=document.createElement("div");r.classList.add("bg-green-100","text-dark","py-2","px-2","mr-3"),r.style.borderRadius="5px",r.style.width="400px",r.style.height="65px",window.matchMedia("(max-width: 640px)").matches&&(r.style.width="300px");const s=document.createElement("span");s.innerHTML=` + Close + + + `,s.classList.add("cursor-pointer","ml-12","absolute","top-4","right-7"),s.addEventListener("click",()=>{r.remove(),t.remove()}),r.appendChild(s);const i=document.createElement("h2");i.textContent=e,i.classList.add("mt-2"),r.appendChild(i),t.appendChild(r),setTimeout(()=>{r.remove(),t.remove()},900)}}});var Ye=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Rg(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function _2(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var s=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,s.get?s:{enumerable:!0,get:function(){return e[n]}})}),r}var Gu={},_i={},ha={},er=Ye&&Ye.__assign||function(){return er=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&i[i.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]0&&i[i.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]0?[2,this.getDoc(t,s[0].name)]:[2,{}]}})})},e}();fa.FrappeDB=C2;var da={},fo=Ye&&Ye.__assign||function(){return fo=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&i[i.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]=0)return;i==="set-cookie"?s[i]=(s[i]?s[i]:[]).concat([a]):s[i]=s[i]?s[i]+", "+a:a}}),s},rl}var nl,kd;function ex(){if(kd)return nl;kd=1;var e=jt;return nl=e.isStandardBrowserEnv()?function(){var r=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a"),s;function i(a){var o=a;return r&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return s=i(window.location.href),function(o){var u=e.isString(o)?i(o):o;return u.protocol===s.protocol&&u.host===s.host}}():function(){return function(){return!0}}(),nl}var sl,Ad;function Jo(){if(Ad)return sl;Ad=1;function e(t){this.message=t}return e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,sl=e,sl}var il,Pd;function Td(){if(Pd)return il;Pd=1;var e=jt,t=W2(),r=G2(),n=$g,s=Z2(),i=Q2(),a=ex(),o=Lg(),u=jg,l=Jo();return il=function(f){return new Promise(function(p,d){var g=f.data,m=f.headers,y=f.responseType,w;function C(){f.cancelToken&&f.cancelToken.unsubscribe(w),f.signal&&f.signal.removeEventListener("abort",w)}e.isFormData(g)&&delete m["Content-Type"];var k=new XMLHttpRequest;if(f.auth){var P=f.auth.username||"",b=f.auth.password?unescape(encodeURIComponent(f.auth.password)):"";m.Authorization="Basic "+btoa(P+":"+b)}var _=s(f.baseURL,f.url);k.open(f.method.toUpperCase(),n(_,f.params,f.paramsSerializer),!0),k.timeout=f.timeout;function S(){if(k){var A="getAllResponseHeaders"in k?i(k.getAllResponseHeaders()):null,T=!y||y==="text"||y==="json"?k.responseText:k.response,D={data:T,status:k.status,statusText:k.statusText,headers:A,config:f,request:k};t(function(F){p(F),C()},function(F){d(F),C()},D),k=null}}if("onloadend"in k?k.onloadend=S:k.onreadystatechange=function(){!k||k.readyState!==4||k.status===0&&!(k.responseURL&&k.responseURL.indexOf("file:")===0)||setTimeout(S)},k.onabort=function(){k&&(d(o("Request aborted",f,"ECONNABORTED",k)),k=null)},k.onerror=function(){d(o("Network Error",f,null,k)),k=null},k.ontimeout=function(){var T=f.timeout?"timeout of "+f.timeout+"ms exceeded":"timeout exceeded",D=f.transitional||u;f.timeoutErrorMessage&&(T=f.timeoutErrorMessage),d(o(T,f,D.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",k)),k=null},e.isStandardBrowserEnv()){var x=(f.withCredentials||a(_))&&f.xsrfCookieName?r.read(f.xsrfCookieName):void 0;x&&(m[f.xsrfHeaderName]=x)}"setRequestHeader"in k&&e.forEach(m,function(T,D){typeof g=="undefined"&&D.toLowerCase()==="content-type"?delete m[D]:k.setRequestHeader(D,T)}),e.isUndefined(f.withCredentials)||(k.withCredentials=!!f.withCredentials),y&&y!=="json"&&(k.responseType=f.responseType),typeof f.onDownloadProgress=="function"&&k.addEventListener("progress",f.onDownloadProgress),typeof f.onUploadProgress=="function"&&k.upload&&k.upload.addEventListener("progress",f.onUploadProgress),(f.cancelToken||f.signal)&&(w=function(A){k&&(d(!A||A&&A.type?new l("canceled"):A),k.abort(),k=null)},f.cancelToken&&f.cancelToken.subscribe(w),f.signal&&(f.signal.aborted?w():f.signal.addEventListener("abort",w))),g||(g=null),k.send(g)})},il}var kt=jt,Dd=z2,tx=Hg,rx=jg,nx={"Content-Type":"application/x-www-form-urlencoded"};function Fd(e,t){!kt.isUndefined(e)&&kt.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function sx(){var e;return(typeof XMLHttpRequest!="undefined"||typeof process!="undefined"&&Object.prototype.toString.call(process)==="[object process]")&&(e=Td()),e}function ix(e,t,r){if(kt.isString(e))try{return(t||JSON.parse)(e),kt.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}var Xo={transitional:rx,adapter:sx(),transformRequest:[function(t,r){return Dd(r,"Accept"),Dd(r,"Content-Type"),kt.isFormData(t)||kt.isArrayBuffer(t)||kt.isBuffer(t)||kt.isStream(t)||kt.isFile(t)||kt.isBlob(t)?t:kt.isArrayBufferView(t)?t.buffer:kt.isURLSearchParams(t)?(Fd(r,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):kt.isObject(t)||r&&r["Content-Type"]==="application/json"?(Fd(r,"application/json"),ix(t)):t}],transformResponse:[function(t){var r=this.transitional||Xo.transitional,n=r&&r.silentJSONParsing,s=r&&r.forcedJSONParsing,i=!n&&this.responseType==="json";if(i||s&&kt.isString(t)&&t.length)try{return JSON.parse(t)}catch(a){if(i)throw a.name==="SyntaxError"?tx(a,this,"E_JSON_PARSE"):a}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};kt.forEach(["delete","get","head"],function(t){Xo.headers[t]={}});kt.forEach(["post","put","patch"],function(t){Xo.headers[t]=kt.merge(nx)});var Wc=Xo,ax=jt,ox=Wc,ux=function(t,r,n){var s=this||ox;return ax.forEach(n,function(a){t=a.call(s,t,r)}),t},al,Od;function Vg(){return Od||(Od=1,al=function(t){return!!(t&&t.__CANCEL__)}),al}var Rd=jt,ol=ux,lx=Vg(),cx=Wc,hx=Jo();function ul(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new hx("canceled")}var fx=function(t){ul(t),t.headers=t.headers||{},t.data=ol.call(t,t.data,t.headers,t.transformRequest),t.headers=Rd.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),Rd.forEach(["delete","get","head","post","put","patch","common"],function(s){delete t.headers[s]});var r=t.adapter||cx.adapter;return r(t).then(function(s){return ul(t),s.data=ol.call(t,s.data,s.headers,t.transformResponse),s},function(s){return lx(s)||(ul(t),s&&s.response&&(s.response.data=ol.call(t,s.response.data,s.response.headers,t.transformResponse))),Promise.reject(s)})},Ut=jt,Ug=function(t,r){r=r||{};var n={};function s(c,f){return Ut.isPlainObject(c)&&Ut.isPlainObject(f)?Ut.merge(c,f):Ut.isPlainObject(f)?Ut.merge({},f):Ut.isArray(f)?f.slice():f}function i(c){if(Ut.isUndefined(r[c])){if(!Ut.isUndefined(t[c]))return s(void 0,t[c])}else return s(t[c],r[c])}function a(c){if(!Ut.isUndefined(r[c]))return s(void 0,r[c])}function o(c){if(Ut.isUndefined(r[c])){if(!Ut.isUndefined(t[c]))return s(void 0,t[c])}else return s(void 0,r[c])}function u(c){if(c in r)return s(t[c],r[c]);if(c in t)return s(void 0,t[c])}var l={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:u};return Ut.forEach(Object.keys(t).concat(Object.keys(r)),function(f){var h=l[f]||i,p=h(f);Ut.isUndefined(p)&&h!==u||(n[f]=p)}),n},ll,Id;function qg(){return Id||(Id=1,ll={version:"0.26.1"}),ll}var dx=qg().version,Gc={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){Gc[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var Nd={};Gc.transitional=function(t,r,n){function s(i,a){return"[Axios v"+dx+"] Transitional option '"+i+"'"+a+(n?". "+n:"")}return function(i,a,o){if(t===!1)throw new Error(s(a," has been removed"+(r?" in "+r:"")));return r&&!Nd[a]&&(Nd[a]=!0,console.warn(s(a," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(i,a,o):!0}};function px(e,t,r){if(typeof e!="object")throw new TypeError("options must be an object");for(var n=Object.keys(e),s=n.length;s-- >0;){var i=n[s],a=t[i];if(a){var o=e[i],u=o===void 0||a(o,i,e);if(u!==!0)throw new TypeError("option "+i+" must be "+u);continue}if(r!==!0)throw Error("Unknown option "+i)}}var gx={assertOptions:px,validators:Gc},Kg=jt,mx=$g,Md=K2,Bd=fx,Zo=Ug,Yg=gx,Ns=Yg.validators;function pa(e){this.defaults=e,this.interceptors={request:new Md,response:new Md}}pa.prototype.request=function(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Zo(this.defaults,r),r.method?r.method=r.method.toLowerCase():this.defaults.method?r.method=this.defaults.method.toLowerCase():r.method="get";var n=r.transitional;n!==void 0&&Yg.assertOptions(n,{silentJSONParsing:Ns.transitional(Ns.boolean),forcedJSONParsing:Ns.transitional(Ns.boolean),clarifyTimeoutError:Ns.transitional(Ns.boolean)},!1);var s=[],i=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(r)===!1||(i=i&&p.synchronous,s.unshift(p.fulfilled,p.rejected))});var a=[];this.interceptors.response.forEach(function(p){a.push(p.fulfilled,p.rejected)});var o;if(!i){var u=[Bd,void 0];for(Array.prototype.unshift.apply(u,s),u=u.concat(a),o=Promise.resolve(r);u.length;)o=o.then(u.shift(),u.shift());return o}for(var l=r;s.length;){var c=s.shift(),f=s.shift();try{l=c(l)}catch(h){f(h);break}}try{o=Bd(l)}catch(h){return Promise.reject(h)}for(;a.length;)o=o.then(a.shift(),a.shift());return o};pa.prototype.getUri=function(t){return t=Zo(this.defaults,t),mx(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")};Kg.forEach(["delete","get","head","options"],function(t){pa.prototype[t]=function(r,n){return this.request(Zo(n||{},{method:t,url:r,data:(n||{}).data}))}});Kg.forEach(["post","put","patch"],function(t){pa.prototype[t]=function(r,n,s){return this.request(Zo(s||{},{method:t,url:r,data:n}))}});var vx=pa,cl,$d;function yx(){if($d)return cl;$d=1;var e=Jo();function t(r){if(typeof r!="function")throw new TypeError("executor must be a function.");var n;this.promise=new Promise(function(a){n=a});var s=this;this.promise.then(function(i){if(s._listeners){var a,o=s._listeners.length;for(a=0;a0&&i[i.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]>>0,n;for(n=0;n0)for(r=0;r=0;return(i?r?"+":"":"-")+Math.pow(10,Math.max(0,s)).toString().substr(1)+n}var eh=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,ja=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,pl={},Ws={};function pe(e,t,r,n){var s=n;typeof n=="string"&&(s=function(){return this[n]()}),e&&(Ws[e]=s),t&&(Ws[t[0]]=function(){return $r(s.apply(this,arguments),t[1],t[2])}),r&&(Ws[r]=function(){return this.localeData().ordinal(s.apply(this,arguments),e)})}function Hx(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function jx(e){var t=e.match(eh),r,n;for(r=0,n=t.length;r=0&&ja.test(e);)e=e.replace(ja,n),ja.lastIndex=0,r-=1;return e}var Lx={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Vx(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match(eh).map(function(n){return n==="MMMM"||n==="MM"||n==="DD"||n==="dddd"?n.slice(1):n}).join(""),this._longDateFormat[e])}var Ux="Invalid date";function qx(){return this._invalidDate}var Kx="%d",Yx=/\d{1,2}/;function zx(e){return this._ordinal.replace("%d",e)}var Wx={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Gx(e,t,r,n){var s=this._relativeTime[r];return Lr(s)?s(e,t,r,n):s.replace(/%d/i,e)}function Jx(e,t){var r=this._relativeTime[e>0?"future":"past"];return Lr(r)?r(t):r.replace(/%s/i,t)}var Yd={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function hr(e){return typeof e=="string"?Yd[e]||Yd[e.toLowerCase()]:void 0}function th(e){var t={},r,n;for(n in e)Le(e,n)&&(r=hr(n),r&&(t[r]=e[n]));return t}var Xx={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function Zx(e){var t=[],r;for(r in e)Le(e,r)&&t.push({unit:r,priority:Xx[r]});return t.sort(function(n,s){return n.priority-s.priority}),t}var rm=/\d/,Zt=/\d\d/,nm=/\d{3}/,rh=/\d{4}/,tu=/[+-]?\d{6}/,nt=/\d\d?/,sm=/\d\d\d\d?/,im=/\d\d\d\d\d\d?/,ru=/\d{1,3}/,nh=/\d{1,4}/,nu=/[+-]?\d{1,6}/,hi=/\d+/,su=/[+-]?\d+/,Qx=/Z|[+-]\d\d:?\d\d/gi,iu=/Z|[+-]\d\d(?::?\d\d)?/gi,eS=/[+-]?\d+(\.\d{1,3})?/,va=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,fi=/^[1-9]\d?/,sh=/^([1-9]\d|\d)/,po;po={};function he(e,t,r){po[e]=Lr(t)?t:function(n,s){return n&&r?r:t}}function tS(e,t){return Le(po,e)?po[e](t._strict,t._locale):new RegExp(rS(e))}function rS(e){return Xr(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,r,n,s,i){return r||n||s||i}))}function Xr(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function tr(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Oe(e){var t=+e,r=0;return t!==0&&isFinite(t)&&(r=tr(t)),r}var Ql={};function Ge(e,t){var r,n=t,s;for(typeof e=="string"&&(e=[e]),tn(t)&&(n=function(i,a){a[t]=Oe(i)}),s=e.length,r=0;r68?1900:2e3)};var am=di("FullYear",!0);function aS(){return au(this.year())}function di(e,t){return function(r){return r!=null?(om(this,e,r),le.updateOffset(this,t),this):Qi(this,e)}}function Qi(e,t){if(!e.isValid())return NaN;var r=e._d,n=e._isUTC;switch(t){case"Milliseconds":return n?r.getUTCMilliseconds():r.getMilliseconds();case"Seconds":return n?r.getUTCSeconds():r.getSeconds();case"Minutes":return n?r.getUTCMinutes():r.getMinutes();case"Hours":return n?r.getUTCHours():r.getHours();case"Date":return n?r.getUTCDate():r.getDate();case"Day":return n?r.getUTCDay():r.getDay();case"Month":return n?r.getUTCMonth():r.getMonth();case"FullYear":return n?r.getUTCFullYear():r.getFullYear();default:return NaN}}function om(e,t,r){var n,s,i,a,o;if(!(!e.isValid()||isNaN(r))){switch(n=e._d,s=e._isUTC,t){case"Milliseconds":return void(s?n.setUTCMilliseconds(r):n.setMilliseconds(r));case"Seconds":return void(s?n.setUTCSeconds(r):n.setSeconds(r));case"Minutes":return void(s?n.setUTCMinutes(r):n.setMinutes(r));case"Hours":return void(s?n.setUTCHours(r):n.setHours(r));case"Date":return void(s?n.setUTCDate(r):n.setDate(r));case"FullYear":break;default:return}i=r,a=e.month(),o=e.date(),o=o===29&&a===1&&!au(i)?28:o,s?n.setUTCFullYear(i,a,o):n.setFullYear(i,a,o)}}function oS(e){return e=hr(e),Lr(this[e])?this[e]():this}function uS(e,t){if(typeof e=="object"){e=th(e);var r=Zx(e),n,s=r.length;for(n=0;n=0?(o=new Date(e+400,t,r,n,s,i,a),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,r,n,s,i,a),o}function ea(e){var t,r;return e<100&&e>=0?(r=Array.prototype.slice.call(arguments),r[0]=e+400,t=new Date(Date.UTC.apply(null,r)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function go(e,t,r){var n=7+t-r,s=(7+ea(e,0,n).getUTCDay()-t)%7;return-s+n-1}function dm(e,t,r,n,s){var i=(7+r-n)%7,a=go(e,n,s),o=1+7*(t-1)+i+a,u,l;return o<=0?(u=e-1,l=Bi(u)+o):o>Bi(e)?(u=e+1,l=o-Bi(e)):(u=e,l=o),{year:u,dayOfYear:l}}function ta(e,t,r){var n=go(e.year(),t,r),s=Math.floor((e.dayOfYear()-n-1)/7)+1,i,a;return s<1?(a=e.year()-1,i=s+Zr(a,t,r)):s>Zr(e.year(),t,r)?(i=s-Zr(e.year(),t,r),a=e.year()+1):(a=e.year(),i=s),{week:i,year:a}}function Zr(e,t,r){var n=go(e,t,r),s=go(e+1,t,r);return(Bi(e)-n+s)/7}pe("w",["ww",2],"wo","week");pe("W",["WW",2],"Wo","isoWeek");he("w",nt,fi);he("ww",nt,Zt);he("W",nt,fi);he("WW",nt,Zt);ya(["w","ww","W","WW"],function(e,t,r,n){t[n.substr(0,1)]=Oe(e)});function xS(e){return ta(e,this._week.dow,this._week.doy).week}var SS={dow:0,doy:6};function _S(){return this._week.dow}function ES(){return this._week.doy}function CS(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function kS(e){var t=ta(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}pe("d",0,"do","day");pe("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});pe("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});pe("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});pe("e",0,0,"weekday");pe("E",0,0,"isoWeekday");he("d",nt);he("e",nt);he("E",nt);he("dd",function(e,t){return t.weekdaysMinRegex(e)});he("ddd",function(e,t){return t.weekdaysShortRegex(e)});he("dddd",function(e,t){return t.weekdaysRegex(e)});ya(["dd","ddd","dddd"],function(e,t,r,n){var s=r._locale.weekdaysParse(e,n,r._strict);s!=null?t.d=s:Pe(r).invalidWeekday=e});ya(["d","e","E"],function(e,t,r,n){t[n]=Oe(e)});function AS(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function PS(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function ah(e,t){return e.slice(t,7).concat(e.slice(0,t))}var TS="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),pm="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),DS="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),FS=va,OS=va,RS=va;function IS(e,t){var r=xr(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?ah(r,this._week.dow):e?r[e.day()]:r}function NS(e){return e===!0?ah(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function MS(e){return e===!0?ah(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function BS(e,t,r){var n,s,i,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)i=jr([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(i,"").toLocaleLowerCase();return r?t==="dddd"?(s=lt.call(this._weekdaysParse,a),s!==-1?s:null):t==="ddd"?(s=lt.call(this._shortWeekdaysParse,a),s!==-1?s:null):(s=lt.call(this._minWeekdaysParse,a),s!==-1?s:null):t==="dddd"?(s=lt.call(this._weekdaysParse,a),s!==-1||(s=lt.call(this._shortWeekdaysParse,a),s!==-1)?s:(s=lt.call(this._minWeekdaysParse,a),s!==-1?s:null)):t==="ddd"?(s=lt.call(this._shortWeekdaysParse,a),s!==-1||(s=lt.call(this._weekdaysParse,a),s!==-1)?s:(s=lt.call(this._minWeekdaysParse,a),s!==-1?s:null)):(s=lt.call(this._minWeekdaysParse,a),s!==-1||(s=lt.call(this._weekdaysParse,a),s!==-1)?s:(s=lt.call(this._shortWeekdaysParse,a),s!==-1?s:null))}function $S(e,t,r){var n,s,i;if(this._weekdaysParseExact)return BS.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(s=jr([2e3,1]).day(n),r&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(s,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(s,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(s,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(i="^"+this.weekdays(s,"")+"|^"+this.weekdaysShort(s,"")+"|^"+this.weekdaysMin(s,""),this._weekdaysParse[n]=new RegExp(i.replace(".",""),"i")),r&&t==="dddd"&&this._fullWeekdaysParse[n].test(e))return n;if(r&&t==="ddd"&&this._shortWeekdaysParse[n].test(e))return n;if(r&&t==="dd"&&this._minWeekdaysParse[n].test(e))return n;if(!r&&this._weekdaysParse[n].test(e))return n}}function HS(e){if(!this.isValid())return e!=null?this:NaN;var t=Qi(this,"Day");return e!=null?(e=AS(e,this.localeData()),this.add(e-t,"d")):t}function jS(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function LS(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=PS(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function VS(e){return this._weekdaysParseExact?(Le(this,"_weekdaysRegex")||oh.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(Le(this,"_weekdaysRegex")||(this._weekdaysRegex=FS),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function US(e){return this._weekdaysParseExact?(Le(this,"_weekdaysRegex")||oh.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Le(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=OS),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function qS(e){return this._weekdaysParseExact?(Le(this,"_weekdaysRegex")||oh.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Le(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=RS),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function oh(){function e(c,f){return f.length-c.length}var t=[],r=[],n=[],s=[],i,a,o,u,l;for(i=0;i<7;i++)a=jr([2e3,1]).day(i),o=Xr(this.weekdaysMin(a,"")),u=Xr(this.weekdaysShort(a,"")),l=Xr(this.weekdays(a,"")),t.push(o),r.push(u),n.push(l),s.push(o),s.push(u),s.push(l);t.sort(e),r.sort(e),n.sort(e),s.sort(e),this._weekdaysRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function uh(){return this.hours()%12||12}function KS(){return this.hours()||24}pe("H",["HH",2],0,"hour");pe("h",["hh",2],0,uh);pe("k",["kk",2],0,KS);pe("hmm",0,0,function(){return""+uh.apply(this)+$r(this.minutes(),2)});pe("hmmss",0,0,function(){return""+uh.apply(this)+$r(this.minutes(),2)+$r(this.seconds(),2)});pe("Hmm",0,0,function(){return""+this.hours()+$r(this.minutes(),2)});pe("Hmmss",0,0,function(){return""+this.hours()+$r(this.minutes(),2)+$r(this.seconds(),2)});function gm(e,t){pe(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}gm("a",!0);gm("A",!1);function mm(e,t){return t._meridiemParse}he("a",mm);he("A",mm);he("H",nt,sh);he("h",nt,fi);he("k",nt,fi);he("HH",nt,Zt);he("hh",nt,Zt);he("kk",nt,Zt);he("hmm",sm);he("hmmss",im);he("Hmm",sm);he("Hmmss",im);Ge(["H","HH"],vt);Ge(["k","kk"],function(e,t,r){var n=Oe(e);t[vt]=n===24?0:n});Ge(["a","A"],function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e});Ge(["h","hh"],function(e,t,r){t[vt]=Oe(e),Pe(r).bigHour=!0});Ge("hmm",function(e,t,r){var n=e.length-2;t[vt]=Oe(e.substr(0,n)),t[br]=Oe(e.substr(n)),Pe(r).bigHour=!0});Ge("hmmss",function(e,t,r){var n=e.length-4,s=e.length-2;t[vt]=Oe(e.substr(0,n)),t[br]=Oe(e.substr(n,2)),t[Gr]=Oe(e.substr(s)),Pe(r).bigHour=!0});Ge("Hmm",function(e,t,r){var n=e.length-2;t[vt]=Oe(e.substr(0,n)),t[br]=Oe(e.substr(n))});Ge("Hmmss",function(e,t,r){var n=e.length-4,s=e.length-2;t[vt]=Oe(e.substr(0,n)),t[br]=Oe(e.substr(n,2)),t[Gr]=Oe(e.substr(s))});function YS(e){return(e+"").toLowerCase().charAt(0)==="p"}var zS=/[ap]\.?m?\.?/i,WS=di("Hours",!0);function GS(e,t,r){return e>11?r?"pm":"PM":r?"am":"AM"}var vm={calendar:Bx,longDateFormat:Lx,invalidDate:Ux,ordinal:Kx,dayOfMonthOrdinalParse:Yx,relativeTime:Wx,months:cS,monthsShort:um,week:SS,weekdays:TS,weekdaysMin:DS,weekdaysShort:pm,meridiemParse:zS},ot={},Ei={},ra;function JS(e,t){var r,n=Math.min(e.length,t.length);for(r=0;r0;){if(s=ou(i.slice(0,r).join("-")),s)return s;if(n&&n.length>=r&&JS(i,n)>=r-1)break;r--}t++}return ra}function ZS(e){return!!(e&&e.match("^[^/\\\\]*$"))}function ou(e){var t=null,r;if(ot[e]===void 0&&typeof module!="undefined"&&module&&module.exports&&ZS(e))try{t=ra._abbr,r=require,r("./locale/"+e),Mn(t)}catch(n){ot[e]=null}return ot[e]}function Mn(e,t){var r;return e&&(Bt(t)?r=un(e):r=lh(e,t),r?ra=r:typeof console!="undefined"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),ra._abbr}function lh(e,t){if(t!==null){var r,n=vm;if(t.abbr=e,ot[e]!=null)em("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=ot[e]._config;else if(t.parentLocale!=null)if(ot[t.parentLocale]!=null)n=ot[t.parentLocale]._config;else if(r=ou(t.parentLocale),r!=null)n=r._config;else return Ei[t.parentLocale]||(Ei[t.parentLocale]=[]),Ei[t.parentLocale].push({name:e,config:t}),null;return ot[e]=new Qc(Xl(n,t)),Ei[e]&&Ei[e].forEach(function(s){lh(s.name,s.config)}),Mn(e),ot[e]}else return delete ot[e],null}function QS(e,t){if(t!=null){var r,n,s=vm;ot[e]!=null&&ot[e].parentLocale!=null?ot[e].set(Xl(ot[e]._config,t)):(n=ou(e),n!=null&&(s=n._config),t=Xl(s,t),n==null&&(t.abbr=e),r=new Qc(t),r.parentLocale=ot[e],ot[e]=r),Mn(e)}else ot[e]!=null&&(ot[e].parentLocale!=null?(ot[e]=ot[e].parentLocale,e===Mn()&&Mn(e)):ot[e]!=null&&delete ot[e]);return ot[e]}function un(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return ra;if(!xr(e)){if(t=ou(e),t)return t;e=[e]}return XS(e)}function e_(){return Zl(ot)}function ch(e){var t,r=e._a;return r&&Pe(e).overflow===-2&&(t=r[Wr]<0||r[Wr]>11?Wr:r[Rr]<1||r[Rr]>ih(r[Ft],r[Wr])?Rr:r[vt]<0||r[vt]>24||r[vt]===24&&(r[br]!==0||r[Gr]!==0||r[hs]!==0)?vt:r[br]<0||r[br]>59?br:r[Gr]<0||r[Gr]>59?Gr:r[hs]<0||r[hs]>999?hs:-1,Pe(e)._overflowDayOfYear&&(tRr)&&(t=Rr),Pe(e)._overflowWeeks&&t===-1&&(t=sS),Pe(e)._overflowWeekday&&t===-1&&(t=iS),Pe(e).overflow=t),e}var t_=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,r_=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,n_=/Z|[+-]\d\d(?::?\d\d)?/,La=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],gl=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],s_=/^\/?Date\((-?\d+)/i,i_=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,a_={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function ym(e){var t,r,n=e._i,s=t_.exec(n)||r_.exec(n),i,a,o,u,l=La.length,c=gl.length;if(s){for(Pe(e).iso=!0,t=0,r=l;tBi(a)||e._dayOfYear===0)&&(Pe(e)._overflowDayOfYear=!0),r=ea(a,0,e._dayOfYear),e._a[Wr]=r.getUTCMonth(),e._a[Rr]=r.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=n[t]=s[t];for(;t<7;t++)e._a[t]=n[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[vt]===24&&e._a[br]===0&&e._a[Gr]===0&&e._a[hs]===0&&(e._nextDay=!0,e._a[vt]=0),e._d=(e._useUTC?ea:wS).apply(null,n),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[vt]=24),e._w&&typeof e._w.d!="undefined"&&e._w.d!==i&&(Pe(e).weekdayMismatch=!0)}}function p_(e){var t,r,n,s,i,a,o,u,l;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(i=1,a=4,r=Hs(t.GG,e._a[Ft],ta(rt(),1,4).year),n=Hs(t.W,1),s=Hs(t.E,1),(s<1||s>7)&&(u=!0)):(i=e._locale._week.dow,a=e._locale._week.doy,l=ta(rt(),i,a),r=Hs(t.gg,e._a[Ft],l.year),n=Hs(t.w,l.week),t.d!=null?(s=t.d,(s<0||s>6)&&(u=!0)):t.e!=null?(s=t.e+i,(t.e<0||t.e>6)&&(u=!0)):s=i),n<1||n>Zr(r,i,a)?Pe(e)._overflowWeeks=!0:u!=null?Pe(e)._overflowWeekday=!0:(o=dm(r,n,s,i,a),e._a[Ft]=o.year,e._dayOfYear=o.dayOfYear)}le.ISO_8601=function(){};le.RFC_2822=function(){};function fh(e){if(e._f===le.ISO_8601){ym(e);return}if(e._f===le.RFC_2822){bm(e);return}e._a=[],Pe(e).empty=!0;var t=""+e._i,r,n,s,i,a,o=t.length,u=0,l,c;for(s=tm(e._f,e._locale).match(eh)||[],c=s.length,r=0;r0&&Pe(e).unusedInput.push(a),t=t.slice(t.indexOf(n)+n.length),u+=n.length),Ws[i]?(n?Pe(e).empty=!1:Pe(e).unusedTokens.push(i),nS(i,n,e)):e._strict&&!n&&Pe(e).unusedTokens.push(i);Pe(e).charsLeftOver=o-u,t.length>0&&Pe(e).unusedInput.push(t),e._a[vt]<=12&&Pe(e).bigHour===!0&&e._a[vt]>0&&(Pe(e).bigHour=void 0),Pe(e).parsedDateParts=e._a.slice(0),Pe(e).meridiem=e._meridiem,e._a[vt]=g_(e._locale,e._a[vt],e._meridiem),l=Pe(e).era,l!==null&&(e._a[Ft]=e._locale.erasConvertYear(l,e._a[Ft])),hh(e),ch(e)}function g_(e,t,r){var n;return r==null?t:e.meridiemHour!=null?e.meridiemHour(t,r):(e.isPM!=null&&(n=e.isPM(r),n&&t<12&&(t+=12),!n&&t===12&&(t=0)),t)}function m_(e){var t,r,n,s,i,a,o=!1,u=e._f.length;if(u===0){Pe(e).invalidFormat=!0,e._d=new Date(NaN);return}for(s=0;sthis?this:e:eu()});function Sm(e,t){var r,n;if(t.length===1&&xr(t[0])&&(t=t[0]),!t.length)return rt();for(r=t[0],n=1;nthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function B_(){if(!Bt(this._isDSTShifted))return this._isDSTShifted;var e={},t;return Zc(e,this),e=wm(e),e._a?(t=e._isUTC?jr(e._a):rt(e._a),this._isDSTShifted=this.isValid()&&P_(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function $_(){return this.isValid()?!this._isUTC:!1}function H_(){return this.isValid()?this._isUTC:!1}function Em(){return this.isValid()?this._isUTC&&this._offset===0:!1}var j_=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,L_=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function kr(e,t){var r=e,n=null,s,i,a;return Qa(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:tn(e)||!isNaN(+e)?(r={},t?r[t]=+e:r.milliseconds=+e):(n=j_.exec(e))?(s=n[1]==="-"?-1:1,r={y:0,d:Oe(n[Rr])*s,h:Oe(n[vt])*s,m:Oe(n[br])*s,s:Oe(n[Gr])*s,ms:Oe(ec(n[hs]*1e3))*s}):(n=L_.exec(e))?(s=n[1]==="-"?-1:1,r={y:is(n[2],s),M:is(n[3],s),w:is(n[4],s),d:is(n[5],s),h:is(n[6],s),m:is(n[7],s),s:is(n[8],s)}):r==null?r={}:typeof r=="object"&&("from"in r||"to"in r)&&(a=V_(rt(r.from),rt(r.to)),r={},r.ms=a.milliseconds,r.M=a.months),i=new uu(r),Qa(e)&&Le(e,"_locale")&&(i._locale=e._locale),Qa(e)&&Le(e,"_isValid")&&(i._isValid=e._isValid),i}kr.fn=uu.prototype;kr.invalid=A_;function is(e,t){var r=e&&parseFloat(e.replace(",","."));return(isNaN(r)?0:r)*t}function Wd(e,t){var r={};return r.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(r.months,"M").isAfter(t)&&--r.months,r.milliseconds=+t-+e.clone().add(r.months,"M"),r}function V_(e,t){var r;return e.isValid()&&t.isValid()?(t=ph(t,e),e.isBefore(t)?r=Wd(e,t):(r=Wd(t,e),r.milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0}}function Cm(e,t){return function(r,n){var s,i;return n!==null&&!isNaN(+n)&&(em(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=r,r=n,n=i),s=kr(r,n),km(this,s,e),this}}function km(e,t,r,n){var s=t._milliseconds,i=ec(t._days),a=ec(t._months);e.isValid()&&(n=n==null?!0:n,a&&cm(e,Qi(e,"Month")+a*r),i&&om(e,"Date",Qi(e,"Date")+i*r),s&&e._d.setTime(e._d.valueOf()+s*r),n&&le.updateOffset(e,i||a))}var U_=Cm(1,"add"),q_=Cm(-1,"subtract");function Am(e){return typeof e=="string"||e instanceof String}function K_(e){return Sr(e)||ga(e)||Am(e)||tn(e)||z_(e)||Y_(e)||e===null||e===void 0}function Y_(e){var t=vs(e)&&!Jc(e),r=!1,n=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],s,i,a=n.length;for(s=0;sr.valueOf():r.valueOf()9999?Za(r,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Lr(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Za(r,"Z")):Za(r,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function o5(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",r,n,s,i;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),r="["+e+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",s="-MM-DD[T]HH:mm:ss.SSS",i=t+'[")]',this.format(r+n+s+i)}function u5(e){e||(e=this.isUtc()?le.defaultFormatUtc:le.defaultFormat);var t=Za(this,e);return this.localeData().postformat(t)}function l5(e,t){return this.isValid()&&(Sr(e)&&e.isValid()||rt(e).isValid())?kr({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function c5(e){return this.from(rt(),e)}function h5(e,t){return this.isValid()&&(Sr(e)&&e.isValid()||rt(e).isValid())?kr({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function f5(e){return this.to(rt(),e)}function Pm(e){var t;return e===void 0?this._locale._abbr:(t=un(e),t!=null&&(this._locale=t),this)}var Tm=cr("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function Dm(){return this._locale}var mo=1e3,Gs=60*mo,vo=60*Gs,Fm=(365*400+97)*24*vo;function Js(e,t){return(e%t+t)%t}function Om(e,t,r){return e<100&&e>=0?new Date(e+400,t,r)-Fm:new Date(e,t,r).valueOf()}function Rm(e,t,r){return e<100&&e>=0?Date.UTC(e+400,t,r)-Fm:Date.UTC(e,t,r)}function d5(e){var t,r;if(e=hr(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?Rm:Om,e){case"year":t=r(this.year(),0,1);break;case"quarter":t=r(this.year(),this.month()-this.month()%3,1);break;case"month":t=r(this.year(),this.month(),1);break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=r(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Js(t+(this._isUTC?0:this.utcOffset()*Gs),vo);break;case"minute":t=this._d.valueOf(),t-=Js(t,Gs);break;case"second":t=this._d.valueOf(),t-=Js(t,mo);break}return this._d.setTime(t),le.updateOffset(this,!0),this}function p5(e){var t,r;if(e=hr(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?Rm:Om,e){case"year":t=r(this.year()+1,0,1)-1;break;case"quarter":t=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=r(this.year(),this.month()+1,1)-1;break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=vo-Js(t+(this._isUTC?0:this.utcOffset()*Gs),vo)-1;break;case"minute":t=this._d.valueOf(),t+=Gs-Js(t,Gs)-1;break;case"second":t=this._d.valueOf(),t+=mo-Js(t,mo)-1;break}return this._d.setTime(t),le.updateOffset(this,!0),this}function g5(){return this._d.valueOf()-(this._offset||0)*6e4}function m5(){return Math.floor(this.valueOf()/1e3)}function v5(){return new Date(this.valueOf())}function y5(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function b5(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function w5(){return this.isValid()?this.toISOString():null}function x5(){return Xc(this)}function S5(){return An({},Pe(this))}function _5(){return Pe(this).overflow}function E5(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}pe("N",0,0,"eraAbbr");pe("NN",0,0,"eraAbbr");pe("NNN",0,0,"eraAbbr");pe("NNNN",0,0,"eraName");pe("NNNNN",0,0,"eraNarrow");pe("y",["y",1],"yo","eraYear");pe("y",["yy",2],0,"eraYear");pe("y",["yyy",3],0,"eraYear");pe("y",["yyyy",4],0,"eraYear");he("N",gh);he("NN",gh);he("NNN",gh);he("NNNN",N5);he("NNNNN",M5);Ge(["N","NN","NNN","NNNN","NNNNN"],function(e,t,r,n){var s=r._locale.erasParse(e,n,r._strict);s?Pe(r).era=s:Pe(r).invalidEra=e});he("y",hi);he("yy",hi);he("yyy",hi);he("yyyy",hi);he("yo",B5);Ge(["y","yy","yyy","yyyy"],Ft);Ge(["yo"],function(e,t,r,n){var s;r._locale._eraYearOrdinalRegex&&(s=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[Ft]=r._locale.eraYearOrdinalParse(e,s):t[Ft]=parseInt(e,10)});function C5(e,t){var r,n,s,i=this._eras||un("en")._eras;for(r=0,n=i.length;r=0)return i[n]}function A5(e,t){var r=e.since<=e.until?1:-1;return t===void 0?le(e.since).year():le(e.since).year()+(t-e.offset)*r}function P5(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;ei&&(t=i),q5.call(this,e,t,r,n,s))}function q5(e,t,r,n,s){var i=dm(e,t,r,n,s),a=ea(i.year,0,i.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}pe("Q",0,"Qo","quarter");he("Q",rm);Ge("Q",function(e,t){t[Wr]=(Oe(e)-1)*3});function K5(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}pe("D",["DD",2],"Do","date");he("D",nt,fi);he("DD",nt,Zt);he("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});Ge(["D","DD"],Rr);Ge("Do",function(e,t){t[Rr]=Oe(e.match(nt)[0])});var Nm=di("Date",!0);pe("DDD",["DDDD",3],"DDDo","dayOfYear");he("DDD",ru);he("DDDD",nm);Ge(["DDD","DDDD"],function(e,t,r){r._dayOfYear=Oe(e)});function Y5(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}pe("m",["mm",2],0,"minute");he("m",nt,sh);he("mm",nt,Zt);Ge(["m","mm"],br);var z5=di("Minutes",!1);pe("s",["ss",2],0,"second");he("s",nt,sh);he("ss",nt,Zt);Ge(["s","ss"],Gr);var W5=di("Seconds",!1);pe("S",0,0,function(){return~~(this.millisecond()/100)});pe(0,["SS",2],0,function(){return~~(this.millisecond()/10)});pe(0,["SSS",3],0,"millisecond");pe(0,["SSSS",4],0,function(){return this.millisecond()*10});pe(0,["SSSSS",5],0,function(){return this.millisecond()*100});pe(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});pe(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});pe(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});pe(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});he("S",ru,rm);he("SS",ru,Zt);he("SSS",ru,nm);var Pn,Mm;for(Pn="SSSS";Pn.length<=9;Pn+="S")he(Pn,hi);function G5(e,t){t[hs]=Oe(("0."+e)*1e3)}for(Pn="S";Pn.length<=9;Pn+="S")Ge(Pn,G5);Mm=di("Milliseconds",!1);pe("z",0,0,"zoneAbbr");pe("zz",0,0,"zoneName");function J5(){return this._isUTC?"UTC":""}function X5(){return this._isUTC?"Coordinated Universal Time":""}var ee=ma.prototype;ee.add=U_;ee.calendar=J_;ee.clone=X_;ee.diff=s5;ee.endOf=p5;ee.format=u5;ee.from=l5;ee.fromNow=c5;ee.to=h5;ee.toNow=f5;ee.get=oS;ee.invalidAt=_5;ee.isAfter=Z_;ee.isBefore=Q_;ee.isBetween=e5;ee.isSame=t5;ee.isSameOrAfter=r5;ee.isSameOrBefore=n5;ee.isValid=x5;ee.lang=Tm;ee.locale=Pm;ee.localeData=Dm;ee.max=x_;ee.min=w_;ee.parsingFlags=S5;ee.set=uS;ee.startOf=d5;ee.subtract=q_;ee.toArray=y5;ee.toObject=b5;ee.toDate=v5;ee.toISOString=a5;ee.inspect=o5;typeof Symbol!="undefined"&&Symbol.for!=null&&(ee[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});ee.toJSON=w5;ee.toString=i5;ee.unix=m5;ee.valueOf=g5;ee.creationData=E5;ee.eraName=P5;ee.eraNarrow=T5;ee.eraAbbr=D5;ee.eraYear=F5;ee.year=am;ee.isLeapYear=aS;ee.weekYear=$5;ee.isoWeekYear=H5;ee.quarter=ee.quarters=K5;ee.month=hm;ee.daysInMonth=vS;ee.week=ee.weeks=CS;ee.isoWeek=ee.isoWeeks=kS;ee.weeksInYear=V5;ee.weeksInWeekYear=U5;ee.isoWeeksInYear=j5;ee.isoWeeksInISOWeekYear=L5;ee.date=Nm;ee.day=ee.days=HS;ee.weekday=jS;ee.isoWeekday=LS;ee.dayOfYear=Y5;ee.hour=ee.hours=WS;ee.minute=ee.minutes=z5;ee.second=ee.seconds=W5;ee.millisecond=ee.milliseconds=Mm;ee.utcOffset=D_;ee.utc=O_;ee.local=R_;ee.parseZone=I_;ee.hasAlignedHourOffset=N_;ee.isDST=M_;ee.isLocal=$_;ee.isUtcOffset=H_;ee.isUtc=Em;ee.isUTC=Em;ee.zoneAbbr=J5;ee.zoneName=X5;ee.dates=cr("dates accessor is deprecated. Use date instead.",Nm);ee.months=cr("months accessor is deprecated. Use month instead",hm);ee.years=cr("years accessor is deprecated. Use year instead",am);ee.zone=cr("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",F_);ee.isDSTShifted=cr("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",B_);function Z5(e){return rt(e*1e3)}function Q5(){return rt.apply(null,arguments).parseZone()}function Bm(e){return e}var Ve=Qc.prototype;Ve.calendar=$x;Ve.longDateFormat=Vx;Ve.invalidDate=qx;Ve.ordinal=zx;Ve.preparse=Bm;Ve.postformat=Bm;Ve.relativeTime=Gx;Ve.pastFuture=Jx;Ve.set=Mx;Ve.eras=C5;Ve.erasParse=k5;Ve.erasConvertYear=A5;Ve.erasAbbrRegex=R5;Ve.erasNameRegex=O5;Ve.erasNarrowRegex=I5;Ve.months=dS;Ve.monthsShort=pS;Ve.monthsParse=mS;Ve.monthsRegex=bS;Ve.monthsShortRegex=yS;Ve.week=xS;Ve.firstDayOfYear=ES;Ve.firstDayOfWeek=_S;Ve.weekdays=IS;Ve.weekdaysMin=MS;Ve.weekdaysShort=NS;Ve.weekdaysParse=$S;Ve.weekdaysRegex=VS;Ve.weekdaysShortRegex=US;Ve.weekdaysMinRegex=qS;Ve.isPM=YS;Ve.meridiem=GS;function yo(e,t,r,n){var s=un(),i=jr().set(n,t);return s[r](i,e)}function $m(e,t,r){if(tn(e)&&(t=e,e=void 0),e=e||"",t!=null)return yo(e,t,r,"month");var n,s=[];for(n=0;n<12;n++)s[n]=yo(e,n,r,"month");return s}function vh(e,t,r,n){typeof e=="boolean"?(tn(t)&&(r=t,t=void 0),t=t||""):(t=e,r=t,e=!1,tn(t)&&(r=t,t=void 0),t=t||"");var s=un(),i=e?s._week.dow:0,a,o=[];if(r!=null)return yo(t,(r+i)%7,n,"day");for(a=0;a<7;a++)o[a]=yo(t,(a+i)%7,n,"day");return o}function e4(e,t){return $m(e,t,"months")}function t4(e,t){return $m(e,t,"monthsShort")}function r4(e,t,r){return vh(e,t,r,"weekdays")}function n4(e,t,r){return vh(e,t,r,"weekdaysShort")}function s4(e,t,r){return vh(e,t,r,"weekdaysMin")}Mn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,r=Oe(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+r}});le.lang=cr("moment.lang is deprecated. Use moment.locale instead.",Mn);le.langData=cr("moment.langData is deprecated. Use moment.localeData instead.",un);var qr=Math.abs;function i4(){var e=this._data;return this._milliseconds=qr(this._milliseconds),this._days=qr(this._days),this._months=qr(this._months),e.milliseconds=qr(e.milliseconds),e.seconds=qr(e.seconds),e.minutes=qr(e.minutes),e.hours=qr(e.hours),e.months=qr(e.months),e.years=qr(e.years),this}function Hm(e,t,r,n){var s=kr(t,r);return e._milliseconds+=n*s._milliseconds,e._days+=n*s._days,e._months+=n*s._months,e._bubble()}function a4(e,t){return Hm(this,e,t,1)}function o4(e,t){return Hm(this,e,t,-1)}function Gd(e){return e<0?Math.floor(e):Math.ceil(e)}function u4(){var e=this._milliseconds,t=this._days,r=this._months,n=this._data,s,i,a,o,u;return e>=0&&t>=0&&r>=0||e<=0&&t<=0&&r<=0||(e+=Gd(rc(r)+t)*864e5,t=0,r=0),n.milliseconds=e%1e3,s=tr(e/1e3),n.seconds=s%60,i=tr(s/60),n.minutes=i%60,a=tr(i/60),n.hours=a%24,t+=tr(a/24),u=tr(jm(t)),r+=u,t-=Gd(rc(u)),o=tr(r/12),r%=12,n.days=t,n.months=r,n.years=o,this}function jm(e){return e*4800/146097}function rc(e){return e*146097/4800}function l4(e){if(!this.isValid())return NaN;var t,r,n=this._milliseconds;if(e=hr(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+n/864e5,r=this._months+jm(t),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(rc(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return t*24+n/36e5;case"minute":return t*1440+n/6e4;case"second":return t*86400+n/1e3;case"millisecond":return Math.floor(t*864e5)+n;default:throw new Error("Unknown unit "+e)}}function ln(e){return function(){return this.as(e)}}var Lm=ln("ms"),c4=ln("s"),h4=ln("m"),f4=ln("h"),d4=ln("d"),p4=ln("w"),g4=ln("M"),m4=ln("Q"),v4=ln("y"),y4=Lm;function b4(){return kr(this)}function w4(e){return e=hr(e),this.isValid()?this[e+"s"]():NaN}function _s(e){return function(){return this.isValid()?this._data[e]:NaN}}var x4=_s("milliseconds"),S4=_s("seconds"),_4=_s("minutes"),E4=_s("hours"),C4=_s("days"),k4=_s("months"),A4=_s("years");function P4(){return tr(this.days()/7)}var Kr=Math.round,Vs={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function T4(e,t,r,n,s){return s.relativeTime(t||1,!!r,e,n)}function D4(e,t,r,n){var s=kr(e).abs(),i=Kr(s.as("s")),a=Kr(s.as("m")),o=Kr(s.as("h")),u=Kr(s.as("d")),l=Kr(s.as("M")),c=Kr(s.as("w")),f=Kr(s.as("y")),h=i<=r.ss&&["s",i]||i0,h[4]=n,T4.apply(null,h)}function F4(e){return e===void 0?Kr:typeof e=="function"?(Kr=e,!0):!1}function O4(e,t){return Vs[e]===void 0?!1:t===void 0?Vs[e]:(Vs[e]=t,e==="s"&&(Vs.ss=t-1),!0)}function R4(e,t){if(!this.isValid())return this.localeData().invalidDate();var r=!1,n=Vs,s,i;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(r=e),typeof t=="object"&&(n=Object.assign({},Vs,t),t.s!=null&&t.ss==null&&(n.ss=t.s-1)),s=this.localeData(),i=D4(this,!r,n,s),r&&(i=s.pastFuture(+this,i)),s.postformat(i)}var ml=Math.abs;function Ms(e){return(e>0)-(e<0)||+e}function cu(){if(!this.isValid())return this.localeData().invalidDate();var e=ml(this._milliseconds)/1e3,t=ml(this._days),r=ml(this._months),n,s,i,a,o=this.asSeconds(),u,l,c,f;return o?(n=tr(e/60),s=tr(n/60),e%=60,n%=60,i=tr(r/12),r%=12,a=e?e.toFixed(3).replace(/\.?0+$/,""):"",u=o<0?"-":"",l=Ms(this._months)!==Ms(o)?"-":"",c=Ms(this._days)!==Ms(o)?"-":"",f=Ms(this._milliseconds)!==Ms(o)?"-":"",u+"P"+(i?l+i+"Y":"")+(r?l+r+"M":"")+(t?c+t+"D":"")+(s||n||e?"T":"")+(s?f+s+"H":"")+(n?f+n+"M":"")+(e?f+a+"S":"")):"P0D"}var Me=uu.prototype;Me.isValid=k_;Me.abs=i4;Me.add=a4;Me.subtract=o4;Me.as=l4;Me.asMilliseconds=Lm;Me.asSeconds=c4;Me.asMinutes=h4;Me.asHours=f4;Me.asDays=d4;Me.asWeeks=p4;Me.asMonths=g4;Me.asQuarters=m4;Me.asYears=v4;Me.valueOf=y4;Me._bubble=u4;Me.clone=b4;Me.get=w4;Me.milliseconds=x4;Me.seconds=S4;Me.minutes=_4;Me.hours=E4;Me.days=C4;Me.weeks=P4;Me.months=k4;Me.years=A4;Me.humanize=R4;Me.toISOString=cu;Me.toString=cu;Me.toJSON=cu;Me.locale=Pm;Me.localeData=Dm;Me.toIsoString=cr("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",cu);Me.lang=Tm;pe("X",0,0,"unix");pe("x",0,0,"valueOf");he("x",su);he("X",eS);Ge("X",function(e,t,r){r._d=new Date(parseFloat(e)*1e3)});Ge("x",function(e,t,r){r._d=new Date(Oe(e))});//! moment.js +le.version="2.30.1";Ix(rt);le.fn=ee;le.min=S_;le.max=__;le.now=E_;le.utc=jr;le.unix=Z5;le.months=e4;le.isDate=ga;le.locale=Mn;le.invalid=eu;le.duration=kr;le.isMoment=Sr;le.weekdays=r4;le.parseZone=Q5;le.localeData=un;le.isDuration=Qa;le.monthsShort=t4;le.weekdaysMin=s4;le.defineLocale=lh;le.updateLocale=QS;le.locales=e_;le.weekdaysShort=n4;le.normalizeUnits=hr;le.relativeTimeRounding=F4;le.relativeTimeThreshold=O4;le.calendarFormat=G_;le.prototype=ee;le.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const Yn=Cr("alert",{state:()=>({auth:Lt(),okButtonClicked:!1}),actions:{createAlert(e,t,r){return new Promise(n=>{const s=document.createElement("div");s.classList.add("fixed","inset-0","z-50","bg-black","opacity-50","backdrop-blur-md"),document.body.appendChild(s);const i=document.createElement("div");i.classList.add("fixed","top-10","left-1/2","-translate-x-1/2","z-50","transform","bg-white","p-6","rounded-lg","shadow-lg"),i.style.maxWidth="80%",document.body.appendChild(i);const a=document.createElement("div");a.innerHTML=` +

${e}

+
+ +

${t}

+ + `,i.appendChild(a),a.querySelector("button").addEventListener("click",()=>{i.remove(),s.remove(),n(),this.auth.isPosOpen===!1&&this.auth.isPosOpenChecking(),this.okButtonClicked=!0})})}}}),hu=Cr("customers",{state:()=>({customer:[],notification:ca(),search:"",alert:Yn(),showCustomers:!1,numberOfPax:"",selectedCustomerName:"",customerFavouriteItems:[],showModalNewCustomer:!1,newCustomerMobileNo:"",newCustomer:"",showCustomersGroup:!1,showCustomersTerritory:!1,showAddNewCustomer:!0,customerTerritoryList:[],customerTerritory:null,customerGroupList:[],customerGroup:null,call:Dt.call(),db:Dt.db()}),getters:{isFlagSet(){return this.customer.length===0}},actions:{pickCustomer(){return Ee(this,null,function*(){const e={text:this.search,doctype:"Customer",limit:5};this.call.get("frappe.utils.global_search.search",e).then(t=>{this.customer=t.message}).catch(t=>console.error(t))})},handleSearchInput(e){this.search=e.target.value,this.pickCustomer()},pickCustomerGroup(){this.db.getDocList("Customer Group").then(e=>{this.customerGroupList=e}).catch(e=>console.error(e))},selectCustomerGroup(e){this.customerGroup=e.name,this.showCustomersGroup=!1},pickCustomerTerritory(){this.db.getDocList("Territory").then(e=>{this.customerTerritoryList=e}).catch(e=>console.error(e))},selectCustomerTerritory(e){this.customerTerritory=e.name,this.showCustomersTerritory=!1},newCustomerData(e){this.showModalNewCustomer=!0,!isNaN(parseFloat(e))&&isFinite(e)?this.newCustomerMobileNo=e:typeof e=="string"?this.newCustomer=e:this.alert.createAlert("Message","Invalid Customer","OK")},addNewCustomer:function(){return Ee(this,null,function*(){if(!this.newCustomer||!this.newCustomerMobileNo){let e=[];this.newCustomer||e.push("Customer Name"),this.newCustomerMobileNo||e.push("Mobile Number"),this.customerGroup||e.push("Customer Group"),this.customerTerritory||e.push("Territory");const t="Following fields have missing values: "+e.join(", ");this.alert.createAlert("Message",t,"OK")}else this.showAddNewCustomer=!1,Dt.db().createDoc("Customer",{customer_name:this.newCustomer,mobile_number:this.newCustomerMobileNo.toString(),customer_group:this.customerGroup,territory:this.customerTerritory}).then(t=>{this.search=t.name,this.notification.createNotification("New Customer Created"),this.showModalNewCustomer=!1}).catch(t=>{const r=JSON.parse(t._server_messages),s=JSON.parse(r[0]).message;this.alert.createAlert("Message",s,"OK")})})},extractName(e){if(e){const t=e.indexOf("Mobile Number :");if(t!==-1){const r=e.indexOf("|||",t);if(r!==-1)return e.substring(t,r).trim()}}return""},selectCustomer(e){return Ee(this,null,function*(){this.search=e.name,this.showCustomers=!1,this.fectchCustomerFavouriteItem()})},fectchCustomerFavouriteItem(){return Ee(this,null,function*(){const e=Ts();e.previousOrderdCustomer?this.selectedCustomerName=e.previousOrderdCustomer:this.selectedCustomerName=this.search;const t={customer_name:this.selectedCustomerName};this.call.get("ury.ury.doctype.ury_order.ury_order.customer_favourite_item",t).then(r=>{this.customerFavouriteItems=[],r.message.forEach(n=>{this.customerFavouriteItems.push(n)})}).catch(r=>console.error(r))})}}}),ai=Cr("recentOrders",{state:()=>({recentOrderList:[],selectedStatus:"Draft",searchOrder:"",alert:Yn(),showOrder:!1,selectedOrder:null,recentOrderListItems:[],texDetails:[],netTotal:0,grandTotal:0,notification:ca(),useInvoiceDataStore:fr(),invoiceNumber:null,pastOrderdItem:[],pastOrder:[],paidAmount:0,paymentMethod:0,payments:[],modeOfPaymentName:null,restaurantTable:null,currentPage:1,perPage:10,showDialog:!1,customerNameForBilling:"",posProfile:"",table:null,isLoading:!1,showPayment:!1,isChecked:!1,modeOfPaymentList:[],setBackground:null,selectedTable:null,billAmount:0,recentWaiter:null,cancelInvoiceFlag:!1,invoicePrinted:null,editPrintedInvoice:0,cancelReason:null,call:Dt.call(),draftInvoice:null}),getters:{filteredOrders(){return this.recentOrderList.filter(e=>this.matchesSearchOrder(e))},totalPages(){return Math.ceil(this.filteredOrders.length/this.perPage)},paginatedItems(){const e=(this.currentPage-1)*this.perPage,t=e+this.perPage;return this.filteredOrders.slice(e,t)},pageNumbers(){const e=[];for(let t=1;t<=this.totalPages;t++)e.push(t);return e},total(){return this.modeOfPaymentList.reduce((e,t)=>e+(t.value||0),0)},change(){return this.billAmount-this.total}},actions:{handleStatusChange(){return Ee(this,null,function*(){const e={status:this.selectedStatus};this.call.get("ury.ury_pos.api.getPosInvoice",e).then(t=>{this.recentOrderList=t.message}).catch(t=>console.error(t))})},matchesSearchOrder(e){const t=this.searchOrder.toLowerCase(),r=e.name.toLowerCase(),n=e.customer.toLowerCase();return r.includes(t)||n.includes(t)},getBadgeType(e){if(e.status==="Paid"||e.status==="Consolidated")return"green";if(e.status==="Return")return"default";if(e.status==="Draft")return"red"},getFormattedDateTime(e,t){const r=`${e} ${t}`;return le(r,"YYYY-MM-DD HH:mm:ss.SSSSSS").format("Do MMMM, h:mma")},viewRecentOrder(e){return Ee(this,null,function*(){this.netTotal=e.net_total,this.grandTotal=e.rounded_total,this.invoiceNumber=e.name,this.selectedOrder=e,this.selectedTable=e.restaurant_table;const t={invoice:this.invoiceNumber};this.call.get("ury.ury_pos.api.getPosInvoiceItems",t).then(n=>{this.recentOrderListItems=n.message[0],this.texDetails=n.message[1]}).catch(n=>console.error(n));const r={doctype:"POS Invoice",name:this.invoiceNumber};this.call.get("frappe.client.get",r).then(n=>{this.invoicePrinted=n.message.invoice_printed}).catch(n=>console.error(n)),this.showOrder=!0})},editOrder(){return Ee(this,null,function*(){let e="";this.pastOrderdItem="";let t="";const r=Es();let n=r.items;this.draftInvoice=this.invoiceNumber,this.editPrintedInvoice=this.invoicePrinted,n.forEach(a=>{a.qty=""});let s=r.cart;s.splice(0,s.length);const i={doctype:"POS Invoice",name:this.draftInvoice};this.call.get("frappe.client.get",i).then(a=>{let o=a.message;this.restaurantTable=o.restaurant_table,this.pastOrderdItem=o.items,this.recentWaiter=o.waiter,t=o.customer,e=o.no_of_pax,dt.push("/Menu");const u=hu();t?(u.search=t,u.numberOfPax=e,u.fectchCustomerFavouriteItem()):(u.search="",u.numberOfPax="",u.customerFavouriteItems=""),n.forEach(l=>{const c=this.pastOrderdItem&&this.pastOrderdItem.find(f=>f.item_name===l.item_name);c&&!l.qty&&(s.findIndex(p=>p.item===l.item)!==-1||(l.qty=c.qty,l.comments="",s.push(l)))})}).catch(a=>console.error(a))})},billing:function(){return Ee(this,null,function*(){this.call.get("ury.ury_pos.api.getModeOfPayment").then(t=>{this.modeOfPaymentList=t.message}).catch(t=>{});const e={doctype:"POS Invoice",name:this.invoiceNumber};this.call.get("frappe.client.get",e).then(t=>{this.pastOrder=t.message,this.customerNameForBilling=this.pastOrder.customer,this.posProfile=this.pastOrder.pos_profile,this.table=this.pastOrder.restaurant_table,this.invoicePrinted===0?(this.alert.createAlert("Alert","Please Print Invoice before Payment","OK"),this.isLoading=!1):this.showPayment=!0}).catch(t=>console.error(t))})},calculatePaidAmount(e){if(this.billAmount=this.grandTotal,this.billAmount-this.total>0){e.value=this.billAmount-this.total,this.paymentMethod=e.value;let t=this.payments.findIndex(r=>r.mode_of_payment===e.mode_of_payment);if(t!==-1)this.payments[t].amount=this.paymentMethod;else{let r={mode_of_payment:e.mode_of_payment,amount:this.paymentMethod};this.payments.push(r)}}},changePaidAmount(e,t){if(this.modeOfPaymentName=e,this.paidAmount=parseFloat(t),this.paidAmount>0){let r=this.payments.findIndex(n=>n.mode_of_payment===this.modeOfPaymentName);if(r!==-1)this.payments[r].amount=this.paidAmount;else{let n={mode_of_payment:this.modeOfPaymentName,amount:this.paidAmount};this.payments.push(n)}}},makePayment:function(){return Ee(this,null,function*(){this.isLoading=!0;const e={table:this.selectedTable,invoice:this.invoiceNumber,customer:this.customerNameForBilling,cashier:this.useInvoiceDataStore.cashier,payments:this.payments,pos_profile:this.posProfile};let r=this.payments.reduce((i,a)=>a.amount+i,0);this.grandTotal-r>5?(this.alert.createAlert("Message","Round Off Limit Exceeded","OK"),this.isLoading=!1):this.call.post("ury.ury.doctype.ury_order.ury_order.make_invoice",e).then(()=>{this.notification.createNotification("Payment Completed"),window.location.reload(),this.isLoading=!1}).catch(i=>{console.error(i),this.isLoading=!1;const a=JSON.parse(i._server_messages),o=JSON.parse(a[0]);this.alert.createAlert("Message",o.message,"OK").then(()=>{window.location.reload()})})})},showCancelInvoiceModal(){this.call.get("ury.ury.api.button_permission.cancel_check").then(e=>{e.message===!0?(this.cancelInvoiceFlag=!0,this.cancelReason=""):(this.alert.createAlert("Message","You don't Have Permission to Cancel ","OK"),this.cancelInvoiceFlag=!1,this.cancelReason="")}).catch(e=>{})},cancelInvoice:function(){return Ee(this,null,function*(){const e={invoice_id:this.invoiceNumber,reason:this.cancelReason};this.call.post("ury.ury.doctype.ury_order.ury_order.cancel_order",e).then(()=>{this.notification.createNotification("Invoice Cancelled"),window.location.reload()}).catch(t=>console.error(t))})},toggleRecentOrders(){dt.push("/recentOrder")}}}),Es=Cr("menu",{state:()=>({items:[],cart:[],searchTerm:"",showAll:!0,showPriority:!1,currentPage:1,perPage:20,comments:"",alert:Yn(),invoiceData:fr(),auth:Lt(),notification:ca(),table:Ts(),recentOrders:ai(),showDialog:!1,showDialogCart:!1,quantity:"",item:[],itemComments:"",call:Dt.call()}),getters:{filteredItems(e){if(typeof e.searchTerm!="string"||e.searchTerm.trim()==="")return e.showAll?e.items:e.items.filter(t=>t.special_dish===1);{const t=e.searchTerm.toLowerCase();return e.items.filter(r=>typeof r.item_name=="string"&&typeof r.item=="string"&&(r.item_name.toLowerCase().includes(t)||r.item.toLowerCase().includes(t)))}},totalPages(){return Math.ceil(this.filteredItems.length/this.perPage)},paginatedItems(){const e=(this.currentPage-1)*this.perPage,t=e+this.perPage;return this.filteredItems.slice(e,t)},pageNumbers(){const e=[];for(let t=1;t<=this.totalPages;t++)e.push(t);return e},setColorForBilledInvoice(){if(this.recentOrders.editPrintedInvoice===0||this.auth.removeTableOrderItem===1)return"black";if(this.recentOrders.editPrintedInvoice===1||this.auth.removeTableOrderItem===0)return"gray"}},actions:{fetchItems(){const e={pos_profile:this.invoiceData.posProfile};this.call.get("ury.ury_pos.api.getRestaurantMenu",e).then(t=>{!this.auth.cashier&&this.table.tableMenu?this.items=this.table.tableMenu:this.items=t.message,this.items.forEach(r=>{r.special_dish==1&&(this.showPriority=!0)})}).catch(t=>{if(t._server_messages){const r=JSON.parse(t._server_messages),n=JSON.parse(r[0]);this.alert.createAlert("Message",n.message,"OK")}})},updateSearchTerm(){this.currentPage=1},handleSearchInput(e){this.searchTerm=e.target.value,this.updateSearchTerm()},clearSearch(e){e.target.value="",this.searchTerm="",this.showAll=!0},showAllItems(){this.showAll=!0},showSpecialItems(){this.showAll=!1},showModal(e){this.showDialog=!0,this.quantity=e.qty,this.item=e,this.itemComments=e.comment},addToCartAndUpdateQty(){const e=this.item;this.quantity!==null&&this.quantity!==void 0&&this.quantity!==""&&this.quantity>0&&(e.qty?(e.qty=this.quantity,e.comment=this.itemComments):this.$set(e,"qty",this.quantity)),this.showDialog=!1},getitemQty(e){e.qty=this.cart.qty},addToCart(e){if(!(this.cart.findIndex(n=>n.item===e.item)!==-1)){e.qty=1,e.comment="",this.cart.push(e);let n=`Added ${e.item} to Cart`;this.notification.createNotification(n)}},incrementItemQuantity(e){const t=this.cart.findIndex(a=>a.item===e.item),r=t!==-1;this.invoiceData.posProfile;const s=this.table.previousOrderdItem.find(a=>a.item_code===e.item);let i=r?this.cart[t].qty+1:1;if(s&&(i-=s.qty),r){e.comment="",this.cart[t].qty++;let a=`${e.item}'s Qty updated to ${e.qty} in Cart`;this.notification.createNotification(a)}else e.comment="",this.cart.push({item:e.item,qty:1})},decrementItemQuantity(e){const t=this.cart.findIndex(n=>n.item===e.item);if(t!==-1){this.cart[t].qty--,this.cart=this.cart.filter(s=>s.qty>0);let n=e.qty>0?`${e.item}'s Qty Reduced from Cart Total Qty=${e.qty}`:`${e.item} has been removed from Cart`;this.notification.createNotification(n)}},removeItemFromCart(e){const t=this.cart[e];t.qty=0,this.cart.splice(e,1)}}});function Vm(e,t){return function(){return e.apply(t,arguments)}}const{toString:I4}=Object.prototype,{getPrototypeOf:yh}=Object,fu=(e=>t=>{const r=I4.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Vr=e=>(e=e.toLowerCase(),t=>fu(t)===e),du=e=>t=>typeof t===e,{isArray:pi}=Array,na=du("undefined");function N4(e){return e!==null&&!na(e)&&e.constructor!==null&&!na(e.constructor)&&ur(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Um=Vr("ArrayBuffer");function M4(e){let t;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Um(e.buffer),t}const B4=du("string"),ur=du("function"),qm=du("number"),pu=e=>e!==null&&typeof e=="object",$4=e=>e===!0||e===!1,to=e=>{if(fu(e)!=="object")return!1;const t=yh(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},H4=Vr("Date"),j4=Vr("File"),L4=Vr("Blob"),V4=Vr("FileList"),U4=e=>pu(e)&&ur(e.pipe),q4=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||ur(e.append)&&((t=fu(e))==="formdata"||t==="object"&&ur(e.toString)&&e.toString()==="[object FormData]"))},K4=Vr("URLSearchParams"),Y4=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ba(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e=="undefined")return;let n,s;if(typeof e!="object"&&(e=[e]),pi(e))for(n=0,s=e.length;n0;)if(s=r[n],t===s.toLowerCase())return s;return null}const Ym=(()=>typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global)(),zm=e=>!na(e)&&e!==Ym;function nc(){const{caseless:e}=zm(this)&&this||{},t={},r=(n,s)=>{const i=e&&Km(t,s)||s;to(t[i])&&to(n)?t[i]=nc(t[i],n):to(n)?t[i]=nc({},n):pi(n)?t[i]=n.slice():t[i]=n};for(let n=0,s=arguments.length;n(ba(t,(s,i)=>{r&&ur(s)?e[i]=Vm(s,r):e[i]=s},{allOwnKeys:n}),e),W4=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),G4=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},J4=(e,t,r,n)=>{let s,i,a;const o={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),i=s.length;i-- >0;)a=s[i],(!n||n(a,e,t))&&!o[a]&&(t[a]=e[a],o[a]=!0);e=r!==!1&&yh(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},X4=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},Z4=e=>{if(!e)return null;if(pi(e))return e;let t=e.length;if(!qm(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},Q4=(e=>t=>e&&t instanceof e)(typeof Uint8Array!="undefined"&&yh(Uint8Array)),e3=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=n.next())&&!s.done;){const i=s.value;t.call(e,i[0],i[1])}},t3=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},r3=Vr("HTMLFormElement"),n3=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,s){return n.toUpperCase()+s}),Jd=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),s3=Vr("RegExp"),Wm=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};ba(r,(s,i)=>{let a;(a=t(s,i,e))!==!1&&(n[i]=a||s)}),Object.defineProperties(e,n)},i3=e=>{Wm(e,(t,r)=>{if(ur(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(ur(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},a3=(e,t)=>{const r={},n=s=>{s.forEach(i=>{r[i]=!0})};return pi(e)?n(e):n(String(e).split(t)),r},o3=()=>{},u3=(e,t)=>(e=+e,Number.isFinite(e)?e:t),vl="abcdefghijklmnopqrstuvwxyz",Xd="0123456789",Gm={DIGIT:Xd,ALPHA:vl,ALPHA_DIGIT:vl+vl.toUpperCase()+Xd},l3=(e=16,t=Gm.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function c3(e){return!!(e&&ur(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const h3=e=>{const t=new Array(10),r=(n,s)=>{if(pu(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[s]=n;const i=pi(n)?[]:{};return ba(n,(a,o)=>{const u=r(a,s+1);!na(u)&&(i[o]=u)}),t[s]=void 0,i}}return n};return r(e,0)},f3=Vr("AsyncFunction"),d3=e=>e&&(pu(e)||ur(e))&&ur(e.then)&&ur(e.catch),z={isArray:pi,isArrayBuffer:Um,isBuffer:N4,isFormData:q4,isArrayBufferView:M4,isString:B4,isNumber:qm,isBoolean:$4,isObject:pu,isPlainObject:to,isUndefined:na,isDate:H4,isFile:j4,isBlob:L4,isRegExp:s3,isFunction:ur,isStream:U4,isURLSearchParams:K4,isTypedArray:Q4,isFileList:V4,forEach:ba,merge:nc,extend:z4,trim:Y4,stripBOM:W4,inherits:G4,toFlatObject:J4,kindOf:fu,kindOfTest:Vr,endsWith:X4,toArray:Z4,forEachEntry:e3,matchAll:t3,isHTMLForm:r3,hasOwnProperty:Jd,hasOwnProp:Jd,reduceDescriptors:Wm,freezeMethods:i3,toObjectSet:a3,toCamelCase:n3,noop:o3,toFiniteNumber:u3,findKey:Km,global:Ym,isContextDefined:zm,ALPHABET:Gm,generateString:l3,isSpecCompliantForm:c3,toJSONObject:h3,isAsyncFn:f3,isThenable:d3};function Ie(e,t,r,n,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),s&&(this.response=s)}z.inherits(Ie,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:z.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Jm=Ie.prototype,Xm={};["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(e=>{Xm[e]={value:e}});Object.defineProperties(Ie,Xm);Object.defineProperty(Jm,"isAxiosError",{value:!0});Ie.from=(e,t,r,n,s,i)=>{const a=Object.create(Jm);return z.toFlatObject(e,a,function(u){return u!==Error.prototype},o=>o!=="isAxiosError"),Ie.call(a,e.message,t,r,n,s),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const p3=null;function sc(e){return z.isPlainObject(e)||z.isArray(e)}function Zm(e){return z.endsWith(e,"[]")?e.slice(0,-2):e}function Zd(e,t,r){return e?e.concat(t).map(function(s,i){return s=Zm(s),!r&&i?"["+s+"]":s}).join(r?".":""):t}function g3(e){return z.isArray(e)&&!e.some(sc)}const m3=z.toFlatObject(z,{},null,function(t){return/^is[A-Z]/.test(t)});function gu(e,t,r){if(!z.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=z.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,m){return!z.isUndefined(m[g])});const n=r.metaTokens,s=r.visitor||c,i=r.dots,a=r.indexes,u=(r.Blob||typeof Blob!="undefined"&&Blob)&&z.isSpecCompliantForm(t);if(!z.isFunction(s))throw new TypeError("visitor must be a function");function l(d){if(d===null)return"";if(z.isDate(d))return d.toISOString();if(!u&&z.isBlob(d))throw new Ie("Blob is not supported. Use a Buffer instead.");return z.isArrayBuffer(d)||z.isTypedArray(d)?u&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function c(d,g,m){let y=d;if(d&&!m&&typeof d=="object"){if(z.endsWith(g,"{}"))g=n?g:g.slice(0,-2),d=JSON.stringify(d);else if(z.isArray(d)&&g3(d)||(z.isFileList(d)||z.endsWith(g,"[]"))&&(y=z.toArray(d)))return g=Zm(g),y.forEach(function(C,k){!(z.isUndefined(C)||C===null)&&t.append(a===!0?Zd([g],k,i):a===null?g:g+"[]",l(C))}),!1}return sc(d)?!0:(t.append(Zd(m,g,i),l(d)),!1)}const f=[],h=Object.assign(m3,{defaultVisitor:c,convertValue:l,isVisitable:sc});function p(d,g){if(!z.isUndefined(d)){if(f.indexOf(d)!==-1)throw Error("Circular reference detected in "+g.join("."));f.push(d),z.forEach(d,function(y,w){(!(z.isUndefined(y)||y===null)&&s.call(t,y,z.isString(w)?w.trim():w,g,h))===!0&&p(y,g?g.concat(w):[w])}),f.pop()}}if(!z.isObject(e))throw new TypeError("data must be an object");return p(e),t}function Qd(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function bh(e,t){this._pairs=[],e&&gu(e,this,t)}const Qm=bh.prototype;Qm.append=function(t,r){this._pairs.push([t,r])};Qm.toString=function(t){const r=t?function(n){return t.call(this,n,Qd)}:Qd;return this._pairs.map(function(s){return r(s[0])+"="+r(s[1])},"").join("&")};function v3(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function e1(e,t,r){if(!t)return e;const n=r&&r.encode||v3,s=r&&r.serialize;let i;if(s?i=s(t,r):i=z.isURLSearchParams(t)?t.toString():new bh(t,r).toString(n),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class y3{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){z.forEach(this.handlers,function(n){n!==null&&t(n)})}}const ep=y3,t1={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},b3=typeof URLSearchParams!="undefined"?URLSearchParams:bh,w3=typeof FormData!="undefined"?FormData:null,x3=typeof Blob!="undefined"?Blob:null,S3={isBrowser:!0,classes:{URLSearchParams:b3,FormData:w3,Blob:x3},protocols:["http","https","file","blob","url","data"]},r1=typeof window!="undefined"&&typeof document!="undefined",_3=(e=>r1&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator!="undefined"&&navigator.product),E3=(()=>typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),C3=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:r1,hasStandardBrowserEnv:_3,hasStandardBrowserWebWorkerEnv:E3},Symbol.toStringTag,{value:"Module"})),Ir=wt(wt({},C3),S3);function k3(e,t){return gu(e,new Ir.classes.URLSearchParams,Object.assign({visitor:function(r,n,s,i){return Ir.isNode&&z.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function A3(e){return z.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function P3(e){const t={},r=Object.keys(e);let n;const s=r.length;let i;for(n=0;n=r.length;return a=!a&&z.isArray(s)?s.length:a,u?(z.hasOwnProp(s,a)?s[a]=[s[a],n]:s[a]=n,!o):((!s[a]||!z.isObject(s[a]))&&(s[a]=[]),t(r,n,s[a],i)&&z.isArray(s[a])&&(s[a]=P3(s[a])),!o)}if(z.isFormData(e)&&z.isFunction(e.entries)){const r={};return z.forEachEntry(e,(n,s)=>{t(A3(n),s,r,0)}),r}return null}function T3(e,t,r){if(z.isString(e))try{return(t||JSON.parse)(e),z.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const wh={transitional:t1,adapter:["xhr","http"],transformRequest:[function(t,r){const n=r.getContentType()||"",s=n.indexOf("application/json")>-1,i=z.isObject(t);if(i&&z.isHTMLForm(t)&&(t=new FormData(t)),z.isFormData(t))return s&&s?JSON.stringify(n1(t)):t;if(z.isArrayBuffer(t)||z.isBuffer(t)||z.isStream(t)||z.isFile(t)||z.isBlob(t))return t;if(z.isArrayBufferView(t))return t.buffer;if(z.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let o;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return k3(t,this.formSerializer).toString();if((o=z.isFileList(t))||n.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return gu(o?{"files[]":t}:t,u&&new u,this.formSerializer)}}return i||s?(r.setContentType("application/json",!1),T3(t)):t}],transformResponse:[function(t){const r=this.transitional||wh.transitional,n=r&&r.forcedJSONParsing,s=this.responseType==="json";if(t&&z.isString(t)&&(n&&!this.responseType||s)){const a=!(r&&r.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(o){if(a)throw o.name==="SyntaxError"?Ie.from(o,Ie.ERR_BAD_RESPONSE,this,null,this.response):o}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ir.classes.FormData,Blob:Ir.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};z.forEach(["delete","get","head","post","put","patch"],e=>{wh.headers[e]={}});const xh=wh,D3=z.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"]),F3=e=>{const t={};let r,n,s;return e&&e.split(` +`).forEach(function(a){s=a.indexOf(":"),r=a.substring(0,s).trim().toLowerCase(),n=a.substring(s+1).trim(),!(!r||t[r]&&D3[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},tp=Symbol("internals");function ki(e){return e&&String(e).trim().toLowerCase()}function ro(e){return e===!1||e==null?e:z.isArray(e)?e.map(ro):String(e)}function O3(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const R3=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function yl(e,t,r,n,s){if(z.isFunction(n))return n.call(this,t,r);if(s&&(t=r),!!z.isString(t)){if(z.isString(n))return t.indexOf(n)!==-1;if(z.isRegExp(n))return n.test(t)}}function I3(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function N3(e,t){const r=z.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(s,i,a){return this[n].call(this,t,s,i,a)},configurable:!0})})}class mu{constructor(t){t&&this.set(t)}set(t,r,n){const s=this;function i(o,u,l){const c=ki(u);if(!c)throw new Error("header name must be a non-empty string");const f=z.findKey(s,c);(!f||s[f]===void 0||l===!0||l===void 0&&s[f]!==!1)&&(s[f||u]=ro(o))}const a=(o,u)=>z.forEach(o,(l,c)=>i(l,c,u));return z.isPlainObject(t)||t instanceof this.constructor?a(t,r):z.isString(t)&&(t=t.trim())&&!R3(t)?a(F3(t),r):t!=null&&i(r,t,n),this}get(t,r){if(t=ki(t),t){const n=z.findKey(this,t);if(n){const s=this[n];if(!r)return s;if(r===!0)return O3(s);if(z.isFunction(r))return r.call(this,s,n);if(z.isRegExp(r))return r.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=ki(t),t){const n=z.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||yl(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let s=!1;function i(a){if(a=ki(a),a){const o=z.findKey(n,a);o&&(!r||yl(n,n[o],o,r))&&(delete n[o],s=!0)}}return z.isArray(t)?t.forEach(i):i(t),s}clear(t){const r=Object.keys(this);let n=r.length,s=!1;for(;n--;){const i=r[n];(!t||yl(this,this[i],i,t,!0))&&(delete this[i],s=!0)}return s}normalize(t){const r=this,n={};return z.forEach(this,(s,i)=>{const a=z.findKey(n,i);if(a){r[a]=ro(s),delete r[i];return}const o=t?I3(i):String(i).trim();o!==i&&delete r[i],r[o]=ro(s),n[o]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return z.forEach(this,(n,s)=>{n!=null&&n!==!1&&(r[s]=t&&z.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(s=>n.set(s)),n}static accessor(t){const n=(this[tp]=this[tp]={accessors:{}}).accessors,s=this.prototype;function i(a){const o=ki(a);n[o]||(N3(s,a),n[o]=!0)}return z.isArray(t)?t.forEach(i):i(t),this}}mu.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);z.reduceDescriptors(mu.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});z.freezeMethods(mu);const Qr=mu;function bl(e,t){const r=this||xh,n=t||r,s=Qr.from(n.headers);let i=n.data;return z.forEach(e,function(o){i=o.call(r,i,s.normalize(),t?t.status:void 0)}),s.normalize(),i}function s1(e){return!!(e&&e.__CANCEL__)}function wa(e,t,r){Ie.call(this,e==null?"canceled":e,Ie.ERR_CANCELED,t,r),this.name="CanceledError"}z.inherits(wa,Ie,{__CANCEL__:!0});function M3(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new Ie("Request failed with status code "+r.status,[Ie.ERR_BAD_REQUEST,Ie.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}const B3=Ir.hasStandardBrowserEnv?{write(e,t,r,n,s,i){const a=[e+"="+encodeURIComponent(t)];z.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),z.isString(n)&&a.push("path="+n),z.isString(s)&&a.push("domain="+s),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function $3(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function H3(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function i1(e,t){return e&&!$3(t)?H3(e,t):t}const j3=Ir.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let n;function s(i){let a=i;return t&&(r.setAttribute("href",a),a=r.href),r.setAttribute("href",a),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=s(window.location.href),function(a){const o=z.isString(a)?s(a):a;return o.protocol===n.protocol&&o.host===n.host}}():function(){return function(){return!0}}();function L3(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function V3(e,t){e=e||10;const r=new Array(e),n=new Array(e);let s=0,i=0,a;return t=t!==void 0?t:1e3,function(u){const l=Date.now(),c=n[i];a||(a=l),r[s]=u,n[s]=l;let f=i,h=0;for(;f!==s;)h+=r[f++],f=f%e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),l-a{const i=s.loaded,a=s.lengthComputable?s.total:void 0,o=i-r,u=n(o),l=i<=a;r=i;const c={loaded:i,total:a,progress:a?i/a:void 0,bytes:o,rate:u||void 0,estimated:u&&a&&l?(a-i)/u:void 0,event:s};c[t?"download":"upload"]=!0,e(c)}}const U3=typeof XMLHttpRequest!="undefined",q3=U3&&function(e){return new Promise(function(r,n){let s=e.data;const i=Qr.from(e.headers).normalize();let{responseType:a,withXSRFToken:o}=e,u;function l(){e.cancelToken&&e.cancelToken.unsubscribe(u),e.signal&&e.signal.removeEventListener("abort",u)}let c;if(z.isFormData(s)){if(Ir.hasStandardBrowserEnv||Ir.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((c=i.getContentType())!==!1){const[g,...m]=c?c.split(";").map(y=>y.trim()).filter(Boolean):[];i.setContentType([g||"multipart/form-data",...m].join("; "))}}let f=new XMLHttpRequest;if(e.auth){const g=e.auth.username||"",m=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(g+":"+m))}const h=i1(e.baseURL,e.url);f.open(e.method.toUpperCase(),e1(h,e.params,e.paramsSerializer),!0),f.timeout=e.timeout;function p(){if(!f)return;const g=Qr.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),y={data:!a||a==="text"||a==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:g,config:e,request:f};M3(function(C){r(C),l()},function(C){n(C),l()},y),f=null}if("onloadend"in f?f.onloadend=p:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)||setTimeout(p)},f.onabort=function(){f&&(n(new Ie("Request aborted",Ie.ECONNABORTED,e,f)),f=null)},f.onerror=function(){n(new Ie("Network Error",Ie.ERR_NETWORK,e,f)),f=null},f.ontimeout=function(){let m=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const y=e.transitional||t1;e.timeoutErrorMessage&&(m=e.timeoutErrorMessage),n(new Ie(m,y.clarifyTimeoutError?Ie.ETIMEDOUT:Ie.ECONNABORTED,e,f)),f=null},Ir.hasStandardBrowserEnv&&(o&&z.isFunction(o)&&(o=o(e)),o||o!==!1&&j3(h))){const g=e.xsrfHeaderName&&e.xsrfCookieName&&B3.read(e.xsrfCookieName);g&&i.set(e.xsrfHeaderName,g)}s===void 0&&i.setContentType(null),"setRequestHeader"in f&&z.forEach(i.toJSON(),function(m,y){f.setRequestHeader(y,m)}),z.isUndefined(e.withCredentials)||(f.withCredentials=!!e.withCredentials),a&&a!=="json"&&(f.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&f.addEventListener("progress",rp(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&f.upload&&f.upload.addEventListener("progress",rp(e.onUploadProgress)),(e.cancelToken||e.signal)&&(u=g=>{f&&(n(!g||g.type?new wa(null,e,f):g),f.abort(),f=null)},e.cancelToken&&e.cancelToken.subscribe(u),e.signal&&(e.signal.aborted?u():e.signal.addEventListener("abort",u)));const d=L3(h);if(d&&Ir.protocols.indexOf(d)===-1){n(new Ie("Unsupported protocol "+d+":",Ie.ERR_BAD_REQUEST,e));return}f.send(s||null)})},ic={http:p3,xhr:q3};z.forEach(ic,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(r){}Object.defineProperty(e,"adapterName",{value:t})}});const np=e=>`- ${e}`,K3=e=>z.isFunction(e)||e===null||e===!1,a1={getAdapter:e=>{e=z.isArray(e)?e:[e];const{length:t}=e;let r,n;const s={};for(let i=0;i`adapter ${o} `+(u===!1?"is not supported by the environment":"is not available in the build"));let a=t?i.length>1?`since : +`+i.map(np).join(` +`):" "+np(i[0]):"as no adapter specified";throw new Ie("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return n},adapters:ic};function wl(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new wa(null,e)}function sp(e){return wl(e),e.headers=Qr.from(e.headers),e.data=bl.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),a1.getAdapter(e.adapter||xh.adapter)(e).then(function(n){return wl(e),n.data=bl.call(e,e.transformResponse,n),n.headers=Qr.from(n.headers),n},function(n){return s1(n)||(wl(e),n&&n.response&&(n.response.data=bl.call(e,e.transformResponse,n.response),n.response.headers=Qr.from(n.response.headers))),Promise.reject(n)})}const ip=e=>e instanceof Qr?e.toJSON():e;function oi(e,t){t=t||{};const r={};function n(l,c,f){return z.isPlainObject(l)&&z.isPlainObject(c)?z.merge.call({caseless:f},l,c):z.isPlainObject(c)?z.merge({},c):z.isArray(c)?c.slice():c}function s(l,c,f){if(z.isUndefined(c)){if(!z.isUndefined(l))return n(void 0,l,f)}else return n(l,c,f)}function i(l,c){if(!z.isUndefined(c))return n(void 0,c)}function a(l,c){if(z.isUndefined(c)){if(!z.isUndefined(l))return n(void 0,l)}else return n(void 0,c)}function o(l,c,f){if(f in t)return n(l,c);if(f in e)return n(void 0,l)}const u={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:o,headers:(l,c)=>s(ip(l),ip(c),!0)};return z.forEach(Object.keys(Object.assign({},e,t)),function(c){const f=u[c]||s,h=f(e[c],t[c],c);z.isUndefined(h)&&f!==o||(r[c]=h)}),r}const o1="1.6.5",Sh={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Sh[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const ap={};Sh.transitional=function(t,r,n){function s(i,a){return"[Axios v"+o1+"] Transitional option '"+i+"'"+a+(n?". "+n:"")}return(i,a,o)=>{if(t===!1)throw new Ie(s(a," has been removed"+(r?" in "+r:"")),Ie.ERR_DEPRECATED);return r&&!ap[a]&&(ap[a]=!0,console.warn(s(a," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(i,a,o):!0}};function Y3(e,t,r){if(typeof e!="object")throw new Ie("options must be an object",Ie.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let s=n.length;for(;s-- >0;){const i=n[s],a=t[i];if(a){const o=e[i],u=o===void 0||a(o,i,e);if(u!==!0)throw new Ie("option "+i+" must be "+u,Ie.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new Ie("Unknown option "+i,Ie.ERR_BAD_OPTION)}}const ac={assertOptions:Y3,validators:Sh},vn=ac.validators;class bo{constructor(t){this.defaults=t,this.interceptors={request:new ep,response:new ep}}request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=oi(this.defaults,r);const{transitional:n,paramsSerializer:s,headers:i}=r;n!==void 0&&ac.assertOptions(n,{silentJSONParsing:vn.transitional(vn.boolean),forcedJSONParsing:vn.transitional(vn.boolean),clarifyTimeoutError:vn.transitional(vn.boolean)},!1),s!=null&&(z.isFunction(s)?r.paramsSerializer={serialize:s}:ac.assertOptions(s,{encode:vn.function,serialize:vn.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let a=i&&z.merge(i.common,i[r.method]);i&&z.forEach(["delete","get","head","post","put","patch","common"],d=>{delete i[d]}),r.headers=Qr.concat(a,i);const o=[];let u=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(r)===!1||(u=u&&g.synchronous,o.unshift(g.fulfilled,g.rejected))});const l=[];this.interceptors.response.forEach(function(g){l.push(g.fulfilled,g.rejected)});let c,f=0,h;if(!u){const d=[sp.bind(this),void 0];for(d.unshift.apply(d,o),d.push.apply(d,l),h=d.length,c=Promise.resolve(r);f{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](s);n._listeners=null}),this.promise.then=s=>{let i;const a=new Promise(o=>{n.subscribe(o),i=o}).then(s);return a.cancel=function(){n.unsubscribe(i)},a},t(function(i,a,o){n.reason||(n.reason=new wa(i,a,o),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}static source(){let t;return{token:new _h(function(s){t=s}),cancel:t}}}const z3=_h;function W3(e){return function(r){return e.apply(null,r)}}function G3(e){return z.isObject(e)&&e.isAxiosError===!0}const oc={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(oc).forEach(([e,t])=>{oc[t]=e});const J3=oc;function u1(e){const t=new no(e),r=Vm(no.prototype.request,t);return z.extend(r,no.prototype,t,{allOwnKeys:!0}),z.extend(r,t,null,{allOwnKeys:!0}),r.create=function(s){return u1(oi(e,s))},r}const mt=u1(xh);mt.Axios=no;mt.CanceledError=wa;mt.CancelToken=z3;mt.isCancel=s1;mt.VERSION=o1;mt.toFormData=gu;mt.AxiosError=Ie;mt.Cancel=mt.CanceledError;mt.all=function(t){return Promise.all(t)};mt.spread=W3;mt.isAxiosError=G3;mt.mergeConfig=oi;mt.AxiosHeaders=Qr;mt.formToJSON=e=>n1(z.isHTMLForm(e)?new FormData(e):e);mt.getAdapter=a1.getAdapter;mt.HttpStatusCode=J3;mt.default=mt;const l1=mt;var c1={exports:{}};const X3={},Z3=Object.freeze(Object.defineProperty({__proto__:null,default:X3},Symbol.toStringTag,{value:"Module"})),Q3=_2(Z3);(function(e,t){var r=function(){Array.isArray||(Array.isArray=function(a){return Object.prototype.toString.call(a)==="[object Array]"}),Number.isInteger||(Number.isInteger=function(a){return typeof a=="number"&&isFinite(a)&&Math.floor(a)===a});var n={VERSION:"2.2.3",DEBUG:!1,log:{trace:function(){n.DEBUG&&console.log.apply(console,arguments)},info:function(){console.info.apply(console,arguments)},warn:function(){console.warn.apply(console,arguments)},allay:function(){n.DEBUG&&console.warn.apply(console,arguments)},error:function(){console.error.apply(console,arguments)}},streams:{serial:"SERIAL",usb:"USB",hid:"HID",printer:"PRINTER",file:"FILE",socket:"SOCKET"},websocket:{connection:null,shutdown:!1,connectConfig:{host:["localhost","localhost.qz.io"],hostIndex:0,usingSecure:!0,protocol:{secure:"wss://",insecure:"ws://"},port:{secure:[8181,8282,8383,8484],insecure:[8182,8283,8384,8485],portIndex:0},keepAlive:60,retries:0,delay:0},setup:{findConnection:function(a,o,u){if(n.websocket.shutdown){u(new Error("Connection attempt cancelled by user"));return}if(a.port.secure.length)!a.port.insecure.length&&!a.usingSecure&&(n.log.trace("No insecure ports specified - forcing secure connection"),a.usingSecure=!0);else if(a.port.insecure.length)a.usingSecure&&(n.log.error("No secure ports specified - forcing insecure connection"),a.usingSecure=!1);else{u(new Error("No ports have been specified to connect over"));return}var l=function(){if(n.websocket.shutdown){u(new Error("Connection attempt cancelled by user"));return}if(a.port.portIndex++,a.usingSecure&&a.port.portIndex>=a.port.secure.length||!a.usingSecure&&a.port.portIndex>=a.port.insecure.length)if(a.hostIndex>=a.host.length-1){u(new Error("Unable to establish connection with QZ"));return}else a.hostIndex++,a.port.portIndex=0;n.websocket.setup.findConnection(a,o,u)},c;a.usingSecure?c=a.protocol.secure+a.host[a.hostIndex]+":"+a.port.secure[a.port.portIndex]:c=a.protocol.insecure+a.host[a.hostIndex]+":"+a.port.insecure[a.port.portIndex];try{n.log.trace("Attempting connection",c),n.websocket.connection=new n.tools.ws(c)}catch(f){n.log.error(f),l();return}n.websocket.connection!=null?(n.websocket.connection.established=!1,n.websocket.connection.onopen=function(f){if(!n.websocket.connection.established&&(n.log.trace(f),n.log.info("Established connection with QZ Tray on "+c),n.websocket.setup.openConnection({resolve:o,reject:u}),a.keepAlive>0)){var h=setInterval(function(){if(!n.tools.isActive()||n.websocket.connection.interval!==h){clearInterval(h);return}n.websocket.connection.send("ping")},a.keepAlive*1e3);n.websocket.connection.interval=h}},n.websocket.connection.onclose=function(){n.websocket.connection&&typeof navigator!="undefined"&&navigator.userAgent.indexOf("Safari")!=-1&&navigator.userAgent.indexOf("Chrome")==-1&&n.websocket.connection.onerror()},n.websocket.connection.onerror=function(f){n.log.trace(f),n.websocket.connection=null,l()}):u(new Error("Unable to create a websocket connection"))},openConnection:function(a){n.websocket.connection.established=!0,n.websocket.connection.onclose=function(u){n.log.trace(u),n.websocket.connection=null,n.websocket.callClose(u),n.log.info("Closed connection with QZ Tray");for(var l in n.websocket.pendingCalls)n.websocket.pendingCalls.hasOwnProperty(l)&&n.websocket.pendingCalls[l].reject(new Error("Connection closed before response received"));this.promise!=null&&this.promise.resolve()},n.websocket.connection.onerror=function(u){n.websocket.callError(u)},n.websocket.connection.sendData=function(u){n.log.trace("Preparing object for websocket",u),u.timestamp==null&&(u.timestamp=Date.now(),typeof u.timestamp!="number"&&(u.timestamp=new Date().getTime())),u.promise!=null&&(u.uid=n.websocket.setup.newUID(),n.websocket.pendingCalls[u.uid]=u.promise),u.position={x:typeof screen!="undefined"?(screen.availWidth||screen.width)/2+(screen.left||screen.availLeft||0):0,y:typeof screen!="undefined"?(screen.availHeight||screen.height)/2+(screen.top||screen.availTop||0):0};try{if(u.call!=null&&u.signature==null&&n.security.needsSigned(u.call)){var l={call:u.call,params:u.params,timestamp:u.timestamp},c=n.tools.hash(n.tools.stringify(l));c.then||(c=n.tools.promise(function(f){f(c)})),c.then(function(f){return n.security.callSign(f)}).then(function(f){n.log.trace("Signature for call",f),u.signature=f||"",u.signAlgorithm=n.security.signAlgorithm,n.signContent=void 0,n.websocket.connection.send(n.tools.stringify(u))})}else n.log.trace("Signature for call",u.signature),n.websocket.connection.send(n.tools.stringify(u))}catch(f){n.log.error(f),u.promise!=null&&(u.promise.reject(f),delete n.websocket.pendingCalls[u.uid])}},n.websocket.connection.onmessage=function(u){var l=JSON.parse(u.data);if(l.uid==null){if(l.type==null)n.websocket.connection.close(4003,"Connected to incompatible QZ Tray version");else switch(l.type){case n.streams.serial:l.event||(l.event=JSON.stringify({portName:l.key,output:l.data})),n.serial.callSerial(JSON.parse(l.event));break;case n.streams.socket:n.socket.callSocket(JSON.parse(l.event));break;case n.streams.usb:l.event||(l.event=JSON.stringify({vendorId:l.key[0],productId:l.key[1],output:l.data})),n.usb.callUsb(JSON.parse(l.event));break;case n.streams.hid:n.hid.callHid(JSON.parse(l.event));break;case n.streams.printer:n.printers.callPrinter(JSON.parse(l.event));break;case n.streams.file:n.file.callFile(JSON.parse(l.event));break;default:n.log.allay("Cannot determine stream type for callback",l);break}return}n.log.trace("Received response from websocket",l);var c=n.websocket.pendingCalls[l.uid];c==null?n.log.allay("No promise found for returned response"):l.error!=null?c.reject(new Error(l.error)):c.resolve(l.result),delete n.websocket.pendingCalls[l.uid]};function o(u){u===void 0&&(u=null),i.api.getVersion().then(function(l){n.websocket.connection.version=l,n.websocket.connection.semver=l.toLowerCase().replace(/-rc\./g,"-rc").split(/[\\+\\.-]/g);for(var c=0;c-1&&(u=!0):(a[o].format&&["HTML","IMAGE","PDF","FILE","XML"].indexOf(a[o].format.toUpperCase())>-1||a[o].type&&(["PIXEL","IMAGE","PDF"].indexOf(a[o].type.toUpperCase())>-1&&!a[o].format||["HTML","PDF"].indexOf(a[o].type.toUpperCase())>-1&&(!a[o].format||a[o].format.toUpperCase()==="FILE")))&&(u=!0),u&&(a[o].data=n.tools.absolute(a[o].data)),a[o].options&&typeof a[o].options.overlay=="string"&&(a[o].options.overlay=n.tools.absolute(a[o].options.overlay))}},extend:function(a){typeof a!="object"&&(a={});for(var o=1;o3&&c[3]!=l?Number.isInteger(c[3])&&Number.isInteger(l)?c[3]-l:c[3].toString().localeCompare(l.toString()):0}},isVersion:function(a,o,u,l){return n.tools.versionCompare(a,o,u,l)==0},isActive:function(){return!n.websocket.shutdown&&n.websocket.connection!=null&&(n.websocket.connection.readyState===n.tools.ws.OPEN||n.websocket.connection.readyState===n.tools.ws.CONNECTING)},assertActive:function(){if(n.tools.isActive())return!0;throw new Error("A connection to QZ has not been established yet")},uint8ArrayToHex:function(a){return Array.from(a).map(function(o){return o.toString(16).padStart(2,"0")}).join("")},uint8ArrayToBase64:function(a){var o=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9","+","/"],u="",l,c=a.length;for(l=2;l>2],u+=o[(a[l-2]&3)<<4|a[l-1]>>4],u+=o[(a[l-1]&15)<<2|a[l]>>6],u+=o[a[l]&63];return l===c+1&&(u+=o[a[l-2]>>2],u+=o[(a[l-2]&3)<<4],u+="=="),l===c&&(u+=o[a[l-2]>>2],u+=o[(a[l-2]&3)<<4|a[l-1]>>4],u+=o[(a[l-1]&15)<<2],u+="="),u}},compatible:{data:function(a){for(var o=0;o>>a|o<<32-a},_sig0:function(a){return n.SHA._rotr(2,a)^n.SHA._rotr(13,a)^n.SHA._rotr(22,a)},_sig1:function(a){return n.SHA._rotr(6,a)^n.SHA._rotr(11,a)^n.SHA._rotr(25,a)},_dev0:function(a){return n.SHA._rotr(7,a)^n.SHA._rotr(18,a)^a>>>3},_dev1:function(a){return n.SHA._rotr(17,a)^n.SHA._rotr(19,a)^a>>>10},_ch:function(a,o,u){return a&o^~a&u},_maj:function(a,o,u){return a&o^a&u^o&u},_hexStr:function(a){for(var o="",u,l=7;l>=0;l--)u=a>>>l*4&15,o+=u.toString(16);return o},_unescape:function(a){return a.replace(/%(u[\da-f]{4}|[\da-f]{2})/gi,function(o){if(o.length-1)return String.fromCharCode(parseInt(o.substring(o.length-3?2:1),16));var u=o.charCodeAt(0);return u<256?"%"+(0+u.toString(16)).slice(-2).toUpperCase():"%u"+("000"+u.toString(16)).slice(-4).toUpperCase()})},_utf8Encode:function(a){return n.SHA._unescape(encodeURIComponent(a))}}};function s(a,o){this.config=n.tools.extend({},n.printing.defaultConfig),this._dirtyOpts={},this.setPrinter=function(u){typeof u=="string"&&(u={name:u}),u&&u.file&&u.file.indexOf("\\\\")!=0&&n.log.warn("Printing to file is deprecated. See https://github.com/qzind/tray/issues/730"),this.printer=u},this.getPrinter=function(){return this.printer},this.reconfigure=function(u){for(var l in u)u[l]!==void 0&&(this._dirtyOpts[l]=!0);n.tools.extend(this.config,u)},this.getOptions=function(){return n.compatible.config(this.config,this._dirtyOpts)},this.setPrinter(a),this.reconfigure(o)}s.prototype.print=function(a,o,u){i.print(this,a,o,u)};var i={websocket:{isActive:function(){return n.tools.isActive()},connect:function(a){return n.tools.promise(function(o,u){if(n.websocket.connection){const c=n.websocket.connection.readyState;if(c===n.tools.ws.OPEN){u(new Error("An open connection with QZ Tray already exists"));return}else if(c===n.tools.ws.CONNECTING){u(new Error("The current connection attempt has not returned yet"));return}else if(c===n.tools.ws.CLOSING){u(new Error("Waiting for previous disconnect request to complete"));return}}if(n.tools.ws){if(!n.tools.ws.CLOSED||n.tools.ws.CLOSED==2){u(new Error("Unsupported WebSocket version detected: HyBi-00/Hixie-76"));return}}else{u(new Error("WebSocket not supported by this browser"));return}a==null&&(a={}),(typeof location=="undefined"||location.protocol!=="https:")&&typeof a.usingSecure=="undefined"&&(n.log.trace("Disabling secure ports due to insecure page"),a.usingSecure=!1),typeof a.host!="undefined"&&!Array.isArray(a.host)&&(a.host=[a.host]),n.websocket.shutdown=!1;var l=function(c){var f=!1,h=function(){f||(f=!0,a&&c=3&&(typeof arguments[2]=="boolean"?(u=arguments[2],arguments.length>=5&&(l=arguments[3],c=arguments[4])):arguments.length>=4&&(l=arguments[2],c=arguments[3]),l&&!Array.isArray(l)&&(l=[l]),c&&!Array.isArray(c)&&(c=[c])),Array.isArray(a)||(a=[a]),Array.isArray(o[0])||(o=[o]);for(var f=0;f=0&&(typeof o!="object"&&(o={data:o,type:"PLAIN"}),o.type&&o.type.toUpperCase()=="FILE"&&(o.data=n.tools.absolute(o.data)));var l={port:a,data:o,options:u};return n.websocket.dataPromise("serial.sendData",l)},closePort:function(a){return n.websocket.dataPromise("serial.closePort",{port:a})}},socket:{open:function(a,o,u){var l={host:a,port:o,options:u};return n.websocket.dataPromise("socket.open",l)},close:function(a,o){var u={host:a,port:o};return n.websocket.dataPromise("socket.close",u)},sendData:function(a,o,u){typeof u!="object"&&(u={data:u,type:"PLAIN"});var l={host:a,port:o,data:u};return n.websocket.dataPromise("socket.sendData",l)},setSocketCallbacks:function(a){n.socket.socketCallbacks=a}},usb:{listDevices:function(a){return n.websocket.dataPromise("usb.listDevices",{includeHubs:a})},listInterfaces:function(a){return typeof a!="object"&&(a={vendorId:arguments[0],productId:arguments[1]}),n.websocket.dataPromise("usb.listInterfaces",a)},listEndpoints:function(a){return typeof a!="object"&&(a={vendorId:arguments[0],productId:arguments[1],interface:arguments[2]}),n.websocket.dataPromise("usb.listEndpoints",a)},setUsbCallbacks:function(a){n.usb.usbCallbacks=a},claimDevice:function(a){return typeof a!="object"&&(a={vendorId:arguments[0],productId:arguments[1],interface:arguments[2]}),n.websocket.dataPromise("usb.claimDevice",a)},isClaimed:function(a){return typeof a!="object"&&(a={vendorId:arguments[0],productId:arguments[1]}),n.websocket.dataPromise("usb.isClaimed",a)},sendData:function(a){return typeof a!="object"&&(a={vendorId:arguments[0],productId:arguments[1],endpoint:arguments[2],data:arguments[3]}),n.tools.versionCompare(2,1,0,12)>=0&&(typeof a.data!="object"&&(a.data={data:a.data,type:"PLAIN"}),a.data.type&&a.data.type.toUpperCase()=="FILE"&&(a.data.data=n.tools.absolute(a.data.data))),n.websocket.dataPromise("usb.sendData",a)},readData:function(a){return typeof a!="object"&&(a={vendorId:arguments[0],productId:arguments[1],endpoint:arguments[2],responseSize:arguments[3]}),n.websocket.dataPromise("usb.readData",a)},openStream:function(a){return typeof a!="object"&&(a={vendorId:arguments[0],productId:arguments[1],endpoint:arguments[2],responseSize:arguments[3],interval:arguments[4]}),n.websocket.dataPromise("usb.openStream",a)},closeStream:function(a){return typeof a!="object"&&(a={vendorId:arguments[0],productId:arguments[1],endpoint:arguments[2]}),n.websocket.dataPromise("usb.closeStream",a)},releaseDevice:function(a){return typeof a!="object"&&(a={vendorId:arguments[0],productId:arguments[1]}),n.websocket.dataPromise("usb.releaseDevice",a)}},hid:{listDevices:function(){return n.websocket.dataPromise("hid.listDevices")},startListening:function(){return n.websocket.dataPromise("hid.startListening")},stopListening:function(){return n.websocket.dataPromise("hid.stopListening")},setHidCallbacks:function(a){n.hid.hidCallbacks=a},claimDevice:function(a){return typeof a!="object"&&(a={vendorId:arguments[0],productId:arguments[1]}),n.websocket.dataPromise("hid.claimDevice",a)},isClaimed:function(a){return typeof a!="object"&&(a={vendorId:arguments[0],productId:arguments[1]}),n.websocket.dataPromise("hid.isClaimed",a)},sendData:function(a){if(typeof a!="object"&&(a={vendorId:arguments[0],productId:arguments[1],data:arguments[2],endpoint:arguments[3]}),n.tools.versionCompare(2,1,0,12)>=0)typeof a.data!="object"&&(a.data={data:a.data,type:"PLAIN"}),a.data.type&&a.data.type.toUpperCase()=="FILE"&&(a.data.data=n.tools.absolute(a.data.data));else if(typeof a.data=="object"){if(a.data.type.toUpperCase()!=="PLAIN"||typeof a.data.data!="string")return n.tools.reject(new Error("Data format is not supported with connected QZ Tray version "+n.websocket.connection.version));a.data=a.data.data}return n.websocket.dataPromise("hid.sendData",a)},readData:function(a){return typeof a!="object"&&(a={vendorId:arguments[0],productId:arguments[1],responseSize:arguments[2]}),n.websocket.dataPromise("hid.readData",a)},sendFeatureReport:function(a){return n.websocket.dataPromise("hid.sendFeatureReport",a)},getFeatureReport:function(a){return n.websocket.dataPromise("hid.getFeatureReport",a)},openStream:function(a){return typeof a!="object"&&(a={vendorId:arguments[0],productId:arguments[1],responseSize:arguments[2],interval:arguments[3]}),n.websocket.dataPromise("hid.openStream",a)},closeStream:function(a){return typeof a!="object"&&(a={vendorId:arguments[0],productId:arguments[1]}),n.websocket.dataPromise("hid.closeStream",a)},releaseDevice:function(a){return typeof a!="object"&&(a={vendorId:arguments[0],productId:arguments[1]}),n.websocket.dataPromise("hid.releaseDevice",a)}},file:{list:function(a,o){var u=n.tools.extend({path:a},o);return n.websocket.dataPromise("file.list",u)},read:function(a,o){var u=n.tools.extend({path:a},o);return n.websocket.dataPromise("file.read",u)},write:function(a,o){var u=n.tools.extend({path:a},o);return n.websocket.dataPromise("file.write",u)},remove:function(a,o){var u=n.tools.extend({path:a},o);return n.websocket.dataPromise("file.remove",u)},startListening:function(a,o){o&&typeof o.include!="undefined"&&!Array.isArray(o.include)&&(o.include=[o.include]),o&&typeof o.exclude!="undefined"&&!Array.isArray(o.exclude)&&(o.exclude=[o.exclude]);var u=n.tools.extend({path:a},o);return n.websocket.dataPromise("file.startListening",u)},stopListening:function(a,o){var u=n.tools.extend({path:a},o);return n.websocket.dataPromise("file.stopListening",u)},setFileCallbacks:function(a){n.file.fileCallbacks=a}},networking:{device:function(a,o){return n.tools.isVersion(2,0)?n.compatible.networking(a,o,null,null,function(u){return{ip:u.ipAddress,mac:u.macAddress}}):n.websocket.dataPromise("networking.device",{hostname:a,port:o})},hostname:function(a,o){return n.tools.versionCompare(2,2,2)<0?n.tools.promise(function(u,l){n.websocket.dataPromise("networking.device",{hostname:a,port:o}).then(function(c){console.log(c),u(c.hostname)})}):n.websocket.dataPromise("networking.hostname")},devices:function(a,o){return n.tools.isVersion(2,0)?n.compatible.networking(a,o,null,null,function(u){return[{ip:u.ipAddress,mac:u.macAddress}]}):n.websocket.dataPromise("networking.devices",{hostname:a,port:o})}},security:{setCertificatePromise:function(a,o){n.security.certHandler=a,n.security.rejectOnCertFailure=!!(o&&o.rejectOnFailure)},setSignaturePromise:function(a){n.security.signatureFactory=a},setSignatureAlgorithm:function(a){n.compatible.algorithm()&&(["SHA1","SHA256","SHA512"].indexOf(a.toUpperCase())<0?n.log.error("Signing algorithm '"+a+"' is not supported."):n.security.signAlgorithm=a)},getSignatureAlgorithm:function(){return n.security.signAlgorithm}},api:{showDebug:function(a){return n.DEBUG=a},getVersion:function(){return n.websocket.dataPromise("getVersion")},isVersion:n.tools.isVersion,isVersionGreater:function(a,o,u,l){return n.tools.versionCompare(a,o,u,l)>0},isVersionLess:function(a,o,u,l){return n.tools.versionCompare(a,o,u,l)<0},setPromiseType:function(a){n.tools.promise=a},setSha256Type:function(a){n.tools.hash=a},setWebSocketType:function(a){n.tools.ws=a}},version:n.VERSION};return i}();(function(){e.exports=r})()})(c1);var e6=c1.exports;const Yt=Rg(e6),t6="PASTE YOUR KEY HERE";var sa={};sa.userAgent=!1;var Bs={};/*! CryptoJS v3.1.2 core-fix.js + * code.google.com/p/crypto-js + * (c) 2009-2013 by Jeff Mott. All rights reserved. + * code.google.com/p/crypto-js/wiki/License + * THIS IS FIX of 'core.js' to fix Hmac issue. + * https://code.google.com/p/crypto-js/issues/detail?id=84 + * https://crypto-js.googlecode.com/svn-history/r667/branches/3.x/src/core.js + */var re=re||function(e,t){var r={},n=r.lib={},s=n.Base=function(){function h(){}return{extend:function(p){h.prototype=this;var d=new h;return p&&d.mixIn(p),d.hasOwnProperty("init")||(d.init=function(){d.$super.init.apply(this,arguments)}),d.init.prototype=d,d.$super=this,d},create:function(){var p=this.extend();return p.init.apply(p,arguments),p},init:function(){},mixIn:function(p){for(var d in p)p.hasOwnProperty(d)&&(this[d]=p[d]);p.hasOwnProperty("toString")&&(this.toString=p.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),i=n.WordArray=s.extend({init:function(h,p){h=this.words=h||[],p!=t?this.sigBytes=p:this.sigBytes=h.length*4},toString:function(h){return(h||o).stringify(this)},concat:function(h){var p=this.words,d=h.words,g=this.sigBytes,m=h.sigBytes;if(this.clamp(),g%4)for(var y=0;y>>2]>>>24-y%4*8&255;p[g+y>>>2]|=w<<24-(g+y)%4*8}else for(var y=0;y>>2]=d[y>>>2];return this.sigBytes+=m,this},clamp:function(){var h=this.words,p=this.sigBytes;h[p>>>2]&=4294967295<<32-p%4*8,h.length=e.ceil(p/4)},clone:function(){var h=s.clone.call(this);return h.words=this.words.slice(0),h},random:function(h){for(var p=[],d=0;d>>2]>>>24-m%4*8&255;g.push((y>>>4).toString(16)),g.push((y&15).toString(16))}return g.join("")},parse:function(h){for(var p=h.length,d=[],g=0;g>>3]|=parseInt(h.substr(g,2),16)<<24-g%8*4;return new i.init(d,p/2)}},u=a.Latin1={stringify:function(h){for(var p=h.words,d=h.sigBytes,g=[],m=0;m>>2]>>>24-m%4*8&255;g.push(String.fromCharCode(y))}return g.join("")},parse:function(h){for(var p=h.length,d=[],g=0;g>>2]|=(h.charCodeAt(g)&255)<<24-g%4*8;return new i.init(d,p)}},l=a.Utf8={stringify:function(h){try{return decodeURIComponent(escape(u.stringify(h)))}catch(p){throw new Error("Malformed UTF-8 data")}},parse:function(h){return u.parse(unescape(encodeURIComponent(h)))}},c=n.BufferedBlockAlgorithm=s.extend({reset:function(){this._data=new i.init,this._nDataBytes=0},_append:function(h){typeof h=="string"&&(h=l.parse(h)),this._data.concat(h),this._nDataBytes+=h.sigBytes},_process:function(h){var p=this._data,d=p.words,g=p.sigBytes,m=this.blockSize,y=m*4,w=g/y;h?w=e.ceil(w):w=e.max((w|0)-this._minBufferSize,0);var C=w*m,k=e.min(C*4,g);if(C){for(var P=0;P>>2]&255}},t.BlockCipher=o.extend({cfg:o.cfg.extend({mode:f,padding:l}),reset:function(){o.reset.call(this);var m=this.cfg,g=m.iv,m=m.mode;if(this._xformMode==this._ENC_XFORM_MODE)var y=m.createEncryptor;else y=m.createDecryptor,this._minBufferSize=1;this._mode=y.call(m,this,g&&g.words)},_doProcessBlock:function(g,m){this._mode.processBlock(g,m)},_doFinalize:function(){var g=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){g.pad(this._data,this.blockSize);var m=this._process(!0)}else m=this._process(!0),g.unpad(m);return m},blockSize:4});var c=t.CipherParams=r.extend({init:function(g){this.mixIn(g)},toString:function(g){return(g||this.formatter).stringify(this)}}),f=(p.format={}).OpenSSL={stringify:function(g){var m=g.ciphertext;return g=g.salt,(g?n.create([1398893684,1701076831]).concat(g).concat(m):m).toString(i)},parse:function(g){g=i.parse(g);var m=g.words;if(m[0]==1398893684&&m[1]==1701076831){var y=n.create(m.slice(2,4));m.splice(0,4),g.sigBytes-=16}return c.create({ciphertext:g,salt:y})}},h=t.SerializableCipher=r.extend({cfg:r.extend({format:f}),encrypt:function(g,m,y,w){w=this.cfg.extend(w);var C=g.createEncryptor(y,w);return m=C.finalize(m),C=C.cfg,c.create({ciphertext:m,key:y,iv:C.iv,algorithm:g,mode:C.mode,padding:C.padding,blockSize:g.blockSize,formatter:w.format})},decrypt:function(g,m,y,w){return w=this.cfg.extend(w),m=this._parse(m,w.format),g.createDecryptor(y,w).finalize(m.ciphertext)},_parse:function(g,m){return typeof g=="string"?m.parse(g,this):g}}),p=(p.kdf={}).OpenSSL={execute:function(g,m,y,w){return w||(w=n.random(8)),g=a.create({keySize:m+y}).compute(g,w),y=n.create(g.words.slice(m),4*y),g.sigBytes=4*m,c.create({key:g,iv:y,salt:w})}},d=t.PasswordBasedCipher=h.extend({cfg:h.cfg.extend({kdf:p}),encrypt:function(g,m,y,w){return w=this.cfg.extend(w),y=w.kdf.execute(y,g.keySize,g.ivSize),w.iv=y.iv,g=h.encrypt.call(this,g,m,y.key,w),g.mixIn(y),g},decrypt:function(g,m,y,w){return w=this.cfg.extend(w),m=this._parse(m,w.format),y=w.kdf.execute(y,g.keySize,g.ivSize,m.salt),w.iv=y.iv,h.decrypt.call(this,g,m,y.key,w)}})}();(function(){for(var e=re,t=e.lib.BlockCipher,b=e.algo,r=[],n=[],s=[],i=[],a=[],o=[],u=[],l=[],c=[],f=[],h=[],p=0;256>p;p++)h[p]=128>p?p<<1:p<<1^283;for(var d=0,g=0,p=0;256>p;p++){var m=g^g<<1^g<<2^g<<3^g<<4,m=m>>>8^m&255^99;r[d]=m,n[m]=d;var y=h[d],w=h[y],C=h[w],k=257*h[m]^16843008*m;s[d]=k<<24|k>>>8,i[d]=k<<16|k>>>16,a[d]=k<<8|k>>>24,o[d]=k,k=16843009*C^65537*w^257*y^16843008*d,u[m]=k<<24|k>>>8,l[m]=k<<16|k>>>16,c[m]=k<<8|k>>>24,f[m]=k,d?(d=y^h[h[h[C^y]]],g^=h[h[g]]):d=g=1}var P=[0,1,2,4,8,16,32,64,128,27,54],b=b.AES=t.extend({_doReset:function(){for(var x=this._key,_=x.words,S=x.sigBytes/4,x=4*((this._nRounds=S+6)+1),A=this._keySchedule=[],T=0;T>>24]<<24|r[D>>>16&255]<<16|r[D>>>8&255]<<8|r[D&255]):(D=D<<8|D>>>24,D=r[D>>>24]<<24|r[D>>>16&255]<<16|r[D>>>8&255]<<8|r[D&255],D^=P[T/S|0]<<24),A[T]=A[T-S]^D}for(_=this._invKeySchedule=[],S=0;SS||4>=T?D:u[r[D>>>24]]^l[r[D>>>16&255]]^c[r[D>>>8&255]]^f[r[D&255]]},encryptBlock:function(_,S){this._doCryptBlock(_,S,this._keySchedule,s,i,a,o,r)},decryptBlock:function(_,S){var x=_[S+1];_[S+1]=_[S+3],_[S+3]=x,this._doCryptBlock(_,S,this._invKeySchedule,u,l,c,f,n),x=_[S+1],_[S+1]=_[S+3],_[S+3]=x},_doCryptBlock:function(_,S,x,A,T,D,N,F){for(var R=this._nRounds,Be=_[S]^x[0],st=_[S+1]^x[1],Ze=_[S+2]^x[2],Fe=_[S+3]^x[3],M=4,$=1;$>>24]^T[st>>>16&255]^D[Ze>>>8&255]^N[Fe&255]^x[M++],ve=A[st>>>24]^T[Ze>>>16&255]^D[Fe>>>8&255]^N[Be&255]^x[M++],de=A[Ze>>>24]^T[Fe>>>16&255]^D[Be>>>8&255]^N[st&255]^x[M++],Fe=A[Fe>>>24]^T[Be>>>16&255]^D[st>>>8&255]^N[Ze&255]^x[M++],Be=ae,st=ve,Ze=de;ae=(F[Be>>>24]<<24|F[st>>>16&255]<<16|F[Ze>>>8&255]<<8|F[Fe&255])^x[M++],ve=(F[st>>>24]<<24|F[Ze>>>16&255]<<16|F[Fe>>>8&255]<<8|F[Be&255])^x[M++],de=(F[Ze>>>24]<<24|F[Fe>>>16&255]<<16|F[Be>>>8&255]<<8|F[st&255])^x[M++],Fe=(F[Fe>>>24]<<24|F[Be>>>16&255]<<16|F[st>>>8&255]<<8|F[Ze&255])^x[M++],_[S]=ae,_[S+1]=ve,_[S+2]=de,_[S+3]=Fe},keySize:8});e.AES=t._createHelper(b)})();(function(){function e(h,p){var d=(this._lBlock>>>h^this._rBlock)&p;this._rBlock^=d,this._lBlock^=d<>>h^this._lBlock)&p;this._lBlock^=d,this._rBlock^=d<d;d++){var g=a[d]-1;p[d]=h[g>>>5]>>>31-g%32&1}for(h=this._subKeys=[],g=0;16>g;g++){for(var m=h[g]=[],y=u[g],d=0;24>d;d++)m[d/6|0]|=p[(o[d]-1+y)%28]<<31-d%6,m[4+(d/6|0)]|=p[28+(o[d+24]-1+y)%28]<<31-d%6;for(m[0]=m[0]<<1|m[0]>>>31,d=1;7>d;d++)m[d]>>>=4*(d-1)+3;m[7]=m[7]<<5|m[7]>>>27}for(p=this._invSubKeys=[],d=0;16>d;d++)p[d]=h[15-d]},encryptBlock:function(h,p){this._doCryptBlock(h,p,this._subKeys)},decryptBlock:function(h,p){this._doCryptBlock(h,p,this._invSubKeys)},_doCryptBlock:function(h,p,d){this._lBlock=h[p],this._rBlock=h[p+1],e.call(this,4,252645135),e.call(this,16,65535),t.call(this,2,858993459),t.call(this,8,16711935),e.call(this,1,1431655765);for(var g=0;16>g;g++){for(var m=d[g],y=this._lBlock,w=this._rBlock,C=0,k=0;8>k;k++)C|=l[k][((w^m[k])&c[k])>>>0];this._lBlock=w,this._rBlock=y^C}d=this._lBlock,this._lBlock=this._rBlock,this._rBlock=d,e.call(this,1,1431655765),t.call(this,8,16711935),t.call(this,2,858993459),e.call(this,16,65535),e.call(this,4,252645135),h[p]=this._lBlock,h[p+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});r.DES=s._createHelper(f),i=i.TripleDES=s.extend({_doReset:function(){var h=this._key.words;this._des1=f.createEncryptor(n.create(h.slice(0,2))),this._des2=f.createEncryptor(n.create(h.slice(2,4))),this._des3=f.createEncryptor(n.create(h.slice(4,6)))},encryptBlock:function(h,p){this._des1.encryptBlock(h,p),this._des2.decryptBlock(h,p),this._des3.encryptBlock(h,p)},decryptBlock:function(h,p){this._des3.decryptBlock(h,p),this._des2.encryptBlock(h,p),this._des1.decryptBlock(h,p)},keySize:6,ivSize:2,blockSize:2}),r.TripleDES=s._createHelper(i)})();(function(){var e=re,t=e.lib.WordArray;e.enc.Base64={stringify:function(r){var n=r.words,s=r.sigBytes,i=this._map;r.clamp(),r=[];for(var a=0;a>>2]>>>24-8*(a%4)&255)<<16|(n[a+1>>>2]>>>24-8*((a+1)%4)&255)<<8|n[a+2>>>2]>>>24-8*((a+2)%4)&255,u=0;4>u&&a+.75*u>>6*(3-u)&63));if(n=i.charAt(64))for(;r.length%4;)r.push(n);return r.join("")},parse:function(r){var n=r.length,s=this._map,i=s.charAt(64);i&&(i=r.indexOf(i),i!=-1&&(n=i));for(var i=[],a=0,o=0;o>>6-2*(o%4);i[a>>>2]|=(u|l)<<24-8*(a%4),a++}return t.create(i,a)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}})();(function(e){function t(f,h,p,d,g,m,y){return f=f+(h&p|~h&d)+g+y,(f<>>32-m)+h}function r(f,h,p,d,g,m,y){return f=f+(h&d|p&~d)+g+y,(f<>>32-m)+h}function n(f,h,p,d,g,m,y){return f=f+(h^p^d)+g+y,(f<>>32-m)+h}function s(f,h,p,d,g,m,y){return f=f+(p^(h|~d))+g+y,(f<>>32-m)+h}for(var i=re,u=i.lib,a=u.WordArray,o=u.Hasher,u=i.algo,l=[],c=0;64>c;c++)l[c]=4294967296*e.abs(e.sin(c+1))|0;u=u.MD5=o.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(f,h){for(var p=0;16>p;p++){var d=h+p,g=f[d];f[d]=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360}var p=this._hash.words,d=f[h+0],g=f[h+1],m=f[h+2],y=f[h+3],w=f[h+4],C=f[h+5],k=f[h+6],P=f[h+7],b=f[h+8],_=f[h+9],S=f[h+10],x=f[h+11],A=f[h+12],T=f[h+13],D=f[h+14],N=f[h+15],F=p[0],$=p[1],M=p[2],R=p[3],F=t(F,$,M,R,d,7,l[0]),R=t(R,F,$,M,g,12,l[1]),M=t(M,R,F,$,m,17,l[2]),$=t($,M,R,F,y,22,l[3]),F=t(F,$,M,R,w,7,l[4]),R=t(R,F,$,M,C,12,l[5]),M=t(M,R,F,$,k,17,l[6]),$=t($,M,R,F,P,22,l[7]),F=t(F,$,M,R,b,7,l[8]),R=t(R,F,$,M,_,12,l[9]),M=t(M,R,F,$,S,17,l[10]),$=t($,M,R,F,x,22,l[11]),F=t(F,$,M,R,A,7,l[12]),R=t(R,F,$,M,T,12,l[13]),M=t(M,R,F,$,D,17,l[14]),$=t($,M,R,F,N,22,l[15]),F=r(F,$,M,R,g,5,l[16]),R=r(R,F,$,M,k,9,l[17]),M=r(M,R,F,$,x,14,l[18]),$=r($,M,R,F,d,20,l[19]),F=r(F,$,M,R,C,5,l[20]),R=r(R,F,$,M,S,9,l[21]),M=r(M,R,F,$,N,14,l[22]),$=r($,M,R,F,w,20,l[23]),F=r(F,$,M,R,_,5,l[24]),R=r(R,F,$,M,D,9,l[25]),M=r(M,R,F,$,y,14,l[26]),$=r($,M,R,F,b,20,l[27]),F=r(F,$,M,R,T,5,l[28]),R=r(R,F,$,M,m,9,l[29]),M=r(M,R,F,$,P,14,l[30]),$=r($,M,R,F,A,20,l[31]),F=n(F,$,M,R,C,4,l[32]),R=n(R,F,$,M,b,11,l[33]),M=n(M,R,F,$,x,16,l[34]),$=n($,M,R,F,D,23,l[35]),F=n(F,$,M,R,g,4,l[36]),R=n(R,F,$,M,w,11,l[37]),M=n(M,R,F,$,P,16,l[38]),$=n($,M,R,F,S,23,l[39]),F=n(F,$,M,R,T,4,l[40]),R=n(R,F,$,M,d,11,l[41]),M=n(M,R,F,$,y,16,l[42]),$=n($,M,R,F,k,23,l[43]),F=n(F,$,M,R,_,4,l[44]),R=n(R,F,$,M,A,11,l[45]),M=n(M,R,F,$,N,16,l[46]),$=n($,M,R,F,m,23,l[47]),F=s(F,$,M,R,d,6,l[48]),R=s(R,F,$,M,P,10,l[49]),M=s(M,R,F,$,D,15,l[50]),$=s($,M,R,F,C,21,l[51]),F=s(F,$,M,R,A,6,l[52]),R=s(R,F,$,M,y,10,l[53]),M=s(M,R,F,$,S,15,l[54]),$=s($,M,R,F,g,21,l[55]),F=s(F,$,M,R,b,6,l[56]),R=s(R,F,$,M,N,10,l[57]),M=s(M,R,F,$,k,15,l[58]),$=s($,M,R,F,T,21,l[59]),F=s(F,$,M,R,w,6,l[60]),R=s(R,F,$,M,x,10,l[61]),M=s(M,R,F,$,m,15,l[62]),$=s($,M,R,F,_,21,l[63]);p[0]=p[0]+F|0,p[1]=p[1]+$|0,p[2]=p[2]+M|0,p[3]=p[3]+R|0},_doFinalize:function(){var f=this._data,h=f.words,p=8*this._nDataBytes,d=8*f.sigBytes;h[d>>>5]|=128<<24-d%32;var g=e.floor(p/4294967296);for(h[(d+64>>>9<<4)+15]=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360,h[(d+64>>>9<<4)+14]=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360,f.sigBytes=4*(h.length+1),this._process(),f=this._hash,h=f.words,p=0;4>p;p++)d=h[p],h[p]=(d<<8|d>>>24)&16711935|(d<<24|d>>>8)&4278255360;return f},clone:function(){var f=o.clone.call(this);return f._hash=this._hash.clone(),f}}),i.MD5=o._createHelper(u),i.HmacMD5=o._createHmacHelper(u)})(Math);(function(){var e=re,s=e.lib,t=s.WordArray,r=s.Hasher,n=[],s=e.algo.SHA1=r.extend({_doReset:function(){this._hash=new t.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(i,a){for(var o=this._hash.words,u=o[0],l=o[1],c=o[2],f=o[3],h=o[4],p=0;80>p;p++){if(16>p)n[p]=i[a+p]|0;else{var d=n[p-3]^n[p-8]^n[p-14]^n[p-16];n[p]=d<<1|d>>>31}d=(u<<5|u>>>27)+h+n[p],d=20>p?d+((l&c|~l&f)+1518500249):40>p?d+((l^c^f)+1859775393):60>p?d+((l&c|l&f|c&f)-1894007588):d+((l^c^f)-899497514),h=f,f=c,c=l<<30|l>>>2,l=u,u=d}o[0]=o[0]+u|0,o[1]=o[1]+l|0,o[2]=o[2]+c|0,o[3]=o[3]+f|0,o[4]=o[4]+h|0},_doFinalize:function(){var i=this._data,a=i.words,o=8*this._nDataBytes,u=8*i.sigBytes;return a[u>>>5]|=128<<24-u%32,a[(u+64>>>9<<4)+14]=Math.floor(o/4294967296),a[(u+64>>>9<<4)+15]=o,i.sigBytes=4*a.length,this._process(),this._hash},clone:function(){var i=r.clone.call(this);return i._hash=this._hash.clone(),i}});e.SHA1=r._createHelper(s),e.HmacSHA1=r._createHmacHelper(s)})();(function(e){for(var t=re,p=t.lib,r=p.WordArray,n=p.Hasher,p=t.algo,s=[],i=[],a=function(g){return 4294967296*(g-(g|0))|0},o=2,u=0;64>u;){var l;e:{l=o;for(var c=e.sqrt(l),f=2;f<=c;f++)if(!(l%f)){l=!1;break e}l=!0}l&&(8>u&&(s[u]=a(e.pow(o,.5))),i[u]=a(e.pow(o,1/3)),u++),o++}var h=[],p=p.SHA256=n.extend({_doReset:function(){this._hash=new r.init(s.slice(0))},_doProcessBlock:function(d,g){for(var m=this._hash.words,y=m[0],w=m[1],C=m[2],k=m[3],P=m[4],b=m[5],_=m[6],S=m[7],x=0;64>x;x++){if(16>x)h[x]=d[g+x]|0;else{var A=h[x-15],T=h[x-2];h[x]=((A<<25|A>>>7)^(A<<14|A>>>18)^A>>>3)+h[x-7]+((T<<15|T>>>17)^(T<<13|T>>>19)^T>>>10)+h[x-16]}A=S+((P<<26|P>>>6)^(P<<21|P>>>11)^(P<<7|P>>>25))+(P&b^~P&_)+i[x]+h[x],T=((y<<30|y>>>2)^(y<<19|y>>>13)^(y<<10|y>>>22))+(y&w^y&C^w&C),S=_,_=b,b=P,P=k+A|0,k=C,C=w,w=y,y=A+T|0}m[0]=m[0]+y|0,m[1]=m[1]+w|0,m[2]=m[2]+C|0,m[3]=m[3]+k|0,m[4]=m[4]+P|0,m[5]=m[5]+b|0,m[6]=m[6]+_|0,m[7]=m[7]+S|0},_doFinalize:function(){var d=this._data,g=d.words,m=8*this._nDataBytes,y=8*d.sigBytes;return g[y>>>5]|=128<<24-y%32,g[(y+64>>>9<<4)+14]=e.floor(m/4294967296),g[(y+64>>>9<<4)+15]=m,d.sigBytes=4*g.length,this._process(),this._hash},clone:function(){var d=n.clone.call(this);return d._hash=this._hash.clone(),d}});t.SHA256=n._createHelper(p),t.HmacSHA256=n._createHmacHelper(p)})(Math);(function(){var e=re,t=e.lib.WordArray,n=e.algo,r=n.SHA256,n=n.SHA224=r.extend({_doReset:function(){this._hash=new t.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var s=r._doFinalize.call(this);return s.sigBytes-=4,s}});e.SHA224=r._createHelper(n),e.HmacSHA224=r._createHmacHelper(n)})();(function(){function e(){return n.create.apply(n,arguments)}for(var t=re,r=t.lib.Hasher,i=t.x64,n=i.Word,s=i.WordArray,i=t.algo,a=[e(1116352408,3609767458),e(1899447441,602891725),e(3049323471,3964484399),e(3921009573,2173295548),e(961987163,4081628472),e(1508970993,3053834265),e(2453635748,2937671579),e(2870763221,3664609560),e(3624381080,2734883394),e(310598401,1164996542),e(607225278,1323610764),e(1426881987,3590304994),e(1925078388,4068182383),e(2162078206,991336113),e(2614888103,633803317),e(3248222580,3479774868),e(3835390401,2666613458),e(4022224774,944711139),e(264347078,2341262773),e(604807628,2007800933),e(770255983,1495990901),e(1249150122,1856431235),e(1555081692,3175218132),e(1996064986,2198950837),e(2554220882,3999719339),e(2821834349,766784016),e(2952996808,2566594879),e(3210313671,3203337956),e(3336571891,1034457026),e(3584528711,2466948901),e(113926993,3758326383),e(338241895,168717936),e(666307205,1188179964),e(773529912,1546045734),e(1294757372,1522805485),e(1396182291,2643833823),e(1695183700,2343527390),e(1986661051,1014477480),e(2177026350,1206759142),e(2456956037,344077627),e(2730485921,1290863460),e(2820302411,3158454273),e(3259730800,3505952657),e(3345764771,106217008),e(3516065817,3606008344),e(3600352804,1432725776),e(4094571909,1467031594),e(275423344,851169720),e(430227734,3100823752),e(506948616,1363258195),e(659060556,3750685593),e(883997877,3785050280),e(958139571,3318307427),e(1322822218,3812723403),e(1537002063,2003034995),e(1747873779,3602036899),e(1955562222,1575990012),e(2024104815,1125592928),e(2227730452,2716904306),e(2361852424,442776044),e(2428436474,593698344),e(2756734187,3733110249),e(3204031479,2999351573),e(3329325298,3815920427),e(3391569614,3928383900),e(3515267271,566280711),e(3940187606,3454069534),e(4118630271,4000239992),e(116418474,1914138554),e(174292421,2731055270),e(289380356,3203993006),e(460393269,320620315),e(685471733,587496836),e(852142971,1086792851),e(1017036298,365543100),e(1126000580,2618297676),e(1288033470,3409855158),e(1501505948,4234509866),e(1607167915,987167468),e(1816402316,1246189591)],o=[],u=0;80>u;u++)o[u]=e();i=i.SHA512=r.extend({_doReset:function(){this._hash=new s.init([new n.init(1779033703,4089235720),new n.init(3144134277,2227873595),new n.init(1013904242,4271175723),new n.init(2773480762,1595750129),new n.init(1359893119,2917565137),new n.init(2600822924,725511199),new n.init(528734635,4215389547),new n.init(1541459225,327033209)])},_doProcessBlock:function(l,c){for(var w=this._hash.words,f=w[0],h=w[1],p=w[2],d=w[3],g=w[4],m=w[5],y=w[6],w=w[7],C=f.high,k=f.low,P=h.high,b=h.low,_=p.high,S=p.low,x=d.high,A=d.low,T=g.high,D=g.low,N=m.high,F=m.low,R=y.high,M=y.low,$=w.high,ae=w.low,ve=C,de=k,Fe=P,Be=b,st=_,Ze=S,Ar=x,je=A,L=T,W=D,G=N,ne=F,xe=R,be=M,O=$,I=ae,j=0;80>j;j++){var Se=o[j];if(16>j)var K=Se.high=l[c+2*j]|0,ie=Se.low=l[c+2*j+1]|0;else{var K=o[j-15],ie=K.high,J=K.low,K=(ie>>>1|J<<31)^(ie>>>8|J<<24)^ie>>>7,J=(J>>>1|ie<<31)^(J>>>8|ie<<24)^(J>>>7|ie<<25),te=o[j-2],ie=te.high,se=te.low,te=(ie>>>19|se<<13)^(ie<<3|se>>>29)^ie>>>6,se=(se>>>19|ie<<13)^(se<<3|ie>>>29)^(se>>>6|ie<<26),ie=o[j-7],Y=ie.high,Q=o[j-16],fe=Q.high,Q=Q.low,ie=J+ie.low,K=K+Y+(ie>>>0>>0?1:0),ie=ie+se,K=K+te+(ie>>>0>>0?1:0),ie=ie+Q,K=K+fe+(ie>>>0>>0?1:0);Se.high=K,Se.low=ie}var Y=L&G^~L&xe,Q=W&ne^~W&be,Se=ve&Fe^ve&st^Fe&st,oe=de&Be^de&Ze^Be&Ze,J=(ve>>>28|de<<4)^(ve<<30|de>>>2)^(ve<<25|de>>>7),te=(de>>>28|ve<<4)^(de<<30|ve>>>2)^(de<<25|ve>>>7),se=a[j],X=se.high,ce=se.low,se=I+((W>>>14|L<<18)^(W>>>18|L<<14)^(W<<23|L>>>9)),fe=O+((L>>>14|W<<18)^(L>>>18|W<<14)^(L<<23|W>>>9))+(se>>>0>>0?1:0),se=se+Q,fe=fe+Y+(se>>>0>>0?1:0),se=se+ce,fe=fe+X+(se>>>0>>0?1:0),se=se+ie,fe=fe+K+(se>>>0>>0?1:0),ie=te+oe,Se=J+Se+(ie>>>0>>0?1:0),O=xe,I=be,xe=G,be=ne,G=L,ne=W,W=je+se|0,L=Ar+fe+(W>>>0>>0?1:0)|0,Ar=st,je=Ze,st=Fe,Ze=Be,Fe=ve,Be=de,de=se+ie|0,ve=fe+Se+(de>>>0>>0?1:0)|0}k=f.low=k+de,f.high=C+ve+(k>>>0>>0?1:0),b=h.low=b+Be,h.high=P+Fe+(b>>>0>>0?1:0),S=p.low=S+Ze,p.high=_+st+(S>>>0>>0?1:0),A=d.low=A+je,d.high=x+Ar+(A>>>0>>0?1:0),D=g.low=D+W,g.high=T+L+(D>>>0>>0?1:0),F=m.low=F+ne,m.high=N+G+(F>>>0>>0?1:0),M=y.low=M+be,y.high=R+xe+(M>>>0>>0?1:0),ae=w.low=ae+I,w.high=$+O+(ae>>>0>>0?1:0)},_doFinalize:function(){var l=this._data,c=l.words,f=8*this._nDataBytes,h=8*l.sigBytes;return c[h>>>5]|=128<<24-h%32,c[(h+128>>>10<<5)+30]=Math.floor(f/4294967296),c[(h+128>>>10<<5)+31]=f,l.sigBytes=4*c.length,this._process(),this._hash.toX32()},clone:function(){var l=r.clone.call(this);return l._hash=this._hash.clone(),l},blockSize:32}),t.SHA512=r._createHelper(i),t.HmacSHA512=r._createHmacHelper(i)})();(function(){var e=re,s=e.x64,t=s.Word,r=s.WordArray,s=e.algo,n=s.SHA512,s=s.SHA384=n.extend({_doReset:function(){this._hash=new r.init([new t.init(3418070365,3238371032),new t.init(1654270250,914150663),new t.init(2438529370,812702999),new t.init(355462360,4144912697),new t.init(1731405415,4290775857),new t.init(2394180231,1750603025),new t.init(3675008525,1694076839),new t.init(1203062813,3204075428)])},_doFinalize:function(){var i=n._doFinalize.call(this);return i.sigBytes-=16,i}});e.SHA384=n._createHelper(s),e.HmacSHA384=n._createHmacHelper(s)})();(function(){var e=re,l=e.lib,t=l.WordArray,r=l.Hasher,l=e.algo,n=t.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),s=t.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),i=t.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),a=t.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),o=t.create([0,1518500249,1859775393,2400959708,2840853838]),u=t.create([1352829926,1548603684,1836072691,2053994217,0]),l=l.RIPEMD160=r.extend({_doReset:function(){this._hash=t.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(c,f){for(var h=0;16>h;h++){var p=f+h,d=c[p];c[p]=(d<<8|d>>>24)&16711935|(d<<24|d>>>8)&4278255360}var p=this._hash.words,d=o.words,g=u.words,m=n.words,y=s.words,w=i.words,C=a.words,k,P,b,_,S,x,A,T,D,N;x=k=p[0],A=P=p[1],T=b=p[2],D=_=p[3],N=S=p[4];for(var F,h=0;80>h;h+=1)F=k+c[f+m[h]]|0,F=16>h?F+((P^b^_)+d[0]):32>h?F+((P&b|~P&_)+d[1]):48>h?F+(((P|~b)^_)+d[2]):64>h?F+((P&_|b&~_)+d[3]):F+((P^(b|~_))+d[4]),F|=0,F=F<>>32-w[h],F=F+S|0,k=S,S=_,_=b<<10|b>>>22,b=P,P=F,F=x+c[f+y[h]]|0,F=16>h?F+((A^(T|~D))+g[0]):32>h?F+((A&D|T&~D)+g[1]):48>h?F+(((A|~T)^D)+g[2]):64>h?F+((A&T|~A&D)+g[3]):F+((A^T^D)+g[4]),F|=0,F=F<>>32-C[h],F=F+N|0,x=N,N=D,D=T<<10|T>>>22,T=A,A=F;F=p[1]+b+D|0,p[1]=p[2]+_+N|0,p[2]=p[3]+S+x|0,p[3]=p[4]+k+A|0,p[4]=p[0]+P+T|0,p[0]=F},_doFinalize:function(){var c=this._data,f=c.words,h=8*this._nDataBytes,p=8*c.sigBytes;for(f[p>>>5]|=128<<24-p%32,f[(p+64>>>9<<4)+14]=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360,c.sigBytes=4*(f.length+1),this._process(),c=this._hash,f=c.words,h=0;5>h;h++)p=f[h],f[h]=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360;return c},clone:function(){var c=r.clone.call(this);return c._hash=this._hash.clone(),c}});e.RIPEMD160=r._createHelper(l),e.HmacRIPEMD160=r._createHmacHelper(l)})();(function(){var e=re,t=e.enc.Utf8;e.algo.HMAC=e.lib.Base.extend({init:function(r,n){r=this._hasher=new r.init,typeof n=="string"&&(n=t.parse(n));var s=r.blockSize,i=4*s;n.sigBytes>i&&(n=r.finalize(n)),n.clamp();for(var a=this._oKey=n.clone(),o=this._iKey=n.clone(),u=a.words,l=o.words,c=0;c>6)+js.charAt(r&63);for(t+1==e.length?(r=parseInt(e.substring(t,t+1),16),n+=js.charAt(r<<2)):t+2==e.length&&(r=parseInt(e.substring(t,t+2),16),n+=js.charAt(r>>2)+js.charAt((r&3)<<4));(n.length&3)>0;)n+=h1;return n}function Eh(e){var t="",r,n=0,s,i;for(r=0;r>2),s=i&3,n=1):n==1?(t+=Yr(s<<2|i>>4),s=i&15,n=2):n==2?(t+=Yr(s),t+=Yr(i>>2),s=i&3,n=3):(t+=Yr(s<<2|i>>4),t+=Yr(i&15),n=0));return n==1&&(t+=Yr(s<<2)),t}/*! (c) Tom Wu | http://www-cs-students.stanford.edu/~tjw/jsbn/ +*/var Bn;function B(e,t,r){e!=null&&(typeof e=="number"?this.fromNumber(e,t,r):t==null&&typeof e!="string"?this.fromString(e,256):this.fromString(e,t))}function Re(){return new B(null)}function r6(e,t,r,n,s,i){for(;--i>=0;){var a=t*this[e++]+r[n]+s;s=Math.floor(a/67108864),r[n++]=a&67108863}return s}function n6(e,t,r,n,s,i){for(var a=t&32767,o=t>>15;--i>=0;){var u=this[e]&32767,l=this[e++]>>15,c=o*u+l*a;u=a*u+((c&32767)<<15)+r[n]+(s&1073741823),s=(u>>>30)+(c>>>15)+o*l+(s>>>30),r[n++]=u&1073741823}return s}function s6(e,t,r,n,s,i){for(var a=t&16383,o=t>>14;--i>=0;){var u=this[e]&16383,l=this[e++]>>14,c=o*u+l*a;u=a*u+((c&16383)<<14)+r[n]+s,s=(u>>28)+(c>>14)+o*l,r[n++]=u&268435455}return s}sa.appName=="Microsoft Internet Explorer"?(B.prototype.am=n6,Bn=30):sa.appName!="Netscape"?(B.prototype.am=r6,Bn=26):(B.prototype.am=s6,Bn=28);B.prototype.DB=Bn;B.prototype.DM=(1<=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s}function o6(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0}function Tn(e){var t=Re();return t.fromInt(e),t}function u6(e,t){var r;if(t==16)r=4;else if(t==8)r=3;else if(t==256)r=8;else if(t==2)r=1;else if(t==32)r=5;else if(t==4)r=2;else{this.fromRadix(e,t);return}this.t=0,this.s=0;for(var n=e.length,s=!1,i=0;--n>=0;){var a=r==8?e[n]&255:f1(e,n);if(a<0){e.charAt(n)=="-"&&(s=!0);continue}s=!1,i==0?this[this.t++]=a:i+r>this.DB?(this[this.t-1]|=(a&(1<>this.DB-i):this[this.t-1]|=a<=this.DB&&(i-=this.DB)}r==8&&e[0]&128&&(this.s=-1,i>0&&(this[this.t-1]|=(1<0&&this[this.t-1]==e;)--this.t}function c6(e){if(this.s<0)return"-"+this.negate().toString(e);var t;if(e==16)t=4;else if(e==8)t=3;else if(e==2)t=1;else if(e==32)t=5;else if(e==4)t=2;else return this.toRadix(e);var r=(1<0)for(o>o)>0&&(s=!0,i=Yr(n));a>=0;)o>(o+=this.DB-t)):(n=this[a]>>(o-=t)&r,o<=0&&(o+=this.DB,--a)),n>0&&(s=!0),s&&(i+=Yr(n));return s?i:"0"}function h6(){var e=Re();return B.ZERO.subTo(this,e),e}function f6(){return this.s<0?this.negate():this}function d6(e){var t=this.s-e.s;if(t!=0)return t;var r=this.t;if(t=r-e.t,t!=0)return this.s<0?-t:t;for(;--r>=0;)if((t=this[r]-e[r])!=0)return t;return 0}function yu(e){var t=1,r;return(r=e>>>16)!=0&&(e=r,t+=16),(r=e>>8)!=0&&(e=r,t+=8),(r=e>>4)!=0&&(e=r,t+=4),(r=e>>2)!=0&&(e=r,t+=2),(r=e>>1)!=0&&(e=r,t+=1),t}function p6(){return this.t<=0?0:this.DB*(this.t-1)+yu(this[this.t-1]^this.s&this.DM)}function g6(e,t){var r;for(r=this.t-1;r>=0;--r)t[r+e]=this[r];for(r=e-1;r>=0;--r)t[r]=0;t.t=this.t+e,t.s=this.s}function m6(e,t){for(var r=e;r=0;--o)t[o+i+1]=this[o]>>n|a,a=(this[o]&s)<=0;--o)t[o]=0;t[i]=a,t.t=this.t+i+1,t.s=this.s,t.clamp()}function y6(e,t){t.s=this.s;var r=Math.floor(e/this.DB);if(r>=this.t){t.t=0;return}var n=e%this.DB,s=this.DB-n,i=(1<>n;for(var a=r+1;a>n;n>0&&(t[this.t-r-1]|=(this.s&i)<>=this.DB;if(e.t>=this.DB;n+=this.s}else{for(n+=this.s;r>=this.DB;n-=e.s}t.s=n<0?-1:0,n<-1?t[r++]=this.DV+n:n>0&&(t[r++]=n),t.t=r,t.clamp()}function w6(e,t){var r=this.abs(),n=e.abs(),s=r.t;for(t.t=s+n.t;--s>=0;)t[s]=0;for(s=0;s=0;)e[r]=0;for(r=0;r=t.DV&&(e[r+t.t]-=t.DV,e[r+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(r,t[r],e,2*r,0,1)),e.s=0,e.clamp()}function S6(e,t,r){var n=e.abs();if(!(n.t<=0)){var s=this.abs();if(s.t0?(n.lShiftTo(u,i),s.lShiftTo(u,r)):(n.copyTo(i),s.copyTo(r));var l=i.t,c=i[l-1];if(c!=0){var f=c*(1<1?i[l-2]>>this.F2:0),h=this.FV/f,p=(1<=0&&(r[r.t++]=1,r.subTo(y,r)),B.ONE.dlShiftTo(l,y),y.subTo(i,i);i.t=0;){var w=r[--g]==c?this.DM:Math.floor(r[g]*h+(r[g-1]+d)*p);if((r[g]+=i.am(0,w,r,m,0,l))0&&r.rShiftTo(u,r),a<0&&B.ZERO.subTo(r,r)}}}function _6(e){var t=Re();return this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(B.ZERO)>0&&e.subTo(t,t),t}function Cs(e){this.m=e}function E6(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e}function C6(e){return e}function k6(e){e.divRemTo(this.m,null,e)}function A6(e,t,r){e.multiplyTo(t,r),this.reduce(r)}function P6(e,t){e.squareTo(t),this.reduce(t)}Cs.prototype.convert=E6;Cs.prototype.revert=C6;Cs.prototype.reduce=k6;Cs.prototype.mulTo=A6;Cs.prototype.sqrTo=P6;function T6(){if(this.t<1)return 0;var e=this[0];if(!(e&1))return 0;var t=e&3;return t=t*(2-(e&15)*t)&15,t=t*(2-(e&255)*t)&255,t=t*(2-((e&65535)*t&65535))&65535,t=t*(2-e*t%this.DV)%this.DV,t>0?this.DV-t:-t}function ks(e){this.m=e,this.mp=e.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<0&&this.m.subTo(t,t),t}function F6(e){var t=Re();return e.copyTo(t),this.reduce(t),t}function O6(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var t=0;t>15)*this.mpl&this.um)<<15)&e.DM;for(r=t+this.m.t,e[r]+=this.m.am(0,n,e,t,0,this.m.t);e[r]>=e.DV;)e[r]-=e.DV,e[++r]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)}function R6(e,t){e.squareTo(t),this.reduce(t)}function I6(e,t,r){e.multiplyTo(t,r),this.reduce(r)}ks.prototype.convert=D6;ks.prototype.revert=F6;ks.prototype.reduce=O6;ks.prototype.mulTo=I6;ks.prototype.sqrTo=R6;function N6(){return(this.t>0?this[0]&1:this.s)==0}function M6(e,t){if(e>4294967295||e<1)return B.ONE;var r=Re(),n=Re(),s=t.convert(this),i=yu(e)-1;for(s.copyTo(r);--i>=0;)if(t.sqrTo(r,n),(e&1<0)t.mulTo(n,s,r);else{var a=r;r=n,n=a}return t.revert(r)}function B6(e,t){var r;return e<256||t.isEven()?r=new Cs(t):r=new ks(t),this.exp(e,r)}B.prototype.copyTo=a6;B.prototype.fromInt=o6;B.prototype.fromString=u6;B.prototype.clamp=l6;B.prototype.dlShiftTo=g6;B.prototype.drShiftTo=m6;B.prototype.lShiftTo=v6;B.prototype.rShiftTo=y6;B.prototype.subTo=b6;B.prototype.multiplyTo=w6;B.prototype.squareTo=x6;B.prototype.divRemTo=S6;B.prototype.invDigit=T6;B.prototype.isEven=N6;B.prototype.exp=M6;B.prototype.toString=c6;B.prototype.negate=h6;B.prototype.abs=f6;B.prototype.compareTo=d6;B.prototype.bitLength=p6;B.prototype.mod=_6;B.prototype.modPowInt=B6;B.ZERO=Tn(0);B.ONE=Tn(1);/*! (c) Tom Wu | http://www-cs-students.stanford.edu/~tjw/jsbn/ + */function $6(){var e=Re();return this.copyTo(e),e}function H6(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<>24}function L6(){return this.t==0?this.s:this[0]<<16>>16}function V6(e){return Math.floor(Math.LN2*this.DB/Math.log(e))}function U6(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1}function q6(e){if(e==null&&(e=10),this.signum()==0||e<2||e>36)return"0";var t=this.chunkSize(e),r=Math.pow(e,t),n=Tn(r),s=Re(),i=Re(),a="";for(this.divRemTo(n,s,i);s.signum()>0;)a=(r+i.intValue()).toString(e).substr(1)+a,s.divRemTo(n,s,i);return i.intValue().toString(e)+a}function K6(e,t){this.fromInt(0),t==null&&(t=10);for(var r=this.chunkSize(t),n=Math.pow(t,r),s=!1,i=0,a=0,o=0;o=r&&(this.dMultiply(n),this.dAddOffset(a,0),i=0,a=0)}i>0&&(this.dMultiply(Math.pow(t,i)),this.dAddOffset(a,0)),s&&B.ZERO.subTo(this,this)}function Y6(e,t,r){if(typeof t=="number")if(e<2)this.fromInt(1);else for(this.fromNumber(e,r),this.testBit(e-1)||this.bitwiseTo(B.ONE.shiftLeft(e-1),kh,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(t);)this.dAddOffset(2,0),this.bitLength()>e&&this.subTo(B.ONE.shiftLeft(e-1),this);else{var n=new Array,s=e&7;n.length=(e>>3)+1,t.nextBytes(n),s>0?n[0]&=(1<0)for(r>r)!=(this.s&this.DM)>>r&&(t[s++]=n|this.s<=0;)r<8?(n=(this[e]&(1<>(r+=this.DB-8)):(n=this[e]>>(r-=8)&255,r<=0&&(r+=this.DB,--e)),n&128&&(n|=-256),s==0&&(this.s&128)!=(n&128)&&++s,(s>0||n!=this.s)&&(t[s++]=n);return t}function W6(e){return this.compareTo(e)==0}function G6(e){return this.compareTo(e)<0?this:e}function J6(e){return this.compareTo(e)>0?this:e}function X6(e,t,r){var n,s,i=Math.min(e.t,this.t);for(n=0;n>=16,t+=16),e&255||(e>>=8,t+=8),e&15||(e>>=4,t+=4),e&3||(e>>=2,t+=2),e&1||++t,t}function oE(){for(var e=0;e=this.t?this.s!=0:(this[t]&1<>=this.DB;if(e.t>=this.DB;n+=this.s}else{for(n+=this.s;r>=this.DB;n+=e.s}t.s=n<0?-1:0,n>0?t[r++]=n:n<-1&&(t[r++]=this.DV+n),t.t=r,t.clamp()}function mE(e){var t=Re();return this.addTo(e,t),t}function vE(e){var t=Re();return this.subTo(e,t),t}function yE(e){var t=Re();return this.multiplyTo(e,t),t}function bE(){var e=Re();return this.squareTo(e),e}function wE(e){var t=Re();return this.divRemTo(e,t,null),t}function xE(e){var t=Re();return this.divRemTo(e,null,t),t}function SE(e){var t=Re(),r=Re();return this.divRemTo(e,t,r),new Array(t,r)}function _E(e){this[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()}function EE(e,t){if(e!=0){for(;this.t<=t;)this[this.t++]=0;for(this[t]+=e;this[t]>=this.DV;)this[t]-=this.DV,++t>=this.t&&(this[this.t++]=0),++this[t]}}function xa(){}function g1(e){return e}function CE(e,t,r){e.multiplyTo(t,r)}function kE(e,t){e.squareTo(t)}xa.prototype.convert=g1;xa.prototype.revert=g1;xa.prototype.mulTo=CE;xa.prototype.sqrTo=kE;function AE(e){return this.exp(e,new xa)}function PE(e,t,r){var n=Math.min(this.t+e.t,t);for(r.s=0,r.t=n;n>0;)r[--n]=0;var s;for(s=r.t-this.t;n=0;)r[n]=0;for(n=Math.max(t-this.t,0);n2*this.m.t)return e.mod(this.m);if(e.compareTo(this.m)<0)return e;var t=Re();return e.copyTo(t),this.reduce(t),t}function FE(e){return e}function OE(e){for(e.drShiftTo(this.m.t-1,this.r2),e.t>this.m.t+1&&(e.t=this.m.t+1,e.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);e.compareTo(this.r2)<0;)e.dAddOffset(1,this.m.t+1);for(e.subTo(this.r2,e);e.compareTo(this.m)>=0;)e.subTo(this.m,e)}function RE(e,t){e.squareTo(t),this.reduce(t)}function IE(e,t,r){e.multiplyTo(t,r),this.reduce(r)}mi.prototype.convert=DE;mi.prototype.revert=FE;mi.prototype.reduce=OE;mi.prototype.mulTo=IE;mi.prototype.sqrTo=RE;function NE(e,t){var r=e.bitLength(),n,s=Tn(1),i;if(r<=0)return s;r<18?n=1:r<48?n=3:r<144?n=4:r<768?n=5:n=6,r<8?i=new Cs(t):t.isEven()?i=new mi(t):i=new ks(t);var a=new Array,o=3,u=n-1,l=(1<1){var c=Re();for(i.sqrTo(a[1],c);o<=l;)a[o]=Re(),i.mulTo(c,a[o-2],a[o]),o+=2}var f=e.t-1,h,p=!0,d=Re(),g;for(r=yu(e[f])-1;f>=0;){for(r>=u?h=e[f]>>r-u&l:(h=(e[f]&(1<0&&(h|=e[f-1]>>this.DB+r-u)),o=n;!(h&1);)h>>=1,--o;if((r-=o)<0&&(r+=this.DB,--f),p)a[h].copyTo(s),p=!1;else{for(;o>1;)i.sqrTo(s,d),i.sqrTo(d,s),o-=2;o>0?i.sqrTo(s,d):(g=s,s=d,d=g),i.mulTo(d,a[h],s)}for(;f>=0&&!(e[f]&1<0&&(t.rShiftTo(i,t),r.rShiftTo(i,r));t.signum()>0;)(s=t.getLowestSetBit())>0&&t.rShiftTo(s,t),(s=r.getLowestSetBit())>0&&r.rShiftTo(s,r),t.compareTo(r)>=0?(t.subTo(r,t),t.rShiftTo(1,t)):(r.subTo(t,r),r.rShiftTo(1,r));return i>0&&r.lShiftTo(i,r),r}function BE(e){if(e<=0)return 0;var t=this.DV%e,r=this.s<0?e-1:0;if(this.t>0)if(t==0)r=this[0]%e;else for(var n=this.t-1;n>=0;--n)r=(t*r+this[n])%e;return r}function $E(e){var t=e.isEven();if(this.isEven()&&t||e.signum()==0)return B.ZERO;for(var r=e.clone(),n=this.clone(),s=Tn(1),i=Tn(0),a=Tn(0),o=Tn(1);r.signum()!=0;){for(;r.isEven();)r.rShiftTo(1,r),t?((!s.isEven()||!i.isEven())&&(s.addTo(this,s),i.subTo(e,i)),s.rShiftTo(1,s)):i.isEven()||i.subTo(e,i),i.rShiftTo(1,i);for(;n.isEven();)n.rShiftTo(1,n),t?((!a.isEven()||!o.isEven())&&(a.addTo(this,a),o.subTo(e,o)),a.rShiftTo(1,a)):o.isEven()||o.subTo(e,o),o.rShiftTo(1,o);r.compareTo(n)>=0?(r.subTo(n,r),t&&s.subTo(a,s),i.subTo(o,i)):(n.subTo(r,n),t&&a.subTo(s,a),o.subTo(i,o))}if(n.compareTo(B.ONE)!=0)return B.ZERO;if(o.compareTo(e)>=0)return o.subtract(e);if(o.signum()<0)o.addTo(e,o);else return o;return o.signum()<0?o.add(e):o}var Rt=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],HE=(1<<26)/Rt[Rt.length-1];function jE(e){var t,r=this.abs();if(r.t==1&&r[0]<=Rt[Rt.length-1]){for(t=0;t>1,e>Rt.length&&(e=Rt.length);for(var s=Re(),i=0;i>8&255,zt[St++]^=e>>16&255,zt[St++]^=e>>24&255,St>=uc&&(St-=uc)}function m1(){KE(new Date().getTime())}if(zt==null){zt=new Array,St=0;var mr;if(Bs!==void 0&&(Bs.crypto!==void 0||Bs.msCrypto!==void 0)){var op=Bs.crypto||Bs.msCrypto;if(op.getRandomValues){var up=new Uint8Array(32);for(op.getRandomValues(up),mr=0;mr<32;++mr)zt[St++]=up[mr]}else if(sa.appName=="Netscape"&&sa.appVersion<"5"){var lp=Bs.crypto.random(32);for(mr=0;mr>>8,zt[St++]=mr&255;St=0,m1()}function YE(){if(Va==null){for(m1(),Va=qE(),Va.init(zt),St=0;St=0&&t>0;){var s=e.charCodeAt(n--);s<128?r[--t]=s:s>127&&s<2048?(r[--t]=s&63|128,r[--t]=s>>6|192):(r[--t]=s&63|128,r[--t]=s>>6&63|128,r[--t]=s>>12|224)}r[--t]=0;for(var i=new As,a=new Array;t>2;){for(a[0]=0;a[0]==0;)i.nextBytes(a);r[--t]=a[0]}return r[--t]=2,r[--t]=0,new B(r)}function cp(e,t,r){for(var n="",s=0;n.length>24,(s&16711680)>>16,(s&65280)>>8,s&255]))),s+=1;return n}function GE(e,t,r,n){var s=v.crypto.MessageDigest,i=v.crypto.Util,a=null;if(r||(r="sha1"),typeof r=="string"&&(a=s.getCanonicalAlgName(r),n=s.getHashLength(a),r=function(g){return Xt(i.hashHex(_r(g),a))}),e.length+2*n+2>t)throw"Message too long for RSA";var o="",u;for(u=0;u0&&t.length>0)this.n=Pt(e,16),this.e=parseInt(t,16);else throw"Invalid RSA public key"}function XE(e){return e.modPowInt(this.e,this.n)}function ZE(e){var t=WE(e,this.n.bitLength()+7>>3);if(t==null)return null;var r=this.doPublic(t);if(r==null)return null;var n=r.toString(16);return n.length&1?"0"+n:n}function QE(e,t,r){var n=this.n.bitLength()+7>>3,s=GE(e,n,t,r);if(s==null)return null;var i=this.doPublic(s);if(i==null)return null;for(var a=i.toString(16);a.length=r.length)return null;for(var s="";++n191&&i<224?(s+=String.fromCharCode((i&31)<<6|r[n+1]&63),++n):(s+=String.fromCharCode((i&15)<<12|(r[n+1]&63)<<6|r[n+2]&63),n+=2)}return s}function hp(e,t,r){for(var n="",s=0;n.length>24,(s&16711680)>>16,(s&65280)>>8,s&255])),s+=1;return n}function tC(e,t,r,n){var s=v.crypto.MessageDigest,i=v.crypto.Util,a=null;r||(r="sha1"),typeof r=="string"&&(a=s.getCanonicalAlgName(r),n=s.getHashLength(a),r=function(m){return Xt(i.hashHex(_r(m),a))}),e=e.toByteArray();var f;for(f=0;f0&&t.length>0)this.n=Pt(e,16),this.e=parseInt(t,16),this.d=Pt(r,16);else throw"Invalid RSA private key"}function nC(e,t,r,n,s,i,a,o){if(this.isPrivate=!0,this.isPublic=!1,e==null)throw"RSASetPrivateEx N == null";if(t==null)throw"RSASetPrivateEx E == null";if(e.length==0)throw"RSASetPrivateEx N.length == 0";if(t.length==0)throw"RSASetPrivateEx E.length == 0";if(e!=null&&t!=null&&e.length>0&&t.length>0)this.n=Pt(e,16),this.e=parseInt(t,16),this.d=Pt(r,16),this.p=Pt(n,16),this.q=Pt(s,16),this.dmp1=Pt(i,16),this.dmq1=Pt(a,16),this.coeff=Pt(o,16);else throw"Invalid RSA private key in RSASetPrivateEx"}function sC(e,t){var r=new As,n=e>>1;this.e=parseInt(t,16);for(var s=new B(t,16),i=e/2-100,a=B.ONE.shiftLeft(i);;){for(;this.p=new B(e-n,1,r),!(this.p.subtract(B.ONE).gcd(s).compareTo(B.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new B(n,1,r),!(this.q.subtract(B.ONE).gcd(s).compareTo(B.ONE)==0&&this.q.isProbablePrime(10)););if(this.p.compareTo(this.q)<=0){var o=this.p;this.p=this.q,this.q=o}var u=this.q.subtract(this.p).abs();if(!(u.bitLength()>3)}function oC(e,t,r){if(e.length!=Math.ceil(this.n.bitLength()/4))throw new Error("wrong ctext length");var n=Pt(e,16),s=this.doPrivate(n);return s==null?null:tC(s,this.n.bitLength()+7>>3,t,r)}me.prototype.doPrivate=iC;me.prototype.setPrivate=rC;me.prototype.setPrivateEx=nC;me.prototype.generate=sC;me.prototype.decrypt=aC;me.prototype.decryptOAEP=oC;/*! (c) Tom Wu | http://www-cs-students.stanford.edu/~tjw/jsbn/ + */function Ct(e,t){this.x=t,this.q=e}function uC(e){return e==this?!0:this.q.equals(e.q)&&this.x.equals(e.x)}function lC(){return this.x}function cC(){return new Ct(this.q,this.x.negate().mod(this.q))}function hC(e){return new Ct(this.q,this.x.add(e.toBigInteger()).mod(this.q))}function fC(e){return new Ct(this.q,this.x.subtract(e.toBigInteger()).mod(this.q))}function dC(e){return new Ct(this.q,this.x.multiply(e.toBigInteger()).mod(this.q))}function pC(){return new Ct(this.q,this.x.square().mod(this.q))}function gC(e){return new Ct(this.q,this.x.multiply(e.toBigInteger().modInverse(this.q)).mod(this.q))}Ct.prototype.equals=uC;Ct.prototype.toBigInteger=lC;Ct.prototype.negate=cC;Ct.prototype.add=hC;Ct.prototype.subtract=fC;Ct.prototype.multiply=dC;Ct.prototype.square=pC;Ct.prototype.divide=gC;Ct.prototype.sqrt=function(){return new Ct(this.q,this.x.sqrt().mod(this.q))};function Ue(e,t,r,n){this.curve=e,this.x=t,this.y=r,n==null?this.z=B.ONE:this.z=n,this.zinv=null}function mC(){return this.zinv==null&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.x.toBigInteger().multiply(this.zinv).mod(this.curve.q))}function vC(){return this.zinv==null&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.y.toBigInteger().multiply(this.zinv).mod(this.curve.q))}function yC(e){if(e==this)return!0;if(this.isInfinity())return e.isInfinity();if(e.isInfinity())return this.isInfinity();var t,r;return t=e.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(e.z)).mod(this.curve.q),t.equals(B.ZERO)?(r=e.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(e.z)).mod(this.curve.q),r.equals(B.ZERO)):!1}function bC(){return this.x==null&&this.y==null?!0:this.z.equals(B.ZERO)&&!this.y.toBigInteger().equals(B.ZERO)}function wC(){return new Ue(this.curve,this.x,this.y.negate(),this.z)}function xC(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(e.z)).mod(this.curve.q),r=e.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(e.z)).mod(this.curve.q);if(B.ZERO.equals(r))return B.ZERO.equals(t)?this.twice():this.curve.getInfinity();var n=new B("3"),s=this.x.toBigInteger(),i=this.y.toBigInteger();e.x.toBigInteger(),e.y.toBigInteger();var a=r.square(),o=a.multiply(r),u=s.multiply(a),l=t.square().multiply(this.z),c=l.subtract(u.shiftLeft(1)).multiply(e.z).subtract(o).multiply(r).mod(this.curve.q),f=u.multiply(n).multiply(t).subtract(i.multiply(o)).subtract(l.multiply(t)).multiply(e.z).add(t.multiply(o)).mod(this.curve.q),h=o.multiply(this.z).multiply(e.z).mod(this.curve.q);return new Ue(this.curve,this.curve.fromBigInteger(c),this.curve.fromBigInteger(f),h)}function SC(){if(this.isInfinity())return this;if(this.y.toBigInteger().signum()==0)return this.curve.getInfinity();var e=new B("3"),t=this.x.toBigInteger(),r=this.y.toBigInteger(),n=r.multiply(this.z),s=n.multiply(r).mod(this.curve.q),i=this.curve.a.toBigInteger(),a=t.square().multiply(e);B.ZERO.equals(i)||(a=a.add(this.z.square().multiply(i))),a=a.mod(this.curve.q);var o=a.square().subtract(t.shiftLeft(3).multiply(s)).shiftLeft(1).multiply(n).mod(this.curve.q),u=a.multiply(e).multiply(t).subtract(s.shiftLeft(1)).shiftLeft(2).multiply(s).subtract(a.square().multiply(a)).mod(this.curve.q),l=n.square().multiply(n).shiftLeft(3).mod(this.curve.q);return new Ue(this.curve,this.curve.fromBigInteger(o),this.curve.fromBigInteger(u),l)}function _C(e){if(this.isInfinity())return this;if(e.signum()==0)return this.curve.getInfinity();var t=e,r=t.multiply(new B("3")),n=this.negate(),s=this,i=this.curve.q.subtract(e),a=i.multiply(new B("3")),o=new Ue(this.curve,this.x,this.y),u=o.negate(),l;for(l=r.bitLength()-2;l>0;--l){s=s.twice();var c=r.testBit(l),f=t.testBit(l);c!=f&&(s=s.add(c?this:n))}for(l=a.bitLength()-2;l>0;--l){o=o.twice();var h=a.testBit(l),p=i.testBit(l);h!=p&&(o=o.add(h?o:u))}return s}function EC(e,t,r){var n;e.bitLength()>r.bitLength()?n=e.bitLength()-1:n=r.bitLength()-1;for(var s=this.curve.getInfinity(),i=this.add(t);n>=0;)s=s.twice(),e.testBit(n)?r.testBit(n)?s=s.add(i):s=s.add(this):r.testBit(n)&&(s=s.add(t)),--n;return s}Ue.prototype.getX=mC;Ue.prototype.getY=vC;Ue.prototype.equals=yC;Ue.prototype.isInfinity=bC;Ue.prototype.negate=wC;Ue.prototype.add=xC;Ue.prototype.twice=SC;Ue.prototype.multiply=_C;Ue.prototype.multiplyTwo=EC;function zn(e,t,r){this.q=e,this.a=this.fromBigInteger(t),this.b=this.fromBigInteger(r),this.infinity=new Ue(this,null,null)}function CC(){return this.q}function kC(){return this.a}function AC(){return this.b}function PC(e){return e==this?!0:this.q.equals(e.q)&&this.a.equals(e.a)&&this.b.equals(e.b)}function TC(){return this.infinity}function DC(e){return new Ct(this.q,e)}function FC(e){switch(parseInt(e.substr(0,2),16)){case 0:return this.infinity;case 2:case 3:var t=e.substr(0,2);e.substr(2);var r=this.fromBigInteger(new B(u,16)),n=this.getA(),s=this.getB(),i=r.square().add(n).multiply(r).add(s),a=i.sqrt();return t=="03"&&(a=a.negate()),new Ue(this,r,a);case 4:case 6:case 7:var o=(e.length-2)/2,u=e.substr(2,o),l=e.substr(o+2,o);return new Ue(this,this.fromBigInteger(new B(u,16)),this.fromBigInteger(new B(l,16)));default:return null}}zn.prototype.getQ=CC;zn.prototype.getA=kC;zn.prototype.getB=AC;zn.prototype.equals=PC;zn.prototype.getInfinity=TC;zn.prototype.fromBigInteger=DC;zn.prototype.decodePointHex=FC;/*! (c) Stefan Thomas | https://github.com/bitcoinjs/bitcoinjs-lib + */Ct.prototype.getByteLength=function(){return Math.floor((this.toBigInteger().bitLength()+7)/8)};Ue.prototype.getEncoded=function(e){var t=function(i,a){var o=i.toByteArrayUnsigned();if(ao.length;)o.unshift(0);return o},r=this.getX().toBigInteger(),n=this.getY().toBigInteger(),s=t(r,32);return e?n.isEven()?s.unshift(2):s.unshift(3):(s.unshift(4),s=s.concat(t(n,32))),s};Ue.decodeFrom=function(e,t){t[0];var r=t.length-1,n=t.slice(1,1+r/2),s=t.slice(1+r/2,1+r);n.unshift(0),s.unshift(0);var i=new B(n),a=new B(s);return new Ue(e,e.fromBigInteger(i),e.fromBigInteger(a))};Ue.decodeFromHex=function(e,t){t.substr(0,2);var r=t.length-2,n=t.substr(2,r/2),s=t.substr(2+r/2,r/2),i=new B(n,16),a=new B(s,16);return new Ue(e,e.fromBigInteger(i),e.fromBigInteger(a))};Ue.prototype.add2D=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;if(this.x.equals(e.x))return this.y.equals(e.y)?this.twice():this.curve.getInfinity();var t=e.x.subtract(this.x),r=e.y.subtract(this.y),n=r.divide(t),s=n.square().subtract(this.x).subtract(e.x),i=n.multiply(this.x.subtract(s)).subtract(this.y);return new Ue(this.curve,s,i)};Ue.prototype.twice2D=function(){if(this.isInfinity())return this;if(this.y.toBigInteger().signum()==0)return this.curve.getInfinity();var e=this.curve.fromBigInteger(B.valueOf(2)),t=this.curve.fromBigInteger(B.valueOf(3)),r=this.x.square().multiply(t).add(this.curve.a).divide(this.y.multiply(e)),n=r.square().subtract(this.x.multiply(e)),s=r.multiply(this.x.subtract(n)).subtract(this.y);return new Ue(this.curve,n,s)};Ue.prototype.multiply2D=function(e){if(this.isInfinity())return this;if(e.signum()==0)return this.curve.getInfinity();var t=e,r=t.multiply(new B("3")),n=this.negate(),s=this,i;for(i=r.bitLength()-2;i>0;--i){s=s.twice();var a=r.testBit(i),o=t.testBit(i);a!=o&&(s=s.add2D(a?this:n))}return s};Ue.prototype.isOnCurve=function(){var e=this.getX().toBigInteger(),t=this.getY().toBigInteger(),r=this.curve.getA().toBigInteger(),n=this.curve.getB().toBigInteger(),s=this.curve.getQ(),i=t.multiply(t).mod(s),a=e.multiply(e).multiply(e).add(r.multiply(e)).add(n).mod(s);return i.equals(a)};Ue.prototype.toString=function(){return"("+this.getX().toBigInteger().toString()+","+this.getY().toBigInteger().toString()+")"};Ue.prototype.validate=function(){var e=this.curve.getQ();if(this.isInfinity())throw new Error("Point is at infinity.");var t=this.getX().toBigInteger(),r=this.getY().toBigInteger();if(t.compareTo(B.ONE)<0||t.compareTo(e.subtract(B.ONE))>0)throw new Error("x coordinate out of bounds");if(r.compareTo(B.ONE)<0||r.compareTo(e.subtract(B.ONE))>0)throw new Error("y coordinate out of bounds");if(!this.isOnCurve())throw new Error("Point is not on the curve.");if(this.multiply(e).isInfinity())throw new Error("Point is not a scalar multiple of G.");return!0};/*! Mike Samuel (c) 2009 | code.google.com/p/json-sans-eval + */var v1=function(){var e="(?:-?\\b(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?\\b)",t='(?:[^\\0-\\x08\\x0a-\\x1f"\\\\]|\\\\(?:["/\\\\bfnrt]|u[0-9A-Fa-f]{4}))',r='(?:"'+t+'*")',n=new RegExp("(?:false|true|null|[\\{\\}\\[\\]]|"+e+"|"+r+")","g"),s=new RegExp("\\\\(?:([^u])|u(.{4}))","g"),i={'"':'"',"/":"/","\\":"\\",b:"\b",f:"\f",n:` +`,r:"\r",t:" "};function a(c,f,h){return f?i[f]:String.fromCharCode(parseInt(h,16))}var o=new String(""),u="\\",l=Object.hasOwnProperty;return function(c,f){var h=c.match(n),p,d=h[0],g=!1;d==="{"?p={}:d==="["?p=[]:(p=[],g=!0);for(var m,y=[p],w=1-g,C=h.length;w=0;)delete S[x[D]]}return f.call(b,_,S)};p=P({"":p},"")}return p}}();(typeof v=="undefined"||!v)&&(v={});(typeof v.asn1=="undefined"||!v.asn1)&&(v.asn1={});v.asn1.ASN1Util=new function(){this.integerToByteHex=function(e){var t=e.toString(16);return t.length%2==1&&(t="0"+t),t},this.bigIntToMinTwosComplementsHex=function(e){return bu(e)},this.getPEMStringFromHex=function(e,t){return It(e,t)},this.newObject=function(e){var t=v,r=t.asn1,n=r.ASN1Object,s=r.DERBoolean,i=r.DERInteger,a=r.DERBitString,o=r.DEROctetString,u=r.DERNull,l=r.DERObjectIdentifier,c=r.DEREnumerated,f=r.DERUTF8String,h=r.DERNumericString,p=r.DERPrintableString,d=r.DERTeletexString,g=r.DERIA5String,m=r.DERUTCTime,y=r.DERGeneralizedTime,w=r.DERVisibleString,C=r.DERBMPString,k=r.DERSequence,P=r.DERSet,b=r.DERTaggedObject,_=r.ASN1Util.newObject;if(e instanceof r.ASN1Object)return e;var S=Object.keys(e);if(S.length!=1)throw new Error("key of param shall be only one.");var x=S[0];if(":asn1:bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:visstr:bmpstr:seq:set:tag:".indexOf(":"+x+":")==-1)throw new Error("undefined key: "+x);if(x=="bool")return new s(e[x]);if(x=="int")return new i(e[x]);if(x=="bitstr")return new a(e[x]);if(x=="octstr")return new o(e[x]);if(x=="null")return new u(e[x]);if(x=="oid")return new l(e[x]);if(x=="enum")return new c(e[x]);if(x=="utf8str")return new f(e[x]);if(x=="numstr")return new h(e[x]);if(x=="prnstr")return new p(e[x]);if(x=="telstr")return new d(e[x]);if(x=="ia5str")return new g(e[x]);if(x=="utctime")return new m(e[x]);if(x=="gentime")return new y(e[x]);if(x=="visstr")return new w(e[x]);if(x=="bmpstr")return new C(e[x]);if(x=="asn1")return new n(e[x]);if(x=="seq"){for(var A=e[x],T=[],D=0;D15)throw new Error("ASN.1 length too long to represent by 8x: n = "+r.toString(16));var i=128+s;return i.toString(16)+n},this.tohex=function(){return(this.hTLV==null||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getEncodedHex=function(){return this.tohex()},this.getValueHex=function(){return this.tohex(),this.hV},this.getFreshValueHex=function(){return""},this.setByParam=function(r){this.params=r},e!=null&&e.tlv!=null&&(this.hTLV=e.tlv,this.isModified=!1)};v.asn1.DERAbstractString=function(e){v.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=Dh(this.s).toLowerCase()},this.setStringHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.getFreshValueHex=function(){return this.hV},typeof e!="undefined"&&(typeof e=="string"?this.setString(e):typeof e.str!="undefined"?this.setString(e.str):typeof e.hex!="undefined"&&this.setStringHex(e.hex))};U(v.asn1.DERAbstractString,v.asn1.ASN1Object);v.asn1.DERAbstractTime=function(e){v.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(t){var r=t.getTime()+t.getTimezoneOffset()*6e4,n=new Date(r);return n},this.formatDate=function(t,r,n){var s=this.zeroPadding,i=this.localDateToUTC(t),a=String(i.getFullYear());r=="utc"&&(a=a.substr(2,2));var o=s(String(i.getMonth()+1),2),u=s(String(i.getDate()),2),l=s(String(i.getHours()),2),c=s(String(i.getMinutes()),2),f=s(String(i.getSeconds()),2),h=a+o+u+l+c+f;if(n===!0){var p=i.getMilliseconds();if(p!=0){var d=s(String(p),3);d=d.replace(/[0]+$/,""),h=h+"."+d}}return h+"Z"},this.zeroPadding=function(t,r){return t.length>=r?t:new Array(r-t.length+1).join("0")+t},this.setByParam=function(t){this.hV=null,this.hTLV=null,this.params=t},this.getString=function(){},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.params==null&&(this.params={}),this.params.str=t},this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.params==null&&(this.params={}),this.params.date=t},this.setByDateValue=function(t,r,n,s,i,a){var o=new Date(Date.UTC(t,r-1,n,s,i,a,0));this.setByDate(o)},this.getFreshValueHex=function(){return this.hV}};U(v.asn1.DERAbstractTime,v.asn1.ASN1Object);v.asn1.DERAbstractStructured=function(e){v.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array=t},this.appendASN1Object=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array.push(t)},this.asn1Array=new Array,typeof e!="undefined"&&typeof e.array!="undefined"&&(this.asn1Array=e.array)};U(v.asn1.DERAbstractStructured,v.asn1.ASN1Object);v.asn1.DERBoolean=function(e){v.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",e==!1?this.hTLV="010100":this.hTLV="0101ff"};U(v.asn1.DERBoolean,v.asn1.ASN1Object);v.asn1.DERInteger=function(e){v.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.params=null;var t=bu;this.setByBigInteger=function(r){this.isModified=!0,this.params={bigint:r}},this.setByInteger=function(r){this.isModified=!0,this.params=r},this.setValueHex=function(r){this.isModified=!0,this.params={hex:r}},this.getFreshValueHex=function(){var r=this.params,n=null;if(r==null)throw new Error("value not set");if(typeof r=="object"&&r.hex!=null)return this.hV=r.hex,this.hV;if(typeof r=="number")n=new B(String(r),10);else if(r.int!=null)n=new B(String(r.int),10);else if(r.bigint!=null)n=r.bigint;else throw new Error("wrong parameter");return this.hV=t(n),this.hV},e!=null&&(this.params=e)};U(v.asn1.DERInteger,v.asn1.ASN1Object);v.asn1.DERBitString=function(e){if(e!==void 0&&typeof e.obj!="undefined"){var t=v.asn1.ASN1Util.newObject(e.obj);e.hex="00"+t.tohex()}v.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(r){this.hTLV=null,this.isModified=!0,this.hV=r},this.setUnusedBitsAndHexValue=function(r,n){if(r<0||7=i)break}return n};Z.getNthChildIdx=function(e,t,r){var n=Z.getChildIdx(e,t);return n[r]};Z.getIdxbyList=function(e,t,r,n){var s=Z,i,a;return r.length==0?n!==void 0&&e.substr(t,2)!==n?-1:t:(i=r.shift(),a=s.getChildIdx(e,t),i>=a.length?-1:s.getIdxbyList(e,a[i],r,n))};Z.getIdxbyListEx=function(e,t,r,n){var s=Z,i,a;if(r.length==0)return n!==void 0&&e.substr(t,2)!==n?-1:t;i=r.shift(),a=s.getChildIdx(e,t);for(var o=0,u=0;u=e.length?null:s.getTLV(e,i)};Z.getTLVbyListEx=function(e,t,r,n){var s=Z,i=s.getIdxbyListEx(e,t,r,n);return i==-1?null:s.getTLV(e,i)};Z.getVbyList=function(e,t,r,n,s){var i=Z,a,o;return a=i.getIdxbyList(e,t,r,n),a==-1||a>=e.length?null:(o=i.getV(e,a),s===!0&&(o=o.substr(2)),o)};Z.getVbyListEx=function(e,t,r,n,s){var i=Z,a,o;return a=i.getIdxbyListEx(e,t,r,n),a==-1?null:(o=i.getV(e,a),e.substr(a,2)=="03"&&s!==!1&&(o=o.substr(2)),o)};Z.getInt=function(e,t,r){r==null&&(r=-1);try{var n=e.substr(t,2);if(n!="02"&&n!="03")return r;var s=Z.getV(e,t);return n=="02"?parseInt(s,16):qC(s)}catch(i){return r}};Z.getOID=function(e,t,r){r==null&&(r=null);try{if(e.substr(t,2)!="06")return r;var n=Z.getV(e,t);return Fh(n)}catch(s){return r}};Z.getOIDName=function(e,t,r){r==null&&(r=null);try{var n=Z.getOID(e,t,r);if(n==r)return r;var s=v.asn1.x509.OID.oid2name(n);return s==""?n:s}catch(i){return r}};Z.getString=function(e,t,r){r==null&&(r=null);try{var n=Z.getV(e,t);return Xt(n)}catch(s){return r}};Z.hextooidstr=function(e){var t=function(f,h){return f.length>=h?f:new Array(h-f.length+1).join("0")+f},r=[],n=e.substr(0,2),s=parseInt(n,16);r[0]=new String(Math.floor(s/40)),r[1]=new String(s%40);for(var i=e.substr(2),a=[],o=0;o0&&(c=c+"."+u.join(".")),c};Z.dump=function(e,t,r,n){var s=Z,i=s.getV,a=s.dump,o=s.getChildIdx,u=e;e instanceof v.asn1.ASN1Object&&(u=e.tohex());var l=function(_,S){if(_.length<=S*2)return _;var x=_.substr(0,S)+"..(total "+_.length/2+"bytes).."+_.substr(_.length-S,S);return x};t===void 0&&(t={ommit_long_octet:32}),r===void 0&&(r=0),n===void 0&&(n="");var c=t.ommit_long_octet,P=u.substr(r,2);if(P=="01"){var f=i(u,r);return f=="00"?n+`BOOLEAN FALSE +`:n+`BOOLEAN TRUE +`}if(P=="02"){var f=i(u,r);return n+"INTEGER "+l(f,c)+` +`}if(P=="03"){var f=i(u,r);if(s.isASN1HEX(f.substr(2))){var h=n+`BITSTRING, encapsulates +`;return h=h+a(f.substr(2),t,0,n+" "),h}else return n+"BITSTRING "+l(f,c)+` +`}if(P=="04"){var f=i(u,r);if(s.isASN1HEX(f)){var h=n+`OCTETSTRING, encapsulates +`;return h=h+a(f,t,0,n+" "),h}else return n+"OCTETSTRING "+l(f,c)+` +`}if(P=="05")return n+`NULL +`;if(P=="06"){var p=i(u,r),d=v.asn1.ASN1Util.oidHexToInt(p),g=v.asn1.x509.OID.oid2name(d),m=d.replace(/\./g," ");return g!=""?n+"ObjectIdentifier "+g+" ("+m+`) +`:n+"ObjectIdentifier ("+m+`) +`}if(P=="0a")return n+"ENUMERATED "+parseInt(i(u,r))+` +`;if(P=="0c")return n+"UTF8String '"+Ke(i(u,r))+`' +`;if(P=="13")return n+"PrintableString '"+Ke(i(u,r))+`' +`;if(P=="14")return n+"TeletexString '"+Ke(i(u,r))+`' +`;if(P=="16")return n+"IA5String '"+Ke(i(u,r))+`' +`;if(P=="17")return n+"UTCTime "+Ke(i(u,r))+` +`;if(P=="18")return n+"GeneralizedTime "+Ke(i(u,r))+` +`;if(P=="1a")return n+"VisualString '"+Ke(i(u,r))+`' +`;if(P=="1e")return n+"BMPString '"+x1(i(u,r))+`' +`;if(P=="30"){if(u.substr(r,4)=="3000")return n+`SEQUENCE {} +`;var h=n+`SEQUENCE +`,y=o(u,r),w=t;if((y.length==2||y.length==3)&&u.substr(y[0],2)=="06"&&u.substr(y[y.length-1],2)=="04"){var g=s.oidname(i(u,y[0])),C=JSON.parse(JSON.stringify(t));C.x509ExtName=g,w=C}for(var k=0;k4?{enum:{hex:y}}:{enum:parseInt(y,16)};if(g=="30"||g=="31")return m[p[g]]=d(e),m;if(g=="14"){var b=h(y);return m[p[g]]={str:b},m}else if(g=="1e"){var b=f(y);return m[p[g]]={str:b},m}else if(":0c:12:13:16:17:18:1a:".indexOf(g)!=-1){var b=c(y);return m[p[g]]={str:b},m}else if(g.match(/^8[0-9]$/)){var b=c(y);return b==null|b==""?{tag:{tag:g,explicit:!1,hex:y}}:b.match(/[\x00-\x1F\x7F-\x9F]/)!=null||b.match(/[\u0000-\u001F\u0080–\u009F]/)!=null?{tag:{tag:g,explicit:!1,hex:y}}:{tag:{tag:g,explicit:!1,str:b}}}else if(g.match(/^a[0-9]$/))try{if(!n(y))throw new Error("not encap");return{tag:{tag:g,explicit:!0,obj:r(y)}}}catch(x){return{tag:{tag:g,explicit:!0,hex:y}}}else{var _=new v.asn1.ASN1Object;_.hV=y;var S=_.getLengthHexFromValue();return{asn1:{tlv:g+S+y}}}}}};Z.isContextTag=function(e,t){e=e.toLowerCase();var r,n;try{r=parseInt(e,16)}catch(i){return-1}if(t===void 0)return(r&192)==128;try{var s=t.match(/^\[[0-9]+\]$/);return s==null||(n=parseInt(t.substr(1,t.length-1),10),n>31)?!1:(r&192)==128&&(r&31)==n}catch(i){return!1}};Z.isASN1HEX=function(e){var t=Z;if(e.length%2==1)return!1;var r=t.getVblen(e,0),n=e.substr(0,2),s=t.getL(e,0),i=e.length-n.length-s.length;return i==r*2};Z.checkStrictDER=function(e,t,r,n,s){var i=Z;if(r===void 0){if(typeof e!="string")throw new Error("not hex string");if(e=e.toLowerCase(),!v.lang.String.isHex(e))throw new Error("not hex string");r=e.length,n=e.length/2,n<128?s=1:s=Math.ceil(n.toString(16))+1}var a=i.getL(e,t);if(a.length>s*2)throw new Error("L of TLV too long: idx="+t);var o=i.getVblen(e,t);if(o>n)throw new Error("value of L too long than hex: idx="+t);var u=i.getTLV(e,t),l=u.length-2-i.getL(e,t).length;if(l!==o*2)throw new Error("V string length and L's value not the same:"+l+"/"+o*2);if(t===0&&e.length!=u.length)throw new Error("total length and TLV length unmatch:"+e.length+"!="+u.length);var c=e.substr(t,2);if(c==="02"){var f=i.getVidx(e,t);if(e.substr(f,2)=="00"&&e.charCodeAt(f+2)<56)throw new Error("not least zeros for DER INTEGER")}if(parseInt(c,16)&32){for(var h=i.getVblen(e,t),p=0,d=i.getChildIdx(e,t),g=0;g0&&h.push(new s({tag:"a3",obj:new c(p.ext)}));var m=new v.asn1.DERSequence({array:h});return m.tohex()},this.getEncodedHex=function(){return this.tohex()},e!==void 0&&this.setByParam(e)};U(v.asn1.x509.TBSCertificate,v.asn1.ASN1Object);v.asn1.x509.Extensions=function(e){v.asn1.x509.Extensions.superclass.constructor.call(this);var t=v,r=t.asn1,n=r.DERSequence,s=r.x509;this.aParam=[],this.setByParam=function(i){this.aParam=i},this.tohex=function(){for(var i=[],a=0;a-1&&i.push(new n({int:this.pathLen}));var a=new s({array:i});return this.asn1ExtnValue=a,this.asn1ExtnValue.tohex()},this.oid="2.5.29.19",this.cA=!1,this.pathLen=-1,e!==void 0&&(e.cA!==void 0&&(this.cA=e.cA),e.pathLen!==void 0&&(this.pathLen=e.pathLen))};U(v.asn1.x509.BasicConstraints,v.asn1.x509.Extension);v.asn1.x509.CRLDistributionPoints=function(e){v.asn1.x509.CRLDistributionPoints.superclass.constructor.call(this,e);var t=v,r=t.asn1,n=r.x509;this.getExtnValueHex=function(){return this.asn1ExtnValue.tohex()},this.setByDPArray=function(s){for(var i=[],a=0;a0&&i.push(new r({array:a}))}var u=new r({array:i});return u.tohex()},this.getEncodedHex=function(){return this.tohex()},e!==void 0&&(this.params=e)};U(v.asn1.x509.PolicyInformation,v.asn1.ASN1Object);v.asn1.x509.PolicyQualifierInfo=function(e){v.asn1.x509.PolicyQualifierInfo.superclass.constructor.call(this,e);var t=v.asn1,r=t.DERSequence,n=t.DERIA5String,s=t.DERObjectIdentifier,i=t.x509.UserNotice;this.params=null,this.tohex=function(){if(this.params.cps!==void 0){var a=new r({array:[new s({oid:"1.3.6.1.5.5.7.2.1"}),new n({str:this.params.cps})]});return a.tohex()}if(this.params.unotice!=null){var a=new r({array:[new s({oid:"1.3.6.1.5.5.7.2.2"}),new i(this.params.unotice)]});return a.tohex()}},this.getEncodedHex=function(){return this.tohex()},e!==void 0&&(this.params=e)};U(v.asn1.x509.PolicyQualifierInfo,v.asn1.ASN1Object);v.asn1.x509.UserNotice=function(e){v.asn1.x509.UserNotice.superclass.constructor.call(this,e);var t=v.asn1.DERSequence;v.asn1.DERInteger;var r=v.asn1.x509.DisplayText,n=v.asn1.x509.NoticeReference;this.params=null,this.tohex=function(){var s=[];this.params.noticeref!==void 0&&s.push(new n(this.params.noticeref)),this.params.exptext!==void 0&&s.push(new r(this.params.exptext));var i=new t({array:s});return i.tohex()},this.getEncodedHex=function(){return this.tohex()},e!==void 0&&(this.params=e)};U(v.asn1.x509.UserNotice,v.asn1.ASN1Object);v.asn1.x509.NoticeReference=function(e){v.asn1.x509.NoticeReference.superclass.constructor.call(this,e);var t=v.asn1.DERSequence,r=v.asn1.DERInteger,n=v.asn1.x509.DisplayText;this.params=null,this.tohex=function(){var s=[];if(this.params.org!==void 0&&s.push(new n(this.params.org)),this.params.noticenum!==void 0){for(var i=[],a=this.params.noticenum,o=0;o0)for(var i=0;i0;s++){var i=t.shift();if(r===!0){var a=n.pop(),o=(a+","+i).replace(/\\,/g,",");n.push(o),r=!1}else n.push(i);i.substr(-1,1)==="\\"&&(r=!0)}return n=n.map(function(u){return u.replace("/","\\/")}),n.reverse(),"/"+n.join("/")};v.asn1.x509.X500Name.ldapToOneline=function(e){return v.asn1.x509.X500Name.ldapToCompat(e)};v.asn1.x509.RDN=function(e){v.asn1.x509.RDN.superclass.constructor.call(this),this.asn1Array=[],this.paramArray=[],this.sRule="utf8";var t=v.asn1.x509.AttributeTypeAndValue;this.setByParam=function(r){r.rule!==void 0&&(this.sRule=r.rule),r.str!==void 0&&this.addByMultiValuedString(r.str),r.array!==void 0&&(this.paramArray=r.array)},this.addByString=function(r){this.asn1Array.push(new v.asn1.x509.AttributeTypeAndValue({str:r,rule:this.sRule}))},this.addByMultiValuedString=function(r){for(var n=v.asn1.x509.RDN.parseString(r),s=0;s0)for(var r=0;r0;s++){var i=t.shift();if(r===!0){var a=n.pop(),o=(a+"+"+i).replace(/\\\+/g,"+");n.push(o),r=!1}else n.push(i);i.substr(-1,1)==="\\"&&(r=!0)}for(var u=!1,l=[],s=0;n.length>0;s++){var i=n.shift();if(u===!0){var c=l.pop();if(i.match(/"$/)){var o=(c+"+"+i).replace(/^([^=]+)="(.*)"$/,"$1=$2");l.push(o),u=!1}else l.push(c+"+"+i)}else l.push(i);i.match(/^[^=]+="/)&&(u=!0)}return l};v.asn1.x509.AttributeTypeAndValue=function(e){v.asn1.x509.AttributeTypeAndValue.superclass.constructor.call(this),this.sRule="utf8",this.sType=null,this.sValue=null,this.dsType=null;var t=v,r=t.asn1,n=r.DERSequence,s=r.DERUTF8String,i=r.DERPrintableString,a=r.DERTeletexString,o=r.DERIA5String,u=r.DERVisibleString,l=r.DERBMPString,c=t.lang.String.isMail,f=t.lang.String.isPrintable;this.setByParam=function(h){if(h.rule!==void 0&&(this.sRule=h.rule),h.ds!==void 0&&(this.dsType=h.ds),h.value===void 0&&h.str!==void 0){var p=h.str,d=p.match(/^([^=]+)=(.+)$/);if(d)this.sType=d[1],this.sValue=d[2];else throw new Error("malformed attrTypeAndValueStr: "+attrTypeAndValueStr)}else this.sType=h.type,this.sValue=h.value},this.setByString=function(h,p){p!==void 0&&(this.sRule=p);var d=h.match(/^([^=]+)=(.+)$/);if(d)this.setByAttrTypeAndValueStr(d[1],d[2]);else throw new Error("malformed attrTypeAndValueStr: "+attrTypeAndValueStr)},this._getDsType=function(){var h=this.sType,p=this.sValue,d=this.sRule;return d==="prn"?h=="CN"&&c(p)?"ia5":f(p)?"prn":"utf8":d==="utf8"?h=="CN"&&c(p)?"ia5":h=="C"?"prn":"utf8":"utf8"},this.setByAttrTypeAndValueStr=function(h,p,d){d!==void 0&&(this.sRule=d),this.sType=h,this.sValue=p},this.getValueObj=function(h,p){if(h=="utf8")return new s({str:p});if(h=="prn")return new i({str:p});if(h=="tel")return new a({str:p});if(h=="ia5")return new o({str:p});if(h=="vis")return new u({str:p});if(h=="bmp")return new l({str:p});throw new Error("unsupported directory string type: type="+h+" value="+p)},this.tohex=function(){this.dsType==null&&(this.dsType=this._getDsType());var h=v.asn1.x509.OID.atype2obj(this.sType),p=this.getValueObj(this.dsType,this.sValue),d=new n({array:[h,p]});return this.TLV=d.tohex(),this.TLV},this.getEncodedHex=function(){return this.tohex()},e!==void 0&&this.setByParam(e)};U(v.asn1.x509.AttributeTypeAndValue,v.asn1.ASN1Object);v.asn1.x509.SubjectPublicKeyInfo=function(e){v.asn1.x509.SubjectPublicKeyInfo.superclass.constructor.call(this);var t=v,r=t.asn1,n=r.DERInteger,s=r.DERBitString,i=r.DERObjectIdentifier,a=r.DERSequence,o=r.ASN1Util.newObject,u=r.x509,l=u.AlgorithmIdentifier,c=t.crypto;c.ECDSA,c.DSA,this.getASN1Object=function(){if(this.asn1AlgId==null||this.asn1SubjPKey==null)throw"algId and/or subjPubKey not set";var f=new a({array:[this.asn1AlgId,this.asn1SubjPKey]});return f},this.tohex=function(){var f=this.getASN1Object();return this.hTLV=f.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},this.setPubKey=function(f){try{if(f instanceof me){var h=o({seq:[{int:{bigint:f.n}},{int:{int:f.e}}]}),p=h.tohex();this.asn1AlgId=new l({name:"rsaEncryption"}),this.asn1SubjPKey=new s({hex:"00"+p})}}catch(m){}try{if(f instanceof v.crypto.ECDSA){var d=new i({name:f.curveName});this.asn1AlgId=new l({name:"ecPublicKey",asn1params:d}),this.asn1SubjPKey=new s({hex:"00"+f.pubKeyHex})}}catch(m){}try{if(f instanceof v.crypto.DSA){var d=new o({seq:[{int:{bigint:f.p}},{int:{bigint:f.q}},{int:{bigint:f.g}}]});this.asn1AlgId=new l({name:"dsa",asn1params:d});var g=new n({bigint:f.y});this.asn1SubjPKey=new s({hex:"00"+g.tohex()})}}catch(m){}},e!==void 0&&this.setPubKey(e)};U(v.asn1.x509.SubjectPublicKeyInfo,v.asn1.ASN1Object);v.asn1.x509.Time=function(e){v.asn1.x509.Time.superclass.constructor.call(this);var t=v,r=t.asn1,n=r.DERUTCTime,s=r.DERGeneralizedTime;this.params=null,this.type=null,this.setTimeParams=function(i){this.timeParams=i},this.setByParam=function(i){this.params=i},this.getType=function(i){return i.match(/^[0-9]{12}Z$/)?"utc":i.match(/^[0-9]{14}Z$/)?"gen":i.match(/^[0-9]{12}\.[0-9]+Z$/)?"utc":i.match(/^[0-9]{14}\.[0-9]+Z$/)?"gen":null},this.tohex=function(){var i=this.params,a=null;if(typeof i=="string"&&(i={str:i}),i!=null&&i.str&&(i.type==null||i.type==null)&&(i.type=this.getType(i.str)),i!=null&&i.str?(i.type=="utc"&&(a=new n(i.str)),i.type=="gen"&&(a=new s(i.str))):this.type=="gen"?a=new s:a=new n,a==null)throw new Error("wrong setting for Time");return this.TLV=a.tohex(),this.TLV},this.getEncodedHex=function(){return this.tohex()},e!=null&&this.setByParam(e)};v.asn1.x509.Time_bak=function(e){v.asn1.x509.Time_bak.superclass.constructor.call(this);var t=v,r=t.asn1,n=r.DERUTCTime,s=r.DERGeneralizedTime;this.setTimeParams=function(i){this.timeParams=i},this.tohex=function(){var i=null;return this.timeParams!=null?this.type=="utc"?i=new n(this.timeParams):i=new s(this.timeParams):this.type=="utc"?i=new n:i=new s,this.TLV=i.tohex(),this.TLV},this.getEncodedHex=function(){return this.tohex()},this.type="utc",e!==void 0&&(e.type!==void 0?this.type=e.type:e.str!==void 0&&(e.str.match(/^[0-9]{12}Z$/)&&(this.type="utc"),e.str.match(/^[0-9]{14}Z$/)&&(this.type="gen")),this.timeParams=e)};U(v.asn1.x509.Time,v.asn1.ASN1Object);v.asn1.x509.AlgorithmIdentifier=function(e){v.asn1.x509.AlgorithmIdentifier.superclass.constructor.call(this),this.nameAlg=null,this.asn1Alg=null,this.asn1Params=null,this.paramEmpty=!1;var t=v,r=t.asn1,n=r.x509.AlgorithmIdentifier.PSSNAME2ASN1TLV;if(this.tohex=function(){if(this.nameAlg===null&&this.asn1Alg===null)throw new Error("algorithm not specified");if(this.nameAlg!==null){var i=null;for(var a in n)a===this.nameAlg&&(i=n[a]);if(i!==null)return this.hTLV=i,this.hTLV}this.nameAlg!==null&&this.asn1Alg===null&&(this.asn1Alg=r.x509.OID.name2obj(this.nameAlg));var o=[this.asn1Alg];this.asn1Params!==null&&o.push(this.asn1Params);var u=new r.DERSequence({array:o});return this.hTLV=u.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},e!==void 0&&(e.name!==void 0&&(this.nameAlg=e.name),e.asn1params!==void 0&&(this.asn1Params=e.asn1params),e.paramempty!==void 0&&(this.paramEmpty=e.paramempty)),this.asn1Params===null&&this.paramEmpty===!1&&this.nameAlg!==null){this.nameAlg.name!==void 0&&(this.nameAlg=this.nameAlg.name);var s=this.nameAlg.toLowerCase();s.substr(-7,7)!=="withdsa"&&s.substr(-9,9)!=="withecdsa"&&(this.asn1Params=new r.DERNull)}};U(v.asn1.x509.AlgorithmIdentifier,v.asn1.ASN1Object);v.asn1.x509.AlgorithmIdentifier.PSSNAME2ASN1TLV={SHAwithRSAandMGF1:"300d06092a864886f70d01010a3000",SHA256withRSAandMGF1:"303d06092a864886f70d01010a3030a00d300b0609608648016503040201a11a301806092a864886f70d010108300b0609608648016503040201a203020120",SHA384withRSAandMGF1:"303d06092a864886f70d01010a3030a00d300b0609608648016503040202a11a301806092a864886f70d010108300b0609608648016503040202a203020130",SHA512withRSAandMGF1:"303d06092a864886f70d01010a3030a00d300b0609608648016503040203a11a301806092a864886f70d010108300b0609608648016503040203a203020140"};v.asn1.x509.GeneralName=function(e){v.asn1.x509.GeneralName.superclass.constructor.call(this);var t=v,r=t.asn1,n=r.x509,s=n.X500Name,i=n.OtherName,a=r.DERIA5String;r.DERPrintableString;var o=r.DEROctetString,u=r.DERTaggedObject,l=r.ASN1Object,c=Error;this.params=null,this.setByParam=function(f){this.params=f},this.tohex=function(){var f=this.params,h,d,p,d=!1;if(f.other!==void 0)h="a0",p=new i(f.other);else if(f.rfc822!==void 0)h="81",p=new a({str:f.rfc822});else if(f.dns!==void 0)h="82",p=new a({str:f.dns});else if(f.dn!==void 0)h="a4",d=!0,typeof f.dn=="string"?p=new s({str:f.dn}):f.dn instanceof v.asn1.x509.X500Name?p=f.dn:p=new s(f.dn);else if(f.ldapdn!==void 0)h="a4",d=!0,p=new s({ldapstr:f.ldapdn});else if(f.certissuer!==void 0||f.certsubj!==void 0){h="a4",d=!0;var g,m,y=null;if(f.certsubj!==void 0?(g=!1,m=f.certsubj):(g=!0,m=f.certissuer),m.match(/^[0-9A-Fa-f]+$/),m.indexOf("-----BEGIN ")!=-1&&(y=pt(m)),y==null)throw new Error("certsubj/certissuer not cert");var w=new we;w.hex=y;var C;g?C=w.getIssuerHex():C=w.getSubjectHex(),p=new l,p.hTLV=C}else if(f.uri!==void 0)h="86",p=new a({str:f.uri});else if(f.ip!==void 0){h="87";var k,P=f.ip;try{if(P.match(/^[0-9a-f]+$/)){var b=P.length;if(b==8||b==16||b==32||b==64)k=P;else throw"err"}else k=w1(P)}catch(S){throw new c("malformed IP address: "+f.ip+":"+S.message)}p=new o({hex:k})}else throw new c("improper params");var _=new u({tag:h,explicit:d,obj:p});return _.tohex()},this.getEncodedHex=function(){return this.tohex()},e!==void 0&&this.setByParam(e)};U(v.asn1.x509.GeneralName,v.asn1.ASN1Object);v.asn1.x509.GeneralNames=function(e){v.asn1.x509.GeneralNames.superclass.constructor.call(this);var t=v,r=t.asn1;this.setByParamArray=function(n){for(var s=0;s0){for(var p=i(f.valhex,h[0]),d=c(p,0),g=[],m=0;m1){var C=i(f.valhex,h[1]);f.polhex=C}delete f.valhex},this.setSignaturePolicyIdentifier=function(f){var h=c(f.valhex,0);if(h.length>0){var p=n.getOID(f.valhex,h[0]);f.oid=p}if(h.length>1){var d=new t,g=c(f.valhex,h[1]),m=i(f.valhex,g[0]),y=d.getAlgorithmIdentifierName(m);f.alg=y;var w=s(f.valhex,g[1]);f.hash=w}delete f.valhex},this.setSigningCertificateV2=function(f){var h=c(f.valhex,0);if(h.length>0){for(var p=i(f.valhex,h[0]),d=c(p,0),g=[],m=0;m1){var C=i(f.valhex,h[1]);f.polhex=C}delete f.valhex},this.getESSCertID=function(f){var h={},p=c(f,0);if(p.length>0){var d=s(f,p[0]);h.hash=d}if(p.length>1){var g=i(f,p[1]),m=this.getIssuerSerial(g);m.serial!=null&&(h.serial=m.serial),m.issuer!=null&&(h.issuer=m.issuer)}return h},this.getESSCertIDv2=function(f){var h={},p=c(f,0);if(p.length<1||3d+1){var y=i(f,p[d+1]),w=this.getIssuerSerial(y);h.issuer=w.issuer,h.serial=w.serial}return h},this.getIssuerSerial=function(f){var h={},p=c(f,0),d=i(f,p[0]),g=r.getGeneralNames(d),m=g[0].dn;h.issuer=m;var y=s(f,p[1]);return h.serial={hex:y},h},this.getCertificateSet=function(f){for(var h=c(f,0),p=[],d=0;d=0;h--)f+=c[h];return f}else{if(typeof u=="string"&&o[u]!=null)return cc([u],o);if(typeof u=="object"&&u.length!=null)return cc(u,o);throw new t("wrong params")}},this.tohex=function(){this.params;var u=this.getBinValue();return new s({bin:u}).tohex()},this.getEncodedHex=function(){return this.tohex()},e!=null&&this.setByParam(e)};U(v.asn1.tsp.PKIFailureInfo,v.asn1.ASN1Object);v.asn1.tsp.AbstractTSAAdapter=function(e){this.getTSTHex=function(t,r){throw"not implemented yet"}};v.asn1.tsp.SimpleTSAAdapter=function(e){var t=v,r=t.asn1,n=r.tsp,s=t.crypto.Util.hashHex;n.SimpleTSAAdapter.superclass.constructor.call(this),this.params=null,this.serial=0,this.getTSTHex=function(i,a){var o=s(i,a);this.params.econtent.content.messageImprint={alg:a,hash:o},this.params.econtent.content.serial={int:this.serial++};var u=Math.floor(Math.random()*1e9);this.params.econtent.content.nonce={int:u};var l=new n.TimeStampToken(this.params);return l.getContentInfoEncodedHex()},e!==void 0&&(this.params=e)};U(v.asn1.tsp.SimpleTSAAdapter,v.asn1.tsp.AbstractTSAAdapter);v.asn1.tsp.FixedTSAAdapter=function(e){var t=v,r=t.asn1,n=r.tsp,s=t.crypto.Util.hashHex;n.FixedTSAAdapter.superclass.constructor.call(this),this.params=null,this.getTSTHex=function(i,a){var o=s(i,a);this.params.econtent.content.messageImprint={alg:a,hash:o};var u=new n.TimeStampToken(this.params);return u.getContentInfoEncodedHex()},e!==void 0&&(this.params=e)};U(v.asn1.tsp.FixedTSAAdapter,v.asn1.tsp.AbstractTSAAdapter);v.asn1.tsp.TSPUtil=new function(){};v.asn1.tsp.TSPUtil.newTimeStampToken=function(e){return new v.asn1.tsp.TimeStampToken(e)};v.asn1.tsp.TSPUtil.parseTimeStampReq=function(e){var t=new v.asn1.tsp.TSPParser;return t.getTimeStampReq(e)};v.asn1.tsp.TSPUtil.parseMessageImprint=function(e){var t=new v.asn1.tsp.TSPParser;return t.getMessageImprint(e)};v.asn1.tsp.TSPParser=function(){var e=we,t=new e,r=Z,n=r.getV,s=r.getTLV,i=r.getIdxbyList;r.getTLVbyListEx;var a=r.getChildIdx,o=["granted","grantedWithMods","rejection","waiting","revocationWarning","revocationNotification"],u={0:"badAlg",2:"badRequest",5:"badDataFormat",14:"timeNotAvailable",15:"unacceptedPolicy",16:"unacceptedExtension",17:"addInfoNotAvailable",25:"systemFailure"};this.getResponse=function(l){var c=a(l,0);if(c.length==1)return this.getPKIStatusInfo(s(l,c[0]));if(c.length>1){var f=this.getPKIStatusInfo(s(l,c[0])),h=s(l,c[1]),p=this.getToken(h);return p.statusinfo=f,p}},this.getToken=function(l){var c=new v.asn1.cms.CMSParser,f=c.getCMSSignedData(l);return this.setTSTInfo(f),f},this.setTSTInfo=function(l){var c=l.econtent;if(c.type=="tstinfo"){var f=c.content.hex,h=this.getTSTInfo(f);c.content=h}},this.getTSTInfo=function(l){var c={},f=a(l,0),h=n(l,f[1]);c.policy=Fh(h);var p=s(l,f[2]);c.messageImprint=this.getMessageImprint(p);var d=n(l,f[3]);c.serial={hex:d};var g=n(l,f[4]);c.genTime={str:Ke(g)};var m=0;if(f.length>5&&l.substr(f[5],2)=="30"){var y=s(l,f[5]);c.accuracy=this.getAccuracy(y),m++}if(f.length>5+m&&l.substr(f[5+m],2)=="01"){var w=n(l,f[5+m]);w=="ff"&&(c.ordering=!0),m++}if(f.length>5+m&&l.substr(f[5+m],2)=="02"){var C=n(l,f[5+m]);c.nonce={hex:C},m++}if(f.length>5+m&&l.substr(f[5+m],2)=="a0"){var k=s(l,f[5+m]);k="30"+k.substr(2),pGeneralNames=t.getGeneralNames(k);var P=pGeneralNames[0].dn;c.tsa=P,m++}if(f.length>5+m&&l.substr(f[5+m],2)=="a1"){var b=s(l,f[5+m]);b="30"+b.substr(2);var _=t.getExtParamArray(b);c.ext=_,m++}return c},this.getAccuracy=function(l){for(var c={},f=a(l,0),h=0;h1&&l.substr(f[1],2)=="30"){var g=s(l,f[1]);c.statusstr=this.getPKIFreeText(g),h++}if(f.length>h&&l.substr(f[1+h],2)=="03"){var m=s(l,f[1+h]);c.failinfo=this.getPKIFailureInfo(m)}return c},this.getPKIFreeText=function(l){for(var c=[],f=a(l,0),h=0;h>6,u=128|a&63;return Ke(o.toString(16)+u.toString(16))}var o=224|(i&240)>>4,u=128|(i&15)<<2|(a&192)>>6,l=128|a&63;return Ke(o.toString(16)+u.toString(16)+l.toString(16))}var r=e.match(/.{4}/g),n=r.map(t);return n.join("")}function S1(e){for(var t=encodeURIComponent(e),r="",n=0;n"7"?"00"+e:e}function VC(e){var t=function(o){var u=o.toString(16);return u.length==1&&(u="0"+u),u},r=function(o){var u="",l=parseInt(o,10),c=l.toString(2),f=7-c.length%7;f==7&&(f=0);for(var h="",p=0;p0&&(l=l+"."+o.join(".")),l}catch(c){return null}}function UC(e){var t=new B(String(e),10);return bu(t)}function bu(e){var t=e.toString(16);if(t.substr(0,1)!="-")return t.length%2==1?t="0"+t:t.match(/^[0-7]/)||(t="00"+t),t;var r=t.substr(1),n=r.length;n%2==1?n+=1:t.match(/^[0-7]/)||(n+=2);for(var s="",i=0;i=t?e:new Array(t-e.length+1).join(r)+e};function qC(e){if(e.length%2!=0||(e=e.toLowerCase(),e.match(/^[0-9a-f]+$/)==null))return-1;try{var t=e.substr(0,2);if(t=="00")return parseInt(e.substr(2),16);var r=parseInt(t,16);if(r>7)return-1;var n=e.substr(2),s=parseInt(n,16).toString(2);s=="0"&&(s="00000000"),s=s.slice(0,0-r);var i=parseInt(s,2);return i==NaN?-1:i}catch(a){return-1}}function KC(e){if(typeof e!="string"||e.length%2!=0||!e.match(/^[0-9a-f]+$/))return null;try{var t=parseInt(e.substr(0,2),16);if(t<0||7=0;n--)i+=s[n];return i}function Xe(e,n,r){if(typeof e=="object"){for(var n=String(n).split("."),s=0;ss)throw"key is too short for SigAlg: keylen="+r+","+t;for(var i="0001",a="00"+n,o="",u=s-i.length-a.length,l=0;l=0||d.compareTo(n.ONE)<0||d.compareTo(m)>=0)return!1;var w=d.modInverse(m),C=h.multiply(w).mod(m),k=p.multiply(w).mod(m),P=y.multiply(C).add(g.multiply(k)),b=P.getX().toBigInteger().mod(m);return b.equals(p)},this.serializeSig=function(h,p){var d=h.toByteArraySigned(),g=p.toByteArraySigned(),m=[];return m.push(2),m.push(d.length),m=m.concat(d),m.push(2),m.push(g.length),m=m.concat(g),m.unshift(m.length),m.unshift(48),m},this.parseSig=function(h){var p;if(h[0]!=48)throw new Error("Signature not a valid DERSequence");if(p=2,h[p]!=2)throw new Error("First element in signature must be a DERInteger");var d=h.slice(p+2,p+2+h[p+1]);if(p+=2+h[p+1],h[p]!=2)throw new Error("Second element in signature must be a DERInteger");var g=h.slice(p+2,p+2+h[p+1]);p+=2+h[p+1];var m=n.fromByteArrayUnsigned(d),y=n.fromByteArrayUnsigned(g);return{r:m,s:y}},this.parseSigCompact=function(h){if(h.length!==65)throw"Signature has the wrong length";var p=h[0]-27;if(p<0||p>7)throw"Invalid signature type";var d=this.ecparams.n,g=n.fromByteArrayUnsigned(h.slice(1,33)).mod(d),m=n.fromByteArrayUnsigned(h.slice(33,65)).mod(d);return{r:g,s:m,i:p}},this.readPKCS5PrvKeyHex=function(h){if(c(h)===!1)throw new Error("not ASN.1 hex string");var p,d,g;try{p=l(h,0,["[0]",0],"06"),d=l(h,0,[1],"04");try{g=l(h,0,["[1]",0],"03")}catch(m){}}catch(m){throw new Error("malformed PKCS#1/5 plain ECC private key")}if(this.curveName=o(p),this.curveName===void 0)throw"unsupported curve name";this.setNamedCurve(this.curveName),this.setPublicKeyHex(g),this.setPrivateKeyHex(d),this.isPublic=!1},this.readPKCS8PrvKeyHex=function(h){if(c(h)===!1)throw new r("not ASN.1 hex string");var p,d,g,m;try{p=l(h,0,[1,0],"06"),d=l(h,0,[1,1],"06"),g=l(h,0,[2,0,1],"04");try{m=l(h,0,[2,0,"[1]",0],"03")}catch(y){}}catch(y){throw new r("malformed PKCS#8 plain ECC private key")}if(this.curveName=o(d),this.curveName===void 0)throw new r("unsupported curve name");this.setNamedCurve(this.curveName),this.setPublicKeyHex(m),this.setPrivateKeyHex(g),this.isPublic=!1},this.readPKCS8PubKeyHex=function(h){if(c(h)===!1)throw new r("not ASN.1 hex string");var p,d,g;try{p=l(h,0,[0,0],"06"),d=l(h,0,[0,1],"06"),g=l(h,0,[1],"03")}catch(m){throw new r("malformed PKCS#8 ECC public key")}if(this.curveName=o(d),this.curveName===null)throw new r("unsupported curve name");this.setNamedCurve(this.curveName),this.setPublicKeyHex(g)},this.readCertPubKeyHex=function(h,p){if(c(h)===!1)throw new r("not ASN.1 hex string");var d,g;try{d=l(h,0,[0,5,0,1],"06"),g=l(h,0,[0,5,1],"03")}catch(m){throw new r("malformed X.509 certificate ECC public key")}if(this.curveName=o(d),this.curveName===null)throw new r("unsupported curve name");this.setNamedCurve(this.curveName),this.setPublicKeyHex(g)},e!==void 0&&e.curve!==void 0&&(this.curveName=e.curve),this.curveName===void 0&&(this.curveName=t),this.setNamedCurve(this.curveName),e!==void 0&&(e.prv!==void 0&&this.setPrivateKeyHex(e.prv),e.pub!==void 0&&this.setPublicKeyHex(e.pub))};v.crypto.ECDSA.parseSigHex=function(e){var t=v.crypto.ECDSA.parseSigHexInHexRS(e),r=new B(t.r,16),n=new B(t.s,16);return{r,s:n}};v.crypto.ECDSA.parseSigHexInHexRS=function(e){var t=Z,r=t.getChildIdx,n=t.getV;if(t.checkStrictDER(e,0),e.substr(0,2)!="30")throw new Error("signature is not a ASN.1 sequence");var s=r(e,0);if(s.length!=2)throw new Error("signature shall have two elements");var i=s[0],a=s[1];if(e.substr(i,2)!="02")throw new Error("1st item not ASN.1 integer");if(e.substr(a,2)!="02")throw new Error("2nd item not ASN.1 integer");var o=n(e,i),u=n(e,a);return{r:o,s:u}};v.crypto.ECDSA.asn1SigToConcatSig=function(e){var t=v.crypto.ECDSA.parseSigHexInHexRS(e),r=t.r,n=t.s;if(r.length>=130&&r.length<=134){if(r.length%2!=0)throw Error("unknown ECDSA sig r length error");if(n.length%2!=0)throw Error("unknown ECDSA sig s length error");r.substr(0,2)=="00"&&(r=r.substr(2)),n.substr(0,2)=="00"&&(n=n.substr(2));var s=Math.max(r.length,n.length);return r=("000000"+r).slice(-s),n=("000000"+n).slice(-s),r+n}if(r.substr(0,2)=="00"&&r.length%32==2&&(r=r.substr(2)),n.substr(0,2)=="00"&&n.length%32==2&&(n=n.substr(2)),r.length%32==30&&(r="00"+r),n.length%32==30&&(n="00"+n),r.length%32!=0)throw Error("unknown ECDSA sig r length error");if(n.length%32!=0)throw Error("unknown ECDSA sig s length error");return r+n};v.crypto.ECDSA.concatSigToASN1Sig=function(e){if(e.length%4!=0)throw Error("unknown ECDSA concatinated r-s sig length error");var t=e.substr(0,e.length/2),r=e.substr(e.length/2);return v.crypto.ECDSA.hexRSSigToASN1Sig(t,r)};v.crypto.ECDSA.hexRSSigToASN1Sig=function(e,t){var r=new B(e,16),n=new B(t,16);return v.crypto.ECDSA.biRSSigToASN1Sig(r,n)};v.crypto.ECDSA.biRSSigToASN1Sig=function(e,t){var r=v.asn1,n=new r.DERInteger({bigint:e}),s=new r.DERInteger({bigint:t}),i=new r.DERSequence({array:[n,s]});return i.tohex()};v.crypto.ECDSA.getName=function(e){return e==="2b8104001f"?"secp192k1":e==="2a8648ce3d030107"?"secp256r1":e==="2b8104000a"?"secp256k1":e==="2b81040021"?"secp224r1":e==="2b81040022"?"secp384r1":e==="2b81040023"?"secp521r1":"|secp256r1|NIST P-256|P-256|prime256v1|".indexOf(e)!==-1?"secp256r1":"|secp256k1|".indexOf(e)!==-1?"secp256k1":"|secp224r1|NIST P-224|P-224|".indexOf(e)!==-1?"secp224r1":"|secp384r1|NIST P-384|P-384|".indexOf(e)!==-1?"secp384r1":"|secp521r1|NIST P-521|P-521|".indexOf(e)!==-1?"secp521r1":null};(typeof v=="undefined"||!v)&&(v={});(typeof v.crypto=="undefined"||!v.crypto)&&(v.crypto={});v.crypto.ECParameterDB=new function(){var e={},t={};function r(n){return new B(n,16)}this.getByName=function(n){var s=n;if(typeof t[s]!="undefined"&&(s=t[n]),typeof e[s]!="undefined")return e[s];throw"unregistered EC curve name: "+s},this.regist=function(n,s,i,a,o,u,l,c,f,h,p,d){e[n]={};var g=r(i),m=r(a),y=r(o),w=r(u),C=r(l),k=new zn(g,m,y),P=k.decodePointHex("04"+c+f);e[n].name=n,e[n].keylen=s,e[n].keycharlen=Math.ceil(s/8)*2,e[n].curve=k,e[n].G=P,e[n].n=w,e[n].h=C,e[n].oid=p,e[n].info=d;for(var b=0;b1?h=new B(o,16):h=null,p=new B(u,16),this.setPrivate(l,c,f,h,p)},this.setPublic=function(s,i,a,o){this.isPublic=!0,this.p=s,this.q=i,this.g=a,this.y=o,this.x=null},this.setPublicHex=function(s,i,a,o){var u,l,c,f;u=new B(s,16),l=new B(i,16),c=new B(a,16),f=new B(o,16),this.setPublic(u,l,c,f)},this.signWithMessageHash=function(s){var i=this.p,a=this.q,o=this.g;this.y;var u=this.x,l=v.crypto.Util.getRandomBigIntegerMinToMax(B.ONE.add(B.ONE),a.subtract(B.ONE)),c=s.substr(0,a.bitLength()/4),f=new B(c,16),h=o.modPow(l,i).mod(a),p=l.modInverse(a).multiply(f.add(u.multiply(h))).mod(a),d=v.asn1.ASN1Util.jsonToASN1HEX({seq:[{int:{bigint:h}},{int:{bigint:p}}]});return d},this.verifyWithMessageHash=function(s,i){var a=this.p,o=this.q,u=this.g,l=this.y,c=this.parseASN1Signature(i),f=c[0],h=c[1],p=s.substr(0,o.bitLength()/4),d=new B(p,16);if(B.ZERO.compareTo(f)>0||f.compareTo(o)>0||B.ZERO.compareTo(h)>=0||h.compareTo(o)>0)throw"invalid DSA signature";var g=h.modInverse(o),m=d.multiply(g).mod(o),y=f.multiply(g).mod(o),w=u.modPow(m,a).multiply(l.modPow(y,a)).mod(a).mod(o);return w.compareTo(f)==0},this.parseASN1Signature=function(s){try{var i=new n(t(s,0,[0],"02"),16),a=new n(t(s,0,[1],"02"),16);return[i,a]}catch(o){throw new Error("malformed ASN.1 DSA signature")}},this.readPKCS5PrvKeyHex=function(s){var i,a,o,u,l;if(r(s)===!1)throw new Error("not ASN.1 hex string");try{i=t(s,0,[1],"02"),a=t(s,0,[2],"02"),o=t(s,0,[3],"02"),u=t(s,0,[4],"02"),l=t(s,0,[5],"02")}catch(c){throw new Error("malformed PKCS#1/5 plain DSA private key")}this.setPrivateHex(i,a,o,u,l)},this.readPKCS8PrvKeyHex=function(s){var i,a,o,u;if(r(s)===!1)throw new Error("not ASN.1 hex string");try{i=t(s,0,[1,1,0],"02"),a=t(s,0,[1,1,1],"02"),o=t(s,0,[1,1,2],"02"),u=t(s,0,[2,0],"02")}catch(l){throw new Error("malformed PKCS#8 plain DSA private key")}this.setPrivateHex(i,a,o,null,u)},this.readPKCS8PubKeyHex=function(s){var i,a,o,u;if(r(s)===!1)throw new Error("not ASN.1 hex string");try{i=t(s,0,[0,1,0],"02"),a=t(s,0,[0,1,1],"02"),o=t(s,0,[0,1,2],"02"),u=t(s,0,[1,0],"02")}catch(l){throw new Error("malformed PKCS#8 DSA public key")}this.setPublicHex(i,a,o,u)},this.readCertPubKeyHex=function(s,i){var a,o,u,l;if(r(s)===!1)throw new Error("not ASN.1 hex string");try{a=t(s,0,[0,5,0,1,0],"02"),o=t(s,0,[0,5,0,1,1],"02"),u=t(s,0,[0,5,0,1,2],"02"),l=t(s,0,[0,5,1,0],"02")}catch(c){throw new Error("malformed X.509 certificate DSA public key")}this.setPublicHex(a,o,u,l)}};var De=function(){var e=function(d,g,m){return n(re.AES,d,g,m)},t=function(d,g,m){return n(re.TripleDES,d,g,m)},r=function(d,g,m){return n(re.DES,d,g,m)},n=function(d,g,m,y){var w=re.enc.Hex.parse(g),C=re.enc.Hex.parse(m),k=re.enc.Hex.parse(y),P={};P.key=C,P.iv=k,P.ciphertext=w;var b=d.decrypt(P,C,{iv:k});return re.enc.Hex.stringify(b)},s=function(d,g,m){return o(re.AES,d,g,m)},i=function(d,g,m){return o(re.TripleDES,d,g,m)},a=function(d,g,m){return o(re.DES,d,g,m)},o=function(d,g,m,y){var w=re.enc.Hex.parse(g),C=re.enc.Hex.parse(m),k=re.enc.Hex.parse(y),P=d.encrypt(w,C,{iv:k}),b=re.enc.Hex.parse(P.toString()),_=re.enc.Base64.stringify(b);return _},u={"AES-256-CBC":{proc:e,eproc:s,keylen:32,ivlen:16},"AES-192-CBC":{proc:e,eproc:s,keylen:24,ivlen:16},"AES-128-CBC":{proc:e,eproc:s,keylen:16,ivlen:16},"DES-EDE3-CBC":{proc:t,eproc:i,keylen:24,ivlen:8},"DES-CBC":{proc:r,eproc:a,keylen:8,ivlen:8}},l=function(d){var g=re.lib.WordArray.random(d),m=re.enc.Hex.stringify(g);return m},c=function(d){var g={},m=d.match(new RegExp("DEK-Info: ([^,]+),([0-9A-Fa-f]+)","m"));m&&(g.cipher=m[1],g.ivsalt=m[2]);var y=d.match(new RegExp("-----BEGIN ([A-Z]+) PRIVATE KEY-----"));y&&(g.type=y[1]);var w=-1,C=0;d.indexOf(`\r +\r +`)!=-1&&(w=d.indexOf(`\r +\r +`),C=2),d.indexOf(` + +`)!=-1&&(w=d.indexOf(` + +`),C=1);var k=d.indexOf("-----END");if(w!=-1&&k!=-1){var P=d.substring(w+C*2,k-C);P=P.replace(/\s+/g,""),g.data=P}return g},f=function(d,g,m){for(var y=m.substring(0,16),w=re.enc.Hex.parse(y),C=re.enc.Utf8.parse(g),k=u[d].keylen+u[d].ivlen,P="",b=null;;){var _=re.algo.MD5.create();if(b!=null&&_.update(b),_.update(C),_.update(w),b=_.finalize(),P=P+re.enc.Hex.stringify(b),P.length>=k*2)break}var S={};return S.keyhex=P.substr(0,u[d].keylen*2),S.ivhex=P.substr(u[d].keylen*2,u[d].ivlen*2),S},h=function(d,g,m,y){var w=re.enc.Base64.parse(d),C=re.enc.Hex.stringify(w),k=u[g].proc,P=k(C,m,y);return P},p=function(d,g,m,y){var w=u[g].eproc,C=w(d,m,y);return C};return{version:"1.0.0",parsePKCS5PEM:function(d){return c(d)},getKeyAndUnusedIvByPasscodeAndIvsalt:function(d,g,m){return f(d,g,m)},decryptKeyB64:function(d,g,m,y){return h(d,g,m,y)},getDecryptedKeyHex:function(d,g){var m=c(d),y=m.cipher,w=m.ivsalt,C=m.data,k=f(y,g,w),P=k.keyhex,b=h(C,y,P,w);return b},getEncryptedPKCS5PEMFromPrvKeyHex:function(d,g,m,y,w){var x="";if((typeof y=="undefined"||y==null)&&(y="AES-256-CBC"),typeof u[y]=="undefined")throw new Error("KEYUTIL unsupported algorithm: "+y);if(typeof w=="undefined"||w==null){var C=u[y].ivlen,k=l(C);w=k.toUpperCase()}var P=f(y,m,w),b=P.keyhex,_=p(g,y,b,w),S=_.replace(/(.{64})/g,`$1\r +`),x="-----BEGIN "+d+` PRIVATE KEY-----\r +`;return x+=`Proc-Type: 4,ENCRYPTED\r +`,x+="DEK-Info: "+y+","+w+`\r +`,x+=`\r +`,x+=S,x+=`\r +-----END `+d+` PRIVATE KEY-----\r +`,x},getEncryptedPKCS8PEM:function(d,g,m){var y=this.getEncryptedPKCS8Hex(d,g,m);return It(y,"ENCRYPTED PRIVATE KEY")},getEncryptedPKCS8Hex:function(d,g,m){var y;m==null||m==null?y={}:y=JSON.parse(JSON.stringify(m)),y.plain=d,this.initPBES2Param(y),this.encryptPBES2Param(y,g);var w=this.generatePBES2ASN1Param(y);return v.asn1.ASN1Util.newObject(w).tohex()},initPBES2Param:function(d){if(Xe(d,"encalg")==null&&(d.encalg="aes256-CBC"),Xe(d,"iter")==null&&(d.iter=2048),Xe(d,"prf")==null&&(d.prf="hmacWithSHA256"),Xe(d,"salt")==null&&(d.salt=re.enc.Hex.stringify(re.lib.WordArray.random(8))),Xe(d,"enciv")==null){var g;d.encalg=="des-EDE3-CBC"&&(g=8),d.encalg=="aes128-CBC"&&(g=16),d.encalg=="aes256-CBC"&&(g=16),d.enciv=re.enc.Hex.stringify(re.lib.WordArray.random(g))}},encryptPBES2Param:function(d,g){var m=De.getDKFromPBES2Param(d,g);try{var y=v.crypto.Cipher.encrypt(d.plain,m,d.encalg,{iv:d.enciv})}catch(w){throw new Error("encrypt error: "+d.plain+" "+m+" "+d.encalg+" "+d.enciv)}d.enc=y},generatePBES2ASN1Param:function(d){var g={seq:[{seq:[{oid:"pkcs5PBES2"},{seq:[{seq:[{oid:"pkcs5PBKDF2"},{seq:[{octstr:{hex:d.salt}},{int:{hex:UC(d.iter)}}]}]},{seq:[{oid:d.encalg},{octstr:{hex:d.enciv}}]}]}]},{octstr:{hex:d.enc}}]};return d.prf!="hmacWithSHA1"&&g.seq[0].seq[1].seq[0].seq[1].seq.push({seq:[{oid:d.prf},{null:""}]}),g},parseHexOfEncryptedPKCS8:function(d){var g=Z,m=g.getChildIdx,y=g.getV,w={},C=m(d,0);if(C.length!=2)throw new Error("malformed format: SEQUENCE(0).items != 2: "+C.length);w.ciphertext=y(d,C[1]);var k=m(d,C[0]);if(k.length!=2)throw new Error("malformed format: SEQUENCE(0.0).items != 2: "+k.length);if(y(d,k[0])!="2a864886f70d01050d")throw new Error("this only supports pkcs5PBES2");var P=m(d,k[1]);if(k.length!=2)throw new Error("malformed format: SEQUENCE(0.0.1).items != 2: "+P.length);var b=m(d,P[1]);if(b.length!=2)throw new Error("malformed format: SEQUENCE(0.0.1.1).items != 2: "+b.length);if(y(d,b[0])!="2a864886f70d0307")throw"this only supports TripleDES";w.encryptionSchemeAlg="TripleDES",w.encryptionSchemeIV=y(d,b[1]);var _=m(d,P[0]);if(_.length!=2)throw new Error("malformed format: SEQUENCE(0.0.1.0).items != 2: "+_.length);if(y(d,_[0])!="2a864886f70d01050c")throw new Error("this only supports pkcs5PBKDF2");var S=m(d,_[1]);if(S.length<2)throw new Error("malformed format: SEQUENCE(0.0.1.0.1).items < 2: "+S.length);w.pbkdf2Salt=y(d,S[0]);var x=y(d,S[1]);try{w.pbkdf2Iter=parseInt(x,16)}catch(A){throw new Error("malformed format pbkdf2Iter: "+x)}return w},getPBKDF2KeyHexFromParam:function(d,g){var m=re.enc.Hex.parse(d.pbkdf2Salt),y=d.pbkdf2Iter,w=re.PBKDF2(g,m,{keySize:192/32,iterations:y}),C=re.enc.Hex.stringify(w);return C},_getPlainPKCS8HexFromEncryptedPKCS8PEM:function(d,g){var m=pt(d,"ENCRYPTED PRIVATE KEY"),y=this.parseHexOfEncryptedPKCS8(m),w=De.getPBKDF2KeyHexFromParam(y,g),C={};C.ciphertext=re.enc.Hex.parse(y.ciphertext);var k=re.enc.Hex.parse(w),P=re.enc.Hex.parse(y.encryptionSchemeIV),b=re.TripleDES.decrypt(C,k,{iv:P}),_=re.enc.Hex.stringify(b);return _},parsePBES2:function(d){var g=Z.parse(d);if(Xe(g,"seq.0.seq.0.oid")!="pkcs5PBES2"||Xe(g,"seq.0.seq.1.seq.0.seq.0.oid")!="pkcs5PBKDF2")throw new Error("not pkcs5PBES2 and pkcs5PBKDF2 used");var m=Xe(g,"seq.0.seq.1.seq.0.seq.1.seq");if(m==null)throw new Error("PBKDF2 parameter not found");var y=Xe(m,"0.octstr.hex"),w=Xe(m,"1.int.hex"),C=Xe(m,"2.seq.0.oid","hmacWithSHA1"),k=-1;try{k=parseInt(w,16)}catch(x){throw new Error("iter not proper value")}var P=Xe(g,"seq.0.seq.1.seq.1.seq.0.oid"),b=Xe(g,"seq.0.seq.1.seq.1.seq.1.octstr.hex"),_=Xe(g,"seq.1.octstr.hex");if(P==null||b==null||_==null)throw new Error("encalg, enciv or enc is undefined");var S={salt:y,iter:k,prf:C,encalg:P,enciv:b,enc:_};return S},getDKFromPBES2Param:function(d,g){var m={hmacWithSHA1:re.algo.SHA1,hmacWithSHA224:re.algo.SHA224,hmacWithSHA256:re.algo.SHA256,hmacWithSHA384:re.algo.SHA384,hmacWithSHA512:re.algo.SHA512},y={"des-EDE3-CBC":192/32,"aes128-CBC":128/32,"aes256-CBC":256/32},w=m[d.prf];if(w==null)throw new Error("unsupported prf");var C=y[d.encalg];if(C==null)throw new Error("unsupported encalg");var k=re.enc.Hex.parse(d.salt),P=d.iter;try{var b=re.PBKDF2(g,k,{keySize:C,iterations:P,hasher:w});return re.enc.Hex.stringify(b)}catch(_){throw new Error("PBKDF2 error: "+_+" "+JSON.stringify(d)+" "+g)}},getPlainHexFromEncryptedPKCS8PEM:function(d,g){if(d.indexOf("BEGIN ENCRYPTED PRIVATE KEY")==-1)throw new Error("not Encrypted PKCS#8 PEM string");var m=pt(d),y;try{y=De.parsePBES2(m)}catch(C){throw new Error("malformed PBES2 format: "+C.message)}var w=De.getDKFromPBES2Param(y,g);return v.crypto.Cipher.decrypt(y.enc,w,y.encalg,{iv:y.enciv})},getKeyFromEncryptedPKCS8PEM:function(d,g){var m=this.getPlainHexFromEncryptedPKCS8PEM(d,g),y=this.getKeyFromPlainPrivatePKCS8Hex(m);return y},parsePlainPrivatePKCS8Hex:function(d){var g=Z,m=g.getChildIdx,y=g.getV,w={};if(w.algparam=null,d.substr(0,2)!="30")throw new Error("malformed plain PKCS8 private key(code:001)");var C=m(d,0);if(C.length<3)throw new Error("malformed plain PKCS8 private key(code:002)");if(d.substr(C[1],2)!="30")throw new Error("malformed PKCS8 private key(code:003)");var k=m(d,C[1]);if(k.length!=2)throw new Error("malformed PKCS8 private key(code:004)");if(d.substr(k[0],2)!="06")throw new Error("malformed PKCS8 private key(code:005)");if(w.algoid=y(d,k[0]),d.substr(k[1],2)=="06"&&(w.algparam=y(d,k[1])),d.substr(C[2],2)!="04")throw new Error("malformed PKCS8 private key(code:006)");return w.keyidx=g.getVidx(d,C[2]),w},getKeyFromPlainPrivatePKCS8PEM:function(d){var g=pt(d,"PRIVATE KEY"),m=this.getKeyFromPlainPrivatePKCS8Hex(g);return m},getKeyFromPlainPrivatePKCS8Hex:function(d){var g=this.parsePlainPrivatePKCS8Hex(d),m;if(g.algoid=="2a864886f70d010101")m=new me;else if(g.algoid=="2a8648ce380401")m=new v.crypto.DSA;else if(g.algoid=="2a8648ce3d0201")m=new v.crypto.ECDSA;else throw new Error("unsupported private key algorithm");return m.readPKCS8PrvKeyHex(d),m},_getKeyFromPublicPKCS8Hex:function(d){var g,m=Z.getVbyList(d,0,[0,0],"06");if(m==="2a864886f70d010101")g=new me;else if(m==="2a8648ce380401")g=new v.crypto.DSA;else if(m==="2a8648ce3d0201")g=new v.crypto.ECDSA;else throw new Error("unsupported PKCS#8 public key hex");return g.readPKCS8PubKeyHex(d),g},parsePublicRawRSAKeyHex:function(d){var g=Z,m=g.getChildIdx,y=g.getV,w={};if(d.substr(0,2)!="30")throw new Error("malformed RSA key(code:001)");var C=m(d,0);if(C.length!=2)throw new Error("malformed RSA key(code:002)");if(d.substr(C[0],2)!="02")throw new Error("malformed RSA key(code:003)");if(w.n=y(d,C[0]),d.substr(C[1],2)!="02")throw new Error("malformed RSA key(code:004)");return w.e=y(d,C[1]),w},parsePublicPKCS8Hex:function(d){var g=Z,m=g.getChildIdx,y=g.getV,w={};w.algparam=null;var C=m(d,0);if(C.length!=2)throw new Error("outer DERSequence shall have 2 elements: "+C.length);var k=C[0];if(d.substr(k,2)!="30")throw new Error("malformed PKCS8 public key(code:001)");var P=m(d,k);if(P.length!=2)throw new Error("malformed PKCS8 public key(code:002)");if(d.substr(P[0],2)!="06")throw new Error("malformed PKCS8 public key(code:003)");if(w.algoid=y(d,P[0]),d.substr(P[1],2)=="06"?w.algparam=y(d,P[1]):d.substr(P[1],2)=="30"&&(w.algparam={},w.algparam.p=g.getVbyList(d,P[1],[0],"02"),w.algparam.q=g.getVbyList(d,P[1],[1],"02"),w.algparam.g=g.getVbyList(d,P[1],[2],"02")),d.substr(C[1],2)!="03")throw new Error("malformed PKCS8 public key(code:004)");return w.key=y(d,C[1]).substr(2),w}}}();De.getKey=function(e,t,r){var n=Z,s=n.getChildIdx;n.getV;var i=n.getVbyList,a=v.crypto,o=a.ECDSA,u=a.DSA,l=me,c=pt,f=De;if(typeof l!="undefined"&&e instanceof l||typeof o!="undefined"&&e instanceof o||typeof u!="undefined"&&e instanceof u)return e;if(e.curve!==void 0&&e.xy!==void 0&&e.d===void 0)return new o({pub:e.xy,curve:e.curve});if(e.curve!==void 0&&e.d!==void 0)return new o({prv:e.d,curve:e.curve});if(e.kty===void 0&&e.n!==void 0&&e.e!==void 0&&e.d===void 0){var h=new l;return h.setPublic(e.n,e.e),h}if(e.kty===void 0&&e.n!==void 0&&e.e!==void 0&&e.d!==void 0&&e.p!==void 0&&e.q!==void 0&&e.dp!==void 0&&e.dq!==void 0&&e.co!==void 0&&e.qi===void 0){var h=new l;return h.setPrivateEx(e.n,e.e,e.d,e.p,e.q,e.dp,e.dq,e.co),h}if(e.kty===void 0&&e.n!==void 0&&e.e!==void 0&&e.d!==void 0&&e.p===void 0){var h=new l;return h.setPrivate(e.n,e.e,e.d),h}if(e.p!==void 0&&e.q!==void 0&&e.g!==void 0&&e.y!==void 0&&e.x===void 0){var h=new u;return h.setPublic(e.p,e.q,e.g,e.y),h}if(e.p!==void 0&&e.q!==void 0&&e.g!==void 0&&e.y!==void 0&&e.x!==void 0){var h=new u;return h.setPrivate(e.p,e.q,e.g,e.y,e.x),h}if(e.kty==="RSA"&&e.n!==void 0&&e.e!==void 0&&e.d===void 0){var h=new l;return h.setPublic(at(e.n),at(e.e)),h}if(e.kty==="RSA"&&e.n!==void 0&&e.e!==void 0&&e.d!==void 0&&e.p!==void 0&&e.q!==void 0&&e.dp!==void 0&&e.dq!==void 0&&e.qi!==void 0){var h=new l;return h.setPrivateEx(at(e.n),at(e.e),at(e.d),at(e.p),at(e.q),at(e.dp),at(e.dq),at(e.qi)),h}if(e.kty==="RSA"&&e.n!==void 0&&e.e!==void 0&&e.d!==void 0){var h=new l;return h.setPrivate(at(e.n),at(e.e),at(e.d)),h}if(e.kty==="EC"&&e.crv!==void 0&&e.x!==void 0&&e.y!==void 0&&e.d===void 0){var p=new o({curve:e.crv}),d=p.ecparams.keycharlen,g=("0000000000"+at(e.x)).slice(-d),m=("0000000000"+at(e.y)).slice(-d),y="04"+g+m;return p.setPublicKeyHex(y),p}if(e.kty==="EC"&&e.crv!==void 0&&e.x!==void 0&&e.y!==void 0&&e.d!==void 0){var p=new o({curve:e.crv}),d=p.ecparams.keycharlen,g=("0000000000"+at(e.x)).slice(-d),m=("0000000000"+at(e.y)).slice(-d),y="04"+g+m,w=("0000000000"+at(e.d)).slice(-d);return p.setPublicKeyHex(y),p.setPrivateKeyHex(w),p}if(r==="pkcs5prv"){var C=e,n=Z,k,h;if(k=s(C,0),k.length===9)h=new l,h.readPKCS5PrvKeyHex(C);else if(k.length===6)h=new u,h.readPKCS5PrvKeyHex(C);else if(k.length>2&&C.substr(k[1],2)==="04")h=new o,h.readPKCS5PrvKeyHex(C);else throw new Error("unsupported PKCS#1/5 hexadecimal key");return h}if(r==="pkcs8prv"){var h=f.getKeyFromPlainPrivatePKCS8Hex(e);return h}if(r==="pkcs8pub")return f._getKeyFromPublicPKCS8Hex(e);if(r==="x509pub")return we.getPublicKeyFromCertHex(e);if(e.indexOf("-END CERTIFICATE-",0)!=-1||e.indexOf("-END X509 CERTIFICATE-",0)!=-1||e.indexOf("-END TRUSTED CERTIFICATE-",0)!=-1)return we.getPublicKeyFromCertPEM(e);if(e.indexOf("-END PUBLIC KEY-")!=-1){var P=pt(e,"PUBLIC KEY");return f._getKeyFromPublicPKCS8Hex(P)}if(e.indexOf("-END RSA PRIVATE KEY-")!=-1&&e.indexOf("4,ENCRYPTED")==-1){var b=c(e,"RSA PRIVATE KEY");return f.getKey(b,null,"pkcs5prv")}if(e.indexOf("-END DSA PRIVATE KEY-")!=-1&&e.indexOf("4,ENCRYPTED")==-1){var _=c(e,"DSA PRIVATE KEY"),S=i(_,0,[1],"02"),x=i(_,0,[2],"02"),A=i(_,0,[3],"02"),T=i(_,0,[4],"02"),D=i(_,0,[5],"02"),h=new u;return h.setPrivate(new B(S,16),new B(x,16),new B(A,16),new B(T,16),new B(D,16)),h}if(e.indexOf("-END EC PRIVATE KEY-")!=-1&&e.indexOf("4,ENCRYPTED")==-1){var b=c(e,"EC PRIVATE KEY");return f.getKey(b,null,"pkcs5prv")}if(e.indexOf("-END PRIVATE KEY-")!=-1)return f.getKeyFromPlainPrivatePKCS8PEM(e);if(e.indexOf("-END RSA PRIVATE KEY-")!=-1&&e.indexOf("4,ENCRYPTED")!=-1){var N=f.getDecryptedKeyHex(e,t),F=new me;return F.readPKCS5PrvKeyHex(N),F}if(e.indexOf("-END EC PRIVATE KEY-")!=-1&&e.indexOf("4,ENCRYPTED")!=-1){var _=f.getDecryptedKeyHex(e,t),h=i(_,0,[1],"04"),R=i(_,0,[2,0],"06"),M=i(_,0,[3,0],"03").substr(2),$="";if(v.crypto.OID.oidhex2name[R]!==void 0)$=v.crypto.OID.oidhex2name[R];else throw new Error("undefined OID(hex) in KJUR.crypto.OID: "+R);var p=new o({curve:$});return p.setPublicKeyHex(M),p.setPrivateKeyHex(h),p.isPublic=!1,p}if(e.indexOf("-END DSA PRIVATE KEY-")!=-1&&e.indexOf("4,ENCRYPTED")!=-1){var _=f.getDecryptedKeyHex(e,t),S=i(_,0,[1],"02"),x=i(_,0,[2],"02"),A=i(_,0,[3],"02"),T=i(_,0,[4],"02"),D=i(_,0,[5],"02"),h=new u;return h.setPrivate(new B(S,16),new B(x,16),new B(A,16),new B(T,16),new B(D,16)),h}if(e.indexOf("-END ENCRYPTED PRIVATE KEY-")!=-1)return f.getKeyFromEncryptedPKCS8PEM(e,t);throw new Error("not supported argument")};De.generateKeypair=function(e,t){if(e=="RSA"){var r=t,n=new me;n.generate(r,"10001"),n.isPrivate=!0,n.isPublic=!0;var s=new me,i=n.n.toString(16),a=n.e.toString(16);s.setPublic(i,a),s.isPrivate=!1,s.isPublic=!0;var o={};return o.prvKeyObj=n,o.pubKeyObj=s,o}else if(e=="EC"){var u=t,l=new v.crypto.ECDSA({curve:u}),c=l.generateKeyPairHex(),n=new v.crypto.ECDSA({curve:u});n.setPublicKeyHex(c.ecpubhex),n.setPrivateKeyHex(c.ecprvhex),n.isPrivate=!0,n.isPublic=!1;var s=new v.crypto.ECDSA({curve:u});s.setPublicKeyHex(c.ecpubhex),s.isPrivate=!1,s.isPublic=!0;var o={};return o.prvKeyObj=n,o.pubKeyObj=s,o}else throw new Error("unknown algorithm: "+e)};De.getPEM=function(e,t,r,n,s,i){var a=v,o=a.asn1,u=o.DERObjectIdentifier,l=o.DERInteger,c=o.ASN1Util.newObject,f=o.x509,h=f.SubjectPublicKeyInfo,p=a.crypto,d=p.DSA,g=p.ECDSA,m=me;function y(R){var M=c({seq:[{int:0},{int:{bigint:R.n}},{int:R.e},{int:{bigint:R.d}},{int:{bigint:R.p}},{int:{bigint:R.q}},{int:{bigint:R.dmp1}},{int:{bigint:R.dmq1}},{int:{bigint:R.coeff}}]});return M}function w(R){var M=c({seq:[{int:1},{octstr:{hex:R.prvKeyHex}},{tag:["a0",!0,{oid:{name:R.curveName}}]},{tag:["a1",!0,{bitstr:{hex:"00"+R.pubKeyHex}}]}]});return M}function C(R){var M=c({seq:[{int:0},{int:{bigint:R.p}},{int:{bigint:R.q}},{int:{bigint:R.g}},{int:{bigint:R.y}},{int:{bigint:R.x}}]});return M}if((m!==void 0&&e instanceof m||d!==void 0&&e instanceof d||g!==void 0&&e instanceof g)&&e.isPublic==!0&&(t===void 0||t=="PKCS8PUB")){var k=new h(e),P=k.tohex();return It(P,"PUBLIC KEY")}if(t=="PKCS1PRV"&&m!==void 0&&e instanceof m&&(r===void 0||r==null)&&e.isPrivate==!0){var k=y(e),P=k.tohex();return It(P,"RSA PRIVATE KEY")}if(t=="PKCS1PRV"&&g!==void 0&&e instanceof g&&(r===void 0||r==null)&&e.isPrivate==!0){var b=new u({name:e.curveName}),_=b.tohex(),S=w(e),x=S.tohex(),A="";return A+=It(_,"EC PARAMETERS"),A+=It(x,"EC PRIVATE KEY"),A}if(t=="PKCS1PRV"&&d!==void 0&&e instanceof d&&(r===void 0||r==null)&&e.isPrivate==!0){var k=C(e),P=k.tohex();return It(P,"DSA PRIVATE KEY")}if(t=="PKCS5PRV"&&m!==void 0&&e instanceof m&&r!==void 0&&r!=null&&e.isPrivate==!0){var k=y(e),P=k.tohex();return n===void 0&&(n="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("RSA",P,r,n,i)}if(t=="PKCS5PRV"&&g!==void 0&&e instanceof g&&r!==void 0&&r!=null&&e.isPrivate==!0){var k=w(e),P=k.tohex();return n===void 0&&(n="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("EC",P,r,n,i)}if(t=="PKCS5PRV"&&d!==void 0&&e instanceof d&&r!==void 0&&r!=null&&e.isPrivate==!0){var k=C(e),P=k.tohex();return n===void 0&&(n="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("DSA",P,r,n,i)}var T=function(R,M){if(typeof M=="string")return De.getEncryptedPKCS8PEM(R,M);if(typeof M=="object"&&Xe(M,"passcode")!=null){var $=JSON.parse(JSON.stringify(M)),ae=$.passcode;return delete $.passcode,De.getEncryptedPKCS8PEM(R,ae,$)}};if(t=="PKCS8PRV"&&m!=null&&e instanceof m&&e.isPrivate==!0){var D=y(e),N=D.tohex(),k=c({seq:[{int:0},{seq:[{oid:{name:"rsaEncryption"}},{null:!0}]},{octstr:{hex:N}}]}),P=k.tohex();return r===void 0||r==null?It(P,"PRIVATE KEY"):T(P,r)}if(t=="PKCS8PRV"&&g!==void 0&&e instanceof g&&e.isPrivate==!0){var F={seq:[{int:1},{octstr:{hex:e.prvKeyHex}}]};typeof e.pubKeyHex=="string"&&F.seq.push({tag:["a1",!0,{bitstr:{hex:"00"+e.pubKeyHex}}]});var D=new c(F),N=D.tohex(),k=c({seq:[{int:0},{seq:[{oid:{name:"ecPublicKey"}},{oid:{name:e.curveName}}]},{octstr:{hex:N}}]}),P=k.tohex();return r===void 0||r==null?It(P,"PRIVATE KEY"):T(P,r)}if(t=="PKCS8PRV"&&d!==void 0&&e instanceof d&&e.isPrivate==!0){var D=new l({bigint:e.x}),N=D.tohex(),k=c({seq:[{int:0},{seq:[{oid:{name:"dsa"}},{seq:[{int:{bigint:e.p}},{int:{bigint:e.q}},{int:{bigint:e.g}}]}]},{octstr:{hex:N}}]}),P=k.tohex();return r===void 0||r==null?It(P,"PRIVATE KEY"):T(P,r)}throw new Error("unsupported object nor format")};De.getKeyFromCSRPEM=function(e){var t=pt(e,"CERTIFICATE REQUEST"),r=De.getKeyFromCSRHex(t);return r};De.getKeyFromCSRHex=function(e){var t=De.parseCSRHex(e),r=De.getKey(t.p8pubkeyhex,null,"pkcs8pub");return r};De.parseCSRHex=function(e){var t=Z,r=t.getChildIdx,n=t.getTLV,s={},i=e;if(i.substr(0,2)!="30")throw new Error("malformed CSR(code:001)");var a=r(i,0);if(a.length<1)throw new Error("malformed CSR(code:002)");if(i.substr(a[0],2)!="30")throw new Error("malformed CSR(code:003)");var o=r(i,a[0]);if(o.length<3)throw new Error("malformed CSR(code:004)");return s.p8pubkeyhex=n(i,o[2]),s};De.getKeyID=function(e){var t=De,r=Z;typeof e=="string"&&e.indexOf("BEGIN ")!=-1&&(e=t.getKey(e));var n=pt(t.getPEM(e)),s=r.getIdxbyList(n,0,[1]),i=r.getV(n,s).substring(2);return v.crypto.Util.hashHex(i,"sha1")};De.getJWK=function(e,t,r,n,s){var i,a={},o,u=v.crypto.Util.hashHex;if(typeof e=="string")i=De.getKey(e),e.indexOf("CERTIFICATE")!=-1&&(o=pt(e));else if(typeof e=="object")e instanceof we?(i=e.getPublicKey(),o=e.hex):i=e;else throw new Error("unsupported keyinfo type");if(i instanceof me&&i.isPrivate)a.kty="RSA",a.n=xt(i.n.toString(16)),a.e=xt(i.e.toString(16)),a.d=xt(i.d.toString(16)),a.p=xt(i.p.toString(16)),a.q=xt(i.q.toString(16)),a.dp=xt(i.dmp1.toString(16)),a.dq=xt(i.dmq1.toString(16)),a.qi=xt(i.coeff.toString(16));else if(i instanceof me&&i.isPublic)a.kty="RSA",a.n=xt(i.n.toString(16)),a.e=xt(i.e.toString(16));else if(i instanceof v.crypto.ECDSA&&i.isPrivate){var l=i.getShortNISTPCurveName();if(l!=="P-256"&&l!=="P-384"&&l!=="P-521")throw new Error("unsupported curve name for JWT: "+l);var c=i.getPublicKeyXYHex();a.kty="EC",a.crv=l,a.x=xt(c.x),a.y=xt(c.y),a.d=xt(i.prvKeyHex)}else if(i instanceof v.crypto.ECDSA&&i.isPublic){var l=i.getShortNISTPCurveName();if(l!=="P-256"&&l!=="P-384"&&l!=="P-521")throw new Error("unsupported curve name for JWT: "+l);var c=i.getPublicKeyXYHex();a.kty="EC",a.crv=l,a.x=xt(c.x),a.y=xt(c.y)}if(a.kty==null)throw new Error("unsupported keyinfo");return!i.isPrivate&&t!=!0&&(a.kid=v.jws.JWS.getJWKthumbprint(a)),o!=null&&r!=!0&&(a.x5c=[Xs(o)]),o!=null&&n!=!0&&(a.x5t=wo(Xs(u(o,"sha1")))),o!=null&&s!=!0&&(a["x5t#S256"]=wo(Xs(u(o,"sha256")))),a};De.getJWKFromKey=function(e){return De.getJWK(e,!0,!0,!0,!0)};me.getPosArrayOfChildrenFromHex=function(e){return Z.getChildIdx(e,0)};me.getHexValueArrayOfChildrenFromHex=function(e){var t=Z,r=t.getV,h=me.getPosArrayOfChildrenFromHex(e),n=r(e,h[0]),s=r(e,h[1]),i=r(e,h[2]),a=r(e,h[3]),o=r(e,h[4]),u=r(e,h[5]),l=r(e,h[6]),c=r(e,h[7]),f=r(e,h[8]),h=new Array;return h.push(n,s,i,a,o,u,l,c,f),h};me.prototype.readPrivateKeyFromPEMString=function(e){var t=pt(e),r=me.getHexValueArrayOfChildrenFromHex(t);this.setPrivateEx(r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8])};me.prototype.readPKCS5PrvKeyHex=function(e){var t=me.getHexValueArrayOfChildrenFromHex(e);this.setPrivateEx(t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8])};me.prototype.readPKCS8PrvKeyHex=function(e){var t,r,n,s,i,a,o,u,l=Z,c=l.getVbyListEx;if(l.isASN1HEX(e)===!1)throw new Error("not ASN.1 hex string");try{t=c(e,0,[2,0,1],"02"),r=c(e,0,[2,0,2],"02"),n=c(e,0,[2,0,3],"02"),s=c(e,0,[2,0,4],"02"),i=c(e,0,[2,0,5],"02"),a=c(e,0,[2,0,6],"02"),o=c(e,0,[2,0,7],"02"),u=c(e,0,[2,0,8],"02")}catch(f){throw new Error("malformed PKCS#8 plain RSA private key")}this.setPrivateEx(t,r,n,s,i,a,o,u)};me.prototype.readPKCS5PubKeyHex=function(e){var t=Z,r=t.getV;if(t.isASN1HEX(e)===!1)throw new Error("keyHex is not ASN.1 hex string");var n=t.getChildIdx(e,0);if(n.length!==2||e.substr(n[0],2)!=="02"||e.substr(n[1],2)!=="02")throw new Error("wrong hex for PKCS#5 public key");var s=r(e,n[0]),i=r(e,n[1]);this.setPublic(s,i)};me.prototype.readPKCS8PubKeyHex=function(e){var t=Z;if(t.isASN1HEX(e)===!1)throw new Error("not ASN.1 hex string");if(t.getTLVbyListEx(e,0,[0,0])!=="06092a864886f70d010101")throw new Error("not PKCS8 RSA public key");var r=t.getTLVbyListEx(e,0,[1,0]);this.readPKCS5PubKeyHex(r)};me.prototype.readCertPubKeyHex=function(e,t){var r,n;r=new we,r.readCertHex(e),n=r.getPublicKeyHex(),this.readPKCS8PubKeyHex(n)};function C1(e,t){for(var r="",n=t/4-e.length,s=0;s>24,(s&16711680)>>16,(s&65280)>>8,s&255])))),s+=1;return n}me.prototype.signPSS=function(e,t,r){var n=function(i){return v.crypto.Util.hashHex(i,t)},s=n(_r(e));return r===void 0&&(r=-1),this.signWithMessageHashPSS(s,t,r)};me.prototype.signWithMessageHashPSS=function(e,t,r){var n=Xt(e),s=n.length,i=this.n.bitLength()-1,a=Math.ceil(i/8),o,u=function(m){return v.crypto.Util.hashHex(m,t)};if(r===-1||r===void 0)r=s;else if(r===-2)r=a-s-2;else if(r<-2)throw new Error("invalid salt length");if(a0&&(l=new Array(r),new As().nextBytes(l),l=String.fromCharCode.apply(String,l));var c=Xt(u(_r("\0\0\0\0\0\0\0\0"+n+l))),f=[];for(o=0;o>8*a-i&255;for(d[0]&=~g,o=0;on)return!1;var s=this.doPublic(r),i=s.toString(16);if(i.length+3!=n/4)return!1;var a=i.replace(/^1f+00/,""),o=A1(a);if(o.length==0)return!1;var u=o[0],l=o[1],c=function(h){return v.crypto.Util.hashString(h,u)},f=c(e);return l==f};me.prototype.verifyWithMessageHash=function(e,t){if(t.length!=Math.ceil(this.n.bitLength()/4))return!1;var r=Pt(t,16);if(r.bitLength()>this.n.bitLength())return 0;var n=this.doPublic(r),s=n.toString(16).replace(/^1f+00/,""),i=A1(s);if(i.length==0)return!1;i[0];var a=i[1];return a==e};me.prototype.verifyPSS=function(e,t,r,n){var s=function(a){return v.crypto.Util.hashHex(a,r)},i=s(_r(e));return n===void 0&&(n=-1),this.verifyWithMessageHashPSS(i,t,r,n)};me.prototype.verifyWithMessageHashPSS=function(e,t,r,n){if(t.length!=Math.ceil(this.n.bitLength()/4))return!1;var s=new B(t,16),i=function(w){return v.crypto.Util.hashHex(w,r)},a=Xt(e),o=a.length,u=this.n.bitLength()-1,l=Math.ceil(u/8),c;if(n===-1||n===void 0)n=o;else if(n===-2)n=l-o-2;else if(n<-2)throw new Error("invalid salt length");if(l>8*l-u&255;if(h.charCodeAt(0)&d)throw new Error("bits beyond keysize not zero");var g=k1(p,h.length,i),m=[];for(c=0;c0?_:void 0}catch(D){return}},this._asn1ToNoticeRef=function(b){try{for(var _={},S=Xe(b,"seq"),x=0;x0?_:void 0}catch(D){return}},this._asn1ToNoticeNum=function(b){try{for(var _=Xe(b,"seq"),S=[],x=0;x<_.length;x++){var A=_[x];S.push(parseInt(Xe(A,"int.hex"),16))}return S}catch(T){return}},this.getDisplayText=function(b){var _={"0c":"utf8",16:"ia5","1a":"vis","1e":"bmp"},S={};return S.type=_[b.substr(0,2)],S.str=Xt(n(b,0)),S},this.asn1ToDisplayText=function(b){if(b.utf8str!=null)return{type:"utf8",str:b.utf8str.str};if(b.ia5str!=null)return{type:"ia5",str:b.ia5str.str};if(b.visstr!=null)return{type:"vis",str:b.visstr.str};if(b.bmpstr!=null)return{type:"bmp",str:b.bmpstr.str};if(b.prnstr!=null)return{type:"prn",str:b.prnstr.str}},this.getExtPolicyMappings=function(b,_){var S=this.getCriticalExtV("policyMappings",b,_);if(b=S[0],_=S[1],b!=null){var x={extname:"policyMappings"};_&&(x.critical=!0);try{for(var A=s(b),T=A.seq,D=[],N=0;N1){var T=i(b,A[1]),D=this.getGeneralName(T);D.uri!=null&&(x.uri=D.uri)}if(A.length>2){var N=i(b,A[2]);N=="0101ff"&&(x.reqauth=!0),N=="010100"&&(x.reqauth=!1)}return x},this.getExtSubjectDirectoryAttributes=function(b,_){if(b===void 0&&_===void 0){var S=this.getExtInfo("subjectDirectoryAttributes");if(S===void 0)return;b=i(this.hex,S.vidx),_=S.critical}var x={extname:"subjectDirectoryAttributes"};_&&(x.critical=!0);try{for(var A=s(b),T=[],D=0;D0&&(_.ext=this.getExtParamArray()),_.sighex=this.getSignatureValueHex(),b.tbshex==!0&&(_.tbshex=u(this.hex,0,[0])),b.nodnarray==!0&&(delete _.issuer.array,delete _.subject.array),_},this.getExtParamArray=function(b){if(b==null){var _=f(this.hex,0,[0,"[3]"]);_!=-1&&(b=l(this.hex,0,[0,"[3]",0],"30"))}for(var S=[],x=r(b,0),A=0;A0){var k=":"+r.join(":")+":";if(k.indexOf(":"+w+":")==-1)throw"algorithm '"+w+"' not accepted in the list"}if(w!="none"&&t===null)throw"key shall be specified to verify.";if(typeof t=="string"&&t.indexOf("-----BEGIN ")!=-1&&(t=De.getKey(t)),(C=="RS"||C=="PS")&&!(t instanceof f))throw"key shall be a RSAKey obj for RS* and PS* algs";if(C=="ES"&&!(t instanceof u))throw"key shall be a ECDSA obj for ES* algs";var P=null;if(i.jwsalg2sigalg[y.alg]===void 0)throw"unsupported alg name: "+w;if(P=i.jwsalg2sigalg[w],P=="none")throw"not supported";if(P.substr(0,4)=="Hmac"){var b=null;if(t===void 0)throw"hexadecimal key shall be specified for HMAC";var _=new l({alg:P,pass:t});return _.updateString(g),b=_.doFinal(),m==b}else if(P.indexOf("withECDSA")!=-1){var S=null;try{S=u.concatSigToASN1Sig(m)}catch(A){return!1}var x=new c({alg:P});return x.init(t),x.updateString(g),x.verify(S)}else{var x=new c({alg:P});return x.init(t),x.updateString(g),x.verify(m)}};v.jws.JWS.parse=function(e){var t=e.split("."),r={},n,s,i;if(t.length!=2&&t.length!=3)throw"malformed sJWS: wrong number of '.' splitted elements";return n=t[0],s=t[1],t.length==3&&(i=t[2]),r.headerObj=v.jws.JWS.readSafeJSONString(Nr(n)),r.payloadObj=v.jws.JWS.readSafeJSONString(Nr(s)),r.headerPP=JSON.stringify(r.headerObj,null," "),r.payloadObj==null?r.payloadPP=Nr(s):r.payloadPP=JSON.stringify(r.payloadObj,null," "),i!==void 0&&(r.sigHex=at(i)),r};v.jws.JWS.verifyJWT=function(e,t,r){var n=v,s=n.jws,i=s.JWS,a=i.readSafeJSONString,o=i.inArray,u=i.includedArray;if(!E1(e))return!1;var l=e.split(".");if(l.length!=3)return!1;var c=l[0],f=l[1];at(l[2]);var h=a(Nr(c)),p=a(Nr(f));if(h.alg===void 0)return!1;if(r.alg===void 0)throw"acceptField.alg shall be specified";if(!o(h.alg,r.alg)||p.iss!==void 0&&typeof r.iss=="object"&&!o(p.iss,r.iss)||p.sub!==void 0&&typeof r.sub=="object"&&!o(p.sub,r.sub))return!1;if(p.aud!==void 0&&typeof r.aud=="object"){if(typeof p.aud=="string"){if(!o(p.aud,r.aud))return!1}else if(typeof p.aud=="object"&&!u(p.aud,r.aud))return!1}var d=s.IntDate.getNow();return r.verifyAt!==void 0&&typeof r.verifyAt=="number"&&(d=r.verifyAt),(r.gracePeriod===void 0||typeof r.gracePeriod!="number")&&(r.gracePeriod=0),!(p.exp!==void 0&&typeof p.exp=="number"&&p.exp+r.gracePeriodu&&this.aHeader.pop(),this.aSignature.length>u&&this.aSignature.pop(),"addSignature failed: "+p}},this.verifyAll=function(s){if(this.aHeader.length!==s.length||this.aSignature.length!==s.length)return!1;for(var i=0;i0)this.aHeader=s.headers;else throw"malformed header";if(typeof s.payload=="string")this.sPayload=s.payload;else throw"malformed signatures";if(s.signatures.length>0)this.aSignature=s.signatures;else throw"malformed signatures"}catch(a){throw"malformed JWS-JS JSON object: "+a}},this.getJSON=function(){return{headers:this.aHeader,payload:this.sPayload,signatures:this.aSignature}},this.isEmpty=function(){return this.aHeader.length==0?1:0}};v.crypto.ECDSA;v.crypto.DSA;v.crypto.Signature;v.crypto.MessageDigest;v.crypto.Mac;v.crypto.Cipher;var YC=De,zC=RC,WC=Xt,GC=v;v.crypto;v.asn1;v.jws;v.lang;function hc(e){return new Promise((t,r)=>{Yt.security.setCertificatePromise(n=>{l1.get("/assets/ury/files/cert.pem").then(s=>{n(s.data)}).catch(s=>{r({custom:!0,title:"Error during fetching certificate",message:s})})}),Yt.websocket.isActive()||Yt.websocket.connect({host:e,usingSecure:!1}).then(()=>t("success")).catch(n=>{r({custom:!0,title:"Error during connection to printer",message:String(n)})})})}function JC(){Yt.websocket.isActive()&&Yt.websocket.disconnect()}function XC(e,t){return new Promise((r,n)=>{Yt.security.setSignatureAlgorithm("SHA512"),Yt.security.setSignaturePromise(function(i){return function(a){try{var o=YC.getKey(t6),u=new GC.crypto.Signature({alg:"SHA512withRSA"});u.init(o),u.updateString(i);var l=u.sign();a(zC(WC(l)))}catch(c){n(c)}}});const s=()=>{Yt.printers.getDefault().then(i=>Ee(this,null,function*(){const a=[{type:"html",format:"plain",data:t}],o=Yt.configs.create(i);try{return yield Yt.print(o,a),r("printed")}catch(u){Yt.websocket.disconnect(),n({custom:!0,title:"Print failed",message:String(u)})}})).catch(i=>{Yt.websocket.disconnect(),n({custom:!0,title:"Error looking up for printer",message:String(i)})})};Yt.websocket.isActive()?s():hc(e).then(()=>s()).catch(i=>n(i))})}const fr=Cr("invoiceData",{state:()=>({invoiceDetails:[],defaultModeOfPayment:"Cash",warehouse:"",posProfile:"",waiter:"",auth:Lt(),cashier:"",modeOfPaymentList:null,alert:Yn(),showDialog:!1,notification:ca(),menu:Es(),recentOrders:ai(),printer:null,print_format:null,print_type:null,branch:null,company:null,qz_host:null,grandTotal:null,cancelReason:null,tableInvoiceNo:null,invoiceNumber:null,showUpdateButtton:!0,isChecked:!1,isPrinting:!1,cancelInvoiceFlag:!1,previousOrderItem:[],table:Ts(),call:Dt.call(),qz_print:null}),actions:{fetchInvoiceDetails(){return Ee(this,null,function*(){try{const e=yield this.call.get("ury.ury_pos.api.getPosProfile").then(t=>{this.invoiceDetails=t.message,this.warehouse=this.invoiceDetails.warehouse,this.posProfile=this.invoiceDetails.pos_profile,this.waiter=this.invoiceDetails.waiter,this.cashier=this.invoiceDetails.cashier,this.branch=this.invoiceDetails.branch,this.company=this.invoiceDetails.company,this.print_format=this.invoiceDetails.print_format,this.qz_print=this.invoiceDetails.qz_print,this.qz_host=this.invoiceDetails.qz_host,this.print_type=this.invoiceDetails.print_type,this.printer=this.invoiceDetails.printer,this.qz_host&&hc(this.qz_host)})}catch(e){console.error(e)}this.call.get("ury.ury_pos.api.getModeOfPayment").then(e=>{this.modeOfPaymentList=e.message}).catch(e=>{})})},invoiceCreation(){return Ee(this,null,function*(){this.showUpdateButtton=!1;let e="";this.invoiceNo=this.table.invoiceNo;let t=this.menu.cart;const r=hu(),n=r.search,s=r.numberOfPax;let i=this.recentOrders.draftInvoice||this.table.invoiceNo||null,a=this.invoiceNumber||this.recentOrders.draftInvoice||this.table.invoiceNo||null;e=this.table.selectedTable||this.recentOrders.restaurantTable;const o=JSON.parse(JSON.stringify(t));let u=this.table.previousWaiter!==null&&this.table.previousWaiter!==void 0?this.table.previousWaiter:this.recentOrders.recentWaiter!==null&&this.recentOrders.recentWaiter!==void 0?this.recentOrders.recentWaiter:this.waiter;const l={table:e,customer:n,items:t,no_of_pax:s,mode_of_payment:this.defaultModeOfPayment,cashier:this.cashier,waiter:u,last_modified_time:this.table.modifiedTime,pos_profile:this.posProfile,invoice:i,last_invoice:a,comments:this.menu.comments};!this.auth.cashier&&!s?(this.alert.createAlert("Message","Please Select Customer / No of Pax","OK"),this.showUpdateButtton=!0):!this.auth.cashier&&!e?(this.alert.createAlert("Message","Please Select a Table","OK"),this.showUpdateButtton=!0):this.call.post("ury.ury.doctype.ury_order.ury_order.sync_order",l).then(c=>{if(this.showUpdateButtton=!0,c.message.status==="Failure"){const f=c._server_messages,h=JSON.parse(f),p=JSON.parse(h[0]);this.alert.createAlert("Message",p.message,"OK").then(()=>{dt.push("/Table").then(()=>{window.location.reload()})})}else this.invoiceNumber=c.message.name,this.grandTotal=c.message.grand_total,this.notification.createNotification("Order Update"),this.table.fetchTable(),this.menu.comments="",this.menu.items.forEach(h=>{h.comment=""}),this.previousOrderItem.splice(0,this.previousOrderItem.length),this.previousOrderItem.splice(0,this.previousOrderItem.length,...o),this.table.modifiedTime=c.message.modified,this.auth.cashier&&this.recentOrders.viewRecentOrder(c.message)}).catch(c=>{if(this.showUpdateButtton=!0,c._server_messages){const f=JSON.parse(c._server_messages),h=JSON.parse(f[0]);this.alert.createAlert("Message",h.message,"OK")}})})},billing(e){const r={table:e.name};this.call.get("ury.ury.doctype.ury_order.ury_order.get_order_invoice",r).then(n=>{this.tableInvoiceNo=n.message.name,!this.auth.hasAccess&&!this.auth.cashier&&this.auth.sessionUser!==n.message.waiter?this.alert.createAlert("Message","Printing is Blocked Table is assigned to "+n.message.waiter,"OK"):(this.isPrinting=!0,this.printFunction())}).catch(n=>console.error(n))},printFunction:function(){return Ee(this,null,function*(){var t,r;this.isPrinting=!0;let e=this.recentOrders.invoiceNumber||this.tableInvoiceNo||this.invoiceNumber;try{if(this.print_type==="qz"){const n={doc:"POS Invoice",name:e,print_format:this.print_format,_lang:"en"},s=yield this.call.get("frappe.www.printview.get_html_and_style",n);if((t=s==null?void 0:s.message)!=null&&t.html||(this.isPrinting=!1,this.alert.createAlert("Message","Error while getting the HTML document to print for QZ","OK")),(yield XC(this.qz_host,(r=s==null?void 0:s.message)==null?void 0:r.html))==="printed"){this.notification.createNotification("Print Successful");const a={invoice:e};this.call.post("ury.ury.api.ury_print.qz_print_update",a).then(()=>(window.location.reload(),200)).catch(o=>console.error(o,"printed"))}}else if(this.print_type==="network")if(this.auth.cashier){const n={doctype:"POS Invoice",name:e,printer_setting:this.printer,print_format:this.print_format},s=()=>Ee(this,null,function*(){return(yield this.call.post("ury.ury.api.ury_print.network_printing",n)).message});let i=0,a="";do{const o=yield s();if(o==="Success"){this.notification.createNotification("Print Successful");const u={invoice:e};yield this.call.post("ury.ury.api.ury_print.qz_print_update",u).then(()=>(window.location.reload(),200))}a=o,i++}while(i<1);throw{alert:this.alert.createAlert("Message",`Print failed with error ${a}`,"OK"),custom:this.isPrinting=!1}}else{const n={invoice_id:e,pos_profile:this.posProfile},s=()=>Ee(this,null,function*(){return(yield this.call.post("ury.ury.api.ury_print.select_network_printer",n)).message});let i=0,a="";do{const o=yield s();if(o==="Success"){this.notification.createNotification("Print Successful");const u={invoice:e};yield this.call.post("ury.ury.api.ury_print.qz_print_update",u).then(()=>(window.location.reload(),200))}a=o,i++}while(i<1);throw{alert:this.alert.createAlert("Message",`Print failed with error ${a}`,"OK"),custom:this.isPrinting=!1}}else{const n={doctype:"POS Invoice",name:e,print_format:this.print_format};this.call.post("ury.ury.api.ury_print.print_pos_page",n).then(s=>(this.notification.createNotification("Print Successful"),window.location.reload(),s.message)).catch(s=>console.error(s))}}catch(n){if(n!=null&&n.custom)return this.isPrinting=!1,this.alert.createAlert("Error",n==null?void 0:n.title,"OK")}})},loadPrinter:function(e){return Ee(this,null,function*(){try{const t=yield hc(url,e);print(e),t==="success"&&this.notification.createNotification("Printer loaded")}catch(t){this.alert.createAlert("Message",t.message,"OK")}})},showCancelInvoiceModal(){this.call.get("ury.ury.api.button_permission.cancel_check").then(e=>{e.message===!0?(this.cancelInvoiceFlag=!0,this.cancelReason=""):(this.alert.createAlert("Message","You don't Have Permission to Cancel ","OK"),this.cancelInvoiceFlag=!1,this.cancelReason="")}).catch(e=>{})},cancelInvoice:function(){return Ee(this,null,function*(){const r={invoice_id:ai().invoiceNumber||this.invoiceNumber||this.table.invoiceNo,reason:this.cancelReason};this.call.post("ury.ury.doctype.ury_order.ury_order.cancel_order",r).then(()=>{this.notification.createNotification("Invoice Cancelled"),dt.push("/Table").then(()=>{window.location.reload()})}).catch(n=>console.error(n))})}}}),dr=(e,t)=>{const r=e.__vccOpts||e;for(const[n,s]of t)r[n]=s;return r},ZC={name:"takeAwayTable",setup(){const e=Ts(),t=fr(),r=Lt();return{table:e,invoiceData:t,auth:r}}},QC={class:"flow-root"},ek={key:0,class:"fixed inset-0 z-50 flex items-center justify-center bg-gray-300 bg-opacity-50 text-lg"},tk={class:"grid grid-cols-2 gap-4 md:grid-cols-4 lg:grid-cols-5"},rk={class:"flex justify-between"},nk={class:"flex justify-start px-2 pt-2"},sk={key:0,class:"relative"},ik=["onClick"],ak=E("svg",{class:"h-6 w-6","aria-hidden":"true",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[E("path",{d:"M6 10a2 2 0 11-4 0 2 2 0 014 0zM12 10a2 2 0 11-4 0 2 2 0 014 0zM16 12a2 2 0 100-4 2 2 0 000 4z"})],-1),ok=[ak],uk={class:"absolute right-0 z-10 w-36 divide-y divide-gray-100 rounded-lg bg-white shadow dark:bg-gray-700"},lk={class:"py-2"},ck=["onClick"],hk={key:0},fk=["onClick"],dk={class:"flex flex-col pb-4"},pk=["onClick"],gk={class:"text-sm text-gray-500 dark:text-gray-400"},mk={key:0,class:"mt-8 text-center"},vk=["onClick"],yk=E("svg",{class:"ml-2 h-6 w-6 dark:text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[E("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13 9l3 3m0 0l-3 3m3-3H8m13 0a9 9 0 11-18 0 9 9 0 0118 0z"})],-1),bk={key:1,class:"mt-2 flex justify-center"},wk=["onClick"],xk=E("svg",{class:"svg-icon mr-2",viewBox:"0 0 24 24",width:"18",height:"18",fill:"white"},[E("path",{d:"M6 19H3a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1h3V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v4h3a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1h-3v2a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1v-2zm0-2v-1a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v1h2V9H4v8h2zM8 4v3h8V4H8zm0 13v3h8v-3H8zm-3-7h3v2H5v-2z"})],-1),Sk=["onClick"],_k=E("svg",{"aria-hidden":"true",class:"h-10 w-6",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[E("path",{d:"M10 12a2 2 0 100-4 2 2 0 000 4z"}),E("path",{"fill-rule":"evenodd",d:"M.458 10C1.732 5.943 5.522 3 10 3s8.268 2.943 9.542 7c-1.274 4.057-5.064 7-9.542 7S1.732 14.057.458 10zM14 10a4 4 0 11-8 0 4 4 0 018 0z","clip-rule":"evenodd"})],-1),Ek=[_k];function Ck(e,t,r,n,s,i){return H(),V("div",QC,[this.invoiceData.isLoading?(H(),V("div",ek," Payment Being Processing ")):ue("",!0),E("div",tk,[(H(!0),V(Te,null,ht(this.table.takeAway,a=>(H(),V("div",{"w-full":"",class:"w-full max-w-sm rounded-lg border border-gray-200 bg-white shadow dark:border-gray-700 dark:bg-gray-800",key:a.name},[E("div",rk,[E("div",nk,[E("span",{class:Ce(["me-2 rounded px-2.5 py-0.5 text-sm font-medium",{"bg-blue-100 text-blue-800 dark:bg-blue-900 dark:text-blue-300":this.table.getBadgeType(a)==="default","bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-300":this.table.getBadgeType(a)==="red","bg-yellow-100 text-yellow-800":this.table.getBadgeType(a)==="yellow","bg-green-100 text-green-800":this.table.getBadgeType(a)==="green"}])},ye(this.table.getBadgeText(a)),3)]),a.occupied===1?(H(),V("div",sk,[E("button",{class:"inline-block rounded-lg p-1.5 text-sm text-gray-500 dark:text-gray-400 dark:hover:bg-gray-700 dark:focus:ring-gray-700",type:"button",onClick:o=>this.table.toggleDropdown(a.name)},ok,8,ik),_e(E("div",uk,[E("ul",lk,[E("li",null,[E("a",{href:"#",class:"block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 dark:text-gray-200 dark:hover:bg-gray-600 dark:hover:text-white",onClick:o=>this.table.showModal=!0},"Table Transfer",8,ck)]),this.auth.hasAccess?(H(),V("li",hk,[E("a",{href:"#",class:"block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 dark:text-gray-200 dark:hover:bg-gray-600 dark:hover:text-white",onClick:o=>this.table.showModalCaptainTransfer=!0},"Captain Transfer",8,fk)])):ue("",!0)])],512),[[Vc,this.table.activeDropdown===a.name]])])):ue("",!0)]),E("div",dk,[E("div",{class:"mt-1 text-center",onClick:o=>a.occupied===1&&!this.auth.restrictTableOrder?this.table.routeToMenu(a):""},[E("h5",{class:Ce(["mt-2 text-xl font-medium text-gray-900 dark:text-white",{"mt-3":a.occupied===0}])},ye(a.name),3),E("span",gk,ye(a.occupied===1?this.table.getTimeDifference(a):""),1)],8,pk),a.occupied!=1?(H(),V("div",mk,[E("button",{type:"button",class:Ce(["inline-flex items-center rounded px-2 py-2.5 text-center text-sm font-medium text-white hover:bg-[#2557D6]/90 focus:outline-none focus:ring-4 focus:ring-[#2557D6]/50 dark:focus:ring-[#2557D6]/50",[{"bg-blue-700":!this.auth.restrictTableOrder,"pointer-events-none bg-blue-400":this.auth.restrictTableOrder}]]),onClick:o=>!this.auth.restrictTableOrder&&this.table.addToSelectedTables(a)},[ti(" Open Table "),yk],10,vk)])):ue("",!0),a.occupied===1?(H(),V("div",bk,[E("button",{type:"button",class:"mb-2 me-2 inline-flex items-center rounded bg-blue-700 px-5 py-2.5 text-center text-sm font-medium text-white hover:bg-[#2557D6]/90 focus:outline-none focus:ring-4 focus:ring-[#2557D6]/50 dark:focus:ring-[#2557D6]/50",onClick:o=>this.invoiceData.billing(a)},[xk,ti(" Bill ")],8,wk),E("div",{class:Ce(["relative inline-flex h-10 w-10 items-center justify-center overflow-hidden rounded-full border hover:bg-blue-700 hover:text-white focus:outline-none focus:ring-4 focus:ring-blue-300 dark:border-blue-500 dark:text-blue-500 dark:hover:bg-blue-500 dark:hover:text-white dark:focus:ring-blue-800",[{"border-blue-700 text-blue-700":!this.auth.restrictTableOrder,"pointer-events-none border-blue-400 text-blue-400":this.auth.restrictTableOrder}]]),onClick:o=>!this.auth.restrictTableOrder&&this.table.routeToCart(a)},Ek,10,Sk)])):ue("",!0)])]))),128))])])}const kk=dr(ZC,[["render",Ck]]);const Ak={name:"Table",components:{takeAwayTable:kk},setup(){const e=Ts(),t=fr(),r=Lt();return{table:e,invoiceData:t,auth:r}}},At=e=>(V0("data-v-80551b1d"),e=e(),U0(),e),Pk={class:"switch-wrapper mt-2"},Tk=At(()=>E("label",{for:"Table",class:"switch-label text-center"},"Table",-1)),Dk=At(()=>E("label",{for:"take_away",class:"switch-label text-center"},"Takeaway",-1)),Fk=At(()=>E("span",{class:"highlighter"},null,-1)),Ok={key:0,class:"m-auto"},Rk={class:"flow-root"},Ik={key:0,class:"fixed inset-0 z-50 flex items-center justify-center bg-gray-300 bg-opacity-50 text-lg"},Nk={class:"grid grid-cols-2 gap-4 md:grid-cols-4 lg:grid-cols-5"},Mk={class:"flex justify-between"},Bk={class:"flex justify-start px-2 pt-2"},$k={key:0,class:"relative"},Hk=["onClick"],jk=At(()=>E("svg",{class:"h-6 w-6","aria-hidden":"true",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[E("path",{d:"M6 10a2 2 0 11-4 0 2 2 0 014 0zM12 10a2 2 0 11-4 0 2 2 0 014 0zM16 12a2 2 0 100-4 2 2 0 000 4z"})],-1)),Lk=[jk],Vk={class:"absolute right-0 z-10 w-36 divide-y divide-gray-100 rounded-lg bg-white shadow dark:bg-gray-700"},Uk={class:"py-2"},qk=["onClick"],Kk={key:0},Yk=["onClick"],zk={class:"flex flex-col pb-4"},Wk=["onClick"],Gk={class:"text-sm text-gray-500 dark:text-gray-400"},Jk={key:0,class:"mt-8 text-center"},Xk=["onClick"],Zk=At(()=>E("svg",{class:"ml-2 h-6 w-6 dark:text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[E("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13 9l3 3m0 0l-3 3m3-3H8m13 0a9 9 0 11-18 0 9 9 0 0118 0z"})],-1)),Qk={key:1,class:"mt-2 flex justify-center"},eA=["onClick"],tA=At(()=>E("svg",{class:"svg-icon mr-2",viewBox:"0 0 24 24",width:"18",height:"18",fill:"white"},[E("path",{d:"M6 19H3a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1h3V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v4h3a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1h-3v2a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1v-2zm0-2v-1a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v1h2V9H4v8h2zM8 4v3h8V4H8zm0 13v3h8v-3H8zm-3-7h3v2H5v-2z"})],-1)),rA=["onClick"],nA=At(()=>E("svg",{"aria-hidden":"true",class:"h-10 w-6",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[E("path",{d:"M10 12a2 2 0 100-4 2 2 0 000 4z"}),E("path",{"fill-rule":"evenodd",d:"M.458 10C1.732 5.943 5.522 3 10 3s8.268 2.943 9.542 7c-1.274 4.057-5.064 7-9.542 7S1.732 14.057.458 10zM14 10a4 4 0 11-8 0 4 4 0 018 0z","clip-rule":"evenodd"})],-1)),sA=[nA],iA={key:1,class:"container m-auto"},aA={key:2,class:"fixed inset-0 z-10 overflow-y-auto bg-gray-100"},oA={class:"mt-20 flex items-center justify-center"},uA={class:"mt-10 w-full rounded-lg bg-white p-6 shadow-lg md:max-w-md"},lA={class:"flex justify-end"},cA=At(()=>E("span",{class:"sr-only"},"Close",-1)),hA=At(()=>E("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"},null,-1)),fA=[hA],dA=At(()=>E("h2",{class:"mt-1 block text-left text-xl font-medium text-gray-900 dark:text-white"}," Table Transfer ",-1)),pA={class:"relative",ref:"container"},gA=At(()=>E("label",{for:"newTable",class:"mt-6 block text-left text-gray-900 dark:text-white"}," New Table ",-1)),mA={key:0,class:"absolute left-0 top-full z-10 max-h-64 w-full overflow-y-scroll rounded bg-white shadow",ref:"dropdown"},vA=["onClick"],yA={class:"text-base font-semibold leading-normal"},bA=At(()=>E("label",{for:"newTable",class:"mt-6 block text-left text-gray-900 dark:text-white"}," Current Table ",-1)),wA=["value"],xA={class:"flex justify-end"},SA={key:3,class:"fixed inset-0 z-10 overflow-y-auto bg-gray-100"},_A={class:"mt-20 flex items-center justify-center"},EA={class:"mt-10 w-full rounded-lg bg-white p-6 shadow-lg md:max-w-md"},CA={class:"flex justify-end"},kA=At(()=>E("span",{class:"sr-only"},"Close",-1)),AA=At(()=>E("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"},null,-1)),PA=[AA],TA=At(()=>E("h2",{class:"mt-1 block text-left text-xl font-medium text-gray-900 dark:text-white"}," Captain Transfer ",-1)),DA={class:"relative",ref:"container"},FA=At(()=>E("label",{for:"newTable",class:"mt-6 block text-left text-gray-900 dark:text-white"}," New Captain ",-1)),OA={key:0,class:"absolute left-0 top-full z-10 max-h-64 w-full overflow-y-scroll rounded bg-white shadow",ref:"dropdown"},RA=["onClick"],IA={class:"text-base font-semibold leading-normal"},NA=At(()=>E("label",{for:"newTable",class:"mt-6 block text-left text-gray-900 dark:text-white"}," Current Captain ",-1)),MA=["value"],BA={class:"flex justify-end"};function $A(e,t,r,n,s,i){const a=$t("takeAwayTable");return H(),V(Te,null,[E("div",Pk,[_e(E("input",{id:"Table",type:"radio",name:"switch","onUpdate:modelValue":t[0]||(t[0]=o=>this.table.selectedOption=o),value:"Table"},null,512),[[Vl,this.table.selectedOption]]),_e(E("input",{id:"take_away",type:"radio",name:"switch","onUpdate:modelValue":t[1]||(t[1]=o=>this.table.selectedOption=o),value:"take_away"},null,512),[[Vl,this.table.selectedOption]]),Tk,Dk,Fk]),this.table.selectedOption==="Table"?(H(),V("div",Ok,[E("div",Rk,[this.invoiceData.isPrinting?(H(),V("div",Ik," Printing Invoice ")):ue("",!0),E("div",Nk,[(H(!0),V(Te,null,ht(this.table.filteredTables,o=>(H(),V("div",{"w-full":"",class:"w-full max-w-sm rounded border border-gray-200 bg-white shadow dark:border-gray-700 dark:bg-gray-800",key:o.name},[E("div",Mk,[E("div",Bk,[E("span",{class:Ce(["me-2 rounded px-2.5 py-0.5 text-sm font-medium",{"bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-300":this.table.getBadgeType(o)==="red","bg-blue-100 text-blue-800 dark:bg-blue-900 dark:text-blue-300":this.table.getBadgeType(o)==="default","bg-yellow-100 text-yellow-800":this.table.getBadgeType(o)==="yellow","bg-green-100 text-green-800":this.table.getBadgeType(o)==="green"}])},ye(this.table.getBadgeText(o)),3)]),o.occupied===1?(H(),V("div",$k,[E("button",{class:"inline-block rounded-lg p-1.5 text-sm text-gray-500 dark:text-gray-400 dark:hover:bg-gray-700 dark:focus:ring-gray-700",type:"button",onClick:u=>this.table.toggleDropdown(o.name)},Lk,8,Hk),_e(E("div",Vk,[E("ul",Uk,[E("li",null,[E("a",{href:"#",class:"block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 dark:text-gray-200 dark:hover:bg-gray-600 dark:hover:text-white",onClick:u=>this.table.showModal=!0},"Table Transfer",8,qk)]),this.auth.hasAccess?(H(),V("li",Kk,[E("a",{href:"#",class:"block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 dark:text-gray-200 dark:hover:bg-gray-600 dark:hover:text-white",onClick:u=>this.table.showModalCaptainTransfer=!0},"Captain Transfer",8,Yk)])):ue("",!0)])],512),[[Vc,this.table.activeDropdown===o.name]])])):ue("",!0)]),E("div",zk,[E("div",{class:"mt-1 text-center",onClick:u=>o.occupied===1&&!this.auth.restrictTableOrder?this.table.routeToMenu(o):""},[E("h5",{class:Ce(["mt-2 text-xl font-medium text-gray-900 dark:text-white",{"mt-3":o.occupied===0}])},ye(o.name),3),E("span",Gk,ye(o.occupied===1?this.table.getTimeDifference(o):""),1)],8,Wk),o.occupied!=1?(H(),V("div",Jk,[E("button",{type:"button",class:Ce(["inline-flex items-center rounded px-2 py-2.5 text-center text-sm font-medium text-white hover:bg-[#2557D6]/90 focus:outline-none focus:ring-4 focus:ring-[#2557D6]/50 dark:focus:ring-[#2557D6]/50",[{"bg-blue-700":!this.auth.restrictTableOrder,"pointer-events-none bg-blue-400":this.auth.restrictTableOrder}]]),onClick:u=>!this.auth.restrictTableOrder&&this.table.addToSelectedTables(o)},[ti(" Open Table "),Zk],10,Xk)])):ue("",!0),o.occupied===1?(H(),V("div",Qk,[E("button",{type:"button",class:"mb-2 me-2 inline-flex items-center rounded bg-blue-700 px-5 py-2.5 text-center text-sm font-medium text-white hover:bg-[#2557D6]/90 focus:outline-none focus:ring-4 focus:ring-[#2557D6]/50 dark:focus:ring-[#2557D6]/50",onClick:u=>this.invoiceData.billing(o)},[tA,ti(" Bill ")],8,eA),E("div",{class:Ce(["relative inline-flex h-10 w-10 items-center justify-center overflow-hidden rounded-full border hover:bg-blue-700 hover:text-white focus:outline-none focus:ring-4 focus:ring-blue-300 dark:border-blue-500 dark:text-blue-500 dark:hover:bg-blue-500 dark:hover:text-white dark:focus:ring-blue-800",[{"border-blue-700 text-blue-700":!this.auth.restrictTableOrder,"pointer-events-none border-blue-400 text-blue-400":this.auth.restrictTableOrder}]]),onClick:u=>!this.auth.restrictTableOrder&&this.table.routeToCart(o)},sA,10,rA)])):ue("",!0)])]))),128))])])])):ue("",!0),this.table.selectedOption==="take_away"?(H(),V("div",iA,[q(a)])):ue("",!0),n.table.showModal?(H(),V("div",aA,[E("div",oA,[E("div",uA,[E("div",lA,[cA,(H(),V("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",onClick:t[2]||(t[2]=o=>this.table.showModal=!1)},fA))]),dA,E("div",pA,[gA,_e(E("input",{type:"text",class:"mt-4 w-full appearance-none rounded border p-2 leading-tight text-gray-900 shadow focus:outline-none","onUpdate:modelValue":t[3]||(t[3]=o=>n.table.newTable=o),onClick:t[4]||(t[4]=o=>{this.table.showTable=!0,this.table.tableSearch()})},null,512),[[Ae,n.table.newTable]]),this.table.showTable?(H(),V("div",mA,[(H(!0),V(Te,null,ht(this.table.searchTable,(o,u)=>(H(),V("div",{class:"h-16 w-full rounded-lg p-4 hover:bg-gray-100",key:u,onClick:l=>this.table.selectTable(o)},[E("h1",yA,ye(o.name),1)],8,vA))),128))],512)):ue("",!0)],512),bA,E("input",{type:"text",id:"newTable",class:"mt-4 w-full appearance-none rounded border p-2 leading-tight text-gray-900 shadow focus:outline-none",value:n.table.tableName,readonly:""},null,8,wA),E("div",xA,[E("button",{onClick:t[5]||(t[5]=o=>{this.table.showModal=!1,this.table.tableTransfer(n.table)}),class:"mt-8 rounded bg-blue-500 px-3 py-2 text-white hover:bg-blue-600"}," Transfer ")])])])])):ue("",!0),n.table.showModalCaptainTransfer?(H(),V("div",SA,[E("div",_A,[E("div",EA,[E("div",CA,[kA,(H(),V("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",onClick:t[6]||(t[6]=o=>n.table.showModalCaptainTransfer=!1)},PA))]),TA,E("div",DA,[FA,_e(E("input",{type:"text",class:"mt-4 w-full appearance-none rounded border p-2 leading-tight text-gray-900 shadow focus:outline-none",onClick:t[7]||(t[7]=o=>{this.table.showCaptain=!0,this.table.fetchCaptain()}),"onUpdate:modelValue":t[8]||(t[8]=o=>this.table.newCaptain=o)},null,512),[[Ae,this.table.newCaptain]]),this.table.showCaptain?(H(),V("div",OA,[(H(!0),V(Te,null,ht(this.table.captain,(o,u)=>(H(),V("div",{class:"h-16 w-full rounded-lg p-4 hover:bg-gray-100",key:u,onClick:l=>this.table.selectcaptain(o)},[E("h1",IA,ye(o.name),1)],8,RA))),128))],512)):ue("",!0)],512),NA,E("input",{type:"text",id:"newTable",class:"mt-4 w-full appearance-none rounded border p-2 leading-tight text-gray-900 shadow focus:outline-none",value:this.table.currentCaptain,readonly:""},null,8,MA),E("div",BA,[E("button",{onClick:t[9]||(t[9]=o=>{this.table.showModalCaptainTransfer=!1,this.table.captianTransfer()}),class:"mt-8 rounded bg-blue-500 px-3 py-2 text-white hover:bg-blue-600"}," Transfer ")])])])])):ue("",!0)],64)}const yp=dr(Ak,[["render",$A],["__scopeId","data-v-80551b1d"]]),HA={name:"Customer",setup(){return{customers:hu()}}},jA={class:"container m-auto"},LA={class:"mb-6 gap-6 md:grid-cols-2"},VA={class:"relative mt-5",ref:"container"},UA=E("div",{class:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3"},[E("svg",{"aria-hidden":"true",class:"h-5 w-5 text-gray-500 dark:text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[E("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})])],-1),qA={key:0,class:"absolute left-0 top-full z-10 max-h-64 w-full overflow-y-scroll rounded bg-white shadow md:w-3/5 lg:w-2/5",ref:"dropdown"},KA=["onClick"],YA={class:"text-base font-semibold leading-normal"},zA={class:"text-sm leading-normal"},WA={key:0},GA=E("svg",{fill:"none",stroke:"currentColor",class:"h-8 w-8 font-extrabold",viewBox:"0 0 25 25",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},[E("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 6v12m6-6H6"})],-1),JA={key:0,class:"fixed inset-0 z-10 mt-20 overflow-y-auto bg-gray-100"},XA={class:"mt-10 mb-16 flex items-center justify-center"},ZA={class:"w-full rounded-lg bg-white p-6 shadow-lg md:max-w-md"},QA={class:"flex justify-end"},e8=E("span",{class:"sr-only"},"Close",-1),t8=E("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"},null,-1),r8=[t8],n8=E("h2",{class:"mt-1 block text-left text-xl font-medium text-gray-900 dark:text-white"}," New Customer ",-1),s8=E("label",{for:"newCustomer",class:"mt-6 block text-left text-gray-900 dark:text-white"}," Customer Name ",-1),i8=E("label",{for:"mobileNumber",class:"mt-6 block text-left text-gray-900 dark:text-white"}," Mobile Number ",-1),a8={class:"relative mt-5",ref:"container"},o8=E("label",{for:"customerGroup",class:"mt-6 block text-left text-gray-900 dark:text-white"}," Customer Group ",-1),u8={key:0,class:"absolute left-0 top-full z-10 max-h-64 w-full overflow-y-scroll rounded bg-white shadow",ref:"dropdown"},l8=["onClick"],c8={class:"text-base font-semibold leading-normal"},h8={class:"relative mt-5",ref:"container"},f8=E("label",{for:"territory",class:"mt-6 block text-left text-gray-900 dark:text-white"}," Territory ",-1),d8={key:0,class:"absolute left-0 top-full z-10 max-h-64 w-full overflow-y-scroll rounded bg-white shadow",ref:"dropdown"},p8=["onClick"],g8={class:"text-base font-semibold leading-normal"},m8={class:"flex justify-end"},v8={class:"relative mb-6 mt-6"},y8=E("div",{class:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3"},[E("svg",{class:"h-6 w-6 text-gray-500 group-hover:text-blue-600 dark:text-gray-400 dark:group-hover:text-blue-500",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},[E("path",{"fill-rule":"evenodd",d:"M10 9a3 3 0 100-6 3 3 0 000 6zm-7 9a7 7 0 1114 0H3z","clip-rule":"evenodd"})])],-1),b8={key:1,class:"tex mt-10 text-xl font-semibold"},w8={key:2,class:"cart-item-details mt-1 grid grid-cols-4 gap-2 py-2 sm:w-full md:w-full lg:w-full"},x8=E("h3",{class:"font-semibold"},"Item Name",-1),S8=E("h3",{class:"font-semibold"},"Quantity",-1),_8=[x8,S8],E8=E("img",null,null,-1),C8={class:"cart-item-details sm:min-w-none grid w-full min-w-0 grid-cols-4 gap-2 py-2 sm:w-full md:w-full lg:w-full"},k8={class:"ml-4"};function A8(e,t,r,n,s,i){return H(),V("div",jA,[E("div",LA,[E("div",VA,[UA,_e(E("input",{type:"search",class:"block w-full rounded-lg border border-gray-300 bg-gray-50 p-2.5 pl-10 text-sm text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-blue-500 dark:focus:ring-blue-500 md:w-3/5 lg:w-2/5",placeholder:"Search Customers","onUpdate:modelValue":t[0]||(t[0]=a=>this.customers.search=a),onInput:t[1]||(t[1]=(...a)=>this.customers.handleSearchInput&&this.customers.handleSearchInput(...a)),onClick:t[2]||(t[2]=a=>{this.customers.showCustomers=!0,this.customers.showAddNewCustomer=!0}),required:""},null,544),[[Ae,this.customers.search]]),this.customers.showCustomers&&this.customers.showAddNewCustomer?(H(),V("div",qA,[(H(!0),V(Te,null,ht(this.customers.customer,(a,o)=>(H(),V("div",{class:"h-16 rounded-lg p-4 hover:bg-gray-100",key:o,onClick:u=>this.customers.selectCustomer(a)},[E("h1",YA,ye(a.name),1),E("h2",zA,ye(a.name)+" "+ye(a.content?this.customers.extractName(a.content):""),1)],8,KA))),128)),this.customers.showAddNewCustomer?(H(),V("div",WA,[E("a",{href:"#",class:"mt-4 inline-flex items-center text-blue-600 hover:underline",onClick:t[3]||(t[3]=tw(a=>this.customers.newCustomerData(this.customers.search),["prevent"]))},[GA,ti(" Create a New Customer ")])])):ue("",!0)],512)):ue("",!0)],512),this.customers.showModalNewCustomer?(H(),V("div",JA,[E("div",XA,[E("div",ZA,[E("div",QA,[e8,(H(),V("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",onClick:t[4]||(t[4]=a=>this.customers.showModalNewCustomer=!1)},r8))]),n8,s8,_e(E("input",{type:"text",id:"newCustomer",class:"mt-4 w-full rounded-lg border border-gray-300 bg-gray-50 text-sm text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-blue-500 dark:focus:ring-blue-500","onUpdate:modelValue":t[5]||(t[5]=a=>this.customers.newCustomer=a)},null,512),[[Ae,this.customers.newCustomer]]),i8,_e(E("input",{type:"number",id:"mobileNumber",class:"mt-4 w-full rounded-lg border border-gray-300 bg-gray-50 text-sm text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-blue-500 dark:focus:ring-blue-500","onUpdate:modelValue":t[6]||(t[6]=a=>this.customers.newCustomerMobileNo=a)},null,512),[[Ae,this.customers.newCustomerMobileNo]]),E("div",a8,[o8,_e(E("input",{type:"text",id:"customerGroup",class:"mt-4 w-full rounded-lg border border-gray-300 bg-gray-50 text-sm text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-blue-500 dark:focus:ring-blue-500","onUpdate:modelValue":t[7]||(t[7]=a=>this.customers.customerGroup=a),onClick:t[8]||(t[8]=a=>{this.customers.showCustomersGroup=!0,this.customers.pickCustomerGroup()}),required:""},null,512),[[Ae,this.customers.customerGroup]]),this.customers.showCustomersGroup?(H(),V("div",u8,[(H(!0),V(Te,null,ht(this.customers.customerGroupList,(a,o)=>(H(),V("div",{class:"h-12 rounded-lg p-4 hover:bg-gray-100",key:o,onClick:u=>this.customers.selectCustomerGroup(a)},[E("h1",c8,ye(a.name),1)],8,l8))),128))],512)):ue("",!0)],512),E("div",h8,[f8,_e(E("input",{type:"text",id:"territory",class:"mt-4 w-full rounded-lg border border-gray-300 bg-gray-50 text-sm text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-blue-500 dark:focus:ring-blue-500","onUpdate:modelValue":t[9]||(t[9]=a=>this.customers.customerTerritory=a),onClick:t[10]||(t[10]=a=>{this.customers.showCustomersTerritory=!0,this.customers.pickCustomerTerritory()}),required:""},null,512),[[Ae,this.customers.customerTerritory]]),this.customers.showCustomersTerritory?(H(),V("div",d8,[(H(!0),V(Te,null,ht(this.customers.customerTerritoryList,(a,o)=>(H(),V("div",{class:"h-12 rounded-lg p-4 hover:bg-gray-100",key:o,onClick:u=>this.customers.selectCustomerTerritory(a)},[E("h1",g8,ye(a.name),1)],8,p8))),128))],512)):ue("",!0)],512),E("div",m8,[E("button",{onClick:t[11]||(t[11]=a=>this.customers.addNewCustomer()),class:"mt-8 rounded bg-blue-500 px-3 py-2 text-white hover:bg-blue-600"}," Save ")])])])])):ue("",!0),E("div",v8,[y8,_e(E("input",{type:"text",id:"input-group-1",class:"block w-full rounded-lg border border-gray-300 bg-gray-50 p-2.5 pl-10 text-sm text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-blue-500 dark:focus:ring-blue-500 md:w-3/5 lg:w-2/5",placeholder:"Pax",required:"","onUpdate:modelValue":t[12]||(t[12]=a=>this.customers.numberOfPax=a)},null,512),[[Ae,this.customers.numberOfPax]])]),this.customers.customerFavouriteItems.length>0?(H(),V("h1",b8," Favourite Items ")):ue("",!0),this.customers.customerFavouriteItems.length>0?(H(),V("div",w8,_8)):ue("",!0),(H(!0),V(Te,null,ht(this.customers.customerFavouriteItems,(a,o)=>(H(),V("div",{key:o},[E8,E("div",C8,[E("h3",null,ye(a.item_name),1),E("h3",k8,ye(a.qty),1)])]))),128))])])}const P8=dr(HA,[["render",A8]]),T8={setup(){return{menu:Es()}}},D8={class:"flex flex-col md:flex-row mt-2"},F8=E("div",{class:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3"},[E("svg",{"aria-hidden":"true",class:"h-5 w-5 text-gray-500 dark:text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[E("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})])],-1),O8={key:0,class:"mt-2 flex flex-row md:ml-2 md:mt-0 md:w-1/3"};function R8(e,t,r,n,s,i){return H(),V("div",D8,[E("div",{class:Ce(["relative",[{"md:w-2/3":this.menu.showPriority==!0,"md:w-full":this.menu.showPriority==!1}]])},[F8,_e(E("input",{type:"search",id:"default-search",class:"block w-full rounded-lg border border-gray-300 bg-gray-50 pl-10 text-sm text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-blue-500 dark:focus:ring-blue-500",placeholder:"Item Search","onUpdate:modelValue":t[0]||(t[0]=a=>this.menu.searchTerm=a),onInput:t[1]||(t[1]=(...a)=>this.menu.handleSearchInput&&this.menu.handleSearchInput(...a)),onClick:t[2]||(t[2]=(...a)=>this.menu.clearSearch&&this.menu.clearSearch(...a)),autocapitalize:"none"},null,544),[[Ae,this.menu.searchTerm]])],2),this.menu.showPriority==!0?(H(),V("div",O8,[E("button",{class:"focus:shadow-outline w-1/2 rounded bg-blue-700 px-4 py-2 font-bold text-white hover:bg-blue-900 focus:outline-none",type:"button",onClick:t[3]||(t[3]=(...a)=>this.menu.showSpecialItems&&this.menu.showSpecialItems(...a))}," Priority "),E("button",{class:"focus:shadow-outline ml-2 w-1/2 rounded bg-blue-700 px-4 py-2 font-bold text-white hover:bg-blue-900 focus:outline-none",type:"button",onClick:t[4]||(t[4]=(...a)=>this.menu.showAllItems&&this.menu.showAllItems(...a))}," All ")])):ue("",!0)])}const I8=dr(T8,[["render",R8]]);const N8={setup(){const e=Es(),t=Lt(),r=ai();return{menu:e,auth:t,recentOrders:r}},name:"Menu",components:{Search:I8},mounted(){window.scrollTo(0,0)}},M8={key:0,class:"container mx-auto"},B8={class:"mt-8 grid grid-cols-2 gap-4 md:grid-cols-3 lg:grid-cols-5"},$8={class:"mb-2 mt-0 text-lg font-normal leading-normal"},H8={class:"mb-2 mt-0 text-lg font-normal leading-normal"},j8={key:0},L8=["onClick"],V8={key:1,class:"flex rounded-md"},U8=["onClick"],q8=["value","onInput","onClick"],K8=["onClick"],Y8={key:0,class:"fixed inset-0 z-10 mt-20 overflow-y-auto bg-gray-100"},z8={class:"mt-10 flex items-center justify-center"},W8={class:"w-full rounded-lg bg-white p-6 shadow-lg md:max-w-md"},G8={class:"flex justify-end"},J8=E("span",{class:"sr-only"},"Close",-1),X8=E("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"},null,-1),Z8=[X8],Q8=E("h2",{class:"mt-1 block text-left text-xl font-medium text-gray-900 dark:text-white"}," Enter Details ",-1),eP={class:"relative"},tP=E("label",{for:"quantity",class:"mt-6 block text-left text-gray-900 dark:text-white"}," Quantity ",-1),rP=["readonly"],nP=E("label",{for:"paidAmount",class:"mt-6 block text-left text-gray-900 dark:text-white"}," Comments ",-1),sP={class:"flex justify-end"},iP={key:1},aP={key:0,class:"flex h-screen items-center justify-center"},oP=E("div",{class:"text-center"}," No items found. Please select a table or set an active menu. ",-1),uP=[oP],lP={key:1,class:"flex h-screen items-center justify-center"},cP=E("div",{class:"text-center"},"No items found.",-1),hP=[cP],fP={key:2,class:"mt-4 flex justify-center"},dP=["disabled"],pP=["onClick"],gP={key:1},mP=["disabled"];function vP(e,t,r,n,s,i){const a=$t("Search");return H(),V(Te,null,[q(a),this.menu.paginatedItems.length>0?(H(),V("div",M8,[E("div",B8,[(H(!0),V(Te,null,ht(this.menu.paginatedItems,o=>(H(),V("div",{class:"rounded-md border px-2 py-2 text-center shadow",key:o.item},[E("h2",$8,ye(o.item_name),1),E("h2",H8," ₹ "+ye(o.rate),1),o.qty?ue("",!0):(H(),V("div",j8,[E("button",{onClick:u=>{o.showInput=!0,this.menu.addToCart(o)},class:"rounded border px-10 pb-2 pt-2.5 text-xs font-medium leading-normal"}," ADD + ",8,L8)])),o.qty?(H(),V("div",V8,[E("button",{type:"button",class:Ce(["-ml-px inline-flex items-center justify-center gap-2 border bg-white px-4 py-3 align-middle text-sm font-medium shadow-sm transition-all focus:outline-none dark:border-gray-700",{"text-gray-700":this.recentOrders.editPrintedInvoice===0||this.auth.removeTableOrderItem===1,"text-gray-300":this.recentOrders.editPrintedInvoice===1||this.auth.removeTableOrderItem===0}]),onClick:u=>(this.recentOrders.editPrintedInvoice===0||this.auth.removeTableOrderItem===1)&&this.menu.decrementItemQuantity(o)}," - ",10,U8),E("input",{type:"number",id:"qty_input",name:"qty_input",class:"block w-full border border-gray-200 text-center text-sm shadow-sm",value:o.qty,onInput:u=>o.qty=u.target.value,readonly:"",onClick:u=>this.menu.showModal(o)},null,40,q8),E("button",{type:"button",class:"-ml-px inline-flex items-center justify-center gap-2 border bg-white px-4 py-3 align-middle text-sm font-medium text-gray-700 shadow-sm transition-all focus:outline-none dark:border-gray-700",onClick:u=>this.menu.incrementItemQuantity(o)}," + ",8,K8)])):ue("",!0)]))),128)),n.menu.showDialog?(H(),V("div",Y8,[E("div",z8,[E("div",W8,[E("div",G8,[J8,(H(),V("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",onClick:t[0]||(t[0]=o=>n.menu.showDialog=!1)},Z8))]),Q8,E("div",eP,[tP,_e(E("input",{type:"number",id:"modeOfPayment",class:"mt-4 w-full appearance-none rounded border p-2 leading-tight text-gray-900 shadow focus:outline-none","onUpdate:modelValue":t[1]||(t[1]=o=>this.menu.quantity=o),readonly:this.recentOrders.editPrintedInvoice===1&&this.auth.removeTableOrderItem===0},null,8,rP),[[Ae,this.menu.quantity]]),nP,_e(E("input",{type:"text",id:"Comments",class:"mt-4 w-full rounded border p-2 leading-tight text-gray-900 shadow focus:outline-none","onUpdate:modelValue":t[2]||(t[2]=o=>this.menu.itemComments=o)},null,512),[[Ae,this.menu.itemComments]])]),E("div",sP,[E("button",{onClick:t[3]||(t[3]=o=>this.menu.addToCartAndUpdateQty(e.item)),class:"mt-8 rounded bg-blue-500 px-3 py-2 text-white hover:bg-blue-600"}," Add ")])])])])):ue("",!0)])])):(H(),V("div",iP,[this.menu.items.length===0?(H(),V("div",aP,uP)):(H(),V("div",lP,hP))])),this.menu.paginatedItems.length>0?(H(),V("div",fP,[E("button",{class:Ce([{hidden:this.menu.currentPage===1},"mr-2 rounded-md border px-2 py-1"]),disabled:this.menu.currentPage===1,onClick:t[4]||(t[4]=o=>this.menu.currentPage-=1)}," Previous ",10,dP),(H(!0),V(Te,null,ht(this.menu.pageNumbers,o=>(H(),V("div",null,[o===this.menu.currentPage||Math.abs(o-this.menu.currentPage)<=2?(H(),V("button",{key:o,onClick:u=>this.menu.currentPage=o,class:Ce([{"bg-gray-200":o===this.menu.currentPage},"mr-2 rounded-md border px-2 py-1"])},ye(o),11,pP)):this.menu.pageNumbers.indexOf(o)===0||this.menu.pageNumbers.indexOf(o)===this.menu.pageNumbers.length-1?(H(),V("span",gP," ... ")):ue("",!0)]))),256)),E("button",{disabled:this.menu.currentPage===this.menu.totalPages,onClick:t[5]||(t[5]=o=>this.menu.currentPage+=1),class:Ce([{hidden:this.menu.currentPage===this.menu.totalPages},"rounded-md border px-2 py-1"])}," Next ",10,mP)])):ue("",!0)],64)}const yP=dr(N8,[["render",vP]]);const bP={name:"Cart",setup(){const e=Es(),t=Ts(),r=Lt(),n=ai(),s=fr();return{menu:e,table:t,invoiceData:s,auth:r,recentOrders:n}},mounted(){window.scrollTo(0,0)}},wP={key:0,class:"float-right rounded px-4 py-2"},xP={key:1,class:"flex h-screen items-center justify-center"},SP=E("div",{class:"text-center"},"Nothing to show here",-1),_P=[SP],EP={key:2,class:"mt-20 border shadow"},CP=E("div",{class:"cart-item-details grid w-full grid-cols-3 gap-4 md:w-full lg:w-full"},[E("h3",{class:"ml-3 mt-2 text-base font-semibold text-gray-900 dark:text-white"}," Item Name "),E("h3",{class:"ml-3 mt-2 text-center text-lg font-semibold text-gray-900 dark:text-white"}," Quantity ")],-1),kP={class:"w-full text-base text-gray-900 dark:text-white"},AP=["value","onInput","onClick"],PP={class:"items-center text-center"},TP=["onClick"],DP=E("path",{d:"M5.5 5.5A.5.5 0 0 1 6 6v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5Zm2.5 0a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5Zm3 .5a.5.5 0 0 0-1 0v6a.5.5 0 0 0 1 0V6Z"},null,-1),FP=E("path",{d:"M14.5 3a1 1 0 0 1-1 1H13v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V4h-.5a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1H6a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1h3.5a1 1 0 0 1 1 1v1ZM4.118 4 4 4.059V13a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V4.059L11.882 4H4.118ZM2.5 3h11V2h-11v1Z"},null,-1),OP=[DP,FP],RP={key:3,class:"relative mt-8"},IP=E("label",{for:"Comments",class:"mt-6 block text-left text-gray-900 dark:text-white"}," Comments ",-1),NP={key:4,class:"fixed inset-0 z-10 mt-20 overflow-y-auto bg-gray-100"},MP={class:"mt-20 flex items-center justify-center"},BP={class:"w-full rounded-lg bg-white p-6 shadow-lg md:max-w-md"},$P={class:"flex justify-end"},HP=E("span",{class:"sr-only"},"Close",-1),jP=E("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"},null,-1),LP=[jP],VP=E("h2",{class:"mt-1 block text-left text-xl font-medium text-gray-900 dark:text-white"}," Are you sure to cancel ",-1),UP={class:"relative"},qP=E("label",{for:"cancelReason",class:"mt-6 block text-left text-gray-900 dark:text-white"}," Reason ",-1),KP={class:"flex justify-end"},YP={key:5,class:"fixed inset-0 z-10 mt-20 overflow-y-auto bg-gray-100"},zP={class:"mt-10 flex items-center justify-center"},WP={class:"w-full rounded-lg bg-white p-6 shadow-lg md:max-w-md"},GP={class:"flex justify-end"},JP=E("span",{class:"sr-only"},"Close",-1),XP=E("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"},null,-1),ZP=[XP],QP=E("h2",{class:"mt-1 block text-left text-xl font-medium text-gray-900 dark:text-white"}," Enter Details ",-1),eT={class:"relative"},tT=E("label",{for:"quantity",class:"mt-6 block text-left text-gray-900 dark:text-white"}," Quantity ",-1),rT=["readonly"],nT=E("label",{for:"Comments",class:"mt-6 block text-left text-gray-900 dark:text-white"}," Comments ",-1),sT={class:"flex justify-end"},iT={key:6,class:"mt-4 w-full divide-y divide-gray-200 bg-white"},aT=E("summary",{class:"question w-full cursor-pointer select-none py-3"}," Additional Details ",-1),oT={class:"additional-details m-3"},uT={key:0,for:"grand_total",class:"grand_total mt-10 block text-sm font-medium text-gray-900 dark:text-white"},lT=["value"],cT={key:2,for:"invoiceNo",class:"mt-10 block text-sm font-medium text-gray-900 dark:text-white"},hT=["value"],fT=["value"];function dT(e,t,r,n,s,i){return H(),V(Te,null,[this.menu.cart.length>0?(H(),V("div",wP,[this.invoiceData.showUpdateButtton===!0?(H(),V("button",{key:0,class:"mr-4 rounded px-4 py-2 shadow",onClick:t[0]||(t[0]=a=>this.invoiceData.invoiceCreation())}," Update ")):ue("",!0),(this.recentOrders.invoicePrinted===0||this.table.invoicePrinted===0)&&!this.auth.cashier?(H(),V("button",{key:1,class:"rounded px-4 py-2 shadow",onClick:t[1]||(t[1]=a=>this.invoiceData.showCancelInvoiceModal())}," Cancel ")):ue("",!0)])):ue("",!0),this.menu.cart.length===0?(H(),V("div",xP,_P)):ue("",!0),this.menu.cart.length>0?(H(),V("div",EP,[CP,(H(!0),V(Te,null,ht(this.menu.cart,(a,o)=>(H(),V("div",{class:"cart-item-details ml-3 mt-2 grid w-full grid-cols-3 gap-4 pb-2 md:w-full lg:w-full",key:o},[E("h3",kP,ye(a.item_name),1),E("input",{type:"number",id:"qty_input_cart",name:"qty_input_cart",class:"block w-full border-none text-center text-base text-gray-900 dark:text-white",value:parseInt(a.qty),onInput:u=>a.qty=u.target.value,onClick:u=>{this.menu.showModal(a),n.menu.showDialogCart=!0},readonly:""},null,40,AP),E("div",PP,[E("button",{class:"p-2 text-center",type:"button",onClick:u=>(this.recentOrders.editPrintedInvoice===0||this.auth.removeTableOrderItem===1)&&this.menu.removeItemFromCart(o)},[(H(),V("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25",height:"25",style:Fn({fill:this.menu.setColorForBilledInvoice}),class:"bi bi-trash",viewBox:"0 0 16 16"},OP,4))],8,TP)])]))),128))])):ue("",!0),this.menu.cart.length>0?(H(),V("div",RP,[IP,_e(E("input",{id:"comments",class:"comments mt-3 block w-full rounded-md border bg-gray-50 p-2.5 text-sm text-gray-900 md:w-3/5 lg:w-2/5","onUpdate:modelValue":t[2]||(t[2]=a=>this.menu.comments=a)},null,512),[[Ae,this.menu.comments]])])):ue("",!0),this.invoiceData.cancelInvoiceFlag===!0?(H(),V("div",NP,[E("div",MP,[E("div",BP,[E("div",$P,[HP,(H(),V("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",onClick:t[3]||(t[3]=a=>this.invoiceData.cancelInvoiceFlag=!1)},LP))]),VP,E("div",UP,[qP,_e(E("input",{type:"text",id:"cancelReason",class:"mt-4 w-full appearance-none rounded border p-2 leading-tight text-gray-900 shadow focus:outline-none","onUpdate:modelValue":t[4]||(t[4]=a=>this.invoiceData.cancelReason=a)},null,512),[[Ae,this.invoiceData.cancelReason]])]),E("div",KP,[E("button",{onClick:t[5]||(t[5]=a=>this.invoiceData.cancelInvoiceFlag=!1),class:"mr-3 mt-6 rounded border border-gray-300 bg-gray-50 px-3 py-2"}," No "),E("button",{onClick:t[6]||(t[6]=a=>{this.invoiceData.cancelInvoice(),this.invoiceData.cancelInvoiceFlag=!1}),class:"mt-6 rounded bg-blue-500 px-3 py-2 text-white hover:bg-blue-600"}," Yes ")])])])])):ue("",!0),n.menu.showDialogCart?(H(),V("div",YP,[E("div",zP,[E("div",WP,[E("div",GP,[JP,(H(),V("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",onClick:t[7]||(t[7]=a=>n.menu.showDialogCart=!1)},ZP))]),QP,E("div",eT,[tT,_e(E("input",{type:"number",id:"modeOfPayment",class:"mt-4 w-full appearance-none rounded border p-2 leading-tight text-gray-900 shadow focus:outline-none","onUpdate:modelValue":t[8]||(t[8]=a=>this.menu.quantity=a),readonly:this.recentOrders.editPrintedInvoice===1&&this.auth.removeTableOrderItem===0},null,8,rT),[[Ae,this.menu.quantity]]),nT,_e(E("input",{type:"text",id:"Comments",class:"mt-4 w-full appearance-none rounded border p-2 leading-tight text-gray-900 shadow focus:outline-none","onUpdate:modelValue":t[9]||(t[9]=a=>this.menu.itemComments=a)},null,512),[[Ae,this.menu.itemComments]])]),E("div",sT,[E("button",{onClick:t[10]||(t[10]=a=>{this.menu.addToCartAndUpdateQty(e.item),n.menu.showDialogCart=!1}),class:"mt-8 rounded bg-blue-500 px-3 py-2 text-white hover:bg-blue-600"}," Add ")])])])])):ue("",!0),this.menu.cart.length>0?(H(),V("div",iT,[E("details",null,[aT,E("div",oT,[this.table.grandTotal||n.invoiceData.grandTotal?(H(),V("label",uT," Grand Total ")):ue("",!0),this.table.grandTotal||n.invoiceData.grandTotal?(H(),V("input",{key:1,class:"block w-full rounded-md border bg-gray-50 p-2.5 text-sm text-gray-900 md:w-3/5 lg:w-2/5",value:this.table.grandTotal||n.invoiceData.grandTotal,readonly:""},null,8,lT)):ue("",!0),this.table.invoiceNo||n.invoiceData.invoiceNumber?(H(),V("label",cT," Invoice ")):ue("",!0),this.table.invoiceNo||n.invoiceData.invoiceNumber?(H(),V("input",{key:3,class:"invoiceNo mt-3 block w-full rounded-md border bg-gray-50 p-2.5 text-sm text-gray-900 md:w-3/5 lg:w-2/5",value:this.table.invoiceNo||n.invoiceData.invoiceNumber,readonly:""},null,8,hT)):ue("",!0),E("label",{for:"waiter",class:Ce(["mt-10 block text-sm font-medium text-gray-900 dark:text-white",{hidden:this.invoiceData.waiter===""}])}," Waiter ",2),E("input",{class:Ce(["waiter mt-3 block w-full rounded-md border bg-gray-50 p-2.5 text-sm text-gray-900 md:w-3/5 lg:w-2/5",{hidden:this.invoiceData.waiter===""}]),value:this.table.previousWaiter!==null&&this.table.previousWaiter!==void 0?this.table.previousWaiter:this.recentOrders.recentWaiter!==null&&this.recentOrders.recentWaiter!==void 0?this.recentOrders.recentWaiter:this.invoiceData.waiter,readonly:""},null,10,fT),E("label",{for:"posProfile",class:Ce(["mt-10 block text-sm font-medium text-gray-900 dark:text-white",{hidden:this.invoiceData.posProfile===""}])}," POS Profile ",2),_e(E("input",{class:Ce(["posProfile mt-3 block w-full rounded-md border bg-gray-50 p-2.5 text-sm text-gray-900 md:w-3/5 lg:w-2/5",{hidden:this.invoiceData.posProfile===""}]),"onUpdate:modelValue":t[11]||(t[11]=a=>this.invoiceData.posProfile=a),readonly:""},null,2),[[Ae,this.invoiceData.posProfile]]),E("label",{for:"cashier",class:Ce(["mt-10 block text-sm font-medium text-gray-900 dark:text-white",{hidden:this.invoiceData.cashier===""}])}," Cashier ",2),_e(E("input",{class:Ce(["mt-3 block w-full rounded-md border bg-gray-50 p-2.5 text-sm text-gray-900 md:w-3/5 lg:w-2/5",{hidden:this.invoiceData.cashier===""}]),"onUpdate:modelValue":t[12]||(t[12]=a=>this.invoiceData.cashier=a),readonly:""},null,2),[[Ae,this.invoiceData.cashier]])])])])):ue("",!0)],64)}const pT=dr(bP,[["render",dT]]);Br({});var P1={exports:{}};/*! + Copyright (c) 2018 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var n=[],s=0;st in e?yT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,xT=(e,t)=>{for(var r in t||(t={}))bT.call(t,r)&&Ep(e,r,t[r]);if(_p)for(var r of _p(t))wT.call(t,r)&&Ep(e,r,t[r]);return e};const ST={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};xT({linear:vT},ST);var _T=typeof global=="object"&&global&&global.Object===Object&&global;const ET=_T;var CT=typeof self=="object"&&self&&self.Object===Object&&self,kT=ET||CT||Function("return this")();const Oh=kT;var AT=Oh.Symbol;const Un=AT;var T1=Object.prototype,PT=T1.hasOwnProperty,TT=T1.toString,Ai=Un?Un.toStringTag:void 0;function DT(e){var t=PT.call(e,Ai),r=e[Ai];try{e[Ai]=void 0;var n=!0}catch(i){}var s=TT.call(e);return n&&(t?e[Ai]=r:delete e[Ai]),s}var FT=Object.prototype,OT=FT.toString;function RT(e){return OT.call(e)}var IT="[object Null]",NT="[object Undefined]",Cp=Un?Un.toStringTag:void 0;function Rh(e){return e==null?e===void 0?NT:IT:Cp&&Cp in Object(e)?DT(e):RT(e)}function Ih(e){return e!=null&&typeof e=="object"}var MT="[object Symbol]";function Nh(e){return typeof e=="symbol"||Ih(e)&&Rh(e)==MT}function BT(e,t){for(var r=-1,n=e==null?0:e.length,s=Array(n);++r0){if(++t>=oD)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function hD(e){return function(){return e}}var fD=function(){try{var e=Mh(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();const _o=fD;var dD=_o?function(e,t){return _o(e,"toString",{configurable:!0,enumerable:!1,value:hD(t),writable:!0})}:jT;const pD=dD;var gD=cD(pD);const mD=gD;var vD=9007199254740991,yD=/^(?:0|[1-9]\d*)$/;function F1(e,t){var r=typeof e;return t=t==null?vD:t,!!t&&(r=="number"||r!="symbol"&&yD.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=ED}var kD="[object Arguments]";function Dp(e){return Ih(e)&&Rh(e)==kD}var R1=Object.prototype,AD=R1.hasOwnProperty,PD=R1.propertyIsEnumerable,TD=Dp(function(){return arguments}())?Dp:function(e){return Ih(e)&&AD.call(e,"callee")&&!PD.call(e,"callee")};const I1=TD;var DD=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,FD=/^\w*$/;function OD(e,t){if(Sa(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Nh(e)?!0:FD.test(e)||!DD.test(e)||t!=null&&e in Object(t)}var RD=Mh(Object,"create");const ia=RD;function ID(){this.__data__=ia?ia(null):{},this.size=0}function ND(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var MD="__lodash_hash_undefined__",BD=Object.prototype,$D=BD.hasOwnProperty;function HD(e){var t=this.__data__;if(ia){var r=t[e];return r===MD?void 0:r}return $D.call(t,e)?t[e]:void 0}var jD=Object.prototype,LD=jD.hasOwnProperty;function VD(e){var t=this.__data__;return ia?t[e]!==void 0:LD.call(t,e)}var UD="__lodash_hash_undefined__";function qD(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ia&&t===void 0?UD:t,this}function bs(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1}function XD(e,t){var r=this.__data__,n=wu(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function vi(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t0&&r(o)?t>1?N1(o,t-1,r,n,s):mF(s,o):n||(s[s.length]=o)}return s}function yF(e){var t=e==null?0:e.length;return t?N1(e,1):[]}function bF(e){return mD(_D(e,void 0,yF),e+"")}function wF(e,t){return e!=null&&t in Object(e)}function xF(e,t,r){t=Su(t,e);for(var n=-1,s=t.length,i=!1;++ngT(FF[e.size.value],e.href.value?"":DF[e.type.value],e.href.value?"":TF[e.type.value],e.href.value?AF:"",t.isContentEmpty.value?PF:kF))}}const Hh=Er({__name:"Badge",props:{type:{type:String,default:"default"},size:{type:String,default:"xs"},href:{type:String,default:null}},setup(e){const t=e,r=Yy(),n=et(()=>!r.default),s=et(()=>t.href?"a":"span"),{badgeClasses:i}=OF(N0(t),{isContentEmpty:n});return(a,o)=>(H(),on(ky(In(s)),{class:Ce(In(i)),href:e.href},{default:Wt(()=>[ei(a.$slots,"icon"),ei(a.$slots,"default")]),_:3},8,["class","href"]))}});function cn(e){return e.split("-")[0]}function Zs(e){return e.split("-")[1]}function _a(e){return["top","bottom"].includes(cn(e))?"x":"y"}function jh(e){return e==="y"?"height":"width"}function Op(e){let{reference:t,floating:r,placement:n}=e;const s=t.x+t.width/2-r.width/2,i=t.y+t.height/2-r.height/2;let a;switch(cn(n)){case"top":a={x:s,y:t.y-r.height};break;case"bottom":a={x:s,y:t.y+t.height};break;case"right":a={x:t.x+t.width,y:i};break;case"left":a={x:t.x-r.width,y:i};break;default:a={x:t.x,y:t.y}}const o=_a(n),u=jh(o);switch(Zs(n)){case"start":a[o]=a[o]-(t[u]/2-r[u]/2);break;case"end":a[o]=a[o]+(t[u]/2-r[u]/2);break}return a}const RF=(e,t,r)=>Ee(void 0,null,function*(){const{placement:n="bottom",strategy:s="absolute",middleware:i=[],platform:a}=r;let o=yield a.getElementRects({reference:e,floating:t,strategy:s}),{x:u,y:l}=Op(gr(wt({},o),{placement:n})),c=n,f={};for(let h=0;h({name:"arrow",options:e,fn(r){return Ee(this,null,function*(){const{element:n,padding:s=0}=e!=null?e:{},{x:i,y:a,placement:o,rects:u,platform:l}=r;if(n==null)return{};const c=M1(s),f={x:i,y:a},h=cn(o),p=_a(h),d=jh(p),g=yield l.getDimensions({element:n}),m=p==="y"?"top":"left",y=p==="y"?"bottom":"right",w=u.reference[d]+u.reference[p]-f[p]-u.floating[d],C=f[p]-u.reference[p],k=yield l.getOffsetParent({element:n}),P=k?p==="y"?k.clientHeight||0:k.clientWidth||0:0,b=w/2-C/2,_=c[m],S=P-g[d]-c[y],x=P/2-g[d]/2+b,A=dc(_,x,S);return{data:{[p]:A,centerOffset:x-A}}})}}),BF={left:"right",right:"left",bottom:"top",top:"bottom"};function Eo(e){return e.replace(/left|right|bottom|top/g,t=>BF[t])}function B1(e,t){const r=Zs(e)==="start",n=_a(e),s=jh(n);let i=n==="x"?r?"right":"left":r?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=Eo(i)),{main:i,cross:Eo(i)}}const $F={start:"end",end:"start"};function pc(e){return e.replace(/start|end/g,t=>$F[t])}const HF=["top","right","bottom","left"],jF=HF.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);function LF(e,t,r){return(e?[...r.filter(n=>Zs(n)===e),...r.filter(n=>Zs(n)!==e)]:r.filter(n=>cn(n)===n)).filter(n=>e?Zs(n)===e||(t?pc(n)!==n:!1):!0)}const VF=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,fn(r){return Ee(this,null,function*(){var n,s,i,a,o,u;const{x:l,y:c,rects:f,middlewareData:h,placement:p}=r,N=e,{alignment:d=null,allowedPlacements:g=jF,autoAlignment:m=!0}=N,y=Os(N,["alignment","allowedPlacements","autoAlignment"]);if((n=h.autoPlacement)!=null&&n.skip)return{};const w=LF(d,m,g),C=yield _u(r,y),k=(s=(i=h.autoPlacement)==null?void 0:i.index)!=null?s:0,P=w[k],{main:b,cross:_}=B1(P,f);if(p!==P)return{x:l,y:c,reset:{placement:w[0]}};const S=[C[cn(P)],C[b],C[_]],x=[...(a=(o=h.autoPlacement)==null?void 0:o.overflows)!=null?a:[],{placement:P,overflows:S}],A=w[k+1];if(A)return{data:{index:k+1,overflows:x},reset:{placement:A}};const T=x.slice().sort((F,R)=>F.overflows[0]-R.overflows[0]),D=(u=T.find(F=>{let{overflows:R}=F;return R.every(M=>M<=0)}))==null?void 0:u.placement;return{data:{skip:!0},reset:{placement:D!=null?D:T[0].placement}}})}}};function UF(e){const t=Eo(e);return[pc(e),t,pc(t)]}const qF=function(e){return e===void 0&&(e={}),{name:"flip",options:e,fn(r){return Ee(this,null,function*(){var n,s;const{placement:i,middlewareData:a,rects:o,initialPlacement:u}=r;if((n=a.flip)!=null&&n.skip)return{};const S=e,{mainAxis:l=!0,crossAxis:c=!0,fallbackPlacements:f,fallbackStrategy:h="bestFit",flipAlignment:p=!0}=S,d=Os(S,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","flipAlignment"]),g=cn(i),m=f||(g===u||!p?[Eo(u)]:UF(u)),y=[u,...m],w=yield _u(r,d),C=[];let k=((s=a.flip)==null?void 0:s.overflows)||[];if(l&&C.push(w[g]),c){const{main:x,cross:A}=B1(i,o);C.push(w[x],w[A])}if(k=[...k,{placement:i,overflows:C}],!C.every(x=>x<=0)){var P,b;const x=((P=(b=a.flip)==null?void 0:b.index)!=null?P:0)+1,A=y[x];if(A)return{data:{index:x,overflows:k},reset:{placement:A}};let T="bottom";switch(h){case"bestFit":{var _;const D=(_=k.slice().sort((N,F)=>N.overflows.filter(R=>R>0).reduce((R,M)=>R+M,0)-F.overflows.filter(R=>R>0).reduce((R,M)=>R+M,0))[0])==null?void 0:_.placement;D&&(T=D);break}case"initialPlacement":T=u;break}return{data:{skip:!0},reset:{placement:T}}}return{}})}}};function KF(e){let{placement:t,rects:r,value:n}=e;const s=cn(t),i=["left","top"].includes(s)?-1:1,a=typeof n=="function"?n(gr(wt({},r),{placement:t})):n,{mainAxis:o,crossAxis:u}=typeof a=="number"?{mainAxis:a,crossAxis:0}:wt({mainAxis:0,crossAxis:0},a);return _a(s)==="x"?{x:u,y:o*i}:{x:o*i,y:u}}const YF=function(e){return e===void 0&&(e=0),{name:"offset",options:e,fn(t){const{x:r,y:n,placement:s,rects:i}=t,a=KF({placement:s,rects:i,value:e});return{x:r+a.x,y:n+a.y,data:a}}}};function zF(e){return e==="x"?"y":"x"}const WF=function(e){return e===void 0&&(e={}),{name:"shift",options:e,fn(r){return Ee(this,null,function*(){const{x:n,y:s,placement:i}=r,y=e,{mainAxis:a=!0,crossAxis:o=!1,limiter:u={fn:w=>{let{x:C,y:k}=w;return{x:C,y:k}}}}=y,l=Os(y,["mainAxis","crossAxis","limiter"]),c={x:n,y:s},f=yield _u(r,l),h=_a(cn(i)),p=zF(h);let d=c[h],g=c[p];if(a){const w=h==="y"?"top":"left",C=h==="y"?"bottom":"right",k=d+f[w],P=d-f[C];d=dc(k,d,P)}if(o){const w=p==="y"?"top":"left",C=p==="y"?"bottom":"right",k=g+f[w],P=g-f[C];g=dc(k,g,P)}const m=u.fn(gr(wt({},r),{[h]:d,[p]:g}));return gr(wt({},m),{data:{x:m.x-n,y:m.y-s}})})}}},GF=function(e){return e===void 0&&(e={}),{name:"size",options:e,fn(r){return Ee(this,null,function*(){var n;const{placement:s,rects:i,middlewareData:a}=r,C=e,{apply:o}=C,u=Os(C,["apply"]);if((n=a.size)!=null&&n.skip)return{};const l=yield _u(r,u),c=cn(s),f=Zs(s)==="end";let h,p;c==="top"||c==="bottom"?(h=c,p=f?"left":"right"):(p=c,h=f?"top":"bottom");const d=os(l.left,0),g=os(l.right,0),m=os(l.top,0),y=os(l.bottom,0),w={height:i.floating.height-(["left","right"].includes(s)?2*(m!==0||y!==0?m+y:os(l.top,l.bottom)):l[h]),width:i.floating.width-(["top","bottom"].includes(s)?2*(d!==0||g!==0?d+g:os(l.left,l.right)):l[p])};return o==null||o(wt(wt({},w),i)),{data:{skip:!0},reset:{rects:!0}}})}}};function Lh(e){return(e==null?void 0:e.toString())==="[object Window]"}function Wn(e){if(e==null)return window;if(!Lh(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function Eu(e){return Wn(e).getComputedStyle(e)}function rn(e){return Lh(e)?"":e?(e.nodeName||"").toLowerCase():""}function nn(e){return e instanceof Wn(e).HTMLElement}function Co(e){return e instanceof Wn(e).Element}function JF(e){return e instanceof Wn(e).Node}function $1(e){const t=Wn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Cu(e){const{overflow:t,overflowX:r,overflowY:n}=Eu(e);return/auto|scroll|overlay|hidden/.test(t+n+r)}function XF(e){return["table","td","th"].includes(rn(e))}function H1(e){const t=navigator.userAgent.toLowerCase().includes("firefox"),r=Eu(e);return r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].includes(r.willChange)||t&&r.willChange==="filter"||t&&(r.filter?r.filter!=="none":!1)}const Rp=Math.min,$i=Math.max,ko=Math.round;function ui(e,t){t===void 0&&(t=!1);const r=e.getBoundingClientRect();let n=1,s=1;return t&&nn(e)&&(n=e.offsetWidth>0&&ko(r.width)/e.offsetWidth||1,s=e.offsetHeight>0&&ko(r.height)/e.offsetHeight||1),{width:r.width/n,height:r.height/s,top:r.top/s,right:r.right/n,bottom:r.bottom/s,left:r.left/n,x:r.left/n,y:r.top/s}}function Gn(e){return((JF(e)?e.ownerDocument:e.document)||window.document).documentElement}function ku(e){return Lh(e)?{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}:{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function j1(e){return ui(Gn(e)).left+ku(e).scrollLeft}function ZF(e){const t=ui(e);return ko(t.width)!==e.offsetWidth||ko(t.height)!==e.offsetHeight}function QF(e,t,r){const n=nn(t),s=Gn(t),i=ui(e,n&&ZF(t));let a={scrollLeft:0,scrollTop:0};const o={x:0,y:0};if(n||!n&&r!=="fixed")if((rn(t)!=="body"||Cu(s))&&(a=ku(t)),nn(t)){const u=ui(t,!0);o.x=u.x+t.clientLeft,o.y=u.y+t.clientTop}else s&&(o.x=j1(s));return{x:i.left+a.scrollLeft-o.x,y:i.top+a.scrollTop-o.y,width:i.width,height:i.height}}function Au(e){return rn(e)==="html"?e:e.assignedSlot||e.parentNode||($1(e)?e.host:null)||Gn(e)}function Ip(e){return!nn(e)||getComputedStyle(e).position==="fixed"?null:e.offsetParent}function eO(e){let t=Au(e);for(;nn(t)&&!["html","body"].includes(rn(t));){if(H1(t))return t;t=t.parentNode}return null}function gc(e){const t=Wn(e);let r=Ip(e);for(;r&&XF(r)&&getComputedStyle(r).position==="static";)r=Ip(r);return r&&(rn(r)==="html"||rn(r)==="body"&&getComputedStyle(r).position==="static"&&!H1(r))?t:r||eO(e)||t}function Np(e){return{width:e.offsetWidth,height:e.offsetHeight}}function tO(e){let{rect:t,offsetParent:r,strategy:n}=e;const s=nn(r),i=Gn(r);if(r===i)return t;let a={scrollLeft:0,scrollTop:0};const o={x:0,y:0};if((s||!s&&n!=="fixed")&&((rn(r)!=="body"||Cu(i))&&(a=ku(r)),nn(r))){const u=ui(r,!0);o.x=u.x+r.clientLeft,o.y=u.y+r.clientTop}return gr(wt({},t),{x:t.x-a.scrollLeft+o.x,y:t.y-a.scrollTop+o.y})}function rO(e){const t=Wn(e),r=Gn(e),n=t.visualViewport;let s=r.clientWidth,i=r.clientHeight,a=0,o=0;return n&&(s=n.width,i=n.height,Math.abs(t.innerWidth/n.scale-n.width)<.01&&(a=n.offsetLeft,o=n.offsetTop)),{width:s,height:i,x:a,y:o}}function nO(e){var t;const r=Gn(e),n=ku(e),s=(t=e.ownerDocument)==null?void 0:t.body,i=$i(r.scrollWidth,r.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),a=$i(r.scrollHeight,r.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0);let o=-n.scrollLeft+j1(e);const u=-n.scrollTop;return Eu(s||r).direction==="rtl"&&(o+=$i(r.clientWidth,s?s.clientWidth:0)-i),{width:i,height:a,x:o,y:u}}function L1(e){return["html","body","#document"].includes(rn(e))?e.ownerDocument.body:nn(e)&&Cu(e)?e:L1(Au(e))}function Ao(e,t){var r;t===void 0&&(t=[]);const n=L1(e),s=n===((r=e.ownerDocument)==null?void 0:r.body),i=Wn(n),a=s?[i].concat(i.visualViewport||[],Cu(n)?n:[]):n,o=t.concat(a);return s?o:o.concat(Ao(Au(a)))}function sO(e,t){const r=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(r&&$1(r)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}function iO(e){const t=ui(e),r=t.top+e.clientTop,n=t.left+e.clientLeft;return{top:r,left:n,x:n,y:r,right:n+e.clientWidth,bottom:r+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}function Mp(e,t){return t==="viewport"?fc(rO(e)):Co(t)?iO(t):fc(nO(Gn(e)))}function aO(e){const t=Ao(Au(e)),r=["absolute","fixed"].includes(Eu(e).position)&&nn(e)?gc(e):e;return Co(r)?t.filter(n=>Co(n)&&sO(n,r)&&rn(n)!=="body"):[]}function oO(e){let{element:t,boundary:r,rootBoundary:n}=e;const s=[...r==="clippingParents"?aO(t):[].concat(r),n],i=s[0],a=s.reduce((o,u)=>{const l=Mp(t,u);return o.top=$i(l.top,o.top),o.right=Rp(l.right,o.right),o.bottom=Rp(l.bottom,o.bottom),o.left=$i(l.left,o.left),o},Mp(t,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}const uO={getElementRects:e=>{let{reference:t,floating:r,strategy:n}=e;return{reference:QF(t,gc(r),n),floating:gr(wt({},Np(r)),{x:0,y:0})}},convertOffsetParentRelativeRectToViewportRelativeRect:e=>tO(e),getOffsetParent:e=>{let{element:t}=e;return gc(t)},isElement:e=>Co(e),getDocumentElement:e=>{let{element:t}=e;return Gn(t)},getClippingClientRect:e=>oO(e),getDimensions:e=>{let{element:t}=e;return Np(t)},getClientRects:e=>{let{element:t}=e;return t.getClientRects()}},lO=(e,t,r)=>RF(e,t,wt({platform:uO},r));var cO=Object.defineProperty,hO=Object.defineProperties,fO=Object.getOwnPropertyDescriptors,Bp=Object.getOwnPropertySymbols,dO=Object.prototype.hasOwnProperty,pO=Object.prototype.propertyIsEnumerable,$p=(e,t,r)=>t in e?cO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,kn=(e,t)=>{for(var r in t||(t={}))dO.call(t,r)&&$p(e,r,t[r]);if(Bp)for(var r of Bp(t))pO.call(t,r)&&$p(e,r,t[r]);return e},Pu=(e,t)=>hO(e,fO(t));const ys={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:5e3,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:e=>[...e,"click"],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:"..."},dropdown:{placement:"bottom",triggers:["click"],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:"dropdown",triggers:["hover","focus"],popperTriggers:["hover","focus"],delay:{show:0,hide:400}}}};function Po(e,t){let r=ys.themes[e]||{},n;do n=r[t],typeof n>"u"?r.$extend?r=ys.themes[r.$extend]||{}:(r=null,n=ys[t]):r=null;while(r);return n}function gO(e){const t=[e];let r=ys.themes[e]||{};do r.$extend&&!r.$resetCss?(t.push(r.$extend),r=ys.themes[r.$extend]||{}):r=null;while(r);return t.map(n=>`v-popper--theme-${n}`)}function Hp(e){const t=[e];let r=ys.themes[e]||{};do r.$extend?(t.push(r.$extend),r=ys.themes[r.$extend]||{}):r=null;while(r);return t}let li=!1;if(typeof window<"u"){li=!1;try{const e=Object.defineProperty({},"passive",{get(){li=!0}});window.addEventListener("test",null,e)}catch(e){}}let V1=!1;typeof window<"u"&&typeof navigator<"u"&&(V1=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const mO=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),jp={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart"},Lp={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend"};function Vp(e,t){const r=e.indexOf(t);r!==-1&&e.splice(r,1)}function Sl(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const vr=[];let as=null;const Up={};function qp(e){let t=Up[e];return t||(t=Up[e]=[]),t}let mc=function(){};typeof window<"u"&&(mc=window.Element);function $e(e){return function(t){return Po(t.theme,e)}}const _l="__floating-vue__popper";var U1=()=>Er({name:"VPopper",provide(){return{[_l]:{parentPopper:this}}},inject:{[_l]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:$e("disabled")},positioningDisabled:{type:Boolean,default:$e("positioningDisabled")},placement:{type:String,default:$e("placement"),validator:r=>mO.includes(r)},delay:{type:[String,Number,Object],default:$e("delay")},distance:{type:[Number,String],default:$e("distance")},skidding:{type:[Number,String],default:$e("skidding")},triggers:{type:Array,default:$e("triggers")},showTriggers:{type:[Array,Function],default:$e("showTriggers")},hideTriggers:{type:[Array,Function],default:$e("hideTriggers")},popperTriggers:{type:Array,default:$e("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:$e("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:$e("popperHideTriggers")},container:{type:[String,Object,mc,Boolean],default:$e("container")},boundary:{type:[String,mc],default:$e("boundary")},strategy:{type:String,validator:r=>["absolute","fixed"].includes(r),default:$e("strategy")},autoHide:{type:[Boolean,Function],default:$e("autoHide")},handleResize:{type:Boolean,default:$e("handleResize")},instantMove:{type:Boolean,default:$e("instantMove")},eagerMount:{type:Boolean,default:$e("eagerMount")},popperClass:{type:[String,Array,Object],default:$e("popperClass")},computeTransformOrigin:{type:Boolean,default:$e("computeTransformOrigin")},autoMinSize:{type:Boolean,default:$e("autoMinSize")},autoSize:{type:[Boolean,String],default:$e("autoSize")},autoMaxSize:{type:Boolean,default:$e("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:$e("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:$e("preventOverflow")},overflowPadding:{type:[Number,String],default:$e("overflowPadding")},arrowPadding:{type:[Number,String],default:$e("arrowPadding")},arrowOverflow:{type:Boolean,default:$e("arrowOverflow")},flip:{type:Boolean,default:$e("flip")},shift:{type:Boolean,default:$e("shift")},shiftCrossAxis:{type:Boolean,default:$e("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:$e("noAutoFocus")}},emits:["show","hide","update:shown","apply-show","apply-hide","close-group","close-directive","auto-hide","resize","dispose"],data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},shownChildren:new Set,lastAutoHide:!0}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:Pu(kn({},this.classes),{popperClass:this.popperClass}),result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var r;return(r=this[_l])==null?void 0:r.parentPopper},hasPopperShowTriggerHover(){var r,n;return((r=this.popperTriggers)==null?void 0:r.includes("hover"))||((n=this.popperShowTriggers)==null?void 0:n.includes("hover"))}},watch:kn(kn({shown:"$_autoShowHide",disabled(r){r?this.dispose():this.init()},container(){return Ee(this,null,function*(){this.isShown&&(this.$_ensureTeleport(),yield this.$_computePosition())})}},["triggers","positioningDisabled"].reduce((r,n)=>(r[n]="$_refreshListeners",r),{})),["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((r,n)=>(r[n]="$_computePosition",r),{})),created(){this.$_isDisposed=!0,this.randomId=`popper_${[Math.random(),Date.now()].map(r=>r.toString(36).substring(2,10)).join("_")}`,this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:r=null,skipDelay:n=!1,force:s=!1}={}){var i,a;(i=this.parentPopper)!=null&&i.lockedChild&&this.parentPopper.lockedChild!==this||(this.$_pendingHide=!1,(s||!this.disabled)&&(((a=this.parentPopper)==null?void 0:a.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(r,n),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:r=null,skipDelay:n=!1}={}){var s;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.$_pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:n}),this.parentPopper.lockedChild=null)},1e3));return}((s=this.parentPopper)==null?void 0:s.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_pendingHide=!1,this.$_scheduleHide(r,n),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var r,n;!this.$_isDisposed||(this.$_isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=(n=(r=this.referenceNode)==null?void 0:r.call(this))!=null?n:this.$el,this.$_targetNodes=this.targetNodes().filter(s=>s.nodeType===s.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.$_isDisposed||(this.$_isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"),this.$emit("dispose"))},onResize(){return Ee(this,null,function*(){this.isShown&&(yield this.$_computePosition(),this.$emit("resize"))})},$_computePosition(){return Ee(this,null,function*(){var r;if(this.$_isDisposed||this.positioningDisabled)return;const n={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&n.middleware.push(YF({mainAxis:this.distance,crossAxis:this.skidding}));const s=this.placement.startsWith("auto");if(s?n.middleware.push(VF({alignment:(r=this.placement.split("-")[1])!=null?r:""})):n.placement=this.placement,this.preventOverflow&&(this.shift&&n.middleware.push(WF({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!s&&this.flip&&n.middleware.push(qF({padding:this.overflowPadding,boundary:this.boundary}))),n.middleware.push(MF({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&n.middleware.push({name:"arrowOverflow",fn:({placement:a,rects:o,middlewareData:u})=>{let l;const{centerOffset:c}=u.arrow;return a.startsWith("top")||a.startsWith("bottom")?l=Math.abs(c)>o.reference.width/2:l=Math.abs(c)>o.reference.height/2,{data:{overflow:l}}}}),this.autoMinSize||this.autoSize){const a=this.autoSize?this.autoSize:this.autoMinSize?"min":null;n.middleware.push({name:"autoSize",fn:({rects:o,placement:u,middlewareData:l})=>{var c;if((c=l.autoSize)!=null&&c.skip)return{};let f,h;return u.startsWith("top")||u.startsWith("bottom")?f=o.reference.width:h=o.reference.height,this.$_innerNode.style[a==="min"?"minWidth":a==="max"?"maxWidth":"width"]=f!=null?`${f}px`:null,this.$_innerNode.style[a==="min"?"minHeight":a==="max"?"maxHeight":"height"]=h!=null?`${h}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,n.middleware.push(GF({boundary:this.boundary,padding:this.overflowPadding,apply:({width:a,height:o})=>{this.$_innerNode.style.maxWidth=a!=null?`${a}px`:null,this.$_innerNode.style.maxHeight=o!=null?`${o}px`:null}})));const i=yield lO(this.$_referenceNode,this.$_popperNode,n);Object.assign(this.result,{x:i.x,y:i.y,placement:i.placement,strategy:i.strategy,arrow:kn(kn({},i.middlewareData.arrow),i.middlewareData.arrowOverflow)})})},$_scheduleShow(r=null,n=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),as&&this.instantMove&&as.instantMove&&as!==this.parentPopper){as.$_applyHide(!0),this.$_applyShow(!0);return}n?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(r=null,n=!1){if(this.shownChildren.size>0){this.$_pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(as=this),n?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(r){const n=this.delay;return parseInt(n&&n[r]||n||0)},$_applyShow(r=!1){return Ee(this,null,function*(){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=r,!this.isShown&&(this.$_ensureTeleport(),yield Sl(),yield this.$_computePosition(),yield this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...Ao(this.$_referenceNode),...Ao(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))})},$_applyShowEffect(){return Ee(this,null,function*(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const n=this.$_referenceNode.getBoundingClientRect(),s=this.$_popperNode.querySelector(".v-popper__wrapper"),i=s.parentNode.getBoundingClientRect(),a=n.x+n.width/2-(i.left+s.offsetLeft),o=n.y+n.height/2-(i.top+s.offsetTop);this.result.transformOrigin=`${a}px ${o}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const r=this.showGroup;if(r){let n;for(let s=0;s0){this.$_pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=r,Vp(vr,this),vr.length===0&&document.body.classList.remove("v-popper--some-open");for(const s of Hp(this.theme)){const i=qp(s);Vp(i,this),i.length===0&&document.body.classList.remove(`v-popper--some-open--${s}`)}as===this&&(as=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const n=Po(this.theme,"disposeTimeout");n!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},n)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,yield Sl(),this.classes.hideFrom=!1,this.classes.hideTo=!0})},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.$_isDisposed)return;let r=this.container;if(typeof r=="string"?r=window.document.querySelector(r):r===!1&&(r=this.$_targetNodes[0].parentNode),!r)throw new Error("No container for popover: "+this.container);r.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const r=s=>{this.isShown&&!this.$_hideInProgress||(s.usedByTooltip=!0,!this.$_preventShow&&this.show({event:s}))};this.$_registerTriggerListeners(this.$_targetNodes,jp,this.triggers,this.showTriggers,r),this.$_registerTriggerListeners([this.$_popperNode],jp,this.popperTriggers,this.popperShowTriggers,r);const n=s=>{s.usedByTooltip||this.hide({event:s})};this.$_registerTriggerListeners(this.$_targetNodes,Lp,this.triggers,this.hideTriggers,n),this.$_registerTriggerListeners([this.$_popperNode],Lp,this.popperTriggers,this.popperHideTriggers,n)},$_registerEventListeners(r,n,s){this.$_events.push({targetNodes:r,eventType:n,handler:s}),r.forEach(i=>i.addEventListener(n,s,li?{passive:!0}:void 0))},$_registerTriggerListeners(r,n,s,i,a){let o=s;i!=null&&(o=typeof i=="function"?i(o):i),o.forEach(u=>{const l=n[u];l&&this.$_registerEventListeners(r,l,a)})},$_removeEventListeners(r){const n=[];this.$_events.forEach(s=>{const{targetNodes:i,eventType:a,handler:o}=s;!r||r===a?i.forEach(u=>u.removeEventListener(a,o)):n.push(s)}),this.$_events=n},$_refreshListeners(){this.$_isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(r,n=!1){this.$_showFrameLocked||(this.hide({event:r}),r.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),n&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(r,n){for(const s of this.$_targetNodes){const i=s.getAttribute(r);i&&(s.removeAttribute(r),s.setAttribute(n,i))}},$_applyAttrsToTarget(r){for(const n of this.$_targetNodes)for(const s in r){const i=r[s];i==null?n.removeAttribute(s):n.setAttribute(s,i)}},$_updateParentShownChildren(r){let n=this.parentPopper;for(;n;)r?n.shownChildren.add(this.randomId):(n.shownChildren.delete(this.randomId),n.$_pendingHide&&n.hide()),n=n.parentPopper},$_isAimingPopper(){const r=this.$_referenceNode.getBoundingClientRect();if(Hi>=r.left&&Hi<=r.right&&ji>=r.top&&ji<=r.bottom){const n=this.$_popperNode.getBoundingClientRect(),s=Hi-bn,i=ji-wn,a=n.left+n.width/2-bn+(n.top+n.height/2)-wn+n.width+n.height,o=bn+s*a,u=wn+i*a;return Ua(bn,wn,o,u,n.left,n.top,n.left,n.bottom)||Ua(bn,wn,o,u,n.left,n.top,n.right,n.top)||Ua(bn,wn,o,u,n.right,n.top,n.right,n.bottom)||Ua(bn,wn,o,u,n.left,n.bottom,n.right,n.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});typeof document<"u"&&typeof window<"u"&&(V1?(document.addEventListener("touchstart",Kp,li?{passive:!0,capture:!0}:!0),document.addEventListener("touchend",yO,li?{passive:!0,capture:!0}:!0)):(window.addEventListener("mousedown",Kp,!0),window.addEventListener("click",vO,!0)),window.addEventListener("resize",xO));function Kp(e){for(let t=0;t=0;n--){const s=vr[n];try{const i=s.$_containsGlobalTarget=bO(s,e);s.$_pendingHide=!1,requestAnimationFrame(()=>{if(s.$_pendingHide=!1,!r[s.randomId]&&Yp(s,i,e)){if(s.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&i){let o=s.parentPopper;for(;o;)r[o.randomId]=!0,o=o.parentPopper;return}let a=s.parentPopper;for(;a&&Yp(a,a.$_containsGlobalTarget,e);)a.$_handleGlobalClose(e,t),a=a.parentPopper}})}catch(i){}}}function bO(e,t){const r=e.popperNode();return e.$_mouseDownContains||r.contains(t.target)}function Yp(e,t,r){return r.closeAllPopover||r.closePopover&&t||wO(e,r)&&!t}function wO(e,t){if(typeof e.autoHide=="function"){const r=e.autoHide(t);return e.lastAutoHide=r,r}return e.autoHide}function xO(e){for(let t=0;t{bn=Hi,wn=ji,Hi=e.clientX,ji=e.clientY},li?{passive:!0}:void 0);function Ua(e,t,r,n,s,i,a,o){const u=((a-s)*(t-i)-(o-i)*(e-s))/((o-i)*(r-e)-(a-s)*(n-t)),l=((r-e)*(t-i)-(n-t)*(e-s))/((o-i)*(r-e)-(a-s)*(n-t));return u>=0&&u<=1&&l>=0&&l<=1}var Vh=(e,t)=>{const r=e.__vccOpts||e;for(const[n,s]of t)r[n]=s;return r};const SO={extends:U1()};function _O(e,t,r,n,s,i){return H(),V("div",{ref:"reference",class:Ce(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[ei(e.$slots,"default",Bv(cg(e.slotData)))],2)}var EO=Vh(SO,[["render",_O]]);function CO(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var r=e.indexOf("Trident/");if(r>0){var n=e.indexOf("rv:");return parseInt(e.substring(n+3,e.indexOf(".",n)),10)}var s=e.indexOf("Edge/");return s>0?parseInt(e.substring(s+5,e.indexOf(".",s)),10):-1}let so;function vc(){vc.init||(vc.init=!0,so=CO()!==-1)}var Tu={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){vc(),ua(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",so&&this.$el.appendChild(e),e.data="about:blank",so||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!so&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const kO=xy();V0("data-v-b329ee4c");const AO={class:"resize-observer",tabindex:"-1"};U0();const PO=kO((e,t,r,n,s,i)=>(H(),on("div",AO)));Tu.render=PO;Tu.__scopeId="data-v-b329ee4c";Tu.__file="src/components/ResizeObserver.vue";var K1=(e="theme")=>({computed:{themeClass(){return gO(this[e])}}});const TO=Er({name:"VPopperContent",components:{ResizeObserver:Tu},mixins:[K1()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(e){return e!=null&&!isNaN(e)?`${e}px`:null}}}),DO=["id","aria-hidden","tabindex","data-popper-placement"],FO={ref:"inner",class:"v-popper__inner"},OO=E("div",{class:"v-popper__arrow-outer"},null,-1),RO=E("div",{class:"v-popper__arrow-inner"},null,-1),IO=[OO,RO];function NO(e,t,r,n,s,i){const a=$t("ResizeObserver");return H(),V("div",{id:e.popperId,ref:"popover",class:Ce(["v-popper__popper",[e.themeClass,e.classes.popperClass,{"v-popper__popper--shown":e.shown,"v-popper__popper--hidden":!e.shown,"v-popper__popper--show-from":e.classes.showFrom,"v-popper__popper--show-to":e.classes.showTo,"v-popper__popper--hide-from":e.classes.hideFrom,"v-popper__popper--hide-to":e.classes.hideTo,"v-popper__popper--skip-transition":e.skipTransition,"v-popper__popper--arrow-overflow":e.result&&e.result.arrow.overflow,"v-popper__popper--no-positioning":!e.result}]]),style:Fn(e.result?{position:e.result.strategy,transform:`translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`}:void 0),"aria-hidden":e.shown?"false":"true",tabindex:e.autoHide?0:void 0,"data-popper-placement":e.result?e.result.placement:void 0,onKeyup:t[2]||(t[2]=nw(o=>e.autoHide&&e.$emit("hide"),["esc"]))},[E("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=o=>e.autoHide&&e.$emit("hide"))}),E("div",{class:"v-popper__wrapper",style:Fn(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[E("div",FO,[e.mounted?(H(),V(Te,{key:0},[E("div",null,[ei(e.$slots,"default")]),e.handleResize?(H(),on(a,{key:0,onNotify:t[1]||(t[1]=o=>e.$emit("resize",o))})):ue("",!0)],64)):ue("",!0)],512),E("div",{ref:"arrow",class:"v-popper__arrow-container",style:Fn(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},IO,4)],4)],46,DO)}var Y1=Vh(TO,[["render",NO]]),z1={methods:{show(...e){return this.$refs.popper.show(...e)},hide(...e){return this.$refs.popper.hide(...e)},dispose(...e){return this.$refs.popper.dispose(...e)},onResize(...e){return this.$refs.popper.onResize(...e)}}};const MO=Er({name:"VPopperWrapper",components:{Popper:EO,PopperContent:Y1},mixins:[z1,K1("finalTheme")],props:{theme:{type:String,default:null}},computed:{finalTheme(){var e;return(e=this.theme)!=null?e:this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(e=>e!==this.$refs.popperContent.$el)}}});function BO(e,t,r,n,s,i){const a=$t("PopperContent"),o=$t("Popper");return H(),on(o,{ref:"popper",theme:e.finalTheme,"target-nodes":e.getTargetNodes,"popper-node":()=>e.$refs.popperContent.$el,class:Ce([e.themeClass])},{default:Wt(({popperId:u,isShown:l,shouldMountContent:c,skipTransition:f,autoHide:h,show:p,hide:d,handleResize:g,onResize:m,classes:y,result:w})=>[ei(e.$slots,"default",{shown:l,show:p,hide:d}),q(a,{ref:"popperContent","popper-id":u,theme:e.finalTheme,shown:l,mounted:c,"skip-transition":f,"auto-hide":h,"handle-resize":g,classes:y,result:w,onHide:d,onResize:m},{default:Wt(()=>[ei(e.$slots,"popper",{shown:l,hide:d})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:3},8,["theme","target-nodes","popper-node","class"])}var Uh=Vh(MO,[["render",BO]]);Pu(kn({},Uh),{name:"VDropdown",vPopperTheme:"dropdown"});Pu(kn({},Uh),{name:"VMenu",vPopperTheme:"menu"});Pu(kn({},Uh),{name:"VTooltip",vPopperTheme:"tooltip"});U1();const $O={name:"RecentOrder",components:{Badge:Hh},setup(){const e=ai(),t=fr(),r=Lt();return{recentOrders:e,invoiceData:t,auth:r}},mounted(){this.recentOrders.handleStatusChange()}},HO={class:"mt-10 flex flex-col md:flex-row"},jO={key:0,class:"fixed inset-0 z-50 flex items-center justify-center bg-gray-300 bg-opacity-50 text-lg"},LO={key:1,class:"fixed inset-0 z-50 flex items-center justify-center bg-gray-300 bg-opacity-50 text-lg"},VO={class:"max-w-lg flex-1 rounded-lg border border-gray-200 bg-white p-4 shadow dark:border-gray-700 dark:bg-gray-800 sm:p-8"},UO=E("div",{class:"mb-4 flex items-center justify-between"},[E("h5",{class:"text-xl font-bold leading-none text-gray-900 dark:text-white"}," Recent Orders ")],-1),qO=E("option",{value:"Draft"},"Draft",-1),KO=E("option",{value:"Unbilled"},"Unbilled",-1),YO={key:0,value:"Paid"},zO={key:1,value:"Consolidated"},WO={key:2,value:"Return"},GO={class:"flow-root"},JO={role:"list",class:"divide-y divide-gray-200 dark:divide-gray-700"},XO=["onClick"],ZO={class:"flex items-center space-x-4"},QO={class:"min-w-0 flex-1"},e9={class:"truncate text-base font-semibold text-gray-900 dark:text-white"},t9={class:"truncate text-sm text-gray-900 dark:text-gray-400"},r9={class:"flex items-center text-right"},n9={class:"text-base font-semibold text-gray-900 dark:text-white"},s9={class:"items-center space-x-4 text-right"},i9={class:"min-w-0 flex-1"},a9={class:"truncate text-base font-semibold text-gray-900 dark:text-white"},o9={class:"truncate text-sm text-gray-900 dark:text-gray-400"},u9={key:0,class:"mt-4 flex justify-center"},l9=["disabled"],c9=["onClick"],h9={key:1},f9=["disabled"],d9={key:2,class:"mt-5 max-w-lg flex-1 rounded-lg border border-gray-200 bg-white p-4 shadow dark:border-gray-700 dark:bg-gray-800 sm:p-8 md:ml-10 md:mt-0"},p9={class:"flex items-center space-x-4"},g9={class:"min-w-0 flex-1"},m9={class:"truncate text-xl font-semibold text-gray-900 dark:text-white"},v9={class:"mt-9"},y9={key:0,class:"truncate text-xs text-gray-500 dark:text-gray-400"},b9={class:"items-center space-x-4 text-right"},w9={class:"min-w-0 flex-1"},x9={class:"mr-2 truncate text-xl font-semibold text-gray-900 dark:text-white"},S9={class:"mr-2 mt-2 truncate text-sm text-gray-500 dark:text-gray-400"},_9={class:"ml-5 mt-2"},E9=E("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"bi bi-dot",viewBox:"0 0 16 16"},[E("path",{d:"M8 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3z"})],-1),C9={class:"text-xs"},k9=E("div",{class:"mb-2 mt-4"},[E("p",{class:"truncate text-lg font-semibold text-gray-900 dark:text-white"}," Items ")],-1),A9={class:"w-full rounded bg-gray-50 p-2"},P9={class:"ml-2 mt-2"},T9={class:"flex items-center space-x-4"},D9={class:"min-w-2 flex-1"},F9={class:"truncate text-base text-gray-800 dark:text-white"},O9={class:"flex items-center space-x-4 text-right"},R9={class:"text-base text-gray-800 dark:text-white"},I9={class:"items-center space-x-4 text-right"},N9={class:"mr-5 truncate text-base text-gray-800 dark:text-white"},M9=E("div",{class:"mb-2 mt-5"},[E("p",{class:"truncate text-lg font-semibold text-gray-900 dark:text-white"}," Totals ")],-1),B9={class:"w-full rounded bg-gray-50 p-2"},$9={class:"ml-2 mt-2 flex items-center space-x-4"},H9=E("div",{class:"min-w-2 flex-1"},[E("p",{class:"truncate text-base text-gray-800 dark:text-white"}," Net Total ")],-1),j9={class:"items-center space-x-4 text-right"},L9={class:"mr-5 truncate text-base text-gray-800 dark:text-white"},V9={class:"ml-2"},U9={class:"mt-2 flex items-center space-x-4"},q9={class:"min-w-2 flex-1"},K9={class:"truncate text-base text-gray-800 dark:text-white"},Y9={class:"items-center space-x-4 text-right"},z9={class:"mr-5 truncate text-base text-gray-800 dark:text-white"},W9={class:"ml-2 mt-2 flex items-center space-x-4"},G9=E("div",{class:"min-w-2 flex-1"},[E("p",{class:"truncate text-base font-semibold text-gray-800 dark:text-white"}," Grand Total ")],-1),J9={class:"items-center space-x-4 text-right"},X9={class:"mr-5 truncate text-base font-semibold text-gray-800 dark:text-white"},Z9={key:0,class:"mt-2 rounded px-4 py-2 text-center"},Q9={key:1,class:"mt-2 rounded px-4 py-2 text-center"},eR={key:2,class:"mt-2 rounded px-4 py-2 text-center"},tR={key:3,class:"fixed inset-0 z-10 mt-20 overflow-y-auto bg-gray-100"},rR={class:"mt-20 flex items-center justify-center"},nR={class:"w-full rounded-lg bg-white p-6 shadow-lg md:max-w-md"},sR={class:"flex justify-end"},iR=E("span",{class:"sr-only"},"Close",-1),aR=E("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"},null,-1),oR=[aR],uR=E("h2",{class:"mt-1 block text-left text-xl font-medium text-gray-900 dark:text-white"}," Are you sure to cancel ",-1),lR={class:"relative"},cR=E("label",{for:"cancelReason",class:"mt-6 block text-left text-gray-900 dark:text-white"}," Reason ",-1),hR={class:"flex justify-end"},fR={key:4,class:"fixed inset-0 z-10 mt-14 overflow-y-auto bg-gray-100"},dR={class:"mt-10 flex items-center justify-center"},pR={class:"h-82 w-full rounded-lg bg-white p-6 shadow-lg md:w-3/5"},gR={class:"flex justify-end"},mR=E("span",{class:"sr-only"},"Close",-1),vR=E("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"},null,-1),yR=[vR],bR=E("h2",{class:"mt-1 block text-left text-xl font-medium text-gray-900 dark:text-white"}," Select Mode Of Payment ",-1),wR={class:"mt-8 flex items-center justify-center"},xR={class:"w-full max-w-full overflow-x-auto"},SR={class:"flex flex-nowrap"},_R=["for"],ER=["id","onUpdate:modelValue","onClick","onInput"],CR={class:"flex justify-end"};function kR(e,t,r,n,s,i){const a=$t("Badge");return H(),V("div",HO,[this.invoiceData.isPrinting?(H(),V("div",jO," Printing Invoice ")):ue("",!0),this.recentOrders.isLoading?(H(),V("div",LO," Payment Being Processing ")):ue("",!0),E("div",VO,[UO,E("div",{class:"w-full",onClick:t[3]||(t[3]=o=>this.recentOrders.showOrder=!1)},[_e(E("input",{type:"search",id:"orderSeach",class:"block w-full rounded-lg border-gray-300 bg-gray-50 p-2.5 pl-10 text-sm text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-blue-500 dark:focus:ring-blue-500",placeholder:"Search by Invoice Id or Customer Name","onUpdate:modelValue":t[0]||(t[0]=o=>this.recentOrders.searchOrder=o)},null,512),[[Ae,this.recentOrders.searchOrder]]),_e(E("select",{id:"status",class:"mt-4 block w-full rounded-lg border border-gray-300 bg-gray-50 p-2.5 text-sm text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-blue-500 dark:focus:ring-blue-500","onUpdate:modelValue":t[1]||(t[1]=o=>this.recentOrders.selectedStatus=o),onChange:t[2]||(t[2]=(...o)=>this.recentOrders.handleStatusChange&&this.recentOrders.handleStatusChange(...o))},[qO,KO,this.auth.viewAllStatus===1?(H(),V("option",YO," Paid ")):ue("",!0),this.auth.viewAllStatus===1?(H(),V("option",zO," Consolidated ")):ue("",!0),this.auth.viewAllStatus===1?(H(),V("option",WO," Return ")):ue("",!0)],544),[[mg,this.recentOrders.selectedStatus]])]),E("div",GO,[E("ul",JO,[(H(!0),V(Te,null,ht(this.recentOrders.paginatedItems,(o,u)=>(H(),V("li",{class:Ce(["mt-2 py-3 sm:py-4",{"bg-gray-200":this.recentOrders.setBackground===u}]),key:o.name,onClick:l=>{this.recentOrders.viewRecentOrder(o),this.recentOrders.setBackground=u}},[E("div",ZO,[E("div",QO,[E("p",e9,ye(o.name),1),E("p",t9,ye(o.customer),1)]),E("div",r9,[E("p",n9,ye(o.restaurant_table),1)]),E("div",s9,[E("div",i9,[E("p",a9," ₹ "+ye(o.grand_total),1),E("p",o9,ye(this.recentOrders.getFormattedDateTime(o.posting_date,o.posting_time)),1)])])])],10,XO))),128))])]),this.recentOrders.paginatedItems.length>0?(H(),V("div",u9,[E("button",{class:Ce([{hidden:this.recentOrders.currentPage===1},"mr-2 rounded-md border px-2 py-1"]),disabled:this.recentOrders.currentPage===1,onClick:t[4]||(t[4]=o=>this.recentOrders.currentPage-=1)}," Previous ",10,l9),(H(!0),V(Te,null,ht(this.recentOrders.pageNumbers,o=>(H(),V("div",null,[o===this.recentOrders.currentPage||Math.abs(o-this.recentOrders.currentPage)<=2?(H(),V("button",{key:o,onClick:u=>this.recentOrders.currentPage=o,class:Ce([{"bg-gray-200":o===this.recentOrders.currentPage},"mr-2 rounded-md border px-2 py-1"])},ye(o),11,c9)):this.recentOrders.pageNumbers.indexOf(o)===0||this.recentOrders.pageNumbers.indexOf(o)===this.recentOrders.pageNumbers.length-1?(H(),V("span",h9," ... ")):ue("",!0)]))),256)),E("button",{disabled:this.recentOrders.currentPage===this.recentOrders.totalPages,onClick:t[5]||(t[5]=o=>this.recentOrders.currentPage+=1),class:Ce([{hidden:this.recentOrders.currentPage===this.recentOrders.totalPages},"rounded-md border px-2 py-1"])}," Next ",10,f9)])):ue("",!0)]),this.recentOrders.showOrder?(H(),V("div",d9,[E("div",p9,[E("div",g9,[E("p",m9,ye(this.recentOrders.selectedOrder.customer),1),E("div",v9,[this.recentOrders.selectedOrder.waiter?(H(),V("p",y9," Waiter : "+ye(this.recentOrders.selectedOrder.waiter),1)):ue("",!0)])]),E("div",b9,[E("div",w9,[E("p",x9," ₹ "+ye(this.recentOrders.selectedOrder.status==="Draft"?"0.00":this.recentOrders.selectedOrder.grand_total),1),E("p",S9,ye(this.recentOrders.selectedOrder.name),1),E("div",_9,[q(a,{type:this.recentOrders.getBadgeType(this.recentOrders.selectedOrder)},{default:Wt(()=>[E9,E("span",C9,ye(this.recentOrders.selectedOrder.status),1)]),_:1},8,["type"])])])])]),k9,E("div",A9,[(H(!0),V(Te,null,ht(this.recentOrders.recentOrderListItems,o=>(H(),V("div",P9,[E("div",T9,[E("div",D9,[E("p",F9,ye(o.item_name),1)]),E("div",O9,[E("p",R9,ye(o.qty),1)]),E("div",I9,[E("p",N9," ₹ "+ye(o.amount),1)])])]))),256))]),M9,E("div",B9,[E("div",$9,[H9,E("div",j9,[E("p",L9," ₹ "+ye(this.recentOrders.netTotal),1)])]),(H(!0),V(Te,null,ht(this.recentOrders.texDetails,o=>(H(),V("div",V9,[E("div",U9,[E("div",q9,[E("p",K9,ye(o.description),1)]),E("div",Y9,[E("p",z9," ₹ "+ye(o.rate),1)])])]))),256)),E("div",W9,[G9,E("div",J9,[E("p",X9," ₹ "+ye(this.recentOrders.grandTotal),1)])])]),this.recentOrders.selectedStatus!=="Draft"&&n.recentOrders.selectedStatus!=="Unbilled"?(H(),V("div",Z9,[E("button",{type:"button",class:"mb-2 mr-2 rounded-lg border border-gray-400 bg-white px-5 py-2.5 text-sm font-medium text-gray-800 focus:outline-none dark:border-gray-600 dark:bg-gray-800 dark:text-gray-400",onClick:t[6]||(t[6]=o=>this.invoiceData.printFunction())}," Print Receipt ")])):ue("",!0),this.recentOrders.selectedStatus==="Draft"||n.recentOrders.selectedStatus==="Unbilled"?(H(),V("div",Q9,[E("button",{type:"button",class:"mb-2 mr-2 w-36 rounded-lg border border-gray-300 bg-white px-5 py-2.5 text-sm font-medium text-gray-700 focus:outline-none dark:border-gray-600 dark:bg-gray-800 dark:text-gray-400",onClick:t[7]||(t[7]=o=>this.recentOrders.editOrder())}," Edit "),E("button",{type:"button",class:"mb-2 mr-2 w-36 rounded-lg border border-gray-300 bg-white px-5 py-2.5 text-sm font-medium text-gray-700 focus:outline-none dark:border-gray-600 dark:bg-gray-800 dark:text-gray-400",onClick:t[8]||(t[8]=o=>this.invoiceData.printFunction())}," Print Receipt ")])):ue("",!0),this.recentOrders.selectedStatus==="Draft"||this.recentOrders.selectedStatus==="Unbilled"?(H(),V("div",eR,[E("button",{type:"button",class:"mb-2 mr-2 w-36 rounded-lg border border-gray-300 bg-white px-5 py-2.5 text-sm font-medium text-gray-700 focus:outline-none dark:border-gray-600 dark:bg-gray-800 dark:text-gray-400",onClick:t[9]||(t[9]=o=>this.recentOrders.billing())}," Make Payment "),E("button",{type:"button",class:Ce(["mb-2 mr-2 w-36 rounded-lg border bg-white px-5 py-2.5 text-sm font-medium focus:outline-none dark:border-gray-600 dark:bg-gray-800 dark:text-gray-400",{"border-gray-200 text-gray-300":this.recentOrders.invoicePrinted===1||this.recentOrders.selectedStatus==="Unbilled","border-gray-300 text-gray-700":!(this.recentOrders.invoicePrinted===1||this.recentOrders.selectedStatus==="Unbilled")}]),onClick:t[10]||(t[10]=o=>this.recentOrders.invoicePrinted===0&&this.recentOrders.selectedStatus==="Draft"?this.recentOrders.showCancelInvoiceModal():"")}," Cancel Order ",2)])):ue("",!0),this.recentOrders.cancelInvoiceFlag===!0?(H(),V("div",tR,[E("div",rR,[E("div",nR,[E("div",sR,[iR,(H(),V("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",onClick:t[11]||(t[11]=o=>this.recentOrders.cancelInvoiceFlag=!1)},oR))]),uR,E("div",lR,[cR,_e(E("input",{type:"text",id:"cancelReason",class:"mt-4 w-full appearance-none rounded border p-2 leading-tight text-gray-900 shadow focus:outline-none","onUpdate:modelValue":t[12]||(t[12]=o=>this.recentOrders.cancelReason=o)},null,512),[[Ae,this.recentOrders.cancelReason]])]),E("div",hR,[E("button",{onClick:t[13]||(t[13]=o=>this.recentOrders.cancelInvoiceFlag=!1),class:"mr-3 mt-6 rounded border border-gray-300 bg-gray-50 px-3 py-2"}," No "),E("button",{onClick:t[14]||(t[14]=o=>{this.recentOrders.cancelInvoice(),this.recentOrders.cancelInvoiceFlag=!1}),class:"mt-6 rounded bg-blue-500 px-3 py-2 text-white hover:bg-blue-600"}," Yes ")])])])])):ue("",!0),this.recentOrders.showPayment?(H(),V("div",fR,[E("div",dR,[E("div",pR,[E("div",gR,[mR,(H(),V("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",onClick:t[15]||(t[15]=o=>this.recentOrders.showPayment=!1)},yR))]),bR,E("div",wR,[E("div",xR,[E("div",SR,[(H(!0),V(Te,null,ht(n.recentOrders.modeOfPaymentList,(o,u)=>(H(),V("div",{key:u,class:"mr-4 w-64 flex-shrink-0 rounded-lg border border-gray-200 bg-white p-4 shadow dark:border-gray-700 dark:bg-gray-800"},[E("label",{for:"modeofPayments-"+u,class:"block text-left text-lg dark:text-white"},ye(o.mode_of_payment),9,_R),_e(E("input",{id:"modeofPayments-"+u,type:"number",name:"modeofPayments",class:"block w-full rounded-lg border border-gray-300 bg-gray-50 p-2.5 text-sm text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:border-gray-500 dark:bg-gray-600 dark:text-white dark:placeholder-gray-400",required:"","onUpdate:modelValue":l=>o.value=l,onClick:l=>n.recentOrders.calculatePaidAmount(o),onInput:l=>n.recentOrders.changePaidAmount(o.mode_of_payment,l.target.value)},null,40,ER),[[Ae,o.value,void 0,{number:!0}]])]))),128))])])]),E("div",CR,[E("button",{onClick:t[16]||(t[16]=o=>{this.recentOrders.showPayment=!1,this.recentOrders.makePayment()}),class:"mt-10 rounded bg-blue-500 px-3 py-2 text-white hover:bg-blue-600"}," Submit ")])])])])):ue("",!0)])):ue("",!0)])}const AR=dr($O,[["render",kR]]),W1=Cr("posOpen",{state:()=>({invoiceData:fr(),call:Dt.call(),startDate:new Date,formattedDateTime:null,postingDate:null,alert:Yn(),posOpencreation:!0,currentDate:new Date,posOpenSaved:!1,posOpenEntryName:null,db:Dt.db(),showSumbitPosOpen:!1,isPosOpen:null}),getters:{currentDateTime:{get(){}}},actions:{savePosOpening(){if(this.startDate){const e=new Date(this.startDate),t=e.getFullYear(),r=String(e.getMonth()+1).padStart(2,"0"),n=String(e.getDate()).padStart(2,"0"),s=String(e.getHours()).padStart(2,"0"),i=String(e.getMinutes()).padStart(2,"0"),a=String(e.getSeconds()).padStart(2,"0");this.formattedDateTime=`${t}-${r}-${n} ${s}:${i}:${a}`}else this.formattedDateTime=null;this.db.createDoc("POS Opening Entry",{period_start_date:this.formattedDateTime,posting_date:this.postingDate,company:this.invoiceData.company,pos_profile:this.invoiceData.posProfile,balance_details:this.invoiceData.modeOfPaymentList,branch:this.invoiceData.branch,user:this.invoiceData.cashier,docstatus:0}).then(e=>{this.posOpenEntryName=e.name,this.posOpencreation=!1,this.posOpenSaved=!0,this.isPosOpen="Draft"}).catch(e=>{if(e._server_messages){const t=JSON.parse(e._server_messages),r=JSON.parse(t[0]);this.alert.createAlert("Message",r.message,"OK")}})},getBadgeType(){if(this.isPosOpen=="Draft")return"red";if(this.isPosOpen=="Open")return"yellow"},getBadgeText(){if(this.isPosOpen=="Draft")return"Draft";if(this.isPosOpen=="Open")return"Open"},showSumbitPosOpenModal(){this.showSumbitPosOpen=!0},sumbitPosOpening(){this.showSumbitPosOpen=!1,this.db.updateDoc("POS Opening Entry",this.posOpenEntryName,{docstatus:1}).then(e=>{this.isPosOpen="Open"}).catch(e=>console.error(e))},setFormattedDate(){const e=this.currentDate.getFullYear(),t=String(this.currentDate.getMonth()+1).padStart(2,"0"),r=String(this.currentDate.getDate()).padStart(2,"0");this.postingDate=`${e}-${t}-${r}`},deleteRow(e){this.invoiceData.modeOfPaymentList.splice(e,1)},routeToPosOpen(){dt.push("/posOpen")}}});function G1(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function Du(e){return G1(e)?new Date(e.getTime()):e==null?new Date(NaN):new Date(e)}function PR(e){return G1(e)&&!isNaN(e.getTime())}function J1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(!(t>=0&&t<=6))throw new RangeError("weekStartsOn must be between 0 and 6");var r=Du(e),n=r.getDay(),s=(n+7-t)%7;return r.setDate(r.getDate()-s),r.setHours(0,0,0,0),r}function X1(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.firstDayOfWeek,n=r===void 0?0:r,s=t.firstWeekContainsDate,i=s===void 0?1:s;if(!(i>=1&&i<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7");for(var a=Du(e),o=a.getFullYear(),u=new Date(0),l=o+1;l>=o-1&&(u.setFullYear(l,0,i),u.setHours(0,0,0,0),u=J1(u,n),!(a.getTime()>=u.getTime()));l--);return u}function qh(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.firstDayOfWeek,n=r===void 0?0:r,s=t.firstWeekContainsDate,i=s===void 0?1:s,a=Du(e),o=J1(a,n),u=X1(a,{firstDayOfWeek:n,firstWeekContainsDate:i}),l=o.getTime()-u.getTime();return Math.round(l/(7*24*3600*1e3))+1}var Kh={months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],weekdaysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],firstDayOfWeek:0,firstWeekContainsDate:1},TR=/\[([^\]]+)]|YYYY|YY?|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|m{1,2}|s{1,2}|Z{1,2}|S{1,3}|w{1,2}|x|X|a|A/g;function qt(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2,r="".concat(Math.abs(e)),n=e<0?"-":"";r.length1&&arguments[1]!==void 0?arguments[1]:"",r=e>0?"-":"+",n=Math.abs(e),s=Math.floor(n/60),i=n%60;return r+qt(s,2)+t+qt(i,2)}var Gp=function(t,r,n){var s=t<12?"AM":"PM";return n?s.toLocaleLowerCase():s},Li={Y:function(t){var r=t.getFullYear();return r<=9999?"".concat(r):"+".concat(r)},YY:function(t){return qt(t.getFullYear(),4).substr(2)},YYYY:function(t){return qt(t.getFullYear(),4)},M:function(t){return t.getMonth()+1},MM:function(t){return qt(t.getMonth()+1,2)},MMM:function(t,r){return r.monthsShort[t.getMonth()]},MMMM:function(t,r){return r.months[t.getMonth()]},D:function(t){return t.getDate()},DD:function(t){return qt(t.getDate(),2)},H:function(t){return t.getHours()},HH:function(t){return qt(t.getHours(),2)},h:function(t){var r=t.getHours();return r===0?12:r>12?r%12:r},hh:function(){var t=Li.h.apply(Li,arguments);return qt(t,2)},m:function(t){return t.getMinutes()},mm:function(t){return qt(t.getMinutes(),2)},s:function(t){return t.getSeconds()},ss:function(t){return qt(t.getSeconds(),2)},S:function(t){return Math.floor(t.getMilliseconds()/100)},SS:function(t){return qt(Math.floor(t.getMilliseconds()/10),2)},SSS:function(t){return qt(t.getMilliseconds(),3)},d:function(t){return t.getDay()},dd:function(t,r){return r.weekdaysMin[t.getDay()]},ddd:function(t,r){return r.weekdaysShort[t.getDay()]},dddd:function(t,r){return r.weekdays[t.getDay()]},A:function(t,r){var n=r.meridiem||Gp;return n(t.getHours(),t.getMinutes(),!1)},a:function(t,r){var n=r.meridiem||Gp;return n(t.getHours(),t.getMinutes(),!0)},Z:function(t){return Wp(zp(t),":")},ZZ:function(t){return Wp(zp(t))},X:function(t){return Math.floor(t.getTime()/1e3)},x:function(t){return t.getTime()},w:function(t,r){return qh(t,{firstDayOfWeek:r.firstDayOfWeek,firstWeekContainsDate:r.firstWeekContainsDate})},ww:function(t,r){return qt(Li.w(t,r),2)}};function Yh(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=t?String(t):"YYYY-MM-DDTHH:mm:ss.SSSZ",s=Du(e);if(!PR(s))return"Invalid Date";var i=r.locale||Kh;return n.replace(TR,function(a,o){return o||(typeof Li[a]=="function"?"".concat(Li[a](s,i)):a)})}function Jp(e){return OR(e)||FR(e)||DR()}function DR(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function FR(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function OR(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t68?r-1:r)*100+n,Jn({},zh,n)});Je("YYYY",jR,zh);Je("M",yi,function(e){return Jn({},Fu,parseInt(e,10)-1)});Je("MM",Xn,function(e){return Jn({},Fu,parseInt(e,10)-1)});Je("MMM",Ea("monthsShort"),Ca("monthsShort",Fu));Je("MMMM",Ea("months"),Ca("months",Fu));Je("D",yi,ev);Je("DD",Xn,ev);Je(["H","h"],yi,tv);Je(["HH","hh"],Xn,tv);Je("m",yi,rv);Je("mm",Xn,rv);Je("s",yi,nv);Je("ss",Xn,nv);Je("S",Z1,function(e){return Jn({},Wh,parseInt(e,10)*100)});Je("SS",Xn,function(e){return Jn({},Wh,parseInt(e,10)*10)});Je("SSS",HR,Wh);function qR(e){return e.meridiemParse||/[ap]\.?m?\.?/i}function KR(e){return"".concat(e).toLowerCase().charAt(0)==="p"}Je(["A","a"],qR,function(e,t){var r=typeof t.isPM=="function"?t.isPM(e):KR(e);return{isPM:r}});function YR(e){var t=e.match(/([+-]|\d\d)/g)||["-","0","0"],r=IR(t,3),n=r[0],s=r[1],i=r[2],a=parseInt(s,10)*60+parseInt(i,10);return a===0?0:n==="+"?-a:+a}Je(["Z","ZZ"],LR,function(e){return{offset:YR(e)}});Je("x",Q1,function(e){return{date:new Date(parseInt(e,10))}});Je("X",VR,function(e){return{date:new Date(parseFloat(e)*1e3)}});Je("d",Z1,"weekday");Je("dd",Ea("weekdaysMin"),Ca("weekdaysMin","weekday"));Je("ddd",Ea("weekdaysShort"),Ca("weekdaysShort","weekday"));Je("dddd",Ea("weekdays"),Ca("weekdays","weekday"));Je("w",yi,"week");Je("ww",Xn,"week");function zR(e,t){if(e!==void 0&&t!==void 0){if(t){if(e<12)return e+12}else if(e===12)return 0}return e}function WR(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new Date,r=[0,0,1,0,0,0,0],n=[t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()],s=!0,i=0;i<7;i++)e[i]===void 0?r[i]=s?n[i]:r[i]:(r[i]=e[i],s=!1);return r}function GR(e,t,r,n,s,i,a){var o;return e<100&&e>=0?(o=new Date(e+400,t,r,n,s,i,a),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,r,n,s,i,a),o}function JR(){for(var e,t=arguments.length,r=new Array(t),n=0;n=0?(r[0]+=400,e=new Date(Date.UTC.apply(Date,r)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(s)):e=new Date(Date.UTC.apply(Date,r)),e}function XR(e,t,r){var n=t.match($R);if(!n)throw new Error;for(var s=n.length,i={},a=0;a2&&arguments[2]!==void 0?arguments[2]:{};try{var n=r.locale,s=n===void 0?Kh:n,i=r.backupDate,a=i===void 0?new Date:i,o=XR(e,t,s),u=o.year,l=o.month,c=o.day,f=o.hour,h=o.minute,p=o.second,d=o.millisecond,g=o.isPM,m=o.date,y=o.offset,w=o.weekday,C=o.week;if(m)return m;var k=[u,l,c,f,h,p,d];if(k[3]=zR(k[3],g),C!==void 0&&l===void 0&&c===void 0){var P=X1(u===void 0?a:new Date(u,3),{firstDayOfWeek:s.firstDayOfWeek,firstWeekContainsDate:s.firstWeekContainsDate});return new Date(P.getTime()+(C-1)*7*24*3600*1e3)}var b,_=WR(k,a);return y!==void 0?(_[6]+=y*60*1e3,b=JR.apply(void 0,Jp(_))):b=GR.apply(void 0,Jp(_)),w!==void 0&&b.getDay()!==w?new Date(NaN):b}catch(S){return new Date(NaN)}}var QR=Object.defineProperty,eI=Object.defineProperties,tI=Object.getOwnPropertyDescriptors,To=Object.getOwnPropertySymbols,iv=Object.prototype.hasOwnProperty,av=Object.prototype.propertyIsEnumerable,Zp=(e,t,r)=>t in e?QR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,_t=(e,t)=>{for(var r in t||(t={}))iv.call(t,r)&&Zp(e,r,t[r]);if(To)for(var r of To(t))av.call(t,r)&&Zp(e,r,t[r]);return e},lr=(e,t)=>eI(e,tI(t)),rI=(e,t)=>{var r={};for(var n in e)iv.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&To)for(var n of To(e))t.indexOf(n)<0&&av.call(e,n)&&(r[n]=e[n]);return r};const nI={formatLocale:Kh,yearFormat:"YYYY",monthFormat:"MMM",monthBeforeYear:!0};let Ti="en";const Ls={};Ls[Ti]=nI;function ov(e,t,r=!1){if(typeof e!="string")return Ls[Ti];let n=Ti;return Ls[e]&&(n=e),t&&(Ls[e]=t,n=e),r||(Ti=n),Ls[e]||Ls[Ti]}function yc(e){return ov(e,void 0,!0)}function Gh(e,t){if(!Array.isArray(e))return[];const r=[],n=e.length;let s=0;for(t=t||n;s{Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n])})),r}function uv(e,t){if(!Dn(e))return{};let r=e;return Dn(t)&&Object.keys(t).forEach(n=>{let s=t[n];const i=e[n];Dn(s)&&Dn(i)&&(s=uv(i,s)),r=lr(_t({},r),{[n]:s})}),r}function El(e){const t=parseInt(String(e),10);return t<10?`0${t}`:`${t}`}function sI(e){const t=/-(\w)/g;return e.replace(t,(r,n)=>n?n.toUpperCase():"")}const lv="datepicker_locale",cv="datepicker_prefixClass",hv="datepicker_getWeek";function Jh(){return Jt(lv,O0(yc()))}function iI(e){const t=et(()=>Dn(e.value)?uv(yc(),e.value):yc(e.value));return ms(lv,t),t}function aI(e){ms(cv,e)}function Nt(){return Jt(cv,"mx")}function oI(e){ms(hv,e)}function uI(){return Jt(hv,qh)}function lI(e){const t=e.style.display,r=e.style.visibility;e.style.display="block",e.style.visibility="hidden";const n=window.getComputedStyle(e),s=e.offsetWidth+parseInt(n.marginLeft,10)+parseInt(n.marginRight,10),i=e.offsetHeight+parseInt(n.marginTop,10)+parseInt(n.marginBottom,10);return e.style.display=t,e.style.visibility=r,{width:s,height:i}}function cI(e,t,r,n){let s=0,i=0,a=0,o=0;const u=e.getBoundingClientRect(),l=document.documentElement.clientWidth,c=document.documentElement.clientHeight;return n&&(a=window.pageXOffset+u.left,o=window.pageYOffset+u.top),l-u.leftgetComputedStyle(i,null).getPropertyValue(a);return/(auto|scroll)/.test(r(e,"overflow")+r(e,"overflow-y")+r(e,"overflow-x"))?e:Xh(e.parentElement,t)}let qa;function hI(){if(typeof window=="undefined")return 0;if(qa!==void 0)return qa;const e=document.createElement("div");e.style.visibility="hidden",e.style.overflow="scroll",e.style.width="100px",e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e);const t=document.createElement("div");return t.style.width="100%",e.appendChild(t),qa=e.offsetWidth-t.offsetWidth,e.parentNode.removeChild(e),qa}const e0="ontouchend"in document?"touchstart":"mousedown";function fI(e){let t=!1;return function(...n){t||(t=!0,requestAnimationFrame(()=>{t=!1,e.apply(this,n)}))}}function hn(e,t){return{setup:e,name:e.name,props:t}}function fn(e,t){return new Proxy(e,{get(n,s){const i=n[s];return i!==void 0?i:t[s]}})}const Zn=()=>e=>e,dI=(e,t)=>{const r={};for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)){const s=sI(n);let i=e[n];t.indexOf(s)!==-1&&i===""&&(i=!0),r[s]=i}return r};function pI(e,{slots:t}){const r=fn(e,{appendToBody:!0}),n=Nt(),s=tt(null),i=tt({left:"",top:""}),a=()=>{if(!r.visible||!s.value)return;const u=r.getRelativeElement();if(!u)return;const{width:l,height:c}=lI(s.value);i.value=cI(u,l,c,r.appendToBody)};ir(a,{flush:"post"}),ir(u=>{const l=r.getRelativeElement();if(!l)return;const c=Xh(l)||window,f=fI(a);c.addEventListener("scroll",f),window.addEventListener("resize",f),u(()=>{c.removeEventListener("scroll",f),window.removeEventListener("resize",f)})},{flush:"post"});const o=u=>{if(!r.visible)return;const l=u.target,c=s.value,f=r.getRelativeElement();c&&!c.contains(l)&&f&&!f.contains(l)&&r.onClickOutside(u)};return ir(u=>{document.addEventListener(e0,o),u(()=>{document.removeEventListener(e0,o)})}),()=>q(pb,{to:"body",disabled:!r.appendToBody},{default:()=>[q(jc,{name:`${n}-zoom-in-down`},{default:()=>{var u;return[r.visible&&q("div",{ref:s,class:`${n}-datepicker-main ${n}-datepicker-popup ${r.className}`,style:[_t({position:"absolute"},i.value),r.style||{}]},[(u=t.default)==null?void 0:u.call(t)])]}})]})}const gI=Zn()(["style","className","visible","appendToBody","onClickOutside","getRelativeElement"]);var mI=hn(pI,gI);const vI={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",width:"1em",height:"1em"},yI=E("path",{d:"M940.218 107.055H730.764v-60.51H665.6v60.51H363.055v-60.51H297.89v60.51H83.78c-18.617 0-32.581 13.963-32.581 32.581v805.237c0 18.618 13.964 32.582 32.582 32.582h861.09c18.619 0 32.583-13.964 32.583-32.582V139.636c-4.655-18.618-18.619-32.581-37.237-32.581zm-642.327 65.163v60.51h65.164v-60.51h307.2v60.51h65.163v-60.51h176.873v204.8H116.364v-204.8H297.89zM116.364 912.291V442.18H912.29v470.11H116.364z"},null,-1),bI=[yI];function fv(e,t){return H(),V("svg",vI,bI)}const wI={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",width:"1em",height:"1em"},xI=E("path",{d:"M810.005 274.005 572.011 512l237.994 237.995-60.01 60.01L512 572.011 274.005 810.005l-60.01-60.01L451.989 512 213.995 274.005l60.01-60.01L512 451.989l237.995-237.994z"},null,-1),SI=[xI];function _I(e,t){return H(),V("svg",wI,SI)}const EI={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"1em",height:"1em"},CI=E("path",{d:"M0 0h24v24H0z",fill:"none"},null,-1),kI=E("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"},null,-1),AI=E("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},null,-1),PI=[CI,kI,AI];function TI(e,t){return H(),V("svg",EI,PI)}function fs(e,t=0,r=1,n=0,s=0,i=0,a=0){const o=new Date(e,t,r,n,s,i,a);return e<100&&e>=0&&o.setFullYear(e),o}function sn(e){return e instanceof Date&&!isNaN(e.getTime())}function ds(e){return Array.isArray(e)&&e.length===2&&e.every(sn)&&e[0]<=e[1]}function DI(e){return Array.isArray(e)&&e.every(sn)}function Ou(...e){if(e[0]!==void 0&&e[0]!==null){const r=new Date(e[0]);if(sn(r))return r}const t=e.slice(1);return t.length?Ou(...t):new Date}function FI(e){const t=new Date(e);return t.setMonth(0,1),t.setHours(0,0,0,0),t}function t0(e){const t=new Date(e);return t.setDate(1),t.setHours(0,0,0,0),t}function qn(e){const t=new Date(e);return t.setHours(0,0,0,0),t}function OI({firstDayOfWeek:e,year:t,month:r}){const n=[],s=fs(t,r,0),i=s.getDate(),a=i-(s.getDay()+7-e)%7;for(let c=a;c<=i;c++)n.push(fs(t,r,c-i));s.setMonth(r+1,0);const o=s.getDate();for(let c=1;c<=o;c++)n.push(fs(t,r,c));const u=i-a+1,l=6*7-u-o;for(let c=1;c<=l;c++)n.push(fs(t,r,o+c));return n}function Do(e,t){const r=new Date(e),n=typeof t=="function"?t(r.getMonth()):Number(t),s=r.getFullYear(),i=fs(s,n+1,0).getDate(),a=r.getDate();return r.setMonth(n,Math.min(a,i)),r}function Us(e,t){const r=new Date(e),n=typeof t=="function"?t(r.getFullYear()):t;return r.setFullYear(n),r}function RI(e,t){const r=new Date(t),n=new Date(e),s=r.getFullYear()-n.getFullYear(),i=r.getMonth()-n.getMonth();return s*12+i}function Fo(e,t){const r=new Date(e),n=new Date(t);return r.setHours(n.getHours(),n.getMinutes(),n.getSeconds()),r}function II(e,{slots:t}){const r=fn(e,{editable:!0,disabled:!1,clearable:!0,range:!1,multiple:!1}),n=Nt(),s=tt(null),i=et(()=>r.separator||(r.range?" ~ ":",")),a=p=>r.range?ds(p):r.multiple?DI(p):sn(p),o=p=>Array.isArray(p)?p.some(d=>r.disabledDate(d)):r.disabledDate(p),u=et(()=>s.value!==null?s.value:typeof r.renderInputText=="function"?r.renderInputText(r.value):a(r.value)?Array.isArray(r.value)?r.value.map(p=>r.formatDate(p)).join(i.value):r.formatDate(r.value):""),l=p=>{var d;p&&p.stopPropagation(),r.onChange(r.range?[null,null]:null),(d=r.onClear)==null||d.call(r)},c=()=>{var p;if(!r.editable||s.value===null)return;const d=s.value.trim();if(s.value=null,d===""){l();return}let g;if(r.range){let m=d.split(i.value);m.length!==2&&(m=d.split(i.value.trim())),g=m.map(y=>r.parseDate(y.trim()))}else r.multiple?g=d.split(i.value).map(m=>r.parseDate(m.trim())):g=r.parseDate(d);a(g)&&!o(g)?r.onChange(g):(p=r.onInputError)==null||p.call(r,d)},f=p=>{s.value=typeof p=="string"?p:p.target.value},h=p=>{const{keyCode:d}=p;d===9?r.onBlur():d===13&&c()};return()=>{var p,d,g;const m=!r.disabled&&r.clearable&&u.value,y=lr(_t({name:"date",type:"text",autocomplete:"off",value:u.value,class:r.inputClass||`${n}-input`,readonly:!r.editable,disabled:r.disabled,placeholder:r.placeholder},r.inputAttr),{onFocus:r.onFocus,onKeydown:h,onInput:f,onChange:c});return q("div",{class:`${n}-input-wrapper`,onClick:r.onClick},[((p=t.input)==null?void 0:p.call(t,y))||q("input",y,null),m?q("i",{class:`${n}-icon-clear`,onClick:l},[((d=t["icon-clear"])==null?void 0:d.call(t))||q(_I,null,null)]):null,q("i",{class:`${n}-icon-calendar`},[((g=t["icon-calendar"])==null?void 0:g.call(t))||q(fv,null,null)])])}}const Zh=Zn()(["placeholder","editable","disabled","clearable","inputClass","inputAttr","range","multiple","separator","renderInputText","onInputError","onClear"]),NI=Zn()(["value","formatDate","parseDate","disabledDate","onChange","onFocus","onBlur","onClick",...Zh]);var MI=hn(II,NI);function BI(e,{slots:t}){var r;const n=fn(e,{prefixClass:"mx",valueType:"date",format:"YYYY-MM-DD",type:"date",disabledDate:()=>!1,disabledTime:()=>!1,confirmText:"OK"});aI(n.prefixClass),oI(((r=n.formatter)==null?void 0:r.getWeek)||qh);const s=iI(py(e,"lang")),i=tt(),a=()=>i.value,o=tt(!1),u=et(()=>!n.disabled&&(typeof n.open=="boolean"?n.open:o.value)),l=()=>{var b,_;n.disabled||u.value||(o.value=!0,(b=n["onUpdate:open"])==null||b.call(n,!0),(_=n.onOpen)==null||_.call(n))},c=()=>{var b,_;u.value&&(o.value=!1,(b=n["onUpdate:open"])==null||b.call(n,!1),(_=n.onClose)==null||_.call(n))},f=(b,_)=>(_=_||n.format,Dn(n.formatter)&&typeof n.formatter.stringify=="function"?n.formatter.stringify(b,_):Yh(b,_,{locale:s.value.formatLocale})),h=(b,_)=>{if(_=_||n.format,Dn(n.formatter)&&typeof n.formatter.parse=="function")return n.formatter.parse(b,_);const S=new Date;return ZR(b,_,{locale:s.value.formatLocale,backupDate:S})},p=b=>{switch(n.valueType){case"date":return b instanceof Date?new Date(b.getTime()):new Date(NaN);case"timestamp":return typeof b=="number"?new Date(b):new Date(NaN);case"format":return typeof b=="string"?h(b):new Date(NaN);default:return typeof b=="string"?h(b,n.valueType):new Date(NaN)}},d=b=>{if(!sn(b))return null;switch(n.valueType){case"date":return b;case"timestamp":return b.getTime();case"format":return f(b);default:return f(b,n.valueType)}},g=et(()=>{const b=n.value;return n.range?(Array.isArray(b)?b.slice(0,2):[null,null]).map(p):n.multiple?(Array.isArray(b)?b:[]).map(p):p(b)}),m=(b,_,S=!0)=>{var x,A;const T=Array.isArray(b)?b.map(d):d(b);return(x=n["onUpdate:value"])==null||x.call(n,T),(A=n.onChange)==null||A.call(n,T,_),S&&c(),T},y=tt(new Date);ir(()=>{u.value&&(y.value=g.value)});const w=(b,_)=>{n.confirm?y.value=b:m(b,_,!n.multiple&&(_===n.type||_==="time"))},C=()=>{var b;const _=m(y.value);(b=n.onConfirm)==null||b.call(n,_)},k=b=>n.disabledDate(b)||n.disabledTime(b),P=b=>{var _;const{prefixClass:S}=n;return q("div",{class:`${S}-datepicker-sidebar`},[(_=t.sidebar)==null?void 0:_.call(t,b),(n.shortcuts||[]).map((x,A)=>q("button",{key:A,"data-index":A,type:"button",class:`${S}-btn ${S}-btn-text ${S}-btn-shortcut`,onClick:()=>{var T;const D=(T=x.onClick)==null?void 0:T.call(x);D&&m(D)}},[x.text]))])};return()=>{var b,_;const{prefixClass:S,disabled:x,confirm:A,range:T,popupClass:D,popupStyle:N,appendToBody:F}=n,R={value:y.value,"onUpdate:value":w,emit:m},M=t.header&&q("div",{class:`${S}-datepicker-header`},[t.header(R)]),$=(t.footer||A)&&q("div",{class:`${S}-datepicker-footer`},[(b=t.footer)==null?void 0:b.call(t,R),A&&q("button",{type:"button",class:`${S}-btn ${S}-datepicker-btn-confirm`,onClick:C},[n.confirmText])]),ae=(_=t.content)==null?void 0:_.call(t,R),ve=(t.sidebar||n.shortcuts)&&P(R);return q("div",{ref:i,class:{[`${S}-datepicker`]:!0,[`${S}-datepicker-range`]:T,disabled:x}},[q(MI,lr(_t({},en(n,Zh)),{value:g.value,formatDate:f,parseDate:h,disabledDate:k,onChange:m,onClick:l,onFocus:l,onBlur:c}),en(t,["icon-calendar","icon-clear","input"])),q(mI,{className:D,style:N,visible:u.value,appendToBody:F,getRelativeElement:a,onClickOutside:c},{default:()=>[ve,q("div",{class:`${S}-datepicker-content`},[M,ae,$])]})])}}const $I=Zn()(["value","valueType","type","format","formatter","lang","prefixClass","appendToBody","open","popupClass","popupStyle","confirm","confirmText","shortcuts","disabledDate","disabledTime","onOpen","onClose","onConfirm","onChange","onUpdate:open","onUpdate:value"]),HI=[...$I,...Zh];var r0=hn(BI,HI);function Ka(e){var t=e,{value:r}=t,n=rI(t,["value"]);const s=Nt();return q("button",lr(_t({},n),{type:"button",class:`${s}-btn ${s}-btn-text ${s}-btn-icon-${r}`}),[q("i",{class:`${s}-icon-${r}`},null)])}function Qh({type:e,calendar:t,onUpdateCalendar:r},{slots:n}){var s;const i=Nt(),a=()=>{r(Do(t,h=>h-1))},o=()=>{r(Do(t,h=>h+1))},u=()=>{r(Us(t,h=>h-1))},l=()=>{r(Us(t,h=>h+1))},c=()=>{r(Us(t,h=>h-10))},f=()=>{r(Us(t,h=>h+10))};return q("div",{class:`${i}-calendar-header`},[q(Ka,{value:"double-left",onClick:e==="year"?c:u},null),e==="date"&&q(Ka,{value:"left",onClick:a},null),q(Ka,{value:"double-right",onClick:e==="year"?f:l},null),e==="date"&&q(Ka,{value:"right",onClick:o},null),q("span",{class:`${i}-calendar-header-label`},[(s=n.default)==null?void 0:s.call(n)])])}function jI({calendar:e,isWeekMode:t,showWeekNumber:r,titleFormat:n,getWeekActive:s,getCellClasses:i,onSelect:a,onUpdatePanel:o,onUpdateCalendar:u,onDateMouseEnter:l,onDateMouseLeave:c}){const f=Nt(),h=uI(),p=Jh().value,{yearFormat:d,monthBeforeYear:g,monthFormat:m="MMM",formatLocale:y}=p,w=y.firstDayOfWeek||0;let C=p.days||y.weekdaysMin;C=C.concat(C).slice(w,w+7);const k=e.getFullYear(),P=e.getMonth(),b=Gh(OI({firstDayOfWeek:w,year:k,month:P}),7),_=(R,M)=>Yh(R,M,{locale:p.formatLocale}),S=R=>{o(R)},x=R=>{const M=R.getAttribute("data-index"),[$,ae]=M.split(",").map(de=>parseInt(de,10)),ve=b[$][ae];return new Date(ve)},A=R=>{a(x(R.currentTarget))},T=R=>{l&&l(x(R.currentTarget))},D=R=>{c&&c(x(R.currentTarget))},N=q("button",{type:"button",class:`${f}-btn ${f}-btn-text ${f}-btn-current-year`,onClick:()=>S("year")},[_(e,d)]),F=q("button",{type:"button",class:`${f}-btn ${f}-btn-text ${f}-btn-current-month`,onClick:()=>S("month")},[_(e,m)]);return r=typeof r=="boolean"?r:t,q("div",{class:[`${f}-calendar ${f}-calendar-panel-date`,{[`${f}-calendar-week-mode`]:t}]},[q(Qh,{type:"date",calendar:e,onUpdateCalendar:u},{default:()=>[g?[F,N]:[N,F]]}),q("div",{class:`${f}-calendar-content`},[q("table",{class:`${f}-table ${f}-table-date`},[q("thead",null,[q("tr",null,[r&&q("th",{class:`${f}-week-number-header`},null),C.map(R=>q("th",{key:R},[R]))])]),q("tbody",null,[b.map((R,M)=>q("tr",{key:M,class:[`${f}-date-row`,{[`${f}-active-week`]:s(R)}]},[r&&q("td",{class:`${f}-week-number`,"data-index":`${M},0`,onClick:A},[q("div",null,[h(R[0])])]),R.map(($,ae)=>q("td",{key:ae,class:["cell",i($)],title:_($,n),"data-index":`${M},${ae}`,onClick:A,onMouseenter:T,onMouseleave:D},[q("div",null,[$.getDate()])]))]))])])])])}function LI({calendar:e,getCellClasses:t,onSelect:r,onUpdateCalendar:n,onUpdatePanel:s}){const i=Nt(),a=Jh().value,o=a.months||a.formatLocale.monthsShort,u=c=>fs(e.getFullYear(),c),l=c=>{const h=c.currentTarget.getAttribute("data-month");r(u(parseInt(h,10)))};return q("div",{class:`${i}-calendar ${i}-calendar-panel-month`},[q(Qh,{type:"month",calendar:e,onUpdateCalendar:n},{default:()=>[q("button",{type:"button",class:`${i}-btn ${i}-btn-text ${i}-btn-current-year`,onClick:()=>s("year")},[e.getFullYear()])]}),q("div",{class:`${i}-calendar-content`},[q("table",{class:`${i}-table ${i}-table-month`},[Gh(o,3).map((c,f)=>q("tr",{key:f},[c.map((h,p)=>{const d=f*3+p;return q("td",{key:p,class:["cell",t(u(d))],"data-month":d,onClick:l},[q("div",null,[h])])})]))])])])}const VI=e=>{const t=Math.floor(e.getFullYear()/10)*10,r=[];for(let n=0;n<10;n++)r.push(t+n);return Gh(r,2)};function UI({calendar:e,getCellClasses:t=()=>[],getYearPanel:r=VI,onSelect:n,onUpdateCalendar:s}){const i=Nt(),a=f=>fs(f,0),o=f=>{const p=f.currentTarget.getAttribute("data-year");n(a(parseInt(p,10)))},u=r(new Date(e)),l=u[0][0],c=Qp(Qp(u));return q("div",{class:`${i}-calendar ${i}-calendar-panel-year`},[q(Qh,{type:"year",calendar:e,onUpdateCalendar:s},{default:()=>[q("span",null,[l]),q("span",{class:`${i}-calendar-decade-separator`},null),q("span",null,[c])]}),q("div",{class:`${i}-calendar-content`},[q("table",{class:`${i}-table ${i}-table-year`},[u.map((f,h)=>q("tr",{key:h},[f.map((p,d)=>q("td",{key:d,class:["cell",t(a(p))],"data-year":p,onClick:o},[q("div",null,[p])]))]))])])])}function qI(e){const t=fn(e,{defaultValue:qn(new Date),type:"date",disabledDate:()=>!1,getClasses:()=>[],titleFormat:"YYYY-MM-DD"}),r=et(()=>(Array.isArray(t.value)?t.value:[t.value]).filter(sn).map(w=>t.type==="year"?FI(w):t.type==="month"?t0(w):qn(w))),n=tt(new Date);ir(()=>{let y=t.calendar;if(!sn(y)){const{length:w}=r.value;y=Ou(w>0?r.value[w-1]:t.defaultValue)}n.value=t0(y)});const s=y=>{var w;n.value=y,(w=t.onCalendarChange)==null||w.call(t,y)},i=tt("date");ir(()=>{const y=["date","month","year"],w=Math.max(y.indexOf(t.type),y.indexOf(t.defaultPanel));i.value=w!==-1?y[w]:"date"});const a=y=>{var w;const C=i.value;i.value=y,(w=t.onPanelChange)==null||w.call(t,y,C)},o=y=>t.disabledDate(new Date(y),r.value),u=(y,w)=>{var C,k,P;if(!o(y))if((C=t.onPick)==null||C.call(t,y),t.multiple===!0){const b=r.value.filter(_=>_.getTime()!==y.getTime());b.length===r.value.length&&b.push(y),(k=t["onUpdate:value"])==null||k.call(t,b,w)}else(P=t["onUpdate:value"])==null||P.call(t,y,w)},l=y=>{u(y,t.type==="week"?"week":"date")},c=y=>{if(t.type==="year")u(y,"year");else if(s(y),a("month"),t.partialUpdate&&r.value.length===1){const w=Us(r.value[0],y.getFullYear());u(w,"year")}},f=y=>{if(t.type==="month")u(y,"month");else if(s(y),a("date"),t.partialUpdate&&r.value.length===1){const w=Do(Us(r.value[0],y.getFullYear()),y.getMonth());u(w,"month")}},h=(y,w=[])=>(o(y)?w.push("disabled"):r.value.some(C=>C.getTime()===y.getTime())&&w.push("active"),w.concat(t.getClasses(y,r.value,w.join(" ")))),p=y=>{const w=y.getMonth()!==n.value.getMonth(),C=[];return y.getTime()===new Date().setHours(0,0,0,0)&&C.push("today"),w&&C.push("not-current-month"),h(y,C)},d=y=>t.type!=="month"?n.value.getMonth()===y.getMonth()?"active":"":h(y),g=y=>t.type!=="year"?n.value.getFullYear()===y.getFullYear()?"active":"":h(y),m=y=>{if(t.type!=="week")return!1;const w=y[0].getTime(),C=y[6].getTime();return r.value.some(k=>{const P=k.getTime();return P>=w&&P<=C})};return()=>i.value==="year"?q(UI,{calendar:n.value,getCellClasses:g,getYearPanel:t.getYearPanel,onSelect:c,onUpdateCalendar:s},null):i.value==="month"?q(LI,{calendar:n.value,getCellClasses:d,onSelect:f,onUpdatePanel:a,onUpdateCalendar:s},null):q(jI,{isWeekMode:t.type==="week",showWeekNumber:t.showWeekNumber,titleFormat:t.titleFormat,calendar:n.value,getCellClasses:p,getWeekActive:m,onSelect:l,onUpdatePanel:a,onUpdateCalendar:s,onDateMouseEnter:t.onDateMouseEnter,onDateMouseLeave:t.onDateMouseLeave},null)}const Ru=Zn()(["type","value","defaultValue","defaultPanel","disabledDate","getClasses","calendar","multiple","partialUpdate","showWeekNumber","titleFormat","getYearPanel","onDateMouseEnter","onDateMouseLeave","onCalendarChange","onPanelChange","onUpdate:value","onPick"]);var Iu=hn(qI,Ru);const n0=(e,t)=>{const r=e.getTime();let[n,s]=t.map(i=>i.getTime());return n>s&&([n,s]=[s,n]),r>n&&r{let m=Array.isArray(t.defaultValue)?t.defaultValue:[t.defaultValue,t.defaultValue];return m=m.map(y=>qn(y)),ds(m)?m:[new Date,new Date].map(y=>qn(y))}),s=tt([new Date(NaN),new Date(NaN)]);ir(()=>{ds(t.value)&&(s.value=t.value)});const i=(m,y)=>{var w;const[C,k]=s.value;sn(C)&&!sn(k)?(C.getTime()>m.getTime()?s.value=[m,C]:s.value=[C,m],(w=t["onUpdate:value"])==null||w.call(t,s.value,y)):s.value=[m,new Date(NaN)]},a=tt([new Date,new Date]),o=et(()=>ds(t.calendar)?t.calendar:a.value),u=et(()=>t.type==="year"?10*12:t.type==="month"?1*12:1),l=(m,y)=>{var w;const C=RI(m[0],m[1]),k=u.value-C;if(k>0){const P=y===1?0:1;m[P]=Do(m[P],b=>b+(P===0?-k:k))}a.value=m,(w=t.onCalendarChange)==null||w.call(t,m,y)},c=m=>{l([m,o.value[1]],0)},f=m=>{l([o.value[0],m],1)};ir(()=>{const m=ds(t.value)?t.value:n.value;l(m.slice(0,2))});const h=tt(null),p=m=>h.value=m,d=()=>h.value=null,g=(m,y,w)=>{const C=t.getClasses?t.getClasses(m,y,w):[],k=Array.isArray(C)?C:[C];return/disabled|active/.test(w)?k:(y.length===2&&n0(m,y)&&k.push("in-range"),y.length===1&&h.value&&n0(m,[y[0],h.value])?k.concat("hover-in-range"):k)};return()=>{const m=o.value.map((y,w)=>{const C=lr(_t({},t),{calendar:y,value:s.value,defaultValue:n.value[w],getClasses:g,partialUpdate:!1,multiple:!1,"onUpdate:value":i,onCalendarChange:w===0?c:f,onDateMouseLeave:d,onDateMouseEnter:p});return q(Iu,C,null)});return q("div",{class:`${r}-calendar-range`},[m])}}const ef=Ru;var tf=hn(KI,ef);const dv=Er({setup(e,{slots:t}){const r=Nt(),n=tt(),s=tt(""),i=tt("");Yi(()=>{if(!n.value)return;const d=n.value,g=d.clientHeight*100/d.scrollHeight;s.value=g<100?`${g}%`:""});const o=hI(),u=d=>{const g=d.currentTarget,{scrollHeight:m,scrollTop:y}=g;i.value=`${y*100/m}%`};let l=!1,c=0;const f=d=>{d.stopImmediatePropagation();const g=d.currentTarget,{offsetTop:m}=g;l=!0,c=d.clientY-m},h=d=>{if(!l||!n.value)return;const{clientY:g}=d,{scrollHeight:m,clientHeight:y}=n.value,C=(g-c)*m/y;n.value.scrollTop=C},p=()=>{l=!1};return Yi(()=>{document.addEventListener("mousemove",h),document.addEventListener("mouseup",p)}),Nc(()=>{document.addEventListener("mousemove",h),document.addEventListener("mouseup",p)}),()=>{var d;return q("div",{class:`${r}-scrollbar`,style:{position:"relative",overflow:"hidden"}},[q("div",{ref:n,class:`${r}-scrollbar-wrap`,style:{marginRight:`-${o}px`},onScroll:u},[(d=t.default)==null?void 0:d.call(t)]),q("div",{class:`${r}-scrollbar-track`},[q("div",{class:`${r}-scrollbar-thumb`,style:{height:s.value,top:i.value},onMousedown:f},null)])])}}});function YI({options:e,getClasses:t,onSelect:r}){const n=Nt(),s=i=>{const a=i.target,o=i.currentTarget;if(a.tagName.toUpperCase()!=="LI")return;const u=o.getAttribute("data-type"),l=parseInt(o.getAttribute("data-index"),10),c=parseInt(a.getAttribute("data-index"),10),f=e[l].list[c].value;r(f,u)};return q("div",{class:`${n}-time-columns`},[e.map((i,a)=>q(dv,{key:i.type,class:`${n}-time-column`},{default:()=>[q("ul",{class:`${n}-time-list`,"data-index":a,"data-type":i.type,onClick:s},[i.list.map((o,u)=>q("li",{key:o.text,"data-index":u,class:[`${n}-time-item`,t(o.value,i.type)]},[o.text]))])]}))])}function zI(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Gi(e)}function WI(e){let t;const r=Nt();return q(dv,null,zI(t=e.options.map(n=>q("div",{key:n.text,class:[`${r}-time-option`,e.getClasses(n.value,"time")],onClick:()=>e.onSelect(n.value,"time")},[n.text])))?t:{default:()=>[t]})}function Cl({length:e,step:t=1,options:r}){if(Array.isArray(r))return r.filter(s=>s>=0&&s=12;return r&&o.push({type:"hour",list:Cl({length:i?12:24,step:t.hourStep,options:t.hourOptions}).map(l=>{const c=l===0&&i?"12":El(l),f=new Date(e);return f.setHours(u?l+12:l),{value:f,text:c}})}),n&&o.push({type:"minute",list:Cl({length:60,step:t.minuteStep,options:t.minuteOptions}).map(l=>{const c=new Date(e);return c.setMinutes(l),{value:c,text:El(l)}})}),s&&o.push({type:"second",list:Cl({length:60,step:t.secondStep,options:t.secondOptions}).map(l=>{const c=new Date(e);return c.setSeconds(l),{value:c,text:El(l)}})}),i&&o.push({type:"ampm",list:["AM","PM"].map((l,c)=>{const f=new Date(e);return f.setHours(f.getHours()%12+c*12),{text:l,value:f}})}),o}function kl(e=""){const t=e.split(":");if(t.length>=2){const r=parseInt(t[0],10),n=parseInt(t[1],10);return{hours:r,minutes:n}}return null}function JI({date:e,option:t,format:r,formatDate:n}){const s=[];if(typeof t=="function")return t()||[];const i=kl(t.start),a=kl(t.end),o=kl(t.step),u=t.format||r;if(i&&a&&o){const l=i.minutes+i.hours*60,c=a.minutes+a.hours*60,f=o.minutes+o.hours*60,h=Math.floor((c-l)/f);for(let p=0;p<=h;p++){const d=l+p*f,g=Math.floor(d/60),m=d%60,y=new Date(e);y.setHours(g,m,0),s.push({value:y,text:n(y,u)})}}return s}const pv=(e,t,r=0)=>{if(r<=0){requestAnimationFrame(()=>{e.scrollTop=t});return}const s=(t-e.scrollTop)/r*10;requestAnimationFrame(()=>{const i=e.scrollTop+s;if(i>=t){e.scrollTop=t;return}e.scrollTop=i,pv(e,t,r-10)})};function XI(e){const t=fn(e,{defaultValue:qn(new Date),format:"HH:mm:ss",timeTitleFormat:"YYYY-MM-DD",disabledTime:()=>!1,scrollDuration:100}),r=Nt(),n=Jh(),s=(g,m)=>Yh(g,m,{locale:n.value.formatLocale}),i=tt(new Date);ir(()=>{i.value=Ou(t.value,t.defaultValue)});const a=g=>Array.isArray(g)?g.every(m=>t.disabledTime(new Date(m))):t.disabledTime(new Date(g)),o=g=>{const m=new Date(g);return a([m.getTime(),m.setMinutes(0,0,0),m.setMinutes(59,59,999)])},u=g=>{const m=new Date(g);return a([m.getTime(),m.setSeconds(0,0),m.setSeconds(59,999)])},l=g=>{const m=new Date(g),y=m.getHours()<12?0:12,w=y+11;return a([m.getTime(),m.setHours(y,0,0,0),m.setHours(w,59,59,999)])},c=(g,m)=>m==="hour"?o(g):m==="minute"?u(g):m==="ampm"?l(g):a(g),f=(g,m)=>{var y;if(!c(g,m)){const w=new Date(g);i.value=w,a(w)||(y=t["onUpdate:value"])==null||y.call(t,w,m)}},h=(g,m)=>c(g,m)?"disabled":g.getTime()===i.value.getTime()?"active":"",p=tt(),d=g=>{if(!p.value)return;const m=p.value.querySelectorAll(".active");for(let y=0;yd(0)),zs(i,()=>d(t.scrollDuration),{flush:"post"}),()=>{let g;return t.timePickerOptions?g=q(WI,{onSelect:f,getClasses:h,options:JI({date:i.value,format:t.format,option:t.timePickerOptions,formatDate:s})},null):g=q(YI,{options:GI(i.value,t),onSelect:f,getClasses:h},null),q("div",{class:`${r}-time`,ref:p},[t.showTimeHeader&&q("div",{class:`${r}-time-header`},[q("button",{type:"button",class:`${r}-btn ${r}-btn-text ${r}-time-header-title`,onClick:t.onClickTitle},[s(i.value,t.timeTitleFormat)])]),q("div",{class:`${r}-time-content`},[g])])}}const Nu=Zn()(["value","defaultValue","format","timeTitleFormat","showTimeHeader","disabledTime","timePickerOptions","hourOptions","minuteOptions","secondOptions","hourStep","minuteStep","secondStep","showHour","showMinute","showSecond","use12h","scrollDuration","onClickTitle","onUpdate:value"]);var aa=hn(XI,Nu);function ZI(e){const t=fn(e,{defaultValue:qn(new Date),disabledTime:()=>!1}),r=Nt(),n=tt([new Date(NaN),new Date(NaN)]);ir(()=>{ds(t.value)?n.value=t.value:n.value=[new Date(NaN),new Date(NaN)]});const s=(l,c)=>{var f;(f=t["onUpdate:value"])==null||f.call(t,n.value,l==="time"?"time-range":l,c)},i=(l,c)=>{n.value[0]=l,n.value[1].getTime()>=l.getTime()||(n.value[1]=l),s(c,0)},a=(l,c)=>{n.value[1]=l,n.value[0].getTime()<=l.getTime()||(n.value[0]=l),s(c,1)},o=l=>t.disabledTime(l,0),u=l=>l.getTime(){const l=Array.isArray(t.defaultValue)?t.defaultValue:[t.defaultValue,t.defaultValue];return q("div",{class:`${r}-time-range`},[q(aa,lr(_t({},t),{"onUpdate:value":i,value:n.value[0],defaultValue:l[0],disabledTime:o}),null),q(aa,lr(_t({},t),{"onUpdate:value":a,value:n.value[1],defaultValue:l[1],disabledTime:u}),null)])}}const rf=Nu;var nf=hn(ZI,rf);function gv(e){const t=tt(!1),r=()=>{var i;t.value=!1,(i=e.onShowTimePanelChange)==null||i.call(e,!1)},n=()=>{var i;t.value=!0,(i=e.onShowTimePanelChange)==null||i.call(e,!0)};return{timeVisible:et(()=>typeof e.showTimePanel=="boolean"?e.showTimePanel:t.value),openTimePanel:n,closeTimePanel:r}}function QI(e){const t=fn(e,{disabledTime:()=>!1,defaultValue:qn(new Date)}),r=tt(t.value);ir(()=>{r.value=t.value});const{openTimePanel:n,closeTimePanel:s,timeVisible:i}=gv(t),a=(o,u)=>{var l;u==="date"&&n();let c=Fo(o,Ou(t.value,t.defaultValue));if(t.disabledTime(new Date(c))&&(c=Fo(o,t.defaultValue),t.disabledTime(new Date(c)))){r.value=c;return}(l=t["onUpdate:value"])==null||l.call(t,c,u)};return()=>{const o=Nt(),u=lr(_t({},en(t,Ru)),{multiple:!1,type:"date",value:r.value,"onUpdate:value":a}),l=lr(_t({},en(t,Nu)),{showTimeHeader:!0,value:r.value,"onUpdate:value":t["onUpdate:value"],onClickTitle:s});return q("div",{class:`${o}-date-time`},[q(Iu,u,null),i.value&&q(aa,l,null)])}}const mv=Zn()(["showTimePanel","onShowTimePanelChange"]),e7=[...mv,...Ru,...Nu];var vv=hn(QI,e7);function t7(e){const t=fn(e,{defaultValue:qn(new Date),disabledTime:()=>!1}),r=tt(t.value);ir(()=>{r.value=t.value});const{openTimePanel:n,closeTimePanel:s,timeVisible:i}=gv(t),a=(o,u)=>{var l;u==="date"&&n();const c=Array.isArray(t.defaultValue)?t.defaultValue:[t.defaultValue,t.defaultValue];let f=o.map((h,p)=>{const d=ds(t.value)?t.value[p]:c[p];return Fo(h,d)});if(f[1].getTime()Fo(h,c[p])),f.some(t.disabledTime))){r.value=f;return}(l=t["onUpdate:value"])==null||l.call(t,f,u)};return()=>{const o=Nt(),u=lr(_t({},en(t,ef)),{type:"date",value:r.value,"onUpdate:value":a}),l=lr(_t({},en(t,rf)),{showTimeHeader:!0,value:r.value,"onUpdate:value":t["onUpdate:value"],onClickTitle:s});return q("div",{class:`${o}-date-time-range`},[q(tf,u,null),i.value&&q(nf,l,null)])}}const r7=[...mv,...rf,...ef];var yv=hn(t7,r7);const n7=Zn()(["range","open","appendToBody","clearable","confirm","disabled","editable","multiple","partialUpdate","showHour","showMinute","showSecond","showTimeHeader","showTimePanel","showWeekNumber","use12h"]),s0={date:"YYYY-MM-DD",datetime:"YYYY-MM-DD HH:mm:ss",year:"YYYY",month:"YYYY-MM",time:"HH:mm:ss",week:"w"};function bv(e,{slots:t}){const r=e.type||"date",n=e.format||s0[r]||s0.date,s=lr(_t({},dI(e,n7)),{type:r,format:n});return q(r0,en(s,r0.props),_t({content:i=>{if(s.range){const a=r==="time"?nf:r==="datetime"?yv:tf;return Ji(a,en(_t(_t({},s),i),a.props))}else{const a=r==="time"?aa:r==="datetime"?vv:Iu;return Ji(a,en(_t(_t({},s),i),a.props))}},"icon-calendar":()=>q(r==="time"?TI:fv,null,null)},t))}const s7={locale:ov,install:e=>{e.component("DatePicker",bv)}};var wv=Object.assign(bv,s7,{Calendar:Iu,CalendarRange:tf,TimePanel:aa,TimeRange:nf,DateTime:vv,DateTimeRange:yv});const i7={name:"posOpen",components:{DatePicker:wv,Badge:Hh},setup(){const e=fr(),t=W1();return{invoiceData:e,posOpen:t}},mounted(){this.posOpen.setFormattedDate()}},a7={class:"mt-10 flex items-center justify-between"},o7={class:"flex items-center"},u7=E("h3",{class:"mr-3 text-lg font-semibold text-gray-900 dark:text-white"}," POS Opening Entry ",-1),l7={class:"text-xs"},c7={class:"flex space-x-4"},h7={class:"mb-6 mt-6 grid gap-6 md:grid-cols-2"},f7=E("label",{for:"startDate",class:"mb-2 block text-sm font-medium text-gray-900 dark:text-white"},"Period Start Date",-1),d7=E("label",{for:"postingDate",class:"mb-2 block text-sm font-medium text-gray-900 dark:text-white"},[E("label",{for:"postingDate",class:"mb-2 block text-sm font-medium text-gray-900 dark:text-white"},"Posting Date")],-1),p7=E("hr",{class:"my-6 border-t border-gray-300"},null,-1),g7={class:"mb-6 mt-6 grid gap-6 md:grid-cols-2"},m7=E("label",{for:"company",class:"mb-2 block text-sm font-medium text-gray-900 dark:text-white"},"Company",-1),v7=E("label",{for:"cashier",class:"mb-2 block text-sm font-medium text-gray-900 dark:text-white"},"Cashier",-1),y7=E("label",{for:"posProfile",class:"mb-2 block text-sm font-medium text-gray-900 dark:text-white"},"POS Profile",-1),b7=E("label",{for:"branch",class:"mb-2 block text-sm font-medium text-gray-900 dark:text-white"},"Branch",-1),w7=E("hr",{class:"my-6 border-t border-gray-300"},null,-1),x7=E("h3",{class:"mb-3 text-base font-semibold text-gray-900 dark:text-white"}," Opening Balance Details ",-1),S7={class:"relative overflow-x-auto shadow-md sm:rounded-lg"},_7={class:"w-full text-left text-sm text-gray-500 dark:text-gray-400"},E7=E("thead",{class:"bg-gray-50 text-base font-semibold uppercase text-gray-900 dark:text-white"},[E("tr",null,[E("th",{scope:"col",class:"px-6 py-3"},"Mode of Payment"),E("th",{scope:"col",class:"px-6 py-3 text-center"},"Opening Amount"),E("th",{scope:"col",class:"px-6 py-3"})])],-1),C7={scope:"row",class:"whitespace-nowrap px-6 py-4 font-medium text-gray-900 dark:text-white"},k7={class:"px-6 py-4 text-center font-medium text-gray-900 dark:text-white"},A7=["onUpdate:modelValue","onInput"],P7={class:"px-6 py-4"},T7=["onClick"],D7=E("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25",height:"25",fill:"currentColor border",class:"bi bi-trash",viewBox:"0 0 16 16"},[E("path",{d:"M5.5 5.5A.5.5 0 0 1 6 6v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5Zm2.5 0a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5Zm3 .5a.5.5 0 0 0-1 0v6a.5.5 0 0 0 1 0V6Z"}),E("path",{d:"M14.5 3a1 1 0 0 1-1 1H13v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V4h-.5a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1H6a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1h3.5a1 1 0 0 1 1 1v1ZM4.118 4 4 4.059V13a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V4.059L11.882 4H4.118ZM2.5 3h11V2h-11v1Z"})],-1),F7=[D7],O7=E("hr",{class:"my-6 border-t border-gray-300"},null,-1),R7={key:0,class:"fixed inset-0 mt-20 z-10 overflow-y-auto bg-gray-100"},I7={class:"mt-3 flex items-center justify-center"},N7={class:"w-full rounded-lg bg-white p-6 shadow-lg md:max-w-md"},M7={class:"flex items-center justify-between"},B7=E("h3",{class:"text-xl text-gray-900 dark:text-white"},"Confirm",-1),$7=E("span",{class:"sr-only"},"Close",-1),H7=E("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"},null,-1),j7=[H7],L7={class:"mt-5 block text-left text-base text-gray-900 dark:text-white"},V7={class:"flex justify-end"};function U7(e,t,r,n,s,i){const a=$t("Badge"),o=$t("date-picker");return H(),V(Te,null,[E("div",a7,[E("div",o7,[u7,this.posOpen.isPosOpen!==null?(H(),on(a,{key:0,type:this.posOpen.getBadgeType()},{default:Wt(()=>[E("span",l7,ye(this.posOpen.getBadgeText()),1)]),_:1},8,["type"])):ue("",!0)]),E("div",c7,[this.posOpen.posOpencreation?(H(),V("button",{key:0,onClick:t[0]||(t[0]=u=>this.posOpen.savePosOpening()),class:"rounded-md bg-blue-500 px-4 py-2 text-white hover:bg-blue-600 focus:outline-none"}," Save ")):ue("",!0),this.posOpen.posOpenSaved?(H(),V("button",{key:1,onClick:t[1]||(t[1]=u=>this.posOpen.showSumbitPosOpenModal()),class:"rounded-md bg-blue-500 px-4 py-2 text-white hover:bg-blue-600 focus:outline-none"}," Submit ")):ue("",!0)])]),E("div",h7,[E("div",null,[f7,q(o,{value:this.posOpen.startDate,"onUpdate:value":t[2]||(t[2]=u=>this.posOpen.startDate=u),"default-value":new Date,class:"my-custom-date-picker",type:"datetime"},null,8,["value","default-value"])]),E("div",null,[d7,_e(E("input",{"onUpdate:modelValue":t[3]||(t[3]=u=>this.posOpen.postingDate=u),readonly:"",class:"block w-full rounded-md border border-gray-300 text-sm text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-blue-500 dark:focus:ring-blue-500",type:"text"},null,512),[[Ae,this.posOpen.postingDate]])])]),p7,E("div",g7,[E("div",null,[m7,_e(E("input",{type:"text",id:"company","onUpdate:modelValue":t[4]||(t[4]=u=>this.invoiceData.company=u),class:"b block w-full rounded-md border border-gray-300 text-sm text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-blue-500 dark:focus:ring-blue-500",required:""},null,512),[[Ae,this.invoiceData.company]])]),E("div",null,[v7,_e(E("input",{type:"text",id:"cashier","onUpdate:modelValue":t[5]||(t[5]=u=>this.invoiceData.cashier=u),class:"block w-full rounded-md border border-gray-300 text-sm text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-blue-500 dark:focus:ring-blue-500",required:""},null,512),[[Ae,this.invoiceData.cashier]])]),E("div",null,[y7,_e(E("input",{type:"text",id:"posProfile",class:"block w-full rounded-md border border-gray-300 text-sm text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-blue-500 dark:focus:ring-blue-500","onUpdate:modelValue":t[6]||(t[6]=u=>this.invoiceData.posProfile=u),required:""},null,512),[[Ae,this.invoiceData.posProfile]])]),E("div",null,[b7,_e(E("input",{type:"text",id:"branch",class:"block w-full rounded-md border border-gray-300 text-sm text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-blue-500 dark:focus:ring-blue-500","onUpdate:modelValue":t[7]||(t[7]=u=>this.invoiceData.branch=u),required:""},null,512),[[Ae,this.invoiceData.branch]])])]),w7,x7,E("div",S7,[E("table",_7,[E7,E("tbody",null,[(H(!0),V(Te,null,ht(n.invoiceData.modeOfPaymentList,(u,l)=>(H(),V("tr",{class:"border-b bg-white dark:border-gray-700 dark:bg-gray-900",key:l},[E("th",C7,ye(u.mode_of_payment),1),E("td",k7,[_e(E("input",{type:"number",id:"amount",name:"amount","onUpdate:modelValue":c=>u.opening_amount=c,class:"border-none text-center",onInput:c=>n.posOpen.changePaidAmount(u.opening_amount)},null,40,A7),[[Ae,u.opening_amount]])]),E("td",P7,[E("button",{class:"p-2 text-center",type:"button",onClick:c=>this.posOpen.deleteRow(l)},F7,8,T7)])]))),128))])])]),O7,this.posOpen.showSumbitPosOpen?(H(),V("div",R7,[E("div",I7,[E("div",N7,[E("div",M7,[B7,$7,(H(),V("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5 cursor-pointer",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",onClick:t[8]||(t[8]=u=>this.posOpen.showSumbitPosOpen=!1)},j7))]),E("h3",L7," Permanently Submit"+ye(this.posOpen.posOpenEntryName)+"? ",1),E("div",V7,[E("button",{onClick:t[9]||(t[9]=u=>this.posOpen.showSumbitPosOpen=!1),class:"mr-3 mt-6 rounded border border-gray-300 bg-gray-50 px-3 py-2"}," No "),E("button",{onClick:t[10]||(t[10]=u=>this.posOpen.sumbitPosOpening()),class:"mt-6 rounded bg-blue-500 px-3 py-2 text-white hover:bg-blue-600"}," Yes ")])])])])):ue("",!0)],64)}const q7=dr(i7,[["render",U7]]),xv=Cr("posClose",{state:()=>({invoiceData:fr(),call:Dt.call(),db:Dt.db(),startDate:null,alert:Yn(),postingDate:null,periodEndDate:new Date,posClosecreation:!0,posOpenEntries:[],showPosOpen:!1,selectedPosOpenEntry:null,cashier:null,postingTime:new Date,openingBalance:[],closingAmount:0,formattedDateTime:null,invoiceDetails:[],posInvoice:[],invoiceDate:null,amount:null,payments:[],grandTotal:0,netTotal:0,totalQty:0,totalInvoices:0,taxes:[],posClosingEntry:null,posClosing:!0,posCloseSaved:!1,isPosClose:null,showSumbitPosclose:!1}),getters:{isFlagSet(){return this.customer.length===0}},actions:{selectPosOpen(){this.db.getDocList("POS Opening Entry",{fields:["name","status","branch","docstatus"],filters:[["status","=","Open"],["docstatus","=","1"]]}).then(e=>{this.posOpenEntries=e}).catch(e=>console.error(e)),this.showPosOpen=!0},selectPos(e){let t=null;this.selectedPosOpenEntry=e.name,this.showPosOpen=!1,t=e.name;const r={doctype:"POS Opening Entry",name:t};this.call.get("frappe.client.get",r).then(n=>{this.startDate=n.message.period_start_date,this.cashier=n.message.owner,this.openingBalance=n.message.balance_details,this.getInvoice()}).catch(n=>console.error(n))},getInvoice(){if(this.periodEndDate){const t=new Date(this.periodEndDate),r=t.getFullYear(),n=String(t.getMonth()+1).padStart(2,"0"),s=String(t.getDate()).padStart(2,"0"),i=String(t.getHours()).padStart(2,"0"),a=String(t.getMinutes()).padStart(2,"0"),o=String(t.getSeconds()).padStart(2,"0");this.formattedDateTime=`${r}-${n}-${s} ${i}:${a}:${o}`}else this.formattedDateTime=null;const e={start:this.startDate,end:this.formattedDateTime,pos_profile:this.invoiceData.posProfile,user:this.cashier};this.call.get("erpnext.accounts.doctype.pos_closing_entry.pos_closing_entry.get_pos_invoices",e).then(t=>{this.invoiceDetails=t.message;let r={};this.invoiceDetails.forEach(n=>{this.grandTotal+=parseFloat(n.grand_total),this.netTotal+=parseFloat(n.net_total),this.totalQty+=parseFloat(n.total_qty);let s=n.taxes,i={};s.forEach(a=>{i[a.account_head]||(i[a.account_head]={account_head:a.account_head,rate:a.rate,tax_amount:0}),i[a.account_head].tax_amount+=a.tax_amount}),this.taxes=Object.values(i),n.payments.forEach(a=>{r[a.mode_of_payment]||(r[a.mode_of_payment]={expected_amount:0,mode_of_payment:a.mode_of_payment}),r[a.mode_of_payment].expected_amount+=a.amount})}),this.payments=Object.values(r),this.posInvoice=this.invoiceDetails.map(n=>({pos_invoice:n.name,date:n.modified.split(" ")[0],amount:n.grand_total}))}).catch(t=>console.error(t))},savePosClosing(){let e;if(this.postingTime){const r=new Date(this.postingTime),n=String(r.getHours()).padStart(2,"0"),s=String(r.getMinutes()).padStart(2,"0"),i=String(r.getSeconds()).padStart(2,"0");e=`${n}:${s}:${i}`}else e=null;let t=this.openingBalance;t.forEach(r=>{let n=!1;this.payments.forEach(s=>{s.mode_of_payment===r.mode_of_payment&&(r.expected_amount=s.expected_amount,r.difference=-s.expected_amount,n=!0)}),n||(r.expected_amount=0,r.difference=0)}),this.db.createDoc("POS Closing Entry",{period_start_date:this.startDate,period_end_date:this.formattedDateTime,posting_date:this.postingDate,posting_time:e,company:this.invoiceData.company,pos_profile:this.invoiceData.posProfile,payment_reconciliation:t,pos_transactions:this.posInvoice,pos_opening_entry:this.selectedPosOpenEntry,user:this.cashier,grand_total:this.grandTotal,net_total:this.netTotal,total_quantity:this.totalQty,docstatus:0}).then(r=>{this.posClosingEntry=r.name,this.posClosing=!1,this.posCloseSaved=!0,this.isPosClose="Draft"}).catch(r=>{if(r._server_messages){const n=JSON.parse(r._server_messages),s=JSON.parse(n[0]);this.alert.createAlert("Message",s.message,"OK")}})},getBadgeType(){return this.isPosClose==="Draft"?"red":(this.isPosClose==="Submitted","default")},getBadgeText(){if(this.isPosClose=="Draft")return"Draft";if(this.isPosClose=="Submitted")return"Submitted"},showSumbitPosCloseModal(){this.showSumbitPosclose=!0},sumbitPosClosing(){this.showSumbitPosclose=!1,this.db.updateDoc("POS Closing Entry",this.posClosingEntry,{docstatus:1}).then(e=>{this.isPosClose="Submitted"}).catch(e=>{if(e._server_messages){const t=JSON.parse(e._server_messages),r=JSON.parse(t[0]);this.alert.createAlert("Message",r.message,"OK")}})},setFormattedDate(){const e=new Date,t=e.getFullYear(),r=String(e.getMonth()+1).padStart(2,"0"),n=String(e.getDate()).padStart(2,"0");this.postingDate=`${t}-${r}-${n}`},deleteRow(e){this.openingBalance.splice(e,1)},routeToPosClose(){dt.push("/PosClose")}}});const K7={name:"posClose",components:{DatePicker:wv,Badge:Hh},setup(){const e=fr(),t=xv();return{invoiceData:e,posClose:t}},mounted(){this.posClose.setFormattedDate()},data(){return{search:"",selectedCustomer:null}}},Y7={class:"mt-10 flex items-center justify-between"},z7={class:"flex items-center"},W7=E("h3",{class:"mr-3 text-lg font-semibold text-gray-900 dark:text-white"}," POS Closing Entry ",-1),G7={class:"text-xs"},J7={class:"flex space-x-4"},X7=E("h3",{class:"text-base font-semibold text-gray-900 dark:text-white"}," Period Details ",-1),Z7={class:"mb-6 mt-6 grid gap-6 md:grid-cols-2"},Q7=E("label",{for:"startDate",class:"mb-2 block text-sm font-medium text-gray-900 dark:text-white"},"Period Start Date",-1),eN=E("label",{for:"postingDate",class:"mb-2 block text-sm font-medium text-gray-900 dark:text-white"},[E("label",{for:"postingDate",class:"mb-2 block text-sm font-medium text-gray-900 dark:text-white"},"Posting Date")],-1),tN=E("label",{for:"endDate",class:"mb-2 block text-sm font-medium text-gray-900 dark:text-white"},"Period End Date",-1),rN=E("label",{for:"postingTime",class:"mb-2 block text-sm font-medium text-gray-900 dark:text-white"},"Posting Time",-1),nN={class:"mb-6 gap-6 md:grid-cols-2"},sN={class:"relative",ref:"container"},iN=E("label",{for:"posOpen",class:"block text-sm font-medium text-gray-900 dark:text-white"}," POS Opening Entry ",-1),aN={key:0,class:"block w-full rounded-lg border border-gray-300 bg-gray-50 p-2.5 text-sm text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-blue-500 dark:focus:ring-blue-500",ref:"dropdown"},oN=["onClick"],uN={class:"text-base font-medium leading-normal"},lN=E("hr",{class:"my-6 border-t border-gray-300"},null,-1),cN=E("h3",{class:"text-base font-semibold text-gray-900 dark:text-white"}," User Details ",-1),hN={class:"mb-6 mt-5 grid gap-6 md:grid-cols-2"},fN={class:"md:col-span-1"},dN=E("label",{for:"company",class:"mb-2 block text-sm font-medium text-gray-900 dark:text-white"}," Company ",-1),pN={class:"flex flex-col justify-between md:col-span-1"},gN={class:"mb-6"},mN=E("label",{for:"posProfile",class:"mb-2 block text-sm font-medium text-gray-900 dark:text-white"},"POS Profile",-1),vN=E("label",{for:"cashier",class:"mb-2 block text-sm font-medium text-gray-900 dark:text-white"},"Cashier",-1),yN={key:0},bN=E("hr",{class:"my-6 border-t border-gray-300"},null,-1),wN=E("h3",{class:"mb-3 text-base font-semibold text-gray-900 dark:text-white"}," Linked Invoices ",-1),xN=E("h3",{class:"mb-3 text-sm font-semibold text-gray-900 dark:text-white"}," POS Transactions ",-1),SN={class:"relative overflow-x-auto shadow-md sm:rounded-lg"},_N={class:"w-full text-left text-sm text-gray-500 dark:text-gray-400"},EN=E("thead",{class:"bg-gray-50 text-base font-semibold uppercase text-gray-900 dark:text-white"},[E("tr",null,[E("th",{scope:"col",class:"px-6 py-3"},"POS Invoice"),E("th",{scope:"col",class:"px-6 py-3 text-center"},"Date"),E("th",{scope:"col",class:"px-6 py-3 text-center"},"Amount"),E("th",{scope:"col",class:"px-6 py-3"})])],-1),CN={scope:"row",class:"whitespace-nowrap px-6 py-4 font-medium text-gray-900 dark:text-white"},kN={class:"px-6 py-4 text-center font-medium text-gray-900 dark:text-white"},AN={class:"px-6 py-4 text-center font-medium text-gray-900 dark:text-white"},PN=["onUpdate:modelValue"],TN={class:"px-6 py-4"},DN=["onClick"],FN=E("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25",height:"25",fill:"currentColor border",class:"bi bi-trash",viewBox:"0 0 16 16"},[E("path",{d:"M5.5 5.5A.5.5 0 0 1 6 6v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5Zm2.5 0a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5Zm3 .5a.5.5 0 0 0-1 0v6a.5.5 0 0 0 1 0V6Z"}),E("path",{d:"M14.5 3a1 1 0 0 1-1 1H13v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V4h-.5a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1H6a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1h3.5a1 1 0 0 1 1 1v1ZM4.118 4 4 4.059V13a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V4.059L11.882 4H4.118ZM2.5 3h11V2h-11v1Z"})],-1),ON=[FN],RN={key:1},IN=E("hr",{class:"my-6 border-t border-gray-300"},null,-1),NN=E("h3",{class:"mb-3 text-base font-semibold text-gray-900 dark:text-white"}," Modes of Payment ",-1),MN=E("h3",{class:"mb-3 text-sm font-semibold text-gray-900 dark:text-white"}," Payment Reconciliation ",-1),BN={class:"relative overflow-x-auto shadow-md sm:rounded-lg"},$N={class:"w-full text-left text-sm text-gray-500 dark:text-gray-400"},HN=E("thead",{class:"bg-gray-50 text-base font-semibold uppercase text-gray-900 dark:text-white"},[E("tr",null,[E("th",{scope:"col",class:"px-6 py-3"},"Mode of Payment"),E("th",{scope:"col",class:"px-6 py-3 text-center"},"Opening Amount"),E("th",{scope:"col",class:"px-6 py-3 text-center"},"Closing Amount"),E("th",{scope:"col",class:"px-6 py-3"})])],-1),jN={scope:"row",class:"whitespace-nowrap px-6 py-4 font-medium text-gray-900 dark:text-white"},LN={class:"px-6 py-4 text-center font-medium text-gray-900 dark:text-white"},VN=["onUpdate:modelValue"],UN={class:"px-6 py-4 text-center font-medium text-gray-900 dark:text-white"},qN={class:"px-6 py-4"},KN=["onClick"],YN=E("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25",height:"25",fill:"currentColor border",class:"bi bi-trash",viewBox:"0 0 16 16"},[E("path",{d:"M5.5 5.5A.5.5 0 0 1 6 6v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5Zm2.5 0a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5Zm3 .5a.5.5 0 0 0-1 0v6a.5.5 0 0 0 1 0V6Z"}),E("path",{d:"M14.5 3a1 1 0 0 1-1 1H13v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V4h-.5a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1H6a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1h3.5a1 1 0 0 1 1 1v1ZM4.118 4 4 4.059V13a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V4.059L11.882 4H4.118ZM2.5 3h11V2h-11v1Z"})],-1),zN=[YN],WN=E("hr",{class:"my-6 border-t border-gray-300"},null,-1),GN=E("h3",{class:"text-base font-semibold text-gray-900 dark:text-white"},"Totals",-1),JN={class:"mb-6 mt-6 grid gap-6 md:grid-cols-2"},XN=E("label",{for:"grandTotal",class:"mb-2 block text-sm font-medium text-gray-900 dark:text-white"}," Grand Total",-1),ZN=E("label",{for:"totalInvoices",class:"mb-2 block text-sm font-medium text-gray-900 dark:text-white"},"Total Invoices",-1),QN=E("label",{for:"netTotak",class:"mb-2 block text-sm font-medium text-gray-900 dark:text-white"},"Net Total",-1),eM=E("label",{for:"totalQty",class:"mb-2 block text-sm font-medium text-gray-900 dark:text-white"},"Total Quantity",-1),tM=E("hr",{class:"my-6 border-t border-gray-300"},null,-1),rM={key:2,class:"fixed inset-0 mt-20 z-10 overflow-y-auto bg-gray-100"},nM={class:"mt-3 flex items-center justify-center"},sM={class:"w-full rounded-lg bg-white p-6 shadow-lg md:max-w-md"},iM={class:"flex items-center justify-between"},aM=E("h3",{class:"text-xl text-gray-900 dark:text-white"},"Confirm",-1),oM=E("span",{class:"sr-only"},"Close",-1),uM=E("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"},null,-1),lM=[uM],cM={class:"mt-5 block text-left text-base text-gray-900 dark:text-white"},hM={class:"flex justify-end"};function fM(e,t,r,n,s,i){const a=$t("Badge"),o=$t("date-picker");return H(),V(Te,null,[E("div",Y7,[E("div",z7,[W7,this.posClose.isPosClose!==null?(H(),on(a,{key:0,type:this.posClose.getBadgeType()},{default:Wt(()=>[E("span",G7,ye(this.posClose.getBadgeText()),1)]),_:1},8,["type"])):ue("",!0)]),E("div",J7,[this.posClose.posClosing?(H(),V("button",{key:0,onClick:t[0]||(t[0]=u=>this.posClose.savePosClosing()),class:"rounded-md bg-blue-500 px-4 py-2 text-white hover:bg-blue-600 focus:outline-none"}," Save ")):ue("",!0),this.posClose.posCloseSaved?(H(),V("button",{key:1,onClick:t[1]||(t[1]=u=>this.posClose.showSumbitPosCloseModal()),class:"rounded-md bg-blue-500 px-4 py-2 text-white hover:bg-blue-600 focus:outline-none"}," Submit ")):ue("",!0)])]),X7,E("div",Z7,[E("div",null,[Q7,_e(E("input",{"onUpdate:modelValue":t[2]||(t[2]=u=>this.posClose.startDate=u),readonly:"",class:"block w-full rounded-md border border-gray-300 text-sm text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-blue-500 dark:focus:ring-blue-500",type:"text"},null,512),[[Ae,this.posClose.startDate]])]),E("div",null,[eN,_e(E("input",{"onUpdate:modelValue":t[3]||(t[3]=u=>this.posClose.postingDate=u),readonly:"",class:"block w-full rounded-md border border-gray-300 text-sm text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-blue-500 dark:focus:ring-blue-500",type:"text"},null,512),[[Ae,this.posClose.postingDate]])]),E("div",null,[tN,q(o,{value:this.posClose.periodEndDate,"onUpdate:value":t[4]||(t[4]=u=>this.posClose.periodEndDate=u),"default-value":new Date,class:"my-custom-date-picker",type:"datetime"},null,8,["value","default-value"])]),E("div",null,[rN,q(o,{value:this.posClose.postingTime,"onUpdate:value":t[5]||(t[5]=u=>this.posClose.postingTime=u),"default-value":this.posClose.postingTime,type:"time",class:"my-custom-time-picker"},null,8,["value","default-value"])]),E("div",nN,[E("div",sN,[iN,_e(E("input",{type:"text",id:"posOpen",class:"block w-full rounded-md border border-gray-300 text-sm text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-blue-500 dark:focus:ring-blue-500","onUpdate:modelValue":t[6]||(t[6]=u=>this.posClose.selectedPosOpenEntry=u),onClick:t[7]||(t[7]=u=>this.posClose.selectPosOpen()),required:""},null,512),[[Ae,this.posClose.selectedPosOpenEntry]]),this.posClose.showPosOpen?(H(),V("div",aN,[(H(!0),V(Te,null,ht(this.posClose.posOpenEntries,(u,l)=>(H(),V("div",{class:"h-10 rounded-lg p-2 hover:bg-gray-100",key:l,onClick:c=>this.posClose.selectPos(u)},[E("h1",uN,ye(u.name),1)],8,oN))),128))],512)):ue("",!0)],512)])]),lN,cN,E("div",hN,[E("div",fN,[dN,_e(E("input",{type:"text",id:"company","onUpdate:modelValue":t[8]||(t[8]=u=>this.invoiceData.company=u),class:"block w-full rounded-md border border-gray-300 text-sm text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-blue-500 dark:focus:ring-blue-500",required:""},null,512),[[Ae,this.invoiceData.company]])]),E("div",pN,[E("div",gN,[mN,_e(E("input",{type:"text",id:"posProfile",class:"block w-full rounded-md border border-gray-300 text-sm text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-blue-500 dark:focus:ring-blue-500","onUpdate:modelValue":t[9]||(t[9]=u=>this.invoiceData.posProfile=u),required:""},null,512),[[Ae,this.invoiceData.posProfile]])]),E("div",null,[vN,_e(E("input",{type:"text",id:"cashier","onUpdate:modelValue":t[10]||(t[10]=u=>this.posClose.cashier=u),class:"block w-full rounded-md border border-gray-300 text-sm text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-blue-500 dark:focus:ring-blue-500",required:""},null,512),[[Ae,this.posClose.cashier]])])])]),this.posClose.invoiceDetails.length>0?(H(),V("div",yN,[bN,wN,xN,E("div",SN,[E("table",_N,[EN,E("tbody",null,[(H(!0),V(Te,null,ht(n.posClose.invoiceDetails,(u,l)=>(H(),V("tr",{class:"border-b bg-white dark:border-gray-700 dark:bg-gray-900",key:l},[E("th",CN,ye(u.name),1),E("td",kN,ye(u.modified.split(" ")[0]),1),E("td",AN,[_e(E("input",{type:"number",id:"amount",name:"amount","onUpdate:modelValue":c=>u.grand_total=c,class:"border-none text-center"},null,8,PN),[[Ae,u.grand_total]])]),E("td",TN,[E("button",{class:"p-2 text-center",type:"button",onClick:c=>this.posClose.deleteRow(l)},ON,8,DN)])]))),128))])])])])):ue("",!0),this.posClose.openingBalance.length>0?(H(),V("div",RN,[IN,NN,MN,E("div",BN,[E("table",$N,[HN,E("tbody",null,[(H(!0),V(Te,null,ht(n.posClose.openingBalance,(u,l)=>(H(),V("tr",{class:"border-b bg-white dark:border-gray-700 dark:bg-gray-900",key:l},[E("th",jN,ye(u.mode_of_payment),1),E("td",LN,[_e(E("input",{type:"number",id:"amount",name:"amount","onUpdate:modelValue":c=>u.opening_amount=c,class:"border-none text-center"},null,8,VN),[[Ae,u.opening_amount]])]),E("td",UN,[_e(E("input",{type:"number",id:"amount",name:"amount","onUpdate:modelValue":t[11]||(t[11]=c=>this.posClose.closingAmount=c),class:"border-none text-center"},null,512),[[Ae,this.posClose.closingAmount]])]),E("td",qN,[E("button",{class:"p-2 text-center",type:"button",onClick:c=>this.posClose.deleteRow(l)},zN,8,KN)])]))),128))])])])])):ue("",!0),WN,GN,E("div",JN,[E("div",null,[XN,_e(E("input",{type:"text",id:"grandTotal","onUpdate:modelValue":t[12]||(t[12]=u=>this.posClose.grandTotal=u),class:"b block w-full rounded-md border border-gray-300 text-sm text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-blue-500 dark:focus:ring-blue-500",required:""},null,512),[[Ae,this.posClose.grandTotal]])]),E("div",null,[ZN,_e(E("input",{type:"text",id:"totalInvoices","onUpdate:modelValue":t[13]||(t[13]=u=>this.posClose.totalInvoices=u),class:"block w-full rounded-md border border-gray-300 text-sm text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-blue-500 dark:focus:ring-blue-500",required:""},null,512),[[Ae,this.posClose.totalInvoices]])]),E("div",null,[QN,_e(E("input",{type:"text",id:"netTotak",class:"block w-full rounded-md border border-gray-300 text-sm text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-blue-500 dark:focus:ring-blue-500","onUpdate:modelValue":t[14]||(t[14]=u=>this.posClose.netTotal=u),required:""},null,512),[[Ae,this.posClose.netTotal]])]),E("div",null,[eM,_e(E("input",{type:"text",id:"totalQty",class:"block w-full rounded-md border border-gray-300 text-sm text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-blue-500 dark:focus:ring-blue-500","onUpdate:modelValue":t[15]||(t[15]=u=>this.posClose.totalQty=u),required:""},null,512),[[Ae,this.posClose.totalQty]])])]),tM,this.posClose.showSumbitPosclose?(H(),V("div",rM,[E("div",nM,[E("div",sM,[E("div",iM,[aM,oM,(H(),V("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5 cursor-pointer",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",onClick:t[16]||(t[16]=u=>this.posClose.showSumbitPosclose=!1)},lM))]),E("h3",cM," Permanently Submit"+ye(this.posClose.posClosingEntry)+"? ",1),E("div",hM,[E("button",{onClick:t[17]||(t[17]=u=>this.posClose.showSumbitPosclose=!1),class:"mr-3 mt-6 rounded border border-gray-300 bg-gray-50 px-3 py-2"}," No "),E("button",{onClick:t[18]||(t[18]=u=>this.posClose.sumbitPosClosing()),class:"mt-6 rounded bg-blue-500 px-3 py-2 text-white hover:bg-blue-600"}," Yes ")])])])])):ue("",!0)],64)}const dM=dr(K7,[["render",fM]]),pM=[{path:"/",name:"Table",component:yp},{path:"/Table",name:"Table",component:yp},{path:"/Customer",name:"Customer",component:P8},{path:"/Menu",name:"Menu",component:yP},{path:"/Cart",name:"Cart",component:pT},{path:"/recentOrder",name:"recentOrder",component:AR},{path:"/PosOpen",name:"posOpen",component:q7},{path:"/PosClose",name:"posClose",component:dM},...S2],dt=v2({history:Rw("/urypos/"),routes:pM}),Ts=Cr("table",{state:()=>({tables:[],selectedTable:null,previousOrderdItem:[],invoiceNo:"",alert:Yn(),previousOrder:[],previousOrderdCustomer:"",invoiceData:fr(),grandTotal:"",notification:ca(),selectedOption:"",isTakeAway:"",showModal:!1,newTable:"",showTable:!1,searchTable:[],menu:Es(),tableMenu:[],activeDropdown:null,currentCaptain:null,tableName:"",showModalCaptainTransfer:!1,showCaptain:!1,captain:[],previousWaiter:null,newCaptain:"",invoicePrinted:"",auth:Lt(),call:Dt.call(),db:Dt.db(),totalMinutes:null,invoiceNumber:null,modifiedTime:null}),getters:{filteredTables(e){return e.tables.filter(t=>t.is_take_away===0)},takeAway(e){return e.tables.filter(t=>t.is_take_away===1)}},actions:{fetchTable(){this.selectedOption="Table",this.db.getDocList("URY Table",{fields:["name","occupied","latest_invoice_time","is_take_away"],limit:"*"}).then(e=>{this.tables=e.sort((t,r)=>t.name.localeCompare(r.name,void 0,{numeric:!0,sensitivity:"base"}))}).catch(e=>console.error(e))},tableSearch(){this.db.getDocList("URY Table",{filters:[["occupied","like","0%"]]}).then(e=>{this.searchTable=e}).catch(e=>{})},fetchCaptain(){this.db.getDocList("User",{fields:["name"],limit:"*"}).then(e=>{this.captain=e}).catch(e=>console.error(e))},toggleDropdown(e){return Ee(this,null,function*(){this.tableName=e,this.activeDropdown===e?this.activeDropdown=null:this.activeDropdown=e,yield this.invoiceNumberFetching()})},hideDropdown(){this.activeDropdown=null},selectTable(e){this.newTable=e.name,this.showTable=!1},selectcaptain(e){this.newCaptain=e.name,this.showCaptain=!1},getTimeDifference(e){const t=new Date;let r="00:00:00";e&&e.occupied===1&&e.latest_invoice_time&&(r=e.latest_invoice_time);const[n,s,i]=r.split(":"),a=new Date(t.getFullYear(),t.getMonth(),t.getDate(),n,s,i),o=t-a,u=Math.floor(o/1e3),l=Math.floor(u/60);return`${Math.floor(l/60)}:${l%60}`},getBadgeType(e){if(e.occupied!=1&&e.name!==this.selectedTable)return"green";if(e.name===this.selectedTable)return"default";if(e.occupied===1&&e.name!==this.selectedTable){const t=this.getTimeDifference(e),[r,n]=t.split(":");return parseInt(r)*60+parseInt(n)>60?"red":"yellow"}},getBadgeText(e){if(e.occupied!=1&&e.name!==this.selectedTable)return"Free";if(e.name===this.selectedTable)return"Active";if(e.occupied===1&&e.name!==this.selectedTable){const t=this.getTimeDifference(e),[r,n]=t.split(":");return parseInt(r)*60+parseInt(n)>60?"Attention":"Occupied"}},addToSelectedTables(e){return Ee(this,null,function*(){this.selectedTable=e.name,yield this.getMenu(),e.is_take_away===1&&(this.isTakeAway="Take Away");let t="";this.previousOrderdItem="",this.invoiceNo="";let r=this.tableMenu;r.forEach(i=>{i.qty=""});let n=this.menu.cart;n.splice(0,n.length);const s={table:this.selectedTable};this.call.get("ury.ury.doctype.ury_order.ury_order.get_order_invoice",s).then(i=>{this.previousOrder=i.message,this.invoicePrinted=this.previousOrder.invoice_printed,this.modifiedTime=this.previousOrder.modified,this.grandTotal=this.previousOrder.grand_total,this.invoiceNo=this.previousOrder.name,this.previousWaiter=this.previousOrder.waiter,this.invoiceNo?!this.auth.hasAccess&&!this.auth.cashier&&this.auth.sessionUser!==this.previousOrder.waiter?this.alert.createAlert("Message","Table is assigned to "+this.previousOrder.waiter,"OK").then(()=>{dt.push("/Table").then(()=>{window.location.reload()})}):this.notification.createNotification("Past Order Fetched"):dt.push("/Menu"),this.previousOrderdItem=this.previousOrder.items,this.previousOrderdCustomer=this.previousOrder.customer,t=this.previousOrder.no_of_pax;const a=hu();this.previousOrderdCustomer?(a.search=this.previousOrderdCustomer,a.numberOfPax=t,a.fectchCustomerFavouriteItem()):(a.search="",a.numberOfPax="",a.customerFavouriteItems=""),r.forEach(o=>{const u=this.previousOrderdItem&&this.previousOrderdItem.find(l=>l.item_name===o.item_name);u&&!o.qty&&(n.findIndex(f=>f.item===o.item)!==-1||(o.qty=u.qty,o.comment="",n.push(o)))})}).catch(i=>console.error(i))})},routeToCart(e){this.addToSelectedTables(e),dt.push("/Cart")},routeToMenu(e){this.addToSelectedTables(e),dt.push("/Menu")},getMenu(){return Ee(this,null,function*(){const e={table:this.selectedTable,pos_profile:this.invoiceData.posProfile};try{yield this.call.get("ury.ury_pos.api.getRestaurantMenu",e).then(t=>{this.tableMenu=t.message,this.menu.fetchItems()})}catch(t){if(t._server_messages){const r=JSON.parse(t._server_messages),n=JSON.parse(r[0]);this.alert.createAlert("Message",n.message,"OK")}}})},invoiceNumberFetching(){return Ee(this,null,function*(){const e={table:this.tableName};try{const t=yield this.call.get("ury.ury.doctype.ury_order.ury_order.get_order_invoice",e);this.invoiceNumber=t.message.name,this.currentCaptain=t.message.waiter}catch(t){console.error(t._server_messages)}})},tableTransfer:function(){return Ee(this,null,function*(){yield this.invoiceNumberFetching();const e={table:this.tableName,newTable:this.newTable,invoice:this.invoiceNumber};this.call.post("ury.ury.doctype.ury_order.ury_order.table_transfer",e).then(()=>{window.location.reload()}).catch(t=>console.error(t))})},captianTransfer:function(){return Ee(this,null,function*(){if(yield this.invoiceNumberFetching(),this.invoiceNumber){const e={currentCaptain:this.currentCaptain,newCaptain:this.newCaptain,invoice:this.invoiceNumber};this.call.post("ury.ury.doctype.ury_order.ury_order.captain_transfer",e).then(()=>this.notification.createNotification("Captain Transferred Successfully")).then(()=>window.location.reload()).catch(t=>console.error(t))}})}}});l1.defaults.baseURL=Dt.url;const Lt=Cr("auth",{state:()=>({userId:"",currentPassword:"",showPassword:!1,table:Ts(),menu:Es(),invoiceData:fr(),cashier:null,restrictTableOrder:null,alert:Yn(),sessionUser:"",userAuth:localStorage.getItem("userAuth"),activeDropdown:!1,userName:"",removeTableOrderItem:null,hasAccess:!1,isPosOpen:!0,viewAllStatus:null,userRole:[],auth:Dt.auth(),db:Dt.db(),call:Dt.call()}),getters:{isAuthenticated(e){e.isAuthenticated},passwordFieldType(){return this.showPassword?"text":"password"}},actions:{login(){this.auth.loginWithUsernamePassword({username:this.userId,password:this.currentPassword,device:"mobile"}).then(()=>{this.userAuth=!0,localStorage.setItem("userAuth","true"),dt.push("/Table").then(()=>{window.location.reload()})}).catch(e=>this.alert.createAlert("Message",e.message,"OK"))},checkAuthState(){this.userAuth&&localStorage.getItem("userAuth")&&(this.userAuth=!0)},getLoginAvatar(){const e=this.sessionUser.indexOf("@");return e>-1?this.userName=this.sessionUser.substring(0,e):this.userName="",this.userName},fetchUserDetails(){this.auth.getLoggedInUser().then(e=>{if(this.sessionUser=e,!this.sessionUser)this.userAuth=!1,localStorage.removeItem("userAuth","true");else{this.userAuth=!0,dt.push("/Table"),this.table.fetchTable(),this.invoiceData.fetchInvoiceDetails().then(()=>{this.fetchUserRole()});const r=window.location.href.split("/");r[r.length-1]!=="login"&&this.isPosOpenChecking()}}).catch(e=>{this.userAuth=!1,localStorage.removeItem("userAuth","true"),dt.push("/login"),console.error(e)})},fetchUserRole(){this.db.getDoc("User",this.sessionUser).then(e=>{this.userRole=e.roles.map(r=>r.role);const t={doctype:"POS Profile",name:this.invoiceData.posProfile};this.call.get("frappe.client.get",t).then(r=>{var n=r.message.role_allowed_for_billing.map(a=>a.role);this.cashier=n.some(a=>this.userRole.includes(a)),this.cashier&&this.menu.fetchItems();var s=r.message.transfer_role_permissions.map(a=>a.role);this.hasAccess=s.some(a=>this.userRole.includes(a));var i=r.message.role_restricted_for_table_order.map(a=>a.role);this.restrictTableOrder=i.some(a=>this.userRole.includes(a)),this.viewAllStatus=r.message.view_all_status,this.removeTableOrderItem=r.message.remove_items}).catch(r=>console.error(r))}).catch(e=>console.error(e))},isPosOpenChecking(){this.call.get("ury.ury_pos.api.posOpening").then(e=>{const r=JSON.parse(e._server_messages)[0],s=JSON.parse(r).message;this.isPosOpen=!1,this.alert.createAlert("Message",s,"OK")}).catch(e=>{})},toggleDropdown(){this.activeDropdown?this.hideDropdown():this.activeDropdown=!0},hideDropdown(){this.activeDropdown=!1},logOut(){this.auth.logout().then(()=>{dt.push("/login").then(()=>{window.location.reload()}),localStorage.removeItem("userAuth","true"),JC()}).catch(e=>console.error(e))}}}),gM=Cr("tabClick",{state:()=>({auth:Lt()}),getters:{isLoginPage(){return dt.currentRoute.value.path==="/login"},currentTab(){return dt.currentRoute.value.path}},actions:{}}),mM={name:"Bottom Tabs",setup(){const e=Lt(),t=gM();return{auth:e,tabClick:t}}},vM={key:0,class:"fixed bottom-0 left-0 z-50 h-16 w-full border-t border-gray-200 bg-white dark:border-gray-600 dark:bg-gray-700",id:"tab"},yM=E("path",{d:"M5 3a2 2 0 00-2 2v2a2 2 0 002 2h2a2 2 0 002-2V5a2 2 0 00-2-2H5zM5 11a2 2 0 00-2 2v2a2 2 0 002 2h2a2 2 0 002-2v-2a2 2 0 00-2-2H5zM11 5a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2V5zM11 13a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2v-2z"},null,-1),bM=[yM],wM=E("path",{d:"M9 2a1 1 0 000 2h2a1 1 0 100-2H9z"},null,-1),xM=E("path",{"fill-rule":"evenodd",d:"M4 5a2 2 0 012-2 3 3 0 003 3h2a3 3 0 003-3 2 2 0 012 2v11a2 2 0 01-2 2H6a2 2 0 01-2-2V5zm3 4a1 1 0 000 2h.01a1 1 0 100-2H7zm3 0a1 1 0 000 2h3a1 1 0 100-2h-3zm-3 4a1 1 0 100 2h.01a1 1 0 100-2H7zm3 0a1 1 0 100 2h3a1 1 0 100-2h-3z","clip-rule":"evenodd"},null,-1),SM=[wM,xM],_M=E("path",{"fill-rule":"evenodd",d:"M10 9a3 3 0 100-6 3 3 0 000 6zm-7 9a7 7 0 1114 0H3z","clip-rule":"evenodd"},null,-1),EM=[_M],CM=E("path",{d:"M3 1a1 1 0 000 2h1.22l.305 1.222a.997.997 0 00.01.042l1.358 5.43-.893.892C3.74 11.846 4.632 14 6.414 14H15a1 1 0 000-2H6.414l1-1H14a1 1 0 00.894-.553l3-6A1 1 0 0017 3H6.28l-.31-1.243A1 1 0 005 1H3zM16 16.5a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0zM6.5 18a1.5 1.5 0 100-3 1.5 1.5 0 000 3z"},null,-1),kM=[CM],AM=E("path",{d:"M14.066 0H7v5a2 2 0 0 1-2 2H0v11a1.97 1.97 0 0 0 1.934 2h12.132A1.97 1.97 0 0 0 16 18V2a1.97 1.97 0 0 0-1.934-2Zm-3 15H4.828a1 1 0 0 1 0-2h6.238a1 1 0 0 1 0 2Zm0-4H4.828a1 1 0 0 1 0-2h6.238a1 1 0 1 1 0 2Z"},null,-1),PM=E("path",{d:"M5 5V.13a2.96 2.96 0 0 0-1.293.749L.879 3.707A2.98 2.98 0 0 0 .13 5H5Z"},null,-1),TM=[AM,PM];function DM(e,t,r,n,s,i){const a=$t("router-link");return this.tabClick.isLoginPage?ue("",!0):(H(),V("div",vM,[E("div",{class:Ce(["mx-auto grid h-full max-w-lg font-medium",[{"grid-cols-4":!n.auth.cashier,"grid-cols-5":n.auth.cashier}]])},[q(a,{to:"/Table",class:"group inline-flex flex-col items-center justify-center border-x border-gray-200 px-5 hover:bg-gray-50 dark:border-gray-600 dark:hover:bg-gray-800",onClick:t[0]||(t[0]=()=>{})},{default:Wt(()=>[(H(),V("svg",{class:Ce(["h-6 w-6 group-hover:text-blue-600 dark:text-gray-400 dark:group-hover:text-blue-500",[{"text-gray-500":this.tabClick.currentTab!=="/Table","text-blue-600":this.tabClick.currentTab==="/Table"}]]),fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},bM,2)),E("span",{class:Ce(["text-sm group-hover:text-blue-600 dark:text-gray-400 dark:group-hover:text-blue-500",[{"text-gray-500":this.tabClick.currentTab!=="/Table","text-blue-600":this.tabClick.currentTab==="/Table"}]])},"Table",2)]),_:1}),q(a,{to:"/Menu",class:"group inline-flex flex-col items-center justify-center border-r border-gray-200 px-5 hover:bg-gray-50 dark:border-gray-600 dark:hover:bg-gray-800",onClick:t[1]||(t[1]=()=>{})},{default:Wt(()=>[(H(),V("svg",{class:Ce(["h-6 w-6 group-hover:text-blue-600 dark:text-gray-400 dark:group-hover:text-blue-500",[{"text-gray-500":this.tabClick.currentTab!=="/Menu","text-blue-600":this.tabClick.currentTab==="/Menu"}]]),fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},SM,2)),E("span",{class:Ce(["text-sm group-hover:text-blue-600 dark:text-gray-400 dark:group-hover:text-blue-500",[{"text-gray-500":this.tabClick.currentTab!=="/Menu","text-blue-600":this.tabClick.currentTab==="/Menu"}]])},"Menu",2)]),_:1}),q(a,{to:"/Customer",class:"group inline-flex flex-col items-center justify-center px-5 hover:bg-gray-50 dark:hover:bg-gray-800",onClick:t[2]||(t[2]=()=>{})},{default:Wt(()=>[(H(),V("svg",{class:Ce(["h-6 w-6 group-hover:text-blue-600 dark:text-gray-400 dark:group-hover:text-blue-500",[{"text-gray-500":this.tabClick.currentTab!=="/Customer","text-blue-600":this.tabClick.currentTab==="/Customer"}]]),fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},EM,2)),E("span",{class:Ce(["text-sm group-hover:text-blue-600 dark:text-gray-400 dark:group-hover:text-blue-500",[{"text-gray-500":this.tabClick.currentTab!=="/Customer","text-blue-600":this.tabClick.currentTab==="/Customer"}]])},"Customer",2)]),_:1}),q(a,{to:"/Cart",class:"group inline-flex flex-col items-center justify-center border-x border-gray-200 px-5 hover:bg-gray-50 dark:border-gray-600 dark:hover:bg-gray-800",onClick:t[3]||(t[3]=()=>{})},{default:Wt(()=>[(H(),V("svg",{"aria-hidden":"true",class:Ce([[{"text-gray-500":this.tabClick.currentTab!=="/Cart","text-blue-600":this.tabClick.currentTab==="/Cart"}],"h-6 w-6 group-hover:text-blue-600 dark:text-gray-400 dark:group-hover:text-blue-500"]),fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},kM,2)),E("span",{class:Ce(["text-sm group-hover:text-blue-600 dark:text-gray-400 dark:group-hover:text-blue-500",[{"text-gray-500":this.tabClick.currentTab!=="/Cart","text-blue-600":this.tabClick.currentTab==="/Cart"}]])},"Order",2)]),_:1}),this.auth.cashier?(H(),on(a,{key:0,to:"/recentOrder",class:"group inline-flex flex-col items-center justify-center border-x border-gray-200 px-5 hover:bg-gray-50 dark:border-gray-600 dark:hover:bg-gray-800",onClick:t[4]||(t[4]=()=>{})},{default:Wt(()=>[(H(),V("svg",{class:Ce(["h-5 w-5 group-hover:text-blue-600 dark:text-gray-400 dark:group-hover:text-blue-500",[{"text-gray-500":this.tabClick.currentTab!=="/recentOrder","text-blue-600":this.tabClick.currentTab==="/recentOrder"}]]),fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},TM,2)),E("span",{class:Ce(["text-sm group-hover:text-blue-600 dark:text-gray-400 dark:group-hover:text-blue-500",[{"text-gray-500":this.tabClick.currentTab!=="/recentOrder","text-blue-600":this.tabClick.currentTab==="/recentOrder"}]])},"OrderLog",2)]),_:1})):ue("",!0)],2)]))}const FM=dr(mM,[["render",DM]]),OM="/assets/ury_pos/urypos/assets/URY_POS-6ddda452.jpg",RM={name:"Header",setup(){const e=Lt(),t=W1(),r=xv();return{auth:e,posOpen:t,posClose:r}},data(){return{imagePath:OM}},computed:{isLoginPage(){return this.$route.path==="/login"}}},IM={class:"mb-12 lg:mb-16 border-2 border-b-gray-200 border-l-white border-r-white border-t-white p-2"},NM={class:"fixed left-0 top-0 z-20 w-full border-b border-gray-200 bg-white dark:border-gray-600 dark:bg-gray-900"},MM={class:"mx-auto flex max-w-screen-2xl flex-wrap items-center justify-between p-4"},BM={href:"/urypos/Table"},$M=["src"],HM={key:0},jM={key:0,class:"relative inline-flex h-8 lg:h-11 lg:w-11 w-8 items-center justify-center overflow-hidden rounded-full bg-gray-100 dark:bg-gray-600"},LM={class:"font-medium text-gray-900 dark:text-gray-300"},VM={key:1,class:"relative inline-flex h-9 w-9 lg:h-11 lg:w-11 items-center justify-center overflow-hidden rounded-full bg-gray-100 dark:bg-gray-600"},UM={class:"font-medium text-gray-900 dark:text-gray-300"},qM={class:"absolute right-4 lg:right-auto mt-11 w-36 divide-y divide-gray-100 rounded-lg bg-white text-left shadow dark:bg-gray-700"},KM={class:"block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 dark:text-gray-200 dark:hover:bg-gray-600 dark:hover:text-white"};function YM(e,t,r,n,s,i){return H(),V("div",IM,[E("nav",NM,[E("div",MM,[E("div",null,[E("a",BM,[E("img",{src:s.imagePath,alt:"Flowbite logo",class:"w-32 lg:w-44"},null,8,$M)])]),i.isLoginPage?ue("",!0):(H(),V("div",HM,[E("button",{type:"button",class:"flex rounded-full bg-gray-400 text-sm focus:ring-4 focus:ring-gray-300 dark:focus:ring-gray-400 md:mr-0",id:"user-menu-button","aria-expanded":"false","data-dropdown-toggle":"user-dropdown","data-dropdown-placement":"bottom",onClick:t[1]||(t[1]=a=>this.auth.toggleDropdown()),ref:"dropdownButton"},[this.auth.sessionUser.includes("_")?(H(),V("div",jM,[E("span",LM,ye(this.auth.sessionUser.charAt(0).toUpperCase())+ye(this.auth.sessionUser.charAt(this.auth.sessionUser.indexOf("_")+1).toUpperCase()),1)])):(H(),V("div",VM,[E("span",UM,ye(this.auth.sessionUser.charAt(0).toUpperCase()),1)])),_e(E("div",qM,[E("ul",null,[E("li",null,[E("h1",KM,ye(this.auth.getLoginAvatar()),1)]),E("li",null,[E("a",{href:"#",class:"block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 dark:text-gray-200 dark:hover:bg-gray-600 dark:hover:text-white",onClick:t[0]||(t[0]=(...a)=>this.auth.logOut&&this.auth.logOut(...a))},"Log Out")])])],512),[[Vc,this.auth.activeDropdown]])],512)]))])])])}const zM=dr(RM,[["render",YM]]),WM={name:"App",components:{Tabs:FM,Header:zM},setup(){return{auth:Lt()}},mounted(){this.auth.fetchUserDetails()},computed:{isLoginPage(){return this.$route.path==="/"}}},GM={class:"container mx-auto p-4 mb-16"};function JM(e,t,r,n,s,i){const a=$t("Header"),o=$t("router-view"),u=$t("Tabs");return H(),V(Te,null,[q(a),E("div",GM,[q(o)]),q(u)],64)}const XM=dr(WM,[["render",JM]]);function Oo(e,t){return Ee(this,null,function*(){t||(t={});let r={Accept:"application/json","Content-Type":"application/json; charset=utf-8","X-Frappe-Site-Name":window.location.hostname};window.csrf_token&&window.csrf_token!=="{{ csrf_token }}"&&(r["X-Frappe-CSRF-Token"]=window.csrf_token),s(this,"RequestStarted",null);const n=yield fetch(`/api/method/${e}`,{method:"POST",headers:r,body:JSON.stringify(t)});if(n.ok){s(this,null,null);const i=yield n.json();return i.docs||e==="login"?i:i.message}else{let i=yield n.text(),a,o;try{a=JSON.parse(i)}catch(c){}let u=[[e,a.exc_type,a._error_message].filter(Boolean).join(" ")];if(a.exc){o=a.exc;try{o=JSON.parse(o)[0]}catch(c){}u.push(o)}let l=new Error(u.join(` +`));throw l.exc_type=a.exc_type,l.exc=o,l.messages=a._server_messages?JSON.parse(a._server_messages):[],l.messages=l.messages.concat(a.message),l.messages=l.messages.map(c=>{try{return JSON.parse(c).message}catch(f){return c}}),l.messages=l.messages.filter(Boolean),l.messages.length||(l.messages=a._error_message?[a._error_message]:["Internal Server Error"]),s(this,null,l.messages.join(` +`)),[401,403].includes(n.status)&&dt.currentRoute.name!=="Login"&&dt.push("/login"),l}function s(i,a,o){(i==null?void 0:i.state)!==void 0&&(i.state=a),(i==null?void 0:i.errorMessage)!==void 0&&(i.errorMessage=o)}})}class ZM{constructor(t,r){this._vm=t,this._watchers=[];let n=Br({});for(let s in r){let i=r[s];if(typeof i=="function")this._watchers.push([()=>i.call(t),(a,o)=>this.updateResource(s,a,o),{immediate:!0,deep:!0,flush:"sync"}]);else{let a=new i0(t,i);n[s]=tt(a),a.auto&&a.reload()}}this.resources=n}init(){this._watchers=this._watchers.map(t=>this._vm.$watch(...t))}destroy(){const t=this._vm;delete t._rm}updateResource(t,r,n){let s;t in this.resources?s=this.resources[t]:(s=Br(new i0(this._vm,r)),this.resources[t]=s);let i=s.data;n&&s&&s.cancel(),s.update(r),s.keepData&&(s.data=i),s.auto&&s.reload()}}class i0{constructor(t,r={}){if(typeof r=="string"&&(r={method:r,auto:!0}),!r.method)throw new Error("[Resource Manager]: method is required to define a resource");this._vm=t,this.method=r.method,this.delay=r.delay||0,this.update(r)}update(t){if(typeof t=="string"&&(t={method:t,auto:!0}),this.method&&t.method&&t.method!==this.method)throw new Error("[Resource Manager]: method cannot change for the same resource");this.options=t,this.params=t.params||null,this.auto=t.auto||!1,this.keepData=t.keepData||!1,this.condition=t.condition||(()=>!0),this.paged=t.paged||!1,this.validate=t.validate||null,this.validate&&(this.validate=this.validate.bind(this._vm)),this.listeners=Object.create(null),this.onceListeners=Object.create(null);let r=Object.keys(t).filter(n=>n.startsWith("on"));if(r.length>0)for(const n of r)this.on(n,t[n]);this.reset()}fetch(t){return Ee(this,null,function*(){if(this.condition()){if(this.loading=!0,this.currentParams=t||this.params,this.validate){let r=yield this.validate();if(r){this.setError(r),this.loading=!1;return}}try{let r=yield Oo(this.method,this.currentParams);this.delay&&(yield new Promise(n=>setTimeout(n,this.delay*1e3))),Array.isArray(r)&&this.paged?(this.lastPageEmpty=r.length===0,this.data=[].concat(this.data||[],r)):this.data=r,this.emit("Success",this.data)}catch(r){let n=r.messages||["Internal Server Error"];this.setError(n.join(` +`))}this.lastLoaded=new Date,this.loading=!1,this.currentParams=null}})}reload(){return this.fetch()}submit(t){return this.fetch(t)}reset(){this.data=this.options.default||null,this.error=null,this.loading=!1,this.lastLoaded=null,this.lastPageEmpty=!1,this.currentParams=null}cancel(){}setError(t){this.error=t,this.emit("Error",this.error)}on(t,r){return this.listeners[t]=(this.listeners[t]||[]).concat(r),this}once(t,r){return this.onceListeners[t]=(this.onceListeners[t]||[]).concat(r),this}emit(t,...r){let n="on"+t,s=this._vm;(this.listeners[n]||[]).forEach(a=>{i(a)}),(this.onceListeners[n]||[]).forEach(a=>{i(a),this.onceListeners[n].splice(this.onceListeners[n].indexOf(a),1)});function i(a){try{a.call(s,...r)}catch(o){console.error(o)}}}}let QM={beforeCreate(){const e=this.$options;if(!e.resources||e._rm)return;let t;if(typeof e.resources=="function"&&(e.resources=e.resources.call(this)),tB(e.resources)){const r=e.resources,{$options:n}=r,s=Os(r,["$options"]);t=new ZM(this,s)}else throw new Error("[ResourceManager]: resources options should be an object or a function that returns object");Object.prototype.hasOwnProperty.call(this,"$resources")||(this.$resources=Br(t.resources)),Object.keys(e.resources).forEach(n=>{Al(e.computed,n)||Al(e.props,n)||Al(e.methods,n)||(e.computed||(e.computed={}),e.computed[n]=e.resources[n])}),this._rm=t},data(){return this._rm?{$rm:this._rm,$r:this._rm.resources,$resources:this._rm.resources}:{}},created(){this._rm&&this._rm.init()}};function eB(e){e.mixin(QM)}function tB(e){return typeof e=="object"&&e&&Object.prototype.toString(e)==="[object Object]"}function Al(e,t){return t in(e||{})}var Sv={exports:{}};/*! + * Socket.IO v2.5.0 + * (c) 2014-2021 Guillermo Rauch + * Released under the MIT License. + */(function(e,t){(function(r,n){e.exports=n()})(Ye,function(){return function(r){function n(i){if(s[i])return s[i].exports;var a=s[i]={exports:{},id:i,loaded:!1};return r[i].call(a.exports,a,a.exports,n),a.loaded=!0,a.exports}var s={};return n.m=r,n.c=s,n.p="",n(0)}([function(r,n,s){function i(f,h){(typeof f=="undefined"?"undefined":a(f))==="object"&&(h=f,f=void 0),h=h||{};var p,d=o(f),g=d.source,m=d.id,y=d.path,w=c[m]&&y in c[m].nsps,C=h.forceNew||h["force new connection"]||h.multiplex===!1||w;return C?p=l(g,h):(c[m]||(c[m]=l(g,h)),p=c[m]),d.query&&!h.query&&(h.query=d.query),p.socket(d.path,h)}var a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},o=s(1),u=s(4),l=s(9);s(3)("socket.io-client"),r.exports=n=i;var c=n.managers={};n.protocol=u.protocol,n.connect=i,n.Manager=s(9),n.Socket=s(34)},function(r,n,s){function i(o,u){var l=o;u=u||typeof location!="undefined"&&location,o==null&&(o=u.protocol+"//"+u.host),typeof o=="string"&&(o.charAt(0)==="/"&&(o=o.charAt(1)==="/"?u.protocol+o:u.host+o),/^(https?|wss?):\/\//.test(o)||(o=typeof u!="undefined"?u.protocol+"//"+o:"https://"+o),l=a(o)),l.port||(/^(http|ws)$/.test(l.protocol)?l.port="80":/^(http|ws)s$/.test(l.protocol)&&(l.port="443")),l.path=l.path||"/";var c=l.host.indexOf(":")!==-1,f=c?"["+l.host+"]":l.host;return l.id=l.protocol+"://"+f+":"+l.port,l.href=l.protocol+"://"+f+(u&&u.port===l.port?"":":"+l.port),l}var a=s(2);s(3)("socket.io-client:url"),r.exports=i},function(r,n){function s(u,l){var c=/\/{2,9}/g,f=l.replace(c,"/").split("/");return l.substr(0,1)!="/"&&l.length!==0||f.splice(0,1),l.substr(l.length-1,1)=="/"&&f.splice(f.length-1,1),f}function i(u,l){var c={};return l.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(f,h,p){h&&(c[h]=p)}),c}var a=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,o=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];r.exports=function(u){var l=u,c=u.indexOf("["),f=u.indexOf("]");c!=-1&&f!=-1&&(u=u.substring(0,c)+u.substring(c,f).replace(/:/g,";")+u.substring(f,u.length));for(var h=a.exec(u||""),p={},d=14;d--;)p[o[d]]=h[d]||"";return c!=-1&&f!=-1&&(p.source=l,p.host=p.host.substring(1,p.host.length-1).replace(/;/g,":"),p.authority=p.authority.replace("[","").replace("]","").replace(/;/g,":"),p.ipv6uri=!0),p.pathNames=s(p,p.path),p.queryKey=i(p,p.query),p}},function(r,n){r.exports=function(){return function(){}}},function(r,n,s){function i(){}function a(C){var k=""+C.type;if(n.BINARY_EVENT!==C.type&&n.BINARY_ACK!==C.type||(k+=C.attachments+"-"),C.nsp&&C.nsp!=="/"&&(k+=C.nsp+","),C.id!=null&&(k+=C.id),C.data!=null){var P=o(C.data);if(P===!1)return w;k+=P}return k}function o(C){try{return JSON.stringify(C)}catch(k){return!1}}function u(C,k){function P(b){var _=g.deconstructPacket(b),S=a(_.packet),x=_.buffers;x.unshift(S),k(x)}g.removeBlobs(C,P)}function l(){this.reconstructor=null}function c(C){var k=0,P={type:Number(C.charAt(0))};if(n.types[P.type]==null)return p("unknown packet type "+P.type);if(n.BINARY_EVENT===P.type||n.BINARY_ACK===P.type){for(var b="";C.charAt(++k)!=="-"&&(b+=C.charAt(k),k!=C.length););if(b!=Number(b)||C.charAt(k)!=="-")throw new Error("Illegal attachments");P.attachments=Number(b)}if(C.charAt(k+1)==="/")for(P.nsp="";++k;){var _=C.charAt(k);if(_===","||(P.nsp+=_,k===C.length))break}else P.nsp="/";var S=C.charAt(k+1);if(S!==""&&Number(S)==S){for(P.id="";++k;){var _=C.charAt(k);if(_==null||Number(_)!=_){--k;break}if(P.id+=C.charAt(k),k===C.length)break}P.id=Number(P.id)}if(C.charAt(++k)){var x=f(C.substr(k)),A=x!==!1&&(P.type===n.ERROR||m(x));if(!A)return p("invalid payload");P.data=x}return P}function f(C){try{return JSON.parse(C)}catch(k){return!1}}function h(C){this.reconPack=C,this.buffers=[]}function p(C){return{type:n.ERROR,data:"parser error: "+C}}var d=(s(3)("socket.io-parser"),s(5)),g=s(6),m=s(7),y=s(8);n.protocol=4,n.types=["CONNECT","DISCONNECT","EVENT","ACK","ERROR","BINARY_EVENT","BINARY_ACK"],n.CONNECT=0,n.DISCONNECT=1,n.EVENT=2,n.ACK=3,n.ERROR=4,n.BINARY_EVENT=5,n.BINARY_ACK=6,n.Encoder=i,n.Decoder=l;var w=n.ERROR+'"encode error"';i.prototype.encode=function(C,k){if(n.BINARY_EVENT===C.type||n.BINARY_ACK===C.type)u(C,k);else{var P=a(C);k([P])}},d(l.prototype),l.prototype.add=function(C){var k;if(typeof C=="string")k=c(C),n.BINARY_EVENT===k.type||n.BINARY_ACK===k.type?(this.reconstructor=new h(k),this.reconstructor.reconPack.attachments===0&&this.emit("decoded",k)):this.emit("decoded",k);else{if(!y(C)&&!C.base64)throw new Error("Unknown type: "+C);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");k=this.reconstructor.takeBinaryData(C),k&&(this.reconstructor=null,this.emit("decoded",k))}},l.prototype.destroy=function(){this.reconstructor&&this.reconstructor.finishedReconstruction()},h.prototype.takeBinaryData=function(C){if(this.buffers.push(C),this.buffers.length===this.reconPack.attachments){var k=g.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),k}return null},h.prototype.finishedReconstruction=function(){this.reconPack=null,this.buffers=[]}},function(r,n,s){function i(o){if(o)return a(o)}function a(o){for(var u in i.prototype)o[u]=i.prototype[u];return o}r.exports=i,i.prototype.on=i.prototype.addEventListener=function(o,u){return this._callbacks=this._callbacks||{},(this._callbacks["$"+o]=this._callbacks["$"+o]||[]).push(u),this},i.prototype.once=function(o,u){function l(){this.off(o,l),u.apply(this,arguments)}return l.fn=u,this.on(o,l),this},i.prototype.off=i.prototype.removeListener=i.prototype.removeAllListeners=i.prototype.removeEventListener=function(o,u){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var l=this._callbacks["$"+o];if(!l)return this;if(arguments.length==1)return delete this._callbacks["$"+o],this;for(var c,f=0;f0&&!this.encoding){var m=this.packetBuffer.shift();this.packet(m)}},i.prototype.cleanup=function(){for(var m=this.subs.length,y=0;y=this._reconnectionAttempts)this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1;else{var y=this.backoff.duration();this.reconnecting=!0;var w=setTimeout(function(){m.skipReconnect||(m.emitAll("reconnect_attempt",m.backoff.attempts),m.emitAll("reconnecting",m.backoff.attempts),m.skipReconnect||m.open(function(C){C?(m.reconnecting=!1,m.reconnect(),m.emitAll("reconnect_error",C.data)):m.onreconnect()}))},y);this.subs.push({destroy:function(){clearTimeout(w)}})}},i.prototype.onreconnect=function(){var m=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",m)}},function(r,n,s){r.exports=s(11),r.exports.parser=s(19)},function(r,n,s){function i(p,d){return this instanceof i?(d=d||{},p&&typeof p=="object"&&(d=p,p=null),p?(p=f(p),d.hostname=p.host,d.secure=p.protocol==="https"||p.protocol==="wss",d.port=p.port,p.query&&(d.query=p.query)):d.host&&(d.hostname=f(d.host).host),this.secure=d.secure!=null?d.secure:typeof location!="undefined"&&location.protocol==="https:",d.hostname&&!d.port&&(d.port=this.secure?"443":"80"),this.agent=d.agent||!1,this.hostname=d.hostname||(typeof location!="undefined"?location.hostname:"localhost"),this.port=d.port||(typeof location!="undefined"&&location.port?location.port:this.secure?443:80),this.query=d.query||{},typeof this.query=="string"&&(this.query=h.decode(this.query)),this.upgrade=d.upgrade!==!1,this.path=(d.path||"/engine.io").replace(/\/$/,"")+"/",this.forceJSONP=!!d.forceJSONP,this.jsonp=d.jsonp!==!1,this.forceBase64=!!d.forceBase64,this.enablesXDR=!!d.enablesXDR,this.withCredentials=d.withCredentials!==!1,this.timestampParam=d.timestampParam||"t",this.timestampRequests=d.timestampRequests,this.transports=d.transports||["polling","websocket"],this.transportOptions=d.transportOptions||{},this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.policyPort=d.policyPort||843,this.rememberUpgrade=d.rememberUpgrade||!1,this.binaryType=null,this.onlyBinaryUpgrades=d.onlyBinaryUpgrades,this.perMessageDeflate=d.perMessageDeflate!==!1&&(d.perMessageDeflate||{}),this.perMessageDeflate===!0&&(this.perMessageDeflate={}),this.perMessageDeflate&&this.perMessageDeflate.threshold==null&&(this.perMessageDeflate.threshold=1024),this.pfx=d.pfx||null,this.key=d.key||null,this.passphrase=d.passphrase||null,this.cert=d.cert||null,this.ca=d.ca||null,this.ciphers=d.ciphers||null,this.rejectUnauthorized=d.rejectUnauthorized===void 0||d.rejectUnauthorized,this.forceNode=!!d.forceNode,this.isReactNative=typeof navigator!="undefined"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",(typeof self=="undefined"||this.isReactNative)&&(d.extraHeaders&&Object.keys(d.extraHeaders).length>0&&(this.extraHeaders=d.extraHeaders),d.localAddress&&(this.localAddress=d.localAddress)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingIntervalTimer=null,this.pingTimeoutTimer=null,void this.open()):new i(p,d)}function a(p){var d={};for(var g in p)p.hasOwnProperty(g)&&(d[g]=p[g]);return d}var o=s(12),u=s(5),l=(s(3)("engine.io-client:socket"),s(33)),c=s(19),f=s(2),h=s(27);r.exports=i,i.priorWebsocketSuccess=!1,u(i.prototype),i.protocol=c.protocol,i.Socket=i,i.Transport=s(18),i.transports=s(12),i.parser=s(19),i.prototype.createTransport=function(p){var d=a(this.query);d.EIO=c.protocol,d.transport=p;var g=this.transportOptions[p]||{};this.id&&(d.sid=this.id);var m=new o[p]({query:d,socket:this,agent:g.agent||this.agent,hostname:g.hostname||this.hostname,port:g.port||this.port,secure:g.secure||this.secure,path:g.path||this.path,forceJSONP:g.forceJSONP||this.forceJSONP,jsonp:g.jsonp||this.jsonp,forceBase64:g.forceBase64||this.forceBase64,enablesXDR:g.enablesXDR||this.enablesXDR,withCredentials:g.withCredentials||this.withCredentials,timestampRequests:g.timestampRequests||this.timestampRequests,timestampParam:g.timestampParam||this.timestampParam,policyPort:g.policyPort||this.policyPort,pfx:g.pfx||this.pfx,key:g.key||this.key,passphrase:g.passphrase||this.passphrase,cert:g.cert||this.cert,ca:g.ca||this.ca,ciphers:g.ciphers||this.ciphers,rejectUnauthorized:g.rejectUnauthorized||this.rejectUnauthorized,perMessageDeflate:g.perMessageDeflate||this.perMessageDeflate,extraHeaders:g.extraHeaders||this.extraHeaders,forceNode:g.forceNode||this.forceNode,localAddress:g.localAddress||this.localAddress,requestTimeout:g.requestTimeout||this.requestTimeout,protocols:g.protocols||void 0,isReactNative:this.isReactNative});return m},i.prototype.open=function(){var p;if(this.rememberUpgrade&&i.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)p="websocket";else{if(this.transports.length===0){var d=this;return void setTimeout(function(){d.emit("error","No transports available")},0)}p=this.transports[0]}this.readyState="opening";try{p=this.createTransport(p)}catch(g){return this.transports.shift(),void this.open()}p.open(),this.setTransport(p)},i.prototype.setTransport=function(p){var d=this;this.transport&&this.transport.removeAllListeners(),this.transport=p,p.on("drain",function(){d.onDrain()}).on("packet",function(g){d.onPacket(g)}).on("error",function(g){d.onError(g)}).on("close",function(){d.onClose("transport close")})},i.prototype.probe=function(p){function d(){if(_.onlyBinaryUpgrades){var S=!this.supportsBinary&&_.transport.supportsBinary;b=b||S}b||(P.send([{type:"ping",data:"probe"}]),P.once("packet",function(x){if(!b)if(x.type==="pong"&&x.data==="probe"){if(_.upgrading=!0,_.emit("upgrading",P),!P)return;i.priorWebsocketSuccess=P.name==="websocket",_.transport.pause(function(){b||_.readyState!=="closed"&&(k(),_.setTransport(P),P.send([{type:"upgrade"}]),_.emit("upgrade",P),P=null,_.upgrading=!1,_.flush())})}else{var A=new Error("probe error");A.transport=P.name,_.emit("upgradeError",A)}}))}function g(){b||(b=!0,k(),P.close(),P=null)}function m(S){var x=new Error("probe error: "+S);x.transport=P.name,g(),_.emit("upgradeError",x)}function y(){m("transport closed")}function w(){m("socket closed")}function C(S){P&&S.name!==P.name&&g()}function k(){P.removeListener("open",d),P.removeListener("error",m),P.removeListener("close",y),_.removeListener("close",w),_.removeListener("upgrading",C)}var P=this.createTransport(p,{probe:1}),b=!1,_=this;i.priorWebsocketSuccess=!1,P.once("open",d),P.once("error",m),P.once("close",y),this.once("close",w),this.once("upgrading",C),P.open()},i.prototype.onOpen=function(){if(this.readyState="open",i.priorWebsocketSuccess=this.transport.name==="websocket",this.emit("open"),this.flush(),this.readyState==="open"&&this.upgrade&&this.transport.pause)for(var p=0,d=this.upgrades.length;p1?{type:P[D],data:S.substring(1)}:{type:P[D]}:b}var T=new Uint8Array(S),D=T[0],N=d(S,1);return _&&x==="blob"&&(N=new _([N])),{type:P[D],data:N}},n.decodeBase64Packet=function(S,x){var A=P[S.charAt(0)];if(!f)return{type:A,data:{base64:!0,data:S.substr(1)}};var T=f.decode(S.substr(1));return x==="blob"&&_&&(T=new _([T])),{type:A,data:T}},n.encodePayload=function(S,x,A){function T(F){return F.length+":"+F}function D(F,R){n.encodePacket(F,!!N&&x,!1,function(M){R(null,T(M))})}typeof x=="function"&&(A=x,x=null);var N=p(S);return x&&N?_&&!C?n.encodePayloadAsBlob(S,A):n.encodePayloadAsArrayBuffer(S,A):S.length?void c(S,D,function(F,R){return A(R.join(""))}):A("0:")},n.decodePayload=function(S,x,A){if(typeof S!="string")return n.decodePayloadAsBinary(S,x,A);typeof x=="function"&&(A=x,x=null);var T;if(S==="")return A(b,0,1);for(var D,N,F="",R=0,M=S.length;R0;){for(var N=new Uint8Array(T),F=N[0]===0,R="",M=1;N[M]!==255;M++){if(R.length>310)return A(b,0,1);R+=N[M]}T=d(T,2+R.length),R=parseInt(R);var $=d(T,0,R);if(F)try{$=String.fromCharCode.apply(null,new Uint8Array($))}catch(de){var ae=new Uint8Array($);$="";for(var M=0;Mo&&(a=o),i>=o||i>=a||o===0)return new ArrayBuffer(0);for(var u=new Uint8Array(s),l=new Uint8Array(a-i),c=i,f=0;c=55296&&w<=56319&&P65535&&(w-=65536,P+=m(w>>>10&1023|55296),w=56320|1023&w),P+=m(w);return P}function a(y,w){if(y>=55296&&y<=57343){if(w)throw Error("Lone surrogate U+"+y.toString(16).toUpperCase()+" is not a scalar value");return!1}return!0}function o(y,w){return m(y>>w&63|128)}function u(y,w){if(!(4294967168&y))return m(y);var C="";return 4294965248&y?4294901760&y?!(4292870144&y)&&(C=m(y>>18&7|240),C+=o(y,12),C+=o(y,6)):(a(y,w)||(y=65533),C=m(y>>12&15|224),C+=o(y,6)):C=m(y>>6&31|192),C+=m(63&y|128)}function l(y,w){w=w||{};for(var C,k=w.strict!==!1,P=s(y),b=P.length,_=-1,S="";++_=d)throw Error("Invalid byte index");var y=255&p[g];if(g++,(192&y)==128)return 63&y;throw Error("Invalid continuation byte")}function f(y){var w,C,k,P,b;if(g>d)throw Error("Invalid byte index");if(g==d)return!1;if(w=255&p[g],g++,(128&w)==0)return w;if((224&w)==192){if(C=c(),b=(31&w)<<6|C,b>=128)return b;throw Error("Invalid continuation byte")}if((240&w)==224){if(C=c(),k=c(),b=(15&w)<<12|C<<6|k,b>=2048)return a(b,y)?b:65533;throw Error("Invalid continuation byte")}if((248&w)==240&&(C=c(),k=c(),P=c(),b=(7&w)<<18|C<<12|k<<6|P,b>=65536&&b<=1114111))return b;throw Error("Invalid UTF-8 detected")}function h(y,w){w=w||{};var C=w.strict!==!1;p=s(y),d=p.length,g=0;for(var k,P=[];(k=f(C))!==!1;)P.push(k);return i(P)}/*! https://mths.be/utf8js v2.1.2 by @mathias */var p,d,g,m=String.fromCharCode;r.exports={version:"2.1.2",encode:l,decode:h}},function(r,n){(function(s){n.encode=function(i){var a,o=new Uint8Array(i),u=o.length,l="";for(a=0;a>2],l+=s[(3&o[a])<<4|o[a+1]>>4],l+=s[(15&o[a+1])<<2|o[a+2]>>6],l+=s[63&o[a+2]];return u%3===2?l=l.substring(0,l.length-1)+"=":u%3===1&&(l=l.substring(0,l.length-2)+"=="),l},n.decode=function(i){var a,o,u,l,c,f=.75*i.length,h=i.length,p=0;i[i.length-1]==="="&&(f--,i[i.length-2]==="="&&f--);var d=new ArrayBuffer(f),g=new Uint8Array(d);for(a=0;a>4,g[p++]=(15&u)<<4|l>>2,g[p++]=(3&l)<<6|63&c;return d}})("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/")},function(r,n){function s(f){return f.map(function(h){if(h.buffer instanceof ArrayBuffer){var p=h.buffer;if(h.byteLength!==p.byteLength){var d=new Uint8Array(h.byteLength);d.set(new Uint8Array(p,h.byteOffset,h.byteLength)),p=d.buffer}return p}return h})}function i(f,h){h=h||{};var p=new o;return s(f).forEach(function(d){p.append(d)}),h.type?p.getBlob(h.type):p.getBlob()}function a(f,h){return new Blob(s(f),h||{})}var o=typeof o!="undefined"?o:typeof WebKitBlobBuilder!="undefined"?WebKitBlobBuilder:typeof MSBlobBuilder!="undefined"?MSBlobBuilder:typeof MozBlobBuilder!="undefined"&&MozBlobBuilder,u=function(){try{var f=new Blob(["hi"]);return f.size===2}catch(h){return!1}}(),l=u&&function(){try{var f=new Blob([new Uint8Array([1,2])]);return f.size===2}catch(h){return!1}}(),c=o&&o.prototype.append&&o.prototype.getBlob;typeof Blob!="undefined"&&(i.prototype=Blob.prototype,a.prototype=Blob.prototype),r.exports=function(){return u?l?Blob:a:c?i:void 0}()},function(r,n){n.encode=function(s){var i="";for(var a in s)s.hasOwnProperty(a)&&(i.length&&(i+="&"),i+=encodeURIComponent(a)+"="+encodeURIComponent(s[a]));return i},n.decode=function(s){for(var i={},a=s.split("&"),o=0,u=a.length;o0);return d}function i(p){var d=0;for(h=0;h';w=document.createElement(b)}catch(_){w=document.createElement("iframe"),w.name=y.iframeId,w.src="javascript:0"}w.id=y.iframeId,y.form.appendChild(w),y.iframe=w}var y=this;if(!this.form){var w,C=document.createElement("form"),k=document.createElement("textarea"),P=this.iframeId="eio_iframe_"+this.index;C.className="socketio",C.style.position="absolute",C.style.top="-1000px",C.style.left="-1000px",C.target=P,C.method="POST",C.setAttribute("accept-charset","utf-8"),k.name="d",C.appendChild(k),document.body.appendChild(C),this.form=C,this.area=k}this.form.action=this.uri(),m(),p=p.replace(h,`\\ +`),this.area.value=p.replace(f,"\\n");try{this.form.submit()}catch(b){}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){y.iframe.readyState==="complete"&&g()}:this.iframe.onload=g}},function(r,n,s){function i(d){var g=d&&d.forceBase64;g&&(this.supportsBinary=!1),this.perMessageDeflate=d.perMessageDeflate,this.usingBrowserWebSocket=a&&!d.forceNode,this.protocols=d.protocols,this.usingBrowserWebSocket||(p=o),u.call(this,d)}var a,o,u=s(18),l=s(19),c=s(27),f=s(28),h=s(29);if(s(3)("engine.io-client:websocket"),typeof WebSocket!="undefined"?a=WebSocket:typeof self!="undefined"&&(a=self.WebSocket||self.MozWebSocket),typeof window=="undefined")try{o=s(32)}catch(d){}var p=a||o;r.exports=i,f(i,u),i.prototype.name="websocket",i.prototype.supportsBinary=!0,i.prototype.doOpen=function(){if(this.check()){var d=this.uri(),g=this.protocols,m={};this.isReactNative||(m.agent=this.agent,m.perMessageDeflate=this.perMessageDeflate,m.pfx=this.pfx,m.key=this.key,m.passphrase=this.passphrase,m.cert=this.cert,m.ca=this.ca,m.ciphers=this.ciphers,m.rejectUnauthorized=this.rejectUnauthorized),this.extraHeaders&&(m.headers=this.extraHeaders),this.localAddress&&(m.localAddress=this.localAddress);try{this.ws=this.usingBrowserWebSocket&&!this.isReactNative?g?new p(d,g):new p(d):new p(d,g,m)}catch(y){return this.emit("error",y)}this.ws.binaryType===void 0&&(this.supportsBinary=!1),this.ws.supports&&this.ws.supports.binary?(this.supportsBinary=!0,this.ws.binaryType="nodebuffer"):this.ws.binaryType="arraybuffer",this.addEventListeners()}},i.prototype.addEventListeners=function(){var d=this;this.ws.onopen=function(){d.onOpen()},this.ws.onclose=function(){d.onClose()},this.ws.onmessage=function(g){d.onData(g.data)},this.ws.onerror=function(g){d.onError("websocket error",g)}},i.prototype.write=function(d){function g(){m.emit("flush"),setTimeout(function(){m.writable=!0,m.emit("drain")},0)}var m=this;this.writable=!1;for(var y=d.length,w=0,C=y;w0&&i.jitter<=1?i.jitter:0,this.attempts=0}r.exports=s,s.prototype.duration=function(){var i=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var a=Math.random(),o=Math.floor(a*this.jitter*i);i=1&Math.floor(10*a)?i+o:i-o}return 0|Math.min(i,this.max)},s.prototype.reset=function(){this.attempts=0},s.prototype.setMin=function(i){this.ms=i},s.prototype.setMax=function(i){this.max=i},s.prototype.setJitter=function(i){this.jitter=i}}])})})(Sv);var rB=Sv.exports;const nB=Rg(rB);let sB=window.location.hostname,_v=window.location.port?":9000":"",iB=_v?"http":"https",aB=`${iB}://${sB}${_v}`,oB=nB(aB);class uB{constructor(){this.isLoggedIn=!1,this.user=null,this.user_image=null,this.cookie=null,this.cookie=Object.fromEntries(document.cookie.split("; ").map(t=>t.split("=")).map(t=>[t[0],decodeURIComponent(t[1])])),this.isLoggedIn=this.cookie.user_id&&this.cookie.user_id!=="Guest"}login(t,r){return Ee(this,null,function*(){let n=yield Oo("login",{usr:t,pwd:r});return n?(this.isLoggedIn=!0,n):!1})}logout(){return Ee(this,null,function*(){yield Oo("logout"),this.isLoggedIn=!1,window.location.reload()})}resetPassword(t){return Ee(this,null,function*(){console.log("resetting password")})}}const lB=cw(),Ds=aw(XM),cB=Br(new uB);Ds.use(dt);Ds.use(lB);Ds.use(eB);Ds.provide("$auth",cB);Ds.provide("$call",Oo);Ds.provide("$socket",oB);dt.beforeEach((e,t,r)=>{const s=Lt().userAuth;e.name!=="Login"&&!s?r({name:"Login"}):e.name==="Login"&&s?r({name:"Table"}):r()});Ds.mount("#app");export{dr as _,E as a,_e as b,V as c,fB as d,H as o,Lt as u,Ae as v,tw as w}; diff --git a/ury_pos/public/urypos/assets/index-7e30cef0.css b/ury_pos/public/urypos/assets/index-7e30cef0.css new file mode 100644 index 0000000..f62cf3e --- /dev/null +++ b/ury_pos/public/urypos/assets/index-7e30cef0.css @@ -0,0 +1 @@ +*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}.tooltip-arrow,.tooltip-arrow:before{position:absolute;width:8px;height:8px;background:inherit}.tooltip-arrow{visibility:hidden}.tooltip-arrow:before{content:"";visibility:visible;transform:rotate(45deg)}[data-tooltip-style^=light]+.tooltip>.tooltip-arrow:before{border-style:solid;border-color:#e5e7eb}[data-tooltip-style^=light]+.tooltip[data-popper-placement^=top]>.tooltip-arrow:before{border-bottom-width:1px;border-right-width:1px}[data-tooltip-style^=light]+.tooltip[data-popper-placement^=right]>.tooltip-arrow:before{border-bottom-width:1px;border-left-width:1px}[data-tooltip-style^=light]+.tooltip[data-popper-placement^=bottom]>.tooltip-arrow:before{border-top-width:1px;border-left-width:1px}[data-tooltip-style^=light]+.tooltip[data-popper-placement^=left]>.tooltip-arrow:before{border-top-width:1px;border-right-width:1px}.tooltip[data-popper-placement^=top]>.tooltip-arrow{bottom:-4px}.tooltip[data-popper-placement^=bottom]>.tooltip-arrow{top:-4px}.tooltip[data-popper-placement^=left]>.tooltip-arrow{right:-4px}.tooltip[data-popper-placement^=right]>.tooltip-arrow{left:-4px}.tooltip.invisible>.tooltip-arrow:before{visibility:hidden}[data-popper-arrow],[data-popper-arrow]:before{position:absolute;width:8px;height:8px;background:inherit}[data-popper-arrow]{visibility:hidden}[data-popper-arrow]:before{content:"";visibility:visible;transform:rotate(45deg)}[data-popper-arrow]:after{content:"";visibility:visible;transform:rotate(45deg);position:absolute;width:9px;height:9px;background:inherit}[role=tooltip]>[data-popper-arrow]:before{border-style:solid;border-color:#e5e7eb}.dark [role=tooltip]>[data-popper-arrow]:before{border-style:solid;border-color:#4b5563}[role=tooltip]>[data-popper-arrow]:after{border-style:solid;border-color:#e5e7eb}.dark [role=tooltip]>[data-popper-arrow]:after{border-style:solid;border-color:#4b5563}[data-popover][role=tooltip][data-popper-placement^=top]>[data-popper-arrow]:before{border-bottom-width:1px;border-right-width:1px}[data-popover][role=tooltip][data-popper-placement^=top]>[data-popper-arrow]:after{border-bottom-width:1px;border-right-width:1px}[data-popover][role=tooltip][data-popper-placement^=right]>[data-popper-arrow]:before{border-bottom-width:1px;border-left-width:1px}[data-popover][role=tooltip][data-popper-placement^=right]>[data-popper-arrow]:after{border-bottom-width:1px;border-left-width:1px}[data-popover][role=tooltip][data-popper-placement^=bottom]>[data-popper-arrow]:before{border-top-width:1px;border-left-width:1px}[data-popover][role=tooltip][data-popper-placement^=bottom]>[data-popper-arrow]:after{border-top-width:1px;border-left-width:1px}[data-popover][role=tooltip][data-popper-placement^=left]>[data-popper-arrow]:before{border-top-width:1px;border-right-width:1px}[data-popover][role=tooltip][data-popper-placement^=left]>[data-popper-arrow]:after{border-top-width:1px;border-right-width:1px}[data-popover][role=tooltip][data-popper-placement^=top]>[data-popper-arrow]{bottom:-5px}[data-popover][role=tooltip][data-popper-placement^=bottom]>[data-popper-arrow]{top:-5px}[data-popover][role=tooltip][data-popper-placement^=left]>[data-popper-arrow]{right:-5px}[data-popover][role=tooltip][data-popper-placement^=right]>[data-popper-arrow]{left:-5px}[role=tooltip].invisible>[data-popper-arrow]:before{visibility:hidden}[role=tooltip].invisible>[data-popper-arrow]:after{visibility:hidden}[type=text],[type=email],[type=url],[type=password],[type=number],[type=date],[type=datetime-local],[type=month],[type=search],[type=tel],[type=time],[type=week],[multiple],textarea,select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-width:1px;border-radius:0;padding:.5rem .75rem;font-size:1rem;line-height:1.5rem;--tw-shadow: 0 0 #0000}[type=text]:focus,[type=email]:focus,[type=url]:focus,[type=password]:focus,[type=number]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=month]:focus,[type=search]:focus,[type=tel]:focus,[type=time]:focus,[type=week]:focus,[multiple]:focus,textarea:focus,select:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: #1C64F2;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);border-color:#1c64f2}input::-moz-placeholder,textarea::-moz-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em}select:not([size]){background-image:url("data:image/svg+xml,%3csvg aria-hidden='true' xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 10 6'%3e %3cpath stroke='%236B7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 1 4 4 4-4'/%3e %3c/svg%3e");background-position:right .75rem center;background-repeat:no-repeat;background-size:.75em .75em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple]{background-image:initial;background-position:initial;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;display:inline-block;vertical-align:middle;background-origin:border-box;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-shrink:0;height:1rem;width:1rem;color:#1c64f2;background-color:#fff;border-color:#6b7280;border-width:1px;--tw-shadow: 0 0 #0000}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline:2px solid transparent;outline-offset:2px;--tw-ring-inset: var(--tw-empty, );--tw-ring-offset-width: 2px;--tw-ring-offset-color: #fff;--tw-ring-color: #1C64F2;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}[type=checkbox]:checked,[type=radio]:checked,.dark [type=checkbox]:checked,.dark [type=radio]:checked{border-color:transparent;background-color:currentColor;background-size:.55em .55em;background-position:center;background-repeat:no-repeat}[type=checkbox]:checked{background-image:url("data:image/svg+xml,%3csvg aria-hidden='true' xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 12'%3e %3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M1 5.917 5.724 10.5 15 1.5'/%3e %3c/svg%3e");background-repeat:no-repeat;background-size:.55em .55em;-webkit-print-color-adjust:exact;print-color-adjust:exact}[type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e");background-size:1em 1em}.dark [type=radio]:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e");background-size:1em 1em}[type=checkbox]:indeterminate{background-image:url("data:image/svg+xml,%3csvg aria-hidden='true' xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 12'%3e %3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M1 5.917 5.724 10.5 15 1.5'/%3e %3c/svg%3e");background-color:currentColor;border-color:transparent;background-position:center;background-repeat:no-repeat;background-size:.55em .55em;-webkit-print-color-adjust:exact;print-color-adjust:exact}[type=checkbox]:indeterminate:hover,[type=checkbox]:indeterminate:focus{border-color:transparent;background-color:currentColor}[type=file]{background:unset;border-color:inherit;border-width:0;border-radius:0;padding:0;font-size:unset;line-height:inherit}[type=file]:focus{outline:1px auto inherit}input[type=file]::file-selector-button{color:#fff;background:#1F2937;border:0;font-weight:500;font-size:.875rem;cursor:pointer;padding:.625rem 1rem .625rem 2rem;margin-inline-start:-1rem;margin-inline-end:1rem}input[type=file]::file-selector-button:hover{background:#374151}.dark input[type=file]::file-selector-button{color:#fff;background:#4B5563}.dark input[type=file]::file-selector-button:hover{background:#6B7280}input[type=range]::-webkit-slider-thumb{height:1.25rem;width:1.25rem;background:#1C64F2;border-radius:9999px;border:0;appearance:none;-moz-appearance:none;-webkit-appearance:none;cursor:pointer}input[type=range]:disabled::-webkit-slider-thumb{background:#9CA3AF}.dark input[type=range]:disabled::-webkit-slider-thumb{background:#6B7280}input[type=range]:focus::-webkit-slider-thumb{outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-opacity: 1px;--tw-ring-color: rgb(164 202 254 / var(--tw-ring-opacity))}input[type=range]::-moz-range-thumb{height:1.25rem;width:1.25rem;background:#1C64F2;border-radius:9999px;border:0;appearance:none;-moz-appearance:none;-webkit-appearance:none;cursor:pointer}input[type=range]:disabled::-moz-range-thumb{background:#9CA3AF}.dark input[type=range]:disabled::-moz-range-thumb{background:#6B7280}input[type=range]::-moz-range-progress{background:#3F83F8}input[type=range]::-ms-fill-lower{background:#3F83F8}.toggle-bg:after{content:"";position:absolute;top:.125rem;left:.125rem;background:white;border-color:#d1d5db;border-width:1px;border-radius:9999px;height:1.25rem;width:1.25rem;transition-property:background-color,border-color,color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-duration:.15s;box-shadow:var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color)}input:checked+.toggle-bg:after{transform:translate(100%);border-color:#fff}input:checked+.toggle-bg{background:#1C64F2;border-color:#1c64f2}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(63 131 248 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(63 131 248 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.inset-y-0{top:0;bottom:0}.-bottom-1{bottom:-.25rem}.-bottom-1\.5{bottom:-.375rem}.-bottom-2{bottom:-.5rem}.-bottom-4{bottom:-1rem}.-left-1{left:-.25rem}.-left-1\.5{left:-.375rem}.-right-0{right:-0px}.-right-0\.5{right:-.125rem}.-right-1{right:-.25rem}.-right-1\.5{right:-.375rem}.-top-1{top:-.25rem}.-top-1\.5{top:-.375rem}.bottom-0{bottom:0}.bottom-2{bottom:.5rem}.bottom-2\.5{bottom:.625rem}.bottom-20{bottom:5rem}.bottom-5{bottom:1.25rem}.bottom-\[60px\]{bottom:60px}.left-0{left:0}.left-1\/2{left:50%}.right-0{right:0}.right-2{right:.5rem}.right-2\.5{right:.625rem}.right-3{right:.75rem}.right-4{right:1rem}.right-5{right:1.25rem}.right-7{right:1.75rem}.top-0{top:0}.top-1\/2{top:50%}.top-10{top:2.5rem}.top-3{top:.75rem}.top-4{top:1rem}.top-full{top:100%}.z-0{z-index:0}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.float-right{float:right}.m-3{margin:.75rem}.m-auto{margin:auto}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.-mx-1\.5{margin-left:-.375rem;margin-right:-.375rem}.-my-1{margin-top:-.25rem;margin-bottom:-.25rem}.-my-1\.5{margin-top:-.375rem;margin-bottom:-.375rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-1\.5{margin-left:.375rem;margin-right:.375rem}.mx-auto{margin-left:auto;margin-right:auto}.my-6{margin-top:1.5rem;margin-bottom:1.5rem}.-mb-px{margin-bottom:-1px}.-ml-px{margin-left:-1px}.mb-1{margin-bottom:.25rem}.mb-10{margin-bottom:2.5rem}.mb-12{margin-bottom:3rem}.mb-16{margin-bottom:4rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.me-2{margin-inline-end:.5rem}.ml-0{margin-left:0}.ml-1{margin-left:.25rem}.ml-12{margin-left:3rem}.ml-2{margin-left:.5rem}.ml-28{margin-left:7rem}.ml-3{margin-left:.75rem}.ml-4{margin-left:1rem}.ml-5{margin-left:1.25rem}.ml-auto{margin-left:auto}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mr-3{margin-right:.75rem}.mr-4{margin-right:1rem}.mr-5{margin-right:1.25rem}.mt-0{margin-top:0}.mt-1{margin-top:.25rem}.mt-1\.5{margin-top:.375rem}.mt-10{margin-top:2.5rem}.mt-11{margin-top:2.75rem}.mt-14{margin-top:3.5rem}.mt-2{margin-top:.5rem}.mt-20{margin-top:5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.mt-9{margin-top:2.25rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.flow-root{display:flow-root}.grid{display:grid}.hidden{display:none}.h-0{height:0px}.h-0\.5{height:.125rem}.h-1{height:.25rem}.h-1\.5{height:.375rem}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-16{height:4rem}.h-2{height:.5rem}.h-2\.5{height:.625rem}.h-20{height:5rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-36{height:9rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-56{height:14rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-96{height:24rem}.h-auto{height:auto}.h-full{height:100%}.h-modal{height:calc(100% - 2rem)}.h-px{height:1px}.h-screen{height:100vh}.max-h-64{max-height:16rem}.min-h-screen{min-height:100vh}.w-0{width:0px}.w-0\.5{width:.125rem}.w-1{width:.25rem}.w-1\.5{width:.375rem}.w-1\/2{width:50%}.w-10{width:2.5rem}.w-11{width:2.75rem}.w-12{width:3rem}.w-2{width:.5rem}.w-2\.5{width:.625rem}.w-2\/3{width:66.666667%}.w-20{width:5rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-32{width:8rem}.w-36{width:9rem}.w-4{width:1rem}.w-48{width:12rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-64{width:16rem}.w-7{width:1.75rem}.w-8{width:2rem}.w-9{width:2.25rem}.w-auto{width:auto}.w-full{width:100%}.w-px{width:1px}.min-w-0{min-width:0px}.min-w-2{min-width:.5rem}.max-w-2xl{max-width:42rem}.max-w-3xl{max-width:48rem}.max-w-4xl{max-width:56rem}.max-w-5xl{max-width:64rem}.max-w-6xl{max-width:72rem}.max-w-7xl{max-width:80rem}.max-w-full{max-width:100%}.max-w-lg{max-width:32rem}.max-w-md{max-width:28rem}.max-w-screen-2xl{max-width:1536px}.max-w-sm{max-width:24rem}.max-w-xl{max-width:36rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.flex-shrink{flex-shrink:1}.flex-shrink-0,.shrink-0{flex-shrink:0}.-translate-x-1\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-full{--tw-translate-x: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-0{--tw-translate-y: -0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-full{--tw-translate-y: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-full{--tw-translate-x: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-1\/2{--tw-translate-y: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-full{--tw-translate-y: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-180{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform-none{transform:none}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize{resize:both}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.flex-nowrap{flex-wrap:nowrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.-space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(-1rem * var(--tw-space-x-reverse));margin-left:calc(-1rem * calc(1 - var(--tw-space-x-reverse)))}.-space-x-px>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(-1px * var(--tw-space-x-reverse));margin-left:calc(-1px * calc(1 - var(--tw-space-x-reverse)))}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.divide-x>:not([hidden])~:not([hidden]){--tw-divide-x-reverse: 0;border-right-width:calc(1px * var(--tw-divide-x-reverse));border-left-width:calc(1px * calc(1 - var(--tw-divide-x-reverse)))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-gray-100>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(243 244 246 / var(--tw-divide-opacity))}.divide-gray-200>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(229 231 235 / var(--tw-divide-opacity))}.self-center{align-self:center}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-y-scroll{overflow-y:scroll}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.\!rounded-full{border-radius:9999px!important}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-b{border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-l-lg{border-top-left-radius:.5rem;border-bottom-left-radius:.5rem}.rounded-r-lg{border-top-right-radius:.5rem;border-bottom-right-radius:.5rem}.rounded-t{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.rounded-t-lg{border-top-left-radius:.5rem;border-top-right-radius:.5rem}.rounded-t-xl{border-top-left-radius:.75rem;border-top-right-radius:.75rem}.border{border-width:1px}.border-0{border-width:0px}.border-2{border-width:2px}.border-x{border-left-width:1px;border-right-width:1px}.border-x-0{border-left-width:0px;border-right-width:0px}.border-b{border-bottom-width:1px}.border-b-0{border-bottom-width:0px}.border-b-2{border-bottom-width:2px}.border-l{border-left-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-t-0{border-top-width:0px}.border-t-4{border-top-width:4px}.border-none{border-style:none}.border-blue-400{--tw-border-opacity: 1;border-color:rgb(118 169 250 / var(--tw-border-opacity))}.border-blue-500{--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity))}.border-blue-600{--tw-border-opacity: 1;border-color:rgb(28 100 242 / var(--tw-border-opacity))}.border-blue-700{--tw-border-opacity: 1;border-color:rgb(26 86 219 / var(--tw-border-opacity))}.border-gray-100{--tw-border-opacity: 1;border-color:rgb(243 244 246 / var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.border-gray-400{--tw-border-opacity: 1;border-color:rgb(156 163 175 / var(--tw-border-opacity))}.border-gray-500{--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity))}.border-gray-600{--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity))}.border-gray-700{--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity))}.border-gray-800{--tw-border-opacity: 1;border-color:rgb(31 41 55 / var(--tw-border-opacity))}.border-green-500{--tw-border-opacity: 1;border-color:rgb(14 159 110 / var(--tw-border-opacity))}.border-green-600{--tw-border-opacity: 1;border-color:rgb(5 122 85 / var(--tw-border-opacity))}.border-green-700{--tw-border-opacity: 1;border-color:rgb(4 108 78 / var(--tw-border-opacity))}.border-pink-600{--tw-border-opacity: 1;border-color:rgb(214 31 105 / var(--tw-border-opacity))}.border-pink-700{--tw-border-opacity: 1;border-color:rgb(191 18 93 / var(--tw-border-opacity))}.border-purple-600{--tw-border-opacity: 1;border-color:rgb(126 58 242 / var(--tw-border-opacity))}.border-purple-700{--tw-border-opacity: 1;border-color:rgb(108 43 217 / var(--tw-border-opacity))}.border-red-500{--tw-border-opacity: 1;border-color:rgb(240 82 82 / var(--tw-border-opacity))}.border-red-600{--tw-border-opacity: 1;border-color:rgb(224 36 36 / var(--tw-border-opacity))}.border-red-700{--tw-border-opacity: 1;border-color:rgb(200 30 30 / var(--tw-border-opacity))}.border-transparent{border-color:transparent}.border-white{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity))}.border-yellow-400{--tw-border-opacity: 1;border-color:rgb(227 160 8 / var(--tw-border-opacity))}.border-yellow-500{--tw-border-opacity: 1;border-color:rgb(194 120 3 / var(--tw-border-opacity))}.border-b-gray-200{--tw-border-opacity: 1;border-bottom-color:rgb(229 231 235 / var(--tw-border-opacity))}.border-l-white{--tw-border-opacity: 1;border-left-color:rgb(255 255 255 / var(--tw-border-opacity))}.border-r-white{--tw-border-opacity: 1;border-right-color:rgb(255 255 255 / var(--tw-border-opacity))}.border-t-white{--tw-border-opacity: 1;border-top-color:rgb(255 255 255 / var(--tw-border-opacity))}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.bg-blue-100{--tw-bg-opacity: 1;background-color:rgb(225 239 254 / var(--tw-bg-opacity))}.bg-blue-200{--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity))}.bg-blue-400{--tw-bg-opacity: 1;background-color:rgb(118 169 250 / var(--tw-bg-opacity))}.bg-blue-50{--tw-bg-opacity: 1;background-color:rgb(235 245 255 / var(--tw-bg-opacity))}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(63 131 248 / var(--tw-bg-opacity))}.bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity))}.bg-blue-700{--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.bg-gray-400{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.bg-gray-600{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}.bg-gray-700{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.bg-green-100{--tw-bg-opacity: 1;background-color:rgb(222 247 236 / var(--tw-bg-opacity))}.bg-green-200{--tw-bg-opacity: 1;background-color:rgb(188 240 218 / var(--tw-bg-opacity))}.bg-green-400{--tw-bg-opacity: 1;background-color:rgb(49 196 141 / var(--tw-bg-opacity))}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(14 159 110 / var(--tw-bg-opacity))}.bg-green-600{--tw-bg-opacity: 1;background-color:rgb(5 122 85 / var(--tw-bg-opacity))}.bg-green-700{--tw-bg-opacity: 1;background-color:rgb(4 108 78 / var(--tw-bg-opacity))}.bg-indigo-100{--tw-bg-opacity: 1;background-color:rgb(229 237 255 / var(--tw-bg-opacity))}.bg-indigo-200{--tw-bg-opacity: 1;background-color:rgb(205 219 254 / var(--tw-bg-opacity))}.bg-indigo-500{--tw-bg-opacity: 1;background-color:rgb(104 117 245 / var(--tw-bg-opacity))}.bg-indigo-600{--tw-bg-opacity: 1;background-color:rgb(88 80 236 / var(--tw-bg-opacity))}.bg-orange-100{--tw-bg-opacity: 1;background-color:rgb(254 236 220 / var(--tw-bg-opacity))}.bg-pink-100{--tw-bg-opacity: 1;background-color:rgb(252 232 243 / var(--tw-bg-opacity))}.bg-pink-200{--tw-bg-opacity: 1;background-color:rgb(250 209 232 / var(--tw-bg-opacity))}.bg-pink-700{--tw-bg-opacity: 1;background-color:rgb(191 18 93 / var(--tw-bg-opacity))}.bg-purple-100{--tw-bg-opacity: 1;background-color:rgb(237 235 254 / var(--tw-bg-opacity))}.bg-purple-200{--tw-bg-opacity: 1;background-color:rgb(220 215 254 / var(--tw-bg-opacity))}.bg-purple-500{--tw-bg-opacity: 1;background-color:rgb(144 97 249 / var(--tw-bg-opacity))}.bg-purple-600{--tw-bg-opacity: 1;background-color:rgb(126 58 242 / var(--tw-bg-opacity))}.bg-purple-700{--tw-bg-opacity: 1;background-color:rgb(108 43 217 / var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(253 232 232 / var(--tw-bg-opacity))}.bg-red-200{--tw-bg-opacity: 1;background-color:rgb(251 213 213 / var(--tw-bg-opacity))}.bg-red-400{--tw-bg-opacity: 1;background-color:rgb(249 128 128 / var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(240 82 82 / var(--tw-bg-opacity))}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(224 36 36 / var(--tw-bg-opacity))}.bg-red-700{--tw-bg-opacity: 1;background-color:rgb(200 30 30 / var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-white\/30{background-color:#ffffff4d}.bg-white\/50{background-color:#ffffff80}.bg-yellow-100{--tw-bg-opacity: 1;background-color:rgb(253 246 178 / var(--tw-bg-opacity))}.bg-yellow-200{--tw-bg-opacity: 1;background-color:rgb(252 233 106 / var(--tw-bg-opacity))}.bg-yellow-400{--tw-bg-opacity: 1;background-color:rgb(227 160 8 / var(--tw-bg-opacity))}.bg-opacity-50{--tw-bg-opacity: .5}.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-blue-500{--tw-gradient-from: #3F83F8 var(--tw-gradient-from-position);--tw-gradient-to: rgb(63 131 248 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-cyan-500{--tw-gradient-from: #06b6d4 var(--tw-gradient-from-position);--tw-gradient-to: rgb(6 182 212 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-green-400{--tw-gradient-from: #31C48D var(--tw-gradient-from-position);--tw-gradient-to: rgb(49 196 141 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-green-500{--tw-gradient-from: #0E9F6E var(--tw-gradient-from-position);--tw-gradient-to: rgb(14 159 110 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-lime-500{--tw-gradient-from: #84cc16 var(--tw-gradient-from-position);--tw-gradient-to: rgb(132 204 22 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-pink-500{--tw-gradient-from: #E74694 var(--tw-gradient-from-position);--tw-gradient-to: rgb(231 70 148 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-purple-500{--tw-gradient-from: #9061F9 var(--tw-gradient-from-position);--tw-gradient-to: rgb(144 97 249 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-purple-600{--tw-gradient-from: #7E3AF2 var(--tw-gradient-from-position);--tw-gradient-to: rgb(126 58 242 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-red-200{--tw-gradient-from: #FBD5D5 var(--tw-gradient-from-position);--tw-gradient-to: rgb(251 213 213 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-red-500{--tw-gradient-from: #F05252 var(--tw-gradient-from-position);--tw-gradient-to: rgb(240 82 82 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-teal-200{--tw-gradient-from: #AFECEF var(--tw-gradient-from-position);--tw-gradient-to: rgb(175 236 239 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-teal-300{--tw-gradient-from: #7EDCE2 var(--tw-gradient-from-position);--tw-gradient-to: rgb(126 220 226 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-teal-500{--tw-gradient-from: #0694A2 var(--tw-gradient-from-position);--tw-gradient-to: rgb(6 148 162 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.via-blue-600{--tw-gradient-to: rgb(28 100 242 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #1C64F2 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-cyan-600{--tw-gradient-to: rgb(8 145 178 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #0891b2 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-green-600{--tw-gradient-to: rgb(5 122 85 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #057A55 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-lime-600{--tw-gradient-to: rgb(101 163 13 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #65a30d var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-pink-600{--tw-gradient-to: rgb(214 31 105 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #D61F69 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-purple-600{--tw-gradient-to: rgb(126 58 242 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #7E3AF2 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-red-300{--tw-gradient-to: rgb(248 180 180 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #F8B4B4 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-red-600{--tw-gradient-to: rgb(224 36 36 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #E02424 var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-teal-600{--tw-gradient-to: rgb(4 116 129 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #047481 var(--tw-gradient-via-position), var(--tw-gradient-to)}.to-blue-500{--tw-gradient-to: #3F83F8 var(--tw-gradient-to-position)}.to-blue-600{--tw-gradient-to: #1C64F2 var(--tw-gradient-to-position)}.to-blue-700{--tw-gradient-to: #1A56DB var(--tw-gradient-to-position)}.to-cyan-700{--tw-gradient-to: #0e7490 var(--tw-gradient-to-position)}.to-green-700{--tw-gradient-to: #046C4E var(--tw-gradient-to-position)}.to-lime-200{--tw-gradient-to: #d9f99d var(--tw-gradient-to-position)}.to-lime-300{--tw-gradient-to: #bef264 var(--tw-gradient-to-position)}.to-lime-700{--tw-gradient-to: #4d7c0f var(--tw-gradient-to-position)}.to-orange-400{--tw-gradient-to: #FF8A4C var(--tw-gradient-to-position)}.to-pink-500{--tw-gradient-to: #E74694 var(--tw-gradient-to-position)}.to-pink-700{--tw-gradient-to: #BF125D var(--tw-gradient-to-position)}.to-purple-700{--tw-gradient-to: #6C2BD9 var(--tw-gradient-to-position)}.to-red-700{--tw-gradient-to: #C81E1E var(--tw-gradient-to-position)}.to-teal-700{--tw-gradient-to: #036672 var(--tw-gradient-to-position)}.to-yellow-200{--tw-gradient-to: #FCE96A var(--tw-gradient-to-position)}.fill-blue-600{fill:#1c64f2}.fill-gray-300{fill:#d1d5db}.fill-gray-600{fill:#4b5563}.fill-green-500{fill:#0e9f6e}.fill-pink-600{fill:#d61f69}.fill-purple-600{fill:#7e3af2}.fill-red-600{fill:#e02424}.fill-white{fill:#fff}.fill-yellow-400{fill:#e3a008}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0{padding:0}.p-0\.5{padding:.125rem}.p-1{padding:.25rem}.p-1\.5{padding:.375rem}.p-2{padding:.5rem}.p-2\.5{padding:.625rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-0{padding-top:0;padding-bottom:0}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-2{padding-bottom:.5rem}.pb-4{padding-bottom:1rem}.pl-10{padding-left:2.5rem}.pl-3{padding-left:.75rem}.pr-3{padding-right:.75rem}.pr-4{padding-right:1rem}.pr-8{padding-right:2rem}.pt-0{padding-top:0}.pt-2{padding-top:.5rem}.pt-2\.5{padding-top:.625rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.text-justify{text-align:justify}.align-middle{vertical-align:middle}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-extrabold{font-weight:800}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.leading-5{line-height:1.25rem}.leading-6{line-height:1.5rem}.leading-9{line-height:2.25rem}.leading-none{line-height:1}.leading-normal{line-height:1.5}.leading-tight{line-height:1.25}.text-blue-100{--tw-text-opacity: 1;color:rgb(225 239 254 / var(--tw-text-opacity))}.text-blue-300{--tw-text-opacity: 1;color:rgb(164 202 254 / var(--tw-text-opacity))}.text-blue-400{--tw-text-opacity: 1;color:rgb(118 169 250 / var(--tw-text-opacity))}.text-blue-500{--tw-text-opacity: 1;color:rgb(63 131 248 / var(--tw-text-opacity))}.text-blue-600{--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity))}.text-blue-700{--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}.text-blue-800{--tw-text-opacity: 1;color:rgb(30 66 159 / var(--tw-text-opacity))}.text-gray-200{--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity))}.text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-green-200{--tw-text-opacity: 1;color:rgb(188 240 218 / var(--tw-text-opacity))}.text-green-500{--tw-text-opacity: 1;color:rgb(14 159 110 / var(--tw-text-opacity))}.text-green-600{--tw-text-opacity: 1;color:rgb(5 122 85 / var(--tw-text-opacity))}.text-green-700{--tw-text-opacity: 1;color:rgb(4 108 78 / var(--tw-text-opacity))}.text-green-800{--tw-text-opacity: 1;color:rgb(3 84 63 / var(--tw-text-opacity))}.text-green-900{--tw-text-opacity: 1;color:rgb(1 71 55 / var(--tw-text-opacity))}.text-indigo-500{--tw-text-opacity: 1;color:rgb(104 117 245 / var(--tw-text-opacity))}.text-indigo-700{--tw-text-opacity: 1;color:rgb(81 69 205 / var(--tw-text-opacity))}.text-indigo-800{--tw-text-opacity: 1;color:rgb(66 56 157 / var(--tw-text-opacity))}.text-indigo-900{--tw-text-opacity: 1;color:rgb(54 47 120 / var(--tw-text-opacity))}.text-orange-200{--tw-text-opacity: 1;color:rgb(252 217 189 / var(--tw-text-opacity))}.text-orange-500{--tw-text-opacity: 1;color:rgb(255 90 31 / var(--tw-text-opacity))}.text-pink-500{--tw-text-opacity: 1;color:rgb(231 70 148 / var(--tw-text-opacity))}.text-pink-600{--tw-text-opacity: 1;color:rgb(214 31 105 / var(--tw-text-opacity))}.text-pink-700{--tw-text-opacity: 1;color:rgb(191 18 93 / var(--tw-text-opacity))}.text-pink-800{--tw-text-opacity: 1;color:rgb(153 21 75 / var(--tw-text-opacity))}.text-pink-900{--tw-text-opacity: 1;color:rgb(117 26 61 / var(--tw-text-opacity))}.text-purple-500{--tw-text-opacity: 1;color:rgb(144 97 249 / var(--tw-text-opacity))}.text-purple-600{--tw-text-opacity: 1;color:rgb(126 58 242 / var(--tw-text-opacity))}.text-purple-700{--tw-text-opacity: 1;color:rgb(108 43 217 / var(--tw-text-opacity))}.text-purple-800{--tw-text-opacity: 1;color:rgb(85 33 181 / var(--tw-text-opacity))}.text-purple-900{--tw-text-opacity: 1;color:rgb(74 29 150 / var(--tw-text-opacity))}.text-red-200{--tw-text-opacity: 1;color:rgb(251 213 213 / var(--tw-text-opacity))}.text-red-300{--tw-text-opacity: 1;color:rgb(248 180 180 / var(--tw-text-opacity))}.text-red-500{--tw-text-opacity: 1;color:rgb(240 82 82 / var(--tw-text-opacity))}.text-red-600{--tw-text-opacity: 1;color:rgb(224 36 36 / var(--tw-text-opacity))}.text-red-700{--tw-text-opacity: 1;color:rgb(200 30 30 / var(--tw-text-opacity))}.text-red-800{--tw-text-opacity: 1;color:rgb(155 28 28 / var(--tw-text-opacity))}.text-red-900{--tw-text-opacity: 1;color:rgb(119 29 29 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-yellow-400{--tw-text-opacity: 1;color:rgb(227 160 8 / var(--tw-text-opacity))}.text-yellow-500{--tw-text-opacity: 1;color:rgb(194 120 3 / var(--tw-text-opacity))}.text-yellow-700{--tw-text-opacity: 1;color:rgb(142 75 16 / var(--tw-text-opacity))}.text-yellow-800{--tw-text-opacity: 1;color:rgb(114 59 19 / var(--tw-text-opacity))}.text-yellow-900{--tw-text-opacity: 1;color:rgb(99 49 18 / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.placeholder-gray-400::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity))}.placeholder-gray-400::placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity))}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-50{opacity:.5}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-blue-500\/50{--tw-shadow-color: rgb(63 131 248 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-blue-800\/80{--tw-shadow-color: rgb(30 66 159 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-cyan-500\/50{--tw-shadow-color: rgb(6 182 212 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-cyan-800\/80{--tw-shadow-color: rgb(21 94 117 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-green-500\/50{--tw-shadow-color: rgb(14 159 110 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-green-800\/80{--tw-shadow-color: rgb(3 84 63 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-lime-500\/50{--tw-shadow-color: rgb(132 204 22 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-lime-800\/80{--tw-shadow-color: rgb(63 98 18 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-pink-500\/50{--tw-shadow-color: rgb(231 70 148 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-pink-800\/80{--tw-shadow-color: rgb(153 21 75 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-purple-500\/50{--tw-shadow-color: rgb(144 97 249 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-purple-800\/80{--tw-shadow-color: rgb(85 33 181 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-red-500\/50{--tw-shadow-color: rgb(240 82 82 / .5);--tw-shadow: var(--tw-shadow-colored)}.shadow-red-800\/80{--tw-shadow-color: rgb(155 28 28 / .8);--tw-shadow: var(--tw-shadow-colored)}.shadow-teal-500\/50{--tw-shadow-color: rgb(6 148 162 / .5);--tw-shadow: var(--tw-shadow-colored)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-blue-800{--tw-ring-opacity: 1;--tw-ring-color: rgb(30 66 159 / var(--tw-ring-opacity))}.ring-cyan-800{--tw-ring-opacity: 1;--tw-ring-color: rgb(21 94 117 / var(--tw-ring-opacity))}.ring-gray-300{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity))}.ring-gray-600{--tw-ring-opacity: 1;--tw-ring-color: rgb(75 85 99 / var(--tw-ring-opacity))}.ring-gray-800{--tw-ring-opacity: 1;--tw-ring-color: rgb(31 41 55 / var(--tw-ring-opacity))}.ring-green-800{--tw-ring-opacity: 1;--tw-ring-color: rgb(3 84 63 / var(--tw-ring-opacity))}.ring-pink-800{--tw-ring-opacity: 1;--tw-ring-color: rgb(153 21 75 / var(--tw-ring-opacity))}.ring-pink-900{--tw-ring-opacity: 1;--tw-ring-color: rgb(117 26 61 / var(--tw-ring-opacity))}.ring-purple-800{--tw-ring-opacity: 1;--tw-ring-color: rgb(85 33 181 / var(--tw-ring-opacity))}.ring-purple-900{--tw-ring-opacity: 1;--tw-ring-color: rgb(74 29 150 / var(--tw-ring-opacity))}.ring-red-400{--tw-ring-opacity: 1;--tw-ring-color: rgb(249 128 128 / var(--tw-ring-opacity))}.ring-red-900{--tw-ring-opacity: 1;--tw-ring-color: rgb(119 29 29 / var(--tw-ring-opacity))}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-md{--tw-backdrop-blur: blur(12px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-75{transition-duration:75ms}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.hover\:border-gray-300:hover{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity))}.hover\:bg-\[\#2557D6\]\/90:hover{background-color:#2557d6e6}.hover\:bg-blue-100:hover{--tw-bg-opacity: 1;background-color:rgb(225 239 254 / var(--tw-bg-opacity))}.hover\:bg-blue-200:hover{--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity))}.hover\:bg-blue-600:hover{--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity))}.hover\:bg-blue-700:hover{--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}.hover\:bg-blue-800:hover{--tw-bg-opacity: 1;background-color:rgb(30 66 159 / var(--tw-bg-opacity))}.hover\:bg-blue-900:hover{--tw-bg-opacity: 1;background-color:rgb(35 56 118 / var(--tw-bg-opacity))}.hover\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.hover\:bg-gray-200:hover{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.hover\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.hover\:bg-gray-600:hover{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}.hover\:bg-gray-900:hover{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.hover\:bg-green-200:hover{--tw-bg-opacity: 1;background-color:rgb(188 240 218 / var(--tw-bg-opacity))}.hover\:bg-green-800:hover{--tw-bg-opacity: 1;background-color:rgb(3 84 63 / var(--tw-bg-opacity))}.hover\:bg-pink-800:hover{--tw-bg-opacity: 1;background-color:rgb(153 21 75 / var(--tw-bg-opacity))}.hover\:bg-purple-800:hover{--tw-bg-opacity: 1;background-color:rgb(85 33 181 / var(--tw-bg-opacity))}.hover\:bg-red-200:hover{--tw-bg-opacity: 1;background-color:rgb(251 213 213 / var(--tw-bg-opacity))}.hover\:bg-red-800:hover{--tw-bg-opacity: 1;background-color:rgb(155 28 28 / var(--tw-bg-opacity))}.hover\:bg-white:hover{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.hover\:bg-yellow-200:hover{--tw-bg-opacity: 1;background-color:rgb(252 233 106 / var(--tw-bg-opacity))}.hover\:bg-yellow-500:hover{--tw-bg-opacity: 1;background-color:rgb(194 120 3 / var(--tw-bg-opacity))}.hover\:bg-gradient-to-bl:hover{background-image:linear-gradient(to bottom left,var(--tw-gradient-stops))}.hover\:bg-gradient-to-br:hover{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.hover\:bg-gradient-to-l:hover{background-image:linear-gradient(to left,var(--tw-gradient-stops))}.hover\:from-teal-200:hover{--tw-gradient-from: #AFECEF var(--tw-gradient-from-position);--tw-gradient-to: rgb(175 236 239 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.hover\:to-lime-200:hover{--tw-gradient-to: #d9f99d var(--tw-gradient-to-position)}.hover\:text-blue-500:hover{--tw-text-opacity: 1;color:rgb(63 131 248 / var(--tw-text-opacity))}.hover\:text-blue-600:hover{--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity))}.hover\:text-blue-700:hover{--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}.hover\:text-gray-600:hover{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}.hover\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.hover\:text-gray-900:hover{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.hover\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.hover\:underline:hover{text-decoration-line:underline}.hover\:no-underline:hover{text-decoration-line:none}.focus\:z-10:focus{z-index:10}.focus\:border-blue-500:focus{--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity))}.focus\:text-blue-700:focus{--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-4:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-\[\#2557D6\]\/50:focus{--tw-ring-color: rgb(37 87 214 / .5)}.focus\:ring-blue-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(164 202 254 / var(--tw-ring-opacity))}.focus\:ring-blue-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(118 169 250 / var(--tw-ring-opacity))}.focus\:ring-blue-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(63 131 248 / var(--tw-ring-opacity))}.focus\:ring-blue-700:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(26 86 219 / var(--tw-ring-opacity))}.focus\:ring-cyan-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(165 243 252 / var(--tw-ring-opacity))}.focus\:ring-cyan-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(103 232 249 / var(--tw-ring-opacity))}.focus\:ring-gray-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(229 231 235 / var(--tw-ring-opacity))}.focus\:ring-gray-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity))}.focus\:ring-gray-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(156 163 175 / var(--tw-ring-opacity))}.focus\:ring-green-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(188 240 218 / var(--tw-ring-opacity))}.focus\:ring-green-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(132 225 188 / var(--tw-ring-opacity))}.focus\:ring-green-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(49 196 141 / var(--tw-ring-opacity))}.focus\:ring-lime-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(217 249 157 / var(--tw-ring-opacity))}.focus\:ring-lime-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(190 242 100 / var(--tw-ring-opacity))}.focus\:ring-pink-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(250 209 232 / var(--tw-ring-opacity))}.focus\:ring-pink-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(248 180 217 / var(--tw-ring-opacity))}.focus\:ring-purple-200:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(220 215 254 / var(--tw-ring-opacity))}.focus\:ring-purple-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(202 191 253 / var(--tw-ring-opacity))}.focus\:ring-red-100:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(253 232 232 / var(--tw-ring-opacity))}.focus\:ring-red-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(248 180 180 / var(--tw-ring-opacity))}.focus\:ring-red-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(249 128 128 / var(--tw-ring-opacity))}.focus\:ring-teal-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(126 220 226 / var(--tw-ring-opacity))}.focus\:ring-yellow-300:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(250 202 21 / var(--tw-ring-opacity))}.focus\:ring-yellow-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(227 160 8 / var(--tw-ring-opacity))}.focus\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.group:hover .group-hover\:bg-white\/50{background-color:#ffffff80}.group:hover .group-hover\:bg-opacity-0{--tw-bg-opacity: 0}.group:hover .group-hover\:from-cyan-500{--tw-gradient-from: #06b6d4 var(--tw-gradient-from-position);--tw-gradient-to: rgb(6 182 212 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:from-green-400{--tw-gradient-from: #31C48D var(--tw-gradient-from-position);--tw-gradient-to: rgb(49 196 141 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:from-pink-500{--tw-gradient-from: #E74694 var(--tw-gradient-from-position);--tw-gradient-to: rgb(231 70 148 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:from-purple-500{--tw-gradient-from: #9061F9 var(--tw-gradient-from-position);--tw-gradient-to: rgb(144 97 249 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:from-purple-600{--tw-gradient-from: #7E3AF2 var(--tw-gradient-from-position);--tw-gradient-to: rgb(126 58 242 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:from-red-200{--tw-gradient-from: #FBD5D5 var(--tw-gradient-from-position);--tw-gradient-to: rgb(251 213 213 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:from-teal-300{--tw-gradient-from: #7EDCE2 var(--tw-gradient-from-position);--tw-gradient-to: rgb(126 220 226 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.group:hover .group-hover\:via-red-300{--tw-gradient-to: rgb(248 180 180 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #F8B4B4 var(--tw-gradient-via-position), var(--tw-gradient-to)}.group:hover .group-hover\:to-blue-500{--tw-gradient-to: #3F83F8 var(--tw-gradient-to-position)}.group:hover .group-hover\:to-blue-600{--tw-gradient-to: #1C64F2 var(--tw-gradient-to-position)}.group:hover .group-hover\:to-lime-300{--tw-gradient-to: #bef264 var(--tw-gradient-to-position)}.group:hover .group-hover\:to-orange-400{--tw-gradient-to: #FF8A4C var(--tw-gradient-to-position)}.group:hover .group-hover\:to-pink-500{--tw-gradient-to: #E74694 var(--tw-gradient-to-position)}.group:hover .group-hover\:to-yellow-200{--tw-gradient-to: #FCE96A var(--tw-gradient-to-position)}.group:hover .group-hover\:text-blue-600{--tw-text-opacity: 1;color:rgb(28 100 242 / var(--tw-text-opacity))}.group:hover .group-hover\:text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.group:focus .group-focus\:outline-none{outline:2px solid transparent;outline-offset:2px}.group:focus .group-focus\:ring-4{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.group:focus .group-focus\:ring-white{--tw-ring-opacity: 1;--tw-ring-color: rgb(255 255 255 / var(--tw-ring-opacity))}:is(.dark .dark\:divide-gray-700)>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(55 65 81 / var(--tw-divide-opacity))}:is(.dark .dark\:border-blue-500){--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity))}:is(.dark .dark\:border-gray-500){--tw-border-opacity: 1;border-color:rgb(107 114 128 / var(--tw-border-opacity))}:is(.dark .dark\:border-gray-600){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity))}:is(.dark .dark\:border-gray-700){--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity))}:is(.dark .dark\:border-gray-800){--tw-border-opacity: 1;border-color:rgb(31 41 55 / var(--tw-border-opacity))}:is(.dark .dark\:border-gray-900){--tw-border-opacity: 1;border-color:rgb(17 24 39 / var(--tw-border-opacity))}:is(.dark .dark\:border-green-500){--tw-border-opacity: 1;border-color:rgb(14 159 110 / var(--tw-border-opacity))}:is(.dark .dark\:border-pink-400){--tw-border-opacity: 1;border-color:rgb(241 126 184 / var(--tw-border-opacity))}:is(.dark .dark\:border-pink-500){--tw-border-opacity: 1;border-color:rgb(231 70 148 / var(--tw-border-opacity))}:is(.dark .dark\:border-purple-400){--tw-border-opacity: 1;border-color:rgb(172 148 250 / var(--tw-border-opacity))}:is(.dark .dark\:border-purple-500){--tw-border-opacity: 1;border-color:rgb(144 97 249 / var(--tw-border-opacity))}:is(.dark .dark\:border-red-500){--tw-border-opacity: 1;border-color:rgb(240 82 82 / var(--tw-border-opacity))}:is(.dark .dark\:border-transparent){border-color:transparent}:is(.dark .dark\:border-yellow-300){--tw-border-opacity: 1;border-color:rgb(250 202 21 / var(--tw-border-opacity))}:is(.dark .dark\:bg-blue-200){--tw-bg-opacity: 1;background-color:rgb(195 221 253 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-blue-600){--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-blue-900){--tw-bg-opacity: 1;background-color:rgb(35 56 118 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-300){--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-400){--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-600){--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-700){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-800){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-gray-800\/30){background-color:#1f29374d}:is(.dark .dark\:bg-gray-800\/50){background-color:#1f293780}:is(.dark .dark\:bg-gray-900){--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-green-200){--tw-bg-opacity: 1;background-color:rgb(188 240 218 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-green-500){--tw-bg-opacity: 1;background-color:rgb(14 159 110 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-green-600){--tw-bg-opacity: 1;background-color:rgb(5 122 85 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-green-800){--tw-bg-opacity: 1;background-color:rgb(3 84 63 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-indigo-200){--tw-bg-opacity: 1;background-color:rgb(205 219 254 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-indigo-500){--tw-bg-opacity: 1;background-color:rgb(104 117 245 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-orange-700){--tw-bg-opacity: 1;background-color:rgb(180 52 3 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-pink-200){--tw-bg-opacity: 1;background-color:rgb(250 209 232 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-pink-600){--tw-bg-opacity: 1;background-color:rgb(214 31 105 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-purple-200){--tw-bg-opacity: 1;background-color:rgb(220 215 254 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-purple-500){--tw-bg-opacity: 1;background-color:rgb(144 97 249 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-purple-600){--tw-bg-opacity: 1;background-color:rgb(126 58 242 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-red-200){--tw-bg-opacity: 1;background-color:rgb(251 213 213 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-red-500){--tw-bg-opacity: 1;background-color:rgb(240 82 82 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-red-600){--tw-bg-opacity: 1;background-color:rgb(224 36 36 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-red-800){--tw-bg-opacity: 1;background-color:rgb(155 28 28 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-red-900){--tw-bg-opacity: 1;background-color:rgb(119 29 29 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-yellow-200){--tw-bg-opacity: 1;background-color:rgb(252 233 106 / var(--tw-bg-opacity))}:is(.dark .dark\:bg-opacity-80){--tw-bg-opacity: .8}:is(.dark .dark\:fill-gray-300){fill:#d1d5db}:is(.dark .dark\:text-blue-200){--tw-text-opacity: 1;color:rgb(195 221 253 / var(--tw-text-opacity))}:is(.dark .dark\:text-blue-300){--tw-text-opacity: 1;color:rgb(164 202 254 / var(--tw-text-opacity))}:is(.dark .dark\:text-blue-500){--tw-text-opacity: 1;color:rgb(63 131 248 / var(--tw-text-opacity))}:is(.dark .dark\:text-blue-800){--tw-text-opacity: 1;color:rgb(30 66 159 / var(--tw-text-opacity))}:is(.dark .dark\:text-gray-200){--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity))}:is(.dark .dark\:text-gray-300){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}:is(.dark .dark\:text-gray-400){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity))}:is(.dark .dark\:text-gray-500){--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity))}:is(.dark .dark\:text-gray-600){--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity))}:is(.dark .dark\:text-gray-800){--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity))}:is(.dark .dark\:text-green-200){--tw-text-opacity: 1;color:rgb(188 240 218 / var(--tw-text-opacity))}:is(.dark .dark\:text-green-500){--tw-text-opacity: 1;color:rgb(14 159 110 / var(--tw-text-opacity))}:is(.dark .dark\:text-green-800){--tw-text-opacity: 1;color:rgb(3 84 63 / var(--tw-text-opacity))}:is(.dark .dark\:text-green-900){--tw-text-opacity: 1;color:rgb(1 71 55 / var(--tw-text-opacity))}:is(.dark .dark\:text-indigo-500){--tw-text-opacity: 1;color:rgb(104 117 245 / var(--tw-text-opacity))}:is(.dark .dark\:text-indigo-900){--tw-text-opacity: 1;color:rgb(54 47 120 / var(--tw-text-opacity))}:is(.dark .dark\:text-orange-200){--tw-text-opacity: 1;color:rgb(252 217 189 / var(--tw-text-opacity))}:is(.dark .dark\:text-pink-400){--tw-text-opacity: 1;color:rgb(241 126 184 / var(--tw-text-opacity))}:is(.dark .dark\:text-pink-500){--tw-text-opacity: 1;color:rgb(231 70 148 / var(--tw-text-opacity))}:is(.dark .dark\:text-pink-900){--tw-text-opacity: 1;color:rgb(117 26 61 / var(--tw-text-opacity))}:is(.dark .dark\:text-purple-400){--tw-text-opacity: 1;color:rgb(172 148 250 / var(--tw-text-opacity))}:is(.dark .dark\:text-purple-500){--tw-text-opacity: 1;color:rgb(144 97 249 / var(--tw-text-opacity))}:is(.dark .dark\:text-purple-900){--tw-text-opacity: 1;color:rgb(74 29 150 / var(--tw-text-opacity))}:is(.dark .dark\:text-red-200){--tw-text-opacity: 1;color:rgb(251 213 213 / var(--tw-text-opacity))}:is(.dark .dark\:text-red-300){--tw-text-opacity: 1;color:rgb(248 180 180 / var(--tw-text-opacity))}:is(.dark .dark\:text-red-500){--tw-text-opacity: 1;color:rgb(240 82 82 / var(--tw-text-opacity))}:is(.dark .dark\:text-red-800){--tw-text-opacity: 1;color:rgb(155 28 28 / var(--tw-text-opacity))}:is(.dark .dark\:text-red-900){--tw-text-opacity: 1;color:rgb(119 29 29 / var(--tw-text-opacity))}:is(.dark .dark\:text-white){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}:is(.dark .dark\:text-yellow-300){--tw-text-opacity: 1;color:rgb(250 202 21 / var(--tw-text-opacity))}:is(.dark .dark\:text-yellow-500){--tw-text-opacity: 1;color:rgb(194 120 3 / var(--tw-text-opacity))}:is(.dark .dark\:text-yellow-800){--tw-text-opacity: 1;color:rgb(114 59 19 / var(--tw-text-opacity))}:is(.dark .dark\:text-yellow-900){--tw-text-opacity: 1;color:rgb(99 49 18 / var(--tw-text-opacity))}:is(.dark .dark\:placeholder-gray-400)::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity))}:is(.dark .dark\:placeholder-gray-400)::placeholder{--tw-placeholder-opacity: 1;color:rgb(156 163 175 / var(--tw-placeholder-opacity))}:is(.dark .dark\:shadow-lg){--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}:is(.dark .dark\:shadow-blue-800\/80){--tw-shadow-color: rgb(30 66 159 / .8);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:shadow-cyan-800\/80){--tw-shadow-color: rgb(21 94 117 / .8);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:shadow-green-800\/80){--tw-shadow-color: rgb(3 84 63 / .8);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:shadow-lime-800\/80){--tw-shadow-color: rgb(63 98 18 / .8);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:shadow-pink-800\/80){--tw-shadow-color: rgb(153 21 75 / .8);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:shadow-purple-800\/80){--tw-shadow-color: rgb(85 33 181 / .8);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:shadow-red-800\/80){--tw-shadow-color: rgb(155 28 28 / .8);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:shadow-teal-800\/80){--tw-shadow-color: rgb(5 80 92 / .8);--tw-shadow: var(--tw-shadow-colored)}:is(.dark .dark\:ring-gray-500){--tw-ring-opacity: 1;--tw-ring-color: rgb(107 114 128 / var(--tw-ring-opacity))}:is(.dark .dark\:hover\:border-gray-600:hover){--tw-border-opacity: 1;border-color:rgb(75 85 99 / var(--tw-border-opacity))}:is(.dark .dark\:hover\:bg-blue-300:hover){--tw-bg-opacity: 1;background-color:rgb(164 202 254 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-blue-500:hover){--tw-bg-opacity: 1;background-color:rgb(63 131 248 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-blue-600:hover){--tw-bg-opacity: 1;background-color:rgb(28 100 242 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-blue-700:hover){--tw-bg-opacity: 1;background-color:rgb(26 86 219 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-gray-600:hover){--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-gray-700:hover){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-gray-800:hover){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-green-300:hover){--tw-bg-opacity: 1;background-color:rgb(132 225 188 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-green-600:hover){--tw-bg-opacity: 1;background-color:rgb(5 122 85 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-green-700:hover){--tw-bg-opacity: 1;background-color:rgb(4 108 78 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-pink-500:hover){--tw-bg-opacity: 1;background-color:rgb(231 70 148 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-pink-700:hover){--tw-bg-opacity: 1;background-color:rgb(191 18 93 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-purple-500:hover){--tw-bg-opacity: 1;background-color:rgb(144 97 249 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-purple-700:hover){--tw-bg-opacity: 1;background-color:rgb(108 43 217 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-red-300:hover){--tw-bg-opacity: 1;background-color:rgb(248 180 180 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-red-600:hover){--tw-bg-opacity: 1;background-color:rgb(224 36 36 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-red-700:hover){--tw-bg-opacity: 1;background-color:rgb(200 30 30 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-yellow-300:hover){--tw-bg-opacity: 1;background-color:rgb(250 202 21 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:bg-yellow-400:hover){--tw-bg-opacity: 1;background-color:rgb(227 160 8 / var(--tw-bg-opacity))}:is(.dark .dark\:hover\:text-blue-500:hover){--tw-text-opacity: 1;color:rgb(63 131 248 / var(--tw-text-opacity))}:is(.dark .dark\:hover\:text-gray-300:hover){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity))}:is(.dark .dark\:hover\:text-gray-900:hover){--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}:is(.dark .dark\:hover\:text-white:hover){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}:is(.dark .dark\:focus\:border-blue-500:focus){--tw-border-opacity: 1;border-color:rgb(63 131 248 / var(--tw-border-opacity))}:is(.dark .dark\:focus\:text-white:focus){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}:is(.dark .dark\:focus\:ring-\[\#2557D6\]\/50:focus){--tw-ring-color: rgb(37 87 214 / .5)}:is(.dark .dark\:focus\:ring-blue-500:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(63 131 248 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-blue-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(30 66 159 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-cyan-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(21 94 117 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-gray-400:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(156 163 175 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-gray-500:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(107 114 128 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-gray-600:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(75 85 99 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-gray-700:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(55 65 81 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-gray-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(31 41 55 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-green-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(3 84 63 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-lime-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(63 98 18 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-pink-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(153 21 75 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-pink-900:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(117 26 61 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-purple-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(85 33 181 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-purple-900:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(74 29 150 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-red-400:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(249 128 128 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-red-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(155 28 28 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-red-900:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(119 29 29 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-teal-700:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(3 102 114 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-teal-800:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(5 80 92 / var(--tw-ring-opacity))}:is(.dark .dark\:focus\:ring-yellow-900:focus){--tw-ring-opacity: 1;--tw-ring-color: rgb(99 49 18 / var(--tw-ring-opacity))}:is(.dark .group:hover .dark\:group-hover\:bg-gray-800\/60){background-color:#1f293799}:is(.dark .group:hover .dark\:group-hover\:text-blue-500){--tw-text-opacity: 1;color:rgb(63 131 248 / var(--tw-text-opacity))}:is(.dark .group:hover .dark\:group-hover\:text-white){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}:is(.dark .group:focus .dark\:group-focus\:ring-gray-800\/70){--tw-ring-color: rgb(31 41 55 / .7)}@media (min-width: 640px){.sm\:mx-auto{margin-left:auto;margin-right:auto}.sm\:mt-0{margin-top:0}.sm\:h-10{height:2.5rem}.sm\:h-6{height:1.5rem}.sm\:h-64{height:16rem}.sm\:w-1\/4{width:25%}.sm\:w-10{width:2.5rem}.sm\:w-6{width:1.5rem}.sm\:w-full{width:100%}.sm\:max-w-md{max-width:28rem}.sm\:rounded-lg{border-radius:.5rem}.sm\:p-8{padding:2rem}.sm\:px-10{padding-left:2.5rem;padding-right:2.5rem}.sm\:px-4{padding-left:1rem;padding-right:1rem}.sm\:px-6{padding-left:1.5rem;padding-right:1.5rem}.sm\:py-4{padding-top:1rem;padding-bottom:1rem}.sm\:text-center{text-align:center}.sm\:text-sm{font-size:.875rem;line-height:1.25rem}}@media (min-width: 768px){.md\:inset-0{inset:0}.md\:order-2{order:2}.md\:col-span-1{grid-column:span 1 / span 1}.md\:ml-10{margin-left:2.5rem}.md\:ml-2{margin-left:.5rem}.md\:ml-96{margin-left:24rem}.md\:mr-0{margin-right:0}.md\:mr-6{margin-right:1.5rem}.md\:mt-0{margin-top:0}.md\:block{display:block}.md\:flex{display:flex}.md\:hidden{display:none}.md\:h-auto{height:auto}.md\:h-full{height:100%}.md\:w-1\/3{width:33.333333%}.md\:w-1\/4{width:25%}.md\:w-2\/3{width:66.666667%}.md\:w-3\/5{width:60%}.md\:w-48{width:12rem}.md\:w-auto{width:auto}.md\:w-full{width:100%}.md\:max-w-md{max-width:28rem}.md\:max-w-xl{max-width:36rem}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:items-center{align-items:center}.md\:justify-between{justify-content:space-between}.md\:space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.md\:space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(2rem * var(--tw-space-x-reverse));margin-left:calc(2rem * calc(1 - var(--tw-space-x-reverse)))}.md\:rounded-none{border-radius:0}.md\:rounded-l-lg{border-top-left-radius:.5rem;border-bottom-left-radius:.5rem}.md\:border-0{border-width:0px}.md\:bg-transparent{background-color:transparent}.md\:p-0{padding:0}.md\:p-6{padding:1.5rem}.md\:text-sm{font-size:.875rem;line-height:1.25rem}.md\:font-medium{font-weight:500}.md\:text-blue-700{--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}.md\:hover\:bg-transparent:hover{background-color:transparent}.md\:hover\:text-blue-700:hover{--tw-text-opacity: 1;color:rgb(26 86 219 / var(--tw-text-opacity))}:is(.dark .md\:dark\:bg-gray-900){--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}:is(.dark .md\:dark\:hover\:bg-transparent:hover){background-color:transparent}:is(.dark .md\:dark\:hover\:text-white:hover){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}}@media (min-width: 1024px){.lg\:right-auto{right:auto}.lg\:mb-16{margin-bottom:4rem}.lg\:h-11{height:2.75rem}.lg\:w-11{width:2.75rem}.lg\:w-2\/5{width:40%}.lg\:w-44{width:11rem}.lg\:w-96{width:24rem}.lg\:w-full{width:100%}.lg\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.lg\:px-8{padding-left:2rem;padding-right:2rem}}@media (min-width: 1280px){.xl\:h-80{height:20rem}.xl\:w-1\/6{width:16.666667%}}@media (min-width: 1536px){.\32xl\:h-96{height:24rem}}.switch-wrapper[data-v-80551b1d]{display:inline-flex;position:relative;padding:4px;border:1px solid lightgray;margin-bottom:15px;border-radius:.5rem;background:white}.switch-wrapper [type=radio][data-v-80551b1d]{position:absolute;left:-9999px}.switch-wrapper [type=radio]:checked#Table~label[for=Table][data-v-80551b1d],.switch-wrapper [type=radio]:checked#take_away~label[for=take_away][data-v-80551b1d]{color:#fff}.switch-wrapper [type=radio]:checked#Table~label[for=Table][data-v-80551b1d]:hover,.switch-wrapper [type=radio]:checked#take_away~label[for=take_away][data-v-80551b1d]:hover{background:transparent}.switch-wrapper [type=radio]:checked#Table+label[for=take_away]~.highlighter[data-v-80551b1d]{transform:none}.switch-wrapper [type=radio]:checked#take_away+label[for=Table]~.highlighter[data-v-80551b1d]{transform:translate(100%)}.switch-wrapper label[data-v-80551b1d]{font-size:16px;z-index:1;min-width:100px;line-height:32px;cursor:pointer;border-radius:30px;transition:color .25s ease-in-out}.switch-wrapper label[data-v-80551b1d]:hover{background:whitesmoke}.switch-wrapper .highlighter[data-v-80551b1d]{position:absolute;top:4px;left:4px;width:calc(50% - 4px);height:calc(100% - 8px);border-radius:.2rem;background:#1b5ed9;transition:transform .25s ease-in-out}.bg-gray-100{background-color:#0003}.mx-icon-left:before,.mx-icon-right:before,.mx-icon-double-left:before,.mx-icon-double-right:before,.mx-icon-double-left:after,.mx-icon-double-right:after{content:"";position:relative;top:-1px;display:inline-block;width:10px;height:10px;vertical-align:middle;border-style:solid;border-color:currentColor;border-width:2px 0 0 2px;border-radius:1px;box-sizing:border-box;transform-origin:center;transform:rotate(-45deg) scale(.7)}.mx-icon-double-left:after{left:-4px}.mx-icon-double-right:before{left:4px}.mx-icon-right:before,.mx-icon-double-right:before,.mx-icon-double-right:after{transform:rotate(135deg) scale(.7)}.mx-btn{box-sizing:border-box;line-height:1;font-size:14px;font-weight:500;padding:7px 15px;margin:0;cursor:pointer;background-color:transparent;outline:none;border:1px solid rgba(0,0,0,.1);border-radius:4px;color:#73879c;white-space:nowrap}.mx-btn:hover{border-color:#1284e7;color:#1284e7}.mx-btn-text{border:0;padding:0 4px;text-align:left;line-height:inherit}.mx-scrollbar{height:100%}.mx-scrollbar:hover .mx-scrollbar-track{opacity:1}.mx-scrollbar-wrap{height:100%;overflow-x:hidden;overflow-y:auto}.mx-scrollbar-track{position:absolute;top:2px;right:2px;bottom:2px;width:6px;z-index:1;border-radius:4px;opacity:0;transition:opacity .24s ease-out}.mx-scrollbar-track .mx-scrollbar-thumb{position:absolute;width:100%;height:0;cursor:pointer;border-radius:inherit;background-color:#9093994d;transition:background-color .3s}.mx-zoom-in-down-enter-active,.mx-zoom-in-down-leave-active{opacity:1;transform:scaleY(1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1);transform-origin:center top}.mx-zoom-in-down-enter,.mx-zoom-in-down-enter-from,.mx-zoom-in-down-leave-to{opacity:0;transform:scaleY(0)}.mx-datepicker{position:relative;display:inline-block;width:210px}.mx-datepicker svg{width:1em;height:1em;vertical-align:-.15em;fill:currentColor;overflow:hidden}.mx-datepicker-range{width:320px}.mx-datepicker-inline{width:auto}.mx-input-wrapper{position:relative}.mx-input-wrapper .mx-icon-clear{display:none}.mx-input-wrapper:hover .mx-icon-clear{display:block}.mx-input-wrapper:hover .mx-icon-clear+.mx-icon-calendar{display:none}.mx-input{display:inline-block;box-sizing:border-box;width:100%;height:34px;padding:6px 30px 6px 10px;font-size:14px;line-height:1.4;color:#555;background-color:#fff;border:1px solid #ccc;border-radius:4px;box-shadow:inset 0 1px 1px #00000013}.mx-input:hover,.mx-input:focus{border-color:#409aff}.mx-input:disabled,.mx-input.disabled{color:#ccc;background-color:#f3f3f3;border-color:#ccc;cursor:not-allowed}.mx-input:focus{outline:none}.mx-input::-ms-clear{display:none}.mx-icon-calendar,.mx-icon-clear{position:absolute;top:50%;right:8px;transform:translateY(-50%);font-size:16px;line-height:1;color:#00000080;vertical-align:middle}.mx-icon-clear{cursor:pointer}.mx-icon-clear:hover{color:#000c}.mx-datepicker-main{font:14px/1.5 Helvetica Neue,Helvetica,Arial,Microsoft Yahei,sans-serif;color:#73879c;background-color:#fff;border:1px solid #e8e8e8}.mx-datepicker-popup{position:absolute;margin-top:1px;margin-bottom:1px;box-shadow:0 6px 12px #0000002d;z-index:2001}.mx-datepicker-sidebar{float:left;box-sizing:border-box;width:100px;padding:6px;overflow:auto}.mx-datepicker-sidebar+.mx-datepicker-content{margin-left:100px;border-left:1px solid #e8e8e8}.mx-datepicker-body{position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none}.mx-btn-shortcut{display:block;padding:0 6px;line-height:24px}.mx-datepicker-header{padding:6px 8px;border-bottom:1px solid #e8e8e8}.mx-datepicker-footer{padding:6px 8px;text-align:right;border-top:1px solid #e8e8e8}.mx-calendar-range,.mx-time-range{display:flex}@media (max-width: 750px){.mx-calendar-range,.mx-time-range{flex-direction:column}}.mx-calendar{box-sizing:border-box;width:248px;padding:6px 12px}.mx-calendar+.mx-calendar{border-left:1px solid #e8e8e8}.mx-calendar-header,.mx-time-header{box-sizing:border-box;height:34px;line-height:34px;text-align:center;overflow:hidden}.mx-btn-icon-left,.mx-btn-icon-double-left{float:left}.mx-btn-icon-right,.mx-btn-icon-double-right{float:right}.mx-calendar-header-label{font-size:14px}.mx-calendar-decade-separator{margin:0 2px}.mx-calendar-decade-separator:after{content:"~"}.mx-calendar-content{position:relative;height:224px;box-sizing:border-box}.mx-calendar-content .cell{cursor:pointer}.mx-calendar-content .cell:hover{color:#73879c;background-color:#f3f9fe}.mx-calendar-content .cell.active{color:#fff;background-color:#1284e7}.mx-calendar-content .cell.in-range,.mx-calendar-content .cell.hover-in-range{color:#73879c;background-color:#dbedfb}.mx-calendar-content .cell.disabled{cursor:not-allowed;color:#ccc;background-color:#f3f3f3}.mx-calendar-week-mode .mx-date-row{cursor:pointer}.mx-calendar-week-mode .mx-date-row:hover{background-color:#f3f9fe}.mx-calendar-week-mode .mx-date-row.mx-active-week{background-color:#dbedfb}.mx-calendar-week-mode .mx-date-row .cell:hover,.mx-calendar-week-mode .mx-date-row .cell.active{color:inherit;background-color:transparent}.mx-week-number{opacity:.5}.mx-table{table-layout:fixed;border-collapse:separate;border-spacing:0;width:100%;height:100%;box-sizing:border-box;text-align:center}.mx-table th{padding:0;font-weight:500;vertical-align:middle}.mx-table td{padding:0;vertical-align:middle}.mx-table-date td,.mx-table-date th{height:32px;font-size:12px}.mx-table-date .today{color:#2a90e9}.mx-table-date .cell.not-current-month{color:#ccc;background:none}.mx-time{flex:1;width:224px;background:#fff}.mx-time+.mx-time{border-left:1px solid #e8e8e8}.mx-date-time{position:relative;width:248px;height:270px}.mx-date-time .mx-time{position:absolute;top:0;left:0;width:100%;height:100%}.mx-date-time-range{position:relative;width:496px;height:270px}.mx-date-time-range .mx-time-range{position:absolute;top:0;left:0;width:100%;height:100%}.mx-time-header{border-bottom:1px solid #e8e8e8}.mx-time-content{height:224px;box-sizing:border-box;overflow:hidden}.mx-time-columns{display:flex;width:100%;height:100%;overflow:hidden}.mx-time-column{flex:1;position:relative;border-left:1px solid #e8e8e8;text-align:center}.mx-time-column:first-child{border-left:0}.mx-time-column .mx-time-list{margin:0;padding:0;list-style:none}.mx-time-column .mx-time-list:after{content:"";display:block;height:192px}.mx-time-column .mx-time-item{cursor:pointer;font-size:12px;height:32px;line-height:32px}.mx-time-column .mx-time-item:hover{color:#73879c;background-color:#f3f9fe}.mx-time-column .mx-time-item.active{color:#1284e7;background-color:transparent;font-weight:700}.mx-time-column .mx-time-item.disabled{cursor:not-allowed;color:#ccc;background-color:#f3f3f3}.mx-time-option{cursor:pointer;padding:8px 10px;font-size:14px;line-height:20px}.mx-time-option:hover{color:#73879c;background-color:#f3f9fe}.mx-time-option.active{color:#1284e7;background-color:transparent;font-weight:700}.mx-time-option.disabled{cursor:not-allowed;color:#ccc;background-color:#f3f3f3}.my-custom-date-picker,.my-custom-time-picker{width:100%;color:#000} diff --git a/ury_pos/public/urypos/assets/index-c5bdbe79.js b/ury_pos/public/urypos/assets/index-c5bdbe79.js deleted file mode 100644 index c26bd61..0000000 --- a/ury_pos/public/urypos/assets/index-c5bdbe79.js +++ /dev/null @@ -1,137 +0,0 @@ -var Um=Object.defineProperty,qm=Object.defineProperties;var Km=Object.getOwnPropertyDescriptors;var ya=Object.getOwnPropertySymbols;var bh=Object.prototype.hasOwnProperty,wh=Object.prototype.propertyIsEnumerable;var yh=(e,t,r)=>t in e?Um(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,kt=(e,t)=>{for(var r in t||(t={}))bh.call(t,r)&&yh(e,r,t[r]);if(ya)for(var r of ya(t))wh.call(t,r)&&yh(e,r,t[r]);return e},fr=(e,t)=>qm(e,Km(t));var Ss=(e,t)=>{var r={};for(var n in e)bh.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ya)for(var n of ya(e))t.indexOf(n)<0&&wh.call(e,n)&&(r[n]=e[n]);return r};var Se=(e,t,r)=>new Promise((n,s)=>{var i=u=>{try{o(r.next(u))}catch(l){s(l)}},a=u=>{try{o(r.throw(u))}catch(l){s(l)}},o=u=>u.done?n(u.value):Promise.resolve(u.value).then(i,a);o((r=r.apply(e,t)).next())});(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))n(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function r(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(s){if(s.ep)return;s.ep=!0;const i=r(s);fetch(s.href,i)}})();function $l(e,t){const r=Object.create(null),n=e.split(",");for(let s=0;s!!r[s.toLowerCase()]:s=>!!r[s]}const Qe={},Ns=[],br=()=>{},Ym=()=>!1,zm=/^on[^a-z]/,So=e=>zm.test(e),Hl=e=>e.startsWith("onUpdate:"),dt=Object.assign,jl=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},Wm=Object.prototype.hasOwnProperty,Be=(e,t)=>Wm.call(e,t),pe=Array.isArray,Ms=e=>ra(e)==="[object Map]",ri=e=>ra(e)==="[object Set]",xh=e=>ra(e)==="[object Date]",Ce=e=>typeof e=="function",at=e=>typeof e=="string",Bi=e=>typeof e=="symbol",We=e=>e!==null&&typeof e=="object",Ud=e=>We(e)&&Ce(e.then)&&Ce(e.catch),qd=Object.prototype.toString,ra=e=>qd.call(e),Gm=e=>ra(e).slice(8,-1),Kd=e=>ra(e)==="[object Object]",Ll=e=>at(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ba=$l(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Eo=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},Jm=/-(\w)/g,Rr=Eo(e=>e.replace(Jm,(t,r)=>r?r.toUpperCase():"")),Xm=/\B([A-Z])/g,ds=Eo(e=>e.replace(Xm,"-$1").toLowerCase()),Co=Eo(e=>e.charAt(0).toUpperCase()+e.slice(1)),Su=Eo(e=>e?`on${Co(e)}`:""),$i=(e,t)=>!Object.is(e,t),$a=(e,t)=>{for(let r=0;r{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:r})},Ga=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Zm=e=>{const t=at(e)?Number(e):NaN;return isNaN(t)?e:t};let _h;const Ju=()=>_h||(_h=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});function Cn(e){if(pe(e)){const t={};for(let r=0;r{if(r){const n=r.split(e1);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function Ee(e){let t="";if(at(e))t=e;else if(pe(e))for(let r=0;rhs(r,t))}const be=e=>at(e)?e:e==null?"":pe(e)||We(e)&&(e.toString===qd||!Ce(e.toString))?JSON.stringify(e,zd,2):String(e),zd=(e,t)=>t&&t.__v_isRef?zd(e,t.value):Ms(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[n,s])=>(r[`${n} =>`]=s,r),{})}:ri(t)?{[`Set(${t.size})`]:[...t.values()]}:We(t)&&!pe(t)&&!Kd(t)?String(t):t;let Ut;class Wd{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Ut,!t&&Ut&&(this.index=(Ut.scopes||(Ut.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const r=Ut;try{return Ut=this,t()}finally{Ut=r}}}on(){Ut=this}off(){Ut=this.parent}stop(t){if(this._active){let r,n;for(r=0,n=this.effects.length;r{const t=new Set(e);return t.w=0,t.n=0,t},Xd=e=>(e.w&On)>0,Zd=e=>(e.n&On)>0,l1=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let r=0;for(let n=0;n{(h==="length"||h>=u)&&o.push(l)})}else switch(r!==void 0&&o.push(a.get(r)),t){case"add":pe(e)?Ll(r)&&o.push(a.get("length")):(o.push(a.get(as)),Ms(e)&&o.push(a.get(Zu)));break;case"delete":pe(e)||(o.push(a.get(as)),Ms(e)&&o.push(a.get(Zu)));break;case"set":Ms(e)&&o.push(a.get(as));break}if(o.length===1)o[0]&&Qu(o[0]);else{const u=[];for(const l of o)l&&u.push(...l);Qu(Ul(u))}}function Qu(e,t){const r=pe(e)?e:[...e];for(const n of r)n.computed&&Eh(n);for(const n of r)n.computed||Eh(n)}function Eh(e,t){(e!==pr||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function h1(e,t){var r;return(r=Ja.get(e))==null?void 0:r.get(t)}const f1=$l("__proto__,__v_isRef,__isVue"),tp=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Bi)),d1=Kl(),p1=Kl(!1,!0),g1=Kl(!0),Ch=m1();function m1(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...r){const n=Re(this);for(let i=0,a=this.length;i{e[t]=function(...r){ni();const n=Re(this)[t].apply(this,r);return si(),n}}),e}function v1(e){const t=Re(this);return Ht(t,"has",e),t.hasOwnProperty(e)}function Kl(e=!1,t=!1){return function(n,s,i){if(s==="__v_isReactive")return!e;if(s==="__v_isReadonly")return e;if(s==="__v_isShallow")return t;if(s==="__v_raw"&&i===(e?t?I1:ap:t?ip:sp).get(n))return n;const a=pe(n);if(!e){if(a&&Be(Ch,s))return Reflect.get(Ch,s,i);if(s==="hasOwnProperty")return v1}const o=Reflect.get(n,s,i);return(Bi(s)?tp.has(s):f1(s))||(e||Ht(n,"get",s),t)?o:ot(o)?a&&Ll(s)?o:o.value:We(o)?e?up(o):Nr(o):o}}const y1=rp(),b1=rp(!0);function rp(e=!1){return function(r,n,s,i){let a=r[n];if(qs(a)&&ot(a)&&!ot(s))return!1;if(!e&&(!Xa(s)&&!qs(s)&&(a=Re(a),s=Re(s)),!pe(r)&&ot(a)&&!ot(s)))return a.value=s,!0;const o=pe(r)&&Ll(n)?Number(n)e,ko=e=>Reflect.getPrototypeOf(e);function ba(e,t,r=!1,n=!1){e=e.__v_raw;const s=Re(e),i=Re(t);r||(t!==i&&Ht(s,"get",t),Ht(s,"get",i));const{has:a}=ko(s),o=n?Yl:r?Gl:Hi;if(a.call(s,t))return o(e.get(t));if(a.call(s,i))return o(e.get(i));e!==s&&e.get(t)}function wa(e,t=!1){const r=this.__v_raw,n=Re(r),s=Re(e);return t||(e!==s&&Ht(n,"has",e),Ht(n,"has",s)),e===s?r.has(e):r.has(e)||r.has(s)}function xa(e,t=!1){return e=e.__v_raw,!t&&Ht(Re(e),"iterate",as),Reflect.get(e,"size",e)}function kh(e){e=Re(e);const t=Re(this);return ko(t).has.call(t,e)||(t.add(e),Xr(t,"add",e,e)),this}function Ah(e,t){t=Re(t);const r=Re(this),{has:n,get:s}=ko(r);let i=n.call(r,e);i||(e=Re(e),i=n.call(r,e));const a=s.call(r,e);return r.set(e,t),i?$i(t,a)&&Xr(r,"set",e,t):Xr(r,"add",e,t),this}function Ph(e){const t=Re(this),{has:r,get:n}=ko(t);let s=r.call(t,e);s||(e=Re(e),s=r.call(t,e)),n&&n.call(t,e);const i=t.delete(e);return s&&Xr(t,"delete",e,void 0),i}function Dh(){const e=Re(this),t=e.size!==0,r=e.clear();return t&&Xr(e,"clear",void 0,void 0),r}function _a(e,t){return function(n,s){const i=this,a=i.__v_raw,o=Re(a),u=t?Yl:e?Gl:Hi;return!e&&Ht(o,"iterate",as),a.forEach((l,h)=>n.call(s,u(l),u(h),i))}}function Sa(e,t,r){return function(...n){const s=this.__v_raw,i=Re(s),a=Ms(i),o=e==="entries"||e===Symbol.iterator&&a,u=e==="keys"&&a,l=s[e](...n),h=r?Yl:t?Gl:Hi;return!t&&Ht(i,"iterate",u?Zu:as),{next(){const{value:d,done:c}=l.next();return c?{value:d,done:c}:{value:o?[h(d[0]),h(d[1])]:h(d),done:c}},[Symbol.iterator](){return this}}}}function cn(e){return function(...t){return e==="delete"?!1:this}}function C1(){const e={get(i){return ba(this,i)},get size(){return xa(this)},has:wa,add:kh,set:Ah,delete:Ph,clear:Dh,forEach:_a(!1,!1)},t={get(i){return ba(this,i,!1,!0)},get size(){return xa(this)},has:wa,add:kh,set:Ah,delete:Ph,clear:Dh,forEach:_a(!1,!0)},r={get(i){return ba(this,i,!0)},get size(){return xa(this,!0)},has(i){return wa.call(this,i,!0)},add:cn("add"),set:cn("set"),delete:cn("delete"),clear:cn("clear"),forEach:_a(!0,!1)},n={get(i){return ba(this,i,!0,!0)},get size(){return xa(this,!0)},has(i){return wa.call(this,i,!0)},add:cn("add"),set:cn("set"),delete:cn("delete"),clear:cn("clear"),forEach:_a(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Sa(i,!1,!1),r[i]=Sa(i,!0,!1),t[i]=Sa(i,!1,!0),n[i]=Sa(i,!0,!0)}),[e,r,t,n]}const[k1,A1,P1,D1]=C1();function zl(e,t){const r=t?e?D1:P1:e?A1:k1;return(n,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?n:Reflect.get(Be(r,s)&&s in n?r:n,s,i)}const T1={get:zl(!1,!1)},F1={get:zl(!1,!0)},O1={get:zl(!0,!1)},sp=new WeakMap,ip=new WeakMap,ap=new WeakMap,I1=new WeakMap;function R1(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function N1(e){return e.__v_skip||!Object.isExtensible(e)?0:R1(Gm(e))}function Nr(e){return qs(e)?e:Wl(e,!1,np,T1,sp)}function op(e){return Wl(e,!1,E1,F1,ip)}function up(e){return Wl(e,!0,S1,O1,ap)}function Wl(e,t,r,n,s){if(!We(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=s.get(e);if(i)return i;const a=N1(e);if(a===0)return e;const o=new Proxy(e,a===2?n:r);return s.set(e,o),o}function An(e){return qs(e)?An(e.__v_raw):!!(e&&e.__v_isReactive)}function qs(e){return!!(e&&e.__v_isReadonly)}function Xa(e){return!!(e&&e.__v_isShallow)}function lp(e){return An(e)||qs(e)}function Re(e){const t=e&&e.__v_raw;return t?Re(t):e}function Ao(e){return Wa(e,"__v_skip",!0),e}const Hi=e=>We(e)?Nr(e):e,Gl=e=>We(e)?up(e):e;function cp(e){kn&&pr&&(e=Re(e),ep(e.dep||(e.dep=Ul())))}function hp(e,t){e=Re(e);const r=e.dep;r&&Qu(r)}function ot(e){return!!(e&&e.__v_isRef===!0)}function tt(e){return dp(e,!1)}function fp(e){return dp(e,!0)}function dp(e,t){return ot(e)?e:new M1(e,t)}class M1{constructor(t,r){this.__v_isShallow=r,this.dep=void 0,this.__v_isRef=!0,this._rawValue=r?t:Re(t),this._value=r?t:Hi(t)}get value(){return cp(this),this._value}set value(t){const r=this.__v_isShallow||Xa(t)||qs(t);t=r?t:Re(t),$i(t,this._rawValue)&&(this._rawValue=t,this._value=r?t:Hi(t),hp(this))}}function Pn(e){return ot(e)?e.value:e}const B1={get:(e,t,r)=>Pn(Reflect.get(e,t,r)),set:(e,t,r,n)=>{const s=e[t];return ot(s)&&!ot(r)?(s.value=r,!0):Reflect.set(e,t,r,n)}};function pp(e){return An(e)?e:new Proxy(e,B1)}function gp(e){const t=pe(e)?new Array(e.length):{};for(const r in e)t[r]=mp(e,r);return t}class $1{constructor(t,r,n){this._object=t,this._key=r,this._defaultValue=n,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return h1(Re(this._object),this._key)}}class H1{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function j1(e,t,r){return ot(e)?e:Ce(e)?new H1(e):We(e)&&arguments.length>1?mp(e,t,r):tt(e)}function mp(e,t,r){const n=e[t];return ot(n)?n:new $1(e,t,r)}class L1{constructor(t,r,n,s){this._setter=r,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new ql(t,()=>{this._dirty||(this._dirty=!0,hp(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=n}get value(){const t=Re(this);return cp(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function V1(e,t,r=!1){let n,s;const i=Ce(e);return i?(n=e,s=br):(n=e.get,s=e.set),new L1(n,s,i||!s,r)}function Dn(e,t,r,n){let s;try{s=n?e(...n):e()}catch(i){Po(i,t,r)}return s}function rr(e,t,r,n){if(Ce(e)){const i=Dn(e,t,r,n);return i&&Ud(i)&&i.catch(a=>{Po(a,t,r)}),i}const s=[];for(let i=0;i>>1;Li(Pt[n])Fr&&Pt.splice(t,1)}function Y1(e){pe(e)?Bs.push(...e):(!Vr||!Vr.includes(e,e.allowRecurse?Qn+1:Qn))&&Bs.push(e),yp()}function Th(e,t=ji?Fr+1:0){for(;tLi(r)-Li(n)),Qn=0;Qne.id==null?1/0:e.id,z1=(e,t)=>{const r=Li(e)-Li(t);if(r===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return r};function wp(e){el=!1,ji=!0,Pt.sort(z1);const t=br;try{for(Fr=0;Frat(f)?f.trim():f)),d&&(s=r.map(Ga))}let o,u=n[o=Su(t)]||n[o=Su(Rr(t))];!u&&i&&(u=n[o=Su(ds(t))]),u&&rr(u,e,6,s);const l=n[o+"Once"];if(l){if(!e.emitted)e.emitted={};else if(e.emitted[o])return;e.emitted[o]=!0,rr(l,e,6,s)}}function xp(e,t,r=!1){const n=t.emitsCache,s=n.get(e);if(s!==void 0)return s;const i=e.emits;let a={},o=!1;if(!Ce(e)){const u=l=>{const h=xp(l,t,!0);h&&(o=!0,dt(a,h))};!r&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}return!i&&!o?(We(e)&&n.set(e,null),null):(pe(i)?i.forEach(u=>a[u]=null):dt(a,i),We(e)&&n.set(e,a),a)}function To(e,t){return!e||!So(t)?!1:(t=t.slice(2).replace(/Once$/,""),Be(e,t[0].toLowerCase()+t.slice(1))||Be(e,ds(t))||Be(e,t))}let xt=null,Fo=null;function Za(e){const t=xt;return xt=e,Fo=e&&e.type.__scopeId||null,t}function _p(e){Fo=e}function Sp(){Fo=null}const G1=e=>zt;function zt(e,t=xt,r){if(!t||e._n)return e;const n=(...s)=>{n._d&&Uh(-1);const i=Za(t);let a;try{a=e(...s)}finally{Za(i),n._d&&Uh(1)}return a};return n._n=!0,n._c=!0,n._d=!0,n}function Eu(e){const{type:t,vnode:r,proxy:n,withProxy:s,props:i,propsOptions:[a],slots:o,attrs:u,emit:l,render:h,renderCache:d,data:c,setupState:f,ctx:p,inheritAttrs:g}=e;let m,y;const x=Za(e);try{if(r.shapeFlag&4){const A=s||n;m=Tr(h.call(A,A,d,i,f,c,p)),y=u}else{const A=t;m=Tr(A.length>1?A(i,{attrs:u,slots:o,emit:l}):A(i,null)),y=t.props?u:J1(u)}}catch(A){Ai.length=0,Po(A,e,1),m=K(sr)}let C=m;if(y&&g!==!1){const A=Object.keys(y),{shapeFlag:P}=C;A.length&&P&7&&(a&&A.some(Hl)&&(y=X1(y,a)),C=In(C,y))}return r.dirs&&(C=In(C),C.dirs=C.dirs?C.dirs.concat(r.dirs):r.dirs),r.transition&&(C.transition=r.transition),m=C,Za(x),m}const J1=e=>{let t;for(const r in e)(r==="class"||r==="style"||So(r))&&((t||(t={}))[r]=e[r]);return t},X1=(e,t)=>{const r={};for(const n in e)(!Hl(n)||!(n.slice(9)in t))&&(r[n]=e[n]);return r};function Z1(e,t,r){const{props:n,children:s,component:i}=e,{props:a,children:o,patchFlag:u}=t,l=i.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&u>=0){if(u&1024)return!0;if(u&16)return n?Fh(n,a,l):!!a;if(u&8){const h=t.dynamicProps;for(let d=0;de.__isSuspense;function tv(e,t){t&&t.pendingBranch?pe(e)?t.effects.push(...e):t.effects.push(e):Y1(e)}function nr(e,t){return Zl(e,null,t)}const Ea={};function $s(e,t,r){return Zl(e,t,r)}function Zl(e,t,{immediate:r,deep:n,flush:s,onTrack:i,onTrigger:a}=Qe){var o;const u=Jd()===((o=gt)==null?void 0:o.scope)?gt:null;let l,h=!1,d=!1;if(ot(e)?(l=()=>e.value,h=Xa(e)):An(e)?(l=()=>e,n=!0):pe(e)?(d=!0,h=e.some(A=>An(A)||Xa(A)),l=()=>e.map(A=>{if(ot(A))return A.value;if(An(A))return rs(A);if(Ce(A))return Dn(A,u,2)})):Ce(e)?t?l=()=>Dn(e,u,2):l=()=>{if(!(u&&u.isUnmounted))return c&&c(),rr(e,u,3,[f])}:l=br,t&&n){const A=l;l=()=>rs(A())}let c,f=A=>{c=x.onStop=()=>{Dn(A,u,4)}},p;if(Yi)if(f=br,t?r&&rr(t,u,3,[l(),d?[]:void 0,f]):l(),s==="sync"){const A=Zv();p=A.__watcherHandles||(A.__watcherHandles=[])}else return br;let g=d?new Array(e.length).fill(Ea):Ea;const m=()=>{if(x.active)if(t){const A=x.run();(n||h||(d?A.some((P,b)=>$i(P,g[b])):$i(A,g)))&&(c&&c(),rr(t,u,3,[A,g===Ea?void 0:d&&g[0]===Ea?[]:g,f]),g=A)}else x.run()};m.allowRecurse=!!t;let y;s==="sync"?y=m:s==="post"?y=()=>Mt(m,u&&u.suspense):(m.pre=!0,u&&(m.id=u.uid),y=()=>Xl(m));const x=new ql(l,y);t?r?m():g=x.run():s==="post"?Mt(x.run.bind(x),u&&u.suspense):x.run();const C=()=>{x.stop(),u&&u.scope&&jl(u.scope.effects,x)};return p&&p.push(C),C}function rv(e,t,r){const n=this.proxy,s=at(e)?e.includes(".")?Ep(n,e):()=>n[e]:e.bind(n,n);let i;Ce(t)?i=t:(i=t.handler,r=t);const a=gt;zs(this);const o=Zl(s,i.bind(n),r);return a?zs(a):us(),o}function Ep(e,t){const r=t.split(".");return()=>{let n=e;for(let s=0;s{rs(r,t)});else if(Kd(e))for(const r in e)rs(e[r],t);return e}function _e(e,t){const r=xt;if(r===null)return e;const n=Mo(r)||r.proxy,s=e.dirs||(e.dirs=[]);for(let i=0;i{e.isMounted=!0}),Dp(()=>{e.isUnmounting=!0}),e}const Xt=[Function,Array],Cp={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Xt,onEnter:Xt,onAfterEnter:Xt,onEnterCancelled:Xt,onBeforeLeave:Xt,onLeave:Xt,onAfterLeave:Xt,onLeaveCancelled:Xt,onBeforeAppear:Xt,onAppear:Xt,onAfterAppear:Xt,onAppearCancelled:Xt},sv={name:"BaseTransition",props:Cp,setup(e,{slots:t}){const r=qp(),n=nv();let s;return()=>{const i=t.default&&Ap(t.default(),!0);if(!i||!i.length)return;let a=i[0];if(i.length>1){for(const g of i)if(g.type!==sr){a=g;break}}const o=Re(e),{mode:u}=o;if(n.isLeaving)return Cu(a);const l=Oh(a);if(!l)return Cu(a);const h=tl(l,o,n,r);rl(l,h);const d=r.subTree,c=d&&Oh(d);let f=!1;const{getTransitionKey:p}=l.type;if(p){const g=p();s===void 0?s=g:g!==s&&(s=g,f=!0)}if(c&&c.type!==sr&&(!es(l,c)||f)){const g=tl(c,o,n,r);if(rl(c,g),u==="out-in")return n.isLeaving=!0,g.afterLeave=()=>{n.isLeaving=!1,r.update.active!==!1&&r.update()},Cu(a);u==="in-out"&&l.type!==sr&&(g.delayLeave=(m,y,x)=>{const C=kp(n,c);C[String(c.key)]=c,m._leaveCb=()=>{y(),m._leaveCb=void 0,delete h.delayedLeave},h.delayedLeave=x})}return a}}},iv=sv;function kp(e,t){const{leavingVNodes:r}=e;let n=r.get(t.type);return n||(n=Object.create(null),r.set(t.type,n)),n}function tl(e,t,r,n){const{appear:s,mode:i,persisted:a=!1,onBeforeEnter:o,onEnter:u,onAfterEnter:l,onEnterCancelled:h,onBeforeLeave:d,onLeave:c,onAfterLeave:f,onLeaveCancelled:p,onBeforeAppear:g,onAppear:m,onAfterAppear:y,onAppearCancelled:x}=t,C=String(e.key),A=kp(r,e),P=(_,w)=>{_&&rr(_,n,9,w)},b=(_,w)=>{const k=w[1];P(_,w),pe(_)?_.every(D=>D.length<=1)&&k():_.length<=1&&k()},S={mode:i,persisted:a,beforeEnter(_){let w=o;if(!r.isMounted)if(s)w=g||o;else return;_._leaveCb&&_._leaveCb(!0);const k=A[C];k&&es(e,k)&&k.el._leaveCb&&k.el._leaveCb(),P(w,[_])},enter(_){let w=u,k=l,D=h;if(!r.isMounted)if(s)w=m||u,k=y||l,D=x||h;else return;let T=!1;const M=_._enterCb=F=>{T||(T=!0,F?P(D,[_]):P(k,[_]),S.delayedLeave&&S.delayedLeave(),_._enterCb=void 0)};w?b(w,[_,M]):M()},leave(_,w){const k=String(e.key);if(_._enterCb&&_._enterCb(!0),r.isUnmounting)return w();P(d,[_]);let D=!1;const T=_._leaveCb=M=>{D||(D=!0,w(),M?P(p,[_]):P(f,[_]),_._leaveCb=void 0,A[k]===e&&delete A[k])};A[k]=e,c?b(c,[_,T]):T()},clone(_){return tl(_,t,r,n)}};return S}function Cu(e){if(Oo(e))return e=In(e),e.children=null,e}function Oh(e){return Oo(e)?e.children?e.children[0]:void 0:e}function rl(e,t){e.shapeFlag&6&&e.component?rl(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Ap(e,t=!1,r){let n=[],s=0;for(let i=0;i1)for(let i=0;idt({name:e.name},t,{setup:e}))():e}const Ei=e=>!!e.type.__asyncLoader,Oo=e=>e.type.__isKeepAlive;function av(e,t){Pp(e,"a",t)}function ov(e,t){Pp(e,"da",t)}function Pp(e,t,r=gt){const n=e.__wdc||(e.__wdc=()=>{let s=r;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(Io(t,n,r),r){let s=r.parent;for(;s&&s.parent;)Oo(s.parent.vnode)&&uv(n,t,r,s),s=s.parent}}function uv(e,t,r,n){const s=Io(t,e,n,!0);Ql(()=>{jl(n[t],s)},r)}function Io(e,t,r=gt,n=!1){if(r){const s=r[e]||(r[e]=[]),i=t.__weh||(t.__weh=(...a)=>{if(r.isUnmounted)return;ni(),zs(r);const o=rr(t,r,e,a);return us(),si(),o});return n?s.unshift(i):s.push(i),i}}const rn=e=>(t,r=gt)=>(!Yi||e==="sp")&&Io(e,(...n)=>t(...n),r),lv=rn("bm"),Vi=rn("m"),cv=rn("bu"),hv=rn("u"),Dp=rn("bum"),Ql=rn("um"),fv=rn("sp"),dv=rn("rtg"),pv=rn("rtc");function gv(e,t=gt){Io("ec",e,t)}const ec="components";function $t(e,t){return Fp(ec,e,!0,t)||e}const Tp=Symbol.for("v-ndc");function mv(e){return at(e)?Fp(ec,e,!1)||e:e||Tp}function Fp(e,t,r=!0,n=!1){const s=xt||gt;if(s){const i=s.type;if(e===ec){const o=Gv(i,!1);if(o&&(o===t||o===Rr(t)||o===Co(Rr(t))))return i}const a=Ih(s[e]||i[e],t)||Ih(s.appContext[e],t);return!a&&n?i:a}}function Ih(e,t){return e&&(e[t]||e[Rr(t)]||e[Co(Rr(t))])}function ht(e,t,r,n){let s;const i=r&&r[n];if(pe(e)||at(e)){s=new Array(e.length);for(let a=0,o=e.length;at(a,o,void 0,i&&i[o]));else{const a=Object.keys(e);s=new Array(a.length);for(let o=0,u=a.length;oKi(t)?!(t.type===sr||t.type===De&&!Op(t.children)):!0)?e:null}const nl=e=>e?Kp(e)?Mo(e)||e.proxy:nl(e.parent):null,Ci=dt(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>nl(e.parent),$root:e=>nl(e.root),$emit:e=>e.emit,$options:e=>tc(e),$forceUpdate:e=>e.f||(e.f=()=>Xl(e.update)),$nextTick:e=>e.n||(e.n=Do.bind(e.proxy)),$watch:e=>rv.bind(e)}),ku=(e,t)=>e!==Qe&&!e.__isScriptSetup&&Be(e,t),vv={get({_:e},t){const{ctx:r,setupState:n,data:s,props:i,accessCache:a,type:o,appContext:u}=e;let l;if(t[0]!=="$"){const f=a[t];if(f!==void 0)switch(f){case 1:return n[t];case 2:return s[t];case 4:return r[t];case 3:return i[t]}else{if(ku(n,t))return a[t]=1,n[t];if(s!==Qe&&Be(s,t))return a[t]=2,s[t];if((l=e.propsOptions[0])&&Be(l,t))return a[t]=3,i[t];if(r!==Qe&&Be(r,t))return a[t]=4,r[t];sl&&(a[t]=0)}}const h=Ci[t];let d,c;if(h)return t==="$attrs"&&Ht(e,"get",t),h(e);if((d=o.__cssModules)&&(d=d[t]))return d;if(r!==Qe&&Be(r,t))return a[t]=4,r[t];if(c=u.config.globalProperties,Be(c,t))return c[t]},set({_:e},t,r){const{data:n,setupState:s,ctx:i}=e;return ku(s,t)?(s[t]=r,!0):n!==Qe&&Be(n,t)?(n[t]=r,!0):Be(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:n,appContext:s,propsOptions:i}},a){let o;return!!r[a]||e!==Qe&&Be(e,a)||ku(t,a)||(o=i[0])&&Be(o,a)||Be(n,a)||Be(Ci,a)||Be(s.config.globalProperties,a)},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:Be(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}};function yv(){return bv().slots}function bv(){const e=qp();return e.setupContext||(e.setupContext=zp(e))}function Rh(e){return pe(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}let sl=!0;function wv(e){const t=tc(e),r=e.proxy,n=e.ctx;sl=!1,t.beforeCreate&&Nh(t.beforeCreate,e,"bc");const{data:s,computed:i,methods:a,watch:o,provide:u,inject:l,created:h,beforeMount:d,mounted:c,beforeUpdate:f,updated:p,activated:g,deactivated:m,beforeDestroy:y,beforeUnmount:x,destroyed:C,unmounted:A,render:P,renderTracked:b,renderTriggered:S,errorCaptured:_,serverPrefetch:w,expose:k,inheritAttrs:D,components:T,directives:M,filters:F}=t;if(l&&xv(l,n,null),a)for(const $ in a){const re=a[$];Ce(re)&&(n[$]=re.bind(r))}if(s){const $=s.call(r,r);We($)&&(e.data=Nr($))}if(sl=!0,i)for(const $ in i){const re=i[$],de=Ce(re)?re.bind(r,r):Ce(re.get)?re.get.bind(r,r):br,fe=!Ce(re)&&Ce(re.set)?re.set.bind(r):br,Pe=et({get:de,set:fe});Object.defineProperty(n,$,{enumerable:!0,configurable:!0,get:()=>Pe.value,set:Fe=>Pe.value=Fe})}if(o)for(const $ in o)Ip(o[$],n,r,$);if(u){const $=Ce(u)?u.call(r):u;Reflect.ownKeys($).forEach(re=>{os(re,$[re])})}h&&Nh(h,e,"c");function N($,re){pe(re)?re.forEach(de=>$(de.bind(r))):re&&$(re.bind(r))}if(N(lv,d),N(Vi,c),N(cv,f),N(hv,p),N(av,g),N(ov,m),N(gv,_),N(pv,b),N(dv,S),N(Dp,x),N(Ql,A),N(fv,w),pe(k))if(k.length){const $=e.exposed||(e.exposed={});k.forEach(re=>{Object.defineProperty($,re,{get:()=>r[re],set:de=>r[re]=de})})}else e.exposed||(e.exposed={});P&&e.render===br&&(e.render=P),D!=null&&(e.inheritAttrs=D),T&&(e.components=T),M&&(e.directives=M)}function xv(e,t,r=br){pe(e)&&(e=il(e));for(const n in e){const s=e[n];let i;We(s)?"default"in s?i=Wt(s.from||n,s.default,!0):i=Wt(s.from||n):i=Wt(s),ot(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:a=>i.value=a}):t[n]=i}}function Nh(e,t,r){rr(pe(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,r)}function Ip(e,t,r,n){const s=n.includes(".")?Ep(r,n):()=>r[n];if(at(e)){const i=t[e];Ce(i)&&$s(s,i)}else if(Ce(e))$s(s,e.bind(r));else if(We(e))if(pe(e))e.forEach(i=>Ip(i,t,r,n));else{const i=Ce(e.handler)?e.handler.bind(r):t[e.handler];Ce(i)&&$s(s,i,e)}}function tc(e){const t=e.type,{mixins:r,extends:n}=t,{mixins:s,optionsCache:i,config:{optionMergeStrategies:a}}=e.appContext,o=i.get(t);let u;return o?u=o:!s.length&&!r&&!n?u=t:(u={},s.length&&s.forEach(l=>Qa(u,l,a,!0)),Qa(u,t,a)),We(t)&&i.set(t,u),u}function Qa(e,t,r,n=!1){const{mixins:s,extends:i}=t;i&&Qa(e,i,r,!0),s&&s.forEach(a=>Qa(e,a,r,!0));for(const a in t)if(!(n&&a==="expose")){const o=_v[a]||r&&r[a];e[a]=o?o(e[a],t[a]):t[a]}return e}const _v={data:Mh,props:Bh,emits:Bh,methods:_i,computed:_i,beforeCreate:It,created:It,beforeMount:It,mounted:It,beforeUpdate:It,updated:It,beforeDestroy:It,beforeUnmount:It,destroyed:It,unmounted:It,activated:It,deactivated:It,errorCaptured:It,serverPrefetch:It,components:_i,directives:_i,watch:Ev,provide:Mh,inject:Sv};function Mh(e,t){return t?e?function(){return dt(Ce(e)?e.call(this,this):e,Ce(t)?t.call(this,this):t)}:t:e}function Sv(e,t){return _i(il(e),il(t))}function il(e){if(pe(e)){const t={};for(let r=0;r1)return r&&Ce(t)?t.call(n&&n.proxy):t}}function Av(){return!!(gt||xt||Ui)}function Pv(e,t,r,n=!1){const s={},i={};Wa(i,No,1),e.propsDefaults=Object.create(null),Np(e,t,s,i);for(const a in e.propsOptions[0])a in s||(s[a]=void 0);r?e.props=n?s:op(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function Dv(e,t,r,n){const{props:s,attrs:i,vnode:{patchFlag:a}}=e,o=Re(s),[u]=e.propsOptions;let l=!1;if((n||a>0)&&!(a&16)){if(a&8){const h=e.vnode.dynamicProps;for(let d=0;d{u=!0;const[c,f]=Mp(d,t,!0);dt(a,c),f&&o.push(...f)};!r&&t.mixins.length&&t.mixins.forEach(h),e.extends&&h(e.extends),e.mixins&&e.mixins.forEach(h)}if(!i&&!u)return We(e)&&n.set(e,Ns),Ns;if(pe(i))for(let h=0;h-1,f[1]=g<0||p-1||Be(f,"default"))&&o.push(d)}}}const l=[a,o];return We(e)&&n.set(e,l),l}function $h(e){return e[0]!=="$"}function Hh(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function jh(e,t){return Hh(e)===Hh(t)}function Lh(e,t){return pe(t)?t.findIndex(r=>jh(r,e)):Ce(t)&&jh(t,e)?0:-1}const Bp=e=>e[0]==="_"||e==="$stable",rc=e=>pe(e)?e.map(Tr):[Tr(e)],Tv=(e,t,r)=>{if(t._n)return t;const n=zt((...s)=>rc(t(...s)),r);return n._c=!1,n},$p=(e,t,r)=>{const n=e._ctx;for(const s in e){if(Bp(s))continue;const i=e[s];if(Ce(i))t[s]=Tv(s,i,n);else if(i!=null){const a=rc(i);t[s]=()=>a}}},Hp=(e,t)=>{const r=rc(t);e.slots.default=()=>r},Fv=(e,t)=>{if(e.vnode.shapeFlag&32){const r=t._;r?(e.slots=Re(t),Wa(t,"_",r)):$p(t,e.slots={})}else e.slots={},t&&Hp(e,t);Wa(e.slots,No,1)},Ov=(e,t,r)=>{const{vnode:n,slots:s}=e;let i=!0,a=Qe;if(n.shapeFlag&32){const o=t._;o?r&&o===1?i=!1:(dt(s,t),!r&&o===1&&delete s._):(i=!t.$stable,$p(t,s)),a=t}else t&&(Hp(e,t),a={default:1});if(i)for(const o in s)!Bp(o)&&!(o in a)&&delete s[o]};function ol(e,t,r,n,s=!1){if(pe(e)){e.forEach((c,f)=>ol(c,t&&(pe(t)?t[f]:t),r,n,s));return}if(Ei(n)&&!s)return;const i=n.shapeFlag&4?Mo(n.component)||n.component.proxy:n.el,a=s?null:i,{i:o,r:u}=e,l=t&&t.r,h=o.refs===Qe?o.refs={}:o.refs,d=o.setupState;if(l!=null&&l!==u&&(at(l)?(h[l]=null,Be(d,l)&&(d[l]=null)):ot(l)&&(l.value=null)),Ce(u))Dn(u,o,12,[a,h]);else{const c=at(u),f=ot(u);if(c||f){const p=()=>{if(e.f){const g=c?Be(d,u)?d[u]:h[u]:u.value;s?pe(g)&&jl(g,i):pe(g)?g.includes(i)||g.push(i):c?(h[u]=[i],Be(d,u)&&(d[u]=h[u])):(u.value=[i],e.k&&(h[e.k]=u.value))}else c?(h[u]=a,Be(d,u)&&(d[u]=a)):f&&(u.value=a,e.k&&(h[e.k]=a))};a?(p.id=-1,Mt(p,r)):p()}}}const Mt=tv;function Iv(e){return Rv(e)}function Rv(e,t){const r=Ju();r.__VUE__=!0;const{insert:n,remove:s,patchProp:i,createElement:a,createText:o,createComment:u,setText:l,setElementText:h,parentNode:d,nextSibling:c,setScopeId:f=br,insertStaticContent:p}=e,g=(O,R,H,U=null,Y=null,G=null,se=!1,te=null,ee=!!R.dynamicChildren)=>{if(O===R)return;O&&!es(O,R)&&(U=L(O),Fe(O,Y,G,!0),O=null),R.patchFlag===-2&&(ee=!1,R.dynamicChildren=null);const{type:W,ref:ge,shapeFlag:he}=R;switch(W){case Ro:m(O,R,H,U);break;case sr:y(O,R,H,U);break;case Au:O==null&&x(R,H,U,se);break;case De:T(O,R,H,U,Y,G,se,te,ee);break;default:he&1?P(O,R,H,U,Y,G,se,te,ee):he&6?M(O,R,H,U,Y,G,se,te,ee):(he&64||he&128)&&W.process(O,R,H,U,Y,G,se,te,ee,J)}ge!=null&&Y&&ol(ge,O&&O.ref,G,R||O,!R)},m=(O,R,H,U)=>{if(O==null)n(R.el=o(R.children),H,U);else{const Y=R.el=O.el;R.children!==O.children&&l(Y,R.children)}},y=(O,R,H,U)=>{O==null?n(R.el=u(R.children||""),H,U):R.el=O.el},x=(O,R,H,U)=>{[O.el,O.anchor]=p(O.children,R,H,U,O.el,O.anchor)},C=({el:O,anchor:R},H,U)=>{let Y;for(;O&&O!==R;)Y=c(O),n(O,H,U),O=Y;n(R,H,U)},A=({el:O,anchor:R})=>{let H;for(;O&&O!==R;)H=c(O),s(O),O=H;s(R)},P=(O,R,H,U,Y,G,se,te,ee)=>{se=se||R.type==="svg",O==null?b(R,H,U,Y,G,se,te,ee):w(O,R,Y,G,se,te,ee)},b=(O,R,H,U,Y,G,se,te)=>{let ee,W;const{type:ge,props:he,shapeFlag:ie,transition:me,dirs:ue}=O;if(ee=O.el=a(O.type,G,he&&he.is,he),ie&8?h(ee,O.children):ie&16&&_(O.children,ee,null,U,Y,G&&ge!=="foreignObject",se,te),ue&&qn(O,null,U,"created"),S(ee,O,O.scopeId,se,U),he){for(const ze in he)ze!=="value"&&!Ba(ze)&&i(ee,ze,null,he[ze],G,O.children,U,Y,He);"value"in he&&i(ee,"value",null,he.value),(W=he.onVnodeBeforeMount)&&Pr(W,U,O)}ue&&qn(O,null,U,"beforeMount");const Oe=(!Y||Y&&!Y.pendingBranch)&&me&&!me.persisted;Oe&&me.beforeEnter(ee),n(ee,R,H),((W=he&&he.onVnodeMounted)||Oe||ue)&&Mt(()=>{W&&Pr(W,U,O),Oe&&me.enter(ee),ue&&qn(O,null,U,"mounted")},Y)},S=(O,R,H,U,Y)=>{if(H&&f(O,H),U)for(let G=0;G{for(let W=ee;W{const te=R.el=O.el;let{patchFlag:ee,dynamicChildren:W,dirs:ge}=R;ee|=O.patchFlag&16;const he=O.props||Qe,ie=R.props||Qe;let me;H&&Kn(H,!1),(me=ie.onVnodeBeforeUpdate)&&Pr(me,H,R,O),ge&&qn(R,O,H,"beforeUpdate"),H&&Kn(H,!0);const ue=Y&&R.type!=="foreignObject";if(W?k(O.dynamicChildren,W,te,H,U,ue,G):se||re(O,R,te,null,H,U,ue,G,!1),ee>0){if(ee&16)D(te,R,he,ie,H,U,Y);else if(ee&2&&he.class!==ie.class&&i(te,"class",null,ie.class,Y),ee&4&&i(te,"style",he.style,ie.style,Y),ee&8){const Oe=R.dynamicProps;for(let ze=0;ze{me&&Pr(me,H,R,O),ge&&qn(R,O,H,"updated")},U)},k=(O,R,H,U,Y,G,se)=>{for(let te=0;te{if(H!==U){if(H!==Qe)for(const te in H)!Ba(te)&&!(te in U)&&i(O,te,H[te],null,se,R.children,Y,G,He);for(const te in U){if(Ba(te))continue;const ee=U[te],W=H[te];ee!==W&&te!=="value"&&i(O,te,W,ee,se,R.children,Y,G,He)}"value"in U&&i(O,"value",H.value,U.value)}},T=(O,R,H,U,Y,G,se,te,ee)=>{const W=R.el=O?O.el:o(""),ge=R.anchor=O?O.anchor:o("");let{patchFlag:he,dynamicChildren:ie,slotScopeIds:me}=R;me&&(te=te?te.concat(me):me),O==null?(n(W,H,U),n(ge,H,U),_(R.children,H,ge,Y,G,se,te,ee)):he>0&&he&64&&ie&&O.dynamicChildren?(k(O.dynamicChildren,ie,H,Y,G,se,te),(R.key!=null||Y&&R===Y.subTree)&&nc(O,R,!0)):re(O,R,H,ge,Y,G,se,te,ee)},M=(O,R,H,U,Y,G,se,te,ee)=>{R.slotScopeIds=te,O==null?R.shapeFlag&512?Y.ctx.activate(R,H,U,se,ee):F(R,H,U,Y,G,se,ee):I(O,R,ee)},F=(O,R,H,U,Y,G,se)=>{const te=O.component=Kv(O,U,Y);if(Oo(O)&&(te.ctx.renderer=J),Yv(te),te.asyncDep){if(Y&&Y.registerDep(te,N),!O.el){const ee=te.subTree=K(sr);y(null,ee,R,H)}return}N(te,O,R,H,Y,G,se)},I=(O,R,H)=>{const U=R.component=O.component;if(Z1(O,R,H))if(U.asyncDep&&!U.asyncResolved){$(U,R,H);return}else U.next=R,K1(U.update),U.update();else R.el=O.el,U.vnode=R},N=(O,R,H,U,Y,G,se)=>{const te=()=>{if(O.isMounted){let{next:ge,bu:he,u:ie,parent:me,vnode:ue}=O,Oe=ge,ze;Kn(O,!1),ge?(ge.el=ue.el,$(O,ge,se)):ge=ue,he&&$a(he),(ze=ge.props&&ge.props.onVnodeBeforeUpdate)&&Pr(ze,me,ge,ue),Kn(O,!0);const lt=Eu(O),hr=O.subTree;O.subTree=lt,g(hr,lt,d(hr.el),L(hr),O,Y,G),ge.el=lt.el,Oe===null&&Q1(O,lt.el),ie&&Mt(ie,Y),(ze=ge.props&&ge.props.onVnodeUpdated)&&Mt(()=>Pr(ze,me,ge,ue),Y)}else{let ge;const{el:he,props:ie}=R,{bm:me,m:ue,parent:Oe}=O,ze=Ei(R);if(Kn(O,!1),me&&$a(me),!ze&&(ge=ie&&ie.onVnodeBeforeMount)&&Pr(ge,Oe,R),Kn(O,!0),he&&xe){const lt=()=>{O.subTree=Eu(O),xe(he,O.subTree,O,Y,null)};ze?R.type.__asyncLoader().then(()=>!O.isUnmounted&<()):lt()}else{const lt=O.subTree=Eu(O);g(null,lt,H,U,O,Y,G),R.el=lt.el}if(ue&&Mt(ue,Y),!ze&&(ge=ie&&ie.onVnodeMounted)){const lt=R;Mt(()=>Pr(ge,Oe,lt),Y)}(R.shapeFlag&256||Oe&&Ei(Oe.vnode)&&Oe.vnode.shapeFlag&256)&&O.a&&Mt(O.a,Y),O.isMounted=!0,R=H=U=null}},ee=O.effect=new ql(te,()=>Xl(W),O.scope),W=O.update=()=>ee.run();W.id=O.uid,Kn(O,!0),W()},$=(O,R,H)=>{R.component=O;const U=O.vnode.props;O.vnode=R,O.next=null,Dv(O,R.props,U,H),Ov(O,R.children,H),ni(),Th(),si()},re=(O,R,H,U,Y,G,se,te,ee=!1)=>{const W=O&&O.children,ge=O?O.shapeFlag:0,he=R.children,{patchFlag:ie,shapeFlag:me}=R;if(ie>0){if(ie&128){fe(W,he,H,U,Y,G,se,te,ee);return}else if(ie&256){de(W,he,H,U,Y,G,se,te,ee);return}}me&8?(ge&16&&He(W,Y,G),he!==W&&h(H,he)):ge&16?me&16?fe(W,he,H,U,Y,G,se,te,ee):He(W,Y,G,!0):(ge&8&&h(H,""),me&16&&_(he,H,U,Y,G,se,te,ee))},de=(O,R,H,U,Y,G,se,te,ee)=>{O=O||Ns,R=R||Ns;const W=O.length,ge=R.length,he=Math.min(W,ge);let ie;for(ie=0;iege?He(O,Y,G,!0,!1,he):_(R,H,U,Y,G,se,te,ee,he)},fe=(O,R,H,U,Y,G,se,te,ee)=>{let W=0;const ge=R.length;let he=O.length-1,ie=ge-1;for(;W<=he&&W<=ie;){const me=O[W],ue=R[W]=ee?yn(R[W]):Tr(R[W]);if(es(me,ue))g(me,ue,H,null,Y,G,se,te,ee);else break;W++}for(;W<=he&&W<=ie;){const me=O[he],ue=R[ie]=ee?yn(R[ie]):Tr(R[ie]);if(es(me,ue))g(me,ue,H,null,Y,G,se,te,ee);else break;he--,ie--}if(W>he){if(W<=ie){const me=ie+1,ue=meie)for(;W<=he;)Fe(O[W],Y,G,!0),W++;else{const me=W,ue=W,Oe=new Map;for(W=ue;W<=ie;W++){const Lt=R[W]=ee?yn(R[W]):Tr(R[W]);Lt.key!=null&&Oe.set(Lt.key,W)}let ze,lt=0;const hr=ie-ue+1;let _s=!1,gh=0;const fi=new Array(hr);for(W=0;W=hr){Fe(Lt,Y,G,!0);continue}let Ar;if(Lt.key!=null)Ar=Oe.get(Lt.key);else for(ze=ue;ze<=ie;ze++)if(fi[ze-ue]===0&&es(Lt,R[ze])){Ar=ze;break}Ar===void 0?Fe(Lt,Y,G,!0):(fi[Ar-ue]=W+1,Ar>=gh?gh=Ar:_s=!0,g(Lt,R[Ar],H,null,Y,G,se,te,ee),lt++)}const mh=_s?Nv(fi):Ns;for(ze=mh.length-1,W=hr-1;W>=0;W--){const Lt=ue+W,Ar=R[Lt],vh=Lt+1{const{el:G,type:se,transition:te,children:ee,shapeFlag:W}=O;if(W&6){Pe(O.component.subTree,R,H,U);return}if(W&128){O.suspense.move(R,H,U);return}if(W&64){se.move(O,R,H,J);return}if(se===De){n(G,R,H);for(let he=0;hete.enter(G),Y);else{const{leave:he,delayLeave:ie,afterLeave:me}=te,ue=()=>n(G,R,H),Oe=()=>{he(G,()=>{ue(),me&&me()})};ie?ie(G,ue,Oe):Oe()}else n(G,R,H)},Fe=(O,R,H,U=!1,Y=!1)=>{const{type:G,props:se,ref:te,children:ee,dynamicChildren:W,shapeFlag:ge,patchFlag:he,dirs:ie}=O;if(te!=null&&ol(te,null,H,O,!0),ge&256){R.ctx.deactivate(O);return}const me=ge&1&&ie,ue=!Ei(O);let Oe;if(ue&&(Oe=se&&se.onVnodeBeforeUnmount)&&Pr(Oe,R,O),ge&6)St(O.component,H,U);else{if(ge&128){O.suspense.unmount(H,U);return}me&&qn(O,null,R,"beforeUnmount"),ge&64?O.type.remove(O,R,H,Y,J,U):W&&(G!==De||he>0&&he&64)?He(W,R,H,!1,!0):(G===De&&he&384||!Y&&ge&16)&&He(ee,R,H),U&&Ze(O)}(ue&&(Oe=se&&se.onVnodeUnmounted)||me)&&Mt(()=>{Oe&&Pr(Oe,R,O),me&&qn(O,null,R,"unmounted")},H)},Ze=O=>{const{type:R,el:H,anchor:U,transition:Y}=O;if(R===De){Xe(H,U);return}if(R===Au){A(O);return}const G=()=>{s(H),Y&&!Y.persisted&&Y.afterLeave&&Y.afterLeave()};if(O.shapeFlag&1&&Y&&!Y.persisted){const{leave:se,delayLeave:te}=Y,ee=()=>se(H,G);te?te(O.el,G,ee):ee()}else G()},Xe=(O,R)=>{let H;for(;O!==R;)H=c(O),s(O),O=H;s(R)},St=(O,R,H)=>{const{bum:U,scope:Y,update:G,subTree:se,um:te}=O;U&&$a(U),Y.stop(),G&&(G.active=!1,Fe(se,O,R,H)),te&&Mt(te,R),Mt(()=>{O.isUnmounted=!0},R),R&&R.pendingBranch&&!R.isUnmounted&&O.asyncDep&&!O.asyncResolved&&O.suspenseId===R.pendingId&&(R.deps--,R.deps===0&&R.resolve())},He=(O,R,H,U=!1,Y=!1,G=0)=>{for(let se=G;seO.shapeFlag&6?L(O.component.subTree):O.shapeFlag&128?O.suspense.next():c(O.anchor||O.el),X=(O,R,H)=>{O==null?R._vnode&&Fe(R._vnode,null,null,!0):g(R._vnode||null,O,R,null,null,null,H),Th(),bp(),R._vnode=O},J={p:g,um:Fe,m:Pe,r:Ze,mt:F,mc:_,pc:re,pbc:k,n:L,o:e};let ne,xe;return t&&([ne,xe]=t(J)),{render:X,hydrate:ne,createApp:kv(X,ne)}}function Kn({effect:e,update:t},r){e.allowRecurse=t.allowRecurse=r}function nc(e,t,r=!1){const n=e.children,s=t.children;if(pe(n)&&pe(s))for(let i=0;i>1,e[r[o]]0&&(t[n]=r[i-1]),r[i]=n)}}for(i=r.length,a=r[i-1];i-- >0;)r[i]=a,a=t[a];return r}const Mv=e=>e.__isTeleport,ki=e=>e&&(e.disabled||e.disabled===""),Vh=e=>typeof SVGElement!="undefined"&&e instanceof SVGElement,ul=(e,t)=>{const r=e&&e.to;return at(r)?t?t(r):null:r},Bv={__isTeleport:!0,process(e,t,r,n,s,i,a,o,u,l){const{mc:h,pc:d,pbc:c,o:{insert:f,querySelector:p,createText:g,createComment:m}}=l,y=ki(t.props);let{shapeFlag:x,children:C,dynamicChildren:A}=t;if(e==null){const P=t.el=g(""),b=t.anchor=g("");f(P,r,n),f(b,r,n);const S=t.target=ul(t.props,p),_=t.targetAnchor=g("");S&&(f(_,S),a=a||Vh(S));const w=(k,D)=>{x&16&&h(C,k,D,s,i,a,o,u)};y?w(r,b):S&&w(S,_)}else{t.el=e.el;const P=t.anchor=e.anchor,b=t.target=e.target,S=t.targetAnchor=e.targetAnchor,_=ki(e.props),w=_?r:b,k=_?P:S;if(a=a||Vh(b),A?(c(e.dynamicChildren,A,w,s,i,a,o),nc(e,t,!0)):u||d(e,t,w,k,s,i,a,o,!1),y)_||Ca(t,r,P,l,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const D=t.target=ul(t.props,p);D&&Ca(t,D,null,l,0)}else _&&Ca(t,b,S,l,1)}jp(t)},remove(e,t,r,n,{um:s,o:{remove:i}},a){const{shapeFlag:o,children:u,anchor:l,targetAnchor:h,target:d,props:c}=e;if(d&&i(h),(a||!ki(c))&&(i(l),o&16))for(let f=0;f0?mr||Ns:null,jv(),qi>0&&mr&&mr.push(e),e}function V(e,t,r,n,s,i){return Lp(E(e,t,r,n,s,i,!0))}function nn(e,t,r,n,s){return Lp(K(e,t,r,n,s,!0))}function Ki(e){return e?e.__v_isVNode===!0:!1}function es(e,t){return e.type===t.type&&e.key===t.key}const No="__vInternal",Vp=({key:e})=>e!=null?e:null,Ha=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?at(e)||ot(e)||Ce(e)?{i:xt,r:e,k:t,f:!!r}:e:null);function E(e,t=null,r=null,n=0,s=null,i=e===De?0:1,a=!1,o=!1){const u={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Vp(t),ref:t&&Ha(t),scopeId:Fo,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:n,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:xt};return o?(sc(u,r),i&128&&e.normalize(u)):r&&(u.shapeFlag|=at(r)?8:16),qi>0&&!a&&mr&&(u.patchFlag>0||i&6)&&u.patchFlag!==32&&mr.push(u),u}const K=Lv;function Lv(e,t=null,r=null,n=0,s=null,i=!1){if((!e||e===Tp)&&(e=sr),Ki(e)){const o=In(e,t,!0);return r&&sc(o,r),qi>0&&!i&&mr&&(o.shapeFlag&6?mr[mr.indexOf(e)]=o:mr.push(o)),o.patchFlag|=-2,o}if(Jv(e)&&(e=e.__vccOpts),t){t=Up(t);let{class:o,style:u}=t;o&&!at(o)&&(t.class=Ee(o)),We(u)&&(lp(u)&&!pe(u)&&(u=dt({},u)),t.style=Cn(u))}const a=at(e)?1:ev(e)?128:Mv(e)?64:We(e)?4:Ce(e)?2:0;return E(e,t,r,n,s,a,i,!0)}function Up(e){return e?lp(e)||No in e?dt({},e):e:null}function In(e,t,r=!1){const{props:n,ref:s,patchFlag:i,children:a}=e,o=t?Vv(n||{},t):n;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:o,key:o&&Vp(o),ref:t&&t.ref?r&&s?pe(s)?s.concat(Ha(t)):[s,Ha(t)]:Ha(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==De?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&In(e.ssContent),ssFallback:e.ssFallback&&In(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Ys(e=" ",t=0){return K(Ro,null,e,t)}function ae(e="",t=!1){return t?(j(),nn(sr,null,e)):K(sr,null,e)}function Tr(e){return e==null||typeof e=="boolean"?K(sr):pe(e)?K(De,null,e.slice()):typeof e=="object"?yn(e):K(Ro,null,String(e))}function yn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:In(e)}function sc(e,t){let r=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(pe(t))r=16;else if(typeof t=="object")if(n&65){const s=t.default;s&&(s._c&&(s._d=!1),sc(e,s()),s._c&&(s._d=!0));return}else{r=32;const s=t._;!s&&!(No in t)?t._ctx=xt:s===3&&xt&&(xt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ce(t)?(t={default:t,_ctx:xt},r=32):(t=String(t),n&64?(r=16,t=[Ys(t)]):r=8);e.children=t,e.shapeFlag|=r}function Vv(...e){const t={};for(let r=0;rgt||xt;let ic,Es,qh="__VUE_INSTANCE_SETTERS__";(Es=Ju()[qh])||(Es=Ju()[qh]=[]),Es.push(e=>gt=e),ic=e=>{Es.length>1?Es.forEach(t=>t(e)):Es[0](e)};const zs=e=>{ic(e),e.scope.on()},us=()=>{gt&>.scope.off(),ic(null)};function Kp(e){return e.vnode.shapeFlag&4}let Yi=!1;function Yv(e,t=!1){Yi=t;const{props:r,children:n}=e.vnode,s=Kp(e);Pv(e,r,s,t),Fv(e,n);const i=s?zv(e,t):void 0;return Yi=!1,i}function zv(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=Ao(new Proxy(e.ctx,vv));const{setup:n}=r;if(n){const s=e.setupContext=n.length>1?zp(e):null;zs(e),ni();const i=Dn(n,e,0,[e.props,s]);if(si(),us(),Ud(i)){if(i.then(us,us),t)return i.then(a=>{Kh(e,a,t)}).catch(a=>{Po(a,e,0)});e.asyncDep=i}else Kh(e,i,t)}else Yp(e,t)}function Kh(e,t,r){Ce(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:We(t)&&(e.setupState=pp(t)),Yp(e,r)}let Yh;function Yp(e,t,r){const n=e.type;if(!e.render){if(!t&&Yh&&!n.render){const s=n.template||tc(e).template;if(s){const{isCustomElement:i,compilerOptions:a}=e.appContext.config,{delimiters:o,compilerOptions:u}=n,l=dt(dt({isCustomElement:i,delimiters:o},a),u);n.render=Yh(s,l)}}e.render=n.render||br}zs(e),ni(),wv(e),si(),us()}function Wv(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,r){return Ht(e,"get","$attrs"),t[r]}}))}function zp(e){const t=r=>{e.exposed=r||{}};return{get attrs(){return Wv(e)},slots:e.slots,emit:e.emit,expose:t}}function Mo(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(pp(Ao(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in Ci)return Ci[r](e)},has(t,r){return r in t||r in Ci}}))}function Gv(e,t=!0){return Ce(e)?e.displayName||e.name:e.name||t&&e.__name}function Jv(e){return Ce(e)&&"__vccOpts"in e}const et=(e,t)=>V1(e,t,Yi);function zi(e,t,r){const n=arguments.length;return n===2?We(t)&&!pe(t)?Ki(t)?K(e,null,[t]):K(e,t):K(e,null,t):(n>3?r=Array.prototype.slice.call(arguments,2):n===3&&Ki(r)&&(r=[r]),K(e,t,r))}const Xv=Symbol.for("v-scx"),Zv=()=>Wt(Xv),Qv="3.3.4",ey="http://www.w3.org/2000/svg",ts=typeof document!="undefined"?document:null,zh=ts&&ts.createElement("template"),ty={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,n)=>{const s=t?ts.createElementNS(ey,e):ts.createElement(e,r?{is:r}:void 0);return e==="select"&&n&&n.multiple!=null&&s.setAttribute("multiple",n.multiple),s},createText:e=>ts.createTextNode(e),createComment:e=>ts.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ts.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,n,s,i){const a=r?r.previousSibling:t.lastChild;if(s&&(s===i||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),r),!(s===i||!(s=s.nextSibling)););else{zh.innerHTML=n?`${e}`:e;const o=zh.content;if(n){const u=o.firstChild;for(;u.firstChild;)o.appendChild(u.firstChild);o.removeChild(u)}t.insertBefore(o,r)}return[a?a.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}};function ry(e,t,r){const n=e._vtc;n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}function ny(e,t,r){const n=e.style,s=at(r);if(r&&!s){if(t&&!at(t))for(const i in t)r[i]==null&&ll(n,i,"");for(const i in r)ll(n,i,r[i])}else{const i=n.display;s?t!==r&&(n.cssText=r):t&&e.removeAttribute("style"),"_vod"in e&&(n.display=i)}}const Wh=/\s*!important$/;function ll(e,t,r){if(pe(r))r.forEach(n=>ll(e,t,n));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const n=sy(e,t);Wh.test(r)?e.setProperty(ds(n),r.replace(Wh,""),"important"):e[n]=r}}const Gh=["Webkit","Moz","ms"],Pu={};function sy(e,t){const r=Pu[t];if(r)return r;let n=Rr(t);if(n!=="filter"&&n in e)return Pu[t]=n;n=Co(n);for(let s=0;sDu||(cy.then(()=>Du=0),Du=Date.now());function fy(e,t){const r=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=r.attached)return;rr(dy(n,r.value),t,5,[n])};return r.value=e,r.attached=hy(),r}function dy(e,t){if(pe(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(n=>s=>!s._stopped&&n&&n(s))}else return t}const Zh=/^on[a-z]/,py=(e,t,r,n,s=!1,i,a,o,u)=>{t==="class"?ry(e,n,s):t==="style"?ny(e,r,n):So(t)?Hl(t)||uy(e,t,r,n,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):gy(e,t,n,s))?ay(e,t,n,i,a,o,u):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),iy(e,t,n,s))};function gy(e,t,r,n){return n?!!(t==="innerHTML"||t==="textContent"||t in e&&Zh.test(t)&&Ce(r)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Zh.test(t)&&at(r)?!1:t in e}const hn="transition",di="animation",ac=(e,{slots:t})=>zi(iv,my(e),t);ac.displayName="Transition";const Wp={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};ac.props=dt({},Cp,Wp);const Yn=(e,t=[])=>{pe(e)?e.forEach(r=>r(...t)):e&&e(...t)},Qh=e=>e?pe(e)?e.some(t=>t.length>1):e.length>1:!1;function my(e){const t={};for(const T in e)T in Wp||(t[T]=e[T]);if(e.css===!1)return t;const{name:r="v",type:n,duration:s,enterFromClass:i=`${r}-enter-from`,enterActiveClass:a=`${r}-enter-active`,enterToClass:o=`${r}-enter-to`,appearFromClass:u=i,appearActiveClass:l=a,appearToClass:h=o,leaveFromClass:d=`${r}-leave-from`,leaveActiveClass:c=`${r}-leave-active`,leaveToClass:f=`${r}-leave-to`}=e,p=vy(s),g=p&&p[0],m=p&&p[1],{onBeforeEnter:y,onEnter:x,onEnterCancelled:C,onLeave:A,onLeaveCancelled:P,onBeforeAppear:b=y,onAppear:S=x,onAppearCancelled:_=C}=t,w=(T,M,F)=>{zn(T,M?h:o),zn(T,M?l:a),F&&F()},k=(T,M)=>{T._isLeaving=!1,zn(T,d),zn(T,f),zn(T,c),M&&M()},D=T=>(M,F)=>{const I=T?S:x,N=()=>w(M,T,F);Yn(I,[M,N]),ef(()=>{zn(M,T?u:i),fn(M,T?h:o),Qh(I)||tf(M,n,g,N)})};return dt(t,{onBeforeEnter(T){Yn(y,[T]),fn(T,i),fn(T,a)},onBeforeAppear(T){Yn(b,[T]),fn(T,u),fn(T,l)},onEnter:D(!1),onAppear:D(!0),onLeave(T,M){T._isLeaving=!0;const F=()=>k(T,M);fn(T,d),wy(),fn(T,c),ef(()=>{T._isLeaving&&(zn(T,d),fn(T,f),Qh(A)||tf(T,n,m,F))}),Yn(A,[T,F])},onEnterCancelled(T){w(T,!1),Yn(C,[T])},onAppearCancelled(T){w(T,!0),Yn(_,[T])},onLeaveCancelled(T){k(T),Yn(P,[T])}})}function vy(e){if(e==null)return null;if(We(e))return[Tu(e.enter),Tu(e.leave)];{const t=Tu(e);return[t,t]}}function Tu(e){return Zm(e)}function fn(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e._vtc||(e._vtc=new Set)).add(t)}function zn(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.remove(n));const{_vtc:r}=e;r&&(r.delete(t),r.size||(e._vtc=void 0))}function ef(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let yy=0;function tf(e,t,r,n){const s=e._endId=++yy,i=()=>{s===e._endId&&n()};if(r)return setTimeout(i,r);const{type:a,timeout:o,propCount:u}=by(e,t);if(!a)return n();const l=a+"end";let h=0;const d=()=>{e.removeEventListener(l,c),i()},c=f=>{f.target===e&&++h>=u&&d()};setTimeout(()=>{h(r[p]||"").split(", "),s=n(`${hn}Delay`),i=n(`${hn}Duration`),a=rf(s,i),o=n(`${di}Delay`),u=n(`${di}Duration`),l=rf(o,u);let h=null,d=0,c=0;t===hn?a>0&&(h=hn,d=a,c=i.length):t===di?l>0&&(h=di,d=l,c=u.length):(d=Math.max(a,l),h=d>0?a>l?hn:di:null,c=h?h===hn?i.length:u.length:0);const f=h===hn&&/\b(transform|all)(,|$)/.test(n(`${hn}Property`).toString());return{type:h,timeout:d,propCount:c,hasTransform:f}}function rf(e,t){for(;e.lengthnf(r)+nf(e[n])))}function nf(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function wy(){return document.body.offsetHeight}const Rn=e=>{const t=e.props["onUpdate:modelValue"]||!1;return pe(t)?r=>$a(t,r):t};function xy(e){e.target.composing=!0}function sf(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ke={created(e,{modifiers:{lazy:t,trim:r,number:n}},s){e._assign=Rn(s);const i=n||s.props&&s.props.type==="number";Kr(e,t?"change":"input",a=>{if(a.target.composing)return;let o=e.value;r&&(o=o.trim()),i&&(o=Ga(o)),e._assign(o)}),r&&Kr(e,"change",()=>{e.value=e.value.trim()}),t||(Kr(e,"compositionstart",xy),Kr(e,"compositionend",sf),Kr(e,"change",sf))},mounted(e,{value:t}){e.value=t==null?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:r,trim:n,number:s}},i){if(e._assign=Rn(i),e.composing||document.activeElement===e&&e.type!=="range"&&(r||n&&e.value.trim()===t||(s||e.type==="number")&&Ga(e.value)===t))return;const a=t==null?"":t;e.value!==a&&(e.value=a)}},_y={deep:!0,created(e,t,r){e._assign=Rn(r),Kr(e,"change",()=>{const n=e._modelValue,s=Ws(e),i=e.checked,a=e._assign;if(pe(n)){const o=Vl(n,s),u=o!==-1;if(i&&!u)a(n.concat(s));else if(!i&&u){const l=[...n];l.splice(o,1),a(l)}}else if(ri(n)){const o=new Set(n);i?o.add(s):o.delete(s),a(o)}else a(Jp(e,i))})},mounted:af,beforeUpdate(e,t,r){e._assign=Rn(r),af(e,t,r)}};function af(e,{value:t,oldValue:r},n){e._modelValue=t,pe(t)?e.checked=Vl(t,n.props.value)>-1:ri(t)?e.checked=t.has(n.props.value):t!==r&&(e.checked=hs(t,Jp(e,!0)))}const cl={created(e,{value:t},r){e.checked=hs(t,r.props.value),e._assign=Rn(r),Kr(e,"change",()=>{e._assign(Ws(e))})},beforeUpdate(e,{value:t,oldValue:r},n){e._assign=Rn(n),t!==r&&(e.checked=hs(t,n.props.value))}},Gp={deep:!0,created(e,{value:t,modifiers:{number:r}},n){const s=ri(t);Kr(e,"change",()=>{const i=Array.prototype.filter.call(e.options,a=>a.selected).map(a=>r?Ga(Ws(a)):Ws(a));e._assign(e.multiple?s?new Set(i):i:i[0])}),e._assign=Rn(n)},mounted(e,{value:t}){of(e,t)},beforeUpdate(e,t,r){e._assign=Rn(r)},updated(e,{value:t}){of(e,t)}};function of(e,t){const r=e.multiple;if(!(r&&!pe(t)&&!ri(t))){for(let n=0,s=e.options.length;n-1:i.selected=t.has(a);else if(hs(Ws(i),t)){e.selectedIndex!==n&&(e.selectedIndex=n);return}}!r&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Ws(e){return"_value"in e?e._value:e.value}function Jp(e,t){const r=t?"_trueValue":"_falseValue";return r in e?e[r]:t}const QR={created(e,t,r){ka(e,t,r,null,"created")},mounted(e,t,r){ka(e,t,r,null,"mounted")},beforeUpdate(e,t,r,n){ka(e,t,r,n,"beforeUpdate")},updated(e,t,r,n){ka(e,t,r,n,"updated")}};function Sy(e,t){switch(e){case"SELECT":return Gp;case"TEXTAREA":return ke;default:switch(t){case"checkbox":return _y;case"radio":return cl;default:return ke}}}function ka(e,t,r,n,s){const a=Sy(e.tagName,r.props&&r.props.type)[s];a&&a(e,t,r,n)}const Ey=["ctrl","shift","alt","meta"],Cy={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,t)=>Ey.some(r=>e[`${r}Key`]&&!t.includes(r))},ky=(e,t)=>(r,...n)=>{for(let s=0;sr=>{if(!("key"in r))return;const n=ds(r.key);if(t.some(s=>s===n||Ay[s]===n))return e(r)},oc={beforeMount(e,{value:t},{transition:r}){e._vod=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):pi(e,t)},mounted(e,{value:t},{transition:r}){r&&t&&r.enter(e)},updated(e,{value:t,oldValue:r},{transition:n}){!t!=!r&&(n?t?(n.beforeEnter(e),pi(e,!0),n.enter(e)):n.leave(e,()=>{pi(e,!1)}):pi(e,t))},beforeUnmount(e,{value:t}){pi(e,t)}};function pi(e,t){e.style.display=t?e._vod:"none"}const Dy=dt({patchProp:py},ty);let uf;function Ty(){return uf||(uf=Iv(Dy))}const Fy=(...e)=>{const t=Ty().createApp(...e),{mount:r}=t;return t.mount=n=>{const s=Oy(n);if(!s)return;const i=t._component;!Ce(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.innerHTML="";const a=r(s,!1,s instanceof SVGElement);return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),a},t};function Oy(e){return at(e)?document.querySelector(e):e}var Iy=!1;/*! - * pinia v2.1.6 - * (c) 2023 Eduardo San Martin Morote - * @license MIT - */let Xp;const Bo=e=>Xp=e,Zp=Symbol();function hl(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Pi;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Pi||(Pi={}));function Ry(){const e=Gd(!0),t=e.run(()=>tt({}));let r=[],n=[];const s=Ao({install(i){Bo(s),s._a=i,i.provide(Zp,s),i.config.globalProperties.$pinia=s,n.forEach(a=>r.push(a)),n=[]},use(i){return!this._a&&!Iy?n.push(i):r.push(i),this},_p:r,_a:null,_e:e,_s:new Map,state:t});return s}const Qp=()=>{};function lf(e,t,r,n=Qp){e.push(t);const s=()=>{const i=e.indexOf(t);i>-1&&(e.splice(i,1),n())};return!r&&Jd()&&u1(s),s}function Cs(e,...t){e.slice().forEach(r=>{r(...t)})}const Ny=e=>e();function fl(e,t){e instanceof Map&&t instanceof Map&&t.forEach((r,n)=>e.set(n,r)),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const r in t){if(!t.hasOwnProperty(r))continue;const n=t[r],s=e[r];hl(s)&&hl(n)&&e.hasOwnProperty(r)&&!ot(n)&&!An(n)?e[r]=fl(s,n):e[r]=n}return e}const My=Symbol();function By(e){return!hl(e)||!e.hasOwnProperty(My)}const{assign:gn}=Object;function $y(e){return!!(ot(e)&&e.effect)}function Hy(e,t,r,n){const{state:s,actions:i,getters:a}=t,o=r.state.value[e];let u;function l(){o||(r.state.value[e]=s?s():{});const h=gp(r.state.value[e]);return gn(h,i,Object.keys(a||{}).reduce((d,c)=>(d[c]=Ao(et(()=>{Bo(r);const f=r._s.get(e);return a[c].call(f,f)})),d),{}))}return u=e0(e,l,t,r,n,!0),u}function e0(e,t,r={},n,s,i){let a;const o=gn({actions:{}},r),u={deep:!0};let l,h,d=[],c=[],f;const p=n.state.value[e];!i&&!p&&(n.state.value[e]={}),tt({});let g;function m(_){let w;l=h=!1,typeof _=="function"?(_(n.state.value[e]),w={type:Pi.patchFunction,storeId:e,events:f}):(fl(n.state.value[e],_),w={type:Pi.patchObject,payload:_,storeId:e,events:f});const k=g=Symbol();Do().then(()=>{g===k&&(l=!0)}),h=!0,Cs(d,w,n.state.value[e])}const y=i?function(){const{state:w}=r,k=w?w():{};this.$patch(D=>{gn(D,k)})}:Qp;function x(){a.stop(),d=[],c=[],n._s.delete(e)}function C(_,w){return function(){Bo(n);const k=Array.from(arguments),D=[],T=[];function M(N){D.push(N)}function F(N){T.push(N)}Cs(c,{args:k,name:_,store:P,after:M,onError:F});let I;try{I=w.apply(this&&this.$id===e?this:P,k)}catch(N){throw Cs(T,N),N}return I instanceof Promise?I.then(N=>(Cs(D,N),N)).catch(N=>(Cs(T,N),Promise.reject(N))):(Cs(D,I),I)}}const A={_p:n,$id:e,$onAction:lf.bind(null,c),$patch:m,$reset:y,$subscribe(_,w={}){const k=lf(d,_,w.detached,()=>D()),D=a.run(()=>$s(()=>n.state.value[e],T=>{(w.flush==="sync"?h:l)&&_({storeId:e,type:Pi.direct,events:f},T)},gn({},u,w)));return k},$dispose:x},P=Nr(A);n._s.set(e,P);const b=n._a&&n._a.runWithContext||Ny,S=n._e.run(()=>(a=Gd(),b(()=>a.run(t))));for(const _ in S){const w=S[_];if(ot(w)&&!$y(w)||An(w))i||(p&&By(w)&&(ot(w)?w.value=p[_]:fl(w,p[_])),n.state.value[e][_]=w);else if(typeof w=="function"){const k=C(_,w);S[_]=k,o.actions[_]=w}}return gn(P,S),gn(Re(P),S),Object.defineProperty(P,"$state",{get:()=>n.state.value[e],set:_=>{m(w=>{gn(w,_)})}}),n._p.forEach(_=>{gn(P,a.run(()=>_({store:P,app:n._a,pinia:n,options:o})))}),p&&i&&r.hydrate&&r.hydrate(P.$state,p),l=!0,h=!0,P}function Cr(e,t,r){let n,s;const i=typeof t=="function";typeof e=="string"?(n=e,s=i?r:t):(s=e,n=e.id);function a(o,u){const l=Av();return o=o||(l?Wt(Zp,null):null),o&&Bo(o),o=Xp,o._s.has(n)||(i?e0(n,t,s,o):Hy(n,s,o)),o._s.get(n)}return a.$id=n,a}/*! - * vue-router v4.2.4 - * (c) 2023 Eduardo San Martin Morote - * @license MIT - */const Ds=typeof window!="undefined";function jy(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const qe=Object.assign;function Fu(e,t){const r={};for(const n in t){const s=t[n];r[n]=wr(s)?s.map(e):e(s)}return r}const Di=()=>{},wr=Array.isArray,Ly=/\/$/,Vy=e=>e.replace(Ly,"");function Ou(e,t,r="/"){let n,s={},i="",a="";const o=t.indexOf("#");let u=t.indexOf("?");return o=0&&(u=-1),u>-1&&(n=t.slice(0,u),i=t.slice(u+1,o>-1?o:t.length),s=e(i)),o>-1&&(n=n||t.slice(0,o),a=t.slice(o,t.length)),n=Yy(n!=null?n:t,r),{fullPath:n+(i&&"?")+i+a,path:n,query:s,hash:a}}function Uy(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function cf(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function qy(e,t,r){const n=t.matched.length-1,s=r.matched.length-1;return n>-1&&n===s&&Gs(t.matched[n],r.matched[s])&&t0(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function Gs(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function t0(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!Ky(e[r],t[r]))return!1;return!0}function Ky(e,t){return wr(e)?hf(e,t):wr(t)?hf(t,e):e===t}function hf(e,t){return wr(t)?e.length===t.length&&e.every((r,n)=>r===t[n]):e.length===1&&e[0]===t}function Yy(e,t){if(e.startsWith("/"))return e;if(!e)return t;const r=t.split("/"),n=e.split("/"),s=n[n.length-1];(s===".."||s===".")&&n.push("");let i=r.length-1,a,o;for(a=0;a1&&i--;else break;return r.slice(0,i).join("/")+"/"+n.slice(a-(a===n.length?1:0)).join("/")}var Wi;(function(e){e.pop="pop",e.push="push"})(Wi||(Wi={}));var Ti;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Ti||(Ti={}));function zy(e){if(!e)if(Ds){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Vy(e)}const Wy=/^[^#]+#/;function Gy(e,t){return e.replace(Wy,"#")+t}function Jy(e,t){const r=document.documentElement.getBoundingClientRect(),n=e.getBoundingClientRect();return{behavior:t.behavior,left:n.left-r.left-(t.left||0),top:n.top-r.top-(t.top||0)}}const $o=()=>({left:window.pageXOffset,top:window.pageYOffset});function Xy(e){let t;if("el"in e){const r=e.el,n=typeof r=="string"&&r.startsWith("#"),s=typeof r=="string"?n?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!s)return;t=Jy(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function ff(e,t){return(history.state?history.state.position-t:-1)+e}const dl=new Map;function Zy(e,t){dl.set(e,t)}function Qy(e){const t=dl.get(e);return dl.delete(e),t}let eb=()=>location.protocol+"//"+location.host;function r0(e,t){const{pathname:r,search:n,hash:s}=t,i=e.indexOf("#");if(i>-1){let o=s.includes(e.slice(i))?e.slice(i).length:1,u=s.slice(o);return u[0]!=="/"&&(u="/"+u),cf(u,"")}return cf(r,e)+n+s}function tb(e,t,r,n){let s=[],i=[],a=null;const o=({state:c})=>{const f=r0(e,location),p=r.value,g=t.value;let m=0;if(c){if(r.value=f,t.value=c,a&&a===p){a=null;return}m=g?c.position-g.position:0}else n(f);s.forEach(y=>{y(r.value,p,{delta:m,type:Wi.pop,direction:m?m>0?Ti.forward:Ti.back:Ti.unknown})})};function u(){a=r.value}function l(c){s.push(c);const f=()=>{const p=s.indexOf(c);p>-1&&s.splice(p,1)};return i.push(f),f}function h(){const{history:c}=window;c.state&&c.replaceState(qe({},c.state,{scroll:$o()}),"")}function d(){for(const c of i)c();i=[],window.removeEventListener("popstate",o),window.removeEventListener("beforeunload",h)}return window.addEventListener("popstate",o),window.addEventListener("beforeunload",h,{passive:!0}),{pauseListeners:u,listen:l,destroy:d}}function df(e,t,r,n=!1,s=!1){return{back:e,current:t,forward:r,replaced:n,position:window.history.length,scroll:s?$o():null}}function rb(e){const{history:t,location:r}=window,n={value:r0(e,r)},s={value:t.state};s.value||i(n.value,{back:null,current:n.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(u,l,h){const d=e.indexOf("#"),c=d>-1?(r.host&&document.querySelector("base")?e:e.slice(d))+u:eb()+e+u;try{t[h?"replaceState":"pushState"](l,"",c),s.value=l}catch(f){console.error(f),r[h?"replace":"assign"](c)}}function a(u,l){const h=qe({},t.state,df(s.value.back,u,s.value.forward,!0),l,{position:s.value.position});i(u,h,!0),n.value=u}function o(u,l){const h=qe({},s.value,t.state,{forward:u,scroll:$o()});i(h.current,h,!0);const d=qe({},df(n.value,u,null),{position:h.position+1},l);i(u,d,!1),n.value=u}return{location:n,state:s,push:o,replace:a}}function nb(e){e=zy(e);const t=rb(e),r=tb(e,t.state,t.location,t.replace);function n(i,a=!0){a||r.pauseListeners(),history.go(i)}const s=qe({location:"",base:e,go:n,createHref:Gy.bind(null,e)},t,r);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}function sb(e){return typeof e=="string"||e&&typeof e=="object"}function n0(e){return typeof e=="string"||typeof e=="symbol"}const dn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},s0=Symbol("");var pf;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(pf||(pf={}));function Js(e,t){return qe(new Error,{type:e,[s0]:!0},t)}function jr(e,t){return e instanceof Error&&s0 in e&&(t==null||!!(e.type&t))}const gf="[^/]+?",ib={sensitive:!1,strict:!1,start:!0,end:!0},ab=/[.+*?^${}()[\]/\\]/g;function ob(e,t){const r=qe({},ib,t),n=[];let s=r.start?"^":"";const i=[];for(const l of e){const h=l.length?[]:[90];r.strict&&!l.length&&(s+="/");for(let d=0;dt.length?t.length===1&&t[0]===40+40?1:-1:0}function lb(e,t){let r=0;const n=e.score,s=t.score;for(;r0&&t[t.length-1]<0}const cb={type:0,value:""},hb=/[a-zA-Z0-9_]/;function fb(e){if(!e)return[[]];if(e==="/")return[[cb]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(f){throw new Error(`ERR (${r})/"${l}": ${f}`)}let r=0,n=r;const s=[];let i;function a(){i&&s.push(i),i=[]}let o=0,u,l="",h="";function d(){l&&(r===0?i.push({type:0,value:l}):r===1||r===2||r===3?(i.length>1&&(u==="*"||u==="+")&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:l,regexp:h,repeatable:u==="*"||u==="+",optional:u==="*"||u==="?"})):t("Invalid state to consume buffer"),l="")}function c(){l+=u}for(;o{a(x)}:Di}function a(h){if(n0(h)){const d=n.get(h);d&&(n.delete(h),r.splice(r.indexOf(d),1),d.children.forEach(a),d.alias.forEach(a))}else{const d=r.indexOf(h);d>-1&&(r.splice(d,1),h.record.name&&n.delete(h.record.name),h.children.forEach(a),h.alias.forEach(a))}}function o(){return r}function u(h){let d=0;for(;d=0&&(h.record.path!==r[d].record.path||!i0(h,r[d]));)d++;r.splice(d,0,h),h.record.name&&!yf(h)&&n.set(h.record.name,h)}function l(h,d){let c,f={},p,g;if("name"in h&&h.name){if(c=n.get(h.name),!c)throw Js(1,{location:h});g=c.record.name,f=qe(vf(d.params,c.keys.filter(x=>!x.optional).map(x=>x.name)),h.params&&vf(h.params,c.keys.map(x=>x.name))),p=c.stringify(f)}else if("path"in h)p=h.path,c=r.find(x=>x.re.test(p)),c&&(f=c.parse(p),g=c.record.name);else{if(c=d.name?n.get(d.name):r.find(x=>x.re.test(d.path)),!c)throw Js(1,{location:h,currentLocation:d});g=c.record.name,f=qe({},d.params,h.params),p=c.stringify(f)}const m=[];let y=c;for(;y;)m.unshift(y.record),y=y.parent;return{name:g,path:p,params:f,matched:m,meta:vb(m)}}return e.forEach(h=>i(h)),{addRoute:i,resolve:l,removeRoute:a,getRoutes:o,getRecordMatcher:s}}function vf(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}function gb(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:mb(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function mb(e){const t={},r=e.props||!1;if("component"in e)t.default=r;else for(const n in e.components)t[n]=typeof r=="object"?r[n]:r;return t}function yf(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function vb(e){return e.reduce((t,r)=>qe(t,r.meta),{})}function bf(e,t){const r={};for(const n in e)r[n]=n in t?t[n]:e[n];return r}function i0(e,t){return t.children.some(r=>r===e||i0(e,r))}const a0=/#/g,yb=/&/g,bb=/\//g,wb=/=/g,xb=/\?/g,o0=/\+/g,_b=/%5B/g,Sb=/%5D/g,u0=/%5E/g,Eb=/%60/g,l0=/%7B/g,Cb=/%7C/g,c0=/%7D/g,kb=/%20/g;function uc(e){return encodeURI(""+e).replace(Cb,"|").replace(_b,"[").replace(Sb,"]")}function Ab(e){return uc(e).replace(l0,"{").replace(c0,"}").replace(u0,"^")}function pl(e){return uc(e).replace(o0,"%2B").replace(kb,"+").replace(a0,"%23").replace(yb,"%26").replace(Eb,"`").replace(l0,"{").replace(c0,"}").replace(u0,"^")}function Pb(e){return pl(e).replace(wb,"%3D")}function Db(e){return uc(e).replace(a0,"%23").replace(xb,"%3F")}function Tb(e){return e==null?"":Db(e).replace(bb,"%2F")}function eo(e){try{return decodeURIComponent(""+e)}catch(t){}return""+e}function Fb(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;si&&pl(i)):[n&&pl(n)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+r,i!=null&&(t+="="+i))})}return t}function Ob(e){const t={};for(const r in e){const n=e[r];n!==void 0&&(t[r]=wr(n)?n.map(s=>s==null?null:""+s):n==null?n:""+n)}return t}const Ib=Symbol(""),xf=Symbol(""),lc=Symbol(""),h0=Symbol(""),gl=Symbol("");function gi(){let e=[];function t(n){return e.push(n),()=>{const s=e.indexOf(n);s>-1&&e.splice(s,1)}}function r(){e=[]}return{add:t,list:()=>e.slice(),reset:r}}function bn(e,t,r,n,s){const i=n&&(n.enterCallbacks[s]=n.enterCallbacks[s]||[]);return()=>new Promise((a,o)=>{const u=d=>{d===!1?o(Js(4,{from:r,to:t})):d instanceof Error?o(d):sb(d)?o(Js(2,{from:t,to:d})):(i&&n.enterCallbacks[s]===i&&typeof d=="function"&&i.push(d),a())},l=e.call(n&&n.instances[s],t,r,u);let h=Promise.resolve(l);e.length<3&&(h=h.then(u)),h.catch(d=>o(d))})}function Iu(e,t,r,n){const s=[];for(const i of e)for(const a in i.components){let o=i.components[a];if(!(t!=="beforeRouteEnter"&&!i.instances[a]))if(Rb(o)){const l=(o.__vccOpts||o)[t];l&&s.push(bn(l,r,n,i,a))}else{let u=o();s.push(()=>u.then(l=>{if(!l)return Promise.reject(new Error(`Couldn't resolve component "${a}" at "${i.path}"`));const h=jy(l)?l.default:l;i.components[a]=h;const c=(h.__vccOpts||h)[t];return c&&bn(c,r,n,i,a)()}))}}return s}function Rb(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function _f(e){const t=Wt(lc),r=Wt(h0),n=et(()=>t.resolve(Pn(e.to))),s=et(()=>{const{matched:u}=n.value,{length:l}=u,h=u[l-1],d=r.matched;if(!h||!d.length)return-1;const c=d.findIndex(Gs.bind(null,h));if(c>-1)return c;const f=Sf(u[l-2]);return l>1&&Sf(h)===f&&d[d.length-1].path!==f?d.findIndex(Gs.bind(null,u[l-2])):c}),i=et(()=>s.value>-1&&$b(r.params,n.value.params)),a=et(()=>s.value>-1&&s.value===r.matched.length-1&&t0(r.params,n.value.params));function o(u={}){return Bb(u)?t[Pn(e.replace)?"replace":"push"](Pn(e.to)).catch(Di):Promise.resolve()}return{route:n,href:et(()=>n.value.href),isActive:i,isExactActive:a,navigate:o}}const Nb=Er({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:_f,setup(e,{slots:t}){const r=Nr(_f(e)),{options:n}=Wt(lc),s=et(()=>({[Ef(e.activeClass,n.linkActiveClass,"router-link-active")]:r.isActive,[Ef(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const i=t.default&&t.default(r);return e.custom?i:zi("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:s.value},i)}}}),Mb=Nb;function Bb(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function $b(e,t){for(const r in t){const n=t[r],s=e[r];if(typeof n=="string"){if(n!==s)return!1}else if(!wr(s)||s.length!==n.length||n.some((i,a)=>i!==s[a]))return!1}return!0}function Sf(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ef=(e,t,r)=>e!=null?e:t!=null?t:r,Hb=Er({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){const n=Wt(gl),s=et(()=>e.route||n.value),i=Wt(xf,0),a=et(()=>{let l=Pn(i);const{matched:h}=s.value;let d;for(;(d=h[l])&&!d.components;)l++;return l}),o=et(()=>s.value.matched[a.value]);os(xf,et(()=>a.value+1)),os(Ib,o),os(gl,s);const u=tt();return $s(()=>[u.value,o.value,e.name],([l,h,d],[c,f,p])=>{h&&(h.instances[d]=l,f&&f!==h&&l&&l===c&&(h.leaveGuards.size||(h.leaveGuards=f.leaveGuards),h.updateGuards.size||(h.updateGuards=f.updateGuards))),l&&h&&(!f||!Gs(h,f)||!c)&&(h.enterCallbacks[d]||[]).forEach(g=>g(l))},{flush:"post"}),()=>{const l=s.value,h=e.name,d=o.value,c=d&&d.components[h];if(!c)return Cf(r.default,{Component:c,route:l});const f=d.props[h],p=f?f===!0?l.params:typeof f=="function"?f(l):f:null,m=zi(c,qe({},p,t,{onVnodeUnmounted:y=>{y.component.isUnmounted&&(d.instances[h]=null)},ref:u}));return Cf(r.default,{Component:m,route:l})||m}}});function Cf(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const jb=Hb;function Lb(e){const t=pb(e.routes,e),r=e.parseQuery||Fb,n=e.stringifyQuery||wf,s=e.history,i=gi(),a=gi(),o=gi(),u=fp(dn);let l=dn;Ds&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const h=Fu.bind(null,L=>""+L),d=Fu.bind(null,Tb),c=Fu.bind(null,eo);function f(L,X){let J,ne;return n0(L)?(J=t.getRecordMatcher(L),ne=X):ne=L,t.addRoute(ne,J)}function p(L){const X=t.getRecordMatcher(L);X&&t.removeRoute(X)}function g(){return t.getRoutes().map(L=>L.record)}function m(L){return!!t.getRecordMatcher(L)}function y(L,X){if(X=qe({},X||u.value),typeof L=="string"){const H=Ou(r,L,X.path),U=t.resolve({path:H.path},X),Y=s.createHref(H.fullPath);return qe(H,U,{params:c(U.params),hash:eo(H.hash),redirectedFrom:void 0,href:Y})}let J;if("path"in L)J=qe({},L,{path:Ou(r,L.path,X.path).path});else{const H=qe({},L.params);for(const U in H)H[U]==null&&delete H[U];J=qe({},L,{params:d(H)}),X.params=d(X.params)}const ne=t.resolve(J,X),xe=L.hash||"";ne.params=h(c(ne.params));const O=Uy(n,qe({},L,{hash:Ab(xe),path:ne.path})),R=s.createHref(O);return qe({fullPath:O,hash:xe,query:n===wf?Ob(L.query):L.query||{}},ne,{redirectedFrom:void 0,href:R})}function x(L){return typeof L=="string"?Ou(r,L,u.value.path):qe({},L)}function C(L,X){if(l!==L)return Js(8,{from:X,to:L})}function A(L){return S(L)}function P(L){return A(qe(x(L),{replace:!0}))}function b(L){const X=L.matched[L.matched.length-1];if(X&&X.redirect){const{redirect:J}=X;let ne=typeof J=="function"?J(L):J;return typeof ne=="string"&&(ne=ne.includes("?")||ne.includes("#")?ne=x(ne):{path:ne},ne.params={}),qe({query:L.query,hash:L.hash,params:"path"in ne?{}:L.params},ne)}}function S(L,X){const J=l=y(L),ne=u.value,xe=L.state,O=L.force,R=L.replace===!0,H=b(J);if(H)return S(qe(x(H),{state:typeof H=="object"?qe({},xe,H.state):xe,force:O,replace:R}),X||J);const U=J;U.redirectedFrom=X;let Y;return!O&&qy(n,ne,J)&&(Y=Js(16,{to:U,from:ne}),Pe(ne,ne,!0,!1)),(Y?Promise.resolve(Y):k(U,ne)).catch(G=>jr(G)?jr(G,2)?G:fe(G):re(G,U,ne)).then(G=>{if(G){if(jr(G,2))return S(qe({replace:R},x(G.to),{state:typeof G.to=="object"?qe({},xe,G.to.state):xe,force:O}),X||U)}else G=T(U,ne,!0,R,xe);return D(U,ne,G),G})}function _(L,X){const J=C(L,X);return J?Promise.reject(J):Promise.resolve()}function w(L){const X=Xe.values().next().value;return X&&typeof X.runWithContext=="function"?X.runWithContext(L):L()}function k(L,X){let J;const[ne,xe,O]=Vb(L,X);J=Iu(ne.reverse(),"beforeRouteLeave",L,X);for(const H of ne)H.leaveGuards.forEach(U=>{J.push(bn(U,L,X))});const R=_.bind(null,L,X);return J.push(R),He(J).then(()=>{J=[];for(const H of i.list())J.push(bn(H,L,X));return J.push(R),He(J)}).then(()=>{J=Iu(xe,"beforeRouteUpdate",L,X);for(const H of xe)H.updateGuards.forEach(U=>{J.push(bn(U,L,X))});return J.push(R),He(J)}).then(()=>{J=[];for(const H of O)if(H.beforeEnter)if(wr(H.beforeEnter))for(const U of H.beforeEnter)J.push(bn(U,L,X));else J.push(bn(H.beforeEnter,L,X));return J.push(R),He(J)}).then(()=>(L.matched.forEach(H=>H.enterCallbacks={}),J=Iu(O,"beforeRouteEnter",L,X),J.push(R),He(J))).then(()=>{J=[];for(const H of a.list())J.push(bn(H,L,X));return J.push(R),He(J)}).catch(H=>jr(H,8)?H:Promise.reject(H))}function D(L,X,J){o.list().forEach(ne=>w(()=>ne(L,X,J)))}function T(L,X,J,ne,xe){const O=C(L,X);if(O)return O;const R=X===dn,H=Ds?history.state:{};J&&(ne||R?s.replace(L.fullPath,qe({scroll:R&&H&&H.scroll},xe)):s.push(L.fullPath,xe)),u.value=L,Pe(L,X,J,R),fe()}let M;function F(){M||(M=s.listen((L,X,J)=>{if(!St.listening)return;const ne=y(L),xe=b(ne);if(xe){S(qe(xe,{replace:!0}),ne).catch(Di);return}l=ne;const O=u.value;Ds&&Zy(ff(O.fullPath,J.delta),$o()),k(ne,O).catch(R=>jr(R,12)?R:jr(R,2)?(S(R.to,ne).then(H=>{jr(H,20)&&!J.delta&&J.type===Wi.pop&&s.go(-1,!1)}).catch(Di),Promise.reject()):(J.delta&&s.go(-J.delta,!1),re(R,ne,O))).then(R=>{R=R||T(ne,O,!1),R&&(J.delta&&!jr(R,8)?s.go(-J.delta,!1):J.type===Wi.pop&&jr(R,20)&&s.go(-1,!1)),D(ne,O,R)}).catch(Di)}))}let I=gi(),N=gi(),$;function re(L,X,J){fe(L);const ne=N.list();return ne.length?ne.forEach(xe=>xe(L,X,J)):console.error(L),Promise.reject(L)}function de(){return $&&u.value!==dn?Promise.resolve():new Promise((L,X)=>{I.add([L,X])})}function fe(L){return $||($=!L,F(),I.list().forEach(([X,J])=>L?J(L):X()),I.reset()),L}function Pe(L,X,J,ne){const{scrollBehavior:xe}=e;if(!Ds||!xe)return Promise.resolve();const O=!J&&Qy(ff(L.fullPath,0))||(ne||!J)&&history.state&&history.state.scroll||null;return Do().then(()=>xe(L,X,O)).then(R=>R&&Xy(R)).catch(R=>re(R,L,X))}const Fe=L=>s.go(L);let Ze;const Xe=new Set,St={currentRoute:u,listening:!0,addRoute:f,removeRoute:p,hasRoute:m,getRoutes:g,resolve:y,options:e,push:A,replace:P,go:Fe,back:()=>Fe(-1),forward:()=>Fe(1),beforeEach:i.add,beforeResolve:a.add,afterEach:o.add,onError:N.add,isReady:de,install(L){const X=this;L.component("RouterLink",Mb),L.component("RouterView",jb),L.config.globalProperties.$router=X,Object.defineProperty(L.config.globalProperties,"$route",{enumerable:!0,get:()=>Pn(u)}),Ds&&!Ze&&u.value===dn&&(Ze=!0,A(s.location).catch(xe=>{}));const J={};for(const xe in dn)Object.defineProperty(J,xe,{get:()=>u.value[xe],enumerable:!0});L.provide(lc,X),L.provide(h0,op(J)),L.provide(gl,u);const ne=L.unmount;Xe.add(L),L.unmount=function(){Xe.delete(L),Xe.size<1&&(l=dn,M&&M(),M=null,u.value=dn,Ze=!1,$=!1),ne()}}};function He(L){return L.reduce((X,J)=>X.then(()=>w(J)),Promise.resolve())}return St}function Vb(e,t){const r=[],n=[],s=[],i=Math.max(t.matched.length,e.matched.length);for(let a=0;aGs(l,o))?n.push(o):r.push(o));const u=e.matched[a];u&&(t.matched.find(l=>Gs(l,u))||s.push(u))}return[r,n,s]}const Ub="modulepreload",qb=function(e){return"/assets/ury_pos/urypos/"+e},kf={},Kb=function(t,r,n){if(!r||r.length===0)return t();const s=document.getElementsByTagName("link");return Promise.all(r.map(i=>{if(i=qb(i),i in kf)return;kf[i]=!0;const a=i.endsWith(".css"),o=a?'[rel="stylesheet"]':"";if(!!n)for(let h=s.length-1;h>=0;h--){const d=s[h];if(d.href===i&&(!a||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${o}`))return;const l=document.createElement("link");if(l.rel=a?"stylesheet":Ub,a||(l.as="script",l.crossOrigin=""),l.href=i,document.head.appendChild(l),a)return new Promise((h,d)=>{l.addEventListener("load",h),l.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t()).catch(i=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i})},Yb=[{path:"/login",name:"Login",component:()=>Kb(()=>import("./Login-55f35886.js"),[]),meta:{isLoginPage:!0},props:!0}],na=Cr("notification",{state:()=>({}),actions:{createNotification(e){const t=document.createElement("div");t.classList.add("fixed","bottom-20","right-5"),document.body.appendChild(t);const r=document.createElement("div");r.classList.add("bg-green-100","text-dark","py-2","px-2","mr-3"),r.style.borderRadius="5px",r.style.width="400px",r.style.height="65px",window.matchMedia("(max-width: 640px)").matches&&(r.style.width="300px");const s=document.createElement("span");s.innerHTML=` - Close - - - `,s.classList.add("cursor-pointer","ml-12","absolute","top-4","right-7"),s.addEventListener("click",()=>{r.remove(),t.remove()}),r.appendChild(s);const i=document.createElement("h2");i.textContent=e,i.classList.add("mt-2"),r.appendChild(i),t.appendChild(r),setTimeout(()=>{r.remove(),t.remove()},900)}}});var Ye=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function f0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function d0(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var s=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,s.get?s:{enumerable:!0,get:function(){return e[n]}})}),r}var Ru={},mi={},sa={},Zt=Ye&&Ye.__assign||function(){return Zt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&i[i.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]0&&i[i.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]0?[2,this.getDoc(t,s[0].name)]:[2,{}]}})})},e}();ia.FrappeDB=Wb;var aa={},to=Ye&&Ye.__assign||function(){return to=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&i[i.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]t=>{const r=Zb.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Br=e=>(e=e.toLowerCase(),t=>Ho(t)===e),jo=e=>t=>typeof t===e,{isArray:ii}=Array,Gi=jo("undefined");function Qb(e){return e!==null&&!Gi(e)&&e.constructor!==null&&!Gi(e.constructor)&&ir(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const g0=Br("ArrayBuffer");function e2(e){let t;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&g0(e.buffer),t}const t2=jo("string"),ir=jo("function"),m0=jo("number"),Lo=e=>e!==null&&typeof e=="object",r2=e=>e===!0||e===!1,ja=e=>{if(Ho(e)!=="object")return!1;const t=cc(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},n2=Br("Date"),s2=Br("File"),i2=Br("Blob"),a2=Br("FileList"),o2=e=>Lo(e)&&ir(e.pipe),u2=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||ir(e.append)&&((t=Ho(e))==="formdata"||t==="object"&&ir(e.toString)&&e.toString()==="[object FormData]"))},l2=Br("URLSearchParams"),c2=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function oa(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e=="undefined")return;let n,s;if(typeof e!="object"&&(e=[e]),ii(e))for(n=0,s=e.length;n0;)if(s=r[n],t===s.toLowerCase())return s;return null}const y0=(()=>typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global)(),b0=e=>!Gi(e)&&e!==y0;function ml(){const{caseless:e}=b0(this)&&this||{},t={},r=(n,s)=>{const i=e&&v0(t,s)||s;ja(t[i])&&ja(n)?t[i]=ml(t[i],n):ja(n)?t[i]=ml({},n):ii(n)?t[i]=n.slice():t[i]=n};for(let n=0,s=arguments.length;n(oa(t,(s,i)=>{r&&ir(s)?e[i]=p0(s,r):e[i]=s},{allOwnKeys:n}),e),f2=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),d2=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},p2=(e,t,r,n)=>{let s,i,a;const o={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),i=s.length;i-- >0;)a=s[i],(!n||n(a,e,t))&&!o[a]&&(t[a]=e[a],o[a]=!0);e=r!==!1&&cc(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},g2=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},m2=e=>{if(!e)return null;if(ii(e))return e;let t=e.length;if(!m0(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},v2=(e=>t=>e&&t instanceof e)(typeof Uint8Array!="undefined"&&cc(Uint8Array)),y2=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=n.next())&&!s.done;){const i=s.value;t.call(e,i[0],i[1])}},b2=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},w2=Br("HTMLFormElement"),x2=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,s){return n.toUpperCase()+s}),Af=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),_2=Br("RegExp"),w0=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};oa(r,(s,i)=>{let a;(a=t(s,i,e))!==!1&&(n[i]=a||s)}),Object.defineProperties(e,n)},S2=e=>{w0(e,(t,r)=>{if(ir(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(ir(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},E2=(e,t)=>{const r={},n=s=>{s.forEach(i=>{r[i]=!0})};return ii(e)?n(e):n(String(e).split(t)),r},C2=()=>{},k2=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Nu="abcdefghijklmnopqrstuvwxyz",Pf="0123456789",x0={DIGIT:Pf,ALPHA:Nu,ALPHA_DIGIT:Nu+Nu.toUpperCase()+Pf},A2=(e=16,t=x0.ALPHA_DIGIT)=>{let r="";const{length:n}=t;for(;e--;)r+=t[Math.random()*n|0];return r};function P2(e){return!!(e&&ir(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const D2=e=>{const t=new Array(10),r=(n,s)=>{if(Lo(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[s]=n;const i=ii(n)?[]:{};return oa(n,(a,o)=>{const u=r(a,s+1);!Gi(u)&&(i[o]=u)}),t[s]=void 0,i}}return n};return r(e,0)},T2=Br("AsyncFunction"),F2=e=>e&&(Lo(e)||ir(e))&&ir(e.then)&&ir(e.catch),z={isArray:ii,isArrayBuffer:g0,isBuffer:Qb,isFormData:u2,isArrayBufferView:e2,isString:t2,isNumber:m0,isBoolean:r2,isObject:Lo,isPlainObject:ja,isUndefined:Gi,isDate:n2,isFile:s2,isBlob:i2,isRegExp:_2,isFunction:ir,isStream:o2,isURLSearchParams:l2,isTypedArray:v2,isFileList:a2,forEach:oa,merge:ml,extend:h2,trim:c2,stripBOM:f2,inherits:d2,toFlatObject:p2,kindOf:Ho,kindOfTest:Br,endsWith:g2,toArray:m2,forEachEntry:y2,matchAll:b2,isHTMLForm:w2,hasOwnProperty:Af,hasOwnProp:Af,reduceDescriptors:w0,freezeMethods:S2,toObjectSet:E2,toCamelCase:x2,noop:C2,toFiniteNumber:k2,findKey:v0,global:y0,isContextDefined:b0,ALPHABET:x0,generateString:A2,isSpecCompliantForm:P2,toJSONObject:D2,isAsyncFn:T2,isThenable:F2};function $e(e,t,r,n,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),s&&(this.response=s)}z.inherits($e,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:z.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const _0=$e.prototype,S0={};["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(e=>{S0[e]={value:e}});Object.defineProperties($e,S0);Object.defineProperty(_0,"isAxiosError",{value:!0});$e.from=(e,t,r,n,s,i)=>{const a=Object.create(_0);return z.toFlatObject(e,a,function(u){return u!==Error.prototype},o=>o!=="isAxiosError"),$e.call(a,e.message,t,r,n,s),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const O2=null;function vl(e){return z.isPlainObject(e)||z.isArray(e)}function E0(e){return z.endsWith(e,"[]")?e.slice(0,-2):e}function Df(e,t,r){return e?e.concat(t).map(function(s,i){return s=E0(s),!r&&i?"["+s+"]":s}).join(r?".":""):t}function I2(e){return z.isArray(e)&&!e.some(vl)}const R2=z.toFlatObject(z,{},null,function(t){return/^is[A-Z]/.test(t)});function Vo(e,t,r){if(!z.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=z.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,m){return!z.isUndefined(m[g])});const n=r.metaTokens,s=r.visitor||h,i=r.dots,a=r.indexes,u=(r.Blob||typeof Blob!="undefined"&&Blob)&&z.isSpecCompliantForm(t);if(!z.isFunction(s))throw new TypeError("visitor must be a function");function l(p){if(p===null)return"";if(z.isDate(p))return p.toISOString();if(!u&&z.isBlob(p))throw new $e("Blob is not supported. Use a Buffer instead.");return z.isArrayBuffer(p)||z.isTypedArray(p)?u&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function h(p,g,m){let y=p;if(p&&!m&&typeof p=="object"){if(z.endsWith(g,"{}"))g=n?g:g.slice(0,-2),p=JSON.stringify(p);else if(z.isArray(p)&&I2(p)||(z.isFileList(p)||z.endsWith(g,"[]"))&&(y=z.toArray(p)))return g=E0(g),y.forEach(function(C,A){!(z.isUndefined(C)||C===null)&&t.append(a===!0?Df([g],A,i):a===null?g:g+"[]",l(C))}),!1}return vl(p)?!0:(t.append(Df(m,g,i),l(p)),!1)}const d=[],c=Object.assign(R2,{defaultVisitor:h,convertValue:l,isVisitable:vl});function f(p,g){if(!z.isUndefined(p)){if(d.indexOf(p)!==-1)throw Error("Circular reference detected in "+g.join("."));d.push(p),z.forEach(p,function(y,x){(!(z.isUndefined(y)||y===null)&&s.call(t,y,z.isString(x)?x.trim():x,g,c))===!0&&f(y,g?g.concat(x):[x])}),d.pop()}}if(!z.isObject(e))throw new TypeError("data must be an object");return f(e),t}function Tf(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function hc(e,t){this._pairs=[],e&&Vo(e,this,t)}const C0=hc.prototype;C0.append=function(t,r){this._pairs.push([t,r])};C0.toString=function(t){const r=t?function(n){return t.call(this,n,Tf)}:Tf;return this._pairs.map(function(s){return r(s[0])+"="+r(s[1])},"").join("&")};function N2(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function k0(e,t,r){if(!t)return e;const n=r&&r.encode||N2,s=r&&r.serialize;let i;if(s?i=s(t,r):i=z.isURLSearchParams(t)?t.toString():new hc(t,r).toString(n),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class M2{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){z.forEach(this.handlers,function(n){n!==null&&t(n)})}}const Ff=M2,A0={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},B2=typeof URLSearchParams!="undefined"?URLSearchParams:hc,$2=typeof FormData!="undefined"?FormData:null,H2=typeof Blob!="undefined"?Blob:null,j2=(()=>{let e;return typeof navigator!="undefined"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window!="undefined"&&typeof document!="undefined"})(),L2=(()=>typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),vr={isBrowser:!0,classes:{URLSearchParams:B2,FormData:$2,Blob:H2},isStandardBrowserEnv:j2,isStandardBrowserWebWorkerEnv:L2,protocols:["http","https","file","blob","url","data"]};function V2(e,t){return Vo(e,new vr.classes.URLSearchParams,Object.assign({visitor:function(r,n,s,i){return vr.isNode&&z.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function U2(e){return z.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function q2(e){const t={},r=Object.keys(e);let n;const s=r.length;let i;for(n=0;n=r.length;return a=!a&&z.isArray(s)?s.length:a,u?(z.hasOwnProp(s,a)?s[a]=[s[a],n]:s[a]=n,!o):((!s[a]||!z.isObject(s[a]))&&(s[a]=[]),t(r,n,s[a],i)&&z.isArray(s[a])&&(s[a]=q2(s[a])),!o)}if(z.isFormData(e)&&z.isFunction(e.entries)){const r={};return z.forEachEntry(e,(n,s)=>{t(U2(n),s,r,0)}),r}return null}function K2(e,t,r){if(z.isString(e))try{return(t||JSON.parse)(e),z.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const fc={transitional:A0,adapter:vr.isNode?"http":"xhr",transformRequest:[function(t,r){const n=r.getContentType()||"",s=n.indexOf("application/json")>-1,i=z.isObject(t);if(i&&z.isHTMLForm(t)&&(t=new FormData(t)),z.isFormData(t))return s&&s?JSON.stringify(P0(t)):t;if(z.isArrayBuffer(t)||z.isBuffer(t)||z.isStream(t)||z.isFile(t)||z.isBlob(t))return t;if(z.isArrayBufferView(t))return t.buffer;if(z.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let o;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return V2(t,this.formSerializer).toString();if((o=z.isFileList(t))||n.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return Vo(o?{"files[]":t}:t,u&&new u,this.formSerializer)}}return i||s?(r.setContentType("application/json",!1),K2(t)):t}],transformResponse:[function(t){const r=this.transitional||fc.transitional,n=r&&r.forcedJSONParsing,s=this.responseType==="json";if(t&&z.isString(t)&&(n&&!this.responseType||s)){const a=!(r&&r.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(o){if(a)throw o.name==="SyntaxError"?$e.from(o,$e.ERR_BAD_RESPONSE,this,null,this.response):o}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:vr.classes.FormData,Blob:vr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};z.forEach(["delete","get","head","post","put","patch"],e=>{fc.headers[e]={}});const dc=fc,Y2=z.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"]),z2=e=>{const t={};let r,n,s;return e&&e.split(` -`).forEach(function(a){s=a.indexOf(":"),r=a.substring(0,s).trim().toLowerCase(),n=a.substring(s+1).trim(),!(!r||t[r]&&Y2[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},Of=Symbol("internals");function vi(e){return e&&String(e).trim().toLowerCase()}function La(e){return e===!1||e==null?e:z.isArray(e)?e.map(La):String(e)}function W2(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const G2=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Mu(e,t,r,n,s){if(z.isFunction(n))return n.call(this,t,r);if(s&&(t=r),!!z.isString(t)){if(z.isString(n))return t.indexOf(n)!==-1;if(z.isRegExp(n))return n.test(t)}}function J2(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function X2(e,t){const r=z.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(s,i,a){return this[n].call(this,t,s,i,a)},configurable:!0})})}let Uo=class{constructor(t){t&&this.set(t)}set(t,r,n){const s=this;function i(o,u,l){const h=vi(u);if(!h)throw new Error("header name must be a non-empty string");const d=z.findKey(s,h);(!d||s[d]===void 0||l===!0||l===void 0&&s[d]!==!1)&&(s[d||u]=La(o))}const a=(o,u)=>z.forEach(o,(l,h)=>i(l,h,u));return z.isPlainObject(t)||t instanceof this.constructor?a(t,r):z.isString(t)&&(t=t.trim())&&!G2(t)?a(z2(t),r):t!=null&&i(r,t,n),this}get(t,r){if(t=vi(t),t){const n=z.findKey(this,t);if(n){const s=this[n];if(!r)return s;if(r===!0)return W2(s);if(z.isFunction(r))return r.call(this,s,n);if(z.isRegExp(r))return r.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=vi(t),t){const n=z.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||Mu(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let s=!1;function i(a){if(a=vi(a),a){const o=z.findKey(n,a);o&&(!r||Mu(n,n[o],o,r))&&(delete n[o],s=!0)}}return z.isArray(t)?t.forEach(i):i(t),s}clear(t){const r=Object.keys(this);let n=r.length,s=!1;for(;n--;){const i=r[n];(!t||Mu(this,this[i],i,t,!0))&&(delete this[i],s=!0)}return s}normalize(t){const r=this,n={};return z.forEach(this,(s,i)=>{const a=z.findKey(n,i);if(a){r[a]=La(s),delete r[i];return}const o=t?J2(i):String(i).trim();o!==i&&delete r[i],r[o]=La(s),n[o]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return z.forEach(this,(n,s)=>{n!=null&&n!==!1&&(r[s]=t&&z.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(s=>n.set(s)),n}static accessor(t){const n=(this[Of]=this[Of]={accessors:{}}).accessors,s=this.prototype;function i(a){const o=vi(a);n[o]||(X2(s,a),n[o]=!0)}return z.isArray(t)?t.forEach(i):i(t),this}};Uo.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);z.reduceDescriptors(Uo.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});z.freezeMethods(Uo);const Wr=Uo;function Bu(e,t){const r=this||dc,n=t||r,s=Wr.from(n.headers);let i=n.data;return z.forEach(e,function(o){i=o.call(r,i,s.normalize(),t?t.status:void 0)}),s.normalize(),i}function D0(e){return!!(e&&e.__CANCEL__)}function ua(e,t,r){$e.call(this,e==null?"canceled":e,$e.ERR_CANCELED,t,r),this.name="CanceledError"}z.inherits(ua,$e,{__CANCEL__:!0});function Z2(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new $e("Request failed with status code "+r.status,[$e.ERR_BAD_REQUEST,$e.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}const Q2=vr.isStandardBrowserEnv?function(){return{write:function(r,n,s,i,a,o){const u=[];u.push(r+"="+encodeURIComponent(n)),z.isNumber(s)&&u.push("expires="+new Date(s).toGMTString()),z.isString(i)&&u.push("path="+i),z.isString(a)&&u.push("domain="+a),o===!0&&u.push("secure"),document.cookie=u.join("; ")},read:function(r){const n=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function ew(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function tw(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function T0(e,t){return e&&!ew(t)?tw(e,t):t}const rw=vr.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");let n;function s(i){let a=i;return t&&(r.setAttribute("href",a),a=r.href),r.setAttribute("href",a),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return n=s(window.location.href),function(a){const o=z.isString(a)?s(a):a;return o.protocol===n.protocol&&o.host===n.host}}():function(){return function(){return!0}}();function nw(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function sw(e,t){e=e||10;const r=new Array(e),n=new Array(e);let s=0,i=0,a;return t=t!==void 0?t:1e3,function(u){const l=Date.now(),h=n[i];a||(a=l),r[s]=u,n[s]=l;let d=i,c=0;for(;d!==s;)c+=r[d++],d=d%e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),l-a{const i=s.loaded,a=s.lengthComputable?s.total:void 0,o=i-r,u=n(o),l=i<=a;r=i;const h={loaded:i,total:a,progress:a?i/a:void 0,bytes:o,rate:u||void 0,estimated:u&&a&&l?(a-i)/u:void 0,event:s};h[t?"download":"upload"]=!0,e(h)}}const iw=typeof XMLHttpRequest!="undefined",aw=iw&&function(e){return new Promise(function(r,n){let s=e.data;const i=Wr.from(e.headers).normalize(),a=e.responseType;let o;function u(){e.cancelToken&&e.cancelToken.unsubscribe(o),e.signal&&e.signal.removeEventListener("abort",o)}z.isFormData(s)&&(vr.isStandardBrowserEnv||vr.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.setContentType("multipart/form-data;",!1));let l=new XMLHttpRequest;if(e.auth){const f=e.auth.username||"",p=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(f+":"+p))}const h=T0(e.baseURL,e.url);l.open(e.method.toUpperCase(),k0(h,e.params,e.paramsSerializer),!0),l.timeout=e.timeout;function d(){if(!l)return;const f=Wr.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders()),g={data:!a||a==="text"||a==="json"?l.responseText:l.response,status:l.status,statusText:l.statusText,headers:f,config:e,request:l};Z2(function(y){r(y),u()},function(y){n(y),u()},g),l=null}if("onloadend"in l?l.onloadend=d:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(d)},l.onabort=function(){l&&(n(new $e("Request aborted",$e.ECONNABORTED,e,l)),l=null)},l.onerror=function(){n(new $e("Network Error",$e.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){let p=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const g=e.transitional||A0;e.timeoutErrorMessage&&(p=e.timeoutErrorMessage),n(new $e(p,g.clarifyTimeoutError?$e.ETIMEDOUT:$e.ECONNABORTED,e,l)),l=null},vr.isStandardBrowserEnv){const f=(e.withCredentials||rw(h))&&e.xsrfCookieName&&Q2.read(e.xsrfCookieName);f&&i.set(e.xsrfHeaderName,f)}s===void 0&&i.setContentType(null),"setRequestHeader"in l&&z.forEach(i.toJSON(),function(p,g){l.setRequestHeader(g,p)}),z.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),a&&a!=="json"&&(l.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&l.addEventListener("progress",If(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",If(e.onUploadProgress)),(e.cancelToken||e.signal)&&(o=f=>{l&&(n(!f||f.type?new ua(null,e,l):f),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(o),e.signal&&(e.signal.aborted?o():e.signal.addEventListener("abort",o)));const c=nw(h);if(c&&vr.protocols.indexOf(c)===-1){n(new $e("Unsupported protocol "+c+":",$e.ERR_BAD_REQUEST,e));return}l.send(s||null)})},Va={http:O2,xhr:aw};z.forEach(Va,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(r){}Object.defineProperty(e,"adapterName",{value:t})}});const F0={getAdapter:e=>{e=z.isArray(e)?e:[e];const{length:t}=e;let r,n;for(let s=0;se instanceof Wr?e.toJSON():e;function Zs(e,t){t=t||{};const r={};function n(l,h,d){return z.isPlainObject(l)&&z.isPlainObject(h)?z.merge.call({caseless:d},l,h):z.isPlainObject(h)?z.merge({},h):z.isArray(h)?h.slice():h}function s(l,h,d){if(z.isUndefined(h)){if(!z.isUndefined(l))return n(void 0,l,d)}else return n(l,h,d)}function i(l,h){if(!z.isUndefined(h))return n(void 0,h)}function a(l,h){if(z.isUndefined(h)){if(!z.isUndefined(l))return n(void 0,l)}else return n(void 0,h)}function o(l,h,d){if(d in t)return n(l,h);if(d in e)return n(void 0,l)}const u={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:o,headers:(l,h)=>s(Nf(l),Nf(h),!0)};return z.forEach(Object.keys(Object.assign({},e,t)),function(h){const d=u[h]||s,c=d(e[h],t[h],h);z.isUndefined(c)&&d!==o||(r[h]=c)}),r}const O0="1.5.0",pc={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{pc[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Mf={};pc.transitional=function(t,r,n){function s(i,a){return"[Axios v"+O0+"] Transitional option '"+i+"'"+a+(n?". "+n:"")}return(i,a,o)=>{if(t===!1)throw new $e(s(a," has been removed"+(r?" in "+r:"")),$e.ERR_DEPRECATED);return r&&!Mf[a]&&(Mf[a]=!0,console.warn(s(a," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(i,a,o):!0}};function ow(e,t,r){if(typeof e!="object")throw new $e("options must be an object",$e.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let s=n.length;for(;s-- >0;){const i=n[s],a=t[i];if(a){const o=e[i],u=o===void 0||a(o,i,e);if(u!==!0)throw new $e("option "+i+" must be "+u,$e.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new $e("Unknown option "+i,$e.ERR_BAD_OPTION)}}const yl={assertOptions:ow,validators:pc},pn=yl.validators;let ro=class{constructor(t){this.defaults=t,this.interceptors={request:new Ff,response:new Ff}}request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Zs(this.defaults,r);const{transitional:n,paramsSerializer:s,headers:i}=r;n!==void 0&&yl.assertOptions(n,{silentJSONParsing:pn.transitional(pn.boolean),forcedJSONParsing:pn.transitional(pn.boolean),clarifyTimeoutError:pn.transitional(pn.boolean)},!1),s!=null&&(z.isFunction(s)?r.paramsSerializer={serialize:s}:yl.assertOptions(s,{encode:pn.function,serialize:pn.function},!0)),r.method=(r.method||this.defaults.method||"get").toLowerCase();let a=i&&z.merge(i.common,i[r.method]);i&&z.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),r.headers=Wr.concat(a,i);const o=[];let u=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(r)===!1||(u=u&&g.synchronous,o.unshift(g.fulfilled,g.rejected))});const l=[];this.interceptors.response.forEach(function(g){l.push(g.fulfilled,g.rejected)});let h,d=0,c;if(!u){const p=[Rf.bind(this),void 0];for(p.unshift.apply(p,o),p.push.apply(p,l),c=p.length,h=Promise.resolve(r);d{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](s);n._listeners=null}),this.promise.then=s=>{let i;const a=new Promise(o=>{n.subscribe(o),i=o}).then(s);return a.cancel=function(){n.unsubscribe(i)},a},t(function(i,a,o){n.reason||(n.reason=new ua(i,a,o),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}static source(){let t;return{token:new I0(function(s){t=s}),cancel:t}}};const lw=uw;function cw(e){return function(r){return e.apply(null,r)}}function hw(e){return z.isObject(e)&&e.isAxiosError===!0}const bl={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(bl).forEach(([e,t])=>{bl[t]=e});const fw=bl;function R0(e){const t=new Ua(e),r=p0(Ua.prototype.request,t);return z.extend(r,Ua.prototype,t,{allOwnKeys:!0}),z.extend(r,t,null,{allOwnKeys:!0}),r.create=function(s){return R0(Zs(e,s))},r}const pt=R0(dc);pt.Axios=Ua;pt.CanceledError=ua;pt.CancelToken=lw;pt.isCancel=D0;pt.VERSION=O0;pt.toFormData=Vo;pt.AxiosError=$e;pt.Cancel=pt.CanceledError;pt.all=function(t){return Promise.all(t)};pt.spread=cw;pt.isAxiosError=hw;pt.mergeConfig=Zs;pt.AxiosHeaders=Wr;pt.formToJSON=e=>P0(z.isHTMLForm(e)?new FormData(e):e);pt.getAdapter=F0.getAdapter;pt.HttpStatusCode=fw;pt.default=pt;const qo=pt,{Axios:dw,AxiosError:pw,CanceledError:gw,isCancel:mw,CancelToken:vw,VERSION:yw,all:bw,Cancel:ww,isAxiosError:xw,spread:_w,toFormData:Sw,AxiosHeaders:Ew,HttpStatusCode:Cw,formToJSON:kw,getAdapter:Aw,mergeConfig:Pw}=qo,Dw=Object.freeze(Object.defineProperty({__proto__:null,Axios:dw,AxiosError:pw,AxiosHeaders:Ew,Cancel:ww,CancelToken:vw,CanceledError:gw,HttpStatusCode:Cw,VERSION:yw,all:bw,default:qo,formToJSON:kw,getAdapter:Aw,isAxiosError:xw,isCancel:mw,mergeConfig:Pw,spread:_w,toFormData:Sw},Symbol.toStringTag,{value:"Module"})),Tw=d0(Dw);Object.defineProperty(Xs,"__esModule",{value:!0});Xs.getRequestHeaders=Xs.getAxiosClient=void 0;var Fw=Tw;function Ow(e,t,r,n){return Fw.default.create({baseURL:e,headers:N0(t,n,r),withCredentials:!0})}Xs.getAxiosClient=Ow;function N0(e,t,r){e===void 0&&(e=!1);var n={Accept:"application/json","Content-Type":"application/json; charset=utf-8"};return e&&t&&r&&(n.Authorization="".concat(t," ").concat(r())),typeof window!="undefined"&&typeof document!="undefined"&&(window.location&&(n["X-Frappe-Site-Name"]=window.location.hostname),window.csrf_token&&window.csrf_token!=="{{ csrf_token }}"&&(n["X-Frappe-CSRF-Token"]=window.csrf_token)),n}Xs.getRequestHeaders=N0;var Bf;function Iw(){if(Bf)return mi;Bf=1,Object.defineProperty(mi,"__esModule",{value:!0}),mi.FrappeApp=void 0;var e=M0(),t=sa,r=ia,n=aa,s=Xs,i=function(){function a(o,u,l){var h,d;this.url=o,this.name=l!=null?l:"FrappeApp",this.useToken=(h=u==null?void 0:u.useToken)!==null&&h!==void 0?h:!1,this.token=u==null?void 0:u.token,this.tokenType=(d=u==null?void 0:u.type)!==null&&d!==void 0?d:"Bearer",this.axios=(0,s.getAxiosClient)(this.url,this.useToken,this.token,this.tokenType)}return a.prototype.auth=function(){return new e.FrappeAuth(this.url,this.axios,this.useToken,this.token,this.tokenType)},a.prototype.db=function(){return new r.FrappeDB(this.url,this.axios,this.useToken,this.token,this.tokenType)},a.prototype.file=function(){return new n.FrappeFileUpload(this.url,this.axios,this.useToken,this.token,this.tokenType)},a.prototype.call=function(){return new t.FrappeCall(this.url,this.axios,this.useToken,this.token,this.tokenType)},a}();return mi.FrappeApp=i,mi}var Ko={},Dr=Ye&&Ye.__assign||function(){return Dr=Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&i[i.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]>>0,n;for(n=0;n0)for(r=0;r=0;return(i?r?"+":"":"-")+Math.pow(10,Math.max(0,s)).toString().substr(1)+n}var bc=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Fa=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ju={},Hs={};function ve(e,t,r,n){var s=n;typeof n=="string"&&(s=function(){return this[n]()}),e&&(Hs[e]=s),t&&(Hs[t[0]]=function(){return Mr(s.apply(this,arguments),t[1],t[2])}),r&&(Hs[r]=function(){return this.localeData().ordinal(s.apply(this,arguments),e)})}function qw(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Kw(e){var t=e.match(bc),r,n;for(r=0,n=t.length;r=0&&Fa.test(e);)e=e.replace(Fa,n),Fa.lastIndex=0,r-=1;return e}var Yw={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function zw(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match(bc).map(function(n){return n==="MMMM"||n==="MM"||n==="DD"||n==="dddd"?n.slice(1):n}).join(""),this._longDateFormat[e])}var Ww="Invalid date";function Gw(){return this._invalidDate}var Jw="%d",Xw=/\d{1,2}/;function Zw(e){return this._ordinal.replace("%d",e)}var Qw={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function ex(e,t,r,n){var s=this._relativeTime[r];return Hr(s)?s(e,t,r,n):s.replace(/%d/i,e)}function tx(e,t){var r=this._relativeTime[e>0?"future":"past"];return Hr(r)?r(t):r.replace(/%s/i,t)}var Fi={};function Ft(e,t){var r=e.toLowerCase();Fi[r]=Fi[r+"s"]=Fi[t]=e}function ur(e){return typeof e=="string"?Fi[e]||Fi[e.toLowerCase()]:void 0}function wc(e){var t={},r,n;for(n in e)je(e,n)&&(r=ur(n),r&&(t[r]=e[n]));return t}var U0={};function Ot(e,t){U0[e]=t}function rx(e){var t=[],r;for(r in e)je(e,r)&&t.push({unit:r,priority:U0[r]});return t.sort(function(n,s){return n.priority-s.priority}),t}function zo(e){return e%4===0&&e%100!==0||e%400===0}function Qt(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Te(e){var t=+e,r=0;return t!==0&&isFinite(t)&&(r=Qt(t)),r}function ai(e,t){return function(r){return r!=null?(q0(this,e,r),oe.updateOffset(this,t),this):no(this,e)}}function no(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function q0(e,t,r){e.isValid()&&!isNaN(r)&&(t==="FullYear"&&zo(e.year())&&e.month()===1&&e.date()===29?(r=Te(r),e._d["set"+(e._isUTC?"UTC":"")+t](r,e.month(),Qo(r,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](r))}function nx(e){return e=ur(e),Hr(this[e])?this[e]():this}function sx(e,t){if(typeof e=="object"){e=wc(e);var r=rx(e),n,s=r.length;for(n=0;n68?1900:2e3)};var eg=ai("FullYear",!0);function Sx(){return zo(this.year())}function Ex(e,t,r,n,s,i,a){var o;return e<100&&e>=0?(o=new Date(e+400,t,r,n,s,i,a),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,r,n,s,i,a),o}function Ji(e){var t,r;return e<100&&e>=0?(r=Array.prototype.slice.call(arguments),r[0]=e+400,t=new Date(Date.UTC.apply(null,r)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function io(e,t,r){var n=7+t-r,s=(7+Ji(e,0,n).getUTCDay()-t)%7;return-s+n-1}function tg(e,t,r,n,s){var i=(7+r-n)%7,a=io(e,n,s),o=1+7*(t-1)+i+a,u,l;return o<=0?(u=e-1,l=Oi(u)+o):o>Oi(e)?(u=e+1,l=o-Oi(e)):(u=e,l=o),{year:u,dayOfYear:l}}function Xi(e,t,r){var n=io(e.year(),t,r),s=Math.floor((e.dayOfYear()-n-1)/7)+1,i,a;return s<1?(a=e.year()-1,i=s+Gr(a,t,r)):s>Gr(e.year(),t,r)?(i=s-Gr(e.year(),t,r),a=e.year()+1):(a=e.year(),i=s),{week:i,year:a}}function Gr(e,t,r){var n=io(e,t,r),s=io(e+1,t,r);return(Oi(e)-n+s)/7}ve("w",["ww",2],"wo","week");ve("W",["WW",2],"Wo","isoWeek");Ft("week","w");Ft("isoWeek","W");Ot("week",5);Ot("isoWeek",5);ce("w",nt);ce("ww",nt,Jt);ce("W",nt);ce("WW",nt,Jt);fa(["w","ww","W","WW"],function(e,t,r,n){t[n.substr(0,1)]=Te(e)});function Cx(e){return Xi(e,this._week.dow,this._week.doy).week}var kx={dow:0,doy:6};function Ax(){return this._week.dow}function Px(){return this._week.doy}function Dx(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function Tx(e){var t=Xi(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}ve("d",0,"do","day");ve("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});ve("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});ve("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});ve("e",0,0,"weekday");ve("E",0,0,"isoWeekday");Ft("day","d");Ft("weekday","e");Ft("isoWeekday","E");Ot("day",11);Ot("weekday",11);Ot("isoWeekday",11);ce("d",nt);ce("e",nt);ce("E",nt);ce("dd",function(e,t){return t.weekdaysMinRegex(e)});ce("ddd",function(e,t){return t.weekdaysShortRegex(e)});ce("dddd",function(e,t){return t.weekdaysRegex(e)});fa(["dd","ddd","dddd"],function(e,t,r,n){var s=r._locale.weekdaysParse(e,n,r._strict);s!=null?t.d=s:Ae(r).invalidWeekday=e});fa(["d","e","E"],function(e,t,r,n){t[n]=Te(e)});function Fx(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function Ox(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Sc(e,t){return e.slice(t,7).concat(e.slice(0,t))}var Ix="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),rg="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Rx="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Nx=ha,Mx=ha,Bx=ha;function $x(e,t){var r=xr(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?Sc(r,this._week.dow):e?r[e.day()]:r}function Hx(e){return e===!0?Sc(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function jx(e){return e===!0?Sc(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Lx(e,t,r){var n,s,i,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)i=$r([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(i,"").toLocaleLowerCase();return r?t==="dddd"?(s=ut.call(this._weekdaysParse,a),s!==-1?s:null):t==="ddd"?(s=ut.call(this._shortWeekdaysParse,a),s!==-1?s:null):(s=ut.call(this._minWeekdaysParse,a),s!==-1?s:null):t==="dddd"?(s=ut.call(this._weekdaysParse,a),s!==-1||(s=ut.call(this._shortWeekdaysParse,a),s!==-1)?s:(s=ut.call(this._minWeekdaysParse,a),s!==-1?s:null)):t==="ddd"?(s=ut.call(this._shortWeekdaysParse,a),s!==-1||(s=ut.call(this._weekdaysParse,a),s!==-1)?s:(s=ut.call(this._minWeekdaysParse,a),s!==-1?s:null)):(s=ut.call(this._minWeekdaysParse,a),s!==-1||(s=ut.call(this._weekdaysParse,a),s!==-1)?s:(s=ut.call(this._shortWeekdaysParse,a),s!==-1?s:null))}function Vx(e,t,r){var n,s,i;if(this._weekdaysParseExact)return Lx.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(s=$r([2e3,1]).day(n),r&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(s,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(s,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(s,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(i="^"+this.weekdays(s,"")+"|^"+this.weekdaysShort(s,"")+"|^"+this.weekdaysMin(s,""),this._weekdaysParse[n]=new RegExp(i.replace(".",""),"i")),r&&t==="dddd"&&this._fullWeekdaysParse[n].test(e))return n;if(r&&t==="ddd"&&this._shortWeekdaysParse[n].test(e))return n;if(r&&t==="dd"&&this._minWeekdaysParse[n].test(e))return n;if(!r&&this._weekdaysParse[n].test(e))return n}}function Ux(e){if(!this.isValid())return e!=null?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return e!=null?(e=Fx(e,this.localeData()),this.add(e-t,"d")):t}function qx(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function Kx(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=Ox(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function Yx(e){return this._weekdaysParseExact?(je(this,"_weekdaysRegex")||Ec.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(je(this,"_weekdaysRegex")||(this._weekdaysRegex=Nx),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function zx(e){return this._weekdaysParseExact?(je(this,"_weekdaysRegex")||Ec.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(je(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Mx),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Wx(e){return this._weekdaysParseExact?(je(this,"_weekdaysRegex")||Ec.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(je(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Bx),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Ec(){function e(h,d){return d.length-h.length}var t=[],r=[],n=[],s=[],i,a,o,u,l;for(i=0;i<7;i++)a=$r([2e3,1]).day(i),o=Kt(this.weekdaysMin(a,"")),u=Kt(this.weekdaysShort(a,"")),l=Kt(this.weekdays(a,"")),t.push(o),r.push(u),n.push(l),s.push(o),s.push(u),s.push(l);t.sort(e),r.sort(e),n.sort(e),s.sort(e),this._weekdaysRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Cc(){return this.hours()%12||12}function Gx(){return this.hours()||24}ve("H",["HH",2],0,"hour");ve("h",["hh",2],0,Cc);ve("k",["kk",2],0,Gx);ve("hmm",0,0,function(){return""+Cc.apply(this)+Mr(this.minutes(),2)});ve("hmmss",0,0,function(){return""+Cc.apply(this)+Mr(this.minutes(),2)+Mr(this.seconds(),2)});ve("Hmm",0,0,function(){return""+this.hours()+Mr(this.minutes(),2)});ve("Hmmss",0,0,function(){return""+this.hours()+Mr(this.minutes(),2)+Mr(this.seconds(),2)});function ng(e,t){ve(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}ng("a",!0);ng("A",!1);Ft("hour","h");Ot("hour",13);function sg(e,t){return t._meridiemParse}ce("a",sg);ce("A",sg);ce("H",nt);ce("h",nt);ce("k",nt);ce("HH",nt,Jt);ce("hh",nt,Jt);ce("kk",nt,Jt);ce("hmm",z0);ce("hmmss",W0);ce("Hmm",z0);ce("Hmmss",W0);Ge(["H","HH"],mt);Ge(["k","kk"],function(e,t,r){var n=Te(e);t[mt]=n===24?0:n});Ge(["a","A"],function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e});Ge(["h","hh"],function(e,t,r){t[mt]=Te(e),Ae(r).bigHour=!0});Ge("hmm",function(e,t,r){var n=e.length-2;t[mt]=Te(e.substr(0,n)),t[yr]=Te(e.substr(n)),Ae(r).bigHour=!0});Ge("hmmss",function(e,t,r){var n=e.length-4,s=e.length-2;t[mt]=Te(e.substr(0,n)),t[yr]=Te(e.substr(n,2)),t[zr]=Te(e.substr(s)),Ae(r).bigHour=!0});Ge("Hmm",function(e,t,r){var n=e.length-2;t[mt]=Te(e.substr(0,n)),t[yr]=Te(e.substr(n))});Ge("Hmmss",function(e,t,r){var n=e.length-4,s=e.length-2;t[mt]=Te(e.substr(0,n)),t[yr]=Te(e.substr(n,2)),t[zr]=Te(e.substr(s))});function Jx(e){return(e+"").toLowerCase().charAt(0)==="p"}var Xx=/[ap]\.?m?\.?/i,Zx=ai("Hours",!0);function Qx(e,t,r){return e>11?r?"pm":"PM":r?"am":"AM"}var ig={calendar:Vw,longDateFormat:Yw,invalidDate:Ww,ordinal:Jw,dayOfMonthOrdinalParse:Xw,relativeTime:Qw,months:dx,monthsShort:G0,week:kx,weekdays:Ix,weekdaysMin:Rx,weekdaysShort:rg,meridiemParse:Xx},it={},yi={},Zi;function e_(e,t){var r,n=Math.min(e.length,t.length);for(r=0;r0;){if(s=eu(i.slice(0,r).join("-")),s)return s;if(n&&n.length>=r&&e_(i,n)>=r-1)break;r--}t++}return Zi}function r_(e){return e.match("^[^/\\\\]*$")!=null}function eu(e){var t=null,r;if(it[e]===void 0&&typeof module!="undefined"&&module&&module.exports&&r_(e))try{t=Zi._abbr,r=require,r("./locale/"+e),Tn(t)}catch(n){it[e]=null}return it[e]}function Tn(e,t){var r;return e&&(Bt(t)?r=sn(e):r=kc(e,t),r?Zi=r:typeof console!="undefined"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Zi._abbr}function kc(e,t){if(t!==null){var r,n=ig;if(t.abbr=e,it[e]!=null)L0("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=it[e]._config;else if(t.parentLocale!=null)if(it[t.parentLocale]!=null)n=it[t.parentLocale]._config;else if(r=eu(t.parentLocale),r!=null)n=r._config;else return yi[t.parentLocale]||(yi[t.parentLocale]=[]),yi[t.parentLocale].push({name:e,config:t}),null;return it[e]=new yc(xl(n,t)),yi[e]&&yi[e].forEach(function(s){kc(s.name,s.config)}),Tn(e),it[e]}else return delete it[e],null}function n_(e,t){if(t!=null){var r,n,s=ig;it[e]!=null&&it[e].parentLocale!=null?it[e].set(xl(it[e]._config,t)):(n=eu(e),n!=null&&(s=n._config),t=xl(s,t),n==null&&(t.abbr=e),r=new yc(t),r.parentLocale=it[e],it[e]=r),Tn(e)}else it[e]!=null&&(it[e].parentLocale!=null?(it[e]=it[e].parentLocale,e===Tn()&&Tn(e)):it[e]!=null&&delete it[e]);return it[e]}function sn(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Zi;if(!xr(e)){if(t=eu(e),t)return t;e=[e]}return t_(e)}function s_(){return _l(it)}function Ac(e){var t,r=e._a;return r&&Ae(e).overflow===-2&&(t=r[Yr]<0||r[Yr]>11?Yr:r[Or]<1||r[Or]>Qo(r[Tt],r[Yr])?Or:r[mt]<0||r[mt]>24||r[mt]===24&&(r[yr]!==0||r[zr]!==0||r[ns]!==0)?mt:r[yr]<0||r[yr]>59?yr:r[zr]<0||r[zr]>59?zr:r[ns]<0||r[ns]>999?ns:-1,Ae(e)._overflowDayOfYear&&(tOr)&&(t=Or),Ae(e)._overflowWeeks&&t===-1&&(t=cx),Ae(e)._overflowWeekday&&t===-1&&(t=hx),Ae(e).overflow=t),e}var i_=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,a_=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,o_=/Z|[+-]\d\d(?::?\d\d)?/,Oa=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Lu=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],u_=/^\/?Date\((-?\d+)/i,l_=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,c_={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function ag(e){var t,r,n=e._i,s=i_.exec(n)||a_.exec(n),i,a,o,u,l=Oa.length,h=Lu.length;if(s){for(Ae(e).iso=!0,t=0,r=l;tOi(a)||e._dayOfYear===0)&&(Ae(e)._overflowDayOfYear=!0),r=Ji(a,0,e._dayOfYear),e._a[Yr]=r.getUTCMonth(),e._a[Or]=r.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=n[t]=s[t];for(;t<7;t++)e._a[t]=n[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[mt]===24&&e._a[yr]===0&&e._a[zr]===0&&e._a[ns]===0&&(e._nextDay=!0,e._a[mt]=0),e._d=(e._useUTC?Ji:Ex).apply(null,n),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[mt]=24),e._w&&typeof e._w.d!="undefined"&&e._w.d!==i&&(Ae(e).weekdayMismatch=!0)}}function y_(e){var t,r,n,s,i,a,o,u,l;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(i=1,a=4,r=Ts(t.GG,e._a[Tt],Xi(rt(),1,4).year),n=Ts(t.W,1),s=Ts(t.E,1),(s<1||s>7)&&(u=!0)):(i=e._locale._week.dow,a=e._locale._week.doy,l=Xi(rt(),i,a),r=Ts(t.gg,e._a[Tt],l.year),n=Ts(t.w,l.week),t.d!=null?(s=t.d,(s<0||s>6)&&(u=!0)):t.e!=null?(s=t.e+i,(t.e<0||t.e>6)&&(u=!0)):s=i),n<1||n>Gr(r,i,a)?Ae(e)._overflowWeeks=!0:u!=null?Ae(e)._overflowWeekday=!0:(o=tg(r,n,s,i,a),e._a[Tt]=o.year,e._dayOfYear=o.dayOfYear)}oe.ISO_8601=function(){};oe.RFC_2822=function(){};function Dc(e){if(e._f===oe.ISO_8601){ag(e);return}if(e._f===oe.RFC_2822){og(e);return}e._a=[],Ae(e).empty=!0;var t=""+e._i,r,n,s,i,a,o=t.length,u=0,l,h;for(s=V0(e._f,e._locale).match(bc)||[],h=s.length,r=0;r0&&Ae(e).unusedInput.push(a),t=t.slice(t.indexOf(n)+n.length),u+=n.length),Hs[i]?(n?Ae(e).empty=!1:Ae(e).unusedTokens.push(i),lx(i,n,e)):e._strict&&!n&&Ae(e).unusedTokens.push(i);Ae(e).charsLeftOver=o-u,t.length>0&&Ae(e).unusedInput.push(t),e._a[mt]<=12&&Ae(e).bigHour===!0&&e._a[mt]>0&&(Ae(e).bigHour=void 0),Ae(e).parsedDateParts=e._a.slice(0),Ae(e).meridiem=e._meridiem,e._a[mt]=b_(e._locale,e._a[mt],e._meridiem),l=Ae(e).era,l!==null&&(e._a[Tt]=e._locale.erasConvertYear(l,e._a[Tt])),Pc(e),Ac(e)}function b_(e,t,r){var n;return r==null?t:e.meridiemHour!=null?e.meridiemHour(t,r):(e.isPM!=null&&(n=e.isPM(r),n&&t<12&&(t+=12),!n&&t===12&&(t=0)),t)}function w_(e){var t,r,n,s,i,a,o=!1,u=e._f.length;if(u===0){Ae(e).invalidFormat=!0,e._d=new Date(NaN);return}for(s=0;sthis?this:e:Yo()});function cg(e,t){var r,n;if(t.length===1&&xr(t[0])&&(t=t[0]),!t.length)return rt();for(r=t[0],n=1;nthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function L_(){if(!Bt(this._isDSTShifted))return this._isDSTShifted;var e={},t;return vc(e,this),e=ug(e),e._a?(t=e._isUTC?$r(e._a):rt(e._a),this._isDSTShifted=this.isValid()&&O_(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function V_(){return this.isValid()?!this._isUTC:!1}function U_(){return this.isValid()?this._isUTC:!1}function fg(){return this.isValid()?this._isUTC&&this._offset===0:!1}var q_=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,K_=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function kr(e,t){var r=e,n=null,s,i,a;return Ka(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:Zr(e)||!isNaN(+e)?(r={},t?r[t]=+e:r.milliseconds=+e):(n=q_.exec(e))?(s=n[1]==="-"?-1:1,r={y:0,d:Te(n[Or])*s,h:Te(n[mt])*s,m:Te(n[yr])*s,s:Te(n[zr])*s,ms:Te(El(n[ns]*1e3))*s}):(n=K_.exec(e))?(s=n[1]==="-"?-1:1,r={y:Jn(n[2],s),M:Jn(n[3],s),w:Jn(n[4],s),d:Jn(n[5],s),h:Jn(n[6],s),m:Jn(n[7],s),s:Jn(n[8],s)}):r==null?r={}:typeof r=="object"&&("from"in r||"to"in r)&&(a=Y_(rt(r.from),rt(r.to)),r={},r.ms=a.milliseconds,r.M=a.months),i=new tu(r),Ka(e)&&je(e,"_locale")&&(i._locale=e._locale),Ka(e)&&je(e,"_isValid")&&(i._isValid=e._isValid),i}kr.fn=tu.prototype;kr.invalid=F_;function Jn(e,t){var r=e&&parseFloat(e.replace(",","."));return(isNaN(r)?0:r)*t}function Vf(e,t){var r={};return r.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(r.months,"M").isAfter(t)&&--r.months,r.milliseconds=+t-+e.clone().add(r.months,"M"),r}function Y_(e,t){var r;return e.isValid()&&t.isValid()?(t=Fc(t,e),e.isBefore(t)?r=Vf(e,t):(r=Vf(t,e),r.milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0}}function dg(e,t){return function(r,n){var s,i;return n!==null&&!isNaN(+n)&&(L0(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=r,r=n,n=i),s=kr(r,n),pg(this,s,e),this}}function pg(e,t,r,n){var s=t._milliseconds,i=El(t._days),a=El(t._months);e.isValid()&&(n=n==null?!0:n,a&&X0(e,no(e,"Month")+a*r),i&&q0(e,"Date",no(e,"Date")+i*r),s&&e._d.setTime(e._d.valueOf()+s*r),n&&oe.updateOffset(e,i||a))}var z_=dg(1,"add"),W_=dg(-1,"subtract");function gg(e){return typeof e=="string"||e instanceof String}function G_(e){return _r(e)||la(e)||gg(e)||Zr(e)||X_(e)||J_(e)||e===null||e===void 0}function J_(e){var t=ls(e)&&!gc(e),r=!1,n=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],s,i,a=n.length;for(s=0;sr.valueOf():r.valueOf()9999?qa(r,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Hr(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",qa(r,"Z")):qa(r,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function hS(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",r,n,s,i;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),r="["+e+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",s="-MM-DD[T]HH:mm:ss.SSS",i=t+'[")]',this.format(r+n+s+i)}function fS(e){e||(e=this.isUtc()?oe.defaultFormatUtc:oe.defaultFormat);var t=qa(this,e);return this.localeData().postformat(t)}function dS(e,t){return this.isValid()&&(_r(e)&&e.isValid()||rt(e).isValid())?kr({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function pS(e){return this.from(rt(),e)}function gS(e,t){return this.isValid()&&(_r(e)&&e.isValid()||rt(e).isValid())?kr({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function mS(e){return this.to(rt(),e)}function mg(e){var t;return e===void 0?this._locale._abbr:(t=sn(e),t!=null&&(this._locale=t),this)}var vg=or("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function yg(){return this._locale}var ao=1e3,js=60*ao,oo=60*js,bg=(365*400+97)*24*oo;function Ls(e,t){return(e%t+t)%t}function wg(e,t,r){return e<100&&e>=0?new Date(e+400,t,r)-bg:new Date(e,t,r).valueOf()}function xg(e,t,r){return e<100&&e>=0?Date.UTC(e+400,t,r)-bg:Date.UTC(e,t,r)}function vS(e){var t,r;if(e=ur(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?xg:wg,e){case"year":t=r(this.year(),0,1);break;case"quarter":t=r(this.year(),this.month()-this.month()%3,1);break;case"month":t=r(this.year(),this.month(),1);break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=r(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Ls(t+(this._isUTC?0:this.utcOffset()*js),oo);break;case"minute":t=this._d.valueOf(),t-=Ls(t,js);break;case"second":t=this._d.valueOf(),t-=Ls(t,ao);break}return this._d.setTime(t),oe.updateOffset(this,!0),this}function yS(e){var t,r;if(e=ur(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?xg:wg,e){case"year":t=r(this.year()+1,0,1)-1;break;case"quarter":t=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=r(this.year(),this.month()+1,1)-1;break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=oo-Ls(t+(this._isUTC?0:this.utcOffset()*js),oo)-1;break;case"minute":t=this._d.valueOf(),t+=js-Ls(t,js)-1;break;case"second":t=this._d.valueOf(),t+=ao-Ls(t,ao)-1;break}return this._d.setTime(t),oe.updateOffset(this,!0),this}function bS(){return this._d.valueOf()-(this._offset||0)*6e4}function wS(){return Math.floor(this.valueOf()/1e3)}function xS(){return new Date(this.valueOf())}function _S(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function SS(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function ES(){return this.isValid()?this.toISOString():null}function CS(){return mc(this)}function kS(){return xn({},Ae(this))}function AS(){return Ae(this).overflow}function PS(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}ve("N",0,0,"eraAbbr");ve("NN",0,0,"eraAbbr");ve("NNN",0,0,"eraAbbr");ve("NNNN",0,0,"eraName");ve("NNNNN",0,0,"eraNarrow");ve("y",["y",1],"yo","eraYear");ve("y",["yy",2],0,"eraYear");ve("y",["yyy",3],0,"eraYear");ve("y",["yyyy",4],0,"eraYear");ce("N",Oc);ce("NN",Oc);ce("NNN",Oc);ce("NNNN",HS);ce("NNNNN",jS);Ge(["N","NN","NNN","NNNN","NNNNN"],function(e,t,r,n){var s=r._locale.erasParse(e,n,r._strict);s?Ae(r).era=s:Ae(r).invalidEra=e});ce("y",oi);ce("yy",oi);ce("yyy",oi);ce("yyyy",oi);ce("yo",LS);Ge(["y","yy","yyy","yyyy"],Tt);Ge(["yo"],function(e,t,r,n){var s;r._locale._eraYearOrdinalRegex&&(s=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[Tt]=r._locale.eraYearOrdinalParse(e,s):t[Tt]=parseInt(e,10)});function DS(e,t){var r,n,s,i=this._eras||sn("en")._eras;for(r=0,n=i.length;r=0)return i[n]}function FS(e,t){var r=e.since<=e.until?1:-1;return t===void 0?oe(e.since).year():oe(e.since).year()+(t-e.offset)*r}function OS(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;ei&&(t=i),WS.call(this,e,t,r,n,s))}function WS(e,t,r,n,s){var i=tg(e,t,r,n,s),a=Ji(i.year,0,i.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}ve("Q",0,"Qo","quarter");Ft("quarter","Q");Ot("quarter",7);ce("Q",K0);Ge("Q",function(e,t){t[Yr]=(Te(e)-1)*3});function GS(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}ve("D",["DD",2],"Do","date");Ft("date","D");Ot("date",9);ce("D",nt);ce("DD",nt,Jt);ce("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});Ge(["D","DD"],Or);Ge("Do",function(e,t){t[Or]=Te(e.match(nt)[0])});var Sg=ai("Date",!0);ve("DDD",["DDDD",3],"DDDo","dayOfYear");Ft("dayOfYear","DDD");Ot("dayOfYear",4);ce("DDD",Go);ce("DDDD",Y0);Ge(["DDD","DDDD"],function(e,t,r){r._dayOfYear=Te(e)});function JS(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}ve("m",["mm",2],0,"minute");Ft("minute","m");Ot("minute",14);ce("m",nt);ce("mm",nt,Jt);Ge(["m","mm"],yr);var XS=ai("Minutes",!1);ve("s",["ss",2],0,"second");Ft("second","s");Ot("second",15);ce("s",nt);ce("ss",nt,Jt);Ge(["s","ss"],zr);var ZS=ai("Seconds",!1);ve("S",0,0,function(){return~~(this.millisecond()/100)});ve(0,["SS",2],0,function(){return~~(this.millisecond()/10)});ve(0,["SSS",3],0,"millisecond");ve(0,["SSSS",4],0,function(){return this.millisecond()*10});ve(0,["SSSSS",5],0,function(){return this.millisecond()*100});ve(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});ve(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});ve(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});ve(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});Ft("millisecond","ms");Ot("millisecond",16);ce("S",Go,K0);ce("SS",Go,Jt);ce("SSS",Go,Y0);var _n,Eg;for(_n="SSSS";_n.length<=9;_n+="S")ce(_n,oi);function QS(e,t){t[ns]=Te(("0."+e)*1e3)}for(_n="S";_n.length<=9;_n+="S")Ge(_n,QS);Eg=ai("Milliseconds",!1);ve("z",0,0,"zoneAbbr");ve("zz",0,0,"zoneName");function e5(){return this._isUTC?"UTC":""}function t5(){return this._isUTC?"Coordinated Universal Time":""}var Q=ca.prototype;Q.add=z_;Q.calendar=eS;Q.clone=tS;Q.diff=uS;Q.endOf=yS;Q.format=fS;Q.from=dS;Q.fromNow=pS;Q.to=gS;Q.toNow=mS;Q.get=nx;Q.invalidAt=AS;Q.isAfter=rS;Q.isBefore=nS;Q.isBetween=sS;Q.isSame=iS;Q.isSameOrAfter=aS;Q.isSameOrBefore=oS;Q.isValid=CS;Q.lang=vg;Q.locale=mg;Q.localeData=yg;Q.max=C_;Q.min=E_;Q.parsingFlags=kS;Q.set=sx;Q.startOf=vS;Q.subtract=W_;Q.toArray=_S;Q.toObject=SS;Q.toDate=xS;Q.toISOString=cS;Q.inspect=hS;typeof Symbol!="undefined"&&Symbol.for!=null&&(Q[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});Q.toJSON=ES;Q.toString=lS;Q.unix=wS;Q.valueOf=bS;Q.creationData=PS;Q.eraName=OS;Q.eraNarrow=IS;Q.eraAbbr=RS;Q.eraYear=NS;Q.year=eg;Q.isLeapYear=Sx;Q.weekYear=VS;Q.isoWeekYear=US;Q.quarter=Q.quarters=GS;Q.month=Z0;Q.daysInMonth=wx;Q.week=Q.weeks=Dx;Q.isoWeek=Q.isoWeeks=Tx;Q.weeksInYear=YS;Q.weeksInWeekYear=zS;Q.isoWeeksInYear=qS;Q.isoWeeksInISOWeekYear=KS;Q.date=Sg;Q.day=Q.days=Ux;Q.weekday=qx;Q.isoWeekday=Kx;Q.dayOfYear=JS;Q.hour=Q.hours=Zx;Q.minute=Q.minutes=XS;Q.second=Q.seconds=ZS;Q.millisecond=Q.milliseconds=Eg;Q.utcOffset=R_;Q.utc=M_;Q.local=B_;Q.parseZone=$_;Q.hasAlignedHourOffset=H_;Q.isDST=j_;Q.isLocal=V_;Q.isUtcOffset=U_;Q.isUtc=fg;Q.isUTC=fg;Q.zoneAbbr=e5;Q.zoneName=t5;Q.dates=or("dates accessor is deprecated. Use date instead.",Sg);Q.months=or("months accessor is deprecated. Use month instead",Z0);Q.years=or("years accessor is deprecated. Use year instead",eg);Q.zone=or("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",N_);Q.isDSTShifted=or("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",L_);function r5(e){return rt(e*1e3)}function n5(){return rt.apply(null,arguments).parseZone()}function Cg(e){return e}var Ve=yc.prototype;Ve.calendar=Uw;Ve.longDateFormat=zw;Ve.invalidDate=Gw;Ve.ordinal=Zw;Ve.preparse=Cg;Ve.postformat=Cg;Ve.relativeTime=ex;Ve.pastFuture=tx;Ve.set=Lw;Ve.eras=DS;Ve.erasParse=TS;Ve.erasConvertYear=FS;Ve.erasAbbrRegex=BS;Ve.erasNameRegex=MS;Ve.erasNarrowRegex=$S;Ve.months=mx;Ve.monthsShort=vx;Ve.monthsParse=bx;Ve.monthsRegex=_x;Ve.monthsShortRegex=xx;Ve.week=Cx;Ve.firstDayOfYear=Px;Ve.firstDayOfWeek=Ax;Ve.weekdays=$x;Ve.weekdaysMin=jx;Ve.weekdaysShort=Hx;Ve.weekdaysParse=Vx;Ve.weekdaysRegex=Yx;Ve.weekdaysShortRegex=zx;Ve.weekdaysMinRegex=Wx;Ve.isPM=Jx;Ve.meridiem=Qx;function uo(e,t,r,n){var s=sn(),i=$r().set(n,t);return s[r](i,e)}function kg(e,t,r){if(Zr(e)&&(t=e,e=void 0),e=e||"",t!=null)return uo(e,t,r,"month");var n,s=[];for(n=0;n<12;n++)s[n]=uo(e,n,r,"month");return s}function Rc(e,t,r,n){typeof e=="boolean"?(Zr(t)&&(r=t,t=void 0),t=t||""):(t=e,r=t,e=!1,Zr(t)&&(r=t,t=void 0),t=t||"");var s=sn(),i=e?s._week.dow:0,a,o=[];if(r!=null)return uo(t,(r+i)%7,n,"day");for(a=0;a<7;a++)o[a]=uo(t,(a+i)%7,n,"day");return o}function s5(e,t){return kg(e,t,"months")}function i5(e,t){return kg(e,t,"monthsShort")}function a5(e,t,r){return Rc(e,t,r,"weekdays")}function o5(e,t,r){return Rc(e,t,r,"weekdaysShort")}function u5(e,t,r){return Rc(e,t,r,"weekdaysMin")}Tn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,r=Te(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+r}});oe.lang=or("moment.lang is deprecated. Use moment.locale instead.",Tn);oe.langData=or("moment.langData is deprecated. Use moment.localeData instead.",sn);var Lr=Math.abs;function l5(){var e=this._data;return this._milliseconds=Lr(this._milliseconds),this._days=Lr(this._days),this._months=Lr(this._months),e.milliseconds=Lr(e.milliseconds),e.seconds=Lr(e.seconds),e.minutes=Lr(e.minutes),e.hours=Lr(e.hours),e.months=Lr(e.months),e.years=Lr(e.years),this}function Ag(e,t,r,n){var s=kr(t,r);return e._milliseconds+=n*s._milliseconds,e._days+=n*s._days,e._months+=n*s._months,e._bubble()}function c5(e,t){return Ag(this,e,t,1)}function h5(e,t){return Ag(this,e,t,-1)}function Uf(e){return e<0?Math.floor(e):Math.ceil(e)}function f5(){var e=this._milliseconds,t=this._days,r=this._months,n=this._data,s,i,a,o,u;return e>=0&&t>=0&&r>=0||e<=0&&t<=0&&r<=0||(e+=Uf(kl(r)+t)*864e5,t=0,r=0),n.milliseconds=e%1e3,s=Qt(e/1e3),n.seconds=s%60,i=Qt(s/60),n.minutes=i%60,a=Qt(i/60),n.hours=a%24,t+=Qt(a/24),u=Qt(Pg(t)),r+=u,t-=Uf(kl(u)),o=Qt(r/12),r%=12,n.days=t,n.months=r,n.years=o,this}function Pg(e){return e*4800/146097}function kl(e){return e*146097/4800}function d5(e){if(!this.isValid())return NaN;var t,r,n=this._milliseconds;if(e=ur(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+n/864e5,r=this._months+Pg(t),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(kl(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return t*24+n/36e5;case"minute":return t*1440+n/6e4;case"second":return t*86400+n/1e3;case"millisecond":return Math.floor(t*864e5)+n;default:throw new Error("Unknown unit "+e)}}function p5(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+Te(this._months/12)*31536e6:NaN}function an(e){return function(){return this.as(e)}}var g5=an("ms"),m5=an("s"),v5=an("m"),y5=an("h"),b5=an("d"),w5=an("w"),x5=an("M"),_5=an("Q"),S5=an("y");function E5(){return kr(this)}function C5(e){return e=ur(e),this.isValid()?this[e+"s"]():NaN}function ps(e){return function(){return this.isValid()?this._data[e]:NaN}}var k5=ps("milliseconds"),A5=ps("seconds"),P5=ps("minutes"),D5=ps("hours"),T5=ps("days"),F5=ps("months"),O5=ps("years");function I5(){return Qt(this.days()/7)}var Ur=Math.round,Is={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function R5(e,t,r,n,s){return s.relativeTime(t||1,!!r,e,n)}function N5(e,t,r,n){var s=kr(e).abs(),i=Ur(s.as("s")),a=Ur(s.as("m")),o=Ur(s.as("h")),u=Ur(s.as("d")),l=Ur(s.as("M")),h=Ur(s.as("w")),d=Ur(s.as("y")),c=i<=r.ss&&["s",i]||i0,c[4]=n,R5.apply(null,c)}function M5(e){return e===void 0?Ur:typeof e=="function"?(Ur=e,!0):!1}function B5(e,t){return Is[e]===void 0?!1:t===void 0?Is[e]:(Is[e]=t,e==="s"&&(Is.ss=t-1),!0)}function $5(e,t){if(!this.isValid())return this.localeData().invalidDate();var r=!1,n=Is,s,i;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(r=e),typeof t=="object"&&(n=Object.assign({},Is,t),t.s!=null&&t.ss==null&&(n.ss=t.s-1)),s=this.localeData(),i=N5(this,!r,n,s),r&&(i=s.pastFuture(+this,i)),s.postformat(i)}var Vu=Math.abs;function ks(e){return(e>0)-(e<0)||+e}function nu(){if(!this.isValid())return this.localeData().invalidDate();var e=Vu(this._milliseconds)/1e3,t=Vu(this._days),r=Vu(this._months),n,s,i,a,o=this.asSeconds(),u,l,h,d;return o?(n=Qt(e/60),s=Qt(n/60),e%=60,n%=60,i=Qt(r/12),r%=12,a=e?e.toFixed(3).replace(/\.?0+$/,""):"",u=o<0?"-":"",l=ks(this._months)!==ks(o)?"-":"",h=ks(this._days)!==ks(o)?"-":"",d=ks(this._milliseconds)!==ks(o)?"-":"",u+"P"+(i?l+i+"Y":"")+(r?l+r+"M":"")+(t?h+t+"D":"")+(s||n||e?"T":"")+(s?d+s+"H":"")+(n?d+n+"M":"")+(e?d+a+"S":"")):"P0D"}var Ne=tu.prototype;Ne.isValid=T_;Ne.abs=l5;Ne.add=c5;Ne.subtract=h5;Ne.as=d5;Ne.asMilliseconds=g5;Ne.asSeconds=m5;Ne.asMinutes=v5;Ne.asHours=y5;Ne.asDays=b5;Ne.asWeeks=w5;Ne.asMonths=x5;Ne.asQuarters=_5;Ne.asYears=S5;Ne.valueOf=p5;Ne._bubble=f5;Ne.clone=E5;Ne.get=C5;Ne.milliseconds=k5;Ne.seconds=A5;Ne.minutes=P5;Ne.hours=D5;Ne.days=T5;Ne.weeks=I5;Ne.months=F5;Ne.years=O5;Ne.humanize=$5;Ne.toISOString=nu;Ne.toString=nu;Ne.toJSON=nu;Ne.locale=mg;Ne.localeData=yg;Ne.toIsoString=or("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",nu);Ne.lang=vg;ve("X",0,0,"unix");ve("x",0,0,"valueOf");ce("x",Xo);ce("X",ax);Ge("X",function(e,t,r){r._d=new Date(parseFloat(e)*1e3)});Ge("x",function(e,t,r){r._d=new Date(Te(e))});//! moment.js -oe.version="2.29.4";Hw(rt);oe.fn=Q;oe.min=k_;oe.max=A_;oe.now=P_;oe.utc=$r;oe.unix=r5;oe.months=s5;oe.isDate=la;oe.locale=Tn;oe.invalid=Yo;oe.duration=kr;oe.isMoment=_r;oe.weekdays=a5;oe.parseZone=n5;oe.localeData=sn;oe.isDuration=Ka;oe.monthsShort=i5;oe.weekdaysMin=u5;oe.defineLocale=kc;oe.updateLocale=n_;oe.locales=s_;oe.weekdaysShort=o5;oe.normalizeUnits=ur;oe.relativeTimeRounding=M5;oe.relativeTimeThreshold=B5;oe.calendarFormat=Q_;oe.prototype=Q;oe.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const Bn=Cr("alert",{state:()=>({auth:jt(),okButtonClicked:!1}),actions:{createAlert(e,t,r){return new Promise(n=>{const s=document.createElement("div");s.classList.add("fixed","inset-0","z-50","bg-black","opacity-50","backdrop-blur-md"),document.body.appendChild(s);const i=document.createElement("div");i.classList.add("fixed","top-10","left-1/2","-translate-x-1/2","z-50","transform","bg-white","p-6","rounded-lg","shadow-lg"),i.style.maxWidth="80%",document.body.appendChild(i);const a=document.createElement("div");a.innerHTML=` -

${e}

-
- -

${t}

- - `,i.appendChild(a),a.querySelector("button").addEventListener("click",()=>{i.remove(),s.remove(),n(),this.auth.isPosOpen===!1&&this.auth.isPosOpenChecking(),this.okButtonClicked=!0})})}}}),su=Cr("customers",{state:()=>({customer:[],notification:na(),search:"",alert:Bn(),showCustomers:!1,numberOfPax:"",selectedCustomerName:"",customerFavouriteItems:[],showModalNewCustomer:!1,newCustomerMobileNo:"",newCustomer:"",showCustomersGroup:!1,showCustomersTerritory:!1,showAddNewCustomer:!0,customerTerritoryList:[],customerTerritory:null,customerGroupList:[],customerGroup:null,call:Dt.call(),db:Dt.db()}),getters:{isFlagSet(){return this.customer.length===0}},actions:{pickCustomer(){return Se(this,null,function*(){const e={text:this.search,doctype:"Customer",limit:5};this.call.get("frappe.utils.global_search.search",e).then(t=>{this.customer=t.message}).catch(t=>console.error(t))})},handleSearchInput(e){this.search=e.target.value,this.pickCustomer()},pickCustomerGroup(){this.db.getDocList("Customer Group").then(e=>{this.customerGroupList=e}).catch(e=>console.error(e))},selectCustomerGroup(e){this.customerGroup=e.name,this.showCustomersGroup=!1},pickCustomerTerritory(){this.db.getDocList("Territory").then(e=>{this.customerTerritoryList=e}).catch(e=>console.error(e))},selectCustomerTerritory(e){this.customerTerritory=e.name,this.showCustomersTerritory=!1},newCustomerData(e){this.showModalNewCustomer=!0,!isNaN(parseFloat(e))&&isFinite(e)?this.newCustomerMobileNo=e:typeof e=="string"?this.newCustomer=e:this.alert.createAlert("Message","Invalid Customer","OK")},addNewCustomer:function(){return Se(this,null,function*(){if(!this.newCustomer||!this.newCustomerMobileNo){let e=[];this.newCustomer||e.push("Customer Name"),this.newCustomerMobileNo||e.push("Mobile Number"),this.customerGroup||e.push("Customer Group"),this.customerTerritory||e.push("Territory");const t="Following fields have missing values: "+e.join(", ");this.alert.createAlert("Message",t,"OK")}else this.showAddNewCustomer=!1,Dt.db().createDoc("Customer",{customer_name:this.newCustomer,mobile_number:this.newCustomerMobileNo.toString(),customer_group:this.customerGroup,territory:this.customerTerritory}).then(t=>{this.search=t.name,this.notification.createNotification("New Customer Created"),this.showModalNewCustomer=!1}).catch(t=>{const r=JSON.parse(t._server_messages),s=JSON.parse(r[0]).message;this.alert.createAlert("Message",s,"OK")})})},extractName(e){if(e){const t=e.indexOf("Mobile Number :");if(t!==-1){const r=e.indexOf("|||",t);if(r!==-1)return e.substring(t,r).trim()}}return""},selectCustomer(e){return Se(this,null,function*(){this.search=e.name,this.showCustomers=!1,this.fectchCustomerFavouriteItem()})},fectchCustomerFavouriteItem(){return Se(this,null,function*(){const e=ws();e.previousOrderdCustomer?this.selectedCustomerName=e.previousOrderdCustomer:this.selectedCustomerName=this.search;const t={customer_name:this.selectedCustomerName};this.call.get("ury.ury.doctype.ury_order.ury_order.customer_favourite_item",t).then(r=>{this.customerFavouriteItems=[],r.message.forEach(n=>{this.customerFavouriteItems.push(n)})}).catch(r=>console.error(r))})}}}),Qs=Cr("recentOrders",{state:()=>({recentOrderList:[],selectedStatus:"Draft",searchOrder:"",alert:Bn(),showOrder:!1,selectedOrder:null,recentOrderListItems:[],texDetails:[],netTotal:0,grandTotal:0,notification:na(),useInvoiceDataStore:lr(),invoiceNumber:null,pastOrderdItem:[],pastOrder:[],paidAmount:0,paymentMethod:0,payments:[],modeOfPaymentName:null,restaurantTable:null,currentPage:1,perPage:10,showDialog:!1,customerNameForBilling:"",posProfile:"",table:null,isLoading:!1,showPayment:!1,isChecked:!1,modeOfPaymentList:[],setBackground:null,selectedTable:null,billAmount:0,recentWaiter:null,cancelInvoiceFlag:!1,invoicePrinted:null,editPrintedInvoice:0,cancelReason:null,call:Dt.call(),draftInvoice:null}),getters:{filteredOrders(){return this.recentOrderList.filter(e=>this.matchesSearchOrder(e))},totalPages(){return Math.ceil(this.filteredOrders.length/this.perPage)},paginatedItems(){const e=(this.currentPage-1)*this.perPage,t=e+this.perPage;return this.filteredOrders.slice(e,t)},pageNumbers(){const e=[];for(let t=1;t<=this.totalPages;t++)e.push(t);return e},total(){return this.modeOfPaymentList.reduce((e,t)=>e+(t.value||0),0)},change(){return this.billAmount-this.total}},actions:{handleStatusChange(){return Se(this,null,function*(){const e={status:this.selectedStatus};this.call.get("ury.ury_pos.api.getPosInvoice",e).then(t=>{this.recentOrderList=t.message}).catch(t=>console.error(t))})},matchesSearchOrder(e){const t=this.searchOrder.toLowerCase(),r=e.name.toLowerCase(),n=e.customer.toLowerCase();return r.includes(t)||n.includes(t)},getBadgeType(e){if(e.status==="Paid"||e.status==="Consolidated")return"green";if(e.status==="Return")return"default";if(e.status==="Draft")return"red"},getFormattedDateTime(e,t){const r=`${e} ${t}`;return oe(r,"YYYY-MM-DD HH:mm:ss.SSSSSS").format("Do MMMM, h:mma")},viewRecentOrder(e){return Se(this,null,function*(){this.netTotal=e.net_total,this.grandTotal=e.rounded_total,this.invoiceNumber=e.name,this.selectedOrder=e,this.selectedTable=e.restaurant_table;const t={invoice:this.invoiceNumber};this.call.get("ury.ury_pos.api.getPosInvoiceItems",t).then(n=>{this.recentOrderListItems=n.message[0],this.texDetails=n.message[1]}).catch(n=>console.error(n));const r={doctype:"POS Invoice",name:this.invoiceNumber};this.call.get("frappe.client.get",r).then(n=>{this.invoicePrinted=n.message.invoice_printed}).catch(n=>console.error(n)),this.showOrder=!0})},editOrder(){return Se(this,null,function*(){let e="";this.pastOrderdItem="";let t="";const r=gs();let n=r.items;this.draftInvoice=this.invoiceNumber,this.editPrintedInvoice=this.invoicePrinted,n.forEach(a=>{a.qty=""});let s=r.cart;s.splice(0,s.length);const i={doctype:"POS Invoice",name:this.draftInvoice};this.call.get("frappe.client.get",i).then(a=>{let o=a.message;this.restaurantTable=o.restaurant_table,this.pastOrderdItem=o.items,this.recentWaiter=o.waiter,t=o.customer,e=o.no_of_pax,ft.push("/Menu");const u=su();t?(u.search=t,u.numberOfPax=e,u.fectchCustomerFavouriteItem()):(u.search="",u.numberOfPax="",u.customerFavouriteItems=""),n.forEach(l=>{const h=this.pastOrderdItem&&this.pastOrderdItem.find(d=>d.item_name===l.item_name);h&&!l.qty&&(s.findIndex(f=>f.item===l.item)!==-1||(l.qty=h.qty,l.comments="",s.push(l)))})}).catch(a=>console.error(a))})},billing:function(){return Se(this,null,function*(){this.call.get("ury.ury_pos.api.getModeOfPayment").then(t=>{this.modeOfPaymentList=t.message}).catch(t=>{});const e={doctype:"POS Invoice",name:this.invoiceNumber};this.call.get("frappe.client.get",e).then(t=>{this.pastOrder=t.message,this.customerNameForBilling=this.pastOrder.customer,this.posProfile=this.pastOrder.pos_profile,this.table=this.pastOrder.restaurant_table,this.invoicePrinted===0?(this.alert.createAlert("Alert","Please Print Invoice before Payment","OK"),this.isLoading=!1):this.showPayment=!0}).catch(t=>console.error(t))})},calculatePaidAmount(e){if(this.billAmount=this.grandTotal,this.billAmount-this.total>0){e.value=this.billAmount-this.total,this.paymentMethod=e.value;let t=this.payments.findIndex(r=>r.mode_of_payment===e.mode_of_payment);if(t!==-1)this.payments[t].amount=this.paymentMethod;else{let r={mode_of_payment:e.mode_of_payment,amount:this.paymentMethod};this.payments.push(r)}}},changePaidAmount(e,t){if(this.modeOfPaymentName=e,this.paidAmount=parseFloat(t),this.paidAmount>0){let r=this.payments.findIndex(n=>n.mode_of_payment===this.modeOfPaymentName);if(r!==-1)this.payments[r].amount=this.paidAmount;else{let n={mode_of_payment:this.modeOfPaymentName,amount:this.paidAmount};this.payments.push(n)}}},makePayment:function(){return Se(this,null,function*(){this.isLoading=!0;const e={table:this.selectedTable,invoice:this.invoiceNumber,customer:this.customerNameForBilling,cashier:this.useInvoiceDataStore.cashier,payments:this.payments,pos_profile:this.posProfile};let r=this.payments.reduce((i,a)=>a.amount+i,0);this.grandTotal-r>5?(this.alert.createAlert("Message","Round Off Limit Exceeded","OK"),this.isLoading=!1):this.call.post("ury.ury.doctype.ury_order.ury_order.make_invoice",e).then(()=>{this.notification.createNotification("Payment Completed"),window.location.reload(),this.isLoading=!1}).catch(i=>{console.error(i),this.isLoading=!1;const a=JSON.parse(i._server_messages),o=JSON.parse(a[0]);this.alert.createAlert("Message",o.message,"OK").then(()=>{window.location.reload()})})})},showCancelInvoiceModal(){this.call.get("ury.ury.api.button_permission.cancel_check").then(e=>{e.message===!0?(this.cancelInvoiceFlag=!0,this.cancelReason=""):(this.alert.createAlert("Message","You don't Have Permission to Cancel ","OK"),this.cancelInvoiceFlag=!1,this.cancelReason="")}).catch(e=>{})},cancelInvoice:function(){return Se(this,null,function*(){const e={invoice_id:this.invoiceNumber,reason:this.cancelReason};this.call.post("ury.ury.doctype.ury_order.ury_order.cancel_order",e).then(()=>{this.notification.createNotification("Invoice Cancelled"),window.location.reload()}).catch(t=>console.error(t))})},toggleRecentOrders(){ft.push("/recentOrder")}}}),gs=Cr("menu",{state:()=>({items:[],cart:[],searchTerm:"",showAll:!0,showPriority:!1,currentPage:1,perPage:20,comments:"",alert:Bn(),invoiceData:lr(),auth:jt(),notification:na(),table:ws(),recentOrders:Qs(),showDialog:!1,showDialogCart:!1,quantity:"",item:[],itemComments:"",call:Dt.call()}),getters:{filteredItems(e){if(typeof e.searchTerm!="string"||e.searchTerm.trim()==="")return e.showAll?e.items:e.items.filter(t=>t.special_dish===1);{const t=e.searchTerm.toLowerCase();return e.items.filter(r=>typeof r.item_name=="string"&&typeof r.item=="string"&&(r.item_name.toLowerCase().includes(t)||r.item.toLowerCase().includes(t)))}},totalPages(){return Math.ceil(this.filteredItems.length/this.perPage)},paginatedItems(){const e=(this.currentPage-1)*this.perPage,t=e+this.perPage;return this.filteredItems.slice(e,t)},pageNumbers(){const e=[];for(let t=1;t<=this.totalPages;t++)e.push(t);return e},setColorForBilledInvoice(){if(this.recentOrders.editPrintedInvoice===0||this.auth.removeTableOrderItem===1)return"black";if(this.recentOrders.editPrintedInvoice===1||this.auth.removeTableOrderItem===0)return"gray"}},actions:{fetchItems(){const e={pos_profile:this.invoiceData.posProfile};this.call.get("ury.ury_pos.api.getRestaurantMenu",e).then(t=>{!this.auth.cashier&&this.table.tableMenu?this.items=this.table.tableMenu:this.items=t.message,this.items.forEach(r=>{r.special_dish==1&&(this.showPriority=!0)})}).catch(t=>{if(t._server_messages){const r=JSON.parse(t._server_messages),n=JSON.parse(r[0]);this.alert.createAlert("Message",n.message,"OK")}})},updateSearchTerm(){this.currentPage=1},handleSearchInput(e){this.searchTerm=e.target.value,this.updateSearchTerm()},clearSearch(e){e.target.value="",this.searchTerm="",this.showAll=!0},showAllItems(){this.showAll=!0},showSpecialItems(){this.showAll=!1},showModal(e){this.showDialog=!0,this.quantity=e.qty,this.item=e,this.itemComments=e.comment},addToCartAndUpdateQty(){const e=this.item;this.quantity!==null&&this.quantity!==void 0&&this.quantity!==""&&this.quantity>0&&(e.qty?(e.qty=this.quantity,e.comment=this.itemComments):this.$set(e,"qty",this.quantity)),this.showDialog=!1},getitemQty(e){e.qty=this.cart.qty},addToCart(e){if(!(this.cart.findIndex(n=>n.item===e.item)!==-1)){e.qty=1,e.comment="",this.cart.push(e);let n=`Added ${e.item} to Cart`;this.notification.createNotification(n)}},incrementItemQuantity(e){const t=this.cart.findIndex(a=>a.item===e.item),r=t!==-1;this.invoiceData.posProfile;const s=this.table.previousOrderdItem.find(a=>a.item_code===e.item);let i=r?this.cart[t].qty+1:1;if(s&&(i-=s.qty),r){e.comment="",this.cart[t].qty++;let a=`${e.item}'s Qty updated to ${e.qty} in Cart`;this.notification.createNotification(a)}else e.comment="",this.cart.push({item:e.item,qty:1})},decrementItemQuantity(e){const t=this.cart.findIndex(n=>n.item===e.item);if(t!==-1){this.cart[t].qty--,this.cart=this.cart.filter(s=>s.qty>0);let n=e.qty>0?`${e.item}'s Qty Reduced from Cart Total Qty=${e.qty}`:`${e.item} has been removed from Cart`;this.notification.createNotification(n)}},removeItemFromCart(e){const t=this.cart[e];t.qty=0,this.cart.splice(e,1)}}});var Dg={exports:{}};const H5={},j5=Object.freeze(Object.defineProperty({__proto__:null,default:H5},Symbol.toStringTag,{value:"Module"})),L5=d0(j5);(function(e,t){var r=function(){Array.isArray||(Array.isArray=function(a){return Object.prototype.toString.call(a)==="[object Array]"}),Number.isInteger||(Number.isInteger=function(a){return typeof a=="number"&&isFinite(a)&&Math.floor(a)===a}),typeof String.prototype.utf8Encode=="undefined"&&(String.prototype.utf8Encode=function(){return unescape(encodeURIComponent(this))}),typeof String.prototype.utf8Decode=="undefined"&&(String.prototype.utf8Decode=function(){try{return decodeURIComponent(escape(this))}catch(a){return this}});var n={VERSION:"2.2.2",DEBUG:!1,log:{trace:function(){n.DEBUG&&console.log.apply(console,arguments)},info:function(){console.info.apply(console,arguments)},warn:function(){console.warn.apply(console,arguments)},allay:function(){n.DEBUG&&console.warn.apply(console,arguments)},error:function(){console.error.apply(console,arguments)}},streams:{serial:"SERIAL",usb:"USB",hid:"HID",printer:"PRINTER",file:"FILE",socket:"SOCKET"},websocket:{connection:null,connectConfig:{host:["localhost","localhost.qz.io"],hostIndex:0,usingSecure:!0,protocol:{secure:"wss://",insecure:"ws://"},port:{secure:[8181,8282,8383,8484],insecure:[8182,8283,8384,8485],portIndex:0},keepAlive:60,retries:0,delay:0},setup:{findConnection:function(a,o,u){if(a.port.secure.length)!a.port.insecure.length&&!a.usingSecure&&(n.log.trace("No insecure ports specified - forcing secure connection"),a.usingSecure=!0);else if(a.port.insecure.length)a.usingSecure&&(n.log.error("No secure ports specified - forcing insecure connection"),a.usingSecure=!1);else{u(new Error("No ports have been specified to connect over"));return}var l=function(){if(a.port.portIndex++,a.usingSecure&&a.port.portIndex>=a.port.secure.length||!a.usingSecure&&a.port.portIndex>=a.port.insecure.length)if(a.hostIndex>=a.host.length-1){u(new Error("Unable to establish connection with QZ"));return}else a.hostIndex++,a.port.portIndex=0;n.websocket.setup.findConnection(a,o,u)},h;a.usingSecure?h=a.protocol.secure+a.host[a.hostIndex]+":"+a.port.secure[a.port.portIndex]:h=a.protocol.insecure+a.host[a.hostIndex]+":"+a.port.insecure[a.port.portIndex];try{n.log.trace("Attempting connection",h),n.websocket.connection=new n.tools.ws(h)}catch(d){n.log.error(d),l();return}n.websocket.connection!=null?(n.websocket.connection.established=!1,n.websocket.connection.onopen=function(d){if(!n.websocket.connection.established&&(n.log.trace(d),n.log.info("Established connection with QZ Tray on "+h),n.websocket.setup.openConnection({resolve:o,reject:u}),a.keepAlive>0))var c=setInterval(function(){if(!n.tools.isActive()){clearInterval(c);return}n.websocket.connection.send("ping")},a.keepAlive*1e3)},n.websocket.connection.onclose=function(){n.websocket.connection&&typeof navigator!="undefined"&&navigator.userAgent.indexOf("Safari")!=-1&&navigator.userAgent.indexOf("Chrome")==-1&&n.websocket.connection.onerror()},n.websocket.connection.onerror=function(d){n.log.trace(d),n.websocket.connection=null,l()}):u(new Error("Unable to create a websocket connection"))},openConnection:function(a){n.websocket.connection.established=!0,n.websocket.connection.onclose=function(u){n.log.trace(u),n.websocket.connection=null,n.websocket.callClose(u),n.log.info("Closed connection with QZ Tray");for(var l in n.websocket.pendingCalls)n.websocket.pendingCalls.hasOwnProperty(l)&&n.websocket.pendingCalls[l].reject(new Error("Connection closed before response received"));this.promise!=null&&this.promise.resolve()},n.websocket.connection.onerror=function(u){n.websocket.callError(u)},n.websocket.connection.sendData=function(u){n.log.trace("Preparing object for websocket",u),u.timestamp==null&&(u.timestamp=Date.now(),typeof u.timestamp!="number"&&(u.timestamp=new Date().getTime())),u.promise!=null&&(u.uid=n.websocket.setup.newUID(),n.websocket.pendingCalls[u.uid]=u.promise),u.position={x:typeof screen!="undefined"?(screen.availWidth||screen.width)/2+(screen.left||screen.availLeft||0):0,y:typeof screen!="undefined"?(screen.availHeight||screen.height)/2+(screen.top||screen.availTop||0):0};try{if(u.call!=null&&u.signature==null&&n.security.needsSigned(u.call)){var l={call:u.call,params:u.params,timestamp:u.timestamp},h=n.tools.hash(n.tools.stringify(l));h.then||(h=n.tools.promise(function(d){d(h)})),h.then(function(d){return n.security.callSign(d)}).then(function(d){n.log.trace("Signature for call",d),u.signature=d||"",u.signAlgorithm=n.security.signAlgorithm,n.signContent=void 0,n.websocket.connection.send(n.tools.stringify(u))})}else n.log.trace("Signature for call",u.signature),n.websocket.connection.send(n.tools.stringify(u))}catch(d){n.log.error(d),u.promise!=null&&(u.promise.reject(d),delete n.websocket.pendingCalls[u.uid])}},n.websocket.connection.onmessage=function(u){var l=JSON.parse(u.data);if(l.uid==null){if(l.type==null)n.websocket.connection.close(4003,"Connected to incompatible QZ Tray version");else switch(l.type){case n.streams.serial:l.event||(l.event=JSON.stringify({portName:l.key,output:l.data})),n.serial.callSerial(JSON.parse(l.event));break;case n.streams.socket:n.socket.callSocket(JSON.parse(l.event));break;case n.streams.usb:l.event||(l.event=JSON.stringify({vendorId:l.key[0],productId:l.key[1],output:l.data})),n.usb.callUsb(JSON.parse(l.event));break;case n.streams.hid:n.hid.callHid(JSON.parse(l.event));break;case n.streams.printer:n.printers.callPrinter(JSON.parse(l.event));break;case n.streams.file:n.file.callFile(JSON.parse(l.event));break;default:n.log.allay("Cannot determine stream type for callback",l);break}return}n.log.trace("Received response from websocket",l);var h=n.websocket.pendingCalls[l.uid];h==null?n.log.allay("No promise found for returned response"):l.error!=null?h.reject(new Error(l.error)):h.resolve(l.result),delete n.websocket.pendingCalls[l.uid]};function o(u){u===void 0&&(u=null),i.api.getVersion().then(function(l){n.websocket.connection.version=l,n.websocket.connection.semver=l.toLowerCase().replace(/-rc\./g,"-rc").split(/[\\+\\.-]/g);for(var h=0;h-1&&(u=!0):(a[o].format&&["HTML","IMAGE","PDF","FILE","XML"].indexOf(a[o].format.toUpperCase())>-1||a[o].type&&(["PIXEL","IMAGE","PDF"].indexOf(a[o].type.toUpperCase())>-1&&!a[o].format||["HTML","PDF"].indexOf(a[o].type.toUpperCase())>-1&&(!a[o].format||a[o].format.toUpperCase()==="FILE")))&&(u=!0),u&&(a[o].data=n.tools.absolute(a[o].data)),a[o].options&&typeof a[o].options.overlay=="string"&&(a[o].options.overlay=n.tools.absolute(a[o].options.overlay))}},extend:function(a){typeof a!="object"&&(a={});for(var o=1;o3&&h[3]!=l?Number.isInteger(h[3])&&Number.isInteger(l)?h[3]-l:h[3].toString().localeCompare(l.toString()):0}},isVersion:function(a,o,u,l){return n.tools.versionCompare(a,o,u,l)==0},isActive:function(){return n.websocket.connection!=null&&n.websocket.connection.established},assertActive:function(){if(n.tools.isActive())return!0;throw new Error("A connection to QZ has not been established yet")}},compatible:{data:function(a){if(n.tools.isVersion(2,0)){n.log.trace("Converting print data to v2.0 for "+n.websocket.connection.version);for(var o=0;o>>a|o<<32-a},_sig0:function(a){return n.SHA._rotr(2,a)^n.SHA._rotr(13,a)^n.SHA._rotr(22,a)},_sig1:function(a){return n.SHA._rotr(6,a)^n.SHA._rotr(11,a)^n.SHA._rotr(25,a)},_dev0:function(a){return n.SHA._rotr(7,a)^n.SHA._rotr(18,a)^a>>>3},_dev1:function(a){return n.SHA._rotr(17,a)^n.SHA._rotr(19,a)^a>>>10},_ch:function(a,o,u){return a&o^~a&u},_maj:function(a,o,u){return a&o^a&u^o&u},_hexStr:function(a){for(var o="",u,l=7;l>=0;l--)u=a>>>l*4&15,o+=u.toString(16);return o}}};function s(a,o){this.config=n.tools.extend({},n.printing.defaultConfig),this._dirtyOpts={},this.setPrinter=function(u){typeof u=="string"&&(u={name:u}),u&&u.file&&u.file.indexOf("\\\\")!=0&&n.log.warn("Printing to file is deprecated. See https://github.com/qzind/tray/issues/730"),this.printer=u},this.getPrinter=function(){return this.printer},this.reconfigure=function(u){for(var l in u)u[l]!==void 0&&(this._dirtyOpts[l]=!0);n.tools.extend(this.config,u)},this.getOptions=function(){return n.compatible.config(this.config,this._dirtyOpts)},this.setPrinter(a),this.reconfigure(o)}s.prototype.print=function(a,o,u){i.print(this,a,o,u)};var i={websocket:{isActive:function(){return n.tools.isActive()},connect:function(a){return n.tools.promise(function(o,u){if(n.tools.isActive()){u(new Error("An open connection with QZ Tray already exists"));return}else if(n.websocket.connection!=null){u(new Error("The current connection attempt has not returned yet"));return}if(n.tools.ws){if(!n.tools.ws.CLOSED||n.tools.ws.CLOSED==2){u(new Error("Unsupported WebSocket version detected: HyBi-00/Hixie-76"));return}}else{u(new Error("WebSocket not supported by this browser"));return}a==null&&(a={}),(typeof location=="undefined"||location.protocol!=="https:")&&typeof a.usingSecure=="undefined"&&(n.log.trace("Disabling secure ports due to insecure page"),a.usingSecure=!1),typeof a.host!="undefined"&&!Array.isArray(a.host)&&(a.host=[a.host]);var l=function(h){var d=!1,c=function(){d||(d=!0,a&&h=3&&(typeof arguments[2]=="boolean"?(u=arguments[2],arguments.length>=5&&(l=arguments[3],h=arguments[4])):arguments.length>=4&&(l=arguments[2],h=arguments[3]),l&&!Array.isArray(l)&&(l=[l]),h&&!Array.isArray(h)&&(h=[h])),Array.isArray(a)||(a=[a]),Array.isArray(o[0])||(o=[o]);for(var d=0;d=0&&(typeof o!="object"&&(o={data:o,type:"PLAIN"}),o.type&&o.type.toUpperCase()=="FILE"&&(o.data=n.tools.absolute(o.data)));var l={port:a,data:o,options:u};return n.websocket.dataPromise("serial.sendData",l)},closePort:function(a){return n.websocket.dataPromise("serial.closePort",{port:a})}},socket:{open:function(a,o,u){var l={host:a,port:o,options:u};return n.websocket.dataPromise("socket.open",l)},close:function(a,o){var u={host:a,port:o};return n.websocket.dataPromise("socket.close",u)},sendData:function(a,o,u){typeof u!="object"&&(u={data:u,type:"PLAIN"});var l={host:a,port:o,data:u};return n.websocket.dataPromise("socket.sendData",l)},setSocketCallbacks:function(a){n.socket.socketCallbacks=a}},usb:{listDevices:function(a){return n.websocket.dataPromise("usb.listDevices",{includeHubs:a})},listInterfaces:function(a){return typeof a!="object"&&(a={vendorId:arguments[0],productId:arguments[1]}),n.websocket.dataPromise("usb.listInterfaces",a)},listEndpoints:function(a){return typeof a!="object"&&(a={vendorId:arguments[0],productId:arguments[1],interface:arguments[2]}),n.websocket.dataPromise("usb.listEndpoints",a)},setUsbCallbacks:function(a){n.usb.usbCallbacks=a},claimDevice:function(a){return typeof a!="object"&&(a={vendorId:arguments[0],productId:arguments[1],interface:arguments[2]}),n.websocket.dataPromise("usb.claimDevice",a)},isClaimed:function(a){return typeof a!="object"&&(a={vendorId:arguments[0],productId:arguments[1]}),n.websocket.dataPromise("usb.isClaimed",a)},sendData:function(a){return typeof a!="object"&&(a={vendorId:arguments[0],productId:arguments[1],endpoint:arguments[2],data:arguments[3]}),n.tools.versionCompare(2,1,0,12)>=0&&(typeof a.data!="object"&&(a.data={data:a.data,type:"PLAIN"}),a.data.type&&a.data.type.toUpperCase()=="FILE"&&(a.data.data=n.tools.absolute(a.data.data))),n.websocket.dataPromise("usb.sendData",a)},readData:function(a){return typeof a!="object"&&(a={vendorId:arguments[0],productId:arguments[1],endpoint:arguments[2],responseSize:arguments[3]}),n.websocket.dataPromise("usb.readData",a)},openStream:function(a){return typeof a!="object"&&(a={vendorId:arguments[0],productId:arguments[1],endpoint:arguments[2],responseSize:arguments[3],interval:arguments[4]}),n.websocket.dataPromise("usb.openStream",a)},closeStream:function(a){return typeof a!="object"&&(a={vendorId:arguments[0],productId:arguments[1],endpoint:arguments[2]}),n.websocket.dataPromise("usb.closeStream",a)},releaseDevice:function(a){return typeof a!="object"&&(a={vendorId:arguments[0],productId:arguments[1]}),n.websocket.dataPromise("usb.releaseDevice",a)}},hid:{listDevices:function(){return n.websocket.dataPromise("hid.listDevices")},startListening:function(){return n.websocket.dataPromise("hid.startListening")},stopListening:function(){return n.websocket.dataPromise("hid.stopListening")},setHidCallbacks:function(a){n.hid.hidCallbacks=a},claimDevice:function(a){return typeof a!="object"&&(a={vendorId:arguments[0],productId:arguments[1]}),n.websocket.dataPromise("hid.claimDevice",a)},isClaimed:function(a){return typeof a!="object"&&(a={vendorId:arguments[0],productId:arguments[1]}),n.websocket.dataPromise("hid.isClaimed",a)},sendData:function(a){if(typeof a!="object"&&(a={vendorId:arguments[0],productId:arguments[1],data:arguments[2],endpoint:arguments[3]}),n.tools.versionCompare(2,1,0,12)>=0)typeof a.data!="object"&&(a.data={data:a.data,type:"PLAIN"}),a.data.type&&a.data.type.toUpperCase()=="FILE"&&(a.data.data=n.tools.absolute(a.data.data));else if(typeof a.data=="object"){if(a.data.type.toUpperCase()!=="PLAIN"||typeof a.data.data!="string")return n.tools.reject(new Error("Data format is not supported with connected QZ Tray version "+n.websocket.connection.version));a.data=a.data.data}return n.websocket.dataPromise("hid.sendData",a)},readData:function(a){return typeof a!="object"&&(a={vendorId:arguments[0],productId:arguments[1],responseSize:arguments[2]}),n.websocket.dataPromise("hid.readData",a)},sendFeatureReport:function(a){return n.websocket.dataPromise("hid.sendFeatureReport",a)},getFeatureReport:function(a){return n.websocket.dataPromise("hid.getFeatureReport",a)},openStream:function(a){return typeof a!="object"&&(a={vendorId:arguments[0],productId:arguments[1],responseSize:arguments[2],interval:arguments[3]}),n.websocket.dataPromise("hid.openStream",a)},closeStream:function(a){return typeof a!="object"&&(a={vendorId:arguments[0],productId:arguments[1]}),n.websocket.dataPromise("hid.closeStream",a)},releaseDevice:function(a){return typeof a!="object"&&(a={vendorId:arguments[0],productId:arguments[1]}),n.websocket.dataPromise("hid.releaseDevice",a)}},file:{list:function(a,o){var u=n.tools.extend({path:a},o);return n.websocket.dataPromise("file.list",u)},read:function(a,o){var u=n.tools.extend({path:a},o);return n.websocket.dataPromise("file.read",u)},write:function(a,o){var u=n.tools.extend({path:a},o);return n.websocket.dataPromise("file.write",u)},remove:function(a,o){var u=n.tools.extend({path:a},o);return n.websocket.dataPromise("file.remove",u)},startListening:function(a,o){o&&typeof o.include!="undefined"&&!Array.isArray(o.include)&&(o.include=[o.include]),o&&typeof o.exclude!="undefined"&&!Array.isArray(o.exclude)&&(o.exclude=[o.exclude]);var u=n.tools.extend({path:a},o);return n.websocket.dataPromise("file.startListening",u)},stopListening:function(a,o){var u=n.tools.extend({path:a},o);return n.websocket.dataPromise("file.stopListening",u)},setFileCallbacks:function(a){n.file.fileCallbacks=a}},networking:{device:function(a,o){return n.tools.isVersion(2,0)?n.compatible.networking(a,o,null,null,function(u){return{ip:u.ipAddress,mac:u.macAddress}}):n.websocket.dataPromise("networking.device",{hostname:a,port:o})},hostname:function(a,o){return n.tools.versionCompare(2,2,2)<0?n.tools.promise(function(u,l){n.websocket.dataPromise("networking.device",{hostname:a,port:o}).then(function(h){console.log(h),u(h.hostname)})}):n.websocket.dataPromise("networking.hostname")},devices:function(a,o){return n.tools.isVersion(2,0)?n.compatible.networking(a,o,null,null,function(u){return[{ip:u.ipAddress,mac:u.macAddress}]}):n.websocket.dataPromise("networking.devices",{hostname:a,port:o})}},security:{setCertificatePromise:function(a){n.security.certHandler=a},setSignaturePromise:function(a){n.security.signatureFactory=a},setSignatureAlgorithm:function(a){n.compatible.algorithm()&&(["SHA1","SHA256","SHA512"].indexOf(a.toUpperCase())<0?n.log.error("Signing algorithm '"+a+"' is not supported."):n.security.signAlgorithm=a)},getSignatureAlgorithm:function(){return n.security.signAlgorithm}},api:{showDebug:function(a){return n.DEBUG=a},getVersion:function(){return n.websocket.dataPromise("getVersion")},isVersion:n.tools.isVersion,isVersionGreater:function(a,o,u,l){return n.tools.versionCompare(a,o,u,l)>0},isVersionLess:function(a,o,u,l){return n.tools.versionCompare(a,o,u,l)<0},setPromiseType:function(a){n.tools.promise=a},setSha256Type:function(a){n.tools.hash=a},setWebSocketType:function(a){n.tools.ws=a}},version:n.VERSION};return i}();(function(){e.exports=r})()})(Dg);var V5=Dg.exports;const qt=f0(V5),U5="PASTE YOUR KEY HERE";var Qi={};Qi.userAgent=!1;var As={};/*! CryptoJS v3.1.2 core-fix.js - * code.google.com/p/crypto-js - * (c) 2009-2013 by Jeff Mott. All rights reserved. - * code.google.com/p/crypto-js/wiki/License - * THIS IS FIX of 'core.js' to fix Hmac issue. - * https://code.google.com/p/crypto-js/issues/detail?id=84 - * https://crypto-js.googlecode.com/svn-history/r667/branches/3.x/src/core.js - */var le=le||function(e,t){var r={},n=r.lib={},s=n.Base=function(){function c(){}return{extend:function(f){c.prototype=this;var p=new c;return f&&p.mixIn(f),p.hasOwnProperty("init")||(p.init=function(){p.$super.init.apply(this,arguments)}),p.init.prototype=p,p.$super=this,p},create:function(){var f=this.extend();return f.init.apply(f,arguments),f},init:function(){},mixIn:function(f){for(var p in f)f.hasOwnProperty(p)&&(this[p]=f[p]);f.hasOwnProperty("toString")&&(this.toString=f.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),i=n.WordArray=s.extend({init:function(c,f){c=this.words=c||[],f!=t?this.sigBytes=f:this.sigBytes=c.length*4},toString:function(c){return(c||o).stringify(this)},concat:function(c){var f=this.words,p=c.words,g=this.sigBytes,m=c.sigBytes;if(this.clamp(),g%4)for(var y=0;y>>2]>>>24-y%4*8&255;f[g+y>>>2]|=x<<24-(g+y)%4*8}else for(var y=0;y>>2]=p[y>>>2];return this.sigBytes+=m,this},clamp:function(){var c=this.words,f=this.sigBytes;c[f>>>2]&=4294967295<<32-f%4*8,c.length=e.ceil(f/4)},clone:function(){var c=s.clone.call(this);return c.words=this.words.slice(0),c},random:function(c){for(var f=[],p=0;p>>2]>>>24-m%4*8&255;g.push((y>>>4).toString(16)),g.push((y&15).toString(16))}return g.join("")},parse:function(c){for(var f=c.length,p=[],g=0;g>>3]|=parseInt(c.substr(g,2),16)<<24-g%8*4;return new i.init(p,f/2)}},u=a.Latin1={stringify:function(c){for(var f=c.words,p=c.sigBytes,g=[],m=0;m>>2]>>>24-m%4*8&255;g.push(String.fromCharCode(y))}return g.join("")},parse:function(c){for(var f=c.length,p=[],g=0;g>>2]|=(c.charCodeAt(g)&255)<<24-g%4*8;return new i.init(p,f)}},l=a.Utf8={stringify:function(c){try{return decodeURIComponent(escape(u.stringify(c)))}catch(f){throw new Error("Malformed UTF-8 data")}},parse:function(c){return u.parse(unescape(encodeURIComponent(c)))}},h=n.BufferedBlockAlgorithm=s.extend({reset:function(){this._data=new i.init,this._nDataBytes=0},_append:function(c){typeof c=="string"&&(c=l.parse(c)),this._data.concat(c),this._nDataBytes+=c.sigBytes},_process:function(c){var f=this._data,p=f.words,g=f.sigBytes,m=this.blockSize,y=m*4,x=g/y;c?x=e.ceil(x):x=e.max((x|0)-this._minBufferSize,0);var C=x*m,A=e.min(C*4,g);if(C){for(var P=0;P>>2]&255}},t.BlockCipher=o.extend({cfg:o.cfg.extend({mode:d,padding:l}),reset:function(){o.reset.call(this);var m=this.cfg,g=m.iv,m=m.mode;if(this._xformMode==this._ENC_XFORM_MODE)var y=m.createEncryptor;else y=m.createDecryptor,this._minBufferSize=1;this._mode=y.call(m,this,g&&g.words)},_doProcessBlock:function(g,m){this._mode.processBlock(g,m)},_doFinalize:function(){var g=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){g.pad(this._data,this.blockSize);var m=this._process(!0)}else m=this._process(!0),g.unpad(m);return m},blockSize:4});var h=t.CipherParams=r.extend({init:function(g){this.mixIn(g)},toString:function(g){return(g||this.formatter).stringify(this)}}),d=(f.format={}).OpenSSL={stringify:function(g){var m=g.ciphertext;return g=g.salt,(g?n.create([1398893684,1701076831]).concat(g).concat(m):m).toString(i)},parse:function(g){g=i.parse(g);var m=g.words;if(m[0]==1398893684&&m[1]==1701076831){var y=n.create(m.slice(2,4));m.splice(0,4),g.sigBytes-=16}return h.create({ciphertext:g,salt:y})}},c=t.SerializableCipher=r.extend({cfg:r.extend({format:d}),encrypt:function(g,m,y,x){x=this.cfg.extend(x);var C=g.createEncryptor(y,x);return m=C.finalize(m),C=C.cfg,h.create({ciphertext:m,key:y,iv:C.iv,algorithm:g,mode:C.mode,padding:C.padding,blockSize:g.blockSize,formatter:x.format})},decrypt:function(g,m,y,x){return x=this.cfg.extend(x),m=this._parse(m,x.format),g.createDecryptor(y,x).finalize(m.ciphertext)},_parse:function(g,m){return typeof g=="string"?m.parse(g,this):g}}),f=(f.kdf={}).OpenSSL={execute:function(g,m,y,x){return x||(x=n.random(8)),g=a.create({keySize:m+y}).compute(g,x),y=n.create(g.words.slice(m),4*y),g.sigBytes=4*m,h.create({key:g,iv:y,salt:x})}},p=t.PasswordBasedCipher=c.extend({cfg:c.cfg.extend({kdf:f}),encrypt:function(g,m,y,x){return x=this.cfg.extend(x),y=x.kdf.execute(y,g.keySize,g.ivSize),x.iv=y.iv,g=c.encrypt.call(this,g,m,y.key,x),g.mixIn(y),g},decrypt:function(g,m,y,x){return x=this.cfg.extend(x),m=this._parse(m,x.format),y=x.kdf.execute(y,g.keySize,g.ivSize,m.salt),x.iv=y.iv,c.decrypt.call(this,g,m,y.key,x)}})}();(function(){for(var e=le,t=e.lib.BlockCipher,b=e.algo,r=[],n=[],s=[],i=[],a=[],o=[],u=[],l=[],h=[],d=[],c=[],f=0;256>f;f++)c[f]=128>f?f<<1:f<<1^283;for(var p=0,g=0,f=0;256>f;f++){var m=g^g<<1^g<<2^g<<3^g<<4,m=m>>>8^m&255^99;r[p]=m,n[m]=p;var y=c[p],x=c[y],C=c[x],A=257*c[m]^16843008*m;s[p]=A<<24|A>>>8,i[p]=A<<16|A>>>16,a[p]=A<<8|A>>>24,o[p]=A,A=16843009*C^65537*x^257*y^16843008*p,u[m]=A<<24|A>>>8,l[m]=A<<16|A>>>16,h[m]=A<<8|A>>>24,d[m]=A,p?(p=y^c[c[c[C^y]]],g^=c[c[g]]):p=g=1}var P=[0,1,2,4,8,16,32,64,128,27,54],b=b.AES=t.extend({_doReset:function(){for(var w=this._key,S=w.words,_=w.sigBytes/4,w=4*((this._nRounds=_+6)+1),k=this._keySchedule=[],D=0;D>>24]<<24|r[T>>>16&255]<<16|r[T>>>8&255]<<8|r[T&255]):(T=T<<8|T>>>24,T=r[T>>>24]<<24|r[T>>>16&255]<<16|r[T>>>8&255]<<8|r[T&255],T^=P[D/_|0]<<24),k[D]=k[D-_]^T}for(S=this._invKeySchedule=[],_=0;__||4>=D?T:u[r[T>>>24]]^l[r[T>>>16&255]]^h[r[T>>>8&255]]^d[r[T&255]]},encryptBlock:function(S,_){this._doCryptBlock(S,_,this._keySchedule,s,i,a,o,r)},decryptBlock:function(S,_){var w=S[_+1];S[_+1]=S[_+3],S[_+3]=w,this._doCryptBlock(S,_,this._invKeySchedule,u,l,h,d,n),w=S[_+1],S[_+1]=S[_+3],S[_+3]=w},_doCryptBlock:function(S,_,w,k,D,T,M,F){for(var I=this._nRounds,Fe=S[_]^w[0],Ze=S[_+1]^w[1],Xe=S[_+2]^w[2],Pe=S[_+3]^w[3],N=4,$=1;$>>24]^D[Ze>>>16&255]^T[Xe>>>8&255]^M[Pe&255]^w[N++],de=k[Ze>>>24]^D[Xe>>>16&255]^T[Pe>>>8&255]^M[Fe&255]^w[N++],fe=k[Xe>>>24]^D[Pe>>>16&255]^T[Fe>>>8&255]^M[Ze&255]^w[N++],Pe=k[Pe>>>24]^D[Fe>>>16&255]^T[Ze>>>8&255]^M[Xe&255]^w[N++],Fe=re,Ze=de,Xe=fe;re=(F[Fe>>>24]<<24|F[Ze>>>16&255]<<16|F[Xe>>>8&255]<<8|F[Pe&255])^w[N++],de=(F[Ze>>>24]<<24|F[Xe>>>16&255]<<16|F[Pe>>>8&255]<<8|F[Fe&255])^w[N++],fe=(F[Xe>>>24]<<24|F[Pe>>>16&255]<<16|F[Fe>>>8&255]<<8|F[Ze&255])^w[N++],Pe=(F[Pe>>>24]<<24|F[Fe>>>16&255]<<16|F[Ze>>>8&255]<<8|F[Xe&255])^w[N++],S[_]=re,S[_+1]=de,S[_+2]=fe,S[_+3]=Pe},keySize:8});e.AES=t._createHelper(b)})();(function(){function e(c,f){var p=(this._lBlock>>>c^this._rBlock)&f;this._rBlock^=p,this._lBlock^=p<>>c^this._lBlock)&f;this._lBlock^=p,this._rBlock^=p<p;p++){var g=a[p]-1;f[p]=c[g>>>5]>>>31-g%32&1}for(c=this._subKeys=[],g=0;16>g;g++){for(var m=c[g]=[],y=u[g],p=0;24>p;p++)m[p/6|0]|=f[(o[p]-1+y)%28]<<31-p%6,m[4+(p/6|0)]|=f[28+(o[p+24]-1+y)%28]<<31-p%6;for(m[0]=m[0]<<1|m[0]>>>31,p=1;7>p;p++)m[p]>>>=4*(p-1)+3;m[7]=m[7]<<5|m[7]>>>27}for(f=this._invSubKeys=[],p=0;16>p;p++)f[p]=c[15-p]},encryptBlock:function(c,f){this._doCryptBlock(c,f,this._subKeys)},decryptBlock:function(c,f){this._doCryptBlock(c,f,this._invSubKeys)},_doCryptBlock:function(c,f,p){this._lBlock=c[f],this._rBlock=c[f+1],e.call(this,4,252645135),e.call(this,16,65535),t.call(this,2,858993459),t.call(this,8,16711935),e.call(this,1,1431655765);for(var g=0;16>g;g++){for(var m=p[g],y=this._lBlock,x=this._rBlock,C=0,A=0;8>A;A++)C|=l[A][((x^m[A])&h[A])>>>0];this._lBlock=x,this._rBlock=y^C}p=this._lBlock,this._lBlock=this._rBlock,this._rBlock=p,e.call(this,1,1431655765),t.call(this,8,16711935),t.call(this,2,858993459),e.call(this,16,65535),e.call(this,4,252645135),c[f]=this._lBlock,c[f+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});r.DES=s._createHelper(d),i=i.TripleDES=s.extend({_doReset:function(){var c=this._key.words;this._des1=d.createEncryptor(n.create(c.slice(0,2))),this._des2=d.createEncryptor(n.create(c.slice(2,4))),this._des3=d.createEncryptor(n.create(c.slice(4,6)))},encryptBlock:function(c,f){this._des1.encryptBlock(c,f),this._des2.decryptBlock(c,f),this._des3.encryptBlock(c,f)},decryptBlock:function(c,f){this._des3.decryptBlock(c,f),this._des2.encryptBlock(c,f),this._des1.decryptBlock(c,f)},keySize:6,ivSize:2,blockSize:2}),r.TripleDES=s._createHelper(i)})();(function(){var e=le,t=e.lib.WordArray;e.enc.Base64={stringify:function(r){var n=r.words,s=r.sigBytes,i=this._map;r.clamp(),r=[];for(var a=0;a>>2]>>>24-8*(a%4)&255)<<16|(n[a+1>>>2]>>>24-8*((a+1)%4)&255)<<8|n[a+2>>>2]>>>24-8*((a+2)%4)&255,u=0;4>u&&a+.75*u>>6*(3-u)&63));if(n=i.charAt(64))for(;r.length%4;)r.push(n);return r.join("")},parse:function(r){var n=r.length,s=this._map,i=s.charAt(64);i&&(i=r.indexOf(i),i!=-1&&(n=i));for(var i=[],a=0,o=0;o>>6-2*(o%4);i[a>>>2]|=(u|l)<<24-8*(a%4),a++}return t.create(i,a)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}})();(function(e){function t(d,c,f,p,g,m,y){return d=d+(c&f|~c&p)+g+y,(d<>>32-m)+c}function r(d,c,f,p,g,m,y){return d=d+(c&p|f&~p)+g+y,(d<>>32-m)+c}function n(d,c,f,p,g,m,y){return d=d+(c^f^p)+g+y,(d<>>32-m)+c}function s(d,c,f,p,g,m,y){return d=d+(f^(c|~p))+g+y,(d<>>32-m)+c}for(var i=le,u=i.lib,a=u.WordArray,o=u.Hasher,u=i.algo,l=[],h=0;64>h;h++)l[h]=4294967296*e.abs(e.sin(h+1))|0;u=u.MD5=o.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(d,c){for(var f=0;16>f;f++){var p=c+f,g=d[p];d[p]=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360}var f=this._hash.words,p=d[c+0],g=d[c+1],m=d[c+2],y=d[c+3],x=d[c+4],C=d[c+5],A=d[c+6],P=d[c+7],b=d[c+8],S=d[c+9],_=d[c+10],w=d[c+11],k=d[c+12],D=d[c+13],T=d[c+14],M=d[c+15],F=f[0],$=f[1],N=f[2],I=f[3],F=t(F,$,N,I,p,7,l[0]),I=t(I,F,$,N,g,12,l[1]),N=t(N,I,F,$,m,17,l[2]),$=t($,N,I,F,y,22,l[3]),F=t(F,$,N,I,x,7,l[4]),I=t(I,F,$,N,C,12,l[5]),N=t(N,I,F,$,A,17,l[6]),$=t($,N,I,F,P,22,l[7]),F=t(F,$,N,I,b,7,l[8]),I=t(I,F,$,N,S,12,l[9]),N=t(N,I,F,$,_,17,l[10]),$=t($,N,I,F,w,22,l[11]),F=t(F,$,N,I,k,7,l[12]),I=t(I,F,$,N,D,12,l[13]),N=t(N,I,F,$,T,17,l[14]),$=t($,N,I,F,M,22,l[15]),F=r(F,$,N,I,g,5,l[16]),I=r(I,F,$,N,A,9,l[17]),N=r(N,I,F,$,w,14,l[18]),$=r($,N,I,F,p,20,l[19]),F=r(F,$,N,I,C,5,l[20]),I=r(I,F,$,N,_,9,l[21]),N=r(N,I,F,$,M,14,l[22]),$=r($,N,I,F,x,20,l[23]),F=r(F,$,N,I,S,5,l[24]),I=r(I,F,$,N,T,9,l[25]),N=r(N,I,F,$,y,14,l[26]),$=r($,N,I,F,b,20,l[27]),F=r(F,$,N,I,D,5,l[28]),I=r(I,F,$,N,m,9,l[29]),N=r(N,I,F,$,P,14,l[30]),$=r($,N,I,F,k,20,l[31]),F=n(F,$,N,I,C,4,l[32]),I=n(I,F,$,N,b,11,l[33]),N=n(N,I,F,$,w,16,l[34]),$=n($,N,I,F,T,23,l[35]),F=n(F,$,N,I,g,4,l[36]),I=n(I,F,$,N,x,11,l[37]),N=n(N,I,F,$,P,16,l[38]),$=n($,N,I,F,_,23,l[39]),F=n(F,$,N,I,D,4,l[40]),I=n(I,F,$,N,p,11,l[41]),N=n(N,I,F,$,y,16,l[42]),$=n($,N,I,F,A,23,l[43]),F=n(F,$,N,I,S,4,l[44]),I=n(I,F,$,N,k,11,l[45]),N=n(N,I,F,$,M,16,l[46]),$=n($,N,I,F,m,23,l[47]),F=s(F,$,N,I,p,6,l[48]),I=s(I,F,$,N,P,10,l[49]),N=s(N,I,F,$,T,15,l[50]),$=s($,N,I,F,C,21,l[51]),F=s(F,$,N,I,k,6,l[52]),I=s(I,F,$,N,y,10,l[53]),N=s(N,I,F,$,_,15,l[54]),$=s($,N,I,F,g,21,l[55]),F=s(F,$,N,I,b,6,l[56]),I=s(I,F,$,N,M,10,l[57]),N=s(N,I,F,$,A,15,l[58]),$=s($,N,I,F,D,21,l[59]),F=s(F,$,N,I,x,6,l[60]),I=s(I,F,$,N,w,10,l[61]),N=s(N,I,F,$,m,15,l[62]),$=s($,N,I,F,S,21,l[63]);f[0]=f[0]+F|0,f[1]=f[1]+$|0,f[2]=f[2]+N|0,f[3]=f[3]+I|0},_doFinalize:function(){var d=this._data,c=d.words,f=8*this._nDataBytes,p=8*d.sigBytes;c[p>>>5]|=128<<24-p%32;var g=e.floor(f/4294967296);for(c[(p+64>>>9<<4)+15]=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360,c[(p+64>>>9<<4)+14]=(f<<8|f>>>24)&16711935|(f<<24|f>>>8)&4278255360,d.sigBytes=4*(c.length+1),this._process(),d=this._hash,c=d.words,f=0;4>f;f++)p=c[f],c[f]=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360;return d},clone:function(){var d=o.clone.call(this);return d._hash=this._hash.clone(),d}}),i.MD5=o._createHelper(u),i.HmacMD5=o._createHmacHelper(u)})(Math);(function(){var e=le,s=e.lib,t=s.WordArray,r=s.Hasher,n=[],s=e.algo.SHA1=r.extend({_doReset:function(){this._hash=new t.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(i,a){for(var o=this._hash.words,u=o[0],l=o[1],h=o[2],d=o[3],c=o[4],f=0;80>f;f++){if(16>f)n[f]=i[a+f]|0;else{var p=n[f-3]^n[f-8]^n[f-14]^n[f-16];n[f]=p<<1|p>>>31}p=(u<<5|u>>>27)+c+n[f],p=20>f?p+((l&h|~l&d)+1518500249):40>f?p+((l^h^d)+1859775393):60>f?p+((l&h|l&d|h&d)-1894007588):p+((l^h^d)-899497514),c=d,d=h,h=l<<30|l>>>2,l=u,u=p}o[0]=o[0]+u|0,o[1]=o[1]+l|0,o[2]=o[2]+h|0,o[3]=o[3]+d|0,o[4]=o[4]+c|0},_doFinalize:function(){var i=this._data,a=i.words,o=8*this._nDataBytes,u=8*i.sigBytes;return a[u>>>5]|=128<<24-u%32,a[(u+64>>>9<<4)+14]=Math.floor(o/4294967296),a[(u+64>>>9<<4)+15]=o,i.sigBytes=4*a.length,this._process(),this._hash},clone:function(){var i=r.clone.call(this);return i._hash=this._hash.clone(),i}});e.SHA1=r._createHelper(s),e.HmacSHA1=r._createHmacHelper(s)})();(function(e){for(var t=le,f=t.lib,r=f.WordArray,n=f.Hasher,f=t.algo,s=[],i=[],a=function(g){return 4294967296*(g-(g|0))|0},o=2,u=0;64>u;){var l;e:{l=o;for(var h=e.sqrt(l),d=2;d<=h;d++)if(!(l%d)){l=!1;break e}l=!0}l&&(8>u&&(s[u]=a(e.pow(o,.5))),i[u]=a(e.pow(o,1/3)),u++),o++}var c=[],f=f.SHA256=n.extend({_doReset:function(){this._hash=new r.init(s.slice(0))},_doProcessBlock:function(p,g){for(var m=this._hash.words,y=m[0],x=m[1],C=m[2],A=m[3],P=m[4],b=m[5],S=m[6],_=m[7],w=0;64>w;w++){if(16>w)c[w]=p[g+w]|0;else{var k=c[w-15],D=c[w-2];c[w]=((k<<25|k>>>7)^(k<<14|k>>>18)^k>>>3)+c[w-7]+((D<<15|D>>>17)^(D<<13|D>>>19)^D>>>10)+c[w-16]}k=_+((P<<26|P>>>6)^(P<<21|P>>>11)^(P<<7|P>>>25))+(P&b^~P&S)+i[w]+c[w],D=((y<<30|y>>>2)^(y<<19|y>>>13)^(y<<10|y>>>22))+(y&x^y&C^x&C),_=S,S=b,b=P,P=A+k|0,A=C,C=x,x=y,y=k+D|0}m[0]=m[0]+y|0,m[1]=m[1]+x|0,m[2]=m[2]+C|0,m[3]=m[3]+A|0,m[4]=m[4]+P|0,m[5]=m[5]+b|0,m[6]=m[6]+S|0,m[7]=m[7]+_|0},_doFinalize:function(){var p=this._data,g=p.words,m=8*this._nDataBytes,y=8*p.sigBytes;return g[y>>>5]|=128<<24-y%32,g[(y+64>>>9<<4)+14]=e.floor(m/4294967296),g[(y+64>>>9<<4)+15]=m,p.sigBytes=4*g.length,this._process(),this._hash},clone:function(){var p=n.clone.call(this);return p._hash=this._hash.clone(),p}});t.SHA256=n._createHelper(f),t.HmacSHA256=n._createHmacHelper(f)})(Math);(function(){var e=le,t=e.lib.WordArray,n=e.algo,r=n.SHA256,n=n.SHA224=r.extend({_doReset:function(){this._hash=new t.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var s=r._doFinalize.call(this);return s.sigBytes-=4,s}});e.SHA224=r._createHelper(n),e.HmacSHA224=r._createHmacHelper(n)})();(function(){function e(){return n.create.apply(n,arguments)}for(var t=le,r=t.lib.Hasher,i=t.x64,n=i.Word,s=i.WordArray,i=t.algo,a=[e(1116352408,3609767458),e(1899447441,602891725),e(3049323471,3964484399),e(3921009573,2173295548),e(961987163,4081628472),e(1508970993,3053834265),e(2453635748,2937671579),e(2870763221,3664609560),e(3624381080,2734883394),e(310598401,1164996542),e(607225278,1323610764),e(1426881987,3590304994),e(1925078388,4068182383),e(2162078206,991336113),e(2614888103,633803317),e(3248222580,3479774868),e(3835390401,2666613458),e(4022224774,944711139),e(264347078,2341262773),e(604807628,2007800933),e(770255983,1495990901),e(1249150122,1856431235),e(1555081692,3175218132),e(1996064986,2198950837),e(2554220882,3999719339),e(2821834349,766784016),e(2952996808,2566594879),e(3210313671,3203337956),e(3336571891,1034457026),e(3584528711,2466948901),e(113926993,3758326383),e(338241895,168717936),e(666307205,1188179964),e(773529912,1546045734),e(1294757372,1522805485),e(1396182291,2643833823),e(1695183700,2343527390),e(1986661051,1014477480),e(2177026350,1206759142),e(2456956037,344077627),e(2730485921,1290863460),e(2820302411,3158454273),e(3259730800,3505952657),e(3345764771,106217008),e(3516065817,3606008344),e(3600352804,1432725776),e(4094571909,1467031594),e(275423344,851169720),e(430227734,3100823752),e(506948616,1363258195),e(659060556,3750685593),e(883997877,3785050280),e(958139571,3318307427),e(1322822218,3812723403),e(1537002063,2003034995),e(1747873779,3602036899),e(1955562222,1575990012),e(2024104815,1125592928),e(2227730452,2716904306),e(2361852424,442776044),e(2428436474,593698344),e(2756734187,3733110249),e(3204031479,2999351573),e(3329325298,3815920427),e(3391569614,3928383900),e(3515267271,566280711),e(3940187606,3454069534),e(4118630271,4000239992),e(116418474,1914138554),e(174292421,2731055270),e(289380356,3203993006),e(460393269,320620315),e(685471733,587496836),e(852142971,1086792851),e(1017036298,365543100),e(1126000580,2618297676),e(1288033470,3409855158),e(1501505948,4234509866),e(1607167915,987167468),e(1816402316,1246189591)],o=[],u=0;80>u;u++)o[u]=e();i=i.SHA512=r.extend({_doReset:function(){this._hash=new s.init([new n.init(1779033703,4089235720),new n.init(3144134277,2227873595),new n.init(1013904242,4271175723),new n.init(2773480762,1595750129),new n.init(1359893119,2917565137),new n.init(2600822924,725511199),new n.init(528734635,4215389547),new n.init(1541459225,327033209)])},_doProcessBlock:function(l,h){for(var x=this._hash.words,d=x[0],c=x[1],f=x[2],p=x[3],g=x[4],m=x[5],y=x[6],x=x[7],C=d.high,A=d.low,P=c.high,b=c.low,S=f.high,_=f.low,w=p.high,k=p.low,D=g.high,T=g.low,M=m.high,F=m.low,I=y.high,N=y.low,$=x.high,re=x.low,de=C,fe=A,Pe=P,Fe=b,Ze=S,Xe=_,St=w,He=k,L=D,X=T,J=M,ne=F,xe=I,O=N,R=$,H=re,U=0;80>U;U++){var Oe=o[U];if(16>U)var Y=Oe.high=l[h+2*U]|0,ue=Oe.low=l[h+2*U+1]|0;else{var Y=o[U-15],ue=Y.high,ee=Y.low,Y=(ue>>>1|ee<<31)^(ue>>>8|ee<<24)^ue>>>7,ee=(ee>>>1|ue<<31)^(ee>>>8|ue<<24)^(ee>>>7|ue<<25),W=o[U-2],ue=W.high,ie=W.low,W=(ue>>>19|ie<<13)^(ue<<3|ie>>>29)^ue>>>6,ie=(ie>>>19|ue<<13)^(ie<<3|ue>>>29)^(ie>>>6|ue<<26),ue=o[U-7],G=ue.high,se=o[U-16],me=se.high,se=se.low,ue=ee+ue.low,Y=Y+G+(ue>>>0>>0?1:0),ue=ue+ie,Y=Y+W+(ue>>>0>>0?1:0),ue=ue+se,Y=Y+me+(ue>>>0>>0?1:0);Oe.high=Y,Oe.low=ue}var G=L&J^~L&xe,se=X&ne^~X&O,Oe=de&Pe^de&Ze^Pe&Ze,te=fe&Fe^fe&Xe^Fe&Xe,ee=(de>>>28|fe<<4)^(de<<30|fe>>>2)^(de<<25|fe>>>7),W=(fe>>>28|de<<4)^(fe<<30|de>>>2)^(fe<<25|de>>>7),ie=a[U],ge=ie.high,he=ie.low,ie=H+((X>>>14|L<<18)^(X>>>18|L<<14)^(X<<23|L>>>9)),me=R+((L>>>14|X<<18)^(L>>>18|X<<14)^(L<<23|X>>>9))+(ie>>>0>>0?1:0),ie=ie+se,me=me+G+(ie>>>0>>0?1:0),ie=ie+he,me=me+ge+(ie>>>0>>0?1:0),ie=ie+ue,me=me+Y+(ie>>>0>>0?1:0),ue=W+te,Oe=ee+Oe+(ue>>>0>>0?1:0),R=xe,H=O,xe=J,O=ne,J=L,ne=X,X=He+ie|0,L=St+me+(X>>>0>>0?1:0)|0,St=Ze,He=Xe,Ze=Pe,Xe=Fe,Pe=de,Fe=fe,fe=ie+ue|0,de=me+Oe+(fe>>>0>>0?1:0)|0}A=d.low=A+fe,d.high=C+de+(A>>>0>>0?1:0),b=c.low=b+Fe,c.high=P+Pe+(b>>>0>>0?1:0),_=f.low=_+Xe,f.high=S+Ze+(_>>>0>>0?1:0),k=p.low=k+He,p.high=w+St+(k>>>0>>0?1:0),T=g.low=T+X,g.high=D+L+(T>>>0>>0?1:0),F=m.low=F+ne,m.high=M+J+(F>>>0>>0?1:0),N=y.low=N+O,y.high=I+xe+(N>>>0>>0?1:0),re=x.low=re+H,x.high=$+R+(re>>>0>>0?1:0)},_doFinalize:function(){var l=this._data,h=l.words,d=8*this._nDataBytes,c=8*l.sigBytes;return h[c>>>5]|=128<<24-c%32,h[(c+128>>>10<<5)+30]=Math.floor(d/4294967296),h[(c+128>>>10<<5)+31]=d,l.sigBytes=4*h.length,this._process(),this._hash.toX32()},clone:function(){var l=r.clone.call(this);return l._hash=this._hash.clone(),l},blockSize:32}),t.SHA512=r._createHelper(i),t.HmacSHA512=r._createHmacHelper(i)})();(function(){var e=le,s=e.x64,t=s.Word,r=s.WordArray,s=e.algo,n=s.SHA512,s=s.SHA384=n.extend({_doReset:function(){this._hash=new r.init([new t.init(3418070365,3238371032),new t.init(1654270250,914150663),new t.init(2438529370,812702999),new t.init(355462360,4144912697),new t.init(1731405415,4290775857),new t.init(2394180231,1750603025),new t.init(3675008525,1694076839),new t.init(1203062813,3204075428)])},_doFinalize:function(){var i=n._doFinalize.call(this);return i.sigBytes-=16,i}});e.SHA384=n._createHelper(s),e.HmacSHA384=n._createHmacHelper(s)})();(function(){var e=le,l=e.lib,t=l.WordArray,r=l.Hasher,l=e.algo,n=t.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),s=t.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),i=t.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),a=t.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),o=t.create([0,1518500249,1859775393,2400959708,2840853838]),u=t.create([1352829926,1548603684,1836072691,2053994217,0]),l=l.RIPEMD160=r.extend({_doReset:function(){this._hash=t.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(h,d){for(var c=0;16>c;c++){var f=d+c,p=h[f];h[f]=(p<<8|p>>>24)&16711935|(p<<24|p>>>8)&4278255360}var f=this._hash.words,p=o.words,g=u.words,m=n.words,y=s.words,x=i.words,C=a.words,A,P,b,S,_,w,k,D,T,M;w=A=f[0],k=P=f[1],D=b=f[2],T=S=f[3],M=_=f[4];for(var F,c=0;80>c;c+=1)F=A+h[d+m[c]]|0,F=16>c?F+((P^b^S)+p[0]):32>c?F+((P&b|~P&S)+p[1]):48>c?F+(((P|~b)^S)+p[2]):64>c?F+((P&S|b&~S)+p[3]):F+((P^(b|~S))+p[4]),F|=0,F=F<>>32-x[c],F=F+_|0,A=_,_=S,S=b<<10|b>>>22,b=P,P=F,F=w+h[d+y[c]]|0,F=16>c?F+((k^(D|~T))+g[0]):32>c?F+((k&T|D&~T)+g[1]):48>c?F+(((k|~D)^T)+g[2]):64>c?F+((k&D|~k&T)+g[3]):F+((k^D^T)+g[4]),F|=0,F=F<>>32-C[c],F=F+M|0,w=M,M=T,T=D<<10|D>>>22,D=k,k=F;F=f[1]+b+T|0,f[1]=f[2]+S+M|0,f[2]=f[3]+_+w|0,f[3]=f[4]+A+k|0,f[4]=f[0]+P+D|0,f[0]=F},_doFinalize:function(){var h=this._data,d=h.words,c=8*this._nDataBytes,f=8*h.sigBytes;for(d[f>>>5]|=128<<24-f%32,d[(f+64>>>9<<4)+14]=(c<<8|c>>>24)&16711935|(c<<24|c>>>8)&4278255360,h.sigBytes=4*(d.length+1),this._process(),h=this._hash,d=h.words,c=0;5>c;c++)f=d[c],d[c]=(f<<8|f>>>24)&16711935|(f<<24|f>>>8)&4278255360;return h},clone:function(){var h=r.clone.call(this);return h._hash=this._hash.clone(),h}});e.RIPEMD160=r._createHelper(l),e.HmacRIPEMD160=r._createHmacHelper(l)})();(function(){var e=le,t=e.enc.Utf8;e.algo.HMAC=e.lib.Base.extend({init:function(r,n){r=this._hasher=new r.init,typeof n=="string"&&(n=t.parse(n));var s=r.blockSize,i=4*s;n.sigBytes>i&&(n=r.finalize(n)),n.clamp();for(var a=this._oKey=n.clone(),o=this._iKey=n.clone(),u=a.words,l=o.words,h=0;h>6)+Fs.charAt(r&63);for(t+1==e.length?(r=parseInt(e.substring(t,t+1),16),n+=Fs.charAt(r<<2)):t+2==e.length&&(r=parseInt(e.substring(t,t+2),16),n+=Fs.charAt(r>>2)+Fs.charAt((r&3)<<4));(n.length&3)>0;)n+=Tg;return n}function Nc(e){var t="",r,n=0,s,i;for(r=0;r>2),s=i&3,n=1):n==1?(t+=qr(s<<2|i>>4),s=i&15,n=2):n==2?(t+=qr(s),t+=qr(i>>2),s=i&3,n=3):(t+=qr(s<<2|i>>4),t+=qr(i&15),n=0));return n==1&&(t+=qr(s<<2)),t}/*! (c) Tom Wu | http://www-cs-students.stanford.edu/~tjw/jsbn/ -*/var Fn;function B(e,t,r){e!=null&&(typeof e=="number"?this.fromNumber(e,t,r):t==null&&typeof e!="string"?this.fromString(e,256):this.fromString(e,t))}function Ie(){return new B(null)}function q5(e,t,r,n,s,i){for(;--i>=0;){var a=t*this[e++]+r[n]+s;s=Math.floor(a/67108864),r[n++]=a&67108863}return s}function K5(e,t,r,n,s,i){for(var a=t&32767,o=t>>15;--i>=0;){var u=this[e]&32767,l=this[e++]>>15,h=o*u+l*a;u=a*u+((h&32767)<<15)+r[n]+(s&1073741823),s=(u>>>30)+(h>>>15)+o*l+(s>>>30),r[n++]=u&1073741823}return s}function Y5(e,t,r,n,s,i){for(var a=t&16383,o=t>>14;--i>=0;){var u=this[e]&16383,l=this[e++]>>14,h=o*u+l*a;u=a*u+((h&16383)<<14)+r[n]+s,s=(u>>28)+(h>>14)+o*l,r[n++]=u&268435455}return s}Qi.appName=="Microsoft Internet Explorer"?(B.prototype.am=K5,Fn=30):Qi.appName!="Netscape"?(B.prototype.am=q5,Fn=26):(B.prototype.am=Y5,Fn=28);B.prototype.DB=Fn;B.prototype.DM=(1<=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s}function G5(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0}function Sn(e){var t=Ie();return t.fromInt(e),t}function J5(e,t){var r;if(t==16)r=4;else if(t==8)r=3;else if(t==256)r=8;else if(t==2)r=1;else if(t==32)r=5;else if(t==4)r=2;else{this.fromRadix(e,t);return}this.t=0,this.s=0;for(var n=e.length,s=!1,i=0;--n>=0;){var a=r==8?e[n]&255:Fg(e,n);if(a<0){e.charAt(n)=="-"&&(s=!0);continue}s=!1,i==0?this[this.t++]=a:i+r>this.DB?(this[this.t-1]|=(a&(1<>this.DB-i):this[this.t-1]|=a<=this.DB&&(i-=this.DB)}r==8&&e[0]&128&&(this.s=-1,i>0&&(this[this.t-1]|=(1<0&&this[this.t-1]==e;)--this.t}function Z5(e){if(this.s<0)return"-"+this.negate().toString(e);var t;if(e==16)t=4;else if(e==8)t=3;else if(e==2)t=1;else if(e==32)t=5;else if(e==4)t=2;else return this.toRadix(e);var r=(1<0)for(o>o)>0&&(s=!0,i=qr(n));a>=0;)o>(o+=this.DB-t)):(n=this[a]>>(o-=t)&r,o<=0&&(o+=this.DB,--a)),n>0&&(s=!0),s&&(i+=qr(n));return s?i:"0"}function Q5(){var e=Ie();return B.ZERO.subTo(this,e),e}function e4(){return this.s<0?this.negate():this}function t4(e){var t=this.s-e.s;if(t!=0)return t;var r=this.t;if(t=r-e.t,t!=0)return this.s<0?-t:t;for(;--r>=0;)if((t=this[r]-e[r])!=0)return t;return 0}function au(e){var t=1,r;return(r=e>>>16)!=0&&(e=r,t+=16),(r=e>>8)!=0&&(e=r,t+=8),(r=e>>4)!=0&&(e=r,t+=4),(r=e>>2)!=0&&(e=r,t+=2),(r=e>>1)!=0&&(e=r,t+=1),t}function r4(){return this.t<=0?0:this.DB*(this.t-1)+au(this[this.t-1]^this.s&this.DM)}function n4(e,t){var r;for(r=this.t-1;r>=0;--r)t[r+e]=this[r];for(r=e-1;r>=0;--r)t[r]=0;t.t=this.t+e,t.s=this.s}function s4(e,t){for(var r=e;r=0;--o)t[o+i+1]=this[o]>>n|a,a=(this[o]&s)<=0;--o)t[o]=0;t[i]=a,t.t=this.t+i+1,t.s=this.s,t.clamp()}function a4(e,t){t.s=this.s;var r=Math.floor(e/this.DB);if(r>=this.t){t.t=0;return}var n=e%this.DB,s=this.DB-n,i=(1<>n;for(var a=r+1;a>n;n>0&&(t[this.t-r-1]|=(this.s&i)<>=this.DB;if(e.t>=this.DB;n+=this.s}else{for(n+=this.s;r>=this.DB;n-=e.s}t.s=n<0?-1:0,n<-1?t[r++]=this.DV+n:n>0&&(t[r++]=n),t.t=r,t.clamp()}function u4(e,t){var r=this.abs(),n=e.abs(),s=r.t;for(t.t=s+n.t;--s>=0;)t[s]=0;for(s=0;s=0;)e[r]=0;for(r=0;r=t.DV&&(e[r+t.t]-=t.DV,e[r+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(r,t[r],e,2*r,0,1)),e.s=0,e.clamp()}function c4(e,t,r){var n=e.abs();if(!(n.t<=0)){var s=this.abs();if(s.t0?(n.lShiftTo(u,i),s.lShiftTo(u,r)):(n.copyTo(i),s.copyTo(r));var l=i.t,h=i[l-1];if(h!=0){var d=h*(1<1?i[l-2]>>this.F2:0),c=this.FV/d,f=(1<=0&&(r[r.t++]=1,r.subTo(y,r)),B.ONE.dlShiftTo(l,y),y.subTo(i,i);i.t=0;){var x=r[--g]==h?this.DM:Math.floor(r[g]*c+(r[g-1]+p)*f);if((r[g]+=i.am(0,x,r,m,0,l))0&&r.rShiftTo(u,r),a<0&&B.ZERO.subTo(r,r)}}}function h4(e){var t=Ie();return this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(B.ZERO)>0&&e.subTo(t,t),t}function ms(e){this.m=e}function f4(e){return e.s<0||e.compareTo(this.m)>=0?e.mod(this.m):e}function d4(e){return e}function p4(e){e.divRemTo(this.m,null,e)}function g4(e,t,r){e.multiplyTo(t,r),this.reduce(r)}function m4(e,t){e.squareTo(t),this.reduce(t)}ms.prototype.convert=f4;ms.prototype.revert=d4;ms.prototype.reduce=p4;ms.prototype.mulTo=g4;ms.prototype.sqrTo=m4;function v4(){if(this.t<1)return 0;var e=this[0];if(!(e&1))return 0;var t=e&3;return t=t*(2-(e&15)*t)&15,t=t*(2-(e&255)*t)&255,t=t*(2-((e&65535)*t&65535))&65535,t=t*(2-e*t%this.DV)%this.DV,t>0?this.DV-t:-t}function vs(e){this.m=e,this.mp=e.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<0&&this.m.subTo(t,t),t}function b4(e){var t=Ie();return e.copyTo(t),this.reduce(t),t}function w4(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var t=0;t>15)*this.mpl&this.um)<<15)&e.DM;for(r=t+this.m.t,e[r]+=this.m.am(0,n,e,t,0,this.m.t);e[r]>=e.DV;)e[r]-=e.DV,e[++r]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)}function x4(e,t){e.squareTo(t),this.reduce(t)}function _4(e,t,r){e.multiplyTo(t,r),this.reduce(r)}vs.prototype.convert=y4;vs.prototype.revert=b4;vs.prototype.reduce=w4;vs.prototype.mulTo=_4;vs.prototype.sqrTo=x4;function S4(){return(this.t>0?this[0]&1:this.s)==0}function E4(e,t){if(e>4294967295||e<1)return B.ONE;var r=Ie(),n=Ie(),s=t.convert(this),i=au(e)-1;for(s.copyTo(r);--i>=0;)if(t.sqrTo(r,n),(e&1<0)t.mulTo(n,s,r);else{var a=r;r=n,n=a}return t.revert(r)}function C4(e,t){var r;return e<256||t.isEven()?r=new ms(t):r=new vs(t),this.exp(e,r)}B.prototype.copyTo=W5;B.prototype.fromInt=G5;B.prototype.fromString=J5;B.prototype.clamp=X5;B.prototype.dlShiftTo=n4;B.prototype.drShiftTo=s4;B.prototype.lShiftTo=i4;B.prototype.rShiftTo=a4;B.prototype.subTo=o4;B.prototype.multiplyTo=u4;B.prototype.squareTo=l4;B.prototype.divRemTo=c4;B.prototype.invDigit=v4;B.prototype.isEven=S4;B.prototype.exp=E4;B.prototype.toString=Z5;B.prototype.negate=Q5;B.prototype.abs=e4;B.prototype.compareTo=t4;B.prototype.bitLength=r4;B.prototype.mod=h4;B.prototype.modPowInt=C4;B.ZERO=Sn(0);B.ONE=Sn(1);/*! (c) Tom Wu | http://www-cs-students.stanford.edu/~tjw/jsbn/ - */function k4(){var e=Ie();return this.copyTo(e),e}function A4(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<>24}function D4(){return this.t==0?this.s:this[0]<<16>>16}function T4(e){return Math.floor(Math.LN2*this.DB/Math.log(e))}function F4(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1}function O4(e){if(e==null&&(e=10),this.signum()==0||e<2||e>36)return"0";var t=this.chunkSize(e),r=Math.pow(e,t),n=Sn(r),s=Ie(),i=Ie(),a="";for(this.divRemTo(n,s,i);s.signum()>0;)a=(r+i.intValue()).toString(e).substr(1)+a,s.divRemTo(n,s,i);return i.intValue().toString(e)+a}function I4(e,t){this.fromInt(0),t==null&&(t=10);for(var r=this.chunkSize(t),n=Math.pow(t,r),s=!1,i=0,a=0,o=0;o=r&&(this.dMultiply(n),this.dAddOffset(a,0),i=0,a=0)}i>0&&(this.dMultiply(Math.pow(t,i)),this.dAddOffset(a,0)),s&&B.ZERO.subTo(this,this)}function R4(e,t,r){if(typeof t=="number")if(e<2)this.fromInt(1);else for(this.fromNumber(e,r),this.testBit(e-1)||this.bitwiseTo(B.ONE.shiftLeft(e-1),Bc,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(t);)this.dAddOffset(2,0),this.bitLength()>e&&this.subTo(B.ONE.shiftLeft(e-1),this);else{var n=new Array,s=e&7;n.length=(e>>3)+1,t.nextBytes(n),s>0?n[0]&=(1<0)for(r>r)!=(this.s&this.DM)>>r&&(t[s++]=n|this.s<=0;)r<8?(n=(this[e]&(1<>(r+=this.DB-8)):(n=this[e]>>(r-=8)&255,r<=0&&(r+=this.DB,--e)),n&128&&(n|=-256),s==0&&(this.s&128)!=(n&128)&&++s,(s>0||n!=this.s)&&(t[s++]=n);return t}function M4(e){return this.compareTo(e)==0}function B4(e){return this.compareTo(e)<0?this:e}function $4(e){return this.compareTo(e)>0?this:e}function H4(e,t,r){var n,s,i=Math.min(e.t,this.t);for(n=0;n>=16,t+=16),e&255||(e>>=8,t+=8),e&15||(e>>=4,t+=4),e&3||(e>>=2,t+=2),e&1||++t,t}function G4(){for(var e=0;e=this.t?this.s!=0:(this[t]&1<>=this.DB;if(e.t>=this.DB;n+=this.s}else{for(n+=this.s;r>=this.DB;n+=e.s}t.s=n<0?-1:0,n>0?t[r++]=n:n<-1&&(t[r++]=this.DV+n),t.t=r,t.clamp()}function s3(e){var t=Ie();return this.addTo(e,t),t}function i3(e){var t=Ie();return this.subTo(e,t),t}function a3(e){var t=Ie();return this.multiplyTo(e,t),t}function o3(){var e=Ie();return this.squareTo(e),e}function u3(e){var t=Ie();return this.divRemTo(e,t,null),t}function l3(e){var t=Ie();return this.divRemTo(e,null,t),t}function c3(e){var t=Ie(),r=Ie();return this.divRemTo(e,t,r),new Array(t,r)}function h3(e){this[this.t]=this.am(0,e-1,this,0,0,this.t),++this.t,this.clamp()}function f3(e,t){if(e!=0){for(;this.t<=t;)this[this.t++]=0;for(this[t]+=e;this[t]>=this.DV;)this[t]-=this.DV,++t>=this.t&&(this[this.t++]=0),++this[t]}}function da(){}function Rg(e){return e}function d3(e,t,r){e.multiplyTo(t,r)}function p3(e,t){e.squareTo(t)}da.prototype.convert=Rg;da.prototype.revert=Rg;da.prototype.mulTo=d3;da.prototype.sqrTo=p3;function g3(e){return this.exp(e,new da)}function m3(e,t,r){var n=Math.min(this.t+e.t,t);for(r.s=0,r.t=n;n>0;)r[--n]=0;var s;for(s=r.t-this.t;n=0;)r[n]=0;for(n=Math.max(t-this.t,0);n2*this.m.t)return e.mod(this.m);if(e.compareTo(this.m)<0)return e;var t=Ie();return e.copyTo(t),this.reduce(t),t}function b3(e){return e}function w3(e){for(e.drShiftTo(this.m.t-1,this.r2),e.t>this.m.t+1&&(e.t=this.m.t+1,e.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);e.compareTo(this.r2)<0;)e.dAddOffset(1,this.m.t+1);for(e.subTo(this.r2,e);e.compareTo(this.m)>=0;)e.subTo(this.m,e)}function x3(e,t){e.squareTo(t),this.reduce(t)}function _3(e,t,r){e.multiplyTo(t,r),this.reduce(r)}li.prototype.convert=y3;li.prototype.revert=b3;li.prototype.reduce=w3;li.prototype.mulTo=_3;li.prototype.sqrTo=x3;function S3(e,t){var r=e.bitLength(),n,s=Sn(1),i;if(r<=0)return s;r<18?n=1:r<48?n=3:r<144?n=4:r<768?n=5:n=6,r<8?i=new ms(t):t.isEven()?i=new li(t):i=new vs(t);var a=new Array,o=3,u=n-1,l=(1<1){var h=Ie();for(i.sqrTo(a[1],h);o<=l;)a[o]=Ie(),i.mulTo(h,a[o-2],a[o]),o+=2}var d=e.t-1,c,f=!0,p=Ie(),g;for(r=au(e[d])-1;d>=0;){for(r>=u?c=e[d]>>r-u&l:(c=(e[d]&(1<0&&(c|=e[d-1]>>this.DB+r-u)),o=n;!(c&1);)c>>=1,--o;if((r-=o)<0&&(r+=this.DB,--d),f)a[c].copyTo(s),f=!1;else{for(;o>1;)i.sqrTo(s,p),i.sqrTo(p,s),o-=2;o>0?i.sqrTo(s,p):(g=s,s=p,p=g),i.mulTo(p,a[c],s)}for(;d>=0&&!(e[d]&1<0&&(t.rShiftTo(i,t),r.rShiftTo(i,r));t.signum()>0;)(s=t.getLowestSetBit())>0&&t.rShiftTo(s,t),(s=r.getLowestSetBit())>0&&r.rShiftTo(s,r),t.compareTo(r)>=0?(t.subTo(r,t),t.rShiftTo(1,t)):(r.subTo(t,r),r.rShiftTo(1,r));return i>0&&r.lShiftTo(i,r),r}function C3(e){if(e<=0)return 0;var t=this.DV%e,r=this.s<0?e-1:0;if(this.t>0)if(t==0)r=this[0]%e;else for(var n=this.t-1;n>=0;--n)r=(t*r+this[n])%e;return r}function k3(e){var t=e.isEven();if(this.isEven()&&t||e.signum()==0)return B.ZERO;for(var r=e.clone(),n=this.clone(),s=Sn(1),i=Sn(0),a=Sn(0),o=Sn(1);r.signum()!=0;){for(;r.isEven();)r.rShiftTo(1,r),t?((!s.isEven()||!i.isEven())&&(s.addTo(this,s),i.subTo(e,i)),s.rShiftTo(1,s)):i.isEven()||i.subTo(e,i),i.rShiftTo(1,i);for(;n.isEven();)n.rShiftTo(1,n),t?((!a.isEven()||!o.isEven())&&(a.addTo(this,a),o.subTo(e,o)),a.rShiftTo(1,a)):o.isEven()||o.subTo(e,o),o.rShiftTo(1,o);r.compareTo(n)>=0?(r.subTo(n,r),t&&s.subTo(a,s),i.subTo(o,i)):(n.subTo(r,n),t&&a.subTo(s,a),o.subTo(i,o))}if(n.compareTo(B.ONE)!=0)return B.ZERO;if(o.compareTo(e)>=0)return o.subtract(e);if(o.signum()<0)o.addTo(e,o);else return o;return o.signum()<0?o.add(e):o}var Rt=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],A3=(1<<26)/Rt[Rt.length-1];function P3(e){var t,r=this.abs();if(r.t==1&&r[0]<=Rt[Rt.length-1]){for(t=0;t>1,e>Rt.length&&(e=Rt.length);for(var s=Ie(),i=0;i>8&255,Yt[bt++]^=e>>16&255,Yt[bt++]^=e>>24&255,bt>=Al&&(bt-=Al)}function Ng(){I3(new Date().getTime())}if(Yt==null){Yt=new Array,bt=0;var dr;if(As!==void 0&&(As.crypto!==void 0||As.msCrypto!==void 0)){var qf=As.crypto||As.msCrypto;if(qf.getRandomValues){var Kf=new Uint8Array(32);for(qf.getRandomValues(Kf),dr=0;dr<32;++dr)Yt[bt++]=Kf[dr]}else if(Qi.appName=="Netscape"&&Qi.appVersion<"5"){var Yf=As.crypto.random(32);for(dr=0;dr>>8,Yt[bt++]=dr&255;bt=0,Ng()}function R3(){if(Ia==null){for(Ng(),Ia=O3(),Ia.init(Yt),bt=0;bt=0&&t>0;){var s=e.charCodeAt(n--);s<128?r[--t]=s:s>127&&s<2048?(r[--t]=s&63|128,r[--t]=s>>6|192):(r[--t]=s&63|128,r[--t]=s>>6&63|128,r[--t]=s>>12|224)}r[--t]=0;for(var i=new ys,a=new Array;t>2;){for(a[0]=0;a[0]==0;)i.nextBytes(a);r[--t]=a[0]}return r[--t]=2,r[--t]=0,new B(r)}function zf(e,t,r){for(var n="",s=0;n.length>24,(s&16711680)>>16,(s&65280)>>8,s&255]))),s+=1;return n}function B3(e,t,r,n){var s=v.crypto.MessageDigest,i=v.crypto.Util,a=null;if(r||(r="sha1"),typeof r=="string"&&(a=s.getCanonicalAlgName(r),n=s.getHashLength(a),r=function(g){return Gt(i.hashHex(Sr(g),a))}),e.length+2*n+2>t)throw"Message too long for RSA";var o="",u;for(u=0;u0&&t.length>0)this.n=At(e,16),this.e=parseInt(t,16);else throw"Invalid RSA public key"}function H3(e){return e.modPowInt(this.e,this.n)}function j3(e){var t=M3(e,this.n.bitLength()+7>>3);if(t==null)return null;var r=this.doPublic(t);if(r==null)return null;var n=r.toString(16);return n.length&1?"0"+n:n}function L3(e,t,r){var n=this.n.bitLength()+7>>3,s=B3(e,n,t,r);if(s==null)return null;var i=this.doPublic(s);if(i==null)return null;for(var a=i.toString(16);a.length=r.length)return null;for(var s="";++n191&&i<224?(s+=String.fromCharCode((i&31)<<6|r[n+1]&63),++n):(s+=String.fromCharCode((i&15)<<12|(r[n+1]&63)<<6|r[n+2]&63),n+=2)}return s}function Wf(e,t,r){for(var n="",s=0;n.length>24,(s&16711680)>>16,(s&65280)>>8,s&255])),s+=1;return n}function U3(e,t,r,n){var s=v.crypto.MessageDigest,i=v.crypto.Util,a=null;r||(r="sha1"),typeof r=="string"&&(a=s.getCanonicalAlgName(r),n=s.getHashLength(a),r=function(m){return Gt(i.hashHex(Sr(m),a))}),e=e.toByteArray();var d;for(d=0;d0&&t.length>0)this.n=At(e,16),this.e=parseInt(t,16),this.d=At(r,16);else throw"Invalid RSA private key"}function K3(e,t,r,n,s,i,a,o){if(this.isPrivate=!0,this.isPublic=!1,e==null)throw"RSASetPrivateEx N == null";if(t==null)throw"RSASetPrivateEx E == null";if(e.length==0)throw"RSASetPrivateEx N.length == 0";if(t.length==0)throw"RSASetPrivateEx E.length == 0";if(e!=null&&t!=null&&e.length>0&&t.length>0)this.n=At(e,16),this.e=parseInt(t,16),this.d=At(r,16),this.p=At(n,16),this.q=At(s,16),this.dmp1=At(i,16),this.dmq1=At(a,16),this.coeff=At(o,16);else throw"Invalid RSA private key in RSASetPrivateEx"}function Y3(e,t){var r=new ys,n=e>>1;this.e=parseInt(t,16);for(var s=new B(t,16),i=e/2-100,a=B.ONE.shiftLeft(i);;){for(;this.p=new B(e-n,1,r),!(this.p.subtract(B.ONE).gcd(s).compareTo(B.ONE)==0&&this.p.isProbablePrime(10)););for(;this.q=new B(n,1,r),!(this.q.subtract(B.ONE).gcd(s).compareTo(B.ONE)==0&&this.q.isProbablePrime(10)););if(this.p.compareTo(this.q)<=0){var o=this.p;this.p=this.q,this.q=o}var u=this.q.subtract(this.p).abs();if(!(u.bitLength()>3)}function G3(e,t,r){if(e.length!=Math.ceil(this.n.bitLength()/4))throw new Error("wrong ctext length");var n=At(e,16),s=this.doPrivate(n);return s==null?null:U3(s,this.n.bitLength()+7>>3,t,r)}ye.prototype.doPrivate=z3;ye.prototype.setPrivate=q3;ye.prototype.setPrivateEx=K3;ye.prototype.generate=Y3;ye.prototype.decrypt=W3;ye.prototype.decryptOAEP=G3;/*! (c) Tom Wu | http://www-cs-students.stanford.edu/~tjw/jsbn/ - */function _t(e,t){this.x=t,this.q=e}function J3(e){return e==this?!0:this.q.equals(e.q)&&this.x.equals(e.x)}function X3(){return this.x}function Z3(){return new _t(this.q,this.x.negate().mod(this.q))}function Q3(e){return new _t(this.q,this.x.add(e.toBigInteger()).mod(this.q))}function e6(e){return new _t(this.q,this.x.subtract(e.toBigInteger()).mod(this.q))}function t6(e){return new _t(this.q,this.x.multiply(e.toBigInteger()).mod(this.q))}function r6(){return new _t(this.q,this.x.square().mod(this.q))}function n6(e){return new _t(this.q,this.x.multiply(e.toBigInteger().modInverse(this.q)).mod(this.q))}_t.prototype.equals=J3;_t.prototype.toBigInteger=X3;_t.prototype.negate=Z3;_t.prototype.add=Q3;_t.prototype.subtract=e6;_t.prototype.multiply=t6;_t.prototype.square=r6;_t.prototype.divide=n6;_t.prototype.sqrt=function(){return new _t(this.q,this.x.sqrt().mod(this.q))};function Ue(e,t,r,n){this.curve=e,this.x=t,this.y=r,n==null?this.z=B.ONE:this.z=n,this.zinv=null}function s6(){return this.zinv==null&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.x.toBigInteger().multiply(this.zinv).mod(this.curve.q))}function i6(){return this.zinv==null&&(this.zinv=this.z.modInverse(this.curve.q)),this.curve.fromBigInteger(this.y.toBigInteger().multiply(this.zinv).mod(this.curve.q))}function a6(e){if(e==this)return!0;if(this.isInfinity())return e.isInfinity();if(e.isInfinity())return this.isInfinity();var t,r;return t=e.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(e.z)).mod(this.curve.q),t.equals(B.ZERO)?(r=e.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(e.z)).mod(this.curve.q),r.equals(B.ZERO)):!1}function o6(){return this.x==null&&this.y==null?!0:this.z.equals(B.ZERO)&&!this.y.toBigInteger().equals(B.ZERO)}function u6(){return new Ue(this.curve,this.x,this.y.negate(),this.z)}function l6(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(e.z)).mod(this.curve.q),r=e.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(e.z)).mod(this.curve.q);if(B.ZERO.equals(r))return B.ZERO.equals(t)?this.twice():this.curve.getInfinity();var n=new B("3"),s=this.x.toBigInteger(),i=this.y.toBigInteger();e.x.toBigInteger(),e.y.toBigInteger();var a=r.square(),o=a.multiply(r),u=s.multiply(a),l=t.square().multiply(this.z),h=l.subtract(u.shiftLeft(1)).multiply(e.z).subtract(o).multiply(r).mod(this.curve.q),d=u.multiply(n).multiply(t).subtract(i.multiply(o)).subtract(l.multiply(t)).multiply(e.z).add(t.multiply(o)).mod(this.curve.q),c=o.multiply(this.z).multiply(e.z).mod(this.curve.q);return new Ue(this.curve,this.curve.fromBigInteger(h),this.curve.fromBigInteger(d),c)}function c6(){if(this.isInfinity())return this;if(this.y.toBigInteger().signum()==0)return this.curve.getInfinity();var e=new B("3"),t=this.x.toBigInteger(),r=this.y.toBigInteger(),n=r.multiply(this.z),s=n.multiply(r).mod(this.curve.q),i=this.curve.a.toBigInteger(),a=t.square().multiply(e);B.ZERO.equals(i)||(a=a.add(this.z.square().multiply(i))),a=a.mod(this.curve.q);var o=a.square().subtract(t.shiftLeft(3).multiply(s)).shiftLeft(1).multiply(n).mod(this.curve.q),u=a.multiply(e).multiply(t).subtract(s.shiftLeft(1)).shiftLeft(2).multiply(s).subtract(a.square().multiply(a)).mod(this.curve.q),l=n.square().multiply(n).shiftLeft(3).mod(this.curve.q);return new Ue(this.curve,this.curve.fromBigInteger(o),this.curve.fromBigInteger(u),l)}function h6(e){if(this.isInfinity())return this;if(e.signum()==0)return this.curve.getInfinity();var t=e,r=t.multiply(new B("3")),n=this.negate(),s=this,i=this.curve.q.subtract(e),a=i.multiply(new B("3")),o=new Ue(this.curve,this.x,this.y),u=o.negate(),l;for(l=r.bitLength()-2;l>0;--l){s=s.twice();var h=r.testBit(l),d=t.testBit(l);h!=d&&(s=s.add(h?this:n))}for(l=a.bitLength()-2;l>0;--l){o=o.twice();var c=a.testBit(l),f=i.testBit(l);c!=f&&(o=o.add(c?o:u))}return s}function f6(e,t,r){var n;e.bitLength()>r.bitLength()?n=e.bitLength()-1:n=r.bitLength()-1;for(var s=this.curve.getInfinity(),i=this.add(t);n>=0;)s=s.twice(),e.testBit(n)?r.testBit(n)?s=s.add(i):s=s.add(this):r.testBit(n)&&(s=s.add(t)),--n;return s}Ue.prototype.getX=s6;Ue.prototype.getY=i6;Ue.prototype.equals=a6;Ue.prototype.isInfinity=o6;Ue.prototype.negate=u6;Ue.prototype.add=l6;Ue.prototype.twice=c6;Ue.prototype.multiply=h6;Ue.prototype.multiplyTwo=f6;function $n(e,t,r){this.q=e,this.a=this.fromBigInteger(t),this.b=this.fromBigInteger(r),this.infinity=new Ue(this,null,null)}function d6(){return this.q}function p6(){return this.a}function g6(){return this.b}function m6(e){return e==this?!0:this.q.equals(e.q)&&this.a.equals(e.a)&&this.b.equals(e.b)}function v6(){return this.infinity}function y6(e){return new _t(this.q,e)}function b6(e){switch(parseInt(e.substr(0,2),16)){case 0:return this.infinity;case 2:case 3:var t=e.substr(0,2);e.substr(2);var r=this.fromBigInteger(new B(u,16)),n=this.getA(),s=this.getB(),i=r.square().add(n).multiply(r).add(s),a=i.sqrt();return t=="03"&&(a=a.negate()),new Ue(this,r,a);case 4:case 6:case 7:var o=(e.length-2)/2,u=e.substr(2,o),l=e.substr(o+2,o);return new Ue(this,this.fromBigInteger(new B(u,16)),this.fromBigInteger(new B(l,16)));default:return null}}$n.prototype.getQ=d6;$n.prototype.getA=p6;$n.prototype.getB=g6;$n.prototype.equals=m6;$n.prototype.getInfinity=v6;$n.prototype.fromBigInteger=y6;$n.prototype.decodePointHex=b6;/*! (c) Stefan Thomas | https://github.com/bitcoinjs/bitcoinjs-lib - */_t.prototype.getByteLength=function(){return Math.floor((this.toBigInteger().bitLength()+7)/8)};Ue.prototype.getEncoded=function(e){var t=function(i,a){var o=i.toByteArrayUnsigned();if(ao.length;)o.unshift(0);return o},r=this.getX().toBigInteger(),n=this.getY().toBigInteger(),s=t(r,32);return e?n.isEven()?s.unshift(2):s.unshift(3):(s.unshift(4),s=s.concat(t(n,32))),s};Ue.decodeFrom=function(e,t){t[0];var r=t.length-1,n=t.slice(1,1+r/2),s=t.slice(1+r/2,1+r);n.unshift(0),s.unshift(0);var i=new B(n),a=new B(s);return new Ue(e,e.fromBigInteger(i),e.fromBigInteger(a))};Ue.decodeFromHex=function(e,t){t.substr(0,2);var r=t.length-2,n=t.substr(2,r/2),s=t.substr(2+r/2,r/2),i=new B(n,16),a=new B(s,16);return new Ue(e,e.fromBigInteger(i),e.fromBigInteger(a))};Ue.prototype.add2D=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;if(this.x.equals(e.x))return this.y.equals(e.y)?this.twice():this.curve.getInfinity();var t=e.x.subtract(this.x),r=e.y.subtract(this.y),n=r.divide(t),s=n.square().subtract(this.x).subtract(e.x),i=n.multiply(this.x.subtract(s)).subtract(this.y);return new Ue(this.curve,s,i)};Ue.prototype.twice2D=function(){if(this.isInfinity())return this;if(this.y.toBigInteger().signum()==0)return this.curve.getInfinity();var e=this.curve.fromBigInteger(B.valueOf(2)),t=this.curve.fromBigInteger(B.valueOf(3)),r=this.x.square().multiply(t).add(this.curve.a).divide(this.y.multiply(e)),n=r.square().subtract(this.x.multiply(e)),s=r.multiply(this.x.subtract(n)).subtract(this.y);return new Ue(this.curve,n,s)};Ue.prototype.multiply2D=function(e){if(this.isInfinity())return this;if(e.signum()==0)return this.curve.getInfinity();var t=e,r=t.multiply(new B("3")),n=this.negate(),s=this,i;for(i=r.bitLength()-2;i>0;--i){s=s.twice();var a=r.testBit(i),o=t.testBit(i);a!=o&&(s=s.add2D(a?this:n))}return s};Ue.prototype.isOnCurve=function(){var e=this.getX().toBigInteger(),t=this.getY().toBigInteger(),r=this.curve.getA().toBigInteger(),n=this.curve.getB().toBigInteger(),s=this.curve.getQ(),i=t.multiply(t).mod(s),a=e.multiply(e).multiply(e).add(r.multiply(e)).add(n).mod(s);return i.equals(a)};Ue.prototype.toString=function(){return"("+this.getX().toBigInteger().toString()+","+this.getY().toBigInteger().toString()+")"};Ue.prototype.validate=function(){var e=this.curve.getQ();if(this.isInfinity())throw new Error("Point is at infinity.");var t=this.getX().toBigInteger(),r=this.getY().toBigInteger();if(t.compareTo(B.ONE)<0||t.compareTo(e.subtract(B.ONE))>0)throw new Error("x coordinate out of bounds");if(r.compareTo(B.ONE)<0||r.compareTo(e.subtract(B.ONE))>0)throw new Error("y coordinate out of bounds");if(!this.isOnCurve())throw new Error("Point is not on the curve.");if(this.multiply(e).isInfinity())throw new Error("Point is not a scalar multiple of G.");return!0};/*! Mike Samuel (c) 2009 | code.google.com/p/json-sans-eval - */var Mg=function(){var e="(?:-?\\b(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?(?:[eE][+-]?[0-9]+)?\\b)",t='(?:[^\\0-\\x08\\x0a-\\x1f"\\\\]|\\\\(?:["/\\\\bfnrt]|u[0-9A-Fa-f]{4}))',r='(?:"'+t+'*")',n=new RegExp("(?:false|true|null|[\\{\\}\\[\\]]|"+e+"|"+r+")","g"),s=new RegExp("\\\\(?:([^u])|u(.{4}))","g"),i={'"':'"',"/":"/","\\":"\\",b:"\b",f:"\f",n:` -`,r:"\r",t:" "};function a(h,d,c){return d?i[d]:String.fromCharCode(parseInt(c,16))}var o=new String(""),u="\\",l=Object.hasOwnProperty;return function(h,d){var c=h.match(n),f,p=c[0],g=!1;p==="{"?f={}:p==="["?f=[]:(f=[],g=!0);for(var m,y=[f],x=1-g,C=c.length;x=0;)delete _[w[T]]}return d.call(b,S,_)};f=P({"":f},"")}return f}}();(typeof v=="undefined"||!v)&&(v={});(typeof v.asn1=="undefined"||!v.asn1)&&(v.asn1={});v.asn1.ASN1Util=new function(){this.integerToByteHex=function(e){var t=e.toString(16);return t.length%2==1&&(t="0"+t),t},this.bigIntToMinTwosComplementsHex=function(e){var t=e.toString(16);if(t.substr(0,1)!="-")t.length%2==1?t="0"+t:t.match(/^[0-7]/)||(t="00"+t);else{var r=t.substr(1),n=r.length;n%2==1?n+=1:t.match(/^[0-7]/)||(n+=2);for(var s="",i=0;i15)throw new Error("ASN.1 length too long to represent by 8x: n = "+r.toString(16));var i=128+s;return i.toString(16)+n},this.tohex=function(){return(this.hTLV==null||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getEncodedHex=function(){return this.tohex()},this.getValueHex=function(){return this.tohex(),this.hV},this.getFreshValueHex=function(){return""},this.setByParam=function(r){this.params=r},e!=null&&e.tlv!=null&&(this.hTLV=e.tlv,this.isModified=!1)};v.asn1.DERAbstractString=function(e){v.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=Lc(this.s).toLowerCase()},this.setStringHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.getFreshValueHex=function(){return this.hV},typeof e!="undefined"&&(typeof e=="string"?this.setString(e):typeof e.str!="undefined"?this.setString(e.str):typeof e.hex!="undefined"&&this.setStringHex(e.hex))};q(v.asn1.DERAbstractString,v.asn1.ASN1Object);v.asn1.DERAbstractTime=function(e){v.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(t){var r=t.getTime()+t.getTimezoneOffset()*6e4,n=new Date(r);return n},this.formatDate=function(t,r,n){var s=this.zeroPadding,i=this.localDateToUTC(t),a=String(i.getFullYear());r=="utc"&&(a=a.substr(2,2));var o=s(String(i.getMonth()+1),2),u=s(String(i.getDate()),2),l=s(String(i.getHours()),2),h=s(String(i.getMinutes()),2),d=s(String(i.getSeconds()),2),c=a+o+u+l+h+d;if(n===!0){var f=i.getMilliseconds();if(f!=0){var p=s(String(f),3);p=p.replace(/[0]+$/,""),c=c+"."+p}}return c+"Z"},this.zeroPadding=function(t,r){return t.length>=r?t:new Array(r-t.length+1).join("0")+t},this.setByParam=function(t){this.hV=null,this.hTLV=null,this.params=t},this.getString=function(){},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.params==null&&(this.params={}),this.params.str=t},this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.params==null&&(this.params={}),this.params.date=t},this.setByDateValue=function(t,r,n,s,i,a){var o=new Date(Date.UTC(t,r-1,n,s,i,a,0));this.setByDate(o)},this.getFreshValueHex=function(){return this.hV}};q(v.asn1.DERAbstractTime,v.asn1.ASN1Object);v.asn1.DERAbstractStructured=function(e){v.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array=t},this.appendASN1Object=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array.push(t)},this.asn1Array=new Array,typeof e!="undefined"&&typeof e.array!="undefined"&&(this.asn1Array=e.array)};q(v.asn1.DERAbstractStructured,v.asn1.ASN1Object);v.asn1.DERBoolean=function(e){v.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",e==!1?this.hTLV="010100":this.hTLV="0101ff"};q(v.asn1.DERBoolean,v.asn1.ASN1Object);v.asn1.DERInteger=function(e){v.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.params=null;var t=v.asn1.ASN1Util.bigIntToMinTwosComplementsHex;this.setByBigInteger=function(r){this.isModified=!0,this.params={bigint:r}},this.setByInteger=function(r){this.isModified=!0,this.params=r},this.setValueHex=function(r){this.isModified=!0,this.params={hex:r}},this.getFreshValueHex=function(){var r=this.params,n=null;if(r==null)throw new Error("value not set");if(typeof r=="object"&&r.hex!=null)return this.hV=r.hex,this.hV;if(typeof r=="number")n=new B(String(r),10);else if(r.int!=null)n=new B(String(r.int),10);else if(r.bigint!=null)n=r.bigint;else throw new Error("wrong parameter");return this.hV=t(n),this.hV},e!=null&&(this.params=e)};q(v.asn1.DERInteger,v.asn1.ASN1Object);v.asn1.DERBitString=function(e){if(e!==void 0&&typeof e.obj!="undefined"){var t=v.asn1.ASN1Util.newObject(e.obj);e.hex="00"+t.tohex()}v.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(r){this.hTLV=null,this.isModified=!0,this.hV=r},this.setUnusedBitsAndHexValue=function(r,n){if(r<0||7=i)break}return n};Z.getNthChildIdx=function(e,t,r){var n=Z.getChildIdx(e,t);return n[r]};Z.getIdxbyList=function(e,t,r,n){var s=Z,i,a;return r.length==0?n!==void 0&&e.substr(t,2)!==n?-1:t:(i=r.shift(),a=s.getChildIdx(e,t),i>=a.length?-1:s.getIdxbyList(e,a[i],r,n))};Z.getIdxbyListEx=function(e,t,r,n){var s=Z,i,a;if(r.length==0)return n!==void 0&&e.substr(t,2)!==n?-1:t;i=r.shift(),a=s.getChildIdx(e,t);for(var o=0,u=0;u=e.length?null:s.getTLV(e,i)};Z.getTLVbyListEx=function(e,t,r,n){var s=Z,i=s.getIdxbyListEx(e,t,r,n);return i==-1?null:s.getTLV(e,i)};Z.getVbyList=function(e,t,r,n,s){var i=Z,a,o;return a=i.getIdxbyList(e,t,r,n),a==-1||a>=e.length?null:(o=i.getV(e,a),s===!0&&(o=o.substr(2)),o)};Z.getVbyListEx=function(e,t,r,n,s){var i=Z,a,o;return a=i.getIdxbyListEx(e,t,r,n),a==-1?null:(o=i.getV(e,a),e.substr(a,2)=="03"&&s!==!1&&(o=o.substr(2)),o)};Z.getInt=function(e,t,r){r==null&&(r=-1);try{var n=e.substr(t,2);if(n!="02"&&n!="03")return r;var s=Z.getV(e,t);return n=="02"?parseInt(s,16):F6(s)}catch(i){return r}};Z.getOID=function(e,t,r){r==null&&(r=null);try{if(e.substr(t,2)!="06")return r;var n=Z.getV(e,t);return Vc(n)}catch(s){return r}};Z.getOIDName=function(e,t,r){r==null&&(r=null);try{var n=Z.getOID(e,t,r);if(n==r)return r;var s=v.asn1.x509.OID.oid2name(n);return s==""?n:s}catch(i){return r}};Z.getString=function(e,t,r){r==null&&(r=null);try{var n=Z.getV(e,t);return Gt(n)}catch(s){return r}};Z.hextooidstr=function(e){var t=function(d,c){return d.length>=c?d:new Array(c-d.length+1).join("0")+d},r=[],n=e.substr(0,2),s=parseInt(n,16);r[0]=new String(Math.floor(s/40)),r[1]=new String(s%40);for(var i=e.substr(2),a=[],o=0;o0&&(h=h+"."+u.join(".")),h};Z.dump=function(e,t,r,n){var s=Z,i=s.getV,a=s.dump,o=s.getChildIdx,u=e;e instanceof v.asn1.ASN1Object&&(u=e.tohex());var l=function(S,_){if(S.length<=_*2)return S;var w=S.substr(0,_)+"..(total "+S.length/2+"bytes).."+S.substr(S.length-_,_);return w};t===void 0&&(t={ommit_long_octet:32}),r===void 0&&(r=0),n===void 0&&(n="");var h=t.ommit_long_octet,P=u.substr(r,2);if(P=="01"){var d=i(u,r);return d=="00"?n+`BOOLEAN FALSE -`:n+`BOOLEAN TRUE -`}if(P=="02"){var d=i(u,r);return n+"INTEGER "+l(d,h)+` -`}if(P=="03"){var d=i(u,r);if(s.isASN1HEX(d.substr(2))){var c=n+`BITSTRING, encapsulates -`;return c=c+a(d.substr(2),t,0,n+" "),c}else return n+"BITSTRING "+l(d,h)+` -`}if(P=="04"){var d=i(u,r);if(s.isASN1HEX(d)){var c=n+`OCTETSTRING, encapsulates -`;return c=c+a(d,t,0,n+" "),c}else return n+"OCTETSTRING "+l(d,h)+` -`}if(P=="05")return n+`NULL -`;if(P=="06"){var f=i(u,r),p=v.asn1.ASN1Util.oidHexToInt(f),g=v.asn1.x509.OID.oid2name(p),m=p.replace(/\./g," ");return g!=""?n+"ObjectIdentifier "+g+" ("+m+`) -`:n+"ObjectIdentifier ("+m+`) -`}if(P=="0a")return n+"ENUMERATED "+parseInt(i(u,r))+` -`;if(P=="0c")return n+"UTF8String '"+Ke(i(u,r))+`' -`;if(P=="13")return n+"PrintableString '"+Ke(i(u,r))+`' -`;if(P=="14")return n+"TeletexString '"+Ke(i(u,r))+`' -`;if(P=="16")return n+"IA5String '"+Ke(i(u,r))+`' -`;if(P=="17")return n+"UTCTime "+Ke(i(u,r))+` -`;if(P=="18")return n+"GeneralizedTime "+Ke(i(u,r))+` -`;if(P=="1a")return n+"VisualString '"+Ke(i(u,r))+`' -`;if(P=="1e")return n+"BMPString '"+jg(i(u,r))+`' -`;if(P=="30"){if(u.substr(r,4)=="3000")return n+`SEQUENCE {} -`;var c=n+`SEQUENCE -`,y=o(u,r),x=t;if((y.length==2||y.length==3)&&u.substr(y[0],2)=="06"&&u.substr(y[y.length-1],2)=="04"){var g=s.oidname(i(u,y[0])),C=JSON.parse(JSON.stringify(t));C.x509ExtName=g,x=C}for(var A=0;A4?{enum:{hex:y}}:{enum:parseInt(y,16)};if(g=="30"||g=="31")return m[f[g]]=p(e),m;if(g=="14"){var b=c(y);return m[f[g]]={str:b},m}else if(g=="1e"){var b=d(y);return m[f[g]]={str:b},m}else if(":0c:12:13:16:17:18:1a:".indexOf(g)!=-1){var b=h(y);return m[f[g]]={str:b},m}else if(g.match(/^8[0-9]$/)){var b=h(y);return b==null|b==""?{tag:{tag:g,explicit:!1,hex:y}}:b.match(/[\x00-\x1F\x7F-\x9F]/)!=null||b.match(/[\u0000-\u001F\u0080–\u009F]/)!=null?{tag:{tag:g,explicit:!1,hex:y}}:{tag:{tag:g,explicit:!1,str:b}}}else if(g.match(/^a[0-9]$/))try{if(!n(y))throw new Error("not encap");return{tag:{tag:g,explicit:!0,obj:r(y)}}}catch(w){return{tag:{tag:g,explicit:!0,hex:y}}}else{var S=new v.asn1.ASN1Object;S.hV=y;var _=S.getLengthHexFromValue();return{asn1:{tlv:g+_+y}}}}}};Z.isContextTag=function(e,t){e=e.toLowerCase();var r,n;try{r=parseInt(e,16)}catch(i){return-1}if(t===void 0)return(r&192)==128;try{var s=t.match(/^\[[0-9]+\]$/);return s==null||(n=parseInt(t.substr(1,t.length-1),10),n>31)?!1:(r&192)==128&&(r&31)==n}catch(i){return!1}};Z.isASN1HEX=function(e){var t=Z;if(e.length%2==1)return!1;var r=t.getVblen(e,0),n=e.substr(0,2),s=t.getL(e,0),i=e.length-n.length-s.length;return i==r*2};Z.checkStrictDER=function(e,t,r,n,s){var i=Z;if(r===void 0){if(typeof e!="string")throw new Error("not hex string");if(e=e.toLowerCase(),!v.lang.String.isHex(e))throw new Error("not hex string");r=e.length,n=e.length/2,n<128?s=1:s=Math.ceil(n.toString(16))+1}var a=i.getL(e,t);if(a.length>s*2)throw new Error("L of TLV too long: idx="+t);var o=i.getVblen(e,t);if(o>n)throw new Error("value of L too long than hex: idx="+t);var u=i.getTLV(e,t),l=u.length-2-i.getL(e,t).length;if(l!==o*2)throw new Error("V string length and L's value not the same:"+l+"/"+o*2);if(t===0&&e.length!=u.length)throw new Error("total length and TLV length unmatch:"+e.length+"!="+u.length);var h=e.substr(t,2);if(h==="02"){var d=i.getVidx(e,t);if(e.substr(d,2)=="00"&&e.charCodeAt(d+2)<56)throw new Error("not least zeros for DER INTEGER")}if(parseInt(h,16)&32){for(var c=i.getVblen(e,t),f=0,p=i.getChildIdx(e,t),g=0;g0&&c.push(new s({tag:"a3",obj:new h(f.ext)}));var m=new v.asn1.DERSequence({array:c});return m.tohex()},this.getEncodedHex=function(){return this.tohex()},e!==void 0&&this.setByParam(e)};q(v.asn1.x509.TBSCertificate,v.asn1.ASN1Object);v.asn1.x509.Extensions=function(e){v.asn1.x509.Extensions.superclass.constructor.call(this);var t=v,r=t.asn1,n=r.DERSequence,s=r.x509;this.aParam=[],this.setByParam=function(i){this.aParam=i},this.tohex=function(){for(var i=[],a=0;a-1&&i.push(new n({int:this.pathLen}));var a=new s({array:i});return this.asn1ExtnValue=a,this.asn1ExtnValue.tohex()},this.oid="2.5.29.19",this.cA=!1,this.pathLen=-1,e!==void 0&&(e.cA!==void 0&&(this.cA=e.cA),e.pathLen!==void 0&&(this.pathLen=e.pathLen))};q(v.asn1.x509.BasicConstraints,v.asn1.x509.Extension);v.asn1.x509.CRLDistributionPoints=function(e){v.asn1.x509.CRLDistributionPoints.superclass.constructor.call(this,e);var t=v,r=t.asn1,n=r.x509;this.getExtnValueHex=function(){return this.asn1ExtnValue.tohex()},this.setByDPArray=function(s){for(var i=[],a=0;a0&&i.push(new r({array:a}))}var u=new r({array:i});return u.tohex()},this.getEncodedHex=function(){return this.tohex()},e!==void 0&&(this.params=e)};q(v.asn1.x509.PolicyInformation,v.asn1.ASN1Object);v.asn1.x509.PolicyQualifierInfo=function(e){v.asn1.x509.PolicyQualifierInfo.superclass.constructor.call(this,e);var t=v.asn1,r=t.DERSequence,n=t.DERIA5String,s=t.DERObjectIdentifier,i=t.x509.UserNotice;this.params=null,this.tohex=function(){if(this.params.cps!==void 0){var a=new r({array:[new s({oid:"1.3.6.1.5.5.7.2.1"}),new n({str:this.params.cps})]});return a.tohex()}if(this.params.unotice!=null){var a=new r({array:[new s({oid:"1.3.6.1.5.5.7.2.2"}),new i(this.params.unotice)]});return a.tohex()}},this.getEncodedHex=function(){return this.tohex()},e!==void 0&&(this.params=e)};q(v.asn1.x509.PolicyQualifierInfo,v.asn1.ASN1Object);v.asn1.x509.UserNotice=function(e){v.asn1.x509.UserNotice.superclass.constructor.call(this,e);var t=v.asn1.DERSequence;v.asn1.DERInteger;var r=v.asn1.x509.DisplayText,n=v.asn1.x509.NoticeReference;this.params=null,this.tohex=function(){var s=[];this.params.noticeref!==void 0&&s.push(new n(this.params.noticeref)),this.params.exptext!==void 0&&s.push(new r(this.params.exptext));var i=new t({array:s});return i.tohex()},this.getEncodedHex=function(){return this.tohex()},e!==void 0&&(this.params=e)};q(v.asn1.x509.UserNotice,v.asn1.ASN1Object);v.asn1.x509.NoticeReference=function(e){v.asn1.x509.NoticeReference.superclass.constructor.call(this,e);var t=v.asn1.DERSequence,r=v.asn1.DERInteger,n=v.asn1.x509.DisplayText;this.params=null,this.tohex=function(){var s=[];if(this.params.org!==void 0&&s.push(new n(this.params.org)),this.params.noticenum!==void 0){for(var i=[],a=this.params.noticenum,o=0;o0)for(var i=0;i0;s++){var i=t.shift();if(r===!0){var a=n.pop(),o=(a+","+i).replace(/\\,/g,",");n.push(o),r=!1}else n.push(i);i.substr(-1,1)==="\\"&&(r=!0)}return n=n.map(function(u){return u.replace("/","\\/")}),n.reverse(),"/"+n.join("/")};v.asn1.x509.X500Name.ldapToOneline=function(e){return v.asn1.x509.X500Name.ldapToCompat(e)};v.asn1.x509.RDN=function(e){v.asn1.x509.RDN.superclass.constructor.call(this),this.asn1Array=[],this.paramArray=[],this.sRule="utf8";var t=v.asn1.x509.AttributeTypeAndValue;this.setByParam=function(r){r.rule!==void 0&&(this.sRule=r.rule),r.str!==void 0&&this.addByMultiValuedString(r.str),r.array!==void 0&&(this.paramArray=r.array)},this.addByString=function(r){this.asn1Array.push(new v.asn1.x509.AttributeTypeAndValue({str:r,rule:this.sRule}))},this.addByMultiValuedString=function(r){for(var n=v.asn1.x509.RDN.parseString(r),s=0;s0)for(var r=0;r0;s++){var i=t.shift();if(r===!0){var a=n.pop(),o=(a+"+"+i).replace(/\\\+/g,"+");n.push(o),r=!1}else n.push(i);i.substr(-1,1)==="\\"&&(r=!0)}for(var u=!1,l=[],s=0;n.length>0;s++){var i=n.shift();if(u===!0){var h=l.pop();if(i.match(/"$/)){var o=(h+"+"+i).replace(/^([^=]+)="(.*)"$/,"$1=$2");l.push(o),u=!1}else l.push(h+"+"+i)}else l.push(i);i.match(/^[^=]+="/)&&(u=!0)}return l};v.asn1.x509.AttributeTypeAndValue=function(e){v.asn1.x509.AttributeTypeAndValue.superclass.constructor.call(this),this.sRule="utf8",this.sType=null,this.sValue=null,this.dsType=null;var t=v,r=t.asn1,n=r.DERSequence,s=r.DERUTF8String,i=r.DERPrintableString,a=r.DERTeletexString,o=r.DERIA5String,u=r.DERVisibleString,l=r.DERBMPString,h=t.lang.String.isMail,d=t.lang.String.isPrintable;this.setByParam=function(c){if(c.rule!==void 0&&(this.sRule=c.rule),c.ds!==void 0&&(this.dsType=c.ds),c.value===void 0&&c.str!==void 0){var f=c.str,p=f.match(/^([^=]+)=(.+)$/);if(p)this.sType=p[1],this.sValue=p[2];else throw new Error("malformed attrTypeAndValueStr: "+attrTypeAndValueStr)}else this.sType=c.type,this.sValue=c.value},this.setByString=function(c,f){f!==void 0&&(this.sRule=f);var p=c.match(/^([^=]+)=(.+)$/);if(p)this.setByAttrTypeAndValueStr(p[1],p[2]);else throw new Error("malformed attrTypeAndValueStr: "+attrTypeAndValueStr)},this._getDsType=function(){var c=this.sType,f=this.sValue,p=this.sRule;return p==="prn"?c=="CN"&&h(f)?"ia5":d(f)?"prn":"utf8":p==="utf8"?c=="CN"&&h(f)?"ia5":c=="C"?"prn":"utf8":"utf8"},this.setByAttrTypeAndValueStr=function(c,f,p){p!==void 0&&(this.sRule=p),this.sType=c,this.sValue=f},this.getValueObj=function(c,f){if(c=="utf8")return new s({str:f});if(c=="prn")return new i({str:f});if(c=="tel")return new a({str:f});if(c=="ia5")return new o({str:f});if(c=="vis")return new u({str:f});if(c=="bmp")return new l({str:f});throw new Error("unsupported directory string type: type="+c+" value="+f)},this.tohex=function(){this.dsType==null&&(this.dsType=this._getDsType());var c=v.asn1.x509.OID.atype2obj(this.sType),f=this.getValueObj(this.dsType,this.sValue),p=new n({array:[c,f]});return this.TLV=p.tohex(),this.TLV},this.getEncodedHex=function(){return this.tohex()},e!==void 0&&this.setByParam(e)};q(v.asn1.x509.AttributeTypeAndValue,v.asn1.ASN1Object);v.asn1.x509.SubjectPublicKeyInfo=function(e){v.asn1.x509.SubjectPublicKeyInfo.superclass.constructor.call(this);var t=v,r=t.asn1,n=r.DERInteger,s=r.DERBitString,i=r.DERObjectIdentifier,a=r.DERSequence,o=r.ASN1Util.newObject,u=r.x509,l=u.AlgorithmIdentifier,h=t.crypto;h.ECDSA,h.DSA,this.getASN1Object=function(){if(this.asn1AlgId==null||this.asn1SubjPKey==null)throw"algId and/or subjPubKey not set";var d=new a({array:[this.asn1AlgId,this.asn1SubjPKey]});return d},this.tohex=function(){var d=this.getASN1Object();return this.hTLV=d.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},this.setPubKey=function(d){try{if(d instanceof ye){var c=o({seq:[{int:{bigint:d.n}},{int:{int:d.e}}]}),f=c.tohex();this.asn1AlgId=new l({name:"rsaEncryption"}),this.asn1SubjPKey=new s({hex:"00"+f})}}catch(m){}try{if(d instanceof v.crypto.ECDSA){var p=new i({name:d.curveName});this.asn1AlgId=new l({name:"ecPublicKey",asn1params:p}),this.asn1SubjPKey=new s({hex:"00"+d.pubKeyHex})}}catch(m){}try{if(d instanceof v.crypto.DSA){var p=new o({seq:[{int:{bigint:d.p}},{int:{bigint:d.q}},{int:{bigint:d.g}}]});this.asn1AlgId=new l({name:"dsa",asn1params:p});var g=new n({bigint:d.y});this.asn1SubjPKey=new s({hex:"00"+g.tohex()})}}catch(m){}},e!==void 0&&this.setPubKey(e)};q(v.asn1.x509.SubjectPublicKeyInfo,v.asn1.ASN1Object);v.asn1.x509.Time=function(e){v.asn1.x509.Time.superclass.constructor.call(this);var t=v,r=t.asn1,n=r.DERUTCTime,s=r.DERGeneralizedTime;this.params=null,this.type=null,this.setTimeParams=function(i){this.timeParams=i},this.setByParam=function(i){this.params=i},this.getType=function(i){return i.match(/^[0-9]{12}Z$/)?"utc":i.match(/^[0-9]{14}Z$/)?"gen":i.match(/^[0-9]{12}\.[0-9]+Z$/)?"utc":i.match(/^[0-9]{14}\.[0-9]+Z$/)?"gen":null},this.tohex=function(){var i=this.params,a=null;if(typeof i=="string"&&(i={str:i}),i!=null&&i.str&&(i.type==null||i.type==null)&&(i.type=this.getType(i.str)),i!=null&&i.str?(i.type=="utc"&&(a=new n(i.str)),i.type=="gen"&&(a=new s(i.str))):this.type=="gen"?a=new s:a=new n,a==null)throw new Error("wrong setting for Time");return this.TLV=a.tohex(),this.TLV},this.getEncodedHex=function(){return this.tohex()},e!=null&&this.setByParam(e)};v.asn1.x509.Time_bak=function(e){v.asn1.x509.Time_bak.superclass.constructor.call(this);var t=v,r=t.asn1,n=r.DERUTCTime,s=r.DERGeneralizedTime;this.setTimeParams=function(i){this.timeParams=i},this.tohex=function(){var i=null;return this.timeParams!=null?this.type=="utc"?i=new n(this.timeParams):i=new s(this.timeParams):this.type=="utc"?i=new n:i=new s,this.TLV=i.tohex(),this.TLV},this.getEncodedHex=function(){return this.tohex()},this.type="utc",e!==void 0&&(e.type!==void 0?this.type=e.type:e.str!==void 0&&(e.str.match(/^[0-9]{12}Z$/)&&(this.type="utc"),e.str.match(/^[0-9]{14}Z$/)&&(this.type="gen")),this.timeParams=e)};q(v.asn1.x509.Time,v.asn1.ASN1Object);v.asn1.x509.AlgorithmIdentifier=function(e){v.asn1.x509.AlgorithmIdentifier.superclass.constructor.call(this),this.nameAlg=null,this.asn1Alg=null,this.asn1Params=null,this.paramEmpty=!1;var t=v,r=t.asn1,n=r.x509.AlgorithmIdentifier.PSSNAME2ASN1TLV;if(this.tohex=function(){if(this.nameAlg===null&&this.asn1Alg===null)throw new Error("algorithm not specified");if(this.nameAlg!==null){var i=null;for(var a in n)a===this.nameAlg&&(i=n[a]);if(i!==null)return this.hTLV=i,this.hTLV}this.nameAlg!==null&&this.asn1Alg===null&&(this.asn1Alg=r.x509.OID.name2obj(this.nameAlg));var o=[this.asn1Alg];this.asn1Params!==null&&o.push(this.asn1Params);var u=new r.DERSequence({array:o});return this.hTLV=u.tohex(),this.hTLV},this.getEncodedHex=function(){return this.tohex()},e!==void 0&&(e.name!==void 0&&(this.nameAlg=e.name),e.asn1params!==void 0&&(this.asn1Params=e.asn1params),e.paramempty!==void 0&&(this.paramEmpty=e.paramempty)),this.asn1Params===null&&this.paramEmpty===!1&&this.nameAlg!==null){this.nameAlg.name!==void 0&&(this.nameAlg=this.nameAlg.name);var s=this.nameAlg.toLowerCase();s.substr(-7,7)!=="withdsa"&&s.substr(-9,9)!=="withecdsa"&&(this.asn1Params=new r.DERNull)}};q(v.asn1.x509.AlgorithmIdentifier,v.asn1.ASN1Object);v.asn1.x509.AlgorithmIdentifier.PSSNAME2ASN1TLV={SHAwithRSAandMGF1:"300d06092a864886f70d01010a3000",SHA256withRSAandMGF1:"303d06092a864886f70d01010a3030a00d300b0609608648016503040201a11a301806092a864886f70d010108300b0609608648016503040201a203020120",SHA384withRSAandMGF1:"303d06092a864886f70d01010a3030a00d300b0609608648016503040202a11a301806092a864886f70d010108300b0609608648016503040202a203020130",SHA512withRSAandMGF1:"303d06092a864886f70d01010a3030a00d300b0609608648016503040203a11a301806092a864886f70d010108300b0609608648016503040203a203020140"};v.asn1.x509.GeneralName=function(e){v.asn1.x509.GeneralName.superclass.constructor.call(this);var t=v,r=t.asn1,n=r.x509,s=n.X500Name,i=n.OtherName,a=r.DERIA5String;r.DERPrintableString;var o=r.DEROctetString,u=r.DERTaggedObject,l=r.ASN1Object,h=Error;this.params=null,this.setByParam=function(d){this.params=d},this.tohex=function(){var d=this.params,c,p,f,p=!1;if(d.other!==void 0)c="a0",f=new i(d.other);else if(d.rfc822!==void 0)c="81",f=new a({str:d.rfc822});else if(d.dns!==void 0)c="82",f=new a({str:d.dns});else if(d.dn!==void 0)c="a4",p=!0,typeof d.dn=="string"?f=new s({str:d.dn}):d.dn instanceof v.asn1.x509.X500Name?f=d.dn:f=new s(d.dn);else if(d.ldapdn!==void 0)c="a4",p=!0,f=new s({ldapstr:d.ldapdn});else if(d.certissuer!==void 0||d.certsubj!==void 0){c="a4",p=!0;var g,m,y=null;if(d.certsubj!==void 0?(g=!1,m=d.certsubj):(g=!0,m=d.certissuer),m.match(/^[0-9A-Fa-f]+$/),m.indexOf("-----BEGIN ")!=-1&&(y=vt(m)),y==null)throw new Error("certsubj/certissuer not cert");var x=new we;x.hex=y;var C;g?C=x.getIssuerHex():C=x.getSubjectHex(),f=new l,f.hTLV=C}else if(d.uri!==void 0)c="86",f=new a({str:d.uri});else if(d.ip!==void 0){c="87";var A,P=d.ip;try{if(P.match(/^[0-9a-f]+$/)){var b=P.length;if(b==8||b==16||b==32||b==64)A=P;else throw"err"}else A=Hg(P)}catch(_){throw new h("malformed IP address: "+d.ip+":"+_.message)}f=new o({hex:A})}else throw new h("improper params");var S=new u({tag:c,explicit:p,obj:f});return S.tohex()},this.getEncodedHex=function(){return this.tohex()},e!==void 0&&this.setByParam(e)};q(v.asn1.x509.GeneralName,v.asn1.ASN1Object);v.asn1.x509.GeneralNames=function(e){v.asn1.x509.GeneralNames.superclass.constructor.call(this);var t=v,r=t.asn1;this.setByParamArray=function(n){for(var s=0;s0){for(var f=i(d.valhex,c[0]),p=h(f,0),g=[],m=0;m1){var C=i(d.valhex,c[1]);d.polhex=C}delete d.valhex},this.setSignaturePolicyIdentifier=function(d){var c=h(d.valhex,0);if(c.length>0){var f=n.getOID(d.valhex,c[0]);d.oid=f}if(c.length>1){var p=new t,g=h(d.valhex,c[1]),m=i(d.valhex,g[0]),y=p.getAlgorithmIdentifierName(m);d.alg=y;var x=s(d.valhex,g[1]);d.hash=x}delete d.valhex},this.setSigningCertificateV2=function(d){var c=h(d.valhex,0);if(c.length>0){for(var f=i(d.valhex,c[0]),p=h(f,0),g=[],m=0;m1){var C=i(d.valhex,c[1]);d.polhex=C}delete d.valhex},this.getESSCertID=function(d){var c={},f=h(d,0);if(f.length>0){var p=s(d,f[0]);c.hash=p}if(f.length>1){var g=i(d,f[1]),m=this.getIssuerSerial(g);m.serial!=null&&(c.serial=m.serial),m.issuer!=null&&(c.issuer=m.issuer)}return c},this.getESSCertIDv2=function(d){var c={},f=h(d,0);if(f.length<1||3p+1){var y=i(d,f[p+1]),x=this.getIssuerSerial(y);c.issuer=x.issuer,c.serial=x.serial}return c},this.getIssuerSerial=function(d){var c={},f=h(d,0),p=i(d,f[0]),g=r.getGeneralNames(p),m=g[0].dn;c.issuer=m;var y=s(d,f[1]);return c.serial={hex:y},c},this.getCertificateSet=function(d){for(var c=h(d,0),f=[],p=0;p=0;c--)d+=h[c];return d}else{if(typeof u=="string"&&o[u]!=null)return Dl([u],o);if(typeof u=="object"&&u.length!=null)return Dl(u,o);throw new t("wrong params")}},this.tohex=function(){this.params;var u=this.getBinValue();return new s({bin:u}).tohex()},this.getEncodedHex=function(){return this.tohex()},e!=null&&this.setByParam(e)};q(v.asn1.tsp.PKIFailureInfo,v.asn1.ASN1Object);v.asn1.tsp.AbstractTSAAdapter=function(e){this.getTSTHex=function(t,r){throw"not implemented yet"}};v.asn1.tsp.SimpleTSAAdapter=function(e){var t=v,r=t.asn1,n=r.tsp,s=t.crypto.Util.hashHex;n.SimpleTSAAdapter.superclass.constructor.call(this),this.params=null,this.serial=0,this.getTSTHex=function(i,a){var o=s(i,a);this.params.econtent.content.messageImprint={alg:a,hash:o},this.params.econtent.content.serial={int:this.serial++};var u=Math.floor(Math.random()*1e9);this.params.econtent.content.nonce={int:u};var l=new n.TimeStampToken(this.params);return l.getContentInfoEncodedHex()},e!==void 0&&(this.params=e)};q(v.asn1.tsp.SimpleTSAAdapter,v.asn1.tsp.AbstractTSAAdapter);v.asn1.tsp.FixedTSAAdapter=function(e){var t=v,r=t.asn1,n=r.tsp,s=t.crypto.Util.hashHex;n.FixedTSAAdapter.superclass.constructor.call(this),this.params=null,this.getTSTHex=function(i,a){var o=s(i,a);this.params.econtent.content.messageImprint={alg:a,hash:o};var u=new n.TimeStampToken(this.params);return u.getContentInfoEncodedHex()},e!==void 0&&(this.params=e)};q(v.asn1.tsp.FixedTSAAdapter,v.asn1.tsp.AbstractTSAAdapter);v.asn1.tsp.TSPUtil=new function(){};v.asn1.tsp.TSPUtil.newTimeStampToken=function(e){return new v.asn1.tsp.TimeStampToken(e)};v.asn1.tsp.TSPUtil.parseTimeStampReq=function(e){var t=new v.asn1.tsp.TSPParser;return t.getTimeStampReq(e)};v.asn1.tsp.TSPUtil.parseMessageImprint=function(e){var t=new v.asn1.tsp.TSPParser;return t.getMessageImprint(e)};v.asn1.tsp.TSPParser=function(){var e=we,t=new e,r=Z,n=r.getV,s=r.getTLV,i=r.getIdxbyList;r.getTLVbyListEx;var a=r.getChildIdx,o=["granted","grantedWithMods","rejection","waiting","revocationWarning","revocationNotification"],u={0:"badAlg",2:"badRequest",5:"badDataFormat",14:"timeNotAvailable",15:"unacceptedPolicy",16:"unacceptedExtension",17:"addInfoNotAvailable",25:"systemFailure"};this.getResponse=function(l){var h=a(l,0);if(h.length==1)return this.getPKIStatusInfo(s(l,h[0]));if(h.length>1){var d=this.getPKIStatusInfo(s(l,h[0])),c=s(l,h[1]),f=this.getToken(c);return f.statusinfo=d,f}},this.getToken=function(l){var h=new v.asn1.cms.CMSParser,d=h.getCMSSignedData(l);return this.setTSTInfo(d),d},this.setTSTInfo=function(l){var h=l.econtent;if(h.type=="tstinfo"){var d=h.content.hex,c=this.getTSTInfo(d);h.content=c}},this.getTSTInfo=function(l){var h={},d=a(l,0),c=n(l,d[1]);h.policy=Vc(c);var f=s(l,d[2]);h.messageImprint=this.getMessageImprint(f);var p=n(l,d[3]);h.serial={hex:p};var g=n(l,d[4]);h.genTime={str:Ke(g)};var m=0;if(d.length>5&&l.substr(d[5],2)=="30"){var y=s(l,d[5]);h.accuracy=this.getAccuracy(y),m++}if(d.length>5+m&&l.substr(d[5+m],2)=="01"){var x=n(l,d[5+m]);x=="ff"&&(h.ordering=!0),m++}if(d.length>5+m&&l.substr(d[5+m],2)=="02"){var C=n(l,d[5+m]);h.nonce={hex:C},m++}if(d.length>5+m&&l.substr(d[5+m],2)=="a0"){var A=s(l,d[5+m]);A="30"+A.substr(2),pGeneralNames=t.getGeneralNames(A);var P=pGeneralNames[0].dn;h.tsa=P,m++}if(d.length>5+m&&l.substr(d[5+m],2)=="a1"){var b=s(l,d[5+m]);b="30"+b.substr(2);var S=t.getExtParamArray(b);h.ext=S,m++}return h},this.getAccuracy=function(l){for(var h={},d=a(l,0),c=0;c1&&l.substr(d[1],2)=="30"){var g=s(l,d[1]);h.statusstr=this.getPKIFreeText(g),c++}if(d.length>c&&l.substr(d[1+c],2)=="03"){var m=s(l,d[1+c]);h.failinfo=this.getPKIFailureInfo(m)}return h},this.getPKIFreeText=function(l){for(var h=[],d=a(l,0),c=0;c>6,u=128|a&63;return Ke(o.toString(16)+u.toString(16))}var o=224|(i&240)>>4,u=128|(i&15)<<2|(a&192)>>6,l=128|a&63;return Ke(o.toString(16)+u.toString(16)+l.toString(16))}var r=e.match(/.{4}/g),n=r.map(t);return n.join("")}function Lg(e){for(var t=encodeURIComponent(e),r="",n=0;n"7"?"00"+e:e}function T6(e){var t=function(o){var u=o.toString(16);return u.length==1&&(u="0"+u),u},r=function(o){var u="",l=parseInt(o,10),h=l.toString(2),d=7-h.length%7;d==7&&(d=0);for(var c="",f=0;f0&&(l=l+"."+o.join(".")),l}catch(h){return null}}var ed=function(e,t,r){return r==null&&(r="0"),e.length>=t?e:new Array(t-e.length+1).join(r)+e};function F6(e){if(e.length%2!=0||(e=e.toLowerCase(),e.match(/^[0-9a-f]+$/)==null))return-1;try{var t=e.substr(0,2);if(t=="00")return parseInt(e.substr(2),16);var r=parseInt(t,16);if(r>7)return-1;var n=e.substr(2),s=parseInt(n,16).toString(2);s=="0"&&(s="00000000"),s=s.slice(0,0-r);var i=parseInt(s,2);return i==NaN?-1:i}catch(a){return-1}}function O6(e){if(typeof e!="string"||e.length%2!=0||!e.match(/^[0-9a-f]+$/))return null;try{var t=parseInt(e.substr(0,2),16);if(t<0||7=0;n--)i+=s[n];return i}function Ps(e,n,r){if(typeof e=="object"){for(var n=String(n).split("."),s=0;ss)throw"key is too short for SigAlg: keylen="+r+","+t;for(var i="0001",a="00"+n,o="",u=s-i.length-a.length,l=0;l=0||p.compareTo(n.ONE)<0||p.compareTo(m)>=0)return!1;var x=p.modInverse(m),C=c.multiply(x).mod(m),A=f.multiply(x).mod(m),P=y.multiply(C).add(g.multiply(A)),b=P.getX().toBigInteger().mod(m);return b.equals(f)},this.serializeSig=function(c,f){var p=c.toByteArraySigned(),g=f.toByteArraySigned(),m=[];return m.push(2),m.push(p.length),m=m.concat(p),m.push(2),m.push(g.length),m=m.concat(g),m.unshift(m.length),m.unshift(48),m},this.parseSig=function(c){var f;if(c[0]!=48)throw new Error("Signature not a valid DERSequence");if(f=2,c[f]!=2)throw new Error("First element in signature must be a DERInteger");var p=c.slice(f+2,f+2+c[f+1]);if(f+=2+c[f+1],c[f]!=2)throw new Error("Second element in signature must be a DERInteger");var g=c.slice(f+2,f+2+c[f+1]);f+=2+c[f+1];var m=n.fromByteArrayUnsigned(p),y=n.fromByteArrayUnsigned(g);return{r:m,s:y}},this.parseSigCompact=function(c){if(c.length!==65)throw"Signature has the wrong length";var f=c[0]-27;if(f<0||f>7)throw"Invalid signature type";var p=this.ecparams.n,g=n.fromByteArrayUnsigned(c.slice(1,33)).mod(p),m=n.fromByteArrayUnsigned(c.slice(33,65)).mod(p);return{r:g,s:m,i:f}},this.readPKCS5PrvKeyHex=function(c){if(h(c)===!1)throw new Error("not ASN.1 hex string");var f,p,g;try{f=l(c,0,["[0]",0],"06"),p=l(c,0,[1],"04");try{g=l(c,0,["[1]",0],"03")}catch(m){}}catch(m){throw new Error("malformed PKCS#1/5 plain ECC private key")}if(this.curveName=o(f),this.curveName===void 0)throw"unsupported curve name";this.setNamedCurve(this.curveName),this.setPublicKeyHex(g),this.setPrivateKeyHex(p),this.isPublic=!1},this.readPKCS8PrvKeyHex=function(c){if(h(c)===!1)throw new r("not ASN.1 hex string");var f,p,g,m;try{f=l(c,0,[1,0],"06"),p=l(c,0,[1,1],"06"),g=l(c,0,[2,0,1],"04");try{m=l(c,0,[2,0,"[1]",0],"03")}catch(y){}}catch(y){throw new r("malformed PKCS#8 plain ECC private key")}if(this.curveName=o(p),this.curveName===void 0)throw new r("unsupported curve name");this.setNamedCurve(this.curveName),this.setPublicKeyHex(m),this.setPrivateKeyHex(g),this.isPublic=!1},this.readPKCS8PubKeyHex=function(c){if(h(c)===!1)throw new r("not ASN.1 hex string");var f,p,g;try{f=l(c,0,[0,0],"06"),p=l(c,0,[0,1],"06"),g=l(c,0,[1],"03")}catch(m){throw new r("malformed PKCS#8 ECC public key")}if(this.curveName=o(p),this.curveName===null)throw new r("unsupported curve name");this.setNamedCurve(this.curveName),this.setPublicKeyHex(g)},this.readCertPubKeyHex=function(c,f){if(h(c)===!1)throw new r("not ASN.1 hex string");var p,g;try{p=l(c,0,[0,5,0,1],"06"),g=l(c,0,[0,5,1],"03")}catch(m){throw new r("malformed X.509 certificate ECC public key")}if(this.curveName=o(p),this.curveName===null)throw new r("unsupported curve name");this.setNamedCurve(this.curveName),this.setPublicKeyHex(g)},e!==void 0&&e.curve!==void 0&&(this.curveName=e.curve),this.curveName===void 0&&(this.curveName=t),this.setNamedCurve(this.curveName),e!==void 0&&(e.prv!==void 0&&this.setPrivateKeyHex(e.prv),e.pub!==void 0&&this.setPublicKeyHex(e.pub))};v.crypto.ECDSA.parseSigHex=function(e){var t=v.crypto.ECDSA.parseSigHexInHexRS(e),r=new B(t.r,16),n=new B(t.s,16);return{r,s:n}};v.crypto.ECDSA.parseSigHexInHexRS=function(e){var t=Z,r=t.getChildIdx,n=t.getV;if(t.checkStrictDER(e,0),e.substr(0,2)!="30")throw new Error("signature is not a ASN.1 sequence");var s=r(e,0);if(s.length!=2)throw new Error("signature shall have two elements");var i=s[0],a=s[1];if(e.substr(i,2)!="02")throw new Error("1st item not ASN.1 integer");if(e.substr(a,2)!="02")throw new Error("2nd item not ASN.1 integer");var o=n(e,i),u=n(e,a);return{r:o,s:u}};v.crypto.ECDSA.asn1SigToConcatSig=function(e){var t=v.crypto.ECDSA.parseSigHexInHexRS(e),r=t.r,n=t.s;if(r.length>=130&&r.length<=134){if(r.length%2!=0)throw Error("unknown ECDSA sig r length error");if(n.length%2!=0)throw Error("unknown ECDSA sig s length error");r.substr(0,2)=="00"&&(r=r.substr(2)),n.substr(0,2)=="00"&&(n=n.substr(2));var s=Math.max(r.length,n.length);return r=("000000"+r).slice(-s),n=("000000"+n).slice(-s),r+n}if(r.substr(0,2)=="00"&&r.length%32==2&&(r=r.substr(2)),n.substr(0,2)=="00"&&n.length%32==2&&(n=n.substr(2)),r.length%32==30&&(r="00"+r),n.length%32==30&&(n="00"+n),r.length%32!=0)throw Error("unknown ECDSA sig r length error");if(n.length%32!=0)throw Error("unknown ECDSA sig s length error");return r+n};v.crypto.ECDSA.concatSigToASN1Sig=function(e){if(e.length%4!=0)throw Error("unknown ECDSA concatinated r-s sig length error");var t=e.substr(0,e.length/2),r=e.substr(e.length/2);return v.crypto.ECDSA.hexRSSigToASN1Sig(t,r)};v.crypto.ECDSA.hexRSSigToASN1Sig=function(e,t){var r=new B(e,16),n=new B(t,16);return v.crypto.ECDSA.biRSSigToASN1Sig(r,n)};v.crypto.ECDSA.biRSSigToASN1Sig=function(e,t){var r=v.asn1,n=new r.DERInteger({bigint:e}),s=new r.DERInteger({bigint:t}),i=new r.DERSequence({array:[n,s]});return i.tohex()};v.crypto.ECDSA.getName=function(e){return e==="2b8104001f"?"secp192k1":e==="2a8648ce3d030107"?"secp256r1":e==="2b8104000a"?"secp256k1":e==="2b81040021"?"secp224r1":e==="2b81040022"?"secp384r1":e==="2b81040023"?"secp521r1":"|secp256r1|NIST P-256|P-256|prime256v1|".indexOf(e)!==-1?"secp256r1":"|secp256k1|".indexOf(e)!==-1?"secp256k1":"|secp224r1|NIST P-224|P-224|".indexOf(e)!==-1?"secp224r1":"|secp384r1|NIST P-384|P-384|".indexOf(e)!==-1?"secp384r1":"|secp521r1|NIST P-521|P-521|".indexOf(e)!==-1?"secp521r1":null};(typeof v=="undefined"||!v)&&(v={});(typeof v.crypto=="undefined"||!v.crypto)&&(v.crypto={});v.crypto.ECParameterDB=new function(){var e={},t={};function r(n){return new B(n,16)}this.getByName=function(n){var s=n;if(typeof t[s]!="undefined"&&(s=t[n]),typeof e[s]!="undefined")return e[s];throw"unregistered EC curve name: "+s},this.regist=function(n,s,i,a,o,u,l,h,d,c,f,p){e[n]={};var g=r(i),m=r(a),y=r(o),x=r(u),C=r(l),A=new $n(g,m,y),P=A.decodePointHex("04"+h+d);e[n].name=n,e[n].keylen=s,e[n].keycharlen=Math.ceil(s/8)*2,e[n].curve=A,e[n].G=P,e[n].n=x,e[n].h=C,e[n].oid=f,e[n].info=p;for(var b=0;b1?c=new B(o,16):c=null,f=new B(u,16),this.setPrivate(l,h,d,c,f)},this.setPublic=function(s,i,a,o){this.isPublic=!0,this.p=s,this.q=i,this.g=a,this.y=o,this.x=null},this.setPublicHex=function(s,i,a,o){var u,l,h,d;u=new B(s,16),l=new B(i,16),h=new B(a,16),d=new B(o,16),this.setPublic(u,l,h,d)},this.signWithMessageHash=function(s){var i=this.p,a=this.q,o=this.g;this.y;var u=this.x,l=v.crypto.Util.getRandomBigIntegerMinToMax(B.ONE.add(B.ONE),a.subtract(B.ONE)),h=s.substr(0,a.bitLength()/4),d=new B(h,16),c=o.modPow(l,i).mod(a),f=l.modInverse(a).multiply(d.add(u.multiply(c))).mod(a),p=v.asn1.ASN1Util.jsonToASN1HEX({seq:[{int:{bigint:c}},{int:{bigint:f}}]});return p},this.verifyWithMessageHash=function(s,i){var a=this.p,o=this.q,u=this.g,l=this.y,h=this.parseASN1Signature(i),d=h[0],c=h[1],f=s.substr(0,o.bitLength()/4),p=new B(f,16);if(B.ZERO.compareTo(d)>0||d.compareTo(o)>0||B.ZERO.compareTo(c)>=0||c.compareTo(o)>0)throw"invalid DSA signature";var g=c.modInverse(o),m=p.multiply(g).mod(o),y=d.multiply(g).mod(o),x=u.modPow(m,a).multiply(l.modPow(y,a)).mod(a).mod(o);return x.compareTo(d)==0},this.parseASN1Signature=function(s){try{var i=new n(t(s,0,[0],"02"),16),a=new n(t(s,0,[1],"02"),16);return[i,a]}catch(o){throw new Error("malformed ASN.1 DSA signature")}},this.readPKCS5PrvKeyHex=function(s){var i,a,o,u,l;if(r(s)===!1)throw new Error("not ASN.1 hex string");try{i=t(s,0,[1],"02"),a=t(s,0,[2],"02"),o=t(s,0,[3],"02"),u=t(s,0,[4],"02"),l=t(s,0,[5],"02")}catch(h){throw new Error("malformed PKCS#1/5 plain DSA private key")}this.setPrivateHex(i,a,o,u,l)},this.readPKCS8PrvKeyHex=function(s){var i,a,o,u;if(r(s)===!1)throw new Error("not ASN.1 hex string");try{i=t(s,0,[1,1,0],"02"),a=t(s,0,[1,1,1],"02"),o=t(s,0,[1,1,2],"02"),u=t(s,0,[2,0],"02")}catch(l){throw new Error("malformed PKCS#8 plain DSA private key")}this.setPrivateHex(i,a,o,null,u)},this.readPKCS8PubKeyHex=function(s){var i,a,o,u;if(r(s)===!1)throw new Error("not ASN.1 hex string");try{i=t(s,0,[0,1,0],"02"),a=t(s,0,[0,1,1],"02"),o=t(s,0,[0,1,2],"02"),u=t(s,0,[1,0],"02")}catch(l){throw new Error("malformed PKCS#8 DSA public key")}this.setPublicHex(i,a,o,u)},this.readCertPubKeyHex=function(s,i){var a,o,u,l;if(r(s)===!1)throw new Error("not ASN.1 hex string");try{a=t(s,0,[0,5,0,1,0],"02"),o=t(s,0,[0,5,0,1,1],"02"),u=t(s,0,[0,5,0,1,2],"02"),l=t(s,0,[0,5,1,0],"02")}catch(h){throw new Error("malformed X.509 certificate DSA public key")}this.setPublicHex(a,o,u,l)}};var Le=function(){var e=function(p,g,m){return n(le.AES,p,g,m)},t=function(p,g,m){return n(le.TripleDES,p,g,m)},r=function(p,g,m){return n(le.DES,p,g,m)},n=function(p,g,m,y){var x=le.enc.Hex.parse(g),C=le.enc.Hex.parse(m),A=le.enc.Hex.parse(y),P={};P.key=C,P.iv=A,P.ciphertext=x;var b=p.decrypt(P,C,{iv:A});return le.enc.Hex.stringify(b)},s=function(p,g,m){return o(le.AES,p,g,m)},i=function(p,g,m){return o(le.TripleDES,p,g,m)},a=function(p,g,m){return o(le.DES,p,g,m)},o=function(p,g,m,y){var x=le.enc.Hex.parse(g),C=le.enc.Hex.parse(m),A=le.enc.Hex.parse(y),P=p.encrypt(x,C,{iv:A}),b=le.enc.Hex.parse(P.toString()),S=le.enc.Base64.stringify(b);return S},u={"AES-256-CBC":{proc:e,eproc:s,keylen:32,ivlen:16},"AES-192-CBC":{proc:e,eproc:s,keylen:24,ivlen:16},"AES-128-CBC":{proc:e,eproc:s,keylen:16,ivlen:16},"DES-EDE3-CBC":{proc:t,eproc:i,keylen:24,ivlen:8},"DES-CBC":{proc:r,eproc:a,keylen:8,ivlen:8}},l=function(p){var g=le.lib.WordArray.random(p),m=le.enc.Hex.stringify(g);return m},h=function(p){var g={},m=p.match(new RegExp("DEK-Info: ([^,]+),([0-9A-Fa-f]+)","m"));m&&(g.cipher=m[1],g.ivsalt=m[2]);var y=p.match(new RegExp("-----BEGIN ([A-Z]+) PRIVATE KEY-----"));y&&(g.type=y[1]);var x=-1,C=0;p.indexOf(`\r -\r -`)!=-1&&(x=p.indexOf(`\r -\r -`),C=2),p.indexOf(` - -`)!=-1&&(x=p.indexOf(` - -`),C=1);var A=p.indexOf("-----END");if(x!=-1&&A!=-1){var P=p.substring(x+C*2,A-C);P=P.replace(/\s+/g,""),g.data=P}return g},d=function(p,g,m){for(var y=m.substring(0,16),x=le.enc.Hex.parse(y),C=le.enc.Utf8.parse(g),A=u[p].keylen+u[p].ivlen,P="",b=null;;){var S=le.algo.MD5.create();if(b!=null&&S.update(b),S.update(C),S.update(x),b=S.finalize(),P=P+le.enc.Hex.stringify(b),P.length>=A*2)break}var _={};return _.keyhex=P.substr(0,u[p].keylen*2),_.ivhex=P.substr(u[p].keylen*2,u[p].ivlen*2),_},c=function(p,g,m,y){var x=le.enc.Base64.parse(p),C=le.enc.Hex.stringify(x),A=u[g].proc,P=A(C,m,y);return P},f=function(p,g,m,y){var x=u[g].eproc,C=x(p,m,y);return C};return{version:"1.0.0",parsePKCS5PEM:function(p){return h(p)},getKeyAndUnusedIvByPasscodeAndIvsalt:function(p,g,m){return d(p,g,m)},decryptKeyB64:function(p,g,m,y){return c(p,g,m,y)},getDecryptedKeyHex:function(p,g){var m=h(p),y=m.cipher,x=m.ivsalt,C=m.data,A=d(y,g,x),P=A.keyhex,b=c(C,y,P,x);return b},getEncryptedPKCS5PEMFromPrvKeyHex:function(p,g,m,y,x){var w="";if((typeof y=="undefined"||y==null)&&(y="AES-256-CBC"),typeof u[y]=="undefined")throw new Error("KEYUTIL unsupported algorithm: "+y);if(typeof x=="undefined"||x==null){var C=u[y].ivlen,A=l(C);x=A.toUpperCase()}var P=d(y,m,x),b=P.keyhex,S=f(g,y,b,x),_=S.replace(/(.{64})/g,`$1\r -`),w="-----BEGIN "+p+` PRIVATE KEY-----\r -`;return w+=`Proc-Type: 4,ENCRYPTED\r -`,w+="DEK-Info: "+y+","+x+`\r -`,w+=`\r -`,w+=_,w+=`\r ------END `+p+` PRIVATE KEY-----\r -`,w},parseHexOfEncryptedPKCS8:function(p){var g=Z,m=g.getChildIdx,y=g.getV,x={},C=m(p,0);if(C.length!=2)throw new Error("malformed format: SEQUENCE(0).items != 2: "+C.length);x.ciphertext=y(p,C[1]);var A=m(p,C[0]);if(A.length!=2)throw new Error("malformed format: SEQUENCE(0.0).items != 2: "+A.length);if(y(p,A[0])!="2a864886f70d01050d")throw new Error("this only supports pkcs5PBES2");var P=m(p,A[1]);if(A.length!=2)throw new Error("malformed format: SEQUENCE(0.0.1).items != 2: "+P.length);var b=m(p,P[1]);if(b.length!=2)throw new Error("malformed format: SEQUENCE(0.0.1.1).items != 2: "+b.length);if(y(p,b[0])!="2a864886f70d0307")throw"this only supports TripleDES";x.encryptionSchemeAlg="TripleDES",x.encryptionSchemeIV=y(p,b[1]);var S=m(p,P[0]);if(S.length!=2)throw new Error("malformed format: SEQUENCE(0.0.1.0).items != 2: "+S.length);if(y(p,S[0])!="2a864886f70d01050c")throw new Error("this only supports pkcs5PBKDF2");var _=m(p,S[1]);if(_.length<2)throw new Error("malformed format: SEQUENCE(0.0.1.0.1).items < 2: "+_.length);x.pbkdf2Salt=y(p,_[0]);var w=y(p,_[1]);try{x.pbkdf2Iter=parseInt(w,16)}catch(k){throw new Error("malformed format pbkdf2Iter: "+w)}return x},getPBKDF2KeyHexFromParam:function(p,g){var m=le.enc.Hex.parse(p.pbkdf2Salt),y=p.pbkdf2Iter,x=le.PBKDF2(g,m,{keySize:192/32,iterations:y}),C=le.enc.Hex.stringify(x);return C},_getPlainPKCS8HexFromEncryptedPKCS8PEM:function(p,g){var m=vt(p,"ENCRYPTED PRIVATE KEY"),y=this.parseHexOfEncryptedPKCS8(m),x=Le.getPBKDF2KeyHexFromParam(y,g),C={};C.ciphertext=le.enc.Hex.parse(y.ciphertext);var A=le.enc.Hex.parse(x),P=le.enc.Hex.parse(y.encryptionSchemeIV),b=le.TripleDES.decrypt(C,A,{iv:P}),S=le.enc.Hex.stringify(b);return S},getKeyFromEncryptedPKCS8PEM:function(p,g){var m=this._getPlainPKCS8HexFromEncryptedPKCS8PEM(p,g),y=this.getKeyFromPlainPrivatePKCS8Hex(m);return y},parsePlainPrivatePKCS8Hex:function(p){var g=Z,m=g.getChildIdx,y=g.getV,x={};if(x.algparam=null,p.substr(0,2)!="30")throw new Error("malformed plain PKCS8 private key(code:001)");var C=m(p,0);if(C.length<3)throw new Error("malformed plain PKCS8 private key(code:002)");if(p.substr(C[1],2)!="30")throw new Error("malformed PKCS8 private key(code:003)");var A=m(p,C[1]);if(A.length!=2)throw new Error("malformed PKCS8 private key(code:004)");if(p.substr(A[0],2)!="06")throw new Error("malformed PKCS8 private key(code:005)");if(x.algoid=y(p,A[0]),p.substr(A[1],2)=="06"&&(x.algparam=y(p,A[1])),p.substr(C[2],2)!="04")throw new Error("malformed PKCS8 private key(code:006)");return x.keyidx=g.getVidx(p,C[2]),x},getKeyFromPlainPrivatePKCS8PEM:function(p){var g=vt(p,"PRIVATE KEY"),m=this.getKeyFromPlainPrivatePKCS8Hex(g);return m},getKeyFromPlainPrivatePKCS8Hex:function(p){var g=this.parsePlainPrivatePKCS8Hex(p),m;if(g.algoid=="2a864886f70d010101")m=new ye;else if(g.algoid=="2a8648ce380401")m=new v.crypto.DSA;else if(g.algoid=="2a8648ce3d0201")m=new v.crypto.ECDSA;else throw new Error("unsupported private key algorithm");return m.readPKCS8PrvKeyHex(p),m},_getKeyFromPublicPKCS8Hex:function(p){var g,m=Z.getVbyList(p,0,[0,0],"06");if(m==="2a864886f70d010101")g=new ye;else if(m==="2a8648ce380401")g=new v.crypto.DSA;else if(m==="2a8648ce3d0201")g=new v.crypto.ECDSA;else throw new Error("unsupported PKCS#8 public key hex");return g.readPKCS8PubKeyHex(p),g},parsePublicRawRSAKeyHex:function(p){var g=Z,m=g.getChildIdx,y=g.getV,x={};if(p.substr(0,2)!="30")throw new Error("malformed RSA key(code:001)");var C=m(p,0);if(C.length!=2)throw new Error("malformed RSA key(code:002)");if(p.substr(C[0],2)!="02")throw new Error("malformed RSA key(code:003)");if(x.n=y(p,C[0]),p.substr(C[1],2)!="02")throw new Error("malformed RSA key(code:004)");return x.e=y(p,C[1]),x},parsePublicPKCS8Hex:function(p){var g=Z,m=g.getChildIdx,y=g.getV,x={};x.algparam=null;var C=m(p,0);if(C.length!=2)throw new Error("outer DERSequence shall have 2 elements: "+C.length);var A=C[0];if(p.substr(A,2)!="30")throw new Error("malformed PKCS8 public key(code:001)");var P=m(p,A);if(P.length!=2)throw new Error("malformed PKCS8 public key(code:002)");if(p.substr(P[0],2)!="06")throw new Error("malformed PKCS8 public key(code:003)");if(x.algoid=y(p,P[0]),p.substr(P[1],2)=="06"?x.algparam=y(p,P[1]):p.substr(P[1],2)=="30"&&(x.algparam={},x.algparam.p=g.getVbyList(p,P[1],[0],"02"),x.algparam.q=g.getVbyList(p,P[1],[1],"02"),x.algparam.g=g.getVbyList(p,P[1],[2],"02")),p.substr(C[1],2)!="03")throw new Error("malformed PKCS8 public key(code:004)");return x.key=y(p,C[1]).substr(2),x}}}();Le.getKey=function(e,t,r){var n=Z,s=n.getChildIdx;n.getV;var i=n.getVbyList,a=v.crypto,o=a.ECDSA,u=a.DSA,l=ye,h=vt,d=Le;if(typeof l!="undefined"&&e instanceof l||typeof o!="undefined"&&e instanceof o||typeof u!="undefined"&&e instanceof u)return e;if(e.curve!==void 0&&e.xy!==void 0&&e.d===void 0)return new o({pub:e.xy,curve:e.curve});if(e.curve!==void 0&&e.d!==void 0)return new o({prv:e.d,curve:e.curve});if(e.kty===void 0&&e.n!==void 0&&e.e!==void 0&&e.d===void 0){var c=new l;return c.setPublic(e.n,e.e),c}if(e.kty===void 0&&e.n!==void 0&&e.e!==void 0&&e.d!==void 0&&e.p!==void 0&&e.q!==void 0&&e.dp!==void 0&&e.dq!==void 0&&e.co!==void 0&&e.qi===void 0){var c=new l;return c.setPrivateEx(e.n,e.e,e.d,e.p,e.q,e.dp,e.dq,e.co),c}if(e.kty===void 0&&e.n!==void 0&&e.e!==void 0&&e.d!==void 0&&e.p===void 0){var c=new l;return c.setPrivate(e.n,e.e,e.d),c}if(e.p!==void 0&&e.q!==void 0&&e.g!==void 0&&e.y!==void 0&&e.x===void 0){var c=new u;return c.setPublic(e.p,e.q,e.g,e.y),c}if(e.p!==void 0&&e.q!==void 0&&e.g!==void 0&&e.y!==void 0&&e.x!==void 0){var c=new u;return c.setPrivate(e.p,e.q,e.g,e.y,e.x),c}if(e.kty==="RSA"&&e.n!==void 0&&e.e!==void 0&&e.d===void 0){var c=new l;return c.setPublic(st(e.n),st(e.e)),c}if(e.kty==="RSA"&&e.n!==void 0&&e.e!==void 0&&e.d!==void 0&&e.p!==void 0&&e.q!==void 0&&e.dp!==void 0&&e.dq!==void 0&&e.qi!==void 0){var c=new l;return c.setPrivateEx(st(e.n),st(e.e),st(e.d),st(e.p),st(e.q),st(e.dp),st(e.dq),st(e.qi)),c}if(e.kty==="RSA"&&e.n!==void 0&&e.e!==void 0&&e.d!==void 0){var c=new l;return c.setPrivate(st(e.n),st(e.e),st(e.d)),c}if(e.kty==="EC"&&e.crv!==void 0&&e.x!==void 0&&e.y!==void 0&&e.d===void 0){var f=new o({curve:e.crv}),p=f.ecparams.keycharlen,g=("0000000000"+st(e.x)).slice(-p),m=("0000000000"+st(e.y)).slice(-p),y="04"+g+m;return f.setPublicKeyHex(y),f}if(e.kty==="EC"&&e.crv!==void 0&&e.x!==void 0&&e.y!==void 0&&e.d!==void 0){var f=new o({curve:e.crv}),p=f.ecparams.keycharlen,g=("0000000000"+st(e.x)).slice(-p),m=("0000000000"+st(e.y)).slice(-p),y="04"+g+m,x=("0000000000"+st(e.d)).slice(-p);return f.setPublicKeyHex(y),f.setPrivateKeyHex(x),f}if(r==="pkcs5prv"){var C=e,n=Z,A,c;if(A=s(C,0),A.length===9)c=new l,c.readPKCS5PrvKeyHex(C);else if(A.length===6)c=new u,c.readPKCS5PrvKeyHex(C);else if(A.length>2&&C.substr(A[1],2)==="04")c=new o,c.readPKCS5PrvKeyHex(C);else throw new Error("unsupported PKCS#1/5 hexadecimal key");return c}if(r==="pkcs8prv"){var c=d.getKeyFromPlainPrivatePKCS8Hex(e);return c}if(r==="pkcs8pub")return d._getKeyFromPublicPKCS8Hex(e);if(r==="x509pub")return we.getPublicKeyFromCertHex(e);if(e.indexOf("-END CERTIFICATE-",0)!=-1||e.indexOf("-END X509 CERTIFICATE-",0)!=-1||e.indexOf("-END TRUSTED CERTIFICATE-",0)!=-1)return we.getPublicKeyFromCertPEM(e);if(e.indexOf("-END PUBLIC KEY-")!=-1){var P=vt(e,"PUBLIC KEY");return d._getKeyFromPublicPKCS8Hex(P)}if(e.indexOf("-END RSA PRIVATE KEY-")!=-1&&e.indexOf("4,ENCRYPTED")==-1){var b=h(e,"RSA PRIVATE KEY");return d.getKey(b,null,"pkcs5prv")}if(e.indexOf("-END DSA PRIVATE KEY-")!=-1&&e.indexOf("4,ENCRYPTED")==-1){var S=h(e,"DSA PRIVATE KEY"),_=i(S,0,[1],"02"),w=i(S,0,[2],"02"),k=i(S,0,[3],"02"),D=i(S,0,[4],"02"),T=i(S,0,[5],"02"),c=new u;return c.setPrivate(new B(_,16),new B(w,16),new B(k,16),new B(D,16),new B(T,16)),c}if(e.indexOf("-END EC PRIVATE KEY-")!=-1&&e.indexOf("4,ENCRYPTED")==-1){var b=h(e,"EC PRIVATE KEY");return d.getKey(b,null,"pkcs5prv")}if(e.indexOf("-END PRIVATE KEY-")!=-1)return d.getKeyFromPlainPrivatePKCS8PEM(e);if(e.indexOf("-END RSA PRIVATE KEY-")!=-1&&e.indexOf("4,ENCRYPTED")!=-1){var M=d.getDecryptedKeyHex(e,t),F=new ye;return F.readPKCS5PrvKeyHex(M),F}if(e.indexOf("-END EC PRIVATE KEY-")!=-1&&e.indexOf("4,ENCRYPTED")!=-1){var S=d.getDecryptedKeyHex(e,t),c=i(S,0,[1],"04"),I=i(S,0,[2,0],"06"),N=i(S,0,[3,0],"03").substr(2),$="";if(v.crypto.OID.oidhex2name[I]!==void 0)$=v.crypto.OID.oidhex2name[I];else throw new Error("undefined OID(hex) in KJUR.crypto.OID: "+I);var f=new o({curve:$});return f.setPublicKeyHex(N),f.setPrivateKeyHex(c),f.isPublic=!1,f}if(e.indexOf("-END DSA PRIVATE KEY-")!=-1&&e.indexOf("4,ENCRYPTED")!=-1){var S=d.getDecryptedKeyHex(e,t),_=i(S,0,[1],"02"),w=i(S,0,[2],"02"),k=i(S,0,[3],"02"),D=i(S,0,[4],"02"),T=i(S,0,[5],"02"),c=new u;return c.setPrivate(new B(_,16),new B(w,16),new B(k,16),new B(D,16),new B(T,16)),c}if(e.indexOf("-END ENCRYPTED PRIVATE KEY-")!=-1)return d.getKeyFromEncryptedPKCS8PEM(e,t);throw new Error("not supported argument")};Le.generateKeypair=function(e,t){if(e=="RSA"){var r=t,n=new ye;n.generate(r,"10001"),n.isPrivate=!0,n.isPublic=!0;var s=new ye,i=n.n.toString(16),a=n.e.toString(16);s.setPublic(i,a),s.isPrivate=!1,s.isPublic=!0;var o={};return o.prvKeyObj=n,o.pubKeyObj=s,o}else if(e=="EC"){var u=t,l=new v.crypto.ECDSA({curve:u}),h=l.generateKeyPairHex(),n=new v.crypto.ECDSA({curve:u});n.setPublicKeyHex(h.ecpubhex),n.setPrivateKeyHex(h.ecprvhex),n.isPrivate=!0,n.isPublic=!1;var s=new v.crypto.ECDSA({curve:u});s.setPublicKeyHex(h.ecpubhex),s.isPrivate=!1,s.isPublic=!0;var o={};return o.prvKeyObj=n,o.pubKeyObj=s,o}else throw new Error("unknown algorithm: "+e)};Le.getPEM=function(e,t,r,n,s,i){var a=v,o=a.asn1,u=o.DERObjectIdentifier,l=o.DERInteger,h=o.ASN1Util.newObject,d=o.x509,c=d.SubjectPublicKeyInfo,f=a.crypto,p=f.DSA,g=f.ECDSA,m=ye;function y(N){var $=h({seq:[{int:0},{int:{bigint:N.n}},{int:N.e},{int:{bigint:N.d}},{int:{bigint:N.p}},{int:{bigint:N.q}},{int:{bigint:N.dmp1}},{int:{bigint:N.dmq1}},{int:{bigint:N.coeff}}]});return $}function x(N){var $=h({seq:[{int:1},{octstr:{hex:N.prvKeyHex}},{tag:["a0",!0,{oid:{name:N.curveName}}]},{tag:["a1",!0,{bitstr:{hex:"00"+N.pubKeyHex}}]}]});return $}function C(N){var $=h({seq:[{int:0},{int:{bigint:N.p}},{int:{bigint:N.q}},{int:{bigint:N.g}},{int:{bigint:N.y}},{int:{bigint:N.x}}]});return $}if((m!==void 0&&e instanceof m||p!==void 0&&e instanceof p||g!==void 0&&e instanceof g)&&e.isPublic==!0&&(t===void 0||t=="PKCS8PUB")){var A=new c(e),P=A.tohex();return Et(P,"PUBLIC KEY")}if(t=="PKCS1PRV"&&m!==void 0&&e instanceof m&&(r===void 0||r==null)&&e.isPrivate==!0){var A=y(e),P=A.tohex();return Et(P,"RSA PRIVATE KEY")}if(t=="PKCS1PRV"&&g!==void 0&&e instanceof g&&(r===void 0||r==null)&&e.isPrivate==!0){var b=new u({name:e.curveName}),S=b.tohex(),_=x(e),w=_.tohex(),k="";return k+=Et(S,"EC PARAMETERS"),k+=Et(w,"EC PRIVATE KEY"),k}if(t=="PKCS1PRV"&&p!==void 0&&e instanceof p&&(r===void 0||r==null)&&e.isPrivate==!0){var A=C(e),P=A.tohex();return Et(P,"DSA PRIVATE KEY")}if(t=="PKCS5PRV"&&m!==void 0&&e instanceof m&&r!==void 0&&r!=null&&e.isPrivate==!0){var A=y(e),P=A.tohex();return n===void 0&&(n="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("RSA",P,r,n,i)}if(t=="PKCS5PRV"&&g!==void 0&&e instanceof g&&r!==void 0&&r!=null&&e.isPrivate==!0){var A=x(e),P=A.tohex();return n===void 0&&(n="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("EC",P,r,n,i)}if(t=="PKCS5PRV"&&p!==void 0&&e instanceof p&&r!==void 0&&r!=null&&e.isPrivate==!0){var A=C(e),P=A.tohex();return n===void 0&&(n="DES-EDE3-CBC"),this.getEncryptedPKCS5PEMFromPrvKeyHex("DSA",P,r,n,i)}var D=function(N,$){var re=T(N,$),de=new h({seq:[{seq:[{oid:{name:"pkcs5PBES2"}},{seq:[{seq:[{oid:{name:"pkcs5PBKDF2"}},{seq:[{octstr:{hex:re.pbkdf2Salt}},{int:re.pbkdf2Iter}]}]},{seq:[{oid:{name:"des-EDE3-CBC"}},{octstr:{hex:re.encryptionSchemeIV}}]}]}]},{octstr:{hex:re.ciphertext}}]});return de.tohex()},T=function(N,$){var re=100,de=le.lib.WordArray.random(8),fe="DES-EDE3-CBC",Pe=le.lib.WordArray.random(8),Fe=le.PBKDF2($,de,{keySize:192/32,iterations:re}),Ze=le.enc.Hex.parse(N),Xe=le.TripleDES.encrypt(Ze,Fe,{iv:Pe})+"",St={};return St.ciphertext=Xe,St.pbkdf2Salt=le.enc.Hex.stringify(de),St.pbkdf2Iter=re,St.encryptionSchemeAlg=fe,St.encryptionSchemeIV=le.enc.Hex.stringify(Pe),St};if(t=="PKCS8PRV"&&m!=null&&e instanceof m&&e.isPrivate==!0){var M=y(e),F=M.tohex(),A=h({seq:[{int:0},{seq:[{oid:{name:"rsaEncryption"}},{null:!0}]},{octstr:{hex:F}}]}),P=A.tohex();if(r===void 0||r==null)return Et(P,"PRIVATE KEY");var w=D(P,r);return Et(w,"ENCRYPTED PRIVATE KEY")}if(t=="PKCS8PRV"&&g!==void 0&&e instanceof g&&e.isPrivate==!0){var I={seq:[{int:1},{octstr:{hex:e.prvKeyHex}}]};typeof e.pubKeyHex=="string"&&I.seq.push({tag:["a1",!0,{bitstr:{hex:"00"+e.pubKeyHex}}]});var M=new h(I),F=M.tohex(),A=h({seq:[{int:0},{seq:[{oid:{name:"ecPublicKey"}},{oid:{name:e.curveName}}]},{octstr:{hex:F}}]}),P=A.tohex();if(r===void 0||r==null)return Et(P,"PRIVATE KEY");var w=D(P,r);return Et(w,"ENCRYPTED PRIVATE KEY")}if(t=="PKCS8PRV"&&p!==void 0&&e instanceof p&&e.isPrivate==!0){var M=new l({bigint:e.x}),F=M.tohex(),A=h({seq:[{int:0},{seq:[{oid:{name:"dsa"}},{seq:[{int:{bigint:e.p}},{int:{bigint:e.q}},{int:{bigint:e.g}}]}]},{octstr:{hex:F}}]}),P=A.tohex();if(r===void 0||r==null)return Et(P,"PRIVATE KEY");var w=D(P,r);return Et(w,"ENCRYPTED PRIVATE KEY")}throw new Error("unsupported object nor format")};Le.getKeyFromCSRPEM=function(e){var t=vt(e,"CERTIFICATE REQUEST"),r=Le.getKeyFromCSRHex(t);return r};Le.getKeyFromCSRHex=function(e){var t=Le.parseCSRHex(e),r=Le.getKey(t.p8pubkeyhex,null,"pkcs8pub");return r};Le.parseCSRHex=function(e){var t=Z,r=t.getChildIdx,n=t.getTLV,s={},i=e;if(i.substr(0,2)!="30")throw new Error("malformed CSR(code:001)");var a=r(i,0);if(a.length<1)throw new Error("malformed CSR(code:002)");if(i.substr(a[0],2)!="30")throw new Error("malformed CSR(code:003)");var o=r(i,a[0]);if(o.length<3)throw new Error("malformed CSR(code:004)");return s.p8pubkeyhex=n(i,o[2]),s};Le.getKeyID=function(e){var t=Le,r=Z;typeof e=="string"&&e.indexOf("BEGIN ")!=-1&&(e=t.getKey(e));var n=vt(t.getPEM(e)),s=r.getIdxbyList(n,0,[1]),i=r.getV(n,s).substring(2);return v.crypto.Util.hashHex(i,"sha1")};Le.getJWK=function(e,t,r,n,s){var i,a={},o,u=v.crypto.Util.hashHex;if(typeof e=="string")i=Le.getKey(e),e.indexOf("CERTIFICATE")!=-1&&(o=vt(e));else if(typeof e=="object")e instanceof we?(i=e.getPublicKey(),o=e.hex):i=e;else throw new Error("unsupported keyinfo type");if(i instanceof ye&&i.isPrivate)a.kty="RSA",a.n=yt(i.n.toString(16)),a.e=yt(i.e.toString(16)),a.d=yt(i.d.toString(16)),a.p=yt(i.p.toString(16)),a.q=yt(i.q.toString(16)),a.dp=yt(i.dmp1.toString(16)),a.dq=yt(i.dmq1.toString(16)),a.qi=yt(i.coeff.toString(16));else if(i instanceof ye&&i.isPublic)a.kty="RSA",a.n=yt(i.n.toString(16)),a.e=yt(i.e.toString(16));else if(i instanceof v.crypto.ECDSA&&i.isPrivate){var l=i.getShortNISTPCurveName();if(l!=="P-256"&&l!=="P-384"&&l!=="P-521")throw new Error("unsupported curve name for JWT: "+l);var h=i.getPublicKeyXYHex();a.kty="EC",a.crv=l,a.x=yt(h.x),a.y=yt(h.y),a.d=yt(i.prvKeyHex)}else if(i instanceof v.crypto.ECDSA&&i.isPublic){var l=i.getShortNISTPCurveName();if(l!=="P-256"&&l!=="P-384"&&l!=="P-521")throw new Error("unsupported curve name for JWT: "+l);var h=i.getPublicKeyXYHex();a.kty="EC",a.crv=l,a.x=yt(h.x),a.y=yt(h.y)}if(a.kty==null)throw new Error("unsupported keyinfo");return!i.isPrivate&&t!=!0&&(a.kid=v.jws.JWS.getJWKthumbprint(a)),o!=null&&r!=!0&&(a.x5c=[Vs(o)]),o!=null&&n!=!0&&(a.x5t=lo(Vs(u(o,"sha1")))),o!=null&&s!=!0&&(a["x5t#S256"]=lo(Vs(u(o,"sha256")))),a};Le.getJWKFromKey=function(e){return Le.getJWK(e,!0,!0,!0,!0)};ye.getPosArrayOfChildrenFromHex=function(e){return Z.getChildIdx(e,0)};ye.getHexValueArrayOfChildrenFromHex=function(e){var t=Z,r=t.getV,c=ye.getPosArrayOfChildrenFromHex(e),n=r(e,c[0]),s=r(e,c[1]),i=r(e,c[2]),a=r(e,c[3]),o=r(e,c[4]),u=r(e,c[5]),l=r(e,c[6]),h=r(e,c[7]),d=r(e,c[8]),c=new Array;return c.push(n,s,i,a,o,u,l,h,d),c};ye.prototype.readPrivateKeyFromPEMString=function(e){var t=vt(e),r=ye.getHexValueArrayOfChildrenFromHex(t);this.setPrivateEx(r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8])};ye.prototype.readPKCS5PrvKeyHex=function(e){var t=ye.getHexValueArrayOfChildrenFromHex(e);this.setPrivateEx(t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8])};ye.prototype.readPKCS8PrvKeyHex=function(e){var t,r,n,s,i,a,o,u,l=Z,h=l.getVbyListEx;if(l.isASN1HEX(e)===!1)throw new Error("not ASN.1 hex string");try{t=h(e,0,[2,0,1],"02"),r=h(e,0,[2,0,2],"02"),n=h(e,0,[2,0,3],"02"),s=h(e,0,[2,0,4],"02"),i=h(e,0,[2,0,5],"02"),a=h(e,0,[2,0,6],"02"),o=h(e,0,[2,0,7],"02"),u=h(e,0,[2,0,8],"02")}catch(d){throw new Error("malformed PKCS#8 plain RSA private key")}this.setPrivateEx(t,r,n,s,i,a,o,u)};ye.prototype.readPKCS5PubKeyHex=function(e){var t=Z,r=t.getV;if(t.isASN1HEX(e)===!1)throw new Error("keyHex is not ASN.1 hex string");var n=t.getChildIdx(e,0);if(n.length!==2||e.substr(n[0],2)!=="02"||e.substr(n[1],2)!=="02")throw new Error("wrong hex for PKCS#5 public key");var s=r(e,n[0]),i=r(e,n[1]);this.setPublic(s,i)};ye.prototype.readPKCS8PubKeyHex=function(e){var t=Z;if(t.isASN1HEX(e)===!1)throw new Error("not ASN.1 hex string");if(t.getTLVbyListEx(e,0,[0,0])!=="06092a864886f70d010101")throw new Error("not PKCS8 RSA public key");var r=t.getTLVbyListEx(e,0,[1,0]);this.readPKCS5PubKeyHex(r)};ye.prototype.readCertPubKeyHex=function(e,t){var r,n;r=new we,r.readCertHex(e),n=r.getPublicKeyHex(),this.readPKCS8PubKeyHex(n)};function qg(e,t){for(var r="",n=t/4-e.length,s=0;s>24,(s&16711680)>>16,(s&65280)>>8,s&255])))),s+=1;return n}ye.prototype.signPSS=function(e,t,r){var n=function(i){return v.crypto.Util.hashHex(i,t)},s=n(Sr(e));return r===void 0&&(r=-1),this.signWithMessageHashPSS(s,t,r)};ye.prototype.signWithMessageHashPSS=function(e,t,r){var n=Gt(e),s=n.length,i=this.n.bitLength()-1,a=Math.ceil(i/8),o,u=function(m){return v.crypto.Util.hashHex(m,t)};if(r===-1||r===void 0)r=s;else if(r===-2)r=a-s-2;else if(r<-2)throw new Error("invalid salt length");if(a0&&(l=new Array(r),new ys().nextBytes(l),l=String.fromCharCode.apply(String,l));var h=Gt(u(Sr("\0\0\0\0\0\0\0\0"+n+l))),d=[];for(o=0;o>8*a-i&255;for(p[0]&=~g,o=0;on)return!1;var s=this.doPublic(r),i=s.toString(16);if(i.length+3!=n/4)return!1;var a=i.replace(/^1f+00/,""),o=Yg(a);if(o.length==0)return!1;var u=o[0],l=o[1],h=function(c){return v.crypto.Util.hashString(c,u)},d=h(e);return l==d};ye.prototype.verifyWithMessageHash=function(e,t){if(t.length!=Math.ceil(this.n.bitLength()/4))return!1;var r=At(t,16);if(r.bitLength()>this.n.bitLength())return 0;var n=this.doPublic(r),s=n.toString(16).replace(/^1f+00/,""),i=Yg(s);if(i.length==0)return!1;i[0];var a=i[1];return a==e};ye.prototype.verifyPSS=function(e,t,r,n){var s=function(a){return v.crypto.Util.hashHex(a,r)},i=s(Sr(e));return n===void 0&&(n=-1),this.verifyWithMessageHashPSS(i,t,r,n)};ye.prototype.verifyWithMessageHashPSS=function(e,t,r,n){if(t.length!=Math.ceil(this.n.bitLength()/4))return!1;var s=new B(t,16),i=function(x){return v.crypto.Util.hashHex(x,r)},a=Gt(e),o=a.length,u=this.n.bitLength()-1,l=Math.ceil(u/8),h;if(n===-1||n===void 0)n=o;else if(n===-2)n=l-o-2;else if(n<-2)throw new Error("invalid salt length");if(l>8*l-u&255;if(c.charCodeAt(0)&p)throw new Error("bits beyond keysize not zero");var g=Kg(f,c.length,i),m=[];for(h=0;h0?S:void 0}catch(T){return}},this._asn1ToNoticeRef=function(b){try{for(var S={},_=Ps(b,"seq"),w=0;w<_.length;w++){var k=this._asn1ToNoticeNum(_[w]);k!=null&&(S.noticenum=k);var D=this.asn1ToDisplayText(_[w]);D!=null&&(S.org=D)}return Object.keys(S).length>0?S:void 0}catch(T){return}},this._asn1ToNoticeNum=function(b){try{for(var S=Ps(b,"seq"),_=[],w=0;w1){var D=i(b,k[1]),T=this.getGeneralName(D);T.uri!=null&&(w.uri=T.uri)}if(k.length>2){var M=i(b,k[2]);M=="0101ff"&&(w.reqauth=!0),M=="010100"&&(w.reqauth=!1)}return w},this.getExtSubjectDirectoryAttributes=function(b,S){if(b===void 0&&S===void 0){var _=this.getExtInfo("subjectDirectoryAttributes");if(_===void 0)return;b=i(this.hex,_.vidx),S=_.critical}var w={extname:"subjectDirectoryAttributes"};S&&(w.critical=!0);try{for(var k=s(b),D=[],T=0;T0&&(S.ext=this.getExtParamArray()),S.sighex=this.getSignatureValueHex(),b.tbshex==!0&&(S.tbshex=u(this.hex,0,[0])),b.nodnarray==!0&&(delete S.issuer.array,delete S.subject.array),S},this.getExtParamArray=function(b){if(b==null){var S=d(this.hex,0,[0,"[3]"]);S!=-1&&(b=l(this.hex,0,[0,"[3]",0],"30"))}for(var _=[],w=r(b,0),k=0;k0){var A=":"+r.join(":")+":";if(A.indexOf(":"+x+":")==-1)throw"algorithm '"+x+"' not accepted in the list"}if(x!="none"&&t===null)throw"key shall be specified to verify.";if(typeof t=="string"&&t.indexOf("-----BEGIN ")!=-1&&(t=Le.getKey(t)),(C=="RS"||C=="PS")&&!(t instanceof d))throw"key shall be a RSAKey obj for RS* and PS* algs";if(C=="ES"&&!(t instanceof u))throw"key shall be a ECDSA obj for ES* algs";var P=null;if(i.jwsalg2sigalg[y.alg]===void 0)throw"unsupported alg name: "+x;if(P=i.jwsalg2sigalg[x],P=="none")throw"not supported";if(P.substr(0,4)=="Hmac"){var b=null;if(t===void 0)throw"hexadecimal key shall be specified for HMAC";var S=new l({alg:P,pass:t});return S.updateString(g),b=S.doFinal(),m==b}else if(P.indexOf("withECDSA")!=-1){var _=null;try{_=u.concatSigToASN1Sig(m)}catch(k){return!1}var w=new h({alg:P});return w.init(t),w.updateString(g),w.verify(_)}else{var w=new h({alg:P});return w.init(t),w.updateString(g),w.verify(m)}};v.jws.JWS.parse=function(e){var t=e.split("."),r={},n,s,i;if(t.length!=2&&t.length!=3)throw"malformed sJWS: wrong number of '.' splitted elements";return n=t[0],s=t[1],t.length==3&&(i=t[2]),r.headerObj=v.jws.JWS.readSafeJSONString(Ir(n)),r.payloadObj=v.jws.JWS.readSafeJSONString(Ir(s)),r.headerPP=JSON.stringify(r.headerObj,null," "),r.payloadObj==null?r.payloadPP=Ir(s):r.payloadPP=JSON.stringify(r.payloadObj,null," "),i!==void 0&&(r.sigHex=st(i)),r};v.jws.JWS.verifyJWT=function(e,t,r){var n=v,s=n.jws,i=s.JWS,a=i.readSafeJSONString,o=i.inArray,u=i.includedArray;if(!Ug(e))return!1;var l=e.split(".");if(l.length!=3)return!1;var h=l[0],d=l[1];st(l[2]);var c=a(Ir(h)),f=a(Ir(d));if(c.alg===void 0)return!1;if(r.alg===void 0)throw"acceptField.alg shall be specified";if(!o(c.alg,r.alg)||f.iss!==void 0&&typeof r.iss=="object"&&!o(f.iss,r.iss)||f.sub!==void 0&&typeof r.sub=="object"&&!o(f.sub,r.sub))return!1;if(f.aud!==void 0&&typeof r.aud=="object"){if(typeof f.aud=="string"){if(!o(f.aud,r.aud))return!1}else if(typeof f.aud=="object"&&!u(f.aud,r.aud))return!1}var p=s.IntDate.getNow();return r.verifyAt!==void 0&&typeof r.verifyAt=="number"&&(p=r.verifyAt),(r.gracePeriod===void 0||typeof r.gracePeriod!="number")&&(r.gracePeriod=0),!(f.exp!==void 0&&typeof f.exp=="number"&&f.exp+r.gracePeriodu&&this.aHeader.pop(),this.aSignature.length>u&&this.aSignature.pop(),"addSignature failed: "+f}},this.verifyAll=function(s){if(this.aHeader.length!==s.length||this.aSignature.length!==s.length)return!1;for(var i=0;i0)this.aHeader=s.headers;else throw"malformed header";if(typeof s.payload=="string")this.sPayload=s.payload;else throw"malformed signatures";if(s.signatures.length>0)this.aSignature=s.signatures;else throw"malformed signatures"}catch(a){throw"malformed JWS-JS JSON object: "+a}},this.getJSON=function(){return{headers:this.aHeader,payload:this.sPayload,signatures:this.aSignature}},this.isEmpty=function(){return this.aHeader.length==0?1:0}};v.crypto.ECDSA;v.crypto.DSA;v.crypto.Signature;v.crypto.MessageDigest;v.crypto.Mac;v.crypto.Cipher;var I6=Le,R6=x6,N6=Gt,M6=v;v.crypto;v.asn1;v.jws;v.lang;function Tl(e){return new Promise((t,r)=>{qt.security.setCertificatePromise(n=>{qo.get("/assets/ury/files/cert.pem").then(s=>{n(s.data)}).catch(s=>{r({custom:!0,title:"Error during fetching certificate",message:s})})}),qt.websocket.isActive()||qt.websocket.connect({host:e,usingSecure:!1}).then(()=>t("success")).catch(n=>{r({custom:!0,title:"Error during connection to printer",message:String(n)})})})}function B6(){qt.websocket.isActive()&&qt.websocket.disconnect()}function $6(e,t){return new Promise((r,n)=>{qt.security.setSignatureAlgorithm("SHA512"),qt.security.setSignaturePromise(function(i){return function(a){try{var o=I6.getKey(U5),u=new M6.crypto.Signature({alg:"SHA512withRSA"});u.init(o),u.updateString(i);var l=u.sign();a(R6(N6(l)))}catch(h){n(h)}}});const s=()=>{qt.printers.getDefault().then(i=>Se(this,null,function*(){const a=[{type:"html",format:"plain",data:t}],o=qt.configs.create(i);try{return yield qt.print(o,a),r("printed")}catch(u){qt.websocket.disconnect(),n({custom:!0,title:"Print failed",message:String(u)})}})).catch(i=>{qt.websocket.disconnect(),n({custom:!0,title:"Error looking up for printer",message:String(i)})})};qt.websocket.isActive()?s():Tl(e).then(()=>s()).catch(i=>n(i))})}const lr=Cr("invoiceData",{state:()=>({invoiceDetails:[],defaultModeOfPayment:"Cash",warehouse:"",posProfile:"",waiter:"",auth:jt(),cashier:"",modeOfPaymentList:null,alert:Bn(),showDialog:!1,notification:na(),menu:gs(),recentOrders:Qs(),printer:null,print_format:null,print_type:null,branch:null,company:null,qz_host:null,grandTotal:null,cancelReason:null,tableInvoiceNo:null,invoiceNumber:null,showUpdateButtton:!0,isChecked:!1,isPrinting:!1,cancelInvoiceFlag:!1,previousOrderItem:[],table:ws(),call:Dt.call(),qz_print:null}),actions:{fetchInvoiceDetails(){return Se(this,null,function*(){try{const e=yield this.call.get("ury.ury_pos.api.getPosProfile").then(t=>{this.invoiceDetails=t.message,this.warehouse=this.invoiceDetails.warehouse,this.posProfile=this.invoiceDetails.pos_profile,this.waiter=this.invoiceDetails.waiter,this.cashier=this.invoiceDetails.cashier,this.branch=this.invoiceDetails.branch,this.company=this.invoiceDetails.company,this.print_format=this.invoiceDetails.print_format,this.qz_print=this.invoiceDetails.qz_print,this.qz_host=this.invoiceDetails.qz_host,this.print_type=this.invoiceDetails.print_type,this.printer=this.invoiceDetails.printer,this.qz_host&&Tl(this.qz_host)})}catch(e){console.error(e)}this.call.get("ury.ury_pos.api.getModeOfPayment").then(e=>{this.modeOfPaymentList=e.message}).catch(e=>{})})},invoiceCreation(){return Se(this,null,function*(){this.showUpdateButtton=!1;let e="";this.invoiceNo=this.table.invoiceNo;let t=this.menu.cart;const r=su(),n=r.search,s=r.numberOfPax;let i=this.recentOrders.invoiceNumber||this.table.invoiceNo||null;e=this.table.selectedTable||this.recentOrders.restaurantTable;const a=JSON.parse(JSON.stringify(t));let o=this.table.previousWaiter!==null&&this.table.previousWaiter!==void 0?this.table.previousWaiter:this.recentOrders.recentWaiter!==null&&this.recentOrders.recentWaiter!==void 0?this.recentOrders.recentWaiter:this.waiter;const u={table:e,customer:n,items:t,no_of_pax:s,mode_of_payment:this.defaultModeOfPayment,cashier:this.cashier,waiter:o,last_modified_time:this.table.modifiedTime,pos_profile:this.posProfile,invoice:i,last_invoice:i,comments:this.menu.comments};!this.auth.cashier&&!s?(this.alert.createAlert("Message","Please Select Customer / No of Pax","OK"),this.showUpdateButtton=!0):!this.auth.cashier&&!e?(this.alert.createAlert("Message","Please Select a Table","OK"),this.showUpdateButtton=!0):this.call.post("ury.ury.doctype.ury_order.ury_order.sync_order",u).then(l=>{if(this.showUpdateButtton=!0,l.message.status==="Failure"){const h=l._server_messages,d=JSON.parse(h),c=JSON.parse(d[0]);this.alert.createAlert("Message",c.message,"OK").then(()=>{ft.push("/Table").then(()=>{window.location.reload()})})}else this.invoiceNumber=l.message.name,this.grandTotal=l.message.grand_total,this.notification.createNotification("Order Update"),this.table.fetchTable(),this.menu.comments="",this.menu.items.forEach(d=>{d.comment=""}),this.previousOrderItem.splice(0,this.previousOrderItem.length),this.previousOrderItem.splice(0,this.previousOrderItem.length,...a),this.table.modifiedTime=l.message.modified,this.auth.cashier&&this.recentOrders.viewRecentOrder(l.message)}).catch(l=>{if(this.showUpdateButtton=!0,l._server_messages){const h=JSON.parse(l._server_messages),d=JSON.parse(h[0]);this.alert.createAlert("Message",d.message,"OK")}})})},billing(e){const r={table:e.name};this.call.get("ury.ury.doctype.ury_order.ury_order.get_order_invoice",r).then(n=>{this.tableInvoiceNo=n.message.name,!this.auth.hasAccess&&!this.auth.cashier&&this.auth.sessionUser!==n.message.waiter?this.alert.createAlert("Message","Printing is Blocked Table is assigned to "+n.message.waiter,"OK"):(this.isPrinting=!0,this.printFunction())}).catch(n=>console.error(n))},printFunction:function(){return Se(this,null,function*(){var t,r;this.isPrinting=!0;let e=this.recentOrders.invoiceNumber||this.tableInvoiceNo||this.invoiceNumber;try{if(this.print_type==="qz"){const n={doc:"POS Invoice",name:e,print_format:this.print_format,_lang:"en"},s=yield this.call.get("frappe.www.printview.get_html_and_style",n);if((t=s==null?void 0:s.message)!=null&&t.html||(this.isPrinting=!1,this.alert.createAlert("Message","Error while getting the HTML document to print for QZ","OK")),(yield $6(this.qz_host,(r=s==null?void 0:s.message)==null?void 0:r.html))==="printed"){this.notification.createNotification("Print Successful");const a={invoice:e};this.call.post("ury.ury.api.ury_print.qz_print_update",a).then(()=>(window.location.reload(),200)).catch(o=>console.error(o,"printed"))}}else if(this.print_type==="network")if(this.auth.cashier){const n={doctype:"POS Invoice",name:e,printer_setting:this.printer,print_format:this.print_format},s=()=>Se(this,null,function*(){return(yield this.call.post("ury.ury.api.ury_print.network_printing",n)).message});let i=0,a="";do{const o=yield s();if(o==="Success"){this.notification.createNotification("Print Successful");const u={invoice:e};yield this.call.post("ury.ury.api.ury_print.qz_print_update",u).then(()=>(window.location.reload(),200))}a=o,i++}while(i<1);throw{alert:this.alert.createAlert("Message",`Print failed with error ${a}`,"OK"),custom:this.isPrinting=!1}}else{const n={invoice_id:e,pos_profile:this.posProfile},s=()=>Se(this,null,function*(){return(yield this.call.post("ury.ury.api.ury_print.select_network_printer",n)).message});let i=0,a="";do{const o=yield s();if(o==="Success"){this.notification.createNotification("Print Successful");const u={invoice:e};yield this.call.post("ury.ury.api.ury_print.qz_print_update",u).then(()=>(window.location.reload(),200))}a=o,i++}while(i<1);throw{alert:this.alert.createAlert("Message",`Print failed with error ${a}`,"OK"),custom:this.isPrinting=!1}}else{const n={doctype:"POS Invoice",name:e,print_format:this.print_format};this.call.post("ury.ury.api.ury_print.print_pos_page",n).then(s=>(this.notification.createNotification("Print Successful"),window.location.reload(),s.message)).catch(s=>console.error(s))}}catch(n){if(n!=null&&n.custom)return this.isPrinting=!1,this.alert.createAlert("Error",n==null?void 0:n.title,"OK")}})},loadPrinter:function(e){return Se(this,null,function*(){try{const t=yield Tl(url,e);print(e),t==="success"&&this.notification.createNotification("Printer loaded")}catch(t){this.alert.createAlert("Message",t.message,"OK")}})},showCancelInvoiceModal(){this.call.get("ury.ury.api.button_permission.cancel_check").then(e=>{e.message===!0?(this.cancelInvoiceFlag=!0,this.cancelReason=""):(this.alert.createAlert("Message","You don't Have Permission to Cancel ","OK"),this.cancelInvoiceFlag=!1,this.cancelReason="")}).catch(e=>{})},cancelInvoice:function(){return Se(this,null,function*(){const r={invoice_id:Qs().invoiceNumber||this.invoiceNumber||this.table.invoiceNo,reason:this.cancelReason};this.call.post("ury.ury.doctype.ury_order.ury_order.cancel_order",r).then(()=>{this.notification.createNotification("Invoice Cancelled"),ft.push("/Table").then(()=>{window.location.reload()})}).catch(n=>console.error(n))})}}}),cr=(e,t)=>{const r=e.__vccOpts||e;for(const[n,s]of t)r[n]=s;return r},H6={name:"takeAwayTable",setup(){const e=ws(),t=lr(),r=jt();return{table:e,invoiceData:t,auth:r}}},j6={class:"flow-root"},L6={key:0,class:"fixed inset-0 z-50 flex items-center justify-center bg-gray-300 bg-opacity-50 text-lg"},V6={class:"grid grid-cols-2 gap-4 md:grid-cols-4 lg:grid-cols-5"},U6={class:"flex justify-between"},q6={class:"flex justify-start px-2 pt-2"},K6={key:0,class:"relative"},Y6=["onClick"],z6=E("svg",{class:"h-6 w-6","aria-hidden":"true",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[E("path",{d:"M6 10a2 2 0 11-4 0 2 2 0 014 0zM12 10a2 2 0 11-4 0 2 2 0 014 0zM16 12a2 2 0 100-4 2 2 0 000 4z"})],-1),W6=[z6],G6={class:"absolute right-0 z-10 w-36 divide-y divide-gray-100 rounded-lg bg-white shadow dark:bg-gray-700"},J6={class:"py-2"},X6=["onClick"],Z6={key:0},Q6=["onClick"],eE={class:"flex flex-col pb-4"},tE=["onClick"],rE={class:"text-sm text-gray-500 dark:text-gray-400"},nE={key:0,class:"mt-8 text-center"},sE=["onClick"],iE=E("svg",{class:"ml-2 h-6 w-6 dark:text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[E("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13 9l3 3m0 0l-3 3m3-3H8m13 0a9 9 0 11-18 0 9 9 0 0118 0z"})],-1),aE={key:1,class:"mt-2 flex justify-center"},oE=["onClick"],uE=E("svg",{class:"svg-icon mr-2",viewBox:"0 0 24 24",width:"18",height:"18",fill:"white"},[E("path",{d:"M6 19H3a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1h3V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v4h3a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1h-3v2a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1v-2zm0-2v-1a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v1h2V9H4v8h2zM8 4v3h8V4H8zm0 13v3h8v-3H8zm-3-7h3v2H5v-2z"})],-1),lE=["onClick"],cE=E("svg",{"aria-hidden":"true",class:"h-10 w-6",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[E("path",{d:"M10 12a2 2 0 100-4 2 2 0 000 4z"}),E("path",{"fill-rule":"evenodd",d:"M.458 10C1.732 5.943 5.522 3 10 3s8.268 2.943 9.542 7c-1.274 4.057-5.064 7-9.542 7S1.732 14.057.458 10zM14 10a4 4 0 11-8 0 4 4 0 018 0z","clip-rule":"evenodd"})],-1),hE=[cE];function fE(e,t,r,n,s,i){return j(),V("div",j6,[this.invoiceData.isLoading?(j(),V("div",L6," Payment Being Processing ")):ae("",!0),E("div",V6,[(j(!0),V(De,null,ht(this.table.takeAway,a=>(j(),V("div",{"w-full":"",class:"w-full max-w-sm rounded-lg border border-gray-200 bg-white shadow dark:border-gray-700 dark:bg-gray-800",key:a.name},[E("div",U6,[E("div",q6,[E("span",{class:Ee(["me-2 rounded px-2.5 py-0.5 text-sm font-medium",{"bg-blue-100 text-blue-800 dark:bg-blue-900 dark:text-blue-300":this.table.getBadgeType(a)==="default","bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-300":this.table.getBadgeType(a)==="red","bg-yellow-100 text-yellow-800":this.table.getBadgeType(a)==="yellow","bg-green-100 text-green-800":this.table.getBadgeType(a)==="green"}])},be(this.table.getBadgeText(a)),3)]),a.occupied===1?(j(),V("div",K6,[E("button",{class:"inline-block rounded-lg p-1.5 text-sm text-gray-500 dark:text-gray-400 dark:hover:bg-gray-700 dark:focus:ring-gray-700",type:"button",onClick:o=>this.table.toggleDropdown(a.name)},W6,8,Y6),_e(E("div",G6,[E("ul",J6,[E("li",null,[E("a",{href:"#",class:"block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 dark:text-gray-200 dark:hover:bg-gray-600 dark:hover:text-white",onClick:o=>this.table.showModal=!0},"Table Transfer",8,X6)]),this.auth.hasAccess?(j(),V("li",Z6,[E("a",{href:"#",class:"block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 dark:text-gray-200 dark:hover:bg-gray-600 dark:hover:text-white",onClick:o=>this.table.showModalCaptainTransfer=!0},"Captain Transfer",8,Q6)])):ae("",!0)])],512),[[oc,this.table.activeDropdown===a.name]])])):ae("",!0)]),E("div",eE,[E("div",{class:"mt-1 text-center",onClick:o=>a.occupied===1&&!this.auth.restrictTableOrder?this.table.routeToMenu(a):""},[E("h5",{class:Ee(["mt-2 text-xl font-medium text-gray-900 dark:text-white",{"mt-3":a.occupied===0}])},be(a.name),3),E("span",rE,be(a.occupied===1?this.table.getTimeDifference(a):""),1)],8,tE),a.occupied!=1?(j(),V("div",nE,[E("button",{type:"button",class:Ee(["inline-flex items-center rounded px-2 py-2.5 text-center text-sm font-medium text-white hover:bg-[#2557D6]/90 focus:outline-none focus:ring-4 focus:ring-[#2557D6]/50 dark:focus:ring-[#2557D6]/50",[{"bg-blue-700":!this.auth.restrictTableOrder,"pointer-events-none bg-blue-400":this.auth.restrictTableOrder}]]),onClick:o=>!this.auth.restrictTableOrder&&this.table.addToSelectedTables(a)},[Ys(" Open Table "),iE],10,sE)])):ae("",!0),a.occupied===1?(j(),V("div",aE,[E("button",{type:"button",class:"mb-2 me-2 inline-flex items-center rounded bg-blue-700 px-5 py-2.5 text-center text-sm font-medium text-white hover:bg-[#2557D6]/90 focus:outline-none focus:ring-4 focus:ring-[#2557D6]/50 dark:focus:ring-[#2557D6]/50",onClick:o=>this.invoiceData.billing(a)},[uE,Ys(" Bill ")],8,oE),E("div",{class:Ee(["relative inline-flex h-10 w-10 items-center justify-center overflow-hidden rounded-full border hover:bg-blue-700 hover:text-white focus:outline-none focus:ring-4 focus:ring-blue-300 dark:border-blue-500 dark:text-blue-500 dark:hover:bg-blue-500 dark:hover:text-white dark:focus:ring-blue-800",[{"border-blue-700 text-blue-700":!this.auth.restrictTableOrder,"pointer-events-none border-blue-400 text-blue-400":this.auth.restrictTableOrder}]]),onClick:o=>!this.auth.restrictTableOrder&&this.table.routeToCart(a)},hE,10,lE)])):ae("",!0)])]))),128))])])}const dE=cr(H6,[["render",fE]]);const pE={name:"Table",components:{takeAwayTable:dE},setup(){const e=ws(),t=lr(),r=jt();return{table:e,invoiceData:t,auth:r}}},Ct=e=>(_p("data-v-80551b1d"),e=e(),Sp(),e),gE={class:"switch-wrapper mt-2"},mE=Ct(()=>E("label",{for:"Table",class:"switch-label text-center"},"Table",-1)),vE=Ct(()=>E("label",{for:"take_away",class:"switch-label text-center"},"Takeaway",-1)),yE=Ct(()=>E("span",{class:"highlighter"},null,-1)),bE={key:0,class:"m-auto"},wE={class:"flow-root"},xE={key:0,class:"fixed inset-0 z-50 flex items-center justify-center bg-gray-300 bg-opacity-50 text-lg"},_E={class:"grid grid-cols-2 gap-4 md:grid-cols-4 lg:grid-cols-5"},SE={class:"flex justify-between"},EE={class:"flex justify-start px-2 pt-2"},CE={key:0,class:"relative"},kE=["onClick"],AE=Ct(()=>E("svg",{class:"h-6 w-6","aria-hidden":"true",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[E("path",{d:"M6 10a2 2 0 11-4 0 2 2 0 014 0zM12 10a2 2 0 11-4 0 2 2 0 014 0zM16 12a2 2 0 100-4 2 2 0 000 4z"})],-1)),PE=[AE],DE={class:"absolute right-0 z-10 w-36 divide-y divide-gray-100 rounded-lg bg-white shadow dark:bg-gray-700"},TE={class:"py-2"},FE=["onClick"],OE={key:0},IE=["onClick"],RE={class:"flex flex-col pb-4"},NE=["onClick"],ME={class:"text-sm text-gray-500 dark:text-gray-400"},BE={key:0,class:"mt-8 text-center"},$E=["onClick"],HE=Ct(()=>E("svg",{class:"ml-2 h-6 w-6 dark:text-white",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[E("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13 9l3 3m0 0l-3 3m3-3H8m13 0a9 9 0 11-18 0 9 9 0 0118 0z"})],-1)),jE={key:1,class:"mt-2 flex justify-center"},LE=["onClick"],VE=Ct(()=>E("svg",{class:"svg-icon mr-2",viewBox:"0 0 24 24",width:"18",height:"18",fill:"white"},[E("path",{d:"M6 19H3a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1h3V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v4h3a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1h-3v2a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1v-2zm0-2v-1a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v1h2V9H4v8h2zM8 4v3h8V4H8zm0 13v3h8v-3H8zm-3-7h3v2H5v-2z"})],-1)),UE=["onClick"],qE=Ct(()=>E("svg",{"aria-hidden":"true",class:"h-10 w-6",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[E("path",{d:"M10 12a2 2 0 100-4 2 2 0 000 4z"}),E("path",{"fill-rule":"evenodd",d:"M.458 10C1.732 5.943 5.522 3 10 3s8.268 2.943 9.542 7c-1.274 4.057-5.064 7-9.542 7S1.732 14.057.458 10zM14 10a4 4 0 11-8 0 4 4 0 018 0z","clip-rule":"evenodd"})],-1)),KE=[qE],YE={key:1,class:"container m-auto"},zE={key:2,class:"fixed inset-0 z-10 overflow-y-auto bg-gray-100"},WE={class:"mt-20 flex items-center justify-center"},GE={class:"mt-10 w-full rounded-lg bg-white p-6 shadow-lg md:max-w-md"},JE={class:"flex justify-end"},XE=Ct(()=>E("span",{class:"sr-only"},"Close",-1)),ZE=Ct(()=>E("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"},null,-1)),QE=[ZE],eC=Ct(()=>E("h2",{class:"mt-1 block text-left text-xl font-medium text-gray-900 dark:text-white"}," Table Transfer ",-1)),tC={class:"relative",ref:"container"},rC=Ct(()=>E("label",{for:"newTable",class:"mt-6 block text-left text-gray-900 dark:text-white"}," New Table ",-1)),nC={key:0,class:"absolute left-0 top-full z-10 max-h-64 w-full overflow-y-scroll rounded bg-white shadow",ref:"dropdown"},sC=["onClick"],iC={class:"text-base font-semibold leading-normal"},aC=Ct(()=>E("label",{for:"newTable",class:"mt-6 block text-left text-gray-900 dark:text-white"}," Current Table ",-1)),oC=["value"],uC={class:"flex justify-end"},lC={key:3,class:"fixed inset-0 z-10 overflow-y-auto bg-gray-100"},cC={class:"mt-20 flex items-center justify-center"},hC={class:"mt-10 w-full rounded-lg bg-white p-6 shadow-lg md:max-w-md"},fC={class:"flex justify-end"},dC=Ct(()=>E("span",{class:"sr-only"},"Close",-1)),pC=Ct(()=>E("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"},null,-1)),gC=[pC],mC=Ct(()=>E("h2",{class:"mt-1 block text-left text-xl font-medium text-gray-900 dark:text-white"}," Captain Transfer ",-1)),vC={class:"relative",ref:"container"},yC=Ct(()=>E("label",{for:"newTable",class:"mt-6 block text-left text-gray-900 dark:text-white"}," New Captain ",-1)),bC={key:0,class:"absolute left-0 top-full z-10 max-h-64 w-full overflow-y-scroll rounded bg-white shadow",ref:"dropdown"},wC=["onClick"],xC={class:"text-base font-semibold leading-normal"},_C=Ct(()=>E("label",{for:"newTable",class:"mt-6 block text-left text-gray-900 dark:text-white"}," Current Captain ",-1)),SC=["value"],EC={class:"flex justify-end"};function CC(e,t,r,n,s,i){const a=$t("takeAwayTable");return j(),V(De,null,[E("div",gE,[_e(E("input",{id:"Table",type:"radio",name:"switch","onUpdate:modelValue":t[0]||(t[0]=o=>this.table.selectedOption=o),value:"Table"},null,512),[[cl,this.table.selectedOption]]),_e(E("input",{id:"take_away",type:"radio",name:"switch","onUpdate:modelValue":t[1]||(t[1]=o=>this.table.selectedOption=o),value:"take_away"},null,512),[[cl,this.table.selectedOption]]),mE,vE,yE]),this.table.selectedOption==="Table"?(j(),V("div",bE,[E("div",wE,[this.invoiceData.isPrinting?(j(),V("div",xE," Printing Invoice ")):ae("",!0),E("div",_E,[(j(!0),V(De,null,ht(this.table.filteredTables,o=>(j(),V("div",{"w-full":"",class:"w-full max-w-sm rounded border border-gray-200 bg-white shadow dark:border-gray-700 dark:bg-gray-800",key:o.name},[E("div",SE,[E("div",EE,[E("span",{class:Ee(["me-2 rounded px-2.5 py-0.5 text-sm font-medium",{"bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-300":this.table.getBadgeType(o)==="red","bg-blue-100 text-blue-800 dark:bg-blue-900 dark:text-blue-300":this.table.getBadgeType(o)==="default","bg-yellow-100 text-yellow-800":this.table.getBadgeType(o)==="yellow","bg-green-100 text-green-800":this.table.getBadgeType(o)==="green"}])},be(this.table.getBadgeText(o)),3)]),o.occupied===1?(j(),V("div",CE,[E("button",{class:"inline-block rounded-lg p-1.5 text-sm text-gray-500 dark:text-gray-400 dark:hover:bg-gray-700 dark:focus:ring-gray-700",type:"button",onClick:u=>this.table.toggleDropdown(o.name)},PE,8,kE),_e(E("div",DE,[E("ul",TE,[E("li",null,[E("a",{href:"#",class:"block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 dark:text-gray-200 dark:hover:bg-gray-600 dark:hover:text-white",onClick:u=>this.table.showModal=!0},"Table Transfer",8,FE)]),this.auth.hasAccess?(j(),V("li",OE,[E("a",{href:"#",class:"block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 dark:text-gray-200 dark:hover:bg-gray-600 dark:hover:text-white",onClick:u=>this.table.showModalCaptainTransfer=!0},"Captain Transfer",8,IE)])):ae("",!0)])],512),[[oc,this.table.activeDropdown===o.name]])])):ae("",!0)]),E("div",RE,[E("div",{class:"mt-1 text-center",onClick:u=>o.occupied===1&&!this.auth.restrictTableOrder?this.table.routeToMenu(o):""},[E("h5",{class:Ee(["mt-2 text-xl font-medium text-gray-900 dark:text-white",{"mt-3":o.occupied===0}])},be(o.name),3),E("span",ME,be(o.occupied===1?this.table.getTimeDifference(o):""),1)],8,NE),o.occupied!=1?(j(),V("div",BE,[E("button",{type:"button",class:Ee(["inline-flex items-center rounded px-2 py-2.5 text-center text-sm font-medium text-white hover:bg-[#2557D6]/90 focus:outline-none focus:ring-4 focus:ring-[#2557D6]/50 dark:focus:ring-[#2557D6]/50",[{"bg-blue-700":!this.auth.restrictTableOrder,"pointer-events-none bg-blue-400":this.auth.restrictTableOrder}]]),onClick:u=>!this.auth.restrictTableOrder&&this.table.addToSelectedTables(o)},[Ys(" Open Table "),HE],10,$E)])):ae("",!0),o.occupied===1?(j(),V("div",jE,[E("button",{type:"button",class:"mb-2 me-2 inline-flex items-center rounded bg-blue-700 px-5 py-2.5 text-center text-sm font-medium text-white hover:bg-[#2557D6]/90 focus:outline-none focus:ring-4 focus:ring-[#2557D6]/50 dark:focus:ring-[#2557D6]/50",onClick:u=>this.invoiceData.billing(o)},[VE,Ys(" Bill ")],8,LE),E("div",{class:Ee(["relative inline-flex h-10 w-10 items-center justify-center overflow-hidden rounded-full border hover:bg-blue-700 hover:text-white focus:outline-none focus:ring-4 focus:ring-blue-300 dark:border-blue-500 dark:text-blue-500 dark:hover:bg-blue-500 dark:hover:text-white dark:focus:ring-blue-800",[{"border-blue-700 text-blue-700":!this.auth.restrictTableOrder,"pointer-events-none border-blue-400 text-blue-400":this.auth.restrictTableOrder}]]),onClick:u=>!this.auth.restrictTableOrder&&this.table.routeToCart(o)},KE,10,UE)])):ae("",!0)])]))),128))])])])):ae("",!0),this.table.selectedOption==="take_away"?(j(),V("div",YE,[K(a)])):ae("",!0),n.table.showModal?(j(),V("div",zE,[E("div",WE,[E("div",GE,[E("div",JE,[XE,(j(),V("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",onClick:t[2]||(t[2]=o=>this.table.showModal=!1)},QE))]),eC,E("div",tC,[rC,_e(E("input",{type:"text",class:"mt-4 w-full appearance-none rounded border p-2 leading-tight text-gray-900 shadow focus:outline-none","onUpdate:modelValue":t[3]||(t[3]=o=>n.table.newTable=o),onClick:t[4]||(t[4]=o=>{this.table.showTable=!0,this.table.tableSearch()})},null,512),[[ke,n.table.newTable]]),this.table.showTable?(j(),V("div",nC,[(j(!0),V(De,null,ht(this.table.searchTable,(o,u)=>(j(),V("div",{class:"h-16 w-full rounded-lg p-4 hover:bg-gray-100",key:u,onClick:l=>this.table.selectTable(o)},[E("h1",iC,be(o.name),1)],8,sC))),128))],512)):ae("",!0)],512),aC,E("input",{type:"text",id:"newTable",class:"mt-4 w-full appearance-none rounded border p-2 leading-tight text-gray-900 shadow focus:outline-none",value:n.table.tableName,readonly:""},null,8,oC),E("div",uC,[E("button",{onClick:t[5]||(t[5]=o=>{this.table.showModal=!1,this.table.tableTransfer(n.table)}),class:"mt-8 rounded bg-blue-500 px-3 py-2 text-white hover:bg-blue-600"}," Transfer ")])])])])):ae("",!0),n.table.showModalCaptainTransfer?(j(),V("div",lC,[E("div",cC,[E("div",hC,[E("div",fC,[dC,(j(),V("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",onClick:t[6]||(t[6]=o=>n.table.showModalCaptainTransfer=!1)},gC))]),mC,E("div",vC,[yC,_e(E("input",{type:"text",class:"mt-4 w-full appearance-none rounded border p-2 leading-tight text-gray-900 shadow focus:outline-none",onClick:t[7]||(t[7]=o=>{this.table.showCaptain=!0,this.table.fetchCaptain()}),"onUpdate:modelValue":t[8]||(t[8]=o=>this.table.newCaptain=o)},null,512),[[ke,this.table.newCaptain]]),this.table.showCaptain?(j(),V("div",bC,[(j(!0),V(De,null,ht(this.table.captain,(o,u)=>(j(),V("div",{class:"h-16 w-full rounded-lg p-4 hover:bg-gray-100",key:u,onClick:l=>this.table.selectcaptain(o)},[E("h1",xC,be(o.name),1)],8,wC))),128))],512)):ae("",!0)],512),_C,E("input",{type:"text",id:"newTable",class:"mt-4 w-full appearance-none rounded border p-2 leading-tight text-gray-900 shadow focus:outline-none",value:this.table.currentCaptain,readonly:""},null,8,SC),E("div",EC,[E("button",{onClick:t[9]||(t[9]=o=>{this.table.showModalCaptainTransfer=!1,this.table.captianTransfer()}),class:"mt-8 rounded bg-blue-500 px-3 py-2 text-white hover:bg-blue-600"}," Transfer ")])])])])):ae("",!0)],64)}const td=cr(pE,[["render",CC],["__scopeId","data-v-80551b1d"]]),kC={name:"Customer",setup(){return{customers:su()}}},AC={class:"container m-auto"},PC={class:"mb-6 gap-6 md:grid-cols-2"},DC={class:"relative mt-5",ref:"container"},TC=E("div",{class:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3"},[E("svg",{"aria-hidden":"true",class:"h-5 w-5 text-gray-500 dark:text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[E("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})])],-1),FC={key:0,class:"absolute left-0 top-full z-10 max-h-64 w-full overflow-y-scroll rounded bg-white shadow md:w-3/5 lg:w-2/5",ref:"dropdown"},OC=["onClick"],IC={class:"text-base font-semibold leading-normal"},RC={class:"text-sm leading-normal"},NC={key:0},MC=E("svg",{fill:"none",stroke:"currentColor",class:"h-8 w-8 font-extrabold",viewBox:"0 0 25 25",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},[E("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 6v12m6-6H6"})],-1),BC={key:0,class:"fixed inset-0 z-10 mt-20 overflow-y-auto bg-gray-100"},$C={class:"mt-10 mb-16 flex items-center justify-center"},HC={class:"w-full rounded-lg bg-white p-6 shadow-lg md:max-w-md"},jC={class:"flex justify-end"},LC=E("span",{class:"sr-only"},"Close",-1),VC=E("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"},null,-1),UC=[VC],qC=E("h2",{class:"mt-1 block text-left text-xl font-medium text-gray-900 dark:text-white"}," New Customer ",-1),KC=E("label",{for:"newCustomer",class:"mt-6 block text-left text-gray-900 dark:text-white"}," Customer Name ",-1),YC=E("label",{for:"mobileNumber",class:"mt-6 block text-left text-gray-900 dark:text-white"}," Mobile Number ",-1),zC={class:"relative mt-5",ref:"container"},WC=E("label",{for:"customerGroup",class:"mt-6 block text-left text-gray-900 dark:text-white"}," Customer Group ",-1),GC={key:0,class:"absolute left-0 top-full z-10 max-h-64 w-full overflow-y-scroll rounded bg-white shadow",ref:"dropdown"},JC=["onClick"],XC={class:"text-base font-semibold leading-normal"},ZC={class:"relative mt-5",ref:"container"},QC=E("label",{for:"territory",class:"mt-6 block text-left text-gray-900 dark:text-white"}," Territory ",-1),ek={key:0,class:"absolute left-0 top-full z-10 max-h-64 w-full overflow-y-scroll rounded bg-white shadow",ref:"dropdown"},tk=["onClick"],rk={class:"text-base font-semibold leading-normal"},nk={class:"flex justify-end"},sk={class:"relative mb-6 mt-6"},ik=E("div",{class:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3"},[E("svg",{class:"h-6 w-6 text-gray-500 group-hover:text-blue-600 dark:text-gray-400 dark:group-hover:text-blue-500",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},[E("path",{"fill-rule":"evenodd",d:"M10 9a3 3 0 100-6 3 3 0 000 6zm-7 9a7 7 0 1114 0H3z","clip-rule":"evenodd"})])],-1),ak={key:1,class:"tex mt-10 text-xl font-semibold"},ok={key:2,class:"cart-item-details mt-1 grid grid-cols-4 gap-2 py-2 sm:w-full md:w-full lg:w-full"},uk=E("h3",{class:"font-semibold"},"Item Name",-1),lk=E("h3",{class:"font-semibold"},"Quantity",-1),ck=[uk,lk],hk=E("img",null,null,-1),fk={class:"cart-item-details sm:min-w-none grid w-full min-w-0 grid-cols-4 gap-2 py-2 sm:w-full md:w-full lg:w-full"},dk={class:"ml-4"};function pk(e,t,r,n,s,i){return j(),V("div",AC,[E("div",PC,[E("div",DC,[TC,_e(E("input",{type:"search",class:"block w-full rounded-lg border border-gray-300 bg-gray-50 p-2.5 pl-10 text-sm text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-blue-500 dark:focus:ring-blue-500 md:w-3/5 lg:w-2/5",placeholder:"Search Customers","onUpdate:modelValue":t[0]||(t[0]=a=>this.customers.search=a),onInput:t[1]||(t[1]=(...a)=>this.customers.handleSearchInput&&this.customers.handleSearchInput(...a)),onClick:t[2]||(t[2]=a=>{this.customers.showCustomers=!0,this.customers.showAddNewCustomer=!0}),required:""},null,544),[[ke,this.customers.search]]),this.customers.showCustomers&&this.customers.showAddNewCustomer?(j(),V("div",FC,[(j(!0),V(De,null,ht(this.customers.customer,(a,o)=>(j(),V("div",{class:"h-16 rounded-lg p-4 hover:bg-gray-100",key:o,onClick:u=>this.customers.selectCustomer(a)},[E("h1",IC,be(a.name),1),E("h2",RC,be(a.name)+" "+be(a.content?this.customers.extractName(a.content):""),1)],8,OC))),128)),this.customers.showAddNewCustomer?(j(),V("div",NC,[E("a",{href:"#",class:"mt-4 inline-flex items-center text-blue-600 hover:underline",onClick:t[3]||(t[3]=ky(a=>this.customers.newCustomerData(this.customers.search),["prevent"]))},[MC,Ys(" Create a New Customer ")])])):ae("",!0)],512)):ae("",!0)],512),this.customers.showModalNewCustomer?(j(),V("div",BC,[E("div",$C,[E("div",HC,[E("div",jC,[LC,(j(),V("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",onClick:t[4]||(t[4]=a=>this.customers.showModalNewCustomer=!1)},UC))]),qC,KC,_e(E("input",{type:"text",id:"newCustomer",class:"mt-4 w-full rounded-lg border border-gray-300 bg-gray-50 text-sm text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-blue-500 dark:focus:ring-blue-500","onUpdate:modelValue":t[5]||(t[5]=a=>this.customers.newCustomer=a)},null,512),[[ke,this.customers.newCustomer]]),YC,_e(E("input",{type:"number",id:"mobileNumber",class:"mt-4 w-full rounded-lg border border-gray-300 bg-gray-50 text-sm text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-blue-500 dark:focus:ring-blue-500","onUpdate:modelValue":t[6]||(t[6]=a=>this.customers.newCustomerMobileNo=a)},null,512),[[ke,this.customers.newCustomerMobileNo]]),E("div",zC,[WC,_e(E("input",{type:"text",id:"customerGroup",class:"mt-4 w-full rounded-lg border border-gray-300 bg-gray-50 text-sm text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-blue-500 dark:focus:ring-blue-500","onUpdate:modelValue":t[7]||(t[7]=a=>this.customers.customerGroup=a),onClick:t[8]||(t[8]=a=>{this.customers.showCustomersGroup=!0,this.customers.pickCustomerGroup()}),required:""},null,512),[[ke,this.customers.customerGroup]]),this.customers.showCustomersGroup?(j(),V("div",GC,[(j(!0),V(De,null,ht(this.customers.customerGroupList,(a,o)=>(j(),V("div",{class:"h-12 rounded-lg p-4 hover:bg-gray-100",key:o,onClick:u=>this.customers.selectCustomerGroup(a)},[E("h1",XC,be(a.name),1)],8,JC))),128))],512)):ae("",!0)],512),E("div",ZC,[QC,_e(E("input",{type:"text",id:"territory",class:"mt-4 w-full rounded-lg border border-gray-300 bg-gray-50 text-sm text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-blue-500 dark:focus:ring-blue-500","onUpdate:modelValue":t[9]||(t[9]=a=>this.customers.customerTerritory=a),onClick:t[10]||(t[10]=a=>{this.customers.showCustomersTerritory=!0,this.customers.pickCustomerTerritory()}),required:""},null,512),[[ke,this.customers.customerTerritory]]),this.customers.showCustomersTerritory?(j(),V("div",ek,[(j(!0),V(De,null,ht(this.customers.customerTerritoryList,(a,o)=>(j(),V("div",{class:"h-12 rounded-lg p-4 hover:bg-gray-100",key:o,onClick:u=>this.customers.selectCustomerTerritory(a)},[E("h1",rk,be(a.name),1)],8,tk))),128))],512)):ae("",!0)],512),E("div",nk,[E("button",{onClick:t[11]||(t[11]=a=>this.customers.addNewCustomer()),class:"mt-8 rounded bg-blue-500 px-3 py-2 text-white hover:bg-blue-600"}," Save ")])])])])):ae("",!0),E("div",sk,[ik,_e(E("input",{type:"text",id:"input-group-1",class:"block w-full rounded-lg border border-gray-300 bg-gray-50 p-2.5 pl-10 text-sm text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-blue-500 dark:focus:ring-blue-500 md:w-3/5 lg:w-2/5",placeholder:"Pax",required:"","onUpdate:modelValue":t[12]||(t[12]=a=>this.customers.numberOfPax=a)},null,512),[[ke,this.customers.numberOfPax]])]),this.customers.customerFavouriteItems.length>0?(j(),V("h1",ak," Favourite Items ")):ae("",!0),this.customers.customerFavouriteItems.length>0?(j(),V("div",ok,ck)):ae("",!0),(j(!0),V(De,null,ht(this.customers.customerFavouriteItems,(a,o)=>(j(),V("div",{key:o},[hk,E("div",fk,[E("h3",null,be(a.item_name),1),E("h3",dk,be(a.qty),1)])]))),128))])])}const gk=cr(kC,[["render",pk]]),mk={setup(){return{menu:gs()}}},vk={class:"flex flex-col md:flex-row mt-2"},yk=E("div",{class:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3"},[E("svg",{"aria-hidden":"true",class:"h-5 w-5 text-gray-500 dark:text-gray-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},[E("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})])],-1),bk={key:0,class:"mt-2 flex flex-row md:ml-2 md:mt-0 md:w-1/3"};function wk(e,t,r,n,s,i){return j(),V("div",vk,[E("div",{class:Ee(["relative",[{"md:w-2/3":this.menu.showPriority==!0,"md:w-full":this.menu.showPriority==!1}]])},[yk,_e(E("input",{type:"search",id:"default-search",class:"block w-full rounded-lg border border-gray-300 bg-gray-50 pl-10 text-sm text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-blue-500 dark:focus:ring-blue-500",placeholder:"Item Search","onUpdate:modelValue":t[0]||(t[0]=a=>this.menu.searchTerm=a),onInput:t[1]||(t[1]=(...a)=>this.menu.handleSearchInput&&this.menu.handleSearchInput(...a)),onClick:t[2]||(t[2]=(...a)=>this.menu.clearSearch&&this.menu.clearSearch(...a)),autocapitalize:"none"},null,544),[[ke,this.menu.searchTerm]])],2),this.menu.showPriority==!0?(j(),V("div",bk,[E("button",{class:"focus:shadow-outline w-1/2 rounded bg-blue-700 px-4 py-2 font-bold text-white hover:bg-blue-900 focus:outline-none",type:"button",onClick:t[3]||(t[3]=(...a)=>this.menu.showSpecialItems&&this.menu.showSpecialItems(...a))}," Priority "),E("button",{class:"focus:shadow-outline ml-2 w-1/2 rounded bg-blue-700 px-4 py-2 font-bold text-white hover:bg-blue-900 focus:outline-none",type:"button",onClick:t[4]||(t[4]=(...a)=>this.menu.showAllItems&&this.menu.showAllItems(...a))}," All ")])):ae("",!0)])}const xk=cr(mk,[["render",wk]]);const _k={setup(){const e=gs(),t=jt(),r=Qs();return{menu:e,auth:t,recentOrders:r}},name:"Menu",components:{Search:xk},mounted(){window.scrollTo(0,0)}},Sk={key:0,class:"container mx-auto"},Ek={class:"mt-8 grid grid-cols-2 gap-4 md:grid-cols-3 lg:grid-cols-5"},Ck={class:"mb-2 mt-0 text-lg font-normal leading-normal"},kk={class:"mb-2 mt-0 text-lg font-normal leading-normal"},Ak={key:0},Pk=["onClick"],Dk={key:1,class:"flex rounded-md"},Tk=["onClick"],Fk=["value","onInput","onClick"],Ok=["onClick"],Ik={key:0,class:"fixed inset-0 z-10 mt-20 overflow-y-auto bg-gray-100"},Rk={class:"mt-10 flex items-center justify-center"},Nk={class:"w-full rounded-lg bg-white p-6 shadow-lg md:max-w-md"},Mk={class:"flex justify-end"},Bk=E("span",{class:"sr-only"},"Close",-1),$k=E("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"},null,-1),Hk=[$k],jk=E("h2",{class:"mt-1 block text-left text-xl font-medium text-gray-900 dark:text-white"}," Enter Details ",-1),Lk={class:"relative"},Vk=E("label",{for:"quantity",class:"mt-6 block text-left text-gray-900 dark:text-white"}," Quantity ",-1),Uk=["readonly"],qk=E("label",{for:"paidAmount",class:"mt-6 block text-left text-gray-900 dark:text-white"}," Comments ",-1),Kk={class:"flex justify-end"},Yk={key:1},zk={key:0,class:"flex h-screen items-center justify-center"},Wk=E("div",{class:"text-center"}," No items found. Please select a table or set an active menu. ",-1),Gk=[Wk],Jk={key:1,class:"flex h-screen items-center justify-center"},Xk=E("div",{class:"text-center"},"No items found.",-1),Zk=[Xk],Qk={key:2,class:"mt-4 flex justify-center"},e8=["disabled"],t8=["onClick"],r8={key:1},n8=["disabled"];function s8(e,t,r,n,s,i){const a=$t("Search");return j(),V(De,null,[K(a),this.menu.paginatedItems.length>0?(j(),V("div",Sk,[E("div",Ek,[(j(!0),V(De,null,ht(this.menu.paginatedItems,o=>(j(),V("div",{class:"rounded-md border px-2 py-2 text-center shadow",key:o.item},[E("h2",Ck,be(o.item_name),1),E("h2",kk," ₹ "+be(o.rate),1),o.qty?ae("",!0):(j(),V("div",Ak,[E("button",{onClick:u=>{o.showInput=!0,this.menu.addToCart(o)},class:"rounded border px-10 pb-2 pt-2.5 text-xs font-medium leading-normal"}," ADD + ",8,Pk)])),o.qty?(j(),V("div",Dk,[E("button",{type:"button",class:Ee(["-ml-px inline-flex items-center justify-center gap-2 border bg-white px-4 py-3 align-middle text-sm font-medium shadow-sm transition-all focus:outline-none dark:border-gray-700",{"text-gray-700":this.recentOrders.editPrintedInvoice===0||this.auth.removeTableOrderItem===1,"text-gray-300":this.recentOrders.editPrintedInvoice===1||this.auth.removeTableOrderItem===0}]),onClick:u=>(this.recentOrders.editPrintedInvoice===0||this.auth.removeTableOrderItem===1)&&this.menu.decrementItemQuantity(o)}," - ",10,Tk),E("input",{type:"number",id:"qty_input",name:"qty_input",class:"block w-full border border-gray-200 text-center text-sm shadow-sm",value:o.qty,onInput:u=>o.qty=u.target.value,readonly:"",onClick:u=>this.menu.showModal(o)},null,40,Fk),E("button",{type:"button",class:"-ml-px inline-flex items-center justify-center gap-2 border bg-white px-4 py-3 align-middle text-sm font-medium text-gray-700 shadow-sm transition-all focus:outline-none dark:border-gray-700",onClick:u=>this.menu.incrementItemQuantity(o)}," + ",8,Ok)])):ae("",!0)]))),128)),n.menu.showDialog?(j(),V("div",Ik,[E("div",Rk,[E("div",Nk,[E("div",Mk,[Bk,(j(),V("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",onClick:t[0]||(t[0]=o=>n.menu.showDialog=!1)},Hk))]),jk,E("div",Lk,[Vk,_e(E("input",{type:"number",id:"modeOfPayment",class:"mt-4 w-full appearance-none rounded border p-2 leading-tight text-gray-900 shadow focus:outline-none","onUpdate:modelValue":t[1]||(t[1]=o=>this.menu.quantity=o),readonly:this.recentOrders.editPrintedInvoice===1&&this.auth.removeTableOrderItem===0},null,8,Uk),[[ke,this.menu.quantity]]),qk,_e(E("input",{type:"text",id:"Comments",class:"mt-4 w-full rounded border p-2 leading-tight text-gray-900 shadow focus:outline-none","onUpdate:modelValue":t[2]||(t[2]=o=>this.menu.itemComments=o)},null,512),[[ke,this.menu.itemComments]])]),E("div",Kk,[E("button",{onClick:t[3]||(t[3]=o=>this.menu.addToCartAndUpdateQty(e.item)),class:"mt-8 rounded bg-blue-500 px-3 py-2 text-white hover:bg-blue-600"}," Add ")])])])])):ae("",!0)])])):(j(),V("div",Yk,[this.menu.items.length===0?(j(),V("div",zk,Gk)):(j(),V("div",Jk,Zk))])),this.menu.paginatedItems.length>0?(j(),V("div",Qk,[E("button",{class:Ee([{hidden:this.menu.currentPage===1},"mr-2 rounded-md border px-2 py-1"]),disabled:this.menu.currentPage===1,onClick:t[4]||(t[4]=o=>this.menu.currentPage-=1)}," Previous ",10,e8),(j(!0),V(De,null,ht(this.menu.pageNumbers,o=>(j(),V("div",null,[o===this.menu.currentPage||Math.abs(o-this.menu.currentPage)<=2?(j(),V("button",{key:o,onClick:u=>this.menu.currentPage=o,class:Ee([{"bg-gray-200":o===this.menu.currentPage},"mr-2 rounded-md border px-2 py-1"])},be(o),11,t8)):this.menu.pageNumbers.indexOf(o)===0||this.menu.pageNumbers.indexOf(o)===this.menu.pageNumbers.length-1?(j(),V("span",r8," ... ")):ae("",!0)]))),256)),E("button",{disabled:this.menu.currentPage===this.menu.totalPages,onClick:t[5]||(t[5]=o=>this.menu.currentPage+=1),class:Ee([{hidden:this.menu.currentPage===this.menu.totalPages},"rounded-md border px-2 py-1"])}," Next ",10,n8)])):ae("",!0)],64)}const i8=cr(_k,[["render",s8]]);const a8={name:"Cart",setup(){const e=gs(),t=ws(),r=jt(),n=Qs(),s=lr();return{menu:e,table:t,invoiceData:s,auth:r,recentOrders:n}},mounted(){window.scrollTo(0,0)}},o8={key:0,class:"float-right rounded px-4 py-2"},u8={key:1,class:"flex h-screen items-center justify-center"},l8=E("div",{class:"text-center"},"Nothing to show here",-1),c8=[l8],h8={key:2,class:"mt-20 border shadow"},f8=E("div",{class:"cart-item-details grid w-full grid-cols-3 gap-4 md:w-full lg:w-full"},[E("h3",{class:"ml-3 mt-2 text-base font-semibold text-gray-900 dark:text-white"}," Item Name "),E("h3",{class:"ml-3 mt-2 text-center text-lg font-semibold text-gray-900 dark:text-white"}," Quantity ")],-1),d8={class:"w-full text-base text-gray-900 dark:text-white"},p8=["value","onInput","onClick"],g8={class:"items-center text-center"},m8=["onClick"],v8=E("path",{d:"M5.5 5.5A.5.5 0 0 1 6 6v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5Zm2.5 0a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5Zm3 .5a.5.5 0 0 0-1 0v6a.5.5 0 0 0 1 0V6Z"},null,-1),y8=E("path",{d:"M14.5 3a1 1 0 0 1-1 1H13v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V4h-.5a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1H6a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1h3.5a1 1 0 0 1 1 1v1ZM4.118 4 4 4.059V13a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V4.059L11.882 4H4.118ZM2.5 3h11V2h-11v1Z"},null,-1),b8=[v8,y8],w8={key:3,class:"relative mt-8"},x8=E("label",{for:"Comments",class:"mt-6 block text-left text-gray-900 dark:text-white"}," Comments ",-1),_8={key:4,class:"fixed inset-0 z-10 mt-20 overflow-y-auto bg-gray-100"},S8={class:"mt-20 flex items-center justify-center"},E8={class:"w-full rounded-lg bg-white p-6 shadow-lg md:max-w-md"},C8={class:"flex justify-end"},k8=E("span",{class:"sr-only"},"Close",-1),A8=E("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"},null,-1),P8=[A8],D8=E("h2",{class:"mt-1 block text-left text-xl font-medium text-gray-900 dark:text-white"}," Are you sure to cancel ",-1),T8={class:"relative"},F8=E("label",{for:"cancelReason",class:"mt-6 block text-left text-gray-900 dark:text-white"}," Reason ",-1),O8={class:"flex justify-end"},I8={key:5,class:"fixed inset-0 z-10 mt-20 overflow-y-auto bg-gray-100"},R8={class:"mt-10 flex items-center justify-center"},N8={class:"w-full rounded-lg bg-white p-6 shadow-lg md:max-w-md"},M8={class:"flex justify-end"},B8=E("span",{class:"sr-only"},"Close",-1),$8=E("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"},null,-1),H8=[$8],j8=E("h2",{class:"mt-1 block text-left text-xl font-medium text-gray-900 dark:text-white"}," Enter Details ",-1),L8={class:"relative"},V8=E("label",{for:"quantity",class:"mt-6 block text-left text-gray-900 dark:text-white"}," Quantity ",-1),U8=["readonly"],q8=E("label",{for:"Comments",class:"mt-6 block text-left text-gray-900 dark:text-white"}," Comments ",-1),K8={class:"flex justify-end"},Y8={key:6,class:"mt-4 w-full divide-y divide-gray-200 bg-white"},z8=E("summary",{class:"question w-full cursor-pointer select-none py-3"}," Additional Details ",-1),W8={class:"additional-details m-3"},G8={key:0,for:"grand_total",class:"grand_total mt-10 block text-sm font-medium text-gray-900 dark:text-white"},J8=["value"],X8={key:2,for:"invoiceNo",class:"mt-10 block text-sm font-medium text-gray-900 dark:text-white"},Z8=["value"],Q8=["value"];function eA(e,t,r,n,s,i){return j(),V(De,null,[this.menu.cart.length>0?(j(),V("div",o8,[this.invoiceData.showUpdateButtton===!0?(j(),V("button",{key:0,class:"mr-4 rounded px-4 py-2 shadow",onClick:t[0]||(t[0]=a=>this.invoiceData.invoiceCreation())}," Update ")):ae("",!0),(this.recentOrders.invoicePrinted===0||this.table.invoicePrinted===0)&&!this.auth.cashier?(j(),V("button",{key:1,class:"rounded px-4 py-2 shadow",onClick:t[1]||(t[1]=a=>this.invoiceData.showCancelInvoiceModal())}," Cancel ")):ae("",!0)])):ae("",!0),this.menu.cart.length===0?(j(),V("div",u8,c8)):ae("",!0),this.menu.cart.length>0?(j(),V("div",h8,[f8,(j(!0),V(De,null,ht(this.menu.cart,(a,o)=>(j(),V("div",{class:"cart-item-details ml-3 mt-2 grid w-full grid-cols-3 gap-4 pb-2 md:w-full lg:w-full",key:o},[E("h3",d8,be(a.item_name),1),E("input",{type:"number",id:"qty_input_cart",name:"qty_input_cart",class:"block w-full border-none text-center text-base text-gray-900 dark:text-white",value:parseInt(a.qty),onInput:u=>a.qty=u.target.value,onClick:u=>{this.menu.showModal(a),n.menu.showDialogCart=!0},readonly:""},null,40,p8),E("div",g8,[E("button",{class:"p-2 text-center",type:"button",onClick:u=>(this.recentOrders.editPrintedInvoice===0||this.auth.removeTableOrderItem===1)&&this.menu.removeItemFromCart(o)},[(j(),V("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25",height:"25",style:Cn({fill:this.menu.setColorForBilledInvoice}),class:"bi bi-trash",viewBox:"0 0 16 16"},b8,4))],8,m8)])]))),128))])):ae("",!0),this.menu.cart.length>0?(j(),V("div",w8,[x8,_e(E("input",{id:"comments",class:"comments mt-3 block w-full rounded-md border bg-gray-50 p-2.5 text-sm text-gray-900 md:w-3/5 lg:w-2/5","onUpdate:modelValue":t[2]||(t[2]=a=>this.menu.comments=a)},null,512),[[ke,this.menu.comments]])])):ae("",!0),this.invoiceData.cancelInvoiceFlag===!0?(j(),V("div",_8,[E("div",S8,[E("div",E8,[E("div",C8,[k8,(j(),V("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",onClick:t[3]||(t[3]=a=>this.invoiceData.cancelInvoiceFlag=!1)},P8))]),D8,E("div",T8,[F8,_e(E("input",{type:"text",id:"cancelReason",class:"mt-4 w-full appearance-none rounded border p-2 leading-tight text-gray-900 shadow focus:outline-none","onUpdate:modelValue":t[4]||(t[4]=a=>this.invoiceData.cancelReason=a)},null,512),[[ke,this.invoiceData.cancelReason]])]),E("div",O8,[E("button",{onClick:t[5]||(t[5]=a=>this.invoiceData.cancelInvoiceFlag=!1),class:"mr-3 mt-6 rounded border border-gray-300 bg-gray-50 px-3 py-2"}," No "),E("button",{onClick:t[6]||(t[6]=a=>{this.invoiceData.cancelInvoice(),this.invoiceData.cancelInvoiceFlag=!1}),class:"mt-6 rounded bg-blue-500 px-3 py-2 text-white hover:bg-blue-600"}," Yes ")])])])])):ae("",!0),n.menu.showDialogCart?(j(),V("div",I8,[E("div",R8,[E("div",N8,[E("div",M8,[B8,(j(),V("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",onClick:t[7]||(t[7]=a=>n.menu.showDialogCart=!1)},H8))]),j8,E("div",L8,[V8,_e(E("input",{type:"number",id:"modeOfPayment",class:"mt-4 w-full appearance-none rounded border p-2 leading-tight text-gray-900 shadow focus:outline-none","onUpdate:modelValue":t[8]||(t[8]=a=>this.menu.quantity=a),readonly:this.recentOrders.editPrintedInvoice===1&&this.auth.removeTableOrderItem===0},null,8,U8),[[ke,this.menu.quantity]]),q8,_e(E("input",{type:"text",id:"Comments",class:"mt-4 w-full appearance-none rounded border p-2 leading-tight text-gray-900 shadow focus:outline-none","onUpdate:modelValue":t[9]||(t[9]=a=>this.menu.itemComments=a)},null,512),[[ke,this.menu.itemComments]])]),E("div",K8,[E("button",{onClick:t[10]||(t[10]=a=>{this.menu.addToCartAndUpdateQty(e.item),n.menu.showDialogCart=!1}),class:"mt-8 rounded bg-blue-500 px-3 py-2 text-white hover:bg-blue-600"}," Add ")])])])])):ae("",!0),this.menu.cart.length>0?(j(),V("div",Y8,[E("details",null,[z8,E("div",W8,[this.table.grandTotal||n.invoiceData.grandTotal?(j(),V("label",G8," Grand Total ")):ae("",!0),this.table.grandTotal||n.invoiceData.grandTotal?(j(),V("input",{key:1,class:"block w-full rounded-md border bg-gray-50 p-2.5 text-sm text-gray-900 md:w-3/5 lg:w-2/5",value:this.table.grandTotal||n.invoiceData.grandTotal,readonly:""},null,8,J8)):ae("",!0),this.table.invoiceNo||n.invoiceData.invoiceNumber?(j(),V("label",X8," Invoice ")):ae("",!0),this.table.invoiceNo||n.invoiceData.invoiceNumber?(j(),V("input",{key:3,class:"invoiceNo mt-3 block w-full rounded-md border bg-gray-50 p-2.5 text-sm text-gray-900 md:w-3/5 lg:w-2/5",value:this.table.invoiceNo||n.invoiceData.invoiceNumber,readonly:""},null,8,Z8)):ae("",!0),E("label",{for:"waiter",class:Ee(["mt-10 block text-sm font-medium text-gray-900 dark:text-white",{hidden:this.invoiceData.waiter===""}])}," Waiter ",2),E("input",{class:Ee(["waiter mt-3 block w-full rounded-md border bg-gray-50 p-2.5 text-sm text-gray-900 md:w-3/5 lg:w-2/5",{hidden:this.invoiceData.waiter===""}]),value:this.table.previousWaiter!==null&&this.table.previousWaiter!==void 0?this.table.previousWaiter:this.recentOrders.recentWaiter!==null&&this.recentOrders.recentWaiter!==void 0?this.recentOrders.recentWaiter:this.invoiceData.waiter,readonly:""},null,10,Q8),E("label",{for:"posProfile",class:Ee(["mt-10 block text-sm font-medium text-gray-900 dark:text-white",{hidden:this.invoiceData.posProfile===""}])}," POS Profile ",2),_e(E("input",{class:Ee(["posProfile mt-3 block w-full rounded-md border bg-gray-50 p-2.5 text-sm text-gray-900 md:w-3/5 lg:w-2/5",{hidden:this.invoiceData.posProfile===""}]),"onUpdate:modelValue":t[11]||(t[11]=a=>this.invoiceData.posProfile=a),readonly:""},null,2),[[ke,this.invoiceData.posProfile]]),E("label",{for:"cashier",class:Ee(["mt-10 block text-sm font-medium text-gray-900 dark:text-white",{hidden:this.invoiceData.cashier===""}])}," Cashier ",2),_e(E("input",{class:Ee(["mt-3 block w-full rounded-md border bg-gray-50 p-2.5 text-sm text-gray-900 md:w-3/5 lg:w-2/5",{hidden:this.invoiceData.cashier===""}]),"onUpdate:modelValue":t[12]||(t[12]=a=>this.invoiceData.cashier=a),readonly:""},null,2),[[ke,this.invoiceData.cashier]])])])])):ae("",!0)],64)}const tA=cr(a8,[["render",eA]]);Nr({});var zg={exports:{}};/*! - Copyright (c) 2018 Jed Watson. - Licensed under the MIT License (MIT), see - http://jedwatson.github.io/classnames -*/(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var n=[],s=0;st in e?iA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,uA=(e,t)=>{for(var r in t||(t={}))aA.call(t,r)&&od(e,r,t[r]);if(ad)for(var r of ad(t))oA.call(t,r)&&od(e,r,t[r]);return e};const lA={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};uA({linear:sA},lA);var cA=typeof global=="object"&&global&&global.Object===Object&&global;const hA=cA;var fA=typeof self=="object"&&self&&self.Object===Object&&self,dA=hA||fA||Function("return this")();const Uc=dA;var pA=Uc.Symbol;const Nn=pA;var Wg=Object.prototype,gA=Wg.hasOwnProperty,mA=Wg.toString,wi=Nn?Nn.toStringTag:void 0;function vA(e){var t=gA.call(e,wi),r=e[wi];try{e[wi]=void 0;var n=!0}catch(i){}var s=mA.call(e);return n&&(t?e[wi]=r:delete e[wi]),s}var yA=Object.prototype,bA=yA.toString;function wA(e){return bA.call(e)}var xA="[object Null]",_A="[object Undefined]",ud=Nn?Nn.toStringTag:void 0;function qc(e){return e==null?e===void 0?_A:xA:ud&&ud in Object(e)?vA(e):wA(e)}function Kc(e){return e!=null&&typeof e=="object"}var SA="[object Symbol]";function Yc(e){return typeof e=="symbol"||Kc(e)&&qc(e)==SA}function EA(e,t){for(var r=-1,n=e==null?0:e.length,s=Array(n);++r0){if(++t>=WA)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function ZA(e){return function(){return e}}var QA=function(){try{var e=zc(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();const fo=QA;var eP=fo?function(e,t){return fo(e,"toString",{configurable:!0,enumerable:!1,value:ZA(t),writable:!0})}:AA;const tP=eP;var rP=XA(tP);const nP=rP;var sP=9007199254740991,iP=/^(?:0|[1-9]\d*)$/;function Jg(e,t){var r=typeof e;return t=t==null?sP:t,!!t&&(r=="number"||r!="symbol"&&iP.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=hP}var dP="[object Arguments]";function dd(e){return Kc(e)&&qc(e)==dP}var Zg=Object.prototype,pP=Zg.hasOwnProperty,gP=Zg.propertyIsEnumerable,mP=dd(function(){return arguments}())?dd:function(e){return Kc(e)&&pP.call(e,"callee")&&!gP.call(e,"callee")};const Qg=mP;var vP=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,yP=/^\w*$/;function bP(e,t){if(pa(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Yc(e)?!0:yP.test(e)||!vP.test(e)||t!=null&&e in Object(t)}var wP=zc(Object,"create");const ea=wP;function xP(){this.__data__=ea?ea(null):{},this.size=0}function _P(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var SP="__lodash_hash_undefined__",EP=Object.prototype,CP=EP.hasOwnProperty;function kP(e){var t=this.__data__;if(ea){var r=t[e];return r===SP?void 0:r}return CP.call(t,e)?t[e]:void 0}var AP=Object.prototype,PP=AP.hasOwnProperty;function DP(e){var t=this.__data__;return ea?t[e]!==void 0:PP.call(t,e)}var TP="__lodash_hash_undefined__";function FP(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=ea&&t===void 0?TP:t,this}function fs(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t-1}function $P(e,t){var r=this.__data__,n=ou(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function ci(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t0&&r(o)?t>1?em(o,t-1,r,n,s):nD(s,o):n||(s[s.length]=o)}return s}function iD(e){var t=e==null?0:e.length;return t?em(e,1):[]}function aD(e){return nP(cP(e,void 0,iD),e+"")}function oD(e,t){return e!=null&&t in Object(e)}function uD(e,t,r){t=lu(t,e);for(var n=-1,s=t.length,i=!1;++nrA(yD[e.size.value],e.href.value?"":vD[e.type.value],e.href.value?"":mD[e.type.value],e.href.value?pD:"",t.isContentEmpty.value?gD:dD))}}const Jc=Er({__name:"Badge",props:{type:{type:String,default:"default"},size:{type:String,default:"xs"},href:{type:String,default:null}},setup(e){const t=e,r=yv(),n=et(()=>!r.default),s=et(()=>t.href?"a":"span"),{badgeClasses:i}=bD(gp(t),{isContentEmpty:n});return(a,o)=>(j(),nn(mv(Pn(s)),{class:Ee(Pn(i)),href:e.href},{default:zt(()=>[Ks(a.$slots,"icon"),Ks(a.$slots,"default")]),_:3},8,["class","href"]))}});function on(e){return e.split("-")[0]}function Us(e){return e.split("-")[1]}function ga(e){return["top","bottom"].includes(on(e))?"x":"y"}function Xc(e){return e==="y"?"height":"width"}function gd(e){let{reference:t,floating:r,placement:n}=e;const s=t.x+t.width/2-r.width/2,i=t.y+t.height/2-r.height/2;let a;switch(on(n)){case"top":a={x:s,y:t.y-r.height};break;case"bottom":a={x:s,y:t.y+t.height};break;case"right":a={x:t.x+t.width,y:i};break;case"left":a={x:t.x-r.width,y:i};break;default:a={x:t.x,y:t.y}}const o=ga(n),u=Xc(o);switch(Us(n)){case"start":a[o]=a[o]-(t[u]/2-r[u]/2);break;case"end":a[o]=a[o]+(t[u]/2-r[u]/2);break}return a}const wD=(e,t,r)=>Se(void 0,null,function*(){const{placement:n="bottom",strategy:s="absolute",middleware:i=[],platform:a}=r;let o=yield a.getElementRects({reference:e,floating:t,strategy:s}),{x:u,y:l}=gd(fr(kt({},o),{placement:n})),h=n,d={};for(let c=0;c({name:"arrow",options:e,fn(r){return Se(this,null,function*(){const{element:n,padding:s=0}=e!=null?e:{},{x:i,y:a,placement:o,rects:u,platform:l}=r;if(n==null)return{};const h=tm(s),d={x:i,y:a},c=on(o),f=ga(c),p=Xc(f),g=yield l.getDimensions({element:n}),m=f==="y"?"top":"left",y=f==="y"?"bottom":"right",x=u.reference[p]+u.reference[f]-d[f]-u.floating[p],C=d[f]-u.reference[f],A=yield l.getOffsetParent({element:n}),P=A?f==="y"?A.clientHeight||0:A.clientWidth||0:0,b=x/2-C/2,S=h[m],_=P-g[p]-h[y],w=P/2-g[p]/2+b,k=Ol(S,w,_);return{data:{[f]:k,centerOffset:w-k}}})}}),ED={left:"right",right:"left",bottom:"top",top:"bottom"};function po(e){return e.replace(/left|right|bottom|top/g,t=>ED[t])}function rm(e,t){const r=Us(e)==="start",n=ga(e),s=Xc(n);let i=n==="x"?r?"right":"left":r?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=po(i)),{main:i,cross:po(i)}}const CD={start:"end",end:"start"};function Il(e){return e.replace(/start|end/g,t=>CD[t])}const kD=["top","right","bottom","left"],AD=kD.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);function PD(e,t,r){return(e?[...r.filter(n=>Us(n)===e),...r.filter(n=>Us(n)!==e)]:r.filter(n=>on(n)===n)).filter(n=>e?Us(n)===e||(t?Il(n)!==n:!1):!0)}const DD=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,fn(r){return Se(this,null,function*(){var n,s,i,a,o,u;const{x:l,y:h,rects:d,middlewareData:c,placement:f}=r,M=e,{alignment:p=null,allowedPlacements:g=AD,autoAlignment:m=!0}=M,y=Ss(M,["alignment","allowedPlacements","autoAlignment"]);if((n=c.autoPlacement)!=null&&n.skip)return{};const x=PD(p,m,g),C=yield cu(r,y),A=(s=(i=c.autoPlacement)==null?void 0:i.index)!=null?s:0,P=x[A],{main:b,cross:S}=rm(P,d);if(f!==P)return{x:l,y:h,reset:{placement:x[0]}};const _=[C[on(P)],C[b],C[S]],w=[...(a=(o=c.autoPlacement)==null?void 0:o.overflows)!=null?a:[],{placement:P,overflows:_}],k=x[A+1];if(k)return{data:{index:A+1,overflows:w},reset:{placement:k}};const D=w.slice().sort((F,I)=>F.overflows[0]-I.overflows[0]),T=(u=D.find(F=>{let{overflows:I}=F;return I.every(N=>N<=0)}))==null?void 0:u.placement;return{data:{skip:!0},reset:{placement:T!=null?T:D[0].placement}}})}}};function TD(e){const t=po(e);return[Il(e),t,Il(t)]}const FD=function(e){return e===void 0&&(e={}),{name:"flip",options:e,fn(r){return Se(this,null,function*(){var n,s;const{placement:i,middlewareData:a,rects:o,initialPlacement:u}=r;if((n=a.flip)!=null&&n.skip)return{};const _=e,{mainAxis:l=!0,crossAxis:h=!0,fallbackPlacements:d,fallbackStrategy:c="bestFit",flipAlignment:f=!0}=_,p=Ss(_,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","flipAlignment"]),g=on(i),m=d||(g===u||!f?[po(u)]:TD(u)),y=[u,...m],x=yield cu(r,p),C=[];let A=((s=a.flip)==null?void 0:s.overflows)||[];if(l&&C.push(x[g]),h){const{main:w,cross:k}=rm(i,o);C.push(x[w],x[k])}if(A=[...A,{placement:i,overflows:C}],!C.every(w=>w<=0)){var P,b;const w=((P=(b=a.flip)==null?void 0:b.index)!=null?P:0)+1,k=y[w];if(k)return{data:{index:w,overflows:A},reset:{placement:k}};let D="bottom";switch(c){case"bestFit":{var S;const T=(S=A.slice().sort((M,F)=>M.overflows.filter(I=>I>0).reduce((I,N)=>I+N,0)-F.overflows.filter(I=>I>0).reduce((I,N)=>I+N,0))[0])==null?void 0:S.placement;T&&(D=T);break}case"initialPlacement":D=u;break}return{data:{skip:!0},reset:{placement:D}}}return{}})}}};function OD(e){let{placement:t,rects:r,value:n}=e;const s=on(t),i=["left","top"].includes(s)?-1:1,a=typeof n=="function"?n(fr(kt({},r),{placement:t})):n,{mainAxis:o,crossAxis:u}=typeof a=="number"?{mainAxis:a,crossAxis:0}:kt({mainAxis:0,crossAxis:0},a);return ga(s)==="x"?{x:u,y:o*i}:{x:o*i,y:u}}const ID=function(e){return e===void 0&&(e=0),{name:"offset",options:e,fn(t){const{x:r,y:n,placement:s,rects:i}=t,a=OD({placement:s,rects:i,value:e});return{x:r+a.x,y:n+a.y,data:a}}}};function RD(e){return e==="x"?"y":"x"}const ND=function(e){return e===void 0&&(e={}),{name:"shift",options:e,fn(r){return Se(this,null,function*(){const{x:n,y:s,placement:i}=r,y=e,{mainAxis:a=!0,crossAxis:o=!1,limiter:u={fn:x=>{let{x:C,y:A}=x;return{x:C,y:A}}}}=y,l=Ss(y,["mainAxis","crossAxis","limiter"]),h={x:n,y:s},d=yield cu(r,l),c=ga(on(i)),f=RD(c);let p=h[c],g=h[f];if(a){const x=c==="y"?"top":"left",C=c==="y"?"bottom":"right",A=p+d[x],P=p-d[C];p=Ol(A,p,P)}if(o){const x=f==="y"?"top":"left",C=f==="y"?"bottom":"right",A=g+d[x],P=g-d[C];g=Ol(A,g,P)}const m=u.fn(fr(kt({},r),{[c]:p,[f]:g}));return fr(kt({},m),{data:{x:m.x-n,y:m.y-s}})})}}},MD=function(e){return e===void 0&&(e={}),{name:"size",options:e,fn(r){return Se(this,null,function*(){var n;const{placement:s,rects:i,middlewareData:a}=r,C=e,{apply:o}=C,u=Ss(C,["apply"]);if((n=a.size)!=null&&n.skip)return{};const l=yield cu(r,u),h=on(s),d=Us(s)==="end";let c,f;h==="top"||h==="bottom"?(c=h,f=d?"left":"right"):(f=h,c=d?"top":"bottom");const p=Zn(l.left,0),g=Zn(l.right,0),m=Zn(l.top,0),y=Zn(l.bottom,0),x={height:i.floating.height-(["left","right"].includes(s)?2*(m!==0||y!==0?m+y:Zn(l.top,l.bottom)):l[c]),width:i.floating.width-(["top","bottom"].includes(s)?2*(p!==0||g!==0?p+g:Zn(l.left,l.right)):l[f])};return o==null||o(kt(kt({},x),i)),{data:{skip:!0},reset:{rects:!0}}})}}};function Zc(e){return(e==null?void 0:e.toString())==="[object Window]"}function Hn(e){if(e==null)return window;if(!Zc(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function hu(e){return Hn(e).getComputedStyle(e)}function Qr(e){return Zc(e)?"":e?(e.nodeName||"").toLowerCase():""}function en(e){return e instanceof Hn(e).HTMLElement}function go(e){return e instanceof Hn(e).Element}function BD(e){return e instanceof Hn(e).Node}function nm(e){const t=Hn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function fu(e){const{overflow:t,overflowX:r,overflowY:n}=hu(e);return/auto|scroll|overlay|hidden/.test(t+n+r)}function $D(e){return["table","td","th"].includes(Qr(e))}function sm(e){const t=navigator.userAgent.toLowerCase().includes("firefox"),r=hu(e);return r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].includes(r.willChange)||t&&r.willChange==="filter"||t&&(r.filter?r.filter!=="none":!1)}const md=Math.min,Ii=Math.max,mo=Math.round;function ei(e,t){t===void 0&&(t=!1);const r=e.getBoundingClientRect();let n=1,s=1;return t&&en(e)&&(n=e.offsetWidth>0&&mo(r.width)/e.offsetWidth||1,s=e.offsetHeight>0&&mo(r.height)/e.offsetHeight||1),{width:r.width/n,height:r.height/s,top:r.top/s,right:r.right/n,bottom:r.bottom/s,left:r.left/n,x:r.left/n,y:r.top/s}}function jn(e){return((BD(e)?e.ownerDocument:e.document)||window.document).documentElement}function du(e){return Zc(e)?{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}:{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function im(e){return ei(jn(e)).left+du(e).scrollLeft}function HD(e){const t=ei(e);return mo(t.width)!==e.offsetWidth||mo(t.height)!==e.offsetHeight}function jD(e,t,r){const n=en(t),s=jn(t),i=ei(e,n&&HD(t));let a={scrollLeft:0,scrollTop:0};const o={x:0,y:0};if(n||!n&&r!=="fixed")if((Qr(t)!=="body"||fu(s))&&(a=du(t)),en(t)){const u=ei(t,!0);o.x=u.x+t.clientLeft,o.y=u.y+t.clientTop}else s&&(o.x=im(s));return{x:i.left+a.scrollLeft-o.x,y:i.top+a.scrollTop-o.y,width:i.width,height:i.height}}function pu(e){return Qr(e)==="html"?e:e.assignedSlot||e.parentNode||(nm(e)?e.host:null)||jn(e)}function vd(e){return!en(e)||getComputedStyle(e).position==="fixed"?null:e.offsetParent}function LD(e){let t=pu(e);for(;en(t)&&!["html","body"].includes(Qr(t));){if(sm(t))return t;t=t.parentNode}return null}function Rl(e){const t=Hn(e);let r=vd(e);for(;r&&$D(r)&&getComputedStyle(r).position==="static";)r=vd(r);return r&&(Qr(r)==="html"||Qr(r)==="body"&&getComputedStyle(r).position==="static"&&!sm(r))?t:r||LD(e)||t}function yd(e){return{width:e.offsetWidth,height:e.offsetHeight}}function VD(e){let{rect:t,offsetParent:r,strategy:n}=e;const s=en(r),i=jn(r);if(r===i)return t;let a={scrollLeft:0,scrollTop:0};const o={x:0,y:0};if((s||!s&&n!=="fixed")&&((Qr(r)!=="body"||fu(i))&&(a=du(r)),en(r))){const u=ei(r,!0);o.x=u.x+r.clientLeft,o.y=u.y+r.clientTop}return fr(kt({},t),{x:t.x-a.scrollLeft+o.x,y:t.y-a.scrollTop+o.y})}function UD(e){const t=Hn(e),r=jn(e),n=t.visualViewport;let s=r.clientWidth,i=r.clientHeight,a=0,o=0;return n&&(s=n.width,i=n.height,Math.abs(t.innerWidth/n.scale-n.width)<.01&&(a=n.offsetLeft,o=n.offsetTop)),{width:s,height:i,x:a,y:o}}function qD(e){var t;const r=jn(e),n=du(e),s=(t=e.ownerDocument)==null?void 0:t.body,i=Ii(r.scrollWidth,r.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),a=Ii(r.scrollHeight,r.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0);let o=-n.scrollLeft+im(e);const u=-n.scrollTop;return hu(s||r).direction==="rtl"&&(o+=Ii(r.clientWidth,s?s.clientWidth:0)-i),{width:i,height:a,x:o,y:u}}function am(e){return["html","body","#document"].includes(Qr(e))?e.ownerDocument.body:en(e)&&fu(e)?e:am(pu(e))}function vo(e,t){var r;t===void 0&&(t=[]);const n=am(e),s=n===((r=e.ownerDocument)==null?void 0:r.body),i=Hn(n),a=s?[i].concat(i.visualViewport||[],fu(n)?n:[]):n,o=t.concat(a);return s?o:o.concat(vo(pu(a)))}function KD(e,t){const r=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(r&&nm(r)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}function YD(e){const t=ei(e),r=t.top+e.clientTop,n=t.left+e.clientLeft;return{top:r,left:n,x:n,y:r,right:n+e.clientWidth,bottom:r+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}function bd(e,t){return t==="viewport"?Fl(UD(e)):go(t)?YD(t):Fl(qD(jn(e)))}function zD(e){const t=vo(pu(e)),r=["absolute","fixed"].includes(hu(e).position)&&en(e)?Rl(e):e;return go(r)?t.filter(n=>go(n)&&KD(n,r)&&Qr(n)!=="body"):[]}function WD(e){let{element:t,boundary:r,rootBoundary:n}=e;const s=[...r==="clippingParents"?zD(t):[].concat(r),n],i=s[0],a=s.reduce((o,u)=>{const l=bd(t,u);return o.top=Ii(l.top,o.top),o.right=md(l.right,o.right),o.bottom=md(l.bottom,o.bottom),o.left=Ii(l.left,o.left),o},bd(t,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}const GD={getElementRects:e=>{let{reference:t,floating:r,strategy:n}=e;return{reference:jD(t,Rl(r),n),floating:fr(kt({},yd(r)),{x:0,y:0})}},convertOffsetParentRelativeRectToViewportRelativeRect:e=>VD(e),getOffsetParent:e=>{let{element:t}=e;return Rl(t)},isElement:e=>go(e),getDocumentElement:e=>{let{element:t}=e;return jn(t)},getClippingClientRect:e=>WD(e),getDimensions:e=>{let{element:t}=e;return yd(t)},getClientRects:e=>{let{element:t}=e;return t.getClientRects()}},JD=(e,t,r)=>wD(e,t,kt({platform:GD},r));var XD=Object.defineProperty,ZD=Object.defineProperties,QD=Object.getOwnPropertyDescriptors,wd=Object.getOwnPropertySymbols,eT=Object.prototype.hasOwnProperty,tT=Object.prototype.propertyIsEnumerable,xd=(e,t,r)=>t in e?XD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,wn=(e,t)=>{for(var r in t||(t={}))eT.call(t,r)&&xd(e,r,t[r]);if(wd)for(var r of wd(t))tT.call(t,r)&&xd(e,r,t[r]);return e},gu=(e,t)=>ZD(e,QD(t));const cs={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:5e3,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:e=>[...e,"click"],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:"..."},dropdown:{placement:"bottom",triggers:["click"],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:"dropdown",triggers:["hover","focus"],popperTriggers:["hover","focus"],delay:{show:0,hide:400}}}};function yo(e,t){let r=cs.themes[e]||{},n;do n=r[t],typeof n>"u"?r.$extend?r=cs.themes[r.$extend]||{}:(r=null,n=cs[t]):r=null;while(r);return n}function rT(e){const t=[e];let r=cs.themes[e]||{};do r.$extend&&!r.$resetCss?(t.push(r.$extend),r=cs.themes[r.$extend]||{}):r=null;while(r);return t.map(n=>`v-popper--theme-${n}`)}function _d(e){const t=[e];let r=cs.themes[e]||{};do r.$extend?(t.push(r.$extend),r=cs.themes[r.$extend]||{}):r=null;while(r);return t}let ti=!1;if(typeof window<"u"){ti=!1;try{const e=Object.defineProperty({},"passive",{get(){ti=!0}});window.addEventListener("test",null,e)}catch(e){}}let om=!1;typeof window<"u"&&typeof navigator<"u"&&(om=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const nT=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),Sd={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart"},Ed={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend"};function Cd(e,t){const r=e.indexOf(t);r!==-1&&e.splice(r,1)}function qu(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const gr=[];let Xn=null;const kd={};function Ad(e){let t=kd[e];return t||(t=kd[e]=[]),t}let Nl=function(){};typeof window<"u"&&(Nl=window.Element);function Me(e){return function(t){return yo(t.theme,e)}}const Ku="__floating-vue__popper";var um=()=>Er({name:"VPopper",provide(){return{[Ku]:{parentPopper:this}}},inject:{[Ku]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:Me("disabled")},positioningDisabled:{type:Boolean,default:Me("positioningDisabled")},placement:{type:String,default:Me("placement"),validator:r=>nT.includes(r)},delay:{type:[String,Number,Object],default:Me("delay")},distance:{type:[Number,String],default:Me("distance")},skidding:{type:[Number,String],default:Me("skidding")},triggers:{type:Array,default:Me("triggers")},showTriggers:{type:[Array,Function],default:Me("showTriggers")},hideTriggers:{type:[Array,Function],default:Me("hideTriggers")},popperTriggers:{type:Array,default:Me("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:Me("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:Me("popperHideTriggers")},container:{type:[String,Object,Nl,Boolean],default:Me("container")},boundary:{type:[String,Nl],default:Me("boundary")},strategy:{type:String,validator:r=>["absolute","fixed"].includes(r),default:Me("strategy")},autoHide:{type:[Boolean,Function],default:Me("autoHide")},handleResize:{type:Boolean,default:Me("handleResize")},instantMove:{type:Boolean,default:Me("instantMove")},eagerMount:{type:Boolean,default:Me("eagerMount")},popperClass:{type:[String,Array,Object],default:Me("popperClass")},computeTransformOrigin:{type:Boolean,default:Me("computeTransformOrigin")},autoMinSize:{type:Boolean,default:Me("autoMinSize")},autoSize:{type:[Boolean,String],default:Me("autoSize")},autoMaxSize:{type:Boolean,default:Me("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:Me("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:Me("preventOverflow")},overflowPadding:{type:[Number,String],default:Me("overflowPadding")},arrowPadding:{type:[Number,String],default:Me("arrowPadding")},arrowOverflow:{type:Boolean,default:Me("arrowOverflow")},flip:{type:Boolean,default:Me("flip")},shift:{type:Boolean,default:Me("shift")},shiftCrossAxis:{type:Boolean,default:Me("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:Me("noAutoFocus")}},emits:["show","hide","update:shown","apply-show","apply-hide","close-group","close-directive","auto-hide","resize","dispose"],data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},shownChildren:new Set,lastAutoHide:!0}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:gu(wn({},this.classes),{popperClass:this.popperClass}),result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var r;return(r=this[Ku])==null?void 0:r.parentPopper},hasPopperShowTriggerHover(){var r,n;return((r=this.popperTriggers)==null?void 0:r.includes("hover"))||((n=this.popperShowTriggers)==null?void 0:n.includes("hover"))}},watch:wn(wn({shown:"$_autoShowHide",disabled(r){r?this.dispose():this.init()},container(){return Se(this,null,function*(){this.isShown&&(this.$_ensureTeleport(),yield this.$_computePosition())})}},["triggers","positioningDisabled"].reduce((r,n)=>(r[n]="$_refreshListeners",r),{})),["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((r,n)=>(r[n]="$_computePosition",r),{})),created(){this.$_isDisposed=!0,this.randomId=`popper_${[Math.random(),Date.now()].map(r=>r.toString(36).substring(2,10)).join("_")}`,this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:r=null,skipDelay:n=!1,force:s=!1}={}){var i,a;(i=this.parentPopper)!=null&&i.lockedChild&&this.parentPopper.lockedChild!==this||(this.$_pendingHide=!1,(s||!this.disabled)&&(((a=this.parentPopper)==null?void 0:a.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(r,n),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:r=null,skipDelay:n=!1}={}){var s;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.$_pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:n}),this.parentPopper.lockedChild=null)},1e3));return}((s=this.parentPopper)==null?void 0:s.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_pendingHide=!1,this.$_scheduleHide(r,n),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var r,n;!this.$_isDisposed||(this.$_isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=(n=(r=this.referenceNode)==null?void 0:r.call(this))!=null?n:this.$el,this.$_targetNodes=this.targetNodes().filter(s=>s.nodeType===s.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.$_isDisposed||(this.$_isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"),this.$emit("dispose"))},onResize(){return Se(this,null,function*(){this.isShown&&(yield this.$_computePosition(),this.$emit("resize"))})},$_computePosition(){return Se(this,null,function*(){var r;if(this.$_isDisposed||this.positioningDisabled)return;const n={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&n.middleware.push(ID({mainAxis:this.distance,crossAxis:this.skidding}));const s=this.placement.startsWith("auto");if(s?n.middleware.push(DD({alignment:(r=this.placement.split("-")[1])!=null?r:""})):n.placement=this.placement,this.preventOverflow&&(this.shift&&n.middleware.push(ND({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!s&&this.flip&&n.middleware.push(FD({padding:this.overflowPadding,boundary:this.boundary}))),n.middleware.push(SD({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&n.middleware.push({name:"arrowOverflow",fn:({placement:a,rects:o,middlewareData:u})=>{let l;const{centerOffset:h}=u.arrow;return a.startsWith("top")||a.startsWith("bottom")?l=Math.abs(h)>o.reference.width/2:l=Math.abs(h)>o.reference.height/2,{data:{overflow:l}}}}),this.autoMinSize||this.autoSize){const a=this.autoSize?this.autoSize:this.autoMinSize?"min":null;n.middleware.push({name:"autoSize",fn:({rects:o,placement:u,middlewareData:l})=>{var h;if((h=l.autoSize)!=null&&h.skip)return{};let d,c;return u.startsWith("top")||u.startsWith("bottom")?d=o.reference.width:c=o.reference.height,this.$_innerNode.style[a==="min"?"minWidth":a==="max"?"maxWidth":"width"]=d!=null?`${d}px`:null,this.$_innerNode.style[a==="min"?"minHeight":a==="max"?"maxHeight":"height"]=c!=null?`${c}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,n.middleware.push(MD({boundary:this.boundary,padding:this.overflowPadding,apply:({width:a,height:o})=>{this.$_innerNode.style.maxWidth=a!=null?`${a}px`:null,this.$_innerNode.style.maxHeight=o!=null?`${o}px`:null}})));const i=yield JD(this.$_referenceNode,this.$_popperNode,n);Object.assign(this.result,{x:i.x,y:i.y,placement:i.placement,strategy:i.strategy,arrow:wn(wn({},i.middlewareData.arrow),i.middlewareData.arrowOverflow)})})},$_scheduleShow(r=null,n=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),Xn&&this.instantMove&&Xn.instantMove&&Xn!==this.parentPopper){Xn.$_applyHide(!0),this.$_applyShow(!0);return}n?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(r=null,n=!1){if(this.shownChildren.size>0){this.$_pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(Xn=this),n?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(r){const n=this.delay;return parseInt(n&&n[r]||n||0)},$_applyShow(r=!1){return Se(this,null,function*(){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=r,!this.isShown&&(this.$_ensureTeleport(),yield qu(),yield this.$_computePosition(),yield this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...vo(this.$_referenceNode),...vo(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))})},$_applyShowEffect(){return Se(this,null,function*(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const n=this.$_referenceNode.getBoundingClientRect(),s=this.$_popperNode.querySelector(".v-popper__wrapper"),i=s.parentNode.getBoundingClientRect(),a=n.x+n.width/2-(i.left+s.offsetLeft),o=n.y+n.height/2-(i.top+s.offsetTop);this.result.transformOrigin=`${a}px ${o}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const r=this.showGroup;if(r){let n;for(let s=0;s0){this.$_pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=r,Cd(gr,this),gr.length===0&&document.body.classList.remove("v-popper--some-open");for(const s of _d(this.theme)){const i=Ad(s);Cd(i,this),i.length===0&&document.body.classList.remove(`v-popper--some-open--${s}`)}Xn===this&&(Xn=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const n=yo(this.theme,"disposeTimeout");n!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},n)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,yield qu(),this.classes.hideFrom=!1,this.classes.hideTo=!0})},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.$_isDisposed)return;let r=this.container;if(typeof r=="string"?r=window.document.querySelector(r):r===!1&&(r=this.$_targetNodes[0].parentNode),!r)throw new Error("No container for popover: "+this.container);r.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const r=s=>{this.isShown&&!this.$_hideInProgress||(s.usedByTooltip=!0,!this.$_preventShow&&this.show({event:s}))};this.$_registerTriggerListeners(this.$_targetNodes,Sd,this.triggers,this.showTriggers,r),this.$_registerTriggerListeners([this.$_popperNode],Sd,this.popperTriggers,this.popperShowTriggers,r);const n=s=>{s.usedByTooltip||this.hide({event:s})};this.$_registerTriggerListeners(this.$_targetNodes,Ed,this.triggers,this.hideTriggers,n),this.$_registerTriggerListeners([this.$_popperNode],Ed,this.popperTriggers,this.popperHideTriggers,n)},$_registerEventListeners(r,n,s){this.$_events.push({targetNodes:r,eventType:n,handler:s}),r.forEach(i=>i.addEventListener(n,s,ti?{passive:!0}:void 0))},$_registerTriggerListeners(r,n,s,i,a){let o=s;i!=null&&(o=typeof i=="function"?i(o):i),o.forEach(u=>{const l=n[u];l&&this.$_registerEventListeners(r,l,a)})},$_removeEventListeners(r){const n=[];this.$_events.forEach(s=>{const{targetNodes:i,eventType:a,handler:o}=s;!r||r===a?i.forEach(u=>u.removeEventListener(a,o)):n.push(s)}),this.$_events=n},$_refreshListeners(){this.$_isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(r,n=!1){this.$_showFrameLocked||(this.hide({event:r}),r.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),n&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(r,n){for(const s of this.$_targetNodes){const i=s.getAttribute(r);i&&(s.removeAttribute(r),s.setAttribute(n,i))}},$_applyAttrsToTarget(r){for(const n of this.$_targetNodes)for(const s in r){const i=r[s];i==null?n.removeAttribute(s):n.setAttribute(s,i)}},$_updateParentShownChildren(r){let n=this.parentPopper;for(;n;)r?n.shownChildren.add(this.randomId):(n.shownChildren.delete(this.randomId),n.$_pendingHide&&n.hide()),n=n.parentPopper},$_isAimingPopper(){const r=this.$_referenceNode.getBoundingClientRect();if(Ri>=r.left&&Ri<=r.right&&Ni>=r.top&&Ni<=r.bottom){const n=this.$_popperNode.getBoundingClientRect(),s=Ri-mn,i=Ni-vn,a=n.left+n.width/2-mn+(n.top+n.height/2)-vn+n.width+n.height,o=mn+s*a,u=vn+i*a;return Ra(mn,vn,o,u,n.left,n.top,n.left,n.bottom)||Ra(mn,vn,o,u,n.left,n.top,n.right,n.top)||Ra(mn,vn,o,u,n.right,n.top,n.right,n.bottom)||Ra(mn,vn,o,u,n.left,n.bottom,n.right,n.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});typeof document<"u"&&typeof window<"u"&&(om?(document.addEventListener("touchstart",Pd,ti?{passive:!0,capture:!0}:!0),document.addEventListener("touchend",iT,ti?{passive:!0,capture:!0}:!0)):(window.addEventListener("mousedown",Pd,!0),window.addEventListener("click",sT,!0)),window.addEventListener("resize",uT));function Pd(e){for(let t=0;t=0;n--){const s=gr[n];try{const i=s.$_containsGlobalTarget=aT(s,e);s.$_pendingHide=!1,requestAnimationFrame(()=>{if(s.$_pendingHide=!1,!r[s.randomId]&&Dd(s,i,e)){if(s.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&i){let o=s.parentPopper;for(;o;)r[o.randomId]=!0,o=o.parentPopper;return}let a=s.parentPopper;for(;a&&Dd(a,a.$_containsGlobalTarget,e);)a.$_handleGlobalClose(e,t),a=a.parentPopper}})}catch(i){}}}function aT(e,t){const r=e.popperNode();return e.$_mouseDownContains||r.contains(t.target)}function Dd(e,t,r){return r.closeAllPopover||r.closePopover&&t||oT(e,r)&&!t}function oT(e,t){if(typeof e.autoHide=="function"){const r=e.autoHide(t);return e.lastAutoHide=r,r}return e.autoHide}function uT(e){for(let t=0;t{mn=Ri,vn=Ni,Ri=e.clientX,Ni=e.clientY},ti?{passive:!0}:void 0);function Ra(e,t,r,n,s,i,a,o){const u=((a-s)*(t-i)-(o-i)*(e-s))/((o-i)*(r-e)-(a-s)*(n-t)),l=((r-e)*(t-i)-(n-t)*(e-s))/((o-i)*(r-e)-(a-s)*(n-t));return u>=0&&u<=1&&l>=0&&l<=1}var Qc=(e,t)=>{const r=e.__vccOpts||e;for(const[n,s]of t)r[n]=s;return r};const lT={extends:um()};function cT(e,t,r,n,s,i){return j(),V("div",{ref:"reference",class:Ee(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[Ks(e.$slots,"default",n1(Up(e.slotData)))],2)}var hT=Qc(lT,[["render",cT]]);function fT(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var r=e.indexOf("Trident/");if(r>0){var n=e.indexOf("rv:");return parseInt(e.substring(n+3,e.indexOf(".",n)),10)}var s=e.indexOf("Edge/");return s>0?parseInt(e.substring(s+5,e.indexOf(".",s)),10):-1}let za;function Ml(){Ml.init||(Ml.init=!0,za=fT()!==-1)}var mu={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){Ml(),Do(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",za&&this.$el.appendChild(e),e.data="about:blank",za||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!za&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const dT=G1();_p("data-v-b329ee4c");const pT={class:"resize-observer",tabindex:"-1"};Sp();const gT=dT((e,t,r,n,s,i)=>(j(),nn("div",pT)));mu.render=gT;mu.__scopeId="data-v-b329ee4c";mu.__file="src/components/ResizeObserver.vue";var cm=(e="theme")=>({computed:{themeClass(){return rT(this[e])}}});const mT=Er({name:"VPopperContent",components:{ResizeObserver:mu},mixins:[cm()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(e){return e!=null&&!isNaN(e)?`${e}px`:null}}}),vT=["id","aria-hidden","tabindex","data-popper-placement"],yT={ref:"inner",class:"v-popper__inner"},bT=E("div",{class:"v-popper__arrow-outer"},null,-1),wT=E("div",{class:"v-popper__arrow-inner"},null,-1),xT=[bT,wT];function _T(e,t,r,n,s,i){const a=$t("ResizeObserver");return j(),V("div",{id:e.popperId,ref:"popover",class:Ee(["v-popper__popper",[e.themeClass,e.classes.popperClass,{"v-popper__popper--shown":e.shown,"v-popper__popper--hidden":!e.shown,"v-popper__popper--show-from":e.classes.showFrom,"v-popper__popper--show-to":e.classes.showTo,"v-popper__popper--hide-from":e.classes.hideFrom,"v-popper__popper--hide-to":e.classes.hideTo,"v-popper__popper--skip-transition":e.skipTransition,"v-popper__popper--arrow-overflow":e.result&&e.result.arrow.overflow,"v-popper__popper--no-positioning":!e.result}]]),style:Cn(e.result?{position:e.result.strategy,transform:`translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`}:void 0),"aria-hidden":e.shown?"false":"true",tabindex:e.autoHide?0:void 0,"data-popper-placement":e.result?e.result.placement:void 0,onKeyup:t[2]||(t[2]=Py(o=>e.autoHide&&e.$emit("hide"),["esc"]))},[E("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=o=>e.autoHide&&e.$emit("hide"))}),E("div",{class:"v-popper__wrapper",style:Cn(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[E("div",yT,[e.mounted?(j(),V(De,{key:0},[E("div",null,[Ks(e.$slots,"default")]),e.handleResize?(j(),nn(a,{key:0,onNotify:t[1]||(t[1]=o=>e.$emit("resize",o))})):ae("",!0)],64)):ae("",!0)],512),E("div",{ref:"arrow",class:"v-popper__arrow-container",style:Cn(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},xT,4)],4)],46,vT)}var hm=Qc(mT,[["render",_T]]),fm={methods:{show(...e){return this.$refs.popper.show(...e)},hide(...e){return this.$refs.popper.hide(...e)},dispose(...e){return this.$refs.popper.dispose(...e)},onResize(...e){return this.$refs.popper.onResize(...e)}}};const ST=Er({name:"VPopperWrapper",components:{Popper:hT,PopperContent:hm},mixins:[fm,cm("finalTheme")],props:{theme:{type:String,default:null}},computed:{finalTheme(){var e;return(e=this.theme)!=null?e:this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(e=>e!==this.$refs.popperContent.$el)}}});function ET(e,t,r,n,s,i){const a=$t("PopperContent"),o=$t("Popper");return j(),nn(o,{ref:"popper",theme:e.finalTheme,"target-nodes":e.getTargetNodes,"popper-node":()=>e.$refs.popperContent.$el,class:Ee([e.themeClass])},{default:zt(({popperId:u,isShown:l,shouldMountContent:h,skipTransition:d,autoHide:c,show:f,hide:p,handleResize:g,onResize:m,classes:y,result:x})=>[Ks(e.$slots,"default",{shown:l,show:f,hide:p}),K(a,{ref:"popperContent","popper-id":u,theme:e.finalTheme,shown:l,mounted:h,"skip-transition":d,"auto-hide":c,"handle-resize":g,classes:y,result:x,onHide:p,onResize:m},{default:zt(()=>[Ks(e.$slots,"popper",{shown:l,hide:p})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:3},8,["theme","target-nodes","popper-node","class"])}var eh=Qc(ST,[["render",ET]]);Er(gu(wn({},eh),{name:"VDropdown",vPopperTheme:"dropdown"}));Er(gu(wn({},eh),{name:"VMenu",vPopperTheme:"menu"}));Er(gu(wn({},eh),{name:"VTooltip",vPopperTheme:"tooltip"}));Er({name:"VTooltipDirective",components:{Popper:um(),PopperContent:hm},mixins:[fm],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>yo(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>yo(e.theme,"loadingContent")}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content=="function"},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},finalContent(){return Se(this,null,function*(){yield this.$nextTick(),this.$refs.popper.onResize()})}},created(){this.$_fetchId=0},methods:{fetchContent(e){if(typeof this.content=="function"&&this.$_isShown&&(e||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const t=++this.$_fetchId,r=this.content(this);r.then?r.then(n=>this.onResult(t,n)):this.onResult(t,r)}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}});const CT={name:"RecentOrder",components:{Badge:Jc},setup(){const e=Qs(),t=lr(),r=jt();return{recentOrders:e,invoiceData:t,auth:r}},mounted(){this.recentOrders.handleStatusChange()}},kT={class:"mt-10 flex flex-col md:flex-row"},AT={key:0,class:"fixed inset-0 z-50 flex items-center justify-center bg-gray-300 bg-opacity-50 text-lg"},PT={key:1,class:"fixed inset-0 z-50 flex items-center justify-center bg-gray-300 bg-opacity-50 text-lg"},DT={class:"max-w-lg flex-1 rounded-lg border border-gray-200 bg-white p-4 shadow dark:border-gray-700 dark:bg-gray-800 sm:p-8"},TT=E("div",{class:"mb-4 flex items-center justify-between"},[E("h5",{class:"text-xl font-bold leading-none text-gray-900 dark:text-white"}," Recent Orders ")],-1),FT=E("option",{value:"Draft"},"Draft",-1),OT=E("option",{value:"Unbilled"},"Unbilled",-1),IT={key:0,value:"Paid"},RT={key:1,value:"Consolidated"},NT={key:2,value:"Return"},MT={class:"flow-root"},BT={role:"list",class:"divide-y divide-gray-200 dark:divide-gray-700"},$T=["onClick"],HT={class:"flex items-center space-x-4"},jT={class:"min-w-0 flex-1"},LT={class:"truncate text-base font-semibold text-gray-900 dark:text-white"},VT={class:"truncate text-sm text-gray-900 dark:text-gray-400"},UT={class:"flex items-center text-right"},qT={class:"text-base font-semibold text-gray-900 dark:text-white"},KT={class:"items-center space-x-4 text-right"},YT={class:"min-w-0 flex-1"},zT={class:"truncate text-base font-semibold text-gray-900 dark:text-white"},WT={class:"truncate text-sm text-gray-900 dark:text-gray-400"},GT={key:0,class:"mt-4 flex justify-center"},JT=["disabled"],XT=["onClick"],ZT={key:1},QT=["disabled"],eF={key:2,class:"mt-5 max-w-lg flex-1 rounded-lg border border-gray-200 bg-white p-4 shadow dark:border-gray-700 dark:bg-gray-800 sm:p-8 md:ml-10 md:mt-0"},tF={class:"flex items-center space-x-4"},rF={class:"min-w-0 flex-1"},nF={class:"truncate text-xl font-semibold text-gray-900 dark:text-white"},sF={class:"mt-9"},iF={key:0,class:"truncate text-xs text-gray-500 dark:text-gray-400"},aF={class:"items-center space-x-4 text-right"},oF={class:"min-w-0 flex-1"},uF={class:"mr-2 truncate text-xl font-semibold text-gray-900 dark:text-white"},lF={class:"mr-2 mt-2 truncate text-sm text-gray-500 dark:text-gray-400"},cF={class:"ml-5 mt-2"},hF=E("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",fill:"currentColor",class:"bi bi-dot",viewBox:"0 0 16 16"},[E("path",{d:"M8 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3z"})],-1),fF={class:"text-xs"},dF=E("div",{class:"mb-2 mt-4"},[E("p",{class:"truncate text-lg font-semibold text-gray-900 dark:text-white"}," Items ")],-1),pF={class:"w-full rounded bg-gray-50 p-2"},gF={class:"ml-2 mt-2"},mF={class:"flex items-center space-x-4"},vF={class:"min-w-2 flex-1"},yF={class:"truncate text-base text-gray-800 dark:text-white"},bF={class:"flex items-center space-x-4 text-right"},wF={class:"text-base text-gray-800 dark:text-white"},xF={class:"items-center space-x-4 text-right"},_F={class:"mr-5 truncate text-base text-gray-800 dark:text-white"},SF=E("div",{class:"mb-2 mt-5"},[E("p",{class:"truncate text-lg font-semibold text-gray-900 dark:text-white"}," Totals ")],-1),EF={class:"w-full rounded bg-gray-50 p-2"},CF={class:"ml-2 mt-2 flex items-center space-x-4"},kF=E("div",{class:"min-w-2 flex-1"},[E("p",{class:"truncate text-base text-gray-800 dark:text-white"}," Net Total ")],-1),AF={class:"items-center space-x-4 text-right"},PF={class:"mr-5 truncate text-base text-gray-800 dark:text-white"},DF={class:"ml-2"},TF={class:"mt-2 flex items-center space-x-4"},FF={class:"min-w-2 flex-1"},OF={class:"truncate text-base text-gray-800 dark:text-white"},IF={class:"items-center space-x-4 text-right"},RF={class:"mr-5 truncate text-base text-gray-800 dark:text-white"},NF={class:"ml-2 mt-2 flex items-center space-x-4"},MF=E("div",{class:"min-w-2 flex-1"},[E("p",{class:"truncate text-base font-semibold text-gray-800 dark:text-white"}," Grand Total ")],-1),BF={class:"items-center space-x-4 text-right"},$F={class:"mr-5 truncate text-base font-semibold text-gray-800 dark:text-white"},HF={key:0,class:"mt-2 rounded px-4 py-2 text-center"},jF={key:1,class:"mt-2 rounded px-4 py-2 text-center"},LF={key:2,class:"mt-2 rounded px-4 py-2 text-center"},VF={key:3,class:"fixed inset-0 z-10 mt-20 overflow-y-auto bg-gray-100"},UF={class:"mt-20 flex items-center justify-center"},qF={class:"w-full rounded-lg bg-white p-6 shadow-lg md:max-w-md"},KF={class:"flex justify-end"},YF=E("span",{class:"sr-only"},"Close",-1),zF=E("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"},null,-1),WF=[zF],GF=E("h2",{class:"mt-1 block text-left text-xl font-medium text-gray-900 dark:text-white"}," Are you sure to cancel ",-1),JF={class:"relative"},XF=E("label",{for:"cancelReason",class:"mt-6 block text-left text-gray-900 dark:text-white"}," Reason ",-1),ZF={class:"flex justify-end"},QF={key:4,class:"fixed inset-0 z-10 mt-14 overflow-y-auto bg-gray-100"},eO={class:"mt-10 flex items-center justify-center"},tO={class:"h-82 w-full rounded-lg bg-white p-6 shadow-lg md:w-3/5"},rO={class:"flex justify-end"},nO=E("span",{class:"sr-only"},"Close",-1),sO=E("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"},null,-1),iO=[sO],aO=E("h2",{class:"mt-1 block text-left text-xl font-medium text-gray-900 dark:text-white"}," Select Mode Of Payment ",-1),oO={class:"mt-8 flex items-center justify-center"},uO={class:"w-full max-w-full overflow-x-auto"},lO={class:"flex flex-nowrap"},cO=["for"],hO=["id","onUpdate:modelValue","onClick","onInput"],fO={class:"flex justify-end"};function dO(e,t,r,n,s,i){const a=$t("Badge");return j(),V("div",kT,[this.invoiceData.isPrinting?(j(),V("div",AT," Printing Invoice ")):ae("",!0),this.recentOrders.isLoading?(j(),V("div",PT," Payment Being Processing ")):ae("",!0),E("div",DT,[TT,E("div",{class:"w-full",onClick:t[3]||(t[3]=o=>this.recentOrders.showOrder=!1)},[_e(E("input",{type:"search",id:"orderSeach",class:"block w-full rounded-lg border-gray-300 bg-gray-50 p-2.5 pl-10 text-sm text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-blue-500 dark:focus:ring-blue-500",placeholder:"Search by Invoice Id or Customer Name","onUpdate:modelValue":t[0]||(t[0]=o=>this.recentOrders.searchOrder=o)},null,512),[[ke,this.recentOrders.searchOrder]]),_e(E("select",{id:"status",class:"mt-4 block w-full rounded-lg border border-gray-300 bg-gray-50 p-2.5 text-sm text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-blue-500 dark:focus:ring-blue-500","onUpdate:modelValue":t[1]||(t[1]=o=>this.recentOrders.selectedStatus=o),onChange:t[2]||(t[2]=(...o)=>this.recentOrders.handleStatusChange&&this.recentOrders.handleStatusChange(...o))},[FT,OT,this.auth.viewAllStatus===1?(j(),V("option",IT," Paid ")):ae("",!0),this.auth.viewAllStatus===1?(j(),V("option",RT," Consolidated ")):ae("",!0),this.auth.viewAllStatus===1?(j(),V("option",NT," Return ")):ae("",!0)],544),[[Gp,this.recentOrders.selectedStatus]])]),E("div",MT,[E("ul",BT,[(j(!0),V(De,null,ht(this.recentOrders.paginatedItems,(o,u)=>(j(),V("li",{class:Ee(["mt-2 py-3 sm:py-4",{"bg-gray-200":this.recentOrders.setBackground===u}]),key:o.name,onClick:l=>{this.recentOrders.viewRecentOrder(o),this.recentOrders.setBackground=u}},[E("div",HT,[E("div",jT,[E("p",LT,be(o.name),1),E("p",VT,be(o.customer),1)]),E("div",UT,[E("p",qT,be(o.restaurant_table),1)]),E("div",KT,[E("div",YT,[E("p",zT," ₹ "+be(o.grand_total),1),E("p",WT,be(this.recentOrders.getFormattedDateTime(o.posting_date,o.posting_time)),1)])])])],10,$T))),128))])]),this.recentOrders.paginatedItems.length>0?(j(),V("div",GT,[E("button",{class:Ee([{hidden:this.recentOrders.currentPage===1},"mr-2 rounded-md border px-2 py-1"]),disabled:this.recentOrders.currentPage===1,onClick:t[4]||(t[4]=o=>this.recentOrders.currentPage-=1)}," Previous ",10,JT),(j(!0),V(De,null,ht(this.recentOrders.pageNumbers,o=>(j(),V("div",null,[o===this.recentOrders.currentPage||Math.abs(o-this.recentOrders.currentPage)<=2?(j(),V("button",{key:o,onClick:u=>this.recentOrders.currentPage=o,class:Ee([{"bg-gray-200":o===this.recentOrders.currentPage},"mr-2 rounded-md border px-2 py-1"])},be(o),11,XT)):this.recentOrders.pageNumbers.indexOf(o)===0||this.recentOrders.pageNumbers.indexOf(o)===this.recentOrders.pageNumbers.length-1?(j(),V("span",ZT," ... ")):ae("",!0)]))),256)),E("button",{disabled:this.recentOrders.currentPage===this.recentOrders.totalPages,onClick:t[5]||(t[5]=o=>this.recentOrders.currentPage+=1),class:Ee([{hidden:this.recentOrders.currentPage===this.recentOrders.totalPages},"rounded-md border px-2 py-1"])}," Next ",10,QT)])):ae("",!0)]),this.recentOrders.showOrder?(j(),V("div",eF,[E("div",tF,[E("div",rF,[E("p",nF,be(this.recentOrders.selectedOrder.customer),1),E("div",sF,[this.recentOrders.selectedOrder.waiter?(j(),V("p",iF," Waiter : "+be(this.recentOrders.selectedOrder.waiter),1)):ae("",!0)])]),E("div",aF,[E("div",oF,[E("p",uF," ₹ "+be(this.recentOrders.selectedOrder.status==="Draft"?"0.00":this.recentOrders.selectedOrder.grand_total),1),E("p",lF,be(this.recentOrders.selectedOrder.name),1),E("div",cF,[K(a,{type:this.recentOrders.getBadgeType(this.recentOrders.selectedOrder)},{default:zt(()=>[hF,E("span",fF,be(this.recentOrders.selectedOrder.status),1)]),_:1},8,["type"])])])])]),dF,E("div",pF,[(j(!0),V(De,null,ht(this.recentOrders.recentOrderListItems,o=>(j(),V("div",gF,[E("div",mF,[E("div",vF,[E("p",yF,be(o.item_name),1)]),E("div",bF,[E("p",wF,be(o.qty),1)]),E("div",xF,[E("p",_F," ₹ "+be(o.amount),1)])])]))),256))]),SF,E("div",EF,[E("div",CF,[kF,E("div",AF,[E("p",PF," ₹ "+be(this.recentOrders.netTotal),1)])]),(j(!0),V(De,null,ht(this.recentOrders.texDetails,o=>(j(),V("div",DF,[E("div",TF,[E("div",FF,[E("p",OF,be(o.description),1)]),E("div",IF,[E("p",RF," ₹ "+be(o.rate),1)])])]))),256)),E("div",NF,[MF,E("div",BF,[E("p",$F," ₹ "+be(this.recentOrders.grandTotal),1)])])]),this.recentOrders.selectedStatus!=="Draft"&&n.recentOrders.selectedStatus!=="Unbilled"?(j(),V("div",HF,[E("button",{type:"button",class:"mb-2 mr-2 rounded-lg border border-gray-400 bg-white px-5 py-2.5 text-sm font-medium text-gray-800 focus:outline-none dark:border-gray-600 dark:bg-gray-800 dark:text-gray-400",onClick:t[6]||(t[6]=o=>this.invoiceData.printFunction())}," Print Receipt ")])):ae("",!0),this.recentOrders.selectedStatus==="Draft"||n.recentOrders.selectedStatus==="Unbilled"?(j(),V("div",jF,[E("button",{type:"button",class:"mb-2 mr-2 w-36 rounded-lg border border-gray-300 bg-white px-5 py-2.5 text-sm font-medium text-gray-700 focus:outline-none dark:border-gray-600 dark:bg-gray-800 dark:text-gray-400",onClick:t[7]||(t[7]=o=>this.recentOrders.editOrder())}," Edit "),E("button",{type:"button",class:"mb-2 mr-2 w-36 rounded-lg border border-gray-300 bg-white px-5 py-2.5 text-sm font-medium text-gray-700 focus:outline-none dark:border-gray-600 dark:bg-gray-800 dark:text-gray-400",onClick:t[8]||(t[8]=o=>this.invoiceData.printFunction())}," Print Receipt ")])):ae("",!0),this.recentOrders.selectedStatus==="Draft"||this.recentOrders.selectedStatus==="Unbilled"?(j(),V("div",LF,[E("button",{type:"button",class:"mb-2 mr-2 w-36 rounded-lg border border-gray-300 bg-white px-5 py-2.5 text-sm font-medium text-gray-700 focus:outline-none dark:border-gray-600 dark:bg-gray-800 dark:text-gray-400",onClick:t[9]||(t[9]=o=>this.recentOrders.billing())}," Make Payment "),E("button",{type:"button",class:Ee(["mb-2 mr-2 w-36 rounded-lg border bg-white px-5 py-2.5 text-sm font-medium focus:outline-none dark:border-gray-600 dark:bg-gray-800 dark:text-gray-400",{"border-gray-200 text-gray-300":this.recentOrders.invoicePrinted===1||this.recentOrders.selectedStatus==="Unbilled","border-gray-300 text-gray-700":!(this.recentOrders.invoicePrinted===1||this.recentOrders.selectedStatus==="Unbilled")}]),onClick:t[10]||(t[10]=o=>this.recentOrders.invoicePrinted===0&&this.recentOrders.selectedStatus==="Draft"?this.recentOrders.showCancelInvoiceModal():"")}," Cancel Order ",2)])):ae("",!0),this.recentOrders.cancelInvoiceFlag===!0?(j(),V("div",VF,[E("div",UF,[E("div",qF,[E("div",KF,[YF,(j(),V("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",onClick:t[11]||(t[11]=o=>this.recentOrders.cancelInvoiceFlag=!1)},WF))]),GF,E("div",JF,[XF,_e(E("input",{type:"text",id:"cancelReason",class:"mt-4 w-full appearance-none rounded border p-2 leading-tight text-gray-900 shadow focus:outline-none","onUpdate:modelValue":t[12]||(t[12]=o=>this.recentOrders.cancelReason=o)},null,512),[[ke,this.recentOrders.cancelReason]])]),E("div",ZF,[E("button",{onClick:t[13]||(t[13]=o=>this.recentOrders.cancelInvoiceFlag=!1),class:"mr-3 mt-6 rounded border border-gray-300 bg-gray-50 px-3 py-2"}," No "),E("button",{onClick:t[14]||(t[14]=o=>{this.recentOrders.cancelInvoice(),this.recentOrders.cancelInvoiceFlag=!1}),class:"mt-6 rounded bg-blue-500 px-3 py-2 text-white hover:bg-blue-600"}," Yes ")])])])])):ae("",!0),this.recentOrders.showPayment?(j(),V("div",QF,[E("div",eO,[E("div",tO,[E("div",rO,[nO,(j(),V("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",onClick:t[15]||(t[15]=o=>this.recentOrders.showPayment=!1)},iO))]),aO,E("div",oO,[E("div",uO,[E("div",lO,[(j(!0),V(De,null,ht(n.recentOrders.modeOfPaymentList,(o,u)=>(j(),V("div",{key:u,class:"mr-4 w-64 flex-shrink-0 rounded-lg border border-gray-200 bg-white p-4 shadow dark:border-gray-700 dark:bg-gray-800"},[E("label",{for:"modeofPayments-"+u,class:"block text-left text-lg dark:text-white"},be(o.mode_of_payment),9,cO),_e(E("input",{id:"modeofPayments-"+u,type:"number",name:"modeofPayments",class:"block w-full rounded-lg border border-gray-300 bg-gray-50 p-2.5 text-sm text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:border-gray-500 dark:bg-gray-600 dark:text-white dark:placeholder-gray-400",required:"","onUpdate:modelValue":l=>o.value=l,onClick:l=>n.recentOrders.calculatePaidAmount(o),onInput:l=>n.recentOrders.changePaidAmount(o.mode_of_payment,l.target.value)},null,40,hO),[[ke,o.value,void 0,{number:!0}]])]))),128))])])]),E("div",fO,[E("button",{onClick:t[16]||(t[16]=o=>{this.recentOrders.showPayment=!1,this.recentOrders.makePayment()}),class:"mt-10 rounded bg-blue-500 px-3 py-2 text-white hover:bg-blue-600"}," Submit ")])])])])):ae("",!0)])):ae("",!0)])}const pO=cr(CT,[["render",dO]]),dm=Cr("posOpen",{state:()=>({invoiceData:lr(),call:Dt.call(),startDate:new Date,formattedDateTime:null,postingDate:null,alert:Bn(),posOpencreation:!0,currentDate:new Date,posOpenSaved:!1,posOpenEntryName:null,db:Dt.db(),showSumbitPosOpen:!1,isPosOpen:null}),getters:{currentDateTime:{get(){}}},actions:{savePosOpening(){if(this.startDate){const e=new Date(this.startDate),t=e.getFullYear(),r=String(e.getMonth()+1).padStart(2,"0"),n=String(e.getDate()).padStart(2,"0"),s=String(e.getHours()).padStart(2,"0"),i=String(e.getMinutes()).padStart(2,"0"),a=String(e.getSeconds()).padStart(2,"0");this.formattedDateTime=`${t}-${r}-${n} ${s}:${i}:${a}`}else this.formattedDateTime=null;this.db.createDoc("POS Opening Entry",{period_start_date:this.formattedDateTime,posting_date:this.postingDate,company:this.invoiceData.company,pos_profile:this.invoiceData.posProfile,balance_details:this.invoiceData.modeOfPaymentList,branch:this.invoiceData.branch,user:this.invoiceData.cashier,docstatus:0}).then(e=>{this.posOpenEntryName=e.name,this.posOpencreation=!1,this.posOpenSaved=!0,this.isPosOpen="Draft"}).catch(e=>{if(e._server_messages){const t=JSON.parse(e._server_messages),r=JSON.parse(t[0]);this.alert.createAlert("Message",r.message,"OK")}})},getBadgeType(){if(this.isPosOpen=="Draft")return"red";if(this.isPosOpen=="Open")return"yellow"},getBadgeText(){if(this.isPosOpen=="Draft")return"Draft";if(this.isPosOpen=="Open")return"Open"},showSumbitPosOpenModal(){this.showSumbitPosOpen=!0},sumbitPosOpening(){this.showSumbitPosOpen=!1,this.db.updateDoc("POS Opening Entry",this.posOpenEntryName,{docstatus:1}).then(e=>{this.isPosOpen="Open"}).catch(e=>console.error(e))},setFormattedDate(){const e=this.currentDate.getFullYear(),t=String(this.currentDate.getMonth()+1).padStart(2,"0"),r=String(this.currentDate.getDate()).padStart(2,"0");this.postingDate=`${e}-${t}-${r}`},deleteRow(e){this.invoiceData.modeOfPaymentList.splice(e,1)},routeToPosOpen(){ft.push("/posOpen")}}});function pm(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function vu(e){return pm(e)?new Date(e.getTime()):e==null?new Date(NaN):new Date(e)}function gO(e){return pm(e)&&!isNaN(e.getTime())}function gm(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(!(t>=0&&t<=6))throw new RangeError("weekStartsOn must be between 0 and 6");var r=vu(e),n=r.getDay(),s=(n+7-t)%7;return r.setDate(r.getDate()-s),r.setHours(0,0,0,0),r}function mm(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.firstDayOfWeek,n=r===void 0?0:r,s=t.firstWeekContainsDate,i=s===void 0?1:s;if(!(i>=1&&i<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7");for(var a=vu(e),o=a.getFullYear(),u=new Date(0),l=o+1;l>=o-1&&(u.setFullYear(l,0,i),u.setHours(0,0,0,0),u=gm(u,n),!(a.getTime()>=u.getTime()));l--);return u}function th(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.firstDayOfWeek,n=r===void 0?0:r,s=t.firstWeekContainsDate,i=s===void 0?1:s,a=vu(e),o=gm(a,n),u=mm(a,{firstDayOfWeek:n,firstWeekContainsDate:i}),l=o.getTime()-u.getTime();return Math.round(l/(7*24*3600*1e3))+1}var rh={months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],weekdaysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],firstDayOfWeek:0,firstWeekContainsDate:1},mO=/\[([^\]]+)]|YYYY|YY?|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|m{1,2}|s{1,2}|Z{1,2}|S{1,3}|w{1,2}|x|X|a|A/g;function Vt(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2,r="".concat(Math.abs(e)),n=e<0?"-":"";r.length1&&arguments[1]!==void 0?arguments[1]:"",r=e>0?"-":"+",n=Math.abs(e),s=Math.floor(n/60),i=n%60;return r+Vt(s,2)+t+Vt(i,2)}var Od=function(t,r,n){var s=t<12?"AM":"PM";return n?s.toLocaleLowerCase():s},Mi={Y:function(t){var r=t.getFullYear();return r<=9999?"".concat(r):"+".concat(r)},YY:function(t){return Vt(t.getFullYear(),4).substr(2)},YYYY:function(t){return Vt(t.getFullYear(),4)},M:function(t){return t.getMonth()+1},MM:function(t){return Vt(t.getMonth()+1,2)},MMM:function(t,r){return r.monthsShort[t.getMonth()]},MMMM:function(t,r){return r.months[t.getMonth()]},D:function(t){return t.getDate()},DD:function(t){return Vt(t.getDate(),2)},H:function(t){return t.getHours()},HH:function(t){return Vt(t.getHours(),2)},h:function(t){var r=t.getHours();return r===0?12:r>12?r%12:r},hh:function(){var t=Mi.h.apply(Mi,arguments);return Vt(t,2)},m:function(t){return t.getMinutes()},mm:function(t){return Vt(t.getMinutes(),2)},s:function(t){return t.getSeconds()},ss:function(t){return Vt(t.getSeconds(),2)},S:function(t){return Math.floor(t.getMilliseconds()/100)},SS:function(t){return Vt(Math.floor(t.getMilliseconds()/10),2)},SSS:function(t){return Vt(t.getMilliseconds(),3)},d:function(t){return t.getDay()},dd:function(t,r){return r.weekdaysMin[t.getDay()]},ddd:function(t,r){return r.weekdaysShort[t.getDay()]},dddd:function(t,r){return r.weekdays[t.getDay()]},A:function(t,r){var n=r.meridiem||Od;return n(t.getHours(),t.getMinutes(),!1)},a:function(t,r){var n=r.meridiem||Od;return n(t.getHours(),t.getMinutes(),!0)},Z:function(t){return Fd(Td(t),":")},ZZ:function(t){return Fd(Td(t))},X:function(t){return Math.floor(t.getTime()/1e3)},x:function(t){return t.getTime()},w:function(t,r){return th(t,{firstDayOfWeek:r.firstDayOfWeek,firstWeekContainsDate:r.firstWeekContainsDate})},ww:function(t,r){return Vt(Mi.w(t,r),2)}};function nh(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=t?String(t):"YYYY-MM-DDTHH:mm:ss.SSSZ",s=vu(e);if(!gO(s))return"Invalid Date";var i=r.locale||rh;return n.replace(mO,function(a,o){return o||(typeof Mi[a]=="function"?"".concat(Mi[a](s,i)):a)})}function Id(e){return bO(e)||yO(e)||vO()}function vO(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function yO(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function bO(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t68?r-1:r)*100+n,Ln({},sh,n)});Je("YYYY",AO,sh);Je("M",hi,function(e){return Ln({},yu,parseInt(e,10)-1)});Je("MM",Vn,function(e){return Ln({},yu,parseInt(e,10)-1)});Je("MMM",ma("monthsShort"),va("monthsShort",yu));Je("MMMM",ma("months"),va("months",yu));Je("D",hi,bm);Je("DD",Vn,bm);Je(["H","h"],hi,wm);Je(["HH","hh"],Vn,wm);Je("m",hi,xm);Je("mm",Vn,xm);Je("s",hi,_m);Je("ss",Vn,_m);Je("S",vm,function(e){return Ln({},ih,parseInt(e,10)*100)});Je("SS",Vn,function(e){return Ln({},ih,parseInt(e,10)*10)});Je("SSS",kO,ih);function FO(e){return e.meridiemParse||/[ap]\.?m?\.?/i}function OO(e){return"".concat(e).toLowerCase().charAt(0)==="p"}Je(["A","a"],FO,function(e,t){var r=typeof t.isPM=="function"?t.isPM(e):OO(e);return{isPM:r}});function IO(e){var t=e.match(/([+-]|\d\d)/g)||["-","0","0"],r=xO(t,3),n=r[0],s=r[1],i=r[2],a=parseInt(s,10)*60+parseInt(i,10);return a===0?0:n==="+"?-a:+a}Je(["Z","ZZ"],PO,function(e){return{offset:IO(e)}});Je("x",ym,function(e){return{date:new Date(parseInt(e,10))}});Je("X",DO,function(e){return{date:new Date(parseFloat(e)*1e3)}});Je("d",vm,"weekday");Je("dd",ma("weekdaysMin"),va("weekdaysMin","weekday"));Je("ddd",ma("weekdaysShort"),va("weekdaysShort","weekday"));Je("dddd",ma("weekdays"),va("weekdays","weekday"));Je("w",hi,"week");Je("ww",Vn,"week");function RO(e,t){if(e!==void 0&&t!==void 0){if(t){if(e<12)return e+12}else if(e===12)return 0}return e}function NO(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new Date,r=[0,0,1,0,0,0,0],n=[t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()],s=!0,i=0;i<7;i++)e[i]===void 0?r[i]=s?n[i]:r[i]:(r[i]=e[i],s=!1);return r}function MO(e,t,r,n,s,i,a){var o;return e<100&&e>=0?(o=new Date(e+400,t,r,n,s,i,a),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,r,n,s,i,a),o}function BO(){for(var e,t=arguments.length,r=new Array(t),n=0;n=0?(r[0]+=400,e=new Date(Date.UTC.apply(Date,r)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(s)):e=new Date(Date.UTC.apply(Date,r)),e}function $O(e,t,r){var n=t.match(CO);if(!n)throw new Error;for(var s=n.length,i={},a=0;a2&&arguments[2]!==void 0?arguments[2]:{};try{var n=r.locale,s=n===void 0?rh:n,i=r.backupDate,a=i===void 0?new Date:i,o=$O(e,t,s),u=o.year,l=o.month,h=o.day,d=o.hour,c=o.minute,f=o.second,p=o.millisecond,g=o.isPM,m=o.date,y=o.offset,x=o.weekday,C=o.week;if(m)return m;var A=[u,l,h,d,c,f,p];if(A[3]=RO(A[3],g),C!==void 0&&l===void 0&&h===void 0){var P=mm(u===void 0?a:new Date(u,3),{firstDayOfWeek:s.firstDayOfWeek,firstWeekContainsDate:s.firstWeekContainsDate});return new Date(P.getTime()+(C-1)*7*24*3600*1e3)}var b,S=NO(A,a);return y!==void 0?(S[6]+=y*60*1e3,b=BO.apply(void 0,Id(S))):b=MO.apply(void 0,Id(S)),x!==void 0&&b.getDay()!==x?new Date(NaN):b}catch(_){return new Date(NaN)}}var jO=Object.defineProperty,LO=Object.defineProperties,VO=Object.getOwnPropertyDescriptors,bo=Object.getOwnPropertySymbols,Em=Object.prototype.hasOwnProperty,Cm=Object.prototype.propertyIsEnumerable,Nd=(e,t,r)=>t in e?jO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,wt=(e,t)=>{for(var r in t||(t={}))Em.call(t,r)&&Nd(e,r,t[r]);if(bo)for(var r of bo(t))Cm.call(t,r)&&Nd(e,r,t[r]);return e},ar=(e,t)=>LO(e,VO(t)),UO=(e,t)=>{var r={};for(var n in e)Em.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&bo)for(var n of bo(e))t.indexOf(n)<0&&Cm.call(e,n)&&(r[n]=e[n]);return r};const qO={formatLocale:rh,yearFormat:"YYYY",monthFormat:"MMM",monthBeforeYear:!0};let Si="en";const Os={};Os[Si]=qO;function km(e,t,r=!1){if(typeof e!="string")return Os[Si];let n=Si;return Os[e]&&(n=e),t&&(Os[e]=t,n=e),r||(Si=n),Os[e]||Os[Si]}function Bl(e){return km(e,void 0,!0)}function ah(e,t){if(!Array.isArray(e))return[];const r=[],n=e.length;let s=0;for(t=t||n;s{Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n])})),r}function Am(e,t){if(!En(e))return{};let r=e;return En(t)&&Object.keys(t).forEach(n=>{let s=t[n];const i=e[n];En(s)&&En(i)&&(s=Am(i,s)),r=ar(wt({},r),{[n]:s})}),r}function Yu(e){const t=parseInt(String(e),10);return t<10?`0${t}`:`${t}`}function KO(e){const t=/-(\w)/g;return e.replace(t,(r,n)=>n?n.toUpperCase():"")}const Pm="datepicker_locale",Dm="datepicker_prefixClass",Tm="datepicker_getWeek";function oh(){return Wt(Pm,fp(Bl()))}function YO(e){const t=et(()=>En(e.value)?Am(Bl(),e.value):Bl(e.value));return os(Pm,t),t}function zO(e){os(Dm,e)}function Nt(){return Wt(Dm,"mx")}function WO(e){os(Tm,e)}function GO(){return Wt(Tm,th)}function JO(e){const t=e.style.display,r=e.style.visibility;e.style.display="block",e.style.visibility="hidden";const n=window.getComputedStyle(e),s=e.offsetWidth+parseInt(n.marginLeft,10)+parseInt(n.marginRight,10),i=e.offsetHeight+parseInt(n.marginTop,10)+parseInt(n.marginBottom,10);return e.style.display=t,e.style.visibility=r,{width:s,height:i}}function XO(e,t,r,n){let s=0,i=0,a=0,o=0;const u=e.getBoundingClientRect(),l=document.documentElement.clientWidth,h=document.documentElement.clientHeight;return n&&(a=window.pageXOffset+u.left,o=window.pageYOffset+u.top),l-u.leftgetComputedStyle(i,null).getPropertyValue(a);return/(auto|scroll)/.test(r(e,"overflow")+r(e,"overflow-y")+r(e,"overflow-x"))?e:uh(e.parentElement,t)}let Na;function ZO(){if(typeof window=="undefined")return 0;if(Na!==void 0)return Na;const e=document.createElement("div");e.style.visibility="hidden",e.style.overflow="scroll",e.style.width="100px",e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e);const t=document.createElement("div");return t.style.width="100%",e.appendChild(t),Na=e.offsetWidth-t.offsetWidth,e.parentNode.removeChild(e),Na}const Bd="ontouchend"in document?"touchstart":"mousedown";function QO(e){let t=!1;return function(...n){t||(t=!0,requestAnimationFrame(()=>{t=!1,e.apply(this,n)}))}}function un(e,t){return{setup:e,name:e.name,props:t}}function ln(e,t){return new Proxy(e,{get(n,s){const i=n[s];return i!==void 0?i:t[s]}})}const Un=()=>e=>e,e9=(e,t)=>{const r={};for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)){const s=KO(n);let i=e[n];t.indexOf(s)!==-1&&i===""&&(i=!0),r[s]=i}return r};function t9(e,{slots:t}){const r=ln(e,{appendToBody:!0}),n=Nt(),s=tt(null),i=tt({left:"",top:""}),a=()=>{if(!r.visible||!s.value)return;const u=r.getRelativeElement();if(!u)return;const{width:l,height:h}=JO(s.value);i.value=XO(u,l,h,r.appendToBody)};nr(a,{flush:"post"}),nr(u=>{const l=r.getRelativeElement();if(!l)return;const h=uh(l)||window,d=QO(a);h.addEventListener("scroll",d),window.addEventListener("resize",d),u(()=>{h.removeEventListener("scroll",d),window.removeEventListener("resize",d)})},{flush:"post"});const o=u=>{if(!r.visible)return;const l=u.target,h=s.value,d=r.getRelativeElement();h&&!h.contains(l)&&d&&!d.contains(l)&&r.onClickOutside(u)};return nr(u=>{document.addEventListener(Bd,o),u(()=>{document.removeEventListener(Bd,o)})}),()=>K(Hv,{to:"body",disabled:!r.appendToBody},{default:()=>[K(ac,{name:`${n}-zoom-in-down`},{default:()=>{var u;return[r.visible&&K("div",{ref:s,class:`${n}-datepicker-main ${n}-datepicker-popup ${r.className}`,style:[wt({position:"absolute"},i.value),r.style||{}]},[(u=t.default)==null?void 0:u.call(t)])]}})]})}const r9=Un()(["style","className","visible","appendToBody","onClickOutside","getRelativeElement"]);var n9=un(t9,r9);const s9={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",width:"1em",height:"1em"},i9=E("path",{d:"M940.218 107.055H730.764v-60.51H665.6v60.51H363.055v-60.51H297.89v60.51H83.78c-18.617 0-32.581 13.963-32.581 32.581v805.237c0 18.618 13.964 32.582 32.582 32.582h861.09c18.619 0 32.583-13.964 32.583-32.582V139.636c-4.655-18.618-18.619-32.581-37.237-32.581zm-642.327 65.163v60.51h65.164v-60.51h307.2v60.51h65.163v-60.51h176.873v204.8H116.364v-204.8H297.89zM116.364 912.291V442.18H912.29v470.11H116.364z"},null,-1),a9=[i9];function Fm(e,t){return j(),V("svg",s9,a9)}const o9={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",width:"1em",height:"1em"},u9=E("path",{d:"M810.005 274.005 572.011 512l237.994 237.995-60.01 60.01L512 572.011 274.005 810.005l-60.01-60.01L451.989 512 213.995 274.005l60.01-60.01L512 451.989l237.995-237.994z"},null,-1),l9=[u9];function c9(e,t){return j(),V("svg",o9,l9)}const h9={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"1em",height:"1em"},f9=E("path",{d:"M0 0h24v24H0z",fill:"none"},null,-1),d9=E("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"},null,-1),p9=E("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},null,-1),g9=[f9,d9,p9];function m9(e,t){return j(),V("svg",h9,g9)}function ss(e,t=0,r=1,n=0,s=0,i=0,a=0){const o=new Date(e,t,r,n,s,i,a);return e<100&&e>=0&&o.setFullYear(e),o}function tn(e){return e instanceof Date&&!isNaN(e.getTime())}function is(e){return Array.isArray(e)&&e.length===2&&e.every(tn)&&e[0]<=e[1]}function v9(e){return Array.isArray(e)&&e.every(tn)}function bu(...e){if(e[0]!==void 0&&e[0]!==null){const r=new Date(e[0]);if(tn(r))return r}const t=e.slice(1);return t.length?bu(...t):new Date}function y9(e){const t=new Date(e);return t.setMonth(0,1),t.setHours(0,0,0,0),t}function $d(e){const t=new Date(e);return t.setDate(1),t.setHours(0,0,0,0),t}function Mn(e){const t=new Date(e);return t.setHours(0,0,0,0),t}function b9({firstDayOfWeek:e,year:t,month:r}){const n=[],s=ss(t,r,0),i=s.getDate(),a=i-(s.getDay()+7-e)%7;for(let h=a;h<=i;h++)n.push(ss(t,r,h-i));s.setMonth(r+1,0);const o=s.getDate();for(let h=1;h<=o;h++)n.push(ss(t,r,h));const u=i-a+1,l=6*7-u-o;for(let h=1;h<=l;h++)n.push(ss(t,r,o+h));return n}function wo(e,t){const r=new Date(e),n=typeof t=="function"?t(r.getMonth()):Number(t),s=r.getFullYear(),i=ss(s,n+1,0).getDate(),a=r.getDate();return r.setMonth(n,Math.min(a,i)),r}function Rs(e,t){const r=new Date(e),n=typeof t=="function"?t(r.getFullYear()):t;return r.setFullYear(n),r}function w9(e,t){const r=new Date(t),n=new Date(e),s=r.getFullYear()-n.getFullYear(),i=r.getMonth()-n.getMonth();return s*12+i}function xo(e,t){const r=new Date(e),n=new Date(t);return r.setHours(n.getHours(),n.getMinutes(),n.getSeconds()),r}function x9(e,{slots:t}){const r=ln(e,{editable:!0,disabled:!1,clearable:!0,range:!1,multiple:!1}),n=Nt(),s=tt(null),i=et(()=>r.separator||(r.range?" ~ ":",")),a=f=>r.range?is(f):r.multiple?v9(f):tn(f),o=f=>Array.isArray(f)?f.some(p=>r.disabledDate(p)):r.disabledDate(f),u=et(()=>s.value!==null?s.value:typeof r.renderInputText=="function"?r.renderInputText(r.value):a(r.value)?Array.isArray(r.value)?r.value.map(f=>r.formatDate(f)).join(i.value):r.formatDate(r.value):""),l=f=>{var p;f&&f.stopPropagation(),r.onChange(r.range?[null,null]:null),(p=r.onClear)==null||p.call(r)},h=()=>{var f;if(!r.editable||s.value===null)return;const p=s.value.trim();if(s.value=null,p===""){l();return}let g;if(r.range){let m=p.split(i.value);m.length!==2&&(m=p.split(i.value.trim())),g=m.map(y=>r.parseDate(y.trim()))}else r.multiple?g=p.split(i.value).map(m=>r.parseDate(m.trim())):g=r.parseDate(p);a(g)&&!o(g)?r.onChange(g):(f=r.onInputError)==null||f.call(r,p)},d=f=>{s.value=typeof f=="string"?f:f.target.value},c=f=>{const{keyCode:p}=f;p===9?r.onBlur():p===13&&h()};return()=>{var f,p,g;const m=!r.disabled&&r.clearable&&u.value,y=ar(wt({name:"date",type:"text",autocomplete:"off",value:u.value,class:r.inputClass||`${n}-input`,readonly:!r.editable,disabled:r.disabled,placeholder:r.placeholder},r.inputAttr),{onFocus:r.onFocus,onKeydown:c,onInput:d,onChange:h});return K("div",{class:`${n}-input-wrapper`,onClick:r.onClick},[((f=t.input)==null?void 0:f.call(t,y))||K("input",y,null),m?K("i",{class:`${n}-icon-clear`,onClick:l},[((p=t["icon-clear"])==null?void 0:p.call(t))||K(c9,null,null)]):null,K("i",{class:`${n}-icon-calendar`},[((g=t["icon-calendar"])==null?void 0:g.call(t))||K(Fm,null,null)])])}}const lh=Un()(["placeholder","editable","disabled","clearable","inputClass","inputAttr","range","multiple","separator","renderInputText","onInputError","onClear"]),_9=Un()(["value","formatDate","parseDate","disabledDate","onChange","onFocus","onBlur","onClick",...lh]);var S9=un(x9,_9);function E9(e,{slots:t}){var r;const n=ln(e,{prefixClass:"mx",valueType:"date",format:"YYYY-MM-DD",type:"date",disabledDate:()=>!1,disabledTime:()=>!1,confirmText:"OK"});zO(n.prefixClass),WO(((r=n.formatter)==null?void 0:r.getWeek)||th);const s=YO(j1(e,"lang")),i=tt(),a=()=>i.value,o=tt(!1),u=et(()=>!n.disabled&&(typeof n.open=="boolean"?n.open:o.value)),l=()=>{var b,S;n.disabled||u.value||(o.value=!0,(b=n["onUpdate:open"])==null||b.call(n,!0),(S=n.onOpen)==null||S.call(n))},h=()=>{var b,S;u.value&&(o.value=!1,(b=n["onUpdate:open"])==null||b.call(n,!1),(S=n.onClose)==null||S.call(n))},d=(b,S)=>(S=S||n.format,En(n.formatter)&&typeof n.formatter.stringify=="function"?n.formatter.stringify(b,S):nh(b,S,{locale:s.value.formatLocale})),c=(b,S)=>{if(S=S||n.format,En(n.formatter)&&typeof n.formatter.parse=="function")return n.formatter.parse(b,S);const _=new Date;return HO(b,S,{locale:s.value.formatLocale,backupDate:_})},f=b=>{switch(n.valueType){case"date":return b instanceof Date?new Date(b.getTime()):new Date(NaN);case"timestamp":return typeof b=="number"?new Date(b):new Date(NaN);case"format":return typeof b=="string"?c(b):new Date(NaN);default:return typeof b=="string"?c(b,n.valueType):new Date(NaN)}},p=b=>{if(!tn(b))return null;switch(n.valueType){case"date":return b;case"timestamp":return b.getTime();case"format":return d(b);default:return d(b,n.valueType)}},g=et(()=>{const b=n.value;return n.range?(Array.isArray(b)?b.slice(0,2):[null,null]).map(f):n.multiple?(Array.isArray(b)?b:[]).map(f):f(b)}),m=(b,S,_=!0)=>{var w,k;const D=Array.isArray(b)?b.map(p):p(b);return(w=n["onUpdate:value"])==null||w.call(n,D),(k=n.onChange)==null||k.call(n,D,S),_&&h(),D},y=tt(new Date);nr(()=>{u.value&&(y.value=g.value)});const x=(b,S)=>{n.confirm?y.value=b:m(b,S,!n.multiple&&(S===n.type||S==="time"))},C=()=>{var b;const S=m(y.value);(b=n.onConfirm)==null||b.call(n,S)},A=b=>n.disabledDate(b)||n.disabledTime(b),P=b=>{var S;const{prefixClass:_}=n;return K("div",{class:`${_}-datepicker-sidebar`},[(S=t.sidebar)==null?void 0:S.call(t,b),(n.shortcuts||[]).map((w,k)=>K("button",{key:k,"data-index":k,type:"button",class:`${_}-btn ${_}-btn-text ${_}-btn-shortcut`,onClick:()=>{var D;const T=(D=w.onClick)==null?void 0:D.call(w);T&&m(T)}},[w.text]))])};return()=>{var b,S;const{prefixClass:_,disabled:w,confirm:k,range:D,popupClass:T,popupStyle:M,appendToBody:F}=n,I={value:y.value,"onUpdate:value":x,emit:m},N=t.header&&K("div",{class:`${_}-datepicker-header`},[t.header(I)]),$=(t.footer||k)&&K("div",{class:`${_}-datepicker-footer`},[(b=t.footer)==null?void 0:b.call(t,I),k&&K("button",{type:"button",class:`${_}-btn ${_}-datepicker-btn-confirm`,onClick:C},[n.confirmText])]),re=(S=t.content)==null?void 0:S.call(t,I),de=(t.sidebar||n.shortcuts)&&P(I);return K("div",{ref:i,class:{[`${_}-datepicker`]:!0,[`${_}-datepicker-range`]:D,disabled:w}},[K(S9,ar(wt({},Jr(n,lh)),{value:g.value,formatDate:d,parseDate:c,disabledDate:A,onChange:m,onClick:l,onFocus:l,onBlur:h}),Jr(t,["icon-calendar","icon-clear","input"])),K(n9,{className:T,style:M,visible:u.value,appendToBody:F,getRelativeElement:a,onClickOutside:h},{default:()=>[de,K("div",{class:`${_}-datepicker-content`},[N,re,$])]})])}}const C9=Un()(["value","valueType","type","format","formatter","lang","prefixClass","appendToBody","open","popupClass","popupStyle","confirm","confirmText","shortcuts","disabledDate","disabledTime","onOpen","onClose","onConfirm","onChange","onUpdate:open","onUpdate:value"]),k9=[...C9,...lh];var Hd=un(E9,k9);function Ma(e){var t=e,{value:r}=t,n=UO(t,["value"]);const s=Nt();return K("button",ar(wt({},n),{type:"button",class:`${s}-btn ${s}-btn-text ${s}-btn-icon-${r}`}),[K("i",{class:`${s}-icon-${r}`},null)])}function ch({type:e,calendar:t,onUpdateCalendar:r},{slots:n}){var s;const i=Nt(),a=()=>{r(wo(t,c=>c-1))},o=()=>{r(wo(t,c=>c+1))},u=()=>{r(Rs(t,c=>c-1))},l=()=>{r(Rs(t,c=>c+1))},h=()=>{r(Rs(t,c=>c-10))},d=()=>{r(Rs(t,c=>c+10))};return K("div",{class:`${i}-calendar-header`},[K(Ma,{value:"double-left",onClick:e==="year"?h:u},null),e==="date"&&K(Ma,{value:"left",onClick:a},null),K(Ma,{value:"double-right",onClick:e==="year"?d:l},null),e==="date"&&K(Ma,{value:"right",onClick:o},null),K("span",{class:`${i}-calendar-header-label`},[(s=n.default)==null?void 0:s.call(n)])])}function A9({calendar:e,isWeekMode:t,showWeekNumber:r,titleFormat:n,getWeekActive:s,getCellClasses:i,onSelect:a,onUpdatePanel:o,onUpdateCalendar:u,onDateMouseEnter:l,onDateMouseLeave:h}){const d=Nt(),c=GO(),f=oh().value,{yearFormat:p,monthBeforeYear:g,monthFormat:m="MMM",formatLocale:y}=f,x=y.firstDayOfWeek||0;let C=f.days||y.weekdaysMin;C=C.concat(C).slice(x,x+7);const A=e.getFullYear(),P=e.getMonth(),b=ah(b9({firstDayOfWeek:x,year:A,month:P}),7),S=(I,N)=>nh(I,N,{locale:f.formatLocale}),_=I=>{o(I)},w=I=>{const N=I.getAttribute("data-index"),[$,re]=N.split(",").map(fe=>parseInt(fe,10)),de=b[$][re];return new Date(de)},k=I=>{a(w(I.currentTarget))},D=I=>{l&&l(w(I.currentTarget))},T=I=>{h&&h(w(I.currentTarget))},M=K("button",{type:"button",class:`${d}-btn ${d}-btn-text ${d}-btn-current-year`,onClick:()=>_("year")},[S(e,p)]),F=K("button",{type:"button",class:`${d}-btn ${d}-btn-text ${d}-btn-current-month`,onClick:()=>_("month")},[S(e,m)]);return r=typeof r=="boolean"?r:t,K("div",{class:[`${d}-calendar ${d}-calendar-panel-date`,{[`${d}-calendar-week-mode`]:t}]},[K(ch,{type:"date",calendar:e,onUpdateCalendar:u},{default:()=>[g?[F,M]:[M,F]]}),K("div",{class:`${d}-calendar-content`},[K("table",{class:`${d}-table ${d}-table-date`},[K("thead",null,[K("tr",null,[r&&K("th",{class:`${d}-week-number-header`},null),C.map(I=>K("th",{key:I},[I]))])]),K("tbody",null,[b.map((I,N)=>K("tr",{key:N,class:[`${d}-date-row`,{[`${d}-active-week`]:s(I)}]},[r&&K("td",{class:`${d}-week-number`,"data-index":`${N},0`,onClick:k},[K("div",null,[c(I[0])])]),I.map(($,re)=>K("td",{key:re,class:["cell",i($)],title:S($,n),"data-index":`${N},${re}`,onClick:k,onMouseenter:D,onMouseleave:T},[K("div",null,[$.getDate()])]))]))])])])])}function P9({calendar:e,getCellClasses:t,onSelect:r,onUpdateCalendar:n,onUpdatePanel:s}){const i=Nt(),a=oh().value,o=a.months||a.formatLocale.monthsShort,u=h=>ss(e.getFullYear(),h),l=h=>{const c=h.currentTarget.getAttribute("data-month");r(u(parseInt(c,10)))};return K("div",{class:`${i}-calendar ${i}-calendar-panel-month`},[K(ch,{type:"month",calendar:e,onUpdateCalendar:n},{default:()=>[K("button",{type:"button",class:`${i}-btn ${i}-btn-text ${i}-btn-current-year`,onClick:()=>s("year")},[e.getFullYear()])]}),K("div",{class:`${i}-calendar-content`},[K("table",{class:`${i}-table ${i}-table-month`},[ah(o,3).map((h,d)=>K("tr",{key:d},[h.map((c,f)=>{const p=d*3+f;return K("td",{key:f,class:["cell",t(u(p))],"data-month":p,onClick:l},[K("div",null,[c])])})]))])])])}const D9=e=>{const t=Math.floor(e.getFullYear()/10)*10,r=[];for(let n=0;n<10;n++)r.push(t+n);return ah(r,2)};function T9({calendar:e,getCellClasses:t=()=>[],getYearPanel:r=D9,onSelect:n,onUpdateCalendar:s}){const i=Nt(),a=d=>ss(d,0),o=d=>{const f=d.currentTarget.getAttribute("data-year");n(a(parseInt(f,10)))},u=r(new Date(e)),l=u[0][0],h=Md(Md(u));return K("div",{class:`${i}-calendar ${i}-calendar-panel-year`},[K(ch,{type:"year",calendar:e,onUpdateCalendar:s},{default:()=>[K("span",null,[l]),K("span",{class:`${i}-calendar-decade-separator`},null),K("span",null,[h])]}),K("div",{class:`${i}-calendar-content`},[K("table",{class:`${i}-table ${i}-table-year`},[u.map((d,c)=>K("tr",{key:c},[d.map((f,p)=>K("td",{key:p,class:["cell",t(a(f))],"data-year":f,onClick:o},[K("div",null,[f])]))]))])])])}function F9(e){const t=ln(e,{defaultValue:Mn(new Date),type:"date",disabledDate:()=>!1,getClasses:()=>[],titleFormat:"YYYY-MM-DD"}),r=et(()=>(Array.isArray(t.value)?t.value:[t.value]).filter(tn).map(x=>t.type==="year"?y9(x):t.type==="month"?$d(x):Mn(x))),n=tt(new Date);nr(()=>{let y=t.calendar;if(!tn(y)){const{length:x}=r.value;y=bu(x>0?r.value[x-1]:t.defaultValue)}n.value=$d(y)});const s=y=>{var x;n.value=y,(x=t.onCalendarChange)==null||x.call(t,y)},i=tt("date");nr(()=>{const y=["date","month","year"],x=Math.max(y.indexOf(t.type),y.indexOf(t.defaultPanel));i.value=x!==-1?y[x]:"date"});const a=y=>{var x;const C=i.value;i.value=y,(x=t.onPanelChange)==null||x.call(t,y,C)},o=y=>t.disabledDate(new Date(y),r.value),u=(y,x)=>{var C,A,P;if(!o(y))if((C=t.onPick)==null||C.call(t,y),t.multiple===!0){const b=r.value.filter(S=>S.getTime()!==y.getTime());b.length===r.value.length&&b.push(y),(A=t["onUpdate:value"])==null||A.call(t,b,x)}else(P=t["onUpdate:value"])==null||P.call(t,y,x)},l=y=>{u(y,t.type==="week"?"week":"date")},h=y=>{if(t.type==="year")u(y,"year");else if(s(y),a("month"),t.partialUpdate&&r.value.length===1){const x=Rs(r.value[0],y.getFullYear());u(x,"year")}},d=y=>{if(t.type==="month")u(y,"month");else if(s(y),a("date"),t.partialUpdate&&r.value.length===1){const x=wo(Rs(r.value[0],y.getFullYear()),y.getMonth());u(x,"month")}},c=(y,x=[])=>(o(y)?x.push("disabled"):r.value.some(C=>C.getTime()===y.getTime())&&x.push("active"),x.concat(t.getClasses(y,r.value,x.join(" ")))),f=y=>{const x=y.getMonth()!==n.value.getMonth(),C=[];return y.getTime()===new Date().setHours(0,0,0,0)&&C.push("today"),x&&C.push("not-current-month"),c(y,C)},p=y=>t.type!=="month"?n.value.getMonth()===y.getMonth()?"active":"":c(y),g=y=>t.type!=="year"?n.value.getFullYear()===y.getFullYear()?"active":"":c(y),m=y=>{if(t.type!=="week")return!1;const x=y[0].getTime(),C=y[6].getTime();return r.value.some(A=>{const P=A.getTime();return P>=x&&P<=C})};return()=>i.value==="year"?K(T9,{calendar:n.value,getCellClasses:g,getYearPanel:t.getYearPanel,onSelect:h,onUpdateCalendar:s},null):i.value==="month"?K(P9,{calendar:n.value,getCellClasses:p,onSelect:d,onUpdatePanel:a,onUpdateCalendar:s},null):K(A9,{isWeekMode:t.type==="week",showWeekNumber:t.showWeekNumber,titleFormat:t.titleFormat,calendar:n.value,getCellClasses:f,getWeekActive:m,onSelect:l,onUpdatePanel:a,onUpdateCalendar:s,onDateMouseEnter:t.onDateMouseEnter,onDateMouseLeave:t.onDateMouseLeave},null)}const wu=Un()(["type","value","defaultValue","defaultPanel","disabledDate","getClasses","calendar","multiple","partialUpdate","showWeekNumber","titleFormat","getYearPanel","onDateMouseEnter","onDateMouseLeave","onCalendarChange","onPanelChange","onUpdate:value","onPick"]);var xu=un(F9,wu);const jd=(e,t)=>{const r=e.getTime();let[n,s]=t.map(i=>i.getTime());return n>s&&([n,s]=[s,n]),r>n&&r{let m=Array.isArray(t.defaultValue)?t.defaultValue:[t.defaultValue,t.defaultValue];return m=m.map(y=>Mn(y)),is(m)?m:[new Date,new Date].map(y=>Mn(y))}),s=tt([new Date(NaN),new Date(NaN)]);nr(()=>{is(t.value)&&(s.value=t.value)});const i=(m,y)=>{var x;const[C,A]=s.value;tn(C)&&!tn(A)?(C.getTime()>m.getTime()?s.value=[m,C]:s.value=[C,m],(x=t["onUpdate:value"])==null||x.call(t,s.value,y)):s.value=[m,new Date(NaN)]},a=tt([new Date,new Date]),o=et(()=>is(t.calendar)?t.calendar:a.value),u=et(()=>t.type==="year"?10*12:t.type==="month"?1*12:1),l=(m,y)=>{var x;const C=w9(m[0],m[1]),A=u.value-C;if(A>0){const P=y===1?0:1;m[P]=wo(m[P],b=>b+(P===0?-A:A))}a.value=m,(x=t.onCalendarChange)==null||x.call(t,m,y)},h=m=>{l([m,o.value[1]],0)},d=m=>{l([o.value[0],m],1)};nr(()=>{const m=is(t.value)?t.value:n.value;l(m.slice(0,2))});const c=tt(null),f=m=>c.value=m,p=()=>c.value=null,g=(m,y,x)=>{const C=t.getClasses?t.getClasses(m,y,x):[],A=Array.isArray(C)?C:[C];return/disabled|active/.test(x)?A:(y.length===2&&jd(m,y)&&A.push("in-range"),y.length===1&&c.value&&jd(m,[y[0],c.value])?A.concat("hover-in-range"):A)};return()=>{const m=o.value.map((y,x)=>{const C=ar(wt({},t),{calendar:y,value:s.value,defaultValue:n.value[x],getClasses:g,partialUpdate:!1,multiple:!1,"onUpdate:value":i,onCalendarChange:x===0?h:d,onDateMouseLeave:p,onDateMouseEnter:f});return K(xu,C,null)});return K("div",{class:`${r}-calendar-range`},[m])}}const hh=wu;var fh=un(O9,hh);const Om=Er({setup(e,{slots:t}){const r=Nt(),n=tt(),s=tt(""),i=tt("");Vi(()=>{if(!n.value)return;const p=n.value,g=p.clientHeight*100/p.scrollHeight;s.value=g<100?`${g}%`:""});const o=ZO(),u=p=>{const g=p.currentTarget,{scrollHeight:m,scrollTop:y}=g;i.value=`${y*100/m}%`};let l=!1,h=0;const d=p=>{p.stopImmediatePropagation();const g=p.currentTarget,{offsetTop:m}=g;l=!0,h=p.clientY-m},c=p=>{if(!l||!n.value)return;const{clientY:g}=p,{scrollHeight:m,clientHeight:y}=n.value,C=(g-h)*m/y;n.value.scrollTop=C},f=()=>{l=!1};return Vi(()=>{document.addEventListener("mousemove",c),document.addEventListener("mouseup",f)}),Ql(()=>{document.addEventListener("mousemove",c),document.addEventListener("mouseup",f)}),()=>{var p;return K("div",{class:`${r}-scrollbar`,style:{position:"relative",overflow:"hidden"}},[K("div",{ref:n,class:`${r}-scrollbar-wrap`,style:{marginRight:`-${o}px`},onScroll:u},[(p=t.default)==null?void 0:p.call(t)]),K("div",{class:`${r}-scrollbar-track`},[K("div",{class:`${r}-scrollbar-thumb`,style:{height:s.value,top:i.value},onMousedown:d},null)])])}}});function I9({options:e,getClasses:t,onSelect:r}){const n=Nt(),s=i=>{const a=i.target,o=i.currentTarget;if(a.tagName.toUpperCase()!=="LI")return;const u=o.getAttribute("data-type"),l=parseInt(o.getAttribute("data-index"),10),h=parseInt(a.getAttribute("data-index"),10),d=e[l].list[h].value;r(d,u)};return K("div",{class:`${n}-time-columns`},[e.map((i,a)=>K(Om,{key:i.type,class:`${n}-time-column`},{default:()=>[K("ul",{class:`${n}-time-list`,"data-index":a,"data-type":i.type,onClick:s},[i.list.map((o,u)=>K("li",{key:o.text,"data-index":u,class:[`${n}-time-item`,t(o.value,i.type)]},[o.text]))])]}))])}function R9(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Ki(e)}function N9(e){let t;const r=Nt();return K(Om,null,R9(t=e.options.map(n=>K("div",{key:n.text,class:[`${r}-time-option`,e.getClasses(n.value,"time")],onClick:()=>e.onSelect(n.value,"time")},[n.text])))?t:{default:()=>[t]})}function zu({length:e,step:t=1,options:r}){if(Array.isArray(r))return r.filter(s=>s>=0&&s=12;return r&&o.push({type:"hour",list:zu({length:i?12:24,step:t.hourStep,options:t.hourOptions}).map(l=>{const h=l===0&&i?"12":Yu(l),d=new Date(e);return d.setHours(u?l+12:l),{value:d,text:h}})}),n&&o.push({type:"minute",list:zu({length:60,step:t.minuteStep,options:t.minuteOptions}).map(l=>{const h=new Date(e);return h.setMinutes(l),{value:h,text:Yu(l)}})}),s&&o.push({type:"second",list:zu({length:60,step:t.secondStep,options:t.secondOptions}).map(l=>{const h=new Date(e);return h.setSeconds(l),{value:h,text:Yu(l)}})}),i&&o.push({type:"ampm",list:["AM","PM"].map((l,h)=>{const d=new Date(e);return d.setHours(d.getHours()%12+h*12),{text:l,value:d}})}),o}function Wu(e=""){const t=e.split(":");if(t.length>=2){const r=parseInt(t[0],10),n=parseInt(t[1],10);return{hours:r,minutes:n}}return null}function B9({date:e,option:t,format:r,formatDate:n}){const s=[];if(typeof t=="function")return t()||[];const i=Wu(t.start),a=Wu(t.end),o=Wu(t.step),u=t.format||r;if(i&&a&&o){const l=i.minutes+i.hours*60,h=a.minutes+a.hours*60,d=o.minutes+o.hours*60,c=Math.floor((h-l)/d);for(let f=0;f<=c;f++){const p=l+f*d,g=Math.floor(p/60),m=p%60,y=new Date(e);y.setHours(g,m,0),s.push({value:y,text:n(y,u)})}}return s}const Im=(e,t,r=0)=>{if(r<=0){requestAnimationFrame(()=>{e.scrollTop=t});return}const s=(t-e.scrollTop)/r*10;requestAnimationFrame(()=>{const i=e.scrollTop+s;if(i>=t){e.scrollTop=t;return}e.scrollTop=i,Im(e,t,r-10)})};function $9(e){const t=ln(e,{defaultValue:Mn(new Date),format:"HH:mm:ss",timeTitleFormat:"YYYY-MM-DD",disabledTime:()=>!1,scrollDuration:100}),r=Nt(),n=oh(),s=(g,m)=>nh(g,m,{locale:n.value.formatLocale}),i=tt(new Date);nr(()=>{i.value=bu(t.value,t.defaultValue)});const a=g=>Array.isArray(g)?g.every(m=>t.disabledTime(new Date(m))):t.disabledTime(new Date(g)),o=g=>{const m=new Date(g);return a([m.getTime(),m.setMinutes(0,0,0),m.setMinutes(59,59,999)])},u=g=>{const m=new Date(g);return a([m.getTime(),m.setSeconds(0,0),m.setSeconds(59,999)])},l=g=>{const m=new Date(g),y=m.getHours()<12?0:12,x=y+11;return a([m.getTime(),m.setHours(y,0,0,0),m.setHours(x,59,59,999)])},h=(g,m)=>m==="hour"?o(g):m==="minute"?u(g):m==="ampm"?l(g):a(g),d=(g,m)=>{var y;if(!h(g,m)){const x=new Date(g);i.value=x,a(x)||(y=t["onUpdate:value"])==null||y.call(t,x,m)}},c=(g,m)=>h(g,m)?"disabled":g.getTime()===i.value.getTime()?"active":"",f=tt(),p=g=>{if(!f.value)return;const m=f.value.querySelectorAll(".active");for(let y=0;yp(0)),$s(i,()=>p(t.scrollDuration),{flush:"post"}),()=>{let g;return t.timePickerOptions?g=K(N9,{onSelect:d,getClasses:c,options:B9({date:i.value,format:t.format,option:t.timePickerOptions,formatDate:s})},null):g=K(I9,{options:M9(i.value,t),onSelect:d,getClasses:c},null),K("div",{class:`${r}-time`,ref:f},[t.showTimeHeader&&K("div",{class:`${r}-time-header`},[K("button",{type:"button",class:`${r}-btn ${r}-btn-text ${r}-time-header-title`,onClick:t.onClickTitle},[s(i.value,t.timeTitleFormat)])]),K("div",{class:`${r}-time-content`},[g])])}}const _u=Un()(["value","defaultValue","format","timeTitleFormat","showTimeHeader","disabledTime","timePickerOptions","hourOptions","minuteOptions","secondOptions","hourStep","minuteStep","secondStep","showHour","showMinute","showSecond","use12h","scrollDuration","onClickTitle","onUpdate:value"]);var ta=un($9,_u);function H9(e){const t=ln(e,{defaultValue:Mn(new Date),disabledTime:()=>!1}),r=Nt(),n=tt([new Date(NaN),new Date(NaN)]);nr(()=>{is(t.value)?n.value=t.value:n.value=[new Date(NaN),new Date(NaN)]});const s=(l,h)=>{var d;(d=t["onUpdate:value"])==null||d.call(t,n.value,l==="time"?"time-range":l,h)},i=(l,h)=>{n.value[0]=l,n.value[1].getTime()>=l.getTime()||(n.value[1]=l),s(h,0)},a=(l,h)=>{n.value[1]=l,n.value[0].getTime()<=l.getTime()||(n.value[0]=l),s(h,1)},o=l=>t.disabledTime(l,0),u=l=>l.getTime(){const l=Array.isArray(t.defaultValue)?t.defaultValue:[t.defaultValue,t.defaultValue];return K("div",{class:`${r}-time-range`},[K(ta,ar(wt({},t),{"onUpdate:value":i,value:n.value[0],defaultValue:l[0],disabledTime:o}),null),K(ta,ar(wt({},t),{"onUpdate:value":a,value:n.value[1],defaultValue:l[1],disabledTime:u}),null)])}}const dh=_u;var ph=un(H9,dh);function Rm(e){const t=tt(!1),r=()=>{var i;t.value=!1,(i=e.onShowTimePanelChange)==null||i.call(e,!1)},n=()=>{var i;t.value=!0,(i=e.onShowTimePanelChange)==null||i.call(e,!0)};return{timeVisible:et(()=>typeof e.showTimePanel=="boolean"?e.showTimePanel:t.value),openTimePanel:n,closeTimePanel:r}}function j9(e){const t=ln(e,{disabledTime:()=>!1,defaultValue:Mn(new Date)}),r=tt(t.value);nr(()=>{r.value=t.value});const{openTimePanel:n,closeTimePanel:s,timeVisible:i}=Rm(t),a=(o,u)=>{var l;u==="date"&&n();let h=xo(o,bu(t.value,t.defaultValue));if(t.disabledTime(new Date(h))&&(h=xo(o,t.defaultValue),t.disabledTime(new Date(h)))){r.value=h;return}(l=t["onUpdate:value"])==null||l.call(t,h,u)};return()=>{const o=Nt(),u=ar(wt({},Jr(t,wu)),{multiple:!1,type:"date",value:r.value,"onUpdate:value":a}),l=ar(wt({},Jr(t,_u)),{showTimeHeader:!0,value:r.value,"onUpdate:value":t["onUpdate:value"],onClickTitle:s});return K("div",{class:`${o}-date-time`},[K(xu,u,null),i.value&&K(ta,l,null)])}}const Nm=Un()(["showTimePanel","onShowTimePanelChange"]),L9=[...Nm,...wu,..._u];var Mm=un(j9,L9);function V9(e){const t=ln(e,{defaultValue:Mn(new Date),disabledTime:()=>!1}),r=tt(t.value);nr(()=>{r.value=t.value});const{openTimePanel:n,closeTimePanel:s,timeVisible:i}=Rm(t),a=(o,u)=>{var l;u==="date"&&n();const h=Array.isArray(t.defaultValue)?t.defaultValue:[t.defaultValue,t.defaultValue];let d=o.map((c,f)=>{const p=is(t.value)?t.value[f]:h[f];return xo(c,p)});if(d[1].getTime()xo(c,h[f])),d.some(t.disabledTime))){r.value=d;return}(l=t["onUpdate:value"])==null||l.call(t,d,u)};return()=>{const o=Nt(),u=ar(wt({},Jr(t,hh)),{type:"date",value:r.value,"onUpdate:value":a}),l=ar(wt({},Jr(t,dh)),{showTimeHeader:!0,value:r.value,"onUpdate:value":t["onUpdate:value"],onClickTitle:s});return K("div",{class:`${o}-date-time-range`},[K(fh,u,null),i.value&&K(ph,l,null)])}}const U9=[...Nm,...dh,...hh];var Bm=un(V9,U9);const q9=Un()(["range","open","appendToBody","clearable","confirm","disabled","editable","multiple","partialUpdate","showHour","showMinute","showSecond","showTimeHeader","showTimePanel","showWeekNumber","use12h"]),Ld={date:"YYYY-MM-DD",datetime:"YYYY-MM-DD HH:mm:ss",year:"YYYY",month:"YYYY-MM",time:"HH:mm:ss",week:"w"};function $m(e,{slots:t}){const r=e.type||"date",n=e.format||Ld[r]||Ld.date,s=ar(wt({},e9(e,q9)),{type:r,format:n});return K(Hd,Jr(s,Hd.props),wt({content:i=>{if(s.range){const a=r==="time"?ph:r==="datetime"?Bm:fh;return zi(a,Jr(wt(wt({},s),i),a.props))}else{const a=r==="time"?ta:r==="datetime"?Mm:xu;return zi(a,Jr(wt(wt({},s),i),a.props))}},"icon-calendar":()=>K(r==="time"?m9:Fm,null,null)},t))}const K9={locale:km,install:e=>{e.component("DatePicker",$m)}};var Hm=Object.assign($m,K9,{Calendar:xu,CalendarRange:fh,TimePanel:ta,TimeRange:ph,DateTime:Mm,DateTimeRange:Bm});const Y9={name:"posOpen",components:{DatePicker:Hm,Badge:Jc},setup(){const e=lr(),t=dm();return{invoiceData:e,posOpen:t}},mounted(){this.posOpen.setFormattedDate()}},z9={class:"mt-10 flex items-center justify-between"},W9={class:"flex items-center"},G9=E("h3",{class:"mr-3 text-lg font-semibold text-gray-900 dark:text-white"}," POS Opening Entry ",-1),J9={class:"text-xs"},X9={class:"flex space-x-4"},Z9={class:"mb-6 mt-6 grid gap-6 md:grid-cols-2"},Q9=E("label",{for:"startDate",class:"mb-2 block text-sm font-medium text-gray-900 dark:text-white"},"Period Start Date",-1),eI=E("label",{for:"postingDate",class:"mb-2 block text-sm font-medium text-gray-900 dark:text-white"},[E("label",{for:"postingDate",class:"mb-2 block text-sm font-medium text-gray-900 dark:text-white"},"Posting Date")],-1),tI=E("hr",{class:"my-6 border-t border-gray-300"},null,-1),rI={class:"mb-6 mt-6 grid gap-6 md:grid-cols-2"},nI=E("label",{for:"company",class:"mb-2 block text-sm font-medium text-gray-900 dark:text-white"},"Company",-1),sI=E("label",{for:"cashier",class:"mb-2 block text-sm font-medium text-gray-900 dark:text-white"},"Cashier",-1),iI=E("label",{for:"posProfile",class:"mb-2 block text-sm font-medium text-gray-900 dark:text-white"},"POS Profile",-1),aI=E("label",{for:"branch",class:"mb-2 block text-sm font-medium text-gray-900 dark:text-white"},"Branch",-1),oI=E("hr",{class:"my-6 border-t border-gray-300"},null,-1),uI=E("h3",{class:"mb-3 text-base font-semibold text-gray-900 dark:text-white"}," Opening Balance Details ",-1),lI={class:"relative overflow-x-auto shadow-md sm:rounded-lg"},cI={class:"w-full text-left text-sm text-gray-500 dark:text-gray-400"},hI=E("thead",{class:"bg-gray-50 text-base font-semibold uppercase text-gray-900 dark:text-white"},[E("tr",null,[E("th",{scope:"col",class:"px-6 py-3"},"Mode of Payment"),E("th",{scope:"col",class:"px-6 py-3 text-center"},"Opening Amount"),E("th",{scope:"col",class:"px-6 py-3"})])],-1),fI={scope:"row",class:"whitespace-nowrap px-6 py-4 font-medium text-gray-900 dark:text-white"},dI={class:"px-6 py-4 text-center font-medium text-gray-900 dark:text-white"},pI=["onUpdate:modelValue","onInput"],gI={class:"px-6 py-4"},mI=["onClick"],vI=E("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25",height:"25",fill:"currentColor border",class:"bi bi-trash",viewBox:"0 0 16 16"},[E("path",{d:"M5.5 5.5A.5.5 0 0 1 6 6v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5Zm2.5 0a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5Zm3 .5a.5.5 0 0 0-1 0v6a.5.5 0 0 0 1 0V6Z"}),E("path",{d:"M14.5 3a1 1 0 0 1-1 1H13v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V4h-.5a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1H6a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1h3.5a1 1 0 0 1 1 1v1ZM4.118 4 4 4.059V13a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V4.059L11.882 4H4.118ZM2.5 3h11V2h-11v1Z"})],-1),yI=[vI],bI=E("hr",{class:"my-6 border-t border-gray-300"},null,-1),wI={key:0,class:"fixed inset-0 mt-20 z-10 overflow-y-auto bg-gray-100"},xI={class:"mt-3 flex items-center justify-center"},_I={class:"w-full rounded-lg bg-white p-6 shadow-lg md:max-w-md"},SI={class:"flex items-center justify-between"},EI=E("h3",{class:"text-xl text-gray-900 dark:text-white"},"Confirm",-1),CI=E("span",{class:"sr-only"},"Close",-1),kI=E("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"},null,-1),AI=[kI],PI={class:"mt-5 block text-left text-base text-gray-900 dark:text-white"},DI={class:"flex justify-end"};function TI(e,t,r,n,s,i){const a=$t("Badge"),o=$t("date-picker");return j(),V(De,null,[E("div",z9,[E("div",W9,[G9,this.posOpen.isPosOpen!==null?(j(),nn(a,{key:0,type:this.posOpen.getBadgeType()},{default:zt(()=>[E("span",J9,be(this.posOpen.getBadgeText()),1)]),_:1},8,["type"])):ae("",!0)]),E("div",X9,[this.posOpen.posOpencreation?(j(),V("button",{key:0,onClick:t[0]||(t[0]=u=>this.posOpen.savePosOpening()),class:"rounded-md bg-blue-500 px-4 py-2 text-white hover:bg-blue-600 focus:outline-none"}," Save ")):ae("",!0),this.posOpen.posOpenSaved?(j(),V("button",{key:1,onClick:t[1]||(t[1]=u=>this.posOpen.showSumbitPosOpenModal()),class:"rounded-md bg-blue-500 px-4 py-2 text-white hover:bg-blue-600 focus:outline-none"}," Submit ")):ae("",!0)])]),E("div",Z9,[E("div",null,[Q9,K(o,{value:this.posOpen.startDate,"onUpdate:value":t[2]||(t[2]=u=>this.posOpen.startDate=u),"default-value":new Date,class:"my-custom-date-picker",type:"datetime"},null,8,["value","default-value"])]),E("div",null,[eI,_e(E("input",{"onUpdate:modelValue":t[3]||(t[3]=u=>this.posOpen.postingDate=u),readonly:"",class:"block w-full rounded-md border border-gray-300 text-sm text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-blue-500 dark:focus:ring-blue-500",type:"text"},null,512),[[ke,this.posOpen.postingDate]])])]),tI,E("div",rI,[E("div",null,[nI,_e(E("input",{type:"text",id:"company","onUpdate:modelValue":t[4]||(t[4]=u=>this.invoiceData.company=u),class:"b block w-full rounded-md border border-gray-300 text-sm text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-blue-500 dark:focus:ring-blue-500",required:""},null,512),[[ke,this.invoiceData.company]])]),E("div",null,[sI,_e(E("input",{type:"text",id:"cashier","onUpdate:modelValue":t[5]||(t[5]=u=>this.invoiceData.cashier=u),class:"block w-full rounded-md border border-gray-300 text-sm text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-blue-500 dark:focus:ring-blue-500",required:""},null,512),[[ke,this.invoiceData.cashier]])]),E("div",null,[iI,_e(E("input",{type:"text",id:"posProfile",class:"block w-full rounded-md border border-gray-300 text-sm text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-blue-500 dark:focus:ring-blue-500","onUpdate:modelValue":t[6]||(t[6]=u=>this.invoiceData.posProfile=u),required:""},null,512),[[ke,this.invoiceData.posProfile]])]),E("div",null,[aI,_e(E("input",{type:"text",id:"branch",class:"block w-full rounded-md border border-gray-300 text-sm text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-blue-500 dark:focus:ring-blue-500","onUpdate:modelValue":t[7]||(t[7]=u=>this.invoiceData.branch=u),required:""},null,512),[[ke,this.invoiceData.branch]])])]),oI,uI,E("div",lI,[E("table",cI,[hI,E("tbody",null,[(j(!0),V(De,null,ht(n.invoiceData.modeOfPaymentList,(u,l)=>(j(),V("tr",{class:"border-b bg-white dark:border-gray-700 dark:bg-gray-900",key:l},[E("th",fI,be(u.mode_of_payment),1),E("td",dI,[_e(E("input",{type:"number",id:"amount",name:"amount","onUpdate:modelValue":h=>u.opening_amount=h,class:"border-none text-center",onInput:h=>n.posOpen.changePaidAmount(u.opening_amount)},null,40,pI),[[ke,u.opening_amount]])]),E("td",gI,[E("button",{class:"p-2 text-center",type:"button",onClick:h=>this.posOpen.deleteRow(l)},yI,8,mI)])]))),128))])])]),bI,this.posOpen.showSumbitPosOpen?(j(),V("div",wI,[E("div",xI,[E("div",_I,[E("div",SI,[EI,CI,(j(),V("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5 cursor-pointer",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",onClick:t[8]||(t[8]=u=>this.posOpen.showSumbitPosOpen=!1)},AI))]),E("h3",PI," Permanently Submit"+be(this.posOpen.posOpenEntryName)+"? ",1),E("div",DI,[E("button",{onClick:t[9]||(t[9]=u=>this.posOpen.showSumbitPosOpen=!1),class:"mr-3 mt-6 rounded border border-gray-300 bg-gray-50 px-3 py-2"}," No "),E("button",{onClick:t[10]||(t[10]=u=>this.posOpen.sumbitPosOpening()),class:"mt-6 rounded bg-blue-500 px-3 py-2 text-white hover:bg-blue-600"}," Yes ")])])])])):ae("",!0)],64)}const FI=cr(Y9,[["render",TI]]),jm=Cr("posClose",{state:()=>({invoiceData:lr(),call:Dt.call(),db:Dt.db(),startDate:null,alert:Bn(),postingDate:null,periodEndDate:new Date,posClosecreation:!0,posOpenEntries:[],showPosOpen:!1,selectedPosOpenEntry:null,cashier:null,postingTime:new Date,openingBalance:[],closingAmount:0,formattedDateTime:null,invoiceDetails:[],posInvoice:[],invoiceDate:null,amount:null,payments:[],grandTotal:0,netTotal:0,totalQty:0,totalInvoices:0,taxes:[],posClosingEntry:null,posClosing:!0,posCloseSaved:!1,isPosClose:null,showSumbitPosclose:!1}),getters:{isFlagSet(){return this.customer.length===0}},actions:{selectPosOpen(){this.db.getDocList("POS Opening Entry",{fields:["name","status","branch","docstatus"],filters:[["status","=","Open"],["docstatus","=","1"]]}).then(e=>{this.posOpenEntries=e}).catch(e=>console.error(e)),this.showPosOpen=!0},selectPos(e){let t=null;this.selectedPosOpenEntry=e.name,this.showPosOpen=!1,t=e.name;const r={doctype:"POS Opening Entry",name:t};this.call.get("frappe.client.get",r).then(n=>{this.startDate=n.message.period_start_date,this.cashier=n.message.owner,this.openingBalance=n.message.balance_details,this.getInvoice()}).catch(n=>console.error(n))},getInvoice(){if(this.periodEndDate){const t=new Date(this.periodEndDate),r=t.getFullYear(),n=String(t.getMonth()+1).padStart(2,"0"),s=String(t.getDate()).padStart(2,"0"),i=String(t.getHours()).padStart(2,"0"),a=String(t.getMinutes()).padStart(2,"0"),o=String(t.getSeconds()).padStart(2,"0");this.formattedDateTime=`${r}-${n}-${s} ${i}:${a}:${o}`}else this.formattedDateTime=null;const e={start:this.startDate,end:this.formattedDateTime,pos_profile:this.invoiceData.posProfile,user:this.cashier};this.call.get("erpnext.accounts.doctype.pos_closing_entry.pos_closing_entry.get_pos_invoices",e).then(t=>{this.invoiceDetails=t.message;let r={};this.invoiceDetails.forEach(n=>{this.grandTotal+=parseFloat(n.grand_total),this.netTotal+=parseFloat(n.net_total),this.totalQty+=parseFloat(n.total_qty);let s=n.taxes,i={};s.forEach(a=>{i[a.account_head]||(i[a.account_head]={account_head:a.account_head,rate:a.rate,tax_amount:0}),i[a.account_head].tax_amount+=a.tax_amount}),this.taxes=Object.values(i),n.payments.forEach(a=>{r[a.mode_of_payment]||(r[a.mode_of_payment]={expected_amount:0,mode_of_payment:a.mode_of_payment}),r[a.mode_of_payment].expected_amount+=a.amount})}),this.payments=Object.values(r),this.posInvoice=this.invoiceDetails.map(n=>({pos_invoice:n.name,date:n.modified.split(" ")[0],amount:n.grand_total}))}).catch(t=>console.error(t))},savePosClosing(){let e;if(this.postingTime){const r=new Date(this.postingTime),n=String(r.getHours()).padStart(2,"0"),s=String(r.getMinutes()).padStart(2,"0"),i=String(r.getSeconds()).padStart(2,"0");e=`${n}:${s}:${i}`}else e=null;let t=this.openingBalance;t.forEach(r=>{let n=!1;this.payments.forEach(s=>{s.mode_of_payment===r.mode_of_payment&&(r.expected_amount=s.expected_amount,r.difference=-s.expected_amount,n=!0)}),n||(r.expected_amount=0,r.difference=0)}),this.db.createDoc("POS Closing Entry",{period_start_date:this.startDate,period_end_date:this.formattedDateTime,posting_date:this.postingDate,posting_time:e,company:this.invoiceData.company,pos_profile:this.invoiceData.posProfile,payment_reconciliation:t,pos_transactions:this.posInvoice,pos_opening_entry:this.selectedPosOpenEntry,user:this.cashier,grand_total:this.grandTotal,net_total:this.netTotal,total_quantity:this.totalQty,docstatus:0}).then(r=>{this.posClosingEntry=r.name,this.posClosing=!1,this.posCloseSaved=!0,this.isPosClose="Draft"}).catch(r=>{if(r._server_messages){const n=JSON.parse(r._server_messages),s=JSON.parse(n[0]);this.alert.createAlert("Message",s.message,"OK")}})},getBadgeType(){return this.isPosClose==="Draft"?"red":(this.isPosClose==="Submitted","default")},getBadgeText(){if(this.isPosClose=="Draft")return"Draft";if(this.isPosClose=="Submitted")return"Submitted"},showSumbitPosCloseModal(){this.showSumbitPosclose=!0},sumbitPosClosing(){this.showSumbitPosclose=!1,this.db.updateDoc("POS Closing Entry",this.posClosingEntry,{docstatus:1}).then(e=>{this.isPosClose="Submitted"}).catch(e=>{if(e._server_messages){const t=JSON.parse(e._server_messages),r=JSON.parse(t[0]);this.alert.createAlert("Message",r.message,"OK")}})},setFormattedDate(){const e=new Date,t=e.getFullYear(),r=String(e.getMonth()+1).padStart(2,"0"),n=String(e.getDate()).padStart(2,"0");this.postingDate=`${t}-${r}-${n}`},deleteRow(e){this.openingBalance.splice(e,1)},routeToPosClose(){ft.push("/PosClose")}}});const OI={name:"posClose",components:{DatePicker:Hm,Badge:Jc},setup(){const e=lr(),t=jm();return{invoiceData:e,posClose:t}},mounted(){this.posClose.setFormattedDate()},data(){return{search:"",selectedCustomer:null}}},II={class:"mt-10 flex items-center justify-between"},RI={class:"flex items-center"},NI=E("h3",{class:"mr-3 text-lg font-semibold text-gray-900 dark:text-white"}," POS Closing Entry ",-1),MI={class:"text-xs"},BI={class:"flex space-x-4"},$I=E("h3",{class:"text-base font-semibold text-gray-900 dark:text-white"}," Period Details ",-1),HI={class:"mb-6 mt-6 grid gap-6 md:grid-cols-2"},jI=E("label",{for:"startDate",class:"mb-2 block text-sm font-medium text-gray-900 dark:text-white"},"Period Start Date",-1),LI=E("label",{for:"postingDate",class:"mb-2 block text-sm font-medium text-gray-900 dark:text-white"},[E("label",{for:"postingDate",class:"mb-2 block text-sm font-medium text-gray-900 dark:text-white"},"Posting Date")],-1),VI=E("label",{for:"endDate",class:"mb-2 block text-sm font-medium text-gray-900 dark:text-white"},"Period End Date",-1),UI=E("label",{for:"postingTime",class:"mb-2 block text-sm font-medium text-gray-900 dark:text-white"},"Posting Time",-1),qI={class:"mb-6 gap-6 md:grid-cols-2"},KI={class:"relative",ref:"container"},YI=E("label",{for:"posOpen",class:"block text-sm font-medium text-gray-900 dark:text-white"}," POS Opening Entry ",-1),zI={key:0,class:"block w-full rounded-lg border border-gray-300 bg-gray-50 p-2.5 text-sm text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-blue-500 dark:focus:ring-blue-500",ref:"dropdown"},WI=["onClick"],GI={class:"text-base font-medium leading-normal"},JI=E("hr",{class:"my-6 border-t border-gray-300"},null,-1),XI=E("h3",{class:"text-base font-semibold text-gray-900 dark:text-white"}," User Details ",-1),ZI={class:"mb-6 mt-5 grid gap-6 md:grid-cols-2"},QI={class:"md:col-span-1"},e7=E("label",{for:"company",class:"mb-2 block text-sm font-medium text-gray-900 dark:text-white"}," Company ",-1),t7={class:"flex flex-col justify-between md:col-span-1"},r7={class:"mb-6"},n7=E("label",{for:"posProfile",class:"mb-2 block text-sm font-medium text-gray-900 dark:text-white"},"POS Profile",-1),s7=E("label",{for:"cashier",class:"mb-2 block text-sm font-medium text-gray-900 dark:text-white"},"Cashier",-1),i7={key:0},a7=E("hr",{class:"my-6 border-t border-gray-300"},null,-1),o7=E("h3",{class:"mb-3 text-base font-semibold text-gray-900 dark:text-white"}," Linked Invoices ",-1),u7=E("h3",{class:"mb-3 text-sm font-semibold text-gray-900 dark:text-white"}," POS Transactions ",-1),l7={class:"relative overflow-x-auto shadow-md sm:rounded-lg"},c7={class:"w-full text-left text-sm text-gray-500 dark:text-gray-400"},h7=E("thead",{class:"bg-gray-50 text-base font-semibold uppercase text-gray-900 dark:text-white"},[E("tr",null,[E("th",{scope:"col",class:"px-6 py-3"},"POS Invoice"),E("th",{scope:"col",class:"px-6 py-3 text-center"},"Date"),E("th",{scope:"col",class:"px-6 py-3 text-center"},"Amount"),E("th",{scope:"col",class:"px-6 py-3"})])],-1),f7={scope:"row",class:"whitespace-nowrap px-6 py-4 font-medium text-gray-900 dark:text-white"},d7={class:"px-6 py-4 text-center font-medium text-gray-900 dark:text-white"},p7={class:"px-6 py-4 text-center font-medium text-gray-900 dark:text-white"},g7=["onUpdate:modelValue"],m7={class:"px-6 py-4"},v7=["onClick"],y7=E("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25",height:"25",fill:"currentColor border",class:"bi bi-trash",viewBox:"0 0 16 16"},[E("path",{d:"M5.5 5.5A.5.5 0 0 1 6 6v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5Zm2.5 0a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5Zm3 .5a.5.5 0 0 0-1 0v6a.5.5 0 0 0 1 0V6Z"}),E("path",{d:"M14.5 3a1 1 0 0 1-1 1H13v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V4h-.5a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1H6a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1h3.5a1 1 0 0 1 1 1v1ZM4.118 4 4 4.059V13a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V4.059L11.882 4H4.118ZM2.5 3h11V2h-11v1Z"})],-1),b7=[y7],w7={key:1},x7=E("hr",{class:"my-6 border-t border-gray-300"},null,-1),_7=E("h3",{class:"mb-3 text-base font-semibold text-gray-900 dark:text-white"}," Modes of Payment ",-1),S7=E("h3",{class:"mb-3 text-sm font-semibold text-gray-900 dark:text-white"}," Payment Reconciliation ",-1),E7={class:"relative overflow-x-auto shadow-md sm:rounded-lg"},C7={class:"w-full text-left text-sm text-gray-500 dark:text-gray-400"},k7=E("thead",{class:"bg-gray-50 text-base font-semibold uppercase text-gray-900 dark:text-white"},[E("tr",null,[E("th",{scope:"col",class:"px-6 py-3"},"Mode of Payment"),E("th",{scope:"col",class:"px-6 py-3 text-center"},"Opening Amount"),E("th",{scope:"col",class:"px-6 py-3 text-center"},"Closing Amount"),E("th",{scope:"col",class:"px-6 py-3"})])],-1),A7={scope:"row",class:"whitespace-nowrap px-6 py-4 font-medium text-gray-900 dark:text-white"},P7={class:"px-6 py-4 text-center font-medium text-gray-900 dark:text-white"},D7=["onUpdate:modelValue"],T7={class:"px-6 py-4 text-center font-medium text-gray-900 dark:text-white"},F7={class:"px-6 py-4"},O7=["onClick"],I7=E("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25",height:"25",fill:"currentColor border",class:"bi bi-trash",viewBox:"0 0 16 16"},[E("path",{d:"M5.5 5.5A.5.5 0 0 1 6 6v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5Zm2.5 0a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-1 0V6a.5.5 0 0 1 .5-.5Zm3 .5a.5.5 0 0 0-1 0v6a.5.5 0 0 0 1 0V6Z"}),E("path",{d:"M14.5 3a1 1 0 0 1-1 1H13v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V4h-.5a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1H6a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1h3.5a1 1 0 0 1 1 1v1ZM4.118 4 4 4.059V13a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1V4.059L11.882 4H4.118ZM2.5 3h11V2h-11v1Z"})],-1),R7=[I7],N7=E("hr",{class:"my-6 border-t border-gray-300"},null,-1),M7=E("h3",{class:"text-base font-semibold text-gray-900 dark:text-white"},"Totals",-1),B7={class:"mb-6 mt-6 grid gap-6 md:grid-cols-2"},$7=E("label",{for:"grandTotal",class:"mb-2 block text-sm font-medium text-gray-900 dark:text-white"}," Grand Total",-1),H7=E("label",{for:"totalInvoices",class:"mb-2 block text-sm font-medium text-gray-900 dark:text-white"},"Total Invoices",-1),j7=E("label",{for:"netTotak",class:"mb-2 block text-sm font-medium text-gray-900 dark:text-white"},"Net Total",-1),L7=E("label",{for:"totalQty",class:"mb-2 block text-sm font-medium text-gray-900 dark:text-white"},"Total Quantity",-1),V7=E("hr",{class:"my-6 border-t border-gray-300"},null,-1),U7={key:2,class:"fixed inset-0 mt-20 z-10 overflow-y-auto bg-gray-100"},q7={class:"mt-3 flex items-center justify-center"},K7={class:"w-full rounded-lg bg-white p-6 shadow-lg md:max-w-md"},Y7={class:"flex items-center justify-between"},z7=E("h3",{class:"text-xl text-gray-900 dark:text-white"},"Confirm",-1),W7=E("span",{class:"sr-only"},"Close",-1),G7=E("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M6 18L18 6M6 6l12 12"},null,-1),J7=[G7],X7={class:"mt-5 block text-left text-base text-gray-900 dark:text-white"},Z7={class:"flex justify-end"};function Q7(e,t,r,n,s,i){const a=$t("Badge"),o=$t("date-picker");return j(),V(De,null,[E("div",II,[E("div",RI,[NI,this.posClose.isPosClose!==null?(j(),nn(a,{key:0,type:this.posClose.getBadgeType()},{default:zt(()=>[E("span",MI,be(this.posClose.getBadgeText()),1)]),_:1},8,["type"])):ae("",!0)]),E("div",BI,[this.posClose.posClosing?(j(),V("button",{key:0,onClick:t[0]||(t[0]=u=>this.posClose.savePosClosing()),class:"rounded-md bg-blue-500 px-4 py-2 text-white hover:bg-blue-600 focus:outline-none"}," Save ")):ae("",!0),this.posClose.posCloseSaved?(j(),V("button",{key:1,onClick:t[1]||(t[1]=u=>this.posClose.showSumbitPosCloseModal()),class:"rounded-md bg-blue-500 px-4 py-2 text-white hover:bg-blue-600 focus:outline-none"}," Submit ")):ae("",!0)])]),$I,E("div",HI,[E("div",null,[jI,_e(E("input",{"onUpdate:modelValue":t[2]||(t[2]=u=>this.posClose.startDate=u),readonly:"",class:"block w-full rounded-md border border-gray-300 text-sm text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-blue-500 dark:focus:ring-blue-500",type:"text"},null,512),[[ke,this.posClose.startDate]])]),E("div",null,[LI,_e(E("input",{"onUpdate:modelValue":t[3]||(t[3]=u=>this.posClose.postingDate=u),readonly:"",class:"block w-full rounded-md border border-gray-300 text-sm text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-blue-500 dark:focus:ring-blue-500",type:"text"},null,512),[[ke,this.posClose.postingDate]])]),E("div",null,[VI,K(o,{value:this.posClose.periodEndDate,"onUpdate:value":t[4]||(t[4]=u=>this.posClose.periodEndDate=u),"default-value":new Date,class:"my-custom-date-picker",type:"datetime"},null,8,["value","default-value"])]),E("div",null,[UI,K(o,{value:this.posClose.postingTime,"onUpdate:value":t[5]||(t[5]=u=>this.posClose.postingTime=u),"default-value":this.posClose.postingTime,type:"time",class:"my-custom-time-picker"},null,8,["value","default-value"])]),E("div",qI,[E("div",KI,[YI,_e(E("input",{type:"text",id:"posOpen",class:"block w-full rounded-md border border-gray-300 text-sm text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-blue-500 dark:focus:ring-blue-500","onUpdate:modelValue":t[6]||(t[6]=u=>this.posClose.selectedPosOpenEntry=u),onClick:t[7]||(t[7]=u=>this.posClose.selectPosOpen()),required:""},null,512),[[ke,this.posClose.selectedPosOpenEntry]]),this.posClose.showPosOpen?(j(),V("div",zI,[(j(!0),V(De,null,ht(this.posClose.posOpenEntries,(u,l)=>(j(),V("div",{class:"h-10 rounded-lg p-2 hover:bg-gray-100",key:l,onClick:h=>this.posClose.selectPos(u)},[E("h1",GI,be(u.name),1)],8,WI))),128))],512)):ae("",!0)],512)])]),JI,XI,E("div",ZI,[E("div",QI,[e7,_e(E("input",{type:"text",id:"company","onUpdate:modelValue":t[8]||(t[8]=u=>this.invoiceData.company=u),class:"block w-full rounded-md border border-gray-300 text-sm text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-blue-500 dark:focus:ring-blue-500",required:""},null,512),[[ke,this.invoiceData.company]])]),E("div",t7,[E("div",r7,[n7,_e(E("input",{type:"text",id:"posProfile",class:"block w-full rounded-md border border-gray-300 text-sm text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-blue-500 dark:focus:ring-blue-500","onUpdate:modelValue":t[9]||(t[9]=u=>this.invoiceData.posProfile=u),required:""},null,512),[[ke,this.invoiceData.posProfile]])]),E("div",null,[s7,_e(E("input",{type:"text",id:"cashier","onUpdate:modelValue":t[10]||(t[10]=u=>this.posClose.cashier=u),class:"block w-full rounded-md border border-gray-300 text-sm text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-blue-500 dark:focus:ring-blue-500",required:""},null,512),[[ke,this.posClose.cashier]])])])]),this.posClose.invoiceDetails.length>0?(j(),V("div",i7,[a7,o7,u7,E("div",l7,[E("table",c7,[h7,E("tbody",null,[(j(!0),V(De,null,ht(n.posClose.invoiceDetails,(u,l)=>(j(),V("tr",{class:"border-b bg-white dark:border-gray-700 dark:bg-gray-900",key:l},[E("th",f7,be(u.name),1),E("td",d7,be(u.modified.split(" ")[0]),1),E("td",p7,[_e(E("input",{type:"number",id:"amount",name:"amount","onUpdate:modelValue":h=>u.grand_total=h,class:"border-none text-center"},null,8,g7),[[ke,u.grand_total]])]),E("td",m7,[E("button",{class:"p-2 text-center",type:"button",onClick:h=>this.posClose.deleteRow(l)},b7,8,v7)])]))),128))])])])])):ae("",!0),this.posClose.openingBalance.length>0?(j(),V("div",w7,[x7,_7,S7,E("div",E7,[E("table",C7,[k7,E("tbody",null,[(j(!0),V(De,null,ht(n.posClose.openingBalance,(u,l)=>(j(),V("tr",{class:"border-b bg-white dark:border-gray-700 dark:bg-gray-900",key:l},[E("th",A7,be(u.mode_of_payment),1),E("td",P7,[_e(E("input",{type:"number",id:"amount",name:"amount","onUpdate:modelValue":h=>u.opening_amount=h,class:"border-none text-center"},null,8,D7),[[ke,u.opening_amount]])]),E("td",T7,[_e(E("input",{type:"number",id:"amount",name:"amount","onUpdate:modelValue":t[11]||(t[11]=h=>this.posClose.closingAmount=h),class:"border-none text-center"},null,512),[[ke,this.posClose.closingAmount]])]),E("td",F7,[E("button",{class:"p-2 text-center",type:"button",onClick:h=>this.posClose.deleteRow(l)},R7,8,O7)])]))),128))])])])])):ae("",!0),N7,M7,E("div",B7,[E("div",null,[$7,_e(E("input",{type:"text",id:"grandTotal","onUpdate:modelValue":t[12]||(t[12]=u=>this.posClose.grandTotal=u),class:"b block w-full rounded-md border border-gray-300 text-sm text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-blue-500 dark:focus:ring-blue-500",required:""},null,512),[[ke,this.posClose.grandTotal]])]),E("div",null,[H7,_e(E("input",{type:"text",id:"totalInvoices","onUpdate:modelValue":t[13]||(t[13]=u=>this.posClose.totalInvoices=u),class:"block w-full rounded-md border border-gray-300 text-sm text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-blue-500 dark:focus:ring-blue-500",required:""},null,512),[[ke,this.posClose.totalInvoices]])]),E("div",null,[j7,_e(E("input",{type:"text",id:"netTotak",class:"block w-full rounded-md border border-gray-300 text-sm text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-blue-500 dark:focus:ring-blue-500","onUpdate:modelValue":t[14]||(t[14]=u=>this.posClose.netTotal=u),required:""},null,512),[[ke,this.posClose.netTotal]])]),E("div",null,[L7,_e(E("input",{type:"text",id:"totalQty",class:"block w-full rounded-md border border-gray-300 text-sm text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-blue-500 dark:focus:ring-blue-500","onUpdate:modelValue":t[15]||(t[15]=u=>this.posClose.totalQty=u),required:""},null,512),[[ke,this.posClose.totalQty]])])]),V7,this.posClose.showSumbitPosclose?(j(),V("div",U7,[E("div",q7,[E("div",K7,[E("div",Y7,[z7,W7,(j(),V("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-5 w-5 cursor-pointer",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",onClick:t[16]||(t[16]=u=>this.posClose.showSumbitPosclose=!1)},J7))]),E("h3",X7," Permanently Submit"+be(this.posClose.posClosingEntry)+"? ",1),E("div",Z7,[E("button",{onClick:t[17]||(t[17]=u=>this.posClose.showSumbitPosclose=!1),class:"mr-3 mt-6 rounded border border-gray-300 bg-gray-50 px-3 py-2"}," No "),E("button",{onClick:t[18]||(t[18]=u=>this.posClose.sumbitPosClosing()),class:"mt-6 rounded bg-blue-500 px-3 py-2 text-white hover:bg-blue-600"}," Yes ")])])])])):ae("",!0)],64)}const eR=cr(OI,[["render",Q7]]),tR=[{path:"/",name:"Table",component:td},{path:"/Table",name:"Table",component:td},{path:"/Customer",name:"Customer",component:gk},{path:"/Menu",name:"Menu",component:i8},{path:"/Cart",name:"Cart",component:tA},{path:"/recentOrder",name:"recentOrder",component:pO},{path:"/PosOpen",name:"posOpen",component:FI},{path:"/PosClose",name:"posClose",component:eR},...Yb],ft=Lb({history:nb("/urypos/"),routes:tR}),ws=Cr("table",{state:()=>({tables:[],selectedTable:null,previousOrderdItem:[],invoiceNo:"",alert:Bn(),previousOrder:[],previousOrderdCustomer:"",invoiceData:lr(),grandTotal:"",notification:na(),selectedOption:"",isTakeAway:"",showModal:!1,newTable:"",showTable:!1,searchTable:[],menu:gs(),tableMenu:[],activeDropdown:null,currentCaptain:null,tableName:"",showModalCaptainTransfer:!1,showCaptain:!1,captain:[],previousWaiter:null,newCaptain:"",invoicePrinted:"",auth:jt(),call:Dt.call(),db:Dt.db(),totalMinutes:null,invoiceNumber:null,modifiedTime:null}),getters:{filteredTables(e){return e.tables.filter(t=>t.is_take_away===0)},takeAway(e){return e.tables.filter(t=>t.is_take_away===1)}},actions:{fetchTable(){this.selectedOption="Table",this.db.getDocList("URY Table",{fields:["name","occupied","latest_invoice_time","is_take_away"],limit:"*"}).then(e=>{this.tables=e.sort((t,r)=>t.name.localeCompare(r.name,void 0,{numeric:!0,sensitivity:"base"}))}).catch(e=>console.error(e))},tableSearch(){this.db.getDocList("URY Table",{filters:[["occupied","like","0%"]]}).then(e=>{this.searchTable=e}).catch(e=>{})},fetchCaptain(){this.db.getDocList("User",{fields:["name"],limit:"*"}).then(e=>{this.captain=e}).catch(e=>console.error(e))},toggleDropdown(e){return Se(this,null,function*(){this.tableName=e,this.activeDropdown===e?this.activeDropdown=null:this.activeDropdown=e,yield this.invoiceNumberFetching()})},hideDropdown(){this.activeDropdown=null},selectTable(e){this.newTable=e.name,this.showTable=!1},selectcaptain(e){this.newCaptain=e.name,this.showCaptain=!1},getTimeDifference(e){const t=new Date;let r="00:00:00";e&&e.occupied===1&&e.latest_invoice_time&&(r=e.latest_invoice_time);const[n,s,i]=r.split(":"),a=new Date(t.getFullYear(),t.getMonth(),t.getDate(),n,s,i),o=t-a,u=Math.floor(o/1e3),l=Math.floor(u/60);return`${Math.floor(l/60)}:${l%60}`},getBadgeType(e){if(e.occupied!=1&&e.name!==this.selectedTable)return"green";if(e.name===this.selectedTable)return"default";if(e.occupied===1&&e.name!==this.selectedTable){const t=this.getTimeDifference(e),[r,n]=t.split(":");return parseInt(r)*60+parseInt(n)>60?"red":"yellow"}},getBadgeText(e){if(e.occupied!=1&&e.name!==this.selectedTable)return"Free";if(e.name===this.selectedTable)return"Active";if(e.occupied===1&&e.name!==this.selectedTable){const t=this.getTimeDifference(e),[r,n]=t.split(":");return parseInt(r)*60+parseInt(n)>60?"Attention":"Occupied"}},addToSelectedTables(e){return Se(this,null,function*(){this.selectedTable=e.name,yield this.getMenu(),e.is_take_away===1&&(this.isTakeAway="Take Away");let t="";this.previousOrderdItem="",this.invoiceNo="";let r=this.tableMenu;r.forEach(i=>{i.qty=""});let n=this.menu.cart;n.splice(0,n.length);const s={table:this.selectedTable};this.call.get("ury.ury.doctype.ury_order.ury_order.get_order_invoice",s).then(i=>{this.previousOrder=i.message,this.invoicePrinted=this.previousOrder.invoice_printed,this.modifiedTime=this.previousOrder.modified,this.grandTotal=this.previousOrder.grand_total,this.invoiceNo=this.previousOrder.name,this.previousWaiter=this.previousOrder.waiter,this.invoiceNo?!this.auth.hasAccess&&!this.auth.cashier&&this.auth.sessionUser!==this.previousOrder.waiter?this.alert.createAlert("Message","Table is assigned to "+this.previousOrder.waiter,"OK").then(()=>{ft.push("/Table").then(()=>{window.location.reload()})}):this.notification.createNotification("Past Order Fetched"):ft.push("/Menu"),this.previousOrderdItem=this.previousOrder.items,this.previousOrderdCustomer=this.previousOrder.customer,t=this.previousOrder.no_of_pax;const a=su();this.previousOrderdCustomer?(a.search=this.previousOrderdCustomer,a.numberOfPax=t,a.fectchCustomerFavouriteItem()):(a.search="",a.numberOfPax="",a.customerFavouriteItems=""),r.forEach(o=>{const u=this.previousOrderdItem&&this.previousOrderdItem.find(l=>l.item_name===o.item_name);u&&!o.qty&&(n.findIndex(d=>d.item===o.item)!==-1||(o.qty=u.qty,o.comment="",n.push(o)))})}).catch(i=>console.error(i))})},routeToCart(e){this.addToSelectedTables(e),ft.push("/Cart")},routeToMenu(e){this.addToSelectedTables(e),ft.push("/Menu")},getMenu(){return Se(this,null,function*(){const e={table:this.selectedTable,pos_profile:this.invoiceData.posProfile};try{yield this.call.get("ury.ury_pos.api.getRestaurantMenu",e).then(t=>{this.tableMenu=t.message,this.menu.fetchItems()})}catch(t){if(t._server_messages){const r=JSON.parse(t._server_messages),n=JSON.parse(r[0]);this.alert.createAlert("Message",n.message,"OK")}}})},invoiceNumberFetching(){return Se(this,null,function*(){const e={table:this.tableName};try{const t=yield this.call.get("ury.ury.doctype.ury_order.ury_order.get_order_invoice",e);this.invoiceNumber=t.message.name,this.currentCaptain=t.message.waiter}catch(t){console.error(t._server_messages)}})},tableTransfer:function(){return Se(this,null,function*(){yield this.invoiceNumberFetching();const e={table:this.tableName,newTable:this.newTable,invoice:this.invoiceNumber};this.call.post("ury.ury.doctype.ury_order.ury_order.table_transfer",e).then(()=>{window.location.reload()}).catch(t=>console.error(t))})},captianTransfer:function(){return Se(this,null,function*(){if(yield this.invoiceNumberFetching(),this.invoiceNumber){const e={currentCaptain:this.currentCaptain,newCaptain:this.newCaptain,invoice:this.invoiceNumber};this.call.post("ury.ury.doctype.ury_order.ury_order.captain_transfer",e).then(()=>this.notification.createNotification("Captain Transferred Successfully")).then(()=>window.location.reload()).catch(t=>console.error(t))}})}}});qo.defaults.baseURL=Dt.url;const jt=Cr("auth",{state:()=>({userId:"",currentPassword:"",showPassword:!1,table:ws(),menu:gs(),invoiceData:lr(),cashier:null,restrictTableOrder:null,alert:Bn(),sessionUser:"",userAuth:localStorage.getItem("userAuth"),activeDropdown:!1,userName:"",removeTableOrderItem:null,hasAccess:!1,isPosOpen:!0,viewAllStatus:null,userRole:[],auth:Dt.auth(),db:Dt.db(),call:Dt.call()}),getters:{isAuthenticated(e){e.isAuthenticated},passwordFieldType(){return this.showPassword?"text":"password"}},actions:{login(){this.auth.loginWithUsernamePassword({username:this.userId,password:this.currentPassword,device:"mobile"}).then(()=>{this.userAuth=!0,localStorage.setItem("userAuth","true"),ft.push("/Table").then(()=>{window.location.reload()})}).catch(e=>this.alert.createAlert("Message",e.message,"OK"))},checkAuthState(){this.userAuth&&localStorage.getItem("userAuth")&&(this.userAuth=!0)},getLoginAvatar(){const e=this.sessionUser.indexOf("@");return e>-1?this.userName=this.sessionUser.substring(0,e):this.userName="",this.userName},fetchUserDetails(){this.auth.getLoggedInUser().then(e=>{if(this.sessionUser=e,!this.sessionUser)this.userAuth=!1,localStorage.removeItem("userAuth","true");else{this.userAuth=!0,ft.push("/Table"),this.table.fetchTable(),this.invoiceData.fetchInvoiceDetails().then(()=>{this.fetchUserRole()});const r=window.location.href.split("/");r[r.length-1]!=="login"&&this.isPosOpenChecking()}}).catch(e=>{this.userAuth=!1,localStorage.removeItem("userAuth","true"),ft.push("/login"),console.error(e)})},fetchUserRole(){this.db.getDoc("User",this.sessionUser).then(e=>{this.userRole=e.roles.map(r=>r.role);const t={doctype:"POS Profile",name:this.invoiceData.posProfile};this.call.get("frappe.client.get",t).then(r=>{var n=r.message.role_allowed_for_billing.map(a=>a.role);this.cashier=n.some(a=>this.userRole.includes(a)),this.cashier&&this.menu.fetchItems();var s=r.message.transfer_role_permissions.map(a=>a.role);this.hasAccess=s.some(a=>this.userRole.includes(a));var i=r.message.role_restricted_for_table_order.map(a=>a.role);this.restrictTableOrder=i.some(a=>this.userRole.includes(a)),this.viewAllStatus=r.message.view_all_status,this.removeTableOrderItem=r.message.remove_items}).catch(r=>console.error(r))}).catch(e=>console.error(e))},isPosOpenChecking(){this.call.get("ury.ury_pos.api.posOpening").then(e=>{const r=JSON.parse(e._server_messages)[0],s=JSON.parse(r).message;this.isPosOpen=!1,this.alert.createAlert("Message",s,"OK")}).catch(e=>{})},toggleDropdown(){this.activeDropdown?this.hideDropdown():this.activeDropdown=!0},hideDropdown(){this.activeDropdown=!1},logOut(){this.auth.logout().then(()=>{ft.push("/login").then(()=>{window.location.reload()}),localStorage.removeItem("userAuth","true"),B6()}).catch(e=>console.error(e))}}}),rR=Cr("tabClick",{state:()=>({auth:jt(),activeTab:null}),getters:{isLoginPage(){return ft.currentRoute.value.path==="/login"},currentTab(){return ft.currentRoute.value.path}},actions:{}}),nR={name:"Bottom Tabs",setup(){const e=jt(),t=rR();return{auth:e,tabClick:t}}},sR={key:0,class:"fixed bottom-0 left-0 z-50 h-16 w-full border-t border-gray-200 bg-white dark:border-gray-600 dark:bg-gray-700",id:"tab"},iR=E("path",{d:"M5 3a2 2 0 00-2 2v2a2 2 0 002 2h2a2 2 0 002-2V5a2 2 0 00-2-2H5zM5 11a2 2 0 00-2 2v2a2 2 0 002 2h2a2 2 0 002-2v-2a2 2 0 00-2-2H5zM11 5a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2V5zM11 13a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2v-2z"},null,-1),aR=[iR],oR=E("path",{d:"M9 2a1 1 0 000 2h2a1 1 0 100-2H9z"},null,-1),uR=E("path",{"fill-rule":"evenodd",d:"M4 5a2 2 0 012-2 3 3 0 003 3h2a3 3 0 003-3 2 2 0 012 2v11a2 2 0 01-2 2H6a2 2 0 01-2-2V5zm3 4a1 1 0 000 2h.01a1 1 0 100-2H7zm3 0a1 1 0 000 2h3a1 1 0 100-2h-3zm-3 4a1 1 0 100 2h.01a1 1 0 100-2H7zm3 0a1 1 0 100 2h3a1 1 0 100-2h-3z","clip-rule":"evenodd"},null,-1),lR=[oR,uR],cR=E("path",{"fill-rule":"evenodd",d:"M10 9a3 3 0 100-6 3 3 0 000 6zm-7 9a7 7 0 1114 0H3z","clip-rule":"evenodd"},null,-1),hR=[cR],fR=E("path",{d:"M3 1a1 1 0 000 2h1.22l.305 1.222a.997.997 0 00.01.042l1.358 5.43-.893.892C3.74 11.846 4.632 14 6.414 14H15a1 1 0 000-2H6.414l1-1H14a1 1 0 00.894-.553l3-6A1 1 0 0017 3H6.28l-.31-1.243A1 1 0 005 1H3zM16 16.5a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0zM6.5 18a1.5 1.5 0 100-3 1.5 1.5 0 000 3z"},null,-1),dR=[fR],pR=E("path",{d:"M14.066 0H7v5a2 2 0 0 1-2 2H0v11a1.97 1.97 0 0 0 1.934 2h12.132A1.97 1.97 0 0 0 16 18V2a1.97 1.97 0 0 0-1.934-2Zm-3 15H4.828a1 1 0 0 1 0-2h6.238a1 1 0 0 1 0 2Zm0-4H4.828a1 1 0 0 1 0-2h6.238a1 1 0 1 1 0 2Z"},null,-1),gR=E("path",{d:"M5 5V.13a2.96 2.96 0 0 0-1.293.749L.879 3.707A2.98 2.98 0 0 0 .13 5H5Z"},null,-1),mR=[pR,gR];function vR(e,t,r,n,s,i){const a=$t("router-link");return this.tabClick.isLoginPage?ae("",!0):(j(),V("div",sR,[E("div",{class:Ee(["mx-auto grid h-full max-w-lg font-medium",[{"grid-cols-4":!n.auth.cashier,"grid-cols-5":n.auth.cashier}]])},[K(a,{to:"/Table",class:"group inline-flex flex-col items-center justify-center border-x border-gray-200 px-5 hover:bg-gray-50 dark:border-gray-600 dark:hover:bg-gray-800"},{default:zt(()=>[(j(),V("svg",{class:Ee(["h-6 w-6 group-hover:text-blue-600 dark:text-gray-400 dark:group-hover:text-blue-500",[{"text-gray-500":this.tabClick.currentTab!=="/Table","text-blue-600":this.tabClick.currentTab==="/Table"}]]),fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},aR,2)),E("span",{class:Ee(["text-sm group-hover:text-blue-600 dark:text-gray-400 dark:group-hover:text-blue-500",[{"text-gray-500":this.tabClick.currentTab!=="/Table","text-blue-600":this.tabClick.currentTab==="/Table"}]])},"Table",2)]),_:1}),K(a,{to:"/Menu",class:"group inline-flex flex-col items-center justify-center border-r border-gray-200 px-5 hover:bg-gray-50 dark:border-gray-600 dark:hover:bg-gray-800"},{default:zt(()=>[(j(),V("svg",{class:Ee(["h-6 w-6 group-hover:text-blue-600 dark:text-gray-400 dark:group-hover:text-blue-500",[{"text-gray-500":this.tabClick.currentTab!=="/Menu","text-blue-600":this.tabClick.currentTab==="/Menu"}]]),fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},lR,2)),E("span",{class:Ee(["text-sm group-hover:text-blue-600 dark:text-gray-400 dark:group-hover:text-blue-500",[{"text-gray-500":this.tabClick.currentTab!=="/Menu","text-blue-600":this.tabClick.currentTab==="/Menu"}]])},"Menu",2)]),_:1}),K(a,{to:"/Customer",class:"group inline-flex flex-col items-center justify-center px-5 hover:bg-gray-50 dark:hover:bg-gray-800",onClick:t[0]||(t[0]=o=>this.tabClick.activeTab="Customer")},{default:zt(()=>[(j(),V("svg",{class:Ee(["h-6 w-6 group-hover:text-blue-600 dark:text-gray-400 dark:group-hover:text-blue-500",[{"text-gray-500":this.tabClick.currentTab!=="/Customer","text-blue-600":this.tabClick.currentTab==="/Customer"}]]),fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},hR,2)),E("span",{class:Ee(["text-sm group-hover:text-blue-600 dark:text-gray-400 dark:group-hover:text-blue-500",[{"text-gray-500":this.tabClick.currentTab!=="/Customer","text-blue-600":this.tabClick.currentTab==="/Customer"}]])},"Customer",2)]),_:1}),K(a,{to:"/Cart",class:"group inline-flex flex-col items-center justify-center border-x border-gray-200 px-5 hover:bg-gray-50 dark:border-gray-600 dark:hover:bg-gray-800",onClick:t[1]||(t[1]=o=>this.tabClick.activeTab="Cart")},{default:zt(()=>[(j(),V("svg",{"aria-hidden":"true",class:Ee([[{"text-gray-500":this.tabClick.currentTab!=="/Cart","text-blue-600":this.tabClick.currentTab==="/Cart"}],"h-6 w-6 group-hover:text-blue-600 dark:text-gray-400 dark:group-hover:text-blue-500"]),fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},dR,2)),E("span",{class:Ee(["text-sm group-hover:text-blue-600 dark:text-gray-400 dark:group-hover:text-blue-500",[{"text-gray-500":this.tabClick.currentTab!=="/Cart","text-blue-600":this.tabClick.currentTab==="/Cart"}]])},"Order",2)]),_:1}),this.auth.cashier?(j(),nn(a,{key:0,to:"/recentOrder",class:"group inline-flex flex-col items-center justify-center border-x border-gray-200 px-5 hover:bg-gray-50 dark:border-gray-600 dark:hover:bg-gray-800",onClick:t[2]||(t[2]=o=>this.tabClick.activeTab="recentOrder")},{default:zt(()=>[(j(),V("svg",{class:Ee(["h-5 w-5 group-hover:text-blue-600 dark:text-gray-400 dark:group-hover:text-blue-500",[{"text-gray-500":this.tabClick.currentTab!=="/recentOrder","text-blue-600":this.tabClick.currentTab==="/recentOrder"}]]),fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},mR,2)),E("span",{class:Ee(["text-sm group-hover:text-blue-600 dark:text-gray-400 dark:group-hover:text-blue-500",[{"text-gray-500":this.tabClick.currentTab!=="/recentOrder","text-blue-600":this.tabClick.currentTab==="/recentOrder"}]])},"OrderLog",2)]),_:1})):ae("",!0)],2)]))}const yR=cr(nR,[["render",vR]]),bR="/assets/ury_pos/urypos/assets/URY_POS-6ddda452.jpg",wR={name:"Header",setup(){const e=jt(),t=dm(),r=jm();return{auth:e,posOpen:t,posClose:r}},data(){return{imagePath:bR}},computed:{isLoginPage(){return this.$route.path==="/login"}}},xR={class:"mb-12 lg:mb-16 border-2 border-b-gray-200 border-l-white border-r-white border-t-white p-2"},_R={class:"fixed left-0 top-0 z-20 w-full border-b border-gray-200 bg-white dark:border-gray-600 dark:bg-gray-900"},SR={class:"mx-auto flex max-w-screen-2xl flex-wrap items-center justify-between p-4"},ER={href:"/urypos/Table"},CR=["src"],kR={key:0},AR={key:0,class:"relative inline-flex h-8 lg:h-11 lg:w-11 w-8 items-center justify-center overflow-hidden rounded-full bg-gray-100 dark:bg-gray-600"},PR={class:"font-medium text-gray-900 dark:text-gray-300"},DR={key:1,class:"relative inline-flex h-9 w-9 lg:h-11 lg:w-11 items-center justify-center overflow-hidden rounded-full bg-gray-100 dark:bg-gray-600"},TR={class:"font-medium text-gray-900 dark:text-gray-300"},FR={class:"absolute right-4 lg:right-auto mt-11 w-36 divide-y divide-gray-100 rounded-lg bg-white text-left shadow dark:bg-gray-700"},OR={class:"block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 dark:text-gray-200 dark:hover:bg-gray-600 dark:hover:text-white"};function IR(e,t,r,n,s,i){return j(),V("div",xR,[E("nav",_R,[E("div",SR,[E("div",null,[E("a",ER,[E("img",{src:s.imagePath,alt:"Flowbite logo",class:"w-32 lg:w-44"},null,8,CR)])]),i.isLoginPage?ae("",!0):(j(),V("div",kR,[E("button",{type:"button",class:"flex rounded-full bg-gray-400 text-sm focus:ring-4 focus:ring-gray-300 dark:focus:ring-gray-400 md:mr-0",id:"user-menu-button","aria-expanded":"false","data-dropdown-toggle":"user-dropdown","data-dropdown-placement":"bottom",onClick:t[1]||(t[1]=a=>this.auth.toggleDropdown()),ref:"dropdownButton"},[this.auth.sessionUser.includes("_")?(j(),V("div",AR,[E("span",PR,be(this.auth.sessionUser.charAt(0).toUpperCase())+be(this.auth.sessionUser.charAt(this.auth.sessionUser.indexOf("_")+1).toUpperCase()),1)])):(j(),V("div",DR,[E("span",TR,be(this.auth.sessionUser.charAt(0).toUpperCase()),1)])),_e(E("div",FR,[E("ul",null,[E("li",null,[E("h1",OR,be(this.auth.getLoginAvatar()),1)]),E("li",null,[E("a",{href:"#",class:"block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 dark:text-gray-200 dark:hover:bg-gray-600 dark:hover:text-white",onClick:t[0]||(t[0]=(...a)=>this.auth.logOut&&this.auth.logOut(...a))},"Log Out")])])],512),[[oc,this.auth.activeDropdown]])],512)]))])])])}const RR=cr(wR,[["render",IR]]),NR={name:"App",components:{Tabs:yR,Header:RR},setup(){return{auth:jt()}},mounted(){this.auth.fetchUserDetails()},computed:{isLoginPage(){return this.$route.path==="/"}}},MR={class:"container mx-auto p-4 mb-16"};function BR(e,t,r,n,s,i){const a=$t("Header"),o=$t("router-view"),u=$t("Tabs");return j(),V(De,null,[K(a),E("div",MR,[K(o)]),K(u)],64)}const $R=cr(NR,[["render",BR]]);function _o(e,t){return Se(this,null,function*(){t||(t={});let r={Accept:"application/json","Content-Type":"application/json; charset=utf-8","X-Frappe-Site-Name":window.location.hostname};window.csrf_token&&window.csrf_token!=="{{ csrf_token }}"&&(r["X-Frappe-CSRF-Token"]=window.csrf_token),s(this,"RequestStarted",null);const n=yield fetch(`/api/method/${e}`,{method:"POST",headers:r,body:JSON.stringify(t)});if(n.ok){s(this,null,null);const i=yield n.json();return i.docs||e==="login"?i:i.message}else{let i=yield n.text(),a,o;try{a=JSON.parse(i)}catch(h){}let u=[[e,a.exc_type,a._error_message].filter(Boolean).join(" ")];if(a.exc){o=a.exc;try{o=JSON.parse(o)[0]}catch(h){}u.push(o)}let l=new Error(u.join(` -`));throw l.exc_type=a.exc_type,l.exc=o,l.messages=a._server_messages?JSON.parse(a._server_messages):[],l.messages=l.messages.concat(a.message),l.messages=l.messages.map(h=>{try{return JSON.parse(h).message}catch(d){return h}}),l.messages=l.messages.filter(Boolean),l.messages.length||(l.messages=a._error_message?[a._error_message]:["Internal Server Error"]),s(this,null,l.messages.join(` -`)),[401,403].includes(n.status)&&ft.currentRoute.name!=="Login"&&ft.push("/login"),l}function s(i,a,o){(i==null?void 0:i.state)!==void 0&&(i.state=a),(i==null?void 0:i.errorMessage)!==void 0&&(i.errorMessage=o)}})}class HR{constructor(t,r){this._vm=t,this._watchers=[];let n=Nr({});for(let s in r){let i=r[s];if(typeof i=="function")this._watchers.push([()=>i.call(t),(a,o)=>this.updateResource(s,a,o),{immediate:!0,deep:!0,flush:"sync"}]);else{let a=new Vd(t,i);n[s]=tt(a),a.auto&&a.reload()}}this.resources=n}init(){this._watchers=this._watchers.map(t=>this._vm.$watch(...t))}destroy(){const t=this._vm;delete t._rm}updateResource(t,r,n){let s;t in this.resources?s=this.resources[t]:(s=Nr(new Vd(this._vm,r)),this.resources[t]=s);let i=s.data;n&&s&&s.cancel(),s.update(r),s.keepData&&(s.data=i),s.auto&&s.reload()}}class Vd{constructor(t,r={}){if(typeof r=="string"&&(r={method:r,auto:!0}),!r.method)throw new Error("[Resource Manager]: method is required to define a resource");this._vm=t,this.method=r.method,this.delay=r.delay||0,this.update(r)}update(t){if(typeof t=="string"&&(t={method:t,auto:!0}),this.method&&t.method&&t.method!==this.method)throw new Error("[Resource Manager]: method cannot change for the same resource");this.options=t,this.params=t.params||null,this.auto=t.auto||!1,this.keepData=t.keepData||!1,this.condition=t.condition||(()=>!0),this.paged=t.paged||!1,this.validate=t.validate||null,this.validate&&(this.validate=this.validate.bind(this._vm)),this.listeners=Object.create(null),this.onceListeners=Object.create(null);let r=Object.keys(t).filter(n=>n.startsWith("on"));if(r.length>0)for(const n of r)this.on(n,t[n]);this.reset()}fetch(t){return Se(this,null,function*(){if(this.condition()){if(this.loading=!0,this.currentParams=t||this.params,this.validate){let r=yield this.validate();if(r){this.setError(r),this.loading=!1;return}}try{let r=yield _o(this.method,this.currentParams);this.delay&&(yield new Promise(n=>setTimeout(n,this.delay*1e3))),Array.isArray(r)&&this.paged?(this.lastPageEmpty=r.length===0,this.data=[].concat(this.data||[],r)):this.data=r,this.emit("Success",this.data)}catch(r){let n=r.messages||["Internal Server Error"];this.setError(n.join(` -`))}this.lastLoaded=new Date,this.loading=!1,this.currentParams=null}})}reload(){return this.fetch()}submit(t){return this.fetch(t)}reset(){this.data=this.options.default||null,this.error=null,this.loading=!1,this.lastLoaded=null,this.lastPageEmpty=!1,this.currentParams=null}cancel(){}setError(t){this.error=t,this.emit("Error",this.error)}on(t,r){return this.listeners[t]=(this.listeners[t]||[]).concat(r),this}once(t,r){return this.onceListeners[t]=(this.onceListeners[t]||[]).concat(r),this}emit(t,...r){let n="on"+t,s=this._vm;(this.listeners[n]||[]).forEach(a=>{i(a)}),(this.onceListeners[n]||[]).forEach(a=>{i(a),this.onceListeners[n].splice(this.onceListeners[n].indexOf(a),1)});function i(a){try{a.call(s,...r)}catch(o){console.error(o)}}}}let jR={beforeCreate(){const e=this.$options;if(!e.resources||e._rm)return;let t;if(typeof e.resources=="function"&&(e.resources=e.resources.call(this)),VR(e.resources)){const r=e.resources,{$options:n}=r,s=Ss(r,["$options"]);t=new HR(this,s)}else throw new Error("[ResourceManager]: resources options should be an object or a function that returns object");Object.prototype.hasOwnProperty.call(this,"$resources")||(this.$resources=Nr(t.resources)),Object.keys(e.resources).forEach(n=>{Gu(e.computed,n)||Gu(e.props,n)||Gu(e.methods,n)||(e.computed||(e.computed={}),e.computed[n]=e.resources[n])}),this._rm=t},data(){return this._rm?{$rm:this._rm,$r:this._rm.resources,$resources:this._rm.resources}:{}},created(){this._rm&&this._rm.init()}};function LR(e){e.mixin(jR)}function VR(e){return typeof e=="object"&&e&&Object.prototype.toString(e)==="[object Object]"}function Gu(e,t){return t in(e||{})}var Lm={exports:{}};/*! - * Socket.IO v2.5.0 - * (c) 2014-2021 Guillermo Rauch - * Released under the MIT License. - */(function(e,t){(function(r,n){e.exports=n()})(Ye,function(){return function(r){function n(i){if(s[i])return s[i].exports;var a=s[i]={exports:{},id:i,loaded:!1};return r[i].call(a.exports,a,a.exports,n),a.loaded=!0,a.exports}var s={};return n.m=r,n.c=s,n.p="",n(0)}([function(r,n,s){function i(d,c){(typeof d=="undefined"?"undefined":a(d))==="object"&&(c=d,d=void 0),c=c||{};var f,p=o(d),g=p.source,m=p.id,y=p.path,x=h[m]&&y in h[m].nsps,C=c.forceNew||c["force new connection"]||c.multiplex===!1||x;return C?f=l(g,c):(h[m]||(h[m]=l(g,c)),f=h[m]),p.query&&!c.query&&(c.query=p.query),f.socket(p.path,c)}var a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},o=s(1),u=s(4),l=s(9);s(3)("socket.io-client"),r.exports=n=i;var h=n.managers={};n.protocol=u.protocol,n.connect=i,n.Manager=s(9),n.Socket=s(34)},function(r,n,s){function i(o,u){var l=o;u=u||typeof location!="undefined"&&location,o==null&&(o=u.protocol+"//"+u.host),typeof o=="string"&&(o.charAt(0)==="/"&&(o=o.charAt(1)==="/"?u.protocol+o:u.host+o),/^(https?|wss?):\/\//.test(o)||(o=typeof u!="undefined"?u.protocol+"//"+o:"https://"+o),l=a(o)),l.port||(/^(http|ws)$/.test(l.protocol)?l.port="80":/^(http|ws)s$/.test(l.protocol)&&(l.port="443")),l.path=l.path||"/";var h=l.host.indexOf(":")!==-1,d=h?"["+l.host+"]":l.host;return l.id=l.protocol+"://"+d+":"+l.port,l.href=l.protocol+"://"+d+(u&&u.port===l.port?"":":"+l.port),l}var a=s(2);s(3)("socket.io-client:url"),r.exports=i},function(r,n){function s(u,l){var h=/\/{2,9}/g,d=l.replace(h,"/").split("/");return l.substr(0,1)!="/"&&l.length!==0||d.splice(0,1),l.substr(l.length-1,1)=="/"&&d.splice(d.length-1,1),d}function i(u,l){var h={};return l.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(d,c,f){c&&(h[c]=f)}),h}var a=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,o=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];r.exports=function(u){var l=u,h=u.indexOf("["),d=u.indexOf("]");h!=-1&&d!=-1&&(u=u.substring(0,h)+u.substring(h,d).replace(/:/g,";")+u.substring(d,u.length));for(var c=a.exec(u||""),f={},p=14;p--;)f[o[p]]=c[p]||"";return h!=-1&&d!=-1&&(f.source=l,f.host=f.host.substring(1,f.host.length-1).replace(/;/g,":"),f.authority=f.authority.replace("[","").replace("]","").replace(/;/g,":"),f.ipv6uri=!0),f.pathNames=s(f,f.path),f.queryKey=i(f,f.query),f}},function(r,n){r.exports=function(){return function(){}}},function(r,n,s){function i(){}function a(C){var A=""+C.type;if(n.BINARY_EVENT!==C.type&&n.BINARY_ACK!==C.type||(A+=C.attachments+"-"),C.nsp&&C.nsp!=="/"&&(A+=C.nsp+","),C.id!=null&&(A+=C.id),C.data!=null){var P=o(C.data);if(P===!1)return x;A+=P}return A}function o(C){try{return JSON.stringify(C)}catch(A){return!1}}function u(C,A){function P(b){var S=g.deconstructPacket(b),_=a(S.packet),w=S.buffers;w.unshift(_),A(w)}g.removeBlobs(C,P)}function l(){this.reconstructor=null}function h(C){var A=0,P={type:Number(C.charAt(0))};if(n.types[P.type]==null)return f("unknown packet type "+P.type);if(n.BINARY_EVENT===P.type||n.BINARY_ACK===P.type){for(var b="";C.charAt(++A)!=="-"&&(b+=C.charAt(A),A!=C.length););if(b!=Number(b)||C.charAt(A)!=="-")throw new Error("Illegal attachments");P.attachments=Number(b)}if(C.charAt(A+1)==="/")for(P.nsp="";++A;){var S=C.charAt(A);if(S===","||(P.nsp+=S,A===C.length))break}else P.nsp="/";var _=C.charAt(A+1);if(_!==""&&Number(_)==_){for(P.id="";++A;){var S=C.charAt(A);if(S==null||Number(S)!=S){--A;break}if(P.id+=C.charAt(A),A===C.length)break}P.id=Number(P.id)}if(C.charAt(++A)){var w=d(C.substr(A)),k=w!==!1&&(P.type===n.ERROR||m(w));if(!k)return f("invalid payload");P.data=w}return P}function d(C){try{return JSON.parse(C)}catch(A){return!1}}function c(C){this.reconPack=C,this.buffers=[]}function f(C){return{type:n.ERROR,data:"parser error: "+C}}var p=(s(3)("socket.io-parser"),s(5)),g=s(6),m=s(7),y=s(8);n.protocol=4,n.types=["CONNECT","DISCONNECT","EVENT","ACK","ERROR","BINARY_EVENT","BINARY_ACK"],n.CONNECT=0,n.DISCONNECT=1,n.EVENT=2,n.ACK=3,n.ERROR=4,n.BINARY_EVENT=5,n.BINARY_ACK=6,n.Encoder=i,n.Decoder=l;var x=n.ERROR+'"encode error"';i.prototype.encode=function(C,A){if(n.BINARY_EVENT===C.type||n.BINARY_ACK===C.type)u(C,A);else{var P=a(C);A([P])}},p(l.prototype),l.prototype.add=function(C){var A;if(typeof C=="string")A=h(C),n.BINARY_EVENT===A.type||n.BINARY_ACK===A.type?(this.reconstructor=new c(A),this.reconstructor.reconPack.attachments===0&&this.emit("decoded",A)):this.emit("decoded",A);else{if(!y(C)&&!C.base64)throw new Error("Unknown type: "+C);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");A=this.reconstructor.takeBinaryData(C),A&&(this.reconstructor=null,this.emit("decoded",A))}},l.prototype.destroy=function(){this.reconstructor&&this.reconstructor.finishedReconstruction()},c.prototype.takeBinaryData=function(C){if(this.buffers.push(C),this.buffers.length===this.reconPack.attachments){var A=g.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),A}return null},c.prototype.finishedReconstruction=function(){this.reconPack=null,this.buffers=[]}},function(r,n,s){function i(o){if(o)return a(o)}function a(o){for(var u in i.prototype)o[u]=i.prototype[u];return o}r.exports=i,i.prototype.on=i.prototype.addEventListener=function(o,u){return this._callbacks=this._callbacks||{},(this._callbacks["$"+o]=this._callbacks["$"+o]||[]).push(u),this},i.prototype.once=function(o,u){function l(){this.off(o,l),u.apply(this,arguments)}return l.fn=u,this.on(o,l),this},i.prototype.off=i.prototype.removeListener=i.prototype.removeAllListeners=i.prototype.removeEventListener=function(o,u){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var l=this._callbacks["$"+o];if(!l)return this;if(arguments.length==1)return delete this._callbacks["$"+o],this;for(var h,d=0;d0&&!this.encoding){var m=this.packetBuffer.shift();this.packet(m)}},i.prototype.cleanup=function(){for(var m=this.subs.length,y=0;y=this._reconnectionAttempts)this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1;else{var y=this.backoff.duration();this.reconnecting=!0;var x=setTimeout(function(){m.skipReconnect||(m.emitAll("reconnect_attempt",m.backoff.attempts),m.emitAll("reconnecting",m.backoff.attempts),m.skipReconnect||m.open(function(C){C?(m.reconnecting=!1,m.reconnect(),m.emitAll("reconnect_error",C.data)):m.onreconnect()}))},y);this.subs.push({destroy:function(){clearTimeout(x)}})}},i.prototype.onreconnect=function(){var m=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",m)}},function(r,n,s){r.exports=s(11),r.exports.parser=s(19)},function(r,n,s){function i(f,p){return this instanceof i?(p=p||{},f&&typeof f=="object"&&(p=f,f=null),f?(f=d(f),p.hostname=f.host,p.secure=f.protocol==="https"||f.protocol==="wss",p.port=f.port,f.query&&(p.query=f.query)):p.host&&(p.hostname=d(p.host).host),this.secure=p.secure!=null?p.secure:typeof location!="undefined"&&location.protocol==="https:",p.hostname&&!p.port&&(p.port=this.secure?"443":"80"),this.agent=p.agent||!1,this.hostname=p.hostname||(typeof location!="undefined"?location.hostname:"localhost"),this.port=p.port||(typeof location!="undefined"&&location.port?location.port:this.secure?443:80),this.query=p.query||{},typeof this.query=="string"&&(this.query=c.decode(this.query)),this.upgrade=p.upgrade!==!1,this.path=(p.path||"/engine.io").replace(/\/$/,"")+"/",this.forceJSONP=!!p.forceJSONP,this.jsonp=p.jsonp!==!1,this.forceBase64=!!p.forceBase64,this.enablesXDR=!!p.enablesXDR,this.withCredentials=p.withCredentials!==!1,this.timestampParam=p.timestampParam||"t",this.timestampRequests=p.timestampRequests,this.transports=p.transports||["polling","websocket"],this.transportOptions=p.transportOptions||{},this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.policyPort=p.policyPort||843,this.rememberUpgrade=p.rememberUpgrade||!1,this.binaryType=null,this.onlyBinaryUpgrades=p.onlyBinaryUpgrades,this.perMessageDeflate=p.perMessageDeflate!==!1&&(p.perMessageDeflate||{}),this.perMessageDeflate===!0&&(this.perMessageDeflate={}),this.perMessageDeflate&&this.perMessageDeflate.threshold==null&&(this.perMessageDeflate.threshold=1024),this.pfx=p.pfx||null,this.key=p.key||null,this.passphrase=p.passphrase||null,this.cert=p.cert||null,this.ca=p.ca||null,this.ciphers=p.ciphers||null,this.rejectUnauthorized=p.rejectUnauthorized===void 0||p.rejectUnauthorized,this.forceNode=!!p.forceNode,this.isReactNative=typeof navigator!="undefined"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",(typeof self=="undefined"||this.isReactNative)&&(p.extraHeaders&&Object.keys(p.extraHeaders).length>0&&(this.extraHeaders=p.extraHeaders),p.localAddress&&(this.localAddress=p.localAddress)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingIntervalTimer=null,this.pingTimeoutTimer=null,void this.open()):new i(f,p)}function a(f){var p={};for(var g in f)f.hasOwnProperty(g)&&(p[g]=f[g]);return p}var o=s(12),u=s(5),l=(s(3)("engine.io-client:socket"),s(33)),h=s(19),d=s(2),c=s(27);r.exports=i,i.priorWebsocketSuccess=!1,u(i.prototype),i.protocol=h.protocol,i.Socket=i,i.Transport=s(18),i.transports=s(12),i.parser=s(19),i.prototype.createTransport=function(f){var p=a(this.query);p.EIO=h.protocol,p.transport=f;var g=this.transportOptions[f]||{};this.id&&(p.sid=this.id);var m=new o[f]({query:p,socket:this,agent:g.agent||this.agent,hostname:g.hostname||this.hostname,port:g.port||this.port,secure:g.secure||this.secure,path:g.path||this.path,forceJSONP:g.forceJSONP||this.forceJSONP,jsonp:g.jsonp||this.jsonp,forceBase64:g.forceBase64||this.forceBase64,enablesXDR:g.enablesXDR||this.enablesXDR,withCredentials:g.withCredentials||this.withCredentials,timestampRequests:g.timestampRequests||this.timestampRequests,timestampParam:g.timestampParam||this.timestampParam,policyPort:g.policyPort||this.policyPort,pfx:g.pfx||this.pfx,key:g.key||this.key,passphrase:g.passphrase||this.passphrase,cert:g.cert||this.cert,ca:g.ca||this.ca,ciphers:g.ciphers||this.ciphers,rejectUnauthorized:g.rejectUnauthorized||this.rejectUnauthorized,perMessageDeflate:g.perMessageDeflate||this.perMessageDeflate,extraHeaders:g.extraHeaders||this.extraHeaders,forceNode:g.forceNode||this.forceNode,localAddress:g.localAddress||this.localAddress,requestTimeout:g.requestTimeout||this.requestTimeout,protocols:g.protocols||void 0,isReactNative:this.isReactNative});return m},i.prototype.open=function(){var f;if(this.rememberUpgrade&&i.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)f="websocket";else{if(this.transports.length===0){var p=this;return void setTimeout(function(){p.emit("error","No transports available")},0)}f=this.transports[0]}this.readyState="opening";try{f=this.createTransport(f)}catch(g){return this.transports.shift(),void this.open()}f.open(),this.setTransport(f)},i.prototype.setTransport=function(f){var p=this;this.transport&&this.transport.removeAllListeners(),this.transport=f,f.on("drain",function(){p.onDrain()}).on("packet",function(g){p.onPacket(g)}).on("error",function(g){p.onError(g)}).on("close",function(){p.onClose("transport close")})},i.prototype.probe=function(f){function p(){if(S.onlyBinaryUpgrades){var _=!this.supportsBinary&&S.transport.supportsBinary;b=b||_}b||(P.send([{type:"ping",data:"probe"}]),P.once("packet",function(w){if(!b)if(w.type==="pong"&&w.data==="probe"){if(S.upgrading=!0,S.emit("upgrading",P),!P)return;i.priorWebsocketSuccess=P.name==="websocket",S.transport.pause(function(){b||S.readyState!=="closed"&&(A(),S.setTransport(P),P.send([{type:"upgrade"}]),S.emit("upgrade",P),P=null,S.upgrading=!1,S.flush())})}else{var k=new Error("probe error");k.transport=P.name,S.emit("upgradeError",k)}}))}function g(){b||(b=!0,A(),P.close(),P=null)}function m(_){var w=new Error("probe error: "+_);w.transport=P.name,g(),S.emit("upgradeError",w)}function y(){m("transport closed")}function x(){m("socket closed")}function C(_){P&&_.name!==P.name&&g()}function A(){P.removeListener("open",p),P.removeListener("error",m),P.removeListener("close",y),S.removeListener("close",x),S.removeListener("upgrading",C)}var P=this.createTransport(f,{probe:1}),b=!1,S=this;i.priorWebsocketSuccess=!1,P.once("open",p),P.once("error",m),P.once("close",y),this.once("close",x),this.once("upgrading",C),P.open()},i.prototype.onOpen=function(){if(this.readyState="open",i.priorWebsocketSuccess=this.transport.name==="websocket",this.emit("open"),this.flush(),this.readyState==="open"&&this.upgrade&&this.transport.pause)for(var f=0,p=this.upgrades.length;f1?{type:P[T],data:_.substring(1)}:{type:P[T]}:b}var D=new Uint8Array(_),T=D[0],M=p(_,1);return S&&w==="blob"&&(M=new S([M])),{type:P[T],data:M}},n.decodeBase64Packet=function(_,w){var k=P[_.charAt(0)];if(!d)return{type:k,data:{base64:!0,data:_.substr(1)}};var D=d.decode(_.substr(1));return w==="blob"&&S&&(D=new S([D])),{type:k,data:D}},n.encodePayload=function(_,w,k){function D(F){return F.length+":"+F}function T(F,I){n.encodePacket(F,!!M&&w,!1,function(N){I(null,D(N))})}typeof w=="function"&&(k=w,w=null);var M=f(_);return w&&M?S&&!C?n.encodePayloadAsBlob(_,k):n.encodePayloadAsArrayBuffer(_,k):_.length?void h(_,T,function(F,I){return k(I.join(""))}):k("0:")},n.decodePayload=function(_,w,k){if(typeof _!="string")return n.decodePayloadAsBinary(_,w,k);typeof w=="function"&&(k=w,w=null);var D;if(_==="")return k(b,0,1);for(var T,M,F="",I=0,N=_.length;I0;){for(var M=new Uint8Array(D),F=M[0]===0,I="",N=1;M[N]!==255;N++){if(I.length>310)return k(b,0,1);I+=M[N]}D=p(D,2+I.length),I=parseInt(I);var $=p(D,0,I);if(F)try{$=String.fromCharCode.apply(null,new Uint8Array($))}catch(fe){var re=new Uint8Array($);$="";for(var N=0;No&&(a=o),i>=o||i>=a||o===0)return new ArrayBuffer(0);for(var u=new Uint8Array(s),l=new Uint8Array(a-i),h=i,d=0;h=55296&&x<=56319&&P65535&&(x-=65536,P+=m(x>>>10&1023|55296),x=56320|1023&x),P+=m(x);return P}function a(y,x){if(y>=55296&&y<=57343){if(x)throw Error("Lone surrogate U+"+y.toString(16).toUpperCase()+" is not a scalar value");return!1}return!0}function o(y,x){return m(y>>x&63|128)}function u(y,x){if(!(4294967168&y))return m(y);var C="";return 4294965248&y?4294901760&y?!(4292870144&y)&&(C=m(y>>18&7|240),C+=o(y,12),C+=o(y,6)):(a(y,x)||(y=65533),C=m(y>>12&15|224),C+=o(y,6)):C=m(y>>6&31|192),C+=m(63&y|128)}function l(y,x){x=x||{};for(var C,A=x.strict!==!1,P=s(y),b=P.length,S=-1,_="";++S=p)throw Error("Invalid byte index");var y=255&f[g];if(g++,(192&y)==128)return 63&y;throw Error("Invalid continuation byte")}function d(y){var x,C,A,P,b;if(g>p)throw Error("Invalid byte index");if(g==p)return!1;if(x=255&f[g],g++,(128&x)==0)return x;if((224&x)==192){if(C=h(),b=(31&x)<<6|C,b>=128)return b;throw Error("Invalid continuation byte")}if((240&x)==224){if(C=h(),A=h(),b=(15&x)<<12|C<<6|A,b>=2048)return a(b,y)?b:65533;throw Error("Invalid continuation byte")}if((248&x)==240&&(C=h(),A=h(),P=h(),b=(7&x)<<18|C<<12|A<<6|P,b>=65536&&b<=1114111))return b;throw Error("Invalid UTF-8 detected")}function c(y,x){x=x||{};var C=x.strict!==!1;f=s(y),p=f.length,g=0;for(var A,P=[];(A=d(C))!==!1;)P.push(A);return i(P)}/*! https://mths.be/utf8js v2.1.2 by @mathias */var f,p,g,m=String.fromCharCode;r.exports={version:"2.1.2",encode:l,decode:c}},function(r,n){(function(s){n.encode=function(i){var a,o=new Uint8Array(i),u=o.length,l="";for(a=0;a>2],l+=s[(3&o[a])<<4|o[a+1]>>4],l+=s[(15&o[a+1])<<2|o[a+2]>>6],l+=s[63&o[a+2]];return u%3===2?l=l.substring(0,l.length-1)+"=":u%3===1&&(l=l.substring(0,l.length-2)+"=="),l},n.decode=function(i){var a,o,u,l,h,d=.75*i.length,c=i.length,f=0;i[i.length-1]==="="&&(d--,i[i.length-2]==="="&&d--);var p=new ArrayBuffer(d),g=new Uint8Array(p);for(a=0;a>4,g[f++]=(15&u)<<4|l>>2,g[f++]=(3&l)<<6|63&h;return p}})("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/")},function(r,n){function s(d){return d.map(function(c){if(c.buffer instanceof ArrayBuffer){var f=c.buffer;if(c.byteLength!==f.byteLength){var p=new Uint8Array(c.byteLength);p.set(new Uint8Array(f,c.byteOffset,c.byteLength)),f=p.buffer}return f}return c})}function i(d,c){c=c||{};var f=new o;return s(d).forEach(function(p){f.append(p)}),c.type?f.getBlob(c.type):f.getBlob()}function a(d,c){return new Blob(s(d),c||{})}var o=typeof o!="undefined"?o:typeof WebKitBlobBuilder!="undefined"?WebKitBlobBuilder:typeof MSBlobBuilder!="undefined"?MSBlobBuilder:typeof MozBlobBuilder!="undefined"&&MozBlobBuilder,u=function(){try{var d=new Blob(["hi"]);return d.size===2}catch(c){return!1}}(),l=u&&function(){try{var d=new Blob([new Uint8Array([1,2])]);return d.size===2}catch(c){return!1}}(),h=o&&o.prototype.append&&o.prototype.getBlob;typeof Blob!="undefined"&&(i.prototype=Blob.prototype,a.prototype=Blob.prototype),r.exports=function(){return u?l?Blob:a:h?i:void 0}()},function(r,n){n.encode=function(s){var i="";for(var a in s)s.hasOwnProperty(a)&&(i.length&&(i+="&"),i+=encodeURIComponent(a)+"="+encodeURIComponent(s[a]));return i},n.decode=function(s){for(var i={},a=s.split("&"),o=0,u=a.length;o0);return p}function i(f){var p=0;for(c=0;c';x=document.createElement(b)}catch(S){x=document.createElement("iframe"),x.name=y.iframeId,x.src="javascript:0"}x.id=y.iframeId,y.form.appendChild(x),y.iframe=x}var y=this;if(!this.form){var x,C=document.createElement("form"),A=document.createElement("textarea"),P=this.iframeId="eio_iframe_"+this.index;C.className="socketio",C.style.position="absolute",C.style.top="-1000px",C.style.left="-1000px",C.target=P,C.method="POST",C.setAttribute("accept-charset","utf-8"),A.name="d",C.appendChild(A),document.body.appendChild(C),this.form=C,this.area=A}this.form.action=this.uri(),m(),f=f.replace(c,`\\ -`),this.area.value=f.replace(d,"\\n");try{this.form.submit()}catch(b){}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){y.iframe.readyState==="complete"&&g()}:this.iframe.onload=g}},function(r,n,s){function i(p){var g=p&&p.forceBase64;g&&(this.supportsBinary=!1),this.perMessageDeflate=p.perMessageDeflate,this.usingBrowserWebSocket=a&&!p.forceNode,this.protocols=p.protocols,this.usingBrowserWebSocket||(f=o),u.call(this,p)}var a,o,u=s(18),l=s(19),h=s(27),d=s(28),c=s(29);if(s(3)("engine.io-client:websocket"),typeof WebSocket!="undefined"?a=WebSocket:typeof self!="undefined"&&(a=self.WebSocket||self.MozWebSocket),typeof window=="undefined")try{o=s(32)}catch(p){}var f=a||o;r.exports=i,d(i,u),i.prototype.name="websocket",i.prototype.supportsBinary=!0,i.prototype.doOpen=function(){if(this.check()){var p=this.uri(),g=this.protocols,m={};this.isReactNative||(m.agent=this.agent,m.perMessageDeflate=this.perMessageDeflate,m.pfx=this.pfx,m.key=this.key,m.passphrase=this.passphrase,m.cert=this.cert,m.ca=this.ca,m.ciphers=this.ciphers,m.rejectUnauthorized=this.rejectUnauthorized),this.extraHeaders&&(m.headers=this.extraHeaders),this.localAddress&&(m.localAddress=this.localAddress);try{this.ws=this.usingBrowserWebSocket&&!this.isReactNative?g?new f(p,g):new f(p):new f(p,g,m)}catch(y){return this.emit("error",y)}this.ws.binaryType===void 0&&(this.supportsBinary=!1),this.ws.supports&&this.ws.supports.binary?(this.supportsBinary=!0,this.ws.binaryType="nodebuffer"):this.ws.binaryType="arraybuffer",this.addEventListeners()}},i.prototype.addEventListeners=function(){var p=this;this.ws.onopen=function(){p.onOpen()},this.ws.onclose=function(){p.onClose()},this.ws.onmessage=function(g){p.onData(g.data)},this.ws.onerror=function(g){p.onError("websocket error",g)}},i.prototype.write=function(p){function g(){m.emit("flush"),setTimeout(function(){m.writable=!0,m.emit("drain")},0)}var m=this;this.writable=!1;for(var y=p.length,x=0,C=y;x0&&i.jitter<=1?i.jitter:0,this.attempts=0}r.exports=s,s.prototype.duration=function(){var i=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var a=Math.random(),o=Math.floor(a*this.jitter*i);i=1&Math.floor(10*a)?i+o:i-o}return 0|Math.min(i,this.max)},s.prototype.reset=function(){this.attempts=0},s.prototype.setMin=function(i){this.ms=i},s.prototype.setMax=function(i){this.max=i},s.prototype.setJitter=function(i){this.jitter=i}}])})})(Lm);var UR=Lm.exports;const qR=f0(UR);let KR=window.location.hostname,Vm=window.location.port?":9000":"",YR=Vm?"http":"https",zR=`${YR}://${KR}${Vm}`,WR=qR(zR);class GR{constructor(){this.isLoggedIn=!1,this.user=null,this.user_image=null,this.cookie=null,this.cookie=Object.fromEntries(document.cookie.split("; ").map(t=>t.split("=")).map(t=>[t[0],decodeURIComponent(t[1])])),this.isLoggedIn=this.cookie.user_id&&this.cookie.user_id!=="Guest"}login(t,r){return Se(this,null,function*(){let n=yield _o("login",{usr:t,pwd:r});return n?(this.isLoggedIn=!0,n):!1})}logout(){return Se(this,null,function*(){yield _o("logout"),this.isLoggedIn=!1,window.location.reload()})}resetPassword(t){return Se(this,null,function*(){console.log("resetting password")})}}const JR=Ry(),xs=Fy($R),XR=Nr(new GR);xs.use(ft);xs.use(JR);xs.use(LR);xs.provide("$auth",XR);xs.provide("$call",_o);xs.provide("$socket",WR);ft.beforeEach((e,t,r)=>{const s=jt().userAuth;e.name!=="Login"&&!s?r({name:"Login"}):e.name==="Login"&&s?r({name:"Table"}):r()});xs.mount("#app");export{cr as _,E as a,_e as b,V as c,QR as d,j as o,jt as u,ke as v,ky as w}; diff --git a/ury_pos/public/urypos/index.html b/ury_pos/public/urypos/index.html index 9291d9f..d1f5779 100644 --- a/ury_pos/public/urypos/index.html +++ b/ury_pos/public/urypos/index.html @@ -5,8 +5,8 @@ URY POS - - + +
diff --git a/ury_pos/www/urypos.html b/ury_pos/www/urypos.html index 9291d9f..d1f5779 100644 --- a/ury_pos/www/urypos.html +++ b/ury_pos/www/urypos.html @@ -5,8 +5,8 @@ URY POS - - + +
diff --git a/urypos/src/stores/invoiceData.js b/urypos/src/stores/invoiceData.js index d081540..5a6b9d5 100644 --- a/urypos/src/stores/invoiceData.js +++ b/urypos/src/stores/invoiceData.js @@ -96,7 +96,8 @@ export const useInvoiceDataStore = defineStore("invoiceData", { const customerName = customers.search; const numberOfPax = customers.numberOfPax; let invoice = - this.recentOrders.invoiceNumber || this.table.invoiceNo || null; + this.recentOrders.draftInvoice || this.table.invoiceNo || null; + let lastInvoice=this.invoiceNumber || this.recentOrders.draftInvoice || this.table.invoiceNo || null selectedTables = this.table.selectedTable || this.recentOrders.restaurantTable; @@ -121,7 +122,7 @@ export const useInvoiceDataStore = defineStore("invoiceData", { last_modified_time: this.table.modifiedTime, pos_profile: this.posProfile, invoice: invoice, - last_invoice: invoice, + last_invoice: lastInvoice, comments:this.menu.comments }; if (!this.auth.cashier && !numberOfPax) {