cnhis-design-vue 2.1.137 → 2.1.140
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +36 -4
- package/es/age/index.js +2 -2
- package/es/big-table/index.js +51 -50
- package/es/big-table/style.css +1 -1
- package/es/button/index.js +66 -50
- package/es/button/style.css +1 -1
- package/es/captcha/index.js +3 -3
- package/es/card-reader-sdk/index.js +1 -1
- package/es/checkbox/index.js +1 -1
- package/es/color-picker/index.js +1 -1
- package/es/drag-layout/index.js +3 -3
- package/es/editor/index.js +1 -1
- package/es/ellipsis/index.js +1 -1
- package/es/fabric-chart/index.js +66 -61
- package/es/fabric-chart/style.css +1 -1
- package/es/form-table/index.js +20 -20
- package/es/full-calendar/index.js +4 -4
- package/es/index/index.js +458 -402
- package/es/index/style.css +1 -1
- package/es/input/index.js +1 -1
- package/es/map/index.js +1 -1
- package/es/multi-chat/index.js +25 -25
- package/es/multi-chat-client/index.js +19 -19
- package/es/multi-chat-history/index.js +4 -4
- package/es/multi-chat-record/index.js +4 -4
- package/es/multi-chat-setting/index.js +20 -20
- package/es/multi-chat-sip/index.js +1 -1
- package/es/radio/index.js +1 -1
- package/es/scale-container/index.js +1 -1
- package/es/scale-view/index.js +59 -52
- package/es/scale-view/style.css +1 -1
- package/es/select/index.js +4 -4
- package/es/select-label/index.js +3 -3
- package/es/select-person/index.js +33 -27
- package/es/select-person/style.css +1 -1
- package/es/select-tag/index.js +4 -4
- package/es/shortcut-setter/index.js +2 -2
- package/es/slider-tree/index.js +1 -1
- package/es/table-filter/index.js +160 -123
- package/es/table-filter/style.css +1 -1
- package/es/tag/index.js +1 -1
- package/es/verification-code/index.js +2 -2
- package/lib/cui.common.js +587 -531
- package/lib/cui.umd.js +587 -531
- package/lib/cui.umd.min.js +28 -28
- package/package.json +1 -1
- package/packages/big-table/src/BigTable.vue +1 -0
- package/packages/button/src/ButtonPrint/index.vue +8 -3
- package/packages/button/src/ButtonPrint/js/print.es.min.js +1 -1
- package/packages/button/src/ButtonPrint/js/print.es.min1.js +1 -3
- package/packages/fabric-chart/src/components/TimeScaleValue.vue +2 -2
- package/packages/fabric-chart/src/fabric-chart/FabricCanvas.vue +4 -4
- package/packages/fabric-chart/src/fabric-chart/FabricTextGroup.vue +3 -2
- package/packages/scale-view/scaleView.vue +7 -2
- package/packages/select-person/select-person.vue +6 -1
- package/packages/table-filter/src/components/render-widget/components/CheckboxGroup.vue +2 -0
- package/packages/table-filter/src/components/render-widget/index.vue +5 -1
- package/packages/table-filter/src/components/render-widget/widgetCfgMaps.js +11 -0
|
@@ -1,3 +1 @@
|
|
|
1
|
-
import t from"axios/dist/axios.min.js";function e(){
|
|
2
|
-
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
3
|
-
e=function(){return t};var t={},r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function s(t,e,r,n){var o=e&&e.prototype instanceof p?e:p,i=Object.create(o.prototype),a=new S(n||[]);return i._invoke=function(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=x(a,r);if(u){if(u===l)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var c=f(t,e,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}(t,r,a),i}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var l={};function p(){}function h(){}function d(){}var v={};c(v,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(_([])));y&&y!==r&&n.call(y,i)&&(v=y);var g=d.prototype=p.prototype=Object.create(v);function b(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function r(o,i,a,u){var c=f(t[o],t,i);if("throw"!==c.type){var s=c.arg,l=s.value;return l&&"object"==typeof l&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,u)}),(function(t){r("throw",t,a,u)})):e.resolve(l).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,u)}))}u(c.arg)}var o;this._invoke=function(t,n){function i(){return new e((function(e,o){r(t,n,e,o)}))}return o=o?o.then(i,i):i()}}function x(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method))return l;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var n=f(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,l;var o=n.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,l):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,l)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function _(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=d,c(g,"constructor",d),c(d,"constructor",h),h.displayName=c(d,u,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,c(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(w.prototype),c(w.prototype,a,(function(){return this})),t.AsyncIterator=w,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new w(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(g),c(g,u,"Generator"),c(g,i,(function(){return this})),c(g,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=_,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),c=n.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,l):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),l},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),O(r),l}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;O(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:_(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),l}},t}function r(t,e,r,n,o,i,a){try{var u=t[i](a),c=u.value}catch(t){return void r(t)}u.done?e(c):Promise.resolve(c).then(n,o)}function n(t){return function(){var e=this,n=arguments;return new Promise((function(o,i){var a=t.apply(e,n);function u(t){r(a,o,i,u,c,"next",t)}function c(t){r(a,o,i,u,c,"throw",t)}u(void 0)}))}}function o(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function i(t,e){if(t!==e)throw new TypeError("Cannot instantiate an arrow function")}var a="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function u(t,e){return t(e={exports:{}},e.exports),e.exports}var c,s,f=function(t){return t&&t.Math==Math&&t},l=f("object"==typeof globalThis&&globalThis)||f("object"==typeof window&&window)||f("object"==typeof self&&self)||f("object"==typeof a&&a)||function(){return this}()||Function("return this")(),p=function(t){try{return!!t()}catch(t){return!0}},h=!p((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),d=!p((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),v=Function.prototype.call,m=d?v.bind(v):function(){return v.apply(v,arguments)},y={}.propertyIsEnumerable,g=Object.getOwnPropertyDescriptor,b={f:g&&!y.call({1:2},1)?function(t){var e=g(this,t);return!!e&&e.enumerable}:y},w=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},x=Function.prototype,E=x.bind,O=x.call,S=d&&E.bind(O,O),_=d?function(t){return t&&S(t)}:function(t){return t&&function(){return O.apply(t,arguments)}},j=_({}.toString),I=_("".slice),k=function(t){return I(j(t),8,-1)},P=Object,R=_("".split),T=p((function(){return!P("z").propertyIsEnumerable(0)}))?function(t){return"String"==k(t)?R(t,""):P(t)}:P,C=TypeError,N=function(t){if(null==t)throw C("Can't call method on "+t);return t},D=function(t){return T(N(t))},L=function(t){return"function"==typeof t},A=function(t){return"object"==typeof t?null!==t:L(t)},M=function(t){return L(t)?t:void 0},F=function(t,e){return arguments.length<2?M(l[t]):l[t]&&l[t][e]},U=_({}.isPrototypeOf),H=F("navigator","userAgent")||"",G=l.process,q=l.Deno,B=G&&G.versions||q&&q.version,J=B&&B.v8;J&&(s=(c=J.split("."))[0]>0&&c[0]<4?1:+(c[0]+c[1])),!s&&H&&(!(c=H.match(/Edge\/(\d+)/))||c[1]>=74)&&(c=H.match(/Chrome\/(\d+)/))&&(s=+c[1]);var z=s,W=!!Object.getOwnPropertySymbols&&!p((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&z&&z<41})),Y=W&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Q=Object,K=Y?function(t){return"symbol"==typeof t}:function(t){var e=F("Symbol");return L(e)&&U(e.prototype,Q(t))},$=String,V=function(t){try{return $(t)}catch(t){return"Object"}},X=TypeError,Z=function(t){if(L(t))return t;throw X(V(t)+" is not a function")},tt=function(t,e){var r=t[e];return null==r?void 0:Z(r)},et=TypeError,rt=Object.defineProperty,nt=function(t,e){try{rt(l,t,{value:e,configurable:!0,writable:!0})}catch(r){l[t]=e}return e},ot=l["__core-js_shared__"]||nt("__core-js_shared__",{}),it=u((function(t){(t.exports=function(t,e){return ot[t]||(ot[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.24.1",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE",source:"https://github.com/zloirock/core-js"})})),at=Object,ut=function(t){return at(N(t))},ct=_({}.hasOwnProperty),st=Object.hasOwn||function(t,e){return ct(ut(t),e)},ft=0,lt=Math.random(),pt=_(1..toString),ht=function(t){return"Symbol("+(void 0===t?"":t)+")_"+pt(++ft+lt,36)},dt=it("wks"),vt=l.Symbol,mt=vt&&vt.for,yt=Y?vt:vt&&vt.withoutSetter||ht,gt=function(t){if(!st(dt,t)||!W&&"string"!=typeof dt[t]){var e="Symbol."+t;W&&st(vt,t)?dt[t]=vt[t]:dt[t]=Y&&mt?mt(e):yt(e)}return dt[t]},bt=TypeError,wt=gt("toPrimitive"),xt=function(t,e){if(!A(t)||K(t))return t;var r,n=tt(t,wt);if(n){if(void 0===e&&(e="default"),r=m(n,t,e),!A(r)||K(r))return r;throw bt("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var r,n;if("string"===e&&L(r=t.toString)&&!A(n=m(r,t)))return n;if(L(r=t.valueOf)&&!A(n=m(r,t)))return n;if("string"!==e&&L(r=t.toString)&&!A(n=m(r,t)))return n;throw et("Can't convert object to primitive value")}(t,e)},Et=function(t){var e=xt(t,"string");return K(e)?e:e+""},Ot=l.document,St=A(Ot)&&A(Ot.createElement),_t=function(t){return St?Ot.createElement(t):{}},jt=!h&&!p((function(){return 7!=Object.defineProperty(_t("div"),"a",{get:function(){return 7}}).a})),It=Object.getOwnPropertyDescriptor,kt={f:h?It:function(t,e){if(t=D(t),e=Et(e),jt)try{return It(t,e)}catch(t){}if(st(t,e))return w(!m(b.f,t,e),t[e])}},Pt=h&&p((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Rt=String,Tt=TypeError,Ct=function(t){if(A(t))return t;throw Tt(Rt(t)+" is not an object")},Nt=TypeError,Dt=Object.defineProperty,Lt=Object.getOwnPropertyDescriptor,At={f:h?Pt?function(t,e,r){if(Ct(t),e=Et(e),Ct(r),"function"==typeof t&&"prototype"===e&&"value"in r&&"writable"in r&&!r.writable){var n=Lt(t,e);n&&n.writable&&(t[e]=r.value,r={configurable:"configurable"in r?r.configurable:n.configurable,enumerable:"enumerable"in r?r.enumerable:n.enumerable,writable:!1})}return Dt(t,e,r)}:Dt:function(t,e,r){if(Ct(t),e=Et(e),Ct(r),jt)try{return Dt(t,e,r)}catch(t){}if("get"in r||"set"in r)throw Nt("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},Mt=h?function(t,e,r){return At.f(t,e,w(1,r))}:function(t,e,r){return t[e]=r,t},Ft=Function.prototype,Ut=h&&Object.getOwnPropertyDescriptor,Ht=st(Ft,"name"),Gt={EXISTS:Ht,PROPER:Ht&&"something"===function(){}.name,CONFIGURABLE:Ht&&(!h||h&&Ut(Ft,"name").configurable)},qt=_(Function.toString);L(ot.inspectSource)||(ot.inspectSource=function(t){return qt(t)});var Bt,Jt,zt,Wt=ot.inspectSource,Yt=l.WeakMap,Qt=L(Yt)&&/native code/.test(Wt(Yt)),Kt=it("keys"),$t=function(t){return Kt[t]||(Kt[t]=ht(t))},Vt={},Xt=l.TypeError,Zt=l.WeakMap;if(Qt||ot.state){var te=ot.state||(ot.state=new Zt),ee=_(te.get),re=_(te.has),ne=_(te.set);Bt=function(t,e){if(re(te,t))throw new Xt("Object already initialized");return e.facade=t,ne(te,t,e),e},Jt=function(t){return ee(te,t)||{}},zt=function(t){return re(te,t)}}else{var oe=$t("state");Vt[oe]=!0,Bt=function(t,e){if(st(t,oe))throw new Xt("Object already initialized");return e.facade=t,Mt(t,oe,e),e},Jt=function(t){return st(t,oe)?t[oe]:{}},zt=function(t){return st(t,oe)}}var ie={set:Bt,get:Jt,has:zt,enforce:function(t){return zt(t)?Jt(t):Bt(t,{})},getterFor:function(t){return function(e){var r;if(!A(e)||(r=Jt(e)).type!==t)throw Xt("Incompatible receiver, "+t+" required");return r}}},ae=u((function(t){var e=Gt.CONFIGURABLE,r=ie.enforce,n=ie.get,o=Object.defineProperty,i=h&&!p((function(){return 8!==o((function(){}),"length",{value:8}).length})),a=String(String).split("String"),u=t.exports=function(t,n,u){"Symbol("===String(n).slice(0,7)&&(n="["+String(n).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),u&&u.getter&&(n="get "+n),u&&u.setter&&(n="set "+n),(!st(t,"name")||e&&t.name!==n)&&(h?o(t,"name",{value:n,configurable:!0}):t.name=n),i&&u&&st(u,"arity")&&t.length!==u.arity&&o(t,"length",{value:u.arity});try{u&&st(u,"constructor")&&u.constructor?h&&o(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var c=r(t);return st(c,"source")||(c.source=a.join("string"==typeof n?n:"")),t};Function.prototype.toString=u((function(){return L(this)&&n(this).source||Wt(this)}),"toString")})),ue=function(t,e,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:e;if(L(r)&&ae(r,i,n),n.global)o?t[e]=r:nt(e,r);else{try{n.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=r:At.f(t,e,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return t},ce=Math.ceil,se=Math.floor,fe=Math.trunc||function(t){var e=+t;return(e>0?se:ce)(e)},le=function(t){var e=+t;return e!=e||0===e?0:fe(e)},pe=Math.max,he=Math.min,de=function(t,e){var r=le(t);return r<0?pe(r+e,0):he(r,e)},ve=Math.min,me=function(t){return t>0?ve(le(t),9007199254740991):0},ye=function(t){return me(t.length)},ge=function(t){return function(e,r,n){var o,i=D(e),a=ye(i),u=de(n,a);if(t&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===r)return t||u||0;return!t&&-1}},be={includes:ge(!0),indexOf:ge(!1)},we=be.indexOf,xe=_([].push),Ee=function(t,e){var r,n=D(t),o=0,i=[];for(r in n)!st(Vt,r)&&st(n,r)&&xe(i,r);for(;e.length>o;)st(n,r=e[o++])&&(~we(i,r)||xe(i,r));return i},Oe=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Se=Oe.concat("length","prototype"),_e={f:Object.getOwnPropertyNames||function(t){return Ee(t,Se)}},je={f:Object.getOwnPropertySymbols},Ie=_([].concat),ke=F("Reflect","ownKeys")||function(t){var e=_e.f(Ct(t)),r=je.f;return r?Ie(e,r(t)):e},Pe=function(t,e,r){for(var n=ke(e),o=At.f,i=kt.f,a=0;a<n.length;a++){var u=n[a];st(t,u)||r&&st(r,u)||o(t,u,i(e,u))}},Re=/#|\.prototype\./,Te=function(t,e){var r=Ne[Ce(t)];return r==Le||r!=De&&(L(e)?p(e):!!e)},Ce=Te.normalize=function(t){return String(t).replace(Re,".").toLowerCase()},Ne=Te.data={},De=Te.NATIVE="N",Le=Te.POLYFILL="P",Ae=Te,Me=kt.f,Fe=function(t,e){var r,n,o,i,a,u=t.target,c=t.global,s=t.stat;if(r=c?l:s?l[u]||nt(u,{}):(l[u]||{}).prototype)for(n in e){if(i=e[n],o=t.dontCallGetSet?(a=Me(r,n))&&a.value:r[n],!Ae(c?n:u+(s?".":"#")+n,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Pe(i,o)}(t.sham||o&&o.sham)&&Mt(i,"sham",!0),ue(r,n,i,t)}},Ue=_([].slice),He=Function,Ge=_([].concat),qe=_([].join),Be={},Je=function(t,e,r){if(!st(Be,e)){for(var n=[],o=0;o<e;o++)n[o]="a["+o+"]";Be[e]=He("C,a","return new C("+qe(n,",")+")")}return Be[e](t,r)},ze=d?He.bind:function(t){var e=Z(this),r=e.prototype,n=Ue(arguments,1),o=function(){var r=Ge(n,Ue(arguments));return this instanceof o?Je(e,r.length,r):e.apply(t,r)};return A(r)&&(o.prototype=r),o};Fe({target:"Function",proto:!0,forced:Function.bind!==ze},{bind:ze});var We,Ye=Object.keys||function(t){return Ee(t,Oe)},Qe=h&&!Pt?Object.defineProperties:function(t,e){Ct(t);for(var r,n=D(e),o=Ye(e),i=o.length,a=0;i>a;)At.f(t,r=o[a++],n[r]);return t},Ke={f:Qe},$e=F("document","documentElement"),Ve=$t("IE_PROTO"),Xe=function(){},Ze=function(t){return"<script>"+t+"<\/script>"},tr=function(t){t.write(Ze("")),t.close();var e=t.parentWindow.Object;return t=null,e},er=function(){try{We=new ActiveXObject("htmlfile")}catch(t){}var t,e;er="undefined"!=typeof document?document.domain&&We?tr(We):((e=_t("iframe")).style.display="none",$e.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(Ze("document.F=Object")),t.close(),t.F):tr(We);for(var r=Oe.length;r--;)delete er.prototype[Oe[r]];return er()};Vt[Ve]=!0;var rr=Object.create||function(t,e){var r;return null!==t?(Xe.prototype=Ct(t),r=new Xe,Xe.prototype=null,r[Ve]=t):r=er(),void 0===e?r:Ke.f(r,e)},nr=At.f,or=gt("unscopables"),ir=Array.prototype;null==ir[or]&&nr(ir,or,{configurable:!0,value:rr(null)});var ar,ur=be.includes;Fe({target:"Array",proto:!0,forced:p((function(){return!Array(1).includes()}))},{includes:function(t){return ur(this,t,arguments.length>1?arguments[1]:void 0)}}),ar="includes",ir[or][ar]=!0;var cr={};cr[gt("toStringTag")]="z";var sr="[object z]"===String(cr),fr=gt("toStringTag"),lr=Object,pr="Arguments"==k(function(){return arguments}()),hr=sr?k:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=lr(t),fr))?r:pr?k(e):"Object"==(n=k(e))&&L(e.callee)?"Arguments":n},dr=sr?{}.toString:function(){return"[object "+hr(this)+"]"};sr||ue(Object.prototype,"toString",dr,{unsafe:!0});var vr="process"==k(l.process),mr=String,yr=TypeError,gr=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=_(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return Ct(r),function(t){if("object"==typeof t||L(t))return t;throw yr("Can't set "+mr(t)+" as a prototype")}(n),e?t(r,n):r.__proto__=n,r}}():void 0),br=At.f,wr=gt("toStringTag"),xr=gt("species"),Er=TypeError,Or=function(){},Sr=[],_r=F("Reflect","construct"),jr=/^\s*(?:class|function)\b/,Ir=_(jr.exec),kr=!jr.exec(Or),Pr=function(t){if(!L(t))return!1;try{return _r(Or,Sr,t),!0}catch(t){return!1}},Rr=function(t){if(!L(t))return!1;switch(hr(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return kr||!!Ir(jr,Wt(t))}catch(t){return!0}};Rr.sham=!0;var Tr,Cr,Nr,Dr,Lr=!_r||p((function(){var t;return Pr(Pr.call)||!Pr(Object)||!Pr((function(){t=!0}))||t}))?Rr:Pr,Ar=TypeError,Mr=gt("species"),Fr=function(t,e){var r,n=Ct(t).constructor;return void 0===n||null==(r=Ct(n)[Mr])?e:function(t){if(Lr(t))return t;throw Ar(V(t)+" is not a constructor")}(r)},Ur=Function.prototype,Hr=Ur.apply,Gr=Ur.call,qr="object"==typeof Reflect&&Reflect.apply||(d?Gr.bind(Hr):function(){return Gr.apply(Hr,arguments)}),Br=_(_.bind),Jr=function(t,e){return Z(t),void 0===e?t:d?Br(t,e):function(){return t.apply(e,arguments)}},zr=TypeError,Wr=function(t,e){if(t<e)throw zr("Not enough arguments");return t},Yr=/(?:ipad|iphone|ipod).*applewebkit/i.test(H),Qr=l.setImmediate,Kr=l.clearImmediate,$r=l.process,Vr=l.Dispatch,Xr=l.Function,Zr=l.MessageChannel,tn=l.String,en=0,rn={};try{Tr=l.location}catch(t){}var nn=function(t){if(st(rn,t)){var e=rn[t];delete rn[t],e()}},on=function(t){return function(){nn(t)}},an=function(t){nn(t.data)},un=function(t){l.postMessage(tn(t),Tr.protocol+"//"+Tr.host)};Qr&&Kr||(Qr=function(t){Wr(arguments.length,1);var e=L(t)?t:Xr(t),r=Ue(arguments,1);return rn[++en]=function(){qr(e,void 0,r)},Cr(en),en},Kr=function(t){delete rn[t]},vr?Cr=function(t){$r.nextTick(on(t))}:Vr&&Vr.now?Cr=function(t){Vr.now(on(t))}:Zr&&!Yr?(Dr=(Nr=new Zr).port2,Nr.port1.onmessage=an,Cr=Jr(Dr.postMessage,Dr)):l.addEventListener&&L(l.postMessage)&&!l.importScripts&&Tr&&"file:"!==Tr.protocol&&!p(un)?(Cr=un,l.addEventListener("message",an,!1)):Cr="onreadystatechange"in _t("script")?function(t){$e.appendChild(_t("script")).onreadystatechange=function(){$e.removeChild(this),nn(t)}}:function(t){setTimeout(on(t),0)});var cn,sn,fn,ln,pn,hn,dn,vn,mn={set:Qr,clear:Kr},yn=/ipad|iphone|ipod/i.test(H)&&void 0!==l.Pebble,gn=/web0s(?!.*chrome)/i.test(H),bn=kt.f,wn=mn.set,xn=l.MutationObserver||l.WebKitMutationObserver,En=l.document,On=l.process,Sn=l.Promise,_n=bn(l,"queueMicrotask"),jn=_n&&_n.value;jn||(cn=function(){var t,e;for(vr&&(t=On.domain)&&t.exit();sn;){e=sn.fn,sn=sn.next;try{e()}catch(t){throw sn?ln():fn=void 0,t}}fn=void 0,t&&t.enter()},Yr||vr||gn||!xn||!En?!yn&&Sn&&Sn.resolve?((dn=Sn.resolve(void 0)).constructor=Sn,vn=Jr(dn.then,dn),ln=function(){vn(cn)}):vr?ln=function(){On.nextTick(cn)}:(wn=Jr(wn,l),ln=function(){wn(cn)}):(pn=!0,hn=En.createTextNode(""),new xn(cn).observe(hn,{characterData:!0}),ln=function(){hn.data=pn=!pn}));var In=jn||function(t){var e={fn:t,next:void 0};fn&&(fn.next=e),sn||(sn=e,ln()),fn=e},kn=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},Pn=function(){this.head=null,this.tail=null};Pn.prototype={add:function(t){var e={item:t,next:null};this.head?this.tail.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return this.head=t.next,this.tail===t&&(this.tail=null),t.item}};var Rn=Pn,Tn=l.Promise,Cn="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,Nn=!Cn&&!vr&&"object"==typeof window&&"object"==typeof document;Tn&&Tn.prototype;var Dn,Ln,An,Mn,Fn,Un,Hn=gt("species"),Gn=!1,qn=L(l.PromiseRejectionEvent),Bn=Ae("Promise",(function(){var t=Wt(Tn),e=t!==String(Tn);if(!e&&66===z)return!0;if(!z||z<51||!/native code/.test(t)){var r=new Tn((function(t){t(1)})),n=function(t){t((function(){}),(function(){}))};if((r.constructor={})[Hn]=n,!(Gn=r.then((function(){}))instanceof n))return!0}return!e&&(Nn||Cn)&&!qn})),Jn={CONSTRUCTOR:Bn,REJECTION_EVENT:qn,SUBCLASSING:Gn},zn=function(t){var e,r;this.promise=new t((function(t,n){if(void 0!==e||void 0!==r)throw TypeError("Bad Promise constructor");e=t,r=n})),this.resolve=Z(e),this.reject=Z(r)},Wn={f:function(t){return new zn(t)}},Yn=mn.set,Qn=Jn.CONSTRUCTOR,Kn=Jn.REJECTION_EVENT,$n=Jn.SUBCLASSING,Vn=ie.getterFor("Promise"),Xn=ie.set,Zn=Tn&&Tn.prototype,to=Tn,eo=Zn,ro=l.TypeError,no=l.document,oo=l.process,io=Wn.f,ao=io,uo=!!(no&&no.createEvent&&l.dispatchEvent),co=function(t){var e;return!(!A(t)||!L(e=t.then))&&e},so=function(t,e){var r,n,o,i=e.value,a=1==e.state,u=a?t.ok:t.fail,c=t.resolve,s=t.reject,f=t.domain;try{u?(a||(2===e.rejection&&vo(e),e.rejection=1),!0===u?r=i:(f&&f.enter(),r=u(i),f&&(f.exit(),o=!0)),r===t.promise?s(ro("Promise-chain cycle")):(n=co(r))?m(n,r,c,s):c(r)):s(i)}catch(t){f&&!o&&f.exit(),s(t)}},fo=function(t,e){t.notified||(t.notified=!0,In((function(){for(var r,n=t.reactions;r=n.get();)so(r,t);t.notified=!1,e&&!t.rejection&&po(t)})))},lo=function(t,e,r){var n,o;uo?((n=no.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),l.dispatchEvent(n)):n={promise:e,reason:r},!Kn&&(o=l["on"+t])?o(n):"unhandledrejection"===t&&function(t,e){var r=l.console;r&&r.error&&(1==arguments.length?r.error(t):r.error(t,e))}("Unhandled promise rejection",r)},po=function(t){m(Yn,l,(function(){var e,r=t.facade,n=t.value;if(ho(t)&&(e=kn((function(){vr?oo.emit("unhandledRejection",n,r):lo("unhandledrejection",r,n)})),t.rejection=vr||ho(t)?2:1,e.error))throw e.value}))},ho=function(t){return 1!==t.rejection&&!t.parent},vo=function(t){m(Yn,l,(function(){var e=t.facade;vr?oo.emit("rejectionHandled",e):lo("rejectionhandled",e,t.value)}))},mo=function(t,e,r){return function(n){t(e,n,r)}},yo=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,fo(t,!0))},go=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw ro("Promise can't be resolved itself");var n=co(e);n?In((function(){var r={done:!1};try{m(n,e,mo(go,r,t),mo(yo,r,t))}catch(e){yo(r,e,t)}})):(t.value=e,t.state=1,fo(t,!1))}catch(e){yo({done:!1},e,t)}}};if(Qn&&(eo=(to=function(t){!function(t,e){if(U(e,t))return t;throw Er("Incorrect invocation")}(this,eo),Z(t),m(Dn,this);var e=Vn(this);try{t(mo(go,e),mo(yo,e))}catch(t){yo(e,t)}}).prototype,(Dn=function(t){Xn(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new Rn,rejection:!1,state:0,value:void 0})}).prototype=ue(eo,"then",(function(t,e){var r=Vn(this),n=io(Fr(this,to));return r.parent=!0,n.ok=!L(t)||t,n.fail=L(e)&&e,n.domain=vr?oo.domain:void 0,0==r.state?r.reactions.add(n):In((function(){so(n,r)})),n.promise})),Ln=function(){var t=new Dn,e=Vn(t);this.promise=t,this.resolve=mo(go,e),this.reject=mo(yo,e)},Wn.f=io=function(t){return t===to||undefined===t?new Ln(t):ao(t)},L(Tn)&&Zn!==Object.prototype)){An=Zn.then,$n||ue(Zn,"then",(function(t,e){var r=this;return new to((function(t,e){m(An,r,t,e)})).then(t,e)}),{unsafe:!0});try{delete Zn.constructor}catch(t){}gr&&gr(Zn,eo)}Fe({global:!0,constructor:!0,wrap:!0,forced:Qn},{Promise:to}),Fn="Promise",Un=!1,(Mn=to)&&!Un&&(Mn=Mn.prototype),Mn&&!st(Mn,wr)&&br(Mn,wr,{configurable:!0,value:Fn}),function(t){var e=F(t),r=At.f;h&&e&&!e[xr]&&r(e,xr,{configurable:!0,get:function(){return this}})}("Promise");var bo={},wo=gt("iterator"),xo=Array.prototype,Eo=gt("iterator"),Oo=function(t){if(null!=t)return tt(t,Eo)||tt(t,"@@iterator")||bo[hr(t)]},So=TypeError,_o=function(t,e,r){var n,o;Ct(t);try{if(!(n=tt(t,"return"))){if("throw"===e)throw r;return r}n=m(n,t)}catch(t){o=!0,n=t}if("throw"===e)throw r;if(o)throw n;return Ct(n),r},jo=TypeError,Io=function(t,e){this.stopped=t,this.result=e},ko=Io.prototype,Po=function(t,e,r){var n,o,i,a,u,c,s,f,l=r&&r.that,p=!(!r||!r.AS_ENTRIES),h=!(!r||!r.IS_RECORD),d=!(!r||!r.IS_ITERATOR),v=!(!r||!r.INTERRUPTED),y=Jr(e,l),g=function(t){return n&&_o(n,"normal",t),new Io(!0,t)},b=function(t){return p?(Ct(t),v?y(t[0],t[1],g):y(t[0],t[1])):v?y(t,g):y(t)};if(h)n=t.iterator;else if(d)n=t;else{if(!(o=Oo(t)))throw jo(V(t)+" is not iterable");if(void 0!==(f=o)&&(bo.Array===f||xo[wo]===f)){for(i=0,a=ye(t);a>i;i++)if((u=b(t[i]))&&U(ko,u))return u;return new Io(!1)}n=function(t,e){var r=arguments.length<2?Oo(t):e;if(Z(r))return Ct(m(r,t));throw So(V(t)+" is not iterable")}(t,o)}for(c=h?t.next:n.next;!(s=m(c,n)).done;){try{u=b(s.value)}catch(t){_o(n,"throw",t)}if("object"==typeof u&&u&&U(ko,u))return u}return new Io(!1)},Ro=gt("iterator"),To=!1;try{var Co=0,No={next:function(){return{done:!!Co++}},return:function(){To=!0}};No[Ro]=function(){return this},Array.from(No,(function(){throw 2}))}catch(t){}var Do=Jn.CONSTRUCTOR||!function(t,e){if(!e&&!To)return!1;var r=!1;try{var n={};n[Ro]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(t){}return r}((function(t){Tn.all(t).then(void 0,(function(){}))}));Fe({target:"Promise",stat:!0,forced:Do},{all:function(t){var e=this,r=Wn.f(e),n=r.resolve,o=r.reject,i=kn((function(){var r=Z(e.resolve),i=[],a=0,u=1;Po(t,(function(t){var c=a++,s=!1;u++,m(r,e,t).then((function(t){s||(s=!0,i[c]=t,--u||n(i))}),o)})),--u||n(i)}));return i.error&&o(i.value),r.promise}});var Lo=Jn.CONSTRUCTOR,Ao=Tn&&Tn.prototype;if(Fe({target:"Promise",proto:!0,forced:Lo,real:!0},{catch:function(t){return this.then(void 0,t)}}),L(Tn)){var Mo=F("Promise").prototype.catch;Ao.catch!==Mo&&ue(Ao,"catch",Mo,{unsafe:!0})}Fe({target:"Promise",stat:!0,forced:Do},{race:function(t){var e=this,r=Wn.f(e),n=r.reject,o=kn((function(){var o=Z(e.resolve);Po(t,(function(t){m(o,e,t).then(r.resolve,n)}))}));return o.error&&n(o.value),r.promise}}),Fe({target:"Promise",stat:!0,forced:Jn.CONSTRUCTOR},{reject:function(t){var e=Wn.f(this);return m(e.reject,void 0,t),e.promise}});var Fo=Jn.CONSTRUCTOR;F("Promise"),Fe({target:"Promise",stat:!0,forced:Fo},{resolve:function(t){return function(t,e){if(Ct(t),A(e)&&e.constructor===t)return e;var r=Wn.f(t);return(0,r.resolve)(e),r.promise}(this,t)}});var Uo=Object.assign,Ho=Object.defineProperty,Go=_([].concat),qo=!Uo||p((function(){if(h&&1!==Uo({b:1},Uo(Ho({},"a",{enumerable:!0,get:function(){Ho(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach((function(t){e[t]=t})),7!=Uo({},t)[r]||Ye(Uo({},e)).join("")!=n}))?function(t,e){for(var r=ut(t),n=arguments.length,o=1,i=je.f,a=b.f;n>o;)for(var u,c=T(arguments[o++]),s=i?Go(Ye(c),i(c)):Ye(c),f=s.length,l=0;f>l;)u=s[l++],h&&!m(a,c,u)||(r[u]=c[u]);return r}:Uo;Fe({target:"Object",stat:!0,arity:2,forced:Object.assign!==qo},{assign:qo});var Bo,Jo=Array.isArray||function(t){return"Array"==k(t)},zo=function(t,e,r){var n=Et(e);n in t?At.f(t,n,w(0,r)):t[n]=r},Wo=gt("species"),Yo=(Bo="slice",z>=51||!p((function(){var t=[];return(t.constructor={})[Wo]=function(){return{foo:1}},1!==t[Bo](Boolean).foo}))),Qo=gt("species"),Ko=Array,$o=Math.max;Fe({target:"Array",proto:!0,forced:!Yo},{slice:function(t,e){var r,n,o,i=D(this),a=ye(i),u=de(t,a),c=de(void 0===e?a:e,a);if(Jo(i)&&(r=i.constructor,(Lr(r)&&(r===Ko||Jo(r.prototype))||A(r)&&null===(r=r[Qo]))&&(r=void 0),r===Ko||void 0===r))return Ue(i,u,c);for(n=new(void 0===r?Ko:r)($o(c-u,0)),o=0;u<c;u++,o++)u in i&&zo(n,o,i[u]);return n.length=o,n}});var Vo=Date.prototype,Xo=_(Vo.toString),Zo=_(Vo.getTime);"Invalid Date"!=String(new Date(NaN))&&ue(Vo,"toString",(function(){var t=Zo(this);return t==t?Xo(this):"Invalid Date"}));var ti=String,ei=function(t){if("Symbol"===hr(t))throw TypeError("Cannot convert a Symbol value to a string");return ti(t)},ri=function(){var t=Ct(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},ni=RegExp.prototype,oi=Gt.PROPER,ii=RegExp.prototype.toString,ai=p((function(){return"/a/b"!=ii.call({source:"a",flags:"b"})})),ui=oi&&"toString"!=ii.name;(ai||ui)&&ue(RegExp.prototype,"toString",(function(){var t=Ct(this),e=ei(t.source),r=ei(function(t){var e=t.flags;return void 0!==e||"flags"in ni||st(t,"flags")||!U(ni,t)?e:m(ri,t)}(t));return"/"+e+"/"+r}),{unsafe:!0});var ci="\t\n\v\f\r \u2028\u2029\ufeff",si=_("".replace),fi="["+ci+"]",li=RegExp("^"+fi+fi+"*"),pi=RegExp(fi+fi+"*$"),hi=function(t){return function(e){var r=ei(N(e));return 1&t&&(r=si(r,li,"")),2&t&&(r=si(r,pi,"")),r}},di={start:hi(1),end:hi(2),trim:hi(3)}.trim,vi=l.parseInt,mi=l.Symbol,yi=mi&&mi.iterator,gi=/^[+-]?0x/i,bi=_(gi.exec),wi=8!==vi(ci+"08")||22!==vi(ci+"0x16")||yi&&!p((function(){vi(Object(yi))}))?function(t,e){var r=di(ei(t));return vi(r,e>>>0||(bi(gi,r)?16:10))}:vi;Fe({global:!0,forced:parseInt!=wi},{parseInt:wi});var xi,Ei,Oi=l.RegExp,Si=p((function(){var t=Oi("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),_i=Si||p((function(){return!Oi("a","y").sticky})),ji={BROKEN_CARET:Si||p((function(){var t=Oi("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),MISSED_STICKY:_i,UNSUPPORTED_Y:Si},Ii=l.RegExp,ki=p((function(){var t=Ii(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),Pi=l.RegExp,Ri=p((function(){var t=Pi("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),Ti=ie.get,Ci=it("native-string-replace",String.prototype.replace),Ni=RegExp.prototype.exec,Di=Ni,Li=_("".charAt),Ai=_("".indexOf),Mi=_("".replace),Fi=_("".slice),Ui=(Ei=/b*/g,m(Ni,xi=/a/,"a"),m(Ni,Ei,"a"),0!==xi.lastIndex||0!==Ei.lastIndex),Hi=ji.BROKEN_CARET,Gi=void 0!==/()??/.exec("")[1];(Ui||Gi||Hi||ki||Ri)&&(Di=function(t){var e,r,n,o,i,a,u,c=this,s=Ti(c),f=ei(t),l=s.raw;if(l)return l.lastIndex=c.lastIndex,e=m(Di,l,f),c.lastIndex=l.lastIndex,e;var p=s.groups,h=Hi&&c.sticky,d=m(ri,c),v=c.source,y=0,g=f;if(h&&(d=Mi(d,"y",""),-1===Ai(d,"g")&&(d+="g"),g=Fi(f,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==Li(f,c.lastIndex-1))&&(v="(?: "+v+")",g=" "+g,y++),r=new RegExp("^(?:"+v+")",d)),Gi&&(r=new RegExp("^"+v+"$(?!\\s)",d)),Ui&&(n=c.lastIndex),o=m(Ni,h?r:c,g),h?o?(o.input=Fi(o.input,y),o[0]=Fi(o[0],y),o.index=c.lastIndex,c.lastIndex+=o[0].length):c.lastIndex=0:Ui&&o&&(c.lastIndex=c.global?o.index+o[0].length:n),Gi&&o&&o.length>1&&m(Ci,o[0],r,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(o[i]=void 0)})),o&&p)for(o.groups=a=rr(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var qi=Di;Fe({target:"RegExp",proto:!0,forced:/./.exec!==qi},{exec:qi});var Bi=gt("species"),Ji=RegExp.prototype,zi=gt("match"),Wi=_("".charAt),Yi=_("".charCodeAt),Qi=_("".slice),Ki=function(t){return function(e,r){var n,o,i=ei(N(e)),a=le(r),u=i.length;return a<0||a>=u?t?"":void 0:(n=Yi(i,a))<55296||n>56319||a+1===u||(o=Yi(i,a+1))<56320||o>57343?t?Wi(i,a):n:t?Qi(i,a,a+2):o-56320+(n-55296<<10)+65536}},$i={codeAt:Ki(!1),charAt:Ki(!0)}.charAt,Vi=function(t,e,r){return e+(r?$i(t,e).length:1)},Xi=Array,Zi=Math.max,ta=function(t,e,r){for(var n=ye(t),o=de(e,n),i=de(void 0===r?n:r,n),a=Xi(Zi(i-o,0)),u=0;o<i;o++,u++)zo(a,u,t[o]);return a.length=u,a},ea=TypeError,ra=function(t,e){var r=t.exec;if(L(r)){var n=m(r,t,e);return null!==n&&Ct(n),n}if("RegExp"===k(t))return m(qi,t,e);throw ea("RegExp#exec called on incompatible receiver")},na=ji.UNSUPPORTED_Y,oa=Math.min,ia=[].push,aa=_(/./.exec),ua=_(ia),ca=_("".slice);!function(t,e,r,n){var o=gt(t),i=!p((function(){var e={};return e[o]=function(){return 7},7!=""[t](e)})),a=i&&!p((function(){var e=!1,r=/a/;return"split"===t&&((r={}).constructor={},r.constructor[Bi]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return e=!0,null},r[o](""),!e}));if(!i||!a||r){var u=_(/./[o]),c=e(o,""[t],(function(t,e,r,n,o){var a=_(t),c=e.exec;return c===qi||c===Ji.exec?i&&!o?{done:!0,value:u(e,r,n)}:{done:!0,value:a(r,e,n)}:{done:!1}}));ue(String.prototype,t,c[0]),ue(Ji,o,c[1])}n&&Mt(Ji[o],"sham",!0)}("split",(function(t,e,r){var n;return n="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,r){var n,o,i=ei(N(this)),a=void 0===r?4294967295:r>>>0;if(0===a)return[];if(void 0===t)return[i];if(!A(n=t)||!(void 0!==(o=n[zi])?o:"RegExp"==k(n)))return m(e,i,t,a);for(var u,c,s,f=[],l=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),p=0,h=new RegExp(t.source,l+"g");(u=m(qi,h,i))&&!((c=h.lastIndex)>p&&(ua(f,ca(i,p,u.index)),u.length>1&&u.index<i.length&&qr(ia,f,ta(u,1)),s=u[0].length,p=c,f.length>=a));)h.lastIndex===u.index&&h.lastIndex++;return p===i.length?!s&&aa(h,"")||ua(f,""):ua(f,ca(i,p)),f.length>a?ta(f,0,a):f}:"0".split(void 0,0).length?function(t,r){return void 0===t&&0===r?[]:m(e,this,t,r)}:e,[function(e,r){var o=N(this),i=null==e?void 0:tt(e,t);return i?m(i,e,o,r):m(n,ei(o),e,r)},function(t,o){var i=Ct(this),a=ei(t),u=r(n,i,a,o,n!==e);if(u.done)return u.value;var c=Fr(i,RegExp),s=i.unicode,f=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(na?"g":"y"),l=new c(na?"^(?:"+i.source+")":i,f),p=void 0===o?4294967295:o>>>0;if(0===p)return[];if(0===a.length)return null===ra(l,a)?[a]:[];for(var h=0,d=0,v=[];d<a.length;){l.lastIndex=na?0:d;var m,y=ra(l,na?ca(a,d):a);if(null===y||(m=oa(me(l.lastIndex+(na?d:0)),a.length))===h)d=Vi(a,d,s);else{if(ua(v,ca(a,h,d)),v.length===p)return v;for(var g=1;g<=y.length-1;g++)if(ua(v,y[g]),v.length===p)return v;d=h=m}}return ua(v,ca(a,h)),v}]}),!!p((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return 2!==r.length||"a"!==r[0]||"b"!==r[1]})),na);var sa="".concat("http://127.0.0.1:11111","/services/print"),fa="".concat("http://127.0.0.1:11111","/PrintLocal"),la={transtime:"20211105111933684",transtype:"SYSTEM",interfaceid:"120001",serialnumber:"f81166d2-c175-8cfc-82be-6bd336b5c132",operatorcode:"888",operatorname:"888",transcmd:"100000",transdata:{cmdid:8,reportid:280,formatid:"742",formatname:"血液入库单打印按钮",datamode:1,param:{id:"58"},UserInfo:{ID:"12"},datas:[]},transsystem:"10",transchannel:"100",verifycode:""},pa=t.create({timeout:1e3,withCredentials:!1}),ha=t.create({withCredentials:!1}),da=t.create({timeout:6e4,withCredentials:!1,headers:{"Content-Type":"application/x-www-form-urlencoded"}});var va=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),function(t,e,r){e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(this,"messageHandlerQueue",[]),this.webview=null;var e=window;try{var r,n;this.webview=e.top?null===(r=e.top.chrome)||void 0===r?void 0:r.webview:null===(n=e.chrome)||void 0===n?void 0:n.webview}catch(t){var o;console.log(t),this.webview=null===(o=e.chrome)||void 0===o?void 0:o.webview}this.webview&&(this.currentMessageHandler=this.messageHandler.bind(this),this.webview.addEventListener("message",this.currentMessageHandler),this.webview.postMessage({exec:"console",data:{msg:{test:"test"}}}))}var r,a,u,c,s,f,l,p,h,d,v,m,y,g;return r=t,a=[{key:"messageHandler",value:function(t){var e,r;if(!t)return console.log("当前回执",t,"接收到空的浏览器事件");try{!function(t){try{return JSON.parse(t),!0}catch(t){return!1}}(t.data)?this.webview=null:r=JSON.parse(t.data||"{}")}catch(t){console.log("解析e.data失败,"+t)}if(["print","pdf"].includes(null===(e=r)||void 0===e?void 0:e.cmd)){console.log("打印命令执行了",r);var n=this.messageHandlerQueue.shift();if(!n)return console.log("当前回执",t,"没有可用的handler");var o=n.resolve,i=n.reject;try{o(r.res||"")}catch(t){i(t)}}}},{key:"postMessage",value:(g=n(e().mark((function t(r){var n=this;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.webview){t.next=2;break}return t.abrupt("return",Promise.reject());case 2:return t.abrupt("return",new Promise(function(t,e){i(this,n),this.messageHandlerQueue.push({resolve:t,reject:e}),this.webview.postMessage(r)}.bind(this)));case 3:case"end":return t.stop()}}),t,this)}))),function(t){return g.apply(this,arguments)})},{key:"destroy",value:function(){this.webview&&this.currentMessageHandler&&(this.webview.removeEventListener("message",this.currentMessageHandler),this.currentMessageHandler=void 0)}},{key:"_testConnection",value:function(){var t=this;return this.webview?Promise.resolve(!0):new Promise(function(e){var r=this;i(this,t),pa({url:"".concat("http://127.0.0.1:11111","/test"),method:"get",withCredentials:!1,params:{inputdata:{result:"success"}}}).then(function(t){i(this,r),"success"===t.data.result?e(!0):e(!1)}.bind(this)).catch(function(t){i(this,r),e(!1)}.bind(this))}.bind(this))}},{key:"_queryServicesPrint",value:function(t){var e=this;return this.webview?this.postMessage({exec:"print",data:{inputData:t}}):ha({url:sa,method:"get",params:{inputData:JSON.stringify(t)}}).then(function(t){return i(this,e),t.data}.bind(this))}},{key:"_callPrintWithFile",value:function(t){var e=this,r={cmdid:"7",flag:"1"},n={inputData:JSON.stringify(Object.assign({},r,t))};return this.webview?this.postMessage({exec:"print",data:o(n)}):ha({url:fa,method:"post",data:n,transformRequest:[o]}).then(function(t){return i(this,e),t.data}.bind(this));function o(t){var e="";for(var r in t)e+=encodeURIComponent(r)+"="+encodeURIComponent(t[r])+"&";return e=e.slice(0,-1)}}},{key:"_handleResult",value:function(t,e){if(!t){var r="打印命令返回空数据";return null==e||e({type:"printError",message:r,result:!1,errinfo:r}),!1}return"success"!==t.result?(e({type:"printError",message:t.message||t.Message,result:t.result,errinfo:t.errinfo}),!1):t}},{key:"_handleResultTest",value:function(t,e){return!!t||(console.log("notInstalledApp"),e({type:"notInstalledApp",message:"请打开打印服务器插件"}),!1)}},{key:"_handleEventQueryPrintData",value:(y=n(e().mark((function t(r,n,o,i){var a,u;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a={templateId:r,formatId:n,params:o,cmdid:"7"},t.next=3,this._queryServicesPrint(a);case 3:return u=t.sent,t.abrupt("return",this._handleQueryPrintDataResult(u,n,i));case 5:case"end":return t.stop()}}),t,this)}))),function(t,e,r,n){return y.apply(this,arguments)})},{key:"_handleQueryPrintDataResult",value:function(t,e,r){if(null==t||!t.file){try{var n=t.message||t.Message;console.log(n),r({type:"queryPrintDataFailure",message:n})}catch(t){console.log(t)}return!1}return{file:t.file,printerName:t.defprinter,pageCount:t.pagecount,formatId:e}}},{key:"_handleEventDirect",value:(m=n(e().mark((function t(r){var n,o,i,a,u,c,s,f,l;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=r.templateId,o=r.formatId,i=r.params,a=r.cmdid,u=r.print,c=r.printdlgshow,s=void 0===c?"1":c,f=r.nobillnode,l={templateId:n,formatId:o,params:i,cmdid:a,nobillnode:void 0===f?"1":f,printdlgshow:s},u){try{u=JSON.parse(u)}catch(t){}l.print=u}return t.next=5,this._queryServicesPrint(l);case 5:return t.abrupt("return",t.sent);case 6:case"end":return t.stop()}}),t,this)}))),function(t){return m.apply(this,arguments)})},{key:"_handleEventEditFormat",value:(v=n(e().mark((function t(r){var n,o,i,a,u,c,s,f,l;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=r.templateId,o=r.formatId,i=void 0===o?"":o,a=r.params,u=void 0===a?{}:a,c=r.token,s={},f={};try{f=Object.assign({},s,JSON.parse(u))}catch(t){f=s}return l={templateId:n,formatId:i,cmdid:"9",token:c,params:JSON.stringify(f)},t.next=7,this._queryServicesPrint(l);case 7:return t.abrupt("return",t.sent);case 8:case"end":return t.stop()}}),t,this)}))),function(t){return v.apply(this,arguments)})},{key:"preview",value:(d=n(e().mark((function t(r,n,o){var i,a,u,c,s,f,l;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=r.templateId,a=r.formatId,u=r.params,c=void 0===u?"":u,t.next=3,this._testConnection();case 3:if(s=t.sent,this._handleResultTest(s,o)){t.next=6;break}return t.abrupt("return",!1);case 6:return t.prev=6,t.next=9,this._handleEventDirect({templateId:i,formatId:a,params:c,cmdid:"8"});case 9:if(f=t.sent,l=this._handleResult(f,o)){t.next=13;break}return t.abrupt("return",!1);case 13:n&&n(l),t.next=20;break;case 16:t.prev=16,t.t0=t.catch(6),null==o||o({message:"预览失败"});case 20:case"end":return t.stop()}}),t,this,[[6,16]])}))),function(t,e,r){return d.apply(this,arguments)})},{key:"printDirect",value:(h=n(e().mark((function t(r,n,o){var i,a,u,c,s,f,l,p,h,d;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=r.templateId,a=r.formatId,u=r.params,c=void 0===u?"":u,s=r.print,f=r.printdlgshow,l=r.nobillnode,t.next=3,this._testConnection();case 3:if(p=t.sent,this._handleResultTest(p,o)){t.next=6;break}return t.abrupt("return",!1);case 6:return t.prev=6,t.next=9,this._handleEventDirect({templateId:i,formatId:a,params:c,cmdid:"7",print:s,printdlgshow:f,nobillnode:l});case 9:if(h=t.sent,d=this._handleResult(h,o)){t.next=13;break}return t.abrupt("return",!1);case 13:n&&n(d),t.next=20;break;case 16:t.prev=16,t.t0=t.catch(6),null==o||o({message:"打印失败"});case 20:case"end":return t.stop()}}),t,this,[[6,16]])}))),function(t,e,r){return h.apply(this,arguments)})},{key:"print",value:(p=n(e().mark((function t(r,n,o){var i,a,u,c,s,f;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=r.templateId,a=r.formatId,u=r.params,c=void 0===u?"":u,t.next=3,this._testConnection();case 3:if(s=t.sent,this._handleResultTest(s,o)){t.next=6;break}return t.abrupt("return",!1);case 6:return t.next=8,this.queryPrintData({templateId:i,formatId:a,params:c},null,o);case 8:if(f=t.sent,this.printFileData({formatId:a,file:f.file,printerName:f.printerName},null,o)){t.next=12;break}return t.abrupt("return",!1);case 12:n&&n(result);case 13:case"end":return t.stop()}}),t,this)}))),function(t,e,r){return p.apply(this,arguments)})},{key:"queryPrintData",value:(l=n(e().mark((function t(r,n,o){var i,a,u,c,s,f;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=r.templateId,a=r.formatId,u=r.params,c=void 0===u?"":u,t.next=3,this._testConnection();case 3:if(s=t.sent,this._handleResultTest(s,o)){t.next=6;break}return t.abrupt("return",!1);case 6:return t.next=8,this._handleEventQueryPrintData(i,a,c,o);case 8:if(f=t.sent){t.next=11;break}return t.abrupt("return",!1);case 11:return n&&n(f),t.abrupt("return",f);case 13:case"end":return t.stop()}}),t,this)}))),function(t,e,r){return l.apply(this,arguments)})},{key:"printFileData",value:(f=n(e().mark((function t(r,n,o){var i,a,u,c,s,f,l;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=r.formatId,a=r.file,u=r.printerName,c=void 0===u?"Default":u,t.next=3,this._testConnection();case 3:if(s=t.sent,this._handleResultTest(s,o)){t.next=6;break}return t.abrupt("return",!1);case 6:return t.next=8,this._callPrintWithFile({formatId:i,printname:c,file:a});case 8:if(f=t.sent,l=this._handleResult(f,o)){t.next=12;break}return t.abrupt("return",!1);case 12:return n&&n(l),t.abrupt("return",l);case 14:case"end":return t.stop()}}),t,this)}))),function(t,e,r){return f.apply(this,arguments)})},{key:"editPrintFormat",value:(s=n(e().mark((function t(r,n,o){var i,a,u,c,s,f,l;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=r.templateId,a=r.formatId,u=r.params,c=r.token,t.next=3,this._testConnection();case 3:if(s=t.sent,this._handleResultTest(s,o)){t.next=6;break}return t.abrupt("return",!1);case 6:return t.next=8,this._handleEventEditFormat({templateId:i,formatId:a,params:u,token:c});case 8:if(f=t.sent,l=this._handleResult(f,o)){t.next=12;break}return t.abrupt("return",!1);case 12:n&&n(l);case 13:case"end":return t.stop()}}),t,this)}))),function(t,e,r){return s.apply(this,arguments)})},{key:"addPrintFormat",value:(c=n(e().mark((function t(r,n,o){var i,a,u,c,s,f;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=r.templateId,a=r.params,u=r.token,t.next=3,this._testConnection();case 3:if(c=t.sent,this._handleResultTest(c,o)){t.next=6;break}return t.abrupt("return",!1);case 6:return t.next=8,this._handleEventEditFormat({templateId:i,params:a,token:u});case 8:if(s=t.sent,f=this._handleResult(s,o)){t.next=12;break}return t.abrupt("return",!1);case 12:n&&n(f);case 13:case"end":return t.stop()}}),t,this)}))),function(t,e,r){return c.apply(this,arguments)})},{key:"handleHisPrint",value:function(t,e){var r=this._getHisPrintParams(e);return r.transdata.cmdid=t,da({url:"http://127.0.0.1"+":".concat("8031","/HOInterfaceSvr"),method:"post",data:r})}},{key:"handleOldHisPrint",value:function(t,e){var r=this._getHisPrintParams(e);return r.transdata.cmdid=t,r.transdata.datamode=1,da({url:"http://127.0.0.1:802"+"/services/HisService?inputData=".concat(JSON.stringify(r.transdata)),method:"get"})}},{key:"_getHisPrintParams",value:function(t){var e=this._getTranstime(),r=this._getSerialnumber(),n=this._getOperatorcode(),o=this._getOperatorname(),i=this._getCookieUserId(),a=t.reportid,u=t.formatid,c=t.formatname,s=t.param;return Object.assign(la.transdata,{reportid:a,formatid:u,formatname:c,param:s,UserInfo:{ID:i}}),Object.assign({},la,{transtime:e,serialnumber:r,operatorcode:n,operatorname:o})}},{key:"_getSerialnumber",value:function(){function t(){return(65536*(1+Math.random())|0).toString(16).substring(1)}return t()+t()+"-"+t()+"-"+t()+"-"+t()+"-"+t()+t()+t()}},{key:"_getOperatorcode",value:function(){return this._getCookie("loginName")||"9000"}},{key:"_getOperatorname",value:function(){return this._getCookie("trueName")||"%E4%BE%AF%E7%9B%BC%E7%9B%BC"}},{key:"_getCookieUserId",value:function(){return this._getCookie("userId")||122298}},{key:"_getTranstime",value:function(){return this._generateTimeReqestNumber()+parseInt(1e3*Math.random())}},{key:"_pad2",value:function(t){return t<10?"0"+t:t}},{key:"_generateTimeReqestNumber",value:function(){var t=new Date;return t.getFullYear().toString()+this._pad2(t.getMonth()+1)+this._pad2(t.getDate())+this._pad2(t.getHours())+this._pad2(t.getMinutes())+this._pad2(t.getSeconds())}},{key:"_getCookie",value:function(t){for(var e=document.cookie.split("; "),r=0;r<e.length;r++){var n=e[r].split("=");if(n[0]==t)return n[1]}}}],a&&o(r.prototype,a),u&&o(r,u),Object.defineProperty(r,"prototype",{writable:!1}),t}();export{va as default};
|
|
1
|
+
function t(){t=function(){return e};var e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),u=new R(n||[]);return o(a,"_invoke",{value:E(t,r,u)}),a}function l(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var p={};function d(){}function h(){}function v(){}var m={};c(m,a,(function(){return this}));var y=Object.getPrototypeOf,g=y&&y(y(T([])));g&&g!==r&&n.call(g,a)&&(m=g);var b=v.prototype=d.prototype=Object.create(m);function w(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function O(t,e){function r(o,i,a,u){var s=l(t[o],t,i);if("throw"!==s.type){var c=s.arg,f=c.value;return f&&"object"==typeof f&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,u)}),(function(t){r("throw",t,a,u)})):e.resolve(f).then((function(t){c.value=t,a(c)}),(function(t){return r("throw",t,a,u)}))}u(s.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function E(t,e,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return{value:void 0,done:!0}}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=S(a,r);if(u){if(u===p)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=l(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===p)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}function S(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,S(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),p;var o=l(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,p;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,p):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,p)}function j(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function R(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function T(t){if(t||""===t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}throw new TypeError(typeof t+" is not iterable")}return h.prototype=v,o(b,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:h,configurable:!0}),h.displayName=c(v,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,c(t,s,"GeneratorFunction")),t.prototype=Object.create(b),t},e.awrap=function(t){return{__await:t}},w(O.prototype),c(O.prototype,u,(function(){return this})),e.AsyncIterator=O,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new O(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(b),c(b,s,"Generator"),c(b,a,(function(){return this})),c(b,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=T,R.prototype={constructor:R,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var u=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),p},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),x(r),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;x(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:T(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}function e(t,e,r,n,o,i,a){try{var u=t[i](a),s=u.value}catch(t){return void r(t)}u.done?e(s):Promise.resolve(s).then(n,o)}function r(t){return function(){var r=this,n=arguments;return new Promise((function(o,i){var a=t.apply(r,n);function u(t){e(a,o,i,u,s,"next",t)}function s(t){e(a,o,i,u,s,"throw",t)}u(void 0)}))}}function n(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,i(n.key),n)}}function o(t,e){if(t!==e)throw new TypeError("Cannot instantiate an arrow function")}function i(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}var a="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function u(t,e){return t(e={exports:{}},e.exports),e.exports}var s,c,f=function(t){return t&&t.Math==Math&&t},l=f("object"==typeof globalThis&&globalThis)||f("object"==typeof window&&window)||f("object"==typeof self&&self)||f("object"==typeof a&&a)||function(){return this}()||a||Function("return this")(),p=function(t){try{return!!t()}catch(t){return!0}},d=!p((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),h=!p((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),v=Function.prototype.call,m=h?v.bind(v):function(){return v.apply(v,arguments)},y={}.propertyIsEnumerable,g=Object.getOwnPropertyDescriptor,b={f:g&&!y.call({1:2},1)?function(t){var e=g(this,t);return!!e&&e.enumerable}:y},w=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},O=Function.prototype,E=O.call,S=h&&O.bind.bind(E,E),j=h?S:function(t){return function(){return E.apply(t,arguments)}},x=j({}.toString),R=j("".slice),T=function(t){return R(x(t),8,-1)},P=Object,k=j("".split),_=p((function(){return!P("z").propertyIsEnumerable(0)}))?function(t){return"String"==T(t)?k(t,""):P(t)}:P,A=function(t){return null==t},C=TypeError,N=function(t){if(A(t))throw C("Can't call method on "+t);return t},I=function(t){return _(N(t))},D="object"==typeof document&&document.all,L={all:D,IS_HTMLDDA:void 0===D&&void 0!==D},F=L.all,U=L.IS_HTMLDDA?function(t){return"function"==typeof t||t===F}:function(t){return"function"==typeof t},B=L.all,M=L.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:U(t)||t===B}:function(t){return"object"==typeof t?null!==t:U(t)},q=function(t,e){return arguments.length<2?(r=l[t],U(r)?r:void 0):l[t]&&l[t][e];var r},H=j({}.isPrototypeOf),z="undefined"!=typeof navigator&&String(navigator.userAgent)||"",J=l.process,G=l.Deno,W=J&&J.versions||G&&G.version,V=W&&W.v8;V&&(c=(s=V.split("."))[0]>0&&s[0]<4?1:+(s[0]+s[1])),!c&&z&&(!(s=z.match(/Edge\/(\d+)/))||s[1]>=74)&&(s=z.match(/Chrome\/(\d+)/))&&(c=+s[1]);var K=c,Q=l.String,$=!!Object.getOwnPropertySymbols&&!p((function(){var t=Symbol();return!Q(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&K&&K<41})),X=$&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Y=Object,Z=X?function(t){return"symbol"==typeof t}:function(t){var e=q("Symbol");return U(e)&&H(e.prototype,Y(t))},tt=String,et=function(t){try{return tt(t)}catch(t){return"Object"}},rt=TypeError,nt=function(t){if(U(t))return t;throw rt(et(t)+" is not a function")},ot=function(t,e){var r=t[e];return A(r)?void 0:nt(r)},it=TypeError,at=Object.defineProperty,ut=function(t,e){try{at(l,t,{value:e,configurable:!0,writable:!0})}catch(r){l[t]=e}return e},st="__core-js_shared__",ct=l[st]||ut(st,{}),ft=u((function(t){(t.exports=function(t,e){return ct[t]||(ct[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.32.0",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.32.0/LICENSE",source:"https://github.com/zloirock/core-js"})})),lt=Object,pt=function(t){return lt(N(t))},dt=j({}.hasOwnProperty),ht=Object.hasOwn||function(t,e){return dt(pt(t),e)},vt=0,mt=Math.random(),yt=j(1..toString),gt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+yt(++vt+mt,36)},bt=l.Symbol,wt=ft("wks"),Ot=X?bt.for||bt:bt&&bt.withoutSetter||gt,Et=function(t){return ht(wt,t)||(wt[t]=$&&ht(bt,t)?bt[t]:Ot("Symbol."+t)),wt[t]},St=TypeError,jt=Et("toPrimitive"),xt=function(t,e){if(!M(t)||Z(t))return t;var r,n=ot(t,jt);if(n){if(void 0===e&&(e="default"),r=m(n,t,e),!M(r)||Z(r))return r;throw St("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var r,n;if("string"===e&&U(r=t.toString)&&!M(n=m(r,t)))return n;if(U(r=t.valueOf)&&!M(n=m(r,t)))return n;if("string"!==e&&U(r=t.toString)&&!M(n=m(r,t)))return n;throw it("Can't convert object to primitive value")}(t,e)},Rt=function(t){var e=xt(t,"string");return Z(e)?e:e+""},Tt=l.document,Pt=M(Tt)&&M(Tt.createElement),kt=function(t){return Pt?Tt.createElement(t):{}},_t=!d&&!p((function(){return 7!=Object.defineProperty(kt("div"),"a",{get:function(){return 7}}).a})),At=Object.getOwnPropertyDescriptor,Ct={f:d?At:function(t,e){if(t=I(t),e=Rt(e),_t)try{return At(t,e)}catch(t){}if(ht(t,e))return w(!m(b.f,t,e),t[e])}},Nt=d&&p((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),It=String,Dt=TypeError,Lt=function(t){if(M(t))return t;throw Dt(It(t)+" is not an object")},Ft=TypeError,Ut=Object.defineProperty,Bt=Object.getOwnPropertyDescriptor,Mt="enumerable",qt="configurable",Ht="writable",zt={f:d?Nt?function(t,e,r){if(Lt(t),e=Rt(e),Lt(r),"function"==typeof t&&"prototype"===e&&"value"in r&&Ht in r&&!r[Ht]){var n=Bt(t,e);n&&n[Ht]&&(t[e]=r.value,r={configurable:qt in r?r[qt]:n[qt],enumerable:Mt in r?r[Mt]:n[Mt],writable:!1})}return Ut(t,e,r)}:Ut:function(t,e,r){if(Lt(t),e=Rt(e),Lt(r),_t)try{return Ut(t,e,r)}catch(t){}if("get"in r||"set"in r)throw Ft("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},Jt=d?function(t,e,r){return zt.f(t,e,w(1,r))}:function(t,e,r){return t[e]=r,t},Gt=Function.prototype,Wt=d&&Object.getOwnPropertyDescriptor,Vt=ht(Gt,"name"),Kt={EXISTS:Vt,PROPER:Vt&&"something"===function(){}.name,CONFIGURABLE:Vt&&(!d||d&&Wt(Gt,"name").configurable)},Qt=j(Function.toString);U(ct.inspectSource)||(ct.inspectSource=function(t){return Qt(t)});var $t,Xt,Yt,Zt=ct.inspectSource,te=l.WeakMap,ee=U(te)&&/native code/.test(String(te)),re=ft("keys"),ne=function(t){return re[t]||(re[t]=gt(t))},oe={},ie="Object already initialized",ae=l.TypeError,ue=l.WeakMap;if(ee||ct.state){var se=ct.state||(ct.state=new ue);se.get=se.get,se.has=se.has,se.set=se.set,$t=function(t,e){if(se.has(t))throw ae(ie);return e.facade=t,se.set(t,e),e},Xt=function(t){return se.get(t)||{}},Yt=function(t){return se.has(t)}}else{var ce=ne("state");oe[ce]=!0,$t=function(t,e){if(ht(t,ce))throw ae(ie);return e.facade=t,Jt(t,ce,e),e},Xt=function(t){return ht(t,ce)?t[ce]:{}},Yt=function(t){return ht(t,ce)}}var fe={set:$t,get:Xt,has:Yt,enforce:function(t){return Yt(t)?Xt(t):$t(t,{})},getterFor:function(t){return function(e){var r;if(!M(e)||(r=Xt(e)).type!==t)throw ae("Incompatible receiver, "+t+" required");return r}}},le=u((function(t){var e=Kt.CONFIGURABLE,r=fe.enforce,n=fe.get,o=String,i=Object.defineProperty,a=j("".slice),u=j("".replace),s=j([].join),c=d&&!p((function(){return 8!==i((function(){}),"length",{value:8}).length})),f=String(String).split("String"),l=t.exports=function(t,n,l){"Symbol("===a(o(n),0,7)&&(n="["+u(o(n),/^Symbol\(([^)]*)\)/,"$1")+"]"),l&&l.getter&&(n="get "+n),l&&l.setter&&(n="set "+n),(!ht(t,"name")||e&&t.name!==n)&&(d?i(t,"name",{value:n,configurable:!0}):t.name=n),c&&l&&ht(l,"arity")&&t.length!==l.arity&&i(t,"length",{value:l.arity});try{l&&ht(l,"constructor")&&l.constructor?d&&i(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var p=r(t);return ht(p,"source")||(p.source=s(f,"string"==typeof n?n:"")),t};Function.prototype.toString=l((function(){return U(this)&&n(this).source||Zt(this)}),"toString")})),pe=function(t,e,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:e;if(U(r)&&le(r,i,n),n.global)o?t[e]=r:ut(e,r);else{try{n.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=r:zt.f(t,e,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return t},de=Math.ceil,he=Math.floor,ve=Math.trunc||function(t){var e=+t;return(e>0?he:de)(e)},me=function(t){var e=+t;return e!=e||0===e?0:ve(e)},ye=Math.max,ge=Math.min,be=function(t,e){var r=me(t);return r<0?ye(r+e,0):ge(r,e)},we=Math.min,Oe=function(t){return(e=t.length)>0?we(me(e),9007199254740991):0;var e},Ee=function(t){return function(e,r,n){var o,i=I(e),a=Oe(i),u=be(n,a);if(t&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===r)return t||u||0;return!t&&-1}},Se={includes:Ee(!0),indexOf:Ee(!1)},je=Se.indexOf,xe=j([].push),Re=function(t,e){var r,n=I(t),o=0,i=[];for(r in n)!ht(oe,r)&&ht(n,r)&&xe(i,r);for(;e.length>o;)ht(n,r=e[o++])&&(~je(i,r)||xe(i,r));return i},Te=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Pe=Te.concat("length","prototype"),ke={f:Object.getOwnPropertyNames||function(t){return Re(t,Pe)}},_e={f:Object.getOwnPropertySymbols},Ae=j([].concat),Ce=q("Reflect","ownKeys")||function(t){var e=ke.f(Lt(t)),r=_e.f;return r?Ae(e,r(t)):e},Ne=function(t,e,r){for(var n=Ce(e),o=zt.f,i=Ct.f,a=0;a<n.length;a++){var u=n[a];ht(t,u)||r&&ht(r,u)||o(t,u,i(e,u))}},Ie=/#|\.prototype\./,De=function(t,e){var r=Fe[Le(t)];return r==Be||r!=Ue&&(U(e)?p(e):!!e)},Le=De.normalize=function(t){return String(t).replace(Ie,".").toLowerCase()},Fe=De.data={},Ue=De.NATIVE="N",Be=De.POLYFILL="P",Me=De,qe=Ct.f,He=function(t,e){var r,n,o,i,a,u=t.target,s=t.global,c=t.stat;if(r=s?l:c?l[u]||ut(u,{}):(l[u]||{}).prototype)for(n in e){if(i=e[n],o=t.dontCallGetSet?(a=qe(r,n))&&a.value:r[n],!Me(s?n:u+(c?".":"#")+n,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Ne(i,o)}(t.sham||o&&o.sham)&&Jt(i,"sham",!0),pe(r,n,i,t)}},ze=Object.keys||function(t){return Re(t,Te)};He({target:"Object",stat:!0,forced:p((function(){ze(1)}))},{keys:function(t){return ze(pt(t))}});var Je=j([].slice),Ge=Function,We=j([].concat),Ve=j([].join),Ke={},Qe=h?Ge.bind:function(t){var e=nt(this),r=e.prototype,n=Je(arguments,1),o=function(){var r=We(n,Je(arguments));return this instanceof o?function(t,e,r){if(!ht(Ke,e)){for(var n=[],o=0;o<e;o++)n[o]="a["+o+"]";Ke[e]=Ge("C,a","return new C("+Ve(n,",")+")")}return Ke[e](t,r)}(e,r.length,r):e.apply(t,r)};return M(r)&&(o.prototype=r),o};He({target:"Function",proto:!0,forced:Function.bind!==Qe},{bind:Qe});var $e,Xe=d&&!Nt?Object.defineProperties:function(t,e){Lt(t);for(var r,n=I(e),o=ze(e),i=o.length,a=0;i>a;)zt.f(t,r=o[a++],n[r]);return t},Ye={f:Xe},Ze=q("document","documentElement"),tr="prototype",er="script",rr=ne("IE_PROTO"),nr=function(){},or=function(t){return"<"+er+">"+t+"</"+er+">"},ir=function(t){t.write(or("")),t.close();var e=t.parentWindow.Object;return t=null,e},ar=function(){try{$e=new ActiveXObject("htmlfile")}catch(t){}var t,e,r;ar="undefined"!=typeof document?document.domain&&$e?ir($e):(e=kt("iframe"),r="java"+er+":",e.style.display="none",Ze.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(or("document.F=Object")),t.close(),t.F):ir($e);for(var n=Te.length;n--;)delete ar[tr][Te[n]];return ar()};oe[rr]=!0;var ur=Object.create||function(t,e){var r;return null!==t?(nr[tr]=Lt(t),r=new nr,nr[tr]=null,r[rr]=t):r=ar(),void 0===e?r:Ye.f(r,e)},sr=zt.f,cr=Et("unscopables"),fr=Array.prototype;null==fr[cr]&&sr(fr,cr,{configurable:!0,value:ur(null)});var lr,pr=Se.includes;He({target:"Array",proto:!0,forced:p((function(){return!Array(1).includes()}))},{includes:function(t){return pr(this,t,arguments.length>1?arguments[1]:void 0)}}),lr="includes",fr[cr][lr]=!0;var dr={};dr[Et("toStringTag")]="z";var hr="[object z]"===String(dr),vr=Et("toStringTag"),mr=Object,yr="Arguments"==T(function(){return arguments}()),gr=hr?T:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=mr(t),vr))?r:yr?T(e):"Object"==(n=T(e))&&U(e.callee)?"Arguments":n},br=hr?{}.toString:function(){return"[object "+gr(this)+"]"};hr||pe(Object.prototype,"toString",br,{unsafe:!0});var wr="undefined"!=typeof process&&"process"==T(process),Or=String,Er=TypeError,Sr=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{t=function(t,e,r){try{return j(nt(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(t){}}(Object.prototype,"__proto__","set"),t(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return Lt(r),function(t){if("object"==typeof t||U(t))return t;throw Er("Can't set "+Or(t)+" as a prototype")}(n),e?t(r,n):r.__proto__=n,r}}():void 0),jr=zt.f,xr=Et("toStringTag"),Rr=Et("species"),Tr=TypeError,Pr=function(){},kr=[],_r=q("Reflect","construct"),Ar=/^\s*(?:class|function)\b/,Cr=j(Ar.exec),Nr=!Ar.exec(Pr),Ir=function(t){if(!U(t))return!1;try{return _r(Pr,kr,t),!0}catch(t){return!1}},Dr=function(t){if(!U(t))return!1;switch(gr(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Nr||!!Cr(Ar,Zt(t))}catch(t){return!0}};Dr.sham=!0;var Lr,Fr,Ur,Br,Mr=!_r||p((function(){var t;return Ir(Ir.call)||!Ir(Object)||!Ir((function(){t=!0}))||t}))?Dr:Ir,qr=TypeError,Hr=Et("species"),zr=function(t,e){var r,n=Lt(t).constructor;return void 0===n||A(r=Lt(n)[Hr])?e:function(t){if(Mr(t))return t;throw qr(et(t)+" is not a constructor")}(r)},Jr=Function.prototype,Gr=Jr.apply,Wr=Jr.call,Vr="object"==typeof Reflect&&Reflect.apply||(h?Wr.bind(Gr):function(){return Wr.apply(Gr,arguments)}),Kr=function(t){if("Function"===T(t))return j(t)},Qr=Kr(Kr.bind),$r=function(t,e){return nt(t),void 0===e?t:h?Qr(t,e):function(){return t.apply(e,arguments)}},Xr=TypeError,Yr=/(?:ipad|iphone|ipod).*applewebkit/i.test(z),Zr=l.setImmediate,tn=l.clearImmediate,en=l.process,rn=l.Dispatch,nn=l.Function,on=l.MessageChannel,an=l.String,un=0,sn={},cn="onreadystatechange";p((function(){Lr=l.location}));var fn=function(t){if(ht(sn,t)){var e=sn[t];delete sn[t],e()}},ln=function(t){return function(){fn(t)}},pn=function(t){fn(t.data)},dn=function(t){l.postMessage(an(t),Lr.protocol+"//"+Lr.host)};Zr&&tn||(Zr=function(t){!function(t,e){if(t<e)throw Xr("Not enough arguments")}(arguments.length,1);var e=U(t)?t:nn(t),r=Je(arguments,1);return sn[++un]=function(){Vr(e,void 0,r)},Fr(un),un},tn=function(t){delete sn[t]},wr?Fr=function(t){en.nextTick(ln(t))}:rn&&rn.now?Fr=function(t){rn.now(ln(t))}:on&&!Yr?(Br=(Ur=new on).port2,Ur.port1.onmessage=pn,Fr=$r(Br.postMessage,Br)):l.addEventListener&&U(l.postMessage)&&!l.importScripts&&Lr&&"file:"!==Lr.protocol&&!p(dn)?(Fr=dn,l.addEventListener("message",pn,!1)):Fr=cn in kt("script")?function(t){Ze.appendChild(kt("script"))[cn]=function(){Ze.removeChild(this),fn(t)}}:function(t){setTimeout(ln(t),0)});var hn={set:Zr,clear:tn},vn=function(){this.head=null,this.tail=null};vn.prototype={add:function(t){var e={item:t,next:null},r=this.tail;r?r.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}};var mn,yn,gn,bn,wn,On=vn,En=/ipad|iphone|ipod/i.test(z)&&"undefined"!=typeof Pebble,Sn=/web0s(?!.*chrome)/i.test(z),jn=Ct.f,xn=hn.set,Rn=l.MutationObserver||l.WebKitMutationObserver,Tn=l.document,Pn=l.process,kn=l.Promise,_n=jn(l,"queueMicrotask"),An=_n&&_n.value;if(!An){var Cn=new On,Nn=function(){var t,e;for(wr&&(t=Pn.domain)&&t.exit();e=Cn.get();)try{e()}catch(t){throw Cn.head&&mn(),t}t&&t.enter()};Yr||wr||Sn||!Rn||!Tn?!En&&kn&&kn.resolve?((bn=kn.resolve(void 0)).constructor=kn,wn=$r(bn.then,bn),mn=function(){wn(Nn)}):wr?mn=function(){Pn.nextTick(Nn)}:(xn=$r(xn,l),mn=function(){xn(Nn)}):(yn=!0,gn=Tn.createTextNode(""),new Rn(Nn).observe(gn,{characterData:!0}),mn=function(){gn.data=yn=!yn}),An=function(t){Cn.head||mn(),Cn.add(t)}}var In=An,Dn=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}},Ln=l.Promise,Fn="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,Un=!Fn&&!wr&&"object"==typeof window&&"object"==typeof document;Ln&&Ln.prototype;var Bn,Mn,qn,Hn,zn,Jn,Gn=Et("species"),Wn=!1,Vn=U(l.PromiseRejectionEvent),Kn=Me("Promise",(function(){var t=Zt(Ln),e=t!==String(Ln);if(!e&&66===K)return!0;if(!K||K<51||!/native code/.test(t)){var r=new Ln((function(t){t(1)})),n=function(t){t((function(){}),(function(){}))};if((r.constructor={})[Gn]=n,!(Wn=r.then((function(){}))instanceof n))return!0}return!e&&(Un||Fn)&&!Vn})),Qn={CONSTRUCTOR:Kn,REJECTION_EVENT:Vn,SUBCLASSING:Wn},$n=TypeError,Xn=function(t){var e,r;this.promise=new t((function(t,n){if(void 0!==e||void 0!==r)throw $n("Bad Promise constructor");e=t,r=n})),this.resolve=nt(e),this.reject=nt(r)},Yn={f:function(t){return new Xn(t)}},Zn=hn.set,to="Promise",eo=Qn.CONSTRUCTOR,ro=Qn.REJECTION_EVENT,no=Qn.SUBCLASSING,oo=fe.getterFor(to),io=fe.set,ao=Ln&&Ln.prototype,uo=Ln,so=ao,co=l.TypeError,fo=l.document,lo=l.process,po=Yn.f,ho=po,vo=!!(fo&&fo.createEvent&&l.dispatchEvent),mo="unhandledrejection",yo=function(t){var e;return!(!M(t)||!U(e=t.then))&&e},go=function(t,e){var r,n,o,i=e.value,a=1==e.state,u=a?t.ok:t.fail,s=t.resolve,c=t.reject,f=t.domain;try{u?(a||(2===e.rejection&&So(e),e.rejection=1),!0===u?r=i:(f&&f.enter(),r=u(i),f&&(f.exit(),o=!0)),r===t.promise?c(co("Promise-chain cycle")):(n=yo(r))?m(n,r,s,c):s(r)):c(i)}catch(t){f&&!o&&f.exit(),c(t)}},bo=function(t,e){t.notified||(t.notified=!0,In((function(){for(var r,n=t.reactions;r=n.get();)go(r,t);t.notified=!1,e&&!t.rejection&&Oo(t)})))},wo=function(t,e,r){var n,o;vo?((n=fo.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),l.dispatchEvent(n)):n={promise:e,reason:r},!ro&&(o=l["on"+t])?o(n):t===mo&&function(t,e){try{1==arguments.length?console.error(t):console.error(t,e)}catch(t){}}("Unhandled promise rejection",r)},Oo=function(t){m(Zn,l,(function(){var e,r=t.facade,n=t.value;if(Eo(t)&&(e=Dn((function(){wr?lo.emit("unhandledRejection",n,r):wo(mo,r,n)})),t.rejection=wr||Eo(t)?2:1,e.error))throw e.value}))},Eo=function(t){return 1!==t.rejection&&!t.parent},So=function(t){m(Zn,l,(function(){var e=t.facade;wr?lo.emit("rejectionHandled",e):wo("rejectionhandled",e,t.value)}))},jo=function(t,e,r){return function(n){t(e,n,r)}},xo=function(t,e,r){t.done||(t.done=!0,r&&(t=r),t.value=e,t.state=2,bo(t,!0))},Ro=function(t,e,r){if(!t.done){t.done=!0,r&&(t=r);try{if(t.facade===e)throw co("Promise can't be resolved itself");var n=yo(e);n?In((function(){var r={done:!1};try{m(n,e,jo(Ro,r,t),jo(xo,r,t))}catch(e){xo(r,e,t)}})):(t.value=e,t.state=1,bo(t,!1))}catch(e){xo({done:!1},e,t)}}};if(eo&&(so=(uo=function(t){!function(t,e){if(H(e,t))return t;throw Tr("Incorrect invocation")}(this,so),nt(t),m(Bn,this);var e=oo(this);try{t(jo(Ro,e),jo(xo,e))}catch(t){xo(e,t)}}).prototype,(Bn=function(t){io(this,{type:to,done:!1,notified:!1,parent:!1,reactions:new On,rejection:!1,state:0,value:void 0})}).prototype=pe(so,"then",(function(t,e){var r=oo(this),n=po(zr(this,uo));return r.parent=!0,n.ok=!U(t)||t,n.fail=U(e)&&e,n.domain=wr?lo.domain:void 0,0==r.state?r.reactions.add(n):In((function(){go(n,r)})),n.promise})),Mn=function(){var t=new Bn,e=oo(t);this.promise=t,this.resolve=jo(Ro,e),this.reject=jo(xo,e)},Yn.f=po=function(t){return t===uo||undefined===t?new Mn(t):ho(t)},U(Ln)&&ao!==Object.prototype)){qn=ao.then,no||pe(ao,"then",(function(t,e){var r=this;return new uo((function(t,e){m(qn,r,t,e)})).then(t,e)}),{unsafe:!0});try{delete ao.constructor}catch(t){}Sr&&Sr(ao,so)}He({global:!0,constructor:!0,wrap:!0,forced:eo},{Promise:uo}),zn=to,Jn=!1,(Hn=uo)&&!Jn&&(Hn=Hn.prototype),Hn&&!ht(Hn,xr)&&jr(Hn,xr,{configurable:!0,value:zn}),function(t){var e,r,n,o=q(t);d&&o&&!o[Rr]&&(e=o,r=Rr,(n={configurable:!0,get:function(){return this}}).get&&le(n.get,r,{getter:!0}),n.set&&le(n.set,r,{setter:!0}),zt.f(e,r,n))}(to);var To={},Po=Et("iterator"),ko=Array.prototype,_o=Et("iterator"),Ao=function(t){if(!A(t))return ot(t,_o)||ot(t,"@@iterator")||To[gr(t)]},Co=TypeError,No=function(t,e,r){var n,o;Lt(t);try{if(!(n=ot(t,"return"))){if("throw"===e)throw r;return r}n=m(n,t)}catch(t){o=!0,n=t}if("throw"===e)throw r;if(o)throw n;return Lt(n),r},Io=TypeError,Do=function(t,e){this.stopped=t,this.result=e},Lo=Do.prototype,Fo=function(t,e,r){var n,o,i,a,u,s,c,f,l=r&&r.that,p=!(!r||!r.AS_ENTRIES),d=!(!r||!r.IS_RECORD),h=!(!r||!r.IS_ITERATOR),v=!(!r||!r.INTERRUPTED),y=$r(e,l),g=function(t){return n&&No(n,"normal",t),new Do(!0,t)},b=function(t){return p?(Lt(t),v?y(t[0],t[1],g):y(t[0],t[1])):v?y(t,g):y(t)};if(d)n=t.iterator;else if(h)n=t;else{if(!(o=Ao(t)))throw Io(et(t)+" is not iterable");if(void 0!==(f=o)&&(To.Array===f||ko[Po]===f)){for(i=0,a=Oe(t);a>i;i++)if((u=b(t[i]))&&H(Lo,u))return u;return new Do(!1)}n=function(t,e){var r=arguments.length<2?Ao(t):e;if(nt(r))return Lt(m(r,t));throw Co(et(t)+" is not iterable")}(t,o)}for(s=d?t.next:n.next;!(c=m(s,n)).done;){try{u=b(c.value)}catch(t){No(n,"throw",t)}if("object"==typeof u&&u&&H(Lo,u))return u}return new Do(!1)},Uo=Et("iterator"),Bo=!1;try{var Mo=0,qo={next:function(){return{done:!!Mo++}},return:function(){Bo=!0}};qo[Uo]=function(){return this},Array.from(qo,(function(){throw 2}))}catch(t){}var Ho=Qn.CONSTRUCTOR||!function(t,e){if(!e&&!Bo)return!1;var r=!1;try{var n={};n[Uo]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(t){}return r}((function(t){Ln.all(t).then(void 0,(function(){}))}));He({target:"Promise",stat:!0,forced:Ho},{all:function(t){var e=this,r=Yn.f(e),n=r.resolve,o=r.reject,i=Dn((function(){var r=nt(e.resolve),i=[],a=0,u=1;Fo(t,(function(t){var s=a++,c=!1;u++,m(r,e,t).then((function(t){c||(c=!0,i[s]=t,--u||n(i))}),o)})),--u||n(i)}));return i.error&&o(i.value),r.promise}});var zo=Qn.CONSTRUCTOR,Jo=Ln&&Ln.prototype;if(He({target:"Promise",proto:!0,forced:zo,real:!0},{catch:function(t){return this.then(void 0,t)}}),U(Ln)){var Go=q("Promise").prototype.catch;Jo.catch!==Go&&pe(Jo,"catch",Go,{unsafe:!0})}He({target:"Promise",stat:!0,forced:Ho},{race:function(t){var e=this,r=Yn.f(e),n=r.reject,o=Dn((function(){var o=nt(e.resolve);Fo(t,(function(t){m(o,e,t).then(r.resolve,n)}))}));return o.error&&n(o.value),r.promise}}),He({target:"Promise",stat:!0,forced:Qn.CONSTRUCTOR},{reject:function(t){var e=Yn.f(this);return m(e.reject,void 0,t),e.promise}});var Wo=Qn.CONSTRUCTOR;q("Promise"),He({target:"Promise",stat:!0,forced:Wo},{resolve:function(t){return function(t,e){if(Lt(t),M(e)&&e.constructor===t)return e;var r=Yn.f(t);return(0,r.resolve)(e),r.promise}(this,t)}});var Vo=Object.assign,Ko=Object.defineProperty,Qo=j([].concat),$o=!Vo||p((function(){if(d&&1!==Vo({b:1},Vo(Ko({},"a",{enumerable:!0,get:function(){Ko(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach((function(t){e[t]=t})),7!=Vo({},t)[r]||ze(Vo({},e)).join("")!=n}))?function(t,e){for(var r=pt(t),n=arguments.length,o=1,i=_e.f,a=b.f;n>o;)for(var u,s=_(arguments[o++]),c=i?Qo(ze(s),i(s)):ze(s),f=c.length,l=0;f>l;)u=c[l++],d&&!m(a,s,u)||(r[u]=s[u]);return r}:Vo;He({target:"Object",stat:!0,arity:2,forced:Object.assign!==$o},{assign:$o});var Xo,Yo=Array.isArray||function(t){return"Array"==T(t)},Zo=function(t,e,r){var n=Rt(e);n in t?zt.f(t,n,w(0,r)):t[n]=r},ti=Et("species"),ei=(Xo="slice",K>=51||!p((function(){var t=[];return(t.constructor={})[ti]=function(){return{foo:1}},1!==t[Xo](Boolean).foo}))),ri=Et("species"),ni=Array,oi=Math.max;He({target:"Array",proto:!0,forced:!ei},{slice:function(t,e){var r,n,o,i=I(this),a=Oe(i),u=be(t,a),s=be(void 0===e?a:e,a);if(Yo(i)&&(r=i.constructor,(Mr(r)&&(r===ni||Yo(r.prototype))||M(r)&&null===(r=r[ri]))&&(r=void 0),r===ni||void 0===r))return Je(i,u,s);for(n=new(void 0===r?ni:r)(oi(s-u,0)),o=0;u<s;u++,o++)u in i&&Zo(n,o,i[u]);return n.length=o,n}}),He({target:"Array",stat:!0},{isArray:Yo});var ii=Date.prototype,ai="Invalid Date",ui="toString",si=j(ii[ui]),ci=j(ii.getTime);String(new Date(NaN))!=ai&&pe(ii,ui,(function(){var t=ci(this);return t==t?si(this):ai}));var fi=String,li=function(t){if("Symbol"===gr(t))throw TypeError("Cannot convert a Symbol value to a string");return fi(t)},pi=function(){var t=Lt(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},di=RegExp.prototype,hi=Kt.PROPER,vi="toString",mi=RegExp.prototype[vi],yi=p((function(){return"/a/b"!=mi.call({source:"a",flags:"b"})})),gi=hi&&mi.name!=vi;(yi||gi)&&pe(RegExp.prototype,vi,(function(){var t=Lt(this),e=li(t.source),r=li(function(t){var e=t.flags;return void 0!==e||"flags"in di||ht(t,"flags")||!H(di,t)?e:m(pi,t)}(t));return"/"+e+"/"+r}),{unsafe:!0});var bi="\t\n\v\f\r \u2028\u2029\ufeff",wi=j("".replace),Oi=RegExp("^["+bi+"]+"),Ei=RegExp("(^|[^"+bi+"])["+bi+"]+$"),Si=function(t){return function(e){var r=li(N(e));return 1&t&&(r=wi(r,Oi,"")),2&t&&(r=wi(r,Ei,"$1")),r}},ji={start:Si(1),end:Si(2),trim:Si(3)}.trim,xi=l.parseInt,Ri=l.Symbol,Ti=Ri&&Ri.iterator,Pi=/^[+-]?0x/i,ki=j(Pi.exec),_i=8!==xi(bi+"08")||22!==xi(bi+"0x16")||Ti&&!p((function(){xi(Object(Ti))}))?function(t,e){var r=ji(li(t));return xi(r,e>>>0||(ki(Pi,r)?16:10))}:xi;He({global:!0,forced:parseInt!=_i},{parseInt:_i});var Ai=u((function(t,e){t.exports=function(){function t(e){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(e)}function e(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function n(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i=[],a=!0,u=!1;try{for(r=r.call(t);!(a=(n=r.next()).done)&&(i.push(n.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return i}}(t,e)||function(t,e){if(t){if("string"==typeof t)return i(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function u(t,e){return function(){return t.apply(e,arguments)}}var s,c=Object.prototype.toString,f=Object.getPrototypeOf,l=(s=Object.create(null),function(t){var e=c.call(t);return s[e]||(s[e]=e.slice(8,-1).toLowerCase())}),p=function(t){return t=t.toLowerCase(),function(e){return l(e)===t}},d=function(e){return function(r){return t(r)===e}},h=Array.isArray,v=d("undefined"),m=p("ArrayBuffer"),y=d("string"),g=d("function"),b=d("number"),w=function(e){return null!==e&&"object"===t(e)},O=function(t){if("object"!==l(t))return!1;var e=f(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||Symbol.toStringTag in t||Symbol.iterator in t)},E=p("Date"),S=p("File"),j=p("Blob"),x=p("FileList"),R=p("URLSearchParams");function T(e,r){var n,o,i=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).allOwnKeys,a=void 0!==i&&i;if(null!=e)if("object"!==t(e)&&(e=[e]),h(e))for(n=0,o=e.length;n<o;n++)r.call(null,e[n],n,e);else{var u,s=a?Object.getOwnPropertyNames(e):Object.keys(e),c=s.length;for(n=0;n<c;n++)u=s[n],r.call(null,e[u],u,e)}}function P(t,e){e=e.toLowerCase();for(var r,n=Object.keys(t),o=n.length;o-- >0;)if(e===(r=n[o]).toLowerCase())return r;return null}var k,_="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:a,A=function(t){return!v(t)&&t!==_},C=(k="undefined"!=typeof Uint8Array&&f(Uint8Array),function(t){return k&&t instanceof k}),N=p("HTMLFormElement"),I=function(t){var e=Object.prototype.hasOwnProperty;return function(t,r){return e.call(t,r)}}(),D=p("RegExp"),L=function(t,e){var r=Object.getOwnPropertyDescriptors(t),n={};T(r,(function(r,o){!1!==e(r,o,t)&&(n[o]=r)})),Object.defineProperties(t,n)},F="abcdefghijklmnopqrstuvwxyz",U="0123456789",B={DIGIT:U,ALPHA:F,ALPHA_DIGIT:F+F.toUpperCase()+U},M=p("AsyncFunction"),q={isArray:h,isArrayBuffer:m,isBuffer:function(t){return null!==t&&!v(t)&&null!==t.constructor&&!v(t.constructor)&&g(t.constructor.isBuffer)&&t.constructor.isBuffer(t)},isFormData:function(t){var e;return t&&("function"==typeof FormData&&t instanceof FormData||g(t.append)&&("formdata"===(e=l(t))||"object"===e&&g(t.toString)&&"[object FormData]"===t.toString()))},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&m(t.buffer)},isString:y,isNumber:b,isBoolean:function(t){return!0===t||!1===t},isObject:w,isPlainObject:O,isUndefined:v,isDate:E,isFile:S,isBlob:j,isRegExp:D,isFunction:g,isStream:function(t){return w(t)&&g(t.pipe)},isURLSearchParams:R,isTypedArray:C,isFileList:x,forEach:T,merge:function t(){for(var e=(A(this)&&this||{}).caseless,r={},n=function(n,o){var i=e&&P(r,o)||o;O(r[i])&&O(n)?r[i]=t(r[i],n):O(n)?r[i]=t({},n):h(n)?r[i]=n.slice():r[i]=n},o=0,i=arguments.length;o<i;o++)arguments[o]&&T(arguments[o],n);return r},extend:function(t,e,r){return T(e,(function(e,n){r&&g(e)?t[n]=u(e,r):t[n]=e}),{allOwnKeys:(arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}).allOwnKeys}),t},trim:function(t){return t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t},inherits:function(t,e,r,n){t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r)},toFlatObject:function(t,e,r,n){var o,i,a,u={};if(e=e||{},null==t)return e;do{for(i=(o=Object.getOwnPropertyNames(t)).length;i-- >0;)a=o[i],n&&!n(a,t,e)||u[a]||(e[a]=t[a],u[a]=!0);t=!1!==r&&f(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},kindOf:l,kindOfTest:p,endsWith:function(t,e,r){t=String(t),(void 0===r||r>t.length)&&(r=t.length),r-=e.length;var n=t.indexOf(e,r);return-1!==n&&n===r},toArray:function(t){if(!t)return null;if(h(t))return t;var e=t.length;if(!b(e))return null;for(var r=new Array(e);e-- >0;)r[e]=t[e];return r},forEachEntry:function(t,e){for(var r,n=(t&&t[Symbol.iterator]).call(t);(r=n.next())&&!r.done;){var o=r.value;e.call(t,o[0],o[1])}},matchAll:function(t,e){for(var r,n=[];null!==(r=t.exec(e));)n.push(r);return n},isHTMLForm:N,hasOwnProperty:I,hasOwnProp:I,reduceDescriptors:L,freezeMethods:function(t){L(t,(function(e,r){if(g(t)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;var n=t[r];g(n)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=function(){throw Error("Can not rewrite read-only method '"+r+"'")}))}))},toObjectSet:function(t,e){var r={},n=function(t){t.forEach((function(t){r[t]=!0}))};return h(t)?n(t):n(String(t).split(e)),r},toCamelCase:function(t){return t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(t,e,r){return e.toUpperCase()+r}))},noop:function(){},toFiniteNumber:function(t,e){return t=+t,Number.isFinite(t)?t:e},findKey:P,global:_,isContextDefined:A,ALPHABET:B,generateString:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:16,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:B.ALPHA_DIGIT,r="",n=e.length;t--;)r+=e[Math.random()*n|0];return r},isSpecCompliantForm:function(t){return!!(t&&g(t.append)&&"FormData"===t[Symbol.toStringTag]&&t[Symbol.iterator])},toJSONObject:function(t){var e=new Array(10);return function t(r,n){if(w(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[n]=r;var o=h(r)?[]:{};return T(r,(function(e,r){var i=t(e,n+1);!v(i)&&(o[r]=i)})),e[n]=void 0,o}}return r}(t,0)},isAsyncFn:M,isThenable:function(t){return t&&(w(t)||g(t))&&g(t.then)&&g(t.catch)}};function H(t,e,r,n,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,this.name="AxiosError",e&&(this.code=e),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}q.inherits(H,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:q.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var z=H.prototype,J={};function G(t){return q.isPlainObject(t)||q.isArray(t)}function W(t){return q.endsWith(t,"[]")?t.slice(0,-2):t}function V(t,e,r){return t?t.concat(e).map((function(t,e){return t=W(t),!r&&e?"["+t+"]":t})).join(r?".":""):e}["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((function(t){J[t]={value:t}})),Object.defineProperties(H,J),Object.defineProperty(z,"isAxiosError",{value:!0}),H.from=function(t,e,r,n,o,i){var a=Object.create(z);return q.toFlatObject(t,a,(function(t){return t!==Error.prototype}),(function(t){return"isAxiosError"!==t})),H.call(a,t.message,e,r,n,o),a.cause=t,a.name=t.name,i&&Object.assign(a,i),a};var K=q.toFlatObject(q,{},null,(function(t){return/^is[A-Z]/.test(t)}));function Q(e,r,n){if(!q.isObject(e))throw new TypeError("target must be an object");r=r||new FormData;var o=(n=q.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(t,e){return!q.isUndefined(e[t])}))).metaTokens,i=n.visitor||f,a=n.dots,u=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&q.isSpecCompliantForm(r);if(!q.isFunction(i))throw new TypeError("visitor must be a function");function c(t){if(null===t)return"";if(q.isDate(t))return t.toISOString();if(!s&&q.isBlob(t))throw new H("Blob is not supported. Use a Buffer instead.");return q.isArrayBuffer(t)||q.isTypedArray(t)?s&&"function"==typeof Blob?new Blob([t]):Buffer.from(t):t}function f(e,n,i){var s=e;if(e&&!i&&"object"===t(e))if(q.endsWith(n,"{}"))n=o?n:n.slice(0,-2),e=JSON.stringify(e);else if(q.isArray(e)&&function(t){return q.isArray(t)&&!t.some(G)}(e)||(q.isFileList(e)||q.endsWith(n,"[]"))&&(s=q.toArray(e)))return n=W(n),s.forEach((function(t,e){!q.isUndefined(t)&&null!==t&&r.append(!0===u?V([n],e,a):null===u?n:n+"[]",c(t))})),!1;return!!G(e)||(r.append(V(i,n,a),c(e)),!1)}var l=[],p=Object.assign(K,{defaultVisitor:f,convertValue:c,isVisitable:G});if(!q.isObject(e))throw new TypeError("data must be an object");return function t(e,n){if(!q.isUndefined(e)){if(-1!==l.indexOf(e))throw Error("Circular reference detected in "+n.join("."));l.push(e),q.forEach(e,(function(e,o){!0===(!(q.isUndefined(e)||null===e)&&i.call(r,e,q.isString(o)?o.trim():o,n,p))&&t(e,n?n.concat(o):[o])})),l.pop()}}(e),r}function $(t){var e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,(function(t){return e[t]}))}function X(t,e){this._pairs=[],t&&Q(t,this,e)}var Y=X.prototype;function Z(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function tt(t,e,r){if(!e)return t;var n,o=r&&r.encode||Z,i=r&&r.serialize;if(n=i?i(e,r):q.isURLSearchParams(e)?e.toString():new X(e,r).toString(o)){var a=t.indexOf("#");-1!==a&&(t=t.slice(0,a)),t+=(-1===t.indexOf("?")?"?":"&")+n}return t}Y.append=function(t,e){this._pairs.push([t,e])},Y.toString=function(t){var e=t?function(e){return t.call(this,e,$)}:$;return this._pairs.map((function(t){return e(t[0])+"="+e(t[1])}),"").join("&")};var et,rt=function(){function t(){e(this,t),this.handlers=[]}return n(t,[{key:"use",value:function(t,e,r){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}},{key:"eject",value:function(t){this.handlers[t]&&(this.handlers[t]=null)}},{key:"clear",value:function(){this.handlers&&(this.handlers=[])}},{key:"forEach",value:function(t){q.forEach(this.handlers,(function(e){null!==e&&t(e)}))}}]),t}(),nt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ot={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:X,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},isStandardBrowserEnv:("undefined"==typeof navigator||"ReactNative"!==(et=navigator.product)&&"NativeScript"!==et&&"NS"!==et)&&"undefined"!=typeof window&&"undefined"!=typeof document,isStandardBrowserWebWorkerEnv:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,protocols:["http","https","file","blob","url","data"]};function it(t){function e(t,r,n,o){var i=t[o++],a=Number.isFinite(+i),u=o>=t.length;return i=!i&&q.isArray(n)?n.length:i,u?(q.hasOwnProp(n,i)?n[i]=[n[i],r]:n[i]=r,!a):(n[i]&&q.isObject(n[i])||(n[i]=[]),e(t,r,n[i],o)&&q.isArray(n[i])&&(n[i]=function(t){var e,r,n={},o=Object.keys(t),i=o.length;for(e=0;e<i;e++)n[r=o[e]]=t[r];return n}(n[i])),!a)}if(q.isFormData(t)&&q.isFunction(t.entries)){var r={};return q.forEachEntry(t,(function(t,n){e(function(t){return q.matchAll(/\w+|\[(\w*)]/g,t).map((function(t){return"[]"===t[0]?"":t[1]||t[0]}))}(t),n,r,0)})),r}return null}var at={"Content-Type":void 0},ut={transitional:nt,adapter:["xhr","http"],transformRequest:[function(t,e){var r,n=e.getContentType()||"",o=n.indexOf("application/json")>-1,i=q.isObject(t);if(i&&q.isHTMLForm(t)&&(t=new FormData(t)),q.isFormData(t))return o&&o?JSON.stringify(it(t)):t;if(q.isArrayBuffer(t)||q.isBuffer(t)||q.isStream(t)||q.isFile(t)||q.isBlob(t))return t;if(q.isArrayBufferView(t))return t.buffer;if(q.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(t,e){return Q(t,new ot.classes.URLSearchParams,Object.assign({visitor:function(t,e,r,n){return ot.isNode&&q.isBuffer(t)?(this.append(e,t.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},e))}(t,this.formSerializer).toString();if((r=q.isFileList(t))||n.indexOf("multipart/form-data")>-1){var a=this.env&&this.env.FormData;return Q(r?{"files[]":t}:t,a&&new a,this.formSerializer)}}return i||o?(e.setContentType("application/json",!1),function(t,e,r){if(q.isString(t))try{return(e||JSON.parse)(t),q.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(r||JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){var e=this.transitional||ut.transitional,r=e&&e.forcedJSONParsing,n="json"===this.responseType;if(t&&q.isString(t)&&(r&&!this.responseType||n)){var o=!(e&&e.silentJSONParsing)&&n;try{return JSON.parse(t)}catch(t){if(o){if("SyntaxError"===t.name)throw H.from(t,H.ERR_BAD_RESPONSE,this,null,this.response);throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ot.classes.FormData,Blob:ot.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};q.forEach(["delete","get","head"],(function(t){ut.headers[t]={}})),q.forEach(["post","put","patch"],(function(t){ut.headers[t]=q.merge(at)}));var st=ut,ct=q.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"]),ft=Symbol("internals");function lt(t){return t&&String(t).trim().toLowerCase()}function pt(t){return!1===t||null==t?t:q.isArray(t)?t.map(pt):String(t)}function dt(t,e,r,n,o){return q.isFunction(n)?n.call(this,e,r):(o&&(e=r),q.isString(e)?q.isString(n)?-1!==e.indexOf(n):q.isRegExp(n)?n.test(e):void 0:void 0)}var ht=function(t,r){function i(t){e(this,i),t&&this.set(t)}return n(i,[{key:"set",value:function(t,e,r){var n=this;function o(t,e,r){var o=lt(e);if(!o)throw new Error("header name must be a non-empty string");var i=q.findKey(n,o);(!i||void 0===n[i]||!0===r||void 0===r&&!1!==n[i])&&(n[i||e]=pt(t))}var i,a,u,s,c,f=function(t,e){return q.forEach(t,(function(t,r){return o(t,r,e)}))};return q.isPlainObject(t)||t instanceof this.constructor?f(t,e):q.isString(t)&&(t=t.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim())?f((c={},(i=t)&&i.split("\n").forEach((function(t){s=t.indexOf(":"),a=t.substring(0,s).trim().toLowerCase(),u=t.substring(s+1).trim(),!a||c[a]&&ct[a]||("set-cookie"===a?c[a]?c[a].push(u):c[a]=[u]:c[a]=c[a]?c[a]+", "+u:u)})),c),e):null!=t&&o(e,t,r),this}},{key:"get",value:function(t,e){if(t=lt(t)){var r=q.findKey(this,t);if(r){var n=this[r];if(!e)return n;if(!0===e)return function(t){for(var e,r=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;e=n.exec(t);)r[e[1]]=e[2];return r}(n);if(q.isFunction(e))return e.call(this,n,r);if(q.isRegExp(e))return e.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}}},{key:"has",value:function(t,e){if(t=lt(t)){var r=q.findKey(this,t);return!(!r||void 0===this[r]||e&&!dt(0,this[r],r,e))}return!1}},{key:"delete",value:function(t,e){var r=this,n=!1;function o(t){if(t=lt(t)){var o=q.findKey(r,t);!o||e&&!dt(0,r[o],o,e)||(delete r[o],n=!0)}}return q.isArray(t)?t.forEach(o):o(t),n}},{key:"clear",value:function(t){for(var e=Object.keys(this),r=e.length,n=!1;r--;){var o=e[r];t&&!dt(0,this[o],o,t,!0)||(delete this[o],n=!0)}return n}},{key:"normalize",value:function(t){var e=this,r={};return q.forEach(this,(function(n,o){var i=q.findKey(r,o);if(i)return e[i]=pt(n),void delete e[o];var a=t?function(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(function(t,e,r){return e.toUpperCase()+r}))}(o):String(o).trim();a!==o&&delete e[o],e[a]=pt(n),r[a]=!0})),this}},{key:"concat",value:function(){for(var t,e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return(t=this.constructor).concat.apply(t,[this].concat(r))}},{key:"toJSON",value:function(t){var e=Object.create(null);return q.forEach(this,(function(r,n){null!=r&&!1!==r&&(e[n]=t&&q.isArray(r)?r.join(", "):r)})),e}},{key:Symbol.iterator,value:function(){return Object.entries(this.toJSON())[Symbol.iterator]()}},{key:"toString",value:function(){return Object.entries(this.toJSON()).map((function(t){var e=o(t,2);return e[0]+": "+e[1]})).join("\n")}},{key:Symbol.toStringTag,get:function(){return"AxiosHeaders"}}],[{key:"from",value:function(t){return t instanceof this?t:new this(t)}},{key:"concat",value:function(t){for(var e=new this(t),r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return n.forEach((function(t){return e.set(t)})),e}},{key:"accessor",value:function(t){var e=(this[ft]=this[ft]={accessors:{}}).accessors,r=this.prototype;function n(t){var n=lt(t);e[n]||(function(t,e){var r=q.toCamelCase(" "+e);["get","set","has"].forEach((function(n){Object.defineProperty(t,n+r,{value:function(t,r,o){return this[n].call(this,e,t,r,o)},configurable:!0})}))}(r,t),e[n]=!0)}return q.isArray(t)?t.forEach(n):n(t),this}}]),i}();ht.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),q.freezeMethods(ht.prototype),q.freezeMethods(ht);var vt=ht;function mt(t,e){var r=this||st,n=e||r,o=vt.from(n.headers),i=n.data;return q.forEach(t,(function(t){i=t.call(r,i,o.normalize(),e?e.status:void 0)})),o.normalize(),i}function yt(t){return!(!t||!t.__CANCEL__)}function gt(t,e,r){H.call(this,null==t?"canceled":t,H.ERR_CANCELED,e,r),this.name="CanceledError"}q.inherits(gt,H,{__CANCEL__:!0});var bt=ot.isStandardBrowserEnv?{write:function(t,e,r,n,o,i){var a=[];a.push(t+"="+encodeURIComponent(e)),q.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),q.isString(n)&&a.push("path="+n),q.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function wt(t,e){return t&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)?function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}(t,e):e}var Ot=ot.isStandardBrowserEnv?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function n(t){var n=t;return e&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{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 t=n(window.location.href),function(e){var r=q.isString(e)?n(e):e;return r.protocol===t.protocol&&r.host===t.host}}():function(){return!0};function Et(t,e){var r=0,n=function(t,e){t=t||10;var r,n=new Array(t),o=new Array(t),i=0,a=0;return e=void 0!==e?e:1e3,function(u){var s=Date.now(),c=o[a];r||(r=s),n[i]=u,o[i]=s;for(var f=a,l=0;f!==i;)l+=n[f++],f%=t;if((i=(i+1)%t)===a&&(a=(a+1)%t),!(s-r<e)){var p=c&&s-c;return p?Math.round(1e3*l/p):void 0}}}(50,250);return function(o){var i=o.loaded,a=o.lengthComputable?o.total:void 0,u=i-r,s=n(u);r=i;var c={loaded:i,total:a,progress:a?i/a:void 0,bytes:u,rate:s||void 0,estimated:s&&a&&i<=a?(a-i)/s:void 0,event:o};c[e?"download":"upload"]=!0,t(c)}}var St={http:null,xhr:"undefined"!=typeof XMLHttpRequest&&function(t){return new Promise((function(e,r){var n,o=t.data,i=vt.from(t.headers).normalize(),a=t.responseType;function u(){t.cancelToken&&t.cancelToken.unsubscribe(n),t.signal&&t.signal.removeEventListener("abort",n)}q.isFormData(o)&&(ot.isStandardBrowserEnv||ot.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.setContentType("multipart/form-data;",!1));var s=new XMLHttpRequest;if(t.auth){var c=t.auth.username||"",f=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";i.set("Authorization","Basic "+btoa(c+":"+f))}var l=wt(t.baseURL,t.url);function p(){if(s){var n=vt.from("getAllResponseHeaders"in s&&s.getAllResponseHeaders());!function(t,e,r){var n=r.config.validateStatus;r.status&&n&&!n(r.status)?e(new H("Request failed with status code "+r.status,[H.ERR_BAD_REQUEST,H.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):t(r)}((function(t){e(t),u()}),(function(t){r(t),u()}),{data:a&&"text"!==a&&"json"!==a?s.response:s.responseText,status:s.status,statusText:s.statusText,headers:n,config:t,request:s}),s=null}}if(s.open(t.method.toUpperCase(),tt(l,t.params,t.paramsSerializer),!0),s.timeout=t.timeout,"onloadend"in s?s.onloadend=p:s.onreadystatechange=function(){s&&4===s.readyState&&(0!==s.status||s.responseURL&&0===s.responseURL.indexOf("file:"))&&setTimeout(p)},s.onabort=function(){s&&(r(new H("Request aborted",H.ECONNABORTED,t,s)),s=null)},s.onerror=function(){r(new H("Network Error",H.ERR_NETWORK,t,s)),s=null},s.ontimeout=function(){var e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",n=t.transitional||nt;t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),r(new H(e,n.clarifyTimeoutError?H.ETIMEDOUT:H.ECONNABORTED,t,s)),s=null},ot.isStandardBrowserEnv){var d=(t.withCredentials||Ot(l))&&t.xsrfCookieName&&bt.read(t.xsrfCookieName);d&&i.set(t.xsrfHeaderName,d)}void 0===o&&i.setContentType(null),"setRequestHeader"in s&&q.forEach(i.toJSON(),(function(t,e){s.setRequestHeader(e,t)})),q.isUndefined(t.withCredentials)||(s.withCredentials=!!t.withCredentials),a&&"json"!==a&&(s.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&s.addEventListener("progress",Et(t.onDownloadProgress,!0)),"function"==typeof t.onUploadProgress&&s.upload&&s.upload.addEventListener("progress",Et(t.onUploadProgress)),(t.cancelToken||t.signal)&&(n=function(e){s&&(r(!e||e.type?new gt(null,t,s):e),s.abort(),s=null)},t.cancelToken&&t.cancelToken.subscribe(n),t.signal&&(t.signal.aborted?n():t.signal.addEventListener("abort",n)));var h,v=(h=/^([-+\w]{1,25})(:?\/\/|:)/.exec(l))&&h[1]||"";v&&-1===ot.protocols.indexOf(v)?r(new H("Unsupported protocol "+v+":",H.ERR_BAD_REQUEST,t)):s.send(o||null)}))}};q.forEach(St,(function(t,e){if(t){try{Object.defineProperty(t,"name",{value:e})}catch(t){}Object.defineProperty(t,"adapterName",{value:e})}}));var jt=function(t){for(var e,r,n=(t=q.isArray(t)?t:[t]).length,o=0;o<n&&(e=t[o],!(r=q.isString(e)?St[e.toLowerCase()]:e));o++);if(!r){if(!1===r)throw new H("Adapter ".concat(e," is not supported by the environment"),"ERR_NOT_SUPPORT");throw new Error(q.hasOwnProp(St,e)?"Adapter '".concat(e,"' is not available in the build"):"Unknown adapter '".concat(e,"'"))}if(!q.isFunction(r))throw new TypeError("adapter is not a function");return r};function xt(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new gt(null,t)}function Rt(t){return xt(t),t.headers=vt.from(t.headers),t.data=mt.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1),jt(t.adapter||st.adapter)(t).then((function(e){return xt(t),e.data=mt.call(t,t.transformResponse,e),e.headers=vt.from(e.headers),e}),(function(e){return yt(e)||(xt(t),e&&e.response&&(e.response.data=mt.call(t,t.transformResponse,e.response),e.response.headers=vt.from(e.response.headers))),Promise.reject(e)}))}var Tt=function(t){return t instanceof vt?t.toJSON():t};function Pt(t,e){e=e||{};var r={};function n(t,e,r){return q.isPlainObject(t)&&q.isPlainObject(e)?q.merge.call({caseless:r},t,e):q.isPlainObject(e)?q.merge({},e):q.isArray(e)?e.slice():e}function o(t,e,r){return q.isUndefined(e)?q.isUndefined(t)?void 0:n(void 0,t,r):n(t,e,r)}function i(t,e){if(!q.isUndefined(e))return n(void 0,e)}function a(t,e){return q.isUndefined(e)?q.isUndefined(t)?void 0:n(void 0,t):n(void 0,e)}function u(r,o,i){return i in e?n(r,o):i in t?n(void 0,r):void 0}var s={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:u,headers:function(t,e){return o(Tt(t),Tt(e),!0)}};return q.forEach(Object.keys(Object.assign({},t,e)),(function(n){var i=s[n]||o,a=i(t[n],e[n],n);q.isUndefined(a)&&i!==u||(r[n]=a)})),r}var kt="1.4.0",_t={};["object","boolean","number","function","string","symbol"].forEach((function(e,r){_t[e]=function(n){return t(n)===e||"a"+(r<1?"n ":" ")+e}}));var At={};_t.transitional=function(t,e,r){function n(t,e){return"[Axios v1.4.0] Transitional option '"+t+"'"+e+(r?". "+r:"")}return function(r,o,i){if(!1===t)throw new H(n(o," has been removed"+(e?" in "+e:"")),H.ERR_DEPRECATED);return e&&!At[o]&&(At[o]=!0,console.warn(n(o," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(r,o,i)}};var Ct={assertOptions:function(e,r,n){if("object"!==t(e))throw new H("options must be an object",H.ERR_BAD_OPTION_VALUE);for(var o=Object.keys(e),i=o.length;i-- >0;){var a=o[i],u=r[a];if(u){var s=e[a],c=void 0===s||u(s,a,e);if(!0!==c)throw new H("option "+a+" must be "+c,H.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new H("Unknown option "+a,H.ERR_BAD_OPTION)}},validators:_t},Nt=Ct.validators,It=function(){function t(r){e(this,t),this.defaults=r,this.interceptors={request:new rt,response:new rt}}return n(t,[{key:"request",value:function(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{};var r,n=e=Pt(this.defaults,e),o=n.transitional,i=n.paramsSerializer,a=n.headers;void 0!==o&&Ct.assertOptions(o,{silentJSONParsing:Nt.transitional(Nt.boolean),forcedJSONParsing:Nt.transitional(Nt.boolean),clarifyTimeoutError:Nt.transitional(Nt.boolean)},!1),null!=i&&(q.isFunction(i)?e.paramsSerializer={serialize:i}:Ct.assertOptions(i,{encode:Nt.function,serialize:Nt.function},!0)),e.method=(e.method||this.defaults.method||"get").toLowerCase(),(r=a&&q.merge(a.common,a[e.method]))&&q.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete a[t]})),e.headers=vt.concat(r,a);var u=[],s=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(s=s&&t.synchronous,u.unshift(t.fulfilled,t.rejected))}));var c,f=[];this.interceptors.response.forEach((function(t){f.push(t.fulfilled,t.rejected)}));var l,p=0;if(!s){var d=[Rt.bind(this),void 0];for(d.unshift.apply(d,u),d.push.apply(d,f),l=d.length,c=Promise.resolve(e);p<l;)c=c.then(d[p++],d[p++]);return c}l=u.length;var h=e;for(p=0;p<l;){var v=u[p++],m=u[p++];try{h=v(h)}catch(t){m.call(this,t);break}}try{c=Rt.call(this,h)}catch(t){return Promise.reject(t)}for(p=0,l=f.length;p<l;)c=c.then(f[p++],f[p++]);return c}},{key:"getUri",value:function(t){return tt(wt((t=Pt(this.defaults,t)).baseURL,t.url),t.params,t.paramsSerializer)}}]),t}();q.forEach(["delete","get","head","options"],(function(t){It.prototype[t]=function(e,r){return this.request(Pt(r||{},{method:t,url:e,data:(r||{}).data}))}})),q.forEach(["post","put","patch"],(function(t){function e(e){return function(r,n,o){return this.request(Pt(o||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}It.prototype[t]=e(),It.prototype[t+"Form"]=e(!0)}));var Dt=It,Lt=function(){function t(r){if(e(this,t),"function"!=typeof r)throw new TypeError("executor must be a function.");var n;this.promise=new Promise((function(t){n=t}));var o=this;this.promise.then((function(t){if(o._listeners){for(var e=o._listeners.length;e-- >0;)o._listeners[e](t);o._listeners=null}})),this.promise.then=function(t){var e,r=new Promise((function(t){o.subscribe(t),e=t})).then(t);return r.cancel=function(){o.unsubscribe(e)},r},r((function(t,e,r){o.reason||(o.reason=new gt(t,e,r),n(o.reason))}))}return n(t,[{key:"throwIfRequested",value:function(){if(this.reason)throw this.reason}},{key:"subscribe",value:function(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}},{key:"unsubscribe",value:function(t){if(this._listeners){var e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}}}],[{key:"source",value:function(){var e;return{token:new t((function(t){e=t})),cancel:e}}}]),t}(),Ft={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(Ft).forEach((function(t){var e=o(t,2),r=e[0],n=e[1];Ft[n]=r}));var Ut=Ft,Bt=function t(e){var r=new Dt(e),n=u(Dt.prototype.request,r);return q.extend(n,Dt.prototype,r,{allOwnKeys:!0}),q.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return t(Pt(e,r))},n}(st);return Bt.Axios=Dt,Bt.CanceledError=gt,Bt.CancelToken=Lt,Bt.isCancel=yt,Bt.VERSION=kt,Bt.toFormData=Q,Bt.AxiosError=H,Bt.Cancel=Bt.CanceledError,Bt.all=function(t){return Promise.all(t)},Bt.spread=function(t){return function(e){return t.apply(null,e)}},Bt.isAxiosError=function(t){return q.isObject(t)&&!0===t.isAxiosError},Bt.mergeConfig=Pt,Bt.AxiosHeaders=vt,Bt.formToJSON=function(t){return it(q.isHTMLForm(t)?new FormData(t):t)},Bt.HttpStatusCode=Ut,Bt.default=Bt,Bt}()})),Ci=Ai,Ni="http://127.0.0.1:11111",Ii="".concat(Ni,"/services/print"),Di="".concat(Ni,"/PrintLocal"),Li="".concat(Ni,"/download"),Fi={transtime:"20211105111933684",transtype:"SYSTEM",interfaceid:"120001",serialnumber:"f81166d2-c175-8cfc-82be-6bd336b5c132",operatorcode:"888",operatorname:"888",transcmd:"100000",transdata:{cmdid:8,reportid:280,formatid:"742",formatname:"血液入库单打印按钮",datamode:1,param:{id:"58"},UserInfo:{ID:"12"},datas:[]},transsystem:"10",transchannel:"100",verifycode:""},Ui=Ci.create({timeout:1e3,withCredentials:!1}),Bi=Ci.create({withCredentials:!1}),Mi=Ci.create({timeout:6e4,withCredentials:!1,headers:{"Content-Type":"application/x-www-form-urlencoded"}});var qi=function(){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e,r){(e=i(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(this,"messageHandlerQueue",[]),t&&null!=t&&t.PRINT_ORIGIN&&(Ni=t.PRINT_ORIGIN),this.webview=null;var r=window;try{var n,o;this.webview=r.top?null===(n=r.top.chrome)||void 0===n?void 0:n.webview:null===(o=r.chrome)||void 0===o?void 0:o.webview}catch(t){var a;console.log(t),this.webview=null===(a=r.chrome)||void 0===a?void 0:a.webview}this.webview&&(this.currentMessageHandler=this.messageHandler.bind(this),this.webview.addEventListener("message",this.currentMessageHandler),this.webview.postMessage({exec:"console",data:{msg:{test:"test"}}}))}var a,u,s,c,f,l,p,d,h,v,m,y,g,b;return a=e,u=[{key:"messageHandler",value:function(t){var e,r;if(!t)return console.log("当前回执",t,"接收到空的浏览器事件");try{!function(t){try{return JSON.parse(t),!0}catch(t){return!1}}(t.data)?this.webview=null:r=JSON.parse(t.data||"{}")}catch(t){console.log("解析e.data失败,"+t)}if(["print","pdf"].includes(null===(e=r)||void 0===e?void 0:e.cmd)){console.log("打印命令执行了",r);var n=this.messageHandlerQueue.shift();if(!n)return console.log("当前回执",t,"没有可用的handler");var o=n.resolve,i=n.reject;try{o(r.res||"")}catch(t){i(t)}}}},{key:"postMessage",value:(b=r(t().mark((function e(r){var n=this;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.webview){t.next=2;break}return t.abrupt("return",Promise.reject());case 2:return t.abrupt("return",new Promise(function(t,e){o(this,n),this.messageHandlerQueue.push({resolve:t,reject:e}),this.webview.postMessage(r)}.bind(this)));case 3:case"end":return t.stop()}}),e,this)}))),function(t){return b.apply(this,arguments)})},{key:"destroy",value:function(){this.webview&&this.currentMessageHandler&&(this.webview.removeEventListener("message",this.currentMessageHandler),this.currentMessageHandler=void 0)}},{key:"_testConnection",value:function(){var t=this;return this.webview?Promise.resolve(!0):new Promise(function(e){var r=this;o(this,t),Ui({url:"".concat(Ni,"/test"),method:"get",withCredentials:!1,params:{inputdata:JSON.stringify({result:"success"})}}).then(function(t){o(this,r),"success"===t.data.result?e(!0):e(!1)}.bind(this)).catch(function(t){o(this,r),e(!1)}.bind(this))}.bind(this))}},{key:"_queryServicesPrint",value:function(t){var e=this;return this.webview?this.postMessage({exec:"print",data:{inputData:t}}):Bi({url:Ii,method:"get",params:{inputData:JSON.stringify(t)}}).then(function(t){return o(this,e),t.data}.bind(this))}},{key:"_callPrintWithFile",value:function(t){var e=this,r={cmdid:"7",flag:"1"},n={inputData:JSON.stringify(Object.assign({},r,t))};return this.webview?this.postMessage({exec:"print",data:i(n)}):Bi({url:Di,method:"post",data:n,transformRequest:[i]}).then(function(t){return o(this,e),t.data}.bind(this));function i(t){var e="";for(var r in t)e+=encodeURIComponent(r)+"="+encodeURIComponent(t[r])+"&";return e=e.slice(0,-1)}}},{key:"_handleResult",value:function(t,e){if(!t){var r="打印命令返回空数据";return null==e||e({type:"printError",message:r,result:!1,errinfo:r}),!1}return"success"!==t.result?(e({type:"printError",message:t.message||t.Message,result:t.result,errinfo:t.errinfo}),!1):t}},{key:"_handleResultTest",value:function(t,e){return!!t||(console.log("notInstalledApp"),e({type:"notInstalledApp",message:"请打开打印服务器插件"}),!1)}},{key:"_handleEventQueryPrintData",value:(g=r(t().mark((function e(r,n,o,i){var a,u;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a={templateId:r,formatId:n,params:o,cmdid:"7"},t.next=3,this._queryServicesPrint(a);case 3:return u=t.sent,t.abrupt("return",this._handleQueryPrintDataResult(u,n,i));case 5:case"end":return t.stop()}}),e,this)}))),function(t,e,r,n){return g.apply(this,arguments)})},{key:"_handleQueryPrintDataResult",value:function(t,e,r){if(null==t||!t.file){try{var n=t.message||t.Message;console.log(n),r({type:"queryPrintDataFailure",message:n})}catch(t){console.log(t)}return!1}return{file:t.file,printerName:t.defprinter,pageCount:t.pagecount,formatId:e}}},{key:"_handleEventDirect",value:(y=r(t().mark((function e(r){var n,o,i,a,u,s,c,f,l;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=r.templateId,o=r.formatId,i=r.params,a=r.cmdid,u=r.print,s=r.printdlgshow,c=void 0===s?"1":s,f=r.nobillnode,l={templateId:n,formatId:o,params:i,cmdid:a,nobillnode:void 0===f?"1":f,printdlgshow:c},u){try{u=JSON.parse(u)}catch(t){}l.print=u}return t.next=5,this._queryServicesPrint(l);case 5:return t.abrupt("return",t.sent);case 6:case"end":return t.stop()}}),e,this)}))),function(t){return y.apply(this,arguments)})},{key:"_handleEventEditFormat",value:(m=r(t().mark((function e(r){var n,o,i,a,u,s,c,f,l;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=r.templateId,o=r.formatId,i=void 0===o?"":o,a=r.params,u=void 0===a?{}:a,s=r.token,c={},f={};try{f=Object.assign({},c,JSON.parse(u))}catch(t){f=c}return l={templateId:n,formatId:i,cmdid:"9",token:s,params:JSON.stringify(f)},t.next=7,this._queryServicesPrint(l);case 7:return t.abrupt("return",t.sent);case 8:case"end":return t.stop()}}),e,this)}))),function(t){return m.apply(this,arguments)})},{key:"preview",value:(v=r(t().mark((function e(r,n,o){var i,a,u,s,c,f,l;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=r.templateId,a=r.formatId,u=r.params,s=void 0===u?"":u,t.next=3,this._testConnection();case 3:if(c=t.sent,this._handleResultTest(c,o)){t.next=6;break}return t.abrupt("return",!1);case 6:return t.prev=6,t.next=9,this._handleEventDirect({templateId:i,formatId:a,params:s,cmdid:"8"});case 9:if(f=t.sent,l=this._handleResult(f,o)){t.next=13;break}return t.abrupt("return",!1);case 13:n&&n(l),t.next=20;break;case 16:t.prev=16,t.t0=t.catch(6),null==o||o({message:"预览失败"});case 20:case"end":return t.stop()}}),e,this,[[6,16]])}))),function(t,e,r){return v.apply(this,arguments)})},{key:"printDirect",value:(h=r(t().mark((function e(r,n,o){var i,a,u,s,c,f,l,p,d,h;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=r.templateId,a=r.formatId,u=r.params,s=void 0===u?"":u,c=r.print,f=r.printdlgshow,l=r.nobillnode,t.next=3,this._testConnection();case 3:if(p=t.sent,this._handleResultTest(p,o)){t.next=6;break}return t.abrupt("return",!1);case 6:return t.prev=6,t.next=9,this._handleEventDirect({templateId:i,formatId:a,params:s,cmdid:"7",print:c,printdlgshow:f,nobillnode:l});case 9:if(d=t.sent,h=this._handleResult(d,o)){t.next=13;break}return t.abrupt("return",!1);case 13:n&&n(h),t.next=20;break;case 16:t.prev=16,t.t0=t.catch(6),null==o||o({message:"打印失败"});case 20:case"end":return t.stop()}}),e,this,[[6,16]])}))),function(t,e,r){return h.apply(this,arguments)})},{key:"print",value:(d=r(t().mark((function e(r,n,o){var i,a,u,s,c,f;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=r.templateId,a=r.formatId,u=r.params,s=void 0===u?"":u,t.next=3,this._testConnection();case 3:if(c=t.sent,this._handleResultTest(c,o)){t.next=6;break}return t.abrupt("return",!1);case 6:return t.next=8,this.queryPrintData({templateId:i,formatId:a,params:s},null,o);case 8:if(f=t.sent,this.printFileData({formatId:a,file:f.file,printerName:f.printerName},null,o)){t.next=12;break}return t.abrupt("return",!1);case 12:n&&n(result);case 13:case"end":return t.stop()}}),e,this)}))),function(t,e,r){return d.apply(this,arguments)})},{key:"queryPrintData",value:(p=r(t().mark((function e(r,n,o){var i,a,u,s,c,f;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=r.templateId,a=r.formatId,u=r.params,s=void 0===u?"":u,t.next=3,this._testConnection();case 3:if(c=t.sent,this._handleResultTest(c,o)){t.next=6;break}return t.abrupt("return",!1);case 6:return t.next=8,this._handleEventQueryPrintData(i,a,s,o);case 8:if(f=t.sent){t.next=11;break}return t.abrupt("return",!1);case 11:return n&&n(f),t.abrupt("return",f);case 13:case"end":return t.stop()}}),e,this)}))),function(t,e,r){return p.apply(this,arguments)})},{key:"printFileData",value:(l=r(t().mark((function e(r,n,o){var i,a,u,s,c,f,l;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=r.formatId,a=r.file,u=r.printerName,s=void 0===u?"Default":u,t.next=3,this._testConnection();case 3:if(c=t.sent,this._handleResultTest(c,o)){t.next=6;break}return t.abrupt("return",!1);case 6:return t.next=8,this._callPrintWithFile({formatId:i,printname:s,file:a});case 8:if(f=t.sent,l=this._handleResult(f,o)){t.next=12;break}return t.abrupt("return",!1);case 12:return n&&n(l),t.abrupt("return",l);case 14:case"end":return t.stop()}}),e,this)}))),function(t,e,r){return l.apply(this,arguments)})},{key:"editPrintFormat",value:(f=r(t().mark((function e(r,n,o){var i,a,u,s,c,f,l;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=r.templateId,a=r.formatId,u=r.params,s=r.token,t.next=3,this._testConnection();case 3:if(c=t.sent,this._handleResultTest(c,o)){t.next=6;break}return t.abrupt("return",!1);case 6:return t.next=8,this._handleEventEditFormat({templateId:i,formatId:a,params:u,token:s});case 8:if(f=t.sent,l=this._handleResult(f,o)){t.next=12;break}return t.abrupt("return",!1);case 12:n&&n(l);case 13:case"end":return t.stop()}}),e,this)}))),function(t,e,r){return f.apply(this,arguments)})},{key:"addPrintFormat",value:(c=r(t().mark((function e(r,n,o){var i,a,u,s,c,f;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=r.templateId,a=r.params,u=r.token,t.next=3,this._testConnection();case 3:if(s=t.sent,this._handleResultTest(s,o)){t.next=6;break}return t.abrupt("return",!1);case 6:return t.next=8,this._handleEventEditFormat({templateId:i,params:a,token:u});case 8:if(c=t.sent,f=this._handleResult(c,o)){t.next=12;break}return t.abrupt("return",!1);case 12:n&&n(f);case 13:case"end":return t.stop()}}),e,this)}))),function(t,e,r){return c.apply(this,arguments)})},{key:"handleHisPrint",value:function(t,e){var r=this._getHisPrintParams(e);return r.transdata.cmdid=t,Mi({url:"http://127.0.0.1"+":".concat("8031","/HOInterfaceSvr"),method:"post",data:r})}},{key:"handleOldHisPrint",value:function(t,e){var r=this._getHisPrintParams(e);return r.transdata.cmdid=t,r.transdata.datamode=1,Mi({url:"http://127.0.0.1:802"+"/services/HisService?inputData=".concat(JSON.stringify(r.transdata)),method:"get"})}},{key:"_getHisPrintParams",value:function(t){var e=this._getTranstime(),r=this._getSerialnumber(),n=this._getOperatorcode(),o=this._getOperatorname(),i=this._getCookieUserId(),a=t.reportid,u=t.formatid,s=t.formatname,c=t.param;return Object.assign(Fi.transdata,{reportid:a,formatid:u,formatname:s,param:c,UserInfo:{ID:i}}),Object.assign({},Fi,{transtime:e,serialnumber:r,operatorcode:n,operatorname:o})}},{key:"_downloadPDF",value:function(t){var e=this;return this.webview?this.postMessage({exec:"pdf",data:{file:t}}):Bi.get(Li,{params:JSON.stringify({inputData:t})}).then(function(t){return o(this,e),t.data}.bind(this))}},{key:"downloadPDF",value:function(e,n,i){var a=this;this.printDirect(e,function(){var e=r(t().mark((function e(r){var o,u,s;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(s=function(t){var e=t?JSON.parse(t):"";return Array.isArray(e)&&e[0]||""},r||i(null),!a.webview){t.next=14;break}if(!r.filebase64){t.next=7;break}n(r),t.next=12;break;case 7:return o=s(r.filedir),t.next=10,a._downloadPDF(o);case 10:u=t.sent,n(u);case 12:t.next=15;break;case 14:n(r);case 15:case"end":return t.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),function(t){return o(this,a),i(t)}.bind(this))}},{key:"_getSerialnumber",value:function(){function t(){return(65536*(1+Math.random())|0).toString(16).substring(1)}return t()+t()+"-"+t()+"-"+t()+"-"+t()+"-"+t()+t()+t()}},{key:"_getOperatorcode",value:function(){return this._getCookie("loginName")||"9000"}},{key:"_getOperatorname",value:function(){return this._getCookie("trueName")||"%E4%BE%AF%E7%9B%BC%E7%9B%BC"}},{key:"_getCookieUserId",value:function(){return this._getCookie("userId")||122298}},{key:"_getTranstime",value:function(){return this._generateTimeReqestNumber()+parseInt(1e3*Math.random())}},{key:"_pad2",value:function(t){return t<10?"0"+t:t}},{key:"_generateTimeReqestNumber",value:function(){var t=new Date;return t.getFullYear().toString()+this._pad2(t.getMonth()+1)+this._pad2(t.getDate())+this._pad2(t.getHours())+this._pad2(t.getMinutes())+this._pad2(t.getSeconds())}},{key:"_getCookie",value:function(t){for(var e=document.cookie.split("; "),r=0;r<e.length;r++){var n=e[r].split("=");if(n[0]==t)return n[1]}}}],u&&n(a.prototype,u),s&&n(a,s),Object.defineProperty(a,"prototype",{writable:!1}),e}();export{qi as default};
|
|
@@ -72,9 +72,9 @@ export default {
|
|
|
72
72
|
// this.to = this.templateData.top?.xScalevalue?.to || 'body';
|
|
73
73
|
const { xScalevalue } = this.$attrs.templateData.top || {};
|
|
74
74
|
const { canvasWidth, spaceHeight, xCellWidth } = this.propItems;
|
|
75
|
-
this.cFabricChart = this.canvas.wrapperEl
|
|
75
|
+
this.cFabricChart = this.canvas.wrapperEl?.parentNode?.parentNode;
|
|
76
76
|
// this.bodyHeight = document.body.getBoundingClientRect().height;
|
|
77
|
-
|
|
77
|
+
|
|
78
78
|
this.popupStyle = {
|
|
79
79
|
left: `${this.cFabricChart?.getBoundingClientRect()?.left || 0}px`,
|
|
80
80
|
top: `${this.popupTop}px`,
|
|
@@ -203,14 +203,14 @@ export default {
|
|
|
203
203
|
},
|
|
204
204
|
// x轴每个网格每1px的毫秒值和每个网格刻度对应的时间戳和每个网格对应的像素px值,返回一个list数组
|
|
205
205
|
xScaleCellList() {
|
|
206
|
-
const {
|
|
206
|
+
const { spaceGridNumber = 3 } = this.templateData.top?.xScalevalue || {};
|
|
207
207
|
const list = [];
|
|
208
208
|
this.xScaleList.forEach((v, j) => {
|
|
209
209
|
if (this.xScaleList[j + 1]) {
|
|
210
|
-
const cellTime = (this.xScaleList[j + 1] - v) /
|
|
210
|
+
const cellTime = (this.xScaleList[j + 1] - v) / spaceGridNumber;
|
|
211
211
|
const scaleCellTime = cellTime / this.xCellWidth;
|
|
212
|
-
const left = this.originX + this.xCellWidth *
|
|
213
|
-
for (let i = 0; i <
|
|
212
|
+
const left = this.originX + this.xCellWidth * spaceGridNumber * j;
|
|
213
|
+
for (let i = 0; i < spaceGridNumber; i++) {
|
|
214
214
|
list.push({
|
|
215
215
|
x: left + i * this.xCellWidth, // 网格刻度对应的坐标值,单位px
|
|
216
216
|
time: v + i * cellTime, // 网格刻度对应的时间戳
|
|
@@ -174,8 +174,9 @@ export default {
|
|
|
174
174
|
const textList = [];
|
|
175
175
|
const totalWidth = canvasWidth - endX;
|
|
176
176
|
const left = endX + totalWidth / 2;
|
|
177
|
+
const yCellHeightTopHalf = yCellHeightTop / 2;
|
|
177
178
|
topTotalList.forEach((v, i) => {
|
|
178
|
-
const top = i * yCellHeightTop +
|
|
179
|
+
const top = i * yCellHeightTop + yCellHeightTopHalf + originYTop;
|
|
179
180
|
const text = v
|
|
180
181
|
? new this.fabric.Text(String(v), {
|
|
181
182
|
...defaultVaule.style,
|
|
@@ -195,7 +196,7 @@ export default {
|
|
|
195
196
|
textList.push(text);
|
|
196
197
|
}
|
|
197
198
|
if (topTotal.divider?.show) {
|
|
198
|
-
const dividerY =
|
|
199
|
+
const dividerY = top + yCellHeightTopHalf;
|
|
199
200
|
const divider = this.drawLine([endX, dividerY, endX + totalWidth, dividerY], topTotal.divider.style);
|
|
200
201
|
textList.push(divider);
|
|
201
202
|
}
|
|
@@ -360,6 +360,10 @@ export default create({
|
|
|
360
360
|
queryformBoldOpen() {
|
|
361
361
|
return this.$route.query?.formBoldOpen == 1;
|
|
362
362
|
},
|
|
363
|
+
// 分享出来的链接, 接口返回formBoldOpen
|
|
364
|
+
guageDataformBoldOpen() {
|
|
365
|
+
return this.guageData?.formBoldOpen == 1;
|
|
366
|
+
},
|
|
363
367
|
showEvatip() {
|
|
364
368
|
return function (item) {
|
|
365
369
|
if (!this.isEvaluation(item.type)) return false;
|
|
@@ -369,11 +373,12 @@ export default create({
|
|
|
369
373
|
isFormBoldOpen() {
|
|
370
374
|
return function (item) {
|
|
371
375
|
let res = item.required;
|
|
376
|
+
if(!res) return false;
|
|
372
377
|
// 量表未登录时 判断 url中是否有 formBoldOpen
|
|
373
378
|
if (!this.styleSetting || !Object.keys(this.styleSetting).length || !('formBoldOpen' in this.styleSetting)) {
|
|
374
|
-
return
|
|
379
|
+
return this.queryformBoldOpen || this.guageDataformBoldOpen;
|
|
375
380
|
}
|
|
376
|
-
return
|
|
381
|
+
return this.styleSetting.formBoldOpen;
|
|
377
382
|
};
|
|
378
383
|
},
|
|
379
384
|
scaleStyle() {
|
|
@@ -425,6 +425,8 @@ export default create({
|
|
|
425
425
|
data: {
|
|
426
426
|
immediate: true,
|
|
427
427
|
handler() {
|
|
428
|
+
this.$set(this.dataList, 'main', []);
|
|
429
|
+
this.$set(this.dataList, 'dept', []);
|
|
428
430
|
this.handleData();
|
|
429
431
|
this.staticDataInit();
|
|
430
432
|
this.staticDeptAndRoleDataInit();
|
|
@@ -1387,7 +1389,10 @@ export default create({
|
|
|
1387
1389
|
childKeys.push(item.key);
|
|
1388
1390
|
});
|
|
1389
1391
|
const allParentIds = getAllParentId(this.treeData[propStr], node.eventKey)?.filter(Boolean) || [];
|
|
1390
|
-
totalCheckedKeys = [...new Set(preChecked.concat(checkedKeys, childKeys))]
|
|
1392
|
+
totalCheckedKeys = [...new Set(preChecked.concat(checkedKeys, childKeys))];
|
|
1393
|
+
if (!this.checkStrictly) {
|
|
1394
|
+
totalCheckedKeys = totalCheckedKeys.filter(id => !allParentIds.includes(id));
|
|
1395
|
+
}
|
|
1391
1396
|
} else {
|
|
1392
1397
|
// 如果是取消从之前的选择中把当前点击的及其子级去除选中作为temp值(兼容搜索的情况)
|
|
1393
1398
|
let keyData = {};
|
|
@@ -69,8 +69,12 @@ export default {
|
|
|
69
69
|
return `${width||defW}px`;
|
|
70
70
|
},
|
|
71
71
|
getEleMinWidth(cfg){
|
|
72
|
-
if(!this.isQuick) return `${cfg.advanceColWidth|| 195}px`;
|
|
73
72
|
const { widgetType } = cfg;
|
|
73
|
+
if(!this.isQuick) {
|
|
74
|
+
if(widgetType === WidgetTypeEnums.CHECKBOX_GROUP) return;
|
|
75
|
+
return `${cfg.advanceColWidth|| 195}px`;
|
|
76
|
+
}
|
|
77
|
+
|
|
74
78
|
if (!unsetMinWidth.includes(widgetType)) return;
|
|
75
79
|
return `unset`;
|
|
76
80
|
},
|
|
@@ -149,6 +149,17 @@ export const WidgetCfgMaps = new Map([
|
|
|
149
149
|
style: {
|
|
150
150
|
'line-height': '32px'
|
|
151
151
|
},
|
|
152
|
+
eventsBySearch: [
|
|
153
|
+
{
|
|
154
|
+
name: 'change',
|
|
155
|
+
handler(e, search, props, item) {
|
|
156
|
+
const { filterExplicit, widgetCfg = {} } = item || {};
|
|
157
|
+
const { multiple, showMode } = widgetCfg;
|
|
158
|
+
if (filterExplicit != 1 || multiple || showMode != 'TILE') return;
|
|
159
|
+
search();
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
],
|
|
152
163
|
handlerProps(props, { valueList, multiple, explicitRequired } = {}) {
|
|
153
164
|
const allowClear = explicitRequired != 1;
|
|
154
165
|
const Props = { ...props, multiple, allowClear };
|