iking-web-ui-pro 0.0.1

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.
Files changed (107) hide show
  1. package/dist/Demo/index.es.js +13 -0
  2. package/dist/Demo/index.umd.js +1 -0
  3. package/dist/Demo/package.json +7 -0
  4. package/dist/IKApprovalProcess/index.es.js +13026 -0
  5. package/dist/IKApprovalProcess/index.umd.js +32 -0
  6. package/dist/IKApprovalProcess/package.json +7 -0
  7. package/dist/IKApprovalProcess/style.css +7 -0
  8. package/dist/IKApprovalProcessDetail/index.es.js +630 -0
  9. package/dist/IKApprovalProcessDetail/index.umd.js +1 -0
  10. package/dist/IKApprovalProcessDetail/package.json +7 -0
  11. package/dist/IKApprovalProcessDetail/style.css +1 -0
  12. package/dist/IKCalendar/index.es.js +22495 -0
  13. package/dist/IKCalendar/index.umd.js +32 -0
  14. package/dist/IKCalendar/package.json +7 -0
  15. package/dist/IKCalendar/style.css +7 -0
  16. package/dist/IKDescription/index.es.js +105 -0
  17. package/dist/IKDescription/index.umd.js +1 -0
  18. package/dist/IKDescription/style.css +1 -0
  19. package/dist/IKDetailPreviewFiles/index.es.js +1599 -0
  20. package/dist/IKDetailPreviewFiles/index.umd.js +1 -0
  21. package/dist/IKDetailPreviewFiles/style.css +1 -0
  22. package/dist/IKExpandCollapse/index.es.js +1388 -0
  23. package/dist/IKExpandCollapse/index.umd.js +1 -0
  24. package/dist/IKExpandCollapse/style.css +1 -0
  25. package/dist/IKHorizontalStepBar/index.es.js +251 -0
  26. package/dist/IKHorizontalStepBar/index.umd.js +1 -0
  27. package/dist/IKHorizontalStepBar/package.json +7 -0
  28. package/dist/IKHorizontalStepBar/style.css +1 -0
  29. package/dist/IKPreviewFile/index.es.js +108 -0
  30. package/dist/IKPreviewFile/index.umd.js +1 -0
  31. package/dist/IKPreviewFile/style.css +1 -0
  32. package/dist/IKSearch/index.es.js +13406 -0
  33. package/dist/IKSearch/index.umd.js +57 -0
  34. package/dist/IKSearch/package.json +7 -0
  35. package/dist/IKSearch/style.css +7 -0
  36. package/dist/IKSearchHead/index.es.js +116 -0
  37. package/dist/IKSearchHead/index.umd.js +1 -0
  38. package/dist/IKSearchHead/package.json +7 -0
  39. package/dist/IKSearchHead/style.css +1 -0
  40. package/dist/IKVerticalStepBar/index.es.js +1481 -0
  41. package/dist/IKVerticalStepBar/index.umd.js +9 -0
  42. package/dist/IKVerticalStepBar/package.json +7 -0
  43. package/dist/IKVerticalStepBar/style.css +1 -0
  44. package/dist/IkBottomOperate/index.es.js +210 -0
  45. package/dist/IkBottomOperate/index.umd.js +1 -0
  46. package/dist/IkBottomOperate/style.css +1 -0
  47. package/dist/IkBtnContent/index.es.js +101 -0
  48. package/dist/IkBtnContent/index.umd.js +1 -0
  49. package/dist/IkBtnContent/style.css +1 -0
  50. package/dist/IkBtnSetting/index.es.js +12854 -0
  51. package/dist/IkBtnSetting/index.umd.js +32 -0
  52. package/dist/IkBtnSetting/style.css +7 -0
  53. package/dist/IkDragList/index.es.js +11071 -0
  54. package/dist/IkDragList/index.umd.js +32 -0
  55. package/dist/IkDragList/style.css +7 -0
  56. package/dist/IkFullCalendar/index.es.js +20327 -0
  57. package/dist/IkFullCalendar/index.umd.js +32 -0
  58. package/dist/IkFullCalendar/style.css +7 -0
  59. package/dist/IkIconPicker/index.es.js +13693 -0
  60. package/dist/IkIconPicker/index.umd.js +32 -0
  61. package/dist/IkIconPicker/style.css +7 -0
  62. package/dist/IkOnlyOffice/index.es.js +393 -0
  63. package/dist/IkOnlyOffice/index.umd.js +1 -0
  64. package/dist/IkOnlyOffice/style.css +0 -0
  65. package/dist/IkPageFull/index.es.js +15725 -0
  66. package/dist/IkPageFull/index.umd.js +48 -0
  67. package/dist/IkPageFull/style.css +7 -0
  68. package/dist/IkPageTabs/index.es.js +135 -0
  69. package/dist/IkPageTabs/index.umd.js +1 -0
  70. package/dist/IkPageTabs/style.css +1 -0
  71. package/dist/IkPicker/index.es.js +12629 -0
  72. package/dist/IkPicker/index.umd.js +32 -0
  73. package/dist/IkPicker/style.css +7 -0
  74. package/dist/IkPickerUser/index.es.js +12508 -0
  75. package/dist/IkPickerUser/index.umd.js +32 -0
  76. package/dist/IkPickerUser/style.css +7 -0
  77. package/dist/IkPrintConfig/index.es.js +62 -0
  78. package/dist/IkPrintConfig/index.umd.js +1 -0
  79. package/dist/IkPrintView/index.es.js +79 -0
  80. package/dist/IkPrintView/index.umd.js +1 -0
  81. package/dist/IkRadioGroup/index.es.js +75 -0
  82. package/dist/IkRadioGroup/index.umd.js +1 -0
  83. package/dist/IkRadioGroup/style.css +1 -0
  84. package/dist/IkSchedule/index.es.js +22228 -0
  85. package/dist/IkSchedule/index.umd.js +32 -0
  86. package/dist/IkSchedule/style.css +7 -0
  87. package/dist/IkStatu/index.es.js +119 -0
  88. package/dist/IkStatu/index.umd.js +1 -0
  89. package/dist/IkStatu/style.css +1 -0
  90. package/dist/IkSvgIcon/index.es.js +1343 -0
  91. package/dist/IkSvgIcon/index.umd.js +1 -0
  92. package/dist/IkSvgIcon/style.css +1 -0
  93. package/dist/IkTemplateOfficeConfig/index.es.js +805 -0
  94. package/dist/IkTemplateOfficeConfig/index.umd.js +1 -0
  95. package/dist/IkTemplateOfficeConfig/style.css +1 -0
  96. package/dist/IkTooltip/index.es.js +49 -0
  97. package/dist/IkTooltip/index.umd.js +1 -0
  98. package/dist/IkUploadFile/index.es.js +12098 -0
  99. package/dist/IkUploadFile/index.umd.js +32 -0
  100. package/dist/IkUploadFile/style.css +7 -0
  101. package/dist/IkUploadImage/index.es.js +11442 -0
  102. package/dist/IkUploadImage/index.umd.js +32 -0
  103. package/dist/IkUploadImage/style.css +7 -0
  104. package/dist/index.es.js +33843 -0
  105. package/dist/index.umd.js +81 -0
  106. package/dist/style.css +7 -0
  107. package/package.json +66 -0
@@ -0,0 +1,48 @@
1
+ (function(ze,i){typeof exports=="object"&&typeof module<"u"?i(exports,require("vue"),require("element-plus"),require("vuedraggable"),require("lodash-es"),require("axios")):typeof define=="function"&&define.amd?define(["exports","vue","element-plus","vuedraggable","lodash-es","axios"],i):(ze=typeof globalThis<"u"?globalThis:ze||self,i(ze.index={},ze.Vue,ze["element-plus"],ze.vuedraggable,ze.n,ze.axios))})(this,function(ze,i,ae,y0,Pi,zi){"use strict";var Yu=Object.defineProperty;var Ku=(ze,i,ae)=>i in ze?Yu(ze,i,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ze[i]=ae;var m0=(ze,i,ae)=>(Ku(ze,typeof i!="symbol"?i+"":i,ae),ae);function Mi(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const Hi=Mi(Pi),Pt=(e,t)=>{if(e.install=r=>{for(const n of[e,...Object.values(t??{})])r.component(n.name,n)},t)for(const[r,n]of Object.entries(t))e[r]=n;return e};/*! Element Plus Icons Vue v2.3.1 */var qi=i.defineComponent({name:"DCaret",__name:"d-caret",setup(e){return(t,r)=>(i.openBlock(),i.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[i.createElementVNode("path",{fill:"currentColor",d:"m512 128 288 320H224zM224 576h576L512 896z"})]))}}),Ui=qi;const He=(e,t)=>{const r=e.__vccOpts||e;for(const[n,o]of t)r[n]=o;return r};var he=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Wi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ji(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var Yi={exports:{}};function zt(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Lr={exports:{}};const Ki=ji(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var C0;function ve(){return C0||(C0=1,function(e,t){(function(r,n){e.exports=n()})(he,function(){var r=r||function(n,o){var a;if(typeof window<"u"&&window.crypto&&(a=window.crypto),typeof self<"u"&&self.crypto&&(a=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(a=globalThis.crypto),!a&&typeof window<"u"&&window.msCrypto&&(a=window.msCrypto),!a&&typeof he<"u"&&he.crypto&&(a=he.crypto),!a&&typeof zt=="function")try{a=Ki}catch{}var l=function(){if(a){if(typeof a.getRandomValues=="function")try{return a.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof a.randomBytes=="function")try{return a.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},c=Object.create||function(){function _(){}return function(g){var b;return _.prototype=g,b=new _,_.prototype=null,b}}(),f={},s=f.lib={},u=s.Base=function(){return{extend:function(_){var g=c(this);return _&&g.mixIn(_),(!g.hasOwnProperty("init")||this.init===g.init)&&(g.init=function(){g.$super.init.apply(this,arguments)}),g.init.prototype=g,g.$super=this,g},create:function(){var _=this.extend();return _.init.apply(_,arguments),_},init:function(){},mixIn:function(_){for(var g in _)_.hasOwnProperty(g)&&(this[g]=_[g]);_.hasOwnProperty("toString")&&(this.toString=_.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),h=s.WordArray=u.extend({init:function(_,g){_=this.words=_||[],g!=o?this.sigBytes=g:this.sigBytes=_.length*4},toString:function(_){return(_||x).stringify(this)},concat:function(_){var g=this.words,b=_.words,E=this.sigBytes,B=_.sigBytes;if(this.clamp(),E%4)for(var y=0;y<B;y++){var k=b[y>>>2]>>>24-y%4*8&255;g[E+y>>>2]|=k<<24-(E+y)%4*8}else for(var R=0;R<B;R+=4)g[E+R>>>2]=b[R>>>2];return this.sigBytes+=B,this},clamp:function(){var _=this.words,g=this.sigBytes;_[g>>>2]&=4294967295<<32-g%4*8,_.length=n.ceil(g/4)},clone:function(){var _=u.clone.call(this);return _.words=this.words.slice(0),_},random:function(_){for(var g=[],b=0;b<_;b+=4)g.push(l());return new h.init(g,_)}}),d=f.enc={},x=d.Hex={stringify:function(_){for(var g=_.words,b=_.sigBytes,E=[],B=0;B<b;B++){var y=g[B>>>2]>>>24-B%4*8&255;E.push((y>>>4).toString(16)),E.push((y&15).toString(16))}return E.join("")},parse:function(_){for(var g=_.length,b=[],E=0;E<g;E+=2)b[E>>>3]|=parseInt(_.substr(E,2),16)<<24-E%8*4;return new h.init(b,g/2)}},m=d.Latin1={stringify:function(_){for(var g=_.words,b=_.sigBytes,E=[],B=0;B<b;B++){var y=g[B>>>2]>>>24-B%4*8&255;E.push(String.fromCharCode(y))}return E.join("")},parse:function(_){for(var g=_.length,b=[],E=0;E<g;E++)b[E>>>2]|=(_.charCodeAt(E)&255)<<24-E%4*8;return new h.init(b,g)}},p=d.Utf8={stringify:function(_){try{return decodeURIComponent(escape(m.stringify(_)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(_){return m.parse(unescape(encodeURIComponent(_)))}},v=s.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new h.init,this._nDataBytes=0},_append:function(_){typeof _=="string"&&(_=p.parse(_)),this._data.concat(_),this._nDataBytes+=_.sigBytes},_process:function(_){var g,b=this._data,E=b.words,B=b.sigBytes,y=this.blockSize,k=y*4,R=B/k;_?R=n.ceil(R):R=n.max((R|0)-this._minBufferSize,0);var A=R*y,D=n.min(A*4,B);if(A){for(var I=0;I<A;I+=y)this._doProcessBlock(E,I);g=E.splice(0,A),b.sigBytes-=D}return new h.init(g,D)},clone:function(){var _=u.clone.call(this);return _._data=this._data.clone(),_},_minBufferSize:0});s.Hasher=v.extend({cfg:u.extend(),init:function(_){this.cfg=this.cfg.extend(_),this.reset()},reset:function(){v.reset.call(this),this._doReset()},update:function(_){return this._append(_),this._process(),this},finalize:function(_){_&&this._append(_);var g=this._doFinalize();return g},blockSize:16,_createHelper:function(_){return function(g,b){return new _.init(b).finalize(g)}},_createHmacHelper:function(_){return function(g,b){return new F.HMAC.init(_,b).finalize(g)}}});var F=f.algo={};return f}(Math);return r})}(Lr)),Lr.exports}var Vr={exports:{}},B0;function nr(){return B0||(B0=1,function(e,t){(function(r,n){e.exports=n(ve())})(he,function(r){return function(n){var o=r,a=o.lib,l=a.Base,c=a.WordArray,f=o.x64={};f.Word=l.extend({init:function(s,u){this.high=s,this.low=u}}),f.WordArray=l.extend({init:function(s,u){s=this.words=s||[],u!=n?this.sigBytes=u:this.sigBytes=s.length*8},toX32:function(){for(var s=this.words,u=s.length,h=[],d=0;d<u;d++){var x=s[d];h.push(x.high),h.push(x.low)}return c.create(h,this.sigBytes)},clone:function(){for(var s=l.clone.call(this),u=s.words=this.words.slice(0),h=u.length,d=0;d<h;d++)u[d]=u[d].clone();return s}})}(),r})}(Vr)),Vr.exports}var $r={exports:{}},E0;function Gi(){return E0||(E0=1,function(e,t){(function(r,n){e.exports=n(ve())})(he,function(r){return function(){if(typeof ArrayBuffer=="function"){var n=r,o=n.lib,a=o.WordArray,l=a.init,c=a.init=function(f){if(f instanceof ArrayBuffer&&(f=new Uint8Array(f)),(f instanceof Int8Array||typeof Uint8ClampedArray<"u"&&f instanceof Uint8ClampedArray||f instanceof Int16Array||f instanceof Uint16Array||f instanceof Int32Array||f instanceof Uint32Array||f instanceof Float32Array||f instanceof Float64Array)&&(f=new Uint8Array(f.buffer,f.byteOffset,f.byteLength)),f instanceof Uint8Array){for(var s=f.byteLength,u=[],h=0;h<s;h++)u[h>>>2]|=f[h]<<24-h%4*8;l.call(this,u,s)}else l.apply(this,arguments)};c.prototype=a}}(),r.lib.WordArray})}($r)),$r.exports}var Pr={exports:{}},_0;function Xi(){return _0||(_0=1,function(e,t){(function(r,n){e.exports=n(ve())})(he,function(r){return function(){var n=r,o=n.lib,a=o.WordArray,l=n.enc;l.Utf16=l.Utf16BE={stringify:function(f){for(var s=f.words,u=f.sigBytes,h=[],d=0;d<u;d+=2){var x=s[d>>>2]>>>16-d%4*8&65535;h.push(String.fromCharCode(x))}return h.join("")},parse:function(f){for(var s=f.length,u=[],h=0;h<s;h++)u[h>>>1]|=f.charCodeAt(h)<<16-h%2*16;return a.create(u,s*2)}},l.Utf16LE={stringify:function(f){for(var s=f.words,u=f.sigBytes,h=[],d=0;d<u;d+=2){var x=c(s[d>>>2]>>>16-d%4*8&65535);h.push(String.fromCharCode(x))}return h.join("")},parse:function(f){for(var s=f.length,u=[],h=0;h<s;h++)u[h>>>1]|=c(f.charCodeAt(h)<<16-h%2*16);return a.create(u,s*2)}};function c(f){return f<<8&4278255360|f>>>8&16711935}}(),r.enc.Utf16})}(Pr)),Pr.exports}var zr={exports:{}},w0;function vt(){return w0||(w0=1,function(e,t){(function(r,n){e.exports=n(ve())})(he,function(r){return function(){var n=r,o=n.lib,a=o.WordArray,l=n.enc;l.Base64={stringify:function(f){var s=f.words,u=f.sigBytes,h=this._map;f.clamp();for(var d=[],x=0;x<u;x+=3)for(var m=s[x>>>2]>>>24-x%4*8&255,p=s[x+1>>>2]>>>24-(x+1)%4*8&255,v=s[x+2>>>2]>>>24-(x+2)%4*8&255,F=m<<16|p<<8|v,_=0;_<4&&x+_*.75<u;_++)d.push(h.charAt(F>>>6*(3-_)&63));var g=h.charAt(64);if(g)for(;d.length%4;)d.push(g);return d.join("")},parse:function(f){var s=f.length,u=this._map,h=this._reverseMap;if(!h){h=this._reverseMap=[];for(var d=0;d<u.length;d++)h[u.charCodeAt(d)]=d}var x=u.charAt(64);if(x){var m=f.indexOf(x);m!==-1&&(s=m)}return c(f,s,h)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function c(f,s,u){for(var h=[],d=0,x=0;x<s;x++)if(x%4){var m=u[f.charCodeAt(x-1)]<<x%4*2,p=u[f.charCodeAt(x)]>>>6-x%4*2,v=m|p;h[d>>>2]|=v<<24-d%4*8,d++}return a.create(h,d)}}(),r.enc.Base64})}(zr)),zr.exports}var Mr={exports:{}},A0;function Zi(){return A0||(A0=1,function(e,t){(function(r,n){e.exports=n(ve())})(he,function(r){return function(){var n=r,o=n.lib,a=o.WordArray,l=n.enc;l.Base64url={stringify:function(f,s){s===void 0&&(s=!0);var u=f.words,h=f.sigBytes,d=s?this._safe_map:this._map;f.clamp();for(var x=[],m=0;m<h;m+=3)for(var p=u[m>>>2]>>>24-m%4*8&255,v=u[m+1>>>2]>>>24-(m+1)%4*8&255,F=u[m+2>>>2]>>>24-(m+2)%4*8&255,_=p<<16|v<<8|F,g=0;g<4&&m+g*.75<h;g++)x.push(d.charAt(_>>>6*(3-g)&63));var b=d.charAt(64);if(b)for(;x.length%4;)x.push(b);return x.join("")},parse:function(f,s){s===void 0&&(s=!0);var u=f.length,h=s?this._safe_map:this._map,d=this._reverseMap;if(!d){d=this._reverseMap=[];for(var x=0;x<h.length;x++)d[h.charCodeAt(x)]=x}var m=h.charAt(64);if(m){var p=f.indexOf(m);p!==-1&&(u=p)}return c(f,u,d)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function c(f,s,u){for(var h=[],d=0,x=0;x<s;x++)if(x%4){var m=u[f.charCodeAt(x-1)]<<x%4*2,p=u[f.charCodeAt(x)]>>>6-x%4*2,v=m|p;h[d>>>2]|=v<<24-d%4*8,d++}return a.create(h,d)}}(),r.enc.Base64url})}(Mr)),Mr.exports}var Hr={exports:{}},k0;function mt(){return k0||(k0=1,function(e,t){(function(r,n){e.exports=n(ve())})(he,function(r){return function(n){var o=r,a=o.lib,l=a.WordArray,c=a.Hasher,f=o.algo,s=[];(function(){for(var p=0;p<64;p++)s[p]=n.abs(n.sin(p+1))*4294967296|0})();var u=f.MD5=c.extend({_doReset:function(){this._hash=new l.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(p,v){for(var F=0;F<16;F++){var _=v+F,g=p[_];p[_]=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360}var b=this._hash.words,E=p[v+0],B=p[v+1],y=p[v+2],k=p[v+3],R=p[v+4],A=p[v+5],D=p[v+6],I=p[v+7],P=p[v+8],W=p[v+9],H=p[v+10],q=p[v+11],X=p[v+12],K=p[v+13],ee=p[v+14],ne=p[v+15],M=b[0],N=b[1],z=b[2],V=b[3];M=h(M,N,z,V,E,7,s[0]),V=h(V,M,N,z,B,12,s[1]),z=h(z,V,M,N,y,17,s[2]),N=h(N,z,V,M,k,22,s[3]),M=h(M,N,z,V,R,7,s[4]),V=h(V,M,N,z,A,12,s[5]),z=h(z,V,M,N,D,17,s[6]),N=h(N,z,V,M,I,22,s[7]),M=h(M,N,z,V,P,7,s[8]),V=h(V,M,N,z,W,12,s[9]),z=h(z,V,M,N,H,17,s[10]),N=h(N,z,V,M,q,22,s[11]),M=h(M,N,z,V,X,7,s[12]),V=h(V,M,N,z,K,12,s[13]),z=h(z,V,M,N,ee,17,s[14]),N=h(N,z,V,M,ne,22,s[15]),M=d(M,N,z,V,B,5,s[16]),V=d(V,M,N,z,D,9,s[17]),z=d(z,V,M,N,q,14,s[18]),N=d(N,z,V,M,E,20,s[19]),M=d(M,N,z,V,A,5,s[20]),V=d(V,M,N,z,H,9,s[21]),z=d(z,V,M,N,ne,14,s[22]),N=d(N,z,V,M,R,20,s[23]),M=d(M,N,z,V,W,5,s[24]),V=d(V,M,N,z,ee,9,s[25]),z=d(z,V,M,N,k,14,s[26]),N=d(N,z,V,M,P,20,s[27]),M=d(M,N,z,V,K,5,s[28]),V=d(V,M,N,z,y,9,s[29]),z=d(z,V,M,N,I,14,s[30]),N=d(N,z,V,M,X,20,s[31]),M=x(M,N,z,V,A,4,s[32]),V=x(V,M,N,z,P,11,s[33]),z=x(z,V,M,N,q,16,s[34]),N=x(N,z,V,M,ee,23,s[35]),M=x(M,N,z,V,B,4,s[36]),V=x(V,M,N,z,R,11,s[37]),z=x(z,V,M,N,I,16,s[38]),N=x(N,z,V,M,H,23,s[39]),M=x(M,N,z,V,K,4,s[40]),V=x(V,M,N,z,E,11,s[41]),z=x(z,V,M,N,k,16,s[42]),N=x(N,z,V,M,D,23,s[43]),M=x(M,N,z,V,W,4,s[44]),V=x(V,M,N,z,X,11,s[45]),z=x(z,V,M,N,ne,16,s[46]),N=x(N,z,V,M,y,23,s[47]),M=m(M,N,z,V,E,6,s[48]),V=m(V,M,N,z,I,10,s[49]),z=m(z,V,M,N,ee,15,s[50]),N=m(N,z,V,M,A,21,s[51]),M=m(M,N,z,V,X,6,s[52]),V=m(V,M,N,z,k,10,s[53]),z=m(z,V,M,N,H,15,s[54]),N=m(N,z,V,M,B,21,s[55]),M=m(M,N,z,V,P,6,s[56]),V=m(V,M,N,z,ne,10,s[57]),z=m(z,V,M,N,D,15,s[58]),N=m(N,z,V,M,K,21,s[59]),M=m(M,N,z,V,R,6,s[60]),V=m(V,M,N,z,q,10,s[61]),z=m(z,V,M,N,y,15,s[62]),N=m(N,z,V,M,W,21,s[63]),b[0]=b[0]+M|0,b[1]=b[1]+N|0,b[2]=b[2]+z|0,b[3]=b[3]+V|0},_doFinalize:function(){var p=this._data,v=p.words,F=this._nDataBytes*8,_=p.sigBytes*8;v[_>>>5]|=128<<24-_%32;var g=n.floor(F/4294967296),b=F;v[(_+64>>>9<<4)+15]=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360,v[(_+64>>>9<<4)+14]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,p.sigBytes=(v.length+1)*4,this._process();for(var E=this._hash,B=E.words,y=0;y<4;y++){var k=B[y];B[y]=(k<<8|k>>>24)&16711935|(k<<24|k>>>8)&4278255360}return E},clone:function(){var p=c.clone.call(this);return p._hash=this._hash.clone(),p}});function h(p,v,F,_,g,b,E){var B=p+(v&F|~v&_)+g+E;return(B<<b|B>>>32-b)+v}function d(p,v,F,_,g,b,E){var B=p+(v&_|F&~_)+g+E;return(B<<b|B>>>32-b)+v}function x(p,v,F,_,g,b,E){var B=p+(v^F^_)+g+E;return(B<<b|B>>>32-b)+v}function m(p,v,F,_,g,b,E){var B=p+(F^(v|~_))+g+E;return(B<<b|B>>>32-b)+v}o.MD5=c._createHelper(u),o.HmacMD5=c._createHmacHelper(u)}(Math),r.MD5})}(Hr)),Hr.exports}var qr={exports:{}},D0;function F0(){return D0||(D0=1,function(e,t){(function(r,n){e.exports=n(ve())})(he,function(r){return function(){var n=r,o=n.lib,a=o.WordArray,l=o.Hasher,c=n.algo,f=[],s=c.SHA1=l.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(u,h){for(var d=this._hash.words,x=d[0],m=d[1],p=d[2],v=d[3],F=d[4],_=0;_<80;_++){if(_<16)f[_]=u[h+_]|0;else{var g=f[_-3]^f[_-8]^f[_-14]^f[_-16];f[_]=g<<1|g>>>31}var b=(x<<5|x>>>27)+F+f[_];_<20?b+=(m&p|~m&v)+1518500249:_<40?b+=(m^p^v)+1859775393:_<60?b+=(m&p|m&v|p&v)-1894007588:b+=(m^p^v)-899497514,F=v,v=p,p=m<<30|m>>>2,m=x,x=b}d[0]=d[0]+x|0,d[1]=d[1]+m|0,d[2]=d[2]+p|0,d[3]=d[3]+v|0,d[4]=d[4]+F|0},_doFinalize:function(){var u=this._data,h=u.words,d=this._nDataBytes*8,x=u.sigBytes*8;return h[x>>>5]|=128<<24-x%32,h[(x+64>>>9<<4)+14]=Math.floor(d/4294967296),h[(x+64>>>9<<4)+15]=d,u.sigBytes=h.length*4,this._process(),this._hash},clone:function(){var u=l.clone.call(this);return u._hash=this._hash.clone(),u}});n.SHA1=l._createHelper(s),n.HmacSHA1=l._createHmacHelper(s)}(),r.SHA1})}(qr)),qr.exports}var Ur={exports:{}},S0;function Wr(){return S0||(S0=1,function(e,t){(function(r,n){e.exports=n(ve())})(he,function(r){return function(n){var o=r,a=o.lib,l=a.WordArray,c=a.Hasher,f=o.algo,s=[],u=[];(function(){function x(F){for(var _=n.sqrt(F),g=2;g<=_;g++)if(!(F%g))return!1;return!0}function m(F){return(F-(F|0))*4294967296|0}for(var p=2,v=0;v<64;)x(p)&&(v<8&&(s[v]=m(n.pow(p,1/2))),u[v]=m(n.pow(p,1/3)),v++),p++})();var h=[],d=f.SHA256=c.extend({_doReset:function(){this._hash=new l.init(s.slice(0))},_doProcessBlock:function(x,m){for(var p=this._hash.words,v=p[0],F=p[1],_=p[2],g=p[3],b=p[4],E=p[5],B=p[6],y=p[7],k=0;k<64;k++){if(k<16)h[k]=x[m+k]|0;else{var R=h[k-15],A=(R<<25|R>>>7)^(R<<14|R>>>18)^R>>>3,D=h[k-2],I=(D<<15|D>>>17)^(D<<13|D>>>19)^D>>>10;h[k]=A+h[k-7]+I+h[k-16]}var P=b&E^~b&B,W=v&F^v&_^F&_,H=(v<<30|v>>>2)^(v<<19|v>>>13)^(v<<10|v>>>22),q=(b<<26|b>>>6)^(b<<21|b>>>11)^(b<<7|b>>>25),X=y+q+P+u[k]+h[k],K=H+W;y=B,B=E,E=b,b=g+X|0,g=_,_=F,F=v,v=X+K|0}p[0]=p[0]+v|0,p[1]=p[1]+F|0,p[2]=p[2]+_|0,p[3]=p[3]+g|0,p[4]=p[4]+b|0,p[5]=p[5]+E|0,p[6]=p[6]+B|0,p[7]=p[7]+y|0},_doFinalize:function(){var x=this._data,m=x.words,p=this._nDataBytes*8,v=x.sigBytes*8;return m[v>>>5]|=128<<24-v%32,m[(v+64>>>9<<4)+14]=n.floor(p/4294967296),m[(v+64>>>9<<4)+15]=p,x.sigBytes=m.length*4,this._process(),this._hash},clone:function(){var x=c.clone.call(this);return x._hash=this._hash.clone(),x}});o.SHA256=c._createHelper(d),o.HmacSHA256=c._createHmacHelper(d)}(Math),r.SHA256})}(Ur)),Ur.exports}var jr={exports:{}},N0;function Qi(){return N0||(N0=1,function(e,t){(function(r,n,o){e.exports=n(ve(),Wr())})(he,function(r){return function(){var n=r,o=n.lib,a=o.WordArray,l=n.algo,c=l.SHA256,f=l.SHA224=c.extend({_doReset:function(){this._hash=new a.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var s=c._doFinalize.call(this);return s.sigBytes-=4,s}});n.SHA224=c._createHelper(f),n.HmacSHA224=c._createHmacHelper(f)}(),r.SHA224})}(jr)),jr.exports}var Yr={exports:{}},I0;function T0(){return I0||(I0=1,function(e,t){(function(r,n,o){e.exports=n(ve(),nr())})(he,function(r){return function(){var n=r,o=n.lib,a=o.Hasher,l=n.x64,c=l.Word,f=l.WordArray,s=n.algo;function u(){return c.create.apply(c,arguments)}var h=[u(1116352408,3609767458),u(1899447441,602891725),u(3049323471,3964484399),u(3921009573,2173295548),u(961987163,4081628472),u(1508970993,3053834265),u(2453635748,2937671579),u(2870763221,3664609560),u(3624381080,2734883394),u(310598401,1164996542),u(607225278,1323610764),u(1426881987,3590304994),u(1925078388,4068182383),u(2162078206,991336113),u(2614888103,633803317),u(3248222580,3479774868),u(3835390401,2666613458),u(4022224774,944711139),u(264347078,2341262773),u(604807628,2007800933),u(770255983,1495990901),u(1249150122,1856431235),u(1555081692,3175218132),u(1996064986,2198950837),u(2554220882,3999719339),u(2821834349,766784016),u(2952996808,2566594879),u(3210313671,3203337956),u(3336571891,1034457026),u(3584528711,2466948901),u(113926993,3758326383),u(338241895,168717936),u(666307205,1188179964),u(773529912,1546045734),u(1294757372,1522805485),u(1396182291,2643833823),u(1695183700,2343527390),u(1986661051,1014477480),u(2177026350,1206759142),u(2456956037,344077627),u(2730485921,1290863460),u(2820302411,3158454273),u(3259730800,3505952657),u(3345764771,106217008),u(3516065817,3606008344),u(3600352804,1432725776),u(4094571909,1467031594),u(275423344,851169720),u(430227734,3100823752),u(506948616,1363258195),u(659060556,3750685593),u(883997877,3785050280),u(958139571,3318307427),u(1322822218,3812723403),u(1537002063,2003034995),u(1747873779,3602036899),u(1955562222,1575990012),u(2024104815,1125592928),u(2227730452,2716904306),u(2361852424,442776044),u(2428436474,593698344),u(2756734187,3733110249),u(3204031479,2999351573),u(3329325298,3815920427),u(3391569614,3928383900),u(3515267271,566280711),u(3940187606,3454069534),u(4118630271,4000239992),u(116418474,1914138554),u(174292421,2731055270),u(289380356,3203993006),u(460393269,320620315),u(685471733,587496836),u(852142971,1086792851),u(1017036298,365543100),u(1126000580,2618297676),u(1288033470,3409855158),u(1501505948,4234509866),u(1607167915,987167468),u(1816402316,1246189591)],d=[];(function(){for(var m=0;m<80;m++)d[m]=u()})();var x=s.SHA512=a.extend({_doReset:function(){this._hash=new f.init([new c.init(1779033703,4089235720),new c.init(3144134277,2227873595),new c.init(1013904242,4271175723),new c.init(2773480762,1595750129),new c.init(1359893119,2917565137),new c.init(2600822924,725511199),new c.init(528734635,4215389547),new c.init(1541459225,327033209)])},_doProcessBlock:function(m,p){for(var v=this._hash.words,F=v[0],_=v[1],g=v[2],b=v[3],E=v[4],B=v[5],y=v[6],k=v[7],R=F.high,A=F.low,D=_.high,I=_.low,P=g.high,W=g.low,H=b.high,q=b.low,X=E.high,K=E.low,ee=B.high,ne=B.low,M=y.high,N=y.low,z=k.high,V=k.low,te=R,oe=A,de=D,ie=I,ge=P,fe=W,ke=H,Ve=q,we=X,Ae=K,_e=ee,Fe=ne,$e=M,Ie=N,it=z,Ze=V,Me=0;Me<80;Me++){var Pe,Ge,at=d[Me];if(Me<16)Ge=at.high=m[p+Me*2]|0,Pe=at.low=m[p+Me*2+1]|0;else{var Ft=d[Me-15],Qe=Ft.high,ut=Ft.low,U=(Qe>>>1|ut<<31)^(Qe>>>8|ut<<24)^Qe>>>7,Z=(ut>>>1|Qe<<31)^(ut>>>8|Qe<<24)^(ut>>>7|Qe<<25),$=d[Me-2],se=$.high,ye=$.low,Xe=(se>>>19|ye<<13)^(se<<3|ye>>>29)^se>>>6,Je=(ye>>>19|se<<13)^(ye<<3|se>>>29)^(ye>>>6|se<<26),dt=d[Me-7],Lt=dt.high,De=dt.low,Ue=d[Me-16],s0=Ue.high,st=Ue.low;Pe=Z+De,Ge=U+Lt+(Pe>>>0<Z>>>0?1:0),Pe=Pe+Je,Ge=Ge+Xe+(Pe>>>0<Je>>>0?1:0),Pe=Pe+st,Ge=Ge+s0+(Pe>>>0<st>>>0?1:0),at.high=Ge,at.low=Pe}var c0=we&_e^~we&$e,Sr=Ae&Fe^~Ae&Ie,Nr=te&de^te&ge^de&ge,l0=oe&ie^oe&fe^ie&fe,f0=(te>>>28|oe<<4)^(te<<30|oe>>>2)^(te<<25|oe>>>7),Ir=(oe>>>28|te<<4)^(oe<<30|te>>>2)^(oe<<25|te>>>7),u0=(we>>>14|Ae<<18)^(we>>>18|Ae<<14)^(we<<23|Ae>>>9),d0=(Ae>>>14|we<<18)^(Ae>>>18|we<<14)^(Ae<<23|we>>>9),Tr=h[Me],h0=Tr.high,Or=Tr.low,Ye=Ze+d0,ht=it+u0+(Ye>>>0<Ze>>>0?1:0),Ye=Ye+Sr,ht=ht+c0+(Ye>>>0<Sr>>>0?1:0),Ye=Ye+Or,ht=ht+h0+(Ye>>>0<Or>>>0?1:0),Ye=Ye+Pe,ht=ht+Ge+(Ye>>>0<Pe>>>0?1:0),er=Ir+l0,p0=f0+Nr+(er>>>0<Ir>>>0?1:0);it=$e,Ze=Ie,$e=_e,Ie=Fe,_e=we,Fe=Ae,Ae=Ve+Ye|0,we=ke+ht+(Ae>>>0<Ve>>>0?1:0)|0,ke=ge,Ve=fe,ge=de,fe=ie,de=te,ie=oe,oe=Ye+er|0,te=ht+p0+(oe>>>0<Ye>>>0?1:0)|0}A=F.low=A+oe,F.high=R+te+(A>>>0<oe>>>0?1:0),I=_.low=I+ie,_.high=D+de+(I>>>0<ie>>>0?1:0),W=g.low=W+fe,g.high=P+ge+(W>>>0<fe>>>0?1:0),q=b.low=q+Ve,b.high=H+ke+(q>>>0<Ve>>>0?1:0),K=E.low=K+Ae,E.high=X+we+(K>>>0<Ae>>>0?1:0),ne=B.low=ne+Fe,B.high=ee+_e+(ne>>>0<Fe>>>0?1:0),N=y.low=N+Ie,y.high=M+$e+(N>>>0<Ie>>>0?1:0),V=k.low=V+Ze,k.high=z+it+(V>>>0<Ze>>>0?1:0)},_doFinalize:function(){var m=this._data,p=m.words,v=this._nDataBytes*8,F=m.sigBytes*8;p[F>>>5]|=128<<24-F%32,p[(F+128>>>10<<5)+30]=Math.floor(v/4294967296),p[(F+128>>>10<<5)+31]=v,m.sigBytes=p.length*4,this._process();var _=this._hash.toX32();return _},clone:function(){var m=a.clone.call(this);return m._hash=this._hash.clone(),m},blockSize:1024/32});n.SHA512=a._createHelper(x),n.HmacSHA512=a._createHmacHelper(x)}(),r.SHA512})}(Yr)),Yr.exports}var Kr={exports:{}},O0;function Ji(){return O0||(O0=1,function(e,t){(function(r,n,o){e.exports=n(ve(),nr(),T0())})(he,function(r){return function(){var n=r,o=n.x64,a=o.Word,l=o.WordArray,c=n.algo,f=c.SHA512,s=c.SHA384=f.extend({_doReset:function(){this._hash=new l.init([new a.init(3418070365,3238371032),new a.init(1654270250,914150663),new a.init(2438529370,812702999),new a.init(355462360,4144912697),new a.init(1731405415,4290775857),new a.init(2394180231,1750603025),new a.init(3675008525,1694076839),new a.init(1203062813,3204075428)])},_doFinalize:function(){var u=f._doFinalize.call(this);return u.sigBytes-=16,u}});n.SHA384=f._createHelper(s),n.HmacSHA384=f._createHmacHelper(s)}(),r.SHA384})}(Kr)),Kr.exports}var Gr={exports:{}},R0;function ea(){return R0||(R0=1,function(e,t){(function(r,n,o){e.exports=n(ve(),nr())})(he,function(r){return function(n){var o=r,a=o.lib,l=a.WordArray,c=a.Hasher,f=o.x64,s=f.Word,u=o.algo,h=[],d=[],x=[];(function(){for(var v=1,F=0,_=0;_<24;_++){h[v+5*F]=(_+1)*(_+2)/2%64;var g=F%5,b=(2*v+3*F)%5;v=g,F=b}for(var v=0;v<5;v++)for(var F=0;F<5;F++)d[v+5*F]=F+(2*v+3*F)%5*5;for(var E=1,B=0;B<24;B++){for(var y=0,k=0,R=0;R<7;R++){if(E&1){var A=(1<<R)-1;A<32?k^=1<<A:y^=1<<A-32}E&128?E=E<<1^113:E<<=1}x[B]=s.create(y,k)}})();var m=[];(function(){for(var v=0;v<25;v++)m[v]=s.create()})();var p=u.SHA3=c.extend({cfg:c.cfg.extend({outputLength:512}),_doReset:function(){for(var v=this._state=[],F=0;F<25;F++)v[F]=new s.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(v,F){for(var _=this._state,g=this.blockSize/2,b=0;b<g;b++){var E=v[F+2*b],B=v[F+2*b+1];E=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360,B=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360;var y=_[b];y.high^=B,y.low^=E}for(var k=0;k<24;k++){for(var R=0;R<5;R++){for(var A=0,D=0,I=0;I<5;I++){var y=_[R+5*I];A^=y.high,D^=y.low}var P=m[R];P.high=A,P.low=D}for(var R=0;R<5;R++)for(var W=m[(R+4)%5],H=m[(R+1)%5],q=H.high,X=H.low,A=W.high^(q<<1|X>>>31),D=W.low^(X<<1|q>>>31),I=0;I<5;I++){var y=_[R+5*I];y.high^=A,y.low^=D}for(var K=1;K<25;K++){var A,D,y=_[K],ee=y.high,ne=y.low,M=h[K];M<32?(A=ee<<M|ne>>>32-M,D=ne<<M|ee>>>32-M):(A=ne<<M-32|ee>>>64-M,D=ee<<M-32|ne>>>64-M);var N=m[d[K]];N.high=A,N.low=D}var z=m[0],V=_[0];z.high=V.high,z.low=V.low;for(var R=0;R<5;R++)for(var I=0;I<5;I++){var K=R+5*I,y=_[K],te=m[K],oe=m[(R+1)%5+5*I],de=m[(R+2)%5+5*I];y.high=te.high^~oe.high&de.high,y.low=te.low^~oe.low&de.low}var y=_[0],ie=x[k];y.high^=ie.high,y.low^=ie.low}},_doFinalize:function(){var v=this._data,F=v.words;this._nDataBytes*8;var _=v.sigBytes*8,g=this.blockSize*32;F[_>>>5]|=1<<24-_%32,F[(n.ceil((_+1)/g)*g>>>5)-1]|=128,v.sigBytes=F.length*4,this._process();for(var b=this._state,E=this.cfg.outputLength/8,B=E/8,y=[],k=0;k<B;k++){var R=b[k],A=R.high,D=R.low;A=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360,D=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360,y.push(D),y.push(A)}return new l.init(y,E)},clone:function(){for(var v=c.clone.call(this),F=v._state=this._state.slice(0),_=0;_<25;_++)F[_]=F[_].clone();return v}});o.SHA3=c._createHelper(p),o.HmacSHA3=c._createHmacHelper(p)}(Math),r.SHA3})}(Gr)),Gr.exports}var Xr={exports:{}},L0;function ta(){return L0||(L0=1,function(e,t){(function(r,n){e.exports=n(ve())})(he,function(r){/** @preserve
2
+ (c) 2012 by Cédric Mesnil. All rights reserved.
3
+
4
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
5
+
6
+ - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
7
+ - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
8
+
9
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
10
+ */return function(n){var o=r,a=o.lib,l=a.WordArray,c=a.Hasher,f=o.algo,s=l.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),u=l.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),h=l.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),d=l.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),x=l.create([0,1518500249,1859775393,2400959708,2840853838]),m=l.create([1352829926,1548603684,1836072691,2053994217,0]),p=f.RIPEMD160=c.extend({_doReset:function(){this._hash=l.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(B,y){for(var k=0;k<16;k++){var R=y+k,A=B[R];B[R]=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360}var D=this._hash.words,I=x.words,P=m.words,W=s.words,H=u.words,q=h.words,X=d.words,K,ee,ne,M,N,z,V,te,oe,de;z=K=D[0],V=ee=D[1],te=ne=D[2],oe=M=D[3],de=N=D[4];for(var ie,k=0;k<80;k+=1)ie=K+B[y+W[k]]|0,k<16?ie+=v(ee,ne,M)+I[0]:k<32?ie+=F(ee,ne,M)+I[1]:k<48?ie+=_(ee,ne,M)+I[2]:k<64?ie+=g(ee,ne,M)+I[3]:ie+=b(ee,ne,M)+I[4],ie=ie|0,ie=E(ie,q[k]),ie=ie+N|0,K=N,N=M,M=E(ne,10),ne=ee,ee=ie,ie=z+B[y+H[k]]|0,k<16?ie+=b(V,te,oe)+P[0]:k<32?ie+=g(V,te,oe)+P[1]:k<48?ie+=_(V,te,oe)+P[2]:k<64?ie+=F(V,te,oe)+P[3]:ie+=v(V,te,oe)+P[4],ie=ie|0,ie=E(ie,X[k]),ie=ie+de|0,z=de,de=oe,oe=E(te,10),te=V,V=ie;ie=D[1]+ne+oe|0,D[1]=D[2]+M+de|0,D[2]=D[3]+N+z|0,D[3]=D[4]+K+V|0,D[4]=D[0]+ee+te|0,D[0]=ie},_doFinalize:function(){var B=this._data,y=B.words,k=this._nDataBytes*8,R=B.sigBytes*8;y[R>>>5]|=128<<24-R%32,y[(R+64>>>9<<4)+14]=(k<<8|k>>>24)&16711935|(k<<24|k>>>8)&4278255360,B.sigBytes=(y.length+1)*4,this._process();for(var A=this._hash,D=A.words,I=0;I<5;I++){var P=D[I];D[I]=(P<<8|P>>>24)&16711935|(P<<24|P>>>8)&4278255360}return A},clone:function(){var B=c.clone.call(this);return B._hash=this._hash.clone(),B}});function v(B,y,k){return B^y^k}function F(B,y,k){return B&y|~B&k}function _(B,y,k){return(B|~y)^k}function g(B,y,k){return B&k|y&~k}function b(B,y,k){return B^(y|~k)}function E(B,y){return B<<y|B>>>32-y}o.RIPEMD160=c._createHelper(p),o.HmacRIPEMD160=c._createHmacHelper(p)}(),r.RIPEMD160})}(Xr)),Xr.exports}var Zr={exports:{}},V0;function Qr(){return V0||(V0=1,function(e,t){(function(r,n){e.exports=n(ve())})(he,function(r){(function(){var n=r,o=n.lib,a=o.Base,l=n.enc,c=l.Utf8,f=n.algo;f.HMAC=a.extend({init:function(s,u){s=this._hasher=new s.init,typeof u=="string"&&(u=c.parse(u));var h=s.blockSize,d=h*4;u.sigBytes>d&&(u=s.finalize(u)),u.clamp();for(var x=this._oKey=u.clone(),m=this._iKey=u.clone(),p=x.words,v=m.words,F=0;F<h;F++)p[F]^=1549556828,v[F]^=909522486;x.sigBytes=m.sigBytes=d,this.reset()},reset:function(){var s=this._hasher;s.reset(),s.update(this._iKey)},update:function(s){return this._hasher.update(s),this},finalize:function(s){var u=this._hasher,h=u.finalize(s);u.reset();var d=u.finalize(this._oKey.clone().concat(h));return d}})})()})}(Zr)),Zr.exports}var Jr={exports:{}},$0;function ra(){return $0||($0=1,function(e,t){(function(r,n,o){e.exports=n(ve(),Wr(),Qr())})(he,function(r){return function(){var n=r,o=n.lib,a=o.Base,l=o.WordArray,c=n.algo,f=c.SHA256,s=c.HMAC,u=c.PBKDF2=a.extend({cfg:a.extend({keySize:128/32,hasher:f,iterations:25e4}),init:function(h){this.cfg=this.cfg.extend(h)},compute:function(h,d){for(var x=this.cfg,m=s.create(x.hasher,h),p=l.create(),v=l.create([1]),F=p.words,_=v.words,g=x.keySize,b=x.iterations;F.length<g;){var E=m.update(d).finalize(v);m.reset();for(var B=E.words,y=B.length,k=E,R=1;R<b;R++){k=m.finalize(k),m.reset();for(var A=k.words,D=0;D<y;D++)B[D]^=A[D]}p.concat(E),_[0]++}return p.sigBytes=g*4,p}});n.PBKDF2=function(h,d,x){return u.create(x).compute(h,d)}}(),r.PBKDF2})}(Jr)),Jr.exports}var en={exports:{}},P0;function yt(){return P0||(P0=1,function(e,t){(function(r,n,o){e.exports=n(ve(),F0(),Qr())})(he,function(r){return function(){var n=r,o=n.lib,a=o.Base,l=o.WordArray,c=n.algo,f=c.MD5,s=c.EvpKDF=a.extend({cfg:a.extend({keySize:128/32,hasher:f,iterations:1}),init:function(u){this.cfg=this.cfg.extend(u)},compute:function(u,h){for(var d,x=this.cfg,m=x.hasher.create(),p=l.create(),v=p.words,F=x.keySize,_=x.iterations;v.length<F;){d&&m.update(d),d=m.update(u).finalize(h),m.reset();for(var g=1;g<_;g++)d=m.finalize(d),m.reset();p.concat(d)}return p.sigBytes=F*4,p}});n.EvpKDF=function(u,h,d){return s.create(d).compute(u,h)}}(),r.EvpKDF})}(en)),en.exports}var tn={exports:{}},z0;function Oe(){return z0||(z0=1,function(e,t){(function(r,n,o){e.exports=n(ve(),yt())})(he,function(r){r.lib.Cipher||function(n){var o=r,a=o.lib,l=a.Base,c=a.WordArray,f=a.BufferedBlockAlgorithm,s=o.enc;s.Utf8;var u=s.Base64,h=o.algo,d=h.EvpKDF,x=a.Cipher=f.extend({cfg:l.extend(),createEncryptor:function(A,D){return this.create(this._ENC_XFORM_MODE,A,D)},createDecryptor:function(A,D){return this.create(this._DEC_XFORM_MODE,A,D)},init:function(A,D,I){this.cfg=this.cfg.extend(I),this._xformMode=A,this._key=D,this.reset()},reset:function(){f.reset.call(this),this._doReset()},process:function(A){return this._append(A),this._process()},finalize:function(A){A&&this._append(A);var D=this._doFinalize();return D},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function A(D){return typeof D=="string"?R:B}return function(D){return{encrypt:function(I,P,W){return A(P).encrypt(D,I,P,W)},decrypt:function(I,P,W){return A(P).decrypt(D,I,P,W)}}}}()});a.StreamCipher=x.extend({_doFinalize:function(){var A=this._process(!0);return A},blockSize:1});var m=o.mode={},p=a.BlockCipherMode=l.extend({createEncryptor:function(A,D){return this.Encryptor.create(A,D)},createDecryptor:function(A,D){return this.Decryptor.create(A,D)},init:function(A,D){this._cipher=A,this._iv=D}}),v=m.CBC=function(){var A=p.extend();A.Encryptor=A.extend({processBlock:function(I,P){var W=this._cipher,H=W.blockSize;D.call(this,I,P,H),W.encryptBlock(I,P),this._prevBlock=I.slice(P,P+H)}}),A.Decryptor=A.extend({processBlock:function(I,P){var W=this._cipher,H=W.blockSize,q=I.slice(P,P+H);W.decryptBlock(I,P),D.call(this,I,P,H),this._prevBlock=q}});function D(I,P,W){var H,q=this._iv;q?(H=q,this._iv=n):H=this._prevBlock;for(var X=0;X<W;X++)I[P+X]^=H[X]}return A}(),F=o.pad={},_=F.Pkcs7={pad:function(A,D){for(var I=D*4,P=I-A.sigBytes%I,W=P<<24|P<<16|P<<8|P,H=[],q=0;q<P;q+=4)H.push(W);var X=c.create(H,P);A.concat(X)},unpad:function(A){var D=A.words[A.sigBytes-1>>>2]&255;A.sigBytes-=D}};a.BlockCipher=x.extend({cfg:x.cfg.extend({mode:v,padding:_}),reset:function(){var A;x.reset.call(this);var D=this.cfg,I=D.iv,P=D.mode;this._xformMode==this._ENC_XFORM_MODE?A=P.createEncryptor:(A=P.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==A?this._mode.init(this,I&&I.words):(this._mode=A.call(P,this,I&&I.words),this._mode.__creator=A)},_doProcessBlock:function(A,D){this._mode.processBlock(A,D)},_doFinalize:function(){var A,D=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(D.pad(this._data,this.blockSize),A=this._process(!0)):(A=this._process(!0),D.unpad(A)),A},blockSize:128/32});var g=a.CipherParams=l.extend({init:function(A){this.mixIn(A)},toString:function(A){return(A||this.formatter).stringify(this)}}),b=o.format={},E=b.OpenSSL={stringify:function(A){var D,I=A.ciphertext,P=A.salt;return P?D=c.create([1398893684,1701076831]).concat(P).concat(I):D=I,D.toString(u)},parse:function(A){var D,I=u.parse(A),P=I.words;return P[0]==1398893684&&P[1]==1701076831&&(D=c.create(P.slice(2,4)),P.splice(0,4),I.sigBytes-=16),g.create({ciphertext:I,salt:D})}},B=a.SerializableCipher=l.extend({cfg:l.extend({format:E}),encrypt:function(A,D,I,P){P=this.cfg.extend(P);var W=A.createEncryptor(I,P),H=W.finalize(D),q=W.cfg;return g.create({ciphertext:H,key:I,iv:q.iv,algorithm:A,mode:q.mode,padding:q.padding,blockSize:A.blockSize,formatter:P.format})},decrypt:function(A,D,I,P){P=this.cfg.extend(P),D=this._parse(D,P.format);var W=A.createDecryptor(I,P).finalize(D.ciphertext);return W},_parse:function(A,D){return typeof A=="string"?D.parse(A,this):A}}),y=o.kdf={},k=y.OpenSSL={execute:function(A,D,I,P,W){if(P||(P=c.random(64/8)),W)var H=d.create({keySize:D+I,hasher:W}).compute(A,P);else var H=d.create({keySize:D+I}).compute(A,P);var q=c.create(H.words.slice(D),I*4);return H.sigBytes=D*4,g.create({key:H,iv:q,salt:P})}},R=a.PasswordBasedCipher=B.extend({cfg:B.cfg.extend({kdf:k}),encrypt:function(A,D,I,P){P=this.cfg.extend(P);var W=P.kdf.execute(I,A.keySize,A.ivSize,P.salt,P.hasher);P.iv=W.iv;var H=B.encrypt.call(this,A,D,W.key,P);return H.mixIn(W),H},decrypt:function(A,D,I,P){P=this.cfg.extend(P),D=this._parse(D,P.format);var W=P.kdf.execute(I,A.keySize,A.ivSize,D.salt,P.hasher);P.iv=W.iv;var H=B.decrypt.call(this,A,D,W.key,P);return H}})}()})}(tn)),tn.exports}var rn={exports:{}},M0;function na(){return M0||(M0=1,function(e,t){(function(r,n,o){e.exports=n(ve(),Oe())})(he,function(r){return r.mode.CFB=function(){var n=r.lib.BlockCipherMode.extend();n.Encryptor=n.extend({processBlock:function(a,l){var c=this._cipher,f=c.blockSize;o.call(this,a,l,f,c),this._prevBlock=a.slice(l,l+f)}}),n.Decryptor=n.extend({processBlock:function(a,l){var c=this._cipher,f=c.blockSize,s=a.slice(l,l+f);o.call(this,a,l,f,c),this._prevBlock=s}});function o(a,l,c,f){var s,u=this._iv;u?(s=u.slice(0),this._iv=void 0):s=this._prevBlock,f.encryptBlock(s,0);for(var h=0;h<c;h++)a[l+h]^=s[h]}return n}(),r.mode.CFB})}(rn)),rn.exports}var nn={exports:{}},H0;function oa(){return H0||(H0=1,function(e,t){(function(r,n,o){e.exports=n(ve(),Oe())})(he,function(r){return r.mode.CTR=function(){var n=r.lib.BlockCipherMode.extend(),o=n.Encryptor=n.extend({processBlock:function(a,l){var c=this._cipher,f=c.blockSize,s=this._iv,u=this._counter;s&&(u=this._counter=s.slice(0),this._iv=void 0);var h=u.slice(0);c.encryptBlock(h,0),u[f-1]=u[f-1]+1|0;for(var d=0;d<f;d++)a[l+d]^=h[d]}});return n.Decryptor=o,n}(),r.mode.CTR})}(nn)),nn.exports}var on={exports:{}},q0;function ia(){return q0||(q0=1,function(e,t){(function(r,n,o){e.exports=n(ve(),Oe())})(he,function(r){/** @preserve
11
+ * Counter block mode compatible with Dr Brian Gladman fileenc.c
12
+ * derived from CryptoJS.mode.CTR
13
+ * Jan Hruby jhruby.web@gmail.com
14
+ */return r.mode.CTRGladman=function(){var n=r.lib.BlockCipherMode.extend();function o(c){if((c>>24&255)===255){var f=c>>16&255,s=c>>8&255,u=c&255;f===255?(f=0,s===255?(s=0,u===255?u=0:++u):++s):++f,c=0,c+=f<<16,c+=s<<8,c+=u}else c+=1<<24;return c}function a(c){return(c[0]=o(c[0]))===0&&(c[1]=o(c[1])),c}var l=n.Encryptor=n.extend({processBlock:function(c,f){var s=this._cipher,u=s.blockSize,h=this._iv,d=this._counter;h&&(d=this._counter=h.slice(0),this._iv=void 0),a(d);var x=d.slice(0);s.encryptBlock(x,0);for(var m=0;m<u;m++)c[f+m]^=x[m]}});return n.Decryptor=l,n}(),r.mode.CTRGladman})}(on)),on.exports}var an={exports:{}},U0;function aa(){return U0||(U0=1,function(e,t){(function(r,n,o){e.exports=n(ve(),Oe())})(he,function(r){return r.mode.OFB=function(){var n=r.lib.BlockCipherMode.extend(),o=n.Encryptor=n.extend({processBlock:function(a,l){var c=this._cipher,f=c.blockSize,s=this._iv,u=this._keystream;s&&(u=this._keystream=s.slice(0),this._iv=void 0),c.encryptBlock(u,0);for(var h=0;h<f;h++)a[l+h]^=u[h]}});return n.Decryptor=o,n}(),r.mode.OFB})}(an)),an.exports}var sn={exports:{}},W0;function j0(){return W0||(W0=1,function(e,t){(function(r,n,o){e.exports=n(ve(),Oe())})(he,function(r){return r.mode.ECB=function(){var n=r.lib.BlockCipherMode.extend();return n.Encryptor=n.extend({processBlock:function(o,a){this._cipher.encryptBlock(o,a)}}),n.Decryptor=n.extend({processBlock:function(o,a){this._cipher.decryptBlock(o,a)}}),n}(),r.mode.ECB})}(sn)),sn.exports}var cn={exports:{}},Y0;function sa(){return Y0||(Y0=1,function(e,t){(function(r,n,o){e.exports=n(ve(),Oe())})(he,function(r){return r.pad.AnsiX923={pad:function(n,o){var a=n.sigBytes,l=o*4,c=l-a%l,f=a+c-1;n.clamp(),n.words[f>>>2]|=c<<24-f%4*8,n.sigBytes+=c},unpad:function(n){var o=n.words[n.sigBytes-1>>>2]&255;n.sigBytes-=o}},r.pad.Ansix923})}(cn)),cn.exports}var ln={exports:{}},K0;function ca(){return K0||(K0=1,function(e,t){(function(r,n,o){e.exports=n(ve(),Oe())})(he,function(r){return r.pad.Iso10126={pad:function(n,o){var a=o*4,l=a-n.sigBytes%a;n.concat(r.lib.WordArray.random(l-1)).concat(r.lib.WordArray.create([l<<24],1))},unpad:function(n){var o=n.words[n.sigBytes-1>>>2]&255;n.sigBytes-=o}},r.pad.Iso10126})}(ln)),ln.exports}var fn={exports:{}},G0;function la(){return G0||(G0=1,function(e,t){(function(r,n,o){e.exports=n(ve(),Oe())})(he,function(r){return r.pad.Iso97971={pad:function(n,o){n.concat(r.lib.WordArray.create([2147483648],1)),r.pad.ZeroPadding.pad(n,o)},unpad:function(n){r.pad.ZeroPadding.unpad(n),n.sigBytes--}},r.pad.Iso97971})}(fn)),fn.exports}var un={exports:{}},X0;function fa(){return X0||(X0=1,function(e,t){(function(r,n,o){e.exports=n(ve(),Oe())})(he,function(r){return r.pad.ZeroPadding={pad:function(n,o){var a=o*4;n.clamp(),n.sigBytes+=a-(n.sigBytes%a||a)},unpad:function(n){for(var o=n.words,a=n.sigBytes-1,a=n.sigBytes-1;a>=0;a--)if(o[a>>>2]>>>24-a%4*8&255){n.sigBytes=a+1;break}}},r.pad.ZeroPadding})}(un)),un.exports}var dn={exports:{}},Z0;function ua(){return Z0||(Z0=1,function(e,t){(function(r,n,o){e.exports=n(ve(),Oe())})(he,function(r){return r.pad.NoPadding={pad:function(){},unpad:function(){}},r.pad.NoPadding})}(dn)),dn.exports}var hn={exports:{}},Q0;function da(){return Q0||(Q0=1,function(e,t){(function(r,n,o){e.exports=n(ve(),Oe())})(he,function(r){return function(n){var o=r,a=o.lib,l=a.CipherParams,c=o.enc,f=c.Hex,s=o.format;s.Hex={stringify:function(u){return u.ciphertext.toString(f)},parse:function(u){var h=f.parse(u);return l.create({ciphertext:h})}}}(),r.format.Hex})}(hn)),hn.exports}var pn={exports:{}},J0;function eo(){return J0||(J0=1,function(e,t){(function(r,n,o){e.exports=n(ve(),vt(),mt(),yt(),Oe())})(he,function(r){return function(){var n=r,o=n.lib,a=o.BlockCipher,l=n.algo,c=[],f=[],s=[],u=[],h=[],d=[],x=[],m=[],p=[],v=[];(function(){for(var g=[],b=0;b<256;b++)b<128?g[b]=b<<1:g[b]=b<<1^283;for(var E=0,B=0,b=0;b<256;b++){var y=B^B<<1^B<<2^B<<3^B<<4;y=y>>>8^y&255^99,c[E]=y,f[y]=E;var k=g[E],R=g[k],A=g[R],D=g[y]*257^y*16843008;s[E]=D<<24|D>>>8,u[E]=D<<16|D>>>16,h[E]=D<<8|D>>>24,d[E]=D;var D=A*16843009^R*65537^k*257^E*16843008;x[y]=D<<24|D>>>8,m[y]=D<<16|D>>>16,p[y]=D<<8|D>>>24,v[y]=D,E?(E=k^g[g[g[A^k]]],B^=g[g[B]]):E=B=1}})();var F=[0,1,2,4,8,16,32,64,128,27,54],_=l.AES=a.extend({_doReset:function(){var g;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var b=this._keyPriorReset=this._key,E=b.words,B=b.sigBytes/4,y=this._nRounds=B+6,k=(y+1)*4,R=this._keySchedule=[],A=0;A<k;A++)A<B?R[A]=E[A]:(g=R[A-1],A%B?B>6&&A%B==4&&(g=c[g>>>24]<<24|c[g>>>16&255]<<16|c[g>>>8&255]<<8|c[g&255]):(g=g<<8|g>>>24,g=c[g>>>24]<<24|c[g>>>16&255]<<16|c[g>>>8&255]<<8|c[g&255],g^=F[A/B|0]<<24),R[A]=R[A-B]^g);for(var D=this._invKeySchedule=[],I=0;I<k;I++){var A=k-I;if(I%4)var g=R[A];else var g=R[A-4];I<4||A<=4?D[I]=g:D[I]=x[c[g>>>24]]^m[c[g>>>16&255]]^p[c[g>>>8&255]]^v[c[g&255]]}}},encryptBlock:function(g,b){this._doCryptBlock(g,b,this._keySchedule,s,u,h,d,c)},decryptBlock:function(g,b){var E=g[b+1];g[b+1]=g[b+3],g[b+3]=E,this._doCryptBlock(g,b,this._invKeySchedule,x,m,p,v,f);var E=g[b+1];g[b+1]=g[b+3],g[b+3]=E},_doCryptBlock:function(g,b,E,B,y,k,R,A){for(var D=this._nRounds,I=g[b]^E[0],P=g[b+1]^E[1],W=g[b+2]^E[2],H=g[b+3]^E[3],q=4,X=1;X<D;X++){var K=B[I>>>24]^y[P>>>16&255]^k[W>>>8&255]^R[H&255]^E[q++],ee=B[P>>>24]^y[W>>>16&255]^k[H>>>8&255]^R[I&255]^E[q++],ne=B[W>>>24]^y[H>>>16&255]^k[I>>>8&255]^R[P&255]^E[q++],M=B[H>>>24]^y[I>>>16&255]^k[P>>>8&255]^R[W&255]^E[q++];I=K,P=ee,W=ne,H=M}var K=(A[I>>>24]<<24|A[P>>>16&255]<<16|A[W>>>8&255]<<8|A[H&255])^E[q++],ee=(A[P>>>24]<<24|A[W>>>16&255]<<16|A[H>>>8&255]<<8|A[I&255])^E[q++],ne=(A[W>>>24]<<24|A[H>>>16&255]<<16|A[I>>>8&255]<<8|A[P&255])^E[q++],M=(A[H>>>24]<<24|A[I>>>16&255]<<16|A[P>>>8&255]<<8|A[W&255])^E[q++];g[b]=K,g[b+1]=ee,g[b+2]=ne,g[b+3]=M},keySize:256/32});n.AES=a._createHelper(_)}(),r.AES})}(pn)),pn.exports}var xn={exports:{}},to;function ha(){return to||(to=1,function(e,t){(function(r,n,o){e.exports=n(ve(),vt(),mt(),yt(),Oe())})(he,function(r){return function(){var n=r,o=n.lib,a=o.WordArray,l=o.BlockCipher,c=n.algo,f=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],u=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],h=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],d=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],x=c.DES=l.extend({_doReset:function(){for(var F=this._key,_=F.words,g=[],b=0;b<56;b++){var E=f[b]-1;g[b]=_[E>>>5]>>>31-E%32&1}for(var B=this._subKeys=[],y=0;y<16;y++){for(var k=B[y]=[],R=u[y],b=0;b<24;b++)k[b/6|0]|=g[(s[b]-1+R)%28]<<31-b%6,k[4+(b/6|0)]|=g[28+(s[b+24]-1+R)%28]<<31-b%6;k[0]=k[0]<<1|k[0]>>>31;for(var b=1;b<7;b++)k[b]=k[b]>>>(b-1)*4+3;k[7]=k[7]<<5|k[7]>>>27}for(var A=this._invSubKeys=[],b=0;b<16;b++)A[b]=B[15-b]},encryptBlock:function(F,_){this._doCryptBlock(F,_,this._subKeys)},decryptBlock:function(F,_){this._doCryptBlock(F,_,this._invSubKeys)},_doCryptBlock:function(F,_,g){this._lBlock=F[_],this._rBlock=F[_+1],m.call(this,4,252645135),m.call(this,16,65535),p.call(this,2,858993459),p.call(this,8,16711935),m.call(this,1,1431655765);for(var b=0;b<16;b++){for(var E=g[b],B=this._lBlock,y=this._rBlock,k=0,R=0;R<8;R++)k|=h[R][((y^E[R])&d[R])>>>0];this._lBlock=y,this._rBlock=B^k}var A=this._lBlock;this._lBlock=this._rBlock,this._rBlock=A,m.call(this,1,1431655765),p.call(this,8,16711935),p.call(this,2,858993459),m.call(this,16,65535),m.call(this,4,252645135),F[_]=this._lBlock,F[_+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function m(F,_){var g=(this._lBlock>>>F^this._rBlock)&_;this._rBlock^=g,this._lBlock^=g<<F}function p(F,_){var g=(this._rBlock>>>F^this._lBlock)&_;this._lBlock^=g,this._rBlock^=g<<F}n.DES=l._createHelper(x);var v=c.TripleDES=l.extend({_doReset:function(){var F=this._key,_=F.words;if(_.length!==2&&_.length!==4&&_.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var g=_.slice(0,2),b=_.length<4?_.slice(0,2):_.slice(2,4),E=_.length<6?_.slice(0,2):_.slice(4,6);this._des1=x.createEncryptor(a.create(g)),this._des2=x.createEncryptor(a.create(b)),this._des3=x.createEncryptor(a.create(E))},encryptBlock:function(F,_){this._des1.encryptBlock(F,_),this._des2.decryptBlock(F,_),this._des3.encryptBlock(F,_)},decryptBlock:function(F,_){this._des3.decryptBlock(F,_),this._des2.encryptBlock(F,_),this._des1.decryptBlock(F,_)},keySize:192/32,ivSize:64/32,blockSize:64/32});n.TripleDES=l._createHelper(v)}(),r.TripleDES})}(xn)),xn.exports}var gn={exports:{}},ro;function pa(){return ro||(ro=1,function(e,t){(function(r,n,o){e.exports=n(ve(),vt(),mt(),yt(),Oe())})(he,function(r){return function(){var n=r,o=n.lib,a=o.StreamCipher,l=n.algo,c=l.RC4=a.extend({_doReset:function(){for(var u=this._key,h=u.words,d=u.sigBytes,x=this._S=[],m=0;m<256;m++)x[m]=m;for(var m=0,p=0;m<256;m++){var v=m%d,F=h[v>>>2]>>>24-v%4*8&255;p=(p+x[m]+F)%256;var _=x[m];x[m]=x[p],x[p]=_}this._i=this._j=0},_doProcessBlock:function(u,h){u[h]^=f.call(this)},keySize:256/32,ivSize:0});function f(){for(var u=this._S,h=this._i,d=this._j,x=0,m=0;m<4;m++){h=(h+1)%256,d=(d+u[h])%256;var p=u[h];u[h]=u[d],u[d]=p,x|=u[(u[h]+u[d])%256]<<24-m*8}return this._i=h,this._j=d,x}n.RC4=a._createHelper(c);var s=l.RC4Drop=c.extend({cfg:c.cfg.extend({drop:192}),_doReset:function(){c._doReset.call(this);for(var u=this.cfg.drop;u>0;u--)f.call(this)}});n.RC4Drop=a._createHelper(s)}(),r.RC4})}(gn)),gn.exports}var bn={exports:{}},no;function xa(){return no||(no=1,function(e,t){(function(r,n,o){e.exports=n(ve(),vt(),mt(),yt(),Oe())})(he,function(r){return function(){var n=r,o=n.lib,a=o.StreamCipher,l=n.algo,c=[],f=[],s=[],u=l.Rabbit=a.extend({_doReset:function(){for(var d=this._key.words,x=this.cfg.iv,m=0;m<4;m++)d[m]=(d[m]<<8|d[m]>>>24)&16711935|(d[m]<<24|d[m]>>>8)&4278255360;var p=this._X=[d[0],d[3]<<16|d[2]>>>16,d[1],d[0]<<16|d[3]>>>16,d[2],d[1]<<16|d[0]>>>16,d[3],d[2]<<16|d[1]>>>16],v=this._C=[d[2]<<16|d[2]>>>16,d[0]&4294901760|d[1]&65535,d[3]<<16|d[3]>>>16,d[1]&4294901760|d[2]&65535,d[0]<<16|d[0]>>>16,d[2]&4294901760|d[3]&65535,d[1]<<16|d[1]>>>16,d[3]&4294901760|d[0]&65535];this._b=0;for(var m=0;m<4;m++)h.call(this);for(var m=0;m<8;m++)v[m]^=p[m+4&7];if(x){var F=x.words,_=F[0],g=F[1],b=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,E=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360,B=b>>>16|E&4294901760,y=E<<16|b&65535;v[0]^=b,v[1]^=B,v[2]^=E,v[3]^=y,v[4]^=b,v[5]^=B,v[6]^=E,v[7]^=y;for(var m=0;m<4;m++)h.call(this)}},_doProcessBlock:function(d,x){var m=this._X;h.call(this),c[0]=m[0]^m[5]>>>16^m[3]<<16,c[1]=m[2]^m[7]>>>16^m[5]<<16,c[2]=m[4]^m[1]>>>16^m[7]<<16,c[3]=m[6]^m[3]>>>16^m[1]<<16;for(var p=0;p<4;p++)c[p]=(c[p]<<8|c[p]>>>24)&16711935|(c[p]<<24|c[p]>>>8)&4278255360,d[x+p]^=c[p]},blockSize:128/32,ivSize:64/32});function h(){for(var d=this._X,x=this._C,m=0;m<8;m++)f[m]=x[m];x[0]=x[0]+1295307597+this._b|0,x[1]=x[1]+3545052371+(x[0]>>>0<f[0]>>>0?1:0)|0,x[2]=x[2]+886263092+(x[1]>>>0<f[1]>>>0?1:0)|0,x[3]=x[3]+1295307597+(x[2]>>>0<f[2]>>>0?1:0)|0,x[4]=x[4]+3545052371+(x[3]>>>0<f[3]>>>0?1:0)|0,x[5]=x[5]+886263092+(x[4]>>>0<f[4]>>>0?1:0)|0,x[6]=x[6]+1295307597+(x[5]>>>0<f[5]>>>0?1:0)|0,x[7]=x[7]+3545052371+(x[6]>>>0<f[6]>>>0?1:0)|0,this._b=x[7]>>>0<f[7]>>>0?1:0;for(var m=0;m<8;m++){var p=d[m]+x[m],v=p&65535,F=p>>>16,_=((v*v>>>17)+v*F>>>15)+F*F,g=((p&4294901760)*p|0)+((p&65535)*p|0);s[m]=_^g}d[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,d[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,d[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,d[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,d[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,d[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,d[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,d[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}n.Rabbit=a._createHelper(u)}(),r.Rabbit})}(bn)),bn.exports}var vn={exports:{}},oo;function ga(){return oo||(oo=1,function(e,t){(function(r,n,o){e.exports=n(ve(),vt(),mt(),yt(),Oe())})(he,function(r){return function(){var n=r,o=n.lib,a=o.StreamCipher,l=n.algo,c=[],f=[],s=[],u=l.RabbitLegacy=a.extend({_doReset:function(){var d=this._key.words,x=this.cfg.iv,m=this._X=[d[0],d[3]<<16|d[2]>>>16,d[1],d[0]<<16|d[3]>>>16,d[2],d[1]<<16|d[0]>>>16,d[3],d[2]<<16|d[1]>>>16],p=this._C=[d[2]<<16|d[2]>>>16,d[0]&4294901760|d[1]&65535,d[3]<<16|d[3]>>>16,d[1]&4294901760|d[2]&65535,d[0]<<16|d[0]>>>16,d[2]&4294901760|d[3]&65535,d[1]<<16|d[1]>>>16,d[3]&4294901760|d[0]&65535];this._b=0;for(var v=0;v<4;v++)h.call(this);for(var v=0;v<8;v++)p[v]^=m[v+4&7];if(x){var F=x.words,_=F[0],g=F[1],b=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,E=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360,B=b>>>16|E&4294901760,y=E<<16|b&65535;p[0]^=b,p[1]^=B,p[2]^=E,p[3]^=y,p[4]^=b,p[5]^=B,p[6]^=E,p[7]^=y;for(var v=0;v<4;v++)h.call(this)}},_doProcessBlock:function(d,x){var m=this._X;h.call(this),c[0]=m[0]^m[5]>>>16^m[3]<<16,c[1]=m[2]^m[7]>>>16^m[5]<<16,c[2]=m[4]^m[1]>>>16^m[7]<<16,c[3]=m[6]^m[3]>>>16^m[1]<<16;for(var p=0;p<4;p++)c[p]=(c[p]<<8|c[p]>>>24)&16711935|(c[p]<<24|c[p]>>>8)&4278255360,d[x+p]^=c[p]},blockSize:128/32,ivSize:64/32});function h(){for(var d=this._X,x=this._C,m=0;m<8;m++)f[m]=x[m];x[0]=x[0]+1295307597+this._b|0,x[1]=x[1]+3545052371+(x[0]>>>0<f[0]>>>0?1:0)|0,x[2]=x[2]+886263092+(x[1]>>>0<f[1]>>>0?1:0)|0,x[3]=x[3]+1295307597+(x[2]>>>0<f[2]>>>0?1:0)|0,x[4]=x[4]+3545052371+(x[3]>>>0<f[3]>>>0?1:0)|0,x[5]=x[5]+886263092+(x[4]>>>0<f[4]>>>0?1:0)|0,x[6]=x[6]+1295307597+(x[5]>>>0<f[5]>>>0?1:0)|0,x[7]=x[7]+3545052371+(x[6]>>>0<f[6]>>>0?1:0)|0,this._b=x[7]>>>0<f[7]>>>0?1:0;for(var m=0;m<8;m++){var p=d[m]+x[m],v=p&65535,F=p>>>16,_=((v*v>>>17)+v*F>>>15)+F*F,g=((p&4294901760)*p|0)+((p&65535)*p|0);s[m]=_^g}d[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,d[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,d[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,d[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,d[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,d[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,d[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,d[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}n.RabbitLegacy=a._createHelper(u)}(),r.RabbitLegacy})}(vn)),vn.exports}var mn={exports:{}},io;function ba(){return io||(io=1,function(e,t){(function(r,n,o){e.exports=n(ve(),vt(),mt(),yt(),Oe())})(he,function(r){return function(){var n=r,o=n.lib,a=o.BlockCipher,l=n.algo;const c=16,f=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],s=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var u={pbox:[],sbox:[]};function h(v,F){let _=F>>24&255,g=F>>16&255,b=F>>8&255,E=F&255,B=v.sbox[0][_]+v.sbox[1][g];return B=B^v.sbox[2][b],B=B+v.sbox[3][E],B}function d(v,F,_){let g=F,b=_,E;for(let B=0;B<c;++B)g=g^v.pbox[B],b=h(v,g)^b,E=g,g=b,b=E;return E=g,g=b,b=E,b=b^v.pbox[c],g=g^v.pbox[c+1],{left:g,right:b}}function x(v,F,_){let g=F,b=_,E;for(let B=c+1;B>1;--B)g=g^v.pbox[B],b=h(v,g)^b,E=g,g=b,b=E;return E=g,g=b,b=E,b=b^v.pbox[1],g=g^v.pbox[0],{left:g,right:b}}function m(v,F,_){for(let y=0;y<4;y++){v.sbox[y]=[];for(let k=0;k<256;k++)v.sbox[y][k]=s[y][k]}let g=0;for(let y=0;y<c+2;y++)v.pbox[y]=f[y]^F[g],g++,g>=_&&(g=0);let b=0,E=0,B=0;for(let y=0;y<c+2;y+=2)B=d(v,b,E),b=B.left,E=B.right,v.pbox[y]=b,v.pbox[y+1]=E;for(let y=0;y<4;y++)for(let k=0;k<256;k+=2)B=d(v,b,E),b=B.left,E=B.right,v.sbox[y][k]=b,v.sbox[y][k+1]=E;return!0}var p=l.Blowfish=a.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var v=this._keyPriorReset=this._key,F=v.words,_=v.sigBytes/4;m(u,F,_)}},encryptBlock:function(v,F){var _=d(u,v[F],v[F+1]);v[F]=_.left,v[F+1]=_.right},decryptBlock:function(v,F){var _=x(u,v[F],v[F+1]);v[F]=_.left,v[F+1]=_.right},blockSize:64/32,keySize:128/32,ivSize:64/32});n.Blowfish=a._createHelper(p)}(),r.Blowfish})}(mn)),mn.exports}(function(e,t){(function(r,n,o){e.exports=n(ve(),nr(),Gi(),Xi(),vt(),Zi(),mt(),F0(),Wr(),Qi(),T0(),Ji(),ea(),ta(),Qr(),ra(),yt(),Oe(),na(),oa(),ia(),aa(),j0(),sa(),ca(),la(),fa(),ua(),da(),eo(),ha(),pa(),xa(),ga(),ba())})(he,function(r){return r})})(Yi);var va={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(he,function(){var r=1e3,n=6e4,o=36e5,a="millisecond",l="second",c="minute",f="hour",s="day",u="week",h="month",d="quarter",x="year",m="date",p="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,F=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,_={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(W){var H=["th","st","nd","rd"],q=W%100;return"["+W+(H[(q-20)%10]||H[q]||H[0])+"]"}},g=function(W,H,q){var X=String(W);return!X||X.length>=H?W:""+Array(H+1-X.length).join(q)+W},b={s:g,z:function(W){var H=-W.utcOffset(),q=Math.abs(H),X=Math.floor(q/60),K=q%60;return(H<=0?"+":"-")+g(X,2,"0")+":"+g(K,2,"0")},m:function W(H,q){if(H.date()<q.date())return-W(q,H);var X=12*(q.year()-H.year())+(q.month()-H.month()),K=H.clone().add(X,h),ee=q-K<0,ne=H.clone().add(X+(ee?-1:1),h);return+(-(X+(q-K)/(ee?K-ne:ne-K))||0)},a:function(W){return W<0?Math.ceil(W)||0:Math.floor(W)},p:function(W){return{M:h,y:x,w:u,d:s,D:m,h:f,m:c,s:l,ms:a,Q:d}[W]||String(W||"").toLowerCase().replace(/s$/,"")},u:function(W){return W===void 0}},E="en",B={};B[E]=_;var y="$isDayjsObject",k=function(W){return W instanceof I||!(!W||!W[y])},R=function W(H,q,X){var K;if(!H)return E;if(typeof H=="string"){var ee=H.toLowerCase();B[ee]&&(K=ee),q&&(B[ee]=q,K=ee);var ne=H.split("-");if(!K&&ne.length>1)return W(ne[0])}else{var M=H.name;B[M]=H,K=M}return!X&&K&&(E=K),K||!X&&E},A=function(W,H){if(k(W))return W.clone();var q=typeof H=="object"?H:{};return q.date=W,q.args=arguments,new I(q)},D=b;D.l=R,D.i=k,D.w=function(W,H){return A(W,{locale:H.$L,utc:H.$u,x:H.$x,$offset:H.$offset})};var I=function(){function W(q){this.$L=R(q.locale,null,!0),this.parse(q),this.$x=this.$x||q.x||{},this[y]=!0}var H=W.prototype;return H.parse=function(q){this.$d=function(X){var K=X.date,ee=X.utc;if(K===null)return new Date(NaN);if(D.u(K))return new Date;if(K instanceof Date)return new Date(K);if(typeof K=="string"&&!/Z$/i.test(K)){var ne=K.match(v);if(ne){var M=ne[2]-1||0,N=(ne[7]||"0").substring(0,3);return ee?new Date(Date.UTC(ne[1],M,ne[3]||1,ne[4]||0,ne[5]||0,ne[6]||0,N)):new Date(ne[1],M,ne[3]||1,ne[4]||0,ne[5]||0,ne[6]||0,N)}}return new Date(K)}(q),this.init()},H.init=function(){var q=this.$d;this.$y=q.getFullYear(),this.$M=q.getMonth(),this.$D=q.getDate(),this.$W=q.getDay(),this.$H=q.getHours(),this.$m=q.getMinutes(),this.$s=q.getSeconds(),this.$ms=q.getMilliseconds()},H.$utils=function(){return D},H.isValid=function(){return this.$d.toString()!==p},H.isSame=function(q,X){var K=A(q);return this.startOf(X)<=K&&K<=this.endOf(X)},H.isAfter=function(q,X){return A(q)<this.startOf(X)},H.isBefore=function(q,X){return this.endOf(X)<A(q)},H.$g=function(q,X,K){return D.u(q)?this[X]:this.set(K,q)},H.unix=function(){return Math.floor(this.valueOf()/1e3)},H.valueOf=function(){return this.$d.getTime()},H.startOf=function(q,X){var K=this,ee=!!D.u(X)||X,ne=D.p(q),M=function(ge,fe){var ke=D.w(K.$u?Date.UTC(K.$y,fe,ge):new Date(K.$y,fe,ge),K);return ee?ke:ke.endOf(s)},N=function(ge,fe){return D.w(K.toDate()[ge].apply(K.toDate("s"),(ee?[0,0,0,0]:[23,59,59,999]).slice(fe)),K)},z=this.$W,V=this.$M,te=this.$D,oe="set"+(this.$u?"UTC":"");switch(ne){case x:return ee?M(1,0):M(31,11);case h:return ee?M(1,V):M(0,V+1);case u:var de=this.$locale().weekStart||0,ie=(z<de?z+7:z)-de;return M(ee?te-ie:te+(6-ie),V);case s:case m:return N(oe+"Hours",0);case f:return N(oe+"Minutes",1);case c:return N(oe+"Seconds",2);case l:return N(oe+"Milliseconds",3);default:return this.clone()}},H.endOf=function(q){return this.startOf(q,!1)},H.$set=function(q,X){var K,ee=D.p(q),ne="set"+(this.$u?"UTC":""),M=(K={},K[s]=ne+"Date",K[m]=ne+"Date",K[h]=ne+"Month",K[x]=ne+"FullYear",K[f]=ne+"Hours",K[c]=ne+"Minutes",K[l]=ne+"Seconds",K[a]=ne+"Milliseconds",K)[ee],N=ee===s?this.$D+(X-this.$W):X;if(ee===h||ee===x){var z=this.clone().set(m,1);z.$d[M](N),z.init(),this.$d=z.set(m,Math.min(this.$D,z.daysInMonth())).$d}else M&&this.$d[M](N);return this.init(),this},H.set=function(q,X){return this.clone().$set(q,X)},H.get=function(q){return this[D.p(q)]()},H.add=function(q,X){var K,ee=this;q=Number(q);var ne=D.p(X),M=function(V){var te=A(ee);return D.w(te.date(te.date()+Math.round(V*q)),ee)};if(ne===h)return this.set(h,this.$M+q);if(ne===x)return this.set(x,this.$y+q);if(ne===s)return M(1);if(ne===u)return M(7);var N=(K={},K[c]=n,K[f]=o,K[l]=r,K)[ne]||1,z=this.$d.getTime()+q*N;return D.w(z,this)},H.subtract=function(q,X){return this.add(-1*q,X)},H.format=function(q){var X=this,K=this.$locale();if(!this.isValid())return K.invalidDate||p;var ee=q||"YYYY-MM-DDTHH:mm:ssZ",ne=D.z(this),M=this.$H,N=this.$m,z=this.$M,V=K.weekdays,te=K.months,oe=K.meridiem,de=function(fe,ke,Ve,we){return fe&&(fe[ke]||fe(X,ee))||Ve[ke].slice(0,we)},ie=function(fe){return D.s(M%12||12,fe,"0")},ge=oe||function(fe,ke,Ve){var we=fe<12?"AM":"PM";return Ve?we.toLowerCase():we};return ee.replace(F,function(fe,ke){return ke||function(Ve){switch(Ve){case"YY":return String(X.$y).slice(-2);case"YYYY":return D.s(X.$y,4,"0");case"M":return z+1;case"MM":return D.s(z+1,2,"0");case"MMM":return de(K.monthsShort,z,te,3);case"MMMM":return de(te,z);case"D":return X.$D;case"DD":return D.s(X.$D,2,"0");case"d":return String(X.$W);case"dd":return de(K.weekdaysMin,X.$W,V,2);case"ddd":return de(K.weekdaysShort,X.$W,V,3);case"dddd":return V[X.$W];case"H":return String(M);case"HH":return D.s(M,2,"0");case"h":return ie(1);case"hh":return ie(2);case"a":return ge(M,N,!0);case"A":return ge(M,N,!1);case"m":return String(N);case"mm":return D.s(N,2,"0");case"s":return String(X.$s);case"ss":return D.s(X.$s,2,"0");case"SSS":return D.s(X.$ms,3,"0");case"Z":return ne}return null}(fe)||ne.replace(":","")})},H.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},H.diff=function(q,X,K){var ee,ne=this,M=D.p(X),N=A(q),z=(N.utcOffset()-this.utcOffset())*n,V=this-N,te=function(){return D.m(ne,N)};switch(M){case x:ee=te()/12;break;case h:ee=te();break;case d:ee=te()/3;break;case u:ee=(V-z)/6048e5;break;case s:ee=(V-z)/864e5;break;case f:ee=V/o;break;case c:ee=V/n;break;case l:ee=V/r;break;default:ee=V}return K?ee:D.a(ee)},H.daysInMonth=function(){return this.endOf(h).$D},H.$locale=function(){return B[this.$L]},H.locale=function(q,X){if(!q)return this.$L;var K=this.clone(),ee=R(q,X,!0);return ee&&(K.$L=ee),K},H.clone=function(){return D.w(this.$d,this)},H.toDate=function(){return new Date(this.valueOf())},H.toJSON=function(){return this.isValid()?this.toISOString():null},H.toISOString=function(){return this.$d.toISOString()},H.toString=function(){return this.$d.toUTCString()},W}(),P=I.prototype;return A.prototype=P,[["$ms",a],["$s",l],["$m",c],["$H",f],["$W",s],["$M",h],["$y",x],["$D",m]].forEach(function(W){P[W[1]]=function(H){return this.$g(H,W[0],W[1])}}),A.extend=function(W,H){return W.$i||(W(H,I,A),W.$i=!0),A},A.locale=R,A.isDayjs=k,A.unix=function(W){return A(1e3*W)},A.en=B[E],A.Ls=B,A.p={},A})})(va);var ao=function(){if(typeof Map<"u")return Map;function e(t,r){var n=-1;return t.some(function(o,a){return o[0]===r?(n=a,!0):!1}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(r){var n=e(this.__entries__,r),o=this.__entries__[n];return o&&o[1]},t.prototype.set=function(r,n){var o=e(this.__entries__,r);~o?this.__entries__[o][1]=n:this.__entries__.push([r,n])},t.prototype.delete=function(r){var n=this.__entries__,o=e(n,r);~o&&n.splice(o,1)},t.prototype.has=function(r){return!!~e(this.__entries__,r)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(r,n){n===void 0&&(n=null);for(var o=0,a=this.__entries__;o<a.length;o++){var l=a[o];r.call(n,l[1],l[0])}},t}()}(),yn=typeof window<"u"&&typeof document<"u"&&window.document===document,or=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),ma=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(or):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),ya=2;function Ca(e,t){var r=!1,n=!1,o=0;function a(){r&&(r=!1,e()),n&&c()}function l(){ma(a)}function c(){var f=Date.now();if(r){if(f-o<ya)return;n=!0}else r=!0,n=!1,setTimeout(l,t);o=f}return c}var Ba=20,Ea=["top","right","bottom","left","width","height","size","weight"],_a=typeof MutationObserver<"u",wa=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=Ca(this.refresh.bind(this),Ba)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var r=this.observers_,n=r.indexOf(t);~n&&r.splice(n,1),!r.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(r){return r.gatherActive(),r.hasActive()});return t.forEach(function(r){return r.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!yn||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),_a?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!yn||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var r=t.propertyName,n=r===void 0?"":r,o=Ea.some(function(a){return!!~n.indexOf(a)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),so=function(e,t){for(var r=0,n=Object.keys(t);r<n.length;r++){var o=n[r];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},St=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||or},co=ar(0,0,0,0);function ir(e){return parseFloat(e)||0}function lo(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.reduce(function(n,o){var a=e["border-"+o+"-width"];return n+ir(a)},0)}function Aa(e){for(var t=["top","right","bottom","left"],r={},n=0,o=t;n<o.length;n++){var a=o[n],l=e["padding-"+a];r[a]=ir(l)}return r}function ka(e){var t=e.getBBox();return ar(0,0,t.width,t.height)}function Da(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return co;var n=St(e).getComputedStyle(e),o=Aa(n),a=o.left+o.right,l=o.top+o.bottom,c=ir(n.width),f=ir(n.height);if(n.boxSizing==="border-box"&&(Math.round(c+a)!==t&&(c-=lo(n,"left","right")+a),Math.round(f+l)!==r&&(f-=lo(n,"top","bottom")+l)),!Sa(e)){var s=Math.round(c+a)-t,u=Math.round(f+l)-r;Math.abs(s)!==1&&(c-=s),Math.abs(u)!==1&&(f-=u)}return ar(o.left,o.top,c,f)}var Fa=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof St(e).SVGGraphicsElement}:function(e){return e instanceof St(e).SVGElement&&typeof e.getBBox=="function"}}();function Sa(e){return e===St(e).document.documentElement}function Na(e){return yn?Fa(e)?ka(e):Da(e):co}function Ia(e){var t=e.x,r=e.y,n=e.width,o=e.height,a=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,l=Object.create(a.prototype);return so(l,{x:t,y:r,width:n,height:o,top:r,right:t+n,bottom:o+r,left:t}),l}function ar(e,t,r,n){return{x:e,y:t,width:r,height:n}}var Ta=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=ar(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=Na(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),Oa=function(){function e(t,r){var n=Ia(r);so(this,{target:t,contentRect:n})}return e}(),Ra=function(){function e(t,r,n){if(this.activeObservations_=[],this.observations_=new ao,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=r,this.callbackCtx_=n}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof St(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new Ta(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof St(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)&&(r.delete(t),r.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(r){r.isActive()&&t.activeObservations_.push(r)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,r=this.activeObservations_.map(function(n){return new Oa(n.target,n.broadcastRect())});this.callback_.call(t,r,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),fo=typeof WeakMap<"u"?new WeakMap:new ao,uo=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=wa.getInstance(),n=new Ra(t,r,this);fo.set(this,n)}return e}();["observe","unobserve","disconnect"].forEach(function(e){uo.prototype[e]=function(){var t;return(t=fo.get(this))[e].apply(t,arguments)}}),function(){return typeof or.ResizeObserver<"u"?or.ResizeObserver:uo}(),eo(),vt();var La={exports:{}};(function(e,t){(function(r,n){e.exports=n(ve())})(he,function(r){return r.enc.Utf8})})(La),mt(),j0();var Va={exports:{}};(function(e,t){(function(r,n,o){e.exports=n(ve(),Oe())})(he,function(r){return r.pad.Pkcs7})})(Va);function $a(e){var t=[],r="";for(r in e)t.push(r);return t}function Cn(e){return e=JSON.stringify(e),!(typeof e!="string"||!/^\{[\s\S]*\}$/.test(e))}function Pa(e){return e instanceof Array}function za(e){return Array.prototype.slice.call(e)}function Nt(){if(!(this instanceof Nt))return new Nt}Nt.prototype={get:function(e){for(var t=e+"=",r=document.cookie.split(";"),n=0;n<r.length;n++){for(var o=r[n];o.charAt(0)==" ";)o=o.substring(1,o.length);if(o.indexOf(t)==0)return decodeURI(o.substring(t.length,o.length))}return!1},set:function(e,t,r){if(Cn(e))for(const n in e)this.set(n,e[n],t,r);else if(typeof e=="string"){const n=Cn(r)?r:{expires:r},o=n.path!==void 0?`;path=${n.path};path=/`:";path=/",a=n.domain?`;domain=${n.domain}`:"",l=n.secure?";secure":"";let c=n.expires!==void 0?n.expires:"";typeof c=="string"&&c!==""?c=new Date(c):typeof c=="number"&&(c=new Date(+new Date+1e3*60*60*24*c)),c!==""&&"toGMTString"in c&&(c=`;expires=${c.toGMTString()}`);const f=n.sameSite?`;SameSite=${n.sameSite}`:"";document.cookie=`${e}=${encodeURI(t)+c+o+a+l+f}`}},remove:function(e){e=Pa(e)?e:za(arguments);for(var t=0,r=e.length;t<r;t++)this.set(e[t],"",-1);return e},clear:function(e){return e?this.remove(e):this.remove($a(this.all()))},all:function(){if(document.cookie==="")return{};for(var e=document.cookie.split("; "),t={},r=0,n=e.length;r<n;r++){var o=e[r].split("=");t[decodeURI(o[0])]=decodeURI(o[1])}return t}};let At=null;const ho=function(e,t,r){const n=arguments;if(At||(At=Nt()),n.length===0)return At.all();if(n.length===1&&e===null)return At.clear();if(n.length===2&&!t)return At.clear(e);if(typeof e=="string"&&!t)return At.get(e);if(typeof e=="string"&&t||Cn(e))return At.set(e,t,r)};for(const e in Nt.prototype)ho[e]=Nt.prototype[e];var po={exports:{}};/*!
15
+ localForage -- Offline Storage, Improved
16
+ Version 1.10.0
17
+ https://localforage.github.io/localForage
18
+ (c) 2013-2017 Mozilla, Apache License 2.0
19
+ */(function(e,t){(function(r){e.exports=r()})(function(){return function r(n,o,a){function l(s,u){if(!o[s]){if(!n[s]){var h=typeof zt=="function"&&zt;if(!u&&h)return h(s,!0);if(c)return c(s,!0);var d=new Error("Cannot find module '"+s+"'");throw d.code="MODULE_NOT_FOUND",d}var x=o[s]={exports:{}};n[s][0].call(x.exports,function(m){var p=n[s][1][m];return l(p||m)},x,x.exports,r,n,o,a)}return o[s].exports}for(var c=typeof zt=="function"&&zt,f=0;f<a.length;f++)l(a[f]);return l}({1:[function(r,n,o){(function(a){var l=a.MutationObserver||a.WebKitMutationObserver,c;if(l){var f=0,s=new l(m),u=a.document.createTextNode("");s.observe(u,{characterData:!0}),c=function(){u.data=f=++f%2}}else if(!a.setImmediate&&typeof a.MessageChannel<"u"){var h=new a.MessageChannel;h.port1.onmessage=m,c=function(){h.port2.postMessage(0)}}else"document"in a&&"onreadystatechange"in a.document.createElement("script")?c=function(){var v=a.document.createElement("script");v.onreadystatechange=function(){m(),v.onreadystatechange=null,v.parentNode.removeChild(v),v=null},a.document.documentElement.appendChild(v)}:c=function(){setTimeout(m,0)};var d,x=[];function m(){d=!0;for(var v,F,_=x.length;_;){for(F=x,x=[],v=-1;++v<_;)F[v]();_=x.length}d=!1}n.exports=p;function p(v){x.push(v)===1&&!d&&c()}}).call(this,typeof he<"u"?he:typeof self<"u"?self:typeof window<"u"?window:{})},{}],2:[function(r,n,o){var a=r(1);function l(){}var c={},f=["REJECTED"],s=["FULFILLED"],u=["PENDING"];n.exports=h;function h(E){if(typeof E!="function")throw new TypeError("resolver must be a function");this.state=u,this.queue=[],this.outcome=void 0,E!==l&&p(this,E)}h.prototype.catch=function(E){return this.then(null,E)},h.prototype.then=function(E,B){if(typeof E!="function"&&this.state===s||typeof B!="function"&&this.state===f)return this;var y=new this.constructor(l);if(this.state!==u){var k=this.state===s?E:B;x(y,k,this.outcome)}else this.queue.push(new d(y,E,B));return y};function d(E,B,y){this.promise=E,typeof B=="function"&&(this.onFulfilled=B,this.callFulfilled=this.otherCallFulfilled),typeof y=="function"&&(this.onRejected=y,this.callRejected=this.otherCallRejected)}d.prototype.callFulfilled=function(E){c.resolve(this.promise,E)},d.prototype.otherCallFulfilled=function(E){x(this.promise,this.onFulfilled,E)},d.prototype.callRejected=function(E){c.reject(this.promise,E)},d.prototype.otherCallRejected=function(E){x(this.promise,this.onRejected,E)};function x(E,B,y){a(function(){var k;try{k=B(y)}catch(R){return c.reject(E,R)}k===E?c.reject(E,new TypeError("Cannot resolve promise with itself")):c.resolve(E,k)})}c.resolve=function(E,B){var y=v(m,B);if(y.status==="error")return c.reject(E,y.value);var k=y.value;if(k)p(E,k);else{E.state=s,E.outcome=B;for(var R=-1,A=E.queue.length;++R<A;)E.queue[R].callFulfilled(B)}return E},c.reject=function(E,B){E.state=f,E.outcome=B;for(var y=-1,k=E.queue.length;++y<k;)E.queue[y].callRejected(B);return E};function m(E){var B=E&&E.then;if(E&&(typeof E=="object"||typeof E=="function")&&typeof B=="function")return function(){B.apply(E,arguments)}}function p(E,B){var y=!1;function k(I){y||(y=!0,c.reject(E,I))}function R(I){y||(y=!0,c.resolve(E,I))}function A(){B(R,k)}var D=v(A);D.status==="error"&&k(D.value)}function v(E,B){var y={};try{y.value=E(B),y.status="success"}catch(k){y.status="error",y.value=k}return y}h.resolve=F;function F(E){return E instanceof this?E:c.resolve(new this(l),E)}h.reject=_;function _(E){var B=new this(l);return c.reject(B,E)}h.all=g;function g(E){var B=this;if(Object.prototype.toString.call(E)!=="[object Array]")return this.reject(new TypeError("must be an array"));var y=E.length,k=!1;if(!y)return this.resolve([]);for(var R=new Array(y),A=0,D=-1,I=new this(l);++D<y;)P(E[D],D);return I;function P(W,H){B.resolve(W).then(q,function(X){k||(k=!0,c.reject(I,X))});function q(X){R[H]=X,++A===y&&!k&&(k=!0,c.resolve(I,R))}}}h.race=b;function b(E){var B=this;if(Object.prototype.toString.call(E)!=="[object Array]")return this.reject(new TypeError("must be an array"));var y=E.length,k=!1;if(!y)return this.resolve([]);for(var R=-1,A=new this(l);++R<y;)D(E[R]);return A;function D(I){B.resolve(I).then(function(P){k||(k=!0,c.resolve(A,P))},function(P){k||(k=!0,c.reject(A,P))})}}},{1:1}],3:[function(r,n,o){(function(a){typeof a.Promise!="function"&&(a.Promise=r(2))}).call(this,typeof he<"u"?he:typeof self<"u"?self:typeof window<"u"?window:{})},{2:2}],4:[function(r,n,o){var a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(C){return typeof C}:function(C){return C&&typeof Symbol=="function"&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":typeof C};function l(C,S){if(!(C instanceof S))throw new TypeError("Cannot call a class as a function")}function c(){try{if(typeof indexedDB<"u")return indexedDB;if(typeof webkitIndexedDB<"u")return webkitIndexedDB;if(typeof mozIndexedDB<"u")return mozIndexedDB;if(typeof OIndexedDB<"u")return OIndexedDB;if(typeof msIndexedDB<"u")return msIndexedDB}catch{return}}var f=c();function s(){try{if(!f||!f.open)return!1;var C=typeof openDatabase<"u"&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),S=typeof fetch=="function"&&fetch.toString().indexOf("[native code")!==-1;return(!C||S)&&typeof indexedDB<"u"&&typeof IDBKeyRange<"u"}catch{return!1}}function u(C,S){C=C||[],S=S||{};try{return new Blob(C,S)}catch(T){if(T.name!=="TypeError")throw T;for(var w=typeof BlobBuilder<"u"?BlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:WebKitBlobBuilder,O=new w,L=0;L<C.length;L+=1)O.append(C[L]);return O.getBlob(S.type)}}typeof Promise>"u"&&r(3);var h=Promise;function d(C,S){S&&C.then(function(w){S(null,w)},function(w){S(w)})}function x(C,S,w){typeof S=="function"&&C.then(S),typeof w=="function"&&C.catch(w)}function m(C){return typeof C!="string"&&(console.warn(C+" used as a key, but it is not a string."),C=String(C)),C}function p(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var v="local-forage-detect-blob-support",F=void 0,_={},g=Object.prototype.toString,b="readonly",E="readwrite";function B(C){for(var S=C.length,w=new ArrayBuffer(S),O=new Uint8Array(w),L=0;L<S;L++)O[L]=C.charCodeAt(L);return w}function y(C){return new h(function(S){var w=C.transaction(v,E),O=u([""]);w.objectStore(v).put(O,"key"),w.onabort=function(L){L.preventDefault(),L.stopPropagation(),S(!1)},w.oncomplete=function(){var L=navigator.userAgent.match(/Chrome\/(\d+)/),T=navigator.userAgent.match(/Edge\//);S(T||!L||parseInt(L[1],10)>=43)}}).catch(function(){return!1})}function k(C){return typeof F=="boolean"?h.resolve(F):y(C).then(function(S){return F=S,F})}function R(C){var S=_[C.name],w={};w.promise=new h(function(O,L){w.resolve=O,w.reject=L}),S.deferredOperations.push(w),S.dbReady?S.dbReady=S.dbReady.then(function(){return w.promise}):S.dbReady=w.promise}function A(C){var S=_[C.name],w=S.deferredOperations.pop();if(w)return w.resolve(),w.promise}function D(C,S){var w=_[C.name],O=w.deferredOperations.pop();if(O)return O.reject(S),O.promise}function I(C,S){return new h(function(w,O){if(_[C.name]=_[C.name]||N(),C.db)if(S)R(C),C.db.close();else return w(C.db);var L=[C.name];S&&L.push(C.version);var T=f.open.apply(f,L);S&&(T.onupgradeneeded=function(j){var G=T.result;try{G.createObjectStore(C.storeName),j.oldVersion<=1&&G.createObjectStore(v)}catch(Q){if(Q.name==="ConstraintError")console.warn('The database "'+C.name+'" has been upgraded from version '+j.oldVersion+" to version "+j.newVersion+', but the storage "'+C.storeName+'" already exists.');else throw Q}}),T.onerror=function(j){j.preventDefault(),O(T.error)},T.onsuccess=function(){var j=T.result;j.onversionchange=function(G){G.target.close()},w(j),A(C)}})}function P(C){return I(C,!1)}function W(C){return I(C,!0)}function H(C,S){if(!C.db)return!0;var w=!C.db.objectStoreNames.contains(C.storeName),O=C.version<C.db.version,L=C.version>C.db.version;if(O&&(C.version!==S&&console.warn('The database "'+C.name+`" can't be downgraded from version `+C.db.version+" to version "+C.version+"."),C.version=C.db.version),L||w){if(w){var T=C.db.version+1;T>C.version&&(C.version=T)}return!0}return!1}function q(C){return new h(function(S,w){var O=new FileReader;O.onerror=w,O.onloadend=function(L){var T=btoa(L.target.result||"");S({__local_forage_encoded_blob:!0,data:T,type:C.type})},O.readAsBinaryString(C)})}function X(C){var S=B(atob(C.data));return u([S],{type:C.type})}function K(C){return C&&C.__local_forage_encoded_blob}function ee(C){var S=this,w=S._initReady().then(function(){var O=_[S._dbInfo.name];if(O&&O.dbReady)return O.dbReady});return x(w,C,C),w}function ne(C){R(C);for(var S=_[C.name],w=S.forages,O=0;O<w.length;O++){var L=w[O];L._dbInfo.db&&(L._dbInfo.db.close(),L._dbInfo.db=null)}return C.db=null,P(C).then(function(T){return C.db=T,H(C)?W(C):T}).then(function(T){C.db=S.db=T;for(var j=0;j<w.length;j++)w[j]._dbInfo.db=T}).catch(function(T){throw D(C,T),T})}function M(C,S,w,O){O===void 0&&(O=1);try{var L=C.db.transaction(C.storeName,S);w(null,L)}catch(T){if(O>0&&(!C.db||T.name==="InvalidStateError"||T.name==="NotFoundError"))return h.resolve().then(function(){if(!C.db||T.name==="NotFoundError"&&!C.db.objectStoreNames.contains(C.storeName)&&C.version<=C.db.version)return C.db&&(C.version=C.db.version+1),W(C)}).then(function(){return ne(C).then(function(){M(C,S,w,O-1)})}).catch(w);w(T)}}function N(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function z(C){var S=this,w={db:null};if(C)for(var O in C)w[O]=C[O];var L=_[w.name];L||(L=N(),_[w.name]=L),L.forages.push(S),S._initReady||(S._initReady=S.ready,S.ready=ee);var T=[];function j(){return h.resolve()}for(var G=0;G<L.forages.length;G++){var Q=L.forages[G];Q!==S&&T.push(Q._initReady().catch(j))}var J=L.forages.slice(0);return h.all(T).then(function(){return w.db=L.db,P(w)}).then(function(re){return w.db=re,H(w,S._defaultConfig.version)?W(w):re}).then(function(re){w.db=L.db=re,S._dbInfo=w;for(var ce=0;ce<J.length;ce++){var be=J[ce];be!==S&&(be._dbInfo.db=w.db,be._dbInfo.version=w.version)}})}function V(C,S){var w=this;C=m(C);var O=new h(function(L,T){w.ready().then(function(){M(w._dbInfo,b,function(j,G){if(j)return T(j);try{var Q=G.objectStore(w._dbInfo.storeName),J=Q.get(C);J.onsuccess=function(){var re=J.result;re===void 0&&(re=null),K(re)&&(re=X(re)),L(re)},J.onerror=function(){T(J.error)}}catch(re){T(re)}})}).catch(T)});return d(O,S),O}function te(C,S){var w=this,O=new h(function(L,T){w.ready().then(function(){M(w._dbInfo,b,function(j,G){if(j)return T(j);try{var Q=G.objectStore(w._dbInfo.storeName),J=Q.openCursor(),re=1;J.onsuccess=function(){var ce=J.result;if(ce){var be=ce.value;K(be)&&(be=X(be));var Ce=C(be,ce.key,re++);Ce!==void 0?L(Ce):ce.continue()}else L()},J.onerror=function(){T(J.error)}}catch(ce){T(ce)}})}).catch(T)});return d(O,S),O}function oe(C,S,w){var O=this;C=m(C);var L=new h(function(T,j){var G;O.ready().then(function(){return G=O._dbInfo,g.call(S)==="[object Blob]"?k(G.db).then(function(Q){return Q?S:q(S)}):S}).then(function(Q){M(O._dbInfo,E,function(J,re){if(J)return j(J);try{var ce=re.objectStore(O._dbInfo.storeName);Q===null&&(Q=void 0);var be=ce.put(Q,C);re.oncomplete=function(){Q===void 0&&(Q=null),T(Q)},re.onabort=re.onerror=function(){var Ce=be.error?be.error:be.transaction.error;j(Ce)}}catch(Ce){j(Ce)}})}).catch(j)});return d(L,w),L}function de(C,S){var w=this;C=m(C);var O=new h(function(L,T){w.ready().then(function(){M(w._dbInfo,E,function(j,G){if(j)return T(j);try{var Q=G.objectStore(w._dbInfo.storeName),J=Q.delete(C);G.oncomplete=function(){L()},G.onerror=function(){T(J.error)},G.onabort=function(){var re=J.error?J.error:J.transaction.error;T(re)}}catch(re){T(re)}})}).catch(T)});return d(O,S),O}function ie(C){var S=this,w=new h(function(O,L){S.ready().then(function(){M(S._dbInfo,E,function(T,j){if(T)return L(T);try{var G=j.objectStore(S._dbInfo.storeName),Q=G.clear();j.oncomplete=function(){O()},j.onabort=j.onerror=function(){var J=Q.error?Q.error:Q.transaction.error;L(J)}}catch(J){L(J)}})}).catch(L)});return d(w,C),w}function ge(C){var S=this,w=new h(function(O,L){S.ready().then(function(){M(S._dbInfo,b,function(T,j){if(T)return L(T);try{var G=j.objectStore(S._dbInfo.storeName),Q=G.count();Q.onsuccess=function(){O(Q.result)},Q.onerror=function(){L(Q.error)}}catch(J){L(J)}})}).catch(L)});return d(w,C),w}function fe(C,S){var w=this,O=new h(function(L,T){if(C<0){L(null);return}w.ready().then(function(){M(w._dbInfo,b,function(j,G){if(j)return T(j);try{var Q=G.objectStore(w._dbInfo.storeName),J=!1,re=Q.openKeyCursor();re.onsuccess=function(){var ce=re.result;if(!ce){L(null);return}C===0||J?L(ce.key):(J=!0,ce.advance(C))},re.onerror=function(){T(re.error)}}catch(ce){T(ce)}})}).catch(T)});return d(O,S),O}function ke(C){var S=this,w=new h(function(O,L){S.ready().then(function(){M(S._dbInfo,b,function(T,j){if(T)return L(T);try{var G=j.objectStore(S._dbInfo.storeName),Q=G.openKeyCursor(),J=[];Q.onsuccess=function(){var re=Q.result;if(!re){O(J);return}J.push(re.key),re.continue()},Q.onerror=function(){L(Q.error)}}catch(re){L(re)}})}).catch(L)});return d(w,C),w}function Ve(C,S){S=p.apply(this,arguments);var w=this.config();C=typeof C!="function"&&C||{},C.name||(C.name=C.name||w.name,C.storeName=C.storeName||w.storeName);var O=this,L;if(!C.name)L=h.reject("Invalid arguments");else{var T=C.name===w.name&&O._dbInfo.db,j=T?h.resolve(O._dbInfo.db):P(C).then(function(G){var Q=_[C.name],J=Q.forages;Q.db=G;for(var re=0;re<J.length;re++)J[re]._dbInfo.db=G;return G});C.storeName?L=j.then(function(G){if(G.objectStoreNames.contains(C.storeName)){var Q=G.version+1;R(C);var J=_[C.name],re=J.forages;G.close();for(var ce=0;ce<re.length;ce++){var be=re[ce];be._dbInfo.db=null,be._dbInfo.version=Q}var Ce=new h(function(Be,Te){var Se=f.open(C.name,Q);Se.onerror=function(tt){var rr=Se.result;rr.close(),Te(tt)},Se.onupgradeneeded=function(){var tt=Se.result;tt.deleteObjectStore(C.storeName)},Se.onsuccess=function(){var tt=Se.result;tt.close(),Be(tt)}});return Ce.then(function(Be){J.db=Be;for(var Te=0;Te<re.length;Te++){var Se=re[Te];Se._dbInfo.db=Be,A(Se._dbInfo)}}).catch(function(Be){throw(D(C,Be)||h.resolve()).catch(function(){}),Be})}}):L=j.then(function(G){R(C);var Q=_[C.name],J=Q.forages;G.close();for(var re=0;re<J.length;re++){var ce=J[re];ce._dbInfo.db=null}var be=new h(function(Ce,Be){var Te=f.deleteDatabase(C.name);Te.onerror=function(){var Se=Te.result;Se&&Se.close(),Be(Te.error)},Te.onblocked=function(){console.warn('dropInstance blocked for database "'+C.name+'" until all open connections are closed')},Te.onsuccess=function(){var Se=Te.result;Se&&Se.close(),Ce(Se)}});return be.then(function(Ce){Q.db=Ce;for(var Be=0;Be<J.length;Be++){var Te=J[Be];A(Te._dbInfo)}}).catch(function(Ce){throw(D(C,Ce)||h.resolve()).catch(function(){}),Ce})})}return d(L,S),L}var we={_driver:"asyncStorage",_initStorage:z,_support:s(),iterate:te,getItem:V,setItem:oe,removeItem:de,clear:ie,length:ge,key:fe,keys:ke,dropInstance:Ve};function Ae(){return typeof openDatabase=="function"}var _e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Fe="~~local_forage_type~",$e=/^~~local_forage_type~([^~]+)~/,Ie="__lfsc__:",it=Ie.length,Ze="arbf",Me="blob",Pe="si08",Ge="ui08",at="uic8",Ft="si16",Qe="si32",ut="ur16",U="ui32",Z="fl32",$="fl64",se=it+Ze.length,ye=Object.prototype.toString;function Xe(C){var S=C.length*.75,w=C.length,O,L=0,T,j,G,Q;C[C.length-1]==="="&&(S--,C[C.length-2]==="="&&S--);var J=new ArrayBuffer(S),re=new Uint8Array(J);for(O=0;O<w;O+=4)T=_e.indexOf(C[O]),j=_e.indexOf(C[O+1]),G=_e.indexOf(C[O+2]),Q=_e.indexOf(C[O+3]),re[L++]=T<<2|j>>4,re[L++]=(j&15)<<4|G>>2,re[L++]=(G&3)<<6|Q&63;return J}function Je(C){var S=new Uint8Array(C),w="",O;for(O=0;O<S.length;O+=3)w+=_e[S[O]>>2],w+=_e[(S[O]&3)<<4|S[O+1]>>4],w+=_e[(S[O+1]&15)<<2|S[O+2]>>6],w+=_e[S[O+2]&63];return S.length%3===2?w=w.substring(0,w.length-1)+"=":S.length%3===1&&(w=w.substring(0,w.length-2)+"=="),w}function dt(C,S){var w="";if(C&&(w=ye.call(C)),C&&(w==="[object ArrayBuffer]"||C.buffer&&ye.call(C.buffer)==="[object ArrayBuffer]")){var O,L=Ie;C instanceof ArrayBuffer?(O=C,L+=Ze):(O=C.buffer,w==="[object Int8Array]"?L+=Pe:w==="[object Uint8Array]"?L+=Ge:w==="[object Uint8ClampedArray]"?L+=at:w==="[object Int16Array]"?L+=Ft:w==="[object Uint16Array]"?L+=ut:w==="[object Int32Array]"?L+=Qe:w==="[object Uint32Array]"?L+=U:w==="[object Float32Array]"?L+=Z:w==="[object Float64Array]"?L+=$:S(new Error("Failed to get type for BinaryArray"))),S(L+Je(O))}else if(w==="[object Blob]"){var T=new FileReader;T.onload=function(){var j=Fe+C.type+"~"+Je(this.result);S(Ie+Me+j)},T.readAsArrayBuffer(C)}else try{S(JSON.stringify(C))}catch(j){console.error("Couldn't convert value into a JSON string: ",C),S(null,j)}}function Lt(C){if(C.substring(0,it)!==Ie)return JSON.parse(C);var S=C.substring(se),w=C.substring(it,se),O;if(w===Me&&$e.test(S)){var L=S.match($e);O=L[1],S=S.substring(L[0].length)}var T=Xe(S);switch(w){case Ze:return T;case Me:return u([T],{type:O});case Pe:return new Int8Array(T);case Ge:return new Uint8Array(T);case at:return new Uint8ClampedArray(T);case Ft:return new Int16Array(T);case ut:return new Uint16Array(T);case Qe:return new Int32Array(T);case U:return new Uint32Array(T);case Z:return new Float32Array(T);case $:return new Float64Array(T);default:throw new Error("Unkown type: "+w)}}var De={serialize:dt,deserialize:Lt,stringToBuffer:Xe,bufferToString:Je};function Ue(C,S,w,O){C.executeSql("CREATE TABLE IF NOT EXISTS "+S.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],w,O)}function s0(C){var S=this,w={db:null};if(C)for(var O in C)w[O]=typeof C[O]!="string"?C[O].toString():C[O];var L=new h(function(T,j){try{w.db=openDatabase(w.name,String(w.version),w.description,w.size)}catch(G){return j(G)}w.db.transaction(function(G){Ue(G,w,function(){S._dbInfo=w,T()},function(Q,J){j(J)})},j)});return w.serializer=De,L}function st(C,S,w,O,L,T){C.executeSql(w,O,L,function(j,G){G.code===G.SYNTAX_ERR?j.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[S.storeName],function(Q,J){J.rows.length?T(Q,G):Ue(Q,S,function(){Q.executeSql(w,O,L,T)},T)},T):T(j,G)},T)}function c0(C,S){var w=this;C=m(C);var O=new h(function(L,T){w.ready().then(function(){var j=w._dbInfo;j.db.transaction(function(G){st(G,j,"SELECT * FROM "+j.storeName+" WHERE key = ? LIMIT 1",[C],function(Q,J){var re=J.rows.length?J.rows.item(0).value:null;re&&(re=j.serializer.deserialize(re)),L(re)},function(Q,J){T(J)})})}).catch(T)});return d(O,S),O}function Sr(C,S){var w=this,O=new h(function(L,T){w.ready().then(function(){var j=w._dbInfo;j.db.transaction(function(G){st(G,j,"SELECT * FROM "+j.storeName,[],function(Q,J){for(var re=J.rows,ce=re.length,be=0;be<ce;be++){var Ce=re.item(be),Be=Ce.value;if(Be&&(Be=j.serializer.deserialize(Be)),Be=C(Be,Ce.key,be+1),Be!==void 0){L(Be);return}}L()},function(Q,J){T(J)})})}).catch(T)});return d(O,S),O}function Nr(C,S,w,O){var L=this;C=m(C);var T=new h(function(j,G){L.ready().then(function(){S===void 0&&(S=null);var Q=S,J=L._dbInfo;J.serializer.serialize(S,function(re,ce){ce?G(ce):J.db.transaction(function(be){st(be,J,"INSERT OR REPLACE INTO "+J.storeName+" (key, value) VALUES (?, ?)",[C,re],function(){j(Q)},function(Ce,Be){G(Be)})},function(be){if(be.code===be.QUOTA_ERR){if(O>0){j(Nr.apply(L,[C,Q,w,O-1]));return}G(be)}})})}).catch(G)});return d(T,w),T}function l0(C,S,w){return Nr.apply(this,[C,S,w,1])}function f0(C,S){var w=this;C=m(C);var O=new h(function(L,T){w.ready().then(function(){var j=w._dbInfo;j.db.transaction(function(G){st(G,j,"DELETE FROM "+j.storeName+" WHERE key = ?",[C],function(){L()},function(Q,J){T(J)})})}).catch(T)});return d(O,S),O}function Ir(C){var S=this,w=new h(function(O,L){S.ready().then(function(){var T=S._dbInfo;T.db.transaction(function(j){st(j,T,"DELETE FROM "+T.storeName,[],function(){O()},function(G,Q){L(Q)})})}).catch(L)});return d(w,C),w}function u0(C){var S=this,w=new h(function(O,L){S.ready().then(function(){var T=S._dbInfo;T.db.transaction(function(j){st(j,T,"SELECT COUNT(key) as c FROM "+T.storeName,[],function(G,Q){var J=Q.rows.item(0).c;O(J)},function(G,Q){L(Q)})})}).catch(L)});return d(w,C),w}function d0(C,S){var w=this,O=new h(function(L,T){w.ready().then(function(){var j=w._dbInfo;j.db.transaction(function(G){st(G,j,"SELECT key FROM "+j.storeName+" WHERE id = ? LIMIT 1",[C+1],function(Q,J){var re=J.rows.length?J.rows.item(0).key:null;L(re)},function(Q,J){T(J)})})}).catch(T)});return d(O,S),O}function Tr(C){var S=this,w=new h(function(O,L){S.ready().then(function(){var T=S._dbInfo;T.db.transaction(function(j){st(j,T,"SELECT key FROM "+T.storeName,[],function(G,Q){for(var J=[],re=0;re<Q.rows.length;re++)J.push(Q.rows.item(re).key);O(J)},function(G,Q){L(Q)})})}).catch(L)});return d(w,C),w}function h0(C){return new h(function(S,w){C.transaction(function(O){O.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(L,T){for(var j=[],G=0;G<T.rows.length;G++)j.push(T.rows.item(G).name);S({db:C,storeNames:j})},function(L,T){w(T)})},function(O){w(O)})})}function Or(C,S){S=p.apply(this,arguments);var w=this.config();C=typeof C!="function"&&C||{},C.name||(C.name=C.name||w.name,C.storeName=C.storeName||w.storeName);var O=this,L;return C.name?L=new h(function(T){var j;C.name===w.name?j=O._dbInfo.db:j=openDatabase(C.name,"","",0),C.storeName?T({db:j,storeNames:[C.storeName]}):T(h0(j))}).then(function(T){return new h(function(j,G){T.db.transaction(function(Q){function J(Ce){return new h(function(Be,Te){Q.executeSql("DROP TABLE IF EXISTS "+Ce,[],function(){Be()},function(Se,tt){Te(tt)})})}for(var re=[],ce=0,be=T.storeNames.length;ce<be;ce++)re.push(J(T.storeNames[ce]));h.all(re).then(function(){j()}).catch(function(Ce){G(Ce)})},function(Q){G(Q)})})}):L=h.reject("Invalid arguments"),d(L,S),L}var Ye={_driver:"webSQLStorage",_initStorage:s0,_support:Ae(),iterate:Sr,getItem:c0,setItem:l0,removeItem:f0,clear:Ir,length:u0,key:d0,keys:Tr,dropInstance:Or};function ht(){try{return typeof localStorage<"u"&&"setItem"in localStorage&&!!localStorage.setItem}catch{return!1}}function er(C,S){var w=C.name+"/";return C.storeName!==S.storeName&&(w+=C.storeName+"/"),w}function p0(){var C="_localforage_support_test";try{return localStorage.setItem(C,!0),localStorage.removeItem(C),!1}catch{return!0}}function wu(){return!p0()||localStorage.length>0}function Au(C){var S=this,w={};if(C)for(var O in C)w[O]=C[O];return w.keyPrefix=er(C,S._defaultConfig),wu()?(S._dbInfo=w,w.serializer=De,h.resolve()):h.reject()}function ku(C){var S=this,w=S.ready().then(function(){for(var O=S._dbInfo.keyPrefix,L=localStorage.length-1;L>=0;L--){var T=localStorage.key(L);T.indexOf(O)===0&&localStorage.removeItem(T)}});return d(w,C),w}function Du(C,S){var w=this;C=m(C);var O=w.ready().then(function(){var L=w._dbInfo,T=localStorage.getItem(L.keyPrefix+C);return T&&(T=L.serializer.deserialize(T)),T});return d(O,S),O}function Fu(C,S){var w=this,O=w.ready().then(function(){for(var L=w._dbInfo,T=L.keyPrefix,j=T.length,G=localStorage.length,Q=1,J=0;J<G;J++){var re=localStorage.key(J);if(re.indexOf(T)===0){var ce=localStorage.getItem(re);if(ce&&(ce=L.serializer.deserialize(ce)),ce=C(ce,re.substring(j),Q++),ce!==void 0)return ce}}});return d(O,S),O}function Su(C,S){var w=this,O=w.ready().then(function(){var L=w._dbInfo,T;try{T=localStorage.key(C)}catch{T=null}return T&&(T=T.substring(L.keyPrefix.length)),T});return d(O,S),O}function Nu(C){var S=this,w=S.ready().then(function(){for(var O=S._dbInfo,L=localStorage.length,T=[],j=0;j<L;j++){var G=localStorage.key(j);G.indexOf(O.keyPrefix)===0&&T.push(G.substring(O.keyPrefix.length))}return T});return d(w,C),w}function Iu(C){var S=this,w=S.keys().then(function(O){return O.length});return d(w,C),w}function Tu(C,S){var w=this;C=m(C);var O=w.ready().then(function(){var L=w._dbInfo;localStorage.removeItem(L.keyPrefix+C)});return d(O,S),O}function Ou(C,S,w){var O=this;C=m(C);var L=O.ready().then(function(){S===void 0&&(S=null);var T=S;return new h(function(j,G){var Q=O._dbInfo;Q.serializer.serialize(S,function(J,re){if(re)G(re);else try{localStorage.setItem(Q.keyPrefix+C,J),j(T)}catch(ce){(ce.name==="QuotaExceededError"||ce.name==="NS_ERROR_DOM_QUOTA_REACHED")&&G(ce),G(ce)}})})});return d(L,w),L}function Ru(C,S){if(S=p.apply(this,arguments),C=typeof C!="function"&&C||{},!C.name){var w=this.config();C.name=C.name||w.name,C.storeName=C.storeName||w.storeName}var O=this,L;return C.name?L=new h(function(T){C.storeName?T(er(C,O._defaultConfig)):T(C.name+"/")}).then(function(T){for(var j=localStorage.length-1;j>=0;j--){var G=localStorage.key(j);G.indexOf(T)===0&&localStorage.removeItem(G)}}):L=h.reject("Invalid arguments"),d(L,S),L}var Lu={_driver:"localStorageWrapper",_initStorage:Au,_support:ht(),iterate:Fu,getItem:Du,setItem:Ou,removeItem:Tu,clear:ku,length:Iu,key:Su,keys:Nu,dropInstance:Ru},Vu=function(S,w){return S===w||typeof S=="number"&&typeof w=="number"&&isNaN(S)&&isNaN(w)},$u=function(S,w){for(var O=S.length,L=0;L<O;){if(Vu(S[L],w))return!0;L++}return!1},Li=Array.isArray||function(C){return Object.prototype.toString.call(C)==="[object Array]"},tr={},Vi={},Vt={INDEXEDDB:we,WEBSQL:Ye,LOCALSTORAGE:Lu},Pu=[Vt.INDEXEDDB._driver,Vt.WEBSQL._driver,Vt.LOCALSTORAGE._driver],Rr=["dropInstance"],x0=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(Rr),zu={description:"",driver:Pu.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function Mu(C,S){C[S]=function(){var w=arguments;return C.ready().then(function(){return C[S].apply(C,w)})}}function g0(){for(var C=1;C<arguments.length;C++){var S=arguments[C];if(S)for(var w in S)S.hasOwnProperty(w)&&(Li(S[w])?arguments[0][w]=S[w].slice():arguments[0][w]=S[w])}return arguments[0]}var Hu=function(){function C(S){l(this,C);for(var w in Vt)if(Vt.hasOwnProperty(w)){var O=Vt[w],L=O._driver;this[w]=L,tr[L]||this.defineDriver(O)}this._defaultConfig=g0({},zu),this._config=g0({},this._defaultConfig,S),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return C.prototype.config=function(w){if((typeof w>"u"?"undefined":a(w))==="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var O in w){if(O==="storeName"&&(w[O]=w[O].replace(/\W/g,"_")),O==="version"&&typeof w[O]!="number")return new Error("Database version must be a number.");this._config[O]=w[O]}return"driver"in w&&w.driver?this.setDriver(this._config.driver):!0}else return typeof w=="string"?this._config[w]:this._config},C.prototype.defineDriver=function(w,O,L){var T=new h(function(j,G){try{var Q=w._driver,J=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!w._driver){G(J);return}for(var re=x0.concat("_initStorage"),ce=0,be=re.length;ce<be;ce++){var Ce=re[ce],Be=!$u(Rr,Ce);if((Be||w[Ce])&&typeof w[Ce]!="function"){G(J);return}}var Te=function(){for(var rr=function(Wu){return function(){var ju=new Error("Method "+Wu+" is not implemented by the current driver"),$i=h.reject(ju);return d($i,arguments[arguments.length-1]),$i}},b0=0,Uu=Rr.length;b0<Uu;b0++){var v0=Rr[b0];w[v0]||(w[v0]=rr(v0))}};Te();var Se=function(rr){tr[Q]&&console.info("Redefining LocalForage driver: "+Q),tr[Q]=w,Vi[Q]=rr,j()};"_support"in w?w._support&&typeof w._support=="function"?w._support().then(Se,G):Se(!!w._support):Se(!0)}catch(tt){G(tt)}});return x(T,O,L),T},C.prototype.driver=function(){return this._driver||null},C.prototype.getDriver=function(w,O,L){var T=tr[w]?h.resolve(tr[w]):h.reject(new Error("Driver not found."));return x(T,O,L),T},C.prototype.getSerializer=function(w){var O=h.resolve(De);return x(O,w),O},C.prototype.ready=function(w){var O=this,L=O._driverSet.then(function(){return O._ready===null&&(O._ready=O._initDriver()),O._ready});return x(L,w,w),L},C.prototype.setDriver=function(w,O,L){var T=this;Li(w)||(w=[w]);var j=this._getSupportedDrivers(w);function G(){T._config.driver=T.driver()}function Q(ce){return T._extend(ce),G(),T._ready=T._initStorage(T._config),T._ready}function J(ce){return function(){var be=0;function Ce(){for(;be<ce.length;){var Be=ce[be];return be++,T._dbInfo=null,T._ready=null,T.getDriver(Be).then(Q).catch(Ce)}G();var Te=new Error("No available storage method found.");return T._driverSet=h.reject(Te),T._driverSet}return Ce()}}var re=this._driverSet!==null?this._driverSet.catch(function(){return h.resolve()}):h.resolve();return this._driverSet=re.then(function(){var ce=j[0];return T._dbInfo=null,T._ready=null,T.getDriver(ce).then(function(be){T._driver=be._driver,G(),T._wrapLibraryMethodsWithReady(),T._initDriver=J(j)})}).catch(function(){G();var ce=new Error("No available storage method found.");return T._driverSet=h.reject(ce),T._driverSet}),x(this._driverSet,O,L),this._driverSet},C.prototype.supports=function(w){return!!Vi[w]},C.prototype._extend=function(w){g0(this,w)},C.prototype._getSupportedDrivers=function(w){for(var O=[],L=0,T=w.length;L<T;L++){var j=w[L];this.supports(j)&&O.push(j)}return O},C.prototype._wrapLibraryMethodsWithReady=function(){for(var w=0,O=x0.length;w<O;w++)Mu(this,x0[w])},C.prototype.createInstance=function(w){return new C(w)},C}(),qu=new Hu;n.exports=qu},{3:3}]},{},[4])(4)})})(po);var Ma=po.exports;const Ha=Wi(Ma),ct=Object.create(null);ct.open="0",ct.close="1",ct.ping="2",ct.pong="3",ct.message="4",ct.upgrade="5",ct.noop="6";const sr=Object.create(null);Object.keys(ct).forEach(e=>{sr[ct[e]]=e});const Bn={type:"error",data:"parser error"},xo=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",go=typeof ArrayBuffer=="function",bo=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,En=({type:e,data:t},r,n)=>xo&&t instanceof Blob?r?n(t):vo(t,n):go&&(t instanceof ArrayBuffer||bo(t))?r?n(t):vo(new Blob([t]),n):n(ct[e]+(t||"")),vo=(e,t)=>{const r=new FileReader;return r.onload=function(){const n=r.result.split(",")[1];t("b"+(n||""))},r.readAsDataURL(e)};function mo(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let _n;function qa(e,t){if(xo&&e.data instanceof Blob)return e.data.arrayBuffer().then(mo).then(t);if(go&&(e.data instanceof ArrayBuffer||bo(e.data)))return t(mo(e.data));En(e,!1,r=>{_n||(_n=new TextEncoder),t(_n.encode(r))})}const yo="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Mt=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<yo.length;e++)Mt[yo.charCodeAt(e)]=e;const Ua=e=>{let t=e.length*.75,r=e.length,n,o=0,a,l,c,f;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const s=new ArrayBuffer(t),u=new Uint8Array(s);for(n=0;n<r;n+=4)a=Mt[e.charCodeAt(n)],l=Mt[e.charCodeAt(n+1)],c=Mt[e.charCodeAt(n+2)],f=Mt[e.charCodeAt(n+3)],u[o++]=a<<2|l>>4,u[o++]=(l&15)<<4|c>>2,u[o++]=(c&3)<<6|f&63;return s},Wa=typeof ArrayBuffer=="function",wn=(e,t)=>{if(typeof e!="string")return{type:"message",data:Co(e,t)};const r=e.charAt(0);return r==="b"?{type:"message",data:ja(e.substring(1),t)}:sr[r]?e.length>1?{type:sr[r],data:e.substring(1)}:{type:sr[r]}:Bn},ja=(e,t)=>{if(Wa){const r=Ua(e);return Co(r,t)}else return{base64:!0,data:e}},Co=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},Bo=String.fromCharCode(30),Ya=(e,t)=>{const r=e.length,n=new Array(r);let o=0;e.forEach((a,l)=>{En(a,!1,c=>{n[l]=c,++o===r&&t(n.join(Bo))})})},Ka=(e,t)=>{const r=e.split(Bo),n=[];for(let o=0;o<r.length;o++){const a=wn(r[o],t);if(n.push(a),a.type==="error")break}return n};function Ga(){return new TransformStream({transform(e,t){qa(e,r=>{const n=r.length;let o;if(n<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,n);else if(n<65536){o=new Uint8Array(3);const a=new DataView(o.buffer);a.setUint8(0,126),a.setUint16(1,n)}else{o=new Uint8Array(9);const a=new DataView(o.buffer);a.setUint8(0,127),a.setBigUint64(1,BigInt(n))}e.data&&typeof e.data!="string"&&(o[0]|=128),t.enqueue(o),t.enqueue(r)})}})}let An;function cr(e){return e.reduce((t,r)=>t+r.length,0)}function lr(e,t){if(e[0].length===t)return e.shift();const r=new Uint8Array(t);let n=0;for(let o=0;o<t;o++)r[o]=e[0][n++],n===e[0].length&&(e.shift(),n=0);return e.length&&n<e[0].length&&(e[0]=e[0].slice(n)),r}function Xa(e,t){An||(An=new TextDecoder);const r=[];let n=0,o=-1,a=!1;return new TransformStream({transform(l,c){for(r.push(l);;){if(n===0){if(cr(r)<1)break;const f=lr(r,1);a=(f[0]&128)===128,o=f[0]&127,o<126?n=3:o===126?n=1:n=2}else if(n===1){if(cr(r)<2)break;const f=lr(r,2);o=new DataView(f.buffer,f.byteOffset,f.length).getUint16(0),n=3}else if(n===2){if(cr(r)<8)break;const f=lr(r,8),s=new DataView(f.buffer,f.byteOffset,f.length),u=s.getUint32(0);if(u>Math.pow(2,53-32)-1){c.enqueue(Bn);break}o=u*Math.pow(2,32)+s.getUint32(4),n=3}else{if(cr(r)<o)break;const f=lr(r,o);c.enqueue(wn(a?f:An.decode(f),t)),n=0}if(o===0||o>e){c.enqueue(Bn);break}}}})}const Eo=4;function Ne(e){if(e)return Za(e)}function Za(e){for(var t in Ne.prototype)e[t]=Ne.prototype[t];return e}Ne.prototype.on=Ne.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},Ne.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this},Ne.prototype.off=Ne.prototype.removeListener=Ne.prototype.removeAllListeners=Ne.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var r=this._callbacks["$"+e];if(!r)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var n,o=0;o<r.length;o++)if(n=r[o],n===t||n.fn===t){r.splice(o,1);break}return r.length===0&&delete this._callbacks["$"+e],this},Ne.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),r=this._callbacks["$"+e],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(r){r=r.slice(0);for(var n=0,o=r.length;n<o;++n)r[n].apply(this,t)}return this},Ne.prototype.emitReserved=Ne.prototype.emit,Ne.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},Ne.prototype.hasListeners=function(e){return!!this.listeners(e).length};const et=(()=>typeof self<"u"?self:typeof window<"u"?window:Function("return this")())();function _o(e,...t){return t.reduce((r,n)=>(e.hasOwnProperty(n)&&(r[n]=e[n]),r),{})}const Qa=et.setTimeout,Ja=et.clearTimeout;function fr(e,t){t.useNativeTimers?(e.setTimeoutFn=Qa.bind(et),e.clearTimeoutFn=Ja.bind(et)):(e.setTimeoutFn=et.setTimeout.bind(et),e.clearTimeoutFn=et.clearTimeout.bind(et))}const es=1.33;function ts(e){return typeof e=="string"?rs(e):Math.ceil((e.byteLength||e.size)*es)}function rs(e){let t=0,r=0;for(let n=0,o=e.length;n<o;n++)t=e.charCodeAt(n),t<128?r+=1:t<2048?r+=2:t<55296||t>=57344?r+=3:(n++,r+=4);return r}function ns(e){let t="";for(let r in e)e.hasOwnProperty(r)&&(t.length&&(t+="&"),t+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return t}function os(e){let t={},r=e.split("&");for(let n=0,o=r.length;n<o;n++){let a=r[n].split("=");t[decodeURIComponent(a[0])]=decodeURIComponent(a[1])}return t}class is extends Error{constructor(t,r,n){super(t),this.description=r,this.context=n,this.type="TransportError"}}class kn extends Ne{constructor(t){super(),this.writable=!1,fr(this,t),this.opts=t,this.query=t.query,this.socket=t.socket}onError(t,r,n){return super.emitReserved("error",new is(t,r,n)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(t){this.readyState==="open"&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){const r=wn(t,this.socket.binaryType);this.onPacket(r)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,r={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(r)}_hostname(){const t=this.opts.hostname;return t.indexOf(":")===-1?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(t){const r=ns(t);return r.length?"?"+r:""}}const wo="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),Dn=64,as={};let Ao=0,ur=0,ko;function Do(e){let t="";do t=wo[e%Dn]+t,e=Math.floor(e/Dn);while(e>0);return t}function Fo(){const e=Do(+new Date);return e!==ko?(Ao=0,ko=e):e+"."+Do(Ao++)}for(;ur<Dn;ur++)as[wo[ur]]=ur;let So=!1;try{So=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const ss=So;function No(e){const t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||ss))return new XMLHttpRequest}catch{}if(!t)try{return new et[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}function Zu(){}function cs(){}const ls=function(){return new No({xdomain:!1}).responseType!=null}();class fs extends kn{constructor(t){if(super(t),this.polling=!1,typeof location<"u"){const n=location.protocol==="https:";let o=location.port;o||(o=n?"443":"80"),this.xd=typeof location<"u"&&t.hostname!==location.hostname||o!==t.port}const r=t&&t.forceBase64;this.supportsBinary=ls&&!r,this.opts.withCredentials&&(this.cookieJar=void 0)}get name(){return"polling"}doOpen(){this.poll()}pause(t){this.readyState="pausing";const r=()=>{this.readyState="paused",t()};if(this.polling||!this.writable){let n=0;this.polling&&(n++,this.once("pollComplete",function(){--n||r()})),this.writable||(n++,this.once("drain",function(){--n||r()}))}else r()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const r=n=>{if(this.readyState==="opening"&&n.type==="open"&&this.onOpen(),n.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(n)};Ka(t,this.socket.binaryType).forEach(r),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,Ya(t,r=>{this.doWrite(r,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",r=this.query||{};return this.opts.timestampRequests!==!1&&(r[this.opts.timestampParam]=Fo()),!this.supportsBinary&&!r.sid&&(r.b64=1),this.createUri(t,r)}request(t={}){return Object.assign(t,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new lt(this.uri(),t)}doWrite(t,r){const n=this.request({method:"POST",data:t});n.on("success",r),n.on("error",(o,a)=>{this.onError("xhr post error",o,a)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(r,n)=>{this.onError("xhr poll error",r,n)}),this.pollXhr=t}}class lt extends Ne{constructor(t,r){super(),fr(this,r),this.opts=r,this.method=r.method||"GET",this.uri=t,this.data=r.data!==void 0?r.data:null,this.create()}create(){var t;const r=_o(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");r.xdomain=!!this.opts.xd;const n=this.xhr=new No(r);try{n.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(let o in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(o)&&n.setRequestHeader(o,this.opts.extraHeaders[o])}}catch{}if(this.method==="POST")try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{n.setRequestHeader("Accept","*/*")}catch{}(t=this.opts.cookieJar)===null||t===void 0||t.addCookies(n),"withCredentials"in n&&(n.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(n.timeout=this.opts.requestTimeout),n.onreadystatechange=()=>{var o;n.readyState===3&&((o=this.opts.cookieJar)===null||o===void 0||o.parseCookies(n)),n.readyState===4&&(n.status===200||n.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof n.status=="number"?n.status:0)},0))},n.send(this.data)}catch(o){this.setTimeoutFn(()=>{this.onError(o)},0);return}typeof document<"u"&&(this.index=lt.requestsCount++,lt.requests[this.index]=this)}onError(t){this.emitReserved("error",t,this.xhr),this.cleanup(!0)}cleanup(t){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=cs,t)try{this.xhr.abort()}catch{}typeof document<"u"&&delete lt.requests[this.index],this.xhr=null}}onLoad(){const t=this.xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}if(lt.requestsCount=0,lt.requests={},typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Io);else if(typeof addEventListener=="function"){const e="onpagehide"in et?"pagehide":"unload";addEventListener(e,Io,!1)}}function Io(){for(let e in lt.requests)lt.requests.hasOwnProperty(e)&&lt.requests[e].abort()}const Fn=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,r)=>r(t,0))(),dr=et.WebSocket||et.MozWebSocket,To=!0,us="arraybuffer",Oo=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class ds extends kn{constructor(t){super(t),this.supportsBinary=!t.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const t=this.uri(),r=this.opts.protocols,n=Oo?{}:_o(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=To&&!Oo?r?new dr(t,r):new dr(t):new dr(t,r,n)}catch(o){return this.emitReserved("error",o)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let r=0;r<t.length;r++){const n=t[r],o=r===t.length-1;En(n,this.supportsBinary,a=>{const l={};try{To&&this.ws.send(a)}catch{}o&&Fn(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",r=this.query||{};return this.opts.timestampRequests&&(r[this.opts.timestampParam]=Fo()),this.supportsBinary||(r.b64=1),this.createUri(t,r)}check(){return!!dr}}class hs extends kn{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(t=>{const r=Xa(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=t.readable.pipeThrough(r).getReader(),o=Ga();o.readable.pipeTo(t.writable),this.writer=o.writable.getWriter();const a=()=>{n.read().then(({done:c,value:f})=>{c||(this.onPacket(f),a())}).catch(c=>{})};a();const l={type:"open"};this.query.sid&&(l.data=`{"sid":"${this.query.sid}"}`),this.writer.write(l).then(()=>this.onOpen())})}))}write(t){this.writable=!1;for(let r=0;r<t.length;r++){const n=t[r],o=r===t.length-1;this.writer.write(n).then(()=>{o&&Fn(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this.transport)===null||t===void 0||t.close()}}const ps={websocket:ds,webtransport:hs,polling:fs},xs=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,gs=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Sn(e){if(e.length>2e3)throw"URI too long";const t=e,r=e.indexOf("["),n=e.indexOf("]");r!=-1&&n!=-1&&(e=e.substring(0,r)+e.substring(r,n).replace(/:/g,";")+e.substring(n,e.length));let o=xs.exec(e||""),a={},l=14;for(;l--;)a[gs[l]]=o[l]||"";return r!=-1&&n!=-1&&(a.source=t,a.host=a.host.substring(1,a.host.length-1).replace(/;/g,":"),a.authority=a.authority.replace("[","").replace("]","").replace(/;/g,":"),a.ipv6uri=!0),a.pathNames=bs(a,a.path),a.queryKey=vs(a,a.query),a}function bs(e,t){const r=/\/{2,9}/g,n=t.replace(r,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&n.splice(0,1),t.slice(-1)=="/"&&n.splice(n.length-1,1),n}function vs(e,t){const r={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(n,o,a){o&&(r[o]=a)}),r}let Ro=class $t extends Ne{constructor(t,r={}){super(),this.binaryType=us,this.writeBuffer=[],t&&typeof t=="object"&&(r=t,t=null),t?(t=Sn(t),r.hostname=t.host,r.secure=t.protocol==="https"||t.protocol==="wss",r.port=t.port,t.query&&(r.query=t.query)):r.host&&(r.hostname=Sn(r.host).host),fr(this,r),this.secure=r.secure!=null?r.secure:typeof location<"u"&&location.protocol==="https:",r.hostname&&!r.port&&(r.port=this.secure?"443":"80"),this.hostname=r.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=r.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=r.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},r),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=os(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(t){const r=Object.assign({},this.opts.query);r.EIO=Eo,r.transport=t,this.id&&(r.sid=this.id);const n=Object.assign({},this.opts,{query:r,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new ps[t](n)}open(){let t;if(this.opts.rememberUpgrade&&$t.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)t="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else t=this.transports[0];this.readyState="opening";try{t=this.createTransport(t)}catch{this.transports.shift(),this.open();return}t.open(),this.setTransport(t)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",r=>this.onClose("transport close",r))}probe(t){let r=this.createTransport(t),n=!1;$t.priorWebsocketSuccess=!1;const o=()=>{n||(r.send([{type:"ping",data:"probe"}]),r.once("packet",h=>{if(!n)if(h.type==="pong"&&h.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",r),!r)return;$t.priorWebsocketSuccess=r.name==="websocket",this.transport.pause(()=>{n||this.readyState!=="closed"&&(u(),this.setTransport(r),r.send([{type:"upgrade"}]),this.emitReserved("upgrade",r),r=null,this.upgrading=!1,this.flush())})}else{const d=new Error("probe error");d.transport=r.name,this.emitReserved("upgradeError",d)}}))};function a(){n||(n=!0,u(),r.close(),r=null)}const l=h=>{const d=new Error("probe error: "+h);d.transport=r.name,a(),this.emitReserved("upgradeError",d)};function c(){l("transport closed")}function f(){l("socket closed")}function s(h){r&&h.name!==r.name&&a()}const u=()=>{r.removeListener("open",o),r.removeListener("error",l),r.removeListener("close",c),this.off("close",f),this.off("upgrading",s)};r.once("open",o),r.once("error",l),r.once("close",c),this.once("close",f),this.once("upgrading",s),this.upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{n||r.open()},200):r.open()}onOpen(){if(this.readyState="open",$t.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let t=0;const r=this.upgrades.length;for(;t<r;t++)this.probe(this.upgrades[t])}}onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),this.resetPingTimeout(),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const r=new Error("server error");r.code=t.data,this.onError(r);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this.upgrades=this.filterUpgrades(t.upgrades),this.pingInterval=t.pingInterval,this.pingTimeout=t.pingTimeout,this.maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn(()=>{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this.getWritablePackets();this.transport.send(t),this.prevBufferLen=t.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let r=1;for(let n=0;n<this.writeBuffer.length;n++){const o=this.writeBuffer[n].data;if(o&&(r+=ts(o)),n>0&&r>this.maxPayload)return this.writeBuffer.slice(0,n);r+=2}return this.writeBuffer}write(t,r,n){return this.sendPacket("message",t,r,n),this}send(t,r,n){return this.sendPacket("message",t,r,n),this}sendPacket(t,r,n,o){if(typeof r=="function"&&(o=r,r=void 0),typeof n=="function"&&(o=n,n=null),this.readyState==="closing"||this.readyState==="closed")return;n=n||{},n.compress=n.compress!==!1;const a={type:t,data:r,options:n};this.emitReserved("packetCreate",a),this.writeBuffer.push(a),o&&this.once("flush",o),this.flush()}close(){const t=()=>{this.onClose("forced close"),this.transport.close()},r=()=>{this.off("upgrade",r),this.off("upgradeError",r),t()},n=()=>{this.once("upgrade",r),this.once("upgradeError",r)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?n():t()}):this.upgrading?n():t()),this}onError(t){$t.priorWebsocketSuccess=!1,this.emitReserved("error",t),this.onClose("transport error",t)}onClose(t,r){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",t,r),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(t){const r=[];let n=0;const o=t.length;for(;n<o;n++)~this.transports.indexOf(t[n])&&r.push(t[n]);return r}};Ro.protocol=Eo;function ms(e,t="",r){let n=e;r=r||typeof location<"u"&&location,e==null&&(e=r.protocol+"//"+r.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=r.protocol+e:e=r.host+e),/^(https?|wss?):\/\//.test(e)||(typeof r<"u"?e=r.protocol+"//"+e:e="https://"+e),n=Sn(e)),n.port||(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";const a=n.host.indexOf(":")!==-1?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+a+":"+n.port+t,n.href=n.protocol+"://"+a+(r&&r.port===n.port?"":":"+n.port),n}const ys=typeof ArrayBuffer=="function",Cs=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,Lo=Object.prototype.toString,Bs=typeof Blob=="function"||typeof Blob<"u"&&Lo.call(Blob)==="[object BlobConstructor]",Es=typeof File=="function"||typeof File<"u"&&Lo.call(File)==="[object FileConstructor]";function Nn(e){return ys&&(e instanceof ArrayBuffer||Cs(e))||Bs&&e instanceof Blob||Es&&e instanceof File}function hr(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let r=0,n=e.length;r<n;r++)if(hr(e[r]))return!0;return!1}if(Nn(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return hr(e.toJSON(),!0);for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&hr(e[r]))return!0;return!1}function _s(e){const t=[],r=e.data,n=e;return n.data=In(r,t),n.attachments=t.length,{packet:n,buffers:t}}function In(e,t){if(!e)return e;if(Nn(e)){const r={_placeholder:!0,num:t.length};return t.push(e),r}else if(Array.isArray(e)){const r=new Array(e.length);for(let n=0;n<e.length;n++)r[n]=In(e[n],t);return r}else if(typeof e=="object"&&!(e instanceof Date)){const r={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=In(e[n],t));return r}return e}function ws(e,t){return e.data=Tn(e.data,t),delete e.attachments,e}function Tn(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let r=0;r<e.length;r++)e[r]=Tn(e[r],t);else if(typeof e=="object")for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&(e[r]=Tn(e[r],t));return e}const As=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],ks=5;var me;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(me||(me={}));class Ds{constructor(t){this.replacer=t}encode(t){return(t.type===me.EVENT||t.type===me.ACK)&&hr(t)?this.encodeAsBinary({type:t.type===me.EVENT?me.BINARY_EVENT:me.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let r=""+t.type;return(t.type===me.BINARY_EVENT||t.type===me.BINARY_ACK)&&(r+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(r+=t.nsp+","),t.id!=null&&(r+=t.id),t.data!=null&&(r+=JSON.stringify(t.data,this.replacer)),r}encodeAsBinary(t){const r=_s(t),n=this.encodeAsString(r.packet),o=r.buffers;return o.unshift(n),o}}function Vo(e){return Object.prototype.toString.call(e)==="[object Object]"}class On extends Ne{constructor(t){super(),this.reviver=t}add(t){let r;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");r=this.decodeString(t);const n=r.type===me.BINARY_EVENT;n||r.type===me.BINARY_ACK?(r.type=n?me.EVENT:me.ACK,this.reconstructor=new Fs(r),r.attachments===0&&super.emitReserved("decoded",r)):super.emitReserved("decoded",r)}else if(Nn(t)||t.base64)if(this.reconstructor)r=this.reconstructor.takeBinaryData(t),r&&(this.reconstructor=null,super.emitReserved("decoded",r));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let r=0;const n={type:Number(t.charAt(0))};if(me[n.type]===void 0)throw new Error("unknown packet type "+n.type);if(n.type===me.BINARY_EVENT||n.type===me.BINARY_ACK){const a=r+1;for(;t.charAt(++r)!=="-"&&r!=t.length;);const l=t.substring(a,r);if(l!=Number(l)||t.charAt(r)!=="-")throw new Error("Illegal attachments");n.attachments=Number(l)}if(t.charAt(r+1)==="/"){const a=r+1;for(;++r&&!(t.charAt(r)===","||r===t.length););n.nsp=t.substring(a,r)}else n.nsp="/";const o=t.charAt(r+1);if(o!==""&&Number(o)==o){const a=r+1;for(;++r;){const l=t.charAt(r);if(l==null||Number(l)!=l){--r;break}if(r===t.length)break}n.id=Number(t.substring(a,r+1))}if(t.charAt(++r)){const a=this.tryParse(t.substr(r));if(On.isPayloadValid(n.type,a))n.data=a;else throw new Error("invalid payload")}return n}tryParse(t){try{return JSON.parse(t,this.reviver)}catch{return!1}}static isPayloadValid(t,r){switch(t){case me.CONNECT:return Vo(r);case me.DISCONNECT:return r===void 0;case me.CONNECT_ERROR:return typeof r=="string"||Vo(r);case me.EVENT:case me.BINARY_EVENT:return Array.isArray(r)&&(typeof r[0]=="number"||typeof r[0]=="string"&&As.indexOf(r[0])===-1);case me.ACK:case me.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class Fs{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){const r=ws(this.reconPack,this.buffers);return this.finishedReconstruction(),r}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const Ss=Object.freeze(Object.defineProperty({__proto__:null,Decoder:On,Encoder:Ds,get PacketType(){return me},protocol:ks},Symbol.toStringTag,{value:"Module"}));function rt(e,t,r){return e.on(t,r),function(){e.off(t,r)}}const Ns=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class $o extends Ne{constructor(t,r,n){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=r,n&&n.auth&&(this.auth=n.auth),this._opts=Object.assign({},n),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const t=this.io;this.subs=[rt(t,"open",this.onopen.bind(this)),rt(t,"packet",this.onpacket.bind(this)),rt(t,"error",this.onerror.bind(this)),rt(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...r){if(Ns.hasOwnProperty(t))throw new Error('"'+t.toString()+'" is a reserved event name');if(r.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(r),this;const n={type:me.EVENT,data:r};if(n.options={},n.options.compress=this.flags.compress!==!1,typeof r[r.length-1]=="function"){const l=this.ids++,c=r.pop();this._registerAckCallback(l,c),n.id=l}const o=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!o||!this.connected)||(this.connected?(this.notifyOutgoingListeners(n),this.packet(n)):this.sendBuffer.push(n)),this.flags={},this}_registerAckCallback(t,r){var n;const o=(n=this.flags.timeout)!==null&&n!==void 0?n:this._opts.ackTimeout;if(o===void 0){this.acks[t]=r;return}const a=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let l=0;l<this.sendBuffer.length;l++)this.sendBuffer[l].id===t&&this.sendBuffer.splice(l,1);r.call(this,new Error("operation has timed out"))},o);this.acks[t]=(...l)=>{this.io.clearTimeoutFn(a),r.apply(this,[null,...l])}}emitWithAck(t,...r){const n=this.flags.timeout!==void 0||this._opts.ackTimeout!==void 0;return new Promise((o,a)=>{r.push((l,c)=>n?l?a(l):o(c):o(l)),this.emit(t,...r)})}_addToQueue(t){let r;typeof t[t.length-1]=="function"&&(r=t.pop());const n={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((o,...a)=>n!==this._queue[0]?void 0:(o!==null?n.tryCount>this._opts.retries&&(this._queue.shift(),r&&r(o)):(this._queue.shift(),r&&r(null,...a)),n.pending=!1,this._drainQueue())),this._queue.push(n),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const r=this._queue[0];r.pending&&!t||(r.pending=!0,r.tryCount++,this.flags=r.flags,this.emit.apply(this,r.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:me.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,r){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,r)}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case me.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case me.EVENT:case me.BINARY_EVENT:this.onevent(t);break;case me.ACK:case me.BINARY_ACK:this.onack(t);break;case me.DISCONNECT:this.ondisconnect();break;case me.CONNECT_ERROR:this.destroy();const n=new Error(t.data.message);n.data=t.data.data,this.emitReserved("connect_error",n);break}}onevent(t){const r=t.data||[];t.id!=null&&r.push(this.ack(t.id)),this.connected?this.emitEvent(r):this.receiveBuffer.push(Object.freeze(r))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const r=this._anyListeners.slice();for(const n of r)n.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const r=this;let n=!1;return function(...o){n||(n=!0,r.packet({type:me.ACK,id:t,data:o}))}}onack(t){const r=this.acks[t.id];typeof r=="function"&&(r.apply(this,t.data),delete this.acks[t.id])}onconnect(t,r){this.id=t,this.recovered=r&&this._pid===r,this._pid=r,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:me.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const r=this._anyListeners;for(let n=0;n<r.length;n++)if(t===r[n])return r.splice(n,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){const r=this._anyOutgoingListeners;for(let n=0;n<r.length;n++)if(t===r[n])return r.splice(n,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const r=this._anyOutgoingListeners.slice();for(const n of r)n.apply(this,t.data)}}}function It(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}It.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),r=Math.floor(t*this.jitter*e);e=Math.floor(t*10)&1?e+r:e-r}return Math.min(e,this.max)|0},It.prototype.reset=function(){this.attempts=0},It.prototype.setMin=function(e){this.ms=e},It.prototype.setMax=function(e){this.max=e},It.prototype.setJitter=function(e){this.jitter=e};class Rn extends Ne{constructor(t,r){var n;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(r=t,t=void 0),r=r||{},r.path=r.path||"/socket.io",this.opts=r,fr(this,r),this.reconnection(r.reconnection!==!1),this.reconnectionAttempts(r.reconnectionAttempts||1/0),this.reconnectionDelay(r.reconnectionDelay||1e3),this.reconnectionDelayMax(r.reconnectionDelayMax||5e3),this.randomizationFactor((n=r.randomizationFactor)!==null&&n!==void 0?n:.5),this.backoff=new It({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(r.timeout==null?2e4:r.timeout),this._readyState="closed",this.uri=t;const o=r.parser||Ss;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=r.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var r;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(r=this.backoff)===null||r===void 0||r.setMin(t),this)}randomizationFactor(t){var r;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(r=this.backoff)===null||r===void 0||r.setJitter(t),this)}reconnectionDelayMax(t){var r;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(r=this.backoff)===null||r===void 0||r.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new Ro(this.uri,this.opts);const r=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;const o=rt(r,"open",function(){n.onopen(),t&&t()}),a=c=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",c),t?t(c):this.maybeReconnectOnOpen()},l=rt(r,"error",a);if(this._timeout!==!1){const c=this._timeout,f=this.setTimeoutFn(()=>{o(),a(new Error("timeout")),r.close()},c);this.opts.autoUnref&&f.unref(),this.subs.push(()=>{this.clearTimeoutFn(f)})}return this.subs.push(o),this.subs.push(l),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(rt(t,"ping",this.onping.bind(this)),rt(t,"data",this.ondata.bind(this)),rt(t,"error",this.onerror.bind(this)),rt(t,"close",this.onclose.bind(this)),rt(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(r){this.onclose("parse error",r)}}ondecoded(t){Fn(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,r){let n=this.nsps[t];return n?this._autoConnect&&!n.active&&n.connect():(n=new $o(this,t,r),this.nsps[t]=n),n}_destroy(t){const r=Object.keys(this.nsps);for(const n of r)if(this.nsps[n].active)return;this._close()}_packet(t){const r=this.encoder.encode(t);for(let n=0;n<r.length;n++)this.engine.write(r[n],t.options)}cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(t,r){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,r),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const r=this.backoff.duration();this._reconnecting=!0;const n=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(o=>{o?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",o)):t.onreconnect()}))},r);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const Ht={};function Ln(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const r=ms(e,t.path||"/socket.io"),n=r.source,o=r.id,a=r.path,l=Ht[o]&&a in Ht[o].nsps,c=t.forceNew||t["force new connection"]||t.multiplex===!1||l;let f;return c?f=new Rn(n,t):(Ht[o]||(Ht[o]=new Rn(n,t)),f=Ht[o]),r.query&&!t.query&&(t.query=r.queryKey),f.socket(r.path,t)}Object.assign(Ln,{Manager:Rn,Socket:$o,io:Ln,connect:Ln});/*!
20
+ * decimal.js v10.4.3
21
+ * An arbitrary-precision Decimal type for JavaScript.
22
+ * https://github.com/MikeMcl/decimal.js
23
+ * Copyright (c) 2022 Michael Mclaughlin <M8ch88l@gmail.com>
24
+ * MIT Licence
25
+ */var Tt=9e15,Ct=1e9,Vn="0123456789abcdef",pr="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",xr="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",$n={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-Tt,maxE:Tt,crypto:!1},Po,pt,xe=!0,gr="[DecimalError] ",Bt=gr+"Invalid argument: ",zo=gr+"Precision limit exceeded",Mo=gr+"crypto unavailable",Ho="[object Decimal]",We=Math.floor,Re=Math.pow,Is=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,Ts=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,Os=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,qo=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,nt=1e7,ue=7,Rs=9007199254740991,Ls=pr.length-1,Pn=xr.length-1,Y={toStringTag:Ho};Y.absoluteValue=Y.abs=function(){var e=new this.constructor(this);return e.s<0&&(e.s=1),le(e)},Y.ceil=function(){return le(new this.constructor(this),this.e+1,2)},Y.clampedTo=Y.clamp=function(e,t){var r,n=this,o=n.constructor;if(e=new o(e),t=new o(t),!e.s||!t.s)return new o(NaN);if(e.gt(t))throw Error(Bt+t);return r=n.cmp(e),r<0?e:n.cmp(t)>0?t:new o(n)},Y.comparedTo=Y.cmp=function(e){var t,r,n,o,a=this,l=a.d,c=(e=new a.constructor(e)).d,f=a.s,s=e.s;if(!l||!c)return!f||!s?NaN:f!==s?f:l===c?0:!l^f<0?1:-1;if(!l[0]||!c[0])return l[0]?f:c[0]?-s:0;if(f!==s)return f;if(a.e!==e.e)return a.e>e.e^f<0?1:-1;for(n=l.length,o=c.length,t=0,r=n<o?n:o;t<r;++t)if(l[t]!==c[t])return l[t]>c[t]^f<0?1:-1;return n===o?0:n>o^f<0?1:-1},Y.cosine=Y.cos=function(){var e,t,r=this,n=r.constructor;return r.d?r.d[0]?(e=n.precision,t=n.rounding,n.precision=e+Math.max(r.e,r.sd())+ue,n.rounding=1,r=Vs(n,Go(n,r)),n.precision=e,n.rounding=t,le(pt==2||pt==3?r.neg():r,e,t,!0)):new n(1):new n(NaN)},Y.cubeRoot=Y.cbrt=function(){var e,t,r,n,o,a,l,c,f,s,u=this,h=u.constructor;if(!u.isFinite()||u.isZero())return new h(u);for(xe=!1,a=u.s*Re(u.s*u,1/3),!a||Math.abs(a)==1/0?(r=qe(u.d),e=u.e,(a=(e-r.length+1)%3)&&(r+=a==1||a==-2?"0":"00"),a=Re(r,1/3),e=We((e+1)/3)-(e%3==(e<0?-1:2)),a==1/0?r="5e"+e:(r=a.toExponential(),r=r.slice(0,r.indexOf("e")+1)+e),n=new h(r),n.s=u.s):n=new h(a.toString()),l=(e=h.precision)+3;;)if(c=n,f=c.times(c).times(c),s=f.plus(u),n=Ee(s.plus(u).times(c),s.plus(f),l+2,1),qe(c.d).slice(0,l)===(r=qe(n.d)).slice(0,l))if(r=r.slice(l-3,l+1),r=="9999"||!o&&r=="4999"){if(!o&&(le(c,e+1,0),c.times(c).times(c).eq(u))){n=c;break}l+=4,o=1}else{(!+r||!+r.slice(1)&&r.charAt(0)=="5")&&(le(n,e+1,1),t=!n.times(n).times(n).eq(u));break}return xe=!0,le(n,e,h.rounding,t)},Y.decimalPlaces=Y.dp=function(){var e,t=this.d,r=NaN;if(t){if(e=t.length-1,r=(e-We(this.e/ue))*ue,e=t[e],e)for(;e%10==0;e/=10)r--;r<0&&(r=0)}return r},Y.dividedBy=Y.div=function(e){return Ee(this,new this.constructor(e))},Y.dividedToIntegerBy=Y.divToInt=function(e){var t=this,r=t.constructor;return le(Ee(t,new r(e),0,1,1),r.precision,r.rounding)},Y.equals=Y.eq=function(e){return this.cmp(e)===0},Y.floor=function(){return le(new this.constructor(this),this.e+1,3)},Y.greaterThan=Y.gt=function(e){return this.cmp(e)>0},Y.greaterThanOrEqualTo=Y.gte=function(e){var t=this.cmp(e);return t==1||t===0},Y.hyperbolicCosine=Y.cosh=function(){var e,t,r,n,o,a=this,l=a.constructor,c=new l(1);if(!a.isFinite())return new l(a.s?1/0:NaN);if(a.isZero())return c;r=l.precision,n=l.rounding,l.precision=r+Math.max(a.e,a.sd())+4,l.rounding=1,o=a.d.length,o<32?(e=Math.ceil(o/3),t=(1/yr(4,e)).toString()):(e=16,t="2.3283064365386962890625e-10"),a=Ot(l,1,a.times(t),new l(1),!0);for(var f,s=e,u=new l(8);s--;)f=a.times(a),a=c.minus(f.times(u.minus(f.times(u))));return le(a,l.precision=r,l.rounding=n,!0)},Y.hyperbolicSine=Y.sinh=function(){var e,t,r,n,o=this,a=o.constructor;if(!o.isFinite()||o.isZero())return new a(o);if(t=a.precision,r=a.rounding,a.precision=t+Math.max(o.e,o.sd())+4,a.rounding=1,n=o.d.length,n<3)o=Ot(a,2,o,o,!0);else{e=1.4*Math.sqrt(n),e=e>16?16:e|0,o=o.times(1/yr(5,e)),o=Ot(a,2,o,o,!0);for(var l,c=new a(5),f=new a(16),s=new a(20);e--;)l=o.times(o),o=o.times(c.plus(l.times(f.times(l).plus(s))))}return a.precision=t,a.rounding=r,le(o,t,r,!0)},Y.hyperbolicTangent=Y.tanh=function(){var e,t,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+7,n.rounding=1,Ee(r.sinh(),r.cosh(),n.precision=e,n.rounding=t)):new n(r.s)},Y.inverseCosine=Y.acos=function(){var e,t=this,r=t.constructor,n=t.abs().cmp(1),o=r.precision,a=r.rounding;return n!==-1?n===0?t.isNeg()?ot(r,o,a):new r(0):new r(NaN):t.isZero()?ot(r,o+4,a).times(.5):(r.precision=o+6,r.rounding=1,t=t.asin(),e=ot(r,o+4,a).times(.5),r.precision=o,r.rounding=a,e.minus(t))},Y.inverseHyperbolicCosine=Y.acosh=function(){var e,t,r=this,n=r.constructor;return r.lte(1)?new n(r.eq(1)?0:NaN):r.isFinite()?(e=n.precision,t=n.rounding,n.precision=e+Math.max(Math.abs(r.e),r.sd())+4,n.rounding=1,xe=!1,r=r.times(r).minus(1).sqrt().plus(r),xe=!0,n.precision=e,n.rounding=t,r.ln()):new n(r)},Y.inverseHyperbolicSine=Y.asinh=function(){var e,t,r=this,n=r.constructor;return!r.isFinite()||r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+2*Math.max(Math.abs(r.e),r.sd())+6,n.rounding=1,xe=!1,r=r.times(r).plus(1).sqrt().plus(r),xe=!0,n.precision=e,n.rounding=t,r.ln())},Y.inverseHyperbolicTangent=Y.atanh=function(){var e,t,r,n,o=this,a=o.constructor;return o.isFinite()?o.e>=0?new a(o.abs().eq(1)?o.s/0:o.isZero()?o:NaN):(e=a.precision,t=a.rounding,n=o.sd(),Math.max(n,e)<2*-o.e-1?le(new a(o),e,t,!0):(a.precision=r=n-o.e,o=Ee(o.plus(1),new a(1).minus(o),r+e,1),a.precision=e+4,a.rounding=1,o=o.ln(),a.precision=e,a.rounding=t,o.times(.5))):new a(NaN)},Y.inverseSine=Y.asin=function(){var e,t,r,n,o=this,a=o.constructor;return o.isZero()?new a(o):(t=o.abs().cmp(1),r=a.precision,n=a.rounding,t!==-1?t===0?(e=ot(a,r+4,n).times(.5),e.s=o.s,e):new a(NaN):(a.precision=r+6,a.rounding=1,o=o.div(new a(1).minus(o.times(o)).sqrt().plus(1)).atan(),a.precision=r,a.rounding=n,o.times(2)))},Y.inverseTangent=Y.atan=function(){var e,t,r,n,o,a,l,c,f,s=this,u=s.constructor,h=u.precision,d=u.rounding;if(s.isFinite()){if(s.isZero())return new u(s);if(s.abs().eq(1)&&h+4<=Pn)return l=ot(u,h+4,d).times(.25),l.s=s.s,l}else{if(!s.s)return new u(NaN);if(h+4<=Pn)return l=ot(u,h+4,d).times(.5),l.s=s.s,l}for(u.precision=c=h+10,u.rounding=1,r=Math.min(28,c/ue+2|0),e=r;e;--e)s=s.div(s.times(s).plus(1).sqrt().plus(1));for(xe=!1,t=Math.ceil(c/ue),n=1,f=s.times(s),l=new u(s),o=s;e!==-1;)if(o=o.times(f),a=l.minus(o.div(n+=2)),o=o.times(f),l=a.plus(o.div(n+=2)),l.d[t]!==void 0)for(e=t;l.d[e]===a.d[e]&&e--;);return r&&(l=l.times(2<<r-1)),xe=!0,le(l,u.precision=h,u.rounding=d,!0)},Y.isFinite=function(){return!!this.d},Y.isInteger=Y.isInt=function(){return!!this.d&&We(this.e/ue)>this.d.length-2},Y.isNaN=function(){return!this.s},Y.isNegative=Y.isNeg=function(){return this.s<0},Y.isPositive=Y.isPos=function(){return this.s>0},Y.isZero=function(){return!!this.d&&this.d[0]===0},Y.lessThan=Y.lt=function(e){return this.cmp(e)<0},Y.lessThanOrEqualTo=Y.lte=function(e){return this.cmp(e)<1},Y.logarithm=Y.log=function(e){var t,r,n,o,a,l,c,f,s=this,u=s.constructor,h=u.precision,d=u.rounding,x=5;if(e==null)e=new u(10),t=!0;else{if(e=new u(e),r=e.d,e.s<0||!r||!r[0]||e.eq(1))return new u(NaN);t=e.eq(10)}if(r=s.d,s.s<0||!r||!r[0]||s.eq(1))return new u(r&&!r[0]?-1/0:s.s!=1?NaN:r?0:1/0);if(t)if(r.length>1)a=!0;else{for(o=r[0];o%10===0;)o/=10;a=o!==1}if(xe=!1,c=h+x,l=_t(s,c),n=t?mr(u,c+10):_t(e,c),f=Ee(l,n,c,1),qt(f.d,o=h,d))do if(c+=10,l=_t(s,c),n=t?mr(u,c+10):_t(e,c),f=Ee(l,n,c,1),!a){+qe(f.d).slice(o+1,o+15)+1==1e14&&(f=le(f,h+1,0));break}while(qt(f.d,o+=10,d));return xe=!0,le(f,h,d)},Y.minus=Y.sub=function(e){var t,r,n,o,a,l,c,f,s,u,h,d,x=this,m=x.constructor;if(e=new m(e),!x.d||!e.d)return!x.s||!e.s?e=new m(NaN):x.d?e.s=-e.s:e=new m(e.d||x.s!==e.s?x:NaN),e;if(x.s!=e.s)return e.s=-e.s,x.plus(e);if(s=x.d,d=e.d,c=m.precision,f=m.rounding,!s[0]||!d[0]){if(d[0])e.s=-e.s;else if(s[0])e=new m(x);else return new m(f===3?-0:0);return xe?le(e,c,f):e}if(r=We(e.e/ue),u=We(x.e/ue),s=s.slice(),a=u-r,a){for(h=a<0,h?(t=s,a=-a,l=d.length):(t=d,r=u,l=s.length),n=Math.max(Math.ceil(c/ue),l)+2,a>n&&(a=n,t.length=1),t.reverse(),n=a;n--;)t.push(0);t.reverse()}else{for(n=s.length,l=d.length,h=n<l,h&&(l=n),n=0;n<l;n++)if(s[n]!=d[n]){h=s[n]<d[n];break}a=0}for(h&&(t=s,s=d,d=t,e.s=-e.s),l=s.length,n=d.length-l;n>0;--n)s[l++]=0;for(n=d.length;n>a;){if(s[--n]<d[n]){for(o=n;o&&s[--o]===0;)s[o]=nt-1;--s[o],s[n]+=nt}s[n]-=d[n]}for(;s[--l]===0;)s.pop();for(;s[0]===0;s.shift())--r;return s[0]?(e.d=s,e.e=vr(s,r),xe?le(e,c,f):e):new m(f===3?-0:0)},Y.modulo=Y.mod=function(e){var t,r=this,n=r.constructor;return e=new n(e),!r.d||!e.s||e.d&&!e.d[0]?new n(NaN):!e.d||r.d&&!r.d[0]?le(new n(r),n.precision,n.rounding):(xe=!1,n.modulo==9?(t=Ee(r,e.abs(),0,3,1),t.s*=e.s):t=Ee(r,e,0,n.modulo,1),t=t.times(e),xe=!0,r.minus(t))},Y.naturalExponential=Y.exp=function(){return zn(this)},Y.naturalLogarithm=Y.ln=function(){return _t(this)},Y.negated=Y.neg=function(){var e=new this.constructor(this);return e.s=-e.s,le(e)},Y.plus=Y.add=function(e){var t,r,n,o,a,l,c,f,s,u,h=this,d=h.constructor;if(e=new d(e),!h.d||!e.d)return!h.s||!e.s?e=new d(NaN):h.d||(e=new d(e.d||h.s===e.s?h:NaN)),e;if(h.s!=e.s)return e.s=-e.s,h.minus(e);if(s=h.d,u=e.d,c=d.precision,f=d.rounding,!s[0]||!u[0])return u[0]||(e=new d(h)),xe?le(e,c,f):e;if(a=We(h.e/ue),n=We(e.e/ue),s=s.slice(),o=a-n,o){for(o<0?(r=s,o=-o,l=u.length):(r=u,n=a,l=s.length),a=Math.ceil(c/ue),l=a>l?a+1:l+1,o>l&&(o=l,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for(l=s.length,o=u.length,l-o<0&&(o=l,r=u,u=s,s=r),t=0;o;)t=(s[--o]=s[o]+u[o]+t)/nt|0,s[o]%=nt;for(t&&(s.unshift(t),++n),l=s.length;s[--l]==0;)s.pop();return e.d=s,e.e=vr(s,n),xe?le(e,c,f):e},Y.precision=Y.sd=function(e){var t,r=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Bt+e);return r.d?(t=Uo(r.d),e&&r.e+1>t&&(t=r.e+1)):t=NaN,t},Y.round=function(){var e=this,t=e.constructor;return le(new t(e),e.e+1,t.rounding)},Y.sine=Y.sin=function(){var e,t,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+Math.max(r.e,r.sd())+ue,n.rounding=1,r=Ps(n,Go(n,r)),n.precision=e,n.rounding=t,le(pt>2?r.neg():r,e,t,!0)):new n(NaN)},Y.squareRoot=Y.sqrt=function(){var e,t,r,n,o,a,l=this,c=l.d,f=l.e,s=l.s,u=l.constructor;if(s!==1||!c||!c[0])return new u(!s||s<0&&(!c||c[0])?NaN:c?l:1/0);for(xe=!1,s=Math.sqrt(+l),s==0||s==1/0?(t=qe(c),(t.length+f)%2==0&&(t+="0"),s=Math.sqrt(t),f=We((f+1)/2)-(f<0||f%2),s==1/0?t="5e"+f:(t=s.toExponential(),t=t.slice(0,t.indexOf("e")+1)+f),n=new u(t)):n=new u(s.toString()),r=(f=u.precision)+3;;)if(a=n,n=a.plus(Ee(l,a,r+2,1)).times(.5),qe(a.d).slice(0,r)===(t=qe(n.d)).slice(0,r))if(t=t.slice(r-3,r+1),t=="9999"||!o&&t=="4999"){if(!o&&(le(a,f+1,0),a.times(a).eq(l))){n=a;break}r+=4,o=1}else{(!+t||!+t.slice(1)&&t.charAt(0)=="5")&&(le(n,f+1,1),e=!n.times(n).eq(l));break}return xe=!0,le(n,f,u.rounding,e)},Y.tangent=Y.tan=function(){var e,t,r=this,n=r.constructor;return r.isFinite()?r.isZero()?new n(r):(e=n.precision,t=n.rounding,n.precision=e+10,n.rounding=1,r=r.sin(),r.s=1,r=Ee(r,new n(1).minus(r.times(r)).sqrt(),e+10,0),n.precision=e,n.rounding=t,le(pt==2||pt==4?r.neg():r,e,t,!0)):new n(NaN)},Y.times=Y.mul=function(e){var t,r,n,o,a,l,c,f,s,u=this,h=u.constructor,d=u.d,x=(e=new h(e)).d;if(e.s*=u.s,!d||!d[0]||!x||!x[0])return new h(!e.s||d&&!d[0]&&!x||x&&!x[0]&&!d?NaN:!d||!x?e.s/0:e.s*0);for(r=We(u.e/ue)+We(e.e/ue),f=d.length,s=x.length,f<s&&(a=d,d=x,x=a,l=f,f=s,s=l),a=[],l=f+s,n=l;n--;)a.push(0);for(n=s;--n>=0;){for(t=0,o=f+n;o>n;)c=a[o]+x[n]*d[o-n-1]+t,a[o--]=c%nt|0,t=c/nt|0;a[o]=(a[o]+t)%nt|0}for(;!a[--l];)a.pop();return t?++r:a.shift(),e.d=a,e.e=vr(a,r),xe?le(e,h.precision,h.rounding):e},Y.toBinary=function(e,t){return Hn(this,2,e,t)},Y.toDecimalPlaces=Y.toDP=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(Ke(e,0,Ct),t===void 0?t=n.rounding:Ke(t,0,8),le(r,e+r.e+1,t))},Y.toExponential=function(e,t){var r,n=this,o=n.constructor;return e===void 0?r=ft(n,!0):(Ke(e,0,Ct),t===void 0?t=o.rounding:Ke(t,0,8),n=le(new o(n),e+1,t),r=ft(n,!0,e+1)),n.isNeg()&&!n.isZero()?"-"+r:r},Y.toFixed=function(e,t){var r,n,o=this,a=o.constructor;return e===void 0?r=ft(o):(Ke(e,0,Ct),t===void 0?t=a.rounding:Ke(t,0,8),n=le(new a(o),e+o.e+1,t),r=ft(n,!1,e+n.e+1)),o.isNeg()&&!o.isZero()?"-"+r:r},Y.toFraction=function(e){var t,r,n,o,a,l,c,f,s,u,h,d,x=this,m=x.d,p=x.constructor;if(!m)return new p(x);if(s=r=new p(1),n=f=new p(0),t=new p(n),a=t.e=Uo(m)-x.e-1,l=a%ue,t.d[0]=Re(10,l<0?ue+l:l),e==null)e=a>0?t:s;else{if(c=new p(e),!c.isInt()||c.lt(s))throw Error(Bt+c);e=c.gt(t)?a>0?t:s:c}for(xe=!1,c=new p(qe(m)),u=p.precision,p.precision=a=m.length*ue*2;h=Ee(c,t,0,1,1),o=r.plus(h.times(n)),o.cmp(e)!=1;)r=n,n=o,o=s,s=f.plus(h.times(o)),f=o,o=t,t=c.minus(h.times(o)),c=o;return o=Ee(e.minus(r),n,0,1,1),f=f.plus(o.times(s)),r=r.plus(o.times(n)),f.s=s.s=x.s,d=Ee(s,n,a,1).minus(x).abs().cmp(Ee(f,r,a,1).minus(x).abs())<1?[s,n]:[f,r],p.precision=u,xe=!0,d},Y.toHexadecimal=Y.toHex=function(e,t){return Hn(this,16,e,t)},Y.toNearest=function(e,t){var r=this,n=r.constructor;if(r=new n(r),e==null){if(!r.d)return r;e=new n(1),t=n.rounding}else{if(e=new n(e),t===void 0?t=n.rounding:Ke(t,0,8),!r.d)return e.s?r:e;if(!e.d)return e.s&&(e.s=r.s),e}return e.d[0]?(xe=!1,r=Ee(r,e,0,t,1).times(e),xe=!0,le(r)):(e.s=r.s,r=e),r},Y.toNumber=function(){return+this},Y.toOctal=function(e,t){return Hn(this,8,e,t)},Y.toPower=Y.pow=function(e){var t,r,n,o,a,l,c=this,f=c.constructor,s=+(e=new f(e));if(!c.d||!e.d||!c.d[0]||!e.d[0])return new f(Re(+c,s));if(c=new f(c),c.eq(1))return c;if(n=f.precision,a=f.rounding,e.eq(1))return le(c,n,a);if(t=We(e.e/ue),t>=e.d.length-1&&(r=s<0?-s:s)<=Rs)return o=Wo(f,c,r,n),e.s<0?new f(1).div(o):le(o,n,a);if(l=c.s,l<0){if(t<e.d.length-1)return new f(NaN);if(e.d[t]&1||(l=1),c.e==0&&c.d[0]==1&&c.d.length==1)return c.s=l,c}return r=Re(+c,s),t=r==0||!isFinite(r)?We(s*(Math.log("0."+qe(c.d))/Math.LN10+c.e+1)):new f(r+"").e,t>f.maxE+1||t<f.minE-1?new f(t>0?l/0:0):(xe=!1,f.rounding=c.s=1,r=Math.min(12,(t+"").length),o=zn(e.times(_t(c,n+r)),n),o.d&&(o=le(o,n+5,1),qt(o.d,n,a)&&(t=n+10,o=le(zn(e.times(_t(c,t+r)),t),t+5,1),+qe(o.d).slice(n+1,n+15)+1==1e14&&(o=le(o,n+1,0)))),o.s=l,xe=!0,f.rounding=a,le(o,n,a))},Y.toPrecision=function(e,t){var r,n=this,o=n.constructor;return e===void 0?r=ft(n,n.e<=o.toExpNeg||n.e>=o.toExpPos):(Ke(e,1,Ct),t===void 0?t=o.rounding:Ke(t,0,8),n=le(new o(n),e,t),r=ft(n,e<=n.e||n.e<=o.toExpNeg,e)),n.isNeg()&&!n.isZero()?"-"+r:r},Y.toSignificantDigits=Y.toSD=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(Ke(e,1,Ct),t===void 0?t=n.rounding:Ke(t,0,8)),le(new n(r),e,t)},Y.toString=function(){var e=this,t=e.constructor,r=ft(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()&&!e.isZero()?"-"+r:r},Y.truncated=Y.trunc=function(){return le(new this.constructor(this),this.e+1,1)},Y.valueOf=Y.toJSON=function(){var e=this,t=e.constructor,r=ft(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()?"-"+r:r};function qe(e){var t,r,n,o=e.length-1,a="",l=e[0];if(o>0){for(a+=l,t=1;t<o;t++)n=e[t]+"",r=ue-n.length,r&&(a+=Et(r)),a+=n;l=e[t],n=l+"",r=ue-n.length,r&&(a+=Et(r))}else if(l===0)return"0";for(;l%10===0;)l/=10;return a+l}function Ke(e,t,r){if(e!==~~e||e<t||e>r)throw Error(Bt+e)}function qt(e,t,r,n){var o,a,l,c;for(a=e[0];a>=10;a/=10)--t;return--t<0?(t+=ue,o=0):(o=Math.ceil((t+1)/ue),t%=ue),a=Re(10,ue-t),c=e[o]%a|0,n==null?t<3?(t==0?c=c/100|0:t==1&&(c=c/10|0),l=r<4&&c==99999||r>3&&c==49999||c==5e4||c==0):l=(r<4&&c+1==a||r>3&&c+1==a/2)&&(e[o+1]/a/100|0)==Re(10,t-2)-1||(c==a/2||c==0)&&(e[o+1]/a/100|0)==0:t<4?(t==0?c=c/1e3|0:t==1?c=c/100|0:t==2&&(c=c/10|0),l=(n||r<4)&&c==9999||!n&&r>3&&c==4999):l=((n||r<4)&&c+1==a||!n&&r>3&&c+1==a/2)&&(e[o+1]/a/1e3|0)==Re(10,t-3)-1,l}function br(e,t,r){for(var n,o=[0],a,l=0,c=e.length;l<c;){for(a=o.length;a--;)o[a]*=t;for(o[0]+=Vn.indexOf(e.charAt(l++)),n=0;n<o.length;n++)o[n]>r-1&&(o[n+1]===void 0&&(o[n+1]=0),o[n+1]+=o[n]/r|0,o[n]%=r)}return o.reverse()}function Vs(e,t){var r,n,o;if(t.isZero())return t;n=t.d.length,n<32?(r=Math.ceil(n/3),o=(1/yr(4,r)).toString()):(r=16,o="2.3283064365386962890625e-10"),e.precision+=r,t=Ot(e,1,t.times(o),new e(1));for(var a=r;a--;){var l=t.times(t);t=l.times(l).minus(l).times(8).plus(1)}return e.precision-=r,t}var Ee=function(){function e(n,o,a){var l,c=0,f=n.length;for(n=n.slice();f--;)l=n[f]*o+c,n[f]=l%a|0,c=l/a|0;return c&&n.unshift(c),n}function t(n,o,a,l){var c,f;if(a!=l)f=a>l?1:-1;else for(c=f=0;c<a;c++)if(n[c]!=o[c]){f=n[c]>o[c]?1:-1;break}return f}function r(n,o,a,l){for(var c=0;a--;)n[a]-=c,c=n[a]<o[a]?1:0,n[a]=c*l+n[a]-o[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,o,a,l,c,f){var s,u,h,d,x,m,p,v,F,_,g,b,E,B,y,k,R,A,D,I,P=n.constructor,W=n.s==o.s?1:-1,H=n.d,q=o.d;if(!H||!H[0]||!q||!q[0])return new P(!n.s||!o.s||(H?q&&H[0]==q[0]:!q)?NaN:H&&H[0]==0||!q?W*0:W/0);for(f?(x=1,u=n.e-o.e):(f=nt,x=ue,u=We(n.e/x)-We(o.e/x)),D=q.length,R=H.length,F=new P(W),_=F.d=[],h=0;q[h]==(H[h]||0);h++);if(q[h]>(H[h]||0)&&u--,a==null?(B=a=P.precision,l=P.rounding):c?B=a+(n.e-o.e)+1:B=a,B<0)_.push(1),m=!0;else{if(B=B/x+2|0,h=0,D==1){for(d=0,q=q[0],B++;(h<R||d)&&B--;h++)y=d*f+(H[h]||0),_[h]=y/q|0,d=y%q|0;m=d||h<R}else{for(d=f/(q[0]+1)|0,d>1&&(q=e(q,d,f),H=e(H,d,f),D=q.length,R=H.length),k=D,g=H.slice(0,D),b=g.length;b<D;)g[b++]=0;I=q.slice(),I.unshift(0),A=q[0],q[1]>=f/2&&++A;do d=0,s=t(q,g,D,b),s<0?(E=g[0],D!=b&&(E=E*f+(g[1]||0)),d=E/A|0,d>1?(d>=f&&(d=f-1),p=e(q,d,f),v=p.length,b=g.length,s=t(p,g,v,b),s==1&&(d--,r(p,D<v?I:q,v,f))):(d==0&&(s=d=1),p=q.slice()),v=p.length,v<b&&p.unshift(0),r(g,p,b,f),s==-1&&(b=g.length,s=t(q,g,D,b),s<1&&(d++,r(g,D<b?I:q,b,f))),b=g.length):s===0&&(d++,g=[0]),_[h++]=d,s&&g[0]?g[b++]=H[k]||0:(g=[H[k]],b=1);while((k++<R||g[0]!==void 0)&&B--);m=g[0]!==void 0}_[0]||_.shift()}if(x==1)F.e=u,Po=m;else{for(h=1,d=_[0];d>=10;d/=10)h++;F.e=h+u*x-1,le(F,c?a+F.e+1:a,l,m)}return F}}();function le(e,t,r,n){var o,a,l,c,f,s,u,h,d,x=e.constructor;e:if(t!=null){if(h=e.d,!h)return e;for(o=1,c=h[0];c>=10;c/=10)o++;if(a=t-o,a<0)a+=ue,l=t,u=h[d=0],f=u/Re(10,o-l-1)%10|0;else if(d=Math.ceil((a+1)/ue),c=h.length,d>=c)if(n){for(;c++<=d;)h.push(0);u=f=0,o=1,a%=ue,l=a-ue+1}else break e;else{for(u=c=h[d],o=1;c>=10;c/=10)o++;a%=ue,l=a-ue+o,f=l<0?0:u/Re(10,o-l-1)%10|0}if(n=n||t<0||h[d+1]!==void 0||(l<0?u:u%Re(10,o-l-1)),s=r<4?(f||n)&&(r==0||r==(e.s<0?3:2)):f>5||f==5&&(r==4||n||r==6&&(a>0?l>0?u/Re(10,o-l):0:h[d-1])%10&1||r==(e.s<0?8:7)),t<1||!h[0])return h.length=0,s?(t-=e.e+1,h[0]=Re(10,(ue-t%ue)%ue),e.e=-t||0):h[0]=e.e=0,e;if(a==0?(h.length=d,c=1,d--):(h.length=d+1,c=Re(10,ue-a),h[d]=l>0?(u/Re(10,o-l)%Re(10,l)|0)*c:0),s)for(;;)if(d==0){for(a=1,l=h[0];l>=10;l/=10)a++;for(l=h[0]+=c,c=1;l>=10;l/=10)c++;a!=c&&(e.e++,h[0]==nt&&(h[0]=1));break}else{if(h[d]+=c,h[d]!=nt)break;h[d--]=0,c=1}for(a=h.length;h[--a]===0;)h.pop()}return xe&&(e.e>x.maxE?(e.d=null,e.e=NaN):e.e<x.minE&&(e.e=0,e.d=[0])),e}function ft(e,t,r){if(!e.isFinite())return Ko(e);var n,o=e.e,a=qe(e.d),l=a.length;return t?(r&&(n=r-l)>0?a=a.charAt(0)+"."+a.slice(1)+Et(n):l>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(e.e<0?"e":"e+")+e.e):o<0?(a="0."+Et(-o-1)+a,r&&(n=r-l)>0&&(a+=Et(n))):o>=l?(a+=Et(o+1-l),r&&(n=r-o-1)>0&&(a=a+"."+Et(n))):((n=o+1)<l&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-l)>0&&(o+1===l&&(a+="."),a+=Et(n))),a}function vr(e,t){var r=e[0];for(t*=ue;r>=10;r/=10)t++;return t}function mr(e,t,r){if(t>Ls)throw xe=!0,r&&(e.precision=r),Error(zo);return le(new e(pr),t,1,!0)}function ot(e,t,r){if(t>Pn)throw Error(zo);return le(new e(xr),t,r,!0)}function Uo(e){var t=e.length-1,r=t*ue+1;if(t=e[t],t){for(;t%10==0;t/=10)r--;for(t=e[0];t>=10;t/=10)r++}return r}function Et(e){for(var t="";e--;)t+="0";return t}function Wo(e,t,r,n){var o,a=new e(1),l=Math.ceil(n/ue+4);for(xe=!1;;){if(r%2&&(a=a.times(t),Xo(a.d,l)&&(o=!0)),r=We(r/2),r===0){r=a.d.length-1,o&&a.d[r]===0&&++a.d[r];break}t=t.times(t),Xo(t.d,l)}return xe=!0,a}function jo(e){return e.d[e.d.length-1]&1}function Yo(e,t,r){for(var n,o=new e(t[0]),a=0;++a<t.length;)if(n=new e(t[a]),n.s)o[r](n)&&(o=n);else{o=n;break}return o}function zn(e,t){var r,n,o,a,l,c,f,s=0,u=0,h=0,d=e.constructor,x=d.rounding,m=d.precision;if(!e.d||!e.d[0]||e.e>17)return new d(e.d?e.d[0]?e.s<0?0:1/0:1:e.s?e.s<0?0:e:0/0);for(t==null?(xe=!1,f=m):f=t,c=new d(.03125);e.e>-2;)e=e.times(c),h+=5;for(n=Math.log(Re(2,h))/Math.LN10*2+5|0,f+=n,r=a=l=new d(1),d.precision=f;;){if(a=le(a.times(e),f,1),r=r.times(++u),c=l.plus(Ee(a,r,f,1)),qe(c.d).slice(0,f)===qe(l.d).slice(0,f)){for(o=h;o--;)l=le(l.times(l),f,1);if(t==null)if(s<3&&qt(l.d,f-n,x,s))d.precision=f+=10,r=a=c=new d(1),u=0,s++;else return le(l,d.precision=m,x,xe=!0);else return d.precision=m,l}l=c}}function _t(e,t){var r,n,o,a,l,c,f,s,u,h,d,x=1,m=10,p=e,v=p.d,F=p.constructor,_=F.rounding,g=F.precision;if(p.s<0||!v||!v[0]||!p.e&&v[0]==1&&v.length==1)return new F(v&&!v[0]?-1/0:p.s!=1?NaN:v?0:p);if(t==null?(xe=!1,u=g):u=t,F.precision=u+=m,r=qe(v),n=r.charAt(0),Math.abs(a=p.e)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)p=p.times(e),r=qe(p.d),n=r.charAt(0),x++;a=p.e,n>1?(p=new F("0."+r),a++):p=new F(n+"."+r.slice(1))}else return s=mr(F,u+2,g).times(a+""),p=_t(new F(n+"."+r.slice(1)),u-m).plus(s),F.precision=g,t==null?le(p,g,_,xe=!0):p;for(h=p,f=l=p=Ee(p.minus(1),p.plus(1),u,1),d=le(p.times(p),u,1),o=3;;){if(l=le(l.times(d),u,1),s=f.plus(Ee(l,new F(o),u,1)),qe(s.d).slice(0,u)===qe(f.d).slice(0,u))if(f=f.times(2),a!==0&&(f=f.plus(mr(F,u+2,g).times(a+""))),f=Ee(f,new F(x),u,1),t==null)if(qt(f.d,u-m,_,c))F.precision=u+=m,s=l=p=Ee(h.minus(1),h.plus(1),u,1),d=le(p.times(p),u,1),o=c=1;else return le(f,F.precision=g,_,xe=!0);else return F.precision=g,f;f=s,o+=2}}function Ko(e){return String(e.s*e.s/0)}function Mn(e,t){var r,n,o;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;n++);for(o=t.length;t.charCodeAt(o-1)===48;--o);if(t=t.slice(n,o),t){if(o-=n,e.e=r=r-n-1,e.d=[],n=(r+1)%ue,r<0&&(n+=ue),n<o){for(n&&e.d.push(+t.slice(0,n)),o-=ue;n<o;)e.d.push(+t.slice(n,n+=ue));t=t.slice(n),n=ue-t.length}else n-=o;for(;n--;)t+="0";e.d.push(+t),xe&&(e.e>e.constructor.maxE?(e.d=null,e.e=NaN):e.e<e.constructor.minE&&(e.e=0,e.d=[0]))}else e.e=0,e.d=[0];return e}function $s(e,t){var r,n,o,a,l,c,f,s,u;if(t.indexOf("_")>-1){if(t=t.replace(/(\d)_(?=\d)/g,"$1"),qo.test(t))return Mn(e,t)}else if(t==="Infinity"||t==="NaN")return+t||(e.s=NaN),e.e=NaN,e.d=null,e;if(Ts.test(t))r=16,t=t.toLowerCase();else if(Is.test(t))r=2;else if(Os.test(t))r=8;else throw Error(Bt+t);for(a=t.search(/p/i),a>0?(f=+t.slice(a+1),t=t.substring(2,a)):t=t.slice(2),a=t.indexOf("."),l=a>=0,n=e.constructor,l&&(t=t.replace(".",""),c=t.length,a=c-a,o=Wo(n,new n(r),a,a*2)),s=br(t,r,nt),u=s.length-1,a=u;s[a]===0;--a)s.pop();return a<0?new n(e.s*0):(e.e=vr(s,u),e.d=s,xe=!1,l&&(e=Ee(e,o,c*4)),f&&(e=e.times(Math.abs(f)<54?Re(2,f):Ut.pow(2,f))),xe=!0,e)}function Ps(e,t){var r,n=t.d.length;if(n<3)return t.isZero()?t:Ot(e,2,t,t);r=1.4*Math.sqrt(n),r=r>16?16:r|0,t=t.times(1/yr(5,r)),t=Ot(e,2,t,t);for(var o,a=new e(5),l=new e(16),c=new e(20);r--;)o=t.times(t),t=t.times(a.plus(o.times(l.times(o).minus(c))));return t}function Ot(e,t,r,n,o){var a,l,c,f,s=e.precision,u=Math.ceil(s/ue);for(xe=!1,f=r.times(r),c=new e(n);;){if(l=Ee(c.times(f),new e(t++*t++),s,1),c=o?n.plus(l):n.minus(l),n=Ee(l.times(f),new e(t++*t++),s,1),l=c.plus(n),l.d[u]!==void 0){for(a=u;l.d[a]===c.d[a]&&a--;);if(a==-1)break}a=c,c=n,n=l,l=a}return xe=!0,l.d.length=u+1,l}function yr(e,t){for(var r=e;--t;)r*=e;return r}function Go(e,t){var r,n=t.s<0,o=ot(e,e.precision,1),a=o.times(.5);if(t=t.abs(),t.lte(a))return pt=n?4:1,t;if(r=t.divToInt(o),r.isZero())pt=n?3:2;else{if(t=t.minus(r.times(o)),t.lte(a))return pt=jo(r)?n?2:3:n?4:1,t;pt=jo(r)?n?1:4:n?3:2}return t.minus(o).abs()}function Hn(e,t,r,n){var o,a,l,c,f,s,u,h,d,x=e.constructor,m=r!==void 0;if(m?(Ke(r,1,Ct),n===void 0?n=x.rounding:Ke(n,0,8)):(r=x.precision,n=x.rounding),!e.isFinite())u=Ko(e);else{for(u=ft(e),l=u.indexOf("."),m?(o=2,t==16?r=r*4-3:t==8&&(r=r*3-2)):o=t,l>=0&&(u=u.replace(".",""),d=new x(1),d.e=u.length-l,d.d=br(ft(d),10,o),d.e=d.d.length),h=br(u,10,o),a=f=h.length;h[--f]==0;)h.pop();if(!h[0])u=m?"0p+0":"0";else{if(l<0?a--:(e=new x(e),e.d=h,e.e=a,e=Ee(e,d,r,n,0,o),h=e.d,a=e.e,s=Po),l=h[r],c=o/2,s=s||h[r+1]!==void 0,s=n<4?(l!==void 0||s)&&(n===0||n===(e.s<0?3:2)):l>c||l===c&&(n===4||s||n===6&&h[r-1]&1||n===(e.s<0?8:7)),h.length=r,s)for(;++h[--r]>o-1;)h[r]=0,r||(++a,h.unshift(1));for(f=h.length;!h[f-1];--f);for(l=0,u="";l<f;l++)u+=Vn.charAt(h[l]);if(m){if(f>1)if(t==16||t==8){for(l=t==16?4:3,--f;f%l;f++)u+="0";for(h=br(u,o,t),f=h.length;!h[f-1];--f);for(l=1,u="1.";l<f;l++)u+=Vn.charAt(h[l])}else u=u.charAt(0)+"."+u.slice(1);u=u+(a<0?"p":"p+")+a}else if(a<0){for(;++a;)u="0"+u;u="0."+u}else if(++a>f)for(a-=f;a--;)u+="0";else a<f&&(u=u.slice(0,a)+"."+u.slice(a))}u=(t==16?"0x":t==2?"0b":t==8?"0o":"")+u}return e.s<0?"-"+u:u}function Xo(e,t){if(e.length>t)return e.length=t,!0}function zs(e){return new this(e).abs()}function Ms(e){return new this(e).acos()}function Hs(e){return new this(e).acosh()}function qs(e,t){return new this(e).plus(t)}function Us(e){return new this(e).asin()}function Ws(e){return new this(e).asinh()}function js(e){return new this(e).atan()}function Ys(e){return new this(e).atanh()}function Ks(e,t){e=new this(e),t=new this(t);var r,n=this.precision,o=this.rounding,a=n+4;return!e.s||!t.s?r=new this(NaN):!e.d&&!t.d?(r=ot(this,a,1).times(t.s>0?.25:.75),r.s=e.s):!t.d||e.isZero()?(r=t.s<0?ot(this,n,o):new this(0),r.s=e.s):!e.d||t.isZero()?(r=ot(this,a,1).times(.5),r.s=e.s):t.s<0?(this.precision=a,this.rounding=1,r=this.atan(Ee(e,t,a,1)),t=ot(this,a,1),this.precision=n,this.rounding=o,r=e.s<0?r.minus(t):r.plus(t)):r=this.atan(Ee(e,t,a,1)),r}function Gs(e){return new this(e).cbrt()}function Xs(e){return le(e=new this(e),e.e+1,2)}function Zs(e,t,r){return new this(e).clamp(t,r)}function Qs(e){if(!e||typeof e!="object")throw Error(gr+"Object expected");var t,r,n,o=e.defaults===!0,a=["precision",1,Ct,"rounding",0,8,"toExpNeg",-Tt,0,"toExpPos",0,Tt,"maxE",0,Tt,"minE",-Tt,0,"modulo",0,9];for(t=0;t<a.length;t+=3)if(r=a[t],o&&(this[r]=$n[r]),(n=e[r])!==void 0)if(We(n)===n&&n>=a[t+1]&&n<=a[t+2])this[r]=n;else throw Error(Bt+r+": "+n);if(r="crypto",o&&(this[r]=$n[r]),(n=e[r])!==void 0)if(n===!0||n===!1||n===0||n===1)if(n)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))this[r]=!0;else throw Error(Mo);else this[r]=!1;else throw Error(Bt+r+": "+n);return this}function Js(e){return new this(e).cos()}function ec(e){return new this(e).cosh()}function Zo(e){var t,r,n;function o(a){var l,c,f,s=this;if(!(s instanceof o))return new o(a);if(s.constructor=o,Qo(a)){s.s=a.s,xe?!a.d||a.e>o.maxE?(s.e=NaN,s.d=null):a.e<o.minE?(s.e=0,s.d=[0]):(s.e=a.e,s.d=a.d.slice()):(s.e=a.e,s.d=a.d?a.d.slice():a.d);return}if(f=typeof a,f==="number"){if(a===0){s.s=1/a<0?-1:1,s.e=0,s.d=[0];return}if(a<0?(a=-a,s.s=-1):s.s=1,a===~~a&&a<1e7){for(l=0,c=a;c>=10;c/=10)l++;xe?l>o.maxE?(s.e=NaN,s.d=null):l<o.minE?(s.e=0,s.d=[0]):(s.e=l,s.d=[a]):(s.e=l,s.d=[a]);return}else if(a*0!==0){a||(s.s=NaN),s.e=NaN,s.d=null;return}return Mn(s,a.toString())}else if(f!=="string")throw Error(Bt+a);return(c=a.charCodeAt(0))===45?(a=a.slice(1),s.s=-1):(c===43&&(a=a.slice(1)),s.s=1),qo.test(a)?Mn(s,a):$s(s,a)}if(o.prototype=Y,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.EUCLID=9,o.config=o.set=Qs,o.clone=Zo,o.isDecimal=Qo,o.abs=zs,o.acos=Ms,o.acosh=Hs,o.add=qs,o.asin=Us,o.asinh=Ws,o.atan=js,o.atanh=Ys,o.atan2=Ks,o.cbrt=Gs,o.ceil=Xs,o.clamp=Zs,o.cos=Js,o.cosh=ec,o.div=tc,o.exp=rc,o.floor=nc,o.hypot=oc,o.ln=ic,o.log=ac,o.log10=cc,o.log2=sc,o.max=lc,o.min=fc,o.mod=uc,o.mul=dc,o.pow=hc,o.random=pc,o.round=xc,o.sign=gc,o.sin=bc,o.sinh=vc,o.sqrt=mc,o.sub=yc,o.sum=Cc,o.tan=Bc,o.tanh=Ec,o.trunc=_c,e===void 0&&(e={}),e&&e.defaults!==!0)for(n=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"],t=0;t<n.length;)e.hasOwnProperty(r=n[t++])||(e[r]=this[r]);return o.config(e),o}function tc(e,t){return new this(e).div(t)}function rc(e){return new this(e).exp()}function nc(e){return le(e=new this(e),e.e+1,3)}function oc(){var e,t,r=new this(0);for(xe=!1,e=0;e<arguments.length;)if(t=new this(arguments[e++]),t.d)r.d&&(r=r.plus(t.times(t)));else{if(t.s)return xe=!0,new this(1/0);r=t}return xe=!0,r.sqrt()}function Qo(e){return e instanceof Ut||e&&e.toStringTag===Ho||!1}function ic(e){return new this(e).ln()}function ac(e,t){return new this(e).log(t)}function sc(e){return new this(e).log(2)}function cc(e){return new this(e).log(10)}function lc(){return Yo(this,arguments,"lt")}function fc(){return Yo(this,arguments,"gt")}function uc(e,t){return new this(e).mod(t)}function dc(e,t){return new this(e).mul(t)}function hc(e,t){return new this(e).pow(t)}function pc(e){var t,r,n,o,a=0,l=new this(1),c=[];if(e===void 0?e=this.precision:Ke(e,1,Ct),n=Math.ceil(e/ue),this.crypto)if(crypto.getRandomValues)for(t=crypto.getRandomValues(new Uint32Array(n));a<n;)o=t[a],o>=429e7?t[a]=crypto.getRandomValues(new Uint32Array(1))[0]:c[a++]=o%1e7;else if(crypto.randomBytes){for(t=crypto.randomBytes(n*=4);a<n;)o=t[a]+(t[a+1]<<8)+(t[a+2]<<16)+((t[a+3]&127)<<24),o>=214e7?crypto.randomBytes(4).copy(t,a):(c.push(o%1e7),a+=4);a=n/4}else throw Error(Mo);else for(;a<n;)c[a++]=Math.random()*1e7|0;for(n=c[--a],e%=ue,n&&e&&(o=Re(10,ue-e),c[a]=(n/o|0)*o);c[a]===0;a--)c.pop();if(a<0)r=0,c=[0];else{for(r=-1;c[0]===0;r-=ue)c.shift();for(n=1,o=c[0];o>=10;o/=10)n++;n<ue&&(r-=ue-n)}return l.e=r,l.d=c,l}function xc(e){return le(e=new this(e),e.e+1,this.rounding)}function gc(e){return e=new this(e),e.d?e.d[0]?e.s:0*e.s:e.s||NaN}function bc(e){return new this(e).sin()}function vc(e){return new this(e).sinh()}function mc(e){return new this(e).sqrt()}function yc(e,t){return new this(e).sub(t)}function Cc(){var e=0,t=arguments,r=new this(t[e]);for(xe=!1;r.s&&++e<t.length;)r=r.plus(t[e]);return xe=!0,le(r,this.precision,this.rounding)}function Bc(e){return new this(e).tan()}function Ec(e){return new this(e).tanh()}function _c(e){return le(e=new this(e),e.e+1,1)}Y[Symbol.for("nodejs.util.inspect.custom")]=Y.toString,Y[Symbol.toStringTag]="Decimal";var Ut=Y.constructor=Zo($n);pr=new Ut(pr),xr=new Ut(xr);var wc={exports:{}};/*!
26
+ * Waves v0.7.6
27
+ * http://fian.my.id/Waves
28
+ *
29
+ * Copyright 2014-2018 Alfiana E. Sibuea and other contributors
30
+ * Released under the MIT license
31
+ * https://github.com/fians/Waves/blob/master/LICENSE
32
+ */(function(e,t){(function(r,n){e.exports=n.call(r)})(he,function(){var r=r||{},n=document.querySelectorAll.bind(document),o=Object.prototype.toString,a="ontouchstart"in window;function l(g){return g!==null&&g===g.window}function c(g){return l(g)?g:g.nodeType===9&&g.defaultView}function f(g){var b=typeof g;return b==="function"||b==="object"&&!!g}function s(g){return f(g)&&g.nodeType>0}function u(g){var b=o.call(g);return b==="[object String]"?n(g):f(g)&&/^\[object (Array|HTMLCollection|NodeList|Object)\]$/.test(b)&&g.hasOwnProperty("length")?g:s(g)?[g]:[]}function h(g){var b,E,B={top:0,left:0},y=g&&g.ownerDocument;return b=y.documentElement,typeof g.getBoundingClientRect<"u"&&(B=g.getBoundingClientRect()),E=c(y),{top:B.top+E.pageYOffset-b.clientTop,left:B.left+E.pageXOffset-b.clientLeft}}function d(g){var b="";for(var E in g)g.hasOwnProperty(E)&&(b+=E+":"+g[E]+";");return b}var x={duration:750,delay:200,show:function(g,b,E){if(g.button===2)return!1;b=b||this;var B=document.createElement("div");B.className="waves-ripple waves-rippling",b.appendChild(B);var y=h(b),k=0,R=0;"touches"in g&&g.touches.length?(k=g.touches[0].pageY-y.top,R=g.touches[0].pageX-y.left):(k=g.pageY-y.top,R=g.pageX-y.left),R=R>=0?R:0,k=k>=0?k:0;var A="scale("+b.clientWidth/100*3+")",D="translate(0,0)";E&&(D="translate("+E.x+"px, "+E.y+"px)"),B.setAttribute("data-hold",Date.now()),B.setAttribute("data-x",R),B.setAttribute("data-y",k),B.setAttribute("data-scale",A),B.setAttribute("data-translate",D);var I={top:k+"px",left:R+"px"};B.classList.add("waves-notransition"),B.setAttribute("style",d(I)),B.classList.remove("waves-notransition"),I["-webkit-transform"]=A+" "+D,I["-moz-transform"]=A+" "+D,I["-ms-transform"]=A+" "+D,I["-o-transform"]=A+" "+D,I.transform=A+" "+D,I.opacity="1";var P=g.type==="mousemove"?2500:x.duration;I["-webkit-transition-duration"]=P+"ms",I["-moz-transition-duration"]=P+"ms",I["-o-transition-duration"]=P+"ms",I["transition-duration"]=P+"ms",B.setAttribute("style",d(I))},hide:function(g,b){b=b||this;for(var E=b.getElementsByClassName("waves-rippling"),B=0,y=E.length;B<y;B++)p(g,b,E[B]);a&&(b.removeEventListener("touchend",x.hide),b.removeEventListener("touchcancel",x.hide)),b.removeEventListener("mouseup",x.hide),b.removeEventListener("mouseleave",x.hide)}},m={input:function(g){var b=g.parentNode;if(!(b.tagName.toLowerCase()==="i"&&b.classList.contains("waves-effect"))){var E=document.createElement("i");E.className=g.className+" waves-input-wrapper",g.className="waves-button-input",b.replaceChild(E,g),E.appendChild(g);var B=window.getComputedStyle(g,null),y=B.color,k=B.backgroundColor;E.setAttribute("style","color:"+y+";background:"+k),g.setAttribute("style","background-color:rgba(0,0,0,0);")}},img:function(g){var b=g.parentNode;if(!(b.tagName.toLowerCase()==="i"&&b.classList.contains("waves-effect"))){var E=document.createElement("i");b.replaceChild(E,g),E.appendChild(g)}}};function p(g,b,E){if(E){E.classList.remove("waves-rippling");var B=E.getAttribute("data-x"),y=E.getAttribute("data-y"),k=E.getAttribute("data-scale"),R=E.getAttribute("data-translate"),A=Date.now()-Number(E.getAttribute("data-hold")),D=350-A;D<0&&(D=0),g.type==="mousemove"&&(D=150);var I=g.type==="mousemove"?2500:x.duration;setTimeout(function(){var P={top:y+"px",left:B+"px",opacity:"0","-webkit-transition-duration":I+"ms","-moz-transition-duration":I+"ms","-o-transition-duration":I+"ms","transition-duration":I+"ms","-webkit-transform":k+" "+R,"-moz-transform":k+" "+R,"-ms-transform":k+" "+R,"-o-transform":k+" "+R,transform:k+" "+R};E.setAttribute("style",d(P)),setTimeout(function(){try{b.removeChild(E)}catch{return!1}},I)},D)}}var v={touches:0,allowEvent:function(g){var b=!0;return/^(mousedown|mousemove)$/.test(g.type)&&v.touches&&(b=!1),b},registerEvent:function(g){var b=g.type;b==="touchstart"?v.touches+=1:/^(touchend|touchcancel)$/.test(b)&&setTimeout(function(){v.touches&&(v.touches-=1)},500)}};function F(g){if(v.allowEvent(g)===!1)return null;for(var b=null,E=g.target||g.srcElement;E.parentElement;){if(!(E instanceof SVGElement)&&E.classList.contains("waves-effect")){b=E;break}E=E.parentElement}return b}function _(g){var b=F(g);if(b!==null){if(b.disabled||b.getAttribute("disabled")||b.classList.contains("disabled"))return;if(v.registerEvent(g),g.type==="touchstart"&&x.delay){var E=!1,B=setTimeout(function(){B=null,x.show(g,b)},x.delay),y=function(A){B&&(clearTimeout(B),B=null,x.show(g,b)),E||(E=!0,x.hide(A,b)),R()},k=function(A){B&&(clearTimeout(B),B=null),y(A),R()};b.addEventListener("touchmove",k,!1),b.addEventListener("touchend",y,!1),b.addEventListener("touchcancel",y,!1);var R=function(){b.removeEventListener("touchmove",k),b.removeEventListener("touchend",y),b.removeEventListener("touchcancel",y)}}else x.show(g,b),a&&(b.addEventListener("touchend",x.hide,!1),b.addEventListener("touchcancel",x.hide,!1)),b.addEventListener("mouseup",x.hide,!1),b.addEventListener("mouseleave",x.hide,!1)}}return r.init=function(g){var b=document.body;g=g||{},"duration"in g&&(x.duration=g.duration),"delay"in g&&(x.delay=g.delay),a&&(b.addEventListener("touchstart",_,!1),b.addEventListener("touchcancel",v.registerEvent,!1),b.addEventListener("touchend",v.registerEvent,!1)),b.addEventListener("mousedown",_,!1)},r.attach=function(g,b){g=u(g),o.call(b)==="[object Array]"&&(b=b.join(" ")),b=b?" "+b:"";for(var E,B,y=0,k=g.length;y<k;y++)E=g[y],B=E.tagName.toLowerCase(),["input","img"].indexOf(B)!==-1&&(m[B](E),E=E.parentElement),E.className.indexOf("waves-effect")===-1&&(E.className+=" waves-effect"+b)},r.ripple=function(g,b){g=u(g);var E=g.length;if(b=b||{},b.wait=b.wait||0,b.position=b.position||null,E){for(var B,y,k,R={},A=0,D={type:"mousedown",button:1},I=function(W,H){return function(){x.hide(W,H)}};A<E;A++)if(B=g[A],y=b.position||{x:B.clientWidth/2,y:B.clientHeight/2},k=h(B),R.x=k.left+y.x,R.y=k.top+y.y,D.pageX=R.x,D.pageY=R.y,x.show(D,B),b.wait>=0&&b.wait!==null){var P={type:"mouseup",button:1};setTimeout(I(P,B),b.wait)}}},r.calm=function(g){g=u(g);for(var b={type:"mouseup",button:1},E=0,B=g.length;E<B;E++)x.hide(b,g[E])},r.displayEffect=function(g){console.error("Waves.displayEffect() has been deprecated and will be removed in future version. Please use Waves.init() to initialize Waves effect"),r.init(g)},r})})(wc);const Qu="",pe={lunarInfo:[19416,19168,42352,21717,53856,55632,91476,22176,39632,21970,19168,42422,42192,53840,119381,46400,54944,44450,38320,84343,18800,42160,46261,27216,27968,109396,11104,38256,21234,18800,25958,54432,59984,28309,23248,11104,100067,37600,116951,51536,54432,120998,46416,22176,107956,9680,37584,53938,43344,46423,27808,46416,86869,19872,42416,83315,21168,43432,59728,27296,44710,43856,19296,43748,42352,21088,62051,55632,23383,22176,38608,19925,19152,42192,54484,53840,54616,46400,46752,103846,38320,18864,43380,42160,45690,27216,27968,44870,43872,38256,19189,18800,25776,29859,59984,27480,21952,43872,38613,37600,51552,55636,54432,55888,30034,22176,43959,9680,37584,51893,43344,46240,47780,44368,21977,19360,42416,86390,21168,43312,31060,27296,44368,23378,19296,42726,42208,53856,60005,54576,23200,30371,38608,19195,19152,42192,118966,53840,54560,56645,46496,22224,21938,18864,42359,42160,43600,111189,27936,44448,84835,37744,18936,18800,25776,92326,59984,27424,108228,43744,41696,53987,51552,54615,54432,55888,23893,22176,42704,21972,21200,43448,43344,46240,46758,44368,21920,43940,42416,21168,45683,26928,29495,27296,44368,84821,19296,42352,21732,53600,59752,54560,55968,92838,22224,19168,43476,41680,53584,62034,54560],solarMonth:[31,28,31,30,31,30,31,31,30,31,30,31],Gan:["甲","乙","丙","丁","戊","己","庚","辛","壬","癸"],Zhi:["子","丑","寅","卯","辰","巳","午","未","申","酉","戌","亥"],Animals:["鼠","牛","虎","兔","龙","蛇","马","羊","猴","鸡","狗","猪"],solarTerm:["小寒","大寒","立春","雨水","惊蛰","春分","清明","谷雨","立夏","小满","芒种","夏至","小暑","大暑","立秋","处暑","白露","秋分","寒露","霜降","立冬","小雪","大雪","冬至"],sTermInfo:["9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c3598082c95f8c965cc920f","97bd0b06bdb0722c965ce1cfcc920f","b027097bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd0b06bdb0722c965ce1cfcc920f","b027097bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd0b06bdb0722c965ce1cfcc920f","b027097bd097c36b0b6fc9274c91aa","9778397bd19801ec9210c965cc920e","97b6b97bd19801ec95f8c965cc920f","97bd09801d98082c95f8e1cfcc920f","97bd097bd097c36b0b6fc9210c8dc2","9778397bd197c36c9210c9274c91aa","97b6b97bd19801ec95f8c965cc920e","97bd09801d98082c95f8e1cfcc920f","97bd097bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c91aa","97b6b97bd19801ec95f8c965cc920e","97bcf97c3598082c95f8e1cfcc920f","97bd097bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c3598082c95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c3598082c95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd097bd07f595b0b6fc920fb0722","9778397bd097c36b0b6fc9210c8dc2","9778397bd19801ec9210c9274c920e","97b6b97bd19801ec95f8c965cc920f","97bd07f5307f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c920e","97b6b97bd19801ec95f8c965cc920f","97bd07f5307f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c91aa","97b6b97bd19801ec9210c965cc920e","97bd07f1487f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c9274c920e","97bcf7f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c91aa","97b6b97bd197c36c9210c9274c920e","97bcf7f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c920e","97b6b7f0e47f531b0723b0b6fb0722","7f0e37f5307f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36b0b70c9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e37f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc9210c8dc2","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0787b0721","7f0e27f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c91aa","97b6b7f0e47f149b0723b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c8dc2","977837f0e37f149b0723b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e37f5307f595b0b0bc920fb0722","7f0e397bd097c35b0b6fc9210c8dc2","977837f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0721","7f0e37f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc9210c8dc2","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f149b0723b0787b0721","7f0e27f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14998082b0723b06bd","7f07e7f0e37f149b0723b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e37f1487f595b0b0bb0b6fb0722","7f0e37f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e37f1487f531b0b0bb0b6fb0722","7f0e37f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e37f1487f531b0b0bb0b6fb0722","7f0e37f0e37f14898082b072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e37f0e37f14898082b072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f149b0723b0787b0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14998082b0723b06bd","7f07e7f0e47f149b0723b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14998082b0723b06bd","7f07e7f0e37f14998083b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14898082b0723b02d5","7f07e7f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e36665b66aa89801e9808297c35","665f67f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e36665b66a449801e9808297c35","665f67f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e36665b66a449801e9808297c35","665f67f0e37f14898082b072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e26665b66a449801e9808297c35","665f67f0e37f1489801eb072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722"],nStr1:["日","一","二","三","四","五","六","七","八","九","十"],nStr2:["初","十","廿","卅"],nStr3:["正","二","三","四","五","六","七","八","九","十","冬","腊"],lunarFestival:[{month:"正",day:"初一",name:"春节"},{month:"正",day:"十五",name:"元宵节"},{month:"二",day:"初二",name:"龙抬头"},{month:"五",day:"初五",name:"端午节"},{month:"七",day:"初七",name:"七夕节"},{month:"七",day:"十五",name:"中元节"},{month:"八",day:"十五",name:"中秋节"},{month:"九",day:"初九",name:"重阳节"},{month:"腊",day:"除夕",name:"除夕"}],solarFestival:[{month:1,day:1,name:"元旦节"},{month:3,day:8,name:"妇女节"},{month:3,day:12,name:"植树节"},{month:4,day:5,name:"清明节"},{month:5,day:1,name:"劳动节"},{month:5,day:4,name:"青年节"},{month:6,day:1,name:"儿童节"},{month:7,day:1,name:"建党节"},{month:8,day:1,name:"建军节"},{month:9,day:10,name:"教师节"},{month:10,day:1,name:"国庆节"}],lYearDays:function(e){var t,r=348;for(t=32768;t>8;t>>=1)r+=pe.lunarInfo[e-1900]&t?1:0;return r+pe.leapDays(e)},leapMonth:function(e){return 15&pe.lunarInfo[e-1900]},leapDays:function(e){return pe.leapMonth(e)?65536&pe.lunarInfo[e-1900]?30:29:0},monthDays:function(e,t){return t>12||t<1?-1:pe.lunarInfo[e-1900]&65536>>t?30:29},solarDays:function(e,t){if(t>12||t<1)return-1;var r=t-1;return r==1?e%4==0&&e%100!=0||e%400==0?29:28:pe.solarMonth[r]},toGanZhiYear:function(e){var t=(e-3)%10,r=(e-3)%12;return t==0&&(t=10),r==0&&(r=12),pe.Gan[t-1]+pe.Zhi[r-1]},toAstro:function(e,t){return"魔羯水瓶双鱼白羊金牛双子巨蟹狮子处女天秤天蝎射手魔羯".substr(2*e-(t<[20,19,21,21,21,22,23,23,23,23,22,22][e-1]?2:0),2)+"座"},toGanZhi:function(e){return pe.Gan[e%10]+pe.Zhi[e%12]},getTerm:function(e,t){if(e<1900||e>2100||t<1||t>24)return-1;var r=pe.sTermInfo[e-1900],n=[parseInt("0x"+r.substr(0,5)).toString(),parseInt("0x"+r.substr(5,5)).toString(),parseInt("0x"+r.substr(10,5)).toString(),parseInt("0x"+r.substr(15,5)).toString(),parseInt("0x"+r.substr(20,5)).toString(),parseInt("0x"+r.substr(25,5)).toString()],o=[n[0].substr(0,1),n[0].substr(1,2),n[0].substr(3,1),n[0].substr(4,2),n[1].substr(0,1),n[1].substr(1,2),n[1].substr(3,1),n[1].substr(4,2),n[2].substr(0,1),n[2].substr(1,2),n[2].substr(3,1),n[2].substr(4,2),n[3].substr(0,1),n[3].substr(1,2),n[3].substr(3,1),n[3].substr(4,2),n[4].substr(0,1),n[4].substr(1,2),n[4].substr(3,1),n[4].substr(4,2),n[5].substr(0,1),n[5].substr(1,2),n[5].substr(3,1),n[5].substr(4,2)];return parseInt(o[t-1])},toChinaMonth:function(e){if(e>12||e<1)return-1;var t=pe.nStr3[e-1];return t+="月"},toChinaDay:function(e){var t;switch(e){case 10:t="初十";break;case 20:t="二十";break;case 30:t="三十";break;default:t=pe.nStr2[Math.floor(e/10)],t+=pe.nStr1[e%10]}return t},getAnimal:function(e){return pe.Animals[(e-4)%12]},getFestival:(e,t,r,n)=>{let o=null;const a=parseInt(e+"");return o=a?pe.solarFestival.find(l=>l.month===a&&l.day==t):pe.lunarFestival.find(l=>`${l.month}月`===e&&l.day===t),o},solar2lunar:function(e,t,r){if(e<1900||e>2100||e==1900&&t==1&&r<31)return-1;if(e)n=new Date(e,parseInt(t+"")-1,r);else var n=new Date;var o,a=0,l=(e=n.getFullYear(),t=n.getMonth()+1,r=n.getDate(),(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate())-Date.UTC(1900,0,31))/864e5);for(o=1900;o<2101&&l>0;o++)l-=a=pe.lYearDays(o);l<0&&(l+=a,o--);var c=new Date,f=!1;c.getFullYear()==e&&c.getMonth()+1==t&&c.getDate()==r&&(f=!0);var s=n.getDay(),u=pe.nStr1[s];s==0&&(s=7);var h=o,d=pe.leapMonth(o),x=!1;for(o=1;o<13&&l>0;o++)d>0&&o==d+1&&x==0?(--o,x=!0,a=pe.leapDays(h)):a=pe.monthDays(h,o),x==1&&o==d+1&&(x=!1),l-=a;l==0&&d>0&&o==d+1&&(x?x=!1:(x=!0,--o)),l<0&&(l+=a,--o);var m=o,p=l+1,v=t-1,F=pe.toGanZhiYear(h),_=pe.getTerm(h,2*t-1),g=pe.getTerm(h,2*t),b=pe.toGanZhi(12*(e-1900)+t+11);r>=_&&(b=pe.toGanZhi(12*(e-1900)+t+12));var E=!1,B=null;_==r&&(E=!0,B=pe.solarTerm[2*t-2]),g==r&&(E=!0,B=pe.solarTerm[2*t-1]);var y=Date.UTC(e,v,1,0,0,0,0)/864e5+25567+10,k=pe.toGanZhi(y+r-1),R=pe.toAstro(t,r);const A=pe.toChinaMonth(m),D=pe.toChinaDay(p);return{lYear:h,lMonth:m,lDay:p,Animal:pe.getAnimal(h),IMonthCn:(x?"闰":"")+A,IDayCn:D,cYear:e,cMonth:t,cDay:r,gzYear:F,gzMonth:b,gzDay:k,isToday:f,isLeap:x,nWeek:s,ncWeek:"星期"+u,isTerm:E,Term:B,astro:R,festcn:pe.getFestival(A,D,e,t),fest:pe.getFestival(t,r,e)}},lunar2solar:function(e,t,r,n=!0){n=!!n;var o=pe.leapMonth(e);if(pe.leapDays(e),n&&o!=t||e==2100&&t==12&&r>1||e==1900&&t==1&&r<31)return-1;var a=pe.monthDays(e,t),l=a;if(n&&(l=pe.leapDays(e)),e<1900||e>2100||r>l)return-1;for(var c=0,f=1900;f<e;f++)c+=pe.lYearDays(f);var s=0,u=!1;for(f=1;f<t;f++)s=pe.leapMonth(e),u||s<=f&&s>0&&(c+=pe.leapDays(e),u=!0),c+=pe.monthDays(e,f);n&&(c+=a);var h=Date.UTC(1900,1,30,0,0,0),d=new Date(864e5*(c+r-31)+h),x=d.getUTCFullYear(),m=d.getUTCMonth()+1,p=d.getUTCDate();return pe.solar2lunar(x,m,p)}};pe.lunar2solar;function xt(e,t){return Object.prototype.toString.call(e)===`[object ${t}]`}function Jo(e){return Object.prototype.toString.call(e)}const Jt=class Jt{static getTypeLong(t){return Jo(t)}static getType(t){const r=Jo(t);return r.substring(8,r.length-1).toLocaleLowerCase()}static isDef(t){return t!==void 0}static isUnDef(t){return!this.isDef(t)}static isObject(t){return t!==null&&xt(t,"Object")}static isEmpty(t){return this.isArray(t)||this.isString(t)?t.length===0:t instanceof Map||t instanceof Set?t.size===0:!!this.isObject(t)&&Object.keys(t).length===0}static isDate(t){return xt(t,"Date")}static isNull(t){return t===null}static isNullAndUnDef(t){return this.isUnDef(t)&&this.isNull(t)}static isNullOrUnDef(t){return this.isUnDef(t)||this.isNull(t)}static isNumber(t){return xt(t,"Number")}static isPromise(t){return xt(t,"Promise")&&this.isObject(t)&&this.isFunction(t.then)&&this.isFunction(t.catch)}static isString(t){return xt(t,"String")}static isFunction(t){return typeof t=="function"}static isBoolean(t){return xt(t,"Boolean")}static isRegExp(t){return xt(t,"RegExp")}static isArray(t){return t&&Array.isArray(t)}static isWindow(t){return typeof window<"u"&&xt(t,"Window")}static isElement(t){return this.isObject(t)&&!!t.tagName}static isMap(t){return xt(t,"Map")}static isUrl(t){return/(((^https?:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+(?::\d+)?|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)$/.test(t)}};m0(Jt,"isServer",typeof window>"u"),m0(Jt,"isClient",!Jt.isServer);let qn=Jt;for(let e=0;e<=15;e++)e.toString(16);(typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof globalThis=="object"&&globalThis.globalThis===globalThis?globalThis:void 0).navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&/Safari/.test(navigator.userAgent);var Wt={local:{has:e=>Object.prototype.hasOwnProperty.call(localStorage,e),setItem:(e,t,r=0)=>{const n=new Date().getTime(),o=qn.isDate(r)?n+1e3*r:0;localStorage.setItem(e,JSON.stringify({value:t,overTime:o}))},getItem:e=>{const t=localStorage.getItem(e);if(!t)return null;const r=JSON.parse(t);return new Date().getTime()>r.overTime&&r.overTime!==0?(localStorage.removeItem(e),null):r.value},removeItem:e=>{e&&localStorage.removeItem(e)},clear:e=>{e?localStorage.removeItem(e):localStorage.clear()},size:()=>{const e=Object.keys(localStorage);let t=0;for(let r=0;r<e.length;r++){const n=e[r],o=localStorage.getItem(n)||"";t+=2*(n.length+o.length)}return Math.round(t/1024)}},session:{has:e=>Object.prototype.hasOwnProperty.call(sessionStorage,e),setItem:(e,t,r=0)=>{const n=new Date().getTime(),o=r?n+1e3*r:0;sessionStorage.setItem(e,JSON.stringify({value:t,overTime:o}))},getItem:e=>{const t=sessionStorage.getItem(e);if(!t)return null;const r=JSON.parse(t);return new Date().getTime()>r.overTime&&r.overTime!==0?(sessionStorage.removeItem(e),null):r.value},removeItem:e=>{e&&sessionStorage.removeItem(e)},clear:e=>{e?sessionStorage.removeItem(e):sessionStorage.clear()},size:()=>{const e=Object.keys(sessionStorage);let t=0;for(let r=0;r<e.length;r++){const n=e[r],o=sessionStorage.getItem(n)||"";t+=2*(n.length+o.length)}return Math.round(t/1024)}},forage:Ha,cookie:ho};window.socketMap=new Map,Ut.set({precision:14});var Ac=Object.freeze({__proto__:null,debounce:function(e,t){let r;return n=>{clearTimeout(r),r=setTimeout(()=>{e(n)},t)}},throttle:function(e,t){let r=0;return n=>{const o=new Date().getTime();o-r>t&&(e(n),r=o)}}});const Le=Hi,jt=/^[a-z0-9]+(-[a-z0-9]+)*$/,Cr=(e,t,r,n="")=>{const o=e.split(":");if(e.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;n=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const c=o.pop(),f=o.pop(),s={provider:o.length>0?o[0]:n,prefix:f,name:c};return t&&!Br(s)?null:s}const a=o[0],l=a.split("-");if(l.length>1){const c={provider:n,prefix:l.shift(),name:l.join("-")};return t&&!Br(c)?null:c}if(r&&n===""){const c={provider:n,prefix:"",name:a};return t&&!Br(c,r)?null:c}return null},Br=(e,t)=>e?!!((e.provider===""||e.provider.match(jt))&&(t&&e.prefix===""||e.prefix.match(jt))&&e.name.match(jt)):!1,ei=Object.freeze({left:0,top:0,width:16,height:16}),Er=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),_r=Object.freeze({...ei,...Er}),Un=Object.freeze({..._r,body:"",hidden:!1});function kc(e,t){const r={};!e.hFlip!=!t.hFlip&&(r.hFlip=!0),!e.vFlip!=!t.vFlip&&(r.vFlip=!0);const n=((e.rotate||0)+(t.rotate||0))%4;return n&&(r.rotate=n),r}function ti(e,t){const r=kc(e,t);for(const n in Un)n in Er?n in e&&!(n in r)&&(r[n]=Er[n]):n in t?r[n]=t[n]:n in e&&(r[n]=e[n]);return r}function Dc(e,t){const r=e.icons,n=e.aliases||Object.create(null),o=Object.create(null);function a(l){if(r[l])return o[l]=[];if(!(l in o)){o[l]=null;const c=n[l]&&n[l].parent,f=c&&a(c);f&&(o[l]=[c].concat(f))}return o[l]}return(t||Object.keys(r).concat(Object.keys(n))).forEach(a),o}function Fc(e,t,r){const n=e.icons,o=e.aliases||Object.create(null);let a={};function l(c){a=ti(n[c]||o[c],a)}return l(t),r.forEach(l),ti(e,a)}function ri(e,t){const r=[];if(typeof e!="object"||typeof e.icons!="object")return r;e.not_found instanceof Array&&e.not_found.forEach(o=>{t(o,null),r.push(o)});const n=Dc(e);for(const o in n){const a=n[o];a&&(t(o,Fc(e,o,a)),r.push(o))}return r}const Sc={provider:"",aliases:{},not_found:{},...ei};function Wn(e,t){for(const r in t)if(r in e&&typeof e[r]!=typeof t[r])return!1;return!0}function ni(e){if(typeof e!="object"||e===null)return null;const t=e;if(typeof t.prefix!="string"||!e.icons||typeof e.icons!="object"||!Wn(e,Sc))return null;const r=t.icons;for(const o in r){const a=r[o];if(!o.match(jt)||typeof a.body!="string"||!Wn(a,Un))return null}const n=t.aliases||Object.create(null);for(const o in n){const a=n[o],l=a.parent;if(!o.match(jt)||typeof l!="string"||!r[l]&&!n[l]||!Wn(a,Un))return null}return t}const oi=Object.create(null);function Nc(e,t){return{provider:e,prefix:t,icons:Object.create(null),missing:new Set}}function kt(e,t){const r=oi[e]||(oi[e]=Object.create(null));return r[t]||(r[t]=Nc(e,t))}function jn(e,t){return ni(t)?ri(t,(r,n)=>{n?e.icons[r]=n:e.missing.add(r)}):[]}function Ic(e,t,r){try{if(typeof r.body=="string")return e.icons[t]={...r},!0}catch{}return!1}let Yt=!1;function ii(e){return typeof e=="boolean"&&(Yt=e),Yt}function Tc(e){const t=typeof e=="string"?Cr(e,!0,Yt):e;if(t){const r=kt(t.provider,t.prefix),n=t.name;return r.icons[n]||(r.missing.has(n)?null:void 0)}}function Oc(e,t){const r=Cr(e,!0,Yt);if(!r)return!1;const n=kt(r.provider,r.prefix);return Ic(n,r.name,t)}function Rc(e,t){if(typeof e!="object")return!1;if(typeof t!="string"&&(t=e.provider||""),Yt&&!t&&!e.prefix){let o=!1;return ni(e)&&(e.prefix="",ri(e,(a,l)=>{l&&Oc(a,l)&&(o=!0)})),o}const r=e.prefix;if(!Br({provider:t,prefix:r,name:"a"}))return!1;const n=kt(t,r);return!!jn(n,e)}const ai=Object.freeze({width:null,height:null}),si=Object.freeze({...ai,...Er}),Lc=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Vc=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function ci(e,t,r){if(t===1)return e;if(r=r||100,typeof e=="number")return Math.ceil(e*t*r)/r;if(typeof e!="string")return e;const n=e.split(Lc);if(n===null||!n.length)return e;const o=[];let a=n.shift(),l=Vc.test(a);for(;;){if(l){const c=parseFloat(a);isNaN(c)?o.push(a):o.push(Math.ceil(c*t*r)/r)}else o.push(a);if(a=n.shift(),a===void 0)return o.join("");l=!l}}const $c=e=>e==="unset"||e==="undefined"||e==="none";function Pc(e,t){const r={..._r,...e},n={...si,...t},o={left:r.left,top:r.top,width:r.width,height:r.height};let a=r.body;[r,n].forEach(m=>{const p=[],v=m.hFlip,F=m.vFlip;let _=m.rotate;v?F?_+=2:(p.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),p.push("scale(-1 1)"),o.top=o.left=0):F&&(p.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),p.push("scale(1 -1)"),o.top=o.left=0);let g;switch(_<0&&(_-=Math.floor(_/4)*4),_=_%4,_){case 1:g=o.height/2+o.top,p.unshift("rotate(90 "+g.toString()+" "+g.toString()+")");break;case 2:p.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:g=o.width/2+o.left,p.unshift("rotate(-90 "+g.toString()+" "+g.toString()+")");break}_%2===1&&(o.left!==o.top&&(g=o.left,o.left=o.top,o.top=g),o.width!==o.height&&(g=o.width,o.width=o.height,o.height=g)),p.length&&(a='<g transform="'+p.join(" ")+'">'+a+"</g>")});const l=n.width,c=n.height,f=o.width,s=o.height;let u,h;l===null?(h=c===null?"1em":c==="auto"?s:c,u=ci(h,f/s)):(u=l==="auto"?f:l,h=c===null?ci(u,s/f):c==="auto"?s:c);const d={},x=(m,p)=>{$c(p)||(d[m]=p.toString())};return x("width",u),x("height",h),d.viewBox=o.left.toString()+" "+o.top.toString()+" "+f.toString()+" "+s.toString(),{attributes:d,body:a}}const zc=/\sid="(\S+)"/g,Mc="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let Hc=0;function qc(e,t=Mc){const r=[];let n;for(;n=zc.exec(e);)r.push(n[1]);if(!r.length)return e;const o="suffix"+(Math.random()*16777216|Date.now()).toString(16);return r.forEach(a=>{const l=typeof t=="function"?t(a):t+(Hc++).toString(),c=a.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+c+')([")]|\\.[a-z])',"g"),"$1"+l+o+"$3")}),e=e.replace(new RegExp(o,"g"),""),e}const Yn=Object.create(null);function Uc(e,t){Yn[e]=t}function Kn(e){return Yn[e]||Yn[""]}function Gn(e){let t;if(typeof e.resources=="string")t=[e.resources];else if(t=e.resources,!(t instanceof Array)||!t.length)return null;return{resources:t,path:e.path||"/",maxURL:e.maxURL||500,rotate:e.rotate||750,timeout:e.timeout||5e3,random:e.random===!0,index:e.index||0,dataAfterTimeout:e.dataAfterTimeout!==!1}}const Xn=Object.create(null),Kt=["https://api.simplesvg.com","https://api.unisvg.com"],wr=[];for(;Kt.length>0;)Kt.length===1||Math.random()>.5?wr.push(Kt.shift()):wr.push(Kt.pop());Xn[""]=Gn({resources:["https://api.iconify.design"].concat(wr)});function Wc(e,t){const r=Gn(t);return r===null?!1:(Xn[e]=r,!0)}function Zn(e){return Xn[e]}let li=(()=>{let e;try{if(e=fetch,typeof e=="function")return e}catch{}})();function jc(e,t){const r=Zn(e);if(!r)return 0;let n;if(!r.maxURL)n=0;else{let o=0;r.resources.forEach(l=>{o=Math.max(o,l.length)});const a=t+".json?icons=";n=r.maxURL-o-r.path.length-a.length}return n}function Yc(e){return e===404}const Kc=(e,t,r)=>{const n=[],o=jc(e,t),a="icons";let l={type:a,provider:e,prefix:t,icons:[]},c=0;return r.forEach((f,s)=>{c+=f.length+1,c>=o&&s>0&&(n.push(l),l={type:a,provider:e,prefix:t,icons:[]},c=f.length),l.icons.push(f)}),n.push(l),n};function Gc(e){if(typeof e=="string"){const t=Zn(e);if(t)return t.path}return"/"}const Xc={prepare:Kc,send:(e,t,r)=>{if(!li){r("abort",424);return}let n=Gc(t.provider);switch(t.type){case"icons":{const a=t.prefix,c=t.icons.join(","),f=new URLSearchParams({icons:c});n+=a+".json?"+f.toString();break}case"custom":{const a=t.uri;n+=a.slice(0,1)==="/"?a.slice(1):a;break}default:r("abort",400);return}let o=503;li(e+n).then(a=>{const l=a.status;if(l!==200){setTimeout(()=>{r(Yc(l)?"abort":"next",l)});return}return o=501,a.json()}).then(a=>{if(typeof a!="object"||a===null){setTimeout(()=>{a===404?r("abort",a):r("next",o)});return}setTimeout(()=>{r("success",a)})}).catch(()=>{r("next",o)})}};function Zc(e){const t={loaded:[],missing:[],pending:[]},r=Object.create(null);e.sort((o,a)=>o.provider!==a.provider?o.provider.localeCompare(a.provider):o.prefix!==a.prefix?o.prefix.localeCompare(a.prefix):o.name.localeCompare(a.name));let n={provider:"",prefix:"",name:""};return e.forEach(o=>{if(n.name===o.name&&n.prefix===o.prefix&&n.provider===o.provider)return;n=o;const a=o.provider,l=o.prefix,c=o.name,f=r[a]||(r[a]=Object.create(null)),s=f[l]||(f[l]=kt(a,l));let u;c in s.icons?u=t.loaded:l===""||s.missing.has(c)?u=t.missing:u=t.pending;const h={provider:a,prefix:l,name:c};u.push(h)}),t}function fi(e,t){e.forEach(r=>{const n=r.loaderCallbacks;n&&(r.loaderCallbacks=n.filter(o=>o.id!==t))})}function Qc(e){e.pendingCallbacksFlag||(e.pendingCallbacksFlag=!0,setTimeout(()=>{e.pendingCallbacksFlag=!1;const t=e.loaderCallbacks?e.loaderCallbacks.slice(0):[];if(!t.length)return;let r=!1;const n=e.provider,o=e.prefix;t.forEach(a=>{const l=a.icons,c=l.pending.length;l.pending=l.pending.filter(f=>{if(f.prefix!==o)return!0;const s=f.name;if(e.icons[s])l.loaded.push({provider:n,prefix:o,name:s});else if(e.missing.has(s))l.missing.push({provider:n,prefix:o,name:s});else return r=!0,!0;return!1}),l.pending.length!==c&&(r||fi([e],a.id),a.callback(l.loaded.slice(0),l.missing.slice(0),l.pending.slice(0),a.abort))})}))}let Jc=0;function el(e,t,r){const n=Jc++,o=fi.bind(null,r,n);if(!t.pending.length)return o;const a={id:n,icons:t,callback:e,abort:o};return r.forEach(l=>{(l.loaderCallbacks||(l.loaderCallbacks=[])).push(a)}),o}function tl(e,t=!0,r=!1){const n=[];return e.forEach(o=>{const a=typeof o=="string"?Cr(o,t,r):o;a&&n.push(a)}),n}var rl={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function nl(e,t,r,n){const o=e.resources.length,a=e.random?Math.floor(Math.random()*o):e.index;let l;if(e.random){let B=e.resources.slice(0);for(l=[];B.length>1;){const y=Math.floor(Math.random()*B.length);l.push(B[y]),B=B.slice(0,y).concat(B.slice(y+1))}l=l.concat(B)}else l=e.resources.slice(a).concat(e.resources.slice(0,a));const c=Date.now();let f="pending",s=0,u,h=null,d=[],x=[];typeof n=="function"&&x.push(n);function m(){h&&(clearTimeout(h),h=null)}function p(){f==="pending"&&(f="aborted"),m(),d.forEach(B=>{B.status==="pending"&&(B.status="aborted")}),d=[]}function v(B,y){y&&(x=[]),typeof B=="function"&&x.push(B)}function F(){return{startTime:c,payload:t,status:f,queriesSent:s,queriesPending:d.length,subscribe:v,abort:p}}function _(){f="failed",x.forEach(B=>{B(void 0,u)})}function g(){d.forEach(B=>{B.status==="pending"&&(B.status="aborted")}),d=[]}function b(B,y,k){const R=y!=="success";switch(d=d.filter(A=>A!==B),f){case"pending":break;case"failed":if(R||!e.dataAfterTimeout)return;break;default:return}if(y==="abort"){u=k,_();return}if(R){u=k,d.length||(l.length?E():_());return}if(m(),g(),!e.random){const A=e.resources.indexOf(B.resource);A!==-1&&A!==e.index&&(e.index=A)}f="completed",x.forEach(A=>{A(k)})}function E(){if(f!=="pending")return;m();const B=l.shift();if(B===void 0){if(d.length){h=setTimeout(()=>{m(),f==="pending"&&(g(),_())},e.timeout);return}_();return}const y={status:"pending",resource:B,callback:(k,R)=>{b(y,k,R)}};d.push(y),s++,h=setTimeout(E,e.rotate),r(B,t,y.callback)}return setTimeout(E),F}function ui(e){const t={...rl,...e};let r=[];function n(){r=r.filter(c=>c().status==="pending")}function o(c,f,s){const u=nl(t,c,f,(h,d)=>{n(),s&&s(h,d)});return r.push(u),u}function a(c){return r.find(f=>c(f))||null}return{query:o,find:a,setIndex:c=>{t.index=c},getIndex:()=>t.index,cleanup:n}}function di(){}const Qn=Object.create(null);function ol(e){if(!Qn[e]){const t=Zn(e);if(!t)return;const r=ui(t),n={config:t,redundancy:r};Qn[e]=n}return Qn[e]}function il(e,t,r){let n,o;if(typeof e=="string"){const a=Kn(e);if(!a)return r(void 0,424),di;o=a.send;const l=ol(e);l&&(n=l.redundancy)}else{const a=Gn(e);if(a){n=ui(a);const l=e.resources?e.resources[0]:"",c=Kn(l);c&&(o=c.send)}}return!n||!o?(r(void 0,424),di):n.query(t,o,r)().abort}const hi="iconify2",Gt="iconify",pi=Gt+"-count",xi=Gt+"-version",gi=36e5,al=168;function Jn(e,t){try{return e.getItem(t)}catch{}}function e0(e,t,r){try{return e.setItem(t,r),!0}catch{}}function bi(e,t){try{e.removeItem(t)}catch{}}function t0(e,t){return e0(e,pi,t.toString())}function r0(e){return parseInt(Jn(e,pi))||0}const Ar={local:!0,session:!0},vi={local:new Set,session:new Set};let n0=!1;function sl(e){n0=e}let kr=typeof window>"u"?{}:window;function mi(e){const t=e+"Storage";try{if(kr&&kr[t]&&typeof kr[t].length=="number")return kr[t]}catch{}Ar[e]=!1}function yi(e,t){const r=mi(e);if(!r)return;const n=Jn(r,xi);if(n!==hi){if(n){const c=r0(r);for(let f=0;f<c;f++)bi(r,Gt+f.toString())}e0(r,xi,hi),t0(r,0);return}const o=Math.floor(Date.now()/gi)-al,a=c=>{const f=Gt+c.toString(),s=Jn(r,f);if(typeof s=="string"){try{const u=JSON.parse(s);if(typeof u=="object"&&typeof u.cached=="number"&&u.cached>o&&typeof u.provider=="string"&&typeof u.data=="object"&&typeof u.data.prefix=="string"&&t(u,c))return!0}catch{}bi(r,f)}};let l=r0(r);for(let c=l-1;c>=0;c--)a(c)||(c===l-1?(l--,t0(r,l)):vi[e].add(c))}function Ci(){if(!n0){sl(!0);for(const e in Ar)yi(e,t=>{const r=t.data,n=t.provider,o=r.prefix,a=kt(n,o);if(!jn(a,r).length)return!1;const l=r.lastModified||-1;return a.lastModifiedCached=a.lastModifiedCached?Math.min(a.lastModifiedCached,l):l,!0})}}function cl(e,t){const r=e.lastModifiedCached;if(r&&r>=t)return r===t;if(e.lastModifiedCached=t,r)for(const n in Ar)yi(n,o=>{const a=o.data;return o.provider!==e.provider||a.prefix!==e.prefix||a.lastModified===t});return!0}function ll(e,t){n0||Ci();function r(n){let o;if(!Ar[n]||!(o=mi(n)))return;const a=vi[n];let l;if(a.size)a.delete(l=Array.from(a).shift());else if(l=r0(o),!t0(o,l+1))return;const c={cached:Math.floor(Date.now()/gi),provider:e.provider,data:t};return e0(o,Gt+l.toString(),JSON.stringify(c))}t.lastModified&&!cl(e,t.lastModified)||Object.keys(t.icons).length&&(t.not_found&&(t=Object.assign({},t),delete t.not_found),r("local")||r("session"))}function Bi(){}function fl(e){e.iconsLoaderFlag||(e.iconsLoaderFlag=!0,setTimeout(()=>{e.iconsLoaderFlag=!1,Qc(e)}))}function ul(e,t){e.iconsToLoad?e.iconsToLoad=e.iconsToLoad.concat(t).sort():e.iconsToLoad=t,e.iconsQueueFlag||(e.iconsQueueFlag=!0,setTimeout(()=>{e.iconsQueueFlag=!1;const{provider:r,prefix:n}=e,o=e.iconsToLoad;delete e.iconsToLoad;let a;if(!o||!(a=Kn(r)))return;a.prepare(r,n,o).forEach(c=>{il(r,c,f=>{if(typeof f!="object")c.icons.forEach(s=>{e.missing.add(s)});else try{const s=jn(e,f);if(!s.length)return;const u=e.pendingIcons;u&&s.forEach(h=>{u.delete(h)}),ll(e,f)}catch(s){console.error(s)}fl(e)})})}))}const dl=(e,t)=>{const r=tl(e,!0,ii()),n=Zc(r);if(!n.pending.length){let f=!0;return t&&setTimeout(()=>{f&&t(n.loaded,n.missing,n.pending,Bi)}),()=>{f=!1}}const o=Object.create(null),a=[];let l,c;return n.pending.forEach(f=>{const{provider:s,prefix:u}=f;if(u===c&&s===l)return;l=s,c=u,a.push(kt(s,u));const h=o[s]||(o[s]=Object.create(null));h[u]||(h[u]=[])}),n.pending.forEach(f=>{const{provider:s,prefix:u,name:h}=f,d=kt(s,u),x=d.pendingIcons||(d.pendingIcons=new Set);x.has(h)||(x.add(h),o[s][u].push(h))}),a.forEach(f=>{const{provider:s,prefix:u}=f;o[s][u].length&&ul(f,o[s][u])}),t?el(t,n,a):Bi};function hl(e,t){const r={...e};for(const n in t){const o=t[n],a=typeof o;n in ai?(o===null||o&&(a==="string"||a==="number"))&&(r[n]=o):a===typeof r[n]&&(r[n]=n==="rotate"?o%4:o)}return r}const pl=/[\s,]+/;function xl(e,t){t.split(pl).forEach(r=>{switch(r.trim()){case"horizontal":e.hFlip=!0;break;case"vertical":e.vFlip=!0;break}})}function gl(e,t=0){const r=e.replace(/^-?[0-9.]*/,"");function n(o){for(;o<0;)o+=4;return o%4}if(r===""){const o=parseInt(e);return isNaN(o)?0:n(o)}else if(r!==e){let o=0;switch(r){case"%":o=25;break;case"deg":o=90}if(o){let a=parseFloat(e.slice(0,e.length-r.length));return isNaN(a)?0:(a=a/o,a%1===0?n(a):0)}}return t}function bl(e,t){let r=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const n in t)r+=" "+n+'="'+t[n]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+r+">"+e+"</svg>"}function vl(e){return e.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function ml(e){return"data:image/svg+xml,"+vl(e)}function yl(e){return'url("'+ml(e)+'")'}const Ei={...si,inline:!1},Cl={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},Bl={display:"inline-block"},o0={backgroundColor:"currentColor"},_i={backgroundColor:"transparent"},wi={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},Ai={webkitMask:o0,mask:o0,background:_i};for(const e in Ai){const t=Ai[e];for(const r in wi)t[e+r]=wi[r]}const Dr={};["horizontal","vertical"].forEach(e=>{const t=e.slice(0,1)+"Flip";Dr[e+"-flip"]=t,Dr[e.slice(0,1)+"-flip"]=t,Dr[e+"Flip"]=t});function ki(e){return e+(e.match(/^[-0-9.]+$/)?"px":"")}const Di=(e,t)=>{const r=hl(Ei,t),n={...Cl},o=t.mode||"svg",a={},l=t.style,c=typeof l=="object"&&!(l instanceof Array)?l:{};for(let p in t){const v=t[p];if(v!==void 0)switch(p){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":r[p]=v===!0||v==="true"||v===1;break;case"flip":typeof v=="string"&&xl(r,v);break;case"color":a.color=v;break;case"rotate":typeof v=="string"?r[p]=gl(v):typeof v=="number"&&(r[p]=v);break;case"ariaHidden":case"aria-hidden":v!==!0&&v!=="true"&&delete n["aria-hidden"];break;default:{const F=Dr[p];F?(v===!0||v==="true"||v===1)&&(r[F]=!0):Ei[p]===void 0&&(n[p]=v)}}}const f=Pc(e,r),s=f.attributes;if(r.inline&&(a.verticalAlign="-0.125em"),o==="svg"){n.style={...a,...c},Object.assign(n,s);let p=0,v=t.id;return typeof v=="string"&&(v=v.replace(/-/g,"_")),n.innerHTML=qc(f.body,v?()=>v+"ID"+p++:"iconifyVue"),i.h("svg",n)}const{body:u,width:h,height:d}=e,x=o==="mask"||(o==="bg"?!1:u.indexOf("currentColor")!==-1),m=bl(u,{...s,width:h+"",height:d+""});return n.style={...a,"--svg":yl(m),width:ki(s.width),height:ki(s.height),...Bl,...x?o0:_i,...c},i.h("span",n)};if(ii(!0),Uc("",Xc),typeof document<"u"&&typeof window<"u"){Ci();const e=window;if(e.IconifyPreload!==void 0){const t=e.IconifyPreload,r="Invalid IconifyPreload syntax.";typeof t=="object"&&t!==null&&(t instanceof Array?t:[t]).forEach(n=>{try{(typeof n!="object"||n===null||n instanceof Array||typeof n.icons!="object"||typeof n.prefix!="string"||!Rc(n))&&console.error(r)}catch{console.error(r)}})}if(e.IconifyProviders!==void 0){const t=e.IconifyProviders;if(typeof t=="object"&&t!==null)for(let r in t){const n="IconifyProviders["+r+"] is invalid.";try{const o=t[r];if(typeof o!="object"||!o||o.resources===void 0)continue;Wc(r,o)||console.error(n)}catch{console.error(n)}}}}const El={..._r,body:""},Fi=i.defineComponent({inheritAttrs:!1,data(){return{iconMounted:!1,counter:0}},mounted(){this._name="",this._loadingIcon=null,this.iconMounted=!0},unmounted(){this.abortLoading()},methods:{abortLoading(){this._loadingIcon&&(this._loadingIcon.abort(),this._loadingIcon=null)},getIcon(e,t){if(typeof e=="object"&&e!==null&&typeof e.body=="string")return this._name="",this.abortLoading(),{data:e};let r;if(typeof e!="string"||(r=Cr(e,!1,!0))===null)return this.abortLoading(),null;const n=Tc(r);if(!n)return(!this._loadingIcon||this._loadingIcon.name!==e)&&(this.abortLoading(),this._name="",n!==null&&(this._loadingIcon={name:e,abort:dl([r],()=>{this.counter++})})),null;this.abortLoading(),this._name!==e&&(this._name=e,t&&t(e));const o=["iconify"];return r.prefix!==""&&o.push("iconify--"+r.prefix),r.provider!==""&&o.push("iconify--"+r.provider),{data:n,classes:o}}},render(){this.counter;const e=this.$attrs,t=this.iconMounted?this.getIcon(e.icon,e.onLoad):null;if(!t)return Di(El,e);let r=e;return t.classes&&(r={...e,class:(typeof e.class=="string"?e.class+" ":"")+t.classes.join(" ")}),Di({..._r,...t.data},r)}}),_l={key:1,class:"basicHeight basicWidth","aria-hidden":"true"},wl=["xlink:href"],Al=["src"],kl={key:1,class:"basicHeight basicWidth","aria-hidden":"true"},Dl=["xlink:href"],Fl=["src"],Sl=i.defineComponent({name:"IkSvgIcon",__name:"index",props:{name:{},flip:{},rotate:{},color:{},size:{default:""},bg:{type:Boolean,default:!1},showBg:{type:Boolean,default:!1},padding:{default:"0"},warning:{type:Boolean},notip:{type:Boolean,default:!1},title:{}},setup(e){const t=e,r=i.computed(()=>{var a;return/^http?:\/\//.test(t.name)?"img":/i-[^:]+:[^:]+/.test(t.name)?"unocss":(a=t.name)!=null&&a.includes(":")?"iconify":"svg"}),n=i.computed(()=>{const a=[];if(t.flip)switch(t.flip){case"horizontal":a.push("rotateY(180deg)");break;case"vertical":a.push("rotateX(180deg)");break;case"both":a.push("rotateX(180deg)"),a.push("rotateY(180deg)");break}return t.rotate&&a.push(`rotate(${t.rotate%360}deg)`),{...t.color&&{color:t.color},...t.size&&{fontSize:typeof t.size=="number"?`${t.size}px`:t.size},...a.length&&{transform:a.join(" ")},padding:t.padding}}),o=i.computed(()=>document.body.getAttribute("data-theme")==="dark");return(a,l)=>{const c=i.resolveComponent("el-tooltip");return a.notip||!a.title?(i.openBlock(),i.createElementBlock("i",{key:0,class:i.normalizeClass(["ik-svg-icon ik-icon relative basicHeight basicWidth flex-inline items-center justify-center fill-current leading-[1em] transition",{[a.name]:r.value==="unocss","show-bg":a.showBg||a.bg,default:a.size==="default",small:a.size==="small",big:a.size==="big",warning:a.warning}]),style:i.normalizeStyle(n.value)},[r.value==="iconify"?(i.openBlock(),i.createBlock(i.unref(Fi),{key:0,icon:a.name},null,8,["icon"])):r.value==="svg"?(i.openBlock(),i.createElementBlock("svg",_l,[i.createElementVNode("use",{"xlink:href":`#${a.name}`},null,8,wl)])):r.value==="img"?(i.openBlock(),i.createElementBlock("img",{key:2,src:a.name,class:"basicHeight basicWidth"},null,8,Al)):i.createCommentVNode("v-if",!0)],6)):(i.openBlock(),i.createBlock(c,{key:1,effect:o.value?"dark":"light",content:a.title},{default:i.withCtx(()=>[i.createElementVNode("i",i.mergeProps({class:["ik-svg-icon ik-icon relative basicHeight basicWidth flex-inline items-center justify-center fill-current leading-[1em] transition",{[a.name]:r.value==="unocss","show-bg":a.showBg||a.bg,default:a.size==="default",small:a.size==="small",big:a.size==="big",warning:a.warning}],style:n.value},a.$attrs),[r.value==="iconify"?(i.openBlock(),i.createBlock(i.unref(Fi),{key:0,icon:a.name},null,8,["icon"])):r.value==="svg"?(i.openBlock(),i.createElementBlock("svg",kl,[i.createElementVNode("use",{"xlink:href":`#${a.name}`},null,8,Dl)])):r.value==="img"?(i.openBlock(),i.createElementBlock("img",{key:2,src:a.name,class:"basicHeight basicWidth"},null,8,Fl)):i.createCommentVNode("v-if",!0)],16)]),_:1},8,["effect","content"]))}}}),rd="",gt=Pt(He(Sl,[["__scopeId","data-v-1957ff53"]])),Nl={},Il={t:"1672196428320",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3618",width:"200",height:"200"},Tl=[i.createElementVNode("path",{d:"M384 250V134a70 70 0 0 0-70-70H134a70 70 0 0 0-70 70v116a70 70 0 0 0 70 70h180a70 70 0 0 0 70-70z m-80-10H144v-96h160zM890 704H710a70 70 0 0 0-70 70v116a70 70 0 0 0 70 70h180a70 70 0 0 0 70-70V774a70 70 0 0 0-70-70z m-10 176H720v-96h160zM890 384H710a70 70 0 0 0-70 70v116a70 70 0 0 0 70 70h180a70 70 0 0 0 70-70V454a70 70 0 0 0-70-70z m-10 176H720v-96h160zM536 504H264v-80a40 40 0 0 0-40-40 40 40 0 0 0-40 40v432a40 40 0 0 0 40 40h312a40 40 0 0 0 40-40 40 40 0 0 0-40-40H264V584h272a40 40 0 0 0 40-40 40 40 0 0 0-40-40z","p-id":"3619","data-spm-anchor-id":"a313x.7781069.0.i2",class:"selected"},null,-1)];function Ol(e,t){return i.openBlock(),i.createElementBlock("svg",Il,Tl)}const i0=He(Nl,[["render",Ol]]),Rl={},Ll={t:"1672197639916",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"19012"},Vl=[i.createElementVNode("path",{d:"M863.1 255.1H551.3c-25.1 0-49.2-9.8-67.1-27.4l-75-73.4c-17.9-17.5-42-27.4-67.1-27.4H161c-53 0-96 43-96 96v512.8c0 53 43 96 96 96h702c53 0 96-43 96-96V351.1c0.1-53-42.9-96-95.9-96z m-31 161.1c0 17.7-14.3 32-32 32H224c-17.7 0-32-14.3-32-32v-0.1c0-17.7 14.3-32 32-32h576.1c17.7 0 32 14.3 32 32v0.1z","p-id":"19013"},null,-1)];function $l(e,t){return i.openBlock(),i.createElementBlock("svg",Ll,Vl)}const Xt=He(Rl,[["render",$l]]),Pl={},zl={t:"1672197222005",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"14755"},Ml=[i.createElementVNode("path",{d:"M959.68 921.024c-15.232-181.696-139.648-331.968-307.84-386.624 70.464-45.632 117.248-124.48 117.248-214.464C769.152 178.624 654.208 64 512.512 64 370.752 64 255.808 178.624 255.808 319.936c0 89.984 46.784 168.832 117.248 214.528-168.192 54.592-292.544 204.864-307.84 386.56-0.192 3.456-0.64 5.44 0 10.176C66.496 947.2 80.64 960 96.704 960c17.92 0 32.064-14.656 32.064-32 16.704-197.76 182.272-351.936 383.744-351.936 201.408 0 366.976 154.176 383.68 351.936 0 17.344 14.144 32 32.064 32 16.064 0 30.208-12.8 31.424-28.8C960.32 926.464 959.936 924.416 959.68 921.024zM320 319.936C320 213.952 406.208 128 512.512 128s192.448 85.952 192.448 191.936c0 106.048-86.144 192-192.448 192S320 425.984 320 319.936z","p-id":"14756"},null,-1)];function Hl(e,t){return i.openBlock(),i.createElementBlock("svg",zl,Ml)}const Fr=He(Pl,[["render",Hl]]),ql={},Ul={t:"1672194715727",class:"icon",viewBox:"0 0 1024 1024",version:"1.1","p-id":"2667"},Wl=[i.createElementVNode("path",{d:"M809.246403 771.926938 777.737782 803.458071 924.965961 950.667831 956.476629 919.157163Z",fill:"#5D5D5D","p-id":"2668"},null,-1),i.createElementVNode("path",{d:"M454.878536 70.285786C239.51556 70.285786 64.93236 244.847497 64.93236 460.231963c0 215.341486 174.583201 389.945153 389.945153 389.945153 215.362976 0 389.9472-174.603667 389.9472-389.945153C844.825736 244.847497 670.241512 70.285786 454.878536 70.285786zM454.878536 805.611108c-190.750415 0-345.381192-154.626683-345.381192-345.379145 0-190.751439 154.629753-345.380168 345.381192-345.380168 190.752462 0 345.382215 154.62873 345.382215 345.380168C800.259728 650.983401 645.630998 805.611108 454.878536 805.611108z",fill:"#5D5D5D","p-id":"2669"},null,-1)];function jl(e,t){return i.openBlock(),i.createElementBlock("svg",Ul,Wl)}const Yl=He(ql,[["render",jl]]),Kl={},Gl={t:"1672212880079",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"19924"},Xl=[i.createElementVNode("path",{d:"M806.4 263.2l-45.6-45.6L512 467.2 263.2 217.6l-45.6 45.6L467.2 512 217.6 760.8l45.6 45.6L512 557.6l248.8 248.8 45.6-45.6L557.6 512z","p-id":"19925"},null,-1)];function Zl(e,t){return i.openBlock(),i.createElementBlock("svg",Gl,Xl)}const Ql=He(Kl,[["render",Zl]]),Jl={},ef={t:"1672216076738",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"28376"},tf=[i.createElementVNode("path",{d:"M501.937582 545.097053c147.891962 0 268.231366-118.534055 268.223274-264.288929 0-145.746783-120.330301-264.28994-268.222263-264.28994-147.890951 0-268.221252 118.584625-268.221252 264.28994C233.71633 426.520519 354.046631 545.097053 501.937582 545.097053zM612.471463 570.546911 411.497184 570.546911c-186.760063 0-338.664249 149.569875-338.664249 333.472733l0 19.794109c0 96.139636 149.47278 96.139636 338.664249 96.139636l200.974278 0c181.747565 0 338.694591 0 338.694591-96.139636l0-19.794109C951.164031 720.158252 799.235571 570.546911 612.471463 570.546911z","p-id":"28377"},null,-1)];function rf(e,t){return i.openBlock(),i.createElementBlock("svg",ef,tf)}const Rt=He(Jl,[["render",rf]]),nf={},of={t:"1680231254898",class:"icon",viewBox:"0 0 1154 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"9556"},af=[i.createElementVNode("path",{d:"M1015.808 64.512q62.464 0 99.84 31.744t37.376 96.256l0 568.32q0 27.648-10.24 52.224t-28.16 43.008-41.984 29.184-50.688 10.752l-892.928 0q-26.624 0-50.176-10.24t-40.96-27.136-27.648-39.424-10.24-48.128l0-580.608q0-55.296 33.792-90.624t95.232-35.328l886.784 0zM287.744 253.952q-19.456 0-36.864 7.168t-30.72 19.968-20.992 30.72-7.68 38.4 7.68 37.888 20.992 30.72 30.72 20.992 36.864 7.68q21.504 0 39.424-7.68t30.72-20.992 20.48-30.72 7.68-37.888q0-41.984-27.648-69.12t-70.656-27.136zM448.512 608.256q0-19.456-7.68-37.376t-20.48-30.72-30.72-20.48-37.376-7.68l-128 0q-39.936 0-67.584 28.16t-27.648 68.096l0 4.096 0 92.16 319.488 0 0-92.16 0-4.096zM923.648 709.632q20.48 0 30.208-10.24t9.728-24.576-11.264-25.088-31.744-10.752l-305.152 0q-20.48 0-30.72 10.752t-10.24 25.088 10.24 24.576 29.696 10.24l309.248 0zM924.672 577.536q20.48 0 29.696-10.24t9.216-24.576q0-15.36-8.704-25.6t-29.184-10.24l-313.344 0q-20.48 0-29.696 10.24t-9.216 25.6q0 14.336 8.704 24.576t29.184 10.24l313.344 0zM925.696 447.488q15.36 0 26.624-10.24t11.264-24.576-11.264-23.04-26.624-8.704l-207.872 0q-15.36 0-26.112 8.704t-10.752 23.04 10.752 24.576 26.112 10.24l207.872 0z","p-id":"9557"},null,-1)];function sf(e,t){return i.openBlock(),i.createElementBlock("svg",of,af)}const a0=He(nf,[["render",sf]]),cf={},lf={t:"1698719360533",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"15490",width:"200",height:"200"},ff=[i.createElementVNode("path",{d:"M960 704h-63.616v-167.392a32 32 0 0 0-32-32H544V416h160a32 32 0 0 0 32-32V96a32 32 0 0 0-32-32H320a32 32 0 0 0-32 32v288a32 32 0 0 0 32 32h160v88.608H161.984a32 32 0 0 0-32 31.968L129.792 704H64a32 32 0 0 0-32 32v192a32 32 0 0 0 32 32h192a32 32 0 0 0 32-32v-192a32 32 0 0 0-32-32H193.792l0.16-135.392H480V704h-64a32 32 0 0 0-32 32v192a32 32 0 0 0 32 32h192a32 32 0 0 0 32-32v-192a32 32 0 0 0-32-32h-64v-135.392h288.384V704H768a32 32 0 0 0-32 32v192a32 32 0 0 0 32 32h192a32 32 0 0 0 32-32v-192a32 32 0 0 0-32-32zM352 128h320v224H352V128zM224 896H96v-128h128v128z m352 0h-128v-128h128v128z m352 0h-128v-128h128v128z","p-id":"15491"},null,-1)];function uf(e,t){return i.openBlock(),i.createElementBlock("svg",lf,ff)}const Zt=He(cf,[["render",uf]]),Si={list:{type:Array,default:()=>[]},handList:{type:Array,default:()=>[]},multiple:{type:Boolean,default:!0},max:{type:Number,default:0},fixPropOpt:{type:Object,default:()=>{}},height:{type:String,default:"404px"}},df={class:"left-pick-list"},hf={class:"post-view-list"},pf=["title"],xf={class:"ik-picker-single"},gf=["title"],bf=i.defineComponent({__name:"PostList",props:Si,emits:["change","check"],setup(e,{emit:t}){var h,d;const r=e,n=i.computed(()=>{var x,m;return((x=r.handList)==null?void 0:x.length)===((m=r.list)==null?void 0:m.length)}),o=i.computed(()=>{var p,v,F,_;const x=(p=r.handList)==null?void 0:p.length,m=(v=r.list)==null?void 0:v.length;return r.multiple?a.value=r.handList.map(g=>g[r.fixPropOpt.id]):l.value=(_=(F=r.handList)==null?void 0:F[0])==null?void 0:_[r.fixPropOpt.id],x>0&&x<m}),a=i.ref(r.handList.map(x=>x[r.fixPropOpt.id])),l=i.ref((d=(h=r.handList)==null?void 0:h[0])==null?void 0:d[r.fixPropOpt.id]),c=t,f=x=>{const m=x?r.list.map(p=>p[r.fixPropOpt.id]):[];c("change",m,x?r.list:[])},s=x=>{c("change",x,r.list)},u=x=>{c("change",x,r.list)};return(x,m)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createCommentVNode(" 遍历list多选 "),i.createElementVNode("div",df,[x.multiple?(i.openBlock(),i.createBlock(i.unref(ae.ElCheckbox),{key:0,modelValue:n.value,"onUpdate:modelValue":m[0]||(m[0]=p=>n.value=p),indeterminate:o.value,onChange:f},{default:i.withCtx(()=>[i.createTextVNode("全选")]),_:1},8,["modelValue","indeterminate"])):i.createCommentVNode("v-if",!0),i.createElementVNode("ul",hf,[x.multiple?(i.openBlock(),i.createBlock(i.unref(ae.ElCheckboxGroup),{key:0,modelValue:a.value,"onUpdate:modelValue":m[1]||(m[1]=p=>a.value=p),onChange:s},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(x.list,p=>(i.openBlock(),i.createElementBlock("li",{key:p[r.fixPropOpt.id]},[i.createVNode(i.unref(ae.ElCheckbox),{label:p[r.fixPropOpt.id]},{default:i.withCtx(()=>[i.createVNode(a0),i.createElementVNode("p",{title:p[r.fixPropOpt.name]},i.toDisplayString(p[r.fixPropOpt.name]),9,pf)]),_:2},1032,["label"])]))),128))]),_:1},8,["modelValue"])):(i.openBlock(),i.createBlock(i.unref(ae.ElRadioGroup),{key:1,isIndeterminate:o.value,modelValue:l.value,"onUpdate:modelValue":m[2]||(m[2]=p=>l.value=p),onChange:u},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(x.list,p=>(i.openBlock(),i.createElementBlock("li",{class:"w-full",key:p[r.fixPropOpt.id]},[i.createVNode(i.unref(ae.ElRadio),{label:p[r.fixPropOpt.id]},{default:i.withCtx(()=>[i.createElementVNode("div",xf,[i.createVNode(a0),i.createElementVNode("p",{title:p[r.fixPropOpt.name]},i.toDisplayString(p[r.fixPropOpt.name]),9,gf)])]),_:2},1032,["label"])]))),128))]),_:1},8,["isIndeterminate","modelValue"]))])])],2112))}}),hd="",vf=He(bf,[["__scopeId","data-v-a87521f6"]]),mf={class:"left-pick-list"},yf={class:"role-view-list"},Cf=["title"],Bf={class:"ik-picker-single"},Ef=["title"],_f=i.defineComponent({__name:"RoleList",props:Si,emits:["change","check"],setup(e,{emit:t}){var h,d;const r=e,n=i.computed(()=>{var x,m;return((x=r.handList)==null?void 0:x.length)===((m=r.list)==null?void 0:m.length)}),o=i.computed(()=>{var p,v,F,_;const x=(p=r.handList)==null?void 0:p.length,m=(v=r.list)==null?void 0:v.length;return r.multiple?a.value=r.handList.map(g=>g[r.fixPropOpt.id]):l.value=(_=(F=r.handList)==null?void 0:F[0])==null?void 0:_[r.fixPropOpt.id],x>0&&x<m}),a=i.ref(r.handList.map(x=>x[r.fixPropOpt.id])),l=i.ref((d=(h=r.handList)==null?void 0:h[0])==null?void 0:d[r.fixPropOpt.id]),c=t,f=x=>{const m=x?r.list.map(p=>p[r.fixPropOpt.id]):[];c("change",m,x?r.list:[])},s=x=>{c("change",x,r.list)},u=x=>{c("change",x,r.list)};return(x,m)=>(i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createCommentVNode(" 遍历list多选 "),i.createElementVNode("div",mf,[x.multiple?(i.openBlock(),i.createBlock(i.unref(ae.ElCheckbox),{key:0,modelValue:n.value,"onUpdate:modelValue":m[0]||(m[0]=p=>n.value=p),indeterminate:o.value,onChange:f},{default:i.withCtx(()=>[i.createTextVNode("全选")]),_:1},8,["modelValue","indeterminate"])):i.createCommentVNode("v-if",!0),i.createElementVNode("ul",yf,[x.multiple?(i.openBlock(),i.createBlock(i.unref(ae.ElCheckboxGroup),{key:0,modelValue:a.value,"onUpdate:modelValue":m[1]||(m[1]=p=>a.value=p),onChange:s},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(x.list,p=>(i.openBlock(),i.createElementBlock("li",{key:p[x.fixPropOpt.id]},[i.createVNode(i.unref(ae.ElCheckbox),{label:p[x.fixPropOpt.id],value:p[x.fixPropOpt.id],disabled:p.disabled},{default:i.withCtx(()=>[i.createVNode(Rt),i.createElementVNode("p",{title:p[x.fixPropOpt.name]},i.toDisplayString(p[x.fixPropOpt.name]),9,Cf)]),_:2},1032,["label","value","disabled"])]))),128))]),_:1},8,["modelValue"])):(i.openBlock(),i.createBlock(i.unref(ae.ElRadioGroup),{key:1,indeterminate:o.value,modelValue:l.value,"onUpdate:modelValue":m[2]||(m[2]=p=>l.value=p),onChange:u},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(x.list,p=>(i.openBlock(),i.createElementBlock("li",{class:"w-full",key:p[x.fixPropOpt.id]},[i.createVNode(i.unref(ae.ElRadio),{label:p[x.fixPropOpt.id],value:p[x.fixPropOpt.id],disabled:p.disabled},{default:i.withCtx(()=>[i.createElementVNode("div",Bf,[i.createVNode(Rt),i.createElementVNode("p",{title:p[x.fixPropOpt.name]},i.toDisplayString(p[x.fixPropOpt.name]),9,Ef)])]),_:2},1032,["label","value","disabled"])]))),128))]),_:1},8,["indeterminate","modelValue"]))])])],2112))}}),pd="",wf=He(_f,[["__scopeId","data-v-a51e0920"]]);var je=(e=>(e.org="organization",e.dep="dep",e.user="user",e.role="role",e.post="post",e.dep_user="dep_user",e))(je||{}),Qt=(e=>(e.group="group",e.role="role",e.post="post",e))(Qt||{});const wt={animation:200,group:"gl",disabled:!1,ghostClass:"ghost",sort:!0,delay:100,showIcon:!0,itemStyle:{radius:25,bottom:8,background:"#0000"}},Af={topLink:{type:Boolean,default:!0},children:{type:Boolean,default:!0},modelValue:{type:Array,default:()=>[]},data:{type:Array,default:()=>[]},pid:{type:String,default:""},orgPid:{type:String,default:"root"},org:{type:Object,default:()=>null},immediate:{type:Boolean,default:!1},show:{type:Boolean,default:!1,required:!0},width:{type:String,default:"685px"},height:{type:String,default:"580px"},title:{type:String,default:"选择人员"},organizationList:{type:Array,default:()=>[]},depList:{type:Array,default:()=>[]},userList:{type:Array,default:()=>[]},roleList:{type:Array,default:()=>[]},postList:{type:Array,default:()=>[]},multiple:{type:Boolean,default:!0},max:{type:Number,default:0},tabs:{type:Array,validator:e=>{if(e===void 0)return!0;if(Array.isArray(e)){if(!(e!=null&&e.length))return!1}else return console.error("IkingPicker参数错误:tabs必须是Array类型"),!1;return!0},default:()=>["group","role","post"]},showDep:{type:Boolean,default:!0},chooseType:{type:Array,default:()=>["dep"]},api:{type:Object,default:()=>({methods:"post",headers:{"Content-Type":"application/json;charset=UTF-8",Authorization:"Bearer iking"},url:`${location.origin}${location.pathname}/serve/component/pick/mix`,param:null,paramKey:"type"})},typeOption:{type:Object,default:()=>{}},propOption:{type:Object,default:()=>null},search:{type:Boolean,default:!0},lazy:{type:Boolean,default:!0},imageBaseUrl:{type:String,default:""},cache:{type:Boolean,default:!0},placeholder:{type:String,default:"模糊搜索组织、人员、角色、岗位"},emptyText:{type:String,default:"暂无数据"}},Ni=e=>{const t=window.location.search;return new URLSearchParams(t).get(e)},kf=e=>{const t=Wt.local.getItem("x_domain");t&&(e["X-DOMAIN"]=t)},Df=e=>{var n;const t=Ni("domain");if(t){e["X-DOMAIN"]=t;const o=Ni("code");t==="APPLICATION"&&(e["X-APP"]=o)}else kf(e);const r=(n=Wt.local.getItem("tenant"))==null?void 0:n.code;r&&(e["X-TENANT"]=r)},Ff=(e,t)=>{const r=i.ref([]),n=async(a,l,c)=>{var R,A;const{url:f,methods:s,headers:u,param:h}=e.value||{},d={parentOrgId:a,...h||{},parentDepartmentId:l||"",name:c||""},x={method:s,url:f,headers:{"Content-Type":"application/json;charset=UTF-8",...u},data:JSON.stringify(d)};Df(x.headers);const m=await zi(x),{success:p,data:v}=m.data;if(!p)return{depList:[],roleList:[],postList:[],userList:[],organizationList:[],rootOrganization:{},rootDepartment:{}};const{departments:F,roles:_,posts:g,users:b,organizations:E,rootOrganization:B,rootDepartment:y}=v,k=B||y;return r.value[0]=t.org?{...t.org,id:t.elementId,elementType:(A=(R=t.org)==null?void 0:R.elementType)==null?void 0:A.toLocaleUpperCase()}:{...k,id:k.elementId},{depList:Le.cloneDeep(F),roleList:Le.cloneDeep(_),postList:Le.cloneDeep(g),userList:Le.cloneDeep(b),organizationList:Le.cloneDeep(E),rootOrganization:B,rootDepartment:y}};return{handData:n,handSetChild:(a,l)=>{n(a==null?void 0:a.elementId,l)},bannerList:r}},Sf={shadow:"hover",class:"sel-list"},Nf={key:0},If={key:0,class:"check-all"},Tf={key:0,class:"view-list"},Of={key:0,class:"filter-user"},Rf=["title"],Lf={class:"filter-user"},Vf=["title"],$f={key:2,class:"next-child"},Pf={class:"filter-user"},zf=["title"],Mf={key:1,class:"filter-user"},Hf=["title"],qf={key:2,class:"next-child"},Uf={class:"text-over-flow"},Wf=["title"],jf=["title"],Yf={key:2,class:"next-child"},Kf={key:1,class:"empty"},Gf=i.createElementVNode("div",{class:"split-div"},null,-1),Xf={class:"choose-list"},Zf={class:"choose-item"},Qf=i.createElementVNode("div",null,"已选",-1),Jf={class:"dialog-footer"},eu=i.defineComponent({__name:"picker",props:Af,emits:["handChild","update:show","update:modelValue","ok","search"],setup(e,{expose:t,emit:r}){i.useCssVars(U=>({a67960c8:Pe.value}));const n=e,o=i.ref(""),a=i.ref(""),l=i.ref(""),c=i.ref([]),f=i.ref([]),s=i.ref([]),u=i.ref([]),h=i.ref([]),d=i.ref(!1),x=n.imageBaseUrl||`${location.origin}/server/oss/download?fileUrl=`,m=U=>U?U.startsWith("http")?U:`${x}${U}`:"";i.watch(()=>n.api,()=>{n.show&&A("")});const p=i.computed(()=>({name:"name",type:"type",id:"id",avatar:"avatar",...n.propOption})),v=i.computed(()=>({dep:"DEPT",user:"USER",role:"ROLE",post:"POST",organization:"ORGANIZATION",...n.typeOption})),F=i.ref([]),_=Ff(i.toRef(n,"api"),n),g=_.handData,b=_.bannerList;n.immediate&&g(l.value,a.value,o.value);const E=U=>(U.forEach(Z=>{var $,se;Z.disabled=((se=($=n.modelValue)==null?void 0:$.find(ye=>ye[p.value.id]===Z[p.value.id]))==null?void 0:se.disabled)||!1}),U),B=async()=>{var U,Z,$,se,ye,Xe,Je,dt,Lt;d.value=!0;try{if((U=n.depList)!=null&&U.length||(Z=n.userList)!=null&&Z.length||($=n.roleList)!=null&&$.length||(se=n.postList)!=null&&se.length){c.value=(ye=n.userList)==null?void 0:ye.filter(Ue=>Ue[p.value.name].includes(o.value)),f.value=(Xe=n.depList)==null?void 0:Xe.filter(Ue=>Ue[p.value.name].includes(o.value)),s.value=(Je=n.roleList)==null?void 0:Je.filter(Ue=>Ue[p.value.name].includes(o.value)),u.value=(dt=n.postList)==null?void 0:dt.filter(Ue=>Ue[p.value.name].includes(o.value)),h.value=(Lt=n.organizationList)==null?void 0:Lt.filter(Ue=>Ue[p.value.name].includes(o.value)),z(),d.value=!1;return}const De=await g(l.value,a.value,o.value);try{c.value=E((De==null?void 0:De.userList)||[]),f.value=E((De==null?void 0:De.depList)||[]),s.value=E((De==null?void 0:De.roleList)||[]),u.value=E((De==null?void 0:De.postList)||[]),h.value=E((De==null?void 0:De.organizationList)||[])}catch(Ue){d.value=!1,console.info("error: ",Ue)}z(),d.value=!1}catch{d.value=!1}},y=i.reactive({org:new Map,dep:new Map,user:new Map,role:new Map,post:new Map,trans:[],single:""}),k=i.reactive({indeterminate:!1,checkAll:0}),R=U=>y.org.has(U)||y.dep.has(U)||y.user.has(U)||y.role.has(U)||y.post.has(U),A=Ac.debounce(B,300),D=i.computed(()=>{const U=Array.from(y.org.values()),Z=Array.from(y.dep.values()),$=Array.from(y.role.values()),se=Array.from(y.user.values()),ye=Array.from(y.post.values());return F.value=[...U,...Z,...$,...ye,...se],{list:[...U,...Z,...$,...se,...ye],org:{list:U,len:U.length,deps:U},dep:{list:Z,len:Z.length,deps:Z},role:{list:$,len:$.length},user:{list:se,len:se.length},post:{list:ye,len:ye.length}}}),I=i.computed(()=>{const U=n.chooseType.map($=>$.toLocaleLowerCase());let Z=[...U];return U.includes("dep")&&(Z=[...Z,"organization","dept"]),U.includes("dep_user")&&(Z=[...Z,"user"]),Z}),P=i.computed(()=>I.value.includes(je.dep)&&!I.value.includes(je.user)&&!I.value.includes(je.org)),W=i.computed(()=>I.value.includes(je.user)&&!I.value.includes(je.dep)&&!I.value.includes(je.org)),H=i.computed(()=>I.value.includes(je.org)&&!I.value.includes(je.dep)&&!I.value.includes(je.user)),q=i.computed(()=>!b.value.length),X=i.computed(()=>!n.max||D.value.list.length<n.max),K=U=>[v.value.dep,v.value.organization].includes(U[p.value.type])?U.hasOwnProperty("disabled"):!1,ee=i.ref([]),ne=U=>{ee.value=U,ee.value.forEach(Z=>{Z.readonly=Z==null?void 0:Z.disabled})},M=r,N=i.ref(!1),z=(U=!1)=>{var $;const Z=($=n==null?void 0:n.userList)!=null&&$.length?Le.cloneDeep([...n==null?void 0:n.organizationList,...n==null?void 0:n.userList,...n==null?void 0:n.depList]):[...h.value,...f.value,...c.value];return!U&&ne(Z),Z};i.watch(()=>n.show,async U=>{var Z;if(N.value=U,U){a.value=n.pid,l.value=((Z=n.org)==null?void 0:Z.elementId)||n.orgPid,!n.userList.length&&!n.depList.length&&!n.roleList.length&&!n.postList.length&&!n.organizationList.length?await B():(c.value=n.userList,f.value=n.depList,s.value=n.roleList,u.value=n.postList,h.value=n.organizationList),y.trans=[],k.checkAll=0,k.indeterminate=!1;const $=z(!0);for(const ye of $)R(ye[p.value.id])&&y.trans.push(ye[p.value.id]);const se=$.length===y.trans.length;k.indeterminate=!!($.length&&!se),k.checkAll=Number($.length&&se),i.nextTick(()=>{var ye;(ye=n.modelValue)!=null&&ye.length?n.modelValue.forEach(Xe=>{oe(Xe),n.multiple?y.trans.push(Xe[p.value.id]):y.single=Xe[p.value.id]}):Fe()})}else Fe()}),i.watchEffect(()=>{let U;if(P.value||W.value){const $=c.value.length,se=f.value.length;U=P.value?se:W.value?$:$+$}else U=ee.value.length;const Z=y.trans.length;k.indeterminate=y.trans.length?Z!==U:!1,k.checkAll=+(U!==0&&Z===U)});const V=U=>{if(U){if(y.single="",U[p.value.id]){const Z=y.trans.findIndex($=>$===U[p.value.id]);Z!==-1&&y.trans.splice(Z,1)}switch(U[p.value.type]){case v.value.dep:return y.dep.delete(U[p.value.id]);case v.value.user:return y.user.delete(U[p.value.id]);case v.value.role:return y.role.delete(U[p.value.id]);case v.value.post:return y.post.delete(U[p.value.id]);case v.value.organization:return y.org.delete(U[p.value.id]);default:return}}},te=U=>{V(U)},oe=U=>{if(!R(U[p.value.id])){const Z={...U};switch(U[p.value.type]){case v.value.dep:return y.dep.set(U[p.value.id],Z);case v.value.user:return y.user.set(U[p.value.id],Z);case v.value.role:return y.role.set(U[p.value.id],Z);case v.value.post:return y.post.set(U[p.value.id],Z);case v.value.organization:return y.org.set(U[p.value.id],Z);default:return}}};i.watch(()=>y.trans,U=>{if(!U.length)ee.value.forEach(Z=>{Z.disabled=!1;try{n.multiple&&V(Z)}catch{}});else{const Z=ee.value.filter(se=>!U.includes(se[p.value.id]));for(const se of Z)se.disabled=!1,n.multiple&&V(se);const $=ee.value.filter(se=>U.includes(se[p.value.id]));for(const se of $)se.disabled=K(se),oe(se)}},{deep:!0}),i.watch(()=>y.single,U=>{if(U){const Z=ee.value.find($=>$[p.value.id]===U);Z&&(y.dep.clear(),y.user.clear(),y.role.clear(),y.post.clear(),y.org.clear(),y.trans=[],i.nextTick(()=>{oe(Z)}))}});const de=U=>{if(U){let Z=[];if(I.value.includes("dep")||I.value.includes("dep_user")){const $=ee.value.filter(se=>se[p.value.type].toLocaleUpperCase()===v.value[je.dep].toLocaleUpperCase());Z=[...Z,...$]}if(I.value.includes("user")||I.value.includes("dep_user")){const $=ee.value.filter(se=>se[p.value.type].toLocaleUpperCase()===v.value[je.user].toLocaleUpperCase());Z=[...Z,...$]}if(I.value.includes("organization")){const $=ee.value.filter(se=>se[p.value.type].toLocaleUpperCase()===v.value[je.org].toLocaleUpperCase());Z=[...Z,...$]}Z.forEach($=>{!y.trans.includes($[p.value.id])&&y.trans.push($[p.value.id])})}else ee.value.forEach(Z=>{const $=y.trans.findIndex(se=>se===Z[p.value.id]);$>=0&&y.trans.splice($,1)})},ie=U=>{U[p.value.type]===v.value.organization?(l.value=U==null?void 0:U.elementId,a.value=""):(l.value="",a.value=U==null?void 0:U.elementId),B(),b.value.push(U)},ge=()=>{const U=b.value.length-2,Z=U<0?0:U,$=b.value[Z];$[p.value.type]===v.value.organization?(l.value=U<0?"root":($==null?void 0:$.elementId)||($==null?void 0:$.id),a.value=""):(l.value="",a.value=U<0?"":($==null?void 0:$.elementId)||($==null?void 0:$.id)),B(),b.value.pop()},fe=i.computed(()=>b.value.length),ke=(U,Z)=>{!Z&&!n.topLink||Z!==fe.value-1&&(U[p.value.type]===v.value.organization?(l.value=U==null?void 0:U.elementId,a.value=""):(l.value="",a.value=U==null?void 0:U.elementId),B(),b.value.splice(Z+1))},Ve=i.computed(()=>n.chooseType.includes("role")&&n.chooseType.length===1),we=i.computed(()=>n.chooseType.includes("post")&&n.chooseType.length===1),Ae=i.ref(n.tabs[0]),_e=i.ref(n.tabs[0]);i.watchEffect(()=>(_e.value=Ve.value?n.tabs[1]:we.value?n.tabs[2]:Ae.value,_e.value));const Fe=()=>{var U;y.dep.clear(),y.user.clear(),y.role.clear(),y.post.clear(),y.org.clear(),y.trans=[],at.value=[],Qe.value=[],Ae.value=n.tabs[0],_e.value=n.tabs[0],o.value="",a.value=n.pid,l.value=((U=n.org)==null?void 0:U.elementId)||n.orgPid,y.single="",F.value=[]},$e=()=>{var U;M("ok",Le.cloneDeep({...D.value,sort:F.value})),M("update:modelValue",Le.cloneDeep(((U=D.value)==null?void 0:U.list)||[])),M("update:show",!1),Fe()},Ie=()=>{M("update:show",!1),Fe()};t({handClear:Fe,handRomeve:te,handDelete:V});const it=i.computed(()=>{const U=I.value;return!!((U.includes("post")||U.includes("role"))&&U.length>1)}),Ze=i.computed(()=>[{label:"group",name:"组织架构"},{label:"role",name:"角色列表"},{label:"post",name:"岗位列表"}].filter(U=>n.tabs.includes(U.label))),Me=i.computed(()=>`${(typeof n.width=="string"?Number.parseInt(n.width):n.width)/2-30}px`),Pe=i.computed(()=>`${typeof n.height=="string"?Number.parseInt(n.height):n.height}px`),Ge=()=>{n.multiple||(y.post.clear(),y.role.clear(),y.user.clear(),y.dep.clear(),y.single="")},at=i.ref([]),Ft=(U,Z)=>{n.multiple||(y.single="");const $=n.multiple?U:[U];if(!$.length){y.role.clear();return}Ge(),Z.forEach(se=>{$!=null&&$.includes(se[p.value.id])?oe(se):V(se)})};i.watch(()=>D.value.role.len,U=>{at.value=Le.cloneDeep(D.value.role.list)});const Qe=i.ref([]),ut=(U,Z)=>{n.multiple||(y.single="");const $=n.multiple?U:[U];if(!$.length){y.post.clear();return}Ge(),Z.forEach(se=>{$!=null&&$.includes(se[p.value.id])?oe(se):V(se)})};return i.watch(()=>D.value.post.len,U=>{Qe.value=Le.cloneDeep(D.value.post.list)}),i.watch(()=>o.value,U=>{A("")}),(U,Z)=>(i.openBlock(),i.createBlock(i.unref(ae.ElDialog),{modelValue:N.value,"onUpdate:modelValue":Z[6]||(Z[6]=$=>N.value=$),title:U.title,"destroy-on-close":"","close-on-click-modal":!1,"close-on-click-escape":!1,draggable:"","align-center":"",width:typeof U.width=="string"?U.width:`${U.width}%`,class:"p_p_picker-dialog","modal-class":"p_p_picker-dialog-modal",onClose:Ie},{footer:i.withCtx(()=>[i.createElementVNode("span",Jf,[i.createVNode(i.unref(ae.ElButton),{onClick:i.withModifiers(Ie,["stop"])},{default:i.withCtx(()=>[i.createTextVNode("取消")]),_:1}),i.createVNode(i.unref(ae.ElButton),{type:"primary",onClick:i.withModifiers($e,["stop"])},{default:i.withCtx(()=>[i.createTextVNode(" 确定 ")]),_:1})])]),default:i.withCtx(()=>[i.createElementVNode("div",{class:"dep-use-picker",style:i.normalizeStyle({height:Pe.value})},[i.createElementVNode("div",Sf,[i.createElementVNode("div",null,[i.createVNode(i.unref(ae.ElInput),{modelValue:o.value,"onUpdate:modelValue":Z[0]||(Z[0]=$=>o.value=$),clearable:"",placeholder:U.placeholder,"prefix-icon":Yl,style:i.normalizeStyle({width:Me.value})},null,8,["modelValue","placeholder","style"]),it.value?(i.openBlock(),i.createBlock(i.unref(ae.ElRadioGroup),{key:0,modelValue:Ae.value,"onUpdate:modelValue":Z[1]||(Z[1]=$=>Ae.value=$),class:"ik-picker-tab",style:i.normalizeStyle({width:Me.value})},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(Ze.value,$=>(i.openBlock(),i.createBlock(i.unref(ae.ElRadioButton),{label:$.label,key:$.label},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString($.name),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue","style"])):i.createCommentVNode("v-if",!0)]),i.createCommentVNode(" 过滤 "),_e.value===i.unref(Qt).group?(i.openBlock(),i.createElementBlock("div",Nf,[i.createCommentVNode(" 面包屑 全选 "),i.createVNode(i.unref(ae.ElBreadcrumb),{separator:">",class:i.normalizeClass(["banner",{"top-unlink":!U.topLink}])},{default:i.withCtx(()=>[fe.value?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:0},i.renderList(i.unref(b),($,se)=>(i.openBlock(),i.createBlock(i.unref(ae.ElBreadcrumbItem),{key:$[p.value.id],onClick:i.withModifiers(ye=>ke($,se),["stop"])},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString($[p.value.name]),1)]),_:2},1032,["onClick"]))),128)):i.createCommentVNode("v-if",!0)]),_:1},8,["class"]),i.createCommentVNode(" 全选框 "),U.multiple?(i.openBlock(),i.createElementBlock("div",If,[i.createVNode(i.unref(ae.ElCheckbox),{modelValue:k.checkAll,"onUpdate:modelValue":Z[2]||(Z[2]=$=>k.checkAll=$),indeterminate:k.indeterminate,"true-label":1,"false-label":0,disabled:!U.multiple,onChange:de,onInput:de},{default:i.withCtx(()=>[i.createTextVNode("全选")]),_:1},8,["modelValue","indeterminate","disabled"]),fe.value>1?i.withDirectives((i.openBlock(),i.createBlock(i.unref(ae.ElButton),{key:0,link:"",type:"primary",onClick:i.withModifiers(ge,["stop"])},{default:i.withCtx(()=>[i.createTextVNode("上一级")]),_:1},512)),[[i.vShow,!q.value]]):i.createCommentVNode("v-if",!0)])):i.createCommentVNode("v-if",!0)])):i.createCommentVNode("v-if",!0),i.createCommentVNode(" 左侧列表 "),i.createCommentVNode(" 部门&人员 "),_e.value===i.unref(Qt).group?(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[ee.value.length?i.withDirectives((i.openBlock(),i.createElementBlock("ul",Tf,[i.createCommentVNode(" +++++++++++++++++++++++ 多选 ++++++++++++++++++++++ "),U.multiple?(i.openBlock(),i.createBlock(i.unref(ae.ElCheckboxGroup),{key:0,modelValue:y.trans,"onUpdate:modelValue":Z[3]||(Z[3]=$=>y.trans=$)},{default:i.withCtx(()=>[i.createCommentVNode(" <template> "),(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(h.value,$=>(i.openBlock(),i.createElementBlock("li",{key:$[p.value.id]},[I.value.includes(i.unref(je).org)?(i.openBlock(),i.createBlock(i.unref(ae.ElCheckbox),{key:1,label:$[p.value.id],disabled:!X.value||($==null?void 0:$.readonly)},{default:i.withCtx(()=>[i.createElementVNode("div",Lf,[i.createCommentVNode(" 部门icon前缀 "),i.createVNode(Zt),i.createElementVNode("p",{title:$[p.value.name]},i.toDisplayString($[p.value.name]),9,Vf)])]),_:2},1032,["label","disabled"])):(i.openBlock(),i.createElementBlock("div",Of,[i.createCommentVNode(" 部门icon前缀 "),i.createVNode(Zt),i.createElementVNode("p",{title:$[p.value.name]},i.toDisplayString($[p.value.name]),9,Rf)])),U.children?(i.openBlock(),i.createElementBlock("div",$f,[[v.value.organization,v.value.dep,v.value.role].includes($[p.value.type])?(i.openBlock(),i.createBlock(i.unref(ae.ElButton),{key:0,link:"",type:"primary",onClick:i.withModifiers(se=>ie($),["stop"]),disabled:$.disabled},{icon:i.withCtx(()=>[i.createVNode(i0)]),default:i.withCtx(()=>[i.createTextVNode(" 下级 ")]),_:2},1032,["onClick","disabled"])):i.createCommentVNode("v-if",!0)])):i.createCommentVNode("v-if",!0)]))),128)),i.createCommentVNode(" </template> "),(!W.value||U.showDep)&&!H.value?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:0},i.renderList(f.value,$=>(i.openBlock(),i.createElementBlock("li",{key:$[p.value.id]},[U.chooseType.includes(i.unref(je).dep)||U.chooseType.includes(i.unref(je).dep_user)?(i.openBlock(),i.createBlock(i.unref(ae.ElCheckbox),{key:0,label:$[p.value.id],disabled:!X.value||($==null?void 0:$.readonly)},{default:i.withCtx(()=>[i.createElementVNode("div",Pf,[i.createCommentVNode(" 部门icon前缀 "),i.createVNode(Xt),i.createElementVNode("p",{title:$[p.value.name]},i.toDisplayString($[p.value.name]),9,zf)])]),_:2},1032,["label","disabled"])):(i.openBlock(),i.createElementBlock("div",Mf,[i.createCommentVNode(" 部门icon前缀 "),i.createVNode(Xt),i.createElementVNode("p",{title:$[p.value.name]},i.toDisplayString($[p.value.name]),9,Hf)])),U.children?(i.openBlock(),i.createElementBlock("div",qf,[[v.value.dep,v.value.role].includes($[p.value.type])?(i.openBlock(),i.createBlock(i.unref(ae.ElButton),{key:0,link:"",type:"primary",onClick:i.withModifiers(se=>ie($),["stop"]),disabled:$.disabled},{icon:i.withCtx(()=>[i.createVNode(i0)]),default:i.withCtx(()=>[i.createTextVNode(" 下级 ")]),_:2},1032,["onClick","disabled"])):i.createCommentVNode("v-if",!0)])):i.createCommentVNode("v-if",!0)]))),128)):i.createCommentVNode("v-if",!0),U.chooseType.includes("user")||U.chooseType.includes("dep_user")?(i.openBlock(!0),i.createElementBlock(i.Fragment,{key:1},i.renderList(c.value,$=>(i.openBlock(),i.createElementBlock("li",{key:$[p.value.id]},[i.createVNode(i.unref(ae.ElCheckbox),{label:$[p.value.id],disabled:!X.value||($==null?void 0:$.readonly)},{default:i.withCtx(()=>{var se,ye;return[i.createCommentVNode(" icon前缀 "),v.value.dep===$[p.value.type]?(i.openBlock(),i.createBlock(Rt,{key:0})):v.value.user===$[p.value.type]?(i.openBlock(),i.createBlock(i.unref(ae.ElAvatar),{key:1,size:30,src:m((se=p.value)!=null&&se.avatar?$[(ye=p.value)==null?void 0:ye.avatar]:""),icon:Fr},null,8,["src"])):i.createCommentVNode("v-if",!0),i.createElementVNode("span",Uf,i.toDisplayString($[p.value.name]),1)]}),_:2},1032,["label","disabled"])]))),128)):i.createCommentVNode("v-if",!0)]),_:1},8,["modelValue"])):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createCommentVNode(" +++++++++++++++++++++++ 单选 ++++++++++++++++++++++ "),i.createVNode(i.unref(ae.ElRadioGroup),{modelValue:y.single,"onUpdate:modelValue":Z[4]||(Z[4]=$=>y.single=$)},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(ee.value,$=>{var se,ye,Xe;return i.openBlock(),i.createElementBlock("li",{key:$[p.value.id]},[I.value.includes((se=$[p.value.type])==null?void 0:se.toLocaleLowerCase())?(i.openBlock(),i.createBlock(i.unref(ae.ElRadio),{key:0,label:$[p.value.id],class:i.normalizeClass({readonly:![v.value.organization,v.value.dep,v.value.user].includes($[p.value.type]),"w-full":!0}),disabled:$.readonly},{default:i.withCtx(()=>{var Je,dt;return[i.createCommentVNode(" 部门icon前缀 "),v.value.organization===$[p.value.type]?(i.openBlock(),i.createBlock(Zt,{key:0})):v.value.dep===$[p.value.type]?(i.openBlock(),i.createBlock(Xt,{key:1})):v.value.role===$[p.value.type]?(i.openBlock(),i.createBlock(Rt,{key:2})):v.value.user===$[p.value.type]?(i.openBlock(),i.createBlock(i.unref(ae.ElAvatar),{key:3,size:30,src:m((Je=p.value)!=null&&Je.avatar?$[(dt=p.value)==null?void 0:dt.avatar]:""),icon:Fr},null,8,["src"])):i.createCommentVNode("v-if",!0),i.createElementVNode("span",{class:"text-over-flow",title:$[p.value.name]},i.toDisplayString($[p.value.name]),9,Wf)]}),_:2},1032,["label","class","disabled"])):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[v.value.organization===$[p.value.type]?(i.openBlock(),i.createBlock(Zt,{key:0})):v.value.dep===$[p.value.type]?(i.openBlock(),i.createBlock(Xt,{key:1})):v.value.role===$[p.value.type]?(i.openBlock(),i.createBlock(Rt,{key:2})):v.value.user===$[p.value.type]?(i.openBlock(),i.createBlock(i.unref(ae.ElAvatar),{key:3,size:30,src:m((ye=p.value)!=null&&ye.avatar?$[(Xe=p.value)==null?void 0:Xe.avatar]:""),icon:Fr},null,8,["src"])):i.createCommentVNode("v-if",!0),i.createElementVNode("span",{class:"text-over-flow",title:$[p.value.name]},i.toDisplayString($[p.value.name]),9,jf)],64)),U.children?(i.openBlock(),i.createElementBlock("div",Yf,[[v.value.organization,v.value.dep,v.value.role].includes($[p.value.type])?(i.openBlock(),i.createBlock(i.unref(ae.ElButton),{key:0,link:"",type:"primary",onClick:i.withModifiers(Je=>ie($),["stop"])},{icon:i.withCtx(()=>[i.createVNode(i0)]),default:i.withCtx(()=>[i.createTextVNode(" 下级 ")]),_:2},1032,["onClick"])):i.createCommentVNode("v-if",!0)])):i.createCommentVNode("v-if",!0)])}),128))]),_:1},8,["modelValue"])],2112))])),[[i.unref(ae.vLoading),d.value]]):(i.openBlock(),i.createElementBlock("div",Kf,i.toDisplayString(U.emptyText),1))],64)):_e.value===i.unref(Qt).role?(i.openBlock(),i.createElementBlock(i.Fragment,{key:2},[i.createCommentVNode(" 角色 "),i.withDirectives(i.createVNode(wf,{fixPropOpt:p.value,list:s.value,max:U.max,multiple:U.multiple,"hand-list":at.value,onChange:Ft},null,8,["fixPropOpt","list","max","multiple","hand-list"]),[[i.unref(ae.vLoading),d.value]])],64)):_e.value===i.unref(Qt).post?(i.openBlock(),i.createElementBlock(i.Fragment,{key:3},[i.createCommentVNode(" 岗位 "),i.withDirectives(i.createVNode(vf,{fixPropOpt:p.value,list:u.value,max:U.max,multiple:U.multiple,"hand-list":Qe.value,onChange:ut},null,8,["fixPropOpt","list","max","multiple","hand-list"]),[[i.unref(ae.vLoading),d.value]])],64)):i.createCommentVNode("v-if",!0)]),Gf,i.createCommentVNode(" 已选列表 "),i.createElementVNode("div",Xf,[i.createElementVNode("div",Zf,[Qf,i.createVNode(i.unref(ae.ElButton),{type:"primary",link:"",onClick:i.withModifiers(Fe,["stop"])},{default:i.withCtx(()=>[i.createTextVNode("清空")]),_:1})]),i.createCommentVNode(" 已选列表可拖拽 "),i.createVNode(i.unref(y0),{tag:"ul",name:"fade","item-key":"elementId",modelValue:F.value,"onUpdate:modelValue":Z[5]||(Z[5]=$=>F.value=$),style:i.normalizeStyle({height:`calc(${Pe.value} + 21px)`}),animation:i.unref(wt).animation,group:i.unref(wt).group,disabled:i.unref(wt).disabled,ghostClass:i.unref(wt).ghostClass,forceFallback:i.unref(wt).ghostClass},{item:i.withCtx(({element:$})=>[i.createVNode(i.Transition,{type:"transition",name:"flip-list"},{default:i.withCtx(()=>[i.createElementVNode("li",{class:i.normalizeClass(["list-group-item"]),style:i.normalizeStyle({borderRadius:`${i.unref(wt).itemStyle.radius}px`,marginBottom:`${i.unref(wt).itemStyle.bottom}px`,backgroundColor:`${i.unref(wt).itemStyle.background}`})},[i.createElementVNode("div",null,[i.createCommentVNode(" 部门icon前缀 "),v.value.organization===$[p.value.type]?(i.openBlock(),i.createBlock(Zt,{key:0})):i.createCommentVNode("v-if",!0),v.value.dep===$[p.value.type]?(i.openBlock(),i.createBlock(Xt,{key:1})):v.value.role===$[p.value.type]?(i.openBlock(),i.createBlock(Rt,{key:2})):v.value.post===$[p.value.type]?(i.openBlock(),i.createBlock(a0,{key:3})):v.value.user===$[p.value.type]?(i.openBlock(),i.createBlock(i.unref(ae.ElAvatar),{key:4,size:30,src:m(p.value.avatar?$[p.value.avatar]:""),icon:Fr},null,8,["src"])):i.createCommentVNode("v-if",!0),i.createElementVNode("span",null,i.toDisplayString($[p.value.name]),1)]),i.withDirectives(i.createVNode(Ql,{class:"close",onClick:i.withModifiers(se=>te($),["stop"])},null,8,["onClick"]),[[i.vShow,!($!=null&&$.readonly)]])],4)]),_:2},1024)]),_:1},8,["modelValue","style","animation","group","disabled","ghostClass","forceFallback"])])],4)]),_:1},8,["modelValue","title","width"]))}}),xd="",tu=Pt(eu),ru=(e=>(i.pushScopeId("data-v-b848b0c7"),e=e(),i.popScopeId(),e))(()=>i.createElementVNode("i",{class:"ik ik-shezhi"},null,-1)),nu={class:"check-right"},ou={class:"dialog-footer"},iu=i.defineComponent({__name:"IkBtnSetting",props:i.mergeModels({list:{type:Array,default:()=>[]},tab:{type:[String,Number],default:""},type:{type:String,default:"primary"},btnType:{type:String,default:"icon"},circle:{type:Boolean,default:!0},inline:{type:Boolean,default:!1},role:{type:String,default:""},config:{type:Object,default:()=>({t:e=>e,dialog:{l:"700px",sl:"600px"},path:"user_0",user:{id:"111"}})}},{modelValue:{type:Array,default:()=>[]},modelModifiers:{}}),emits:i.mergeModels(["sort"],["update:modelValue"]),setup(e,{emit:t}){const r=e,n=t,o=i.useModel(e,"modelValue"),{t:a,dialog:l,path:c,user:f}=r.config,s=i.computed(()=>`${f==null?void 0:f.id}_${c}${r.tab!==""?`_${r.tab}`:""}`),u=i.ref([]),h=i.ref([]),d=i.ref([]),x=new Map,m=i.ref(!1),p=i.computed(()=>{const y=h.value.length&&h.value.length!==r.list.length;return!y&&h.value.length&&(m.value=!0),!!y}),v=y=>{var R;const k=Le.cloneDeep(d.value);k==null||k.forEach(A=>{var D;if(!h.value.length)d.value=[];else if(!h.value.includes(A==null?void 0:A.key)){const I=(D=d.value)==null?void 0:D.findIndex(P=>P.key===A.key);I!==-1&&d.value.splice(I,1),A.show=!1,x.set(A.key,A)}}),h.value.forEach(A=>{var I;if(((I=d.value)==null?void 0:I.findIndex(P=>(P==null?void 0:P.key)===A))===-1){const P=x.get(A);P&&(P.show=!0,d.value.push(P))}}),(R=d.value)!=null&&R.length||(d.value=Le.cloneDeep(r.list)),y===!0&&(n("sort",Le.cloneDeep(d.value)),o.value=Le.cloneDeep(d.value))},F=y=>{if(y)h.value=r.list.map(k=>k.key);else{const k=r.list.find(R=>!R.key||R.label==="操作");h.value=k?[k.key]:[]}v()},_=()=>{const y=Wt.local.getItem(s.value);try{const k=Le.cloneDeep(r==null?void 0:r.list);if((!y||!(y!=null&&y.length))&&Wt.local.setItem(s.value,k.map(({show:R,type:A,key:D,label:I,width:P,minWidth:W,align:H})=>({show:R,key:D,type:A,label:I,width:P,minWidth:W,align:H}))),u.value=[...(k==null?void 0:k.map(R=>(x.set(R.key,R),{...R,show:R.show||!1})))||[]],y){const R=y.filter(A=>A.show).map(A=>A.key);h.value=[...R]}else{const R=u.value.filter(A=>A.show);h.value=R.map(A=>A.key)}v(!0)}catch(k){console.info("error: ",k)}};_(),i.watch(()=>r.list,()=>{_()},{deep:!0});const g=i.ref(!1),b=()=>{g.value=!0},E=y=>{d.value=y},B=()=>{g.value=!1,Wt.local.setItem(s.value,d.value.map(({show:y,key:k,label:R,value:A,width:D,minWidth:I,align:P})=>({show:y,key:k,label:R,value:A,width:D,minWidth:I,align:P}))),console.log("sortList ",d),n("sort",Le.cloneDeep(d.value)),o.value=Le.cloneDeep(d.value)};return(y,k)=>{const R=i.resolveComponent("el-button"),A=i.resolveComponent("el-checkbox"),D=i.resolveComponent("el-checkbox-group"),I=i.resolveComponent("el-dialog"),P=i.resolveDirective("role");return i.openBlock(),i.createElementBlock(i.Fragment,null,[e.btnType==="button"?i.withDirectives((i.openBlock(),i.createBlock(R,i.mergeProps({key:0},y.$attrs,{circle:e.circle,type:e.type,style:{minWidth:e.circle?"40px":"",minHeight:e.circle?"40px":""},onClick:b}),i.createSlots({icon:i.withCtx(()=>[ru]),_:2},[e.circle?void 0:{name:"default",fn:i.withCtx(()=>[i.createCommentVNode(' {{ t("action.setting") }} '),i.createTextVNode(" "+i.toDisplayString(i.unref(a)("设置")),1)]),key:"0"}]),1040,["circle","type","style"])),[[P,y.$props.role]]):i.createCommentVNode("v-if",!0),e.btnType==="icon"?i.withDirectives((i.openBlock(),i.createBlock(i.unref(gt),i.mergeProps({key:1,name:"iksvg_shezhi-daohang","show-bg":"",size:"default"},y.$attrs,{onClick:b}),null,16)),[[P,y.$props.role]]):i.createCommentVNode("v-if",!0),i.createVNode(I,{modelValue:g.value,"onUpdate:modelValue":k[3]||(k[3]=W=>g.value=W),draggable:"",width:e.inline?i.unref(l).l:i.unref(l).sl,"close-on-click-modal":!1,"close-on-press-escape":!1,title:"显示字段","append-to-body":"",onOpen:_},{footer:i.withCtx(()=>[i.createElementVNode("div",ou,[i.createVNode(R,{onClick:k[2]||(k[2]=W=>g.value=!1)},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(i.unref(a)("关闭"))+" ",1),i.createCommentVNode(' {{ t("action.close") }} ')]),_:1}),i.createVNode(R,{type:"primary",disabled:d.value.length<2,onClick:B},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(d.value.length<2?"至少选择一个字段":i.unref(a)("确定")),1)]),_:1},8,["disabled"])])]),default:i.withCtx(()=>[i.createElementVNode("div",{class:i.normalizeClass(["view-fields",[e.inline?null:"un-inline"]])},[i.createElementVNode("div",{style:i.normalizeStyle({flex:e.inline?2:1})},[i.createVNode(A,{modelValue:m.value,"onUpdate:modelValue":k[0]||(k[0]=W=>m.value=W),class:"single-line",indeterminate:p.value,onChange:F},{default:i.withCtx(()=>[i.createTextVNode(" 全选 ")]),_:1},8,["modelValue","indeterminate"]),i.createVNode(D,{modelValue:h.value,"onUpdate:modelValue":k[1]||(k[1]=W=>h.value=W),onChange:v},{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(u.value,W=>(i.openBlock(),i.createBlock(A,{key:W.key,disabled:!W.key,label:W.key},{default:i.withCtx(()=>[i.createTextVNode(i.toDisplayString(W.label),1)]),_:2},1032,["disabled","label"]))),128))]),_:1},8,["modelValue"])],4),i.createElementVNode("div",nu,[i.createVNode(i.unref(lu),{list:d.value,"item-style":{bottom:4},onChange:E},null,8,["list"])])],2)]),_:1},8,["modelValue","width"])],64)}}}),bd="",au=Pt(He(iu,[["__scopeId","data-v-b848b0c7"]])),Ii={animation:200,group:"gl",disabled:!1,ghostClass:"ghost",sort:!0,delay:100,showIcon:!0,itemStyle:{radius:4,bottom:8,background:"var(--ik-sub-sidebar-menu-bg)"}},su={list:{required:!0,type:Array,default:[]},group:{type:String,default:"draggable"},sort:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},delay:{type:Number,default:0},touchStartThreshold:{type:Number,default:0},disabled:{type:Boolean,default:!1},animation:{type:Number,default:200},handle:{type:String,default:".mover"},filter:{type:String,default:".unmover"},draggable:{type:String,default:".item"},ghostClass:{type:String,default:"ghost"},chosenClass:{type:String,default:"chosen"},dragClass:{type:String,default:"drag"},forceFallback:{type:Boolean,default:!1},fallbackClass:{type:String,default:"fallback"},fallbackOnBody:{type:Boolean,default:!1},fallbackTolerance:{type:Number,default:8},scroll:{type:Boolean,default:!0},scrollFn:{type:Function,default:()=>{}},scrollFensitivity:{type:Number,default:30},scrollSpeed:{type:Number,default:30},itemClass:{type:String,default:""},groupClass:{type:String,default:""},itemStyle:{type:Object,default:()=>({radius:{type:Number,default:30},bottom:{type:Number,default:8},background:{type:String,default:"var(--ik-sub-sidebar-menu-bg)"}})}},cu=i.defineComponent({__name:"IkDragList",props:su,emits:["change"],setup(e,{emit:t}){const r=e,n=t,o=i.ref([]);i.watch(()=>r.list,s=>{o.value=Le.cloneDeep(s)},{immediate:!0,deep:!0});const a=i.computed(()=>({...Ii,...r,itemStyle:{...Ii.itemStyle,...r.itemStyle}})),l=i.ref(!1),c=()=>{l.value=!0},f=s=>{l.value=!1;const u=r.list[s.oldIndex];n("change",o.value,{...u,oldIndex:s.oldIndex,newIndex:s.newIndex})};return(s,u)=>{const h=i.resolveComponent("el-icon");return i.openBlock(),i.createBlock(i.unref(y0),{modelValue:o.value,"onUpdate:modelValue":u[0]||(u[0]=d=>o.value=d),class:i.normalizeClass(["list-group",[a.value.groupClass]]),tag:"ul",attrs:a.value,animation:a.value.animation,group:a.value.group,disabled:a.value.disabled,"ghost-class":a.value.ghostClass,"force-fallback":a.value.ghostClass,"item-key":"order",onStart:c,onEnd:f},{item:i.withCtx(({element:d})=>[i.createVNode(i.Transition,{type:"transition",name:"flip-list"},{default:i.withCtx(()=>[s.$slots.item?i.renderSlot(s.$slots,"item",{key:0,item:d},void 0,!0):(i.openBlock(),i.createElementBlock("li",{key:1,class:i.normalizeClass(["list-group-item",[a.value.itemClass]]),style:i.normalizeStyle({borderRadius:`${a.value.itemStyle.radius}px`,marginBottom:`${a.value.itemStyle.bottom}px`,backgroundColor:`${a.value.itemStyle.background}`})},[a.value.showIcon&&!s.$slots.icon?(i.openBlock(),i.createBlock(h,{key:0},{default:i.withCtx(()=>[i.createVNode(i.unref(Ui))]),_:1})):i.renderSlot(s.$slots,"icon",{key:1},void 0,!0),i.createTextVNode(" "+i.toDisplayString(d.label),1)],6))]),_:2},1024)]),_:3},8,["modelValue","class","attrs","animation","group","disabled","ghost-class","force-fallback"])}}}),md="",lu=Pt(He(cu,[["__scopeId","data-v-d2a34939"]]));var bt=(e=>(e.input="input",e.area="area",e.number="number",e.select="select",e.date="date",e.datetime="datetime",e.checkbox="checkbox",e.radio="radio",e.treeselect="treeselect",e.choosePerson="choosePerson",e))(bt||{}),Dt=(e=>(e.year="year",e.month="month",e.date="date",e.dates="dates",e.datetime="datetime",e.week="week",e.datetimerange="datetimerange",e.daterange="daterange",e.monthrange="monthrange",e))(Dt||{});function Ti(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!i.isVNode(e)}const fu=i.defineComponent({name:"IkSearchAuto",props:{list:{required:!0,type:Array,default:()=>[]},shadow:{type:String,default:"never"},immediate:{type:Boolean,default:!0},tab:{type:String,default:""},search:{type:Function,default:null},loading:{type:Boolean,default:!1}},emits:["search","pickerChange"],setup(e,{emit:t,expose:r}){const n=i.ref(),o={},a=i.ref({}),l=i.ref([]),c=i.ref({...a.value});i.watch(l,(N,z)=>{const V=z.filter(te=>!N.includes(te));if(V.length){let te=!1;V.forEach(oe=>{c.value[oe]!==void 0&&(te=!0),c.value[oe]=void 0}),te&&t("search",c.value)}});const f=()=>{l.value=[],e.list.forEach(N=>{var z,V;a.value[N.key]=a.value[N.value],o[N.key]=o[N.value],l.value.push(N.key),(z=c.value)[V=N.key]??(z[V]=N.value||null)})};f(),i.watch(()=>e.list,()=>{f()});const s=i.computed(()=>l.value.map(N=>e.list.find(z=>z.key===N))),u=()=>{var N;c.value.page=1,(N=e.search)==null||N.call(e,c.value),t("search",c.value)};r({resetForm:()=>{var N,z;(z=(N=n.value)==null?void 0:N.resetFields)==null||z.call(N),u()},reRequest:()=>{u()}});const x=()=>{var N;t("search",c.value),(N=e.search)==null||N.call(e,c.value)},m=N=>{N.key==="Enter"&&u()},p=()=>{var N;(N=n.value)==null||N.resetFields(),u()};e.immediate&&u();const v=({maxlength:N,minlength:z,key:V,disabled:te,placeholder:oe,formProp:de={},value:ie,label:ge})=>i.createVNode(ae.ElInput,i.mergeProps({modelValue:c.value[V],"onUpdate:modelValue":[fe=>c.value[V]=fe,fe=>c.value[V]=fe],clearable:!0,maxlength:N,minlength:z,disabled:te,onBlur:()=>x()},de,{placeholder:(de==null?void 0:de.placeholder)||oe||`请输入${ge||""}`}),null),F=({key:N,placeholder:z,max:V,min:te,disabled:oe,precision:de,step:ie=1,label:ge,formProp:fe={}})=>i.createVNode(ae.ElInputNumber,i.mergeProps({modelValue:c.value[N],"onUpdate:modelValue":ke=>c.value[N]=ke,clearable:!0,max:V,min:te,disabled:oe,precision:de,step:ie,onChange:()=>x()},fe,{placeholder:(fe==null?void 0:fe.placeholder)||z||`请输入${ge||""}`}),null),_=({key:N,placeholder:z,disabled:V,options:te,label:oe,multiple:de=!1,filterable:ie=!0,formProp:ge={}})=>i.createVNode(ae.ElSelect,i.mergeProps({modelValue:c.value[N],"onUpdate:modelValue":fe=>c.value[N]=fe,clearable:!0,disabled:V,multiple:de,filterable:ie,onChange:()=>x()},ge,{placeholder:(ge==null?void 0:ge.placeholder)||z||`请选择${oe||""}`}),{default:()=>[te==null?void 0:te.map(fe=>i.createVNode(ae.ElOption,{key:fe.value,label:fe.label,value:fe.value},null))]}),g=({key:N,disabled:z,options:V,formProp:te={}})=>i.createVNode(ae.ElRadioGroup,i.mergeProps({modelValue:c.value[N],"onUpdate:modelValue":oe=>c.value[N]=oe,disabled:z,onChange:()=>x()},te),{default:()=>[V==null?void 0:V.map(oe=>(te==null?void 0:te.radioType)==="button"?i.createVNode(ae.ElRadioButton,{key:oe.value,label:oe.value,name:oe.label},null):i.createVNode(ae.ElRadio,{key:oe.value,label:oe.value,name:oe.label},null))]}),b=({key:N,disabled:z,options:V,min:te,max:oe,formProp:de={}})=>i.createVNode(ae.ElCheckboxGroup,i.mergeProps({modelValue:c.value[N],"onUpdate:modelValue":ie=>c.value[N]=ie,disabled:z,max:oe,min:te,onChange:()=>x()},de),{default:()=>[V==null?void 0:V.map(ie=>i.createVNode(ae.ElCheckbox,{key:ie.value,label:ie.label,value:ie.value},null))]}),E=({key:N,label:z,formProp:V={},placeholder:te})=>i.createVNode(ae.ElDatePicker,i.mergeProps({modelValue:c.value[N],"onUpdate:modelValue":oe=>c.value[N]=oe,onChange:()=>x()},V,{placeholder:(V==null?void 0:V.placeholder)||te||`请选择${z}时间`}),null),B=({key:N,disabled:z,editable:V=!0,startPlaceholder:te="开始日期",endplaceholder:oe="结束日期",dateType:de=Dt.date,format:ie,placeholder:ge="请选择日期",popperclass:fe,rangeSeparator:ke="-",defaultValue:Ve,defaultTime:we,valueFormat:Ae,disabledDate:_e=()=>!1,formProp:Fe={}})=>{let $e=ie;if($e)switch(de){case Dt.date:case Dt.dates:$e="YYYY-MM-DD";break;case Dt.year:$e="YYYY";break;case Dt.month:$e="YYYY-MM";break;case Dt.week:$e="YYYY-MM-DD";break;default:$e=""}return i.createVNode(ae.ElDatePicker,i.mergeProps({modelValue:c.value[N],"onUpdate:modelValue":Ie=>c.value[N]=Ie,onChange:()=>x(),disabled:z,type:de,editable:V,startPlaceholder:te,endPlaceholder:oe,rangeSeparator:ke,format:$e,popperClass:fe,defaultValue:Ve,defaultTime:we,valueFormat:Ae,disabledDate:_e},Fe,{placeholder:(Fe==null?void 0:Fe.placeholder)||ge||"请选择日期"}),null)},y=({key:N,options:z,multiple:V=!1,filterable:te=!0,nodeKey:oe="id",props:de,highlightCurrent:ie=!0,defaultExpandAll:ge=!1,expandOnClickNode:fe=!1,placeholder:ke="全部",checkOnClickNode:Ve=!1,showCheckbox:we=!1,checkStrictly:Ae=!0,defaultCheckedKeys:_e=[],currentNodeKey:Fe="",accordion:$e=!1,formProp:Ie={},label:it})=>i.createVNode(ae.ElTreeSelect,i.mergeProps({modelValue:c.value[N],"onUpdate:modelValue":Ze=>c.value[N]=Ze,data:z,onChange:()=>x(),clearable:!0,multiple:V,props:de,placeholder:ke,filterable:te,nodeKey:oe,highlightCurrent:ie,defaultExpandAll:ge,expandOnClickNode:fe,checkOnClickNode:Ve,showCheckbox:we,checkStrictly:Ae,defaultCheckedKeys:_e,currentNodeKey:Fe,accordion:$e},Ie,{placeholder:(Ie==null?void 0:Ie.placeholder)||ke||`请选择${it||""}`}),null),k=({key:N,selectKey:z,placeholder:V,disabled:te,options:oe,multiple:de=!1,filterable:ie=!0,formProp:ge={}})=>i.createVNode(ae.ElInput,i.mergeProps({disabled:te,modelValue:c.value[N],"onUpdate:modelValue":fe=>c.value[N]=fe,onBlur:()=>x()},ge,{placeholder:(ge==null?void 0:ge.placeholder)||V||"全部"}),{prepend:()=>i.createVNode(ae.ElSelect,i.mergeProps({disabled:te,multiple:de,filterable:ie,modelValue:c.value[z],"onUpdate:modelValue":fe=>c.value[z]=fe,onChange:()=>x()},ge),{default:()=>[oe==null?void 0:oe.map(fe=>i.createVNode(ae.ElOption,{key:fe.value,label:fe.label,value:fe.value},null))]})}),R="",A="iking",D=i.ref(null),I=i.ref([]),P=i.ref(!1),W=i.ref(""),H=new Map,q=N=>{P.value=!0,I.value=H.has(N)?H.get(N):c.value[N],W.value=N},X=()=>{H.set(W.value,[]),W.value="",x()},K=N=>{var z,V;c.value[W.value]=(z=N.list.map(te=>te.elementName))==null?void 0:z.join(","),H.set(W.value,N.list),t("search",c.value),t("pickerChange",N),(V=e.search)==null||V.call(e,c.value)},ee=({key:N,placeholder:z,typeOption:V,_list:te,maxlength:oe,minlength:de,disabled:ie,formProp:ge})=>i.createVNode(ae.ElInput,i.mergeProps({modelValue:c.value[N],"onUpdate:modelValue":fe=>c.value[N]=fe,clearable:!0,maxlength:oe,minlength:de,disabled:ie},ge,{onClick:()=>q(N),onClear:()=>X(),placeholder:(ge==null?void 0:ge.placeholder)||z||`点击选择${label||"人员"}`}),null),ne=N=>{switch(N.type){case"":case void 0:case bt.input:case"el-input":return v(N);case bt.number:case"el-input-number":return F(N);case bt.select:case"el-select":return _(N);case bt.checkbox:case"el-checkbox":return b(N);case bt.radio:case"el-radio-group":case"el-radio":return g(N);case bt.date:case"el-date-picker":return B(N);case"el-time-select":return E(N);case bt.treeselect:case"el-tree-select":return y(N);case bt.choosePerson:return ee(N);case"select-input":return k(N);default:return i.createVNode(i.Fragment,null,null)}},M=i.computed(()=>{var V;const N=[],z=s.value.length-1;return(V=s.value)==null||V.forEach((te,oe)=>{let de,ie;if(!te)return[];const ge=te.col||1;N.push(i.createVNode(ae.ElCol,{xl:{span:ge*6},lg:{span:ge*6},md:{span:ge*12},sm:{span:ge*24}},{default:()=>[oe===z?i.createVNode("div",{class:"last-form"},[i.createVNode(ae.ElFormItem,{label:te.type==="select-input"?"":te.label,prop:te.key},Ti(de=ne(te))?de:{default:()=>[de]}),i.createVNode(gt,{name:"icon-sousuo1",pop:!0,title:"搜索",size:"big","show-bg":!0,width:40,onClick:()=>x()},null),i.createVNode(gt,{name:"icon-zhongzhi",pop:!0,title:"重置并搜索",size:"big","show-bg":!0,width:40,onClick:()=>p()},null)]):i.createVNode(ae.ElFormItem,{label:te.type==="select-input"?"":te.label,prop:te.key},Ti(ie=ne(te))?ie:{default:()=>[ie]})]}))}),N});return()=>i.createVNode(i.Fragment,null,[i.createVNode(ae.ElCard,{class:"gl-search-card",shadow:e.shadow},{default:()=>[i.createVNode(ae.ElForm,{class:"auto-search-form",onKeyup:m,ref:n,model:c.value},{default:()=>[i.createVNode(ae.ElRow,{gutter:16},{default:()=>[M.value]})]})]}),i.createVNode(tu,{ref:D.value,modelValue:I.value,"onUpdate:modelValue":N=>I.value=N,show:P.value,"onUpdate:show":N=>P.value=N,"append-to-body":!0,api:{methods:"post",url:`${R}/server/component/pick/mix`,headers:{"Content-Type":"application/json;charset=UTF-8",Authorization:A}},tabs:["group","role","post"],chooseType:["user"],typeOption:{dep:"DEPT",user:"USER",role:"ROLE",post:"POST"},propOption:{name:"elementName",id:"elementId",type:"elementType"},onOk:N=>K(N)},null)])}}),uu={class:"header-left"},du={class:"title"},hu={class:"flex items-center"},pu=i.defineComponent({__name:"IkPageHead",props:i.mergeModels({headerTitle:{type:String,default:""},headerBorder:{type:Boolean,default:!1},fields:{required:!0,type:Array,default:()=>[]},search:{type:Function,default:null},loading:{type:Boolean,default:!1},tabId:{type:Number||String,default:0},exportBtn:{type:Boolean,default:!1},refreshBtn:{type:Boolean,default:!1},settingBtn:{type:Boolean,default:!0},defaultShow:{type:Boolean,default:!1},headerHeight:{type:Number,default:66}},{modelValue:{type:Array,default:()=>[]},modelModifiers:{}}),emits:["update:modelValue"],setup(e){i.useCssVars(s=>({"59e2b6b4":f}));const t=e,r=i.useModel(e,"modelValue"),n=i.ref(t.defaultShow),o=()=>{n.value=!n.value},a=i.computed(()=>t.fields.filter(s=>!s.onlyForm)),l=i.computed(()=>{var s;return(s=t.fields)==null?void 0:s.filter(u=>u.search)}),c=i.computed(()=>l.value.length),f=`${t.headerHeight}px`;return(s,u)=>{const h=i.resolveComponent("el-card");return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["ik-page-header",{"show-search":n.value}])},[i.createElementVNode("div",{class:"header",style:i.normalizeStyle({borderColor:e.headerBorder?"var(--ik-border-color)":"transparent",marginBottom:e.headerBorder?"8px":"0"})},[i.createElementVNode("div",uu,[i.createCommentVNode(' 左侧标题、tab页或自定义内容 v-if="!$slots.headerLeft" '),i.createElementVNode("span",du,i.toDisplayString(e.headerTitle),1),i.renderSlot(s.$slots,"headerLeft",{},void 0,!0)]),i.createCommentVNode(" 默认按钮 "),i.createElementVNode("div",hu,[i.createCommentVNode(" 右侧操作或自定义内容 "),i.renderSlot(s.$slots,"headerRight",{},void 0,!0),e.exportBtn?(i.openBlock(),i.createBlock(i.unref(gt),{key:0,name:"iksvg_xiazai",type:"primary",title:"导出","show-bg":"",size:"default"})):i.createCommentVNode("v-if",!0),c.value?(i.openBlock(),i.createBlock(i.unref(gt),{key:1,name:"iksvg_shaixuan1",size:"default",title:n.value?"收起筛选条件":"展开筛选条件","show-bg":"",onClick:o},null,8,["title"])):i.createCommentVNode("v-if",!0),e.refreshBtn?(i.openBlock(),i.createBlock(i.unref(gt),{key:2,name:"iksvg_zhongzhi1",title:"保留搜索条件刷新","show-bg":"",size:"default",onClick:e.search},null,8,["onClick"])):i.createCommentVNode("v-if",!0),i.createCommentVNode(` <IkSvgIcon\r
33
+ name="icon-shezhi"\r
34
+ show-bg\r
35
+ :width="40"\r
36
+ size="small"\r
37
+ /> `),i.createVNode(i.unref(au),{modelValue:r.value,"onUpdate:modelValue":u[0]||(u[0]=d=>r.value=d),title:"设置表格字段",list:a.value,tab:e.tabId},null,8,["modelValue","list","tab"])])],4),i.createVNode(h,{shadow:"always",class:"search-form"},{default:i.withCtx(()=>[i.createVNode(i.unref(fu),{list:l.value,search:e.search,loading:e.loading},null,8,["list","search","loading"]),i.createElementVNode("span",{class:"hide-serch",onClick:o},[i.createVNode(i.unref(gt),{title:"收起",rotate:"180",name:"icon-shouqi"})])]),_:1})],2)}}}),Bd="",xu=He(pu,[["__scopeId","data-v-659625f1"]]),Oi={headerTitle:{type:String,default:""},headerBorder:{type:Boolean,default:!1},tabs:{type:Array,default:()=>[]},fields:{required:!0,type:Array,default:()=>[]},tableData:{type:Array,default:()=>[]},immediate:{type:Boolean,default:!0},total:{type:Number,default:0},search:{type:Function,default:null},selection:{type:Boolean,default:!1},serial:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},tabId:{type:Number||String,default:0},exportBtn:{type:Boolean,default:!1},refreshBtn:{type:Boolean,default:!0},settingBtn:{type:Boolean,default:!0},chooseLen:{type:Number,default:0},current:{type:Number,default:1},defaultShow:{type:Boolean,default:!1},dialogSize:{type:String,default:"l"},title:{type:String,default:""},role:{type:String,default:""},formKey:{type:Object,default:()=>({})},dialogProp:{type:Object,default:()=>{}},headerHeight:{type:Number,default:66}},gu={class:"total"},bu={class:"num"},vu=i.defineComponent({__name:"IkPage",props:{total:{type:Number,default:0},mini:{type:Boolean,default:!1},search:{type:Function,default:null},current:{type:Number,default:0}},emits:["currentChange","sizeChange"],setup(e,{emit:t}){const r=e,n=t,o=i.ref(1);i.watch(()=>r.current,s=>{o.value=s});const a=[15,30,60,100,200,500],l=i.ref(a[0]),c=s=>{n("sizeChange",s),r==null||r.search({page:o.value,rows:l.value})},f=s=>{n("currentChange",s),r==null||r.search({page:o.value,rows:l.value})};return(s,u)=>{const h=i.resolveComponent("el-pagination");return i.openBlock(),i.createBlock(h,i.mergeProps({"current-page":o.value,"onUpdate:currentPage":u[0]||(u[0]=d=>o.value=d),"page-size":l.value,"onUpdate:pageSize":u[1]||(u[1]=d=>l.value=d)},s.$attrs,{layout:"slot, ->, sizes, prev, pager, next, jumper",small:e.mini,total:e.total,"page-sizes":a,class:"ik-pagin-action",onSizeChange:c,onCurrentChange:f}),{default:i.withCtx(()=>[i.createElementVNode("span",gu,[i.createTextVNode(" 共"),i.createElementVNode("span",bu,i.toDisplayString(e.total),1),i.createTextVNode(" 项数据 ")])]),_:1},16,["current-page","page-size","small","total"])}}}),Ed="",mu=He(vu,[["__scopeId","data-v-e7b4fc6e"]]),yu=i.defineComponent({__name:"IkPageTable",props:Oi,emits:["selection-change","page-change"],setup(e,{expose:t,emit:r}){var d;const n=e,o=r,{attrs:a}=i.getCurrentInstance(),l=i.ref({page:((d=a.page)==null?void 0:d.page)||1,rows:15}),c=i.computed(()=>{const{page:x,rows:m}=(a==null?void 0:a.page)||l.value,p=Le.cloneDeep(n.tableData);return p.forEach((v,F)=>{v.__index=x===1?F+1:(x-1)*m+F+1}),p}),f=x=>{l.value=x,o("page-change",x),n.search()},s=i.ref([]),u=x=>{s.value=x,o("selection-change",x)},h=i.ref();return t({table:h}),(x,m)=>{var _,g,b;const p=i.resolveComponent("el-table-column"),v=i.resolveComponent("el-table"),F=i.resolveDirective("loading");return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createCommentVNode(" 自定义表格 "),(_=x.$slots)!=null&&_.table?i.renderSlot(x.$slots,"table",{key:0},void 0,!0):(i.openBlock(),i.createElementBlock(i.Fragment,{key:1},[i.createCommentVNode(" 默认表格 "),i.createVNode(i.Transition,{name:"el-zoom-in-center"},{default:i.withCtx(()=>[i.withDirectives((i.openBlock(),i.createBlock(v,i.mergeProps({ref_key:"refTable",ref:h},{...x.$attrs,...n},{data:c.value,style:{width:"100%"},onSelectionChange:u}),{default:i.withCtx(()=>[x.selection?(i.openBlock(),i.createBlock(p,{key:0,type:"selection",align:"center",width:"56"})):i.createCommentVNode("v-if",!0),x.serial?(i.openBlock(),i.createBlock(p,{key:1,prop:"__index",label:"序号",width:60,align:"center"})):i.createCommentVNode("v-if",!0),i.renderSlot(x.$slots,"default",{},void 0,!0)]),_:3},16,["data"])),[[F,x.loading]])]),_:3})],64)),i.createCommentVNode(" 分页 "),x.total?(i.openBlock(),i.createBlock(mu,{key:2,current:((b=(g=x.$attrs)==null?void 0:g.page)==null?void 0:b.page)||1,total:x.total,search:f},null,8,["current","total"])):i.createCommentVNode("v-if",!0)],64)}}}),_d="",Cu=He(yu,[["__scopeId","data-v-41391707"]]),Bu={class:"choose"},Eu={class:"btn"},_u=i.defineComponent({__name:"index",props:i.mergeModels(Oi,{modelValue:{type:Object,default:()=>({page:1,rows:15})},modelModifiers:{}}),emits:i.mergeModels(["selection-change","delete","download","addFunction"],["update:modelValue"]),setup(e,{expose:t,emit:r}){const n=e,o=r,a=i.useModel(e,"modelValue"),l=()=>{var B;(B=a==null?void 0:a.value)!=null&&B.page&&(a.value={page:1,rows:15})};l();const c=B=>{a.value={...a.value,...B}},f=B=>{var k;l();const y=(B==null?void 0:B.type)==="click"?{}:B;a.value={...a.value,...y},(k=n==null?void 0:n.search)==null||k.call(n,{...a.value})},s=i.ref([]),u=B=>{s.value=B,o("selection-change",B)},h=i.computed(()=>s.value.length||n.chooseLen),d=i.ref(n.fields),x=i.computed(()=>"light"),m=i.ref(),p=i.ref(),v=i.ref(),F=i.ref(!1),_=i.ref(void 0),g=i.ref(n.title||""),b=B=>{_.value=B?{...B}:null,n.title?n.title.includes("新增")||n.title.includes("修改")?g.value=B?n.title.replace(/新增/g,"修改"):n.title.replace(/修改/g,"新增"):g.value=B?`修改${n.title}`:`新增${n.title}`:g.value=B?"修改":"新增",F.value=!0},E=i.computed(()=>n.fields.find(B=>B.isEdit));return t({table:m,header:p,chooseList:s,srotFields:d,pageData:a,dialog:v,handAdd:b}),(B,y)=>{const k=i.resolveComponent("el-button"),R=i.resolveComponent("IkNumberDuration"),A=i.resolveComponent("el-table-column"),D=i.resolveDirective("role");return i.openBlock(),i.createElementBlock(i.Fragment,null,[i.createCommentVNode(" 标题 + 搜索表单 "),i.createVNode(xu,i.mergeProps({ref_key:"refHeader",ref:p},{...B.$attrs,...n},{modelValue:d.value,"onUpdate:modelValue":y[1]||(y[1]=I=>d.value=I),loading:B.loading,search:f,"tab-id":B.tabId}),{headerLeft:i.withCtx(()=>[i.renderSlot(B.$slots,"headerLeft",{},void 0,!0)]),headerRight:i.withCtx(()=>[i.renderSlot(B.$slots,"headerRight",{},()=>[E.value?i.withDirectives((i.openBlock(),i.createBlock(k,{key:0,type:"primary",onClick:y[0]||(y[0]=I=>b(null))},{default:i.withCtx(()=>[i.createTextVNode(" 新增 ")]),_:1})),[[D,B.role]]):i.createCommentVNode("v-if",!0)],!0)]),_:3},16,["modelValue","loading","tab-id"]),i.createCommentVNode(" 选中表格项 "),B.selection?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["hand-selection",{select:h.value}])},[i.createElementVNode("p",Bu,[i.createTextVNode(" 已选 "),i.createElementVNode("span",null,[i.createVNode(R,{value:h.value},null,8,["value"])]),i.createTextVNode(" 条 ")]),i.createElementVNode("div",Eu,[B.$slots.selectionRight?i.renderSlot(B.$slots,"selectionRight",{key:1},void 0,!0):(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.createVNode(i.unref(gt),{name:"icon-shanchu","show-bg":"",size:"default",onClick:y[2]||(y[2]=I=>B.$emit("delete",s.value))}),i.createVNode(i.unref(gt),{ize:"default",name:"icon-xiazai","show-bg":"",onClick:y[3]||(y[3]=I=>B.$emit("download",s.value))})],64))])],2)):i.createCommentVNode("v-if",!0),i.createCommentVNode(" 自定义表格 "),i.renderSlot(B.$slots,"table",{},()=>[i.createVNode(Cu,i.mergeProps({ref_key:"refTable",ref:m,page:a.value},{...B.$attrs,...n},{onPageChange:c,onSelectionChange:u}),{default:i.withCtx(()=>[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(d.value,I=>(i.openBlock(),i.createElementBlock(i.Fragment,{key:I.key},[I.show?(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[I.tableSlot?(i.openBlock(),i.createBlock(A,i.mergeProps({key:1,align:I.align,width:I.width,"min-width":I.minWidth,"show-overflow-tooltip":{effect:x.value??"light"}},{...I,...B.$attrs,...n}),{default:i.withCtx(P=>[i.renderSlot(B.$slots,I.tableSlot,{data:P},void 0,!0)]),_:2},1040,["align","width","min-width","show-overflow-tooltip"])):(i.openBlock(),i.createBlock(A,i.mergeProps({key:0,prop:I.key,width:I.width,"min-width":I.minWidth,align:I.align,"show-overflow-tooltip":{effect:x.value??"light"},"show-arrow":!1},{...I,...B.$attrs,...n}),null,16,["prop","width","min-width","align","show-overflow-tooltip"]))],64)):i.createCommentVNode("v-if",!0)],64))),128))]),_:3},16,["page"])],!0),i.createCommentVNode(" 新增修改 "),i.createCommentVNode(` <IkDialog\r
38
+ v-if="needAutoForm"\r
39
+ ref="refIkDialog"\r
40
+ v-bind="{ ...dialogProp }"\r
41
+ v-model:visible="visible"\r
42
+ :title="dialogTitle"\r
43
+ :fields="fields"\r
44
+ :size="dialogSize"\r
45
+ :form-key="formKey"\r
46
+ :edit-data="editData"\r
47
+ @addFunction="sureAdd"\r
48
+ /> `)],64)}}}),wd="",Ri=Pt(He(_u,[["__scopeId","data-v-a4dd744c"]]));ze.IkPageFull=Ri,ze.default=Ri,Object.defineProperties(ze,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});