2020-09-09 22:54:17 +00:00
|
|
|
var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function createCommonjsModule(t,e,n){return t(n={path:e,exports:{},require:function(t,e){return function commonjsRequire(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==e&&n.path)}},n.exports),n.exports}var check=function(t){return t&&t.Math==Math&&t},e=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof t&&t)||Function("return this")(),fails=function(t){try{return!!t()}catch(t){return!0}},n=!fails((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o={f:i&&!r.call({1:2},1)?function propertyIsEnumerable(t){var e=i(this,t);return!!e&&e.enumerable}:r},createPropertyDescriptor=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},a={}.toString,classofRaw=function(t){return a.call(t).slice(8,-1)},s="".split,u=fails((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==classofRaw(t)?s.call(t,""):Object(t)}:Object,requireObjectCoercible=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},toIndexedObject=function(t){return u(requireObjectCoercible(t))},isObject=function(t){return"object"==typeof t?null!==t:"function"==typeof t},toPrimitive=function(t,e){if(!isObject(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!isObject(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!isObject(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!isObject(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},c={}.hasOwnProperty,has=function(t,e){return c.call(t,e)},h=e.document,l=isObject(h)&&isObject(h.createElement),documentCreateElement=function(t){return l?h.createElement(t):{}},f=!n&&!fails((function(){return 7!=Object.defineProperty(documentCreateElement("div"),"a",{get:function(){return 7}}).a})),_=Object.getOwnPropertyDescriptor,g={f:n?_:function getOwnPropertyDescriptor(t,e){if(t=toIndexedObject(t),e=toPrimitive(e,!0),f)try{return _(t,e)}catch(t){}if(has(t,e))return createPropertyDescriptor(!o.f.call(t,e),t[e])}},anObject=function(t){if(!isObject(t))throw TypeError(String(t)+" is not an object");return t},S=Object.defineProperty,p={f:n?S:function defineProperty(t,e,n){if(anObject(t),e=toPrimitive(e,!0),anObject(n),f)try{return S(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},y=n?function(t,e,n){return p.f(t,e,createPropertyDescriptor(1,n))}:function(t,e,n){return t[e]=n,t},setGlobal=function(t,n){try{y(e,t,n)}catch(r){e[t]=n}return n},d=e["__core-js_shared__"]||setGlobal("__core-js_shared__",{}),v=Function.toString;"function"!=typeof d.inspectSource&&(d.inspectSource=function(t){return v.call(t)});var m,P,b,A=d.inspectSource,C=e.WeakMap,x="function"==typeof C&&/native code/.test(A(C)),G=createCommonjsModule((function(t){(t.exports=function(t,e){return d[t]||(d[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),E=0,V=Math.random(),uid=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++E+V).toString(36)},T=G("keys"),sharedKey=function(t){return T[t]||(T[t]=uid(t))},w={},O=e.WeakMap;if(x){var L=new O,R=L.get,I=L.has,k=L.set;m=function(t,e){return k.call(L,t,e),e},P=function(t){return R.call(L,t)||{}},b=function(t){return I.call(L,t)}}else{var j=sharedKey("state");w[j]=!0,m=function(t,e){return y(t,j,e),e},P=function(t){return has(t,j)?t[j]:{}},b=function(t){return has(t,j)}}var N,H,M={set:m,get:P,has:b,enforce:function(t){return b(t)?P(t):m(t,{})},getterFor:function(t){return function(e){var n;if(!isObject(e)||(n=P(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}},U=createCommonjsModule((function(t){var n=M.get,r=M.enforc
|
|
|
|
/**
|
|
|
|
* Localizing script for SVG-edit UI.
|
|
|
|
* @module locale
|
|
|
|
* @license MIT
|
|
|
|
*
|
|
|
|
* @copyright 2010 Narendra Sisodya
|
|
|
|
* @copyright 2010 Alexis Deveria
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
jQuery;var Mi=function(){var t=_asyncToGenerator(regeneratorRuntime.mark((function _callee2(t,e){var n;return regeneratorRuntime.wrap((function _callee2$(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,import("./extensions/ext-".concat(t,"/locale/").concat(e,".js"));case 3:n=r.sent,r.next=12;break;case 6:return r.prev=6,r.t0=r.catch(0),console.error("Missing translation (".concat(e,") for extension ").concat(t," - using 'en'")),r.next=11,import("./extensions/ext-".concat(t,"/locale/en.js"));case 11:n=r.sent;case 12:return r.abrupt("return",n.default);case 13:case"end":return r.stop()}}),_callee2,null,[[0,6]])})));return function loadExtensionTranslation(e,n){return t.apply(this,arguments)}}(),Fi=arrayMethodHasSpeciesSupport("splice"),Ui=arrayMethodUsesToLength("splice",{ACCESSORS:!0,0:0,1:2}),Bi=Math.max,Qi=Math.min;_export({target:"Array",proto:!0,forced:!Fi||!Ui},{splice:function splice(t,e){var n,r,i,o,a,s,u=toObject(this),c=toLength(u.length),h=toAbsoluteIndex(t,c),l=arguments.length;if(0===l?n=r=0:1===l?(n=0,r=c-h):(n=l-2,r=Qi(Bi(toInteger(e),0),c-h)),c+n-r>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(i=arraySpeciesCreate(u,r),o=0;o<r;o++)(a=h+o)in u&&createProperty(i,o,u[a]);if(i.length=r,n<r){for(o=h;o<c-r;o++)s=o+n,(a=o+r)in u?u[s]=u[a]:delete u[s];for(o=c;o>c-r+n;o--)delete u[o-1]}else if(n>r)for(o=c-r;o>h;o--)s=o+n-1,(a=o+r-1)in u?u[s]=u[a]:delete u[s];for(o=0;o<n;o++)u[o+h]=arguments[o+2];return u.length=c-r+n,i}});var Di=[].slice,zi={},construct=function(t,e,n){if(!(e in zi)){for(var r=[],i=0;i<e;i++)r[i]="a["+i+"]";zi[e]=Function("C,a","return new C("+r.join(",")+")")}return zi[e](t,n)},Wi=Function.bind||function bind(t){var e=aFunction$1(this),n=Di.call(arguments,1),r=function bound(){var i=n.concat(Di.call(arguments));return this instanceof r?construct(e,i.length,i):e.apply(t,i)};return isObject(e.prototype)&&(r.prototype=e.prototype),r};_export({target:"Function",proto:!0},{bind:Wi}),_export({target:"Object",stat:!0,forced:!n,sham:!n},{defineProperties:Nt}),function(){if(!("SVGPathSeg"in window)){var t=function(){function _SVGPathSeg(t,e,n){_classCallCheck(this,_SVGPathSeg),this.pathSegType=t,this.pathSegTypeAsLetter=e,this._owningPathSegList=n}return _createClass(_SVGPathSeg,[{key:"_segmentChanged",value:function _segmentChanged(){this._owningPathSegList&&this._owningPathSegList.segmentChanged(this)}}]),_SVGPathSeg}();t.prototype.classname="SVGPathSeg",t.PATHSEG_UNKNOWN=0,t.PATHSEG_CLOSEPATH=1,t.PATHSEG_MOVETO_ABS=2,t.PATHSEG_MOVETO_REL=3,t.PATHSEG_LINETO_ABS=4,t.PATHSEG_LINETO_REL=5,t.PATHSEG_CURVETO_CUBIC_ABS=6,t.PATHSEG_CURVETO_CUBIC_REL=7,t.PATHSEG_CURVETO_QUADRATIC_ABS=8,t.PATHSEG_CURVETO_QUADRATIC_REL=9,t.PATHSEG_ARC_ABS=10,t.PATHSEG_ARC_REL=11,t.PATHSEG_LINETO_HORIZONTAL_ABS=12,t.PATHSEG_LINETO_HORIZONTAL_REL=13,t.PATHSEG_LINETO_VERTICAL_ABS=14,t.PATHSEG_LINETO_VERTICAL_REL=15,t.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS=16,t.PATHSEG_CURVETO_CUBIC_SMOOTH_REL=17,t.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS=18,t.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL=19;var e=function(e){_inherits(_SVGPathSegClosePath,e);var n=_createSuper(_SVGPathSegClosePath);function _SVGPathSegClosePath(e){return _classCallCheck(this,_SVGPathSegClosePath),n.call(this,t.PATHSEG_CLOSEPATH,"z",e)}return _createClass(_SVGPathSegClosePath,[{key:"toString",value:function toString(){return"[object SVGPathSegClosePath]"}},{key:"_asPathString",value:function _asPathString(){return this.pathSegTypeAsLetter}},{key:"clone",value:function clone(){return new _SVGPathSegClosePath(void 0)}}]),_SVGPathSegClosePath}(t),n=function(e){_inherits(_SVGPathSegMovetoAbs,e);var n=_createSuper(_SVGPathSegMovetoAbs);function _SVGPathSegMovetoAbs(e,r,i){var o;return _classCallCheck(this,_SVGPathSegMovetoAbs),(o=n.call(this,t.PATHSEG_MOVETO_ABS,"M",e))._x=r,o._y=i,o}return _createClass(_SVGPathSegMovetoAbs,[{key:"toString",value:function toString(){return"[object SVGPathSegMovetoAbs]"}},{key:"_asPathString",value:function _asPathString(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y}},{key:"clone",value:function clone(){re
|
2020-09-06 06:32:10 +00:00
|
|
|
//# sourceMappingURL=ext-closepath.js.map
|