diff --git a/assets/index-DztULAU3.js b/assets/index-BwvHi-X5.js similarity index 98% rename from assets/index-DztULAU3.js rename to assets/index-BwvHi-X5.js index 66d0941..92d9683 100644 --- a/assets/index-DztULAU3.js +++ b/assets/index-BwvHi-X5.js @@ -322,7 +322,7 @@ var W2;function Pe(){return W2.apply(null,arguments)}function FA(e){W2=e}functio [`+i+"] ";for(a in arguments[0])xt(arguments[0],a)&&(o+=a+": "+arguments[0][a]+", ");o=o.slice(0,-2)}else o=arguments[i];r.push(o)}Y2(e+` Arguments: `+Array.prototype.slice.call(r).join("")+` `+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var rS={};function G2(e,t){Pe.deprecationHandler!=null&&Pe.deprecationHandler(e,t),rS[e]||(Y2(t),rS[e]=!0)}Pe.suppressDeprecationWarnings=!1;Pe.deprecationHandler=null;function Io(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function DA(e){var t,n;for(n in e)xt(e,n)&&(t=e[n],Io(t)?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function og(e,t){var n=Mi({},e),r;for(r in t)xt(t,r)&&(da(e[r])&&da(t[r])?(n[r]={},Mi(n[r],e[r]),Mi(n[r],t[r])):t[r]!=null?n[r]=t[r]:delete n[r]);for(r in e)xt(e,r)&&!xt(t,r)&&da(e[r])&&(n[r]=Mi({},n[r]));return n}function r0(e){e!=null&&this.set(e)}var ig;Object.keys?ig=Object.keys:ig=function(e){var t,n=[];for(t in e)xt(e,t)&&n.push(t);return n};var jA={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function LA(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return Io(r)?r.call(t,n):r}function _o(e,t,n){var r=""+Math.abs(e),o=t-r.length,i=e>=0;return(i?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+r}var o0=/(\[[^\[]*\])|(\\)?([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,du=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,rh={},sl={};function Xe(e,t,n,r){var o=r;typeof r=="string"&&(o=function(){return this[r]()}),e&&(sl[e]=o),t&&(sl[t[0]]=function(){return _o(o.apply(this,arguments),t[1],t[2])}),n&&(sl[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),e)})}function AA(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function zA(e){var t=e.match(o0),n,r;for(n=0,r=t.length;n=0&&du.test(e);)e=e.replace(du,r),du.lastIndex=0,n-=1;return e}var HA={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 BA(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(o0).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var VA="Invalid date";function WA(){return this._invalidDate}var UA="%d",YA=/\d{1,2}/;function GA(e){return this._ordinal.replace("%d",e)}var qA={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 KA(e,t,n,r){var o=this._relativeTime[n];return Io(o)?o(e,t,n,r):o.replace(/%d/i,e)}function XA(e,t){var n=this._relativeTime[e>0?"future":"past"];return Io(n)?n(t):n.replace(/%s/i,t)}var oS={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function Kr(e){return typeof e=="string"?oS[e]||oS[e.toLowerCase()]:void 0}function i0(e){var t={},n,r;for(r in e)xt(e,r)&&(n=Kr(r),n&&(t[n]=e[r]));return t}var QA={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function ZA(e){var t=[],n;for(n in e)xt(e,n)&&t.push({unit:n,priority:QA[n]});return t.sort(function(r,o){return r.priority-o.priority}),t}var K2=/\d/,Or=/\d\d/,X2=/\d{3}/,a0=/\d{4}/,$f=/[+-]?\d{6}/,Bt=/\d\d?/,Q2=/\d\d\d\d?/,Z2=/\d\d\d\d\d\d?/,Of=/\d{1,3}/,l0=/\d{1,4}/,_f=/[+-]?\d{1,6}/,Fl=/\d+/,Mf=/[+-]?\d+/,JA=/Z|[+-]\d\d:?\d\d/gi,Pf=/Z|[+-]\d\d(?::?\d\d)?/gi,e8=/[+-]?\d+(\.\d{1,3})?/,Ec=/[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,kl=/^[1-9]\d?/,s0=/^([1-9]\d|\d)/,$d;$d={};function Ae(e,t,n){$d[e]=Io(t)?t:function(r,o){return r&&n?n:t}}function t8(e,t){return xt($d,e)?$d[e](t._strict,t._locale):new RegExp(n8(e))}function n8(e){return Yo(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,o,i){return n||r||o||i}))}function Yo(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Dr(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function vt(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=Dr(t)),n}var ag={};function Ft(e,t){var n,r=t,o;for(typeof e=="string"&&(e=[e]),ei(t)&&(r=function(i,a){a[t]=vt(i)}),o=e.length,n=0;n68?1900:2e3)};var J2=Dl("FullYear",!0);function a8(){return Rf(this.year())}function Dl(e,t){return function(n){return n!=null?(e$(this,e,n),Pe.updateOffset(this,t),this):ac(this,e)}}function ac(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function e$(e,t,n){var r,o,i,a,l;if(!(!e.isValid()||isNaN(n))){switch(r=e._d,o=e._isUTC,t){case"Milliseconds":return void(o?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(o?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(o?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(o?r.setUTCHours(n):r.setHours(n));case"Date":return void(o?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}i=n,a=e.month(),l=e.date(),l=l===29&&a===1&&!Rf(i)?28:l,o?r.setUTCFullYear(i,a,l):r.setFullYear(i,a,l)}}function l8(e){return e=Kr(e),Io(this[e])?this[e]():this}function s8(e,t){if(typeof e=="object"){e=i0(e);var n=ZA(e),r,o=n.length;for(r=0;r=0?(l=new Date(e+400,t,n,r,o,i,a),isFinite(l.getFullYear())&&l.setFullYear(e)):l=new Date(e,t,n,r,o,i,a),l}function lc(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Od(e,t,n){var r=7+t-n,o=(7+lc(e,0,r).getUTCDay()-t)%7;return-o+r-1}function a$(e,t,n,r,o){var i=(7+n-r)%7,a=Od(e,r,o),l=1+7*(t-1)+i+a,s,u;return l<=0?(s=e-1,u=xs(s)+l):l>xs(e)?(s=e+1,u=l-xs(e)):(s=e,u=l),{year:s,dayOfYear:u}}function sc(e,t,n){var r=Od(e.year(),t,n),o=Math.floor((e.dayOfYear()-r-1)/7)+1,i,a;return o<1?(a=e.year()-1,i=o+Go(a,t,n)):o>Go(e.year(),t,n)?(i=o-Go(e.year(),t,n),a=e.year()+1):(a=e.year(),i=o),{week:i,year:a}}function Go(e,t,n){var r=Od(e,t,n),o=Od(e+1,t,n);return(xs(e)-r+o)/7}Xe("w",["ww",2],"wo","week");Xe("W",["WW",2],"Wo","isoWeek");Ae("w",Bt,kl);Ae("ww",Bt,Or);Ae("W",Bt,kl);Ae("WW",Bt,Or);$c(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=vt(e)});function w8(e){return sc(e,this._week.dow,this._week.doy).week}var C8={dow:0,doy:6};function x8(){return this._week.dow}function E8(){return this._week.doy}function $8(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function O8(e){var t=sc(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}Xe("d",0,"do","day");Xe("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});Xe("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});Xe("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});Xe("e",0,0,"weekday");Xe("E",0,0,"isoWeekday");Ae("d",Bt);Ae("e",Bt);Ae("E",Bt);Ae("dd",function(e,t){return t.weekdaysMinRegex(e)});Ae("ddd",function(e,t){return t.weekdaysShortRegex(e)});Ae("dddd",function(e,t){return t.weekdaysRegex(e)});$c(["dd","ddd","dddd"],function(e,t,n,r){var o=n._locale.weekdaysParse(e,r,n._strict);o!=null?t.d=o:it(n).invalidWeekday=e});$c(["d","e","E"],function(e,t,n,r){t[r]=vt(e)});function _8(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function M8(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function u0(e,t){return e.slice(t,7).concat(e.slice(0,t))}var P8="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),l$="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),R8="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),I8=Ec,T8=Ec,N8=Ec;function F8(e,t){var n=ho(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?u0(n,this._week.dow):e?n[e.day()]:n}function k8(e){return e===!0?u0(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function D8(e){return e===!0?u0(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function j8(e,t,n){var r,o,i,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=Ro([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?t==="dddd"?(o=un.call(this._weekdaysParse,a),o!==-1?o:null):t==="ddd"?(o=un.call(this._shortWeekdaysParse,a),o!==-1?o:null):(o=un.call(this._minWeekdaysParse,a),o!==-1?o:null):t==="dddd"?(o=un.call(this._weekdaysParse,a),o!==-1||(o=un.call(this._shortWeekdaysParse,a),o!==-1)?o:(o=un.call(this._minWeekdaysParse,a),o!==-1?o:null)):t==="ddd"?(o=un.call(this._shortWeekdaysParse,a),o!==-1||(o=un.call(this._weekdaysParse,a),o!==-1)?o:(o=un.call(this._minWeekdaysParse,a),o!==-1?o:null)):(o=un.call(this._minWeekdaysParse,a),o!==-1||(o=un.call(this._weekdaysParse,a),o!==-1)?o:(o=un.call(this._shortWeekdaysParse,a),o!==-1?o:null))}function L8(e,t,n){var r,o,i;if(this._weekdaysParseExact)return j8.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(o=Ro([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(n&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(n&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function A8(e){if(!this.isValid())return e!=null?this:NaN;var t=ac(this,"Day");return e!=null?(e=_8(e,this.localeData()),this.add(e-t,"d")):t}function z8(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function H8(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=M8(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function B8(e){return this._weekdaysParseExact?(xt(this,"_weekdaysRegex")||d0.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(xt(this,"_weekdaysRegex")||(this._weekdaysRegex=I8),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function V8(e){return this._weekdaysParseExact?(xt(this,"_weekdaysRegex")||d0.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(xt(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=T8),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function W8(e){return this._weekdaysParseExact?(xt(this,"_weekdaysRegex")||d0.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(xt(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=N8),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function d0(){function e(d,f){return f.length-d.length}var t=[],n=[],r=[],o=[],i,a,l,s,u;for(i=0;i<7;i++)a=Ro([2e3,1]).day(i),l=Yo(this.weekdaysMin(a,"")),s=Yo(this.weekdaysShort(a,"")),u=Yo(this.weekdays(a,"")),t.push(l),n.push(s),r.push(u),o.push(l),o.push(s),o.push(u);t.sort(e),n.sort(e),r.sort(e),o.sort(e),this._weekdaysRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function f0(){return this.hours()%12||12}function U8(){return this.hours()||24}Xe("H",["HH",2],0,"hour");Xe("h",["hh",2],0,f0);Xe("k",["kk",2],0,U8);Xe("hmm",0,0,function(){return""+f0.apply(this)+_o(this.minutes(),2)});Xe("hmmss",0,0,function(){return""+f0.apply(this)+_o(this.minutes(),2)+_o(this.seconds(),2)});Xe("Hmm",0,0,function(){return""+this.hours()+_o(this.minutes(),2)});Xe("Hmmss",0,0,function(){return""+this.hours()+_o(this.minutes(),2)+_o(this.seconds(),2)});function s$(e,t){Xe(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}s$("a",!0);s$("A",!1);function c$(e,t){return t._meridiemParse}Ae("a",c$);Ae("A",c$);Ae("H",Bt,s0);Ae("h",Bt,kl);Ae("k",Bt,kl);Ae("HH",Bt,Or);Ae("hh",Bt,Or);Ae("kk",Bt,Or);Ae("hmm",Q2);Ae("hmmss",Z2);Ae("Hmm",Q2);Ae("Hmmss",Z2);Ft(["H","HH"],En);Ft(["k","kk"],function(e,t,n){var r=vt(e);t[En]=r===24?0:r});Ft(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});Ft(["h","hh"],function(e,t,n){t[En]=vt(e),it(n).bigHour=!0});Ft("hmm",function(e,t,n){var r=e.length-2;t[En]=vt(e.substr(0,r)),t[ao]=vt(e.substr(r)),it(n).bigHour=!0});Ft("hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[En]=vt(e.substr(0,r)),t[ao]=vt(e.substr(r,2)),t[Vo]=vt(e.substr(o)),it(n).bigHour=!0});Ft("Hmm",function(e,t,n){var r=e.length-2;t[En]=vt(e.substr(0,r)),t[ao]=vt(e.substr(r))});Ft("Hmmss",function(e,t,n){var r=e.length-4,o=e.length-2;t[En]=vt(e.substr(0,r)),t[ao]=vt(e.substr(r,2)),t[Vo]=vt(e.substr(o))});function Y8(e){return(e+"").toLowerCase().charAt(0)==="p"}var G8=/[ap]\.?m?\.?/i,q8=Dl("Hours",!0);function K8(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var u$={calendar:jA,longDateFormat:HA,invalidDate:VA,ordinal:UA,dayOfMonthOrdinalParse:YA,relativeTime:qA,months:u8,monthsShort:t$,week:C8,weekdays:P8,weekdaysMin:R8,weekdaysShort:l$,meridiemParse:G8},Ut={},Ql={},cc;function X8(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n0;){if(o=If(i.slice(0,n).join("-")),o)return o;if(r&&r.length>=n&&X8(i,r)>=n-1)break;n--}t++}return cc}function Z8(e){return!!(e&&e.match("^[^/\\\\]*$"))}function If(e){var t=null,n;if(Ut[e]===void 0&&typeof module<"u"&&module&&module.exports&&Z8(e))try{t=cc._abbr,n=require,n("./locale/"+e),Ai(t)}catch{Ut[e]=null}return Ut[e]}function Ai(e,t){var n;return e&&(tr(t)?n=ai(e):n=m0(e,t),n?cc=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),cc._abbr}function m0(e,t){if(t!==null){var n,r=u$;if(t.abbr=e,Ut[e]!=null)G2("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=Ut[e]._config;else if(t.parentLocale!=null)if(Ut[t.parentLocale]!=null)r=Ut[t.parentLocale]._config;else if(n=If(t.parentLocale),n!=null)r=n._config;else return Ql[t.parentLocale]||(Ql[t.parentLocale]=[]),Ql[t.parentLocale].push({name:e,config:t}),null;return Ut[e]=new r0(og(r,t)),Ql[e]&&Ql[e].forEach(function(o){m0(o.name,o.config)}),Ai(e),Ut[e]}else return delete Ut[e],null}function J8(e,t){if(t!=null){var n,r,o=u$;Ut[e]!=null&&Ut[e].parentLocale!=null?Ut[e].set(og(Ut[e]._config,t)):(r=If(e),r!=null&&(o=r._config),t=og(o,t),r==null&&(t.abbr=e),n=new r0(t),n.parentLocale=Ut[e],Ut[e]=n),Ai(e)}else Ut[e]!=null&&(Ut[e].parentLocale!=null?(Ut[e]=Ut[e].parentLocale,e===Ai()&&Ai(e)):Ut[e]!=null&&delete Ut[e]);return Ut[e]}function ai(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return cc;if(!ho(e)){if(t=If(e),t)return t;e=[e]}return Q8(e)}function ez(){return ig(Ut)}function h0(e){var t,n=e._a;return n&&it(e).overflow===-2&&(t=n[Bo]<0||n[Bo]>11?Bo:n[xo]<1||n[xo]>c0(n[Vn],n[Bo])?xo:n[En]<0||n[En]>24||n[En]===24&&(n[ao]!==0||n[Vo]!==0||n[la]!==0)?En:n[ao]<0||n[ao]>59?ao:n[Vo]<0||n[Vo]>59?Vo:n[la]<0||n[la]>999?la:-1,it(e)._overflowDayOfYear&&(txo)&&(t=xo),it(e)._overflowWeeks&&t===-1&&(t=o8),it(e)._overflowWeekday&&t===-1&&(t=i8),it(e).overflow=t),e}var tz=/^\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)?)?$/,nz=/^\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)?)?$/,rz=/Z|[+-]\d\d(?::?\d\d)?/,fu=[["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]],oh=[["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/]],oz=/^\/?Date\((-?\d+)/i,iz=/^(?:(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}))$/,az={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function d$(e){var t,n,r=e._i,o=tz.exec(r)||nz.exec(r),i,a,l,s,u=fu.length,d=oh.length;if(o){for(it(e).iso=!0,t=0,n=u;txs(a)||e._dayOfYear===0)&&(it(e)._overflowDayOfYear=!0),n=lc(a,0,e._dayOfYear),e._a[Bo]=n.getUTCMonth(),e._a[xo]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=o[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[En]===24&&e._a[ao]===0&&e._a[Vo]===0&&e._a[la]===0&&(e._nextDay=!0,e._a[En]=0),e._d=(e._useUTC?lc:S8).apply(null,r),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[En]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==i&&(it(e).weekdayMismatch=!0)}}function hz(e){var t,n,r,o,i,a,l,s,u;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(i=1,a=4,n=Da(t.GG,e._a[Vn],sc(Ht(),1,4).year),r=Da(t.W,1),o=Da(t.E,1),(o<1||o>7)&&(s=!0)):(i=e._locale._week.dow,a=e._locale._week.doy,u=sc(Ht(),i,a),n=Da(t.gg,e._a[Vn],u.year),r=Da(t.w,u.week),t.d!=null?(o=t.d,(o<0||o>6)&&(s=!0)):t.e!=null?(o=t.e+i,(t.e<0||t.e>6)&&(s=!0)):o=i),r<1||r>Go(n,i,a)?it(e)._overflowWeeks=!0:s!=null?it(e)._overflowWeekday=!0:(l=a$(n,r,o,i,a),e._a[Vn]=l.year,e._dayOfYear=l.dayOfYear)}Pe.ISO_8601=function(){};Pe.RFC_2822=function(){};function g0(e){if(e._f===Pe.ISO_8601){d$(e);return}if(e._f===Pe.RFC_2822){f$(e);return}e._a=[],it(e).empty=!0;var t=""+e._i,n,r,o,i,a,l=t.length,s=0,u,d;for(o=q2(e._f,e._locale).match(o0)||[],d=o.length,n=0;n0&&it(e).unusedInput.push(a),t=t.slice(t.indexOf(r)+r.length),s+=r.length),sl[i]?(r?it(e).empty=!1:it(e).unusedTokens.push(i),r8(i,r,e)):e._strict&&!r&&it(e).unusedTokens.push(i);it(e).charsLeftOver=l-s,t.length>0&&it(e).unusedInput.push(t),e._a[En]<=12&&it(e).bigHour===!0&&e._a[En]>0&&(it(e).bigHour=void 0),it(e).parsedDateParts=e._a.slice(0),it(e).meridiem=e._meridiem,e._a[En]=vz(e._locale,e._a[En],e._meridiem),u=it(e).era,u!==null&&(e._a[Vn]=e._locale.erasConvertYear(u,e._a[Vn])),v0(e),h0(e)}function vz(e,t,n){var r;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):(e.isPM!=null&&(r=e.isPM(n),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function gz(e){var t,n,r,o,i,a,l=!1,s=e._f.length;if(s===0){it(e).invalidFormat=!0,e._d=new Date(NaN);return}for(o=0;othis?this:e:Ef()});function v$(e,t){var n,r;if(t.length===1&&ho(t[0])&&(t=t[0]),!t.length)return Ht();for(n=t[0],r=1;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function jz(){if(!tr(this._isDSTShifted))return this._isDSTShifted;var e={},t;return n0(e,this),e=m$(e),e._a?(t=e._isUTC?Ro(e._a):Ht(e._a),this._isDSTShifted=this.isValid()&&Mz(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Lz(){return this.isValid()?!this._isUTC:!1}function Az(){return this.isValid()?this._isUTC:!1}function p$(){return this.isValid()?this._isUTC&&this._offset===0:!1}var zz=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Hz=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function go(e,t){var n=e,r=null,o,i,a;return ku(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:ei(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=zz.exec(e))?(o=r[1]==="-"?-1:1,n={y:0,d:vt(r[xo])*o,h:vt(r[En])*o,m:vt(r[ao])*o,s:vt(r[Vo])*o,ms:vt(lg(r[la]*1e3))*o}):(r=Hz.exec(e))?(o=r[1]==="-"?-1:1,n={y:Ki(r[2],o),M:Ki(r[3],o),w:Ki(r[4],o),d:Ki(r[5],o),h:Ki(r[6],o),m:Ki(r[7],o),s:Ki(r[8],o)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(a=Bz(Ht(n.from),Ht(n.to)),n={},n.ms=a.milliseconds,n.M=a.months),i=new Tf(n),ku(e)&&xt(e,"_locale")&&(i._locale=e._locale),ku(e)&&xt(e,"_isValid")&&(i._isValid=e._isValid),i}go.fn=Tf.prototype;go.invalid=_z;function Ki(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function aS(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Bz(e,t){var n;return e.isValid()&&t.isValid()?(t=y0(t,e),e.isBefore(t)?n=aS(e,t):(n=aS(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function y$(e,t){return function(n,r){var o,i;return r!==null&&!isNaN(+r)&&(G2(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),o=go(n,r),b$(this,o,e),this}}function b$(e,t,n,r){var o=t._milliseconds,i=lg(t._days),a=lg(t._months);e.isValid()&&(r=r??!0,a&&r$(e,ac(e,"Month")+a*n),i&&e$(e,"Date",ac(e,"Date")+i*n),o&&e._d.setTime(e._d.valueOf()+o*n),r&&Pe.updateOffset(e,i||a))}var Vz=y$(1,"add"),Wz=y$(-1,"subtract");function S$(e){return typeof e=="string"||e instanceof String}function Uz(e){return vo(e)||Cc(e)||S$(e)||ei(e)||Gz(e)||Yz(e)||e===null||e===void 0}function Yz(e){var t=da(e)&&!e0(e),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],o,i,a=r.length;for(o=0;on.valueOf():n.valueOf()9999?Fu(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Io(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Fu(n,"Z")):Fu(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function lH(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,o,i;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",o="-MM-DD[T]HH:mm:ss.SSS",i=t+'[")]',this.format(n+r+o+i)}function sH(e){e||(e=this.isUtc()?Pe.defaultFormatUtc:Pe.defaultFormat);var t=Fu(this,e);return this.localeData().postformat(t)}function cH(e,t){return this.isValid()&&(vo(e)&&e.isValid()||Ht(e).isValid())?go({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function uH(e){return this.from(Ht(),e)}function dH(e,t){return this.isValid()&&(vo(e)&&e.isValid()||Ht(e).isValid())?go({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function fH(e){return this.to(Ht(),e)}function w$(e){var t;return e===void 0?this._locale._abbr:(t=ai(e),t!=null&&(this._locale=t),this)}var C$=qr("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function x$(){return this._locale}var _d=1e3,cl=60*_d,Md=60*cl,E$=(365*400+97)*24*Md;function ul(e,t){return(e%t+t)%t}function $$(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-E$:new Date(e,t,n).valueOf()}function O$(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-E$:Date.UTC(e,t,n)}function mH(e){var t,n;if(e=Kr(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?O$:$$,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=ul(t+(this._isUTC?0:this.utcOffset()*cl),Md);break;case"minute":t=this._d.valueOf(),t-=ul(t,cl);break;case"second":t=this._d.valueOf(),t-=ul(t,_d);break}return this._d.setTime(t),Pe.updateOffset(this,!0),this}function hH(e){var t,n;if(e=Kr(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?O$:$$,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=Md-ul(t+(this._isUTC?0:this.utcOffset()*cl),Md)-1;break;case"minute":t=this._d.valueOf(),t+=cl-ul(t,cl)-1;break;case"second":t=this._d.valueOf(),t+=_d-ul(t,_d)-1;break}return this._d.setTime(t),Pe.updateOffset(this,!0),this}function vH(){return this._d.valueOf()-(this._offset||0)*6e4}function gH(){return Math.floor(this.valueOf()/1e3)}function pH(){return new Date(this.valueOf())}function yH(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function bH(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function SH(){return this.isValid()?this.toISOString():null}function wH(){return t0(this)}function CH(){return Mi({},it(this))}function xH(){return it(this).overflow}function EH(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Xe("N",0,0,"eraAbbr");Xe("NN",0,0,"eraAbbr");Xe("NNN",0,0,"eraAbbr");Xe("NNNN",0,0,"eraName");Xe("NNNNN",0,0,"eraNarrow");Xe("y",["y",1],"yo","eraYear");Xe("y",["yy",2],0,"eraYear");Xe("y",["yyy",3],0,"eraYear");Xe("y",["yyyy",4],0,"eraYear");Ae("N",b0);Ae("NN",b0);Ae("NNN",b0);Ae("NNNN",kH);Ae("NNNNN",DH);Ft(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var o=n._locale.erasParse(e,r,n._strict);o?it(n).era=o:it(n).invalidEra=e});Ae("y",Fl);Ae("yy",Fl);Ae("yyy",Fl);Ae("yyyy",Fl);Ae("yo",jH);Ft(["y","yy","yyy","yyyy"],Vn);Ft(["yo"],function(e,t,n,r){var o;n._locale._eraYearOrdinalRegex&&(o=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Vn]=n._locale.eraYearOrdinalParse(e,o):t[Vn]=parseInt(e,10)});function $H(e,t){var n,r,o,i=this._eras||ai("en")._eras;for(n=0,r=i.length;n=0)return i[r]}function _H(e,t){var n=e.since<=e.until?1:-1;return t===void 0?Pe(e.since).year():Pe(e.since).year()+(t-e.offset)*n}function MH(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;ei&&(t=i),WH.call(this,e,t,n,r,o))}function WH(e,t,n,r,o){var i=a$(e,t,n,r,o),a=lc(i.year,0,i.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}Xe("Q",0,"Qo","quarter");Ae("Q",K2);Ft("Q",function(e,t){t[Bo]=(vt(e)-1)*3});function UH(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}Xe("D",["DD",2],"Do","date");Ae("D",Bt,kl);Ae("DD",Bt,Or);Ae("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});Ft(["D","DD"],xo);Ft("Do",function(e,t){t[xo]=vt(e.match(Bt)[0])});var M$=Dl("Date",!0);Xe("DDD",["DDDD",3],"DDDo","dayOfYear");Ae("DDD",Of);Ae("DDDD",X2);Ft(["DDD","DDDD"],function(e,t,n){n._dayOfYear=vt(e)});function YH(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}Xe("m",["mm",2],0,"minute");Ae("m",Bt,s0);Ae("mm",Bt,Or);Ft(["m","mm"],ao);var GH=Dl("Minutes",!1);Xe("s",["ss",2],0,"second");Ae("s",Bt,s0);Ae("ss",Bt,Or);Ft(["s","ss"],Vo);var qH=Dl("Seconds",!1);Xe("S",0,0,function(){return~~(this.millisecond()/100)});Xe(0,["SS",2],0,function(){return~~(this.millisecond()/10)});Xe(0,["SSS",3],0,"millisecond");Xe(0,["SSSS",4],0,function(){return this.millisecond()*10});Xe(0,["SSSSS",5],0,function(){return this.millisecond()*100});Xe(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});Xe(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});Xe(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});Xe(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});Ae("S",Of,K2);Ae("SS",Of,Or);Ae("SSS",Of,X2);var Pi,P$;for(Pi="SSSS";Pi.length<=9;Pi+="S")Ae(Pi,Fl);function KH(e,t){t[la]=vt(("0."+e)*1e3)}for(Pi="S";Pi.length<=9;Pi+="S")Ft(Pi,KH);P$=Dl("Milliseconds",!1);Xe("z",0,0,"zoneAbbr");Xe("zz",0,0,"zoneName");function XH(){return this._isUTC?"UTC":""}function QH(){return this._isUTC?"Coordinated Universal Time":""}var ye=xc.prototype;ye.add=Vz;ye.calendar=Xz;ye.clone=Qz;ye.diff=oH;ye.endOf=hH;ye.format=sH;ye.from=cH;ye.fromNow=uH;ye.to=dH;ye.toNow=fH;ye.get=l8;ye.invalidAt=xH;ye.isAfter=Zz;ye.isBefore=Jz;ye.isBetween=eH;ye.isSame=tH;ye.isSameOrAfter=nH;ye.isSameOrBefore=rH;ye.isValid=wH;ye.lang=C$;ye.locale=w$;ye.localeData=x$;ye.max=wz;ye.min=Sz;ye.parsingFlags=CH;ye.set=s8;ye.startOf=mH;ye.subtract=Wz;ye.toArray=yH;ye.toObject=bH;ye.toDate=pH;ye.toISOString=aH;ye.inspect=lH;typeof Symbol<"u"&&Symbol.for!=null&&(ye[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});ye.toJSON=SH;ye.toString=iH;ye.unix=gH;ye.valueOf=vH;ye.creationData=EH;ye.eraName=MH;ye.eraNarrow=PH;ye.eraAbbr=RH;ye.eraYear=IH;ye.year=J2;ye.isLeapYear=a8;ye.weekYear=LH;ye.isoWeekYear=AH;ye.quarter=ye.quarters=UH;ye.month=o$;ye.daysInMonth=p8;ye.week=ye.weeks=$8;ye.isoWeek=ye.isoWeeks=O8;ye.weeksInYear=BH;ye.weeksInWeekYear=VH;ye.isoWeeksInYear=zH;ye.isoWeeksInISOWeekYear=HH;ye.date=M$;ye.day=ye.days=A8;ye.weekday=z8;ye.isoWeekday=H8;ye.dayOfYear=YH;ye.hour=ye.hours=q8;ye.minute=ye.minutes=GH;ye.second=ye.seconds=qH;ye.millisecond=ye.milliseconds=P$;ye.utcOffset=Rz;ye.utc=Tz;ye.local=Nz;ye.parseZone=Fz;ye.hasAlignedHourOffset=kz;ye.isDST=Dz;ye.isLocal=Lz;ye.isUtcOffset=Az;ye.isUtc=p$;ye.isUTC=p$;ye.zoneAbbr=XH;ye.zoneName=QH;ye.dates=qr("dates accessor is deprecated. Use date instead.",M$);ye.months=qr("months accessor is deprecated. Use month instead",o$);ye.years=qr("years accessor is deprecated. Use year instead",J2);ye.zone=qr("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Iz);ye.isDSTShifted=qr("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",jz);function ZH(e){return Ht(e*1e3)}function JH(){return Ht.apply(null,arguments).parseZone()}function R$(e){return e}var Et=r0.prototype;Et.calendar=LA;Et.longDateFormat=BA;Et.invalidDate=WA;Et.ordinal=GA;Et.preparse=R$;Et.postformat=R$;Et.relativeTime=KA;Et.pastFuture=XA;Et.set=DA;Et.eras=$H;Et.erasParse=OH;Et.erasConvertYear=_H;Et.erasAbbrRegex=NH;Et.erasNameRegex=TH;Et.erasNarrowRegex=FH;Et.months=m8;Et.monthsShort=h8;Et.monthsParse=g8;Et.monthsRegex=b8;Et.monthsShortRegex=y8;Et.week=w8;Et.firstDayOfYear=E8;Et.firstDayOfWeek=x8;Et.weekdays=F8;Et.weekdaysMin=D8;Et.weekdaysShort=k8;Et.weekdaysParse=L8;Et.weekdaysRegex=B8;Et.weekdaysShortRegex=V8;Et.weekdaysMinRegex=W8;Et.isPM=Y8;Et.meridiem=K8;function Pd(e,t,n,r){var o=ai(),i=Ro().set(r,t);return o[n](i,e)}function I$(e,t,n){if(ei(e)&&(t=e,e=void 0),e=e||"",t!=null)return Pd(e,t,n,"month");var r,o=[];for(r=0;r<12;r++)o[r]=Pd(e,r,n,"month");return o}function w0(e,t,n,r){typeof e=="boolean"?(ei(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,ei(t)&&(n=t,t=void 0),t=t||"");var o=ai(),i=e?o._week.dow:0,a,l=[];if(n!=null)return Pd(t,(n+i)%7,r,"day");for(a=0;a<7;a++)l[a]=Pd(t,(a+i)%7,r,"day");return l}function eB(e,t){return I$(e,t,"months")}function tB(e,t){return I$(e,t,"monthsShort")}function nB(e,t,n){return w0(e,t,n,"weekdays")}function rB(e,t,n){return w0(e,t,n,"weekdaysShort")}function oB(e,t,n){return w0(e,t,n,"weekdaysMin")}Ai("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(e){var t=e%10,n=vt(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}});Pe.lang=qr("moment.lang is deprecated. Use moment.locale instead.",Ai);Pe.langData=qr("moment.langData is deprecated. Use moment.localeData instead.",ai);var No=Math.abs;function iB(){var e=this._data;return this._milliseconds=No(this._milliseconds),this._days=No(this._days),this._months=No(this._months),e.milliseconds=No(e.milliseconds),e.seconds=No(e.seconds),e.minutes=No(e.minutes),e.hours=No(e.hours),e.months=No(e.months),e.years=No(e.years),this}function T$(e,t,n,r){var o=go(t,n);return e._milliseconds+=r*o._milliseconds,e._days+=r*o._days,e._months+=r*o._months,e._bubble()}function aB(e,t){return T$(this,e,t,1)}function lB(e,t){return T$(this,e,t,-1)}function lS(e){return e<0?Math.floor(e):Math.ceil(e)}function sB(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,o,i,a,l,s;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=lS(cg(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,o=Dr(e/1e3),r.seconds=o%60,i=Dr(o/60),r.minutes=i%60,a=Dr(i/60),r.hours=a%24,t+=Dr(a/24),s=Dr(N$(t)),n+=s,t-=lS(cg(s)),l=Dr(n/12),n%=12,r.days=t,r.months=n,r.years=l,this}function N$(e){return e*4800/146097}function cg(e){return e*146097/4800}function cB(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=Kr(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+N$(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(cg(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}function li(e){return function(){return this.as(e)}}var F$=li("ms"),uB=li("s"),dB=li("m"),fB=li("h"),mB=li("d"),hB=li("w"),vB=li("M"),gB=li("Q"),pB=li("y"),yB=F$;function bB(){return go(this)}function SB(e){return e=Kr(e),this.isValid()?this[e+"s"]():NaN}function Ea(e){return function(){return this.isValid()?this._data[e]:NaN}}var wB=Ea("milliseconds"),CB=Ea("seconds"),xB=Ea("minutes"),EB=Ea("hours"),$B=Ea("days"),OB=Ea("months"),_B=Ea("years");function MB(){return Dr(this.days()/7)}var ko=Math.round,Ja={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function PB(e,t,n,r,o){return o.relativeTime(t||1,!!n,e,r)}function RB(e,t,n,r){var o=go(e).abs(),i=ko(o.as("s")),a=ko(o.as("m")),l=ko(o.as("h")),s=ko(o.as("d")),u=ko(o.as("M")),d=ko(o.as("w")),f=ko(o.as("y")),m=i<=n.ss&&["s",i]||i0,m[4]=r,PB.apply(null,m)}function IB(e){return e===void 0?ko:typeof e=="function"?(ko=e,!0):!1}function TB(e,t){return Ja[e]===void 0?!1:t===void 0?Ja[e]:(Ja[e]=t,e==="s"&&(Ja.ss=t-1),!0)}function NB(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=Ja,o,i;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},Ja,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),o=this.localeData(),i=RB(this,!n,r,o),n&&(i=o.pastFuture(+this,i)),o.postformat(i)}var ih=Math.abs;function Fa(e){return(e>0)-(e<0)||+e}function Ff(){if(!this.isValid())return this.localeData().invalidDate();var e=ih(this._milliseconds)/1e3,t=ih(this._days),n=ih(this._months),r,o,i,a,l=this.asSeconds(),s,u,d,f;return l?(r=Dr(e/60),o=Dr(r/60),e%=60,r%=60,i=Dr(n/12),n%=12,a=e?e.toFixed(3).replace(/\.?0+$/,""):"",s=l<0?"-":"",u=Fa(this._months)!==Fa(l)?"-":"",d=Fa(this._days)!==Fa(l)?"-":"",f=Fa(this._milliseconds)!==Fa(l)?"-":"",s+"P"+(i?u+i+"Y":"")+(n?u+n+"M":"")+(t?d+t+"D":"")+(o||r||e?"T":"")+(o?f+o+"H":"")+(r?f+r+"M":"")+(e?f+a+"S":"")):"P0D"}var yt=Tf.prototype;yt.isValid=Oz;yt.abs=iB;yt.add=aB;yt.subtract=lB;yt.as=cB;yt.asMilliseconds=F$;yt.asSeconds=uB;yt.asMinutes=dB;yt.asHours=fB;yt.asDays=mB;yt.asWeeks=hB;yt.asMonths=vB;yt.asQuarters=gB;yt.asYears=pB;yt.valueOf=yB;yt._bubble=sB;yt.clone=bB;yt.get=SB;yt.milliseconds=wB;yt.seconds=CB;yt.minutes=xB;yt.hours=EB;yt.days=$B;yt.weeks=MB;yt.months=OB;yt.years=_B;yt.humanize=NB;yt.toISOString=Ff;yt.toString=Ff;yt.toJSON=Ff;yt.locale=w$;yt.localeData=x$;yt.toIsoString=qr("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Ff);yt.lang=C$;Xe("X",0,0,"unix");Xe("x",0,0,"valueOf");Ae("x",Mf);Ae("X",e8);Ft("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});Ft("x",function(e,t,n){n._d=new Date(vt(e))});//! moment.js -Pe.version="2.30.1";FA(Ht);Pe.fn=ye;Pe.min=Cz;Pe.max=xz;Pe.now=Ez;Pe.utc=Ro;Pe.unix=ZH;Pe.months=eB;Pe.isDate=Cc;Pe.locale=Ai;Pe.invalid=Ef;Pe.duration=go;Pe.isMoment=vo;Pe.weekdays=nB;Pe.parseZone=JH;Pe.localeData=ai;Pe.isDuration=ku;Pe.monthsShort=tB;Pe.weekdaysMin=oB;Pe.defineLocale=m0;Pe.updateLocale=J8;Pe.locales=ez;Pe.weekdaysShort=rB;Pe.normalizeUnits=Kr;Pe.relativeTimeRounding=IB;Pe.relativeTimeThreshold=TB;Pe.calendarFormat=Kz;Pe.prototype=ye;Pe.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"};const ug={model:"XIAOMI 13 ULTRA",date:Pe().format("YYYY.MM.DD HH:mm"),gps:`41°12'47"N 124°00'16"W`,device:"75mm f/1.8 1/33s ISO800",brand:"leica",brand_url:"./brand/leica.svg",scale:.8,fontSize:"normal",fontWeight:"bold",fontFamily:"misans"},sS=["./exhibition/apple.jpg","./exhibition/canon.jpg","./exhibition/dji.jpg","./exhibition/fujifilm.jpg","./exhibition/huawei.jpg","./exhibition/leica.jpg","./exhibition/xiaomi.jpg","./exhibition/nikon.jpg","./exhibition/sony.jpg","./exhibition/panasonic.jpg"];function cS(e,t){if(!e)return"";const[n,r,o,i]=e.match(/(\d+\.?\d*)|([NSWE]$)/gim).map(a=>Number.isNaN(Number(a))?a:`${~~a}`.padStart(2,"0"));return t?`${n}°${r}'${o}"${t}`:i?`${n}°${r}'${o}"${i}`:`${n}°${r}'${o}"`}function FB(e){if((e||"")==="Arashi Vision")return"insta360";const t=(e||"").toLowerCase();for(const n of V2.map(r=>r.toLowerCase()))if(t.includes(n))return n;return t}function kB(e){if(!e)return"";const[t,n]=e.split("/").filter(Boolean).map(r=>Math.floor(Number(r)));return[t,n].join("/")}function DB(e){return e?Pe(e).format("YYYY-MM-DD HH:mm"):Pe().format("YYYY.MM.DD HH:mm")}function jB(e,t){const n=e.replace(/[",]/g,"");return t==="sony"?n.replace(/[",]/g,"").replace("ILCE-","α").toLowerCase():t==="nikon corporation"?n.replace(/Z/gi,"ℤ"):t==="panasonic"&&(n.startsWith("DMC-")||n.startsWith("DC-"))?`LUMIX ${n}`:n}function dg(e){const t=new Map(e.map(s=>[s.tag,s.value])),n=new Map(e.map(s=>[s.tag,s.value_with_unit])),r=(t.get("Make")||"").replace(/[",]/g,""),o=FB(r||"unknow");if(o==="unknow")return ug;const i={GPSLatitude:"",GPSLatitudeRef:"",GPSLongitude:"",GPSLongitudeRef:"",FocalLengthIn35mmFilm:"",FocalLength:"",FNumber:"",ExposureTime:"",PhotographicSensitivity:"",Model:"",Make:"",DateTimeOriginal:""};i.Make=r,i.Model=`${jB(t.get("Model")||"",o)}`,i.GPSLatitude=t.get("GPSLatitude")||"",i.GPSLatitudeRef=t.get("GPSLatitudeRef")||"",i.GPSLongitude=t.get("GPSLongitude")||"",i.GPSLongitudeRef=t.get("GPSLongitudeRef")||"",i.FocalLengthIn35mmFilm=n.get("FocalLengthIn35mmFilm")||"",i.FocalLength=n.get("FocalLength")||"",i.FNumber=n.get("FNumber")||"",i.ExposureTime=t.get("ExposureTime")||"",i.PhotographicSensitivity=t.get("PhotographicSensitivity")||"",i.DateTimeOriginal=t.get("DateTimeOriginal")||"";const a=`${cS(i.GPSLatitude,i.GPSLatitudeRef)} ${cS(i.GPSLongitude,i.GPSLongitudeRef)}`,l=[`${(i.FocalLengthIn35mmFilm||i.FocalLength).replace(/\s+/g,"")}`,i.FNumber?.split("/")?.map((s,u)=>u?(+s).toFixed(1):s).join("/"),i.ExposureTime?`${kB(i.ExposureTime)}s`:"",i.PhotographicSensitivity?`ISO${i.PhotographicSensitivity}`:""].filter(Boolean).join(" ");return{model:i.Model||"PICSEAL",date:`${DB(i.DateTimeOriginal)}`,gps:a,device:l,brand:o}}function k$(){const e=Math.floor(Math.random()*sS.length);return sS[e]}function LB(e){const t=atob(e.split(",")[1]),n=e.split(",")[0].split(":")[1].split(";")[0],r=new ArrayBuffer(t.length),o=new Uint8Array(r);for(let i=0;i{const r=new FileReader;r.onloadend=async o=>{const i=o.target?.result;if(!i)return n(new Error("Failed to read raw image data"));const a=new DataView(i);let l=0;if(a.getUint16(l)!==BB)return n(new Error("not a valid jpeg"));for(l+=2;l{throw Error("TextDecoder not available")}};typeof TextDecoder<"u"&&L$.decode();let as=null;function $s(){return(as===null||as.byteLength===0)&&(as=new Uint8Array(lr.memory.buffer)),as}function ah(e,t){return e=e>>>0,L$.decode($s().subarray(e,e+t))}let uc=0;function YB(e,t){const n=t(e.length*1,1)>>>0;return $s().set(e,n/1),uc=e.length,n}function fg(e){const t=YB(e,lr.__wbindgen_malloc),n=uc,r=lr.get_exif(t,n);return j$(r)}function mg(e){Es===Lo.length&&Lo.push(Lo.length+1);const t=Es;return Es=Lo[t],Lo[t]=e,t}const ju=typeof TextEncoder<"u"?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},GB=typeof ju.encodeInto=="function"?function(e,t){return ju.encodeInto(e,t)}:function(e,t){const n=ju.encode(e);return t.set(n),{read:e.length,written:n.length}};function qB(e,t,n){if(n===void 0){const l=ju.encode(e),s=t(l.length,1)>>>0;return $s().subarray(s,s+l.length).set(l),uc=l.length,s}let r=e.length,o=t(r,1)>>>0;const i=$s();let a=0;for(;a127)break;i[o+a]=l}if(a!==r){a!==0&&(e=e.slice(a)),o=n(o,r,r=a+e.length*3,1)>>>0;const l=$s().subarray(o+a,o+r),s=GB(e,l);a+=s.written,o=n(o,r,a,1)>>>0}return uc=a,o}let Zi=null;function uS(){return(Zi===null||Zi.buffer.detached===!0||Zi.buffer.detached===void 0&&Zi.buffer!==lr.memory.buffer)&&(Zi=new DataView(lr.memory.buffer)),Zi}function KB(e,t){try{return e.apply(this,t)}catch(n){lr.__wbindgen_exn_store(mg(n))}}async function XB(e,t){if(typeof Response=="function"&&e instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(e,t)}catch(r){if(e.headers.get("Content-Type")!="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",r);else throw r}const n=await e.arrayBuffer();return await WebAssembly.instantiate(n,t)}else{const n=await WebAssembly.instantiate(e,t);return n instanceof WebAssembly.Instance?{instance:n,module:e}:n}}function QB(){const e={};return e.wbg={},e.wbg.__wbg_new_abda76e883ba8a5f=function(){const t=new Error;return mg(t)},e.wbg.__wbg_stack_658279fe44541cf6=function(t,n){const r=D$(n).stack,o=qB(r,lr.__wbindgen_malloc,lr.__wbindgen_realloc),i=uc;uS().setInt32(t+4*1,i,!0),uS().setInt32(t+4*0,o,!0)},e.wbg.__wbg_error_f851667af71bcfc6=function(t,n){let r,o;try{r=t,o=n,console.error(ah(t,n))}finally{lr.__wbindgen_free(r,o,1)}},e.wbg.__wbindgen_object_drop_ref=function(t){j$(t)},e.wbg.__wbg_parse_51ee5409072379d3=function(){return KB(function(t,n){const r=JSON.parse(ah(t,n));return mg(r)},arguments)},e.wbg.__wbindgen_throw=function(t,n){throw new Error(ah(t,n))},e}function ZB(e,t){return lr=e.exports,A$.__wbindgen_wasm_module=t,Zi=null,as=null,lr.__wbindgen_start(),lr}async function A$(e){if(lr!==void 0)return lr;typeof e<"u"&&(Object.getPrototypeOf(e)===Object.prototype?{module_or_path:e}=e:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),typeof e>"u"&&(e=new URL("/assets/gen_brand_photo_pictrue_bg-6lfZCE4a.wasm",import.meta.url));const t=QB();(typeof e=="string"||typeof Request=="function"&&e instanceof Request||typeof URL=="function"&&e instanceof URL)&&(e=fetch(e));const{instance:n,module:r}=await XB(await e,t);return ZB(n,r)}function JB(e,t){const[n,r]=c.useState(t),[o,i]=c.useState(k$()),a=c.useRef(null),[l,s]=c.useState(),[u,d]=c.useState(null);return{imgRef:a,imgUrl:o,setImgUrl:i,formValue:n,setFormValue:r,handleAdd:v=>{const C=new FileReader;return C.onloadend=async w=>{try{const E=fg(new Uint8Array(w.target.result)),x=dg(E),$={...n,...x,brand_url:Nu(x.brand)};console.log("original EXIF data: ",E),console.log("parsed EXIF data: ",x),e.current.setFieldsValue($),r($),i(URL.createObjectURL(new Blob([v],{type:v.type})));const O=await VB(new Blob([v]));d(O),s(v.type)}catch(E){console.error("Error parsing EXIF data:",E),tg.error("无法识别照片特定数据,请换一张照片",300)}},C.readAsArrayBuffer(v),!1},handleDownload:async v=>{const C=document.getElementById("preview"),w=4;try{let E;l==="image/png"?(console.log("dom to png"),E=await tS.toPng(C,{quality:1,width:C.clientWidth*w,height:C.clientHeight*w,style:{transform:`scale(${w})`,transformOrigin:"top left"}})):E=await tS.toJpeg(C,{quality:1,width:C.clientWidth*w,height:C.clientHeight*w,style:{transform:`scale(${w})`,transformOrigin:"top left"}});const x=document.createElement("a");if(v&&u)if(l==="image/jpeg"||l==="image/jpg"){console.log("embed exif in jpg");const O=LB(E),_=await WB(u,O);x.href=URL.createObjectURL(_)}else console.warn("EXIF blob data can only be embedded in JPEG or JPG images."),x.href=E;else x.href=E;const $=(l||"jpg").replace(/image\//g,"");x.download=`${Date.now()}.${$}`,document.body.appendChild(x),x.click(),x.remove()}catch(E){console.error("Download Error:",E),tg.error("导出失败,请重试")}},handleFormChange:(v,C)=>{r({...C,brand_url:Nu(C.brand)})},handleFontSizeChange:v=>{const C={small:"var(--font-size-small)",normal:"var(--font-size-normal)",large:"var(--font-size-large)"};document.documentElement.style.setProperty("--current-font-size",C[v]),r(w=>({...w,fontSize:v}))},handleFontWeightChange:v=>{const C={normal:"var(--font-weight-normal)",bold:"var(--font-weight-bold)",black:"var(--font-weight-black)"};document.documentElement.style.setProperty("--current-font-weight",C[v]),r(w=>({...w,fontWeight:v}))},handleFontFamilyChange:v=>{const C={default:"var(--font-family-default)",caveat:"var(--font-family-caveat)",misans:"var(--font-family-misans)",helvetica:"var(--font-family-helvetica)",futura:"var(--font-family-futura)",avenir:"var(--font-family-avenir)",didot:"var(--font-family-didot)"};document.documentElement.style.setProperty("--current-font-family",C[v]),r(w=>({...w,fontFamily:v}))},handleScaleChange:v=>{document.documentElement.style.setProperty("--banner-scale",v),r(C=>({...C,scale:v}))},handleExhibitionClick:async v=>{const C=`./exhibition/${v.toLowerCase()}.jpg`;a.current&&a.current.classList.add("fade"),setTimeout(async()=>{i(C);const x=await(await(await fetch(C)).blob()).arrayBuffer(),$=fg(new Uint8Array(x)),O=dg($),_={...n,...O,brand_url:Nu(O.brand)};e.current.setFieldsValue(_),r(_),a.current&&(a.current.classList.remove("fade"),a.current.classList.add("loaded"))},500)}}}const vr=nR({scriptUrl:["//at.alicdn.com/t/c/font_4757469_kkotyy5658l.js"]});function e9(){const e=c.useRef(),{imgRef:t,imgUrl:n,setImgUrl:r,formValue:o,setFormValue:i,handleAdd:a,handleDownload:l,handleFormChange:s,handleFontSizeChange:u,handleFontWeightChange:d,handleFontFamilyChange:f,handleScaleChange:m,handleExhibitionClick:g}=JB(e,ug),[b,y]=c.useState(!1),[S,p]=c.useState(!1),h=c.useRef(ug);return c.useEffect(()=>{(async()=>{await A$(),y(!0)})()},[]),c.useEffect(()=>{(async()=>{const C=k$(),w=new Image;w.src=C,w.onload=async()=>{const $=await(await(await fetch(C)).blob()).arrayBuffer(),O=fg(new Uint8Array($)),_=dg(O);r(C),t.current&&t.current.classList.add("loaded");const R={...h.current,..._,brand_url:Nu(_.brand)};e.current.setFieldsValue(R),i(R),h.current=R}})()},[b,t,r,i]),b?ue.jsxs(ue.Fragment,{children:[ue.jsx(jo.Title,{level:2,className:"picseal-title",children:"PICSEAL"}),ue.jsx(F6,{}),ue.jsx(jo.Text,{className:"picseal-description",children:"小米照片风格水印照片,支持佳能、尼康、索尼、苹果、华为、小米、大疆。"}),ue.jsxs("div",{className:"preview-box",children:[ue.jsx(jo.Title,{level:4,children:"预览"}),ue.jsxs("div",{className:"preview",id:"preview",children:[ue.jsx("img",{ref:t,className:"preview-picture",src:n,alt:"Preview"}),ue.jsxs("div",{className:"preview-info",children:[ue.jsxs("div",{className:"preview-info-left",children:[ue.jsx("div",{className:"preview-info-model",children:o.model}),ue.jsx("div",{className:"preview-info-date",children:o.date}),ue.jsx("div",{className:"preview-info-brand",children:ue.jsx("img",{src:o.brand_url,alt:"Brand"})})]}),ue.jsx("div",{className:"preview-info-split"}),ue.jsxs("div",{className:"preview-info-right",children:[ue.jsx("div",{className:"preview-info-device",children:o.device}),ue.jsx("div",{className:"preview-info-gps",children:o.gps})]})]})]})]}),ue.jsx("div",{className:"exhibition",children:ue.jsxs(jb,{wrap:!0,gap:"middle",horizontal:"true",justify:"center",align:"center",children:[ue.jsxs(gn,{type:"primary",shape:"round",size:"default",ghost:!0,onClick:()=>g("apple"),children:[ue.jsx(vr,{type:"icon-apple",style:{fontSize:"16px"}}),"Apple"]}),ue.jsxs(gn,{type:"primary",shape:"round",size:"default",ghost:!0,onClick:()=>g("canon"),children:[ue.jsx(vr,{type:"icon-jianeng",style:{fontSize:"28px"}}),"Cannon"]}),ue.jsxs(gn,{type:"primary",shape:"round",size:"default",ghost:!0,onClick:()=>g("dji"),children:[ue.jsx(vr,{type:"icon-DJI",style:{fontSize:"28px"}}),"Dji"]}),ue.jsxs(gn,{type:"primary",shape:"round",size:"default",ghost:!0,onClick:()=>g("fujifilm"),children:[ue.jsx(vr,{type:"icon-fushi",style:{fontSize:"28px"}}),"Fuji"]}),ue.jsxs(gn,{type:"primary",shape:"round",size:"default",ghost:!0,onClick:()=>g("huawei"),children:[ue.jsx(vr,{type:"icon-huawei1",style:{fontSize:"16px"}}),"Huawei"]}),ue.jsxs(gn,{type:"primary",shape:"round",size:"default",ghost:!0,onClick:()=>g("leica"),children:[ue.jsx(vr,{type:"icon-laika",style:{fontSize:"16px"}}),"Leica"]}),ue.jsxs(gn,{type:"primary",shape:"round",size:"default",ghost:!0,onClick:()=>g("xiaomi"),children:[ue.jsx(vr,{type:"icon-icon-xiaomiguishu",style:{fontSize:"16px"}}),"Xiaomi"]}),ue.jsxs(gn,{type:"primary",shape:"round",size:"default",ghost:!0,onClick:()=>g("nikon"),children:[ue.jsx(vr,{type:"icon-nikon",style:{fontSize:"16px"}}),"Nikon"]}),ue.jsxs(gn,{type:"primary",shape:"round",size:"default",ghost:!0,onClick:()=>g("sony"),children:[ue.jsx(vr,{type:"icon-sony",style:{fontSize:"28px"}}),"Sony"]}),ue.jsxs(gn,{type:"primary",shape:"round",size:"default",ghost:!0,onClick:()=>g("panasonic"),children:[ue.jsx(vr,{type:"icon-panasonic",style:{fontSize:"36px"}}),"Panasonic"]}),ue.jsxs(gn,{type:"primary",shape:"round",size:"default",ghost:!0,onClick:()=>g("ricoh"),children:[ue.jsx(vr,{type:"icon-ricoh",style:{fontSize:"28px"}}),"Ricoh"]}),ue.jsxs(gn,{type:"primary",shape:"round",size:"default",ghost:!0,onClick:()=>g("olympus"),children:[ue.jsx(vr,{type:"icon-olympus",style:{fontSize:"36px"}}),"Olympus"]}),ue.jsxs(gn,{type:"primary",shape:"round",size:"default",ghost:!0,onClick:()=>g("insta360"),children:[ue.jsx(vr,{type:"icon-insta360",style:{fontSize:"46px"}}),"Insta360"]})]})}),ue.jsx("div",{className:"op",children:ue.jsxs(C2,{size:"large",children:[ue.jsx(Jp,{accept:"image/*",beforeUpload:v=>(a(v),!1),fileList:[],children:ue.jsx(gn,{type:"primary",shape:"round",icon:ue.jsx(UP,{}),ghost:!0,children:"新建照片"})}),ue.jsx(gn,{type:"primary",shape:"round",icon:ue.jsx(zC,{}),onClick:()=>l(S),children:"导出照片"})]})}),ue.jsxs("div",{className:"props",children:[ue.jsx("div",{className:"props-title",children:ue.jsx(jo.Title,{level:4,children:"参数"})}),ue.jsxs("div",{className:"props-option",children:[ue.jsxs(jb,{wrap:!0,gap:"small",horizontal:"true",justify:"flex-start",align:"center",children:[ue.jsx(jo.Text,{className:"switch-title",children:"导出 EXIF"}),ue.jsx(ii,{placement:"topLeft",title:"实验性功能:嵌入原图 EXIF 信息至导出图片,只支持 JPEG",children:ue.jsx(j2,{defaultChecked:S,onClick:()=>p(!S)})})]}),ue.jsxs(Mn,{ref:e,labelCol:{span:4},wrapperCol:{span:14},layout:"horizontal",size:"small",style:{maxWidth:800},initialValues:o,onValuesChange:s,children:[ue.jsx(Mn.Item,{label:"横幅大小",name:"scale",children:ue.jsx(Tj,{min:.5,max:1.2,step:.1,onChange:m})}),ue.jsx(Mn.Item,{label:"相机型号",name:"model",children:ue.jsx(Ho,{})}),ue.jsx(Mn.Item,{label:"相机品牌",name:"brand",children:ue.jsx(Jt,{style:{width:170},children:V2.map(v=>ue.jsx(Jt.Option,{value:v.toLowerCase(),children:v},v))})}),ue.jsx(Mn.Item,{label:"拍摄参数",name:"device",children:ue.jsx(Ho,{})}),ue.jsx(Mn.Item,{label:"拍摄时间",name:"date",children:ue.jsx(Ho,{})}),ue.jsx(Mn.Item,{label:"拍摄地点",name:"gps",children:ue.jsx(Ho,{})}),ue.jsx(Mn.Item,{label:"字体大小",name:"fontSize",children:ue.jsxs(Jt,{style:{width:170},onChange:u,children:[ue.jsx(Jt.Option,{value:"small",children:"小"}),ue.jsx(Jt.Option,{value:"normal",children:"正常"}),ue.jsx(Jt.Option,{value:"large",children:"大"})]})}),ue.jsx(Mn.Item,{label:"字体粗细",name:"fontWeight",children:ue.jsxs(Jt,{style:{width:170},onChange:d,children:[ue.jsx(Jt.Option,{value:"normal",children:"正常"}),ue.jsx(Jt.Option,{value:"bold",children:"加粗"}),ue.jsx(Jt.Option,{value:"black",children:"黑体"})]})}),ue.jsx(Mn.Item,{label:"字体",name:"fontFamily",children:ue.jsxs(Jt,{style:{width:170},onChange:f,children:[ue.jsx(Jt.Option,{value:"default",children:"Default"}),ue.jsx(Jt.Option,{value:"misans",children:"MiSans"}),ue.jsx(Jt.Option,{value:"caveat",children:"Caveat"}),ue.jsx(Jt.Option,{value:"helvetica",children:"Helvetica Neue"}),ue.jsx(Jt.Option,{value:"futura",children:"Futura"}),ue.jsx(Jt.Option,{value:"avenir",children:"Avenir"}),ue.jsx(Jt.Option,{value:"didot",children:"Didot"})]})})]})]})]})]}):ue.jsx("div",{children:"Loading WASM..."})}function t9(){return ue.jsxs("a",{href:"https://github.com/zhiweio/picseal",className:"github-corner","aria-label":"View source on GitHub",children:[ue.jsxs("svg",{width:"80",height:"80",viewBox:"0 0 250 250",style:{fill:"#70B7FD",color:"#fff",position:"absolute",top:0,border:0,right:0},"aria-hidden":"true",children:[ue.jsx("path",{d:"M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"}),ue.jsx("path",{d:"M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2",fill:"currentColor",style:{transformOrigin:"130px 106px"},className:"octo-arm"}),ue.jsx("path",{d:"M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z",fill:"currentColor",className:"octo-body"})]}),ue.jsx("style",{children:` +Pe.version="2.30.1";FA(Ht);Pe.fn=ye;Pe.min=Cz;Pe.max=xz;Pe.now=Ez;Pe.utc=Ro;Pe.unix=ZH;Pe.months=eB;Pe.isDate=Cc;Pe.locale=Ai;Pe.invalid=Ef;Pe.duration=go;Pe.isMoment=vo;Pe.weekdays=nB;Pe.parseZone=JH;Pe.localeData=ai;Pe.isDuration=ku;Pe.monthsShort=tB;Pe.weekdaysMin=oB;Pe.defineLocale=m0;Pe.updateLocale=J8;Pe.locales=ez;Pe.weekdaysShort=rB;Pe.normalizeUnits=Kr;Pe.relativeTimeRounding=IB;Pe.relativeTimeThreshold=TB;Pe.calendarFormat=Kz;Pe.prototype=ye;Pe.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"};const ug={model:"XIAOMI 13 ULTRA",date:Pe().format("YYYY.MM.DD HH:mm"),gps:`41°12'47"N 124°00'16"W`,device:"75mm f/1.8 1/33s ISO800",brand:"leica",brand_url:"./brand/leica.svg",scale:.8,fontSize:"normal",fontWeight:"bold",fontFamily:"misans"},sS=["./exhibition/apple.jpg","./exhibition/canon.jpg","./exhibition/dji.jpg","./exhibition/fujifilm.jpg","./exhibition/huawei.jpg","./exhibition/leica.jpg","./exhibition/xiaomi.jpg","./exhibition/nikon.jpg","./exhibition/sony.jpg","./exhibition/panasonic.jpg"];function cS(e,t){if(!e)return"";const[n,r,o,i]=e.match(/(\d+\.?\d*)|([NSWE]$)/gim).map(a=>Number.isNaN(Number(a))?a:`${~~a}`.padStart(2,"0"));return t?`${n}°${r}'${o}"${t}`:i?`${n}°${r}'${o}"${i}`:`${n}°${r}'${o}"`}function FB(e){if((e||"")==="Arashi Vision")return"insta360";const t=(e||"").toLowerCase();for(const n of V2.map(r=>r.toLowerCase()))if(t.includes(n))return n;return t}function kB(e){if(!e)return"";const[t,n]=e.split("/").filter(Boolean).map(r=>Math.floor(Number(r)));return[t,n].join("/")}function DB(e){return e?Pe(e).format("YYYY-MM-DD HH:mm"):Pe().format("YYYY.MM.DD HH:mm")}function jB(e,t){const n=e.replace(/[",]/g,"");return t==="sony"?n.replace(/[",]/g,"").replace("ILCE-","α").toLowerCase():t==="nikon corporation"?n.replace(/Z/gi,"ℤ"):t==="panasonic"&&(n.startsWith("DMC-")||n.startsWith("DC-"))?`LUMIX ${n}`:n}function dg(e){const t=new Map(e.map(s=>[s.tag,s.value])),n=new Map(e.map(s=>[s.tag,s.value_with_unit])),r=(t.get("Make")||"").replace(/[",]/g,""),o=FB(r||"unknow");if(o==="unknow")return ug;const i={GPSLatitude:"",GPSLatitudeRef:"",GPSLongitude:"",GPSLongitudeRef:"",FocalLengthIn35mmFilm:"",FocalLength:"",FNumber:"",ExposureTime:"",PhotographicSensitivity:"",Model:"",Make:"",DateTimeOriginal:""};i.Make=r,i.Model=`${jB(t.get("Model")||"",o)}`,i.GPSLatitude=t.get("GPSLatitude")||"",i.GPSLatitudeRef=t.get("GPSLatitudeRef")||"",i.GPSLongitude=t.get("GPSLongitude")||"",i.GPSLongitudeRef=t.get("GPSLongitudeRef")||"",i.FocalLengthIn35mmFilm=n.get("FocalLengthIn35mmFilm")||"",i.FocalLength=n.get("FocalLength")||"",i.FNumber=n.get("FNumber")||"",i.ExposureTime=t.get("ExposureTime")||"",i.PhotographicSensitivity=t.get("PhotographicSensitivity")||"",i.DateTimeOriginal=t.get("DateTimeOriginal")||"";const a=`${cS(i.GPSLatitude,i.GPSLatitudeRef)} ${cS(i.GPSLongitude,i.GPSLongitudeRef)}`,l=[`${(i.FocalLengthIn35mmFilm||i.FocalLength).replace(/\s+/g,"")}`,i.FNumber?.split("/")?.map((s,u)=>u?(+s).toFixed(1):s).join("/"),i.ExposureTime?`${kB(i.ExposureTime)}s`:"",i.PhotographicSensitivity?`ISO${i.PhotographicSensitivity}`:""].filter(Boolean).join(" ");return{model:i.Model||"PICSEAL",date:`${DB(i.DateTimeOriginal)}`,gps:a,device:l,brand:o}}function k$(){const e=Math.floor(Math.random()*sS.length);return sS[e]}function LB(e){const t=atob(e.split(",")[1]),n=e.split(",")[0].split(":")[1].split(";")[0],r=new ArrayBuffer(t.length),o=new Uint8Array(r);for(let i=0;i{const r=new FileReader;r.onloadend=async o=>{const i=o.target?.result;if(!i)return n(new Error("Failed to read raw image data"));const a=new DataView(i);let l=0;if(a.getUint16(l)!==BB)return n(new Error("not a valid jpeg"));for(l+=2;l{throw Error("TextDecoder not available")}};typeof TextDecoder<"u"&&L$.decode();let as=null;function $s(){return(as===null||as.byteLength===0)&&(as=new Uint8Array(lr.memory.buffer)),as}function ah(e,t){return e=e>>>0,L$.decode($s().subarray(e,e+t))}let uc=0;function YB(e,t){const n=t(e.length*1,1)>>>0;return $s().set(e,n/1),uc=e.length,n}function fg(e){const t=YB(e,lr.__wbindgen_malloc),n=uc,r=lr.get_exif(t,n);return j$(r)}function mg(e){Es===Lo.length&&Lo.push(Lo.length+1);const t=Es;return Es=Lo[t],Lo[t]=e,t}const ju=typeof TextEncoder<"u"?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},GB=typeof ju.encodeInto=="function"?function(e,t){return ju.encodeInto(e,t)}:function(e,t){const n=ju.encode(e);return t.set(n),{read:e.length,written:n.length}};function qB(e,t,n){if(n===void 0){const l=ju.encode(e),s=t(l.length,1)>>>0;return $s().subarray(s,s+l.length).set(l),uc=l.length,s}let r=e.length,o=t(r,1)>>>0;const i=$s();let a=0;for(;a127)break;i[o+a]=l}if(a!==r){a!==0&&(e=e.slice(a)),o=n(o,r,r=a+e.length*3,1)>>>0;const l=$s().subarray(o+a,o+r),s=GB(e,l);a+=s.written,o=n(o,r,a,1)>>>0}return uc=a,o}let Zi=null;function uS(){return(Zi===null||Zi.buffer.detached===!0||Zi.buffer.detached===void 0&&Zi.buffer!==lr.memory.buffer)&&(Zi=new DataView(lr.memory.buffer)),Zi}function KB(e,t){try{return e.apply(this,t)}catch(n){lr.__wbindgen_exn_store(mg(n))}}async function XB(e,t){if(typeof Response=="function"&&e instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(e,t)}catch(r){if(e.headers.get("Content-Type")!="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",r);else throw r}const n=await e.arrayBuffer();return await WebAssembly.instantiate(n,t)}else{const n=await WebAssembly.instantiate(e,t);return n instanceof WebAssembly.Instance?{instance:n,module:e}:n}}function QB(){const e={};return e.wbg={},e.wbg.__wbg_new_abda76e883ba8a5f=function(){const t=new Error;return mg(t)},e.wbg.__wbg_stack_658279fe44541cf6=function(t,n){const r=D$(n).stack,o=qB(r,lr.__wbindgen_malloc,lr.__wbindgen_realloc),i=uc;uS().setInt32(t+4*1,i,!0),uS().setInt32(t+4*0,o,!0)},e.wbg.__wbg_error_f851667af71bcfc6=function(t,n){let r,o;try{r=t,o=n,console.error(ah(t,n))}finally{lr.__wbindgen_free(r,o,1)}},e.wbg.__wbindgen_object_drop_ref=function(t){j$(t)},e.wbg.__wbg_parse_51ee5409072379d3=function(){return KB(function(t,n){const r=JSON.parse(ah(t,n));return mg(r)},arguments)},e.wbg.__wbindgen_throw=function(t,n){throw new Error(ah(t,n))},e}function ZB(e,t){return lr=e.exports,A$.__wbindgen_wasm_module=t,Zi=null,as=null,lr.__wbindgen_start(),lr}async function A$(e){if(lr!==void 0)return lr;typeof e<"u"&&(Object.getPrototypeOf(e)===Object.prototype?{module_or_path:e}=e:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),typeof e>"u"&&(e=new URL("https://zhiweio.github.io/picseal/assets/gen_brand_photo_pictrue_bg-6lfZCE4a.wasm",import.meta.url));const t=QB();(typeof e=="string"||typeof Request=="function"&&e instanceof Request||typeof URL=="function"&&e instanceof URL)&&(e=fetch(e));const{instance:n,module:r}=await XB(await e,t);return ZB(n,r)}function JB(e,t){const[n,r]=c.useState(t),[o,i]=c.useState(k$()),a=c.useRef(null),[l,s]=c.useState(),[u,d]=c.useState(null);return{imgRef:a,imgUrl:o,setImgUrl:i,formValue:n,setFormValue:r,handleAdd:v=>{const C=new FileReader;return C.onloadend=async w=>{try{const E=fg(new Uint8Array(w.target.result)),x=dg(E),$={...n,...x,brand_url:Nu(x.brand)};console.log("original EXIF data: ",E),console.log("parsed EXIF data: ",x),e.current.setFieldsValue($),r($),i(URL.createObjectURL(new Blob([v],{type:v.type})));const O=await VB(new Blob([v]));d(O),s(v.type)}catch(E){console.error("Error parsing EXIF data:",E),tg.error("无法识别照片特定数据,请换一张照片",300)}},C.readAsArrayBuffer(v),!1},handleDownload:async v=>{const C=document.getElementById("preview"),w=4;try{let E;l==="image/png"?(console.log("dom to png"),E=await tS.toPng(C,{quality:1,width:C.clientWidth*w,height:C.clientHeight*w,style:{transform:`scale(${w})`,transformOrigin:"top left"}})):E=await tS.toJpeg(C,{quality:1,width:C.clientWidth*w,height:C.clientHeight*w,style:{transform:`scale(${w})`,transformOrigin:"top left"}});const x=document.createElement("a");if(v&&u)if(l==="image/jpeg"||l==="image/jpg"){console.log("embed exif in jpg");const O=LB(E),_=await WB(u,O);x.href=URL.createObjectURL(_)}else console.warn("EXIF blob data can only be embedded in JPEG or JPG images."),x.href=E;else x.href=E;const $=(l||"jpg").replace(/image\//g,"");x.download=`${Date.now()}.${$}`,document.body.appendChild(x),x.click(),x.remove()}catch(E){console.error("Download Error:",E),tg.error("导出失败,请重试")}},handleFormChange:(v,C)=>{r({...C,brand_url:Nu(C.brand)})},handleFontSizeChange:v=>{const C={small:"var(--font-size-small)",normal:"var(--font-size-normal)",large:"var(--font-size-large)"};document.documentElement.style.setProperty("--current-font-size",C[v]),r(w=>({...w,fontSize:v}))},handleFontWeightChange:v=>{const C={normal:"var(--font-weight-normal)",bold:"var(--font-weight-bold)",black:"var(--font-weight-black)"};document.documentElement.style.setProperty("--current-font-weight",C[v]),r(w=>({...w,fontWeight:v}))},handleFontFamilyChange:v=>{const C={default:"var(--font-family-default)",caveat:"var(--font-family-caveat)",misans:"var(--font-family-misans)",helvetica:"var(--font-family-helvetica)",futura:"var(--font-family-futura)",avenir:"var(--font-family-avenir)",didot:"var(--font-family-didot)"};document.documentElement.style.setProperty("--current-font-family",C[v]),r(w=>({...w,fontFamily:v}))},handleScaleChange:v=>{document.documentElement.style.setProperty("--banner-scale",v),r(C=>({...C,scale:v}))},handleExhibitionClick:async v=>{const C=`./exhibition/${v.toLowerCase()}.jpg`;a.current&&a.current.classList.add("fade"),setTimeout(async()=>{i(C);const x=await(await(await fetch(C)).blob()).arrayBuffer(),$=fg(new Uint8Array(x)),O=dg($),_={...n,...O,brand_url:Nu(O.brand)};e.current.setFieldsValue(_),r(_),a.current&&(a.current.classList.remove("fade"),a.current.classList.add("loaded"))},500)}}}const vr=nR({scriptUrl:["//at.alicdn.com/t/c/font_4757469_kkotyy5658l.js"]});function e9(){const e=c.useRef(),{imgRef:t,imgUrl:n,setImgUrl:r,formValue:o,setFormValue:i,handleAdd:a,handleDownload:l,handleFormChange:s,handleFontSizeChange:u,handleFontWeightChange:d,handleFontFamilyChange:f,handleScaleChange:m,handleExhibitionClick:g}=JB(e,ug),[b,y]=c.useState(!1),[S,p]=c.useState(!1),h=c.useRef(ug);return c.useEffect(()=>{(async()=>{await A$(),y(!0)})()},[]),c.useEffect(()=>{(async()=>{const C=k$(),w=new Image;w.src=C,w.onload=async()=>{const $=await(await(await fetch(C)).blob()).arrayBuffer(),O=fg(new Uint8Array($)),_=dg(O);r(C),t.current&&t.current.classList.add("loaded");const R={...h.current,..._,brand_url:Nu(_.brand)};e.current.setFieldsValue(R),i(R),h.current=R}})()},[b,t,r,i]),b?ue.jsxs(ue.Fragment,{children:[ue.jsx(jo.Title,{level:2,className:"picseal-title",children:"PICSEAL"}),ue.jsx(F6,{}),ue.jsx(jo.Text,{className:"picseal-description",children:"小米照片风格水印照片,支持佳能、尼康、索尼、苹果、华为、小米、大疆。"}),ue.jsxs("div",{className:"preview-box",children:[ue.jsx(jo.Title,{level:4,children:"预览"}),ue.jsxs("div",{className:"preview",id:"preview",children:[ue.jsx("img",{ref:t,className:"preview-picture",src:n,alt:"Preview"}),ue.jsxs("div",{className:"preview-info",children:[ue.jsxs("div",{className:"preview-info-left",children:[ue.jsx("div",{className:"preview-info-model",children:o.model}),ue.jsx("div",{className:"preview-info-date",children:o.date}),ue.jsx("div",{className:"preview-info-brand",children:ue.jsx("img",{src:o.brand_url,alt:"Brand"})})]}),ue.jsx("div",{className:"preview-info-split"}),ue.jsxs("div",{className:"preview-info-right",children:[ue.jsx("div",{className:"preview-info-device",children:o.device}),ue.jsx("div",{className:"preview-info-gps",children:o.gps})]})]})]})]}),ue.jsx("div",{className:"exhibition",children:ue.jsxs(jb,{wrap:!0,gap:"middle",horizontal:"true",justify:"center",align:"center",children:[ue.jsxs(gn,{type:"primary",shape:"round",size:"default",ghost:!0,onClick:()=>g("apple"),children:[ue.jsx(vr,{type:"icon-apple",style:{fontSize:"16px"}}),"Apple"]}),ue.jsxs(gn,{type:"primary",shape:"round",size:"default",ghost:!0,onClick:()=>g("canon"),children:[ue.jsx(vr,{type:"icon-jianeng",style:{fontSize:"28px"}}),"Cannon"]}),ue.jsxs(gn,{type:"primary",shape:"round",size:"default",ghost:!0,onClick:()=>g("dji"),children:[ue.jsx(vr,{type:"icon-DJI",style:{fontSize:"28px"}}),"Dji"]}),ue.jsxs(gn,{type:"primary",shape:"round",size:"default",ghost:!0,onClick:()=>g("fujifilm"),children:[ue.jsx(vr,{type:"icon-fushi",style:{fontSize:"28px"}}),"Fuji"]}),ue.jsxs(gn,{type:"primary",shape:"round",size:"default",ghost:!0,onClick:()=>g("huawei"),children:[ue.jsx(vr,{type:"icon-huawei1",style:{fontSize:"16px"}}),"Huawei"]}),ue.jsxs(gn,{type:"primary",shape:"round",size:"default",ghost:!0,onClick:()=>g("leica"),children:[ue.jsx(vr,{type:"icon-laika",style:{fontSize:"16px"}}),"Leica"]}),ue.jsxs(gn,{type:"primary",shape:"round",size:"default",ghost:!0,onClick:()=>g("xiaomi"),children:[ue.jsx(vr,{type:"icon-icon-xiaomiguishu",style:{fontSize:"16px"}}),"Xiaomi"]}),ue.jsxs(gn,{type:"primary",shape:"round",size:"default",ghost:!0,onClick:()=>g("nikon"),children:[ue.jsx(vr,{type:"icon-nikon",style:{fontSize:"16px"}}),"Nikon"]}),ue.jsxs(gn,{type:"primary",shape:"round",size:"default",ghost:!0,onClick:()=>g("sony"),children:[ue.jsx(vr,{type:"icon-sony",style:{fontSize:"28px"}}),"Sony"]}),ue.jsxs(gn,{type:"primary",shape:"round",size:"default",ghost:!0,onClick:()=>g("panasonic"),children:[ue.jsx(vr,{type:"icon-panasonic",style:{fontSize:"36px"}}),"Panasonic"]}),ue.jsxs(gn,{type:"primary",shape:"round",size:"default",ghost:!0,onClick:()=>g("ricoh"),children:[ue.jsx(vr,{type:"icon-ricoh",style:{fontSize:"28px"}}),"Ricoh"]}),ue.jsxs(gn,{type:"primary",shape:"round",size:"default",ghost:!0,onClick:()=>g("olympus"),children:[ue.jsx(vr,{type:"icon-olympus",style:{fontSize:"36px"}}),"Olympus"]}),ue.jsxs(gn,{type:"primary",shape:"round",size:"default",ghost:!0,onClick:()=>g("insta360"),children:[ue.jsx(vr,{type:"icon-insta360",style:{fontSize:"46px"}}),"Insta360"]})]})}),ue.jsx("div",{className:"op",children:ue.jsxs(C2,{size:"large",children:[ue.jsx(Jp,{accept:"image/*",beforeUpload:v=>(a(v),!1),fileList:[],children:ue.jsx(gn,{type:"primary",shape:"round",icon:ue.jsx(UP,{}),ghost:!0,children:"新建照片"})}),ue.jsx(gn,{type:"primary",shape:"round",icon:ue.jsx(zC,{}),onClick:()=>l(S),children:"导出照片"})]})}),ue.jsxs("div",{className:"props",children:[ue.jsx("div",{className:"props-title",children:ue.jsx(jo.Title,{level:4,children:"参数"})}),ue.jsxs("div",{className:"props-option",children:[ue.jsxs(jb,{wrap:!0,gap:"small",horizontal:"true",justify:"flex-start",align:"center",children:[ue.jsx(jo.Text,{className:"switch-title",children:"导出 EXIF"}),ue.jsx(ii,{placement:"topLeft",title:"实验性功能:嵌入原图 EXIF 信息至导出图片,只支持 JPEG",children:ue.jsx(j2,{defaultChecked:S,onClick:()=>p(!S)})})]}),ue.jsxs(Mn,{ref:e,labelCol:{span:4},wrapperCol:{span:14},layout:"horizontal",size:"small",style:{maxWidth:800},initialValues:o,onValuesChange:s,children:[ue.jsx(Mn.Item,{label:"横幅大小",name:"scale",children:ue.jsx(Tj,{min:.5,max:1.2,step:.1,onChange:m})}),ue.jsx(Mn.Item,{label:"相机型号",name:"model",children:ue.jsx(Ho,{})}),ue.jsx(Mn.Item,{label:"相机品牌",name:"brand",children:ue.jsx(Jt,{style:{width:170},children:V2.map(v=>ue.jsx(Jt.Option,{value:v.toLowerCase(),children:v},v))})}),ue.jsx(Mn.Item,{label:"拍摄参数",name:"device",children:ue.jsx(Ho,{})}),ue.jsx(Mn.Item,{label:"拍摄时间",name:"date",children:ue.jsx(Ho,{})}),ue.jsx(Mn.Item,{label:"拍摄地点",name:"gps",children:ue.jsx(Ho,{})}),ue.jsx(Mn.Item,{label:"字体大小",name:"fontSize",children:ue.jsxs(Jt,{style:{width:170},onChange:u,children:[ue.jsx(Jt.Option,{value:"small",children:"小"}),ue.jsx(Jt.Option,{value:"normal",children:"正常"}),ue.jsx(Jt.Option,{value:"large",children:"大"})]})}),ue.jsx(Mn.Item,{label:"字体粗细",name:"fontWeight",children:ue.jsxs(Jt,{style:{width:170},onChange:d,children:[ue.jsx(Jt.Option,{value:"normal",children:"正常"}),ue.jsx(Jt.Option,{value:"bold",children:"加粗"}),ue.jsx(Jt.Option,{value:"black",children:"黑体"})]})}),ue.jsx(Mn.Item,{label:"字体",name:"fontFamily",children:ue.jsxs(Jt,{style:{width:170},onChange:f,children:[ue.jsx(Jt.Option,{value:"default",children:"Default"}),ue.jsx(Jt.Option,{value:"misans",children:"MiSans"}),ue.jsx(Jt.Option,{value:"caveat",children:"Caveat"}),ue.jsx(Jt.Option,{value:"helvetica",children:"Helvetica Neue"}),ue.jsx(Jt.Option,{value:"futura",children:"Futura"}),ue.jsx(Jt.Option,{value:"avenir",children:"Avenir"}),ue.jsx(Jt.Option,{value:"didot",children:"Didot"})]})})]})]})]})]}):ue.jsx("div",{children:"Loading WASM..."})}function t9(){return ue.jsxs("a",{href:"https://github.com/zhiweio/picseal",className:"github-corner","aria-label":"View source on GitHub",children:[ue.jsxs("svg",{width:"80",height:"80",viewBox:"0 0 250 250",style:{fill:"#70B7FD",color:"#fff",position:"absolute",top:0,border:0,right:0},"aria-hidden":"true",children:[ue.jsx("path",{d:"M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z"}),ue.jsx("path",{d:"M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2",fill:"currentColor",style:{transformOrigin:"130px 106px"},className:"octo-arm"}),ue.jsx("path",{d:"M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z",fill:"currentColor",className:"octo-body"})]}),ue.jsx("style",{children:` .github-corner:hover .octo-arm { animation: octocat-wave 560ms ease-in-out; } diff --git a/index.html b/index.html index 73d88b1..eea45b3 100644 --- a/index.html +++ b/index.html @@ -1,10 +1,10 @@ - - + + - +
diff --git a/manifest.webmanifest b/manifest.webmanifest index 1663839..33676c8 100644 --- a/manifest.webmanifest +++ b/manifest.webmanifest @@ -1 +1 @@ -{"name":"picseal","short_name":"picseal","start_url":"/","display":"standalone","background_color":"#ffffff","lang":"en","scope":"/"} +{"name":"picseal","short_name":"picseal","start_url":"https://zhiweio.github.io/picseal/","display":"standalone","background_color":"#ffffff","lang":"en","scope":"https://zhiweio.github.io/picseal/"} diff --git a/registerSW.js b/registerSW.js index d42ac9e..ef45904 100644 --- a/registerSW.js +++ b/registerSW.js @@ -1 +1 @@ -if('serviceWorker' in navigator) {window.addEventListener('load', () => {navigator.serviceWorker.register('/sw.js', { scope: '/' })})} \ No newline at end of file +if('serviceWorker' in navigator) {window.addEventListener('load', () => {navigator.serviceWorker.register('https://zhiweio.github.io/picseal/sw.js', { scope: 'https://zhiweio.github.io/picseal/' })})} \ No newline at end of file diff --git a/sw.js b/sw.js index 39a7e63..0a8cf92 100644 --- a/sw.js +++ b/sw.js @@ -1 +1 @@ -if(!self.define){let e,s={};const i=(i,n)=>(i=new URL(i+".js",n).href,s[i]||new Promise((s=>{if("document"in self){const e=document.createElement("script");e.src=i,e.onload=s,document.head.appendChild(e)}else e=i,importScripts(i),s()})).then((()=>{let e=s[i];if(!e)throw new Error(`Module ${i} didn’t register its module`);return e})));self.define=(n,r)=>{const t=e||("document"in self?document.currentScript.src:"")||location.href;if(s[t])return;let o={};const l=e=>i(e,t),c={module:{uri:t},exports:o,require:l};s[t]=Promise.all(n.map((e=>c[e]||l(e)))).then((e=>(r(...e),o)))}}define(["./workbox-4723e66c"],(function(e){"use strict";self.addEventListener("message",(e=>{e.data&&"SKIP_WAITING"===e.data.type&&self.skipWaiting()})),e.precacheAndRoute([{url:"assets/gen_brand_photo_pictrue_bg-6lfZCE4a.wasm",revision:null},{url:"assets/index-DztULAU3.js",revision:null},{url:"assets/index-nE1aiNKq.css",revision:null},{url:"index.html",revision:"e370b867451b0413b1f5d149d9a7906c"},{url:"registerSW.js",revision:"1872c500de691dce40960bb85481de07"},{url:"manifest.webmanifest",revision:"7c510380adb87bd06ecdcc961ea16f9e"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("index.html")))})); +if(!self.define){let e,s={};const i=(i,n)=>(i=new URL(i+".js",n).href,s[i]||new Promise((s=>{if("document"in self){const e=document.createElement("script");e.src=i,e.onload=s,document.head.appendChild(e)}else e=i,importScripts(i),s()})).then((()=>{let e=s[i];if(!e)throw new Error(`Module ${i} didn’t register its module`);return e})));self.define=(n,r)=>{const t=e||("document"in self?document.currentScript.src:"")||location.href;if(s[t])return;let o={};const l=e=>i(e,t),c={module:{uri:t},exports:o,require:l};s[t]=Promise.all(n.map((e=>c[e]||l(e)))).then((e=>(r(...e),o)))}}define(["./workbox-4723e66c"],(function(e){"use strict";self.addEventListener("message",(e=>{e.data&&"SKIP_WAITING"===e.data.type&&self.skipWaiting()})),e.precacheAndRoute([{url:"assets/gen_brand_photo_pictrue_bg-6lfZCE4a.wasm",revision:null},{url:"assets/index-BwvHi-X5.js",revision:null},{url:"assets/index-nE1aiNKq.css",revision:null},{url:"index.html",revision:"e3a15d091067300c70dbfbefefd96549"},{url:"registerSW.js",revision:"213ce58d198ca864eb28b21ab31239fc"},{url:"manifest.webmanifest",revision:"90ed6b2145c9c2d3b02900e2731dfc25"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("index.html")))}));