import{j as t}from"./dayjs.DCWbrgJ0.js";var e,n,i,r,s={exports:{}};const h=t((e||(e=1,n=s,r=-1,(i=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32}).Diff=function(t,e){return[t,e]},i.prototype.diff_main=function(t,e,n,r){void 0===r&&(r=this.Diff_Timeout<=0?Number.MAX_VALUE:(new Date).getTime()+1e3*this.Diff_Timeout);var s=r;if(null==t||null==e)throw new Error("Null input. (diff_main)");if(t==e)return t?[new i.Diff(0,t)]:[];void 0===n&&(n=!0);var h=n,f=this.diff_commonPrefix(t,e),a=t.substring(0,f);t=t.substring(f),e=e.substring(f),f=this.diff_commonSuffix(t,e);var l=t.substring(t.length-f);t=t.substring(0,t.length-f),e=e.substring(0,e.length-f);var g=this.diff_compute_(t,e,h,s);return a&&g.unshift(new i.Diff(0,a)),l&&g.push(new i.Diff(0,l)),this.diff_cleanupMerge(g),g},i.prototype.diff_compute_=function(t,e,n,s){var h;if(!t)return[new i.Diff(1,e)];if(!e)return[new i.Diff(r,t)];var f=t.length>e.length?t:e,a=t.length>e.length?e:t,l=f.indexOf(a);if(-1!=l)return h=[new i.Diff(1,f.substring(0,l)),new i.Diff(0,a),new i.Diff(1,f.substring(l+a.length))],t.length>e.length&&(h[0][0]=h[2][0]=r),h;if(1==a.length)return[new i.Diff(r,t),new i.Diff(1,e)];var g=this.diff_halfMatch_(t,e);if(g){var o=g[0],c=g[1],u=g[2],p=g[3],d=g[4],_=this.diff_main(o,u,n,s),b=this.diff_main(c,p,n,s);return _.concat([new i.Diff(0,d)],b)}return n&&t.length>100&&e.length>100?this.diff_lineMode_(t,e,s):this.diff_bisect_(t,e,s)},i.prototype.diff_lineMode_=function(t,e,n){var s=this.diff_linesToChars_(t,e);t=s.chars1,e=s.chars2;var h=s.lineArray,f=this.diff_main(t,e,!1,n);this.diff_charsToLines_(f,h),this.diff_cleanupSemantic(f),f.push(new i.Diff(0,""));for(var a=0,l=0,g=0,o="",c="";a=1&&g>=1){f.splice(a-l-g,l+g),a=a-l-g;for(var u=this.diff_main(o,c,!1,n),p=u.length-1;p>=0;p--)f.splice(a,0,u[p]);a+=u.length}g=0,l=0,o="",c=""}a++}return f.pop(),f},i.prototype.diff_bisect_=function(t,e,n){for(var s=t.length,h=e.length,f=Math.ceil((s+h)/2),a=f,l=2*f,g=new Array(l),o=new Array(l),c=0;cn);m++){for(var w=-m+d;w<=m-_;w+=2){for(var x=a+w,M=(E=w==-m||w!=m&&g[x-1]s)_+=2;else if(M>h)d+=2;else if(p&&(A=a+u-w)>=0&&A=(y=s-o[A]))return this.diff_bisectSplit_(t,e,E,M,n)}for(var D=-m+b;D<=m-v;D+=2){for(var y,A=a+D,k=(y=D==-m||D!=m&&o[A-1]s)v+=2;else if(k>h)b+=2;else if(!p){var E;if((x=a+u-D)>=0&&x=(y=s-y)))return this.diff_bisectSplit_(t,e,E,M,n)}}}return[new i.Diff(r,t),new i.Diff(1,e)]},i.prototype.diff_bisectSplit_=function(t,e,n,i,r){var s=t.substring(0,n),h=e.substring(0,i),f=t.substring(n),a=e.substring(i),l=this.diff_main(s,h,!1,r),g=this.diff_main(f,a,!1,r);return l.concat(g)},i.prototype.diff_linesToChars_=function(t,e){var n=[],i={};function r(t){for(var e="",r=0,h=-1,f=n.length;hi?t=t.substring(n-i):ne.length?t:e,i=t.length>e.length?e:t;if(n.length<4||2*i.length=t.length?[i,s,h,f,g]:null}var h,f,a,l,g,o=s(n,i,Math.ceil(n.length/4)),c=s(n,i,Math.ceil(n.length/2));return o||c?(h=c?o&&o[4].length>c[4].length?o:c:o,t.length>e.length?(f=h[0],a=h[1],l=h[2],g=h[3]):(l=h[0],g=h[1],f=h[2],a=h[3]),[f,a,l,g,h[4]]):null},i.prototype.diff_cleanupSemantic=function(t){for(var e=!1,n=[],s=0,h=null,f=0,a=0,l=0,g=0,o=0;f0?n[s-1]:-1,a=0,l=0,g=0,o=0,h=null,e=!0)),f++;for(e&&this.diff_cleanupMerge(t),this.diff_cleanupSemanticLossless(t),f=1;f=d?(p>=c.length/2||p>=u.length/2)&&(t.splice(f,0,new i.Diff(0,u.substring(0,p))),t[f-1][1]=c.substring(0,c.length-p),t[f+1][1]=u.substring(p),f++):(d>=c.length/2||d>=u.length/2)&&(t.splice(f,0,new i.Diff(0,c.substring(0,d))),t[f-1][0]=1,t[f-1][1]=u.substring(0,u.length-d),t[f+1][0]=r,t[f+1][1]=c.substring(d),f++),f++}f++}},i.prototype.diff_cleanupSemanticLossless=function(t){function e(t,e){if(!t||!e)return 6;var n=t.charAt(t.length-1),r=e.charAt(0),s=n.match(i.nonAlphaNumericRegex_),h=r.match(i.nonAlphaNumericRegex_),f=s&&n.match(i.whitespaceRegex_),a=h&&r.match(i.whitespaceRegex_),l=f&&n.match(i.linebreakRegex_),g=a&&r.match(i.linebreakRegex_),o=l&&t.match(i.blanklineEndRegex_),c=g&&e.match(i.blanklineStartRegex_);return o||c?5:l||g?4:s&&!f&&a?3:f||a?2:s||h?1:0}for(var n=1;n=c&&(c=u,l=r,g=s,o=h)}t[n-1][1]!=l&&(l?t[n-1][1]=l:(t.splice(n-1,1),n--),t[n][1]=g,o?t[n+1][1]=o:(t.splice(n+1,1),n--))}n++}},i.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,i.whitespaceRegex_=/\s/,i.linebreakRegex_=/[\r\n]/,i.blanklineEndRegex_=/\n\r?\n$/,i.blanklineStartRegex_=/^\r?\n\r?\n/,i.prototype.diff_cleanupEfficiency=function(t){for(var e=!1,n=[],s=0,h=null,f=0,a=!1,l=!1,g=!1,o=!1;f0?n[s-1]:-1,g=o=!1),e=!0)),f++;e&&this.diff_cleanupMerge(t)},i.prototype.diff_cleanupMerge=function(t){t.push(new i.Diff(0,""));for(var e,n=0,s=0,h=0,f="",a="";n1?(0!==s&&0!==h&&(0!==(e=this.diff_commonPrefix(a,f))&&(n-s-h>0&&0==t[n-s-h-1][0]?t[n-s-h-1][1]+=a.substring(0,e):(t.splice(0,0,new i.Diff(0,a.substring(0,e))),n++),a=a.substring(e),f=f.substring(e)),0!==(e=this.diff_commonSuffix(a,f))&&(t[n][1]=a.substring(a.length-e)+t[n][1],a=a.substring(0,a.length-e),f=f.substring(0,f.length-e))),n-=s+h,t.splice(n,s+h),f.length&&(t.splice(n,0,new i.Diff(r,f)),n++),a.length&&(t.splice(n,0,new i.Diff(1,a)),n++),n++):0!==n&&0==t[n-1][0]?(t[n-1][1]+=t[n][1],t.splice(n,1)):n++,h=0,s=0,f="",a=""}""===t[t.length-1][1]&&t.pop();var l=!1;for(n=1;ne));n++)h=i,f=s;return t.length!=n&&t[n][0]===r?f:f+(e-h)},i.prototype.diff_prettyHtml=function(t){for(var e=[],n=/&/g,i=//g,h=/\n/g,f=0;f");switch(a){case 1:e[f]=''+l+"";break;case r:e[f]=''+l+"";break;case 0:e[f]=""+l+""}}return e.join("")},i.prototype.diff_text1=function(t){for(var e=[],n=0;nthis.Match_MaxBits)throw new Error("Pattern too long for this browser.");var i=this.match_alphabet_(e),r=this;function s(t,i){var s=t/e.length,h=Math.abs(n-i);return r.Match_Distance?s+h/r.Match_Distance:h?1:s}var h=this.Match_Threshold,f=t.indexOf(e,n);-1!=f&&(h=Math.min(s(0,f),h),-1!=(f=t.lastIndexOf(e,n+e.length))&&(h=Math.min(s(0,f),h)));var a,l,g=1<=p;b--){var v=i[t.charAt(b-1)];if(_[b]=0===u?(_[b+1]<<1|1)&v:(_[b+1]<<1|1)&v|(o[b+1]|o[b])<<1|1|o[b+1],_[b]&g){var m=s(u,b-1);if(m<=h){if(h=m,!((f=b-1)>n))break;p=Math.max(1,2*n-f)}}}if(s(u+1,n)>h)break;o=_}return f},i.prototype.match_alphabet_=function(t){for(var e={},n=0;n2&&(this.diff_cleanupSemantic(h),this.diff_cleanupEfficiency(h));else if(t&&"object"==typeof t&&void 0===e&&void 0===n)h=/** @type {!Array.} */ t,s=this.diff_text1(h);else if("string"==typeof t&&e&&"object"==typeof e&&void 0===n)s=/** @type {string} */ t,h=/** @type {!Array.} */ e;else{if("string"!=typeof t||"string"!=typeof e||!n||"object"!=typeof n)throw new Error("Unknown call format to patch_make.");s=/** @type {string} */ t,h=/** @type {!Array.} */ n}if(0===h.length)return[];for(var f=[],a=new i.patch_obj,l=0,g=0,o=0,c=s,u=s,p=0;p=2*this.Patch_Margin&&l&&(this.patch_addContext_(a,c),f.push(a),a=new i.patch_obj,l=0,c=u,g=o)}1!==d&&(g+=_.length),d!==r&&(o+=_.length)}return l&&(this.patch_addContext_(a,c),f.push(a)),f},i.prototype.patch_deepCopy=function(t){for(var e=[],n=0;nthis.Match_MaxBits?-1!=(f=this.match_main(e,g.substring(0,this.Match_MaxBits),l))&&(-1==(o=this.match_main(e,g.substring(g.length-this.Match_MaxBits),l+g.length-this.Match_MaxBits))||f>=o)&&(f=-1):f=this.match_main(e,g,l),-1==f)s[h]=!1,i-=t[h].length2-t[h].length1;else if(s[h]=!0,i=f-l,g==(a=-1==o?e.substring(f,f+g.length):e.substring(f,o+this.Match_MaxBits)))e=e.substring(0,f)+this.diff_text2(t[h].diffs)+e.substring(f+g.length);else{var c=this.diff_main(g,a,!1);if(g.length>this.Match_MaxBits&&this.diff_levenshtein(c)/g.length>this.Patch_DeleteThreshold)s[h]=!1;else{this.diff_cleanupSemanticLossless(c);for(var u,p=0,d=0;dh[0][1].length){var f=e-h[0][1].length;h[0][1]=n.substring(h[0][1].length)+h[0][1],s.start1-=f,s.start2-=f,s.length1+=f,s.length2+=f}return 0==(h=(s=t[t.length-1]).diffs).length||0!=h[h.length-1][0]?(h.push(new i.Diff(0,n)),s.length1+=e,s.length2+=e):e>h[h.length-1][1].length&&(f=e-h[h.length-1][1].length,h[h.length-1][1]+=n.substring(0,f),s.length1+=f,s.length2+=f),n},i.prototype.patch_splitMax=function(t){for(var e=this.Match_MaxBits,n=0;n2*e?(l.length1+=c.length,h+=c.length,g=!1,l.diffs.push(new i.Diff(o,c)),s.diffs.shift()):(c=c.substring(0,e-l.length1-this.Patch_Margin),l.length1+=c.length,h+=c.length,0===o?(l.length2+=c.length,f+=c.length):g=!1,l.diffs.push(new i.Diff(o,c)),c==s.diffs[0][1]?s.diffs.shift():s.diffs[0][1]=s.diffs[0][1].substring(c.length))}a=(a=this.diff_text2(l.diffs)).substring(a.length-this.Patch_Margin);var u=this.diff_text1(s.diffs).substring(0,this.Patch_Margin);""!==u&&(l.length1+=u.length,l.length2+=u.length,0!==l.diffs.length&&0===l.diffs[l.diffs.length-1][0]?l.diffs[l.diffs.length-1][1]+=u:l.diffs.push(new i.Diff(0,u))),g||t.splice(++n,0,l)}}},i.prototype.patch_toText=function(t){for(var e=[],n=0;n