go-core 0.1.67 → 0.1.69-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/code.umd.js CHANGED
@@ -1,6 +1,6 @@
1
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),o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function s(){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 o(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 v(t,e,n,r){return Zn(t,e,n,r,!0).utc()}function m(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function g(t){return null==t._pf&&(t._pf=m()),t._pf}function y(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 _(t){var e=v(NaN);return null!=t?p(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=[],w=!1;function D(t,e){var n,r,i,a=b.length;if(c(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),c(e._i)||(t._i=e._i),c(e._f)||(t._f=e._f),c(e._l)||(t._l=e._l),c(e._strict)||(t._strict=e._strict),c(e._tzm)||(t._tzm=e._tzm),c(e._isUTC)||(t._isUTC=e._isUTC),c(e._offset)||(t._offset=e._offset),c(e._pf)||(t._pf=g(e)),c(e._locale)||(t._locale=e._locale),a>0)for(n=0;n<a;n++)c(i=e[r=b[n]])||(t[r]=i);return t}function 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 x(t){return t instanceof S||null!=t&&null!=t._isAMomentObject}function T(t){!1===r.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function k(t,e){var n=!0;return p((function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,t),n){var i,a,o,s=[],l=arguments.length;for(a=0;a<l;a++){if(i="","object"==typeof arguments[a]){for(o in i+="\n["+a+"] ",arguments[0])u(arguments[0],o)&&(i+=o+": "+arguments[0][o]+", ");i=i.slice(0,-2)}else i=arguments[a];s.push(i)}T(t+"\nArguments: "+Array.prototype.slice.call(s).join("")+"\n"+(new Error).stack),n=!1}return e.apply(this,arguments)}),e)}var C,E={};function O(t,e){null!=r.deprecationHandler&&r.deprecationHandler(t,e),E[t]||(T(e),E[t]=!0)}function A(t){return"undefined"!=typeof Function&&t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function M(t){var e,n;for(n in t)u(t,n)&&(A(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)&&(o(t[n])&&o(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)&&o(t[n])&&(r[n]=p({},r[n]));return r}function B(t){null!=t&&this.set(t)}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,C=Object.keys?Object.keys:function(t){var e,n=[];for(e in t)u(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 A(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 I=/(\[[^\[]*\])|(\\)?([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,F=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,j={},L={};function Y(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 V(i.apply(this,arguments),e[1],e[2])}),n&&(L[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),t)})}function z(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function H(t){var e,n,r=t.match(I);for(e=0,n=r.length;e<n;e++)L[r[e]]?r[e]=L[r[e]]:r[e]=z(r[e]);return function(e){var i,a="";for(i=0;i<n;i++)a+=A(r[i])?r[i].call(e,t):r[i];return a}}function U(t,e){return t.isValid()?(e=W(e,t.localeData()),j[e]=j[e]||H(e),j[e](t)):t.localeData().invalidDate()}function W(t,e){var n=5;function r(t){return e.longDateFormat(t)||t}for(F.lastIndex=0;n>=0&&F.test(t);)t=t.replace(F,r),F.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(I).map((function(t){return"MMMM"===t||"MM"===t||"DD"===t||"dddd"===t?t.slice(1):t})).join(""),this._longDateFormat[t])}var K="Invalid date";function Z(){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 A(i)?i(t,e,n,r):i.replace(/%d/i,t)}function et(t,e){var n=this._relativeTime[t>0?"future":"past"];return A(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 ot={};function st(t,e){ot[t]=e}function ut(t){var e,n=[];for(e in t)u(t,e)&&n.push({unit:e,priority:ot[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&&lt(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 vt(t){return A(this[t=it(t)])?this[t]():this}function mt(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(A(this[t=it(t)]))return this[t](e);return this}var gt,yt=/\d/,_t=/\d\d/,bt=/\d{3}/,wt=/\d{4}/,Dt=/[+-]?\d{6}/,St=/\d\d?/,xt=/\d\d\d\d?/,Tt=/\d\d\d\d\d\d?/,kt=/\d{1,3}/,Ct=/\d{1,4}/,Et=/[+-]?\d{1,6}/,Ot=/\d+/,At=/[+-]?\d+/,Mt=/Z|[+-]\d\d:?\d\d/gi,Pt=/Z|[+-]\d\d(?::?\d\d)?/gi,Bt=/[+-]?\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]=A(e)?e:function(t,r){return t&&n?n:e}}function Vt(t,e){return u(gt,t)?gt[t](e._strict,e._locale):new RegExp(It(t))}function It(t){return Ft(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,e,n,r,i){return e||n||r||i})))}function Ft(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}gt={};var jt={};function Lt(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++)jt[t[n]]=i}function Yt(t,e){Lt(t,(function(t,n,r,i){r._w=r._w||{},e(t,r._w,r,i)}))}function zt(t,e,n){null!=e&&u(jt,t)&&jt[t](e,n._a,n,t)}var Ht,Ut=0,Wt=1,qt=2,Gt=3,Kt=4,Zt=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},Y("M",["MM",2],"Mo",(function(){return this.month()+1})),Y("MMM",0,0,(function(t){return this.localeData().monthsShort(this,t)})),Y("MMMM",0,0,(function(t){return this.localeData().months(this,t)})),rt("month","M"),st("month",8),Nt("M",St),Nt("MM",St,_t),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[Wt]=ht(t)-1})),Lt(["MMM","MMMM"],(function(t,e,n,r){var i=n._locale.monthsParse(t,r,n._strict);null!=i?e[Wt]=i:g(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=Rt,ae=Rt;function oe(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 se(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,o=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)a=v([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,o))?i:null:-1!==(i=Ht.call(this._longMonthsParse,o))?i:null:"MMM"===e?-1!==(i=Ht.call(this._shortMonthsParse,o))||-1!==(i=Ht.call(this._longMonthsParse,o))?i:null:-1!==(i=Ht.call(this._longMonthsParse,o))||-1!==(i=Ht.call(this._shortMonthsParse,o))?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=v([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")||ve.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")||ve.call(this),t?this._monthsStrictRegex:this._monthsRegex):(u(this,"_monthsRegex")||(this._monthsRegex=ae),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)}function ve(){function t(t,e){return e.length-t.length}var e,n,r=[],i=[],a=[];for(e=0;e<12;e++)n=v([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]=Ft(r[e]),i[e]=Ft(i[e]);for(e=0;e<24;e++)a[e]=Ft(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 lt(t)?366:365}Y("Y",0,0,(function(){var t=this.year();return t<=9999?V(t,4):"+"+t})),Y(0,["YY",2],0,(function(){return this.year()%100})),Y(0,["YYYY",4],0,"year"),Y(0,["YYYYY",5],0,"year"),Y(0,["YYYYYY",6,!0],0,"year"),rt("year","y"),st("year",1),Nt("Y",At),Nt("YY",St,_t),Nt("YYYY",Ct,wt),Nt("YYYYY",Et,Dt),Nt("YYYYYY",Et,Dt),Lt(["YYYYY","YYYYYY"],Ut),Lt("YYYY",(function(t,e){e[Ut]=2===t.length?r.parseTwoDigitYear(t):ht(t)})),Lt("YY",(function(t,e){e[Ut]=r.parseTwoDigitYear(t)})),Lt("Y",(function(t,e){e[Ut]=parseInt(t,10)})),r.parseTwoDigitYear=function(t){return ht(t)+(ht(t)>68?1900:2e3)};var ge=ft("FullYear",!0);function ye(){return lt(this.year())}function _e(t,e,n,r,i,a,o){var s;return t<100&&t>=0?(s=new Date(t+400,e,n,r,i,a,o),isFinite(s.getFullYear())&&s.setFullYear(t)):s=new Date(t,e,n,r,i,a,o),s}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 we(t,e,n){var r=7+e-n;return-(7+be(t,0,r).getUTCDay()-e)%7+r-1}function De(t,e,n,r,i){var a,o,s=1+7*(e-1)+(7+n-r)%7+we(t,r,i);return s<=0?o=me(a=t-1)+s:s>me(t)?(a=t+1,o=s-me(t)):(a=t,o=s),{year:a,dayOfYear:o}}function Se(t,e,n){var r,i,a=we(t.year(),e,n),o=Math.floor((t.dayOfYear()-a-1)/7)+1;return o<1?r=o+xe(i=t.year()-1,e,n):o>xe(t.year(),e,n)?(r=o-xe(t.year(),e,n),i=t.year()+1):(i=t.year(),r=o),{week:r,year:i}}function xe(t,e,n){var r=we(t,e,n),i=we(t+1,e,n);return(me(t)-r+i)/7}function Te(t){return Se(t,this._week.dow,this._week.doy).week}Y("w",["ww",2],"wo","week"),Y("W",["WW",2],"Wo","isoWeek"),rt("week","w"),rt("isoWeek","W"),st("week",5),st("isoWeek",5),Nt("w",St),Nt("ww",St,_t),Nt("W",St),Nt("WW",St,_t),Yt(["w","ww","W","WW"],(function(t,e,n,r){e[r.substr(0,1)]=ht(t)}));var ke={dow:0,doy:6};function Ce(){return this._week.dow}function Ee(){return this._week.doy}function Oe(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")}function Ae(t){var e=Se(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")}function Me(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 Be(t,e){return t.slice(e,7).concat(t.slice(0,e))}Y("d",0,"do","day"),Y("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),Y("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),Y("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),Y("e",0,0,"weekday"),Y("E",0,0,"isoWeekday"),rt("day","d"),rt("weekday","e"),rt("isoWeekday","E"),st("day",11),st("weekday",11),st("isoWeekday",11),Nt("d",St),Nt("e",St),Nt("E",St),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)})),Yt(["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})),Yt(["d","e","E"],(function(t,e,n,r){e[r]=ht(t)}));var Re="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ne="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ve="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ie=Rt,Fe=Rt,je=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?Be(n,this._week.dow):t?n[t.day()]:n}function Ye(t){return!0===t?Be(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort}function ze(t){return!0===t?Be(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin}function He(t,e,n){var r,i,a,o=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=v([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,o))?i:null:"ddd"===e?-1!==(i=Ht.call(this._shortWeekdaysParse,o))?i:null:-1!==(i=Ht.call(this._minWeekdaysParse,o))?i:null:"dddd"===e?-1!==(i=Ht.call(this._weekdaysParse,o))||-1!==(i=Ht.call(this._shortWeekdaysParse,o))||-1!==(i=Ht.call(this._minWeekdaysParse,o))?i:null:"ddd"===e?-1!==(i=Ht.call(this._shortWeekdaysParse,o))||-1!==(i=Ht.call(this._weekdaysParse,o))||-1!==(i=Ht.call(this._minWeekdaysParse,o))?i:null:-1!==(i=Ht.call(this._minWeekdaysParse,o))||-1!==(i=Ht.call(this._weekdaysParse,o))||-1!==(i=Ht.call(this._shortWeekdaysParse,o))?i:null}function Ue(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=v([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 We(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=Me(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=Pe(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7}function Ke(t){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Xe.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(u(this,"_weekdaysRegex")||(this._weekdaysRegex=Ie),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function Ze(t){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||Xe.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(u(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Fe),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=je),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Xe(){function t(t,e){return e.length-t.length}var e,n,r,i,a,o=[],s=[],u=[],l=[];for(e=0;e<7;e++)n=v([2e3,1]).day(e),r=Ft(this.weekdaysMin(n,"")),i=Ft(this.weekdaysShort(n,"")),a=Ft(this.weekdays(n,"")),o.push(r),s.push(i),u.push(a),l.push(r),l.push(i),l.push(a);o.sort(t),s.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("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Je(){return this.hours()%12||12}function Qe(){return this.hours()||24}function tn(t,e){Y(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)}Y("H",["HH",2],0,"hour"),Y("h",["hh",2],0,Je),Y("k",["kk",2],0,Qe),Y("hmm",0,0,(function(){return""+Je.apply(this)+V(this.minutes(),2)})),Y("hmmss",0,0,(function(){return""+Je.apply(this)+V(this.minutes(),2)+V(this.seconds(),2)})),Y("Hmm",0,0,(function(){return""+this.hours()+V(this.minutes(),2)})),Y("Hmmss",0,0,(function(){return""+this.hours()+V(this.minutes(),2)+V(this.seconds(),2)})),tn("a",!0),tn("A",!1),rt("hour","h"),st("hour",13),Nt("a",en),Nt("A",en),Nt("H",St),Nt("h",St),Nt("k",St),Nt("HH",St,_t),Nt("hh",St,_t),Nt("kk",St,_t),Nt("hmm",xt),Nt("hmmss",Tt),Nt("Hmm",xt),Nt("Hmmss",Tt),Lt(["H","HH"],Gt),Lt(["k","kk"],(function(t,e,n){var r=ht(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]=ht(t),g(n).bigHour=!0})),Lt("hmm",(function(t,e,n){var r=t.length-2;e[Gt]=ht(t.substr(0,r)),e[Kt]=ht(t.substr(r)),g(n).bigHour=!0})),Lt("hmmss",(function(t,e,n){var r=t.length-4,i=t.length-2;e[Gt]=ht(t.substr(0,r)),e[Kt]=ht(t.substr(r,2)),e[Zt]=ht(t.substr(i)),g(n).bigHour=!0})),Lt("Hmm",(function(t,e,n){var r=t.length-2;e[Gt]=ht(t.substr(0,r)),e[Kt]=ht(t.substr(r))})),Lt("Hmmss",(function(t,e,n){var r=t.length-4,i=t.length-2;e[Gt]=ht(t.substr(0,r)),e[Kt]=ht(t.substr(r,2)),e[Zt]=ht(t.substr(i))}));var rn=/[ap]\.?m?\.?/i,an=ft("Hours",!0);function on(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"}var sn,un={calendar:R,longDateFormat:q,invalidDate:K,ordinal:$,dayOfMonthOrdinalParse:X,relativeTime:Q,months:ee,monthsShort:ne,week:ke,weekdays:Re,weekdaysMin:Ve,weekdaysShort:Ne,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=vn(i.slice(0,e).join("-")))return r;if(n&&n.length>=e&&hn(i,n)>=e-1)break;e--}a++}return sn}function pn(t){return null!=t.match("^[^/\\\\]*$")}function vn(e){var n=null;if(void 0===ln[e]&&t&&t.exports&&pn(e))try{n=sn._abbr,s(),mn(n)}catch(t){ln[e]=null}return ln[e]}function mn(t,e){var n;return t&&((n=c(e)?_n(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=un;if(e.abbr=t,null!=ln[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=ln[t]._config;else if(null!=e.parentLocale)if(null!=ln[e.parentLocale])r=ln[e.parentLocale]._config;else{if(null==(n=vn(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 B(P(r,e)),cn[t]&&cn[t].forEach((function(t){gn(t.name,t.config)})),mn(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=vn(t))&&(i=r._config),e=P(i,e),null==r&&(e.abbr=t),(n=new B(e)).parentLocale=ln[t],ln[t]=n),mn(t)}else null!=ln[t]&&(null!=ln[t].parentLocale?(ln[t]=ln[t].parentLocale,t===mn()&&mn(t)):null!=ln[t]&&delete ln[t]);return ln[t]}function _n(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return sn;if(!a(t)){if(e=vn(t))return e;t=[t]}return dn(t)}function bn(){return C(ln)}function wn(t){var e,n=t._a;return n&&-2===g(t).overflow&&(e=n[Wt]<0||n[Wt]>11?Wt:n[qt]<1||n[qt]>te(n[Ut],n[Wt])?qt:n[Gt]<0||n[Gt]>24||24===n[Gt]&&(0!==n[Kt]||0!==n[Zt]||0!==n[$t])?Gt:n[Kt]<0||n[Kt]>59?Kt:n[Zt]<0||n[Zt]>59?Zt:n[$t]<0||n[$t]>999?$t:-1,g(t)._overflowDayOfYear&&(e<Ut||e>qt)&&(e=qt),g(t)._overflowWeeks&&-1===e&&(e=Xt),g(t)._overflowWeekday&&-1===e&&(e=Jt),g(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)?)?$/,xn=/Z|[+-]\d\d(?::?\d\d)?/,Tn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],kn=[["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/]],Cn=/^\/?Date\((-?\d+)/i,En=/^(?:(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 An(t){var e,n,r,i,a,o,s=t._i,u=Dn.exec(s)||Sn.exec(s),l=Tn.length,c=kn.length;if(u){for(g(t).iso=!0,e=0,n=l;e<n;e++)if(Tn[e][1].exec(u[1])){i=Tn[e][0],r=!1!==Tn[e][2];break}if(null==i)return void(t._isValid=!1);if(u[3]){for(e=0,n=c;e<n;e++)if(kn[e][1].exec(u[3])){a=(u[2]||" ")+kn[e][0];break}if(null==a)return void(t._isValid=!1)}if(!r&&null!=a)return void(t._isValid=!1);if(u[4]){if(!xn.exec(u[4]))return void(t._isValid=!1);o="Z"}t._f=i+(a||"")+(o||""),zn(t)}else t._isValid=!1}function Mn(t,e,n,r,i,a){var o=[Pn(t),ne.indexOf(e),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return a&&o.push(parseInt(a,10)),o}function Pn(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}function Bn(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Rn(t,e,n){return!t||Ne.indexOf(t)===new Date(e[0],e[1],e[2]).getDay()||(g(n).weekdayMismatch=!0,n._isValid=!1,!1)}function Nn(t,e,n){if(t)return On[t];if(e)return 0;var r=parseInt(n,10),i=r%100;return(r-i)/100*60+i}function Vn(t){var e,n=En.exec(Bn(t._i));if(n){if(e=Mn(n[4],n[3],n[2],n[5],n[6],n[7]),!Rn(n[1],e,t))return;t._a=e,t._tzm=Nn(n[8],n[9],n[10]),t._d=be.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),g(t).rfc2822=!0}else t._isValid=!1}function In(t){var e=Cn.exec(t._i);null===e?(An(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 Fn(t,e,n){return null!=t?t:null!=e?e:n}function jn(t){var e=new Date(r.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}function Ln(t){var e,n,r,i,a,o=[];if(!t._d){for(r=jn(t),t._w&&null==t._a[qt]&&null==t._a[Wt]&&Yn(t),null!=t._dayOfYear&&(a=Fn(t._a[Ut],r[Ut]),(t._dayOfYear>me(a)||0===t._dayOfYear)&&(g(t)._overflowDayOfYear=!0),n=be(a,0,t._dayOfYear),t._a[Wt]=n.getUTCMonth(),t._a[qt]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=o[e]=r[e];for(;e<7;e++)t._a[e]=o[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[Gt]&&0===t._a[Kt]&&0===t._a[Zt]&&0===t._a[$t]&&(t._nextDay=!0,t._a[Gt]=0),t._d=(t._useUTC?be:_e).apply(null,o),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 Yn(t){var e,n,r,i,a,o,s,u,l;null!=(e=t._w).GG||null!=e.W||null!=e.E?(a=1,o=4,n=Fn(e.GG,t._a[Ut],Se($n(),1,4).year),r=Fn(e.W,1),((i=Fn(e.E,1))<1||i>7)&&(u=!0)):(a=t._locale._week.dow,o=t._locale._week.doy,l=Se($n(),a,o),n=Fn(e.gg,t._a[Ut],l.year),r=Fn(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>xe(n,a,o)?g(t)._overflowWeeks=!0:null!=u?g(t)._overflowWeekday=!0:(s=De(n,r,i,a,o),t._a[Ut]=s.year,t._dayOfYear=s.dayOfYear)}function zn(t){if(t._f!==r.ISO_8601)if(t._f!==r.RFC_2822){t._a=[],g(t).empty=!0;var e,n,i,a,o,s,u,l=""+t._i,c=l.length,h=0;for(u=(i=W(t._f,t._locale).match(I)||[]).length,e=0;e<u;e++)a=i[e],(n=(l.match(Vt(a,t))||[])[0])&&((o=l.substr(0,l.indexOf(n))).length>0&&g(t).unusedInput.push(o),l=l.slice(l.indexOf(n)+n.length),h+=n.length),L[a]?(n?g(t).empty=!1:g(t).unusedTokens.push(a),zt(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!==(s=g(t).era)&&(t._a[Ut]=t._locale.erasConvertYear(s,t._a[Ut])),Ln(t),wn(t)}else Vn(t);else An(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 Un(t){var e,n,r,i,a,o,s=!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,o=!1,e=D({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[i],zn(e),y(e)&&(o=!0),a+=g(e).charsLeftOver,a+=10*g(e).unusedTokens.length,g(e).score=a,s?a<r&&(r=a,n=e):(null==r||a<r||o)&&(r=a,n=e,o&&(s=!0));p(t,n||e)}function Wn(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)})),Ln(t)}}function qn(t){var e=new S(wn(Gn(t)));return e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}function Gn(t){var e=t._i,n=t._f;return t._locale=t._locale||_n(t._l),null===e||void 0===n&&""===e?_({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),x(e)?new S(wn(e)):(f(e)?t._d=e:a(n)?Un(t):n?zn(t):Kn(t),y(t)||(t._d=null),t))}function Kn(t){var e=t._i;c(e)?t._d=new Date(r.now()):f(e)?t._d=new Date(e.valueOf()):"string"==typeof e?In(t):a(e)?(t._a=d(e.slice(0),(function(t){return parseInt(t,10)})),Ln(t)):o(e)?Wn(t):h(e)?t._d=new Date(e):r.createFromInputFallback(t)}function Zn(t,e,n,r,i){var s={};return!0!==e&&!1!==e||(r=e,e=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(o(t)&&l(t)||a(t)&&0===t.length)&&(t=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=i,s._l=n,s._i=t,s._f=e,s._strict=r,qn(s)}function $n(t,e,n,r){return Zn(t,e,n,r,!1)}r.createFromInputFallback=k("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=k("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:_()})),Jn=k("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:_()}));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 or(){return Or(NaN)}function sr(t){var e=at(t),n=e.year||0,r=e.quarter||0,i=e.month||0,a=e.week||e.isoWeek||0,o=e.day||0,s=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*s*60*60,this._days=+o+7*a,this._months=+i+3*r+12*n,this._data={},this._locale=_n(),this._bubble()}function ur(t){return t instanceof sr}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),o=0;for(r=0;r<i;r++)(n&&t[r]!==e[r]||!n&&ht(t[r])!==ht(e[r]))&&o++;return o+a}function hr(t,e){Y(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",""),Nt("Z",Pt),Nt("ZZ",Pt),Lt(["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=(x(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 vr(t){return-Math.round(t._d.getTimezoneOffset())}function mr(t,e,n){var i,a=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=dr(Pt,t)))return this}else Math.abs(t)<16&&!n&&(t*=60);return!this._isUTC&&e&&(i=vr(this)),this._offset=t,this._isUTC=!0,null!=i&&this.add(i,"m"),a!==t&&(!e||this._changeInProgress?Rr(this,Or(t-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?a:vr(this)}function gr(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 _r(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(vr(this),"m")),this}function br(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=dr(Mt,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=Gn(e))._a?(t=e._isUTC?v(e._a):$n(e._a),this._isDSTShifted=this.isValid()&&cr(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function xr(){return!!this.isValid()&&!this._isUTC}function Tr(){return!!this.isValid()&&this._isUTC}function kr(){return!!this.isValid()&&this._isUTC&&0===this._offset}r.updateOffset=function(){};var Cr=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Er=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Or(t,e){var n,r,i,a=t,o=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):(o=Cr.exec(t))?(n="-"===o[1]?-1:1,a={y:0,d:ht(o[qt])*n,h:ht(o[Gt])*n,m:ht(o[Kt])*n,s:ht(o[Zt])*n,ms:ht(lr(1e3*o[$t]))*n}):(o=Er.exec(t))?(n="-"===o[1]?-1:1,a={y:Ar(o[2],n),M:Ar(o[3],n),w:Ar(o[4],n),d:Ar(o[5],n),h:Ar(o[6],n),m:Ar(o[7],n),s:Ar(o[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 sr(a),ur(t)&&u(t,"_locale")&&(r._locale=t._locale),ur(t)&&u(t,"_isValid")&&(r._isValid=t._isValid),r}function Ar(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function Mr(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=Mr(t,e):((n=Mr(e,t)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Br(t,e){return function(n,r){var i;return null===r||isNaN(+r)||(O(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),Rr(this,Or(n,r),t),this}}function Rr(t,e,n,i){var a=e._milliseconds,o=lr(e._days),s=lr(e._months);t.isValid()&&(i=null==i||i,s&&ce(t,dt(t,"Month")+s*n),o&&pt(t,"Date",dt(t,"Date")+o*n),a&&t._d.setTime(t._d.valueOf()+a*n),i&&r.updateOffset(t,o||s))}Or.fn=sr.prototype,Or.invalid=or;var Nr=Br(1,"add"),Vr=Br(-1,"subtract");function Ir(t){return"string"==typeof t||t instanceof String}function Fr(t){return x(t)||f(t)||Ir(t)||h(t)||Lr(t)||jr(t)||null==t}function jr(t){var e,n,r=o(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"],s=a.length;for(e=0;e<s;e+=1)n=a[e],i=i||u(t,n);return r&&i}function Lr(t){var e=a(t),n=!1;return e&&(n=0===t.filter((function(e){return!h(e)&&Ir(t)})).length),e&&n}function Yr(t){var e,n,r=o(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 zr(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]?Fr(arguments[0])?(t=arguments[0],e=void 0):Yr(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",o=e&&(A(e[a])?e[a].call(this,n):e[a]);return this.format(o||this.localeData().calendar(a,this,$n(n)))}function Ur(){return new S(this)}function Wr(t,e){var n=x(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 qr(t,e){var n=x(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 Gr(t,e,n,r){var i=x(t)?t:$n(t),a=x(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 Kr(t,e){var n,r=x(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 Zr(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?U(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):A(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",U(n,"Z")):U(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=U(this,t);return this.localeData().postformat(e)}function ri(t,e){return this.isValid()&&(x(t)&&t.isValid()||$n(t).isValid())?Or({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()&&(x(t)&&t.isValid()||$n(t).isValid())?Or({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function oi(t){return this.to($n(),t)}function si(t){var e;return void 0===t?this._locale._abbr:(null!=(e=_n(t))&&(this._locale=e),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var ui=k("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 vi(t,e,n){return t<100&&t>=0?new Date(t+400,e,n)-di:new Date(t,e,n).valueOf()}function mi(t,e,n){return t<100&&t>=0?Date.UTC(t+400,e,n)-di:Date.UTC(t,e,n)}function gi(t){var e,n;if(void 0===(t=it(t))||"millisecond"===t||!this.isValid())return this;switch(n=this._isUTC?mi:vi,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?mi:vi,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 _i(){return this._d.valueOf()-6e4*(this._offset||0)}function bi(){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 xi(){return this.isValid()?this.toISOString():null}function Ti(){return y(this)}function ki(){return p({},g(this))}function Ci(){return g(this).overflow}function Ei(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Oi(t,e){var n,i,a,o=this._eras||_n("en")._eras;for(n=0,i=o.length;n<i;++n)switch("string"==typeof o[n].since&&(a=r(o[n].since).startOf("day"),o[n].since=a.valueOf()),typeof o[n].until){case"undefined":o[n].until=1/0;break;case"string":a=r(o[n].until).startOf("day").valueOf(),o[n].until=a.valueOf()}return o}function Ai(t,e,n){var r,i,a,o,s,u=this.eras();for(t=t.toUpperCase(),r=0,i=u.length;r<i;++r)if(a=u[r].name.toUpperCase(),o=u[r].abbr.toUpperCase(),s=u[r].narrow.toUpperCase(),n)switch(e){case"N":case"NN":case"NNN":if(o===t)return u[r];break;case"NNNN":if(a===t)return u[r];break;case"NNNNN":if(s===t)return u[r]}else if([a,o,s].indexOf(t)>=0)return u[r]}function Mi(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 Bi(){var t,e,n,r=this.localeData().eras();for(t=0,e=r.length;t<e;++t){if(n=this.clone().startOf("day").valueOf(),r[t].since<=n&&n<=r[t].until)return r[t].narrow;if(r[t].until<=n&&n<=r[t].since)return r[t].narrow}return""}function Ri(){var t,e,n,r=this.localeData().eras();for(t=0,e=r.length;t<e;++t){if(n=this.clone().startOf("day").valueOf(),r[t].since<=n&&n<=r[t].until)return r[t].abbr;if(r[t].until<=n&&n<=r[t].since)return r[t].abbr}return""}function Ni(){var t,e,n,i,a=this.localeData().eras();for(t=0,e=a.length;t<e;++t)if(n=a[t].since<=a[t].until?1:-1,i=this.clone().startOf("day").valueOf(),a[t].since<=i&&i<=a[t].until||a[t].until<=i&&i<=a[t].since)return(this.year()-r(a[t].since).year())*n+a[t].offset;return this.year()}function Vi(t){return u(this,"_erasNameRegex")||Hi.call(this),t?this._erasNameRegex:this._erasRegex}function Ii(t){return u(this,"_erasAbbrRegex")||Hi.call(this),t?this._erasAbbrRegex:this._erasRegex}function Fi(t){return u(this,"_erasNarrowRegex")||Hi.call(this),t?this._erasNarrowRegex:this._erasRegex}function ji(t,e){return e.erasAbbrRegex(t)}function Li(t,e){return e.erasNameRegex(t)}function Yi(t,e){return e.erasNarrowRegex(t)}function zi(t,e){return e._eraYearOrdinalRegex||Ot}function Hi(){var t,e,n=[],r=[],i=[],a=[],o=this.eras();for(t=0,e=o.length;t<e;++t)r.push(Ft(o[t].name)),n.push(Ft(o[t].abbr)),i.push(Ft(o[t].narrow)),a.push(Ft(o[t].name)),a.push(Ft(o[t].abbr)),a.push(Ft(o[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 Ui(t,e){Y(0,[t,t.length],0,e)}function Wi(t){return Xi.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function qi(t){return Xi.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)}function Gi(){return xe(this.year(),1,4)}function Ki(){return xe(this.isoWeekYear(),1,4)}function Zi(){var t=this.localeData()._week;return xe(this.year(),t.dow,t.doy)}function $i(){var t=this.localeData()._week;return xe(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=xe(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),o=be(a.year,0,a.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}function Qi(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)}Y("N",0,0,"eraAbbr"),Y("NN",0,0,"eraAbbr"),Y("NNN",0,0,"eraAbbr"),Y("NNNN",0,0,"eraName"),Y("NNNNN",0,0,"eraNarrow"),Y("y",["y",1],"yo","eraYear"),Y("y",["yy",2],0,"eraYear"),Y("y",["yyy",3],0,"eraYear"),Y("y",["yyyy",4],0,"eraYear"),Nt("N",ji),Nt("NN",ji),Nt("NNN",ji),Nt("NNNN",Li),Nt("NNNNN",Yi),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",zi),Lt(["y","yy","yyy","yyyy"],Ut),Lt(["yo"],(function(t,e,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=t.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?e[Ut]=n._locale.eraYearOrdinalParse(t,i):e[Ut]=parseInt(t,10)})),Y(0,["gg",2],0,(function(){return this.weekYear()%100})),Y(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Ui("gggg","weekYear"),Ui("ggggg","weekYear"),Ui("GGGG","isoWeekYear"),Ui("GGGGG","isoWeekYear"),rt("weekYear","gg"),rt("isoWeekYear","GG"),st("weekYear",1),st("isoWeekYear",1),Nt("G",At),Nt("g",At),Nt("GG",St,_t),Nt("gg",St,_t),Nt("GGGG",Ct,wt),Nt("gggg",Ct,wt),Nt("GGGGG",Et,Dt),Nt("ggggg",Et,Dt),Yt(["gggg","ggggg","GGGG","GGGGG"],(function(t,e,n,r){e[r.substr(0,2)]=ht(t)})),Yt(["gg","GG"],(function(t,e,n,i){e[i]=r.parseTwoDigitYear(t)})),Y("Q",0,"Qo","quarter"),rt("quarter","Q"),st("quarter",7),Nt("Q",yt),Lt("Q",(function(t,e){e[Wt]=3*(ht(t)-1)})),Y("D",["DD",2],"Do","date"),rt("date","D"),st("date",9),Nt("D",St),Nt("DD",St,_t),Nt("Do",(function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient})),Lt(["D","DD"],qt),Lt("Do",(function(t,e){e[qt]=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")}Y("DDD",["DDDD",3],"DDDo","dayOfYear"),rt("dayOfYear","DDD"),st("dayOfYear",4),Nt("DDD",kt),Nt("DDDD",bt),Lt(["DDD","DDDD"],(function(t,e,n){n._dayOfYear=ht(t)})),Y("m",["mm",2],0,"minute"),rt("minute","m"),st("minute",14),Nt("m",St),Nt("mm",St,_t),Lt(["m","mm"],Kt);var na=ft("Minutes",!1);Y("s",["ss",2],0,"second"),rt("second","s"),st("second",15),Nt("s",St),Nt("ss",St,_t),Lt(["s","ss"],Zt);var ra,ia,aa=ft("Seconds",!1);for(Y("S",0,0,(function(){return~~(this.millisecond()/100)})),Y(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),Y(0,["SSS",3],0,"millisecond"),Y(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),Y(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),Y(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),Y(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),Y(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),Y(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),rt("millisecond","ms"),st("millisecond",16),Nt("S",kt,yt),Nt("SS",kt,_t),Nt("SSS",kt,bt),ra="SSSS";ra.length<=9;ra+="S")Nt(ra,Ot);function oa(t,e){e[$t]=ht(1e3*("0."+t))}for(ra="S";ra.length<=9;ra+="S")Lt(ra,oa);function sa(){return this._isUTC?"UTC":""}function ua(){return this._isUTC?"Coordinated Universal Time":""}ia=ft("Milliseconds",!1),Y("z",0,0,"zoneAbbr"),Y("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=Nr,la.calendar=Hr,la.clone=Ur,la.diff=Xr,la.endOf=yi,la.format=ni,la.from=ri,la.fromNow=ii,la.to=ai,la.toNow=oi,la.get=vt,la.invalidAt=Ci,la.isAfter=Wr,la.isBefore=qr,la.isBetween=Gr,la.isSame=Kr,la.isSameOrAfter=Zr,la.isSameOrBefore=$r,la.isValid=Ti,la.lang=ui,la.locale=si,la.localeData=li,la.max=Jn,la.min=Xn,la.parsingFlags=ki,la.set=mt,la.startOf=gi,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=xi,la.toString=Qr,la.unix=bi,la.valueOf=_i,la.creationData=Ei,la.eraName=Pi,la.eraNarrow=Bi,la.eraAbbr=Ri,la.eraYear=Ni,la.year=ge,la.isLeapYear=ye,la.weekYear=Wi,la.isoWeekYear=qi,la.quarter=la.quarters=Qi,la.month=he,la.daysInMonth=fe,la.week=la.weeks=Oe,la.isoWeek=la.isoWeeks=Ae,la.weeksInYear=Zi,la.weeksInWeekYear=$i,la.isoWeeksInYear=Gi,la.isoWeeksInISOWeekYear=Ki,la.date=ta,la.day=la.days=We,la.weekday=qe,la.isoWeekday=Ge,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=mr,la.utc=yr,la.local=_r,la.parseZone=br,la.hasAlignedHourOffset=wr,la.isDST=Dr,la.isLocal=xr,la.isUtcOffset=Tr,la.isUtc=kr,la.isUTC=kr,la.zoneAbbr=sa,la.zoneName=ua,la.dates=k("dates accessor is deprecated. Use date instead.",ta),la.months=k("months accessor is deprecated. Use month instead",he),la.years=k("years accessor is deprecated. Use year instead",ge),la.zone=k("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",gr),la.isDSTShifted=k("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Sr);var da=B.prototype;function pa(t,e,n,r){var i=_n(),a=v().set(r,e);return i[n](a,t)}function va(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 ma(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=_n(),o=t?a._week.dow:0,s=[];if(null!=n)return pa(e,(n+o)%7,r,"day");for(i=0;i<7;i++)s[i]=pa(e,(i+o)%7,r,"day");return s}function ga(t,e){return va(t,e,"months")}function ya(t,e){return va(t,e,"monthsShort")}function _a(t,e,n){return ma(t,e,n,"weekdays")}function ba(t,e,n){return ma(t,e,n,"weekdaysShort")}function wa(t,e,n){return ma(t,e,n,"weekdaysMin")}da.calendar=N,da.longDateFormat=G,da.invalidDate=Z,da.ordinal=J,da.preparse=fa,da.postformat=fa,da.relativeTime=tt,da.pastFuture=et,da.set=M,da.eras=Oi,da.erasParse=Ai,da.erasConvertYear=Mi,da.erasAbbrRegex=Ii,da.erasNameRegex=Vi,da.erasNarrowRegex=Fi,da.months=oe,da.monthsShort=se,da.monthsParse=le,da.monthsRegex=pe,da.monthsShortRegex=de,da.week=Te,da.firstDayOfYear=Ee,da.firstDayOfWeek=Ce,da.weekdays=Le,da.weekdaysMin=ze,da.weekdaysShort=Ye,da.weekdaysParse=Ue,da.weekdaysRegex=Ke,da.weekdaysShortRegex=Ze,da.weekdaysMinRegex=$e,da.isPM=nn,da.meridiem=on,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===ht(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),r.lang=k("moment.lang is deprecated. Use moment.locale instead.",mn),r.langData=k("moment.langData is deprecated. Use moment.localeData instead.",_n);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 xa(t,e,n,r){var i=Or(e,n);return t._milliseconds+=r*i._milliseconds,t._days+=r*i._days,t._months+=r*i._months,t._bubble()}function Ta(t,e){return xa(this,t,e,1)}function ka(t,e){return xa(this,t,e,-1)}function Ca(t){return t<0?Math.floor(t):Math.ceil(t)}function Ea(){var t,e,n,r,i,a=this._milliseconds,o=this._days,s=this._months,u=this._data;return a>=0&&o>=0&&s>=0||a<=0&&o<=0&&s<=0||(a+=864e5*Ca(Aa(s)+o),o=0,s=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,o+=ct(n/24),s+=i=ct(Oa(o)),o-=Ca(Aa(i)),r=ct(s/12),s%=12,u.days=o,u.months=s,u.years=r,this}function Oa(t){return 4800*t/146097}function Aa(t){return 146097*t/4800}function Ma(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+Oa(e),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(Aa(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 Ba(t){return function(){return this.as(t)}}var Ra=Ba("ms"),Na=Ba("s"),Va=Ba("m"),Ia=Ba("h"),Fa=Ba("d"),ja=Ba("w"),La=Ba("M"),Ya=Ba("Q"),za=Ba("y");function Ha(){return Or(this)}function Ua(t){return t=it(t),this.isValid()?this[t+"s"]():NaN}function Wa(t){return function(){return this.isValid()?this._data[t]:NaN}}var qa=Wa("milliseconds"),Ga=Wa("seconds"),Ka=Wa("minutes"),Za=Wa("hours"),$a=Wa("days"),Xa=Wa("months"),Ja=Wa("years");function Qa(){return ct(this.days()/7)}var to=Math.round,eo={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function no(t,e,n,r,i){return i.relativeTime(e||1,!!n,t,r)}function ro(t,e,n,r){var i=Or(t).abs(),a=to(i.as("s")),o=to(i.as("m")),s=to(i.as("h")),u=to(i.as("d")),l=to(i.as("M")),c=to(i.as("w")),h=to(i.as("y")),f=a<=n.ss&&["s",a]||a<n.s&&["ss",a]||o<=1&&["m"]||o<n.m&&["mm",o]||s<=1&&["h"]||s<n.h&&["hh",s]||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,no.apply(null,f)}function io(t){return void 0===t?to:"function"==typeof t&&(to=t,!0)}function ao(t,e){return void 0!==eo[t]&&(void 0===e?eo[t]:(eo[t]=e,"s"===t&&(eo.ss=e-1),!0))}function oo(t,e){if(!this.isValid())return this.localeData().invalidDate();var n,r,i=!1,a=eo;return"object"==typeof t&&(e=t,t=!1),"boolean"==typeof t&&(i=t),"object"==typeof e&&(a=Object.assign({},eo,e),null!=e.s&&null==e.ss&&(a.ss=e.s-1)),r=ro(this,!i,a,n=this.localeData()),i&&(r=n.pastFuture(+this,r)),n.postformat(r)}var so=Math.abs;function uo(t){return(t>0)-(t<0)||+t}function lo(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n,r,i,a,o,s,u=so(this._milliseconds)/1e3,l=so(this._days),c=so(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=uo(this._months)!==uo(h)?"-":"",o=uo(this._days)!==uo(h)?"-":"",s=uo(this._milliseconds)!==uo(h)?"-":"",i+"P"+(n?a+n+"Y":"")+(c?a+c+"M":"")+(l?o+l+"D":"")+(e||t||u?"T":"")+(e?s+e+"H":"")+(t?s+t+"M":"")+(u?s+r+"S":"")):"P0D"}var co=sr.prototype;return co.isValid=ar,co.abs=Sa,co.add=Ta,co.subtract=ka,co.as=Ma,co.asMilliseconds=Ra,co.asSeconds=Na,co.asMinutes=Va,co.asHours=Ia,co.asDays=Fa,co.asWeeks=ja,co.asMonths=La,co.asQuarters=Ya,co.asYears=za,co.valueOf=Pa,co._bubble=Ea,co.clone=Ha,co.get=Ua,co.milliseconds=qa,co.seconds=Ga,co.minutes=Ka,co.hours=Za,co.days=$a,co.weeks=Qa,co.months=Xa,co.years=Ja,co.humanize=oo,co.toISOString=lo,co.toString=lo,co.toJSON=lo,co.locale=si,co.localeData=li,co.toIsoString=k("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",lo),co.lang=ui,Y("X",0,0,"unix"),Y("x",0,0,"valueOf"),Nt("x",At),Nt("X",Bt),Lt("X",(function(t,e,n){n._d=new Date(1e3*parseFloat(t))})),Lt("x",(function(t,e,n){n._d=new Date(ht(t))})),
2
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=v,r.unix=ca,r.months=ga,r.isDate=f,r.locale=mn,r.invalid=_,r.duration=Or,r.isMoment=x,r.weekdays=_a,r.parseZone=ha,r.localeData=_n,r.isDuration=ur,r.monthsShort=ya,r.weekdaysMin=wa,r.defineLocale=gn,r.updateLocale=yn,r.locales=bn,r.weekdaysShort=ba,r.normalizeUnits=it,r.relativeTimeRounding=io,r.relativeTimeThreshold=ao,r.calendarFormat=zr,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,toPage: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"},{des:"手机号",key:2001,mapField:"U_PHONE",mapping:"-",model:"2",name:"U_PHONE",value:""},{des:"用户省",key:2002,mapField:"U_PROVINCE",mapping:"-",model:"2",name:"U_PROVINCE",value:""},{des:"用户市",key:2003,mapField:"U_CITY",mapping:"-",model:"2",name:"U_CITY",value:""},{des:"用户区县",key:2004,mapField:"U_COUNTY",mapping:"-",model:"2",name:"U_COUNTY",value:""}],historyFlag:!1},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 o(t){try{u(r.next(t))}catch(t){a(t)}}function s(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(o,s)}u((r=r.apply(t,e||[])).next())}))}function p(t,e){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=e.call(t,o)}catch(t){s=[6,t],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}}function v(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))}"function"==typeof SuppressedError&&SuppressedError;var m={createItem:function(t){t.catch={selectd:i.default.cloneDeep(t.selectd),list:i.default.cloneDeep(t.list)}},resetData:function(t,e){if(t.historyFlag){var n=i.default.cloneDeep(e);t.selected=n.selected,t.list=n.list}},execute:function(t){t.historyFlag&&(t.undoRedoPointer===t.undos.length-1?(t.undos.length>5&&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.historyFlag&&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.historyFlag&&t.undoRedoPointer>=0&&t.undoRedoPointer<t.undos.length){t.undoRedoPointer=t.undoRedoPointer+1;var e=t.undos[t.undoRedoPointer];this.commit("GoCom/resetData",e)}},switchHistoryFlag:function(t){t.historyFlag=!t.historyFlag,t.historyFlag||(t.undos=[],t.undoRedoPointer=-1)}},g=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(g);function _(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(s),n.removeEventListener("message",o),n.terminate(),n=null},o=function(t){var e=t.data,n=e.code,o=e.result,s=e.err;a(),1===n?r(o):i(s)};n.postMessage({code:t}),n.addEventListener("message",o);var s=setTimeout((function(){a(),i("timeout")}),e)}))]}))}))}function b(t,e,n,r,a){return d(this,void 0,void 0,(function(){var n,a,o,s,u,l,c;return p(this,(function(h){switch(h.label){case 0:if(n=t,a=i.default.cloneDeep(e),o=a.use,s=a.data,!o)return[3,4];l=function(t){var e,a;return p(this,(function(o){switch(o.label){case 0:return s[t].use?(e=s[t].dependVars,a={},r&&a&&e&&e.length&&e.map((function(t){var e=i.default.cloneDeep(r).filter((function(e){var n=e.mapField==t;return n&&(a[t]=e.value),n}));e&&0!=e.length||(a[t]="")})),[4,w(s[t].code,n,a)]):[3,2];case 1:u=o.sent(),n=u.data,o.label=2;case 2:return[2]}}))},c=0,h.label=1;case 1:return c<s.length?[5,l(c)]:[3,4];case 2:h.sent(),h.label=3;case 3:return c++,[3,1];case 4:return[2,n]}}))}))}function w(t,e,n){return void 0===n&&(n={}),d(this,void 0,void 0,(function(){var r,a,o,s,u,l;return p(this,(function(c){switch(c.label){case 0:return c.trys.push([0,2,,3]),r=i.default.cloneDeep(e),s=(a=[r,n,""])[1],u=a[2],"object"==typeof(o=a[0])&&(o=JSON.stringify(r)),"object"==typeof n&&(s=JSON.stringify(n)),Object.keys(n).forEach((function(t){return u+="".concat(t,",")})),l="let data=eval(".concat(o,"); "),l+=u?"let {".concat(u,"} = eval(").concat(s,"); "):"",[4,_(l+="".concat(t))];case 1:return[2,{success:!0,data:c.sent()}];case 2:return[2,{success:!1,error:c.sent(),data:e}];case 3:return[2]}}))}))}var D="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function S(){throw new Error("setTimeout has not been defined")}function x(){throw new Error("clearTimeout has not been defined")}var T=S,k=x;function C(t){if(T===setTimeout)return setTimeout(t,0);if((T===S||!T)&&setTimeout)return T=setTimeout,setTimeout(t,0);try{return T(t,0)}catch(e){try{return T.call(null,t,0)}catch(e){return T.call(this,t,0)}}}"function"==typeof D.setTimeout&&(T=setTimeout),"function"==typeof D.clearTimeout&&(k=clearTimeout);var E,O=[],A=!1,M=-1;function P(){A&&E&&(A=!1,E.length?O=E.concat(O):M=-1,O.length&&B())}function B(){if(!A){var t=C(P);A=!0;for(var e=O.length;e;){for(E=O,O=[];++M<e;)E&&E[M].run();M=-1,e=O.length}E=null,A=!1,function(t){if(k===clearTimeout)return clearTimeout(t);if((k===x||!k)&&clearTimeout)return k=clearTimeout,clearTimeout(t);try{return k(t)}catch(e){try{return k.call(null,t)}catch(e){return k.call(this,t)}}}(t)}}function R(t,e){this.fun=t,this.array=e}R.prototype.run=function(){this.fun.apply(null,this.array)};function N(){}var V=N,I=N,F=N,j=N,L=N,Y=N,z=N;var H=D.performance||{},U=H.now||H.mozNow||H.msNow||H.oNow||H.webkitNow||function(){return(new Date).getTime()};var W=new Date;var q={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];O.push(new R(t,e)),1!==O.length||A||C(B)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:V,addListener:I,once:F,off:j,removeListener:L,removeAllListeners:Y,emit:z,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*U.call(H),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-W)/1e3}},G="0123456789abcdefghijklmnopqrstuvwxyz";function K(t){return G.charAt(t)}function Z(t,e){return t&e}function $(t,e){return t|e}function X(t,e){return t^e}function J(t,e){return t&~e}function Q(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 tt(t){for(var e=0;0!=t;)t&=t-1,++e;return e}var et,nt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function rt(t){var e,n,r="";for(e=0;e+3<=t.length;e+=3)n=parseInt(t.substring(e,e+3),16),r+=nt.charAt(n>>6)+nt.charAt(63&n);for(e+1==t.length?(n=parseInt(t.substring(e,e+1),16),r+=nt.charAt(n<<2)):e+2==t.length&&(n=parseInt(t.substring(e,e+2),16),r+=nt.charAt(n>>2)+nt.charAt((3&n)<<4));(3&r.length)>0;)r+="=";return r}function it(t){var e,n="",r=0,i=0;for(e=0;e<t.length&&"="!=t.charAt(e);++e){var a=nt.indexOf(t.charAt(e));a<0||(0==r?(n+=K(a>>2),i=3&a,r=1):1==r?(n+=K(i<<2|a>>4),i=15&a,r=2):2==r?(n+=K(i),n+=K(a>>2),i=3&a,r=3):(n+=K(i<<2|a>>4),n+=K(15&a),r=0))}return 1==r&&(n+=K(i<<2)),n}var at,ot=function(t){var e;if(void 0===et){var n="0123456789ABCDEF",r=" \f\n\r\t \u2028\u2029";for(et={},e=0;e<16;++e)et[n.charAt(e)]=e;for(n=n.toLowerCase(),e=10;e<16;++e)et[n.charAt(e)]=e;for(e=0;e<8;++e)et[r.charAt(e)]=-1}var i=[],a=0,o=0;for(e=0;e<t.length;++e){var s=t.charAt(e);if("="==s)break;if(-1!=(s=et[s])){if(void 0===s)throw new Error("Illegal character at offset "+e);a|=s,++o>=2?(i[i.length]=a,a=0,o=0):a<<=4}}if(o)throw new Error("Hex encoding incomplete: 4 bits missing");return i},st={decode:function(t){var e;if(void 0===at){var n="= \f\n\r\t \u2028\u2029";for(at=Object.create(null),e=0;e<64;++e)at["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e)]=e;for(at["-"]=62,at._=63,e=0;e<9;++e)at[n.charAt(e)]=-1}var r=[],i=0,a=0;for(e=0;e<t.length;++e){var o=t.charAt(e);if("="==o)break;if(-1!=(o=at[o])){if(void 0===o)throw new Error("Illegal character at offset "+e);i|=o,++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=st.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 st.decode(t)}},ut=1e13,lt=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)<ut?e=0:r-=(e=0|r/ut)*ut,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+=ut,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+=(ut+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*ut+t[n];return e},t.prototype.simplify=function(){var t=this.buf;return 1==t.length?t[0]:this},t}(),ct=/^(\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)?)?$/,ht=/^(\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 ft(t,e){return t.length>e&&(t=t.substring(0,e)+"…"),t}var dt,pt=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?ct:ht).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,o="";r==a&&++t<e;)r=this.get(t);if(0===(n=e-t))return i?-1:0;if(n>4){for(o=r,n<<=3;0==(128&(+o^a));)o=+o<<1,--n;o="("+n+" bit)\n"}i&&(r-=256);for(var s=new lt(r),u=t+1;u<e;++u)s.mulAdd(256,this.get(u));return o+s.toString()},t.prototype.parseBitString=function(t,e,n){for(var r=this.get(t),i="("+((e-t-1<<3)-r)+" bit)\n",a="",o=t+1;o<e;++o){for(var s=this.get(o),u=o==e-1?r:0,l=7;l>=u;--l)a+=s>>l&1?"1":"0";if(a.length>n)return i+ft(a,n)}return i+a},t.prototype.parseOctetString=function(t,e,n){if(this.isASCII(t,e))return ft(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 lt,a=0,o=t;o<e;++o){var s=this.get(o);if(i.mulAdd(128,127&s),a+=7,!(128&s)){if(""===r)if((i=i.simplify())instanceof lt)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 ft(r,n);i=new lt,a=0}}return a>0&&(r+=".incomplete"),r},t}(),vt=function(){function t(t,e,n,r,i){if(!(r instanceof mt))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 ft(this.stream.parseStringUTF(e,e+n),t);case 18:case 19:case 20:case 21:case 22:case 26:return ft(this.stream.parseStringISO(e,e+n),t);case 30:return ft(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 pt?e:new pt(e,0);var r=new pt(n),i=new mt(n),a=t.decodeLength(n),o=n.pos,s=o-r.pos,u=null,l=function(){var e=[];if(null!==a){for(var r=o+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 "+o)}else try{for(;;){var i=t.decode(n);if(i.tag.isEOC())break;e[e.length]=i}a=o-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 "+o);n.pos=o+Math.abs(a)}return new t(r,s,a,i,u)},t}(),mt=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 lt;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}(),gt=[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],yt=(1<<26)/gt[gt.length-1],_t=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="",o=this.t,s=this.DB-o*this.DB%e;if(o-- >0)for(s<this.DB&&(n=this[o]>>s)>0&&(i=!0,a=K(n));o>=0;)s<e?(n=(this[o]&(1<<s)-1)<<e-s,n|=this[--o]>>(s+=this.DB-e)):(n=this[o]>>(s-=e)&r,s<=0&&(s+=this.DB,--o)),n>0&&(i=!0),i&&(a+=K(n));return i?a:"0"},t.prototype.negate=function(){var e=xt();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)+Pt(this[this.t-1]^this.s&this.DM)},t.prototype.mod=function(e){var n=xt();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 wt(e):new Dt(e),this.exp(t,n)},t.prototype.clone=function(){var t=xt();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=xt();return this.bitwiseTo(t,Z,e),e},t.prototype.or=function(t){var e=xt();return this.bitwiseTo(t,$,e),e},t.prototype.xor=function(t){var e=xt();return this.bitwiseTo(t,X,e),e},t.prototype.andNot=function(t){var e=xt();return this.bitwiseTo(t,J,e),e},t.prototype.not=function(){for(var t=xt(),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=xt();return t<0?this.rShiftTo(-t,e):this.lShiftTo(t,e),e},t.prototype.shiftRight=function(t){var e=xt();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+Q(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+=tt(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.prototype.clearBit=function(t){return this.changeBit(t,J)},t.prototype.flipBit=function(t){return this.changeBit(t,X)},t.prototype.add=function(t){var e=xt();return this.addTo(t,e),e},t.prototype.subtract=function(t){var e=xt();return this.subTo(t,e),e},t.prototype.multiply=function(t){var e=xt();return this.multiplyTo(t,e),e},t.prototype.divide=function(t){var e=xt();return this.divRemTo(t,e,null),e},t.prototype.remainder=function(t){var e=xt();return this.divRemTo(t,null,e),e},t.prototype.divideAndRemainder=function(t){var e=xt(),n=xt();return this.divRemTo(t,e,n),[e,n]},t.prototype.modPow=function(t,e){var n,r,i=t.bitLength(),a=Mt(1);if(i<=0)return a;n=i<18?1:i<48?3:i<144?4:i<768?5:6,r=i<8?new wt(e):e.isEven()?new St(e):new Dt(e);var o=[],s=3,u=n-1,l=(1<<n)-1;if(o[1]=r.convert(this),n>1){var c=xt();for(r.sqrTo(o[1],c);s<=l;)o[s]=xt(),r.mulTo(c,o[s-2],o[s]),s+=2}var h,f,d=t.t-1,p=!0,v=xt();for(i=Pt(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)),s=n;0==(1&h);)h>>=1,--s;if((i-=s)<0&&(i+=this.DB,--d),p)o[h].copyTo(a),p=!1;else{for(;s>1;)r.sqrTo(a,v),r.sqrTo(v,a),s-=2;s>0?r.sqrTo(a,v):(f=a,a=v,v=f),r.mulTo(v,o[h],a)}for(;d>=0&&0==(t[d]&1<<i);)r.sqrTo(a,v),f=a,a=v,v=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=Mt(1),o=Mt(0),s=Mt(0),u=Mt(1);0!=r.signum();){for(;r.isEven();)r.rShiftTo(1,r),n?(a.isEven()&&o.isEven()||(a.addTo(this,a),o.subTo(e,o)),a.rShiftTo(1,a)):o.isEven()||o.subTo(e,o),o.rShiftTo(1,o);for(;i.isEven();)i.rShiftTo(1,i),n?(s.isEven()&&u.isEven()||(s.addTo(this,s),u.subTo(e,u)),s.rShiftTo(1,s)):u.isEven()||u.subTo(e,u),u.rShiftTo(1,u);r.compareTo(i)>=0?(r.subTo(i,r),n&&a.subTo(s,a),o.subTo(u,o)):(i.subTo(r,i),n&&s.subTo(a,s),u.subTo(o,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 bt)},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]<=gt[gt.length-1]){for(e=0;e<gt.length;++e)if(n[0]==gt[e])return!0;return!1}if(n.isEven())return!1;for(e=1;e<gt.length;){for(var r=gt[e],i=e+1;i<gt.length&&r<yt;)r*=gt[i++];for(r=n.modInt(r);e<i;)if(r%gt[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,o=0;--i>=0;){var s=8==r?255&+e[i]:At(e,i);s<0?"-"==e.charAt(i)&&(a=!0):(a=!1,0==o?this[this.t++]=s:o+r>this.DB?(this[this.t-1]|=(s&(1<<this.DB-o)-1)<<o,this[this.t++]=s>>this.DB-o):this[this.t-1]|=s<<o,(o+=r)>=this.DB&&(o-=this.DB))}8==r&&0!=(128&+e[0])&&(this.s=-1,o>0&&(this[this.t-1]|=(1<<this.DB-o)-1<<o)),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),o=this.s<<n&this.DM,s=this.t-1;s>=0;--s)e[s+a+1]=this[s]>>r|o,o=(this[s]&i)<<n;for(s=a-1;s>=0;--s)e[s]=0;e[a]=o,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 o=n+1;o<this.t;++o)e[o-n-1]|=(this[o]&a)<<i,e[o-n]=this[o]>>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=xt());var o=xt(),s=this.s,u=e.s,l=this.DB-Pt(i[i.t-1]);l>0?(i.lShiftTo(l,o),a.lShiftTo(l,r)):(i.copyTo(o),a.copyTo(r));var c=o.t,h=o[c-1];if(0!=h){var f=h*(1<<this.F1)+(c>1?o[c-2]>>this.F2:0),d=this.FV/f,p=(1<<this.F1)/f,v=1<<this.F2,m=r.t,g=m-c,y=null==n?xt():n;for(o.dlShiftTo(g,y),r.compareTo(y)>=0&&(r[r.t++]=1,r.subTo(y,r)),t.ONE.dlShiftTo(c,y),y.subTo(o,o);o.t<c;)o[o.t++]=0;for(;--g>=0;){var _=r[--m]==h?this.DM:Math.floor(r[m]*d+(r[m-1]+v)*p);if((r[m]+=o.am(0,_,r,g,0,c))<_)for(o.dlShiftTo(g,y),r.subTo(y,r);r[m]<--_;)r.subTo(y,r)}null!=n&&(r.drShiftTo(c,n),s!=u&&t.ZERO.subTo(n,n)),r.t=c,r.clamp(),l>0&&r.rShiftTo(l,r),s<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=xt(),i=xt(),a=n.convert(this),o=Pt(e)-1;for(a.copyTo(r);--o>=0;)if(n.sqrTo(r,i),(e&1<<o)>0)n.mulTo(i,a,r);else{var s=r;r=i,i=s}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=Mt(n),i=xt(),a=xt(),o="";for(this.divRemTo(r,i,a);i.signum()>0;)o=(n+a.intValue()).toString(t).substr(1)+o,i.divRemTo(r,i,a);return a.intValue().toString(t)+o},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,o=0,s=0,u=0;u<e.length;++u){var l=At(e,u);l<0?"-"==e.charAt(u)&&0==this.signum()&&(a=!0):(s=n*s+l,++o>=r&&(this.dMultiply(i),this.dAddOffset(s,0),o=0,s=0))}o>0&&(this.dMultiply(Math.pow(n,o)),this.dAddOffset(s,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),$,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)>gt.length&&(e=gt.length);for(var a=xt(),o=0;o<e;++o){a.fromInt(gt[Math.floor(Math.random()*gt.length)]);var s=a.modPow(i,this);if(0!=s.compareTo(t.ONE)&&0!=s.compareTo(n)){for(var u=1;u++<r&&0!=s.compareTo(n);)if(0==(s=s.modPowInt(2,this)).compareTo(t.ONE))return!1;if(0!=s.compareTo(n))return!1}}return!0},t.prototype.square=function(){var t=xt();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(),o=r.getLowestSetBit();if(o<0)e(n);else{a<o&&(o=a),o>0&&(n.rShiftTo(o,n),r.rShiftTo(o,r));var s=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(s,0):(o>0&&r.lShiftTo(o,r),setTimeout((function(){e(r)}),0))};setTimeout(s,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),$,this),this.isEven()&&this.dAddOffset(1,0);var a=this,o=function(){a.dAddOffset(2,0),a.bitLength()>e&&a.subTo(t.ONE.shiftLeft(e-1),a),a.isProbablePrime(n)?setTimeout((function(){i()}),0):setTimeout(o,0)};setTimeout(o,0)}else{var s=[],u=7&e;s.length=1+(e>>3),n.nextBytes(s),u>0?s[0]&=(1<<u)-1:s[0]=0,this.fromString(s,256)}},t}(),bt=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}(),wt=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}(),Dt=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=xt();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(_t.ZERO)>0&&this.m.subTo(e,e),e},t.prototype.revert=function(t){var e=xt();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}(),St=function(){function t(t){this.m=t,this.r2=xt(),this.q3=xt(),_t.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=xt();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 xt(){return new _t(null)}function Tt(t,e){return new _t(t,e)}var kt="undefined"!=typeof navigator;kt&&"Microsoft Internet Explorer"==navigator.appName?(_t.prototype.am=function(t,e,n,r,i,a){for(var o=32767&e,s=e>>15;--a>=0;){var u=32767&this[t],l=this[t++]>>15,c=s*u+l*o;i=((u=o*u+((32767&c)<<15)+n[r]+(1073741823&i))>>>30)+(c>>>15)+s*l+(i>>>30),n[r++]=1073741823&u}return i},dt=30):kt&&"Netscape"!=navigator.appName?(_t.prototype.am=function(t,e,n,r,i,a){for(;--a>=0;){var o=e*this[t++]+n[r]+i;i=Math.floor(o/67108864),n[r++]=67108863&o}return i},dt=26):(_t.prototype.am=function(t,e,n,r,i,a){for(var o=16383&e,s=e>>14;--a>=0;){var u=16383&this[t],l=this[t++]>>14,c=s*u+l*o;i=((u=o*u+((16383&c)<<14)+n[r]+i)>>28)+(c>>14)+s*l,n[r++]=268435455&u}return i},dt=28),_t.prototype.DB=dt,_t.prototype.DM=(1<<dt)-1,_t.prototype.DV=1<<dt;_t.prototype.FV=Math.pow(2,52),_t.prototype.F1=52-dt,_t.prototype.F2=2*dt-52;var Ct,Et,Ot=[];for(Ct="0".charCodeAt(0),Et=0;Et<=9;++Et)Ot[Ct++]=Et;for(Ct="a".charCodeAt(0),Et=10;Et<36;++Et)Ot[Ct++]=Et;for(Ct="A".charCodeAt(0),Et=10;Et<36;++Et)Ot[Ct++]=Et;function At(t,e){var n=Ot[t.charCodeAt(e)];return null==n?-1:n}function Mt(t){var e=xt();return e.fromInt(t),e}function Pt(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}_t.ZERO=Mt(0),_t.ONE=Mt(1);var Bt=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 Rt,Nt,Vt=null;if(null==Vt){Vt=[],Nt=0;var It=void 0;if("undefined"!=typeof window&&window.crypto&&window.crypto.getRandomValues){var Ft=new Uint32Array(256);for(window.crypto.getRandomValues(Ft),It=0;It<Ft.length;++It)Vt[Nt++]=255&Ft[It]}var jt=0,Lt=function(t){if((jt=jt||0)>=256||Nt>=256)window.removeEventListener?window.removeEventListener("mousemove",Lt,!1):window.detachEvent&&window.detachEvent("onmousemove",Lt);else try{var e=t.x+t.y;Vt[Nt++]=255&e,jt+=1}catch(t){}};"undefined"!=typeof window&&(window.addEventListener?window.addEventListener("mousemove",Lt,!1):window.attachEvent&&window.attachEvent("onmousemove",Lt))}function Yt(){if(null==Rt){for(Rt=new Bt;Nt<256;){var t=Math.floor(65536*Math.random());Vt[Nt++]=255&t}for(Rt.init(Vt),Nt=0;Nt<Vt.length;++Nt)Vt[Nt]=0;Nt=0}return Rt.next()}var zt=function(){function t(){}return t.prototype.nextBytes=function(t){for(var e=0;e<t.length;++e)t[e]=Yt()},t}();var Ht=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=Tt(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 zt,o=[];e>2;){for(o[0]=0;0==o[0];)a.nextBytes(o);n[--e]=o[0]}return n[--e]=2,n[--e]=0,new _t(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,o=0;o<2*e-a;o++)i="0"+i;return i},t.prototype.setPrivate=function(t,e,n){null!=t&&null!=e&&t.length>0&&e.length>0?(this.n=Tt(t,16),this.e=parseInt(e,16),this.d=Tt(n,16)):console.error("Invalid RSA private key")},t.prototype.setPrivateEx=function(t,e,n,r,i,a,o,s){null!=t&&null!=e&&t.length>0&&e.length>0?(this.n=Tt(t,16),this.e=parseInt(e,16),this.d=Tt(n,16),this.p=Tt(r,16),this.q=Tt(i,16),this.dmp1=Tt(a,16),this.dmq1=Tt(o,16),this.coeff=Tt(s,16)):console.error("Invalid RSA private key")},t.prototype.generate=function(t,e){var n=new zt,r=t>>1;this.e=parseInt(e,16);for(var i=new _t(e,16);;){for(;this.p=new _t(t-r,1,n),0!=this.p.subtract(_t.ONE).gcd(i).compareTo(_t.ONE)||!this.p.isProbablePrime(10););for(;this.q=new _t(r,1,n),0!=this.q.subtract(_t.ONE).gcd(i).compareTo(_t.ONE)||!this.q.isProbablePrime(10););if(this.p.compareTo(this.q)<=0){var a=this.p;this.p=this.q,this.q=a}var o=this.p.subtract(_t.ONE),s=this.q.subtract(_t.ONE),u=o.multiply(s);if(0==u.gcd(i).compareTo(_t.ONE)){this.n=this.p.multiply(this.q),this.d=i.modInverse(u),this.dmp1=this.d.mod(o),this.dmq1=this.d.mod(s),this.coeff=this.q.modInverse(this.p);break}}},t.prototype.decrypt=function(t){var e=Tt(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 zt,i=t>>1;this.e=parseInt(e,16);var a=new _t(e,16),o=this,s=function(){var e=function(){if(o.p.compareTo(o.q)<=0){var t=o.p;o.p=o.q,o.q=t}var e=o.p.subtract(_t.ONE),r=o.q.subtract(_t.ONE),i=e.multiply(r);0==i.gcd(a).compareTo(_t.ONE)?(o.n=o.p.multiply(o.q),o.d=a.modInverse(i),o.dmp1=o.d.mod(e),o.dmq1=o.d.mod(r),o.coeff=o.q.modInverse(o.p),setTimeout((function(){n()}),0)):setTimeout(s,0)},u=function(){o.q=xt(),o.q.fromNumberAsync(i,1,r,(function(){o.q.subtract(_t.ONE).gcda(a,(function(t){0==t.compareTo(_t.ONE)&&o.q.isProbablePrime(10)?setTimeout(e,0):setTimeout(u,0)}))}))},l=function(){o.p=xt(),o.p.fromNumberAsync(t-i,1,r,(function(){o.p.subtract(_t.ONE).gcda(a,(function(t){0==t.compareTo(_t.ONE)&&o.p.isProbablePrime(10)?setTimeout(u,0):setTimeout(l,0)}))}))};setTimeout(l,0)};setTimeout(s,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 Tt("0001"+r+"00"+t,16)}((Ut[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=Tt(e,16),i=this.doPublic(r);return null==i?null:function(t){for(var e in Ut)if(Ut.hasOwnProperty(e)){var n=Ut[e],r=n.length;if(t.substr(0,r)==n)return t.substr(r)}return t}
3
+ r.version="2.29.4",i($n),r.fn=la,r.min=tr,r.max=er,r.now=nr,r.utc=v,r.unix=ca,r.months=ga,r.isDate=f,r.locale=mn,r.invalid=_,r.duration=Or,r.isMoment=x,r.weekdays=_a,r.parseZone=ha,r.localeData=_n,r.isDuration=ur,r.monthsShort=ya,r.weekdaysMin=wa,r.defineLocale=gn,r.updateLocale=yn,r.locales=bn,r.weekdaysShort=ba,r.normalizeUnits=it,r.relativeTimeRounding=io,r.relativeTimeThreshold=ao,r.calendarFormat=zr,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,toPage: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"},{des:"手机号",key:2001,mapField:"U_PHONE",mapping:"-",model:"2",name:"U_PHONE",value:""},{des:"用户省",key:2002,mapField:"U_PROVINCE",mapping:"-",model:"2",name:"U_PROVINCE",value:""},{des:"用户市",key:2003,mapField:"U_CITY",mapping:"-",model:"2",name:"U_CITY",value:""},{des:"用户区县",key:2004,mapField:"U_COUNTY",mapping:"-",model:"2",name:"U_COUNTY",value:""}],historyFlag:!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 o(t){try{u(r.next(t))}catch(t){a(t)}}function s(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(o,s)}u((r=r.apply(t,e||[])).next())}))}function p(t,e){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=e.call(t,o)}catch(t){s=[6,t],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}}function v(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))}"function"==typeof SuppressedError&&SuppressedError;var m={createItem:function(t){t.catch={selectd:i.default.cloneDeep(t.selectd),list:i.default.cloneDeep(t.list)}},resetData:function(t,e){if(t.historyFlag){var n=i.default.cloneDeep(e);t.selected=n.selected,t.list=n.list}},execute:function(t){t.historyFlag&&(t.undoRedoPointer===t.undos.length-1?(t.undos.length>5&&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.historyFlag&&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.historyFlag&&t.undoRedoPointer>=0&&t.undoRedoPointer<t.undos.length){t.undoRedoPointer=t.undoRedoPointer+1;var e=t.undos[t.undoRedoPointer];this.commit("GoCom/resetData",e)}},switchHistoryFlag:function(t){t.historyFlag=!t.historyFlag,t.historyFlag||(t.undos=[],t.undoRedoPointer=-1)}},g=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(g);function _(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(s),n.removeEventListener("message",o),n.terminate(),n=null},o=function(t){var e=t.data,n=e.code,o=e.result,s=e.err;a(),1===n?r(o):i(s)};n.postMessage({code:t}),n.addEventListener("message",o);var s=setTimeout((function(){a(),i("timeout")}),e)}))]}))}))}function b(t,e,n,r,a){return d(this,void 0,void 0,(function(){var n,a,o,s,u,l,c;return p(this,(function(h){switch(h.label){case 0:if(n=t,a=i.default.cloneDeep(e),o=a.use,s=a.data,!o)return[3,4];l=function(t){var e,a;return p(this,(function(o){switch(o.label){case 0:return s[t].use?(e=s[t].dependVars,a={},r&&a&&e&&e.length&&e.map((function(t){var e=i.default.cloneDeep(r).filter((function(e){var n=e.mapField==t;return n&&(a[t]=e.value),n}));e&&0!=e.length||(a[t]="")})),[4,w(s[t].code,n,a)]):[3,2];case 1:u=o.sent(),n=u.data,o.label=2;case 2:return[2]}}))},c=0,h.label=1;case 1:return c<s.length?[5,l(c)]:[3,4];case 2:h.sent(),h.label=3;case 3:return c++,[3,1];case 4:return[2,n]}}))}))}function w(t,e,n){return void 0===n&&(n={}),d(this,void 0,void 0,(function(){var r,a,o,s,u,l;return p(this,(function(c){switch(c.label){case 0:return c.trys.push([0,2,,3]),r=i.default.cloneDeep(e),s=(a=[r,n,""])[1],u=a[2],"object"==typeof(o=a[0])&&(o=JSON.stringify(r)),"object"==typeof n&&(s=JSON.stringify(n)),Object.keys(n).forEach((function(t){return u+="".concat(t,",")})),l="let data=eval(".concat(o,"); "),l+=u?"let {".concat(u,"} = eval(").concat(s,"); "):"",[4,_(l+="".concat(t))];case 1:return[2,{success:!0,data:c.sent()}];case 2:return[2,{success:!1,error:c.sent(),data:e}];case 3:return[2]}}))}))}var D="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function S(){throw new Error("setTimeout has not been defined")}function x(){throw new Error("clearTimeout has not been defined")}var T=S,k=x;function C(t){if(T===setTimeout)return setTimeout(t,0);if((T===S||!T)&&setTimeout)return T=setTimeout,setTimeout(t,0);try{return T(t,0)}catch(e){try{return T.call(null,t,0)}catch(e){return T.call(this,t,0)}}}"function"==typeof D.setTimeout&&(T=setTimeout),"function"==typeof D.clearTimeout&&(k=clearTimeout);var E,O=[],A=!1,M=-1;function P(){A&&E&&(A=!1,E.length?O=E.concat(O):M=-1,O.length&&B())}function B(){if(!A){var t=C(P);A=!0;for(var e=O.length;e;){for(E=O,O=[];++M<e;)E&&E[M].run();M=-1,e=O.length}E=null,A=!1,function(t){if(k===clearTimeout)return clearTimeout(t);if((k===x||!k)&&clearTimeout)return k=clearTimeout,clearTimeout(t);try{return k(t)}catch(e){try{return k.call(null,t)}catch(e){return k.call(this,t)}}}(t)}}function R(t,e){this.fun=t,this.array=e}R.prototype.run=function(){this.fun.apply(null,this.array)};function N(){}var V=N,I=N,F=N,j=N,L=N,Y=N,z=N;var H=D.performance||{},U=H.now||H.mozNow||H.msNow||H.oNow||H.webkitNow||function(){return(new Date).getTime()};var W=new Date;var q={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];O.push(new R(t,e)),1!==O.length||A||C(B)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:V,addListener:I,once:F,off:j,removeListener:L,removeAllListeners:Y,emit:z,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*U.call(H),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-W)/1e3}},G="0123456789abcdefghijklmnopqrstuvwxyz";function K(t){return G.charAt(t)}function Z(t,e){return t&e}function $(t,e){return t|e}function X(t,e){return t^e}function J(t,e){return t&~e}function Q(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 tt(t){for(var e=0;0!=t;)t&=t-1,++e;return e}var et,nt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function rt(t){var e,n,r="";for(e=0;e+3<=t.length;e+=3)n=parseInt(t.substring(e,e+3),16),r+=nt.charAt(n>>6)+nt.charAt(63&n);for(e+1==t.length?(n=parseInt(t.substring(e,e+1),16),r+=nt.charAt(n<<2)):e+2==t.length&&(n=parseInt(t.substring(e,e+2),16),r+=nt.charAt(n>>2)+nt.charAt((3&n)<<4));(3&r.length)>0;)r+="=";return r}function it(t){var e,n="",r=0,i=0;for(e=0;e<t.length&&"="!=t.charAt(e);++e){var a=nt.indexOf(t.charAt(e));a<0||(0==r?(n+=K(a>>2),i=3&a,r=1):1==r?(n+=K(i<<2|a>>4),i=15&a,r=2):2==r?(n+=K(i),n+=K(a>>2),i=3&a,r=3):(n+=K(i<<2|a>>4),n+=K(15&a),r=0))}return 1==r&&(n+=K(i<<2)),n}var at,ot=function(t){var e;if(void 0===et){var n="0123456789ABCDEF",r=" \f\n\r\t \u2028\u2029";for(et={},e=0;e<16;++e)et[n.charAt(e)]=e;for(n=n.toLowerCase(),e=10;e<16;++e)et[n.charAt(e)]=e;for(e=0;e<8;++e)et[r.charAt(e)]=-1}var i=[],a=0,o=0;for(e=0;e<t.length;++e){var s=t.charAt(e);if("="==s)break;if(-1!=(s=et[s])){if(void 0===s)throw new Error("Illegal character at offset "+e);a|=s,++o>=2?(i[i.length]=a,a=0,o=0):a<<=4}}if(o)throw new Error("Hex encoding incomplete: 4 bits missing");return i},st={decode:function(t){var e;if(void 0===at){var n="= \f\n\r\t \u2028\u2029";for(at=Object.create(null),e=0;e<64;++e)at["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e)]=e;for(at["-"]=62,at._=63,e=0;e<9;++e)at[n.charAt(e)]=-1}var r=[],i=0,a=0;for(e=0;e<t.length;++e){var o=t.charAt(e);if("="==o)break;if(-1!=(o=at[o])){if(void 0===o)throw new Error("Illegal character at offset "+e);i|=o,++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=st.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 st.decode(t)}},ut=1e13,lt=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)<ut?e=0:r-=(e=0|r/ut)*ut,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+=ut,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+=(ut+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*ut+t[n];return e},t.prototype.simplify=function(){var t=this.buf;return 1==t.length?t[0]:this},t}(),ct=/^(\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)?)?$/,ht=/^(\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 ft(t,e){return t.length>e&&(t=t.substring(0,e)+"…"),t}var dt,pt=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?ct:ht).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,o="";r==a&&++t<e;)r=this.get(t);if(0===(n=e-t))return i?-1:0;if(n>4){for(o=r,n<<=3;0==(128&(+o^a));)o=+o<<1,--n;o="("+n+" bit)\n"}i&&(r-=256);for(var s=new lt(r),u=t+1;u<e;++u)s.mulAdd(256,this.get(u));return o+s.toString()},t.prototype.parseBitString=function(t,e,n){for(var r=this.get(t),i="("+((e-t-1<<3)-r)+" bit)\n",a="",o=t+1;o<e;++o){for(var s=this.get(o),u=o==e-1?r:0,l=7;l>=u;--l)a+=s>>l&1?"1":"0";if(a.length>n)return i+ft(a,n)}return i+a},t.prototype.parseOctetString=function(t,e,n){if(this.isASCII(t,e))return ft(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 lt,a=0,o=t;o<e;++o){var s=this.get(o);if(i.mulAdd(128,127&s),a+=7,!(128&s)){if(""===r)if((i=i.simplify())instanceof lt)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 ft(r,n);i=new lt,a=0}}return a>0&&(r+=".incomplete"),r},t}(),vt=function(){function t(t,e,n,r,i){if(!(r instanceof mt))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 ft(this.stream.parseStringUTF(e,e+n),t);case 18:case 19:case 20:case 21:case 22:case 26:return ft(this.stream.parseStringISO(e,e+n),t);case 30:return ft(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 pt?e:new pt(e,0);var r=new pt(n),i=new mt(n),a=t.decodeLength(n),o=n.pos,s=o-r.pos,u=null,l=function(){var e=[];if(null!==a){for(var r=o+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 "+o)}else try{for(;;){var i=t.decode(n);if(i.tag.isEOC())break;e[e.length]=i}a=o-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 "+o);n.pos=o+Math.abs(a)}return new t(r,s,a,i,u)},t}(),mt=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 lt;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}(),gt=[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],yt=(1<<26)/gt[gt.length-1],_t=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="",o=this.t,s=this.DB-o*this.DB%e;if(o-- >0)for(s<this.DB&&(n=this[o]>>s)>0&&(i=!0,a=K(n));o>=0;)s<e?(n=(this[o]&(1<<s)-1)<<e-s,n|=this[--o]>>(s+=this.DB-e)):(n=this[o]>>(s-=e)&r,s<=0&&(s+=this.DB,--o)),n>0&&(i=!0),i&&(a+=K(n));return i?a:"0"},t.prototype.negate=function(){var e=xt();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)+Pt(this[this.t-1]^this.s&this.DM)},t.prototype.mod=function(e){var n=xt();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 wt(e):new Dt(e),this.exp(t,n)},t.prototype.clone=function(){var t=xt();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=xt();return this.bitwiseTo(t,Z,e),e},t.prototype.or=function(t){var e=xt();return this.bitwiseTo(t,$,e),e},t.prototype.xor=function(t){var e=xt();return this.bitwiseTo(t,X,e),e},t.prototype.andNot=function(t){var e=xt();return this.bitwiseTo(t,J,e),e},t.prototype.not=function(){for(var t=xt(),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=xt();return t<0?this.rShiftTo(-t,e):this.lShiftTo(t,e),e},t.prototype.shiftRight=function(t){var e=xt();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+Q(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+=tt(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.prototype.clearBit=function(t){return this.changeBit(t,J)},t.prototype.flipBit=function(t){return this.changeBit(t,X)},t.prototype.add=function(t){var e=xt();return this.addTo(t,e),e},t.prototype.subtract=function(t){var e=xt();return this.subTo(t,e),e},t.prototype.multiply=function(t){var e=xt();return this.multiplyTo(t,e),e},t.prototype.divide=function(t){var e=xt();return this.divRemTo(t,e,null),e},t.prototype.remainder=function(t){var e=xt();return this.divRemTo(t,null,e),e},t.prototype.divideAndRemainder=function(t){var e=xt(),n=xt();return this.divRemTo(t,e,n),[e,n]},t.prototype.modPow=function(t,e){var n,r,i=t.bitLength(),a=Mt(1);if(i<=0)return a;n=i<18?1:i<48?3:i<144?4:i<768?5:6,r=i<8?new wt(e):e.isEven()?new St(e):new Dt(e);var o=[],s=3,u=n-1,l=(1<<n)-1;if(o[1]=r.convert(this),n>1){var c=xt();for(r.sqrTo(o[1],c);s<=l;)o[s]=xt(),r.mulTo(c,o[s-2],o[s]),s+=2}var h,f,d=t.t-1,p=!0,v=xt();for(i=Pt(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)),s=n;0==(1&h);)h>>=1,--s;if((i-=s)<0&&(i+=this.DB,--d),p)o[h].copyTo(a),p=!1;else{for(;s>1;)r.sqrTo(a,v),r.sqrTo(v,a),s-=2;s>0?r.sqrTo(a,v):(f=a,a=v,v=f),r.mulTo(v,o[h],a)}for(;d>=0&&0==(t[d]&1<<i);)r.sqrTo(a,v),f=a,a=v,v=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=Mt(1),o=Mt(0),s=Mt(0),u=Mt(1);0!=r.signum();){for(;r.isEven();)r.rShiftTo(1,r),n?(a.isEven()&&o.isEven()||(a.addTo(this,a),o.subTo(e,o)),a.rShiftTo(1,a)):o.isEven()||o.subTo(e,o),o.rShiftTo(1,o);for(;i.isEven();)i.rShiftTo(1,i),n?(s.isEven()&&u.isEven()||(s.addTo(this,s),u.subTo(e,u)),s.rShiftTo(1,s)):u.isEven()||u.subTo(e,u),u.rShiftTo(1,u);r.compareTo(i)>=0?(r.subTo(i,r),n&&a.subTo(s,a),o.subTo(u,o)):(i.subTo(r,i),n&&s.subTo(a,s),u.subTo(o,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 bt)},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]<=gt[gt.length-1]){for(e=0;e<gt.length;++e)if(n[0]==gt[e])return!0;return!1}if(n.isEven())return!1;for(e=1;e<gt.length;){for(var r=gt[e],i=e+1;i<gt.length&&r<yt;)r*=gt[i++];for(r=n.modInt(r);e<i;)if(r%gt[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,o=0;--i>=0;){var s=8==r?255&+e[i]:At(e,i);s<0?"-"==e.charAt(i)&&(a=!0):(a=!1,0==o?this[this.t++]=s:o+r>this.DB?(this[this.t-1]|=(s&(1<<this.DB-o)-1)<<o,this[this.t++]=s>>this.DB-o):this[this.t-1]|=s<<o,(o+=r)>=this.DB&&(o-=this.DB))}8==r&&0!=(128&+e[0])&&(this.s=-1,o>0&&(this[this.t-1]|=(1<<this.DB-o)-1<<o)),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),o=this.s<<n&this.DM,s=this.t-1;s>=0;--s)e[s+a+1]=this[s]>>r|o,o=(this[s]&i)<<n;for(s=a-1;s>=0;--s)e[s]=0;e[a]=o,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 o=n+1;o<this.t;++o)e[o-n-1]|=(this[o]&a)<<i,e[o-n]=this[o]>>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=xt());var o=xt(),s=this.s,u=e.s,l=this.DB-Pt(i[i.t-1]);l>0?(i.lShiftTo(l,o),a.lShiftTo(l,r)):(i.copyTo(o),a.copyTo(r));var c=o.t,h=o[c-1];if(0!=h){var f=h*(1<<this.F1)+(c>1?o[c-2]>>this.F2:0),d=this.FV/f,p=(1<<this.F1)/f,v=1<<this.F2,m=r.t,g=m-c,y=null==n?xt():n;for(o.dlShiftTo(g,y),r.compareTo(y)>=0&&(r[r.t++]=1,r.subTo(y,r)),t.ONE.dlShiftTo(c,y),y.subTo(o,o);o.t<c;)o[o.t++]=0;for(;--g>=0;){var _=r[--m]==h?this.DM:Math.floor(r[m]*d+(r[m-1]+v)*p);if((r[m]+=o.am(0,_,r,g,0,c))<_)for(o.dlShiftTo(g,y),r.subTo(y,r);r[m]<--_;)r.subTo(y,r)}null!=n&&(r.drShiftTo(c,n),s!=u&&t.ZERO.subTo(n,n)),r.t=c,r.clamp(),l>0&&r.rShiftTo(l,r),s<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=xt(),i=xt(),a=n.convert(this),o=Pt(e)-1;for(a.copyTo(r);--o>=0;)if(n.sqrTo(r,i),(e&1<<o)>0)n.mulTo(i,a,r);else{var s=r;r=i,i=s}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=Mt(n),i=xt(),a=xt(),o="";for(this.divRemTo(r,i,a);i.signum()>0;)o=(n+a.intValue()).toString(t).substr(1)+o,i.divRemTo(r,i,a);return a.intValue().toString(t)+o},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,o=0,s=0,u=0;u<e.length;++u){var l=At(e,u);l<0?"-"==e.charAt(u)&&0==this.signum()&&(a=!0):(s=n*s+l,++o>=r&&(this.dMultiply(i),this.dAddOffset(s,0),o=0,s=0))}o>0&&(this.dMultiply(Math.pow(n,o)),this.dAddOffset(s,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),$,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)>gt.length&&(e=gt.length);for(var a=xt(),o=0;o<e;++o){a.fromInt(gt[Math.floor(Math.random()*gt.length)]);var s=a.modPow(i,this);if(0!=s.compareTo(t.ONE)&&0!=s.compareTo(n)){for(var u=1;u++<r&&0!=s.compareTo(n);)if(0==(s=s.modPowInt(2,this)).compareTo(t.ONE))return!1;if(0!=s.compareTo(n))return!1}}return!0},t.prototype.square=function(){var t=xt();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(),o=r.getLowestSetBit();if(o<0)e(n);else{a<o&&(o=a),o>0&&(n.rShiftTo(o,n),r.rShiftTo(o,r));var s=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(s,0):(o>0&&r.lShiftTo(o,r),setTimeout((function(){e(r)}),0))};setTimeout(s,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),$,this),this.isEven()&&this.dAddOffset(1,0);var a=this,o=function(){a.dAddOffset(2,0),a.bitLength()>e&&a.subTo(t.ONE.shiftLeft(e-1),a),a.isProbablePrime(n)?setTimeout((function(){i()}),0):setTimeout(o,0)};setTimeout(o,0)}else{var s=[],u=7&e;s.length=1+(e>>3),n.nextBytes(s),u>0?s[0]&=(1<<u)-1:s[0]=0,this.fromString(s,256)}},t}(),bt=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}(),wt=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}(),Dt=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=xt();return t.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),t.s<0&&e.compareTo(_t.ZERO)>0&&this.m.subTo(e,e),e},t.prototype.revert=function(t){var e=xt();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}(),St=function(){function t(t){this.m=t,this.r2=xt(),this.q3=xt(),_t.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=xt();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 xt(){return new _t(null)}function Tt(t,e){return new _t(t,e)}var kt="undefined"!=typeof navigator;kt&&"Microsoft Internet Explorer"==navigator.appName?(_t.prototype.am=function(t,e,n,r,i,a){for(var o=32767&e,s=e>>15;--a>=0;){var u=32767&this[t],l=this[t++]>>15,c=s*u+l*o;i=((u=o*u+((32767&c)<<15)+n[r]+(1073741823&i))>>>30)+(c>>>15)+s*l+(i>>>30),n[r++]=1073741823&u}return i},dt=30):kt&&"Netscape"!=navigator.appName?(_t.prototype.am=function(t,e,n,r,i,a){for(;--a>=0;){var o=e*this[t++]+n[r]+i;i=Math.floor(o/67108864),n[r++]=67108863&o}return i},dt=26):(_t.prototype.am=function(t,e,n,r,i,a){for(var o=16383&e,s=e>>14;--a>=0;){var u=16383&this[t],l=this[t++]>>14,c=s*u+l*o;i=((u=o*u+((16383&c)<<14)+n[r]+i)>>28)+(c>>14)+s*l,n[r++]=268435455&u}return i},dt=28),_t.prototype.DB=dt,_t.prototype.DM=(1<<dt)-1,_t.prototype.DV=1<<dt;_t.prototype.FV=Math.pow(2,52),_t.prototype.F1=52-dt,_t.prototype.F2=2*dt-52;var Ct,Et,Ot=[];for(Ct="0".charCodeAt(0),Et=0;Et<=9;++Et)Ot[Ct++]=Et;for(Ct="a".charCodeAt(0),Et=10;Et<36;++Et)Ot[Ct++]=Et;for(Ct="A".charCodeAt(0),Et=10;Et<36;++Et)Ot[Ct++]=Et;function At(t,e){var n=Ot[t.charCodeAt(e)];return null==n?-1:n}function Mt(t){var e=xt();return e.fromInt(t),e}function Pt(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}_t.ZERO=Mt(0),_t.ONE=Mt(1);var Bt=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 Rt,Nt,Vt=null;if(null==Vt){Vt=[],Nt=0;var It=void 0;if("undefined"!=typeof window&&window.crypto&&window.crypto.getRandomValues){var Ft=new Uint32Array(256);for(window.crypto.getRandomValues(Ft),It=0;It<Ft.length;++It)Vt[Nt++]=255&Ft[It]}var jt=0,Lt=function(t){if((jt=jt||0)>=256||Nt>=256)window.removeEventListener?window.removeEventListener("mousemove",Lt,!1):window.detachEvent&&window.detachEvent("onmousemove",Lt);else try{var e=t.x+t.y;Vt[Nt++]=255&e,jt+=1}catch(t){}};"undefined"!=typeof window&&(window.addEventListener?window.addEventListener("mousemove",Lt,!1):window.attachEvent&&window.attachEvent("onmousemove",Lt))}function Yt(){if(null==Rt){for(Rt=new Bt;Nt<256;){var t=Math.floor(65536*Math.random());Vt[Nt++]=255&t}for(Rt.init(Vt),Nt=0;Nt<Vt.length;++Nt)Vt[Nt]=0;Nt=0}return Rt.next()}var zt=function(){function t(){}return t.prototype.nextBytes=function(t){for(var e=0;e<t.length;++e)t[e]=Yt()},t}();var Ht=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=Tt(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 zt,o=[];e>2;){for(o[0]=0;0==o[0];)a.nextBytes(o);n[--e]=o[0]}return n[--e]=2,n[--e]=0,new _t(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,o=0;o<2*e-a;o++)i="0"+i;return i},t.prototype.setPrivate=function(t,e,n){null!=t&&null!=e&&t.length>0&&e.length>0?(this.n=Tt(t,16),this.e=parseInt(e,16),this.d=Tt(n,16)):console.error("Invalid RSA private key")},t.prototype.setPrivateEx=function(t,e,n,r,i,a,o,s){null!=t&&null!=e&&t.length>0&&e.length>0?(this.n=Tt(t,16),this.e=parseInt(e,16),this.d=Tt(n,16),this.p=Tt(r,16),this.q=Tt(i,16),this.dmp1=Tt(a,16),this.dmq1=Tt(o,16),this.coeff=Tt(s,16)):console.error("Invalid RSA private key")},t.prototype.generate=function(t,e){var n=new zt,r=t>>1;this.e=parseInt(e,16);for(var i=new _t(e,16);;){for(;this.p=new _t(t-r,1,n),0!=this.p.subtract(_t.ONE).gcd(i).compareTo(_t.ONE)||!this.p.isProbablePrime(10););for(;this.q=new _t(r,1,n),0!=this.q.subtract(_t.ONE).gcd(i).compareTo(_t.ONE)||!this.q.isProbablePrime(10););if(this.p.compareTo(this.q)<=0){var a=this.p;this.p=this.q,this.q=a}var o=this.p.subtract(_t.ONE),s=this.q.subtract(_t.ONE),u=o.multiply(s);if(0==u.gcd(i).compareTo(_t.ONE)){this.n=this.p.multiply(this.q),this.d=i.modInverse(u),this.dmp1=this.d.mod(o),this.dmq1=this.d.mod(s),this.coeff=this.q.modInverse(this.p);break}}},t.prototype.decrypt=function(t){var e=Tt(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 zt,i=t>>1;this.e=parseInt(e,16);var a=new _t(e,16),o=this,s=function(){var e=function(){if(o.p.compareTo(o.q)<=0){var t=o.p;o.p=o.q,o.q=t}var e=o.p.subtract(_t.ONE),r=o.q.subtract(_t.ONE),i=e.multiply(r);0==i.gcd(a).compareTo(_t.ONE)?(o.n=o.p.multiply(o.q),o.d=a.modInverse(i),o.dmp1=o.d.mod(e),o.dmq1=o.d.mod(r),o.coeff=o.q.modInverse(o.p),setTimeout((function(){n()}),0)):setTimeout(s,0)},u=function(){o.q=xt(),o.q.fromNumberAsync(i,1,r,(function(){o.q.subtract(_t.ONE).gcda(a,(function(t){0==t.compareTo(_t.ONE)&&o.q.isProbablePrime(10)?setTimeout(e,0):setTimeout(u,0)}))}))},l=function(){o.p=xt(),o.p.fromNumberAsync(t-i,1,r,(function(){o.p.subtract(_t.ONE).gcda(a,(function(t){0==t.compareTo(_t.ONE)&&o.p.isProbablePrime(10)?setTimeout(u,0):setTimeout(l,0)}))}))};setTimeout(l,0)};setTimeout(s,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 Tt("0001"+r+"00"+t,16)}((Ut[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=Tt(e,16),i=this.doPublic(r);return null==i?null:function(t){for(var e in Ut)if(Ut.hasOwnProperty(e)){var n=Ut[e],r=n.length;if(t.substr(0,r)==n)return t.substr(r)}return t}
4
4
  /*!
5
5
  Copyright (c) 2011, Yahoo! Inc. All rights reserved.
6
6
  Code licensed under the BSD License:
@@ -29,7 +29,7 @@ function(t){var e=n,r=e.lib,i=r.WordArray,a=r.Hasher,o=e.algo,s=i.create([0,1,2,
29
29
  * derived from CryptoJS.mode.CTR
30
30
  * Jan Hruby jhruby.web@gmail.com
31
31
  */
32
- (n=Qt).mode.CTRGladman=function(){var t=n.lib.BlockCipherMode.extend();function e(t){if(255==(t>>24&255)){var e=t>>16&255,n=t>>8&255,r=255&t;255===e?(e=0,255===n?(n=0,255===r?r=0:++r):++n):++e,t=0,t+=e<<16,t+=n<<8,t+=r}else t+=1<<24;return t}function r(t){return 0===(t[0]=e(t[0]))&&(t[1]=e(t[1])),t}var i=t.Encryptor=t.extend({processBlock:function(t,e){var n=this._cipher,i=n.blockSize,a=this._iv,o=this._counter;a&&(o=this._counter=a.slice(0),this._iv=void 0),r(o);var s=o.slice(0);n.encryptBlock(s,0);for(var u=0;u<i;u++)t[e+u]^=s[u]}});return t.Decryptor=i,t}(),n.mode.CTRGladman)})),u((function(t,e){var n,r,i;t.exports=((i=Qt).mode.OFB=(n=i.lib.BlockCipherMode.extend(),r=n.Encryptor=n.extend({processBlock:function(t,e){var n=this._cipher,r=n.blockSize,i=this._iv,a=this._keystream;i&&(a=this._keystream=i.slice(0),this._iv=void 0),n.encryptBlock(a,0);for(var o=0;o<r;o++)t[e+o]^=a[o]}}),n.Decryptor=r,n),i.mode.OFB)})),u((function(t,e){var n,r;t.exports=((r=Qt).mode.ECB=((n=r.lib.BlockCipherMode.extend()).Encryptor=n.extend({processBlock:function(t,e){this._cipher.encryptBlock(t,e)}}),n.Decryptor=n.extend({processBlock:function(t,e){this._cipher.decryptBlock(t,e)}}),n),r.mode.ECB)})),u((function(t,e){var n;t.exports=((n=Qt).pad.AnsiX923={pad:function(t,e){var n=t.sigBytes,r=4*e,i=r-n%r,a=n+i-1;t.clamp(),t.words[a>>>2]|=i<<24-a%4*8,t.sigBytes+=i},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},n.pad.Ansix923)})),u((function(t,e){var n;t.exports=((n=Qt).pad.Iso10126={pad:function(t,e){var r=4*e,i=r-t.sigBytes%r;t.concat(n.lib.WordArray.random(i-1)).concat(n.lib.WordArray.create([i<<24],1))},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},n.pad.Iso10126)})),u((function(t,e){var n;t.exports=((n=Qt).pad.Iso97971={pad:function(t,e){t.concat(n.lib.WordArray.create([2147483648],1)),n.pad.ZeroPadding.pad(t,e)},unpad:function(t){n.pad.ZeroPadding.unpad(t),t.sigBytes--}},n.pad.Iso97971)})),u((function(t,e){var n;t.exports=((n=Qt).pad.ZeroPadding={pad:function(t,e){var n=4*e;t.clamp(),t.sigBytes+=n-(t.sigBytes%n||n)},unpad:function(t){var e=t.words,n=t.sigBytes-1;for(n=t.sigBytes-1;n>=0;n--)if(e[n>>>2]>>>24-n%4*8&255){t.sigBytes=n+1;break}}},n.pad.ZeroPadding)})),u((function(t,e){var n;t.exports=((n=Qt).pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding)})),u((function(t,e){var n;t.exports=(n=Qt,function(t){var e=n,r=e.lib.CipherParams,i=e.enc.Hex;e.format.Hex={stringify:function(t){return t.ciphertext.toString(i)},parse:function(t){var e=i.parse(t);return r.create({ciphertext:e})}}}(),n.format.Hex)})),u((function(t,e){var n;t.exports=(n=Qt,function(){var t=n,e=t.lib.BlockCipher,r=t.algo,i=[],a=[],o=[],s=[],u=[],l=[],c=[],h=[],f=[],d=[];!function(){for(var t=[],e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;var n=0,r=0;for(e=0;e<256;e++){var p=r^r<<1^r<<2^r<<3^r<<4;p=p>>>8^255&p^99,i[n]=p,a[p]=n;var v=t[n],m=t[v],g=t[m],y=257*t[p]^16843008*p;o[n]=y<<24|y>>>8,s[n]=y<<16|y>>>16,u[n]=y<<8|y>>>24,l[n]=y,y=16843009*g^65537*m^257*v^16843008*n,c[p]=y<<24|y>>>8,h[p]=y<<16|y>>>16,f[p]=y<<8|y>>>24,d[p]=y,n?(n=v^t[t[t[g^v]]],r^=t[t[r]]):n=r=1}}();var p=[0,1,2,4,8,16,32,64,128,27,54],v=r.AES=e.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var t=this._keyPriorReset=this._key,e=t.words,n=t.sigBytes/4,r=4*((this._nRounds=n+6)+1),a=this._keySchedule=[],o=0;o<r;o++)o<n?a[o]=e[o]:(l=a[o-1],o%n?n>6&&o%n==4&&(l=i[l>>>24]<<24|i[l>>>16&255]<<16|i[l>>>8&255]<<8|i[255&l]):(l=i[(l=l<<8|l>>>24)>>>24]<<24|i[l>>>16&255]<<16|i[l>>>8&255]<<8|i[255&l],l^=p[o/n|0]<<24),a[o]=a[o-n]^l);for(var s=this._invKeySchedule=[],u=0;u<r;u++){if(o=r-u,u%4)var l=a[o];else l=a[o-4];s[u]=u<4||o<=4?l:c[i[l>>>24]]^h[i[l>>>16&255]]^f[i[l>>>8&255]]^d[i[255&l]]}}},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,o,s,u,l,i)},decryptBlock:function(t,e){var n=t[e+1];t[e+1]=t[e+3],t[e+3]=n,this._doCryptBlock(t,e,this._invKeySchedule,c,h,f,d,a),n=t[e+1],t[e+1]=t[e+3],t[e+3]=n},_doCryptBlock:function(t,e,n,r,i,a,o,s){for(var u=this._nRounds,l=t[e]^n[0],c=t[e+1]^n[1],h=t[e+2]^n[2],f=t[e+3]^n[3],d=4,p=1;p<u;p++){var v=r[l>>>24]^i[c>>>16&255]^a[h>>>8&255]^o[255&f]^n[d++],m=r[c>>>24]^i[h>>>16&255]^a[f>>>8&255]^o[255&l]^n[d++],g=r[h>>>24]^i[f>>>16&255]^a[l>>>8&255]^o[255&c]^n[d++],y=r[f>>>24]^i[l>>>16&255]^a[c>>>8&255]^o[255&h]^n[d++];l=v,c=m,h=g,f=y}v=(s[l>>>24]<<24|s[c>>>16&255]<<16|s[h>>>8&255]<<8|s[255&f])^n[d++],m=(s[c>>>24]<<24|s[h>>>16&255]<<16|s[f>>>8&255]<<8|s[255&l])^n[d++],g=(s[h>>>24]<<24|s[f>>>16&255]<<16|s[l>>>8&255]<<8|s[255&c])^n[d++],y=(s[f>>>24]<<24|s[l>>>16&255]<<16|s[c>>>8&255]<<8|s[255&h])^n[d++],t[e]=v,t[e+1]=m,t[e+2]=g,t[e+3]=y},keySize:8});t.AES=e._createHelper(v)}(),n.AES)})),u((function(t,e){var n;t.exports=(n=Qt,function(){var t=n,e=t.lib,r=e.WordArray,i=e.BlockCipher,a=t.algo,o=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],u=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],l=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],c=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],h=a.DES=i.extend({_doReset:function(){for(var t=this._key.words,e=[],n=0;n<56;n++){var r=o[n]-1;e[n]=t[r>>>5]>>>31-r%32&1}for(var i=this._subKeys=[],a=0;a<16;a++){var l=i[a]=[],c=u[a];for(n=0;n<24;n++)l[n/6|0]|=e[(s[n]-1+c)%28]<<31-n%6,l[4+(n/6|0)]|=e[28+(s[n+24]-1+c)%28]<<31-n%6;for(l[0]=l[0]<<1|l[0]>>>31,n=1;n<7;n++)l[n]=l[n]>>>4*(n-1)+3;l[7]=l[7]<<5|l[7]>>>27}var h=this._invSubKeys=[];for(n=0;n<16;n++)h[n]=i[15-n]},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._subKeys)},decryptBlock:function(t,e){this._doCryptBlock(t,e,this._invSubKeys)},_doCryptBlock:function(t,e,n){this._lBlock=t[e],this._rBlock=t[e+1],f.call(this,4,252645135),f.call(this,16,65535),d.call(this,2,858993459),d.call(this,8,16711935),f.call(this,1,1431655765);for(var r=0;r<16;r++){for(var i=n[r],a=this._lBlock,o=this._rBlock,s=0,u=0;u<8;u++)s|=l[u][((o^i[u])&c[u])>>>0];this._lBlock=o,this._rBlock=a^s}var h=this._lBlock;this._lBlock=this._rBlock,this._rBlock=h,f.call(this,1,1431655765),d.call(this,8,16711935),d.call(this,2,858993459),f.call(this,16,65535),f.call(this,4,252645135),t[e]=this._lBlock,t[e+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function f(t,e){var n=(this._lBlock>>>t^this._rBlock)&e;this._rBlock^=n,this._lBlock^=n<<t}function d(t,e){var n=(this._rBlock>>>t^this._lBlock)&e;this._lBlock^=n,this._rBlock^=n<<t}t.DES=i._createHelper(h);var p=a.TripleDES=i.extend({_doReset:function(){var t=this._key.words;if(2!==t.length&&4!==t.length&&t.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var e=t.slice(0,2),n=t.length<4?t.slice(0,2):t.slice(2,4),i=t.length<6?t.slice(0,2):t.slice(4,6);this._des1=h.createEncryptor(r.create(e)),this._des2=h.createEncryptor(r.create(n)),this._des3=h.createEncryptor(r.create(i))},encryptBlock:function(t,e){this._des1.encryptBlock(t,e),this._des2.decryptBlock(t,e),this._des3.encryptBlock(t,e)},decryptBlock:function(t,e){this._des3.decryptBlock(t,e),this._des2.encryptBlock(t,e),this._des1.decryptBlock(t,e)},keySize:6,ivSize:2,blockSize:2});t.TripleDES=i._createHelper(p)}(),n.TripleDES)})),u((function(t,e){var n;t.exports=(n=Qt,function(){var t=n,e=t.lib.StreamCipher,r=t.algo,i=r.RC4=e.extend({_doReset:function(){for(var t=this._key,e=t.words,n=t.sigBytes,r=this._S=[],i=0;i<256;i++)r[i]=i;i=0;for(var a=0;i<256;i++){var o=i%n,s=e[o>>>2]>>>24-o%4*8&255;a=(a+r[i]+s)%256;var u=r[i];r[i]=r[a],r[a]=u}this._i=this._j=0},_doProcessBlock:function(t,e){t[e]^=a.call(this)},keySize:8,ivSize:0});function a(){for(var t=this._S,e=this._i,n=this._j,r=0,i=0;i<4;i++){n=(n+t[e=(e+1)%256])%256;var a=t[e];t[e]=t[n],t[n]=a,r|=t[(t[e]+t[n])%256]<<24-8*i}return this._i=e,this._j=n,r}t.RC4=e._createHelper(i);var o=r.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var t=this.cfg.drop;t>0;t--)a.call(this)}});t.RC4Drop=e._createHelper(o)}(),n.RC4)})),u((function(t,e){var n;t.exports=(n=Qt,function(){var t=n,e=t.lib.StreamCipher,r=t.algo,i=[],a=[],o=[],s=r.Rabbit=e.extend({_doReset:function(){for(var t=this._key.words,e=this.cfg.iv,n=0;n<4;n++)t[n]=16711935&(t[n]<<8|t[n]>>>24)|4278255360&(t[n]<<24|t[n]>>>8);var r=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],i=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];for(this._b=0,n=0;n<4;n++)u.call(this);for(n=0;n<8;n++)i[n]^=r[n+4&7];if(e){var a=e.words,o=a[0],s=a[1],l=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),c=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),h=l>>>16|4294901760&c,f=c<<16|65535&l;for(i[0]^=l,i[1]^=h,i[2]^=c,i[3]^=f,i[4]^=l,i[5]^=h,i[6]^=c,i[7]^=f,n=0;n<4;n++)u.call(this)}},_doProcessBlock:function(t,e){var n=this._X;u.call(this),i[0]=n[0]^n[5]>>>16^n[3]<<16,i[1]=n[2]^n[7]>>>16^n[5]<<16,i[2]=n[4]^n[1]>>>16^n[7]<<16,i[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)i[r]=16711935&(i[r]<<8|i[r]>>>24)|4278255360&(i[r]<<24|i[r]>>>8),t[e+r]^=i[r]},blockSize:4,ivSize:2});function u(){for(var t=this._X,e=this._C,n=0;n<8;n++)a[n]=e[n];for(e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<a[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<a[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<a[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<a[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<a[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<a[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<a[6]>>>0?1:0)|0,this._b=e[7]>>>0<a[7]>>>0?1:0,n=0;n<8;n++){var r=t[n]+e[n],i=65535&r,s=r>>>16,u=((i*i>>>17)+i*s>>>15)+s*s,l=((4294901760&r)*r|0)+((65535&r)*r|0);o[n]=u^l}t[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,t[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,t[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,t[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,t[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,t[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,t[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,t[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}t.Rabbit=e._createHelper(s)}(),n.Rabbit)})),u((function(t,e){var n;t.exports=(n=Qt,function(){var t=n,e=t.lib.StreamCipher,r=t.algo,i=[],a=[],o=[],s=r.RabbitLegacy=e.extend({_doReset:function(){var t=this._key.words,e=this.cfg.iv,n=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],r=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];this._b=0;for(var i=0;i<4;i++)u.call(this);for(i=0;i<8;i++)r[i]^=n[i+4&7];if(e){var a=e.words,o=a[0],s=a[1],l=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),c=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),h=l>>>16|4294901760&c,f=c<<16|65535&l;for(r[0]^=l,r[1]^=h,r[2]^=c,r[3]^=f,r[4]^=l,r[5]^=h,r[6]^=c,r[7]^=f,i=0;i<4;i++)u.call(this)}},_doProcessBlock:function(t,e){var n=this._X;u.call(this),i[0]=n[0]^n[5]>>>16^n[3]<<16,i[1]=n[2]^n[7]>>>16^n[5]<<16,i[2]=n[4]^n[1]>>>16^n[7]<<16,i[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)i[r]=16711935&(i[r]<<8|i[r]>>>24)|4278255360&(i[r]<<24|i[r]>>>8),t[e+r]^=i[r]},blockSize:4,ivSize:2});function u(){for(var t=this._X,e=this._C,n=0;n<8;n++)a[n]=e[n];for(e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<a[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<a[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<a[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<a[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<a[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<a[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<a[6]>>>0?1:0)|0,this._b=e[7]>>>0<a[7]>>>0?1:0,n=0;n<8;n++){var r=t[n]+e[n],i=65535&r,s=r>>>16,u=((i*i>>>17)+i*s>>>15)+s*s,l=((4294901760&r)*r|0)+((65535&r)*r|0);o[n]=u^l}t[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,t[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,t[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,t[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,t[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,t[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,t[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,t[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}t.RabbitLegacy=e._createHelper(s)}(),n.RabbitLegacy)})),u((function(t,e){t.exports=Qt})));function ee(t){var e=sessionStorage.getItem(t);return e?JSON.parse(e):null}var ne=function(t,e){try{var n=e.xRatio,r=e.yRatio;return isNaN(n)||isNaN(r)?(console.error("发生错误:on updataSizeDeep in go-code "),t):(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)&&ne(null==t?void 0:t.children,e)})),t)}catch(e){return t}},re=function(t,e){var n=!0;try{for(var r=0,i=["width","height","left","top","opacity","angel","skewY","skewX","rotateX","rotateY"];r<i.length;r++){var a=i[r];if(Object.hasOwn(t,a)&&isNaN(t[a])){if(!("string"==typeof t[a]&&t[a].includes("%")||"NaN"==t[a])){console.warn(a+"--参数校验不合法:"+e),n=!1;break}n=!0}}return n}catch(t){return console.warn("参数校验不合法:"+e),!1}},ie=function(t,e,n){var r=t[n];return t.splice(n,1),t.splice(e,0,r),t},ae=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 ie(t,a,r)},oe=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 o=0;o<a.children.length;o++){if(r=o,a.children[o].cid===n){switch(e){case"up":r>=1&&ie(a.children,r-1,r);break;case"down":r<a.children.length-2&&ie(a.children,r+1,r);break;case"top":0!==r&&ie(a.children,0,r);break;case"bottom":var s=a.children.length-1;r!==s&&ie(a.children,s,r)}break}}}return t},se=function(t,e,n){var r=!1,a=function(t){for(var o=0;o<t.length;o++){if(t[o].cid==e){r=t[o],n&&i.default.remove(t,(function(t){return t.cid==e}));break}if(t[o].children)a(t[o].children);else if(t[o].dynamicChildren){if(t[o].dynamicChildren instanceof Map){for(var s=Array.from(t[o].dynamicChildren),u=0;u<s.length;u++)if(s[u]instanceof Array){var l=s[u][1];a(l)}}else if(t[o].dynamicChildren instanceof Array)for(s=t[o].dynamicChildren,u=0;u<s.length;u++)if(s[u]instanceof Array){l=s[u][1];a(l)}}else t[o].stateChildren&&a(t[o].stateChildren)}};return a(t),r||!1},ue=function(t,e){var n=[],r=function(t){for(var i=0;i<t.length;i++){if(t[i].cid===e)return!0;if(Array.isArray(t[i].children)){if(r(t[i].children))return n.push(t[i]),!0;r(t[i].children)}}};return r(t),n},le=function(t,e){var n=null,r=function(t,i){for(var a=0,o=t;a<o.length;a++){var s=o[a];if(s.cid==e){n=i;break}if(s.children)r(s.children,s);else if(s.dynamicChildren)if(s.dynamicChildren instanceof Map){for(var u=Array.from(s.dynamicChildren),l=0;l<u.length;l++)if(u[l]instanceof Array){var c=u[l][1];r(c,s)}}else s.dynamicChildren;else s.stateChildren&&r(s.stateChildren,s)}};return r(t,null),n||!1},ce=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 o=0;o<a.children.length;o++)if(a.children[o].cid===e)return r=a.children[o],n&&a.children.splice(o,1),{value:r}}else if(a.stateChildren&&a.stateChildren.length){for(o=0;o<a.stateChildren.length;o++)if(a.stateChildren[o].cid===e)return r=a.stateChildren[o],n&&a.stateChildren.splice(o,1),{value:r}}else if(a.dynamicChildren){var s=void 0;if(a.dynamicChildren instanceof Map?s=a.dynamicChildren.get(a.activeDynamic):a.dynamicChildren instanceof Array&&(s=a.dynamicChildren.find((function(t){return t[0]==a.activeDynamic}))[1]),s)for(o=0;o<s.length;o++)if(s[o].cid===e)return r=s[o],n&&s.splice(o,1),{value:r}}},a=0;a<t.length;a++){var o=i(a);if("object"==typeof o)return o.value}return!!r},he=function(t,e,n){var r=ce(t,e),i=ce(t,n);return r.pid&&i.pid||!r.pid&&!i.pid},fe=function(t,e){var n=function(t){for(var r,i,a,o=0,s=t;o<s.length;o++){var u=s[o],l=null===(a=null===(i=null===(r=null==u?void 0:u.tmpData)||void 0===r?void 0:r.source)||void 0===i?void 0:i.converse)||void 0===a?void 0:a.data;if(null==l?void 0:l.length)for(var c=0,h=l;c<h.length;c++){var f=h[c];f.code=f.code.replace(/&gt;/g,">").replace(/&lt;/g,"<")}e(u),u&&u.children?n(u.children):u&&u.dynamicChildren?(u.dynamicChildren&&u.dynamicChildren instanceof Map&&u.dynamicChildren.forEach((function(t){n(t)})),u.dynamicChildren&&u.dynamicChildren instanceof Array&&u.dynamicChildren.forEach((function(t){n(t[1])}))):(null==u?void 0:u.stateChildren)&&n(u.stateChildren)}};n(t)},de=function(t){var e=t.length,n=function(t,e){for(var r=function(r){var i=t[r];if(i&&i.children&&i.children.length){var a=i.children.length;n(i.children,a)}else if(i&&i.dynamicChildren){var o=i.dynamicChildren.length;Array.from(i.dynamicChildren).forEach((function(t,e){n(t[1],o)}))}i.z=10*e-r},i=0;i<t.length;i++)r(i)};n(t,e)},pe=function(t){var e=function(t,n){for(var r=function(r){var i=t[r],a=Oe();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)},ve=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)}},me=function(t,e){var n;try{var r="tmpData";if(!t||!(null===(n=t[r])||void 0===n?void 0:n.hasOwnProperty("option")))throw new Error("The property you want to modify is not found. Please check whether the attribute 'option' is entered correctly!");var a=i.default.cloneDeep(t[r].option),o={};Object.assign(o,a,e),console.log(o,a,"newOP"),t[r].option=o}catch(t){console.error(new Error("An error occurred: ".concat(t)))}},ge=function(t){try{if(!t)throw" 没有找到组件";t.isShow||"false"==t.isShow?t.isShow=!1:t.isShow=!0}catch(t){console.error(t)}},ye=function(t,e){e.forEach((function(e){e.baseData.left=e.baseData.left-t.left,e.baseData.top=e.baseData.top-t.top}))},_e=function(t,e){var n=i.default.cloneDeep(t),r=[];return n.children&&n.children.length&&n.children.forEach((function(t){var i=e&&(null==n?void 0:n.pid)?se(e,n.pid):null;be(t,n,i),r.push(t)})),r},be=function(t,e,n){var r=function(t,e,n){var r=t.baseData.left,i=t.baseData.top,a=e;if(r+=a.baseData.left,i+=a.baseData.top,n){if(n.baseData.angle){var o=n.baseData.angle*Math.PI/180,s=Math.cos(o),u=Math.sin(o),l=r*u+i*s;r=r*s-i*u,i=l}n.baseData.scale&&(r*=n.baseData.scale.x,i*=n.baseData.scale.y)}return{left:r,top:i}}(t,e,n),i=r.left,a=r.top;t.baseData.left=i,t.baseData.top=a},we=function(t,e){t.baseData.left=t.baseData.left+e.left,t.baseData.top=t.baseData.top+e.top},De=function(t,e,n){var r={left:0,top:0};return t.left=t.left||0,t.top=t.top||0,e.left=e.left||0,e.top=e.top||0,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},Se=function(t,e){var n=i.default.cloneDeep(t),r=[],a=function(t,e){var n=se(t,e);r.push(n.baseData),n.pid&&a(t,n.pid)};a(n,e);var o={left:0,top:0};return r.map((function(t){t&&(o.left+=t.left,o.top+=t.top)})),o},xe=function(t,e,n){var r=t.slice();return n||(r=i.default.cloneDeep(t)),r.length>1&&r.sort((function(t,n){return t.baseData[e]-n.baseData[e]})),r},Te=function(t,e){var n=[];return t.map((function(t){var r=e.find((function(e){return e.cid===t}));r&&n.push(r)})),ke(n)},ke=function(t,e){if(t.length>0){var n={left:0,top:0,width:0,height:0},r=xe(t,"left",e),i=xe(t,"top",e),a=r[0].baseData,o=r[r.length-1].baseData,s=i[0].baseData,u=i[i.length-1].baseData,l=Math.max.apply(Math,i.map((function(t){return 1*t.baseData.top+1*t.baseData.height}))),c=Math.max.apply(Math,i.map((function(t){return 1*t.baseData.left+1*t.baseData.width})));return n.left=a.left,n.width=Math.max(1*o.left+1*o.width,c)-1*a.left,n.top=s.top,n.height=Math.max(1*u.top+1*u.height,l)-1*s.top,n}return{left:0,top:0,width:0,height:0}},Ce=function(t,e,n,r){var a=t.children,o=i.default.cloneDeep(e),s=i.default.cloneDeep(ke(a,r)),u=o.left,l=o.top;o.width,o.height;var c=s.left,h=s.top,f=s.width,d=s.height,p={left:u+c,top:l+h,width:f,height:d,angle:e.angle?e.angle:0};return a.forEach((function(t){var e=i.default.cloneDeep(t.baseData);t.baseData.left<0?e.left=0:e.left=e.left-c,t.baseData.top<0?e.top=0:e.top=e.top-h,t.baseData=e})),t.baseData=p,t.children=a,p},Ee=function(t,e){for(var n=0;n<t.length;n++){var r=t[n];t[n].index=n,r.children&&r.children.length?Ee(r.children):e&&e(r)}},Oe=function(){return(Math.random().toString().substr(3,10)+Date.now()).toString()},Ae=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 Me(t,e){for(var n=t.types,r=t.element,i=t.actions,a=t.events,o=t.eventsComs,s=function(t){var e=n[t],s=r.tmpData.actions[t];if(s&&s.use){o&&o.push(r.cid);var u=s[s.behave];if(!u)return"continue";"vars"===s.behave?u.map((function(t){t.type=e,t.id=r.cid,t.model=0,t.mapField&&i.push(t)})):u.length>0&&u.forEach((function(t,n){"toggle"===s.behave&&""!==t.value&&t.value.length&&a.push({id:r.cid,type:s.behave,children:t.value.map((function(t){return{cid:t.cid,visible:t.visible}})),eventType:e,index:n}),"update"===s.behave&&""!==t.value&&t.value.length?a.push({id:r.cid,type:s.behave,children:t.value.map((function(t){return{cid:t.cid,visible:t.visible}})),eventType:e,index:n}):"link"===s.behave&&""!==t.value?a.push({id:r.cid,type:s.behave,link:t.value,eventType:e,target:t.target,index:n}):"page"===s.behave&&""!==t.value?a.push({id:r.cid,type:s.behave,page:t.value,params:t.params,eventType:e,index:n}):"dynamic"===s.behave&&""!==t.value&&t.value.length>0?a.push({id:r.cid,type:s.behave,dynamic:t.value,eventType:e,index:n}):a.push(void 0)}))}},u=0;u<n.length;u++)s(u)}var Pe="anov@2019:helloX",Be="anov@2020:helloX";function Re(t){var e=te.enc.Utf8.parse(Pe),n=te.enc.Utf8.parse(Be);return te.AES.encrypt(t,e,{iv:n,mode:te.mode.CBC,padding:te.pad.Pkcs7}).toString()}function Ne(t,e){var n=fi.state.globalVars,r={};n.forEach((function(t){(null==t?void 0:t.name)&&(r[t.name]=t.value||t.originvalue)}));try{return/^(?:[^\r\n]*[\r\n]){0,2}(?:[^\r\n]*(?=\{))?\s*(?:function\s*[^\r\n]*|\(.*?\))?\s*[\w\s\$\._\[\]]*\s*(?:[=:]\s*)?(?:new\s+)?[A-Z]\w*\s*(?:\[.*?\]|\([^\r\n]*\))*\s*\{.*?\}/i.test(t),new Function("data","vars",t)(e,r)}catch(t){return console.error(t),e}}var Ve={type:"static",converse:{use:!1,data:[]},static:{data:{},originData:""},api:{requestType:"get",url:"",headers:{use:!1,value:""},params:"",agency:!1,cookie:!0,autoUpdate:{open:!1,time:10},data:""},datasource:{data:"",inputSql:"",dsName:"",dsType:300,autoUpdate:{open:!1,time:10}},indicator:{zbId:"",zbName:"",params:"",data:"",autoUpdate:{open:!1,time:10}},staticFile:{data:"",dsName:"",dsType:201}},Ie=function(t){var e;try{var n=[];if((null==t?void 0:t.dynamicChildren)instanceof Map)for(var r=Array.from(null==t?void 0:t.dynamicChildren),i=0;i<r.length;i++)r[i]instanceof Array&&n.push.apply(n,r[i][1]);else if((null==t?void 0:t.dynamicChildren)instanceof Array)for(r=null==t?void 0:t.dynamicChildren,i=0;i<r.length;i++)r[i]instanceof Array&&n.push.apply(n,r[i][1]);if(null==n?void 0:n.length)for(var a=0,o=n;a<o.length;a++){var s=o[a];if(s){var u=null===(e=null==s?void 0:s.tmpData)||void 0===e?void 0:e.source,l=u.type;u&&"packData"==l&&(s.tmpData.source.packData.data=t.source[0])}}}catch(t){console.log(t)}},Fe=Object.defineProperty,je=Object.getOwnPropertySymbols,Le=Object.prototype.hasOwnProperty,Ye=Object.prototype.propertyIsEnumerable,ze=(t,e,n)=>e in t?Fe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,He=(t,e)=>{for(var n in e||(e={}))Le.call(e,n)&&ze(t,n,e[n]);if(je)for(var n of je(e))Ye.call(e,n)&&ze(t,n,e[n]);return t},Ue=Symbol.for("immer-nothing"),We=Symbol.for("immer-draftable"),qe=Symbol.for("immer-state"),Ge="production"!==q.env.NODE_ENV?[function(t){return`The plugin for '${t}' has not been loaded into Immer. To enable the plugin, import and call \`enable${t}()\` when initializing your application.`},function(t){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${t}'`},"This object has been frozen and should not be mutated",function(t){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+t},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(t){return`'current' expects a draft, got: ${t}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(t){return`'original' expects a draft, got: ${t}`}]:[];function Ke(t,...e){if("production"!==q.env.NODE_ENV){const n=Ge[t],r="function"==typeof n?n.apply(null,e):n;throw new Error(`[Immer] ${r}`)}throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var Ze=Object.getPrototypeOf;function $e(t){return!!t&&!!t[qe]}function Xe(t){var e;return!!t&&(Qe(t)||Array.isArray(t)||!!t[We]||!!(null==(e=t.constructor)?void 0:e[We])||an(t)||on(t))}var Je=Object.prototype.constructor.toString();function Qe(t){if(!t||"object"!=typeof t)return!1;const e=Ze(t);if(null===e)return!0;const n=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===Je}function tn(t,e){0===en(t)?Object.entries(t).forEach((([n,r])=>{e(n,r,t)})):t.forEach(((n,r)=>e(r,n,t)))}function en(t){const e=t[qe];return e?e.type_:Array.isArray(t)?1:an(t)?2:on(t)?3:0}function nn(t,e){return 2===en(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function rn(t,e,n){const r=en(t);2===r?t.set(e,n):3===r?t.add(n):t[e]=n}function an(t){return t instanceof Map}function on(t){return t instanceof Set}function sn(t){return t.copy_||t.base_}function un(t,e){if(an(t))return new Map(t);if(on(t))return new Set(t);if(Array.isArray(t))return Array.prototype.slice.call(t);if(!e&&Qe(t)){if(!Ze(t)){const e=Object.create(null);return Object.assign(e,t)}return He({},t)}const n=Object.getOwnPropertyDescriptors(t);delete n[qe];let r=Reflect.ownKeys(n);for(let e=0;e<r.length;e++){const i=r[e],a=n[i];!1===a.writable&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(n[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:t[i]})}return Object.create(Ze(t),n)}function ln(t,e=!1){return hn(t)||$e(t)||!Xe(t)||(en(t)>1&&(t.set=t.add=t.clear=t.delete=cn),Object.freeze(t),e&&tn(t,((t,e)=>ln(e,!0)))),t}function cn(){Ke(2)}function hn(t){return Object.isFrozen(t)}var fn,dn={};function pn(t){const e=dn[t];return e||Ke(0,t),e}function vn(){return fn}function mn(t,e){e&&(pn("Patches"),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function gn(t){yn(t),t.drafts_.forEach(bn),t.drafts_=null}function yn(t){t===fn&&(fn=t.parent_)}function _n(t){return fn={drafts_:[],parent_:fn,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function bn(t){const e=t[qe];0===e.type_||1===e.type_?e.revoke_():e.revoked_=!0}function wn(t,e){e.unfinalizedDrafts_=e.drafts_.length;const n=e.drafts_[0];return void 0!==t&&t!==n?(n[qe].modified_&&(gn(e),Ke(4)),Xe(t)&&(t=Dn(e,t),e.parent_||xn(e,t)),e.patches_&&pn("Patches").generateReplacementPatches_(n[qe].base_,t,e.patches_,e.inversePatches_)):t=Dn(e,n,[]),gn(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==Ue?t:void 0}function Dn(t,e,n){if(hn(e))return e;const r=e[qe];if(!r)return tn(e,((i,a)=>Sn(t,r,e,i,a,n))),e;if(r.scope_!==t)return e;if(!r.modified_)return xn(t,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const e=r.copy_;let i=e,a=!1;3===r.type_&&(i=new Set(e),e.clear(),a=!0),tn(i,((i,o)=>Sn(t,r,e,i,o,n,a))),xn(t,e,!1),n&&t.patches_&&pn("Patches").generatePatches_(r,n,t.patches_,t.inversePatches_)}return r.copy_}function Sn(t,e,n,r,i,a,o){if("production"!==q.env.NODE_ENV&&i===n&&Ke(5),$e(i)){const o=Dn(t,i,a&&e&&3!==e.type_&&!nn(e.assigned_,r)?a.concat(r):void 0);if(rn(n,r,o),!$e(o))return;t.canAutoFreeze_=!1}else o&&n.add(i);if(Xe(i)&&!hn(i)){if(!t.immer_.autoFreeze_&&t.unfinalizedDrafts_<1)return;Dn(t,i),e&&e.scope_.parent_||xn(t,i)}}function xn(t,e,n=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&ln(e,n)}var Tn={get(t,e){if(e===qe)return t;const n=sn(t);if(!nn(n,e))return function(t,e,n){var r;const i=En(e,n);return i?"value"in i?i.value:null==(r=i.get)?void 0:r.call(t.draft_):void 0}(t,n,e);const r=n[e];return t.finalized_||!Xe(r)?r:r===Cn(t.base_,e)?(An(t),t.copy_[e]=Mn(r,t)):r},has:(t,e)=>e in sn(t),ownKeys:t=>Reflect.ownKeys(sn(t)),set(t,e,n){const r=En(sn(t),e);if(null==r?void 0:r.set)return r.set.call(t.draft_,n),!0;if(!t.modified_){const r=Cn(sn(t),e),o=null==r?void 0:r[qe];if(o&&o.base_===n)return t.copy_[e]=n,t.assigned_[e]=!1,!0;if(((i=n)===(a=r)?0!==i||1/i==1/a:i!=i&&a!=a)&&(void 0!==n||nn(t.base_,e)))return!0;An(t),On(t)}var i,a;return t.copy_[e]===n&&(void 0!==n||e in t.copy_)||Number.isNaN(n)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=n,t.assigned_[e]=!0),!0},deleteProperty:(t,e)=>(void 0!==Cn(t.base_,e)||e in t.base_?(t.assigned_[e]=!1,An(t),On(t)):delete t.assigned_[e],t.copy_&&delete t.copy_[e],!0),getOwnPropertyDescriptor(t,e){const n=sn(t),r=Reflect.getOwnPropertyDescriptor(n,e);return r?{writable:!0,configurable:1!==t.type_||"length"!==e,enumerable:r.enumerable,value:n[e]}:r},defineProperty(){Ke(11)},getPrototypeOf:t=>Ze(t.base_),setPrototypeOf(){Ke(12)}},kn={};function Cn(t,e){const n=t[qe];return(n?sn(n):t)[e]}function En(t,e){if(!(e in t))return;let n=Ze(t);for(;n;){const t=Object.getOwnPropertyDescriptor(n,e);if(t)return t;n=Ze(n)}}function On(t){t.modified_||(t.modified_=!0,t.parent_&&On(t.parent_))}function An(t){t.copy_||(t.copy_=un(t.base_,t.scope_.immer_.useStrictShallowCopy_))}tn(Tn,((t,e)=>{kn[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),kn.deleteProperty=function(t,e){return"production"!==q.env.NODE_ENV&&isNaN(parseInt(e))&&Ke(13),kn.set.call(this,t,e,void 0)},kn.set=function(t,e,n){return"production"!==q.env.NODE_ENV&&"length"!==e&&isNaN(parseInt(e))&&Ke(14),Tn.set.call(this,t[0],e,n,t[0])};function Mn(t,e){const n=an(t)?pn("MapSet").proxyMap_(t,e):on(t)?pn("MapSet").proxySet_(t,e):function(t,e){const n=Array.isArray(t),r={type_:n?1:0,scope_:e?e.scope_:vn(),modified_:!1,finalized_:!1,assigned_:{},parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,a=Tn;n&&(i=[r],a=kn);const{revoke:o,proxy:s}=Proxy.revocable(i,a);return r.draft_=s,r.revoke_=o,s}(t,e);return(e?e.scope_:vn()).drafts_.push(n),n}function Pn(t){if(!Xe(t)||hn(t))return t;const e=t[qe];let n;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,n=un(t,e.scope_.immer_.useStrictShallowCopy_)}else n=un(t,!0);return tn(n,((t,e)=>{rn(n,t,Pn(e))})),e&&(e.finalized_=!1),n}var Bn=new class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,e,n)=>{if("function"==typeof t&&"function"!=typeof e){const n=e;e=t;const r=this;return function(t=n,...i){return r.produce(t,(t=>e.call(this,t,...i)))}}let r;if("function"!=typeof e&&Ke(6),void 0!==n&&"function"!=typeof n&&Ke(7),Xe(t)){const i=_n(this),a=Mn(t,void 0);let o=!0;try{r=e(a),o=!1}finally{o?gn(i):yn(i)}return mn(i,n),wn(r,i)}if(!t||"object"!=typeof t){if(r=e(t),void 0===r&&(r=t),r===Ue&&(r=void 0),this.autoFreeze_&&ln(r,!0),n){const e=[],i=[];pn("Patches").generateReplacementPatches_(t,r,e,i),n(e,i)}return r}Ke(1,t)},this.produceWithPatches=(t,e)=>{if("function"==typeof t)return(e,...n)=>this.produceWithPatches(e,(e=>t(e,...n)));let n,r;return[this.produce(t,e,((t,e)=>{n=t,r=e})),n,r]},"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),"boolean"==typeof(null==t?void 0:t.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy)}createDraft(t){Xe(t)||Ke(8),$e(t)&&(t=function(t){$e(t)||Ke(10,t);return Pn(t)}(t));const e=_n(this),n=Mn(t,void 0);return n[qe].isManual_=!0,yn(e),n}finishDraft(t,e){const n=t&&t[qe];n&&n.isManual_||Ke(9);const{scope_:r}=n;return mn(r,e),wn(void 0,r)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}applyPatches(t,e){let n;for(n=e.length-1;n>=0;n--){const r=e[n];if(0===r.path.length&&"replace"===r.op){t=r.value;break}}n>-1&&(e=e.slice(n+1));const r=pn("Patches").applyPatches_;return $e(t)?r(t,e):this.produce(t,(t=>r(t,e)))}},Rn=Bn.produce;Bn.produceWithPatches.bind(Bn);var Nn=Bn.setAutoFreeze.bind(Bn);function Vn(t,e){return Nn(!1),Rn(t,e)}Bn.setUseStrictShallowCopy.bind(Bn),Bn.applyPatches.bind(Bn),Bn.createDraft.bind(Bn),Bn.finishDraft.bind(Bn);var In={updataArea:function(t,e){t.currentArea=e},selectdArea:function(t,e){var n=Te(e,t.list);t.currentArea=n},updataAngle:function(t,e){var n=e.id,r=e.angle,i=se(t.list,n);"boolean"!=typeof i&&(i.baseData.angle=r)},updataBaseData:function(t,e){var n,r=e.data;if(null==(null===(n=null==r?void 0:r.baseData)||void 0===n?void 0:n.opacity)&&(r.baseData.opacity=100),re(e.data.baseData,"updataBaseData")){var i=e.ratio,a=se(t.list,r.cid),o=e.oldData;if("object"!=typeof a||a.pid){if("object"==typeof a&&a.pid){var s=se(t.list,a.pid);"object"==typeof s&&(a.baseData.left<0&&(a.baseData.left=0),a.baseData.top<0&&(a.baseData.top=0),Object.assign(a.baseData,r.baseData),Ce(s,s.baseData),t.groupFlag=!t.groupFlag)}}else if(Object.assign(a.baseData,r.baseData),i&&a.children&&a.children.length>0){var u=a.baseData.width/o.width,l=a.baseData.height/o.height;ne(a.children,{xRatio:u,yRatio:l})}}},multipleUpdataBaseData:function(t,e){if(e.ratio)for(var n=e.newData,r=e.oldData,a=n.width/r.width,o=n.height/r.height,s=t.cache.length;s--;)t.cache[s].baseData.left=t.cache[s].baseData.left*a,t.cache[s].baseData.width=t.cache[s].baseData.width*a,t.cache[s].baseData.top=t.cache[s].baseData.top*o,t.cache[s].baseData.height=t.cache[s].baseData.height*o;else for(s=t.cache.length;s--;){var u=i.default.cloneDeep(t.cache[s].baseData);u.left=u.left+e.deltaX,u.top=u.top+e.deltaY,t.cache[s].comPanel?t.cache[s].comPanel.setAttrData(Object.assign(u,e.baseData)):t.cache[s].baseData=u}},multipleUpdata:function(t,e){var n=e.ids,r=e.data,i=se(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=[se(t.list,n[0])]);for(var o=0;o<a.length;o++){var s=a[o];if(s.pid&&t.selectd.length>1)return void console.warn("Only one component can be moved within a group");if("up"===r?s.baseData.top=s.baseData.top-i:"down"===r?s.baseData.top+=i:"left"===r?s.baseData.left-=i:"right"===r&&(s.baseData.left+=i),"object"==typeof s&&s.pid){var u=se(t.list,s.pid);"object"==typeof u&&(Ce(u,u.baseData),t.groupFlag=!t.groupFlag)}}}else console.warn("Warning! please select the component to move.")},updataGroupBaseData:function(t,e){var n=se(t.list,e.pid),r=i.default.cloneDeep(n);se(n.children,e.cid),Ce(n,r.baseData)},editGroupBaseData:function(t,e){var n=se(t.list,e);n.children.forEach((function(t){we(t,n.baseData)}))},syncBaseData:function(t,e){var n=e.cid,r=e.data,a=e.isContainer;console.time("syncBaseData");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=Vn(t.list,(function(t){void 0!==a&&t.length&&o(t)}));if(a)t.list=s;else{var u=se(s,n);if(u){var l=i.default.cloneDeep(u.baseData),c=Object.assign({},u.baseData,r);this.commit("GoCom/updataBaseData",{data:{cid:n,baseData:c},oldData:l,ratio:!0})}}console.timeEnd("syncBaseData")},updataItemData:function(t,e){var n=e.cid,r=e.propsName,i=e.propsValue,a=se(t.list,n);a&&(a[r]=i)},updataOpacity:function(t,e){var n=e.cid,r=e.propsValue,i=se(t.list,n);"boolean"!=typeof i&&i&&(i.baseData.opacity=r)}},Fn=function(t,e,n,r){var a;try{var o={},s=[],u=[],l=[],c=i.default.cloneDeep(t);return(null===(a=null===window||void 0===window?void 0:window.go)||void 0===a?void 0:a.dev)&&fe(t,(function(t){var e,n,r;if(null===(n=null===(e=null==t?void 0:t.tmpData)||void 0===e?void 0:e.actions)||void 0===n?void 0:n.length)for(var i=0,a=null===(r=null==t?void 0:t.tmpData)||void 0===r?void 0:r.actions;i<a.length;i++){var o=a[i];if("toggle"==o.behave){var s=o.toggle;if(null==s?void 0:s.length)for(var u=0,l=s;u<l.length;u++){var c=l[u],h=c.value;(null==h?void 0:h.length)&&(c.value=c.value.map((function(t){return{cid:t.cid,viewComName:t.viewComName,name:t.name,visible:t.visible}})))}}}})),fe(c,(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)&&Me({types:t.tmpData.actions.map((function(t){return t.eventType})),element:t,actions:s,events:u,eventsComs:l})})),e&&e.length&&(s=v(v([],s,!0),e,!0)),n&&n.length&&(s=v(v([],s,!0),n,!0)),r&&r.length&&(s=v(v([],s,!0),r,!0)),fe(c,(function(t){var e,n=null===(e=null==t?void 0:t.tmpData)||void 0===e?void 0:e.source;jn(n,s,t,o)})),s.filter((function(t){if(t.fork){var e=s.find((function(e){return e.mapField==t.forkValue||Array.isArray(t.forkValue)&&t.forkValue.includes(e.mapField)}));e&&(Array.isArray(t.forkValue)?t.originalValue=t.forkValue.map((function(t){return s.find((function(e){return e.mapField==t})).value})):t.originalValue=e.value)}})),{shareVariableTree:o,globalVars:s.filter((function(t){return t.hasOwnProperty("originalValue")||(t.originalValue=t.value),t.converter&&t.converterCode?t.value=Ne(t.converterCode,t.originalValue):t.value=t.originalValue,t})),globalEvents:u.filter((function(t){return t})),eventsComs:l}}catch(t){return console.error("error",t),{}}},jn=function(t,e,n,r){var i,a,o;if(t){var s=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){Yn(r,t,n.cid)}))})),(null==s?void 0:s.inputSql)&&Ln(null==s?void 0:s.inputSql,e,n,r),(null==s?void 0:s.url)&&Ln(s.url,e,n,r),(null==s?void 0:s.headers)&&(null===(i=null==s?void 0:s.headers)||void 0===i?void 0:i.use)&&(null===(a=null==s?void 0:s.headers)||void 0===a?void 0:a.value)&&Ln(null===(o=null==s?void 0:s.headers)||void 0===o?void 0:o.value,e,n,r),(null==s?void 0:s.params)&&Ln(null==s?void 0:s.params,e,n,r)}},Ln=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,"")})),o=function(t){var i=a[t];if(!i||!e||e.findIndex((function(t){return t.mapField===i}))<0)return"continue";Yn(r,i,n.cid)},s=0;s<a.length;s++)o(s)},Yn=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)},zn=function(t){if("string"==typeof t)try{var e=JSON.parse(t);return!("object"!=typeof e||!e)}catch(t){return!1}return!1};function Hn(t,e){return void 0===e&&(e=!1),e?zn(t)?t:JSON.stringify(t):zn(t)?JSON.parse(t):t}var Un={delListItem:function(t,e){var n=i.default.cloneDeep(t.list);"string"==typeof e?se(n,e,!0):e.forEach((function(t){se(n,t,!0)})),t.list=n,t.globalVars=Fn(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=function(e){var n=se(t.list,t.selectd[e]);if("boolean"!=typeof n){var r=i.default.cloneDeep(n);if(r.cid=Oe(),r.pid="",(null==r?void 0:r.stateChildren)||(null==r?void 0:r.children))((null==r?void 0:r.stateChildren)?null==r?void 0:r.stateChildren:null==r?void 0:r.children).forEach((function(t){var e,n,i,a,o=t.cid;if(t.cid=Oe(),t.pid=r.cid,(null==r?void 0:r.stateChildren)&&(null===(n=null===(e=null==r?void 0:r.tmpData)||void 0===e?void 0:e.option)||void 0===n?void 0:n.children)){var s=null===(a=null===(i=null==r?void 0:r.tmpData)||void 0===i?void 0:i.option)||void 0===a?void 0:a.children.find((function(t){return t.cid==o}));s&&(s.cid=t.cid)}}));t.cloneCache.push(r),window.localStorage.setItem("cloneCache",JSON.stringify(t.cloneCache))}},n=0;n<t.selectd.length;n++)e(n)}},shearItem:function(t,e){if(t.selectd.length>0){t.cloneCache=[];for(var n=0;n<t.selectd.length;n++){var r=se(t.list,t.selectd[n],!0);if("boolean"!=typeof r){var a=i.default.cloneDeep(r);a.cid=Oe(),t.cloneCache.push(a)}}t.selectd=[]}},pasteItem:function(t){var e,n;try{var r=(null===(n=i.default.cloneDeep(t.cloneCache))||void 0===n?void 0:n.length)?i.default.cloneDeep(t.cloneCache):JSON.parse(window.localStorage.getItem("cloneCache"));if(r.length>0){var a=[];fe(r,(function(t){if(t.cid=Oe(),t&&t.children)for(var e=0,n=t.children;e<n.length;e++){n[e].pid=t.cid}else if(t.stateChildren)for(var r=0,i=t.stateChildren;r<i.length;r++){i[r].pid=t.cid}if("dynamicComponent"==t.componentType){var o=void 0;t.dynamicChildren instanceof Map?o=t.dynamicChildren.get(t.activeDynamic):t.dynamicChildren instanceof Array&&(o=t.dynamicChildren.find((function(e){return e[0]==t.activeDynamic}))),o.length>1&&(Array.isArray(o[1])?o[1].forEach((function(e){e.pid=t.cid})):o.forEach((function(e){e.pid=t.cid}))),1==o.length&&o.forEach((function(e){e.pid=t.cid}))}a.push(t.cid)})),t.selectd.length>0?Te(t.selectd,t.list):ke(r),r.forEach((function(t){var e,n,r,i;if(t.baseData.top=t.baseData.top+20,t.baseData.left=t.baseData.left+20,t&&t.hasOwnProperty("stateChildren")&&(null===(n=null===(e=null==t?void 0:t.tmpData)||void 0===e?void 0:e.option)||void 0===n?void 0:n.children))for(var a=function(e){e.pid=t.cid;var n=null===(i=null===(r=null==t?void 0:t.tmpData)||void 0===r?void 0:r.option)||void 0===i?void 0:i.children.find((function(t){return t.disName==e.name}));n&&(n.cid=e.cid)},o=0,s=t.stateChildren;o<s.length;o++){a(s[o])}})),(e=t.list).unshift.apply(e,i.default.cloneDeep(r)),t.selectd=a}}catch(t){console.warn(t)}},updataShow:function(t,e){var n=se(t.list,e);if("boolean"!=typeof n){var r=!n.isShow;ve(n,"isShow",r,"")}},changeShow:function(t,e){var n=e.cid,r=e.flag,i=se(t.list,n);i&&ve(i,"isShow",r,"")},comToggle:function(t,e){var n=se(t.list,e);n&&ge(n)},updataLock:function(t,e){var n=se(t.list,e);if("boolean"!=typeof n){var r=!n.isLock;ve(n,"isLock",r,"")}},breakUp:function(t,e){var n,r;try{if(!e)throw"Please pass in the component CID correctly!";var i=le(t.list,e),a=se(t.list,e),o=a.baseData;if(isNaN(o.left)||isNaN(o.top))throw new Error("top or left is NAN");var s=_e(a,t.list);if(s.map((function(t){return t.pid=""})),i){var u=i.children.findIndex((function(t){return t.cid==e}));i.children.splice(u,1),(n=i.children).push.apply(n,s.reverse())}else{u=t.list.findIndex((function(t){return t.cid==e}));t.list.splice(u,1),(r=t.list).push.apply(r,s.reverse())}}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],o=_e(a);o.map((function(t){return t.pid=""})),t.list.splice(i,1),(n=t.list).push.apply(n,o)}catch(t){console.error(t)}},combination:function(t){i.default.cloneDeep(t.list);var e,n,r=[],a=[],o=Oe(),s=se(t.list,t.selectd[0]);s.pid?console.info("Sorry, only level 2 is supported group"):s.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=o,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}),ye(n,a),t.list.splice(e,0,{cid:o,pid:"",isShow:!0,isLock:!1,editer:!1,baseData:n,z:0,toggle:!0,name:"群组",type:"folder",tmpData:{actions:null,option:null,source:Ve},children:a}),de(t.list),t.selectd=[o])},moveUp:function(t,e){try{var n=t.list.findIndex((function(t){return t.cid===e}));n>=1?ie(t.list,n-1,n):oe(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?ie(t.list,n+1,n):oe(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?ie(t.list,0,n):oe(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?ie(t.list,r,n):oe(t.list,"bottom",e)}catch(t){console.error(t)}}},Wn=3e4,qn=function(t,e){void 0===t&&(t="");var n=a.default.create({baseURL:t,timeout:Wn,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")),sessionStorage.getItem("dgcc_authorization")&&"null"!=sessionStorage.getItem("dgcc_authorization")&&(t.headers.dgcc_authorization=sessionStorage.getItem("dgcc_authorization")),"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},Gn=Object.defineProperty,Kn=Object.getOwnPropertySymbols,Zn=Object.prototype.hasOwnProperty,$n=Object.prototype.propertyIsEnumerable,Xn=(t,e,n)=>e in t?Gn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Jn=(t,e)=>{for(var n in e||(e={}))Zn.call(e,n)&&Xn(t,n,e[n]);if(Kn)for(var n of Kn(e))$n.call(e,n)&&Xn(t,n,e[n]);return t},Qn=(t,e,n)=>(Xn(t,"symbol"!=typeof e?e+"":e,n),n),tr=(t,e,n)=>new Promise(((r,i)=>{var a=t=>{try{s(n.next(t))}catch(t){i(t)}},o=t=>{try{s(n.throw(t))}catch(t){i(t)}},s=t=>t.done?r(t.value):Promise.resolve(t.value).then(a,o);s((n=n.apply(t,e)).next())})),er={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},nr="data-watermark-tag",rr={childList:!0,subtree:!0,attributeFilter:["style","class",nr]};var ir=t=>{let e="";return Object.keys(t).forEach((n=>{const r=n.replace(/([A-Z])/g,"-$1").toLowerCase();e+=`${r}:${t[n]};`})),e},ar=(t="")=>{return`${e=t,window.btoa(decodeURI(encodeURIComponent(e)))}-${(new Date).getTime()}-${Math.floor(Math.random()*Math.pow(10,8))}`;var e};var or=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver,sr=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 o&&o.global===o?o:void 0,s=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&&!s?function(t,e,o){var s=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,o):i(u,u.target="_blank")):(u.href=s.createObjectURL(t),setTimeout((function(){s.revokeObjectURL(u.href)}),4e4),setTimeout((function(){i(u)}),0))}:"msSaveOrOpenBlob"in navigator?function(t,a,o){if(a=a||t.name||"download","string"!=typeof t)navigator.msSaveOrOpenBlob(e(t,o),a);else if(r(t))n(t,a,o);else{var s=document.createElement("a");s.href=t,s.target="_blank",setTimeout((function(){i(s)}))}}: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=u.saveAs=u,t.exports=u}()})),ur=function(t){if(0===t.length)return[];var e=function(t){for(var n,r,a,o,s=0;s<t.length;s++)t[s].tmpData&&(t[s]=Object.assign({},(r=t[s],a=void 0,o=void 0,a=i.default.cloneDeep(r),o=i.default.omit(a,["comData","source"]),f({},o)))),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},lr=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,o=r.theme,s=void 0===o?null:o,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,v=void 0===p?[]:p,m=r.path,g=void 0===m?"":m;r.name;var y=r.resource,_=void 0===y?{jspaths:[],csspaths:[],otherpaths:[]}:y,b=r.watermark,w=void 0===b?null:b,D=r.tw,S=void 0===D?null:D,x=r.globalSource,T=void 0===x?[]:x,k=r.globalEvents,C=void 0===k?[]:k;n.push({path:g||i,theme:s,name:a,resource:_,tw:S,watermark:w,globalSource:T,globalVars:l,globalEvents:C,shareVariableTree:h,plant:d,list:ur(v)})}));else{var r=e.theme,a=void 0===r?null:r,o=e.globalVars,s=void 0===o?null:o,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,v=void 0===p?{jspaths:[],csspaths:[],otherpaths:[]}:p,m=e.watermark,g=void 0===m?null:m,y=e.tw,_=void 0===y?null:y,b=e.globalSource,w=void 0===b?[]:b,D=e.globalEvents,S=void 0===D?[]:D;n.push({resource:v,tw:_,watermark:g,globalSource:w,theme:a,globalVars:s,globalEvents:S,shareVariableTree:l,plant:h,list:ur(d)})}return n};function cr(t,e){throw new Error("".concat(t,":Expected HTMLElement, got ").concat(e))}var hr=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,o=t.horizontal,s=t.vertical,u=document.querySelector(n);u||cr("wrap",u);var l=u.clientWidth,c=u.clientHeight,h=document.querySelector(r);h||cr("view",h),h.style.position="absolute",h.style.width=i+"px",h.style.height=a+"px";var f,d,p,v,m=Math.min(l/i,c/a);if(e){switch(h.style.transform="scale(".concat(m,")"),o){case"center":f=(l-i)/2+"px";break;case"left":f=(m-1)/2*i+"px";break;case"right":p=(m-1)/2*i+"px"}switch(s){case"center":d=(c-a)/2+"px";break;case"top":d=(m-1)/2*a+"px";break;case"bottom":v=(m-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:v&&(h.style.bottom=v),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}(),fr=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}(),dr=function(t){return d(this,void 0,void 0,(function(){var e,n,r,i,a;return p(this,(function(o){switch(o.label){case 0:return o.trys.push([0,3,,4]),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:o.sent(),o.label=2;case 2:return i.innerText+="@font-face{font-family:'".concat(n,"';src:url(").concat(e,");}"),[3,4];case 3:return a=o.sent(),console.warn(a),[3,4];case 4:return[2]}}))}))},pr=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){switch(a.label){case 0:return r="csspaths"===e?"link":"script",i=document.createElement(r),"jspaths"===e?i.defer=!0:i.rel="stylesheet",i.className=e,i.src=t,(n||document.head||document.getElementsByTagName("head")[0]).appendChild(i),[4,new Promise((function(t,e){i.addEventListener("load",t),i.addEventListener("error",t)}))];case 1:return a.sent(),[2]}}))}))},vr=function(t,e){return void 0===e&&(e="jspaths"),d(void 0,void 0,void 0,(function(){var n;return p(this,(function(r){switch(r.label){case 0:return n="fonts"===e?dr:pr,[4,Promise.all(t.map((function(t){return n(t)})))];case 1:return r.sent(),[2]}}))}))},mr=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,vr(t.fonts,"fonts")]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}))}))},gr=function(t){var e=t.jspaths,n=void 0===e?[]:e,r=t.csspaths,a=void 0===r?[]:r,o=t.fonts,s=void 0===o?[]:o;return d(void 0,void 0,void 0,(function(){var t;return p(this,(function(e){switch(e.label){case 0:return t=i.default.uniqBy(s,"fontName"),[4,Promise.all([vr(n,"jspaths"),vr(a,"csspaths"),vr(t,"fonts")])];case 1:return e.sent(),[2]}}))}))},yr=function(){var t;(null==(t=document.getElementById("__custom_font__"))?void 0:t.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,n=Array.from(document.getElementsByTagName("script")),r=0;r<n.length;r++)n[r]&&n[r].src&&-1!=n[r].src.indexOf(t)&&(null===(e=n[r])||void 0===e?void 0:e.parentNode)&&n[r].parentNode.removeChild(n[r])}(t.src)})),Array.from(document.getElementsByTagName("link")).filter((function(t){return"csspaths"==t.className})).forEach((function(t){!function(t){for(var e,n=Array.from(document.getElementsByTagName("link")),r=0;r<n.length;r++)n[r].href,n[r]&&n[r].href&&-1!=n[r].href.indexOf(t)&&(null===(e=n[r])||void 0===e?void 0:e.parentNode)&&n[r].parentNode.removeChild(n[r])}(t.href)}))};var _r=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;s.impl.options.cacheBust&&(t+=(/\?/.test(t)?"&":"?")+(new Date).getTime());return new Promise((function(n){var r,i=new XMLHttpRequest;if(i.onreadystatechange=o,i.ontimeout=u,i.responseType="blob",i.timeout=e,i.open("GET",t,!0),i.send(),s.impl.options.imagePlaceholder){var a=s.impl.options.imagePlaceholder.split(/,/);a&&a[1]&&(r=a[1])}function o(){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 o()?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 o(){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}))}))}}}}(),o={imagePlaceholder:void 0,cacheBust:!1},s={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?s.impl.options.imagePlaceholder=o.imagePlaceholder:s.impl.options.imagePlaceholder=t.imagePlaceholder;void 0===t.cacheBust?s.impl.options.cacheBust=o.cacheBust:s.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){var r=e;return r instanceof Element?Promise.resolve().then(i).then(a).then(o).then(s).then(u).then((function(){return r})):r;function i(){if(r instanceof HTMLVideoElement){var e=window.getComputedStyle(t),n=document.createElement("canvas");n.width=parseInt(e.width,10),n.height=parseInt(e.height,10);var i=Math.max(t.videoWidth/n.width,t.videoHeight/n.height),a=t.videoWidth/i,o=t.videoHeight/i,s=n.width/2-a/2,u=n.height/2-o/2;n.getContext("2d").drawImage(t,s,u,a,o);var l=r=document.createElement("img");try{l.src=n.toDataURL()}catch(t){l.src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="}}}function a(){function e(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)}e(window.getComputedStyle(t),r.style)}function o(){function e(e){var i=window.getComputedStyle(t,e),a=i.getPropertyValue("content");if(""!==a&&"none"!==a){var o=n.uid();r.className=r.className+" "+o;var s=document.createElement("style");s.appendChild(u(o,e,i)),r.appendChild(s)}function u(t,e,r){var i="."+t+":"+e,a=r.cssText?o(r):s(r);return document.createTextNode(i+"{"+a+"}");function o(t){var e=t.getPropertyValue("content");return t.cssText+" content: "+e+";"}function s(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){e(t)}))}function s(){t instanceof HTMLTextAreaElement&&(r.innerHTML=t.value),t instanceof HTMLInputElement&&r.setAttribute("value",t.value)}function u(){r instanceof SVGElement&&(r.setAttribute("xmlns","http://www.w3.org/2000/svg"),r instanceof SVGRectElement&&["width","height"].forEach((function(t){var e=r.getAttribute(t);e&&r.style.setProperty(t,e)})))}}(t,e)})):Promise.resolve()}function h(t){return a.inlineAll(t).then((function(){return t}))}t.exports=s}()})),br=function(t){if(!t)return!1;return 1==new RegExp(/http(s)?:\/\/([\w-]+\.)+[\w-]+(\/[\w- .\/?%&=]*)?/).test(t)},wr=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))},Dr=function(t,e){void 0===e&&(e="screenshot.jpeg");try{for(var n=t.split(","),r=n[0].match(/:(.*?);/)[1],i=atob(n[1]),a=i.length,o=new Uint8Array(a);a--;)o[a]=i.charCodeAt(a);return new File([o],e,{type:r})}catch(t){console.error("dataURLtoFile:数据转换错误 : "+t)}},Sr=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,Dr(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.jpeg")];case 4:return"Base64"!=e||"string"!=typeof t?[3,6]:[4,t];case 6:return"Base64"!=e||"[object ArrayBuffer]"!=t.toString()?[3,8]:[4,wr(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]}}))}))},xr=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]}}))}))},Tr=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,_r.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]}}))}))},kr=function(t){return"".concat(t>15?"":0).concat(t.toString(16))},Cr=function(t){var e=t.r,n=t.g,r=t.b,i=t.a,a=void 0===i?1:i;return"#".concat(kr(e)).concat(kr(n)).concat(kr(r)).concat(1===a?"":kr(Math.floor(255*a)))},Er=function(t){var e=t.r,n=t.g,r=t.b;return"rgb(".concat(e,",").concat(n,",").concat(r,")")},Or=function(t,e){void 0===e&&(e=1e4);var n=t.r,r=t.g,i=t.b,a=t.a,o=void 0===a?1:a;return"rgba(".concat(n,",").concat(r,",").concat(i,",").concat(Math.floor(o*e)/e,")")},Ar=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}},Mr=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])}},Pr=function(t){if(t.startsWith("#"))return Ar(t);if(t.startsWith("rgb"))return Mr(t);if("transparent"===t)return Ar("#00000000");throw new Error("color string error: ".concat(t))},Br=new Map([["E1001","系统未知错误"],["E1002","vue逻辑错误"],["E1003","JavaScript错误"],["E1004","静态资源加载错误"],["E1005","请求错误"],["E1006","Promise错误"]]),Rr=function(t,e,n,r){void 0===r&&(r="null"),Nr({code:t,type:Br.get("".concat(t)),msg:e,router:n.currentRoute.value.fullPath,file:r,createTime:(new Date).toLocaleString()})},Nr=function(t){var e=localStorage.getItem("ERROR");if(e){var n=JSON.parse(e);Vr(n),n.length>50?(n[0]=t,Vr(n)):n.push(t),localStorage.setItem("ERROR",JSON.stringify(n))}else localStorage.setItem("ERROR",JSON.stringify([t]))},Vr=function(t){t.sort((function(t,e){return t.createTime>e.createTime?1:-1}))},Ir=Object.freeze({__proto__:null,Watermark:class{constructor(t={}){Qn(this,"options"),Qn(this,"container"),Qn(this,"watermarkContent"),Qn(this,"watermarkDom"),Qn(this,"style"),Qn(this,"watermarkTag"),Qn(this,"shadowRoot"),Qn(this,"mutationObserver"),Qn(this,"_isAgainRender",(t=>{if("attributes"===t.type){if(t.attributeName===nr)return!0;if(this.watermarkTag===this._getNodeRandomId(t.target))return!0}return!(!t.removedNodes.length||this.watermarkTag!==this._getNodeRandomId(t.removedNodes[0]))})),Qn(this,"_getNodeRandomId",(t=>{var e,n;return null==(e=null==t?void 0:t.dataset)?void 0:e[(n=nr,n.split("-").slice(1).reduce(((t,e,n)=>0===n?e:`${t}${e[0].toUpperCase()+e.slice(1)}`)))]})),Qn(this,"_destroyMutationObserver",(()=>{this.mutationObserver&&(this.mutationObserver.takeRecords(),this.mutationObserver.disconnect(),this.mutationObserver=null)})),Qn(this,"_getWatermarkDom",(t=>tr(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:o,height:s,rotate:u,opacity:l,fontSize:c,fontStyle:h,fontVariant:f,fontWeight:d,fontFamily:p,fontColor:v,textAlign:m,textBaseline:g,image:y,blindText:_,blindFontSize:b,blindOpacity:w}=t;return new Promise(((t,D)=>{const S=document.createElement("canvas"),x=S.getContext("2d"),T=1*(Number(n)+Number(o)),k=1*(Number(r)+Number(s)),C=Number(a)||Number(n)/2,E=Number(i)||Number(r)/2;if(S.setAttribute("width",`${T}px`),S.setAttribute("height",`${k}px`),x){const n=1*o,r=1*s;if(x.translate(1*C,1*E),x.rotate(Math.PI/180*Number(u)),_&&(x.globalAlpha=w,x.font=`${b}px normal`,x.fillText(_,0,0)),x.globalAlpha=l,y){const e=new Image;return e.crossOrigin="anonymous",e.referrerPolicy="no-referrer",e.src=y,void(e.onload=()=>{x.drawImage(e,0,0,n,r),t({url:x.canvas.toDataURL(),width:T,height:k})})}const i=Array.isArray(e)?e:[e],a=i.map((t=>x.measureText(t).width)),h=Math.max(...a),f=1*Number(c);x.textAlign=m,x.textBaseline=g,x.fillStyle=v,x.font=O(`${f}px`),h>o&&(x.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++)x.fillText(i[t]||"",n/2,p+d*t);t({url:x.canvas.toDataURL(),width:T,height:k})}function O(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",ir(this.style))}return this.watermarkDom.setAttribute(nr,this.watermarkTag),this.watermarkDom})))),Qn(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({},er,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=ar("watermark"),this.mutationObserver=null,this._render()}update(t={}){this.options=Jn(Jn({},this.options),t),this.style.zIndex=this.options.zIndex,this._render()}show(){this.watermarkDom&&(this.style.display="block",this.watermarkDom.setAttribute("style",ir(this.style)))}hide(){this.watermarkDom&&(this.style.display="none",this.watermarkDom.setAttribute("style",ir(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 tr(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(nr,e);const a=Jn({position:"relative"},n);return r||delete a.position,i.setAttribute("style",ir(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",ir({pointerEvents:"none"})),e.setAttribute(nr,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),or&&this.options.monitor&&(this.mutationObserver=new or((t=>{t.forEach((t=>{if(this._isAgainRender(t))return this.destroy(),void this._render()}))})),this.mutationObserver.observe(this.container,rr),this.shadowRoot&&this.mutationObserver.observe(this.shadowRoot,rr))}))}},generateComponentList:ur,generateCaseDataJson:lr,generatePageData:function(t){var e={},n=e.theme,r=void 0===n?null:n,i=e.globalVars,a=void 0===i?null:i,o=e.shareVariableTree,s=void 0===o?null:o,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,v=void 0===p?-1:p,m=e.globalEvents,g=void 0===m?[]:m;return t&&(r=t.theme,l=t.plant),{theme:r,globalVars:a,globalEvents:g,shareVariableTree:s,plant:l,undos:d,undoRedoPointer:v,list:ur(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,o=void 0===a?"":a,s=t.details,u=t.caseClientType,c=void 0===u?"":u,h=t.id,f={caseClientType:c,caseName:n,caseImg:i,caseRemark:o,caseId:void 0===h?"":h,createTime:l().format("YYYY-MM-DD , h:mm:ss"),caseData:lr(s)},d=new Blob([JSON.stringify(f)],{type:"json"});sr.saveAs(d,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:lr(r)}},SizeAdaption:hr,Scale:fr,loadFontResource:dr,loadScript:pr,removeTag:yr,loadTag:gr,loadFont:mr,getDataForEvaluator:b,recursion:fe,setIndex:de,encrypt:function(t){var e=new Xt;return e.setPublicKey("MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEApWni7uLYVV8iyDPTR6Zs\naj+2BHCn4xTzFeVHADzTdtBiFH9i4fKeDK0IfbPV/9TGeRYNfl0qSfdLtU+1ZIzm\npqHppadukmk5+NbBG4Xm/lAZgVt3dUIrSyamxVjwnymN7PLdxaSOS/mgU6SDGMhN\nTM76AXKZZXWMK12UCXvKkh+TkGufcXzLe7LtrvHPLOgcnEED2CkWATuE9g8K9j4T\neOMxhJcHBUmXLgU6Chufa4nBed2899E7jxJa14+J1IDa2ahrDFLZN7H//ZsvwnXq\nxVbxm0k5jyWqfCpg13V7zD3DxNWlo3MIh2fPtIEUDVhugqPd0jPmqquqdBNTnu2I\nGQIDAQAB"),e.encrypt(t)},decrypt:function(t){var e=new Xt;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)},decrypAES:Re,safeEval:Ne,UpdataForContainer:Ie,setActions:Me,genID:Oe,arraySwap:ie,arraySwapDeep:oe,arraySwapForId:ae,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:Ee,selectdArea:Te,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:ye,resetPositionForGroup:function(t,e){var n=e.map((function(t){return t.cid}));e.forEach((function(e){e.pid&&we(e,t)}));var r=Te(n,e);return ye(r,e),{left:r.left,top:r.top,width:r.width,height:r.height}},setPositionForWorld:we,breakUp:_e,findItem:ce,findItemDeep:se,findParentDeep:le,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 o=0;o<(null==a?void 0:a.children.length);o++){if(r+=1,(null==a?void 0:a.children[o]).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 o=i[a][1];n(o)}}else if(t[r].isShow&&t[r].dynamicChildren instanceof Array){var s=t[r].dynamicChildren.find((function(e){return e[0]=t[r].activeDynamic}));s&&s.length&&n(s[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:ke,updataAttribute:ve,updataAttributeForOption:me,isPeer:he,transformPosition:De,upDataGroup:Ce,upDataGroupChildren:function(t,e,n){var r=t.children,a=i.default.cloneDeep(e),o=i.default.cloneDeep(ke(r)),s=a.left,u=a.top;a.width,a.height;var l=o.left,c=o.top,h=o.width,f=o.height,d={left:s+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,o=t.baseData.top,s=e.left,u=e.top,l=i.default.cloneDeep(t.children),c=n||"";if(s-a<0)for(var h=0;h<l.length;h++){(f=l[h]).cid!==c&&(f.baseData.left=f.baseData.left+(a-s))}if(u-o<0)for(h=0;h<l.length;h++){var f;(f=l[h]).cid!==c&&(f.baseData.top=f.baseData.top+(o-u))}t.children=l},genCopyName: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 o=new RegExp("^".concat(i).concat(n,"( [1-9][0-9]*)?$")),s=[];e.forEach((function(t){if(a=o.exec(t)){var e=a[1]?parseInt(a[1]):1;s.push(e)}})),s.sort((function(t,e){return t-e})),r++;for(var u=0,l=s.length;u<l;u++)if(s[u]===r)r++;else if(s[u]>r)break;return i+n+" "+r},resetID:pe,getUrlParams:Ae,updataSizeDeep:ne,resizePosition:Se,resizeListPosition:function(t,e){var n=function(t,r){for(var i,a=0;a<t.length;a++){var o=t[a];if(o.pid!=r){var s=Se(e,o.cid),u=Se(e,o.pid);o.baseData.left=s.left-u.left,o.baseData.top=s.top-u.top}(null===(i=null==o?void 0:o.children)||void 0===i?void 0:i.length)&&n(o.children,o.cid)}};n(t,e)},checkBaseData:re,comToggle:ge,setSessionData:function(t,e){var n=JSON.stringify(e);sessionStorage.setItem(t,n)},getSessionData:ee,globalSourceTemp:Ve,getAncestorsNodes:ue,getInteractive:Fn,executeFilter:function(t){return t.hasOwnProperty("originalValue")||(t.originalValue=t.value),t.converter&&t.converterCode?t.value=Ne(t.converterCode,t.originalValue):t.value=t.originalValue,t},getShareTree:function(t,e){try{var n={},r=[],i=[];return fe(t,(function(t){var a,o,s,u=null===(a=null==t?void 0:t.tmpData)||void 0===a?void 0:a.source;(jn(u,e,t,n),null===(s=null===(o=null==t?void 0:t.tmpData)||void 0===o?void 0:o.actions)||void 0===s?void 0:s.length)&&Me({types:t.tmpData.actions.map((function(t){return t.eventType})),element:t,actions:r,events:i})})),n}catch(t){return console.error(t),{}}},isJSON:zn,getStandardData:Hn,screenshot:function(t){return d(void 0,void 0,void 0,(function(){var e,n,r,i,a,o,s,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,o=void 0,br(n)&&br(r)?[4,xr(n,r,e,i||.5)]:[3,5];case 1:return(s=l.sent())&&200==s.status&&s.data?(o=s.data,[3,4]):[3,2];case 2:return console.warn("截取错误,请检查网络或服务地址配置是否正确,已转换为dom-to-img."),[4,Tr(e,i||.5)];case 3:o=l.sent(),l.label=4;case 4:return[3,7];case 5:return console.warn("地址错误,请检查传入的地址是否争取,已转换为dom-to-img."),[4,Tr(e,i||.5)];case 6:o=l.sent(),l.label=7;case 7:return o?[4,Sr(o,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:kr,toHexString:Cr,toRgbString:Er,toRgbaString:Or,parseHexColor:Ar,parseRgbaColor:Mr,parseColorString:Pr,getColorInfo:function(t){var e=Pr(t);return{hex:Cr(e),rgba:Or(e),rgb:Er(e),rgbaObj:e}},hexToRgba:function(t){var e=Pr(t);return Or(e)},rgbaToHex:function(t){var e=Pr(t);return Cr(e)},watchError:function(t,e){t.config.errorHandler=function(t){console.error("监测到E1002错误"),console.error(t.filename),Rr("E1002",t.name+":"+t.message,e)},window.addEventListener("error",(function(t){t.message?(console.error("监测到E1003错误"),Rr("E1003",t.message,t.filename,e)):(console.error("监测到E1004错误"),Rr("E1004",t.target.currentSrc,t.filename,e))}),!0)},errorHandler:Rr}),Fr=qn();function jr(t,e,n,r){return d(this,void 0,void 0,(function(){var o,s,u,l,c,h;return p(this,(function(d){switch(d.label){case 0:o=t,s=i.default.cloneDeep(n),u=e?e.toLowerCase():"get",d.label=1;case 1:return d.trys.push([1,6,,7]),l={},["post","put"].includes(u)?l.data=s:l.params=s,c=void 0,/.json$/.test(o)?[4,a.default.get(o).then((function(t){return t.data}))]:[3,3];case 2:return c=d.sent(),[3,5];case 3:return[4,Fr(f({method:zr[u],headers:r,url:o,timeout:3e4},l)).then((function(t){return{code:2e4,data:t.data}}))];case 4:c=d.sent(),d.label=5;case 5:return[2,c];case 6:return h=d.sent(),console.error("error:"+h.message),[3,7];case 7:return[2]}}))}))}function Lr(t){return d(this,void 0,void 0,(function(){var e,n,r,i;return p(this,(function(a){switch(a.label){case 0:e=window.anUrl?window.anUrl:"",n=e+(window.agentPath?window.agentPath:"/ds/v1/api-proxy/v1/query"),r=null==t?void 0:t.params,a.label=1;case 1:return a.trys.push([1,3,,4]),r=Hn(null==t?void 0:t.params,!0),[4,Fr({url:n,headers:{"Content-Type":"application/json;charset=UTF-8"},method:"post",data:{body:"post"==(null==t?void 0:t.method)?r:void 0,headers:null==t?void 0:t.headers,method:null==t?void 0:t.method,url:null==t?void 0:t.url}})];case 2:return[2,a.sent()];case 3:return i=a.sent(),console.error("error:"+i.message),[3,4];case 4:return[2]}}))}))}var Yr,zr,Hr=function(t,e,n){var r,a=t.tmpData.source,o=n?n.value.api.agency:null===(r=null==a?void 0:a.api)||void 0===r?void 0:r.agency,s=a.type;if("static"!==s){var u=n?n.value.api:a[s],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 v=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 m=function(t){var n=Object.keys(t);if(null==n?void 0:n.length)for(var r,i,a,o=function(o){if("[object Object]"==Object.prototype.toString.call(t[n[o]]))m(t[n[o]]);else if("[object Array]"==Object.prototype.toString.call(t[n[o]]))t[n[o]]&&t[n[o]].length&&t[n[o]].map((function(t){m(t)}));else if(t[n[o]].toString().includes("@")){var s=e.filter((function(e){return e.mapField==t[n[o]].toString().replace(/{{|}}|@/gm,"")}))[0];s&&((/{|}/.test(s.value)||/\[|]/.test(s.value))&&(s.value=new Function("return "+s.value)()),t[n[o]]=s.value)}else if(r=null,/{{|}}/.test(t[n[o]].toString())){if(a=t[n[o]].toString().replace(/{{(.*?)}}/gm,(function(t,n){if(e.length){r=n.toString();for(var a=0;a<e.length;a++)if(void 0===n||e[a].mapField===n.toString())return i=Object.prototype.toString.call(e[a].value),e[a].value||e[a].originalValue}})),a){if(/{|}/.test(a)||/\[|]/.test(a))if("[object Object]"==a)for(var u=0;u<e.length;u++)r==e[u].mapField&&(a=e[u].value||e[u].originalValue);else a=new Function("return "+a)();t[n[o]]=a,"[object Number]"==i&&(t[n[o]]=Number(a))}a||(t[n[o]]="")}},s=0;s<n.length;s++)o(s)};m(p)}var g={};if(f&&i.default.isString(f)){var y={};try{y=JSON.parse(f)}catch(t){console.warn("转换参数异常")}"[object Array]"!==Object.prototype.toString.call(y)?i.default.assign(g,y):g=y}else i.default.assign(g,f);var _=function(t){Object.keys(t).forEach((function(n){if("[object Object]"==Object.prototype.toString.call(t[n]))_(t[n]);else if("[object Array]"==Object.prototype.toString.call(t[n]))t[n]&&t[n].length&&t[n].map((function(t){_(t)}));else if(t[n].toString().includes("@")){var r=e.filter((function(e){return e.mapField==t[n].toString().replace(/{{|}}|@/gm,"")}))[0];r&&((/{|}/.test(r.value)||/\[|]/.test(r.value))&&(r.value=new Function("return "+r.value)()),t[n]=r.value,c=i.default.replace(c,v[n],r.value))}else{var a,o=null;if(/{{|}}/.test(t[n].toString())){var s=t[n].toString().replace(/{{(.*?)}}/gm,(function(t,n){if(e.length){o=n.toString();for(var r=0;r<e.length;r++)if(void 0===n||e[r].mapField===n.toString())return a=Object.prototype.toString.call(e[r].value),e[r].value||e[r].originalValue}}));if(s){if(/{|}/.test(s)||/\[|]/.test(s))if("[object Object]"==s)for(var u=0;u<e.length;u++)o==e[u].mapField&&(s=e[u].value||e[u].originalValue);else s=new Function("return "+s)();t[n]=s,"[object Number]"==a&&(t[n]=Number(s)),c=i.default.replace(c,v[n],s)}s||(t[n]="",c=i.default.replace(c,v[n],""))}}}))};return _(g),{url:c,requestType:d,params:g,headers:p,agency:o}}return null},Ur=function(t,e,n){void 0===e&&(e=[]),e||(e=[]);var r=Hr(t,e);r&&n(r)},Wr=function(t,e,n,r,i,a){t.then((function(t){/.json$/.test(a)?Gr(e,qr(t,e,n,r),i,t.data):!t||2e4!=t.code&&200!=t.code?Gr(e,qr({error:!0,message:t.msg?t.msg:"data error"},e,n,r),i):n?Gr(e,qr(t.data,e,n,r),i):Gr(e,qr(t.data,e,n,r),i,t.data)})).catch((function(t){Gr(e,qr({error:!0,message:t.msg?t.msg:"data error"},e,n,r),i)}))},qr=function(t,e,n,r){void 0===n&&(n=!0);try{var i=e.tmpData.source,a=i.converse;i.mapFields;return a&&a.use&&n?new Promise((function(e,n){e(b(t,a,0,r))})):new Promise((function(e,n){e(t)}))}catch(t){console.error(t)}},Gr=function(t,e,n,r){e.then((function(e){r?Kr(t,e,n,r):Kr(t,e,n)}))},Kr=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})},Zr=function(t,e,n,r,i,a,o){return void 0===r&&(r=!0),d(void 0,void 0,void 0,(function(){var o,s,u,l,c,h,f,d,v,m,g,y,_,b,w,D,S,x,T,k,C;return p(this,(function(p){return o=function(t){i(t),"AnContainer"===(null==e?void 0:e.viewComName)&&r&&Ie(e)},s=null!==(S=null===(D=null===(w=window.goDevConfig)||void 0===w?void 0:w.deep)||void 0===D?void 0:D.valueOf())&&void 0!==S&&S,"globalData"==t&&t&&(t=null===(x=null==a?void 0:a.value)||void 0===x?void 0:x.type,console.log(t,"00000"),u=null===(k=null===(T=null==e?void 0:e.tmpData)||void 0===T?void 0:T.source.globalData)||void 0===k?void 0:k.id,console.log(u,"sourceId"),l=ee(u),console.log(l,"_data"),l)?(s?(c={tmpData:{source:a.value}},Zr(t,c,n,!0,(function(t){console.log(t,123321),Gr(e,qr(t.data,e,r,n),o)}))):Gr(e,qr(l.data,e,r,n),o),[2]):(h=e.tmpData.source[t],"api"==t?ti(e,n,r,o):"static"==t?(b=void 0,f=void 0,h.originData&&Object.keys(h.originData).length?(b=h.originData,f=b):b=h.data,Gr(e,qr(b,e,r,n),o,f)):"datasource"==t?(d=/({{[\w]*}})|((@)[\w]*)/gm,v=h.inputSql.match(d),m=h.inputSql,v&&v.length&&v.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="[object String]"==Object.prototype.toString.call(t.value)?"null"==t.value||"undefined"==t.value||"true"==t.value?t.value:isNaN(Number(t.value))&&'""'!=t.value&&"''"!=t.value?'"'.concat(t.value,'"'):t.value:t.value)})),m=m.replaceAll(t,r)})),Qr(h.dsName,{dsType:"1",sql:Re(m),filter:h.sqlFilter},e,n,o,r,t)):"staticFile"==t?Qr(h.dsName,{dsType:h.dsType,sql:""},e,n,o,r,t):"indicator"==t?Jr(h.zbId,{},e,n,o,r):"indicatorCQ"==t?(g=a?a.value.indicator:e.tmpData.source.indicator,Xr(g.zbName,g.params,e,n,o,r)):"packData"==t?(y=null===(C=null==e?void 0:e.tmpData)||void 0===C?void 0:C.source,_=null==y?void 0:y.type,b=y[_].data,Gr(e,qr(b,e,r,n),o)):o({cid:e.cid,data:"",message:"发生错误"}),[2])}))}))},$r=function(t,e,n,r,i,a){void 0===n&&(n=!0);try{var o=t.tmpData.source.type,s=void 0;s=r||function(){};var u=null;"globalData"==o&&i&&(u=i.find((function(e){return t.tmpData.source[o].id==e.key}))),Zr(o,t,e,n,s,u,a||[])}catch(t){r&&r(t),console.log("error:11"+t)}},Xr=function(t,e,n,r,i,a){return d(void 0,void 0,void 0,(function(){var o,s,u,l,c,h,f,d,v;return p(this,(function(p){switch(p.label){case 0:return o=window.BaseUrl,s=e.dateType,u=void 0===s?"":s,l=e.endPeriod,c=void 0===l?"":l,h=e.metricsName,f=void 0===h?t:h,d=e.startPeriod,v=void 0===d?"":d,[4,Fr({method:"GET",url:"".concat(o,"ds/v1/metrics/v1/data-alarm?dateType=").concat(u,"&endPeriod=").concat(c,"&metricsName=").concat(f,"&startPeriod=").concat(v),timeout:Wn}).then((function(t){if(2e4==t.code){var e=t.data;e?Gr(n,qr(e,n,a,r),i):(Gr(n,qr({data:e,message:t.msg?t.msg:"data error"},n,a,r),i),i({data:e,message:"发生错误"}))}else i({data:"",message:"发生错误"}),console.error("发生错误"),Gr(n,qr({error:!0,message:t.msg?t.msg:"data error"},n,a,r),i)})).catch((function(t){i(t)}))];case 1:return p.sent(),[2]}}))}))},Jr=function(t,e,n,r,i,a){return d(void 0,void 0,void 0,(function(){var e,o,s,u,l,c,h,f,d,v;return p(this,(function(p){switch(p.label){case 0:e=window.BaseUrl?window.BaseUrl.replace("/management",""):"",o=Ae("YZH_EXCHANGE_TOKEN")?Ae("YZH_EXCHANGE_TOKEN"):null===(v=window.yzhAuth)||void 0===v?void 0:v.getToken(),u=window.gdPassid,s=window.BASE_RELEASE?"".concat(e,"/ds/data-engine/v1/").concat(t,"/zb-query?token=").concat(o,"&passid=").concat(u,"&preview=1"):"".concat(e,"/ds/data-engine/v1/").concat(t,"/zb-query?token=").concat(o,"&passid=").concat(u),l=Hr(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,Fr({method:"POST",url:s,data:{headers:f,param:d},timeout:Wn}).then((function(t){if(2e4==t.code){var e=JSON.parse(t.data);e?Gr(n,qr(e,n,a,r),i):(Gr(n,qr({error:!0,message:t.msg?t.msg:"data error"},n,a,r),i),i({data:e,message:"发生错误"}))}else i({data:"",message:"发生错误"}),console.error("发生错误"),Gr(n,qr({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]}}))}))},Qr=function(t,e,n,r,i,a,o){return d(void 0,void 0,void 0,(function(){var s,u;return p(this,(function(l){switch(l.label){case 0:return"/"==(s=window.BaseUrl?window.BaseUrl.replace("/management",""):"")&&(s=""),e.newEncryption=!0,u={staticFile:{method:"get",params:e,url:"".concat(s,"/ds/v1/file/v1/").concat(t,"/query")},datasource:{method:"post",url:"".concat(s,"/ds/v1/database/v1/").concat(t,"/query"),data:f({},e)}},[4,Fr(f({method:"get",timeout:Wn},u[o])).then((function(t){if(2e4==t.code){var e=Hn(t.data);e?Gr(n,qr(e,n,a,r),i):(Gr(n,qr({error:!0,message:t.msg?t.msg:"data error"},n,a,r),i),i({data:e,message:"发生错误"}))}else i({data:"",message:"发生错误"}),console.error("发生错误"),Gr(n,qr({error:!0,message:t.msg?t.msg:"data error"},n,a,r),i)})).catch((function(t){i(t)}))];case 1:return l.sent(),[2]}}))}))},ti=function(t,e,n,r){void 0===n&&(n=!0);try{var i=Hr(t,e),a=i.url,o=i.requestType,s=i.params,u=i.headers,l=i.agency,c=a.match(/({{[\w]*}})|((@)[\w]*)/gm),h=a;c&&c.length&&c.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)})),h=h.replaceAll(t,r)})),Wr(l?Lr({method:o,url:h,params:s,headers:u}):jr(h,o,s,u),t,n,e,r,h)}catch(t){console.log("error:22"+t)}},ei=function(t,e,n,r,i,a){var o,s;void 0===a&&(a=!0),t&&"api"==(null===(s=null===(o=null==t?void 0:t.tmpData)||void 0===o?void 0:o.source)||void 0===s?void 0:s.type)&&Ur(t,e,(function(o){if(s=o.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(s))return n({cid:t.cid,data:{error:!0,message:o.url+"不是一个正确的地址,请正确填写!"}}),!1;var s,u=o.url,l=o.requestType,c=o.params,h=o.headers;o.agency?Lr({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,qr(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}})})):jr(u,l,c,h).then((function(e){var i=[];if(r){var o=t.tmpData.source,s=o.converse;o.mapFields,s&&s.use&&a?b(e.data,s).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"}(Yr||(Yr={})),function(t){t.get="GET",t.post="POST",t.put="PUT",t.patch="PATCH",t.delete="DELETE"}(zr||(zr={}));var ni=Object.freeze({__proto__:null,Http:function(t,e){return qn(t,e)},axios:a.default,getDataForEvaluator:b,getData:jr,agentData:Lr,getComponentData:Ur,filterData:qr,autoUpdateComData:function(t,e,n){var r,a,o,s,u,l=null===(r=null==t?void 0:t.tmpData)||void 0===r?void 0:r.source,c=null===(o=null===(a=l[null==l?void 0:l.type])||void 0===a?void 0:a.autoUpdate)||void 0===o?void 0:o.open,h=null===(u=null===(s=l[null==l?void 0:l.type])||void 0===s?void 0:s.autoUpdate)||void 0===u?void 0:u.time;c&&i.default.isNumber(h)&&h>0&&setInterval((function(){$r(t,e,!0,n)}),1e3*h)},updateComData:$r,refreshData:ei,get ContentType(){return Yr},get HttpMethod(){return zr}});function ri(t){var e=[],n=[];fe(i.default.cloneDeep(t),(function(t){var r,i;(console.log(t,"item"),null===(i=null===(r=null==t?void 0:t.tmpData)||void 0===r?void 0:r.actions)||void 0===i?void 0:i.length)&&Me({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 ii={addGlobalSource:function(t,e){var n=e.name,r=e.value;t.globalSource.push({key:Oe(),name:n,value:r})},editGlobalSource:function(t,e){var n=this,r=e.key,a=e.value,o=t.globalSource.find((function(t){return t.key==r}));o&&(o.name=e.name,o.value=a,fe(i.default.cloneDeep(t.list),(function(e){var i,a,o;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 s=null===(o=null==e?void 0:e.tmpData)||void 0===o?void 0:o.source.globalData,u=(null==e?void 0:e.children)?null==e?void 0:e.children:null;(null==s?void 0:s.id)==r&&$r(e,t.globalVars,!0,(function(t){n.commit("GoCom/updataSourceForComponent",t)}),t.globalSource,u)}})))},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){t.shareVariable[e.key]=f({},e)},addGoRunVar:function(t,e){try{var n=Fn(t.list,t.globalConstant,t.sysConst);t.globalVars=n.globalVars,t.eventsComs=n.eventsComs}catch(t){console.warn(t)}},addGoVar:function(t,e){try{var n=e.mapField,r=t.globalConstant.filter((function(t){return t.mapField==n})).length;if(!n||r)throw new Error("添加失败!变量已经存在!");t.globalConstant.push(e);var i=Fn(t.list,t.globalConstant,t.sysConst);t.globalVars=i.globalVars,t.eventsComs=i.eventsComs}catch(t){console.warn(t)}},copyGoVar:function(t,e){try{for(var n=e.mapField,r=(n.toString().trim(),t.globalConstant.filter((function(t){return t.mapField.includes(n)}))),a=1,o=0;o<r.length;o++)a++;var s="".concat(n," (").concat(a,")"),u=t.globalConstant.find((function(t){return t.mapField==n}));if(n&&u){var l=i.default.cloneDeep(u);l.mapField=s,t.globalConstant.push(l);var c=Fn(t.list,t.globalConstant,t.sysConst);t.globalVars=c.globalVars,t.eventsComs=c.eventsComs}}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;var o=Fn(t.list,t.globalConstant,t.sysConst);t.globalVars=o.globalVars,t.eventsComs=o.eventsComs}catch(t){console.warn(t)}},editGoVar:function(t,e){try{var n=e.mapField,r=(e.value,e.mapping,e.converter),i=e.converterCode,a=e.model,o=e.des,s=e.originalValue,u=e.fork,l=e.forkValue,c=e.update;if(u&&-1==t.globalVars.findIndex((function(t){return t.mapField==n})))e.model=1,t.globalConstant.push(e);else if(0==a)fe(t.list,(function(t){var e,a,u=null===(e=null==t?void 0:t.tmpData)||void 0===e?void 0:e.actions;if(null==u?void 0:u.length)for(var l=u.filter((function(t){return"vars"===t.behave})),c=0,h=l;c<h.length;c++){var f=h[c];(null===(a=f.vars)||void 0===a?void 0:a.length)&&f.use&&f.vars.filter((function(t){return t.mapField===n})).forEach((function(t){t.value=s,t.originalValue=s,t.des=o,r?(t.converter=r,t.converterCode=i):(t.converter=!1,t.converterCode="return data")}))}}));else if(2==a)for(var h=0,f=t.sysConst;h<f.length;h++){(v=f[h]).mapField===n&&(l&&(v.forkValue=l),v.des=o,v.originalValue=s,v.value=s,r?(v.converter=r,v.converterCode=i):(v.converter=!1,v.converterCode="return data"))}else for(var d=0,p=t.globalConstant;d<p.length;d++){var v;(v=p[d]).mapField===n&&(v.des=o,l&&(v.forkValue=l),v.originalValue=s,v.value=s,r?(v.converter=r,v.converterCode=i):(v.converter=!1,v.converterCode="return data"))}var m=Fn(t.list,t.globalConstant,t.sysConst);t.globalVars=m.globalVars,t.eventsComs=m.eventsComs,c&&this.commit("GoCom/updatComsForVar",n)}catch(t){console.warn(t)}},goEditVar:function(t,e){var n=e.key,r=e.value,i=t.globalVars.find((function(t){return t.mapField==n}));i&&(i.originalValue=r,i.update=!0,t.globalVars.forEach((function(t){t.mapField==n&&(t.originalValue=r,t.value=r)})),this.commit("GoCom/editGoVar",i))},goDelShareVar:function(t,e){delete t.shareVariable[e]},signal:function(t,e){},goSynchroDataAll:function(t,e){t.list=i.default.cloneDeep(e)},goSynchroDataForOption:function(t,e){if(t){var n=e.cid,r=e.value,i=se(t.list,n);"boolean"!=typeof i&&i&&me(i,r)}this.commit("GoCom/execute")},goSynchroData:function(t,e){if(t){var n=e.cid,r=e.attr,a=e.value,o=e.attrModel,s=se(t.list,n);if("boolean"!=typeof s){if(s&&ve(s,r,a,o),"actions"===r.toLowerCase()){var u=t.list,l=i.default.uniqWith(i.default.concat(ri(u).actions,ri(t.caseList).actions),i.default.isEqual),c=i.default.uniqWith(i.default.concat(ri(u).events,ri(t.caseList).events),i.default.isEqual);t.globalVars=v(v(v([],l,!0),t.globalConstant,!0),t.sysConst,!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(!s.tmpData.source)return!1;var h=s.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,"")})),m=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(s.cid);var r=t.shareVariableTree[n];t.shareVariableTree[n]=i.default.uniq(r)}else t.shareVariableTree[n]=[],t.shareVariableTree[n].push(s.cid)},g=0;g<p.length;g++)m(g)}}}}this.commit("GoCom/execute")},goUpdataSysVars:function(t,e){var n={U_CITY:"cityCode",U_COUNTY:"countyCode",U_PROVINCE:"provinceCode",U_PHONE:"userPhone"},r=t.sysConst,i=Object.keys(n);r.map((function(t){if((null==t?void 0:t.name)&&(null==i?void 0:i.includes(t.name))){var r=n[t.name];t.value=e[r],t.originalValue=e[r]}return t})),t.sysConst=r,t.globalVars=Fn(t.list,t.globalConstant,t.sysConst).globalVars},resetGlobalVars:function(t){t.globalVars=t.sysConst,t.globalConstant=[]},updateGlobalRelatedVars:function(t,e){var n=e.run,r=e.gvData;return n.length&&n.forEach((function(t){var e=r.filter((function(e){return e.mapField==t.mapField||e.fork&&e.forkValue==t.mapField}));if(e.length)for(var n=0,i=e;n<i.length;n++){var a=i[n],o=t.value;a.mapField==t.mapField?a.value=o:a.fork&&t.mapField==a.forkValue?a.converter&&a.converterCode?(a.originalValue=o,a.value=Ne(a.converterCode,o)):(a.originalValue=o,a.value=o):r.push(t)}})),r}},ai={updataList:function(t,e){var n=e.cid,r=Vn(e.list,(function(t){var e=se(t,n),r=e.pid,i=ue(t,n),a=function(t){for(var e=0;e<t.length;e++){var n=t[e];Ce(n,n.baseData,0,!0)}},o=function(t){return t.reduce((function(t,e){return{left:t.left+e.baseData.left,top:t.top+e.baseData.top}}),{left:0,top:0})},s=function(t,e){void 0===e&&(e=t);for(var n=0;n<t.length;n++){var r=t[n];if(r.children&&Array.isArray(r.children))return 0===r.children.length?(e.splice(n,1),!0):(s(r.children,r.children)&&0===r.children.length&&e.splice(n,1),!0)}};if(i.length>0)if(e.pid=i[0].cid,r){var u=v([se(t,r)],ue(t,r),!0),l=o(u),c=o(i);e.baseData=f(f({},e.baseData),De(e.baseData,l)),e.baseData=f(f({},e.baseData),De(e.baseData,c,1)),a(u),a(i)}else{c=o(i);e.baseData=f(f({},e.baseData),De(e.baseData,c,1)),a(i)}r&&0==i.length&&(e.pid="",function(e,n){var r=ue(t,n),i=se(t,n);if(0===r.length)e.baseData=f(f({},e.baseData),De(e.baseData,i.baseData));else{r=v([i],r,!0);var s=o(r);e.baseData=f(f({},e.baseData),De(e.baseData,s))}a(v([i],r,!0))}(e,r)),s(t),de(t)}));t.list=r},updataListForContrast:function(t,e){var n=e.cid,r=e.list,a=se(r,n);le(r,n);var o=le(t.list,n);if(!a.pid){a.pid=o.cid;var s=i.default.cloneDeep(a.baseData),u=De(a.baseData,o.baseData,1);Object.assign(a.baseData,u),Ce(o,s)}de(t.list)},updateTree:function(t){for(var e=t.list,n=0;n<e.length;n++){var r=e[n];if(r.pid)(s=se(e,r.pid))&&Object.assign(r.baseData,De(r.baseData,s.baseData));if(r.children)for(var a=0;a<r.children.length;a++){var o=r.children[a];if(o.pid!=r.cid){var s=se(e,o.pid);if(i.default.cloneDeep(o.baseData),s){Object.assign(o.baseData,De(o.baseData,s.baseData));var u=De(o.baseData,r.baseData,1);Object.assign(o.baseData,u),Ce(r,r.baseData)}o.pid=r.cid}}}de(e)}},oi={reset:function(t){t.selectd=[],t.list=[],t.plant=null,t.tw=null,t.watermark=null,t.endnotes=null,t.globalConstant=[]},setFonts:function(t,e){t.resource.fonts.push({fontName:e.name,fontUrl:e.src}),mr(t.resource)},setCaseInfo:function(t,e){t.caseInfo=e},setPageId:function(t,e){t.pageId=e},pagePush:function(t,e){try{var n=e.type,r=e.value,i=["name","path","id"];if(!i.includes(n))throw new Error("页面跳转错误!".concat(n," 不是一个正确的参数 请填以下参数 ").concat(i.join(",")));if(!r)throw new Error("页面跳转错误!".concat(n," 不是一个正确的参数 请填正确的页面路径或者页面名称"));t.toPage={type:n,value:r}}catch(t){console.warn(t)}},updatComs:function(t,e){var n=this,r=se(t.list,e);if("boolean"!=typeof r){var i=(null==r?void 0:r.children)?null==r?void 0:r.children:null;$r(r,t.globalVars,!0,(function(t){n.commit("GoCom/updataSourceForComponent",t)}),null,i)}},updatComsForVar:function(t,e){var n=t.globalVars.map((function(t){var n,r;if((null===(n=null==t?void 0:t.forkValue)||void 0===n?void 0:n.length)&&(null===(r=null==t?void 0:t.forkValue)||void 0===r?void 0:r.includes(e))||t.forkValue==e)return t.mapField})).filter((function(t){return t})),r=[e];(null==n?void 0:n.length)&&(r=i.default.uniq(v([e],n,!0)));for(var a=[],o=0,s=r;o<s.length;o++){var u=s[o];t.shareVariableTree[u]&&a.push.apply(a,t.shareVariableTree[u])}if(null==a?void 0:a.length)for(var l=0,c=a;l<c.length;l++){var h=c[l];this.commit("GoCom/updatComs",h)}},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,yr(),gr(t.resource)},updataResource:function(t){yr(),gr(t.resource)},resetResource:function(t){t.resource={jspaths:[],csspaths:[],otherpaths:[]}},setData:function(t,e){t.selectd=e.selectd},setList:function(t,e){t.list=e,de(t.list)},saveDynamicChildren:function(t,e){var n=e.cid,r=e.data,i=e.name,a=t.pages[t.pageIndex].list,o=se(a,n);o&&(o.activeDynamic=i,o.dynamicChildren instanceof Array&&(o.dynamicChildren=new Map(o.dynamicChildren)),o.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),de(t.list)},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=se(i,n);"boolean"!=typeof a&&Object.assign(a,r)},updataComponentForCaseList:function(t,e){var n=e.cid,r=e.data,i=t.caseList,a=se(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=se(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=se(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=se(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=se(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=se(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){we(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,o=n.origin,s=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 he(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=se(t.list,e);n.pid&&(se(t.list,n.pid).toggle=!0);s||(n.toggle=!0)})),t.selectdChangeOrigin=o||""},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){Ee(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",[]),n.lines={h:[],v:[]}),r?t.list.push(n):t.list.unshift(n),t.menuList=i.default.cloneDeep(t.list),de(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 o=se(t.list,a);r?(o.children=[],o.children.push(n)):o.children.unshift(n)}else r?t.list.splice(0,1,n):t.list.unshift(n);t.menuList=i.default.cloneDeep(t.list),de(t.list),this.commit("GoCom/execute")},addMyComs:function(t,e){var n;try{var r=e.data,a=e.shareVariableTree,o=e.globalVars,s=e.globalEvents;t.globalVars=i.default.uniq(i.default.concat(i.default.cloneDeep(t.globalVars),o)),t.globalEvents=i.default.uniq(i.default.concat(i.default.cloneDeep(t.globalEvents),s));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?(pe(r),(n=t.list).unshift.apply(n,r)):(pe([r]),t.list.unshift(r)),t.menuList=i.default.cloneDeep(t.list),de(t.list),this.commit("GoCom/execute")}catch(t){}},addStateChildren:function(t,e){var n=se(t.list,e.pid);n&&n.stateChildren.push(e)},addDynamicChildren:function(t,e){var n=se(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=se(r,e[0]),o=se(r,e[1]),s=se(r,a.pid),u={},l=0,c=0;if(o)if("selectContainer"==o.componentType){var h=se(r,e[1]);s?(l=i.default.findIndex(s.children,(function(t){return t.cid==e[0]})),u=s.children[l],s.children=s.children.filter((function(t){return t.cid!==u.cid}))):(u=se(r,e[0]),r=r.filter((function(t){return t.cid!==u.cid}))),u.cid=Oe(),u.pid=h.cid,h.children.push(u)}else if(a.pid||o.pid)if(s)if(l=i.default.findIndex(s.children,(function(t){return t.cid==e[0]})),u=s.children[l],a.pid!==o.pid){h=se(r,o.pid);c=i.default.findIndex(h.children,(function(t){return t.cid==e[1]}));f=h.children[c];u.cid=Oe(),u.pid=h.cid,f.cid=Oe(),f.pid=s.cid,s.children.splice(l,1,f),h.children.splice(c,1,u)}else c=i.default.findIndex(s.children,(function(t){return t.cid==e[1]})),(n=s.children).splice.apply(n,v([c,1],s.children.splice(l,1,s.children[c]),!1));else{var h=se(r,o.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=se(r,a.cid);var f=h.children[c];u.cid=Oe(),u.pid=h.cid,f.cid=Oe(),f.pid=null,r.splice(l,1,f),h.children.splice(c,1,u)}else ae(t.list,e[0],e[1]);else l=i.default.findIndex(s.children,(function(t){return t.cid==e[0]})),u=s.children[l],s.children.splice(l,1),u.cid=Oe(),u.pid=null,r.push(u);t.list=r,de(t.list)}catch(t){console.warn("组件位置交换发生错误",t)}},changeDynamicState:function(t,e){var n=se(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,o=e.value,s=se(t.list,i);s&&(null===(r=null===(n=null==s?void 0:s.tmpData)||void 0===n?void 0:n.option)||void 0===r?void 0:r.hasOwnProperty(a))&&(s.tmpData.option[a]=o)}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),de(t.list),this.commit("GoCom/execute")},updataName:function(t,e){var n=se(t.list,e.cid);n&&(n.name=e.name)},setDynamicActive:function(t,e){e.cid;var n=e.name,r=se(t.list,e.cid);r&&"dynamicComponent"==r.componentType&&(r.activeDynamic=n)},updataScroll:function(t,e){e.cid;var n=e.data,r=se(t.list,e.cid);r&&"dynamicComponent"==r.componentType&&(r.srcollInfo={use:!!(null==n?void 0:n.use)&&(null==n?void 0:n.use),data:(null==n?void 0:n.data)?null==n?void 0:n.data:null})},updataDySetting:function(t,e){e.cid;var n=e.data,r=se(t.list,e.cid);r&&"dynamicComponent"==r.componentType&&(r.dyOption=n)},setCurrentEdited:function(t,e){if(e){var n=se(t.list,e);if("boolean"!=typeof n){var r=_e(n);n.children=r}t.currentEditerCid=e}else t.currentEditerCid=""},setDynamicLine:function(t,e){var n=i.default.cloneDeep(t.list),r=se(n,e.cid);n.length&&"boolean"!=typeof r&&(r.lines=Object.assign({},r.lines,e.lines)),t.list=n}},si={layout:function(t,e){var n=function(t,e){try{var n=t.map((function(t){var n=se(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})),o=(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=o-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})),o=(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=o-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)}}},ui={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:[]},t.globalVars=t.sysConst},setCurrentPageIndex:function(t,e){var n=t.globalEvents,r=t.globalVars,i=t.list,a=t.name,o=t.theme,s=t.plant,u=t.shareVariableTree,l=t.resource;t.pages[t.pageIndex]={globalEvents:n,globalVars:r,list:i,name:a,theme:o,plant:s,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=void 0===n?[]:n,i=t.list,a=t.name,o=t.theme,s=t.plant,u=t.shareVariableTree,l=t.resource;t.pages[t.pageIndex]={globalEvents:e,globalVars:r,list:i,name:a,theme:o,plant:s,shareVariableTree:u,resource:l}},getCurrentPageData:function(t){var e=t.globalEvents,n=t.globalVars,r=t.list,i=t.name,a=t.theme,o=t.plant,s=t.shareVariableTree,u=t.resource;t.pages[t.pageIndex]={globalEvents:e,globalVars:n,list:r,name:i,theme:a,plant:o,shareVariableTree:s,resource:u}}},li={segmentationContainer:function(t,e){var n=i.default.cloneDeep(t.list),r=e.containerData,a=e.direction,o=[];if("del"==a)if(r.pid){var s=function(t){if(t.length)for(var e=0;e<t.length;e++)t[e].hasOwnProperty("children")&&t[e].children.length&&t[e].children.map((function(n){t[e].cid=n.pid})),r.pid===t[e].cid?t[e].children.length&&(t[e].children.map((function(t){t.cid!==r.cid&&t.hasOwnProperty("children")&&t.children.length&&(o=t.children)})),t[e].children=[],o.length&&(t[e].children=o)):t[e].hasOwnProperty("children")&&s(t[e].children)};n.length&&s(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&&((o=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:0,unit:"px"},{val:0,unit:"px"},{val:0,unit:"px"},{val:0,unit:"px"}],bgColor:{alpha:1,blue:0,green:0,red:0,flag:1,style:"transparent"},borderRadius:[{val:0,unit:"px"},{val:0,unit:"px"},{val:0,unit:"px"},{val:0,unit:"px"}],margins:[{val:0,unit:"px"},{val:0,unit:"px"},{val:0,unit:"px"},{val:0,unit:"px"}]}},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:Oe(),pid:t[e].cid,nestIndex:0,children:[],isTop:!1,isCol:"col"==a,isRow:"col"!=a,isDragged:!1,grandParentId:r.pid});o.length&&(o[0].cid=Oe(),o[0].pid=t[e].children[0].cid,t[e].children[0].children=o)}else t[e].hasOwnProperty("children")&&u(t[e].children)};n.length&&u(n)}else{var l=se(n,r.cid);if(l){l.direction=a,1===l.children.length&&(o=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:0,unit:"px"},{val:0,unit:"px"},{val:0,unit:"px"},{val:0,unit:"px"}],bgColor:{alpha:1,blue:0,green:0,red:0,flag:1,style:"transparent"},imgOpt:"",bgScaleOpt:3,borderRadius:[{val:0,unit:"px"},{val:0,unit:"px"},{val:0,unit:"px"},{val:0,unit:"px"}],margins:[{val:0,unit:"px"},{val:0,unit:"px"},{val:0,unit:"px"},{val:0,unit:"px"}]}},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:Oe(),pid:l.cid,nestIndex:0,children:[],isTop:!1,isCol:"col"==a,isRow:"col"!=a,isDragged:!1,grandParentId:r.pid});o.length&&(o[0].cid=Oe(),o[0].pid=l.children[0].cid,l.children[0].children=o)}}t.list=n}},ci={updataList:function(t,e){var n=t.commit;e&&n("updataList",e),n("updateTree")},updataBaseData:function(t,e){var n=t.commit;e&&n("updataBaseData",e)},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)},updatComs:function(t,e){var n=t.commit;setTimeout((function(){n("updatComs",e)}))},updatComsForVar:function(t,e){var n=t.dispatch,r=t.state,a=r.globalVars.map((function(t){var n,r;if((null===(n=null==t?void 0:t.forkValue)||void 0===n?void 0:n.length)&&(null===(r=null==t?void 0:t.forkValue)||void 0===r?void 0:r.includes(e))||t.forkValue==e)return t.mapField})).filter((function(t){return t})),o=[e];(null==a?void 0:a.length)&&(o=i.default.uniq(v([e],a,!0)));for(var s=[],u=0,l=o;u<l.length;u++){var c=l[u];r.shareVariableTree[c]&&s.push.apply(s,r.shareVariableTree[c])}if(null==s?void 0:s.length)for(var h=0,f=s;h<f.length;h++){n("updatComs",f[h])}},goEditVar:function(t,e){var n=t.commit,r=t.state,i=e.key,a=e.value,o=r.globalVars.find((function(t){return t.mapField==i}));o.fork?console.warn("禁止修改,有引用值的变量!"):o&&(o.originalValue=a,o.update=!0,n("editGoVar",o))}},hi={getCurrentPage:function(t){return t.pages.length?t.pages[t.pageIndex]:[]},globalSourceTree:function(t){if(t.list.length&&t.globalSource.length){var e=[];return fe(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[]}},fi={namespaced:!0,state:c,mutations:f(f(f(f(f(f(f(f(f({},m),In),Un),ii),ai),oi),si),ui),li),actions:ci,getters:hi},di=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 pi(t.storeModule,e)},t.prototype.mapGetters=function(e){return mi(t.storeModule,e)},t.prototype.mapMutations=function(e){return vi(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}(),pi=yi((function(t,e){var n;return gi(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=_i(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})),vi=yi((function(t,e){var n;return gi(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=_i(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})),mi=yi((function(t,e){var n={};return gi(e).forEach((function(e){var r=e.key,i=e.val;i=t+i,n[r]=function(){if(!t||_i(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 gi(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 yi(t){return function(e,n){return"string"!=typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function _i(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 bi=function(){function t(t){var e=this;if(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=Oe(),t){Object.keys(t).forEach((function(n){e[n]=t[n]}));["AnEchartsMap","AnMaptalks","AnEchartsMap1","AnArcgisMapBase","AnAMap1","AnCesium","AnThreeMap3DChina","AnThreeMapForCesium","AnThreeMap","AnGisMap","AnMineMap","MineMapMarkerLayer","MineMapClusterLayer","AnChina3D"].includes(t.viewComName)&&(this.componentType="MultiStateComponent"),"AnDynamic"!==t.viewComName&&"AmDynamic"!==t.viewComName&&"AnContainer"!==t.viewComName&&"AnContainer"!==t.viewComName||(this.componentType="dynamicComponent")}}return t.prototype.setIndex=function(t){this.z=t},t}(),wi=function(){function t(t){this.vueServer=t,this.loadScript=pr}return t.setStore=function(t){this.store=t},t.prototype.loadComponents=function(t){var e=t&&t.list?t.list:[];fe(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}(),Di=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,o=window.indexedDB;if(o)if((null==r?void 0:r.length)<1)console.error("表名不能为空");else{var s=o.open(n,i);s.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)},s.onsuccess=function(t){var n;e.storage=null===(n=t.target)||void 0===n?void 0:n.result,"function"==typeof a&&a(t)},s.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}(),Si=function(){function t(){this.VueServer=new di}return t.getInstance=function(){return this.instance||(this.db=new Di({dbName:"AnovGo",tables:["logs"]}),this.instance=new t),this.instance},t.prototype.getAppStore=function(){return t.store},t.setAppStore=function(e){t.store=e,di.setAppStore(e),wi.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 bi(t);e?this.add(n.cid,n,!0):this.add(n.cid,n)},t.prototype.renderForParent=function(t,e,n){var r=new bi(t);void 0!==n?this.addForParent(r.cid,r,e,n):this.addForParent(r.cid,r,e)},t.prototype.reversal=function(t){new wi(new di).loadComponents(t)},t.prototype.emitEvent=function(t,e){var n=this,r=this.VueServer.callState("globalEvents"),a=this.VueServer.callState("globalVars"),o=this.VueServer.callState("shareVariableTree"),s=this.VueServer.callState("globalSource");!function(t,e,n,r,a,o,s,u,l){for(var c=a.cid,h=a.actions.eventName,f=2===a.actions.mode,d=t.filter((function(t){return t.id===c&&t.eventType===h&&(!f||parseInt(t.index)+1===parseInt(a.index))})),p=function(t,e){return(null==t?void 0:t.field)&&a[null==t?void 0:t.field],(null==t?void 0:t.forkValue)&&a[null==t?void 0:t.forkValue],(null==t?void 0:t.field)&&(null==a?void 0:a.data)&&(null==a||a.data[null==t?void 0:t.field]),(null==t?void 0:t.forkValue)&&(null==a?void 0:a.data)&&(null==a||a.data[null==t?void 0:t.forkValue]),t.id===e&&!(null==t?void 0:t.forkValue)},v=function(t,e){return Array.isArray(e)?e.some((function(e){return t&&(void 0!==t[e]||t.hasOwnProperty(e))})):"string"==typeof e?t&&(void 0!==t[e]||t.hasOwnProperty(e)):void 0},m=function(t,e){var n,i;if(v(t,null==e?void 0:e.field)||v(t,null==e?void 0:e.forkValue))i=t[null==e?void 0:e.field]?t[e.field]:"";else if(v(t.data,null==e?void 0:e.field)||v(t.data,null==e?void 0:e.forkValue))i=t.data[null==e?void 0:e.field]?t.data[e.field]:"";else for(var a=se(r,c),o=0,s=(null===(n=null==a?void 0:a.tmpData)||void 0===n?void 0:n.actions)||[];o<s.length;o++){var u=s[o].vars.find((function(t){return(null==t?void 0:t.mapField)===(null==e?void 0:e.mapField)}));if(u){i=u.value;break}}return i},g=[],y=0,_=e;y<_.length;y++)if(p(P=_[y],c)&&P.type==h){var b=m(a,P),w=void 0!==b?b:P.value;P.value=w,P.converter&&P.converterCode?(P.originalValue=w,P.value=Ne(P.converterCode,w)):(P.originalValue=w,P.value=w);for(var D=0,S=e;D<S.length;D++){var x=S[D];if(x.id!=c&&!(null==P?void 0:P.forkValue)&&x.mapField==P.mapField){var T=void 0!==b?b:x.value;x.value=T,x.converter&&x.converterCode?(x.originalValue=T,x.value=Ne(x.converterCode,T)):(x.originalValue=T,x.value=T)}}g.push(P)}for(var k=e.filter((function(t){return g&&(g.find((function(e){return e.mapField==t.mapField}))||g.find((function(e){return e.mapField==t.forkValue}))||g.find((function(e){return Array.isArray(t.forkValue)&&t.forkValue.includes(e.mapField)})))})),C=function(t){if(!n)return"break";var i=n[t.mapField]||[];if(t.fork)if(Array.isArray(t.forkValue))t.originalValue=t.forkValue.map((function(t){return e.find((function(e){return e.mapField==t})).value}));else{var a=e.find((function(e){return e.mapField==t.forkValue}));t.originalValue=a.value}t.converter&&t.converterCode?t.value=Ne(t.converterCode,t.originalValue):t.value=t.originalValue;for(var o=function(n){t.eventSourceId=n;var i=se(r,n);(null==t?void 0:t.delayUpdate)||setTimeout((function(){$r(i,e,!0,s,l,r)}))},u=0,c=i;u<c.length;u++)o(c[u])},E=0,O=k=i.default.uniqBy(k,"mapField");E<O.length&&"break"!==C(P=O[E]);E++);for(var A=0,M=d;A<M.length;A++){var P;switch((P=M[A]).type){case"link":window.open(P.link,P.target);break;case"page":u&&u(P);break;case"dynamic":for(var B=0,R=P.dynamic||[];B<R.length;B++){var N=R[B];if(P.id===a.cid){var V=se(r,N.pid);V&&(V.activeDynamic=N.name,V.isShow=N.visible||!f||P.index===a.index-1,o({cid:V.cid,flag:N.visible}))}}break;case"toggle":for(var I=0,F=P.children||[];I<F.length;I++){var j=(H=F[I]).visible&&(!f||P.index===a.index-1);o({cid:H.cid,flag:j})}break;case"update":for(var L=function(t){var n=se(r,t.cid);setTimeout((function(){$r(n,e,!0,s)}))},Y=0,z=P.children||[];Y<z.length;Y++){var H;L(H=z[Y])}}}}(r,a,o,this.VueServer.callState("list"),t,(function(t){n.VueServer.callMutation("changeShow",t)}),(function(t){n.VueServer.callMutation("updataSourceForComponent",t)}),e,s)},t}();function xi(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ti(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}
32
+ (n=Qt).mode.CTRGladman=function(){var t=n.lib.BlockCipherMode.extend();function e(t){if(255==(t>>24&255)){var e=t>>16&255,n=t>>8&255,r=255&t;255===e?(e=0,255===n?(n=0,255===r?r=0:++r):++n):++e,t=0,t+=e<<16,t+=n<<8,t+=r}else t+=1<<24;return t}function r(t){return 0===(t[0]=e(t[0]))&&(t[1]=e(t[1])),t}var i=t.Encryptor=t.extend({processBlock:function(t,e){var n=this._cipher,i=n.blockSize,a=this._iv,o=this._counter;a&&(o=this._counter=a.slice(0),this._iv=void 0),r(o);var s=o.slice(0);n.encryptBlock(s,0);for(var u=0;u<i;u++)t[e+u]^=s[u]}});return t.Decryptor=i,t}(),n.mode.CTRGladman)})),u((function(t,e){var n,r,i;t.exports=((i=Qt).mode.OFB=(n=i.lib.BlockCipherMode.extend(),r=n.Encryptor=n.extend({processBlock:function(t,e){var n=this._cipher,r=n.blockSize,i=this._iv,a=this._keystream;i&&(a=this._keystream=i.slice(0),this._iv=void 0),n.encryptBlock(a,0);for(var o=0;o<r;o++)t[e+o]^=a[o]}}),n.Decryptor=r,n),i.mode.OFB)})),u((function(t,e){var n,r;t.exports=((r=Qt).mode.ECB=((n=r.lib.BlockCipherMode.extend()).Encryptor=n.extend({processBlock:function(t,e){this._cipher.encryptBlock(t,e)}}),n.Decryptor=n.extend({processBlock:function(t,e){this._cipher.decryptBlock(t,e)}}),n),r.mode.ECB)})),u((function(t,e){var n;t.exports=((n=Qt).pad.AnsiX923={pad:function(t,e){var n=t.sigBytes,r=4*e,i=r-n%r,a=n+i-1;t.clamp(),t.words[a>>>2]|=i<<24-a%4*8,t.sigBytes+=i},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},n.pad.Ansix923)})),u((function(t,e){var n;t.exports=((n=Qt).pad.Iso10126={pad:function(t,e){var r=4*e,i=r-t.sigBytes%r;t.concat(n.lib.WordArray.random(i-1)).concat(n.lib.WordArray.create([i<<24],1))},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},n.pad.Iso10126)})),u((function(t,e){var n;t.exports=((n=Qt).pad.Iso97971={pad:function(t,e){t.concat(n.lib.WordArray.create([2147483648],1)),n.pad.ZeroPadding.pad(t,e)},unpad:function(t){n.pad.ZeroPadding.unpad(t),t.sigBytes--}},n.pad.Iso97971)})),u((function(t,e){var n;t.exports=((n=Qt).pad.ZeroPadding={pad:function(t,e){var n=4*e;t.clamp(),t.sigBytes+=n-(t.sigBytes%n||n)},unpad:function(t){var e=t.words,n=t.sigBytes-1;for(n=t.sigBytes-1;n>=0;n--)if(e[n>>>2]>>>24-n%4*8&255){t.sigBytes=n+1;break}}},n.pad.ZeroPadding)})),u((function(t,e){var n;t.exports=((n=Qt).pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding)})),u((function(t,e){var n;t.exports=(n=Qt,function(t){var e=n,r=e.lib.CipherParams,i=e.enc.Hex;e.format.Hex={stringify:function(t){return t.ciphertext.toString(i)},parse:function(t){var e=i.parse(t);return r.create({ciphertext:e})}}}(),n.format.Hex)})),u((function(t,e){var n;t.exports=(n=Qt,function(){var t=n,e=t.lib.BlockCipher,r=t.algo,i=[],a=[],o=[],s=[],u=[],l=[],c=[],h=[],f=[],d=[];!function(){for(var t=[],e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;var n=0,r=0;for(e=0;e<256;e++){var p=r^r<<1^r<<2^r<<3^r<<4;p=p>>>8^255&p^99,i[n]=p,a[p]=n;var v=t[n],m=t[v],g=t[m],y=257*t[p]^16843008*p;o[n]=y<<24|y>>>8,s[n]=y<<16|y>>>16,u[n]=y<<8|y>>>24,l[n]=y,y=16843009*g^65537*m^257*v^16843008*n,c[p]=y<<24|y>>>8,h[p]=y<<16|y>>>16,f[p]=y<<8|y>>>24,d[p]=y,n?(n=v^t[t[t[g^v]]],r^=t[t[r]]):n=r=1}}();var p=[0,1,2,4,8,16,32,64,128,27,54],v=r.AES=e.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var t=this._keyPriorReset=this._key,e=t.words,n=t.sigBytes/4,r=4*((this._nRounds=n+6)+1),a=this._keySchedule=[],o=0;o<r;o++)o<n?a[o]=e[o]:(l=a[o-1],o%n?n>6&&o%n==4&&(l=i[l>>>24]<<24|i[l>>>16&255]<<16|i[l>>>8&255]<<8|i[255&l]):(l=i[(l=l<<8|l>>>24)>>>24]<<24|i[l>>>16&255]<<16|i[l>>>8&255]<<8|i[255&l],l^=p[o/n|0]<<24),a[o]=a[o-n]^l);for(var s=this._invKeySchedule=[],u=0;u<r;u++){if(o=r-u,u%4)var l=a[o];else l=a[o-4];s[u]=u<4||o<=4?l:c[i[l>>>24]]^h[i[l>>>16&255]]^f[i[l>>>8&255]]^d[i[255&l]]}}},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,o,s,u,l,i)},decryptBlock:function(t,e){var n=t[e+1];t[e+1]=t[e+3],t[e+3]=n,this._doCryptBlock(t,e,this._invKeySchedule,c,h,f,d,a),n=t[e+1],t[e+1]=t[e+3],t[e+3]=n},_doCryptBlock:function(t,e,n,r,i,a,o,s){for(var u=this._nRounds,l=t[e]^n[0],c=t[e+1]^n[1],h=t[e+2]^n[2],f=t[e+3]^n[3],d=4,p=1;p<u;p++){var v=r[l>>>24]^i[c>>>16&255]^a[h>>>8&255]^o[255&f]^n[d++],m=r[c>>>24]^i[h>>>16&255]^a[f>>>8&255]^o[255&l]^n[d++],g=r[h>>>24]^i[f>>>16&255]^a[l>>>8&255]^o[255&c]^n[d++],y=r[f>>>24]^i[l>>>16&255]^a[c>>>8&255]^o[255&h]^n[d++];l=v,c=m,h=g,f=y}v=(s[l>>>24]<<24|s[c>>>16&255]<<16|s[h>>>8&255]<<8|s[255&f])^n[d++],m=(s[c>>>24]<<24|s[h>>>16&255]<<16|s[f>>>8&255]<<8|s[255&l])^n[d++],g=(s[h>>>24]<<24|s[f>>>16&255]<<16|s[l>>>8&255]<<8|s[255&c])^n[d++],y=(s[f>>>24]<<24|s[l>>>16&255]<<16|s[c>>>8&255]<<8|s[255&h])^n[d++],t[e]=v,t[e+1]=m,t[e+2]=g,t[e+3]=y},keySize:8});t.AES=e._createHelper(v)}(),n.AES)})),u((function(t,e){var n;t.exports=(n=Qt,function(){var t=n,e=t.lib,r=e.WordArray,i=e.BlockCipher,a=t.algo,o=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],u=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],l=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],c=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],h=a.DES=i.extend({_doReset:function(){for(var t=this._key.words,e=[],n=0;n<56;n++){var r=o[n]-1;e[n]=t[r>>>5]>>>31-r%32&1}for(var i=this._subKeys=[],a=0;a<16;a++){var l=i[a]=[],c=u[a];for(n=0;n<24;n++)l[n/6|0]|=e[(s[n]-1+c)%28]<<31-n%6,l[4+(n/6|0)]|=e[28+(s[n+24]-1+c)%28]<<31-n%6;for(l[0]=l[0]<<1|l[0]>>>31,n=1;n<7;n++)l[n]=l[n]>>>4*(n-1)+3;l[7]=l[7]<<5|l[7]>>>27}var h=this._invSubKeys=[];for(n=0;n<16;n++)h[n]=i[15-n]},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._subKeys)},decryptBlock:function(t,e){this._doCryptBlock(t,e,this._invSubKeys)},_doCryptBlock:function(t,e,n){this._lBlock=t[e],this._rBlock=t[e+1],f.call(this,4,252645135),f.call(this,16,65535),d.call(this,2,858993459),d.call(this,8,16711935),f.call(this,1,1431655765);for(var r=0;r<16;r++){for(var i=n[r],a=this._lBlock,o=this._rBlock,s=0,u=0;u<8;u++)s|=l[u][((o^i[u])&c[u])>>>0];this._lBlock=o,this._rBlock=a^s}var h=this._lBlock;this._lBlock=this._rBlock,this._rBlock=h,f.call(this,1,1431655765),d.call(this,8,16711935),d.call(this,2,858993459),f.call(this,16,65535),f.call(this,4,252645135),t[e]=this._lBlock,t[e+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function f(t,e){var n=(this._lBlock>>>t^this._rBlock)&e;this._rBlock^=n,this._lBlock^=n<<t}function d(t,e){var n=(this._rBlock>>>t^this._lBlock)&e;this._lBlock^=n,this._rBlock^=n<<t}t.DES=i._createHelper(h);var p=a.TripleDES=i.extend({_doReset:function(){var t=this._key.words;if(2!==t.length&&4!==t.length&&t.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var e=t.slice(0,2),n=t.length<4?t.slice(0,2):t.slice(2,4),i=t.length<6?t.slice(0,2):t.slice(4,6);this._des1=h.createEncryptor(r.create(e)),this._des2=h.createEncryptor(r.create(n)),this._des3=h.createEncryptor(r.create(i))},encryptBlock:function(t,e){this._des1.encryptBlock(t,e),this._des2.decryptBlock(t,e),this._des3.encryptBlock(t,e)},decryptBlock:function(t,e){this._des3.decryptBlock(t,e),this._des2.encryptBlock(t,e),this._des1.decryptBlock(t,e)},keySize:6,ivSize:2,blockSize:2});t.TripleDES=i._createHelper(p)}(),n.TripleDES)})),u((function(t,e){var n;t.exports=(n=Qt,function(){var t=n,e=t.lib.StreamCipher,r=t.algo,i=r.RC4=e.extend({_doReset:function(){for(var t=this._key,e=t.words,n=t.sigBytes,r=this._S=[],i=0;i<256;i++)r[i]=i;i=0;for(var a=0;i<256;i++){var o=i%n,s=e[o>>>2]>>>24-o%4*8&255;a=(a+r[i]+s)%256;var u=r[i];r[i]=r[a],r[a]=u}this._i=this._j=0},_doProcessBlock:function(t,e){t[e]^=a.call(this)},keySize:8,ivSize:0});function a(){for(var t=this._S,e=this._i,n=this._j,r=0,i=0;i<4;i++){n=(n+t[e=(e+1)%256])%256;var a=t[e];t[e]=t[n],t[n]=a,r|=t[(t[e]+t[n])%256]<<24-8*i}return this._i=e,this._j=n,r}t.RC4=e._createHelper(i);var o=r.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var t=this.cfg.drop;t>0;t--)a.call(this)}});t.RC4Drop=e._createHelper(o)}(),n.RC4)})),u((function(t,e){var n;t.exports=(n=Qt,function(){var t=n,e=t.lib.StreamCipher,r=t.algo,i=[],a=[],o=[],s=r.Rabbit=e.extend({_doReset:function(){for(var t=this._key.words,e=this.cfg.iv,n=0;n<4;n++)t[n]=16711935&(t[n]<<8|t[n]>>>24)|4278255360&(t[n]<<24|t[n]>>>8);var r=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],i=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];for(this._b=0,n=0;n<4;n++)u.call(this);for(n=0;n<8;n++)i[n]^=r[n+4&7];if(e){var a=e.words,o=a[0],s=a[1],l=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),c=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),h=l>>>16|4294901760&c,f=c<<16|65535&l;for(i[0]^=l,i[1]^=h,i[2]^=c,i[3]^=f,i[4]^=l,i[5]^=h,i[6]^=c,i[7]^=f,n=0;n<4;n++)u.call(this)}},_doProcessBlock:function(t,e){var n=this._X;u.call(this),i[0]=n[0]^n[5]>>>16^n[3]<<16,i[1]=n[2]^n[7]>>>16^n[5]<<16,i[2]=n[4]^n[1]>>>16^n[7]<<16,i[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)i[r]=16711935&(i[r]<<8|i[r]>>>24)|4278255360&(i[r]<<24|i[r]>>>8),t[e+r]^=i[r]},blockSize:4,ivSize:2});function u(){for(var t=this._X,e=this._C,n=0;n<8;n++)a[n]=e[n];for(e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<a[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<a[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<a[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<a[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<a[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<a[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<a[6]>>>0?1:0)|0,this._b=e[7]>>>0<a[7]>>>0?1:0,n=0;n<8;n++){var r=t[n]+e[n],i=65535&r,s=r>>>16,u=((i*i>>>17)+i*s>>>15)+s*s,l=((4294901760&r)*r|0)+((65535&r)*r|0);o[n]=u^l}t[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,t[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,t[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,t[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,t[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,t[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,t[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,t[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}t.Rabbit=e._createHelper(s)}(),n.Rabbit)})),u((function(t,e){var n;t.exports=(n=Qt,function(){var t=n,e=t.lib.StreamCipher,r=t.algo,i=[],a=[],o=[],s=r.RabbitLegacy=e.extend({_doReset:function(){var t=this._key.words,e=this.cfg.iv,n=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],r=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];this._b=0;for(var i=0;i<4;i++)u.call(this);for(i=0;i<8;i++)r[i]^=n[i+4&7];if(e){var a=e.words,o=a[0],s=a[1],l=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),c=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),h=l>>>16|4294901760&c,f=c<<16|65535&l;for(r[0]^=l,r[1]^=h,r[2]^=c,r[3]^=f,r[4]^=l,r[5]^=h,r[6]^=c,r[7]^=f,i=0;i<4;i++)u.call(this)}},_doProcessBlock:function(t,e){var n=this._X;u.call(this),i[0]=n[0]^n[5]>>>16^n[3]<<16,i[1]=n[2]^n[7]>>>16^n[5]<<16,i[2]=n[4]^n[1]>>>16^n[7]<<16,i[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)i[r]=16711935&(i[r]<<8|i[r]>>>24)|4278255360&(i[r]<<24|i[r]>>>8),t[e+r]^=i[r]},blockSize:4,ivSize:2});function u(){for(var t=this._X,e=this._C,n=0;n<8;n++)a[n]=e[n];for(e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<a[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<a[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<a[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<a[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<a[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<a[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<a[6]>>>0?1:0)|0,this._b=e[7]>>>0<a[7]>>>0?1:0,n=0;n<8;n++){var r=t[n]+e[n],i=65535&r,s=r>>>16,u=((i*i>>>17)+i*s>>>15)+s*s,l=((4294901760&r)*r|0)+((65535&r)*r|0);o[n]=u^l}t[0]=o[0]+(o[7]<<16|o[7]>>>16)+(o[6]<<16|o[6]>>>16)|0,t[1]=o[1]+(o[0]<<8|o[0]>>>24)+o[7]|0,t[2]=o[2]+(o[1]<<16|o[1]>>>16)+(o[0]<<16|o[0]>>>16)|0,t[3]=o[3]+(o[2]<<8|o[2]>>>24)+o[1]|0,t[4]=o[4]+(o[3]<<16|o[3]>>>16)+(o[2]<<16|o[2]>>>16)|0,t[5]=o[5]+(o[4]<<8|o[4]>>>24)+o[3]|0,t[6]=o[6]+(o[5]<<16|o[5]>>>16)+(o[4]<<16|o[4]>>>16)|0,t[7]=o[7]+(o[6]<<8|o[6]>>>24)+o[5]|0}t.RabbitLegacy=e._createHelper(s)}(),n.RabbitLegacy)})),u((function(t,e){t.exports=Qt})));function ee(t,e){var n=JSON.stringify(e);sessionStorage.setItem(t,n)}function ne(t){var e=sessionStorage.getItem(t);return e?JSON.parse(e):null}var re=function(t,e){try{var n=e.xRatio,r=e.yRatio;return isNaN(n)||isNaN(r)?(console.error("发生错误:on updataSizeDeep in go-code "),t):(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)&&re(null==t?void 0:t.children,e)})),t)}catch(e){return t}},ie=function(t,e){var n=!0;try{for(var r=0,i=["width","height","left","top","opacity","angel","skewY","skewX","rotateX","rotateY"];r<i.length;r++){var a=i[r];if(Object.hasOwn(t,a)&&isNaN(t[a])){if(!("string"==typeof t[a]&&t[a].includes("%")||"NaN"==t[a])){console.warn(a+"--参数校验不合法:"+e),n=!1;break}n=!0}}return n}catch(t){return console.warn("参数校验不合法:"+e),!1}},ae=function(t,e,n){var r=t[n];return t.splice(n,1),t.splice(e,0,r),t},oe=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 ae(t,a,r)},se=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 o=0;o<a.children.length;o++){if(r=o,a.children[o].cid===n){switch(e){case"up":r>=1&&ae(a.children,r-1,r);break;case"down":r<a.children.length-2&&ae(a.children,r+1,r);break;case"top":0!==r&&ae(a.children,0,r);break;case"bottom":var s=a.children.length-1;r!==s&&ae(a.children,s,r)}break}}}return t},ue=function(t,e,n){var r=!1,a=function(t){for(var o=0;o<t.length;o++){if(t[o].cid==e){r=t[o],n&&i.default.remove(t,(function(t){return t.cid==e}));break}if(t[o].children)a(t[o].children);else if(t[o].dynamicChildren){if(t[o].dynamicChildren instanceof Map){for(var s=Array.from(t[o].dynamicChildren),u=0;u<s.length;u++)if(s[u]instanceof Array){var l=s[u][1];a(l)}}else if(t[o].dynamicChildren instanceof Array)for(s=t[o].dynamicChildren,u=0;u<s.length;u++)if(s[u]instanceof Array){l=s[u][1];a(l)}}else t[o].stateChildren&&a(t[o].stateChildren)}};return a(t),r||!1},le=function(t,e){var n=[],r=function(t){for(var i=0;i<t.length;i++){if(t[i].cid===e)return!0;if(Array.isArray(t[i].children)){if(r(t[i].children))return n.push(t[i]),!0;r(t[i].children)}}};return r(t),n},ce=function(t,e){var n=null,r=function(t,i){for(var a=0,o=t;a<o.length;a++){var s=o[a];if(s.cid==e){n=i;break}if(s.children)r(s.children,s);else if(s.dynamicChildren)if(s.dynamicChildren instanceof Map){for(var u=Array.from(s.dynamicChildren),l=0;l<u.length;l++)if(u[l]instanceof Array){var c=u[l][1];r(c,s)}}else s.dynamicChildren;else s.stateChildren&&r(s.stateChildren,s)}};return r(t,null),n||!1},he=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 o=0;o<a.children.length;o++)if(a.children[o].cid===e)return r=a.children[o],n&&a.children.splice(o,1),{value:r}}else if(a.stateChildren&&a.stateChildren.length){for(o=0;o<a.stateChildren.length;o++)if(a.stateChildren[o].cid===e)return r=a.stateChildren[o],n&&a.stateChildren.splice(o,1),{value:r}}else if(a.dynamicChildren){var s=void 0;if(a.dynamicChildren instanceof Map?s=a.dynamicChildren.get(a.activeDynamic):a.dynamicChildren instanceof Array&&(s=a.dynamicChildren.find((function(t){return t[0]==a.activeDynamic}))[1]),s)for(o=0;o<s.length;o++)if(s[o].cid===e)return r=s[o],n&&s.splice(o,1),{value:r}}},a=0;a<t.length;a++){var o=i(a);if("object"==typeof o)return o.value}return!!r},fe=function(t,e,n){var r=he(t,e),i=he(t,n);return r.pid&&i.pid||!r.pid&&!i.pid},de=function(t,e){var n=function(t){for(var r,i,a,o=0,s=t;o<s.length;o++){var u=s[o],l=null===(a=null===(i=null===(r=null==u?void 0:u.tmpData)||void 0===r?void 0:r.source)||void 0===i?void 0:i.converse)||void 0===a?void 0:a.data;if(null==l?void 0:l.length)for(var c=0,h=l;c<h.length;c++){var f=h[c];f.code=f.code.replace(/&gt;/g,">").replace(/&lt;/g,"<")}e(u),u&&u.children?n(u.children):u&&u.dynamicChildren?(u.dynamicChildren&&u.dynamicChildren instanceof Map&&u.dynamicChildren.forEach((function(t){n(t)})),u.dynamicChildren&&u.dynamicChildren instanceof Array&&u.dynamicChildren.forEach((function(t){n(t[1])}))):(null==u?void 0:u.stateChildren)&&n(u.stateChildren)}};n(t)},pe=function(t){var e=t.length,n=function(t,e){for(var r=function(r){var i=t[r];if(i&&i.children&&i.children.length){var a=i.children.length;n(i.children,a)}else if(i&&i.dynamicChildren){var o=i.dynamicChildren.length;Array.from(i.dynamicChildren).forEach((function(t,e){n(t[1],o)}))}i.z=10*e-r},i=0;i<t.length;i++)r(i)};n(t,e)},ve=function(t){var e=function(t,n){for(var r=function(r){var i=t[r],a=Ae();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)},me=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)}},ge=function(t,e){var n;try{var r="tmpData";if(!t||!(null===(n=t[r])||void 0===n?void 0:n.hasOwnProperty("option")))throw new Error("The property you want to modify is not found. Please check whether the attribute 'option' is entered correctly!");var a=i.default.cloneDeep(t[r].option),o={};Object.assign(o,a,e),console.log(o,a,"newOP"),t[r].option=o}catch(t){console.error(new Error("An error occurred: ".concat(t)))}},ye=function(t){try{if(!t)throw" 没有找到组件";t.isShow||"false"==t.isShow?t.isShow=!1:t.isShow=!0}catch(t){console.error(t)}},_e=function(t,e){e.forEach((function(e){e.baseData.left=e.baseData.left-t.left,e.baseData.top=e.baseData.top-t.top}))},be=function(t,e){var n=i.default.cloneDeep(t),r=[];return n.children&&n.children.length&&n.children.forEach((function(t){var i=e&&(null==n?void 0:n.pid)?ue(e,n.pid):null;we(t,n,i),r.push(t)})),r},we=function(t,e,n){var r=function(t,e,n){var r=t.baseData.left,i=t.baseData.top,a=e;if(r+=a.baseData.left,i+=a.baseData.top,n){if(n.baseData.angle){var o=n.baseData.angle*Math.PI/180,s=Math.cos(o),u=Math.sin(o),l=r*u+i*s;r=r*s-i*u,i=l}n.baseData.scale&&(r*=n.baseData.scale.x,i*=n.baseData.scale.y)}return{left:r,top:i}}(t,e,n),i=r.left,a=r.top;t.baseData.left=i,t.baseData.top=a},De=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 t.left=t.left||0,t.top=t.top||0,e.left=e.left||0,e.top=e.top||0,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},xe=function(t,e){var n=i.default.cloneDeep(t),r=[],a=function(t,e){var n=ue(t,e);r.push(n.baseData),n.pid&&a(t,n.pid)};a(n,e);var o={left:0,top:0};return r.map((function(t){t&&(o.left+=t.left,o.top+=t.top)})),o},Te=function(t,e,n){var r=t.slice();return n||(r=i.default.cloneDeep(t)),r.length>1&&r.sort((function(t,n){return t.baseData[e]-n.baseData[e]})),r},ke=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,e){if(t.length>0){var n={left:0,top:0,width:0,height:0},r=Te(t,"left",e),i=Te(t,"top",e),a=r[0].baseData,o=r[r.length-1].baseData,s=i[0].baseData,u=i[i.length-1].baseData,l=Math.max.apply(Math,i.map((function(t){return 1*t.baseData.top+1*t.baseData.height}))),c=Math.max.apply(Math,i.map((function(t){return 1*t.baseData.left+1*t.baseData.width})));return n.left=a.left,n.width=Math.max(1*o.left+1*o.width,c)-1*a.left,n.top=s.top,n.height=Math.max(1*u.top+1*u.height,l)-1*s.top,n}return{left:0,top:0,width:0,height:0}},Ee=function(t,e,n,r){var a=t.children,o=i.default.cloneDeep(e),s=i.default.cloneDeep(Ce(a,r)),u=o.left,l=o.top;o.width,o.height;var c=s.left,h=s.top,f=s.width,d=s.height,p={left:u+c,top:l+h,width:f,height:d,angle:e.angle?e.angle:0};return a.forEach((function(t){var e=i.default.cloneDeep(t.baseData);t.baseData.left<0?e.left=0:e.left=e.left-c,t.baseData.top<0?e.top=0:e.top=e.top-h,t.baseData=e})),t.baseData=p,t.children=a,p},Oe=function(t,e){for(var n=0;n<t.length;n++){var r=t[n];t[n].index=n,r.children&&r.children.length?Oe(r.children):e&&e(r)}},Ae=function(){return(Math.random().toString().substr(3,10)+Date.now()).toString()},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 Pe(t,e){for(var n=t.types,r=t.element,i=t.actions,a=t.events,o=t.eventsComs,s=function(t){var e=n[t],s=r.tmpData.actions[t];if(s&&s.use){o&&o.push(r.cid);var u=s[s.behave];if(!u)return"continue";"vars"===s.behave?u.map((function(t){t.type=e,t.id=r.cid,t.model=0,t.mapField&&i.push(t)})):u.length>0&&u.forEach((function(t,n){"toggle"===s.behave&&""!==t.value&&t.value.length&&a.push({id:r.cid,type:s.behave,children:t.value.map((function(t){return{cid:t.cid,visible:t.visible}})),eventType:e,index:n}),"update"===s.behave&&""!==t.value&&t.value.length?a.push({id:r.cid,type:s.behave,children:t.value.map((function(t){return{cid:t.cid,visible:t.visible}})),eventType:e,index:n}):"link"===s.behave&&""!==t.value?a.push({id:r.cid,type:s.behave,link:t.value,eventType:e,target:t.target,index:n}):"page"===s.behave&&""!==t.value?a.push({id:r.cid,type:s.behave,page:t.value,params:t.params,eventType:e,index:n}):"dynamic"===s.behave&&""!==t.value&&t.value.length>0?a.push({id:r.cid,type:s.behave,dynamic:t.value,eventType:e,index:n}):a.push(void 0)}))}},u=0;u<n.length;u++)s(u)}var Be="anov@2019:helloX",Re="anov@2020:helloX";function Ne(t){var e=te.enc.Utf8.parse(Be),n=te.enc.Utf8.parse(Re);return te.AES.encrypt(t,e,{iv:n,mode:te.mode.CBC,padding:te.pad.Pkcs7}).toString()}function Ve(t,e){var n=di.state.globalVars,r={};n.forEach((function(t){(null==t?void 0:t.name)&&(r[t.name]=t.value||t.originvalue)}));try{return/^(?:[^\r\n]*[\r\n]){0,2}(?:[^\r\n]*(?=\{))?\s*(?:function\s*[^\r\n]*|\(.*?\))?\s*[\w\s\$\._\[\]]*\s*(?:[=:]\s*)?(?:new\s+)?[A-Z]\w*\s*(?:\[.*?\]|\([^\r\n]*\))*\s*\{.*?\}/i.test(t),new Function("data","vars",t)(e,r)}catch(t){return console.error(t),e}}var Ie={type:"static",converse:{use:!1,data:[]},static:{data:{},originData:""},api:{requestType:"get",url:"",headers:{use:!1,value:""},params:"",agency:!1,cookie:!0,autoUpdate:{open:!1,time:10},data:""},datasource:{data:"",inputSql:"",dsName:"",dsType:300,autoUpdate:{open:!1,time:10}},indicator:{zbId:"",zbName:"",params:"",data:"",autoUpdate:{open:!1,time:10}},staticFile:{data:"",dsName:"",dsType:201}},Fe=function(t){var e;try{var n=[];if((null==t?void 0:t.dynamicChildren)instanceof Map)for(var r=Array.from(null==t?void 0:t.dynamicChildren),i=0;i<r.length;i++)r[i]instanceof Array&&n.push.apply(n,r[i][1]);else if((null==t?void 0:t.dynamicChildren)instanceof Array)for(r=null==t?void 0:t.dynamicChildren,i=0;i<r.length;i++)r[i]instanceof Array&&n.push.apply(n,r[i][1]);if(null==n?void 0:n.length)for(var a=0,o=n;a<o.length;a++){var s=o[a];if(s){var u=null===(e=null==s?void 0:s.tmpData)||void 0===e?void 0:e.source,l=u.type;u&&"packData"==l&&(s.tmpData.source.packData.data=t.source[0])}}}catch(t){console.log(t)}},je=Object.defineProperty,Le=Object.getOwnPropertySymbols,Ye=Object.prototype.hasOwnProperty,ze=Object.prototype.propertyIsEnumerable,He=(t,e,n)=>e in t?je(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ue=(t,e)=>{for(var n in e||(e={}))Ye.call(e,n)&&He(t,n,e[n]);if(Le)for(var n of Le(e))ze.call(e,n)&&He(t,n,e[n]);return t},We=Symbol.for("immer-nothing"),qe=Symbol.for("immer-draftable"),Ge=Symbol.for("immer-state"),Ke="production"!==q.env.NODE_ENV?[function(t){return`The plugin for '${t}' has not been loaded into Immer. To enable the plugin, import and call \`enable${t}()\` when initializing your application.`},function(t){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${t}'`},"This object has been frozen and should not be mutated",function(t){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+t},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(t){return`'current' expects a draft, got: ${t}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(t){return`'original' expects a draft, got: ${t}`}]:[];function Ze(t,...e){if("production"!==q.env.NODE_ENV){const n=Ke[t],r="function"==typeof n?n.apply(null,e):n;throw new Error(`[Immer] ${r}`)}throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var $e=Object.getPrototypeOf;function Xe(t){return!!t&&!!t[Ge]}function Je(t){var e;return!!t&&(tn(t)||Array.isArray(t)||!!t[qe]||!!(null==(e=t.constructor)?void 0:e[qe])||on(t)||sn(t))}var Qe=Object.prototype.constructor.toString();function tn(t){if(!t||"object"!=typeof t)return!1;const e=$e(t);if(null===e)return!0;const n=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return n===Object||"function"==typeof n&&Function.toString.call(n)===Qe}function en(t,e){0===nn(t)?Object.entries(t).forEach((([n,r])=>{e(n,r,t)})):t.forEach(((n,r)=>e(r,n,t)))}function nn(t){const e=t[Ge];return e?e.type_:Array.isArray(t)?1:on(t)?2:sn(t)?3:0}function rn(t,e){return 2===nn(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function an(t,e,n){const r=nn(t);2===r?t.set(e,n):3===r?t.add(n):t[e]=n}function on(t){return t instanceof Map}function sn(t){return t instanceof Set}function un(t){return t.copy_||t.base_}function ln(t,e){if(on(t))return new Map(t);if(sn(t))return new Set(t);if(Array.isArray(t))return Array.prototype.slice.call(t);if(!e&&tn(t)){if(!$e(t)){const e=Object.create(null);return Object.assign(e,t)}return Ue({},t)}const n=Object.getOwnPropertyDescriptors(t);delete n[Ge];let r=Reflect.ownKeys(n);for(let e=0;e<r.length;e++){const i=r[e],a=n[i];!1===a.writable&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(n[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:t[i]})}return Object.create($e(t),n)}function cn(t,e=!1){return fn(t)||Xe(t)||!Je(t)||(nn(t)>1&&(t.set=t.add=t.clear=t.delete=hn),Object.freeze(t),e&&en(t,((t,e)=>cn(e,!0)))),t}function hn(){Ze(2)}function fn(t){return Object.isFrozen(t)}var dn,pn={};function vn(t){const e=pn[t];return e||Ze(0,t),e}function mn(){return dn}function gn(t,e){e&&(vn("Patches"),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function yn(t){_n(t),t.drafts_.forEach(wn),t.drafts_=null}function _n(t){t===dn&&(dn=t.parent_)}function bn(t){return dn={drafts_:[],parent_:dn,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function wn(t){const e=t[Ge];0===e.type_||1===e.type_?e.revoke_():e.revoked_=!0}function Dn(t,e){e.unfinalizedDrafts_=e.drafts_.length;const n=e.drafts_[0];return void 0!==t&&t!==n?(n[Ge].modified_&&(yn(e),Ze(4)),Je(t)&&(t=Sn(e,t),e.parent_||Tn(e,t)),e.patches_&&vn("Patches").generateReplacementPatches_(n[Ge].base_,t,e.patches_,e.inversePatches_)):t=Sn(e,n,[]),yn(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==We?t:void 0}function Sn(t,e,n){if(fn(e))return e;const r=e[Ge];if(!r)return en(e,((i,a)=>xn(t,r,e,i,a,n))),e;if(r.scope_!==t)return e;if(!r.modified_)return Tn(t,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const e=r.copy_;let i=e,a=!1;3===r.type_&&(i=new Set(e),e.clear(),a=!0),en(i,((i,o)=>xn(t,r,e,i,o,n,a))),Tn(t,e,!1),n&&t.patches_&&vn("Patches").generatePatches_(r,n,t.patches_,t.inversePatches_)}return r.copy_}function xn(t,e,n,r,i,a,o){if("production"!==q.env.NODE_ENV&&i===n&&Ze(5),Xe(i)){const o=Sn(t,i,a&&e&&3!==e.type_&&!rn(e.assigned_,r)?a.concat(r):void 0);if(an(n,r,o),!Xe(o))return;t.canAutoFreeze_=!1}else o&&n.add(i);if(Je(i)&&!fn(i)){if(!t.immer_.autoFreeze_&&t.unfinalizedDrafts_<1)return;Sn(t,i),e&&e.scope_.parent_||Tn(t,i)}}function Tn(t,e,n=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&cn(e,n)}var kn={get(t,e){if(e===Ge)return t;const n=un(t);if(!rn(n,e))return function(t,e,n){var r;const i=On(e,n);return i?"value"in i?i.value:null==(r=i.get)?void 0:r.call(t.draft_):void 0}(t,n,e);const r=n[e];return t.finalized_||!Je(r)?r:r===En(t.base_,e)?(Mn(t),t.copy_[e]=Pn(r,t)):r},has:(t,e)=>e in un(t),ownKeys:t=>Reflect.ownKeys(un(t)),set(t,e,n){const r=On(un(t),e);if(null==r?void 0:r.set)return r.set.call(t.draft_,n),!0;if(!t.modified_){const r=En(un(t),e),o=null==r?void 0:r[Ge];if(o&&o.base_===n)return t.copy_[e]=n,t.assigned_[e]=!1,!0;if(((i=n)===(a=r)?0!==i||1/i==1/a:i!=i&&a!=a)&&(void 0!==n||rn(t.base_,e)))return!0;Mn(t),An(t)}var i,a;return t.copy_[e]===n&&(void 0!==n||e in t.copy_)||Number.isNaN(n)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=n,t.assigned_[e]=!0),!0},deleteProperty:(t,e)=>(void 0!==En(t.base_,e)||e in t.base_?(t.assigned_[e]=!1,Mn(t),An(t)):delete t.assigned_[e],t.copy_&&delete t.copy_[e],!0),getOwnPropertyDescriptor(t,e){const n=un(t),r=Reflect.getOwnPropertyDescriptor(n,e);return r?{writable:!0,configurable:1!==t.type_||"length"!==e,enumerable:r.enumerable,value:n[e]}:r},defineProperty(){Ze(11)},getPrototypeOf:t=>$e(t.base_),setPrototypeOf(){Ze(12)}},Cn={};function En(t,e){const n=t[Ge];return(n?un(n):t)[e]}function On(t,e){if(!(e in t))return;let n=$e(t);for(;n;){const t=Object.getOwnPropertyDescriptor(n,e);if(t)return t;n=$e(n)}}function An(t){t.modified_||(t.modified_=!0,t.parent_&&An(t.parent_))}function Mn(t){t.copy_||(t.copy_=ln(t.base_,t.scope_.immer_.useStrictShallowCopy_))}en(kn,((t,e)=>{Cn[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Cn.deleteProperty=function(t,e){return"production"!==q.env.NODE_ENV&&isNaN(parseInt(e))&&Ze(13),Cn.set.call(this,t,e,void 0)},Cn.set=function(t,e,n){return"production"!==q.env.NODE_ENV&&"length"!==e&&isNaN(parseInt(e))&&Ze(14),kn.set.call(this,t[0],e,n,t[0])};function Pn(t,e){const n=on(t)?vn("MapSet").proxyMap_(t,e):sn(t)?vn("MapSet").proxySet_(t,e):function(t,e){const n=Array.isArray(t),r={type_:n?1:0,scope_:e?e.scope_:mn(),modified_:!1,finalized_:!1,assigned_:{},parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,a=kn;n&&(i=[r],a=Cn);const{revoke:o,proxy:s}=Proxy.revocable(i,a);return r.draft_=s,r.revoke_=o,s}(t,e);return(e?e.scope_:mn()).drafts_.push(n),n}function Bn(t){if(!Je(t)||fn(t))return t;const e=t[Ge];let n;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,n=ln(t,e.scope_.immer_.useStrictShallowCopy_)}else n=ln(t,!0);return en(n,((t,e)=>{an(n,t,Bn(e))})),e&&(e.finalized_=!1),n}var Rn=new class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,e,n)=>{if("function"==typeof t&&"function"!=typeof e){const n=e;e=t;const r=this;return function(t=n,...i){return r.produce(t,(t=>e.call(this,t,...i)))}}let r;if("function"!=typeof e&&Ze(6),void 0!==n&&"function"!=typeof n&&Ze(7),Je(t)){const i=bn(this),a=Pn(t,void 0);let o=!0;try{r=e(a),o=!1}finally{o?yn(i):_n(i)}return gn(i,n),Dn(r,i)}if(!t||"object"!=typeof t){if(r=e(t),void 0===r&&(r=t),r===We&&(r=void 0),this.autoFreeze_&&cn(r,!0),n){const e=[],i=[];vn("Patches").generateReplacementPatches_(t,r,e,i),n(e,i)}return r}Ze(1,t)},this.produceWithPatches=(t,e)=>{if("function"==typeof t)return(e,...n)=>this.produceWithPatches(e,(e=>t(e,...n)));let n,r;return[this.produce(t,e,((t,e)=>{n=t,r=e})),n,r]},"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),"boolean"==typeof(null==t?void 0:t.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy)}createDraft(t){Je(t)||Ze(8),Xe(t)&&(t=function(t){Xe(t)||Ze(10,t);return Bn(t)}(t));const e=bn(this),n=Pn(t,void 0);return n[Ge].isManual_=!0,_n(e),n}finishDraft(t,e){const n=t&&t[Ge];n&&n.isManual_||Ze(9);const{scope_:r}=n;return gn(r,e),Dn(void 0,r)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}applyPatches(t,e){let n;for(n=e.length-1;n>=0;n--){const r=e[n];if(0===r.path.length&&"replace"===r.op){t=r.value;break}}n>-1&&(e=e.slice(n+1));const r=vn("Patches").applyPatches_;return Xe(t)?r(t,e):this.produce(t,(t=>r(t,e)))}},Nn=Rn.produce;Rn.produceWithPatches.bind(Rn);var Vn=Rn.setAutoFreeze.bind(Rn);function In(t,e){return Vn(!1),Nn(t,e)}Rn.setUseStrictShallowCopy.bind(Rn),Rn.applyPatches.bind(Rn),Rn.createDraft.bind(Rn),Rn.finishDraft.bind(Rn);var Fn={updataArea:function(t,e){t.currentArea=e},selectdArea:function(t,e){var n=ke(e,t.list);t.currentArea=n},updataAngle:function(t,e){var n=e.id,r=e.angle,i=ue(t.list,n);"boolean"!=typeof i&&(i.baseData.angle=r)},updataBaseData:function(t,e){var n,r=e.data;if(null==(null===(n=null==r?void 0:r.baseData)||void 0===n?void 0:n.opacity)&&(r.baseData.opacity=100),ie(e.data.baseData,"updataBaseData")){var i=e.ratio,a=ue(t.list,r.cid),o=e.oldData;if("object"!=typeof a||a.pid){if("object"==typeof a&&a.pid){var s=ue(t.list,a.pid);"object"==typeof s&&(a.baseData.left<0&&(a.baseData.left=0),a.baseData.top<0&&(a.baseData.top=0),Object.assign(a.baseData,r.baseData),Ee(s,s.baseData),t.groupFlag=!t.groupFlag)}}else if(Object.assign(a.baseData,r.baseData),i&&a.children&&a.children.length>0){var u=a.baseData.width/o.width,l=a.baseData.height/o.height;re(a.children,{xRatio:u,yRatio:l})}}},multipleUpdataBaseData:function(t,e){if(e.ratio)for(var n=e.newData,r=e.oldData,a=n.width/r.width,o=n.height/r.height,s=t.cache.length;s--;)t.cache[s].baseData.left=t.cache[s].baseData.left*a,t.cache[s].baseData.width=t.cache[s].baseData.width*a,t.cache[s].baseData.top=t.cache[s].baseData.top*o,t.cache[s].baseData.height=t.cache[s].baseData.height*o;else for(s=t.cache.length;s--;){var u=i.default.cloneDeep(t.cache[s].baseData);u.left=u.left+e.deltaX,u.top=u.top+e.deltaY,t.cache[s].comPanel?t.cache[s].comPanel.setAttrData(Object.assign(u,e.baseData)):t.cache[s].baseData=u}},multipleUpdata:function(t,e){var n=e.ids,r=e.data,i=ue(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=[ue(t.list,n[0])]);for(var o=0;o<a.length;o++){var s=a[o];if(s.pid&&t.selectd.length>1)return void console.warn("Only one component can be moved within a group");if("up"===r?s.baseData.top=s.baseData.top-i:"down"===r?s.baseData.top+=i:"left"===r?s.baseData.left-=i:"right"===r&&(s.baseData.left+=i),"object"==typeof s&&s.pid){var u=ue(t.list,s.pid);"object"==typeof u&&(Ee(u,u.baseData),t.groupFlag=!t.groupFlag)}}}else console.warn("Warning! please select the component to move.")},updataGroupBaseData:function(t,e){var n=ue(t.list,e.pid),r=i.default.cloneDeep(n);ue(n.children,e.cid),Ee(n,r.baseData)},editGroupBaseData:function(t,e){var n=ue(t.list,e);n.children.forEach((function(t){De(t,n.baseData)}))},syncBaseData:function(t,e){var n=e.cid,r=e.data,a=e.isContainer;console.time("syncBaseData");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=In(t.list,(function(t){void 0!==a&&t.length&&o(t)}));if(a)t.list=s;else{var u=ue(s,n);if(u){var l=i.default.cloneDeep(u.baseData),c=Object.assign({},u.baseData,r);this.commit("GoCom/updataBaseData",{data:{cid:n,baseData:c},oldData:l,ratio:!0})}}console.timeEnd("syncBaseData")},updataItemData:function(t,e){var n=e.cid,r=e.propsName,i=e.propsValue,a=ue(t.list,n);a&&(a[r]=i)},updataOpacity:function(t,e){var n=e.cid,r=e.propsValue,i=ue(t.list,n);"boolean"!=typeof i&&i&&(i.baseData.opacity=r)}},jn=function(t,e,n,r){var a;try{var o={},s=[],u=[],l=[],c=i.default.cloneDeep(t);return(null===(a=null===window||void 0===window?void 0:window.go)||void 0===a?void 0:a.dev)&&de(t,(function(t){var e,n,r;if(null===(n=null===(e=null==t?void 0:t.tmpData)||void 0===e?void 0:e.actions)||void 0===n?void 0:n.length)for(var i=0,a=null===(r=null==t?void 0:t.tmpData)||void 0===r?void 0:r.actions;i<a.length;i++){var o=a[i];if("toggle"==o.behave){var s=o.toggle;if(null==s?void 0:s.length)for(var u=0,l=s;u<l.length;u++){var c=l[u],h=c.value;(null==h?void 0:h.length)&&(c.value=c.value.map((function(t){return{cid:t.cid,viewComName:t.viewComName,name:t.name,visible:t.visible}})))}}}})),de(c,(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)&&Pe({types:t.tmpData.actions.map((function(t){return t.eventType})),element:t,actions:s,events:u,eventsComs:l})})),e&&e.length&&(s=v(v([],s,!0),e,!0)),n&&n.length&&(s=v(v([],s,!0),n,!0)),r&&r.length&&(s=v(v([],s,!0),r,!0)),de(c,(function(t){var e,n=null===(e=null==t?void 0:t.tmpData)||void 0===e?void 0:e.source;Ln(n,s,t,o)})),s.filter((function(t){if(t.fork){var e=s.find((function(e){return e.mapField==t.forkValue||Array.isArray(t.forkValue)&&t.forkValue.includes(e.mapField)}));e&&(Array.isArray(t.forkValue)?t.originalValue=t.forkValue.map((function(t){return s.find((function(e){return e.mapField==t})).value})):t.originalValue=e.value)}})),{shareVariableTree:o,globalVars:s.filter((function(t){return t.hasOwnProperty("originalValue")||(t.originalValue=t.value),t.converter&&t.converterCode?t.value=Ve(t.converterCode,t.originalValue):t.value=t.originalValue,t})),globalEvents:u.filter((function(t){return t})),eventsComs:l}}catch(t){return console.error("error",t),{}}},Ln=function(t,e,n,r){var i,a,o;if(t){var s=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){zn(r,t,n.cid)}))})),(null==s?void 0:s.inputSql)&&Yn(null==s?void 0:s.inputSql,e,n,r),(null==s?void 0:s.url)&&Yn(s.url,e,n,r),(null==s?void 0:s.headers)&&(null===(i=null==s?void 0:s.headers)||void 0===i?void 0:i.use)&&(null===(a=null==s?void 0:s.headers)||void 0===a?void 0:a.value)&&Yn(null===(o=null==s?void 0:s.headers)||void 0===o?void 0:o.value,e,n,r),(null==s?void 0:s.params)&&Yn(null==s?void 0:s.params,e,n,r)}},Yn=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,"")})),o=function(t){var i=a[t];if(!i||!e||e.findIndex((function(t){return t.mapField===i}))<0)return"continue";zn(r,i,n.cid)},s=0;s<a.length;s++)o(s)},zn=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)},Hn=function(t){if("string"==typeof t)try{var e=JSON.parse(t);return!("object"!=typeof e||!e)}catch(t){return!1}return!1};function Un(t,e){return void 0===e&&(e=!1),e?Hn(t)?t:JSON.stringify(t):Hn(t)?JSON.parse(t):t}var Wn={delListItem:function(t,e){var n=i.default.cloneDeep(t.list);"string"==typeof e?ue(n,e,!0):e.forEach((function(t){ue(n,t,!0)})),t.list=n,t.globalVars=jn(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=function(e){var n=ue(t.list,t.selectd[e]);if("boolean"!=typeof n){var r=i.default.cloneDeep(n);if(r.cid=Ae(),r.pid="",(null==r?void 0:r.stateChildren)||(null==r?void 0:r.children))((null==r?void 0:r.stateChildren)?null==r?void 0:r.stateChildren:null==r?void 0:r.children).forEach((function(t){var e,n,i,a,o=t.cid;if(t.cid=Ae(),t.pid=r.cid,(null==r?void 0:r.stateChildren)&&(null===(n=null===(e=null==r?void 0:r.tmpData)||void 0===e?void 0:e.option)||void 0===n?void 0:n.children)){var s=null===(a=null===(i=null==r?void 0:r.tmpData)||void 0===i?void 0:i.option)||void 0===a?void 0:a.children.find((function(t){return t.cid==o}));s&&(s.cid=t.cid)}}));t.cloneCache.push(r),window.localStorage.setItem("cloneCache",JSON.stringify(t.cloneCache))}},n=0;n<t.selectd.length;n++)e(n)}},shearItem:function(t,e){if(t.selectd.length>0){t.cloneCache=[];for(var n=0;n<t.selectd.length;n++){var r=ue(t.list,t.selectd[n],!0);if("boolean"!=typeof r){var a=i.default.cloneDeep(r);a.cid=Ae(),t.cloneCache.push(a)}}t.selectd=[]}},pasteItem:function(t){var e,n;try{var r=(null===(n=i.default.cloneDeep(t.cloneCache))||void 0===n?void 0:n.length)?i.default.cloneDeep(t.cloneCache):JSON.parse(window.localStorage.getItem("cloneCache"));if(r.length>0){var a=[];de(r,(function(t){if(t.cid=Ae(),t&&t.children)for(var e=0,n=t.children;e<n.length;e++){n[e].pid=t.cid}else if(t.stateChildren)for(var r=0,i=t.stateChildren;r<i.length;r++){i[r].pid=t.cid}if("dynamicComponent"==t.componentType){var o=void 0;t.dynamicChildren instanceof Map?o=t.dynamicChildren.get(t.activeDynamic):t.dynamicChildren instanceof Array&&(o=t.dynamicChildren.find((function(e){return e[0]==t.activeDynamic}))),o.length>1&&(Array.isArray(o[1])?o[1].forEach((function(e){e.pid=t.cid})):o.forEach((function(e){e.pid=t.cid}))),1==o.length&&o.forEach((function(e){e.pid=t.cid}))}a.push(t.cid)})),t.selectd.length>0?ke(t.selectd,t.list):Ce(r),r.forEach((function(t){var e,n,r,i;if(t.baseData.top=t.baseData.top+20,t.baseData.left=t.baseData.left+20,t&&t.hasOwnProperty("stateChildren")&&(null===(n=null===(e=null==t?void 0:t.tmpData)||void 0===e?void 0:e.option)||void 0===n?void 0:n.children))for(var a=function(e){e.pid=t.cid;var n=null===(i=null===(r=null==t?void 0:t.tmpData)||void 0===r?void 0:r.option)||void 0===i?void 0:i.children.find((function(t){return t.disName==e.name}));n&&(n.cid=e.cid)},o=0,s=t.stateChildren;o<s.length;o++){a(s[o])}})),(e=t.list).unshift.apply(e,i.default.cloneDeep(r)),t.selectd=a}}catch(t){console.warn(t)}},updataShow:function(t,e){var n=ue(t.list,e);if("boolean"!=typeof n){var r=!n.isShow;me(n,"isShow",r,"")}},changeShow:function(t,e){var n=e.cid,r=e.flag,i=ue(t.list,n);i&&me(i,"isShow",r,"")},comToggle:function(t,e){var n=ue(t.list,e);n&&ye(n)},updataLock:function(t,e){var n=ue(t.list,e);if("boolean"!=typeof n){var r=!n.isLock;me(n,"isLock",r,"")}},breakUp:function(t,e){var n,r;try{if(!e)throw"Please pass in the component CID correctly!";var i=ce(t.list,e),a=ue(t.list,e),o=a.baseData;if(isNaN(o.left)||isNaN(o.top))throw new Error("top or left is NAN");var s=be(a,t.list);if(s.map((function(t){return t.pid=""})),i){var u=i.children.findIndex((function(t){return t.cid==e}));i.children.splice(u,1),(n=i.children).push.apply(n,s.reverse())}else{u=t.list.findIndex((function(t){return t.cid==e}));t.list.splice(u,1),(r=t.list).push.apply(r,s.reverse())}}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],o=be(a);o.map((function(t){return t.pid=""})),t.list.splice(i,1),(n=t.list).push.apply(n,o)}catch(t){console.error(t)}},combination:function(t){i.default.cloneDeep(t.list);var e,n,r=[],a=[],o=Ae(),s=ue(t.list,t.selectd[0]);s.pid?console.info("Sorry, only level 2 is supported group"):s.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=o,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}),_e(n,a),t.list.splice(e,0,{cid:o,pid:"",isShow:!0,isLock:!1,editer:!1,baseData:n,z:0,toggle:!0,name:"群组",type:"folder",tmpData:{actions:null,option:null,source:Ie},children:a}),pe(t.list),t.selectd=[o])},moveUp:function(t,e){try{var n=t.list.findIndex((function(t){return t.cid===e}));n>=1?ae(t.list,n-1,n):se(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?ae(t.list,n+1,n):se(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?ae(t.list,0,n):se(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?ae(t.list,r,n):se(t.list,"bottom",e)}catch(t){console.error(t)}}},qn=3e4,Gn=function(t,e){void 0===t&&(t="");var n=a.default.create({baseURL:t,timeout:qn,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")),sessionStorage.getItem("dgcc_authorization")&&"null"!=sessionStorage.getItem("dgcc_authorization")&&(t.headers.dgcc_authorization=sessionStorage.getItem("dgcc_authorization")),"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},Kn=Object.defineProperty,Zn=Object.getOwnPropertySymbols,$n=Object.prototype.hasOwnProperty,Xn=Object.prototype.propertyIsEnumerable,Jn=(t,e,n)=>e in t?Kn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Qn=(t,e)=>{for(var n in e||(e={}))$n.call(e,n)&&Jn(t,n,e[n]);if(Zn)for(var n of Zn(e))Xn.call(e,n)&&Jn(t,n,e[n]);return t},tr=(t,e,n)=>(Jn(t,"symbol"!=typeof e?e+"":e,n),n),er=(t,e,n)=>new Promise(((r,i)=>{var a=t=>{try{s(n.next(t))}catch(t){i(t)}},o=t=>{try{s(n.throw(t))}catch(t){i(t)}},s=t=>t.done?r(t.value):Promise.resolve(t.value).then(a,o);s((n=n.apply(t,e)).next())})),nr={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},rr="data-watermark-tag",ir={childList:!0,subtree:!0,attributeFilter:["style","class",rr]};var ar=t=>{let e="";return Object.keys(t).forEach((n=>{const r=n.replace(/([A-Z])/g,"-$1").toLowerCase();e+=`${r}:${t[n]};`})),e},or=(t="")=>{return`${e=t,window.btoa(decodeURI(encodeURIComponent(e)))}-${(new Date).getTime()}-${Math.floor(Math.random()*Math.pow(10,8))}`;var e};var sr=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver,ur=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 o&&o.global===o?o:void 0,s=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&&!s?function(t,e,o){var s=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,o):i(u,u.target="_blank")):(u.href=s.createObjectURL(t),setTimeout((function(){s.revokeObjectURL(u.href)}),4e4),setTimeout((function(){i(u)}),0))}:"msSaveOrOpenBlob"in navigator?function(t,a,o){if(a=a||t.name||"download","string"!=typeof t)navigator.msSaveOrOpenBlob(e(t,o),a);else if(r(t))n(t,a,o);else{var s=document.createElement("a");s.href=t,s.target="_blank",setTimeout((function(){i(s)}))}}: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=u.saveAs=u,t.exports=u}()})),lr=function(t){if(0===t.length)return[];var e=function(t){for(var n,r,a,o,s=0;s<t.length;s++)t[s].tmpData&&(t[s]=Object.assign({},(r=t[s],a=void 0,o=void 0,a=i.default.cloneDeep(r),o=i.default.omit(a,["comData","source"]),f({},o)))),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},cr=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,o=r.theme,s=void 0===o?null:o,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,v=void 0===p?[]:p,m=r.path,g=void 0===m?"":m;r.name;var y=r.resource,_=void 0===y?{jspaths:[],csspaths:[],otherpaths:[]}:y,b=r.watermark,w=void 0===b?null:b,D=r.tw,S=void 0===D?null:D,x=r.globalSource,T=void 0===x?[]:x,k=r.globalEvents,C=void 0===k?[]:k;n.push({path:g||i,theme:s,name:a,resource:_,tw:S,watermark:w,globalSource:T,globalVars:l,globalEvents:C,shareVariableTree:h,plant:d,list:lr(v)})}));else{var r=e.theme,a=void 0===r?null:r,o=e.globalVars,s=void 0===o?null:o,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,v=void 0===p?{jspaths:[],csspaths:[],otherpaths:[]}:p,m=e.watermark,g=void 0===m?null:m,y=e.tw,_=void 0===y?null:y,b=e.globalSource,w=void 0===b?[]:b,D=e.globalEvents,S=void 0===D?[]:D;n.push({resource:v,tw:_,watermark:g,globalSource:w,theme:a,globalVars:s,globalEvents:S,shareVariableTree:l,plant:h,list:lr(d)})}return n};function hr(t,e){throw new Error("".concat(t,":Expected HTMLElement, got ").concat(e))}var fr=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,o=t.horizontal,s=t.vertical,u=document.querySelector(n);u||hr("wrap",u);var l=u.clientWidth,c=u.clientHeight,h=document.querySelector(r);h||hr("view",h),h.style.position="absolute",h.style.width=i+"px",h.style.height=a+"px";var f,d,p,v,m=Math.min(l/i,c/a);if(e){switch(h.style.transform="scale(".concat(m,")"),o){case"center":f=(l-i)/2+"px";break;case"left":f=(m-1)/2*i+"px";break;case"right":p=(m-1)/2*i+"px"}switch(s){case"center":d=(c-a)/2+"px";break;case"top":d=(m-1)/2*a+"px";break;case"bottom":v=(m-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:v&&(h.style.bottom=v),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}(),dr=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}(),pr=function(t){return d(this,void 0,void 0,(function(){var e,n,r,i,a;return p(this,(function(o){switch(o.label){case 0:return o.trys.push([0,3,,4]),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:o.sent(),o.label=2;case 2:return i.innerText+="@font-face{font-family:'".concat(n,"';src:url(").concat(e,");}"),[3,4];case 3:return a=o.sent(),console.warn(a),[3,4];case 4:return[2]}}))}))},vr=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){switch(a.label){case 0:return r="csspaths"===e?"link":"script",i=document.createElement(r),"jspaths"===e?i.defer=!0:i.rel="stylesheet",i.className=e,i.src=t,(n||document.head||document.getElementsByTagName("head")[0]).appendChild(i),[4,new Promise((function(t,e){i.addEventListener("load",t),i.addEventListener("error",t)}))];case 1:return a.sent(),[2]}}))}))},mr=function(t,e){return void 0===e&&(e="jspaths"),d(void 0,void 0,void 0,(function(){var n;return p(this,(function(r){switch(r.label){case 0:return n="fonts"===e?pr:vr,[4,Promise.all(t.map((function(t){return n(t)})))];case 1:return r.sent(),[2]}}))}))},gr=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,mr(t.fonts,"fonts")]:[3,2];case 1:e.sent(),e.label=2;case 2:return[2]}}))}))},yr=function(t){var e=t.jspaths,n=void 0===e?[]:e,r=t.csspaths,a=void 0===r?[]:r,o=t.fonts,s=void 0===o?[]:o;return d(void 0,void 0,void 0,(function(){var t;return p(this,(function(e){switch(e.label){case 0:return t=i.default.uniqBy(s,"fontName"),[4,Promise.all([mr(n,"jspaths"),mr(a,"csspaths"),mr(t,"fonts")])];case 1:return e.sent(),[2]}}))}))},_r=function(){var t;(null==(t=document.getElementById("__custom_font__"))?void 0:t.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,n=Array.from(document.getElementsByTagName("script")),r=0;r<n.length;r++)n[r]&&n[r].src&&-1!=n[r].src.indexOf(t)&&(null===(e=n[r])||void 0===e?void 0:e.parentNode)&&n[r].parentNode.removeChild(n[r])}(t.src)})),Array.from(document.getElementsByTagName("link")).filter((function(t){return"csspaths"==t.className})).forEach((function(t){!function(t){for(var e,n=Array.from(document.getElementsByTagName("link")),r=0;r<n.length;r++)n[r].href,n[r]&&n[r].href&&-1!=n[r].href.indexOf(t)&&(null===(e=n[r])||void 0===e?void 0:e.parentNode)&&n[r].parentNode.removeChild(n[r])}(t.href)}))};var br=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;s.impl.options.cacheBust&&(t+=(/\?/.test(t)?"&":"?")+(new Date).getTime());return new Promise((function(n){var r,i=new XMLHttpRequest;if(i.onreadystatechange=o,i.ontimeout=u,i.responseType="blob",i.timeout=e,i.open("GET",t,!0),i.send(),s.impl.options.imagePlaceholder){var a=s.impl.options.imagePlaceholder.split(/,/);a&&a[1]&&(r=a[1])}function o(){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 o()?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 o(){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}))}))}}}}(),o={imagePlaceholder:void 0,cacheBust:!1},s={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?s.impl.options.imagePlaceholder=o.imagePlaceholder:s.impl.options.imagePlaceholder=t.imagePlaceholder;void 0===t.cacheBust?s.impl.options.cacheBust=o.cacheBust:s.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){var r=e;return r instanceof Element?Promise.resolve().then(i).then(a).then(o).then(s).then(u).then((function(){return r})):r;function i(){if(r instanceof HTMLVideoElement){var e=window.getComputedStyle(t),n=document.createElement("canvas");n.width=parseInt(e.width,10),n.height=parseInt(e.height,10);var i=Math.max(t.videoWidth/n.width,t.videoHeight/n.height),a=t.videoWidth/i,o=t.videoHeight/i,s=n.width/2-a/2,u=n.height/2-o/2;n.getContext("2d").drawImage(t,s,u,a,o);var l=r=document.createElement("img");try{l.src=n.toDataURL()}catch(t){l.src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="}}}function a(){function e(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)}e(window.getComputedStyle(t),r.style)}function o(){function e(e){var i=window.getComputedStyle(t,e),a=i.getPropertyValue("content");if(""!==a&&"none"!==a){var o=n.uid();r.className=r.className+" "+o;var s=document.createElement("style");s.appendChild(u(o,e,i)),r.appendChild(s)}function u(t,e,r){var i="."+t+":"+e,a=r.cssText?o(r):s(r);return document.createTextNode(i+"{"+a+"}");function o(t){var e=t.getPropertyValue("content");return t.cssText+" content: "+e+";"}function s(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){e(t)}))}function s(){t instanceof HTMLTextAreaElement&&(r.innerHTML=t.value),t instanceof HTMLInputElement&&r.setAttribute("value",t.value)}function u(){r instanceof SVGElement&&(r.setAttribute("xmlns","http://www.w3.org/2000/svg"),r instanceof SVGRectElement&&["width","height"].forEach((function(t){var e=r.getAttribute(t);e&&r.style.setProperty(t,e)})))}}(t,e)})):Promise.resolve()}function h(t){return a.inlineAll(t).then((function(){return t}))}t.exports=s}()})),wr=function(t){if(!t)return!1;return 1==new RegExp(/http(s)?:\/\/([\w-]+\.)+[\w-]+(\/[\w- .\/?%&=]*)?/).test(t)},Dr=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))},Sr=function(t,e){void 0===e&&(e="screenshot.jpeg");try{for(var n=t.split(","),r=n[0].match(/:(.*?);/)[1],i=atob(n[1]),a=i.length,o=new Uint8Array(a);a--;)o[a]=i.charCodeAt(a);return new File([o],e,{type:r})}catch(t){console.error("dataURLtoFile:数据转换错误 : "+t)}},xr=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,Sr(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.jpeg")];case 4:return"Base64"!=e||"string"!=typeof t?[3,6]:[4,t];case 6:return"Base64"!=e||"[object ArrayBuffer]"!=t.toString()?[3,8]:[4,Dr(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]}}))}))},Tr=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]}}))}))},kr=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,br.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]}}))}))},Cr=function(t){return"".concat(t>15?"":0).concat(t.toString(16))},Er=function(t){var e=t.r,n=t.g,r=t.b,i=t.a,a=void 0===i?1:i;return"#".concat(Cr(e)).concat(Cr(n)).concat(Cr(r)).concat(1===a?"":Cr(Math.floor(255*a)))},Or=function(t){var e=t.r,n=t.g,r=t.b;return"rgb(".concat(e,",").concat(n,",").concat(r,")")},Ar=function(t,e){void 0===e&&(e=1e4);var n=t.r,r=t.g,i=t.b,a=t.a,o=void 0===a?1:a;return"rgba(".concat(n,",").concat(r,",").concat(i,",").concat(Math.floor(o*e)/e,")")},Mr=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}},Pr=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])}},Br=function(t){if(t.startsWith("#"))return Mr(t);if(t.startsWith("rgb"))return Pr(t);if("transparent"===t)return Mr("#00000000");throw new Error("color string error: ".concat(t))},Rr=new Map([["E1001","系统未知错误"],["E1002","vue逻辑错误"],["E1003","JavaScript错误"],["E1004","静态资源加载错误"],["E1005","请求错误"],["E1006","Promise错误"]]),Nr=function(t,e,n,r){void 0===r&&(r="null"),Vr({code:t,type:Rr.get("".concat(t)),msg:e,router:n.currentRoute.value.fullPath,file:r,createTime:(new Date).toLocaleString()})},Vr=function(t){var e=localStorage.getItem("ERROR");if(e){var n=JSON.parse(e);Ir(n),n.length>50?(n[0]=t,Ir(n)):n.push(t),localStorage.setItem("ERROR",JSON.stringify(n))}else localStorage.setItem("ERROR",JSON.stringify([t]))},Ir=function(t){t.sort((function(t,e){return t.createTime>e.createTime?1:-1}))},Fr=Object.freeze({__proto__:null,Watermark:class{constructor(t={}){tr(this,"options"),tr(this,"container"),tr(this,"watermarkContent"),tr(this,"watermarkDom"),tr(this,"style"),tr(this,"watermarkTag"),tr(this,"shadowRoot"),tr(this,"mutationObserver"),tr(this,"_isAgainRender",(t=>{if("attributes"===t.type){if(t.attributeName===rr)return!0;if(this.watermarkTag===this._getNodeRandomId(t.target))return!0}return!(!t.removedNodes.length||this.watermarkTag!==this._getNodeRandomId(t.removedNodes[0]))})),tr(this,"_getNodeRandomId",(t=>{var e,n;return null==(e=null==t?void 0:t.dataset)?void 0:e[(n=rr,n.split("-").slice(1).reduce(((t,e,n)=>0===n?e:`${t}${e[0].toUpperCase()+e.slice(1)}`)))]})),tr(this,"_destroyMutationObserver",(()=>{this.mutationObserver&&(this.mutationObserver.takeRecords(),this.mutationObserver.disconnect(),this.mutationObserver=null)})),tr(this,"_getWatermarkDom",(t=>er(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:o,height:s,rotate:u,opacity:l,fontSize:c,fontStyle:h,fontVariant:f,fontWeight:d,fontFamily:p,fontColor:v,textAlign:m,textBaseline:g,image:y,blindText:_,blindFontSize:b,blindOpacity:w}=t;return new Promise(((t,D)=>{const S=document.createElement("canvas"),x=S.getContext("2d"),T=1*(Number(n)+Number(o)),k=1*(Number(r)+Number(s)),C=Number(a)||Number(n)/2,E=Number(i)||Number(r)/2;if(S.setAttribute("width",`${T}px`),S.setAttribute("height",`${k}px`),x){const n=1*o,r=1*s;if(x.translate(1*C,1*E),x.rotate(Math.PI/180*Number(u)),_&&(x.globalAlpha=w,x.font=`${b}px normal`,x.fillText(_,0,0)),x.globalAlpha=l,y){const e=new Image;return e.crossOrigin="anonymous",e.referrerPolicy="no-referrer",e.src=y,void(e.onload=()=>{x.drawImage(e,0,0,n,r),t({url:x.canvas.toDataURL(),width:T,height:k})})}const i=Array.isArray(e)?e:[e],a=i.map((t=>x.measureText(t).width)),h=Math.max(...a),f=1*Number(c);x.textAlign=m,x.textBaseline=g,x.fillStyle=v,x.font=O(`${f}px`),h>o&&(x.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++)x.fillText(i[t]||"",n/2,p+d*t);t({url:x.canvas.toDataURL(),width:T,height:k})}function O(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",ar(this.style))}return this.watermarkDom.setAttribute(rr,this.watermarkTag),this.watermarkDom})))),tr(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({},nr,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=or("watermark"),this.mutationObserver=null,this._render()}update(t={}){this.options=Qn(Qn({},this.options),t),this.style.zIndex=this.options.zIndex,this._render()}show(){this.watermarkDom&&(this.style.display="block",this.watermarkDom.setAttribute("style",ar(this.style)))}hide(){this.watermarkDom&&(this.style.display="none",this.watermarkDom.setAttribute("style",ar(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 er(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(rr,e);const a=Qn({position:"relative"},n);return r||delete a.position,i.setAttribute("style",ar(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",ar({pointerEvents:"none"})),e.setAttribute(rr,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),sr&&this.options.monitor&&(this.mutationObserver=new sr((t=>{t.forEach((t=>{if(this._isAgainRender(t))return this.destroy(),void this._render()}))})),this.mutationObserver.observe(this.container,ir),this.shadowRoot&&this.mutationObserver.observe(this.shadowRoot,ir))}))}},generateComponentList:lr,generateCaseDataJson:cr,generatePageData:function(t){var e={},n=e.theme,r=void 0===n?null:n,i=e.globalVars,a=void 0===i?null:i,o=e.shareVariableTree,s=void 0===o?null:o,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,v=void 0===p?-1:p,m=e.globalEvents,g=void 0===m?[]:m;return t&&(r=t.theme,l=t.plant),{theme:r,globalVars:a,globalEvents:g,shareVariableTree:s,plant:l,undos:d,undoRedoPointer:v,list:lr(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,o=void 0===a?"":a,s=t.details,u=t.caseClientType,c=void 0===u?"":u,h=t.id,f={caseClientType:c,caseName:n,caseImg:i,caseRemark:o,caseId:void 0===h?"":h,createTime:l().format("YYYY-MM-DD , h:mm:ss"),caseData:cr(s)},d=new Blob([JSON.stringify(f)],{type:"json"});ur.saveAs(d,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:cr(r)}},SizeAdaption:fr,Scale:dr,loadFontResource:pr,loadScript:vr,removeTag:_r,loadTag:yr,loadFont:gr,getDataForEvaluator:b,recursion:de,setIndex:pe,encrypt:function(t){var e=new Xt;return e.setPublicKey("MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEApWni7uLYVV8iyDPTR6Zs\naj+2BHCn4xTzFeVHADzTdtBiFH9i4fKeDK0IfbPV/9TGeRYNfl0qSfdLtU+1ZIzm\npqHppadukmk5+NbBG4Xm/lAZgVt3dUIrSyamxVjwnymN7PLdxaSOS/mgU6SDGMhN\nTM76AXKZZXWMK12UCXvKkh+TkGufcXzLe7LtrvHPLOgcnEED2CkWATuE9g8K9j4T\neOMxhJcHBUmXLgU6Chufa4nBed2899E7jxJa14+J1IDa2ahrDFLZN7H//ZsvwnXq\nxVbxm0k5jyWqfCpg13V7zD3DxNWlo3MIh2fPtIEUDVhugqPd0jPmqquqdBNTnu2I\nGQIDAQAB"),e.encrypt(t)},decrypt:function(t){var e=new Xt;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)},decrypAES:Ne,safeEval:Ve,UpdataForContainer:Fe,setActions:Pe,genID:Ae,arraySwap:ae,arraySwapDeep:se,arraySwapForId:oe,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:Oe,selectdArea:ke,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:_e,resetPositionForGroup:function(t,e){var n=e.map((function(t){return t.cid}));e.forEach((function(e){e.pid&&De(e,t)}));var r=ke(n,e);return _e(r,e),{left:r.left,top:r.top,width:r.width,height:r.height}},setPositionForWorld:De,breakUp:be,findItem:he,findItemDeep:ue,findParentDeep:ce,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 o=0;o<(null==a?void 0:a.children.length);o++){if(r+=1,(null==a?void 0:a.children[o]).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 o=i[a][1];n(o)}}else if(t[r].isShow&&t[r].dynamicChildren instanceof Array){var s=t[r].dynamicChildren.find((function(e){return e[0]=t[r].activeDynamic}));s&&s.length&&n(s[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:me,updataAttributeForOption:ge,isPeer:fe,transformPosition:Se,upDataGroup:Ee,upDataGroupChildren:function(t,e,n){var r=t.children,a=i.default.cloneDeep(e),o=i.default.cloneDeep(Ce(r)),s=a.left,u=a.top;a.width,a.height;var l=o.left,c=o.top,h=o.width,f=o.height,d={left:s+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,o=t.baseData.top,s=e.left,u=e.top,l=i.default.cloneDeep(t.children),c=n||"";if(s-a<0)for(var h=0;h<l.length;h++){(f=l[h]).cid!==c&&(f.baseData.left=f.baseData.left+(a-s))}if(u-o<0)for(h=0;h<l.length;h++){var f;(f=l[h]).cid!==c&&(f.baseData.top=f.baseData.top+(o-u))}t.children=l},genCopyName: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 o=new RegExp("^".concat(i).concat(n,"( [1-9][0-9]*)?$")),s=[];e.forEach((function(t){if(a=o.exec(t)){var e=a[1]?parseInt(a[1]):1;s.push(e)}})),s.sort((function(t,e){return t-e})),r++;for(var u=0,l=s.length;u<l;u++)if(s[u]===r)r++;else if(s[u]>r)break;return i+n+" "+r},resetID:ve,getUrlParams:Me,updataSizeDeep:re,resizePosition:xe,resizeListPosition:function(t,e){var n=function(t,r){for(var i,a=0;a<t.length;a++){var o=t[a];if(o.pid!=r){var s=xe(e,o.cid),u=xe(e,o.pid);o.baseData.left=s.left-u.left,o.baseData.top=s.top-u.top}(null===(i=null==o?void 0:o.children)||void 0===i?void 0:i.length)&&n(o.children,o.cid)}};n(t,e)},checkBaseData:ie,comToggle:ye,setSessionData:ee,getSessionData:ne,globalSourceTemp:Ie,getAncestorsNodes:le,getInteractive:jn,checkVar:function(t,e){var n,r,i,a=!1,o=t.type,s=t.converse,u=t[o];if((null==s?void 0:s.use)&&(null===(n=null==s?void 0:s.data)||void 0===n?void 0:n.length))for(var l=0,c=s.data;l<c.length;l++){if((null==(g=c[l])?void 0:g.use)&&g.dependVars.includes(e)){a=!0;break}}if(a)return a;var h="",f="",d="";"api"==o&&(h=u.url,(null===(r=u.headers)||void 0===r?void 0:r.use)&&(f=u.headers.value),d=u.params),"datasource"==o&&(h=u.inputSql),"indicator"==o&&((null===(i=u.headers)||void 0===i?void 0:i.use)&&(f=u.headers.value),d=u.params);for(var p=/({{[\w]*}})|((@)[\w]*)/gm,v=0,m=[h,f,d];v<m.length;v++){var g,y=(g=m[v]).match(p);if((null==y?void 0:y.length)&&y.find((function(t){return t=="{{".concat(e,"}}")||t=="@".concat(e)}))){a=!0;break}}return a},executeFilter:function(t){return t.hasOwnProperty("originalValue")||(t.originalValue=t.value),t.converter&&t.converterCode?t.value=Ve(t.converterCode,t.originalValue):t.value=t.originalValue,t},getShareTree:function(t,e){try{var n={},r=[],i=[];return de(t,(function(t){var a,o,s,u=null===(a=null==t?void 0:t.tmpData)||void 0===a?void 0:a.source;(Ln(u,e,t,n),null===(s=null===(o=null==t?void 0:t.tmpData)||void 0===o?void 0:o.actions)||void 0===s?void 0:s.length)&&Pe({types:t.tmpData.actions.map((function(t){return t.eventType})),element:t,actions:r,events:i})})),n}catch(t){return console.error(t),{}}},isJSON:Hn,getStandardData:Un,screenshot:function(t){return d(void 0,void 0,void 0,(function(){var e,n,r,i,a,o,s,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,o=void 0,wr(n)&&wr(r)?[4,Tr(n,r,e,i||.5)]:[3,5];case 1:return(s=l.sent())&&200==s.status&&s.data?(o=s.data,[3,4]):[3,2];case 2:return console.warn("截取错误,请检查网络或服务地址配置是否正确,已转换为dom-to-img."),[4,kr(e,i||.5)];case 3:o=l.sent(),l.label=4;case 4:return[3,7];case 5:return console.warn("地址错误,请检查传入的地址是否争取,已转换为dom-to-img."),[4,kr(e,i||.5)];case 6:o=l.sent(),l.label=7;case 7:return o?[4,xr(o,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:Cr,toHexString:Er,toRgbString:Or,toRgbaString:Ar,parseHexColor:Mr,parseRgbaColor:Pr,parseColorString:Br,getColorInfo:function(t){var e=Br(t);return{hex:Er(e),rgba:Ar(e),rgb:Or(e),rgbaObj:e}},hexToRgba:function(t){var e=Br(t);return Ar(e)},rgbaToHex:function(t){var e=Br(t);return Er(e)},watchError:function(t,e){t.config.errorHandler=function(t){console.error("监测到E1002错误"),console.error(t.filename),Nr("E1002",t.name+":"+t.message,e)},window.addEventListener("error",(function(t){t.message?(console.error("监测到E1003错误"),Nr("E1003",t.message,t.filename,e)):(console.error("监测到E1004错误"),Nr("E1004",t.target.currentSrc,t.filename,e))}),!0)},errorHandler:Nr}),jr=Gn();function Lr(t,e,n,r){return d(this,void 0,void 0,(function(){var o,s,u,l,c,h;return p(this,(function(d){switch(d.label){case 0:o=t,s=i.default.cloneDeep(n),u=e?e.toLowerCase():"get",d.label=1;case 1:return d.trys.push([1,6,,7]),l={},["post","put"].includes(u)?l.data=s:l.params=s,c=void 0,/.json$/.test(o)?[4,a.default.get(o).then((function(t){return t.data}))]:[3,3];case 2:return c=d.sent(),[3,5];case 3:return[4,jr(f({method:Hr[u],headers:r,url:o,timeout:3e4},l)).then((function(t){return{code:2e4,data:t.data}}))];case 4:c=d.sent(),d.label=5;case 5:return[2,c];case 6:return h=d.sent(),console.error("error:"+h.message),[3,7];case 7:return[2]}}))}))}function Yr(t){return d(this,void 0,void 0,(function(){var e,n,r,i;return p(this,(function(a){switch(a.label){case 0:e=window.anUrl?window.anUrl:"",n=e+(window.agentPath?window.agentPath:"/ds/v1/api-proxy/v1/query"),r=null==t?void 0:t.params,a.label=1;case 1:return a.trys.push([1,3,,4]),r=Un(null==t?void 0:t.params,!0),[4,jr({url:n,headers:{"Content-Type":"application/json;charset=UTF-8"},method:"post",data:{body:"post"==(null==t?void 0:t.method)?r:void 0,headers:null==t?void 0:t.headers,method:null==t?void 0:t.method,url:null==t?void 0:t.url}})];case 2:return[2,a.sent()];case 3:return i=a.sent(),console.error("error:"+i.message),[3,4];case 4:return[2]}}))}))}var zr,Hr,Ur=function(t,e,n){var r,a=t.tmpData.source,o=n?n.value.api.agency:null===(r=null==a?void 0:a.api)||void 0===r?void 0:r.agency,s=a.type;if("static"!==s){var u=n?n.value.api:a[s],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 v=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 m=function(t){var n=Object.keys(t);if(null==n?void 0:n.length)for(var r,i,a,o=function(o){if("[object Object]"==Object.prototype.toString.call(t[n[o]]))m(t[n[o]]);else if("[object Array]"==Object.prototype.toString.call(t[n[o]]))t[n[o]]&&t[n[o]].length&&t[n[o]].map((function(t){m(t)}));else if(t[n[o]].toString().includes("@")){var s=e.filter((function(e){return e.mapField==t[n[o]].toString().replace(/{{|}}|@/gm,"")}))[0];s&&((/{|}/.test(s.value)||/\[|]/.test(s.value))&&(s.value=new Function("return "+s.value)()),t[n[o]]=s.value)}else if(r=null,/{{|}}/.test(t[n[o]].toString())){if(a=t[n[o]].toString().replace(/{{(.*?)}}/gm,(function(t,n){if(e.length){r=n.toString();for(var a=0;a<e.length;a++)if(void 0===n||e[a].mapField===n.toString())return i=Object.prototype.toString.call(e[a].value),e[a].value||e[a].originalValue}})),a){if(/{|}/.test(a)||/\[|]/.test(a))if("[object Object]"==a)for(var u=0;u<e.length;u++)r==e[u].mapField&&(a=e[u].value||e[u].originalValue);else a=new Function("return "+a)();t[n[o]]=a,"[object Number]"==i&&(t[n[o]]=Number(a))}a||(t[n[o]]="")}},s=0;s<n.length;s++)o(s)};m(p)}var g={};if(f&&i.default.isString(f)){var y={};try{y=JSON.parse(f)}catch(t){console.warn("转换参数异常")}"[object Array]"!==Object.prototype.toString.call(y)?i.default.assign(g,y):g=y}else i.default.assign(g,f);var _=function(t){Object.keys(t).forEach((function(n){if("[object Object]"==Object.prototype.toString.call(t[n]))_(t[n]);else if("[object Array]"==Object.prototype.toString.call(t[n]))t[n]&&t[n].length&&t[n].map((function(t){_(t)}));else if(t[n].toString().includes("@")){var r=e.filter((function(e){return e.mapField==t[n].toString().replace(/{{|}}|@/gm,"")}))[0];r&&((/{|}/.test(r.value)||/\[|]/.test(r.value))&&(r.value=new Function("return "+r.value)()),t[n]=r.value,c=i.default.replace(c,v[n],r.value))}else{var a,o=null;if(/{{|}}/.test(t[n].toString())){var s=t[n].toString().replace(/{{(.*?)}}/gm,(function(t,n){if(e.length){o=n.toString();for(var r=0;r<e.length;r++)if(void 0===n||e[r].mapField===n.toString())return a=Object.prototype.toString.call(e[r].value),e[r].value||e[r].originalValue}}));if(s){if(/{|}/.test(s)||/\[|]/.test(s))if("[object Object]"==s)for(var u=0;u<e.length;u++)o==e[u].mapField&&(s=e[u].value||e[u].originalValue);else s=new Function("return "+s)();t[n]=s,"[object Number]"==a&&(t[n]=Number(s)),c=i.default.replace(c,v[n],s)}s||(t[n]="",c=i.default.replace(c,v[n],""))}}}))};return _(g),{url:c,requestType:d,params:g,headers:p,agency:o}}return null},Wr=function(t,e,n){void 0===e&&(e=[]),e||(e=[]);var r=Ur(t,e);r&&n(r)},qr=function(t,e,n,r,i,a){t.then((function(t){/.json$/.test(a)?Kr(e,Gr(t,e,n,r),i,t.data):!t||2e4!=t.code&&200!=t.code?Kr(e,Gr({error:!0,message:t.msg?t.msg:"data error"},e,n,r),i):n?Kr(e,Gr(t.data,e,n,r),i):Kr(e,Gr(t.data,e,n,r),i,t.data)})).catch((function(t){Kr(e,Gr({error:!0,message:t.msg?t.msg:"data error"},e,n,r),i)}))},Gr=function(t,e,n,r){void 0===n&&(n=!0);try{var i=e.tmpData.source,a=i.converse;i.mapFields;return a&&a.use&&n?new Promise((function(e,n){e(b(t,a,0,r))})):new Promise((function(e,n){e(t)}))}catch(t){console.error(t)}},Kr=function(t,e,n,r){e.then((function(e){r?Zr(t,e,n,r):Zr(t,e,n)}))},Zr=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})},$r=function(t,e,n,r,i,a,o){return void 0===r&&(r=!0),d(void 0,void 0,void 0,(function(){var o,s,u,l,c,h,f,d,v,m,g,y,_,b,w,D,S,x,T,k,C;return p(this,(function(p){return o=function(t){i(t),"AnContainer"===(null==e?void 0:e.viewComName)&&r&&Fe(e)},s=null!==(S=null===(D=null===(w=window.goDevConfig)||void 0===w?void 0:w.deep)||void 0===D?void 0:D.valueOf())&&void 0!==S&&S,"globalData"==t&&t&&(t=null===(x=null==a?void 0:a.value)||void 0===x?void 0:x.type,u=null===(k=null===(T=null==e?void 0:e.tmpData)||void 0===T?void 0:T.source.globalData)||void 0===k?void 0:k.id,l=ne(u))?(s?(c={tmpData:{source:a.value}},$r(t,c,n,!0,(function(t){Kr(e,Gr(t.data,e,r,n),o)}))):Kr(e,Gr(l.data,e,r,n),o),[2]):(h=e.tmpData.source[t],"api"==t?ei(e,n,r,o):"static"==t?(b=void 0,f=void 0,h.originData&&Object.keys(h.originData).length?(b=h.originData,f=b):b=h.data,Kr(e,Gr(b,e,r,n),o,f)):"datasource"==t?(d=/({{[\w]*}})|((@)[\w]*)/gm,v=h.inputSql.match(d),m=h.inputSql,v&&v.length&&v.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="[object String]"==Object.prototype.toString.call(t.value)?"null"==t.value||"undefined"==t.value||"true"==t.value?t.value:isNaN(Number(t.value))&&'""'!=t.value&&"''"!=t.value?'"'.concat(t.value,'"'):t.value:t.value)})),m=m.replaceAll(t,r)})),ti(h.dsName,{dsType:"1",sql:Ne(m),filter:h.sqlFilter},e,n,o,r,t)):"staticFile"==t?ti(h.dsName,{dsType:h.dsType,sql:""},e,n,o,r,t):"indicator"==t?Qr(h.zbId,{},e,n,o,r):"indicatorCQ"==t?(g=a?a.value.indicator:e.tmpData.source.indicator,Jr(g.zbName,g.params,e,n,o,r)):"packData"==t?(y=null===(C=null==e?void 0:e.tmpData)||void 0===C?void 0:C.source,_=null==y?void 0:y.type,b=y[_].data,Kr(e,Gr(b,e,r,n),o)):o({cid:e.cid,data:"",message:"发生错误"}),[2])}))}))},Xr=function(t,e,n,r,i,a){void 0===n&&(n=!0);try{var o=t.tmpData.source.type,s=void 0;s=r||function(){};var u=null;"globalData"==o&&i&&(u=i.find((function(e){return t.tmpData.source[o].id==e.key}))),$r(o,t,e,n,s,u,a||[])}catch(t){r&&r(t),console.log("error:11"+t)}},Jr=function(t,e,n,r,i,a){return d(void 0,void 0,void 0,(function(){var o,s,u,l,c,h,f,d,v;return p(this,(function(p){switch(p.label){case 0:return o=window.BaseUrl,s=e.dateType,u=void 0===s?"":s,l=e.endPeriod,c=void 0===l?"":l,h=e.metricsName,f=void 0===h?t:h,d=e.startPeriod,v=void 0===d?"":d,[4,jr({method:"GET",url:"".concat(o,"ds/v1/metrics/v1/data-alarm?dateType=").concat(u,"&endPeriod=").concat(c,"&metricsName=").concat(f,"&startPeriod=").concat(v),timeout:qn}).then((function(t){if(2e4==t.code){var e=t.data;e?Kr(n,Gr(e,n,a,r),i):(Kr(n,Gr({data:e,message:t.msg?t.msg:"data error"},n,a,r),i),i({data:e,message:"发生错误"}))}else i({data:"",message:"发生错误"}),console.error("发生错误"),Kr(n,Gr({error:!0,message:t.msg?t.msg:"data error"},n,a,r),i)})).catch((function(t){i(t)}))];case 1:return p.sent(),[2]}}))}))},Qr=function(t,e,n,r,i,a){return d(void 0,void 0,void 0,(function(){var e,o,s,u,l,c,h,f,d,v;return p(this,(function(p){switch(p.label){case 0:e=window.BaseUrl?window.BaseUrl.replace("/management",""):"",o=Me("YZH_EXCHANGE_TOKEN")?Me("YZH_EXCHANGE_TOKEN"):null===(v=window.yzhAuth)||void 0===v?void 0:v.getToken(),u=window.gdPassid,s=window.BASE_RELEASE?"".concat(e,"/ds/data-engine/v1/").concat(t,"/zb-query?token=").concat(o,"&passid=").concat(u,"&preview=1"):"".concat(e,"/ds/data-engine/v1/").concat(t,"/zb-query?token=").concat(o,"&passid=").concat(u),l=Ur(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,jr({method:"POST",url:s,data:{headers:f,param:d},timeout:qn}).then((function(t){if(2e4==t.code){var e=JSON.parse(t.data);e?Kr(n,Gr(e,n,a,r),i):(Kr(n,Gr({error:!0,message:t.msg?t.msg:"data error"},n,a,r),i),i({data:e,message:"发生错误"}))}else i({data:"",message:"发生错误"}),console.error("发生错误"),Kr(n,Gr({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]}}))}))},ti=function(t,e,n,r,i,a,o){return d(void 0,void 0,void 0,(function(){var s,u;return p(this,(function(l){switch(l.label){case 0:return"/"==(s=window.BaseUrl?window.BaseUrl.replace("/management",""):"")&&(s=""),e.newEncryption=!0,u={staticFile:{method:"get",params:e,url:"".concat(s,"/ds/v1/file/v1/").concat(t,"/query")},datasource:{method:"post",url:"".concat(s,"/ds/v1/database/v1/").concat(t,"/query"),data:f({},e)}},[4,jr(f({method:"get",timeout:qn},u[o])).then((function(t){if(2e4==t.code){var e=Un(t.data);e?Kr(n,Gr(e,n,a,r),i):(Kr(n,Gr({error:!0,message:t.msg?t.msg:"data error"},n,a,r),i),i({data:e,message:"发生错误"}))}else i({data:"",message:"发生错误"}),console.error("发生错误"),Kr(n,Gr({error:!0,message:t.msg?t.msg:"data error"},n,a,r),i)})).catch((function(t){i(t)}))];case 1:return l.sent(),[2]}}))}))},ei=function(t,e,n,r){void 0===n&&(n=!0);try{var i=Ur(t,e),a=i.url,o=i.requestType,s=i.params,u=i.headers,l=i.agency,c=a.match(/({{[\w]*}})|((@)[\w]*)/gm),h=a;c&&c.length&&c.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)})),h=h.replaceAll(t,r)})),qr(l?Yr({method:o,url:h,params:s,headers:u}):Lr(h,o,s,u),t,n,e,r,h)}catch(t){console.log("error:22"+t)}},ni=function(t,e,n,r,i,a){var o,s;void 0===a&&(a=!0),t&&"api"==(null===(s=null===(o=null==t?void 0:t.tmpData)||void 0===o?void 0:o.source)||void 0===s?void 0:s.type)&&Wr(t,e,(function(o){if(s=o.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(s))return n({cid:t.cid,data:{error:!0,message:o.url+"不是一个正确的地址,请正确填写!"}}),!1;var s,u=o.url,l=o.requestType,c=o.params,h=o.headers;o.agency?Yr({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,Gr(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}})})):Lr(u,l,c,h).then((function(e){var i=[];if(r){var o=t.tmpData.source,s=o.converse;o.mapFields,s&&s.use&&a?b(e.data,s).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"}(zr||(zr={})),function(t){t.get="GET",t.post="POST",t.put="PUT",t.patch="PATCH",t.delete="DELETE"}(Hr||(Hr={}));var ri=Object.freeze({__proto__:null,Http:function(t,e){return Gn(t,e)},axios:a.default,getDataForEvaluator:b,getData:Lr,agentData:Yr,getComponentData:Wr,filterData:Gr,autoUpdateComData:function(t,e,n){var r,a,o,s,u,l=null===(r=null==t?void 0:t.tmpData)||void 0===r?void 0:r.source,c=null===(o=null===(a=l[null==l?void 0:l.type])||void 0===a?void 0:a.autoUpdate)||void 0===o?void 0:o.open,h=null===(u=null===(s=l[null==l?void 0:l.type])||void 0===s?void 0:s.autoUpdate)||void 0===u?void 0:u.time;c&&i.default.isNumber(h)&&h>0&&setInterval((function(){Xr(t,e,!0,n)}),1e3*h)},parseSource:$r,updateComData:Xr,refreshData:ni,get ContentType(){return zr},get HttpMethod(){return Hr}});function ii(t){var e=[],n=[];de(i.default.cloneDeep(t),(function(t){var r,i;(console.log(t,"item"),null===(i=null===(r=null==t?void 0:t.tmpData)||void 0===r?void 0:r.actions)||void 0===i?void 0:i.length)&&Pe({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 ai={addGlobalSource:function(t,e){var n=e.name,r=e.value;t.globalSource.push({key:Ae(),name:n,value:r})},editGlobalSource:function(t,e){var n=this,r=e.key,a=e.value,o=t.globalSource.find((function(t){return t.key==r}));o&&(o.name=e.name,o.value=a,de(i.default.cloneDeep(t.list),(function(e){var i,a,o;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 s=null===(o=null==e?void 0:e.tmpData)||void 0===o?void 0:o.source.globalData,u=(null==e?void 0:e.children)?null==e?void 0:e.children:null;(null==s?void 0:s.id)==r&&Xr(e,t.globalVars,!0,(function(t){n.commit("GoCom/updataSourceForComponent",t)}),t.globalSource,u)}})))},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){t.shareVariable[e.key]=f({},e)},addGoRunVar:function(t,e){try{var n=jn(t.list,t.globalConstant,t.sysConst);t.globalVars=n.globalVars,t.eventsComs=n.eventsComs}catch(t){console.warn(t)}},addGoVar:function(t,e){try{var n=e.mapField,r=t.globalConstant.filter((function(t){return t.mapField==n})).length;if(!n||r)throw new Error("添加失败!变量已经存在!");t.globalConstant.push(e);var i=jn(t.list,t.globalConstant,t.sysConst);t.globalVars=i.globalVars,t.eventsComs=i.eventsComs}catch(t){console.warn(t)}},copyGoVar:function(t,e){try{for(var n=e.mapField,r=(n.toString().trim(),t.globalConstant.filter((function(t){return t.mapField.includes(n)}))),a=1,o=0;o<r.length;o++)a++;var s="".concat(n," (").concat(a,")"),u=t.globalConstant.find((function(t){return t.mapField==n}));if(n&&u){var l=i.default.cloneDeep(u);l.mapField=s,t.globalConstant.push(l);var c=jn(t.list,t.globalConstant,t.sysConst);t.globalVars=c.globalVars,t.eventsComs=c.eventsComs}}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;var o=jn(t.list,t.globalConstant,t.sysConst);t.globalVars=o.globalVars,t.eventsComs=o.eventsComs}catch(t){console.warn(t)}},editGoVar:function(t,e){var n,r=this;try{var a=e.mapField,o=(e.value,e.mapping,e.converter),s=e.converterCode,u=e.model,l=e.des,c=e.originalValue,h=e.fork,f=e.forkValue,d=e.update;if(h&&-1==t.globalVars.findIndex((function(t){return t.mapField==a})))e.model=1,t.globalConstant.push(e);else if(0==u)de(t.list,(function(t){var e,n,r=null===(e=null==t?void 0:t.tmpData)||void 0===e?void 0:e.actions;if(null==r?void 0:r.length)for(var i=r.filter((function(t){return"vars"===t.behave})),u=0,h=i;u<h.length;u++){var f=h[u];(null===(n=f.vars)||void 0===n?void 0:n.length)&&f.use&&f.vars.filter((function(t){return t.mapField===a})).forEach((function(t){t.value=c,t.originalValue=c,t.des=l,o?(t.converter=o,t.converterCode=s):(t.converter=!1,t.converterCode="return data")}))}}));else if(2==u)for(var p=0,v=t.sysConst;p<v.length;p++){(y=v[p]).mapField===a&&(f&&(y.forkValue=f),y.des=l,y.originalValue=c,y.value=c,o?(y.converter=o,y.converterCode=s):(y.converter=!1,y.converterCode="return data"))}else for(var m=0,g=t.globalConstant;m<g.length;m++){var y;(y=g[m]).mapField===a&&(y.des=l,f&&(y.forkValue=f),y.originalValue=c,y.value=c,o?(y.converter=o,y.converterCode=s):(y.converter=!1,y.converterCode="return data"))}var _=jn(t.list,t.globalConstant,t.sysConst);if(t.globalVars=_.globalVars,t.eventsComs=_.eventsComs,null===(n=t.globalSource)||void 0===n?void 0:n.length)for(var b=function(e){$r("globalData",{tmpData:{source:e.value}},t.globalVars,!0,(function(n){var a={name:e.name,key:e.key,data:n.data};ee(e.key,a),de(i.default.cloneDeep(t.list),(function(t){var n,i,a;"globalData"==(null===(i=null===(n=null==t?void 0:t.tmpData)||void 0===n?void 0:n.source)||void 0===i?void 0:i.type)&&((null===(a=null==t?void 0:t.tmpData)||void 0===a?void 0:a.source.globalData).id==e.key&&r.commit("GoCom/updatComs",t.cid))}))}),e,t.list)},w=0,D=t.globalSource;w<D.length;w++){b(D[w])}d&&this.commit("GoCom/updatComsForVar",a)}catch(t){console.warn(t)}},goEditVar:function(t,e){var n=e.key,r=e.value,i=t.globalVars.find((function(t){return t.mapField==n}));i&&(i.originalValue=r,i.update=!0,t.globalVars.forEach((function(t){t.mapField==n&&(t.originalValue=r,t.value=r)})),this.commit("GoCom/editGoVar",i))},goDelShareVar:function(t,e){delete t.shareVariable[e]},signal:function(t,e){},goSynchroDataAll:function(t,e){t.list=i.default.cloneDeep(e)},goSynchroDataForOption:function(t,e){if(t){var n=e.cid,r=e.value,i=ue(t.list,n);"boolean"!=typeof i&&i&&ge(i,r)}this.commit("GoCom/execute")},goSynchroData:function(t,e){if(t){var n=e.cid,r=e.attr,a=e.value,o=e.attrModel,s=ue(t.list,n);if("boolean"!=typeof s){if(s&&me(s,r,a,o),"actions"===r.toLowerCase()){var u=t.list,l=i.default.uniqWith(i.default.concat(ii(u).actions,ii(t.caseList).actions),i.default.isEqual),c=i.default.uniqWith(i.default.concat(ii(u).events,ii(t.caseList).events),i.default.isEqual);t.globalVars=v(v(v([],l,!0),t.globalConstant,!0),t.sysConst,!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(!s.tmpData.source)return!1;var h=s.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,"")})),m=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(s.cid);var r=t.shareVariableTree[n];t.shareVariableTree[n]=i.default.uniq(r)}else t.shareVariableTree[n]=[],t.shareVariableTree[n].push(s.cid)},g=0;g<p.length;g++)m(g)}}}}this.commit("GoCom/execute")},goUpdataSysVars:function(t,e){var n={U_CITY:"cityCode",U_COUNTY:"countyCode",U_PROVINCE:"provinceCode",U_PHONE:"userPhone"},r=t.sysConst,i=Object.keys(n);r.map((function(t){if((null==t?void 0:t.name)&&(null==i?void 0:i.includes(t.name))){var r=n[t.name];t.value=e[r],t.originalValue=e[r]}return t})),t.sysConst=r,t.globalVars=jn(t.list,t.globalConstant,t.sysConst).globalVars},resetGlobalVars:function(t){t.globalVars=t.sysConst,t.globalConstant=[]},updateGlobalRelatedVars:function(t,e){var n=e.run,r=e.gvData;return n.length&&n.forEach((function(t){var e=r.filter((function(e){return e.mapField==t.mapField||e.fork&&e.forkValue==t.mapField}));if(e.length)for(var n=0,i=e;n<i.length;n++){var a=i[n],o=t.value;a.mapField==t.mapField?a.value=o:a.fork&&t.mapField==a.forkValue?a.converter&&a.converterCode?(a.originalValue=o,a.value=Ve(a.converterCode,o)):(a.originalValue=o,a.value=o):r.push(t)}})),r}},oi={updataList:function(t,e){var n=e.cid,r=In(e.list,(function(t){var e=ue(t,n),r=e.pid,i=le(t,n),a=function(t){for(var e=0;e<t.length;e++){var n=t[e];Ee(n,n.baseData,0,!0)}},o=function(t){return t.reduce((function(t,e){return{left:t.left+e.baseData.left,top:t.top+e.baseData.top}}),{left:0,top:0})},s=function(t,e){void 0===e&&(e=t);for(var n=0;n<t.length;n++){var r=t[n];if(r.children&&Array.isArray(r.children))return 0===r.children.length?(e.splice(n,1),!0):(s(r.children,r.children)&&0===r.children.length&&e.splice(n,1),!0)}};if(i.length>0)if(e.pid=i[0].cid,r){var u=v([ue(t,r)],le(t,r),!0),l=o(u),c=o(i);e.baseData=f(f({},e.baseData),Se(e.baseData,l)),e.baseData=f(f({},e.baseData),Se(e.baseData,c,1)),a(u),a(i)}else{c=o(i);e.baseData=f(f({},e.baseData),Se(e.baseData,c,1)),a(i)}r&&0==i.length&&(e.pid="",function(e,n){var r=le(t,n),i=ue(t,n);if(0===r.length)e.baseData=f(f({},e.baseData),Se(e.baseData,i.baseData));else{r=v([i],r,!0);var s=o(r);e.baseData=f(f({},e.baseData),Se(e.baseData,s))}a(v([i],r,!0))}(e,r)),s(t),pe(t)}));t.list=r},updataListForContrast:function(t,e){var n=e.cid,r=e.list,a=ue(r,n);ce(r,n);var o=ce(t.list,n);if(!a.pid){a.pid=o.cid;var s=i.default.cloneDeep(a.baseData),u=Se(a.baseData,o.baseData,1);Object.assign(a.baseData,u),Ee(o,s)}pe(t.list)},updateTree:function(t){for(var e=t.list,n=0;n<e.length;n++){var r=e[n];if(r.pid)(s=ue(e,r.pid))&&Object.assign(r.baseData,Se(r.baseData,s.baseData));if(r.children)for(var a=0;a<r.children.length;a++){var o=r.children[a];if(o.pid!=r.cid){var s=ue(e,o.pid);if(i.default.cloneDeep(o.baseData),s){Object.assign(o.baseData,Se(o.baseData,s.baseData));var u=Se(o.baseData,r.baseData,1);Object.assign(o.baseData,u),Ee(r,r.baseData)}o.pid=r.cid}}}pe(e)}},si={reset:function(t){t.selectd=[],t.list=[],t.plant=null,t.tw=null,t.watermark=null,t.endnotes=null,t.globalConstant=[]},setFonts:function(t,e){t.resource.fonts.push({fontName:e.name,fontUrl:e.src}),gr(t.resource)},setCaseInfo:function(t,e){t.caseInfo=e},setPageId:function(t,e){t.pageId=e},pagePush:function(t,e){try{var n=e.type,r=e.value,i=["name","path","id"];if(!i.includes(n))throw new Error("页面跳转错误!".concat(n," 不是一个正确的参数 请填以下参数 ").concat(i.join(",")));if(!r)throw new Error("页面跳转错误!".concat(n," 不是一个正确的参数 请填正确的页面路径或者页面名称"));t.toPage={type:n,value:r}}catch(t){console.warn(t)}},updatComs:function(t,e){var n=this,r=ue(t.list,e);if("boolean"!=typeof r){var i=(null==r?void 0:r.children)?null==r?void 0:r.children:null;Xr(r,t.globalVars,!0,(function(t){n.commit("GoCom/updataSourceForComponent",t)}),null,i)}},updatComsForVar:function(t,e){var n=t.globalVars.map((function(t){var n,r;if((null===(n=null==t?void 0:t.forkValue)||void 0===n?void 0:n.length)&&(null===(r=null==t?void 0:t.forkValue)||void 0===r?void 0:r.includes(e))||t.forkValue==e)return t.mapField})).filter((function(t){return t})),r=[e];(null==n?void 0:n.length)&&(r=i.default.uniq(v([e],n,!0)));for(var a=[],o=0,s=r;o<s.length;o++){var u=s[o];t.shareVariableTree[u]&&a.push.apply(a,t.shareVariableTree[u])}if(null==a?void 0:a.length)for(var l=0,c=a;l<c.length;l++){var h=c[l];this.commit("GoCom/updatComs",h)}},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,_r(),yr(t.resource)},updataResource:function(t){_r(),yr(t.resource)},resetResource:function(t){t.resource={jspaths:[],csspaths:[],otherpaths:[]}},setData:function(t,e){t.selectd=e.selectd},setList:function(t,e){t.list=e,pe(t.list)},saveDynamicChildren:function(t,e){var n=e.cid,r=e.data,i=e.name,a=t.pages[t.pageIndex].list,o=ue(a,n);o&&(o.activeDynamic=i,o.dynamicChildren instanceof Array&&(o.dynamicChildren=new Map(o.dynamicChildren)),o.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),pe(t.list)},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=ue(i,n);"boolean"!=typeof a&&Object.assign(a,r)},updataComponentForCaseList:function(t,e){var n=e.cid,r=e.data,i=t.caseList,a=ue(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=ue(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=ue(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=ue(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=ue(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=ue(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){De(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,o=n.origin,s=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 fe(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=ue(t.list,e);n.pid&&(ue(t.list,n.pid).toggle=!0);s||(n.toggle=!0)})),t.selectdChangeOrigin=o||""},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){Oe(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",[]),n.lines={h:[],v:[]}),r?t.list.push(n):t.list.unshift(n),t.menuList=i.default.cloneDeep(t.list),pe(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 o=ue(t.list,a);r?(o.children=[],o.children.push(n)):o.children.unshift(n)}else r?t.list.splice(0,1,n):t.list.unshift(n);t.menuList=i.default.cloneDeep(t.list),pe(t.list),this.commit("GoCom/execute")},addMyComs:function(t,e){var n;try{var r=e.data,a=e.shareVariableTree,o=e.globalVars,s=e.globalEvents;t.globalVars=i.default.uniq(i.default.concat(i.default.cloneDeep(t.globalVars),o)),t.globalEvents=i.default.uniq(i.default.concat(i.default.cloneDeep(t.globalEvents),s));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?(ve(r),(n=t.list).unshift.apply(n,r)):(ve([r]),t.list.unshift(r)),t.menuList=i.default.cloneDeep(t.list),pe(t.list),this.commit("GoCom/execute")}catch(t){}},addStateChildren:function(t,e){var n=ue(t.list,e.pid);n&&n.stateChildren.push(e)},addDynamicChildren:function(t,e){var n=ue(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=ue(r,e[0]),o=ue(r,e[1]),s=ue(r,a.pid),u={},l=0,c=0;if(o)if("selectContainer"==o.componentType){var h=ue(r,e[1]);s?(l=i.default.findIndex(s.children,(function(t){return t.cid==e[0]})),u=s.children[l],s.children=s.children.filter((function(t){return t.cid!==u.cid}))):(u=ue(r,e[0]),r=r.filter((function(t){return t.cid!==u.cid}))),u.cid=Ae(),u.pid=h.cid,h.children.push(u)}else if(a.pid||o.pid)if(s)if(l=i.default.findIndex(s.children,(function(t){return t.cid==e[0]})),u=s.children[l],a.pid!==o.pid){h=ue(r,o.pid);c=i.default.findIndex(h.children,(function(t){return t.cid==e[1]}));f=h.children[c];u.cid=Ae(),u.pid=h.cid,f.cid=Ae(),f.pid=s.cid,s.children.splice(l,1,f),h.children.splice(c,1,u)}else c=i.default.findIndex(s.children,(function(t){return t.cid==e[1]})),(n=s.children).splice.apply(n,v([c,1],s.children.splice(l,1,s.children[c]),!1));else{var h=ue(r,o.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=ue(r,a.cid);var f=h.children[c];u.cid=Ae(),u.pid=h.cid,f.cid=Ae(),f.pid=null,r.splice(l,1,f),h.children.splice(c,1,u)}else oe(t.list,e[0],e[1]);else l=i.default.findIndex(s.children,(function(t){return t.cid==e[0]})),u=s.children[l],s.children.splice(l,1),u.cid=Ae(),u.pid=null,r.push(u);t.list=r,pe(t.list)}catch(t){console.warn("组件位置交换发生错误",t)}},changeDynamicState:function(t,e){var n=ue(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,o=e.value,s=ue(t.list,i);s&&(null===(r=null===(n=null==s?void 0:s.tmpData)||void 0===n?void 0:n.option)||void 0===r?void 0:r.hasOwnProperty(a))&&(s.tmpData.option[a]=o)}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),pe(t.list),this.commit("GoCom/execute")},updataName:function(t,e){var n=ue(t.list,e.cid);n&&(n.name=e.name)},setDynamicActive:function(t,e){e.cid;var n=e.name,r=ue(t.list,e.cid);r&&"dynamicComponent"==r.componentType&&(r.activeDynamic=n)},updataScroll:function(t,e){e.cid;var n=e.data,r=ue(t.list,e.cid);r&&"dynamicComponent"==r.componentType&&(r.srcollInfo={use:!!(null==n?void 0:n.use)&&(null==n?void 0:n.use),data:(null==n?void 0:n.data)?null==n?void 0:n.data:null})},updataDySetting:function(t,e){e.cid;var n=e.data,r=ue(t.list,e.cid);r&&"dynamicComponent"==r.componentType&&(r.dyOption=n)},setCurrentEdited:function(t,e){if(e){var n=ue(t.list,e);if("boolean"!=typeof n){var r=be(n);n.children=r}t.currentEditerCid=e}else t.currentEditerCid=""},setDynamicLine:function(t,e){var n=i.default.cloneDeep(t.list),r=ue(n,e.cid);n.length&&"boolean"!=typeof r&&(r.lines=Object.assign({},r.lines,e.lines)),t.list=n}},ui={layout:function(t,e){var n=function(t,e){try{var n=t.map((function(t){var n=ue(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})),o=(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=o-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})),o=(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=o-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)}}},li={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:[]},t.globalVars=t.sysConst},setCurrentPageIndex:function(t,e){var n=t.globalEvents,r=t.globalVars,i=t.list,a=t.name,o=t.theme,s=t.plant,u=t.shareVariableTree,l=t.resource;t.pages[t.pageIndex]={globalEvents:n,globalVars:r,list:i,name:a,theme:o,plant:s,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=void 0===n?[]:n,i=t.list,a=t.name,o=t.theme,s=t.plant,u=t.shareVariableTree,l=t.resource;t.pages[t.pageIndex]={globalEvents:e,globalVars:r,list:i,name:a,theme:o,plant:s,shareVariableTree:u,resource:l}},getCurrentPageData:function(t){var e=t.globalEvents,n=t.globalVars,r=t.list,i=t.name,a=t.theme,o=t.plant,s=t.shareVariableTree,u=t.resource;t.pages[t.pageIndex]={globalEvents:e,globalVars:n,list:r,name:i,theme:a,plant:o,shareVariableTree:s,resource:u}}},ci={segmentationContainer:function(t,e){var n=i.default.cloneDeep(t.list),r=e.containerData,a=e.direction,o=[];if("del"==a)if(r.pid){var s=function(t){if(t.length)for(var e=0;e<t.length;e++)t[e].hasOwnProperty("children")&&t[e].children.length&&t[e].children.map((function(n){t[e].cid=n.pid})),r.pid===t[e].cid?t[e].children.length&&(t[e].children.map((function(t){t.cid!==r.cid&&t.hasOwnProperty("children")&&t.children.length&&(o=t.children)})),t[e].children=[],o.length&&(t[e].children=o)):t[e].hasOwnProperty("children")&&s(t[e].children)};n.length&&s(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&&((o=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:0,unit:"px"},{val:0,unit:"px"},{val:0,unit:"px"},{val:0,unit:"px"}],bgColor:{alpha:1,blue:0,green:0,red:0,flag:1,style:"transparent"},borderRadius:[{val:0,unit:"px"},{val:0,unit:"px"},{val:0,unit:"px"},{val:0,unit:"px"}],margins:[{val:0,unit:"px"},{val:0,unit:"px"},{val:0,unit:"px"},{val:0,unit:"px"}]}},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:Ae(),pid:t[e].cid,nestIndex:0,children:[],isTop:!1,isCol:"col"==a,isRow:"col"!=a,isDragged:!1,grandParentId:r.pid});o.length&&(o[0].cid=Ae(),o[0].pid=t[e].children[0].cid,t[e].children[0].children=o)}else t[e].hasOwnProperty("children")&&u(t[e].children)};n.length&&u(n)}else{var l=ue(n,r.cid);if(l){l.direction=a,1===l.children.length&&(o=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:0,unit:"px"},{val:0,unit:"px"},{val:0,unit:"px"},{val:0,unit:"px"}],bgColor:{alpha:1,blue:0,green:0,red:0,flag:1,style:"transparent"},imgOpt:"",bgScaleOpt:3,borderRadius:[{val:0,unit:"px"},{val:0,unit:"px"},{val:0,unit:"px"},{val:0,unit:"px"}],margins:[{val:0,unit:"px"},{val:0,unit:"px"},{val:0,unit:"px"},{val:0,unit:"px"}]}},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:Ae(),pid:l.cid,nestIndex:0,children:[],isTop:!1,isCol:"col"==a,isRow:"col"!=a,isDragged:!1,grandParentId:r.pid});o.length&&(o[0].cid=Ae(),o[0].pid=l.children[0].cid,l.children[0].children=o)}}t.list=n}},hi={updataList:function(t,e){var n=t.commit;e&&n("updataList",e),n("updateTree")},updataBaseData:function(t,e){var n=t.commit;e&&n("updataBaseData",e)},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)},updatComs:function(t,e){var n=t.commit;setTimeout((function(){n("updatComs",e)}))},updatComsForVar:function(t,e){var n=t.dispatch,r=t.state,a=r.globalVars.map((function(t){var n,r;if((null===(n=null==t?void 0:t.forkValue)||void 0===n?void 0:n.length)&&(null===(r=null==t?void 0:t.forkValue)||void 0===r?void 0:r.includes(e))||t.forkValue==e)return t.mapField})).filter((function(t){return t})),o=[e];(null==a?void 0:a.length)&&(o=i.default.uniq(v([e],a,!0)));for(var s=[],u=0,l=o;u<l.length;u++){var c=l[u];r.shareVariableTree[c]&&s.push.apply(s,r.shareVariableTree[c])}if(null==s?void 0:s.length)for(var h=0,f=s;h<f.length;h++){n("updatComs",f[h])}},goEditVar:function(t,e){var n=t.commit,r=t.state,i=e.key,a=e.value,o=r.globalVars.find((function(t){return t.mapField==i}));o.fork?console.warn("禁止修改,有引用值的变量!"):o&&(o.originalValue=a,o.update=!0,n("editGoVar",o))}},fi={getCurrentPage:function(t){return t.pages.length?t.pages[t.pageIndex]:[]},globalSourceTree:function(t){if(t.list.length&&t.globalSource.length){var e=[];return de(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[]}},di={namespaced:!0,state:c,mutations:f(f(f(f(f(f(f(f(f({},m),Fn),Wn),ai),oi),si),ui),li),ci),actions:hi,getters:fi},pi=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 vi(t.storeModule,e)},t.prototype.mapGetters=function(e){return gi(t.storeModule,e)},t.prototype.mapMutations=function(e){return mi(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}(),vi=_i((function(t,e){var n;return yi(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=bi(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})),mi=_i((function(t,e){var n;return yi(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=bi(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})),gi=_i((function(t,e){var n={};return yi(e).forEach((function(e){var r=e.key,i=e.val;i=t+i,n[r]=function(){if(!t||bi(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 yi(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 _i(t){return function(e,n){return"string"!=typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function bi(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 wi=function(){function t(t){var e=this;if(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=Ae(),t){Object.keys(t).forEach((function(n){e[n]=t[n]}));["AnEchartsMap","AnMaptalks","AnEchartsMap1","AnArcgisMapBase","AnAMap1","AnCesium","AnThreeMap3DChina","AnThreeMapForCesium","AnThreeMap","AnGisMap","AnMineMap","MineMapMarkerLayer","MineMapClusterLayer","AnChina3D","AncsAnovGis"].includes(t.viewComName)&&(this.componentType="MultiStateComponent"),"AnDynamic"!==t.viewComName&&"AmDynamic"!==t.viewComName&&"AnContainer"!==t.viewComName&&"AnContainer"!==t.viewComName||(this.componentType="dynamicComponent")}}return t.prototype.setIndex=function(t){this.z=t},t}(),Di=function(){function t(t){this.vueServer=t,this.loadScript=vr}return t.setStore=function(t){this.store=t},t.prototype.loadComponents=function(t){var e=t&&t.list?t.list:[];de(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}(),Si=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,o=window.indexedDB;if(o)if((null==r?void 0:r.length)<1)console.error("表名不能为空");else{var s=o.open(n,i);s.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)},s.onsuccess=function(t){var n;e.storage=null===(n=t.target)||void 0===n?void 0:n.result,"function"==typeof a&&a(t)},s.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}(),xi=function(){function t(){this.VueServer=new pi}return t.getInstance=function(){return this.instance||(this.db=new Si({dbName:"AnovGo",tables:["logs"]}),this.instance=new t),this.instance},t.prototype.getAppStore=function(){return t.store},t.setAppStore=function(e){t.store=e,pi.setAppStore(e),Di.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 wi(t);e?this.add(n.cid,n,!0):this.add(n.cid,n)},t.prototype.renderForParent=function(t,e,n){var r=new wi(t);void 0!==n?this.addForParent(r.cid,r,e,n):this.addForParent(r.cid,r,e)},t.prototype.reversal=function(t){new Di(new pi).loadComponents(t)},t.prototype.emitEvent=function(t,e){var n=this,r=this.VueServer.callState("globalEvents"),a=this.VueServer.callState("globalVars"),o=this.VueServer.callState("shareVariableTree"),s=this.VueServer.callState("globalSource");!function(t,e,n,r,a,o,s,u,l){for(var c=a.cid,h=a.actions.eventName,f=2===a.actions.mode,d=t.filter((function(t){return t.id===c&&t.eventType===h&&(!f||parseInt(t.index)+1===parseInt(a.index))})),p=function(t,e){return(null==t?void 0:t.field)&&a[null==t?void 0:t.field],(null==t?void 0:t.forkValue)&&a[null==t?void 0:t.forkValue],(null==t?void 0:t.field)&&(null==a?void 0:a.data)&&(null==a||a.data[null==t?void 0:t.field]),(null==t?void 0:t.forkValue)&&(null==a?void 0:a.data)&&(null==a||a.data[null==t?void 0:t.forkValue]),t.id===e&&!(null==t?void 0:t.forkValue)},v=function(t,e){return Array.isArray(e)?e.some((function(e){return t&&(void 0!==t[e]||t.hasOwnProperty(e))})):"string"==typeof e?t&&(void 0!==t[e]||t.hasOwnProperty(e)):void 0},m=function(t,e){var n,i;if(v(t,null==e?void 0:e.field)||v(t,null==e?void 0:e.forkValue))i=t[null==e?void 0:e.field]?t[e.field]:"";else if(v(t.data,null==e?void 0:e.field)||v(t.data,null==e?void 0:e.forkValue))i=t.data[null==e?void 0:e.field]?t.data[e.field]:"";else for(var a=ue(r,c),o=0,s=(null===(n=null==a?void 0:a.tmpData)||void 0===n?void 0:n.actions)||[];o<s.length;o++){var u=s[o].vars.find((function(t){return(null==t?void 0:t.mapField)===(null==e?void 0:e.mapField)}));if(u){i=u.value;break}}return i},g=[],y=0,_=e;y<_.length;y++)if(p(P=_[y],c)&&P.type==h){var b=m(a,P),w=void 0!==b?b:P.value;P.value=w,P.converter&&P.converterCode?(P.originalValue=w,P.value=Ve(P.converterCode,w)):(P.originalValue=w,P.value=w);for(var D=0,S=e;D<S.length;D++){var x=S[D];if(x.id!=c&&!(null==P?void 0:P.forkValue)&&x.mapField==P.mapField){var T=void 0!==b?b:x.value;x.value=T,x.converter&&x.converterCode?(x.originalValue=T,x.value=Ve(x.converterCode,T)):(x.originalValue=T,x.value=T)}}g.push(P)}for(var k=e.filter((function(t){return g&&(g.find((function(e){return e.mapField==t.mapField}))||g.find((function(e){return e.mapField==t.forkValue}))||g.find((function(e){return Array.isArray(t.forkValue)&&t.forkValue.includes(e.mapField)})))})),C=function(t){if(!n)return"break";var i=n[t.mapField]||[];if(t.fork)if(Array.isArray(t.forkValue))t.originalValue=t.forkValue.map((function(t){return e.find((function(e){return e.mapField==t})).value}));else{var a=e.find((function(e){return e.mapField==t.forkValue}));t.originalValue=a.value}t.converter&&t.converterCode?t.value=Ve(t.converterCode,t.originalValue):t.value=t.originalValue;for(var o=function(n){t.eventSourceId=n;var i=ue(r,n);(null==t?void 0:t.delayUpdate)||setTimeout((function(){Xr(i,e,!0,s,l,r)}))},u=0,c=i;u<c.length;u++)o(c[u])},E=0,O=k=i.default.uniqBy(k,"mapField");E<O.length&&"break"!==C(P=O[E]);E++);for(var A=0,M=d;A<M.length;A++){var P;switch((P=M[A]).type){case"link":window.open(P.link,P.target);break;case"page":u&&u(P);break;case"dynamic":for(var B=0,R=P.dynamic||[];B<R.length;B++){var N=R[B];if(P.id===a.cid){var V=ue(r,N.pid);V&&(V.activeDynamic=N.name,V.isShow=N.visible||!f||P.index===a.index-1,o({cid:V.cid,flag:N.visible}))}}break;case"toggle":for(var I=0,F=P.children||[];I<F.length;I++){var j=(H=F[I]).visible&&(!f||P.index===a.index-1);o({cid:H.cid,flag:j})}break;case"update":for(var L=function(t){var n=ue(r,t.cid);setTimeout((function(){Xr(n,e,!0,s)}))},Y=0,z=P.children||[];Y<z.length;Y++){var H;L(H=z[Y])}}}}(r,a,o,this.VueServer.callState("list"),t,(function(t){n.VueServer.callMutation("changeShow",t)}),(function(t){n.VueServer.callMutation("updataSourceForComponent",t)}),e,s)},t}();function Ti(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ki(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}
33
33
  /*!
34
34
  * GSAP 3.12.2
35
35
  * https://greensock.com
@@ -38,7 +38,7 @@ function(t){var e=n,r=e.lib,i=r.WordArray,a=r.Hasher,o=e.algo,s=i.create([0,1,2,
38
38
  * Subject to the terms at https://greensock.com/standard-license or for
39
39
  * Club GreenSock members, the agreement issued with that membership.
40
40
  * @author: Jack Doyle, jack@greensock.com
41
- */var ki,Ci,Ei,Oi,Ai,Mi,Pi,Bi,Ri,Ni,Vi,Ii,Fi,ji,Li,Yi={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},zi={duration:.5,overwrite:!1,delay:0},Hi=1e8,Ui=1e-8,Wi=2*Math.PI,qi=Wi/4,Gi=0,Ki=Math.sqrt,Zi=Math.cos,$i=Math.sin,Xi=function(t){return"string"==typeof t},Ji=function(t){return"function"==typeof t},Qi=function(t){return"number"==typeof t},ta=function(t){return void 0===t},ea=function(t){return"object"==typeof t},na=function(t){return!1!==t},ra=function(){return"undefined"!=typeof window},ia=function(t){return Ji(t)||Xi(t)},aa="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},oa=Array.isArray,sa=/(?:-?\.?\d|\.)+/gi,ua=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,la=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,ca=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,ha=/[+-]=-?[.\d]+/,fa=/[^,'"\[\]\s]+/gi,da=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,pa={},va={},ma=function(t){return(va=Wa(t,pa))&&Gs},ga=function(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")},ya=function(t,e){return!e&&console.warn(t)},_a=function(t,e){return t&&(pa[t]=e)&&va&&(va[t]=e)||pa},ba=function(){return 0},wa={suppressEvents:!0,isStart:!0,kill:!1},Da={suppressEvents:!0,kill:!1},Sa={suppressEvents:!0},xa={},Ta=[],ka={},Ca={},Ea={},Oa=30,Aa=[],Ma="",Pa=function(t){var e,n,r=t[0];if(ea(r)||Ji(r)||(t=[t]),!(e=(r._gsap||{}).harness)){for(n=Aa.length;n--&&!Aa[n].targetTest(r););e=Aa[n]}for(n=t.length;n--;)t[n]&&(t[n]._gsap||(t[n]._gsap=new ss(t[n],e)))||t.splice(n,1);return t},Ba=function(t){return t._gsap||Pa(xo(t))[0]._gsap},Ra=function(t,e,n){return(n=t[e])&&Ji(n)?t[e]():ta(n)&&t.getAttribute&&t.getAttribute(e)||n},Na=function(t,e){return(t=t.split(",")).forEach(e)||t},Va=function(t){return Math.round(1e5*t)/1e5||0},Ia=function(t){return Math.round(1e7*t)/1e7||0},Fa=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},ja=function(t,e){for(var n=e.length,r=0;t.indexOf(e[r])<0&&++r<n;);return r<n},La=function(){var t,e,n=Ta.length,r=Ta.slice(0);for(ka={},Ta.length=0,t=0;t<n;t++)(e=r[t])&&e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0)._lazy=0)},Ya=function(t,e,n,r){Ta.length&&!Ci&&La(),t.render(e,n,r||Ci&&e<0&&(t._initted||t._startAt)),Ta.length&&!Ci&&La()},za=function(t){var e=parseFloat(t);return(e||0===e)&&(t+"").match(fa).length<2?e:Xi(t)?t.trim():t},Ha=function(t){return t},Ua=function(t,e){for(var n in e)n in t||(t[n]=e[n]);return t},Wa=function(t,e){for(var n in e)t[n]=e[n];return t},qa=function t(e,n){for(var r in n)"__proto__"!==r&&"constructor"!==r&&"prototype"!==r&&(e[r]=ea(n[r])?t(e[r]||(e[r]={}),n[r]):n[r]);return e},Ga=function(t,e){var n,r={};for(n in t)n in e||(r[n]=t[n]);return r},Ka=function(t){var e,n=t.parent||Oi,r=t.keyframes?(e=oa(t.keyframes),function(t,n){for(var r in n)r in t||"duration"===r&&e||"ease"===r||(t[r]=n[r])}):Ua;if(na(t.inherit))for(;n;)r(t,n.vars.defaults),n=n.parent||n._dp;return t},Za=function(t,e,n,r,i){void 0===n&&(n="_first"),void 0===r&&(r="_last");var a,o=t[r];if(i)for(a=e[i];o&&o[i]>a;)o=o._prev;return o?(e._next=o._next,o._next=e):(e._next=t[n],t[n]=e),e._next?e._next._prev=e:t[r]=e,e._prev=o,e.parent=e._dp=t,e},$a=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},Xa=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},Ja=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},Qa=function(t,e,n,r){return t._startAt&&(Ci?t._startAt.revert(Da):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,r))},to=function t(e){return!e||e._ts&&t(e.parent)},eo=function(t){return t._repeat?no(t._tTime,t=t.duration()+t._rDelay)*t:0},no=function(t,e){var n=Math.floor(t/=e);return t&&n===t?n-1:n},ro=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},io=function(t){return t._end=Ia(t._start+(t._tDur/Math.abs(t._ts||t._rts||Ui)||0))},ao=function(t,e){var n=t._dp;return n&&n.smoothChildTiming&&t._ts&&(t._start=Ia(n._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),io(t),n._dirty||Ja(n,t)),t},oo=function(t,e){var n;if((e._time||!e._dur&&e._initted||e._start<t._time&&(e._dur||!e.add))&&(n=ro(t.rawTime(),e),(!e._dur||_o(0,e.totalDuration(),n)-e._tTime>Ui)&&e.render(n,!0)),Ja(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}},so=function(t,e,n,r){return e.parent&&Xa(e),e._start=Ia((Qi(n)?n:n||t!==Oi?mo(t,n,e):t._time)+e._delay),e._end=Ia(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),Za(t,e,"_first","_last",t._sort?"_start":0),ho(e)||(t._recent=e),r||oo(t,e),t._ts<0&&ao(t,t._tTime),t},uo=function(t,e){return(pa.ScrollTrigger||ga("scrollTrigger",e))&&pa.ScrollTrigger.create(e,t)},lo=function(t,e,n,r,i){return vs(t,e,i),t._initted?!n&&t._pt&&!Ci&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&Ri!==Ko.frame?(Ta.push(t),t._lazy=[i,r],1):void 0:1},co=function t(e){var n=e.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||t(n))},ho=function(t){var e=t.data;return"isFromStart"===e||"isStart"===e},fo=function(t,e,n,r){var i=t._repeat,a=Ia(e)||0,o=t._tTime/t._tDur;return o&&!r&&(t._time*=a/t._dur),t._dur=a,t._tDur=i?i<0?1e10:Ia(a*(i+1)+t._rDelay*i):a,o>0&&!r&&ao(t,t._tTime=t._tDur*o),t.parent&&io(t),n||Ja(t.parent,t),t},po=function(t){return t instanceof ls?Ja(t):fo(t,t._dur)},vo={_start:0,endTime:ba,totalDuration:ba},mo=function t(e,n,r){var i,a,o,s=e.labels,u=e._recent||vo,l=e.duration()>=Hi?u.endTime(!1):e._dur;return Xi(n)&&(isNaN(n)||n in s)?(a=n.charAt(0),o="%"===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)*(o?(i<0?u:r).totalDuration()/100:1)):i<0?(n in s||(s[n]=l),s[n]):(a=parseFloat(n.charAt(i-1)+n.substr(i+1)),o&&r&&(a=a/100*(oa(r)?r[0]:r).totalDuration()),i>1?t(e,n.substr(0,i-1),r)+a:l+a)):null==n?l:+n},go=function(t,e,n){var r,i,a=Qi(e[1]),o=(a?2:1)+(t<2?0:1),s=e[o];if(a&&(s.duration=e[1]),s.parent=n,t){for(r=s,i=n;i&&!("immediateRender"in r);)r=i.vars.defaults||{},i=na(i.vars.inherit)&&i.parent;s.immediateRender=na(r.immediateRender),t<2?s.runBackwards=1:s.startAt=e[o-1]}return new bs(e[0],s,e[o+1])},yo=function(t,e){return t||0===t?e(t):e},_o=function(t,e,n){return n<t?t:n>e?e:n},bo=function(t,e){return Xi(t)&&(e=da.exec(t))?e[1]:""},wo=[].slice,Do=function(t,e){return t&&ea(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&ea(t[0]))&&!t.nodeType&&t!==Ai},So=function(t,e,n){return void 0===n&&(n=[]),t.forEach((function(t){var r;return Xi(t)&&!e||Do(t,1)?(r=n).push.apply(r,xo(t)):n.push(t)}))||n},xo=function(t,e,n){return Ei&&!e&&Ei.selector?Ei.selector(t):!Xi(t)||n||!Mi&&Zo()?oa(t)?So(t,n):Do(t)?wo.call(t,0):t?[t]:[]:wo.call((e||Pi).querySelectorAll(t),0)},To=function(t){return t=xo(t)[0]||ya("Invalid scope")||{},function(e){var n=t.current||t.nativeElement||t;return xo(e,n.querySelectorAll?n:n===t?ya("Invalid scope")||Pi.createElement("div"):t)}},ko=function(t){return t.sort((function(){return.5-Math.random()}))},Co=function(t){if(Ji(t))return t;var e=ea(t)?t:{each:t},n=ns(e.ease),r=e.from||0,i=parseFloat(e.base)||0,a={},o=r>0&&r<1,s=isNaN(r)||o,u=e.axis,l=r,c=r;return Xi(r)?l=c={center:.5,edges:.5,end:1}[r]||0:!o&&s&&(l=r[0],c=r[1]),function(t,o,h){var f,d,p,v,m,g,y,_,b,w=(h||e).length,D=a[w];if(!D){if(!(b="auto"===e.grid?0:(e.grid||[1,Hi])[1])){for(y=-1e8;y<(y=h[b++].getBoundingClientRect().left)&&b<w;);b--}for(D=a[w]=[],f=s?Math.min(b,w)*l-.5:r%b,d=b===Hi?0:s?w*c/b-.5:r/b|0,y=0,_=Hi,g=0;g<w;g++)p=g%b-f,v=d-(g/b|0),D[g]=m=u?Math.abs("y"===u?v:p):Ki(p*p+v*v),m>y&&(y=m),m<_&&(_=m);"random"===r&&ko(D),D.max=y-_,D.min=_,D.v=w=(parseFloat(e.amount)||parseFloat(e.each)*(b>w?w-1:u?"y"===u?w/b:b:Math.max(b,w/b))||0)*("edges"===r?-1:1),D.b=w<0?i-w:i,D.u=bo(e.amount||e.each)||0,n=n&&w<0?ts(n):n}return w=(D[t]-D.min)/D.max||0,Ia(D.b+(n?n(w):w)*D.v)+D.u}},Eo=function(t){var e=Math.pow(10,((t+"").split(".")[1]||"").length);return function(n){var r=Ia(Math.round(parseFloat(n)/t)*t*e);return(r-r%1)/e+(Qi(n)?0:bo(n))}},Oo=function(t,e){var n,r,i=oa(t);return!i&&ea(t)&&(n=i=t.radius||Hi,t.values?(t=xo(t.values),(r=!Qi(t[0]))&&(n*=n)):t=Eo(t.increment)),yo(e,i?Ji(t)?function(e){return r=t(e),Math.abs(r-e)<=n?r:e}:function(e){for(var i,a,o=parseFloat(r?e.x:e),s=parseFloat(r?e.y:0),u=Hi,l=0,c=t.length;c--;)(i=r?(i=t[c].x-o)*i+(a=t[c].y-s)*a:Math.abs(t[c]-o))<u&&(u=i,l=c);return l=!n||u<=n?t[l]:e,r||l===e||Qi(e)?l:l+bo(e)}:Eo(t))},Ao=function(t,e,n,r){return yo(oa(t)?!e:!0===n?!!(n=0):!r,(function(){return oa(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}))},Mo=function(t,e,n){return yo(n,(function(n){return t[~~e(n)]}))},Po=function(t){for(var e,n,r,i,a=0,o="";~(e=t.indexOf("random(",a));)r=t.indexOf(")",e),i="["===t.charAt(e+7),n=t.substr(e+7,r-e-7).match(i?fa:sa),o+=t.substr(a,e-a)+Ao(i?n:+n[0],i?0:+n[1],+n[2]||1e-5),a=r+1;return o+t.substr(a,t.length-a)},Bo=function(t,e,n,r,i){var a=e-t,o=r-n;return yo(i,(function(e){return n+((e-t)/a*o||0)}))},Ro=function(t,e,n){var r,i,a,o=t.labels,s=Hi;for(r in o)(i=o[r]-e)<0==!!n&&i&&s>(i=Math.abs(i))&&(a=r,s=i);return a},No=function(t,e,n){var r,i,a,o=t.vars,s=o[e],u=Ei,l=t._ctx;if(s)return r=o[e+"Params"],i=o.callbackScope||t,n&&Ta.length&&La(),l&&(Ei=l),a=r?s.apply(i,r):s.call(i),Ei=u,a},Vo=function(t){return Xa(t),t.scrollTrigger&&t.scrollTrigger.kill(!!Ci),t.progress()<1&&No(t,"onInterrupt"),t},Io=[],Fo=function(t){if(ra()&&t){var e=(t=!t.name&&t.default||t).name,n=Ji(t),r=e&&!n&&t.init?function(){this._props=[]}:t,i={init:ba,render:Os,add:ds,kill:Ms,modifier:As,rawVars:0},a={targetTest:0,get:0,getSetter:Ts,aliases:{},register:0};if(Zo(),t!==r){if(Ca[e])return;Ua(r,Ua(Ga(t,i),a)),Wa(r.prototype,Wa(i,Ga(t,a))),Ca[r.prop=e]=r,t.targetTest&&(Aa.push(r),xa[e]=1),e=("css"===e?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}_a(e,r),t.register&&t.register(Gs,r,Rs)}else t&&Io.push(t)},jo=255,Lo={aqua:[0,jo,jo],lime:[0,jo,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,jo],navy:[0,0,128],white:[jo,jo,jo],olive:[128,128,0],yellow:[jo,jo,0],orange:[jo,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[jo,0,0],pink:[jo,192,203],cyan:[0,jo,jo],transparent:[jo,jo,jo,0]},Yo=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)*jo+.5|0},zo=function(t,e,n){var r,i,a,o,s,u,l,c,h,f,d=t?Qi(t)?[t>>16,t>>8&jo,t&jo]:0:Lo.black;if(!d){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),Lo[t])d=Lo[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&jo,d&jo,parseInt(t.substr(7),16)/255];d=[(t=parseInt(t.substr(1),16))>>16,t>>8&jo,t&jo]}else if("hsl"===t.substr(0,3))if(d=f=t.match(sa),e){if(~t.indexOf("="))return d=t.match(ua),n&&d.length<4&&(d[3]=1),d}else o=+d[0]%360/360,s=+d[1]/100,r=2*(u=+d[2]/100)-(i=u<=.5?u*(s+1):u+s-u*s),d.length>3&&(d[3]*=1),d[0]=Yo(o+1/3,r,i),d[1]=Yo(o,r,i),d[2]=Yo(o-1/3,r,i);else d=t.match(sa)||Lo.transparent;d=d.map(Number)}return e&&!f&&(r=d[0]/jo,i=d[1]/jo,a=d[2]/jo,u=((l=Math.max(r,i,a))+(c=Math.min(r,i,a)))/2,l===c?o=s=0:(h=l-c,s=u>.5?h/(2-l-c):h/(l+c),o=l===r?(i-a)/h+(i<a?6:0):l===i?(a-r)/h+2:(r-i)/h+4,o*=60),d[0]=~~(o+.5),d[1]=~~(100*s+.5),d[2]=~~(100*u+.5)),n&&d.length<4&&(d[3]=1),d},Ho=function(t){var e=[],n=[],r=-1;return t.split(Wo).forEach((function(t){var i=t.match(la)||[];e.push.apply(e,i),n.push(r+=i.length+1)})),e.c=n,e},Uo=function(t,e,n){var r,i,a,o,s="",u=(t+s).match(Wo),l=e?"hsla(":"rgba(",c=0;if(!u)return t;if(u=u.map((function(t){return(t=zo(t,e,1))&&l+(e?t[0]+","+t[1]+"%,"+t[2]+"%,"+t[3]:t.join(","))+")"})),n&&(a=Ho(t),(r=n.c).join(s)!==a.c.join(s)))for(o=(i=t.replace(Wo,"1").split(la)).length-1;c<o;c++)s+=i[c]+(~r.indexOf(c)?u.shift()||l+"0,0,0,0)":(a.length?a:u.length?u:n).shift());if(!i)for(o=(i=t.split(Wo)).length-1;c<o;c++)s+=i[c]+u[c];return s+i[o]},Wo=function(){var t,e="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b";for(t in Lo)e+="|"+t+"\\b";return new RegExp(e+")","gi")}(),qo=/hsl[a]?\(/,Go=function(t){var e,n=t.join(" ");if(Wo.lastIndex=0,Wo.test(n))return e=qo.test(n),t[1]=Uo(t[1],e),t[0]=Uo(t[0],e,Ho(t[1])),!0},Ko=function(){var t,e,n,r,i,a,o=Date.now,s=500,u=33,l=o(),c=l,h=1e3/240,f=h,d=[],p=function n(p){var v,m,g,y,_=o()-c,b=!0===p;if(_>s&&(l+=_-u),((v=(g=(c+=_)-l)-f)>0||b)&&(y=++r.frame,i=g-1e3*r.time,r.time=g/=1e3,f+=v+(v>=h?4:h-v),m=1),b||(t=e(n)),m)for(a=0;a<d.length;a++)d[a](g,i,y,p)};return r={time:0,frame:0,tick:function(){p(!0)},deltaRatio:function(t){return i/(1e3/(t||60))},wake:function(){Bi&&(!Mi&&ra()&&(Ai=Mi=window,Pi=Ai.document||{},pa.gsap=Gs,(Ai.gsapVersions||(Ai.gsapVersions=[])).push(Gs.version),ma(va||Ai.GreenSockGlobals||!Ai.gsap&&Ai||{}),n=Ai.requestAnimationFrame,Io.forEach(Fo)),t&&r.sleep(),e=n||function(t){return setTimeout(t,f-1e3*r.time+1|0)},Vi=1,p(2))},sleep:function(){(n?Ai.cancelAnimationFrame:clearTimeout)(t),Vi=0,e=ba},lagSmoothing:function(t,e){s=t||1/0,u=Math.min(e||33,s)},fps:function(t){h=1e3/(t||240),f=1e3*r.time+h},add:function(t,e,n){var i=e?function(e,n,a,o){t(e,n,a,o),r.remove(i)}:t;return r.remove(t),d[n?"unshift":"push"](i),Zo(),i},remove:function(t,e){~(e=d.indexOf(t))&&d.splice(e,1)&&a>=e&&a--},_listeners:d},r}(),Zo=function(){return!Vi&&Ko.wake()},$o={},Xo=/^[\d.\-M][\d.\-,\s]/,Jo=/["']/g,Qo=function(t){for(var e,n,r,i={},a=t.substr(1,t.length-3).split(":"),o=a[0],s=1,u=a.length;s<u;s++)n=a[s],e=s!==u-1?n.lastIndexOf(","):n.length,r=n.substr(0,e),i[o]=isNaN(r)?r.replace(Jo,"").trim():+r,o=n.substr(e+1).trim();return i},ts=function(t){return function(e){return 1-t(1-e)}},es=function t(e,n){for(var r,i=e._first;i;)i instanceof ls?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},ns=function(t,e){return t&&(Ji(t)?t:$o[t]||function(t){var e=(t+"").split("("),n=$o[e[0]];return n&&e.length>1&&n.config?n.config.apply(null,~t.indexOf("{")?[Qo(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(za)):$o._CE&&Xo.test(t)?$o._CE("",t):n}(t))||e},rs=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 Na(t,(function(t){for(var e in $o[t]=pa[t]=a,$o[i=t.toLowerCase()]=n,a)$o[i+("easeIn"===e?".in":"easeOut"===e?".out":".inOut")]=$o[t+"."+e]=a[e]})),a},is=function(t){return function(e){return e<.5?(1-t(1-2*e))/2:.5+t(2*(e-.5))/2}},as=function t(e,n,r){var i=n>=1?n:1,a=(r||(e?.3:.45))/(n<1?n:1),o=a/Wi*(Math.asin(1/i)||0),s=function(t){return 1===t?1:i*Math.pow(2,-10*t)*$i((t-o)*a)+1},u="out"===e?s:"in"===e?function(t){return 1-s(1-t)}:is(s);return a=Wi/a,u.config=function(n,r){return t(e,n,r)},u},os=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)}:is(r);return i.config=function(n){return t(e,n)},i};Na("Linear,Quad,Cubic,Quart,Quint,Strong",(function(t,e){var n=e<5?e+1:e;rs(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}))})),$o.Linear.easeNone=$o.none=$o.Linear.easeIn,rs("Elastic",as("in"),as("out"),as()),Ii=7.5625,ji=1/(Fi=2.75),rs("Bounce",(function(t){return 1-Li(1-t)}),Li=function(t){return t<ji?Ii*t*t:t<.7272727272727273?Ii*Math.pow(t-1.5/Fi,2)+.75:t<.9090909090909092?Ii*(t-=2.25/Fi)*t+.9375:Ii*Math.pow(t-2.625/Fi,2)+.984375}),rs("Expo",(function(t){return t?Math.pow(2,10*(t-1)):0})),rs("Circ",(function(t){return-(Ki(1-t*t)-1)})),rs("Sine",(function(t){return 1===t?1:1-Zi(t*qi)})),rs("Back",os("in"),os("out"),os()),$o.SteppedEase=$o.steps=pa.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*_o(0,.99999999,t)|0)+i)*n}}},zi.ease=$o["quad.out"],Na("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",(function(t){return Ma+=t+","+t+"Params,"}));var ss=function(t,e){this.id=Gi++,t._gsap=this,this.target=t,this.harness=e,this.get=e?e.get:Ra,this.set=e?e.getSetter:Ts},us=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,fo(this,+t.duration,1,1),this.data=t.data,Ei&&(this._ctx=Ei,Ei.data.push(this)),Vi||Ko.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,fo(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(t,e){if(Zo(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(ao(this,t),!n._dp||n.parent||oo(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)&&so(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!e||this._initted&&Math.abs(this._zTime)===Ui||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),Ya(this,t,e)),this},e.time=function(t,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+eo(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)+eo(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?no(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?ro(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||-1e-8===t?0:this._rts,this.totalTime(_o(-Math.abs(this._delay),this._tDur,e),!0),io(this),function(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent;return t}(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):(Zo(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&Math.abs(this._zTime)!==Ui&&(this._tTime-=Ui)))),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)&&so(e,this,t-this._delay),this}return this._start},e.endTime=function(t){return this._start+(na(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?ro(e.rawTime(t),this):this._tTime:this._tTime},e.revert=function(t){void 0===t&&(t=Sa);var e=Ci;return Ci=t,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(t),this.totalTime(-.01,t.suppressEvents)),"nested"!==this.data&&!1!==t.kill&&this.kill(),Ci=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._sat?this._sat.vars.immediateRender?-1/0:this._sat.globalTime(t):n},e.repeat=function(t){return arguments.length?(this._repeat=t===1/0?-2:t,po(this)):-2===this._repeat?1/0:this._repeat},e.repeatDelay=function(t){if(arguments.length){var e=this._time;return this._rDelay=t,po(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(mo(this,t),na(e))},e.restart=function(t,e){return this.play().totalTime(t?-this._delay:0,na(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)-Ui))},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=Ji(t)?t:Ha,i=function(){var t=e.then;e.then=null,Ji(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(){Vo(this)},t}();Ua(us.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 ls=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=na(e.sortChildren),Oi&&so(e.parent||Oi,xi(r),n),e.reversed&&r.reverse(),e.paused&&r.paused(!0),e.scrollTrigger&&uo(xi(r),e.scrollTrigger),r}Ti(e,t);var n=e.prototype;return n.to=function(t,e,n){return go(0,arguments,this),this},n.from=function(t,e,n){return go(1,arguments,this),this},n.fromTo=function(t,e,n,r){return go(2,arguments,this),this},n.set=function(t,e,n){return e.duration=0,e.parent=this,Ka(e).repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new bs(t,e,mo(this,n),1),this},n.call=function(t,e,n){return so(this,bs.delayedCall(0,t,e),n)},n.staggerTo=function(t,e,n,r,i,a,o){return n.duration=e,n.stagger=n.stagger||r,n.onComplete=a,n.onCompleteParams=o,n.parent=this,new bs(t,n,mo(this,i)),this},n.staggerFrom=function(t,e,n,r,i,a,o){return n.runBackwards=1,Ka(n).immediateRender=na(n.immediateRender),this.staggerTo(t,e,n,r,i,a,o)},n.staggerFromTo=function(t,e,n,r,i,a,o,s){return r.startAt=n,Ka(r).immediateRender=na(r.immediateRender),this.staggerTo(t,e,r,i,a,o,s)},n.render=function(t,e,n){var r,i,a,o,s,u,l,c,h,f,d,p,v=this._time,m=this._dirty?this.totalDuration():this._tDur,g=this._dur,y=t<=0?0:Ia(t),_=this._zTime<0!=t<0&&(this._initted||!g);if(this!==Oi&&y>m&&t>=0&&(y=m),y!==this._tTime||n||_){if(v!==this._time&&g&&(y+=this._time-v,t+=this._time-v),r=y,h=this._start,u=!(c=this._ts),_&&(g||(v=this._zTime),(t||!e)&&(this._zTime=t)),this._repeat){if(d=this._yoyo,s=g+this._rDelay,this._repeat<-1&&t<0)return this.totalTime(100*s+t,e,n);if(r=Ia(y%s),y===m?(o=this._repeat,r=g):((o=~~(y/s))&&o===y/s&&(r=g,o--),r>g&&(r=g)),f=no(this._tTime,s),!v&&this._tTime&&f!==o&&this._tTime-f*s-this._dur<=0&&(f=o),d&&1&o&&(r=g-r,p=1),o!==f&&!this._lock){var b=d&&1&f,w=b===(d&&1&o);if(o<f&&(b=!b),v=b?0:y%g?g:y,this._lock=1,this.render(v||(p?0:Ia(o*s)),e,!g)._lock=0,this._tTime=y,!e&&this.parent&&No(this,"onRepeat"),this.vars.repeatRefresh&&!p&&(this.invalidate()._lock=1),v&&v!==this._time||u!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(g=this._dur,m=this._tDur,w&&(this._lock=2,v=b?g:-1e-4,this.render(v,!0),this.vars.repeatRefresh&&!p&&this.invalidate()),this._lock=0,!this._ts&&!u)return this;es(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,Ia(v),Ia(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,v=0),!v&&r&&!e&&!o&&(No(this,"onStart"),this._tTime!==y))return this;if(r>=v&&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||Ci&&(i._initted||i._startAt)),r!==this._time||!this._ts&&!u){l=0,a&&(y+=this._zTime=D?-1e-8:Ui);break}}i=a}}if(l&&!e&&(this.pause(),l.render(r>=v?0:-1e-8)._zTime=r>=v?1:-1,this._ts))return this._start=h,io(this),this.render(t,e,n);this._onUpdate&&!e&&No(this,"onUpdate",!0),(y===m&&this._tTime>=this.totalDuration()||!y&&v)&&(h!==this._start&&Math.abs(c)===Math.abs(this._ts)||this._lock||((t||!g)&&(y===m&&this._ts>0||!y&&this._ts<0)&&Xa(this,1),e||t<0&&!v||!y&&!v&&m||(No(this,y===m&&t>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(y<m&&this.timeScale()>0)&&this._prom())))}return this},n.add=function(t,e){var n=this;if(Qi(e)||(e=mo(this,e,t)),!(t instanceof us)){if(oa(t))return t.forEach((function(t){return n.add(t,e)})),this;if(Xi(t))return this.addLabel(t,e);if(!Ji(t))return this;t=bs.delayedCall(0,t)}return this!==t?so(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 bs?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 Xi(t)?this.removeLabel(t):Ji(t)?this.killTweensOf(t):($a(this,t),t===this._recent&&(this._recent=this._last),Ja(this))},n.totalTime=function(e,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=Ia(Ko.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]=mo(this,e),this},n.removeLabel=function(t){return delete this.labels[t],this},n.addPause=function(t,e,n){var r=bs.delayedCall(0,e||ba,n);return r.data="isPause",this._hasPause=1,so(this,r,mo(this,t))},n.removePause=function(t){var e=this._first;for(t=mo(this,t);e;)e._start===t&&"isPause"===e.data&&Xa(e),e=e._next},n.killTweensOf=function(t,e,n){for(var r=this.getTweensOf(t,n),i=r.length;i--;)cs!==r[i]&&r[i].kill(t,e);return this},n.getTweensOf=function(t,e){for(var n,r=[],i=xo(t),a=this._first,o=Qi(e);a;)a instanceof bs?ja(a._targets,i)&&(o?(!cs||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=mo(r,t),a=e,o=a.startAt,s=a.onStart,u=a.onStartParams,l=a.immediateRender,c=bs.to(r,Ua({ease:e.ease||"none",lazy:!1,immediateRender:!1,time:i,overwrite:"auto",duration:e.duration||Math.abs((i-(o&&"time"in o?o.time:r._time))/r.timeScale())||Ui,onStart:function(){if(r.pause(),!n){var t=e.duration||Math.abs((i-(o&&"time"in o?o.time:r._time))/r.timeScale());c._dur!==t&&fo(c,t,0,1).render(c._time,!0,!0),n=1}s&&s.apply(c,u||[])}},e));return l?c.render(0):c},n.tweenFromTo=function(t,e,n){return this.tweenTo(e,Ua({startAt:{time:mo(this,t)}},n))},n.recent=function(){return this._recent},n.nextLabel=function(t){return void 0===t&&(t=this._time),Ro(this,mo(this,t))},n.previousLabel=function(t){return void 0===t&&(t=this._time),Ro(this,mo(this,t),1)},n.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+Ui)},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 Ja(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={}),Ja(this)},n.totalDuration=function(t){var e,n,r,i=0,a=this,o=a._last,s=Hi;if(arguments.length)return a.timeScale((a._repeat<0?a.duration():a.totalDuration())/(a.reversed()?-t:t));if(a._dirty){for(r=a.parent;o;)e=o._prev,o._dirty&&o.totalDuration(),(n=o._start)>s&&a._sort&&o._ts&&!a._lock?(a._lock=1,so(a,o,n-o._delay,1)._lock=0):s=n,n<0&&o._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),s=0),o._end>i&&o._ts&&(i=o._end),o=e;fo(a,a===Oi&&a._time>i?a._time:i,1,1),a._dirty=0}return a._tDur},e.updateRoot=function(t){if(Oi._ts&&(Ya(Oi,ro(t,Oi)),Ri=Ko.frame),Ko.frame>=Oa){Oa+=Yi.autoSleep||120;var e=Oi._first;if((!e||!e._ts)&&Yi.autoSleep&&Ko._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||Ko.sleep()}}},e}(us);Ua(ls.prototype,{_lock:0,_hasPause:0,_forcing:0});var cs,hs,fs=function(t,e,n,r,i,a,o){var s,u,l,c,h,f,d,p,v=new Rs(this._pt,t,e,0,1,Es,null,i),m=0,g=0;for(v.b=n,v.e=r,n+="",(d=~(r+="").indexOf("random("))&&(r=Po(r)),a&&(a(p=[n,r],t,e),n=p[0],r=p[1]),u=n.match(ca)||[];s=ca.exec(r);)c=s[0],h=r.substring(m,s.index),l?l=(l+1)%5:"rgba("===h.substr(-5)&&(l=1),c!==u[g++]&&(f=parseFloat(u[g-1])||0,v._pt={_next:v._pt,p:h||1===g?h:",",s:f,c:"="===c.charAt(1)?Fa(f,c)-f:parseFloat(c)-f,m:l&&l<4?Math.round:0},m=ca.lastIndex);return v.c=m<r.length?r.substring(m,r.length):"",v.fp=o,(ha.test(r)||d)&&(v.e=0),this._pt=v,v},ds=function(t,e,n,r,i,a,o,s,u,l){Ji(r)&&(r=r(i||0,t,a));var c,h=t[e],f="get"!==n?n:Ji(h)?u?t[e.indexOf("set")||!Ji(t["get"+e.substr(3)])?e:"get"+e.substr(3)](u):t[e]():h,d=Ji(h)?u?Ss:Ds:ws;if(Xi(r)&&(~r.indexOf("random(")&&(r=Po(r)),"="===r.charAt(1)&&((c=Fa(f,r)+(bo(f)||0))||0===c)&&(r=c)),!l||f!==r||hs)return isNaN(f*r)||""===r?(!h&&!(e in t)&&ga(e,r),fs.call(this,t,e,f,r,d,s||Yi.stringFilter,u)):(c=new Rs(this._pt,t,e,+f||0,r-(f||0),"boolean"==typeof h?Cs:ks,0,d),u&&(c.fp=u),o&&c.modifier(o,this,t),this._pt=c)},ps=function(t,e,n,r,i,a){var o,s,u,l;if(Ca[t]&&!1!==(o=new Ca[t]).init(i,o.rawVars?e[t]:function(t,e,n,r,i){if(Ji(t)&&(t=gs(t,i,e,n,r)),!ea(t)||t.style&&t.nodeType||oa(t)||aa(t))return Xi(t)?gs(t,i,e,n,r):t;var a,o={};for(a in t)o[a]=gs(t[a],i,e,n,r);return o}(e[t],r,i,a,n),n,r,a)&&(n._pt=s=new Rs(n._pt,i,t,0,1,o.render,o,0,o.priority),n!==Ni))for(u=n._ptLookup[n._targets.indexOf(i)],l=o._props.length;l--;)u[o._props[l]]=s;return o},vs=function t(e,n,r){var i,a,o,s,u,l,c,h,f,d,p,v,m,g=e.vars,y=g.ease,_=g.startAt,b=g.immediateRender,w=g.lazy,D=g.onUpdate,S=g.onUpdateParams,x=g.callbackScope,T=g.runBackwards,k=g.yoyoEase,C=g.keyframes,E=g.autoRevert,O=e._dur,A=e._startAt,M=e._targets,P=e.parent,B=P&&"nested"===P.data?P.vars.targets:M,R="auto"===e._overwrite&&!ki,N=e.timeline;if(N&&(!C||!y)&&(y="none"),e._ease=ns(y,zi.ease),e._yEase=k?ts(ns(!0===k?y:k,zi.ease)):0,k&&e._yoyo&&!e._repeat&&(k=e._yEase,e._yEase=e._ease,e._ease=k),e._from=!N&&!!g.runBackwards,!N||C&&!g.stagger){if(v=(h=M[0]?Ba(M[0]).harness:0)&&g[h.prop],i=Ga(g,xa),A&&(A._zTime<0&&A.progress(1),n<0&&T&&b&&!E?A.render(-1,!0):A.revert(T&&O?Da:wa),A._lazy=0),_){if(Xa(e._startAt=bs.set(M,Ua({data:"isStart",overwrite:!1,parent:P,immediateRender:!0,lazy:!A&&na(w),startAt:null,delay:0,onUpdate:D,onUpdateParams:S,callbackScope:x,stagger:0},_))),e._startAt._dp=0,e._startAt._sat=e,n<0&&(Ci||!b&&!E)&&e._startAt.revert(Da),b&&O&&n<=0&&r<=0)return void(n&&(e._zTime=n))}else if(T&&O&&!A)if(n&&(b=!1),o=Ua({overwrite:!1,data:"isFromStart",lazy:b&&!A&&na(w),immediateRender:b,stagger:0,parent:P},i),v&&(o[h.prop]=v),Xa(e._startAt=bs.set(M,o)),e._startAt._dp=0,e._startAt._sat=e,n<0&&(Ci?e._startAt.revert(Da):e._startAt.render(-1,!0)),e._zTime=n,b){if(!n)return}else t(e._startAt,Ui,Ui);for(e._pt=e._ptCache=0,w=O&&na(w)||w&&!O,a=0;a<M.length;a++){if(c=(u=M[a])._gsap||Pa(M)[a]._gsap,e._ptLookup[a]=d={},ka[c.id]&&Ta.length&&La(),p=B===M?a:B.indexOf(u),h&&!1!==(f=new h).init(u,v||i,e,p,B)&&(e._pt=s=new Rs(e._pt,u,f.name,0,1,f.render,f,0,f.priority),f._props.forEach((function(t){d[t]=s})),f.priority&&(l=1)),!h||v)for(o in i)Ca[o]&&(f=ps(o,i,e,p,u,B))?f.priority&&(l=1):d[o]=s=ds.call(e,u,o,"get",i[o],p,B,0,g.stringFilter);e._op&&e._op[a]&&e.kill(u,e._op[a]),R&&e._pt&&(cs=e,Oi.killTweensOf(u,d,e.globalTime(n)),m=!e.parent,cs=0),e._pt&&w&&(ka[c.id]=1)}l&&Bs(e),e._onInit&&e._onInit(e)}e._onUpdate=D,e._initted=(!e._op||e._pt)&&!m,C&&n<=0&&N.render(Hi,!0,!0)},ms=function(t,e,n,r){var i,a,o=e.ease||r||"power1.inOut";if(oa(e))a=n[t]||(n[t]=[]),e.forEach((function(t,n){return a.push({t:n/(e.length-1)*100,v:t,e:o})}));else for(i in e)a=n[i]||(n[i]=[]),"ease"===i||a.push({t:parseFloat(t),v:e[i],e:o})},gs=function(t,e,n,r,i){return Ji(t)?t.call(e,n,r,i):Xi(t)&&~t.indexOf("random(")?Po(t):t},ys=Ma+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",_s={};Na(ys+",id,stagger,delay,duration,paused,scrollTrigger",(function(t){return _s[t]=1}));var bs=function(t){function e(e,n,r,i){var a;"number"==typeof n&&(r.duration=n,n=r,r=null);var o,s,u,l,c,h,f,d,p=(a=t.call(this,i?n:Ka(n))||this).vars,v=p.duration,m=p.delay,g=p.immediateRender,y=p.stagger,_=p.overwrite,b=p.keyframes,w=p.defaults,D=p.scrollTrigger,S=p.yoyoEase,x=n.parent||Oi,T=(oa(e)||aa(e)?Qi(e[0]):"length"in n)?[e]:xo(e);if(a._targets=T.length?Pa(T):ya("GSAP target "+e+" not found. https://greensock.com",!Yi.nullTargetWarn)||[],a._ptLookup=[],a._overwrite=_,b||y||ia(v)||ia(m)){if(n=a.vars,(o=a.timeline=new ls({data:"nested",defaults:w||{},targets:x&&"nested"===x.data?x.vars.targets:T})).kill(),o.parent=o._dp=xi(a),o._start=0,y||ia(v)||ia(m)){if(l=T.length,f=y&&Co(y),ea(y))for(c in y)~ys.indexOf(c)&&(d||(d={}),d[c]=y[c]);for(s=0;s<l;s++)(u=Ga(n,_s)).stagger=0,S&&(u.yoyoEase=S),d&&Wa(u,d),h=T[s],u.duration=+gs(v,xi(a),s,h,T),u.delay=(+gs(m,xi(a),s,h,T)||0)-a._delay,!y&&1===l&&u.delay&&(a._delay=m=u.delay,a._start+=m,u.delay=0),o.to(h,u,f?f(s,h,T):0),o._ease=$o.none;o.duration()?v=m=0:a.timeline=0}else if(b){Ka(Ua(o.vars.defaults,{ease:"none"})),o._ease=ns(b.ease||n.ease||"none");var k,C,E,O=0;if(oa(b))b.forEach((function(t){return o.to(T,t,">")})),o.duration();else{for(c in u={},b)"ease"===c||"easeEach"===c||ms(c,b[c],u,b.easeEach);for(c in u)for(k=u[c].sort((function(t,e){return t.t-e.t})),O=0,s=0;s<k.length;s++)(E={ease:(C=k[s]).e,duration:(C.t-(s?k[s-1].t:0))/100*v})[c]=C.v,o.to(T,E,O),O+=E.duration;o.duration()<v&&o.to({},{duration:v-o.duration()})}}v||a.duration(v=o.duration())}else a.timeline=0;return!0!==_||ki||(cs=xi(a),Oi.killTweensOf(T),cs=0),so(x,xi(a),r),n.reversed&&a.reverse(),n.paused&&a.paused(!0),(g||!v&&!b&&a._start===Ia(x._time)&&na(g)&&to(xi(a))&&"nested"!==x.data)&&(a._tTime=-1e-8,a.render(Math.max(0,-m)||0)),D&&uo(xi(a),D),a}Ti(e,t);var n=e.prototype;return n.render=function(t,e,n){var r,i,a,o,s,u,l,c,h,f=this._time,d=this._tDur,p=this._dur,v=t<0,m=t>d-Ui&&!v?d:t<Ui?0:t;if(p){if(m!==this._tTime||!t||n||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==v){if(r=m,c=this.timeline,this._repeat){if(o=p+this._rDelay,this._repeat<-1&&v)return this.totalTime(100*o+t,e,n);if(r=Ia(m%o),m===d?(a=this._repeat,r=p):((a=~~(m/o))&&a===m/o&&(r=p,a--),r>p&&(r=p)),(u=this._yoyo&&1&a)&&(h=this._yEase,r=p-r),s=no(this._tTime,o),r===f&&!n&&this._initted)return this._tTime=m,this;a!==s&&(c&&this._yEase&&es(c,u),!this.vars.repeatRefresh||u||this._lock||(this._lock=n=1,this.render(Ia(o*a),!0).invalidate()._lock=0))}if(!this._initted){if(lo(this,v?t:r,n,e,m))return this._tTime=0,this;if(f!==this._time)return this;if(p!==this._dur)return this.render(t,e,n)}if(this._tTime=m,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&&!a&&(No(this,"onStart"),this._tTime!==m))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&&(v&&Qa(this,t,0,n),No(this,"onUpdate")),this._repeat&&a!==s&&this.vars.onRepeat&&!e&&this.parent&&No(this,"onRepeat"),m!==this._tDur&&m||this._tTime!==m||(v&&!this._onUpdate&&Qa(this,t,0,!0),(t||!p)&&(m===this._tDur&&this._ts>0||!m&&this._ts<0)&&Xa(this,1),e||v&&!f||!(m||f||u)||(No(this,m===d?"onComplete":"onReverseComplete",!0),this._prom&&!(m<d&&this.timeScale()>0)&&this._prom()))}}else!function(t,e,n,r){var i,a,o,s=t.ratio,u=e<0||!e&&(!t._start&&co(t)&&(t._initted||!ho(t))||(t._ts<0||t._dp._ts<0)&&!ho(t))?0:1,l=t._rDelay,c=0;if(l&&t._repeat&&(c=_o(0,t._tDur,e),a=no(c,l),t._yoyo&&1&a&&(u=1-u),a!==no(t._tTime,l)&&(s=1-u,t.vars.repeatRefresh&&t._initted&&t.invalidate())),u!==s||Ci||r||t._zTime===Ui||!e&&t._zTime){if(!t._initted&&lo(t,e,r,n,c))return;for(o=t._zTime,t._zTime=e||(n?Ui:0),n||(n=e&&!o),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&&Qa(t,e,0,!0),t._onUpdate&&!n&&No(t,"onUpdate"),c&&t._repeat&&!n&&t.parent&&No(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===u&&(u&&Xa(t,1),n||Ci||(No(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){Vi||Ko.wake(),this._ts||this.play();var i=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return this._initted||vs(this,i),function(t,e,n,r,i,a,o){var s,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((s=l[c][e])&&s.d&&s.d._pt)for(s=s.d._pt;s&&s.p!==e&&s.fp!==e;)s=s._next;if(!s)return hs=1,t.vars[e]="+=0",vs(t,o),hs=0,1;h.push(s)}for(c=h.length;c--;)(s=(u=h[c])._pt||u).s=!r&&0!==r||i?s.s+(r||0)+a*s.c:r,s.c=n-s.s,u.e&&(u.e=Va(n)+bo(u.e)),u.b&&(u.b=s.s+bo(u.b))}(this,t,e,n,r,this._ease(i/this._dur),i)?this.resetTo(t,e,n,r):(ao(this,0),this.parent||Za(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?Vo(this):this;if(this.timeline){var n=this.timeline.totalDuration();return this.timeline.killTweensOf(t,e,cs&&!0!==cs.vars.overwrite)._first||Vo(this),this.parent&&n!==this.timeline.totalDuration()&&fo(this,this._dur*this.timeline._tDur/n,0,1),this}var r,i,a,o,s,u,l,c=this._targets,h=t?xo(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),Vo(this);for(r=this._op=this._op||[],"all"!==e&&(Xi(e)&&(s={},Na(e,(function(t){return s[t]=1})),e=s),e=function(t,e){var n,r,i,a,o=t[0]?Ba(t[0]).harness:0,s=o&&o.aliases;if(!s)return e;for(r in n=Wa({},e),s)if(r in n)for(i=(a=s[r].split(",")).length;i--;)n[a[i]]=n[r];return n}(c,e)),l=c.length;l--;)if(~h.indexOf(c[l]))for(s in i=f[l],"all"===e?(r[l]=e,o=i,a={}):(a=r[l]=r[l]||{},o=e),o)(u=i&&i[s])&&("kill"in u.d&&!0!==u.d.kill(s)||$a(this,u,"_pt"),delete i[s]),"all"!==a&&(a[s]=1);return this._initted&&!this._pt&&d&&Vo(this),this},e.to=function(t,n){return new e(t,n,arguments[2])},e.from=function(t,e){return go(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 go(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 Oi.killTweensOf(t,e,n)},e}(us);Ua(bs.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),Na("staggerTo,staggerFrom,staggerFromTo",(function(t){bs[t]=function(){var e=new ls,n=wo.call(arguments,0);return n.splice("staggerFromTo"===t?5:4,0,0),e[t].apply(e,n)}}));var ws=function(t,e,n){return t[e]=n},Ds=function(t,e,n){return t[e](n)},Ss=function(t,e,n,r){return t[e](r.fp,n)},xs=function(t,e,n){return t.setAttribute(e,n)},Ts=function(t,e){return Ji(t[e])?Ds:ta(t[e])&&t.setAttribute?xs:ws},ks=function(t,e){return e.set(e.t,e.p,Math.round(1e6*(e.s+e.c*t))/1e6,e)},Cs=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},Es=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)},Os=function(t,e){for(var n=e._pt;n;)n.r(t,n.d),n=n._next},As=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},Ms=function(t){for(var e,n,r=this._pt;r;)n=r._next,r.p===t&&!r.op||r.op===t?$a(this,r,"_pt"):r.dep||(e=1),r=n;return!e},Ps=function(t,e,n,r){r.mSet(t,e,r.m.call(r.tween,n,r.mt),r)},Bs=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},Rs=function(){function t(t,e,n,r,i,a,o,s,u){this.t=e,this.s=r,this.c=i,this.p=n,this.r=a||ks,this.d=o||this,this.set=s||ws,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=Ps,this.m=t,this.mt=n,this.tween=e},t}();Na(Ma+"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 xa[t]=1})),pa.TweenMax=pa.TweenLite=bs,pa.TimelineLite=pa.TimelineMax=ls,Oi=new ls({sortChildren:!1,defaults:zi,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),Yi.stringFilter=Go;var Ns=[],Vs={},Is=[],Fs=0,js=0,Ls=function(t){return(Vs[t]||Is).map((function(t){return t()}))},Ys=function(){var t=Date.now(),e=[];t-Fs>2&&(Ls("matchMediaInit"),Ns.forEach((function(t){var n,r,i,a,o=t.queries,s=t.conditions;for(r in o)(n=Ai.matchMedia(o[r]).matches)&&(i=1),n!==s[r]&&(s[r]=n,a=1);a&&(t.revert(),i&&e.push(t))})),Ls("matchMediaRevert"),e.forEach((function(t){return t.onMatch(t)})),Fs=t,Ls("matchMedia"))},zs=function(){function t(t,e){this.selector=e&&To(e),this.data=[],this._r=[],this.isReverted=!1,this.id=js++,t&&this.add(t)}var e=t.prototype;return e.add=function(t,e,n){Ji(t)&&(n=e,e=t,t=Ji);var r=this,i=function(){var t,i=Ei,a=r.selector;return i&&i!==r&&i.data.push(r),n&&(r.selector=To(n)),Ei=r,t=e.apply(r,arguments),Ji(t)&&r._r.push(t),Ei=i,r.selector=a,r.isReverted=!1,t};return r.last=i,t===Ji?i(r):t?r[t]=i:i},e.ignore=function(t){var e=Ei;Ei=null,t(this),Ei=e},e.getTweens=function(){var e=[];return this.data.forEach((function(n){return n instanceof t?e.push.apply(e,n.getTweens()):n instanceof bs&&!(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/0})).forEach((function(e){return e.t.revert(t)})),this.data.forEach((function(e){return!(e instanceof bs)&&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)for(var i=Ns.length;i--;)Ns[i].id===this.id&&Ns.splice(i,1)},e.revert=function(t){this.kill(t||{})},t}(),Hs=function(){function t(t){this.contexts=[],this.scope=t}var e=t.prototype;return e.add=function(t,e,n){ea(t)||(t={matches:t});var r,i,a,o=new zs(0,n||this.scope),s=o.conditions={};for(i in Ei&&!o.selector&&(o.selector=Ei.selector),this.contexts.push(o),e=o.add("onMatch",e),o.queries=t,t)"all"===i?a=1:(r=Ai.matchMedia(t[i]))&&(Ns.indexOf(o)<0&&Ns.push(o),(s[i]=r.matches)&&(a=1),r.addListener?r.addListener(Ys):r.addEventListener("change",Ys));return a&&e(o),this},e.revert=function(t){this.kill(t||{})},e.kill=function(t){this.contexts.forEach((function(e){return e.kill(t,!0)}))},t}(),Us={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 Fo(t)}))},timeline:function(t){return new ls(t)},getTweensOf:function(t,e){return Oi.getTweensOf(t,e)},getProperty:function(t,e,n,r){Xi(t)&&(t=xo(t)[0]);var i=Ba(t||{}).get,a=n?Ha:za;return"native"===n&&(n=""),t?e?a((Ca[e]&&Ca[e].get||i)(t,e,n,r)):function(e,n,r){return a((Ca[e]&&Ca[e].get||i)(t,e,n,r))}:t},quickSetter:function(t,e,n){if((t=xo(t)).length>1){var r=t.map((function(t){return Gs.quickSetter(t,e,n)})),i=r.length;return function(t){for(var e=i;e--;)r[e](t)}}t=t[0]||{};var a=Ca[e],o=Ba(t),s=o.harness&&(o.harness.aliases||{})[e]||e,u=a?function(e){var r=new a;Ni._pt=0,r.init(t,n?e+n:e,Ni,0,[t]),r.render(1,r),Ni._pt&&Os(1,Ni)}:o.set(t,s);return a?u:function(e){return u(t,s,n?e+n:e,o,1)}},quickTo:function(t,e,n){var r,i=Gs.to(t,Wa(((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 Oi.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=ns(t.ease,zi.ease)),qa(zi,t||{})},config:function(t){return qa(Yi,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&&!Ca[t]&&!pa[t]&&ya(e+" effect requires "+t+" plugin.")})),Ea[e]=function(t,e,r){return n(xo(t),Ua(e||{},i),r)},a&&(ls.prototype[e]=function(t,n,r){return this.add(Ea[e](t,ea(n)?n:(r=n)&&{},this),r)})},registerEase:function(t,e){$o[t]=ns(e)},parseEase:function(t,e){return arguments.length?ns(t,e):$o},getById:function(t){return Oi.getById(t)},exportRoot:function(t,e){void 0===t&&(t={});var n,r,i=new ls(t);for(i.smoothChildTiming=na(t.smoothChildTiming),Oi.remove(i),i._dp=0,i._time=i._tTime=Oi._time,n=Oi._first;n;)r=n._next,!e&&!n._dur&&n instanceof bs&&n.vars.onComplete===n._targets[0]||so(i,n,n._start-n._delay),n=r;return so(Oi,i,0),i},context:function(t,e){return t?new zs(t,e):Ei},matchMedia:function(t){return new Hs(t)},matchMediaRefresh:function(){return Ns.forEach((function(t){var e,n,r=t.conditions;for(n in r)r[n]&&(r[n]=!1,e=1);e&&t.revert()}))||Ys()},addEventListener:function(t,e){var n=Vs[t]||(Vs[t]=[]);~n.indexOf(e)||n.push(e)},removeEventListener:function(t,e){var n=Vs[t],r=n&&n.indexOf(e);r>=0&&n.splice(r,1)},utils:{wrap:function t(e,n,r){var i=n-e;return oa(e)?Mo(e,t(0,e.length),n):yo(r,(function(t){return(i+(t-e)%i)%i+e}))},wrapYoyo:function t(e,n,r){var i=n-e,a=2*i;return oa(e)?Mo(e,t(0,e.length-1),n):yo(r,(function(t){return e+((t=(a+(t-e)%a)%a||0)>i?a-t:t)}))},distribute:Co,random:Ao,snap:Oo,normalize:function(t,e,n){return Bo(t,e,0,1,n)},getUnit:bo,clamp:function(t,e,n){return yo(n,(function(n){return _o(t,e,n)}))},splitColor:zo,toArray:xo,selector:To,mapRange:Bo,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||bo(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 o,s,u,l,c,h=Xi(e),f={};if(!0===r&&(i=1)&&(r=null),h)e={p:e},n={p:n};else if(oa(e)&&!oa(n)){for(u=[],l=e.length,c=l-2,s=1;s<l;s++)u.push(t(e[s-1],e[s]));l--,a=function(t){t*=l;var e=Math.min(c,~~t);return u[e](t-e)},r=n}else i||(e=Wa(oa(e)?[]:{},e));if(!u){for(o in n)ds.call(f,e,o,"get",n[o]);a=function(t){return Os(t,f)||(h?e.p:e)}}}return yo(r,a)},shuffle:ko},install:ma,effects:Ea,ticker:Ko,updateRoot:ls.updateRoot,plugins:Ca,globalTimeline:Oi,core:{PropTween:Rs,globals:_a,Tween:bs,Timeline:ls,Animation:us,getCache:Ba,_removeLinkedListItem:$a,reverting:function(){return Ci},context:function(t){return t&&Ei&&(Ei.data.push(t),t._ctx=Ei),Ei},suppressOverwrites:function(t){return ki=t}}};Na("to,from,fromTo,delayedCall,set,killTweensOf",(function(t){return Us[t]=bs[t]})),Ko.add(ls.updateRoot),Ni=Us.to({},{duration:0});var Ws=function(t,e){for(var n=t._pt;n&&n.p!==e&&n.op!==e&&n.fp!==e;)n=n._next;return n},qs=function(t,e){return{name:t,rawVars:1,init:function(t,n,r){r._onInit=function(t){var r,i;if(Xi(n)&&(r={},Na(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=Ws(i,n)),i&&i.modifier&&i.modifier(e[n],t,a[r],n))}(t,n)}}}},Gs=Us.registerPlugin({name:"attr",init:function(t,e,n,r,i){var a,o,s;for(a in this.tween=n,e)s=t.getAttribute(a)||"",(o=this.add(t,"setAttribute",(s||0)+"",e[a],r,i,0,0,a)).op=a,o.b=s,this._props.push(a)},render:function(t,e){for(var n=e._pt;n;)Ci?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)}},qs("roundProps",Eo),qs("modifiers"),qs("snap",Oo))||Us;bs.version=ls.version=Gs.version="3.12.2",Bi=1,ra()&&Zo(),$o.Power0,$o.Power1,$o.Power2,$o.Power3,$o.Power4,$o.Linear,$o.Quad,$o.Cubic,$o.Quart,$o.Quint,$o.Strong,$o.Elastic,$o.Back,$o.SteppedEase,$o.Bounce,$o.Sine,$o.Expo,$o.Circ;
41
+ */var Ci,Ei,Oi,Ai,Mi,Pi,Bi,Ri,Ni,Vi,Ii,Fi,ji,Li,Yi,zi={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},Hi={duration:.5,overwrite:!1,delay:0},Ui=1e8,Wi=1e-8,qi=2*Math.PI,Gi=qi/4,Ki=0,Zi=Math.sqrt,$i=Math.cos,Xi=Math.sin,Ji=function(t){return"string"==typeof t},Qi=function(t){return"function"==typeof t},ta=function(t){return"number"==typeof t},ea=function(t){return void 0===t},na=function(t){return"object"==typeof t},ra=function(t){return!1!==t},ia=function(){return"undefined"!=typeof window},aa=function(t){return Qi(t)||Ji(t)},oa="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},sa=Array.isArray,ua=/(?:-?\.?\d|\.)+/gi,la=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,ca=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,ha=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,fa=/[+-]=-?[.\d]+/,da=/[^,'"\[\]\s]+/gi,pa=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,va={},ma={},ga=function(t){return(ma=qa(t,va))&&Ks},ya=function(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")},_a=function(t,e){return!e&&console.warn(t)},ba=function(t,e){return t&&(va[t]=e)&&ma&&(ma[t]=e)||va},wa=function(){return 0},Da={suppressEvents:!0,isStart:!0,kill:!1},Sa={suppressEvents:!0,kill:!1},xa={suppressEvents:!0},Ta={},ka=[],Ca={},Ea={},Oa={},Aa=30,Ma=[],Pa="",Ba=function(t){var e,n,r=t[0];if(na(r)||Qi(r)||(t=[t]),!(e=(r._gsap||{}).harness)){for(n=Ma.length;n--&&!Ma[n].targetTest(r););e=Ma[n]}for(n=t.length;n--;)t[n]&&(t[n]._gsap||(t[n]._gsap=new us(t[n],e)))||t.splice(n,1);return t},Ra=function(t){return t._gsap||Ba(To(t))[0]._gsap},Na=function(t,e,n){return(n=t[e])&&Qi(n)?t[e]():ea(n)&&t.getAttribute&&t.getAttribute(e)||n},Va=function(t,e){return(t=t.split(",")).forEach(e)||t},Ia=function(t){return Math.round(1e5*t)/1e5||0},Fa=function(t){return Math.round(1e7*t)/1e7||0},ja=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},La=function(t,e){for(var n=e.length,r=0;t.indexOf(e[r])<0&&++r<n;);return r<n},Ya=function(){var t,e,n=ka.length,r=ka.slice(0);for(Ca={},ka.length=0,t=0;t<n;t++)(e=r[t])&&e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0)._lazy=0)},za=function(t,e,n,r){ka.length&&!Ei&&Ya(),t.render(e,n,r||Ei&&e<0&&(t._initted||t._startAt)),ka.length&&!Ei&&Ya()},Ha=function(t){var e=parseFloat(t);return(e||0===e)&&(t+"").match(da).length<2?e:Ji(t)?t.trim():t},Ua=function(t){return t},Wa=function(t,e){for(var n in e)n in t||(t[n]=e[n]);return t},qa=function(t,e){for(var n in e)t[n]=e[n];return t},Ga=function t(e,n){for(var r in n)"__proto__"!==r&&"constructor"!==r&&"prototype"!==r&&(e[r]=na(n[r])?t(e[r]||(e[r]={}),n[r]):n[r]);return e},Ka=function(t,e){var n,r={};for(n in t)n in e||(r[n]=t[n]);return r},Za=function(t){var e,n=t.parent||Ai,r=t.keyframes?(e=sa(t.keyframes),function(t,n){for(var r in n)r in t||"duration"===r&&e||"ease"===r||(t[r]=n[r])}):Wa;if(ra(t.inherit))for(;n;)r(t,n.vars.defaults),n=n.parent||n._dp;return t},$a=function(t,e,n,r,i){void 0===n&&(n="_first"),void 0===r&&(r="_last");var a,o=t[r];if(i)for(a=e[i];o&&o[i]>a;)o=o._prev;return o?(e._next=o._next,o._next=e):(e._next=t[n],t[n]=e),e._next?e._next._prev=e:t[r]=e,e._prev=o,e.parent=e._dp=t,e},Xa=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},Ja=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},Qa=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},to=function(t,e,n,r){return t._startAt&&(Ei?t._startAt.revert(Sa):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,r))},eo=function t(e){return!e||e._ts&&t(e.parent)},no=function(t){return t._repeat?ro(t._tTime,t=t.duration()+t._rDelay)*t:0},ro=function(t,e){var n=Math.floor(t/=e);return t&&n===t?n-1:n},io=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},ao=function(t){return t._end=Fa(t._start+(t._tDur/Math.abs(t._ts||t._rts||Wi)||0))},oo=function(t,e){var n=t._dp;return n&&n.smoothChildTiming&&t._ts&&(t._start=Fa(n._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),ao(t),n._dirty||Qa(n,t)),t},so=function(t,e){var n;if((e._time||!e._dur&&e._initted||e._start<t._time&&(e._dur||!e.add))&&(n=io(t.rawTime(),e),(!e._dur||bo(0,e.totalDuration(),n)-e._tTime>Wi)&&e.render(n,!0)),Qa(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}},uo=function(t,e,n,r){return e.parent&&Ja(e),e._start=Fa((ta(n)?n:n||t!==Ai?go(t,n,e):t._time)+e._delay),e._end=Fa(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),$a(t,e,"_first","_last",t._sort?"_start":0),fo(e)||(t._recent=e),r||so(t,e),t._ts<0&&oo(t,t._tTime),t},lo=function(t,e){return(va.ScrollTrigger||ya("scrollTrigger",e))&&va.ScrollTrigger.create(e,t)},co=function(t,e,n,r,i){return ms(t,e,i),t._initted?!n&&t._pt&&!Ei&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&Ni!==Zo.frame?(ka.push(t),t._lazy=[i,r],1):void 0:1},ho=function t(e){var n=e.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||t(n))},fo=function(t){var e=t.data;return"isFromStart"===e||"isStart"===e},po=function(t,e,n,r){var i=t._repeat,a=Fa(e)||0,o=t._tTime/t._tDur;return o&&!r&&(t._time*=a/t._dur),t._dur=a,t._tDur=i?i<0?1e10:Fa(a*(i+1)+t._rDelay*i):a,o>0&&!r&&oo(t,t._tTime=t._tDur*o),t.parent&&ao(t),n||Qa(t.parent,t),t},vo=function(t){return t instanceof cs?Qa(t):po(t,t._dur)},mo={_start:0,endTime:wa,totalDuration:wa},go=function t(e,n,r){var i,a,o,s=e.labels,u=e._recent||mo,l=e.duration()>=Ui?u.endTime(!1):e._dur;return Ji(n)&&(isNaN(n)||n in s)?(a=n.charAt(0),o="%"===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)*(o?(i<0?u:r).totalDuration()/100:1)):i<0?(n in s||(s[n]=l),s[n]):(a=parseFloat(n.charAt(i-1)+n.substr(i+1)),o&&r&&(a=a/100*(sa(r)?r[0]:r).totalDuration()),i>1?t(e,n.substr(0,i-1),r)+a:l+a)):null==n?l:+n},yo=function(t,e,n){var r,i,a=ta(e[1]),o=(a?2:1)+(t<2?0:1),s=e[o];if(a&&(s.duration=e[1]),s.parent=n,t){for(r=s,i=n;i&&!("immediateRender"in r);)r=i.vars.defaults||{},i=ra(i.vars.inherit)&&i.parent;s.immediateRender=ra(r.immediateRender),t<2?s.runBackwards=1:s.startAt=e[o-1]}return new ws(e[0],s,e[o+1])},_o=function(t,e){return t||0===t?e(t):e},bo=function(t,e,n){return n<t?t:n>e?e:n},wo=function(t,e){return Ji(t)&&(e=pa.exec(t))?e[1]:""},Do=[].slice,So=function(t,e){return t&&na(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&na(t[0]))&&!t.nodeType&&t!==Mi},xo=function(t,e,n){return void 0===n&&(n=[]),t.forEach((function(t){var r;return Ji(t)&&!e||So(t,1)?(r=n).push.apply(r,To(t)):n.push(t)}))||n},To=function(t,e,n){return Oi&&!e&&Oi.selector?Oi.selector(t):!Ji(t)||n||!Pi&&$o()?sa(t)?xo(t,n):So(t)?Do.call(t,0):t?[t]:[]:Do.call((e||Bi).querySelectorAll(t),0)},ko=function(t){return t=To(t)[0]||_a("Invalid scope")||{},function(e){var n=t.current||t.nativeElement||t;return To(e,n.querySelectorAll?n:n===t?_a("Invalid scope")||Bi.createElement("div"):t)}},Co=function(t){return t.sort((function(){return.5-Math.random()}))},Eo=function(t){if(Qi(t))return t;var e=na(t)?t:{each:t},n=rs(e.ease),r=e.from||0,i=parseFloat(e.base)||0,a={},o=r>0&&r<1,s=isNaN(r)||o,u=e.axis,l=r,c=r;return Ji(r)?l=c={center:.5,edges:.5,end:1}[r]||0:!o&&s&&(l=r[0],c=r[1]),function(t,o,h){var f,d,p,v,m,g,y,_,b,w=(h||e).length,D=a[w];if(!D){if(!(b="auto"===e.grid?0:(e.grid||[1,Ui])[1])){for(y=-1e8;y<(y=h[b++].getBoundingClientRect().left)&&b<w;);b--}for(D=a[w]=[],f=s?Math.min(b,w)*l-.5:r%b,d=b===Ui?0:s?w*c/b-.5:r/b|0,y=0,_=Ui,g=0;g<w;g++)p=g%b-f,v=d-(g/b|0),D[g]=m=u?Math.abs("y"===u?v:p):Zi(p*p+v*v),m>y&&(y=m),m<_&&(_=m);"random"===r&&Co(D),D.max=y-_,D.min=_,D.v=w=(parseFloat(e.amount)||parseFloat(e.each)*(b>w?w-1:u?"y"===u?w/b:b:Math.max(b,w/b))||0)*("edges"===r?-1:1),D.b=w<0?i-w:i,D.u=wo(e.amount||e.each)||0,n=n&&w<0?es(n):n}return w=(D[t]-D.min)/D.max||0,Fa(D.b+(n?n(w):w)*D.v)+D.u}},Oo=function(t){var e=Math.pow(10,((t+"").split(".")[1]||"").length);return function(n){var r=Fa(Math.round(parseFloat(n)/t)*t*e);return(r-r%1)/e+(ta(n)?0:wo(n))}},Ao=function(t,e){var n,r,i=sa(t);return!i&&na(t)&&(n=i=t.radius||Ui,t.values?(t=To(t.values),(r=!ta(t[0]))&&(n*=n)):t=Oo(t.increment)),_o(e,i?Qi(t)?function(e){return r=t(e),Math.abs(r-e)<=n?r:e}:function(e){for(var i,a,o=parseFloat(r?e.x:e),s=parseFloat(r?e.y:0),u=Ui,l=0,c=t.length;c--;)(i=r?(i=t[c].x-o)*i+(a=t[c].y-s)*a:Math.abs(t[c]-o))<u&&(u=i,l=c);return l=!n||u<=n?t[l]:e,r||l===e||ta(e)?l:l+wo(e)}:Oo(t))},Mo=function(t,e,n,r){return _o(sa(t)?!e:!0===n?!!(n=0):!r,(function(){return sa(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}))},Po=function(t,e,n){return _o(n,(function(n){return t[~~e(n)]}))},Bo=function(t){for(var e,n,r,i,a=0,o="";~(e=t.indexOf("random(",a));)r=t.indexOf(")",e),i="["===t.charAt(e+7),n=t.substr(e+7,r-e-7).match(i?da:ua),o+=t.substr(a,e-a)+Mo(i?n:+n[0],i?0:+n[1],+n[2]||1e-5),a=r+1;return o+t.substr(a,t.length-a)},Ro=function(t,e,n,r,i){var a=e-t,o=r-n;return _o(i,(function(e){return n+((e-t)/a*o||0)}))},No=function(t,e,n){var r,i,a,o=t.labels,s=Ui;for(r in o)(i=o[r]-e)<0==!!n&&i&&s>(i=Math.abs(i))&&(a=r,s=i);return a},Vo=function(t,e,n){var r,i,a,o=t.vars,s=o[e],u=Oi,l=t._ctx;if(s)return r=o[e+"Params"],i=o.callbackScope||t,n&&ka.length&&Ya(),l&&(Oi=l),a=r?s.apply(i,r):s.call(i),Oi=u,a},Io=function(t){return Ja(t),t.scrollTrigger&&t.scrollTrigger.kill(!!Ei),t.progress()<1&&Vo(t,"onInterrupt"),t},Fo=[],jo=function(t){if(ia()&&t){var e=(t=!t.name&&t.default||t).name,n=Qi(t),r=e&&!n&&t.init?function(){this._props=[]}:t,i={init:wa,render:As,add:ps,kill:Ps,modifier:Ms,rawVars:0},a={targetTest:0,get:0,getSetter:ks,aliases:{},register:0};if($o(),t!==r){if(Ea[e])return;Wa(r,Wa(Ka(t,i),a)),qa(r.prototype,qa(i,Ka(t,a))),Ea[r.prop=e]=r,t.targetTest&&(Ma.push(r),Ta[e]=1),e=("css"===e?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}ba(e,r),t.register&&t.register(Ks,r,Ns)}else t&&Fo.push(t)},Lo=255,Yo={aqua:[0,Lo,Lo],lime:[0,Lo,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,Lo],navy:[0,0,128],white:[Lo,Lo,Lo],olive:[128,128,0],yellow:[Lo,Lo,0],orange:[Lo,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[Lo,0,0],pink:[Lo,192,203],cyan:[0,Lo,Lo],transparent:[Lo,Lo,Lo,0]},zo=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)*Lo+.5|0},Ho=function(t,e,n){var r,i,a,o,s,u,l,c,h,f,d=t?ta(t)?[t>>16,t>>8&Lo,t&Lo]:0:Yo.black;if(!d){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),Yo[t])d=Yo[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&Lo,d&Lo,parseInt(t.substr(7),16)/255];d=[(t=parseInt(t.substr(1),16))>>16,t>>8&Lo,t&Lo]}else if("hsl"===t.substr(0,3))if(d=f=t.match(ua),e){if(~t.indexOf("="))return d=t.match(la),n&&d.length<4&&(d[3]=1),d}else o=+d[0]%360/360,s=+d[1]/100,r=2*(u=+d[2]/100)-(i=u<=.5?u*(s+1):u+s-u*s),d.length>3&&(d[3]*=1),d[0]=zo(o+1/3,r,i),d[1]=zo(o,r,i),d[2]=zo(o-1/3,r,i);else d=t.match(ua)||Yo.transparent;d=d.map(Number)}return e&&!f&&(r=d[0]/Lo,i=d[1]/Lo,a=d[2]/Lo,u=((l=Math.max(r,i,a))+(c=Math.min(r,i,a)))/2,l===c?o=s=0:(h=l-c,s=u>.5?h/(2-l-c):h/(l+c),o=l===r?(i-a)/h+(i<a?6:0):l===i?(a-r)/h+2:(r-i)/h+4,o*=60),d[0]=~~(o+.5),d[1]=~~(100*s+.5),d[2]=~~(100*u+.5)),n&&d.length<4&&(d[3]=1),d},Uo=function(t){var e=[],n=[],r=-1;return t.split(qo).forEach((function(t){var i=t.match(ca)||[];e.push.apply(e,i),n.push(r+=i.length+1)})),e.c=n,e},Wo=function(t,e,n){var r,i,a,o,s="",u=(t+s).match(qo),l=e?"hsla(":"rgba(",c=0;if(!u)return t;if(u=u.map((function(t){return(t=Ho(t,e,1))&&l+(e?t[0]+","+t[1]+"%,"+t[2]+"%,"+t[3]:t.join(","))+")"})),n&&(a=Uo(t),(r=n.c).join(s)!==a.c.join(s)))for(o=(i=t.replace(qo,"1").split(ca)).length-1;c<o;c++)s+=i[c]+(~r.indexOf(c)?u.shift()||l+"0,0,0,0)":(a.length?a:u.length?u:n).shift());if(!i)for(o=(i=t.split(qo)).length-1;c<o;c++)s+=i[c]+u[c];return s+i[o]},qo=function(){var t,e="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b";for(t in Yo)e+="|"+t+"\\b";return new RegExp(e+")","gi")}(),Go=/hsl[a]?\(/,Ko=function(t){var e,n=t.join(" ");if(qo.lastIndex=0,qo.test(n))return e=Go.test(n),t[1]=Wo(t[1],e),t[0]=Wo(t[0],e,Uo(t[1])),!0},Zo=function(){var t,e,n,r,i,a,o=Date.now,s=500,u=33,l=o(),c=l,h=1e3/240,f=h,d=[],p=function n(p){var v,m,g,y,_=o()-c,b=!0===p;if(_>s&&(l+=_-u),((v=(g=(c+=_)-l)-f)>0||b)&&(y=++r.frame,i=g-1e3*r.time,r.time=g/=1e3,f+=v+(v>=h?4:h-v),m=1),b||(t=e(n)),m)for(a=0;a<d.length;a++)d[a](g,i,y,p)};return r={time:0,frame:0,tick:function(){p(!0)},deltaRatio:function(t){return i/(1e3/(t||60))},wake:function(){Ri&&(!Pi&&ia()&&(Mi=Pi=window,Bi=Mi.document||{},va.gsap=Ks,(Mi.gsapVersions||(Mi.gsapVersions=[])).push(Ks.version),ga(ma||Mi.GreenSockGlobals||!Mi.gsap&&Mi||{}),n=Mi.requestAnimationFrame,Fo.forEach(jo)),t&&r.sleep(),e=n||function(t){return setTimeout(t,f-1e3*r.time+1|0)},Ii=1,p(2))},sleep:function(){(n?Mi.cancelAnimationFrame:clearTimeout)(t),Ii=0,e=wa},lagSmoothing:function(t,e){s=t||1/0,u=Math.min(e||33,s)},fps:function(t){h=1e3/(t||240),f=1e3*r.time+h},add:function(t,e,n){var i=e?function(e,n,a,o){t(e,n,a,o),r.remove(i)}:t;return r.remove(t),d[n?"unshift":"push"](i),$o(),i},remove:function(t,e){~(e=d.indexOf(t))&&d.splice(e,1)&&a>=e&&a--},_listeners:d},r}(),$o=function(){return!Ii&&Zo.wake()},Xo={},Jo=/^[\d.\-M][\d.\-,\s]/,Qo=/["']/g,ts=function(t){for(var e,n,r,i={},a=t.substr(1,t.length-3).split(":"),o=a[0],s=1,u=a.length;s<u;s++)n=a[s],e=s!==u-1?n.lastIndexOf(","):n.length,r=n.substr(0,e),i[o]=isNaN(r)?r.replace(Qo,"").trim():+r,o=n.substr(e+1).trim();return i},es=function(t){return function(e){return 1-t(1-e)}},ns=function t(e,n){for(var r,i=e._first;i;)i instanceof cs?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},rs=function(t,e){return t&&(Qi(t)?t:Xo[t]||function(t){var e=(t+"").split("("),n=Xo[e[0]];return n&&e.length>1&&n.config?n.config.apply(null,~t.indexOf("{")?[ts(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(Ha)):Xo._CE&&Jo.test(t)?Xo._CE("",t):n}(t))||e},is=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 Va(t,(function(t){for(var e in Xo[t]=va[t]=a,Xo[i=t.toLowerCase()]=n,a)Xo[i+("easeIn"===e?".in":"easeOut"===e?".out":".inOut")]=Xo[t+"."+e]=a[e]})),a},as=function(t){return function(e){return e<.5?(1-t(1-2*e))/2:.5+t(2*(e-.5))/2}},os=function t(e,n,r){var i=n>=1?n:1,a=(r||(e?.3:.45))/(n<1?n:1),o=a/qi*(Math.asin(1/i)||0),s=function(t){return 1===t?1:i*Math.pow(2,-10*t)*Xi((t-o)*a)+1},u="out"===e?s:"in"===e?function(t){return 1-s(1-t)}:as(s);return a=qi/a,u.config=function(n,r){return t(e,n,r)},u},ss=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)}:as(r);return i.config=function(n){return t(e,n)},i};Va("Linear,Quad,Cubic,Quart,Quint,Strong",(function(t,e){var n=e<5?e+1:e;is(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}))})),Xo.Linear.easeNone=Xo.none=Xo.Linear.easeIn,is("Elastic",os("in"),os("out"),os()),Fi=7.5625,Li=1/(ji=2.75),is("Bounce",(function(t){return 1-Yi(1-t)}),Yi=function(t){return t<Li?Fi*t*t:t<.7272727272727273?Fi*Math.pow(t-1.5/ji,2)+.75:t<.9090909090909092?Fi*(t-=2.25/ji)*t+.9375:Fi*Math.pow(t-2.625/ji,2)+.984375}),is("Expo",(function(t){return t?Math.pow(2,10*(t-1)):0})),is("Circ",(function(t){return-(Zi(1-t*t)-1)})),is("Sine",(function(t){return 1===t?1:1-$i(t*Gi)})),is("Back",ss("in"),ss("out"),ss()),Xo.SteppedEase=Xo.steps=va.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*bo(0,.99999999,t)|0)+i)*n}}},Hi.ease=Xo["quad.out"],Va("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",(function(t){return Pa+=t+","+t+"Params,"}));var us=function(t,e){this.id=Ki++,t._gsap=this,this.target=t,this.harness=e,this.get=e?e.get:Na,this.set=e?e.getSetter:ks},ls=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,po(this,+t.duration,1,1),this.data=t.data,Oi&&(this._ctx=Oi,Oi.data.push(this)),Ii||Zo.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,po(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(t,e){if($o(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(oo(this,t),!n._dp||n.parent||so(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)&&uo(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!e||this._initted&&Math.abs(this._zTime)===Wi||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),za(this,t,e)),this},e.time=function(t,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+no(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)+no(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?ro(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?io(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||-1e-8===t?0:this._rts,this.totalTime(bo(-Math.abs(this._delay),this._tDur,e),!0),ao(this),function(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent;return t}(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):($o(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&Math.abs(this._zTime)!==Wi&&(this._tTime-=Wi)))),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)&&uo(e,this,t-this._delay),this}return this._start},e.endTime=function(t){return this._start+(ra(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?io(e.rawTime(t),this):this._tTime:this._tTime},e.revert=function(t){void 0===t&&(t=xa);var e=Ei;return Ei=t,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(t),this.totalTime(-.01,t.suppressEvents)),"nested"!==this.data&&!1!==t.kill&&this.kill(),Ei=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._sat?this._sat.vars.immediateRender?-1/0:this._sat.globalTime(t):n},e.repeat=function(t){return arguments.length?(this._repeat=t===1/0?-2:t,vo(this)):-2===this._repeat?1/0:this._repeat},e.repeatDelay=function(t){if(arguments.length){var e=this._time;return this._rDelay=t,vo(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(go(this,t),ra(e))},e.restart=function(t,e){return this.play().totalTime(t?-this._delay:0,ra(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)-Wi))},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=Qi(t)?t:Ua,i=function(){var t=e.then;e.then=null,Qi(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(){Io(this)},t}();Wa(ls.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 cs=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=ra(e.sortChildren),Ai&&uo(e.parent||Ai,Ti(r),n),e.reversed&&r.reverse(),e.paused&&r.paused(!0),e.scrollTrigger&&lo(Ti(r),e.scrollTrigger),r}ki(e,t);var n=e.prototype;return n.to=function(t,e,n){return yo(0,arguments,this),this},n.from=function(t,e,n){return yo(1,arguments,this),this},n.fromTo=function(t,e,n,r){return yo(2,arguments,this),this},n.set=function(t,e,n){return e.duration=0,e.parent=this,Za(e).repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new ws(t,e,go(this,n),1),this},n.call=function(t,e,n){return uo(this,ws.delayedCall(0,t,e),n)},n.staggerTo=function(t,e,n,r,i,a,o){return n.duration=e,n.stagger=n.stagger||r,n.onComplete=a,n.onCompleteParams=o,n.parent=this,new ws(t,n,go(this,i)),this},n.staggerFrom=function(t,e,n,r,i,a,o){return n.runBackwards=1,Za(n).immediateRender=ra(n.immediateRender),this.staggerTo(t,e,n,r,i,a,o)},n.staggerFromTo=function(t,e,n,r,i,a,o,s){return r.startAt=n,Za(r).immediateRender=ra(r.immediateRender),this.staggerTo(t,e,r,i,a,o,s)},n.render=function(t,e,n){var r,i,a,o,s,u,l,c,h,f,d,p,v=this._time,m=this._dirty?this.totalDuration():this._tDur,g=this._dur,y=t<=0?0:Fa(t),_=this._zTime<0!=t<0&&(this._initted||!g);if(this!==Ai&&y>m&&t>=0&&(y=m),y!==this._tTime||n||_){if(v!==this._time&&g&&(y+=this._time-v,t+=this._time-v),r=y,h=this._start,u=!(c=this._ts),_&&(g||(v=this._zTime),(t||!e)&&(this._zTime=t)),this._repeat){if(d=this._yoyo,s=g+this._rDelay,this._repeat<-1&&t<0)return this.totalTime(100*s+t,e,n);if(r=Fa(y%s),y===m?(o=this._repeat,r=g):((o=~~(y/s))&&o===y/s&&(r=g,o--),r>g&&(r=g)),f=ro(this._tTime,s),!v&&this._tTime&&f!==o&&this._tTime-f*s-this._dur<=0&&(f=o),d&&1&o&&(r=g-r,p=1),o!==f&&!this._lock){var b=d&&1&f,w=b===(d&&1&o);if(o<f&&(b=!b),v=b?0:y%g?g:y,this._lock=1,this.render(v||(p?0:Fa(o*s)),e,!g)._lock=0,this._tTime=y,!e&&this.parent&&Vo(this,"onRepeat"),this.vars.repeatRefresh&&!p&&(this.invalidate()._lock=1),v&&v!==this._time||u!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(g=this._dur,m=this._tDur,w&&(this._lock=2,v=b?g:-1e-4,this.render(v,!0),this.vars.repeatRefresh&&!p&&this.invalidate()),this._lock=0,!this._ts&&!u)return this;ns(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,Fa(v),Fa(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,v=0),!v&&r&&!e&&!o&&(Vo(this,"onStart"),this._tTime!==y))return this;if(r>=v&&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||Ei&&(i._initted||i._startAt)),r!==this._time||!this._ts&&!u){l=0,a&&(y+=this._zTime=D?-1e-8:Wi);break}}i=a}}if(l&&!e&&(this.pause(),l.render(r>=v?0:-1e-8)._zTime=r>=v?1:-1,this._ts))return this._start=h,ao(this),this.render(t,e,n);this._onUpdate&&!e&&Vo(this,"onUpdate",!0),(y===m&&this._tTime>=this.totalDuration()||!y&&v)&&(h!==this._start&&Math.abs(c)===Math.abs(this._ts)||this._lock||((t||!g)&&(y===m&&this._ts>0||!y&&this._ts<0)&&Ja(this,1),e||t<0&&!v||!y&&!v&&m||(Vo(this,y===m&&t>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(y<m&&this.timeScale()>0)&&this._prom())))}return this},n.add=function(t,e){var n=this;if(ta(e)||(e=go(this,e,t)),!(t instanceof ls)){if(sa(t))return t.forEach((function(t){return n.add(t,e)})),this;if(Ji(t))return this.addLabel(t,e);if(!Qi(t))return this;t=ws.delayedCall(0,t)}return this!==t?uo(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 ws?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 Ji(t)?this.removeLabel(t):Qi(t)?this.killTweensOf(t):(Xa(this,t),t===this._recent&&(this._recent=this._last),Qa(this))},n.totalTime=function(e,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=Fa(Zo.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]=go(this,e),this},n.removeLabel=function(t){return delete this.labels[t],this},n.addPause=function(t,e,n){var r=ws.delayedCall(0,e||wa,n);return r.data="isPause",this._hasPause=1,uo(this,r,go(this,t))},n.removePause=function(t){var e=this._first;for(t=go(this,t);e;)e._start===t&&"isPause"===e.data&&Ja(e),e=e._next},n.killTweensOf=function(t,e,n){for(var r=this.getTweensOf(t,n),i=r.length;i--;)hs!==r[i]&&r[i].kill(t,e);return this},n.getTweensOf=function(t,e){for(var n,r=[],i=To(t),a=this._first,o=ta(e);a;)a instanceof ws?La(a._targets,i)&&(o?(!hs||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=go(r,t),a=e,o=a.startAt,s=a.onStart,u=a.onStartParams,l=a.immediateRender,c=ws.to(r,Wa({ease:e.ease||"none",lazy:!1,immediateRender:!1,time:i,overwrite:"auto",duration:e.duration||Math.abs((i-(o&&"time"in o?o.time:r._time))/r.timeScale())||Wi,onStart:function(){if(r.pause(),!n){var t=e.duration||Math.abs((i-(o&&"time"in o?o.time:r._time))/r.timeScale());c._dur!==t&&po(c,t,0,1).render(c._time,!0,!0),n=1}s&&s.apply(c,u||[])}},e));return l?c.render(0):c},n.tweenFromTo=function(t,e,n){return this.tweenTo(e,Wa({startAt:{time:go(this,t)}},n))},n.recent=function(){return this._recent},n.nextLabel=function(t){return void 0===t&&(t=this._time),No(this,go(this,t))},n.previousLabel=function(t){return void 0===t&&(t=this._time),No(this,go(this,t),1)},n.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+Wi)},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 Qa(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={}),Qa(this)},n.totalDuration=function(t){var e,n,r,i=0,a=this,o=a._last,s=Ui;if(arguments.length)return a.timeScale((a._repeat<0?a.duration():a.totalDuration())/(a.reversed()?-t:t));if(a._dirty){for(r=a.parent;o;)e=o._prev,o._dirty&&o.totalDuration(),(n=o._start)>s&&a._sort&&o._ts&&!a._lock?(a._lock=1,uo(a,o,n-o._delay,1)._lock=0):s=n,n<0&&o._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),s=0),o._end>i&&o._ts&&(i=o._end),o=e;po(a,a===Ai&&a._time>i?a._time:i,1,1),a._dirty=0}return a._tDur},e.updateRoot=function(t){if(Ai._ts&&(za(Ai,io(t,Ai)),Ni=Zo.frame),Zo.frame>=Aa){Aa+=zi.autoSleep||120;var e=Ai._first;if((!e||!e._ts)&&zi.autoSleep&&Zo._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||Zo.sleep()}}},e}(ls);Wa(cs.prototype,{_lock:0,_hasPause:0,_forcing:0});var hs,fs,ds=function(t,e,n,r,i,a,o){var s,u,l,c,h,f,d,p,v=new Ns(this._pt,t,e,0,1,Os,null,i),m=0,g=0;for(v.b=n,v.e=r,n+="",(d=~(r+="").indexOf("random("))&&(r=Bo(r)),a&&(a(p=[n,r],t,e),n=p[0],r=p[1]),u=n.match(ha)||[];s=ha.exec(r);)c=s[0],h=r.substring(m,s.index),l?l=(l+1)%5:"rgba("===h.substr(-5)&&(l=1),c!==u[g++]&&(f=parseFloat(u[g-1])||0,v._pt={_next:v._pt,p:h||1===g?h:",",s:f,c:"="===c.charAt(1)?ja(f,c)-f:parseFloat(c)-f,m:l&&l<4?Math.round:0},m=ha.lastIndex);return v.c=m<r.length?r.substring(m,r.length):"",v.fp=o,(fa.test(r)||d)&&(v.e=0),this._pt=v,v},ps=function(t,e,n,r,i,a,o,s,u,l){Qi(r)&&(r=r(i||0,t,a));var c,h=t[e],f="get"!==n?n:Qi(h)?u?t[e.indexOf("set")||!Qi(t["get"+e.substr(3)])?e:"get"+e.substr(3)](u):t[e]():h,d=Qi(h)?u?xs:Ss:Ds;if(Ji(r)&&(~r.indexOf("random(")&&(r=Bo(r)),"="===r.charAt(1)&&((c=ja(f,r)+(wo(f)||0))||0===c)&&(r=c)),!l||f!==r||fs)return isNaN(f*r)||""===r?(!h&&!(e in t)&&ya(e,r),ds.call(this,t,e,f,r,d,s||zi.stringFilter,u)):(c=new Ns(this._pt,t,e,+f||0,r-(f||0),"boolean"==typeof h?Es:Cs,0,d),u&&(c.fp=u),o&&c.modifier(o,this,t),this._pt=c)},vs=function(t,e,n,r,i,a){var o,s,u,l;if(Ea[t]&&!1!==(o=new Ea[t]).init(i,o.rawVars?e[t]:function(t,e,n,r,i){if(Qi(t)&&(t=ys(t,i,e,n,r)),!na(t)||t.style&&t.nodeType||sa(t)||oa(t))return Ji(t)?ys(t,i,e,n,r):t;var a,o={};for(a in t)o[a]=ys(t[a],i,e,n,r);return o}(e[t],r,i,a,n),n,r,a)&&(n._pt=s=new Ns(n._pt,i,t,0,1,o.render,o,0,o.priority),n!==Vi))for(u=n._ptLookup[n._targets.indexOf(i)],l=o._props.length;l--;)u[o._props[l]]=s;return o},ms=function t(e,n,r){var i,a,o,s,u,l,c,h,f,d,p,v,m,g=e.vars,y=g.ease,_=g.startAt,b=g.immediateRender,w=g.lazy,D=g.onUpdate,S=g.onUpdateParams,x=g.callbackScope,T=g.runBackwards,k=g.yoyoEase,C=g.keyframes,E=g.autoRevert,O=e._dur,A=e._startAt,M=e._targets,P=e.parent,B=P&&"nested"===P.data?P.vars.targets:M,R="auto"===e._overwrite&&!Ci,N=e.timeline;if(N&&(!C||!y)&&(y="none"),e._ease=rs(y,Hi.ease),e._yEase=k?es(rs(!0===k?y:k,Hi.ease)):0,k&&e._yoyo&&!e._repeat&&(k=e._yEase,e._yEase=e._ease,e._ease=k),e._from=!N&&!!g.runBackwards,!N||C&&!g.stagger){if(v=(h=M[0]?Ra(M[0]).harness:0)&&g[h.prop],i=Ka(g,Ta),A&&(A._zTime<0&&A.progress(1),n<0&&T&&b&&!E?A.render(-1,!0):A.revert(T&&O?Sa:Da),A._lazy=0),_){if(Ja(e._startAt=ws.set(M,Wa({data:"isStart",overwrite:!1,parent:P,immediateRender:!0,lazy:!A&&ra(w),startAt:null,delay:0,onUpdate:D,onUpdateParams:S,callbackScope:x,stagger:0},_))),e._startAt._dp=0,e._startAt._sat=e,n<0&&(Ei||!b&&!E)&&e._startAt.revert(Sa),b&&O&&n<=0&&r<=0)return void(n&&(e._zTime=n))}else if(T&&O&&!A)if(n&&(b=!1),o=Wa({overwrite:!1,data:"isFromStart",lazy:b&&!A&&ra(w),immediateRender:b,stagger:0,parent:P},i),v&&(o[h.prop]=v),Ja(e._startAt=ws.set(M,o)),e._startAt._dp=0,e._startAt._sat=e,n<0&&(Ei?e._startAt.revert(Sa):e._startAt.render(-1,!0)),e._zTime=n,b){if(!n)return}else t(e._startAt,Wi,Wi);for(e._pt=e._ptCache=0,w=O&&ra(w)||w&&!O,a=0;a<M.length;a++){if(c=(u=M[a])._gsap||Ba(M)[a]._gsap,e._ptLookup[a]=d={},Ca[c.id]&&ka.length&&Ya(),p=B===M?a:B.indexOf(u),h&&!1!==(f=new h).init(u,v||i,e,p,B)&&(e._pt=s=new Ns(e._pt,u,f.name,0,1,f.render,f,0,f.priority),f._props.forEach((function(t){d[t]=s})),f.priority&&(l=1)),!h||v)for(o in i)Ea[o]&&(f=vs(o,i,e,p,u,B))?f.priority&&(l=1):d[o]=s=ps.call(e,u,o,"get",i[o],p,B,0,g.stringFilter);e._op&&e._op[a]&&e.kill(u,e._op[a]),R&&e._pt&&(hs=e,Ai.killTweensOf(u,d,e.globalTime(n)),m=!e.parent,hs=0),e._pt&&w&&(Ca[c.id]=1)}l&&Rs(e),e._onInit&&e._onInit(e)}e._onUpdate=D,e._initted=(!e._op||e._pt)&&!m,C&&n<=0&&N.render(Ui,!0,!0)},gs=function(t,e,n,r){var i,a,o=e.ease||r||"power1.inOut";if(sa(e))a=n[t]||(n[t]=[]),e.forEach((function(t,n){return a.push({t:n/(e.length-1)*100,v:t,e:o})}));else for(i in e)a=n[i]||(n[i]=[]),"ease"===i||a.push({t:parseFloat(t),v:e[i],e:o})},ys=function(t,e,n,r,i){return Qi(t)?t.call(e,n,r,i):Ji(t)&&~t.indexOf("random(")?Bo(t):t},_s=Pa+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",bs={};Va(_s+",id,stagger,delay,duration,paused,scrollTrigger",(function(t){return bs[t]=1}));var ws=function(t){function e(e,n,r,i){var a;"number"==typeof n&&(r.duration=n,n=r,r=null);var o,s,u,l,c,h,f,d,p=(a=t.call(this,i?n:Za(n))||this).vars,v=p.duration,m=p.delay,g=p.immediateRender,y=p.stagger,_=p.overwrite,b=p.keyframes,w=p.defaults,D=p.scrollTrigger,S=p.yoyoEase,x=n.parent||Ai,T=(sa(e)||oa(e)?ta(e[0]):"length"in n)?[e]:To(e);if(a._targets=T.length?Ba(T):_a("GSAP target "+e+" not found. https://greensock.com",!zi.nullTargetWarn)||[],a._ptLookup=[],a._overwrite=_,b||y||aa(v)||aa(m)){if(n=a.vars,(o=a.timeline=new cs({data:"nested",defaults:w||{},targets:x&&"nested"===x.data?x.vars.targets:T})).kill(),o.parent=o._dp=Ti(a),o._start=0,y||aa(v)||aa(m)){if(l=T.length,f=y&&Eo(y),na(y))for(c in y)~_s.indexOf(c)&&(d||(d={}),d[c]=y[c]);for(s=0;s<l;s++)(u=Ka(n,bs)).stagger=0,S&&(u.yoyoEase=S),d&&qa(u,d),h=T[s],u.duration=+ys(v,Ti(a),s,h,T),u.delay=(+ys(m,Ti(a),s,h,T)||0)-a._delay,!y&&1===l&&u.delay&&(a._delay=m=u.delay,a._start+=m,u.delay=0),o.to(h,u,f?f(s,h,T):0),o._ease=Xo.none;o.duration()?v=m=0:a.timeline=0}else if(b){Za(Wa(o.vars.defaults,{ease:"none"})),o._ease=rs(b.ease||n.ease||"none");var k,C,E,O=0;if(sa(b))b.forEach((function(t){return o.to(T,t,">")})),o.duration();else{for(c in u={},b)"ease"===c||"easeEach"===c||gs(c,b[c],u,b.easeEach);for(c in u)for(k=u[c].sort((function(t,e){return t.t-e.t})),O=0,s=0;s<k.length;s++)(E={ease:(C=k[s]).e,duration:(C.t-(s?k[s-1].t:0))/100*v})[c]=C.v,o.to(T,E,O),O+=E.duration;o.duration()<v&&o.to({},{duration:v-o.duration()})}}v||a.duration(v=o.duration())}else a.timeline=0;return!0!==_||Ci||(hs=Ti(a),Ai.killTweensOf(T),hs=0),uo(x,Ti(a),r),n.reversed&&a.reverse(),n.paused&&a.paused(!0),(g||!v&&!b&&a._start===Fa(x._time)&&ra(g)&&eo(Ti(a))&&"nested"!==x.data)&&(a._tTime=-1e-8,a.render(Math.max(0,-m)||0)),D&&lo(Ti(a),D),a}ki(e,t);var n=e.prototype;return n.render=function(t,e,n){var r,i,a,o,s,u,l,c,h,f=this._time,d=this._tDur,p=this._dur,v=t<0,m=t>d-Wi&&!v?d:t<Wi?0:t;if(p){if(m!==this._tTime||!t||n||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==v){if(r=m,c=this.timeline,this._repeat){if(o=p+this._rDelay,this._repeat<-1&&v)return this.totalTime(100*o+t,e,n);if(r=Fa(m%o),m===d?(a=this._repeat,r=p):((a=~~(m/o))&&a===m/o&&(r=p,a--),r>p&&(r=p)),(u=this._yoyo&&1&a)&&(h=this._yEase,r=p-r),s=ro(this._tTime,o),r===f&&!n&&this._initted)return this._tTime=m,this;a!==s&&(c&&this._yEase&&ns(c,u),!this.vars.repeatRefresh||u||this._lock||(this._lock=n=1,this.render(Fa(o*a),!0).invalidate()._lock=0))}if(!this._initted){if(co(this,v?t:r,n,e,m))return this._tTime=0,this;if(f!==this._time)return this;if(p!==this._dur)return this.render(t,e,n)}if(this._tTime=m,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&&!a&&(Vo(this,"onStart"),this._tTime!==m))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&&(v&&to(this,t,0,n),Vo(this,"onUpdate")),this._repeat&&a!==s&&this.vars.onRepeat&&!e&&this.parent&&Vo(this,"onRepeat"),m!==this._tDur&&m||this._tTime!==m||(v&&!this._onUpdate&&to(this,t,0,!0),(t||!p)&&(m===this._tDur&&this._ts>0||!m&&this._ts<0)&&Ja(this,1),e||v&&!f||!(m||f||u)||(Vo(this,m===d?"onComplete":"onReverseComplete",!0),this._prom&&!(m<d&&this.timeScale()>0)&&this._prom()))}}else!function(t,e,n,r){var i,a,o,s=t.ratio,u=e<0||!e&&(!t._start&&ho(t)&&(t._initted||!fo(t))||(t._ts<0||t._dp._ts<0)&&!fo(t))?0:1,l=t._rDelay,c=0;if(l&&t._repeat&&(c=bo(0,t._tDur,e),a=ro(c,l),t._yoyo&&1&a&&(u=1-u),a!==ro(t._tTime,l)&&(s=1-u,t.vars.repeatRefresh&&t._initted&&t.invalidate())),u!==s||Ei||r||t._zTime===Wi||!e&&t._zTime){if(!t._initted&&co(t,e,r,n,c))return;for(o=t._zTime,t._zTime=e||(n?Wi:0),n||(n=e&&!o),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&&to(t,e,0,!0),t._onUpdate&&!n&&Vo(t,"onUpdate"),c&&t._repeat&&!n&&t.parent&&Vo(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===u&&(u&&Ja(t,1),n||Ei||(Vo(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){Ii||Zo.wake(),this._ts||this.play();var i=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return this._initted||ms(this,i),function(t,e,n,r,i,a,o){var s,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((s=l[c][e])&&s.d&&s.d._pt)for(s=s.d._pt;s&&s.p!==e&&s.fp!==e;)s=s._next;if(!s)return fs=1,t.vars[e]="+=0",ms(t,o),fs=0,1;h.push(s)}for(c=h.length;c--;)(s=(u=h[c])._pt||u).s=!r&&0!==r||i?s.s+(r||0)+a*s.c:r,s.c=n-s.s,u.e&&(u.e=Ia(n)+wo(u.e)),u.b&&(u.b=s.s+wo(u.b))}(this,t,e,n,r,this._ease(i/this._dur),i)?this.resetTo(t,e,n,r):(oo(this,0),this.parent||$a(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?Io(this):this;if(this.timeline){var n=this.timeline.totalDuration();return this.timeline.killTweensOf(t,e,hs&&!0!==hs.vars.overwrite)._first||Io(this),this.parent&&n!==this.timeline.totalDuration()&&po(this,this._dur*this.timeline._tDur/n,0,1),this}var r,i,a,o,s,u,l,c=this._targets,h=t?To(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),Io(this);for(r=this._op=this._op||[],"all"!==e&&(Ji(e)&&(s={},Va(e,(function(t){return s[t]=1})),e=s),e=function(t,e){var n,r,i,a,o=t[0]?Ra(t[0]).harness:0,s=o&&o.aliases;if(!s)return e;for(r in n=qa({},e),s)if(r in n)for(i=(a=s[r].split(",")).length;i--;)n[a[i]]=n[r];return n}(c,e)),l=c.length;l--;)if(~h.indexOf(c[l]))for(s in i=f[l],"all"===e?(r[l]=e,o=i,a={}):(a=r[l]=r[l]||{},o=e),o)(u=i&&i[s])&&("kill"in u.d&&!0!==u.d.kill(s)||Xa(this,u,"_pt"),delete i[s]),"all"!==a&&(a[s]=1);return this._initted&&!this._pt&&d&&Io(this),this},e.to=function(t,n){return new e(t,n,arguments[2])},e.from=function(t,e){return yo(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 yo(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 Ai.killTweensOf(t,e,n)},e}(ls);Wa(ws.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),Va("staggerTo,staggerFrom,staggerFromTo",(function(t){ws[t]=function(){var e=new cs,n=Do.call(arguments,0);return n.splice("staggerFromTo"===t?5:4,0,0),e[t].apply(e,n)}}));var Ds=function(t,e,n){return t[e]=n},Ss=function(t,e,n){return t[e](n)},xs=function(t,e,n,r){return t[e](r.fp,n)},Ts=function(t,e,n){return t.setAttribute(e,n)},ks=function(t,e){return Qi(t[e])?Ss:ea(t[e])&&t.setAttribute?Ts:Ds},Cs=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)},Os=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)},As=function(t,e){for(var n=e._pt;n;)n.r(t,n.d),n=n._next},Ms=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},Ps=function(t){for(var e,n,r=this._pt;r;)n=r._next,r.p===t&&!r.op||r.op===t?Xa(this,r,"_pt"):r.dep||(e=1),r=n;return!e},Bs=function(t,e,n,r){r.mSet(t,e,r.m.call(r.tween,n,r.mt),r)},Rs=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},Ns=function(){function t(t,e,n,r,i,a,o,s,u){this.t=e,this.s=r,this.c=i,this.p=n,this.r=a||Cs,this.d=o||this,this.set=s||Ds,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=Bs,this.m=t,this.mt=n,this.tween=e},t}();Va(Pa+"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 Ta[t]=1})),va.TweenMax=va.TweenLite=ws,va.TimelineLite=va.TimelineMax=cs,Ai=new cs({sortChildren:!1,defaults:Hi,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),zi.stringFilter=Ko;var Vs=[],Is={},Fs=[],js=0,Ls=0,Ys=function(t){return(Is[t]||Fs).map((function(t){return t()}))},zs=function(){var t=Date.now(),e=[];t-js>2&&(Ys("matchMediaInit"),Vs.forEach((function(t){var n,r,i,a,o=t.queries,s=t.conditions;for(r in o)(n=Mi.matchMedia(o[r]).matches)&&(i=1),n!==s[r]&&(s[r]=n,a=1);a&&(t.revert(),i&&e.push(t))})),Ys("matchMediaRevert"),e.forEach((function(t){return t.onMatch(t)})),js=t,Ys("matchMedia"))},Hs=function(){function t(t,e){this.selector=e&&ko(e),this.data=[],this._r=[],this.isReverted=!1,this.id=Ls++,t&&this.add(t)}var e=t.prototype;return e.add=function(t,e,n){Qi(t)&&(n=e,e=t,t=Qi);var r=this,i=function(){var t,i=Oi,a=r.selector;return i&&i!==r&&i.data.push(r),n&&(r.selector=ko(n)),Oi=r,t=e.apply(r,arguments),Qi(t)&&r._r.push(t),Oi=i,r.selector=a,r.isReverted=!1,t};return r.last=i,t===Qi?i(r):t?r[t]=i:i},e.ignore=function(t){var e=Oi;Oi=null,t(this),Oi=e},e.getTweens=function(){var e=[];return this.data.forEach((function(n){return n instanceof t?e.push.apply(e,n.getTweens()):n instanceof ws&&!(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/0})).forEach((function(e){return e.t.revert(t)})),this.data.forEach((function(e){return!(e instanceof ws)&&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)for(var i=Vs.length;i--;)Vs[i].id===this.id&&Vs.splice(i,1)},e.revert=function(t){this.kill(t||{})},t}(),Us=function(){function t(t){this.contexts=[],this.scope=t}var e=t.prototype;return e.add=function(t,e,n){na(t)||(t={matches:t});var r,i,a,o=new Hs(0,n||this.scope),s=o.conditions={};for(i in Oi&&!o.selector&&(o.selector=Oi.selector),this.contexts.push(o),e=o.add("onMatch",e),o.queries=t,t)"all"===i?a=1:(r=Mi.matchMedia(t[i]))&&(Vs.indexOf(o)<0&&Vs.push(o),(s[i]=r.matches)&&(a=1),r.addListener?r.addListener(zs):r.addEventListener("change",zs));return a&&e(o),this},e.revert=function(t){this.kill(t||{})},e.kill=function(t){this.contexts.forEach((function(e){return e.kill(t,!0)}))},t}(),Ws={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 jo(t)}))},timeline:function(t){return new cs(t)},getTweensOf:function(t,e){return Ai.getTweensOf(t,e)},getProperty:function(t,e,n,r){Ji(t)&&(t=To(t)[0]);var i=Ra(t||{}).get,a=n?Ua:Ha;return"native"===n&&(n=""),t?e?a((Ea[e]&&Ea[e].get||i)(t,e,n,r)):function(e,n,r){return a((Ea[e]&&Ea[e].get||i)(t,e,n,r))}:t},quickSetter:function(t,e,n){if((t=To(t)).length>1){var r=t.map((function(t){return Ks.quickSetter(t,e,n)})),i=r.length;return function(t){for(var e=i;e--;)r[e](t)}}t=t[0]||{};var a=Ea[e],o=Ra(t),s=o.harness&&(o.harness.aliases||{})[e]||e,u=a?function(e){var r=new a;Vi._pt=0,r.init(t,n?e+n:e,Vi,0,[t]),r.render(1,r),Vi._pt&&As(1,Vi)}:o.set(t,s);return a?u:function(e){return u(t,s,n?e+n:e,o,1)}},quickTo:function(t,e,n){var r,i=Ks.to(t,qa(((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 Ai.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=rs(t.ease,Hi.ease)),Ga(Hi,t||{})},config:function(t){return Ga(zi,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&&!Ea[t]&&!va[t]&&_a(e+" effect requires "+t+" plugin.")})),Oa[e]=function(t,e,r){return n(To(t),Wa(e||{},i),r)},a&&(cs.prototype[e]=function(t,n,r){return this.add(Oa[e](t,na(n)?n:(r=n)&&{},this),r)})},registerEase:function(t,e){Xo[t]=rs(e)},parseEase:function(t,e){return arguments.length?rs(t,e):Xo},getById:function(t){return Ai.getById(t)},exportRoot:function(t,e){void 0===t&&(t={});var n,r,i=new cs(t);for(i.smoothChildTiming=ra(t.smoothChildTiming),Ai.remove(i),i._dp=0,i._time=i._tTime=Ai._time,n=Ai._first;n;)r=n._next,!e&&!n._dur&&n instanceof ws&&n.vars.onComplete===n._targets[0]||uo(i,n,n._start-n._delay),n=r;return uo(Ai,i,0),i},context:function(t,e){return t?new Hs(t,e):Oi},matchMedia:function(t){return new Us(t)},matchMediaRefresh:function(){return Vs.forEach((function(t){var e,n,r=t.conditions;for(n in r)r[n]&&(r[n]=!1,e=1);e&&t.revert()}))||zs()},addEventListener:function(t,e){var n=Is[t]||(Is[t]=[]);~n.indexOf(e)||n.push(e)},removeEventListener:function(t,e){var n=Is[t],r=n&&n.indexOf(e);r>=0&&n.splice(r,1)},utils:{wrap:function t(e,n,r){var i=n-e;return sa(e)?Po(e,t(0,e.length),n):_o(r,(function(t){return(i+(t-e)%i)%i+e}))},wrapYoyo:function t(e,n,r){var i=n-e,a=2*i;return sa(e)?Po(e,t(0,e.length-1),n):_o(r,(function(t){return e+((t=(a+(t-e)%a)%a||0)>i?a-t:t)}))},distribute:Eo,random:Mo,snap:Ao,normalize:function(t,e,n){return Ro(t,e,0,1,n)},getUnit:wo,clamp:function(t,e,n){return _o(n,(function(n){return bo(t,e,n)}))},splitColor:Ho,toArray:To,selector:ko,mapRange:Ro,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||wo(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 o,s,u,l,c,h=Ji(e),f={};if(!0===r&&(i=1)&&(r=null),h)e={p:e},n={p:n};else if(sa(e)&&!sa(n)){for(u=[],l=e.length,c=l-2,s=1;s<l;s++)u.push(t(e[s-1],e[s]));l--,a=function(t){t*=l;var e=Math.min(c,~~t);return u[e](t-e)},r=n}else i||(e=qa(sa(e)?[]:{},e));if(!u){for(o in n)ps.call(f,e,o,"get",n[o]);a=function(t){return As(t,f)||(h?e.p:e)}}}return _o(r,a)},shuffle:Co},install:ga,effects:Oa,ticker:Zo,updateRoot:cs.updateRoot,plugins:Ea,globalTimeline:Ai,core:{PropTween:Ns,globals:ba,Tween:ws,Timeline:cs,Animation:ls,getCache:Ra,_removeLinkedListItem:Xa,reverting:function(){return Ei},context:function(t){return t&&Oi&&(Oi.data.push(t),t._ctx=Oi),Oi},suppressOverwrites:function(t){return Ci=t}}};Va("to,from,fromTo,delayedCall,set,killTweensOf",(function(t){return Ws[t]=ws[t]})),Zo.add(cs.updateRoot),Vi=Ws.to({},{duration:0});var qs=function(t,e){for(var n=t._pt;n&&n.p!==e&&n.op!==e&&n.fp!==e;)n=n._next;return n},Gs=function(t,e){return{name:t,rawVars:1,init:function(t,n,r){r._onInit=function(t){var r,i;if(Ji(n)&&(r={},Va(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=qs(i,n)),i&&i.modifier&&i.modifier(e[n],t,a[r],n))}(t,n)}}}},Ks=Ws.registerPlugin({name:"attr",init:function(t,e,n,r,i){var a,o,s;for(a in this.tween=n,e)s=t.getAttribute(a)||"",(o=this.add(t,"setAttribute",(s||0)+"",e[a],r,i,0,0,a)).op=a,o.b=s,this._props.push(a)},render:function(t,e){for(var n=e._pt;n;)Ei?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)}},Gs("roundProps",Oo),Gs("modifiers"),Gs("snap",Ao))||Ws;ws.version=cs.version=Ks.version="3.12.2",Ri=1,ia()&&$o(),Xo.Power0,Xo.Power1,Xo.Power2,Xo.Power3,Xo.Power4,Xo.Linear,Xo.Quad,Xo.Cubic,Xo.Quart,Xo.Quint,Xo.Strong,Xo.Elastic,Xo.Back,Xo.SteppedEase,Xo.Bounce,Xo.Sine,Xo.Expo,Xo.Circ;
42
42
  /*!
43
43
  * CSSPlugin 3.12.2
44
44
  * https://greensock.com
@@ -48,5 +48,5 @@ function(t){var e=n,r=e.lib,i=r.WordArray,a=r.Hasher,o=e.algo,s=i.create([0,1,2,
48
48
  * Club GreenSock members, the agreement issued with that membership.
49
49
  * @author: Jack Doyle, jack@greensock.com
50
50
  */
51
- var Ks,Zs,$s,Xs,Js,Qs,tu,eu,nu={},ru=180/Math.PI,iu=Math.PI/180,au=Math.atan2,ou=/([A-Z])/g,su=/(left|right|width|margin|padding|x)/i,uu=/[\s,\(]\S/,lu={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},cu=function(t,e){return e.set(e.t,e.p,Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)},hu=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)},fu=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)},du=function(t,e){var n=e.s+e.c*t;e.set(e.t,e.p,~~(n+(n<0?-.5:.5))+e.u,e)},pu=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},vu=function(t,e){return e.set(e.t,e.p,1!==t?e.b:e.e,e)},mu=function(t,e,n){return t.style[e]=n},gu=function(t,e,n){return t.style.setProperty(e,n)},yu=function(t,e,n){return t._gsap[e]=n},_u=function(t,e,n){return t._gsap.scaleX=t._gsap.scaleY=n},bu=function(t,e,n,r,i){var a=t._gsap;a.scaleX=a.scaleY=n,a.renderTransform(i,a)},wu=function(t,e,n,r,i){var a=t._gsap;a[e]=n,a.renderTransform(i,a)},Du="transform",Su=Du+"Origin",xu=function t(e,n){var r=this,i=this.target,a=i.style;if(e in nu&&a){if(this.tfm=this.tfm||{},"transform"===e)return lu.transform.split(",").forEach((function(e){return t.call(r,e,n)}));if(~(e=lu[e]||e).indexOf(",")?e.split(",").forEach((function(t){return r.tfm[t]=zu(i,t)})):this.tfm[e]=i._gsap.x?i._gsap[e]:zu(i,e),this.props.indexOf(Du)>=0)return;i._gsap.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(Su,n,"")),e=Du}(a||n)&&this.props.push(e,n,a[e])},Tu=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},ku=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].substr(0,2)?n[t]:n[t].replace(ou,"-$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=tu())&&t.isStart||i[Du]||(Tu(i),a.uncache=1)}},Cu=function(t,e){var n={target:t,props:[],revert:ku,save:xu};return t._gsap||Gs.core.getCache(t),e&&e.split(",").forEach((function(t){return n.save(t)})),n},Eu=function(t,e){var n=Zs.createElementNS?Zs.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):Zs.createElement(t);return n.style?n:Zs.createElement(t)},Ou=function t(e,n,r){var i=getComputedStyle(e);return i[n]||i.getPropertyValue(n.replace(ou,"-$1").toLowerCase())||i.getPropertyValue(n)||!r&&t(e,Mu(n)||n,1)||""},Au="O,Moz,ms,Ms,Webkit".split(","),Mu=function(t,e,n){var r=(e||Js).style,i=5;if(t in r&&!n)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);i--&&!(Au[i]+t in r););return i<0?null:(3===i?"ms":i>=0?Au[i]:"")+t},Pu=function(){"undefined"!=typeof window&&window.document&&(Ks=window,Zs=Ks.document,$s=Zs.documentElement,Js=Eu("div")||{style:{}},Eu("div"),Du=Mu(Du),Su=Du+"Origin",Js.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",eu=!!Mu("perspective"),tu=Gs.core.reverting,Xs=1)},Bu=function t(e){var n,r=Eu("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=this.parentNode,a=this.nextSibling,o=this.style.cssText;if($s.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)),$s.removeChild(r),this.style.cssText=o,n},Ru=function(t,e){for(var n=e.length;n--;)if(t.hasAttribute(e[n]))return t.getAttribute(e[n])},Nu=function(t){var e;try{e=t.getBBox()}catch(n){e=Bu.call(t,!0)}return e&&(e.width||e.height)||t.getBBox===Bu||(e=Bu.call(t,!0)),!e||e.width||e.x||e.y?e:{x:+Ru(t,["x","cx","x1"])||0,y:+Ru(t,["y","cy","y1"])||0,width:0,height:0}},Vu=function(t){return!(!t.getCTM||t.parentNode&&!t.ownerSVGElement||!Nu(t))},Iu=function(t,e){if(e){var n=t.style;e in nu&&e!==Su&&(e=Du),n.removeProperty?("ms"!==e.substr(0,2)&&"webkit"!==e.substr(0,6)||(e="-"+e),n.removeProperty(e.replace(ou,"-$1").toLowerCase())):n.removeAttribute(e)}},Fu=function(t,e,n,r,i,a){var o=new Rs(t._pt,e,n,0,1,a?vu:pu);return t._pt=o,o.b=r,o.e=i,t._props.push(n),o},ju={deg:1,rad:1,turn:1},Lu={grid:1,flex:1},Yu=function t(e,n,r,i){var a,o,s,u,l=parseFloat(r)||0,c=(r+"").trim().substr((l+"").length)||"px",h=Js.style,f=su.test(n),d="svg"===e.tagName.toLowerCase(),p=(d?"client":"offset")+(f?"Width":"Height"),v=100,m="px"===i,g="%"===i;return i===c||!l||ju[i]||ju[c]?l:("px"!==c&&!m&&(l=t(e,n,r,"px")),u=e.getCTM&&Vu(e),!g&&"%"!==c||!nu[n]&&!~n.indexOf("adius")?(h[f?"width":"height"]=v+(m?c:i),o=~n.indexOf("adius")||"em"===i&&e.appendChild&&!d?e:e.parentNode,u&&(o=(e.ownerSVGElement||{}).parentNode),o&&o!==Zs&&o.appendChild||(o=Zs.body),(s=o._gsap)&&g&&s.width&&f&&s.time===Ko.time&&!s.uncache?Va(l/s.width*v):((g||"%"===c)&&!Lu[Ou(o,"display")]&&(h.position=Ou(e,"position")),o===e&&(h.position="static"),o.appendChild(Js),a=Js[p],o.removeChild(Js),h.position="absolute",f&&g&&((s=Ba(o)).time=Ko.time,s.width=o[p]),Va(m?a*l/v:a&&l?v/a*l:0))):(a=u?e.getBBox()[f?"width":"height"]:e[p],Va(g?l/a*v:l/100*a)))},zu=function(t,e,n,r){var i;return Xs||Pu(),e in lu&&"transform"!==e&&~(e=lu[e]).indexOf(",")&&(e=e.split(",")[0]),nu[e]&&"transform"!==e?(i=Qu(t,r),i="transformOrigin"!==e?i[e]:i.svg?i.origin:tl(Ou(t,Su))+" "+i.zOrigin+"px"):(!(i=t.style[e])||"auto"===i||r||~(i+"").indexOf("calc("))&&(i=qu[e]&&qu[e](t,e,n)||Ou(t,e)||Ra(t,e)||("opacity"===e?1:0)),n&&!~(i+"").trim().indexOf(" ")?Yu(t,e,i,n)+n:i},Hu=function(t,e,n,r){if(!n||"none"===n){var i=Mu(e,t,1),a=i&&Ou(t,i,1);a&&a!==n?(e=i,n=a):"borderColor"===e&&(n=Ou(t,"borderTopColor"))}var o,s,u,l,c,h,f,d,p,v,m,g=new Rs(this._pt,t.style,e,0,1,Es),y=0,_=0;if(g.b=n,g.e=r,n+="","auto"===(r+="")&&(t.style[e]=r,r=Ou(t,e)||r,t.style[e]=n),Go(o=[n,r]),r=o[1],u=(n=o[0]).match(la)||[],(r.match(la)||[]).length){for(;s=la.exec(r);)f=s[0],p=r.substring(y,s.index),c?c=(c+1)%5:"rgba("!==p.substr(-5)&&"hsla("!==p.substr(-5)||(c=1),f!==(h=u[_++]||"")&&(l=parseFloat(h)||0,m=h.substr((l+"").length),"="===f.charAt(1)&&(f=Fa(l,f)+m),d=parseFloat(f),v=f.substr((d+"").length),y=la.lastIndex-v.length,v||(v=v||Yi.units[e]||m,y===r.length&&(r+=v,g.e+=v)),m!==v&&(l=Yu(t,e,h,v)||0),g._pt={_next:g._pt,p:p||1===_?p:",",s:l,c:d-l,m:c&&c<4||"zIndex"===e?Math.round:0});g.c=y<r.length?r.substring(y,r.length):""}else g.r="display"===e&&"none"===r?vu:pu;return ha.test(r)&&(g.e=0),this._pt=g,g},Uu={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},Wu=function(t,e){if(e.tween&&e.tween._time===e.tween._dur){var n,r,i,a=e.t,o=a.style,s=e.u,u=a._gsap;if("all"===s||!0===s)o.cssText="",r=1;else for(i=(s=s.split(",")).length;--i>-1;)n=s[i],nu[n]&&(r=1,n="transformOrigin"===n?Su:Du),Iu(a,n);r&&(Iu(a,Du),u&&(u.svg&&a.removeAttribute("transform"),Qu(a,1),u.uncache=1,Tu(o)))}},qu={clearProps:function(t,e,n,r,i){if("isFromStart"!==i.data){var a=t._pt=new Rs(t._pt,e,n,0,0,Wu);return a.u=r,a.pr=-10,a.tween=i,t._props.push(n),1}}},Gu=[1,0,0,1,0,0],Ku={},Zu=function(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t},$u=function(t){var e=Ou(t,Du);return Zu(e)?Gu:e.substr(7).match(ua).map(Va)},Xu=function(t,e){var n,r,i,a,o=t._gsap||Ba(t),s=t.style,u=$u(t);return o.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(",")?Gu:u:(u!==Gu||t.offsetParent||t===$s||o.svg||(i=s.display,s.display="block",(n=t.parentNode)&&t.offsetParent||(a=1,r=t.nextElementSibling,$s.appendChild(t)),u=$u(t),i?s.display=i:Iu(t,"display"),a&&(r?n.insertBefore(t,r):n?n.appendChild(t):$s.removeChild(t))),e&&u.length>6?[u[0],u[1],u[4],u[5],u[12],u[13]]:u)},Ju=function(t,e,n,r,i,a){var o,s,u,l=t._gsap,c=i||Xu(t,!0),h=l.xOrigin||0,f=l.yOrigin||0,d=l.xOffset||0,p=l.yOffset||0,v=c[0],m=c[1],g=c[2],y=c[3],_=c[4],b=c[5],w=e.split(" "),D=parseFloat(w[0])||0,S=parseFloat(w[1])||0;n?c!==Gu&&(s=v*y-m*g)&&(u=D*(-m/s)+S*(v/s)-(v*b-m*_)/s,D=D*(y/s)+S*(-g/s)+(g*b-y*_)/s,S=u):(D=(o=Nu(t)).x+(~w[0].indexOf("%")?D/100*o.width:D),S=o.y+(~(w[1]||w[0]).indexOf("%")?S/100*o.height:S)),r||!1!==r&&l.smooth?(_=D-h,b=S-f,l.xOffset=d+(_*v+b*g)-_,l.yOffset=p+(_*m+b*y)-b):l.xOffset=l.yOffset=0,l.xOrigin=D,l.yOrigin=S,l.smooth=!!r,l.origin=e,l.originIsAbsolute=!!n,t.style[Su]="0px 0px",a&&(Fu(a,l,"xOrigin",h,D),Fu(a,l,"yOrigin",f,S),Fu(a,l,"xOffset",d,l.xOffset),Fu(a,l,"yOffset",p,l.yOffset)),t.setAttribute("data-svg-origin",D+" "+S)},Qu=function(t,e){var n=t._gsap||new ss(t);if("x"in n&&!e&&!n.uncache)return n;var r,i,a,o,s,u,l,c,h,f,d,p,v,m,g,y,_,b,w,D,S,x,T,k,C,E,O,A,M,P,B,R,N=t.style,V=n.scaleX<0,I="px",F="deg",j=getComputedStyle(t),L=Ou(t,Su)||"0";return r=i=a=u=l=c=h=f=d=0,o=s=1,n.svg=!(!t.getCTM||!Vu(t)),j.translate&&("none"===j.translate&&"none"===j.scale&&"none"===j.rotate||(N[Du]=("none"!==j.translate?"translate3d("+(j.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+("none"!==j.rotate?"rotate("+j.rotate+") ":"")+("none"!==j.scale?"scale("+j.scale.split(" ").join(",")+") ":"")+("none"!==j[Du]?j[Du]:"")),N.scale=N.rotate=N.translate="none"),m=Xu(t,n.svg),n.svg&&(n.uncache?(C=t.getBBox(),L=n.xOrigin-C.x+"px "+(n.yOrigin-C.y)+"px",k=""):k=!e&&t.getAttribute("data-svg-origin"),Ju(t,k||L,!!k||n.originIsAbsolute,!1!==n.smooth,m)),p=n.xOrigin||0,v=n.yOrigin||0,m!==Gu&&(b=m[0],w=m[1],D=m[2],S=m[3],r=x=m[4],i=T=m[5],6===m.length?(o=Math.sqrt(b*b+w*w),s=Math.sqrt(S*S+D*D),u=b||w?au(w,b)*ru:0,(h=D||S?au(D,S)*ru+u:0)&&(s*=Math.abs(Math.cos(h*iu))),n.svg&&(r-=p-(p*b+v*D),i-=v-(p*w+v*S))):(R=m[6],P=m[7],O=m[8],A=m[9],M=m[10],B=m[11],r=m[12],i=m[13],a=m[14],l=(g=au(R,M))*ru,g&&(k=x*(y=Math.cos(-g))+O*(_=Math.sin(-g)),C=T*y+A*_,E=R*y+M*_,O=x*-_+O*y,A=T*-_+A*y,M=R*-_+M*y,B=P*-_+B*y,x=k,T=C,R=E),c=(g=au(-D,M))*ru,g&&(y=Math.cos(-g),B=S*(_=Math.sin(-g))+B*y,b=k=b*y-O*_,w=C=w*y-A*_,D=E=D*y-M*_),u=(g=au(w,b))*ru,g&&(k=b*(y=Math.cos(g))+w*(_=Math.sin(g)),C=x*y+T*_,w=w*y-b*_,T=T*y-x*_,b=k,x=C),l&&Math.abs(l)+Math.abs(u)>359.9&&(l=u=0,c=180-c),o=Va(Math.sqrt(b*b+w*w+D*D)),s=Va(Math.sqrt(T*T+R*R)),g=au(x,T),h=Math.abs(g)>2e-4?g*ru:0,d=B?1/(B<0?-B:B):0),n.svg&&(k=t.getAttribute("transform"),n.forceCSS=t.setAttribute("transform","")||!Zu(Ou(t,Du)),k&&t.setAttribute("transform",k))),Math.abs(h)>90&&Math.abs(h)<270&&(V?(o*=-1,h+=u<=0?180:-180,u+=u<=0?180:-180):(s*=-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)+I,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)+I,n.z=a+I,n.scaleX=Va(o),n.scaleY=Va(s),n.rotation=Va(u)+F,n.rotationX=Va(l)+F,n.rotationY=Va(c)+F,n.skewX=h+F,n.skewY=f+F,n.transformPerspective=d+I,(n.zOrigin=parseFloat(L.split(" ")[2])||0)&&(N[Su]=tl(L)),n.xOffset=n.yOffset=0,n.force3D=Yi.force3D,n.renderTransform=n.svg?sl:eu?ol:nl,n.uncache=0,n},tl=function(t){return(t=t.split(" "))[0]+" "+t[1]},el=function(t,e,n){var r=bo(e);return Va(parseFloat(e)+parseFloat(Yu(t,"x",n+"px",r)))+r},nl=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,ol(t,e)},rl="0deg",il="0px",al=") ",ol=function(t,e){var n=e||this,r=n.xPercent,i=n.yPercent,a=n.x,o=n.y,s=n.z,u=n.rotation,l=n.rotationY,c=n.rotationX,h=n.skewX,f=n.skewY,d=n.scaleX,p=n.scaleY,v=n.transformPerspective,m=n.force3D,g=n.target,y=n.zOrigin,_="",b="auto"===m&&t&&1!==t||!0===m;if(y&&(c!==rl||l!==rl)){var w,D=parseFloat(l)*iu,S=Math.sin(D),x=Math.cos(D);D=parseFloat(c)*iu,w=Math.cos(D),a=el(g,a,S*w*-y),o=el(g,o,-Math.sin(D)*-y),s=el(g,s,x*w*-y+y)}v!==il&&(_+="perspective("+v+al),(r||i)&&(_+="translate("+r+"%, "+i+"%) "),(b||a!==il||o!==il||s!==il)&&(_+=s!==il||b?"translate3d("+a+", "+o+", "+s+") ":"translate("+a+", "+o+al),u!==rl&&(_+="rotate("+u+al),l!==rl&&(_+="rotateY("+l+al),c!==rl&&(_+="rotateX("+c+al),h===rl&&f===rl||(_+="skew("+h+", "+f+al),1===d&&1===p||(_+="scale("+d+", "+p+al),g.style[Du]=_||"translate(0, 0)"},sl=function(t,e){var n,r,i,a,o,s=e||this,u=s.xPercent,l=s.yPercent,c=s.x,h=s.y,f=s.rotation,d=s.skewX,p=s.skewY,v=s.scaleX,m=s.scaleY,g=s.target,y=s.xOrigin,_=s.yOrigin,b=s.xOffset,w=s.yOffset,D=s.forceCSS,S=parseFloat(c),x=parseFloat(h);f=parseFloat(f),d=parseFloat(d),(p=parseFloat(p))&&(d+=p=parseFloat(p),f+=p),f||d?(f*=iu,d*=iu,n=Math.cos(f)*v,r=Math.sin(f)*v,i=Math.sin(f-d)*-m,a=Math.cos(f-d)*m,d&&(p*=iu,o=Math.tan(d-p),i*=o=Math.sqrt(1+o*o),a*=o,p&&(o=Math.tan(p),n*=o=Math.sqrt(1+o*o),r*=o)),n=Va(n),r=Va(r),i=Va(i),a=Va(a)):(n=v,a=m,r=i=0),(S&&!~(c+"").indexOf("px")||x&&!~(h+"").indexOf("px"))&&(S=Yu(g,"x",c,"px"),x=Yu(g,"y",h,"px")),(y||_||b||w)&&(S=Va(S+y-(y*n+_*i)+b),x=Va(x+_-(y*r+_*a)+w)),(u||l)&&(o=g.getBBox(),S=Va(S+u/100*o.width),x=Va(x+l/100*o.height)),o="matrix("+n+","+r+","+i+","+a+","+S+","+x+")",g.setAttribute("transform",o),D&&(g.style[Du]=o)},ul=function(t,e,n,r,i){var a,o,s=360,u=Xi(i),l=parseFloat(i)*(u&&~i.indexOf("rad")?ru:1)-r,c=r+l+"deg";return u&&("short"===(a=i.split("_")[1])&&(l%=s)!==l%180&&(l+=l<0?s:-360),"cw"===a&&l<0?l=(l+36e9)%s-~~(l/s)*s:"ccw"===a&&l>0&&(l=(l-36e9)%s-~~(l/s)*s)),t._pt=o=new Rs(t._pt,e,n,r,l,hu),o.e=c,o.u="deg",t._props.push(n),o},ll=function(t,e){for(var n in e)t[n]=e[n];return t},cl=function(t,e,n){var r,i,a,o,s,u,l,c=ll({},n._gsap),h=n.style;for(i in c.svg?(a=n.getAttribute("transform"),n.setAttribute("transform",""),h[Du]=e,r=Qu(n,1),Iu(n,Du),n.setAttribute("transform",a)):(a=getComputedStyle(n)[Du],h[Du]=e,r=Qu(n,1),h[Du]=a),nu)(a=c[i])!==(o=r[i])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(i)<0&&(s=bo(a)!==(l=bo(o))?Yu(n,i,a,l):parseFloat(a),u=parseFloat(o),t._pt=new Rs(t._pt,r,i,s,u-s,cu),t._pt.u=l||0,t._props.push(i));ll(r,c)};Na("padding,margin,Width,Radius",(function(t,e){var n="Top",r="Right",i="Bottom",a="Left",o=(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}));qu[e>1?"border"+t:t]=function(t,e,n,r,i){var a,s;if(arguments.length<4)return a=o.map((function(e){return zu(t,e,n)})),5===(s=a.join(" ")).split(a[0]).length?a[0]:s;a=(r+"").split(" "),s={},o.forEach((function(t,e){return s[t]=a[e]=a[e]||a[(e-1)/2|0]})),t.init(e,s,i)}}));var hl,fl,dl,pl={name:"css",register:Pu,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,n,r,i){var a,o,s,u,l,c,h,f,d,p,v,m,g,y,_,b,w,D,S,x,T=this._props,k=t.style,C=n.vars.startAt;for(h in Xs||Pu(),this.styles=this.styles||Cu(t),b=this.styles.props,this.tween=n,e)if("autoRound"!==h&&(o=e[h],!Ca[h]||!ps(h,e,n,r,t,i)))if(l=typeof o,c=qu[h],"function"===l&&(l=typeof(o=o.call(n,r,t,i))),"string"===l&&~o.indexOf("random(")&&(o=Po(o)),c)c(this,t,h,o,n)&&(_=1);else if("--"===h.substr(0,2))a=(getComputedStyle(t).getPropertyValue(h)+"").trim(),o+="",Wo.lastIndex=0,Wo.test(a)||(f=bo(a),d=bo(o)),d?f!==d&&(a=Yu(t,h,a,d)+d):f&&(o+=f),this.add(k,"setProperty",a,o,r,i,0,0,h),T.push(h),b.push(h,0,k[h]);else if("undefined"!==l){if(C&&h in C?(a="function"==typeof C[h]?C[h].call(n,r,t,i):C[h],Xi(a)&&~a.indexOf("random(")&&(a=Po(a)),bo(a+"")||(a+=Yi.units[h]||bo(zu(t,h))||""),"="===(a+"").charAt(1)&&(a=zu(t,h))):a=zu(t,h),u=parseFloat(a),(p="string"===l&&"="===o.charAt(1)&&o.substr(0,2))&&(o=o.substr(2)),s=parseFloat(o),h in lu&&("autoAlpha"===h&&(1===u&&"hidden"===zu(t,"visibility")&&s&&(u=0),b.push("visibility",0,k.visibility),Fu(this,k,"visibility",u?"inherit":"hidden",s?"inherit":"hidden",!s)),"scale"!==h&&"transform"!==h&&~(h=lu[h]).indexOf(",")&&(h=h.split(",")[0])),v=h in nu)if(this.styles.save(h),m||((g=t._gsap).renderTransform&&!e.parseTransform||Qu(t,e.parseTransform),y=!1!==e.smoothOrigin&&g.smooth,(m=this._pt=new Rs(this._pt,k,Du,0,1,g.renderTransform,g,0,-1)).dep=1),"scale"===h)this._pt=new Rs(this._pt,g,"scaleY",g.scaleY,(p?Fa(g.scaleY,p+s):s)-g.scaleY||0,cu),this._pt.u=0,T.push("scaleY",h),h+="X";else{if("transformOrigin"===h){b.push(Su,0,k[Su]),D=void 0,S=void 0,x=void 0,D=(w=o).split(" "),S=D[0],x=D[1]||"50%","top"!==S&&"bottom"!==S&&"left"!==x&&"right"!==x||(w=S,S=x,x=w),D[0]=Uu[S]||S,D[1]=Uu[x]||x,o=D.join(" "),g.svg?Ju(t,o,0,y,0,this):((d=parseFloat(o.split(" ")[2])||0)!==g.zOrigin&&Fu(this,g,"zOrigin",g.zOrigin,d),Fu(this,k,h,tl(a),tl(o)));continue}if("svgOrigin"===h){Ju(t,o,1,y,0,this);continue}if(h in Ku){ul(this,g,h,u,p?Fa(u,p+o):o);continue}if("smoothOrigin"===h){Fu(this,g,"smooth",g.smooth,o);continue}if("force3D"===h){g[h]=o;continue}if("transform"===h){cl(this,o,t);continue}}else h in k||(h=Mu(h)||h);if(v||(s||0===s)&&(u||0===u)&&!uu.test(o)&&h in k)s||(s=0),(f=(a+"").substr((u+"").length))!==(d=bo(o)||(h in Yi.units?Yi.units[h]:f))&&(u=Yu(t,h,a,d)),this._pt=new Rs(this._pt,v?g:k,h,u,(p?Fa(u,p+s):s)-u,v||"px"!==d&&"zIndex"!==h||!1===e.autoRound?cu:du),this._pt.u=d||0,f!==d&&"%"!==d&&(this._pt.b=a,this._pt.r=fu);else if(h in k)Hu.call(this,t,h,a,p?p+o:o);else if(h in t)this.add(t,h,a||t[h],p?p+o:o,r,i);else if("parseTransform"!==h){ga(h,o);continue}v||(h in k?b.push(h,0,k[h]):b.push(h,1,a||t[h])),T.push(h)}_&&Bs(this)},render:function(t,e){if(e.tween._time||!tu())for(var n=e._pt;n;)n.r(t,n.d),n=n._next;else e.styles.revert()},get:zu,aliases:lu,getSetter:function(t,e,n){var r=lu[e];return r&&r.indexOf(",")<0&&(e=r),e in nu&&e!==Su&&(t._gsap.x||zu(t,"x"))?n&&Qs===n?"scale"===e?_u:yu:(Qs=n||{})&&("scale"===e?bu:wu):t.style&&!ta(t.style[e])?mu:~e.indexOf("-")?gu:Ts(t,e)},core:{_removeProperty:Iu,_getMatrix:Xu}};Gs.utils.checkPrefix=Mu,Gs.core.getStyleSaver=Cu,dl=Na((hl="x,y,z,scale,scaleX,scaleY,xPercent,yPercent")+","+(fl="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",(function(t){nu[t]=1})),Na(fl,(function(t){Yi.units[t]="deg",Ku[t]=1})),lu[dl[13]]=hl+","+fl,Na("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",(function(t){var e=t.split(":");lu[e[1]]=dl[e[0]]})),Na("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",(function(t){Yi.units[t]="px"})),Gs.registerPlugin(pl);var vl=Gs.registerPlugin(pl)||Gs;vl.core.Tween;var ml=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=vl.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 o=this.filterData(t,a);this.goAnimationParams=e;for(var s=0;s<o.length;s++){var u=o[s];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/o.length,f=this._creatTl("#wrap"+u.cid);this._add(f,s*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 o=this.splitArrayForCenter(t,"left");n=[i.default.orderBy(o.true,["center.x"],["asc"]),i.default.orderBy(o.false,["center.x"],["desc"])]}else if("spaceBetween"==e){o=this.splitArrayForCenter(t,"left");n=[i.default.orderBy(o.true,["center.x"],["desc"]),i.default.orderBy(o.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,o=Math.abs(n-i),s=Math.abs(r-a);return Math.sqrt(o*o+s*s)},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),o=r.getSpacing(a,n);t.spacing=o}})),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=vl.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,o=e.value;return o&&o.length&&o.forEach((function(t){t.delay=n||0,t.repeat=i||0})),vl[a](t,r,o[0],o[1])},t.prototype.in=function(){},t.prototype.out=function(){},t}(),gl=ml.getInstance();var yl=function(){function t(t){this.root=null,this.vuex=Si.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 o=0;o<t.length;o++){if(t[o].cid==e){r=t[o],n&&i.default.remove(t,(function(t){return t.cid==e}));break}if(t[o].children)a(t[o].children);else if(t[o].dynamicChildren){if(t[o].dynamicChildren instanceof Map){for(var s=Array.from(t[o].dynamicChildren),u=0;u<s.length;u++)if(s[u]instanceof Array){var l=s[u][1];a(l)}}else if(t[o].dynamicChildren instanceof Array)for(s=t[o].dynamicChildren,u=0;u<s.length;u++)s[u]instanceof Array&&(l=s[u][1],a(l))}else t[o].stateChildren&&a(t[o].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.comToggle=function(t){return this.vuex.callMutation("comToggle",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.updateComp=function(t){return this.vuex.callMutation("updatComs",t)},t.prototype.changeDynamicState=function(t){return this.vuex.callMutation("changeDynamicState",t)},t.prototype.pageChange=function(t){return this.vuex.callMutation("setPageId",t)},t.prototype.pagePush=function(t,e,n){return void 0===n&&(n={}),this.vuex.callMutation("pagePush",{type:t,value:e,option:n})},t.prototype.activeState=function(t,e){return this.vuex.callMutation("setDynamicActive",{cid:t,name:e})},t.prototype.getVars=function(t){var e=this.vuex.callState("globalVars");return t&&t(e),e},t.prototype.setVars=function(t){return this.vuex.callAction("goEditVar",t)},t}(),_l=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}(yl),bl=function(){function t(t){this.$action=new wl(t),this.instance=new _l(t)}return t.prototype.getGlobalvars=function(){for(var t=this.instance.GlobalVars,e=t.map((function(t){return t.mapField})),n={},r=function(e){var r=t.find((function(t){return t.mapField==e}));n[e]=r.value},i=0,a=e;i<a.length;i++){r(a[i])}var o=this.instance;return new Proxy(n,{has:function(t,e){return!e&&e in t},get:function(t,e){if(e in t)return t[e];throw new ReferenceError('Prop name "'+e+'" does not exist.')},set:function(t,e,n){if(!t[e])return console.log("变量不存在/不能被修改"),!1;if(t[e]=n,!e||"string"!=typeof e)throw new Error("Invalid key");o.setGlobalVar({key:e,value:n})}})},Object.defineProperty(t.prototype,"globalvars",{get:function(){return this.getGlobalvars()},enumerable:!1,configurable:!0}),t}(),wl=function(t){var e=this;this.setGlobalVars=function(t,n){if(!t||"string"!=typeof t)throw new Error("Invalid key");e.instance.setGlobalVar({key:t,value:n})},this.skipTo=function(t){if(!t||0===Object.keys(t).length)throw new Error("事件跳转发生错误:参数:".concat(t," 不正确,请正确填写!doc: https://anov.cucloud.cn/anov-go-doc/"));if(t.name)e.instance.pagePush("name",t.name);else if(t.path)e.instance.pagePush("path",t.path);else{if(!t.url)throw new Error("事件跳转发生错误:参数:".concat(t," 不正确,请正确填写!doc: https://anov.cucloud.cn/anov-go-doc/"));window.open(t.url)}},this.toggle=function(t){if(t)if("string"!=typeof t&&"number"!=typeof t)if(Array.isArray(t))for(var n=0,r=t;n<r.length;n++){var i=r[n];"string"==typeof i||"number"==typeof i?e.instance.comToggle(i):console.warn("请传入正确的参数!")}else console.warn("请传入正确的参数!");else e.instance.comToggle(t);else console.warn("请传入正确的参数!")},this.show=function(t){if(t)if("string"!=typeof t&&"number"!=typeof t){if(Array.isArray(t))for(var n=0,r=t;n<r.length;n++){var i=r[n];"string"==typeof i||"number"==typeof i?e.instance._showComponent(i.toString()):console.warn("请传入正确的参数!")}}else e.instance._showComponent(t.toString());else console.warn("请传入正确的参数!")},this.hide=function(t){if(t)if("string"!=typeof t&&"number"!=typeof t){if(Array.isArray(t))for(var n=0,r=t;n<r.length;n++){var i=r[n];"string"==typeof i||"number"==typeof i?e.instance._hideComponent(i):console.warn("请传入正确的参数!")}}else e.instance._hideComponent(t);else console.warn("请传入正确的参数!")},this.activeState=function(t,n){e.instance.activeState(t,n)},this.updateComp=function(t){if(t)if("string"!=typeof t&&"number"!=typeof t){if(Array.isArray(t))for(var n=0,r=t;n<r.length;n++){var i=r[n];"string"==typeof i||"number"==typeof i?e.instance.updateComp(i):console.warn("请传入正确的参数!")}}else e.instance.updateComp(t);else console.warn("请传入正确的参数!")},this.instance=new _l(t)};t.Go=Si,t.GoAnimation=gl,t.Tool=Ir,t.createComponent=function(t,e){return e&&t?Si.getInstance().render(t,e):t?Si.getInstance().render(t):void 0},t.createComponentForParent=function(t,e,n){return void 0!==n&&t?Si.getInstance().renderForParent(t,e,n):t?Si.getInstance().renderForParent(t,e):void 0},t.emitEvent=function(t,e){return Si.getInstance().emitEvent(t,e||function(){})},t.fxhr=ni,t.getData=jr,t.getDataForRelease=function(t,e){return jr(t,"GET",null,e).then((function(t){var e=JSON.parse(t.data.caseData);return Si.getInstance().reversal(e),t}))},t.log=function(){},t.refreshData=ei,t.run=function(t){return new bl(t)},t.store=fi,Object.defineProperty(t,"__esModule",{value:!0})}));
51
+ var Zs,$s,Xs,Js,Qs,tu,eu,nu,ru={},iu=180/Math.PI,au=Math.PI/180,ou=Math.atan2,su=/([A-Z])/g,uu=/(left|right|width|margin|padding|x)/i,lu=/[\s,\(]\S/,cu={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},hu=function(t,e){return e.set(e.t,e.p,Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)},fu=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)},du=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)},pu=function(t,e){var n=e.s+e.c*t;e.set(e.t,e.p,~~(n+(n<0?-.5:.5))+e.u,e)},vu=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},mu=function(t,e){return e.set(e.t,e.p,1!==t?e.b:e.e,e)},gu=function(t,e,n){return t.style[e]=n},yu=function(t,e,n){return t.style.setProperty(e,n)},_u=function(t,e,n){return t._gsap[e]=n},bu=function(t,e,n){return t._gsap.scaleX=t._gsap.scaleY=n},wu=function(t,e,n,r,i){var a=t._gsap;a.scaleX=a.scaleY=n,a.renderTransform(i,a)},Du=function(t,e,n,r,i){var a=t._gsap;a[e]=n,a.renderTransform(i,a)},Su="transform",xu=Su+"Origin",Tu=function t(e,n){var r=this,i=this.target,a=i.style;if(e in ru&&a){if(this.tfm=this.tfm||{},"transform"===e)return cu.transform.split(",").forEach((function(e){return t.call(r,e,n)}));if(~(e=cu[e]||e).indexOf(",")?e.split(",").forEach((function(t){return r.tfm[t]=Hu(i,t)})):this.tfm[e]=i._gsap.x?i._gsap[e]:Hu(i,e),this.props.indexOf(Su)>=0)return;i._gsap.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(xu,n,"")),e=Su}(a||n)&&this.props.push(e,n,a[e])},ku=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},Cu=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].substr(0,2)?n[t]:n[t].replace(su,"-$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=eu())&&t.isStart||i[Su]||(ku(i),a.uncache=1)}},Eu=function(t,e){var n={target:t,props:[],revert:Cu,save:Tu};return t._gsap||Ks.core.getCache(t),e&&e.split(",").forEach((function(t){return n.save(t)})),n},Ou=function(t,e){var n=$s.createElementNS?$s.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):$s.createElement(t);return n.style?n:$s.createElement(t)},Au=function t(e,n,r){var i=getComputedStyle(e);return i[n]||i.getPropertyValue(n.replace(su,"-$1").toLowerCase())||i.getPropertyValue(n)||!r&&t(e,Pu(n)||n,1)||""},Mu="O,Moz,ms,Ms,Webkit".split(","),Pu=function(t,e,n){var r=(e||Qs).style,i=5;if(t in r&&!n)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);i--&&!(Mu[i]+t in r););return i<0?null:(3===i?"ms":i>=0?Mu[i]:"")+t},Bu=function(){"undefined"!=typeof window&&window.document&&(Zs=window,$s=Zs.document,Xs=$s.documentElement,Qs=Ou("div")||{style:{}},Ou("div"),Su=Pu(Su),xu=Su+"Origin",Qs.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",nu=!!Pu("perspective"),eu=Ks.core.reverting,Js=1)},Ru=function t(e){var n,r=Ou("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=this.parentNode,a=this.nextSibling,o=this.style.cssText;if(Xs.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)),Xs.removeChild(r),this.style.cssText=o,n},Nu=function(t,e){for(var n=e.length;n--;)if(t.hasAttribute(e[n]))return t.getAttribute(e[n])},Vu=function(t){var e;try{e=t.getBBox()}catch(n){e=Ru.call(t,!0)}return e&&(e.width||e.height)||t.getBBox===Ru||(e=Ru.call(t,!0)),!e||e.width||e.x||e.y?e:{x:+Nu(t,["x","cx","x1"])||0,y:+Nu(t,["y","cy","y1"])||0,width:0,height:0}},Iu=function(t){return!(!t.getCTM||t.parentNode&&!t.ownerSVGElement||!Vu(t))},Fu=function(t,e){if(e){var n=t.style;e in ru&&e!==xu&&(e=Su),n.removeProperty?("ms"!==e.substr(0,2)&&"webkit"!==e.substr(0,6)||(e="-"+e),n.removeProperty(e.replace(su,"-$1").toLowerCase())):n.removeAttribute(e)}},ju=function(t,e,n,r,i,a){var o=new Ns(t._pt,e,n,0,1,a?mu:vu);return t._pt=o,o.b=r,o.e=i,t._props.push(n),o},Lu={deg:1,rad:1,turn:1},Yu={grid:1,flex:1},zu=function t(e,n,r,i){var a,o,s,u,l=parseFloat(r)||0,c=(r+"").trim().substr((l+"").length)||"px",h=Qs.style,f=uu.test(n),d="svg"===e.tagName.toLowerCase(),p=(d?"client":"offset")+(f?"Width":"Height"),v=100,m="px"===i,g="%"===i;return i===c||!l||Lu[i]||Lu[c]?l:("px"!==c&&!m&&(l=t(e,n,r,"px")),u=e.getCTM&&Iu(e),!g&&"%"!==c||!ru[n]&&!~n.indexOf("adius")?(h[f?"width":"height"]=v+(m?c:i),o=~n.indexOf("adius")||"em"===i&&e.appendChild&&!d?e:e.parentNode,u&&(o=(e.ownerSVGElement||{}).parentNode),o&&o!==$s&&o.appendChild||(o=$s.body),(s=o._gsap)&&g&&s.width&&f&&s.time===Zo.time&&!s.uncache?Ia(l/s.width*v):((g||"%"===c)&&!Yu[Au(o,"display")]&&(h.position=Au(e,"position")),o===e&&(h.position="static"),o.appendChild(Qs),a=Qs[p],o.removeChild(Qs),h.position="absolute",f&&g&&((s=Ra(o)).time=Zo.time,s.width=o[p]),Ia(m?a*l/v:a&&l?v/a*l:0))):(a=u?e.getBBox()[f?"width":"height"]:e[p],Ia(g?l/a*v:l/100*a)))},Hu=function(t,e,n,r){var i;return Js||Bu(),e in cu&&"transform"!==e&&~(e=cu[e]).indexOf(",")&&(e=e.split(",")[0]),ru[e]&&"transform"!==e?(i=tl(t,r),i="transformOrigin"!==e?i[e]:i.svg?i.origin:el(Au(t,xu))+" "+i.zOrigin+"px"):(!(i=t.style[e])||"auto"===i||r||~(i+"").indexOf("calc("))&&(i=Gu[e]&&Gu[e](t,e,n)||Au(t,e)||Na(t,e)||("opacity"===e?1:0)),n&&!~(i+"").trim().indexOf(" ")?zu(t,e,i,n)+n:i},Uu=function(t,e,n,r){if(!n||"none"===n){var i=Pu(e,t,1),a=i&&Au(t,i,1);a&&a!==n?(e=i,n=a):"borderColor"===e&&(n=Au(t,"borderTopColor"))}var o,s,u,l,c,h,f,d,p,v,m,g=new Ns(this._pt,t.style,e,0,1,Os),y=0,_=0;if(g.b=n,g.e=r,n+="","auto"===(r+="")&&(t.style[e]=r,r=Au(t,e)||r,t.style[e]=n),Ko(o=[n,r]),r=o[1],u=(n=o[0]).match(ca)||[],(r.match(ca)||[]).length){for(;s=ca.exec(r);)f=s[0],p=r.substring(y,s.index),c?c=(c+1)%5:"rgba("!==p.substr(-5)&&"hsla("!==p.substr(-5)||(c=1),f!==(h=u[_++]||"")&&(l=parseFloat(h)||0,m=h.substr((l+"").length),"="===f.charAt(1)&&(f=ja(l,f)+m),d=parseFloat(f),v=f.substr((d+"").length),y=ca.lastIndex-v.length,v||(v=v||zi.units[e]||m,y===r.length&&(r+=v,g.e+=v)),m!==v&&(l=zu(t,e,h,v)||0),g._pt={_next:g._pt,p:p||1===_?p:",",s:l,c:d-l,m:c&&c<4||"zIndex"===e?Math.round:0});g.c=y<r.length?r.substring(y,r.length):""}else g.r="display"===e&&"none"===r?mu:vu;return fa.test(r)&&(g.e=0),this._pt=g,g},Wu={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},qu=function(t,e){if(e.tween&&e.tween._time===e.tween._dur){var n,r,i,a=e.t,o=a.style,s=e.u,u=a._gsap;if("all"===s||!0===s)o.cssText="",r=1;else for(i=(s=s.split(",")).length;--i>-1;)n=s[i],ru[n]&&(r=1,n="transformOrigin"===n?xu:Su),Fu(a,n);r&&(Fu(a,Su),u&&(u.svg&&a.removeAttribute("transform"),tl(a,1),u.uncache=1,ku(o)))}},Gu={clearProps:function(t,e,n,r,i){if("isFromStart"!==i.data){var a=t._pt=new Ns(t._pt,e,n,0,0,qu);return a.u=r,a.pr=-10,a.tween=i,t._props.push(n),1}}},Ku=[1,0,0,1,0,0],Zu={},$u=function(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t},Xu=function(t){var e=Au(t,Su);return $u(e)?Ku:e.substr(7).match(la).map(Ia)},Ju=function(t,e){var n,r,i,a,o=t._gsap||Ra(t),s=t.style,u=Xu(t);return o.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(",")?Ku:u:(u!==Ku||t.offsetParent||t===Xs||o.svg||(i=s.display,s.display="block",(n=t.parentNode)&&t.offsetParent||(a=1,r=t.nextElementSibling,Xs.appendChild(t)),u=Xu(t),i?s.display=i:Fu(t,"display"),a&&(r?n.insertBefore(t,r):n?n.appendChild(t):Xs.removeChild(t))),e&&u.length>6?[u[0],u[1],u[4],u[5],u[12],u[13]]:u)},Qu=function(t,e,n,r,i,a){var o,s,u,l=t._gsap,c=i||Ju(t,!0),h=l.xOrigin||0,f=l.yOrigin||0,d=l.xOffset||0,p=l.yOffset||0,v=c[0],m=c[1],g=c[2],y=c[3],_=c[4],b=c[5],w=e.split(" "),D=parseFloat(w[0])||0,S=parseFloat(w[1])||0;n?c!==Ku&&(s=v*y-m*g)&&(u=D*(-m/s)+S*(v/s)-(v*b-m*_)/s,D=D*(y/s)+S*(-g/s)+(g*b-y*_)/s,S=u):(D=(o=Vu(t)).x+(~w[0].indexOf("%")?D/100*o.width:D),S=o.y+(~(w[1]||w[0]).indexOf("%")?S/100*o.height:S)),r||!1!==r&&l.smooth?(_=D-h,b=S-f,l.xOffset=d+(_*v+b*g)-_,l.yOffset=p+(_*m+b*y)-b):l.xOffset=l.yOffset=0,l.xOrigin=D,l.yOrigin=S,l.smooth=!!r,l.origin=e,l.originIsAbsolute=!!n,t.style[xu]="0px 0px",a&&(ju(a,l,"xOrigin",h,D),ju(a,l,"yOrigin",f,S),ju(a,l,"xOffset",d,l.xOffset),ju(a,l,"yOffset",p,l.yOffset)),t.setAttribute("data-svg-origin",D+" "+S)},tl=function(t,e){var n=t._gsap||new us(t);if("x"in n&&!e&&!n.uncache)return n;var r,i,a,o,s,u,l,c,h,f,d,p,v,m,g,y,_,b,w,D,S,x,T,k,C,E,O,A,M,P,B,R,N=t.style,V=n.scaleX<0,I="px",F="deg",j=getComputedStyle(t),L=Au(t,xu)||"0";return r=i=a=u=l=c=h=f=d=0,o=s=1,n.svg=!(!t.getCTM||!Iu(t)),j.translate&&("none"===j.translate&&"none"===j.scale&&"none"===j.rotate||(N[Su]=("none"!==j.translate?"translate3d("+(j.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+("none"!==j.rotate?"rotate("+j.rotate+") ":"")+("none"!==j.scale?"scale("+j.scale.split(" ").join(",")+") ":"")+("none"!==j[Su]?j[Su]:"")),N.scale=N.rotate=N.translate="none"),m=Ju(t,n.svg),n.svg&&(n.uncache?(C=t.getBBox(),L=n.xOrigin-C.x+"px "+(n.yOrigin-C.y)+"px",k=""):k=!e&&t.getAttribute("data-svg-origin"),Qu(t,k||L,!!k||n.originIsAbsolute,!1!==n.smooth,m)),p=n.xOrigin||0,v=n.yOrigin||0,m!==Ku&&(b=m[0],w=m[1],D=m[2],S=m[3],r=x=m[4],i=T=m[5],6===m.length?(o=Math.sqrt(b*b+w*w),s=Math.sqrt(S*S+D*D),u=b||w?ou(w,b)*iu:0,(h=D||S?ou(D,S)*iu+u:0)&&(s*=Math.abs(Math.cos(h*au))),n.svg&&(r-=p-(p*b+v*D),i-=v-(p*w+v*S))):(R=m[6],P=m[7],O=m[8],A=m[9],M=m[10],B=m[11],r=m[12],i=m[13],a=m[14],l=(g=ou(R,M))*iu,g&&(k=x*(y=Math.cos(-g))+O*(_=Math.sin(-g)),C=T*y+A*_,E=R*y+M*_,O=x*-_+O*y,A=T*-_+A*y,M=R*-_+M*y,B=P*-_+B*y,x=k,T=C,R=E),c=(g=ou(-D,M))*iu,g&&(y=Math.cos(-g),B=S*(_=Math.sin(-g))+B*y,b=k=b*y-O*_,w=C=w*y-A*_,D=E=D*y-M*_),u=(g=ou(w,b))*iu,g&&(k=b*(y=Math.cos(g))+w*(_=Math.sin(g)),C=x*y+T*_,w=w*y-b*_,T=T*y-x*_,b=k,x=C),l&&Math.abs(l)+Math.abs(u)>359.9&&(l=u=0,c=180-c),o=Ia(Math.sqrt(b*b+w*w+D*D)),s=Ia(Math.sqrt(T*T+R*R)),g=ou(x,T),h=Math.abs(g)>2e-4?g*iu:0,d=B?1/(B<0?-B:B):0),n.svg&&(k=t.getAttribute("transform"),n.forceCSS=t.setAttribute("transform","")||!$u(Au(t,Su)),k&&t.setAttribute("transform",k))),Math.abs(h)>90&&Math.abs(h)<270&&(V?(o*=-1,h+=u<=0?180:-180,u+=u<=0?180:-180):(s*=-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)+I,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)+I,n.z=a+I,n.scaleX=Ia(o),n.scaleY=Ia(s),n.rotation=Ia(u)+F,n.rotationX=Ia(l)+F,n.rotationY=Ia(c)+F,n.skewX=h+F,n.skewY=f+F,n.transformPerspective=d+I,(n.zOrigin=parseFloat(L.split(" ")[2])||0)&&(N[xu]=el(L)),n.xOffset=n.yOffset=0,n.force3D=zi.force3D,n.renderTransform=n.svg?ul:nu?sl:rl,n.uncache=0,n},el=function(t){return(t=t.split(" "))[0]+" "+t[1]},nl=function(t,e,n){var r=wo(e);return Ia(parseFloat(e)+parseFloat(zu(t,"x",n+"px",r)))+r},rl=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,sl(t,e)},il="0deg",al="0px",ol=") ",sl=function(t,e){var n=e||this,r=n.xPercent,i=n.yPercent,a=n.x,o=n.y,s=n.z,u=n.rotation,l=n.rotationY,c=n.rotationX,h=n.skewX,f=n.skewY,d=n.scaleX,p=n.scaleY,v=n.transformPerspective,m=n.force3D,g=n.target,y=n.zOrigin,_="",b="auto"===m&&t&&1!==t||!0===m;if(y&&(c!==il||l!==il)){var w,D=parseFloat(l)*au,S=Math.sin(D),x=Math.cos(D);D=parseFloat(c)*au,w=Math.cos(D),a=nl(g,a,S*w*-y),o=nl(g,o,-Math.sin(D)*-y),s=nl(g,s,x*w*-y+y)}v!==al&&(_+="perspective("+v+ol),(r||i)&&(_+="translate("+r+"%, "+i+"%) "),(b||a!==al||o!==al||s!==al)&&(_+=s!==al||b?"translate3d("+a+", "+o+", "+s+") ":"translate("+a+", "+o+ol),u!==il&&(_+="rotate("+u+ol),l!==il&&(_+="rotateY("+l+ol),c!==il&&(_+="rotateX("+c+ol),h===il&&f===il||(_+="skew("+h+", "+f+ol),1===d&&1===p||(_+="scale("+d+", "+p+ol),g.style[Su]=_||"translate(0, 0)"},ul=function(t,e){var n,r,i,a,o,s=e||this,u=s.xPercent,l=s.yPercent,c=s.x,h=s.y,f=s.rotation,d=s.skewX,p=s.skewY,v=s.scaleX,m=s.scaleY,g=s.target,y=s.xOrigin,_=s.yOrigin,b=s.xOffset,w=s.yOffset,D=s.forceCSS,S=parseFloat(c),x=parseFloat(h);f=parseFloat(f),d=parseFloat(d),(p=parseFloat(p))&&(d+=p=parseFloat(p),f+=p),f||d?(f*=au,d*=au,n=Math.cos(f)*v,r=Math.sin(f)*v,i=Math.sin(f-d)*-m,a=Math.cos(f-d)*m,d&&(p*=au,o=Math.tan(d-p),i*=o=Math.sqrt(1+o*o),a*=o,p&&(o=Math.tan(p),n*=o=Math.sqrt(1+o*o),r*=o)),n=Ia(n),r=Ia(r),i=Ia(i),a=Ia(a)):(n=v,a=m,r=i=0),(S&&!~(c+"").indexOf("px")||x&&!~(h+"").indexOf("px"))&&(S=zu(g,"x",c,"px"),x=zu(g,"y",h,"px")),(y||_||b||w)&&(S=Ia(S+y-(y*n+_*i)+b),x=Ia(x+_-(y*r+_*a)+w)),(u||l)&&(o=g.getBBox(),S=Ia(S+u/100*o.width),x=Ia(x+l/100*o.height)),o="matrix("+n+","+r+","+i+","+a+","+S+","+x+")",g.setAttribute("transform",o),D&&(g.style[Su]=o)},ll=function(t,e,n,r,i){var a,o,s=360,u=Ji(i),l=parseFloat(i)*(u&&~i.indexOf("rad")?iu:1)-r,c=r+l+"deg";return u&&("short"===(a=i.split("_")[1])&&(l%=s)!==l%180&&(l+=l<0?s:-360),"cw"===a&&l<0?l=(l+36e9)%s-~~(l/s)*s:"ccw"===a&&l>0&&(l=(l-36e9)%s-~~(l/s)*s)),t._pt=o=new Ns(t._pt,e,n,r,l,fu),o.e=c,o.u="deg",t._props.push(n),o},cl=function(t,e){for(var n in e)t[n]=e[n];return t},hl=function(t,e,n){var r,i,a,o,s,u,l,c=cl({},n._gsap),h=n.style;for(i in c.svg?(a=n.getAttribute("transform"),n.setAttribute("transform",""),h[Su]=e,r=tl(n,1),Fu(n,Su),n.setAttribute("transform",a)):(a=getComputedStyle(n)[Su],h[Su]=e,r=tl(n,1),h[Su]=a),ru)(a=c[i])!==(o=r[i])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(i)<0&&(s=wo(a)!==(l=wo(o))?zu(n,i,a,l):parseFloat(a),u=parseFloat(o),t._pt=new Ns(t._pt,r,i,s,u-s,hu),t._pt.u=l||0,t._props.push(i));cl(r,c)};Va("padding,margin,Width,Radius",(function(t,e){var n="Top",r="Right",i="Bottom",a="Left",o=(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}));Gu[e>1?"border"+t:t]=function(t,e,n,r,i){var a,s;if(arguments.length<4)return a=o.map((function(e){return Hu(t,e,n)})),5===(s=a.join(" ")).split(a[0]).length?a[0]:s;a=(r+"").split(" "),s={},o.forEach((function(t,e){return s[t]=a[e]=a[e]||a[(e-1)/2|0]})),t.init(e,s,i)}}));var fl,dl,pl,vl={name:"css",register:Bu,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,n,r,i){var a,o,s,u,l,c,h,f,d,p,v,m,g,y,_,b,w,D,S,x,T=this._props,k=t.style,C=n.vars.startAt;for(h in Js||Bu(),this.styles=this.styles||Eu(t),b=this.styles.props,this.tween=n,e)if("autoRound"!==h&&(o=e[h],!Ea[h]||!vs(h,e,n,r,t,i)))if(l=typeof o,c=Gu[h],"function"===l&&(l=typeof(o=o.call(n,r,t,i))),"string"===l&&~o.indexOf("random(")&&(o=Bo(o)),c)c(this,t,h,o,n)&&(_=1);else if("--"===h.substr(0,2))a=(getComputedStyle(t).getPropertyValue(h)+"").trim(),o+="",qo.lastIndex=0,qo.test(a)||(f=wo(a),d=wo(o)),d?f!==d&&(a=zu(t,h,a,d)+d):f&&(o+=f),this.add(k,"setProperty",a,o,r,i,0,0,h),T.push(h),b.push(h,0,k[h]);else if("undefined"!==l){if(C&&h in C?(a="function"==typeof C[h]?C[h].call(n,r,t,i):C[h],Ji(a)&&~a.indexOf("random(")&&(a=Bo(a)),wo(a+"")||(a+=zi.units[h]||wo(Hu(t,h))||""),"="===(a+"").charAt(1)&&(a=Hu(t,h))):a=Hu(t,h),u=parseFloat(a),(p="string"===l&&"="===o.charAt(1)&&o.substr(0,2))&&(o=o.substr(2)),s=parseFloat(o),h in cu&&("autoAlpha"===h&&(1===u&&"hidden"===Hu(t,"visibility")&&s&&(u=0),b.push("visibility",0,k.visibility),ju(this,k,"visibility",u?"inherit":"hidden",s?"inherit":"hidden",!s)),"scale"!==h&&"transform"!==h&&~(h=cu[h]).indexOf(",")&&(h=h.split(",")[0])),v=h in ru)if(this.styles.save(h),m||((g=t._gsap).renderTransform&&!e.parseTransform||tl(t,e.parseTransform),y=!1!==e.smoothOrigin&&g.smooth,(m=this._pt=new Ns(this._pt,k,Su,0,1,g.renderTransform,g,0,-1)).dep=1),"scale"===h)this._pt=new Ns(this._pt,g,"scaleY",g.scaleY,(p?ja(g.scaleY,p+s):s)-g.scaleY||0,hu),this._pt.u=0,T.push("scaleY",h),h+="X";else{if("transformOrigin"===h){b.push(xu,0,k[xu]),D=void 0,S=void 0,x=void 0,D=(w=o).split(" "),S=D[0],x=D[1]||"50%","top"!==S&&"bottom"!==S&&"left"!==x&&"right"!==x||(w=S,S=x,x=w),D[0]=Wu[S]||S,D[1]=Wu[x]||x,o=D.join(" "),g.svg?Qu(t,o,0,y,0,this):((d=parseFloat(o.split(" ")[2])||0)!==g.zOrigin&&ju(this,g,"zOrigin",g.zOrigin,d),ju(this,k,h,el(a),el(o)));continue}if("svgOrigin"===h){Qu(t,o,1,y,0,this);continue}if(h in Zu){ll(this,g,h,u,p?ja(u,p+o):o);continue}if("smoothOrigin"===h){ju(this,g,"smooth",g.smooth,o);continue}if("force3D"===h){g[h]=o;continue}if("transform"===h){hl(this,o,t);continue}}else h in k||(h=Pu(h)||h);if(v||(s||0===s)&&(u||0===u)&&!lu.test(o)&&h in k)s||(s=0),(f=(a+"").substr((u+"").length))!==(d=wo(o)||(h in zi.units?zi.units[h]:f))&&(u=zu(t,h,a,d)),this._pt=new Ns(this._pt,v?g:k,h,u,(p?ja(u,p+s):s)-u,v||"px"!==d&&"zIndex"!==h||!1===e.autoRound?hu:pu),this._pt.u=d||0,f!==d&&"%"!==d&&(this._pt.b=a,this._pt.r=du);else if(h in k)Uu.call(this,t,h,a,p?p+o:o);else if(h in t)this.add(t,h,a||t[h],p?p+o:o,r,i);else if("parseTransform"!==h){ya(h,o);continue}v||(h in k?b.push(h,0,k[h]):b.push(h,1,a||t[h])),T.push(h)}_&&Rs(this)},render:function(t,e){if(e.tween._time||!eu())for(var n=e._pt;n;)n.r(t,n.d),n=n._next;else e.styles.revert()},get:Hu,aliases:cu,getSetter:function(t,e,n){var r=cu[e];return r&&r.indexOf(",")<0&&(e=r),e in ru&&e!==xu&&(t._gsap.x||Hu(t,"x"))?n&&tu===n?"scale"===e?bu:_u:(tu=n||{})&&("scale"===e?wu:Du):t.style&&!ea(t.style[e])?gu:~e.indexOf("-")?yu:ks(t,e)},core:{_removeProperty:Fu,_getMatrix:Ju}};Ks.utils.checkPrefix=Pu,Ks.core.getStyleSaver=Eu,pl=Va((fl="x,y,z,scale,scaleX,scaleY,xPercent,yPercent")+","+(dl="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",(function(t){ru[t]=1})),Va(dl,(function(t){zi.units[t]="deg",Zu[t]=1})),cu[pl[13]]=fl+","+dl,Va("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",(function(t){var e=t.split(":");cu[e[1]]=pl[e[0]]})),Va("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",(function(t){zi.units[t]="px"})),Ks.registerPlugin(vl);var ml=Ks.registerPlugin(vl)||Ks;ml.core.Tween;var gl=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=ml.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 o=this.filterData(t,a);this.goAnimationParams=e;for(var s=0;s<o.length;s++){var u=o[s];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/o.length,f=this._creatTl("#wrap"+u.cid);this._add(f,s*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 o=this.splitArrayForCenter(t,"left");n=[i.default.orderBy(o.true,["center.x"],["asc"]),i.default.orderBy(o.false,["center.x"],["desc"])]}else if("spaceBetween"==e){o=this.splitArrayForCenter(t,"left");n=[i.default.orderBy(o.true,["center.x"],["desc"]),i.default.orderBy(o.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,o=Math.abs(n-i),s=Math.abs(r-a);return Math.sqrt(o*o+s*s)},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),o=r.getSpacing(a,n);t.spacing=o}})),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=ml.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,o=e.value;return o&&o.length&&o.forEach((function(t){t.delay=n||0,t.repeat=i||0})),ml[a](t,r,o[0],o[1])},t.prototype.in=function(){},t.prototype.out=function(){},t}(),yl=gl.getInstance();var _l=function(){function t(t){this.root=null,this.vuex=xi.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 o=0;o<t.length;o++){if(t[o].cid==e){r=t[o],n&&i.default.remove(t,(function(t){return t.cid==e}));break}if(t[o].children)a(t[o].children);else if(t[o].dynamicChildren){if(t[o].dynamicChildren instanceof Map){for(var s=Array.from(t[o].dynamicChildren),u=0;u<s.length;u++)if(s[u]instanceof Array){var l=s[u][1];a(l)}}else if(t[o].dynamicChildren instanceof Array)for(s=t[o].dynamicChildren,u=0;u<s.length;u++)s[u]instanceof Array&&(l=s[u][1],a(l))}else t[o].stateChildren&&a(t[o].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.comToggle=function(t){return this.vuex.callMutation("comToggle",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.updateComp=function(t){return this.vuex.callMutation("updatComs",t)},t.prototype.changeDynamicState=function(t){return this.vuex.callMutation("changeDynamicState",t)},t.prototype.pageChange=function(t){return this.vuex.callMutation("setPageId",t)},t.prototype.pagePush=function(t,e,n){return void 0===n&&(n={}),this.vuex.callMutation("pagePush",{type:t,value:e,option:n})},t.prototype.activeState=function(t,e){return this.vuex.callMutation("setDynamicActive",{cid:t,name:e})},t.prototype.getVars=function(t){var e=this.vuex.callState("globalVars");return t&&t(e),e},t.prototype.setVars=function(t){return this.vuex.callAction("goEditVar",t)},t}(),bl=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}(_l),wl=function(){function t(t){this.$action=new Dl(t),this.instance=new bl(t)}return t.prototype.getGlobalvars=function(){for(var t=this.instance.GlobalVars,e=t.map((function(t){return t.mapField})),n={},r=function(e){var r=t.find((function(t){return t.mapField==e}));n[e]=r.value},i=0,a=e;i<a.length;i++){r(a[i])}var o=this.instance;return new Proxy(n,{has:function(t,e){return!e&&e in t},get:function(t,e){if(e in t)return t[e];throw new ReferenceError('Prop name "'+e+'" does not exist.')},set:function(t,e,n){if(!t[e])return console.log("变量不存在/不能被修改"),!1;if(t[e]=n,!e||"string"!=typeof e)throw new Error("Invalid key");o.setGlobalVar({key:e,value:n})}})},Object.defineProperty(t.prototype,"globalvars",{get:function(){return this.getGlobalvars()},enumerable:!1,configurable:!0}),t}(),Dl=function(t){var e=this;this.setGlobalVars=function(t,n){if(!t||"string"!=typeof t)throw new Error("Invalid key");e.instance.setGlobalVar({key:t,value:n})},this.skipTo=function(t){if(!t||0===Object.keys(t).length)throw new Error("事件跳转发生错误:参数:".concat(t," 不正确,请正确填写!doc: https://anov.cucloud.cn/anov-go-doc/"));if(t.name)e.instance.pagePush("name",t.name);else if(t.path)e.instance.pagePush("path",t.path);else{if(!t.url)throw new Error("事件跳转发生错误:参数:".concat(t," 不正确,请正确填写!doc: https://anov.cucloud.cn/anov-go-doc/"));window.open(t.url)}},this.toggle=function(t){if(t)if("string"!=typeof t&&"number"!=typeof t)if(Array.isArray(t))for(var n=0,r=t;n<r.length;n++){var i=r[n];"string"==typeof i||"number"==typeof i?e.instance.comToggle(i):console.warn("请传入正确的参数!")}else console.warn("请传入正确的参数!");else e.instance.comToggle(t);else console.warn("请传入正确的参数!")},this.show=function(t){if(t)if("string"!=typeof t&&"number"!=typeof t){if(Array.isArray(t))for(var n=0,r=t;n<r.length;n++){var i=r[n];"string"==typeof i||"number"==typeof i?e.instance._showComponent(i.toString()):console.warn("请传入正确的参数!")}}else e.instance._showComponent(t.toString());else console.warn("请传入正确的参数!")},this.hide=function(t){if(t)if("string"!=typeof t&&"number"!=typeof t){if(Array.isArray(t))for(var n=0,r=t;n<r.length;n++){var i=r[n];"string"==typeof i||"number"==typeof i?e.instance._hideComponent(i):console.warn("请传入正确的参数!")}}else e.instance._hideComponent(t);else console.warn("请传入正确的参数!")},this.activeState=function(t,n){e.instance.activeState(t,n)},this.updateComp=function(t){if(t)if("string"!=typeof t&&"number"!=typeof t){if(Array.isArray(t))for(var n=0,r=t;n<r.length;n++){var i=r[n];"string"==typeof i||"number"==typeof i?e.instance.updateComp(i):console.warn("请传入正确的参数!")}}else e.instance.updateComp(t);else console.warn("请传入正确的参数!")},this.instance=new bl(t)};t.Go=xi,t.GoAnimation=yl,t.Tool=Fr,t.createComponent=function(t,e){return e&&t?xi.getInstance().render(t,e):t?xi.getInstance().render(t):void 0},t.createComponentForParent=function(t,e,n){return void 0!==n&&t?xi.getInstance().renderForParent(t,e,n):t?xi.getInstance().renderForParent(t,e):void 0},t.emitEvent=function(t,e){return xi.getInstance().emitEvent(t,e||function(){})},t.fxhr=ri,t.getData=Lr,t.getDataForRelease=function(t,e){return Lr(t,"GET",null,e).then((function(t){var e=JSON.parse(t.data.caseData);return xi.getInstance().reversal(e),t}))},t.log=function(){},t.refreshData=ni,t.run=function(t){return new wl(t)},t.store=di,Object.defineProperty(t,"__esModule",{value:!0})}));
52
52
  //# sourceMappingURL=code.umd.js.map