go-core 0.0.44 → 0.0.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/code.es5.js +6 -6
- package/dist/code.umd.js +6 -6
- package/package.json +1 -1
package/dist/code.es5.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import t from"lodash";import e from"axios";var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},n(t,e)};var r=function(){return r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};function i(t,e,n,r){return new(n||(n=Promise))((function(i,a){function s(t){try{u(r.next(t))}catch(t){a(t)}}function o(t){try{u(r.throw(t))}catch(t){a(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,o)}u((r=r.apply(t,e||[])).next())}))}function a(t,e){var n,r,i,a,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function o(a){return function(o){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return s.label++,{value:a[1],done:!1};case 5:s.label++,r=a[1],a=[0];continue;case 7:a=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){s=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){s.label=a[1];break}if(6===a[0]&&s.label<i[1]){s.label=i[1],i=a;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(a);break}i[2]&&s.ops.pop(),s.trys.pop();continue}a=e.call(t,s)}catch(t){a=[6,t],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,o])}}}function s(t,e,n){if(n||2===arguments.length)for(var r,i=0,a=e.length;i<a;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}var o={createItem:function(e){e.catch={selectd:t.cloneDeep(e.selectd),list:t.cloneDeep(e.list)}},resetData:function(e,n){var r=t.cloneDeep(n);e.selected=r.selected,e.list=r.list},execute:function(e){e.undoRedoPointer===e.undos.length-1?(e.undos.length>10&&t.pullAt(e.undos,0),e.undos.push({selectd:t.cloneDeep(e.selectd),list:t.cloneDeep(e.list)})):e.undos.splice(e.undoRedoPointer+1,e.undos.length-1-e.undoRedoPointer,{selectd:t.cloneDeep(e.selectd),list:t.cloneDeep(e.list)}),e.undoRedoPointer=e.undos.length-1},undo:function(t){if(t.undoRedoPointer>0&&t.undoRedoPointer<t.undos.length){t.undoRedoPointer=t.undoRedoPointer-1;var e=t.undos[t.undoRedoPointer];this.commit("GoCom/resetData",e)}},redo:function(t){if(t.undoRedoPointer>=0&&t.undoRedoPointer<t.undos.length){t.undoRedoPointer=t.undoRedoPointer+1;var e=t.undos[t.undoRedoPointer];this.commit("GoCom/resetData",e)}}},u=new Blob(["\nfunction proxyObj(originObj) {\n const exposeObj = new Proxy(originObj, {\n has: (target, key) => {\n if (['fetch', 'XMLHttpRequest', 'postMessage'].indexOf(key) >= 0) {\n throw new Error('Illegal operation for key'+key)\n } else {\n return target[key]\n }\n },\n })\n return exposeObj\n}\nfunction compileCode(src) {\n src = 'with (exposeObj) {'+src+'}'\n //console.log(src)\n return new Function('exposeObj', src)\n}\nfunction run(code) {\n let proxy = proxyObj({})\n let result = compileCode(code)(proxy)\n return result\n}\n\nonmessage = (e) => {\n try {\n let result = run(e.data.code)\n postMessage({\n code: 1,\n result,\n })\n } catch (err) {\n postMessage({\n code: -1,\n err,\n })\n }\n}\n\n"]),c=URL.createObjectURL(u);function l(t,e){return void 0===e&&(e=5e3),i(this,void 0,void 0,(function(){var n;return a(this,(function(r){return n=new Worker(c),[2,new Promise((function(r,i){var a=function(){clearTimeout(o),n.removeEventListener("message",s),n.terminate(),n=null},s=function(t){var e=t.data,n=e.code,s=e.result,o=e.err;a(),1===n?r(s):i(o)};n.postMessage({code:t}),n.addEventListener("message",s);var o=setTimeout((function(){a(),i("timeout")}),e)}))]}))}))}function h(t,e,n,r){return i(this,void 0,void 0,(function(){var i,s,o,u,c,l,h,d;return a(this,(function(p){switch(p.label){case 0:if(i=t,s=e.use,o=e.data,!s)return[3,4];u=function(t){var e,n,s;return a(this,(function(a){switch(a.label){case 0:return o[t].use?(e=o[t].dependVars,n={},r&&n&&e&&e.length&&e.map((function(t){var e=r.filter((function(e){return e.mapField==t&&e.current}));e&&e.length&&e.forEach((function(e){""!=e.value&&(n[t]=e.value)}))})),[4,f(o[t].code,i,n)]):[3,2];case 1:s=a.sent(),i=s.data,a.label=2;case 2:return[2]}}))},c=0,p.label=1;case 1:return c<o.length?[5,u(c)]:[3,4];case 2:p.sent(),p.label=3;case 3:return c++,[3,1];case 4:return h=i,(l=n)&&"object"==typeof i&&(Array.isArray(h)?(h=[],i.forEach((function(t){d={},l.forEach((function(e){d[e.field]=t[e.mapField]})),h.push(d)}))):(h={},l.forEach((function(t){h[t.field]=i[t.mapField]})))),[2,h]}}))}))}function f(t,e,n){return void 0===n&&(n={}),i(this,void 0,void 0,(function(){var r,i,s,o,u;return a(this,(function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),s=(r=[e,n,""])[1],o=r[2],"object"==typeof(i=r[0])&&(i=JSON.stringify(e)),"object"==typeof n&&(s=JSON.stringify(n)),Object.keys(n).forEach((function(t){return o+="".concat(t,",")})),u="let data=eval(".concat(i,"); "),u+=o?"let {".concat(o,"} = eval(").concat(s,"); "):"",[4,l(u+="".concat(t))];case 1:return[2,{success:!0,data:a.sent()}];case 2:return[2,{success:!1,error:a.sent(),data:e}];case 3:return[2]}}))}))}function d(t){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(t)}function p(t,e){return t&e}function m(t,e){return t|e}function g(t,e){return t^e}function v(t,e){return t&~e}function y(t){if(0==t)return-1;var e=0;return 0==(65535&t)&&(t>>=16,e+=16),0==(255&t)&&(t>>=8,e+=8),0==(15&t)&&(t>>=4,e+=4),0==(3&t)&&(t>>=2,e+=2),0==(1&t)&&++e,e}function _(t){for(var e=0;0!=t;)t&=t-1,++e;return e}var b,w="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function D(t){var e,n,r="";for(e=0;e+3<=t.length;e+=3)n=parseInt(t.substring(e,e+3),16),r+=w.charAt(n>>6)+w.charAt(63&n);for(e+1==t.length?(n=parseInt(t.substring(e,e+1),16),r+=w.charAt(n<<2)):e+2==t.length&&(n=parseInt(t.substring(e,e+2),16),r+=w.charAt(n>>2)+w.charAt((3&n)<<4));(3&r.length)>0;)r+="=";return r}function S(t){var e,n="",r=0,i=0;for(e=0;e<t.length&&"="!=t.charAt(e);++e){var a=w.indexOf(t.charAt(e));a<0||(0==r?(n+=d(a>>2),i=3&a,r=1):1==r?(n+=d(i<<2|a>>4),i=15&a,r=2):2==r?(n+=d(i),n+=d(a>>2),i=3&a,r=3):(n+=d(i<<2|a>>4),n+=d(15&a),r=0))}return 1==r&&(n+=d(i<<2)),n}var T,x=function(t){var e;if(void 0===b){var n="0123456789ABCDEF",r=" \f\n\r\t \u2028\u2029";for(b={},e=0;e<16;++e)b[n.charAt(e)]=e;for(n=n.toLowerCase(),e=10;e<16;++e)b[n.charAt(e)]=e;for(e=0;e<r.length;++e)b[r.charAt(e)]=-1}var i=[],a=0,s=0;for(e=0;e<t.length;++e){var o=t.charAt(e);if("="==o)break;if(-1!=(o=b[o])){if(void 0===o)throw new Error("Illegal character at offset "+e);a|=o,++s>=2?(i[i.length]=a,a=0,s=0):a<<=4}}if(s)throw new Error("Hex encoding incomplete: 4 bits missing");return i},E={decode:function(t){var e;if(void 0===T){var n="= \f\n\r\t \u2028\u2029";for(T=Object.create(null),e=0;e<64;++e)T["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e)]=e;for(T["-"]=62,T._=63,e=0;e<n.length;++e)T[n.charAt(e)]=-1}var r=[],i=0,a=0;for(e=0;e<t.length;++e){var s=t.charAt(e);if("="==s)break;if(-1!=(s=T[s])){if(void 0===s)throw new Error("Illegal character at offset "+e);i|=s,++a>=4?(r[r.length]=i>>16,r[r.length]=i>>8&255,r[r.length]=255&i,i=0,a=0):i<<=6}}switch(a){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:r[r.length]=i>>10;break;case 3:r[r.length]=i>>16,r[r.length]=i>>8&255}return r},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(t){var e=E.re.exec(t);if(e)if(e[1])t=e[1];else{if(!e[2])throw new Error("RegExp out of sync");t=e[2]}return E.decode(t)}},M=1e13,O=function(){function t(t){this.buf=[+t||0]}return t.prototype.mulAdd=function(t,e){var n,r,i=this.buf,a=i.length;for(n=0;n<a;++n)(r=i[n]*t+e)<M?e=0:r-=(e=0|r/M)*M,i[n]=r;e>0&&(i[n]=e)},t.prototype.sub=function(t){var e,n,r=this.buf,i=r.length;for(e=0;e<i;++e)(n=r[e]-t)<0?(n+=M,t=1):t=0,r[e]=n;for(;0===r[r.length-1];)r.pop()},t.prototype.toString=function(t){if(10!=(t||10))throw new Error("only base 10 is supported");for(var e=this.buf,n=e[e.length-1].toString(),r=e.length-2;r>=0;--r)n+=(M+e[r]).toString().substring(1);return n},t.prototype.valueOf=function(){for(var t=this.buf,e=0,n=t.length-1;n>=0;--n)e=e*M+t[n];return e},t.prototype.simplify=function(){var t=this.buf;return 1==t.length?t[0]:this},t}(),k=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,C=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function A(t,e){return t.length>e&&(t=t.substring(0,e)+"…"),t}var P,R=function(){function t(e,n){this.hexDigits="0123456789ABCDEF",e instanceof t?(this.enc=e.enc,this.pos=e.pos):(this.enc=e,this.pos=n)}return t.prototype.get=function(t){if(void 0===t&&(t=this.pos++),t>=this.enc.length)throw new Error("Requesting byte offset "+t+" on a stream of length "+this.enc.length);return"string"==typeof this.enc?this.enc.charCodeAt(t):this.enc[t]},t.prototype.hexByte=function(t){return this.hexDigits.charAt(t>>4&15)+this.hexDigits.charAt(15&t)},t.prototype.hexDump=function(t,e,n){for(var r="",i=t;i<e;++i)if(r+=this.hexByte(this.get(i)),!0!==n)switch(15&i){case 7:r+=" ";break;case 15:r+="\n";break;default:r+=" "}return r},t.prototype.isASCII=function(t,e){for(var n=t;n<e;++n){var r=this.get(n);if(r<32||r>176)return!1}return!0},t.prototype.parseStringISO=function(t,e){for(var n="",r=t;r<e;++r)n+=String.fromCharCode(this.get(r));return n},t.prototype.parseStringUTF=function(t,e){for(var n="",r=t;r<e;){var i=this.get(r++);n+=i<128?String.fromCharCode(i):i>191&&i<224?String.fromCharCode((31&i)<<6|63&this.get(r++)):String.fromCharCode((15&i)<<12|(63&this.get(r++))<<6|63&this.get(r++))}return n},t.prototype.parseStringBMP=function(t,e){for(var n,r,i="",a=t;a<e;)n=this.get(a++),r=this.get(a++),i+=String.fromCharCode(n<<8|r);return i},t.prototype.parseTime=function(t,e,n){var r=this.parseStringISO(t,e),i=(n?k:C).exec(r);return i?(n&&(i[1]=+i[1],i[1]+=+i[1]<70?2e3:1900),r=i[1]+"-"+i[2]+"-"+i[3]+" "+i[4],i[5]&&(r+=":"+i[5],i[6]&&(r+=":"+i[6],i[7]&&(r+="."+i[7]))),i[8]&&(r+=" UTC","Z"!=i[8]&&(r+=i[8],i[9]&&(r+=":"+i[9]))),r):"Unrecognized time: "+r},t.prototype.parseInteger=function(t,e){for(var n,r=this.get(t),i=r>127,a=i?255:0,s="";r==a&&++t<e;)r=this.get(t);if(0===(n=e-t))return i?-1:0;if(n>4){for(s=r,n<<=3;0==(128&(+s^a));)s=+s<<1,--n;s="("+n+" bit)\n"}i&&(r-=256);for(var o=new O(r),u=t+1;u<e;++u)o.mulAdd(256,this.get(u));return s+o.toString()},t.prototype.parseBitString=function(t,e,n){for(var r=this.get(t),i="("+((e-t-1<<3)-r)+" bit)\n",a="",s=t+1;s<e;++s){for(var o=this.get(s),u=s==e-1?r:0,c=7;c>=u;--c)a+=o>>c&1?"1":"0";if(a.length>n)return i+A(a,n)}return i+a},t.prototype.parseOctetString=function(t,e,n){if(this.isASCII(t,e))return A(this.parseStringISO(t,e),n);var r=e-t,i="("+r+" byte)\n";r>(n/=2)&&(e=t+n);for(var a=t;a<e;++a)i+=this.hexByte(this.get(a));return r>n&&(i+="…"),i},t.prototype.parseOID=function(t,e,n){for(var r="",i=new O,a=0,s=t;s<e;++s){var o=this.get(s);if(i.mulAdd(128,127&o),a+=7,!(128&o)){if(""===r)if((i=i.simplify())instanceof O)i.sub(80),r="2."+i.toString();else{var u=i<80?i<40?0:1:2;r=u+"."+(i-40*u)}else r+="."+i.toString();if(r.length>n)return A(r,n);i=new O,a=0}}return a>0&&(r+=".incomplete"),r},t}(),N=function(){function t(t,e,n,r,i){if(!(r instanceof I))throw new Error("Invalid tag value.");this.stream=t,this.header=e,this.length=n,this.tag=r,this.sub=i}return t.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},t.prototype.content=function(t){if(void 0===this.tag)return null;void 0===t&&(t=1/0);var e=this.posContent(),n=Math.abs(this.length);if(!this.tag.isUniversal())return null!==this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(e,e+n,t);switch(this.tag.tagNumber){case 1:return 0===this.stream.get(e)?"false":"true";case 2:return this.stream.parseInteger(e,e+n);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(e,e+n,t);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(e,e+n,t);case 6:return this.stream.parseOID(e,e+n,t);case 16:case 17:return null!==this.sub?"("+this.sub.length+" elem)":"(no elem)";case 12:return A(this.stream.parseStringUTF(e,e+n),t);case 18:case 19:case 20:case 21:case 22:case 26:return A(this.stream.parseStringISO(e,e+n),t);case 30:return A(this.stream.parseStringBMP(e,e+n),t);case 23:case 24:return this.stream.parseTime(e,e+n,23==this.tag.tagNumber)}return null},t.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(null===this.sub?"null":this.sub.length)+"]"},t.prototype.toPrettyString=function(t){void 0===t&&(t="");var e=t+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(e+="+"),e+=this.length,this.tag.tagConstructed?e+=" (constructed)":!this.tag.isUniversal()||3!=this.tag.tagNumber&&4!=this.tag.tagNumber||null===this.sub||(e+=" (encapsulates)"),e+="\n",null!==this.sub){t+=" ";for(var n=0,r=this.sub.length;n<r;++n)e+=this.sub[n].toPrettyString(t)}return e},t.prototype.posStart=function(){return this.stream.pos},t.prototype.posContent=function(){return this.stream.pos+this.header},t.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},t.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},t.decodeLength=function(t){var e=t.get(),n=127&e;if(n==e)return n;if(n>6)throw new Error("Length over 48 bits not supported at position "+(t.pos-1));if(0===n)return null;e=0;for(var r=0;r<n;++r)e=256*e+t.get();return e},t.prototype.getHexStringValue=function(){var t=this.toHexString(),e=2*this.header,n=2*this.length;return t.substr(e,n)},t.decode=function(e){var n;n=e instanceof R?e:new R(e,0);var r=new R(n),i=new I(n),a=t.decodeLength(n),s=n.pos,o=s-r.pos,u=null,c=function(){var e=[];if(null!==a){for(var r=s+a;n.pos<r;)e[e.length]=t.decode(n);if(n.pos!=r)throw new Error("Content size is not correct for container starting at offset "+s)}else try{for(;;){var i=t.decode(n);if(i.tag.isEOC())break;e[e.length]=i}a=s-n.pos}catch(t){throw new Error("Exception while decoding undefined length content: "+t)}return e};if(i.tagConstructed)u=c();else if(i.isUniversal()&&(3==i.tagNumber||4==i.tagNumber))try{if(3==i.tagNumber&&0!=n.get())throw new Error("BIT STRINGs with unused bits cannot encapsulate.");u=c();for(var l=0;l<u.length;++l)if(u[l].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch(t){u=null}if(null===u){if(null===a)throw new Error("We can't skip over an invalid tag with undefined length at offset "+s);n.pos=s+Math.abs(a)}return new t(r,o,a,i,u)},t}(),I=function(){function t(t){var e=t.get();if(this.tagClass=e>>6,this.tagConstructed=0!=(32&e),this.tagNumber=31&e,31==this.tagNumber){var n=new O;do{e=t.get(),n.mulAdd(128,127&e)}while(128&e);this.tagNumber=n.simplify()}}return t.prototype.isUniversal=function(){return 0===this.tagClass},t.prototype.isEOC=function(){return 0===this.tagClass&&0===this.tagNumber},t}(),V=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],B=(1<<26)/V[V.length-1],Y=function(){function t(t,e,n){null!=t&&("number"==typeof t?this.fromNumber(t,e,n):null==e&&"string"!=typeof t?this.fromString(t,256):this.fromString(t,e))}return t.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var e;if(16==t)e=4;else if(8==t)e=3;else if(2==t)e=1;else if(32==t)e=5;else{if(4!=t)return this.toRadix(t);e=2}var n,r=(1<<e)-1,i=!1,a="",s=this.t,o=this.DB-s*this.DB%e;if(s-- >0)for(o<this.DB&&(n=this[s]>>o)>0&&(i=!0,a=d(n));s>=0;)o<e?(n=(this[s]&(1<<o)-1)<<e-o,n|=this[--s]>>(o+=this.DB-e)):(n=this[s]>>(o-=e)&r,o<=0&&(o+=this.DB,--s)),n>0&&(i=!0),i&&(a+=d(n));return i?a:"0"},t.prototype.negate=function(){var e=H();return t.ZERO.subTo(this,e),e},t.prototype.abs=function(){return this.s<0?this.negate():this},t.prototype.compareTo=function(t){var e=this.s-t.s;if(0!=e)return e;var n=this.t;if(0!=(e=n-t.t))return this.s<0?-e:e;for(;--n>=0;)if(0!=(e=this[n]-t[n]))return e;return 0},t.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+X(this[this.t-1]^this.s&this.DM)},t.prototype.mod=function(e){var n=H();return this.abs().divRemTo(e,null,n),this.s<0&&n.compareTo(t.ZERO)>0&&e.subTo(n,n),n},t.prototype.modPowInt=function(t,e){var n;return n=t<256||e.isEven()?new F(e):new j(e),this.exp(t,n)},t.prototype.clone=function(){var t=H();return this.copyTo(t),t},t.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},t.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},t.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},t.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},t.prototype.toByteArray=function(){var t=this.t,e=[];e[0]=this.s;var n,r=this.DB-t*this.DB%8,i=0;if(t-- >0)for(r<this.DB&&(n=this[t]>>r)!=(this.s&this.DM)>>r&&(e[i++]=n|this.s<<this.DB-r);t>=0;)r<8?(n=(this[t]&(1<<r)-1)<<8-r,n|=this[--t]>>(r+=this.DB-8)):(n=this[t]>>(r-=8)&255,r<=0&&(r+=this.DB,--t)),0!=(128&n)&&(n|=-256),0==i&&(128&this.s)!=(128&n)&&++i,(i>0||n!=this.s)&&(e[i++]=n);return e},t.prototype.equals=function(t){return 0==this.compareTo(t)},t.prototype.min=function(t){return this.compareTo(t)<0?this:t},t.prototype.max=function(t){return this.compareTo(t)>0?this:t},t.prototype.and=function(t){var e=H();return this.bitwiseTo(t,p,e),e},t.prototype.or=function(t){var e=H();return this.bitwiseTo(t,m,e),e},t.prototype.xor=function(t){var e=H();return this.bitwiseTo(t,g,e),e},t.prototype.andNot=function(t){var e=H();return this.bitwiseTo(t,v,e),e},t.prototype.not=function(){for(var t=H(),e=0;e<this.t;++e)t[e]=this.DM&~this[e];return t.t=this.t,t.s=~this.s,t},t.prototype.shiftLeft=function(t){var e=H();return t<0?this.rShiftTo(-t,e):this.lShiftTo(t,e),e},t.prototype.shiftRight=function(t){var e=H();return t<0?this.lShiftTo(-t,e):this.rShiftTo(t,e),e},t.prototype.getLowestSetBit=function(){for(var t=0;t<this.t;++t)if(0!=this[t])return t*this.DB+y(this[t]);return this.s<0?this.t*this.DB:-1},t.prototype.bitCount=function(){for(var t=0,e=this.s&this.DM,n=0;n<this.t;++n)t+=_(this[n]^e);return t},t.prototype.testBit=function(t){var e=Math.floor(t/this.DB);return e>=this.t?0!=this.s:0!=(this[e]&1<<t%this.DB)},t.prototype.setBit=function(t){return this.changeBit(t,m)},t.prototype.clearBit=function(t){return this.changeBit(t,v)},t.prototype.flipBit=function(t){return this.changeBit(t,g)},t.prototype.add=function(t){var e=H();return this.addTo(t,e),e},t.prototype.subtract=function(t){var e=H();return this.subTo(t,e),e},t.prototype.multiply=function(t){var e=H();return this.multiplyTo(t,e),e},t.prototype.divide=function(t){var e=H();return this.divRemTo(t,e,null),e},t.prototype.remainder=function(t){var e=H();return this.divRemTo(t,null,e),e},t.prototype.divideAndRemainder=function(t){var e=H(),n=H();return this.divRemTo(t,e,n),[e,n]},t.prototype.modPow=function(t,e){var n,r,i=t.bitLength(),a=$(1);if(i<=0)return a;n=i<18?1:i<48?3:i<144?4:i<768?5:6,r=i<8?new F(e):e.isEven()?new U(e):new j(e);var s=[],o=3,u=n-1,c=(1<<n)-1;if(s[1]=r.convert(this),n>1){var l=H();for(r.sqrTo(s[1],l);o<=c;)s[o]=H(),r.mulTo(l,s[o-2],s[o]),o+=2}var h,f,d=t.t-1,p=!0,m=H();for(i=X(t[d])-1;d>=0;){for(i>=u?h=t[d]>>i-u&c:(h=(t[d]&(1<<i+1)-1)<<u-i,d>0&&(h|=t[d-1]>>this.DB+i-u)),o=n;0==(1&h);)h>>=1,--o;if((i-=o)<0&&(i+=this.DB,--d),p)s[h].copyTo(a),p=!1;else{for(;o>1;)r.sqrTo(a,m),r.sqrTo(m,a),o-=2;o>0?r.sqrTo(a,m):(f=a,a=m,m=f),r.mulTo(m,s[h],a)}for(;d>=0&&0==(t[d]&1<<i);)r.sqrTo(a,m),f=a,a=m,m=f,--i<0&&(i=this.DB-1,--d)}return r.revert(a)},t.prototype.modInverse=function(e){var n=e.isEven();if(this.isEven()&&n||0==e.signum())return t.ZERO;for(var r=e.clone(),i=this.clone(),a=$(1),s=$(0),o=$(0),u=$(1);0!=r.signum();){for(;r.isEven();)r.rShiftTo(1,r),n?(a.isEven()&&s.isEven()||(a.addTo(this,a),s.subTo(e,s)),a.rShiftTo(1,a)):s.isEven()||s.subTo(e,s),s.rShiftTo(1,s);for(;i.isEven();)i.rShiftTo(1,i),n?(o.isEven()&&u.isEven()||(o.addTo(this,o),u.subTo(e,u)),o.rShiftTo(1,o)):u.isEven()||u.subTo(e,u),u.rShiftTo(1,u);r.compareTo(i)>=0?(r.subTo(i,r),n&&a.subTo(o,a),s.subTo(u,s)):(i.subTo(r,i),n&&o.subTo(a,o),u.subTo(s,u))}return 0!=i.compareTo(t.ONE)?t.ZERO:u.compareTo(e)>=0?u.subtract(e):u.signum()<0?(u.addTo(e,u),u.signum()<0?u.add(e):u):u},t.prototype.pow=function(t){return this.exp(t,new L)},t.prototype.gcd=function(t){var e=this.s<0?this.negate():this.clone(),n=t.s<0?t.negate():t.clone();if(e.compareTo(n)<0){var r=e;e=n,n=r}var i=e.getLowestSetBit(),a=n.getLowestSetBit();if(a<0)return e;for(i<a&&(a=i),a>0&&(e.rShiftTo(a,e),n.rShiftTo(a,n));e.signum()>0;)(i=e.getLowestSetBit())>0&&e.rShiftTo(i,e),(i=n.getLowestSetBit())>0&&n.rShiftTo(i,n),e.compareTo(n)>=0?(e.subTo(n,e),e.rShiftTo(1,e)):(n.subTo(e,n),n.rShiftTo(1,n));return a>0&&n.lShiftTo(a,n),n},t.prototype.isProbablePrime=function(t){var e,n=this.abs();if(1==n.t&&n[0]<=V[V.length-1]){for(e=0;e<V.length;++e)if(n[0]==V[e])return!0;return!1}if(n.isEven())return!1;for(e=1;e<V.length;){for(var r=V[e],i=e+1;i<V.length&&r<B;)r*=V[i++];for(r=n.modInt(r);e<i;)if(r%V[e++]==0)return!1}return n.millerRabin(t)},t.prototype.copyTo=function(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t,t.s=this.s},t.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},t.prototype.fromString=function(e,n){var r;if(16==n)r=4;else if(8==n)r=3;else if(256==n)r=8;else if(2==n)r=1;else if(32==n)r=5;else{if(4!=n)return void this.fromRadix(e,n);r=2}this.t=0,this.s=0;for(var i=e.length,a=!1,s=0;--i>=0;){var o=8==r?255&+e[i]:K(e,i);o<0?"-"==e.charAt(i)&&(a=!0):(a=!1,0==s?this[this.t++]=o:s+r>this.DB?(this[this.t-1]|=(o&(1<<this.DB-s)-1)<<s,this[this.t++]=o>>this.DB-s):this[this.t-1]|=o<<s,(s+=r)>=this.DB&&(s-=this.DB))}8==r&&0!=(128&+e[0])&&(this.s=-1,s>0&&(this[this.t-1]|=(1<<this.DB-s)-1<<s)),this.clamp(),a&&t.ZERO.subTo(this,this)},t.prototype.clamp=function(){for(var t=this.s&this.DM;this.t>0&&this[this.t-1]==t;)--this.t},t.prototype.dlShiftTo=function(t,e){var n;for(n=this.t-1;n>=0;--n)e[n+t]=this[n];for(n=t-1;n>=0;--n)e[n]=0;e.t=this.t+t,e.s=this.s},t.prototype.drShiftTo=function(t,e){for(var n=t;n<this.t;++n)e[n-t]=this[n];e.t=Math.max(this.t-t,0),e.s=this.s},t.prototype.lShiftTo=function(t,e){for(var n=t%this.DB,r=this.DB-n,i=(1<<r)-1,a=Math.floor(t/this.DB),s=this.s<<n&this.DM,o=this.t-1;o>=0;--o)e[o+a+1]=this[o]>>r|s,s=(this[o]&i)<<n;for(o=a-1;o>=0;--o)e[o]=0;e[a]=s,e.t=this.t+a+1,e.s=this.s,e.clamp()},t.prototype.rShiftTo=function(t,e){e.s=this.s;var n=Math.floor(t/this.DB);if(n>=this.t)e.t=0;else{var r=t%this.DB,i=this.DB-r,a=(1<<r)-1;e[0]=this[n]>>r;for(var s=n+1;s<this.t;++s)e[s-n-1]|=(this[s]&a)<<i,e[s-n]=this[s]>>r;r>0&&(e[this.t-n-1]|=(this.s&a)<<i),e.t=this.t-n,e.clamp()}},t.prototype.subTo=function(t,e){for(var n=0,r=0,i=Math.min(t.t,this.t);n<i;)r+=this[n]-t[n],e[n++]=r&this.DM,r>>=this.DB;if(t.t<this.t){for(r-=t.s;n<this.t;)r+=this[n],e[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<t.t;)r-=t[n],e[n++]=r&this.DM,r>>=this.DB;r-=t.s}e.s=r<0?-1:0,r<-1?e[n++]=this.DV+r:r>0&&(e[n++]=r),e.t=n,e.clamp()},t.prototype.multiplyTo=function(e,n){var r=this.abs(),i=e.abs(),a=r.t;for(n.t=a+i.t;--a>=0;)n[a]=0;for(a=0;a<i.t;++a)n[a+r.t]=r.am(0,i[a],n,a,0,r.t);n.s=0,n.clamp(),this.s!=e.s&&t.ZERO.subTo(n,n)},t.prototype.squareTo=function(t){for(var e=this.abs(),n=t.t=2*e.t;--n>=0;)t[n]=0;for(n=0;n<e.t-1;++n){var r=e.am(n,e[n],t,2*n,0,1);(t[n+e.t]+=e.am(n+1,2*e[n],t,2*n+1,r,e.t-n-1))>=e.DV&&(t[n+e.t]-=e.DV,t[n+e.t+1]=1)}t.t>0&&(t[t.t-1]+=e.am(n,e[n],t,2*n,0,1)),t.s=0,t.clamp()},t.prototype.divRemTo=function(e,n,r){var i=e.abs();if(!(i.t<=0)){var a=this.abs();if(a.t<i.t)return null!=n&&n.fromInt(0),void(null!=r&&this.copyTo(r));null==r&&(r=H());var s=H(),o=this.s,u=e.s,c=this.DB-X(i[i.t-1]);c>0?(i.lShiftTo(c,s),a.lShiftTo(c,r)):(i.copyTo(s),a.copyTo(r));var l=s.t,h=s[l-1];if(0!=h){var f=h*(1<<this.F1)+(l>1?s[l-2]>>this.F2:0),d=this.FV/f,p=(1<<this.F1)/f,m=1<<this.F2,g=r.t,v=g-l,y=null==n?H():n;for(s.dlShiftTo(v,y),r.compareTo(y)>=0&&(r[r.t++]=1,r.subTo(y,r)),t.ONE.dlShiftTo(l,y),y.subTo(s,s);s.t<l;)s[s.t++]=0;for(;--v>=0;){var _=r[--g]==h?this.DM:Math.floor(r[g]*d+(r[g-1]+m)*p);if((r[g]+=s.am(0,_,r,v,0,l))<_)for(s.dlShiftTo(v,y),r.subTo(y,r);r[g]<--_;)r.subTo(y,r)}null!=n&&(r.drShiftTo(l,n),o!=u&&t.ZERO.subTo(n,n)),r.t=l,r.clamp(),c>0&&r.rShiftTo(c,r),o<0&&t.ZERO.subTo(r,r)}}},t.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(0==(1&t))return 0;var e=3&t;return(e=(e=(e=(e=e*(2-(15&t)*e)&15)*(2-(255&t)*e)&255)*(2-((65535&t)*e&65535))&65535)*(2-t*e%this.DV)%this.DV)>0?this.DV-e:-e},t.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},t.prototype.exp=function(e,n){if(e>4294967295||e<1)return t.ONE;var r=H(),i=H(),a=n.convert(this),s=X(e)-1;for(a.copyTo(r);--s>=0;)if(n.sqrTo(r,i),(e&1<<s)>0)n.mulTo(i,a,r);else{var o=r;r=i,i=o}return n.revert(r)},t.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},t.prototype.toRadix=function(t){if(null==t&&(t=10),0==this.signum()||t<2||t>36)return"0";var e=this.chunkSize(t),n=Math.pow(t,e),r=$(n),i=H(),a=H(),s="";for(this.divRemTo(r,i,a);i.signum()>0;)s=(n+a.intValue()).toString(t).substr(1)+s,i.divRemTo(r,i,a);return a.intValue().toString(t)+s},t.prototype.fromRadix=function(e,n){this.fromInt(0),null==n&&(n=10);for(var r=this.chunkSize(n),i=Math.pow(n,r),a=!1,s=0,o=0,u=0;u<e.length;++u){var c=K(e,u);c<0?"-"==e.charAt(u)&&0==this.signum()&&(a=!0):(o=n*o+c,++s>=r&&(this.dMultiply(i),this.dAddOffset(o,0),s=0,o=0))}s>0&&(this.dMultiply(Math.pow(n,s)),this.dAddOffset(o,0)),a&&t.ZERO.subTo(this,this)},t.prototype.fromNumber=function(e,n,r){if("number"==typeof n)if(e<2)this.fromInt(1);else for(this.fromNumber(e,r),this.testBit(e-1)||this.bitwiseTo(t.ONE.shiftLeft(e-1),m,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(n);)this.dAddOffset(2,0),this.bitLength()>e&&this.subTo(t.ONE.shiftLeft(e-1),this);else{var i=[],a=7&e;i.length=1+(e>>3),n.nextBytes(i),a>0?i[0]&=(1<<a)-1:i[0]=0,this.fromString(i,256)}},t.prototype.bitwiseTo=function(t,e,n){var r,i,a=Math.min(t.t,this.t);for(r=0;r<a;++r)n[r]=e(this[r],t[r]);if(t.t<this.t){for(i=t.s&this.DM,r=a;r<this.t;++r)n[r]=e(this[r],i);n.t=this.t}else{for(i=this.s&this.DM,r=a;r<t.t;++r)n[r]=e(i,t[r]);n.t=t.t}n.s=e(this.s,t.s),n.clamp()},t.prototype.changeBit=function(e,n){var r=t.ONE.shiftLeft(e);return this.bitwiseTo(r,n,r),r},t.prototype.addTo=function(t,e){for(var n=0,r=0,i=Math.min(t.t,this.t);n<i;)r+=this[n]+t[n],e[n++]=r&this.DM,r>>=this.DB;if(t.t<this.t){for(r+=t.s;n<this.t;)r+=this[n],e[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<t.t;)r+=t[n],e[n++]=r&this.DM,r>>=this.DB;r+=t.s}e.s=r<0?-1:0,r>0?e[n++]=r:r<-1&&(e[n++]=this.DV+r),e.t=n,e.clamp()},t.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},t.prototype.dAddOffset=function(t,e){if(0!=t){for(;this.t<=e;)this[this.t++]=0;for(this[e]+=t;this[e]>=this.DV;)this[e]-=this.DV,++e>=this.t&&(this[this.t++]=0),++this[e]}},t.prototype.multiplyLowerTo=function(t,e,n){var r=Math.min(this.t+t.t,e);for(n.s=0,n.t=r;r>0;)n[--r]=0;for(var i=n.t-this.t;r<i;++r)n[r+this.t]=this.am(0,t[r],n,r,0,this.t);for(i=Math.min(t.t,e);r<i;++r)this.am(0,t[r],n,r,0,e-r);n.clamp()},t.prototype.multiplyUpperTo=function(t,e,n){--e;var r=n.t=this.t+t.t-e;for(n.s=0;--r>=0;)n[r]=0;for(r=Math.max(e-this.t,0);r<t.t;++r)n[this.t+r-e]=this.am(e-r,t[r],n,0,0,this.t+r-e);n.clamp(),n.drShiftTo(1,n)},t.prototype.modInt=function(t){if(t<=0)return 0;var e=this.DV%t,n=this.s<0?t-1:0;if(this.t>0)if(0==e)n=this[0]%t;else for(var r=this.t-1;r>=0;--r)n=(e*n+this[r])%t;return n},t.prototype.millerRabin=function(e){var n=this.subtract(t.ONE),r=n.getLowestSetBit();if(r<=0)return!1;var i=n.shiftRight(r);(e=e+1>>1)>V.length&&(e=V.length);for(var a=H(),s=0;s<e;++s){a.fromInt(V[Math.floor(Math.random()*V.length)]);var o=a.modPow(i,this);if(0!=o.compareTo(t.ONE)&&0!=o.compareTo(n)){for(var u=1;u++<r&&0!=o.compareTo(n);)if(0==(o=o.modPowInt(2,this)).compareTo(t.ONE))return!1;if(0!=o.compareTo(n))return!1}}return!0},t.prototype.square=function(){var t=H();return this.squareTo(t),t},t.prototype.gcda=function(t,e){var n=this.s<0?this.negate():this.clone(),r=t.s<0?t.negate():t.clone();if(n.compareTo(r)<0){var i=n;n=r,r=i}var a=n.getLowestSetBit(),s=r.getLowestSetBit();if(s<0)e(n);else{a<s&&(s=a),s>0&&(n.rShiftTo(s,n),r.rShiftTo(s,r));var o=function(){(a=n.getLowestSetBit())>0&&n.rShiftTo(a,n),(a=r.getLowestSetBit())>0&&r.rShiftTo(a,r),n.compareTo(r)>=0?(n.subTo(r,n),n.rShiftTo(1,n)):(r.subTo(n,r),r.rShiftTo(1,r)),n.signum()>0?setTimeout(o,0):(s>0&&r.lShiftTo(s,r),setTimeout((function(){e(r)}),0))};setTimeout(o,10)}},t.prototype.fromNumberAsync=function(e,n,r,i){if("number"==typeof n)if(e<2)this.fromInt(1);else{this.fromNumber(e,r),this.testBit(e-1)||this.bitwiseTo(t.ONE.shiftLeft(e-1),m,this),this.isEven()&&this.dAddOffset(1,0);var a=this,s=function(){a.dAddOffset(2,0),a.bitLength()>e&&a.subTo(t.ONE.shiftLeft(e-1),a),a.isProbablePrime(n)?setTimeout((function(){i()}),0):setTimeout(s,0)};setTimeout(s,0)}else{var o=[],u=7&e;o.length=1+(e>>3),n.nextBytes(o),u>0?o[0]&=(1<<u)-1:o[0]=0,this.fromString(o,256)}},t}(),L=function(){function t(){}return t.prototype.convert=function(t){return t},t.prototype.revert=function(t){return t},t.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n)},t.prototype.sqrTo=function(t,e){t.squareTo(e)},t}(),F=function(){function t(t){this.m=t}return t.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},t.prototype.revert=function(t){return t},t.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},t.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}(),j=function(){function t(t){this.m=t,this.mp=t.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<t.DB-15)-1,this.mt2=2*t.t}return t.prototype.convert=function(t){var e=H();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(Y.ZERO)>0&&this.m.subTo(e,e),e},t.prototype.revert=function(t){var e=H();return t.copyTo(e),this.reduce(e),e},t.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var e=0;e<this.m.t;++e){var n=32767&t[e],r=n*this.mpl+((n*this.mph+(t[e]>>15)*this.mpl&this.um)<<15)&t.DM;for(t[n=e+this.m.t]+=this.m.am(0,r,t,e,0,this.m.t);t[n]>=t.DV;)t[n]-=t.DV,t[++n]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},t.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}(),U=function(){function t(t){this.m=t,this.r2=H(),this.q3=H(),Y.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t)}return t.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var e=H();return t.copyTo(e),this.reduce(e),e},t.prototype.revert=function(t){return t},t.prototype.reduce=function(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);t.compareTo(this.m)>=0;)t.subTo(this.m,t)},t.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}();function H(){return new Y(null)}function z(t,e){return new Y(t,e)}var q="undefined"!=typeof navigator;q&&"Microsoft Internet Explorer"==navigator.appName?(Y.prototype.am=function(t,e,n,r,i,a){for(var s=32767&e,o=e>>15;--a>=0;){var u=32767&this[t],c=this[t++]>>15,l=o*u+c*s;i=((u=s*u+((32767&l)<<15)+n[r]+(1073741823&i))>>>30)+(l>>>15)+o*c+(i>>>30),n[r++]=1073741823&u}return i},P=30):q&&"Netscape"!=navigator.appName?(Y.prototype.am=function(t,e,n,r,i,a){for(;--a>=0;){var s=e*this[t++]+n[r]+i;i=Math.floor(s/67108864),n[r++]=67108863&s}return i},P=26):(Y.prototype.am=function(t,e,n,r,i,a){for(var s=16383&e,o=e>>14;--a>=0;){var u=16383&this[t],c=this[t++]>>14,l=o*u+c*s;i=((u=s*u+((16383&l)<<14)+n[r]+i)>>28)+(l>>14)+o*c,n[r++]=268435455&u}return i},P=28),Y.prototype.DB=P,Y.prototype.DM=(1<<P)-1,Y.prototype.DV=1<<P;Y.prototype.FV=Math.pow(2,52),Y.prototype.F1=52-P,Y.prototype.F2=2*P-52;var G,W,Z=[];for(G="0".charCodeAt(0),W=0;W<=9;++W)Z[G++]=W;for(G="a".charCodeAt(0),W=10;W<36;++W)Z[G++]=W;for(G="A".charCodeAt(0),W=10;W<36;++W)Z[G++]=W;function K(t,e){var n=Z[t.charCodeAt(e)];return null==n?-1:n}function $(t){var e=H();return e.fromInt(t),e}function X(t){var e,n=1;return 0!=(e=t>>>16)&&(t=e,n+=16),0!=(e=t>>8)&&(t=e,n+=8),0!=(e=t>>4)&&(t=e,n+=4),0!=(e=t>>2)&&(t=e,n+=2),0!=(e=t>>1)&&(t=e,n+=1),n}Y.ZERO=$(0),Y.ONE=$(1);var Q=function(){function t(){this.i=0,this.j=0,this.S=[]}return t.prototype.init=function(t){var e,n,r;for(e=0;e<256;++e)this.S[e]=e;for(n=0,e=0;e<256;++e)n=n+this.S[e]+t[e%t.length]&255,r=this.S[e],this.S[e]=this.S[n],this.S[n]=r;this.i=0,this.j=0},t.prototype.next=function(){var t;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,t=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=t,this.S[t+this.S[this.i]&255]},t}();var J,tt,et=null;if(null==et){et=[],tt=0;var nt=void 0;if(window.crypto&&window.crypto.getRandomValues){var rt=new Uint32Array(256);for(window.crypto.getRandomValues(rt),nt=0;nt<rt.length;++nt)et[tt++]=255&rt[nt]}var it=0,at=function(t){if((it=it||0)>=256||tt>=256)window.removeEventListener?window.removeEventListener("mousemove",at,!1):window.detachEvent&&window.detachEvent("onmousemove",at);else try{var e=t.x+t.y;et[tt++]=255&e,it+=1}catch(t){}};window.addEventListener?window.addEventListener("mousemove",at,!1):window.attachEvent&&window.attachEvent("onmousemove",at)}function st(){if(null==J){for(J=new Q;tt<256;){var t=Math.floor(65536*Math.random());et[tt++]=255&t}for(J.init(et),tt=0;tt<et.length;++tt)et[tt]=0;tt=0}return J.next()}var ot=function(){function t(){}return t.prototype.nextBytes=function(t){for(var e=0;e<t.length;++e)t[e]=st()},t}();var ut=function(){function t(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return t.prototype.doPublic=function(t){return t.modPowInt(this.e,this.n)},t.prototype.doPrivate=function(t){if(null==this.p||null==this.q)return t.modPow(this.d,this.n);for(var e=t.mod(this.p).modPow(this.dmp1,this.p),n=t.mod(this.q).modPow(this.dmq1,this.q);e.compareTo(n)<0;)e=e.add(this.p);return e.subtract(n).multiply(this.coeff).mod(this.p).multiply(this.q).add(n)},t.prototype.setPublic=function(t,e){null!=t&&null!=e&&t.length>0&&e.length>0?(this.n=z(t,16),this.e=parseInt(e,16)):console.error("Invalid RSA public key")},t.prototype.encrypt=function(t){var e=this.n.bitLength()+7>>3,n=function(t,e){if(e<t.length+11)return console.error("Message too long for RSA"),null;for(var n=[],r=t.length-1;r>=0&&e>0;){var i=t.charCodeAt(r--);i<128?n[--e]=i:i>127&&i<2048?(n[--e]=63&i|128,n[--e]=i>>6|192):(n[--e]=63&i|128,n[--e]=i>>6&63|128,n[--e]=i>>12|224)}n[--e]=0;for(var a=new ot,s=[];e>2;){for(s[0]=0;0==s[0];)a.nextBytes(s);n[--e]=s[0]}return n[--e]=2,n[--e]=0,new Y(n)}(t,e);if(null==n)return null;var r=this.doPublic(n);if(null==r)return null;for(var i=r.toString(16),a=i.length,s=0;s<2*e-a;s++)i="0"+i;return i},t.prototype.setPrivate=function(t,e,n){null!=t&&null!=e&&t.length>0&&e.length>0?(this.n=z(t,16),this.e=parseInt(e,16),this.d=z(n,16)):console.error("Invalid RSA private key")},t.prototype.setPrivateEx=function(t,e,n,r,i,a,s,o){null!=t&&null!=e&&t.length>0&&e.length>0?(this.n=z(t,16),this.e=parseInt(e,16),this.d=z(n,16),this.p=z(r,16),this.q=z(i,16),this.dmp1=z(a,16),this.dmq1=z(s,16),this.coeff=z(o,16)):console.error("Invalid RSA private key")},t.prototype.generate=function(t,e){var n=new ot,r=t>>1;this.e=parseInt(e,16);for(var i=new Y(e,16);;){for(;this.p=new Y(t-r,1,n),0!=this.p.subtract(Y.ONE).gcd(i).compareTo(Y.ONE)||!this.p.isProbablePrime(10););for(;this.q=new Y(r,1,n),0!=this.q.subtract(Y.ONE).gcd(i).compareTo(Y.ONE)||!this.q.isProbablePrime(10););if(this.p.compareTo(this.q)<=0){var a=this.p;this.p=this.q,this.q=a}var s=this.p.subtract(Y.ONE),o=this.q.subtract(Y.ONE),u=s.multiply(o);if(0==u.gcd(i).compareTo(Y.ONE)){this.n=this.p.multiply(this.q),this.d=i.modInverse(u),this.dmp1=this.d.mod(s),this.dmq1=this.d.mod(o),this.coeff=this.q.modInverse(this.p);break}}},t.prototype.decrypt=function(t){var e=z(t,16),n=this.doPrivate(e);return null==n?null:function(t,e){var n=t.toByteArray(),r=0;for(;r<n.length&&0==n[r];)++r;if(n.length-r!=e-1||2!=n[r])return null;++r;for(;0!=n[r];)if(++r>=n.length)return null;var i="";for(;++r<n.length;){var a=255&n[r];a<128?i+=String.fromCharCode(a):a>191&&a<224?(i+=String.fromCharCode((31&a)<<6|63&n[r+1]),++r):(i+=String.fromCharCode((15&a)<<12|(63&n[r+1])<<6|63&n[r+2]),r+=2)}return i}(n,this.n.bitLength()+7>>3)},t.prototype.generateAsync=function(t,e,n){var r=new ot,i=t>>1;this.e=parseInt(e,16);var a=new Y(e,16),s=this,o=function(){var e=function(){if(s.p.compareTo(s.q)<=0){var t=s.p;s.p=s.q,s.q=t}var e=s.p.subtract(Y.ONE),r=s.q.subtract(Y.ONE),i=e.multiply(r);0==i.gcd(a).compareTo(Y.ONE)?(s.n=s.p.multiply(s.q),s.d=a.modInverse(i),s.dmp1=s.d.mod(e),s.dmq1=s.d.mod(r),s.coeff=s.q.modInverse(s.p),setTimeout((function(){n()}),0)):setTimeout(o,0)},u=function(){s.q=H(),s.q.fromNumberAsync(i,1,r,(function(){s.q.subtract(Y.ONE).gcda(a,(function(t){0==t.compareTo(Y.ONE)&&s.q.isProbablePrime(10)?setTimeout(e,0):setTimeout(u,0)}))}))},c=function(){s.p=H(),s.p.fromNumberAsync(t-i,1,r,(function(){s.p.subtract(Y.ONE).gcda(a,(function(t){0==t.compareTo(Y.ONE)&&s.p.isProbablePrime(10)?setTimeout(u,0):setTimeout(c,0)}))}))};setTimeout(c,0)};setTimeout(o,0)},t.prototype.sign=function(t,e,n){var r=function(t,e){if(e<t.length+22)return console.error("Message too long for RSA"),null;for(var n=e-t.length-6,r="",i=0;i<n;i+=2)r+="ff";return z("0001"+r+"00"+t,16)}((ct[n]||"")+e(t).toString(),this.n.bitLength()/4);if(null==r)return null;var i=this.doPrivate(r);if(null==i)return null;var a=i.toString(16);return 0==(1&a.length)?a:"0"+a},t.prototype.verify=function(t,e,n){var r=z(e,16),i=this.doPublic(r);return null==i?null:function(t){for(var e in ct)if(ct.hasOwnProperty(e)){var n=ct[e],r=n.length;if(t.substr(0,r)==n)return t.substr(r)}return t}
|
|
1
|
+
import t from"lodash";import e from"axios";var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},n(t,e)};var r=function(){return r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};function i(t,e,n,r){return new(n||(n=Promise))((function(i,a){function s(t){try{u(r.next(t))}catch(t){a(t)}}function o(t){try{u(r.throw(t))}catch(t){a(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(s,o)}u((r=r.apply(t,e||[])).next())}))}function a(t,e){var n,r,i,a,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function o(o){return function(u){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,o[0]&&(s=0)),s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){s.label=o[1];break}if(6===o[0]&&s.label<i[1]){s.label=i[1],i=o;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(o);break}i[2]&&s.ops.pop(),s.trys.pop();continue}o=e.call(t,s)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,u])}}}function s(t,e,n){if(n||2===arguments.length)for(var r,i=0,a=e.length;i<a;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}var o={createItem:function(e){e.catch={selectd:t.cloneDeep(e.selectd),list:t.cloneDeep(e.list)}},resetData:function(e,n){var r=t.cloneDeep(n);e.selected=r.selected,e.list=r.list},execute:function(e){e.undoRedoPointer===e.undos.length-1?(e.undos.length>10&&t.pullAt(e.undos,0),e.undos.push({selectd:t.cloneDeep(e.selectd),list:t.cloneDeep(e.list)})):e.undos.splice(e.undoRedoPointer+1,e.undos.length-1-e.undoRedoPointer,{selectd:t.cloneDeep(e.selectd),list:t.cloneDeep(e.list)}),e.undoRedoPointer=e.undos.length-1},undo:function(t){if(t.undoRedoPointer>0&&t.undoRedoPointer<t.undos.length){t.undoRedoPointer=t.undoRedoPointer-1;var e=t.undos[t.undoRedoPointer];this.commit("GoCom/resetData",e)}},redo:function(t){if(t.undoRedoPointer>=0&&t.undoRedoPointer<t.undos.length){t.undoRedoPointer=t.undoRedoPointer+1;var e=t.undos[t.undoRedoPointer];this.commit("GoCom/resetData",e)}}},u=new Blob(["\nfunction proxyObj(originObj) {\n const exposeObj = new Proxy(originObj, {\n has: (target, key) => {\n if (['fetch', 'XMLHttpRequest', 'postMessage'].indexOf(key) >= 0) {\n throw new Error('Illegal operation for key'+key)\n } else {\n return target[key]\n }\n },\n })\n return exposeObj\n}\nfunction compileCode(src) {\n src = 'with (exposeObj) {'+src+'}'\n //console.log(src)\n return new Function('exposeObj', src)\n}\nfunction run(code) {\n let proxy = proxyObj({})\n let result = compileCode(code)(proxy)\n return result\n}\n\nonmessage = (e) => {\n try {\n let result = run(e.data.code)\n postMessage({\n code: 1,\n result,\n })\n } catch (err) {\n postMessage({\n code: -1,\n err,\n })\n }\n}\n\n"]),c=URL.createObjectURL(u);function l(t,e){return void 0===e&&(e=5e3),i(this,void 0,void 0,(function(){var n;return a(this,(function(r){return n=new Worker(c),[2,new Promise((function(r,i){var a=function(){clearTimeout(o),n.removeEventListener("message",s),n.terminate(),n=null},s=function(t){var e=t.data,n=e.code,s=e.result,o=e.err;a(),1===n?r(s):i(o)};n.postMessage({code:t}),n.addEventListener("message",s);var o=setTimeout((function(){a(),i("timeout")}),e)}))]}))}))}function h(t,e,n,r){return i(this,void 0,void 0,(function(){var i,s,o,u,c,l,h,d;return a(this,(function(p){switch(p.label){case 0:if(i=t,s=e.use,o=e.data,!s)return[3,4];u=function(t){var e,n,s;return a(this,(function(a){switch(a.label){case 0:return o[t].use?(e=o[t].dependVars,n={},r&&n&&e&&e.length&&e.map((function(t){var e=r.filter((function(e){return e.mapField==t&&e.current}));e&&e.length&&e.forEach((function(e){""!=e.value&&(n[t]=e.value)}))})),[4,f(o[t].code,i,n)]):[3,2];case 1:s=a.sent(),i=s.data,a.label=2;case 2:return[2]}}))},c=0,p.label=1;case 1:return c<o.length?[5,u(c)]:[3,4];case 2:p.sent(),p.label=3;case 3:return c++,[3,1];case 4:return h=i,(l=n)&&"object"==typeof i&&(Array.isArray(h)?(h=[],i.forEach((function(t){d={},l.forEach((function(e){d[e.field]=t[e.mapField]})),h.push(d)}))):(h={},l.forEach((function(t){h[t.field]=i[t.mapField]})))),[2,h]}}))}))}function f(t,e,n){return void 0===n&&(n={}),i(this,void 0,void 0,(function(){var r,i,s,o,u;return a(this,(function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),s=(r=[e,n,""])[1],o=r[2],"object"==typeof(i=r[0])&&(i=JSON.stringify(e)),"object"==typeof n&&(s=JSON.stringify(n)),Object.keys(n).forEach((function(t){return o+="".concat(t,",")})),u="let data=eval(".concat(i,"); "),u+=o?"let {".concat(o,"} = eval(").concat(s,"); "):"",[4,l(u+="".concat(t))];case 1:return[2,{success:!0,data:a.sent()}];case 2:return[2,{success:!1,error:a.sent(),data:e}];case 3:return[2]}}))}))}var d="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function p(){throw new Error("setTimeout has not been defined")}function m(){throw new Error("clearTimeout has not been defined")}var g=p,v=m;function y(t){if(g===setTimeout)return setTimeout(t,0);if((g===p||!g)&&setTimeout)return g=setTimeout,setTimeout(t,0);try{return g(t,0)}catch(e){try{return g.call(null,t,0)}catch(e){return g.call(this,t,0)}}}"function"==typeof d.setTimeout&&(g=setTimeout),"function"==typeof d.clearTimeout&&(v=clearTimeout);var b,_=[],w=!1,D=-1;function T(){w&&b&&(w=!1,b.length?_=b.concat(_):D=-1,_.length&&S())}function S(){if(!w){var t=y(T);w=!0;for(var e=_.length;e;){for(b=_,_=[];++D<e;)b&&b[D].run();D=-1,e=_.length}b=null,w=!1,function(t){if(v===clearTimeout)return clearTimeout(t);if((v===m||!v)&&clearTimeout)return v=clearTimeout,clearTimeout(t);try{v(t)}catch(e){try{return v.call(null,t)}catch(e){return v.call(this,t)}}}(t)}}function x(t,e){this.fun=t,this.array=e}x.prototype.run=function(){this.fun.apply(null,this.array)};function E(){}var M=E,O=E,k=E,C=E,A=E,P=E,R=E;var N=d.performance||{},I=N.now||N.mozNow||N.msNow||N.oNow||N.webkitNow||function(){return(new Date).getTime()};var V=new Date;var B={nextTick:function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];_.push(new x(t,e)),1!==_.length||w||y(S)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:M,addListener:O,once:k,off:C,removeListener:A,removeAllListeners:P,emit:R,binding:function(t){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(t){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(t){var e=.001*I.call(N),n=Math.floor(e),r=Math.floor(e%1*1e9);return t&&(n-=t[0],(r-=t[1])<0&&(n--,r+=1e9)),[n,r]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-V)/1e3}};function Y(t){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(t)}function L(t,e){return t&e}function F(t,e){return t|e}function j(t,e){return t^e}function U(t,e){return t&~e}function H(t){if(0==t)return-1;var e=0;return 0==(65535&t)&&(t>>=16,e+=16),0==(255&t)&&(t>>=8,e+=8),0==(15&t)&&(t>>=4,e+=4),0==(3&t)&&(t>>=2,e+=2),0==(1&t)&&++e,e}function z(t){for(var e=0;0!=t;)t&=t-1,++e;return e}var q,G="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function W(t){var e,n,r="";for(e=0;e+3<=t.length;e+=3)n=parseInt(t.substring(e,e+3),16),r+=G.charAt(n>>6)+G.charAt(63&n);for(e+1==t.length?(n=parseInt(t.substring(e,e+1),16),r+=G.charAt(n<<2)):e+2==t.length&&(n=parseInt(t.substring(e,e+2),16),r+=G.charAt(n>>2)+G.charAt((3&n)<<4));(3&r.length)>0;)r+="=";return r}function Z(t){var e,n="",r=0,i=0;for(e=0;e<t.length&&"="!=t.charAt(e);++e){var a=G.indexOf(t.charAt(e));a<0||(0==r?(n+=Y(a>>2),i=3&a,r=1):1==r?(n+=Y(i<<2|a>>4),i=15&a,r=2):2==r?(n+=Y(i),n+=Y(a>>2),i=3&a,r=3):(n+=Y(i<<2|a>>4),n+=Y(15&a),r=0))}return 1==r&&(n+=Y(i<<2)),n}var $,K=function(t){var e;if(void 0===q){var n="0123456789ABCDEF",r=" \f\n\r\t \u2028\u2029";for(q={},e=0;e<16;++e)q[n.charAt(e)]=e;for(n=n.toLowerCase(),e=10;e<16;++e)q[n.charAt(e)]=e;for(e=0;e<r.length;++e)q[r.charAt(e)]=-1}var i=[],a=0,s=0;for(e=0;e<t.length;++e){var o=t.charAt(e);if("="==o)break;if(-1!=(o=q[o])){if(void 0===o)throw new Error("Illegal character at offset "+e);a|=o,++s>=2?(i[i.length]=a,a=0,s=0):a<<=4}}if(s)throw new Error("Hex encoding incomplete: 4 bits missing");return i},X={decode:function(t){var e;if(void 0===$){var n="= \f\n\r\t \u2028\u2029";for($=Object.create(null),e=0;e<64;++e)$["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e)]=e;for($["-"]=62,$._=63,e=0;e<n.length;++e)$[n.charAt(e)]=-1}var r=[],i=0,a=0;for(e=0;e<t.length;++e){var s=t.charAt(e);if("="==s)break;if(-1!=(s=$[s])){if(void 0===s)throw new Error("Illegal character at offset "+e);i|=s,++a>=4?(r[r.length]=i>>16,r[r.length]=i>>8&255,r[r.length]=255&i,i=0,a=0):i<<=6}}switch(a){case 1:throw new Error("Base64 encoding incomplete: at least 2 bits missing");case 2:r[r.length]=i>>10;break;case 3:r[r.length]=i>>16,r[r.length]=i>>8&255}return r},re:/-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,unarmor:function(t){var e=X.re.exec(t);if(e)if(e[1])t=e[1];else{if(!e[2])throw new Error("RegExp out of sync");t=e[2]}return X.decode(t)}},Q=1e13,J=function(){function t(t){this.buf=[+t||0]}return t.prototype.mulAdd=function(t,e){var n,r,i=this.buf,a=i.length;for(n=0;n<a;++n)(r=i[n]*t+e)<Q?e=0:r-=(e=0|r/Q)*Q,i[n]=r;e>0&&(i[n]=e)},t.prototype.sub=function(t){var e,n,r=this.buf,i=r.length;for(e=0;e<i;++e)(n=r[e]-t)<0?(n+=Q,t=1):t=0,r[e]=n;for(;0===r[r.length-1];)r.pop()},t.prototype.toString=function(t){if(10!=(t||10))throw new Error("only base 10 is supported");for(var e=this.buf,n=e[e.length-1].toString(),r=e.length-2;r>=0;--r)n+=(Q+e[r]).toString().substring(1);return n},t.prototype.valueOf=function(){for(var t=this.buf,e=0,n=t.length-1;n>=0;--n)e=e*Q+t[n];return e},t.prototype.simplify=function(){var t=this.buf;return 1==t.length?t[0]:this},t}(),tt=/^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/,et=/^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;function nt(t,e){return t.length>e&&(t=t.substring(0,e)+"…"),t}var rt,it=function(){function t(e,n){this.hexDigits="0123456789ABCDEF",e instanceof t?(this.enc=e.enc,this.pos=e.pos):(this.enc=e,this.pos=n)}return t.prototype.get=function(t){if(void 0===t&&(t=this.pos++),t>=this.enc.length)throw new Error("Requesting byte offset ".concat(t," on a stream of length ").concat(this.enc.length));return"string"==typeof this.enc?this.enc.charCodeAt(t):this.enc[t]},t.prototype.hexByte=function(t){return this.hexDigits.charAt(t>>4&15)+this.hexDigits.charAt(15&t)},t.prototype.hexDump=function(t,e,n){for(var r="",i=t;i<e;++i)if(r+=this.hexByte(this.get(i)),!0!==n)switch(15&i){case 7:r+=" ";break;case 15:r+="\n";break;default:r+=" "}return r},t.prototype.isASCII=function(t,e){for(var n=t;n<e;++n){var r=this.get(n);if(r<32||r>176)return!1}return!0},t.prototype.parseStringISO=function(t,e){for(var n="",r=t;r<e;++r)n+=String.fromCharCode(this.get(r));return n},t.prototype.parseStringUTF=function(t,e){for(var n="",r=t;r<e;){var i=this.get(r++);n+=i<128?String.fromCharCode(i):i>191&&i<224?String.fromCharCode((31&i)<<6|63&this.get(r++)):String.fromCharCode((15&i)<<12|(63&this.get(r++))<<6|63&this.get(r++))}return n},t.prototype.parseStringBMP=function(t,e){for(var n,r,i="",a=t;a<e;)n=this.get(a++),r=this.get(a++),i+=String.fromCharCode(n<<8|r);return i},t.prototype.parseTime=function(t,e,n){var r=this.parseStringISO(t,e),i=(n?tt:et).exec(r);return i?(n&&(i[1]=+i[1],i[1]+=+i[1]<70?2e3:1900),r=i[1]+"-"+i[2]+"-"+i[3]+" "+i[4],i[5]&&(r+=":"+i[5],i[6]&&(r+=":"+i[6],i[7]&&(r+="."+i[7]))),i[8]&&(r+=" UTC","Z"!=i[8]&&(r+=i[8],i[9]&&(r+=":"+i[9]))),r):"Unrecognized time: "+r},t.prototype.parseInteger=function(t,e){for(var n,r=this.get(t),i=r>127,a=i?255:0,s="";r==a&&++t<e;)r=this.get(t);if(0===(n=e-t))return i?-1:0;if(n>4){for(s=r,n<<=3;0==(128&(+s^a));)s=+s<<1,--n;s="("+n+" bit)\n"}i&&(r-=256);for(var o=new J(r),u=t+1;u<e;++u)o.mulAdd(256,this.get(u));return s+o.toString()},t.prototype.parseBitString=function(t,e,n){for(var r=this.get(t),i="("+((e-t-1<<3)-r)+" bit)\n",a="",s=t+1;s<e;++s){for(var o=this.get(s),u=s==e-1?r:0,c=7;c>=u;--c)a+=o>>c&1?"1":"0";if(a.length>n)return i+nt(a,n)}return i+a},t.prototype.parseOctetString=function(t,e,n){if(this.isASCII(t,e))return nt(this.parseStringISO(t,e),n);var r=e-t,i="("+r+" byte)\n";r>(n/=2)&&(e=t+n);for(var a=t;a<e;++a)i+=this.hexByte(this.get(a));return r>n&&(i+="…"),i},t.prototype.parseOID=function(t,e,n){for(var r="",i=new J,a=0,s=t;s<e;++s){var o=this.get(s);if(i.mulAdd(128,127&o),a+=7,!(128&o)){if(""===r)if((i=i.simplify())instanceof J)i.sub(80),r="2."+i.toString();else{var u=i<80?i<40?0:1:2;r=u+"."+(i-40*u)}else r+="."+i.toString();if(r.length>n)return nt(r,n);i=new J,a=0}}return a>0&&(r+=".incomplete"),r},t}(),at=function(){function t(t,e,n,r,i){if(!(r instanceof st))throw new Error("Invalid tag value.");this.stream=t,this.header=e,this.length=n,this.tag=r,this.sub=i}return t.prototype.typeName=function(){switch(this.tag.tagClass){case 0:switch(this.tag.tagNumber){case 0:return"EOC";case 1:return"BOOLEAN";case 2:return"INTEGER";case 3:return"BIT_STRING";case 4:return"OCTET_STRING";case 5:return"NULL";case 6:return"OBJECT_IDENTIFIER";case 7:return"ObjectDescriptor";case 8:return"EXTERNAL";case 9:return"REAL";case 10:return"ENUMERATED";case 11:return"EMBEDDED_PDV";case 12:return"UTF8String";case 16:return"SEQUENCE";case 17:return"SET";case 18:return"NumericString";case 19:return"PrintableString";case 20:return"TeletexString";case 21:return"VideotexString";case 22:return"IA5String";case 23:return"UTCTime";case 24:return"GeneralizedTime";case 25:return"GraphicString";case 26:return"VisibleString";case 27:return"GeneralString";case 28:return"UniversalString";case 30:return"BMPString"}return"Universal_"+this.tag.tagNumber.toString();case 1:return"Application_"+this.tag.tagNumber.toString();case 2:return"["+this.tag.tagNumber.toString()+"]";case 3:return"Private_"+this.tag.tagNumber.toString()}},t.prototype.content=function(t){if(void 0===this.tag)return null;void 0===t&&(t=1/0);var e=this.posContent(),n=Math.abs(this.length);if(!this.tag.isUniversal())return null!==this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(e,e+n,t);switch(this.tag.tagNumber){case 1:return 0===this.stream.get(e)?"false":"true";case 2:return this.stream.parseInteger(e,e+n);case 3:return this.sub?"("+this.sub.length+" elem)":this.stream.parseBitString(e,e+n,t);case 4:return this.sub?"("+this.sub.length+" elem)":this.stream.parseOctetString(e,e+n,t);case 6:return this.stream.parseOID(e,e+n,t);case 16:case 17:return null!==this.sub?"("+this.sub.length+" elem)":"(no elem)";case 12:return nt(this.stream.parseStringUTF(e,e+n),t);case 18:case 19:case 20:case 21:case 22:case 26:return nt(this.stream.parseStringISO(e,e+n),t);case 30:return nt(this.stream.parseStringBMP(e,e+n),t);case 23:case 24:return this.stream.parseTime(e,e+n,23==this.tag.tagNumber)}return null},t.prototype.toString=function(){return this.typeName()+"@"+this.stream.pos+"[header:"+this.header+",length:"+this.length+",sub:"+(null===this.sub?"null":this.sub.length)+"]"},t.prototype.toPrettyString=function(t){void 0===t&&(t="");var e=t+this.typeName()+" @"+this.stream.pos;if(this.length>=0&&(e+="+"),e+=this.length,this.tag.tagConstructed?e+=" (constructed)":!this.tag.isUniversal()||3!=this.tag.tagNumber&&4!=this.tag.tagNumber||null===this.sub||(e+=" (encapsulates)"),e+="\n",null!==this.sub){t+=" ";for(var n=0,r=this.sub.length;n<r;++n)e+=this.sub[n].toPrettyString(t)}return e},t.prototype.posStart=function(){return this.stream.pos},t.prototype.posContent=function(){return this.stream.pos+this.header},t.prototype.posEnd=function(){return this.stream.pos+this.header+Math.abs(this.length)},t.prototype.toHexString=function(){return this.stream.hexDump(this.posStart(),this.posEnd(),!0)},t.decodeLength=function(t){var e=t.get(),n=127&e;if(n==e)return n;if(n>6)throw new Error("Length over 48 bits not supported at position "+(t.pos-1));if(0===n)return null;e=0;for(var r=0;r<n;++r)e=256*e+t.get();return e},t.prototype.getHexStringValue=function(){var t=this.toHexString(),e=2*this.header,n=2*this.length;return t.substr(e,n)},t.decode=function(e){var n;n=e instanceof it?e:new it(e,0);var r=new it(n),i=new st(n),a=t.decodeLength(n),s=n.pos,o=s-r.pos,u=null,c=function(){var e=[];if(null!==a){for(var r=s+a;n.pos<r;)e[e.length]=t.decode(n);if(n.pos!=r)throw new Error("Content size is not correct for container starting at offset "+s)}else try{for(;;){var i=t.decode(n);if(i.tag.isEOC())break;e[e.length]=i}a=s-n.pos}catch(t){throw new Error("Exception while decoding undefined length content: "+t)}return e};if(i.tagConstructed)u=c();else if(i.isUniversal()&&(3==i.tagNumber||4==i.tagNumber))try{if(3==i.tagNumber&&0!=n.get())throw new Error("BIT STRINGs with unused bits cannot encapsulate.");u=c();for(var l=0;l<u.length;++l)if(u[l].tag.isEOC())throw new Error("EOC is not supposed to be actual content.")}catch(t){u=null}if(null===u){if(null===a)throw new Error("We can't skip over an invalid tag with undefined length at offset "+s);n.pos=s+Math.abs(a)}return new t(r,o,a,i,u)},t}(),st=function(){function t(t){var e=t.get();if(this.tagClass=e>>6,this.tagConstructed=0!=(32&e),this.tagNumber=31&e,31==this.tagNumber){var n=new J;do{e=t.get(),n.mulAdd(128,127&e)}while(128&e);this.tagNumber=n.simplify()}}return t.prototype.isUniversal=function(){return 0===this.tagClass},t.prototype.isEOC=function(){return 0===this.tagClass&&0===this.tagNumber},t}(),ot=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],ut=(1<<26)/ot[ot.length-1],ct=function(){function t(t,e,n){null!=t&&("number"==typeof t?this.fromNumber(t,e,n):null==e&&"string"!=typeof t?this.fromString(t,256):this.fromString(t,e))}return t.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);var e;if(16==t)e=4;else if(8==t)e=3;else if(2==t)e=1;else if(32==t)e=5;else{if(4!=t)return this.toRadix(t);e=2}var n,r=(1<<e)-1,i=!1,a="",s=this.t,o=this.DB-s*this.DB%e;if(s-- >0)for(o<this.DB&&(n=this[s]>>o)>0&&(i=!0,a=Y(n));s>=0;)o<e?(n=(this[s]&(1<<o)-1)<<e-o,n|=this[--s]>>(o+=this.DB-e)):(n=this[s]>>(o-=e)&r,o<=0&&(o+=this.DB,--s)),n>0&&(i=!0),i&&(a+=Y(n));return i?a:"0"},t.prototype.negate=function(){var e=pt();return t.ZERO.subTo(this,e),e},t.prototype.abs=function(){return this.s<0?this.negate():this},t.prototype.compareTo=function(t){var e=this.s-t.s;if(0!=e)return e;var n=this.t;if(0!=(e=n-t.t))return this.s<0?-e:e;for(;--n>=0;)if(0!=(e=this[n]-t[n]))return e;return 0},t.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+Dt(this[this.t-1]^this.s&this.DM)},t.prototype.mod=function(e){var n=pt();return this.abs().divRemTo(e,null,n),this.s<0&&n.compareTo(t.ZERO)>0&&e.subTo(n,n),n},t.prototype.modPowInt=function(t,e){var n;return n=t<256||e.isEven()?new ht(e):new ft(e),this.exp(t,n)},t.prototype.clone=function(){var t=pt();return this.copyTo(t),t},t.prototype.intValue=function(){if(this.s<0){if(1==this.t)return this[0]-this.DV;if(0==this.t)return-1}else{if(1==this.t)return this[0];if(0==this.t)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]},t.prototype.byteValue=function(){return 0==this.t?this.s:this[0]<<24>>24},t.prototype.shortValue=function(){return 0==this.t?this.s:this[0]<<16>>16},t.prototype.signum=function(){return this.s<0?-1:this.t<=0||1==this.t&&this[0]<=0?0:1},t.prototype.toByteArray=function(){var t=this.t,e=[];e[0]=this.s;var n,r=this.DB-t*this.DB%8,i=0;if(t-- >0)for(r<this.DB&&(n=this[t]>>r)!=(this.s&this.DM)>>r&&(e[i++]=n|this.s<<this.DB-r);t>=0;)r<8?(n=(this[t]&(1<<r)-1)<<8-r,n|=this[--t]>>(r+=this.DB-8)):(n=this[t]>>(r-=8)&255,r<=0&&(r+=this.DB,--t)),0!=(128&n)&&(n|=-256),0==i&&(128&this.s)!=(128&n)&&++i,(i>0||n!=this.s)&&(e[i++]=n);return e},t.prototype.equals=function(t){return 0==this.compareTo(t)},t.prototype.min=function(t){return this.compareTo(t)<0?this:t},t.prototype.max=function(t){return this.compareTo(t)>0?this:t},t.prototype.and=function(t){var e=pt();return this.bitwiseTo(t,L,e),e},t.prototype.or=function(t){var e=pt();return this.bitwiseTo(t,F,e),e},t.prototype.xor=function(t){var e=pt();return this.bitwiseTo(t,j,e),e},t.prototype.andNot=function(t){var e=pt();return this.bitwiseTo(t,U,e),e},t.prototype.not=function(){for(var t=pt(),e=0;e<this.t;++e)t[e]=this.DM&~this[e];return t.t=this.t,t.s=~this.s,t},t.prototype.shiftLeft=function(t){var e=pt();return t<0?this.rShiftTo(-t,e):this.lShiftTo(t,e),e},t.prototype.shiftRight=function(t){var e=pt();return t<0?this.lShiftTo(-t,e):this.rShiftTo(t,e),e},t.prototype.getLowestSetBit=function(){for(var t=0;t<this.t;++t)if(0!=this[t])return t*this.DB+H(this[t]);return this.s<0?this.t*this.DB:-1},t.prototype.bitCount=function(){for(var t=0,e=this.s&this.DM,n=0;n<this.t;++n)t+=z(this[n]^e);return t},t.prototype.testBit=function(t){var e=Math.floor(t/this.DB);return e>=this.t?0!=this.s:0!=(this[e]&1<<t%this.DB)},t.prototype.setBit=function(t){return this.changeBit(t,F)},t.prototype.clearBit=function(t){return this.changeBit(t,U)},t.prototype.flipBit=function(t){return this.changeBit(t,j)},t.prototype.add=function(t){var e=pt();return this.addTo(t,e),e},t.prototype.subtract=function(t){var e=pt();return this.subTo(t,e),e},t.prototype.multiply=function(t){var e=pt();return this.multiplyTo(t,e),e},t.prototype.divide=function(t){var e=pt();return this.divRemTo(t,e,null),e},t.prototype.remainder=function(t){var e=pt();return this.divRemTo(t,null,e),e},t.prototype.divideAndRemainder=function(t){var e=pt(),n=pt();return this.divRemTo(t,e,n),[e,n]},t.prototype.modPow=function(t,e){var n,r,i=t.bitLength(),a=wt(1);if(i<=0)return a;n=i<18?1:i<48?3:i<144?4:i<768?5:6,r=i<8?new ht(e):e.isEven()?new dt(e):new ft(e);var s=[],o=3,u=n-1,c=(1<<n)-1;if(s[1]=r.convert(this),n>1){var l=pt();for(r.sqrTo(s[1],l);o<=c;)s[o]=pt(),r.mulTo(l,s[o-2],s[o]),o+=2}var h,f,d=t.t-1,p=!0,m=pt();for(i=Dt(t[d])-1;d>=0;){for(i>=u?h=t[d]>>i-u&c:(h=(t[d]&(1<<i+1)-1)<<u-i,d>0&&(h|=t[d-1]>>this.DB+i-u)),o=n;0==(1&h);)h>>=1,--o;if((i-=o)<0&&(i+=this.DB,--d),p)s[h].copyTo(a),p=!1;else{for(;o>1;)r.sqrTo(a,m),r.sqrTo(m,a),o-=2;o>0?r.sqrTo(a,m):(f=a,a=m,m=f),r.mulTo(m,s[h],a)}for(;d>=0&&0==(t[d]&1<<i);)r.sqrTo(a,m),f=a,a=m,m=f,--i<0&&(i=this.DB-1,--d)}return r.revert(a)},t.prototype.modInverse=function(e){var n=e.isEven();if(this.isEven()&&n||0==e.signum())return t.ZERO;for(var r=e.clone(),i=this.clone(),a=wt(1),s=wt(0),o=wt(0),u=wt(1);0!=r.signum();){for(;r.isEven();)r.rShiftTo(1,r),n?(a.isEven()&&s.isEven()||(a.addTo(this,a),s.subTo(e,s)),a.rShiftTo(1,a)):s.isEven()||s.subTo(e,s),s.rShiftTo(1,s);for(;i.isEven();)i.rShiftTo(1,i),n?(o.isEven()&&u.isEven()||(o.addTo(this,o),u.subTo(e,u)),o.rShiftTo(1,o)):u.isEven()||u.subTo(e,u),u.rShiftTo(1,u);r.compareTo(i)>=0?(r.subTo(i,r),n&&a.subTo(o,a),s.subTo(u,s)):(i.subTo(r,i),n&&o.subTo(a,o),u.subTo(s,u))}return 0!=i.compareTo(t.ONE)?t.ZERO:u.compareTo(e)>=0?u.subtract(e):u.signum()<0?(u.addTo(e,u),u.signum()<0?u.add(e):u):u},t.prototype.pow=function(t){return this.exp(t,new lt)},t.prototype.gcd=function(t){var e=this.s<0?this.negate():this.clone(),n=t.s<0?t.negate():t.clone();if(e.compareTo(n)<0){var r=e;e=n,n=r}var i=e.getLowestSetBit(),a=n.getLowestSetBit();if(a<0)return e;for(i<a&&(a=i),a>0&&(e.rShiftTo(a,e),n.rShiftTo(a,n));e.signum()>0;)(i=e.getLowestSetBit())>0&&e.rShiftTo(i,e),(i=n.getLowestSetBit())>0&&n.rShiftTo(i,n),e.compareTo(n)>=0?(e.subTo(n,e),e.rShiftTo(1,e)):(n.subTo(e,n),n.rShiftTo(1,n));return a>0&&n.lShiftTo(a,n),n},t.prototype.isProbablePrime=function(t){var e,n=this.abs();if(1==n.t&&n[0]<=ot[ot.length-1]){for(e=0;e<ot.length;++e)if(n[0]==ot[e])return!0;return!1}if(n.isEven())return!1;for(e=1;e<ot.length;){for(var r=ot[e],i=e+1;i<ot.length&&r<ut;)r*=ot[i++];for(r=n.modInt(r);e<i;)if(r%ot[e++]==0)return!1}return n.millerRabin(t)},t.prototype.copyTo=function(t){for(var e=this.t-1;e>=0;--e)t[e]=this[e];t.t=this.t,t.s=this.s},t.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},t.prototype.fromString=function(e,n){var r;if(16==n)r=4;else if(8==n)r=3;else if(256==n)r=8;else if(2==n)r=1;else if(32==n)r=5;else{if(4!=n)return void this.fromRadix(e,n);r=2}this.t=0,this.s=0;for(var i=e.length,a=!1,s=0;--i>=0;){var o=8==r?255&+e[i]:_t(e,i);o<0?"-"==e.charAt(i)&&(a=!0):(a=!1,0==s?this[this.t++]=o:s+r>this.DB?(this[this.t-1]|=(o&(1<<this.DB-s)-1)<<s,this[this.t++]=o>>this.DB-s):this[this.t-1]|=o<<s,(s+=r)>=this.DB&&(s-=this.DB))}8==r&&0!=(128&+e[0])&&(this.s=-1,s>0&&(this[this.t-1]|=(1<<this.DB-s)-1<<s)),this.clamp(),a&&t.ZERO.subTo(this,this)},t.prototype.clamp=function(){for(var t=this.s&this.DM;this.t>0&&this[this.t-1]==t;)--this.t},t.prototype.dlShiftTo=function(t,e){var n;for(n=this.t-1;n>=0;--n)e[n+t]=this[n];for(n=t-1;n>=0;--n)e[n]=0;e.t=this.t+t,e.s=this.s},t.prototype.drShiftTo=function(t,e){for(var n=t;n<this.t;++n)e[n-t]=this[n];e.t=Math.max(this.t-t,0),e.s=this.s},t.prototype.lShiftTo=function(t,e){for(var n=t%this.DB,r=this.DB-n,i=(1<<r)-1,a=Math.floor(t/this.DB),s=this.s<<n&this.DM,o=this.t-1;o>=0;--o)e[o+a+1]=this[o]>>r|s,s=(this[o]&i)<<n;for(o=a-1;o>=0;--o)e[o]=0;e[a]=s,e.t=this.t+a+1,e.s=this.s,e.clamp()},t.prototype.rShiftTo=function(t,e){e.s=this.s;var n=Math.floor(t/this.DB);if(n>=this.t)e.t=0;else{var r=t%this.DB,i=this.DB-r,a=(1<<r)-1;e[0]=this[n]>>r;for(var s=n+1;s<this.t;++s)e[s-n-1]|=(this[s]&a)<<i,e[s-n]=this[s]>>r;r>0&&(e[this.t-n-1]|=(this.s&a)<<i),e.t=this.t-n,e.clamp()}},t.prototype.subTo=function(t,e){for(var n=0,r=0,i=Math.min(t.t,this.t);n<i;)r+=this[n]-t[n],e[n++]=r&this.DM,r>>=this.DB;if(t.t<this.t){for(r-=t.s;n<this.t;)r+=this[n],e[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<t.t;)r-=t[n],e[n++]=r&this.DM,r>>=this.DB;r-=t.s}e.s=r<0?-1:0,r<-1?e[n++]=this.DV+r:r>0&&(e[n++]=r),e.t=n,e.clamp()},t.prototype.multiplyTo=function(e,n){var r=this.abs(),i=e.abs(),a=r.t;for(n.t=a+i.t;--a>=0;)n[a]=0;for(a=0;a<i.t;++a)n[a+r.t]=r.am(0,i[a],n,a,0,r.t);n.s=0,n.clamp(),this.s!=e.s&&t.ZERO.subTo(n,n)},t.prototype.squareTo=function(t){for(var e=this.abs(),n=t.t=2*e.t;--n>=0;)t[n]=0;for(n=0;n<e.t-1;++n){var r=e.am(n,e[n],t,2*n,0,1);(t[n+e.t]+=e.am(n+1,2*e[n],t,2*n+1,r,e.t-n-1))>=e.DV&&(t[n+e.t]-=e.DV,t[n+e.t+1]=1)}t.t>0&&(t[t.t-1]+=e.am(n,e[n],t,2*n,0,1)),t.s=0,t.clamp()},t.prototype.divRemTo=function(e,n,r){var i=e.abs();if(!(i.t<=0)){var a=this.abs();if(a.t<i.t)return null!=n&&n.fromInt(0),void(null!=r&&this.copyTo(r));null==r&&(r=pt());var s=pt(),o=this.s,u=e.s,c=this.DB-Dt(i[i.t-1]);c>0?(i.lShiftTo(c,s),a.lShiftTo(c,r)):(i.copyTo(s),a.copyTo(r));var l=s.t,h=s[l-1];if(0!=h){var f=h*(1<<this.F1)+(l>1?s[l-2]>>this.F2:0),d=this.FV/f,p=(1<<this.F1)/f,m=1<<this.F2,g=r.t,v=g-l,y=null==n?pt():n;for(s.dlShiftTo(v,y),r.compareTo(y)>=0&&(r[r.t++]=1,r.subTo(y,r)),t.ONE.dlShiftTo(l,y),y.subTo(s,s);s.t<l;)s[s.t++]=0;for(;--v>=0;){var b=r[--g]==h?this.DM:Math.floor(r[g]*d+(r[g-1]+m)*p);if((r[g]+=s.am(0,b,r,v,0,l))<b)for(s.dlShiftTo(v,y),r.subTo(y,r);r[g]<--b;)r.subTo(y,r)}null!=n&&(r.drShiftTo(l,n),o!=u&&t.ZERO.subTo(n,n)),r.t=l,r.clamp(),c>0&&r.rShiftTo(c,r),o<0&&t.ZERO.subTo(r,r)}}},t.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if(0==(1&t))return 0;var e=3&t;return(e=(e=(e=(e=e*(2-(15&t)*e)&15)*(2-(255&t)*e)&255)*(2-((65535&t)*e&65535))&65535)*(2-t*e%this.DV)%this.DV)>0?this.DV-e:-e},t.prototype.isEven=function(){return 0==(this.t>0?1&this[0]:this.s)},t.prototype.exp=function(e,n){if(e>4294967295||e<1)return t.ONE;var r=pt(),i=pt(),a=n.convert(this),s=Dt(e)-1;for(a.copyTo(r);--s>=0;)if(n.sqrTo(r,i),(e&1<<s)>0)n.mulTo(i,a,r);else{var o=r;r=i,i=o}return n.revert(r)},t.prototype.chunkSize=function(t){return Math.floor(Math.LN2*this.DB/Math.log(t))},t.prototype.toRadix=function(t){if(null==t&&(t=10),0==this.signum()||t<2||t>36)return"0";var e=this.chunkSize(t),n=Math.pow(t,e),r=wt(n),i=pt(),a=pt(),s="";for(this.divRemTo(r,i,a);i.signum()>0;)s=(n+a.intValue()).toString(t).substr(1)+s,i.divRemTo(r,i,a);return a.intValue().toString(t)+s},t.prototype.fromRadix=function(e,n){this.fromInt(0),null==n&&(n=10);for(var r=this.chunkSize(n),i=Math.pow(n,r),a=!1,s=0,o=0,u=0;u<e.length;++u){var c=_t(e,u);c<0?"-"==e.charAt(u)&&0==this.signum()&&(a=!0):(o=n*o+c,++s>=r&&(this.dMultiply(i),this.dAddOffset(o,0),s=0,o=0))}s>0&&(this.dMultiply(Math.pow(n,s)),this.dAddOffset(o,0)),a&&t.ZERO.subTo(this,this)},t.prototype.fromNumber=function(e,n,r){if("number"==typeof n)if(e<2)this.fromInt(1);else for(this.fromNumber(e,r),this.testBit(e-1)||this.bitwiseTo(t.ONE.shiftLeft(e-1),F,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(n);)this.dAddOffset(2,0),this.bitLength()>e&&this.subTo(t.ONE.shiftLeft(e-1),this);else{var i=[],a=7&e;i.length=1+(e>>3),n.nextBytes(i),a>0?i[0]&=(1<<a)-1:i[0]=0,this.fromString(i,256)}},t.prototype.bitwiseTo=function(t,e,n){var r,i,a=Math.min(t.t,this.t);for(r=0;r<a;++r)n[r]=e(this[r],t[r]);if(t.t<this.t){for(i=t.s&this.DM,r=a;r<this.t;++r)n[r]=e(this[r],i);n.t=this.t}else{for(i=this.s&this.DM,r=a;r<t.t;++r)n[r]=e(i,t[r]);n.t=t.t}n.s=e(this.s,t.s),n.clamp()},t.prototype.changeBit=function(e,n){var r=t.ONE.shiftLeft(e);return this.bitwiseTo(r,n,r),r},t.prototype.addTo=function(t,e){for(var n=0,r=0,i=Math.min(t.t,this.t);n<i;)r+=this[n]+t[n],e[n++]=r&this.DM,r>>=this.DB;if(t.t<this.t){for(r+=t.s;n<this.t;)r+=this[n],e[n++]=r&this.DM,r>>=this.DB;r+=this.s}else{for(r+=this.s;n<t.t;)r+=t[n],e[n++]=r&this.DM,r>>=this.DB;r+=t.s}e.s=r<0?-1:0,r>0?e[n++]=r:r<-1&&(e[n++]=this.DV+r),e.t=n,e.clamp()},t.prototype.dMultiply=function(t){this[this.t]=this.am(0,t-1,this,0,0,this.t),++this.t,this.clamp()},t.prototype.dAddOffset=function(t,e){if(0!=t){for(;this.t<=e;)this[this.t++]=0;for(this[e]+=t;this[e]>=this.DV;)this[e]-=this.DV,++e>=this.t&&(this[this.t++]=0),++this[e]}},t.prototype.multiplyLowerTo=function(t,e,n){var r=Math.min(this.t+t.t,e);for(n.s=0,n.t=r;r>0;)n[--r]=0;for(var i=n.t-this.t;r<i;++r)n[r+this.t]=this.am(0,t[r],n,r,0,this.t);for(i=Math.min(t.t,e);r<i;++r)this.am(0,t[r],n,r,0,e-r);n.clamp()},t.prototype.multiplyUpperTo=function(t,e,n){--e;var r=n.t=this.t+t.t-e;for(n.s=0;--r>=0;)n[r]=0;for(r=Math.max(e-this.t,0);r<t.t;++r)n[this.t+r-e]=this.am(e-r,t[r],n,0,0,this.t+r-e);n.clamp(),n.drShiftTo(1,n)},t.prototype.modInt=function(t){if(t<=0)return 0;var e=this.DV%t,n=this.s<0?t-1:0;if(this.t>0)if(0==e)n=this[0]%t;else for(var r=this.t-1;r>=0;--r)n=(e*n+this[r])%t;return n},t.prototype.millerRabin=function(e){var n=this.subtract(t.ONE),r=n.getLowestSetBit();if(r<=0)return!1;var i=n.shiftRight(r);(e=e+1>>1)>ot.length&&(e=ot.length);for(var a=pt(),s=0;s<e;++s){a.fromInt(ot[Math.floor(Math.random()*ot.length)]);var o=a.modPow(i,this);if(0!=o.compareTo(t.ONE)&&0!=o.compareTo(n)){for(var u=1;u++<r&&0!=o.compareTo(n);)if(0==(o=o.modPowInt(2,this)).compareTo(t.ONE))return!1;if(0!=o.compareTo(n))return!1}}return!0},t.prototype.square=function(){var t=pt();return this.squareTo(t),t},t.prototype.gcda=function(t,e){var n=this.s<0?this.negate():this.clone(),r=t.s<0?t.negate():t.clone();if(n.compareTo(r)<0){var i=n;n=r,r=i}var a=n.getLowestSetBit(),s=r.getLowestSetBit();if(s<0)e(n);else{a<s&&(s=a),s>0&&(n.rShiftTo(s,n),r.rShiftTo(s,r));var o=function(){(a=n.getLowestSetBit())>0&&n.rShiftTo(a,n),(a=r.getLowestSetBit())>0&&r.rShiftTo(a,r),n.compareTo(r)>=0?(n.subTo(r,n),n.rShiftTo(1,n)):(r.subTo(n,r),r.rShiftTo(1,r)),n.signum()>0?setTimeout(o,0):(s>0&&r.lShiftTo(s,r),setTimeout((function(){e(r)}),0))};setTimeout(o,10)}},t.prototype.fromNumberAsync=function(e,n,r,i){if("number"==typeof n)if(e<2)this.fromInt(1);else{this.fromNumber(e,r),this.testBit(e-1)||this.bitwiseTo(t.ONE.shiftLeft(e-1),F,this),this.isEven()&&this.dAddOffset(1,0);var a=this,s=function(){a.dAddOffset(2,0),a.bitLength()>e&&a.subTo(t.ONE.shiftLeft(e-1),a),a.isProbablePrime(n)?setTimeout((function(){i()}),0):setTimeout(s,0)};setTimeout(s,0)}else{var o=[],u=7&e;o.length=1+(e>>3),n.nextBytes(o),u>0?o[0]&=(1<<u)-1:o[0]=0,this.fromString(o,256)}},t}(),lt=function(){function t(){}return t.prototype.convert=function(t){return t},t.prototype.revert=function(t){return t},t.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n)},t.prototype.sqrTo=function(t,e){t.squareTo(e)},t}(),ht=function(){function t(t){this.m=t}return t.prototype.convert=function(t){return t.s<0||t.compareTo(this.m)>=0?t.mod(this.m):t},t.prototype.revert=function(t){return t},t.prototype.reduce=function(t){t.divRemTo(this.m,null,t)},t.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}(),ft=function(){function t(t){this.m=t,this.mp=t.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<t.DB-15)-1,this.mt2=2*t.t}return t.prototype.convert=function(t){var e=pt();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(ct.ZERO)>0&&this.m.subTo(e,e),e},t.prototype.revert=function(t){var e=pt();return t.copyTo(e),this.reduce(e),e},t.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var e=0;e<this.m.t;++e){var n=32767&t[e],r=n*this.mpl+((n*this.mph+(t[e]>>15)*this.mpl&this.um)<<15)&t.DM;for(t[n=e+this.m.t]+=this.m.am(0,r,t,e,0,this.m.t);t[n]>=t.DV;)t[n]-=t.DV,t[++n]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},t.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}(),dt=function(){function t(t){this.m=t,this.r2=pt(),this.q3=pt(),ct.ONE.dlShiftTo(2*t.t,this.r2),this.mu=this.r2.divide(t)}return t.prototype.convert=function(t){if(t.s<0||t.t>2*this.m.t)return t.mod(this.m);if(t.compareTo(this.m)<0)return t;var e=pt();return t.copyTo(e),this.reduce(e),e},t.prototype.revert=function(t){return t},t.prototype.reduce=function(t){for(t.drShiftTo(this.m.t-1,this.r2),t.t>this.m.t+1&&(t.t=this.m.t+1,t.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);t.compareTo(this.r2)<0;)t.dAddOffset(1,this.m.t+1);for(t.subTo(this.r2,t);t.compareTo(this.m)>=0;)t.subTo(this.m,t)},t.prototype.mulTo=function(t,e,n){t.multiplyTo(e,n),this.reduce(n)},t.prototype.sqrTo=function(t,e){t.squareTo(e),this.reduce(e)},t}();function pt(){return new ct(null)}function mt(t,e){return new ct(t,e)}var gt="undefined"!=typeof navigator;gt&&"Microsoft Internet Explorer"==navigator.appName?(ct.prototype.am=function(t,e,n,r,i,a){for(var s=32767&e,o=e>>15;--a>=0;){var u=32767&this[t],c=this[t++]>>15,l=o*u+c*s;i=((u=s*u+((32767&l)<<15)+n[r]+(1073741823&i))>>>30)+(l>>>15)+o*c+(i>>>30),n[r++]=1073741823&u}return i},rt=30):gt&&"Netscape"!=navigator.appName?(ct.prototype.am=function(t,e,n,r,i,a){for(;--a>=0;){var s=e*this[t++]+n[r]+i;i=Math.floor(s/67108864),n[r++]=67108863&s}return i},rt=26):(ct.prototype.am=function(t,e,n,r,i,a){for(var s=16383&e,o=e>>14;--a>=0;){var u=16383&this[t],c=this[t++]>>14,l=o*u+c*s;i=((u=s*u+((16383&l)<<14)+n[r]+i)>>28)+(l>>14)+o*c,n[r++]=268435455&u}return i},rt=28),ct.prototype.DB=rt,ct.prototype.DM=(1<<rt)-1,ct.prototype.DV=1<<rt;ct.prototype.FV=Math.pow(2,52),ct.prototype.F1=52-rt,ct.prototype.F2=2*rt-52;var vt,yt,bt=[];for(vt="0".charCodeAt(0),yt=0;yt<=9;++yt)bt[vt++]=yt;for(vt="a".charCodeAt(0),yt=10;yt<36;++yt)bt[vt++]=yt;for(vt="A".charCodeAt(0),yt=10;yt<36;++yt)bt[vt++]=yt;function _t(t,e){var n=bt[t.charCodeAt(e)];return null==n?-1:n}function wt(t){var e=pt();return e.fromInt(t),e}function Dt(t){var e,n=1;return 0!=(e=t>>>16)&&(t=e,n+=16),0!=(e=t>>8)&&(t=e,n+=8),0!=(e=t>>4)&&(t=e,n+=4),0!=(e=t>>2)&&(t=e,n+=2),0!=(e=t>>1)&&(t=e,n+=1),n}ct.ZERO=wt(0),ct.ONE=wt(1);var Tt=function(){function t(){this.i=0,this.j=0,this.S=[]}return t.prototype.init=function(t){var e,n,r;for(e=0;e<256;++e)this.S[e]=e;for(n=0,e=0;e<256;++e)n=n+this.S[e]+t[e%t.length]&255,r=this.S[e],this.S[e]=this.S[n],this.S[n]=r;this.i=0,this.j=0},t.prototype.next=function(){var t;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,t=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=t,this.S[t+this.S[this.i]&255]},t}();var St,xt,Et=null;if(null==Et){Et=[],xt=0;var Mt=void 0;if("undefined"!=typeof window&&window.crypto&&window.crypto.getRandomValues){var Ot=new Uint32Array(256);for(window.crypto.getRandomValues(Ot),Mt=0;Mt<Ot.length;++Mt)Et[xt++]=255&Ot[Mt]}var kt=0,Ct=function(t){if((kt=kt||0)>=256||xt>=256)window.removeEventListener?window.removeEventListener("mousemove",Ct,!1):window.detachEvent&&window.detachEvent("onmousemove",Ct);else try{var e=t.x+t.y;Et[xt++]=255&e,kt+=1}catch(t){}};"undefined"!=typeof window&&(window.addEventListener?window.addEventListener("mousemove",Ct,!1):window.attachEvent&&window.attachEvent("onmousemove",Ct))}function At(){if(null==St){for(St=new Tt;xt<256;){var t=Math.floor(65536*Math.random());Et[xt++]=255&t}for(St.init(Et),xt=0;xt<Et.length;++xt)Et[xt]=0;xt=0}return St.next()}var Pt=function(){function t(){}return t.prototype.nextBytes=function(t){for(var e=0;e<t.length;++e)t[e]=At()},t}();var Rt=function(){function t(){this.n=null,this.e=0,this.d=null,this.p=null,this.q=null,this.dmp1=null,this.dmq1=null,this.coeff=null}return t.prototype.doPublic=function(t){return t.modPowInt(this.e,this.n)},t.prototype.doPrivate=function(t){if(null==this.p||null==this.q)return t.modPow(this.d,this.n);for(var e=t.mod(this.p).modPow(this.dmp1,this.p),n=t.mod(this.q).modPow(this.dmq1,this.q);e.compareTo(n)<0;)e=e.add(this.p);return e.subtract(n).multiply(this.coeff).mod(this.p).multiply(this.q).add(n)},t.prototype.setPublic=function(t,e){null!=t&&null!=e&&t.length>0&&e.length>0?(this.n=mt(t,16),this.e=parseInt(e,16)):console.error("Invalid RSA public key")},t.prototype.encrypt=function(t){var e=this.n.bitLength()+7>>3,n=function(t,e){if(e<t.length+11)return console.error("Message too long for RSA"),null;for(var n=[],r=t.length-1;r>=0&&e>0;){var i=t.charCodeAt(r--);i<128?n[--e]=i:i>127&&i<2048?(n[--e]=63&i|128,n[--e]=i>>6|192):(n[--e]=63&i|128,n[--e]=i>>6&63|128,n[--e]=i>>12|224)}n[--e]=0;for(var a=new Pt,s=[];e>2;){for(s[0]=0;0==s[0];)a.nextBytes(s);n[--e]=s[0]}return n[--e]=2,n[--e]=0,new ct(n)}(t,e);if(null==n)return null;var r=this.doPublic(n);if(null==r)return null;for(var i=r.toString(16),a=i.length,s=0;s<2*e-a;s++)i="0"+i;return i},t.prototype.setPrivate=function(t,e,n){null!=t&&null!=e&&t.length>0&&e.length>0?(this.n=mt(t,16),this.e=parseInt(e,16),this.d=mt(n,16)):console.error("Invalid RSA private key")},t.prototype.setPrivateEx=function(t,e,n,r,i,a,s,o){null!=t&&null!=e&&t.length>0&&e.length>0?(this.n=mt(t,16),this.e=parseInt(e,16),this.d=mt(n,16),this.p=mt(r,16),this.q=mt(i,16),this.dmp1=mt(a,16),this.dmq1=mt(s,16),this.coeff=mt(o,16)):console.error("Invalid RSA private key")},t.prototype.generate=function(t,e){var n=new Pt,r=t>>1;this.e=parseInt(e,16);for(var i=new ct(e,16);;){for(;this.p=new ct(t-r,1,n),0!=this.p.subtract(ct.ONE).gcd(i).compareTo(ct.ONE)||!this.p.isProbablePrime(10););for(;this.q=new ct(r,1,n),0!=this.q.subtract(ct.ONE).gcd(i).compareTo(ct.ONE)||!this.q.isProbablePrime(10););if(this.p.compareTo(this.q)<=0){var a=this.p;this.p=this.q,this.q=a}var s=this.p.subtract(ct.ONE),o=this.q.subtract(ct.ONE),u=s.multiply(o);if(0==u.gcd(i).compareTo(ct.ONE)){this.n=this.p.multiply(this.q),this.d=i.modInverse(u),this.dmp1=this.d.mod(s),this.dmq1=this.d.mod(o),this.coeff=this.q.modInverse(this.p);break}}},t.prototype.decrypt=function(t){var e=mt(t,16),n=this.doPrivate(e);return null==n?null:function(t,e){var n=t.toByteArray(),r=0;for(;r<n.length&&0==n[r];)++r;if(n.length-r!=e-1||2!=n[r])return null;++r;for(;0!=n[r];)if(++r>=n.length)return null;var i="";for(;++r<n.length;){var a=255&n[r];a<128?i+=String.fromCharCode(a):a>191&&a<224?(i+=String.fromCharCode((31&a)<<6|63&n[r+1]),++r):(i+=String.fromCharCode((15&a)<<12|(63&n[r+1])<<6|63&n[r+2]),r+=2)}return i}(n,this.n.bitLength()+7>>3)},t.prototype.generateAsync=function(t,e,n){var r=new Pt,i=t>>1;this.e=parseInt(e,16);var a=new ct(e,16),s=this,o=function(){var e=function(){if(s.p.compareTo(s.q)<=0){var t=s.p;s.p=s.q,s.q=t}var e=s.p.subtract(ct.ONE),r=s.q.subtract(ct.ONE),i=e.multiply(r);0==i.gcd(a).compareTo(ct.ONE)?(s.n=s.p.multiply(s.q),s.d=a.modInverse(i),s.dmp1=s.d.mod(e),s.dmq1=s.d.mod(r),s.coeff=s.q.modInverse(s.p),setTimeout((function(){n()}),0)):setTimeout(o,0)},u=function(){s.q=pt(),s.q.fromNumberAsync(i,1,r,(function(){s.q.subtract(ct.ONE).gcda(a,(function(t){0==t.compareTo(ct.ONE)&&s.q.isProbablePrime(10)?setTimeout(e,0):setTimeout(u,0)}))}))},c=function(){s.p=pt(),s.p.fromNumberAsync(t-i,1,r,(function(){s.p.subtract(ct.ONE).gcda(a,(function(t){0==t.compareTo(ct.ONE)&&s.p.isProbablePrime(10)?setTimeout(u,0):setTimeout(c,0)}))}))};setTimeout(c,0)};setTimeout(o,0)},t.prototype.sign=function(t,e,n){var r=function(t,e){if(e<t.length+22)return console.error("Message too long for RSA"),null;for(var n=e-t.length-6,r="",i=0;i<n;i+=2)r+="ff";return mt("0001"+r+"00"+t,16)}((Nt[n]||"")+e(t).toString(),this.n.bitLength()/4);if(null==r)return null;var i=this.doPrivate(r);if(null==i)return null;var a=i.toString(16);return 0==(1&a.length)?a:"0"+a},t.prototype.verify=function(t,e,n){var r=mt(e,16),i=this.doPublic(r);return null==i?null:function(t){for(var e in Nt)if(Nt.hasOwnProperty(e)){var n=Nt[e],r=n.length;if(t.substr(0,r)==n)return t.substr(r)}return t}
|
|
2
2
|
/*!
|
|
3
3
|
Copyright (c) 2011, Yahoo! Inc. All rights reserved.
|
|
4
4
|
Code licensed under the BSD License:
|
|
5
5
|
http://developer.yahoo.com/yui/license.html
|
|
6
6
|
version: 2.9.0
|
|
7
|
-
*/(i.toString(16).replace(/^1f+00/,""))==n(t).toString()},t}();var
|
|
7
|
+
*/(i.toString(16).replace(/^1f+00/,""))==n(t).toString()},t}();var Nt={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};var It={};It.lang={extend:function(t,e,n){if(!e||!t)throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.");var r=function(){};if(r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t,t.superclass=e.prototype,e.prototype.constructor==Object.prototype.constructor&&(e.prototype.constructor=e),n){var i;for(i in n)t.prototype[i]=n[i];var a=function(){},s=["toString","valueOf"];try{/MSIE/.test(navigator.userAgent)&&(a=function(t,e){for(i=0;i<s.length;i+=1){var n=s[i],r=e[n];"function"==typeof r&&r!=Object.prototype[n]&&(t[n]=r)}})}catch(t){}a(t.prototype,n)}}};
|
|
8
8
|
/**
|
|
9
9
|
* @fileOverview
|
|
10
10
|
* @name asn1-1.0.js
|
|
@@ -13,9 +13,9 @@ version: 2.9.0
|
|
|
13
13
|
* @since jsrsasign 2.1
|
|
14
14
|
* @license <a href="https://kjur.github.io/jsrsasign/license/">MIT License</a>
|
|
15
15
|
*/
|
|
16
|
-
var ht={};void 0!==ht.asn1&&ht.asn1||(ht.asn1={}),ht.asn1.ASN1Util=new function(){this.integerToByteHex=function(t){var e=t.toString(16);return e.length%2==1&&(e="0"+e),e},this.bigIntToMinTwosComplementsHex=function(t){var e=t.toString(16);if("-"!=e.substr(0,1))e.length%2==1?e="0"+e:e.match(/^[0-7]/)||(e="00"+e);else{var n=e.substr(1).length;n%2==1?n+=1:e.match(/^[0-7]/)||(n+=2);for(var r="",i=0;i<n;i++)r+="f";e=new Y(r,16).xor(t).add(Y.ONE).toString(16).replace(/^-/,"")}return e},this.getPEMStringFromHex=function(t,e){return hextopem(t,e)},this.newObject=function(t){var e=ht.asn1,n=e.DERBoolean,r=e.DERInteger,i=e.DERBitString,a=e.DEROctetString,s=e.DERNull,o=e.DERObjectIdentifier,u=e.DEREnumerated,c=e.DERUTF8String,l=e.DERNumericString,h=e.DERPrintableString,f=e.DERTeletexString,d=e.DERIA5String,p=e.DERUTCTime,m=e.DERGeneralizedTime,g=e.DERSequence,v=e.DERSet,y=e.DERTaggedObject,_=e.ASN1Util.newObject,b=Object.keys(t);if(1!=b.length)throw"key of param shall be only one.";var w=b[0];if(-1==":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+w+":"))throw"undefined key: "+w;if("bool"==w)return new n(t[w]);if("int"==w)return new r(t[w]);if("bitstr"==w)return new i(t[w]);if("octstr"==w)return new a(t[w]);if("null"==w)return new s(t[w]);if("oid"==w)return new o(t[w]);if("enum"==w)return new u(t[w]);if("utf8str"==w)return new c(t[w]);if("numstr"==w)return new l(t[w]);if("prnstr"==w)return new h(t[w]);if("telstr"==w)return new f(t[w]);if("ia5str"==w)return new d(t[w]);if("utctime"==w)return new p(t[w]);if("gentime"==w)return new m(t[w]);if("seq"==w){for(var D=t[w],S=[],T=0;T<D.length;T++){var x=_(D[T]);S.push(x)}return new g({array:S})}if("set"==w){for(D=t[w],S=[],T=0;T<D.length;T++){x=_(D[T]);S.push(x)}return new v({array:S})}if("tag"==w){var E=t[w];if("[object Array]"===Object.prototype.toString.call(E)&&3==E.length){var M=_(E[2]);return new y({tag:E[0],explicit:E[1],obj:M})}var O={};if(void 0!==E.explicit&&(O.explicit=E.explicit),void 0!==E.tag&&(O.tag=E.tag),void 0===E.obj)throw"obj shall be specified for 'tag'.";return O.obj=_(E.obj),new y(O)}},this.jsonToASN1HEX=function(t){return this.newObject(t).getEncodedHex()}},ht.asn1.ASN1Util.oidHexToInt=function(t){for(var e="",n=parseInt(t.substr(0,2),16),r=(e=Math.floor(n/40)+"."+n%40,""),i=2;i<t.length;i+=2){var a=("00000000"+parseInt(t.substr(i,2),16).toString(2)).slice(-8);if(r+=a.substr(1,7),"0"==a.substr(0,1))e=e+"."+new Y(r,2).toString(10),r=""}return e},ht.asn1.ASN1Util.oidIntToHex=function(t){var e=function(t){var e=t.toString(16);return 1==e.length&&(e="0"+e),e},n=function(t){var n="",r=new Y(t,10).toString(2),i=7-r.length%7;7==i&&(i=0);for(var a="",s=0;s<i;s++)a+="0";r=a+r;for(s=0;s<r.length-1;s+=7){var o=r.substr(s,7);s!=r.length-7&&(o="1"+o),n+=e(parseInt(o,2))}return n};if(!t.match(/^[0-9.]+$/))throw"malformed oid string: "+t;var r="",i=t.split("."),a=40*parseInt(i[0])+parseInt(i[1]);r+=e(a),i.splice(0,2);for(var s=0;s<i.length;s++)r+=n(i[s]);return r},ht.asn1.ASN1Object=function(){this.getLengthHexFromValue=function(){if(void 0===this.hV||null==this.hV)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n="+"".length+",v="+this.hV;var t=this.hV.length/2,e=t.toString(16);if(e.length%2==1&&(e="0"+e),t<128)return e;var n=e.length/2;if(n>15)throw"ASN.1 length too long to represent by 8x: n = "+t.toString(16);return(128+n).toString(16)+e},this.getEncodedHex=function(){return(null==this.hTLV||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},ht.asn1.DERAbstractString=function(t){ht.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(this.s)},this.setStringHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t?this.setString(t):void 0!==t.str?this.setString(t.str):void 0!==t.hex&&this.setStringHex(t.hex))},lt.lang.extend(ht.asn1.DERAbstractString,ht.asn1.ASN1Object),ht.asn1.DERAbstractTime=function(t){ht.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(t){return utc=t.getTime()+6e4*t.getTimezoneOffset(),new Date(utc)},this.formatDate=function(t,e,n){var r=this.zeroPadding,i=this.localDateToUTC(t),a=String(i.getFullYear());"utc"==e&&(a=a.substr(2,2));var s=a+r(String(i.getMonth()+1),2)+r(String(i.getDate()),2)+r(String(i.getHours()),2)+r(String(i.getMinutes()),2)+r(String(i.getSeconds()),2);if(!0===n){var o=i.getMilliseconds();if(0!=o){var u=r(String(o),3);s=s+"."+(u=u.replace(/[0]+$/,""))}}return s+"Z"},this.zeroPadding=function(t,e){return t.length>=e?t:new Array(e-t.length+1).join("0")+t},this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(t)},this.setByDateValue=function(t,e,n,r,i,a){var s=new Date(Date.UTC(t,e-1,n,r,i,a,0));this.setByDate(s)},this.getFreshValueHex=function(){return this.hV}},lt.lang.extend(ht.asn1.DERAbstractTime,ht.asn1.ASN1Object),ht.asn1.DERAbstractStructured=function(t){ht.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array=t},this.appendASN1Object=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array.push(t)},this.asn1Array=new Array,void 0!==t&&void 0!==t.array&&(this.asn1Array=t.array)},lt.lang.extend(ht.asn1.DERAbstractStructured,ht.asn1.ASN1Object),ht.asn1.DERBoolean=function(){ht.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},lt.lang.extend(ht.asn1.DERBoolean,ht.asn1.ASN1Object),ht.asn1.DERInteger=function(t){ht.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=ht.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new Y(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.bigint?this.setByBigInteger(t.bigint):void 0!==t.int?this.setByInteger(t.int):"number"==typeof t?this.setByInteger(t):void 0!==t.hex&&this.setValueHex(t.hex))},lt.lang.extend(ht.asn1.DERInteger,ht.asn1.ASN1Object),ht.asn1.DERBitString=function(t){if(void 0!==t&&void 0!==t.obj){var e=ht.asn1.ASN1Util.newObject(t.obj);t.hex="00"+e.getEncodedHex()}ht.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(t){this.hTLV=null,this.isModified=!0,this.hV=t},this.setUnusedBitsAndHexValue=function(t,e){if(t<0||7<t)throw"unused bits shall be from 0 to 7: u = "+t;var n="0"+t;this.hTLV=null,this.isModified=!0,this.hV=n+e},this.setByBinaryString=function(t){var e=8-(t=t.replace(/0+$/,"")).length%8;8==e&&(e=0);for(var n=0;n<=e;n++)t+="0";var r="";for(n=0;n<t.length-1;n+=8){var i=t.substr(n,8),a=parseInt(i,2).toString(16);1==a.length&&(a="0"+a),r+=a}this.hTLV=null,this.isModified=!0,this.hV="0"+e+r},this.setByBooleanArray=function(t){for(var e="",n=0;n<t.length;n++)1==t[n]?e+="1":e+="0";this.setByBinaryString(e)},this.newFalseArray=function(t){for(var e=new Array(t),n=0;n<t;n++)e[n]=!1;return e},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t&&t.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(t):void 0!==t.hex?this.setHexValueIncludingUnusedBits(t.hex):void 0!==t.bin?this.setByBinaryString(t.bin):void 0!==t.array&&this.setByBooleanArray(t.array))},lt.lang.extend(ht.asn1.DERBitString,ht.asn1.ASN1Object),ht.asn1.DEROctetString=function(t){if(void 0!==t&&void 0!==t.obj){var e=ht.asn1.ASN1Util.newObject(t.obj);t.hex=e.getEncodedHex()}ht.asn1.DEROctetString.superclass.constructor.call(this,t),this.hT="04"},lt.lang.extend(ht.asn1.DEROctetString,ht.asn1.DERAbstractString),ht.asn1.DERNull=function(){ht.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},lt.lang.extend(ht.asn1.DERNull,ht.asn1.ASN1Object),ht.asn1.DERObjectIdentifier=function(t){var e=function(t){var e=t.toString(16);return 1==e.length&&(e="0"+e),e},n=function(t){var n="",r=new Y(t,10).toString(2),i=7-r.length%7;7==i&&(i=0);for(var a="",s=0;s<i;s++)a+="0";r=a+r;for(s=0;s<r.length-1;s+=7){var o=r.substr(s,7);s!=r.length-7&&(o="1"+o),n+=e(parseInt(o,2))}return n};ht.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.setValueOidString=function(t){if(!t.match(/^[0-9.]+$/))throw"malformed oid string: "+t;var r="",i=t.split("."),a=40*parseInt(i[0])+parseInt(i[1]);r+=e(a),i.splice(0,2);for(var s=0;s<i.length;s++)r+=n(i[s]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=r},this.setValueName=function(t){var e=ht.asn1.x509.OID.name2oid(t);if(""===e)throw"DERObjectIdentifier oidName undefined: "+t;this.setValueOidString(e)},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t?t.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(t):this.setValueName(t):void 0!==t.oid?this.setValueOidString(t.oid):void 0!==t.hex?this.setValueHex(t.hex):void 0!==t.name&&this.setValueName(t.name))},lt.lang.extend(ht.asn1.DERObjectIdentifier,ht.asn1.ASN1Object),ht.asn1.DEREnumerated=function(t){ht.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=ht.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new Y(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.int?this.setByInteger(t.int):"number"==typeof t?this.setByInteger(t):void 0!==t.hex&&this.setValueHex(t.hex))},lt.lang.extend(ht.asn1.DEREnumerated,ht.asn1.ASN1Object),ht.asn1.DERUTF8String=function(t){ht.asn1.DERUTF8String.superclass.constructor.call(this,t),this.hT="0c"},lt.lang.extend(ht.asn1.DERUTF8String,ht.asn1.DERAbstractString),ht.asn1.DERNumericString=function(t){ht.asn1.DERNumericString.superclass.constructor.call(this,t),this.hT="12"},lt.lang.extend(ht.asn1.DERNumericString,ht.asn1.DERAbstractString),ht.asn1.DERPrintableString=function(t){ht.asn1.DERPrintableString.superclass.constructor.call(this,t),this.hT="13"},lt.lang.extend(ht.asn1.DERPrintableString,ht.asn1.DERAbstractString),ht.asn1.DERTeletexString=function(t){ht.asn1.DERTeletexString.superclass.constructor.call(this,t),this.hT="14"},lt.lang.extend(ht.asn1.DERTeletexString,ht.asn1.DERAbstractString),ht.asn1.DERIA5String=function(t){ht.asn1.DERIA5String.superclass.constructor.call(this,t),this.hT="16"},lt.lang.extend(ht.asn1.DERIA5String,ht.asn1.DERAbstractString),ht.asn1.DERUTCTime=function(t){ht.asn1.DERUTCTime.superclass.constructor.call(this,t),this.hT="17",this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},void 0!==t&&(void 0!==t.str?this.setString(t.str):"string"==typeof t&&t.match(/^[0-9]{12}Z$/)?this.setString(t):void 0!==t.hex?this.setStringHex(t.hex):void 0!==t.date&&this.setByDate(t.date))},lt.lang.extend(ht.asn1.DERUTCTime,ht.asn1.DERAbstractTime),ht.asn1.DERGeneralizedTime=function(t){ht.asn1.DERGeneralizedTime.superclass.constructor.call(this,t),this.hT="18",this.withMillis=!1,this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},void 0!==t&&(void 0!==t.str?this.setString(t.str):"string"==typeof t&&t.match(/^[0-9]{14}Z$/)?this.setString(t):void 0!==t.hex?this.setStringHex(t.hex):void 0!==t.date&&this.setByDate(t.date),!0===t.millis&&(this.withMillis=!0))},lt.lang.extend(ht.asn1.DERGeneralizedTime,ht.asn1.DERAbstractTime),ht.asn1.DERSequence=function(t){ht.asn1.DERSequence.superclass.constructor.call(this,t),this.hT="30",this.getFreshValueHex=function(){for(var t="",e=0;e<this.asn1Array.length;e++){t+=this.asn1Array[e].getEncodedHex()}return this.hV=t,this.hV}},lt.lang.extend(ht.asn1.DERSequence,ht.asn1.DERAbstractStructured),ht.asn1.DERSet=function(t){ht.asn1.DERSet.superclass.constructor.call(this,t),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var t=new Array,e=0;e<this.asn1Array.length;e++){var n=this.asn1Array[e];t.push(n.getEncodedHex())}return 1==this.sortFlag&&t.sort(),this.hV=t.join(""),this.hV},void 0!==t&&void 0!==t.sortflag&&0==t.sortflag&&(this.sortFlag=!1)},lt.lang.extend(ht.asn1.DERSet,ht.asn1.DERAbstractStructured),ht.asn1.DERTaggedObject=function(t){ht.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(t,e,n){this.hT=e,this.isExplicit=t,this.asn1Object=n,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=n.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,e),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.tag&&(this.hT=t.tag),void 0!==t.explicit&&(this.isExplicit=t.explicit),void 0!==t.obj&&(this.asn1Object=t.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},lt.lang.extend(ht.asn1.DERTaggedObject,ht.asn1.ASN1Object);var ft=window&&window.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),dt=function(t){function e(n){var r=t.call(this)||this;return n&&("string"==typeof n?r.parseKey(n):(e.hasPrivateKeyProperty(n)||e.hasPublicKeyProperty(n))&&r.parsePropertiesFrom(n)),r}return ft(e,t),e.prototype.parseKey=function(t){try{var e=0,n=0,r=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/.test(t)?x(t):E.unarmor(t),i=N.decode(r);if(3===i.sub.length&&(i=i.sub[2].sub[0]),9===i.sub.length){e=i.sub[1].getHexStringValue(),this.n=z(e,16),n=i.sub[2].getHexStringValue(),this.e=parseInt(n,16);var a=i.sub[3].getHexStringValue();this.d=z(a,16);var s=i.sub[4].getHexStringValue();this.p=z(s,16);var o=i.sub[5].getHexStringValue();this.q=z(o,16);var u=i.sub[6].getHexStringValue();this.dmp1=z(u,16);var c=i.sub[7].getHexStringValue();this.dmq1=z(c,16);var l=i.sub[8].getHexStringValue();this.coeff=z(l,16)}else{if(2!==i.sub.length)return!1;var h=i.sub[1].sub[0];e=h.sub[0].getHexStringValue(),this.n=z(e,16),n=h.sub[1].getHexStringValue(),this.e=parseInt(n,16)}return!0}catch(t){return!1}},e.prototype.getPrivateBaseKey=function(){var t={array:[new ht.asn1.DERInteger({int:0}),new ht.asn1.DERInteger({bigint:this.n}),new ht.asn1.DERInteger({int:this.e}),new ht.asn1.DERInteger({bigint:this.d}),new ht.asn1.DERInteger({bigint:this.p}),new ht.asn1.DERInteger({bigint:this.q}),new ht.asn1.DERInteger({bigint:this.dmp1}),new ht.asn1.DERInteger({bigint:this.dmq1}),new ht.asn1.DERInteger({bigint:this.coeff})]};return new ht.asn1.DERSequence(t).getEncodedHex()},e.prototype.getPrivateBaseKeyB64=function(){return D(this.getPrivateBaseKey())},e.prototype.getPublicBaseKey=function(){var t=new ht.asn1.DERSequence({array:[new ht.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new ht.asn1.DERNull]}),e=new ht.asn1.DERSequence({array:[new ht.asn1.DERInteger({bigint:this.n}),new ht.asn1.DERInteger({int:this.e})]}),n=new ht.asn1.DERBitString({hex:"00"+e.getEncodedHex()});return new ht.asn1.DERSequence({array:[t,n]}).getEncodedHex()},e.prototype.getPublicBaseKeyB64=function(){return D(this.getPublicBaseKey())},e.wordwrap=function(t,e){if(!t)return t;var n="(.{1,"+(e=e||64)+"})( +|$\n?)|(.{1,"+e+"})";return t.match(RegExp(n,"g")).join("\n")},e.prototype.getPrivateKey=function(){var t="-----BEGIN RSA PRIVATE KEY-----\n";return t+=e.wordwrap(this.getPrivateBaseKeyB64())+"\n",t+="-----END RSA PRIVATE KEY-----"},e.prototype.getPublicKey=function(){var t="-----BEGIN PUBLIC KEY-----\n";return t+=e.wordwrap(this.getPublicBaseKeyB64())+"\n",t+="-----END PUBLIC KEY-----"},e.hasPublicKeyProperty=function(t){return(t=t||{}).hasOwnProperty("n")&&t.hasOwnProperty("e")},e.hasPrivateKeyProperty=function(t){return(t=t||{}).hasOwnProperty("n")&&t.hasOwnProperty("e")&&t.hasOwnProperty("d")&&t.hasOwnProperty("p")&&t.hasOwnProperty("q")&&t.hasOwnProperty("dmp1")&&t.hasOwnProperty("dmq1")&&t.hasOwnProperty("coeff")},e.prototype.parsePropertiesFrom=function(t){this.n=t.n,this.e=t.e,t.hasOwnProperty("d")&&(this.d=t.d,this.p=t.p,this.q=t.q,this.dmp1=t.dmp1,this.dmq1=t.dmq1,this.coeff=t.coeff)},e}(ut),pt="3.2.1",mt=function(){function t(t){void 0===t&&(t={}),t=t||{},this.default_key_size=t.default_key_size?parseInt(t.default_key_size,10):1024,this.default_public_exponent=t.default_public_exponent||"010001",this.log=t.log||!1,this.key=null}return t.prototype.setKey=function(t){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new dt(t)},t.prototype.setPrivateKey=function(t){this.setKey(t)},t.prototype.setPublicKey=function(t){this.setKey(t)},t.prototype.decrypt=function(t){try{return this.getKey().decrypt(S(t))}catch(t){return!1}},t.prototype.encrypt=function(t){try{return D(this.getKey().encrypt(t))}catch(t){return!1}},t.prototype.sign=function(t,e,n){try{return D(this.getKey().sign(t,e,n))}catch(t){return!1}},t.prototype.verify=function(t,e,n){try{return this.getKey().verify(t,S(e),n)}catch(t){return!1}},t.prototype.getKey=function(t){if(!this.key){if(this.key=new dt,t&&"[object Function]"==={}.toString.call(t))return void this.key.generateAsync(this.default_key_size,this.default_public_exponent,t);this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},t.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},t.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},t.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},t.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},t.version=pt,t}(),gt=function(t,e){var n=e.xRatio,r=e.yRatio;return t.forEach((function(t){var i;t.baseData.left=t.baseData.left*n,t.baseData.width=t.baseData.width*n,t.baseData.top=t.baseData.top*r,t.baseData.height=t.baseData.height*r,t.baseData.angle=t.baseData.angle,(null===(i=null==t?void 0:t.children)||void 0===i?void 0:i.length)&>(null==t?void 0:t.children,e)})),t},vt=function(t,e,n){var r=t[n];return t.splice(n,1),t.splice(e,0,r),t},yt=function(e,n,r){var i=t.findIndex(e,(function(t){return t.cid==r})),a=t.findIndex(e,(function(t){return t.cid==n}));return vt(e,a,i)},_t=function(t,e,n){for(var r=-1,i=0;i<t.length;i++){var a=t[i];if(a.children&&a.children.length)for(var s=0;s<a.children.length;s++){if(r=s,a.children[s].cid===n){switch(e){case"up":r>=1&&vt(a.children,r-1,r);break;case"down":r<a.children.length-2&&vt(a.children,r+1,r);break;case"top":0!==r&&vt(a.children,0,r);break;case"bottom":var o=a.children.length-1;r!==o&&vt(a.children,o,r)}break}}}return t},bt=function(e,n,r){var i=!1,a=function(e){for(var s=0;s<e.length;s++){if(e[s].cid==n){i=e[s],r&&t.remove(e,(function(t){return t.cid==n}));break}if(e[s].children)a(e[s].children);else if(e[s].dynamicChildren){if(e[s].dynamicChildren instanceof Map){for(var o=Array.from(e[s].dynamicChildren),u=0;u<o.length;u++)if(o[u]instanceof Array){var c=o[u][1];a(c)}}else if(e[s].dynamicChildren instanceof Array)for(o=e[s].dynamicChildren,u=0;u<o.length;u++)if(o[u]instanceof Array){c=o[u][1];a(c)}}else e[s].stateChildren&&a(e[s].stateChildren)}};return a(e),i||!1},wt=function(t,e){var n=null,r=function(t,i){for(var a=0;a<t.length;a++)if(t[a].cid==e)n=i;else if(t[a].children)r(t[a].children,t[a]);else if(t[a].dynamicChildren)if(t[a].dynamicChildren instanceof Map){for(var s=Array.from(t[a].dynamicChildren),o=0;o<s.length;o++)if(s[o]instanceof Array){var u=s[o][1];r(u,t[a])}}else t[a].dynamicChildren;else t[a].stateChildren&&r(t[a].stateChildren,t[a])};return r(t,null),n||!1},Dt=function(t,e,n){for(var r,i=function(i){var a=t[i];if(a.cid===e)return r=a,n&&t.splice(i,1),{value:r};if(a.children&&a.children.length){for(var s=0;s<a.children.length;s++)if(a.children[s].cid===e)return r=a.children[s],n&&a.children.splice(s,1),{value:r}}else if(a.stateChildren&&a.stateChildren.length){for(s=0;s<a.stateChildren.length;s++)if(a.stateChildren[s].cid===e)return r=a.stateChildren[s],n&&a.stateChildren.splice(s,1),{value:r}}else if(a.dynamicChildren){var o=void 0;if(a.dynamicChildren instanceof Map?o=a.dynamicChildren.get(a.activeDynamic):a.dynamicChildren instanceof Array&&(o=a.dynamicChildren.find((function(t){return t[0]==a.activeDynamic}))[1]),o)for(s=0;s<o.length;s++)if(o[s].cid===e)return r=o[s],n&&o.splice(s,1),{value:r}}},a=0;a<t.length;a++){var s=i(a);if("object"==typeof s)return s.value}return!!r},St=function(t,e,n){var r=Dt(t,e),i=Dt(t,n);return r.pid&&i.pid||!r.pid&&!i.pid},Tt=function(t,e){var n=function(t){for(var r,i,a,s=0;s<t.length;s++){var o=t[s];(null===(a=null===(i=null===(r=o.tmpData)||void 0===r?void 0:r.source)||void 0===i?void 0:i.converse)||void 0===a?void 0:a.data.length)&&o.tmpData.source.converse.data.forEach((function(t){t.code=t.code.replace(/>/g,">").replace(/</g,"<")})),e(o),o&&o.children&&o.children.length?n(o.children):o&&o.dynamicChildren?Array.from(o.dynamicChildren).forEach((function(t,e){n(t[1])})):o.stateChildren&&n(o.stateChildren)}};n(t)},xt=function(t){var e=function(t,n){for(var r=function(r){var i=t[r],a=Bt();n?i.pid=n:i.drag||(i.baseData.left=0,i.baseData.top=0),i.cid=a,i&&i.children&&i.children.length?e(i.children,a):i&&i.dynamicChildren&&Array.from(i.dynamicChildren).forEach((function(t,n){e(t[1],a)}))},i=0;i<t.length;i++)r(i)};e(t)},Et=function(e,n,r,i){try{if(!e||!e.hasOwnProperty(n)&&!e.hasOwnProperty(i))throw"The property you want to modify is not found. Please check whether the attribute ".concat(n," is entered correctly!");if(i){t.cloneDeep(e[i][n]);e[i][n]=r}else e[n]=r}catch(t){console.error(t)}},Mt=function(t,e){e.forEach((function(e){e.baseData.left=e.baseData.left-t.left,e.baseData.top=e.baseData.top-t.top}))},Ot=function(e){var n=t.cloneDeep(e),r=[];return n.children&&n.children.length&&n.children.forEach((function(t){kt(t,n.baseData),r.push(t)})),r},kt=function(t,e){t.baseData.left=t.baseData.left+e.left,t.baseData.top=t.baseData.top+e.top},Ct=function(t,e,n){var r={left:0,top:0};return n&&0!==n?(r.left=t.left-e.left,r.top=t.top-e.top):(r.left=t.left+e.left,r.top=t.top+e.top),r},At=function(e,n){var r=t.cloneDeep(e),i=[],a=function(t,e){var n=bt(t,e);i.push(n.baseData),n.pid&&a(t,n.pid)};a(r,n);var s={left:0,top:0};return i.map((function(t){t&&(s.left+=t.left,s.top+=t.top)})),s},Pt=function(e,n){var r=t.cloneDeep(e);return r.length>1&&r.sort((function(t,e){return t.baseData[n]-e.baseData[n]})),r},Rt=function(t,e){var n=[];return t.map((function(t){var r=e.find((function(e){return e.cid===t}));r&&n.push(r)})),Nt(n)},Nt=function(t){if(t.length>0){var e={left:0,top:0,width:0,height:0},n=Pt(t,"left"),r=Pt(t,"top"),i=n[0].baseData,a=n[n.length-1].baseData,s=r[0].baseData,o=r[r.length-1].baseData,u=Math.max.apply(Math,r.map((function(t){return 1*t.baseData.top+1*t.baseData.height}))),c=Math.max.apply(Math,r.map((function(t){return 1*t.baseData.left+1*t.baseData.width})));return e.left=i.left,e.width=Math.max(1*a.left+1*a.width,c)-1*i.left,e.top=s.top,e.height=Math.max(1*o.top+1*o.height,u)-1*s.top,e}return{left:0,top:0,width:0,height:0}},It=function(e,n,r){var i=e.children,a=t.cloneDeep(n),s=t.cloneDeep(Nt(i)),o=a.left,u=a.top;a.width,a.height;var c=s.left,l=s.top,h=s.width,f=s.height,d={left:o+c,top:u+l,width:h,height:f,angle:n.angle?n.angle:0};return i.forEach((function(e){var n=t.cloneDeep(e.baseData);e.baseData.left<0?n.left=0:n.left=n.left-c,e.baseData.top<0?n.top=0:n.top=n.top-l,e.baseData=n})),e.baseData=d,e.children=i,d},Vt=function(t,e){for(var n=0;n<t.length;n++){var r=t[n];t[n].index=n,r.children&&r.children.length?Vt(r.children):e&&e(r)}},Bt=function(){return(Math.random().toString().substr(3,10)+Date.now()).toString()},Yt=function(t,e,n){var r,i;void 0===n&&(n=" copy");var a=new RegExp("".concat(n,"( \\d+)?$")).exec(t);a?(r=a[1]?parseInt(a[1]):0,i=t.slice(0,a.index)):(r=0,i=t);var s=new RegExp("^".concat(i).concat(n,"( [1-9][0-9]*)?$")),o=[];e.forEach((function(t){if(a=s.exec(t)){var e=a[1]?parseInt(a[1]):1;o.push(e)}})),o.sort((function(t,e){return t-e})),r++;for(var u=0,c=o.length;u<c;u++)if(o[u]===r)r++;else if(o[u]>r)break;return i+n+" "+r},Lt=function(t,e){try{var n=e||window.location.href;if(-1!=n.indexOf("?")){var r={};return n.slice(n.indexOf("?")+1).split("&").forEach((function(t){var e=t.split("=");r[e[0]]=e[1]})),t?r[t]?r[t]:null:r}return console.log("没有参数"),null}catch(t){console.error(t)}};function Ft(t){for(var e=t.types,n=t.element,r=t.actions,i=t.events,a=function(t){var a=e[t],s=n.tmpData.actions[t];if(s&&s.use){var o=s[s.behave];if(!o)return"continue";"vars"===s.behave?o.map((function(t){t.type=a,t.id=n.cid,t.mapField&&r.push(t)})):o.length>0&&o.forEach((function(t,e){"toggle"===s.behave&&""!==t.value&&t.value.length?i.push({id:n.cid,type:s.behave,children:t.value.map((function(t){return{cid:t.cid,visible:t.visible}})),eventType:a,index:e}):"link"===s.behave&&""!==t.value?i.push({id:n.cid,type:s.behave,link:t.value,eventType:a,index:e}):"page"===s.behave&&""!==t.value?i.push({id:n.cid,type:s.behave,page:t.value,eventType:a,index:e}):"dynamic"===s.behave&&""!==t.value&&t.value.length>0?i.push({id:n.cid,type:s.behave,dynamic:t.value,eventType:a,index:e}):i.push(void 0)}))}},s=0;s<e.length;s++)a(s)}function jt(t){var e=new mt;return e.setPublicKey("MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEApWni7uLYVV8iyDPTR6Zs\naj+2BHCn4xTzFeVHADzTdtBiFH9i4fKeDK0IfbPV/9TGeRYNfl0qSfdLtU+1ZIzm\npqHppadukmk5+NbBG4Xm/lAZgVt3dUIrSyamxVjwnymN7PLdxaSOS/mgU6SDGMhN\nTM76AXKZZXWMK12UCXvKkh+TkGufcXzLe7LtrvHPLOgcnEED2CkWATuE9g8K9j4T\neOMxhJcHBUmXLgU6Chufa4nBed2899E7jxJa14+J1IDa2ahrDFLZN7H//ZsvwnXq\nxVbxm0k5jyWqfCpg13V7zD3DxNWlo3MIh2fPtIEUDVhugqPd0jPmqquqdBNTnu2I\nGQIDAQAB"),e.encrypt(t)}var Ut={updataArea:function(t,e){t.currentArea=e},selectdArea:function(t,e){var n=Rt(e,t.list);t.currentArea=n},updataAngle:function(t,e){var n=e.id,r=e.angle,i=Dt(t.list,n);"boolean"!=typeof i&&(i.baseData.angle=r)},updataBaseData:function(t,e){var n=e.data,r=e.ratio,i=bt(t.list,n.cid),a=e.oldData;if("object"!=typeof i||i.pid){if("object"==typeof i&&i.pid){var s=Dt(t.list,i.pid);"object"==typeof s&&(i.baseData.left<0&&(i.baseData.left=0),i.baseData.top<0&&(i.baseData.top=0),Object.assign(i.baseData,n.baseData),It(s,s.baseData),t.groupFlag=!t.groupFlag)}}else if(Object.assign(i.baseData,n.baseData),r&&i.children&&i.children.length>0){var o=i.baseData.width/a.width,u=i.baseData.height/a.height;gt(i.children,{xRatio:o,yRatio:u})}},multipleUpdataBaseData:function(e,n){if(n.ratio)for(var r=n.newData,i=n.oldData,a=r.width/i.width,s=r.height/i.height,o=e.cache.length;o--;)e.cache[o].baseData.left=e.cache[o].baseData.left*a,e.cache[o].baseData.width=e.cache[o].baseData.width*a,e.cache[o].baseData.top=e.cache[o].baseData.top*s,e.cache[o].baseData.height=e.cache[o].baseData.height*s;else for(o=e.cache.length;o--;){var u=t.cloneDeep(e.cache[o].baseData);u.left=u.left+n.deltaX,u.top=u.top+n.deltaY,e.cache[o].comPanel?e.cache[o].comPanel.setAttrData(Object.assign(u,n.baseData)):e.cache[o].baseData=u}},multipleUpdata:function(t,e){var n=e.ids,r=e.data,i=Dt(t.list,n);i&&Object.assign(i.baseData,r)},multipleMove:function(t,e){},move:function(t,e){var n=t.selectd,r=e.type,i=e.speed?e.speed:1;if(0!==n.length){var a=t.list.filter((function(t){return n.includes(t.cid)}));0==a.length&&(a=[Dt(t.list,n[0])]);for(var s=0;s<a.length;s++){var o=a[s];if(o.pid&&t.selectd.length>1)return void console.warn("Only one component can be moved within a group");if("up"===r?o.baseData.top=o.baseData.top-i:"down"===r?o.baseData.top+=i:"left"===r?o.baseData.left-=i:"right"===r&&(o.baseData.left+=i),"object"==typeof o&&o.pid){var u=Dt(t.list,o.pid);"object"==typeof u&&(It(u,u.baseData),t.groupFlag=!t.groupFlag)}}}else console.warn("Warning! please select the component to move.")},updataGroupBaseData:function(e,n){var r=Dt(e.list,n.pid),i=t.cloneDeep(r);Dt(r.children,n.cid),It(r,i.baseData)},editGroupBaseData:function(t,e){var n=Dt(t.list,e);n.children.forEach((function(t){kt(t,n.baseData)}))},syncBaseData:function(e,n){var r=n.cid,i=n.data,a=n.isContainer,s=t.cloneDeep(e.list);if(void 0!==a){var o=function(t){for(var e=0;e<t.length;e++)r===t[e].cid?t[e].baseData=Object.assign({},t[e].baseData,i):t[e].hasOwnProperty("children")&&o(t[e].children)};s.length&&o(s)}else{var u=bt(s,r);u&&(u.baseData=Object.assign({},u.baseData,i))}e.list=s},updataItemData:function(t,e){var n=e.cid,r=e.propsName,i=e.propsValue,a=Dt(t.list,n);a&&(a[r]=i)},updataOpacity:function(t,e){var n=e.cid,r=e.propsValue,i=Dt(t.list,n);"boolean"!=typeof i&&i&&(i.baseData.opacity=r)}},Ht={delListItem:function(e,n){var r=t.cloneDeep(e.list);"string"==typeof n?bt(r,n,!0):n.forEach((function(t){bt(r,t,!0)})),e.list=r},cloneItem:function(e){if(e.selectd.length>0){e.cloneCache=[];for(var n=0;n<e.selectd.length;n++){var r=Dt(e.list,e.selectd[n]);if("boolean"!=typeof r){var i=t.cloneDeep(r);i.cid=Bt(),i.pid="",e.cloneCache.push(i)}}}},shearItem:function(e,n){if(e.selectd.length>0){e.cloneCache=[];for(var r=0;r<e.selectd.length;r++){var i=Dt(e.list,e.selectd[r],!0);if("boolean"!=typeof i){var a=t.cloneDeep(i);a.cid=Bt(),e.cloneCache.push(a)}}e.selectd=[]}},pasteItem:function(e){var n,r=t.cloneDeep(e.cloneCache);if(r.length>0){var i=[];r.forEach((function(t){t.cid=Bt();var n=Yt(t.name,e.list.map((function(t){return t.name})));if(t.name=n,t.children&&t.children.length>0&&t.children.forEach((function(e){e.pid=t.cid,e.cid=Bt()})),"dynamicComponent"==t.componentType){var r=void 0;t.dynamicChildren instanceof Map?r=t.dynamicChildren.get(t.activeDynamic):t.dynamicChildren instanceof Array&&(r=t.dynamicChildren.find((function(t){return t[0]==t.activeDynamic}))[1]),r.forEach((function(e){e.pid=t.cid,e.cid=Bt()}))}i.push(t.cid)})),e.selectd.length>0?Rt(e.selectd,e.list):Nt(r),r.forEach((function(t){t.baseData.top=t.baseData.top+20,t.baseData.left=t.baseData.left+20})),(n=e.list).unshift.apply(n,t.cloneDeep(r)),e.selectd=i}},updataShow:function(t,e){var n=bt(t.list,e);if("boolean"!=typeof n){var r=!n.isShow;Et(n,"isShow",r,"")}},changeShow:function(t,e){var n=e.cid,r=e.flag,i=bt(t.list,n);i&&Et(i,"isShow",r,"")},updataLock:function(t,e){var n=bt(t.list,e);if("boolean"!=typeof n){var r=!n.isLock;Et(n,"isLock",r,"")}},breakUp:function(t,e){var n;try{if(!e)throw"Please pass in the component CID correctly!";var r=t.list.findIndex((function(t){return t.cid===e})),i=t.list[r],a=Ot(i);a.map((function(t){return t.pid=""})),t.list.splice(r,1),(n=t.list).push.apply(n,a)}catch(t){console.error(t)}},editGroup:function(t,e){var n,r=e.groupId;e.status;try{if(!r)throw"Please pass in the component CID correctly!";var i=t.list.findIndex((function(t){return t.cid===r})),a=t.list[i],s=Ot(a);s.map((function(t){return t.pid=""})),t.list.splice(i,1),(n=t.list).push.apply(n,s)}catch(t){console.error(t)}},combination:function(e){t.cloneDeep(e.list);var n,r,i=[],a=[],s=Bt(),o=Dt(e.list,e.selectd[0]);o.pid?console.info("Sorry, only level 2 is supported group"):o.children&&1===e.selectd.length?console.info("Sorry, only level 2 is supported group"):(e.selectd.forEach((function(t){var n=e.list.findIndex((function(e){return e.cid===t}));if(n>-1){i.push(n);var r=e.list.splice(n,1)[0];r.pid=s,a.push(r)}})),n=i.sort((function(t,e){return t-e}))[0],r=1===a.length?t.cloneDeep(a[0].baseData):e.currentArea,Object.assign(r,{angle:0,opacity:100,rotate:0,rotateY:0}),Mt(r,a),e.list.splice(n,0,{cid:s,pid:"",isShow:!0,isLock:!1,editer:!1,baseData:r,z:0,toggle:!0,name:"群组",type:"folder",children:a}),e.selectd=[s])},moveUp:function(t,e){try{var n=t.list.findIndex((function(t){return t.cid===e}));n>=1?vt(t.list,n-1,n):_t(t.list,"up",e)}catch(t){console.error(t)}},moveDown:function(t,e){try{var n=t.list.findIndex((function(t){return t.cid===e}));n>-1&&n<=t.list.length-2?vt(t.list,n+1,n):_t(t.list,"down",e)}catch(t){console.error(t)}},moveTop:function(t,e){try{var n=t.list.findIndex((function(t){return t.cid===e}));n>-1&&0!==n?vt(t.list,0,n):_t(t.list,"top",e)}catch(t){console.error(t)}},moveBottom:function(t,e){try{var n=t.list.findIndex((function(t){return t.cid===e})),r=t.list.length-1;n>-1&&n!==r?vt(t.list,r,n):_t(t.list,"bottom",e)}catch(t){console.error(t)}}},zt=function(t,n){void 0===t&&(t="");var r=e.create({baseURL:t,timeout:3e4,headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"}});return r.interceptors.request.use((function(t){return sessionStorage.getItem("anov-go-token")&&"null"!=sessionStorage.getItem("anov-go-token")&&(t.headers["X-ANOV-ACCESS-TOKEN"]=sessionStorage.getItem("anov-go-token")),sessionStorage.getItem("unify-access-token")&&"null"!=sessionStorage.getItem("unify-access-token")&&(t.headers["X-UNIFY-ACCESS-TOKEN"]=sessionStorage.getItem("unify-access-token")),"post"===t.method?(t.headers["Content-Type"]="application/json; charset=UTF-8",t):"get"===t.method?t:"put"===t.method?(t.headers["Content-Type"]="application/json; charset=UTF-8",t):"delete"===t.method?t:void 0}),(function(t){return Promise.reject(t)})),r.interceptors.response.use((function(t){var e;return 200===t.status||2e4==t.data.code?(n&&n(t),t.data):(n&&n(t),null==t||t.status,null===(e=null==t?void 0:t.data)||void 0===e||e.code,Promise.reject(t.data))}),(function(t){return n&&n(null==t?void 0:t.response),Promise.reject(t.response)})),r},qt=zt();function Gt(e,n,r,s){return i(this,void 0,void 0,(function(){var i,o,u,c;return a(this,(function(a){switch(a.label){case 0:i=e,o=t.cloneDeep(r),u=n?n.toLowerCase():"get",a.label=1;case 1:return a.trys.push([1,3,,4]),[4,qt({method:Kt[u],headers:s,url:i,params:o,timeout:3e4}).then((function(t){return{code:2e4,data:t.data}}))];case 2:return[2,a.sent()];case 3:return c=a.sent(),console.error("error:"+c.message),[3,4];case 4:return[2]}}))}))}function Wt(t){return i(this,void 0,void 0,(function(){var e,n,i;return a(this,(function(a){switch(a.label){case 0:e=window.anUrl?window.anUrl:"",n=e+(window.agentPath?window.agentPath:"/ds/v1/api-proxy/v1/query"),r({},t),a.label=1;case 1:return a.trys.push([1,3,,4]),"{}"==JSON.stringify(null==t?void 0:t.params)&&(null==t||delete t.params),"{}"==JSON.stringify(null==t?void 0:t.headers)&&(null==t||delete t.headers),[4,qt({url:n,headers:{"Content-Type":"application/json;charset=UTF-8"},method:"post",data:{body:null==t?void 0:t.params,headers:null==t?void 0:t.headers,method:null==t?void 0:t.method,url:null==t?void 0:t.url}})];case 2:return[2,a.sent()];case 3:return i=a.sent(),console.error("error:"+i.message),[3,4];case 4:return[2]}}))}))}var Zt,Kt,$t=function(e,n,r){var i=e.tmpData.source,a=r?r.value.api.agency:i.api.agency,s=i.type;if("static"!==s){var o=r?r.value.api:i[s],u=o.url,c=o.headers,l=o.params,h=o.requestType,f={};u.split("?")[0];var d=function(t){var e=new Object;if(-1!==t.indexOf("?"))for(var n=t.split("?")[1].split("&"),r=0;r<n.length;r++)e[n[r].split("=")[0]]=unescape(n[r].split("=")[1]);return e}(u);c.use&&(f=JSON.parse(c.value));var p={};return l&&t.isString(l)?t.assign(p,d,JSON.parse(l)):t.assign(p,d,l),Object.keys(p).forEach((function(e){var r=p[e],i=n.filter((function(t){return t.mapField==r.toString().replace("@","")}))[0];i&&(p[e]=i.value,u=t.replace(u,d[e],i.value))})),{url:u,requestType:h,params:l,headers:f,agency:a}}return null},Xt=function(t,e,n){void 0===e&&(e=[]),e||(e=[]);var r=$t(t,e);r&&n(r)},Qt=function(t,e,n,r,i){t.then((function(t){!t||2e4!=t.code&&200!=t.code?te(e,Jt({error:!0,message:t.msg?t.msg:"data error"},e,n,r),i):n?te(e,Jt(t.data,e,n,r),i):te(e,Jt(t.data,e,n,r),i,t.data)})).catch((function(t){te(e,Jt({error:!0,message:t.msg?t.msg:"data error"},e,n,r),i)}))},Jt=function(t,e,n,r){void 0===n&&(n=!0);try{var i=e.tmpData.source,a=i.converse,s=i.mapFields;return a&&a.use&&n?h(t,a,s,r):new Promise((function(e,n){e(t)}))}catch(t){console.error(t)}},te=function(t,e,n,r){e.then((function(e){r?ee(t,e,n,r):ee(t,e,n)}))},ee=function(t,e,n,r){var i=t.tmpData.source.type;r?("static"==i&&(t.tmpData.source[i].originData=r),"indicatorCQ"===i?t.tmpData.source.indicator.data=e:t.tmpData.source[i].data=e):"indicatorCQ"===i?t.tmpData.source.indicator.data=e:t.tmpData.source[i].data=e,t.source=e,n({cid:t.cid,data:e})},ne=function(t,e,n,r,i){void 0===n&&(n=!0);try{var a=t.tmpData.source.type,s=void 0;s=r||function(){};var o=null;"globalData"==a&&(o=i.find((function(e){return t.tmpData.source[a].id==e.key}))),function(t,e,n,r,i,a){void 0===r&&(r=!0),"globalData"==t&&(t=a.value.type);var s=a?a.value[t]:e.tmpData.source[t];if("api"==t)se(e,n,r,i,a);else if("static"==t){var o=void 0,u=void 0;s.originData&&Object.keys(s.originData).length?u=o=s.originData:o=s.data,te(e,Jt(o,e,r,n),i,u)}else if("datasource"==t)ae(s.dsName,{dsType:"1",sql:jt(s.inputSql)},e,n,i,r);else if("staticFile"==t)ae(s.dsName,{dsType:s.dsType,sql:""},e,n,i,r);else if("indicator"==t)ie(s.zbId,{},e,n,i,r);else if("indicatorCQ"==t){var c=a?a.value.indicator:e.tmpData.source.indicator;re(c.zbName,c.params,e,n,i,r)}else i({cid:e.cid,data:"",message:"发生错误"})}(a,t,e,n,s,o)}catch(t){r&&r(t),console.log("error:"+t)}},re=function(t,e,n,r,s,o){return i(void 0,void 0,void 0,(function(){var i,u,c,l,h,f,d,p,m;return a(this,(function(a){switch(a.label){case 0:return i=window.BaseUrl,u=e.dateType,c=void 0===u?"":u,l=e.endPeriod,h=void 0===l?"":l,f=e.metricsName,d=void 0===f?t:f,p=e.startPeriod,m=void 0===p?"":p,[4,qt({method:"GET",url:"".concat(i,"ds/v1/metrics/v1/data-alarm?dateType=").concat(c,"&endPeriod=").concat(h,"&metricsName=").concat(d,"&startPeriod=").concat(m),timeout:3e4}).then((function(t){if(2e4==t.code){var e=t.data;e?te(n,Jt(e,n,o,r),s):(te(n,Jt({data:e,message:t.msg?t.msg:"data error"},n,o,r),s),s({data:e,message:"发生错误"}))}else s({data:"",message:"发生错误"}),console.error("发生错误"),te(n,Jt({error:!0,message:t.msg?t.msg:"data error"},n,o,r),s)})).catch((function(t){s(t)}))];case 1:return a.sent(),[2]}}))}))},ie=function(t,e,n,r,s,o){return i(void 0,void 0,void 0,(function(){var i,u,c,l,h;return a(this,(function(a){switch(a.label){case 0:return i=window.BaseUrl?window.BaseUrl.replace("/management",""):"",u=Lt("YZH_EXCHANGE_TOKEN")?Lt("YZH_EXCHANGE_TOKEN"):null===(h=window.yzhAuth)||void 0===h?void 0:h.getToken(),l=window.gdPassid,window.BASE_RELEASE?(console.log("发布:",u),c="".concat(i,"/ds/data-engine/v1/").concat(t,"/zb-query?token=").concat(u,"&passid=").concat(l,"&preview=1")):(console.log("编辑",u),c="".concat(i,"/ds/data-engine/v1/").concat(t,"/zb-query?token=").concat(u,"&passid=").concat(l)),[4,qt({method:"POST",url:c,data:e,timeout:3e4}).then((function(t){if(2e4==t.code){var e=JSON.parse(t.data);e?te(n,Jt(e,n,o,r),s):(te(n,Jt({error:!0,message:t.msg?t.msg:"data error"},n,o,r),s),s({data:e,message:"发生错误"}))}else s({data:"",message:"发生错误"}),console.error("发生错误"),te(n,Jt({error:!0,message:t.msg?t.msg:"data error"},n,o,r),s)})).catch((function(t){s(t)}))];case 1:return a.sent(),[2]}}))}))},ae=function(t,e,n,r,s,o){return i(void 0,void 0,void 0,(function(){var i;return a(this,(function(a){switch(a.label){case 0:return i=window.BaseUrl?window.BaseUrl.replace("/management",""):"",[4,qt({method:"get",url:"".concat(i,"/ds/v1/data-proxy/v1/").concat(t,"/query"),params:e,timeout:3e4}).then((function(t){if(2e4==t.code){var e=JSON.parse(t.data);e?te(n,Jt(e,n,o,r),s):(te(n,Jt({error:!0,message:t.msg?t.msg:"data error"},n,o,r),s),s({data:e,message:"发生错误"}))}else s({data:"",message:"发生错误"}),console.error("发生错误"),te(n,Jt({error:!0,message:t.msg?t.msg:"data error"},n,o,r),s)})).catch((function(t){s(t)}))];case 1:return a.sent(),[2]}}))}))},se=function(t,e,n,r,i){void 0===n&&(n=!0);try{var a=$t(t,e,i),s=a.url,o=a.requestType,u=a.params,c=a.headers,l=a.agency,h=s.match(/(@)[\w]*/gm),f=s;h&&h.length&&h.forEach((function(t){var n=e.filter((function(e){return"@"+e.mapField==t})),r="";n&&n.length&&n.forEach((function(t){""!=t.value&&(r=t.value)})),s=f.replaceAll(t,r)})),Qt(l?Wt({method:o,url:s,params:u,headers:c}):Gt(s,o,u,c),t,n,e,r)}catch(t){console.log("error:"+t)}},oe=function(t,e,n,r,i,a){var s,o;void 0===a&&(a=!0),t&&"api"==(null===(o=null===(s=null==t?void 0:t.tmpData)||void 0===s?void 0:s.source)||void 0===o?void 0:o.type)&&Xt(t,e,(function(s){if(o=s.url,!new RegExp("^((https|http|ftp|rtsp|mms)?://)?(([0-9a-z_!~*'().&=+$%-]+: )?[0-9a-z_!~*'().&=+$%-]+@)?(([0-9]{1,3}.){3}[0-9]{1,3}|([0-9a-z_!~*'()-]+.)*([0-9a-z][0-9a-z-]{0,61})?[0-9a-z].[a-z]{2,6})(:[0-9]{1,4})?((/?)|(/[0-9a-z_!~*'().;?:@&=+$,%#-]+)+/?)$").test(o))return n({cid:t.cid,data:{error:!0,message:s.url+"不是一个正确的地址,请正确填写!"}}),!1;var o,u=s.url,c=s.requestType,l=s.params,f=s.headers;s.agency?Wt({method:c,url:u,params:l,headers:f}).then((function(r){r&&2e4==r.code?(!function(t,e,n){try{e.then((function(e){n(e?{cid:t.cid,data:e}:{cid:t.cid,data:"数据发生错误!"})}))}catch(t){console.error(t)}}(t,Jt(r.data,t,a,e),n),i&&"function"==typeof i&&i(1)):(i&&"function"==typeof i&&i(0),n({cid:t.cid,data:{error:!0,message:r.msg?r.msg:"error"}}))})).catch((function(e){i&&"function"==typeof i&&i(-1),n({cid:t.cid,data:{error:!0,message:e}})})):Gt(u,c,l,f).then((function(e){var i=[];if(r){var s=t.tmpData.source,o=s.converse,u=s.mapFields;o&&o.use&&a?h(e.data,o,u).then((function(e){i=e,n({cid:t.cid,data:i})})):(i=e.data,n({cid:t.cid,data:i}))}else i=e.data,n({cid:t.cid,data:i})})).catch((function(e){n({cid:t.cid,data:{error:!0,message:e}})}))}))};!function(t){t.json="application/json;charset=UTF-8",t.form="application/x-www-form-urlencoded; charset=UTF-8"}(Zt||(Zt={})),function(t){t.get="GET",t.post="POST",t.put="PUT",t.patch="PATCH",t.delete="DELETE"}(Kt||(Kt={}));var ue=Object.freeze({__proto__:null,Http:function(t,e){return zt(t,e)},axios:e,getDataForEvaluator:h,getData:Gt,agentData:Wt,getComponentData:Xt,autoUpdateComData:function(e,n,r){var i,a,s,o,u,c=null===(i=null==e?void 0:e.tmpData)||void 0===i?void 0:i.source,l=null===(s=null===(a=c[null==c?void 0:c.type])||void 0===a?void 0:a.autoUpdate)||void 0===s?void 0:s.open,h=null===(u=null===(o=c[null==c?void 0:c.type])||void 0===o?void 0:o.autoUpdate)||void 0===u?void 0:u.time;l&&t.isNumber(h)&&h>0&&setInterval((function(){ne(e,n,!0,r)}),1e3*h)},updateComData:ne,refreshData:oe,get ContentType(){return Zt},get HttpMethod(){return Kt}}),ce=function(e,n){try{var r={},i=[],a=[],o=t.cloneDeep(e);return Tt(o,(function(t){var e,n;(null===(n=null===(e=null==t?void 0:t.tmpData)||void 0===e?void 0:e.actions)||void 0===n?void 0:n.length)&&Ft({types:t.tmpData.actions.map((function(t){return t.eventType})),element:t,actions:i,events:a})})),Tt(o,(function(t){var e,n=null===(e=null==t?void 0:t.tmpData)||void 0===e?void 0:e.source;le(n,i,t,r)})),n&&n.length&&(i=s(s([],i,!0),n,!0)),{shareVariableTree:r,globalVars:i.filter((function(t){return t})),globalEvents:a.filter((function(t){return t}))}}catch(t){return console.error("error",t),{}}},le=function(t,e,n,r){if(t){var i=null==t?void 0:t.type,a=t[i],s=null==t?void 0:t.converse;if(s&&s.use&&s.data.length&&s.data.map((function(t){var e;(null==t?void 0:t.dependVars)&&(null===(e=null==t?void 0:t.dependVars)||void 0===e?void 0:e.length)&&t.dependVars.map((function(t){he(r,t,n.cid)}))})),"api"===i){var o=a.url.match(/(@)[\w]*/gm);if(o)for(var u=o.map((function(t){return t.replace("@","")})),c=function(t){var i=u[t];if(!i||!e||e.findIndex((function(t){return t.mapField===i}))<0)return"continue";he(r,i,n.cid)},l=0;l<u.length;l++)c(l)}}},he=function(e,n,r){if(e[n]&&t.isArray(e[n])){e[n].push(r);var i=e[n];e[n]=t.uniq(i)}else e[n]=[],e[n].push(r)};function fe(e){var n=[],r=[];Tt(t.cloneDeep(e),(function(t){var e,i;(null===(i=null===(e=null==t?void 0:t.tmpData)||void 0===e?void 0:e.actions)||void 0===i?void 0:i.length)&&Ft({types:t.tmpData.actions.map((function(t){return t.eventType})),element:t,actions:n,events:r})}));var i=r.filter((function(t){return t}));return{actions:n,events:i}}var de={addGlobalSource:function(t,e){var n=e.name,r=e.value;t.globalSource.push({key:Bt(),name:n,value:r})},editGlobalSource:function(e,n){var r=this,i=n.key,a=n.value,s=e.globalSource.find((function(t){return t.key==i}));s&&(s.name=n.name,s.value=a,Tt(t.cloneDeep(e.list),(function(t){var n,a,s;if("globalData"==(null===(a=null===(n=null==t?void 0:t.tmpData)||void 0===n?void 0:n.source)||void 0===a?void 0:a.type)){var o=null===(s=null==t?void 0:t.tmpData)||void 0===s?void 0:s.source.globalData;(null==o?void 0:o.id)==i&&ne(t,e.globalVars,!0,(function(t){r.commit("GoCom/updataSourceForComponent",t)}),e.globalSource)}})))},delGlobalSource:function(t,e){try{var n=t.globalSource.findIndex((function(t){return t.key===e}));-1!==n&&t.globalSource.splice(n,1)}catch(t){console.error("删除错误",t)}},setSyncFlag:function(t,e){t.syncFlag=e},goUpShareVar:function(t,e){console.log(e,"reload"),t.shareVariable[e.key]=r({},e)},addGoVar:function(t,e){try{var n=e.mapField,r=(e.mold,t.globalConstant.filter((function(t){return t.mapField==n})).length);if(!n||r)throw new Error("添加失败!变量已经存在!");t.globalConstant.push(e),t.globalVars=ce(t.list,t.globalConstant).globalVars}catch(t){console.warn(t)}},delGoVar:function(e,n){try{var r=n.mapField,i=(n.mold,e.globalConstant.filter((function(t){return t.mapField==r})).length);if(!r||!i)throw new Error("删除失败!");var a=t.cloneDeep(e.globalConstant);t.remove(a,(function(t){return t.mapField==r})),e.globalConstant=a,e.globalVars=ce(e.list,e.globalConstant).globalVars}catch(t){console.warn(t)}},editGoVar:function(e,n){try{var r=n.mapField;n.mold;if(!e.globalConstant.find((function(t){return t.mapField==r})))throw new Error("修改失败!");var i=t.cloneDeep(e.globalConstant);i.forEach((function(t){t.mapField==r&&Object.assign(t,n)})),e.globalConstant=i,e.globalVars=ce(e.list,e.globalConstant).globalVars}catch(t){console.warn(t)}},goEditVar:function(t,e){var n=e.key,r=e.value;t.globalVars.forEach((function(t){t.edit=!1})),t.globalVars.forEach((function(t){t.mapField==n&&(t.edit=!0,t.value=r)}))},goDelShareVar:function(t,e){delete t.shareVariable[e]},signal:function(t,e){},goSynchroDataAll:function(e,n){e.list=t.cloneDeep(n)},goSynchroData:function(e,n){if(e){var r=n.cid,i=n.attr,a=n.value,o=n.attrModel,u=Dt(e.list,r);if("boolean"!=typeof u){if(u&&Et(u,i,a,o),"actions"===i.toLowerCase()){var c=e.list,l=t.uniqWith(t.concat(fe(c).actions,fe(e.caseList).actions),t.isEqual),h=t.uniqWith(t.concat(fe(c).events,fe(e.caseList).events),t.isEqual);e.globalVars=s(s([],l,!0),e.globalConstant,!0),e.globalEvents=h,e.pages[e.pageIndex]&&(e.pages[e.pageIndex].globalVars=l),e.pages[e.pageIndex]&&(e.pages[e.pageIndex].globalEvents=h)}if("source"===i){if(!u.tmpData.source)return!1;var f=u.tmpData.source,d=f.type;if("api"===d){var p=f[d].url.match(/(@)[\w]*/gm);if(p)for(var m=p.map((function(t){return t.replace("@","")})),g=function(n){var r=m[n];if(!r||!e.globalVars||e.globalVars.findIndex((function(t){return t.mapField===r}))<0)return"continue";if(e.shareVariableTree||(e.shareVariableTree={}),e.shareVariableTree[r]&&t.isArray(e.shareVariableTree[r])){e.shareVariableTree[r].push(u.cid);var i=e.shareVariableTree[r];e.shareVariableTree[r]=t.uniq(i)}else e.shareVariableTree[r]=[],e.shareVariableTree[r].push(u.cid)},v=0;v<m.length;v++)g(v)}}}}this.commit("GoCom/execute")}},pe={updataList:function(e,n){var r=n.cid,i=t.cloneDeep(n.list),a=t.cloneDeep(e.list);if(console.log(i,a),-1===i.findIndex((function(t){return t.cid===r})))for(var s=0;s<i.length;s++){var o=i[s];if(o.children&&o.children.length)for(var u=o.cid,c=0;c<o.children.length;c++){var l=o.children[c];if(l.cid===r){l.pid=u;var h=t.cloneDeep(o.baseData),f=Ct(l.baseData,o.baseData,1);Object.assign(l.baseData,f),It(o,h);break}}}else{var d=i.find((function(t){return t.cid===r})),p=d.pid;if(p){d.pid="";var m=bt(i,p);console.log(m,"movGroup"),Object.assign(d.baseData,Ct(d.baseData,m.baseData));s=m.children.findIndex((function(t){return t.cid===d.cid}));m.children.splice(s,1),0===m.children.length?bt(i,m.cid,!0):It(m,m.baseData)}}e.list=i},updataListForContrast:function(e,n){var r=n.cid,i=n.list,a=bt(i,r);wt(i,r);var s=wt(e.list,r);if(!a.pid){a.pid=s.cid;var o=t.cloneDeep(a.baseData),u=Ct(a.baseData,s.baseData,1);Object.assign(a.baseData,u),It(s,o)}},updateTree:function(e){for(var n=e.list,r=0;r<n.length;r++){var i=n[r];if(i.pid)(o=Dt(n,i.pid))&&Object.assign(i.baseData,Ct(i.baseData,o.baseData));if(i.children)for(var a=0;a<i.children.length;a++){var s=i.children[a];if(s.pid!=i.cid){var o=Dt(n,s.pid);if(t.cloneDeep(s.baseData),o){Object.assign(s.baseData,Ct(s.baseData,o.baseData));var u=Ct(s.baseData,i.baseData,1);Object.assign(s.baseData,u),It(i,i.baseData)}s.pid=i.cid}}}}},me=function(t){return i(this,void 0,void 0,(function(){var e,n,r,i;return a(this,(function(a){switch(a.label){case 0:return e=t.fontUrl,n=t.fontName,r="__custom_font__",(i=document.getElementById(r))?[3,2]:((i=document.createElement("style")).id=r,[4,(document.head||document.getElementsByTagName("head")[0]).appendChild(i)]);case 1:a.sent(),a.label=2;case 2:return i.innerText+="@font-face{font-family:'".concat(n,"';src:url(").concat(e,");}"),[2]}}))}))},ge=function(t,e,n){return void 0===e&&(e="jspaths"),i(void 0,void 0,void 0,(function(){var r,i;return a(this,(function(a){return r="script","jspaths"==e?r="script":"csspaths"==e&&(r="link"),i=document.createElement(r),"jspaths"==e?(i.defer=!0,i.src=t):"csspaths"==e&&(i.defer=!0,i.href=t),i.className=e,(n||document.head||document.getElementsByTagName("head")[0]).appendChild(i),i.onload=function(){},i.onerror=function(){throw new Error("Failed to load ".concat(t))},[2]}))}))},ve=function(t,e){return void 0===e&&(e="jspaths"),i(void 0,void 0,void 0,(function(){var n,r;return a(this,(function(i){switch(i.label){case 0:n=0,i.label=1;case 1:return n<t.length?(r=t[n],"fonts"!=e?[3,2]:(me(r),[3,4])):[3,5];case 2:return[4,ge(r,e)];case 3:i.sent(),console.log(55555),i.label=4;case 4:return n++,[3,1];case 5:return[2]}}))}))},ye=function(t){return i(void 0,void 0,void 0,(function(){return a(this,(function(e){switch(e.label){case 0:return t.fonts&&t.fonts.length?[4,ve(t.fonts,"fonts")]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}))}))},_e=function(e){return i(void 0,void 0,void 0,(function(){return a(this,(function(n){switch(n.label){case 0:return e.jspaths&&e.jspaths.length?[4,ve(e.jspaths,"jspaths")]:[3,2];case 1:n.sent(),n.label=2;case 2:return e.csspaths&&e.csspaths.length?[4,ve(e.csspaths,"csspaths")]:[3,4];case 3:n.sent(),n.label=4;case 4:return e.fonts&&e.fonts.length?(t.uniqBy(e.fonts,"name"),[4,ve(e.fonts,"fonts")]):[3,6];case 5:n.sent(),n.label=6;case 6:return[2]}}))}))},be=function(){var t;(t=document.getElementById("__custom_font__")).parentNode.removeChild(t),Array.from(document.getElementsByTagName("script")).filter((function(t){return"jspaths"==t.className})).forEach((function(t){!function(t){for(var e=Array.from(document.getElementsByTagName("script")),n=0;n<e.length;n++)e[n]&&e[n].src&&-1!=e[n].src.indexOf(t)&&e[n].parentNode.removeChild(e[n])}(t.src)})),Array.from(document.getElementsByTagName("link")).filter((function(t){return"csspaths"==t.className})).forEach((function(t){!function(t){for(var e=Array.from(document.getElementsByTagName("link")),n=0;n<e.length;n++)e[n].href,e[n]&&e[n].href&&-1!=e[n].href.indexOf(t)&&e[n].parentNode.removeChild(e[n])}(t.href)}))};var we={reset:function(t){t.selectd=[],t.list=[],t.plant=null,t.tw=null,t.watermark=null,t.endnotes=null},setFonts:function(t,e){t.resource.fonts.push({fontName:e.name,fontUrl:e.src}),ye(t.resource)},setCaseInfo:function(t,e){t.caseInfo=e},setPageId:function(t,e){t.pageId=e},addConstant:function(e,n){var r=t.find(e.constant,{name:n.name});r?Object.assign(r,n):e.constant.push(n)},editConstant:function(e,n){var r=t.find(e.constant,{name:n.name});r&&Object.assign(r,n)},delConstant:function(e,n){t.remove(e.constant,(function(t){return t.name==n}))},setResource:function(t,e){var n=e.type,r=e.value;t.resource[n]=r,be(),_e(t.resource)},updataResource:function(t){be(),_e(t.resource)},setData:function(t,e){t.selectd=e.selectd},setList:function(t,e){t.list=e},saveDynamicChildren:function(t,e){var n=e.cid,r=e.data,i=e.name,a=t.pages[t.pageIndex].list,s=Dt(a,n);s&&(s.activeDynamic=i,s.dynamicChildren instanceof Array&&(s.dynamicChildren=new Map(s.dynamicChildren)),s.dynamicChildren.set(i,r))},setTheme:function(t,e){t.theme=e},setPlant:function(t,e){var n=e.attr,r=e.value;t.plant||(t.plant={name:"",theme:null,baseData:{width:1920,height:1080,left:0,top:0},option:null,optionDes:null}),t.plant[n]=r},setPlantHeight:function(t,e){t.plant&&(t.plant.baseData.height=t.plant.baseData.height+e)},reversal:function(t,e){t.undos=[],t.undoRedoPointer=-1,t=Object.assign(t,e)},setComTmp:function(t,e){var n=t.list.find((function(t){return t.cid===e[0]}));n.com=e[1],n.tmp=e[2]},setLoading:function(t,e){var n=e.cid,r=e.flag,i=t.list.find((function(t){return t.cid===n}));i&&(i.loading=r)},setMultiple:function(t,e){t.multiple=e},setCaseList:function(t,e){t.caseList=e},updataComponentForList:function(t,e){var n=e.cid,r=e.data,i=t.list,a=bt(i,n);"boolean"!=typeof a&&Object.assign(a,r)},updataComponentForCaseList:function(t,e){var n=e.cid,r=e.data,i=t.caseList,a=bt(i,n);"boolean"!=typeof a&&Object.assign(a,r)},updataComponent:function(t,e){var n=e.cid,r=e.data,i=t.pages&&t.pages[0]&&t.pages[0].list&&t.pages[0].list.length?t.pages[0].list:t.list,a=bt(i,n);"boolean"!=typeof a&&Object.assign(a,r)},updataArea:function(t,e){t.currentArea.left+=e.deltaX,t.currentArea.top+=e.deltaY},updataSource:function(t,e){var n=e.cid,r=e.data,i=Dt(t.list,n);"boolean"!=typeof i&&("indicatorCQ"===i.tmpData.source.type?i.tmpData.source.indicator.data=r:i.tmpData.source[i.tmpData.source.type].data=r)},updataSourceForComponent:function(e,n){var r=n.cid,i=n.data;if(e.list.length){var a=bt(e.list,r);"boolean"!=typeof a&&(a.source=t.cloneDeep(i))}},updataAnimationForComponent:function(t,e){var n=e.cid,r=e.data;if(t.list.length){var i=Dt(t.list,n);"boolean"!=typeof i&&(i.tw=r)}},updataWatermark:function(t,e){t.watermark=e},updataEndnotes:function(t,e){t.endnotes=e},updataAnimation:function(t,e){t.tw=e},setContext:function(t,e){var n=e.cid,r=e.data,i=Dt(t.list,n);"boolean"!=typeof i&&(i.example=r)},setContextList:function(t,e){var n=e.cid,r=e.data;t.contextList[n]=r},setPosition:function(t,e){kt(t.list.find((function(t){return t.cid===e[0]})),e[1])},setSelect:function(t,e){t.cache=[],t.selectd=e instanceof Array?e:[e],t.selectd.length>1&&t.selectd.forEach((function(e){t.cache.push(t.list.find((function(t){return t.cid===e&&"Other.Plant.Normal"!==t.type})))}))},setActive:function(e,n){var r=t.cloneDeep(n),i=r.id,a=r.multiple,s=r.origin,o=r.ctr,u=t.cloneDeep(e.selectd);if(a){var c=u.includes(i);if(u.length>=1)if(!u.every((function(t){return St(e.list,t,n.id)})))return void console.info("sorry Only sibling elements can be selected!");c?u.splice(u.findIndex((function(t){return t===i})),1):u.push(i),e.selectd=u}else e.selectd=[i];e.selectd.forEach((function(t){var n=bt(e.list,t);n.pid&&(bt(e.list,n.pid).toggle=!0);o||(n.toggle=!0)})),e.selectdChangeOrigin=s||""},setCache:function(t){t.cache=[],t.selectd.length>1&&t.selectd.forEach((function(e){t.cache.push(t.list.find((function(t){return t.cid===e})))}))},clearActive:function(t){t.selectd=[]},setMultipleActive:function(t,e){t.selectd=e},syncMenuInfo:function(t){Vt(t.menuList,(function(e){var n=10*e.lv+e.index;t.list.filter((function(t){return t.cid===e.id}))[0].z=1e4-n}))},addComs:function(e,n){var r=n.com,i=n.isMobile;"MultiStateComponent"!=r.componentType||r.stateChildren||(r.stateChildren=[]),"dynamicComponent"!=r.componentType||r.dynamicChildren||(r.dynamicChildren=new Map,r.activeDynamic="状态1",r.dynamicChildren.set("状态1",[])),i?e.list.push(r):e.list.unshift(r),e.menuList=t.cloneDeep(e.list),this.commit("GoCom/execute")},addComsForParent:function(e,n){var r=n.com,i=n.isMobile,a=n.PID;if("MultiStateComponent"!=r.componentType||r.stateChildren||(r.stateChildren=[]),"dynamicComponent"!=r.componentType||r.dynamicChildren||(r.dynamicChildren=new Map,r.activeDynamic="状态1",r.dynamicChildren.set("状态1",[])),a){var s=bt(e.list,a);i?(s.children=[],s.children.push(r)):s.children.unshift(r)}else i?e.list.splice(0,1,r):e.list.unshift(r);e.menuList=t.cloneDeep(e.list),this.commit("GoCom/execute")},addMyComs:function(e,n){var r;try{var i=n.data,a=n.shareVariableTree,s=n.globalVars,o=n.globalEvents;e.globalVars=t.uniq(t.concat(t.cloneDeep(e.globalVars),s)),e.globalEvents=t.uniq(t.concat(t.cloneDeep(e.globalEvents),o));var u=Object.keys(a),c=Object.keys(e.shareVariableTree),l=t.difference(u,c);l.length?l.forEach((function(n){e.shareVariableTree[n]=t.concat(t.cloneDeep(e.shareVariableTree[n]),a[n])})):e.shareVariableTree=Object.assign(t.cloneDeep(e.shareVariableTree),a),i instanceof Array?(xt(i),(r=e.list).unshift.apply(r,i)):(xt([i]),e.list.unshift(i)),e.menuList=t.cloneDeep(e.list),this.commit("GoCom/execute")}catch(t){}},addStateChildren:function(t,e){var n=Dt(t.list,e.pid);n&&n.stateChildren.push(e)},addDynamicChildren:function(t,e){var n=Dt(t.list,e.pid);n&&n.dynamicChildren.push(e)},arraySwap:function(e,n){var r;try{if(!n||2!=n.length)throw new Error("参数错误,方法接受两个组件的CID组成的数组!");var i=t.cloneDeep(e.list),a=bt(i,n[0]),o=bt(i,n[1]),u=bt(i,a.pid),c={},l=0,h=0;if(o)if("selectContainer"==o.componentType){var f=bt(i,n[1]);u?(l=t.findIndex(u.children,(function(t){return t.cid==n[0]})),c=u.children[l],u.children=u.children.filter((function(t){return t.cid!==c.cid}))):(c=bt(i,n[0]),i=i.filter((function(t){return t.cid!==c.cid}))),c.cid=Bt(),c.pid=f.cid,f.children.push(c)}else if(a.pid||o.pid)if(u)if(l=t.findIndex(u.children,(function(t){return t.cid==n[0]})),c=u.children[l],a.pid!==o.pid){f=bt(i,o.pid);h=t.findIndex(f.children,(function(t){return t.cid==n[1]}));d=f.children[h];c.cid=Bt(),c.pid=f.cid,d.cid=Bt(),d.pid=u.cid,u.children.splice(l,1,d),f.children.splice(h,1,c)}else h=t.findIndex(u.children,(function(t){return t.cid==n[1]})),(r=u.children).splice.apply(r,s([h,1],u.children.splice(l,1,u.children[h]),!1));else{var f=bt(i,o.pid);l=t.findIndex(i,(function(t){return t.cid==n[0]})),h=t.findIndex(f.children,(function(t){return t.cid==n[1]})),c=bt(i,a.cid);var d=f.children[h];c.cid=Bt(),c.pid=f.cid,d.cid=Bt(),d.pid=null,i.splice(l,1,d),f.children.splice(h,1,c)}else yt(e.list,n[0],n[1]);else l=t.findIndex(u.children,(function(t){return t.cid==n[0]})),c=u.children[l],u.children.splice(l,1),c.cid=Bt(),c.pid=null,i.push(c);e.list=i}catch(t){console.warn("组件位置交换发生错误",t)}},changeDynamicState:function(t,e){var n=Dt(t.list,e.cid);n&&"dynamicComponent"==n.componentType&&(n.dynamicChildren instanceof Array&&n.dynamicChildren.find((function(t){return t[0]==e.activeName}))||n.dynamicChildren instanceof Map&&n.dynamicChildren.has(e.activeName)?n.activeDynamic=e.activeName:console.error(e.activeName+"不是一个正确的状态"))},addAlternateData:function(t,e){t.alternateData[e.pid]||(t.alternateData[e.pid]=[]),t.alternateData[e.pid].push(e)},setOptionForCom:function(t,e){var n,r;try{var i=e.cid,a=e.key,s=e.value,o=bt(t.list,i);o&&(null===(r=null===(n=null==o?void 0:o.tmpData)||void 0===n?void 0:n.option)||void 0===r?void 0:r.hasOwnProperty(a))&&(o.tmpData.option[a]=s)}catch(t){console.warn("同步属性发生错误:"+t)}},mergeConfig:function(e,n){n.length>0&&n.forEach((function(t){e.list.unshift(t)})),e.menuList=t.cloneDeep(e.list),this.commit("GoCom/execute")},updataName:function(t,e){var n=Dt(t.list,e.cid);n&&(n.name=e.name)},setCurrentEdited:function(t,e){if(e){var n=Dt(t.list,e);if("boolean"!=typeof n){var r=Ot(n);n.children=r}t.currentEditerCid=e}else t.currentEditerCid=""}},De={layout:function(e,n){var r=function(e,n){try{var r=e.map((function(t){var e=Dt(n,t);if("object"==typeof e)return e;throw"Please check whether the input and output parameters are correct!"}));if(t.every(r,Object))return r;throw"Please check whether the input and output parameters are correct!"}catch(t){return console.error(t),[]}}(e.selectd,e.list);switch(n){case"alignLeft":!function(e,n){1===e.length&&(e[0].baseData.left=0);var r=t.sortBy(e,(function(t){return t.baseData.left}))[0].baseData.left;e.map((function(t){return t.baseData.left=r}))}(r);break;case"alignRight":!function(e,n){if(1===e.length){var r=n.plant?n.plant.baseData:{width:1920,height:1080};e[0].baseData.left=r.width-e[0].baseData.width}var i=t.sortBy(e,(function(t){return t.baseData.left})),a=1*i[i.length-1].baseData.left+1*i[i.length-1].baseData.width;e.map((function(t){return t.baseData.left=a-1*t.baseData.width}))}(r,e);break;case"horizontally":!function(e,n){if(1===e.length){var r=n.plant?n.plant.baseData:{width:1920,height:1080};e[0].baseData.left=r.width/2-e[0].baseData.width/2}var i=t.sortBy(e,(function(t){return t.baseData.left})),a=t.sortBy(e,(function(t){return 1*t.baseData.left+1*t.baseData.width})),s=(1*i[0].baseData.left+(1*a[a.length-1].baseData.left+1*a[a.length-1].baseData.width))/2;e.map((function(t){return t.baseData.left=s-t.baseData.width/2}))}(r,e);break;case"alignTop":!function(e,n){1===e.length&&(e[0].baseData.top=0);var r=1*t.sortBy(e,(function(t){return t.baseData.top}))[0].baseData.top;e.map((function(t){return t.baseData.top=r}))}(r);break;case"alignBottom":!function(e,n){if(1===e.length){var r=n.plant?n.plant.baseData:{width:1920,height:1080};e[0].baseData.top=r.height-e[0].baseData.height}var i=t.sortBy(e,(function(t){return 1*t.baseData.left})),a=1*i[i.length-1].baseData.top+1*i[i.length-1].baseData.height;e.map((function(t){return t.baseData.top=a-1*t.baseData.height}))}(r,e);break;case"verticalCenter":!function(e,n){if(1===e.length){var r=n.plant?n.plant.baseData:{width:1920,height:1080};e[0].baseData.top=r.height/2-e[0].baseData.height/2}var i=t.sortBy(e,(function(t){return t.baseData.top})),a=t.sortBy(e,(function(t){return 1*t.baseData.top+1*t.baseData.height})),s=(1*i[0].baseData.top+(1*a[a.length-1].baseData.top+1*a[a.length-1].baseData.height))/2;e.map((function(t){return t.baseData.top=s-t.baseData.height/2}))}(r,e);break;case"topDistribution":!function(e){if(e.length<3)return console.warn("A minimum of three elements are required for a distribution arrangement"),!1;var n=t.sortBy(e,(function(t){return t.baseData.top})),r=(n[n.length-1].baseData.top-n[0].baseData.top)/(n.length-1);n.map((function(t,e){e>0&&e<n.length-1&&(t.baseData.top=1*n[0].baseData.top+r*e)}))}(r);break;case"bottomDistribution":!function(e){if(e.length<3)return console.warn("A minimum of three elements are required for a distribution arrangement"),!1;var n=t.sortBy(e,(function(t){return t.baseData.top+t.baseData.height})),r=(n[n.length-1].baseData.top+n[n.length-1].baseData.height-(n[0].baseData.top+n[0].baseData.height))/(n.length-1);n.map((function(t,e){e>0&&e<n.length-1&&(t.baseData.top=1*n[0].baseData.top+1*n[0].baseData.height-1*t.baseData.height+r*e)}))}(r);break;case"xCenterDistribution":!function(e){if(e.length<3)return console.warn("A minimum of three elements are required for a distribution arrangement"),!1;var n=t.sortBy(e,(function(t){return t.baseData.left+t.baseData.width/2})),r=1*n[n.length-1].baseData.left+n[n.length-1].baseData.width/2,i=1*n[0].baseData.left+n[0].baseData.width/2,a=(r-i)/(n.length-1);n.map((function(t,e){e>0&&e<n.length-1&&(t.baseData.left=i-t.baseData.width/2+a*e)}))}(r);break;case"leftDistribution":!function(e){if(e.length<3)return console.warn("A minimum of three elements are required for a distribution arrangement"),!1;var n=t.sortBy(e,(function(t){return t.baseData.left})),r=(n[n.length-1].baseData.left-n[0].baseData.left)/(n.length-1);n.map((function(t,e){e>0&&e<n.length-1&&(t.baseData.left=n[0].baseData.left+r*e)}))}(r);break;case"rightDistribution":!function(e){if(e.length<3)return console.warn("A minimum of three elements are required for a distribution arrangement"),!1;var n=t.sortBy(e,(function(t){return t.baseData.left+t.baseData.width})),r=(n[n.length-1].baseData.left+n[n.length-1].baseData.width-(n[0].baseData.left+n[0].baseData.width))/(n.length-1);n.map((function(t,e){e>0&&e<n.length-1&&(t.baseData.left=n[0].baseData.left+n[0].baseData.width-t.baseData.width+r*e)}))}(r);break;case"yCenterDistribution":!function(e){if(e.length<3)return console.warn("A minimum of three elements are required for a distribution arrangement"),!1;var n=t.sortBy(e,(function(t){return t.baseData.top+t.baseData.height/2})),r=1*n[n.length-1].baseData.top+n[n.length-1].baseData.height/2,i=1*n[0].baseData.top+n[0].baseData.height/2,a=(r-i)/(n.length-1);n.map((function(t,e){e>0&&e<n.length-1&&(t.baseData.top=i-t.baseData.height/2+a*e)}))}(r)}}},Se={setPageData:function(t,e){t.pages[0]=e},parasePages:function(t,e){e instanceof Array&&(t.pages=e.map((function(t,e){return t.name||(t.name="页面"+(e+1)),t.path||(t.path="page"+(e+1)),t})))},addPage:function(t,e){var n=t.pages.length+1;e.name="页面"+n,e.path="page"+n,t.pages.push(e),t.pageIndex=t.pages.length-1,t.resource={jspaths:[],csspaths:[],otherpaths:[]}},setCurrentPageIndex:function(t,e){var n=t.globalEvents,r=t.globalVars,i=t.list,a=t.name,s=t.theme,o=t.plant,u=t.shareVariableTree,c=t.resource;t.pages[t.pageIndex]={globalEvents:n,globalVars:r,list:i,name:a,theme:s,plant:o,shareVariableTree:u,resource:c},t.pageIndex=e},setPageDataForIndex:function(t,e){var n=e.index,r=e.data;t.pages[n]=r},setPageName:function(t,e){t.name=e,t.pages[t.pageIndex].name=e},saveCurrentPageData:function(t){var e=t.globalEvents,n=t.globalVars,r=t.list,i=t.name,a=t.theme,s=t.plant,o=t.shareVariableTree,u=t.resource;t.pages[t.pageIndex]={globalEvents:e,globalVars:n,list:r,name:i,theme:a,plant:s,shareVariableTree:o,resource:u}},getCurrentPageData:function(t){var e=t.globalEvents,n=t.globalVars,r=t.list,i=t.name,a=t.theme,s=t.plant,o=t.shareVariableTree,u=t.resource;t.pages[t.pageIndex]={globalEvents:e,globalVars:n,list:r,name:i,theme:a,plant:s,shareVariableTree:o,resource:u}}},Te={segmentationContainer:function(e,n){var r=t.cloneDeep(e.list),i=n.containerData,a=n.direction,s=[];if("del"==a)if(i.pid){var o=function(t){if(t.length)for(var e=0;e<t.length;e++)i.pid===t[e].cid?t[e].children.length&&(t[e].children.map((function(t){t.cid!==i.cid&&1===t.children.length&&(s=t.children)})),t[e].children=[],s.length&&(t[e].children=s)):t[e].hasOwnProperty("children")&&o(t[e].children)};r.length&&o(r)}else r.length&&(r=r.filter((function(t){return t.cid!==i.cid})));else if(i.pid){var u=function(t){for(var e=0;e<t.length;e++)if(i.cid===t[e].cid){t[e].direction=a,1===t[e].children.length&&((s=t[e].children)[0].pid=null,t[e].children=[]);for(var n=0;n<2;n++)t[e].children.push({isLock:!1,isShow:!0,baseData:{width:"col"==a?"100%":"50%",height:"col"==a?"50%":"100%",angle:0,penetrate:0,opacity:100},componentType:"selectContainer",iconClass:"__vue_devtool_undefined__",isAssembly:"__vue_devtool_undefined__",source:[],comData:{actions:[],option:{grid:[{val:8,unit:"px"},{val:8,unit:"px"},{val:8,unit:"px"},{val:8,unit:"px"}],bgColor:{alpha:1,blue:0,green:0,red:0,flag:1,style:"transparent"}}},tmpData:{},dynamic:0,filePath:"/anov-prod/mgt/go/assembly/162-bgImage.png",origin:"anov-go",name:"容器组件",path:"/index.js",viewComName:"selectContainer",optionComName:"",dataComName:"",eventComName:"",direction:"col",assemblyDeveloper:"",devEmail:"",version:null,devDept:"",toggle:!0,cid:Bt(),pid:t[e].cid,nestIndex:0,children:[],isTop:!1,isCol:"col"==a,isRow:"col"!=a,isDragged:!1,grandParentId:i.pid});s.length&&(s[0].cid=Bt(),s[0].pid=t[e].children[0].cid,t[e].children[0].children=s)}else t[e].hasOwnProperty("children")&&u(t[e].children)};r.length&&u(r)}else{var c=bt(r,i.cid);if(c){c.direction=a,1===c.children.length&&(s=c.children,c.children=[]);for(var l=0;l<2;l++)c.children.push({isLock:!1,isShow:!0,baseData:{width:"col"==a?"100%":"50%",height:"col"==a?"50%":"100%",angle:0,penetrate:0,opacity:100},componentType:"selectContainer",iconClass:"__vue_devtool_undefined__",isAssembly:"__vue_devtool_undefined__",source:[],comData:{actions:[],option:{grid:[{val:8,unit:"px"},{val:8,unit:"px"},{val:8,unit:"px"},{val:8,unit:"px"}],bgColor:{alpha:1,blue:0,green:0,red:0,flag:1,style:"transparent"}}},tmpData:{},dynamic:0,filePath:"/anov-prod/mgt/go/assembly/162-bgImage.png",origin:"anov-go",name:"容器组件",path:"/index.js",viewComName:"selectContainer",optionComName:"",dataComName:"",eventComName:"",assemblyDeveloper:"",devEmail:"",version:null,devDept:"",toggle:!0,cid:Bt(),pid:c.cid,nestIndex:0,children:[],isTop:!1,isCol:"col"==a,isRow:"col"!=a,isDragged:!1,grandParentId:i.pid});s.length&&(s[0].cid=Bt(),s[0].pid=c.children[0].cid,c.children[0].children=s)}}e.list=r}},xe={getCurrentPage:function(t){return t.pages.length?t.pages[t.pageIndex]:[]},globalSourceTree:function(e){if(e.list.length&&e.globalSource.length){var n=[];return Tt(t.cloneDeep(e.list),(function(t){var e,r,i;if("globalData"==(null===(r=null===(e=null==t?void 0:t.tmpData)||void 0===e?void 0:e.source)||void 0===r?void 0:r.type)){var a=null===(i=null==t?void 0:t.tmpData)||void 0===i?void 0:i.source.globalData;n.push({name:t.name,cid:t.cid,sourceId:a.id,viewComName:t.viewComName})}})),n}return[]}},Ee={namespaced:!0,state:{size:{width:1920,height:1080},resource:{jspaths:[],csspaths:[],otherpaths:[],fonts:[]},globalSource:[],alternateData:{},contextList:{},selectd:[],baseComs:[],globalVars:[],globalConstant:[],globalEvents:[],pages:[],pageIndex:0,groupFlag:!1,plant:{baseData:{width:1920,height:1080},option:null,optionDes:null},list:[],menuList:[],syncFlag:!0,multiple:!1,undoRedoPointer:-1,undos:[],redos:[],cache:[],cloneCache:[],shareVariable:{},shareVariableTree:{},catch:{selectd:[],list:[]},currentEditerCid:"",currentArea:{left:0,top:0,width:0,height:0,show:!1},caseList:[],constant:[],caseInfo:null,pageId:null,tw:null,watermark:null,endnotes:null,selectdChangeOrigin:""},mutations:r(r(r(r(r(r(r(r(r({},o),Ut),Ht),de),pe),we),De),Se),Te),actions:{updataList:function(t,e){var n=t.commit;e&&n("updataList",e),n("updateTree")},setActive:function(t,e){var n=t.commit;e&&n("setActive",e)},setSyncFlag:function(t,e){var n=t.commit;e&&n("setSyncFlag",e)},execute:function(t,e){var n=t.commit;e&&n("execute",e)},updataAnimationForComponent:function(t,e){var n=t.commit;e&&n("updataAnimationForComponent",e)},updataAnimation:function(t,e){(0,t.commit)("updataAnimation",e)},setOptionForCom:function(t,e){(0,t.commit)("setOptionForCom",e)}},getters:xe},Me=function(){function t(){}return t.setAppStore=function(e){t.store=e},t.prototype.getState=function(){return t.store.state[t.storeModule]},t.prototype.mapState=function(e){return Oe(t.storeModule,e)},t.prototype.mapGetters=function(e){return Ce(t.storeModule,e)},t.prototype.mapMutations=function(e){return ke(t.storeModule,e)},t.prototype.callState=function(e){return t.store.state[t.storeModule][e]},t.prototype.callGetter=function(e,n){return t.store.getters[t.storeModule+"/"+e]},t.prototype.callMutation=function(e,n,r){r?t.store.commit(t.storeModule+"/"+e,n,!0):t.store.commit(t.storeModule+"/"+e,n)},t.prototype.callAction=function(e,n){t.store.dispatch(t.storeModule+"/"+e,n)},t.storeModule="GoCom",t}(),Oe=Pe((function(t,e){var n;return Ae(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var r=Re(this.$store,"mapState",t);if(!r)return;e=r.context.state,n=r.context.getters}return"function"==typeof i?i.call(this,e,n):e[i]},n[r].VuexServer=!0})),n})),ke=Pe((function(t,e){var n;return Ae(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=this.$store.commit;if(t){var a=Re(this.$store,"mapMutations",t);if(!a)return;r=a.context.commit}return"function"==typeof i?i.apply(this,[r].concat(e)):r.apply(this.$store,[i].concat(e))}})),n})),Ce=Pe((function(t,e){var n={};return Ae(e).forEach((function(e){var r=e.key,i=e.val;i=t+i,n[r]=function(){if(!t||Re(this.$store,"mapGetters",t)){if("production"===process.env.NODE_ENV||i in this.$store.getters)return this.$store.getters[i];console.error("[VuexServer] unknown getter: ".concat(i))}},n[r].VuexServer=!0})),n}));function Ae(t){return Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}}))}function Pe(t){return function(e,n){return"string"!=typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function Re(t,e,n){var r=t._modulesNamespaceMap[n];return"production"===process.env.NODE_ENV||r||console.error("[VuexServer] module namespace not found in ".concat(e,"(): ").concat(n)),r}var Ne=function(t){var e=this;this.isLock=!1,this.isShow=!0,this.baseData={left:0,top:0,width:300,height:200,angle:0,opacity:100,rotate:0,rotateY:0},this.componentType="BaseComponent",this.cid=Bt(),t&&(Object.keys(t).forEach((function(n){e[n]=t[n]})),["AnEchartsMap","AnMaptalks","AnEchartsMap1","AnArcgisMapBase","AnAMap1","AnCesium","AnThreeMap3DChina","AnThreeMapForCesium","AnGisMap"].includes(t.viewComName)&&(this.componentType="MultiStateComponent"),"AnDynamic"===t.viewComName&&(this.componentType="dynamicComponent"))},Ie=function(){function e(t){this.vueServer=t,this.loadScript=ge}return e.setStore=function(t){this.store=t},e.prototype.loadComponents=function(e){var n=e&&e.list?e.list:[];Tt(n,(function(t){t.viewComName&&(t&&t.path&&t.path,t.origin,t.viewComName?t.viewComName:t.rawData.viewComName)})),e&&this.vueServer.callMutation("reversal",t.cloneDeep(e))},e.prototype.addStore=function(t){this.vueServer.callMutation("setActive",{id:t}),this.vueServer.callMutation("addComs",this)},e.prototype._addPlantStore=function(){this.vueServer.callMutation("setPlant",this)},e.prototype._loadComTmp=function(t,e){return i(this,void 0,void 0,(function(){var n,r,i=this;return a(this,(function(s){switch(s.label){case 0:if(window[e])return[3,5];n=function(e){var n;return a(this,(function(r){switch(r.label){case 0:return n=t[e],[4,new Promise((function(t){t(i._load(n))}))];case 1:return r.sent(),[2]}}))},r=0,s.label=1;case 1:return r<t.length?[5,n(r)]:[3,4];case 2:s.sent(),s.label=3;case 3:return r++,[3,1];case 4:window[e]=e,s.label=5;case 5:return[2]}}))}))},e.prototype._load=function(t){return i(this,void 0,void 0,(function(){var e=this;return a(this,(function(n){return[2,new Promise((function(n){n(e.loadScript(t))}))]}))}))},e}(),Ve=function(){function t(t){var e=t.dbName,n=t.tables,i=t.version,a=void 0===i?1:i,s=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(t,["dbName","tables","version"]);this.dbName=e,this.tables=n,this.version=a,this.openDB(r({dbName:e,tables:n,version:a},s))}return t.deleteDB=function(t){var e;null===(e=window.indexedDB)||void 0===e||e.deleteDatabase(t)},t.prototype.deleteItem=function(t,e,n){var r=this.storage.transaction(t,"readwrite").objectStore(t).delete(e);return r.onsuccess=function(t){"function"==typeof n&&n(t)},r},t.prototype.getItem=function(t,e,n){var r=this.storage.transaction(t,"readwrite").objectStore(t),i=null;return(i=e?r.get(e):r.getAll()).onsuccess=function(t){var e;"function"==typeof n&&n(null===(e=null==t?void 0:t.target)||void 0===e?void 0:e.result)},i.onerror=function(t){console.error(t),n(t)},i},t.prototype.setItem=function(t,e,n,r){var i=this.storage.transaction(t,"readwrite").objectStore(t).put(n,e);return i.onsuccess=function(t){"function"==typeof r&&r(t)},i.onerror=function(t){"function"==typeof r&&r(t)},i},t.prototype.get=function(t,e){return this.getItem(this.tables[0],t,e)},t.prototype.set=function(t,e,n){return this.setItem(this.tables[0],t,e,n)},t.prototype.delete=function(t,e){return this.deleteItem(this.tables[0],t,e)},t.prototype.clear=function(t,e){var n=this.storage.transaction(this.dbName,"readwrite").objectStore(t).clear();return n.onsuccess=function(t){"function"==typeof e&&e(t)},n},t.prototype.getDB=function(){return this.storage},t.prototype.closeDB=function(){this.storage.close()},t.prototype.openDB=function(t){var e=this,n=t.dbName,r=t.tables,i=t.version,a=t.callback,s=window.indexedDB;if(s)if((null==r?void 0:r.length)<1)console.error("表名不能为空");else{var o=s.open(n,i);o.onerror=function(t){var e,n;console.error("打开数据库失败: ".concat(null===(n=null===(e=t.currentTarget)||void 0===e?void 0:e.error)||void 0===n?void 0:n.message)),"function"==typeof a&&a(t)},o.onsuccess=function(t){var n;e.storage=null===(n=t.target)||void 0===n?void 0:n.result,"function"==typeof a&&a(t)},o.onupgradeneeded=function(t){var n;e.storage=null===(n=t.target)||void 0===n?void 0:n.result,r.forEach((function(n){e.storage.objectStoreNames.contains(n)||(e.storage.createObjectStore(n),"function"==typeof a&&a(t))}))}}else console.error("你的浏览器不支持indexedDB")},t}(),Be=function(){function t(){this.VueServer=new Me}return t.getInstance=function(){return this.instance||(this.db=new Ve({dbName:"AnovGo",tables:["logs"]}),this.instance=new t),this.instance},t.prototype.getAppStore=function(){return t.store},t.setAppStore=function(e){t.store=e,Me.setAppStore(e),Ie.setStore(e)},t.prototype.add=function(t,e,n){e.MultiState?this.VueServer.callMutation("addStateChildren",e):(this.VueServer.callMutation("addComs",{com:e,isMobile:n}),this.VueServer.callMutation("setActive",{id:t}))},t.prototype.addForParent=function(t,e,n,r){this.VueServer.callMutation("addComsForParent",{com:e,PID:n,isMobile:r}),this.VueServer.callMutation("setActive",{id:t})},t.prototype.render=function(t,e){var n=new Ne(t);e?this.add(n.cid,n,!0):this.add(n.cid,n)},t.prototype.renderForParent=function(t,e,n){var r=new Ne(t);void 0!==n?this.addForParent(r.cid,r,e,n):this.addForParent(r.cid,r,e)},t.prototype.reversal=function(t){new Ie(new Me).loadComponents(t)},t.prototype.log=function(e,n,r,i,a){var s=(new Date).toLocaleString();t.db.set(s,{type:n,info:r,user:e,trace:i}),t.db.get(null,(function(t){a&&a()}))},t.prototype.emitEvent=function(t,e){var n=this;!function(t,e,n,r,i,a,s,o){var u,c=i.cid,l=i.actions.eventName,h=[];h=i.hasOwnProperty("index")?t.filter((function(t){return t.id==c&&t.eventType==l&&parseInt(t.index)+1==parseInt(i.index)})):t.filter((function(t){return t.id===c&&t.eventType===l}));var f=i.actions.mode;!e||e.filter((function(t){return t.id===c&&t.type===l}));for(var d=function(t){var e=h[t];if("link"==e.type&&window.open(e.link),"page"===e.type&&o&&o(e),"dynamic"===e.type){var n=e.dynamic;n&&n.length&&n.forEach((function(t){var n;e.id===i.cid&&(1!=i.actions.mode?e.index==i.index-1&&(n=bt(r,t.pid))&&(n.activeDynamic=t.name,n.isShow=!0,t.visible||(n.isShow=!1)):(n=bt(r,t.pid))&&(n.activeDynamic=t.name,n.isShow=!0,t.visible||(n.isShow=!1)))}))}"toggle"==e.type&&(2==f?e.children.forEach((function(t){e.index===i.index-1&&a({cid:t.cid,flag:t.visible})})):e.children.forEach((function(t){a({cid:t.cid,flag:t.visible})})))},p=0;p<h.length;p++)d(p);var m=function(t){var a=e[t];if(a.current=!1,a.id==c){if(i.hasOwnProperty(a.field))a.value=i[a.field]?i[a.field]:"";else if((null==i?void 0:i.data)&&i.data[a.field])a.value=null==i?void 0:i.data[a.field];else{var o=Dt(r,c),l=null===(u=null==o?void 0:o.tmpData)||void 0===u?void 0:u.actions;l&&l.length?l.forEach((function(t){var e=t.vars.find((function(t){return t.mapField==a.field}));e&&(a.value=e.value,a.current=!0)})):a.value=null}var h=n[a.mapField];if(!n)return{value:void 0};h&&h.length&&h.forEach((function(t){var n=Dt(r,t);ne(n,e,!0,s)}))}};for(p=0;p<e.length;p++){var g=m(p);if("object"==typeof g)return g.value}}(this.VueServer.callState("globalEvents"),this.VueServer.callState("globalVars"),this.VueServer.callState("shareVariableTree"),this.VueServer.callState("list"),t,(function(t){n.VueServer.callMutation("changeShow",t)}),(function(t){n.VueServer.callMutation("updataSourceForComponent",t)}),e)},t}(),Ye=Object.defineProperty,Le=Object.getOwnPropertySymbols,Fe=Object.prototype.hasOwnProperty,je=Object.prototype.propertyIsEnumerable,Ue=(t,e,n)=>e in t?Ye(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,He=(t,e)=>{for(var n in e||(e={}))Fe.call(e,n)&&Ue(t,n,e[n]);if(Le)for(var n of Le(e))je.call(e,n)&&Ue(t,n,e[n]);return t},ze=(t,e,n)=>(Ue(t,"symbol"!=typeof e?e+"":e,n),n),qe=(t,e,n)=>new Promise(((r,i)=>{var a=t=>{try{o(n.next(t))}catch(t){i(t)}},s=t=>{try{o(n.throw(t))}catch(t){i(t)}},o=t=>t.done?r(t.value):Promise.resolve(t.value).then(a,s);o((n=n.apply(t,e)).next())})),Ge={gapX:100,gapY:100,offsetLeft:0,offsetTop:0,width:120,height:64,opacity:.15,rotate:-22,fontSize:16,fontStyle:"normal",fontVariant:"normal",fontWeight:"300",fontColor:"#000",fontFamily:"sans-serif",textAlign:"center",textBaseline:"alphabetic",monitor:!0,zIndex:9999,mode:"interval",pack:!0,blindOpacity:.005},We={childList:!0,subtree:!0,attributeFilter:["style","data-watermark-tag"]};var Ze=t=>{let e="";return Object.keys(t).forEach((n=>{const r=n.replace(/([A-Z])/g,"-$1").toLowerCase();e+=`${r}:${t[n]};`})),e},Ke=(t="")=>{return`${e=t,window.btoa(decodeURI(encodeURIComponent(e)))}-${(new Date).getTime()}-${Math.floor(Math.random()*Math.pow(10,8))}`;var e};var $e=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver,Xe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Qe(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function Je(t,e){return t(e={exports:{}},e.exports),e.exports}var tn=Je((function(t,e){t.exports=function(){var e,n;function r(){return e.apply(null,arguments)}function i(t){e=t}function a(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function s(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function o(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function u(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(o(t,e))return!1;return!0}function c(t){return void 0===t}function l(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function h(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function f(t,e){var n,r=[];for(n=0;n<t.length;++n)r.push(e(t[n],n));return r}function d(t,e){for(var n in e)o(e,n)&&(t[n]=e[n]);return o(e,"toString")&&(t.toString=e.toString),o(e,"valueOf")&&(t.valueOf=e.valueOf),t}function p(t,e,n,r){return Zn(t,e,n,r,!0).utc()}function m(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function g(t){return null==t._pf&&(t._pf=m()),t._pf}function v(t){if(null==t._isValid){var e=g(t),r=n.call(e.parsedDateParts,(function(t){return null!=t})),i=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidEra&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&r);if(t._strict&&(i=i&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return i;t._isValid=i}return t._isValid}function y(t){var e=p(NaN);return null!=t?d(g(e),t):g(e).userInvalidated=!0,e}n=Array.prototype.some?Array.prototype.some:function(t){var e,n=Object(this),r=n.length>>>0;for(e=0;e<r;e++)if(e in n&&t.call(this,n[e],e,n))return!0;return!1};var _=r.momentProperties=[],b=!1;function w(t,e){var n,r,i;if(c(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),c(e._i)||(t._i=e._i),c(e._f)||(t._f=e._f),c(e._l)||(t._l=e._l),c(e._strict)||(t._strict=e._strict),c(e._tzm)||(t._tzm=e._tzm),c(e._isUTC)||(t._isUTC=e._isUTC),c(e._offset)||(t._offset=e._offset),c(e._pf)||(t._pf=g(e)),c(e._locale)||(t._locale=e._locale),_.length>0)for(n=0;n<_.length;n++)c(i=e[r=_[n]])||(t[r]=i);return t}function D(t){w(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===b&&(b=!0,r.updateOffset(this),b=!1)}function S(t){return t instanceof D||null!=t&&null!=t._isAMomentObject}function T(t){!1===r.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function x(t,e){var n=!0;return d((function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,t),n){var i,a,s,u=[];for(a=0;a<arguments.length;a++){if(i="","object"==typeof arguments[a]){for(s in i+="\n["+a+"] ",arguments[0])o(arguments[0],s)&&(i+=s+": "+arguments[0][s]+", ");i=i.slice(0,-2)}else i=arguments[a];u.push(i)}T(t+"\nArguments: "+Array.prototype.slice.call(u).join("")+"\n"+(new Error).stack),n=!1}return e.apply(this,arguments)}),e)}var E,M={};function O(t,e){null!=r.deprecationHandler&&r.deprecationHandler(t,e),M[t]||(T(e),M[t]=!0)}function k(t){return"undefined"!=typeof Function&&t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function C(t){var e,n;for(n in t)o(t,n)&&(k(e=t[n])?this[n]=e:this["_"+n]=e);this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function A(t,e){var n,r=d({},t);for(n in e)o(e,n)&&(s(t[n])&&s(e[n])?(r[n]={},d(r[n],t[n]),d(r[n],e[n])):null!=e[n]?r[n]=e[n]:delete r[n]);for(n in t)o(t,n)&&!o(e,n)&&s(t[n])&&(r[n]=d({},r[n]));return r}function P(t){null!=t&&this.set(t)}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,E=Object.keys?Object.keys:function(t){var e,n=[];for(e in t)o(t,e)&&n.push(e);return n};var R={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function N(t,e,n){var r=this._calendar[t]||this._calendar.sameElse;return k(r)?r.call(e,n):r}function I(t,e,n){var r=""+Math.abs(t),i=e-r.length;return(t>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var V=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,B=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Y={},L={};function F(t,e,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),t&&(L[t]=i),e&&(L[e[0]]=function(){return I(i.apply(this,arguments),e[1],e[2])}),n&&(L[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),t)})}function j(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function U(t){var e,n,r=t.match(V);for(e=0,n=r.length;e<n;e++)L[r[e]]?r[e]=L[r[e]]:r[e]=j(r[e]);return function(e){var i,a="";for(i=0;i<n;i++)a+=k(r[i])?r[i].call(e,t):r[i];return a}}function H(t,e){return t.isValid()?(e=z(e,t.localeData()),Y[e]=Y[e]||U(e),Y[e](t)):t.localeData().invalidDate()}function z(t,e){var n=5;function r(t){return e.longDateFormat(t)||t}for(B.lastIndex=0;n>=0&&B.test(t);)t=t.replace(B,r),B.lastIndex=0,n-=1;return t}var q={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function G(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.match(V).map((function(t){return"MMMM"===t||"MM"===t||"DD"===t||"dddd"===t?t.slice(1):t})).join(""),this._longDateFormat[t])}var W="Invalid date";function Z(){return this._invalidDate}var K="%d",$=/\d{1,2}/;function X(t){return this._ordinal.replace("%d",t)}var Q={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function J(t,e,n,r){var i=this._relativeTime[n];return k(i)?i(t,e,n,r):i.replace(/%d/i,t)}function tt(t,e){var n=this._relativeTime[t>0?"future":"past"];return k(n)?n(e):n.replace(/%s/i,e)}var et={};function nt(t,e){var n=t.toLowerCase();et[n]=et[n+"s"]=et[e]=t}function rt(t){return"string"==typeof t?et[t]||et[t.toLowerCase()]:void 0}function it(t){var e,n,r={};for(n in t)o(t,n)&&(e=rt(n))&&(r[e]=t[n]);return r}var at={};function st(t,e){at[t]=e}function ot(t){var e,n=[];for(e in t)o(t,e)&&n.push({unit:e,priority:at[e]});return n.sort((function(t,e){return t.priority-e.priority})),n}function ut(t){return t%4==0&&t%100!=0||t%400==0}function ct(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function lt(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=ct(e)),n}function ht(t,e){return function(n){return null!=n?(dt(this,t,n),r.updateOffset(this,e),this):ft(this,t)}}function ft(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function dt(t,e,n){t.isValid()&&!isNaN(n)&&("FullYear"===e&&ut(t.year())&&1===t.month()&&29===t.date()?(n=lt(n),t._d["set"+(t._isUTC?"UTC":"")+e](n,t.month(),Jt(n,t.month()))):t._d["set"+(t._isUTC?"UTC":"")+e](n))}function pt(t){return k(this[t=rt(t)])?this[t]():this}function mt(t,e){if("object"==typeof t){var n,r=ot(t=it(t));for(n=0;n<r.length;n++)this[r[n].unit](t[r[n].unit])}else if(k(this[t=rt(t)]))return this[t](e);return this}var gt,vt=/\d/,yt=/\d\d/,_t=/\d{3}/,bt=/\d{4}/,wt=/[+-]?\d{6}/,Dt=/\d\d?/,St=/\d\d\d\d?/,Tt=/\d\d\d\d\d\d?/,xt=/\d{1,3}/,Et=/\d{1,4}/,Mt=/[+-]?\d{1,6}/,Ot=/\d+/,kt=/[+-]?\d+/,Ct=/Z|[+-]\d\d:?\d\d/gi,At=/Z|[+-]\d\d(?::?\d\d)?/gi,Pt=/[+-]?\d+(\.\d{1,3})?/,Rt=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function Nt(t,e,n){gt[t]=k(e)?e:function(t,r){return t&&n?n:e}}function It(t,e){return o(gt,t)?gt[t](e._strict,e._locale):new RegExp(Vt(t))}function Vt(t){return Bt(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,e,n,r,i){return e||n||r||i})))}function Bt(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}gt={};var Yt={};function Lt(t,e){var n,r=e;for("string"==typeof t&&(t=[t]),l(e)&&(r=function(t,n){n[e]=lt(t)}),n=0;n<t.length;n++)Yt[t[n]]=r}function Ft(t,e){Lt(t,(function(t,n,r,i){r._w=r._w||{},e(t,r._w,r,i)}))}function jt(t,e,n){null!=e&&o(Yt,t)&&Yt[t](e,n._a,n,t)}var Ut,Ht=0,zt=1,qt=2,Gt=3,Wt=4,Zt=5,Kt=6,$t=7,Xt=8;function Qt(t,e){return(t%e+e)%e}function Jt(t,e){if(isNaN(t)||isNaN(e))return NaN;var n=Qt(e,12);return t+=(e-n)/12,1===n?ut(t)?29:28:31-n%7%2}Ut=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1},F("M",["MM",2],"Mo",(function(){return this.month()+1})),F("MMM",0,0,(function(t){return this.localeData().monthsShort(this,t)})),F("MMMM",0,0,(function(t){return this.localeData().months(this,t)})),nt("month","M"),st("month",8),Nt("M",Dt),Nt("MM",Dt,yt),Nt("MMM",(function(t,e){return e.monthsShortRegex(t)})),Nt("MMMM",(function(t,e){return e.monthsRegex(t)})),Lt(["M","MM"],(function(t,e){e[zt]=lt(t)-1})),Lt(["MMM","MMMM"],(function(t,e,n,r){var i=n._locale.monthsParse(t,r,n._strict);null!=i?e[zt]=i:g(n).invalidMonth=t}));var te="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ee="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ne=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,re=Rt,ie=Rt;function ae(t,e){return t?a(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||ne).test(e)?"format":"standalone"][t.month()]:a(this._months)?this._months:this._months.standalone}function se(t,e){return t?a(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[ne.test(e)?"format":"standalone"][t.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function oe(t,e,n){var r,i,a,s=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)a=p([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(a,"").toLocaleLowerCase();return n?"MMM"===e?-1!==(i=Ut.call(this._shortMonthsParse,s))?i:null:-1!==(i=Ut.call(this._longMonthsParse,s))?i:null:"MMM"===e?-1!==(i=Ut.call(this._shortMonthsParse,s))||-1!==(i=Ut.call(this._longMonthsParse,s))?i:null:-1!==(i=Ut.call(this._longMonthsParse,s))||-1!==(i=Ut.call(this._shortMonthsParse,s))?i:null}function ue(t,e,n){var r,i,a;if(this._monthsParseExact)return oe.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=p([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(a="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(a.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[r].test(t))return r;if(n&&"MMM"===e&&this._shortMonthsParse[r].test(t))return r;if(!n&&this._monthsParse[r].test(t))return r}}function ce(t,e){var n;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=lt(e);else if(!l(e=t.localeData().monthsParse(e)))return t;return n=Math.min(t.date(),Jt(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n),t}function le(t){return null!=t?(ce(this,t),r.updateOffset(this,!0),this):ft(this,"Month")}function he(){return Jt(this.year(),this.month())}function fe(t){return this._monthsParseExact?(o(this,"_monthsRegex")||pe.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(o(this,"_monthsShortRegex")||(this._monthsShortRegex=re),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)}function de(t){return this._monthsParseExact?(o(this,"_monthsRegex")||pe.call(this),t?this._monthsStrictRegex:this._monthsRegex):(o(this,"_monthsRegex")||(this._monthsRegex=ie),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)}function pe(){function t(t,e){return e.length-t.length}var e,n,r=[],i=[],a=[];for(e=0;e<12;e++)n=p([2e3,e]),r.push(this.monthsShort(n,"")),i.push(this.months(n,"")),a.push(this.months(n,"")),a.push(this.monthsShort(n,""));for(r.sort(t),i.sort(t),a.sort(t),e=0;e<12;e++)r[e]=Bt(r[e]),i[e]=Bt(i[e]);for(e=0;e<24;e++)a[e]=Bt(a[e]);this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function me(t){return ut(t)?366:365}F("Y",0,0,(function(){var t=this.year();return t<=9999?I(t,4):"+"+t})),F(0,["YY",2],0,(function(){return this.year()%100})),F(0,["YYYY",4],0,"year"),F(0,["YYYYY",5],0,"year"),F(0,["YYYYYY",6,!0],0,"year"),nt("year","y"),st("year",1),Nt("Y",kt),Nt("YY",Dt,yt),Nt("YYYY",Et,bt),Nt("YYYYY",Mt,wt),Nt("YYYYYY",Mt,wt),Lt(["YYYYY","YYYYYY"],Ht),Lt("YYYY",(function(t,e){e[Ht]=2===t.length?r.parseTwoDigitYear(t):lt(t)})),Lt("YY",(function(t,e){e[Ht]=r.parseTwoDigitYear(t)})),Lt("Y",(function(t,e){e[Ht]=parseInt(t,10)})),r.parseTwoDigitYear=function(t){return lt(t)+(lt(t)>68?1900:2e3)};var ge=ht("FullYear",!0);function ve(){return ut(this.year())}function ye(t,e,n,r,i,a,s){var o;return t<100&&t>=0?(o=new Date(t+400,e,n,r,i,a,s),isFinite(o.getFullYear())&&o.setFullYear(t)):o=new Date(t,e,n,r,i,a,s),o}function _e(t){var e,n;return t<100&&t>=0?((n=Array.prototype.slice.call(arguments))[0]=t+400,e=new Date(Date.UTC.apply(null,n)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function be(t,e,n){var r=7+e-n;return-(7+_e(t,0,r).getUTCDay()-e)%7+r-1}function we(t,e,n,r,i){var a,s,o=1+7*(e-1)+(7+n-r)%7+be(t,r,i);return o<=0?s=me(a=t-1)+o:o>me(t)?(a=t+1,s=o-me(t)):(a=t,s=o),{year:a,dayOfYear:s}}function De(t,e,n){var r,i,a=be(t.year(),e,n),s=Math.floor((t.dayOfYear()-a-1)/7)+1;return s<1?r=s+Se(i=t.year()-1,e,n):s>Se(t.year(),e,n)?(r=s-Se(t.year(),e,n),i=t.year()+1):(i=t.year(),r=s),{week:r,year:i}}function Se(t,e,n){var r=be(t,e,n),i=be(t+1,e,n);return(me(t)-r+i)/7}function Te(t){return De(t,this._week.dow,this._week.doy).week}F("w",["ww",2],"wo","week"),F("W",["WW",2],"Wo","isoWeek"),nt("week","w"),nt("isoWeek","W"),st("week",5),st("isoWeek",5),Nt("w",Dt),Nt("ww",Dt,yt),Nt("W",Dt),Nt("WW",Dt,yt),Ft(["w","ww","W","WW"],(function(t,e,n,r){e[r.substr(0,1)]=lt(t)}));var xe={dow:0,doy:6};function Ee(){return this._week.dow}function Me(){return this._week.doy}function Oe(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")}function ke(t){var e=De(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")}function Ce(t,e){return"string"!=typeof t?t:isNaN(t)?"number"==typeof(t=e.weekdaysParse(t))?t:null:parseInt(t,10)}function Ae(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}function Pe(t,e){return t.slice(e,7).concat(t.slice(0,e))}F("d",0,"do","day"),F("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),F("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),F("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),F("e",0,0,"weekday"),F("E",0,0,"isoWeekday"),nt("day","d"),nt("weekday","e"),nt("isoWeekday","E"),st("day",11),st("weekday",11),st("isoWeekday",11),Nt("d",Dt),Nt("e",Dt),Nt("E",Dt),Nt("dd",(function(t,e){return e.weekdaysMinRegex(t)})),Nt("ddd",(function(t,e){return e.weekdaysShortRegex(t)})),Nt("dddd",(function(t,e){return e.weekdaysRegex(t)})),Ft(["dd","ddd","dddd"],(function(t,e,n,r){var i=n._locale.weekdaysParse(t,r,n._strict);null!=i?e.d=i:g(n).invalidWeekday=t})),Ft(["d","e","E"],(function(t,e,n,r){e[r]=lt(t)}));var Re="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ne="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ie="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ve=Rt,Be=Rt,Ye=Rt;function Le(t,e){var n=a(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?Pe(n,this._week.dow):t?n[t.day()]:n}function Fe(t){return!0===t?Pe(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort}function je(t){return!0===t?Pe(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin}function Ue(t,e,n){var r,i,a,s=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=p([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return n?"dddd"===e?-1!==(i=Ut.call(this._weekdaysParse,s))?i:null:"ddd"===e?-1!==(i=Ut.call(this._shortWeekdaysParse,s))?i:null:-1!==(i=Ut.call(this._minWeekdaysParse,s))?i:null:"dddd"===e?-1!==(i=Ut.call(this._weekdaysParse,s))||-1!==(i=Ut.call(this._shortWeekdaysParse,s))||-1!==(i=Ut.call(this._minWeekdaysParse,s))?i:null:"ddd"===e?-1!==(i=Ut.call(this._shortWeekdaysParse,s))||-1!==(i=Ut.call(this._weekdaysParse,s))||-1!==(i=Ut.call(this._minWeekdaysParse,s))?i:null:-1!==(i=Ut.call(this._minWeekdaysParse,s))||-1!==(i=Ut.call(this._weekdaysParse,s))||-1!==(i=Ut.call(this._shortWeekdaysParse,s))?i:null}function He(t,e,n){var r,i,a;if(this._weekdaysParseExact)return Ue.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=p([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(a="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(a.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[r].test(t))return r;if(n&&"ddd"===e&&this._shortWeekdaysParse[r].test(t))return r;if(n&&"dd"===e&&this._minWeekdaysParse[r].test(t))return r;if(!n&&this._weekdaysParse[r].test(t))return r}}function ze(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=Ce(t,this.localeData()),this.add(t-e,"d")):e}function qe(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")}function Ge(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=Ae(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7}function We(t){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||$e.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(o(this,"_weekdaysRegex")||(this._weekdaysRegex=Ve),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function Ze(t){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||$e.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(o(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Be),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Ke(t){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||$e.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(o(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ye),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function $e(){function t(t,e){return e.length-t.length}var e,n,r,i,a,s=[],o=[],u=[],c=[];for(e=0;e<7;e++)n=p([2e3,1]).day(e),r=Bt(this.weekdaysMin(n,"")),i=Bt(this.weekdaysShort(n,"")),a=Bt(this.weekdays(n,"")),s.push(r),o.push(i),u.push(a),c.push(r),c.push(i),c.push(a);s.sort(t),o.sort(t),u.sort(t),c.sort(t),this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function Xe(){return this.hours()%12||12}function Je(){return this.hours()||24}function tn(t,e){F(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)}))}function en(t,e){return e._meridiemParse}function nn(t){return"p"===(t+"").toLowerCase().charAt(0)}F("H",["HH",2],0,"hour"),F("h",["hh",2],0,Xe),F("k",["kk",2],0,Je),F("hmm",0,0,(function(){return""+Xe.apply(this)+I(this.minutes(),2)})),F("hmmss",0,0,(function(){return""+Xe.apply(this)+I(this.minutes(),2)+I(this.seconds(),2)})),F("Hmm",0,0,(function(){return""+this.hours()+I(this.minutes(),2)})),F("Hmmss",0,0,(function(){return""+this.hours()+I(this.minutes(),2)+I(this.seconds(),2)})),tn("a",!0),tn("A",!1),nt("hour","h"),st("hour",13),Nt("a",en),Nt("A",en),Nt("H",Dt),Nt("h",Dt),Nt("k",Dt),Nt("HH",Dt,yt),Nt("hh",Dt,yt),Nt("kk",Dt,yt),Nt("hmm",St),Nt("hmmss",Tt),Nt("Hmm",St),Nt("Hmmss",Tt),Lt(["H","HH"],Gt),Lt(["k","kk"],(function(t,e,n){var r=lt(t);e[Gt]=24===r?0:r})),Lt(["a","A"],(function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t})),Lt(["h","hh"],(function(t,e,n){e[Gt]=lt(t),g(n).bigHour=!0})),Lt("hmm",(function(t,e,n){var r=t.length-2;e[Gt]=lt(t.substr(0,r)),e[Wt]=lt(t.substr(r)),g(n).bigHour=!0})),Lt("hmmss",(function(t,e,n){var r=t.length-4,i=t.length-2;e[Gt]=lt(t.substr(0,r)),e[Wt]=lt(t.substr(r,2)),e[Zt]=lt(t.substr(i)),g(n).bigHour=!0})),Lt("Hmm",(function(t,e,n){var r=t.length-2;e[Gt]=lt(t.substr(0,r)),e[Wt]=lt(t.substr(r))})),Lt("Hmmss",(function(t,e,n){var r=t.length-4,i=t.length-2;e[Gt]=lt(t.substr(0,r)),e[Wt]=lt(t.substr(r,2)),e[Zt]=lt(t.substr(i))}));var rn=/[ap]\.?m?\.?/i,an=ht("Hours",!0);function sn(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"}var on,un={calendar:R,longDateFormat:q,invalidDate:W,ordinal:K,dayOfMonthOrdinalParse:$,relativeTime:Q,months:te,monthsShort:ee,week:xe,weekdays:Re,weekdaysMin:Ie,weekdaysShort:Ne,meridiemParse:rn},cn={},ln={};function hn(t,e){var n,r=Math.min(t.length,e.length);for(n=0;n<r;n+=1)if(t[n]!==e[n])return n;return r}function fn(t){return t?t.toLowerCase().replace("_","-"):t}function dn(t){for(var e,n,r,i,a=0;a<t.length;){for(e=(i=fn(t[a]).split("-")).length,n=(n=fn(t[a+1]))?n.split("-"):null;e>0;){if(r=pn(i.slice(0,e).join("-")))return r;if(n&&n.length>=e&&hn(i,n)>=e-1)break;e--}a++}return on}function pn(e){var n=null;if(void 0===cn[e]&&t&&t.exports)try{n=on._abbr,Qe(),mn(n)}catch(t){cn[e]=null}return cn[e]}function mn(t,e){var n;return t&&((n=c(e)?yn(t):gn(t,e))?on=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),on._abbr}function gn(t,e){if(null!==e){var n,r=un;if(e.abbr=t,null!=cn[t])O("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=cn[t]._config;else if(null!=e.parentLocale)if(null!=cn[e.parentLocale])r=cn[e.parentLocale]._config;else{if(null==(n=pn(e.parentLocale)))return ln[e.parentLocale]||(ln[e.parentLocale]=[]),ln[e.parentLocale].push({name:t,config:e}),null;r=n._config}return cn[t]=new P(A(r,e)),ln[t]&&ln[t].forEach((function(t){gn(t.name,t.config)})),mn(t),cn[t]}return delete cn[t],null}function vn(t,e){if(null!=e){var n,r,i=un;null!=cn[t]&&null!=cn[t].parentLocale?cn[t].set(A(cn[t]._config,e)):(null!=(r=pn(t))&&(i=r._config),e=A(i,e),null==r&&(e.abbr=t),(n=new P(e)).parentLocale=cn[t],cn[t]=n),mn(t)}else null!=cn[t]&&(null!=cn[t].parentLocale?(cn[t]=cn[t].parentLocale,t===mn()&&mn(t)):null!=cn[t]&&delete cn[t]);return cn[t]}function yn(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return on;if(!a(t)){if(e=pn(t))return e;t=[t]}return dn(t)}function _n(){return E(cn)}function bn(t){var e,n=t._a;return n&&-2===g(t).overflow&&(e=n[zt]<0||n[zt]>11?zt:n[qt]<1||n[qt]>Jt(n[Ht],n[zt])?qt:n[Gt]<0||n[Gt]>24||24===n[Gt]&&(0!==n[Wt]||0!==n[Zt]||0!==n[Kt])?Gt:n[Wt]<0||n[Wt]>59?Wt:n[Zt]<0||n[Zt]>59?Zt:n[Kt]<0||n[Kt]>999?Kt:-1,g(t)._overflowDayOfYear&&(e<Ht||e>qt)&&(e=qt),g(t)._overflowWeeks&&-1===e&&(e=$t),g(t)._overflowWeekday&&-1===e&&(e=Xt),g(t).overflow=e),t}var wn=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Dn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Sn=/Z|[+-]\d\d(?::?\d\d)?/,Tn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],xn=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],En=/^\/?Date\((-?\d+)/i,Mn=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,On={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function kn(t){var e,n,r,i,a,s,o=t._i,u=wn.exec(o)||Dn.exec(o);if(u){for(g(t).iso=!0,e=0,n=Tn.length;e<n;e++)if(Tn[e][1].exec(u[1])){i=Tn[e][0],r=!1!==Tn[e][2];break}if(null==i)return void(t._isValid=!1);if(u[3]){for(e=0,n=xn.length;e<n;e++)if(xn[e][1].exec(u[3])){a=(u[2]||" ")+xn[e][0];break}if(null==a)return void(t._isValid=!1)}if(!r&&null!=a)return void(t._isValid=!1);if(u[4]){if(!Sn.exec(u[4]))return void(t._isValid=!1);s="Z"}t._f=i+(a||"")+(s||""),jn(t)}else t._isValid=!1}function Cn(t,e,n,r,i,a){var s=[An(t),ee.indexOf(e),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return a&&s.push(parseInt(a,10)),s}function An(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}function Pn(t){return t.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Rn(t,e,n){return!t||Ne.indexOf(t)===new Date(e[0],e[1],e[2]).getDay()||(g(n).weekdayMismatch=!0,n._isValid=!1,!1)}function Nn(t,e,n){if(t)return On[t];if(e)return 0;var r=parseInt(n,10),i=r%100;return(r-i)/100*60+i}function In(t){var e,n=Mn.exec(Pn(t._i));if(n){if(e=Cn(n[4],n[3],n[2],n[5],n[6],n[7]),!Rn(n[1],e,t))return;t._a=e,t._tzm=Nn(n[8],n[9],n[10]),t._d=_e.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),g(t).rfc2822=!0}else t._isValid=!1}function Vn(t){var e=En.exec(t._i);null===e?(kn(t),!1===t._isValid&&(delete t._isValid,In(t),!1===t._isValid&&(delete t._isValid,t._strict?t._isValid=!1:r.createFromInputFallback(t)))):t._d=new Date(+e[1])}function Bn(t,e,n){return null!=t?t:null!=e?e:n}function Yn(t){var e=new Date(r.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}function Ln(t){var e,n,r,i,a,s=[];if(!t._d){for(r=Yn(t),t._w&&null==t._a[qt]&&null==t._a[zt]&&Fn(t),null!=t._dayOfYear&&(a=Bn(t._a[Ht],r[Ht]),(t._dayOfYear>me(a)||0===t._dayOfYear)&&(g(t)._overflowDayOfYear=!0),n=_e(a,0,t._dayOfYear),t._a[zt]=n.getUTCMonth(),t._a[qt]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=s[e]=r[e];for(;e<7;e++)t._a[e]=s[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[Gt]&&0===t._a[Wt]&&0===t._a[Zt]&&0===t._a[Kt]&&(t._nextDay=!0,t._a[Gt]=0),t._d=(t._useUTC?_e:ye).apply(null,s),i=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[Gt]=24),t._w&&void 0!==t._w.d&&t._w.d!==i&&(g(t).weekdayMismatch=!0)}}function Fn(t){var e,n,r,i,a,s,o,u,c;null!=(e=t._w).GG||null!=e.W||null!=e.E?(a=1,s=4,n=Bn(e.GG,t._a[Ht],De(Kn(),1,4).year),r=Bn(e.W,1),((i=Bn(e.E,1))<1||i>7)&&(u=!0)):(a=t._locale._week.dow,s=t._locale._week.doy,c=De(Kn(),a,s),n=Bn(e.gg,t._a[Ht],c.year),r=Bn(e.w,c.week),null!=e.d?((i=e.d)<0||i>6)&&(u=!0):null!=e.e?(i=e.e+a,(e.e<0||e.e>6)&&(u=!0)):i=a),r<1||r>Se(n,a,s)?g(t)._overflowWeeks=!0:null!=u?g(t)._overflowWeekday=!0:(o=we(n,r,i,a,s),t._a[Ht]=o.year,t._dayOfYear=o.dayOfYear)}function jn(t){if(t._f!==r.ISO_8601)if(t._f!==r.RFC_2822){t._a=[],g(t).empty=!0;var e,n,i,a,s,o,u=""+t._i,c=u.length,l=0;for(i=z(t._f,t._locale).match(V)||[],e=0;e<i.length;e++)a=i[e],(n=(u.match(It(a,t))||[])[0])&&((s=u.substr(0,u.indexOf(n))).length>0&&g(t).unusedInput.push(s),u=u.slice(u.indexOf(n)+n.length),l+=n.length),L[a]?(n?g(t).empty=!1:g(t).unusedTokens.push(a),jt(a,n,t)):t._strict&&!n&&g(t).unusedTokens.push(a);g(t).charsLeftOver=c-l,u.length>0&&g(t).unusedInput.push(u),t._a[Gt]<=12&&!0===g(t).bigHour&&t._a[Gt]>0&&(g(t).bigHour=void 0),g(t).parsedDateParts=t._a.slice(0),g(t).meridiem=t._meridiem,t._a[Gt]=Un(t._locale,t._a[Gt],t._meridiem),null!==(o=g(t).era)&&(t._a[Ht]=t._locale.erasConvertYear(o,t._a[Ht])),Ln(t),bn(t)}else In(t);else kn(t)}function Un(t,e,n){var r;return null==n?e:null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?((r=t.isPM(n))&&e<12&&(e+=12),r||12!==e||(e=0),e):e}function Hn(t){var e,n,r,i,a,s,o=!1;if(0===t._f.length)return g(t).invalidFormat=!0,void(t._d=new Date(NaN));for(i=0;i<t._f.length;i++)a=0,s=!1,e=w({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[i],jn(e),v(e)&&(s=!0),a+=g(e).charsLeftOver,a+=10*g(e).unusedTokens.length,g(e).score=a,o?a<r&&(r=a,n=e):(null==r||a<r||s)&&(r=a,n=e,s&&(o=!0));d(t,n||e)}function zn(t){if(!t._d){var e=it(t._i),n=void 0===e.day?e.date:e.day;t._a=f([e.year,e.month,n,e.hour,e.minute,e.second,e.millisecond],(function(t){return t&&parseInt(t,10)})),Ln(t)}}function qn(t){var e=new D(bn(Gn(t)));return e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}function Gn(t){var e=t._i,n=t._f;return t._locale=t._locale||yn(t._l),null===e||void 0===n&&""===e?y({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),S(e)?new D(bn(e)):(h(e)?t._d=e:a(n)?Hn(t):n?jn(t):Wn(t),v(t)||(t._d=null),t))}function Wn(t){var e=t._i;c(e)?t._d=new Date(r.now()):h(e)?t._d=new Date(e.valueOf()):"string"==typeof e?Vn(t):a(e)?(t._a=f(e.slice(0),(function(t){return parseInt(t,10)})),Ln(t)):s(e)?zn(t):l(e)?t._d=new Date(e):r.createFromInputFallback(t)}function Zn(t,e,n,r,i){var o={};return!0!==e&&!1!==e||(r=e,e=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(s(t)&&u(t)||a(t)&&0===t.length)&&(t=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=i,o._l=n,o._i=t,o._f=e,o._strict=r,qn(o)}function Kn(t,e,n,r){return Zn(t,e,n,r,!1)}r.createFromInputFallback=x("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))})),r.ISO_8601=function(){},r.RFC_2822=function(){};var $n=x("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=Kn.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:y()})),Xn=x("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=Kn.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:y()}));function Qn(t,e){var n,r;if(1===e.length&&a(e[0])&&(e=e[0]),!e.length)return Kn();for(n=e[0],r=1;r<e.length;++r)e[r].isValid()&&!e[r][t](n)||(n=e[r]);return n}function Jn(){return Qn("isBefore",[].slice.call(arguments,0))}function tr(){return Qn("isAfter",[].slice.call(arguments,0))}var er=function(){return Date.now?Date.now():+new Date},nr=["year","quarter","month","week","day","hour","minute","second","millisecond"];function rr(t){var e,n,r=!1;for(e in t)if(o(t,e)&&(-1===Ut.call(nr,e)||null!=t[e]&&isNaN(t[e])))return!1;for(n=0;n<nr.length;++n)if(t[nr[n]]){if(r)return!1;parseFloat(t[nr[n]])!==lt(t[nr[n]])&&(r=!0)}return!0}function ir(){return this._isValid}function ar(){return Or(NaN)}function sr(t){var e=it(t),n=e.year||0,r=e.quarter||0,i=e.month||0,a=e.week||e.isoWeek||0,s=e.day||0,o=e.hour||0,u=e.minute||0,c=e.second||0,l=e.millisecond||0;this._isValid=rr(e),this._milliseconds=+l+1e3*c+6e4*u+1e3*o*60*60,this._days=+s+7*a,this._months=+i+3*r+12*n,this._data={},this._locale=yn(),this._bubble()}function or(t){return t instanceof sr}function ur(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function cr(t,e,n){var r,i=Math.min(t.length,e.length),a=Math.abs(t.length-e.length),s=0;for(r=0;r<i;r++)(n&&t[r]!==e[r]||!n&<(t[r])!==lt(e[r]))&&s++;return s+a}function lr(t,e){F(t,0,0,(function(){var t=this.utcOffset(),n="+";return t<0&&(t=-t,n="-"),n+I(~~(t/60),2)+e+I(~~t%60,2)}))}lr("Z",":"),lr("ZZ",""),Nt("Z",At),Nt("ZZ",At),Lt(["Z","ZZ"],(function(t,e,n){n._useUTC=!0,n._tzm=fr(At,t)}));var hr=/([\+\-]|\d\d)/gi;function fr(t,e){var n,r,i=(e||"").match(t);return null===i?null:0===(r=60*(n=((i[i.length-1]||[])+"").match(hr)||["-",0,0])[1]+lt(n[2]))?0:"+"===n[0]?r:-r}function dr(t,e){var n,i;return e._isUTC?(n=e.clone(),i=(S(t)||h(t)?t.valueOf():Kn(t).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+i),r.updateOffset(n,!1),n):Kn(t).local()}function pr(t){return-Math.round(t._d.getTimezoneOffset())}function mr(t,e,n){var i,a=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=fr(At,t)))return this}else Math.abs(t)<16&&!n&&(t*=60);return!this._isUTC&&e&&(i=pr(this)),this._offset=t,this._isUTC=!0,null!=i&&this.add(i,"m"),a!==t&&(!e||this._changeInProgress?Rr(this,Or(t-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?a:pr(this)}function gr(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}function vr(t){return this.utcOffset(0,t)}function yr(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(pr(this),"m")),this}function _r(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=fr(Ct,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this}function br(t){return!!this.isValid()&&(t=t?Kn(t).utcOffset():0,(this.utcOffset()-t)%60==0)}function wr(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Dr(){if(!c(this._isDSTShifted))return this._isDSTShifted;var t,e={};return w(e,this),(e=Gn(e))._a?(t=e._isUTC?p(e._a):Kn(e._a),this._isDSTShifted=this.isValid()&&cr(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Sr(){return!!this.isValid()&&!this._isUTC}function Tr(){return!!this.isValid()&&this._isUTC}function xr(){return!!this.isValid()&&this._isUTC&&0===this._offset}r.updateOffset=function(){};var Er=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Mr=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Or(t,e){var n,r,i,a=t,s=null;return or(t)?a={ms:t._milliseconds,d:t._days,M:t._months}:l(t)||!isNaN(+t)?(a={},e?a[e]=+t:a.milliseconds=+t):(s=Er.exec(t))?(n="-"===s[1]?-1:1,a={y:0,d:lt(s[qt])*n,h:lt(s[Gt])*n,m:lt(s[Wt])*n,s:lt(s[Zt])*n,ms:lt(ur(1e3*s[Kt]))*n}):(s=Mr.exec(t))?(n="-"===s[1]?-1:1,a={y:kr(s[2],n),M:kr(s[3],n),w:kr(s[4],n),d:kr(s[5],n),h:kr(s[6],n),m:kr(s[7],n),s:kr(s[8],n)}):null==a?a={}:"object"==typeof a&&("from"in a||"to"in a)&&(i=Ar(Kn(a.from),Kn(a.to)),(a={}).ms=i.milliseconds,a.M=i.months),r=new sr(a),or(t)&&o(t,"_locale")&&(r._locale=t._locale),or(t)&&o(t,"_isValid")&&(r._isValid=t._isValid),r}function kr(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function Cr(t,e){var n={};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function Ar(t,e){var n;return t.isValid()&&e.isValid()?(e=dr(e,t),t.isBefore(e)?n=Cr(t,e):((n=Cr(e,t)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Pr(t,e){return function(n,r){var i;return null===r||isNaN(+r)||(O(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),Rr(this,Or(n,r),t),this}}function Rr(t,e,n,i){var a=e._milliseconds,s=ur(e._days),o=ur(e._months);t.isValid()&&(i=null==i||i,o&&ce(t,ft(t,"Month")+o*n),s&&dt(t,"Date",ft(t,"Date")+s*n),a&&t._d.setTime(t._d.valueOf()+a*n),i&&r.updateOffset(t,s||o))}Or.fn=sr.prototype,Or.invalid=ar;var Nr=Pr(1,"add"),Ir=Pr(-1,"subtract");function Vr(t){return"string"==typeof t||t instanceof String}function Br(t){return S(t)||h(t)||Vr(t)||l(t)||Lr(t)||Yr(t)||null==t}function Yr(t){var e,n,r=s(t)&&!u(t),i=!1,a=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"];for(e=0;e<a.length;e+=1)n=a[e],i=i||o(t,n);return r&&i}function Lr(t){var e=a(t),n=!1;return e&&(n=0===t.filter((function(e){return!l(e)&&Vr(t)})).length),e&&n}function Fr(t){var e,n,r=s(t)&&!u(t),i=!1,a=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(e=0;e<a.length;e+=1)n=a[e],i=i||o(t,n);return r&&i}function jr(t,e){var n=t.diff(e,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Ur(t,e){1===arguments.length&&(arguments[0]?Br(arguments[0])?(t=arguments[0],e=void 0):Fr(arguments[0])&&(e=arguments[0],t=void 0):(t=void 0,e=void 0));var n=t||Kn(),i=dr(n,this).startOf("day"),a=r.calendarFormat(this,i)||"sameElse",s=e&&(k(e[a])?e[a].call(this,n):e[a]);return this.format(s||this.localeData().calendar(a,this,Kn(n)))}function Hr(){return new D(this)}function zr(t,e){var n=S(t)?t:Kn(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=rt(e)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(e).valueOf())}function qr(t,e){var n=S(t)?t:Kn(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=rt(e)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(e).valueOf()<n.valueOf())}function Gr(t,e,n,r){var i=S(t)?t:Kn(t),a=S(e)?e:Kn(e);return!!(this.isValid()&&i.isValid()&&a.isValid())&&("("===(r=r||"()")[0]?this.isAfter(i,n):!this.isBefore(i,n))&&(")"===r[1]?this.isBefore(a,n):!this.isAfter(a,n))}function Wr(t,e){var n,r=S(t)?t:Kn(t);return!(!this.isValid()||!r.isValid())&&("millisecond"===(e=rt(e)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(e).valueOf()<=n&&n<=this.clone().endOf(e).valueOf()))}function Zr(t,e){return this.isSame(t,e)||this.isAfter(t,e)}function Kr(t,e){return this.isSame(t,e)||this.isBefore(t,e)}function $r(t,e,n){var r,i,a;if(!this.isValid())return NaN;if(!(r=dr(t,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),e=rt(e)){case"year":a=Xr(this,r)/12;break;case"month":a=Xr(this,r);break;case"quarter":a=Xr(this,r)/3;break;case"second":a=(this-r)/1e3;break;case"minute":a=(this-r)/6e4;break;case"hour":a=(this-r)/36e5;break;case"day":a=(this-r-i)/864e5;break;case"week":a=(this-r-i)/6048e5;break;default:a=this-r}return n?a:ct(a)}function Xr(t,e){if(t.date()<e.date())return-Xr(e,t);var n=12*(e.year()-t.year())+(e.month()-t.month()),r=t.clone().add(n,"months");return-(n+(e-r<0?(e-r)/(r-t.clone().add(n-1,"months")):(e-r)/(t.clone().add(n+1,"months")-r)))||0}function Qr(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Jr(t){if(!this.isValid())return null;var e=!0!==t,n=e?this.clone().utc():this;return n.year()<0||n.year()>9999?H(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):k(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",H(n,"Z")):H(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ti(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t,e,n,r,i="moment",a="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",a="Z"),t="["+i+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",r=a+'[")]',this.format(t+e+n+r)}function ei(t){t||(t=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var e=H(this,t);return this.localeData().postformat(e)}function ni(t,e){return this.isValid()&&(S(t)&&t.isValid()||Kn(t).isValid())?Or({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function ri(t){return this.from(Kn(),t)}function ii(t,e){return this.isValid()&&(S(t)&&t.isValid()||Kn(t).isValid())?Or({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function ai(t){return this.to(Kn(),t)}function si(t){var e;return void 0===t?this._locale._abbr:(null!=(e=yn(t))&&(this._locale=e),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var oi=x("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(t){return void 0===t?this.localeData():this.locale(t)}));function ui(){return this._locale}var ci=1e3,li=60*ci,hi=60*li,fi=3506328*hi;function di(t,e){return(t%e+e)%e}function pi(t,e,n){return t<100&&t>=0?new Date(t+400,e,n)-fi:new Date(t,e,n).valueOf()}function mi(t,e,n){return t<100&&t>=0?Date.UTC(t+400,e,n)-fi:Date.UTC(t,e,n)}function gi(t){var e,n;if(void 0===(t=rt(t))||"millisecond"===t||!this.isValid())return this;switch(n=this._isUTC?mi:pi,t){case"year":e=n(this.year(),0,1);break;case"quarter":e=n(this.year(),this.month()-this.month()%3,1);break;case"month":e=n(this.year(),this.month(),1);break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=n(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=di(e+(this._isUTC?0:this.utcOffset()*li),hi);break;case"minute":e=this._d.valueOf(),e-=di(e,li);break;case"second":e=this._d.valueOf(),e-=di(e,ci)}return this._d.setTime(e),r.updateOffset(this,!0),this}function vi(t){var e,n;if(void 0===(t=rt(t))||"millisecond"===t||!this.isValid())return this;switch(n=this._isUTC?mi:pi,t){case"year":e=n(this.year()+1,0,1)-1;break;case"quarter":e=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=n(this.year(),this.month()+1,1)-1;break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=hi-di(e+(this._isUTC?0:this.utcOffset()*li),hi)-1;break;case"minute":e=this._d.valueOf(),e+=li-di(e,li)-1;break;case"second":e=this._d.valueOf(),e+=ci-di(e,ci)-1}return this._d.setTime(e),r.updateOffset(this,!0),this}function yi(){return this._d.valueOf()-6e4*(this._offset||0)}function _i(){return Math.floor(this.valueOf()/1e3)}function bi(){return new Date(this.valueOf())}function wi(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function Di(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}}function Si(){return this.isValid()?this.toISOString():null}function Ti(){return v(this)}function xi(){return d({},g(this))}function Ei(){return g(this).overflow}function Mi(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Oi(t,e){var n,i,a,s=this._eras||yn("en")._eras;for(n=0,i=s.length;n<i;++n)switch("string"==typeof s[n].since&&(a=r(s[n].since).startOf("day"),s[n].since=a.valueOf()),typeof s[n].until){case"undefined":s[n].until=1/0;break;case"string":a=r(s[n].until).startOf("day").valueOf(),s[n].until=a.valueOf()}return s}function ki(t,e,n){var r,i,a,s,o,u=this.eras();for(t=t.toUpperCase(),r=0,i=u.length;r<i;++r)if(a=u[r].name.toUpperCase(),s=u[r].abbr.toUpperCase(),o=u[r].narrow.toUpperCase(),n)switch(e){case"N":case"NN":case"NNN":if(s===t)return u[r];break;case"NNNN":if(a===t)return u[r];break;case"NNNNN":if(o===t)return u[r]}else if([a,s,o].indexOf(t)>=0)return u[r]}function Ci(t,e){var n=t.since<=t.until?1:-1;return void 0===e?r(t.since).year():r(t.since).year()+(e-t.offset)*n}function Ai(){var t,e,n,r=this.localeData().eras();for(t=0,e=r.length;t<e;++t){if(n=this.clone().startOf("day").valueOf(),r[t].since<=n&&n<=r[t].until)return r[t].name;if(r[t].until<=n&&n<=r[t].since)return r[t].name}return""}function Pi(){var t,e,n,r=this.localeData().eras();for(t=0,e=r.length;t<e;++t){if(n=this.clone().startOf("day").valueOf(),r[t].since<=n&&n<=r[t].until)return r[t].narrow;if(r[t].until<=n&&n<=r[t].since)return r[t].narrow}return""}function Ri(){var t,e,n,r=this.localeData().eras();for(t=0,e=r.length;t<e;++t){if(n=this.clone().startOf("day").valueOf(),r[t].since<=n&&n<=r[t].until)return r[t].abbr;if(r[t].until<=n&&n<=r[t].since)return r[t].abbr}return""}function Ni(){var t,e,n,i,a=this.localeData().eras();for(t=0,e=a.length;t<e;++t)if(n=a[t].since<=a[t].until?1:-1,i=this.clone().startOf("day").valueOf(),a[t].since<=i&&i<=a[t].until||a[t].until<=i&&i<=a[t].since)return(this.year()-r(a[t].since).year())*n+a[t].offset;return this.year()}function Ii(t){return o(this,"_erasNameRegex")||Ui.call(this),t?this._erasNameRegex:this._erasRegex}function Vi(t){return o(this,"_erasAbbrRegex")||Ui.call(this),t?this._erasAbbrRegex:this._erasRegex}function Bi(t){return o(this,"_erasNarrowRegex")||Ui.call(this),t?this._erasNarrowRegex:this._erasRegex}function Yi(t,e){return e.erasAbbrRegex(t)}function Li(t,e){return e.erasNameRegex(t)}function Fi(t,e){return e.erasNarrowRegex(t)}function ji(t,e){return e._eraYearOrdinalRegex||Ot}function Ui(){var t,e,n=[],r=[],i=[],a=[],s=this.eras();for(t=0,e=s.length;t<e;++t)r.push(Bt(s[t].name)),n.push(Bt(s[t].abbr)),i.push(Bt(s[t].narrow)),a.push(Bt(s[t].name)),a.push(Bt(s[t].abbr)),a.push(Bt(s[t].narrow));this._erasRegex=new RegExp("^("+a.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+r.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+i.join("|")+")","i")}function Hi(t,e){F(0,[t,t.length],0,e)}function zi(t){return $i.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function qi(t){return $i.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)}function Gi(){return Se(this.year(),1,4)}function Wi(){return Se(this.isoWeekYear(),1,4)}function Zi(){var t=this.localeData()._week;return Se(this.year(),t.dow,t.doy)}function Ki(){var t=this.localeData()._week;return Se(this.weekYear(),t.dow,t.doy)}function $i(t,e,n,r,i){var a;return null==t?De(this,r,i).year:(e>(a=Se(t,r,i))&&(e=a),Xi.call(this,t,e,n,r,i))}function Xi(t,e,n,r,i){var a=we(t,e,n,r,i),s=_e(a.year,0,a.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}function Qi(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)}F("N",0,0,"eraAbbr"),F("NN",0,0,"eraAbbr"),F("NNN",0,0,"eraAbbr"),F("NNNN",0,0,"eraName"),F("NNNNN",0,0,"eraNarrow"),F("y",["y",1],"yo","eraYear"),F("y",["yy",2],0,"eraYear"),F("y",["yyy",3],0,"eraYear"),F("y",["yyyy",4],0,"eraYear"),Nt("N",Yi),Nt("NN",Yi),Nt("NNN",Yi),Nt("NNNN",Li),Nt("NNNNN",Fi),Lt(["N","NN","NNN","NNNN","NNNNN"],(function(t,e,n,r){var i=n._locale.erasParse(t,r,n._strict);i?g(n).era=i:g(n).invalidEra=t})),Nt("y",Ot),Nt("yy",Ot),Nt("yyy",Ot),Nt("yyyy",Ot),Nt("yo",ji),Lt(["y","yy","yyy","yyyy"],Ht),Lt(["yo"],(function(t,e,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=t.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?e[Ht]=n._locale.eraYearOrdinalParse(t,i):e[Ht]=parseInt(t,10)})),F(0,["gg",2],0,(function(){return this.weekYear()%100})),F(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Hi("gggg","weekYear"),Hi("ggggg","weekYear"),Hi("GGGG","isoWeekYear"),Hi("GGGGG","isoWeekYear"),nt("weekYear","gg"),nt("isoWeekYear","GG"),st("weekYear",1),st("isoWeekYear",1),Nt("G",kt),Nt("g",kt),Nt("GG",Dt,yt),Nt("gg",Dt,yt),Nt("GGGG",Et,bt),Nt("gggg",Et,bt),Nt("GGGGG",Mt,wt),Nt("ggggg",Mt,wt),Ft(["gggg","ggggg","GGGG","GGGGG"],(function(t,e,n,r){e[r.substr(0,2)]=lt(t)})),Ft(["gg","GG"],(function(t,e,n,i){e[i]=r.parseTwoDigitYear(t)})),F("Q",0,"Qo","quarter"),nt("quarter","Q"),st("quarter",7),Nt("Q",vt),Lt("Q",(function(t,e){e[zt]=3*(lt(t)-1)})),F("D",["DD",2],"Do","date"),nt("date","D"),st("date",9),Nt("D",Dt),Nt("DD",Dt,yt),Nt("Do",(function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient})),Lt(["D","DD"],qt),Lt("Do",(function(t,e){e[qt]=lt(t.match(Dt)[0])}));var Ji=ht("Date",!0);function ta(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")}F("DDD",["DDDD",3],"DDDo","dayOfYear"),nt("dayOfYear","DDD"),st("dayOfYear",4),Nt("DDD",xt),Nt("DDDD",_t),Lt(["DDD","DDDD"],(function(t,e,n){n._dayOfYear=lt(t)})),F("m",["mm",2],0,"minute"),nt("minute","m"),st("minute",14),Nt("m",Dt),Nt("mm",Dt,yt),Lt(["m","mm"],Wt);var ea=ht("Minutes",!1);F("s",["ss",2],0,"second"),nt("second","s"),st("second",15),Nt("s",Dt),Nt("ss",Dt,yt),Lt(["s","ss"],Zt);var na,ra,ia=ht("Seconds",!1);for(F("S",0,0,(function(){return~~(this.millisecond()/100)})),F(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),F(0,["SSS",3],0,"millisecond"),F(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),F(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),F(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),F(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),F(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),F(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),nt("millisecond","ms"),st("millisecond",16),Nt("S",xt,vt),Nt("SS",xt,yt),Nt("SSS",xt,_t),na="SSSS";na.length<=9;na+="S")Nt(na,Ot);function aa(t,e){e[Kt]=lt(1e3*("0."+t))}for(na="S";na.length<=9;na+="S")Lt(na,aa);function sa(){return this._isUTC?"UTC":""}function oa(){return this._isUTC?"Coordinated Universal Time":""}ra=ht("Milliseconds",!1),F("z",0,0,"zoneAbbr"),F("zz",0,0,"zoneName");var ua=D.prototype;function ca(t){return Kn(1e3*t)}function la(){return Kn.apply(null,arguments).parseZone()}function ha(t){return t}ua.add=Nr,ua.calendar=Ur,ua.clone=Hr,ua.diff=$r,ua.endOf=vi,ua.format=ei,ua.from=ni,ua.fromNow=ri,ua.to=ii,ua.toNow=ai,ua.get=pt,ua.invalidAt=Ei,ua.isAfter=zr,ua.isBefore=qr,ua.isBetween=Gr,ua.isSame=Wr,ua.isSameOrAfter=Zr,ua.isSameOrBefore=Kr,ua.isValid=Ti,ua.lang=oi,ua.locale=si,ua.localeData=ui,ua.max=Xn,ua.min=$n,ua.parsingFlags=xi,ua.set=mt,ua.startOf=gi,ua.subtract=Ir,ua.toArray=wi,ua.toObject=Di,ua.toDate=bi,ua.toISOString=Jr,ua.inspect=ti,"undefined"!=typeof Symbol&&null!=Symbol.for&&(ua[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),ua.toJSON=Si,ua.toString=Qr,ua.unix=_i,ua.valueOf=yi,ua.creationData=Mi,ua.eraName=Ai,ua.eraNarrow=Pi,ua.eraAbbr=Ri,ua.eraYear=Ni,ua.year=ge,ua.isLeapYear=ve,ua.weekYear=zi,ua.isoWeekYear=qi,ua.quarter=ua.quarters=Qi,ua.month=le,ua.daysInMonth=he,ua.week=ua.weeks=Oe,ua.isoWeek=ua.isoWeeks=ke,ua.weeksInYear=Zi,ua.weeksInWeekYear=Ki,ua.isoWeeksInYear=Gi,ua.isoWeeksInISOWeekYear=Wi,ua.date=Ji,ua.day=ua.days=ze,ua.weekday=qe,ua.isoWeekday=Ge,ua.dayOfYear=ta,ua.hour=ua.hours=an,ua.minute=ua.minutes=ea,ua.second=ua.seconds=ia,ua.millisecond=ua.milliseconds=ra,ua.utcOffset=mr,ua.utc=vr,ua.local=yr,ua.parseZone=_r,ua.hasAlignedHourOffset=br,ua.isDST=wr,ua.isLocal=Sr,ua.isUtcOffset=Tr,ua.isUtc=xr,ua.isUTC=xr,ua.zoneAbbr=sa,ua.zoneName=oa,ua.dates=x("dates accessor is deprecated. Use date instead.",Ji),ua.months=x("months accessor is deprecated. Use month instead",le),ua.years=x("years accessor is deprecated. Use year instead",ge),ua.zone=x("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",gr),ua.isDSTShifted=x("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Dr);var fa=P.prototype;function da(t,e,n,r){var i=yn(),a=p().set(r,e);return i[n](a,t)}function pa(t,e,n){if(l(t)&&(e=t,t=void 0),t=t||"",null!=e)return da(t,e,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=da(t,r,n,"month");return i}function ma(t,e,n,r){"boolean"==typeof t?(l(e)&&(n=e,e=void 0),e=e||""):(n=e=t,t=!1,l(e)&&(n=e,e=void 0),e=e||"");var i,a=yn(),s=t?a._week.dow:0,o=[];if(null!=n)return da(e,(n+s)%7,r,"day");for(i=0;i<7;i++)o[i]=da(e,(i+s)%7,r,"day");return o}function ga(t,e){return pa(t,e,"months")}function va(t,e){return pa(t,e,"monthsShort")}function ya(t,e,n){return ma(t,e,n,"weekdays")}function _a(t,e,n){return ma(t,e,n,"weekdaysShort")}function ba(t,e,n){return ma(t,e,n,"weekdaysMin")}fa.calendar=N,fa.longDateFormat=G,fa.invalidDate=Z,fa.ordinal=X,fa.preparse=ha,fa.postformat=ha,fa.relativeTime=J,fa.pastFuture=tt,fa.set=C,fa.eras=Oi,fa.erasParse=ki,fa.erasConvertYear=Ci,fa.erasAbbrRegex=Vi,fa.erasNameRegex=Ii,fa.erasNarrowRegex=Bi,fa.months=ae,fa.monthsShort=se,fa.monthsParse=ue,fa.monthsRegex=de,fa.monthsShortRegex=fe,fa.week=Te,fa.firstDayOfYear=Me,fa.firstDayOfWeek=Ee,fa.weekdays=Le,fa.weekdaysMin=je,fa.weekdaysShort=Fe,fa.weekdaysParse=He,fa.weekdaysRegex=We,fa.weekdaysShortRegex=Ze,fa.weekdaysMinRegex=Ke,fa.isPM=nn,fa.meridiem=sn,mn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===lt(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),r.lang=x("moment.lang is deprecated. Use moment.locale instead.",mn),r.langData=x("moment.langData is deprecated. Use moment.localeData instead.",yn);var wa=Math.abs;function Da(){var t=this._data;return this._milliseconds=wa(this._milliseconds),this._days=wa(this._days),this._months=wa(this._months),t.milliseconds=wa(t.milliseconds),t.seconds=wa(t.seconds),t.minutes=wa(t.minutes),t.hours=wa(t.hours),t.months=wa(t.months),t.years=wa(t.years),this}function Sa(t,e,n,r){var i=Or(e,n);return t._milliseconds+=r*i._milliseconds,t._days+=r*i._days,t._months+=r*i._months,t._bubble()}function Ta(t,e){return Sa(this,t,e,1)}function xa(t,e){return Sa(this,t,e,-1)}function Ea(t){return t<0?Math.floor(t):Math.ceil(t)}function Ma(){var t,e,n,r,i,a=this._milliseconds,s=this._days,o=this._months,u=this._data;return a>=0&&s>=0&&o>=0||a<=0&&s<=0&&o<=0||(a+=864e5*Ea(ka(o)+s),s=0,o=0),u.milliseconds=a%1e3,t=ct(a/1e3),u.seconds=t%60,e=ct(t/60),u.minutes=e%60,n=ct(e/60),u.hours=n%24,s+=ct(n/24),o+=i=ct(Oa(s)),s-=Ea(ka(i)),r=ct(o/12),o%=12,u.days=s,u.months=o,u.years=r,this}function Oa(t){return 4800*t/146097}function ka(t){return 146097*t/4800}function Ca(t){if(!this.isValid())return NaN;var e,n,r=this._milliseconds;if("month"===(t=rt(t))||"quarter"===t||"year"===t)switch(e=this._days+r/864e5,n=this._months+Oa(e),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(ka(this._months)),t){case"week":return e/7+r/6048e5;case"day":return e+r/864e5;case"hour":return 24*e+r/36e5;case"minute":return 1440*e+r/6e4;case"second":return 86400*e+r/1e3;case"millisecond":return Math.floor(864e5*e)+r;default:throw new Error("Unknown unit "+t)}}function Aa(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*lt(this._months/12):NaN}function Pa(t){return function(){return this.as(t)}}var Ra=Pa("ms"),Na=Pa("s"),Ia=Pa("m"),Va=Pa("h"),Ba=Pa("d"),Ya=Pa("w"),La=Pa("M"),Fa=Pa("Q"),ja=Pa("y");function Ua(){return Or(this)}function Ha(t){return t=rt(t),this.isValid()?this[t+"s"]():NaN}function za(t){return function(){return this.isValid()?this._data[t]:NaN}}var qa=za("milliseconds"),Ga=za("seconds"),Wa=za("minutes"),Za=za("hours"),Ka=za("days"),$a=za("months"),Xa=za("years");function Qa(){return ct(this.days()/7)}var Ja=Math.round,ts={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function es(t,e,n,r,i){return i.relativeTime(e||1,!!n,t,r)}function ns(t,e,n,r){var i=Or(t).abs(),a=Ja(i.as("s")),s=Ja(i.as("m")),o=Ja(i.as("h")),u=Ja(i.as("d")),c=Ja(i.as("M")),l=Ja(i.as("w")),h=Ja(i.as("y")),f=a<=n.ss&&["s",a]||a<n.s&&["ss",a]||s<=1&&["m"]||s<n.m&&["mm",s]||o<=1&&["h"]||o<n.h&&["hh",o]||u<=1&&["d"]||u<n.d&&["dd",u];return null!=n.w&&(f=f||l<=1&&["w"]||l<n.w&&["ww",l]),(f=f||c<=1&&["M"]||c<n.M&&["MM",c]||h<=1&&["y"]||["yy",h])[2]=e,f[3]=+t>0,f[4]=r,es.apply(null,f)}function rs(t){return void 0===t?Ja:"function"==typeof t&&(Ja=t,!0)}function is(t,e){return void 0!==ts[t]&&(void 0===e?ts[t]:(ts[t]=e,"s"===t&&(ts.ss=e-1),!0))}function as(t,e){if(!this.isValid())return this.localeData().invalidDate();var n,r,i=!1,a=ts;return"object"==typeof t&&(e=t,t=!1),"boolean"==typeof t&&(i=t),"object"==typeof e&&(a=Object.assign({},ts,e),null!=e.s&&null==e.ss&&(a.ss=e.s-1)),r=ns(this,!i,a,n=this.localeData()),i&&(r=n.pastFuture(+this,r)),n.postformat(r)}var ss=Math.abs;function os(t){return(t>0)-(t<0)||+t}function us(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n,r,i,a,s,o,u=ss(this._milliseconds)/1e3,c=ss(this._days),l=ss(this._months),h=this.asSeconds();return h?(t=ct(u/60),e=ct(t/60),u%=60,t%=60,n=ct(l/12),l%=12,r=u?u.toFixed(3).replace(/\.?0+$/,""):"",i=h<0?"-":"",a=os(this._months)!==os(h)?"-":"",s=os(this._days)!==os(h)?"-":"",o=os(this._milliseconds)!==os(h)?"-":"",i+"P"+(n?a+n+"Y":"")+(l?a+l+"M":"")+(c?s+c+"D":"")+(e||t||u?"T":"")+(e?o+e+"H":"")+(t?o+t+"M":"")+(u?o+r+"S":"")):"P0D"}var cs=sr.prototype;return cs.isValid=ir,cs.abs=Da,cs.add=Ta,cs.subtract=xa,cs.as=Ca,cs.asMilliseconds=Ra,cs.asSeconds=Na,cs.asMinutes=Ia,cs.asHours=Va,cs.asDays=Ba,cs.asWeeks=Ya,cs.asMonths=La,cs.asQuarters=Fa,cs.asYears=ja,cs.valueOf=Aa,cs._bubble=Ma,cs.clone=Ua,cs.get=Ha,cs.milliseconds=qa,cs.seconds=Ga,cs.minutes=Wa,cs.hours=Za,cs.days=Ka,cs.weeks=Qa,cs.months=$a,cs.years=Xa,cs.humanize=as,cs.toISOString=us,cs.toString=us,cs.toJSON=us,cs.locale=si,cs.localeData=ui,cs.toIsoString=x("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",us),cs.lang=oi,F("X",0,0,"unix"),F("x",0,0,"valueOf"),Nt("x",kt),Nt("X",Pt),Lt("X",(function(t,e,n){n._d=new Date(1e3*parseFloat(t))})),Lt("x",(function(t,e,n){n._d=new Date(lt(t))})),
|
|
16
|
+
var Vt={};void 0!==Vt.asn1&&Vt.asn1||(Vt.asn1={}),Vt.asn1.ASN1Util=new function(){this.integerToByteHex=function(t){var e=t.toString(16);return e.length%2==1&&(e="0"+e),e},this.bigIntToMinTwosComplementsHex=function(t){var e=t.toString(16);if("-"!=e.substr(0,1))e.length%2==1?e="0"+e:e.match(/^[0-7]/)||(e="00"+e);else{var n=e.substr(1).length;n%2==1?n+=1:e.match(/^[0-7]/)||(n+=2);for(var r="",i=0;i<n;i++)r+="f";e=new ct(r,16).xor(t).add(ct.ONE).toString(16).replace(/^-/,"")}return e},this.getPEMStringFromHex=function(t,e){return hextopem(t,e)},this.newObject=function(t){var e=Vt.asn1,n=e.DERBoolean,r=e.DERInteger,i=e.DERBitString,a=e.DEROctetString,s=e.DERNull,o=e.DERObjectIdentifier,u=e.DEREnumerated,c=e.DERUTF8String,l=e.DERNumericString,h=e.DERPrintableString,f=e.DERTeletexString,d=e.DERIA5String,p=e.DERUTCTime,m=e.DERGeneralizedTime,g=e.DERSequence,v=e.DERSet,y=e.DERTaggedObject,b=e.ASN1Util.newObject,_=Object.keys(t);if(1!=_.length)throw"key of param shall be only one.";var w=_[0];if(-1==":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":"+w+":"))throw"undefined key: "+w;if("bool"==w)return new n(t[w]);if("int"==w)return new r(t[w]);if("bitstr"==w)return new i(t[w]);if("octstr"==w)return new a(t[w]);if("null"==w)return new s(t[w]);if("oid"==w)return new o(t[w]);if("enum"==w)return new u(t[w]);if("utf8str"==w)return new c(t[w]);if("numstr"==w)return new l(t[w]);if("prnstr"==w)return new h(t[w]);if("telstr"==w)return new f(t[w]);if("ia5str"==w)return new d(t[w]);if("utctime"==w)return new p(t[w]);if("gentime"==w)return new m(t[w]);if("seq"==w){for(var D=t[w],T=[],S=0;S<D.length;S++){var x=b(D[S]);T.push(x)}return new g({array:T})}if("set"==w){for(D=t[w],T=[],S=0;S<D.length;S++){x=b(D[S]);T.push(x)}return new v({array:T})}if("tag"==w){var E=t[w];if("[object Array]"===Object.prototype.toString.call(E)&&3==E.length){var M=b(E[2]);return new y({tag:E[0],explicit:E[1],obj:M})}var O={};if(void 0!==E.explicit&&(O.explicit=E.explicit),void 0!==E.tag&&(O.tag=E.tag),void 0===E.obj)throw"obj shall be specified for 'tag'.";return O.obj=b(E.obj),new y(O)}},this.jsonToASN1HEX=function(t){return this.newObject(t).getEncodedHex()}},Vt.asn1.ASN1Util.oidHexToInt=function(t){for(var e="",n=parseInt(t.substr(0,2),16),r=(e=Math.floor(n/40)+"."+n%40,""),i=2;i<t.length;i+=2){var a=("00000000"+parseInt(t.substr(i,2),16).toString(2)).slice(-8);if(r+=a.substr(1,7),"0"==a.substr(0,1))e=e+"."+new ct(r,2).toString(10),r=""}return e},Vt.asn1.ASN1Util.oidIntToHex=function(t){var e=function(t){var e=t.toString(16);return 1==e.length&&(e="0"+e),e},n=function(t){var n="",r=new ct(t,10).toString(2),i=7-r.length%7;7==i&&(i=0);for(var a="",s=0;s<i;s++)a+="0";r=a+r;for(s=0;s<r.length-1;s+=7){var o=r.substr(s,7);s!=r.length-7&&(o="1"+o),n+=e(parseInt(o,2))}return n};if(!t.match(/^[0-9.]+$/))throw"malformed oid string: "+t;var r="",i=t.split("."),a=40*parseInt(i[0])+parseInt(i[1]);r+=e(a),i.splice(0,2);for(var s=0;s<i.length;s++)r+=n(i[s]);return r},Vt.asn1.ASN1Object=function(){this.getLengthHexFromValue=function(){if(void 0===this.hV||null==this.hV)throw"this.hV is null or undefined.";if(this.hV.length%2==1)throw"value hex must be even length: n="+"".length+",v="+this.hV;var t=this.hV.length/2,e=t.toString(16);if(e.length%2==1&&(e="0"+e),t<128)return e;var n=e.length/2;if(n>15)throw"ASN.1 length too long to represent by 8x: n = "+t.toString(16);return(128+n).toString(16)+e},this.getEncodedHex=function(){return(null==this.hTLV||this.isModified)&&(this.hV=this.getFreshValueHex(),this.hL=this.getLengthHexFromValue(),this.hTLV=this.hT+this.hL+this.hV,this.isModified=!1),this.hTLV},this.getValueHex=function(){return this.getEncodedHex(),this.hV},this.getFreshValueHex=function(){return""}},Vt.asn1.DERAbstractString=function(t){Vt.asn1.DERAbstractString.superclass.constructor.call(this),this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(this.s)},this.setStringHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t?this.setString(t):void 0!==t.str?this.setString(t.str):void 0!==t.hex&&this.setStringHex(t.hex))},It.lang.extend(Vt.asn1.DERAbstractString,Vt.asn1.ASN1Object),Vt.asn1.DERAbstractTime=function(t){Vt.asn1.DERAbstractTime.superclass.constructor.call(this),this.localDateToUTC=function(t){return utc=t.getTime()+6e4*t.getTimezoneOffset(),new Date(utc)},this.formatDate=function(t,e,n){var r=this.zeroPadding,i=this.localDateToUTC(t),a=String(i.getFullYear());"utc"==e&&(a=a.substr(2,2));var s=a+r(String(i.getMonth()+1),2)+r(String(i.getDate()),2)+r(String(i.getHours()),2)+r(String(i.getMinutes()),2)+r(String(i.getSeconds()),2);if(!0===n){var o=i.getMilliseconds();if(0!=o){var u=r(String(o),3);s=s+"."+(u=u.replace(/[0]+$/,""))}}return s+"Z"},this.zeroPadding=function(t,e){return t.length>=e?t:new Array(e-t.length+1).join("0")+t},this.getString=function(){return this.s},this.setString=function(t){this.hTLV=null,this.isModified=!0,this.s=t,this.hV=stohex(t)},this.setByDateValue=function(t,e,n,r,i,a){var s=new Date(Date.UTC(t,e-1,n,r,i,a,0));this.setByDate(s)},this.getFreshValueHex=function(){return this.hV}},It.lang.extend(Vt.asn1.DERAbstractTime,Vt.asn1.ASN1Object),Vt.asn1.DERAbstractStructured=function(t){Vt.asn1.DERAbstractString.superclass.constructor.call(this),this.setByASN1ObjectArray=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array=t},this.appendASN1Object=function(t){this.hTLV=null,this.isModified=!0,this.asn1Array.push(t)},this.asn1Array=new Array,void 0!==t&&void 0!==t.array&&(this.asn1Array=t.array)},It.lang.extend(Vt.asn1.DERAbstractStructured,Vt.asn1.ASN1Object),Vt.asn1.DERBoolean=function(){Vt.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},It.lang.extend(Vt.asn1.DERBoolean,Vt.asn1.ASN1Object),Vt.asn1.DERInteger=function(t){Vt.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=Vt.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new ct(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.bigint?this.setByBigInteger(t.bigint):void 0!==t.int?this.setByInteger(t.int):"number"==typeof t?this.setByInteger(t):void 0!==t.hex&&this.setValueHex(t.hex))},It.lang.extend(Vt.asn1.DERInteger,Vt.asn1.ASN1Object),Vt.asn1.DERBitString=function(t){if(void 0!==t&&void 0!==t.obj){var e=Vt.asn1.ASN1Util.newObject(t.obj);t.hex="00"+e.getEncodedHex()}Vt.asn1.DERBitString.superclass.constructor.call(this),this.hT="03",this.setHexValueIncludingUnusedBits=function(t){this.hTLV=null,this.isModified=!0,this.hV=t},this.setUnusedBitsAndHexValue=function(t,e){if(t<0||7<t)throw"unused bits shall be from 0 to 7: u = "+t;var n="0"+t;this.hTLV=null,this.isModified=!0,this.hV=n+e},this.setByBinaryString=function(t){var e=8-(t=t.replace(/0+$/,"")).length%8;8==e&&(e=0);for(var n=0;n<=e;n++)t+="0";var r="";for(n=0;n<t.length-1;n+=8){var i=t.substr(n,8),a=parseInt(i,2).toString(16);1==a.length&&(a="0"+a),r+=a}this.hTLV=null,this.isModified=!0,this.hV="0"+e+r},this.setByBooleanArray=function(t){for(var e="",n=0;n<t.length;n++)1==t[n]?e+="1":e+="0";this.setByBinaryString(e)},this.newFalseArray=function(t){for(var e=new Array(t),n=0;n<t;n++)e[n]=!1;return e},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t&&t.toLowerCase().match(/^[0-9a-f]+$/)?this.setHexValueIncludingUnusedBits(t):void 0!==t.hex?this.setHexValueIncludingUnusedBits(t.hex):void 0!==t.bin?this.setByBinaryString(t.bin):void 0!==t.array&&this.setByBooleanArray(t.array))},It.lang.extend(Vt.asn1.DERBitString,Vt.asn1.ASN1Object),Vt.asn1.DEROctetString=function(t){if(void 0!==t&&void 0!==t.obj){var e=Vt.asn1.ASN1Util.newObject(t.obj);t.hex=e.getEncodedHex()}Vt.asn1.DEROctetString.superclass.constructor.call(this,t),this.hT="04"},It.lang.extend(Vt.asn1.DEROctetString,Vt.asn1.DERAbstractString),Vt.asn1.DERNull=function(){Vt.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},It.lang.extend(Vt.asn1.DERNull,Vt.asn1.ASN1Object),Vt.asn1.DERObjectIdentifier=function(t){var e=function(t){var e=t.toString(16);return 1==e.length&&(e="0"+e),e},n=function(t){var n="",r=new ct(t,10).toString(2),i=7-r.length%7;7==i&&(i=0);for(var a="",s=0;s<i;s++)a+="0";r=a+r;for(s=0;s<r.length-1;s+=7){var o=r.substr(s,7);s!=r.length-7&&(o="1"+o),n+=e(parseInt(o,2))}return n};Vt.asn1.DERObjectIdentifier.superclass.constructor.call(this),this.hT="06",this.setValueHex=function(t){this.hTLV=null,this.isModified=!0,this.s=null,this.hV=t},this.setValueOidString=function(t){if(!t.match(/^[0-9.]+$/))throw"malformed oid string: "+t;var r="",i=t.split("."),a=40*parseInt(i[0])+parseInt(i[1]);r+=e(a),i.splice(0,2);for(var s=0;s<i.length;s++)r+=n(i[s]);this.hTLV=null,this.isModified=!0,this.s=null,this.hV=r},this.setValueName=function(t){var e=Vt.asn1.x509.OID.name2oid(t);if(""===e)throw"DERObjectIdentifier oidName undefined: "+t;this.setValueOidString(e)},this.getFreshValueHex=function(){return this.hV},void 0!==t&&("string"==typeof t?t.match(/^[0-2].[0-9.]+$/)?this.setValueOidString(t):this.setValueName(t):void 0!==t.oid?this.setValueOidString(t.oid):void 0!==t.hex?this.setValueHex(t.hex):void 0!==t.name&&this.setValueName(t.name))},It.lang.extend(Vt.asn1.DERObjectIdentifier,Vt.asn1.ASN1Object),Vt.asn1.DEREnumerated=function(t){Vt.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=Vt.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new ct(String(t),10);this.setByBigInteger(e)},this.setValueHex=function(t){this.hV=t},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.int?this.setByInteger(t.int):"number"==typeof t?this.setByInteger(t):void 0!==t.hex&&this.setValueHex(t.hex))},It.lang.extend(Vt.asn1.DEREnumerated,Vt.asn1.ASN1Object),Vt.asn1.DERUTF8String=function(t){Vt.asn1.DERUTF8String.superclass.constructor.call(this,t),this.hT="0c"},It.lang.extend(Vt.asn1.DERUTF8String,Vt.asn1.DERAbstractString),Vt.asn1.DERNumericString=function(t){Vt.asn1.DERNumericString.superclass.constructor.call(this,t),this.hT="12"},It.lang.extend(Vt.asn1.DERNumericString,Vt.asn1.DERAbstractString),Vt.asn1.DERPrintableString=function(t){Vt.asn1.DERPrintableString.superclass.constructor.call(this,t),this.hT="13"},It.lang.extend(Vt.asn1.DERPrintableString,Vt.asn1.DERAbstractString),Vt.asn1.DERTeletexString=function(t){Vt.asn1.DERTeletexString.superclass.constructor.call(this,t),this.hT="14"},It.lang.extend(Vt.asn1.DERTeletexString,Vt.asn1.DERAbstractString),Vt.asn1.DERIA5String=function(t){Vt.asn1.DERIA5String.superclass.constructor.call(this,t),this.hT="16"},It.lang.extend(Vt.asn1.DERIA5String,Vt.asn1.DERAbstractString),Vt.asn1.DERUTCTime=function(t){Vt.asn1.DERUTCTime.superclass.constructor.call(this,t),this.hT="17",this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"utc"),this.hV=stohex(this.s)),this.hV},void 0!==t&&(void 0!==t.str?this.setString(t.str):"string"==typeof t&&t.match(/^[0-9]{12}Z$/)?this.setString(t):void 0!==t.hex?this.setStringHex(t.hex):void 0!==t.date&&this.setByDate(t.date))},It.lang.extend(Vt.asn1.DERUTCTime,Vt.asn1.DERAbstractTime),Vt.asn1.DERGeneralizedTime=function(t){Vt.asn1.DERGeneralizedTime.superclass.constructor.call(this,t),this.hT="18",this.withMillis=!1,this.setByDate=function(t){this.hTLV=null,this.isModified=!0,this.date=t,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)},this.getFreshValueHex=function(){return void 0===this.date&&void 0===this.s&&(this.date=new Date,this.s=this.formatDate(this.date,"gen",this.withMillis),this.hV=stohex(this.s)),this.hV},void 0!==t&&(void 0!==t.str?this.setString(t.str):"string"==typeof t&&t.match(/^[0-9]{14}Z$/)?this.setString(t):void 0!==t.hex?this.setStringHex(t.hex):void 0!==t.date&&this.setByDate(t.date),!0===t.millis&&(this.withMillis=!0))},It.lang.extend(Vt.asn1.DERGeneralizedTime,Vt.asn1.DERAbstractTime),Vt.asn1.DERSequence=function(t){Vt.asn1.DERSequence.superclass.constructor.call(this,t),this.hT="30",this.getFreshValueHex=function(){for(var t="",e=0;e<this.asn1Array.length;e++){t+=this.asn1Array[e].getEncodedHex()}return this.hV=t,this.hV}},It.lang.extend(Vt.asn1.DERSequence,Vt.asn1.DERAbstractStructured),Vt.asn1.DERSet=function(t){Vt.asn1.DERSet.superclass.constructor.call(this,t),this.hT="31",this.sortFlag=!0,this.getFreshValueHex=function(){for(var t=new Array,e=0;e<this.asn1Array.length;e++){var n=this.asn1Array[e];t.push(n.getEncodedHex())}return 1==this.sortFlag&&t.sort(),this.hV=t.join(""),this.hV},void 0!==t&&void 0!==t.sortflag&&0==t.sortflag&&(this.sortFlag=!1)},It.lang.extend(Vt.asn1.DERSet,Vt.asn1.DERAbstractStructured),Vt.asn1.DERTaggedObject=function(t){Vt.asn1.DERTaggedObject.superclass.constructor.call(this),this.hT="a0",this.hV="",this.isExplicit=!0,this.asn1Object=null,this.setASN1Object=function(t,e,n){this.hT=e,this.isExplicit=t,this.asn1Object=n,this.isExplicit?(this.hV=this.asn1Object.getEncodedHex(),this.hTLV=null,this.isModified=!0):(this.hV=null,this.hTLV=n.getEncodedHex(),this.hTLV=this.hTLV.replace(/^../,e),this.isModified=!1)},this.getFreshValueHex=function(){return this.hV},void 0!==t&&(void 0!==t.tag&&(this.hT=t.tag),void 0!==t.explicit&&(this.isExplicit=t.explicit),void 0!==t.obj&&(this.asn1Object=t.obj,this.setASN1Object(this.isExplicit,this.hT,this.asn1Object)))},It.lang.extend(Vt.asn1.DERTaggedObject,Vt.asn1.ASN1Object);var Bt,Yt=window&&window.__extends||function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Lt=function(t){function e(n){var r=t.call(this)||this;return n&&("string"==typeof n?r.parseKey(n):(e.hasPrivateKeyProperty(n)||e.hasPublicKeyProperty(n))&&r.parsePropertiesFrom(n)),r}return Yt(e,t),e.prototype.parseKey=function(t){try{var e=0,n=0,r=/^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/.test(t)?K(t):X.unarmor(t),i=at.decode(r);if(3===i.sub.length&&(i=i.sub[2].sub[0]),9===i.sub.length){e=i.sub[1].getHexStringValue(),this.n=mt(e,16),n=i.sub[2].getHexStringValue(),this.e=parseInt(n,16);var a=i.sub[3].getHexStringValue();this.d=mt(a,16);var s=i.sub[4].getHexStringValue();this.p=mt(s,16);var o=i.sub[5].getHexStringValue();this.q=mt(o,16);var u=i.sub[6].getHexStringValue();this.dmp1=mt(u,16);var c=i.sub[7].getHexStringValue();this.dmq1=mt(c,16);var l=i.sub[8].getHexStringValue();this.coeff=mt(l,16)}else{if(2!==i.sub.length)return!1;if(i.sub[0].sub){var h=i.sub[1].sub[0];e=h.sub[0].getHexStringValue(),this.n=mt(e,16),n=h.sub[1].getHexStringValue(),this.e=parseInt(n,16)}else e=i.sub[0].getHexStringValue(),this.n=mt(e,16),n=i.sub[1].getHexStringValue(),this.e=parseInt(n,16)}return!0}catch(t){return!1}},e.prototype.getPrivateBaseKey=function(){var t={array:[new Vt.asn1.DERInteger({int:0}),new Vt.asn1.DERInteger({bigint:this.n}),new Vt.asn1.DERInteger({int:this.e}),new Vt.asn1.DERInteger({bigint:this.d}),new Vt.asn1.DERInteger({bigint:this.p}),new Vt.asn1.DERInteger({bigint:this.q}),new Vt.asn1.DERInteger({bigint:this.dmp1}),new Vt.asn1.DERInteger({bigint:this.dmq1}),new Vt.asn1.DERInteger({bigint:this.coeff})]};return new Vt.asn1.DERSequence(t).getEncodedHex()},e.prototype.getPrivateBaseKeyB64=function(){return W(this.getPrivateBaseKey())},e.prototype.getPublicBaseKey=function(){var t=new Vt.asn1.DERSequence({array:[new Vt.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new Vt.asn1.DERNull]}),e=new Vt.asn1.DERSequence({array:[new Vt.asn1.DERInteger({bigint:this.n}),new Vt.asn1.DERInteger({int:this.e})]}),n=new Vt.asn1.DERBitString({hex:"00"+e.getEncodedHex()});return new Vt.asn1.DERSequence({array:[t,n]}).getEncodedHex()},e.prototype.getPublicBaseKeyB64=function(){return W(this.getPublicBaseKey())},e.wordwrap=function(t,e){if(!t)return t;var n="(.{1,"+(e=e||64)+"})( +|$\n?)|(.{1,"+e+"})";return t.match(RegExp(n,"g")).join("\n")},e.prototype.getPrivateKey=function(){var t="-----BEGIN RSA PRIVATE KEY-----\n";return t+=e.wordwrap(this.getPrivateBaseKeyB64())+"\n",t+="-----END RSA PRIVATE KEY-----"},e.prototype.getPublicKey=function(){var t="-----BEGIN PUBLIC KEY-----\n";return t+=e.wordwrap(this.getPublicBaseKeyB64())+"\n",t+="-----END PUBLIC KEY-----"},e.hasPublicKeyProperty=function(t){return(t=t||{}).hasOwnProperty("n")&&t.hasOwnProperty("e")},e.hasPrivateKeyProperty=function(t){return(t=t||{}).hasOwnProperty("n")&&t.hasOwnProperty("e")&&t.hasOwnProperty("d")&&t.hasOwnProperty("p")&&t.hasOwnProperty("q")&&t.hasOwnProperty("dmp1")&&t.hasOwnProperty("dmq1")&&t.hasOwnProperty("coeff")},e.prototype.parsePropertiesFrom=function(t){this.n=t.n,this.e=t.e,t.hasOwnProperty("d")&&(this.d=t.d,this.p=t.p,this.q=t.q,this.dmp1=t.dmp1,this.dmq1=t.dmq1,this.coeff=t.coeff)},e}(Rt),Ft=void 0!==B?null===(Bt=B.env)||void 0===Bt?void 0:Bt.npm_package_version:void 0,jt=function(){function t(t){void 0===t&&(t={}),t=t||{},this.default_key_size=t.default_key_size?parseInt(t.default_key_size,10):1024,this.default_public_exponent=t.default_public_exponent||"010001",this.log=t.log||!1,this.key=null}return t.prototype.setKey=function(t){this.log&&this.key&&console.warn("A key was already set, overriding existing."),this.key=new Lt(t)},t.prototype.setPrivateKey=function(t){this.setKey(t)},t.prototype.setPublicKey=function(t){this.setKey(t)},t.prototype.decrypt=function(t){try{return this.getKey().decrypt(Z(t))}catch(t){return!1}},t.prototype.encrypt=function(t){try{return W(this.getKey().encrypt(t))}catch(t){return!1}},t.prototype.sign=function(t,e,n){try{return W(this.getKey().sign(t,e,n))}catch(t){return!1}},t.prototype.verify=function(t,e,n){try{return this.getKey().verify(t,Z(e),n)}catch(t){return!1}},t.prototype.getKey=function(t){if(!this.key){if(this.key=new Lt,t&&"[object Function]"==={}.toString.call(t))return void this.key.generateAsync(this.default_key_size,this.default_public_exponent,t);this.key.generate(this.default_key_size,this.default_public_exponent)}return this.key},t.prototype.getPrivateKey=function(){return this.getKey().getPrivateKey()},t.prototype.getPrivateKeyB64=function(){return this.getKey().getPrivateBaseKeyB64()},t.prototype.getPublicKey=function(){return this.getKey().getPublicKey()},t.prototype.getPublicKeyB64=function(){return this.getKey().getPublicBaseKeyB64()},t.version=Ft,t}(),Ut=function(t,e){var n=e.xRatio,r=e.yRatio;return t.forEach((function(t){var i;t.baseData.left=t.baseData.left*n,t.baseData.width=t.baseData.width*n,t.baseData.top=t.baseData.top*r,t.baseData.height=t.baseData.height*r,t.baseData.angle=t.baseData.angle,(null===(i=null==t?void 0:t.children)||void 0===i?void 0:i.length)&&Ut(null==t?void 0:t.children,e)})),t},Ht=function(t,e,n){var r=t[n];return t.splice(n,1),t.splice(e,0,r),t},zt=function(e,n,r){var i=t.findIndex(e,(function(t){return t.cid==r})),a=t.findIndex(e,(function(t){return t.cid==n}));return Ht(e,a,i)},qt=function(t,e,n){for(var r=-1,i=0;i<t.length;i++){var a=t[i];if(a.children&&a.children.length)for(var s=0;s<a.children.length;s++){if(r=s,a.children[s].cid===n){switch(e){case"up":r>=1&&Ht(a.children,r-1,r);break;case"down":r<a.children.length-2&&Ht(a.children,r+1,r);break;case"top":0!==r&&Ht(a.children,0,r);break;case"bottom":var o=a.children.length-1;r!==o&&Ht(a.children,o,r)}break}}}return t},Gt=function(e,n,r){var i=!1,a=function(e){for(var s=0;s<e.length;s++){if(e[s].cid==n){i=e[s],r&&t.remove(e,(function(t){return t.cid==n}));break}if(e[s].children)a(e[s].children);else if(e[s].dynamicChildren){if(e[s].dynamicChildren instanceof Map){for(var o=Array.from(e[s].dynamicChildren),u=0;u<o.length;u++)if(o[u]instanceof Array){var c=o[u][1];a(c)}}else if(e[s].dynamicChildren instanceof Array)for(o=e[s].dynamicChildren,u=0;u<o.length;u++)if(o[u]instanceof Array){c=o[u][1];a(c)}}else e[s].stateChildren&&a(e[s].stateChildren)}};return a(e),i||!1},Wt=function(t,e){var n=null,r=function(t,i){for(var a=0;a<t.length;a++)if(t[a].cid==e)n=i;else if(t[a].children)r(t[a].children,t[a]);else if(t[a].dynamicChildren)if(t[a].dynamicChildren instanceof Map){for(var s=Array.from(t[a].dynamicChildren),o=0;o<s.length;o++)if(s[o]instanceof Array){var u=s[o][1];r(u,t[a])}}else t[a].dynamicChildren;else t[a].stateChildren&&r(t[a].stateChildren,t[a])};return r(t,null),n||!1},Zt=function(t,e,n){for(var r,i=function(i){var a=t[i];if(a.cid===e)return r=a,n&&t.splice(i,1),{value:r};if(a.children&&a.children.length){for(var s=0;s<a.children.length;s++)if(a.children[s].cid===e)return r=a.children[s],n&&a.children.splice(s,1),{value:r}}else if(a.stateChildren&&a.stateChildren.length){for(s=0;s<a.stateChildren.length;s++)if(a.stateChildren[s].cid===e)return r=a.stateChildren[s],n&&a.stateChildren.splice(s,1),{value:r}}else if(a.dynamicChildren){var o=void 0;if(a.dynamicChildren instanceof Map?o=a.dynamicChildren.get(a.activeDynamic):a.dynamicChildren instanceof Array&&(o=a.dynamicChildren.find((function(t){return t[0]==a.activeDynamic}))[1]),o)for(s=0;s<o.length;s++)if(o[s].cid===e)return r=o[s],n&&o.splice(s,1),{value:r}}},a=0;a<t.length;a++){var s=i(a);if("object"==typeof s)return s.value}return!!r},$t=function(t,e,n){var r=Zt(t,e),i=Zt(t,n);return r.pid&&i.pid||!r.pid&&!i.pid},Kt=function(t,e){var n=function(t){for(var r,i,a,s=0;s<t.length;s++){var o=t[s];(null===(a=null===(i=null===(r=o.tmpData)||void 0===r?void 0:r.source)||void 0===i?void 0:i.converse)||void 0===a?void 0:a.data.length)&&o.tmpData.source.converse.data.forEach((function(t){t.code=t.code.replace(/>/g,">").replace(/</g,"<")})),e(o),o&&o.children&&o.children.length?n(o.children):o&&o.dynamicChildren?Array.from(o.dynamicChildren).forEach((function(t,e){n(t[1])})):o.stateChildren&&n(o.stateChildren)}};n(t)},Xt=function(t){var e=function(t,n){for(var r=function(r){var i=t[r],a=ce();n?i.pid=n:i.drag||(i.baseData.left=0,i.baseData.top=0),i.cid=a,i&&i.children&&i.children.length?e(i.children,a):i&&i.dynamicChildren&&Array.from(i.dynamicChildren).forEach((function(t,n){e(t[1],a)}))},i=0;i<t.length;i++)r(i)};e(t)},Qt=function(e,n,r,i){try{if(!e||!e.hasOwnProperty(n)&&!e.hasOwnProperty(i))throw"The property you want to modify is not found. Please check whether the attribute ".concat(n," is entered correctly!");if(i){t.cloneDeep(e[i][n]);e[i][n]=r}else e[n]=r}catch(t){console.error(t)}},Jt=function(t,e){e.forEach((function(e){e.baseData.left=e.baseData.left-t.left,e.baseData.top=e.baseData.top-t.top}))},te=function(e){var n=t.cloneDeep(e),r=[];return n.children&&n.children.length&&n.children.forEach((function(t){ee(t,n.baseData),r.push(t)})),r},ee=function(t,e){t.baseData.left=t.baseData.left+e.left,t.baseData.top=t.baseData.top+e.top},ne=function(t,e,n){var r={left:0,top:0};return n&&0!==n?(r.left=t.left-e.left,r.top=t.top-e.top):(r.left=t.left+e.left,r.top=t.top+e.top),r},re=function(e,n){var r=t.cloneDeep(e),i=[],a=function(t,e){var n=Gt(t,e);i.push(n.baseData),n.pid&&a(t,n.pid)};a(r,n);var s={left:0,top:0};return i.map((function(t){t&&(s.left+=t.left,s.top+=t.top)})),s},ie=function(e,n){var r=t.cloneDeep(e);return r.length>1&&r.sort((function(t,e){return t.baseData[n]-e.baseData[n]})),r},ae=function(t,e){var n=[];return t.map((function(t){var r=e.find((function(e){return e.cid===t}));r&&n.push(r)})),se(n)},se=function(t){if(t.length>0){var e={left:0,top:0,width:0,height:0},n=ie(t,"left"),r=ie(t,"top"),i=n[0].baseData,a=n[n.length-1].baseData,s=r[0].baseData,o=r[r.length-1].baseData,u=Math.max.apply(Math,r.map((function(t){return 1*t.baseData.top+1*t.baseData.height}))),c=Math.max.apply(Math,r.map((function(t){return 1*t.baseData.left+1*t.baseData.width})));return e.left=i.left,e.width=Math.max(1*a.left+1*a.width,c)-1*i.left,e.top=s.top,e.height=Math.max(1*o.top+1*o.height,u)-1*s.top,e}return{left:0,top:0,width:0,height:0}},oe=function(e,n,r){var i=e.children,a=t.cloneDeep(n),s=t.cloneDeep(se(i)),o=a.left,u=a.top;a.width,a.height;var c=s.left,l=s.top,h=s.width,f=s.height,d={left:o+c,top:u+l,width:h,height:f,angle:n.angle?n.angle:0};return i.forEach((function(e){var n=t.cloneDeep(e.baseData);e.baseData.left<0?n.left=0:n.left=n.left-c,e.baseData.top<0?n.top=0:n.top=n.top-l,e.baseData=n})),e.baseData=d,e.children=i,d},ue=function(t,e){for(var n=0;n<t.length;n++){var r=t[n];t[n].index=n,r.children&&r.children.length?ue(r.children):e&&e(r)}},ce=function(){return(Math.random().toString().substr(3,10)+Date.now()).toString()},le=function(t,e,n){var r,i;void 0===n&&(n=" copy");var a=new RegExp("".concat(n,"( \\d+)?$")).exec(t);a?(r=a[1]?parseInt(a[1]):0,i=t.slice(0,a.index)):(r=0,i=t);var s=new RegExp("^".concat(i).concat(n,"( [1-9][0-9]*)?$")),o=[];e.forEach((function(t){if(a=s.exec(t)){var e=a[1]?parseInt(a[1]):1;o.push(e)}})),o.sort((function(t,e){return t-e})),r++;for(var u=0,c=o.length;u<c;u++)if(o[u]===r)r++;else if(o[u]>r)break;return i+n+" "+r},he=function(t,e){try{var n=e||window.location.href;if(-1!=n.indexOf("?")){var r={};return n.slice(n.indexOf("?")+1).split("&").forEach((function(t){var e=t.split("=");r[e[0]]=e[1]})),t?r[t]?r[t]:null:r}return console.log("没有参数"),null}catch(t){console.error(t)}};function fe(t){for(var e=t.types,n=t.element,r=t.actions,i=t.events,a=function(t){var a=e[t],s=n.tmpData.actions[t];if(s&&s.use){var o=s[s.behave];if(!o)return"continue";"vars"===s.behave?o.map((function(t){t.type=a,t.id=n.cid,t.mapField&&r.push(t)})):o.length>0&&o.forEach((function(t,e){"toggle"===s.behave&&""!==t.value&&t.value.length?i.push({id:n.cid,type:s.behave,children:t.value.map((function(t){return{cid:t.cid,visible:t.visible}})),eventType:a,index:e}):"link"===s.behave&&""!==t.value?i.push({id:n.cid,type:s.behave,link:t.value,eventType:a,index:e}):"page"===s.behave&&""!==t.value?i.push({id:n.cid,type:s.behave,page:t.value,eventType:a,index:e}):"dynamic"===s.behave&&""!==t.value&&t.value.length>0?i.push({id:n.cid,type:s.behave,dynamic:t.value,eventType:a,index:e}):i.push(void 0)}))}},s=0;s<e.length;s++)a(s)}function de(t){var e=new jt;return e.setPublicKey("MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEApWni7uLYVV8iyDPTR6Zs\naj+2BHCn4xTzFeVHADzTdtBiFH9i4fKeDK0IfbPV/9TGeRYNfl0qSfdLtU+1ZIzm\npqHppadukmk5+NbBG4Xm/lAZgVt3dUIrSyamxVjwnymN7PLdxaSOS/mgU6SDGMhN\nTM76AXKZZXWMK12UCXvKkh+TkGufcXzLe7LtrvHPLOgcnEED2CkWATuE9g8K9j4T\neOMxhJcHBUmXLgU6Chufa4nBed2899E7jxJa14+J1IDa2ahrDFLZN7H//ZsvwnXq\nxVbxm0k5jyWqfCpg13V7zD3DxNWlo3MIh2fPtIEUDVhugqPd0jPmqquqdBNTnu2I\nGQIDAQAB"),e.encrypt(t)}var pe={updataArea:function(t,e){t.currentArea=e},selectdArea:function(t,e){var n=ae(e,t.list);t.currentArea=n},updataAngle:function(t,e){var n=e.id,r=e.angle,i=Zt(t.list,n);"boolean"!=typeof i&&(i.baseData.angle=r)},updataBaseData:function(t,e){var n=e.data,r=e.ratio,i=Gt(t.list,n.cid),a=e.oldData;if("object"!=typeof i||i.pid){if("object"==typeof i&&i.pid){var s=Zt(t.list,i.pid);"object"==typeof s&&(i.baseData.left<0&&(i.baseData.left=0),i.baseData.top<0&&(i.baseData.top=0),Object.assign(i.baseData,n.baseData),oe(s,s.baseData),t.groupFlag=!t.groupFlag)}}else if(Object.assign(i.baseData,n.baseData),r&&i.children&&i.children.length>0){var o=i.baseData.width/a.width,u=i.baseData.height/a.height;Ut(i.children,{xRatio:o,yRatio:u})}},multipleUpdataBaseData:function(e,n){if(n.ratio)for(var r=n.newData,i=n.oldData,a=r.width/i.width,s=r.height/i.height,o=e.cache.length;o--;)e.cache[o].baseData.left=e.cache[o].baseData.left*a,e.cache[o].baseData.width=e.cache[o].baseData.width*a,e.cache[o].baseData.top=e.cache[o].baseData.top*s,e.cache[o].baseData.height=e.cache[o].baseData.height*s;else for(o=e.cache.length;o--;){var u=t.cloneDeep(e.cache[o].baseData);u.left=u.left+n.deltaX,u.top=u.top+n.deltaY,e.cache[o].comPanel?e.cache[o].comPanel.setAttrData(Object.assign(u,n.baseData)):e.cache[o].baseData=u}},multipleUpdata:function(t,e){var n=e.ids,r=e.data,i=Zt(t.list,n);i&&Object.assign(i.baseData,r)},multipleMove:function(t,e){},move:function(t,e){var n=t.selectd,r=e.type,i=e.speed?e.speed:1;if(0!==n.length){var a=t.list.filter((function(t){return n.includes(t.cid)}));0==a.length&&(a=[Zt(t.list,n[0])]);for(var s=0;s<a.length;s++){var o=a[s];if(o.pid&&t.selectd.length>1)return void console.warn("Only one component can be moved within a group");if("up"===r?o.baseData.top=o.baseData.top-i:"down"===r?o.baseData.top+=i:"left"===r?o.baseData.left-=i:"right"===r&&(o.baseData.left+=i),"object"==typeof o&&o.pid){var u=Zt(t.list,o.pid);"object"==typeof u&&(oe(u,u.baseData),t.groupFlag=!t.groupFlag)}}}else console.warn("Warning! please select the component to move.")},updataGroupBaseData:function(e,n){var r=Zt(e.list,n.pid),i=t.cloneDeep(r);Zt(r.children,n.cid),oe(r,i.baseData)},editGroupBaseData:function(t,e){var n=Zt(t.list,e);n.children.forEach((function(t){ee(t,n.baseData)}))},syncBaseData:function(e,n){var r=n.cid,i=n.data,a=n.isContainer,s=t.cloneDeep(e.list);if(void 0!==a){var o=function(t){for(var e=0;e<t.length;e++)r===t[e].cid?t[e].baseData=Object.assign({},t[e].baseData,i):t[e].hasOwnProperty("children")&&o(t[e].children)};s.length&&o(s)}else{var u=Gt(s,r);u&&(u.baseData=Object.assign({},u.baseData,i))}e.list=s},updataItemData:function(t,e){var n=e.cid,r=e.propsName,i=e.propsValue,a=Zt(t.list,n);a&&(a[r]=i)},updataOpacity:function(t,e){var n=e.cid,r=e.propsValue,i=Zt(t.list,n);"boolean"!=typeof i&&i&&(i.baseData.opacity=r)}},me={delListItem:function(e,n){var r=t.cloneDeep(e.list);"string"==typeof n?Gt(r,n,!0):n.forEach((function(t){Gt(r,t,!0)})),e.list=r},cloneItem:function(e){if(e.selectd.length>0){e.cloneCache=[];for(var n=0;n<e.selectd.length;n++){var r=Zt(e.list,e.selectd[n]);if("boolean"!=typeof r){var i=t.cloneDeep(r);i.cid=ce(),i.pid="",e.cloneCache.push(i)}}}},shearItem:function(e,n){if(e.selectd.length>0){e.cloneCache=[];for(var r=0;r<e.selectd.length;r++){var i=Zt(e.list,e.selectd[r],!0);if("boolean"!=typeof i){var a=t.cloneDeep(i);a.cid=ce(),e.cloneCache.push(a)}}e.selectd=[]}},pasteItem:function(e){var n,r=t.cloneDeep(e.cloneCache);if(r.length>0){var i=[];r.forEach((function(t){t.cid=ce();var n=le(t.name,e.list.map((function(t){return t.name})));if(t.name=n,t.children&&t.children.length>0&&t.children.forEach((function(e){e.pid=t.cid,e.cid=ce()})),"dynamicComponent"==t.componentType){var r=void 0;t.dynamicChildren instanceof Map?r=t.dynamicChildren.get(t.activeDynamic):t.dynamicChildren instanceof Array&&(r=t.dynamicChildren.find((function(t){return t[0]==t.activeDynamic}))[1]),r.forEach((function(e){e.pid=t.cid,e.cid=ce()}))}i.push(t.cid)})),e.selectd.length>0?ae(e.selectd,e.list):se(r),r.forEach((function(t){t.baseData.top=t.baseData.top+20,t.baseData.left=t.baseData.left+20})),(n=e.list).unshift.apply(n,t.cloneDeep(r)),e.selectd=i}},updataShow:function(t,e){var n=Gt(t.list,e);if("boolean"!=typeof n){var r=!n.isShow;Qt(n,"isShow",r,"")}},changeShow:function(t,e){var n=e.cid,r=e.flag,i=Gt(t.list,n);i&&Qt(i,"isShow",r,"")},updataLock:function(t,e){var n=Gt(t.list,e);if("boolean"!=typeof n){var r=!n.isLock;Qt(n,"isLock",r,"")}},breakUp:function(t,e){var n;try{if(!e)throw"Please pass in the component CID correctly!";var r=t.list.findIndex((function(t){return t.cid===e})),i=t.list[r],a=te(i);a.map((function(t){return t.pid=""})),t.list.splice(r,1),(n=t.list).push.apply(n,a)}catch(t){console.error(t)}},editGroup:function(t,e){var n,r=e.groupId;e.status;try{if(!r)throw"Please pass in the component CID correctly!";var i=t.list.findIndex((function(t){return t.cid===r})),a=t.list[i],s=te(a);s.map((function(t){return t.pid=""})),t.list.splice(i,1),(n=t.list).push.apply(n,s)}catch(t){console.error(t)}},combination:function(e){t.cloneDeep(e.list);var n,r,i=[],a=[],s=ce(),o=Zt(e.list,e.selectd[0]);o.pid?console.info("Sorry, only level 2 is supported group"):o.children&&1===e.selectd.length?console.info("Sorry, only level 2 is supported group"):(e.selectd.forEach((function(t){var n=e.list.findIndex((function(e){return e.cid===t}));if(n>-1){i.push(n);var r=e.list.splice(n,1)[0];r.pid=s,a.push(r)}})),n=i.sort((function(t,e){return t-e}))[0],r=1===a.length?t.cloneDeep(a[0].baseData):e.currentArea,Object.assign(r,{angle:0,opacity:100,rotate:0,rotateY:0}),Jt(r,a),e.list.splice(n,0,{cid:s,pid:"",isShow:!0,isLock:!1,editer:!1,baseData:r,z:0,toggle:!0,name:"群组",type:"folder",children:a}),e.selectd=[s])},moveUp:function(t,e){try{var n=t.list.findIndex((function(t){return t.cid===e}));n>=1?Ht(t.list,n-1,n):qt(t.list,"up",e)}catch(t){console.error(t)}},moveDown:function(t,e){try{var n=t.list.findIndex((function(t){return t.cid===e}));n>-1&&n<=t.list.length-2?Ht(t.list,n+1,n):qt(t.list,"down",e)}catch(t){console.error(t)}},moveTop:function(t,e){try{var n=t.list.findIndex((function(t){return t.cid===e}));n>-1&&0!==n?Ht(t.list,0,n):qt(t.list,"top",e)}catch(t){console.error(t)}},moveBottom:function(t,e){try{var n=t.list.findIndex((function(t){return t.cid===e})),r=t.list.length-1;n>-1&&n!==r?Ht(t.list,r,n):qt(t.list,"bottom",e)}catch(t){console.error(t)}}},ge=function(t,n){void 0===t&&(t="");var r=e.create({baseURL:t,timeout:3e4,headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"}});return r.interceptors.request.use((function(t){return sessionStorage.getItem("anov-go-token")&&"null"!=sessionStorage.getItem("anov-go-token")&&(t.headers["X-ANOV-ACCESS-TOKEN"]=sessionStorage.getItem("anov-go-token")),sessionStorage.getItem("unify-access-token")&&"null"!=sessionStorage.getItem("unify-access-token")&&(t.headers["X-UNIFY-ACCESS-TOKEN"]=sessionStorage.getItem("unify-access-token")),"post"===t.method?(t.headers["Content-Type"]="application/json; charset=UTF-8",t):"get"===t.method?t:"put"===t.method?(t.headers["Content-Type"]="application/json; charset=UTF-8",t):"delete"===t.method?t:void 0}),(function(t){return Promise.reject(t)})),r.interceptors.response.use((function(t){var e;return 200===t.status||2e4==t.data.code?(n&&n(t),t.data):(n&&n(t),null==t||t.status,null===(e=null==t?void 0:t.data)||void 0===e||e.code,Promise.reject(t.data))}),(function(t){return n&&n(null==t?void 0:t.response),Promise.reject(t.response)})),r},ve=ge();function ye(e,n,r,s){return i(this,void 0,void 0,(function(){var i,o,u,c;return a(this,(function(a){switch(a.label){case 0:i=e,o=t.cloneDeep(r),u=n?n.toLowerCase():"get",a.label=1;case 1:return a.trys.push([1,3,,4]),[4,ve({method:we[u],headers:s,url:i,params:o,timeout:3e4}).then((function(t){return{code:2e4,data:t.data}}))];case 2:return[2,a.sent()];case 3:return c=a.sent(),console.error("error:"+c.message),[3,4];case 4:return[2]}}))}))}function be(t){return i(this,void 0,void 0,(function(){var e,n,i;return a(this,(function(a){switch(a.label){case 0:e=window.anUrl?window.anUrl:"",n=e+(window.agentPath?window.agentPath:"/ds/v1/api-proxy/v1/query"),r({},t),a.label=1;case 1:return a.trys.push([1,3,,4]),"{}"==JSON.stringify(null==t?void 0:t.params)&&(null==t||delete t.params),"{}"==JSON.stringify(null==t?void 0:t.headers)&&(null==t||delete t.headers),[4,ve({url:n,headers:{"Content-Type":"application/json;charset=UTF-8"},method:"post",data:{body:null==t?void 0:t.params,headers:null==t?void 0:t.headers,method:null==t?void 0:t.method,url:null==t?void 0:t.url}})];case 2:return[2,a.sent()];case 3:return i=a.sent(),console.error("error:"+i.message),[3,4];case 4:return[2]}}))}))}var _e,we,De=function(e,n,r){var i=e.tmpData.source,a=r?r.value.api.agency:i.api.agency,s=i.type;if("static"!==s){var o=r?r.value.api:i[s],u=o.url,c=o.headers,l=o.params,h=o.requestType,f={};u.split("?")[0];var d=function(t){var e=new Object;if(-1!==t.indexOf("?"))for(var n=t.split("?")[1].split("&"),r=0;r<n.length;r++)e[n[r].split("=")[0]]=unescape(n[r].split("=")[1]);return e}(u);c.use&&(f=JSON.parse(c.value));var p={};return l&&t.isString(l)?t.assign(p,d,JSON.parse(l)):t.assign(p,d,l),Object.keys(p).forEach((function(e){var r=p[e],i=n.filter((function(t){return t.mapField==r.toString().replace("@","")}))[0];i&&(p[e]=i.value,u=t.replace(u,d[e],i.value))})),{url:u,requestType:h,params:l,headers:f,agency:a}}return null},Te=function(t,e,n){void 0===e&&(e=[]),e||(e=[]);var r=De(t,e);r&&n(r)},Se=function(t,e,n,r,i){t.then((function(t){!t||2e4!=t.code&&200!=t.code?Ee(e,xe({error:!0,message:t.msg?t.msg:"data error"},e,n,r),i):n?Ee(e,xe(t.data,e,n,r),i):Ee(e,xe(t.data,e,n,r),i,t.data)})).catch((function(t){Ee(e,xe({error:!0,message:t.msg?t.msg:"data error"},e,n,r),i)}))},xe=function(t,e,n,r){void 0===n&&(n=!0);try{var i=e.tmpData.source,a=i.converse,s=i.mapFields;return a&&a.use&&n?h(t,a,s,r):new Promise((function(e,n){e(t)}))}catch(t){console.error(t)}},Ee=function(t,e,n,r){e.then((function(e){r?Me(t,e,n,r):Me(t,e,n)}))},Me=function(t,e,n,r){var i=t.tmpData.source.type;r?("static"==i&&(t.tmpData.source[i].originData=r),"indicatorCQ"===i?t.tmpData.source.indicator.data=e:t.tmpData.source[i].data=e):"indicatorCQ"===i?t.tmpData.source.indicator.data=e:t.tmpData.source[i].data=e,t.source=e,n({cid:t.cid,data:e})},Oe=function(t,e,n,r,i){void 0===n&&(n=!0);try{var a=t.tmpData.source.type,s=void 0;s=r||function(){};var o=null;"globalData"==a&&(o=i.find((function(e){return t.tmpData.source[a].id==e.key}))),function(t,e,n,r,i,a){void 0===r&&(r=!0),"globalData"==t&&(t=a.value.type);var s=a?a.value[t]:e.tmpData.source[t];if("api"==t)Pe(e,n,r,i,a);else if("static"==t){var o=void 0,u=void 0;s.originData&&Object.keys(s.originData).length?u=o=s.originData:o=s.data,Ee(e,xe(o,e,r,n),i,u)}else if("datasource"==t)Ae(s.dsName,{dsType:"1",sql:de(s.inputSql)},e,n,i,r);else if("staticFile"==t)Ae(s.dsName,{dsType:s.dsType,sql:""},e,n,i,r);else if("indicator"==t)Ce(s.zbId,{},e,n,i,r);else if("indicatorCQ"==t){var c=a?a.value.indicator:e.tmpData.source.indicator;ke(c.zbName,c.params,e,n,i,r)}else i({cid:e.cid,data:"",message:"发生错误"})}(a,t,e,n,s,o)}catch(t){r&&r(t),console.log("error:"+t)}},ke=function(t,e,n,r,s,o){return i(void 0,void 0,void 0,(function(){var i,u,c,l,h,f,d,p,m;return a(this,(function(a){switch(a.label){case 0:return i=window.BaseUrl,u=e.dateType,c=void 0===u?"":u,l=e.endPeriod,h=void 0===l?"":l,f=e.metricsName,d=void 0===f?t:f,p=e.startPeriod,m=void 0===p?"":p,[4,ve({method:"GET",url:"".concat(i,"ds/v1/metrics/v1/data-alarm?dateType=").concat(c,"&endPeriod=").concat(h,"&metricsName=").concat(d,"&startPeriod=").concat(m),timeout:3e4}).then((function(t){if(2e4==t.code){var e=t.data;e?Ee(n,xe(e,n,o,r),s):(Ee(n,xe({data:e,message:t.msg?t.msg:"data error"},n,o,r),s),s({data:e,message:"发生错误"}))}else s({data:"",message:"发生错误"}),console.error("发生错误"),Ee(n,xe({error:!0,message:t.msg?t.msg:"data error"},n,o,r),s)})).catch((function(t){s(t)}))];case 1:return a.sent(),[2]}}))}))},Ce=function(t,e,n,r,s,o){return i(void 0,void 0,void 0,(function(){var i,u,c,l,h;return a(this,(function(a){switch(a.label){case 0:return i=window.BaseUrl?window.BaseUrl.replace("/management",""):"",u=he("YZH_EXCHANGE_TOKEN")?he("YZH_EXCHANGE_TOKEN"):null===(h=window.yzhAuth)||void 0===h?void 0:h.getToken(),l=window.gdPassid,window.BASE_RELEASE?(console.log("发布:",u),c="".concat(i,"/ds/data-engine/v1/").concat(t,"/zb-query?token=").concat(u,"&passid=").concat(l,"&preview=1")):(console.log("编辑",u),c="".concat(i,"/ds/data-engine/v1/").concat(t,"/zb-query?token=").concat(u,"&passid=").concat(l)),[4,ve({method:"POST",url:c,data:e,timeout:3e4}).then((function(t){if(2e4==t.code){var e=JSON.parse(t.data);e?Ee(n,xe(e,n,o,r),s):(Ee(n,xe({error:!0,message:t.msg?t.msg:"data error"},n,o,r),s),s({data:e,message:"发生错误"}))}else s({data:"",message:"发生错误"}),console.error("发生错误"),Ee(n,xe({error:!0,message:t.msg?t.msg:"data error"},n,o,r),s)})).catch((function(t){s(t)}))];case 1:return a.sent(),[2]}}))}))},Ae=function(t,e,n,r,s,o){return i(void 0,void 0,void 0,(function(){var i;return a(this,(function(a){switch(a.label){case 0:return i=window.BaseUrl?window.BaseUrl.replace("/management",""):"",[4,ve({method:"get",url:"".concat(i,"/ds/v1/data-proxy/v1/").concat(t,"/query"),params:e,timeout:3e4}).then((function(t){if(2e4==t.code){var e=JSON.parse(t.data);e?Ee(n,xe(e,n,o,r),s):(Ee(n,xe({error:!0,message:t.msg?t.msg:"data error"},n,o,r),s),s({data:e,message:"发生错误"}))}else s({data:"",message:"发生错误"}),console.error("发生错误"),Ee(n,xe({error:!0,message:t.msg?t.msg:"data error"},n,o,r),s)})).catch((function(t){s(t)}))];case 1:return a.sent(),[2]}}))}))},Pe=function(t,e,n,r,i){void 0===n&&(n=!0);try{var a=De(t,e,i),s=a.url,o=a.requestType,u=a.params,c=a.headers,l=a.agency,h=s.match(/(@)[\w]*/gm),f=s;h&&h.length&&h.forEach((function(t){var n=e.filter((function(e){return"@"+e.mapField==t})),r="";n&&n.length&&n.forEach((function(t){""!=t.value&&(r=t.value)})),s=f.replaceAll(t,r)})),Se(l?be({method:o,url:s,params:u,headers:c}):ye(s,o,u,c),t,n,e,r)}catch(t){console.log("error:"+t)}},Re=function(t,e,n,r,i,a){var s,o;void 0===a&&(a=!0),t&&"api"==(null===(o=null===(s=null==t?void 0:t.tmpData)||void 0===s?void 0:s.source)||void 0===o?void 0:o.type)&&Te(t,e,(function(s){if(o=s.url,!new RegExp("^((https|http|ftp|rtsp|mms)?://)?(([0-9a-z_!~*'().&=+$%-]+: )?[0-9a-z_!~*'().&=+$%-]+@)?(([0-9]{1,3}.){3}[0-9]{1,3}|([0-9a-z_!~*'()-]+.)*([0-9a-z][0-9a-z-]{0,61})?[0-9a-z].[a-z]{2,6})(:[0-9]{1,4})?((/?)|(/[0-9a-z_!~*'().;?:@&=+$,%#-]+)+/?)$").test(o))return n({cid:t.cid,data:{error:!0,message:s.url+"不是一个正确的地址,请正确填写!"}}),!1;var o,u=s.url,c=s.requestType,l=s.params,f=s.headers;s.agency?be({method:c,url:u,params:l,headers:f}).then((function(r){r&&2e4==r.code?(!function(t,e,n){try{e.then((function(e){n(e?{cid:t.cid,data:e}:{cid:t.cid,data:"数据发生错误!"})}))}catch(t){console.error(t)}}(t,xe(r.data,t,a,e),n),i&&"function"==typeof i&&i(1)):(i&&"function"==typeof i&&i(0),n({cid:t.cid,data:{error:!0,message:r.msg?r.msg:"error"}}))})).catch((function(e){i&&"function"==typeof i&&i(-1),n({cid:t.cid,data:{error:!0,message:e}})})):ye(u,c,l,f).then((function(e){var i=[];if(r){var s=t.tmpData.source,o=s.converse,u=s.mapFields;o&&o.use&&a?h(e.data,o,u).then((function(e){i=e,n({cid:t.cid,data:i})})):(i=e.data,n({cid:t.cid,data:i}))}else i=e.data,n({cid:t.cid,data:i})})).catch((function(e){n({cid:t.cid,data:{error:!0,message:e}})}))}))};!function(t){t.json="application/json;charset=UTF-8",t.form="application/x-www-form-urlencoded; charset=UTF-8"}(_e||(_e={})),function(t){t.get="GET",t.post="POST",t.put="PUT",t.patch="PATCH",t.delete="DELETE"}(we||(we={}));var Ne=Object.freeze({__proto__:null,Http:function(t,e){return ge(t,e)},axios:e,getDataForEvaluator:h,getData:ye,agentData:be,getComponentData:Te,autoUpdateComData:function(e,n,r){var i,a,s,o,u,c=null===(i=null==e?void 0:e.tmpData)||void 0===i?void 0:i.source,l=null===(s=null===(a=c[null==c?void 0:c.type])||void 0===a?void 0:a.autoUpdate)||void 0===s?void 0:s.open,h=null===(u=null===(o=c[null==c?void 0:c.type])||void 0===o?void 0:o.autoUpdate)||void 0===u?void 0:u.time;l&&t.isNumber(h)&&h>0&&setInterval((function(){Oe(e,n,!0,r)}),1e3*h)},updateComData:Oe,refreshData:Re,get ContentType(){return _e},get HttpMethod(){return we}}),Ie=function(e,n){try{var r={},i=[],a=[],o=t.cloneDeep(e);return Kt(o,(function(t){var e,n;(null===(n=null===(e=null==t?void 0:t.tmpData)||void 0===e?void 0:e.actions)||void 0===n?void 0:n.length)&&fe({types:t.tmpData.actions.map((function(t){return t.eventType})),element:t,actions:i,events:a})})),Kt(o,(function(t){var e,n=null===(e=null==t?void 0:t.tmpData)||void 0===e?void 0:e.source;Ve(n,i,t,r)})),n&&n.length&&(i=s(s([],i,!0),n,!0)),{shareVariableTree:r,globalVars:i.filter((function(t){return t})),globalEvents:a.filter((function(t){return t}))}}catch(t){return console.error("error",t),{}}},Ve=function(t,e,n,r){if(t){var i=null==t?void 0:t.type,a=t[i],s=null==t?void 0:t.converse;if(s&&s.use&&s.data.length&&s.data.map((function(t){var e;(null==t?void 0:t.dependVars)&&(null===(e=null==t?void 0:t.dependVars)||void 0===e?void 0:e.length)&&t.dependVars.map((function(t){Be(r,t,n.cid)}))})),"api"===i){var o=a.url.match(/(@)[\w]*/gm);if(o)for(var u=o.map((function(t){return t.replace("@","")})),c=function(t){var i=u[t];if(!i||!e||e.findIndex((function(t){return t.mapField===i}))<0)return"continue";Be(r,i,n.cid)},l=0;l<u.length;l++)c(l)}}},Be=function(e,n,r){if(e[n]&&t.isArray(e[n])){e[n].push(r);var i=e[n];e[n]=t.uniq(i)}else e[n]=[],e[n].push(r)};function Ye(e){var n=[],r=[];Kt(t.cloneDeep(e),(function(t){var e,i;(null===(i=null===(e=null==t?void 0:t.tmpData)||void 0===e?void 0:e.actions)||void 0===i?void 0:i.length)&&fe({types:t.tmpData.actions.map((function(t){return t.eventType})),element:t,actions:n,events:r})}));var i=r.filter((function(t){return t}));return{actions:n,events:i}}var Le={addGlobalSource:function(t,e){var n=e.name,r=e.value;t.globalSource.push({key:ce(),name:n,value:r})},editGlobalSource:function(e,n){var r=this,i=n.key,a=n.value,s=e.globalSource.find((function(t){return t.key==i}));s&&(s.name=n.name,s.value=a,Kt(t.cloneDeep(e.list),(function(t){var n,a,s;if("globalData"==(null===(a=null===(n=null==t?void 0:t.tmpData)||void 0===n?void 0:n.source)||void 0===a?void 0:a.type)){var o=null===(s=null==t?void 0:t.tmpData)||void 0===s?void 0:s.source.globalData;(null==o?void 0:o.id)==i&&Oe(t,e.globalVars,!0,(function(t){r.commit("GoCom/updataSourceForComponent",t)}),e.globalSource)}})))},delGlobalSource:function(t,e){try{var n=t.globalSource.findIndex((function(t){return t.key===e}));-1!==n&&t.globalSource.splice(n,1)}catch(t){console.error("删除错误",t)}},setSyncFlag:function(t,e){t.syncFlag=e},goUpShareVar:function(t,e){console.log(e,"reload"),t.shareVariable[e.key]=r({},e)},addGoVar:function(t,e){try{var n=e.mapField,r=(e.mold,t.globalConstant.filter((function(t){return t.mapField==n})).length);if(!n||r)throw new Error("添加失败!变量已经存在!");t.globalConstant.push(e),t.globalVars=Ie(t.list,t.globalConstant).globalVars}catch(t){console.warn(t)}},delGoVar:function(e,n){try{var r=n.mapField,i=(n.mold,e.globalConstant.filter((function(t){return t.mapField==r})).length);if(!r||!i)throw new Error("删除失败!");var a=t.cloneDeep(e.globalConstant);t.remove(a,(function(t){return t.mapField==r})),e.globalConstant=a,e.globalVars=Ie(e.list,e.globalConstant).globalVars}catch(t){console.warn(t)}},editGoVar:function(e,n){try{var r=n.mapField;n.mold;if(!e.globalConstant.find((function(t){return t.mapField==r})))throw new Error("修改失败!");var i=t.cloneDeep(e.globalConstant);i.forEach((function(t){t.mapField==r&&Object.assign(t,n)})),e.globalConstant=i,e.globalVars=Ie(e.list,e.globalConstant).globalVars}catch(t){console.warn(t)}},goEditVar:function(t,e){var n=e.key,r=e.value;t.globalVars.forEach((function(t){t.edit=!1})),t.globalVars.forEach((function(t){t.mapField==n&&(t.edit=!0,t.value=r)}))},goDelShareVar:function(t,e){delete t.shareVariable[e]},signal:function(t,e){},goSynchroDataAll:function(e,n){e.list=t.cloneDeep(n)},goSynchroData:function(e,n){if(e){var r=n.cid,i=n.attr,a=n.value,o=n.attrModel,u=Zt(e.list,r);if("boolean"!=typeof u){if(u&&Qt(u,i,a,o),"actions"===i.toLowerCase()){var c=e.list,l=t.uniqWith(t.concat(Ye(c).actions,Ye(e.caseList).actions),t.isEqual),h=t.uniqWith(t.concat(Ye(c).events,Ye(e.caseList).events),t.isEqual);e.globalVars=s(s([],l,!0),e.globalConstant,!0),e.globalEvents=h,e.pages[e.pageIndex]&&(e.pages[e.pageIndex].globalVars=l),e.pages[e.pageIndex]&&(e.pages[e.pageIndex].globalEvents=h)}if("source"===i){if(!u.tmpData.source)return!1;var f=u.tmpData.source,d=f.type;if("api"===d){var p=f[d].url.match(/(@)[\w]*/gm);if(p)for(var m=p.map((function(t){return t.replace("@","")})),g=function(n){var r=m[n];if(!r||!e.globalVars||e.globalVars.findIndex((function(t){return t.mapField===r}))<0)return"continue";if(e.shareVariableTree||(e.shareVariableTree={}),e.shareVariableTree[r]&&t.isArray(e.shareVariableTree[r])){e.shareVariableTree[r].push(u.cid);var i=e.shareVariableTree[r];e.shareVariableTree[r]=t.uniq(i)}else e.shareVariableTree[r]=[],e.shareVariableTree[r].push(u.cid)},v=0;v<m.length;v++)g(v)}}}}this.commit("GoCom/execute")}},Fe={updataList:function(e,n){var r=n.cid,i=t.cloneDeep(n.list),a=t.cloneDeep(e.list);if(console.log(i,a),-1===i.findIndex((function(t){return t.cid===r})))for(var s=0;s<i.length;s++){var o=i[s];if(o.children&&o.children.length)for(var u=o.cid,c=0;c<o.children.length;c++){var l=o.children[c];if(l.cid===r){l.pid=u;var h=t.cloneDeep(o.baseData),f=ne(l.baseData,o.baseData,1);Object.assign(l.baseData,f),oe(o,h);break}}}else{var d=i.find((function(t){return t.cid===r})),p=d.pid;if(p){d.pid="";var m=Gt(i,p);console.log(m,"movGroup"),Object.assign(d.baseData,ne(d.baseData,m.baseData));s=m.children.findIndex((function(t){return t.cid===d.cid}));m.children.splice(s,1),0===m.children.length?Gt(i,m.cid,!0):oe(m,m.baseData)}}e.list=i},updataListForContrast:function(e,n){var r=n.cid,i=n.list,a=Gt(i,r);Wt(i,r);var s=Wt(e.list,r);if(!a.pid){a.pid=s.cid;var o=t.cloneDeep(a.baseData),u=ne(a.baseData,s.baseData,1);Object.assign(a.baseData,u),oe(s,o)}},updateTree:function(e){for(var n=e.list,r=0;r<n.length;r++){var i=n[r];if(i.pid)(o=Zt(n,i.pid))&&Object.assign(i.baseData,ne(i.baseData,o.baseData));if(i.children)for(var a=0;a<i.children.length;a++){var s=i.children[a];if(s.pid!=i.cid){var o=Zt(n,s.pid);if(t.cloneDeep(s.baseData),o){Object.assign(s.baseData,ne(s.baseData,o.baseData));var u=ne(s.baseData,i.baseData,1);Object.assign(s.baseData,u),oe(i,i.baseData)}s.pid=i.cid}}}}},je=function(t){return i(this,void 0,void 0,(function(){var e,n,r,i;return a(this,(function(a){switch(a.label){case 0:return e=t.fontUrl,n=t.fontName,r="__custom_font__",(i=document.getElementById(r))?[3,2]:((i=document.createElement("style")).id=r,[4,(document.head||document.getElementsByTagName("head")[0]).appendChild(i)]);case 1:a.sent(),a.label=2;case 2:return i.innerText+="@font-face{font-family:'".concat(n,"';src:url(").concat(e,");}"),[2]}}))}))},Ue=function(t,e,n){return void 0===e&&(e="jspaths"),i(void 0,void 0,void 0,(function(){var r,i;return a(this,(function(a){return r="script","jspaths"==e?r="script":"csspaths"==e&&(r="link"),i=document.createElement(r),"jspaths"==e?(i.defer=!0,i.src=t):"csspaths"==e&&(i.defer=!0,i.href=t),i.className=e,(n||document.head||document.getElementsByTagName("head")[0]).appendChild(i),i.onload=function(){},i.onerror=function(){throw new Error("Failed to load ".concat(t))},[2]}))}))},He=function(t,e){return void 0===e&&(e="jspaths"),i(void 0,void 0,void 0,(function(){var n,r;return a(this,(function(i){switch(i.label){case 0:n=0,i.label=1;case 1:return n<t.length?(r=t[n],"fonts"!=e?[3,2]:(je(r),[3,4])):[3,5];case 2:return[4,Ue(r,e)];case 3:i.sent(),console.log(55555),i.label=4;case 4:return n++,[3,1];case 5:return[2]}}))}))},ze=function(t){return i(void 0,void 0,void 0,(function(){return a(this,(function(e){switch(e.label){case 0:return t.fonts&&t.fonts.length?[4,He(t.fonts,"fonts")]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}))}))},qe=function(e){return i(void 0,void 0,void 0,(function(){return a(this,(function(n){switch(n.label){case 0:return e.jspaths&&e.jspaths.length?[4,He(e.jspaths,"jspaths")]:[3,2];case 1:n.sent(),n.label=2;case 2:return e.csspaths&&e.csspaths.length?[4,He(e.csspaths,"csspaths")]:[3,4];case 3:n.sent(),n.label=4;case 4:return e.fonts&&e.fonts.length?(t.uniqBy(e.fonts,"name"),[4,He(e.fonts,"fonts")]):[3,6];case 5:n.sent(),n.label=6;case 6:return[2]}}))}))},Ge=function(){var t;(t=document.getElementById("__custom_font__")).parentNode.removeChild(t),Array.from(document.getElementsByTagName("script")).filter((function(t){return"jspaths"==t.className})).forEach((function(t){!function(t){for(var e=Array.from(document.getElementsByTagName("script")),n=0;n<e.length;n++)e[n]&&e[n].src&&-1!=e[n].src.indexOf(t)&&e[n].parentNode.removeChild(e[n])}(t.src)})),Array.from(document.getElementsByTagName("link")).filter((function(t){return"csspaths"==t.className})).forEach((function(t){!function(t){for(var e=Array.from(document.getElementsByTagName("link")),n=0;n<e.length;n++)e[n].href,e[n]&&e[n].href&&-1!=e[n].href.indexOf(t)&&e[n].parentNode.removeChild(e[n])}(t.href)}))};var We={reset:function(t){t.selectd=[],t.list=[],t.plant=null,t.tw=null,t.watermark=null,t.endnotes=null},setFonts:function(t,e){t.resource.fonts.push({fontName:e.name,fontUrl:e.src}),ze(t.resource)},setCaseInfo:function(t,e){t.caseInfo=e},setPageId:function(t,e){t.pageId=e},addConstant:function(e,n){var r=t.find(e.constant,{name:n.name});r?Object.assign(r,n):e.constant.push(n)},editConstant:function(e,n){var r=t.find(e.constant,{name:n.name});r&&Object.assign(r,n)},delConstant:function(e,n){t.remove(e.constant,(function(t){return t.name==n}))},setResource:function(t,e){var n=e.type,r=e.value;t.resource[n]=r,Ge(),qe(t.resource)},updataResource:function(t){Ge(),qe(t.resource)},setData:function(t,e){t.selectd=e.selectd},setList:function(t,e){t.list=e},saveDynamicChildren:function(t,e){var n=e.cid,r=e.data,i=e.name,a=t.pages[t.pageIndex].list,s=Zt(a,n);s&&(s.activeDynamic=i,s.dynamicChildren instanceof Array&&(s.dynamicChildren=new Map(s.dynamicChildren)),s.dynamicChildren.set(i,r))},setTheme:function(t,e){t.theme=e},setPlant:function(t,e){var n=e.attr,r=e.value;t.plant||(t.plant={name:"",theme:null,baseData:{width:1920,height:1080,left:0,top:0},option:null,optionDes:null}),t.plant[n]=r},setPlantHeight:function(t,e){t.plant&&(t.plant.baseData.height=t.plant.baseData.height+e)},reversal:function(t,e){t.undos=[],t.undoRedoPointer=-1,t=Object.assign(t,e)},setComTmp:function(t,e){var n=t.list.find((function(t){return t.cid===e[0]}));n.com=e[1],n.tmp=e[2]},setLoading:function(t,e){var n=e.cid,r=e.flag,i=t.list.find((function(t){return t.cid===n}));i&&(i.loading=r)},setMultiple:function(t,e){t.multiple=e},setCaseList:function(t,e){t.caseList=e},updataComponentForList:function(t,e){var n=e.cid,r=e.data,i=t.list,a=Gt(i,n);"boolean"!=typeof a&&Object.assign(a,r)},updataComponentForCaseList:function(t,e){var n=e.cid,r=e.data,i=t.caseList,a=Gt(i,n);"boolean"!=typeof a&&Object.assign(a,r)},updataComponent:function(t,e){var n=e.cid,r=e.data,i=t.pages&&t.pages[0]&&t.pages[0].list&&t.pages[0].list.length?t.pages[0].list:t.list,a=Gt(i,n);"boolean"!=typeof a&&Object.assign(a,r)},updataArea:function(t,e){t.currentArea.left+=e.deltaX,t.currentArea.top+=e.deltaY},updataSource:function(t,e){var n=e.cid,r=e.data,i=Zt(t.list,n);"boolean"!=typeof i&&("indicatorCQ"===i.tmpData.source.type?i.tmpData.source.indicator.data=r:i.tmpData.source[i.tmpData.source.type].data=r)},updataSourceForComponent:function(e,n){var r=n.cid,i=n.data;if(e.list.length){var a=Gt(e.list,r);"boolean"!=typeof a&&(a.source=t.cloneDeep(i))}},updataAnimationForComponent:function(t,e){var n=e.cid,r=e.data;if(t.list.length){var i=Zt(t.list,n);"boolean"!=typeof i&&(i.tw=r)}},updataWatermark:function(t,e){t.watermark=e},updataEndnotes:function(t,e){t.endnotes=e},updataAnimation:function(t,e){t.tw=e},setContext:function(t,e){var n=e.cid,r=e.data,i=Zt(t.list,n);"boolean"!=typeof i&&(i.example=r)},setContextList:function(t,e){var n=e.cid,r=e.data;t.contextList[n]=r},setPosition:function(t,e){ee(t.list.find((function(t){return t.cid===e[0]})),e[1])},setSelect:function(t,e){t.cache=[],t.selectd=e instanceof Array?e:[e],t.selectd.length>1&&t.selectd.forEach((function(e){t.cache.push(t.list.find((function(t){return t.cid===e&&"Other.Plant.Normal"!==t.type})))}))},setActive:function(e,n){var r=t.cloneDeep(n),i=r.id,a=r.multiple,s=r.origin,o=r.ctr,u=t.cloneDeep(e.selectd);if(a){var c=u.includes(i);if(u.length>=1)if(!u.every((function(t){return $t(e.list,t,n.id)})))return void console.info("sorry Only sibling elements can be selected!");c?u.splice(u.findIndex((function(t){return t===i})),1):u.push(i),e.selectd=u}else e.selectd=[i];e.selectd.forEach((function(t){var n=Gt(e.list,t);n.pid&&(Gt(e.list,n.pid).toggle=!0);o||(n.toggle=!0)})),e.selectdChangeOrigin=s||""},setCache:function(t){t.cache=[],t.selectd.length>1&&t.selectd.forEach((function(e){t.cache.push(t.list.find((function(t){return t.cid===e})))}))},clearActive:function(t){t.selectd=[]},setMultipleActive:function(t,e){t.selectd=e},syncMenuInfo:function(t){ue(t.menuList,(function(e){var n=10*e.lv+e.index;t.list.filter((function(t){return t.cid===e.id}))[0].z=1e4-n}))},addComs:function(e,n){var r=n.com,i=n.isMobile;"MultiStateComponent"!=r.componentType||r.stateChildren||(r.stateChildren=[]),"dynamicComponent"!=r.componentType||r.dynamicChildren||(r.dynamicChildren=new Map,r.activeDynamic="状态1",r.dynamicChildren.set("状态1",[])),i?e.list.push(r):e.list.unshift(r),e.menuList=t.cloneDeep(e.list),this.commit("GoCom/execute")},addComsForParent:function(e,n){var r=n.com,i=n.isMobile,a=n.PID;if("MultiStateComponent"!=r.componentType||r.stateChildren||(r.stateChildren=[]),"dynamicComponent"!=r.componentType||r.dynamicChildren||(r.dynamicChildren=new Map,r.activeDynamic="状态1",r.dynamicChildren.set("状态1",[])),a){var s=Gt(e.list,a);i?(s.children=[],s.children.push(r)):s.children.unshift(r)}else i?e.list.splice(0,1,r):e.list.unshift(r);e.menuList=t.cloneDeep(e.list),this.commit("GoCom/execute")},addMyComs:function(e,n){var r;try{var i=n.data,a=n.shareVariableTree,s=n.globalVars,o=n.globalEvents;e.globalVars=t.uniq(t.concat(t.cloneDeep(e.globalVars),s)),e.globalEvents=t.uniq(t.concat(t.cloneDeep(e.globalEvents),o));var u=Object.keys(a),c=Object.keys(e.shareVariableTree),l=t.difference(u,c);l.length?l.forEach((function(n){e.shareVariableTree[n]=t.concat(t.cloneDeep(e.shareVariableTree[n]),a[n])})):e.shareVariableTree=Object.assign(t.cloneDeep(e.shareVariableTree),a),i instanceof Array?(Xt(i),(r=e.list).unshift.apply(r,i)):(Xt([i]),e.list.unshift(i)),e.menuList=t.cloneDeep(e.list),this.commit("GoCom/execute")}catch(t){}},addStateChildren:function(t,e){var n=Zt(t.list,e.pid);n&&n.stateChildren.push(e)},addDynamicChildren:function(t,e){var n=Zt(t.list,e.pid);n&&n.dynamicChildren.push(e)},arraySwap:function(e,n){var r;try{if(!n||2!=n.length)throw new Error("参数错误,方法接受两个组件的CID组成的数组!");var i=t.cloneDeep(e.list),a=Gt(i,n[0]),o=Gt(i,n[1]),u=Gt(i,a.pid),c={},l=0,h=0;if(o)if("selectContainer"==o.componentType){var f=Gt(i,n[1]);u?(l=t.findIndex(u.children,(function(t){return t.cid==n[0]})),c=u.children[l],u.children=u.children.filter((function(t){return t.cid!==c.cid}))):(c=Gt(i,n[0]),i=i.filter((function(t){return t.cid!==c.cid}))),c.cid=ce(),c.pid=f.cid,f.children.push(c)}else if(a.pid||o.pid)if(u)if(l=t.findIndex(u.children,(function(t){return t.cid==n[0]})),c=u.children[l],a.pid!==o.pid){f=Gt(i,o.pid);h=t.findIndex(f.children,(function(t){return t.cid==n[1]}));d=f.children[h];c.cid=ce(),c.pid=f.cid,d.cid=ce(),d.pid=u.cid,u.children.splice(l,1,d),f.children.splice(h,1,c)}else h=t.findIndex(u.children,(function(t){return t.cid==n[1]})),(r=u.children).splice.apply(r,s([h,1],u.children.splice(l,1,u.children[h]),!1));else{var f=Gt(i,o.pid);l=t.findIndex(i,(function(t){return t.cid==n[0]})),h=t.findIndex(f.children,(function(t){return t.cid==n[1]})),c=Gt(i,a.cid);var d=f.children[h];c.cid=ce(),c.pid=f.cid,d.cid=ce(),d.pid=null,i.splice(l,1,d),f.children.splice(h,1,c)}else zt(e.list,n[0],n[1]);else l=t.findIndex(u.children,(function(t){return t.cid==n[0]})),c=u.children[l],u.children.splice(l,1),c.cid=ce(),c.pid=null,i.push(c);e.list=i}catch(t){console.warn("组件位置交换发生错误",t)}},changeDynamicState:function(t,e){var n=Zt(t.list,e.cid);n&&"dynamicComponent"==n.componentType&&(n.dynamicChildren instanceof Array&&n.dynamicChildren.find((function(t){return t[0]==e.activeName}))||n.dynamicChildren instanceof Map&&n.dynamicChildren.has(e.activeName)?n.activeDynamic=e.activeName:console.error(e.activeName+"不是一个正确的状态"))},addAlternateData:function(t,e){t.alternateData[e.pid]||(t.alternateData[e.pid]=[]),t.alternateData[e.pid].push(e)},setOptionForCom:function(t,e){var n,r;try{var i=e.cid,a=e.key,s=e.value,o=Gt(t.list,i);o&&(null===(r=null===(n=null==o?void 0:o.tmpData)||void 0===n?void 0:n.option)||void 0===r?void 0:r.hasOwnProperty(a))&&(o.tmpData.option[a]=s)}catch(t){console.warn("同步属性发生错误:"+t)}},mergeConfig:function(e,n){n.length>0&&n.forEach((function(t){e.list.unshift(t)})),e.menuList=t.cloneDeep(e.list),this.commit("GoCom/execute")},updataName:function(t,e){var n=Zt(t.list,e.cid);n&&(n.name=e.name)},setCurrentEdited:function(t,e){if(e){var n=Zt(t.list,e);if("boolean"!=typeof n){var r=te(n);n.children=r}t.currentEditerCid=e}else t.currentEditerCid=""}},Ze={layout:function(e,n){var r=function(e,n){try{var r=e.map((function(t){var e=Zt(n,t);if("object"==typeof e)return e;throw"Please check whether the input and output parameters are correct!"}));if(t.every(r,Object))return r;throw"Please check whether the input and output parameters are correct!"}catch(t){return console.error(t),[]}}(e.selectd,e.list);switch(n){case"alignLeft":!function(e,n){1===e.length&&(e[0].baseData.left=0);var r=t.sortBy(e,(function(t){return t.baseData.left}))[0].baseData.left;e.map((function(t){return t.baseData.left=r}))}(r);break;case"alignRight":!function(e,n){if(1===e.length){var r=n.plant?n.plant.baseData:{width:1920,height:1080};e[0].baseData.left=r.width-e[0].baseData.width}var i=t.sortBy(e,(function(t){return t.baseData.left})),a=1*i[i.length-1].baseData.left+1*i[i.length-1].baseData.width;e.map((function(t){return t.baseData.left=a-1*t.baseData.width}))}(r,e);break;case"horizontally":!function(e,n){if(1===e.length){var r=n.plant?n.plant.baseData:{width:1920,height:1080};e[0].baseData.left=r.width/2-e[0].baseData.width/2}var i=t.sortBy(e,(function(t){return t.baseData.left})),a=t.sortBy(e,(function(t){return 1*t.baseData.left+1*t.baseData.width})),s=(1*i[0].baseData.left+(1*a[a.length-1].baseData.left+1*a[a.length-1].baseData.width))/2;e.map((function(t){return t.baseData.left=s-t.baseData.width/2}))}(r,e);break;case"alignTop":!function(e,n){1===e.length&&(e[0].baseData.top=0);var r=1*t.sortBy(e,(function(t){return t.baseData.top}))[0].baseData.top;e.map((function(t){return t.baseData.top=r}))}(r);break;case"alignBottom":!function(e,n){if(1===e.length){var r=n.plant?n.plant.baseData:{width:1920,height:1080};e[0].baseData.top=r.height-e[0].baseData.height}var i=t.sortBy(e,(function(t){return 1*t.baseData.left})),a=1*i[i.length-1].baseData.top+1*i[i.length-1].baseData.height;e.map((function(t){return t.baseData.top=a-1*t.baseData.height}))}(r,e);break;case"verticalCenter":!function(e,n){if(1===e.length){var r=n.plant?n.plant.baseData:{width:1920,height:1080};e[0].baseData.top=r.height/2-e[0].baseData.height/2}var i=t.sortBy(e,(function(t){return t.baseData.top})),a=t.sortBy(e,(function(t){return 1*t.baseData.top+1*t.baseData.height})),s=(1*i[0].baseData.top+(1*a[a.length-1].baseData.top+1*a[a.length-1].baseData.height))/2;e.map((function(t){return t.baseData.top=s-t.baseData.height/2}))}(r,e);break;case"topDistribution":!function(e){if(e.length<3)return console.warn("A minimum of three elements are required for a distribution arrangement"),!1;var n=t.sortBy(e,(function(t){return t.baseData.top})),r=(n[n.length-1].baseData.top-n[0].baseData.top)/(n.length-1);n.map((function(t,e){e>0&&e<n.length-1&&(t.baseData.top=1*n[0].baseData.top+r*e)}))}(r);break;case"bottomDistribution":!function(e){if(e.length<3)return console.warn("A minimum of three elements are required for a distribution arrangement"),!1;var n=t.sortBy(e,(function(t){return t.baseData.top+t.baseData.height})),r=(n[n.length-1].baseData.top+n[n.length-1].baseData.height-(n[0].baseData.top+n[0].baseData.height))/(n.length-1);n.map((function(t,e){e>0&&e<n.length-1&&(t.baseData.top=1*n[0].baseData.top+1*n[0].baseData.height-1*t.baseData.height+r*e)}))}(r);break;case"xCenterDistribution":!function(e){if(e.length<3)return console.warn("A minimum of three elements are required for a distribution arrangement"),!1;var n=t.sortBy(e,(function(t){return t.baseData.left+t.baseData.width/2})),r=1*n[n.length-1].baseData.left+n[n.length-1].baseData.width/2,i=1*n[0].baseData.left+n[0].baseData.width/2,a=(r-i)/(n.length-1);n.map((function(t,e){e>0&&e<n.length-1&&(t.baseData.left=i-t.baseData.width/2+a*e)}))}(r);break;case"leftDistribution":!function(e){if(e.length<3)return console.warn("A minimum of three elements are required for a distribution arrangement"),!1;var n=t.sortBy(e,(function(t){return t.baseData.left})),r=(n[n.length-1].baseData.left-n[0].baseData.left)/(n.length-1);n.map((function(t,e){e>0&&e<n.length-1&&(t.baseData.left=n[0].baseData.left+r*e)}))}(r);break;case"rightDistribution":!function(e){if(e.length<3)return console.warn("A minimum of three elements are required for a distribution arrangement"),!1;var n=t.sortBy(e,(function(t){return t.baseData.left+t.baseData.width})),r=(n[n.length-1].baseData.left+n[n.length-1].baseData.width-(n[0].baseData.left+n[0].baseData.width))/(n.length-1);n.map((function(t,e){e>0&&e<n.length-1&&(t.baseData.left=n[0].baseData.left+n[0].baseData.width-t.baseData.width+r*e)}))}(r);break;case"yCenterDistribution":!function(e){if(e.length<3)return console.warn("A minimum of three elements are required for a distribution arrangement"),!1;var n=t.sortBy(e,(function(t){return t.baseData.top+t.baseData.height/2})),r=1*n[n.length-1].baseData.top+n[n.length-1].baseData.height/2,i=1*n[0].baseData.top+n[0].baseData.height/2,a=(r-i)/(n.length-1);n.map((function(t,e){e>0&&e<n.length-1&&(t.baseData.top=i-t.baseData.height/2+a*e)}))}(r)}}},$e={setPageData:function(t,e){t.pages[0]=e},parasePages:function(t,e){e instanceof Array&&(t.pages=e.map((function(t,e){return t.name||(t.name="页面"+(e+1)),t.path||(t.path="page"+(e+1)),t})))},addPage:function(t,e){var n=t.pages.length+1;e.name="页面"+n,e.path="page"+n,t.pages.push(e),t.pageIndex=t.pages.length-1,t.resource={jspaths:[],csspaths:[],otherpaths:[]}},setCurrentPageIndex:function(t,e){var n=t.globalEvents,r=t.globalVars,i=t.list,a=t.name,s=t.theme,o=t.plant,u=t.shareVariableTree,c=t.resource;t.pages[t.pageIndex]={globalEvents:n,globalVars:r,list:i,name:a,theme:s,plant:o,shareVariableTree:u,resource:c},t.pageIndex=e},setPageDataForIndex:function(t,e){var n=e.index,r=e.data;t.pages[n]=r},setPageName:function(t,e){t.name=e,t.pages[t.pageIndex].name=e},saveCurrentPageData:function(t){var e=t.globalEvents,n=t.globalVars,r=t.list,i=t.name,a=t.theme,s=t.plant,o=t.shareVariableTree,u=t.resource;t.pages[t.pageIndex]={globalEvents:e,globalVars:n,list:r,name:i,theme:a,plant:s,shareVariableTree:o,resource:u}},getCurrentPageData:function(t){var e=t.globalEvents,n=t.globalVars,r=t.list,i=t.name,a=t.theme,s=t.plant,o=t.shareVariableTree,u=t.resource;t.pages[t.pageIndex]={globalEvents:e,globalVars:n,list:r,name:i,theme:a,plant:s,shareVariableTree:o,resource:u}}},Ke={segmentationContainer:function(e,n){var r=t.cloneDeep(e.list),i=n.containerData,a=n.direction,s=[];if("del"==a)if(i.pid){var o=function(t){if(t.length)for(var e=0;e<t.length;e++)i.pid===t[e].cid?t[e].children.length&&(t[e].children.map((function(t){t.cid!==i.cid&&1===t.children.length&&(s=t.children)})),t[e].children=[],s.length&&(t[e].children=s)):t[e].hasOwnProperty("children")&&o(t[e].children)};r.length&&o(r)}else r.length&&(r=r.filter((function(t){return t.cid!==i.cid})));else if(i.pid){var u=function(t){for(var e=0;e<t.length;e++)if(i.cid===t[e].cid){t[e].direction=a,1===t[e].children.length&&((s=t[e].children)[0].pid=null,t[e].children=[]);for(var n=0;n<2;n++)t[e].children.push({isLock:!1,isShow:!0,baseData:{width:"col"==a?"100%":"50%",height:"col"==a?"50%":"100%",angle:0,penetrate:0,opacity:100},componentType:"selectContainer",iconClass:"__vue_devtool_undefined__",isAssembly:"__vue_devtool_undefined__",source:[],comData:{actions:[],option:{grid:[{val:8,unit:"px"},{val:8,unit:"px"},{val:8,unit:"px"},{val:8,unit:"px"}],bgColor:{alpha:1,blue:0,green:0,red:0,flag:1,style:"transparent"}}},tmpData:{},dynamic:0,filePath:"/anov-prod/mgt/go/assembly/162-bgImage.png",origin:"anov-go",name:"容器组件",path:"/index.js",viewComName:"selectContainer",optionComName:"",dataComName:"",eventComName:"",direction:"col",assemblyDeveloper:"",devEmail:"",version:null,devDept:"",toggle:!0,cid:ce(),pid:t[e].cid,nestIndex:0,children:[],isTop:!1,isCol:"col"==a,isRow:"col"!=a,isDragged:!1,grandParentId:i.pid});s.length&&(s[0].cid=ce(),s[0].pid=t[e].children[0].cid,t[e].children[0].children=s)}else t[e].hasOwnProperty("children")&&u(t[e].children)};r.length&&u(r)}else{var c=Gt(r,i.cid);if(c){c.direction=a,1===c.children.length&&(s=c.children,c.children=[]);for(var l=0;l<2;l++)c.children.push({isLock:!1,isShow:!0,baseData:{width:"col"==a?"100%":"50%",height:"col"==a?"50%":"100%",angle:0,penetrate:0,opacity:100},componentType:"selectContainer",iconClass:"__vue_devtool_undefined__",isAssembly:"__vue_devtool_undefined__",source:[],comData:{actions:[],option:{grid:[{val:8,unit:"px"},{val:8,unit:"px"},{val:8,unit:"px"},{val:8,unit:"px"}],bgColor:{alpha:1,blue:0,green:0,red:0,flag:1,style:"transparent"}}},tmpData:{},dynamic:0,filePath:"/anov-prod/mgt/go/assembly/162-bgImage.png",origin:"anov-go",name:"容器组件",path:"/index.js",viewComName:"selectContainer",optionComName:"",dataComName:"",eventComName:"",assemblyDeveloper:"",devEmail:"",version:null,devDept:"",toggle:!0,cid:ce(),pid:c.cid,nestIndex:0,children:[],isTop:!1,isCol:"col"==a,isRow:"col"!=a,isDragged:!1,grandParentId:i.pid});s.length&&(s[0].cid=ce(),s[0].pid=c.children[0].cid,c.children[0].children=s)}}e.list=r}},Xe={getCurrentPage:function(t){return t.pages.length?t.pages[t.pageIndex]:[]},globalSourceTree:function(e){if(e.list.length&&e.globalSource.length){var n=[];return Kt(t.cloneDeep(e.list),(function(t){var e,r,i;if("globalData"==(null===(r=null===(e=null==t?void 0:t.tmpData)||void 0===e?void 0:e.source)||void 0===r?void 0:r.type)){var a=null===(i=null==t?void 0:t.tmpData)||void 0===i?void 0:i.source.globalData;n.push({name:t.name,cid:t.cid,sourceId:a.id,viewComName:t.viewComName})}})),n}return[]}},Qe={namespaced:!0,state:{size:{width:1920,height:1080},resource:{jspaths:[],csspaths:[],otherpaths:[],fonts:[]},globalSource:[],alternateData:{},contextList:{},selectd:[],baseComs:[],globalVars:[],globalConstant:[],globalEvents:[],pages:[],pageIndex:0,groupFlag:!1,plant:{baseData:{width:1920,height:1080},option:null,optionDes:null},list:[],menuList:[],syncFlag:!0,multiple:!1,undoRedoPointer:-1,undos:[],redos:[],cache:[],cloneCache:[],shareVariable:{},shareVariableTree:{},catch:{selectd:[],list:[]},currentEditerCid:"",currentArea:{left:0,top:0,width:0,height:0,show:!1},caseList:[],constant:[],caseInfo:null,pageId:null,tw:null,watermark:null,endnotes:null,selectdChangeOrigin:""},mutations:r(r(r(r(r(r(r(r(r({},o),pe),me),Le),Fe),We),Ze),$e),Ke),actions:{updataList:function(t,e){var n=t.commit;e&&n("updataList",e),n("updateTree")},setActive:function(t,e){var n=t.commit;e&&n("setActive",e)},setSyncFlag:function(t,e){var n=t.commit;e&&n("setSyncFlag",e)},execute:function(t,e){var n=t.commit;e&&n("execute",e)},updataAnimationForComponent:function(t,e){var n=t.commit;e&&n("updataAnimationForComponent",e)},updataAnimation:function(t,e){(0,t.commit)("updataAnimation",e)},setOptionForCom:function(t,e){(0,t.commit)("setOptionForCom",e)}},getters:Xe},Je=function(){function t(){}return t.setAppStore=function(e){t.store=e},t.prototype.getState=function(){return t.store.state[t.storeModule]},t.prototype.mapState=function(e){return tn(t.storeModule,e)},t.prototype.mapGetters=function(e){return nn(t.storeModule,e)},t.prototype.mapMutations=function(e){return en(t.storeModule,e)},t.prototype.callState=function(e){return t.store.state[t.storeModule][e]},t.prototype.callGetter=function(e,n){return t.store.getters[t.storeModule+"/"+e]},t.prototype.callMutation=function(e,n,r){r?t.store.commit(t.storeModule+"/"+e,n,!0):t.store.commit(t.storeModule+"/"+e,n)},t.prototype.callAction=function(e,n){t.store.dispatch(t.storeModule+"/"+e,n)},t.storeModule="GoCom",t}(),tn=an((function(t,e){var n;return rn(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var r=sn(this.$store,"mapState",t);if(!r)return;e=r.context.state,n=r.context.getters}return"function"==typeof i?i.call(this,e,n):e[i]},n[r].VuexServer=!0})),n})),en=an((function(t,e){var n;return rn(e).forEach((function(e){var r=e.key,i=e.val;n[r]=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=this.$store.commit;if(t){var a=sn(this.$store,"mapMutations",t);if(!a)return;r=a.context.commit}return"function"==typeof i?i.apply(this,[r].concat(e)):r.apply(this.$store,[i].concat(e))}})),n})),nn=an((function(t,e){var n={};return rn(e).forEach((function(e){var r=e.key,i=e.val;i=t+i,n[r]=function(){if(!t||sn(this.$store,"mapGetters",t)){if("production"===process.env.NODE_ENV||i in this.$store.getters)return this.$store.getters[i];console.error("[VuexServer] unknown getter: ".concat(i))}},n[r].VuexServer=!0})),n}));function rn(t){return Array.isArray(t)?t.map((function(t){return{key:t,val:t}})):Object.keys(t).map((function(e){return{key:e,val:t[e]}}))}function an(t){return function(e,n){return"string"!=typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function sn(t,e,n){var r=t._modulesNamespaceMap[n];return"production"===process.env.NODE_ENV||r||console.error("[VuexServer] module namespace not found in ".concat(e,"(): ").concat(n)),r}var on=function(t){var e=this;this.isLock=!1,this.isShow=!0,this.baseData={left:0,top:0,width:300,height:200,angle:0,opacity:100,rotate:0,rotateY:0},this.componentType="BaseComponent",this.cid=ce(),t&&(Object.keys(t).forEach((function(n){e[n]=t[n]})),["AnEchartsMap","AnMaptalks","AnEchartsMap1","AnArcgisMapBase","AnAMap1","AnCesium","AnThreeMap3DChina","AnThreeMapForCesium","AnGisMap"].includes(t.viewComName)&&(this.componentType="MultiStateComponent"),"AnDynamic"===t.viewComName&&(this.componentType="dynamicComponent"))},un=function(){function e(t){this.vueServer=t,this.loadScript=Ue}return e.setStore=function(t){this.store=t},e.prototype.loadComponents=function(e){var n=e&&e.list?e.list:[];Kt(n,(function(t){t.viewComName&&(t&&t.path&&t.path,t.origin,t.viewComName?t.viewComName:t.rawData.viewComName)})),e&&this.vueServer.callMutation("reversal",t.cloneDeep(e))},e.prototype.addStore=function(t){this.vueServer.callMutation("setActive",{id:t}),this.vueServer.callMutation("addComs",this)},e.prototype._addPlantStore=function(){this.vueServer.callMutation("setPlant",this)},e.prototype._loadComTmp=function(t,e){return i(this,void 0,void 0,(function(){var n,r,i=this;return a(this,(function(s){switch(s.label){case 0:if(window[e])return[3,5];n=function(e){var n;return a(this,(function(r){switch(r.label){case 0:return n=t[e],[4,new Promise((function(t){t(i._load(n))}))];case 1:return r.sent(),[2]}}))},r=0,s.label=1;case 1:return r<t.length?[5,n(r)]:[3,4];case 2:s.sent(),s.label=3;case 3:return r++,[3,1];case 4:window[e]=e,s.label=5;case 5:return[2]}}))}))},e.prototype._load=function(t){return i(this,void 0,void 0,(function(){var e=this;return a(this,(function(n){return[2,new Promise((function(n){n(e.loadScript(t))}))]}))}))},e}(),cn=function(){function t(t){var e=t.dbName,n=t.tables,i=t.version,a=void 0===i?1:i,s=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(t,["dbName","tables","version"]);this.dbName=e,this.tables=n,this.version=a,this.openDB(r({dbName:e,tables:n,version:a},s))}return t.deleteDB=function(t){var e;null===(e=window.indexedDB)||void 0===e||e.deleteDatabase(t)},t.prototype.deleteItem=function(t,e,n){var r=this.storage.transaction(t,"readwrite").objectStore(t).delete(e);return r.onsuccess=function(t){"function"==typeof n&&n(t)},r},t.prototype.getItem=function(t,e,n){var r=this.storage.transaction(t,"readwrite").objectStore(t),i=null;return(i=e?r.get(e):r.getAll()).onsuccess=function(t){var e;"function"==typeof n&&n(null===(e=null==t?void 0:t.target)||void 0===e?void 0:e.result)},i.onerror=function(t){console.error(t),n(t)},i},t.prototype.setItem=function(t,e,n,r){var i=this.storage.transaction(t,"readwrite").objectStore(t).put(n,e);return i.onsuccess=function(t){"function"==typeof r&&r(t)},i.onerror=function(t){"function"==typeof r&&r(t)},i},t.prototype.get=function(t,e){return this.getItem(this.tables[0],t,e)},t.prototype.set=function(t,e,n){return this.setItem(this.tables[0],t,e,n)},t.prototype.delete=function(t,e){return this.deleteItem(this.tables[0],t,e)},t.prototype.clear=function(t,e){var n=this.storage.transaction(this.dbName,"readwrite").objectStore(t).clear();return n.onsuccess=function(t){"function"==typeof e&&e(t)},n},t.prototype.getDB=function(){return this.storage},t.prototype.closeDB=function(){this.storage.close()},t.prototype.openDB=function(t){var e=this,n=t.dbName,r=t.tables,i=t.version,a=t.callback,s=window.indexedDB;if(s)if((null==r?void 0:r.length)<1)console.error("表名不能为空");else{var o=s.open(n,i);o.onerror=function(t){var e,n;console.error("打开数据库失败: ".concat(null===(n=null===(e=t.currentTarget)||void 0===e?void 0:e.error)||void 0===n?void 0:n.message)),"function"==typeof a&&a(t)},o.onsuccess=function(t){var n;e.storage=null===(n=t.target)||void 0===n?void 0:n.result,"function"==typeof a&&a(t)},o.onupgradeneeded=function(t){var n;e.storage=null===(n=t.target)||void 0===n?void 0:n.result,r.forEach((function(n){e.storage.objectStoreNames.contains(n)||(e.storage.createObjectStore(n),"function"==typeof a&&a(t))}))}}else console.error("你的浏览器不支持indexedDB")},t}(),ln=function(){function t(){this.VueServer=new Je}return t.getInstance=function(){return this.instance||(this.db=new cn({dbName:"AnovGo",tables:["logs"]}),this.instance=new t),this.instance},t.prototype.getAppStore=function(){return t.store},t.setAppStore=function(e){t.store=e,Je.setAppStore(e),un.setStore(e)},t.prototype.add=function(t,e,n){e.MultiState?this.VueServer.callMutation("addStateChildren",e):(this.VueServer.callMutation("addComs",{com:e,isMobile:n}),this.VueServer.callMutation("setActive",{id:t}))},t.prototype.addForParent=function(t,e,n,r){this.VueServer.callMutation("addComsForParent",{com:e,PID:n,isMobile:r}),this.VueServer.callMutation("setActive",{id:t})},t.prototype.render=function(t,e){var n=new on(t);e?this.add(n.cid,n,!0):this.add(n.cid,n)},t.prototype.renderForParent=function(t,e,n){var r=new on(t);void 0!==n?this.addForParent(r.cid,r,e,n):this.addForParent(r.cid,r,e)},t.prototype.reversal=function(t){new un(new Je).loadComponents(t)},t.prototype.log=function(e,n,r,i,a){var s=(new Date).toLocaleString();t.db.set(s,{type:n,info:r,user:e,trace:i}),t.db.get(null,(function(t){a&&a()}))},t.prototype.emitEvent=function(t,e){var n=this;!function(t,e,n,r,i,a,s,o){var u,c=i.cid,l=i.actions.eventName,h=[];h=i.hasOwnProperty("index")?t.filter((function(t){return t.id==c&&t.eventType==l&&parseInt(t.index)+1==parseInt(i.index)})):t.filter((function(t){return t.id===c&&t.eventType===l}));var f=i.actions.mode;!e||e.filter((function(t){return t.id===c&&t.type===l}));for(var d=function(t){var e=h[t];if("link"==e.type&&window.open(e.link),"page"===e.type&&o&&o(e),"dynamic"===e.type){var n=e.dynamic;n&&n.length&&n.forEach((function(t){var n;e.id===i.cid&&(1!=i.actions.mode?e.index==i.index-1&&(n=Gt(r,t.pid))&&(n.activeDynamic=t.name,n.isShow=!0,t.visible||(n.isShow=!1)):(n=Gt(r,t.pid))&&(n.activeDynamic=t.name,n.isShow=!0,t.visible||(n.isShow=!1)))}))}"toggle"==e.type&&(2==f?e.children.forEach((function(t){e.index===i.index-1&&a({cid:t.cid,flag:t.visible})})):e.children.forEach((function(t){a({cid:t.cid,flag:t.visible})})))},p=0;p<h.length;p++)d(p);var m=function(t){var a=e[t];if(a.current=!1,a.id==c){if(i.hasOwnProperty(a.field))a.value=i[a.field]?i[a.field]:"";else if((null==i?void 0:i.data)&&i.data[a.field])a.value=null==i?void 0:i.data[a.field];else{var o=Zt(r,c),l=null===(u=null==o?void 0:o.tmpData)||void 0===u?void 0:u.actions;l&&l.length?l.forEach((function(t){var e=t.vars.find((function(t){return t.mapField==a.field}));e&&(a.value=e.value,a.current=!0)})):a.value=null}var h=n[a.mapField];if(!n)return{value:void 0};h&&h.length&&h.forEach((function(t){var n=Zt(r,t);Oe(n,e,!0,s)}))}};for(p=0;p<e.length;p++){var g=m(p);if("object"==typeof g)return g.value}}(this.VueServer.callState("globalEvents"),this.VueServer.callState("globalVars"),this.VueServer.callState("shareVariableTree"),this.VueServer.callState("list"),t,(function(t){n.VueServer.callMutation("changeShow",t)}),(function(t){n.VueServer.callMutation("updataSourceForComponent",t)}),e)},t}(),hn=Object.defineProperty,fn=Object.getOwnPropertySymbols,dn=Object.prototype.hasOwnProperty,pn=Object.prototype.propertyIsEnumerable,mn=(t,e,n)=>e in t?hn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,gn=(t,e)=>{for(var n in e||(e={}))dn.call(e,n)&&mn(t,n,e[n]);if(fn)for(var n of fn(e))pn.call(e,n)&&mn(t,n,e[n]);return t},vn=(t,e,n)=>(mn(t,"symbol"!=typeof e?e+"":e,n),n),yn=(t,e,n)=>new Promise(((r,i)=>{var a=t=>{try{o(n.next(t))}catch(t){i(t)}},s=t=>{try{o(n.throw(t))}catch(t){i(t)}},o=t=>t.done?r(t.value):Promise.resolve(t.value).then(a,s);o((n=n.apply(t,e)).next())})),bn={gapX:100,gapY:100,offsetLeft:0,offsetTop:0,width:120,height:64,opacity:.15,rotate:-22,fontSize:16,fontStyle:"normal",fontVariant:"normal",fontWeight:"300",fontColor:"#000",fontFamily:"sans-serif",textAlign:"center",textBaseline:"alphabetic",monitor:!0,zIndex:9999,mode:"interval",pack:!0,blindFontSize:16,blindOpacity:.005},_n={childList:!0,subtree:!0,attributeFilter:["style","class","data-watermark-tag"]};var wn=t=>{let e="";return Object.keys(t).forEach((n=>{const r=n.replace(/([A-Z])/g,"-$1").toLowerCase();e+=`${r}:${t[n]};`})),e},Dn=(t="")=>{return`${e=t,window.btoa(decodeURI(encodeURIComponent(e)))}-${(new Date).getTime()}-${Math.floor(Math.random()*Math.pow(10,8))}`;var e};var Tn=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver,Sn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function xn(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function En(t,e){return t(e={exports:{}},e.exports),e.exports}var Mn=En((function(t,e){t.exports=function(){var e,n;function r(){return e.apply(null,arguments)}function i(t){e=t}function a(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function s(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function o(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function u(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(o(t,e))return!1;return!0}function c(t){return void 0===t}function l(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function h(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function f(t,e){var n,r=[],i=t.length;for(n=0;n<i;++n)r.push(e(t[n],n));return r}function d(t,e){for(var n in e)o(e,n)&&(t[n]=e[n]);return o(e,"toString")&&(t.toString=e.toString),o(e,"valueOf")&&(t.valueOf=e.valueOf),t}function p(t,e,n,r){return $n(t,e,n,r,!0).utc()}function m(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function g(t){return null==t._pf&&(t._pf=m()),t._pf}function v(t){if(null==t._isValid){var e=g(t),r=n.call(e.parsedDateParts,(function(t){return null!=t})),i=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidEra&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&r);if(t._strict&&(i=i&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return i;t._isValid=i}return t._isValid}function y(t){var e=p(NaN);return null!=t?d(g(e),t):g(e).userInvalidated=!0,e}n=Array.prototype.some?Array.prototype.some:function(t){var e,n=Object(this),r=n.length>>>0;for(e=0;e<r;e++)if(e in n&&t.call(this,n[e],e,n))return!0;return!1};var b=r.momentProperties=[],_=!1;function w(t,e){var n,r,i,a=b.length;if(c(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),c(e._i)||(t._i=e._i),c(e._f)||(t._f=e._f),c(e._l)||(t._l=e._l),c(e._strict)||(t._strict=e._strict),c(e._tzm)||(t._tzm=e._tzm),c(e._isUTC)||(t._isUTC=e._isUTC),c(e._offset)||(t._offset=e._offset),c(e._pf)||(t._pf=g(e)),c(e._locale)||(t._locale=e._locale),a>0)for(n=0;n<a;n++)c(i=e[r=b[n]])||(t[r]=i);return t}function D(t){w(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===_&&(_=!0,r.updateOffset(this),_=!1)}function T(t){return t instanceof D||null!=t&&null!=t._isAMomentObject}function S(t){!1===r.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function x(t,e){var n=!0;return d((function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,t),n){var i,a,s,u=[],c=arguments.length;for(a=0;a<c;a++){if(i="","object"==typeof arguments[a]){for(s in i+="\n["+a+"] ",arguments[0])o(arguments[0],s)&&(i+=s+": "+arguments[0][s]+", ");i=i.slice(0,-2)}else i=arguments[a];u.push(i)}S(t+"\nArguments: "+Array.prototype.slice.call(u).join("")+"\n"+(new Error).stack),n=!1}return e.apply(this,arguments)}),e)}var E,M={};function O(t,e){null!=r.deprecationHandler&&r.deprecationHandler(t,e),M[t]||(S(e),M[t]=!0)}function k(t){return"undefined"!=typeof Function&&t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function C(t){var e,n;for(n in t)o(t,n)&&(k(e=t[n])?this[n]=e:this["_"+n]=e);this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function A(t,e){var n,r=d({},t);for(n in e)o(e,n)&&(s(t[n])&&s(e[n])?(r[n]={},d(r[n],t[n]),d(r[n],e[n])):null!=e[n]?r[n]=e[n]:delete r[n]);for(n in t)o(t,n)&&!o(e,n)&&s(t[n])&&(r[n]=d({},r[n]));return r}function P(t){null!=t&&this.set(t)}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,E=Object.keys?Object.keys:function(t){var e,n=[];for(e in t)o(t,e)&&n.push(e);return n};var R={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function N(t,e,n){var r=this._calendar[t]||this._calendar.sameElse;return k(r)?r.call(e,n):r}function I(t,e,n){var r=""+Math.abs(t),i=e-r.length;return(t>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var V=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,B=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Y={},L={};function F(t,e,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),t&&(L[t]=i),e&&(L[e[0]]=function(){return I(i.apply(this,arguments),e[1],e[2])}),n&&(L[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),t)})}function j(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function U(t){var e,n,r=t.match(V);for(e=0,n=r.length;e<n;e++)L[r[e]]?r[e]=L[r[e]]:r[e]=j(r[e]);return function(e){var i,a="";for(i=0;i<n;i++)a+=k(r[i])?r[i].call(e,t):r[i];return a}}function H(t,e){return t.isValid()?(e=z(e,t.localeData()),Y[e]=Y[e]||U(e),Y[e](t)):t.localeData().invalidDate()}function z(t,e){var n=5;function r(t){return e.longDateFormat(t)||t}for(B.lastIndex=0;n>=0&&B.test(t);)t=t.replace(B,r),B.lastIndex=0,n-=1;return t}var q={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function G(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.match(V).map((function(t){return"MMMM"===t||"MM"===t||"DD"===t||"dddd"===t?t.slice(1):t})).join(""),this._longDateFormat[t])}var W="Invalid date";function Z(){return this._invalidDate}var $="%d",K=/\d{1,2}/;function X(t){return this._ordinal.replace("%d",t)}var Q={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function J(t,e,n,r){var i=this._relativeTime[n];return k(i)?i(t,e,n,r):i.replace(/%d/i,t)}function tt(t,e){var n=this._relativeTime[t>0?"future":"past"];return k(n)?n(e):n.replace(/%s/i,e)}var et={};function nt(t,e){var n=t.toLowerCase();et[n]=et[n+"s"]=et[e]=t}function rt(t){return"string"==typeof t?et[t]||et[t.toLowerCase()]:void 0}function it(t){var e,n,r={};for(n in t)o(t,n)&&(e=rt(n))&&(r[e]=t[n]);return r}var at={};function st(t,e){at[t]=e}function ot(t){var e,n=[];for(e in t)o(t,e)&&n.push({unit:e,priority:at[e]});return n.sort((function(t,e){return t.priority-e.priority})),n}function ut(t){return t%4==0&&t%100!=0||t%400==0}function ct(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function lt(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=ct(e)),n}function ht(t,e){return function(n){return null!=n?(dt(this,t,n),r.updateOffset(this,e),this):ft(this,t)}}function ft(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function dt(t,e,n){t.isValid()&&!isNaN(n)&&("FullYear"===e&&ut(t.year())&&1===t.month()&&29===t.date()?(n=lt(n),t._d["set"+(t._isUTC?"UTC":"")+e](n,t.month(),Jt(n,t.month()))):t._d["set"+(t._isUTC?"UTC":"")+e](n))}function pt(t){return k(this[t=rt(t)])?this[t]():this}function mt(t,e){if("object"==typeof t){var n,r=ot(t=it(t)),i=r.length;for(n=0;n<i;n++)this[r[n].unit](t[r[n].unit])}else if(k(this[t=rt(t)]))return this[t](e);return this}var gt,vt=/\d/,yt=/\d\d/,bt=/\d{3}/,_t=/\d{4}/,wt=/[+-]?\d{6}/,Dt=/\d\d?/,Tt=/\d\d\d\d?/,St=/\d\d\d\d\d\d?/,xt=/\d{1,3}/,Et=/\d{1,4}/,Mt=/[+-]?\d{1,6}/,Ot=/\d+/,kt=/[+-]?\d+/,Ct=/Z|[+-]\d\d:?\d\d/gi,At=/Z|[+-]\d\d(?::?\d\d)?/gi,Pt=/[+-]?\d+(\.\d{1,3})?/,Rt=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function Nt(t,e,n){gt[t]=k(e)?e:function(t,r){return t&&n?n:e}}function It(t,e){return o(gt,t)?gt[t](e._strict,e._locale):new RegExp(Vt(t))}function Vt(t){return Bt(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,e,n,r,i){return e||n||r||i})))}function Bt(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}gt={};var Yt={};function Lt(t,e){var n,r,i=e;for("string"==typeof t&&(t=[t]),l(e)&&(i=function(t,n){n[e]=lt(t)}),r=t.length,n=0;n<r;n++)Yt[t[n]]=i}function Ft(t,e){Lt(t,(function(t,n,r,i){r._w=r._w||{},e(t,r._w,r,i)}))}function jt(t,e,n){null!=e&&o(Yt,t)&&Yt[t](e,n._a,n,t)}var Ut,Ht=0,zt=1,qt=2,Gt=3,Wt=4,Zt=5,$t=6,Kt=7,Xt=8;function Qt(t,e){return(t%e+e)%e}function Jt(t,e){if(isNaN(t)||isNaN(e))return NaN;var n=Qt(e,12);return t+=(e-n)/12,1===n?ut(t)?29:28:31-n%7%2}Ut=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1},F("M",["MM",2],"Mo",(function(){return this.month()+1})),F("MMM",0,0,(function(t){return this.localeData().monthsShort(this,t)})),F("MMMM",0,0,(function(t){return this.localeData().months(this,t)})),nt("month","M"),st("month",8),Nt("M",Dt),Nt("MM",Dt,yt),Nt("MMM",(function(t,e){return e.monthsShortRegex(t)})),Nt("MMMM",(function(t,e){return e.monthsRegex(t)})),Lt(["M","MM"],(function(t,e){e[zt]=lt(t)-1})),Lt(["MMM","MMMM"],(function(t,e,n,r){var i=n._locale.monthsParse(t,r,n._strict);null!=i?e[zt]=i:g(n).invalidMonth=t}));var te="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ee="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ne=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,re=Rt,ie=Rt;function ae(t,e){return t?a(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||ne).test(e)?"format":"standalone"][t.month()]:a(this._months)?this._months:this._months.standalone}function se(t,e){return t?a(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[ne.test(e)?"format":"standalone"][t.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function oe(t,e,n){var r,i,a,s=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)a=p([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(a,"").toLocaleLowerCase();return n?"MMM"===e?-1!==(i=Ut.call(this._shortMonthsParse,s))?i:null:-1!==(i=Ut.call(this._longMonthsParse,s))?i:null:"MMM"===e?-1!==(i=Ut.call(this._shortMonthsParse,s))||-1!==(i=Ut.call(this._longMonthsParse,s))?i:null:-1!==(i=Ut.call(this._longMonthsParse,s))||-1!==(i=Ut.call(this._shortMonthsParse,s))?i:null}function ue(t,e,n){var r,i,a;if(this._monthsParseExact)return oe.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=p([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(a="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(a.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[r].test(t))return r;if(n&&"MMM"===e&&this._shortMonthsParse[r].test(t))return r;if(!n&&this._monthsParse[r].test(t))return r}}function ce(t,e){var n;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=lt(e);else if(!l(e=t.localeData().monthsParse(e)))return t;return n=Math.min(t.date(),Jt(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n),t}function le(t){return null!=t?(ce(this,t),r.updateOffset(this,!0),this):ft(this,"Month")}function he(){return Jt(this.year(),this.month())}function fe(t){return this._monthsParseExact?(o(this,"_monthsRegex")||pe.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(o(this,"_monthsShortRegex")||(this._monthsShortRegex=re),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)}function de(t){return this._monthsParseExact?(o(this,"_monthsRegex")||pe.call(this),t?this._monthsStrictRegex:this._monthsRegex):(o(this,"_monthsRegex")||(this._monthsRegex=ie),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)}function pe(){function t(t,e){return e.length-t.length}var e,n,r=[],i=[],a=[];for(e=0;e<12;e++)n=p([2e3,e]),r.push(this.monthsShort(n,"")),i.push(this.months(n,"")),a.push(this.months(n,"")),a.push(this.monthsShort(n,""));for(r.sort(t),i.sort(t),a.sort(t),e=0;e<12;e++)r[e]=Bt(r[e]),i[e]=Bt(i[e]);for(e=0;e<24;e++)a[e]=Bt(a[e]);this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function me(t){return ut(t)?366:365}F("Y",0,0,(function(){var t=this.year();return t<=9999?I(t,4):"+"+t})),F(0,["YY",2],0,(function(){return this.year()%100})),F(0,["YYYY",4],0,"year"),F(0,["YYYYY",5],0,"year"),F(0,["YYYYYY",6,!0],0,"year"),nt("year","y"),st("year",1),Nt("Y",kt),Nt("YY",Dt,yt),Nt("YYYY",Et,_t),Nt("YYYYY",Mt,wt),Nt("YYYYYY",Mt,wt),Lt(["YYYYY","YYYYYY"],Ht),Lt("YYYY",(function(t,e){e[Ht]=2===t.length?r.parseTwoDigitYear(t):lt(t)})),Lt("YY",(function(t,e){e[Ht]=r.parseTwoDigitYear(t)})),Lt("Y",(function(t,e){e[Ht]=parseInt(t,10)})),r.parseTwoDigitYear=function(t){return lt(t)+(lt(t)>68?1900:2e3)};var ge=ht("FullYear",!0);function ve(){return ut(this.year())}function ye(t,e,n,r,i,a,s){var o;return t<100&&t>=0?(o=new Date(t+400,e,n,r,i,a,s),isFinite(o.getFullYear())&&o.setFullYear(t)):o=new Date(t,e,n,r,i,a,s),o}function be(t){var e,n;return t<100&&t>=0?((n=Array.prototype.slice.call(arguments))[0]=t+400,e=new Date(Date.UTC.apply(null,n)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function _e(t,e,n){var r=7+e-n;return-(7+be(t,0,r).getUTCDay()-e)%7+r-1}function we(t,e,n,r,i){var a,s,o=1+7*(e-1)+(7+n-r)%7+_e(t,r,i);return o<=0?s=me(a=t-1)+o:o>me(t)?(a=t+1,s=o-me(t)):(a=t,s=o),{year:a,dayOfYear:s}}function De(t,e,n){var r,i,a=_e(t.year(),e,n),s=Math.floor((t.dayOfYear()-a-1)/7)+1;return s<1?r=s+Te(i=t.year()-1,e,n):s>Te(t.year(),e,n)?(r=s-Te(t.year(),e,n),i=t.year()+1):(i=t.year(),r=s),{week:r,year:i}}function Te(t,e,n){var r=_e(t,e,n),i=_e(t+1,e,n);return(me(t)-r+i)/7}function Se(t){return De(t,this._week.dow,this._week.doy).week}F("w",["ww",2],"wo","week"),F("W",["WW",2],"Wo","isoWeek"),nt("week","w"),nt("isoWeek","W"),st("week",5),st("isoWeek",5),Nt("w",Dt),Nt("ww",Dt,yt),Nt("W",Dt),Nt("WW",Dt,yt),Ft(["w","ww","W","WW"],(function(t,e,n,r){e[r.substr(0,1)]=lt(t)}));var xe={dow:0,doy:6};function Ee(){return this._week.dow}function Me(){return this._week.doy}function Oe(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")}function ke(t){var e=De(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")}function Ce(t,e){return"string"!=typeof t?t:isNaN(t)?"number"==typeof(t=e.weekdaysParse(t))?t:null:parseInt(t,10)}function Ae(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}function Pe(t,e){return t.slice(e,7).concat(t.slice(0,e))}F("d",0,"do","day"),F("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),F("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),F("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),F("e",0,0,"weekday"),F("E",0,0,"isoWeekday"),nt("day","d"),nt("weekday","e"),nt("isoWeekday","E"),st("day",11),st("weekday",11),st("isoWeekday",11),Nt("d",Dt),Nt("e",Dt),Nt("E",Dt),Nt("dd",(function(t,e){return e.weekdaysMinRegex(t)})),Nt("ddd",(function(t,e){return e.weekdaysShortRegex(t)})),Nt("dddd",(function(t,e){return e.weekdaysRegex(t)})),Ft(["dd","ddd","dddd"],(function(t,e,n,r){var i=n._locale.weekdaysParse(t,r,n._strict);null!=i?e.d=i:g(n).invalidWeekday=t})),Ft(["d","e","E"],(function(t,e,n,r){e[r]=lt(t)}));var Re="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ne="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ie="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ve=Rt,Be=Rt,Ye=Rt;function Le(t,e){var n=a(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?Pe(n,this._week.dow):t?n[t.day()]:n}function Fe(t){return!0===t?Pe(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort}function je(t){return!0===t?Pe(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin}function Ue(t,e,n){var r,i,a,s=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=p([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return n?"dddd"===e?-1!==(i=Ut.call(this._weekdaysParse,s))?i:null:"ddd"===e?-1!==(i=Ut.call(this._shortWeekdaysParse,s))?i:null:-1!==(i=Ut.call(this._minWeekdaysParse,s))?i:null:"dddd"===e?-1!==(i=Ut.call(this._weekdaysParse,s))||-1!==(i=Ut.call(this._shortWeekdaysParse,s))||-1!==(i=Ut.call(this._minWeekdaysParse,s))?i:null:"ddd"===e?-1!==(i=Ut.call(this._shortWeekdaysParse,s))||-1!==(i=Ut.call(this._weekdaysParse,s))||-1!==(i=Ut.call(this._minWeekdaysParse,s))?i:null:-1!==(i=Ut.call(this._minWeekdaysParse,s))||-1!==(i=Ut.call(this._weekdaysParse,s))||-1!==(i=Ut.call(this._shortWeekdaysParse,s))?i:null}function He(t,e,n){var r,i,a;if(this._weekdaysParseExact)return Ue.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=p([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(a="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(a.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[r].test(t))return r;if(n&&"ddd"===e&&this._shortWeekdaysParse[r].test(t))return r;if(n&&"dd"===e&&this._minWeekdaysParse[r].test(t))return r;if(!n&&this._weekdaysParse[r].test(t))return r}}function ze(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=Ce(t,this.localeData()),this.add(t-e,"d")):e}function qe(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")}function Ge(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=Ae(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7}function We(t){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||Ke.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(o(this,"_weekdaysRegex")||(this._weekdaysRegex=Ve),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function Ze(t){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||Ke.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(o(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Be),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function $e(t){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||Ke.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(o(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ye),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Ke(){function t(t,e){return e.length-t.length}var e,n,r,i,a,s=[],o=[],u=[],c=[];for(e=0;e<7;e++)n=p([2e3,1]).day(e),r=Bt(this.weekdaysMin(n,"")),i=Bt(this.weekdaysShort(n,"")),a=Bt(this.weekdays(n,"")),s.push(r),o.push(i),u.push(a),c.push(r),c.push(i),c.push(a);s.sort(t),o.sort(t),u.sort(t),c.sort(t),this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function Xe(){return this.hours()%12||12}function Qe(){return this.hours()||24}function Je(t,e){F(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)}))}function tn(t,e){return e._meridiemParse}function en(t){return"p"===(t+"").toLowerCase().charAt(0)}F("H",["HH",2],0,"hour"),F("h",["hh",2],0,Xe),F("k",["kk",2],0,Qe),F("hmm",0,0,(function(){return""+Xe.apply(this)+I(this.minutes(),2)})),F("hmmss",0,0,(function(){return""+Xe.apply(this)+I(this.minutes(),2)+I(this.seconds(),2)})),F("Hmm",0,0,(function(){return""+this.hours()+I(this.minutes(),2)})),F("Hmmss",0,0,(function(){return""+this.hours()+I(this.minutes(),2)+I(this.seconds(),2)})),Je("a",!0),Je("A",!1),nt("hour","h"),st("hour",13),Nt("a",tn),Nt("A",tn),Nt("H",Dt),Nt("h",Dt),Nt("k",Dt),Nt("HH",Dt,yt),Nt("hh",Dt,yt),Nt("kk",Dt,yt),Nt("hmm",Tt),Nt("hmmss",St),Nt("Hmm",Tt),Nt("Hmmss",St),Lt(["H","HH"],Gt),Lt(["k","kk"],(function(t,e,n){var r=lt(t);e[Gt]=24===r?0:r})),Lt(["a","A"],(function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t})),Lt(["h","hh"],(function(t,e,n){e[Gt]=lt(t),g(n).bigHour=!0})),Lt("hmm",(function(t,e,n){var r=t.length-2;e[Gt]=lt(t.substr(0,r)),e[Wt]=lt(t.substr(r)),g(n).bigHour=!0})),Lt("hmmss",(function(t,e,n){var r=t.length-4,i=t.length-2;e[Gt]=lt(t.substr(0,r)),e[Wt]=lt(t.substr(r,2)),e[Zt]=lt(t.substr(i)),g(n).bigHour=!0})),Lt("Hmm",(function(t,e,n){var r=t.length-2;e[Gt]=lt(t.substr(0,r)),e[Wt]=lt(t.substr(r))})),Lt("Hmmss",(function(t,e,n){var r=t.length-4,i=t.length-2;e[Gt]=lt(t.substr(0,r)),e[Wt]=lt(t.substr(r,2)),e[Zt]=lt(t.substr(i))}));var nn=/[ap]\.?m?\.?/i,rn=ht("Hours",!0);function an(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"}var sn,on={calendar:R,longDateFormat:q,invalidDate:W,ordinal:$,dayOfMonthOrdinalParse:K,relativeTime:Q,months:te,monthsShort:ee,week:xe,weekdays:Re,weekdaysMin:Ie,weekdaysShort:Ne,meridiemParse:nn},un={},cn={};function ln(t,e){var n,r=Math.min(t.length,e.length);for(n=0;n<r;n+=1)if(t[n]!==e[n])return n;return r}function hn(t){return t?t.toLowerCase().replace("_","-"):t}function fn(t){for(var e,n,r,i,a=0;a<t.length;){for(e=(i=hn(t[a]).split("-")).length,n=(n=hn(t[a+1]))?n.split("-"):null;e>0;){if(r=pn(i.slice(0,e).join("-")))return r;if(n&&n.length>=e&&ln(i,n)>=e-1)break;e--}a++}return sn}function dn(t){return null!=t.match("^[^/\\\\]*$")}function pn(e){var n=null;if(void 0===un[e]&&t&&t.exports&&dn(e))try{n=sn._abbr,xn(),mn(n)}catch(t){un[e]=null}return un[e]}function mn(t,e){var n;return t&&((n=c(e)?yn(t):gn(t,e))?sn=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),sn._abbr}function gn(t,e){if(null!==e){var n,r=on;if(e.abbr=t,null!=un[t])O("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=un[t]._config;else if(null!=e.parentLocale)if(null!=un[e.parentLocale])r=un[e.parentLocale]._config;else{if(null==(n=pn(e.parentLocale)))return cn[e.parentLocale]||(cn[e.parentLocale]=[]),cn[e.parentLocale].push({name:t,config:e}),null;r=n._config}return un[t]=new P(A(r,e)),cn[t]&&cn[t].forEach((function(t){gn(t.name,t.config)})),mn(t),un[t]}return delete un[t],null}function vn(t,e){if(null!=e){var n,r,i=on;null!=un[t]&&null!=un[t].parentLocale?un[t].set(A(un[t]._config,e)):(null!=(r=pn(t))&&(i=r._config),e=A(i,e),null==r&&(e.abbr=t),(n=new P(e)).parentLocale=un[t],un[t]=n),mn(t)}else null!=un[t]&&(null!=un[t].parentLocale?(un[t]=un[t].parentLocale,t===mn()&&mn(t)):null!=un[t]&&delete un[t]);return un[t]}function yn(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return sn;if(!a(t)){if(e=pn(t))return e;t=[t]}return fn(t)}function bn(){return E(un)}function _n(t){var e,n=t._a;return n&&-2===g(t).overflow&&(e=n[zt]<0||n[zt]>11?zt:n[qt]<1||n[qt]>Jt(n[Ht],n[zt])?qt:n[Gt]<0||n[Gt]>24||24===n[Gt]&&(0!==n[Wt]||0!==n[Zt]||0!==n[$t])?Gt:n[Wt]<0||n[Wt]>59?Wt:n[Zt]<0||n[Zt]>59?Zt:n[$t]<0||n[$t]>999?$t:-1,g(t)._overflowDayOfYear&&(e<Ht||e>qt)&&(e=qt),g(t)._overflowWeeks&&-1===e&&(e=Kt),g(t)._overflowWeekday&&-1===e&&(e=Xt),g(t).overflow=e),t}var wn=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Dn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Tn=/Z|[+-]\d\d(?::?\d\d)?/,Sn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],En=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Mn=/^\/?Date\((-?\d+)/i,On=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,kn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Cn(t){var e,n,r,i,a,s,o=t._i,u=wn.exec(o)||Dn.exec(o),c=Sn.length,l=En.length;if(u){for(g(t).iso=!0,e=0,n=c;e<n;e++)if(Sn[e][1].exec(u[1])){i=Sn[e][0],r=!1!==Sn[e][2];break}if(null==i)return void(t._isValid=!1);if(u[3]){for(e=0,n=l;e<n;e++)if(En[e][1].exec(u[3])){a=(u[2]||" ")+En[e][0];break}if(null==a)return void(t._isValid=!1)}if(!r&&null!=a)return void(t._isValid=!1);if(u[4]){if(!Tn.exec(u[4]))return void(t._isValid=!1);s="Z"}t._f=i+(a||"")+(s||""),Un(t)}else t._isValid=!1}function An(t,e,n,r,i,a){var s=[Pn(t),ee.indexOf(e),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return a&&s.push(parseInt(a,10)),s}function Pn(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}function Rn(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Nn(t,e,n){return!t||Ne.indexOf(t)===new Date(e[0],e[1],e[2]).getDay()||(g(n).weekdayMismatch=!0,n._isValid=!1,!1)}function In(t,e,n){if(t)return kn[t];if(e)return 0;var r=parseInt(n,10),i=r%100;return(r-i)/100*60+i}function Vn(t){var e,n=On.exec(Rn(t._i));if(n){if(e=An(n[4],n[3],n[2],n[5],n[6],n[7]),!Nn(n[1],e,t))return;t._a=e,t._tzm=In(n[8],n[9],n[10]),t._d=be.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),g(t).rfc2822=!0}else t._isValid=!1}function Bn(t){var e=Mn.exec(t._i);null===e?(Cn(t),!1===t._isValid&&(delete t._isValid,Vn(t),!1===t._isValid&&(delete t._isValid,t._strict?t._isValid=!1:r.createFromInputFallback(t)))):t._d=new Date(+e[1])}function Yn(t,e,n){return null!=t?t:null!=e?e:n}function Ln(t){var e=new Date(r.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}function Fn(t){var e,n,r,i,a,s=[];if(!t._d){for(r=Ln(t),t._w&&null==t._a[qt]&&null==t._a[zt]&&jn(t),null!=t._dayOfYear&&(a=Yn(t._a[Ht],r[Ht]),(t._dayOfYear>me(a)||0===t._dayOfYear)&&(g(t)._overflowDayOfYear=!0),n=be(a,0,t._dayOfYear),t._a[zt]=n.getUTCMonth(),t._a[qt]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=s[e]=r[e];for(;e<7;e++)t._a[e]=s[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[Gt]&&0===t._a[Wt]&&0===t._a[Zt]&&0===t._a[$t]&&(t._nextDay=!0,t._a[Gt]=0),t._d=(t._useUTC?be:ye).apply(null,s),i=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[Gt]=24),t._w&&void 0!==t._w.d&&t._w.d!==i&&(g(t).weekdayMismatch=!0)}}function jn(t){var e,n,r,i,a,s,o,u,c;null!=(e=t._w).GG||null!=e.W||null!=e.E?(a=1,s=4,n=Yn(e.GG,t._a[Ht],De(Kn(),1,4).year),r=Yn(e.W,1),((i=Yn(e.E,1))<1||i>7)&&(u=!0)):(a=t._locale._week.dow,s=t._locale._week.doy,c=De(Kn(),a,s),n=Yn(e.gg,t._a[Ht],c.year),r=Yn(e.w,c.week),null!=e.d?((i=e.d)<0||i>6)&&(u=!0):null!=e.e?(i=e.e+a,(e.e<0||e.e>6)&&(u=!0)):i=a),r<1||r>Te(n,a,s)?g(t)._overflowWeeks=!0:null!=u?g(t)._overflowWeekday=!0:(o=we(n,r,i,a,s),t._a[Ht]=o.year,t._dayOfYear=o.dayOfYear)}function Un(t){if(t._f!==r.ISO_8601)if(t._f!==r.RFC_2822){t._a=[],g(t).empty=!0;var e,n,i,a,s,o,u,c=""+t._i,l=c.length,h=0;for(u=(i=z(t._f,t._locale).match(V)||[]).length,e=0;e<u;e++)a=i[e],(n=(c.match(It(a,t))||[])[0])&&((s=c.substr(0,c.indexOf(n))).length>0&&g(t).unusedInput.push(s),c=c.slice(c.indexOf(n)+n.length),h+=n.length),L[a]?(n?g(t).empty=!1:g(t).unusedTokens.push(a),jt(a,n,t)):t._strict&&!n&&g(t).unusedTokens.push(a);g(t).charsLeftOver=l-h,c.length>0&&g(t).unusedInput.push(c),t._a[Gt]<=12&&!0===g(t).bigHour&&t._a[Gt]>0&&(g(t).bigHour=void 0),g(t).parsedDateParts=t._a.slice(0),g(t).meridiem=t._meridiem,t._a[Gt]=Hn(t._locale,t._a[Gt],t._meridiem),null!==(o=g(t).era)&&(t._a[Ht]=t._locale.erasConvertYear(o,t._a[Ht])),Fn(t),_n(t)}else Vn(t);else Cn(t)}function Hn(t,e,n){var r;return null==n?e:null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?((r=t.isPM(n))&&e<12&&(e+=12),r||12!==e||(e=0),e):e}function zn(t){var e,n,r,i,a,s,o=!1,u=t._f.length;if(0===u)return g(t).invalidFormat=!0,void(t._d=new Date(NaN));for(i=0;i<u;i++)a=0,s=!1,e=w({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[i],Un(e),v(e)&&(s=!0),a+=g(e).charsLeftOver,a+=10*g(e).unusedTokens.length,g(e).score=a,o?a<r&&(r=a,n=e):(null==r||a<r||s)&&(r=a,n=e,s&&(o=!0));d(t,n||e)}function qn(t){if(!t._d){var e=it(t._i),n=void 0===e.day?e.date:e.day;t._a=f([e.year,e.month,n,e.hour,e.minute,e.second,e.millisecond],(function(t){return t&&parseInt(t,10)})),Fn(t)}}function Gn(t){var e=new D(_n(Wn(t)));return e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}function Wn(t){var e=t._i,n=t._f;return t._locale=t._locale||yn(t._l),null===e||void 0===n&&""===e?y({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),T(e)?new D(_n(e)):(h(e)?t._d=e:a(n)?zn(t):n?Un(t):Zn(t),v(t)||(t._d=null),t))}function Zn(t){var e=t._i;c(e)?t._d=new Date(r.now()):h(e)?t._d=new Date(e.valueOf()):"string"==typeof e?Bn(t):a(e)?(t._a=f(e.slice(0),(function(t){return parseInt(t,10)})),Fn(t)):s(e)?qn(t):l(e)?t._d=new Date(e):r.createFromInputFallback(t)}function $n(t,e,n,r,i){var o={};return!0!==e&&!1!==e||(r=e,e=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(s(t)&&u(t)||a(t)&&0===t.length)&&(t=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=i,o._l=n,o._i=t,o._f=e,o._strict=r,Gn(o)}function Kn(t,e,n,r){return $n(t,e,n,r,!1)}r.createFromInputFallback=x("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))})),r.ISO_8601=function(){},r.RFC_2822=function(){};var Xn=x("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=Kn.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:y()})),Qn=x("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=Kn.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:y()}));function Jn(t,e){var n,r;if(1===e.length&&a(e[0])&&(e=e[0]),!e.length)return Kn();for(n=e[0],r=1;r<e.length;++r)e[r].isValid()&&!e[r][t](n)||(n=e[r]);return n}function tr(){return Jn("isBefore",[].slice.call(arguments,0))}function er(){return Jn("isAfter",[].slice.call(arguments,0))}var nr=function(){return Date.now?Date.now():+new Date},rr=["year","quarter","month","week","day","hour","minute","second","millisecond"];function ir(t){var e,n,r=!1,i=rr.length;for(e in t)if(o(t,e)&&(-1===Ut.call(rr,e)||null!=t[e]&&isNaN(t[e])))return!1;for(n=0;n<i;++n)if(t[rr[n]]){if(r)return!1;parseFloat(t[rr[n]])!==lt(t[rr[n]])&&(r=!0)}return!0}function ar(){return this._isValid}function sr(){return kr(NaN)}function or(t){var e=it(t),n=e.year||0,r=e.quarter||0,i=e.month||0,a=e.week||e.isoWeek||0,s=e.day||0,o=e.hour||0,u=e.minute||0,c=e.second||0,l=e.millisecond||0;this._isValid=ir(e),this._milliseconds=+l+1e3*c+6e4*u+1e3*o*60*60,this._days=+s+7*a,this._months=+i+3*r+12*n,this._data={},this._locale=yn(),this._bubble()}function ur(t){return t instanceof or}function cr(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function lr(t,e,n){var r,i=Math.min(t.length,e.length),a=Math.abs(t.length-e.length),s=0;for(r=0;r<i;r++)(n&&t[r]!==e[r]||!n&<(t[r])!==lt(e[r]))&&s++;return s+a}function hr(t,e){F(t,0,0,(function(){var t=this.utcOffset(),n="+";return t<0&&(t=-t,n="-"),n+I(~~(t/60),2)+e+I(~~t%60,2)}))}hr("Z",":"),hr("ZZ",""),Nt("Z",At),Nt("ZZ",At),Lt(["Z","ZZ"],(function(t,e,n){n._useUTC=!0,n._tzm=dr(At,t)}));var fr=/([\+\-]|\d\d)/gi;function dr(t,e){var n,r,i=(e||"").match(t);return null===i?null:0===(r=60*(n=((i[i.length-1]||[])+"").match(fr)||["-",0,0])[1]+lt(n[2]))?0:"+"===n[0]?r:-r}function pr(t,e){var n,i;return e._isUTC?(n=e.clone(),i=(T(t)||h(t)?t.valueOf():Kn(t).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+i),r.updateOffset(n,!1),n):Kn(t).local()}function mr(t){return-Math.round(t._d.getTimezoneOffset())}function gr(t,e,n){var i,a=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=dr(At,t)))return this}else Math.abs(t)<16&&!n&&(t*=60);return!this._isUTC&&e&&(i=mr(this)),this._offset=t,this._isUTC=!0,null!=i&&this.add(i,"m"),a!==t&&(!e||this._changeInProgress?Nr(this,kr(t-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?a:mr(this)}function vr(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}function yr(t){return this.utcOffset(0,t)}function br(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(mr(this),"m")),this}function _r(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=dr(Ct,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this}function wr(t){return!!this.isValid()&&(t=t?Kn(t).utcOffset():0,(this.utcOffset()-t)%60==0)}function Dr(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Tr(){if(!c(this._isDSTShifted))return this._isDSTShifted;var t,e={};return w(e,this),(e=Wn(e))._a?(t=e._isUTC?p(e._a):Kn(e._a),this._isDSTShifted=this.isValid()&&lr(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Sr(){return!!this.isValid()&&!this._isUTC}function xr(){return!!this.isValid()&&this._isUTC}function Er(){return!!this.isValid()&&this._isUTC&&0===this._offset}r.updateOffset=function(){};var Mr=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Or=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function kr(t,e){var n,r,i,a=t,s=null;return ur(t)?a={ms:t._milliseconds,d:t._days,M:t._months}:l(t)||!isNaN(+t)?(a={},e?a[e]=+t:a.milliseconds=+t):(s=Mr.exec(t))?(n="-"===s[1]?-1:1,a={y:0,d:lt(s[qt])*n,h:lt(s[Gt])*n,m:lt(s[Wt])*n,s:lt(s[Zt])*n,ms:lt(cr(1e3*s[$t]))*n}):(s=Or.exec(t))?(n="-"===s[1]?-1:1,a={y:Cr(s[2],n),M:Cr(s[3],n),w:Cr(s[4],n),d:Cr(s[5],n),h:Cr(s[6],n),m:Cr(s[7],n),s:Cr(s[8],n)}):null==a?a={}:"object"==typeof a&&("from"in a||"to"in a)&&(i=Pr(Kn(a.from),Kn(a.to)),(a={}).ms=i.milliseconds,a.M=i.months),r=new or(a),ur(t)&&o(t,"_locale")&&(r._locale=t._locale),ur(t)&&o(t,"_isValid")&&(r._isValid=t._isValid),r}function Cr(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function Ar(t,e){var n={};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function Pr(t,e){var n;return t.isValid()&&e.isValid()?(e=pr(e,t),t.isBefore(e)?n=Ar(t,e):((n=Ar(e,t)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Rr(t,e){return function(n,r){var i;return null===r||isNaN(+r)||(O(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),Nr(this,kr(n,r),t),this}}function Nr(t,e,n,i){var a=e._milliseconds,s=cr(e._days),o=cr(e._months);t.isValid()&&(i=null==i||i,o&&ce(t,ft(t,"Month")+o*n),s&&dt(t,"Date",ft(t,"Date")+s*n),a&&t._d.setTime(t._d.valueOf()+a*n),i&&r.updateOffset(t,s||o))}kr.fn=or.prototype,kr.invalid=sr;var Ir=Rr(1,"add"),Vr=Rr(-1,"subtract");function Br(t){return"string"==typeof t||t instanceof String}function Yr(t){return T(t)||h(t)||Br(t)||l(t)||Fr(t)||Lr(t)||null==t}function Lr(t){var e,n,r=s(t)&&!u(t),i=!1,a=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],c=a.length;for(e=0;e<c;e+=1)n=a[e],i=i||o(t,n);return r&&i}function Fr(t){var e=a(t),n=!1;return e&&(n=0===t.filter((function(e){return!l(e)&&Br(t)})).length),e&&n}function jr(t){var e,n,r=s(t)&&!u(t),i=!1,a=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(e=0;e<a.length;e+=1)n=a[e],i=i||o(t,n);return r&&i}function Ur(t,e){var n=t.diff(e,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Hr(t,e){1===arguments.length&&(arguments[0]?Yr(arguments[0])?(t=arguments[0],e=void 0):jr(arguments[0])&&(e=arguments[0],t=void 0):(t=void 0,e=void 0));var n=t||Kn(),i=pr(n,this).startOf("day"),a=r.calendarFormat(this,i)||"sameElse",s=e&&(k(e[a])?e[a].call(this,n):e[a]);return this.format(s||this.localeData().calendar(a,this,Kn(n)))}function zr(){return new D(this)}function qr(t,e){var n=T(t)?t:Kn(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=rt(e)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(e).valueOf())}function Gr(t,e){var n=T(t)?t:Kn(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=rt(e)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(e).valueOf()<n.valueOf())}function Wr(t,e,n,r){var i=T(t)?t:Kn(t),a=T(e)?e:Kn(e);return!!(this.isValid()&&i.isValid()&&a.isValid())&&("("===(r=r||"()")[0]?this.isAfter(i,n):!this.isBefore(i,n))&&(")"===r[1]?this.isBefore(a,n):!this.isAfter(a,n))}function Zr(t,e){var n,r=T(t)?t:Kn(t);return!(!this.isValid()||!r.isValid())&&("millisecond"===(e=rt(e)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(e).valueOf()<=n&&n<=this.clone().endOf(e).valueOf()))}function $r(t,e){return this.isSame(t,e)||this.isAfter(t,e)}function Kr(t,e){return this.isSame(t,e)||this.isBefore(t,e)}function Xr(t,e,n){var r,i,a;if(!this.isValid())return NaN;if(!(r=pr(t,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),e=rt(e)){case"year":a=Qr(this,r)/12;break;case"month":a=Qr(this,r);break;case"quarter":a=Qr(this,r)/3;break;case"second":a=(this-r)/1e3;break;case"minute":a=(this-r)/6e4;break;case"hour":a=(this-r)/36e5;break;case"day":a=(this-r-i)/864e5;break;case"week":a=(this-r-i)/6048e5;break;default:a=this-r}return n?a:ct(a)}function Qr(t,e){if(t.date()<e.date())return-Qr(e,t);var n=12*(e.year()-t.year())+(e.month()-t.month()),r=t.clone().add(n,"months");return-(n+(e-r<0?(e-r)/(r-t.clone().add(n-1,"months")):(e-r)/(t.clone().add(n+1,"months")-r)))||0}function Jr(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function ti(t){if(!this.isValid())return null;var e=!0!==t,n=e?this.clone().utc():this;return n.year()<0||n.year()>9999?H(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):k(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",H(n,"Z")):H(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ei(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t,e,n,r,i="moment",a="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",a="Z"),t="["+i+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",r=a+'[")]',this.format(t+e+n+r)}function ni(t){t||(t=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var e=H(this,t);return this.localeData().postformat(e)}function ri(t,e){return this.isValid()&&(T(t)&&t.isValid()||Kn(t).isValid())?kr({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function ii(t){return this.from(Kn(),t)}function ai(t,e){return this.isValid()&&(T(t)&&t.isValid()||Kn(t).isValid())?kr({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function si(t){return this.to(Kn(),t)}function oi(t){var e;return void 0===t?this._locale._abbr:(null!=(e=yn(t))&&(this._locale=e),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var ui=x("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(t){return void 0===t?this.localeData():this.locale(t)}));function ci(){return this._locale}var li=1e3,hi=60*li,fi=60*hi,di=3506328*fi;function pi(t,e){return(t%e+e)%e}function mi(t,e,n){return t<100&&t>=0?new Date(t+400,e,n)-di:new Date(t,e,n).valueOf()}function gi(t,e,n){return t<100&&t>=0?Date.UTC(t+400,e,n)-di:Date.UTC(t,e,n)}function vi(t){var e,n;if(void 0===(t=rt(t))||"millisecond"===t||!this.isValid())return this;switch(n=this._isUTC?gi:mi,t){case"year":e=n(this.year(),0,1);break;case"quarter":e=n(this.year(),this.month()-this.month()%3,1);break;case"month":e=n(this.year(),this.month(),1);break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=n(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=pi(e+(this._isUTC?0:this.utcOffset()*hi),fi);break;case"minute":e=this._d.valueOf(),e-=pi(e,hi);break;case"second":e=this._d.valueOf(),e-=pi(e,li)}return this._d.setTime(e),r.updateOffset(this,!0),this}function yi(t){var e,n;if(void 0===(t=rt(t))||"millisecond"===t||!this.isValid())return this;switch(n=this._isUTC?gi:mi,t){case"year":e=n(this.year()+1,0,1)-1;break;case"quarter":e=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=n(this.year(),this.month()+1,1)-1;break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=fi-pi(e+(this._isUTC?0:this.utcOffset()*hi),fi)-1;break;case"minute":e=this._d.valueOf(),e+=hi-pi(e,hi)-1;break;case"second":e=this._d.valueOf(),e+=li-pi(e,li)-1}return this._d.setTime(e),r.updateOffset(this,!0),this}function bi(){return this._d.valueOf()-6e4*(this._offset||0)}function _i(){return Math.floor(this.valueOf()/1e3)}function wi(){return new Date(this.valueOf())}function Di(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function Ti(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}}function Si(){return this.isValid()?this.toISOString():null}function xi(){return v(this)}function Ei(){return d({},g(this))}function Mi(){return g(this).overflow}function Oi(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function ki(t,e){var n,i,a,s=this._eras||yn("en")._eras;for(n=0,i=s.length;n<i;++n)switch("string"==typeof s[n].since&&(a=r(s[n].since).startOf("day"),s[n].since=a.valueOf()),typeof s[n].until){case"undefined":s[n].until=1/0;break;case"string":a=r(s[n].until).startOf("day").valueOf(),s[n].until=a.valueOf()}return s}function Ci(t,e,n){var r,i,a,s,o,u=this.eras();for(t=t.toUpperCase(),r=0,i=u.length;r<i;++r)if(a=u[r].name.toUpperCase(),s=u[r].abbr.toUpperCase(),o=u[r].narrow.toUpperCase(),n)switch(e){case"N":case"NN":case"NNN":if(s===t)return u[r];break;case"NNNN":if(a===t)return u[r];break;case"NNNNN":if(o===t)return u[r]}else if([a,s,o].indexOf(t)>=0)return u[r]}function Ai(t,e){var n=t.since<=t.until?1:-1;return void 0===e?r(t.since).year():r(t.since).year()+(e-t.offset)*n}function Pi(){var t,e,n,r=this.localeData().eras();for(t=0,e=r.length;t<e;++t){if(n=this.clone().startOf("day").valueOf(),r[t].since<=n&&n<=r[t].until)return r[t].name;if(r[t].until<=n&&n<=r[t].since)return r[t].name}return""}function Ri(){var t,e,n,r=this.localeData().eras();for(t=0,e=r.length;t<e;++t){if(n=this.clone().startOf("day").valueOf(),r[t].since<=n&&n<=r[t].until)return r[t].narrow;if(r[t].until<=n&&n<=r[t].since)return r[t].narrow}return""}function Ni(){var t,e,n,r=this.localeData().eras();for(t=0,e=r.length;t<e;++t){if(n=this.clone().startOf("day").valueOf(),r[t].since<=n&&n<=r[t].until)return r[t].abbr;if(r[t].until<=n&&n<=r[t].since)return r[t].abbr}return""}function Ii(){var t,e,n,i,a=this.localeData().eras();for(t=0,e=a.length;t<e;++t)if(n=a[t].since<=a[t].until?1:-1,i=this.clone().startOf("day").valueOf(),a[t].since<=i&&i<=a[t].until||a[t].until<=i&&i<=a[t].since)return(this.year()-r(a[t].since).year())*n+a[t].offset;return this.year()}function Vi(t){return o(this,"_erasNameRegex")||Hi.call(this),t?this._erasNameRegex:this._erasRegex}function Bi(t){return o(this,"_erasAbbrRegex")||Hi.call(this),t?this._erasAbbrRegex:this._erasRegex}function Yi(t){return o(this,"_erasNarrowRegex")||Hi.call(this),t?this._erasNarrowRegex:this._erasRegex}function Li(t,e){return e.erasAbbrRegex(t)}function Fi(t,e){return e.erasNameRegex(t)}function ji(t,e){return e.erasNarrowRegex(t)}function Ui(t,e){return e._eraYearOrdinalRegex||Ot}function Hi(){var t,e,n=[],r=[],i=[],a=[],s=this.eras();for(t=0,e=s.length;t<e;++t)r.push(Bt(s[t].name)),n.push(Bt(s[t].abbr)),i.push(Bt(s[t].narrow)),a.push(Bt(s[t].name)),a.push(Bt(s[t].abbr)),a.push(Bt(s[t].narrow));this._erasRegex=new RegExp("^("+a.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+r.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+i.join("|")+")","i")}function zi(t,e){F(0,[t,t.length],0,e)}function qi(t){return Xi.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Gi(t){return Xi.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)}function Wi(){return Te(this.year(),1,4)}function Zi(){return Te(this.isoWeekYear(),1,4)}function $i(){var t=this.localeData()._week;return Te(this.year(),t.dow,t.doy)}function Ki(){var t=this.localeData()._week;return Te(this.weekYear(),t.dow,t.doy)}function Xi(t,e,n,r,i){var a;return null==t?De(this,r,i).year:(e>(a=Te(t,r,i))&&(e=a),Qi.call(this,t,e,n,r,i))}function Qi(t,e,n,r,i){var a=we(t,e,n,r,i),s=be(a.year,0,a.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}function Ji(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)}F("N",0,0,"eraAbbr"),F("NN",0,0,"eraAbbr"),F("NNN",0,0,"eraAbbr"),F("NNNN",0,0,"eraName"),F("NNNNN",0,0,"eraNarrow"),F("y",["y",1],"yo","eraYear"),F("y",["yy",2],0,"eraYear"),F("y",["yyy",3],0,"eraYear"),F("y",["yyyy",4],0,"eraYear"),Nt("N",Li),Nt("NN",Li),Nt("NNN",Li),Nt("NNNN",Fi),Nt("NNNNN",ji),Lt(["N","NN","NNN","NNNN","NNNNN"],(function(t,e,n,r){var i=n._locale.erasParse(t,r,n._strict);i?g(n).era=i:g(n).invalidEra=t})),Nt("y",Ot),Nt("yy",Ot),Nt("yyy",Ot),Nt("yyyy",Ot),Nt("yo",Ui),Lt(["y","yy","yyy","yyyy"],Ht),Lt(["yo"],(function(t,e,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=t.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?e[Ht]=n._locale.eraYearOrdinalParse(t,i):e[Ht]=parseInt(t,10)})),F(0,["gg",2],0,(function(){return this.weekYear()%100})),F(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),zi("gggg","weekYear"),zi("ggggg","weekYear"),zi("GGGG","isoWeekYear"),zi("GGGGG","isoWeekYear"),nt("weekYear","gg"),nt("isoWeekYear","GG"),st("weekYear",1),st("isoWeekYear",1),Nt("G",kt),Nt("g",kt),Nt("GG",Dt,yt),Nt("gg",Dt,yt),Nt("GGGG",Et,_t),Nt("gggg",Et,_t),Nt("GGGGG",Mt,wt),Nt("ggggg",Mt,wt),Ft(["gggg","ggggg","GGGG","GGGGG"],(function(t,e,n,r){e[r.substr(0,2)]=lt(t)})),Ft(["gg","GG"],(function(t,e,n,i){e[i]=r.parseTwoDigitYear(t)})),F("Q",0,"Qo","quarter"),nt("quarter","Q"),st("quarter",7),Nt("Q",vt),Lt("Q",(function(t,e){e[zt]=3*(lt(t)-1)})),F("D",["DD",2],"Do","date"),nt("date","D"),st("date",9),Nt("D",Dt),Nt("DD",Dt,yt),Nt("Do",(function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient})),Lt(["D","DD"],qt),Lt("Do",(function(t,e){e[qt]=lt(t.match(Dt)[0])}));var ta=ht("Date",!0);function ea(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")}F("DDD",["DDDD",3],"DDDo","dayOfYear"),nt("dayOfYear","DDD"),st("dayOfYear",4),Nt("DDD",xt),Nt("DDDD",bt),Lt(["DDD","DDDD"],(function(t,e,n){n._dayOfYear=lt(t)})),F("m",["mm",2],0,"minute"),nt("minute","m"),st("minute",14),Nt("m",Dt),Nt("mm",Dt,yt),Lt(["m","mm"],Wt);var na=ht("Minutes",!1);F("s",["ss",2],0,"second"),nt("second","s"),st("second",15),Nt("s",Dt),Nt("ss",Dt,yt),Lt(["s","ss"],Zt);var ra,ia,aa=ht("Seconds",!1);for(F("S",0,0,(function(){return~~(this.millisecond()/100)})),F(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),F(0,["SSS",3],0,"millisecond"),F(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),F(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),F(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),F(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),F(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),F(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),nt("millisecond","ms"),st("millisecond",16),Nt("S",xt,vt),Nt("SS",xt,yt),Nt("SSS",xt,bt),ra="SSSS";ra.length<=9;ra+="S")Nt(ra,Ot);function sa(t,e){e[$t]=lt(1e3*("0."+t))}for(ra="S";ra.length<=9;ra+="S")Lt(ra,sa);function oa(){return this._isUTC?"UTC":""}function ua(){return this._isUTC?"Coordinated Universal Time":""}ia=ht("Milliseconds",!1),F("z",0,0,"zoneAbbr"),F("zz",0,0,"zoneName");var ca=D.prototype;function la(t){return Kn(1e3*t)}function ha(){return Kn.apply(null,arguments).parseZone()}function fa(t){return t}ca.add=Ir,ca.calendar=Hr,ca.clone=zr,ca.diff=Xr,ca.endOf=yi,ca.format=ni,ca.from=ri,ca.fromNow=ii,ca.to=ai,ca.toNow=si,ca.get=pt,ca.invalidAt=Mi,ca.isAfter=qr,ca.isBefore=Gr,ca.isBetween=Wr,ca.isSame=Zr,ca.isSameOrAfter=$r,ca.isSameOrBefore=Kr,ca.isValid=xi,ca.lang=ui,ca.locale=oi,ca.localeData=ci,ca.max=Qn,ca.min=Xn,ca.parsingFlags=Ei,ca.set=mt,ca.startOf=vi,ca.subtract=Vr,ca.toArray=Di,ca.toObject=Ti,ca.toDate=wi,ca.toISOString=ti,ca.inspect=ei,"undefined"!=typeof Symbol&&null!=Symbol.for&&(ca[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),ca.toJSON=Si,ca.toString=Jr,ca.unix=_i,ca.valueOf=bi,ca.creationData=Oi,ca.eraName=Pi,ca.eraNarrow=Ri,ca.eraAbbr=Ni,ca.eraYear=Ii,ca.year=ge,ca.isLeapYear=ve,ca.weekYear=qi,ca.isoWeekYear=Gi,ca.quarter=ca.quarters=Ji,ca.month=le,ca.daysInMonth=he,ca.week=ca.weeks=Oe,ca.isoWeek=ca.isoWeeks=ke,ca.weeksInYear=$i,ca.weeksInWeekYear=Ki,ca.isoWeeksInYear=Wi,ca.isoWeeksInISOWeekYear=Zi,ca.date=ta,ca.day=ca.days=ze,ca.weekday=qe,ca.isoWeekday=Ge,ca.dayOfYear=ea,ca.hour=ca.hours=rn,ca.minute=ca.minutes=na,ca.second=ca.seconds=aa,ca.millisecond=ca.milliseconds=ia,ca.utcOffset=gr,ca.utc=yr,ca.local=br,ca.parseZone=_r,ca.hasAlignedHourOffset=wr,ca.isDST=Dr,ca.isLocal=Sr,ca.isUtcOffset=xr,ca.isUtc=Er,ca.isUTC=Er,ca.zoneAbbr=oa,ca.zoneName=ua,ca.dates=x("dates accessor is deprecated. Use date instead.",ta),ca.months=x("months accessor is deprecated. Use month instead",le),ca.years=x("years accessor is deprecated. Use year instead",ge),ca.zone=x("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",vr),ca.isDSTShifted=x("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Tr);var da=P.prototype;function pa(t,e,n,r){var i=yn(),a=p().set(r,e);return i[n](a,t)}function ma(t,e,n){if(l(t)&&(e=t,t=void 0),t=t||"",null!=e)return pa(t,e,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=pa(t,r,n,"month");return i}function ga(t,e,n,r){"boolean"==typeof t?(l(e)&&(n=e,e=void 0),e=e||""):(n=e=t,t=!1,l(e)&&(n=e,e=void 0),e=e||"");var i,a=yn(),s=t?a._week.dow:0,o=[];if(null!=n)return pa(e,(n+s)%7,r,"day");for(i=0;i<7;i++)o[i]=pa(e,(i+s)%7,r,"day");return o}function va(t,e){return ma(t,e,"months")}function ya(t,e){return ma(t,e,"monthsShort")}function ba(t,e,n){return ga(t,e,n,"weekdays")}function _a(t,e,n){return ga(t,e,n,"weekdaysShort")}function wa(t,e,n){return ga(t,e,n,"weekdaysMin")}da.calendar=N,da.longDateFormat=G,da.invalidDate=Z,da.ordinal=X,da.preparse=fa,da.postformat=fa,da.relativeTime=J,da.pastFuture=tt,da.set=C,da.eras=ki,da.erasParse=Ci,da.erasConvertYear=Ai,da.erasAbbrRegex=Bi,da.erasNameRegex=Vi,da.erasNarrowRegex=Yi,da.months=ae,da.monthsShort=se,da.monthsParse=ue,da.monthsRegex=de,da.monthsShortRegex=fe,da.week=Se,da.firstDayOfYear=Me,da.firstDayOfWeek=Ee,da.weekdays=Le,da.weekdaysMin=je,da.weekdaysShort=Fe,da.weekdaysParse=He,da.weekdaysRegex=We,da.weekdaysShortRegex=Ze,da.weekdaysMinRegex=$e,da.isPM=en,da.meridiem=an,mn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===lt(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),r.lang=x("moment.lang is deprecated. Use moment.locale instead.",mn),r.langData=x("moment.langData is deprecated. Use moment.localeData instead.",yn);var Da=Math.abs;function Ta(){var t=this._data;return this._milliseconds=Da(this._milliseconds),this._days=Da(this._days),this._months=Da(this._months),t.milliseconds=Da(t.milliseconds),t.seconds=Da(t.seconds),t.minutes=Da(t.minutes),t.hours=Da(t.hours),t.months=Da(t.months),t.years=Da(t.years),this}function Sa(t,e,n,r){var i=kr(e,n);return t._milliseconds+=r*i._milliseconds,t._days+=r*i._days,t._months+=r*i._months,t._bubble()}function xa(t,e){return Sa(this,t,e,1)}function Ea(t,e){return Sa(this,t,e,-1)}function Ma(t){return t<0?Math.floor(t):Math.ceil(t)}function Oa(){var t,e,n,r,i,a=this._milliseconds,s=this._days,o=this._months,u=this._data;return a>=0&&s>=0&&o>=0||a<=0&&s<=0&&o<=0||(a+=864e5*Ma(Ca(o)+s),s=0,o=0),u.milliseconds=a%1e3,t=ct(a/1e3),u.seconds=t%60,e=ct(t/60),u.minutes=e%60,n=ct(e/60),u.hours=n%24,s+=ct(n/24),o+=i=ct(ka(s)),s-=Ma(Ca(i)),r=ct(o/12),o%=12,u.days=s,u.months=o,u.years=r,this}function ka(t){return 4800*t/146097}function Ca(t){return 146097*t/4800}function Aa(t){if(!this.isValid())return NaN;var e,n,r=this._milliseconds;if("month"===(t=rt(t))||"quarter"===t||"year"===t)switch(e=this._days+r/864e5,n=this._months+ka(e),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(Ca(this._months)),t){case"week":return e/7+r/6048e5;case"day":return e+r/864e5;case"hour":return 24*e+r/36e5;case"minute":return 1440*e+r/6e4;case"second":return 86400*e+r/1e3;case"millisecond":return Math.floor(864e5*e)+r;default:throw new Error("Unknown unit "+t)}}function Pa(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*lt(this._months/12):NaN}function Ra(t){return function(){return this.as(t)}}var Na=Ra("ms"),Ia=Ra("s"),Va=Ra("m"),Ba=Ra("h"),Ya=Ra("d"),La=Ra("w"),Fa=Ra("M"),ja=Ra("Q"),Ua=Ra("y");function Ha(){return kr(this)}function za(t){return t=rt(t),this.isValid()?this[t+"s"]():NaN}function qa(t){return function(){return this.isValid()?this._data[t]:NaN}}var Ga=qa("milliseconds"),Wa=qa("seconds"),Za=qa("minutes"),$a=qa("hours"),Ka=qa("days"),Xa=qa("months"),Qa=qa("years");function Ja(){return ct(this.days()/7)}var ts=Math.round,es={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ns(t,e,n,r,i){return i.relativeTime(e||1,!!n,t,r)}function rs(t,e,n,r){var i=kr(t).abs(),a=ts(i.as("s")),s=ts(i.as("m")),o=ts(i.as("h")),u=ts(i.as("d")),c=ts(i.as("M")),l=ts(i.as("w")),h=ts(i.as("y")),f=a<=n.ss&&["s",a]||a<n.s&&["ss",a]||s<=1&&["m"]||s<n.m&&["mm",s]||o<=1&&["h"]||o<n.h&&["hh",o]||u<=1&&["d"]||u<n.d&&["dd",u];return null!=n.w&&(f=f||l<=1&&["w"]||l<n.w&&["ww",l]),(f=f||c<=1&&["M"]||c<n.M&&["MM",c]||h<=1&&["y"]||["yy",h])[2]=e,f[3]=+t>0,f[4]=r,ns.apply(null,f)}function is(t){return void 0===t?ts:"function"==typeof t&&(ts=t,!0)}function as(t,e){return void 0!==es[t]&&(void 0===e?es[t]:(es[t]=e,"s"===t&&(es.ss=e-1),!0))}function ss(t,e){if(!this.isValid())return this.localeData().invalidDate();var n,r,i=!1,a=es;return"object"==typeof t&&(e=t,t=!1),"boolean"==typeof t&&(i=t),"object"==typeof e&&(a=Object.assign({},es,e),null!=e.s&&null==e.ss&&(a.ss=e.s-1)),r=rs(this,!i,a,n=this.localeData()),i&&(r=n.pastFuture(+this,r)),n.postformat(r)}var os=Math.abs;function us(t){return(t>0)-(t<0)||+t}function cs(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n,r,i,a,s,o,u=os(this._milliseconds)/1e3,c=os(this._days),l=os(this._months),h=this.asSeconds();return h?(t=ct(u/60),e=ct(t/60),u%=60,t%=60,n=ct(l/12),l%=12,r=u?u.toFixed(3).replace(/\.?0+$/,""):"",i=h<0?"-":"",a=us(this._months)!==us(h)?"-":"",s=us(this._days)!==us(h)?"-":"",o=us(this._milliseconds)!==us(h)?"-":"",i+"P"+(n?a+n+"Y":"")+(l?a+l+"M":"")+(c?s+c+"D":"")+(e||t||u?"T":"")+(e?o+e+"H":"")+(t?o+t+"M":"")+(u?o+r+"S":"")):"P0D"}var ls=or.prototype;return ls.isValid=ar,ls.abs=Ta,ls.add=xa,ls.subtract=Ea,ls.as=Aa,ls.asMilliseconds=Na,ls.asSeconds=Ia,ls.asMinutes=Va,ls.asHours=Ba,ls.asDays=Ya,ls.asWeeks=La,ls.asMonths=Fa,ls.asQuarters=ja,ls.asYears=Ua,ls.valueOf=Pa,ls._bubble=Oa,ls.clone=Ha,ls.get=za,ls.milliseconds=Ga,ls.seconds=Wa,ls.minutes=Za,ls.hours=$a,ls.days=Ka,ls.weeks=Ja,ls.months=Xa,ls.years=Qa,ls.humanize=ss,ls.toISOString=cs,ls.toString=cs,ls.toJSON=cs,ls.locale=oi,ls.localeData=ci,ls.toIsoString=x("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",cs),ls.lang=ui,F("X",0,0,"unix"),F("x",0,0,"valueOf"),Nt("x",kt),Nt("X",Pt),Lt("X",(function(t,e,n){n._d=new Date(1e3*parseFloat(t))})),Lt("x",(function(t,e,n){n._d=new Date(lt(t))})),
|
|
17
17
|
//! moment.js
|
|
18
|
-
r.version="2.29.1",i(Kn),r.fn=ua,r.min=Jn,r.max=tr,r.now=er,r.utc=p,r.unix=ca,r.months=ga,r.isDate=h,r.locale=mn,r.invalid=y,r.duration=Or,r.isMoment=S,r.weekdays=ya,r.parseZone=la,r.localeData=yn,r.isDuration=or,r.monthsShort=va,r.weekdaysMin=ba,r.defineLocale=gn,r.updateLocale=vn,r.locales=_n,r.weekdaysShort=_a,r.normalizeUnits=rt,r.relativeTimeRounding=rs,r.relativeTimeThreshold=is,r.calendarFormat=jr,r.prototype=ua,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r}()})),en=Je((function(t,e){!function(){function e(t,e){return void 0===e?e={autoBom:!1}:"object"!=typeof e&&(console.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\ufeff",t],{type:t.type}):t}function n(t,e,n){var r=new XMLHttpRequest;r.open("GET",t),r.responseType="blob",r.onload=function(){o(r.response,e,n)},r.onerror=function(){console.error("could not download file")},r.send()}function r(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return 200<=e.status&&299>=e.status}function i(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(n){var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}}var a="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof Xe&&Xe.global===Xe?Xe:void 0,s=a.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),o=a.saveAs||("object"!=typeof window||window!==a?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(t,e,s){var o=a.URL||a.webkitURL,u=document.createElement("a");e=e||t.name||"download",u.download=e,u.rel="noopener","string"==typeof t?(u.href=t,u.origin===location.origin?i(u):r(u.href)?n(t,e,s):i(u,u.target="_blank")):(u.href=o.createObjectURL(t),setTimeout((function(){o.revokeObjectURL(u.href)}),4e4),setTimeout((function(){i(u)}),0))}:"msSaveOrOpenBlob"in navigator?function(t,a,s){if(a=a||t.name||"download","string"!=typeof t)navigator.msSaveOrOpenBlob(e(t,s),a);else if(r(t))n(t,a,s);else{var o=document.createElement("a");o.href=t,o.target="_blank",setTimeout((function(){i(o)}))}}:function(t,e,r,i){if((i=i||open("","_blank"))&&(i.document.title=i.document.body.innerText="downloading..."),"string"==typeof t)return n(t,e,r);var o="application/octet-stream"===t.type,u=/constructor/i.test(a.HTMLElement)||a.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||o&&u||s)&&"undefined"!=typeof FileReader){var l=new FileReader;l.onloadend=function(){var t=l.result;t=c?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=t:location=t,i=null},l.readAsDataURL(t)}else{var h=a.URL||a.webkitURL,f=h.createObjectURL(t);i?i.location=f:location.href=f,i=null,setTimeout((function(){h.revokeObjectURL(f)}),4e4)}});a.saveAs=o.saveAs=o,t.exports=o}()})),nn=function(e){if(0===e.length)return[];var n=function(e){for(var i,a,s,o=0;o<e.length;o++)e[o].tmpData&&(e[o]=Object.assign({},(a=e[o],s=void 0,delete(s=t.cloneDeep(a)).comData,r({},s)))),e[o]&&e[o].children&&(null===(i=e[o])||void 0===i?void 0:i.children.length)?n(e[o].children):e[o]&&e[o].dynamicChildren&&Array.from(e[o].dynamicChildren).forEach((function(t,e){n(t[1])}))};return n(e),e},rn=function(e){var n=t.cloneDeep(e)?t.cloneDeep(e):{};"string"==typeof e&&(n=JSON.parse(e));var r=[];if(n instanceof Array)n.forEach((function(t,e){var n=JSON.parse(t.caseDetailData)?JSON.parse(t.caseDetailData):{},i=t.caseDetailPath,a=t.caseDetailName,s=n.theme,o=void 0===s?null:s,u=n.globalVars,c=void 0===u?null:u,l=n.shareVariableTree,h=void 0===l?null:l,f=n.plant,d=void 0===f?null:f,p=n.list,m=void 0===p?[]:p,g=n.path,v=void 0===g?"":g;n.name;var y=n.resource,_=void 0===y?{jspaths:[],csspaths:[],otherpaths:[]}:y,b=n.globalEvents,w=void 0===b?[]:b;r.push({path:v||i,theme:o,name:a,resource:_,globalVars:c,globalEvents:w,shareVariableTree:h,plant:d,list:nn(m)})}));else{var i=n.theme,a=void 0===i?null:i,s=n.globalVars,o=void 0===s?null:s,u=n.shareVariableTree,c=void 0===u?null:u,l=n.plant,h=void 0===l?null:l,f=n.list,d=void 0===f?[]:f,p=n.resource,m=void 0===p?{jspaths:[],csspaths:[],otherpaths:[]}:p,g=n.globalEvents,v=void 0===g?[]:g;r.push({resource:m,theme:a,globalVars:o,globalEvents:v,shareVariableTree:c,plant:h,list:nn(d)})}return r};function an(t,e){throw new Error("".concat(t,":Expected HTMLElement, got ").concat(e))}var sn=function(){function t(t){this.option=t,this.option.isResize&&window.addEventListener("resize",this.resize.bind(this))}return Object.defineProperty(t,"defaultOption",{get:function(){return t._defaultOption},set:function(e){t._defaultOption=e},enumerable:!1,configurable:!0}),t.getInstance=function(e){return t.instance||(t.instance=new t(e)),t.instance},t.prototype.removeResize=function(){window.removeEventListener("resize",this.resize.bind(this))},t.prototype.resize=function(){var t=this.option,e=t.isEqualScale,n=t.wrapSelector,r=t.viewSelector,i=t.designWidth,a=t.designHeight,s=t.horizontal,o=t.vertical,u=document.querySelector(n);u||an("wrap",u);var c=u.clientWidth,l=u.clientHeight,h=document.querySelector(r);h||an("view",h),h.style.position="absolute",h.style.width=i+"px",h.style.height=a+"px";var f,d,p,m,g=Math.min(c/i,l/a);if(e){switch(h.style.transform="scale(".concat(g,")"),s){case"center":f=(c-i)/2+"px";break;case"left":f=(g-1)/2*i+"px";break;case"right":p=(g-1)/2*i+"px"}switch(o){case"center":d=(l-a)/2+"px";break;case"top":d=(g-1)/2*a+"px";break;case"bottom":m=(g-1)/2*a+"px"}}else h.style.transform="scale('".concat(c/i,", ").concat(l/a,"')"),f=(c-i)/2+"px",d=(l-a)/2+"px";d?h.style.top=d:m&&(h.style.bottom=m),f?h.style.left=f:p&&(h.style.right=p)},t._defaultOption={isEqualScale:!0,designWidth:1920,designHeight:1080,wrapSelector:"body",viewSelector:"#app",horizontal:"center",vertical:"center",isResize:!0},t}(),on=function(){function e(t){this.wrap=null,this.target=null,this.type=0,this.minRatio=1,this.outSize={w:0,h:0},this.inSize={w:0,h:0};var e=t.wrap,n=t.target,r=t.type,i=t.size,a=t.callback;this.size=i,this.type=r,this.initOptions(e,n,i),this.initSize(i),this.layout(),this.scale(a),window.addEventListener("resize",this.reset.bind(this,a))}return e.prototype.reset=function(t){this.initSize(this.size),this.layout(),t?this.scale(t):this.scale()},e.getInstance=function(t){return e.instance||(e.instance=new e(t)),e.instance},e.prototype.removeResize=function(){window.removeEventListener("resize",this.reset.bind(this,void 0))},e.prototype.getDom=function(e){if(t.isElement(e))return e;var n=document.querySelector(e);return t.isElement(n)?n:null},e.prototype.initOptions=function(t,e,n){this.wrap=this.getDom(t),this.target=this.getDom(e),this.target.style.width=n.w+"px",this.target.style.height=n.h+"px",this.verificationDom()},e.prototype.initSize=function(t){this.outSize.w=this.wrap.clientWidth,this.outSize.h=this.wrap.clientHeight,this.inSize=t},e.prototype.verificationDom=function(){null!=this.wrap&&null!=this.target&&this.isChildOf(this.wrap,this.target)||console.warn("Please pass in the DOM element correctly!")},e.prototype.layout=function(){if(0==this.type||3==this.type){var t=(this.outSize.w-this.inSize.w)/2,e=(this.outSize.h-this.inSize.h)/2;this.target.style.top=e+"px",this.target.style.left=t+"px"}else this.wrap.style.display="flex",this.wrap.style["align-items"]="center",this.wrap.style["justify-content"]="center",this.target.style.position="static",1==this.type?(this.wrap.style["overflow-y"]="auto",this.wrap.style["overflow-x"]="hidden"):2==this.type&&(this.wrap.style["overflow-y"]="hidden",this.wrap.style["overflow-x"]="auto")},e.prototype.isChildOf=function(t,e){var n;if(t&&e)for(n=t.parentNode;n;){if(e===n)return!0;n=n.parentNode}return!1},e.prototype.scale=function(t){var e=1,n=1;switch(this.type){case 0:e=Math.min(this.outSize.w/this.inSize.w,this.outSize.h/this.inSize.h),n=Math.min(this.outSize.w/this.inSize.w,this.outSize.h/this.inSize.h);break;case 1:n=e=this.outSize.w/this.inSize.w;break;case 2:e=n=this.outSize.h/this.inSize.h;break;case 3:e=this.outSize.w/this.inSize.w,n=this.outSize.h/this.inSize.h}t&&t([e,n]),this.target.style.transform="scale(".concat(e,",").concat(n,")")},e.prototype.resize=function(){},e}(),un=Je((function(t){!function(e){var n=function(){return{escape:function(t){return t.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1")},parseExtension:t,mimeType:function(e){var n=t(e).toLowerCase();return(r="application/font-woff",i="image/jpeg",{woff:r,woff2:r,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:i,jpeg:i,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml"})[n]||"";var r,i},dataAsUrl:function(t,e){return"data:"+e+";base64,"+t},isDataUrl:function(t){return-1!==t.search(/^(data:)/)},canvasToBlob:function(t){return t.toBlob?new Promise((function(e){t.toBlob(e)})):function(t){return new Promise((function(e){for(var n=window.atob(t.toDataURL().split(",")[1]),r=n.length,i=new Uint8Array(r),a=0;a<r;a++)i[a]=n.charCodeAt(a);e(new Blob([i],{type:"image/png"}))}))}(t)},resolveUrl:function(t,e){var n=document.implementation.createHTMLDocument(),r=n.createElement("base");n.head.appendChild(r);var i=n.createElement("a");return n.body.appendChild(i),r.href=e,i.href=t,i.href},getAndEncode:function(t){var e=3e4;o.impl.options.cacheBust&&(t+=(/\?/.test(t)?"&":"?")+(new Date).getTime());return new Promise((function(n){var r,i=new XMLHttpRequest;if(i.onreadystatechange=s,i.ontimeout=u,i.responseType="blob",i.timeout=e,i.open("GET",t,!0),i.send(),o.impl.options.imagePlaceholder){var a=o.impl.options.imagePlaceholder.split(/,/);a&&a[1]&&(r=a[1])}function s(){if(4===i.readyState)if(200===i.status){var e=new FileReader;e.onloadend=function(){var t=e.result.split(/,/)[1];n(t)},e.readAsDataURL(i.response)}else r?n(r):c("cannot fetch resource: "+t+", status: "+i.status)}function u(){r?n(r):c("timeout of "+e+"ms occured while fetching resource: "+t)}function c(t){console.error(t),n("")}}))},uid:function(){var t=0;return function(){return"u"+e()+t++;function e(){return("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4)}}}(),delay:function(t){return function(e){return new Promise((function(n){setTimeout((function(){n(e)}),t)}))}},asArray:function(t){for(var e=[],n=t.length,r=0;r<n;r++)e.push(t[r]);return e},escapeXhtml:function(t){return t.replace(/#/g,"%23").replace(/\n/g,"%0A")},makeImage:function(t){return new Promise((function(e,n){var r=new Image;r.onload=function(){e(r)},r.onerror=n,r.src=t}))},width:function(t){var n=e(t,"border-left-width"),r=e(t,"border-right-width");return t.scrollWidth+n+r},height:function(t){var n=e(t,"border-top-width"),r=e(t,"border-bottom-width");return t.scrollHeight+n+r}};function t(t){var e=/\.([^\.\/]*?)$/g.exec(t);return e?e[1]:""}function e(t,e){var n=window.getComputedStyle(t).getPropertyValue(e);return parseFloat(n.replace("px",""))}}(),r=function(){var t=/url\(['"]?([^'"]+?)['"]?\)/g;return{inlineAll:function(t,n,a){return s()?Promise.resolve(t):Promise.resolve(t).then(r).then((function(e){var r=Promise.resolve(t);return e.forEach((function(t){r=r.then((function(e){return i(e,t,n,a)}))})),r}));function s(){return!e(t)}},shouldProcess:e,impl:{readUrls:r,inline:i}};function e(e){return-1!==e.search(t)}function r(e){for(var r,i=[];null!==(r=t.exec(e));)i.push(r[1]);return i.filter((function(t){return!n.isDataUrl(t)}))}function i(t,e,r,i){return Promise.resolve(e).then((function(t){return r?n.resolveUrl(t,r):t})).then(i||n.getAndEncode).then((function(t){return n.dataAsUrl(t,n.mimeType(e))})).then((function(r){return t.replace(function(t){return new RegExp("(url\\(['\"]?)("+n.escape(t)+")(['\"]?\\))","g")}(e),"$1"+r+"$3")}))}}(),i=function(){return{resolveAll:function(){return t().then((function(t){return Promise.all(t.map((function(t){return t.resolve()})))})).then((function(t){return t.join("\n")}))},impl:{readAll:t}};function t(){return Promise.resolve(n.asArray(document.styleSheets)).then((function(t){var e=[];return t.forEach((function(t){try{n.asArray(t.cssRules||[]).forEach(e.push.bind(e))}catch(e){console.log("Error while reading CSS rules from "+t.href,e.toString())}})),e})).then((function(t){return t.filter((function(t){return t.type===CSSRule.FONT_FACE_RULE})).filter((function(t){return r.shouldProcess(t.style.getPropertyValue("src"))}))})).then((function(e){return e.map(t)}));function t(t){return{resolve:function(){var e=(t.parentStyleSheet||{}).href;return r.inlineAll(t.cssText,e)},src:function(){return t.style.getPropertyValue("src")}}}}}(),a=function(){return{inlineAll:function e(i){return i instanceof Element?a(i).then((function(){return i instanceof HTMLImageElement?t(i).inline():Promise.all(n.asArray(i.childNodes).map((function(t){return e(t)})))})):Promise.resolve(i);function a(t){var e=t.style.getPropertyValue("background");return e?r.inlineAll(e).then((function(e){t.style.setProperty("background",e,t.style.getPropertyPriority("background"))})).then((function(){return t})):Promise.resolve(t)}},impl:{newImage:t}};function t(t){return{inline:function(e){return n.isDataUrl(t.src)?Promise.resolve():Promise.resolve(t.src).then(e||n.getAndEncode).then((function(e){return n.dataAsUrl(e,n.mimeType(t.src))})).then((function(e){return new Promise((function(n,r){t.onload=n,t.onerror=r,t.src=e}))}))}}}}(),s={imagePlaceholder:void 0,cacheBust:!1},o={toSvg:u,toPng:function(t,e){return c(t,e||{}).then((function(t){return t.toDataURL()}))},toJpeg:function(t,e){return c(t,e=e||{}).then((function(t){return t.toDataURL("image/jpeg",e.quality||1)}))},toBlob:function(t,e){return c(t,e||{}).then(n.canvasToBlob)},toPixelData:function(t,e){return c(t,e||{}).then((function(e){return e.getContext("2d").getImageData(0,0,n.width(t),n.height(t)).data}))},impl:{fontFaces:i,images:a,util:n,inliner:r,options:{}}};function u(t,e){return function(t){void 0===t.imagePlaceholder?o.impl.options.imagePlaceholder=s.imagePlaceholder:o.impl.options.imagePlaceholder=t.imagePlaceholder;void 0===t.cacheBust?o.impl.options.cacheBust=s.cacheBust:o.impl.options.cacheBust=t.cacheBust}(e=e||{}),Promise.resolve(t).then((function(t){return l(t,e.filter,!0)})).then(h).then((function(t){e.bgcolor&&(t.style.backgroundColor=e.bgcolor);e.width&&(t.style.width=e.width+"px");e.height&&(t.style.height=e.height+"px");e.style&&Object.keys(e.style).forEach((function(n){t.style[n]=e.style[n]}));return t})).then((function(r){return function(t,e,r){return Promise.resolve(t).then((function(t){return t.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),(new XMLSerializer).serializeToString(t)})).then(n.escapeXhtml).then((function(t){return'<foreignObject x="0" y="0" width="100%" height="100%">'+t+"</foreignObject>"})).then((function(t){return'<svg xmlns="http://www.w3.org/2000/svg" width="'+e+'" height="'+r+'">'+t+"</svg>"})).then((function(t){return"data:image/svg+xml;charset=utf-8,"+t}))}(r,e.width||n.width(t),e.height||n.height(t))}))}function c(t,e){return u(t,e).then(n.makeImage).then(n.delay(100)).then((function(r){var i=function(t){var r=document.createElement("canvas");if(r.width=e.width||n.width(t),r.height=e.height||n.height(t),e.bgcolor){var i=r.getContext("2d");i.fillStyle=e.bgcolor,i.fillRect(0,0,r.width,r.height)}return r}(t);return i.getContext("2d").drawImage(r,0,0),i}))}function l(t,e,r){return r||!e||e(t)?Promise.resolve(t).then((function(t){return t instanceof HTMLCanvasElement?n.makeImage(t.toDataURL()):t.cloneNode(!1)})).then((function(r){return function(t,e,r){var i=t.childNodes;return 0===i.length?Promise.resolve(e):a(e,n.asArray(i),r).then((function(){return e}));function a(t,e,n){var r=Promise.resolve();return e.forEach((function(e){r=r.then((function(){return l(e,n)})).then((function(e){e&&t.appendChild(e)}))})),r}}(t,r,e)})).then((function(e){return function(t,e){return e instanceof Element?Promise.resolve().then(r).then(i).then(a).then(s).then((function(){return e})):e;function r(){function r(t,e){function r(t,e){n.asArray(t).forEach((function(n){e.setProperty(n,t.getPropertyValue(n),t.getPropertyPriority(n))}))}t.cssText?e.cssText=t.cssText:r(t,e)}r(window.getComputedStyle(t),e.style)}function i(){function r(r){var i=window.getComputedStyle(t,r),a=i.getPropertyValue("content");if(""!==a&&"none"!==a){var s=n.uid();e.className=e.className+" "+s;var o=document.createElement("style");o.appendChild(u(s,r,i)),e.appendChild(o)}function u(t,e,r){var i="."+t+":"+e,a=r.cssText?s(r):o(r);return document.createTextNode(i+"{"+a+"}");function s(t){var e=t.getPropertyValue("content");return t.cssText+" content: "+e+";"}function o(t){return n.asArray(t).map(e).join("; ")+";";function e(e){return e+": "+t.getPropertyValue(e)+(t.getPropertyPriority(e)?" !important":"")}}}}[":before",":after"].forEach((function(t){r(t)}))}function a(){t instanceof HTMLTextAreaElement&&(e.innerHTML=t.value),t instanceof HTMLInputElement&&e.setAttribute("value",t.value)}function s(){e instanceof SVGElement&&(e.setAttribute("xmlns","http://www.w3.org/2000/svg"),e instanceof SVGRectElement&&["width","height"].forEach((function(t){var n=e.getAttribute(t);n&&e.style.setProperty(t,n)})))}}(t,e)})):Promise.resolve()}function h(t){return a.inlineAll(t).then((function(){return t}))}t.exports=o}()})),cn=function(t){if(!t)return!1;return 1==new RegExp(/http(s)?:\/\/([\w-]+\.)+[\w-]+(\/[\w- .\/?%&=]*)?/).test(t)},ln=function(t){for(var e="",n=new Uint8Array(t),r=n.byteLength,i=0;i<r;i++)e+=String.fromCharCode(n[i]);return"data:image/jpeg;base64,".concat(window.btoa(e))},hn=function(t,e){void 0===e&&(e="screenshot.png");try{for(var n=t.split(","),r=n[0].match(/:(.*?);/)[1],i=atob(n[1]),a=i.length,s=new Uint8Array(a);a--;)s[a]=i.charCodeAt(a);return new File([s],e,{type:r})}catch(t){console.error("dataURLtoFile:数据转换错误 : "+t)}},fn=function(t,e){return i(void 0,void 0,void 0,(function(){var n;return a(this,(function(r){switch(r.label){case 0:return r.trys.push([0,11,,12]),console.log(t,"----"),"File"!=e||"string"!=typeof t?[3,2]:[4,hn(t)];case 1:case 3:case 5:case 7:return[2,r.sent()];case 2:return"File"!=e||"[object ArrayBuffer]"!=t.toString()?[3,4]:[4,new File([t],"screenshot.png")];case 4:return"Base64"!=e||"string"!=typeof t?[3,6]:[4,t];case 6:return"Base64"!=e||"[object ArrayBuffer]"!=t.toString()?[3,8]:[4,ln(t)];case 8:return[4,new Error("transformData: 转换发生错误")];case 9:throw r.sent();case 10:return[3,12];case 11:return n=r.sent(),console.log(n),[3,12];case 12:return[2]}}))}))},dn=function(t,n,r,s){return i(void 0,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,e({url:t,method:"GET",responseType:"arraybuffer",params:{url:n,dom:r,quality:s}})];case 1:return[2,i.sent()];case 2:return i.sent(),console.warn("请求截图服务器发生错误,请检查地址及参数是否正确!",{url:t,path:n,dom:r,quality:s}),[2,null];case 3:return[2]}}))}))},pn=function(t,e){return i(void 0,void 0,void 0,(function(){var n,r;return a(this,(function(i){switch(i.label){case 0:if(i.trys.push([0,2,,3]),!(n=document.querySelector(t)))throw new Error("domToImg:"+t+" dom未被找到!");return[4,un.toJpeg(n,{style:{transform:"scale(1)",position:"static"},quality:e})];case 1:return[2,i.sent()];case 2:return r=i.sent(),console.warn(r),[3,3];case 3:return[2]}}))}))},mn=function(t){return"".concat(t>15?"":0).concat(t.toString(16))},gn=function(t){var e=t.r,n=t.g,r=t.b,i=t.a,a=void 0===i?1:i;return"#".concat(mn(e)).concat(mn(n)).concat(mn(r)).concat(1===a?"":mn(Math.floor(255*a)))},vn=function(t){var e=t.r,n=t.g,r=t.b;return"rgb(".concat(e,",").concat(n,",").concat(r,")")},yn=function(t,e){void 0===e&&(e=1e4);var n=t.r,r=t.g,i=t.b,a=t.a,s=void 0===a?1:a;return"rgba(".concat(n,",").concat(r,",").concat(i,",").concat(Math.floor(s*e)/e,")")},_n=function(t){var e=t.slice(1),n=1;3===e.length&&(e="".concat(e[0]).concat(e[0]).concat(e[1]).concat(e[1]).concat(e[2]).concat(e[2])),8===e.length&&(n=parseInt(e.slice(6),16)/255,e=e.slice(0,6));var r=parseInt(e,16);return{r:r>>16&255,g:r>>8&255,b:255&r,a:n}},bn=function(t){var e=t.match(/(\d(\.\d+)?)+/g)||[],n=e.map((function(t){return parseInt(t,10)}));return{r:n[0],g:n[1],b:n[2],a:parseFloat(e[3])}},wn=function(t){if(t.startsWith("#"))return _n(t);if(t.startsWith("rgb"))return bn(t);if("transparent"===t)return _n("#00000000");throw new Error("color string error: ".concat(t))},Dn=Object.freeze({__proto__:null,Watermark:class{constructor(t={}){ze(this,"options"),ze(this,"container"),ze(this,"watermarkContent"),ze(this,"watermarkDom"),ze(this,"style"),ze(this,"watermarkTag"),ze(this,"shadowRoot"),ze(this,"mutationObserver"),ze(this,"_isAgainRender",(t=>{if("attributes"===t.type){if("data-watermark-tag"===t.attributeName)return!0;if(this.watermarkTag===this._getNodeRandomId(t.target))return!0}return!(!t.removedNodes.length||this.watermarkTag!==this._getNodeRandomId(t.removedNodes[0]))})),ze(this,"_getNodeRandomId",(t=>{var e,n;return null==(e=null==t?void 0:t.dataset)?void 0:e[(n="data-watermark-tag",n.split("-").slice(1).reduce(((t,e,n)=>0===n?e:`${t}${e[0].toUpperCase()+e.slice(1)}`)))]})),ze(this,"_destroyMutationObserver",(()=>{this.mutationObserver&&(this.mutationObserver.takeRecords(),this.mutationObserver.disconnect(),this.mutationObserver=null)})),ze(this,"_getWatermarkDom",(t=>qe(this,null,(function*(){this.watermarkDom||(this.watermarkDom=document.createElement("div")),"number"==typeof t&&t&&(this.style.height=`${t}px`);const e=yield function(t){const{text:e,gapX:n,gapY:r,offsetTop:i,offsetLeft:a,width:s,height:o,rotate:u,opacity:c,fontSize:l,fontStyle:h,fontVariant:f,fontWeight:d,fontFamily:p,fontColor:m,textAlign:g,textBaseline:v,image:y,blindText:_,blindOpacity:b}=t;return new Promise(((t,w)=>{const D=document.createElement("canvas"),S=D.getContext("2d"),T=1*(Number(n)+Number(s)),x=1*(Number(r)+Number(o)),E=Number(a)||Number(n)/2,M=Number(i)||Number(r)/2;if(D.setAttribute("width",`${T}px`),D.setAttribute("height",`${x}px`),S){const n=1*s,r=1*o;if(S.translate(1*E,1*M),S.rotate(Math.PI/180*Number(u)),_&&(S.globalAlpha=b,S.font="14px normal",S.fillText(_,0,0)),S.globalAlpha=c,y){const e=new Image;return e.crossOrigin="anonymous",e.referrerPolicy="no-referrer",e.src=y,void(e.onload=()=>{S.drawImage(e,0,0,n,r),t({url:S.canvas.toDataURL(),width:T,height:x})})}const i=Array.isArray(e)?e:[e],a=i.map((t=>S.measureText(t).width)),h=Math.max(...a),f=1*Number(l);S.textAlign=g,S.textBaseline=v,S.fillStyle=m,S.font=O(`${f}px`),h>s&&(S.font=O(f/2+"px"));const d=f+5;let p=(r-(l*i.length+5*(i.length-1)))/2;p=p<0?0:p;for(let t=0;t<i.length;t++)S.fillText(i[t]||"",n/2,p+d*t);t({url:S.canvas.toDataURL(),width:T,height:x})}function O(t){return`${h} ${f} ${d} ${t} ${p}`}return w()}))}(this.options);if(null==e?void 0:e.url){const t=e.url;"repeat"===this.options.mode?this.style.backgroundImage=`url(${t})`:(this.style.backgroundImage=`url(${t}), url(${t})`,this.style.backgroundRepeat="repeat, repeat",this.style.backgroundPosition=`${e.width/2}px ${e.height/2}px, 0 0`),this.options.container||(this.style.position="fixed",this.style.height=void 0),this.watermarkDom.setAttribute("style",Ze(this.style))}return this.watermarkDom.setAttribute("data-watermark-tag",this.watermarkTag),this.watermarkDom})))),ze(this,"_getWatermarkHeight",(()=>{if(!this.container)return 0;let t=0;const{scrollHeight:e=0,clientHeight:n=0}=this.options.container?this.container.parentNode:this.container;return e>n&&(t=Math.max(e,n)),t})),this.options=Object.assign({},Ge,t),this.style={position:"absolute",left:0,top:0,right:0,bottom:0,pointerEvents:"none",overflow:"hidden",backgroundColor:"transparent",backgroundRepeat:"repeat"},this.style.zIndex=this.options.zIndex,this.watermarkTag=Ke("watermark"),this.mutationObserver=null,this._render()}update(t={}){this.options=He(He({},this.options),t),this.style.zIndex=this.options.zIndex,this._render()}show(){this.watermarkDom&&(this.style.display="block",this.watermarkDom.setAttribute("style",Ze(this.style)))}hide(){this.watermarkDom&&(this.style.display="none",this.watermarkDom.setAttribute("style",Ze(this.style)))}destroy(){this.shadowRoot=void 0,this.watermarkContent&&(this.watermarkContent.remove(),this.watermarkContent=void 0),this.watermarkDom&&(this.watermarkDom.remove(),this.watermarkDom=void 0),this._destroyMutationObserver()}_render(){return qe(this,null,(function*(){this._destroyMutationObserver(),this.container=((t,e,n={},r)=>{let i;if("string"==typeof t){if(i=document.getElementById(t),!i)throw new Error(`水印挂载节点未找到,请检查#${t}是否存在`)}else i=null!=t?t:document.body;i.setAttribute("data-watermark-tag",e);const a=He({position:"relative"},n);return r||delete a.position,i.setAttribute("style",Ze(a)),i})(this.options.container,this.watermarkTag,this.options.containerStyle,this.options.pack),this.watermarkContent||(this.watermarkContent=(t=>{const e=document.createElement("div");return e.setAttribute("style",Ze({pointerEvents:"none"})),e.setAttribute("data-watermark-tag",t),e})(this.watermarkTag),this.container.append(this.watermarkContent));const t=this._getWatermarkHeight();if(this.watermarkDom=yield this._getWatermarkDom(t),this.watermarkContent){const t=this.watermarkContent.childNodes||[];for(let e=0;e<t.length;e++)this.watermarkContent.removeChild(t[e])}"function"==typeof this.watermarkContent.attachShadow?this.shadowRoot||(this.shadowRoot=this.watermarkContent.attachShadow({mode:"open"})):this.shadowRoot=this.watermarkContent,this.shadowRoot.append(this.watermarkDom),$e&&this.options.monitor&&(this.mutationObserver=new $e((t=>{t.forEach((t=>{if(this._isAgainRender(t))return this.destroy(),void this._render()}))})),this.mutationObserver.observe(this.container,We),this.shadowRoot&&this.mutationObserver.observe(this.shadowRoot,We))}))}},generateComponentList:nn,generateCaseDataJson:rn,generatePageData:function(t){var e={},n=e.theme,r=void 0===n?null:n,i=e.globalVars,a=void 0===i?null:i,s=e.shareVariableTree,o=void 0===s?null:s,u=e.plant,c=void 0===u?null:u,l=e.list,h=void 0===l?[]:l,f=e.undos,d=void 0===f?[]:f,p=e.undoRedoPointer,m=void 0===p?-1:p,g=e.globalEvents,v=void 0===g?[]:g;return t&&(r=t.theme,c=t.plant),{theme:r,globalVars:a,globalEvents:v,shareVariableTree:o,plant:c,undos:d,undoRedoPointer:m,list:nn(h)}},exportJson:function(t){var e=t.caseName,n=void 0===e?"case-name":e,r=t.caseImg,i=void 0===r?"":r,a=t.caseRemark,s=void 0===a?"":a,o=t.details,u=t.caseClientType,c={caseClientType:void 0===u?"":u,caseName:n,caseImg:i,caseRemark:s,createTime:tn().format("YYYY-MM-DD , h:mm:ss"),caseData:rn(o)},l=new Blob([JSON.stringify(c)],{type:"json"});en.saveAs(l,n+".json")},generateJson:function(t){var e=t.caseName,n=void 0===e?"":e,r=t.caseData;return t.plangInfoForPsd,{caseName:n,createTime:tn().format("YYYY-MM-DD , h:mm:ss"),caseData:rn(r)}},SizeAdaption:sn,Scale:on,loadFontResource:me,loadScript:ge,removeTag:be,loadTag:_e,loadFont:ye,getDataForEvaluator:h,recursion:Tt,encrypt:jt,decrypt:function(t){var e=new mt;return e.setPrivateKey("MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQClaeLu4thVXyLI\nM9NHpmxqP7YEcKfjFPMV5UcAPNN20GIUf2Lh8p4MrQh9s9X/1MZ5Fg1+XSpJ90u1\nT7VkjOamoemlp26SaTn41sEbheb+UBmBW3d1QitLJqbFWPCfKY3s8t3FpI5L+aBT\npIMYyE1MzvoBcplldYwrXZQJe8qSH5OQa59xfMt7su2u8c8s6BycQQPYKRYBO4T2\nDwr2PhN44zGElwcFSZcuBToKG59ricF53bz30TuPElrXj4nUgNrZqGsMUtk3sf/9\nmy/CderFVvGbSTmPJap8KmDXdXvMPcPE1aWjcwiHZ8+0gRQNWG6Co93SM+aqq6p0\nE1Oe7YgZAgMBAAECggEABN8LadGQYWM92Pt9u1xxUOezaooOx6c0SW7JGn6wE42r\ndcMSnGjSsrjdySXkpXYUqjg2CYSg3DDGL/667s0fdcTK5q/5l6I1rNhWM4NL/C1L\nsv2IlRFvyPTIcINgAq/smA/G7C0ea6pcSFpN6grsC9kEj8paLhy6FgTZeTYGDyuG\nwI3D7XWZNzWfyQlAsoWEYAmDx72rOuEaeK4W4SMf3BB2g1hJ6fZoKT3ehHozAGcJ\nB7R8k3tGALVYdOqQgXhj8t3vNu1OATG0Q6d4z28e4TwsVunxReTyRcofrgOVwpry\nEmb4C5RYaN/rWxRrL8aW+nB3wAD/PFDacVBz/8RvaQKBgQDX90jqlLtLRVAsqbiS\nSHmX67CqQzNNDWgysQLmF2YmmkGyth4QR+cNEenIEeSSt+vc0VMAbxYY5SVzVCRl\nSZHoKHNlLGmepd3aJw5ZcFnpU86J7aG8fhvgZGEmCR+1JOZU7pUbpTvka0WQC3AK\n2+O7nUYIU65xeOaJVZvUu6My+wKBgQDEE6DrFVMNgI3dDZM0buHMYDJ2mL9F1DZb\n2URxYAlmvjkpaQb9Vq1VXV0ApZ3ItXgIX6cVrJB+MILmrsoxAamFOl/9AYiKnpnb\nYMxxqFYPuME7fzEli041915j6CpMmOwrAq6SrLiZ//hNlobJf76dAY9qyX91BTC8\nBfEWVhnk+wKBgQDT5kb+G+bVSPIMkI6PwVrE7DWQKZV5YdE+A55TgtvwvmP95GEF\nGneixFO8wYmjR6C+LgihoV1uGc+wI/v+AbyOrLnkqDoNtrNB7BZRPUKLBHbfsHCE\nELxrZDJJ7qPUyZrR9LIKyQpF6db8KazKiswc9oiTfP/pSHXyhDP8/Ap55wKBgQC6\njDI9dzxdTEGsXo3/BL+vQpbAXvMb7JsLJ9sGQuiu56xayaHsxdqDrSAezXMg0gYx\ncU/2Pwf6Bw2DjCiyF3LBXpiUjjDqMZsQLThVqmK28oBlqs2HetIeZgtX4jrcRWHs\nSdDtm4bGfdIvf1cdvnwLxMA+SRcKrrV/LegB6EkaoQKBgEwE4rllfRxOSGaF47ew\nRxTLGphZmxhLDsx0fMOHflx/BnGnxruBLEhdv3mlp12YMmb2s6kwFJvngLq4fZll\nTmC7BW3Z9h8XsL9j2xtID+5gsxYHHOCcdbzGuQV5KWb51cBym7EP9qk/3NP8w3/+\nH0iKrgAII5Ym0yh41dGL5HCo"),e.decrypt(t)},setActions:Ft,genID:Bt,arraySwap:vt,arraySwapDeep:_t,arraySwapForId:yt,setAttr:function(t,e,n){for(var r,i=0;i<t.length;i++)(r=t[i]).cid!==e&&r.id!==e||(r[n]=!r[n])},RecursiveList:Vt,selectdArea:Rt,setPorp:function(t,e,n){var r=e.find((function(e){return e.cid===t}));"folder"===r.type?r.children.length&&r.children.forEach((function(t){t[n]=!t[n]})):r[n]=!r[n]},setPositionForGroup:Mt,resetPositionForGroup:function(t,e){var n=e.map((function(t){return t.cid}));e.forEach((function(e){e.pid&&kt(e,t)}));var r=Rt(n,e);return Mt(r,e),{left:r.left,top:r.top,width:r.width,height:r.height}},setPositionForWorld:kt,breakUp:Ot,findItem:Dt,findItemDeep:bt,findParentDeep:wt,findItemIndexDeep:function(t,e){for(var n,r=0,i=0;i<t.length;i++){var a=t[i];if(r+=1,a.cid==e)break;if(null===(n=null==a?void 0:a.children)||void 0===n?void 0:n.length)for(var s=0;s<(null==a?void 0:a.children.length);s++){if(r+=1,(null==a?void 0:a.children[s]).cid==e)return r}}return r},getLength:function(t){var e=0,n=function(t){for(var r=function(r){if(t[r].isShow&&t[r].children)n(t[r].children);else if(t[r].isShow&&t[r].dynamicChildren){if(t[r].dynamicChildren instanceof Map){for(var i=Array.from(t[r].dynamicChildren),a=0;a<i.length;a++)if(i[a]instanceof Array){var s=i[a][1];n(s)}}else if(t[r].isShow&&t[r].dynamicChildren instanceof Array){console.log(t[r]," array[i].");var o=t[r].dynamicChildren.find((function(e){return e[0]=t[r].activeDynamic}));o&&o.length&&n(o[1])}}else t[r].isShow&&t[r].stateChildren?n(t[r].stateChildren):t[r].isShow&&e++},i=0;i<t.length;i++)r(i)};return n(t),e||!1},getPosition:Nt,updataAttribute:Et,isPeer:St,transformPosition:Ct,upDataGroup:It,upDataGroupChildren:function(e,n,r){var i=e.children,a=t.cloneDeep(n),s=t.cloneDeep(Nt(i)),o=a.left,u=a.top;a.width,a.height;var c=s.left,l=s.top,h=s.width,f=s.height,d={left:o+c,top:u+l,width:h,height:f,angle:n.angle?n.angle:0};return i.forEach((function(e){var n=t.cloneDeep(e.baseData);e.baseData.left<0?n.left=0:n.left=n.left-c,e.baseData.top<0?n.top=0:n.top=n.top-l,e.baseData=n})),e.children=i,d},resziePositionForGroup:function(e,n,r,i){var a=e.baseData.left,s=e.baseData.top,o=n.left,u=n.top,c=t.cloneDeep(e.children),l=r||"";if(o-a<0)for(var h=0;h<c.length;h++){(f=c[h]).cid!==l&&(f.baseData.left=f.baseData.left+(a-o))}if(u-s<0)for(h=0;h<c.length;h++){var f;(f=c[h]).cid!==l&&(f.baseData.top=f.baseData.top+(s-u))}e.children=c},genCopyName:Yt,resetID:xt,getUrlParams:Lt,updataSizeDeep:gt,resizePosition:At,resizeListPosition:function(t,e){var n=function(t,r){for(var i,a=0;a<t.length;a++){var s=t[a];if(s.pid!=r){var o=At(e,s.cid),u=At(e,s.pid);console.log(o,u),s.baseData.left=o.left-u.left,s.baseData.top=o.top-u.top}(null===(i=null==s?void 0:s.children)||void 0===i?void 0:i.length)&&n(s.children,s.cid)}};n(t,e)},getInteractive:ce,getShareTree:function(t,e){try{var n={},r=[],i=[];return Tt(t,(function(t){var a,s,o,u=null===(a=null==t?void 0:t.tmpData)||void 0===a?void 0:a.source;(le(u,e,t,n),null===(o=null===(s=null==t?void 0:t.tmpData)||void 0===s?void 0:s.actions)||void 0===o?void 0:o.length)&&Ft({types:t.tmpData.actions.map((function(t){return t.eventType})),element:t,actions:r,events:i})})),n}catch(t){return console.error(t),{}}},screenshot:function(t){return i(void 0,void 0,void 0,(function(){var e,n,r,i,s,o,u,c;return a(this,(function(a){switch(a.label){case 0:return a.trys.push([0,11,,12]),e=t.dom,n=t.servePath,r=t.targetPath,i=t.quality,s=t.type,o=void 0,cn(n)&&cn(r)?[4,dn(n,r,e,i||.5)]:[3,5];case 1:return(u=a.sent())&&200==u.status&&u.data?(o=u.data,[3,4]):[3,2];case 2:return console.warn("截取错误,请检查网络或服务地址配置是否正确,已转换为dom-to-img."),[4,pn(e,i||.5)];case 3:o=a.sent(),a.label=4;case 4:return[3,7];case 5:return console.warn("地址错误,请检查传入的地址是否争取,已转换为dom-to-img."),[4,pn(e,i||.5)];case 6:o=a.sent(),a.label=7;case 7:return o?[4,fn(o,s)]:[3,9];case 8:return[2,a.sent()];case 9:return[2,null];case 10:return[3,12];case 11:return c=a.sent(),console.error("截图发生错误:"+c),[2,null];case 12:return[2]}}))}))},toHex:mn,toHexString:gn,toRgbString:vn,toRgbaString:yn,parseHexColor:_n,parseRgbaColor:bn,parseColorString:wn,getColorInfo:function(t){var e=wn(t);return{hex:gn(e),rgba:yn(e),rgb:vn(e),rgbaObj:e}},hexToRgba:function(t){var e=wn(t);return yn(e)},rgbaToHex:function(t){var e=wn(t);return gn(e)}});function Sn(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Tn(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}
|
|
18
|
+
r.version="2.29.4",i(Kn),r.fn=ca,r.min=tr,r.max=er,r.now=nr,r.utc=p,r.unix=la,r.months=va,r.isDate=h,r.locale=mn,r.invalid=y,r.duration=kr,r.isMoment=T,r.weekdays=ba,r.parseZone=ha,r.localeData=yn,r.isDuration=ur,r.monthsShort=ya,r.weekdaysMin=wa,r.defineLocale=gn,r.updateLocale=vn,r.locales=bn,r.weekdaysShort=_a,r.normalizeUnits=rt,r.relativeTimeRounding=is,r.relativeTimeThreshold=as,r.calendarFormat=Ur,r.prototype=ca,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r}()})),On=En((function(t,e){!function(){function e(t,e){return void 0===e?e={autoBom:!1}:"object"!=typeof e&&(console.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\ufeff",t],{type:t.type}):t}function n(t,e,n){var r=new XMLHttpRequest;r.open("GET",t),r.responseType="blob",r.onload=function(){o(r.response,e,n)},r.onerror=function(){console.error("could not download file")},r.send()}function r(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return 200<=e.status&&299>=e.status}function i(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(n){var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}}var a="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof Sn&&Sn.global===Sn?Sn:void 0,s=a.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),o=a.saveAs||("object"!=typeof window||window!==a?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(t,e,s){var o=a.URL||a.webkitURL,u=document.createElement("a");e=e||t.name||"download",u.download=e,u.rel="noopener","string"==typeof t?(u.href=t,u.origin===location.origin?i(u):r(u.href)?n(t,e,s):i(u,u.target="_blank")):(u.href=o.createObjectURL(t),setTimeout((function(){o.revokeObjectURL(u.href)}),4e4),setTimeout((function(){i(u)}),0))}:"msSaveOrOpenBlob"in navigator?function(t,a,s){if(a=a||t.name||"download","string"!=typeof t)navigator.msSaveOrOpenBlob(e(t,s),a);else if(r(t))n(t,a,s);else{var o=document.createElement("a");o.href=t,o.target="_blank",setTimeout((function(){i(o)}))}}:function(t,e,r,i){if((i=i||open("","_blank"))&&(i.document.title=i.document.body.innerText="downloading..."),"string"==typeof t)return n(t,e,r);var o="application/octet-stream"===t.type,u=/constructor/i.test(a.HTMLElement)||a.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||o&&u||s)&&"undefined"!=typeof FileReader){var l=new FileReader;l.onloadend=function(){var t=l.result;t=c?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=t:location=t,i=null},l.readAsDataURL(t)}else{var h=a.URL||a.webkitURL,f=h.createObjectURL(t);i?i.location=f:location.href=f,i=null,setTimeout((function(){h.revokeObjectURL(f)}),4e4)}});a.saveAs=o.saveAs=o,t.exports=o}()})),kn=function(e){if(0===e.length)return[];var n=function(e){for(var i,a,s,o=0;o<e.length;o++)e[o].tmpData&&(e[o]=Object.assign({},(a=e[o],s=void 0,delete(s=t.cloneDeep(a)).comData,r({},s)))),e[o]&&e[o].children&&(null===(i=e[o])||void 0===i?void 0:i.children.length)?n(e[o].children):e[o]&&e[o].dynamicChildren&&Array.from(e[o].dynamicChildren).forEach((function(t,e){n(t[1])}))};return n(e),e},Cn=function(e){var n=t.cloneDeep(e)?t.cloneDeep(e):{};"string"==typeof e&&(n=JSON.parse(e));var r=[];if(n instanceof Array)n.forEach((function(t,e){var n=JSON.parse(t.caseDetailData)?JSON.parse(t.caseDetailData):{},i=t.caseDetailPath,a=t.caseDetailName,s=n.theme,o=void 0===s?null:s,u=n.globalVars,c=void 0===u?null:u,l=n.shareVariableTree,h=void 0===l?null:l,f=n.plant,d=void 0===f?null:f,p=n.list,m=void 0===p?[]:p,g=n.path,v=void 0===g?"":g;n.name;var y=n.resource,b=void 0===y?{jspaths:[],csspaths:[],otherpaths:[]}:y,_=n.globalEvents,w=void 0===_?[]:_;r.push({path:v||i,theme:o,name:a,resource:b,globalVars:c,globalEvents:w,shareVariableTree:h,plant:d,list:kn(m)})}));else{var i=n.theme,a=void 0===i?null:i,s=n.globalVars,o=void 0===s?null:s,u=n.shareVariableTree,c=void 0===u?null:u,l=n.plant,h=void 0===l?null:l,f=n.list,d=void 0===f?[]:f,p=n.resource,m=void 0===p?{jspaths:[],csspaths:[],otherpaths:[]}:p,g=n.globalEvents,v=void 0===g?[]:g;r.push({resource:m,theme:a,globalVars:o,globalEvents:v,shareVariableTree:c,plant:h,list:kn(d)})}return r};function An(t,e){throw new Error("".concat(t,":Expected HTMLElement, got ").concat(e))}var Pn=function(){function t(t){this.option=t,this.option.isResize&&window.addEventListener("resize",this.resize.bind(this))}return Object.defineProperty(t,"defaultOption",{get:function(){return t._defaultOption},set:function(e){t._defaultOption=e},enumerable:!1,configurable:!0}),t.getInstance=function(e){return t.instance||(t.instance=new t(e)),t.instance},t.prototype.removeResize=function(){window.removeEventListener("resize",this.resize.bind(this))},t.prototype.resize=function(){var t=this.option,e=t.isEqualScale,n=t.wrapSelector,r=t.viewSelector,i=t.designWidth,a=t.designHeight,s=t.horizontal,o=t.vertical,u=document.querySelector(n);u||An("wrap",u);var c=u.clientWidth,l=u.clientHeight,h=document.querySelector(r);h||An("view",h),h.style.position="absolute",h.style.width=i+"px",h.style.height=a+"px";var f,d,p,m,g=Math.min(c/i,l/a);if(e){switch(h.style.transform="scale(".concat(g,")"),s){case"center":f=(c-i)/2+"px";break;case"left":f=(g-1)/2*i+"px";break;case"right":p=(g-1)/2*i+"px"}switch(o){case"center":d=(l-a)/2+"px";break;case"top":d=(g-1)/2*a+"px";break;case"bottom":m=(g-1)/2*a+"px"}}else h.style.transform="scale('".concat(c/i,", ").concat(l/a,"')"),f=(c-i)/2+"px",d=(l-a)/2+"px";d?h.style.top=d:m&&(h.style.bottom=m),f?h.style.left=f:p&&(h.style.right=p)},t._defaultOption={isEqualScale:!0,designWidth:1920,designHeight:1080,wrapSelector:"body",viewSelector:"#app",horizontal:"center",vertical:"center",isResize:!0},t}(),Rn=function(){function e(t){this.wrap=null,this.target=null,this.type=0,this.minRatio=1,this.outSize={w:0,h:0},this.inSize={w:0,h:0};var e=t.wrap,n=t.target,r=t.type,i=t.size,a=t.callback;this.size=i,this.type=r,this.initOptions(e,n,i),this.initSize(i),this.layout(),this.scale(a),window.addEventListener("resize",this.reset.bind(this,a))}return e.prototype.reset=function(t){this.initSize(this.size),this.layout(),t?this.scale(t):this.scale()},e.getInstance=function(t){return e.instance||(e.instance=new e(t)),e.instance},e.prototype.removeResize=function(){window.removeEventListener("resize",this.reset.bind(this,void 0))},e.prototype.getDom=function(e){if(t.isElement(e))return e;var n=document.querySelector(e);return t.isElement(n)?n:null},e.prototype.initOptions=function(t,e,n){this.wrap=this.getDom(t),this.target=this.getDom(e),this.target.style.width=n.w+"px",this.target.style.height=n.h+"px",this.verificationDom()},e.prototype.initSize=function(t){this.outSize.w=this.wrap.clientWidth,this.outSize.h=this.wrap.clientHeight,this.inSize=t},e.prototype.verificationDom=function(){null!=this.wrap&&null!=this.target&&this.isChildOf(this.wrap,this.target)||console.warn("Please pass in the DOM element correctly!")},e.prototype.layout=function(){if(0==this.type||3==this.type){var t=(this.outSize.w-this.inSize.w)/2,e=(this.outSize.h-this.inSize.h)/2;this.target.style.top=e+"px",this.target.style.left=t+"px"}else this.wrap.style.display="flex",this.wrap.style["align-items"]="center",this.wrap.style["justify-content"]="center",this.target.style.position="static",1==this.type?(this.wrap.style["overflow-y"]="auto",this.wrap.style["overflow-x"]="hidden"):2==this.type&&(this.wrap.style["overflow-y"]="hidden",this.wrap.style["overflow-x"]="auto")},e.prototype.isChildOf=function(t,e){var n;if(t&&e)for(n=t.parentNode;n;){if(e===n)return!0;n=n.parentNode}return!1},e.prototype.scale=function(t){var e=1,n=1;switch(this.type){case 0:e=Math.min(this.outSize.w/this.inSize.w,this.outSize.h/this.inSize.h),n=Math.min(this.outSize.w/this.inSize.w,this.outSize.h/this.inSize.h);break;case 1:n=e=this.outSize.w/this.inSize.w;break;case 2:e=n=this.outSize.h/this.inSize.h;break;case 3:e=this.outSize.w/this.inSize.w,n=this.outSize.h/this.inSize.h}t&&t([e,n]),this.target.style.transform="scale(".concat(e,",").concat(n,")")},e.prototype.resize=function(){},e}(),Nn=En((function(t){!function(e){var n=function(){return{escape:function(t){return t.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1")},parseExtension:t,mimeType:function(e){var n=t(e).toLowerCase();return(r="application/font-woff",i="image/jpeg",{woff:r,woff2:r,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:i,jpeg:i,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml"})[n]||"";var r,i},dataAsUrl:function(t,e){return"data:"+e+";base64,"+t},isDataUrl:function(t){return-1!==t.search(/^(data:)/)},canvasToBlob:function(t){return t.toBlob?new Promise((function(e){t.toBlob(e)})):function(t){return new Promise((function(e){for(var n=window.atob(t.toDataURL().split(",")[1]),r=n.length,i=new Uint8Array(r),a=0;a<r;a++)i[a]=n.charCodeAt(a);e(new Blob([i],{type:"image/png"}))}))}(t)},resolveUrl:function(t,e){var n=document.implementation.createHTMLDocument(),r=n.createElement("base");n.head.appendChild(r);var i=n.createElement("a");return n.body.appendChild(i),r.href=e,i.href=t,i.href},getAndEncode:function(t){var e=3e4;o.impl.options.cacheBust&&(t+=(/\?/.test(t)?"&":"?")+(new Date).getTime());return new Promise((function(n){var r,i=new XMLHttpRequest;if(i.onreadystatechange=s,i.ontimeout=u,i.responseType="blob",i.timeout=e,i.open("GET",t,!0),i.send(),o.impl.options.imagePlaceholder){var a=o.impl.options.imagePlaceholder.split(/,/);a&&a[1]&&(r=a[1])}function s(){if(4===i.readyState)if(200===i.status){var e=new FileReader;e.onloadend=function(){var t=e.result.split(/,/)[1];n(t)},e.readAsDataURL(i.response)}else r?n(r):c("cannot fetch resource: "+t+", status: "+i.status)}function u(){r?n(r):c("timeout of "+e+"ms occured while fetching resource: "+t)}function c(t){console.error(t),n("")}}))},uid:function(){var t=0;return function(){return"u"+e()+t++;function e(){return("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4)}}}(),delay:function(t){return function(e){return new Promise((function(n){setTimeout((function(){n(e)}),t)}))}},asArray:function(t){for(var e=[],n=t.length,r=0;r<n;r++)e.push(t[r]);return e},escapeXhtml:function(t){return t.replace(/#/g,"%23").replace(/\n/g,"%0A")},makeImage:function(t){return new Promise((function(e,n){var r=new Image;r.onload=function(){e(r)},r.onerror=n,r.src=t}))},width:function(t){var n=e(t,"border-left-width"),r=e(t,"border-right-width");return t.scrollWidth+n+r},height:function(t){var n=e(t,"border-top-width"),r=e(t,"border-bottom-width");return t.scrollHeight+n+r}};function t(t){var e=/\.([^\.\/]*?)$/g.exec(t);return e?e[1]:""}function e(t,e){var n=window.getComputedStyle(t).getPropertyValue(e);return parseFloat(n.replace("px",""))}}(),r=function(){var t=/url\(['"]?([^'"]+?)['"]?\)/g;return{inlineAll:function(t,n,a){return s()?Promise.resolve(t):Promise.resolve(t).then(r).then((function(e){var r=Promise.resolve(t);return e.forEach((function(t){r=r.then((function(e){return i(e,t,n,a)}))})),r}));function s(){return!e(t)}},shouldProcess:e,impl:{readUrls:r,inline:i}};function e(e){return-1!==e.search(t)}function r(e){for(var r,i=[];null!==(r=t.exec(e));)i.push(r[1]);return i.filter((function(t){return!n.isDataUrl(t)}))}function i(t,e,r,i){return Promise.resolve(e).then((function(t){return r?n.resolveUrl(t,r):t})).then(i||n.getAndEncode).then((function(t){return n.dataAsUrl(t,n.mimeType(e))})).then((function(r){return t.replace(function(t){return new RegExp("(url\\(['\"]?)("+n.escape(t)+")(['\"]?\\))","g")}(e),"$1"+r+"$3")}))}}(),i=function(){return{resolveAll:function(){return t().then((function(t){return Promise.all(t.map((function(t){return t.resolve()})))})).then((function(t){return t.join("\n")}))},impl:{readAll:t}};function t(){return Promise.resolve(n.asArray(document.styleSheets)).then((function(t){var e=[];return t.forEach((function(t){try{n.asArray(t.cssRules||[]).forEach(e.push.bind(e))}catch(e){console.log("Error while reading CSS rules from "+t.href,e.toString())}})),e})).then((function(t){return t.filter((function(t){return t.type===CSSRule.FONT_FACE_RULE})).filter((function(t){return r.shouldProcess(t.style.getPropertyValue("src"))}))})).then((function(e){return e.map(t)}));function t(t){return{resolve:function(){var e=(t.parentStyleSheet||{}).href;return r.inlineAll(t.cssText,e)},src:function(){return t.style.getPropertyValue("src")}}}}}(),a=function(){return{inlineAll:function e(i){return i instanceof Element?a(i).then((function(){return i instanceof HTMLImageElement?t(i).inline():Promise.all(n.asArray(i.childNodes).map((function(t){return e(t)})))})):Promise.resolve(i);function a(t){var e=t.style.getPropertyValue("background");return e?r.inlineAll(e).then((function(e){t.style.setProperty("background",e,t.style.getPropertyPriority("background"))})).then((function(){return t})):Promise.resolve(t)}},impl:{newImage:t}};function t(t){return{inline:function(e){return n.isDataUrl(t.src)?Promise.resolve():Promise.resolve(t.src).then(e||n.getAndEncode).then((function(e){return n.dataAsUrl(e,n.mimeType(t.src))})).then((function(e){return new Promise((function(n,r){t.onload=n,t.onerror=r,t.src=e}))}))}}}}(),s={imagePlaceholder:void 0,cacheBust:!1},o={toSvg:u,toPng:function(t,e){return c(t,e||{}).then((function(t){return t.toDataURL()}))},toJpeg:function(t,e){return c(t,e=e||{}).then((function(t){return t.toDataURL("image/jpeg",e.quality||1)}))},toBlob:function(t,e){return c(t,e||{}).then(n.canvasToBlob)},toPixelData:function(t,e){return c(t,e||{}).then((function(e){return e.getContext("2d").getImageData(0,0,n.width(t),n.height(t)).data}))},impl:{fontFaces:i,images:a,util:n,inliner:r,options:{}}};function u(t,e){return function(t){void 0===t.imagePlaceholder?o.impl.options.imagePlaceholder=s.imagePlaceholder:o.impl.options.imagePlaceholder=t.imagePlaceholder;void 0===t.cacheBust?o.impl.options.cacheBust=s.cacheBust:o.impl.options.cacheBust=t.cacheBust}(e=e||{}),Promise.resolve(t).then((function(t){return l(t,e.filter,!0)})).then(h).then((function(t){e.bgcolor&&(t.style.backgroundColor=e.bgcolor);e.width&&(t.style.width=e.width+"px");e.height&&(t.style.height=e.height+"px");e.style&&Object.keys(e.style).forEach((function(n){t.style[n]=e.style[n]}));return t})).then((function(r){return function(t,e,r){return Promise.resolve(t).then((function(t){return t.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),(new XMLSerializer).serializeToString(t)})).then(n.escapeXhtml).then((function(t){return'<foreignObject x="0" y="0" width="100%" height="100%">'+t+"</foreignObject>"})).then((function(t){return'<svg xmlns="http://www.w3.org/2000/svg" width="'+e+'" height="'+r+'">'+t+"</svg>"})).then((function(t){return"data:image/svg+xml;charset=utf-8,"+t}))}(r,e.width||n.width(t),e.height||n.height(t))}))}function c(t,e){return u(t,e).then(n.makeImage).then(n.delay(100)).then((function(r){var i=function(t){var r=document.createElement("canvas");if(r.width=e.width||n.width(t),r.height=e.height||n.height(t),e.bgcolor){var i=r.getContext("2d");i.fillStyle=e.bgcolor,i.fillRect(0,0,r.width,r.height)}return r}(t);return i.getContext("2d").drawImage(r,0,0),i}))}function l(t,e,r){return r||!e||e(t)?Promise.resolve(t).then((function(t){return t instanceof HTMLCanvasElement?n.makeImage(t.toDataURL()):t.cloneNode(!1)})).then((function(r){return function(t,e,r){var i=t.childNodes;return 0===i.length?Promise.resolve(e):a(e,n.asArray(i),r).then((function(){return e}));function a(t,e,n){var r=Promise.resolve();return e.forEach((function(e){r=r.then((function(){return l(e,n)})).then((function(e){e&&t.appendChild(e)}))})),r}}(t,r,e)})).then((function(e){return function(t,e){return e instanceof Element?Promise.resolve().then(r).then(i).then(a).then(s).then((function(){return e})):e;function r(){function r(t,e){function r(t,e){n.asArray(t).forEach((function(n){e.setProperty(n,t.getPropertyValue(n),t.getPropertyPriority(n))}))}t.cssText?e.cssText=t.cssText:r(t,e)}r(window.getComputedStyle(t),e.style)}function i(){function r(r){var i=window.getComputedStyle(t,r),a=i.getPropertyValue("content");if(""!==a&&"none"!==a){var s=n.uid();e.className=e.className+" "+s;var o=document.createElement("style");o.appendChild(u(s,r,i)),e.appendChild(o)}function u(t,e,r){var i="."+t+":"+e,a=r.cssText?s(r):o(r);return document.createTextNode(i+"{"+a+"}");function s(t){var e=t.getPropertyValue("content");return t.cssText+" content: "+e+";"}function o(t){return n.asArray(t).map(e).join("; ")+";";function e(e){return e+": "+t.getPropertyValue(e)+(t.getPropertyPriority(e)?" !important":"")}}}}[":before",":after"].forEach((function(t){r(t)}))}function a(){t instanceof HTMLTextAreaElement&&(e.innerHTML=t.value),t instanceof HTMLInputElement&&e.setAttribute("value",t.value)}function s(){e instanceof SVGElement&&(e.setAttribute("xmlns","http://www.w3.org/2000/svg"),e instanceof SVGRectElement&&["width","height"].forEach((function(t){var n=e.getAttribute(t);n&&e.style.setProperty(t,n)})))}}(t,e)})):Promise.resolve()}function h(t){return a.inlineAll(t).then((function(){return t}))}t.exports=o}()})),In=function(t){if(!t)return!1;return 1==new RegExp(/http(s)?:\/\/([\w-]+\.)+[\w-]+(\/[\w- .\/?%&=]*)?/).test(t)},Vn=function(t){for(var e="",n=new Uint8Array(t),r=n.byteLength,i=0;i<r;i++)e+=String.fromCharCode(n[i]);return"data:image/jpeg;base64,".concat(window.btoa(e))},Bn=function(t,e){void 0===e&&(e="screenshot.png");try{for(var n=t.split(","),r=n[0].match(/:(.*?);/)[1],i=atob(n[1]),a=i.length,s=new Uint8Array(a);a--;)s[a]=i.charCodeAt(a);return new File([s],e,{type:r})}catch(t){console.error("dataURLtoFile:数据转换错误 : "+t)}},Yn=function(t,e){return i(void 0,void 0,void 0,(function(){var n;return a(this,(function(r){switch(r.label){case 0:return r.trys.push([0,11,,12]),console.log(t,"----"),"File"!=e||"string"!=typeof t?[3,2]:[4,Bn(t)];case 1:case 3:case 5:case 7:return[2,r.sent()];case 2:return"File"!=e||"[object ArrayBuffer]"!=t.toString()?[3,4]:[4,new File([t],"screenshot.png")];case 4:return"Base64"!=e||"string"!=typeof t?[3,6]:[4,t];case 6:return"Base64"!=e||"[object ArrayBuffer]"!=t.toString()?[3,8]:[4,Vn(t)];case 8:return[4,new Error("transformData: 转换发生错误")];case 9:throw r.sent();case 10:return[3,12];case 11:return n=r.sent(),console.log(n),[3,12];case 12:return[2]}}))}))},Ln=function(t,n,r,s){return i(void 0,void 0,void 0,(function(){return a(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,e({url:t,method:"GET",responseType:"arraybuffer",params:{url:n,dom:r,quality:s}})];case 1:return[2,i.sent()];case 2:return i.sent(),console.warn("请求截图服务器发生错误,请检查地址及参数是否正确!",{url:t,path:n,dom:r,quality:s}),[2,null];case 3:return[2]}}))}))},Fn=function(t,e){return i(void 0,void 0,void 0,(function(){var n,r;return a(this,(function(i){switch(i.label){case 0:if(i.trys.push([0,2,,3]),!(n=document.querySelector(t)))throw new Error("domToImg:"+t+" dom未被找到!");return[4,Nn.toJpeg(n,{style:{transform:"scale(1)",position:"static"},quality:e})];case 1:return[2,i.sent()];case 2:return r=i.sent(),console.warn(r),[3,3];case 3:return[2]}}))}))},jn=function(t){return"".concat(t>15?"":0).concat(t.toString(16))},Un=function(t){var e=t.r,n=t.g,r=t.b,i=t.a,a=void 0===i?1:i;return"#".concat(jn(e)).concat(jn(n)).concat(jn(r)).concat(1===a?"":jn(Math.floor(255*a)))},Hn=function(t){var e=t.r,n=t.g,r=t.b;return"rgb(".concat(e,",").concat(n,",").concat(r,")")},zn=function(t,e){void 0===e&&(e=1e4);var n=t.r,r=t.g,i=t.b,a=t.a,s=void 0===a?1:a;return"rgba(".concat(n,",").concat(r,",").concat(i,",").concat(Math.floor(s*e)/e,")")},qn=function(t){var e=t.slice(1),n=1;3===e.length&&(e="".concat(e[0]).concat(e[0]).concat(e[1]).concat(e[1]).concat(e[2]).concat(e[2])),8===e.length&&(n=parseInt(e.slice(6),16)/255,e=e.slice(0,6));var r=parseInt(e,16);return{r:r>>16&255,g:r>>8&255,b:255&r,a:n}},Gn=function(t){var e=t.match(/(\d(\.\d+)?)+/g)||[],n=e.map((function(t){return parseInt(t,10)}));return{r:n[0],g:n[1],b:n[2],a:parseFloat(e[3])}},Wn=function(t){if(t.startsWith("#"))return qn(t);if(t.startsWith("rgb"))return Gn(t);if("transparent"===t)return qn("#00000000");throw new Error("color string error: ".concat(t))},Zn=Object.freeze({__proto__:null,Watermark:class{constructor(t={}){vn(this,"options"),vn(this,"container"),vn(this,"watermarkContent"),vn(this,"watermarkDom"),vn(this,"style"),vn(this,"watermarkTag"),vn(this,"shadowRoot"),vn(this,"mutationObserver"),vn(this,"_isAgainRender",(t=>{if("attributes"===t.type){if("data-watermark-tag"===t.attributeName)return!0;if(this.watermarkTag===this._getNodeRandomId(t.target))return!0}return!(!t.removedNodes.length||this.watermarkTag!==this._getNodeRandomId(t.removedNodes[0]))})),vn(this,"_getNodeRandomId",(t=>{var e,n;return null==(e=null==t?void 0:t.dataset)?void 0:e[(n="data-watermark-tag",n.split("-").slice(1).reduce(((t,e,n)=>0===n?e:`${t}${e[0].toUpperCase()+e.slice(1)}`)))]})),vn(this,"_destroyMutationObserver",(()=>{this.mutationObserver&&(this.mutationObserver.takeRecords(),this.mutationObserver.disconnect(),this.mutationObserver=null)})),vn(this,"_getWatermarkDom",(t=>yn(this,null,(function*(){this.watermarkDom||(this.watermarkDom=document.createElement("div")),"number"==typeof t&&t&&(this.style.height=`${t}px`);const e=yield function(t){const{text:e,gapX:n,gapY:r,offsetTop:i,offsetLeft:a,width:s,height:o,rotate:u,opacity:c,fontSize:l,fontStyle:h,fontVariant:f,fontWeight:d,fontFamily:p,fontColor:m,textAlign:g,textBaseline:v,image:y,blindText:b,blindFontSize:_,blindOpacity:w}=t;return new Promise(((t,D)=>{const T=document.createElement("canvas"),S=T.getContext("2d"),x=1*(Number(n)+Number(s)),E=1*(Number(r)+Number(o)),M=Number(a)||Number(n)/2,O=Number(i)||Number(r)/2;if(T.setAttribute("width",`${x}px`),T.setAttribute("height",`${E}px`),S){const n=1*s,r=1*o;if(S.translate(1*M,1*O),S.rotate(Math.PI/180*Number(u)),b&&(S.globalAlpha=w,S.font=`${_}px normal`,S.fillText(b,0,0)),S.globalAlpha=c,y){const e=new Image;return e.crossOrigin="anonymous",e.referrerPolicy="no-referrer",e.src=y,void(e.onload=()=>{S.drawImage(e,0,0,n,r),t({url:S.canvas.toDataURL(),width:x,height:E})})}const i=Array.isArray(e)?e:[e],a=i.map((t=>S.measureText(t).width)),h=Math.max(...a),f=1*Number(l);S.textAlign=g,S.textBaseline=v,S.fillStyle=m,S.font=k(`${f}px`),h>s&&(S.font=k(f/2+"px"));const d=f+5;let p=(r-(l*i.length+5*(i.length-1)))/2;p=p<0?0:p;for(let t=0;t<i.length;t++)S.fillText(i[t]||"",n/2,p+d*t);t({url:S.canvas.toDataURL(),width:x,height:E})}function k(t){return`${h} ${f} ${d} ${t} ${p}`}return D()}))}(this.options);if(null==e?void 0:e.url){const t=e.url;"repeat"===this.options.mode?this.style.backgroundImage=`url(${t})`:(this.style.backgroundImage=`url(${t}), url(${t})`,this.style.backgroundRepeat="repeat, repeat",this.style.backgroundPosition=`${e.width/2}px ${e.height/2}px, 0 0`),this.options.container||(this.style.position="fixed",this.style.height=void 0),this.watermarkDom.setAttribute("style",wn(this.style))}return this.watermarkDom.setAttribute("data-watermark-tag",this.watermarkTag),this.watermarkDom})))),vn(this,"_getWatermarkHeight",(()=>{if(!this.container)return 0;let t=0;const{scrollHeight:e=0,clientHeight:n=0}=this.options.container?this.container.parentNode:this.container;return e>n&&(t=Math.max(e,n)),t})),this.options=Object.assign({},bn,t),this.style={position:"absolute",left:0,top:0,right:0,bottom:0,pointerEvents:"none",overflow:"hidden",backgroundColor:"transparent",backgroundRepeat:"repeat"},this.style.zIndex=this.options.zIndex,this.watermarkTag=Dn("watermark"),this.mutationObserver=null,this._render()}update(t={}){this.options=gn(gn({},this.options),t),this.style.zIndex=this.options.zIndex,this._render()}show(){this.watermarkDom&&(this.style.display="block",this.watermarkDom.setAttribute("style",wn(this.style)))}hide(){this.watermarkDom&&(this.style.display="none",this.watermarkDom.setAttribute("style",wn(this.style)))}destroy(){this.shadowRoot=void 0,this.watermarkContent&&(this.watermarkContent.remove(),this.watermarkContent=void 0),this.watermarkDom&&(this.watermarkDom.remove(),this.watermarkDom=void 0),this._destroyMutationObserver()}_render(){return yn(this,null,(function*(){this._destroyMutationObserver(),this.container=((t,e,n={},r)=>{let i;if("string"==typeof t){if(i=document.getElementById(t),!i)throw new Error(`水印挂载节点未找到,请检查#${t}是否存在`)}else i=null!=t?t:document.body;i.setAttribute("data-watermark-tag",e);const a=gn({position:"relative"},n);return r||delete a.position,i.setAttribute("style",wn(a)),i})(this.options.container,this.watermarkTag,this.options.containerStyle,this.options.pack),this.watermarkContent||(this.watermarkContent=(t=>{const e=document.createElement("div");return e.setAttribute("style",wn({pointerEvents:"none"})),e.setAttribute("data-watermark-tag",t),e})(this.watermarkTag),this.container.append(this.watermarkContent));const t=this._getWatermarkHeight();if(this.watermarkDom=yield this._getWatermarkDom(t),this.watermarkContent){const t=this.watermarkContent.childNodes||[];for(let e=0;e<t.length;e++)this.watermarkContent.removeChild(t[e])}"function"==typeof this.watermarkContent.attachShadow?this.shadowRoot||(this.shadowRoot=this.watermarkContent.attachShadow({mode:"open"})):this.shadowRoot=this.watermarkContent,this.shadowRoot.append(this.watermarkDom),Tn&&this.options.monitor&&(this.mutationObserver=new Tn((t=>{t.forEach((t=>{if(this._isAgainRender(t))return this.destroy(),void this._render()}))})),this.mutationObserver.observe(this.container,_n),this.shadowRoot&&this.mutationObserver.observe(this.shadowRoot,_n))}))}},generateComponentList:kn,generateCaseDataJson:Cn,generatePageData:function(t){var e={},n=e.theme,r=void 0===n?null:n,i=e.globalVars,a=void 0===i?null:i,s=e.shareVariableTree,o=void 0===s?null:s,u=e.plant,c=void 0===u?null:u,l=e.list,h=void 0===l?[]:l,f=e.undos,d=void 0===f?[]:f,p=e.undoRedoPointer,m=void 0===p?-1:p,g=e.globalEvents,v=void 0===g?[]:g;return t&&(r=t.theme,c=t.plant),{theme:r,globalVars:a,globalEvents:v,shareVariableTree:o,plant:c,undos:d,undoRedoPointer:m,list:kn(h)}},exportJson:function(t){var e=t.caseName,n=void 0===e?"case-name":e,r=t.caseImg,i=void 0===r?"":r,a=t.caseRemark,s=void 0===a?"":a,o=t.details,u=t.caseClientType,c={caseClientType:void 0===u?"":u,caseName:n,caseImg:i,caseRemark:s,createTime:Mn().format("YYYY-MM-DD , h:mm:ss"),caseData:Cn(o)},l=new Blob([JSON.stringify(c)],{type:"json"});On.saveAs(l,n+".json")},generateJson:function(t){var e=t.caseName,n=void 0===e?"":e,r=t.caseData;return t.plangInfoForPsd,{caseName:n,createTime:Mn().format("YYYY-MM-DD , h:mm:ss"),caseData:Cn(r)}},SizeAdaption:Pn,Scale:Rn,loadFontResource:je,loadScript:Ue,removeTag:Ge,loadTag:qe,loadFont:ze,getDataForEvaluator:h,recursion:Kt,encrypt:de,decrypt:function(t){var e=new jt;return e.setPrivateKey("MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQClaeLu4thVXyLI\nM9NHpmxqP7YEcKfjFPMV5UcAPNN20GIUf2Lh8p4MrQh9s9X/1MZ5Fg1+XSpJ90u1\nT7VkjOamoemlp26SaTn41sEbheb+UBmBW3d1QitLJqbFWPCfKY3s8t3FpI5L+aBT\npIMYyE1MzvoBcplldYwrXZQJe8qSH5OQa59xfMt7su2u8c8s6BycQQPYKRYBO4T2\nDwr2PhN44zGElwcFSZcuBToKG59ricF53bz30TuPElrXj4nUgNrZqGsMUtk3sf/9\nmy/CderFVvGbSTmPJap8KmDXdXvMPcPE1aWjcwiHZ8+0gRQNWG6Co93SM+aqq6p0\nE1Oe7YgZAgMBAAECggEABN8LadGQYWM92Pt9u1xxUOezaooOx6c0SW7JGn6wE42r\ndcMSnGjSsrjdySXkpXYUqjg2CYSg3DDGL/667s0fdcTK5q/5l6I1rNhWM4NL/C1L\nsv2IlRFvyPTIcINgAq/smA/G7C0ea6pcSFpN6grsC9kEj8paLhy6FgTZeTYGDyuG\nwI3D7XWZNzWfyQlAsoWEYAmDx72rOuEaeK4W4SMf3BB2g1hJ6fZoKT3ehHozAGcJ\nB7R8k3tGALVYdOqQgXhj8t3vNu1OATG0Q6d4z28e4TwsVunxReTyRcofrgOVwpry\nEmb4C5RYaN/rWxRrL8aW+nB3wAD/PFDacVBz/8RvaQKBgQDX90jqlLtLRVAsqbiS\nSHmX67CqQzNNDWgysQLmF2YmmkGyth4QR+cNEenIEeSSt+vc0VMAbxYY5SVzVCRl\nSZHoKHNlLGmepd3aJw5ZcFnpU86J7aG8fhvgZGEmCR+1JOZU7pUbpTvka0WQC3AK\n2+O7nUYIU65xeOaJVZvUu6My+wKBgQDEE6DrFVMNgI3dDZM0buHMYDJ2mL9F1DZb\n2URxYAlmvjkpaQb9Vq1VXV0ApZ3ItXgIX6cVrJB+MILmrsoxAamFOl/9AYiKnpnb\nYMxxqFYPuME7fzEli041915j6CpMmOwrAq6SrLiZ//hNlobJf76dAY9qyX91BTC8\nBfEWVhnk+wKBgQDT5kb+G+bVSPIMkI6PwVrE7DWQKZV5YdE+A55TgtvwvmP95GEF\nGneixFO8wYmjR6C+LgihoV1uGc+wI/v+AbyOrLnkqDoNtrNB7BZRPUKLBHbfsHCE\nELxrZDJJ7qPUyZrR9LIKyQpF6db8KazKiswc9oiTfP/pSHXyhDP8/Ap55wKBgQC6\njDI9dzxdTEGsXo3/BL+vQpbAXvMb7JsLJ9sGQuiu56xayaHsxdqDrSAezXMg0gYx\ncU/2Pwf6Bw2DjCiyF3LBXpiUjjDqMZsQLThVqmK28oBlqs2HetIeZgtX4jrcRWHs\nSdDtm4bGfdIvf1cdvnwLxMA+SRcKrrV/LegB6EkaoQKBgEwE4rllfRxOSGaF47ew\nRxTLGphZmxhLDsx0fMOHflx/BnGnxruBLEhdv3mlp12YMmb2s6kwFJvngLq4fZll\nTmC7BW3Z9h8XsL9j2xtID+5gsxYHHOCcdbzGuQV5KWb51cBym7EP9qk/3NP8w3/+\nH0iKrgAII5Ym0yh41dGL5HCo"),e.decrypt(t)},setActions:fe,genID:ce,arraySwap:Ht,arraySwapDeep:qt,arraySwapForId:zt,setAttr:function(t,e,n){for(var r,i=0;i<t.length;i++)(r=t[i]).cid!==e&&r.id!==e||(r[n]=!r[n])},RecursiveList:ue,selectdArea:ae,setPorp:function(t,e,n){var r=e.find((function(e){return e.cid===t}));"folder"===r.type?r.children.length&&r.children.forEach((function(t){t[n]=!t[n]})):r[n]=!r[n]},setPositionForGroup:Jt,resetPositionForGroup:function(t,e){var n=e.map((function(t){return t.cid}));e.forEach((function(e){e.pid&&ee(e,t)}));var r=ae(n,e);return Jt(r,e),{left:r.left,top:r.top,width:r.width,height:r.height}},setPositionForWorld:ee,breakUp:te,findItem:Zt,findItemDeep:Gt,findParentDeep:Wt,findItemIndexDeep:function(t,e){for(var n,r=0,i=0;i<t.length;i++){var a=t[i];if(r+=1,a.cid==e)break;if(null===(n=null==a?void 0:a.children)||void 0===n?void 0:n.length)for(var s=0;s<(null==a?void 0:a.children.length);s++){if(r+=1,(null==a?void 0:a.children[s]).cid==e)return r}}return r},getLength:function(t){var e=0,n=function(t){for(var r=function(r){if(t[r].isShow&&t[r].children)n(t[r].children);else if(t[r].isShow&&t[r].dynamicChildren){if(t[r].dynamicChildren instanceof Map){for(var i=Array.from(t[r].dynamicChildren),a=0;a<i.length;a++)if(i[a]instanceof Array){var s=i[a][1];n(s)}}else if(t[r].isShow&&t[r].dynamicChildren instanceof Array){console.log(t[r]," array[i].");var o=t[r].dynamicChildren.find((function(e){return e[0]=t[r].activeDynamic}));o&&o.length&&n(o[1])}}else t[r].isShow&&t[r].stateChildren?n(t[r].stateChildren):t[r].isShow&&e++},i=0;i<t.length;i++)r(i)};return n(t),e||!1},getPosition:se,updataAttribute:Qt,isPeer:$t,transformPosition:ne,upDataGroup:oe,upDataGroupChildren:function(e,n,r){var i=e.children,a=t.cloneDeep(n),s=t.cloneDeep(se(i)),o=a.left,u=a.top;a.width,a.height;var c=s.left,l=s.top,h=s.width,f=s.height,d={left:o+c,top:u+l,width:h,height:f,angle:n.angle?n.angle:0};return i.forEach((function(e){var n=t.cloneDeep(e.baseData);e.baseData.left<0?n.left=0:n.left=n.left-c,e.baseData.top<0?n.top=0:n.top=n.top-l,e.baseData=n})),e.children=i,d},resziePositionForGroup:function(e,n,r,i){var a=e.baseData.left,s=e.baseData.top,o=n.left,u=n.top,c=t.cloneDeep(e.children),l=r||"";if(o-a<0)for(var h=0;h<c.length;h++){(f=c[h]).cid!==l&&(f.baseData.left=f.baseData.left+(a-o))}if(u-s<0)for(h=0;h<c.length;h++){var f;(f=c[h]).cid!==l&&(f.baseData.top=f.baseData.top+(s-u))}e.children=c},genCopyName:le,resetID:Xt,getUrlParams:he,updataSizeDeep:Ut,resizePosition:re,resizeListPosition:function(t,e){var n=function(t,r){for(var i,a=0;a<t.length;a++){var s=t[a];if(s.pid!=r){var o=re(e,s.cid),u=re(e,s.pid);console.log(o,u),s.baseData.left=o.left-u.left,s.baseData.top=o.top-u.top}(null===(i=null==s?void 0:s.children)||void 0===i?void 0:i.length)&&n(s.children,s.cid)}};n(t,e)},getInteractive:Ie,getShareTree:function(t,e){try{var n={},r=[],i=[];return Kt(t,(function(t){var a,s,o,u=null===(a=null==t?void 0:t.tmpData)||void 0===a?void 0:a.source;(Ve(u,e,t,n),null===(o=null===(s=null==t?void 0:t.tmpData)||void 0===s?void 0:s.actions)||void 0===o?void 0:o.length)&&fe({types:t.tmpData.actions.map((function(t){return t.eventType})),element:t,actions:r,events:i})})),n}catch(t){return console.error(t),{}}},screenshot:function(t){return i(void 0,void 0,void 0,(function(){var e,n,r,i,s,o,u,c;return a(this,(function(a){switch(a.label){case 0:return a.trys.push([0,11,,12]),e=t.dom,n=t.servePath,r=t.targetPath,i=t.quality,s=t.type,o=void 0,In(n)&&In(r)?[4,Ln(n,r,e,i||.5)]:[3,5];case 1:return(u=a.sent())&&200==u.status&&u.data?(o=u.data,[3,4]):[3,2];case 2:return console.warn("截取错误,请检查网络或服务地址配置是否正确,已转换为dom-to-img."),[4,Fn(e,i||.5)];case 3:o=a.sent(),a.label=4;case 4:return[3,7];case 5:return console.warn("地址错误,请检查传入的地址是否争取,已转换为dom-to-img."),[4,Fn(e,i||.5)];case 6:o=a.sent(),a.label=7;case 7:return o?[4,Yn(o,s)]:[3,9];case 8:return[2,a.sent()];case 9:return[2,null];case 10:return[3,12];case 11:return c=a.sent(),console.error("截图发生错误:"+c),[2,null];case 12:return[2]}}))}))},toHex:jn,toHexString:Un,toRgbString:Hn,toRgbaString:zn,parseHexColor:qn,parseRgbaColor:Gn,parseColorString:Wn,getColorInfo:function(t){var e=Wn(t);return{hex:Un(e),rgba:zn(e),rgb:Hn(e),rgbaObj:e}},hexToRgba:function(t){var e=Wn(t);return zn(e)},rgbaToHex:function(t){var e=Wn(t);return Un(e)}});function $n(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Kn(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}
|
|
19
19
|
/*!
|
|
20
20
|
* GSAP 3.11.3
|
|
21
21
|
* https://greensock.com
|
|
@@ -24,7 +24,7 @@ r.version="2.29.1",i(Kn),r.fn=ua,r.min=Jn,r.max=tr,r.now=er,r.utc=p,r.unix=ca,r.
|
|
|
24
24
|
* Subject to the terms at https://greensock.com/standard-license or for
|
|
25
25
|
* Club GreenSock members, the agreement issued with that membership.
|
|
26
26
|
* @author: Jack Doyle, jack@greensock.com
|
|
27
|
-
*/var xn,En,Mn,On,kn,Cn,An,Pn,Rn,Nn,In,Vn,Bn,Yn,Ln,Fn={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},jn={duration:.5,overwrite:!1,delay:0},Un=2*Math.PI,Hn=Un/4,zn=0,qn=Math.sqrt,Gn=Math.cos,Wn=Math.sin,Zn=function(t){return"string"==typeof t},Kn=function(t){return"function"==typeof t},$n=function(t){return"number"==typeof t},Xn=function(t){return void 0===t},Qn=function(t){return"object"==typeof t},Jn=function(t){return!1!==t},tr=function(){return"undefined"!=typeof window},er=function(t){return Kn(t)||Zn(t)},nr="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},rr=Array.isArray,ir=/(?:-?\.?\d|\.)+/gi,ar=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,sr=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,or=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,ur=/[+-]=-?[.\d]+/,cr=/[^,'"\[\]\s]+/gi,lr=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,hr={},fr={},dr=function(t){return(fr=Ur(t,hr))&&ja},pr=function(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")},mr=function(t,e){return!e&&console.warn(t)},gr=function(t,e){return t&&(hr[t]=e)&&fr&&(fr[t]=e)||hr},vr=function(){return 0},yr={suppressEvents:!0,isStart:!0,kill:!1},_r={suppressEvents:!0,kill:!1},br={suppressEvents:!0},wr={},Dr=[],Sr={},Tr={},xr={},Er=30,Mr=[],Or="",kr=function(t){var e,n,r=t[0];if(Qn(r)||Kn(r)||(t=[t]),!(e=(r._gsap||{}).harness)){for(n=Mr.length;n--&&!Mr[n].targetTest(r););e=Mr[n]}for(n=t.length;n--;)t[n]&&(t[n]._gsap||(t[n]._gsap=new na(t[n],e)))||t.splice(n,1);return t},Cr=function(t){return t._gsap||kr(wi(t))[0]._gsap},Ar=function(t,e,n){return(n=t[e])&&Kn(n)?t[e]():Xn(n)&&t.getAttribute&&t.getAttribute(e)||n},Pr=function(t,e){return(t=t.split(",")).forEach(e)||t},Rr=function(t){return Math.round(1e5*t)/1e5||0},Nr=function(t){return Math.round(1e7*t)/1e7||0},Ir=function(t,e){var n=e.charAt(0),r=parseFloat(e.substr(2));return t=parseFloat(t),"+"===n?t+r:"-"===n?t-r:"*"===n?t*r:t/r},Vr=function(t,e){for(var n=e.length,r=0;t.indexOf(e[r])<0&&++r<n;);return r<n},Br=function(){var t,e,n=Dr.length,r=Dr.slice(0);for(Sr={},Dr.length=0,t=0;t<n;t++)(e=r[t])&&e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0)._lazy=0)},Yr=function(t,e,n,r){Dr.length&&Br(),t.render(e,n,r||En&&e<0&&(t._initted||t._startAt)),Dr.length&&Br()},Lr=function(t){var e=parseFloat(t);return(e||0===e)&&(t+"").match(cr).length<2?e:Zn(t)?t.trim():t},Fr=function(t){return t},jr=function(t,e){for(var n in e)n in t||(t[n]=e[n]);return t},Ur=function(t,e){for(var n in e)t[n]=e[n];return t},Hr=function t(e,n){for(var r in n)"__proto__"!==r&&"constructor"!==r&&"prototype"!==r&&(e[r]=Qn(n[r])?t(e[r]||(e[r]={}),n[r]):n[r]);return e},zr=function(t,e){var n,r={};for(n in t)n in e||(r[n]=t[n]);return r},qr=function(t){var e,n=t.parent||On,r=t.keyframes?(e=rr(t.keyframes),function(t,n){for(var r in n)r in t||"duration"===r&&e||"ease"===r||(t[r]=n[r])}):jr;if(Jn(t.inherit))for(;n;)r(t,n.vars.defaults),n=n.parent||n._dp;return t},Gr=function(t,e,n,r,i){void 0===n&&(n="_first"),void 0===r&&(r="_last");var a,s=t[r];if(i)for(a=e[i];s&&s[i]>a;)s=s._prev;return s?(e._next=s._next,s._next=e):(e._next=t[n],t[n]=e),e._next?e._next._prev=e:t[r]=e,e._prev=s,e.parent=e._dp=t,e},Wr=function(t,e,n,r){void 0===n&&(n="_first"),void 0===r&&(r="_last");var i=e._prev,a=e._next;i?i._next=a:t[n]===e&&(t[n]=a),a?a._prev=i:t[r]===e&&(t[r]=i),e._next=e._prev=e.parent=null},Zr=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove(t),t._act=0},Kr=function(t,e){if(t&&(!e||e._end>t._dur||e._start<0))for(var n=t;n;)n._dirty=1,n=n.parent;return t},$r=function(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent;return t},Xr=function(t,e,n,r){return t._startAt&&(En?t._startAt.revert(_r):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,r))},Qr=function t(e){return!e||e._ts&&t(e.parent)},Jr=function(t){return t._repeat?ti(t._tTime,t=t.duration()+t._rDelay)*t:0},ti=function(t,e){var n=Math.floor(t/=e);return t&&n===t?n-1:n},ei=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},ni=function(t){return t._end=Nr(t._start+(t._tDur/Math.abs(t._ts||t._rts||1e-8)||0))},ri=function(t,e){var n=t._dp;return n&&n.smoothChildTiming&&t._ts&&(t._start=Nr(n._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),ni(t),n._dirty||Kr(n,t)),t},ii=function(t,e){var n;if((e._time||e._initted&&!e._dur)&&(n=ei(t.rawTime(),e),(!e._dur||gi(0,e.totalDuration(),n)-e._tTime>1e-8)&&e.render(n,!0)),Kr(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur<t.duration())for(n=t;n._dp;)n.rawTime()>=0&&n.totalTime(n._tTime),n=n._dp;t._zTime=-1e-8}},ai=function(t,e,n,r){return e.parent&&Zr(e),e._start=Nr(($n(n)?n:n||t!==On?di(t,n,e):t._time)+e._delay),e._end=Nr(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),Gr(t,e,"_first","_last",t._sort?"_start":0),ci(e)||(t._recent=e),r||ii(t,e),t._ts<0&&ri(t,t._tTime),t},si=function(t,e){return(hr.ScrollTrigger||pr("scrollTrigger",e))&&hr.ScrollTrigger.create(e,t)},oi=function(t,e,n,r,i){return la(t,e,i),t._initted?!n&&t._pt&&!En&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&Rn!==Hi.frame?(Dr.push(t),t._lazy=[i,r],1):void 0:1},ui=function t(e){var n=e.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||t(n))},ci=function(t){var e=t.data;return"isFromStart"===e||"isStart"===e},li=function(t,e,n,r){var i=t._repeat,a=Nr(e)||0,s=t._tTime/t._tDur;return s&&!r&&(t._time*=a/t._dur),t._dur=a,t._tDur=i?i<0?1e10:Nr(a*(i+1)+t._rDelay*i):a,s>0&&!r&&ri(t,t._tTime=t._tDur*s),t.parent&&ni(t),n||Kr(t.parent,t),t},hi=function(t){return t instanceof ia?Kr(t):li(t,t._dur)},fi={_start:0,endTime:vr,totalDuration:vr},di=function t(e,n,r){var i,a,s,o=e.labels,u=e._recent||fi,c=e.duration()>=1e8?u.endTime(!1):e._dur;return Zn(n)&&(isNaN(n)||n in o)?(a=n.charAt(0),s="%"===n.substr(-1),i=n.indexOf("="),"<"===a||">"===a?(i>=0&&(n=n.replace(/=/,"")),("<"===a?u._start:u.endTime(u._repeat>=0))+(parseFloat(n.substr(1))||0)*(s?(i<0?u:r).totalDuration()/100:1)):i<0?(n in o||(o[n]=c),o[n]):(a=parseFloat(n.charAt(i-1)+n.substr(i+1)),s&&r&&(a=a/100*(rr(r)?r[0]:r).totalDuration()),i>1?t(e,n.substr(0,i-1),r)+a:c+a)):null==n?c:+n},pi=function(t,e,n){var r,i,a=$n(e[1]),s=(a?2:1)+(t<2?0:1),o=e[s];if(a&&(o.duration=e[1]),o.parent=n,t){for(r=o,i=n;i&&!("immediateRender"in r);)r=i.vars.defaults||{},i=Jn(i.vars.inherit)&&i.parent;o.immediateRender=Jn(r.immediateRender),t<2?o.runBackwards=1:o.startAt=e[s-1]}return new ma(e[0],o,e[s+1])},mi=function(t,e){return t||0===t?e(t):e},gi=function(t,e,n){return n<t?t:n>e?e:n},vi=function(t,e){return Zn(t)&&(e=lr.exec(t))?e[1]:""},yi=[].slice,_i=function(t,e){return t&&Qn(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&Qn(t[0]))&&!t.nodeType&&t!==kn},bi=function(t,e,n){return void 0===n&&(n=[]),t.forEach((function(t){var r;return Zn(t)&&!e||_i(t,1)?(r=n).push.apply(r,wi(t)):n.push(t)}))||n},wi=function(t,e,n){return Mn&&!e&&Mn.selector?Mn.selector(t):!Zn(t)||n||!Cn&&zi()?rr(t)?bi(t,n):_i(t)?yi.call(t,0):t?[t]:[]:yi.call((e||An).querySelectorAll(t),0)},Di=function(t){return t=wi(t)[0]||mr("Invalid scope")||{},function(e){var n=t.current||t.nativeElement||t;return wi(e,n.querySelectorAll?n:n===t?mr("Invalid scope")||An.createElement("div"):t)}},Si=function(t){return t.sort((function(){return.5-Math.random()}))},Ti=function(t){if(Kn(t))return t;var e=Qn(t)?t:{each:t},n=Xi(e.ease),r=e.from||0,i=parseFloat(e.base)||0,a={},s=r>0&&r<1,o=isNaN(r)||s,u=e.axis,c=r,l=r;return Zn(r)?c=l={center:.5,edges:.5,end:1}[r]||0:!s&&o&&(c=r[0],l=r[1]),function(t,s,h){var f,d,p,m,g,v,y,_,b,w=(h||e).length,D=a[w];if(!D){if(!(b="auto"===e.grid?0:(e.grid||[1,1e8])[1])){for(y=-1e8;y<(y=h[b++].getBoundingClientRect().left)&&b<w;);b--}for(D=a[w]=[],f=o?Math.min(b,w)*c-.5:r%b,d=1e8===b?0:o?w*l/b-.5:r/b|0,y=0,_=1e8,v=0;v<w;v++)p=v%b-f,m=d-(v/b|0),D[v]=g=u?Math.abs("y"===u?m:p):qn(p*p+m*m),g>y&&(y=g),g<_&&(_=g);"random"===r&&Si(D),D.max=y-_,D.min=_,D.v=w=(parseFloat(e.amount)||parseFloat(e.each)*(b>w?w-1:u?"y"===u?w/b:b:Math.max(b,w/b))||0)*("edges"===r?-1:1),D.b=w<0?i-w:i,D.u=vi(e.amount||e.each)||0,n=n&&w<0?Ki(n):n}return w=(D[t]-D.min)/D.max||0,Nr(D.b+(n?n(w):w)*D.v)+D.u}},xi=function(t){var e=Math.pow(10,((t+"").split(".")[1]||"").length);return function(n){var r=Nr(Math.round(parseFloat(n)/t)*t*e);return(r-r%1)/e+($n(n)?0:vi(n))}},Ei=function(t,e){var n,r,i=rr(t);return!i&&Qn(t)&&(n=i=t.radius||1e8,t.values?(t=wi(t.values),(r=!$n(t[0]))&&(n*=n)):t=xi(t.increment)),mi(e,i?Kn(t)?function(e){return r=t(e),Math.abs(r-e)<=n?r:e}:function(e){for(var i,a,s=parseFloat(r?e.x:e),o=parseFloat(r?e.y:0),u=1e8,c=0,l=t.length;l--;)(i=r?(i=t[l].x-s)*i+(a=t[l].y-o)*a:Math.abs(t[l]-s))<u&&(u=i,c=l);return c=!n||u<=n?t[c]:e,r||c===e||$n(e)?c:c+vi(e)}:xi(t))},Mi=function(t,e,n,r){return mi(rr(t)?!e:!0===n?!!(n=0):!r,(function(){return rr(t)?t[~~(Math.random()*t.length)]:(n=n||1e-5)&&(r=n<1?Math.pow(10,(n+"").length-2):1)&&Math.floor(Math.round((t-n/2+Math.random()*(e-t+.99*n))/n)*n*r)/r}))},Oi=function(t,e,n){return mi(n,(function(n){return t[~~e(n)]}))},ki=function(t){for(var e,n,r,i,a=0,s="";~(e=t.indexOf("random(",a));)r=t.indexOf(")",e),i="["===t.charAt(e+7),n=t.substr(e+7,r-e-7).match(i?cr:ir),s+=t.substr(a,e-a)+Mi(i?n:+n[0],i?0:+n[1],+n[2]||1e-5),a=r+1;return s+t.substr(a,t.length-a)},Ci=function(t,e,n,r,i){var a=e-t,s=r-n;return mi(i,(function(e){return n+((e-t)/a*s||0)}))},Ai=function(t,e,n){var r,i,a,s=t.labels,o=1e8;for(r in s)(i=s[r]-e)<0==!!n&&i&&o>(i=Math.abs(i))&&(a=r,o=i);return a},Pi=function(t,e,n){var r,i,a,s=t.vars,o=s[e],u=Mn,c=t._ctx;if(o)return r=s[e+"Params"],i=s.callbackScope||t,n&&Dr.length&&Br(),c&&(Mn=c),a=r?o.apply(i,r):o.call(i),Mn=u,a},Ri=function(t){return Zr(t),t.scrollTrigger&&t.scrollTrigger.kill(!!En),t.progress()<1&&Pi(t,"onInterrupt"),t},Ni=function(t){var e=(t=!t.name&&t.default||t).name,n=Kn(t),r=e&&!n&&t.init?function(){this._props=[]}:t,i={init:vr,render:Ta,add:ua,kill:Ea,modifier:xa,rawVars:0},a={targetTest:0,get:0,getSetter:ba,aliases:{},register:0};if(zi(),t!==r){if(Tr[e])return;jr(r,jr(zr(t,i),a)),Ur(r.prototype,Ur(i,zr(t,a))),Tr[r.prop=e]=r,t.targetTest&&(Mr.push(r),wr[e]=1),e=("css"===e?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}gr(e,r),t.register&&t.register(ja,r,ka)},Ii={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},Vi=function(t,e,n){return 255*(6*(t+=t<0?1:t>1?-1:0)<1?e+(n-e)*t*6:t<.5?n:3*t<2?e+(n-e)*(2/3-t)*6:e)+.5|0},Bi=function(t,e,n){var r,i,a,s,o,u,c,l,h,f,d=t?$n(t)?[t>>16,t>>8&255,255&t]:0:Ii.black;if(!d){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),Ii[t])d=Ii[t];else if("#"===t.charAt(0)){if(t.length<6&&(r=t.charAt(1),i=t.charAt(2),a=t.charAt(3),t="#"+r+r+i+i+a+a+(5===t.length?t.charAt(4)+t.charAt(4):"")),9===t.length)return[(d=parseInt(t.substr(1,6),16))>>16,d>>8&255,255&d,parseInt(t.substr(7),16)/255];d=[(t=parseInt(t.substr(1),16))>>16,t>>8&255,255&t]}else if("hsl"===t.substr(0,3))if(d=f=t.match(ir),e){if(~t.indexOf("="))return d=t.match(ar),n&&d.length<4&&(d[3]=1),d}else s=+d[0]%360/360,o=+d[1]/100,r=2*(u=+d[2]/100)-(i=u<=.5?u*(o+1):u+o-u*o),d.length>3&&(d[3]*=1),d[0]=Vi(s+1/3,r,i),d[1]=Vi(s,r,i),d[2]=Vi(s-1/3,r,i);else d=t.match(ir)||Ii.transparent;d=d.map(Number)}return e&&!f&&(r=d[0]/255,i=d[1]/255,a=d[2]/255,u=((c=Math.max(r,i,a))+(l=Math.min(r,i,a)))/2,c===l?s=o=0:(h=c-l,o=u>.5?h/(2-c-l):h/(c+l),s=c===r?(i-a)/h+(i<a?6:0):c===i?(a-r)/h+2:(r-i)/h+4,s*=60),d[0]=~~(s+.5),d[1]=~~(100*o+.5),d[2]=~~(100*u+.5)),n&&d.length<4&&(d[3]=1),d},Yi=function(t){var e=[],n=[],r=-1;return t.split(Fi).forEach((function(t){var i=t.match(sr)||[];e.push.apply(e,i),n.push(r+=i.length+1)})),e.c=n,e},Li=function(t,e,n){var r,i,a,s,o="",u=(t+o).match(Fi),c=e?"hsla(":"rgba(",l=0;if(!u)return t;if(u=u.map((function(t){return(t=Bi(t,e,1))&&c+(e?t[0]+","+t[1]+"%,"+t[2]+"%,"+t[3]:t.join(","))+")"})),n&&(a=Yi(t),(r=n.c).join(o)!==a.c.join(o)))for(s=(i=t.replace(Fi,"1").split(sr)).length-1;l<s;l++)o+=i[l]+(~r.indexOf(l)?u.shift()||c+"0,0,0,0)":(a.length?a:u.length?u:n).shift());if(!i)for(s=(i=t.split(Fi)).length-1;l<s;l++)o+=i[l]+u[l];return o+i[s]},Fi=function(){var t,e="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b";for(t in Ii)e+="|"+t+"\\b";return new RegExp(e+")","gi")}(),ji=/hsl[a]?\(/,Ui=function(t){var e,n=t.join(" ");if(Fi.lastIndex=0,Fi.test(n))return e=ji.test(n),t[1]=Li(t[1],e),t[0]=Li(t[0],e,Yi(t[1])),!0},Hi=function(){var t,e,n,r,i,a,s=Date.now,o=500,u=33,c=s(),l=c,h=1e3/240,f=h,d=[],p=function n(p){var m,g,v,y,_=s()-l,b=!0===p;if(_>o&&(c+=_-u),((m=(v=(l+=_)-c)-f)>0||b)&&(y=++r.frame,i=v-1e3*r.time,r.time=v/=1e3,f+=m+(m>=h?4:h-m),g=1),b||(t=e(n)),g)for(a=0;a<d.length;a++)d[a](v,i,y,p)};return r={time:0,frame:0,tick:function(){p(!0)},deltaRatio:function(t){return i/(1e3/(t||60))},wake:function(){Pn&&(!Cn&&tr()&&(kn=Cn=window,An=kn.document||{},hr.gsap=ja,(kn.gsapVersions||(kn.gsapVersions=[])).push(ja.version),dr(fr||kn.GreenSockGlobals||!kn.gsap&&kn||{}),n=kn.requestAnimationFrame),t&&r.sleep(),e=n||function(t){return setTimeout(t,f-1e3*r.time+1|0)},In=1,p(2))},sleep:function(){(n?kn.cancelAnimationFrame:clearTimeout)(t),In=0,e=vr},lagSmoothing:function(t,e){o=t||1/1e-8,u=Math.min(e,o,0)},fps:function(t){h=1e3/(t||240),f=1e3*r.time+h},add:function(t,e,n){var i=e?function(e,n,a,s){t(e,n,a,s),r.remove(i)}:t;return r.remove(t),d[n?"unshift":"push"](i),zi(),i},remove:function(t,e){~(e=d.indexOf(t))&&d.splice(e,1)&&a>=e&&a--},_listeners:d},r}(),zi=function(){return!In&&Hi.wake()},qi={},Gi=/^[\d.\-M][\d.\-,\s]/,Wi=/["']/g,Zi=function(t){for(var e,n,r,i={},a=t.substr(1,t.length-3).split(":"),s=a[0],o=1,u=a.length;o<u;o++)n=a[o],e=o!==u-1?n.lastIndexOf(","):n.length,r=n.substr(0,e),i[s]=isNaN(r)?r.replace(Wi,"").trim():+r,s=n.substr(e+1).trim();return i},Ki=function(t){return function(e){return 1-t(1-e)}},$i=function t(e,n){for(var r,i=e._first;i;)i instanceof ia?t(i,n):!i.vars.yoyoEase||i._yoyo&&i._repeat||i._yoyo===n||(i.timeline?t(i.timeline,n):(r=i._ease,i._ease=i._yEase,i._yEase=r,i._yoyo=n)),i=i._next},Xi=function(t,e){return t&&(Kn(t)?t:qi[t]||function(t){var e=(t+"").split("("),n=qi[e[0]];return n&&e.length>1&&n.config?n.config.apply(null,~t.indexOf("{")?[Zi(e[1])]:function(t){var e=t.indexOf("(")+1,n=t.indexOf(")"),r=t.indexOf("(",e);return t.substring(e,~r&&r<n?t.indexOf(")",n+1):n)}(t).split(",").map(Lr)):qi._CE&&Gi.test(t)?qi._CE("",t):n}(t))||e},Qi=function(t,e,n,r){void 0===n&&(n=function(t){return 1-e(1-t)}),void 0===r&&(r=function(t){return t<.5?e(2*t)/2:1-e(2*(1-t))/2});var i,a={easeIn:e,easeOut:n,easeInOut:r};return Pr(t,(function(t){for(var e in qi[t]=hr[t]=a,qi[i=t.toLowerCase()]=n,a)qi[i+("easeIn"===e?".in":"easeOut"===e?".out":".inOut")]=qi[t+"."+e]=a[e]})),a},Ji=function(t){return function(e){return e<.5?(1-t(1-2*e))/2:.5+t(2*(e-.5))/2}},ta=function t(e,n,r){var i=n>=1?n:1,a=(r||(e?.3:.45))/(n<1?n:1),s=a/Un*(Math.asin(1/i)||0),o=function(t){return 1===t?1:i*Math.pow(2,-10*t)*Wn((t-s)*a)+1},u="out"===e?o:"in"===e?function(t){return 1-o(1-t)}:Ji(o);return a=Un/a,u.config=function(n,r){return t(e,n,r)},u},ea=function t(e,n){void 0===n&&(n=1.70158);var r=function(t){return t?--t*t*((n+1)*t+n)+1:0},i="out"===e?r:"in"===e?function(t){return 1-r(1-t)}:Ji(r);return i.config=function(n){return t(e,n)},i};Pr("Linear,Quad,Cubic,Quart,Quint,Strong",(function(t,e){var n=e<5?e+1:e;Qi(t+",Power"+(n-1),e?function(t){return Math.pow(t,n)}:function(t){return t},(function(t){return 1-Math.pow(1-t,n)}),(function(t){return t<.5?Math.pow(2*t,n)/2:1-Math.pow(2*(1-t),n)/2}))})),qi.Linear.easeNone=qi.none=qi.Linear.easeIn,Qi("Elastic",ta("in"),ta("out"),ta()),Vn=7.5625,Yn=1/(Bn=2.75),Qi("Bounce",(function(t){return 1-Ln(1-t)}),Ln=function(t){return t<Yn?Vn*t*t:t<.7272727272727273?Vn*Math.pow(t-1.5/Bn,2)+.75:t<.9090909090909092?Vn*(t-=2.25/Bn)*t+.9375:Vn*Math.pow(t-2.625/Bn,2)+.984375}),Qi("Expo",(function(t){return t?Math.pow(2,10*(t-1)):0})),Qi("Circ",(function(t){return-(qn(1-t*t)-1)})),Qi("Sine",(function(t){return 1===t?1:1-Gn(t*Hn)})),Qi("Back",ea("in"),ea("out"),ea()),qi.SteppedEase=qi.steps=hr.SteppedEase={config:function(t,e){void 0===t&&(t=1);var n=1/t,r=t+(e?0:1),i=e?1:0;return function(t){return((r*gi(0,.99999999,t)|0)+i)*n}}},jn.ease=qi["quad.out"],Pr("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",(function(t){return Or+=t+","+t+"Params,"}));var na=function(t,e){this.id=zn++,t._gsap=this,this.target=t,this.harness=e,this.get=e?e.get:Ar,this.set=e?e.getSetter:ba},ra=function(){function t(t){this.vars=t,this._delay=+t.delay||0,(this._repeat=t.repeat===1/0?-2:t.repeat||0)&&(this._rDelay=t.repeatDelay||0,this._yoyo=!!t.yoyo||!!t.yoyoEase),this._ts=1,li(this,+t.duration,1,1),this.data=t.data,Mn&&(this._ctx=Mn,Mn.data.push(this)),In||Hi.wake()}var e=t.prototype;return e.delay=function(t){return t||0===t?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+t-this._delay),this._delay=t,this):this._delay},e.duration=function(t){return arguments.length?this.totalDuration(this._repeat>0?t+(t+this._rDelay)*this._repeat:t):this.totalDuration()&&this._dur},e.totalDuration=function(t){return arguments.length?(this._dirty=0,li(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(t,e){if(zi(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(ri(this,t),!n._dp||n.parent||ii(n,this);n&&n.parent;)n.parent._time!==n._start+(n._ts>=0?n._tTime/n._ts:(n.totalDuration()-n._tTime)/-n._ts)&&n.totalTime(n._tTime,!0),n=n.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&t<this._tDur||this._ts<0&&t>0||!this._tDur&&!t)&&ai(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!e||this._initted&&1e-8===Math.abs(this._zTime)||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),Yr(this,t,e)),this},e.time=function(t,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+Jr(this))%(this._dur+this._rDelay)||(t?this._dur:0),e):this._time},e.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.ratio},e.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(!this._yoyo||1&this.iteration()?t:1-t)+Jr(this),e):this.duration()?Math.min(1,this._time/this._dur):this.ratio},e.iteration=function(t,e){var n=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(t-1)*n,e):this._repeat?ti(this._tTime,n)+1:1},e.timeScale=function(t){if(!arguments.length)return-1e-8===this._rts?0:this._rts;if(this._rts===t)return this;var e=this.parent&&this._ts?ei(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||-1e-8===t?0:this._rts,this.totalTime(gi(-this._delay,this._tDur,e),!0),ni(this),$r(this)},e.paused=function(t){return arguments.length?(this._ps!==t&&(this._ps=t,t?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(zi(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&1e-8!==Math.abs(this._zTime)&&(this._tTime-=1e-8)))),this):this._ps},e.startTime=function(t){if(arguments.length){this._start=t;var e=this.parent||this._dp;return e&&(e._sort||!this.parent)&&ai(e,this,t-this._delay),this}return this._start},e.endTime=function(t){return this._start+(Jn(t)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(t){var e=this.parent||this._dp;return e?t&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?ei(e.rawTime(t),this):this._tTime:this._tTime},e.revert=function(t){void 0===t&&(t=br);var e=En;return En=t,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(t),this.totalTime(-.01,t.suppressEvents)),"nested"!==this.data&&!1!==t.kill&&this.kill(),En=e,this},e.globalTime=function(t){for(var e=this,n=arguments.length?t:e.rawTime();e;)n=e._start+n/(e._ts||1),e=e._dp;return!this.parent&&this.vars.immediateRender?-1:n},e.repeat=function(t){return arguments.length?(this._repeat=t===1/0?-2:t,hi(this)):-2===this._repeat?1/0:this._repeat},e.repeatDelay=function(t){if(arguments.length){var e=this._time;return this._rDelay=t,hi(this),e?this.time(e):this}return this._rDelay},e.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},e.seek=function(t,e){return this.totalTime(di(this,t),Jn(e))},e.restart=function(t,e){return this.play().totalTime(t?-this._delay:0,Jn(e))},e.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},e.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},e.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(t){return arguments.length?(!!t!==this.reversed()&&this.timeScale(-this._rts||(t?-1e-8:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-1e-8,this},e.isActive=function(){var t,e=this.parent||this._dp,n=this._start;return!(e&&!(this._ts&&this._initted&&e.isActive()&&(t=e.rawTime(!0))>=n&&t<this.endTime(!0)-1e-8))},e.eventCallback=function(t,e,n){var r=this.vars;return arguments.length>1?(e?(r[t]=e,n&&(r[t+"Params"]=n),"onUpdate"===t&&(this._onUpdate=e)):delete r[t],this):r[t]},e.then=function(t){var e=this;return new Promise((function(n){var r=Kn(t)?t:Fr,i=function(){var t=e.then;e.then=null,Kn(r)&&(r=r(e))&&(r.then||r===e)&&(e.then=t),n(r),e.then=t};e._initted&&1===e.totalProgress()&&e._ts>=0||!e._tTime&&e._ts<0?i():e._prom=i}))},e.kill=function(){Ri(this)},t}();jr(ra.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-1e-8,_prom:0,_ps:!1,_rts:1});var ia=function(t){function e(e,n){var r;return void 0===e&&(e={}),(r=t.call(this,e)||this).labels={},r.smoothChildTiming=!!e.smoothChildTiming,r.autoRemoveChildren=!!e.autoRemoveChildren,r._sort=Jn(e.sortChildren),On&&ai(e.parent||On,Sn(r),n),e.reversed&&r.reverse(),e.paused&&r.paused(!0),e.scrollTrigger&&si(Sn(r),e.scrollTrigger),r}Tn(e,t);var n=e.prototype;return n.to=function(t,e,n){return pi(0,arguments,this),this},n.from=function(t,e,n){return pi(1,arguments,this),this},n.fromTo=function(t,e,n,r){return pi(2,arguments,this),this},n.set=function(t,e,n){return e.duration=0,e.parent=this,qr(e).repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new ma(t,e,di(this,n),1),this},n.call=function(t,e,n){return ai(this,ma.delayedCall(0,t,e),n)},n.staggerTo=function(t,e,n,r,i,a,s){return n.duration=e,n.stagger=n.stagger||r,n.onComplete=a,n.onCompleteParams=s,n.parent=this,new ma(t,n,di(this,i)),this},n.staggerFrom=function(t,e,n,r,i,a,s){return n.runBackwards=1,qr(n).immediateRender=Jn(n.immediateRender),this.staggerTo(t,e,n,r,i,a,s)},n.staggerFromTo=function(t,e,n,r,i,a,s,o){return r.startAt=n,qr(r).immediateRender=Jn(r.immediateRender),this.staggerTo(t,e,r,i,a,s,o)},n.render=function(t,e,n){var r,i,a,s,o,u,c,l,h,f,d,p,m=this._time,g=this._dirty?this.totalDuration():this._tDur,v=this._dur,y=t<=0?0:Nr(t),_=this._zTime<0!=t<0&&(this._initted||!v);if(this!==On&&y>g&&t>=0&&(y=g),y!==this._tTime||n||_){if(m!==this._time&&v&&(y+=this._time-m,t+=this._time-m),r=y,h=this._start,u=!(l=this._ts),_&&(v||(m=this._zTime),(t||!e)&&(this._zTime=t)),this._repeat){if(d=this._yoyo,o=v+this._rDelay,this._repeat<-1&&t<0)return this.totalTime(100*o+t,e,n);if(r=Nr(y%o),y===g?(s=this._repeat,r=v):((s=~~(y/o))&&s===y/o&&(r=v,s--),r>v&&(r=v)),f=ti(this._tTime,o),!m&&this._tTime&&f!==s&&(f=s),d&&1&s&&(r=v-r,p=1),s!==f&&!this._lock){var b=d&&1&f,w=b===(d&&1&s);if(s<f&&(b=!b),m=b?0:v,this._lock=1,this.render(m||(p?0:Nr(s*o)),e,!v)._lock=0,this._tTime=y,!e&&this.parent&&Pi(this,"onRepeat"),this.vars.repeatRefresh&&!p&&(this.invalidate()._lock=1),m&&m!==this._time||u!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(v=this._dur,g=this._tDur,w&&(this._lock=2,m=b?v:-1e-4,this.render(m,!0),this.vars.repeatRefresh&&!p&&this.invalidate()),this._lock=0,!this._ts&&!u)return this;$i(this,p)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(c=function(t,e,n){var r;if(n>e)for(r=t._first;r&&r._start<=n;){if("isPause"===r.data&&r._start>e)return r;r=r._next}else for(r=t._last;r&&r._start>=n;){if("isPause"===r.data&&r._start<e)return r;r=r._prev}}(this,Nr(m),Nr(r)),c&&(y-=r-(r=c._start))),this._tTime=y,this._time=r,this._act=!l,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=t,m=0),!m&&r&&!e&&(Pi(this,"onStart"),this._tTime!==y))return this;if(r>=m&&t>=0)for(i=this._first;i;){if(a=i._next,(i._act||r>=i._start)&&i._ts&&c!==i){if(i.parent!==this)return this.render(t,e,n);if(i.render(i._ts>0?(r-i._start)*i._ts:(i._dirty?i.totalDuration():i._tDur)+(r-i._start)*i._ts,e,n),r!==this._time||!this._ts&&!u){c=0,a&&(y+=this._zTime=-1e-8);break}}i=a}else{i=this._last;for(var D=t<0?t:r;i;){if(a=i._prev,(i._act||D<=i._end)&&i._ts&&c!==i){if(i.parent!==this)return this.render(t,e,n);if(i.render(i._ts>0?(D-i._start)*i._ts:(i._dirty?i.totalDuration():i._tDur)+(D-i._start)*i._ts,e,n||En&&(i._initted||i._startAt)),r!==this._time||!this._ts&&!u){c=0,a&&(y+=this._zTime=D?-1e-8:1e-8);break}}i=a}}if(c&&!e&&(this.pause(),c.render(r>=m?0:-1e-8)._zTime=r>=m?1:-1,this._ts))return this._start=h,ni(this),this.render(t,e,n);this._onUpdate&&!e&&Pi(this,"onUpdate",!0),(y===g&&this._tTime>=this.totalDuration()||!y&&m)&&(h!==this._start&&Math.abs(l)===Math.abs(this._ts)||this._lock||((t||!v)&&(y===g&&this._ts>0||!y&&this._ts<0)&&Zr(this,1),e||t<0&&!m||!y&&!m&&g||(Pi(this,y===g&&t>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(y<g&&this.timeScale()>0)&&this._prom())))}return this},n.add=function(t,e){var n=this;if($n(e)||(e=di(this,e,t)),!(t instanceof ra)){if(rr(t))return t.forEach((function(t){return n.add(t,e)})),this;if(Zn(t))return this.addLabel(t,e);if(!Kn(t))return this;t=ma.delayedCall(0,t)}return this!==t?ai(this,t,e):this},n.getChildren=function(t,e,n,r){void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===n&&(n=!0),void 0===r&&(r=-1e8);for(var i=[],a=this._first;a;)a._start>=r&&(a instanceof ma?e&&i.push(a):(n&&i.push(a),t&&i.push.apply(i,a.getChildren(!0,e,n)))),a=a._next;return i},n.getById=function(t){for(var e=this.getChildren(1,1,1),n=e.length;n--;)if(e[n].vars.id===t)return e[n]},n.remove=function(t){return Zn(t)?this.removeLabel(t):Kn(t)?this.killTweensOf(t):(Wr(this,t),t===this._recent&&(this._recent=this._last),Kr(this))},n.totalTime=function(e,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=Nr(Hi.time-(this._ts>0?e/this._ts:(this.totalDuration()-e)/-this._ts))),t.prototype.totalTime.call(this,e,n),this._forcing=0,this):this._tTime},n.addLabel=function(t,e){return this.labels[t]=di(this,e),this},n.removeLabel=function(t){return delete this.labels[t],this},n.addPause=function(t,e,n){var r=ma.delayedCall(0,e||vr,n);return r.data="isPause",this._hasPause=1,ai(this,r,di(this,t))},n.removePause=function(t){var e=this._first;for(t=di(this,t);e;)e._start===t&&"isPause"===e.data&&Zr(e),e=e._next},n.killTweensOf=function(t,e,n){for(var r=this.getTweensOf(t,n),i=r.length;i--;)aa!==r[i]&&r[i].kill(t,e);return this},n.getTweensOf=function(t,e){for(var n,r=[],i=wi(t),a=this._first,s=$n(e);a;)a instanceof ma?Vr(a._targets,i)&&(s?(!aa||a._initted&&a._ts)&&a.globalTime(0)<=e&&a.globalTime(a.totalDuration())>e:!e||a.isActive())&&r.push(a):(n=a.getTweensOf(i,e)).length&&r.push.apply(r,n),a=a._next;return r},n.tweenTo=function(t,e){e=e||{};var n,r=this,i=di(r,t),a=e,s=a.startAt,o=a.onStart,u=a.onStartParams,c=a.immediateRender,l=ma.to(r,jr({ease:e.ease||"none",lazy:!1,immediateRender:!1,time:i,overwrite:"auto",duration:e.duration||Math.abs((i-(s&&"time"in s?s.time:r._time))/r.timeScale())||1e-8,onStart:function(){if(r.pause(),!n){var t=e.duration||Math.abs((i-(s&&"time"in s?s.time:r._time))/r.timeScale());l._dur!==t&&li(l,t,0,1).render(l._time,!0,!0),n=1}o&&o.apply(l,u||[])}},e));return c?l.render(0):l},n.tweenFromTo=function(t,e,n){return this.tweenTo(e,jr({startAt:{time:di(this,t)}},n))},n.recent=function(){return this._recent},n.nextLabel=function(t){return void 0===t&&(t=this._time),Ai(this,di(this,t))},n.previousLabel=function(t){return void 0===t&&(t=this._time),Ai(this,di(this,t),1)},n.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+1e-8)},n.shiftChildren=function(t,e,n){void 0===n&&(n=0);for(var r,i=this._first,a=this.labels;i;)i._start>=n&&(i._start+=t,i._end+=t),i=i._next;if(e)for(r in a)a[r]>=n&&(a[r]+=t);return Kr(this)},n.invalidate=function(e){var n=this._first;for(this._lock=0;n;)n.invalidate(e),n=n._next;return t.prototype.invalidate.call(this,e)},n.clear=function(t){void 0===t&&(t=!0);for(var e,n=this._first;n;)e=n._next,this.remove(n),n=e;return this._dp&&(this._time=this._tTime=this._pTime=0),t&&(this.labels={}),Kr(this)},n.totalDuration=function(t){var e,n,r,i=0,a=this,s=a._last,o=1e8;if(arguments.length)return a.timeScale((a._repeat<0?a.duration():a.totalDuration())/(a.reversed()?-t:t));if(a._dirty){for(r=a.parent;s;)e=s._prev,s._dirty&&s.totalDuration(),(n=s._start)>o&&a._sort&&s._ts&&!a._lock?(a._lock=1,ai(a,s,n-s._delay,1)._lock=0):o=n,n<0&&s._ts&&(i-=n,(!r&&!a._dp||r&&r.smoothChildTiming)&&(a._start+=n/a._ts,a._time-=n,a._tTime-=n),a.shiftChildren(-n,!1,-Infinity),o=0),s._end>i&&s._ts&&(i=s._end),s=e;li(a,a===On&&a._time>i?a._time:i,1,1),a._dirty=0}return a._tDur},e.updateRoot=function(t){if(On._ts&&(Yr(On,ei(t,On)),Rn=Hi.frame),Hi.frame>=Er){Er+=Fn.autoSleep||120;var e=On._first;if((!e||!e._ts)&&Fn.autoSleep&&Hi._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||Hi.sleep()}}},e}(ra);jr(ia.prototype,{_lock:0,_hasPause:0,_forcing:0});var aa,sa,oa=function(t,e,n,r,i,a,s){var o,u,c,l,h,f,d,p,m=new ka(this._pt,t,e,0,1,Sa,null,i),g=0,v=0;for(m.b=n,m.e=r,n+="",(d=~(r+="").indexOf("random("))&&(r=ki(r)),a&&(a(p=[n,r],t,e),n=p[0],r=p[1]),u=n.match(or)||[];o=or.exec(r);)l=o[0],h=r.substring(g,o.index),c?c=(c+1)%5:"rgba("===h.substr(-5)&&(c=1),l!==u[v++]&&(f=parseFloat(u[v-1])||0,m._pt={_next:m._pt,p:h||1===v?h:",",s:f,c:"="===l.charAt(1)?Ir(f,l)-f:parseFloat(l)-f,m:c&&c<4?Math.round:0},g=or.lastIndex);return m.c=g<r.length?r.substring(g,r.length):"",m.fp=s,(ur.test(r)||d)&&(m.e=0),this._pt=m,m},ua=function(t,e,n,r,i,a,s,o,u,c){Kn(r)&&(r=r(i||0,t,a));var l,h=t[e],f="get"!==n?n:Kn(h)?u?t[e.indexOf("set")||!Kn(t["get"+e.substr(3)])?e:"get"+e.substr(3)](u):t[e]():h,d=Kn(h)?u?ya:va:ga;if(Zn(r)&&(~r.indexOf("random(")&&(r=ki(r)),"="===r.charAt(1)&&((l=Ir(f,r)+(vi(f)||0))||0===l)&&(r=l)),!c||f!==r||sa)return isNaN(f*r)||""===r?(!h&&!(e in t)&&pr(e,r),oa.call(this,t,e,f,r,d,o||Fn.stringFilter,u)):(l=new ka(this._pt,t,e,+f||0,r-(f||0),"boolean"==typeof h?Da:wa,0,d),u&&(l.fp=u),s&&l.modifier(s,this,t),this._pt=l)},ca=function(t,e,n,r,i,a){var s,o,u,c;if(Tr[t]&&!1!==(s=new Tr[t]).init(i,s.rawVars?e[t]:function(t,e,n,r,i){if(Kn(t)&&(t=fa(t,i,e,n,r)),!Qn(t)||t.style&&t.nodeType||rr(t)||nr(t))return Zn(t)?fa(t,i,e,n,r):t;var a,s={};for(a in t)s[a]=fa(t[a],i,e,n,r);return s}(e[t],r,i,a,n),n,r,a)&&(n._pt=o=new ka(n._pt,i,t,0,1,s.render,s,0,s.priority),n!==Nn))for(u=n._ptLookup[n._targets.indexOf(i)],c=s._props.length;c--;)u[s._props[c]]=o;return s},la=function t(e,n,r){var i,a,s,o,u,c,l,h,f,d,p,m,g,v=e.vars,y=v.ease,_=v.startAt,b=v.immediateRender,w=v.lazy,D=v.onUpdate,S=v.onUpdateParams,T=v.callbackScope,x=v.runBackwards,E=v.yoyoEase,M=v.keyframes,O=v.autoRevert,k=e._dur,C=e._startAt,A=e._targets,P=e.parent,R=P&&"nested"===P.data?P.vars.targets:A,N="auto"===e._overwrite&&!xn,I=e.timeline;if(I&&(!M||!y)&&(y="none"),e._ease=Xi(y,jn.ease),e._yEase=E?Ki(Xi(!0===E?y:E,jn.ease)):0,E&&e._yoyo&&!e._repeat&&(E=e._yEase,e._yEase=e._ease,e._ease=E),e._from=!I&&!!v.runBackwards,!I||M&&!v.stagger){if(m=(h=A[0]?Cr(A[0]).harness:0)&&v[h.prop],i=zr(v,wr),C&&(C._zTime<0&&C.progress(1),n<0&&x&&b&&!O?C.render(-1,!0):C.revert(x&&k?_r:yr),C._lazy=0),_){if(Zr(e._startAt=ma.set(A,jr({data:"isStart",overwrite:!1,parent:P,immediateRender:!0,lazy:Jn(w),startAt:null,delay:0,onUpdate:D,onUpdateParams:S,callbackScope:T,stagger:0},_))),e._startAt._dp=0,n<0&&(En||!b&&!O)&&e._startAt.revert(_r),b&&k&&n<=0&&r<=0)return void(n&&(e._zTime=n))}else if(x&&k&&!C)if(n&&(b=!1),s=jr({overwrite:!1,data:"isFromStart",lazy:b&&Jn(w),immediateRender:b,stagger:0,parent:P},i),m&&(s[h.prop]=m),Zr(e._startAt=ma.set(A,s)),e._startAt._dp=0,n<0&&(En?e._startAt.revert(_r):e._startAt.render(-1,!0)),e._zTime=n,b){if(!n)return}else t(e._startAt,1e-8,1e-8);for(e._pt=e._ptCache=0,w=k&&Jn(w)||w&&!k,a=0;a<A.length;a++){if(l=(u=A[a])._gsap||kr(A)[a]._gsap,e._ptLookup[a]=d={},Sr[l.id]&&Dr.length&&Br(),p=R===A?a:R.indexOf(u),h&&!1!==(f=new h).init(u,m||i,e,p,R)&&(e._pt=o=new ka(e._pt,u,f.name,0,1,f.render,f,0,f.priority),f._props.forEach((function(t){d[t]=o})),f.priority&&(c=1)),!h||m)for(s in i)Tr[s]&&(f=ca(s,i,e,p,u,R))?f.priority&&(c=1):d[s]=o=ua.call(e,u,s,"get",i[s],p,R,0,v.stringFilter);e._op&&e._op[a]&&e.kill(u,e._op[a]),N&&e._pt&&(aa=e,On.killTweensOf(u,d,e.globalTime(n)),g=!e.parent,aa=0),e._pt&&w&&(Sr[l.id]=1)}c&&Oa(e),e._onInit&&e._onInit(e)}e._onUpdate=D,e._initted=(!e._op||e._pt)&&!g,M&&n<=0&&I.render(1e8,!0,!0)},ha=function(t,e,n,r){var i,a,s=e.ease||r||"power1.inOut";if(rr(e))a=n[t]||(n[t]=[]),e.forEach((function(t,n){return a.push({t:n/(e.length-1)*100,v:t,e:s})}));else for(i in e)a=n[i]||(n[i]=[]),"ease"===i||a.push({t:parseFloat(t),v:e[i],e:s})},fa=function(t,e,n,r,i){return Kn(t)?t.call(e,n,r,i):Zn(t)&&~t.indexOf("random(")?ki(t):t},da=Or+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",pa={};Pr(da+",id,stagger,delay,duration,paused,scrollTrigger",(function(t){return pa[t]=1}));var ma=function(t){function e(e,n,r,i){var a;"number"==typeof n&&(r.duration=n,n=r,r=null);var s,o,u,c,l,h,f,d,p=(a=t.call(this,i?n:qr(n))||this).vars,m=p.duration,g=p.delay,v=p.immediateRender,y=p.stagger,_=p.overwrite,b=p.keyframes,w=p.defaults,D=p.scrollTrigger,S=p.yoyoEase,T=n.parent||On,x=(rr(e)||nr(e)?$n(e[0]):"length"in n)?[e]:wi(e);if(a._targets=x.length?kr(x):mr("GSAP target "+e+" not found. https://greensock.com",!Fn.nullTargetWarn)||[],a._ptLookup=[],a._overwrite=_,b||y||er(m)||er(g)){if(n=a.vars,(s=a.timeline=new ia({data:"nested",defaults:w||{},targets:T&&"nested"===T.data?T.vars.targets:x})).kill(),s.parent=s._dp=Sn(a),s._start=0,y||er(m)||er(g)){if(c=x.length,f=y&&Ti(y),Qn(y))for(l in y)~da.indexOf(l)&&(d||(d={}),d[l]=y[l]);for(o=0;o<c;o++)(u=zr(n,pa)).stagger=0,S&&(u.yoyoEase=S),d&&Ur(u,d),h=x[o],u.duration=+fa(m,Sn(a),o,h,x),u.delay=(+fa(g,Sn(a),o,h,x)||0)-a._delay,!y&&1===c&&u.delay&&(a._delay=g=u.delay,a._start+=g,u.delay=0),s.to(h,u,f?f(o,h,x):0),s._ease=qi.none;s.duration()?m=g=0:a.timeline=0}else if(b){qr(jr(s.vars.defaults,{ease:"none"})),s._ease=Xi(b.ease||n.ease||"none");var E,M,O,k=0;if(rr(b))b.forEach((function(t){return s.to(x,t,">")})),s.duration();else{for(l in u={},b)"ease"===l||"easeEach"===l||ha(l,b[l],u,b.easeEach);for(l in u)for(E=u[l].sort((function(t,e){return t.t-e.t})),k=0,o=0;o<E.length;o++)(O={ease:(M=E[o]).e,duration:(M.t-(o?E[o-1].t:0))/100*m})[l]=M.v,s.to(x,O,k),k+=O.duration;s.duration()<m&&s.to({},{duration:m-s.duration()})}}m||a.duration(m=s.duration())}else a.timeline=0;return!0!==_||xn||(aa=Sn(a),On.killTweensOf(x),aa=0),ai(T,Sn(a),r),n.reversed&&a.reverse(),n.paused&&a.paused(!0),(v||!m&&!b&&a._start===Nr(T._time)&&Jn(v)&&Qr(Sn(a))&&"nested"!==T.data)&&(a._tTime=-1e-8,a.render(Math.max(0,-g)||0)),D&&si(Sn(a),D),a}Tn(e,t);var n=e.prototype;return n.render=function(t,e,n){var r,i,a,s,o,u,c,l,h,f=this._time,d=this._tDur,p=this._dur,m=t<0,g=t>d-1e-8&&!m?d:t<1e-8?0:t;if(p){if(g!==this._tTime||!t||n||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==m){if(r=g,l=this.timeline,this._repeat){if(s=p+this._rDelay,this._repeat<-1&&m)return this.totalTime(100*s+t,e,n);if(r=Nr(g%s),g===d?(a=this._repeat,r=p):((a=~~(g/s))&&a===g/s&&(r=p,a--),r>p&&(r=p)),(u=this._yoyo&&1&a)&&(h=this._yEase,r=p-r),o=ti(this._tTime,s),r===f&&!n&&this._initted)return this._tTime=g,this;a!==o&&(l&&this._yEase&&$i(l,u),!this.vars.repeatRefresh||u||this._lock||(this._lock=n=1,this.render(Nr(s*a),!0).invalidate()._lock=0))}if(!this._initted){if(oi(this,m?t:r,n,e,g))return this._tTime=0,this;if(f!==this._time)return this;if(p!==this._dur)return this.render(t,e,n)}if(this._tTime=g,this._time=r,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=c=(h||this._ease)(r/p),this._from&&(this.ratio=c=1-c),r&&!f&&!e&&(Pi(this,"onStart"),this._tTime!==g))return this;for(i=this._pt;i;)i.r(c,i.d),i=i._next;l&&l.render(t<0?t:!r&&u?-1e-8:l._dur*l._ease(r/this._dur),e,n)||this._startAt&&(this._zTime=t),this._onUpdate&&!e&&(m&&Xr(this,t,0,n),Pi(this,"onUpdate")),this._repeat&&a!==o&&this.vars.onRepeat&&!e&&this.parent&&Pi(this,"onRepeat"),g!==this._tDur&&g||this._tTime!==g||(m&&!this._onUpdate&&Xr(this,t,0,!0),(t||!p)&&(g===this._tDur&&this._ts>0||!g&&this._ts<0)&&Zr(this,1),e||m&&!f||!(g||f||u)||(Pi(this,g===d?"onComplete":"onReverseComplete",!0),this._prom&&!(g<d&&this.timeScale()>0)&&this._prom()))}}else!function(t,e,n,r){var i,a,s,o=t.ratio,u=e<0||!e&&(!t._start&&ui(t)&&(t._initted||!ci(t))||(t._ts<0||t._dp._ts<0)&&!ci(t))?0:1,c=t._rDelay,l=0;if(c&&t._repeat&&(l=gi(0,t._tDur,e),a=ti(l,c),t._yoyo&&1&a&&(u=1-u),a!==ti(t._tTime,c)&&(o=1-u,t.vars.repeatRefresh&&t._initted&&t.invalidate())),u!==o||En||r||1e-8===t._zTime||!e&&t._zTime){if(!t._initted&&oi(t,e,r,n,l))return;for(s=t._zTime,t._zTime=e||(n?1e-8:0),n||(n=e&&!s),t.ratio=u,t._from&&(u=1-u),t._time=0,t._tTime=l,i=t._pt;i;)i.r(u,i.d),i=i._next;e<0&&Xr(t,e,0,!0),t._onUpdate&&!n&&Pi(t,"onUpdate"),l&&t._repeat&&!n&&t.parent&&Pi(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===u&&(u&&Zr(t,1),n||En||(Pi(t,u?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)}(this,t,e,n);return this},n.targets=function(){return this._targets},n.invalidate=function(e){return(!e||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(e),t.prototype.invalidate.call(this,e)},n.resetTo=function(t,e,n,r){In||Hi.wake(),this._ts||this.play();var i=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return this._initted||la(this,i),function(t,e,n,r,i,a,s){var o,u,c,l,h=(t._pt&&t._ptCache||(t._ptCache={}))[e];if(!h)for(h=t._ptCache[e]=[],c=t._ptLookup,l=t._targets.length;l--;){if((o=c[l][e])&&o.d&&o.d._pt)for(o=o.d._pt;o&&o.p!==e&&o.fp!==e;)o=o._next;if(!o)return sa=1,t.vars[e]="+=0",la(t,s),sa=0,1;h.push(o)}for(l=h.length;l--;)(o=(u=h[l])._pt||u).s=!r&&0!==r||i?o.s+(r||0)+a*o.c:r,o.c=n-o.s,u.e&&(u.e=Rr(n)+vi(u.e)),u.b&&(u.b=o.s+vi(u.b))}(this,t,e,n,r,this._ease(i/this._dur),i)?this.resetTo(t,e,n,r):(ri(this,0),this.parent||Gr(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},n.kill=function(t,e){if(void 0===e&&(e="all"),!(t||e&&"all"!==e))return this._lazy=this._pt=0,this.parent?Ri(this):this;if(this.timeline){var n=this.timeline.totalDuration();return this.timeline.killTweensOf(t,e,aa&&!0!==aa.vars.overwrite)._first||Ri(this),this.parent&&n!==this.timeline.totalDuration()&&li(this,this._dur*this.timeline._tDur/n,0,1),this}var r,i,a,s,o,u,c,l=this._targets,h=t?wi(t):l,f=this._ptLookup,d=this._pt;if((!e||"all"===e)&&function(t,e){for(var n=t.length,r=n===e.length;r&&n--&&t[n]===e[n];);return n<0}(l,h))return"all"===e&&(this._pt=0),Ri(this);for(r=this._op=this._op||[],"all"!==e&&(Zn(e)&&(o={},Pr(e,(function(t){return o[t]=1})),e=o),e=function(t,e){var n,r,i,a,s=t[0]?Cr(t[0]).harness:0,o=s&&s.aliases;if(!o)return e;for(r in n=Ur({},e),o)if(r in n)for(i=(a=o[r].split(",")).length;i--;)n[a[i]]=n[r];return n}(l,e)),c=l.length;c--;)if(~h.indexOf(l[c]))for(o in i=f[c],"all"===e?(r[c]=e,s=i,a={}):(a=r[c]=r[c]||{},s=e),s)(u=i&&i[o])&&("kill"in u.d&&!0!==u.d.kill(o)||Wr(this,u,"_pt"),delete i[o]),"all"!==a&&(a[o]=1);return this._initted&&!this._pt&&d&&Ri(this),this},e.to=function(t,n){return new e(t,n,arguments[2])},e.from=function(t,e){return pi(1,arguments)},e.delayedCall=function(t,n,r,i){return new e(n,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:t,onComplete:n,onReverseComplete:n,onCompleteParams:r,onReverseCompleteParams:r,callbackScope:i})},e.fromTo=function(t,e,n){return pi(2,arguments)},e.set=function(t,n){return n.duration=0,n.repeatDelay||(n.repeat=0),new e(t,n)},e.killTweensOf=function(t,e,n){return On.killTweensOf(t,e,n)},e}(ra);jr(ma.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),Pr("staggerTo,staggerFrom,staggerFromTo",(function(t){ma[t]=function(){var e=new ia,n=yi.call(arguments,0);return n.splice("staggerFromTo"===t?5:4,0,0),e[t].apply(e,n)}}));var ga=function(t,e,n){return t[e]=n},va=function(t,e,n){return t[e](n)},ya=function(t,e,n,r){return t[e](r.fp,n)},_a=function(t,e,n){return t.setAttribute(e,n)},ba=function(t,e){return Kn(t[e])?va:Xn(t[e])&&t.setAttribute?_a:ga},wa=function(t,e){return e.set(e.t,e.p,Math.round(1e6*(e.s+e.c*t))/1e6,e)},Da=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},Sa=function(t,e){var n=e._pt,r="";if(!t&&e.b)r=e.b;else if(1===t&&e.e)r=e.e;else{for(;n;)r=n.p+(n.m?n.m(n.s+n.c*t):Math.round(1e4*(n.s+n.c*t))/1e4)+r,n=n._next;r+=e.c}e.set(e.t,e.p,r,e)},Ta=function(t,e){for(var n=e._pt;n;)n.r(t,n.d),n=n._next},xa=function(t,e,n,r){for(var i,a=this._pt;a;)i=a._next,a.p===r&&a.modifier(t,e,n),a=i},Ea=function(t){for(var e,n,r=this._pt;r;)n=r._next,r.p===t&&!r.op||r.op===t?Wr(this,r,"_pt"):r.dep||(e=1),r=n;return!e},Ma=function(t,e,n,r){r.mSet(t,e,r.m.call(r.tween,n,r.mt),r)},Oa=function(t){for(var e,n,r,i,a=t._pt;a;){for(e=a._next,n=r;n&&n.pr>a.pr;)n=n._next;(a._prev=n?n._prev:i)?a._prev._next=a:r=a,(a._next=n)?n._prev=a:i=a,a=e}t._pt=r},ka=function(){function t(t,e,n,r,i,a,s,o,u){this.t=e,this.s=r,this.c=i,this.p=n,this.r=a||wa,this.d=s||this,this.set=o||ga,this.pr=u||0,this._next=t,t&&(t._prev=this)}return t.prototype.modifier=function(t,e,n){this.mSet=this.mSet||this.set,this.set=Ma,this.m=t,this.mt=n,this.tween=e},t}();Pr(Or+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",(function(t){return wr[t]=1})),hr.TweenMax=hr.TweenLite=ma,hr.TimelineLite=hr.TimelineMax=ia,On=new ia({sortChildren:!1,defaults:jn,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),Fn.stringFilter=Ui;var Ca=[],Aa={},Pa=[],Ra=0,Na=function(t){return(Aa[t]||Pa).map((function(t){return t()}))},Ia=function(){var t=Date.now(),e=[];t-Ra>2&&(Na("matchMediaInit"),Ca.forEach((function(t){var n,r,i,a,s=t.queries,o=t.conditions;for(r in s)(n=kn.matchMedia(s[r]).matches)&&(i=1),n!==o[r]&&(o[r]=n,a=1);a&&(t.revert(),i&&e.push(t))})),Na("matchMediaRevert"),e.forEach((function(t){return t.onMatch(t)})),Ra=t,Na("matchMedia"))},Va=function(){function t(t,e){this.selector=e&&Di(e),this.data=[],this._r=[],this.isReverted=!1,t&&this.add(t)}var e=t.prototype;return e.add=function(t,e,n){Kn(t)&&(n=e,e=t,t=Kn);var r=this,i=function(){var t,i=Mn,a=r.selector;return i&&i!==r&&i.data.push(r),n&&(r.selector=Di(n)),Mn=r,t=e.apply(r,arguments),Kn(t)&&r._r.push(t),Mn=i,r.selector=a,r.isReverted=!1,t};return r.last=i,t===Kn?i(r):t?r[t]=i:i},e.ignore=function(t){var e=Mn;Mn=null,t(this),Mn=e},e.getTweens=function(){var e=[];return this.data.forEach((function(n){return n instanceof t?e.push.apply(e,n.getTweens()):n instanceof ma&&!(n.parent&&"nested"===n.parent.data)&&e.push(n)})),e},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(t,e){var n=this;if(t){var r=this.getTweens();this.data.forEach((function(t){"isFlip"===t.data&&(t.revert(),t.getChildren(!0,!0,!1).forEach((function(t){return r.splice(r.indexOf(t),1)})))})),r.map((function(t){return{g:t.globalTime(0),t:t}})).sort((function(t,e){return e.g-t.g||-1})).forEach((function(e){return e.t.revert(t)})),this.data.forEach((function(e){return!(e instanceof ra)&&e.revert&&e.revert(t)})),this._r.forEach((function(e){return e(t,n)})),this.isReverted=!0}else this.data.forEach((function(t){return t.kill&&t.kill()}));if(this.clear(),e){var i=Ca.indexOf(this);~i&&Ca.splice(i,1)}},e.revert=function(t){this.kill(t||{})},t}(),Ba=function(){function t(t){this.contexts=[],this.scope=t}var e=t.prototype;return e.add=function(t,e,n){Qn(t)||(t={matches:t});var r,i,a,s=new Va(0,n||this.scope),o=s.conditions={};for(i in this.contexts.push(s),e=s.add("onMatch",e),s.queries=t,t)"all"===i?a=1:(r=kn.matchMedia(t[i]))&&(Ca.indexOf(s)<0&&Ca.push(s),(o[i]=r.matches)&&(a=1),r.addListener?r.addListener(Ia):r.addEventListener("change",Ia));return a&&e(s),this},e.revert=function(t){this.kill(t||{})},e.kill=function(t){this.contexts.forEach((function(e){return e.kill(t,!0)}))},t}(),Ya={registerPlugin:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e.forEach((function(t){return Ni(t)}))},timeline:function(t){return new ia(t)},getTweensOf:function(t,e){return On.getTweensOf(t,e)},getProperty:function(t,e,n,r){Zn(t)&&(t=wi(t)[0]);var i=Cr(t||{}).get,a=n?Fr:Lr;return"native"===n&&(n=""),t?e?a((Tr[e]&&Tr[e].get||i)(t,e,n,r)):function(e,n,r){return a((Tr[e]&&Tr[e].get||i)(t,e,n,r))}:t},quickSetter:function(t,e,n){if((t=wi(t)).length>1){var r=t.map((function(t){return ja.quickSetter(t,e,n)})),i=r.length;return function(t){for(var e=i;e--;)r[e](t)}}t=t[0]||{};var a=Tr[e],s=Cr(t),o=s.harness&&(s.harness.aliases||{})[e]||e,u=a?function(e){var r=new a;Nn._pt=0,r.init(t,n?e+n:e,Nn,0,[t]),r.render(1,r),Nn._pt&&Ta(1,Nn)}:s.set(t,o);return a?u:function(e){return u(t,o,n?e+n:e,s,1)}},quickTo:function(t,e,n){var r,i=ja.to(t,Ur(((r={})[e]="+=0.1",r.paused=!0,r),n||{})),a=function(t,n,r){return i.resetTo(e,t,n,r)};return a.tween=i,a},isTweening:function(t){return On.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=Xi(t.ease,jn.ease)),Hr(jn,t||{})},config:function(t){return Hr(Fn,t||{})},registerEffect:function(t){var e=t.name,n=t.effect,r=t.plugins,i=t.defaults,a=t.extendTimeline;(r||"").split(",").forEach((function(t){return t&&!Tr[t]&&!hr[t]&&mr(e+" effect requires "+t+" plugin.")})),xr[e]=function(t,e,r){return n(wi(t),jr(e||{},i),r)},a&&(ia.prototype[e]=function(t,n,r){return this.add(xr[e](t,Qn(n)?n:(r=n)&&{},this),r)})},registerEase:function(t,e){qi[t]=Xi(e)},parseEase:function(t,e){return arguments.length?Xi(t,e):qi},getById:function(t){return On.getById(t)},exportRoot:function(t,e){void 0===t&&(t={});var n,r,i=new ia(t);for(i.smoothChildTiming=Jn(t.smoothChildTiming),On.remove(i),i._dp=0,i._time=i._tTime=On._time,n=On._first;n;)r=n._next,!e&&!n._dur&&n instanceof ma&&n.vars.onComplete===n._targets[0]||ai(i,n,n._start-n._delay),n=r;return ai(On,i,0),i},context:function(t,e){return t?new Va(t,e):Mn},matchMedia:function(t){return new Ba(t)},matchMediaRefresh:function(){return Ca.forEach((function(t){var e,n,r=t.conditions;for(n in r)r[n]&&(r[n]=!1,e=1);e&&t.revert()}))||Ia()},addEventListener:function(t,e){var n=Aa[t]||(Aa[t]=[]);~n.indexOf(e)||n.push(e)},removeEventListener:function(t,e){var n=Aa[t],r=n&&n.indexOf(e);r>=0&&n.splice(r,1)},utils:{wrap:function t(e,n,r){var i=n-e;return rr(e)?Oi(e,t(0,e.length),n):mi(r,(function(t){return(i+(t-e)%i)%i+e}))},wrapYoyo:function t(e,n,r){var i=n-e,a=2*i;return rr(e)?Oi(e,t(0,e.length-1),n):mi(r,(function(t){return e+((t=(a+(t-e)%a)%a||0)>i?a-t:t)}))},distribute:Ti,random:Mi,snap:Ei,normalize:function(t,e,n){return Ci(t,e,0,1,n)},getUnit:vi,clamp:function(t,e,n){return mi(n,(function(n){return gi(t,e,n)}))},splitColor:Bi,toArray:wi,selector:Di,mapRange:Ci,pipe:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){return e.reduce((function(t,e){return e(t)}),t)}},unitize:function(t,e){return function(n){return t(parseFloat(n))+(e||vi(n))}},interpolate:function t(e,n,r,i){var a=isNaN(e+n)?0:function(t){return(1-t)*e+t*n};if(!a){var s,o,u,c,l,h=Zn(e),f={};if(!0===r&&(i=1)&&(r=null),h)e={p:e},n={p:n};else if(rr(e)&&!rr(n)){for(u=[],c=e.length,l=c-2,o=1;o<c;o++)u.push(t(e[o-1],e[o]));c--,a=function(t){t*=c;var e=Math.min(l,~~t);return u[e](t-e)},r=n}else i||(e=Ur(rr(e)?[]:{},e));if(!u){for(s in n)ua.call(f,e,s,"get",n[s]);a=function(t){return Ta(t,f)||(h?e.p:e)}}}return mi(r,a)},shuffle:Si},install:dr,effects:xr,ticker:Hi,updateRoot:ia.updateRoot,plugins:Tr,globalTimeline:On,core:{PropTween:ka,globals:gr,Tween:ma,Timeline:ia,Animation:ra,getCache:Cr,_removeLinkedListItem:Wr,reverting:function(){return En},context:function(t){return t&&Mn&&(Mn.data.push(t),t._ctx=Mn),Mn},suppressOverwrites:function(t){return xn=t}}};Pr("to,from,fromTo,delayedCall,set,killTweensOf",(function(t){return Ya[t]=ma[t]})),Hi.add(ia.updateRoot),Nn=Ya.to({},{duration:0});var La=function(t,e){for(var n=t._pt;n&&n.p!==e&&n.op!==e&&n.fp!==e;)n=n._next;return n},Fa=function(t,e){return{name:t,rawVars:1,init:function(t,n,r){r._onInit=function(t){var r,i;if(Zn(n)&&(r={},Pr(n,(function(t){return r[t]=1})),n=r),e){for(i in r={},n)r[i]=e(n[i]);n=r}!function(t,e){var n,r,i,a=t._targets;for(n in e)for(r=a.length;r--;)(i=t._ptLookup[r][n])&&(i=i.d)&&(i._pt&&(i=La(i,n)),i&&i.modifier&&i.modifier(e[n],t,a[r],n))}(t,n)}}}},ja=Ya.registerPlugin({name:"attr",init:function(t,e,n,r,i){var a,s,o;for(a in this.tween=n,e)o=t.getAttribute(a)||"",(s=this.add(t,"setAttribute",(o||0)+"",e[a],r,i,0,0,a)).op=a,s.b=o,this._props.push(a)},render:function(t,e){for(var n=e._pt;n;)En?n.set(n.t,n.p,n.b,n):n.r(t,n.d),n=n._next}},{name:"endArray",init:function(t,e){for(var n=e.length;n--;)this.add(t,n,t[n]||0,e[n],0,0,0,0,0,1)}},Fa("roundProps",xi),Fa("modifiers"),Fa("snap",Ei))||Ya;ma.version=ia.version=ja.version="3.11.3",Pn=1,tr()&&zi(),qi.Power0,qi.Power1,qi.Power2,qi.Power3,qi.Power4,qi.Linear,qi.Quad,qi.Cubic,qi.Quart,qi.Quint,qi.Strong,qi.Elastic,qi.Back,qi.SteppedEase,qi.Bounce,qi.Sine,qi.Expo,qi.Circ;
|
|
27
|
+
*/var Xn,Qn,Jn,tr,er,nr,rr,ir,ar,sr,or,ur,cr,lr,hr,fr={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},dr={duration:.5,overwrite:!1,delay:0},pr=2*Math.PI,mr=pr/4,gr=0,vr=Math.sqrt,yr=Math.cos,br=Math.sin,_r=function(t){return"string"==typeof t},wr=function(t){return"function"==typeof t},Dr=function(t){return"number"==typeof t},Tr=function(t){return void 0===t},Sr=function(t){return"object"==typeof t},xr=function(t){return!1!==t},Er=function(){return"undefined"!=typeof window},Mr=function(t){return wr(t)||_r(t)},Or="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},kr=Array.isArray,Cr=/(?:-?\.?\d|\.)+/gi,Ar=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Pr=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,Rr=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,Nr=/[+-]=-?[.\d]+/,Ir=/[^,'"\[\]\s]+/gi,Vr=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,Br={},Yr={},Lr=function(t){return(Yr=pi(t,Br))&&ds},Fr=function(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")},jr=function(t,e){return!e&&console.warn(t)},Ur=function(t,e){return t&&(Br[t]=e)&&Yr&&(Yr[t]=e)||Br},Hr=function(){return 0},zr={suppressEvents:!0,isStart:!0,kill:!1},qr={suppressEvents:!0,kill:!1},Gr={suppressEvents:!0},Wr={},Zr=[],$r={},Kr={},Xr={},Qr=30,Jr=[],ti="",ei=function(t){var e,n,r=t[0];if(Sr(r)||wr(r)||(t=[t]),!(e=(r._gsap||{}).harness)){for(n=Jr.length;n--&&!Jr[n].targetTest(r););e=Jr[n]}for(n=t.length;n--;)t[n]&&(t[n]._gsap||(t[n]._gsap=new Oa(t[n],e)))||t.splice(n,1);return t},ni=function(t){return t._gsap||ei(Wi(t))[0]._gsap},ri=function(t,e,n){return(n=t[e])&&wr(n)?t[e]():Tr(n)&&t.getAttribute&&t.getAttribute(e)||n},ii=function(t,e){return(t=t.split(",")).forEach(e)||t},ai=function(t){return Math.round(1e5*t)/1e5||0},si=function(t){return Math.round(1e7*t)/1e7||0},oi=function(t,e){var n=e.charAt(0),r=parseFloat(e.substr(2));return t=parseFloat(t),"+"===n?t+r:"-"===n?t-r:"*"===n?t*r:t/r},ui=function(t,e){for(var n=e.length,r=0;t.indexOf(e[r])<0&&++r<n;);return r<n},ci=function(){var t,e,n=Zr.length,r=Zr.slice(0);for($r={},Zr.length=0,t=0;t<n;t++)(e=r[t])&&e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0)._lazy=0)},li=function(t,e,n,r){Zr.length&&ci(),t.render(e,n,r||Qn&&e<0&&(t._initted||t._startAt)),Zr.length&&ci()},hi=function(t){var e=parseFloat(t);return(e||0===e)&&(t+"").match(Ir).length<2?e:_r(t)?t.trim():t},fi=function(t){return t},di=function(t,e){for(var n in e)n in t||(t[n]=e[n]);return t},pi=function(t,e){for(var n in e)t[n]=e[n];return t},mi=function t(e,n){for(var r in n)"__proto__"!==r&&"constructor"!==r&&"prototype"!==r&&(e[r]=Sr(n[r])?t(e[r]||(e[r]={}),n[r]):n[r]);return e},gi=function(t,e){var n,r={};for(n in t)n in e||(r[n]=t[n]);return r},vi=function(t){var e,n=t.parent||tr,r=t.keyframes?(e=kr(t.keyframes),function(t,n){for(var r in n)r in t||"duration"===r&&e||"ease"===r||(t[r]=n[r])}):di;if(xr(t.inherit))for(;n;)r(t,n.vars.defaults),n=n.parent||n._dp;return t},yi=function(t,e,n,r,i){void 0===n&&(n="_first"),void 0===r&&(r="_last");var a,s=t[r];if(i)for(a=e[i];s&&s[i]>a;)s=s._prev;return s?(e._next=s._next,s._next=e):(e._next=t[n],t[n]=e),e._next?e._next._prev=e:t[r]=e,e._prev=s,e.parent=e._dp=t,e},bi=function(t,e,n,r){void 0===n&&(n="_first"),void 0===r&&(r="_last");var i=e._prev,a=e._next;i?i._next=a:t[n]===e&&(t[n]=a),a?a._prev=i:t[r]===e&&(t[r]=i),e._next=e._prev=e.parent=null},_i=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove(t),t._act=0},wi=function(t,e){if(t&&(!e||e._end>t._dur||e._start<0))for(var n=t;n;)n._dirty=1,n=n.parent;return t},Di=function(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent;return t},Ti=function(t,e,n,r){return t._startAt&&(Qn?t._startAt.revert(qr):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,r))},Si=function t(e){return!e||e._ts&&t(e.parent)},xi=function(t){return t._repeat?Ei(t._tTime,t=t.duration()+t._rDelay)*t:0},Ei=function(t,e){var n=Math.floor(t/=e);return t&&n===t?n-1:n},Mi=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},Oi=function(t){return t._end=si(t._start+(t._tDur/Math.abs(t._ts||t._rts||1e-8)||0))},ki=function(t,e){var n=t._dp;return n&&n.smoothChildTiming&&t._ts&&(t._start=si(n._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),Oi(t),n._dirty||wi(n,t)),t},Ci=function(t,e){var n;if((e._time||e._initted&&!e._dur)&&(n=Mi(t.rawTime(),e),(!e._dur||Ui(0,e.totalDuration(),n)-e._tTime>1e-8)&&e.render(n,!0)),wi(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur<t.duration())for(n=t;n._dp;)n.rawTime()>=0&&n.totalTime(n._tTime),n=n._dp;t._zTime=-1e-8}},Ai=function(t,e,n,r){return e.parent&&_i(e),e._start=si((Dr(n)?n:n||t!==tr?Li(t,n,e):t._time)+e._delay),e._end=si(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),yi(t,e,"_first","_last",t._sort?"_start":0),Ii(e)||(t._recent=e),r||Ci(t,e),t._ts<0&&ki(t,t._tTime),t},Pi=function(t,e){return(Br.ScrollTrigger||Fr("scrollTrigger",e))&&Br.ScrollTrigger.create(e,t)},Ri=function(t,e,n,r,i){return Va(t,e,i),t._initted?!n&&t._pt&&!Qn&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&ar!==ma.frame?(Zr.push(t),t._lazy=[i,r],1):void 0:1},Ni=function t(e){var n=e.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||t(n))},Ii=function(t){var e=t.data;return"isFromStart"===e||"isStart"===e},Vi=function(t,e,n,r){var i=t._repeat,a=si(e)||0,s=t._tTime/t._tDur;return s&&!r&&(t._time*=a/t._dur),t._dur=a,t._tDur=i?i<0?1e10:si(a*(i+1)+t._rDelay*i):a,s>0&&!r&&ki(t,t._tTime=t._tDur*s),t.parent&&Oi(t),n||wi(t.parent,t),t},Bi=function(t){return t instanceof Ca?wi(t):Vi(t,t._dur)},Yi={_start:0,endTime:Hr,totalDuration:Hr},Li=function t(e,n,r){var i,a,s,o=e.labels,u=e._recent||Yi,c=e.duration()>=1e8?u.endTime(!1):e._dur;return _r(n)&&(isNaN(n)||n in o)?(a=n.charAt(0),s="%"===n.substr(-1),i=n.indexOf("="),"<"===a||">"===a?(i>=0&&(n=n.replace(/=/,"")),("<"===a?u._start:u.endTime(u._repeat>=0))+(parseFloat(n.substr(1))||0)*(s?(i<0?u:r).totalDuration()/100:1)):i<0?(n in o||(o[n]=c),o[n]):(a=parseFloat(n.charAt(i-1)+n.substr(i+1)),s&&r&&(a=a/100*(kr(r)?r[0]:r).totalDuration()),i>1?t(e,n.substr(0,i-1),r)+a:c+a)):null==n?c:+n},Fi=function(t,e,n){var r,i,a=Dr(e[1]),s=(a?2:1)+(t<2?0:1),o=e[s];if(a&&(o.duration=e[1]),o.parent=n,t){for(r=o,i=n;i&&!("immediateRender"in r);)r=i.vars.defaults||{},i=xr(i.vars.inherit)&&i.parent;o.immediateRender=xr(r.immediateRender),t<2?o.runBackwards=1:o.startAt=e[s-1]}return new ja(e[0],o,e[s+1])},ji=function(t,e){return t||0===t?e(t):e},Ui=function(t,e,n){return n<t?t:n>e?e:n},Hi=function(t,e){return _r(t)&&(e=Vr.exec(t))?e[1]:""},zi=[].slice,qi=function(t,e){return t&&Sr(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&Sr(t[0]))&&!t.nodeType&&t!==er},Gi=function(t,e,n){return void 0===n&&(n=[]),t.forEach((function(t){var r;return _r(t)&&!e||qi(t,1)?(r=n).push.apply(r,Wi(t)):n.push(t)}))||n},Wi=function(t,e,n){return Jn&&!e&&Jn.selector?Jn.selector(t):!_r(t)||n||!nr&&ga()?kr(t)?Gi(t,n):qi(t)?zi.call(t,0):t?[t]:[]:zi.call((e||rr).querySelectorAll(t),0)},Zi=function(t){return t=Wi(t)[0]||jr("Invalid scope")||{},function(e){var n=t.current||t.nativeElement||t;return Wi(e,n.querySelectorAll?n:n===t?jr("Invalid scope")||rr.createElement("div"):t)}},$i=function(t){return t.sort((function(){return.5-Math.random()}))},Ki=function(t){if(wr(t))return t;var e=Sr(t)?t:{each:t},n=Ta(e.ease),r=e.from||0,i=parseFloat(e.base)||0,a={},s=r>0&&r<1,o=isNaN(r)||s,u=e.axis,c=r,l=r;return _r(r)?c=l={center:.5,edges:.5,end:1}[r]||0:!s&&o&&(c=r[0],l=r[1]),function(t,s,h){var f,d,p,m,g,v,y,b,_,w=(h||e).length,D=a[w];if(!D){if(!(_="auto"===e.grid?0:(e.grid||[1,1e8])[1])){for(y=-1e8;y<(y=h[_++].getBoundingClientRect().left)&&_<w;);_--}for(D=a[w]=[],f=o?Math.min(_,w)*c-.5:r%_,d=1e8===_?0:o?w*l/_-.5:r/_|0,y=0,b=1e8,v=0;v<w;v++)p=v%_-f,m=d-(v/_|0),D[v]=g=u?Math.abs("y"===u?m:p):vr(p*p+m*m),g>y&&(y=g),g<b&&(b=g);"random"===r&&$i(D),D.max=y-b,D.min=b,D.v=w=(parseFloat(e.amount)||parseFloat(e.each)*(_>w?w-1:u?"y"===u?w/_:_:Math.max(_,w/_))||0)*("edges"===r?-1:1),D.b=w<0?i-w:i,D.u=Hi(e.amount||e.each)||0,n=n&&w<0?wa(n):n}return w=(D[t]-D.min)/D.max||0,si(D.b+(n?n(w):w)*D.v)+D.u}},Xi=function(t){var e=Math.pow(10,((t+"").split(".")[1]||"").length);return function(n){var r=si(Math.round(parseFloat(n)/t)*t*e);return(r-r%1)/e+(Dr(n)?0:Hi(n))}},Qi=function(t,e){var n,r,i=kr(t);return!i&&Sr(t)&&(n=i=t.radius||1e8,t.values?(t=Wi(t.values),(r=!Dr(t[0]))&&(n*=n)):t=Xi(t.increment)),ji(e,i?wr(t)?function(e){return r=t(e),Math.abs(r-e)<=n?r:e}:function(e){for(var i,a,s=parseFloat(r?e.x:e),o=parseFloat(r?e.y:0),u=1e8,c=0,l=t.length;l--;)(i=r?(i=t[l].x-s)*i+(a=t[l].y-o)*a:Math.abs(t[l]-s))<u&&(u=i,c=l);return c=!n||u<=n?t[c]:e,r||c===e||Dr(e)?c:c+Hi(e)}:Xi(t))},Ji=function(t,e,n,r){return ji(kr(t)?!e:!0===n?!!(n=0):!r,(function(){return kr(t)?t[~~(Math.random()*t.length)]:(n=n||1e-5)&&(r=n<1?Math.pow(10,(n+"").length-2):1)&&Math.floor(Math.round((t-n/2+Math.random()*(e-t+.99*n))/n)*n*r)/r}))},ta=function(t,e,n){return ji(n,(function(n){return t[~~e(n)]}))},ea=function(t){for(var e,n,r,i,a=0,s="";~(e=t.indexOf("random(",a));)r=t.indexOf(")",e),i="["===t.charAt(e+7),n=t.substr(e+7,r-e-7).match(i?Ir:Cr),s+=t.substr(a,e-a)+Ji(i?n:+n[0],i?0:+n[1],+n[2]||1e-5),a=r+1;return s+t.substr(a,t.length-a)},na=function(t,e,n,r,i){var a=e-t,s=r-n;return ji(i,(function(e){return n+((e-t)/a*s||0)}))},ra=function(t,e,n){var r,i,a,s=t.labels,o=1e8;for(r in s)(i=s[r]-e)<0==!!n&&i&&o>(i=Math.abs(i))&&(a=r,o=i);return a},ia=function(t,e,n){var r,i,a,s=t.vars,o=s[e],u=Jn,c=t._ctx;if(o)return r=s[e+"Params"],i=s.callbackScope||t,n&&Zr.length&&ci(),c&&(Jn=c),a=r?o.apply(i,r):o.call(i),Jn=u,a},aa=function(t){return _i(t),t.scrollTrigger&&t.scrollTrigger.kill(!!Qn),t.progress()<1&&ia(t,"onInterrupt"),t},sa=function(t){var e=(t=!t.name&&t.default||t).name,n=wr(t),r=e&&!n&&t.init?function(){this._props=[]}:t,i={init:Hr,render:Ka,add:Na,kill:Qa,modifier:Xa,rawVars:0},a={targetTest:0,get:0,getSetter:Ga,aliases:{},register:0};if(ga(),t!==r){if(Kr[e])return;di(r,di(gi(t,i),a)),pi(r.prototype,pi(i,gi(t,a))),Kr[r.prop=e]=r,t.targetTest&&(Jr.push(r),Wr[e]=1),e=("css"===e?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}Ur(e,r),t.register&&t.register(ds,r,es)},oa={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},ua=function(t,e,n){return 255*(6*(t+=t<0?1:t>1?-1:0)<1?e+(n-e)*t*6:t<.5?n:3*t<2?e+(n-e)*(2/3-t)*6:e)+.5|0},ca=function(t,e,n){var r,i,a,s,o,u,c,l,h,f,d=t?Dr(t)?[t>>16,t>>8&255,255&t]:0:oa.black;if(!d){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),oa[t])d=oa[t];else if("#"===t.charAt(0)){if(t.length<6&&(r=t.charAt(1),i=t.charAt(2),a=t.charAt(3),t="#"+r+r+i+i+a+a+(5===t.length?t.charAt(4)+t.charAt(4):"")),9===t.length)return[(d=parseInt(t.substr(1,6),16))>>16,d>>8&255,255&d,parseInt(t.substr(7),16)/255];d=[(t=parseInt(t.substr(1),16))>>16,t>>8&255,255&t]}else if("hsl"===t.substr(0,3))if(d=f=t.match(Cr),e){if(~t.indexOf("="))return d=t.match(Ar),n&&d.length<4&&(d[3]=1),d}else s=+d[0]%360/360,o=+d[1]/100,r=2*(u=+d[2]/100)-(i=u<=.5?u*(o+1):u+o-u*o),d.length>3&&(d[3]*=1),d[0]=ua(s+1/3,r,i),d[1]=ua(s,r,i),d[2]=ua(s-1/3,r,i);else d=t.match(Cr)||oa.transparent;d=d.map(Number)}return e&&!f&&(r=d[0]/255,i=d[1]/255,a=d[2]/255,u=((c=Math.max(r,i,a))+(l=Math.min(r,i,a)))/2,c===l?s=o=0:(h=c-l,o=u>.5?h/(2-c-l):h/(c+l),s=c===r?(i-a)/h+(i<a?6:0):c===i?(a-r)/h+2:(r-i)/h+4,s*=60),d[0]=~~(s+.5),d[1]=~~(100*o+.5),d[2]=~~(100*u+.5)),n&&d.length<4&&(d[3]=1),d},la=function(t){var e=[],n=[],r=-1;return t.split(fa).forEach((function(t){var i=t.match(Pr)||[];e.push.apply(e,i),n.push(r+=i.length+1)})),e.c=n,e},ha=function(t,e,n){var r,i,a,s,o="",u=(t+o).match(fa),c=e?"hsla(":"rgba(",l=0;if(!u)return t;if(u=u.map((function(t){return(t=ca(t,e,1))&&c+(e?t[0]+","+t[1]+"%,"+t[2]+"%,"+t[3]:t.join(","))+")"})),n&&(a=la(t),(r=n.c).join(o)!==a.c.join(o)))for(s=(i=t.replace(fa,"1").split(Pr)).length-1;l<s;l++)o+=i[l]+(~r.indexOf(l)?u.shift()||c+"0,0,0,0)":(a.length?a:u.length?u:n).shift());if(!i)for(s=(i=t.split(fa)).length-1;l<s;l++)o+=i[l]+u[l];return o+i[s]},fa=function(){var t,e="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b";for(t in oa)e+="|"+t+"\\b";return new RegExp(e+")","gi")}(),da=/hsl[a]?\(/,pa=function(t){var e,n=t.join(" ");if(fa.lastIndex=0,fa.test(n))return e=da.test(n),t[1]=ha(t[1],e),t[0]=ha(t[0],e,la(t[1])),!0},ma=function(){var t,e,n,r,i,a,s=Date.now,o=500,u=33,c=s(),l=c,h=1e3/240,f=h,d=[],p=function n(p){var m,g,v,y,b=s()-l,_=!0===p;if(b>o&&(c+=b-u),((m=(v=(l+=b)-c)-f)>0||_)&&(y=++r.frame,i=v-1e3*r.time,r.time=v/=1e3,f+=m+(m>=h?4:h-m),g=1),_||(t=e(n)),g)for(a=0;a<d.length;a++)d[a](v,i,y,p)};return r={time:0,frame:0,tick:function(){p(!0)},deltaRatio:function(t){return i/(1e3/(t||60))},wake:function(){ir&&(!nr&&Er()&&(er=nr=window,rr=er.document||{},Br.gsap=ds,(er.gsapVersions||(er.gsapVersions=[])).push(ds.version),Lr(Yr||er.GreenSockGlobals||!er.gsap&&er||{}),n=er.requestAnimationFrame),t&&r.sleep(),e=n||function(t){return setTimeout(t,f-1e3*r.time+1|0)},or=1,p(2))},sleep:function(){(n?er.cancelAnimationFrame:clearTimeout)(t),or=0,e=Hr},lagSmoothing:function(t,e){o=t||1/1e-8,u=Math.min(e,o,0)},fps:function(t){h=1e3/(t||240),f=1e3*r.time+h},add:function(t,e,n){var i=e?function(e,n,a,s){t(e,n,a,s),r.remove(i)}:t;return r.remove(t),d[n?"unshift":"push"](i),ga(),i},remove:function(t,e){~(e=d.indexOf(t))&&d.splice(e,1)&&a>=e&&a--},_listeners:d},r}(),ga=function(){return!or&&ma.wake()},va={},ya=/^[\d.\-M][\d.\-,\s]/,ba=/["']/g,_a=function(t){for(var e,n,r,i={},a=t.substr(1,t.length-3).split(":"),s=a[0],o=1,u=a.length;o<u;o++)n=a[o],e=o!==u-1?n.lastIndexOf(","):n.length,r=n.substr(0,e),i[s]=isNaN(r)?r.replace(ba,"").trim():+r,s=n.substr(e+1).trim();return i},wa=function(t){return function(e){return 1-t(1-e)}},Da=function t(e,n){for(var r,i=e._first;i;)i instanceof Ca?t(i,n):!i.vars.yoyoEase||i._yoyo&&i._repeat||i._yoyo===n||(i.timeline?t(i.timeline,n):(r=i._ease,i._ease=i._yEase,i._yEase=r,i._yoyo=n)),i=i._next},Ta=function(t,e){return t&&(wr(t)?t:va[t]||function(t){var e=(t+"").split("("),n=va[e[0]];return n&&e.length>1&&n.config?n.config.apply(null,~t.indexOf("{")?[_a(e[1])]:function(t){var e=t.indexOf("(")+1,n=t.indexOf(")"),r=t.indexOf("(",e);return t.substring(e,~r&&r<n?t.indexOf(")",n+1):n)}(t).split(",").map(hi)):va._CE&&ya.test(t)?va._CE("",t):n}(t))||e},Sa=function(t,e,n,r){void 0===n&&(n=function(t){return 1-e(1-t)}),void 0===r&&(r=function(t){return t<.5?e(2*t)/2:1-e(2*(1-t))/2});var i,a={easeIn:e,easeOut:n,easeInOut:r};return ii(t,(function(t){for(var e in va[t]=Br[t]=a,va[i=t.toLowerCase()]=n,a)va[i+("easeIn"===e?".in":"easeOut"===e?".out":".inOut")]=va[t+"."+e]=a[e]})),a},xa=function(t){return function(e){return e<.5?(1-t(1-2*e))/2:.5+t(2*(e-.5))/2}},Ea=function t(e,n,r){var i=n>=1?n:1,a=(r||(e?.3:.45))/(n<1?n:1),s=a/pr*(Math.asin(1/i)||0),o=function(t){return 1===t?1:i*Math.pow(2,-10*t)*br((t-s)*a)+1},u="out"===e?o:"in"===e?function(t){return 1-o(1-t)}:xa(o);return a=pr/a,u.config=function(n,r){return t(e,n,r)},u},Ma=function t(e,n){void 0===n&&(n=1.70158);var r=function(t){return t?--t*t*((n+1)*t+n)+1:0},i="out"===e?r:"in"===e?function(t){return 1-r(1-t)}:xa(r);return i.config=function(n){return t(e,n)},i};ii("Linear,Quad,Cubic,Quart,Quint,Strong",(function(t,e){var n=e<5?e+1:e;Sa(t+",Power"+(n-1),e?function(t){return Math.pow(t,n)}:function(t){return t},(function(t){return 1-Math.pow(1-t,n)}),(function(t){return t<.5?Math.pow(2*t,n)/2:1-Math.pow(2*(1-t),n)/2}))})),va.Linear.easeNone=va.none=va.Linear.easeIn,Sa("Elastic",Ea("in"),Ea("out"),Ea()),ur=7.5625,lr=1/(cr=2.75),Sa("Bounce",(function(t){return 1-hr(1-t)}),hr=function(t){return t<lr?ur*t*t:t<.7272727272727273?ur*Math.pow(t-1.5/cr,2)+.75:t<.9090909090909092?ur*(t-=2.25/cr)*t+.9375:ur*Math.pow(t-2.625/cr,2)+.984375}),Sa("Expo",(function(t){return t?Math.pow(2,10*(t-1)):0})),Sa("Circ",(function(t){return-(vr(1-t*t)-1)})),Sa("Sine",(function(t){return 1===t?1:1-yr(t*mr)})),Sa("Back",Ma("in"),Ma("out"),Ma()),va.SteppedEase=va.steps=Br.SteppedEase={config:function(t,e){void 0===t&&(t=1);var n=1/t,r=t+(e?0:1),i=e?1:0;return function(t){return((r*Ui(0,.99999999,t)|0)+i)*n}}},dr.ease=va["quad.out"],ii("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",(function(t){return ti+=t+","+t+"Params,"}));var Oa=function(t,e){this.id=gr++,t._gsap=this,this.target=t,this.harness=e,this.get=e?e.get:ri,this.set=e?e.getSetter:Ga},ka=function(){function t(t){this.vars=t,this._delay=+t.delay||0,(this._repeat=t.repeat===1/0?-2:t.repeat||0)&&(this._rDelay=t.repeatDelay||0,this._yoyo=!!t.yoyo||!!t.yoyoEase),this._ts=1,Vi(this,+t.duration,1,1),this.data=t.data,Jn&&(this._ctx=Jn,Jn.data.push(this)),or||ma.wake()}var e=t.prototype;return e.delay=function(t){return t||0===t?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+t-this._delay),this._delay=t,this):this._delay},e.duration=function(t){return arguments.length?this.totalDuration(this._repeat>0?t+(t+this._rDelay)*this._repeat:t):this.totalDuration()&&this._dur},e.totalDuration=function(t){return arguments.length?(this._dirty=0,Vi(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(t,e){if(ga(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(ki(this,t),!n._dp||n.parent||Ci(n,this);n&&n.parent;)n.parent._time!==n._start+(n._ts>=0?n._tTime/n._ts:(n.totalDuration()-n._tTime)/-n._ts)&&n.totalTime(n._tTime,!0),n=n.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&t<this._tDur||this._ts<0&&t>0||!this._tDur&&!t)&&Ai(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!e||this._initted&&1e-8===Math.abs(this._zTime)||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),li(this,t,e)),this},e.time=function(t,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+xi(this))%(this._dur+this._rDelay)||(t?this._dur:0),e):this._time},e.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.ratio},e.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(!this._yoyo||1&this.iteration()?t:1-t)+xi(this),e):this.duration()?Math.min(1,this._time/this._dur):this.ratio},e.iteration=function(t,e){var n=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(t-1)*n,e):this._repeat?Ei(this._tTime,n)+1:1},e.timeScale=function(t){if(!arguments.length)return-1e-8===this._rts?0:this._rts;if(this._rts===t)return this;var e=this.parent&&this._ts?Mi(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||-1e-8===t?0:this._rts,this.totalTime(Ui(-this._delay,this._tDur,e),!0),Oi(this),Di(this)},e.paused=function(t){return arguments.length?(this._ps!==t&&(this._ps=t,t?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(ga(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&1e-8!==Math.abs(this._zTime)&&(this._tTime-=1e-8)))),this):this._ps},e.startTime=function(t){if(arguments.length){this._start=t;var e=this.parent||this._dp;return e&&(e._sort||!this.parent)&&Ai(e,this,t-this._delay),this}return this._start},e.endTime=function(t){return this._start+(xr(t)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(t){var e=this.parent||this._dp;return e?t&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Mi(e.rawTime(t),this):this._tTime:this._tTime},e.revert=function(t){void 0===t&&(t=Gr);var e=Qn;return Qn=t,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(t),this.totalTime(-.01,t.suppressEvents)),"nested"!==this.data&&!1!==t.kill&&this.kill(),Qn=e,this},e.globalTime=function(t){for(var e=this,n=arguments.length?t:e.rawTime();e;)n=e._start+n/(e._ts||1),e=e._dp;return!this.parent&&this.vars.immediateRender?-1:n},e.repeat=function(t){return arguments.length?(this._repeat=t===1/0?-2:t,Bi(this)):-2===this._repeat?1/0:this._repeat},e.repeatDelay=function(t){if(arguments.length){var e=this._time;return this._rDelay=t,Bi(this),e?this.time(e):this}return this._rDelay},e.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},e.seek=function(t,e){return this.totalTime(Li(this,t),xr(e))},e.restart=function(t,e){return this.play().totalTime(t?-this._delay:0,xr(e))},e.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},e.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},e.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(t){return arguments.length?(!!t!==this.reversed()&&this.timeScale(-this._rts||(t?-1e-8:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-1e-8,this},e.isActive=function(){var t,e=this.parent||this._dp,n=this._start;return!(e&&!(this._ts&&this._initted&&e.isActive()&&(t=e.rawTime(!0))>=n&&t<this.endTime(!0)-1e-8))},e.eventCallback=function(t,e,n){var r=this.vars;return arguments.length>1?(e?(r[t]=e,n&&(r[t+"Params"]=n),"onUpdate"===t&&(this._onUpdate=e)):delete r[t],this):r[t]},e.then=function(t){var e=this;return new Promise((function(n){var r=wr(t)?t:fi,i=function(){var t=e.then;e.then=null,wr(r)&&(r=r(e))&&(r.then||r===e)&&(e.then=t),n(r),e.then=t};e._initted&&1===e.totalProgress()&&e._ts>=0||!e._tTime&&e._ts<0?i():e._prom=i}))},e.kill=function(){aa(this)},t}();di(ka.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-1e-8,_prom:0,_ps:!1,_rts:1});var Ca=function(t){function e(e,n){var r;return void 0===e&&(e={}),(r=t.call(this,e)||this).labels={},r.smoothChildTiming=!!e.smoothChildTiming,r.autoRemoveChildren=!!e.autoRemoveChildren,r._sort=xr(e.sortChildren),tr&&Ai(e.parent||tr,$n(r),n),e.reversed&&r.reverse(),e.paused&&r.paused(!0),e.scrollTrigger&&Pi($n(r),e.scrollTrigger),r}Kn(e,t);var n=e.prototype;return n.to=function(t,e,n){return Fi(0,arguments,this),this},n.from=function(t,e,n){return Fi(1,arguments,this),this},n.fromTo=function(t,e,n,r){return Fi(2,arguments,this),this},n.set=function(t,e,n){return e.duration=0,e.parent=this,vi(e).repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new ja(t,e,Li(this,n),1),this},n.call=function(t,e,n){return Ai(this,ja.delayedCall(0,t,e),n)},n.staggerTo=function(t,e,n,r,i,a,s){return n.duration=e,n.stagger=n.stagger||r,n.onComplete=a,n.onCompleteParams=s,n.parent=this,new ja(t,n,Li(this,i)),this},n.staggerFrom=function(t,e,n,r,i,a,s){return n.runBackwards=1,vi(n).immediateRender=xr(n.immediateRender),this.staggerTo(t,e,n,r,i,a,s)},n.staggerFromTo=function(t,e,n,r,i,a,s,o){return r.startAt=n,vi(r).immediateRender=xr(r.immediateRender),this.staggerTo(t,e,r,i,a,s,o)},n.render=function(t,e,n){var r,i,a,s,o,u,c,l,h,f,d,p,m=this._time,g=this._dirty?this.totalDuration():this._tDur,v=this._dur,y=t<=0?0:si(t),b=this._zTime<0!=t<0&&(this._initted||!v);if(this!==tr&&y>g&&t>=0&&(y=g),y!==this._tTime||n||b){if(m!==this._time&&v&&(y+=this._time-m,t+=this._time-m),r=y,h=this._start,u=!(l=this._ts),b&&(v||(m=this._zTime),(t||!e)&&(this._zTime=t)),this._repeat){if(d=this._yoyo,o=v+this._rDelay,this._repeat<-1&&t<0)return this.totalTime(100*o+t,e,n);if(r=si(y%o),y===g?(s=this._repeat,r=v):((s=~~(y/o))&&s===y/o&&(r=v,s--),r>v&&(r=v)),f=Ei(this._tTime,o),!m&&this._tTime&&f!==s&&(f=s),d&&1&s&&(r=v-r,p=1),s!==f&&!this._lock){var _=d&&1&f,w=_===(d&&1&s);if(s<f&&(_=!_),m=_?0:v,this._lock=1,this.render(m||(p?0:si(s*o)),e,!v)._lock=0,this._tTime=y,!e&&this.parent&&ia(this,"onRepeat"),this.vars.repeatRefresh&&!p&&(this.invalidate()._lock=1),m&&m!==this._time||u!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(v=this._dur,g=this._tDur,w&&(this._lock=2,m=_?v:-1e-4,this.render(m,!0),this.vars.repeatRefresh&&!p&&this.invalidate()),this._lock=0,!this._ts&&!u)return this;Da(this,p)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(c=function(t,e,n){var r;if(n>e)for(r=t._first;r&&r._start<=n;){if("isPause"===r.data&&r._start>e)return r;r=r._next}else for(r=t._last;r&&r._start>=n;){if("isPause"===r.data&&r._start<e)return r;r=r._prev}}(this,si(m),si(r)),c&&(y-=r-(r=c._start))),this._tTime=y,this._time=r,this._act=!l,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=t,m=0),!m&&r&&!e&&(ia(this,"onStart"),this._tTime!==y))return this;if(r>=m&&t>=0)for(i=this._first;i;){if(a=i._next,(i._act||r>=i._start)&&i._ts&&c!==i){if(i.parent!==this)return this.render(t,e,n);if(i.render(i._ts>0?(r-i._start)*i._ts:(i._dirty?i.totalDuration():i._tDur)+(r-i._start)*i._ts,e,n),r!==this._time||!this._ts&&!u){c=0,a&&(y+=this._zTime=-1e-8);break}}i=a}else{i=this._last;for(var D=t<0?t:r;i;){if(a=i._prev,(i._act||D<=i._end)&&i._ts&&c!==i){if(i.parent!==this)return this.render(t,e,n);if(i.render(i._ts>0?(D-i._start)*i._ts:(i._dirty?i.totalDuration():i._tDur)+(D-i._start)*i._ts,e,n||Qn&&(i._initted||i._startAt)),r!==this._time||!this._ts&&!u){c=0,a&&(y+=this._zTime=D?-1e-8:1e-8);break}}i=a}}if(c&&!e&&(this.pause(),c.render(r>=m?0:-1e-8)._zTime=r>=m?1:-1,this._ts))return this._start=h,Oi(this),this.render(t,e,n);this._onUpdate&&!e&&ia(this,"onUpdate",!0),(y===g&&this._tTime>=this.totalDuration()||!y&&m)&&(h!==this._start&&Math.abs(l)===Math.abs(this._ts)||this._lock||((t||!v)&&(y===g&&this._ts>0||!y&&this._ts<0)&&_i(this,1),e||t<0&&!m||!y&&!m&&g||(ia(this,y===g&&t>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(y<g&&this.timeScale()>0)&&this._prom())))}return this},n.add=function(t,e){var n=this;if(Dr(e)||(e=Li(this,e,t)),!(t instanceof ka)){if(kr(t))return t.forEach((function(t){return n.add(t,e)})),this;if(_r(t))return this.addLabel(t,e);if(!wr(t))return this;t=ja.delayedCall(0,t)}return this!==t?Ai(this,t,e):this},n.getChildren=function(t,e,n,r){void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===n&&(n=!0),void 0===r&&(r=-1e8);for(var i=[],a=this._first;a;)a._start>=r&&(a instanceof ja?e&&i.push(a):(n&&i.push(a),t&&i.push.apply(i,a.getChildren(!0,e,n)))),a=a._next;return i},n.getById=function(t){for(var e=this.getChildren(1,1,1),n=e.length;n--;)if(e[n].vars.id===t)return e[n]},n.remove=function(t){return _r(t)?this.removeLabel(t):wr(t)?this.killTweensOf(t):(bi(this,t),t===this._recent&&(this._recent=this._last),wi(this))},n.totalTime=function(e,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=si(ma.time-(this._ts>0?e/this._ts:(this.totalDuration()-e)/-this._ts))),t.prototype.totalTime.call(this,e,n),this._forcing=0,this):this._tTime},n.addLabel=function(t,e){return this.labels[t]=Li(this,e),this},n.removeLabel=function(t){return delete this.labels[t],this},n.addPause=function(t,e,n){var r=ja.delayedCall(0,e||Hr,n);return r.data="isPause",this._hasPause=1,Ai(this,r,Li(this,t))},n.removePause=function(t){var e=this._first;for(t=Li(this,t);e;)e._start===t&&"isPause"===e.data&&_i(e),e=e._next},n.killTweensOf=function(t,e,n){for(var r=this.getTweensOf(t,n),i=r.length;i--;)Aa!==r[i]&&r[i].kill(t,e);return this},n.getTweensOf=function(t,e){for(var n,r=[],i=Wi(t),a=this._first,s=Dr(e);a;)a instanceof ja?ui(a._targets,i)&&(s?(!Aa||a._initted&&a._ts)&&a.globalTime(0)<=e&&a.globalTime(a.totalDuration())>e:!e||a.isActive())&&r.push(a):(n=a.getTweensOf(i,e)).length&&r.push.apply(r,n),a=a._next;return r},n.tweenTo=function(t,e){e=e||{};var n,r=this,i=Li(r,t),a=e,s=a.startAt,o=a.onStart,u=a.onStartParams,c=a.immediateRender,l=ja.to(r,di({ease:e.ease||"none",lazy:!1,immediateRender:!1,time:i,overwrite:"auto",duration:e.duration||Math.abs((i-(s&&"time"in s?s.time:r._time))/r.timeScale())||1e-8,onStart:function(){if(r.pause(),!n){var t=e.duration||Math.abs((i-(s&&"time"in s?s.time:r._time))/r.timeScale());l._dur!==t&&Vi(l,t,0,1).render(l._time,!0,!0),n=1}o&&o.apply(l,u||[])}},e));return c?l.render(0):l},n.tweenFromTo=function(t,e,n){return this.tweenTo(e,di({startAt:{time:Li(this,t)}},n))},n.recent=function(){return this._recent},n.nextLabel=function(t){return void 0===t&&(t=this._time),ra(this,Li(this,t))},n.previousLabel=function(t){return void 0===t&&(t=this._time),ra(this,Li(this,t),1)},n.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+1e-8)},n.shiftChildren=function(t,e,n){void 0===n&&(n=0);for(var r,i=this._first,a=this.labels;i;)i._start>=n&&(i._start+=t,i._end+=t),i=i._next;if(e)for(r in a)a[r]>=n&&(a[r]+=t);return wi(this)},n.invalidate=function(e){var n=this._first;for(this._lock=0;n;)n.invalidate(e),n=n._next;return t.prototype.invalidate.call(this,e)},n.clear=function(t){void 0===t&&(t=!0);for(var e,n=this._first;n;)e=n._next,this.remove(n),n=e;return this._dp&&(this._time=this._tTime=this._pTime=0),t&&(this.labels={}),wi(this)},n.totalDuration=function(t){var e,n,r,i=0,a=this,s=a._last,o=1e8;if(arguments.length)return a.timeScale((a._repeat<0?a.duration():a.totalDuration())/(a.reversed()?-t:t));if(a._dirty){for(r=a.parent;s;)e=s._prev,s._dirty&&s.totalDuration(),(n=s._start)>o&&a._sort&&s._ts&&!a._lock?(a._lock=1,Ai(a,s,n-s._delay,1)._lock=0):o=n,n<0&&s._ts&&(i-=n,(!r&&!a._dp||r&&r.smoothChildTiming)&&(a._start+=n/a._ts,a._time-=n,a._tTime-=n),a.shiftChildren(-n,!1,-Infinity),o=0),s._end>i&&s._ts&&(i=s._end),s=e;Vi(a,a===tr&&a._time>i?a._time:i,1,1),a._dirty=0}return a._tDur},e.updateRoot=function(t){if(tr._ts&&(li(tr,Mi(t,tr)),ar=ma.frame),ma.frame>=Qr){Qr+=fr.autoSleep||120;var e=tr._first;if((!e||!e._ts)&&fr.autoSleep&&ma._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||ma.sleep()}}},e}(ka);di(Ca.prototype,{_lock:0,_hasPause:0,_forcing:0});var Aa,Pa,Ra=function(t,e,n,r,i,a,s){var o,u,c,l,h,f,d,p,m=new es(this._pt,t,e,0,1,$a,null,i),g=0,v=0;for(m.b=n,m.e=r,n+="",(d=~(r+="").indexOf("random("))&&(r=ea(r)),a&&(a(p=[n,r],t,e),n=p[0],r=p[1]),u=n.match(Rr)||[];o=Rr.exec(r);)l=o[0],h=r.substring(g,o.index),c?c=(c+1)%5:"rgba("===h.substr(-5)&&(c=1),l!==u[v++]&&(f=parseFloat(u[v-1])||0,m._pt={_next:m._pt,p:h||1===v?h:",",s:f,c:"="===l.charAt(1)?oi(f,l)-f:parseFloat(l)-f,m:c&&c<4?Math.round:0},g=Rr.lastIndex);return m.c=g<r.length?r.substring(g,r.length):"",m.fp=s,(Nr.test(r)||d)&&(m.e=0),this._pt=m,m},Na=function(t,e,n,r,i,a,s,o,u,c){wr(r)&&(r=r(i||0,t,a));var l,h=t[e],f="get"!==n?n:wr(h)?u?t[e.indexOf("set")||!wr(t["get"+e.substr(3)])?e:"get"+e.substr(3)](u):t[e]():h,d=wr(h)?u?za:Ha:Ua;if(_r(r)&&(~r.indexOf("random(")&&(r=ea(r)),"="===r.charAt(1)&&((l=oi(f,r)+(Hi(f)||0))||0===l)&&(r=l)),!c||f!==r||Pa)return isNaN(f*r)||""===r?(!h&&!(e in t)&&Fr(e,r),Ra.call(this,t,e,f,r,d,o||fr.stringFilter,u)):(l=new es(this._pt,t,e,+f||0,r-(f||0),"boolean"==typeof h?Za:Wa,0,d),u&&(l.fp=u),s&&l.modifier(s,this,t),this._pt=l)},Ia=function(t,e,n,r,i,a){var s,o,u,c;if(Kr[t]&&!1!==(s=new Kr[t]).init(i,s.rawVars?e[t]:function(t,e,n,r,i){if(wr(t)&&(t=Ya(t,i,e,n,r)),!Sr(t)||t.style&&t.nodeType||kr(t)||Or(t))return _r(t)?Ya(t,i,e,n,r):t;var a,s={};for(a in t)s[a]=Ya(t[a],i,e,n,r);return s}(e[t],r,i,a,n),n,r,a)&&(n._pt=o=new es(n._pt,i,t,0,1,s.render,s,0,s.priority),n!==sr))for(u=n._ptLookup[n._targets.indexOf(i)],c=s._props.length;c--;)u[s._props[c]]=o;return s},Va=function t(e,n,r){var i,a,s,o,u,c,l,h,f,d,p,m,g,v=e.vars,y=v.ease,b=v.startAt,_=v.immediateRender,w=v.lazy,D=v.onUpdate,T=v.onUpdateParams,S=v.callbackScope,x=v.runBackwards,E=v.yoyoEase,M=v.keyframes,O=v.autoRevert,k=e._dur,C=e._startAt,A=e._targets,P=e.parent,R=P&&"nested"===P.data?P.vars.targets:A,N="auto"===e._overwrite&&!Xn,I=e.timeline;if(I&&(!M||!y)&&(y="none"),e._ease=Ta(y,dr.ease),e._yEase=E?wa(Ta(!0===E?y:E,dr.ease)):0,E&&e._yoyo&&!e._repeat&&(E=e._yEase,e._yEase=e._ease,e._ease=E),e._from=!I&&!!v.runBackwards,!I||M&&!v.stagger){if(m=(h=A[0]?ni(A[0]).harness:0)&&v[h.prop],i=gi(v,Wr),C&&(C._zTime<0&&C.progress(1),n<0&&x&&_&&!O?C.render(-1,!0):C.revert(x&&k?qr:zr),C._lazy=0),b){if(_i(e._startAt=ja.set(A,di({data:"isStart",overwrite:!1,parent:P,immediateRender:!0,lazy:xr(w),startAt:null,delay:0,onUpdate:D,onUpdateParams:T,callbackScope:S,stagger:0},b))),e._startAt._dp=0,n<0&&(Qn||!_&&!O)&&e._startAt.revert(qr),_&&k&&n<=0&&r<=0)return void(n&&(e._zTime=n))}else if(x&&k&&!C)if(n&&(_=!1),s=di({overwrite:!1,data:"isFromStart",lazy:_&&xr(w),immediateRender:_,stagger:0,parent:P},i),m&&(s[h.prop]=m),_i(e._startAt=ja.set(A,s)),e._startAt._dp=0,n<0&&(Qn?e._startAt.revert(qr):e._startAt.render(-1,!0)),e._zTime=n,_){if(!n)return}else t(e._startAt,1e-8,1e-8);for(e._pt=e._ptCache=0,w=k&&xr(w)||w&&!k,a=0;a<A.length;a++){if(l=(u=A[a])._gsap||ei(A)[a]._gsap,e._ptLookup[a]=d={},$r[l.id]&&Zr.length&&ci(),p=R===A?a:R.indexOf(u),h&&!1!==(f=new h).init(u,m||i,e,p,R)&&(e._pt=o=new es(e._pt,u,f.name,0,1,f.render,f,0,f.priority),f._props.forEach((function(t){d[t]=o})),f.priority&&(c=1)),!h||m)for(s in i)Kr[s]&&(f=Ia(s,i,e,p,u,R))?f.priority&&(c=1):d[s]=o=Na.call(e,u,s,"get",i[s],p,R,0,v.stringFilter);e._op&&e._op[a]&&e.kill(u,e._op[a]),N&&e._pt&&(Aa=e,tr.killTweensOf(u,d,e.globalTime(n)),g=!e.parent,Aa=0),e._pt&&w&&($r[l.id]=1)}c&&ts(e),e._onInit&&e._onInit(e)}e._onUpdate=D,e._initted=(!e._op||e._pt)&&!g,M&&n<=0&&I.render(1e8,!0,!0)},Ba=function(t,e,n,r){var i,a,s=e.ease||r||"power1.inOut";if(kr(e))a=n[t]||(n[t]=[]),e.forEach((function(t,n){return a.push({t:n/(e.length-1)*100,v:t,e:s})}));else for(i in e)a=n[i]||(n[i]=[]),"ease"===i||a.push({t:parseFloat(t),v:e[i],e:s})},Ya=function(t,e,n,r,i){return wr(t)?t.call(e,n,r,i):_r(t)&&~t.indexOf("random(")?ea(t):t},La=ti+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",Fa={};ii(La+",id,stagger,delay,duration,paused,scrollTrigger",(function(t){return Fa[t]=1}));var ja=function(t){function e(e,n,r,i){var a;"number"==typeof n&&(r.duration=n,n=r,r=null);var s,o,u,c,l,h,f,d,p=(a=t.call(this,i?n:vi(n))||this).vars,m=p.duration,g=p.delay,v=p.immediateRender,y=p.stagger,b=p.overwrite,_=p.keyframes,w=p.defaults,D=p.scrollTrigger,T=p.yoyoEase,S=n.parent||tr,x=(kr(e)||Or(e)?Dr(e[0]):"length"in n)?[e]:Wi(e);if(a._targets=x.length?ei(x):jr("GSAP target "+e+" not found. https://greensock.com",!fr.nullTargetWarn)||[],a._ptLookup=[],a._overwrite=b,_||y||Mr(m)||Mr(g)){if(n=a.vars,(s=a.timeline=new Ca({data:"nested",defaults:w||{},targets:S&&"nested"===S.data?S.vars.targets:x})).kill(),s.parent=s._dp=$n(a),s._start=0,y||Mr(m)||Mr(g)){if(c=x.length,f=y&&Ki(y),Sr(y))for(l in y)~La.indexOf(l)&&(d||(d={}),d[l]=y[l]);for(o=0;o<c;o++)(u=gi(n,Fa)).stagger=0,T&&(u.yoyoEase=T),d&&pi(u,d),h=x[o],u.duration=+Ya(m,$n(a),o,h,x),u.delay=(+Ya(g,$n(a),o,h,x)||0)-a._delay,!y&&1===c&&u.delay&&(a._delay=g=u.delay,a._start+=g,u.delay=0),s.to(h,u,f?f(o,h,x):0),s._ease=va.none;s.duration()?m=g=0:a.timeline=0}else if(_){vi(di(s.vars.defaults,{ease:"none"})),s._ease=Ta(_.ease||n.ease||"none");var E,M,O,k=0;if(kr(_))_.forEach((function(t){return s.to(x,t,">")})),s.duration();else{for(l in u={},_)"ease"===l||"easeEach"===l||Ba(l,_[l],u,_.easeEach);for(l in u)for(E=u[l].sort((function(t,e){return t.t-e.t})),k=0,o=0;o<E.length;o++)(O={ease:(M=E[o]).e,duration:(M.t-(o?E[o-1].t:0))/100*m})[l]=M.v,s.to(x,O,k),k+=O.duration;s.duration()<m&&s.to({},{duration:m-s.duration()})}}m||a.duration(m=s.duration())}else a.timeline=0;return!0!==b||Xn||(Aa=$n(a),tr.killTweensOf(x),Aa=0),Ai(S,$n(a),r),n.reversed&&a.reverse(),n.paused&&a.paused(!0),(v||!m&&!_&&a._start===si(S._time)&&xr(v)&&Si($n(a))&&"nested"!==S.data)&&(a._tTime=-1e-8,a.render(Math.max(0,-g)||0)),D&&Pi($n(a),D),a}Kn(e,t);var n=e.prototype;return n.render=function(t,e,n){var r,i,a,s,o,u,c,l,h,f=this._time,d=this._tDur,p=this._dur,m=t<0,g=t>d-1e-8&&!m?d:t<1e-8?0:t;if(p){if(g!==this._tTime||!t||n||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==m){if(r=g,l=this.timeline,this._repeat){if(s=p+this._rDelay,this._repeat<-1&&m)return this.totalTime(100*s+t,e,n);if(r=si(g%s),g===d?(a=this._repeat,r=p):((a=~~(g/s))&&a===g/s&&(r=p,a--),r>p&&(r=p)),(u=this._yoyo&&1&a)&&(h=this._yEase,r=p-r),o=Ei(this._tTime,s),r===f&&!n&&this._initted)return this._tTime=g,this;a!==o&&(l&&this._yEase&&Da(l,u),!this.vars.repeatRefresh||u||this._lock||(this._lock=n=1,this.render(si(s*a),!0).invalidate()._lock=0))}if(!this._initted){if(Ri(this,m?t:r,n,e,g))return this._tTime=0,this;if(f!==this._time)return this;if(p!==this._dur)return this.render(t,e,n)}if(this._tTime=g,this._time=r,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=c=(h||this._ease)(r/p),this._from&&(this.ratio=c=1-c),r&&!f&&!e&&(ia(this,"onStart"),this._tTime!==g))return this;for(i=this._pt;i;)i.r(c,i.d),i=i._next;l&&l.render(t<0?t:!r&&u?-1e-8:l._dur*l._ease(r/this._dur),e,n)||this._startAt&&(this._zTime=t),this._onUpdate&&!e&&(m&&Ti(this,t,0,n),ia(this,"onUpdate")),this._repeat&&a!==o&&this.vars.onRepeat&&!e&&this.parent&&ia(this,"onRepeat"),g!==this._tDur&&g||this._tTime!==g||(m&&!this._onUpdate&&Ti(this,t,0,!0),(t||!p)&&(g===this._tDur&&this._ts>0||!g&&this._ts<0)&&_i(this,1),e||m&&!f||!(g||f||u)||(ia(this,g===d?"onComplete":"onReverseComplete",!0),this._prom&&!(g<d&&this.timeScale()>0)&&this._prom()))}}else!function(t,e,n,r){var i,a,s,o=t.ratio,u=e<0||!e&&(!t._start&&Ni(t)&&(t._initted||!Ii(t))||(t._ts<0||t._dp._ts<0)&&!Ii(t))?0:1,c=t._rDelay,l=0;if(c&&t._repeat&&(l=Ui(0,t._tDur,e),a=Ei(l,c),t._yoyo&&1&a&&(u=1-u),a!==Ei(t._tTime,c)&&(o=1-u,t.vars.repeatRefresh&&t._initted&&t.invalidate())),u!==o||Qn||r||1e-8===t._zTime||!e&&t._zTime){if(!t._initted&&Ri(t,e,r,n,l))return;for(s=t._zTime,t._zTime=e||(n?1e-8:0),n||(n=e&&!s),t.ratio=u,t._from&&(u=1-u),t._time=0,t._tTime=l,i=t._pt;i;)i.r(u,i.d),i=i._next;e<0&&Ti(t,e,0,!0),t._onUpdate&&!n&&ia(t,"onUpdate"),l&&t._repeat&&!n&&t.parent&&ia(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===u&&(u&&_i(t,1),n||Qn||(ia(t,u?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)}(this,t,e,n);return this},n.targets=function(){return this._targets},n.invalidate=function(e){return(!e||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(e),t.prototype.invalidate.call(this,e)},n.resetTo=function(t,e,n,r){or||ma.wake(),this._ts||this.play();var i=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return this._initted||Va(this,i),function(t,e,n,r,i,a,s){var o,u,c,l,h=(t._pt&&t._ptCache||(t._ptCache={}))[e];if(!h)for(h=t._ptCache[e]=[],c=t._ptLookup,l=t._targets.length;l--;){if((o=c[l][e])&&o.d&&o.d._pt)for(o=o.d._pt;o&&o.p!==e&&o.fp!==e;)o=o._next;if(!o)return Pa=1,t.vars[e]="+=0",Va(t,s),Pa=0,1;h.push(o)}for(l=h.length;l--;)(o=(u=h[l])._pt||u).s=!r&&0!==r||i?o.s+(r||0)+a*o.c:r,o.c=n-o.s,u.e&&(u.e=ai(n)+Hi(u.e)),u.b&&(u.b=o.s+Hi(u.b))}(this,t,e,n,r,this._ease(i/this._dur),i)?this.resetTo(t,e,n,r):(ki(this,0),this.parent||yi(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},n.kill=function(t,e){if(void 0===e&&(e="all"),!(t||e&&"all"!==e))return this._lazy=this._pt=0,this.parent?aa(this):this;if(this.timeline){var n=this.timeline.totalDuration();return this.timeline.killTweensOf(t,e,Aa&&!0!==Aa.vars.overwrite)._first||aa(this),this.parent&&n!==this.timeline.totalDuration()&&Vi(this,this._dur*this.timeline._tDur/n,0,1),this}var r,i,a,s,o,u,c,l=this._targets,h=t?Wi(t):l,f=this._ptLookup,d=this._pt;if((!e||"all"===e)&&function(t,e){for(var n=t.length,r=n===e.length;r&&n--&&t[n]===e[n];);return n<0}(l,h))return"all"===e&&(this._pt=0),aa(this);for(r=this._op=this._op||[],"all"!==e&&(_r(e)&&(o={},ii(e,(function(t){return o[t]=1})),e=o),e=function(t,e){var n,r,i,a,s=t[0]?ni(t[0]).harness:0,o=s&&s.aliases;if(!o)return e;for(r in n=pi({},e),o)if(r in n)for(i=(a=o[r].split(",")).length;i--;)n[a[i]]=n[r];return n}(l,e)),c=l.length;c--;)if(~h.indexOf(l[c]))for(o in i=f[c],"all"===e?(r[c]=e,s=i,a={}):(a=r[c]=r[c]||{},s=e),s)(u=i&&i[o])&&("kill"in u.d&&!0!==u.d.kill(o)||bi(this,u,"_pt"),delete i[o]),"all"!==a&&(a[o]=1);return this._initted&&!this._pt&&d&&aa(this),this},e.to=function(t,n){return new e(t,n,arguments[2])},e.from=function(t,e){return Fi(1,arguments)},e.delayedCall=function(t,n,r,i){return new e(n,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:t,onComplete:n,onReverseComplete:n,onCompleteParams:r,onReverseCompleteParams:r,callbackScope:i})},e.fromTo=function(t,e,n){return Fi(2,arguments)},e.set=function(t,n){return n.duration=0,n.repeatDelay||(n.repeat=0),new e(t,n)},e.killTweensOf=function(t,e,n){return tr.killTweensOf(t,e,n)},e}(ka);di(ja.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),ii("staggerTo,staggerFrom,staggerFromTo",(function(t){ja[t]=function(){var e=new Ca,n=zi.call(arguments,0);return n.splice("staggerFromTo"===t?5:4,0,0),e[t].apply(e,n)}}));var Ua=function(t,e,n){return t[e]=n},Ha=function(t,e,n){return t[e](n)},za=function(t,e,n,r){return t[e](r.fp,n)},qa=function(t,e,n){return t.setAttribute(e,n)},Ga=function(t,e){return wr(t[e])?Ha:Tr(t[e])&&t.setAttribute?qa:Ua},Wa=function(t,e){return e.set(e.t,e.p,Math.round(1e6*(e.s+e.c*t))/1e6,e)},Za=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},$a=function(t,e){var n=e._pt,r="";if(!t&&e.b)r=e.b;else if(1===t&&e.e)r=e.e;else{for(;n;)r=n.p+(n.m?n.m(n.s+n.c*t):Math.round(1e4*(n.s+n.c*t))/1e4)+r,n=n._next;r+=e.c}e.set(e.t,e.p,r,e)},Ka=function(t,e){for(var n=e._pt;n;)n.r(t,n.d),n=n._next},Xa=function(t,e,n,r){for(var i,a=this._pt;a;)i=a._next,a.p===r&&a.modifier(t,e,n),a=i},Qa=function(t){for(var e,n,r=this._pt;r;)n=r._next,r.p===t&&!r.op||r.op===t?bi(this,r,"_pt"):r.dep||(e=1),r=n;return!e},Ja=function(t,e,n,r){r.mSet(t,e,r.m.call(r.tween,n,r.mt),r)},ts=function(t){for(var e,n,r,i,a=t._pt;a;){for(e=a._next,n=r;n&&n.pr>a.pr;)n=n._next;(a._prev=n?n._prev:i)?a._prev._next=a:r=a,(a._next=n)?n._prev=a:i=a,a=e}t._pt=r},es=function(){function t(t,e,n,r,i,a,s,o,u){this.t=e,this.s=r,this.c=i,this.p=n,this.r=a||Wa,this.d=s||this,this.set=o||Ua,this.pr=u||0,this._next=t,t&&(t._prev=this)}return t.prototype.modifier=function(t,e,n){this.mSet=this.mSet||this.set,this.set=Ja,this.m=t,this.mt=n,this.tween=e},t}();ii(ti+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",(function(t){return Wr[t]=1})),Br.TweenMax=Br.TweenLite=ja,Br.TimelineLite=Br.TimelineMax=Ca,tr=new Ca({sortChildren:!1,defaults:dr,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),fr.stringFilter=pa;var ns=[],rs={},is=[],as=0,ss=function(t){return(rs[t]||is).map((function(t){return t()}))},os=function(){var t=Date.now(),e=[];t-as>2&&(ss("matchMediaInit"),ns.forEach((function(t){var n,r,i,a,s=t.queries,o=t.conditions;for(r in s)(n=er.matchMedia(s[r]).matches)&&(i=1),n!==o[r]&&(o[r]=n,a=1);a&&(t.revert(),i&&e.push(t))})),ss("matchMediaRevert"),e.forEach((function(t){return t.onMatch(t)})),as=t,ss("matchMedia"))},us=function(){function t(t,e){this.selector=e&&Zi(e),this.data=[],this._r=[],this.isReverted=!1,t&&this.add(t)}var e=t.prototype;return e.add=function(t,e,n){wr(t)&&(n=e,e=t,t=wr);var r=this,i=function(){var t,i=Jn,a=r.selector;return i&&i!==r&&i.data.push(r),n&&(r.selector=Zi(n)),Jn=r,t=e.apply(r,arguments),wr(t)&&r._r.push(t),Jn=i,r.selector=a,r.isReverted=!1,t};return r.last=i,t===wr?i(r):t?r[t]=i:i},e.ignore=function(t){var e=Jn;Jn=null,t(this),Jn=e},e.getTweens=function(){var e=[];return this.data.forEach((function(n){return n instanceof t?e.push.apply(e,n.getTweens()):n instanceof ja&&!(n.parent&&"nested"===n.parent.data)&&e.push(n)})),e},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(t,e){var n=this;if(t){var r=this.getTweens();this.data.forEach((function(t){"isFlip"===t.data&&(t.revert(),t.getChildren(!0,!0,!1).forEach((function(t){return r.splice(r.indexOf(t),1)})))})),r.map((function(t){return{g:t.globalTime(0),t:t}})).sort((function(t,e){return e.g-t.g||-1})).forEach((function(e){return e.t.revert(t)})),this.data.forEach((function(e){return!(e instanceof ka)&&e.revert&&e.revert(t)})),this._r.forEach((function(e){return e(t,n)})),this.isReverted=!0}else this.data.forEach((function(t){return t.kill&&t.kill()}));if(this.clear(),e){var i=ns.indexOf(this);~i&&ns.splice(i,1)}},e.revert=function(t){this.kill(t||{})},t}(),cs=function(){function t(t){this.contexts=[],this.scope=t}var e=t.prototype;return e.add=function(t,e,n){Sr(t)||(t={matches:t});var r,i,a,s=new us(0,n||this.scope),o=s.conditions={};for(i in this.contexts.push(s),e=s.add("onMatch",e),s.queries=t,t)"all"===i?a=1:(r=er.matchMedia(t[i]))&&(ns.indexOf(s)<0&&ns.push(s),(o[i]=r.matches)&&(a=1),r.addListener?r.addListener(os):r.addEventListener("change",os));return a&&e(s),this},e.revert=function(t){this.kill(t||{})},e.kill=function(t){this.contexts.forEach((function(e){return e.kill(t,!0)}))},t}(),ls={registerPlugin:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e.forEach((function(t){return sa(t)}))},timeline:function(t){return new Ca(t)},getTweensOf:function(t,e){return tr.getTweensOf(t,e)},getProperty:function(t,e,n,r){_r(t)&&(t=Wi(t)[0]);var i=ni(t||{}).get,a=n?fi:hi;return"native"===n&&(n=""),t?e?a((Kr[e]&&Kr[e].get||i)(t,e,n,r)):function(e,n,r){return a((Kr[e]&&Kr[e].get||i)(t,e,n,r))}:t},quickSetter:function(t,e,n){if((t=Wi(t)).length>1){var r=t.map((function(t){return ds.quickSetter(t,e,n)})),i=r.length;return function(t){for(var e=i;e--;)r[e](t)}}t=t[0]||{};var a=Kr[e],s=ni(t),o=s.harness&&(s.harness.aliases||{})[e]||e,u=a?function(e){var r=new a;sr._pt=0,r.init(t,n?e+n:e,sr,0,[t]),r.render(1,r),sr._pt&&Ka(1,sr)}:s.set(t,o);return a?u:function(e){return u(t,o,n?e+n:e,s,1)}},quickTo:function(t,e,n){var r,i=ds.to(t,pi(((r={})[e]="+=0.1",r.paused=!0,r),n||{})),a=function(t,n,r){return i.resetTo(e,t,n,r)};return a.tween=i,a},isTweening:function(t){return tr.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=Ta(t.ease,dr.ease)),mi(dr,t||{})},config:function(t){return mi(fr,t||{})},registerEffect:function(t){var e=t.name,n=t.effect,r=t.plugins,i=t.defaults,a=t.extendTimeline;(r||"").split(",").forEach((function(t){return t&&!Kr[t]&&!Br[t]&&jr(e+" effect requires "+t+" plugin.")})),Xr[e]=function(t,e,r){return n(Wi(t),di(e||{},i),r)},a&&(Ca.prototype[e]=function(t,n,r){return this.add(Xr[e](t,Sr(n)?n:(r=n)&&{},this),r)})},registerEase:function(t,e){va[t]=Ta(e)},parseEase:function(t,e){return arguments.length?Ta(t,e):va},getById:function(t){return tr.getById(t)},exportRoot:function(t,e){void 0===t&&(t={});var n,r,i=new Ca(t);for(i.smoothChildTiming=xr(t.smoothChildTiming),tr.remove(i),i._dp=0,i._time=i._tTime=tr._time,n=tr._first;n;)r=n._next,!e&&!n._dur&&n instanceof ja&&n.vars.onComplete===n._targets[0]||Ai(i,n,n._start-n._delay),n=r;return Ai(tr,i,0),i},context:function(t,e){return t?new us(t,e):Jn},matchMedia:function(t){return new cs(t)},matchMediaRefresh:function(){return ns.forEach((function(t){var e,n,r=t.conditions;for(n in r)r[n]&&(r[n]=!1,e=1);e&&t.revert()}))||os()},addEventListener:function(t,e){var n=rs[t]||(rs[t]=[]);~n.indexOf(e)||n.push(e)},removeEventListener:function(t,e){var n=rs[t],r=n&&n.indexOf(e);r>=0&&n.splice(r,1)},utils:{wrap:function t(e,n,r){var i=n-e;return kr(e)?ta(e,t(0,e.length),n):ji(r,(function(t){return(i+(t-e)%i)%i+e}))},wrapYoyo:function t(e,n,r){var i=n-e,a=2*i;return kr(e)?ta(e,t(0,e.length-1),n):ji(r,(function(t){return e+((t=(a+(t-e)%a)%a||0)>i?a-t:t)}))},distribute:Ki,random:Ji,snap:Qi,normalize:function(t,e,n){return na(t,e,0,1,n)},getUnit:Hi,clamp:function(t,e,n){return ji(n,(function(n){return Ui(t,e,n)}))},splitColor:ca,toArray:Wi,selector:Zi,mapRange:na,pipe:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){return e.reduce((function(t,e){return e(t)}),t)}},unitize:function(t,e){return function(n){return t(parseFloat(n))+(e||Hi(n))}},interpolate:function t(e,n,r,i){var a=isNaN(e+n)?0:function(t){return(1-t)*e+t*n};if(!a){var s,o,u,c,l,h=_r(e),f={};if(!0===r&&(i=1)&&(r=null),h)e={p:e},n={p:n};else if(kr(e)&&!kr(n)){for(u=[],c=e.length,l=c-2,o=1;o<c;o++)u.push(t(e[o-1],e[o]));c--,a=function(t){t*=c;var e=Math.min(l,~~t);return u[e](t-e)},r=n}else i||(e=pi(kr(e)?[]:{},e));if(!u){for(s in n)Na.call(f,e,s,"get",n[s]);a=function(t){return Ka(t,f)||(h?e.p:e)}}}return ji(r,a)},shuffle:$i},install:Lr,effects:Xr,ticker:ma,updateRoot:Ca.updateRoot,plugins:Kr,globalTimeline:tr,core:{PropTween:es,globals:Ur,Tween:ja,Timeline:Ca,Animation:ka,getCache:ni,_removeLinkedListItem:bi,reverting:function(){return Qn},context:function(t){return t&&Jn&&(Jn.data.push(t),t._ctx=Jn),Jn},suppressOverwrites:function(t){return Xn=t}}};ii("to,from,fromTo,delayedCall,set,killTweensOf",(function(t){return ls[t]=ja[t]})),ma.add(Ca.updateRoot),sr=ls.to({},{duration:0});var hs=function(t,e){for(var n=t._pt;n&&n.p!==e&&n.op!==e&&n.fp!==e;)n=n._next;return n},fs=function(t,e){return{name:t,rawVars:1,init:function(t,n,r){r._onInit=function(t){var r,i;if(_r(n)&&(r={},ii(n,(function(t){return r[t]=1})),n=r),e){for(i in r={},n)r[i]=e(n[i]);n=r}!function(t,e){var n,r,i,a=t._targets;for(n in e)for(r=a.length;r--;)(i=t._ptLookup[r][n])&&(i=i.d)&&(i._pt&&(i=hs(i,n)),i&&i.modifier&&i.modifier(e[n],t,a[r],n))}(t,n)}}}},ds=ls.registerPlugin({name:"attr",init:function(t,e,n,r,i){var a,s,o;for(a in this.tween=n,e)o=t.getAttribute(a)||"",(s=this.add(t,"setAttribute",(o||0)+"",e[a],r,i,0,0,a)).op=a,s.b=o,this._props.push(a)},render:function(t,e){for(var n=e._pt;n;)Qn?n.set(n.t,n.p,n.b,n):n.r(t,n.d),n=n._next}},{name:"endArray",init:function(t,e){for(var n=e.length;n--;)this.add(t,n,t[n]||0,e[n],0,0,0,0,0,1)}},fs("roundProps",Xi),fs("modifiers"),fs("snap",Qi))||ls;ja.version=Ca.version=ds.version="3.11.3",ir=1,Er()&&ga(),va.Power0,va.Power1,va.Power2,va.Power3,va.Power4,va.Linear,va.Quad,va.Cubic,va.Quart,va.Quint,va.Strong,va.Elastic,va.Back,va.SteppedEase,va.Bounce,va.Sine,va.Expo,va.Circ;
|
|
28
28
|
/*!
|
|
29
29
|
* CSSPlugin 3.11.3
|
|
30
30
|
* https://greensock.com
|
|
@@ -34,5 +34,5 @@ r.version="2.29.1",i(Kn),r.fn=ua,r.min=Jn,r.max=tr,r.now=er,r.utc=p,r.unix=ca,r.
|
|
|
34
34
|
* Club GreenSock members, the agreement issued with that membership.
|
|
35
35
|
* @author: Jack Doyle, jack@greensock.com
|
|
36
36
|
*/
|
|
37
|
-
var Ua,Ha,za,qa,Ga,Wa,Za,Ka,$a={},Xa=180/Math.PI,Qa=Math.PI/180,Ja=Math.atan2,ts=/([A-Z])/g,es=/(left|right|width|margin|padding|x)/i,ns=/[\s,\(]\S/,rs={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},is=function(t,e){return e.set(e.t,e.p,Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)},as=function(t,e){return e.set(e.t,e.p,1===t?e.e:Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)},ss=function(t,e){return e.set(e.t,e.p,t?Math.round(1e4*(e.s+e.c*t))/1e4+e.u:e.b,e)},os=function(t,e){var n=e.s+e.c*t;e.set(e.t,e.p,~~(n+(n<0?-.5:.5))+e.u,e)},us=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},cs=function(t,e){return e.set(e.t,e.p,1!==t?e.b:e.e,e)},ls=function(t,e,n){return t.style[e]=n},hs=function(t,e,n){return t.style.setProperty(e,n)},fs=function(t,e,n){return t._gsap[e]=n},ds=function(t,e,n){return t._gsap.scaleX=t._gsap.scaleY=n},ps=function(t,e,n,r,i){var a=t._gsap;a.scaleX=a.scaleY=n,a.renderTransform(i,a)},ms=function(t,e,n,r,i){var a=t._gsap;a[e]=n,a.renderTransform(i,a)},gs="transform",vs=gs+"Origin",ys=function(t,e){var n=this,r=this.target,i=r.style;if(t in $a){if(this.tfm=this.tfm||{},"transform"!==t&&(~(t=rs[t]||t).indexOf(",")?t.split(",").forEach((function(t){return n.tfm[t]=Vs(r,t)})):this.tfm[t]=r._gsap.x?r._gsap[t]:Vs(r,t)),this.props.indexOf(gs)>=0)return;r._gsap.svg&&(this.svgo=r.getAttribute("data-svg-origin"),this.props.push(vs,e,"")),t=gs}(i||e)&&this.props.push(t,e,i[t])},_s=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},bs=function(){var t,e,n=this.props,r=this.target,i=r.style,a=r._gsap;for(t=0;t<n.length;t+=3)n[t+1]?r[n[t]]=n[t+2]:n[t+2]?i[n[t]]=n[t+2]:i.removeProperty(n[t].replace(ts,"-$1").toLowerCase());if(this.tfm){for(e in this.tfm)a[e]=this.tfm[e];a.svg&&(a.renderTransform(),r.setAttribute("data-svg-origin",this.svgo||"")),!(t=Za())||t.isStart||i[gs]||(_s(i),a.uncache=1)}},ws=function(t,e){var n={target:t,props:[],revert:bs,save:ys};return e&&e.split(",").forEach((function(t){return n.save(t)})),n},Ds=function(t,e){var n=Ha.createElementNS?Ha.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):Ha.createElement(t);return n.style?n:Ha.createElement(t)},Ss=function t(e,n,r){var i=getComputedStyle(e);return i[n]||i.getPropertyValue(n.replace(ts,"-$1").toLowerCase())||i.getPropertyValue(n)||!r&&t(e,xs(n)||n,1)||""},Ts="O,Moz,ms,Ms,Webkit".split(","),xs=function(t,e,n){var r=(e||Ga).style,i=5;if(t in r&&!n)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);i--&&!(Ts[i]+t in r););return i<0?null:(3===i?"ms":i>=0?Ts[i]:"")+t},Es=function(){"undefined"!=typeof window&&window.document&&(Ua=window,Ha=Ua.document,za=Ha.documentElement,Ga=Ds("div")||{style:{}},Ds("div"),gs=xs(gs),vs=gs+"Origin",Ga.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Ka=!!xs("perspective"),Za=ja.core.reverting,qa=1)},Ms=function t(e){var n,r=Ds("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=this.parentNode,a=this.nextSibling,s=this.style.cssText;if(za.appendChild(r),r.appendChild(this),this.style.display="block",e)try{n=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=t}catch(t){}else this._gsapBBox&&(n=this._gsapBBox());return i&&(a?i.insertBefore(this,a):i.appendChild(this)),za.removeChild(r),this.style.cssText=s,n},Os=function(t,e){for(var n=e.length;n--;)if(t.hasAttribute(e[n]))return t.getAttribute(e[n])},ks=function(t){var e;try{e=t.getBBox()}catch(n){e=Ms.call(t,!0)}return e&&(e.width||e.height)||t.getBBox===Ms||(e=Ms.call(t,!0)),!e||e.width||e.x||e.y?e:{x:+Os(t,["x","cx","x1"])||0,y:+Os(t,["y","cy","y1"])||0,width:0,height:0}},Cs=function(t){return!(!t.getCTM||t.parentNode&&!t.ownerSVGElement||!ks(t))},As=function(t,e){if(e){var n=t.style;e in $a&&e!==vs&&(e=gs),n.removeProperty?("ms"!==e.substr(0,2)&&"webkit"!==e.substr(0,6)||(e="-"+e),n.removeProperty(e.replace(ts,"-$1").toLowerCase())):n.removeAttribute(e)}},Ps=function(t,e,n,r,i,a){var s=new ka(t._pt,e,n,0,1,a?cs:us);return t._pt=s,s.b=r,s.e=i,t._props.push(n),s},Rs={deg:1,rad:1,turn:1},Ns={grid:1,flex:1},Is=function t(e,n,r,i){var a,s,o,u,c=parseFloat(r)||0,l=(r+"").trim().substr((c+"").length)||"px",h=Ga.style,f=es.test(n),d="svg"===e.tagName.toLowerCase(),p=(d?"client":"offset")+(f?"Width":"Height"),m=100,g="px"===i,v="%"===i;return i===l||!c||Rs[i]||Rs[l]?c:("px"!==l&&!g&&(c=t(e,n,r,"px")),u=e.getCTM&&Cs(e),!v&&"%"!==l||!$a[n]&&!~n.indexOf("adius")?(h[f?"width":"height"]=m+(g?l:i),s=~n.indexOf("adius")||"em"===i&&e.appendChild&&!d?e:e.parentNode,u&&(s=(e.ownerSVGElement||{}).parentNode),s&&s!==Ha&&s.appendChild||(s=Ha.body),(o=s._gsap)&&v&&o.width&&f&&o.time===Hi.time&&!o.uncache?Rr(c/o.width*m):((v||"%"===l)&&!Ns[Ss(s,"display")]&&(h.position=Ss(e,"position")),s===e&&(h.position="static"),s.appendChild(Ga),a=Ga[p],s.removeChild(Ga),h.position="absolute",f&&v&&((o=Cr(s)).time=Hi.time,o.width=s[p]),Rr(g?a*c/m:a&&c?m/a*c:0))):(a=u?e.getBBox()[f?"width":"height"]:e[p],Rr(v?c/a*m:c/100*a)))},Vs=function(t,e,n,r){var i;return qa||Es(),e in rs&&"transform"!==e&&~(e=rs[e]).indexOf(",")&&(e=e.split(",")[0]),$a[e]&&"transform"!==e?(i=Ws(t,r),i="transformOrigin"!==e?i[e]:i.svg?i.origin:Zs(Ss(t,vs))+" "+i.zOrigin+"px"):(!(i=t.style[e])||"auto"===i||r||~(i+"").indexOf("calc("))&&(i=Fs[e]&&Fs[e](t,e,n)||Ss(t,e)||Ar(t,e)||("opacity"===e?1:0)),n&&!~(i+"").trim().indexOf(" ")?Is(t,e,i,n)+n:i},Bs=function(t,e,n,r){if(!n||"none"===n){var i=xs(e,t,1),a=i&&Ss(t,i,1);a&&a!==n?(e=i,n=a):"borderColor"===e&&(n=Ss(t,"borderTopColor"))}var s,o,u,c,l,h,f,d,p,m,g,v=new ka(this._pt,t.style,e,0,1,Sa),y=0,_=0;if(v.b=n,v.e=r,n+="","auto"===(r+="")&&(t.style[e]=r,r=Ss(t,e)||r,t.style[e]=n),Ui(s=[n,r]),r=s[1],u=(n=s[0]).match(sr)||[],(r.match(sr)||[]).length){for(;o=sr.exec(r);)f=o[0],p=r.substring(y,o.index),l?l=(l+1)%5:"rgba("!==p.substr(-5)&&"hsla("!==p.substr(-5)||(l=1),f!==(h=u[_++]||"")&&(c=parseFloat(h)||0,g=h.substr((c+"").length),"="===f.charAt(1)&&(f=Ir(c,f)+g),d=parseFloat(f),m=f.substr((d+"").length),y=sr.lastIndex-m.length,m||(m=m||Fn.units[e]||g,y===r.length&&(r+=m,v.e+=m)),g!==m&&(c=Is(t,e,h,m)||0),v._pt={_next:v._pt,p:p||1===_?p:",",s:c,c:d-c,m:l&&l<4||"zIndex"===e?Math.round:0});v.c=y<r.length?r.substring(y,r.length):""}else v.r="display"===e&&"none"===r?cs:us;return ur.test(r)&&(v.e=0),this._pt=v,v},Ys={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},Ls=function(t,e){if(e.tween&&e.tween._time===e.tween._dur){var n,r,i,a=e.t,s=a.style,o=e.u,u=a._gsap;if("all"===o||!0===o)s.cssText="",r=1;else for(i=(o=o.split(",")).length;--i>-1;)n=o[i],$a[n]&&(r=1,n="transformOrigin"===n?vs:gs),As(a,n);r&&(As(a,gs),u&&(u.svg&&a.removeAttribute("transform"),Ws(a,1),u.uncache=1,_s(s)))}},Fs={clearProps:function(t,e,n,r,i){if("isFromStart"!==i.data){var a=t._pt=new ka(t._pt,e,n,0,0,Ls);return a.u=r,a.pr=-10,a.tween=i,t._props.push(n),1}}},js=[1,0,0,1,0,0],Us={},Hs=function(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t},zs=function(t){var e=Ss(t,gs);return Hs(e)?js:e.substr(7).match(ar).map(Rr)},qs=function(t,e){var n,r,i,a,s=t._gsap||Cr(t),o=t.style,u=zs(t);return s.svg&&t.getAttribute("transform")?"1,0,0,1,0,0"===(u=[(i=t.transform.baseVal.consolidate().matrix).a,i.b,i.c,i.d,i.e,i.f]).join(",")?js:u:(u!==js||t.offsetParent||t===za||s.svg||(i=o.display,o.display="block",(n=t.parentNode)&&t.offsetParent||(a=1,r=t.nextElementSibling,za.appendChild(t)),u=zs(t),i?o.display=i:As(t,"display"),a&&(r?n.insertBefore(t,r):n?n.appendChild(t):za.removeChild(t))),e&&u.length>6?[u[0],u[1],u[4],u[5],u[12],u[13]]:u)},Gs=function(t,e,n,r,i,a){var s,o,u,c=t._gsap,l=i||qs(t,!0),h=c.xOrigin||0,f=c.yOrigin||0,d=c.xOffset||0,p=c.yOffset||0,m=l[0],g=l[1],v=l[2],y=l[3],_=l[4],b=l[5],w=e.split(" "),D=parseFloat(w[0])||0,S=parseFloat(w[1])||0;n?l!==js&&(o=m*y-g*v)&&(u=D*(-g/o)+S*(m/o)-(m*b-g*_)/o,D=D*(y/o)+S*(-v/o)+(v*b-y*_)/o,S=u):(D=(s=ks(t)).x+(~w[0].indexOf("%")?D/100*s.width:D),S=s.y+(~(w[1]||w[0]).indexOf("%")?S/100*s.height:S)),r||!1!==r&&c.smooth?(_=D-h,b=S-f,c.xOffset=d+(_*m+b*v)-_,c.yOffset=p+(_*g+b*y)-b):c.xOffset=c.yOffset=0,c.xOrigin=D,c.yOrigin=S,c.smooth=!!r,c.origin=e,c.originIsAbsolute=!!n,t.style[vs]="0px 0px",a&&(Ps(a,c,"xOrigin",h,D),Ps(a,c,"yOrigin",f,S),Ps(a,c,"xOffset",d,c.xOffset),Ps(a,c,"yOffset",p,c.yOffset)),t.setAttribute("data-svg-origin",D+" "+S)},Ws=function(t,e){var n=t._gsap||new na(t);if("x"in n&&!e&&!n.uncache)return n;var r,i,a,s,o,u,c,l,h,f,d,p,m,g,v,y,_,b,w,D,S,T,x,E,M,O,k,C,A,P,R,N,I=t.style,V=n.scaleX<0,B="px",Y="deg",L=getComputedStyle(t),F=Ss(t,vs)||"0";return r=i=a=u=c=l=h=f=d=0,s=o=1,n.svg=!(!t.getCTM||!Cs(t)),L.translate&&("none"===L.translate&&"none"===L.scale&&"none"===L.rotate||(I[gs]=("none"!==L.translate?"translate3d("+(L.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+("none"!==L.rotate?"rotate("+L.rotate+") ":"")+("none"!==L.scale?"scale("+L.scale.split(" ").join(",")+") ":"")+("none"!==L[gs]?L[gs]:"")),I.scale=I.rotate=I.translate="none"),g=qs(t,n.svg),n.svg&&(n.uncache?(M=t.getBBox(),F=n.xOrigin-M.x+"px "+(n.yOrigin-M.y)+"px",E=""):E=!e&&t.getAttribute("data-svg-origin"),Gs(t,E||F,!!E||n.originIsAbsolute,!1!==n.smooth,g)),p=n.xOrigin||0,m=n.yOrigin||0,g!==js&&(b=g[0],w=g[1],D=g[2],S=g[3],r=T=g[4],i=x=g[5],6===g.length?(s=Math.sqrt(b*b+w*w),o=Math.sqrt(S*S+D*D),u=b||w?Ja(w,b)*Xa:0,(h=D||S?Ja(D,S)*Xa+u:0)&&(o*=Math.abs(Math.cos(h*Qa))),n.svg&&(r-=p-(p*b+m*D),i-=m-(p*w+m*S))):(N=g[6],P=g[7],k=g[8],C=g[9],A=g[10],R=g[11],r=g[12],i=g[13],a=g[14],c=(v=Ja(N,A))*Xa,v&&(E=T*(y=Math.cos(-v))+k*(_=Math.sin(-v)),M=x*y+C*_,O=N*y+A*_,k=T*-_+k*y,C=x*-_+C*y,A=N*-_+A*y,R=P*-_+R*y,T=E,x=M,N=O),l=(v=Ja(-D,A))*Xa,v&&(y=Math.cos(-v),R=S*(_=Math.sin(-v))+R*y,b=E=b*y-k*_,w=M=w*y-C*_,D=O=D*y-A*_),u=(v=Ja(w,b))*Xa,v&&(E=b*(y=Math.cos(v))+w*(_=Math.sin(v)),M=T*y+x*_,w=w*y-b*_,x=x*y-T*_,b=E,T=M),c&&Math.abs(c)+Math.abs(u)>359.9&&(c=u=0,l=180-l),s=Rr(Math.sqrt(b*b+w*w+D*D)),o=Rr(Math.sqrt(x*x+N*N)),v=Ja(T,x),h=Math.abs(v)>2e-4?v*Xa:0,d=R?1/(R<0?-R:R):0),n.svg&&(E=t.getAttribute("transform"),n.forceCSS=t.setAttribute("transform","")||!Hs(Ss(t,gs)),E&&t.setAttribute("transform",E))),Math.abs(h)>90&&Math.abs(h)<270&&(V?(s*=-1,h+=u<=0?180:-180,u+=u<=0?180:-180):(o*=-1,h+=h<=0?180:-180)),e=e||n.uncache,n.x=r-((n.xPercent=r&&(!e&&n.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-r)?-50:0)))?t.offsetWidth*n.xPercent/100:0)+B,n.y=i-((n.yPercent=i&&(!e&&n.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-i)?-50:0)))?t.offsetHeight*n.yPercent/100:0)+B,n.z=a+B,n.scaleX=Rr(s),n.scaleY=Rr(o),n.rotation=Rr(u)+Y,n.rotationX=Rr(c)+Y,n.rotationY=Rr(l)+Y,n.skewX=h+Y,n.skewY=f+Y,n.transformPerspective=d+B,(n.zOrigin=parseFloat(F.split(" ")[2])||0)&&(I[vs]=Zs(F)),n.xOffset=n.yOffset=0,n.force3D=Fn.force3D,n.renderTransform=n.svg?Qs:Ka?Xs:$s,n.uncache=0,n},Zs=function(t){return(t=t.split(" "))[0]+" "+t[1]},Ks=function(t,e,n){var r=vi(e);return Rr(parseFloat(e)+parseFloat(Is(t,"x",n+"px",r)))+r},$s=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,Xs(t,e)},Xs=function(t,e){var n=e||this,r=n.xPercent,i=n.yPercent,a=n.x,s=n.y,o=n.z,u=n.rotation,c=n.rotationY,l=n.rotationX,h=n.skewX,f=n.skewY,d=n.scaleX,p=n.scaleY,m=n.transformPerspective,g=n.force3D,v=n.target,y=n.zOrigin,_="",b="auto"===g&&t&&1!==t||!0===g;if(y&&("0deg"!==l||"0deg"!==c)){var w,D=parseFloat(c)*Qa,S=Math.sin(D),T=Math.cos(D);D=parseFloat(l)*Qa,w=Math.cos(D),a=Ks(v,a,S*w*-y),s=Ks(v,s,-Math.sin(D)*-y),o=Ks(v,o,T*w*-y+y)}"0px"!==m&&(_+="perspective("+m+") "),(r||i)&&(_+="translate("+r+"%, "+i+"%) "),(b||"0px"!==a||"0px"!==s||"0px"!==o)&&(_+="0px"!==o||b?"translate3d("+a+", "+s+", "+o+") ":"translate("+a+", "+s+") "),"0deg"!==u&&(_+="rotate("+u+") "),"0deg"!==c&&(_+="rotateY("+c+") "),"0deg"!==l&&(_+="rotateX("+l+") "),"0deg"===h&&"0deg"===f||(_+="skew("+h+", "+f+") "),1===d&&1===p||(_+="scale("+d+", "+p+") "),v.style[gs]=_||"translate(0, 0)"},Qs=function(t,e){var n,r,i,a,s,o=e||this,u=o.xPercent,c=o.yPercent,l=o.x,h=o.y,f=o.rotation,d=o.skewX,p=o.skewY,m=o.scaleX,g=o.scaleY,v=o.target,y=o.xOrigin,_=o.yOrigin,b=o.xOffset,w=o.yOffset,D=o.forceCSS,S=parseFloat(l),T=parseFloat(h);f=parseFloat(f),d=parseFloat(d),(p=parseFloat(p))&&(d+=p=parseFloat(p),f+=p),f||d?(f*=Qa,d*=Qa,n=Math.cos(f)*m,r=Math.sin(f)*m,i=Math.sin(f-d)*-g,a=Math.cos(f-d)*g,d&&(p*=Qa,s=Math.tan(d-p),i*=s=Math.sqrt(1+s*s),a*=s,p&&(s=Math.tan(p),n*=s=Math.sqrt(1+s*s),r*=s)),n=Rr(n),r=Rr(r),i=Rr(i),a=Rr(a)):(n=m,a=g,r=i=0),(S&&!~(l+"").indexOf("px")||T&&!~(h+"").indexOf("px"))&&(S=Is(v,"x",l,"px"),T=Is(v,"y",h,"px")),(y||_||b||w)&&(S=Rr(S+y-(y*n+_*i)+b),T=Rr(T+_-(y*r+_*a)+w)),(u||c)&&(s=v.getBBox(),S=Rr(S+u/100*s.width),T=Rr(T+c/100*s.height)),s="matrix("+n+","+r+","+i+","+a+","+S+","+T+")",v.setAttribute("transform",s),D&&(v.style[gs]=s)},Js=function(t,e,n,r,i){var a,s,o=360,u=Zn(i),c=parseFloat(i)*(u&&~i.indexOf("rad")?Xa:1)-r,l=r+c+"deg";return u&&("short"===(a=i.split("_")[1])&&(c%=o)!==c%180&&(c+=c<0?o:-360),"cw"===a&&c<0?c=(c+36e9)%o-~~(c/o)*o:"ccw"===a&&c>0&&(c=(c-36e9)%o-~~(c/o)*o)),t._pt=s=new ka(t._pt,e,n,r,c,as),s.e=l,s.u="deg",t._props.push(n),s},to=function(t,e){for(var n in e)t[n]=e[n];return t},eo=function(t,e,n){var r,i,a,s,o,u,c,l=to({},n._gsap),h=n.style;for(i in l.svg?(a=n.getAttribute("transform"),n.setAttribute("transform",""),h[gs]=e,r=Ws(n,1),As(n,gs),n.setAttribute("transform",a)):(a=getComputedStyle(n)[gs],h[gs]=e,r=Ws(n,1),h[gs]=a),$a)(a=l[i])!==(s=r[i])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(i)<0&&(o=vi(a)!==(c=vi(s))?Is(n,i,a,c):parseFloat(a),u=parseFloat(s),t._pt=new ka(t._pt,r,i,o,u-o,is),t._pt.u=c||0,t._props.push(i));to(r,l)};Pr("padding,margin,Width,Radius",(function(t,e){var n="Top",r="Right",i="Bottom",a="Left",s=(e<3?[n,r,i,a]:[n+a,n+r,i+r,i+a]).map((function(n){return e<2?t+n:"border"+n+t}));Fs[e>1?"border"+t:t]=function(t,e,n,r,i){var a,o;if(arguments.length<4)return a=s.map((function(e){return Vs(t,e,n)})),5===(o=a.join(" ")).split(a[0]).length?a[0]:o;a=(r+"").split(" "),o={},s.forEach((function(t,e){return o[t]=a[e]=a[e]||a[(e-1)/2|0]})),t.init(e,o,i)}}));var no,ro,io,ao={name:"css",register:Es,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,n,r,i){var a,s,o,u,c,l,h,f,d,p,m,g,v,y,_,b,w,D,S,T,x=this._props,E=t.style,M=n.vars.startAt;for(h in qa||Es(),this.styles=this.styles||ws(t),b=this.styles.props,this.tween=n,e)if("autoRound"!==h&&(s=e[h],!Tr[h]||!ca(h,e,n,r,t,i)))if(c=typeof s,l=Fs[h],"function"===c&&(c=typeof(s=s.call(n,r,t,i))),"string"===c&&~s.indexOf("random(")&&(s=ki(s)),l)l(this,t,h,s,n)&&(_=1);else if("--"===h.substr(0,2))a=(getComputedStyle(t).getPropertyValue(h)+"").trim(),s+="",Fi.lastIndex=0,Fi.test(a)||(f=vi(a),d=vi(s)),d?f!==d&&(a=Is(t,h,a,d)+d):f&&(s+=f),this.add(E,"setProperty",a,s,r,i,0,0,h),x.push(h),b.push(h,0,E[h]);else if("undefined"!==c){if(M&&h in M?(a="function"==typeof M[h]?M[h].call(n,r,t,i):M[h],Zn(a)&&~a.indexOf("random(")&&(a=ki(a)),vi(a+"")||(a+=Fn.units[h]||vi(Vs(t,h))||""),"="===(a+"").charAt(1)&&(a=Vs(t,h))):a=Vs(t,h),u=parseFloat(a),(p="string"===c&&"="===s.charAt(1)&&s.substr(0,2))&&(s=s.substr(2)),o=parseFloat(s),h in rs&&("autoAlpha"===h&&(1===u&&"hidden"===Vs(t,"visibility")&&o&&(u=0),b.push("visibility",0,E.visibility),Ps(this,E,"visibility",u?"inherit":"hidden",o?"inherit":"hidden",!o)),"scale"!==h&&"transform"!==h&&~(h=rs[h]).indexOf(",")&&(h=h.split(",")[0])),m=h in $a)if(this.styles.save(h),g||((v=t._gsap).renderTransform&&!e.parseTransform||Ws(t,e.parseTransform),y=!1!==e.smoothOrigin&&v.smooth,(g=this._pt=new ka(this._pt,E,gs,0,1,v.renderTransform,v,0,-1)).dep=1),"scale"===h)this._pt=new ka(this._pt,v,"scaleY",u,(p?Ir(u,p+o):o)-u||0,is),this._pt.u=0,x.push("scaleY",h),h+="X";else{if("transformOrigin"===h){b.push(vs,0,E[vs]),D=void 0,S=void 0,T=void 0,D=(w=s).split(" "),S=D[0],T=D[1]||"50%","top"!==S&&"bottom"!==S&&"left"!==T&&"right"!==T||(w=S,S=T,T=w),D[0]=Ys[S]||S,D[1]=Ys[T]||T,s=D.join(" "),v.svg?Gs(t,s,0,y,0,this):((d=parseFloat(s.split(" ")[2])||0)!==v.zOrigin&&Ps(this,v,"zOrigin",v.zOrigin,d),Ps(this,E,h,Zs(a),Zs(s)));continue}if("svgOrigin"===h){Gs(t,s,1,y,0,this);continue}if(h in Us){Js(this,v,h,u,p?Ir(u,p+s):s);continue}if("smoothOrigin"===h){Ps(this,v,"smooth",v.smooth,s);continue}if("force3D"===h){v[h]=s;continue}if("transform"===h){eo(this,s,t);continue}}else h in E||(h=xs(h)||h);if(m||(o||0===o)&&(u||0===u)&&!ns.test(s)&&h in E)o||(o=0),(f=(a+"").substr((u+"").length))!==(d=vi(s)||(h in Fn.units?Fn.units[h]:f))&&(u=Is(t,h,a,d)),this._pt=new ka(this._pt,m?v:E,h,u,(p?Ir(u,p+o):o)-u,m||"px"!==d&&"zIndex"!==h||!1===e.autoRound?is:os),this._pt.u=d||0,f!==d&&"%"!==d&&(this._pt.b=a,this._pt.r=ss);else if(h in E)Bs.call(this,t,h,a,p?p+s:s);else{if(!(h in t)){pr(h,s);continue}this.add(t,h,a||t[h],p?p+s:s,r,i)}m||(h in E?b.push(h,0,E[h]):b.push(h,1,a||t[h])),x.push(h)}_&&Oa(this)},render:function(t,e){if(e.tween._time||!Za())for(var n=e._pt;n;)n.r(t,n.d),n=n._next;else e.styles.revert()},get:Vs,aliases:rs,getSetter:function(t,e,n){var r=rs[e];return r&&r.indexOf(",")<0&&(e=r),e in $a&&e!==vs&&(t._gsap.x||Vs(t,"x"))?n&&Wa===n?"scale"===e?ds:fs:(Wa=n||{})&&("scale"===e?ps:ms):t.style&&!Xn(t.style[e])?ls:~e.indexOf("-")?hs:ba(t,e)},core:{_removeProperty:As,_getMatrix:qs}};ja.utils.checkPrefix=xs,ja.core.getStyleSaver=ws,io=Pr((no="x,y,z,scale,scaleX,scaleY,xPercent,yPercent")+","+(ro="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",(function(t){$a[t]=1})),Pr(ro,(function(t){Fn.units[t]="deg",Us[t]=1})),rs[io[13]]=no+","+ro,Pr("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",(function(t){var e=t.split(":");rs[e[1]]=io[e[0]]})),Pr("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",(function(t){Fn.units[t]="px"})),ja.registerPlugin(ao);var so=ja.registerPlugin(ao)||ja;so.core.Tween;var oo=function(){function e(){this.startPoisiton={x:0,y:0},this.endPoisiton={x:1920,y:0},this.curtain={width:1920,height:1080},this.totalTime=5,this.timeLine=so.timeline()}return e.getInstance=function(){return this.instance||(this.instance=new e),this.instance},e.prototype.init=function(t,e){var n;null===(n=this.timeLine)||void 0===n||n.clear();var r=e.curtain,i=e.totalTime,a=e.admissionMode;i&&(this.totalTime=i),this.setEndPoisiton(r);var s=this.filterData(t,a);this.goAnimationParams=e;for(var o=0;o<s.length;o++){var u=s[o];if(u instanceof Array)for(var c=0;c<u.length;c++){var l=this.totalTime/u.length,h=u[c],f=this._creatTl("#wrap"+h.cid);this._add(f,c*l)}else{l=this.totalTime/s.length,f=this._creatTl("#wrap"+u.cid);this._add(f,o*l)}}return this.timeLine},e.prototype.filterData=function(e,n){var r;if("left"==n)r=t.orderBy(e,["baseData.left"],["asc"]);else if("top"==n)r=t.orderBy(e,["baseData.top"],["asc"]);else if("topLeft"==n){var i=this.setSpacing(e,"left");r=t.orderBy(i,["spacing"],["asc"])}else if("topRight"==n){var a=this.setSpacing(e,"right");r=t.orderBy(a,["spacing"],["asc"])}else if("center"==n){var s=this.splitArrayForCenter(e,"left");r=[t.orderBy(s.true,["center.x"],["asc"]),t.orderBy(s.false,["center.x"],["desc"])]}else if("spaceBetween"==n){s=this.splitArrayForCenter(e,"left");r=[t.orderBy(s.true,["center.x"],["desc"]),t.orderBy(s.false,["center.x"],["asc"])]}else r=t.orderBy(e,["baseData.left"],["asc"]);return r},e.prototype.getSpacing=function(t,e){var n=t.x,r=t.y,i=e.x,a=e.y,s=Math.abs(n-i),o=Math.abs(r-a);return Math.sqrt(s*s+o*o)},e.prototype.creatPosition=function(t,e){var n=0,r=0;return t?("left"===e?(n=t.left,r=t.top):"right"===e&&(n=t.left+t.width,r=t.top),{x:n,y:r}):{x:n,y:r}},e.prototype.setEndPoisiton=function(t){if(t){var e=t.width,n=t.height;this.curtain=t,this.endPoisiton.x=e,this.endPoisiton.y=n}},e.prototype.setSpacing=function(t,e){var n,r=this;return"left"===e?n=this.startPoisiton:"right"===e&&(n=this.endPoisiton),t.forEach((function(t){var i=t.baseData;if(i){var a=r.creatPosition(i,e),s=r.getSpacing(a,n);t.spacing=s}})),t},e.prototype.setCenter=function(t){return t.forEach((function(t){if(t.baseData){var e=t.baseData.left+t.baseData.width/2,n=t.baseData.top+t.baseData.height/2;t.center={x:e,y:n}}})),t},e.prototype.splitArrayForCenter=function(e,n){var r,i=this,a=this.setCenter(e);return"left"!=n&&"right"!=n||(r=t.groupBy(a,(function(t){return t.center.x>=i.curtain.width/2}))),"top"!=n&&"bottom"!=n||(r=t.groupBy(a,(function(t){return t.center.y>=i.curtain.height/2}))),console.log(r,"newList"),r},e.prototype._add=function(t,e){this.timeLine.add(t,e)},e.prototype._creatTl=function(t){var e=so.timeline();return e.add(this._creatTw(t)),e},e.prototype._creatTw=function(t){var e=this.goAnimationParams.params,n=e.delay,r=e.duration,i=e.repeat,a=e.type,s=e.value;return s&&s.length&&s.forEach((function(t){t.delay=n||0,t.repeat=i||0})),so[a](t,r,s[0],s[1])},e.prototype.in=function(){},e.prototype.out=function(){},e}(),uo=oo.getInstance();var co=function(){function t(t){this.root=null,this.vuex=Be.getInstance().VueServer,this.eventType=new Map,(null==t?void 0:t.root)&&(this.root=t.root);var e={setGlobalVar:this.setGlobalVar.bind(this),showComponent:this._showComponent.bind(this),hideComponent:this._hideComponent.bind(this),pageChange:this.pageChange.bind(this),changeDynamicState:this.changeDynamicState.bind(this)};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&this.eventType.set(n,[e[n]])}return t.prototype.findComponentDownward=function(t,e){var n=t.$children;if(n.length)for(var r=0,i=n;r<i.length;r++){var a=i[r];a.$options&&a.$options.propsData&&a.$options.propsData.cid&&(e[a.$options.propsData.cid]=a),a.$children&&a.$children.length&&this.findComponentDownward(a,e)}return e},t.prototype.getAllComponents=function(){var t={};return this.findComponentDownward(this.root,t),t},t.prototype.getComponentByCid=function(t){try{var e=this.getAllComponents()[t];if(!e)throw new Error("The instance was not found");return e}catch(t){console.warn(t)}},t.prototype.getElementByCid=function(t){try{if(!t)throw new Error("Please input the parameters correctly");var e=this.getComponentByCid(t);if(!e)throw new Error("The element was not found");return e.$el}catch(t){console.warn(t)}},t.prototype.setGlobalVar=function(t){try{var e=t.key,n=t.value;if(!(t&&e&&n))throw new Error("An error occurred. Please check whether the incoming parameters are correct! The correct format of data is an object containing key and value");this.setVars(t)}catch(t){console.warn(t)}},t.prototype._showComponent=function(t){try{if(!t)throw new Error("Please input the parameters correctly");this.changeVis({cid:t,flag:!0})}catch(t){console.warn(t)}},t.prototype._hideComponent=function(t){try{if(!t)throw new Error("Please input the parameters correctly");this.changeVis({cid:t,flag:!1})}catch(t){console.warn(t)}},t.prototype.getList=function(t){return t&&"id"===t?this.vuex.callState("list").map((function(t){return t.cid})):this.vuex.callState("list")},t.prototype.getTheme=function(t){var e=this.vuex.callState("theme");return t&&t(e),e},t.prototype.getElement=function(t){var e=function(t,e,n){for(var r,i=function(i){var a=t[i];if(a.cid===e)return r=a,n&&t.splice(i,1),{value:r};if(a.children&&a.children.length){for(var s=0;s<a.children.length;s++)if(a.children[s].cid===e)return r=a.children[s],n&&a.children.splice(s,1),{value:r}}else if(a.stateChildren&&a.stateChildren.length){for(s=0;s<a.stateChildren.length;s++)if(a.stateChildren[s].cid===e)return r=a.stateChildren[s],n&&a.stateChildren.splice(s,1),{value:r}}else if(a.dynamicChildren){var o=void 0;if(a.dynamicChildren instanceof Map?o=a.dynamicChildren.get(a.activeDynamic):a.dynamicChildren instanceof Array&&(o=a.dynamicChildren.find((function(t){return t[0]==a.activeDynamic}))[1]),o)for(s=0;s<o.length;s++)if(o[s].cid===e)return r=o[s],n&&o.splice(s,1),{value:r}}},a=0;a<t.length;a++){var s=i(a);if("object"==typeof s)return s.value}return!!r}(this.vuex.callState("list"),t);return e},t.prototype.changeVis=function(t){return this.vuex.callMutation("changeShow",t)},t.prototype.getPageInfo=function(t){var e=this.vuex.callState("caseInfo");return t&&t(e),(null==e?void 0:e.details)?e.details.map((function(t){return{name:t.caseDetailName,path:t.caseDetailPath,id:t.id}})):e},t.prototype.changeDynamicState=function(t){return this.vuex.callMutation("changeDynamicState",t)},t.prototype.pageChange=function(t){return this.vuex.callMutation("setPageId",t)},t.prototype.getVars=function(t){var e=this.vuex.callState("globalVars");return t&&t(e),e},t.prototype.setVars=function(t){return this.vuex.callMutation("goEditVar",t)},t}(),lo=function(t){function e(e){var n,i,a=t.call(this,e)||this,s=(n=(n=a.eventType)||new Map,r(r({},i),{EventType:n,on:function(t,e){var r=n.get(t);r?r.push(e):n.set(t,[e])},off:function(t,e){var r=n.get(t);r&&(e?r.splice(r.indexOf(e)>>>0,1):n.set(t,[]))},emit:function(t,e){var r=n.get(t);if(r){var i=r.slice().map((function(t){return t(e)}));if(i&&1==i.length)return i[0]}(r=n.get("*"))&&r.slice().map((function(n){n(t,e)}))}}));return a.$emit=s.emit,a.$on=s.on,a.$off=s.off,a}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}(e,t),Object.defineProperty(e.prototype,"Theme",{get:function(){return this.getTheme()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"Components",{get:function(){return this.getAllComponents()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"GlobalVars",{get:function(){return this.getVars()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"Pages",{get:function(){return this.getPageInfo()},enumerable:!1,configurable:!0}),e.prototype.getElementById=function(t){this.getElementByCid(t)},e.prototype.getComponentById=function(t){this.getComponentByCid(t)},e.prototype.getPage=function(){},e}(co),ho=function(t){return new lo(t)},fo=function(t,e){return Gt(t,"GET",null,e).then((function(t){var e=JSON.parse(t.data.caseData);return Be.getInstance().reversal(e),t}))},po=function(t,e){return e&&t?Be.getInstance().render(t,e):t?Be.getInstance().render(t):void 0},mo=function(t,e,n){return void 0!==n&&t?Be.getInstance().renderForParent(t,e,n):t?Be.getInstance().renderForParent(t,e):void 0},go=function(t,e){return Be.getInstance().emitEvent(t,e||function(){})},vo=function(t,e,n,r,i){return Be.getInstance().log(t,e,n,r,i)};export{Be as Go,uo as GoAnimation,Dn as Tool,po as createComponent,mo as createComponentForParent,go as emitEvent,ue as fxhr,Gt as getData,fo as getDataForRelease,vo as log,oe as refreshData,ho as run,Ee as store};
|
|
37
|
+
var ps,ms,gs,vs,ys,bs,_s,ws,Ds={},Ts=180/Math.PI,Ss=Math.PI/180,xs=Math.atan2,Es=/([A-Z])/g,Ms=/(left|right|width|margin|padding|x)/i,Os=/[\s,\(]\S/,ks={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Cs=function(t,e){return e.set(e.t,e.p,Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)},As=function(t,e){return e.set(e.t,e.p,1===t?e.e:Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)},Ps=function(t,e){return e.set(e.t,e.p,t?Math.round(1e4*(e.s+e.c*t))/1e4+e.u:e.b,e)},Rs=function(t,e){var n=e.s+e.c*t;e.set(e.t,e.p,~~(n+(n<0?-.5:.5))+e.u,e)},Ns=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},Is=function(t,e){return e.set(e.t,e.p,1!==t?e.b:e.e,e)},Vs=function(t,e,n){return t.style[e]=n},Bs=function(t,e,n){return t.style.setProperty(e,n)},Ys=function(t,e,n){return t._gsap[e]=n},Ls=function(t,e,n){return t._gsap.scaleX=t._gsap.scaleY=n},Fs=function(t,e,n,r,i){var a=t._gsap;a.scaleX=a.scaleY=n,a.renderTransform(i,a)},js=function(t,e,n,r,i){var a=t._gsap;a[e]=n,a.renderTransform(i,a)},Us="transform",Hs=Us+"Origin",zs=function(t,e){var n=this,r=this.target,i=r.style;if(t in Ds){if(this.tfm=this.tfm||{},"transform"!==t&&(~(t=ks[t]||t).indexOf(",")?t.split(",").forEach((function(t){return n.tfm[t]=uo(r,t)})):this.tfm[t]=r._gsap.x?r._gsap[t]:uo(r,t)),this.props.indexOf(Us)>=0)return;r._gsap.svg&&(this.svgo=r.getAttribute("data-svg-origin"),this.props.push(Hs,e,"")),t=Us}(i||e)&&this.props.push(t,e,i[t])},qs=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},Gs=function(){var t,e,n=this.props,r=this.target,i=r.style,a=r._gsap;for(t=0;t<n.length;t+=3)n[t+1]?r[n[t]]=n[t+2]:n[t+2]?i[n[t]]=n[t+2]:i.removeProperty(n[t].replace(Es,"-$1").toLowerCase());if(this.tfm){for(e in this.tfm)a[e]=this.tfm[e];a.svg&&(a.renderTransform(),r.setAttribute("data-svg-origin",this.svgo||"")),!(t=_s())||t.isStart||i[Us]||(qs(i),a.uncache=1)}},Ws=function(t,e){var n={target:t,props:[],revert:Gs,save:zs};return e&&e.split(",").forEach((function(t){return n.save(t)})),n},Zs=function(t,e){var n=ms.createElementNS?ms.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):ms.createElement(t);return n.style?n:ms.createElement(t)},$s=function t(e,n,r){var i=getComputedStyle(e);return i[n]||i.getPropertyValue(n.replace(Es,"-$1").toLowerCase())||i.getPropertyValue(n)||!r&&t(e,Xs(n)||n,1)||""},Ks="O,Moz,ms,Ms,Webkit".split(","),Xs=function(t,e,n){var r=(e||ys).style,i=5;if(t in r&&!n)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);i--&&!(Ks[i]+t in r););return i<0?null:(3===i?"ms":i>=0?Ks[i]:"")+t},Qs=function(){"undefined"!=typeof window&&window.document&&(ps=window,ms=ps.document,gs=ms.documentElement,ys=Zs("div")||{style:{}},Zs("div"),Us=Xs(Us),Hs=Us+"Origin",ys.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",ws=!!Xs("perspective"),_s=ds.core.reverting,vs=1)},Js=function t(e){var n,r=Zs("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=this.parentNode,a=this.nextSibling,s=this.style.cssText;if(gs.appendChild(r),r.appendChild(this),this.style.display="block",e)try{n=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=t}catch(t){}else this._gsapBBox&&(n=this._gsapBBox());return i&&(a?i.insertBefore(this,a):i.appendChild(this)),gs.removeChild(r),this.style.cssText=s,n},to=function(t,e){for(var n=e.length;n--;)if(t.hasAttribute(e[n]))return t.getAttribute(e[n])},eo=function(t){var e;try{e=t.getBBox()}catch(n){e=Js.call(t,!0)}return e&&(e.width||e.height)||t.getBBox===Js||(e=Js.call(t,!0)),!e||e.width||e.x||e.y?e:{x:+to(t,["x","cx","x1"])||0,y:+to(t,["y","cy","y1"])||0,width:0,height:0}},no=function(t){return!(!t.getCTM||t.parentNode&&!t.ownerSVGElement||!eo(t))},ro=function(t,e){if(e){var n=t.style;e in Ds&&e!==Hs&&(e=Us),n.removeProperty?("ms"!==e.substr(0,2)&&"webkit"!==e.substr(0,6)||(e="-"+e),n.removeProperty(e.replace(Es,"-$1").toLowerCase())):n.removeAttribute(e)}},io=function(t,e,n,r,i,a){var s=new es(t._pt,e,n,0,1,a?Is:Ns);return t._pt=s,s.b=r,s.e=i,t._props.push(n),s},ao={deg:1,rad:1,turn:1},so={grid:1,flex:1},oo=function t(e,n,r,i){var a,s,o,u,c=parseFloat(r)||0,l=(r+"").trim().substr((c+"").length)||"px",h=ys.style,f=Ms.test(n),d="svg"===e.tagName.toLowerCase(),p=(d?"client":"offset")+(f?"Width":"Height"),m=100,g="px"===i,v="%"===i;return i===l||!c||ao[i]||ao[l]?c:("px"!==l&&!g&&(c=t(e,n,r,"px")),u=e.getCTM&&no(e),!v&&"%"!==l||!Ds[n]&&!~n.indexOf("adius")?(h[f?"width":"height"]=m+(g?l:i),s=~n.indexOf("adius")||"em"===i&&e.appendChild&&!d?e:e.parentNode,u&&(s=(e.ownerSVGElement||{}).parentNode),s&&s!==ms&&s.appendChild||(s=ms.body),(o=s._gsap)&&v&&o.width&&f&&o.time===ma.time&&!o.uncache?ai(c/o.width*m):((v||"%"===l)&&!so[$s(s,"display")]&&(h.position=$s(e,"position")),s===e&&(h.position="static"),s.appendChild(ys),a=ys[p],s.removeChild(ys),h.position="absolute",f&&v&&((o=ni(s)).time=ma.time,o.width=s[p]),ai(g?a*c/m:a&&c?m/a*c:0))):(a=u?e.getBBox()[f?"width":"height"]:e[p],ai(v?c/a*m:c/100*a)))},uo=function(t,e,n,r){var i;return vs||Qs(),e in ks&&"transform"!==e&&~(e=ks[e]).indexOf(",")&&(e=e.split(",")[0]),Ds[e]&&"transform"!==e?(i=_o(t,r),i="transformOrigin"!==e?i[e]:i.svg?i.origin:wo($s(t,Hs))+" "+i.zOrigin+"px"):(!(i=t.style[e])||"auto"===i||r||~(i+"").indexOf("calc("))&&(i=fo[e]&&fo[e](t,e,n)||$s(t,e)||ri(t,e)||("opacity"===e?1:0)),n&&!~(i+"").trim().indexOf(" ")?oo(t,e,i,n)+n:i},co=function(t,e,n,r){if(!n||"none"===n){var i=Xs(e,t,1),a=i&&$s(t,i,1);a&&a!==n?(e=i,n=a):"borderColor"===e&&(n=$s(t,"borderTopColor"))}var s,o,u,c,l,h,f,d,p,m,g,v=new es(this._pt,t.style,e,0,1,$a),y=0,b=0;if(v.b=n,v.e=r,n+="","auto"===(r+="")&&(t.style[e]=r,r=$s(t,e)||r,t.style[e]=n),pa(s=[n,r]),r=s[1],u=(n=s[0]).match(Pr)||[],(r.match(Pr)||[]).length){for(;o=Pr.exec(r);)f=o[0],p=r.substring(y,o.index),l?l=(l+1)%5:"rgba("!==p.substr(-5)&&"hsla("!==p.substr(-5)||(l=1),f!==(h=u[b++]||"")&&(c=parseFloat(h)||0,g=h.substr((c+"").length),"="===f.charAt(1)&&(f=oi(c,f)+g),d=parseFloat(f),m=f.substr((d+"").length),y=Pr.lastIndex-m.length,m||(m=m||fr.units[e]||g,y===r.length&&(r+=m,v.e+=m)),g!==m&&(c=oo(t,e,h,m)||0),v._pt={_next:v._pt,p:p||1===b?p:",",s:c,c:d-c,m:l&&l<4||"zIndex"===e?Math.round:0});v.c=y<r.length?r.substring(y,r.length):""}else v.r="display"===e&&"none"===r?Is:Ns;return Nr.test(r)&&(v.e=0),this._pt=v,v},lo={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},ho=function(t,e){if(e.tween&&e.tween._time===e.tween._dur){var n,r,i,a=e.t,s=a.style,o=e.u,u=a._gsap;if("all"===o||!0===o)s.cssText="",r=1;else for(i=(o=o.split(",")).length;--i>-1;)n=o[i],Ds[n]&&(r=1,n="transformOrigin"===n?Hs:Us),ro(a,n);r&&(ro(a,Us),u&&(u.svg&&a.removeAttribute("transform"),_o(a,1),u.uncache=1,qs(s)))}},fo={clearProps:function(t,e,n,r,i){if("isFromStart"!==i.data){var a=t._pt=new es(t._pt,e,n,0,0,ho);return a.u=r,a.pr=-10,a.tween=i,t._props.push(n),1}}},po=[1,0,0,1,0,0],mo={},go=function(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t},vo=function(t){var e=$s(t,Us);return go(e)?po:e.substr(7).match(Ar).map(ai)},yo=function(t,e){var n,r,i,a,s=t._gsap||ni(t),o=t.style,u=vo(t);return s.svg&&t.getAttribute("transform")?"1,0,0,1,0,0"===(u=[(i=t.transform.baseVal.consolidate().matrix).a,i.b,i.c,i.d,i.e,i.f]).join(",")?po:u:(u!==po||t.offsetParent||t===gs||s.svg||(i=o.display,o.display="block",(n=t.parentNode)&&t.offsetParent||(a=1,r=t.nextElementSibling,gs.appendChild(t)),u=vo(t),i?o.display=i:ro(t,"display"),a&&(r?n.insertBefore(t,r):n?n.appendChild(t):gs.removeChild(t))),e&&u.length>6?[u[0],u[1],u[4],u[5],u[12],u[13]]:u)},bo=function(t,e,n,r,i,a){var s,o,u,c=t._gsap,l=i||yo(t,!0),h=c.xOrigin||0,f=c.yOrigin||0,d=c.xOffset||0,p=c.yOffset||0,m=l[0],g=l[1],v=l[2],y=l[3],b=l[4],_=l[5],w=e.split(" "),D=parseFloat(w[0])||0,T=parseFloat(w[1])||0;n?l!==po&&(o=m*y-g*v)&&(u=D*(-g/o)+T*(m/o)-(m*_-g*b)/o,D=D*(y/o)+T*(-v/o)+(v*_-y*b)/o,T=u):(D=(s=eo(t)).x+(~w[0].indexOf("%")?D/100*s.width:D),T=s.y+(~(w[1]||w[0]).indexOf("%")?T/100*s.height:T)),r||!1!==r&&c.smooth?(b=D-h,_=T-f,c.xOffset=d+(b*m+_*v)-b,c.yOffset=p+(b*g+_*y)-_):c.xOffset=c.yOffset=0,c.xOrigin=D,c.yOrigin=T,c.smooth=!!r,c.origin=e,c.originIsAbsolute=!!n,t.style[Hs]="0px 0px",a&&(io(a,c,"xOrigin",h,D),io(a,c,"yOrigin",f,T),io(a,c,"xOffset",d,c.xOffset),io(a,c,"yOffset",p,c.yOffset)),t.setAttribute("data-svg-origin",D+" "+T)},_o=function(t,e){var n=t._gsap||new Oa(t);if("x"in n&&!e&&!n.uncache)return n;var r,i,a,s,o,u,c,l,h,f,d,p,m,g,v,y,b,_,w,D,T,S,x,E,M,O,k,C,A,P,R,N,I=t.style,V=n.scaleX<0,B="px",Y="deg",L=getComputedStyle(t),F=$s(t,Hs)||"0";return r=i=a=u=c=l=h=f=d=0,s=o=1,n.svg=!(!t.getCTM||!no(t)),L.translate&&("none"===L.translate&&"none"===L.scale&&"none"===L.rotate||(I[Us]=("none"!==L.translate?"translate3d("+(L.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+("none"!==L.rotate?"rotate("+L.rotate+") ":"")+("none"!==L.scale?"scale("+L.scale.split(" ").join(",")+") ":"")+("none"!==L[Us]?L[Us]:"")),I.scale=I.rotate=I.translate="none"),g=yo(t,n.svg),n.svg&&(n.uncache?(M=t.getBBox(),F=n.xOrigin-M.x+"px "+(n.yOrigin-M.y)+"px",E=""):E=!e&&t.getAttribute("data-svg-origin"),bo(t,E||F,!!E||n.originIsAbsolute,!1!==n.smooth,g)),p=n.xOrigin||0,m=n.yOrigin||0,g!==po&&(_=g[0],w=g[1],D=g[2],T=g[3],r=S=g[4],i=x=g[5],6===g.length?(s=Math.sqrt(_*_+w*w),o=Math.sqrt(T*T+D*D),u=_||w?xs(w,_)*Ts:0,(h=D||T?xs(D,T)*Ts+u:0)&&(o*=Math.abs(Math.cos(h*Ss))),n.svg&&(r-=p-(p*_+m*D),i-=m-(p*w+m*T))):(N=g[6],P=g[7],k=g[8],C=g[9],A=g[10],R=g[11],r=g[12],i=g[13],a=g[14],c=(v=xs(N,A))*Ts,v&&(E=S*(y=Math.cos(-v))+k*(b=Math.sin(-v)),M=x*y+C*b,O=N*y+A*b,k=S*-b+k*y,C=x*-b+C*y,A=N*-b+A*y,R=P*-b+R*y,S=E,x=M,N=O),l=(v=xs(-D,A))*Ts,v&&(y=Math.cos(-v),R=T*(b=Math.sin(-v))+R*y,_=E=_*y-k*b,w=M=w*y-C*b,D=O=D*y-A*b),u=(v=xs(w,_))*Ts,v&&(E=_*(y=Math.cos(v))+w*(b=Math.sin(v)),M=S*y+x*b,w=w*y-_*b,x=x*y-S*b,_=E,S=M),c&&Math.abs(c)+Math.abs(u)>359.9&&(c=u=0,l=180-l),s=ai(Math.sqrt(_*_+w*w+D*D)),o=ai(Math.sqrt(x*x+N*N)),v=xs(S,x),h=Math.abs(v)>2e-4?v*Ts:0,d=R?1/(R<0?-R:R):0),n.svg&&(E=t.getAttribute("transform"),n.forceCSS=t.setAttribute("transform","")||!go($s(t,Us)),E&&t.setAttribute("transform",E))),Math.abs(h)>90&&Math.abs(h)<270&&(V?(s*=-1,h+=u<=0?180:-180,u+=u<=0?180:-180):(o*=-1,h+=h<=0?180:-180)),e=e||n.uncache,n.x=r-((n.xPercent=r&&(!e&&n.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-r)?-50:0)))?t.offsetWidth*n.xPercent/100:0)+B,n.y=i-((n.yPercent=i&&(!e&&n.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-i)?-50:0)))?t.offsetHeight*n.yPercent/100:0)+B,n.z=a+B,n.scaleX=ai(s),n.scaleY=ai(o),n.rotation=ai(u)+Y,n.rotationX=ai(c)+Y,n.rotationY=ai(l)+Y,n.skewX=h+Y,n.skewY=f+Y,n.transformPerspective=d+B,(n.zOrigin=parseFloat(F.split(" ")[2])||0)&&(I[Hs]=wo(F)),n.xOffset=n.yOffset=0,n.force3D=fr.force3D,n.renderTransform=n.svg?xo:ws?So:To,n.uncache=0,n},wo=function(t){return(t=t.split(" "))[0]+" "+t[1]},Do=function(t,e,n){var r=Hi(e);return ai(parseFloat(e)+parseFloat(oo(t,"x",n+"px",r)))+r},To=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,So(t,e)},So=function(t,e){var n=e||this,r=n.xPercent,i=n.yPercent,a=n.x,s=n.y,o=n.z,u=n.rotation,c=n.rotationY,l=n.rotationX,h=n.skewX,f=n.skewY,d=n.scaleX,p=n.scaleY,m=n.transformPerspective,g=n.force3D,v=n.target,y=n.zOrigin,b="",_="auto"===g&&t&&1!==t||!0===g;if(y&&("0deg"!==l||"0deg"!==c)){var w,D=parseFloat(c)*Ss,T=Math.sin(D),S=Math.cos(D);D=parseFloat(l)*Ss,w=Math.cos(D),a=Do(v,a,T*w*-y),s=Do(v,s,-Math.sin(D)*-y),o=Do(v,o,S*w*-y+y)}"0px"!==m&&(b+="perspective("+m+") "),(r||i)&&(b+="translate("+r+"%, "+i+"%) "),(_||"0px"!==a||"0px"!==s||"0px"!==o)&&(b+="0px"!==o||_?"translate3d("+a+", "+s+", "+o+") ":"translate("+a+", "+s+") "),"0deg"!==u&&(b+="rotate("+u+") "),"0deg"!==c&&(b+="rotateY("+c+") "),"0deg"!==l&&(b+="rotateX("+l+") "),"0deg"===h&&"0deg"===f||(b+="skew("+h+", "+f+") "),1===d&&1===p||(b+="scale("+d+", "+p+") "),v.style[Us]=b||"translate(0, 0)"},xo=function(t,e){var n,r,i,a,s,o=e||this,u=o.xPercent,c=o.yPercent,l=o.x,h=o.y,f=o.rotation,d=o.skewX,p=o.skewY,m=o.scaleX,g=o.scaleY,v=o.target,y=o.xOrigin,b=o.yOrigin,_=o.xOffset,w=o.yOffset,D=o.forceCSS,T=parseFloat(l),S=parseFloat(h);f=parseFloat(f),d=parseFloat(d),(p=parseFloat(p))&&(d+=p=parseFloat(p),f+=p),f||d?(f*=Ss,d*=Ss,n=Math.cos(f)*m,r=Math.sin(f)*m,i=Math.sin(f-d)*-g,a=Math.cos(f-d)*g,d&&(p*=Ss,s=Math.tan(d-p),i*=s=Math.sqrt(1+s*s),a*=s,p&&(s=Math.tan(p),n*=s=Math.sqrt(1+s*s),r*=s)),n=ai(n),r=ai(r),i=ai(i),a=ai(a)):(n=m,a=g,r=i=0),(T&&!~(l+"").indexOf("px")||S&&!~(h+"").indexOf("px"))&&(T=oo(v,"x",l,"px"),S=oo(v,"y",h,"px")),(y||b||_||w)&&(T=ai(T+y-(y*n+b*i)+_),S=ai(S+b-(y*r+b*a)+w)),(u||c)&&(s=v.getBBox(),T=ai(T+u/100*s.width),S=ai(S+c/100*s.height)),s="matrix("+n+","+r+","+i+","+a+","+T+","+S+")",v.setAttribute("transform",s),D&&(v.style[Us]=s)},Eo=function(t,e,n,r,i){var a,s,o=360,u=_r(i),c=parseFloat(i)*(u&&~i.indexOf("rad")?Ts:1)-r,l=r+c+"deg";return u&&("short"===(a=i.split("_")[1])&&(c%=o)!==c%180&&(c+=c<0?o:-360),"cw"===a&&c<0?c=(c+36e9)%o-~~(c/o)*o:"ccw"===a&&c>0&&(c=(c-36e9)%o-~~(c/o)*o)),t._pt=s=new es(t._pt,e,n,r,c,As),s.e=l,s.u="deg",t._props.push(n),s},Mo=function(t,e){for(var n in e)t[n]=e[n];return t},Oo=function(t,e,n){var r,i,a,s,o,u,c,l=Mo({},n._gsap),h=n.style;for(i in l.svg?(a=n.getAttribute("transform"),n.setAttribute("transform",""),h[Us]=e,r=_o(n,1),ro(n,Us),n.setAttribute("transform",a)):(a=getComputedStyle(n)[Us],h[Us]=e,r=_o(n,1),h[Us]=a),Ds)(a=l[i])!==(s=r[i])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(i)<0&&(o=Hi(a)!==(c=Hi(s))?oo(n,i,a,c):parseFloat(a),u=parseFloat(s),t._pt=new es(t._pt,r,i,o,u-o,Cs),t._pt.u=c||0,t._props.push(i));Mo(r,l)};ii("padding,margin,Width,Radius",(function(t,e){var n="Top",r="Right",i="Bottom",a="Left",s=(e<3?[n,r,i,a]:[n+a,n+r,i+r,i+a]).map((function(n){return e<2?t+n:"border"+n+t}));fo[e>1?"border"+t:t]=function(t,e,n,r,i){var a,o;if(arguments.length<4)return a=s.map((function(e){return uo(t,e,n)})),5===(o=a.join(" ")).split(a[0]).length?a[0]:o;a=(r+"").split(" "),o={},s.forEach((function(t,e){return o[t]=a[e]=a[e]||a[(e-1)/2|0]})),t.init(e,o,i)}}));var ko,Co,Ao,Po={name:"css",register:Qs,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,n,r,i){var a,s,o,u,c,l,h,f,d,p,m,g,v,y,b,_,w,D,T,S,x=this._props,E=t.style,M=n.vars.startAt;for(h in vs||Qs(),this.styles=this.styles||Ws(t),_=this.styles.props,this.tween=n,e)if("autoRound"!==h&&(s=e[h],!Kr[h]||!Ia(h,e,n,r,t,i)))if(c=typeof s,l=fo[h],"function"===c&&(c=typeof(s=s.call(n,r,t,i))),"string"===c&&~s.indexOf("random(")&&(s=ea(s)),l)l(this,t,h,s,n)&&(b=1);else if("--"===h.substr(0,2))a=(getComputedStyle(t).getPropertyValue(h)+"").trim(),s+="",fa.lastIndex=0,fa.test(a)||(f=Hi(a),d=Hi(s)),d?f!==d&&(a=oo(t,h,a,d)+d):f&&(s+=f),this.add(E,"setProperty",a,s,r,i,0,0,h),x.push(h),_.push(h,0,E[h]);else if("undefined"!==c){if(M&&h in M?(a="function"==typeof M[h]?M[h].call(n,r,t,i):M[h],_r(a)&&~a.indexOf("random(")&&(a=ea(a)),Hi(a+"")||(a+=fr.units[h]||Hi(uo(t,h))||""),"="===(a+"").charAt(1)&&(a=uo(t,h))):a=uo(t,h),u=parseFloat(a),(p="string"===c&&"="===s.charAt(1)&&s.substr(0,2))&&(s=s.substr(2)),o=parseFloat(s),h in ks&&("autoAlpha"===h&&(1===u&&"hidden"===uo(t,"visibility")&&o&&(u=0),_.push("visibility",0,E.visibility),io(this,E,"visibility",u?"inherit":"hidden",o?"inherit":"hidden",!o)),"scale"!==h&&"transform"!==h&&~(h=ks[h]).indexOf(",")&&(h=h.split(",")[0])),m=h in Ds)if(this.styles.save(h),g||((v=t._gsap).renderTransform&&!e.parseTransform||_o(t,e.parseTransform),y=!1!==e.smoothOrigin&&v.smooth,(g=this._pt=new es(this._pt,E,Us,0,1,v.renderTransform,v,0,-1)).dep=1),"scale"===h)this._pt=new es(this._pt,v,"scaleY",u,(p?oi(u,p+o):o)-u||0,Cs),this._pt.u=0,x.push("scaleY",h),h+="X";else{if("transformOrigin"===h){_.push(Hs,0,E[Hs]),D=void 0,T=void 0,S=void 0,D=(w=s).split(" "),T=D[0],S=D[1]||"50%","top"!==T&&"bottom"!==T&&"left"!==S&&"right"!==S||(w=T,T=S,S=w),D[0]=lo[T]||T,D[1]=lo[S]||S,s=D.join(" "),v.svg?bo(t,s,0,y,0,this):((d=parseFloat(s.split(" ")[2])||0)!==v.zOrigin&&io(this,v,"zOrigin",v.zOrigin,d),io(this,E,h,wo(a),wo(s)));continue}if("svgOrigin"===h){bo(t,s,1,y,0,this);continue}if(h in mo){Eo(this,v,h,u,p?oi(u,p+s):s);continue}if("smoothOrigin"===h){io(this,v,"smooth",v.smooth,s);continue}if("force3D"===h){v[h]=s;continue}if("transform"===h){Oo(this,s,t);continue}}else h in E||(h=Xs(h)||h);if(m||(o||0===o)&&(u||0===u)&&!Os.test(s)&&h in E)o||(o=0),(f=(a+"").substr((u+"").length))!==(d=Hi(s)||(h in fr.units?fr.units[h]:f))&&(u=oo(t,h,a,d)),this._pt=new es(this._pt,m?v:E,h,u,(p?oi(u,p+o):o)-u,m||"px"!==d&&"zIndex"!==h||!1===e.autoRound?Cs:Rs),this._pt.u=d||0,f!==d&&"%"!==d&&(this._pt.b=a,this._pt.r=Ps);else if(h in E)co.call(this,t,h,a,p?p+s:s);else{if(!(h in t)){Fr(h,s);continue}this.add(t,h,a||t[h],p?p+s:s,r,i)}m||(h in E?_.push(h,0,E[h]):_.push(h,1,a||t[h])),x.push(h)}b&&ts(this)},render:function(t,e){if(e.tween._time||!_s())for(var n=e._pt;n;)n.r(t,n.d),n=n._next;else e.styles.revert()},get:uo,aliases:ks,getSetter:function(t,e,n){var r=ks[e];return r&&r.indexOf(",")<0&&(e=r),e in Ds&&e!==Hs&&(t._gsap.x||uo(t,"x"))?n&&bs===n?"scale"===e?Ls:Ys:(bs=n||{})&&("scale"===e?Fs:js):t.style&&!Tr(t.style[e])?Vs:~e.indexOf("-")?Bs:Ga(t,e)},core:{_removeProperty:ro,_getMatrix:yo}};ds.utils.checkPrefix=Xs,ds.core.getStyleSaver=Ws,Ao=ii((ko="x,y,z,scale,scaleX,scaleY,xPercent,yPercent")+","+(Co="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",(function(t){Ds[t]=1})),ii(Co,(function(t){fr.units[t]="deg",mo[t]=1})),ks[Ao[13]]=ko+","+Co,ii("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",(function(t){var e=t.split(":");ks[e[1]]=Ao[e[0]]})),ii("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",(function(t){fr.units[t]="px"})),ds.registerPlugin(Po);var Ro=ds.registerPlugin(Po)||ds;Ro.core.Tween;var No=function(){function e(){this.startPoisiton={x:0,y:0},this.endPoisiton={x:1920,y:0},this.curtain={width:1920,height:1080},this.totalTime=5,this.timeLine=Ro.timeline()}return e.getInstance=function(){return this.instance||(this.instance=new e),this.instance},e.prototype.init=function(t,e){var n;null===(n=this.timeLine)||void 0===n||n.clear();var r=e.curtain,i=e.totalTime,a=e.admissionMode;i&&(this.totalTime=i),this.setEndPoisiton(r);var s=this.filterData(t,a);this.goAnimationParams=e;for(var o=0;o<s.length;o++){var u=s[o];if(u instanceof Array)for(var c=0;c<u.length;c++){var l=this.totalTime/u.length,h=u[c],f=this._creatTl("#wrap"+h.cid);this._add(f,c*l)}else{l=this.totalTime/s.length,f=this._creatTl("#wrap"+u.cid);this._add(f,o*l)}}return this.timeLine},e.prototype.filterData=function(e,n){var r;if("left"==n)r=t.orderBy(e,["baseData.left"],["asc"]);else if("top"==n)r=t.orderBy(e,["baseData.top"],["asc"]);else if("topLeft"==n){var i=this.setSpacing(e,"left");r=t.orderBy(i,["spacing"],["asc"])}else if("topRight"==n){var a=this.setSpacing(e,"right");r=t.orderBy(a,["spacing"],["asc"])}else if("center"==n){var s=this.splitArrayForCenter(e,"left");r=[t.orderBy(s.true,["center.x"],["asc"]),t.orderBy(s.false,["center.x"],["desc"])]}else if("spaceBetween"==n){s=this.splitArrayForCenter(e,"left");r=[t.orderBy(s.true,["center.x"],["desc"]),t.orderBy(s.false,["center.x"],["asc"])]}else r=t.orderBy(e,["baseData.left"],["asc"]);return r},e.prototype.getSpacing=function(t,e){var n=t.x,r=t.y,i=e.x,a=e.y,s=Math.abs(n-i),o=Math.abs(r-a);return Math.sqrt(s*s+o*o)},e.prototype.creatPosition=function(t,e){var n=0,r=0;return t?("left"===e?(n=t.left,r=t.top):"right"===e&&(n=t.left+t.width,r=t.top),{x:n,y:r}):{x:n,y:r}},e.prototype.setEndPoisiton=function(t){if(t){var e=t.width,n=t.height;this.curtain=t,this.endPoisiton.x=e,this.endPoisiton.y=n}},e.prototype.setSpacing=function(t,e){var n,r=this;return"left"===e?n=this.startPoisiton:"right"===e&&(n=this.endPoisiton),t.forEach((function(t){var i=t.baseData;if(i){var a=r.creatPosition(i,e),s=r.getSpacing(a,n);t.spacing=s}})),t},e.prototype.setCenter=function(t){return t.forEach((function(t){if(t.baseData){var e=t.baseData.left+t.baseData.width/2,n=t.baseData.top+t.baseData.height/2;t.center={x:e,y:n}}})),t},e.prototype.splitArrayForCenter=function(e,n){var r,i=this,a=this.setCenter(e);return"left"!=n&&"right"!=n||(r=t.groupBy(a,(function(t){return t.center.x>=i.curtain.width/2}))),"top"!=n&&"bottom"!=n||(r=t.groupBy(a,(function(t){return t.center.y>=i.curtain.height/2}))),console.log(r,"newList"),r},e.prototype._add=function(t,e){this.timeLine.add(t,e)},e.prototype._creatTl=function(t){var e=Ro.timeline();return e.add(this._creatTw(t)),e},e.prototype._creatTw=function(t){var e=this.goAnimationParams.params,n=e.delay,r=e.duration,i=e.repeat,a=e.type,s=e.value;return s&&s.length&&s.forEach((function(t){t.delay=n||0,t.repeat=i||0})),Ro[a](t,r,s[0],s[1])},e.prototype.in=function(){},e.prototype.out=function(){},e}(),Io=No.getInstance();var Vo=function(){function t(t){this.root=null,this.vuex=ln.getInstance().VueServer,this.eventType=new Map,(null==t?void 0:t.root)&&(this.root=t.root);var e={setGlobalVar:this.setGlobalVar.bind(this),showComponent:this._showComponent.bind(this),hideComponent:this._hideComponent.bind(this),pageChange:this.pageChange.bind(this),changeDynamicState:this.changeDynamicState.bind(this)};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&this.eventType.set(n,[e[n]])}return t.prototype.findComponentDownward=function(t,e){var n=t.$children;if(n.length)for(var r=0,i=n;r<i.length;r++){var a=i[r];a.$options&&a.$options.propsData&&a.$options.propsData.cid&&(e[a.$options.propsData.cid]=a),a.$children&&a.$children.length&&this.findComponentDownward(a,e)}return e},t.prototype.getAllComponents=function(){var t={};return this.findComponentDownward(this.root,t),t},t.prototype.getComponentByCid=function(t){try{var e=this.getAllComponents()[t];if(!e)throw new Error("The instance was not found");return e}catch(t){console.warn(t)}},t.prototype.getElementByCid=function(t){try{if(!t)throw new Error("Please input the parameters correctly");var e=this.getComponentByCid(t);if(!e)throw new Error("The element was not found");return e.$el}catch(t){console.warn(t)}},t.prototype.setGlobalVar=function(t){try{var e=t.key,n=t.value;if(!(t&&e&&n))throw new Error("An error occurred. Please check whether the incoming parameters are correct! The correct format of data is an object containing key and value");this.setVars(t)}catch(t){console.warn(t)}},t.prototype._showComponent=function(t){try{if(!t)throw new Error("Please input the parameters correctly");this.changeVis({cid:t,flag:!0})}catch(t){console.warn(t)}},t.prototype._hideComponent=function(t){try{if(!t)throw new Error("Please input the parameters correctly");this.changeVis({cid:t,flag:!1})}catch(t){console.warn(t)}},t.prototype.getList=function(t){return t&&"id"===t?this.vuex.callState("list").map((function(t){return t.cid})):this.vuex.callState("list")},t.prototype.getTheme=function(t){var e=this.vuex.callState("theme");return t&&t(e),e},t.prototype.getElement=function(t){var e=function(t,e,n){for(var r,i=function(i){var a=t[i];if(a.cid===e)return r=a,n&&t.splice(i,1),{value:r};if(a.children&&a.children.length){for(var s=0;s<a.children.length;s++)if(a.children[s].cid===e)return r=a.children[s],n&&a.children.splice(s,1),{value:r}}else if(a.stateChildren&&a.stateChildren.length){for(s=0;s<a.stateChildren.length;s++)if(a.stateChildren[s].cid===e)return r=a.stateChildren[s],n&&a.stateChildren.splice(s,1),{value:r}}else if(a.dynamicChildren){var o=void 0;if(a.dynamicChildren instanceof Map?o=a.dynamicChildren.get(a.activeDynamic):a.dynamicChildren instanceof Array&&(o=a.dynamicChildren.find((function(t){return t[0]==a.activeDynamic}))[1]),o)for(s=0;s<o.length;s++)if(o[s].cid===e)return r=o[s],n&&o.splice(s,1),{value:r}}},a=0;a<t.length;a++){var s=i(a);if("object"==typeof s)return s.value}return!!r}(this.vuex.callState("list"),t);return e},t.prototype.changeVis=function(t){return this.vuex.callMutation("changeShow",t)},t.prototype.getPageInfo=function(t){var e=this.vuex.callState("caseInfo");return t&&t(e),(null==e?void 0:e.details)?e.details.map((function(t){return{name:t.caseDetailName,path:t.caseDetailPath,id:t.id}})):e},t.prototype.changeDynamicState=function(t){return this.vuex.callMutation("changeDynamicState",t)},t.prototype.pageChange=function(t){return this.vuex.callMutation("setPageId",t)},t.prototype.getVars=function(t){var e=this.vuex.callState("globalVars");return t&&t(e),e},t.prototype.setVars=function(t){return this.vuex.callMutation("goEditVar",t)},t}(),Bo=function(t){function e(e){var n,i,a=t.call(this,e)||this,s=(n=(n=a.eventType)||new Map,r(r({},i),{EventType:n,on:function(t,e){var r=n.get(t);r?r.push(e):n.set(t,[e])},off:function(t,e){var r=n.get(t);r&&(e?r.splice(r.indexOf(e)>>>0,1):n.set(t,[]))},emit:function(t,e){var r=n.get(t);if(r){var i=r.slice().map((function(t){return t(e)}));if(i&&1==i.length)return i[0]}(r=n.get("*"))&&r.slice().map((function(n){n(t,e)}))}}));return a.$emit=s.emit,a.$on=s.on,a.$off=s.off,a}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}(e,t),Object.defineProperty(e.prototype,"Theme",{get:function(){return this.getTheme()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"Components",{get:function(){return this.getAllComponents()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"GlobalVars",{get:function(){return this.getVars()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"Pages",{get:function(){return this.getPageInfo()},enumerable:!1,configurable:!0}),e.prototype.getElementById=function(t){this.getElementByCid(t)},e.prototype.getComponentById=function(t){this.getComponentByCid(t)},e.prototype.getPage=function(){},e}(Vo),Yo=function(t){return new Bo(t)},Lo=function(t,e){return ye(t,"GET",null,e).then((function(t){var e=JSON.parse(t.data.caseData);return ln.getInstance().reversal(e),t}))},Fo=function(t,e){return e&&t?ln.getInstance().render(t,e):t?ln.getInstance().render(t):void 0},jo=function(t,e,n){return void 0!==n&&t?ln.getInstance().renderForParent(t,e,n):t?ln.getInstance().renderForParent(t,e):void 0},Uo=function(t,e){return ln.getInstance().emitEvent(t,e||function(){})},Ho=function(t,e,n,r,i){return ln.getInstance().log(t,e,n,r,i)};export{ln as Go,Io as GoAnimation,Zn as Tool,Fo as createComponent,jo as createComponentForParent,Uo as emitEvent,Ne as fxhr,ye as getData,Lo as getDataForRelease,Ho as log,Re as refreshData,Yo as run,Qe as store};
|
|
38
38
|
//# sourceMappingURL=code.es5.js.map
|