Agriculture-front-end/public/libs/canvg/3.0.10/umd.min.js

1 line
194 KiB
JavaScript
Raw Normal View History

2023-06-22 06:50:23 +08:00
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).canvg={})}(this,function(t){"use strict";var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function n(t){var e={exports:{}};return t(e,e.exports),e.exports}function f(e,r){try{Object.defineProperty(d,e,{value:r,configurable:!0,writable:!0})}catch(t){d[e]=r}return r}function l(t){if(null==t)throw TypeError("Can't call method on "+t);return t}function S(t){return Object(l(t))}function s(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++y+g).toString(36)}function i(t,e){return arguments.length<2?(r=d[t],O(r)?r:void 0):d[t]&&d[t][e];var r}var o=function(t){return t&&t.Math==Math&&t},d=o("object"==typeof globalThis&&globalThis)||o("object"==typeof window&&window)||o("object"==typeof self&&self)||o("object"==typeof e&&e)||function(){return this}()||Function("return this")(),a="__core-js_shared__",u=d[a]||f(a,{}),c=n(function(t){(t.exports=function(t,e){return u[t]||(u[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.18.2",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),h={}.hasOwnProperty,p=Object.hasOwn||function(t,e){return h.call(S(t),e)},y=0,g=Math.random(),O=function(t){return"function"==typeof t},v=i("navigator","userAgent")||"",m=d.process,x=d.Deno,b=m&&m.versions||x&&x.version,w=b&&b.v8;w?ur=(ar=w.split("."))[0]<4?1:ar[0]+ar[1]:v&&(!(ar=v.match(/Edge\/(\d+)/))||74<=ar[1])&&(ar=v.match(/Chrome\/(\d+)/))&&(ur=ar[1]);function k(t){try{return!!t()}catch(t){return!0}}function T(t){return p(E,t)&&(R||"string"==typeof E[t])||(R&&p(C,t)?E[t]=C[t]:E[t]=M("Symbol."+t)),E[t]}var A=ur&&+ur,R=!!Object.getOwnPropertySymbols&&!k(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&A&&A<41}),P=R&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,E=c("wks"),C=d.Symbol,M=P?C:C&&C.withoutSetter||s,N={};N[T("toStringTag")]="z";function _(t){return F?j.createElement(t):{}}function I(t){return t=q(t,"string"),H(t)?t:String(t)}function V(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}var L="[object z]"===String(N),B=!k(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}),D=function(t){return"object"==typeof t?null!==t:O(t)},j=d.document,F=D(j)&&D(j.createElement),z=!B&&!k(function(){return 7!=Object.defineProperty(_("div"),"a",{get:function(){return 7}}).a}),U=function(t){if(D(t))return t;throw TypeError(String(t)+" is not an object")},H=P?function(t){return"symbol"==typeof t}:function(t){var e=i("Symbol");return O(e)&&Object(t)instanceof e},X=function(t){try{return String(t)}catch(t){return"Object"}},Y=function(t){if(O(t))return t;throw TypeError(X(t)+" is not a function")},G=function(t,e){e=t[e];return null==e?void 0:Y(e)},W=T("toPrimitive"),q=function(t,e){if(!D(t)||H(t))return t;var r=G(t,W);if(r){if(r=r.call(t,e=void 0===e?"default":e),!D(r)||H(r))return r;throw TypeError("Can't convert object to primitive value")}return function(t,e){var r,n;if("string"===e&&O(r=t.toString)&&!D(n=r.call(t)))return n;if(O(r=t.valueOf)&&!D(n=r.call(t)))return n;if("string"!==e&&O(r=t.toString)&&!D(n=r.call(t)))return n;throw TypeError("Can't convert object to primitive value")}(t,e=void 0===e?"number":e)},$=Object.defineProperty,Q={f:B?$:function(t,e,r){if(U(t),e=I(e),U(r),z)try{return $(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},Z=B?function(t,e,r){return Q.f(t,e,V(1,r))}:function(t,e,r){return t[e]=r,t},K=Function.toString;O(u.inspectSource)||(u.inspectSource=function(t){return K.call(t)});var J,tt,et,rt,nt,it,ot,at,ut=u.inspectSource,st=d.WeakMap,ct=O(st)&&/native code/.test(ut(st)),lt=c("keys"),ft=function(t){return lt[t]||(lt[t]=s(t))},ht={},pt="Object already initialized