(self["webpackChunkaida"]=self["webpackChunkaida"]||[]).push([[3908,3904,8465,7995,5062],{24019:function(r){r.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},90260:function(r,t,e){"use strict";var n,o,a,i=e(24019),c=e(19781),f=e(17854),u=e(60614),p=e(70111),s=e(92597),y=e(70648),d=e(66330),l=e(68880),v=e(98052),A=e(3070).f,g=e(47976),h=e(79518),T=e(27674),I=e(5112),m=e(69711),_=e(29909),x=_.enforce,O=_.get,w=f.Int8Array,S=w&&w.prototype,b=f.Uint8ClampedArray,U=b&&b.prototype,k=w&&h(w),C=S&&h(S),G=Object.prototype,N=f.TypeError,R=I("toStringTag"),E=m("TYPED_ARRAY_TAG"),J="TypedArrayConstructor",M=i&&!!T&&"Opera"!==y(f.opera),P=!1,L={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},D={BigInt64Array:8,BigUint64Array:8},F=function(r){if(!p(r))return!1;var t=y(r);return"DataView"===t||s(L,t)||s(D,t)},V=function(r){var t=h(r);if(p(t)){var e=O(t);return e&&s(e,J)?e[J]:V(t)}},Y=function(r){if(!p(r))return!1;var t=y(r);return s(L,t)||s(D,t)},B=function(r){if(Y(r))return r;throw N("Target is not a typed array")},j=function(r){if(u(r)&&(!T||g(k,r)))return r;throw N(d(r)+" is not a typed array constructor")},W=function(r,t,e,n){if(c){if(e)for(var o in L){var a=f[o];if(a&&s(a.prototype,r))try{delete a.prototype[r]}catch(i){try{a.prototype[r]=t}catch(u){}}}C[r]&&!e||v(C,r,e?t:M&&S[r]||t,n)}},H=function(r,t,e){var n,o;if(c){if(T){if(e)for(n in L)if(o=f[n],o&&s(o,r))try{delete o[r]}catch(a){}if(k[r]&&!e)return;try{return v(k,r,e?t:M&&k[r]||t)}catch(a){}}for(n in L)o=f[n],!o||o[r]&&!e||v(o,r,t)}};for(n in L)o=f[n],a=o&&o.prototype,a?x(a)[J]=o:M=!1;for(n in D)o=f[n],a=o&&o.prototype,a&&(x(a)[J]=o);if((!M||!u(k)||k===Function.prototype)&&(k=function(){throw N("Incorrect invocation")},M))for(n in L)f[n]&&T(f[n],k);if((!M||!C||C===G)&&(C=k.prototype,M))for(n in L)f[n]&&T(f[n].prototype,C);if(M&&h(U)!==C&&T(U,C),c&&!s(C,R))for(n in P=!0,A(C,R,{get:function(){return p(this)?this[E]:void 0}}),L)f[n]&&l(f[n],E,n);r.exports={NATIVE_ARRAY_BUFFER_VIEWS:M,TYPED_ARRAY_TAG:P&&E,aTypedArray:B,aTypedArrayConstructor:j,exportTypedArrayMethod:W,exportTypedArrayStaticMethod:H,getTypedArrayConstructor:V,isView:F,isTypedArray:Y,TypedArray:k,TypedArrayPrototype:C}},9671:function(r,t,e){var n=e(49974),o=e(68361),a=e(47908),i=e(26244),c=function(r){var t=1==r;return function(e,c,f){var u,p,s=a(e),y=o(s),d=n(c,f),l=i(y);while(l-- >0)if(u=y[l],p=d(u,l,s),p)switch(r){case 0:return u;case 1:return l}return t?-1:void 0}};r.exports={findLast:c(0),findLastIndex:c(1)}},49920:function(r,t,e){var n=e(47293);r.exports=!n((function(){function r(){}return r.prototype.constructor=null,Object.getPrototypeOf(new r)!==r.prototype}))},49974:function(r,t,e){var n=e(1702),o=e(19662),a=e(34374),i=n(n.bind);r.exports=function(r,t){return o(r),void 0===t?r:a?i(r,t):function(){return r.apply(t,arguments)}}},79518:function(r,t,e){var n=e(92597),o=e(60614),a=e(47908),i=e(6200),c=e(49920),f=i("IE_PROTO"),u=Object,p=u.prototype;r.exports=c?u.getPrototypeOf:function(r){var t=a(r);if(n(t,f))return t[f];var e=t.constructor;return o(e)&&t instanceof e?e.prototype:t instanceof u?p:null}},48675:function(r,t,e){"use strict";var n=e(90260),o=e(26244),a=e(19303),i=n.aTypedArray,c=n.exportTypedArrayMethod;c("at",(function(r){var t=i(this),e=o(t),n=a(r),c=n>=0?n:e+n;return c<0||c>=e?void 0:t[c]}))},14590:function(r,t,e){"use strict";var n=e(90260),o=e(9671).findLastIndex,a=n.aTypedArray,i=n.exportTypedArrayMethod;i("findLastIndex",(function(r){return o(a(this),r,arguments.length>1?arguments[1]:void 0)}))},63408:function(r,t,e){"use strict";var n=e(90260),o=e(9671).findLast,a=n.aTypedArray,i=n.exportTypedArrayMethod;i("findLast",(function(r){return o(a(this),r,arguments.length>1?arguments[1]:void 0)}))},1118:function(r,t,e){e(14590)},37380:function(r,t,e){e(63408)},26743:function(r,t,e){"use strict";e.r(t),e.d(t,{default:function(){return s}});var n=e(66252),o=e(2262),a=e(15932);const i={class:"red-green-mode-example"},c={class:"canvas-wrapper"};var f={__name:"index",setup(r){const t=(0,o.iH)(null),e={baseImage:"@/assets/redGreenPic/clothing_base_image.png",maskImage:"@/assets/redGreenPic/clothing_mask_image.png"},f=()=>{if(t.value){const r=t.value.getJSON();console.log("获取的JSON数据：",r),localStorage.setItem("redGreenModeJSON",r)}},u=()=>{if(t.value){const r=localStorage.getItem("redGreenModeJSON");t.value.loadJSON(r),console.log("加载的JSON数据：",r)}};return(0,n.bv)((()=>{})),(0,n.Ah)((()=>{})),(r,o)=>((0,n.wg)(),(0,n.iD)("div",i,[(0,n._)("div",c,[(0,n._)("div",{class:"canvas-wrapper-btns"},[(0,n._)("div",{onClick:f},"获取JSON"),(0,n._)("div",{onClick:u},"读取JSON")]),(0,n.Wm)(a["default"],{ref_key:"canvasEditor",ref:t,enabledRedGreenMode:!1,clothingImageUrl:e.baseImage,redGreenImageUrl:e.maskImage},null,8,["clothingImageUrl","redGreenImageUrl"])])]))}},u=e(83744);const p=(0,u.Z)(f,[["__scopeId","data-v-680ff63e"]]);var s=p}}]);