Magic / 195.3a2e080c.js
khan3341ad's picture
Upload 84 files
f3e548c verified
Raw
History Blame Contribute Delete
24.9 kB
"use strict";(self.webpackChunkchrome_extension=self.webpackChunkchrome_extension||[]).push([["195"],{33238(t,_,e){let n;e.r(_),e.d(_,{PhotonImage:()=>_Y,Rgb:()=>_0,Rgba:()=>_4,SamplingFilter:()=>_Q,add_noise_rand:()=>tF,adjust_brightness:()=>_y,adjust_contrast:()=>_z,alter_blue_channel:()=>h,alter_channel:()=>f,alter_channels:()=>y,alter_green_channel:()=>p,alter_red_channel:()=>d,alter_two_channels:()=>m,apply_gradient:()=>tM,b_grayscale:()=>P,base64_to_image:()=>_q,base64_to_vec:()=>_G,blend:()=>t$,box_blur:()=>tx,cali:()=>tV,color_horizontal_strips:()=>_C,color_vertical_strips:()=>_j,colorize:()=>_p,create_gradient:()=>tU,crop:()=>t3,crop_img_browser:()=>t5,darken_hsl:()=>ts,darken_hsluv:()=>tl,darken_hsv:()=>tu,darken_lch:()=>tc,dec_brightness:()=>_x,decompose_max:()=>U,decompose_min:()=>$,default:()=>_2,desaturate:()=>L,desaturate_hsl:()=>tw,desaturate_hsluv:()=>td,desaturate_hsv:()=>tb,desaturate_lch:()=>tf,detect_135_deg_lines:()=>tR,detect_45_deg_lines:()=>tC,detect_horizontal_lines:()=>tI,detect_vertical_lines:()=>tk,dither:()=>_D,dramatic:()=>tK,draw_text:()=>_S,draw_text_with_border:()=>_F,duotone:()=>_W,duotone_horizon:()=>tY,duotone_lilac:()=>t0,duotone_ochre:()=>t1,duotone_tint:()=>tZ,duotone_violette:()=>tX,edge_detection:()=>ty,edge_one:()=>tA,emboss:()=>tE,filter:()=>tq,firenze:()=>t4,fliph:()=>t6,flipv:()=>t7,frosted_glass:()=>_E,g_grayscale:()=>B,gamma_correction:()=>H,gaussian_blur:()=>tz,get_image_data:()=>_M,golden:()=>tJ,grayscale:()=>F,grayscale_human_corrected:()=>S,grayscale_shades:()=>M,halftone:()=>_f,horizontal_strips:()=>_k,hsl:()=>K,hsluv:()=>J,hsv:()=>Q,hue_rotate_hsl:()=>X,hue_rotate_hsluv:()=>tt,hue_rotate_hsv:()=>Y,hue_rotate_lch:()=>Z,identity:()=>tv,inc_brightness:()=>_v,initSync:()=>_6,invert:()=>C,laplace:()=>tj,lch:()=>V,lighten_hsl:()=>ta,lighten_hsluv:()=>to,lighten_hsv:()=>tg,lighten_lch:()=>ti,lix:()=>tB,lofi:()=>tG,mix_with_colour:()=>tp,monochrome:()=>D,monochrome_tint:()=>tQ,multiple_offsets:()=>_w,neue:()=>tN,noise_reduction:()=>th,normalize:()=>_T,obsidian:()=>t8,offset:()=>_l,offset_blue:()=>_b,offset_green:()=>_u,offset_red:()=>_s,oil:()=>_A,open_image:()=>_B,padding_bottom:()=>_a,padding_left:()=>_r,padding_right:()=>_i,padding_top:()=>_o,padding_uniform:()=>_n,pastel_pink:()=>tH,pink_noise:()=>tS,pixelize:()=>_O,prewitt_horizontal:()=>tT,primary:()=>_d,putImageData:()=>_N,r_grayscale:()=>N,remove_blue_channel:()=>I,remove_channel:()=>v,remove_green_channel:()=>z,remove_red_channel:()=>x,resample:()=>_c,resize:()=>t9,resize_img_browser:()=>t2,rotate:()=>_g,run:()=>_U,ryo:()=>tP,saturate_hsl:()=>t_,saturate_hsluv:()=>tn,saturate_hsv:()=>tr,saturate_lch:()=>te,seam_carve:()=>_t,selective_color_convert:()=>j,selective_desaturate:()=>E,selective_greyscale:()=>T,selective_hue_rotate:()=>R,selective_lighten:()=>A,selective_saturate:()=>O,sepia:()=>W,sharpen:()=>tm,shearx:()=>__,sheary:()=>_e,single_channel_grayscale:()=>q,sobel_global:()=>tW,sobel_horizontal:()=>tO,sobel_vertical:()=>tD,solarize:()=>_h,solarize_retimg:()=>_m,swap_channels:()=>k,threshold:()=>G,tint:()=>_I,to_image_data:()=>_H,to_raw_pixels:()=>_P,vertical_strips:()=>_R,watermark:()=>tL});let r=0,i=null;function o(){return(null===i||0===i.byteLength)&&(i=new Uint8Array(n.memory.buffer)),i}let a="undefined"!=typeof TextEncoder?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},g="function"==typeof a.encodeInto?function(t,_){return a.encodeInto(t,_)}:function(t,_){let e=a.encode(t);return _.set(e),{read:t.length,written:e.length}};function c(t,_,e){if(void 0===e){let e=a.encode(t),n=_(e.length,1)>>>0;return o().subarray(n,n+e.length).set(e),r=e.length,n}let n=t.length,i=_(n,1)>>>0,c=o(),l=0;for(;l<n;l++){let _=t.charCodeAt(l);if(_>127)break;c[i+l]=_}if(l!==n){0!==l&&(t=t.slice(l)),i=e(i,n,n=l+3*t.length,1)>>>0;let _=g(t,o().subarray(i+l,i+n));l+=_.written,i=e(i,n,l,1)>>>0}return r=l,i}let l=null;function s(){return(null===l||!0===l.buffer.detached||void 0===l.buffer.detached&&l.buffer!==n.memory.buffer)&&(l=new DataView(n.memory.buffer)),l}let u="undefined"!=typeof TextDecoder?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};function b(t,_){return t>>>=0,u.decode(o().subarray(t,t+_))}function w(t,_){if(!(t instanceof _))throw Error(`expected instance of ${_.name}`);return t.ptr}function f(t,_,e){w(t,_Y),n.alter_channel(t.__wbg_ptr,_,e)}function d(t,_){w(t,_Y),n.alter_red_channel(t.__wbg_ptr,_)}function p(t,_){w(t,_Y),n.alter_green_channel(t.__wbg_ptr,_)}function h(t,_){w(t,_Y),n.alter_blue_channel(t.__wbg_ptr,_)}function m(t,_,e,r,i){w(t,_Y),n.alter_two_channels(t.__wbg_ptr,_,e,r,i)}function y(t,_,e,r){w(t,_Y),n.alter_channels(t.__wbg_ptr,_,e,r)}function v(t,_,e){w(t,_Y),n.remove_channel(t.__wbg_ptr,_,e)}function x(t,_){w(t,_Y),n.remove_red_channel(t.__wbg_ptr,_)}function z(t,_){w(t,_Y),n.remove_green_channel(t.__wbg_ptr,_)}function I(t,_){w(t,_Y),n.remove_blue_channel(t.__wbg_ptr,_)}function k(t,_,e){w(t,_Y),n.swap_channels(t.__wbg_ptr,_,e)}function C(t){w(t,_Y),n.invert(t.__wbg_ptr)}function R(t,_,e){w(t,_Y),w(_,_0);var r=_.__destroy_into_raw();n.selective_hue_rotate(t.__wbg_ptr,r,e)}function j(t,_,e,r){w(t,_Y),w(_,_0);var i=_.__destroy_into_raw();w(e,_0);var o=e.__destroy_into_raw();n.selective_color_convert(t.__wbg_ptr,i,o,r)}function A(t,_,e){w(t,_Y),w(_,_0);var r=_.__destroy_into_raw();n.selective_lighten(t.__wbg_ptr,r,e)}function E(t,_,e){w(t,_Y),w(_,_0);var r=_.__destroy_into_raw();n.selective_desaturate(t.__wbg_ptr,r,e)}function O(t,_,e){w(t,_Y),w(_,_0);var r=_.__destroy_into_raw();n.selective_saturate(t.__wbg_ptr,r,e)}function T(t,_){w(t,_Y);var e=t.__destroy_into_raw();w(_,_0);var r=_.__destroy_into_raw();n.selective_greyscale(e,r)}function D(t,_,e,r){w(t,_Y),n.monochrome(t.__wbg_ptr,_,e,r)}function W(t){w(t,_Y),n.sepia(t.__wbg_ptr)}function F(t){w(t,_Y),n.grayscale(t.__wbg_ptr)}function S(t){w(t,_Y),n.grayscale_human_corrected(t.__wbg_ptr)}function L(t){w(t,_Y),n.desaturate(t.__wbg_ptr)}function $(t){w(t,_Y),n.decompose_min(t.__wbg_ptr)}function U(t){w(t,_Y),n.decompose_max(t.__wbg_ptr)}function M(t,_){w(t,_Y),n.grayscale_shades(t.__wbg_ptr,_)}function N(t){w(t,_Y),n.r_grayscale(t.__wbg_ptr)}function B(t){w(t,_Y),n.g_grayscale(t.__wbg_ptr)}function P(t){w(t,_Y),n.b_grayscale(t.__wbg_ptr)}function q(t,_){w(t,_Y),n.single_channel_grayscale(t.__wbg_ptr,_)}function G(t,_){w(t,_Y),n.threshold(t.__wbg_ptr,_)}function H(t,_,e,r){w(t,_Y),n.gamma_correction(t.__wbg_ptr,_,e,r)}function J(t,_,e){w(t,_Y);let i=c(_,n.__wbindgen_malloc,n.__wbindgen_realloc),o=r;n.hsluv(t.__wbg_ptr,i,o,e)}function V(t,_,e){w(t,_Y);let i=c(_,n.__wbindgen_malloc,n.__wbindgen_realloc),o=r;n.lch(t.__wbg_ptr,i,o,e)}function K(t,_,e){w(t,_Y);let i=c(_,n.__wbindgen_malloc,n.__wbindgen_realloc),o=r;n.hsl(t.__wbg_ptr,i,o,e)}function Q(t,_,e){w(t,_Y);let i=c(_,n.__wbindgen_malloc,n.__wbindgen_realloc),o=r;n.hsv(t.__wbg_ptr,i,o,e)}function X(t,_){w(t,_Y),n.hue_rotate_hsl(t.__wbg_ptr,_)}function Y(t,_){w(t,_Y),n.hue_rotate_hsv(t.__wbg_ptr,_)}function Z(t,_){w(t,_Y),n.hue_rotate_lch(t.__wbg_ptr,_)}function tt(t,_){w(t,_Y),n.hue_rotate_hsluv(t.__wbg_ptr,_)}function t_(t,_){w(t,_Y),n.saturate_hsl(t.__wbg_ptr,_)}function te(t,_){w(t,_Y),n.saturate_lch(t.__wbg_ptr,_)}function tn(t,_){w(t,_Y),n.saturate_hsluv(t.__wbg_ptr,_)}function tr(t,_){w(t,_Y),n.saturate_hsv(t.__wbg_ptr,_)}function ti(t,_){w(t,_Y),n.lighten_lch(t.__wbg_ptr,_)}function to(t,_){w(t,_Y),n.lighten_hsluv(t.__wbg_ptr,_)}function ta(t,_){w(t,_Y),n.lighten_hsl(t.__wbg_ptr,_)}function tg(t,_){w(t,_Y),n.lighten_hsv(t.__wbg_ptr,_)}function tc(t,_){w(t,_Y),n.darken_lch(t.__wbg_ptr,_)}function tl(t,_){w(t,_Y),n.darken_hsluv(t.__wbg_ptr,_)}function ts(t,_){w(t,_Y),n.darken_hsl(t.__wbg_ptr,_)}function tu(t,_){w(t,_Y),n.darken_hsv(t.__wbg_ptr,_)}function tb(t,_){w(t,_Y),n.desaturate_hsv(t.__wbg_ptr,_)}function tw(t,_){w(t,_Y),n.desaturate_hsl(t.__wbg_ptr,_)}function tf(t,_){w(t,_Y),n.desaturate_lch(t.__wbg_ptr,_)}function td(t,_){w(t,_Y),n.desaturate_hsluv(t.__wbg_ptr,_)}function tp(t,_,e){w(t,_Y),w(_,_0);var r=_.__destroy_into_raw();n.mix_with_colour(t.__wbg_ptr,r,e)}function th(t){w(t,_Y),n.noise_reduction(t.__wbg_ptr)}function tm(t){w(t,_Y),n.sharpen(t.__wbg_ptr)}function ty(t){w(t,_Y),n.edge_detection(t.__wbg_ptr)}function tv(t){w(t,_Y),n.identity(t.__wbg_ptr)}function tx(t){w(t,_Y),n.box_blur(t.__wbg_ptr)}function tz(t,_){w(t,_Y),n.gaussian_blur(t.__wbg_ptr,_)}function tI(t){w(t,_Y),n.detect_horizontal_lines(t.__wbg_ptr)}function tk(t){w(t,_Y),n.detect_vertical_lines(t.__wbg_ptr)}function tC(t){w(t,_Y),n.detect_45_deg_lines(t.__wbg_ptr)}function tR(t){w(t,_Y),n.detect_135_deg_lines(t.__wbg_ptr)}function tj(t){w(t,_Y),n.laplace(t.__wbg_ptr)}function tA(t){w(t,_Y),n.edge_one(t.__wbg_ptr)}function tE(t){w(t,_Y),n.emboss(t.__wbg_ptr)}function tO(t){w(t,_Y),n.sobel_horizontal(t.__wbg_ptr)}function tT(t){w(t,_Y),n.prewitt_horizontal(t.__wbg_ptr)}function tD(t){w(t,_Y),n.sobel_vertical(t.__wbg_ptr)}function tW(t){w(t,_Y),n.sobel_global(t.__wbg_ptr)}function tF(t){w(t,_Y),n.add_noise_rand(t.__wbg_ptr)}function tS(t){w(t,_Y),n.pink_noise(t.__wbg_ptr)}function tL(t,_,e,r){w(t,_Y),w(_,_Y),n.watermark(t.__wbg_ptr,_.__wbg_ptr,e,r)}function t$(t,_,e){w(t,_Y),w(_,_Y);let i=c(e,n.__wbindgen_malloc,n.__wbindgen_realloc),o=r;n.blend(t.__wbg_ptr,_.__wbg_ptr,i,o)}function tU(t,_){let e=n.create_gradient(t,_);return _Y.__wrap(e)}function tM(t){w(t,_Y),n.apply_gradient(t.__wbg_ptr)}function tN(t){w(t,_Y),n.neue(t.__wbg_ptr)}function tB(t){w(t,_Y),n.lix(t.__wbg_ptr)}function tP(t){w(t,_Y),n.ryo(t.__wbg_ptr)}function tq(t,_){w(t,_Y);let e=c(_,n.__wbindgen_malloc,n.__wbindgen_realloc),i=r;n.filter(t.__wbg_ptr,e,i)}function tG(t){w(t,_Y),n.lofi(t.__wbg_ptr)}function tH(t){w(t,_Y),n.pastel_pink(t.__wbg_ptr)}function tJ(t){w(t,_Y),n.golden(t.__wbg_ptr)}function tV(t){w(t,_Y),n.cali(t.__wbg_ptr)}function tK(t){w(t,_Y),n.dramatic(t.__wbg_ptr)}function tQ(t,_){w(t,_Y),w(_,_0);var e=_.__destroy_into_raw();n.monochrome_tint(t.__wbg_ptr,e)}function tX(t){w(t,_Y),n.duotone_violette(t.__wbg_ptr)}function tY(t){w(t,_Y),n.duotone_horizon(t.__wbg_ptr)}function tZ(t,_){w(t,_Y),w(_,_0);var e=_.__destroy_into_raw();n.duotone_tint(t.__wbg_ptr,e)}function t0(t){w(t,_Y),n.duotone_lilac(t.__wbg_ptr)}function t1(t){w(t,_Y),n.duotone_ochre(t.__wbg_ptr)}function t4(t){w(t,_Y),n.firenze(t.__wbg_ptr)}function t8(t){w(t,_Y),n.obsidian(t.__wbg_ptr)}function t3(t,_,e,r,i){w(t,_Y);let o=n.crop(t.__wbg_ptr,_,e,r,i);return _Y.__wrap(o)}function t5(t,_,e,r,i){return n.crop_img_browser(t,_,e,r,i)}function t6(t){w(t,_Y),n.fliph(t.__wbg_ptr)}function t7(t){w(t,_Y),n.flipv(t.__wbg_ptr)}function t2(t,_,e,r){return w(t,_Y),n.resize_img_browser(t.__wbg_ptr,_,e,r)}function t9(t,_,e,r){w(t,_Y);let i=n.resize(t.__wbg_ptr,_,e,r);return _Y.__wrap(i)}function _t(t,_,e){w(t,_Y);let r=n.seam_carve(t.__wbg_ptr,_,e);return _Y.__wrap(r)}function __(t,_){w(t,_Y);let e=n.shearx(t.__wbg_ptr,_);return _Y.__wrap(e)}function _e(t,_){w(t,_Y);let e=n.sheary(t.__wbg_ptr,_);return _Y.__wrap(e)}function _n(t,_,e){w(t,_Y),w(e,_4);var r=e.__destroy_into_raw();let i=n.padding_uniform(t.__wbg_ptr,_,r);return _Y.__wrap(i)}function _r(t,_,e){w(t,_Y),w(e,_4);var r=e.__destroy_into_raw();let i=n.padding_left(t.__wbg_ptr,_,r);return _Y.__wrap(i)}function _i(t,_,e){w(t,_Y),w(e,_4);var r=e.__destroy_into_raw();let i=n.padding_right(t.__wbg_ptr,_,r);return _Y.__wrap(i)}function _o(t,_,e){w(t,_Y),w(e,_4);var r=e.__destroy_into_raw();let i=n.padding_top(t.__wbg_ptr,_,r);return _Y.__wrap(i)}function _a(t,_,e){w(t,_Y),w(e,_4);var r=e.__destroy_into_raw();let i=n.padding_bottom(t.__wbg_ptr,_,r);return _Y.__wrap(i)}function _g(t,_){w(t,_Y);let e=n.rotate(t.__wbg_ptr,_);return _Y.__wrap(e)}function _c(t,_,e){w(t,_Y);let r=n.resample(t.__wbg_ptr,_,e);return _Y.__wrap(r)}function _l(t,_,e){w(t,_Y),n.offset(t.__wbg_ptr,_,e)}function _s(t,_){w(t,_Y),n.offset_red(t.__wbg_ptr,_)}function _u(t,_){w(t,_Y),n.offset_green(t.__wbg_ptr,_)}function _b(t,_){w(t,_Y),n.offset_blue(t.__wbg_ptr,_)}function _w(t,_,e,r){w(t,_Y),n.multiple_offsets(t.__wbg_ptr,_,e,r)}function _f(t){w(t,_Y),n.halftone(t.__wbg_ptr)}function _d(t){w(t,_Y),n.primary(t.__wbg_ptr)}function _p(t){w(t,_Y),n.colorize(t.__wbg_ptr)}function _h(t){w(t,_Y),n.solarize(t.__wbg_ptr)}function _m(t){w(t,_Y);let _=n.solarize_retimg(t.__wbg_ptr);return _Y.__wrap(_)}function _y(t,_){w(t,_Y),n.adjust_brightness(t.__wbg_ptr,_)}function _v(t,_){w(t,_Y),n.inc_brightness(t.__wbg_ptr,_)}function _x(t,_){w(t,_Y),n.dec_brightness(t.__wbg_ptr,_)}function _z(t,_){w(t,_Y),n.adjust_contrast(t.__wbg_ptr,_)}function _I(t,_,e,r){w(t,_Y),n.tint(t.__wbg_ptr,_,e,r)}function _k(t,_){w(t,_Y),n.horizontal_strips(t.__wbg_ptr,_)}function _C(t,_,e){w(t,_Y),w(e,_0);var r=e.__destroy_into_raw();n.color_horizontal_strips(t.__wbg_ptr,_,r)}function _R(t,_){w(t,_Y),n.vertical_strips(t.__wbg_ptr,_)}function _j(t,_,e){w(t,_Y),w(e,_0);var r=e.__destroy_into_raw();n.color_vertical_strips(t.__wbg_ptr,_,r)}function _A(t,_,e){w(t,_Y),n.oil(t.__wbg_ptr,_,e)}function _E(t){w(t,_Y),n.frosted_glass(t.__wbg_ptr)}function _O(t,_){w(t,_Y),n.pixelize(t.__wbg_ptr,_)}function _T(t){w(t,_Y),n.normalize(t.__wbg_ptr)}function _D(t,_){w(t,_Y),n.dither(t.__wbg_ptr,_)}function _W(t,_,e){w(t,_Y),w(_,_0);var r=_.__destroy_into_raw();w(e,_0);var i=e.__destroy_into_raw();n.duotone(t.__wbg_ptr,r,i)}function _F(t,_,e,i,o){w(t,_Y);let a=c(_,n.__wbindgen_malloc,n.__wbindgen_realloc),g=r;n.draw_text_with_border(t.__wbg_ptr,a,g,e,i,o)}function _S(t,_,e,i,o){w(t,_Y);let a=c(_,n.__wbindgen_malloc,n.__wbindgen_realloc),g=r;n.draw_text(t.__wbg_ptr,a,g,e,i,o)}function _L(t,_){let e=_(+t.length,1)>>>0;return o().set(t,e/1),r=t.length,e}function _$(t,_){return t>>>=0,o().subarray(t/1,t/1+_)}function _U(){let t=n.run();if(t[1]){var _;let e;throw _=t[0],e=n.__wbindgen_export_2.get(_),n.__externref_table_dealloc(_),e}}function _M(t,_){return n.get_image_data(t,_)}function _N(t,_,e){w(e,_Y);var r=e.__destroy_into_raw();n.putImageData(t,_,r)}function _B(t,_){let e=n.open_image(t,_);return _Y.__wrap(e)}function _P(t){let _=n.to_raw_pixels(t);var e=_$(_[0],_[1]).slice();return n.__wbindgen_free(_[0],+_[1],1),e}function _q(t){let _=c(t,n.__wbindgen_malloc,n.__wbindgen_realloc),e=r,i=n.base64_to_image(_,e);return _Y.__wrap(i)}function _G(t){let _=c(t,n.__wbindgen_malloc,n.__wbindgen_realloc),e=r,i=n.base64_to_vec(_,e);var o=_$(i[0],i[1]).slice();return n.__wbindgen_free(i[0],+i[1],1),o}function _H(t){w(t,_Y);var _=t.__destroy_into_raw();return n.to_image_data(_)}"undefined"!=typeof TextDecoder&&u.decode();function _J(t){let _=n.__externref_table_alloc();return n.__wbindgen_export_2.set(_,t),_}function _V(t,_){try{return t.apply(this,_)}catch(_){let t=_J(_);n.__wbindgen_exn_store(t)}}let _K=null,_Q=Object.freeze({Nearest:1,1:"Nearest",Triangle:2,2:"Triangle",CatmullRom:3,3:"CatmullRom",Gaussian:4,4:"Gaussian",Lanczos3:5,5:"Lanczos3"}),_X="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>n.__wbg_photonimage_free(t>>>0,1));class _Y{static __wrap(t){t>>>=0;let _=Object.create(_Y.prototype);return _.__wbg_ptr=t,_X.register(_,_.__wbg_ptr,_),_}__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,_X.unregister(this),t}free(){let t=this.__destroy_into_raw();n.__wbg_photonimage_free(t,0)}constructor(t,_,e){const i=_L(t,n.__wbindgen_malloc),o=r,a=n.photonimage_new(i,o,_,e);return this.__wbg_ptr=a>>>0,_X.register(this,this.__wbg_ptr,this),this}static new_from_base64(t){let _=c(t,n.__wbindgen_malloc,n.__wbindgen_realloc),e=r,i=n.base64_to_image(_,e);return _Y.__wrap(i)}static new_from_byteslice(t){let _=_L(t,n.__wbindgen_malloc),e=r,i=n.photonimage_new_from_byteslice(_,e);return _Y.__wrap(i)}static new_from_blob(t){let _=n.photonimage_new_from_blob(t);return _Y.__wrap(_)}static new_from_image(t){let _=n.photonimage_new_from_image(t);return _Y.__wrap(_)}get_width(){return n.photonimage_get_width(this.__wbg_ptr)>>>0}get_raw_pixels(){let t=n.photonimage_get_raw_pixels(this.__wbg_ptr);var _=_$(t[0],t[1]).slice();return n.__wbindgen_free(t[0],+t[1],1),_}get_height(){return n.photonimage_get_height(this.__wbg_ptr)>>>0}get_base64(){let t,_;try{let e=n.photonimage_get_base64(this.__wbg_ptr);return t=e[0],_=e[1],b(e[0],e[1])}finally{n.__wbindgen_free(t,_,1)}}get_bytes(){let t=n.photonimage_get_bytes(this.__wbg_ptr);var _=_$(t[0],t[1]).slice();return n.__wbindgen_free(t[0],+t[1],1),_}get_bytes_jpeg(t){let _=n.photonimage_get_bytes_jpeg(this.__wbg_ptr,t);var e=_$(_[0],_[1]).slice();return n.__wbindgen_free(_[0],+_[1],1),e}get_bytes_webp(){let t=n.photonimage_get_bytes_webp(this.__wbg_ptr);var _=_$(t[0],t[1]).slice();return n.__wbindgen_free(t[0],+t[1],1),_}get_image_data(){return n.photonimage_get_image_data(this.__wbg_ptr)}set_imgdata(t){n.photonimage_set_imgdata(this.__wbg_ptr,t)}get_estimated_filesize(){return BigInt.asUintN(64,n.photonimage_get_estimated_filesize(this.__wbg_ptr))}}let _Z="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>n.__wbg_rgb_free(t>>>0,1));class _0{__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,_Z.unregister(this),t}free(){let t=this.__destroy_into_raw();n.__wbg_rgb_free(t,0)}constructor(t,_,e){const r=n.rgb_new(t,_,e);return this.__wbg_ptr=r>>>0,_Z.register(this,this.__wbg_ptr,this),this}set_red(t){n.rgb_set_red(this.__wbg_ptr,t)}set_green(t){n.rgb_set_green(this.__wbg_ptr,t)}set_blue(t){n.rgb_set_blue(this.__wbg_ptr,t)}get_red(){return n.rgb_get_red(this.__wbg_ptr)}get_green(){return n.rgb_get_green(this.__wbg_ptr)}get_blue(){return n.rgb_get_blue(this.__wbg_ptr)}}let _1="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>n.__wbg_rgba_free(t>>>0,1));class _4{__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,_1.unregister(this),t}free(){let t=this.__destroy_into_raw();n.__wbg_rgba_free(t,0)}constructor(t,_,e,r){const i=n.rgba_new(t,_,e,r);return this.__wbg_ptr=i>>>0,_1.register(this,this.__wbg_ptr,this),this}set_red(t){n.rgb_set_red(this.__wbg_ptr,t)}set_green(t){n.rgb_set_green(this.__wbg_ptr,t)}set_blue(t){n.rgb_set_blue(this.__wbg_ptr,t)}set_alpha(t){n.rgba_set_alpha(this.__wbg_ptr,t)}get_red(){return n.rgb_get_red(this.__wbg_ptr)}get_green(){return n.rgb_get_green(this.__wbg_ptr)}get_blue(){return n.rgb_get_blue(this.__wbg_ptr)}get_alpha(){return n.rgba_get_alpha(this.__wbg_ptr)}}async function _8(t,_){if("function"==typeof Response&&t instanceof Response){if("function"==typeof WebAssembly.instantiateStreaming)try{return await WebAssembly.instantiateStreaming(t,_)}catch(_){if("application/wasm"!=t.headers.get("Content-Type"))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",_);else throw _}let e=await t.arrayBuffer();return await WebAssembly.instantiate(e,_)}{let e=await WebAssembly.instantiate(t,_);return e instanceof WebAssembly.Instance?{instance:e,module:t}:e}}function _3(){let t={};return t.wbg={},t.wbg.__wbg_new_abda76e883ba8a5f=function(){return Error()},t.wbg.__wbg_stack_658279fe44541cf6=function(t,_){let e=c(_.stack,n.__wbindgen_malloc,n.__wbindgen_realloc),i=r;s().setInt32(t+4,i,!0),s().setInt32(t+0,e,!0)},t.wbg.__wbg_error_f851667af71bcfc6=function(t,_){let e,r;try{e=t,r=_,console.error(b(t,_))}finally{n.__wbindgen_free(e,r,1)}},t.wbg.__wbg_instanceof_Window_c4b70662a0d2c5ec=function(t){let _;try{_=t instanceof Window}catch(t){_=!1}return _},t.wbg.__wbg_document_e5c1786dea6542e4=function(t){let _=t.document;return null==_?0:_J(_)},t.wbg.__wbg_body_e70ae6abd01ae584=function(t){let _=t.body;return null==_?0:_J(_)},t.wbg.__wbg_createElement_5d4c76f218b78145=function(){return _V(function(t,_,e){return t.createElement(b(_,e))},arguments)},t.wbg.__wbg_width_4c6f0048d64cf86b=function(t){return t.width},t.wbg.__wbg_height_21f0d3fd8f753394=function(t){return t.height},t.wbg.__wbg_width_79e0847ed5883b03=function(t){return t.width},t.wbg.__wbg_height_e4e4e4779f8feac0=function(t){return t.height},t.wbg.__wbg_data_fda507064d127f5b=function(t,_){let e=_L(_.data,n.__wbindgen_malloc),i=r;s().setInt32(t+4,i,!0),s().setInt32(t+0,e,!0)},t.wbg.__wbg_newwithu8clampedarrayandsh_1fddccb3a94a5e05=function(){return _V(function(t,_,e,r){var i;return new ImageData((i=t>>>0,((null===_K||0===_K.byteLength)&&(_K=new Uint8ClampedArray(n.memory.buffer)),_K).subarray(i/1,i/1+_)),e>>>0,r>>>0)},arguments)},t.wbg.__wbg_instanceof_CanvasRenderingContext2d_3abbe7ec7af32cae=function(t){let _;try{_=t instanceof CanvasRenderingContext2D}catch(t){_=!1}return _},t.wbg.__wbg_drawImage_fede06db74e39a60=function(){return _V(function(t,_,e,n){t.drawImage(_,e,n)},arguments)},t.wbg.__wbg_drawImage_f395c8e43c79a909=function(){return _V(function(t,_,e,n,r,i,o,a,g,c){t.drawImage(_,e,n,r,i,o,a,g,c)},arguments)},t.wbg.__wbg_getImageData_5e1c242046e6b59e=function(){return _V(function(t,_,e,n,r){return t.getImageData(_,e,n,r)},arguments)},t.wbg.__wbg_putImageData_a8b3e177ee06d521=function(){return _V(function(t,_,e,n){t.putImageData(_,e,n)},arguments)},t.wbg.__wbg_instanceof_HtmlCanvasElement_25d964a0dde6717e=function(t){let _;try{_=t instanceof HTMLCanvasElement}catch(t){_=!1}return _},t.wbg.__wbg_width_dc225e55343b745e=function(t){return t.width},t.wbg.__wbg_setwidth_488780db69b08846=function(t,_){t.width=_>>>0},t.wbg.__wbg_height_3a8bec2f3fe71b26=function(t){return t.height},t.wbg.__wbg_setheight_1761808c18403921=function(t,_){t.height=_>>>0},t.wbg.__wbg_getContext_fc99dbd3a9a7e318=function(){return _V(function(t,_,e){let n=t.getContext(b(_,e));return null==n?0:_J(n)},arguments)},t.wbg.__wbg_settextContent_f82a86a8df347e1c=function(t,_,e){t.textContent=0===_?void 0:b(_,e)},t.wbg.__wbg_appendChild_fa3b00dade9fc4cf=function(){return _V(function(t,_){return t.appendChild(_)},arguments)},t.wbg.__wbg_newnoargs_e643855c6572a4a8=function(t,_){return Function(b(t,_))},t.wbg.__wbg_call_f96b398515635514=function(){return _V(function(t,_){return t.call(_)},arguments)},t.wbg.__wbg_self_b9aad7f1c618bfaf=function(){return _V(function(){return self.self},arguments)},t.wbg.__wbg_window_55e469842c98b086=function(){return _V(function(){return window.window},arguments)},t.wbg.__wbg_globalThis_d0957e302752547e=function(){return _V(function(){return globalThis.globalThis},arguments)},t.wbg.__wbg_global_ae2f87312b8987fb=function(){return _V(function(){return e.g.global},arguments)},t.wbg.__wbindgen_is_undefined=function(t){return void 0===t},t.wbg.__wbg_buffer_fcbfb6d88b2732e9=function(t){return t.buffer},t.wbg.__wbg_new_bc5d9aad3f9ac80e=function(t){return new Uint8Array(t)},t.wbg.__wbg_set_4b3aa8445ac1e91c=function(t,_,e){t.set(_,e>>>0)},t.wbg.__wbg_length_d9c4ded7e708c6a1=function(t){return t.length},t.wbg.__wbindgen_debug_string=function(t,_){let e=c(function t(_){let e,n=typeof _;if("number"==n||"boolean"==n||null==_)return`${_}`;if("string"==n)return`"${_}"`;if("symbol"==n){let t=_.description;return null==t?"Symbol":`Symbol(${t})`}if("function"==n){let t=_.name;return"string"==typeof t&&t.length>0?`Function(${t})`:"Function"}if(Array.isArray(_)){let e=_.length,n="[";e>0&&(n+=t(_[0]));for(let r=1;r<e;r++)n+=", "+t(_[r]);return n+"]"}let r=/\[object ([^\]]+)\]/.exec(toString.call(_));if(!(r.length>1))return toString.call(_);if("Object"==(e=r[1]))try{return"Object("+JSON.stringify(_)+")"}catch(t){return"Object"}return _ instanceof Error?`${_.name}: ${_.message}
${_.stack}`:e}(_),n.__wbindgen_malloc,n.__wbindgen_realloc),i=r;s().setInt32(t+4,i,!0),s().setInt32(t+0,e,!0)},t.wbg.__wbindgen_throw=function(t,_){throw Error(b(t,_))},t.wbg.__wbindgen_memory=function(){return n.memory},t.wbg.__wbindgen_init_externref_table=function(){let t=n.__wbindgen_export_2,_=t.grow(4);t.set(0,void 0),t.set(_+0,void 0),t.set(_+1,null),t.set(_+2,!0),t.set(_+3,!1)},t}function _5(t,_){return n=t.exports,_7.__wbindgen_wasm_module=_,l=null,i=null,_K=null,n.__wbindgen_start(),n}function _6(t){if(void 0!==n)return n;void 0!==t&&(Object.getPrototypeOf(t)===Object.prototype?{module:t}=t:console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));let _=_3();return t instanceof WebAssembly.Module||(t=new WebAssembly.Module(t)),_5(new WebAssembly.Instance(t,_),t)}async function _7(t){if(void 0!==n)return n;void 0!==t&&(Object.getPrototypeOf(t)===Object.prototype?{module_or_path:t}=t:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),void 0===t&&(t=new URL(e(57390),e.b));let _=_3();("string"==typeof t||"function"==typeof Request&&t instanceof Request||"function"==typeof URL&&t instanceof URL)&&(t=fetch(t));let{instance:r,module:i}=await _8(await t,_);return _5(r,i)}let _2=_7},57390(t,_,e){t.exports=e.p+"static/wasm/9e906fbf.module.wasm"}}]);
//# sourceMappingURL=195.3a2e080c.js.map