go-core 0.0.63 → 0.0.65
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/LICENSE +22 -22
- package/README.md +22 -22
- package/dist/code.es5.js +7 -7
- package/dist/code.umd.js +33 -33
- package/package.json +145 -146
package/dist/code.umd.js
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("lodash"),require("axios")):"function"==typeof define&&define.amd?define(["exports","lodash","axios"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).code={},t._,t.axios)}(this,(function(t,e,n){"use strict";function r(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var i=r(e),a=r(n),s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function o(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function u(t,e){return t(e={exports:{}},e.exports),e.exports}var l=u((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 u(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function l(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(u(t,e))return!1;return!0}function c(t){return void 0===t}function h(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function f(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function d(t,e){var n,r=[],i=t.length;for(n=0;n<i;++n)r.push(e(t[n],n));return r}function p(t,e){for(var n in e)u(e,n)&&(t[n]=e[n]);return u(e,"toString")&&(t.toString=e.toString),u(e,"valueOf")&&(t.valueOf=e.valueOf),t}function m(t,e,n,r){return Kn(t,e,n,r,!0).utc()}function g(){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 v(t){return null==t._pf&&(t._pf=g()),t._pf}function y(t){if(null==t._isValid){var e=v(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 b(t){var e=m(NaN);return null!=t?p(v(e),t):v(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=[],w=!1;function D(t,e){var n,r,i,a=_.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=v(e)),c(e._locale)||(t._locale=e._locale),a>0)for(n=0;n<a;n++)c(i=e[r=_[n]])||(t[r]=i);return t}function S(t){D(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===w&&(w=!0,r.updateOffset(this),w=!1)}function T(t){return t instanceof S||null!=t&&null!=t._isAMomentObject}function x(t){!1===r.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function E(t,e){var n=!0;return p((function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,t),n){var i,a,s,o=[],l=arguments.length;for(a=0;a<l;a++){if(i="","object"==typeof arguments[a]){for(s in i+="\n["+a+"] ",arguments[0])u(arguments[0],s)&&(i+=s+": "+arguments[0][s]+", ");i=i.slice(0,-2)}else i=arguments[a];o.push(i)}x(t+"\nArguments: "+Array.prototype.slice.call(o).join("")+"\n"+(new Error).stack),n=!1}return e.apply(this,arguments)}),e)}var M,O={};function k(t,e){null!=r.deprecationHandler&&r.deprecationHandler(t,e),O[t]||(x(e),O[t]=!0)}function C(t){return"undefined"!=typeof Function&&t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function A(t){var e,n;for(n in t)u(t,n)&&(C(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 P(t,e){var n,r=p({},t);for(n in e)u(e,n)&&(s(t[n])&&s(e[n])?(r[n]={},p(r[n],t[n]),p(r[n],e[n])):null!=e[n]?r[n]=e[n]:delete r[n]);for(n in t)u(t,n)&&!u(e,n)&&s(t[n])&&(r[n]=p({},r[n]));return r}function R(t){null!=t&&this.set(t)}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,M=Object.keys?Object.keys:function(t){var e,n=[];for(e in t)u(t,e)&&n.push(e);return n};var N={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function I(t,e,n){var r=this._calendar[t]||this._calendar.sameElse;return C(r)?r.call(e,n):r}function V(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 B=/(\[[^\[]*\])|(\\)?([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,Y=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,L={},F={};function j(t,e,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),t&&(F[t]=i),e&&(F[e[0]]=function(){return V(i.apply(this,arguments),e[1],e[2])}),n&&(F[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),t)})}function U(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function H(t){var e,n,r=t.match(B);for(e=0,n=r.length;e<n;e++)F[r[e]]?r[e]=F[r[e]]:r[e]=U(r[e]);return function(e){var i,a="";for(i=0;i<n;i++)a+=C(r[i])?r[i].call(e,t):r[i];return a}}function z(t,e){return t.isValid()?(e=q(e,t.localeData()),L[e]=L[e]||H(e),L[e](t)):t.localeData().invalidDate()}function q(t,e){var n=5;function r(t){return e.longDateFormat(t)||t}for(Y.lastIndex=0;n>=0&&Y.test(t);)t=t.replace(Y,r),Y.lastIndex=0,n-=1;return t}var G={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 W(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.match(B).map((function(t){return"MMMM"===t||"MM"===t||"DD"===t||"dddd"===t?t.slice(1):t})).join(""),this._longDateFormat[t])}var Z="Invalid date";function K(){return this._invalidDate}var $="%d",X=/\d{1,2}/;function J(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 tt(t,e,n,r){var i=this._relativeTime[n];return C(i)?i(t,e,n,r):i.replace(/%d/i,t)}function et(t,e){var n=this._relativeTime[t>0?"future":"past"];return C(n)?n(e):n.replace(/%s/i,e)}var nt={};function rt(t,e){var n=t.toLowerCase();nt[n]=nt[n+"s"]=nt[e]=t}function it(t){return"string"==typeof t?nt[t]||nt[t.toLowerCase()]:void 0}function at(t){var e,n,r={};for(n in t)u(t,n)&&(e=it(n))&&(r[e]=t[n]);return r}var st={};function ot(t,e){st[t]=e}function ut(t){var e,n=[];for(e in t)u(t,e)&&n.push({unit:e,priority:st[e]});return n.sort((function(t,e){return t.priority-e.priority})),n}function lt(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 ht(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=ct(e)),n}function ft(t,e){return function(n){return null!=n?(pt(this,t,n),r.updateOffset(this,e),this):dt(this,t)}}function dt(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function pt(t,e,n){t.isValid()&&!isNaN(n)&&("FullYear"===e&<(t.year())&&1===t.month()&&29===t.date()?(n=ht(n),t._d["set"+(t._isUTC?"UTC":"")+e](n,t.month(),te(n,t.month()))):t._d["set"+(t._isUTC?"UTC":"")+e](n))}function mt(t){return C(this[t=it(t)])?this[t]():this}function gt(t,e){if("object"==typeof t){var n,r=ut(t=at(t)),i=r.length;for(n=0;n<i;n++)this[r[n].unit](t[r[n].unit])}else if(C(this[t=it(t)]))return this[t](e);return this}var vt,yt=/\d/,bt=/\d\d/,_t=/\d{3}/,wt=/\d{4}/,Dt=/[+-]?\d{6}/,St=/\d\d?/,Tt=/\d\d\d\d?/,xt=/\d\d\d\d\d\d?/,Et=/\d{1,3}/,Mt=/\d{1,4}/,Ot=/[+-]?\d{1,6}/,kt=/\d+/,Ct=/[+-]?\d+/,At=/Z|[+-]\d\d:?\d\d/gi,Pt=/Z|[+-]\d\d(?::?\d\d)?/gi,Rt=/[+-]?\d+(\.\d{1,3})?/,Nt=/[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 It(t,e,n){vt[t]=C(e)?e:function(t,r){return t&&n?n:e}}function Vt(t,e){return u(vt,t)?vt[t](e._strict,e._locale):new RegExp(Bt(t))}function Bt(t){return Yt(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,e,n,r,i){return e||n||r||i})))}function Yt(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}vt={};var Lt={};function Ft(t,e){var n,r,i=e;for("string"==typeof t&&(t=[t]),h(e)&&(i=function(t,n){n[e]=ht(t)}),r=t.length,n=0;n<r;n++)Lt[t[n]]=i}function jt(t,e){Ft(t,(function(t,n,r,i){r._w=r._w||{},e(t,r._w,r,i)}))}function Ut(t,e,n){null!=e&&u(Lt,t)&&Lt[t](e,n._a,n,t)}var Ht,zt=0,qt=1,Gt=2,Wt=3,Zt=4,Kt=5,$t=6,Xt=7,Jt=8;function Qt(t,e){return(t%e+e)%e}function te(t,e){if(isNaN(t)||isNaN(e))return NaN;var n=Qt(e,12);return t+=(e-n)/12,1===n?lt(t)?29:28:31-n%7%2}Ht=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},j("M",["MM",2],"Mo",(function(){return this.month()+1})),j("MMM",0,0,(function(t){return this.localeData().monthsShort(this,t)})),j("MMMM",0,0,(function(t){return this.localeData().months(this,t)})),rt("month","M"),ot("month",8),It("M",St),It("MM",St,bt),It("MMM",(function(t,e){return e.monthsShortRegex(t)})),It("MMMM",(function(t,e){return e.monthsRegex(t)})),Ft(["M","MM"],(function(t,e){e[qt]=ht(t)-1})),Ft(["MMM","MMMM"],(function(t,e,n,r){var i=n._locale.monthsParse(t,r,n._strict);null!=i?e[qt]=i:v(n).invalidMonth=t}));var ee="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ne="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),re=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,ie=Nt,ae=Nt;function se(t,e){return t?a(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||re).test(e)?"format":"standalone"][t.month()]:a(this._months)?this._months:this._months.standalone}function oe(t,e){return t?a(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[re.test(e)?"format":"standalone"][t.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function ue(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=m([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(a,"").toLocaleLowerCase();return n?"MMM"===e?-1!==(i=Ht.call(this._shortMonthsParse,s))?i:null:-1!==(i=Ht.call(this._longMonthsParse,s))?i:null:"MMM"===e?-1!==(i=Ht.call(this._shortMonthsParse,s))||-1!==(i=Ht.call(this._longMonthsParse,s))?i:null:-1!==(i=Ht.call(this._longMonthsParse,s))||-1!==(i=Ht.call(this._shortMonthsParse,s))?i:null}function le(t,e,n){var r,i,a;if(this._monthsParseExact)return ue.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=m([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=ht(e);else if(!h(e=t.localeData().monthsParse(e)))return t;return n=Math.min(t.date(),te(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n),t}function he(t){return null!=t?(ce(this,t),r.updateOffset(this,!0),this):dt(this,"Month")}function fe(){return te(this.year(),this.month())}function de(t){return this._monthsParseExact?(u(this,"_monthsRegex")||me.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(u(this,"_monthsShortRegex")||(this._monthsShortRegex=ie),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)}function pe(t){return this._monthsParseExact?(u(this,"_monthsRegex")||me.call(this),t?this._monthsStrictRegex:this._monthsRegex):(u(this,"_monthsRegex")||(this._monthsRegex=ae),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)}function me(){function t(t,e){return e.length-t.length}var e,n,r=[],i=[],a=[];for(e=0;e<12;e++)n=m([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]=Yt(r[e]),i[e]=Yt(i[e]);for(e=0;e<24;e++)a[e]=Yt(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 ge(t){return lt(t)?366:365}j("Y",0,0,(function(){var t=this.year();return t<=9999?V(t,4):"+"+t})),j(0,["YY",2],0,(function(){return this.year()%100})),j(0,["YYYY",4],0,"year"),j(0,["YYYYY",5],0,"year"),j(0,["YYYYYY",6,!0],0,"year"),rt("year","y"),ot("year",1),It("Y",Ct),It("YY",St,bt),It("YYYY",Mt,wt),It("YYYYY",Ot,Dt),It("YYYYYY",Ot,Dt),Ft(["YYYYY","YYYYYY"],zt),Ft("YYYY",(function(t,e){e[zt]=2===t.length?r.parseTwoDigitYear(t):ht(t)})),Ft("YY",(function(t,e){e[zt]=r.parseTwoDigitYear(t)})),Ft("Y",(function(t,e){e[zt]=parseInt(t,10)})),r.parseTwoDigitYear=function(t){return ht(t)+(ht(t)>68?1900:2e3)};var ve=ft("FullYear",!0);function ye(){return lt(this.year())}function be(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 we(t,e,n){var r=7+e-n;return-(7+_e(t,0,r).getUTCDay()-e)%7+r-1}function De(t,e,n,r,i){var a,s,o=1+7*(e-1)+(7+n-r)%7+we(t,r,i);return o<=0?s=ge(a=t-1)+o:o>ge(t)?(a=t+1,s=o-ge(t)):(a=t,s=o),{year:a,dayOfYear:s}}function Se(t,e,n){var r,i,a=we(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=we(t,e,n),i=we(t+1,e,n);return(ge(t)-r+i)/7}function xe(t){return Se(t,this._week.dow,this._week.doy).week}j("w",["ww",2],"wo","week"),j("W",["WW",2],"Wo","isoWeek"),rt("week","w"),rt("isoWeek","W"),ot("week",5),ot("isoWeek",5),It("w",St),It("ww",St,bt),It("W",St),It("WW",St,bt),jt(["w","ww","W","WW"],(function(t,e,n,r){e[r.substr(0,1)]=ht(t)}));var Ee={dow:0,doy:6};function Me(){return this._week.dow}function Oe(){return this._week.doy}function ke(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")}function Ce(t){var e=Se(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")}function Ae(t,e){return"string"!=typeof t?t:isNaN(t)?"number"==typeof(t=e.weekdaysParse(t))?t:null:parseInt(t,10)}function Pe(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}function Re(t,e){return t.slice(e,7).concat(t.slice(0,e))}j("d",0,"do","day"),j("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),j("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),j("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),j("e",0,0,"weekday"),j("E",0,0,"isoWeekday"),rt("day","d"),rt("weekday","e"),rt("isoWeekday","E"),ot("day",11),ot("weekday",11),ot("isoWeekday",11),It("d",St),It("e",St),It("E",St),It("dd",(function(t,e){return e.weekdaysMinRegex(t)})),It("ddd",(function(t,e){return e.weekdaysShortRegex(t)})),It("dddd",(function(t,e){return e.weekdaysRegex(t)})),jt(["dd","ddd","dddd"],(function(t,e,n,r){var i=n._locale.weekdaysParse(t,r,n._strict);null!=i?e.d=i:v(n).invalidWeekday=t})),jt(["d","e","E"],(function(t,e,n,r){e[r]=ht(t)}));var Ne="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ie="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ve="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Be=Nt,Ye=Nt,Le=Nt;function Fe(t,e){var n=a(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?Re(n,this._week.dow):t?n[t.day()]:n}function je(t){return!0===t?Re(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort}function Ue(t){return!0===t?Re(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin}function He(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=m([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=Ht.call(this._weekdaysParse,s))?i:null:"ddd"===e?-1!==(i=Ht.call(this._shortWeekdaysParse,s))?i:null:-1!==(i=Ht.call(this._minWeekdaysParse,s))?i:null:"dddd"===e?-1!==(i=Ht.call(this._weekdaysParse,s))||-1!==(i=Ht.call(this._shortWeekdaysParse,s))||-1!==(i=Ht.call(this._minWeekdaysParse,s))?i:null:"ddd"===e?-1!==(i=Ht.call(this._shortWeekdaysParse,s))||-1!==(i=Ht.call(this._weekdaysParse,s))||-1!==(i=Ht.call(this._minWeekdaysParse,s))?i:null:-1!==(i=Ht.call(this._minWeekdaysParse,s))||-1!==(i=Ht.call(this._weekdaysParse,s))||-1!==(i=Ht.call(this._shortWeekdaysParse,s))?i:null}function ze(t,e,n){var r,i,a;if(this._weekdaysParseExact)return He.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=m([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 qe(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=Ae(t,this.localeData()),this.add(t-e,"d")):e}function Ge(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 We(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=Pe(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7}function Ze(t){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Xe.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(u(this,"_weekdaysRegex")||(this._weekdaysRegex=Be),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function Ke(t){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Xe.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(u(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Ye),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function $e(t){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Xe.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(u(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Le),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Xe(){function t(t,e){return e.length-t.length}var e,n,r,i,a,s=[],o=[],u=[],l=[];for(e=0;e<7;e++)n=m([2e3,1]).day(e),r=Yt(this.weekdaysMin(n,"")),i=Yt(this.weekdaysShort(n,"")),a=Yt(this.weekdays(n,"")),s.push(r),o.push(i),u.push(a),l.push(r),l.push(i),l.push(a);s.sort(t),o.sort(t),u.sort(t),l.sort(t),this._weekdaysRegex=new RegExp("^("+l.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 Je(){return this.hours()%12||12}function Qe(){return this.hours()||24}function tn(t,e){j(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)}j("H",["HH",2],0,"hour"),j("h",["hh",2],0,Je),j("k",["kk",2],0,Qe),j("hmm",0,0,(function(){return""+Je.apply(this)+V(this.minutes(),2)})),j("hmmss",0,0,(function(){return""+Je.apply(this)+V(this.minutes(),2)+V(this.seconds(),2)})),j("Hmm",0,0,(function(){return""+this.hours()+V(this.minutes(),2)})),j("Hmmss",0,0,(function(){return""+this.hours()+V(this.minutes(),2)+V(this.seconds(),2)})),tn("a",!0),tn("A",!1),rt("hour","h"),ot("hour",13),It("a",en),It("A",en),It("H",St),It("h",St),It("k",St),It("HH",St,bt),It("hh",St,bt),It("kk",St,bt),It("hmm",Tt),It("hmmss",xt),It("Hmm",Tt),It("Hmmss",xt),Ft(["H","HH"],Wt),Ft(["k","kk"],(function(t,e,n){var r=ht(t);e[Wt]=24===r?0:r})),Ft(["a","A"],(function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t})),Ft(["h","hh"],(function(t,e,n){e[Wt]=ht(t),v(n).bigHour=!0})),Ft("hmm",(function(t,e,n){var r=t.length-2;e[Wt]=ht(t.substr(0,r)),e[Zt]=ht(t.substr(r)),v(n).bigHour=!0})),Ft("hmmss",(function(t,e,n){var r=t.length-4,i=t.length-2;e[Wt]=ht(t.substr(0,r)),e[Zt]=ht(t.substr(r,2)),e[Kt]=ht(t.substr(i)),v(n).bigHour=!0})),Ft("Hmm",(function(t,e,n){var r=t.length-2;e[Wt]=ht(t.substr(0,r)),e[Zt]=ht(t.substr(r))})),Ft("Hmmss",(function(t,e,n){var r=t.length-4,i=t.length-2;e[Wt]=ht(t.substr(0,r)),e[Zt]=ht(t.substr(r,2)),e[Kt]=ht(t.substr(i))}));var rn=/[ap]\.?m?\.?/i,an=ft("Hours",!0);function sn(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"}var on,un={calendar:N,longDateFormat:G,invalidDate:Z,ordinal:$,dayOfMonthOrdinalParse:X,relativeTime:Q,months:ee,monthsShort:ne,week:Ee,weekdays:Ne,weekdaysMin:Ve,weekdaysShort:Ie,meridiemParse:rn},ln={},cn={};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=mn(i.slice(0,e).join("-")))return r;if(n&&n.length>=e&&hn(i,n)>=e-1)break;e--}a++}return on}function pn(t){return null!=t.match("^[^/\\\\]*$")}function mn(e){var n=null;if(void 0===ln[e]&&t&&t.exports&&pn(e))try{n=on._abbr,o(),gn(n)}catch(t){ln[e]=null}return ln[e]}function gn(t,e){var n;return t&&((n=c(e)?bn(t):vn(t,e))?on=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),on._abbr}function vn(t,e){if(null!==e){var n,r=un;if(e.abbr=t,null!=ln[t])k("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=ln[t]._config;else if(null!=e.parentLocale)if(null!=ln[e.parentLocale])r=ln[e.parentLocale]._config;else{if(null==(n=mn(e.parentLocale)))return cn[e.parentLocale]||(cn[e.parentLocale]=[]),cn[e.parentLocale].push({name:t,config:e}),null;r=n._config}return ln[t]=new R(P(r,e)),cn[t]&&cn[t].forEach((function(t){vn(t.name,t.config)})),gn(t),ln[t]}return delete ln[t],null}function yn(t,e){if(null!=e){var n,r,i=un;null!=ln[t]&&null!=ln[t].parentLocale?ln[t].set(P(ln[t]._config,e)):(null!=(r=mn(t))&&(i=r._config),e=P(i,e),null==r&&(e.abbr=t),(n=new R(e)).parentLocale=ln[t],ln[t]=n),gn(t)}else null!=ln[t]&&(null!=ln[t].parentLocale?(ln[t]=ln[t].parentLocale,t===gn()&&gn(t)):null!=ln[t]&&delete ln[t]);return ln[t]}function bn(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return on;if(!a(t)){if(e=mn(t))return e;t=[t]}return dn(t)}function _n(){return M(ln)}function wn(t){var e,n=t._a;return n&&-2===v(t).overflow&&(e=n[qt]<0||n[qt]>11?qt:n[Gt]<1||n[Gt]>te(n[zt],n[qt])?Gt:n[Wt]<0||n[Wt]>24||24===n[Wt]&&(0!==n[Zt]||0!==n[Kt]||0!==n[$t])?Wt:n[Zt]<0||n[Zt]>59?Zt:n[Kt]<0||n[Kt]>59?Kt:n[$t]<0||n[$t]>999?$t:-1,v(t)._overflowDayOfYear&&(e<zt||e>Gt)&&(e=Gt),v(t)._overflowWeeks&&-1===e&&(e=Xt),v(t)._overflowWeekday&&-1===e&&(e=Jt),v(t).overflow=e),t}var 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=/^\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)?/,xn=[["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=Dn.exec(o)||Sn.exec(o),l=xn.length,c=En.length;if(u){for(v(t).iso=!0,e=0,n=l;e<n;e++)if(xn[e][1].exec(u[1])){i=xn[e][0],r=!1!==xn[e][2];break}if(null==i)return void(t._isValid=!1);if(u[3]){for(e=0,n=c;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),ne.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||Ie.indexOf(t)===new Date(e[0],e[1],e[2]).getDay()||(v(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=_e.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),v(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[Gt]&&null==t._a[qt]&&jn(t),null!=t._dayOfYear&&(a=Yn(t._a[zt],r[zt]),(t._dayOfYear>ge(a)||0===t._dayOfYear)&&(v(t)._overflowDayOfYear=!0),n=_e(a,0,t._dayOfYear),t._a[qt]=n.getUTCMonth(),t._a[Gt]=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[Wt]&&0===t._a[Zt]&&0===t._a[Kt]&&0===t._a[$t]&&(t._nextDay=!0,t._a[Wt]=0),t._d=(t._useUTC?_e:be).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[Wt]=24),t._w&&void 0!==t._w.d&&t._w.d!==i&&(v(t).weekdayMismatch=!0)}}function jn(t){var e,n,r,i,a,s,o,u,l;null!=(e=t._w).GG||null!=e.W||null!=e.E?(a=1,s=4,n=Yn(e.GG,t._a[zt],Se($n(),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,l=Se($n(),a,s),n=Yn(e.gg,t._a[zt],l.year),r=Yn(e.w,l.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)?v(t)._overflowWeeks=!0:null!=u?v(t)._overflowWeekday=!0:(o=De(n,r,i,a,s),t._a[zt]=o.year,t._dayOfYear=o.dayOfYear)}function Un(t){if(t._f!==r.ISO_8601)if(t._f!==r.RFC_2822){t._a=[],v(t).empty=!0;var e,n,i,a,s,o,u,l=""+t._i,c=l.length,h=0;for(u=(i=q(t._f,t._locale).match(B)||[]).length,e=0;e<u;e++)a=i[e],(n=(l.match(Vt(a,t))||[])[0])&&((s=l.substr(0,l.indexOf(n))).length>0&&v(t).unusedInput.push(s),l=l.slice(l.indexOf(n)+n.length),h+=n.length),F[a]?(n?v(t).empty=!1:v(t).unusedTokens.push(a),Ut(a,n,t)):t._strict&&!n&&v(t).unusedTokens.push(a);v(t).charsLeftOver=c-h,l.length>0&&v(t).unusedInput.push(l),t._a[Wt]<=12&&!0===v(t).bigHour&&t._a[Wt]>0&&(v(t).bigHour=void 0),v(t).parsedDateParts=t._a.slice(0),v(t).meridiem=t._meridiem,t._a[Wt]=Hn(t._locale,t._a[Wt],t._meridiem),null!==(o=v(t).era)&&(t._a[zt]=t._locale.erasConvertYear(o,t._a[zt])),Fn(t),wn(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 v(t).invalidFormat=!0,void(t._d=new Date(NaN));for(i=0;i<u;i++)a=0,s=!1,e=D({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[i],Un(e),y(e)&&(s=!0),a+=v(e).charsLeftOver,a+=10*v(e).unusedTokens.length,v(e).score=a,o?a<r&&(r=a,n=e):(null==r||a<r||s)&&(r=a,n=e,s&&(o=!0));p(t,n||e)}function qn(t){if(!t._d){var e=at(t._i),n=void 0===e.day?e.date:e.day;t._a=d([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 S(wn(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||bn(t._l),null===e||void 0===n&&""===e?b({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),T(e)?new S(wn(e)):(f(e)?t._d=e:a(n)?zn(t):n?Un(t):Zn(t),y(t)||(t._d=null),t))}function Zn(t){var e=t._i;c(e)?t._d=new Date(r.now()):f(e)?t._d=new Date(e.valueOf()):"string"==typeof e?Bn(t):a(e)?(t._a=d(e.slice(0),(function(t){return parseInt(t,10)})),Fn(t)):s(e)?qn(t):h(e)?t._d=new Date(e):r.createFromInputFallback(t)}function Kn(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)&&l(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 $n(t,e,n,r){return Kn(t,e,n,r,!1)}r.createFromInputFallback=E("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=E("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=$n.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:b()})),Jn=E("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=$n.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:b()}));function Qn(t,e){var n,r;if(1===e.length&&a(e[0])&&(e=e[0]),!e.length)return $n();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 Qn("isBefore",[].slice.call(arguments,0))}function er(){return Qn("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(u(t,e)&&(-1===Ht.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]])!==ht(t[rr[n]])&&(r=!0)}return!0}function ar(){return this._isValid}function sr(){return kr(NaN)}function or(t){var e=at(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,l=e.second||0,c=e.millisecond||0;this._isValid=ir(e),this._milliseconds=+c+1e3*l+6e4*u+1e3*o*60*60,this._days=+s+7*a,this._months=+i+3*r+12*n,this._data={},this._locale=bn(),this._bubble()}function ur(t){return t instanceof or}function lr(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&&ht(t[r])!==ht(e[r]))&&s++;return s+a}function hr(t,e){j(t,0,0,(function(){var t=this.utcOffset(),n="+";return t<0&&(t=-t,n="-"),n+V(~~(t/60),2)+e+V(~~t%60,2)}))}hr("Z",":"),hr("ZZ",""),It("Z",Pt),It("ZZ",Pt),Ft(["Z","ZZ"],(function(t,e,n){n._useUTC=!0,n._tzm=dr(Pt,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]+ht(n[2]))?0:"+"===n[0]?r:-r}function pr(t,e){var n,i;return e._isUTC?(n=e.clone(),i=(T(t)||f(t)?t.valueOf():$n(t).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+i),r.updateOffset(n,!1),n):$n(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(Pt,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(At,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this}function wr(t){return!!this.isValid()&&(t=t?$n(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 Sr(){if(!c(this._isDSTShifted))return this._isDSTShifted;var t,e={};return D(e,this),(e=Wn(e))._a?(t=e._isUTC?m(e._a):$n(e._a),this._isDSTShifted=this.isValid()&&cr(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Tr(){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}:h(t)||!isNaN(+t)?(a={},e?a[e]=+t:a.milliseconds=+t):(s=Mr.exec(t))?(n="-"===s[1]?-1:1,a={y:0,d:ht(s[Gt])*n,h:ht(s[Wt])*n,m:ht(s[Zt])*n,s:ht(s[Kt])*n,ms:ht(lr(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($n(a.from),$n(a.to)),(a={}).ms=i.milliseconds,a.M=i.months),r=new or(a),ur(t)&&u(t,"_locale")&&(r._locale=t._locale),ur(t)&&u(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)||(k(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=lr(e._days),o=lr(e._months);t.isValid()&&(i=null==i||i,o&&ce(t,dt(t,"Month")+o*n),s&&pt(t,"Date",dt(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)||f(t)||Br(t)||h(t)||Fr(t)||Lr(t)||null==t}function Lr(t){var e,n,r=s(t)&&!l(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"],o=a.length;for(e=0;e<o;e+=1)n=a[e],i=i||u(t,n);return r&&i}function Fr(t){var e=a(t),n=!1;return e&&(n=0===t.filter((function(e){return!h(e)&&Br(t)})).length),e&&n}function jr(t){var e,n,r=s(t)&&!l(t),i=!1,a=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(e=0;e<a.length;e+=1)n=a[e],i=i||u(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||$n(),i=pr(n,this).startOf("day"),a=r.calendarFormat(this,i)||"sameElse",s=e&&(C(e[a])?e[a].call(this,n):e[a]);return this.format(s||this.localeData().calendar(a,this,$n(n)))}function zr(){return new S(this)}function qr(t,e){var n=T(t)?t:$n(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=it(e)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(e).valueOf())}function Gr(t,e){var n=T(t)?t:$n(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=it(e)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(e).valueOf()<n.valueOf())}function Wr(t,e,n,r){var i=T(t)?t:$n(t),a=T(e)?e:$n(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:$n(t);return!(!this.isValid()||!r.isValid())&&("millisecond"===(e=it(e)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(e).valueOf()<=n&&n<=this.clone().endOf(e).valueOf()))}function Kr(t,e){return this.isSame(t,e)||this.isAfter(t,e)}function $r(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=it(e)){case"year":a=Jr(this,r)/12;break;case"month":a=Jr(this,r);break;case"quarter":a=Jr(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 Jr(t,e){if(t.date()<e.date())return-Jr(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 ti(t){if(!this.isValid())return null;var e=!0!==t,n=e?this.clone().utc():this;return n.year()<0||n.year()>9999?z(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):C(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",z(n,"Z")):z(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=z(this,t);return this.localeData().postformat(e)}function ri(t,e){return this.isValid()&&(T(t)&&t.isValid()||$n(t).isValid())?kr({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function ii(t){return this.from($n(),t)}function ai(t,e){return this.isValid()&&(T(t)&&t.isValid()||$n(t).isValid())?kr({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function si(t){return this.to($n(),t)}function oi(t){var e;return void 0===t?this._locale._abbr:(null!=(e=bn(t))&&(this._locale=e),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var ui=E("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 li(){return this._locale}var ci=1e3,hi=60*ci,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=it(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,ci)}return this._d.setTime(e),r.updateOffset(this,!0),this}function yi(t){var e,n;if(void 0===(t=it(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+=ci-pi(e,ci)-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 Si(){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 Ti(){return this.isValid()?this.toISOString():null}function xi(){return y(this)}function Ei(){return p({},v(this))}function Mi(){return v(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||bn("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 u(this,"_erasNameRegex")||Hi.call(this),t?this._erasNameRegex:this._erasRegex}function Bi(t){return u(this,"_erasAbbrRegex")||Hi.call(this),t?this._erasAbbrRegex:this._erasRegex}function Yi(t){return u(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||kt}function Hi(){var t,e,n=[],r=[],i=[],a=[],s=this.eras();for(t=0,e=s.length;t<e;++t)r.push(Yt(s[t].name)),n.push(Yt(s[t].abbr)),i.push(Yt(s[t].narrow)),a.push(Yt(s[t].name)),a.push(Yt(s[t].abbr)),a.push(Yt(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){j(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 Ki(){var t=this.localeData()._week;return Te(this.year(),t.dow,t.doy)}function $i(){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?Se(this,r,i).year:(e>(a=Te(t,r,i))&&(e=a),Ji.call(this,t,e,n,r,i))}function Ji(t,e,n,r,i){var a=De(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)}j("N",0,0,"eraAbbr"),j("NN",0,0,"eraAbbr"),j("NNN",0,0,"eraAbbr"),j("NNNN",0,0,"eraName"),j("NNNNN",0,0,"eraNarrow"),j("y",["y",1],"yo","eraYear"),j("y",["yy",2],0,"eraYear"),j("y",["yyy",3],0,"eraYear"),j("y",["yyyy",4],0,"eraYear"),It("N",Li),It("NN",Li),It("NNN",Li),It("NNNN",Fi),It("NNNNN",ji),Ft(["N","NN","NNN","NNNN","NNNNN"],(function(t,e,n,r){var i=n._locale.erasParse(t,r,n._strict);i?v(n).era=i:v(n).invalidEra=t})),It("y",kt),It("yy",kt),It("yyy",kt),It("yyyy",kt),It("yo",Ui),Ft(["y","yy","yyy","yyyy"],zt),Ft(["yo"],(function(t,e,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=t.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?e[zt]=n._locale.eraYearOrdinalParse(t,i):e[zt]=parseInt(t,10)})),j(0,["gg",2],0,(function(){return this.weekYear()%100})),j(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),zi("gggg","weekYear"),zi("ggggg","weekYear"),zi("GGGG","isoWeekYear"),zi("GGGGG","isoWeekYear"),rt("weekYear","gg"),rt("isoWeekYear","GG"),ot("weekYear",1),ot("isoWeekYear",1),It("G",Ct),It("g",Ct),It("GG",St,bt),It("gg",St,bt),It("GGGG",Mt,wt),It("gggg",Mt,wt),It("GGGGG",Ot,Dt),It("ggggg",Ot,Dt),jt(["gggg","ggggg","GGGG","GGGGG"],(function(t,e,n,r){e[r.substr(0,2)]=ht(t)})),jt(["gg","GG"],(function(t,e,n,i){e[i]=r.parseTwoDigitYear(t)})),j("Q",0,"Qo","quarter"),rt("quarter","Q"),ot("quarter",7),It("Q",yt),Ft("Q",(function(t,e){e[qt]=3*(ht(t)-1)})),j("D",["DD",2],"Do","date"),rt("date","D"),ot("date",9),It("D",St),It("DD",St,bt),It("Do",(function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient})),Ft(["D","DD"],Gt),Ft("Do",(function(t,e){e[Gt]=ht(t.match(St)[0])}));var ta=ft("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")}j("DDD",["DDDD",3],"DDDo","dayOfYear"),rt("dayOfYear","DDD"),ot("dayOfYear",4),It("DDD",Et),It("DDDD",_t),Ft(["DDD","DDDD"],(function(t,e,n){n._dayOfYear=ht(t)})),j("m",["mm",2],0,"minute"),rt("minute","m"),ot("minute",14),It("m",St),It("mm",St,bt),Ft(["m","mm"],Zt);var na=ft("Minutes",!1);j("s",["ss",2],0,"second"),rt("second","s"),ot("second",15),It("s",St),It("ss",St,bt),Ft(["s","ss"],Kt);var ra,ia,aa=ft("Seconds",!1);for(j("S",0,0,(function(){return~~(this.millisecond()/100)})),j(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),j(0,["SSS",3],0,"millisecond"),j(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),j(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),j(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),j(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),j(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),j(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),rt("millisecond","ms"),ot("millisecond",16),It("S",Et,yt),It("SS",Et,bt),It("SSS",Et,_t),ra="SSSS";ra.length<=9;ra+="S")It(ra,kt);function sa(t,e){e[$t]=ht(1e3*("0."+t))}for(ra="S";ra.length<=9;ra+="S")Ft(ra,sa);function oa(){return this._isUTC?"UTC":""}function ua(){return this._isUTC?"Coordinated Universal Time":""}ia=ft("Milliseconds",!1),j("z",0,0,"zoneAbbr"),j("zz",0,0,"zoneName");var la=S.prototype;function ca(t){return $n(1e3*t)}function ha(){return $n.apply(null,arguments).parseZone()}function fa(t){return t}la.add=Ir,la.calendar=Hr,la.clone=zr,la.diff=Xr,la.endOf=yi,la.format=ni,la.from=ri,la.fromNow=ii,la.to=ai,la.toNow=si,la.get=mt,la.invalidAt=Mi,la.isAfter=qr,la.isBefore=Gr,la.isBetween=Wr,la.isSame=Zr,la.isSameOrAfter=Kr,la.isSameOrBefore=$r,la.isValid=xi,la.lang=ui,la.locale=oi,la.localeData=li,la.max=Jn,la.min=Xn,la.parsingFlags=Ei,la.set=gt,la.startOf=vi,la.subtract=Vr,la.toArray=Di,la.toObject=Si,la.toDate=wi,la.toISOString=ti,la.inspect=ei,"undefined"!=typeof Symbol&&null!=Symbol.for&&(la[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),la.toJSON=Ti,la.toString=Qr,la.unix=_i,la.valueOf=bi,la.creationData=Oi,la.eraName=Pi,la.eraNarrow=Ri,la.eraAbbr=Ni,la.eraYear=Ii,la.year=ve,la.isLeapYear=ye,la.weekYear=qi,la.isoWeekYear=Gi,la.quarter=la.quarters=Qi,la.month=he,la.daysInMonth=fe,la.week=la.weeks=ke,la.isoWeek=la.isoWeeks=Ce,la.weeksInYear=Ki,la.weeksInWeekYear=$i,la.isoWeeksInYear=Wi,la.isoWeeksInISOWeekYear=Zi,la.date=ta,la.day=la.days=qe,la.weekday=Ge,la.isoWeekday=We,la.dayOfYear=ea,la.hour=la.hours=an,la.minute=la.minutes=na,la.second=la.seconds=aa,la.millisecond=la.milliseconds=ia,la.utcOffset=gr,la.utc=yr,la.local=br,la.parseZone=_r,la.hasAlignedHourOffset=wr,la.isDST=Dr,la.isLocal=Tr,la.isUtcOffset=xr,la.isUtc=Er,la.isUTC=Er,la.zoneAbbr=oa,la.zoneName=ua,la.dates=E("dates accessor is deprecated. Use date instead.",ta),la.months=E("months accessor is deprecated. Use month instead",he),la.years=E("years accessor is deprecated. Use year instead",ve),la.zone=E("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",vr),la.isDSTShifted=E("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Sr);var da=R.prototype;function pa(t,e,n,r){var i=bn(),a=m().set(r,e);return i[n](a,t)}function ma(t,e,n){if(h(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?(h(e)&&(n=e,e=void 0),e=e||""):(n=e=t,t=!1,h(e)&&(n=e,e=void 0),e=e||"");var i,a=bn(),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=I,da.longDateFormat=W,da.invalidDate=K,da.ordinal=J,da.preparse=fa,da.postformat=fa,da.relativeTime=tt,da.pastFuture=et,da.set=A,da.eras=ki,da.erasParse=Ci,da.erasConvertYear=Ai,da.erasAbbrRegex=Bi,da.erasNameRegex=Vi,da.erasNarrowRegex=Yi,da.months=se,da.monthsShort=oe,da.monthsParse=le,da.monthsRegex=pe,da.monthsShortRegex=de,da.week=xe,da.firstDayOfYear=Oe,da.firstDayOfWeek=Me,da.weekdays=Fe,da.weekdaysMin=Ue,da.weekdaysShort=je,da.weekdaysParse=ze,da.weekdaysRegex=Ze,da.weekdaysShortRegex=Ke,da.weekdaysMinRegex=$e,da.isPM=nn,da.meridiem=sn,gn("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===ht(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),r.lang=E("moment.lang is deprecated. Use moment.locale instead.",gn),r.langData=E("moment.langData is deprecated. Use moment.localeData instead.",bn);var Da=Math.abs;function Sa(){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 Ta(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 Ta(this,t,e,1)}function Ea(t,e){return Ta(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=it(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*ht(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=it(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"),Ka=qa("hours"),$a=qa("days"),Xa=qa("months"),Ja=qa("years");function Qa(){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")),l=ts(i.as("M")),c=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||c<=1&&["w"]||c<n.w&&["ww",c]),(f=f||l<=1&&["M"]||l<n.M&&["MM",l]||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 ls(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n,r,i,a,s,o,u=os(this._milliseconds)/1e3,l=os(this._days),c=os(this._months),h=this.asSeconds();return h?(t=ct(u/60),e=ct(t/60),u%=60,t%=60,n=ct(c/12),c%=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":"")+(c?a+c+"M":"")+(l?s+l+"D":"")+(e||t||u?"T":"")+(e?o+e+"H":"")+(t?o+t+"M":"")+(u?o+r+"S":"")):"P0D"}var cs=or.prototype;return cs.isValid=ar,cs.abs=Sa,cs.add=xa,cs.subtract=Ea,cs.as=Aa,cs.asMilliseconds=Na,cs.asSeconds=Ia,cs.asMinutes=Va,cs.asHours=Ba,cs.asDays=Ya,cs.asWeeks=La,cs.asMonths=Fa,cs.asQuarters=ja,cs.asYears=Ua,cs.valueOf=Pa,cs._bubble=Oa,cs.clone=Ha,cs.get=za,cs.milliseconds=Ga,cs.seconds=Wa,cs.minutes=Za,cs.hours=Ka,cs.days=$a,cs.weeks=Qa,cs.months=Xa,cs.years=Ja,cs.humanize=ss,cs.toISOString=ls,cs.toString=ls,cs.toJSON=ls,cs.locale=oi,cs.localeData=li,cs.toIsoString=E("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ls),cs.lang=ui,j("X",0,0,"unix"),j("x",0,0,"valueOf"),It("x",Ct),It("X",Rt),Ft("X",(function(t,e,n){n._d=new Date(1e3*parseFloat(t))})),Ft("x",(function(t,e,n){n._d=new Date(ht(t))})),
|
|
2
|
-
//! moment.js
|
|
3
|
-
r.version="2.29.4",i($n),r.fn=la,r.min=tr,r.max=er,r.now=nr,r.utc=m,r.unix=ca,r.months=va,r.isDate=f,r.locale=gn,r.invalid=b,r.duration=kr,r.isMoment=T,r.weekdays=ba,r.parseZone=ha,r.localeData=bn,r.isDuration=ur,r.monthsShort=ya,r.weekdaysMin=wa,r.defineLocale=vn,r.updateLocale=yn,r.locales=_n,r.weekdaysShort=_a,r.normalizeUnits=it,r.relativeTimeRounding=is,r.relativeTimeThreshold=as,r.calendarFormat=Ur,r.prototype=la,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}()})),c={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:"",sysConst:[{des:"年份",key:1001,mapField:"YEAR",mapping:"-",model:"2",name:"YEAR",value:l().get("year")},{des:"月份",key:1005,mapField:"MONTH",mapping:"-",model:"2",name:"MONTH",value:l().get("month")},{des:"日期",key:1004,mapField:"DATE",mapping:"-",model:"2",name:"DATE",value:l().get("date")},{des:"星期",key:1003,mapField:"WEEK",mapping:"-",model:"2",name:"WEEK",value:l().format("dddd")},{des:"版本",key:1002,mapField:"VERSION",mapping:"-",model:"2",name:"VERSION",value:"1.0.0"}]},h=function(t,e){return h=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])},h(t,e)};var f=function(){return f=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},f.apply(this,arguments)};function d(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 p(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 m(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 g={createItem:function(t){t.catch={selectd:i.default.cloneDeep(t.selectd),list:i.default.cloneDeep(t.list)}},resetData:function(t,e){var n=i.default.cloneDeep(e);t.selected=n.selected,t.list=n.list},execute:function(t){t.undoRedoPointer===t.undos.length-1?(t.undos.length>10&&i.default.pullAt(t.undos,0),t.undos.push({selectd:i.default.cloneDeep(t.selectd),list:i.default.cloneDeep(t.list)})):t.undos.splice(t.undoRedoPointer+1,t.undos.length-1-t.undoRedoPointer,{selectd:i.default.cloneDeep(t.selectd),list:i.default.cloneDeep(t.list)}),t.undoRedoPointer=t.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)}}},v=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"]),y=URL.createObjectURL(v);function b(t,e){return void 0===e&&(e=5e3),d(this,void 0,void 0,(function(){var n;return p(this,(function(r){return n=new Worker(y),[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 _(t,e,n,r,a){return d(this,void 0,void 0,(function(){var a,s,o,u,l,c,h,f,d;return p(this,(function(m){switch(m.label){case 0:if(a=t,s=i.default.cloneDeep(e),o=s.use,u=s.data,!o)return[3,4];l=function(t){var e,n,s;return p(this,(function(o){switch(o.label){case 0:return u[t].use?(e=u[t].dependVars,n={},r&&n&&e&&e.length&&e.map((function(t){var e=i.default.cloneDeep(r).filter((function(e){var r=e.mapField==t&&""!=e.value;return r&&(n[t]=e.value),r}));if(!e||0==e.length){var a=r.filter((function(t){return""!=t.value}));a&&a.length&&(n[t]=a[0].value)}})),[4,w(u[t].code,a,n)]):[3,2];case 1:s=o.sent(),a=s.data,o.label=2;case 2:return[2]}}))},c=0,m.label=1;case 1:return c<u.length?[5,l(c)]:[3,4];case 2:m.sent(),m.label=3;case 3:return c++,[3,1];case 4:return f=a,(h=n)&&"object"==typeof a&&(Array.isArray(f)?(f=[],a.forEach((function(t){d={},h.forEach((function(e){d[e.field]=t[e.mapField]})),f.push(d)}))):(f={},h.forEach((function(t){f[t.field]=a[t.mapField]})))),[2,f]}}))}))}function w(t,e,n){return void 0===n&&(n={}),d(this,void 0,void 0,(function(){var r,i,a,s,o;return p(this,(function(u){switch(u.label){case 0:return u.trys.push([0,2,,3]),a=(r=[e,n,""])[1],s=r[2],"object"==typeof(i=r[0])&&(i=JSON.stringify(e)),"object"==typeof n&&(a=JSON.stringify(n)),Object.keys(n).forEach((function(t){return s+="".concat(t,",")})),o="let data=eval(".concat(i,"); "),o+=s?"let {".concat(s,"} = eval(").concat(a,"); "):"",[4,b(o+="".concat(t))];case 1:return[2,{success:!0,data:u.sent()}];case 2:return[2,{success:!1,error:u.sent(),data:e}];case 3:return[2]}}))}))}function D(t){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(t)}function S(t,e){return t&e}function T(t,e){return t|e}function x(t,e){return t^e}function E(t,e){return t&~e}function M(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 O(t){for(var e=0;0!=t;)t&=t-1,++e;return e}var k,C="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function A(t){var e,n,r="";for(e=0;e+3<=t.length;e+=3)n=parseInt(t.substring(e,e+3),16),r+=C.charAt(n>>6)+C.charAt(63&n);for(e+1==t.length?(n=parseInt(t.substring(e,e+1),16),r+=C.charAt(n<<2)):e+2==t.length&&(n=parseInt(t.substring(e,e+2),16),r+=C.charAt(n>>2)+C.charAt((3&n)<<4));(3&r.length)>0;)r+="=";return r}function P(t){var e,n="",r=0,i=0;for(e=0;e<t.length&&"="!=t.charAt(e);++e){var a=C.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 R,N=function(t){var e;if(void 0===k){var n="0123456789ABCDEF",r=" \f\n\r\t \u2028\u2029";for(k={},e=0;e<16;++e)k[n.charAt(e)]=e;for(n=n.toLowerCase(),e=10;e<16;++e)k[n.charAt(e)]=e;for(e=0;e<r.length;++e)k[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=k[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},I={decode:function(t){var e;if(void 0===R){var n="= \f\n\r\t \u2028\u2029";for(R=Object.create(null),e=0;e<64;++e)R["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e)]=e;for(R["-"]=62,R._=63,e=0;e<n.length;++e)R[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=R[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=I.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 I.decode(t)}},V=1e13,B=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)<V?e=0:r-=(e=0|r/V)*V,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+=V,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+=(V+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*V+t[n];return e},t.prototype.simplify=function(){var t=this.buf;return 1==t.length?t[0]:this},t}(),Y=/^(\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)?)?$/,L=/^(\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 F(t,e){return t.length>e&&(t=t.substring(0,e)+"…"),t}var j,U=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?Y:L).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 B(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,l=7;l>=u;--l)a+=o>>l&1?"1":"0";if(a.length>n)return i+F(a,n)}return i+a},t.prototype.parseOctetString=function(t,e,n){if(this.isASCII(t,e))return F(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 B,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 B)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 F(r,n);i=new B,a=0}}return a>0&&(r+=".incomplete"),r},t}(),H=function(){function t(t,e,n,r,i){if(!(r instanceof z))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 F(this.stream.parseStringUTF(e,e+n),t);case 18:case 19:case 20:case 21:case 22:case 26:return F(this.stream.parseStringISO(e,e+n),t);case 30:return F(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 U?e:new U(e,0);var r=new U(n),i=new z(n),a=t.decodeLength(n),s=n.pos,o=s-r.pos,u=null,l=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=l();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=l();for(var c=0;c<u.length;++c)if(u[c].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}(),z=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 B;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}(),q=[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],G=(1<<26)/q[q.length-1],W=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=J();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)+st(this[this.t-1]^this.s&this.DM)},t.prototype.mod=function(e){var n=J();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 K(e):new $(e),this.exp(t,n)},t.prototype.clone=function(){var t=J();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=J();return this.bitwiseTo(t,S,e),e},t.prototype.or=function(t){var e=J();return this.bitwiseTo(t,T,e),e},t.prototype.xor=function(t){var e=J();return this.bitwiseTo(t,x,e),e},t.prototype.andNot=function(t){var e=J();return this.bitwiseTo(t,E,e),e},t.prototype.not=function(){for(var t=J(),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=J();return t<0?this.rShiftTo(-t,e):this.lShiftTo(t,e),e},t.prototype.shiftRight=function(t){var e=J();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+M(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+=O(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,T)},t.prototype.clearBit=function(t){return this.changeBit(t,E)},t.prototype.flipBit=function(t){return this.changeBit(t,x)},t.prototype.add=function(t){var e=J();return this.addTo(t,e),e},t.prototype.subtract=function(t){var e=J();return this.subTo(t,e),e},t.prototype.multiply=function(t){var e=J();return this.multiplyTo(t,e),e},t.prototype.divide=function(t){var e=J();return this.divRemTo(t,e,null),e},t.prototype.remainder=function(t){var e=J();return this.divRemTo(t,null,e),e},t.prototype.divideAndRemainder=function(t){var e=J(),n=J();return this.divRemTo(t,e,n),[e,n]},t.prototype.modPow=function(t,e){var n,r,i=t.bitLength(),a=at(1);if(i<=0)return a;n=i<18?1:i<48?3:i<144?4:i<768?5:6,r=i<8?new K(e):e.isEven()?new X(e):new $(e);var s=[],o=3,u=n-1,l=(1<<n)-1;if(s[1]=r.convert(this),n>1){var c=J();for(r.sqrTo(s[1],c);o<=l;)s[o]=J(),r.mulTo(c,s[o-2],s[o]),o+=2}var h,f,d=t.t-1,p=!0,m=J();for(i=st(t[d])-1;d>=0;){for(i>=u?h=t[d]>>i-u&l:(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=at(1),s=at(0),o=at(0),u=at(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 Z)},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]<=q[q.length-1]){for(e=0;e<q.length;++e)if(n[0]==q[e])return!0;return!1}if(n.isEven())return!1;for(e=1;e<q.length;){for(var r=q[e],i=e+1;i<q.length&&r<G;)r*=q[i++];for(r=n.modInt(r);e<i;)if(r%q[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]:it(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=J());var s=J(),o=this.s,u=e.s,l=this.DB-st(i[i.t-1]);l>0?(i.lShiftTo(l,s),a.lShiftTo(l,r)):(i.copyTo(s),a.copyTo(r));var c=s.t,h=s[c-1];if(0!=h){var f=h*(1<<this.F1)+(c>1?s[c-2]>>this.F2:0),d=this.FV/f,p=(1<<this.F1)/f,m=1<<this.F2,g=r.t,v=g-c,y=null==n?J():n;for(s.dlShiftTo(v,y),r.compareTo(y)>=0&&(r[r.t++]=1,r.subTo(y,r)),t.ONE.dlShiftTo(c,y),y.subTo(s,s);s.t<c;)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,c))<b)for(s.dlShiftTo(v,y),r.subTo(y,r);r[g]<--b;)r.subTo(y,r)}null!=n&&(r.drShiftTo(c,n),o!=u&&t.ZERO.subTo(n,n)),r.t=c,r.clamp(),l>0&&r.rShiftTo(l,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=J(),i=J(),a=n.convert(this),s=st(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=at(n),i=J(),a=J(),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 l=it(e,u);l<0?"-"==e.charAt(u)&&0==this.signum()&&(a=!0):(o=n*o+l,++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),T,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)>q.length&&(e=q.length);for(var a=J(),s=0;s<e;++s){a.fromInt(q[Math.floor(Math.random()*q.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=J();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),T,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}(),Z=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}(),K=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}(),$=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=J();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(W.ZERO)>0&&this.m.subTo(e,e),e},t.prototype.revert=function(t){var e=J();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}(),X=function(){function t(t){this.m=t,this.r2=J(),this.q3=J(),W.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=J();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 J(){return new W(null)}function Q(t,e){return new W(t,e)}var tt="undefined"!=typeof navigator;tt&&"Microsoft Internet Explorer"==navigator.appName?(W.prototype.am=function(t,e,n,r,i,a){for(var s=32767&e,o=e>>15;--a>=0;){var u=32767&this[t],l=this[t++]>>15,c=o*u+l*s;i=((u=s*u+((32767&c)<<15)+n[r]+(1073741823&i))>>>30)+(c>>>15)+o*l+(i>>>30),n[r++]=1073741823&u}return i},j=30):tt&&"Netscape"!=navigator.appName?(W.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},j=26):(W.prototype.am=function(t,e,n,r,i,a){for(var s=16383&e,o=e>>14;--a>=0;){var u=16383&this[t],l=this[t++]>>14,c=o*u+l*s;i=((u=s*u+((16383&c)<<14)+n[r]+i)>>28)+(c>>14)+o*l,n[r++]=268435455&u}return i},j=28),W.prototype.DB=j,W.prototype.DM=(1<<j)-1,W.prototype.DV=1<<j;W.prototype.FV=Math.pow(2,52),W.prototype.F1=52-j,W.prototype.F2=2*j-52;var et,nt,rt=[];for(et="0".charCodeAt(0),nt=0;nt<=9;++nt)rt[et++]=nt;for(et="a".charCodeAt(0),nt=10;nt<36;++nt)rt[et++]=nt;for(et="A".charCodeAt(0),nt=10;nt<36;++nt)rt[et++]=nt;function it(t,e){var n=rt[t.charCodeAt(e)];return null==n?-1:n}function at(t){var e=J();return e.fromInt(t),e}function st(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}W.ZERO=at(0),W.ONE=at(1);var ot=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 ut,lt,ct=null;if(null==ct){ct=[],lt=0;var ht=void 0;if(window.crypto&&window.crypto.getRandomValues){var ft=new Uint32Array(256);for(window.crypto.getRandomValues(ft),ht=0;ht<ft.length;++ht)ct[lt++]=255&ft[ht]}var dt=0,pt=function(t){if((dt=dt||0)>=256||lt>=256)window.removeEventListener?window.removeEventListener("mousemove",pt,!1):window.detachEvent&&window.detachEvent("onmousemove",pt);else try{var e=t.x+t.y;ct[lt++]=255&e,dt+=1}catch(t){}};window.addEventListener?window.addEventListener("mousemove",pt,!1):window.attachEvent&&window.attachEvent("onmousemove",pt)}function mt(){if(null==ut){for(ut=new ot;lt<256;){var t=Math.floor(65536*Math.random());ct[lt++]=255&t}for(ut.init(ct),lt=0;lt<ct.length;++lt)ct[lt]=0;lt=0}return ut.next()}var gt=function(){function t(){}return t.prototype.nextBytes=function(t){for(var e=0;e<t.length;++e)t[e]=mt()},t}();var vt=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=Q(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 gt,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 W(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=Q(t,16),this.e=parseInt(e,16),this.d=Q(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=Q(t,16),this.e=parseInt(e,16),this.d=Q(n,16),this.p=Q(r,16),this.q=Q(i,16),this.dmp1=Q(a,16),this.dmq1=Q(s,16),this.coeff=Q(o,16)):console.error("Invalid RSA private key")},t.prototype.generate=function(t,e){var n=new gt,r=t>>1;this.e=parseInt(e,16);for(var i=new W(e,16);;){for(;this.p=new W(t-r,1,n),0!=this.p.subtract(W.ONE).gcd(i).compareTo(W.ONE)||!this.p.isProbablePrime(10););for(;this.q=new W(r,1,n),0!=this.q.subtract(W.ONE).gcd(i).compareTo(W.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(W.ONE),o=this.q.subtract(W.ONE),u=s.multiply(o);if(0==u.gcd(i).compareTo(W.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=Q(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 gt,i=t>>1;this.e=parseInt(e,16);var a=new W(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(W.ONE),r=s.q.subtract(W.ONE),i=e.multiply(r);0==i.gcd(a).compareTo(W.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=J(),s.q.fromNumberAsync(i,1,r,(function(){s.q.subtract(W.ONE).gcda(a,(function(t){0==t.compareTo(W.ONE)&&s.q.isProbablePrime(10)?setTimeout(e,0):setTimeout(u,0)}))}))},l=function(){s.p=J(),s.p.fromNumberAsync(t-i,1,r,(function(){s.p.subtract(W.ONE).gcda(a,(function(t){0==t.compareTo(W.ONE)&&s.p.isProbablePrime(10)?setTimeout(u,0):setTimeout(l,0)}))}))};setTimeout(l,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 Q("0001"+r+"00"+t,16)}((yt[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=Q(e,16),i=this.doPublic(r);return null==i?null:function(t){for(var e in yt)if(yt.hasOwnProperty(e)){var n=yt[e],r=n.length;if(t.substr(0,r)==n)return t.substr(r)}return t}
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("lodash"),require("axios")):"function"==typeof define&&define.amd?define(["exports","lodash","axios"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).code={},t._,t.axios)}(this,(function(t,e,n){"use strict";function r(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var i=r(e),a=r(n),s=function(t,e){return s=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])},s(t,e)};var o=function(){return o=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},o.apply(this,arguments)};function u(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 l(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 c(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 h={createItem:function(t){t.catch={selectd:i.default.cloneDeep(t.selectd),list:i.default.cloneDeep(t.list)}},resetData:function(t,e){var n=i.default.cloneDeep(e);t.selected=n.selected,t.list=n.list},execute:function(t){t.undoRedoPointer===t.undos.length-1?(t.undos.length>10&&i.default.pullAt(t.undos,0),t.undos.push({selectd:i.default.cloneDeep(t.selectd),list:i.default.cloneDeep(t.list)})):t.undos.splice(t.undoRedoPointer+1,t.undos.length-1-t.undoRedoPointer,{selectd:i.default.cloneDeep(t.selectd),list:i.default.cloneDeep(t.list)}),t.undoRedoPointer=t.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)}}},f=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"]),d=URL.createObjectURL(f);function p(t,e){return void 0===e&&(e=5e3),u(this,void 0,void 0,(function(){var n;return l(this,(function(r){return n=new Worker(d),[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 m(t,e,n,r){return u(this,void 0,void 0,(function(){var i,a,s,o,u,c,h,f;return l(this,(function(d){switch(d.label){case 0:if(i=t,a=e.use,s=e.data,!a)return[3,4];o=function(t){var e,n,a;return l(this,(function(o){switch(o.label){case 0:return s[t].use?(e=s[t].dependVars,n={},r&&n&&e&&e.length&&e.map((function(t){var e=r.filter((function(e){return e.mapField==t}));e&&e.length&&e.forEach((function(e){""!=e.value&&(n[t]=e.value)}))})),[4,g(s[t].code,i,n)]):[3,2];case 1:a=o.sent(),i=a.data,o.label=2;case 2:return[2]}}))},u=0,d.label=1;case 1:return u<s.length?[5,o(u)]:[3,4];case 2:d.sent(),d.label=3;case 3:return u++,[3,1];case 4:return h=i,(c=n)&&"object"==typeof i&&(Array.isArray(h)?(h=[],i.forEach((function(t){f={},c.forEach((function(e){f[e.field]=t[e.mapField]})),h.push(f)}))):(h={},c.forEach((function(t){h[t.field]=i[t.mapField]})))),[2,h]}}))}))}function g(t,e,n){return void 0===n&&(n={}),u(this,void 0,void 0,(function(){var r,i,a,s,o;return l(this,(function(u){switch(u.label){case 0:return u.trys.push([0,2,,3]),a=(r=[e,n,""])[1],s=r[2],"object"==typeof(i=r[0])&&(i=JSON.stringify(e)),"object"==typeof n&&(a=JSON.stringify(n)),Object.keys(n).forEach((function(t){return s+="".concat(t,",")})),o="let data=eval(".concat(i,"); "),o+=s?"let {".concat(s,"} = eval(").concat(a,"); "):"",[4,p(o+="".concat(t))];case 1:return[2,{success:!0,data:u.sent()}];case 2:return[2,{success:!1,error:u.sent(),data:e}];case 3:return[2]}}))}))}var v="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function y(){throw new Error("setTimeout has not been defined")}function b(){throw new Error("clearTimeout has not been defined")}var _=y,w=b;function D(t){if(_===setTimeout)return setTimeout(t,0);if((_===y||!_)&&setTimeout)return _=setTimeout,setTimeout(t,0);try{return _(t,0)}catch(e){try{return _.call(null,t,0)}catch(e){return _.call(this,t,0)}}}"function"==typeof v.setTimeout&&(_=setTimeout),"function"==typeof v.clearTimeout&&(w=clearTimeout);var T,S=[],x=!1,E=-1;function M(){x&&T&&(x=!1,T.length?S=T.concat(S):E=-1,S.length&&O())}function O(){if(!x){var t=D(M);x=!0;for(var e=S.length;e;){for(T=S,S=[];++E<e;)T&&T[E].run();E=-1,e=S.length}T=null,x=!1,function(t){if(w===clearTimeout)return clearTimeout(t);if((w===b||!w)&&clearTimeout)return w=clearTimeout,clearTimeout(t);try{w(t)}catch(e){try{return w.call(null,t)}catch(e){return w.call(this,t)}}}(t)}}function k(t,e){this.fun=t,this.array=e}k.prototype.run=function(){this.fun.apply(null,this.array)};function C(){}var A=C,P=C,R=C,N=C,I=C,V=C,B=C;var Y=v.performance||{},L=Y.now||Y.mozNow||Y.msNow||Y.oNow||Y.webkitNow||function(){return(new Date).getTime()};var F=new Date;var j={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];S.push(new k(t,e)),1!==S.length||x||D(O)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:A,addListener:P,once:R,off:N,removeListener:I,removeAllListeners:V,emit:B,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*L.call(Y),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-F)/1e3}};function U(t){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(t)}function H(t,e){return t&e}function z(t,e){return t|e}function q(t,e){return t^e}function G(t,e){return t&~e}function W(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 $,K="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function X(t){var e,n,r="";for(e=0;e+3<=t.length;e+=3)n=parseInt(t.substring(e,e+3),16),r+=K.charAt(n>>6)+K.charAt(63&n);for(e+1==t.length?(n=parseInt(t.substring(e,e+1),16),r+=K.charAt(n<<2)):e+2==t.length&&(n=parseInt(t.substring(e,e+2),16),r+=K.charAt(n>>2)+K.charAt((3&n)<<4));(3&r.length)>0;)r+="=";return r}function Q(t){var e,n="",r=0,i=0;for(e=0;e<t.length&&"="!=t.charAt(e);++e){var a=K.indexOf(t.charAt(e));a<0||(0==r?(n+=U(a>>2),i=3&a,r=1):1==r?(n+=U(i<<2|a>>4),i=15&a,r=2):2==r?(n+=U(i),n+=U(a>>2),i=3&a,r=3):(n+=U(i<<2|a>>4),n+=U(15&a),r=0))}return 1==r&&(n+=U(i<<2)),n}var J,tt=function(t){var e;if(void 0===$){var n="0123456789ABCDEF",r=" \f\n\r\t \u2028\u2029";for($={},e=0;e<16;++e)$[n.charAt(e)]=e;for(n=n.toLowerCase(),e=10;e<16;++e)$[n.charAt(e)]=e;for(e=0;e<r.length;++e)$[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=$[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},et={decode:function(t){var e;if(void 0===J){var n="= \f\n\r\t \u2028\u2029";for(J=Object.create(null),e=0;e<64;++e)J["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e)]=e;for(J["-"]=62,J._=63,e=0;e<n.length;++e)J[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=J[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=et.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 et.decode(t)}},nt=1e13,rt=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)<nt?e=0:r-=(e=0|r/nt)*nt,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+=nt,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+=(nt+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*nt+t[n];return e},t.prototype.simplify=function(){var t=this.buf;return 1==t.length?t[0]:this},t}(),it=/^(\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)?)?$/,at=/^(\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 st(t,e){return t.length>e&&(t=t.substring(0,e)+"…"),t}var ot,ut=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?it:at).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 rt(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,l=7;l>=u;--l)a+=o>>l&1?"1":"0";if(a.length>n)return i+st(a,n)}return i+a},t.prototype.parseOctetString=function(t,e,n){if(this.isASCII(t,e))return st(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 rt,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 rt)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 st(r,n);i=new rt,a=0}}return a>0&&(r+=".incomplete"),r},t}(),lt=function(){function t(t,e,n,r,i){if(!(r instanceof ct))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 st(this.stream.parseStringUTF(e,e+n),t);case 18:case 19:case 20:case 21:case 22:case 26:return st(this.stream.parseStringISO(e,e+n),t);case 30:return st(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 ut?e:new ut(e,0);var r=new ut(n),i=new ct(n),a=t.decodeLength(n),s=n.pos,o=s-r.pos,u=null,l=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=l();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=l();for(var c=0;c<u.length;++c)if(u[c].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}(),ct=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 rt;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}(),ht=[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],ft=(1<<26)/ht[ht.length-1],dt=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=U(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+=U(n));return i?a:"0"},t.prototype.negate=function(){var e=yt();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)+Et(this[this.t-1]^this.s&this.DM)},t.prototype.mod=function(e){var n=yt();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 mt(e):new gt(e),this.exp(t,n)},t.prototype.clone=function(){var t=yt();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=yt();return this.bitwiseTo(t,H,e),e},t.prototype.or=function(t){var e=yt();return this.bitwiseTo(t,z,e),e},t.prototype.xor=function(t){var e=yt();return this.bitwiseTo(t,q,e),e},t.prototype.andNot=function(t){var e=yt();return this.bitwiseTo(t,G,e),e},t.prototype.not=function(){for(var t=yt(),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=yt();return t<0?this.rShiftTo(-t,e):this.lShiftTo(t,e),e},t.prototype.shiftRight=function(t){var e=yt();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+W(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,z)},t.prototype.clearBit=function(t){return this.changeBit(t,G)},t.prototype.flipBit=function(t){return this.changeBit(t,q)},t.prototype.add=function(t){var e=yt();return this.addTo(t,e),e},t.prototype.subtract=function(t){var e=yt();return this.subTo(t,e),e},t.prototype.multiply=function(t){var e=yt();return this.multiplyTo(t,e),e},t.prototype.divide=function(t){var e=yt();return this.divRemTo(t,e,null),e},t.prototype.remainder=function(t){var e=yt();return this.divRemTo(t,null,e),e},t.prototype.divideAndRemainder=function(t){var e=yt(),n=yt();return this.divRemTo(t,e,n),[e,n]},t.prototype.modPow=function(t,e){var n,r,i=t.bitLength(),a=xt(1);if(i<=0)return a;n=i<18?1:i<48?3:i<144?4:i<768?5:6,r=i<8?new mt(e):e.isEven()?new vt(e):new gt(e);var s=[],o=3,u=n-1,l=(1<<n)-1;if(s[1]=r.convert(this),n>1){var c=yt();for(r.sqrTo(s[1],c);o<=l;)s[o]=yt(),r.mulTo(c,s[o-2],s[o]),o+=2}var h,f,d=t.t-1,p=!0,m=yt();for(i=Et(t[d])-1;d>=0;){for(i>=u?h=t[d]>>i-u&l:(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=xt(1),s=xt(0),o=xt(0),u=xt(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 pt)},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]<=ht[ht.length-1]){for(e=0;e<ht.length;++e)if(n[0]==ht[e])return!0;return!1}if(n.isEven())return!1;for(e=1;e<ht.length;){for(var r=ht[e],i=e+1;i<ht.length&&r<ft;)r*=ht[i++];for(r=n.modInt(r);e<i;)if(r%ht[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]:St(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=yt());var s=yt(),o=this.s,u=e.s,l=this.DB-Et(i[i.t-1]);l>0?(i.lShiftTo(l,s),a.lShiftTo(l,r)):(i.copyTo(s),a.copyTo(r));var c=s.t,h=s[c-1];if(0!=h){var f=h*(1<<this.F1)+(c>1?s[c-2]>>this.F2:0),d=this.FV/f,p=(1<<this.F1)/f,m=1<<this.F2,g=r.t,v=g-c,y=null==n?yt():n;for(s.dlShiftTo(v,y),r.compareTo(y)>=0&&(r[r.t++]=1,r.subTo(y,r)),t.ONE.dlShiftTo(c,y),y.subTo(s,s);s.t<c;)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,c))<b)for(s.dlShiftTo(v,y),r.subTo(y,r);r[g]<--b;)r.subTo(y,r)}null!=n&&(r.drShiftTo(c,n),o!=u&&t.ZERO.subTo(n,n)),r.t=c,r.clamp(),l>0&&r.rShiftTo(l,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=yt(),i=yt(),a=n.convert(this),s=Et(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=xt(n),i=yt(),a=yt(),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 l=St(e,u);l<0?"-"==e.charAt(u)&&0==this.signum()&&(a=!0):(o=n*o+l,++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),z,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)>ht.length&&(e=ht.length);for(var a=yt(),s=0;s<e;++s){a.fromInt(ht[Math.floor(Math.random()*ht.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=yt();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),z,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}(),pt=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}(),mt=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}(),gt=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=yt();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(dt.ZERO)>0&&this.m.subTo(e,e),e},t.prototype.revert=function(t){var e=yt();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}(),vt=function(){function t(t){this.m=t,this.r2=yt(),this.q3=yt(),dt.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=yt();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 yt(){return new dt(null)}function bt(t,e){return new dt(t,e)}var _t="undefined"!=typeof navigator;_t&&"Microsoft Internet Explorer"==navigator.appName?(dt.prototype.am=function(t,e,n,r,i,a){for(var s=32767&e,o=e>>15;--a>=0;){var u=32767&this[t],l=this[t++]>>15,c=o*u+l*s;i=((u=s*u+((32767&c)<<15)+n[r]+(1073741823&i))>>>30)+(c>>>15)+o*l+(i>>>30),n[r++]=1073741823&u}return i},ot=30):_t&&"Netscape"!=navigator.appName?(dt.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},ot=26):(dt.prototype.am=function(t,e,n,r,i,a){for(var s=16383&e,o=e>>14;--a>=0;){var u=16383&this[t],l=this[t++]>>14,c=o*u+l*s;i=((u=s*u+((16383&c)<<14)+n[r]+i)>>28)+(c>>14)+o*l,n[r++]=268435455&u}return i},ot=28),dt.prototype.DB=ot,dt.prototype.DM=(1<<ot)-1,dt.prototype.DV=1<<ot;dt.prototype.FV=Math.pow(2,52),dt.prototype.F1=52-ot,dt.prototype.F2=2*ot-52;var wt,Dt,Tt=[];for(wt="0".charCodeAt(0),Dt=0;Dt<=9;++Dt)Tt[wt++]=Dt;for(wt="a".charCodeAt(0),Dt=10;Dt<36;++Dt)Tt[wt++]=Dt;for(wt="A".charCodeAt(0),Dt=10;Dt<36;++Dt)Tt[wt++]=Dt;function St(t,e){var n=Tt[t.charCodeAt(e)];return null==n?-1:n}function xt(t){var e=yt();return e.fromInt(t),e}function Et(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}dt.ZERO=xt(0),dt.ONE=xt(1);var Mt=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 Ot,kt,Ct=null;if(null==Ct){Ct=[],kt=0;var At=void 0;if("undefined"!=typeof window&&window.crypto&&window.crypto.getRandomValues){var Pt=new Uint32Array(256);for(window.crypto.getRandomValues(Pt),At=0;At<Pt.length;++At)Ct[kt++]=255&Pt[At]}var Rt=0,Nt=function(t){if((Rt=Rt||0)>=256||kt>=256)window.removeEventListener?window.removeEventListener("mousemove",Nt,!1):window.detachEvent&&window.detachEvent("onmousemove",Nt);else try{var e=t.x+t.y;Ct[kt++]=255&e,Rt+=1}catch(t){}};"undefined"!=typeof window&&(window.addEventListener?window.addEventListener("mousemove",Nt,!1):window.attachEvent&&window.attachEvent("onmousemove",Nt))}function It(){if(null==Ot){for(Ot=new Mt;kt<256;){var t=Math.floor(65536*Math.random());Ct[kt++]=255&t}for(Ot.init(Ct),kt=0;kt<Ct.length;++kt)Ct[kt]=0;kt=0}return Ot.next()}var Vt=function(){function t(){}return t.prototype.nextBytes=function(t){for(var e=0;e<t.length;++e)t[e]=It()},t}();var Bt=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=bt(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 Vt,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 dt(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=bt(t,16),this.e=parseInt(e,16),this.d=bt(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=bt(t,16),this.e=parseInt(e,16),this.d=bt(n,16),this.p=bt(r,16),this.q=bt(i,16),this.dmp1=bt(a,16),this.dmq1=bt(s,16),this.coeff=bt(o,16)):console.error("Invalid RSA private key")},t.prototype.generate=function(t,e){var n=new Vt,r=t>>1;this.e=parseInt(e,16);for(var i=new dt(e,16);;){for(;this.p=new dt(t-r,1,n),0!=this.p.subtract(dt.ONE).gcd(i).compareTo(dt.ONE)||!this.p.isProbablePrime(10););for(;this.q=new dt(r,1,n),0!=this.q.subtract(dt.ONE).gcd(i).compareTo(dt.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(dt.ONE),o=this.q.subtract(dt.ONE),u=s.multiply(o);if(0==u.gcd(i).compareTo(dt.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=bt(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 Vt,i=t>>1;this.e=parseInt(e,16);var a=new dt(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(dt.ONE),r=s.q.subtract(dt.ONE),i=e.multiply(r);0==i.gcd(a).compareTo(dt.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=yt(),s.q.fromNumberAsync(i,1,r,(function(){s.q.subtract(dt.ONE).gcda(a,(function(t){0==t.compareTo(dt.ONE)&&s.q.isProbablePrime(10)?setTimeout(e,0):setTimeout(u,0)}))}))},l=function(){s.p=yt(),s.p.fromNumberAsync(t-i,1,r,(function(){s.p.subtract(dt.ONE).gcda(a,(function(t){0==t.compareTo(dt.ONE)&&s.p.isProbablePrime(10)?setTimeout(u,0):setTimeout(l,0)}))}))};setTimeout(l,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 bt("0001"+r+"00"+t,16)}((Yt[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=bt(e,16),i=this.doPublic(r);return null==i?null:function(t){for(var e in Yt)if(Yt.hasOwnProperty(e)){var n=Yt[e],r=n.length;if(t.substr(0,r)==n)return t.substr(r)}return t}
|
|
4
2
|
/*!
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
Copyright (c) 2011, Yahoo! Inc. All rights reserved.
|
|
4
|
+
Code licensed under the BSD License:
|
|
5
|
+
http://developer.yahoo.com/yui/license.html
|
|
6
|
+
version: 2.9.0
|
|
7
|
+
*/(i.toString(16).replace(/^1f+00/,""))==n(t).toString()},t}();var Yt={md2:"3020300c06082a864886f70d020205000410",md5:"3020300c06082a864886f70d020505000410",sha1:"3021300906052b0e03021a05000414",sha224:"302d300d06096086480165030402040500041c",sha256:"3031300d060960864801650304020105000420",sha384:"3041300d060960864801650304020205000430",sha512:"3051300d060960864801650304020305000440",ripemd160:"3021300906052b2403020105000414"};var Lt={};Lt.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)}}};
|
|
10
8
|
/**
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
var _t={};void 0!==_t.asn1&&_t.asn1||(_t.asn1={}),_t.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 W(r,16).xor(t).add(W.ONE).toString(16).replace(/^-/,"")}return e},this.getPEMStringFromHex=function(t,e){return hextopem(t,e)},this.newObject=function(t){var e=_t.asn1,n=e.DERBoolean,r=e.DERInteger,i=e.DERBitString,a=e.DEROctetString,s=e.DERNull,o=e.DERObjectIdentifier,u=e.DEREnumerated,l=e.DERUTF8String,c=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 l(t[w]);if("numstr"==w)return new c(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=b(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=b(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=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()}},_t.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 W(r,2).toString(10),r=""}return e},_t.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 W(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},_t.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""}},_t.asn1.DERAbstractString=function(t){_t.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))},bt.lang.extend(_t.asn1.DERAbstractString,_t.asn1.ASN1Object),_t.asn1.DERAbstractTime=function(t){_t.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}},bt.lang.extend(_t.asn1.DERAbstractTime,_t.asn1.ASN1Object),_t.asn1.DERAbstractStructured=function(t){_t.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)},bt.lang.extend(_t.asn1.DERAbstractStructured,_t.asn1.ASN1Object),_t.asn1.DERBoolean=function(){_t.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},bt.lang.extend(_t.asn1.DERBoolean,_t.asn1.ASN1Object),_t.asn1.DERInteger=function(t){_t.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=_t.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new W(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))},bt.lang.extend(_t.asn1.DERInteger,_t.asn1.ASN1Object),_t.asn1.DERBitString=function(t){if(void 0!==t&&void 0!==t.obj){var e=_t.asn1.ASN1Util.newObject(t.obj);t.hex="00"+e.getEncodedHex()}_t.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))},bt.lang.extend(_t.asn1.DERBitString,_t.asn1.ASN1Object),_t.asn1.DEROctetString=function(t){if(void 0!==t&&void 0!==t.obj){var e=_t.asn1.ASN1Util.newObject(t.obj);t.hex=e.getEncodedHex()}_t.asn1.DEROctetString.superclass.constructor.call(this,t),this.hT="04"},bt.lang.extend(_t.asn1.DEROctetString,_t.asn1.DERAbstractString),_t.asn1.DERNull=function(){_t.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},bt.lang.extend(_t.asn1.DERNull,_t.asn1.ASN1Object),_t.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 W(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};_t.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=_t.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))},bt.lang.extend(_t.asn1.DERObjectIdentifier,_t.asn1.ASN1Object),_t.asn1.DEREnumerated=function(t){_t.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=_t.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new W(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))},bt.lang.extend(_t.asn1.DEREnumerated,_t.asn1.ASN1Object),_t.asn1.DERUTF8String=function(t){_t.asn1.DERUTF8String.superclass.constructor.call(this,t),this.hT="0c"},bt.lang.extend(_t.asn1.DERUTF8String,_t.asn1.DERAbstractString),_t.asn1.DERNumericString=function(t){_t.asn1.DERNumericString.superclass.constructor.call(this,t),this.hT="12"},bt.lang.extend(_t.asn1.DERNumericString,_t.asn1.DERAbstractString),_t.asn1.DERPrintableString=function(t){_t.asn1.DERPrintableString.superclass.constructor.call(this,t),this.hT="13"},bt.lang.extend(_t.asn1.DERPrintableString,_t.asn1.DERAbstractString),_t.asn1.DERTeletexString=function(t){_t.asn1.DERTeletexString.superclass.constructor.call(this,t),this.hT="14"},bt.lang.extend(_t.asn1.DERTeletexString,_t.asn1.DERAbstractString),_t.asn1.DERIA5String=function(t){_t.asn1.DERIA5String.superclass.constructor.call(this,t),this.hT="16"},bt.lang.extend(_t.asn1.DERIA5String,_t.asn1.DERAbstractString),_t.asn1.DERUTCTime=function(t){_t.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))},bt.lang.extend(_t.asn1.DERUTCTime,_t.asn1.DERAbstractTime),_t.asn1.DERGeneralizedTime=function(t){_t.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))},bt.lang.extend(_t.asn1.DERGeneralizedTime,_t.asn1.DERAbstractTime),_t.asn1.DERSequence=function(t){_t.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}},bt.lang.extend(_t.asn1.DERSequence,_t.asn1.DERAbstractStructured),_t.asn1.DERSet=function(t){_t.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)},bt.lang.extend(_t.asn1.DERSet,_t.asn1.DERAbstractStructured),_t.asn1.DERTaggedObject=function(t){_t.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)))},bt.lang.extend(_t.asn1.DERTaggedObject,_t.asn1.ASN1Object);var wt=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 wt(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)?N(t):I.unarmor(t),i=H.decode(r);if(3===i.sub.length&&(i=i.sub[2].sub[0]),9===i.sub.length){e=i.sub[1].getHexStringValue(),this.n=Q(e,16),n=i.sub[2].getHexStringValue(),this.e=parseInt(n,16);var a=i.sub[3].getHexStringValue();this.d=Q(a,16);var s=i.sub[4].getHexStringValue();this.p=Q(s,16);var o=i.sub[5].getHexStringValue();this.q=Q(o,16);var u=i.sub[6].getHexStringValue();this.dmp1=Q(u,16);var l=i.sub[7].getHexStringValue();this.dmq1=Q(l,16);var c=i.sub[8].getHexStringValue();this.coeff=Q(c,16)}else{if(2!==i.sub.length)return!1;var h=i.sub[1].sub[0];e=h.sub[0].getHexStringValue(),this.n=Q(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 _t.asn1.DERInteger({int:0}),new _t.asn1.DERInteger({bigint:this.n}),new _t.asn1.DERInteger({int:this.e}),new _t.asn1.DERInteger({bigint:this.d}),new _t.asn1.DERInteger({bigint:this.p}),new _t.asn1.DERInteger({bigint:this.q}),new _t.asn1.DERInteger({bigint:this.dmp1}),new _t.asn1.DERInteger({bigint:this.dmq1}),new _t.asn1.DERInteger({bigint:this.coeff})]};return new _t.asn1.DERSequence(t).getEncodedHex()},e.prototype.getPrivateBaseKeyB64=function(){return A(this.getPrivateBaseKey())},e.prototype.getPublicBaseKey=function(){var t=new _t.asn1.DERSequence({array:[new _t.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new _t.asn1.DERNull]}),e=new _t.asn1.DERSequence({array:[new _t.asn1.DERInteger({bigint:this.n}),new _t.asn1.DERInteger({int:this.e})]}),n=new _t.asn1.DERBitString({hex:"00"+e.getEncodedHex()});return new _t.asn1.DERSequence({array:[t,n]}).getEncodedHex()},e.prototype.getPublicBaseKeyB64=function(){return A(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}(vt),St="3.2.1",Tt=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(P(t))}catch(t){return!1}},t.prototype.encrypt=function(t){try{return A(this.getKey().encrypt(t))}catch(t){return!1}},t.prototype.sign=function(t,e,n){try{return A(this.getKey().sign(t,e,n))}catch(t){return!1}},t.prototype.verify=function(t,e,n){try{return this.getKey().verify(t,P(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=St,t}(),xt=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)&&xt(null==t?void 0:t.children,e)})),t},Et=function(t,e,n){var r=t[n];return t.splice(n,1),t.splice(e,0,r),t},Mt=function(t,e,n){var r=i.default.findIndex(t,(function(t){return t.cid==n})),a=i.default.findIndex(t,(function(t){return t.cid==e}));return Et(t,a,r)},Ot=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&&Et(a.children,r-1,r);break;case"down":r<a.children.length-2&&Et(a.children,r+1,r);break;case"top":0!==r&&Et(a.children,0,r);break;case"bottom":var o=a.children.length-1;r!==o&&Et(a.children,o,r)}break}}}return t},kt=function(t,e,n){var r=!1,a=function(t){for(var s=0;s<t.length;s++){if(t[s].cid==e){r=t[s],n&&i.default.remove(t,(function(t){return t.cid==e}));break}if(t[s].children)a(t[s].children);else if(t[s].dynamicChildren){if(t[s].dynamicChildren instanceof Map){for(var o=Array.from(t[s].dynamicChildren),u=0;u<o.length;u++)if(o[u]instanceof Array){var l=o[u][1];a(l)}}else if(t[s].dynamicChildren instanceof Array)for(o=t[s].dynamicChildren,u=0;u<o.length;u++)if(o[u]instanceof Array){l=o[u][1];a(l)}}else t[s].stateChildren&&a(t[s].stateChildren)}};return a(t),r||!1},Ct=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},At=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},Pt=function(t,e,n){var r=At(t,e),i=At(t,n);return r.pid&&i.pid||!r.pid&&!i.pid},Rt=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)},Nt=function(t){var e=function(t,n){for(var r=function(r){var i=t[r],a=Gt();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)},It=function(t,e,n,r){try{if(!t||!t.hasOwnProperty(e)&&!t.hasOwnProperty(r))throw"The property you want to modify is not found. Please check whether the attribute ".concat(e," is entered correctly!");if(r){i.default.cloneDeep(t[r][e]);t[r][e]=n}else t[e]=n}catch(t){console.error(t)}},Vt=function(t,e){e.forEach((function(e){e.baseData.left=e.baseData.left-t.left,e.baseData.top=e.baseData.top-t.top}))},Bt=function(t){var e=i.default.cloneDeep(t),n=[];return e.children&&e.children.length&&e.children.forEach((function(t){Yt(t,e.baseData),n.push(t)})),n},Yt=function(t,e){t.baseData.left=t.baseData.left+e.left,t.baseData.top=t.baseData.top+e.top},Lt=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},Ft=function(t,e){var n=i.default.cloneDeep(t),r=[],a=function(t,e){var n=kt(t,e);r.push(n.baseData),n.pid&&a(t,n.pid)};a(n,e);var s={left:0,top:0};return r.map((function(t){t&&(s.left+=t.left,s.top+=t.top)})),s},jt=function(t,e){var n=i.default.cloneDeep(t);return n.length>1&&n.sort((function(t,n){return t.baseData[e]-n.baseData[e]})),n},Ut=function(t,e){var n=[];return t.map((function(t){var r=e.find((function(e){return e.cid===t}));r&&n.push(r)})),Ht(n)},Ht=function(t){if(t.length>0){var e={left:0,top:0,width:0,height:0},n=jt(t,"left"),r=jt(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}))),l=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,l)-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}},zt=function(t,e,n){var r=t.children,a=i.default.cloneDeep(e),s=i.default.cloneDeep(Ht(r)),o=a.left,u=a.top;a.width,a.height;var l=s.left,c=s.top,h=s.width,f=s.height,d={left:o+l,top:u+c,width:h,height:f,angle:e.angle?e.angle:0};return r.forEach((function(t){var e=i.default.cloneDeep(t.baseData);t.baseData.left<0?e.left=0:e.left=e.left-l,t.baseData.top<0?e.top=0:e.top=e.top-c,t.baseData=e})),t.baseData=d,t.children=r,d},qt=function(t,e){for(var n=0;n<t.length;n++){var r=t[n];t[n].index=n,r.children&&r.children.length?qt(r.children):e&&e(r)}},Gt=function(){return(Math.random().toString().substr(3,10)+Date.now()).toString()},Wt=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,l=o.length;u<l;u++)if(o[u]===r)r++;else if(o[u]>r)break;return i+n+" "+r},Zt=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 Kt(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,params:t.params,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 $t(t){var e=new Tt;return e.setPublicKey("MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEApWni7uLYVV8iyDPTR6Zs\naj+2BHCn4xTzFeVHADzTdtBiFH9i4fKeDK0IfbPV/9TGeRYNfl0qSfdLtU+1ZIzm\npqHppadukmk5+NbBG4Xm/lAZgVt3dUIrSyamxVjwnymN7PLdxaSOS/mgU6SDGMhN\nTM76AXKZZXWMK12UCXvKkh+TkGufcXzLe7LtrvHPLOgcnEED2CkWATuE9g8K9j4T\neOMxhJcHBUmXLgU6Chufa4nBed2899E7jxJa14+J1IDa2ahrDFLZN7H//ZsvwnXq\nxVbxm0k5jyWqfCpg13V7zD3DxNWlo3MIh2fPtIEUDVhugqPd0jPmqquqdBNTnu2I\nGQIDAQAB"),e.encrypt(t)}var Xt={updataArea:function(t,e){t.currentArea=e},selectdArea:function(t,e){var n=Ut(e,t.list);t.currentArea=n},updataAngle:function(t,e){var n=e.id,r=e.angle,i=kt(t.list,n);"boolean"!=typeof i&&(i.baseData.angle=r)},updataBaseData:function(t,e){var n=e.data,r=e.ratio,i=kt(t.list,n.cid),a=e.oldData;if("object"!=typeof i||i.pid){if("object"==typeof i&&i.pid){var s=kt(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),zt(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;xt(i.children,{xRatio:o,yRatio:u})}},multipleUpdataBaseData:function(t,e){if(e.ratio)for(var n=e.newData,r=e.oldData,a=n.width/r.width,s=n.height/r.height,o=t.cache.length;o--;)t.cache[o].baseData.left=t.cache[o].baseData.left*a,t.cache[o].baseData.width=t.cache[o].baseData.width*a,t.cache[o].baseData.top=t.cache[o].baseData.top*s,t.cache[o].baseData.height=t.cache[o].baseData.height*s;else for(o=t.cache.length;o--;){var u=i.default.cloneDeep(t.cache[o].baseData);u.left=u.left+e.deltaX,u.top=u.top+e.deltaY,t.cache[o].comPanel?t.cache[o].comPanel.setAttrData(Object.assign(u,e.baseData)):t.cache[o].baseData=u}},multipleUpdata:function(t,e){var n=e.ids,r=e.data,i=kt(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=[kt(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=kt(t.list,o.pid);"object"==typeof u&&(zt(u,u.baseData),t.groupFlag=!t.groupFlag)}}}else console.warn("Warning! please select the component to move.")},updataGroupBaseData:function(t,e){var n=kt(t.list,e.pid),r=i.default.cloneDeep(n);kt(n.children,e.cid),zt(n,r.baseData)},editGroupBaseData:function(t,e){var n=kt(t.list,e);n.children.forEach((function(t){Yt(t,n.baseData)}))},syncBaseData:function(t,e){var n=e.cid,r=e.data,a=e.isContainer,s=i.default.cloneDeep(t.list);if(void 0!==a){var o=function(t){for(var e=0;e<t.length;e++)n===t[e].cid?t[e].baseData=Object.assign({},t[e].baseData,r):t[e].hasOwnProperty("children")&&o(t[e].children)};s.length&&o(s)}else{var u=kt(s,n);u&&(u.baseData=Object.assign({},u.baseData,r))}t.list=s},updataItemData:function(t,e){var n=e.cid,r=e.propsName,i=e.propsValue,a=kt(t.list,n);a&&(a[r]=i)},updataOpacity:function(t,e){var n=e.cid,r=e.propsValue,i=kt(t.list,n);"boolean"!=typeof i&&i&&(i.baseData.opacity=r)}},Jt=function(t,e,n,r){try{var a={},s=[],o=[],u=i.default.cloneDeep(t);return Rt(u,(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)&&Kt({types:t.tmpData.actions.map((function(t){return t.eventType})),element:t,actions:s,events:o})})),e&&e.length&&(s=m(m([],s,!0),e,!0)),n&&n.length&&(s=m(m([],s,!0),n,!0)),r&&r.length&&(s=m(m([],s,!0),r,!0)),Rt(u,(function(t){var e,n=null===(e=null==t?void 0:t.tmpData)||void 0===e?void 0:e.source;Qt(n,s,t,a)})),{shareVariableTree:a,globalVars:s.filter((function(t){return t})),globalEvents:o.filter((function(t){return t}))}}catch(t){return console.error("error",t),{}}},Qt=function(t,e,n,r){var i,a,s;if(t){var o=t[null==t?void 0:t.type],u=null==t?void 0:t.converse;u&&u.use&&u.data.length&&u.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){ee(r,t,n.cid)}))})),(null==o?void 0:o.inputSql)&&te(null==o?void 0:o.inputSql,e,n,r),(null==o?void 0:o.url)&&te(o.url,e,n,r),(null==o?void 0:o.headers)&&(null===(i=null==o?void 0:o.headers)||void 0===i?void 0:i.use)&&(null===(a=null==o?void 0:o.headers)||void 0===a?void 0:a.value)&&te(null===(s=null==o?void 0:o.headers)||void 0===s?void 0:s.value,e,n,r),(null==o?void 0:o.params)&&te(null==o?void 0:o.params,e,n,r)}},te=function(t,e,n,r){"string"!=typeof t&&(t=JSON.stringify(t));var i=t.match(/({{[\w]*}})|((@)[\w]*)/gm);if(i)for(var a=i.map((function(t){return t.replace(/{{|}}|@/gm,"")})),s=function(t){var i=a[t];if(!i||!e||e.findIndex((function(t){return t.mapField===i}))<0)return"continue";ee(r,i,n.cid)},o=0;o<a.length;o++)s(o)},ee=function(t,e,n){if(t[e]&&i.default.isArray(t[e])){t[e].push(n);var r=t[e];t[e]=i.default.uniq(r)}else t[e]=[],t[e].push(n)},ne={delListItem:function(t,e){var n=i.default.cloneDeep(t.list);"string"==typeof e?kt(n,e,!0):e.forEach((function(t){kt(n,t,!0)})),t.list=n,t.globalVars=Jt(t.list,t.globalConstant,t.sysConst).globalVars},editCloneCache:function(t,e){var n=i.default.cloneDeep(t.cloneCache);n.length&&n.map((function(t){t.baseData=Object.assign({},t.baseData,e)})),t.cloneCache=n},cloneItem:function(t){if(t.selectd.length>0){t.cloneCache=[];for(var e=0;e<t.selectd.length;e++){var n=kt(t.list,t.selectd[e]);if("boolean"!=typeof n){var r=i.default.cloneDeep(n);r.cid=Gt(),r.pid="",t.cloneCache.push(r)}}}},shearItem:function(t,e){if(t.selectd.length>0){t.cloneCache=[];for(var n=0;n<t.selectd.length;n++){var r=kt(t.list,t.selectd[n],!0);if("boolean"!=typeof r){var a=i.default.cloneDeep(r);a.cid=Gt(),t.cloneCache.push(a)}}t.selectd=[]}},pasteItem:function(t){var e,n=i.default.cloneDeep(t.cloneCache);if(n.length>0){var r=[];n.forEach((function(e){e.cid=Gt();var n=Wt(e.name,t.list.map((function(t){return t.name})));if(e.name=n,e.children&&e.children.length>0&&e.children.forEach((function(t){t.pid=e.cid,t.cid=Gt()})),"dynamicComponent"==e.componentType){var i=void 0;e.dynamicChildren instanceof Map?i=e.dynamicChildren.get(e.activeDynamic):e.dynamicChildren instanceof Array&&(i=e.dynamicChildren.find((function(t){return t[0]==t.activeDynamic}))[1]),i.forEach((function(t){t.pid=e.cid,t.cid=Gt()}))}r.push(e.cid)})),t.selectd.length>0?Ut(t.selectd,t.list):Ht(n),n.forEach((function(t){t.baseData.top=t.baseData.top+20,t.baseData.left=t.baseData.left+20})),(e=t.list).unshift.apply(e,i.default.cloneDeep(n)),t.selectd=r}},updataShow:function(t,e){var n=kt(t.list,e);if("boolean"!=typeof n){var r=!n.isShow;It(n,"isShow",r,"")}},changeShow:function(t,e){var n=e.cid,r=e.flag,i=kt(t.list,n);i&&It(i,"isShow",r,"")},updataLock:function(t,e){var n=kt(t.list,e);if("boolean"!=typeof n){var r=!n.isLock;It(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=Bt(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=Bt(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(t){i.default.cloneDeep(t.list);var e,n,r=[],a=[],s=Gt(),o=kt(t.list,t.selectd[0]);o.pid?console.info("Sorry, only level 2 is supported group"):o.children&&1===t.selectd.length?console.info("Sorry, only level 2 is supported group"):(t.selectd.forEach((function(e){var n=t.list.findIndex((function(t){return t.cid===e}));if(n>-1){r.push(n);var i=t.list.splice(n,1)[0];i.pid=s,a.push(i)}})),e=r.sort((function(t,e){return t-e}))[0],n=1===a.length?i.default.cloneDeep(a[0].baseData):t.currentArea,Object.assign(n,{angle:0,opacity:100,rotate:0,rotateY:0}),Vt(n,a),t.list.splice(e,0,{cid:s,pid:"",isShow:!0,isLock:!1,editer:!1,baseData:n,z:0,toggle:!0,name:"群组",type:"folder",children:a}),t.selectd=[s])},moveUp:function(t,e){try{var n=t.list.findIndex((function(t){return t.cid===e}));n>=1?Et(t.list,n-1,n):Ot(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?Et(t.list,n+1,n):Ot(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?Et(t.list,0,n):Ot(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?Et(t.list,r,n):Ot(t.list,"bottom",e)}catch(t){console.error(t)}}},re=3e4,ie=function(t,e){void 0===t&&(t="");var n=a.default.create({baseURL:t,timeout:re,headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"}});return n.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;",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)})),n.interceptors.response.use((function(t){var n;return 200===t.status||2e4==t.data.code?(e&&e(t),t.data):(e&&e(t),null==t||t.status,null===(n=null==t?void 0:t.data)||void 0===n||n.code,Promise.reject(t.data))}),(function(t){return e&&e(null==t?void 0:t.response),Promise.reject(t.response)})),n},ae=ie();function se(t,e,n,r){return d(this,void 0,void 0,(function(){var a,s,o,u;return p(this,(function(l){switch(l.label){case 0:a=t,s=i.default.cloneDeep(n),o=e?e.toLowerCase():"get",l.label=1;case 1:return l.trys.push([1,3,,4]),[4,ae({method:le[o],headers:r,url:a,params:s,timeout:3e4}).then((function(t){return{code:2e4,data:t.data}}))];case 2:return[2,l.sent()];case 3:return u=l.sent(),console.error("error:"+u.message),[3,4];case 4:return[2]}}))}))}function oe(t){return d(this,void 0,void 0,(function(){var e,n,r;return p(this,(function(i){switch(i.label){case 0:e=window.anUrl?window.anUrl:"",n=e+(window.agentPath?window.agentPath:"/ds/v1/api-proxy/v1/query"),f({},t),i.label=1;case 1:return i.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,ae({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,i.sent()];case 3:return r=i.sent(),console.error("error:"+r.message),[3,4];case 4:return[2]}}))}))}var ue,le,ce=function(t,e,n){var r,a=t.tmpData.source,s=n?n.value.api.agency:null===(r=null==a?void 0:a.api)||void 0===r?void 0:r.agency,o=a.type;if("static"!==o){var u=n?n.value.api:a[o],l=u.url,c=void 0===l?null:l,h=u.headers,f=u.params,d=u.requestType,p={};null==c||c.split("?")[0];var m=function(t){var e=new Object;if(t&&-1!==(null==t?void 0: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}(c);if((null==h?void 0:h.use)&&h.value){p=JSON.parse(h.value);var g=Object.keys(p);if(null==g?void 0:g.length)for(var v=function(t){var n=p[g[t]],r=e.filter((function(t){return t.mapField==n.toString().replace(/{{|}}|@/gm,"")}))[0];r&&(p[g[t]]=r.value)},y=0;y<g.length;y++)v(y)}var b={};if(f&&i.default.isString(f)){var _={};try{_=JSON.parse(f)}catch(t){console.warn("转换参数异常")}i.default.assign(b,_)}else i.default.assign(b,f);return Object.keys(b).forEach((function(t){var n=b[t],r=e.filter((function(t){return t.mapField==n.toString().replace(/{{|}}|@/gm,"")}))[0];r&&(b[t]=r.value,c=i.default.replace(c,m[t],r.value))})),{url:c,requestType:d,params:b,headers:p,agency:s}}return null},he=function(t,e,n){void 0===e&&(e=[]),e||(e=[]);var r=ce(t,e);r&&n(r)},fe=function(t,e,n,r,i){t.then((function(t){!t||2e4!=t.code&&200!=t.code?pe(e,de({error:!0,message:t.msg?t.msg:"data error"},e,n,r),i):n?pe(e,de(t.data,e,n,r),i):pe(e,de(t.data,e,n,r),i,t.data)})).catch((function(t){pe(e,de({error:!0,message:t.msg?t.msg:"data error"},e,n,r),i)}))},de=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?new Promise((function(e,n){e(_(t,a,s,r))})):new Promise((function(e,n){e(t)}))}catch(t){console.error(t)}},pe=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})},ge=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)_e(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,pe(e,de(o,e,r,n),i,u)}else if("datasource"==t){var l=s.inputSql.match(/({{[\w]*}})|((@)[\w]*)/gm),c=s.inputSql;l&&l.length&&l.forEach((function(t){var e=n.filter((function(e){return"@"+e.mapField==t||"{{"+e.mapField+"}}"==t})),r="";e&&e.length&&e.forEach((function(t){""!=t.value&&(r=t.value)})),c=c.replaceAll(t,r)})),be(s.dsName,{dsType:"1",sql:$t(c)},e,n,i,r)}else if("staticFile"==t)be(s.dsName,{dsType:s.dsType,sql:""},e,n,i,r);else if("indicator"==t)ye(s.zbId,{},e,n,i,r);else if("indicatorCQ"==t){var h=a?a.value.indicator:e.tmpData.source.indicator;ve(h.zbName,h.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:11"+t)}},ve=function(t,e,n,r,i,a){return d(void 0,void 0,void 0,(function(){var s,o,u,l,c,h,f,d,m;return p(this,(function(p){switch(p.label){case 0:return s=window.BaseUrl,o=e.dateType,u=void 0===o?"":o,l=e.endPeriod,c=void 0===l?"":l,h=e.metricsName,f=void 0===h?t:h,d=e.startPeriod,m=void 0===d?"":d,[4,ae({method:"GET",url:"".concat(s,"ds/v1/metrics/v1/data-alarm?dateType=").concat(u,"&endPeriod=").concat(c,"&metricsName=").concat(f,"&startPeriod=").concat(m),timeout:re}).then((function(t){if(2e4==t.code){var e=t.data;e?pe(n,de(e,n,a,r),i):(pe(n,de({data:e,message:t.msg?t.msg:"data error"},n,a,r),i),i({data:e,message:"发生错误"}))}else i({data:"",message:"发生错误"}),console.error("发生错误"),pe(n,de({error:!0,message:t.msg?t.msg:"data error"},n,a,r),i)})).catch((function(t){i(t)}))];case 1:return p.sent(),[2]}}))}))},ye=function(t,e,n,r,i,a){return d(void 0,void 0,void 0,(function(){var e,s,o,u,l,c,h,f,d,m;return p(this,(function(p){switch(p.label){case 0:e=window.BaseUrl?window.BaseUrl.replace("/management",""):"",s=Zt("YZH_EXCHANGE_TOKEN")?Zt("YZH_EXCHANGE_TOKEN"):null===(m=window.yzhAuth)||void 0===m?void 0:m.getToken(),u=window.gdPassid,o=window.BASE_RELEASE?"".concat(e,"/ds/data-engine/v1/").concat(t,"/zb-query?token=").concat(s,"&passid=").concat(u,"&preview=1"):"".concat(e,"/ds/data-engine/v1/").concat(t,"/zb-query?token=").concat(s,"&passid=").concat(u),l=ce(n,r),c=l.params,h=void 0===c?"":c,f=l.headers,d={};try{h&&(d=JSON.parse(h))}catch(t){h&&(d=h)}return[4,ae({method:"POST",url:o,data:{headers:f,param:d},timeout:re}).then((function(t){if(2e4==t.code){var e=JSON.parse(t.data);e?pe(n,de(e,n,a,r),i):(pe(n,de({error:!0,message:t.msg?t.msg:"data error"},n,a,r),i),i({data:e,message:"发生错误"}))}else i({data:"",message:"发生错误"}),console.error("发生错误"),pe(n,de({error:!0,message:t.msg?t.msg:"data error"},n,a,r),i)})).catch((function(t){i({data:t,message:"发生错误"})}))];case 1:return p.sent(),[2]}}))}))},be=function(t,e,n,r,i,a){return d(void 0,void 0,void 0,(function(){var s;return p(this,(function(o){switch(o.label){case 0:return s=window.BaseUrl?window.BaseUrl.replace("/management",""):"",[4,ae({method:"get",url:"".concat(s,"/ds/v1/data-proxy/v1/").concat(t,"/query"),params:e,timeout:re}).then((function(t){if(2e4==t.code){var e=JSON.parse(t.data);e?pe(n,de(e,n,a,r),i):(pe(n,de({error:!0,message:t.msg?t.msg:"data error"},n,a,r),i),i({data:e,message:"发生错误"}))}else i({data:"",message:"发生错误"}),console.error("发生错误"),pe(n,de({error:!0,message:t.msg?t.msg:"data error"},n,a,r),i)})).catch((function(t){i(t)}))];case 1:return o.sent(),[2]}}))}))},_e=function(t,e,n,r,i){void 0===n&&(n=!0);try{var a=ce(t,e,i),s=a.url,o=a.requestType,u=a.params,l=a.headers,c=a.agency,h=s.match(/({{[\w]*}})|((@)[\w]*)/gm),f=s;h&&h.length&&h.forEach((function(t){var n=e.filter((function(e){return"@"+e.mapField==t||"{{"+e.mapField+"}}"==t})),r="";n&&n.length&&n.forEach((function(t){""!=t.value&&(r=t.value)})),console.log(f),f=f.replaceAll(t,r)})),fe(c?oe({method:o,url:f,params:u,headers:l}):se(f,o,u,l),t,n,e,r)}catch(t){console.log("error:22"+t)}},we=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)&&he(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,l=s.requestType,c=s.params,h=s.headers;s.agency?oe({method:l,url:u,params:c,headers:h}).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,de(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}})})):se(u,l,c,h).then((function(e){var i=[];if(r){var s=t.tmpData.source,o=s.converse,u=s.mapFields;o&&o.use&&a?_(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"}(ue||(ue={})),function(t){t.get="GET",t.post="POST",t.put="PUT",t.patch="PATCH",t.delete="DELETE"}(le||(le={}));var De=Object.freeze({__proto__:null,Http:function(t,e){return ie(t,e)},axios:a.default,getDataForEvaluator:_,getData:se,agentData:oe,getComponentData:he,autoUpdateComData:function(t,e,n){var r,a,s,o,u,l=null===(r=null==t?void 0:t.tmpData)||void 0===r?void 0:r.source,c=null===(s=null===(a=l[null==l?void 0:l.type])||void 0===a?void 0:a.autoUpdate)||void 0===s?void 0:s.open,h=null===(u=null===(o=l[null==l?void 0:l.type])||void 0===o?void 0:o.autoUpdate)||void 0===u?void 0:u.time;c&&i.default.isNumber(h)&&h>0&&setInterval((function(){ge(t,e,!0,n)}),1e3*h)},updateComData:ge,refreshData:we,get ContentType(){return ue},get HttpMethod(){return le}});function Se(t){var e=[],n=[];Rt(i.default.cloneDeep(t),(function(t){var r,i;(null===(i=null===(r=null==t?void 0:t.tmpData)||void 0===r?void 0:r.actions)||void 0===i?void 0:i.length)&&Kt({types:t.tmpData.actions.map((function(t){return t.eventType})),element:t,actions:e,events:n})}));var r=n.filter((function(t){return t}));return{actions:e,events:r}}var Te={addGlobalSource:function(t,e){var n=e.name,r=e.value;t.globalSource.push({key:Gt(),name:n,value:r})},editGlobalSource:function(t,e){var n=this,r=e.key,a=e.value,s=t.globalSource.find((function(t){return t.key==r}));s&&(s.name=e.name,s.value=a,Rt(i.default.cloneDeep(t.list),(function(e){var i,a,s;if("globalData"==(null===(a=null===(i=null==e?void 0:e.tmpData)||void 0===i?void 0:i.source)||void 0===a?void 0:a.type)){var o=null===(s=null==e?void 0:e.tmpData)||void 0===s?void 0:s.source.globalData;(null==o?void 0:o.id)==r&&ge(e,t.globalVars,!0,(function(t){n.commit("GoCom/updataSourceForComponent",t)}),t.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]=f({},e)},addGoRunVar:function(t,e){try{t.globalVars=Jt(t.list,t.globalConstant,t.sysConst,e).globalVars}catch(t){console.warn(t)}},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=Jt(t.list,t.globalConstant,t.sysConst).globalVars}catch(t){console.warn(t)}},delGoVar: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("删除失败!");var a=i.default.cloneDeep(t.globalConstant);i.default.remove(a,(function(t){return t.mapField==n})),t.globalConstant=a,t.globalVars=Jt(t.list,t.globalConstant,t.sysConst).globalVars}catch(t){console.warn(t)}},editGoVar:function(t,e){try{var n=e.mapField;e.mold;if(!t.globalConstant.find((function(t){return t.mapField==n})))throw new Error("修改失败!");var r=i.default.cloneDeep(t.globalConstant);r.forEach((function(t){t.mapField==n&&Object.assign(t,e)})),t.globalConstant=r,t.globalVars=Jt(t.list,t.globalConstant,t.sysConst).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(t,e){t.list=i.default.cloneDeep(e)},goSynchroData:function(t,e){if(t){var n=e.cid,r=e.attr,a=e.value,s=e.attrModel,o=kt(t.list,n);if("boolean"!=typeof o){if(o&&It(o,r,a,s),"actions"===r.toLowerCase()){var u=t.list,l=i.default.uniqWith(i.default.concat(Se(u).actions,Se(t.caseList).actions),i.default.isEqual),c=i.default.uniqWith(i.default.concat(Se(u).events,Se(t.caseList).events),i.default.isEqual);t.globalVars=m(m([],l,!0),t.globalConstant,!0),t.globalEvents=c,t.pages[t.pageIndex]&&(t.pages[t.pageIndex].globalVars=l),t.pages[t.pageIndex]&&(t.pages[t.pageIndex].globalEvents=c)}if("source"===r){if(!o.tmpData.source)return!1;var h=o.tmpData.source,f=h.type;if("api"===f){var d=h[f].url.match(/{{[\w]*}}|(@)[\w]*/gm);if(d)for(var p=d.map((function(t){return t.replace(/{{|}}|@/gm,"")})),g=function(e){var n=p[e];if(!n||!t.globalVars||t.globalVars.findIndex((function(t){return t.mapField===n}))<0)return"continue";if(t.shareVariableTree||(t.shareVariableTree={}),t.shareVariableTree[n]&&i.default.isArray(t.shareVariableTree[n])){t.shareVariableTree[n].push(o.cid);var r=t.shareVariableTree[n];t.shareVariableTree[n]=i.default.uniq(r)}else t.shareVariableTree[n]=[],t.shareVariableTree[n].push(o.cid)},v=0;v<p.length;v++)g(v)}}}}this.commit("GoCom/execute")}},xe={updataList:function(t,e){var n=e.cid,r=i.default.cloneDeep(e.list),a=i.default.cloneDeep(t.list);if(console.log(r,a),-1===r.findIndex((function(t){return t.cid===n})))for(var s=0;s<r.length;s++){var o=r[s];if(o.children&&o.children.length)for(var u=o.cid,l=0;l<o.children.length;l++){var c=o.children[l];if(c.cid===n){c.pid=u;var h=i.default.cloneDeep(o.baseData),f=Lt(c.baseData,o.baseData,1);Object.assign(c.baseData,f),zt(o,h);break}}}else{var d=r.find((function(t){return t.cid===n})),p=d.pid;if(p){d.pid="";var m=kt(r,p);console.log(m,"movGroup"),Object.assign(d.baseData,Lt(d.baseData,m.baseData));s=m.children.findIndex((function(t){return t.cid===d.cid}));m.children.splice(s,1),0===m.children.length?kt(r,m.cid,!0):zt(m,m.baseData)}}t.list=r},updataListForContrast:function(t,e){var n=e.cid,r=e.list,a=kt(r,n);Ct(r,n);var s=Ct(t.list,n);if(!a.pid){a.pid=s.cid;var o=i.default.cloneDeep(a.baseData),u=Lt(a.baseData,s.baseData,1);Object.assign(a.baseData,u),zt(s,o)}},updateTree:function(t){for(var e=t.list,n=0;n<e.length;n++){var r=e[n];if(r.pid)(o=kt(e,r.pid))&&Object.assign(r.baseData,Lt(r.baseData,o.baseData));if(r.children)for(var a=0;a<r.children.length;a++){var s=r.children[a];if(s.pid!=r.cid){var o=kt(e,s.pid);if(i.default.cloneDeep(s.baseData),o){Object.assign(s.baseData,Lt(s.baseData,o.baseData));var u=Lt(s.baseData,r.baseData,1);Object.assign(s.baseData,u),zt(r,r.baseData)}s.pid=r.cid}}}}},Ee=function(t){return d(this,void 0,void 0,(function(){var e,n,r,i;return p(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]}}))}))},Me=function(t,e,n){return void 0===e&&(e="jspaths"),d(void 0,void 0,void 0,(function(){var r,i;return p(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]}))}))},Oe=function(t,e){return void 0===e&&(e="jspaths"),d(void 0,void 0,void 0,(function(){var n,r;return p(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]:(Ee(r),[3,4])):[3,5];case 2:return[4,Me(r,e)];case 3:i.sent(),i.label=4;case 4:return n++,[3,1];case 5:return[2]}}))}))},ke=function(t){return d(void 0,void 0,void 0,(function(){return p(this,(function(e){switch(e.label){case 0:return t.fonts&&t.fonts.length?[4,Oe(t.fonts,"fonts")]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}))}))},Ce=function(t){return d(void 0,void 0,void 0,(function(){return p(this,(function(e){switch(e.label){case 0:return t.jspaths&&t.jspaths.length?[4,Oe(t.jspaths,"jspaths")]:[3,2];case 1:e.sent(),e.label=2;case 2:return t.csspaths&&t.csspaths.length?[4,Oe(t.csspaths,"csspaths")]:[3,4];case 3:e.sent(),e.label=4;case 4:return t.fonts&&t.fonts.length?(i.default.uniqBy(t.fonts,"name"),[4,Oe(t.fonts,"fonts")]):[3,6];case 5:e.sent(),e.label=6;case 6:return[2]}}))}))},Ae=function(){var t;(t=document.getElementById("__custom_font__")).parentNode&&t.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&&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&&e[n].parentNode.removeChild(e[n])}(t.href)}))};var Pe={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}),ke(t.resource)},setCaseInfo:function(t,e){t.caseInfo=e},setPageId:function(t,e){t.pageId=e},addConstant:function(t,e){var n=i.default.find(t.constant,{name:e.name});n?Object.assign(n,e):t.constant.push(e)},editConstant:function(t,e){var n=i.default.find(t.constant,{name:e.name});n&&Object.assign(n,e)},delConstant:function(t,e){i.default.remove(t.constant,(function(t){return t.name==e}))},setResource:function(t,e){var n=e.type,r=e.value;t.resource[n]=r,Ae(),Ce(t.resource)},updataResource:function(t){Ae(),Ce(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=kt(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=kt(i,n);"boolean"!=typeof a&&Object.assign(a,r)},updataComponentForCaseList:function(t,e){var n=e.cid,r=e.data,i=t.caseList,a=kt(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=kt(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=kt(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(t,e){var n=e.cid,r=e.data;if(t.list.length){var a=kt(t.list,n);"boolean"!=typeof a&&(a.source=i.default.cloneDeep(r))}},updataAnimationForComponent:function(t,e){var n=e.cid,r=e.data;if(t.list.length){var i=kt(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=kt(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){Yt(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(t,e){var n=i.default.cloneDeep(e),r=n.id,a=n.multiple,s=n.origin,o=n.ctr,u=i.default.cloneDeep(t.selectd);if(a){var l=u.includes(r);if(u.length>=1)if(!u.every((function(n){return Pt(t.list,n,e.id)})))return void console.info("sorry Only sibling elements can be selected!");l?u.splice(u.findIndex((function(t){return t===r})),1):u.push(r),t.selectd=u}else t.selectd=[r];t.selectd.forEach((function(e){var n=kt(t.list,e);n.pid&&(kt(t.list,n.pid).toggle=!0);o||(n.toggle=!0)})),t.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){qt(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(t,e){var n=e.com,r=e.isMobile;"MultiStateComponent"!=n.componentType||n.stateChildren||(n.stateChildren=[]),"dynamicComponent"!=n.componentType||n.dynamicChildren||(n.dynamicChildren=new Map,n.activeDynamic="状态1",n.dynamicChildren.set("状态1",[])),r?t.list.push(n):t.list.unshift(n),t.menuList=i.default.cloneDeep(t.list),this.commit("GoCom/execute")},addComsForParent:function(t,e){var n=e.com,r=e.isMobile,a=e.PID;if("MultiStateComponent"!=n.componentType||n.stateChildren||(n.stateChildren=[]),"dynamicComponent"!=n.componentType||n.dynamicChildren||(n.dynamicChildren=new Map,n.activeDynamic="状态1",n.dynamicChildren.set("状态1",[])),a){var s=kt(t.list,a);r?(s.children=[],s.children.push(n)):s.children.unshift(n)}else r?t.list.splice(0,1,n):t.list.unshift(n);t.menuList=i.default.cloneDeep(t.list),this.commit("GoCom/execute")},addMyComs:function(t,e){var n;try{var r=e.data,a=e.shareVariableTree,s=e.globalVars,o=e.globalEvents;t.globalVars=i.default.uniq(i.default.concat(i.default.cloneDeep(t.globalVars),s)),t.globalEvents=i.default.uniq(i.default.concat(i.default.cloneDeep(t.globalEvents),o));var u=Object.keys(a),l=Object.keys(t.shareVariableTree),c=i.default.difference(u,l);c.length?c.forEach((function(e){t.shareVariableTree[e]=i.default.concat(i.default.cloneDeep(t.shareVariableTree[e]),a[e])})):t.shareVariableTree=Object.assign(i.default.cloneDeep(t.shareVariableTree),a),r instanceof Array?(Nt(r),(n=t.list).unshift.apply(n,r)):(Nt([r]),t.list.unshift(r)),t.menuList=i.default.cloneDeep(t.list),this.commit("GoCom/execute")}catch(t){}},addStateChildren:function(t,e){var n=kt(t.list,e.pid);n&&n.stateChildren.push(e)},addDynamicChildren:function(t,e){var n=kt(t.list,e.pid);n&&n.dynamicChildren.push(e)},arraySwap:function(t,e){var n;try{if(!e||2!=e.length)throw new Error("参数错误,方法接受两个组件的CID组成的数组!");var r=i.default.cloneDeep(t.list),a=kt(r,e[0]),s=kt(r,e[1]),o=kt(r,a.pid),u={},l=0,c=0;if(s)if("selectContainer"==s.componentType){var h=kt(r,e[1]);o?(l=i.default.findIndex(o.children,(function(t){return t.cid==e[0]})),u=o.children[l],o.children=o.children.filter((function(t){return t.cid!==u.cid}))):(u=kt(r,e[0]),r=r.filter((function(t){return t.cid!==u.cid}))),u.cid=Gt(),u.pid=h.cid,h.children.push(u)}else if(a.pid||s.pid)if(o)if(l=i.default.findIndex(o.children,(function(t){return t.cid==e[0]})),u=o.children[l],a.pid!==s.pid){h=kt(r,s.pid);c=i.default.findIndex(h.children,(function(t){return t.cid==e[1]}));f=h.children[c];u.cid=Gt(),u.pid=h.cid,f.cid=Gt(),f.pid=o.cid,o.children.splice(l,1,f),h.children.splice(c,1,u)}else c=i.default.findIndex(o.children,(function(t){return t.cid==e[1]})),(n=o.children).splice.apply(n,m([c,1],o.children.splice(l,1,o.children[c]),!1));else{var h=kt(r,s.pid);l=i.default.findIndex(r,(function(t){return t.cid==e[0]})),c=i.default.findIndex(h.children,(function(t){return t.cid==e[1]})),u=kt(r,a.cid);var f=h.children[c];u.cid=Gt(),u.pid=h.cid,f.cid=Gt(),f.pid=null,r.splice(l,1,f),h.children.splice(c,1,u)}else Mt(t.list,e[0],e[1]);else l=i.default.findIndex(o.children,(function(t){return t.cid==e[0]})),u=o.children[l],o.children.splice(l,1),u.cid=Gt(),u.pid=null,r.push(u);t.list=r}catch(t){console.warn("组件位置交换发生错误",t)}},changeDynamicState:function(t,e){var n=kt(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=kt(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(t,e){e.length>0&&e.forEach((function(e){t.list.unshift(e)})),t.menuList=i.default.cloneDeep(t.list),this.commit("GoCom/execute")},updataName:function(t,e){var n=kt(t.list,e.cid);n&&(n.name=e.name)},setCurrentEdited:function(t,e){if(e){var n=kt(t.list,e);if("boolean"!=typeof n){var r=Bt(n);n.children=r}t.currentEditerCid=e}else t.currentEditerCid=""}},Re={layout:function(t,e){var n=function(t,e){try{var n=t.map((function(t){var n=kt(e,t);if("object"==typeof n)return n;throw"Please check whether the input and output parameters are correct!"}));if(i.default.every(n,Object))return n;throw"Please check whether the input and output parameters are correct!"}catch(t){return console.error(t),[]}}(t.selectd,t.list);switch(e){case"alignLeft":!function(t,e){1===t.length&&(t[0].baseData.left=0);var n=i.default.sortBy(t,(function(t){return t.baseData.left}))[0].baseData.left;t.map((function(t){return t.baseData.left=n}))}(n);break;case"alignRight":!function(t,e){if(1===t.length){var n=e.plant?e.plant.baseData:{width:1920,height:1080};t[0].baseData.left=n.width-t[0].baseData.width}var r=i.default.sortBy(t,(function(t){return t.baseData.left})),a=1*r[r.length-1].baseData.left+1*r[r.length-1].baseData.width;t.map((function(t){return t.baseData.left=a-1*t.baseData.width}))}(n,t);break;case"horizontally":!function(t,e){if(1===t.length){var n=e.plant?e.plant.baseData:{width:1920,height:1080};t[0].baseData.left=n.width/2-t[0].baseData.width/2}var r=i.default.sortBy(t,(function(t){return t.baseData.left})),a=i.default.sortBy(t,(function(t){return 1*t.baseData.left+1*t.baseData.width})),s=(1*r[0].baseData.left+(1*a[a.length-1].baseData.left+1*a[a.length-1].baseData.width))/2;t.map((function(t){return t.baseData.left=s-t.baseData.width/2}))}(n,t);break;case"alignTop":!function(t,e){1===t.length&&(t[0].baseData.top=0);var n=1*i.default.sortBy(t,(function(t){return t.baseData.top}))[0].baseData.top;t.map((function(t){return t.baseData.top=n}))}(n);break;case"alignBottom":!function(t,e){if(1===t.length){var n=e.plant?e.plant.baseData:{width:1920,height:1080};t[0].baseData.top=n.height-t[0].baseData.height}var r=i.default.sortBy(t,(function(t){return 1*t.baseData.top})),a=1*r[r.length-1].baseData.top+1*r[r.length-1].baseData.height;t.map((function(t){return t.baseData.top=a-1*t.baseData.height}))}(n,t);break;case"verticalCenter":!function(t,e){if(1===t.length){var n=e.plant?e.plant.baseData:{width:1920,height:1080};t[0].baseData.top=n.height/2-t[0].baseData.height/2}var r=i.default.sortBy(t,(function(t){return t.baseData.top})),a=i.default.sortBy(t,(function(t){return 1*t.baseData.top+1*t.baseData.height})),s=(1*r[0].baseData.top+(1*a[a.length-1].baseData.top+1*a[a.length-1].baseData.height))/2;t.map((function(t){return t.baseData.top=s-t.baseData.height/2}))}(n,t);break;case"topDistribution":!function(t){if(t.length<3)return console.warn("A minimum of three elements are required for a distribution arrangement"),!1;var e=i.default.sortBy(t,(function(t){return t.baseData.top})),n=(e[e.length-1].baseData.top-e[0].baseData.top)/(e.length-1);e.map((function(t,r){r>0&&r<e.length-1&&(t.baseData.top=1*e[0].baseData.top+n*r)}))}(n);break;case"bottomDistribution":!function(t){if(t.length<3)return console.warn("A minimum of three elements are required for a distribution arrangement"),!1;var e=i.default.sortBy(t,(function(t){return t.baseData.top+t.baseData.height})),n=(e[e.length-1].baseData.top+e[e.length-1].baseData.height-(e[0].baseData.top+e[0].baseData.height))/(e.length-1);e.map((function(t,r){r>0&&r<e.length-1&&(t.baseData.top=1*e[0].baseData.top+1*e[0].baseData.height-1*t.baseData.height+n*r)}))}(n);break;case"xCenterDistribution":!function(t){if(t.length<3)return console.warn("A minimum of three elements are required for a distribution arrangement"),!1;var e=i.default.sortBy(t,(function(t){return t.baseData.left+t.baseData.width/2})),n=1*e[e.length-1].baseData.left+e[e.length-1].baseData.width/2,r=1*e[0].baseData.left+e[0].baseData.width/2,a=(n-r)/(e.length-1);e.map((function(t,n){n>0&&n<e.length-1&&(t.baseData.left=r-t.baseData.width/2+a*n)}))}(n);break;case"leftDistribution":!function(t){if(t.length<3)return console.warn("A minimum of three elements are required for a distribution arrangement"),!1;var e=i.default.sortBy(t,(function(t){return t.baseData.left})),n=(e[e.length-1].baseData.left-e[0].baseData.left)/(e.length-1);e.map((function(t,r){r>0&&r<e.length-1&&(t.baseData.left=e[0].baseData.left+n*r)}))}(n);break;case"rightDistribution":!function(t){if(t.length<3)return console.warn("A minimum of three elements are required for a distribution arrangement"),!1;var e=i.default.sortBy(t,(function(t){return t.baseData.left+t.baseData.width})),n=(e[e.length-1].baseData.left+e[e.length-1].baseData.width-(e[0].baseData.left+e[0].baseData.width))/(e.length-1);e.map((function(t,r){r>0&&r<e.length-1&&(t.baseData.left=e[0].baseData.left+e[0].baseData.width-t.baseData.width+n*r)}))}(n);break;case"yCenterDistribution":!function(t){if(t.length<3)return console.warn("A minimum of three elements are required for a distribution arrangement"),!1;var e=i.default.sortBy(t,(function(t){return t.baseData.top+t.baseData.height/2})),n=1*e[e.length-1].baseData.top+e[e.length-1].baseData.height/2,r=1*e[0].baseData.top+e[0].baseData.height/2,a=(n-r)/(e.length-1);e.map((function(t,n){n>0&&n<e.length-1&&(t.baseData.top=r-t.baseData.height/2+a*n)}))}(n)}}},Ne={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,l=t.resource;t.pages[t.pageIndex]={globalEvents:n,globalVars:r,list:i,name:a,theme:s,plant:o,shareVariableTree:u,resource:l},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}}},Ie={segmentationContainer:function(t,e){var n=i.default.cloneDeep(t.list),r=e.containerData,a=e.direction,s=[];if("del"==a)if(r.pid){var o=function(t){if(t.length)for(var e=0;e<t.length;e++)r.pid===t[e].cid?t[e].children.length&&(t[e].children.map((function(t){t.cid!==r.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)};n.length&&o(n)}else n.length&&(n=n.filter((function(t){return t.cid!==r.cid})));else if(r.pid){var u=function(t){for(var e=0;e<t.length;e++)if(r.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:Gt(),pid:t[e].cid,nestIndex:0,children:[],isTop:!1,isCol:"col"==a,isRow:"col"!=a,isDragged:!1,grandParentId:r.pid});s.length&&(s[0].cid=Gt(),s[0].pid=t[e].children[0].cid,t[e].children[0].children=s)}else t[e].hasOwnProperty("children")&&u(t[e].children)};n.length&&u(n)}else{var l=kt(n,r.cid);if(l){l.direction=a,1===l.children.length&&(s=l.children,l.children=[]);for(var c=0;c<2;c++)l.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:Gt(),pid:l.cid,nestIndex:0,children:[],isTop:!1,isCol:"col"==a,isRow:"col"!=a,isDragged:!1,grandParentId:r.pid});s.length&&(s[0].cid=Gt(),s[0].pid=l.children[0].cid,l.children[0].children=s)}}t.list=n}},Ve={getCurrentPage:function(t){return t.pages.length?t.pages[t.pageIndex]:[]},globalSourceTree:function(t){if(t.list.length&&t.globalSource.length){var e=[];return Rt(i.default.cloneDeep(t.list),(function(t){var n,r,i;if("globalData"==(null===(r=null===(n=null==t?void 0:t.tmpData)||void 0===n?void 0:n.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;e.push({name:t.name,cid:t.cid,sourceId:a.id,viewComName:t.viewComName})}})),e}return[]}},Be={namespaced:!0,state:c,mutations:f(f(f(f(f(f(f(f(f({},g),Xt),ne),Te),xe),Pe),Re),Ne),Ie),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:Ve},Ye=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 Le(t.storeModule,e)},t.prototype.mapGetters=function(e){return je(t.storeModule,e)},t.prototype.mapMutations=function(e){return Fe(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}(),Le=He((function(t,e){var n;return Ue(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=ze(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})),Fe=He((function(t,e){var n;return Ue(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=ze(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})),je=He((function(t,e){var n={};return Ue(e).forEach((function(e){var r=e.key,i=e.val;i=t+i,n[r]=function(){if(!t||ze(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 Ue(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 He(t){return function(e,n){return"string"!=typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function ze(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 qe=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=Gt(),t&&(Object.keys(t).forEach((function(n){e[n]=t[n]})),["AnEchartsMap","AnMaptalks","AnEchartsMap1","AnArcgisMapBase","AnAMap1","AnCesium","AnThreeMap3DChina","AnThreeMapForCesium","AnGisMap","AnMineMap","MineMapMarkerLayer","MineMapClusterLayer"].includes(t.viewComName)&&(this.componentType="MultiStateComponent"),"AnDynamic"===t.viewComName&&(this.componentType="dynamicComponent"))},Ge=function(){function t(t){this.vueServer=t,this.loadScript=Me}return t.setStore=function(t){this.store=t},t.prototype.loadComponents=function(t){var e=t&&t.list?t.list:[];Rt(e,(function(t){t.viewComName&&(t&&t.path&&t.path,t.origin,t.viewComName?t.viewComName:t.rawData.viewComName)})),t&&this.vueServer.callMutation("reversal",i.default.cloneDeep(t))},t.prototype.addStore=function(t){this.vueServer.callMutation("setActive",{id:t}),this.vueServer.callMutation("addComs",this)},t.prototype._addPlantStore=function(){this.vueServer.callMutation("setPlant",this)},t.prototype._loadComTmp=function(t,e){return d(this,void 0,void 0,(function(){var n,r,i=this;return p(this,(function(a){switch(a.label){case 0:if(window[e])return[3,5];n=function(e){var n;return p(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,a.label=1;case 1:return r<t.length?[5,n(r)]:[3,4];case 2:a.sent(),a.label=3;case 3:return r++,[3,1];case 4:window[e]=e,a.label=5;case 5:return[2]}}))}))},t.prototype._load=function(t){return d(this,void 0,void 0,(function(){var e=this;return p(this,(function(n){return[2,new Promise((function(n){n(e.loadScript(t))}))]}))}))},t}(),We=function(){function t(t){var e=t.dbName,n=t.tables,r=t.version,i=void 0===r?1:r,a=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=i,this.openDB(f({dbName:e,tables:n,version:i},a))}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}(),Ze=function(){function t(){this.VueServer=new Ye}return t.getInstance=function(){return this.instance||(this.db=new We({dbName:"AnovGo",tables:["logs"]}),this.instance=new t),this.instance},t.prototype.getAppStore=function(){return t.store},t.setAppStore=function(e){t.store=e,Ye.setAppStore(e),Ge.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 qe(t);e?this.add(n.cid,n,!0):this.add(n.cid,n)},t.prototype.renderForParent=function(t,e,n){var r=new qe(t);void 0!==n?this.addForParent(r.cid,r,e,n):this.addForParent(r.cid,r,e)},t.prototype.reversal=function(t){new Ge(new Ye).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,l=i.cid,c=i.actions.eventName,h=[];h=i.hasOwnProperty("index")?t.filter((function(t){return t.id==l&&t.eventType==c&&parseInt(t.index)+1==parseInt(i.index)})):t.filter((function(t){return t.id===l&&t.eventType===c}));var f=i.actions.mode;!e||e.filter((function(t){return t.id===l&&t.type===c}));for(var d=function(t){var a=e[t];if(a.type!=c)return"break";if(a.current=!1,a.eventSourceId="",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=kt(r,l),h=null===(u=null==o?void 0:o.tmpData)||void 0===u?void 0:u.actions;h&&h.length?h.forEach((function(t){var e=t.vars.find((function(t){return t.mapField==a.mapField}));e&&(a.value=e.value,a.current=!0)})):(a.current=!1,a.value=null)}var f=n[a.mapField];if(!n)return{value:void 0};f&&f.length&&f.forEach((function(t){a.eventSourceId=t;var n=kt(r,t);a.id==l&&setTimeout((function(){ge(n,e,!0,s)}))}))},p=0;p<e.length;p++){var m=d(p);if("object"==typeof m)return m.value;if("break"===m)break}var g=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=kt(r,t.pid))&&(n.activeDynamic=t.name,n.isShow=!0,t.visible||(n.isShow=!1)):(n=kt(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})})))};for(p=0;p<h.length;p++)g(p)}(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}(),Ke=Object.defineProperty,$e=Object.getOwnPropertySymbols,Xe=Object.prototype.hasOwnProperty,Je=Object.prototype.propertyIsEnumerable,Qe=(t,e,n)=>e in t?Ke(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,tn=(t,e)=>{for(var n in e||(e={}))Xe.call(e,n)&&Qe(t,n,e[n]);if($e)for(var n of $e(e))Je.call(e,n)&&Qe(t,n,e[n]);return t},en=(t,e,n)=>(Qe(t,"symbol"!=typeof e?e+"":e,n),n),nn=(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())})),rn={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},an="data-watermark-tag",sn={childList:!0,subtree:!0,attributeFilter:["style",an]};var on=t=>{let e="";return Object.keys(t).forEach((n=>{const r=n.replace(/([A-Z])/g,"-$1").toLowerCase();e+=`${r}:${t[n]};`})),e},un=(t="")=>{return`${e=t,window.btoa(decodeURI(encodeURIComponent(e)))}-${(new Date).getTime()}-${Math.floor(Math.random()*Math.pow(10,8))}`;var e};var ln=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver,cn=u((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(){u(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 s&&s.global===s?s:void 0,o=a.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),u=a.saveAs||("object"!=typeof window||window!==a?function(){}:"download"in HTMLAnchorElement.prototype&&!o?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 s="application/octet-stream"===t.type,u=/constructor/i.test(a.HTMLElement)||a.safari,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||s&&u||o)&&"undefined"!=typeof FileReader){var c=new FileReader;c.onloadend=function(){var t=c.result;t=l?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=t:location=t,i=null},c.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=u.saveAs=u,t.exports=u}()})),hn=function(t){if(0===t.length)return[];var e=function(t){for(var n,r,a,s=0;s<t.length;s++)t[s].tmpData&&(t[s]=Object.assign({},(r=t[s],a=void 0,delete(a=i.default.cloneDeep(r)).comData,f({},a)))),t[s]&&t[s].children&&(null===(n=t[s])||void 0===n?void 0:n.children.length)?e(t[s].children):t[s]&&t[s].dynamicChildren&&Array.from(t[s].dynamicChildren).forEach((function(t,n){e(t[1])}))};return e(t),t},fn=function(t){var e=i.default.cloneDeep(t)?i.default.cloneDeep(t):{};"string"==typeof t&&(e=JSON.parse(t));var n=[];if(e instanceof Array)e.forEach((function(t,e){var r=JSON.parse(t.caseDetailData)?JSON.parse(t.caseDetailData):{},i=t.caseDetailPath,a=t.caseDetailName,s=r.theme,o=void 0===s?null:s,u=r.globalVars,l=void 0===u?null:u,c=r.shareVariableTree,h=void 0===c?null:c,f=r.plant,d=void 0===f?null:f,p=r.list,m=void 0===p?[]:p,g=r.path,v=void 0===g?"":g;r.name;var y=r.resource,b=void 0===y?{jspaths:[],csspaths:[],otherpaths:[]}:y,_=r.watermark,w=void 0===_?null:_,D=r.tw,S=void 0===D?null:D,T=r.globalSource,x=void 0===T?[]:T,E=r.globalEvents,M=void 0===E?[]:E;n.push({path:v||i,theme:o,name:a,resource:b,tw:S,watermark:w,globalSource:x,globalVars:l,globalEvents:M,shareVariableTree:h,plant:d,list:hn(m)})}));else{var r=e.theme,a=void 0===r?null:r,s=e.globalVars,o=void 0===s?null:s,u=e.shareVariableTree,l=void 0===u?null:u,c=e.plant,h=void 0===c?null:c,f=e.list,d=void 0===f?[]:f,p=e.resource,m=void 0===p?{jspaths:[],csspaths:[],otherpaths:[]}:p,g=e.watermark,v=void 0===g?null:g,y=e.tw,b=void 0===y?null:y,_=e.globalSource,w=void 0===_?[]:_,D=e.globalEvents,S=void 0===D?[]:D;n.push({resource:m,tw:b,watermark:v,globalSource:w,theme:a,globalVars:o,globalEvents:S,shareVariableTree:l,plant:h,list:hn(d)})}return n};function dn(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||dn("wrap",u);var l=u.clientWidth,c=u.clientHeight,h=document.querySelector(r);h||dn("view",h),h.style.position="absolute",h.style.width=i+"px",h.style.height=a+"px";var f,d,p,m,g=Math.min(l/i,c/a);if(e){switch(h.style.transform="scale(".concat(g,")"),s){case"center":f=(l-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=(c-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(l/i,", ").concat(c/a,"')"),f=(l-i)/2+"px",d=(c-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}(),mn=function(){function t(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 t.prototype.reset=function(t){this.initSize(this.size),this.layout(),t?this.scale(t):this.scale()},t.getInstance=function(e){return t.instance||(t.instance=new t(e)),t.instance},t.prototype.removeResize=function(){window.removeEventListener("resize",this.reset.bind(this,void 0))},t.prototype.getDom=function(t){if(i.default.isElement(t))return t;var e=document.querySelector(t);return i.default.isElement(e)?e:null},t.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()},t.prototype.initSize=function(t){this.outSize.w=this.wrap.clientWidth,this.outSize.h=this.wrap.clientHeight,this.inSize=t},t.prototype.verificationDom=function(){null!=this.wrap&&null!=this.target&&this.isChildOf(this.wrap,this.target)||console.warn("Please pass in the DOM element correctly!")},t.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")},t.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},t.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,")")},t.prototype.resize=function(){},t}(),gn=u((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):l("cannot fetch resource: "+t+", status: "+i.status)}function u(){r?n(r):l("timeout of "+e+"ms occured while fetching resource: "+t)}function l(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 l(t,e||{}).then((function(t){return t.toDataURL()}))},toJpeg:function(t,e){return l(t,e=e||{}).then((function(t){return t.toDataURL("image/jpeg",e.quality||1)}))},toBlob:function(t,e){return l(t,e||{}).then(n.canvasToBlob)},toPixelData:function(t,e){return l(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 c(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 l(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 c(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 c(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}()})),vn=function(t){if(!t)return!1;return 1==new RegExp(/http(s)?:\/\/([\w-]+\.)+[\w-]+(\/[\w- .\/?%&=]*)?/).test(t)},yn=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)}},_n=function(t,e){return d(void 0,void 0,void 0,(function(){var n;return p(this,(function(r){switch(r.label){case 0:return r.trys.push([0,11,,12]),"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,yn(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]}}))}))},wn=function(t,e,n,r){return d(void 0,void 0,void 0,(function(){return p(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,a.default({url:t,method:"GET",responseType:"arraybuffer",params:{url:e,dom:n,quality:r}})];case 1:return[2,i.sent()];case 2:return i.sent(),console.warn("请求截图服务器发生错误,请检查地址及参数是否正确!",{url:t,path:e,dom:n,quality:r}),[2,null];case 3:return[2]}}))}))},Dn=function(t,e){return d(void 0,void 0,void 0,(function(){var n,r;return p(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,gn.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]}}))}))},Sn=function(t){return"".concat(t>15?"":0).concat(t.toString(16))},Tn=function(t){var e=t.r,n=t.g,r=t.b,i=t.a,a=void 0===i?1:i;return"#".concat(Sn(e)).concat(Sn(n)).concat(Sn(r)).concat(1===a?"":Sn(Math.floor(255*a)))},xn=function(t){var e=t.r,n=t.g,r=t.b;return"rgb(".concat(e,",").concat(n,",").concat(r,")")},En=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,")")},Mn=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}},On=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])}},kn=function(t){if(t.startsWith("#"))return Mn(t);if(t.startsWith("rgb"))return On(t);if("transparent"===t)return Mn("#00000000");throw new Error("color string error: ".concat(t))},Cn=Object.freeze({__proto__:null,Watermark:class{constructor(t={}){en(this,"options"),en(this,"container"),en(this,"watermarkContent"),en(this,"watermarkDom"),en(this,"style"),en(this,"watermarkTag"),en(this,"shadowRoot"),en(this,"mutationObserver"),en(this,"_isAgainRender",(t=>{if("attributes"===t.type){if(t.attributeName===an)return!0;if(this.watermarkTag===this._getNodeRandomId(t.target))return!0}return!(!t.removedNodes.length||this.watermarkTag!==this._getNodeRandomId(t.removedNodes[0]))})),en(this,"_getNodeRandomId",(t=>{var e,n;return null==(e=null==t?void 0:t.dataset)?void 0:e[(n=an,n.split("-").slice(1).reduce(((t,e,n)=>0===n?e:`${t}${e[0].toUpperCase()+e.slice(1)}`)))]})),en(this,"_destroyMutationObserver",(()=>{this.mutationObserver&&(this.mutationObserver.takeRecords(),this.mutationObserver.disconnect(),this.mutationObserver=null)})),en(this,"_getWatermarkDom",(t=>nn(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:l,fontSize:c,fontStyle:h,fontVariant:f,fontWeight:d,fontFamily:p,fontColor:m,textAlign:g,textBaseline:v,image:y,blindText:b,blindOpacity:_}=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)),b&&(S.globalAlpha=_,S.font="14px normal",S.fillText(b,0,0)),S.globalAlpha=l,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(c);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-(c*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",on(this.style))}return this.watermarkDom.setAttribute(an,this.watermarkTag),this.watermarkDom})))),en(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({},rn,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=un("watermark"),this.mutationObserver=null,this._render()}update(t={}){this.options=tn(tn({},this.options),t),this.style.zIndex=this.options.zIndex,this._render()}show(){this.watermarkDom&&(this.style.display="block",this.watermarkDom.setAttribute("style",on(this.style)))}hide(){this.watermarkDom&&(this.style.display="none",this.watermarkDom.setAttribute("style",on(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 nn(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(an,e);const a=tn({position:"relative"},n);return r||delete a.position,i.setAttribute("style",on(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",on({pointerEvents:"none"})),e.setAttribute(an,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),ln&&this.options.monitor&&(this.mutationObserver=new ln((t=>{t.forEach((t=>{if(this._isAgainRender(t))return this.destroy(),void this._render()}))})),this.mutationObserver.observe(this.container,sn),this.shadowRoot&&this.mutationObserver.observe(this.shadowRoot,sn))}))}},generateComponentList:hn,generateCaseDataJson:fn,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,l=void 0===u?null:u,c=e.list,h=void 0===c?[]:c,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,l=t.plant),{theme:r,globalVars:a,globalEvents:v,shareVariableTree:o,plant:l,undos:d,undoRedoPointer:m,list:hn(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:l().format("YYYY-MM-DD , h:mm:ss"),caseData:fn(o)},h=new Blob([JSON.stringify(c)],{type:"json"});cn.saveAs(h,n+".json")},generateJson:function(t){var e=t.caseName,n=void 0===e?"":e,r=t.caseData;return t.plangInfoForPsd,{caseName:n,createTime:l().format("YYYY-MM-DD , h:mm:ss"),caseData:fn(r)}},SizeAdaption:pn,Scale:mn,loadFontResource:Ee,loadScript:Me,removeTag:Ae,loadTag:Ce,loadFont:ke,getDataForEvaluator:_,recursion:Rt,encrypt:$t,decrypt:function(t){var e=new Tt;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:Kt,genID:Gt,arraySwap:Et,arraySwapDeep:Ot,arraySwapForId:Mt,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:qt,selectdArea:Ut,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:Vt,resetPositionForGroup:function(t,e){var n=e.map((function(t){return t.cid}));e.forEach((function(e){e.pid&&Yt(e,t)}));var r=Ut(n,e);return Vt(r,e),{left:r.left,top:r.top,width:r.width,height:r.height}},setPositionForWorld:Yt,breakUp:Bt,findItem:At,findItemDeep:kt,findParentDeep:Ct,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){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:Ht,updataAttribute:It,isPeer:Pt,transformPosition:Lt,upDataGroup:zt,upDataGroupChildren:function(t,e,n){var r=t.children,a=i.default.cloneDeep(e),s=i.default.cloneDeep(Ht(r)),o=a.left,u=a.top;a.width,a.height;var l=s.left,c=s.top,h=s.width,f=s.height,d={left:o+l,top:u+c,width:h,height:f,angle:e.angle?e.angle:0};return r.forEach((function(t){var e=i.default.cloneDeep(t.baseData);t.baseData.left<0?e.left=0:e.left=e.left-l,t.baseData.top<0?e.top=0:e.top=e.top-c,t.baseData=e})),t.children=r,d},resziePositionForGroup:function(t,e,n,r){var a=t.baseData.left,s=t.baseData.top,o=e.left,u=e.top,l=i.default.cloneDeep(t.children),c=n||"";if(o-a<0)for(var h=0;h<l.length;h++){(f=l[h]).cid!==c&&(f.baseData.left=f.baseData.left+(a-o))}if(u-s<0)for(h=0;h<l.length;h++){var f;(f=l[h]).cid!==c&&(f.baseData.top=f.baseData.top+(s-u))}t.children=l},genCopyName:Wt,resetID:Nt,getUrlParams:Zt,updataSizeDeep:xt,resizePosition:Ft,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=Ft(e,s.cid),u=Ft(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:Jt,getShareTree:function(t,e){try{var n={},r=[],i=[];return Rt(t,(function(t){var a,s,o,u=null===(a=null==t?void 0:t.tmpData)||void 0===a?void 0:a.source;(Qt(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)&&Kt({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 d(void 0,void 0,void 0,(function(){var e,n,r,i,a,s,o,u;return p(this,(function(l){switch(l.label){case 0:return l.trys.push([0,11,,12]),e=t.dom,n=t.servePath,r=t.targetPath,i=t.quality,a=t.type,s=void 0,vn(n)&&vn(r)?[4,wn(n,r,e,i||.5)]:[3,5];case 1:return(o=l.sent())&&200==o.status&&o.data?(s=o.data,[3,4]):[3,2];case 2:return console.warn("截取错误,请检查网络或服务地址配置是否正确,已转换为dom-to-img."),[4,Dn(e,i||.5)];case 3:s=l.sent(),l.label=4;case 4:return[3,7];case 5:return console.warn("地址错误,请检查传入的地址是否争取,已转换为dom-to-img."),[4,Dn(e,i||.5)];case 6:s=l.sent(),l.label=7;case 7:return s?[4,_n(s,a)]:[3,9];case 8:return[2,l.sent()];case 9:return[2,null];case 10:return[3,12];case 11:return u=l.sent(),console.error("截图发生错误:"+u),[2,null];case 12:return[2]}}))}))},toHex:Sn,toHexString:Tn,toRgbString:xn,toRgbaString:En,parseHexColor:Mn,parseRgbaColor:On,parseColorString:kn,getColorInfo:function(t){var e=kn(t);return{hex:Tn(e),rgba:En(e),rgb:xn(e),rgbaObj:e}},hexToRgba:function(t){var e=kn(t);return En(e)},rgbaToHex:function(t){var e=kn(t);return Tn(e)}});function An(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Pn(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}
|
|
9
|
+
* @fileOverview
|
|
10
|
+
* @name asn1-1.0.js
|
|
11
|
+
* @author Kenji Urushima kenji.urushima@gmail.com
|
|
12
|
+
* @version asn1 1.0.13 (2017-Jun-02)
|
|
13
|
+
* @since jsrsasign 2.1
|
|
14
|
+
* @license <a href="https://kjur.github.io/jsrsasign/license/">MIT License</a>
|
|
15
|
+
*/
|
|
16
|
+
var Ft={};void 0!==Ft.asn1&&Ft.asn1||(Ft.asn1={}),Ft.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 dt(r,16).xor(t).add(dt.ONE).toString(16).replace(/^-/,"")}return e},this.getPEMStringFromHex=function(t,e){return hextopem(t,e)},this.newObject=function(t){var e=Ft.asn1,n=e.DERBoolean,r=e.DERInteger,i=e.DERBitString,a=e.DEROctetString,s=e.DERNull,o=e.DERObjectIdentifier,u=e.DEREnumerated,l=e.DERUTF8String,c=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 l(t[w]);if("numstr"==w)return new c(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()}},Ft.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 dt(r,2).toString(10),r=""}return e},Ft.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 dt(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},Ft.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""}},Ft.asn1.DERAbstractString=function(t){Ft.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(Ft.asn1.DERAbstractString,Ft.asn1.ASN1Object),Ft.asn1.DERAbstractTime=function(t){Ft.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(Ft.asn1.DERAbstractTime,Ft.asn1.ASN1Object),Ft.asn1.DERAbstractStructured=function(t){Ft.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(Ft.asn1.DERAbstractStructured,Ft.asn1.ASN1Object),Ft.asn1.DERBoolean=function(){Ft.asn1.DERBoolean.superclass.constructor.call(this),this.hT="01",this.hTLV="0101ff"},Lt.lang.extend(Ft.asn1.DERBoolean,Ft.asn1.ASN1Object),Ft.asn1.DERInteger=function(t){Ft.asn1.DERInteger.superclass.constructor.call(this),this.hT="02",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=Ft.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new dt(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(Ft.asn1.DERInteger,Ft.asn1.ASN1Object),Ft.asn1.DERBitString=function(t){if(void 0!==t&&void 0!==t.obj){var e=Ft.asn1.ASN1Util.newObject(t.obj);t.hex="00"+e.getEncodedHex()}Ft.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(Ft.asn1.DERBitString,Ft.asn1.ASN1Object),Ft.asn1.DEROctetString=function(t){if(void 0!==t&&void 0!==t.obj){var e=Ft.asn1.ASN1Util.newObject(t.obj);t.hex=e.getEncodedHex()}Ft.asn1.DEROctetString.superclass.constructor.call(this,t),this.hT="04"},Lt.lang.extend(Ft.asn1.DEROctetString,Ft.asn1.DERAbstractString),Ft.asn1.DERNull=function(){Ft.asn1.DERNull.superclass.constructor.call(this),this.hT="05",this.hTLV="0500"},Lt.lang.extend(Ft.asn1.DERNull,Ft.asn1.ASN1Object),Ft.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 dt(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};Ft.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=Ft.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(Ft.asn1.DERObjectIdentifier,Ft.asn1.ASN1Object),Ft.asn1.DEREnumerated=function(t){Ft.asn1.DEREnumerated.superclass.constructor.call(this),this.hT="0a",this.setByBigInteger=function(t){this.hTLV=null,this.isModified=!0,this.hV=Ft.asn1.ASN1Util.bigIntToMinTwosComplementsHex(t)},this.setByInteger=function(t){var e=new dt(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(Ft.asn1.DEREnumerated,Ft.asn1.ASN1Object),Ft.asn1.DERUTF8String=function(t){Ft.asn1.DERUTF8String.superclass.constructor.call(this,t),this.hT="0c"},Lt.lang.extend(Ft.asn1.DERUTF8String,Ft.asn1.DERAbstractString),Ft.asn1.DERNumericString=function(t){Ft.asn1.DERNumericString.superclass.constructor.call(this,t),this.hT="12"},Lt.lang.extend(Ft.asn1.DERNumericString,Ft.asn1.DERAbstractString),Ft.asn1.DERPrintableString=function(t){Ft.asn1.DERPrintableString.superclass.constructor.call(this,t),this.hT="13"},Lt.lang.extend(Ft.asn1.DERPrintableString,Ft.asn1.DERAbstractString),Ft.asn1.DERTeletexString=function(t){Ft.asn1.DERTeletexString.superclass.constructor.call(this,t),this.hT="14"},Lt.lang.extend(Ft.asn1.DERTeletexString,Ft.asn1.DERAbstractString),Ft.asn1.DERIA5String=function(t){Ft.asn1.DERIA5String.superclass.constructor.call(this,t),this.hT="16"},Lt.lang.extend(Ft.asn1.DERIA5String,Ft.asn1.DERAbstractString),Ft.asn1.DERUTCTime=function(t){Ft.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(Ft.asn1.DERUTCTime,Ft.asn1.DERAbstractTime),Ft.asn1.DERGeneralizedTime=function(t){Ft.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(Ft.asn1.DERGeneralizedTime,Ft.asn1.DERAbstractTime),Ft.asn1.DERSequence=function(t){Ft.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(Ft.asn1.DERSequence,Ft.asn1.DERAbstractStructured),Ft.asn1.DERSet=function(t){Ft.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(Ft.asn1.DERSet,Ft.asn1.DERAbstractStructured),Ft.asn1.DERTaggedObject=function(t){Ft.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(Ft.asn1.DERTaggedObject,Ft.asn1.ASN1Object);var jt,Ut=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)}}(),Ht=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 Ut(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)?tt(t):et.unarmor(t),i=lt.decode(r);if(3===i.sub.length&&(i=i.sub[2].sub[0]),9===i.sub.length){e=i.sub[1].getHexStringValue(),this.n=bt(e,16),n=i.sub[2].getHexStringValue(),this.e=parseInt(n,16);var a=i.sub[3].getHexStringValue();this.d=bt(a,16);var s=i.sub[4].getHexStringValue();this.p=bt(s,16);var o=i.sub[5].getHexStringValue();this.q=bt(o,16);var u=i.sub[6].getHexStringValue();this.dmp1=bt(u,16);var l=i.sub[7].getHexStringValue();this.dmq1=bt(l,16);var c=i.sub[8].getHexStringValue();this.coeff=bt(c,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=bt(e,16),n=h.sub[1].getHexStringValue(),this.e=parseInt(n,16)}else e=i.sub[0].getHexStringValue(),this.n=bt(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 Ft.asn1.DERInteger({int:0}),new Ft.asn1.DERInteger({bigint:this.n}),new Ft.asn1.DERInteger({int:this.e}),new Ft.asn1.DERInteger({bigint:this.d}),new Ft.asn1.DERInteger({bigint:this.p}),new Ft.asn1.DERInteger({bigint:this.q}),new Ft.asn1.DERInteger({bigint:this.dmp1}),new Ft.asn1.DERInteger({bigint:this.dmq1}),new Ft.asn1.DERInteger({bigint:this.coeff})]};return new Ft.asn1.DERSequence(t).getEncodedHex()},e.prototype.getPrivateBaseKeyB64=function(){return X(this.getPrivateBaseKey())},e.prototype.getPublicBaseKey=function(){var t=new Ft.asn1.DERSequence({array:[new Ft.asn1.DERObjectIdentifier({oid:"1.2.840.113549.1.1.1"}),new Ft.asn1.DERNull]}),e=new Ft.asn1.DERSequence({array:[new Ft.asn1.DERInteger({bigint:this.n}),new Ft.asn1.DERInteger({int:this.e})]}),n=new Ft.asn1.DERBitString({hex:"00"+e.getEncodedHex()});return new Ft.asn1.DERSequence({array:[t,n]}).getEncodedHex()},e.prototype.getPublicBaseKeyB64=function(){return X(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}(Bt),zt=void 0!==j?null===(jt=j.env)||void 0===jt?void 0:jt.npm_package_version:void 0,qt=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 Ht(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(Q(t))}catch(t){return!1}},t.prototype.encrypt=function(t){try{return X(this.getKey().encrypt(t))}catch(t){return!1}},t.prototype.sign=function(t,e,n){try{return X(this.getKey().sign(t,e,n))}catch(t){return!1}},t.prototype.verify=function(t,e,n){try{return this.getKey().verify(t,Q(e),n)}catch(t){return!1}},t.prototype.getKey=function(t){if(!this.key){if(this.key=new Ht,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=zt,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)&&Gt(null==t?void 0:t.children,e)})),t},Wt=function(t,e,n){var r=t[n];return t.splice(n,1),t.splice(e,0,r),t},Zt=function(t,e,n){var r=i.default.findIndex(t,(function(t){return t.cid==n})),a=i.default.findIndex(t,(function(t){return t.cid==e}));return Wt(t,a,r)},$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&&Wt(a.children,r-1,r);break;case"down":r<a.children.length-2&&Wt(a.children,r+1,r);break;case"top":0!==r&&Wt(a.children,0,r);break;case"bottom":var o=a.children.length-1;r!==o&&Wt(a.children,o,r)}break}}}return t},Kt=function(t,e,n){var r=!1,a=function(t){for(var s=0;s<t.length;s++){if(t[s].cid==e){r=t[s],n&&i.default.remove(t,(function(t){return t.cid==e}));break}if(t[s].children)a(t[s].children);else if(t[s].dynamicChildren){if(t[s].dynamicChildren instanceof Map){for(var o=Array.from(t[s].dynamicChildren),u=0;u<o.length;u++)if(o[u]instanceof Array){var l=o[u][1];a(l)}}else if(t[s].dynamicChildren instanceof Array)for(o=t[s].dynamicChildren,u=0;u<o.length;u++)if(o[u]instanceof Array){l=o[u][1];a(l)}}else t[s].stateChildren&&a(t[s].stateChildren)}};return a(t),r||!1},Xt=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},Qt=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},Jt=function(t,e,n){var r=Qt(t,e),i=Qt(t,n);return r.pid&&i.pid||!r.pid&&!i.pid},te=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)},ee=function(t){var e=function(t,n){for(var r=function(r){var i=t[r],a=de();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)},ne=function(t,e,n,r){try{if(!t||!t.hasOwnProperty(e)&&!t.hasOwnProperty(r))throw"The property you want to modify is not found. Please check whether the attribute ".concat(e," is entered correctly!");if(r){i.default.cloneDeep(t[r][e]);t[r][e]=n}else t[e]=n}catch(t){console.error(t)}},re=function(t,e){e.forEach((function(e){e.baseData.left=e.baseData.left-t.left,e.baseData.top=e.baseData.top-t.top}))},ie=function(t){var e=i.default.cloneDeep(t),n=[];return e.children&&e.children.length&&e.children.forEach((function(t){ae(t,e.baseData),n.push(t)})),n},ae=function(t,e){t.baseData.left=t.baseData.left+e.left,t.baseData.top=t.baseData.top+e.top},se=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},oe=function(t,e){var n=i.default.cloneDeep(t),r=[],a=function(t,e){var n=Kt(t,e);r.push(n.baseData),n.pid&&a(t,n.pid)};a(n,e);var s={left:0,top:0};return r.map((function(t){t&&(s.left+=t.left,s.top+=t.top)})),s},ue=function(t,e){var n=i.default.cloneDeep(t);return n.length>1&&n.sort((function(t,n){return t.baseData[e]-n.baseData[e]})),n},le=function(t,e){var n=[];return t.map((function(t){var r=e.find((function(e){return e.cid===t}));r&&n.push(r)})),ce(n)},ce=function(t){if(t.length>0){var e={left:0,top:0,width:0,height:0},n=ue(t,"left"),r=ue(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}))),l=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,l)-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}},he=function(t,e,n){var r=t.children,a=i.default.cloneDeep(e),s=i.default.cloneDeep(ce(r)),o=a.left,u=a.top;a.width,a.height;var l=s.left,c=s.top,h=s.width,f=s.height,d={left:o+l,top:u+c,width:h,height:f,angle:e.angle?e.angle:0};return r.forEach((function(t){var e=i.default.cloneDeep(t.baseData);t.baseData.left<0?e.left=0:e.left=e.left-l,t.baseData.top<0?e.top=0:e.top=e.top-c,t.baseData=e})),t.baseData=d,t.children=r,d},fe=function(t,e){for(var n=0;n<t.length;n++){var r=t[n];t[n].index=n,r.children&&r.children.length?fe(r.children):e&&e(r)}},de=function(){return(Math.random().toString().substr(3,10)+Date.now()).toString()},pe=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,l=o.length;u<l;u++)if(o[u]===r)r++;else if(o[u]>r)break;return i+n+" "+r},me=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 ge(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 ve(t){var e=new qt;return e.setPublicKey("MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEApWni7uLYVV8iyDPTR6Zs\naj+2BHCn4xTzFeVHADzTdtBiFH9i4fKeDK0IfbPV/9TGeRYNfl0qSfdLtU+1ZIzm\npqHppadukmk5+NbBG4Xm/lAZgVt3dUIrSyamxVjwnymN7PLdxaSOS/mgU6SDGMhN\nTM76AXKZZXWMK12UCXvKkh+TkGufcXzLe7LtrvHPLOgcnEED2CkWATuE9g8K9j4T\neOMxhJcHBUmXLgU6Chufa4nBed2899E7jxJa14+J1IDa2ahrDFLZN7H//ZsvwnXq\nxVbxm0k5jyWqfCpg13V7zD3DxNWlo3MIh2fPtIEUDVhugqPd0jPmqquqdBNTnu2I\nGQIDAQAB"),e.encrypt(t)}var ye={updataArea:function(t,e){t.currentArea=e},selectdArea:function(t,e){var n=le(e,t.list);t.currentArea=n},updataAngle:function(t,e){var n=e.id,r=e.angle,i=Qt(t.list,n);"boolean"!=typeof i&&(i.baseData.angle=r)},updataBaseData:function(t,e){var n=e.data,r=e.ratio,i=Kt(t.list,n.cid),a=e.oldData;if("object"!=typeof i||i.pid){if("object"==typeof i&&i.pid){var s=Qt(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),he(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(t,e){if(e.ratio)for(var n=e.newData,r=e.oldData,a=n.width/r.width,s=n.height/r.height,o=t.cache.length;o--;)t.cache[o].baseData.left=t.cache[o].baseData.left*a,t.cache[o].baseData.width=t.cache[o].baseData.width*a,t.cache[o].baseData.top=t.cache[o].baseData.top*s,t.cache[o].baseData.height=t.cache[o].baseData.height*s;else for(o=t.cache.length;o--;){var u=i.default.cloneDeep(t.cache[o].baseData);u.left=u.left+e.deltaX,u.top=u.top+e.deltaY,t.cache[o].comPanel?t.cache[o].comPanel.setAttrData(Object.assign(u,e.baseData)):t.cache[o].baseData=u}},multipleUpdata:function(t,e){var n=e.ids,r=e.data,i=Qt(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=[Qt(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=Qt(t.list,o.pid);"object"==typeof u&&(he(u,u.baseData),t.groupFlag=!t.groupFlag)}}}else console.warn("Warning! please select the component to move.")},updataGroupBaseData:function(t,e){var n=Qt(t.list,e.pid),r=i.default.cloneDeep(n);Qt(n.children,e.cid),he(n,r.baseData)},editGroupBaseData:function(t,e){var n=Qt(t.list,e);n.children.forEach((function(t){ae(t,n.baseData)}))},syncBaseData:function(t,e){var n=e.cid,r=e.data,i=Qt(t.list,n);i.baseData=Object.assign({},i.baseData,r)},updataItemData:function(t,e){var n=e.cid,r=e.propsName,i=e.propsValue,a=Qt(t.list,n);a&&(a[r]=i)},updataOpacity:function(t,e){var n=e.cid,r=e.propsValue,i=Qt(t.list,n);"boolean"!=typeof i&&i&&(i.baseData.opacity=r)}},be={delListItem:function(t,e){var n=i.default.cloneDeep(t.list);"string"==typeof e?Kt(n,e,!0):e.forEach((function(t){Kt(n,t,!0)})),t.list=n},cloneItem:function(t){if(t.selectd.length>0){t.cloneCache=[];for(var e=0;e<t.selectd.length;e++){var n=Qt(t.list,t.selectd[e]);if("boolean"!=typeof n){var r=i.default.cloneDeep(n);r.cid=de(),r.pid="",t.cloneCache.push(r)}}}},shearItem:function(t,e){if(t.selectd.length>0){t.cloneCache=[];for(var n=0;n<t.selectd.length;n++){var r=Qt(t.list,t.selectd[n],!0);if("boolean"!=typeof r){var a=i.default.cloneDeep(r);a.cid=de(),t.cloneCache.push(a)}}t.selectd=[]}},pasteItem:function(t){var e,n=i.default.cloneDeep(t.cloneCache);if(n.length>0){var r=[];n.forEach((function(e){e.cid=de();var n=pe(e.name,t.list.map((function(t){return t.name})));if(e.name=n,e.children&&e.children.length>0&&e.children.forEach((function(t){t.pid=e.cid,t.cid=de()})),"dynamicComponent"==e.componentType){var i=void 0;e.dynamicChildren instanceof Map?i=e.dynamicChildren.get(e.activeDynamic):e.dynamicChildren instanceof Array&&(i=e.dynamicChildren.find((function(t){return t[0]==t.activeDynamic}))[1]),i.forEach((function(t){t.pid=e.cid,t.cid=de()}))}r.push(e.cid)})),t.selectd.length>0?le(t.selectd,t.list):ce(n),n.forEach((function(t){t.baseData.top=t.baseData.top+20,t.baseData.left=t.baseData.left+20})),(e=t.list).unshift.apply(e,i.default.cloneDeep(n)),t.selectd=r}},updataShow:function(t,e){var n=Kt(t.list,e);if("boolean"!=typeof n){var r=!n.isShow;ne(n,"isShow",r,"")}},changeShow:function(t,e){var n=e.cid,r=e.flag,i=Kt(t.list,n);i&&ne(i,"isShow",r,"")},updataLock:function(t,e){var n=Kt(t.list,e);if("boolean"!=typeof n){var r=!n.isLock;ne(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=ie(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=ie(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(t){i.default.cloneDeep(t.list);var e,n,r=[],a=[],s=de(),o=Qt(t.list,t.selectd[0]);o.pid?console.info("Sorry, only level 2 is supported group"):o.children&&1===t.selectd.length?console.info("Sorry, only level 2 is supported group"):(t.selectd.forEach((function(e){var n=t.list.findIndex((function(t){return t.cid===e}));if(n>-1){r.push(n);var i=t.list.splice(n,1)[0];i.pid=s,a.push(i)}})),e=r.sort((function(t,e){return t-e}))[0],n=1===a.length?i.default.cloneDeep(a[0].baseData):t.currentArea,Object.assign(n,{angle:0,opacity:100,rotate:0,rotateY:0}),re(n,a),t.list.splice(e,0,{cid:s,pid:"",isShow:!0,isLock:!1,editer:!1,baseData:n,z:0,toggle:!0,name:"群组",type:"folder",children:a}),t.selectd=[s])},moveUp:function(t,e){try{var n=t.list.findIndex((function(t){return t.cid===e}));n>=1?Wt(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?Wt(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?Wt(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?Wt(t.list,r,n):$t(t.list,"bottom",e)}catch(t){console.error(t)}}},_e=3e4,we=function(t,e){void 0===t&&(t="");var n=a.default.create({baseURL:t,timeout:_e,headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"}});return n.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)})),n.interceptors.response.use((function(t){var n;return 200===t.status||2e4==t.data.code?(e&&e(t),t.data):(e&&e(t),null==t||t.status,null===(n=null==t?void 0:t.data)||void 0===n||n.code,Promise.reject(t.data))}),(function(t){return e&&e(null==t?void 0:t.response),Promise.reject(t.response)})),n},De=we();function Te(t,e,n,r){return u(this,void 0,void 0,(function(){var a,s,o,u;return l(this,(function(l){switch(l.label){case 0:a=t,s=i.default.cloneDeep(n),o=e?e.toLowerCase():"get",l.label=1;case 1:return l.trys.push([1,3,,4]),[4,De({method:Ee[o],headers:r,url:a,params:s,timeout:3e4}).then((function(t){return{code:2e4,data:t.data}}))];case 2:return[2,l.sent()];case 3:return u=l.sent(),console.error("error:"+u.message),[3,4];case 4:return[2]}}))}))}function Se(t){return u(this,void 0,void 0,(function(){var e,n,r;return l(this,(function(i){switch(i.label){case 0:e=window.anUrl?window.anUrl:"",n=e+(window.agentPath?window.agentPath:"/ds/v1/api-proxy/v1/query"),o({},t),i.label=1;case 1:return i.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,De({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,i.sent()];case 3:return r=i.sent(),console.error("error:"+r.message),[3,4];case 4:return[2]}}))}))}var xe,Ee,Me=function(t,e,n){var r=t.tmpData.source,a=n?n.value.api.agency:r.api.agency,s=r.type;if("static"!==s){var o=n?n.value.api:r[s],u=o.url,l=o.headers,c=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);l.use&&(f=JSON.parse(l.value));var p={};return c&&i.default.isString(c)?i.default.assign(p,d,JSON.parse(c)):i.default.assign(p,d,c),Object.keys(p).forEach((function(t){var n=p[t],r=e.filter((function(t){return t.mapField==n.toString().replace("@","")}))[0];r&&(p[t]=r.value,u=i.default.replace(u,d[t],r.value))})),{url:u,requestType:h,params:c,headers:f,agency:a}}return null},Oe=function(t,e,n){void 0===e&&(e=[]),e||(e=[]);var r=Me(t,e);r&&n(r)},ke=function(t,e,n,r,i){t.then((function(t){!t||2e4!=t.code&&200!=t.code?Ae(e,Ce({error:!0,message:t.msg?t.msg:"data error"},e,n,r),i):n?Ae(e,Ce(t.data,e,n,r),i):Ae(e,Ce(t.data,e,n,r),i,t.data)})).catch((function(t){Ae(e,Ce({error:!0,message:t.msg?t.msg:"data error"},e,n,r),i)}))},Ce=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?m(t,a,s,r):new Promise((function(e,n){e(t)}))}catch(t){console.error(t)}},Ae=function(t,e,n,r){e.then((function(e){r?Pe(t,e,n,r):Pe(t,e,n)}))},Pe=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})},Re=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)Ve(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,Ae(e,Ce(o,e,r,n),i,u)}else"datasource"==t?Ie(s.dsName,{dsType:"1",sql:ve(s.inputSql)},e,n,i,r):"staticFile"==t?Ie(s.dsName,{dsType:s.dsType,sql:""},e,n,i,r):"indicator"==t?Ne(s.zbId,{},e,n,i,r):i({cid:e.cid,data:"",message:"发生错误"})}(a,t,e,n,s,o)}catch(t){r&&r(t),console.log("error:"+t)}},Ne=function(t,e,n,r,i,a){return u(void 0,void 0,void 0,(function(){var s,o,u,c,h;return l(this,(function(l){switch(l.label){case 0:return s=window.BaseUrl?window.BaseUrl.replace("/management",""):"",o=me("YZH_EXCHANGE_TOKEN")?me("YZH_EXCHANGE_TOKEN"):null===(h=window.yzhAuth)||void 0===h?void 0:h.getToken(),c=window.gdPassid,window.BASE_RELEASE?(console.log("发布:",o),u="".concat(s,"/ds/data-engine/v1/").concat(t,"/zb-query?token=").concat(o,"&passid=").concat(c,"&preview=1")):(console.log("编辑",o),u="".concat(s,"/ds/data-engine/v1/").concat(t,"/zb-query?token=").concat(o,"&passid=").concat(c)),[4,De({method:"POST",url:u,data:e,timeout:_e}).then((function(t){if(2e4==t.code){var e=JSON.parse(t.data);e?Ae(n,Ce(e,n,a,r),i):(Ae(n,Ce({error:!0,message:t.msg?t.msg:"data error"},n,a,r),i),i({data:e,message:"发生错误"}))}else i({data:"",message:"发生错误"}),console.error("发生错误"),Ae(n,Ce({error:!0,message:t.msg?t.msg:"data error"},n,a,r),i)})).catch((function(t){i(t)}))];case 1:return l.sent(),[2]}}))}))},Ie=function(t,e,n,r,i,a){return u(void 0,void 0,void 0,(function(){var s;return l(this,(function(o){switch(o.label){case 0:return s=window.BaseUrl?window.BaseUrl.replace("/management",""):"",[4,De({method:"get",url:"".concat(s,"/ds/v1/data-proxy/v1/").concat(t,"/query"),params:e,timeout:_e}).then((function(t){if(2e4==t.code){var e=JSON.parse(t.data);e?Ae(n,Ce(e,n,a,r),i):(Ae(n,Ce({error:!0,message:t.msg?t.msg:"data error"},n,a,r),i),i({data:e,message:"发生错误"}))}else i({data:"",message:"发生错误"}),console.error("发生错误"),Ae(n,Ce({error:!0,message:t.msg?t.msg:"data error"},n,a,r),i)})).catch((function(t){i(t)}))];case 1:return o.sent(),[2]}}))}))},Ve=function(t,e,n,r,i){void 0===n&&(n=!0);try{var a=Me(t,e,i),s=a.url,o=a.requestType,u=a.params,l=a.headers,c=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)})),ke(c?Se({method:o,url:s,params:u,headers:l}):Te(s,o,u,l),t,n,e,r)}catch(t){console.log("error:"+t)}},Be=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)&&Oe(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,l=s.requestType,c=s.params,h=s.headers;s.agency?Se({method:l,url:u,params:c,headers:h}).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,Ce(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}})})):Te(u,l,c,h).then((function(e){var i=[];if(r){var s=t.tmpData.source,o=s.converse,u=s.mapFields;o&&o.use&&a?m(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"}(xe||(xe={})),function(t){t.get="GET",t.post="POST",t.put="PUT",t.patch="PATCH",t.delete="DELETE"}(Ee||(Ee={}));var Ye=Object.freeze({__proto__:null,Http:function(t,e){return we(t,e)},axios:a.default,getDataForEvaluator:m,getData:Te,agentData:Se,getComponentData:Oe,autoUpdateComData:function(t,e,n){var r,a,s,o,u,l=null===(r=null==t?void 0:t.tmpData)||void 0===r?void 0:r.source,c=null===(s=null===(a=l[null==l?void 0:l.type])||void 0===a?void 0:a.autoUpdate)||void 0===s?void 0:s.open,h=null===(u=null===(o=l[null==l?void 0:l.type])||void 0===o?void 0:o.autoUpdate)||void 0===u?void 0:u.time;c&&i.default.isNumber(h)&&h>0&&setInterval((function(){Re(t,e,!0,n)}),1e3*h)},updateComData:Re,refreshData:Be,get ContentType(){return xe},get HttpMethod(){return Ee}}),Le=function(t,e){try{var n={},r=[],a=[],s=i.default.cloneDeep(t);return te(s,(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)&&ge({types:t.tmpData.actions.map((function(t){return t.eventType})),element:t,actions:r,events:a})})),te(s,(function(t){var e,i=null===(e=null==t?void 0:t.tmpData)||void 0===e?void 0:e.source;Fe(i,r,t,n)})),e&&e.length&&(r=c(c([],r,!0),e,!0)),{shareVariableTree:n,globalVars:r.filter((function(t){return t})),globalEvents:a.filter((function(t){return t}))}}catch(t){return console.error("error",t),{}}},Fe=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){je(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("@","")})),l=function(t){var i=u[t];if(!i||!e||e.findIndex((function(t){return t.mapField===i}))<0)return"continue";je(r,i,n.cid)},c=0;c<u.length;c++)l(c)}}},je=function(t,e,n){if(t[e]&&i.default.isArray(t[e])){t[e].push(n);var r=t[e];t[e]=i.default.uniq(r)}else t[e]=[],t[e].push(n)};function Ue(t){var e=[],n=[];te(i.default.cloneDeep(t),(function(t){var r,i;(null===(i=null===(r=null==t?void 0:t.tmpData)||void 0===r?void 0:r.actions)||void 0===i?void 0:i.length)&&ge({types:t.tmpData.actions.map((function(t){return t.eventType})),element:t,actions:e,events:n})}));var r=n.filter((function(t){return t}));return{actions:e,events:r}}var He={addGlobalSource:function(t,e){var n=e.name,r=e.value;t.globalSource.push({key:de(),name:n,value:r})},editGlobalSource:function(t,e){var n=this,r=e.key,a=e.value,s=t.globalSource.find((function(t){return t.key==r}));s&&(s.name=e.name,s.value=a,te(i.default.cloneDeep(t.list),(function(e){var i,a,s;if("globalData"==(null===(a=null===(i=null==e?void 0:e.tmpData)||void 0===i?void 0:i.source)||void 0===a?void 0:a.type)){var o=null===(s=null==e?void 0:e.tmpData)||void 0===s?void 0:s.source.globalData;(null==o?void 0:o.id)==r&&Re(e,t.globalVars,!0,(function(t){n.commit("GoCom/updataSourceForComponent",t)}),t.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]=o({},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=Le(t.list,t.globalConstant).globalVars}catch(t){console.warn(t)}},delGoVar: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("删除失败!");var a=i.default.cloneDeep(t.globalConstant);i.default.remove(a,(function(t){return t.mapField==n})),t.globalConstant=a,t.globalVars=Le(t.list,t.globalConstant).globalVars}catch(t){console.warn(t)}},editGoVar:function(t,e){try{var n=e.mapField;e.mold;if(!t.globalConstant.find((function(t){return t.mapField==n})))throw new Error("修改失败!");var r=i.default.cloneDeep(t.globalConstant);r.forEach((function(t){t.mapField==n&&Object.assign(t,e)})),t.globalConstant=r,t.globalVars=Le(t.list,t.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(t,e){t.list=i.default.cloneDeep(e)},goSynchroData:function(t,e){if(t){var n=e.cid,r=e.attr,a=e.value,s=e.attrModel,o=Qt(t.list,n);if("boolean"!=typeof o){if(o&&ne(o,r,a,s),"actions"===r.toLowerCase()){var u=t.list,l=i.default.uniqWith(i.default.concat(Ue(u).actions,Ue(t.caseList).actions),i.default.isEqual),h=i.default.uniqWith(i.default.concat(Ue(u).events,Ue(t.caseList).events),i.default.isEqual);t.globalVars=c(c([],l,!0),t.globalConstant,!0),t.globalEvents=h,t.pages[t.pageIndex]&&(t.pages[t.pageIndex].globalVars=l),t.pages[t.pageIndex]&&(t.pages[t.pageIndex].globalEvents=h)}if("source"===r){if(!o.tmpData.source)return!1;var f=o.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(e){var n=m[e];if(!n||!t.globalVars||t.globalVars.findIndex((function(t){return t.mapField===n}))<0)return"continue";if(t.shareVariableTree||(t.shareVariableTree={}),t.shareVariableTree[n]&&i.default.isArray(t.shareVariableTree[n])){t.shareVariableTree[n].push(o.cid);var r=t.shareVariableTree[n];t.shareVariableTree[n]=i.default.uniq(r)}else t.shareVariableTree[n]=[],t.shareVariableTree[n].push(o.cid)},v=0;v<m.length;v++)g(v)}}}}this.commit("GoCom/execute")}},ze={updataList:function(t,e){var n=e.cid,r=i.default.cloneDeep(e.list),a=i.default.cloneDeep(t.list);if(console.log(r,a),-1===r.findIndex((function(t){return t.cid===n})))for(var s=0;s<r.length;s++){var o=r[s];if(o.children&&o.children.length)for(var u=o.cid,l=0;l<o.children.length;l++){var c=o.children[l];if(c.cid===n){c.pid=u;var h=i.default.cloneDeep(o.baseData),f=se(c.baseData,o.baseData,1);Object.assign(c.baseData,f),he(o,h);break}}}else{var d=r.find((function(t){return t.cid===n})),p=d.pid;if(p){d.pid="";var m=Kt(r,p);console.log(m,"movGroup"),Object.assign(d.baseData,se(d.baseData,m.baseData));s=m.children.findIndex((function(t){return t.cid===d.cid}));m.children.splice(s,1),0===m.children.length?Kt(r,m.cid,!0):he(m,m.baseData)}}t.list=r},updataListForContrast:function(t,e){var n=e.cid,r=e.list,a=Kt(r,n);Xt(r,n);var s=Xt(t.list,n);if(!a.pid){a.pid=s.cid;var o=i.default.cloneDeep(a.baseData),u=se(a.baseData,s.baseData,1);Object.assign(a.baseData,u),he(s,o)}},updateTree:function(t){for(var e=t.list,n=0;n<e.length;n++){var r=e[n];if(r.pid)(o=Qt(e,r.pid))&&Object.assign(r.baseData,se(r.baseData,o.baseData));if(r.children)for(var a=0;a<r.children.length;a++){var s=r.children[a];if(s.pid!=r.cid){var o=Qt(e,s.pid);if(i.default.cloneDeep(s.baseData),o){Object.assign(s.baseData,se(s.baseData,o.baseData));var u=se(s.baseData,r.baseData,1);Object.assign(s.baseData,u),he(r,r.baseData)}s.pid=r.cid}}}}},qe=function(t){return u(this,void 0,void 0,(function(){var e,n,r,i;return l(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"),u(void 0,void 0,void 0,(function(){var r,i;return l(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]}))}))},We=function(t,e){return void 0===e&&(e="jspaths"),u(void 0,void 0,void 0,(function(){var n,r;return l(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]:(qe(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]}}))}))},Ze=function(t){return u(void 0,void 0,void 0,(function(){return l(this,(function(e){switch(e.label){case 0:return t.fonts&&t.fonts.length?[4,We(t.fonts,"fonts")]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}))}))},$e=function(t){return u(void 0,void 0,void 0,(function(){return l(this,(function(e){switch(e.label){case 0:return t.jspaths&&t.jspaths.length?[4,We(t.jspaths,"jspaths")]:[3,2];case 1:e.sent(),e.label=2;case 2:return t.csspaths&&t.csspaths.length?[4,We(t.csspaths,"csspaths")]:[3,4];case 3:e.sent(),e.label=4;case 4:return t.fonts&&t.fonts.length?(i.default.uniqBy(t.fonts,"name"),[4,We(t.fonts,"fonts")]):[3,6];case 5:e.sent(),e.label=6;case 6:return[2]}}))}))},Ke=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 Xe={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(t,e){var n=i.default.find(t.constant,{name:e.name});n?Object.assign(n,e):t.constant.push(e)},editConstant:function(t,e){var n=i.default.find(t.constant,{name:e.name});n&&Object.assign(n,e)},delConstant:function(t,e){i.default.remove(t.constant,(function(t){return t.name==e}))},setResource:function(t,e){var n=e.type,r=e.value;t.resource[n]=r,Ke(),$e(t.resource)},updataResource:function(t){console.log(t,"statestatestate"),Ke(),$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=Qt(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=Kt(i,n);"boolean"!=typeof a&&Object.assign(a,r)},updataComponentForCaseList:function(t,e){var n=e.cid,r=e.data,i=t.caseList,a=Kt(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=Kt(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=Qt(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(t,e){var n=e.cid,r=e.data;if(t.list.length){var a=Kt(t.list,n);"boolean"!=typeof a&&(a.source=i.default.cloneDeep(r))}},updataAnimationForComponent:function(t,e){var n=e.cid,r=e.data;if(t.list.length){var i=Qt(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=Qt(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){ae(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(t,e){var n=i.default.cloneDeep(e),r=n.id,a=n.multiple,s=n.origin,o=n.ctr,u=i.default.cloneDeep(t.selectd);if(a){var l=u.includes(r);if(u.length>=1)if(!u.every((function(n){return Jt(t.list,n,e.id)})))return void console.info("sorry Only sibling elements can be selected!");l?u.splice(u.findIndex((function(t){return t===r})),1):u.push(r),t.selectd=u}else t.selectd=[r];t.selectd.forEach((function(e){var n=Kt(t.list,e);n.pid&&(Kt(t.list,n.pid).toggle=!0);o||(n.toggle=!0)})),t.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){fe(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(t,e){"MultiStateComponent"!=e.componentType||e.stateChildren||(e.stateChildren=[]),"dynamicComponent"!=e.componentType||e.dynamicChildren||(e.dynamicChildren=new Map,e.activeDynamic="状态1",e.dynamicChildren.set("状态1",[])),t.list.unshift(e),t.menuList=i.default.cloneDeep(t.list),this.commit("GoCom/execute")},addComsForParent:function(t,e){var n=e.com,r=e.PID;("MultiStateComponent"!=n.componentType||n.stateChildren||(n.stateChildren=[]),"dynamicComponent"!=n.componentType||n.dynamicChildren||(n.dynamicChildren=new Map,n.activeDynamic="状态1",n.dynamicChildren.set("状态1",[])),r)?Kt(t.list,r).children.unshift(n):t.list.unshift(n);t.menuList=i.default.cloneDeep(t.list),this.commit("GoCom/execute")},addMyComs:function(t,e){var n;try{var r=e.data,a=e.shareVariableTree,s=e.globalVars,o=e.globalEvents;t.globalVars=i.default.uniq(i.default.concat(i.default.cloneDeep(t.globalVars),s)),t.globalEvents=i.default.uniq(i.default.concat(i.default.cloneDeep(t.globalEvents),o));var u=Object.keys(a),l=Object.keys(t.shareVariableTree),c=i.default.difference(u,l);c.length?c.forEach((function(e){t.shareVariableTree[e]=i.default.concat(i.default.cloneDeep(t.shareVariableTree[e]),a[e])})):t.shareVariableTree=Object.assign(i.default.cloneDeep(t.shareVariableTree),a),r instanceof Array?(ee(r),(n=t.list).unshift.apply(n,r)):(ee([r]),t.list.unshift(r)),t.menuList=i.default.cloneDeep(t.list),this.commit("GoCom/execute")}catch(t){}},addStateChildren:function(t,e){var n=Qt(t.list,e.pid);n&&n.stateChildren.push(e)},addDynamicChildren:function(t,e){var n=Qt(t.list,e.pid);n&&n.dynamicChildren.push(e)},arraySwap:function(t,e){try{if(!e||2!=e.length)throw new Error("参数错误,方法接受两个组件的CID组成的数组!");var n=Kt(t.list,e[0]),r=Kt(t.list,e[1]);if((n.pid||r.pid)&&n.pid!=r.pid)throw new Error("参数错误,方法接受两个同级组件的CID!");Zt(t.list,e[0],e[1])}catch(t){console.warn("组件位置交换发生错误",t)}},changeDynamicState:function(t,e){var n=Qt(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=Kt(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(t,e){e.length>0&&e.forEach((function(e){t.list.unshift(e)})),t.menuList=i.default.cloneDeep(t.list),this.commit("GoCom/execute")},updataName:function(t,e){var n=Qt(t.list,e.cid);n&&(n.name=e.name)},setCurrentEdited:function(t,e){if(e){var n=Qt(t.list,e);if("boolean"!=typeof n){var r=ie(n);n.children=r}t.currentEditerCid=e}else t.currentEditerCid=""}},Qe={layout:function(t,e){var n=function(t,e){try{var n=t.map((function(t){var n=Qt(e,t);if("object"==typeof n)return n;throw"Please check whether the input and output parameters are correct!"}));if(i.default.every(n,Object))return n;throw"Please check whether the input and output parameters are correct!"}catch(t){return console.error(t),[]}}(t.selectd,t.list);switch(e){case"alignLeft":!function(t,e){1===t.length&&(t[0].baseData.left=0);var n=i.default.sortBy(t,(function(t){return t.baseData.left}))[0].baseData.left;t.map((function(t){return t.baseData.left=n}))}(n);break;case"alignRight":!function(t,e){if(1===t.length){var n=e.plant?e.plant.baseData:{width:1920,height:1080};t[0].baseData.left=n.width-t[0].baseData.width}var r=i.default.sortBy(t,(function(t){return t.baseData.left})),a=1*r[r.length-1].baseData.left+1*r[r.length-1].baseData.width;t.map((function(t){return t.baseData.left=a-1*t.baseData.width}))}(n,t);break;case"horizontally":!function(t,e){if(1===t.length){var n=e.plant?e.plant.baseData:{width:1920,height:1080};t[0].baseData.left=n.width/2-t[0].baseData.width/2}var r=i.default.sortBy(t,(function(t){return t.baseData.left})),a=i.default.sortBy(t,(function(t){return 1*t.baseData.left+1*t.baseData.width})),s=(1*r[0].baseData.left+(1*a[a.length-1].baseData.left+1*a[a.length-1].baseData.width))/2;t.map((function(t){return t.baseData.left=s-t.baseData.width/2}))}(n,t);break;case"alignTop":!function(t,e){1===t.length&&(t[0].baseData.top=0);var n=1*i.default.sortBy(t,(function(t){return t.baseData.top}))[0].baseData.top;t.map((function(t){return t.baseData.top=n}))}(n);break;case"alignBottom":!function(t,e){if(1===t.length){var n=e.plant?e.plant.baseData:{width:1920,height:1080};t[0].baseData.top=n.height-t[0].baseData.height}var r=i.default.sortBy(t,(function(t){return 1*t.baseData.left})),a=1*r[r.length-1].baseData.top+1*r[r.length-1].baseData.height;t.map((function(t){return t.baseData.top=a-1*t.baseData.height}))}(n,t);break;case"verticalCenter":!function(t,e){if(1===t.length){var n=e.plant?e.plant.baseData:{width:1920,height:1080};t[0].baseData.top=n.height/2-t[0].baseData.height/2}var r=i.default.sortBy(t,(function(t){return t.baseData.top})),a=i.default.sortBy(t,(function(t){return 1*t.baseData.top+1*t.baseData.height})),s=(1*r[0].baseData.top+(1*a[a.length-1].baseData.top+1*a[a.length-1].baseData.height))/2;t.map((function(t){return t.baseData.top=s-t.baseData.height/2}))}(n,t);break;case"topDistribution":!function(t){if(t.length<3)return console.warn("A minimum of three elements are required for a distribution arrangement"),!1;var e=i.default.sortBy(t,(function(t){return t.baseData.top})),n=(e[e.length-1].baseData.top-e[0].baseData.top)/(e.length-1);e.map((function(t,r){r>0&&r<e.length-1&&(t.baseData.top=1*e[0].baseData.top+n*r)}))}(n);break;case"bottomDistribution":!function(t){if(t.length<3)return console.warn("A minimum of three elements are required for a distribution arrangement"),!1;var e=i.default.sortBy(t,(function(t){return t.baseData.top+t.baseData.height})),n=(e[e.length-1].baseData.top+e[e.length-1].baseData.height-(e[0].baseData.top+e[0].baseData.height))/(e.length-1);e.map((function(t,r){r>0&&r<e.length-1&&(t.baseData.top=1*e[0].baseData.top+1*e[0].baseData.height-1*t.baseData.height+n*r)}))}(n);break;case"xCenterDistribution":!function(t){if(t.length<3)return console.warn("A minimum of three elements are required for a distribution arrangement"),!1;var e=i.default.sortBy(t,(function(t){return t.baseData.left+t.baseData.width/2})),n=1*e[e.length-1].baseData.left+e[e.length-1].baseData.width/2,r=1*e[0].baseData.left+e[0].baseData.width/2,a=(n-r)/(e.length-1);e.map((function(t,n){n>0&&n<e.length-1&&(t.baseData.left=r-t.baseData.width/2+a*n)}))}(n);break;case"leftDistribution":!function(t){if(t.length<3)return console.warn("A minimum of three elements are required for a distribution arrangement"),!1;var e=i.default.sortBy(t,(function(t){return t.baseData.left})),n=(e[e.length-1].baseData.left-e[0].baseData.left)/(e.length-1);e.map((function(t,r){r>0&&r<e.length-1&&(t.baseData.left=e[0].baseData.left+n*r)}))}(n);break;case"rightDistribution":!function(t){if(t.length<3)return console.warn("A minimum of three elements are required for a distribution arrangement"),!1;var e=i.default.sortBy(t,(function(t){return t.baseData.left+t.baseData.width})),n=(e[e.length-1].baseData.left+e[e.length-1].baseData.width-(e[0].baseData.left+e[0].baseData.width))/(e.length-1);e.map((function(t,r){r>0&&r<e.length-1&&(t.baseData.left=e[0].baseData.left+e[0].baseData.width-t.baseData.width+n*r)}))}(n);break;case"yCenterDistribution":!function(t){if(t.length<3)return console.warn("A minimum of three elements are required for a distribution arrangement"),!1;var e=i.default.sortBy(t,(function(t){return t.baseData.top+t.baseData.height/2})),n=1*e[e.length-1].baseData.top+e[e.length-1].baseData.height/2,r=1*e[0].baseData.top+e[0].baseData.height/2,a=(n-r)/(e.length-1);e.map((function(t,n){n>0&&n<e.length-1&&(t.baseData.top=r-t.baseData.height/2+a*n)}))}(n)}}},Je={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,l=t.resource;t.pages[t.pageIndex]={globalEvents:n,globalVars:r,list:i,name:a,theme:s,plant:o,shareVariableTree:u,resource:l},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}}},tn={getCurrentPage:function(t){return t.pages.length?t.pages[t.pageIndex]:[]},globalSourceTree:function(t){if(t.list.length&&t.globalSource.length){var e=[];return te(i.default.cloneDeep(t.list),(function(t){var n,r,i;if("globalData"==(null===(r=null===(n=null==t?void 0:t.tmpData)||void 0===n?void 0:n.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;e.push({name:t.name,cid:t.cid,sourceId:a.id,viewComName:t.viewComName})}})),e}return[]}},en={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:o(o(o(o(o(o(o(o({},h),ye),be),He),ze),Xe),Qe),Je),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:tn},nn=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 rn(t.storeModule,e)},t.prototype.mapGetters=function(e){return sn(t.storeModule,e)},t.prototype.mapMutations=function(e){return an(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){t.store.commit(t.storeModule+"/"+e,n)},t.prototype.callAction=function(e,n){t.store.dispatch(t.storeModule+"/"+e,n)},t.storeModule="GoCom",t}(),rn=un((function(t,e){var n;return on(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=ln(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})),an=un((function(t,e){var n;return on(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=ln(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})),sn=un((function(t,e){var n={};return on(e).forEach((function(e){var r=e.key,i=e.val;i=t+i,n[r]=function(){if(!t||ln(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 on(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 un(t){return function(e,n){return"string"!=typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function ln(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 cn=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=de(),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"))},hn=function(){function t(t){this.vueServer=t,this.loadScript=Ge}return t.setStore=function(t){this.store=t},t.prototype.loadComponents=function(t){var e=t&&t.list?t.list:[];te(e,(function(t){t.viewComName&&(t&&t.path&&t.path,t.origin,t.viewComName?t.viewComName:t.rawData.viewComName)})),t&&this.vueServer.callMutation("reversal",i.default.cloneDeep(t))},t.prototype.addStore=function(t){this.vueServer.callMutation("setActive",{id:t}),this.vueServer.callMutation("addComs",this)},t.prototype._addPlantStore=function(){this.vueServer.callMutation("setPlant",this)},t.prototype._loadComTmp=function(t,e){return u(this,void 0,void 0,(function(){var n,r,i=this;return l(this,(function(a){switch(a.label){case 0:if(window[e])return[3,5];n=function(e){var n;return l(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,a.label=1;case 1:return r<t.length?[5,n(r)]:[3,4];case 2:a.sent(),a.label=3;case 3:return r++,[3,1];case 4:window[e]=e,a.label=5;case 5:return[2]}}))}))},t.prototype._load=function(t){return u(this,void 0,void 0,(function(){var e=this;return l(this,(function(n){return[2,new Promise((function(n){n(e.loadScript(t))}))]}))}))},t}(),fn=function(){function t(t){var e=t.dbName,n=t.tables,r=t.version,i=void 0===r?1:r,a=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=i,this.openDB(o({dbName:e,tables:n,version:i},a))}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}(),dn=function(){function t(){this.VueServer=new nn}return t.getInstance=function(){return this.instance||(this.db=new fn({dbName:"AnovGo",tables:["logs"]}),this.instance=new t),this.instance},t.prototype.getAppStore=function(){return t.store},t.setAppStore=function(e){t.store=e,nn.setAppStore(e),hn.setStore(e)},t.prototype.add=function(t,e){e.MultiState?this.VueServer.callMutation("addStateChildren",e):(this.VueServer.callMutation("addComs",e),this.VueServer.callMutation("setActive",{id:t}))},t.prototype.addForParent=function(t,e,n){this.VueServer.callMutation("addComsForParent",{com:e,PID:n}),this.VueServer.callMutation("setActive",{id:t})},t.prototype.render=function(t){var e=new cn(t);this.add(e.cid,e)},t.prototype.renderForParent=function(t,e){var n=new cn(t);this.addForParent(n.cid,n,e)},t.prototype.reversal=function(t){new hn(new nn).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,l=i.cid,c=i.actions.eventName,h=[];h=i.hasOwnProperty("index")?t.filter((function(t){return t.id==l&&t.eventType==c&&parseInt(t.index)+1==parseInt(i.index)})):t.filter((function(t){return t.id===l&&t.eventType===c}));var f=i.actions.mode;!e||e.filter((function(t){return t.id===l&&t.type===c}));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=Kt(r,t.pid))&&(n.activeDynamic=t.name,n.isShow=!0,t.visible||(n.isShow=!1)):(n=Kt(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.id==l){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=Qt(r,l),c=null===(u=null==o?void 0:o.tmpData)||void 0===u?void 0:u.actions;c&&c.length?c.forEach((function(t){var e=t.vars.find((function(t){return t.mapField==a.field}));e&&(console.log(e.value),a.value=e.value)})):a.value=null}var h=n[a.mapField];if(!n)return{value:void 0};h&&h.length&&h.forEach((function(t){var n=Qt(r,t);Re(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}(),pn=Object.defineProperty,mn=Object.getOwnPropertySymbols,gn=Object.prototype.hasOwnProperty,vn=Object.prototype.propertyIsEnumerable,yn=(t,e,n)=>e in t?pn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,bn=(t,e)=>{for(var n in e||(e={}))gn.call(e,n)&&yn(t,n,e[n]);if(mn)for(var n of mn(e))vn.call(e,n)&&yn(t,n,e[n]);return t},_n=(t,e,n)=>(yn(t,"symbol"!=typeof e?e+"":e,n),n),wn=(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())})),Dn={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},Tn="data-watermark-tag",Sn={childList:!0,subtree:!0,attributeFilter:["style","class",Tn]};var xn=t=>{let e="";return Object.keys(t).forEach((n=>{const r=n.replace(/([A-Z])/g,"-$1").toLowerCase();e+=`${r}:${t[n]};`})),e},En=(t="")=>{return`${e=t,window.btoa(decodeURI(encodeURIComponent(e)))}-${(new Date).getTime()}-${Math.floor(Math.random()*Math.pow(10,8))}`;var e};var Mn=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver,On="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function kn(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function Cn(t,e){return t(e={exports:{}},e.exports),e.exports}var An=Cn((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 l(t){return void 0===t}function c(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(l(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),l(e._i)||(t._i=e._i),l(e._f)||(t._f=e._f),l(e._l)||(t._l=e._l),l(e._strict)||(t._strict=e._strict),l(e._tzm)||(t._tzm=e._tzm),l(e._isUTC)||(t._isUTC=e._isUTC),l(e._offset)||(t._offset=e._offset),l(e._pf)||(t._pf=g(e)),l(e._locale)||(t._locale=e._locale),a>0)for(n=0;n<a;n++)l(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=[],l=arguments.length;for(a=0;a<l;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 lt(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function ct(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=lt(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=ct(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]),c(e)&&(i=function(t,n){n[e]=ct(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]=ct(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 le(t,e){var n;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=ct(e);else if(!c(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 ce(t){return null!=t?(le(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):ct(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 ct(t)+(ct(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)]=ct(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]=ct(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=[],l=[];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),l.push(r),l.push(i),l.push(a);s.sort(t),o.sort(t),u.sort(t),l.sort(t),this._weekdaysRegex=new RegExp("^("+l.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=ct(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]=ct(t),g(n).bigHour=!0})),Lt("hmm",(function(t,e,n){var r=t.length-2;e[Gt]=ct(t.substr(0,r)),e[Wt]=ct(t.substr(r)),g(n).bigHour=!0})),Lt("hmmss",(function(t,e,n){var r=t.length-4,i=t.length-2;e[Gt]=ct(t.substr(0,r)),e[Wt]=ct(t.substr(r,2)),e[Zt]=ct(t.substr(i)),g(n).bigHour=!0})),Lt("Hmm",(function(t,e,n){var r=t.length-2;e[Gt]=ct(t.substr(0,r)),e[Wt]=ct(t.substr(r))})),Lt("Hmmss",(function(t,e,n){var r=t.length-4,i=t.length-2;e[Gt]=ct(t.substr(0,r)),e[Wt]=ct(t.substr(r,2)),e[Zt]=ct(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={},ln={};function cn(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&&cn(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,kn(),mn(n)}catch(t){un[e]=null}return un[e]}function mn(t,e){var n;return t&&((n=l(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 ln[e.parentLocale]||(ln[e.parentLocale]=[]),ln[e.parentLocale].push({name:t,config:e}),null;r=n._config}return un[t]=new P(A(r,e)),ln[t]&&ln[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]],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 Cn(t){var e,n,r,i,a,s,o=t._i,u=wn.exec(o)||Dn.exec(o),l=Sn.length,c=xn.length;if(u){for(g(t).iso=!0,e=0,n=l;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=c;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(!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 On[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=Mn.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=En.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,l;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,l=De(Kn(),a,s),n=Yn(e.gg,t._a[Ht],l.year),r=Yn(e.w,l.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,l=""+t._i,c=l.length,h=0;for(u=(i=z(t._f,t._locale).match(V)||[]).length,e=0;e<u;e++)a=i[e],(n=(l.match(It(a,t))||[])[0])&&((s=l.substr(0,l.indexOf(n))).length>0&&g(t).unusedInput.push(s),l=l.slice(l.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=c-h,l.length>0&&g(t).unusedInput.push(l),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;l(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):c(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]])!==ct(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,l=e.second||0,c=e.millisecond||0;this._isValid=ir(e),this._milliseconds=+c+1e3*l+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 lr(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&&ct(t[r])!==ct(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]+ct(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(!l(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()&&cr(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}:c(t)||!isNaN(+t)?(a={},e?a[e]=+t:a.milliseconds=+t):(s=Mr.exec(t))?(n="-"===s[1]?-1:1,a={y:0,d:ct(s[qt])*n,h:ct(s[Gt])*n,m:ct(s[Wt])*n,s:ct(s[Zt])*n,ms:ct(lr(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=lr(e._days),o=lr(e._months);t.isValid()&&(i=null==i||i,o&&le(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)||c(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"],l=a.length;for(e=0;e<l;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!c(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:lt(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 li(){return this._locale}var ci=1e3,hi=60*ci,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,ci)}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+=ci-pi(e,ci)-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)]=ct(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*(ct(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]=ct(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=ct(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]=ct(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 la=D.prototype;function ca(t){return Kn(1e3*t)}function ha(){return Kn.apply(null,arguments).parseZone()}function fa(t){return t}la.add=Ir,la.calendar=Hr,la.clone=zr,la.diff=Xr,la.endOf=yi,la.format=ni,la.from=ri,la.fromNow=ii,la.to=ai,la.toNow=si,la.get=pt,la.invalidAt=Mi,la.isAfter=qr,la.isBefore=Gr,la.isBetween=Wr,la.isSame=Zr,la.isSameOrAfter=$r,la.isSameOrBefore=Kr,la.isValid=xi,la.lang=ui,la.locale=oi,la.localeData=li,la.max=Qn,la.min=Xn,la.parsingFlags=Ei,la.set=mt,la.startOf=vi,la.subtract=Vr,la.toArray=Di,la.toObject=Ti,la.toDate=wi,la.toISOString=ti,la.inspect=ei,"undefined"!=typeof Symbol&&null!=Symbol.for&&(la[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),la.toJSON=Si,la.toString=Jr,la.unix=_i,la.valueOf=bi,la.creationData=Oi,la.eraName=Pi,la.eraNarrow=Ri,la.eraAbbr=Ni,la.eraYear=Ii,la.year=ge,la.isLeapYear=ve,la.weekYear=qi,la.isoWeekYear=Gi,la.quarter=la.quarters=Ji,la.month=ce,la.daysInMonth=he,la.week=la.weeks=Oe,la.isoWeek=la.isoWeeks=ke,la.weeksInYear=$i,la.weeksInWeekYear=Ki,la.isoWeeksInYear=Wi,la.isoWeeksInISOWeekYear=Zi,la.date=ta,la.day=la.days=ze,la.weekday=qe,la.isoWeekday=Ge,la.dayOfYear=ea,la.hour=la.hours=rn,la.minute=la.minutes=na,la.second=la.seconds=aa,la.millisecond=la.milliseconds=ia,la.utcOffset=gr,la.utc=yr,la.local=br,la.parseZone=_r,la.hasAlignedHourOffset=wr,la.isDST=Dr,la.isLocal=Sr,la.isUtcOffset=xr,la.isUtc=Er,la.isUTC=Er,la.zoneAbbr=oa,la.zoneName=ua,la.dates=x("dates accessor is deprecated. Use date instead.",ta),la.months=x("months accessor is deprecated. Use month instead",ce),la.years=x("years accessor is deprecated. Use year instead",ge),la.zone=x("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",vr),la.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(c(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?(c(e)&&(n=e,e=void 0),e=e||""):(n=e=t,t=!1,c(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===ct(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=lt(a/1e3),u.seconds=t%60,e=lt(t/60),u.minutes=e%60,n=lt(e/60),u.hours=n%24,s+=lt(n/24),o+=i=lt(ka(s)),s-=Ma(Ca(i)),r=lt(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*ct(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 lt(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")),l=ts(i.as("M")),c=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||c<=1&&["w"]||c<n.w&&["ww",c]),(f=f||l<=1&&["M"]||l<n.M&&["MM",l]||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 ls(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n,r,i,a,s,o,u=os(this._milliseconds)/1e3,l=os(this._days),c=os(this._months),h=this.asSeconds();return h?(t=lt(u/60),e=lt(t/60),u%=60,t%=60,n=lt(c/12),c%=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":"")+(c?a+c+"M":"")+(l?s+l+"D":"")+(e||t||u?"T":"")+(e?o+e+"H":"")+(t?o+t+"M":"")+(u?o+r+"S":"")):"P0D"}var cs=or.prototype;return cs.isValid=ar,cs.abs=Ta,cs.add=xa,cs.subtract=Ea,cs.as=Aa,cs.asMilliseconds=Na,cs.asSeconds=Ia,cs.asMinutes=Va,cs.asHours=Ba,cs.asDays=Ya,cs.asWeeks=La,cs.asMonths=Fa,cs.asQuarters=ja,cs.asYears=Ua,cs.valueOf=Pa,cs._bubble=Oa,cs.clone=Ha,cs.get=za,cs.milliseconds=Ga,cs.seconds=Wa,cs.minutes=Za,cs.hours=$a,cs.days=Ka,cs.weeks=Ja,cs.months=Xa,cs.years=Qa,cs.humanize=ss,cs.toISOString=ls,cs.toString=ls,cs.toJSON=ls,cs.locale=oi,cs.localeData=li,cs.toIsoString=x("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ls),cs.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(ct(t))})),
|
|
17
|
+
//! moment.js
|
|
18
|
+
r.version="2.29.4",i(Kn),r.fn=la,r.min=tr,r.max=er,r.now=nr,r.utc=p,r.unix=ca,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=la,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}()})),Pn=Cn((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 On&&On.global===On?On: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,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||o&&u||s)&&"undefined"!=typeof FileReader){var c=new FileReader;c.onloadend=function(){var t=c.result;t=l?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=t:location=t,i=null},c.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}()})),Rn=function(t){if(0===t.length)return[];var e=function(t){for(var n,r,a,s=0;s<t.length;s++)t[s].tmpData&&(t[s]=Object.assign({},(r=t[s],a=void 0,delete(a=i.default.cloneDeep(r)).comData,o({},a)))),t[s]&&t[s].children&&(null===(n=t[s])||void 0===n?void 0:n.children.length)?e(t[s].children):t[s]&&t[s].dynamicChildren&&Array.from(t[s].dynamicChildren).forEach((function(t,n){e(t[1])}))};return e(t),t},Nn=function(t){var e=i.default.cloneDeep(t)?i.default.cloneDeep(t):{};"string"==typeof t&&(e=JSON.parse(t));var n=[];if(e instanceof Array)e.forEach((function(t,e){var r=JSON.parse(t.caseDetailData)?JSON.parse(t.caseDetailData):{},i=t.caseDetailPath,a=t.caseDetailName,s=r.theme,o=void 0===s?null:s,u=r.globalVars,l=void 0===u?null:u,c=r.shareVariableTree,h=void 0===c?null:c,f=r.plant,d=void 0===f?null:f,p=r.list,m=void 0===p?[]:p,g=r.path,v=void 0===g?"":g;r.name;var y=r.resource,b=void 0===y?{jspaths:[],csspaths:[],otherpaths:[]}:y,_=r.globalEvents,w=void 0===_?[]:_;n.push({path:v||i,theme:o,name:a,resource:b,globalVars:l,globalEvents:w,shareVariableTree:h,plant:d,list:Rn(m)})}));else{var r=e.theme,a=void 0===r?null:r,s=e.globalVars,o=void 0===s?null:s,u=e.shareVariableTree,l=void 0===u?null:u,c=e.plant,h=void 0===c?null:c,f=e.list,d=void 0===f?[]:f,p=e.resource,m=void 0===p?{jspaths:[],csspaths:[],otherpaths:[]}:p,g=e.globalEvents,v=void 0===g?[]:g;n.push({resource:m,theme:a,globalVars:o,globalEvents:v,shareVariableTree:l,plant:h,list:Rn(d)})}return n};function In(t,e){throw new Error("".concat(t,":Expected HTMLElement, got ").concat(e))}var Vn=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||In("wrap",u);var l=u.clientWidth,c=u.clientHeight,h=document.querySelector(r);h||In("view",h),h.style.position="absolute",h.style.width=i+"px",h.style.height=a+"px";var f,d,p,m,g=Math.min(l/i,c/a);if(e){switch(h.style.transform="scale(".concat(g,")"),s){case"center":f=(l-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=(c-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(l/i,", ").concat(c/a,"')"),f=(l-i)/2+"px",d=(c-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}(),Bn=function(){function t(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 t.prototype.reset=function(t){this.initSize(this.size),this.layout(),t?this.scale(t):this.scale()},t.getInstance=function(e){return t.instance||(t.instance=new t(e)),t.instance},t.prototype.removeResize=function(){window.removeEventListener("resize",this.reset.bind(this,void 0))},t.prototype.getDom=function(t){if(i.default.isElement(t))return t;var e=document.querySelector(t);return i.default.isElement(e)?e:null},t.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()},t.prototype.initSize=function(t){this.outSize.w=this.wrap.clientWidth,this.outSize.h=this.wrap.clientHeight,this.inSize=t},t.prototype.verificationDom=function(){null!=this.wrap&&null!=this.target&&this.isChildOf(this.wrap,this.target)||console.warn("Please pass in the DOM element correctly!")},t.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")},t.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},t.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,")")},t.prototype.resize=function(){},t}(),Yn=Cn((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):l("cannot fetch resource: "+t+", status: "+i.status)}function u(){r?n(r):l("timeout of "+e+"ms occured while fetching resource: "+t)}function l(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 l(t,e||{}).then((function(t){return t.toDataURL()}))},toJpeg:function(t,e){return l(t,e=e||{}).then((function(t){return t.toDataURL("image/jpeg",e.quality||1)}))},toBlob:function(t,e){return l(t,e||{}).then(n.canvasToBlob)},toPixelData:function(t,e){return l(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 c(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 l(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 c(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 c(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}()})),Ln=function(t){if(!t)return!1;return 1==new RegExp(/http(s)?:\/\/([\w-]+\.)+[\w-]+(\/[\w- .\/?%&=]*)?/).test(t)},Fn=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))},jn=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)}},Un=function(t,e){return u(void 0,void 0,void 0,(function(){var n;return l(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,jn(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,Fn(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]}}))}))},Hn=function(t,e,n,r){return u(void 0,void 0,void 0,(function(){return l(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,a.default({url:t,method:"GET",responseType:"arraybuffer",params:{url:e,dom:n,quality:r}})];case 1:return[2,i.sent()];case 2:return i.sent(),console.warn("请求截图服务器发生错误,请检查地址及参数是否正确!",{url:t,path:e,dom:n,quality:r}),[2,null];case 3:return[2]}}))}))},zn=function(t,e){return u(void 0,void 0,void 0,(function(){var n,r;return l(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,Yn.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]}}))}))},qn=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(qn(e)).concat(qn(n)).concat(qn(r)).concat(1===a?"":qn(Math.floor(255*a)))},Wn=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,")")},$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}},Kn=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])}},Xn=function(t){if(t.startsWith("#"))return $n(t);if(t.startsWith("rgb"))return Kn(t);if("transparent"===t)return $n("#00000000");throw new Error("color string error: ".concat(t))},Qn=Object.freeze({__proto__:null,Watermark:class{constructor(t={}){_n(this,"options"),_n(this,"container"),_n(this,"watermarkContent"),_n(this,"watermarkDom"),_n(this,"style"),_n(this,"watermarkTag"),_n(this,"shadowRoot"),_n(this,"mutationObserver"),_n(this,"_isAgainRender",(t=>{if("attributes"===t.type){if(t.attributeName===Tn)return!0;if(this.watermarkTag===this._getNodeRandomId(t.target))return!0}return!(!t.removedNodes.length||this.watermarkTag!==this._getNodeRandomId(t.removedNodes[0]))})),_n(this,"_getNodeRandomId",(t=>{var e,n;return null==(e=null==t?void 0:t.dataset)?void 0:e[(n=Tn,n.split("-").slice(1).reduce(((t,e,n)=>0===n?e:`${t}${e[0].toUpperCase()+e.slice(1)}`)))]})),_n(this,"_destroyMutationObserver",(()=>{this.mutationObserver&&(this.mutationObserver.takeRecords(),this.mutationObserver.disconnect(),this.mutationObserver=null)})),_n(this,"_getWatermarkDom",(t=>wn(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:l,fontSize:c,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=l,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(c);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-(c*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",xn(this.style))}return this.watermarkDom.setAttribute(Tn,this.watermarkTag),this.watermarkDom})))),_n(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({},Dn,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=En("watermark"),this.mutationObserver=null,this._render()}update(t={}){this.options=bn(bn({},this.options),t),this.style.zIndex=this.options.zIndex,this._render()}show(){this.watermarkDom&&(this.style.display="block",this.watermarkDom.setAttribute("style",xn(this.style)))}hide(){this.watermarkDom&&(this.style.display="none",this.watermarkDom.setAttribute("style",xn(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 wn(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(Tn,e);const a=bn({position:"relative"},n);return r||delete a.position,i.setAttribute("style",xn(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",xn({pointerEvents:"none"})),e.setAttribute(Tn,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),Mn&&this.options.monitor&&(this.mutationObserver=new Mn((t=>{t.forEach((t=>{if(this._isAgainRender(t))return this.destroy(),void this._render()}))})),this.mutationObserver.observe(this.container,Sn),this.shadowRoot&&this.mutationObserver.observe(this.shadowRoot,Sn))}))}},generateComponentList:Rn,generateCaseDataJson:Nn,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,l=void 0===u?null:u,c=e.list,h=void 0===c?[]:c,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,l=t.plant),{theme:r,globalVars:a,globalEvents:v,shareVariableTree:o,plant:l,undos:d,undoRedoPointer:m,list:Rn(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,l={caseClientType:void 0===u?"":u,caseName:n,caseImg:i,caseRemark:s,createTime:An().format("YYYY-MM-DD , h:mm:ss"),caseData:Nn(o)},c=new Blob([JSON.stringify(l)],{type:""});Pn.saveAs(c,n+".json")},generateJson:function(t){var e=t.caseName,n=void 0===e?"":e,r=t.caseData;return t.plangInfoForPsd,{caseName:n,createTime:An().format("YYYY-MM-DD , h:mm:ss"),caseData:Nn(r)}},SizeAdaption:Vn,Scale:Bn,loadFontResource:qe,loadScript:Ge,removeTag:Ke,loadTag:$e,loadFont:Ze,getDataForEvaluator:m,recursion:te,encrypt:ve,decrypt:function(t){var e=new qt;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:ge,genID:de,arraySwap:Wt,arraySwapDeep:$t,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:fe,selectdArea:le,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:re,resetPositionForGroup:function(t,e){var n=e.map((function(t){return t.cid}));e.forEach((function(e){e.pid&&ae(e,t)}));var r=le(n,e);return re(r,e),{left:r.left,top:r.top,width:r.width,height:r.height}},setPositionForWorld:ae,breakUp:ie,findItem:Qt,findItemDeep:Kt,findParentDeep:Xt,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:ce,updataAttribute:ne,isPeer:Jt,transformPosition:se,upDataGroup:he,upDataGroupChildren:function(t,e,n){var r=t.children,a=i.default.cloneDeep(e),s=i.default.cloneDeep(ce(r)),o=a.left,u=a.top;a.width,a.height;var l=s.left,c=s.top,h=s.width,f=s.height,d={left:o+l,top:u+c,width:h,height:f,angle:e.angle?e.angle:0};return r.forEach((function(t){var e=i.default.cloneDeep(t.baseData);t.baseData.left<0?e.left=0:e.left=e.left-l,t.baseData.top<0?e.top=0:e.top=e.top-c,t.baseData=e})),t.children=r,d},resziePositionForGroup:function(t,e,n,r){var a=t.baseData.left,s=t.baseData.top,o=e.left,u=e.top,l=i.default.cloneDeep(t.children),c=n||"";if(o-a<0)for(var h=0;h<l.length;h++){(f=l[h]).cid!==c&&(f.baseData.left=f.baseData.left+(a-o))}if(u-s<0)for(h=0;h<l.length;h++){var f;(f=l[h]).cid!==c&&(f.baseData.top=f.baseData.top+(s-u))}t.children=l},genCopyName:pe,resetID:ee,getUrlParams:me,updataSizeDeep:Gt,resizePosition:oe,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=oe(e,s.cid),u=oe(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:Le,getShareTree:function(t,e){try{var n={},r=[],i=[];return te(t,(function(t){var a,s,o,u=null===(a=null==t?void 0:t.tmpData)||void 0===a?void 0:a.source;(Fe(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)&&ge({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 u(void 0,void 0,void 0,(function(){var e,n,r,i,a,s,o,u;return l(this,(function(l){switch(l.label){case 0:return l.trys.push([0,11,,12]),e=t.dom,n=t.servePath,r=t.targetPath,i=t.quality,a=t.type,s=void 0,Ln(n)&&Ln(r)?[4,Hn(n,r,e,i||.5)]:[3,5];case 1:return(o=l.sent())&&200==o.status&&o.data?(s=o.data,[3,4]):[3,2];case 2:return console.warn("截取错误,请检查网络或服务地址配置是否正确,已转换为dom-to-img."),[4,zn(e,i||.5)];case 3:s=l.sent(),l.label=4;case 4:return[3,7];case 5:return console.warn("地址错误,请检查传入的地址是否争取,已转换为dom-to-img."),[4,zn(e,i||.5)];case 6:s=l.sent(),l.label=7;case 7:return s?[4,Un(s,a)]:[3,9];case 8:return[2,l.sent()];case 9:return[2,null];case 10:return[3,12];case 11:return u=l.sent(),console.error("截图发生错误:"+u),[2,null];case 12:return[2]}}))}))},toHex:qn,toHexString:Gn,toRgbString:Wn,toRgbaString:Zn,parseHexColor:$n,parseRgbaColor:Kn,parseColorString:Xn,getColorInfo:function(t){var e=Xn(t);return{hex:Gn(e),rgba:Zn(e),rgb:Wn(e),rgbaObj:e}},hexToRgba:function(t){var e=Xn(t);return Zn(e)},rgbaToHex:function(t){var e=Xn(t);return Gn(e)}});function Jn(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function tr(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}
|
|
19
19
|
/*!
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
*/var Rn,Nn,In,Vn,Bn,Yn,Ln,Fn,jn,Un,Hn,zn,qn,Gn,Wn,Zn={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},Kn={duration:.5,overwrite:!1,delay:0},$n=1e8,Xn=1e-8,Jn=2*Math.PI,Qn=Jn/4,tr=0,er=Math.sqrt,nr=Math.cos,rr=Math.sin,ir=function(t){return"string"==typeof t},ar=function(t){return"function"==typeof t},sr=function(t){return"number"==typeof t},or=function(t){return void 0===t},ur=function(t){return"object"==typeof t},lr=function(t){return!1!==t},cr=function(){return"undefined"!=typeof window},hr=function(t){return ar(t)||ir(t)},fr="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},dr=Array.isArray,pr=/(?:-?\.?\d|\.)+/gi,mr=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,gr=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,vr=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,yr=/[+-]=-?[.\d]+/,br=/[^,'"\[\]\s]+/gi,_r=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,wr={},Dr={},Sr=function(t){return(Dr=Jr(t,wr))&&Ja},Tr=function(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")},xr=function(t,e){return!e&&console.warn(t)},Er=function(t,e){return t&&(wr[t]=e)&&Dr&&(Dr[t]=e)||wr},Mr=function(){return 0},Or={suppressEvents:!0,isStart:!0,kill:!1},kr={suppressEvents:!0,kill:!1},Cr={suppressEvents:!0},Ar={},Pr=[],Rr={},Nr={},Ir={},Vr=30,Br=[],Yr="",Lr=function(t){var e,n,r=t[0];if(ur(r)||ar(r)||(t=[t]),!(e=(r._gsap||{}).harness)){for(n=Br.length;n--&&!Br[n].targetTest(r););e=Br[n]}for(n=t.length;n--;)t[n]&&(t[n]._gsap||(t[n]._gsap=new da(t[n],e)))||t.splice(n,1);return t},Fr=function(t){return t._gsap||Lr(Ai(t))[0]._gsap},jr=function(t,e,n){return(n=t[e])&&ar(n)?t[e]():or(n)&&t.getAttribute&&t.getAttribute(e)||n},Ur=function(t,e){return(t=t.split(",")).forEach(e)||t},Hr=function(t){return Math.round(1e5*t)/1e5||0},zr=function(t){return Math.round(1e7*t)/1e7||0},qr=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},Gr=function(t,e){for(var n=e.length,r=0;t.indexOf(e[r])<0&&++r<n;);return r<n},Wr=function(){var t,e,n=Pr.length,r=Pr.slice(0);for(Rr={},Pr.length=0,t=0;t<n;t++)(e=r[t])&&e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0)._lazy=0)},Zr=function(t,e,n,r){Pr.length&&Wr(),t.render(e,n,r||Nn&&e<0&&(t._initted||t._startAt)),Pr.length&&Wr()},Kr=function(t){var e=parseFloat(t);return(e||0===e)&&(t+"").match(br).length<2?e:ir(t)?t.trim():t},$r=function(t){return t},Xr=function(t,e){for(var n in e)n in t||(t[n]=e[n]);return t},Jr=function(t,e){for(var n in e)t[n]=e[n];return t},Qr=function t(e,n){for(var r in n)"__proto__"!==r&&"constructor"!==r&&"prototype"!==r&&(e[r]=ur(n[r])?t(e[r]||(e[r]={}),n[r]):n[r]);return e},ti=function(t,e){var n,r={};for(n in t)n in e||(r[n]=t[n]);return r},ei=function(t){var e,n=t.parent||Vn,r=t.keyframes?(e=dr(t.keyframes),function(t,n){for(var r in n)r in t||"duration"===r&&e||"ease"===r||(t[r]=n[r])}):Xr;if(lr(t.inherit))for(;n;)r(t,n.vars.defaults),n=n.parent||n._dp;return t},ni=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},ri=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},ii=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove(t),t._act=0},ai=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},si=function(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent;return t},oi=function(t,e,n,r){return t._startAt&&(Nn?t._startAt.revert(kr):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,r))},ui=function t(e){return!e||e._ts&&t(e.parent)},li=function(t){return t._repeat?ci(t._tTime,t=t.duration()+t._rDelay)*t:0},ci=function(t,e){var n=Math.floor(t/=e);return t&&n===t?n-1:n},hi=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},fi=function(t){return t._end=zr(t._start+(t._tDur/Math.abs(t._ts||t._rts||Xn)||0))},di=function(t,e){var n=t._dp;return n&&n.smoothChildTiming&&t._ts&&(t._start=zr(n._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),fi(t),n._dirty||ai(n,t)),t},pi=function(t,e){var n;if((e._time||e._initted&&!e._dur)&&(n=hi(t.rawTime(),e),(!e._dur||Ei(0,e.totalDuration(),n)-e._tTime>Xn)&&e.render(n,!0)),ai(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}},mi=function(t,e,n,r){return e.parent&&ii(e),e._start=zr((sr(n)?n:n||t!==Vn?Si(t,n,e):t._time)+e._delay),e._end=zr(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),ni(t,e,"_first","_last",t._sort?"_start":0),bi(e)||(t._recent=e),r||pi(t,e),t._ts<0&&di(t,t._tTime),t},gi=function(t,e){return(wr.ScrollTrigger||Tr("scrollTrigger",e))&&wr.ScrollTrigger.create(e,t)},vi=function(t,e,n,r,i){return wa(t,e,i),t._initted?!n&&t._pt&&!Nn&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&jn!==ta.frame?(Pr.push(t),t._lazy=[i,r],1):void 0:1},yi=function t(e){var n=e.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||t(n))},bi=function(t){var e=t.data;return"isFromStart"===e||"isStart"===e},_i=function(t,e,n,r){var i=t._repeat,a=zr(e)||0,s=t._tTime/t._tDur;return s&&!r&&(t._time*=a/t._dur),t._dur=a,t._tDur=i?i<0?1e10:zr(a*(i+1)+t._rDelay*i):a,s>0&&!r&&di(t,t._tTime=t._tDur*s),t.parent&&fi(t),n||ai(t.parent,t),t},wi=function(t){return t instanceof ma?ai(t):_i(t,t._dur)},Di={_start:0,endTime:Mr,totalDuration:Mr},Si=function t(e,n,r){var i,a,s,o=e.labels,u=e._recent||Di,l=e.duration()>=$n?u.endTime(!1):e._dur;return ir(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]=l),o[n]):(a=parseFloat(n.charAt(i-1)+n.substr(i+1)),s&&r&&(a=a/100*(dr(r)?r[0]:r).totalDuration()),i>1?t(e,n.substr(0,i-1),r)+a:l+a)):null==n?l:+n},Ti=function(t,e,n){var r,i,a=sr(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=lr(i.vars.inherit)&&i.parent;o.immediateRender=lr(r.immediateRender),t<2?o.runBackwards=1:o.startAt=e[s-1]}return new Ea(e[0],o,e[s+1])},xi=function(t,e){return t||0===t?e(t):e},Ei=function(t,e,n){return n<t?t:n>e?e:n},Mi=function(t,e){return ir(t)&&(e=_r.exec(t))?e[1]:""},Oi=[].slice,ki=function(t,e){return t&&ur(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&ur(t[0]))&&!t.nodeType&&t!==Bn},Ci=function(t,e,n){return void 0===n&&(n=[]),t.forEach((function(t){var r;return ir(t)&&!e||ki(t,1)?(r=n).push.apply(r,Ai(t)):n.push(t)}))||n},Ai=function(t,e,n){return In&&!e&&In.selector?In.selector(t):!ir(t)||n||!Yn&&ea()?dr(t)?Ci(t,n):ki(t)?Oi.call(t,0):t?[t]:[]:Oi.call((e||Ln).querySelectorAll(t),0)},Pi=function(t){return t=Ai(t)[0]||xr("Invalid scope")||{},function(e){var n=t.current||t.nativeElement||t;return Ai(e,n.querySelectorAll?n:n===t?xr("Invalid scope")||Ln.createElement("div"):t)}},Ri=function(t){return t.sort((function(){return.5-Math.random()}))},Ni=function(t){if(ar(t))return t;var e=ur(t)?t:{each:t},n=ua(e.ease),r=e.from||0,i=parseFloat(e.base)||0,a={},s=r>0&&r<1,o=isNaN(r)||s,u=e.axis,l=r,c=r;return ir(r)?l=c={center:.5,edges:.5,end:1}[r]||0:!s&&o&&(l=r[0],c=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,$n])[1])){for(y=-1e8;y<(y=h[_++].getBoundingClientRect().left)&&_<w;);_--}for(D=a[w]=[],f=o?Math.min(_,w)*l-.5:r%_,d=_===$n?0:o?w*c/_-.5:r/_|0,y=0,b=$n,v=0;v<w;v++)p=v%_-f,m=d-(v/_|0),D[v]=g=u?Math.abs("y"===u?m:p):er(p*p+m*m),g>y&&(y=g),g<b&&(b=g);"random"===r&&Ri(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=Mi(e.amount||e.each)||0,n=n&&w<0?sa(n):n}return w=(D[t]-D.min)/D.max||0,zr(D.b+(n?n(w):w)*D.v)+D.u}},Ii=function(t){var e=Math.pow(10,((t+"").split(".")[1]||"").length);return function(n){var r=zr(Math.round(parseFloat(n)/t)*t*e);return(r-r%1)/e+(sr(n)?0:Mi(n))}},Vi=function(t,e){var n,r,i=dr(t);return!i&&ur(t)&&(n=i=t.radius||$n,t.values?(t=Ai(t.values),(r=!sr(t[0]))&&(n*=n)):t=Ii(t.increment)),xi(e,i?ar(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=$n,l=0,c=t.length;c--;)(i=r?(i=t[c].x-s)*i+(a=t[c].y-o)*a:Math.abs(t[c]-s))<u&&(u=i,l=c);return l=!n||u<=n?t[l]:e,r||l===e||sr(e)?l:l+Mi(e)}:Ii(t))},Bi=function(t,e,n,r){return xi(dr(t)?!e:!0===n?!!(n=0):!r,(function(){return dr(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}))},Yi=function(t,e,n){return xi(n,(function(n){return t[~~e(n)]}))},Li=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?br:pr),s+=t.substr(a,e-a)+Bi(i?n:+n[0],i?0:+n[1],+n[2]||1e-5),a=r+1;return s+t.substr(a,t.length-a)},Fi=function(t,e,n,r,i){var a=e-t,s=r-n;return xi(i,(function(e){return n+((e-t)/a*s||0)}))},ji=function(t,e,n){var r,i,a,s=t.labels,o=$n;for(r in s)(i=s[r]-e)<0==!!n&&i&&o>(i=Math.abs(i))&&(a=r,o=i);return a},Ui=function(t,e,n){var r,i,a,s=t.vars,o=s[e],u=In,l=t._ctx;if(o)return r=s[e+"Params"],i=s.callbackScope||t,n&&Pr.length&&Wr(),l&&(In=l),a=r?o.apply(i,r):o.call(i),In=u,a},Hi=function(t){return ii(t),t.scrollTrigger&&t.scrollTrigger.kill(!!Nn),t.progress()<1&&Ui(t,"onInterrupt"),t},zi=function(t){var e=(t=!t.name&&t.default||t).name,n=ar(t),r=e&&!n&&t.init?function(){this._props=[]}:t,i={init:Mr,render:Ia,add:ba,kill:Ba,modifier:Va,rawVars:0},a={targetTest:0,get:0,getSetter:Aa,aliases:{},register:0};if(ea(),t!==r){if(Nr[e])return;Xr(r,Xr(ti(t,i),a)),Jr(r.prototype,Jr(i,ti(t,a))),Nr[r.prop=e]=r,t.targetTest&&(Br.push(r),Ar[e]=1),e=("css"===e?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}Er(e,r),t.register&&t.register(Ja,r,Fa)},qi=255,Gi={aqua:[0,qi,qi],lime:[0,qi,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,qi],navy:[0,0,128],white:[qi,qi,qi],olive:[128,128,0],yellow:[qi,qi,0],orange:[qi,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[qi,0,0],pink:[qi,192,203],cyan:[0,qi,qi],transparent:[qi,qi,qi,0]},Wi=function(t,e,n){return(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)*qi+.5|0},Zi=function(t,e,n){var r,i,a,s,o,u,l,c,h,f,d=t?sr(t)?[t>>16,t>>8&qi,t&qi]:0:Gi.black;if(!d){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),Gi[t])d=Gi[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&qi,d&qi,parseInt(t.substr(7),16)/255];d=[(t=parseInt(t.substr(1),16))>>16,t>>8&qi,t&qi]}else if("hsl"===t.substr(0,3))if(d=f=t.match(pr),e){if(~t.indexOf("="))return d=t.match(mr),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]=Wi(s+1/3,r,i),d[1]=Wi(s,r,i),d[2]=Wi(s-1/3,r,i);else d=t.match(pr)||Gi.transparent;d=d.map(Number)}return e&&!f&&(r=d[0]/qi,i=d[1]/qi,a=d[2]/qi,u=((l=Math.max(r,i,a))+(c=Math.min(r,i,a)))/2,l===c?s=o=0:(h=l-c,o=u>.5?h/(2-l-c):h/(l+c),s=l===r?(i-a)/h+(i<a?6:0):l===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},Ki=function(t){var e=[],n=[],r=-1;return t.split(Xi).forEach((function(t){var i=t.match(gr)||[];e.push.apply(e,i),n.push(r+=i.length+1)})),e.c=n,e},$i=function(t,e,n){var r,i,a,s,o="",u=(t+o).match(Xi),l=e?"hsla(":"rgba(",c=0;if(!u)return t;if(u=u.map((function(t){return(t=Zi(t,e,1))&&l+(e?t[0]+","+t[1]+"%,"+t[2]+"%,"+t[3]:t.join(","))+")"})),n&&(a=Ki(t),(r=n.c).join(o)!==a.c.join(o)))for(s=(i=t.replace(Xi,"1").split(gr)).length-1;c<s;c++)o+=i[c]+(~r.indexOf(c)?u.shift()||l+"0,0,0,0)":(a.length?a:u.length?u:n).shift());if(!i)for(s=(i=t.split(Xi)).length-1;c<s;c++)o+=i[c]+u[c];return o+i[s]},Xi=function(){var t,e="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b";for(t in Gi)e+="|"+t+"\\b";return new RegExp(e+")","gi")}(),Ji=/hsl[a]?\(/,Qi=function(t){var e,n=t.join(" ");if(Xi.lastIndex=0,Xi.test(n))return e=Ji.test(n),t[1]=$i(t[1],e),t[0]=$i(t[0],e,Ki(t[1])),!0},ta=function(){var t,e,n,r,i,a,s=Date.now,o=500,u=33,l=s(),c=l,h=1e3/240,f=h,d=[],p=function n(p){var m,g,v,y,b=s()-c,_=!0===p;if(b>o&&(l+=b-u),((m=(v=(c+=b)-l)-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(){Fn&&(!Yn&&cr()&&(Bn=Yn=window,Ln=Bn.document||{},wr.gsap=Ja,(Bn.gsapVersions||(Bn.gsapVersions=[])).push(Ja.version),Sr(Dr||Bn.GreenSockGlobals||!Bn.gsap&&Bn||{}),n=Bn.requestAnimationFrame),t&&r.sleep(),e=n||function(t){return setTimeout(t,f-1e3*r.time+1|0)},Hn=1,p(2))},sleep:function(){(n?Bn.cancelAnimationFrame:clearTimeout)(t),Hn=0,e=Mr},lagSmoothing:function(t,e){o=t||1e8,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),ea(),i},remove:function(t,e){~(e=d.indexOf(t))&&d.splice(e,1)&&a>=e&&a--},_listeners:d},r}(),ea=function(){return!Hn&&ta.wake()},na={},ra=/^[\d.\-M][\d.\-,\s]/,ia=/["']/g,aa=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(ia,"").trim():+r,s=n.substr(e+1).trim();return i},sa=function(t){return function(e){return 1-t(1-e)}},oa=function t(e,n){for(var r,i=e._first;i;)i instanceof ma?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},ua=function(t,e){return t&&(ar(t)?t:na[t]||function(t){var e=(t+"").split("("),n=na[e[0]];return n&&e.length>1&&n.config?n.config.apply(null,~t.indexOf("{")?[aa(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(Kr)):na._CE&&ra.test(t)?na._CE("",t):n}(t))||e},la=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 Ur(t,(function(t){for(var e in na[t]=wr[t]=a,na[i=t.toLowerCase()]=n,a)na[i+("easeIn"===e?".in":"easeOut"===e?".out":".inOut")]=na[t+"."+e]=a[e]})),a},ca=function(t){return function(e){return e<.5?(1-t(1-2*e))/2:.5+t(2*(e-.5))/2}},ha=function t(e,n,r){var i=n>=1?n:1,a=(r||(e?.3:.45))/(n<1?n:1),s=a/Jn*(Math.asin(1/i)||0),o=function(t){return 1===t?1:i*Math.pow(2,-10*t)*rr((t-s)*a)+1},u="out"===e?o:"in"===e?function(t){return 1-o(1-t)}:ca(o);return a=Jn/a,u.config=function(n,r){return t(e,n,r)},u},fa=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)}:ca(r);return i.config=function(n){return t(e,n)},i};Ur("Linear,Quad,Cubic,Quart,Quint,Strong",(function(t,e){var n=e<5?e+1:e;la(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}))})),na.Linear.easeNone=na.none=na.Linear.easeIn,la("Elastic",ha("in"),ha("out"),ha()),zn=7.5625,Gn=1/(qn=2.75),la("Bounce",(function(t){return 1-Wn(1-t)}),Wn=function(t){return t<Gn?zn*t*t:t<.7272727272727273?zn*Math.pow(t-1.5/qn,2)+.75:t<.9090909090909092?zn*(t-=2.25/qn)*t+.9375:zn*Math.pow(t-2.625/qn,2)+.984375}),la("Expo",(function(t){return t?Math.pow(2,10*(t-1)):0})),la("Circ",(function(t){return-(er(1-t*t)-1)})),la("Sine",(function(t){return 1===t?1:1-nr(t*Qn)})),la("Back",fa("in"),fa("out"),fa()),na.SteppedEase=na.steps=wr.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*Ei(0,.99999999,t)|0)+i)*n}}},Kn.ease=na["quad.out"],Ur("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",(function(t){return Yr+=t+","+t+"Params,"}));var da=function(t,e){this.id=tr++,t._gsap=this,this.target=t,this.harness=e,this.get=e?e.get:jr,this.set=e?e.getSetter:Aa},pa=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,_i(this,+t.duration,1,1),this.data=t.data,In&&(this._ctx=In,In.data.push(this)),Hn||ta.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,_i(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(t,e){if(ea(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(di(this,t),!n._dp||n.parent||pi(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)&&mi(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!e||this._initted&&Math.abs(this._zTime)===Xn||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),Zr(this,t,e)),this},e.time=function(t,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+li(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)+li(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?ci(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?hi(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||-1e-8===t?0:this._rts,this.totalTime(Ei(-this._delay,this._tDur,e),!0),fi(this),si(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):(ea(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&Math.abs(this._zTime)!==Xn&&(this._tTime-=Xn)))),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)&&mi(e,this,t-this._delay),this}return this._start},e.endTime=function(t){return this._start+(lr(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?hi(e.rawTime(t),this):this._tTime:this._tTime},e.revert=function(t){void 0===t&&(t=Cr);var e=Nn;return Nn=t,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(t),this.totalTime(-.01,t.suppressEvents)),"nested"!==this.data&&!1!==t.kill&&this.kill(),Nn=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,wi(this)):-2===this._repeat?1/0:this._repeat},e.repeatDelay=function(t){if(arguments.length){var e=this._time;return this._rDelay=t,wi(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(Si(this,t),lr(e))},e.restart=function(t,e){return this.play().totalTime(t?-this._delay:0,lr(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)-Xn))},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=ar(t)?t:$r,i=function(){var t=e.then;e.then=null,ar(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(){Hi(this)},t}();Xr(pa.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 ma=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=lr(e.sortChildren),Vn&&mi(e.parent||Vn,An(r),n),e.reversed&&r.reverse(),e.paused&&r.paused(!0),e.scrollTrigger&&gi(An(r),e.scrollTrigger),r}Pn(e,t);var n=e.prototype;return n.to=function(t,e,n){return Ti(0,arguments,this),this},n.from=function(t,e,n){return Ti(1,arguments,this),this},n.fromTo=function(t,e,n,r){return Ti(2,arguments,this),this},n.set=function(t,e,n){return e.duration=0,e.parent=this,ei(e).repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new Ea(t,e,Si(this,n),1),this},n.call=function(t,e,n){return mi(this,Ea.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 Ea(t,n,Si(this,i)),this},n.staggerFrom=function(t,e,n,r,i,a,s){return n.runBackwards=1,ei(n).immediateRender=lr(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,ei(r).immediateRender=lr(r.immediateRender),this.staggerTo(t,e,r,i,a,s,o)},n.render=function(t,e,n){var r,i,a,s,o,u,l,c,h,f,d,p,m=this._time,g=this._dirty?this.totalDuration():this._tDur,v=this._dur,y=t<=0?0:zr(t),b=this._zTime<0!=t<0&&(this._initted||!v);if(this!==Vn&&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=!(c=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=zr(y%o),y===g?(s=this._repeat,r=v):((s=~~(y/o))&&s===y/o&&(r=v,s--),r>v&&(r=v)),f=ci(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:zr(s*o)),e,!v)._lock=0,this._tTime=y,!e&&this.parent&&Ui(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;oa(this,p)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(l=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,zr(m),zr(r)),l&&(y-=r-(r=l._start))),this._tTime=y,this._time=r,this._act=!c,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=t,m=0),!m&&r&&!e&&(Ui(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&&l!==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){l=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&&l!==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||Nn&&(i._initted||i._startAt)),r!==this._time||!this._ts&&!u){l=0,a&&(y+=this._zTime=D?-1e-8:Xn);break}}i=a}}if(l&&!e&&(this.pause(),l.render(r>=m?0:-1e-8)._zTime=r>=m?1:-1,this._ts))return this._start=h,fi(this),this.render(t,e,n);this._onUpdate&&!e&&Ui(this,"onUpdate",!0),(y===g&&this._tTime>=this.totalDuration()||!y&&m)&&(h!==this._start&&Math.abs(c)===Math.abs(this._ts)||this._lock||((t||!v)&&(y===g&&this._ts>0||!y&&this._ts<0)&&ii(this,1),e||t<0&&!m||!y&&!m&&g||(Ui(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(sr(e)||(e=Si(this,e,t)),!(t instanceof pa)){if(dr(t))return t.forEach((function(t){return n.add(t,e)})),this;if(ir(t))return this.addLabel(t,e);if(!ar(t))return this;t=Ea.delayedCall(0,t)}return this!==t?mi(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 Ea?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 ir(t)?this.removeLabel(t):ar(t)?this.killTweensOf(t):(ri(this,t),t===this._recent&&(this._recent=this._last),ai(this))},n.totalTime=function(e,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=zr(ta.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]=Si(this,e),this},n.removeLabel=function(t){return delete this.labels[t],this},n.addPause=function(t,e,n){var r=Ea.delayedCall(0,e||Mr,n);return r.data="isPause",this._hasPause=1,mi(this,r,Si(this,t))},n.removePause=function(t){var e=this._first;for(t=Si(this,t);e;)e._start===t&&"isPause"===e.data&&ii(e),e=e._next},n.killTweensOf=function(t,e,n){for(var r=this.getTweensOf(t,n),i=r.length;i--;)ga!==r[i]&&r[i].kill(t,e);return this},n.getTweensOf=function(t,e){for(var n,r=[],i=Ai(t),a=this._first,s=sr(e);a;)a instanceof Ea?Gr(a._targets,i)&&(s?(!ga||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=Si(r,t),a=e,s=a.startAt,o=a.onStart,u=a.onStartParams,l=a.immediateRender,c=Ea.to(r,Xr({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())||Xn,onStart:function(){if(r.pause(),!n){var t=e.duration||Math.abs((i-(s&&"time"in s?s.time:r._time))/r.timeScale());c._dur!==t&&_i(c,t,0,1).render(c._time,!0,!0),n=1}o&&o.apply(c,u||[])}},e));return l?c.render(0):c},n.tweenFromTo=function(t,e,n){return this.tweenTo(e,Xr({startAt:{time:Si(this,t)}},n))},n.recent=function(){return this._recent},n.nextLabel=function(t){return void 0===t&&(t=this._time),ji(this,Si(this,t))},n.previousLabel=function(t){return void 0===t&&(t=this._time),ji(this,Si(this,t),1)},n.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+Xn)},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 ai(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={}),ai(this)},n.totalDuration=function(t){var e,n,r,i=0,a=this,s=a._last,o=$n;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,mi(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;_i(a,a===Vn&&a._time>i?a._time:i,1,1),a._dirty=0}return a._tDur},e.updateRoot=function(t){if(Vn._ts&&(Zr(Vn,hi(t,Vn)),jn=ta.frame),ta.frame>=Vr){Vr+=Zn.autoSleep||120;var e=Vn._first;if((!e||!e._ts)&&Zn.autoSleep&&ta._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||ta.sleep()}}},e}(pa);Xr(ma.prototype,{_lock:0,_hasPause:0,_forcing:0});var ga,va,ya=function(t,e,n,r,i,a,s){var o,u,l,c,h,f,d,p,m=new Fa(this._pt,t,e,0,1,Na,null,i),g=0,v=0;for(m.b=n,m.e=r,n+="",(d=~(r+="").indexOf("random("))&&(r=Li(r)),a&&(a(p=[n,r],t,e),n=p[0],r=p[1]),u=n.match(vr)||[];o=vr.exec(r);)c=o[0],h=r.substring(g,o.index),l?l=(l+1)%5:"rgba("===h.substr(-5)&&(l=1),c!==u[v++]&&(f=parseFloat(u[v-1])||0,m._pt={_next:m._pt,p:h||1===v?h:",",s:f,c:"="===c.charAt(1)?qr(f,c)-f:parseFloat(c)-f,m:l&&l<4?Math.round:0},g=vr.lastIndex);return m.c=g<r.length?r.substring(g,r.length):"",m.fp=s,(yr.test(r)||d)&&(m.e=0),this._pt=m,m},ba=function(t,e,n,r,i,a,s,o,u,l){ar(r)&&(r=r(i||0,t,a));var c,h=t[e],f="get"!==n?n:ar(h)?u?t[e.indexOf("set")||!ar(t["get"+e.substr(3)])?e:"get"+e.substr(3)](u):t[e]():h,d=ar(h)?u?ka:Oa:Ma;if(ir(r)&&(~r.indexOf("random(")&&(r=Li(r)),"="===r.charAt(1)&&((c=qr(f,r)+(Mi(f)||0))||0===c)&&(r=c)),!l||f!==r||va)return isNaN(f*r)||""===r?(!h&&!(e in t)&&Tr(e,r),ya.call(this,t,e,f,r,d,o||Zn.stringFilter,u)):(c=new Fa(this._pt,t,e,+f||0,r-(f||0),"boolean"==typeof h?Ra:Pa,0,d),u&&(c.fp=u),s&&c.modifier(s,this,t),this._pt=c)},_a=function(t,e,n,r,i,a){var s,o,u,l;if(Nr[t]&&!1!==(s=new Nr[t]).init(i,s.rawVars?e[t]:function(t,e,n,r,i){if(ar(t)&&(t=Sa(t,i,e,n,r)),!ur(t)||t.style&&t.nodeType||dr(t)||fr(t))return ir(t)?Sa(t,i,e,n,r):t;var a,s={};for(a in t)s[a]=Sa(t[a],i,e,n,r);return s}(e[t],r,i,a,n),n,r,a)&&(n._pt=o=new Fa(n._pt,i,t,0,1,s.render,s,0,s.priority),n!==Un))for(u=n._ptLookup[n._targets.indexOf(i)],l=s._props.length;l--;)u[s._props[l]]=o;return s},wa=function t(e,n,r){var i,a,s,o,u,l,c,h,f,d,p,m,g,v=e.vars,y=v.ease,b=v.startAt,_=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&&!Rn,I=e.timeline;if(I&&(!M||!y)&&(y="none"),e._ease=ua(y,Kn.ease),e._yEase=E?sa(ua(!0===E?y:E,Kn.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]?Fr(A[0]).harness:0)&&v[h.prop],i=ti(v,Ar),C&&(C._zTime<0&&C.progress(1),n<0&&x&&_&&!O?C.render(-1,!0):C.revert(x&&k?kr:Or),C._lazy=0),b){if(ii(e._startAt=Ea.set(A,Xr({data:"isStart",overwrite:!1,parent:P,immediateRender:!0,lazy:lr(w),startAt:null,delay:0,onUpdate:D,onUpdateParams:S,callbackScope:T,stagger:0},b))),e._startAt._dp=0,n<0&&(Nn||!_&&!O)&&e._startAt.revert(kr),_&&k&&n<=0&&r<=0)return void(n&&(e._zTime=n))}else if(x&&k&&!C)if(n&&(_=!1),s=Xr({overwrite:!1,data:"isFromStart",lazy:_&&lr(w),immediateRender:_,stagger:0,parent:P},i),m&&(s[h.prop]=m),ii(e._startAt=Ea.set(A,s)),e._startAt._dp=0,n<0&&(Nn?e._startAt.revert(kr):e._startAt.render(-1,!0)),e._zTime=n,_){if(!n)return}else t(e._startAt,Xn,Xn);for(e._pt=e._ptCache=0,w=k&&lr(w)||w&&!k,a=0;a<A.length;a++){if(c=(u=A[a])._gsap||Lr(A)[a]._gsap,e._ptLookup[a]=d={},Rr[c.id]&&Pr.length&&Wr(),p=R===A?a:R.indexOf(u),h&&!1!==(f=new h).init(u,m||i,e,p,R)&&(e._pt=o=new Fa(e._pt,u,f.name,0,1,f.render,f,0,f.priority),f._props.forEach((function(t){d[t]=o})),f.priority&&(l=1)),!h||m)for(s in i)Nr[s]&&(f=_a(s,i,e,p,u,R))?f.priority&&(l=1):d[s]=o=ba.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&&(ga=e,Vn.killTweensOf(u,d,e.globalTime(n)),g=!e.parent,ga=0),e._pt&&w&&(Rr[c.id]=1)}l&&La(e),e._onInit&&e._onInit(e)}e._onUpdate=D,e._initted=(!e._op||e._pt)&&!g,M&&n<=0&&I.render($n,!0,!0)},Da=function(t,e,n,r){var i,a,s=e.ease||r||"power1.inOut";if(dr(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})},Sa=function(t,e,n,r,i){return ar(t)?t.call(e,n,r,i):ir(t)&&~t.indexOf("random(")?Li(t):t},Ta=Yr+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",xa={};Ur(Ta+",id,stagger,delay,duration,paused,scrollTrigger",(function(t){return xa[t]=1}));var Ea=function(t){function e(e,n,r,i){var a;"number"==typeof n&&(r.duration=n,n=r,r=null);var s,o,u,l,c,h,f,d,p=(a=t.call(this,i?n:ei(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,S=p.yoyoEase,T=n.parent||Vn,x=(dr(e)||fr(e)?sr(e[0]):"length"in n)?[e]:Ai(e);if(a._targets=x.length?Lr(x):xr("GSAP target "+e+" not found. https://greensock.com",!Zn.nullTargetWarn)||[],a._ptLookup=[],a._overwrite=b,_||y||hr(m)||hr(g)){if(n=a.vars,(s=a.timeline=new ma({data:"nested",defaults:w||{},targets:T&&"nested"===T.data?T.vars.targets:x})).kill(),s.parent=s._dp=An(a),s._start=0,y||hr(m)||hr(g)){if(l=x.length,f=y&&Ni(y),ur(y))for(c in y)~Ta.indexOf(c)&&(d||(d={}),d[c]=y[c]);for(o=0;o<l;o++)(u=ti(n,xa)).stagger=0,S&&(u.yoyoEase=S),d&&Jr(u,d),h=x[o],u.duration=+Sa(m,An(a),o,h,x),u.delay=(+Sa(g,An(a),o,h,x)||0)-a._delay,!y&&1===l&&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=na.none;s.duration()?m=g=0:a.timeline=0}else if(_){ei(Xr(s.vars.defaults,{ease:"none"})),s._ease=ua(_.ease||n.ease||"none");var E,M,O,k=0;if(dr(_))_.forEach((function(t){return s.to(x,t,">")})),s.duration();else{for(c in u={},_)"ease"===c||"easeEach"===c||Da(c,_[c],u,_.easeEach);for(c in u)for(E=u[c].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})[c]=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||Rn||(ga=An(a),Vn.killTweensOf(x),ga=0),mi(T,An(a),r),n.reversed&&a.reverse(),n.paused&&a.paused(!0),(v||!m&&!_&&a._start===zr(T._time)&&lr(v)&&ui(An(a))&&"nested"!==T.data)&&(a._tTime=-1e-8,a.render(Math.max(0,-g)||0)),D&&gi(An(a),D),a}Pn(e,t);var n=e.prototype;return n.render=function(t,e,n){var r,i,a,s,o,u,l,c,h,f=this._time,d=this._tDur,p=this._dur,m=t<0,g=t>d-Xn&&!m?d:t<Xn?0:t;if(p){if(g!==this._tTime||!t||n||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==m){if(r=g,c=this.timeline,this._repeat){if(s=p+this._rDelay,this._repeat<-1&&m)return this.totalTime(100*s+t,e,n);if(r=zr(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=ci(this._tTime,s),r===f&&!n&&this._initted)return this._tTime=g,this;a!==o&&(c&&this._yEase&&oa(c,u),!this.vars.repeatRefresh||u||this._lock||(this._lock=n=1,this.render(zr(s*a),!0).invalidate()._lock=0))}if(!this._initted){if(vi(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=l=(h||this._ease)(r/p),this._from&&(this.ratio=l=1-l),r&&!f&&!e&&(Ui(this,"onStart"),this._tTime!==g))return this;for(i=this._pt;i;)i.r(l,i.d),i=i._next;c&&c.render(t<0?t:!r&&u?-1e-8:c._dur*c._ease(r/this._dur),e,n)||this._startAt&&(this._zTime=t),this._onUpdate&&!e&&(m&&oi(this,t,0,n),Ui(this,"onUpdate")),this._repeat&&a!==o&&this.vars.onRepeat&&!e&&this.parent&&Ui(this,"onRepeat"),g!==this._tDur&&g||this._tTime!==g||(m&&!this._onUpdate&&oi(this,t,0,!0),(t||!p)&&(g===this._tDur&&this._ts>0||!g&&this._ts<0)&&ii(this,1),e||m&&!f||!(g||f||u)||(Ui(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&&yi(t)&&(t._initted||!bi(t))||(t._ts<0||t._dp._ts<0)&&!bi(t))?0:1,l=t._rDelay,c=0;if(l&&t._repeat&&(c=Ei(0,t._tDur,e),a=ci(c,l),t._yoyo&&1&a&&(u=1-u),a!==ci(t._tTime,l)&&(o=1-u,t.vars.repeatRefresh&&t._initted&&t.invalidate())),u!==o||Nn||r||t._zTime===Xn||!e&&t._zTime){if(!t._initted&&vi(t,e,r,n,c))return;for(s=t._zTime,t._zTime=e||(n?Xn:0),n||(n=e&&!s),t.ratio=u,t._from&&(u=1-u),t._time=0,t._tTime=c,i=t._pt;i;)i.r(u,i.d),i=i._next;e<0&&oi(t,e,0,!0),t._onUpdate&&!n&&Ui(t,"onUpdate"),c&&t._repeat&&!n&&t.parent&&Ui(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===u&&(u&&ii(t,1),n||Nn||(Ui(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){Hn||ta.wake(),this._ts||this.play();var i=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return this._initted||wa(this,i),function(t,e,n,r,i,a,s){var o,u,l,c,h=(t._pt&&t._ptCache||(t._ptCache={}))[e];if(!h)for(h=t._ptCache[e]=[],l=t._ptLookup,c=t._targets.length;c--;){if((o=l[c][e])&&o.d&&o.d._pt)for(o=o.d._pt;o&&o.p!==e&&o.fp!==e;)o=o._next;if(!o)return va=1,t.vars[e]="+=0",wa(t,s),va=0,1;h.push(o)}for(c=h.length;c--;)(o=(u=h[c])._pt||u).s=!r&&0!==r||i?o.s+(r||0)+a*o.c:r,o.c=n-o.s,u.e&&(u.e=Hr(n)+Mi(u.e)),u.b&&(u.b=o.s+Mi(u.b))}(this,t,e,n,r,this._ease(i/this._dur),i)?this.resetTo(t,e,n,r):(di(this,0),this.parent||ni(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?Hi(this):this;if(this.timeline){var n=this.timeline.totalDuration();return this.timeline.killTweensOf(t,e,ga&&!0!==ga.vars.overwrite)._first||Hi(this),this.parent&&n!==this.timeline.totalDuration()&&_i(this,this._dur*this.timeline._tDur/n,0,1),this}var r,i,a,s,o,u,l,c=this._targets,h=t?Ai(t):c,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}(c,h))return"all"===e&&(this._pt=0),Hi(this);for(r=this._op=this._op||[],"all"!==e&&(ir(e)&&(o={},Ur(e,(function(t){return o[t]=1})),e=o),e=function(t,e){var n,r,i,a,s=t[0]?Fr(t[0]).harness:0,o=s&&s.aliases;if(!o)return e;for(r in n=Jr({},e),o)if(r in n)for(i=(a=o[r].split(",")).length;i--;)n[a[i]]=n[r];return n}(c,e)),l=c.length;l--;)if(~h.indexOf(c[l]))for(o in i=f[l],"all"===e?(r[l]=e,s=i,a={}):(a=r[l]=r[l]||{},s=e),s)(u=i&&i[o])&&("kill"in u.d&&!0!==u.d.kill(o)||ri(this,u,"_pt"),delete i[o]),"all"!==a&&(a[o]=1);return this._initted&&!this._pt&&d&&Hi(this),this},e.to=function(t,n){return new e(t,n,arguments[2])},e.from=function(t,e){return Ti(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 Ti(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 Vn.killTweensOf(t,e,n)},e}(pa);Xr(Ea.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),Ur("staggerTo,staggerFrom,staggerFromTo",(function(t){Ea[t]=function(){var e=new ma,n=Oi.call(arguments,0);return n.splice("staggerFromTo"===t?5:4,0,0),e[t].apply(e,n)}}));var Ma=function(t,e,n){return t[e]=n},Oa=function(t,e,n){return t[e](n)},ka=function(t,e,n,r){return t[e](r.fp,n)},Ca=function(t,e,n){return t.setAttribute(e,n)},Aa=function(t,e){return ar(t[e])?Oa:or(t[e])&&t.setAttribute?Ca:Ma},Pa=function(t,e){return e.set(e.t,e.p,Math.round(1e6*(e.s+e.c*t))/1e6,e)},Ra=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},Na=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)},Ia=function(t,e){for(var n=e._pt;n;)n.r(t,n.d),n=n._next},Va=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},Ba=function(t){for(var e,n,r=this._pt;r;)n=r._next,r.p===t&&!r.op||r.op===t?ri(this,r,"_pt"):r.dep||(e=1),r=n;return!e},Ya=function(t,e,n,r){r.mSet(t,e,r.m.call(r.tween,n,r.mt),r)},La=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},Fa=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||Pa,this.d=s||this,this.set=o||Ma,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=Ya,this.m=t,this.mt=n,this.tween=e},t}();Ur(Yr+"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 Ar[t]=1})),wr.TweenMax=wr.TweenLite=Ea,wr.TimelineLite=wr.TimelineMax=ma,Vn=new ma({sortChildren:!1,defaults:Kn,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),Zn.stringFilter=Qi;var ja=[],Ua={},Ha=[],za=0,qa=function(t){return(Ua[t]||Ha).map((function(t){return t()}))},Ga=function(){var t=Date.now(),e=[];t-za>2&&(qa("matchMediaInit"),ja.forEach((function(t){var n,r,i,a,s=t.queries,o=t.conditions;for(r in s)(n=Bn.matchMedia(s[r]).matches)&&(i=1),n!==o[r]&&(o[r]=n,a=1);a&&(t.revert(),i&&e.push(t))})),qa("matchMediaRevert"),e.forEach((function(t){return t.onMatch(t)})),za=t,qa("matchMedia"))},Wa=function(){function t(t,e){this.selector=e&&Pi(e),this.data=[],this._r=[],this.isReverted=!1,t&&this.add(t)}var e=t.prototype;return e.add=function(t,e,n){ar(t)&&(n=e,e=t,t=ar);var r=this,i=function(){var t,i=In,a=r.selector;return i&&i!==r&&i.data.push(r),n&&(r.selector=Pi(n)),In=r,t=e.apply(r,arguments),ar(t)&&r._r.push(t),In=i,r.selector=a,r.isReverted=!1,t};return r.last=i,t===ar?i(r):t?r[t]=i:i},e.ignore=function(t){var e=In;In=null,t(this),In=e},e.getTweens=function(){var e=[];return this.data.forEach((function(n){return n instanceof t?e.push.apply(e,n.getTweens()):n instanceof Ea&&!(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 pa)&&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=ja.indexOf(this);~i&&ja.splice(i,1)}},e.revert=function(t){this.kill(t||{})},t}(),Za=function(){function t(t){this.contexts=[],this.scope=t}var e=t.prototype;return e.add=function(t,e,n){ur(t)||(t={matches:t});var r,i,a,s=new Wa(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=Bn.matchMedia(t[i]))&&(ja.indexOf(s)<0&&ja.push(s),(o[i]=r.matches)&&(a=1),r.addListener?r.addListener(Ga):r.addEventListener("change",Ga));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}(),Ka={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 zi(t)}))},timeline:function(t){return new ma(t)},getTweensOf:function(t,e){return Vn.getTweensOf(t,e)},getProperty:function(t,e,n,r){ir(t)&&(t=Ai(t)[0]);var i=Fr(t||{}).get,a=n?$r:Kr;return"native"===n&&(n=""),t?e?a((Nr[e]&&Nr[e].get||i)(t,e,n,r)):function(e,n,r){return a((Nr[e]&&Nr[e].get||i)(t,e,n,r))}:t},quickSetter:function(t,e,n){if((t=Ai(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=Nr[e],s=Fr(t),o=s.harness&&(s.harness.aliases||{})[e]||e,u=a?function(e){var r=new a;Un._pt=0,r.init(t,n?e+n:e,Un,0,[t]),r.render(1,r),Un._pt&&Ia(1,Un)}: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,Jr(((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 Vn.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=ua(t.ease,Kn.ease)),Qr(Kn,t||{})},config:function(t){return Qr(Zn,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&&!Nr[t]&&!wr[t]&&xr(e+" effect requires "+t+" plugin.")})),Ir[e]=function(t,e,r){return n(Ai(t),Xr(e||{},i),r)},a&&(ma.prototype[e]=function(t,n,r){return this.add(Ir[e](t,ur(n)?n:(r=n)&&{},this),r)})},registerEase:function(t,e){na[t]=ua(e)},parseEase:function(t,e){return arguments.length?ua(t,e):na},getById:function(t){return Vn.getById(t)},exportRoot:function(t,e){void 0===t&&(t={});var n,r,i=new ma(t);for(i.smoothChildTiming=lr(t.smoothChildTiming),Vn.remove(i),i._dp=0,i._time=i._tTime=Vn._time,n=Vn._first;n;)r=n._next,!e&&!n._dur&&n instanceof Ea&&n.vars.onComplete===n._targets[0]||mi(i,n,n._start-n._delay),n=r;return mi(Vn,i,0),i},context:function(t,e){return t?new Wa(t,e):In},matchMedia:function(t){return new Za(t)},matchMediaRefresh:function(){return ja.forEach((function(t){var e,n,r=t.conditions;for(n in r)r[n]&&(r[n]=!1,e=1);e&&t.revert()}))||Ga()},addEventListener:function(t,e){var n=Ua[t]||(Ua[t]=[]);~n.indexOf(e)||n.push(e)},removeEventListener:function(t,e){var n=Ua[t],r=n&&n.indexOf(e);r>=0&&n.splice(r,1)},utils:{wrap:function t(e,n,r){var i=n-e;return dr(e)?Yi(e,t(0,e.length),n):xi(r,(function(t){return(i+(t-e)%i)%i+e}))},wrapYoyo:function t(e,n,r){var i=n-e,a=2*i;return dr(e)?Yi(e,t(0,e.length-1),n):xi(r,(function(t){return e+((t=(a+(t-e)%a)%a||0)>i?a-t:t)}))},distribute:Ni,random:Bi,snap:Vi,normalize:function(t,e,n){return Fi(t,e,0,1,n)},getUnit:Mi,clamp:function(t,e,n){return xi(n,(function(n){return Ei(t,e,n)}))},splitColor:Zi,toArray:Ai,selector:Pi,mapRange:Fi,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||Mi(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,l,c,h=ir(e),f={};if(!0===r&&(i=1)&&(r=null),h)e={p:e},n={p:n};else if(dr(e)&&!dr(n)){for(u=[],l=e.length,c=l-2,o=1;o<l;o++)u.push(t(e[o-1],e[o]));l--,a=function(t){t*=l;var e=Math.min(c,~~t);return u[e](t-e)},r=n}else i||(e=Jr(dr(e)?[]:{},e));if(!u){for(s in n)ba.call(f,e,s,"get",n[s]);a=function(t){return Ia(t,f)||(h?e.p:e)}}}return xi(r,a)},shuffle:Ri},install:Sr,effects:Ir,ticker:ta,updateRoot:ma.updateRoot,plugins:Nr,globalTimeline:Vn,core:{PropTween:Fa,globals:Er,Tween:Ea,Timeline:ma,Animation:pa,getCache:Fr,_removeLinkedListItem:ri,reverting:function(){return Nn},context:function(t){return t&&In&&(In.data.push(t),t._ctx=In),In},suppressOverwrites:function(t){return Rn=t}}};Ur("to,from,fromTo,delayedCall,set,killTweensOf",(function(t){return Ka[t]=Ea[t]})),ta.add(ma.updateRoot),Un=Ka.to({},{duration:0});var $a=function(t,e){for(var n=t._pt;n&&n.p!==e&&n.op!==e&&n.fp!==e;)n=n._next;return n},Xa=function(t,e){return{name:t,rawVars:1,init:function(t,n,r){r._onInit=function(t){var r,i;if(ir(n)&&(r={},Ur(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=$a(i,n)),i&&i.modifier&&i.modifier(e[n],t,a[r],n))}(t,n)}}}},Ja=Ka.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;)Nn?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)}},Xa("roundProps",Ii),Xa("modifiers"),Xa("snap",Vi))||Ka;Ea.version=ma.version=Ja.version="3.11.3",Fn=1,cr()&&ea(),na.Power0,na.Power1,na.Power2,na.Power3,na.Power4,na.Linear,na.Quad,na.Cubic,na.Quart,na.Quint,na.Strong,na.Elastic,na.Back,na.SteppedEase,na.Bounce,na.Sine,na.Expo,na.Circ;
|
|
20
|
+
* GSAP 3.11.3
|
|
21
|
+
* https://greensock.com
|
|
22
|
+
*
|
|
23
|
+
* @license Copyright 2008-2022, GreenSock. All rights reserved.
|
|
24
|
+
* Subject to the terms at https://greensock.com/standard-license or for
|
|
25
|
+
* Club GreenSock members, the agreement issued with that membership.
|
|
26
|
+
* @author: Jack Doyle, jack@greensock.com
|
|
27
|
+
*/var er,nr,rr,ir,ar,sr,or,ur,lr,cr,hr,fr,dr,pr,mr,gr={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},vr={duration:.5,overwrite:!1,delay:0},yr=1e8,br=1e-8,_r=2*Math.PI,wr=_r/4,Dr=0,Tr=Math.sqrt,Sr=Math.cos,xr=Math.sin,Er=function(t){return"string"==typeof t},Mr=function(t){return"function"==typeof t},Or=function(t){return"number"==typeof t},kr=function(t){return void 0===t},Cr=function(t){return"object"==typeof t},Ar=function(t){return!1!==t},Pr=function(){return"undefined"!=typeof window},Rr=function(t){return Mr(t)||Er(t)},Nr="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},Ir=Array.isArray,Vr=/(?:-?\.?\d|\.)+/gi,Br=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Yr=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,Lr=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,Fr=/[+-]=-?[.\d]+/,jr=/[^,'"\[\]\s]+/gi,Ur=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,Hr={},zr={},qr=function(t){return(zr=_i(t,Hr))&&_s},Gr=function(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")},Wr=function(t,e){return!e&&console.warn(t)},Zr=function(t,e){return t&&(Hr[t]=e)&&zr&&(zr[t]=e)||Hr},$r=function(){return 0},Kr={suppressEvents:!0,isStart:!0,kill:!1},Xr={suppressEvents:!0,kill:!1},Qr={suppressEvents:!0},Jr={},ti=[],ei={},ni={},ri={},ii=30,ai=[],si="",oi=function(t){var e,n,r=t[0];if(Cr(r)||Mr(r)||(t=[t]),!(e=(r._gsap||{}).harness)){for(n=ai.length;n--&&!ai[n].targetTest(r););e=ai[n]}for(n=t.length;n--;)t[n]&&(t[n]._gsap||(t[n]._gsap=new Ia(t[n],e)))||t.splice(n,1);return t},ui=function(t){return t._gsap||oi(Ji(t))[0]._gsap},li=function(t,e,n){return(n=t[e])&&Mr(n)?t[e]():kr(n)&&t.getAttribute&&t.getAttribute(e)||n},ci=function(t,e){return(t=t.split(",")).forEach(e)||t},hi=function(t){return Math.round(1e5*t)/1e5||0},fi=function(t){return Math.round(1e7*t)/1e7||0},di=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},pi=function(t,e){for(var n=e.length,r=0;t.indexOf(e[r])<0&&++r<n;);return r<n},mi=function(){var t,e,n=ti.length,r=ti.slice(0);for(ei={},ti.length=0,t=0;t<n;t++)(e=r[t])&&e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0)._lazy=0)},gi=function(t,e,n,r){ti.length&&mi(),t.render(e,n,r||nr&&e<0&&(t._initted||t._startAt)),ti.length&&mi()},vi=function(t){var e=parseFloat(t);return(e||0===e)&&(t+"").match(jr).length<2?e:Er(t)?t.trim():t},yi=function(t){return t},bi=function(t,e){for(var n in e)n in t||(t[n]=e[n]);return t},_i=function(t,e){for(var n in e)t[n]=e[n];return t},wi=function t(e,n){for(var r in n)"__proto__"!==r&&"constructor"!==r&&"prototype"!==r&&(e[r]=Cr(n[r])?t(e[r]||(e[r]={}),n[r]):n[r]);return e},Di=function(t,e){var n,r={};for(n in t)n in e||(r[n]=t[n]);return r},Ti=function(t){var e,n=t.parent||ir,r=t.keyframes?(e=Ir(t.keyframes),function(t,n){for(var r in n)r in t||"duration"===r&&e||"ease"===r||(t[r]=n[r])}):bi;if(Ar(t.inherit))for(;n;)r(t,n.vars.defaults),n=n.parent||n._dp;return t},Si=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},xi=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},Ei=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove(t),t._act=0},Mi=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},Oi=function(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent;return t},ki=function(t,e,n,r){return t._startAt&&(nr?t._startAt.revert(Xr):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,r))},Ci=function t(e){return!e||e._ts&&t(e.parent)},Ai=function(t){return t._repeat?Pi(t._tTime,t=t.duration()+t._rDelay)*t:0},Pi=function(t,e){var n=Math.floor(t/=e);return t&&n===t?n-1:n},Ri=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=fi(t._start+(t._tDur/Math.abs(t._ts||t._rts||br)||0))},Ii=function(t,e){var n=t._dp;return n&&n.smoothChildTiming&&t._ts&&(t._start=fi(n._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),Ni(t),n._dirty||Mi(n,t)),t},Vi=function(t,e){var n;if((e._time||e._initted&&!e._dur)&&(n=Ri(t.rawTime(),e),(!e._dur||Zi(0,e.totalDuration(),n)-e._tTime>br)&&e.render(n,!0)),Mi(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}},Bi=function(t,e,n,r){return e.parent&&Ei(e),e._start=fi((Or(n)?n:n||t!==ir?qi(t,n,e):t._time)+e._delay),e._end=fi(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),Si(t,e,"_first","_last",t._sort?"_start":0),ji(e)||(t._recent=e),r||Vi(t,e),t._ts<0&&Ii(t,t._tTime),t},Yi=function(t,e){return(Hr.ScrollTrigger||Gr("scrollTrigger",e))&&Hr.ScrollTrigger.create(e,t)},Li=function(t,e,n,r,i){return Ha(t,e,i),t._initted?!n&&t._pt&&!nr&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&lr!==Da.frame?(ti.push(t),t._lazy=[i,r],1):void 0:1},Fi=function t(e){var n=e.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||t(n))},ji=function(t){var e=t.data;return"isFromStart"===e||"isStart"===e},Ui=function(t,e,n,r){var i=t._repeat,a=fi(e)||0,s=t._tTime/t._tDur;return s&&!r&&(t._time*=a/t._dur),t._dur=a,t._tDur=i?i<0?1e10:fi(a*(i+1)+t._rDelay*i):a,s>0&&!r&&Ii(t,t._tTime=t._tDur*s),t.parent&&Ni(t),n||Mi(t.parent,t),t},Hi=function(t){return t instanceof Ba?Mi(t):Ui(t,t._dur)},zi={_start:0,endTime:$r,totalDuration:$r},qi=function t(e,n,r){var i,a,s,o=e.labels,u=e._recent||zi,l=e.duration()>=yr?u.endTime(!1):e._dur;return Er(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]=l),o[n]):(a=parseFloat(n.charAt(i-1)+n.substr(i+1)),s&&r&&(a=a/100*(Ir(r)?r[0]:r).totalDuration()),i>1?t(e,n.substr(0,i-1),r)+a:l+a)):null==n?l:+n},Gi=function(t,e,n){var r,i,a=Or(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=Ar(i.vars.inherit)&&i.parent;o.immediateRender=Ar(r.immediateRender),t<2?o.runBackwards=1:o.startAt=e[s-1]}return new Za(e[0],o,e[s+1])},Wi=function(t,e){return t||0===t?e(t):e},Zi=function(t,e,n){return n<t?t:n>e?e:n},$i=function(t,e){return Er(t)&&(e=Ur.exec(t))?e[1]:""},Ki=[].slice,Xi=function(t,e){return t&&Cr(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&Cr(t[0]))&&!t.nodeType&&t!==ar},Qi=function(t,e,n){return void 0===n&&(n=[]),t.forEach((function(t){var r;return Er(t)&&!e||Xi(t,1)?(r=n).push.apply(r,Ji(t)):n.push(t)}))||n},Ji=function(t,e,n){return rr&&!e&&rr.selector?rr.selector(t):!Er(t)||n||!sr&&Ta()?Ir(t)?Qi(t,n):Xi(t)?Ki.call(t,0):t?[t]:[]:Ki.call((e||or).querySelectorAll(t),0)},ta=function(t){return t=Ji(t)[0]||Wr("Invalid scope")||{},function(e){var n=t.current||t.nativeElement||t;return Ji(e,n.querySelectorAll?n:n===t?Wr("Invalid scope")||or.createElement("div"):t)}},ea=function(t){return t.sort((function(){return.5-Math.random()}))},na=function(t){if(Mr(t))return t;var e=Cr(t)?t:{each:t},n=Ca(e.ease),r=e.from||0,i=parseFloat(e.base)||0,a={},s=r>0&&r<1,o=isNaN(r)||s,u=e.axis,l=r,c=r;return Er(r)?l=c={center:.5,edges:.5,end:1}[r]||0:!s&&o&&(l=r[0],c=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,yr])[1])){for(y=-1e8;y<(y=h[_++].getBoundingClientRect().left)&&_<w;);_--}for(D=a[w]=[],f=o?Math.min(_,w)*l-.5:r%_,d=_===yr?0:o?w*c/_-.5:r/_|0,y=0,b=yr,v=0;v<w;v++)p=v%_-f,m=d-(v/_|0),D[v]=g=u?Math.abs("y"===u?m:p):Tr(p*p+m*m),g>y&&(y=g),g<b&&(b=g);"random"===r&&ea(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=$i(e.amount||e.each)||0,n=n&&w<0?Oa(n):n}return w=(D[t]-D.min)/D.max||0,fi(D.b+(n?n(w):w)*D.v)+D.u}},ra=function(t){var e=Math.pow(10,((t+"").split(".")[1]||"").length);return function(n){var r=fi(Math.round(parseFloat(n)/t)*t*e);return(r-r%1)/e+(Or(n)?0:$i(n))}},ia=function(t,e){var n,r,i=Ir(t);return!i&&Cr(t)&&(n=i=t.radius||yr,t.values?(t=Ji(t.values),(r=!Or(t[0]))&&(n*=n)):t=ra(t.increment)),Wi(e,i?Mr(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=yr,l=0,c=t.length;c--;)(i=r?(i=t[c].x-s)*i+(a=t[c].y-o)*a:Math.abs(t[c]-s))<u&&(u=i,l=c);return l=!n||u<=n?t[l]:e,r||l===e||Or(e)?l:l+$i(e)}:ra(t))},aa=function(t,e,n,r){return Wi(Ir(t)?!e:!0===n?!!(n=0):!r,(function(){return Ir(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}))},sa=function(t,e,n){return Wi(n,(function(n){return t[~~e(n)]}))},oa=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?jr:Vr),s+=t.substr(a,e-a)+aa(i?n:+n[0],i?0:+n[1],+n[2]||1e-5),a=r+1;return s+t.substr(a,t.length-a)},ua=function(t,e,n,r,i){var a=e-t,s=r-n;return Wi(i,(function(e){return n+((e-t)/a*s||0)}))},la=function(t,e,n){var r,i,a,s=t.labels,o=yr;for(r in s)(i=s[r]-e)<0==!!n&&i&&o>(i=Math.abs(i))&&(a=r,o=i);return a},ca=function(t,e,n){var r,i,a,s=t.vars,o=s[e],u=rr,l=t._ctx;if(o)return r=s[e+"Params"],i=s.callbackScope||t,n&&ti.length&&mi(),l&&(rr=l),a=r?o.apply(i,r):o.call(i),rr=u,a},ha=function(t){return Ei(t),t.scrollTrigger&&t.scrollTrigger.kill(!!nr),t.progress()<1&&ca(t,"onInterrupt"),t},fa=function(t){var e=(t=!t.name&&t.default||t).name,n=Mr(t),r=e&&!n&&t.init?function(){this._props=[]}:t,i={init:$r,render:rs,add:ja,kill:as,modifier:is,rawVars:0},a={targetTest:0,get:0,getSetter:Ja,aliases:{},register:0};if(Ta(),t!==r){if(ni[e])return;bi(r,bi(Di(t,i),a)),_i(r.prototype,_i(i,Di(t,a))),ni[r.prop=e]=r,t.targetTest&&(ai.push(r),Jr[e]=1),e=("css"===e?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}Zr(e,r),t.register&&t.register(_s,r,us)},da=255,pa={aqua:[0,da,da],lime:[0,da,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,da],navy:[0,0,128],white:[da,da,da],olive:[128,128,0],yellow:[da,da,0],orange:[da,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[da,0,0],pink:[da,192,203],cyan:[0,da,da],transparent:[da,da,da,0]},ma=function(t,e,n){return(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)*da+.5|0},ga=function(t,e,n){var r,i,a,s,o,u,l,c,h,f,d=t?Or(t)?[t>>16,t>>8&da,t&da]:0:pa.black;if(!d){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),pa[t])d=pa[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&da,d&da,parseInt(t.substr(7),16)/255];d=[(t=parseInt(t.substr(1),16))>>16,t>>8&da,t&da]}else if("hsl"===t.substr(0,3))if(d=f=t.match(Vr),e){if(~t.indexOf("="))return d=t.match(Br),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]=ma(s+1/3,r,i),d[1]=ma(s,r,i),d[2]=ma(s-1/3,r,i);else d=t.match(Vr)||pa.transparent;d=d.map(Number)}return e&&!f&&(r=d[0]/da,i=d[1]/da,a=d[2]/da,u=((l=Math.max(r,i,a))+(c=Math.min(r,i,a)))/2,l===c?s=o=0:(h=l-c,o=u>.5?h/(2-l-c):h/(l+c),s=l===r?(i-a)/h+(i<a?6:0):l===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},va=function(t){var e=[],n=[],r=-1;return t.split(ba).forEach((function(t){var i=t.match(Yr)||[];e.push.apply(e,i),n.push(r+=i.length+1)})),e.c=n,e},ya=function(t,e,n){var r,i,a,s,o="",u=(t+o).match(ba),l=e?"hsla(":"rgba(",c=0;if(!u)return t;if(u=u.map((function(t){return(t=ga(t,e,1))&&l+(e?t[0]+","+t[1]+"%,"+t[2]+"%,"+t[3]:t.join(","))+")"})),n&&(a=va(t),(r=n.c).join(o)!==a.c.join(o)))for(s=(i=t.replace(ba,"1").split(Yr)).length-1;c<s;c++)o+=i[c]+(~r.indexOf(c)?u.shift()||l+"0,0,0,0)":(a.length?a:u.length?u:n).shift());if(!i)for(s=(i=t.split(ba)).length-1;c<s;c++)o+=i[c]+u[c];return o+i[s]},ba=function(){var t,e="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b";for(t in pa)e+="|"+t+"\\b";return new RegExp(e+")","gi")}(),_a=/hsl[a]?\(/,wa=function(t){var e,n=t.join(" ");if(ba.lastIndex=0,ba.test(n))return e=_a.test(n),t[1]=ya(t[1],e),t[0]=ya(t[0],e,va(t[1])),!0},Da=function(){var t,e,n,r,i,a,s=Date.now,o=500,u=33,l=s(),c=l,h=1e3/240,f=h,d=[],p=function n(p){var m,g,v,y,b=s()-c,_=!0===p;if(b>o&&(l+=b-u),((m=(v=(c+=b)-l)-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(){ur&&(!sr&&Pr()&&(ar=sr=window,or=ar.document||{},Hr.gsap=_s,(ar.gsapVersions||(ar.gsapVersions=[])).push(_s.version),qr(zr||ar.GreenSockGlobals||!ar.gsap&&ar||{}),n=ar.requestAnimationFrame),t&&r.sleep(),e=n||function(t){return setTimeout(t,f-1e3*r.time+1|0)},hr=1,p(2))},sleep:function(){(n?ar.cancelAnimationFrame:clearTimeout)(t),hr=0,e=$r},lagSmoothing:function(t,e){o=t||1e8,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),Ta(),i},remove:function(t,e){~(e=d.indexOf(t))&&d.splice(e,1)&&a>=e&&a--},_listeners:d},r}(),Ta=function(){return!hr&&Da.wake()},Sa={},xa=/^[\d.\-M][\d.\-,\s]/,Ea=/["']/g,Ma=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(Ea,"").trim():+r,s=n.substr(e+1).trim();return i},Oa=function(t){return function(e){return 1-t(1-e)}},ka=function t(e,n){for(var r,i=e._first;i;)i instanceof Ba?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},Ca=function(t,e){return t&&(Mr(t)?t:Sa[t]||function(t){var e=(t+"").split("("),n=Sa[e[0]];return n&&e.length>1&&n.config?n.config.apply(null,~t.indexOf("{")?[Ma(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(vi)):Sa._CE&&xa.test(t)?Sa._CE("",t):n}(t))||e},Aa=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 ci(t,(function(t){for(var e in Sa[t]=Hr[t]=a,Sa[i=t.toLowerCase()]=n,a)Sa[i+("easeIn"===e?".in":"easeOut"===e?".out":".inOut")]=Sa[t+"."+e]=a[e]})),a},Pa=function(t){return function(e){return e<.5?(1-t(1-2*e))/2:.5+t(2*(e-.5))/2}},Ra=function t(e,n,r){var i=n>=1?n:1,a=(r||(e?.3:.45))/(n<1?n:1),s=a/_r*(Math.asin(1/i)||0),o=function(t){return 1===t?1:i*Math.pow(2,-10*t)*xr((t-s)*a)+1},u="out"===e?o:"in"===e?function(t){return 1-o(1-t)}:Pa(o);return a=_r/a,u.config=function(n,r){return t(e,n,r)},u},Na=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)}:Pa(r);return i.config=function(n){return t(e,n)},i};ci("Linear,Quad,Cubic,Quart,Quint,Strong",(function(t,e){var n=e<5?e+1:e;Aa(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}))})),Sa.Linear.easeNone=Sa.none=Sa.Linear.easeIn,Aa("Elastic",Ra("in"),Ra("out"),Ra()),fr=7.5625,pr=1/(dr=2.75),Aa("Bounce",(function(t){return 1-mr(1-t)}),mr=function(t){return t<pr?fr*t*t:t<.7272727272727273?fr*Math.pow(t-1.5/dr,2)+.75:t<.9090909090909092?fr*(t-=2.25/dr)*t+.9375:fr*Math.pow(t-2.625/dr,2)+.984375}),Aa("Expo",(function(t){return t?Math.pow(2,10*(t-1)):0})),Aa("Circ",(function(t){return-(Tr(1-t*t)-1)})),Aa("Sine",(function(t){return 1===t?1:1-Sr(t*wr)})),Aa("Back",Na("in"),Na("out"),Na()),Sa.SteppedEase=Sa.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*Zi(0,.99999999,t)|0)+i)*n}}},vr.ease=Sa["quad.out"],ci("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",(function(t){return si+=t+","+t+"Params,"}));var Ia=function(t,e){this.id=Dr++,t._gsap=this,this.target=t,this.harness=e,this.get=e?e.get:li,this.set=e?e.getSetter:Ja},Va=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,Ui(this,+t.duration,1,1),this.data=t.data,rr&&(this._ctx=rr,rr.data.push(this)),hr||Da.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,Ui(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(t,e){if(Ta(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(Ii(this,t),!n._dp||n.parent||Vi(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)&&Bi(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!e||this._initted&&Math.abs(this._zTime)===br||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),gi(this,t,e)),this},e.time=function(t,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+Ai(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)+Ai(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?Pi(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?Ri(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||-1e-8===t?0:this._rts,this.totalTime(Zi(-this._delay,this._tDur,e),!0),Ni(this),Oi(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):(Ta(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&Math.abs(this._zTime)!==br&&(this._tTime-=br)))),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)&&Bi(e,this,t-this._delay),this}return this._start},e.endTime=function(t){return this._start+(Ar(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?Ri(e.rawTime(t),this):this._tTime:this._tTime},e.revert=function(t){void 0===t&&(t=Qr);var e=nr;return nr=t,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(t),this.totalTime(-.01,t.suppressEvents)),"nested"!==this.data&&!1!==t.kill&&this.kill(),nr=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(qi(this,t),Ar(e))},e.restart=function(t,e){return this.play().totalTime(t?-this._delay:0,Ar(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)-br))},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=Mr(t)?t:yi,i=function(){var t=e.then;e.then=null,Mr(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(){ha(this)},t}();bi(Va.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 Ba=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=Ar(e.sortChildren),ir&&Bi(e.parent||ir,Jn(r),n),e.reversed&&r.reverse(),e.paused&&r.paused(!0),e.scrollTrigger&&Yi(Jn(r),e.scrollTrigger),r}tr(e,t);var n=e.prototype;return n.to=function(t,e,n){return Gi(0,arguments,this),this},n.from=function(t,e,n){return Gi(1,arguments,this),this},n.fromTo=function(t,e,n,r){return Gi(2,arguments,this),this},n.set=function(t,e,n){return e.duration=0,e.parent=this,Ti(e).repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new Za(t,e,qi(this,n),1),this},n.call=function(t,e,n){return Bi(this,Za.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 Za(t,n,qi(this,i)),this},n.staggerFrom=function(t,e,n,r,i,a,s){return n.runBackwards=1,Ti(n).immediateRender=Ar(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,Ti(r).immediateRender=Ar(r.immediateRender),this.staggerTo(t,e,r,i,a,s,o)},n.render=function(t,e,n){var r,i,a,s,o,u,l,c,h,f,d,p,m=this._time,g=this._dirty?this.totalDuration():this._tDur,v=this._dur,y=t<=0?0:fi(t),b=this._zTime<0!=t<0&&(this._initted||!v);if(this!==ir&&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=!(c=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=fi(y%o),y===g?(s=this._repeat,r=v):((s=~~(y/o))&&s===y/o&&(r=v,s--),r>v&&(r=v)),f=Pi(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:fi(s*o)),e,!v)._lock=0,this._tTime=y,!e&&this.parent&&ca(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;ka(this,p)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(l=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,fi(m),fi(r)),l&&(y-=r-(r=l._start))),this._tTime=y,this._time=r,this._act=!c,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=t,m=0),!m&&r&&!e&&(ca(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&&l!==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){l=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&&l!==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||nr&&(i._initted||i._startAt)),r!==this._time||!this._ts&&!u){l=0,a&&(y+=this._zTime=D?-1e-8:br);break}}i=a}}if(l&&!e&&(this.pause(),l.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&&ca(this,"onUpdate",!0),(y===g&&this._tTime>=this.totalDuration()||!y&&m)&&(h!==this._start&&Math.abs(c)===Math.abs(this._ts)||this._lock||((t||!v)&&(y===g&&this._ts>0||!y&&this._ts<0)&&Ei(this,1),e||t<0&&!m||!y&&!m&&g||(ca(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(Or(e)||(e=qi(this,e,t)),!(t instanceof Va)){if(Ir(t))return t.forEach((function(t){return n.add(t,e)})),this;if(Er(t))return this.addLabel(t,e);if(!Mr(t))return this;t=Za.delayedCall(0,t)}return this!==t?Bi(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 Za?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 Er(t)?this.removeLabel(t):Mr(t)?this.killTweensOf(t):(xi(this,t),t===this._recent&&(this._recent=this._last),Mi(this))},n.totalTime=function(e,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=fi(Da.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]=qi(this,e),this},n.removeLabel=function(t){return delete this.labels[t],this},n.addPause=function(t,e,n){var r=Za.delayedCall(0,e||$r,n);return r.data="isPause",this._hasPause=1,Bi(this,r,qi(this,t))},n.removePause=function(t){var e=this._first;for(t=qi(this,t);e;)e._start===t&&"isPause"===e.data&&Ei(e),e=e._next},n.killTweensOf=function(t,e,n){for(var r=this.getTweensOf(t,n),i=r.length;i--;)Ya!==r[i]&&r[i].kill(t,e);return this},n.getTweensOf=function(t,e){for(var n,r=[],i=Ji(t),a=this._first,s=Or(e);a;)a instanceof Za?pi(a._targets,i)&&(s?(!Ya||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=qi(r,t),a=e,s=a.startAt,o=a.onStart,u=a.onStartParams,l=a.immediateRender,c=Za.to(r,bi({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())||br,onStart:function(){if(r.pause(),!n){var t=e.duration||Math.abs((i-(s&&"time"in s?s.time:r._time))/r.timeScale());c._dur!==t&&Ui(c,t,0,1).render(c._time,!0,!0),n=1}o&&o.apply(c,u||[])}},e));return l?c.render(0):c},n.tweenFromTo=function(t,e,n){return this.tweenTo(e,bi({startAt:{time:qi(this,t)}},n))},n.recent=function(){return this._recent},n.nextLabel=function(t){return void 0===t&&(t=this._time),la(this,qi(this,t))},n.previousLabel=function(t){return void 0===t&&(t=this._time),la(this,qi(this,t),1)},n.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+br)},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 Mi(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={}),Mi(this)},n.totalDuration=function(t){var e,n,r,i=0,a=this,s=a._last,o=yr;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,Bi(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;Ui(a,a===ir&&a._time>i?a._time:i,1,1),a._dirty=0}return a._tDur},e.updateRoot=function(t){if(ir._ts&&(gi(ir,Ri(t,ir)),lr=Da.frame),Da.frame>=ii){ii+=gr.autoSleep||120;var e=ir._first;if((!e||!e._ts)&&gr.autoSleep&&Da._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||Da.sleep()}}},e}(Va);bi(Ba.prototype,{_lock:0,_hasPause:0,_forcing:0});var Ya,La,Fa=function(t,e,n,r,i,a,s){var o,u,l,c,h,f,d,p,m=new us(this._pt,t,e,0,1,ns,null,i),g=0,v=0;for(m.b=n,m.e=r,n+="",(d=~(r+="").indexOf("random("))&&(r=oa(r)),a&&(a(p=[n,r],t,e),n=p[0],r=p[1]),u=n.match(Lr)||[];o=Lr.exec(r);)c=o[0],h=r.substring(g,o.index),l?l=(l+1)%5:"rgba("===h.substr(-5)&&(l=1),c!==u[v++]&&(f=parseFloat(u[v-1])||0,m._pt={_next:m._pt,p:h||1===v?h:",",s:f,c:"="===c.charAt(1)?di(f,c)-f:parseFloat(c)-f,m:l&&l<4?Math.round:0},g=Lr.lastIndex);return m.c=g<r.length?r.substring(g,r.length):"",m.fp=s,(Fr.test(r)||d)&&(m.e=0),this._pt=m,m},ja=function(t,e,n,r,i,a,s,o,u,l){Mr(r)&&(r=r(i||0,t,a));var c,h=t[e],f="get"!==n?n:Mr(h)?u?t[e.indexOf("set")||!Mr(t["get"+e.substr(3)])?e:"get"+e.substr(3)](u):t[e]():h,d=Mr(h)?u?Xa:Ka:$a;if(Er(r)&&(~r.indexOf("random(")&&(r=oa(r)),"="===r.charAt(1)&&((c=di(f,r)+($i(f)||0))||0===c)&&(r=c)),!l||f!==r||La)return isNaN(f*r)||""===r?(!h&&!(e in t)&&Gr(e,r),Fa.call(this,t,e,f,r,d,o||gr.stringFilter,u)):(c=new us(this._pt,t,e,+f||0,r-(f||0),"boolean"==typeof h?es:ts,0,d),u&&(c.fp=u),s&&c.modifier(s,this,t),this._pt=c)},Ua=function(t,e,n,r,i,a){var s,o,u,l;if(ni[t]&&!1!==(s=new ni[t]).init(i,s.rawVars?e[t]:function(t,e,n,r,i){if(Mr(t)&&(t=qa(t,i,e,n,r)),!Cr(t)||t.style&&t.nodeType||Ir(t)||Nr(t))return Er(t)?qa(t,i,e,n,r):t;var a,s={};for(a in t)s[a]=qa(t[a],i,e,n,r);return s}(e[t],r,i,a,n),n,r,a)&&(n._pt=o=new us(n._pt,i,t,0,1,s.render,s,0,s.priority),n!==cr))for(u=n._ptLookup[n._targets.indexOf(i)],l=s._props.length;l--;)u[s._props[l]]=o;return s},Ha=function t(e,n,r){var i,a,s,o,u,l,c,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&&!er,I=e.timeline;if(I&&(!M||!y)&&(y="none"),e._ease=Ca(y,vr.ease),e._yEase=E?Oa(Ca(!0===E?y:E,vr.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]?ui(A[0]).harness:0)&&v[h.prop],i=Di(v,Jr),C&&(C._zTime<0&&C.progress(1),n<0&&x&&_&&!O?C.render(-1,!0):C.revert(x&&k?Xr:Kr),C._lazy=0),b){if(Ei(e._startAt=Za.set(A,bi({data:"isStart",overwrite:!1,parent:P,immediateRender:!0,lazy:Ar(w),startAt:null,delay:0,onUpdate:D,onUpdateParams:T,callbackScope:S,stagger:0},b))),e._startAt._dp=0,n<0&&(nr||!_&&!O)&&e._startAt.revert(Xr),_&&k&&n<=0&&r<=0)return void(n&&(e._zTime=n))}else if(x&&k&&!C)if(n&&(_=!1),s=bi({overwrite:!1,data:"isFromStart",lazy:_&&Ar(w),immediateRender:_,stagger:0,parent:P},i),m&&(s[h.prop]=m),Ei(e._startAt=Za.set(A,s)),e._startAt._dp=0,n<0&&(nr?e._startAt.revert(Xr):e._startAt.render(-1,!0)),e._zTime=n,_){if(!n)return}else t(e._startAt,br,br);for(e._pt=e._ptCache=0,w=k&&Ar(w)||w&&!k,a=0;a<A.length;a++){if(c=(u=A[a])._gsap||oi(A)[a]._gsap,e._ptLookup[a]=d={},ei[c.id]&&ti.length&&mi(),p=R===A?a:R.indexOf(u),h&&!1!==(f=new h).init(u,m||i,e,p,R)&&(e._pt=o=new us(e._pt,u,f.name,0,1,f.render,f,0,f.priority),f._props.forEach((function(t){d[t]=o})),f.priority&&(l=1)),!h||m)for(s in i)ni[s]&&(f=Ua(s,i,e,p,u,R))?f.priority&&(l=1):d[s]=o=ja.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&&(Ya=e,ir.killTweensOf(u,d,e.globalTime(n)),g=!e.parent,Ya=0),e._pt&&w&&(ei[c.id]=1)}l&&os(e),e._onInit&&e._onInit(e)}e._onUpdate=D,e._initted=(!e._op||e._pt)&&!g,M&&n<=0&&I.render(yr,!0,!0)},za=function(t,e,n,r){var i,a,s=e.ease||r||"power1.inOut";if(Ir(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})},qa=function(t,e,n,r,i){return Mr(t)?t.call(e,n,r,i):Er(t)&&~t.indexOf("random(")?oa(t):t},Ga=si+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",Wa={};ci(Ga+",id,stagger,delay,duration,paused,scrollTrigger",(function(t){return Wa[t]=1}));var Za=function(t){function e(e,n,r,i){var a;"number"==typeof n&&(r.duration=n,n=r,r=null);var s,o,u,l,c,h,f,d,p=(a=t.call(this,i?n:Ti(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||ir,x=(Ir(e)||Nr(e)?Or(e[0]):"length"in n)?[e]:Ji(e);if(a._targets=x.length?oi(x):Wr("GSAP target "+e+" not found. https://greensock.com",!gr.nullTargetWarn)||[],a._ptLookup=[],a._overwrite=b,_||y||Rr(m)||Rr(g)){if(n=a.vars,(s=a.timeline=new Ba({data:"nested",defaults:w||{},targets:S&&"nested"===S.data?S.vars.targets:x})).kill(),s.parent=s._dp=Jn(a),s._start=0,y||Rr(m)||Rr(g)){if(l=x.length,f=y&&na(y),Cr(y))for(c in y)~Ga.indexOf(c)&&(d||(d={}),d[c]=y[c]);for(o=0;o<l;o++)(u=Di(n,Wa)).stagger=0,T&&(u.yoyoEase=T),d&&_i(u,d),h=x[o],u.duration=+qa(m,Jn(a),o,h,x),u.delay=(+qa(g,Jn(a),o,h,x)||0)-a._delay,!y&&1===l&&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=Sa.none;s.duration()?m=g=0:a.timeline=0}else if(_){Ti(bi(s.vars.defaults,{ease:"none"})),s._ease=Ca(_.ease||n.ease||"none");var E,M,O,k=0;if(Ir(_))_.forEach((function(t){return s.to(x,t,">")})),s.duration();else{for(c in u={},_)"ease"===c||"easeEach"===c||za(c,_[c],u,_.easeEach);for(c in u)for(E=u[c].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})[c]=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||er||(Ya=Jn(a),ir.killTweensOf(x),Ya=0),Bi(S,Jn(a),r),n.reversed&&a.reverse(),n.paused&&a.paused(!0),(v||!m&&!_&&a._start===fi(S._time)&&Ar(v)&&Ci(Jn(a))&&"nested"!==S.data)&&(a._tTime=-1e-8,a.render(Math.max(0,-g)||0)),D&&Yi(Jn(a),D),a}tr(e,t);var n=e.prototype;return n.render=function(t,e,n){var r,i,a,s,o,u,l,c,h,f=this._time,d=this._tDur,p=this._dur,m=t<0,g=t>d-br&&!m?d:t<br?0:t;if(p){if(g!==this._tTime||!t||n||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==m){if(r=g,c=this.timeline,this._repeat){if(s=p+this._rDelay,this._repeat<-1&&m)return this.totalTime(100*s+t,e,n);if(r=fi(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=Pi(this._tTime,s),r===f&&!n&&this._initted)return this._tTime=g,this;a!==o&&(c&&this._yEase&&ka(c,u),!this.vars.repeatRefresh||u||this._lock||(this._lock=n=1,this.render(fi(s*a),!0).invalidate()._lock=0))}if(!this._initted){if(Li(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=l=(h||this._ease)(r/p),this._from&&(this.ratio=l=1-l),r&&!f&&!e&&(ca(this,"onStart"),this._tTime!==g))return this;for(i=this._pt;i;)i.r(l,i.d),i=i._next;c&&c.render(t<0?t:!r&&u?-1e-8:c._dur*c._ease(r/this._dur),e,n)||this._startAt&&(this._zTime=t),this._onUpdate&&!e&&(m&&ki(this,t,0,n),ca(this,"onUpdate")),this._repeat&&a!==o&&this.vars.onRepeat&&!e&&this.parent&&ca(this,"onRepeat"),g!==this._tDur&&g||this._tTime!==g||(m&&!this._onUpdate&&ki(this,t,0,!0),(t||!p)&&(g===this._tDur&&this._ts>0||!g&&this._ts<0)&&Ei(this,1),e||m&&!f||!(g||f||u)||(ca(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&&Fi(t)&&(t._initted||!ji(t))||(t._ts<0||t._dp._ts<0)&&!ji(t))?0:1,l=t._rDelay,c=0;if(l&&t._repeat&&(c=Zi(0,t._tDur,e),a=Pi(c,l),t._yoyo&&1&a&&(u=1-u),a!==Pi(t._tTime,l)&&(o=1-u,t.vars.repeatRefresh&&t._initted&&t.invalidate())),u!==o||nr||r||t._zTime===br||!e&&t._zTime){if(!t._initted&&Li(t,e,r,n,c))return;for(s=t._zTime,t._zTime=e||(n?br:0),n||(n=e&&!s),t.ratio=u,t._from&&(u=1-u),t._time=0,t._tTime=c,i=t._pt;i;)i.r(u,i.d),i=i._next;e<0&&ki(t,e,0,!0),t._onUpdate&&!n&&ca(t,"onUpdate"),c&&t._repeat&&!n&&t.parent&&ca(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===u&&(u&&Ei(t,1),n||nr||(ca(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){hr||Da.wake(),this._ts||this.play();var i=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return this._initted||Ha(this,i),function(t,e,n,r,i,a,s){var o,u,l,c,h=(t._pt&&t._ptCache||(t._ptCache={}))[e];if(!h)for(h=t._ptCache[e]=[],l=t._ptLookup,c=t._targets.length;c--;){if((o=l[c][e])&&o.d&&o.d._pt)for(o=o.d._pt;o&&o.p!==e&&o.fp!==e;)o=o._next;if(!o)return La=1,t.vars[e]="+=0",Ha(t,s),La=0,1;h.push(o)}for(c=h.length;c--;)(o=(u=h[c])._pt||u).s=!r&&0!==r||i?o.s+(r||0)+a*o.c:r,o.c=n-o.s,u.e&&(u.e=hi(n)+$i(u.e)),u.b&&(u.b=o.s+$i(u.b))}(this,t,e,n,r,this._ease(i/this._dur),i)?this.resetTo(t,e,n,r):(Ii(this,0),this.parent||Si(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?ha(this):this;if(this.timeline){var n=this.timeline.totalDuration();return this.timeline.killTweensOf(t,e,Ya&&!0!==Ya.vars.overwrite)._first||ha(this),this.parent&&n!==this.timeline.totalDuration()&&Ui(this,this._dur*this.timeline._tDur/n,0,1),this}var r,i,a,s,o,u,l,c=this._targets,h=t?Ji(t):c,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}(c,h))return"all"===e&&(this._pt=0),ha(this);for(r=this._op=this._op||[],"all"!==e&&(Er(e)&&(o={},ci(e,(function(t){return o[t]=1})),e=o),e=function(t,e){var n,r,i,a,s=t[0]?ui(t[0]).harness:0,o=s&&s.aliases;if(!o)return e;for(r in n=_i({},e),o)if(r in n)for(i=(a=o[r].split(",")).length;i--;)n[a[i]]=n[r];return n}(c,e)),l=c.length;l--;)if(~h.indexOf(c[l]))for(o in i=f[l],"all"===e?(r[l]=e,s=i,a={}):(a=r[l]=r[l]||{},s=e),s)(u=i&&i[o])&&("kill"in u.d&&!0!==u.d.kill(o)||xi(this,u,"_pt"),delete i[o]),"all"!==a&&(a[o]=1);return this._initted&&!this._pt&&d&&ha(this),this},e.to=function(t,n){return new e(t,n,arguments[2])},e.from=function(t,e){return Gi(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 Gi(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 ir.killTweensOf(t,e,n)},e}(Va);bi(Za.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),ci("staggerTo,staggerFrom,staggerFromTo",(function(t){Za[t]=function(){var e=new Ba,n=Ki.call(arguments,0);return n.splice("staggerFromTo"===t?5:4,0,0),e[t].apply(e,n)}}));var $a=function(t,e,n){return t[e]=n},Ka=function(t,e,n){return t[e](n)},Xa=function(t,e,n,r){return t[e](r.fp,n)},Qa=function(t,e,n){return t.setAttribute(e,n)},Ja=function(t,e){return Mr(t[e])?Ka:kr(t[e])&&t.setAttribute?Qa:$a},ts=function(t,e){return e.set(e.t,e.p,Math.round(1e6*(e.s+e.c*t))/1e6,e)},es=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},ns=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)},rs=function(t,e){for(var n=e._pt;n;)n.r(t,n.d),n=n._next},is=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},as=function(t){for(var e,n,r=this._pt;r;)n=r._next,r.p===t&&!r.op||r.op===t?xi(this,r,"_pt"):r.dep||(e=1),r=n;return!e},ss=function(t,e,n,r){r.mSet(t,e,r.m.call(r.tween,n,r.mt),r)},os=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},us=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||ts,this.d=s||this,this.set=o||$a,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=ss,this.m=t,this.mt=n,this.tween=e},t}();ci(si+"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 Jr[t]=1})),Hr.TweenMax=Hr.TweenLite=Za,Hr.TimelineLite=Hr.TimelineMax=Ba,ir=new Ba({sortChildren:!1,defaults:vr,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),gr.stringFilter=wa;var ls=[],cs={},hs=[],fs=0,ds=function(t){return(cs[t]||hs).map((function(t){return t()}))},ps=function(){var t=Date.now(),e=[];t-fs>2&&(ds("matchMediaInit"),ls.forEach((function(t){var n,r,i,a,s=t.queries,o=t.conditions;for(r in s)(n=ar.matchMedia(s[r]).matches)&&(i=1),n!==o[r]&&(o[r]=n,a=1);a&&(t.revert(),i&&e.push(t))})),ds("matchMediaRevert"),e.forEach((function(t){return t.onMatch(t)})),fs=t,ds("matchMedia"))},ms=function(){function t(t,e){this.selector=e&&ta(e),this.data=[],this._r=[],this.isReverted=!1,t&&this.add(t)}var e=t.prototype;return e.add=function(t,e,n){Mr(t)&&(n=e,e=t,t=Mr);var r=this,i=function(){var t,i=rr,a=r.selector;return i&&i!==r&&i.data.push(r),n&&(r.selector=ta(n)),rr=r,t=e.apply(r,arguments),Mr(t)&&r._r.push(t),rr=i,r.selector=a,r.isReverted=!1,t};return r.last=i,t===Mr?i(r):t?r[t]=i:i},e.ignore=function(t){var e=rr;rr=null,t(this),rr=e},e.getTweens=function(){var e=[];return this.data.forEach((function(n){return n instanceof t?e.push.apply(e,n.getTweens()):n instanceof Za&&!(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 Va)&&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=ls.indexOf(this);~i&&ls.splice(i,1)}},e.revert=function(t){this.kill(t||{})},t}(),gs=function(){function t(t){this.contexts=[],this.scope=t}var e=t.prototype;return e.add=function(t,e,n){Cr(t)||(t={matches:t});var r,i,a,s=new ms(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=ar.matchMedia(t[i]))&&(ls.indexOf(s)<0&&ls.push(s),(o[i]=r.matches)&&(a=1),r.addListener?r.addListener(ps):r.addEventListener("change",ps));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}(),vs={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 fa(t)}))},timeline:function(t){return new Ba(t)},getTweensOf:function(t,e){return ir.getTweensOf(t,e)},getProperty:function(t,e,n,r){Er(t)&&(t=Ji(t)[0]);var i=ui(t||{}).get,a=n?yi:vi;return"native"===n&&(n=""),t?e?a((ni[e]&&ni[e].get||i)(t,e,n,r)):function(e,n,r){return a((ni[e]&&ni[e].get||i)(t,e,n,r))}:t},quickSetter:function(t,e,n){if((t=Ji(t)).length>1){var r=t.map((function(t){return _s.quickSetter(t,e,n)})),i=r.length;return function(t){for(var e=i;e--;)r[e](t)}}t=t[0]||{};var a=ni[e],s=ui(t),o=s.harness&&(s.harness.aliases||{})[e]||e,u=a?function(e){var r=new a;cr._pt=0,r.init(t,n?e+n:e,cr,0,[t]),r.render(1,r),cr._pt&&rs(1,cr)}: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=_s.to(t,_i(((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 ir.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=Ca(t.ease,vr.ease)),wi(vr,t||{})},config:function(t){return wi(gr,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&&!ni[t]&&!Hr[t]&&Wr(e+" effect requires "+t+" plugin.")})),ri[e]=function(t,e,r){return n(Ji(t),bi(e||{},i),r)},a&&(Ba.prototype[e]=function(t,n,r){return this.add(ri[e](t,Cr(n)?n:(r=n)&&{},this),r)})},registerEase:function(t,e){Sa[t]=Ca(e)},parseEase:function(t,e){return arguments.length?Ca(t,e):Sa},getById:function(t){return ir.getById(t)},exportRoot:function(t,e){void 0===t&&(t={});var n,r,i=new Ba(t);for(i.smoothChildTiming=Ar(t.smoothChildTiming),ir.remove(i),i._dp=0,i._time=i._tTime=ir._time,n=ir._first;n;)r=n._next,!e&&!n._dur&&n instanceof Za&&n.vars.onComplete===n._targets[0]||Bi(i,n,n._start-n._delay),n=r;return Bi(ir,i,0),i},context:function(t,e){return t?new ms(t,e):rr},matchMedia:function(t){return new gs(t)},matchMediaRefresh:function(){return ls.forEach((function(t){var e,n,r=t.conditions;for(n in r)r[n]&&(r[n]=!1,e=1);e&&t.revert()}))||ps()},addEventListener:function(t,e){var n=cs[t]||(cs[t]=[]);~n.indexOf(e)||n.push(e)},removeEventListener:function(t,e){var n=cs[t],r=n&&n.indexOf(e);r>=0&&n.splice(r,1)},utils:{wrap:function t(e,n,r){var i=n-e;return Ir(e)?sa(e,t(0,e.length),n):Wi(r,(function(t){return(i+(t-e)%i)%i+e}))},wrapYoyo:function t(e,n,r){var i=n-e,a=2*i;return Ir(e)?sa(e,t(0,e.length-1),n):Wi(r,(function(t){return e+((t=(a+(t-e)%a)%a||0)>i?a-t:t)}))},distribute:na,random:aa,snap:ia,normalize:function(t,e,n){return ua(t,e,0,1,n)},getUnit:$i,clamp:function(t,e,n){return Wi(n,(function(n){return Zi(t,e,n)}))},splitColor:ga,toArray:Ji,selector:ta,mapRange:ua,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||$i(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,l,c,h=Er(e),f={};if(!0===r&&(i=1)&&(r=null),h)e={p:e},n={p:n};else if(Ir(e)&&!Ir(n)){for(u=[],l=e.length,c=l-2,o=1;o<l;o++)u.push(t(e[o-1],e[o]));l--,a=function(t){t*=l;var e=Math.min(c,~~t);return u[e](t-e)},r=n}else i||(e=_i(Ir(e)?[]:{},e));if(!u){for(s in n)ja.call(f,e,s,"get",n[s]);a=function(t){return rs(t,f)||(h?e.p:e)}}}return Wi(r,a)},shuffle:ea},install:qr,effects:ri,ticker:Da,updateRoot:Ba.updateRoot,plugins:ni,globalTimeline:ir,core:{PropTween:us,globals:Zr,Tween:Za,Timeline:Ba,Animation:Va,getCache:ui,_removeLinkedListItem:xi,reverting:function(){return nr},context:function(t){return t&&rr&&(rr.data.push(t),t._ctx=rr),rr},suppressOverwrites:function(t){return er=t}}};ci("to,from,fromTo,delayedCall,set,killTweensOf",(function(t){return vs[t]=Za[t]})),Da.add(Ba.updateRoot),cr=vs.to({},{duration:0});var ys=function(t,e){for(var n=t._pt;n&&n.p!==e&&n.op!==e&&n.fp!==e;)n=n._next;return n},bs=function(t,e){return{name:t,rawVars:1,init:function(t,n,r){r._onInit=function(t){var r,i;if(Er(n)&&(r={},ci(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=ys(i,n)),i&&i.modifier&&i.modifier(e[n],t,a[r],n))}(t,n)}}}},_s=vs.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;)nr?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)}},bs("roundProps",ra),bs("modifiers"),bs("snap",ia))||vs;Za.version=Ba.version=_s.version="3.11.3",ur=1,Pr()&&Ta(),Sa.Power0,Sa.Power1,Sa.Power2,Sa.Power3,Sa.Power4,Sa.Linear,Sa.Quad,Sa.Cubic,Sa.Quart,Sa.Quint,Sa.Strong,Sa.Elastic,Sa.Back,Sa.SteppedEase,Sa.Bounce,Sa.Sine,Sa.Expo,Sa.Circ;
|
|
28
28
|
/*!
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
var Qa,ts,es,ns,rs,is,as,ss,os={},us=180/Math.PI,ls=Math.PI/180,cs=Math.atan2,hs=/([A-Z])/g,fs=/(left|right|width|margin|padding|x)/i,ds=/[\s,\(]\S/,ps={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},ms=function(t,e){return e.set(e.t,e.p,Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)},gs=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)},vs=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)},ys=function(t,e){var n=e.s+e.c*t;e.set(e.t,e.p,~~(n+(n<0?-.5:.5))+e.u,e)},bs=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},_s=function(t,e){return e.set(e.t,e.p,1!==t?e.b:e.e,e)},ws=function(t,e,n){return t.style[e]=n},Ds=function(t,e,n){return t.style.setProperty(e,n)},Ss=function(t,e,n){return t._gsap[e]=n},Ts=function(t,e,n){return t._gsap.scaleX=t._gsap.scaleY=n},xs=function(t,e,n,r,i){var a=t._gsap;a.scaleX=a.scaleY=n,a.renderTransform(i,a)},Es=function(t,e,n,r,i){var a=t._gsap;a[e]=n,a.renderTransform(i,a)},Ms="transform",Os=Ms+"Origin",ks=function(t,e){var n=this,r=this.target,i=r.style;if(t in os){if(this.tfm=this.tfm||{},"transform"!==t&&(~(t=ps[t]||t).indexOf(",")?t.split(",").forEach((function(t){return n.tfm[t]=Ws(r,t)})):this.tfm[t]=r._gsap.x?r._gsap[t]:Ws(r,t)),this.props.indexOf(Ms)>=0)return;r._gsap.svg&&(this.svgo=r.getAttribute("data-svg-origin"),this.props.push(Os,e,"")),t=Ms}(i||e)&&this.props.push(t,e,i[t])},Cs=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},As=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(hs,"-$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=as())||t.isStart||i[Ms]||(Cs(i),a.uncache=1)}},Ps=function(t,e){var n={target:t,props:[],revert:As,save:ks};return e&&e.split(",").forEach((function(t){return n.save(t)})),n},Rs=function(t,e){var n=ts.createElementNS?ts.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):ts.createElement(t);return n.style?n:ts.createElement(t)},Ns=function t(e,n,r){var i=getComputedStyle(e);return i[n]||i.getPropertyValue(n.replace(hs,"-$1").toLowerCase())||i.getPropertyValue(n)||!r&&t(e,Vs(n)||n,1)||""},Is="O,Moz,ms,Ms,Webkit".split(","),Vs=function(t,e,n){var r=(e||rs).style,i=5;if(t in r&&!n)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);i--&&!(Is[i]+t in r););return i<0?null:(3===i?"ms":i>=0?Is[i]:"")+t},Bs=function(){"undefined"!=typeof window&&window.document&&(Qa=window,ts=Qa.document,es=ts.documentElement,rs=Rs("div")||{style:{}},Rs("div"),Ms=Vs(Ms),Os=Ms+"Origin",rs.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",ss=!!Vs("perspective"),as=Ja.core.reverting,ns=1)},Ys=function t(e){var n,r=Rs("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=this.parentNode,a=this.nextSibling,s=this.style.cssText;if(es.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)),es.removeChild(r),this.style.cssText=s,n},Ls=function(t,e){for(var n=e.length;n--;)if(t.hasAttribute(e[n]))return t.getAttribute(e[n])},Fs=function(t){var e;try{e=t.getBBox()}catch(n){e=Ys.call(t,!0)}return e&&(e.width||e.height)||t.getBBox===Ys||(e=Ys.call(t,!0)),!e||e.width||e.x||e.y?e:{x:+Ls(t,["x","cx","x1"])||0,y:+Ls(t,["y","cy","y1"])||0,width:0,height:0}},js=function(t){return!(!t.getCTM||t.parentNode&&!t.ownerSVGElement||!Fs(t))},Us=function(t,e){if(e){var n=t.style;e in os&&e!==Os&&(e=Ms),n.removeProperty?("ms"!==e.substr(0,2)&&"webkit"!==e.substr(0,6)||(e="-"+e),n.removeProperty(e.replace(hs,"-$1").toLowerCase())):n.removeAttribute(e)}},Hs=function(t,e,n,r,i,a){var s=new Fa(t._pt,e,n,0,1,a?_s:bs);return t._pt=s,s.b=r,s.e=i,t._props.push(n),s},zs={deg:1,rad:1,turn:1},qs={grid:1,flex:1},Gs=function t(e,n,r,i){var a,s,o,u,l=parseFloat(r)||0,c=(r+"").trim().substr((l+"").length)||"px",h=rs.style,f=fs.test(n),d="svg"===e.tagName.toLowerCase(),p=(d?"client":"offset")+(f?"Width":"Height"),m=100,g="px"===i,v="%"===i;return i===c||!l||zs[i]||zs[c]?l:("px"!==c&&!g&&(l=t(e,n,r,"px")),u=e.getCTM&&js(e),!v&&"%"!==c||!os[n]&&!~n.indexOf("adius")?(h[f?"width":"height"]=m+(g?c:i),s=~n.indexOf("adius")||"em"===i&&e.appendChild&&!d?e:e.parentNode,u&&(s=(e.ownerSVGElement||{}).parentNode),s&&s!==ts&&s.appendChild||(s=ts.body),(o=s._gsap)&&v&&o.width&&f&&o.time===ta.time&&!o.uncache?Hr(l/o.width*m):((v||"%"===c)&&!qs[Ns(s,"display")]&&(h.position=Ns(e,"position")),s===e&&(h.position="static"),s.appendChild(rs),a=rs[p],s.removeChild(rs),h.position="absolute",f&&v&&((o=Fr(s)).time=ta.time,o.width=s[p]),Hr(g?a*l/m:a&&l?m/a*l:0))):(a=u?e.getBBox()[f?"width":"height"]:e[p],Hr(v?l/a*m:l/100*a)))},Ws=function(t,e,n,r){var i;return ns||Bs(),e in ps&&"transform"!==e&&~(e=ps[e]).indexOf(",")&&(e=e.split(",")[0]),os[e]&&"transform"!==e?(i=io(t,r),i="transformOrigin"!==e?i[e]:i.svg?i.origin:ao(Ns(t,Os))+" "+i.zOrigin+"px"):(!(i=t.style[e])||"auto"===i||r||~(i+"").indexOf("calc("))&&(i=Xs[e]&&Xs[e](t,e,n)||Ns(t,e)||jr(t,e)||("opacity"===e?1:0)),n&&!~(i+"").trim().indexOf(" ")?Gs(t,e,i,n)+n:i},Zs=function(t,e,n,r){if(!n||"none"===n){var i=Vs(e,t,1),a=i&&Ns(t,i,1);a&&a!==n?(e=i,n=a):"borderColor"===e&&(n=Ns(t,"borderTopColor"))}var s,o,u,l,c,h,f,d,p,m,g,v=new Fa(this._pt,t.style,e,0,1,Na),y=0,b=0;if(v.b=n,v.e=r,n+="","auto"===(r+="")&&(t.style[e]=r,r=Ns(t,e)||r,t.style[e]=n),Qi(s=[n,r]),r=s[1],u=(n=s[0]).match(gr)||[],(r.match(gr)||[]).length){for(;o=gr.exec(r);)f=o[0],p=r.substring(y,o.index),c?c=(c+1)%5:"rgba("!==p.substr(-5)&&"hsla("!==p.substr(-5)||(c=1),f!==(h=u[b++]||"")&&(l=parseFloat(h)||0,g=h.substr((l+"").length),"="===f.charAt(1)&&(f=qr(l,f)+g),d=parseFloat(f),m=f.substr((d+"").length),y=gr.lastIndex-m.length,m||(m=m||Zn.units[e]||g,y===r.length&&(r+=m,v.e+=m)),g!==m&&(l=Gs(t,e,h,m)||0),v._pt={_next:v._pt,p:p||1===b?p:",",s:l,c:d-l,m:c&&c<4||"zIndex"===e?Math.round:0});v.c=y<r.length?r.substring(y,r.length):""}else v.r="display"===e&&"none"===r?_s:bs;return yr.test(r)&&(v.e=0),this._pt=v,v},Ks={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},$s=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],os[n]&&(r=1,n="transformOrigin"===n?Os:Ms),Us(a,n);r&&(Us(a,Ms),u&&(u.svg&&a.removeAttribute("transform"),io(a,1),u.uncache=1,Cs(s)))}},Xs={clearProps:function(t,e,n,r,i){if("isFromStart"!==i.data){var a=t._pt=new Fa(t._pt,e,n,0,0,$s);return a.u=r,a.pr=-10,a.tween=i,t._props.push(n),1}}},Js=[1,0,0,1,0,0],Qs={},to=function(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t},eo=function(t){var e=Ns(t,Ms);return to(e)?Js:e.substr(7).match(mr).map(Hr)},no=function(t,e){var n,r,i,a,s=t._gsap||Fr(t),o=t.style,u=eo(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===es||s.svg||(i=o.display,o.display="block",(n=t.parentNode)&&t.offsetParent||(a=1,r=t.nextElementSibling,es.appendChild(t)),u=eo(t),i?o.display=i:Us(t,"display"),a&&(r?n.insertBefore(t,r):n?n.appendChild(t):es.removeChild(t))),e&&u.length>6?[u[0],u[1],u[4],u[5],u[12],u[13]]:u)},ro=function(t,e,n,r,i,a){var s,o,u,l=t._gsap,c=i||no(t,!0),h=l.xOrigin||0,f=l.yOrigin||0,d=l.xOffset||0,p=l.yOffset||0,m=c[0],g=c[1],v=c[2],y=c[3],b=c[4],_=c[5],w=e.split(" "),D=parseFloat(w[0])||0,S=parseFloat(w[1])||0;n?c!==Js&&(o=m*y-g*v)&&(u=D*(-g/o)+S*(m/o)-(m*_-g*b)/o,D=D*(y/o)+S*(-v/o)+(v*_-y*b)/o,S=u):(D=(s=Fs(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&&l.smooth?(b=D-h,_=S-f,l.xOffset=d+(b*m+_*v)-b,l.yOffset=p+(b*g+_*y)-_):l.xOffset=l.yOffset=0,l.xOrigin=D,l.yOrigin=S,l.smooth=!!r,l.origin=e,l.originIsAbsolute=!!n,t.style[Os]="0px 0px",a&&(Hs(a,l,"xOrigin",h,D),Hs(a,l,"yOrigin",f,S),Hs(a,l,"xOffset",d,l.xOffset),Hs(a,l,"yOffset",p,l.yOffset)),t.setAttribute("data-svg-origin",D+" "+S)},io=function(t,e){var n=t._gsap||new da(t);if("x"in n&&!e&&!n.uncache)return n;var r,i,a,s,o,u,l,c,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=Ns(t,Os)||"0";return r=i=a=u=l=c=h=f=d=0,s=o=1,n.svg=!(!t.getCTM||!js(t)),L.translate&&("none"===L.translate&&"none"===L.scale&&"none"===L.rotate||(I[Ms]=("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[Ms]?L[Ms]:"")),I.scale=I.rotate=I.translate="none"),g=no(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"),ro(t,E||F,!!E||n.originIsAbsolute,!1!==n.smooth,g)),p=n.xOrigin||0,m=n.yOrigin||0,g!==Js&&(_=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(_*_+w*w),o=Math.sqrt(S*S+D*D),u=_||w?cs(w,_)*us:0,(h=D||S?cs(D,S)*us+u:0)&&(o*=Math.abs(Math.cos(h*ls))),n.svg&&(r-=p-(p*_+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],l=(v=cs(N,A))*us,v&&(E=T*(y=Math.cos(-v))+k*(b=Math.sin(-v)),M=x*y+C*b,O=N*y+A*b,k=T*-b+k*y,C=x*-b+C*y,A=N*-b+A*y,R=P*-b+R*y,T=E,x=M,N=O),c=(v=cs(-D,A))*us,v&&(y=Math.cos(-v),R=S*(b=Math.sin(-v))+R*y,_=E=_*y-k*b,w=M=w*y-C*b,D=O=D*y-A*b),u=(v=cs(w,_))*us,v&&(E=_*(y=Math.cos(v))+w*(b=Math.sin(v)),M=T*y+x*b,w=w*y-_*b,x=x*y-T*b,_=E,T=M),l&&Math.abs(l)+Math.abs(u)>359.9&&(l=u=0,c=180-c),s=Hr(Math.sqrt(_*_+w*w+D*D)),o=Hr(Math.sqrt(x*x+N*N)),v=cs(T,x),h=Math.abs(v)>2e-4?v*us:0,d=R?1/(R<0?-R:R):0),n.svg&&(E=t.getAttribute("transform"),n.forceCSS=t.setAttribute("transform","")||!to(Ns(t,Ms)),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=Hr(s),n.scaleY=Hr(o),n.rotation=Hr(u)+Y,n.rotationX=Hr(l)+Y,n.rotationY=Hr(c)+Y,n.skewX=h+Y,n.skewY=f+Y,n.transformPerspective=d+B,(n.zOrigin=parseFloat(F.split(" ")[2])||0)&&(I[Os]=ao(F)),n.xOffset=n.yOffset=0,n.force3D=Zn.force3D,n.renderTransform=n.svg?fo:ss?ho:oo,n.uncache=0,n},ao=function(t){return(t=t.split(" "))[0]+" "+t[1]},so=function(t,e,n){var r=Mi(e);return Hr(parseFloat(e)+parseFloat(Gs(t,"x",n+"px",r)))+r},oo=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,ho(t,e)},uo="0deg",lo="0px",co=") ",ho=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,l=n.rotationY,c=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&&(c!==uo||l!==uo)){var w,D=parseFloat(l)*ls,S=Math.sin(D),T=Math.cos(D);D=parseFloat(c)*ls,w=Math.cos(D),a=so(v,a,S*w*-y),s=so(v,s,-Math.sin(D)*-y),o=so(v,o,T*w*-y+y)}m!==lo&&(b+="perspective("+m+co),(r||i)&&(b+="translate("+r+"%, "+i+"%) "),(_||a!==lo||s!==lo||o!==lo)&&(b+=o!==lo||_?"translate3d("+a+", "+s+", "+o+") ":"translate("+a+", "+s+co),u!==uo&&(b+="rotate("+u+co),l!==uo&&(b+="rotateY("+l+co),c!==uo&&(b+="rotateX("+c+co),h===uo&&f===uo||(b+="skew("+h+", "+f+co),1===d&&1===p||(b+="scale("+d+", "+p+co),v.style[Ms]=b||"translate(0, 0)"},fo=function(t,e){var n,r,i,a,s,o=e||this,u=o.xPercent,l=o.yPercent,c=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,S=parseFloat(c),T=parseFloat(h);f=parseFloat(f),d=parseFloat(d),(p=parseFloat(p))&&(d+=p=parseFloat(p),f+=p),f||d?(f*=ls,d*=ls,n=Math.cos(f)*m,r=Math.sin(f)*m,i=Math.sin(f-d)*-g,a=Math.cos(f-d)*g,d&&(p*=ls,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=Hr(n),r=Hr(r),i=Hr(i),a=Hr(a)):(n=m,a=g,r=i=0),(S&&!~(c+"").indexOf("px")||T&&!~(h+"").indexOf("px"))&&(S=Gs(v,"x",c,"px"),T=Gs(v,"y",h,"px")),(y||b||_||w)&&(S=Hr(S+y-(y*n+b*i)+_),T=Hr(T+b-(y*r+b*a)+w)),(u||l)&&(s=v.getBBox(),S=Hr(S+u/100*s.width),T=Hr(T+l/100*s.height)),s="matrix("+n+","+r+","+i+","+a+","+S+","+T+")",v.setAttribute("transform",s),D&&(v.style[Ms]=s)},po=function(t,e,n,r,i){var a,s,o=360,u=ir(i),l=parseFloat(i)*(u&&~i.indexOf("rad")?us:1)-r,c=r+l+"deg";return u&&("short"===(a=i.split("_")[1])&&(l%=o)!==l%180&&(l+=l<0?o:-360),"cw"===a&&l<0?l=(l+36e9)%o-~~(l/o)*o:"ccw"===a&&l>0&&(l=(l-36e9)%o-~~(l/o)*o)),t._pt=s=new Fa(t._pt,e,n,r,l,gs),s.e=c,s.u="deg",t._props.push(n),s},mo=function(t,e){for(var n in e)t[n]=e[n];return t},go=function(t,e,n){var r,i,a,s,o,u,l,c=mo({},n._gsap),h=n.style;for(i in c.svg?(a=n.getAttribute("transform"),n.setAttribute("transform",""),h[Ms]=e,r=io(n,1),Us(n,Ms),n.setAttribute("transform",a)):(a=getComputedStyle(n)[Ms],h[Ms]=e,r=io(n,1),h[Ms]=a),os)(a=c[i])!==(s=r[i])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(i)<0&&(o=Mi(a)!==(l=Mi(s))?Gs(n,i,a,l):parseFloat(a),u=parseFloat(s),t._pt=new Fa(t._pt,r,i,o,u-o,ms),t._pt.u=l||0,t._props.push(i));mo(r,c)};Ur("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}));Xs[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 Ws(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 vo,yo,bo,_o={name:"css",register:Bs,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,n,r,i){var a,s,o,u,l,c,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 ns||Bs(),this.styles=this.styles||Ps(t),_=this.styles.props,this.tween=n,e)if("autoRound"!==h&&(s=e[h],!Nr[h]||!_a(h,e,n,r,t,i)))if(l=typeof s,c=Xs[h],"function"===l&&(l=typeof(s=s.call(n,r,t,i))),"string"===l&&~s.indexOf("random(")&&(s=Li(s)),c)c(this,t,h,s,n)&&(b=1);else if("--"===h.substr(0,2))a=(getComputedStyle(t).getPropertyValue(h)+"").trim(),s+="",Xi.lastIndex=0,Xi.test(a)||(f=Mi(a),d=Mi(s)),d?f!==d&&(a=Gs(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"!==l){if(M&&h in M?(a="function"==typeof M[h]?M[h].call(n,r,t,i):M[h],ir(a)&&~a.indexOf("random(")&&(a=Li(a)),Mi(a+"")||(a+=Zn.units[h]||Mi(Ws(t,h))||""),"="===(a+"").charAt(1)&&(a=Ws(t,h))):a=Ws(t,h),u=parseFloat(a),(p="string"===l&&"="===s.charAt(1)&&s.substr(0,2))&&(s=s.substr(2)),o=parseFloat(s),h in ps&&("autoAlpha"===h&&(1===u&&"hidden"===Ws(t,"visibility")&&o&&(u=0),_.push("visibility",0,E.visibility),Hs(this,E,"visibility",u?"inherit":"hidden",o?"inherit":"hidden",!o)),"scale"!==h&&"transform"!==h&&~(h=ps[h]).indexOf(",")&&(h=h.split(",")[0])),m=h in os)if(this.styles.save(h),g||((v=t._gsap).renderTransform&&!e.parseTransform||io(t,e.parseTransform),y=!1!==e.smoothOrigin&&v.smooth,(g=this._pt=new Fa(this._pt,E,Ms,0,1,v.renderTransform,v,0,-1)).dep=1),"scale"===h)this._pt=new Fa(this._pt,v,"scaleY",u,(p?qr(u,p+o):o)-u||0,ms),this._pt.u=0,x.push("scaleY",h),h+="X";else{if("transformOrigin"===h){_.push(Os,0,E[Os]),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]=Ks[S]||S,D[1]=Ks[T]||T,s=D.join(" "),v.svg?ro(t,s,0,y,0,this):((d=parseFloat(s.split(" ")[2])||0)!==v.zOrigin&&Hs(this,v,"zOrigin",v.zOrigin,d),Hs(this,E,h,ao(a),ao(s)));continue}if("svgOrigin"===h){ro(t,s,1,y,0,this);continue}if(h in Qs){po(this,v,h,u,p?qr(u,p+s):s);continue}if("smoothOrigin"===h){Hs(this,v,"smooth",v.smooth,s);continue}if("force3D"===h){v[h]=s;continue}if("transform"===h){go(this,s,t);continue}}else h in E||(h=Vs(h)||h);if(m||(o||0===o)&&(u||0===u)&&!ds.test(s)&&h in E)o||(o=0),(f=(a+"").substr((u+"").length))!==(d=Mi(s)||(h in Zn.units?Zn.units[h]:f))&&(u=Gs(t,h,a,d)),this._pt=new Fa(this._pt,m?v:E,h,u,(p?qr(u,p+o):o)-u,m||"px"!==d&&"zIndex"!==h||!1===e.autoRound?ms:ys),this._pt.u=d||0,f!==d&&"%"!==d&&(this._pt.b=a,this._pt.r=vs);else if(h in E)Zs.call(this,t,h,a,p?p+s:s);else{if(!(h in t)){Tr(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&&La(this)},render:function(t,e){if(e.tween._time||!as())for(var n=e._pt;n;)n.r(t,n.d),n=n._next;else e.styles.revert()},get:Ws,aliases:ps,getSetter:function(t,e,n){var r=ps[e];return r&&r.indexOf(",")<0&&(e=r),e in os&&e!==Os&&(t._gsap.x||Ws(t,"x"))?n&&is===n?"scale"===e?Ts:Ss:(is=n||{})&&("scale"===e?xs:Es):t.style&&!or(t.style[e])?ws:~e.indexOf("-")?Ds:Aa(t,e)},core:{_removeProperty:Us,_getMatrix:no}};Ja.utils.checkPrefix=Vs,Ja.core.getStyleSaver=Ps,bo=Ur((vo="x,y,z,scale,scaleX,scaleY,xPercent,yPercent")+","+(yo="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",(function(t){os[t]=1})),Ur(yo,(function(t){Zn.units[t]="deg",Qs[t]=1})),ps[bo[13]]=vo+","+yo,Ur("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",(function(t){var e=t.split(":");ps[e[1]]=bo[e[0]]})),Ur("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",(function(t){Zn.units[t]="px"})),Ja.registerPlugin(_o);var wo=Ja.registerPlugin(_o)||Ja;wo.core.Tween;var Do=function(){function t(){this.startPoisiton={x:0,y:0},this.endPoisiton={x:1920,y:0},this.curtain={width:1920,height:1080},this.totalTime=5,this.timeLine=wo.timeline()}return t.getInstance=function(){return this.instance||(this.instance=new t),this.instance},t.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 l=0;l<u.length;l++){var c=this.totalTime/u.length,h=u[l],f=this._creatTl("#wrap"+h.cid);this._add(f,l*c)}else{c=this.totalTime/s.length,f=this._creatTl("#wrap"+u.cid);this._add(f,o*c)}}return this.timeLine},t.prototype.filterData=function(t,e){var n;if("left"==e)n=i.default.orderBy(t,["baseData.left"],["asc"]);else if("top"==e)n=i.default.orderBy(t,["baseData.top"],["asc"]);else if("topLeft"==e){var r=this.setSpacing(t,"left");n=i.default.orderBy(r,["spacing"],["asc"])}else if("topRight"==e){var a=this.setSpacing(t,"right");n=i.default.orderBy(a,["spacing"],["asc"])}else if("center"==e){var s=this.splitArrayForCenter(t,"left");n=[i.default.orderBy(s.true,["center.x"],["asc"]),i.default.orderBy(s.false,["center.x"],["desc"])]}else if("spaceBetween"==e){s=this.splitArrayForCenter(t,"left");n=[i.default.orderBy(s.true,["center.x"],["desc"]),i.default.orderBy(s.false,["center.x"],["asc"])]}else n=i.default.orderBy(t,["baseData.left"],["asc"]);return n},t.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)},t.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}},t.prototype.setEndPoisiton=function(t){if(t){var e=t.width,n=t.height;this.curtain=t,this.endPoisiton.x=e,this.endPoisiton.y=n}},t.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},t.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},t.prototype.splitArrayForCenter=function(t,e){var n,r=this,a=this.setCenter(t);return"left"!=e&&"right"!=e||(n=i.default.groupBy(a,(function(t){return t.center.x>=r.curtain.width/2}))),"top"!=e&&"bottom"!=e||(n=i.default.groupBy(a,(function(t){return t.center.y>=r.curtain.height/2}))),n},t.prototype._add=function(t,e){this.timeLine.add(t,e)},t.prototype._creatTl=function(t){var e=wo.timeline();return e.add(this._creatTw(t)),e},t.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})),wo[a](t,r,s[0],s[1])},t.prototype.in=function(){},t.prototype.out=function(){},t}(),So=Do.getInstance();var To=function(){function t(t){this.root=null,this.vuex=Ze.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){var r=!1,a=function(t){for(var s=0;s<t.length;s++){if(t[s].cid==e){r=t[s],n&&i.default.remove(t,(function(t){return t.cid==e}));break}if(t[s].children)a(t[s].children);else if(t[s].dynamicChildren){if(t[s].dynamicChildren instanceof Map){for(var o=Array.from(t[s].dynamicChildren),u=0;u<o.length;u++)if(o[u]instanceof Array){var l=o[u][1];a(l)}}else if(t[s].dynamicChildren instanceof Array)for(o=t[s].dynamicChildren,u=0;u<o.length;u++)o[u]instanceof Array&&(l=o[u][1],a(l))}else t[s].stateChildren&&a(t[s].stateChildren)}};return a(t),r||!1}(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}(),xo=function(t){function e(e){var n,r,i=t.call(this,e)||this,a=(n=(n=i.eventType)||new Map,f(f({},r),{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 i.$emit=a.emit,i.$on=a.on,i.$off=a.off,i}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 n(){this.constructor=t}h(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}(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}(To);t.Go=Ze,t.GoAnimation=So,t.Tool=Cn,t.createComponent=function(t,e){return e&&t?Ze.getInstance().render(t,e):t?Ze.getInstance().render(t):void 0},t.createComponentForParent=function(t,e,n){return void 0!==n&&t?Ze.getInstance().renderForParent(t,e,n):t?Ze.getInstance().renderForParent(t,e):void 0},t.emitEvent=function(t,e){return Ze.getInstance().emitEvent(t,e||function(){})},t.fxhr=De,t.getData=se,t.getDataForRelease=function(t,e){return se(t,"GET",null,e).then((function(t){var e=JSON.parse(t.data.caseData);return Ze.getInstance().reversal(e),t}))},t.log=function(t,e,n,r,i){return Ze.getInstance().log(t,e,n,r,i)},t.refreshData=we,t.run=function(t){return new xo(t)},t.store=Be,Object.defineProperty(t,"__esModule",{value:!0})}));
|
|
29
|
+
* CSSPlugin 3.11.3
|
|
30
|
+
* https://greensock.com
|
|
31
|
+
*
|
|
32
|
+
* Copyright 2008-2022, GreenSock. All rights reserved.
|
|
33
|
+
* Subject to the terms at https://greensock.com/standard-license or for
|
|
34
|
+
* Club GreenSock members, the agreement issued with that membership.
|
|
35
|
+
* @author: Jack Doyle, jack@greensock.com
|
|
36
|
+
*/
|
|
37
|
+
var ws,Ds,Ts,Ss,xs,Es,Ms,Os,ks={},Cs=180/Math.PI,As=Math.PI/180,Ps=Math.atan2,Rs=/([A-Z])/g,Ns=/(left|right|width|margin|padding|x)/i,Is=/[\s,\(]\S/,Vs={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Bs=function(t,e){return e.set(e.t,e.p,Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)},Ys=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)},Ls=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)},Fs=function(t,e){var n=e.s+e.c*t;e.set(e.t,e.p,~~(n+(n<0?-.5:.5))+e.u,e)},js=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},Us=function(t,e){return e.set(e.t,e.p,1!==t?e.b:e.e,e)},Hs=function(t,e,n){return t.style[e]=n},zs=function(t,e,n){return t.style.setProperty(e,n)},qs=function(t,e,n){return t._gsap[e]=n},Gs=function(t,e,n){return t._gsap.scaleX=t._gsap.scaleY=n},Ws=function(t,e,n,r,i){var a=t._gsap;a.scaleX=a.scaleY=n,a.renderTransform(i,a)},Zs=function(t,e,n,r,i){var a=t._gsap;a[e]=n,a.renderTransform(i,a)},$s="transform",Ks=$s+"Origin",Xs=function(t,e){var n=this,r=this.target,i=r.style;if(t in ks){if(this.tfm=this.tfm||{},"transform"!==t&&(~(t=Vs[t]||t).indexOf(",")?t.split(",").forEach((function(t){return n.tfm[t]=go(r,t)})):this.tfm[t]=r._gsap.x?r._gsap[t]:go(r,t)),this.props.indexOf($s)>=0)return;r._gsap.svg&&(this.svgo=r.getAttribute("data-svg-origin"),this.props.push(Ks,e,"")),t=$s}(i||e)&&this.props.push(t,e,i[t])},Qs=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},Js=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(Rs,"-$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=Ms())||t.isStart||i[$s]||(Qs(i),a.uncache=1)}},to=function(t,e){var n={target:t,props:[],revert:Js,save:Xs};return e&&e.split(",").forEach((function(t){return n.save(t)})),n},eo=function(t,e){var n=Ds.createElementNS?Ds.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):Ds.createElement(t);return n.style?n:Ds.createElement(t)},no=function t(e,n,r){var i=getComputedStyle(e);return i[n]||i.getPropertyValue(n.replace(Rs,"-$1").toLowerCase())||i.getPropertyValue(n)||!r&&t(e,io(n)||n,1)||""},ro="O,Moz,ms,Ms,Webkit".split(","),io=function(t,e,n){var r=(e||xs).style,i=5;if(t in r&&!n)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);i--&&!(ro[i]+t in r););return i<0?null:(3===i?"ms":i>=0?ro[i]:"")+t},ao=function(){"undefined"!=typeof window&&window.document&&(ws=window,Ds=ws.document,Ts=Ds.documentElement,xs=eo("div")||{style:{}},eo("div"),$s=io($s),Ks=$s+"Origin",xs.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Os=!!io("perspective"),Ms=_s.core.reverting,Ss=1)},so=function t(e){var n,r=eo("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=this.parentNode,a=this.nextSibling,s=this.style.cssText;if(Ts.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)),Ts.removeChild(r),this.style.cssText=s,n},oo=function(t,e){for(var n=e.length;n--;)if(t.hasAttribute(e[n]))return t.getAttribute(e[n])},uo=function(t){var e;try{e=t.getBBox()}catch(n){e=so.call(t,!0)}return e&&(e.width||e.height)||t.getBBox===so||(e=so.call(t,!0)),!e||e.width||e.x||e.y?e:{x:+oo(t,["x","cx","x1"])||0,y:+oo(t,["y","cy","y1"])||0,width:0,height:0}},lo=function(t){return!(!t.getCTM||t.parentNode&&!t.ownerSVGElement||!uo(t))},co=function(t,e){if(e){var n=t.style;e in ks&&e!==Ks&&(e=$s),n.removeProperty?("ms"!==e.substr(0,2)&&"webkit"!==e.substr(0,6)||(e="-"+e),n.removeProperty(e.replace(Rs,"-$1").toLowerCase())):n.removeAttribute(e)}},ho=function(t,e,n,r,i,a){var s=new us(t._pt,e,n,0,1,a?Us:js);return t._pt=s,s.b=r,s.e=i,t._props.push(n),s},fo={deg:1,rad:1,turn:1},po={grid:1,flex:1},mo=function t(e,n,r,i){var a,s,o,u,l=parseFloat(r)||0,c=(r+"").trim().substr((l+"").length)||"px",h=xs.style,f=Ns.test(n),d="svg"===e.tagName.toLowerCase(),p=(d?"client":"offset")+(f?"Width":"Height"),m=100,g="px"===i,v="%"===i;return i===c||!l||fo[i]||fo[c]?l:("px"!==c&&!g&&(l=t(e,n,r,"px")),u=e.getCTM&&lo(e),!v&&"%"!==c||!ks[n]&&!~n.indexOf("adius")?(h[f?"width":"height"]=m+(g?c:i),s=~n.indexOf("adius")||"em"===i&&e.appendChild&&!d?e:e.parentNode,u&&(s=(e.ownerSVGElement||{}).parentNode),s&&s!==Ds&&s.appendChild||(s=Ds.body),(o=s._gsap)&&v&&o.width&&f&&o.time===Da.time&&!o.uncache?hi(l/o.width*m):((v||"%"===c)&&!po[no(s,"display")]&&(h.position=no(e,"position")),s===e&&(h.position="static"),s.appendChild(xs),a=xs[p],s.removeChild(xs),h.position="absolute",f&&v&&((o=ui(s)).time=Da.time,o.width=s[p]),hi(g?a*l/m:a&&l?m/a*l:0))):(a=u?e.getBBox()[f?"width":"height"]:e[p],hi(v?l/a*m:l/100*a)))},go=function(t,e,n,r){var i;return Ss||ao(),e in Vs&&"transform"!==e&&~(e=Vs[e]).indexOf(",")&&(e=e.split(",")[0]),ks[e]&&"transform"!==e?(i=Mo(t,r),i="transformOrigin"!==e?i[e]:i.svg?i.origin:Oo(no(t,Ks))+" "+i.zOrigin+"px"):(!(i=t.style[e])||"auto"===i||r||~(i+"").indexOf("calc("))&&(i=_o[e]&&_o[e](t,e,n)||no(t,e)||li(t,e)||("opacity"===e?1:0)),n&&!~(i+"").trim().indexOf(" ")?mo(t,e,i,n)+n:i},vo=function(t,e,n,r){if(!n||"none"===n){var i=io(e,t,1),a=i&&no(t,i,1);a&&a!==n?(e=i,n=a):"borderColor"===e&&(n=no(t,"borderTopColor"))}var s,o,u,l,c,h,f,d,p,m,g,v=new us(this._pt,t.style,e,0,1,ns),y=0,b=0;if(v.b=n,v.e=r,n+="","auto"===(r+="")&&(t.style[e]=r,r=no(t,e)||r,t.style[e]=n),wa(s=[n,r]),r=s[1],u=(n=s[0]).match(Yr)||[],(r.match(Yr)||[]).length){for(;o=Yr.exec(r);)f=o[0],p=r.substring(y,o.index),c?c=(c+1)%5:"rgba("!==p.substr(-5)&&"hsla("!==p.substr(-5)||(c=1),f!==(h=u[b++]||"")&&(l=parseFloat(h)||0,g=h.substr((l+"").length),"="===f.charAt(1)&&(f=di(l,f)+g),d=parseFloat(f),m=f.substr((d+"").length),y=Yr.lastIndex-m.length,m||(m=m||gr.units[e]||g,y===r.length&&(r+=m,v.e+=m)),g!==m&&(l=mo(t,e,h,m)||0),v._pt={_next:v._pt,p:p||1===b?p:",",s:l,c:d-l,m:c&&c<4||"zIndex"===e?Math.round:0});v.c=y<r.length?r.substring(y,r.length):""}else v.r="display"===e&&"none"===r?Us:js;return Fr.test(r)&&(v.e=0),this._pt=v,v},yo={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},bo=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],ks[n]&&(r=1,n="transformOrigin"===n?Ks:$s),co(a,n);r&&(co(a,$s),u&&(u.svg&&a.removeAttribute("transform"),Mo(a,1),u.uncache=1,Qs(s)))}},_o={clearProps:function(t,e,n,r,i){if("isFromStart"!==i.data){var a=t._pt=new us(t._pt,e,n,0,0,bo);return a.u=r,a.pr=-10,a.tween=i,t._props.push(n),1}}},wo=[1,0,0,1,0,0],Do={},To=function(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t},So=function(t){var e=no(t,$s);return To(e)?wo:e.substr(7).match(Br).map(hi)},xo=function(t,e){var n,r,i,a,s=t._gsap||ui(t),o=t.style,u=So(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(",")?wo:u:(u!==wo||t.offsetParent||t===Ts||s.svg||(i=o.display,o.display="block",(n=t.parentNode)&&t.offsetParent||(a=1,r=t.nextElementSibling,Ts.appendChild(t)),u=So(t),i?o.display=i:co(t,"display"),a&&(r?n.insertBefore(t,r):n?n.appendChild(t):Ts.removeChild(t))),e&&u.length>6?[u[0],u[1],u[4],u[5],u[12],u[13]]:u)},Eo=function(t,e,n,r,i,a){var s,o,u,l=t._gsap,c=i||xo(t,!0),h=l.xOrigin||0,f=l.yOrigin||0,d=l.xOffset||0,p=l.yOffset||0,m=c[0],g=c[1],v=c[2],y=c[3],b=c[4],_=c[5],w=e.split(" "),D=parseFloat(w[0])||0,T=parseFloat(w[1])||0;n?c!==wo&&(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=uo(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&&l.smooth?(b=D-h,_=T-f,l.xOffset=d+(b*m+_*v)-b,l.yOffset=p+(b*g+_*y)-_):l.xOffset=l.yOffset=0,l.xOrigin=D,l.yOrigin=T,l.smooth=!!r,l.origin=e,l.originIsAbsolute=!!n,t.style[Ks]="0px 0px",a&&(ho(a,l,"xOrigin",h,D),ho(a,l,"yOrigin",f,T),ho(a,l,"xOffset",d,l.xOffset),ho(a,l,"yOffset",p,l.yOffset)),t.setAttribute("data-svg-origin",D+" "+T)},Mo=function(t,e){var n=t._gsap||new Ia(t);if("x"in n&&!e&&!n.uncache)return n;var r,i,a,s,o,u,l,c,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=no(t,Ks)||"0";return r=i=a=u=l=c=h=f=d=0,s=o=1,n.svg=!(!t.getCTM||!lo(t)),L.translate&&("none"===L.translate&&"none"===L.scale&&"none"===L.rotate||(I[$s]=("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[$s]?L[$s]:"")),I.scale=I.rotate=I.translate="none"),g=xo(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"),Eo(t,E||F,!!E||n.originIsAbsolute,!1!==n.smooth,g)),p=n.xOrigin||0,m=n.yOrigin||0,g!==wo&&(_=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?Ps(w,_)*Cs:0,(h=D||T?Ps(D,T)*Cs+u:0)&&(o*=Math.abs(Math.cos(h*As))),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],l=(v=Ps(N,A))*Cs,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),c=(v=Ps(-D,A))*Cs,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=Ps(w,_))*Cs,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),l&&Math.abs(l)+Math.abs(u)>359.9&&(l=u=0,c=180-c),s=hi(Math.sqrt(_*_+w*w+D*D)),o=hi(Math.sqrt(x*x+N*N)),v=Ps(S,x),h=Math.abs(v)>2e-4?v*Cs:0,d=R?1/(R<0?-R:R):0),n.svg&&(E=t.getAttribute("transform"),n.forceCSS=t.setAttribute("transform","")||!To(no(t,$s)),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=hi(s),n.scaleY=hi(o),n.rotation=hi(u)+Y,n.rotationX=hi(l)+Y,n.rotationY=hi(c)+Y,n.skewX=h+Y,n.skewY=f+Y,n.transformPerspective=d+B,(n.zOrigin=parseFloat(F.split(" ")[2])||0)&&(I[Ks]=Oo(F)),n.xOffset=n.yOffset=0,n.force3D=gr.force3D,n.renderTransform=n.svg?Io:Os?No:Co,n.uncache=0,n},Oo=function(t){return(t=t.split(" "))[0]+" "+t[1]},ko=function(t,e,n){var r=$i(e);return hi(parseFloat(e)+parseFloat(mo(t,"x",n+"px",r)))+r},Co=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,No(t,e)},Ao="0deg",Po="0px",Ro=") ",No=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,l=n.rotationY,c=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&&(c!==Ao||l!==Ao)){var w,D=parseFloat(l)*As,T=Math.sin(D),S=Math.cos(D);D=parseFloat(c)*As,w=Math.cos(D),a=ko(v,a,T*w*-y),s=ko(v,s,-Math.sin(D)*-y),o=ko(v,o,S*w*-y+y)}m!==Po&&(b+="perspective("+m+Ro),(r||i)&&(b+="translate("+r+"%, "+i+"%) "),(_||a!==Po||s!==Po||o!==Po)&&(b+=o!==Po||_?"translate3d("+a+", "+s+", "+o+") ":"translate("+a+", "+s+Ro),u!==Ao&&(b+="rotate("+u+Ro),l!==Ao&&(b+="rotateY("+l+Ro),c!==Ao&&(b+="rotateX("+c+Ro),h===Ao&&f===Ao||(b+="skew("+h+", "+f+Ro),1===d&&1===p||(b+="scale("+d+", "+p+Ro),v.style[$s]=b||"translate(0, 0)"},Io=function(t,e){var n,r,i,a,s,o=e||this,u=o.xPercent,l=o.yPercent,c=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(c),S=parseFloat(h);f=parseFloat(f),d=parseFloat(d),(p=parseFloat(p))&&(d+=p=parseFloat(p),f+=p),f||d?(f*=As,d*=As,n=Math.cos(f)*m,r=Math.sin(f)*m,i=Math.sin(f-d)*-g,a=Math.cos(f-d)*g,d&&(p*=As,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=hi(n),r=hi(r),i=hi(i),a=hi(a)):(n=m,a=g,r=i=0),(T&&!~(c+"").indexOf("px")||S&&!~(h+"").indexOf("px"))&&(T=mo(v,"x",c,"px"),S=mo(v,"y",h,"px")),(y||b||_||w)&&(T=hi(T+y-(y*n+b*i)+_),S=hi(S+b-(y*r+b*a)+w)),(u||l)&&(s=v.getBBox(),T=hi(T+u/100*s.width),S=hi(S+l/100*s.height)),s="matrix("+n+","+r+","+i+","+a+","+T+","+S+")",v.setAttribute("transform",s),D&&(v.style[$s]=s)},Vo=function(t,e,n,r,i){var a,s,o=360,u=Er(i),l=parseFloat(i)*(u&&~i.indexOf("rad")?Cs:1)-r,c=r+l+"deg";return u&&("short"===(a=i.split("_")[1])&&(l%=o)!==l%180&&(l+=l<0?o:-360),"cw"===a&&l<0?l=(l+36e9)%o-~~(l/o)*o:"ccw"===a&&l>0&&(l=(l-36e9)%o-~~(l/o)*o)),t._pt=s=new us(t._pt,e,n,r,l,Ys),s.e=c,s.u="deg",t._props.push(n),s},Bo=function(t,e){for(var n in e)t[n]=e[n];return t},Yo=function(t,e,n){var r,i,a,s,o,u,l,c=Bo({},n._gsap),h=n.style;for(i in c.svg?(a=n.getAttribute("transform"),n.setAttribute("transform",""),h[$s]=e,r=Mo(n,1),co(n,$s),n.setAttribute("transform",a)):(a=getComputedStyle(n)[$s],h[$s]=e,r=Mo(n,1),h[$s]=a),ks)(a=c[i])!==(s=r[i])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(i)<0&&(o=$i(a)!==(l=$i(s))?mo(n,i,a,l):parseFloat(a),u=parseFloat(s),t._pt=new us(t._pt,r,i,o,u-o,Bs),t._pt.u=l||0,t._props.push(i));Bo(r,c)};ci("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}));_o[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 go(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 Lo,Fo,jo,Uo={name:"css",register:ao,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,n,r,i){var a,s,o,u,l,c,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 Ss||ao(),this.styles=this.styles||to(t),_=this.styles.props,this.tween=n,e)if("autoRound"!==h&&(s=e[h],!ni[h]||!Ua(h,e,n,r,t,i)))if(l=typeof s,c=_o[h],"function"===l&&(l=typeof(s=s.call(n,r,t,i))),"string"===l&&~s.indexOf("random(")&&(s=oa(s)),c)c(this,t,h,s,n)&&(b=1);else if("--"===h.substr(0,2))a=(getComputedStyle(t).getPropertyValue(h)+"").trim(),s+="",ba.lastIndex=0,ba.test(a)||(f=$i(a),d=$i(s)),d?f!==d&&(a=mo(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"!==l){if(M&&h in M?(a="function"==typeof M[h]?M[h].call(n,r,t,i):M[h],Er(a)&&~a.indexOf("random(")&&(a=oa(a)),$i(a+"")||(a+=gr.units[h]||$i(go(t,h))||""),"="===(a+"").charAt(1)&&(a=go(t,h))):a=go(t,h),u=parseFloat(a),(p="string"===l&&"="===s.charAt(1)&&s.substr(0,2))&&(s=s.substr(2)),o=parseFloat(s),h in Vs&&("autoAlpha"===h&&(1===u&&"hidden"===go(t,"visibility")&&o&&(u=0),_.push("visibility",0,E.visibility),ho(this,E,"visibility",u?"inherit":"hidden",o?"inherit":"hidden",!o)),"scale"!==h&&"transform"!==h&&~(h=Vs[h]).indexOf(",")&&(h=h.split(",")[0])),m=h in ks)if(this.styles.save(h),g||((v=t._gsap).renderTransform&&!e.parseTransform||Mo(t,e.parseTransform),y=!1!==e.smoothOrigin&&v.smooth,(g=this._pt=new us(this._pt,E,$s,0,1,v.renderTransform,v,0,-1)).dep=1),"scale"===h)this._pt=new us(this._pt,v,"scaleY",u,(p?di(u,p+o):o)-u||0,Bs),this._pt.u=0,x.push("scaleY",h),h+="X";else{if("transformOrigin"===h){_.push(Ks,0,E[Ks]),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]=yo[T]||T,D[1]=yo[S]||S,s=D.join(" "),v.svg?Eo(t,s,0,y,0,this):((d=parseFloat(s.split(" ")[2])||0)!==v.zOrigin&&ho(this,v,"zOrigin",v.zOrigin,d),ho(this,E,h,Oo(a),Oo(s)));continue}if("svgOrigin"===h){Eo(t,s,1,y,0,this);continue}if(h in Do){Vo(this,v,h,u,p?di(u,p+s):s);continue}if("smoothOrigin"===h){ho(this,v,"smooth",v.smooth,s);continue}if("force3D"===h){v[h]=s;continue}if("transform"===h){Yo(this,s,t);continue}}else h in E||(h=io(h)||h);if(m||(o||0===o)&&(u||0===u)&&!Is.test(s)&&h in E)o||(o=0),(f=(a+"").substr((u+"").length))!==(d=$i(s)||(h in gr.units?gr.units[h]:f))&&(u=mo(t,h,a,d)),this._pt=new us(this._pt,m?v:E,h,u,(p?di(u,p+o):o)-u,m||"px"!==d&&"zIndex"!==h||!1===e.autoRound?Bs:Fs),this._pt.u=d||0,f!==d&&"%"!==d&&(this._pt.b=a,this._pt.r=Ls);else if(h in E)vo.call(this,t,h,a,p?p+s:s);else{if(!(h in t)){Gr(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&&os(this)},render:function(t,e){if(e.tween._time||!Ms())for(var n=e._pt;n;)n.r(t,n.d),n=n._next;else e.styles.revert()},get:go,aliases:Vs,getSetter:function(t,e,n){var r=Vs[e];return r&&r.indexOf(",")<0&&(e=r),e in ks&&e!==Ks&&(t._gsap.x||go(t,"x"))?n&&Es===n?"scale"===e?Gs:qs:(Es=n||{})&&("scale"===e?Ws:Zs):t.style&&!kr(t.style[e])?Hs:~e.indexOf("-")?zs:Ja(t,e)},core:{_removeProperty:co,_getMatrix:xo}};_s.utils.checkPrefix=io,_s.core.getStyleSaver=to,jo=ci((Lo="x,y,z,scale,scaleX,scaleY,xPercent,yPercent")+","+(Fo="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",(function(t){ks[t]=1})),ci(Fo,(function(t){gr.units[t]="deg",Do[t]=1})),Vs[jo[13]]=Lo+","+Fo,ci("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",(function(t){var e=t.split(":");Vs[e[1]]=jo[e[0]]})),ci("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",(function(t){gr.units[t]="px"})),_s.registerPlugin(Uo);var Ho=_s.registerPlugin(Uo)||_s;Ho.core.Tween;var zo=function(){function t(){this.startPoisiton={x:0,y:0},this.endPoisiton={x:1920,y:0},this.curtain={width:1920,height:1080},this.totalTime=5,this.timeLine=Ho.timeline()}return t.getInstance=function(){return this.instance||(this.instance=new t),this.instance},t.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 l=0;l<u.length;l++){var c=this.totalTime/u.length,h=u[l],f=this._creatTl("#wrap"+h.cid);this._add(f,l*c)}else{c=this.totalTime/s.length,f=this._creatTl("#wrap"+u.cid);this._add(f,o*c)}}return this.timeLine},t.prototype.filterData=function(t,e){var n;if("left"==e)n=i.default.orderBy(t,["baseData.left"],["asc"]);else if("top"==e)n=i.default.orderBy(t,["baseData.top"],["asc"]);else if("topLeft"==e){var r=this.setSpacing(t,"left");n=i.default.orderBy(r,["spacing"],["asc"])}else if("topRight"==e){var a=this.setSpacing(t,"right");n=i.default.orderBy(a,["spacing"],["asc"])}else if("center"==e){var s=this.splitArrayForCenter(t,"left");n=[i.default.orderBy(s.true,["center.x"],["asc"]),i.default.orderBy(s.false,["center.x"],["desc"])]}else if("spaceBetween"==e){s=this.splitArrayForCenter(t,"left");n=[i.default.orderBy(s.true,["center.x"],["desc"]),i.default.orderBy(s.false,["center.x"],["asc"])]}else n=i.default.orderBy(t,["baseData.left"],["asc"]);return n},t.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)},t.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}},t.prototype.setEndPoisiton=function(t){if(t){var e=t.width,n=t.height;this.curtain=t,this.endPoisiton.x=e,this.endPoisiton.y=n}},t.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},t.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},t.prototype.splitArrayForCenter=function(t,e){var n,r=this,a=this.setCenter(t);return"left"!=e&&"right"!=e||(n=i.default.groupBy(a,(function(t){return t.center.x>=r.curtain.width/2}))),"top"!=e&&"bottom"!=e||(n=i.default.groupBy(a,(function(t){return t.center.y>=r.curtain.height/2}))),console.log(n,"newList"),n},t.prototype._add=function(t,e){this.timeLine.add(t,e)},t.prototype._creatTl=function(t){var e=Ho.timeline();return e.add(this._creatTw(t)),e},t.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})),Ho[a](t,r,s[0],s[1])},t.prototype.in=function(){},t.prototype.out=function(){},t}(),qo=zo.getInstance();var Go=function(){function t(t){this.root=null,this.vuex=dn.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}(),Wo=function(t){function e(e){var n,r,i=t.call(this,e)||this,a=(n=(n=i.eventType)||new Map,o(o({},r),{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 i.$emit=a.emit,i.$on=a.on,i.$off=a.off,i}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 n(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}(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}(Go);t.Go=dn,t.GoAnimation=qo,t.Tool=Qn,t.createComponent=function(t){if(t)return dn.getInstance().render(t)},t.createComponentForParent=function(t,e){if(t)return dn.getInstance().renderForParent(t,e)},t.emitEvent=function(t,e){return dn.getInstance().emitEvent(t,e||function(){})},t.fxhr=Ye,t.getData=Te,t.getDataForRelease=function(t,e){return Te(t,"GET",null,e).then((function(t){var e=JSON.parse(t.data.caseData);return dn.getInstance().reversal(e),t}))},t.log=function(t,e,n,r,i){return dn.getInstance().log(t,e,n,r,i)},t.refreshData=Be,t.run=function(t){return new Wo(t)},t.store=en,Object.defineProperty(t,"__esModule",{value:!0})}));
|
|
38
38
|
//# sourceMappingURL=code.umd.js.map
|