582 lines
1.9 MiB
582 lines
1.9 MiB
var er="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function createCommonjsModule(er,tr,rr){return er(rr={path:tr,exports:{},require:function(er,tr){return function commonjsRequire(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==tr&&rr.path)}},rr.exports),rr.exports}var check=function(er){return er&&er.Math==Math&&er},tr=check("object"==typeof globalThis&&globalThis)||check("object"==typeof window&&window)||check("object"==typeof self&&self)||check("object"==typeof er&&er)||Function("return this")(),fails=function(er){try{return!!er()}catch(er){return!0}},rr=!fails((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),nr={}.propertyIsEnumerable,ir=Object.getOwnPropertyDescriptor,or={f:ir&&!nr.call({1:2},1)?function propertyIsEnumerable(er){var tr=ir(this,er);return!!tr&&tr.enumerable}:nr},createPropertyDescriptor=function(er,tr){return{enumerable:!(1&er),configurable:!(2&er),writable:!(4&er),value:tr}},ar={}.toString,classofRaw=function(er){return ar.call(er).slice(8,-1)},sr="".split,lr=fails((function(){return!Object("z").propertyIsEnumerable(0)}))?function(er){return"String"==classofRaw(er)?sr.call(er,""):Object(er)}:Object,requireObjectCoercible=function(er){if(null==er)throw TypeError("Can't call method on "+er);return er},toIndexedObject=function(er){return lr(requireObjectCoercible(er))},isObject=function(er){return"object"==typeof er?null!==er:"function"==typeof er},toPrimitive=function(er,tr){if(!isObject(er))return er;var rr,nr;if(tr&&"function"==typeof(rr=er.toString)&&!isObject(nr=rr.call(er)))return nr;if("function"==typeof(rr=er.valueOf)&&!isObject(nr=rr.call(er)))return nr;if(!tr&&"function"==typeof(rr=er.toString)&&!isObject(nr=rr.call(er)))return nr;throw TypeError("Can't convert object to primitive value")},cr={}.hasOwnProperty,has=function(er,tr){return cr.call(er,tr)},ur=tr.document,dr=isObject(ur)&&isObject(ur.createElement),documentCreateElement=function(er){return dr?ur.createElement(er):{}},hr=!rr&&!fails((function(){return 7!=Object.defineProperty(documentCreateElement("div"),"a",{get:function(){return 7}}).a})),pr=Object.getOwnPropertyDescriptor,Ar={f:rr?pr:function getOwnPropertyDescriptor(er,tr){if(er=toIndexedObject(er),tr=toPrimitive(tr,!0),hr)try{return pr(er,tr)}catch(er){}if(has(er,tr))return createPropertyDescriptor(!or.f.call(er,tr),er[tr])}},anObject=function(er){if(!isObject(er))throw TypeError(String(er)+" is not an object");return er},fr=Object.defineProperty,gr={f:rr?fr:function defineProperty(er,tr,rr){if(anObject(er),tr=toPrimitive(tr,!0),anObject(rr),hr)try{return fr(er,tr,rr)}catch(er){}if("get"in rr||"set"in rr)throw TypeError("Accessors not supported");return"value"in rr&&(er[tr]=rr.value),er}},mr=rr?function(er,tr,rr){return gr.f(er,tr,createPropertyDescriptor(1,rr))}:function(er,tr,rr){return er[tr]=rr,er},setGlobal=function(er,rr){try{mr(tr,er,rr)}catch(nr){tr[er]=rr}return rr},_r=tr["__core-js_shared__"]||setGlobal("__core-js_shared__",{}),vr=Function.toString;"function"!=typeof _r.inspectSource&&(_r.inspectSource=function(er){return vr.call(er)});var yr,br,wr,Sr=_r.inspectSource,xr=tr.WeakMap,kr="function"==typeof xr&&/native code/.test(Sr(xr)),Cr=createCommonjsModule((function(er){(er.exports=function(er,tr){return _r[er]||(_r[er]=void 0!==tr?tr:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),Br=0,Er=Math.random(),uid=function(er){return"Symbol("+String(void 0===er?"":er)+")_"+(++Br+Er).toString(36)},Nr=Cr("keys"),sharedKey=function(er){return Nr[er]||(Nr[er]=uid(er))},Lr={},Tr=tr.WeakMap;if(kr){var Pr=new Tr,Fr=Pr.get,Ur=Pr.has,Ir=Pr.set;yr=function(er,tr){return Ir.call(Pr,er,tr),tr},br=function(er){return Fr.call(Pr,er)||{}},wr=function(er){return Ur.call(Pr,er)}}else{var Rr=sharedKey("state");Lr[Rr]=!0,yr=function(er,tr){return mr(er,Rr,tr),tr},br=function(er){return has(er,Rr)?er[Rr]:{}},wr=function(er){return has(er,Rr)}}var Mr,Or,Qr={set:yr,get:br,has:wr,enforce:function(er){return wr(er)?br(er):yr(er,{})},getterFor:function(er){return function(tr){var rr;if(!isObject(tr)||(rr=br(tr)).type!==er)throw TypeError("Incompatible receiver, "+er+" required");return rr}}},Dr=createCommonjsModule((function(er){var rr=Qr.get,nr=Qr.enforce,ir=String(String).split("String");(er.exports=function(er,rr,or,ar){var sr=!!ar&&!!ar.unsafe,lr=!!ar&&!!ar.enumerable,cr=!!ar&&!!ar.noTargetGet;"function"==typeof or&&("string"!=typeof rr||has(or,"name")||mr(or,"name",rr),nr(or).source=ir.join("string"==typeof rr?rr:"")),er!==tr?(sr?!cr&&er[rr]&&(lr=!0):delete er[rr],lr?er[rr]=or:mr(er,rr,or)):lr?er[rr]=or:setGlobal(rr,or)})(Function.prototype,"toString",(function toString(){return"function"==typeof this&&rr(this).source||Sr(this)}))})),jr=tr,aFunction=function(er){return"function"==typeof er?er:void 0},getBuiltIn=function(er,rr){return arguments.length<2?aFunction(jr[er])||aFunction(tr[er]):jr[er]&&jr[er][rr]||tr[er]&&tr[er][rr]},Hr=Math.ceil,Gr=Math.floor,toInteger=function(er){return isNaN(er=+er)?0:(er>0?Gr:Hr)(er)},Vr=Math.min,toLength=function(er){return er>0?Vr(toInteger(er),9007199254740991):0},zr=Math.max,Kr=Math.min,toAbsoluteIndex=function(er,tr){var rr=toInteger(er);return rr<0?zr(rr+tr,0):Kr(rr,tr)},createMethod=function(er){return function(tr,rr,nr){var ir,or=toIndexedObject(tr),ar=toLength(or.length),sr=toAbsoluteIndex(nr,ar);if(er&&rr!=rr){for(;ar>sr;)if((ir=or[sr++])!=ir)return!0}else for(;ar>sr;sr++)if((er||sr in or)&&or[sr]===rr)return er||sr||0;return!er&&-1}},qr={includes:createMethod(!0),indexOf:createMethod(!1)},Wr=qr.indexOf,objectKeysInternal=function(er,tr){var rr,nr=toIndexedObject(er),ir=0,or=[];for(rr in nr)!has(Lr,rr)&&has(nr,rr)&&or.push(rr);for(;tr.length>ir;)has(nr,rr=tr[ir++])&&(~Wr(or,rr)||or.push(rr));return or},Xr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Yr=Xr.concat("length","prototype"),Jr={f:Object.getOwnPropertyNames||function getOwnPropertyNames(er){return objectKeysInternal(er,Yr)}},$r={f:Object.getOwnPropertySymbols},Zr=getBuiltIn("Reflect","ownKeys")||function ownKeys(er){var tr=Jr.f(anObject(er)),rr=$r.f;return rr?tr.concat(rr(er)):tr},copyConstructorProperties=function(er,tr){for(var rr=Zr(tr),nr=gr.f,ir=Ar.f,or=0;or<rr.length;or++){var ar=rr[or];has(er,ar)||nr(er,ar,ir(tr,ar))}},Tn=/#|\.prototype\./,isForced=function(er,tr){var rr=Qn[Un(er)];return rr==Hn||rr!=Dn&&("function"==typeof tr?fails(tr):!!tr)},Un=isForced.normalize=function(er){return String(er).replace(Tn,".").toLowerCase()},Qn=isForced.data={},Dn=isForced.NATIVE="N",Hn=isForced.POLYFILL="P",Gn=isForced,Vn=Ar.f,_export=function(er,rr){var nr,ir,or,ar,sr,lr=er.target,cr=er.global,ur=er.stat;if(nr=cr?tr:ur?tr[lr]||setGlobal(lr,{}):(tr[lr]||{}).prototype)for(ir in rr){if(ar=rr[ir],or=er.noTargetGet?(sr=Vn(nr,ir))&&sr.value:nr[ir],!Gn(cr?ir:lr+(ur?".":"#")+ir,er.forced)&&void 0!==or){if(typeof ar==typeof or)continue;copyConstructorProperties(ar,or)}(er.sham||or&&or.sham)&&mr(ar,"sham",!0),Dr(nr,ir,ar,er)}},zn=Array.isArray||function isArray(er){return"Array"==classofRaw(er)},toObject=function(er){return Object(requireObjectCoercible(er))},createProperty=function(er,tr,rr){var nr=toPrimitive(tr);nr in er?gr.f(er,nr,createPropertyDescriptor(0,rr)):er[nr]=rr},Kn=!!Object.getOwnPropertySymbols&&!fails((function(){return!String(Symbol())})),Wn=Kn&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Xn=Cr("wks"),Yn=tr.Symbol,Jn=Wn?Yn:Yn&&Yn.withoutSetter||uid,wellKnownSymbol=function(er){return has(Xn,er)||(Kn&&has(Yn,er)?Xn[er]=Yn[er]:Xn[er]=Jn("Symbol."+er)),Xn[er]},$n=wellKnownSymbol("species"),arraySpeciesCreate=function(er,tr){var rr;return zn(er)&&("function"!=typeof(rr=er.constructor)||rr!==Array&&!zn(rr.prototype)?isObject(rr)&&null===(rr=rr[$n])&&(rr=void 0):rr=void 0),new(void 0===rr?Array:rr)(0===tr?0:tr)},Zn=getBuiltIn("navigator","userAgent")||"",ei=tr.process,ti=ei&&ei.versions,ri=ti&&ti.v8;ri?Or=(Mr=ri.split("."))[0]+Mr[1]:Zn&&(!(Mr=Zn.match(/Edge\/(\d+)/))||Mr[1]>=74)&&(Mr=Zn.match(/Chrome\/(\d+)/))&&(Or=Mr[1]);var ni=Or&&+Or,ii=wellKnownSymbol("species"),arrayMethodHasSpeciesSupport=function(er){return ni>=51||!fails((function(){var tr=[];return(tr.constructor={})[ii]=function(){return{foo:1}},1!==tr[er](Boolean).foo}))},oi=wellKnownSymbol("isConcatSpreadable"),ai=ni>=51||!fails((function(){var er=[];return er[oi]=!1,er.concat()[0]!==er})),si=arrayMethodHasSpeciesSupport("concat"),isConcatSpreadable=function(er){if(!isObject(er))return!1;var tr=er[oi];return void 0!==tr?!!tr:zn(er)};_export({target:"Array",proto:!0,forced:!ai||!si},{concat:function concat(er){var tr,rr,nr,ir,or,ar=toObject(this),sr=arraySpeciesCreate(ar,0),lr=0;for(tr=-1,nr=arguments.length;tr<nr;tr++)if(isConcatSpreadable(or=-1===tr?ar:arguments[tr])){if(lr+(ir=toLength(or.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(rr=0;rr<ir;rr++,lr++)rr in or&&createProperty(sr,lr,or[rr])}else{if(lr>=9007199254740991)throw TypeError("Maximum allowed index exceeded");createProperty(sr,lr++,or)}return sr.length=lr,sr}});var aFunction$1=function(er){if("function"!=typeof er)throw TypeError(String(er)+" is not a function");return er},functionBindContext=function(er,tr,rr){if(aFunction$1(er),void 0===tr)return er;switch(rr){case 0:return function(){return er.call(tr)};case 1:return function(rr){return er.call(tr,rr)};case 2:return function(rr,nr){return er.call(tr,rr,nr)};case 3:return function(rr,nr,ir){return er.call(tr,rr,nr,ir)}}return function(){return er.apply(tr,arguments)}},li=[].push,createMethod$1=function(er){var tr=1==er,rr=2==er,nr=3==er,ir=4==er,or=6==er,ar=5==er||or;return function(sr,cr,ur,dr){for(var hr,pr,Ar=toObject(sr),fr=lr(Ar),gr=functionBindContext(cr,ur,3),mr=toLength(fr.length),_r=0,vr=dr||arraySpeciesCreate,yr=tr?vr(sr,mr):rr?vr(sr,0):void 0;mr>_r;_r++)if((ar||_r in fr)&&(pr=gr(hr=fr[_r],_r,Ar),er))if(tr)yr[_r]=pr;else if(pr)switch(er){case 3:return!0;case 5:return hr;case 6:return _r;case 2:li.call(yr,hr)}else if(ir)return!1;return or?-1:nr||ir?ir:yr}},ui={forEach:createMethod$1(0),map:createMethod$1(1),filter:createMethod$1(2),some:createMethod$1(3),every:createMethod$1(4),find:createMethod$1(5),findIndex:createMethod$1(6)},di=Object.defineProperty,hi={},thrower=function(er){throw er},arrayMethodUsesToLength=function(er,tr){if(has(hi,er))return hi[er];tr||(tr={});var nr=[][er],ir=!!has(tr,"ACCESSORS")&&tr.ACCESSORS,or=has(tr,0)?tr[0]:thrower,ar=has(tr,1)?tr[1]:void 0;return hi[er]=!!nr&&!fails((function(){if(ir&&!rr)return!0;var er={length:-1};ir?di(er,1,{enumerable:!0,get:thrower}):er[1]=1,nr.call(er,or,ar)}))},pi=ui.filter,Ai=arrayMethodHasSpeciesSupport("filter"),fi=arrayMethodUsesToLength("filter");_export({target:"Array",proto:!0,forced:!Ai||!fi},{filter:function filter(er){return pi(this,er,arguments.length>1?arguments[1]:void 0)}});var gi,mi=Object.keys||function keys(er){return objectKeysInternal(er,Xr)},_i=rr?Object.defineProperties:function defineProperties(er,tr){anObject(er);for(var rr,nr=mi(tr),ir=nr.length,or=0;ir>or;)gr.f(er,rr=nr[or++],tr[rr]);return er},vi=getBuiltIn("document","documentElement"),yi=sharedKey("IE_PROTO"),EmptyConstructor=function(){},scriptTag=function(er){return"<script>"+er+"<\/script>"},NullProtoObject=function(){try{gi=document.domain&&new ActiveXObject("htmlfile")}catch(er){}var er,tr;NullProtoObject=gi?function(er){er.write(scriptTag("")),er.close();var tr=er.parentWindow.Object;return er=null,tr}(gi):((tr=documentCreateElement("iframe")).style.display="none",vi.appendChild(tr),tr.src=String("javascript:"),(er=tr.contentWindow.document).open(),er.write(scriptTag("document.F=Object")),er.close(),er.F);for(var rr=Xr.length;rr--;)delete NullProtoObject.prototype[Xr[rr]];return NullProtoObject()};Lr[yi]=!0;var wi=Object.create||function create(er,tr){var rr;return null!==er?(EmptyConstructor.prototype=anObject(er),rr=new EmptyConstructor,EmptyConstructor.prototype=null,rr[yi]=er):rr=NullProtoObject(),void 0===tr?rr:_i(rr,tr)},Si=wellKnownSymbol("unscopables"),xi=Array.prototype;null==xi[Si]&&gr.f(xi,Si,{configurable:!0,value:wi(null)});var addToUnscopables=function(er){xi[Si][er]=!0},ki=ui.find,Ci=!0,Bi=arrayMethodUsesToLength("find");"find"in[]&&Array(1).find((function(){Ci=!1})),_export({target:"Array",proto:!0,forced:Ci||!Bi},{find:function find(er){return ki(this,er,arguments.length>1?arguments[1]:void 0)}}),addToUnscopables("find");var arrayMethodIsStrict=function(er,tr){var rr=[][er];return!!rr&&fails((function(){rr.call(null,tr||function(){throw 1},1)}))},Ei=qr.indexOf,Ni=[].indexOf,Li=!!Ni&&1/[1].indexOf(1,-0)<0,Ti=arrayMethodIsStrict("indexOf"),Pi=arrayMethodUsesToLength("indexOf",{ACCESSORS:!0,1:0});_export({target:"Array",proto:!0,forced:Li||!Ti||!Pi},{indexOf:function indexOf(er){return Li?Ni.apply(this,arguments)||0:Ei(this,er,arguments.length>1?arguments[1]:void 0)}}),_export({target:"Array",stat:!0},{isArray:zn});var Fi=[].join,Ui=lr!=Object,Ii=arrayMethodIsStrict("join",",");_export({target:"Array",proto:!0,forced:Ui||!Ii},{join:function join(er){return Fi.call(toIndexedObject(this),void 0===er?",":er)}});var Ri=ui.map,Mi=arrayMethodHasSpeciesSupport("map"),Oi=arrayMethodUsesToLength("map");_export({target:"Array",proto:!0,forced:!Mi||!Oi},{map:function map(er){return Ri(this,er,arguments.length>1?arguments[1]:void 0)}});var Qi=[].reverse,Di=[1,2];_export({target:"Array",proto:!0,forced:String(Di)===String(Di.reverse())},{reverse:function reverse(){return zn(this)&&(this.length=this.length),Qi.call(this)}});var ji=arrayMethodHasSpeciesSupport("slice"),Hi=arrayMethodUsesToLength("slice",{ACCESSORS:!0,0:0,1:2}),Gi=wellKnownSymbol("species"),Vi=[].slice,zi=Math.max;_export({target:"Array",proto:!0,forced:!ji||!Hi},{slice:function slice(er,tr){var rr,nr,ir,or=toIndexedObject(this),ar=toLength(or.length),sr=toAbsoluteIndex(er,ar),lr=toAbsoluteIndex(void 0===tr?ar:tr,ar);if(zn(or)&&("function"!=typeof(rr=or.constructor)||rr!==Array&&!zn(rr.prototype)?isObject(rr)&&null===(rr=rr[Gi])&&(rr=void 0):rr=void 0,rr===Array||void 0===rr))return Vi.call(or,sr,lr);for(nr=new(void 0===rr?Array:rr)(zi(lr-sr,0)),ir=0;sr<lr;sr++,ir++)sr in or&&createProperty(nr,ir,or[sr]);return nr.length=ir,nr}});var Ki=[],qi=Ki.sort,Wi=fails((function(){Ki.sort(void 0)})),Xi=fails((function(){Ki.sort(null)})),Yi=arrayMethodIsStrict("sort");_export({target:"Array",proto:!0,forced:Wi||!Xi||!Yi},{sort:function sort(er){return void 0===er?qi.call(toObject(this)):qi.call(toObject(this),aFunction$1(er))}});var Ji=arrayMethodHasSpeciesSupport("splice"),$i=arrayMethodUsesToLength("splice",{ACCESSORS:!0,0:0,1:2}),Zi=Math.max,eo=Math.min;_export({target:"Array",proto:!0,forced:!Ji||!$i},{splice:function splice(er,tr){var rr,nr,ir,or,ar,sr,lr=toObject(this),cr=toLength(lr.length),ur=toAbsoluteIndex(er,cr),dr=arguments.length;if(0===dr?rr=nr=0:1===dr?(rr=0,nr=cr-ur):(rr=dr-2,nr=eo(Zi(toInteger(tr),0),cr-ur)),cr+rr-nr>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(ir=arraySpeciesCreate(lr,nr),or=0;or<nr;or++)(ar=ur+or)in lr&&createProperty(ir,or,lr[ar]);if(ir.length=nr,rr<nr){for(or=ur;or<cr-nr;or++)sr=or+rr,(ar=or+nr)in lr?lr[sr]=lr[ar]:delete lr[sr];for(or=cr;or>cr-nr+rr;or--)delete lr[or-1]}else if(rr>nr)for(or=cr-nr;or>ur;or--)sr=or+rr-1,(ar=or+nr-1)in lr?lr[sr]=lr[ar]:delete lr[sr];for(or=0;or<rr;or++)lr[or+ur]=arguments[or+2];return lr.length=cr-nr+rr,ir}});var to=fails((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}));_export({target:"Date",proto:!0,forced:to},{toJSON:function toJSON(er){var tr=toObject(this),rr=toPrimitive(tr);return"number"!=typeof rr||isFinite(rr)?tr.toISOString():null}});var ro=Date.prototype,no=ro.toString,io=ro.getTime;new Date(NaN)+""!="Invalid Date"&&Dr(ro,"toString",(function toString(){var er=io.call(this);return er==er?no.call(this):"Invalid Date"}));var oo=gr.f,ao=Function.prototype,so=ao.toString,lo=/^\s*function ([^ (]*)/;rr&&!("name"in ao)&&oo(ao,"name",{configurable:!0,get:function(){try{return so.call(this).match(lo)[1]}catch(er){return""}}});var co={};co[wellKnownSymbol("toStringTag")]="z";var uo="[object z]"===String(co),ho=wellKnownSymbol("toStringTag"),po="Arguments"==classofRaw(function(){return arguments}()),Ao=uo?classofRaw:function(er){var tr,rr,nr;return void 0===er?"Undefined":null===er?"Null":"string"==typeof(rr=function(er,tr){try{return er[tr]}catch(er){}}(tr=Object(er),ho))?rr:po?classofRaw(tr):"Object"==(nr=classofRaw(tr))&&"function"==typeof tr.callee?"Arguments":nr},fo=uo?{}.toString:function toString(){return"[object "+Ao(this)+"]"};uo||Dr(Object.prototype,"toString",fo,{unsafe:!0});var go="\t\n\v\f\r \u2028\u2029\ufeff",mo="["+go+"]",_o=RegExp("^"+mo+mo+"*"),vo=RegExp(mo+mo+"*$"),createMethod$2=function(er){return function(tr){var rr=String(requireObjectCoercible(tr));return 1&er&&(rr=rr.replace(_o,"")),2&er&&(rr=rr.replace(vo,"")),rr}},yo={start:createMethod$2(1),end:createMethod$2(2),trim:createMethod$2(3)},wo=yo.trim,So=tr.parseFloat,xo=1/So(go+"-0")!=-1/0?function parseFloat(er){var tr=wo(String(er)),rr=So(tr);return 0===rr&&"-"==tr.charAt(0)?-0:rr}:So;_export({global:!0,forced:parseFloat!=xo},{parseFloat:xo});var ko=yo.trim,Co=tr.parseInt,Bo=/^[+-]?0[Xx]/,Eo=8!==Co(go+"08")||22!==Co(go+"0x16")?function parseInt(er,tr){var rr=ko(String(er));return Co(rr,tr>>>0||(Bo.test(rr)?16:10))}:Co;_export({global:!0,forced:parseInt!=Eo},{parseInt:Eo});var No=Object.setPrototypeOf||("__proto__"in{}?function(){var er,tr=!1,rr={};try{(er=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(rr,[]),tr=rr instanceof Array}catch(er){}return function setPrototypeOf(rr,nr){return anObject(rr),function(er){if(!isObject(er)&&null!==er)throw TypeError("Can't set "+String(er)+" as a prototype")}(nr),tr?er.call(rr,nr):rr.__proto__=nr,rr}}():void 0),inheritIfRequired=function(er,tr,rr){var nr,ir;return No&&"function"==typeof(nr=tr.constructor)&&nr!==rr&&isObject(ir=nr.prototype)&&ir!==rr.prototype&&No(er,ir),er},Lo=wellKnownSymbol("match"),isRegexp=function(er){var tr;return isObject(er)&&(void 0!==(tr=er[Lo])?!!tr:"RegExp"==classofRaw(er))},regexpFlags=function(){var er=anObject(this),tr="";return er.global&&(tr+="g"),er.ignoreCase&&(tr+="i"),er.multiline&&(tr+="m"),er.dotAll&&(tr+="s"),er.unicode&&(tr+="u"),er.sticky&&(tr+="y"),tr};function RE(er,tr){return RegExp(er,tr)}var To={UNSUPPORTED_Y:fails((function(){var er=RE("a","y");return er.lastIndex=2,null!=er.exec("abcd")})),BROKEN_CARET:fails((function(){var er=RE("^r","gy");return er.lastIndex=2,null!=er.exec("str")}))},Po=wellKnownSymbol("species"),setSpecies=function(er){var tr=getBuiltIn(er),nr=gr.f;rr&&tr&&!tr[Po]&&nr(tr,Po,{configurable:!0,get:function(){return this}})},Fo=gr.f,Uo=Jr.f,Io=Qr.set,Ro=wellKnownSymbol("match"),Mo=tr.RegExp,Oo=Mo.prototype,Qo=/a/g,Do=/a/g,jo=new Mo(Qo)!==Qo,Ho=To.UNSUPPORTED_Y;if(rr&&Gn("RegExp",!jo||Ho||fails((function(){return Do[Ro]=!1,Mo(Qo)!=Qo||Mo(Do)==Do||"/a/i"!=Mo(Qo,"i")})))){for(var Go=function RegExp(er,tr){var rr,nr=this instanceof Go,ir=isRegexp(er),or=void 0===tr;if(!nr&&ir&&er.constructor===Go&&or)return er;jo?ir&&!or&&(er=er.source):er instanceof Go&&(or&&(tr=regexpFlags.call(er)),er=er.source),Ho&&(rr=!!tr&&tr.indexOf("y")>-1)&&(tr=tr.replace(/y/g,""));var ar=inheritIfRequired(jo?new Mo(er,tr):Mo(er,tr),nr?this:Oo,Go);return Ho&&rr&&Io(ar,{sticky:rr}),ar},proxy=function(er){er in Go||Fo(Go,er,{configurable:!0,get:function(){return Mo[er]},set:function(tr){Mo[er]=tr}})},Vo=Uo(Mo),zo=0;Vo.length>zo;)proxy(Vo[zo++]);Oo.constructor=Go,Go.prototype=Oo,Dr(tr,"RegExp",Go)}setSpecies("RegExp");var Ko=RegExp.prototype.exec,qo=String.prototype.replace,Wo=Ko,Xo=function(){var er=/a/,tr=/b*/g;return Ko.call(er,"a"),Ko.call(tr,"a"),0!==er.lastIndex||0!==tr.lastIndex}(),Yo=To.UNSUPPORTED_Y||To.BROKEN_CARET,Jo=void 0!==/()??/.exec("")[1];(Xo||Jo||Yo)&&(Wo=function exec(er){var tr,rr,nr,ir,or=this,ar=Yo&&or.sticky,sr=regexpFlags.call(or),lr=or.source,cr=0,ur=er;return ar&&(-1===(sr=sr.replace("y","")).indexOf("g")&&(sr+="g"),ur=String(er).slice(or.lastIndex),or.lastIndex>0&&(!or.multiline||or.multiline&&"\n"!==er[or.lastIndex-1])&&(lr="(?: "+lr+")",ur=" "+ur,cr++),rr=new RegExp("^(?:"+lr+")",sr)),Jo&&(rr=new RegExp("^"+lr+"$(?!\\s)",sr)),Xo&&(tr=or.lastIndex),nr=Ko.call(ar?rr:or,ur),ar?nr?(nr.input=nr.input.slice(cr),nr[0]=nr[0].slice(cr),nr.index=or.lastIndex,or.lastIndex+=nr[0].length):or.lastIndex=0:Xo&&nr&&(or.lastIndex=or.global?nr.index+nr[0].length:tr),Jo&&nr&&nr.length>1&&qo.call(nr[0],rr,(function(){for(ir=1;ir<arguments.length-2;ir++)void 0===arguments[ir]&&(nr[ir]=void 0)})),nr});var $o=Wo;_export({target:"RegExp",proto:!0,forced:/./.exec!==$o},{exec:$o});var Zo=RegExp.prototype,ea=Zo.toString,ta=fails((function(){return"/a/b"!=ea.call({source:"a",flags:"b"})})),ra="toString"!=ea.name;(ta||ra)&&Dr(RegExp.prototype,"toString",(function toString(){var er=anObject(this),tr=String(er.source),rr=er.flags;return"/"+tr+"/"+String(void 0===rr&&er instanceof RegExp&&!("flags"in Zo)?regexpFlags.call(er):rr)}),{unsafe:!0});var na=wellKnownSymbol("species"),ia=!fails((function(){var er=/./;return er.exec=function(){var er=[];return er.groups={a:"7"},er},"7"!=="".replace(er,"$<a>")})),oa="$0"==="a".replace(/./,"$0"),aa=wellKnownSymbol("replace"),sa=!!/./[aa]&&""===/./[aa]("a","$0"),la=!fails((function(){var er=/(?:)/,tr=er.exec;er.exec=function(){return tr.apply(this,arguments)};var rr="ab".split(er);return 2!==rr.length||"a"!==rr[0]||"b"!==rr[1]})),fixRegexpWellKnownSymbolLogic=function(er,tr,rr,nr){var ir=wellKnownSymbol(er),or=!fails((function(){var tr={};return tr[ir]=function(){return 7},7!=""[er](tr)})),ar=or&&!fails((function(){var tr=!1,rr=/a/;return"split"===er&&((rr={}).constructor={},rr.constructor[na]=function(){return rr},rr.flags="",rr[ir]=/./[ir]),rr.exec=function(){return tr=!0,null},rr[ir](""),!tr}));if(!or||!ar||"replace"===er&&(!ia||!oa||sa)||"split"===er&&!la){var sr=/./[ir],lr=rr(ir,""[er],(function(er,tr,rr,nr,ir){return tr.exec===$o?or&&!ir?{done:!0,value:sr.call(tr,rr,nr)}:{done:!0,value:er.call(rr,tr,nr)}:{done:!1}}),{REPLACE_KEEPS_$0:oa,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:sa}),cr=lr[0],ur=lr[1];Dr(String.prototype,er,cr),Dr(RegExp.prototype,ir,2==tr?function(er,tr){return ur.call(er,this,tr)}:function(er){return ur.call(er,this)})}nr&&mr(RegExp.prototype[ir],"sham",!0)},createMethod$3=function(er){return function(tr,rr){var nr,ir,or=String(requireObjectCoercible(tr)),ar=toInteger(rr),sr=or.length;return ar<0||ar>=sr?er?"":void 0:(nr=or.charCodeAt(ar))<55296||nr>56319||ar+1===sr||(ir=or.charCodeAt(ar+1))<56320||ir>57343?er?or.charAt(ar):nr:er?or.slice(ar,ar+2):ir-56320+(nr-55296<<10)+65536}},ua={codeAt:createMethod$3(!1),charAt:createMethod$3(!0)},da=ua.charAt,advanceStringIndex=function(er,tr,rr){return tr+(rr?da(er,tr).length:1)},regexpExecAbstract=function(er,tr){var rr=er.exec;if("function"==typeof rr){var nr=rr.call(er,tr);if("object"!=typeof nr)throw TypeError("RegExp exec method returned something other than an Object or null");return nr}if("RegExp"!==classofRaw(er))throw TypeError("RegExp#exec called on incompatible receiver");return $o.call(er,tr)};fixRegexpWellKnownSymbolLogic("match",1,(function(er,tr,rr){return[function match(tr){var rr=requireObjectCoercible(this),nr=null==tr?void 0:tr[er];return void 0!==nr?nr.call(tr,rr):new RegExp(tr)[er](String(rr))},function(er){var nr=rr(tr,er,this);if(nr.done)return nr.value;var ir=anObject(er),or=String(this);if(!ir.global)return regexpExecAbstract(ir,or);var ar=ir.unicode;ir.lastIndex=0;for(var sr,lr=[],cr=0;null!==(sr=regexpExecAbstract(ir,or));){var ur=String(sr[0]);lr[cr]=ur,""===ur&&(ir.lastIndex=advanceStringIndex(or,toLength(ir.lastIndex),ar)),cr++}return 0===cr?null:lr}]}));var ha=Math.max,pa=Math.min,Aa=Math.floor,fa=/\$([$&'`]|\d\d?|<[^>]*>)/g,ga=/\$([$&'`]|\d\d?)/g,maybeToString=function(er){return void 0===er?er:String(er)};fixRegexpWellKnownSymbolLogic("replace",2,(function(er,tr,rr,nr){var ir=nr.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,or=nr.REPLACE_KEEPS_$0,ar=ir?"$":"$0";return[function replace(rr,nr){var ir=requireObjectCoercible(this),or=null==rr?void 0:rr[er];return void 0!==or?or.call(rr,ir,nr):tr.call(String(ir),rr,nr)},function(er,nr){if(!ir&&or||"string"==typeof nr&&-1===nr.indexOf(ar)){var sr=rr(tr,er,this,nr);if(sr.done)return sr.value}var lr=anObject(er),cr=String(this),ur="function"==typeof nr;ur||(nr=String(nr));var dr=lr.global;if(dr){var hr=lr.unicode;lr.lastIndex=0}for(var pr=[];;){var Ar=regexpExecAbstract(lr,cr);if(null===Ar)break;if(pr.push(Ar),!dr)break;""===String(Ar[0])&&(lr.lastIndex=advanceStringIndex(cr,toLength(lr.lastIndex),hr))}for(var fr="",gr=0,mr=0;mr<pr.length;mr++){Ar=pr[mr];for(var _r=String(Ar[0]),vr=ha(pa(toInteger(Ar.index),cr.length),0),yr=[],br=1;br<Ar.length;br++)yr.push(maybeToString(Ar[br]));var wr=Ar.groups;if(ur){var Sr=[_r].concat(yr,vr,cr);void 0!==wr&&Sr.push(wr);var xr=String(nr.apply(void 0,Sr))}else xr=getSubstitution(_r,cr,vr,yr,wr,nr);vr>=gr&&(fr+=cr.slice(gr,vr)+xr,gr=vr+_r.length)}return fr+cr.slice(gr)}];function getSubstitution(er,rr,nr,ir,or,ar){var sr=nr+er.length,lr=ir.length,cr=ga;return void 0!==or&&(or=toObject(or),cr=fa),tr.call(ar,cr,(function(tr,ar){var cr;switch(ar.charAt(0)){case"$":return"$";case"&":return er;case"`":return rr.slice(0,nr);case"'":return rr.slice(sr);case"<":cr=or[ar.slice(1,-1)];break;default:var ur=+ar;if(0===ur)return tr;if(ur>lr){var dr=Aa(ur/10);return 0===dr?tr:dr<=lr?void 0===ir[dr-1]?ar.charAt(1):ir[dr-1]+ar.charAt(1):tr}cr=ir[ur-1]}return void 0===cr?"":cr}))}}));var ma=wellKnownSymbol("species"),speciesConstructor=function(er,tr){var rr,nr=anObject(er).constructor;return void 0===nr||null==(rr=anObject(nr)[ma])?tr:aFunction$1(rr)},_a=[].push,va=Math.min,ya=!fails((function(){return!RegExp(4294967295,"y")}));fixRegexpWellKnownSymbolLogic("split",2,(function(er,tr,rr){var nr;return nr="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(er,rr){var nr=String(requireObjectCoercible(this)),ir=void 0===rr?4294967295:rr>>>0;if(0===ir)return[];if(void 0===er)return[nr];if(!isRegexp(er))return tr.call(nr,er,ir);for(var or,ar,sr,lr=[],cr=(er.ignoreCase?"i":"")+(er.multiline?"m":"")+(er.unicode?"u":"")+(er.sticky?"y":""),ur=0,dr=new RegExp(er.source,cr+"g");(or=$o.call(dr,nr))&&!((ar=dr.lastIndex)>ur&&(lr.push(nr.slice(ur,or.index)),or.length>1&&or.index<nr.length&&_a.apply(lr,or.slice(1)),sr=or[0].length,ur=ar,lr.length>=ir));)dr.lastIndex===or.index&&dr.lastIndex++;return ur===nr.length?!sr&&dr.test("")||lr.push(""):lr.push(nr.slice(ur)),lr.length>ir?lr.slice(0,ir):lr}:"0".split(void 0,0).length?function(er,rr){return void 0===er&&0===rr?[]:tr.call(this,er,rr)}:tr,[function split(tr,rr){var ir=requireObjectCoercible(this),or=null==tr?void 0:tr[er];return void 0!==or?or.call(tr,ir,rr):nr.call(String(ir),tr,rr)},function(er,ir){var or=rr(nr,er,this,ir,nr!==tr);if(or.done)return or.value;var ar=anObject(er),sr=String(this),lr=speciesConstructor(ar,RegExp),cr=ar.unicode,ur=(ar.ignoreCase?"i":"")+(ar.multiline?"m":"")+(ar.unicode?"u":"")+(ya?"y":"g"),dr=new lr(ya?ar:"^(?:"+ar.source+")",ur),hr=void 0===ir?4294967295:ir>>>0;if(0===hr)return[];if(0===sr.length)return null===regexpExecAbstract(dr,sr)?[sr]:[];for(var pr=0,Ar=0,fr=[];Ar<sr.length;){dr.lastIndex=ya?Ar:0;var gr,mr=regexpExecAbstract(dr,ya?sr:sr.slice(Ar));if(null===mr||(gr=va(toLength(dr.lastIndex+(ya?0:Ar)),sr.length))===pr)Ar=advanceStringIndex(sr,Ar,cr);else{if(fr.push(sr.slice(pr,Ar)),fr.length===hr)return fr;for(var _r=1;_r<=mr.length-1;_r++)if(fr.push(mr[_r]),fr.length===hr)return fr;Ar=pr=gr}}return fr.push(sr.slice(pr)),fr}]}),!ya);var ba=yo.trim;_export({target:"String",proto:!0,forced:function(er){return fails((function(){return!!go[er]()||"
"!="
"[er]()||go[er].name!==er}))}("trim")},{trim:function trim(){return ba(this)}});var wa=/"/g,createHtml=function(er,tr,rr,nr){var ir=String(requireObjectCoercible(er)),or="<"+tr;return""!==rr&&(or+=" "+rr+'="'+String(nr).replace(wa,""")+'"'),or+">"+ir+"</"+tr+">"},stringHtmlForced=function(er){return fails((function(){var tr=""[er]('"');return tr!==tr.toLowerCase()||tr.split('"').length>3}))};function _typeof(er){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(er){return typeof er}:function(er){return er&&"function"==typeof Symbol&&er.constructor===Symbol&&er!==Symbol.prototype?"symbol":typeof er})(er)}function asyncGeneratorStep(er,tr,rr,nr,ir,or,ar){try{var sr=er[or](ar),lr=sr.value}catch(er){return void rr(er)}sr.done?tr(lr):Promise.resolve(lr).then(nr,ir)}function _asyncToGenerator(er){return function(){var tr=this,rr=arguments;return new Promise((function(nr,ir){var or=er.apply(tr,rr);function _next(er){asyncGeneratorStep(or,nr,ir,_next,_throw,"next",er)}function _throw(er){asyncGeneratorStep(or,nr,ir,_next,_throw,"throw",er)}_next(void 0)}))}}function _classCallCheck(er,tr){if(!(er instanceof tr))throw new TypeError("Cannot call a class as a function")}function _defineProperties(er,tr){for(var rr=0;rr<tr.length;rr++){var nr=tr[rr];nr.enumerable=nr.enumerable||!1,nr.configurable=!0,"value"in nr&&(nr.writable=!0),Object.defineProperty(er,nr.key,nr)}}function _createClass(er,tr,rr){return tr&&_defineProperties(er.prototype,tr),rr&&_defineProperties(er,rr),er}function _defineProperty(er,tr,rr){return tr in er?Object.defineProperty(er,tr,{value:rr,enumerable:!0,configurable:!0,writable:!0}):er[tr]=rr,er}function ownKeys$1(er,tr){var rr=Object.keys(er);if(Object.getOwnPropertySymbols){var nr=Object.getOwnPropertySymbols(er);tr&&(nr=nr.filter((function(tr){return Object.getOwnPropertyDescriptor(er,tr).enumerable}))),rr.push.apply(rr,nr)}return rr}function _objectSpread2(er){for(var tr=1;tr<arguments.length;tr++){var rr=null!=arguments[tr]?arguments[tr]:{};tr%2?ownKeys$1(Object(rr),!0).forEach((function(tr){_defineProperty(er,tr,rr[tr])})):Object.getOwnPropertyDescriptors?Object.defineProperties(er,Object.getOwnPropertyDescriptors(rr)):ownKeys$1(Object(rr)).forEach((function(tr){Object.defineProperty(er,tr,Object.getOwnPropertyDescriptor(rr,tr))}))}return er}function _inherits(er,tr){if("function"!=typeof tr&&null!==tr)throw new TypeError("Super expression must either be null or a function");er.prototype=Object.create(tr&&tr.prototype,{constructor:{value:er,writable:!0,configurable:!0}}),tr&&_setPrototypeOf(er,tr)}function _getPrototypeOf(er){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(er){return er.__proto__||Object.getPrototypeOf(er)})(er)}function _setPrototypeOf(er,tr){return(_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(er,tr){return er.__proto__=tr,er})(er,tr)}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(er){return!1}}function _construct(er,tr,rr){return(_construct=_isNativeReflectConstruct()?Reflect.construct:function _construct(er,tr,rr){var nr=[null];nr.push.apply(nr,tr);var ir=new(Function.bind.apply(er,nr));return rr&&_setPrototypeOf(ir,rr.prototype),ir}).apply(null,arguments)}function _wrapNativeSuper(er){var tr="function"==typeof Map?new Map:void 0;return(_wrapNativeSuper=function _wrapNativeSuper(er){if(null===er||!function _isNativeFunction(er){return-1!==Function.toString.call(er).indexOf("[native code]")}(er))return er;if("function"!=typeof er)throw new TypeError("Super expression must either be null or a function");if(void 0!==tr){if(tr.has(er))return tr.get(er);tr.set(er,Wrapper)}function Wrapper(){return _construct(er,arguments,_getPrototypeOf(this).constructor)}return Wrapper.prototype=Object.create(er.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(Wrapper,er)})(er)}function _possibleConstructorReturn(er,tr){return!tr||"object"!=typeof tr&&"function"!=typeof tr?function _assertThisInitialized(er){if(void 0===er)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return er}(er):tr}function _createSuper(er){var tr=_isNativeReflectConstruct();return function _createSuperInternal(){var rr,nr=_getPrototypeOf(er);if(tr){var ir=_getPrototypeOf(this).constructor;rr=Reflect.construct(nr,arguments,ir)}else rr=nr.apply(this,arguments);return _possibleConstructorReturn(this,rr)}}function _get(er,tr,rr){return(_get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function _get(er,tr,rr){var nr=function _superPropBase(er,tr){for(;!Object.prototype.hasOwnProperty.call(er,tr)&&null!==(er=_getPrototypeOf(er)););return er}(er,tr);if(nr){var ir=Object.getOwnPropertyDescriptor(nr,tr);return ir.get?ir.get.call(rr):ir.value}})(er,tr,rr||er)}function _slicedToArray(er,tr){return function _arrayWithHoles(er){if(Array.isArray(er))return er}(er)||function _iterableToArrayLimit(er,tr){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(er)))return;var rr=[],nr=!0,ir=!1,or=void 0;try{for(var ar,sr=er[Symbol.iterator]();!(nr=(ar=sr.next()).done)&&(rr.push(ar.value),!tr||rr.length!==tr);nr=!0);}catch(er){ir=!0,or=er}finally{try{nr||null==sr.return||sr.return()}finally{if(ir)throw or}}return rr}(er,tr)||_unsupportedIterableToArray(er,tr)||function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _toConsumableArray(er){return function _arrayWithoutHoles(er){if(Array.isArray(er))return _arrayLikeToArray(er)}(er)||function _iterableToArray(er){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(er))return Array.from(er)}(er)||_unsupportedIterableToArray(er)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _unsupportedIterableToArray(er,tr){if(er){if("string"==typeof er)return _arrayLikeToArray(er,tr);var rr=Object.prototype.toString.call(er).slice(8,-1);return"Object"===rr&&er.constructor&&(rr=er.constructor.name),"Map"===rr||"Set"===rr?Array.from(er):"Arguments"===rr||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(rr)?_arrayLikeToArray(er,tr):void 0}}function _arrayLikeToArray(er,tr){(null==tr||tr>er.length)&&(tr=er.length);for(var rr=0,nr=new Array(tr);rr<tr;rr++)nr[rr]=er[rr];return nr}function _createForOfIteratorHelper(er,tr){var rr;if("undefined"==typeof Symbol||null==er[Symbol.iterator]){if(Array.isArray(er)||(rr=_unsupportedIterableToArray(er))||tr&&er&&"number"==typeof er.length){rr&&(er=rr);var nr=0,F=function(){};return{s:F,n:function(){return nr>=er.length?{done:!0}:{done:!1,value:er[nr++]}},e:function(er){throw er},f:F}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var ir,or=!0,ar=!1;return{s:function(){rr=er[Symbol.iterator]()},n:function(){var er=rr.next();return or=er.done,er},e:function(er){ar=!0,ir=er},f:function(){try{or||null==rr.return||rr.return()}finally{if(ar)throw ir}}}}
|
||
/*! jQuery v1.7.1 jquery.com | jquery.org/license */_export({target:"String",proto:!0,forced:stringHtmlForced("sub")},{sub:function sub(){return createHtml(this,"sub","","")}}),_export({target:"URL",proto:!0,enumerable:!0},{toJSON:function toJSON(){return URL.prototype.toString.call(this)}}),function(er,tr){function cy(er){return or.isWindow(er)?er:9===er.nodeType&&(er.defaultView||er.parentWindow)}function cv(er){if(!Bi[er]){var tr=rr.body,nr=or("<"+er+">").appendTo(tr),ir=nr.css("display");nr.remove(),"none"!==ir&&""!==ir||(Si||((Si=rr.createElement("iframe")).frameBorder=Si.width=Si.height=0),tr.appendChild(Si),xi&&Si.createElement||((xi=(Si.contentWindow||Si.contentDocument).document).write(("CSS1Compat"===rr.compatMode?"<!doctype html>":"")+"<html><body>"),xi.close()),nr=xi.createElement(er),xi.body.appendChild(nr),ir=or.css(nr,"display"),tr.removeChild(Si)),Bi[er]=ir}return Bi[er]}function cu(er,tr){var rr={};return or.each(Li.concat.apply([],Li.slice(0,tr)),(function(){rr[this]=er})),rr}function ct(){Ci=tr}function cs(){return setTimeout(ct,0),Ci=or.now()}function ci(){try{return new er.XMLHttpRequest}catch(er){}}function ca(er,tr,rr,nr){if(or.isArray(tr))or.each(tr,(function(tr,ir){rr||Zn.test(er)?nr(er,ir):ca(er+"["+("object"==_typeof(ir)||or.isArray(ir)?tr:"")+"]",ir,rr,nr)}));else if(rr||null==tr||"object"!=_typeof(tr))nr(er,tr);else for(var ir in tr)ca(er+"["+ir+"]",tr[ir],rr,nr)}function b_(er,rr){var nr,ir,ar=or.ajaxSettings.flatOptions||{};for(nr in rr)rr[nr]!==tr&&((ar[nr]?er:ir||(ir={}))[nr]=rr[nr]);ir&&or.extend(!0,er,ir)}function b$(er,rr,nr,ir,or,ar){(ar=ar||{})[or=or||rr.dataTypes[0]]=!0;for(var sr,lr=er[or],cr=0,ur=lr?lr.length:0,dr=er===Ai;cr<ur&&(dr||!sr);cr++)"string"==typeof(sr=lr[cr](rr,nr,ir))&&(!dr||ar[sr]?sr=tr:(rr.dataTypes.unshift(sr),sr=b$(er,rr,nr,ir,sr,ar)));return(dr||!sr)&&!ar["*"]&&(sr=b$(er,rr,nr,ir,"*",ar)),sr}function bZ(er){return function(tr,rr){if("string"!=typeof tr&&(rr=tr,tr="*"),or.isFunction(rr))for(var nr,ir,ar=tr.toLowerCase().split(ui),sr=0,lr=ar.length;sr<lr;sr++)nr=ar[sr],(ir=/^\+/.test(nr))&&(nr=nr.substr(1)||"*"),(er[nr]=er[nr]||[])[ir?"unshift":"push"](rr)}}function bC(er,tr,rr){var nr="width"===tr?er.offsetWidth:er.offsetHeight,ir="width"===tr?Wn:Xn,ar=0,sr=ir.length;if(nr>0){if("border"!==rr)for(;ar<sr;ar++)rr||(nr-=parseFloat(or.css(er,"padding"+ir[ar]))||0),"margin"===rr?nr+=parseFloat(or.css(er,rr+ir[ar]))||0:nr-=parseFloat(or.css(er,"border"+ir[ar]+"Width"))||0;return nr+"px"}if(((nr=Zr(er,tr,tr))<0||null==nr)&&(nr=er.style[tr]||0),nr=parseFloat(nr)||0,rr)for(;ar<sr;ar++)nr+=parseFloat(or.css(er,"padding"+ir[ar]))||0,"padding"!==rr&&(nr+=parseFloat(or.css(er,"border"+ir[ar]+"Width"))||0),"margin"===rr&&(nr+=parseFloat(or.css(er,rr+ir[ar]))||0);return nr+"px"}function bp(er,tr){tr.src?or.ajax({url:tr.src,async:!1,dataType:"script"}):or.globalEval((tr.text||tr.textContent||tr.innerHTML||"").replace(Yr,"/*$0*/")),tr.parentNode&&tr.parentNode.removeChild(tr)}function bo(er){var tr=rr.createElement("div");return $r.appendChild(tr),tr.innerHTML=er.outerHTML,tr.firstChild}function bn(er){var tr=(er.nodeName||"").toLowerCase();"input"===tr?bm(er):"script"!==tr&&void 0!==er.getElementsByTagName&&or.grep(er.getElementsByTagName("input"),bm)}function bm(er){"checkbox"!==er.type&&"radio"!==er.type||(er.defaultChecked=er.checked)}function bl(er){return void 0!==er.getElementsByTagName?er.getElementsByTagName("*"):void 0!==er.querySelectorAll?er.querySelectorAll("*"):[]}function bk(er,tr){var rr;1===tr.nodeType&&(tr.clearAttributes&&tr.clearAttributes(),tr.mergeAttributes&&tr.mergeAttributes(er),"object"===(rr=tr.nodeName.toLowerCase())?tr.outerHTML=er.outerHTML:"input"!==rr||"checkbox"!==er.type&&"radio"!==er.type?"option"===rr?tr.selected=er.defaultSelected:"input"!==rr&&"textarea"!==rr||(tr.defaultValue=er.defaultValue):(er.checked&&(tr.defaultChecked=tr.checked=er.checked),tr.value!==er.value&&(tr.value=er.value)),tr.removeAttribute(or.expando))}function bj(er,tr){if(1===tr.nodeType&&or.hasData(er)){var rr,nr,ir,ar=or._data(er),sr=or._data(tr,ar),lr=ar.events;if(lr)for(rr in delete sr.handle,sr.events={},lr)for(nr=0,ir=lr[rr].length;nr<ir;nr++)or.event.add(tr,rr+(lr[rr][nr].namespace?".":"")+lr[rr][nr].namespace,lr[rr][nr],lr[rr][nr].data);sr.data&&(sr.data=or.extend({},sr.data))}}function bi(er,tr){return or.nodeName(er,"table")?er.getElementsByTagName("tbody")[0]||er.appendChild(er.ownerDocument.createElement("tbody")):er}function U(er){var tr=Or.split("|"),rr=er.createDocumentFragment();if(rr.createElement)for(;tr.length;)rr.createElement(tr.pop());return rr}function T(er,tr,rr){if(tr=tr||0,or.isFunction(tr))return or.grep(er,(function(er,nr){return!!tr.call(er,nr,er)===rr}));if(tr.nodeType)return or.grep(er,(function(er,nr){return er===tr===rr}));if("string"==typeof tr){var nr=or.grep(er,(function(er){return 1===er.nodeType}));if(Ur.test(tr))return or.filter(tr,nr,!rr);tr=or.filter(tr,nr)}return or.grep(er,(function(er,nr){return or.inArray(er,tr)>=0===rr}))}function S(er){return!er||!er.parentNode||11===er.parentNode.nodeType}function K(){return!0}function J(){return!1}function n(er,tr,rr){var nr=tr+"defer",ir=tr+"queue",ar=tr+"mark",sr=or._data(er,nr);sr&&("queue"===rr||!or._data(er,ir))&&("mark"===rr||!or._data(er,ar))&&setTimeout((function(){!or._data(er,ir)&&!or._data(er,ar)&&(or.removeData(er,nr,!0),sr.fire())}),0)}function m(er){for(var tr in er)if(("data"!==tr||!or.isEmptyObject(er[tr]))&&"toJSON"!==tr)return!1;return!0}function l(er,rr,nr){if(nr===tr&&1===er.nodeType){var ir="data-"+rr.replace(cr,"-$1").toLowerCase();if("string"==typeof(nr=er.getAttribute(ir))){try{nr="true"===nr||"false"!==nr&&("null"===nr?null:or.isNumeric(nr)?parseFloat(nr):lr.test(nr)?or.parseJSON(nr):nr)}catch(er){}or.data(er,rr,nr)}else nr=tr}return nr}var rr=er.document,nr=er.navigator,ir=er.location,or=function(){function J(){if(!lr.isReady){try{rr.documentElement.doScroll("left")}catch(er){return void setTimeout(J,1)}lr.ready()}}var ir,or,ar,sr,lr=function e(er,tr){return new e.fn.init(er,tr,ir)},cr=er.jQuery,ur=er.$,dr=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,hr=/\S/,pr=/^\s+/,Ar=/\s+$/,fr=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,gr=/^[\],:{}\s]*$/,mr=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,_r=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,vr=/(?:^|:|,)(?:\s*\[)+/g,yr=/(webkit)[ \/]([\w.]+)/,br=/(opera)(?:.*version)?[ \/]([\w.]+)/,wr=/(msie) ([\w.]+)/,Sr=/(mozilla)(?:.*? rv:([\w.]+))?/,xr=/-([a-z]|[0-9])/gi,kr=/^-ms-/,Cr=function x(er,tr){return(tr+"").toUpperCase()},Br=nr.userAgent,Er=Object.prototype.toString,Nr=Object.prototype.hasOwnProperty,Lr=Array.prototype.push,Tr=Array.prototype.slice,Pr=String.prototype.trim,Fr=Array.prototype.indexOf,Ur={};return lr.fn=lr.prototype={constructor:lr,init:function init(er,nr,ir){var or,ar,sr,cr;if(!er)return this;if(er.nodeType)return this.context=this[0]=er,this.length=1,this;if("body"===er&&!nr&&rr.body)return this.context=rr,this[0]=rr.body,this.selector=er,this.length=1,this;if("string"==typeof er){if((or="<"!==er.charAt(0)||">"!==er.charAt(er.length-1)||er.length<3?dr.exec(er):[null,er,null])&&(or[1]||!nr)){if(or[1])return cr=(nr=nr instanceof lr?nr[0]:nr)?nr.ownerDocument||nr:rr,(sr=fr.exec(er))?lr.isPlainObject(nr)?(er=[rr.createElement(sr[1])],lr.fn.attr.call(er,nr,!0)):er=[cr.createElement(sr[1])]:er=((sr=lr.buildFragment([or[1]],[cr])).cacheable?lr.clone(sr.fragment):sr.fragment).childNodes,lr.merge(this,er);if((ar=rr.getElementById(or[2]))&&ar.parentNode){if(ar.id!==or[2])return ir.find(er);this.length=1,this[0]=ar}return this.context=rr,this.selector=er,this}return!nr||nr.jquery?(nr||ir).find(er):this.constructor(nr).find(er)}return lr.isFunction(er)?ir.ready(er):(er.selector!==tr&&(this.selector=er.selector,this.context=er.context),lr.makeArray(er,this))},selector:"",jquery:"1.7.1",length:0,size:function size(){return this.length},toArray:function toArray(){return Tr.call(this,0)},get:function get(er){return null==er?this.toArray():er<0?this[this.length+er]:this[er]},pushStack:function pushStack(er,tr,rr){var nr=this.constructor();return lr.isArray(er)?Lr.apply(nr,er):lr.merge(nr,er),nr.prevObject=this,nr.context=this.context,"find"===tr?nr.selector=this.selector+(this.selector?" ":"")+rr:tr&&(nr.selector=this.selector+"."+tr+"("+rr+")"),nr},each:function each(er,tr){return lr.each(this,er,tr)},ready:function ready(er){return lr.bindReady(),ar.add(er),this},eq:function eq(er){return-1===(er=+er)?this.slice(er):this.slice(er,er+1)},first:function first(){return this.eq(0)},last:function last(){return this.eq(-1)},slice:function slice(){return this.pushStack(Tr.apply(this,arguments),"slice",Tr.call(arguments).join(","))},map:function map(er){return this.pushStack(lr.map(this,(function(tr,rr){return er.call(tr,rr,tr)})))},end:function end(){return this.prevObject||this.constructor(null)},push:Lr,sort:[].sort,splice:[].splice},lr.fn.init.prototype=lr.fn,lr.extend=lr.fn.extend=function(){var er,rr,nr,ir,or,ar,sr=arguments[0]||{},cr=1,ur=arguments.length,dr=!1;for("boolean"==typeof sr&&(dr=sr,sr=arguments[1]||{},cr=2),"object"!=_typeof(sr)&&!lr.isFunction(sr)&&(sr={}),ur===cr&&(sr=this,--cr);cr<ur;cr++)if(null!=(er=arguments[cr]))for(rr in er)nr=sr[rr],sr!==(ir=er[rr])&&(dr&&ir&&(lr.isPlainObject(ir)||(or=lr.isArray(ir)))?(or?(or=!1,ar=nr&&lr.isArray(nr)?nr:[]):ar=nr&&lr.isPlainObject(nr)?nr:{},sr[rr]=lr.extend(dr,ar,ir)):ir!==tr&&(sr[rr]=ir));return sr},lr.extend({noConflict:function noConflict(tr){return er.$===lr&&(er.$=ur),tr&&er.jQuery===lr&&(er.jQuery=cr),lr},isReady:!1,readyWait:1,holdReady:function holdReady(er){er?lr.readyWait++:lr.ready(!0)},ready:function ready(er){if(!0===er&&!--lr.readyWait||!0!==er&&!lr.isReady){if(!rr.body)return setTimeout(lr.ready,1);if(lr.isReady=!0,!0!==er&&--lr.readyWait>0)return;ar.fireWith(rr,[lr]),lr.fn.trigger&&lr(rr).trigger("ready").off("ready")}},bindReady:function bindReady(){if(!ar){if(ar=lr.Callbacks("once memory"),"complete"===rr.readyState)return setTimeout(lr.ready,1);if(rr.addEventListener)rr.addEventListener("DOMContentLoaded",sr,!1),er.addEventListener("load",lr.ready,!1);else if(rr.attachEvent){rr.attachEvent("onreadystatechange",sr),er.attachEvent("onload",lr.ready);var tr=!1;try{tr=null==er.frameElement}catch(er){}rr.documentElement.doScroll&&tr&&J()}}},isFunction:function isFunction(er){return"function"===lr.type(er)},isArray:Array.isArray||function(er){return"array"===lr.type(er)},isWindow:function isWindow(er){return er&&"object"==_typeof(er)&&"setInterval"in er},isNumeric:function isNumeric(er){return!isNaN(parseFloat(er))&&isFinite(er)},type:function type(er){return null==er?String(er):Ur[Er.call(er)]||"object"},isPlainObject:function isPlainObject(er){if(!er||"object"!==lr.type(er)||er.nodeType||lr.isWindow(er))return!1;try{if(er.constructor&&!Nr.call(er,"constructor")&&!Nr.call(er.constructor.prototype,"isPrototypeOf"))return!1}catch(er){return!1}var rr;for(rr in er);return rr===tr||Nr.call(er,rr)},isEmptyObject:function isEmptyObject(er){for(var tr in er)return!1;return!0},error:function error(er){throw new Error(er)},parseJSON:function parseJSON(tr){return"string"==typeof tr&&tr?(tr=lr.trim(tr),er.JSON&&er.JSON.parse?er.JSON.parse(tr):gr.test(tr.replace(mr,"@").replace(_r,"]").replace(vr,""))?new Function("return "+tr)():void lr.error("Invalid JSON: "+tr)):null},parseXML:function parseXML(rr){var nr;try{er.DOMParser?nr=(new DOMParser).parseFromString(rr,"text/xml"):((nr=new ActiveXObject("Microsoft.XMLDOM")).async="false",nr.loadXML(rr))}catch(er){nr=tr}return(!nr||!nr.documentElement||nr.getElementsByTagName("parsererror").length)&&lr.error("Invalid XML: "+rr),nr},noop:function noop(){},globalEval:function globalEval(tr){tr&&hr.test(tr)&&(er.execScript||function(tr){er.eval.call(er,tr)})(tr)},camelCase:function camelCase(er){return er.replace(kr,"ms-").replace(xr,Cr)},nodeName:function nodeName(er,tr){return er.nodeName&&er.nodeName.toUpperCase()===tr.toUpperCase()},each:function each(er,rr,nr){var ir,or=0,ar=er.length,sr=ar===tr||lr.isFunction(er);if(nr)if(sr){for(ir in er)if(!1===rr.apply(er[ir],nr))break}else for(;or<ar&&!1!==rr.apply(er[or++],nr););else if(sr){for(ir in er)if(!1===rr.call(er[ir],ir,er[ir]))break}else for(;or<ar&&!1!==rr.call(er[or],or,er[or++]););return er},trim:Pr?function(er){return null==er?"":Pr.call(er)}:function(er){return null==er?"":(er+"").replace(pr,"").replace(Ar,"")},makeArray:function makeArray(er,tr){var rr=tr||[];if(null!=er){var nr=lr.type(er);null==er.length||"string"===nr||"function"===nr||"regexp"===nr||lr.isWindow(er)?Lr.call(rr,er):lr.merge(rr,er)}return rr},inArray:function inArray(er,tr,rr){var nr;if(tr){if(Fr)return Fr.call(tr,er,rr);for(nr=tr.length,rr=rr?rr<0?Math.max(0,nr+rr):rr:0;rr<nr;rr++)if(rr in tr&&tr[rr]===er)return rr}return-1},merge:function merge(er,rr){var nr=er.length,ir=0;if("number"==typeof rr.length)for(var or=rr.length;ir<or;ir++)er[nr++]=rr[ir];else for(;rr[ir]!==tr;)er[nr++]=rr[ir++];return er.length=nr,er},grep:function grep(er,tr,rr){var nr=[];rr=!!rr;for(var ir=0,or=er.length;ir<or;ir++)rr!==!!tr(er[ir],ir)&&nr.push(er[ir]);return nr},map:function map(er,rr,nr){var ir,or,ar=[],sr=0,cr=er.length;if(er instanceof lr||cr!==tr&&"number"==typeof cr&&(cr>0&&er[0]&&er[cr-1]||0===cr||lr.isArray(er)))for(;sr<cr;sr++)null!=(ir=rr(er[sr],sr,nr))&&(ar[ar.length]=ir);else for(or in er)null!=(ir=rr(er[or],or,nr))&&(ar[ar.length]=ir);return ar.concat.apply([],ar)},guid:1,proxy:function proxy(er,rr){if("string"==typeof rr){var nr=er[rr];rr=er,er=nr}if(!lr.isFunction(er))return tr;var ir=Tr.call(arguments,2),or=function g(){return er.apply(rr,ir.concat(Tr.call(arguments)))};return or.guid=er.guid=er.guid||or.guid||lr.guid++,or},access:function access(er,rr,nr,ir,or,ar){var sr=er.length;if("object"==_typeof(rr)){for(var cr in rr)lr.access(er,cr,rr[cr],ir,or,nr);return er}if(nr!==tr){ir=!ar&&ir&&lr.isFunction(nr);for(var ur=0;ur<sr;ur++)or(er[ur],rr,ir?nr.call(er[ur],ur,or(er[ur],rr)):nr,ar);return er}return sr?or(er[0],rr):tr},now:function now(){return(new Date).getTime()},uaMatch:function uaMatch(er){er=er.toLowerCase();var tr=yr.exec(er)||br.exec(er)||wr.exec(er)||er.indexOf("compatible")<0&&Sr.exec(er)||[];return{browser:tr[1]||"",version:tr[2]||"0"}},sub:function sub(){function a(er,tr){return new a.fn.init(er,tr)}lr.extend(!0,a,this),a.superclass=this,a.fn=a.prototype=this(),a.fn.constructor=a,a.sub=this.sub,a.fn.init=function(tr,rr){return rr&&rr instanceof lr&&!(rr instanceof a)&&(rr=a(rr)),lr.fn.init.call(this,tr,rr,er)},a.fn.init.prototype=a.fn;var er=a(rr);return a},browser:{}}),lr.each("Boolean Number String Function Array Date RegExp Object".split(" "),(function(er,tr){Ur["[object "+tr+"]"]=tr.toLowerCase()})),(or=lr.uaMatch(Br)).browser&&(lr.browser[or.browser]=!0,lr.browser.version=or.version),lr.browser.webkit&&(lr.browser.safari=!0),hr.test(" ")&&(pr=/^[\s\xA0]+/,Ar=/[\s\xA0]+$/),ir=lr(rr),rr.addEventListener?sr=function B(){rr.removeEventListener("DOMContentLoaded",sr,!1),lr.ready()}:rr.attachEvent&&(sr=function _B(){"complete"===rr.readyState&&(rr.detachEvent("onreadystatechange",sr),lr.ready())}),lr}(),ar={};or.Callbacks=function(er){er=er?ar[er]||function h(er){var tr,rr,nr=ar[er]={};for(tr=0,rr=(er=er.split(/\s+/)).length;tr<rr;tr++)nr[er[tr]]=!0;return nr}(er):{};var rr,nr,ir,sr,lr,cr=[],ur=[],dr=function m(tr){var rr,nr,ir,ar;for(rr=0,nr=tr.length;rr<nr;rr++)ir=tr[rr],"array"===(ar=or.type(ir))?m(ir):"function"===ar&&(!er.unique||!pr.has(ir))&&cr.push(ir)},hr=function n(tr,or){for(or=or||[],rr=!er.memory||[tr,or],nr=!0,lr=ir||0,ir=0,sr=cr.length;cr&&lr<sr;lr++)if(!1===cr[lr].apply(tr,or)&&er.stopOnFalse){rr=!0;break}nr=!1,cr&&(er.once?!0===rr?pr.disable():cr=[]:ur&&ur.length&&(rr=ur.shift(),pr.fireWith(rr[0],rr[1])))},pr={add:function add(){if(cr){var er=cr.length;dr(arguments),nr?sr=cr.length:rr&&!0!==rr&&(ir=er,hr(rr[0],rr[1]))}return this},remove:function remove(){if(cr)for(var tr=arguments,rr=0,ir=tr.length;rr<ir;rr++)for(var or=0;or<cr.length&&(tr[rr]!==cr[or]||(nr&&or<=sr&&(sr--,or<=lr&&lr--),cr.splice(or--,1),!er.unique));or++);return this},has:function has(er){if(cr)for(var tr=0,rr=cr.length;tr<rr;tr++)if(er===cr[tr])return!0;return!1},empty:function empty(){return cr=[],this},disable:function disable(){return cr=ur=rr=tr,this},disabled:function disabled(){return!cr},lock:function lock(){return ur=tr,(!rr||!0===rr)&&pr.disable(),this},locked:function locked(){return!ur},fireWith:function fireWith(tr,ir){return ur&&(nr?er.once||ur.push([tr,ir]):(!er.once||!rr)&&hr(tr,ir)),this},fire:function fire(){return pr.fireWith(this,arguments),this},fired:function fired(){return!!rr}};return pr};var sr=[].slice;or.extend({Deferred:function Deferred(er){var tr,rr=or.Callbacks("once memory"),nr=or.Callbacks("once memory"),ir=or.Callbacks("memory"),ar="pending",sr={resolve:rr,reject:nr,notify:ir},lr={done:rr.add,fail:nr.add,progress:ir.add,state:function state(){return ar},isResolved:rr.fired,isRejected:nr.fired,then:function then(er,tr,rr){return cr.done(er).fail(tr).progress(rr),this},always:function always(){return cr.done.apply(cr,arguments).fail.apply(cr,arguments),this},pipe:function pipe(er,tr,rr){return or.Deferred((function(nr){or.each({done:[er,"resolve"],fail:[tr,"reject"],progress:[rr,"notify"]},(function(er,tr){var rr,ir=tr[0],ar=tr[1];or.isFunction(ir)?cr[er]((function(){(rr=ir.apply(this,arguments))&&or.isFunction(rr.promise)?rr.promise().then(nr.resolve,nr.reject,nr.notify):nr[ar+"With"](this===cr?nr:this,[rr])})):cr[er](nr[ar])}))})).promise()},promise:function promise(er){if(null==er)er=lr;else for(var tr in lr)er[tr]=lr[tr];return er}},cr=lr.promise({});for(tr in sr)cr[tr]=sr[tr].fire,cr[tr+"With"]=sr[tr].fireWith;return cr.done((function(){ar="resolved"}),nr.disable,ir.lock).fail((function(){ar="rejected"}),rr.disable,ir.lock),er&&er.call(cr,cr),cr},when:function when(er){function m(er){return function(tr){ir[er]=arguments.length>1?sr.call(arguments,0):tr,lr.notifyWith(cr,ir)}}function l(er){return function(rr){tr[er]=arguments.length>1?sr.call(arguments,0):rr,--ar||lr.resolveWith(lr,tr)}}var tr=sr.call(arguments,0),rr=0,nr=tr.length,ir=Array(nr),ar=nr,lr=nr<=1&&er&&or.isFunction(er.promise)?er:or.Deferred(),cr=lr.promise();if(nr>1){for(;rr<nr;rr++)tr[rr]&&tr[rr].promise&&or.isFunction(tr[rr].promise)?tr[rr].promise().then(l(rr),lr.reject,m(rr)):--ar;ar||lr.resolveWith(lr,tr)}else lr!==er&&lr.resolveWith(lr,nr?[er]:[]);return cr}}),or.support=function(){var tr,nr,ir,ar,sr,lr,cr,ur,dr,hr,pr,Ar,fr=rr.createElement("div");rr.documentElement;if(fr.setAttribute("className","t"),fr.innerHTML=" <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>",nr=fr.getElementsByTagName("*"),ir=fr.getElementsByTagName("a")[0],!nr||!nr.length||!ir)return{};sr=(ar=rr.createElement("select")).appendChild(rr.createElement("option")),lr=fr.getElementsByTagName("input")[0],tr={leadingWhitespace:3===fr.firstChild.nodeType,tbody:!fr.getElementsByTagName("tbody").length,htmlSerialize:!!fr.getElementsByTagName("link").length,style:/top/.test(ir.getAttribute("style")),hrefNormalized:"/a"===ir.getAttribute("href"),opacity:/^0.55/.test(ir.style.opacity),cssFloat:!!ir.style.cssFloat,checkOn:"on"===lr.value,optSelected:sr.selected,getSetAttribute:"t"!==fr.className,enctype:!!rr.createElement("form").enctype,html5Clone:"<:nav></:nav>"!==rr.createElement("nav").cloneNode(!0).outerHTML,submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0},lr.checked=!0,tr.noCloneChecked=lr.cloneNode(!0).checked,ar.disabled=!0,tr.optDisabled=!sr.disabled;try{delete fr.test}catch(er){tr.deleteExpando=!1}if(!fr.addEventListener&&fr.attachEvent&&fr.fireEvent&&(fr.attachEvent("onclick",(function(){tr.noCloneEvent=!1})),fr.cloneNode(!0).fireEvent("onclick")),(lr=rr.createElement("input")).value="t",lr.setAttribute("type","radio"),tr.radioValue="t"===lr.value,lr.setAttribute("checked","checked"),fr.appendChild(lr),(ur=rr.createDocumentFragment()).appendChild(fr.lastChild),tr.checkClone=ur.cloneNode(!0).cloneNode(!0).lastChild.checked,tr.appendChecked=lr.checked,ur.removeChild(lr),ur.appendChild(fr),fr.innerHTML="",er.getComputedStyle&&((cr=rr.createElement("div")).style.width="0",cr.style.marginRight="0",fr.style.width="2px",fr.appendChild(cr),tr.reliableMarginRight=0===(parseInt((er.getComputedStyle(cr,null)||{marginRight:0}).marginRight,10)||0)),fr.attachEvent)for(pr in{submit:1,change:1,focusin:1})(Ar=(hr="on"+pr)in fr)||(fr.setAttribute(hr,"return;"),Ar="function"==typeof fr[hr]),tr[pr+"Bubbles"]=Ar;return ur.removeChild(fr),ur=ar=sr=cr=fr=lr=null,or((function(){var er,nr,ir,ar,sr,lr,cr,ur,hr=rr.getElementsByTagName("body")[0];!hr||(1,cr="visibility:hidden;border:0;","<div "+(ur="style='"+(lr="position:absolute;top:0;left:0;width:1px;height:1px;margin:0;")+"border:5px solid #000;padding:0;'")+"><div></div></div><table "+ur+" cellpadding='0' cellspacing='0'><tr><td></td></tr></table>",(er=rr.createElement("div")).style.cssText=cr+"width:0;height:0;position:static;top:0;margin-top:1px",hr.insertBefore(er,hr.firstChild),fr=rr.createElement("div"),er.appendChild(fr),fr.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>",dr=fr.getElementsByTagName("td"),Ar=0===dr[0].offsetHeight,dr[0].style.display="",dr[1].style.display="none",tr.reliableHiddenOffsets=Ar&&0===dr[0].offsetHeight,fr.innerHTML="",fr.style.width=fr.style.paddingLeft="1px",or.boxModel=tr.boxModel=2===fr.offsetWidth,void 0!==fr.style.zoom&&(fr.style.display="inline",fr.style.zoom=1,tr.inlineBlockNeedsLayout=2===fr.offsetWidth,fr.style.display="",fr.innerHTML="<div style='width:4px;'></div>",tr.shrinkWrapBlocks=2!==fr.offsetWidth),fr.style.cssText=lr+cr,fr.innerHTML="<div style='position:absolute;top:0;left:0;width:1px;height:1px;margin:0;border:5px solid #000;padding:0;'><div></div></div><table style='position:absolute;top:0;left:0;width:1px;height:1px;margin:0;border:5px solid #000;padding:0;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>",ir=(nr=fr.firstChild).firstChild,ar=nr.nextSibling.firstChild.firstChild,sr={doesNotAddBorder:5!==ir.offsetTop,doesAddBorderForTableAndCells:5===ar.offsetTop},ir.style.position="fixed",ir.style.top="20px",sr.fixedPosition=20===ir.offsetTop||15===ir.offsetTop,ir.style.position=ir.style.top="",nr.style.overflow="hidden",nr.style.position="relative",sr.subtractsBorderForOverflowNotVisible=-5===ir.offsetTop,sr.doesNotIncludeMarginInBodyOffset=1!==hr.offsetTop,hr.removeChild(er),fr=er=null,or.extend(tr,sr))})),tr}();var lr=/^(?:\{.*\}|\[.*\])$/,cr=/([A-Z])/g;or.extend({cache:{},uuid:0,expando:"jQuery"+(or.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function hasData(er){return!!(er=er.nodeType?or.cache[er[or.expando]]:er[or.expando])&&!m(er)},data:function data(er,rr,nr,ir){if(or.acceptData(er)){var ar,sr,lr,cr=or.expando,ur="string"==typeof rr,dr=er.nodeType,hr=dr?or.cache:er,pr=dr?er[cr]:er[cr]&&cr,Ar="events"===rr;if((!pr||!hr[pr]||!Ar&&!ir&&!hr[pr].data)&&ur&&nr===tr)return;return pr||(dr?er[cr]=pr=++or.uuid:pr=cr),hr[pr]||(hr[pr]={},dr||(hr[pr].toJSON=or.noop)),"object"!=_typeof(rr)&&"function"!=typeof rr||(ir?hr[pr]=or.extend(hr[pr],rr):hr[pr].data=or.extend(hr[pr].data,rr)),ar=sr=hr[pr],ir||(sr.data||(sr.data={}),sr=sr.data),nr!==tr&&(sr[or.camelCase(rr)]=nr),Ar&&!sr[rr]?ar.events:(ur?null==(lr=sr[rr])&&(lr=sr[or.camelCase(rr)]):lr=sr,lr)}},removeData:function removeData(er,tr,rr){if(or.acceptData(er)){var nr,ir,ar,sr=or.expando,lr=er.nodeType,cr=lr?or.cache:er,ur=lr?er[sr]:sr;if(!cr[ur])return;if(tr&&(nr=rr?cr[ur]:cr[ur].data)){or.isArray(tr)||(tr in nr?tr=[tr]:tr=(tr=or.camelCase(tr))in nr?[tr]:tr.split(" "));for(ir=0,ar=tr.length;ir<ar;ir++)delete nr[tr[ir]];if(!(rr?m:or.isEmptyObject)(nr))return}if(!rr&&(delete cr[ur].data,!m(cr[ur])))return;or.support.deleteExpando||!cr.setInterval?delete cr[ur]:cr[ur]=null,lr&&(or.support.deleteExpando?delete er[sr]:er.removeAttribute?er.removeAttribute(sr):er[sr]=null)}},_data:function _data(er,tr,rr){return or.data(er,tr,rr,!0)},acceptData:function acceptData(er){if(er.nodeName){var tr=or.noData[er.nodeName.toLowerCase()];if(tr)return!0!==tr&&er.getAttribute("classid")===tr}return!0}}),or.fn.extend({data:function data(er,rr){var nr,ir,ar,sr=null;if(void 0===er){if(this.length&&(sr=or.data(this[0]),1===this[0].nodeType&&!or._data(this[0],"parsedAttrs"))){for(var lr=0,cr=(ir=this[0].attributes).length;lr<cr;lr++)0===(ar=ir[lr].name).indexOf("data-")&&(ar=or.camelCase(ar.substring(5)),l(this[0],ar,sr[ar]));or._data(this[0],"parsedAttrs",!0)}return sr}return"object"==_typeof(er)?this.each((function(){or.data(this,er)})):((nr=er.split("."))[1]=nr[1]?"."+nr[1]:"",rr===tr?((sr=this.triggerHandler("getData"+nr[1]+"!",[nr[0]]))===tr&&this.length&&(sr=or.data(this[0],er),sr=l(this[0],er,sr)),sr===tr&&nr[1]?this.data(nr[0]):sr):this.each((function(){var tr=or(this),ir=[nr[0],rr];tr.triggerHandler("setData"+nr[1]+"!",ir),or.data(this,er,rr),tr.triggerHandler("changeData"+nr[1]+"!",ir)})))},removeData:function removeData(er){return this.each((function(){or.removeData(this,er)}))}}),or.extend({_mark:function _mark(er,tr){er&&(tr=(tr||"fx")+"mark",or._data(er,tr,(or._data(er,tr)||0)+1))},_unmark:function _unmark(er,tr,rr){if(!0!==er&&(rr=tr,tr=er,er=!1),tr){var nr=(rr=rr||"fx")+"mark",ir=er?0:(or._data(tr,nr)||1)-1;ir?or._data(tr,nr,ir):(or.removeData(tr,nr,!0),n(tr,rr,"mark"))}},queue:function queue(er,tr,rr){var nr;if(er)return tr=(tr||"fx")+"queue",nr=or._data(er,tr),rr&&(!nr||or.isArray(rr)?nr=or._data(er,tr,or.makeArray(rr)):nr.push(rr)),nr||[]},dequeue:function dequeue(er,tr){tr=tr||"fx";var rr=or.queue(er,tr),nr=rr.shift(),ir={};"inprogress"===nr&&(nr=rr.shift()),nr&&("fx"===tr&&rr.unshift("inprogress"),or._data(er,tr+".run",ir),nr.call(er,(function(){or.dequeue(er,tr)}),ir)),rr.length||(or.removeData(er,tr+"queue "+tr+".run",!0),n(er,tr,"queue"))}}),or.fn.extend({queue:function queue(er,rr){return"string"!=typeof er&&(rr=er,er="fx"),rr===tr?or.queue(this[0],er):this.each((function(){var tr=or.queue(this,er,rr);"fx"===er&&"inprogress"!==tr[0]&&or.dequeue(this,er)}))},dequeue:function dequeue(er){return this.each((function(){or.dequeue(this,er)}))},delay:function delay(er,tr){return er=or.fx&&or.fx.speeds[er]||er,tr=tr||"fx",this.queue(tr,(function(tr,rr){var nr=setTimeout(tr,er);rr.stop=function(){clearTimeout(nr)}}))},clearQueue:function clearQueue(er){return this.queue(er||"fx",[])},promise:function promise(er,rr){function m(){--lr||ir.resolveWith(ar,[ar])}"string"!=typeof er&&(er=tr),er=er||"fx";for(var nr,ir=or.Deferred(),ar=this,sr=ar.length,lr=1,cr=er+"defer",ur=er+"queue",dr=er+"mark";sr--;)(nr=or.data(ar[sr],cr,tr,!0)||(or.data(ar[sr],ur,tr,!0)||or.data(ar[sr],dr,tr,!0))&&or.data(ar[sr],cr,or.Callbacks("once memory"),!0))&&(lr++,nr.add(m));return m(),ir.promise()}});var ur,dr,hr,pr=/[\n\t\r]/g,Ar=/\s+/,fr=/\r/g,gr=/^(?:button|input)$/i,mr=/^(?:button|input|object|select|textarea)$/i,_r=/^a(?:rea)?$/i,vr=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,yr=or.support.getSetAttribute;or.fn.extend({attr:function attr(er,tr){return or.access(this,er,tr,!0,or.attr)},removeAttr:function removeAttr(er){return this.each((function(){or.removeAttr(this,er)}))},prop:function prop(er,tr){return or.access(this,er,tr,!0,or.prop)},removeProp:function removeProp(er){return er=or.propFix[er]||er,this.each((function(){try{this[er]=tr,delete this[er]}catch(er){}}))},addClass:function addClass(er){var tr,rr,nr,ir,ar,sr,lr;if(or.isFunction(er))return this.each((function(tr){or(this).addClass(er.call(this,tr,this.className))}));if(er&&"string"==typeof er)for(tr=er.split(Ar),rr=0,nr=this.length;rr<nr;rr++)if(1===(ir=this[rr]).nodeType)if(ir.className||1!==tr.length){for(ar=" "+ir.className+" ",sr=0,lr=tr.length;sr<lr;sr++)~ar.indexOf(" "+tr[sr]+" ")||(ar+=tr[sr]+" ");ir.className=or.trim(ar)}else ir.className=er;return this},removeClass:function removeClass(er){var rr,nr,ir,ar,sr,lr,cr;if(or.isFunction(er))return this.each((function(tr){or(this).removeClass(er.call(this,tr,this.className))}));if(er&&"string"==typeof er||er===tr)for(rr=(er||"").split(Ar),nr=0,ir=this.length;nr<ir;nr++)if(1===(ar=this[nr]).nodeType&&ar.className)if(er){for(sr=(" "+ar.className+" ").replace(pr," "),lr=0,cr=rr.length;lr<cr;lr++)sr=sr.replace(" "+rr[lr]+" "," ");ar.className=or.trim(sr)}else ar.className="";return this},toggleClass:function toggleClass(er,tr){var rr=_typeof(er),nr="boolean"==typeof tr;return or.isFunction(er)?this.each((function(rr){or(this).toggleClass(er.call(this,rr,this.className,tr),tr)})):this.each((function(){if("string"===rr)for(var ir,ar=0,sr=or(this),lr=tr,cr=er.split(Ar);ir=cr[ar++];)lr=nr?lr:!sr.hasClass(ir),sr[lr?"addClass":"removeClass"](ir);else"undefined"!==rr&&"boolean"!==rr||(this.className&&or._data(this,"__className__",this.className),this.className=this.className||!1===er?"":or._data(this,"__className__")||"")}))},hasClass:function hasClass(er){for(var tr=" "+er+" ",rr=0,nr=this.length;rr<nr;rr++)if(1===this[rr].nodeType&&(" "+this[rr].className+" ").replace(pr," ").indexOf(tr)>-1)return!0;return!1},val:function val(er){var rr,nr,ir,ar=this[0];return arguments.length?(ir=or.isFunction(er),this.each((function(nr){var ar,sr=or(this);1===this.nodeType&&(null==(ar=ir?er.call(this,nr,sr.val()):er)?ar="":"number"==typeof ar?ar+="":or.isArray(ar)&&(ar=or.map(ar,(function(er){return null==er?"":er+""}))),(rr=or.valHooks[this.nodeName.toLowerCase()]||or.valHooks[this.type])&&"set"in rr&&rr.set(this,ar,"value")!==tr||(this.value=ar))}))):ar?(rr=or.valHooks[ar.nodeName.toLowerCase()]||or.valHooks[ar.type])&&"get"in rr&&(nr=rr.get(ar,"value"))!==tr?nr:"string"==typeof(nr=ar.value)?nr.replace(fr,""):null==nr?"":nr:void 0}}),or.extend({valHooks:{option:{get:function get(er){var tr=er.attributes.value;return!tr||tr.specified?er.value:er.text}},select:{get:function get(er){var tr,rr,nr,ir,ar=er.selectedIndex,sr=[],lr=er.options,cr="select-one"===er.type;if(ar<0)return null;for(rr=cr?ar:0,nr=cr?ar+1:lr.length;rr<nr;rr++)if((ir=lr[rr]).selected&&(or.support.optDisabled?!ir.disabled:null===ir.getAttribute("disabled"))&&(!ir.parentNode.disabled||!or.nodeName(ir.parentNode,"optgroup"))){if(tr=or(ir).val(),cr)return tr;sr.push(tr)}return cr&&!sr.length&&lr.length?or(lr[ar]).val():sr},set:function set(er,tr){var rr=or.makeArray(tr);return or(er).find("option").each((function(){this.selected=or.inArray(or(this).val(),rr)>=0})),rr.length||(er.selectedIndex=-1),rr}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function attr(er,rr,nr,ir){var ar,sr,lr,cr=er.nodeType;if(er&&3!==cr&&8!==cr&&2!==cr)return ir&&rr in or.attrFn?or(er)[rr](nr):void 0===er.getAttribute?or.prop(er,rr,nr):((lr=1!==cr||!or.isXMLDoc(er))&&(rr=rr.toLowerCase(),sr=or.attrHooks[rr]||(vr.test(rr)?dr:ur)),nr!==tr?null===nr?void or.removeAttr(er,rr):sr&&"set"in sr&&lr&&(ar=sr.set(er,nr,rr))!==tr?ar:(er.setAttribute(rr,""+nr),nr):sr&&"get"in sr&&lr&&null!==(ar=sr.get(er,rr))?ar:null===(ar=er.getAttribute(rr))?tr:ar)},removeAttr:function removeAttr(er,tr){var rr,nr,ir,ar,sr=0;if(tr&&1===er.nodeType)for(ar=(nr=tr.toLowerCase().split(Ar)).length;sr<ar;sr++)(ir=nr[sr])&&(rr=or.propFix[ir]||ir,or.attr(er,ir,""),er.removeAttribute(yr?ir:rr),vr.test(ir)&&rr in er&&(er[rr]=!1))},attrHooks:{type:{set:function set(er,tr){if(gr.test(er.nodeName)&&er.parentNode)or.error("type property can't be changed");else if(!or.support.radioValue&&"radio"===tr&&or.nodeName(er,"input")){var rr=er.value;return er.setAttribute("type",tr),rr&&(er.value=rr),tr}}},value:{get:function get(er,tr){return ur&&or.nodeName(er,"button")?ur.get(er,tr):tr in er?er.value:null},set:function set(er,tr,rr){if(ur&&or.nodeName(er,"button"))return ur.set(er,tr,rr);er.value=tr}}},propFix:{tabindex:"tabIndex",readonly:"readOnly",for:"htmlFor",class:"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function prop(er,rr,nr){var ir,ar,sr=er.nodeType;if(er&&3!==sr&&8!==sr&&2!==sr)return(1!==sr||!or.isXMLDoc(er))&&(rr=or.propFix[rr]||rr,ar=or.propHooks[rr]),nr!==tr?ar&&"set"in ar&&(ir=ar.set(er,nr,rr))!==tr?ir:er[rr]=nr:ar&&"get"in ar&&null!==(ir=ar.get(er,rr))?ir:er[rr]},propHooks:{tabIndex:{get:function get(er){var rr=er.getAttributeNode("tabindex");return rr&&rr.specified?parseInt(rr.value,10):mr.test(er.nodeName)||_r.test(er.nodeName)&&er.href?0:tr}}}}),or.attrHooks.tabindex=or.propHooks.tabIndex,dr={get:function get(er,rr){var nr,ir=or.prop(er,rr);return!0===ir||"boolean"!=typeof ir&&(nr=er.getAttributeNode(rr))&&!1!==nr.nodeValue?rr.toLowerCase():tr},set:function set(er,tr,rr){var nr;return!1===tr?or.removeAttr(er,rr):((nr=or.propFix[rr]||rr)in er&&(er[nr]=!0),er.setAttribute(rr,rr.toLowerCase())),rr}},yr||(hr={name:!0,id:!0},ur=or.valHooks.button={get:function get(er,rr){var nr;return(nr=er.getAttributeNode(rr))&&(hr[rr]?""!==nr.nodeValue:nr.specified)?nr.nodeValue:tr},set:function set(er,tr,nr){var ir=er.getAttributeNode(nr);return ir||(ir=rr.createAttribute(nr),er.setAttributeNode(ir)),ir.nodeValue=tr+""}},or.attrHooks.tabindex.set=ur.set,or.each(["width","height"],(function(er,tr){or.attrHooks[tr]=or.extend(or.attrHooks[tr],{set:function set(er,rr){if(""===rr)return er.setAttribute(tr,"auto"),rr}})})),or.attrHooks.contenteditable={get:ur.get,set:function set(er,tr,rr){""===tr&&(tr="false"),ur.set(er,tr,rr)}}),or.support.hrefNormalized||or.each(["href","src","width","height"],(function(er,rr){or.attrHooks[rr]=or.extend(or.attrHooks[rr],{get:function get(er){var nr=er.getAttribute(rr,2);return null===nr?tr:nr}})})),or.support.style||(or.attrHooks.style={get:function get(er){return er.style.cssText.toLowerCase()||tr},set:function set(er,tr){return er.style.cssText=""+tr}}),or.support.optSelected||(or.propHooks.selected=or.extend(or.propHooks.selected,{get:function get(er){var tr=er.parentNode;return tr&&(tr.selectedIndex,tr.parentNode&&tr.parentNode.selectedIndex),null}})),or.support.enctype||(or.propFix.enctype="encoding"),or.support.checkOn||or.each(["radio","checkbox"],(function(){or.valHooks[this]={get:function get(er){return null===er.getAttribute("value")?"on":er.value}}})),or.each(["radio","checkbox"],(function(){or.valHooks[this]=or.extend(or.valHooks[this],{set:function set(er,tr){if(or.isArray(tr))return er.checked=or.inArray(or(er).val(),tr)>=0}})}));var br=/^(?:textarea|input|select)$/i,wr=/^([^\.]*)?(?:\.(.+))?$/,Sr=/\bhover(\.\S+)?\b/,xr=/^key/,kr=/^(?:mouse|contextmenu)|click/,Cr=/^(?:focusinfocus|focusoutblur)$/,Br=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,Er=function G(er){var tr=Br.exec(er);return tr&&(tr[1]=(tr[1]||"").toLowerCase(),tr[3]=tr[3]&&new RegExp("(?:^|\\s)"+tr[3]+"(?:\\s|$)")),tr},Nr=function H(er,tr){var rr=er.attributes||{};return(!tr[1]||er.nodeName.toLowerCase()===tr[1])&&(!tr[2]||(rr.id||{}).value===tr[2])&&(!tr[3]||tr[3].test((rr.class||{}).value))},Lr=function I(er){return or.event.special.hover?er:er.replace(Sr,"mouseenter$1 mouseleave$1")};or.event={add:function add(er,rr,nr,ir,ar){var sr,lr,cr,ur,dr,hr,pr,Ar,fr,gr,mr;if(3!==er.nodeType&&8!==er.nodeType&&rr&&nr&&(sr=or._data(er))){for(nr.handler&&(nr=(fr=nr).handler),nr.guid||(nr.guid=or.guid++),(cr=sr.events)||(sr.events=cr={}),(lr=sr.handle)||(sr.handle=lr=function i(er){return void 0===or||er&&or.event.triggered===er.type?tr:or.event.dispatch.apply(lr.elem,arguments)},lr.elem=er),rr=or.trim(Lr(rr)).split(" "),ur=0;ur<rr.length;ur++)hr=(dr=wr.exec(rr[ur])||[])[1],pr=(dr[2]||"").split(".").sort(),mr=or.event.special[hr]||{},hr=(ar?mr.delegateType:mr.bindType)||hr,mr=or.event.special[hr]||{},Ar=or.extend({type:hr,origType:dr[1],data:ir,handler:nr,guid:nr.guid,selector:ar,quick:Er(ar),namespace:pr.join(".")},fr),(gr=cr[hr])||((gr=cr[hr]=[]).delegateCount=0,mr.setup&&!1!==mr.setup.call(er,ir,pr,lr)||(er.addEventListener?er.addEventListener(hr,lr,!1):er.attachEvent&&er.attachEvent("on"+hr,lr))),mr.add&&(mr.add.call(er,Ar),Ar.handler.guid||(Ar.handler.guid=nr.guid)),ar?gr.splice(gr.delegateCount++,0,Ar):gr.push(Ar),or.event.global[hr]=!0;er=null}},global:{},remove:function remove(er,tr,rr,nr,ir){var ar,sr,lr,cr,ur,dr,hr,pr,Ar,fr,gr,mr,_r=or.hasData(er)&&or._data(er);if(_r&&(pr=_r.events)){for(tr=or.trim(Lr(tr||"")).split(" "),ar=0;ar<tr.length;ar++)if(lr=cr=(sr=wr.exec(tr[ar])||[])[1],ur=sr[2],lr){for(Ar=or.event.special[lr]||{},dr=(gr=pr[lr=(nr?Ar.delegateType:Ar.bindType)||lr]||[]).length,ur=ur?new RegExp("(^|\\.)"+ur.split(".").sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null,hr=0;hr<gr.length;hr++)mr=gr[hr],(ir||cr===mr.origType)&&(!rr||rr.guid===mr.guid)&&(!ur||ur.test(mr.namespace))&&(!nr||nr===mr.selector||"**"===nr&&mr.selector)&&(gr.splice(hr--,1),mr.selector&&gr.delegateCount--,Ar.remove&&Ar.remove.call(er,mr));0===gr.length&&dr!==gr.length&&((!Ar.teardown||!1===Ar.teardown.call(er,ur))&&or.removeEvent(er,lr,_r.handle),delete pr[lr])}else for(lr in pr)or.event.remove(er,lr+tr[ar],rr,nr,!0);or.isEmptyObject(pr)&&((fr=_r.handle)&&(fr.elem=null),or.removeData(er,["events","handle"],!0))}},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function trigger(rr,nr,ir,ar){if(!ir||3!==ir.nodeType&&8!==ir.nodeType){var sr,lr,cr,ur,dr,hr,pr,Ar,fr,gr,mr=rr.type||rr,_r=[];if(Cr.test(mr+or.event.triggered))return;if(mr.indexOf("!")>=0&&(mr=mr.slice(0,-1),lr=!0),mr.indexOf(".")>=0&&(_r=mr.split("."),mr=_r.shift(),_r.sort()),(!ir||or.event.customEvent[mr])&&!or.event.global[mr])return;if((rr="object"==_typeof(rr)?rr[or.expando]?rr:new or.Event(mr,rr):new or.Event(mr)).type=mr,rr.isTrigger=!0,rr.exclusive=lr,rr.namespace=_r.join("."),rr.namespace_re=rr.namespace?new RegExp("(^|\\.)"+_r.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,hr=mr.indexOf(":")<0?"on"+mr:"",!ir){for(cr in sr=or.cache)sr[cr].events&&sr[cr].events[mr]&&or.event.trigger(rr,nr,sr[cr].handle.elem,!0);return}if(rr.result=tr,rr.target||(rr.target=ir),(nr=null!=nr?or.makeArray(nr):[]).unshift(rr),(pr=or.event.special[mr]||{}).trigger&&!1===pr.trigger.apply(ir,nr))return;if(fr=[[ir,pr.bindType||mr]],!ar&&!pr.noBubble&&!or.isWindow(ir)){for(gr=pr.delegateType||mr,ur=Cr.test(gr+mr)?ir:ir.parentNode,dr=null;ur;ur=ur.parentNode)fr.push([ur,gr]),dr=ur;dr&&dr===ir.ownerDocument&&fr.push([dr.defaultView||dr.parentWindow||er,gr])}for(cr=0;cr<fr.length&&!rr.isPropagationStopped();cr++)ur=fr[cr][0],rr.type=fr[cr][1],(Ar=(or._data(ur,"events")||{})[rr.type]&&or._data(ur,"handle"))&&Ar.apply(ur,nr),(Ar=hr&&ur[hr])&&or.acceptData(ur)&&!1===Ar.apply(ur,nr)&&rr.preventDefault();return rr.type=mr,!ar&&!rr.isDefaultPrevented()&&(!pr._default||!1===pr._default.apply(ir.ownerDocument,nr))&&("click"!==mr||!or.nodeName(ir,"a"))&&or.acceptData(ir)&&hr&&ir[mr]&&("focus"!==mr&&"blur"!==mr||0!==rr.target.offsetWidth)&&!or.isWindow(ir)&&((dr=ir[hr])&&(ir[hr]=null),or.event.triggered=mr,ir[mr](),or.event.triggered=tr,dr&&(ir[hr]=dr)),rr.result}},dispatch:function dispatch(rr){rr=or.event.fix(rr||er.event);var nr,ir,ar,sr,lr,cr,ur,dr,hr,pr,Ar=(or._data(this,"events")||{})[rr.type]||[],fr=Ar.delegateCount,gr=[].slice.call(arguments,0),mr=!rr.exclusive&&!rr.namespace,_r=[];if(gr[0]=rr,rr.delegateTarget=this,fr&&!rr.target.disabled&&(!rr.button||"click"!==rr.type))for((sr=or(this)).context=this.ownerDocument||this,ar=rr.target;ar!=this;ar=ar.parentNode||this){for(cr={},dr=[],sr[0]=ar,nr=0;nr<fr;nr++)cr[pr=(hr=Ar[nr]).selector]===tr&&(cr[pr]=hr.quick?Nr(ar,hr.quick):sr.is(pr)),cr[pr]&&dr.push(hr);dr.length&&_r.push({elem:ar,matches:dr})}for(Ar.length>fr&&_r.push({elem:this,matches:Ar.slice(fr)}),nr=0;nr<_r.length&&!rr.isPropagationStopped();nr++)for(ur=_r[nr],rr.currentTarget=ur.elem,ir=0;ir<ur.matches.length&&!rr.isImmediatePropagationStopped();ir++)hr=ur.matches[ir],(mr||!rr.namespace&&!hr.namespace||rr.namespace_re&&rr.namespace_re.test(hr.namespace))&&(rr.data=hr.data,rr.handleObj=hr,(lr=((or.event.special[hr.origType]||{}).handle||hr.handler).apply(ur.elem,gr))!==tr&&(rr.result=lr,!1===lr&&(rr.preventDefault(),rr.stopPropagation())));return rr.result},props:"attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function filter(er,tr){return null==er.which&&(er.which=null!=tr.charCode?tr.charCode:tr.keyCode),er}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function filter(er,nr){var ir,or,ar,sr=nr.button,lr=nr.fromElement;return null==er.pageX&&null!=nr.clientX&&(or=(ir=er.target.ownerDocument||rr).documentElement,ar=ir.body,er.pageX=nr.clientX+(or&&or.scrollLeft||ar&&ar.scrollLeft||0)-(or&&or.clientLeft||ar&&ar.clientLeft||0),er.pageY=nr.clientY+(or&&or.scrollTop||ar&&ar.scrollTop||0)-(or&&or.clientTop||ar&&ar.clientTop||0)),!er.relatedTarget&&lr&&(er.relatedTarget=lr===er.target?nr.toElement:lr),!er.which&&sr!==tr&&(er.which=1&sr?1:2&sr?3:4&sr?2:0),er}},fix:function fix(er){if(er[or.expando])return er;var nr,ir,ar=er,sr=or.event.fixHooks[er.type]||{},lr=sr.props?this.props.concat(sr.props):this.props;for(er=or.Event(ar),nr=lr.length;nr;)er[ir=lr[--nr]]=ar[ir];return er.target||(er.target=ar.srcElement||rr),3===er.target.nodeType&&(er.target=er.target.parentNode),er.metaKey===tr&&(er.metaKey=er.ctrlKey),sr.filter?sr.filter(er,ar):er},special:{ready:{setup:or.bindReady},load:{noBubble:!0},focus:{delegateType:"focusin"},blur:{delegateType:"focusout"},beforeunload:{setup:function setup(er,tr,rr){or.isWindow(this)&&(this.onbeforeunload=rr)},teardown:function teardown(er,tr){this.onbeforeunload===tr&&(this.onbeforeunload=null)}}},simulate:function simulate(er,tr,rr,nr){var ir=or.extend(new or.Event,rr,{type:er,isSimulated:!0,originalEvent:{}});nr?or.event.trigger(ir,null,tr):or.event.dispatch.call(tr,ir),ir.isDefaultPrevented()&&rr.preventDefault()}},or.event.handle=or.event.dispatch,or.removeEvent=rr.removeEventListener?function(er,tr,rr){er.removeEventListener&&er.removeEventListener(tr,rr,!1)}:function(er,tr,rr){er.detachEvent&&er.detachEvent("on"+tr,rr)},or.Event=function(er,tr){if(!(this instanceof or.Event))return new or.Event(er,tr);er&&er.type?(this.originalEvent=er,this.type=er.type,this.isDefaultPrevented=er.defaultPrevented||!1===er.returnValue||er.getPreventDefault&&er.getPreventDefault()?K:J):this.type=er,tr&&or.extend(this,tr),this.timeStamp=er&&er.timeStamp||or.now(),this[or.expando]=!0},or.Event.prototype={preventDefault:function preventDefault(){this.isDefaultPrevented=K;var er=this.originalEvent;!er||(er.preventDefault?er.preventDefault():er.returnValue=!1)},stopPropagation:function stopPropagation(){this.isPropagationStopped=K;var er=this.originalEvent;!er||(er.stopPropagation&&er.stopPropagation(),er.cancelBubble=!0)},stopImmediatePropagation:function stopImmediatePropagation(){this.isImmediatePropagationStopped=K,this.stopPropagation()},isDefaultPrevented:J,isPropagationStopped:J,isImmediatePropagationStopped:J},or.each({mouseenter:"mouseover",mouseleave:"mouseout"},(function(er,tr){or.event.special[er]={delegateType:tr,bindType:tr,handle:function handle(er){var rr,nr=this,ir=er.relatedTarget,ar=er.handleObj;ar.selector;return ir&&(ir===nr||or.contains(nr,ir))||(er.type=ar.origType,rr=ar.handler.apply(this,arguments),er.type=tr),rr}}})),or.support.submitBubbles||(or.event.special.submit={setup:function setup(){if(or.nodeName(this,"form"))return!1;or.event.add(this,"click._submit keypress._submit",(function(er){var rr=er.target,nr=or.nodeName(rr,"input")||or.nodeName(rr,"button")?rr.form:tr;nr&&!nr._submit_attached&&(or.event.add(nr,"submit._submit",(function(er){this.parentNode&&!er.isTrigger&&or.event.simulate("submit",this.parentNode,er,!0)})),nr._submit_attached=!0)}))},teardown:function teardown(){if(or.nodeName(this,"form"))return!1;or.event.remove(this,"._submit")}}),or.support.changeBubbles||(or.event.special.change={setup:function setup(){if(br.test(this.nodeName))return"checkbox"!==this.type&&"radio"!==this.type||(or.event.add(this,"propertychange._change",(function(er){"checked"===er.originalEvent.propertyName&&(this._just_changed=!0)})),or.event.add(this,"click._change",(function(er){this._just_changed&&!er.isTrigger&&(this._just_changed=!1,or.event.simulate("change",this,er,!0))}))),!1;or.event.add(this,"beforeactivate._change",(function(er){var tr=er.target;br.test(tr.nodeName)&&!tr._change_attached&&(or.event.add(tr,"change._change",(function(er){this.parentNode&&!er.isSimulated&&!er.isTrigger&&or.event.simulate("change",this.parentNode,er,!0)})),tr._change_attached=!0)}))},handle:function handle(er){var tr=er.target;if(this!==tr||er.isSimulated||er.isTrigger||"radio"!==tr.type&&"checkbox"!==tr.type)return er.handleObj.handler.apply(this,arguments)},teardown:function teardown(){return or.event.remove(this,"._change"),br.test(this.nodeName)}}),or.support.focusinBubbles||or.each({focus:"focusin",blur:"focusout"},(function(er,tr){var nr=0,ir=function e(er){or.event.simulate(tr,er.target,or.event.fix(er),!0)};or.event.special[tr]={setup:function setup(){0==nr++&&rr.addEventListener(er,ir,!0)},teardown:function teardown(){0==--nr&&rr.removeEventListener(er,ir,!0)}}})),or.fn.extend({on:function on(er,rr,nr,ir,ar){var sr,lr;if("object"==_typeof(er)){for(lr in"string"!=typeof rr&&(nr=rr,rr=tr),er)this.on(lr,rr,nr,er[lr],ar);return this}if(null==nr&&null==ir?(ir=rr,nr=rr=tr):null==ir&&("string"==typeof rr?(ir=nr,nr=tr):(ir=nr,nr=rr,rr=tr)),!1===ir)ir=J;else if(!ir)return this;return 1===ar&&(sr=ir,(ir=function e(er){return or().off(er),sr.apply(this,arguments)}).guid=sr.guid||(sr.guid=or.guid++)),this.each((function(){or.event.add(this,er,ir,nr,rr)}))},one:function one(er,tr,rr,nr){return this.on.call(this,er,tr,rr,nr,1)},off:function off(er,rr,nr){if(er&&er.preventDefault&&er.handleObj){var ir=er.handleObj;return or(er.delegateTarget).off(ir.namespace?ir.type+"."+ir.namespace:ir.type,ir.selector,ir.handler),this}if("object"==_typeof(er)){for(var ar in er)this.off(ar,rr,er[ar]);return this}return!1!==rr&&"function"!=typeof rr||(nr=rr,rr=tr),!1===nr&&(nr=J),this.each((function(){or.event.remove(this,er,nr,rr)}))},bind:function bind(er,tr,rr){return this.on(er,null,tr,rr)},unbind:function unbind(er,tr){return this.off(er,null,tr)},live:function live(er,tr,rr){return or(this.context).on(er,this.selector,tr,rr),this},die:function die(er,tr){return or(this.context).off(er,this.selector||"**",tr),this},delegate:function delegate(er,tr,rr,nr){return this.on(tr,er,rr,nr)},undelegate:function undelegate(er,tr,rr){return 1==arguments.length?this.off(er,"**"):this.off(tr,er,rr)},trigger:function trigger(er,tr){return this.each((function(){or.event.trigger(er,tr,this)}))},triggerHandler:function triggerHandler(er,tr){if(this[0])return or.event.trigger(er,tr,this[0],!0)},toggle:function toggle(er){var tr=arguments,rr=er.guid||or.guid++,nr=0,ir=function e(rr){var e=(or._data(this,"lastToggle"+er.guid)||0)%nr;return or._data(this,"lastToggle"+er.guid,e+1),rr.preventDefault(),tr[e].apply(this,arguments)||!1};for(ir.guid=rr;nr<tr.length;)tr[nr++].guid=rr;return this.click(ir)},hover:function hover(er,tr){return this.mouseenter(er).mouseleave(tr||er)}}),or.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),(function(er,tr){or.fn[tr]=function(er,rr){return null==rr&&(rr=er,er=null),arguments.length>0?this.on(tr,null,er,rr):this.trigger(tr)},or.attrFn&&(or.attrFn[tr]=!0),xr.test(tr)&&(or.event.fixHooks[tr]=or.event.keyHooks),kr.test(tr)&&(or.event.fixHooks[tr]=or.event.mouseHooks)})),function(){function x(er,tr,rr,ir,or,ar){for(var sr=0,lr=ir.length;sr<lr;sr++){var cr=ir[sr];if(cr){var ur=!1;for(cr=cr[er];cr;){if(cr[nr]===rr){ur=ir[cr.sizset];break}if(1===cr.nodeType)if(ar||(cr[nr]=rr,cr.sizset=sr),"string"!=typeof tr){if(cr===tr){ur=!0;break}}else if(hr.filter(tr,[cr]).length>0){ur=cr;break}cr=cr[er]}ir[sr]=ur}}}function w(er,tr,rr,ir,or,ar){for(var sr=0,lr=ir.length;sr<lr;sr++){var cr=ir[sr];if(cr){var ur=!1;for(cr=cr[er];cr;){if(cr[nr]===rr){ur=ir[cr.sizset];break}if(1===cr.nodeType&&!ar&&(cr[nr]=rr,cr.sizset=sr),cr.nodeName.toLowerCase()===tr){ur=cr;break}cr=cr[er]}ir[sr]=ur}}}var er=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,nr="sizcache"+(Math.random()+"").replace(".",""),ir=0,ar=Object.prototype.toString,sr=!1,lr=!0,cr=/\\/g,ur=/\r\n/g,dr=/\W/;[0,0].sort((function(){return lr=!1,0}));var hr=function m(tr,nr,ir,or){ir=ir||[];var sr=nr=nr||rr;if(1!==nr.nodeType&&9!==nr.nodeType)return[];if(!tr||"string"!=typeof tr)return ir;var lr,cr,ur,dr,pr,gr,mr,_r,vr=!0,wr=hr.isXML(nr),Sr=[],xr=tr;do{if(er.exec(""),(lr=er.exec(xr))&&(xr=lr[3],Sr.push(lr[1]),lr[2])){dr=lr[3];break}}while(lr);if(Sr.length>1&&fr.exec(tr))if(2===Sr.length&&Ar.relative[Sr[0]])cr=br(Sr[0]+Sr[1],nr,or);else for(cr=Ar.relative[Sr[0]]?[nr]:hr(Sr.shift(),nr);Sr.length;)tr=Sr.shift(),Ar.relative[tr]&&(tr+=Sr.shift()),cr=br(tr,cr,or);else if(!or&&Sr.length>1&&9===nr.nodeType&&!wr&&Ar.match.ID.test(Sr[0])&&!Ar.match.ID.test(Sr[Sr.length-1])&&(nr=(pr=hr.find(Sr.shift(),nr,wr)).expr?hr.filter(pr.expr,pr.set)[0]:pr.set[0]),nr)for(cr=(pr=or?{expr:Sr.pop(),set:yr(or)}:hr.find(Sr.pop(),1!==Sr.length||"~"!==Sr[0]&&"+"!==Sr[0]||!nr.parentNode?nr:nr.parentNode,wr)).expr?hr.filter(pr.expr,pr.set):pr.set,Sr.length>0?ur=yr(cr):vr=!1;Sr.length;)mr=gr=Sr.pop(),Ar.relative[gr]?mr=Sr.pop():gr="",null==mr&&(mr=nr),Ar.relative[gr](ur,mr,wr);else ur=Sr=[];if(ur||(ur=cr),ur||hr.error(gr||tr),"[object Array]"===ar.call(ur))if(vr)if(nr&&1===nr.nodeType)for(_r=0;null!=ur[_r];_r++)ur[_r]&&(!0===ur[_r]||1===ur[_r].nodeType&&hr.contains(nr,ur[_r]))&&ir.push(cr[_r]);else for(_r=0;null!=ur[_r];_r++)ur[_r]&&1===ur[_r].nodeType&&ir.push(cr[_r]);else ir.push.apply(ir,ur);else yr(ur,ir);return dr&&(hr(dr,sr,ir,or),hr.uniqueSort(ir)),ir};hr.uniqueSort=function(er){if(_r&&(sr=lr,er.sort(_r),sr))for(var tr=1;tr<er.length;tr++)er[tr]===er[tr-1]&&er.splice(tr--,1);return er},hr.matches=function(er,tr){return hr(er,null,null,tr)},hr.matchesSelector=function(er,tr){return hr(tr,null,null,[er]).length>0},hr.find=function(er,tr,rr){var nr,ir,or,ar,sr,lr;if(!er)return[];for(ir=0,or=Ar.order.length;ir<or;ir++)if(sr=Ar.order[ir],(ar=Ar.leftMatch[sr].exec(er))&&(lr=ar[1],ar.splice(1,1),"\\"!==lr.substr(lr.length-1)&&(ar[1]=(ar[1]||"").replace(cr,""),null!=(nr=Ar.find[sr](ar,tr,rr))))){er=er.replace(Ar.match[sr],"");break}return nr||(nr=void 0!==tr.getElementsByTagName?tr.getElementsByTagName("*"):[]),{set:nr,expr:er}},hr.filter=function(er,rr,nr,ir){for(var or,ar,sr,lr,cr,ur,dr,pr,fr,gr=er,mr=[],_r=rr,vr=rr&&rr[0]&&hr.isXML(rr[0]);er&&rr.length;){for(sr in Ar.filter)if(null!=(or=Ar.leftMatch[sr].exec(er))&&or[2]){if(ur=Ar.filter[sr],dr=or[1],ar=!1,or.splice(1,1),"\\"===dr.substr(dr.length-1))continue;if(_r===mr&&(mr=[]),Ar.preFilter[sr])if(or=Ar.preFilter[sr](or,_r,nr,mr,ir,vr)){if(!0===or)continue}else ar=lr=!0;if(or)for(pr=0;null!=(cr=_r[pr]);pr++)cr&&(fr=ir^(lr=ur(cr,or,pr,_r)),nr&&null!=lr?fr?ar=!0:_r[pr]=!1:fr&&(mr.push(cr),ar=!0));if(lr!==tr){if(nr||(_r=mr),er=er.replace(Ar.match[sr],""),!ar)return[];break}}if(er===gr){if(null!=ar)break;hr.error(er)}gr=er}return _r},hr.error=function(er){throw new Error("Syntax error, unrecognized expression: "+er)};var pr=hr.getText=function(er){var tr,rr,nr=er.nodeType,ir="";if(nr){if(1===nr||9===nr){if("string"==typeof er.textContent)return er.textContent;if("string"==typeof er.innerText)return er.innerText.replace(ur,"");for(er=er.firstChild;er;er=er.nextSibling)ir+=pr(er)}else if(3===nr||4===nr)return er.nodeValue}else for(tr=0;rr=er[tr];tr++)8!==rr.nodeType&&(ir+=pr(rr));return ir},Ar=hr.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{class:"className",for:"htmlFor"},attrHandle:{href:function href(er){return er.getAttribute("href")},type:function type(er){return er.getAttribute("type")}},relative:{"+":function _(er,tr){var rr="string"==typeof tr,nr=rr&&!dr.test(tr),ir=rr&&!nr;nr&&(tr=tr.toLowerCase());for(var or,ar=0,sr=er.length;ar<sr;ar++)if(or=er[ar]){for(;(or=or.previousSibling)&&1!==or.nodeType;);er[ar]=ir||or&&or.nodeName.toLowerCase()===tr?or||!1:or===tr}ir&&hr.filter(tr,er,!0)},">":function _(er,tr){var rr,nr="string"==typeof tr,ir=0,or=er.length;if(nr&&!dr.test(tr)){for(tr=tr.toLowerCase();ir<or;ir++)if(rr=er[ir]){var ar=rr.parentNode;er[ir]=ar.nodeName.toLowerCase()===tr&&ar}}else{for(;ir<or;ir++)(rr=er[ir])&&(er[ir]=nr?rr.parentNode:rr.parentNode===tr);nr&&hr.filter(tr,er,!0)}},"":function _(er,tr,rr){var nr,or=ir++,ar=x;"string"==typeof tr&&!dr.test(tr)&&(nr=tr=tr.toLowerCase(),ar=w),ar("parentNode",tr,or,er,nr,rr)},"~":function _(er,tr,rr){var nr,or=ir++,ar=x;"string"==typeof tr&&!dr.test(tr)&&(nr=tr=tr.toLowerCase(),ar=w),ar("previousSibling",tr,or,er,nr,rr)}},find:{ID:function ID(er,tr,rr){if(void 0!==tr.getElementById&&!rr){var nr=tr.getElementById(er[1]);return nr&&nr.parentNode?[nr]:[]}},NAME:function NAME(er,tr){if(void 0!==tr.getElementsByName){for(var rr=[],nr=tr.getElementsByName(er[1]),ir=0,or=nr.length;ir<or;ir++)nr[ir].getAttribute("name")===er[1]&&rr.push(nr[ir]);return 0===rr.length?null:rr}},TAG:function TAG(er,tr){if(void 0!==tr.getElementsByTagName)return tr.getElementsByTagName(er[1])}},preFilter:{CLASS:function CLASS(er,tr,rr,nr,ir,or){if(er=" "+er[1].replace(cr,"")+" ",or)return er;for(var ar,sr=0;null!=(ar=tr[sr]);sr++)ar&&(ir^(ar.className&&(" "+ar.className+" ").replace(/[\t\n\r]/g," ").indexOf(er)>=0)?rr||nr.push(ar):rr&&(tr[sr]=!1));return!1},ID:function ID(er){return er[1].replace(cr,"")},TAG:function TAG(er,tr){return er[1].replace(cr,"").toLowerCase()},CHILD:function CHILD(er){if("nth"===er[1]){er[2]||hr.error(er[0]),er[2]=er[2].replace(/^\+|\s*/g,"");var tr=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(("even"===er[2]?"2n":"odd"===er[2]&&"2n+1")||!/\D/.test(er[2])&&"0n+"+er[2]||er[2]);er[2]=tr[1]+(tr[2]||1)-0,er[3]=tr[3]-0}else er[2]&&hr.error(er[0]);return er[0]=ir++,er},ATTR:function ATTR(er,tr,rr,nr,ir,or){var ar=er[1]=er[1].replace(cr,"");return!or&&Ar.attrMap[ar]&&(er[1]=Ar.attrMap[ar]),er[4]=(er[4]||er[5]||"").replace(cr,""),"~="===er[2]&&(er[4]=" "+er[4]+" "),er},PSEUDO:function PSEUDO(tr,rr,nr,ir,or){if("not"===tr[1]){if(!((er.exec(tr[3])||"").length>1||/^\w/.test(tr[3]))){var ar=hr.filter(tr[3],rr,nr,!0^or);return nr||ir.push.apply(ir,ar),!1}tr[3]=hr(tr[3],null,null,rr)}else if(Ar.match.POS.test(tr[0])||Ar.match.CHILD.test(tr[0]))return!0;return tr},POS:function POS(er){return er.unshift(!0),er}},filters:{enabled:function enabled(er){return!1===er.disabled&&"hidden"!==er.type},disabled:function disabled(er){return!0===er.disabled},checked:function checked(er){return!0===er.checked},selected:function selected(er){return er.parentNode&&er.parentNode.selectedIndex,!0===er.selected},parent:function parent(er){return!!er.firstChild},empty:function empty(er){return!er.firstChild},has:function has(er,tr,rr){return!!hr(rr[3],er).length},header:function header(er){return/h\d/i.test(er.nodeName)},text:function text(er){var tr=er.getAttribute("type"),rr=er.type;return"input"===er.nodeName.toLowerCase()&&"text"===rr&&(tr===rr||null===tr)},radio:function radio(er){return"input"===er.nodeName.toLowerCase()&&"radio"===er.type},checkbox:function checkbox(er){return"input"===er.nodeName.toLowerCase()&&"checkbox"===er.type},file:function file(er){return"input"===er.nodeName.toLowerCase()&&"file"===er.type},password:function password(er){return"input"===er.nodeName.toLowerCase()&&"password"===er.type},submit:function submit(er){var tr=er.nodeName.toLowerCase();return("input"===tr||"button"===tr)&&"submit"===er.type},image:function image(er){return"input"===er.nodeName.toLowerCase()&&"image"===er.type},reset:function reset(er){var tr=er.nodeName.toLowerCase();return("input"===tr||"button"===tr)&&"reset"===er.type},button:function button(er){var tr=er.nodeName.toLowerCase();return"input"===tr&&"button"===er.type||"button"===tr},input:function input(er){return/input|select|textarea|button/i.test(er.nodeName)},focus:function focus(er){return er===er.ownerDocument.activeElement}},setFilters:{first:function first(er,tr){return 0===tr},last:function last(er,tr,rr,nr){return tr===nr.length-1},even:function even(er,tr){return tr%2==0},odd:function odd(er,tr){return tr%2==1},lt:function lt(er,tr,rr){return tr<rr[3]-0},gt:function gt(er,tr,rr){return tr>rr[3]-0},nth:function nth(er,tr,rr){return rr[3]-0===tr},eq:function eq(er,tr,rr){return rr[3]-0===tr}},filter:{PSEUDO:function PSEUDO(er,tr,rr,nr){var ir=tr[1],or=Ar.filters[ir];if(or)return or(er,rr,tr,nr);if("contains"===ir)return(er.textContent||er.innerText||pr([er])||"").indexOf(tr[3])>=0;if("not"===ir){for(var ar=tr[3],sr=0,lr=ar.length;sr<lr;sr++)if(ar[sr]===er)return!1;return!0}hr.error(ir)},CHILD:function CHILD(er,tr){var rr,ir,or,ar,sr,lr,cr=tr[1],ur=er;switch(cr){case"only":case"first":for(;ur=ur.previousSibling;)if(1===ur.nodeType)return!1;if("first"===cr)return!0;ur=er;case"last":for(;ur=ur.nextSibling;)if(1===ur.nodeType)return!1;return!0;case"nth":if(rr=tr[2],ir=tr[3],1===rr&&0===ir)return!0;if(or=tr[0],(ar=er.parentNode)&&(ar[nr]!==or||!er.nodeIndex)){for(sr=0,ur=ar.firstChild;ur;ur=ur.nextSibling)1===ur.nodeType&&(ur.nodeIndex=++sr);ar[nr]=or}return lr=er.nodeIndex-ir,0===rr?0===lr:lr%rr==0&&lr/rr>=0}},ID:function ID(er,tr){return 1===er.nodeType&&er.getAttribute("id")===tr},TAG:function TAG(er,tr){return"*"===tr&&1===er.nodeType||!!er.nodeName&&er.nodeName.toLowerCase()===tr},CLASS:function CLASS(er,tr){return(" "+(er.className||er.getAttribute("class"))+" ").indexOf(tr)>-1},ATTR:function ATTR(er,tr){var rr=tr[1],nr=hr.attr?hr.attr(er,rr):Ar.attrHandle[rr]?Ar.attrHandle[rr](er):null!=er[rr]?er[rr]:er.getAttribute(rr),ir=nr+"",or=tr[2],ar=tr[4];return null==nr?"!="===or:!or&&hr.attr?null!=nr:"="===or?ir===ar:"*="===or?ir.indexOf(ar)>=0:"~="===or?(" "+ir+" ").indexOf(ar)>=0:ar?"!="===or?ir!==ar:"^="===or?0===ir.indexOf(ar):"$="===or?ir.substr(ir.length-ar.length)===ar:"|="===or&&(ir===ar||ir.substr(0,ar.length+1)===ar+"-"):ir&&!1!==nr},POS:function POS(er,tr,rr,nr){var ir=tr[2],or=Ar.setFilters[ir];if(or)return or(er,rr,tr,nr)}}},fr=Ar.match.POS,gr=function q(er,tr){return"\\"+(tr-0+1)};for(var mr in Ar.match)Ar.match[mr]=new RegExp(Ar.match[mr].source+/(?![^\[]*\])(?![^\(]*\))/.source),Ar.leftMatch[mr]=new RegExp(/(^(?:.|\r|\n)*?)/.source+Ar.match[mr].source.replace(/\\(\d+)/g,gr));var _r,vr,yr=function s(er,tr){return er=Array.prototype.slice.call(er,0),tr?(tr.push.apply(tr,er),tr):er};try{Array.prototype.slice.call(rr.documentElement.childNodes,0)[0].nodeType}catch(er){yr=function s(er,tr){var rr=0,nr=tr||[];if("[object Array]"===ar.call(er))Array.prototype.push.apply(nr,er);else if("number"==typeof er.length)for(var ir=er.length;rr<ir;rr++)nr.push(er[rr]);else for(;er[rr];rr++)nr.push(er[rr]);return nr}}rr.documentElement.compareDocumentPosition?_r=function u(er,tr){return er===tr?(sr=!0,0):er.compareDocumentPosition&&tr.compareDocumentPosition?4&er.compareDocumentPosition(tr)?-1:1:er.compareDocumentPosition?-1:1}:(_r=function u(er,tr){if(er===tr)return sr=!0,0;if(er.sourceIndex&&tr.sourceIndex)return er.sourceIndex-tr.sourceIndex;var rr,nr,ir=[],or=[],ar=er.parentNode,lr=tr.parentNode,cr=ar;if(ar===lr)return vr(er,tr);if(!ar)return-1;if(!lr)return 1;for(;cr;)ir.unshift(cr),cr=cr.parentNode;for(cr=lr;cr;)or.unshift(cr),cr=cr.parentNode;rr=ir.length,nr=or.length;for(var ur=0;ur<rr&&ur<nr;ur++)if(ir[ur]!==or[ur])return vr(ir[ur],or[ur]);return ur===rr?vr(er,or[ur],-1):vr(ir[ur],tr,1)},vr=function v(er,tr,rr){if(er===tr)return rr;for(var nr=er.nextSibling;nr;){if(nr===tr)return-1;nr=nr.nextSibling}return 1}),function(){var er=rr.createElement("div"),nr="script"+(new Date).getTime(),ir=rr.documentElement;er.innerHTML="<a name='"+nr+"'/>",ir.insertBefore(er,ir.firstChild),rr.getElementById(nr)&&(Ar.find.ID=function(er,rr,nr){if(void 0!==rr.getElementById&&!nr){var ir=rr.getElementById(er[1]);return ir?ir.id===er[1]||void 0!==ir.getAttributeNode&&ir.getAttributeNode("id").nodeValue===er[1]?[ir]:tr:[]}},Ar.filter.ID=function(er,tr){var rr=void 0!==er.getAttributeNode&&er.getAttributeNode("id");return 1===er.nodeType&&rr&&rr.nodeValue===tr}),ir.removeChild(er),ir=er=null}(),function(){var er=rr.createElement("div");er.appendChild(rr.createComment("")),er.getElementsByTagName("*").length>0&&(Ar.find.TAG=function(er,tr){var rr=tr.getElementsByTagName(er[1]);if("*"===er[1]){for(var nr=[],ir=0;rr[ir];ir++)1===rr[ir].nodeType&&nr.push(rr[ir]);rr=nr}return rr}),er.innerHTML="<a href='#'></a>",er.firstChild&&void 0!==er.firstChild.getAttribute&&"#"!==er.firstChild.getAttribute("href")&&(Ar.attrHandle.href=function(er){return er.getAttribute("href",2)}),er=null}(),rr.querySelectorAll&&function(){var er=hr,tr=rr.createElement("div");if(tr.innerHTML="<p class='TEST'></p>",!tr.querySelectorAll||0!==tr.querySelectorAll(".TEST").length){for(var nr in hr=function _m(tr,nr,ir,or){if(nr=nr||rr,!or&&!hr.isXML(nr)){var ar=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(tr);if(ar&&(1===nr.nodeType||9===nr.nodeType)){if(ar[1])return yr(nr.getElementsByTagName(tr),ir);if(ar[2]&&Ar.find.CLASS&&nr.getElementsByClassName)return yr(nr.getElementsByClassName(ar[2]),ir)}if(9===nr.nodeType){if("body"===tr&&nr.body)return yr([nr.body],ir);if(ar&&ar[3]){var sr=nr.getElementById(ar[3]);if(!sr||!sr.parentNode)return yr([],ir);if(sr.id===ar[3])return yr([sr],ir)}try{return yr(nr.querySelectorAll(tr),ir)}catch(er){}}else if(1===nr.nodeType&&"object"!==nr.nodeName.toLowerCase()){var lr=nr,cr=nr.getAttribute("id"),ur=cr||"__sizzle__",dr=nr.parentNode,pr=/^\s*[+~]/.test(tr);cr?ur=ur.replace(/'/g,"\\$&"):nr.setAttribute("id",ur),pr&&dr&&(nr=nr.parentNode);try{if(!pr||dr)return yr(nr.querySelectorAll("[id='"+ur+"'] "+tr),ir)}catch(er){}finally{cr||lr.removeAttribute("id")}}}return er(tr,nr,ir,or)},er)hr[nr]=er[nr];tr=null}}(),function(){var er=rr.documentElement,tr=er.matchesSelector||er.mozMatchesSelector||er.webkitMatchesSelector||er.msMatchesSelector;if(tr){var nr=!tr.call(rr.createElement("div"),"div"),ir=!1;try{tr.call(rr.documentElement,"[test!='']:sizzle")}catch(er){ir=!0}hr.matchesSelector=function(er,rr){if(rr=rr.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']"),!hr.isXML(er))try{if(ir||!Ar.match.PSEUDO.test(rr)&&!/!=/.test(rr)){var or=tr.call(er,rr);if(or||!nr||er.document&&11!==er.document.nodeType)return or}}catch(er){}return hr(rr,null,null,[er]).length>0}}}(),function(){var er=rr.createElement("div");if(er.innerHTML="<div class='test e'></div><div class='test'></div>",er.getElementsByClassName&&0!==er.getElementsByClassName("e").length){if(er.lastChild.className="e",1===er.getElementsByClassName("e").length)return;Ar.order.splice(1,0,"CLASS"),Ar.find.CLASS=function(er,tr,rr){if(void 0!==tr.getElementsByClassName&&!rr)return tr.getElementsByClassName(er[1])},er=null}}(),rr.documentElement.contains?hr.contains=function(er,tr){return er!==tr&&(!er.contains||er.contains(tr))}:rr.documentElement.compareDocumentPosition?hr.contains=function(er,tr){return!!(16&er.compareDocumentPosition(tr))}:hr.contains=function(){return!1},hr.isXML=function(er){var tr=(er?er.ownerDocument||er:0).documentElement;return!!tr&&"HTML"!==tr.nodeName};var br=function y(er,tr,rr){for(var nr,ir=[],or="",ar=tr.nodeType?[tr]:tr;nr=Ar.match.PSEUDO.exec(er);)or+=nr[0],er=er.replace(Ar.match.PSEUDO,"");er=Ar.relative[er]?er+"*":er;for(var sr=0,lr=ar.length;sr<lr;sr++)hr(er,ar[sr],ir,rr);return hr.filter(or,ir)};hr.attr=or.attr,hr.selectors.attrMap={},or.find=hr,or.expr=hr.selectors,or.expr[":"]=or.expr.filters,or.unique=hr.uniqueSort,or.text=hr.getText,or.isXMLDoc=hr.isXML,or.contains=hr.contains}();var Tr=/Until$/,Pr=/^(?:parents|prevUntil|prevAll)/,Fr=/,/,Ur=/^.[^:#\[\.,]*$/,Ir=Array.prototype.slice,Rr=or.expr.match.POS,Mr={children:!0,contents:!0,next:!0,prev:!0};or.fn.extend({find:function find(er){var tr,rr,nr=this;if("string"!=typeof er)return or(er).filter((function(){for(tr=0,rr=nr.length;tr<rr;tr++)if(or.contains(nr[tr],this))return!0}));var ir,ar,sr,lr=this.pushStack("","find",er);for(tr=0,rr=this.length;tr<rr;tr++)if(ir=lr.length,or.find(er,this[tr],lr),tr>0)for(ar=ir;ar<lr.length;ar++)for(sr=0;sr<ir;sr++)if(lr[sr]===lr[ar]){lr.splice(ar--,1);break}return lr},has:function has(er){var tr=or(er);return this.filter((function(){for(var er=0,rr=tr.length;er<rr;er++)if(or.contains(this,tr[er]))return!0}))},not:function not(er){return this.pushStack(T(this,er,!1),"not",er)},filter:function filter(er){return this.pushStack(T(this,er,!0),"filter",er)},is:function is(er){return!!er&&("string"==typeof er?Rr.test(er)?or(er,this.context).index(this[0])>=0:or.filter(er,this).length>0:this.filter(er).length>0)},closest:function closest(er,tr){var rr,nr,ir=[],ar=this[0];if(or.isArray(er)){for(var sr=1;ar&&ar.ownerDocument&&ar!==tr;){for(rr=0;rr<er.length;rr++)or(ar).is(er[rr])&&ir.push({selector:er[rr],elem:ar,level:sr});ar=ar.parentNode,sr++}return ir}var lr=Rr.test(er)||"string"!=typeof er?or(er,tr||this.context):0;for(rr=0,nr=this.length;rr<nr;rr++)for(ar=this[rr];ar;){if(lr?lr.index(ar)>-1:or.find.matchesSelector(ar,er)){ir.push(ar);break}if(!(ar=ar.parentNode)||!ar.ownerDocument||ar===tr||11===ar.nodeType)break}return ir=ir.length>1?or.unique(ir):ir,this.pushStack(ir,"closest",er)},index:function index(er){return er?"string"==typeof er?or.inArray(this[0],or(er)):or.inArray(er.jquery?er[0]:er,this):this[0]&&this[0].parentNode?this.prevAll().length:-1},add:function add(er,tr){var rr="string"==typeof er?or(er,tr):or.makeArray(er&&er.nodeType?[er]:er),nr=or.merge(this.get(),rr);return this.pushStack(S(rr[0])||S(nr[0])?nr:or.unique(nr))},andSelf:function andSelf(){return this.add(this.prevObject)}}),or.each({parent:function parent(er){var tr=er.parentNode;return tr&&11!==tr.nodeType?tr:null},parents:function parents(er){return or.dir(er,"parentNode")},parentsUntil:function parentsUntil(er,tr,rr){return or.dir(er,"parentNode",rr)},next:function next(er){return or.nth(er,2,"nextSibling")},prev:function prev(er){return or.nth(er,2,"previousSibling")},nextAll:function nextAll(er){return or.dir(er,"nextSibling")},prevAll:function prevAll(er){return or.dir(er,"previousSibling")},nextUntil:function nextUntil(er,tr,rr){return or.dir(er,"nextSibling",rr)},prevUntil:function prevUntil(er,tr,rr){return or.dir(er,"previousSibling",rr)},siblings:function siblings(er){return or.sibling(er.parentNode.firstChild,er)},children:function children(er){return or.sibling(er.firstChild)},contents:function contents(er){return or.nodeName(er,"iframe")?er.contentDocument||er.contentWindow.document:or.makeArray(er.childNodes)}},(function(er,tr){or.fn[er]=function(rr,nr){var ir=or.map(this,tr,rr);return Tr.test(er)||(nr=rr),nr&&"string"==typeof nr&&(ir=or.filter(nr,ir)),ir=this.length>1&&!Mr[er]?or.unique(ir):ir,(this.length>1||Fr.test(nr))&&Pr.test(er)&&(ir=ir.reverse()),this.pushStack(ir,er,Ir.call(arguments).join(","))}})),or.extend({filter:function filter(er,tr,rr){return rr&&(er=":not("+er+")"),1===tr.length?or.find.matchesSelector(tr[0],er)?[tr[0]]:[]:or.find.matches(er,tr)},dir:function dir(er,rr,nr){for(var ir=[],ar=er[rr];ar&&9!==ar.nodeType&&(nr===tr||1!==ar.nodeType||!or(ar).is(nr));)1===ar.nodeType&&ir.push(ar),ar=ar[rr];return ir},nth:function nth(er,tr,rr,nr){tr=tr||1;for(var ir=0;er&&(1!==er.nodeType||++ir!==tr);er=er[rr]);return er},sibling:function sibling(er,tr){for(var rr=[];er;er=er.nextSibling)1===er.nodeType&&er!==tr&&rr.push(er);return rr}});var Or="abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",Qr=/ jQuery\d+="(?:\d+|null)"/g,Dr=/^\s+/,jr=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Hr=/<([\w:]+)/,Gr=/<tbody/i,Vr=/<|&#?\w+;/,zr=/<(?:script|style)/i,Kr=/<(?:script|object|embed|option|style)/i,qr=new RegExp("<(?:"+Or+")","i"),Wr=/checked\s*(?:[^=]|=\s*.checked.)/i,Xr=/\/(java|ecma)script/i,Yr=/^\s*<!(?:\[CDATA\[|\-\-)/,Jr={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]},$r=U(rr);Jr.optgroup=Jr.option,Jr.tbody=Jr.tfoot=Jr.colgroup=Jr.caption=Jr.thead,Jr.th=Jr.td,or.support.htmlSerialize||(Jr._default=[1,"div<div>","</div>"]),or.fn.extend({text:function text(er){return or.isFunction(er)?this.each((function(tr){var rr=or(this);rr.text(er.call(this,tr,rr.text()))})):"object"!=_typeof(er)&&er!==tr?this.empty().append((this[0]&&this[0].ownerDocument||rr).createTextNode(er)):or.text(this)},wrapAll:function wrapAll(er){if(or.isFunction(er))return this.each((function(tr){or(this).wrapAll(er.call(this,tr))}));if(this[0]){var tr=or(er,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&tr.insertBefore(this[0]),tr.map((function(){for(var er=this;er.firstChild&&1===er.firstChild.nodeType;)er=er.firstChild;return er})).append(this)}return this},wrapInner:function wrapInner(er){return or.isFunction(er)?this.each((function(tr){or(this).wrapInner(er.call(this,tr))})):this.each((function(){var tr=or(this),rr=tr.contents();rr.length?rr.wrapAll(er):tr.append(er)}))},wrap:function wrap(er){var tr=or.isFunction(er);return this.each((function(rr){or(this).wrapAll(tr?er.call(this,rr):er)}))},unwrap:function unwrap(){return this.parent().each((function(){or.nodeName(this,"body")||or(this).replaceWith(this.childNodes)})).end()},append:function append(){return this.domManip(arguments,!0,(function(er){1===this.nodeType&&this.appendChild(er)}))},prepend:function prepend(){return this.domManip(arguments,!0,(function(er){1===this.nodeType&&this.insertBefore(er,this.firstChild)}))},before:function before(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,(function(er){this.parentNode.insertBefore(er,this)}));if(arguments.length){var er=or.clean(arguments);return er.push.apply(er,this.toArray()),this.pushStack(er,"before",arguments)}},after:function after(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,(function(er){this.parentNode.insertBefore(er,this.nextSibling)}));if(arguments.length){var er=this.pushStack(this,"after",arguments);return er.push.apply(er,or.clean(arguments)),er}},remove:function remove(er,tr){for(var rr,nr=0;null!=(rr=this[nr]);nr++)er&&!or.filter(er,[rr]).length||(!tr&&1===rr.nodeType&&(or.cleanData(rr.getElementsByTagName("*")),or.cleanData([rr])),rr.parentNode&&rr.parentNode.removeChild(rr));return this},empty:function empty(){for(var er,tr=0;null!=(er=this[tr]);tr++)for(1===er.nodeType&&or.cleanData(er.getElementsByTagName("*"));er.firstChild;)er.removeChild(er.firstChild);return this},clone:function clone(er,tr){return er=null!=er&&er,tr=null==tr?er:tr,this.map((function(){return or.clone(this,er,tr)}))},html:function html(er){if(er===tr)return this[0]&&1===this[0].nodeType?this[0].innerHTML.replace(Qr,""):null;if("string"!=typeof er||zr.test(er)||!or.support.leadingWhitespace&&Dr.test(er)||Jr[(Hr.exec(er)||["",""])[1].toLowerCase()])or.isFunction(er)?this.each((function(tr){var rr=or(this);rr.html(er.call(this,tr,rr.html()))})):this.empty().append(er);else{er=er.replace(jr,"<$1></$2>");try{for(var rr=0,nr=this.length;rr<nr;rr++)1===this[rr].nodeType&&(or.cleanData(this[rr].getElementsByTagName("*")),this[rr].innerHTML=er)}catch(tr){this.empty().append(er)}}return this},replaceWith:function replaceWith(er){return this[0]&&this[0].parentNode?or.isFunction(er)?this.each((function(tr){var rr=or(this),nr=rr.html();rr.replaceWith(er.call(this,tr,nr))})):("string"!=typeof er&&(er=or(er).detach()),this.each((function(){var tr=this.nextSibling,rr=this.parentNode;or(this).remove(),tr?or(tr).before(er):or(rr).append(er)}))):this.length?this.pushStack(or(or.isFunction(er)?er():er),"replaceWith",er):this},detach:function detach(er){return this.remove(er,!0)},domManip:function domManip(er,rr,nr){var ir,ar,sr,lr,cr=er[0],ur=[];if(!or.support.checkClone&&3===arguments.length&&"string"==typeof cr&&Wr.test(cr))return this.each((function(){or(this).domManip(er,rr,nr,!0)}));if(or.isFunction(cr))return this.each((function(ir){var ar=or(this);er[0]=cr.call(this,ir,rr?ar.html():tr),ar.domManip(er,rr,nr)}));if(this[0]){if(lr=cr&&cr.parentNode,ar=1===(sr=(ir=or.support.parentNode&&lr&&11===lr.nodeType&&lr.childNodes.length===this.length?{fragment:lr}:or.buildFragment(er,this,ur)).fragment).childNodes.length?sr=sr.firstChild:sr.firstChild){rr=rr&&or.nodeName(ar,"tr");for(var dr=0,hr=this.length,pr=hr-1;dr<hr;dr++)nr.call(rr?bi(this[dr]):this[dr],ir.cacheable||hr>1&&dr<pr?or.clone(sr,!0,!0):sr)}ur.length&&or.each(ur,bp)}return this}}),or.buildFragment=function(er,tr,nr){var ir,ar,sr,lr,cr=er[0];return tr&&tr[0]&&(lr=tr[0].ownerDocument||tr[0]),lr.createDocumentFragment||(lr=rr),1===er.length&&"string"==typeof cr&&cr.length<512&&lr===rr&&"<"===cr.charAt(0)&&!Kr.test(cr)&&(or.support.checkClone||!Wr.test(cr))&&(or.support.html5Clone||!qr.test(cr))&&(ar=!0,(sr=or.fragments[cr])&&1!==sr&&(ir=sr)),ir||(ir=lr.createDocumentFragment(),or.clean(er,lr,ir,nr)),ar&&(or.fragments[cr]=sr?ir:1),{fragment:ir,cacheable:ar}},or.fragments={},or.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(er,tr){or.fn[er]=function(rr){var nr=[],ir=or(rr),ar=1===this.length&&this[0].parentNode;if(ar&&11===ar.nodeType&&1===ar.childNodes.length&&1===ir.length)return ir[tr](this[0]),this;for(var sr=0,lr=ir.length;sr<lr;sr++){var cr=(sr>0?this.clone(!0):this).get();or(ir[sr])[tr](cr),nr=nr.concat(cr)}return this.pushStack(nr,er,ir.selector)}})),or.extend({clone:function clone(er,tr,rr){var nr,ir,ar,sr=or.support.html5Clone||!qr.test("<"+er.nodeName)?er.cloneNode(!0):bo(er);if(!(or.support.noCloneEvent&&or.support.noCloneChecked||1!==er.nodeType&&11!==er.nodeType||or.isXMLDoc(er)))for(bk(er,sr),nr=bl(er),ir=bl(sr),ar=0;nr[ar];++ar)ir[ar]&&bk(nr[ar],ir[ar]);if(tr&&(bj(er,sr),rr))for(nr=bl(er),ir=bl(sr),ar=0;nr[ar];++ar)bj(nr[ar],ir[ar]);return nr=ir=null,sr},clean:function clean(er,tr,nr,ir){var ar;void 0===(tr=tr||rr).createElement&&(tr=tr.ownerDocument||tr[0]&&tr[0].ownerDocument||rr);for(var sr,lr,cr=[],ur=0;null!=(lr=er[ur]);ur++)if("number"==typeof lr&&(lr+=""),lr){if("string"==typeof lr)if(Vr.test(lr)){lr=lr.replace(jr,"<$1></$2>");var dr=(Hr.exec(lr)||["",""])[1].toLowerCase(),hr=Jr[dr]||Jr._default,pr=hr[0],Ar=tr.createElement("div");for(tr===rr?$r.appendChild(Ar):U(tr).appendChild(Ar),Ar.innerHTML=hr[1]+lr+hr[2];pr--;)Ar=Ar.lastChild;if(!or.support.tbody){var fr=Gr.test(lr),gr="table"!==dr||fr?"<table>"!==hr[1]||fr?[]:Ar.childNodes:Ar.firstChild&&Ar.firstChild.childNodes;for(sr=gr.length-1;sr>=0;--sr)or.nodeName(gr[sr],"tbody")&&!gr[sr].childNodes.length&&gr[sr].parentNode.removeChild(gr[sr])}!or.support.leadingWhitespace&&Dr.test(lr)&&Ar.insertBefore(tr.createTextNode(Dr.exec(lr)[0]),Ar.firstChild),lr=Ar.childNodes}else lr=tr.createTextNode(lr);var mr;if(!or.support.appendChecked)if(lr[0]&&"number"==typeof(mr=lr.length))for(sr=0;sr<mr;sr++)bn(lr[sr]);else bn(lr);lr.nodeType?cr.push(lr):cr=or.merge(cr,lr)}if(nr)for(ar=function g(er){return!er.type||Xr.test(er.type)},ur=0;cr[ur];ur++)if(!ir||!or.nodeName(cr[ur],"script")||cr[ur].type&&"text/javascript"!==cr[ur].type.toLowerCase()){if(1===cr[ur].nodeType){var _r=or.grep(cr[ur].getElementsByTagName("script"),ar);cr.splice.apply(cr,[ur+1,0].concat(_r))}nr.appendChild(cr[ur])}else ir.push(cr[ur].parentNode?cr[ur].parentNode.removeChild(cr[ur]):cr[ur]);return cr},cleanData:function cleanData(er){for(var tr,rr,nr,ir=or.cache,ar=or.event.special,sr=or.support.deleteExpando,lr=0;null!=(nr=er[lr]);lr++)if((!nr.nodeName||!or.noData[nr.nodeName.toLowerCase()])&&(rr=nr[or.expando])){if((tr=ir[rr])&&tr.events){for(var cr in tr.events)ar[cr]?or.event.remove(nr,cr):or.removeEvent(nr,cr,tr.handle);tr.handle&&(tr.handle.elem=null)}sr?delete nr[or.expando]:nr.removeAttribute&&nr.removeAttribute(or.expando),delete ir[rr]}}});var Zr,Tn,Un,Qn=/alpha\([^)]*\)/i,Dn=/opacity=([^)]*)/,Hn=/([A-Z]|^ms)/g,Gn=/^-?\d+(?:px)?$/i,Vn=/^-?\d/,zn=/^([\-+])=([\-+.\de]+)/,Kn={position:"absolute",visibility:"hidden",display:"block"},Wn=["Left","Right"],Xn=["Top","Bottom"];or.fn.css=function(er,rr){return 2===arguments.length&&rr===tr?this:or.access(this,er,rr,!0,(function(er,rr,nr){return nr!==tr?or.style(er,rr,nr):or.css(er,rr)}))},or.extend({cssHooks:{opacity:{get:function get(er,tr){if(tr){var rr=Zr(er,"opacity","opacity");return""===rr?"1":rr}return er.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:or.support.cssFloat?"cssFloat":"styleFloat"},style:function style(er,rr,nr,ir){if(er&&3!==er.nodeType&&8!==er.nodeType&&er.style){var ar,sr,lr=or.camelCase(rr),cr=er.style,ur=or.cssHooks[lr];if(rr=or.cssProps[lr]||lr,nr===tr)return ur&&"get"in ur&&(ar=ur.get(er,!1,ir))!==tr?ar:cr[rr];if("string"===(sr=_typeof(nr))&&(ar=zn.exec(nr))&&(nr=+(ar[1]+1)*+ar[2]+parseFloat(or.css(er,rr)),sr="number"),null==nr||"number"===sr&&isNaN(nr))return;if("number"===sr&&!or.cssNumber[lr]&&(nr+="px"),!ur||!("set"in ur)||(nr=ur.set(er,nr))!==tr)try{cr[rr]=nr}catch(er){}}},css:function css(er,rr,nr){var ir,ar;return rr=or.camelCase(rr),ar=or.cssHooks[rr],"cssFloat"===(rr=or.cssProps[rr]||rr)&&(rr="float"),ar&&"get"in ar&&(ir=ar.get(er,!0,nr))!==tr?ir:Zr?Zr(er,rr):void 0},swap:function swap(er,tr,rr){var nr={};for(var ir in tr)nr[ir]=er.style[ir],er.style[ir]=tr[ir];for(ir in rr.call(er),tr)er.style[ir]=nr[ir]}}),or.curCSS=or.css,or.each(["height","width"],(function(er,tr){or.cssHooks[tr]={get:function get(er,rr,nr){var ir;if(rr)return 0!==er.offsetWidth?bC(er,tr,nr):(or.swap(er,Kn,(function(){ir=bC(er,tr,nr)})),ir)},set:function set(er,tr){return Gn.test(tr)?(tr=parseFloat(tr))>=0?tr+"px":void 0:tr}}})),or.support.opacity||(or.cssHooks.opacity={get:function get(er,tr){return Dn.test((tr&&er.currentStyle?er.currentStyle.filter:er.style.filter)||"")?parseFloat(RegExp.$1)/100+"":tr?"1":""},set:function set(er,tr){var rr=er.style,nr=er.currentStyle,ir=or.isNumeric(tr)?"alpha(opacity="+100*tr+")":"",ar=nr&&nr.filter||rr.filter||"";rr.zoom=1,tr>=1&&""===or.trim(ar.replace(Qn,""))&&(rr.removeAttribute("filter"),nr&&!nr.filter)||(rr.filter=Qn.test(ar)?ar.replace(Qn,ir):ar+" "+ir)}}),or((function(){or.support.reliableMarginRight||(or.cssHooks.marginRight={get:function get(er,tr){var rr;return or.swap(er,{display:"inline-block"},(function(){rr=tr?Zr(er,"margin-right","marginRight"):er.style.marginRight})),rr}})})),rr.defaultView&&rr.defaultView.getComputedStyle&&(Tn=function bA(er,tr){var rr,nr,ir;return tr=tr.replace(Hn,"-$1").toLowerCase(),(nr=er.ownerDocument.defaultView)&&(ir=nr.getComputedStyle(er,null))&&(""===(rr=ir.getPropertyValue(tr))&&!or.contains(er.ownerDocument.documentElement,er)&&(rr=or.style(er,tr))),rr}),rr.documentElement.currentStyle&&(Un=function bB(er,tr){var rr,nr,ir,or=er.currentStyle&&er.currentStyle[tr],ar=er.style;return null===or&&ar&&(ir=ar[tr])&&(or=ir),!Gn.test(or)&&Vn.test(or)&&(rr=ar.left,(nr=er.runtimeStyle&&er.runtimeStyle.left)&&(er.runtimeStyle.left=er.currentStyle.left),ar.left="fontSize"===tr?"1em":or||0,or=ar.pixelLeft+"px",ar.left=rr,nr&&(er.runtimeStyle.left=nr)),""===or?"auto":or}),Zr=Tn||Un,or.expr&&or.expr.filters&&(or.expr.filters.hidden=function(er){var tr=er.offsetWidth,rr=er.offsetHeight;return 0===tr&&0===rr||!or.support.reliableHiddenOffsets&&"none"===(er.style&&er.style.display||or.css(er,"display"))},or.expr.filters.visible=function(er){return!or.expr.filters.hidden(er)});var Yn,Jn,$n=/%20/g,Zn=/\[\]$/,ei=/\r?\n/g,ti=/#.*$/,ri=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,ni=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,ii=/^(?:GET|HEAD)$/,oi=/^\/\//,ai=/\?/,si=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,li=/^(?:select|textarea)/i,ui=/\s+/,di=/([?&])_=[^&]*/,hi=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,pi=or.fn.load,Ai={},fi={},gi=["*/"]+["*"];try{Yn=ir.href}catch(er){(Yn=rr.createElement("a")).href="",Yn=Yn.href}Jn=hi.exec(Yn.toLowerCase())||[],or.fn.extend({load:function load(er,rr,nr){if("string"!=typeof er&&pi)return pi.apply(this,arguments);if(!this.length)return this;var ir=er.indexOf(" ");if(ir>=0){var ar=er.slice(ir,er.length);er=er.slice(0,ir)}var sr="GET";rr&&(or.isFunction(rr)?(nr=rr,rr=tr):"object"==_typeof(rr)&&(rr=or.param(rr,or.ajaxSettings.traditional),sr="POST"));var lr=this;return or.ajax({url:er,type:sr,dataType:"html",data:rr,complete:function complete(er,tr,rr){rr=er.responseText,er.isResolved()&&(er.done((function(er){rr=er})),lr.html(ar?or("<div>").append(rr.replace(si,"")).find(ar):rr)),nr&&lr.each(nr,[rr,tr,er])}}),this},serialize:function serialize(){return or.param(this.serializeArray())},serializeArray:function serializeArray(){return this.map((function(){return this.elements?or.makeArray(this.elements):this})).filter((function(){return this.name&&!this.disabled&&(this.checked||li.test(this.nodeName)||ni.test(this.type))})).map((function(er,tr){var rr=or(this).val();return null==rr?null:or.isArray(rr)?or.map(rr,(function(er,rr){return{name:tr.name,value:er.replace(ei,"\r\n")}})):{name:tr.name,value:rr.replace(ei,"\r\n")}})).get()}}),or.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),(function(er,tr){or.fn[tr]=function(er){return this.on(tr,er)}})),or.each(["get","post"],(function(er,rr){or[rr]=function(er,nr,ir,ar){return or.isFunction(nr)&&(ar=ar||ir,ir=nr,nr=tr),or.ajax({type:rr,url:er,data:nr,success:ir,dataType:ar})}})),or.extend({getScript:function getScript(er,rr){return or.get(er,tr,rr,"script")},getJSON:function getJSON(er,tr,rr){return or.get(er,tr,rr,"json")},ajaxSetup:function ajaxSetup(er,tr){return tr?b_(er,or.ajaxSettings):(tr=er,er=or.ajaxSettings),b_(er,tr),er},ajaxSettings:{url:Yn,isLocal:/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/.test(Jn[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":gi},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":er.String,"text html":!0,"text json":or.parseJSON,"text xml":or.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:bZ(Ai),ajaxTransport:bZ(fi),ajax:function ajax(er,rr){function w(er,rr,ar,cr){if(2!==yr){yr=2,lr&&clearTimeout(lr),sr=tr,ir=cr||"",br.readyState=er>0?4:0;var dr,_r,vr,wr,Sr,xr=rr,kr=ar?function cb(er,rr,nr){var ir,or,ar,sr,lr=er.contents,cr=er.dataTypes,ur=er.responseFields;for(or in ur)or in nr&&(rr[ur[or]]=nr[or]);for(;"*"===cr[0];)cr.shift(),ir===tr&&(ir=er.mimeType||rr.getResponseHeader("content-type"));if(ir)for(or in lr)if(lr[or]&&lr[or].test(ir)){cr.unshift(or);break}if(cr[0]in nr)ar=cr[0];else{for(or in nr){if(!cr[0]||er.converters[or+" "+cr[0]]){ar=or;break}sr||(sr=or)}ar=ar||sr}if(ar)return ar!==cr[0]&&cr.unshift(ar),nr[ar]}(hr,br,ar):tr;if(er>=200&&er<300||304===er)if(hr.ifModified&&((wr=br.getResponseHeader("Last-Modified"))&&(or.lastModified[nr]=wr),(Sr=br.getResponseHeader("Etag"))&&(or.etag[nr]=Sr)),304===er)xr="notmodified",dr=!0;else try{_r=function cc(er,rr){er.dataFilter&&(rr=er.dataFilter(rr,er.dataType));var nr,ir,ar,sr,lr,cr,ur,dr,hr=er.dataTypes,pr={},Ar=hr.length,fr=hr[0];for(nr=1;nr<Ar;nr++){if(1===nr)for(ir in er.converters)"string"==typeof ir&&(pr[ir.toLowerCase()]=er.converters[ir]);if(sr=fr,"*"===(fr=hr[nr]))fr=sr;else if("*"!==sr&&sr!==fr){if(!(cr=pr[lr=sr+" "+fr]||pr["* "+fr]))for(ur in dr=tr,pr)if(((ar=ur.split(" "))[0]===sr||"*"===ar[0])&&(dr=pr[ar[1]+" "+fr])){!0===(ur=pr[ur])?cr=dr:!0===dr&&(cr=ur);break}!cr&&!dr&&or.error("No conversion from "+lr.replace(" "," to ")),!0!==cr&&(rr=cr?cr(rr):dr(ur(rr)))}}return rr}(hr,kr),xr="success",dr=!0}catch(er){xr="parsererror",vr=er}else vr=xr,xr&&!er||(xr="error",er<0&&(er=0));br.status=er,br.statusText=""+(rr||xr),dr?fr.resolveWith(pr,[_r,xr,br]):fr.rejectWith(pr,[br,xr,vr]),br.statusCode(mr),mr=tr,ur&&Ar.trigger("ajax"+(dr?"Success":"Error"),[br,hr,dr?_r:vr]),gr.fireWith(pr,[br,xr]),ur&&(Ar.trigger("ajaxComplete",[br,hr]),--or.active||or.event.trigger("ajaxStop"))}}"object"==_typeof(er)&&(rr=er,er=tr),rr=rr||{};var nr,ir,ar,sr,lr,cr,ur,dr,hr=or.ajaxSetup({},rr),pr=hr.context||hr,Ar=pr!==hr&&(pr.nodeType||pr instanceof or)?or(pr):or.event,fr=or.Deferred(),gr=or.Callbacks("once memory"),mr=hr.statusCode||{},_r={},vr={},yr=0,br={readyState:0,setRequestHeader:function setRequestHeader(er,tr){if(!yr){var rr=er.toLowerCase();er=vr[rr]=vr[rr]||er,_r[er]=tr}return this},getAllResponseHeaders:function getAllResponseHeaders(){return 2===yr?ir:null},getResponseHeader:function getResponseHeader(er){var rr;if(2===yr){if(!ar)for(ar={};rr=ri.exec(ir);)ar[rr[1].toLowerCase()]=rr[2];rr=ar[er.toLowerCase()]}return rr===tr?null:rr},overrideMimeType:function overrideMimeType(er){return yr||(hr.mimeType=er),this},abort:function abort(er){return er=er||"abort",sr&&sr.abort(er),w(0,er),this}};if(fr.promise(br),br.success=br.done,br.error=br.fail,br.complete=gr.add,br.statusCode=function(er){var tr;if(er)if(yr<2)for(tr in er)mr[tr]=[mr[tr],er[tr]];else tr=er[br.status],br.then(tr,tr);return this},hr.url=((er||hr.url)+"").replace(ti,"").replace(oi,Jn[1]+"//"),hr.dataTypes=or.trim(hr.dataType||"*").toLowerCase().split(ui),null==hr.crossDomain&&(cr=hi.exec(hr.url.toLowerCase()),hr.crossDomain=!(!cr||cr[1]==Jn[1]&&cr[2]==Jn[2]&&(cr[3]||("http:"===cr[1]?80:443))==(Jn[3]||("http:"===Jn[1]?80:443)))),hr.data&&hr.processData&&"string"!=typeof hr.data&&(hr.data=or.param(hr.data,hr.traditional)),b$(Ai,hr,rr,br),2===yr)return!1;if(ur=hr.global,hr.type=hr.type.toUpperCase(),hr.hasContent=!ii.test(hr.type),ur&&0==or.active++&&or.event.trigger("ajaxStart"),!hr.hasContent&&(hr.data&&(hr.url+=(ai.test(hr.url)?"&":"?")+hr.data,delete hr.data),nr=hr.url,!1===hr.cache)){var wr=or.now(),Sr=hr.url.replace(di,"$1_="+wr);hr.url=Sr+(Sr===hr.url?(ai.test(hr.url)?"&":"?")+"_="+wr:"")}for(dr in(hr.data&&hr.hasContent&&!1!==hr.contentType||rr.contentType)&&br.setRequestHeader("Content-Type",hr.contentType),hr.ifModified&&(nr=nr||hr.url,or.lastModified[nr]&&br.setRequestHeader("If-Modified-Since",or.lastModified[nr]),or.etag[nr]&&br.setRequestHeader("If-None-Match",or.etag[nr])),br.setRequestHeader("Accept",hr.dataTypes[0]&&hr.accepts[hr.dataTypes[0]]?hr.accepts[hr.dataTypes[0]]+("*"!==hr.dataTypes[0]?", "+gi+"; q=0.01":""):hr.accepts["*"]),hr.headers)br.setRequestHeader(dr,hr.headers[dr]);if(hr.beforeSend&&(!1===hr.beforeSend.call(pr,br,hr)||2===yr))return br.abort(),!1;for(dr in{success:1,error:1,complete:1})br[dr](hr[dr]);if(sr=b$(fi,hr,rr,br)){br.readyState=1,ur&&Ar.trigger("ajaxSend",[br,hr]),hr.async&&hr.timeout>0&&(lr=setTimeout((function(){br.abort("timeout")}),hr.timeout));try{yr=1,sr.send(_r,w)}catch(er){if(!(yr<2))throw er;w(-1,er)}}else w(-1,"No Transport");return br},param:function param(er,rr){var nr=[],ir=function e(er,tr){tr=or.isFunction(tr)?tr():tr,nr[nr.length]=encodeURIComponent(er)+"="+encodeURIComponent(tr)};if(rr===tr&&(rr=or.ajaxSettings.traditional),or.isArray(er)||er.jquery&&!or.isPlainObject(er))or.each(er,(function(){ir(this.name,this.value)}));else for(var ar in er)ca(ar,er[ar],rr,ir);return nr.join("&").replace($n,"+")}}),or.extend({active:0,lastModified:{},etag:{}});var mi=or.now(),_i=/(\=)\?(&|$)|\?\?/i;or.ajaxSetup({jsonp:"callback",jsonpCallback:function jsonpCallback(){return or.expando+"_"+mi++}}),or.ajaxPrefilter("json jsonp",(function(tr,rr,nr){var ir="application/x-www-form-urlencoded"===tr.contentType&&"string"==typeof tr.data;if("jsonp"===tr.dataTypes[0]||!1!==tr.jsonp&&(_i.test(tr.url)||ir&&_i.test(tr.data))){var ar,sr=tr.jsonpCallback=or.isFunction(tr.jsonpCallback)?tr.jsonpCallback():tr.jsonpCallback,lr=er[sr],cr=tr.url,ur=tr.data,dr="$1"+sr+"$2";return!1!==tr.jsonp&&(cr=cr.replace(_i,dr),tr.url===cr&&(ir&&(ur=ur.replace(_i,dr)),tr.data===ur&&(cr+=(/\?/.test(cr)?"&":"?")+tr.jsonp+"="+sr))),tr.url=cr,tr.data=ur,er[sr]=function(er){ar=[er]},nr.always((function(){er[sr]=lr,ar&&or.isFunction(lr)&&er[sr](ar[0])})),tr.converters["script json"]=function(){return ar||or.error(sr+" was not called"),ar[0]},tr.dataTypes[0]="json","script"}})),or.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function textScript(er){return or.globalEval(er),er}}}),or.ajaxPrefilter("script",(function(er){er.cache===tr&&(er.cache=!1),er.crossDomain&&(er.type="GET",er.global=!1)})),or.ajaxTransport("script",(function(er){if(er.crossDomain){var nr,ir=rr.head||rr.getElementsByTagName("head")[0]||rr.documentElement;return{send:function send(or,ar){(nr=rr.createElement("script")).async="async",er.scriptCharset&&(nr.charset=er.scriptCharset),nr.src=er.url,nr.onload=nr.onreadystatechange=function(er,rr){(rr||!nr.readyState||/loaded|complete/.test(nr.readyState))&&(nr.onload=nr.onreadystatechange=null,ir&&nr.parentNode&&ir.removeChild(nr),nr=tr,rr||ar(200,"success"))},ir.insertBefore(nr,ir.firstChild)},abort:function abort(){nr&&nr.onload(0,1)}}}}));var vi,yi=!!er.ActiveXObject&&function(){for(var er in vi)vi[er](0,1)},wi=0;or.ajaxSettings.xhr=er.ActiveXObject?function(){return!this.isLocal&&ci()||function cj(){try{return new er.ActiveXObject("Microsoft.XMLHTTP")}catch(er){}}()}:ci,function(er){or.extend(or.support,{ajax:!!er,cors:!!er&&"withCredentials"in er})}(or.ajaxSettings.xhr()),or.support.ajax&&or.ajaxTransport((function(rr){var nr;if(!rr.crossDomain||or.support.cors)return{send:function send(ir,ar){var sr,lr,cr=rr.xhr();if(rr.username?cr.open(rr.type,rr.url,rr.async,rr.username,rr.password):cr.open(rr.type,rr.url,rr.async),rr.xhrFields)for(lr in rr.xhrFields)cr[lr]=rr.xhrFields[lr];rr.mimeType&&cr.overrideMimeType&&cr.overrideMimeType(rr.mimeType),!rr.crossDomain&&!ir["X-Requested-With"]&&(ir["X-Requested-With"]="XMLHttpRequest");try{for(lr in ir)cr.setRequestHeader(lr,ir[lr])}catch(er){}cr.send(rr.hasContent&&rr.data||null),nr=function d(er,ir){var lr,ur,dr,hr,pr;try{if(nr&&(ir||4===cr.readyState))if(nr=tr,sr&&(cr.onreadystatechange=or.noop,yi&&delete vi[sr]),ir)4!==cr.readyState&&cr.abort();else{lr=cr.status,dr=cr.getAllResponseHeaders(),hr={},(pr=cr.responseXML)&&pr.documentElement&&(hr.xml=pr),hr.text=cr.responseText;try{ur=cr.statusText}catch(er){ur=""}lr||!rr.isLocal||rr.crossDomain?1223===lr&&(lr=204):lr=hr.text?200:404}}catch(er){ir||ar(-1,er)}hr&&ar(lr,ur,hr,dr)},rr.async&&4!==cr.readyState?(sr=++wi,yi&&(vi||(vi={},or(er).unload(yi)),vi[sr]=nr),cr.onreadystatechange=nr):nr()},abort:function abort(){nr&&nr(0,1)}}}));var Si,xi,ki,Ci,Bi={},Ei=/^(?:toggle|show|hide)$/,Ni=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,Li=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];or.fn.extend({show:function show(er,tr,rr){var nr,ir;if(er||0===er)return this.animate(cu("show",3),er,tr,rr);for(var ar=0,sr=this.length;ar<sr;ar++)(nr=this[ar]).style&&(ir=nr.style.display,!or._data(nr,"olddisplay")&&"none"===ir&&(ir=nr.style.display=""),""===ir&&"none"===or.css(nr,"display")&&or._data(nr,"olddisplay",cv(nr.nodeName)));for(ar=0;ar<sr;ar++)(nr=this[ar]).style&&(""!==(ir=nr.style.display)&&"none"!==ir||(nr.style.display=or._data(nr,"olddisplay")||""));return this},hide:function hide(er,tr,rr){if(er||0===er)return this.animate(cu("hide",3),er,tr,rr);for(var nr,ir,ar=0,sr=this.length;ar<sr;ar++)(nr=this[ar]).style&&("none"!==(ir=or.css(nr,"display"))&&!or._data(nr,"olddisplay")&&or._data(nr,"olddisplay",ir));for(ar=0;ar<sr;ar++)this[ar].style&&(this[ar].style.display="none");return this},_toggle:or.fn.toggle,toggle:function toggle(er,tr,rr){var nr="boolean"==typeof er;return or.isFunction(er)&&or.isFunction(tr)?this._toggle.apply(this,arguments):null==er||nr?this.each((function(){var tr=nr?er:or(this).is(":hidden");or(this)[tr?"show":"hide"]()})):this.animate(cu("toggle",3),er,tr,rr),this},fadeTo:function fadeTo(er,tr,rr,nr){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:tr},er,rr,nr)},animate:function animate(er,tr,rr,nr){function g(){!1===ir.queue&&or._mark(this);var tr,rr,nr,ar,sr,lr,cr,ur,dr,hr=or.extend({},ir),pr=1===this.nodeType,Ar=pr&&or(this).is(":hidden");for(nr in hr.animatedProperties={},er){if(nr!==(tr=or.camelCase(nr))&&(er[tr]=er[nr],delete er[nr]),rr=er[tr],or.isArray(rr)?(hr.animatedProperties[tr]=rr[1],rr=er[tr]=rr[0]):hr.animatedProperties[tr]=hr.specialEasing&&hr.specialEasing[tr]||hr.easing||"swing","hide"===rr&&Ar||"show"===rr&&!Ar)return hr.complete.call(this);pr&&("height"===tr||"width"===tr)&&(hr.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY],"inline"===or.css(this,"display")&&"none"===or.css(this,"float")&&(or.support.inlineBlockNeedsLayout&&"inline"!==cv(this.nodeName)?this.style.zoom=1:this.style.display="inline-block"))}for(nr in null!=hr.overflow&&(this.style.overflow="hidden"),er)ar=new or.fx(this,hr,nr),rr=er[nr],Ei.test(rr)?(dr=or._data(this,"toggle"+nr)||("toggle"===rr?Ar?"show":"hide":0))?(or._data(this,"toggle"+nr,"show"===dr?"hide":"show"),ar[dr]()):ar[rr]():(sr=Ni.exec(rr),lr=ar.cur(),sr?(cr=parseFloat(sr[2]),"px"!==(ur=sr[3]||(or.cssNumber[nr]?"":"px"))&&(or.style(this,nr,(cr||1)+ur),lr=(cr||1)/ar.cur()*lr,or.style(this,nr,lr+ur)),sr[1]&&(cr=("-="===sr[1]?-1:1)*cr+lr),ar.custom(lr,cr,ur)):ar.custom(lr,rr,""));return!0}var ir=or.speed(tr,rr,nr);return or.isEmptyObject(er)?this.each(ir.complete,[!1]):(er=or.extend({},er),!1===ir.queue?this.each(g):this.queue(ir.queue,g))},stop:function stop(er,rr,nr){return"string"!=typeof er&&(nr=rr,rr=er,er=tr),rr&&!1!==er&&this.queue(er||"fx",[]),this.each((function(){function h(er,tr,rr){var ir=tr[rr];or.removeData(er,rr,!0),ir.stop(nr)}var tr,rr=!1,ir=or.timers,ar=or._data(this);if(nr||or._unmark(!0,this),null==er)for(tr in ar)ar[tr]&&ar[tr].stop&&tr.indexOf(".run")===tr.length-4&&h(this,ar,tr);else ar[tr=er+".run"]&&ar[tr].stop&&h(this,ar,tr);for(tr=ir.length;tr--;)ir[tr].elem===this&&(null==er||ir[tr].queue===er)&&(nr?ir[tr](!0):ir[tr].saveState(),rr=!0,ir.splice(tr,1));(!nr||!rr)&&or.dequeue(this,er)}))}}),or.each({slideDown:cu("show",1),slideUp:cu("hide",1),slideToggle:cu("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(er,tr){or.fn[er]=function(er,rr,nr){return this.animate(tr,er,rr,nr)}})),or.extend({speed:function speed(er,tr,rr){var nr=er&&"object"==_typeof(er)?or.extend({},er):{complete:rr||!rr&&tr||or.isFunction(er)&&er,duration:er,easing:rr&&tr||tr&&!or.isFunction(tr)&&tr};return nr.duration=or.fx.off?0:"number"==typeof nr.duration?nr.duration:nr.duration in or.fx.speeds?or.fx.speeds[nr.duration]:or.fx.speeds._default,null!=nr.queue&&!0!==nr.queue||(nr.queue="fx"),nr.old=nr.complete,nr.complete=function(er){or.isFunction(nr.old)&&nr.old.call(this),nr.queue?or.dequeue(this,nr.queue):!1!==er&&or._unmark(this)},nr},easing:{linear:function linear(er,tr,rr,nr){return rr+nr*er},swing:function swing(er,tr,rr,nr){return(-Math.cos(er*Math.PI)/2+.5)*nr+rr}},timers:[],fx:function fx(er,tr,rr){this.options=tr,this.elem=er,this.prop=rr,tr.orig=tr.orig||{}}}),or.fx.prototype={update:function update(){this.options.step&&this.options.step.call(this.elem,this.now,this),(or.fx.step[this.prop]||or.fx.step._default)(this)},cur:function cur(){if(null!=this.elem[this.prop]&&(!this.elem.style||null==this.elem.style[this.prop]))return this.elem[this.prop];var er,tr=or.css(this.elem,this.prop);return isNaN(er=parseFloat(tr))?tr&&"auto"!==tr?tr:0:er},custom:function custom(er,rr,nr){function h(er){return ir.step(er)}var ir=this,ar=or.fx;this.startTime=Ci||cs(),this.end=rr,this.now=this.start=er,this.pos=this.state=0,this.unit=nr||this.unit||(or.cssNumber[this.prop]?"":"px"),h.queue=this.options.queue,h.elem=this.elem,h.saveState=function(){ir.options.hide&&or._data(ir.elem,"fxshow"+ir.prop)===tr&&or._data(ir.elem,"fxshow"+ir.prop,ir.start)},h()&&or.timers.push(h)&&!ki&&(ki=setInterval(ar.tick,ar.interval))},show:function show(){var er=or._data(this.elem,"fxshow"+this.prop);this.options.orig[this.prop]=er||or.style(this.elem,this.prop),this.options.show=!0,er!==tr?this.custom(this.cur(),er):this.custom("width"===this.prop||"height"===this.prop?1:0,this.cur()),or(this.elem).show()},hide:function hide(){this.options.orig[this.prop]=or._data(this.elem,"fxshow"+this.prop)||or.style(this.elem,this.prop),this.options.hide=!0,this.custom(this.cur(),0)},step:function step(er){var tr,rr,nr,ir=Ci||cs(),ar=!0,sr=this.elem,lr=this.options;if(er||ir>=lr.duration+this.startTime){for(tr in this.now=this.end,this.pos=this.state=1,this.update(),lr.animatedProperties[this.prop]=!0,lr.animatedProperties)!0!==lr.animatedProperties[tr]&&(ar=!1);if(ar){if(null!=lr.overflow&&!or.support.shrinkWrapBlocks&&or.each(["","X","Y"],(function(er,tr){sr.style["overflow"+tr]=lr.overflow[er]})),lr.hide&&or(sr).hide(),lr.hide||lr.show)for(tr in lr.animatedProperties)or.style(sr,tr,lr.orig[tr]),or.removeData(sr,"fxshow"+tr,!0),or.removeData(sr,"toggle"+tr,!0);(nr=lr.complete)&&(lr.complete=!1,nr.call(sr))}return!1}return lr.duration==1/0?this.now=ir:(rr=ir-this.startTime,this.state=rr/lr.duration,this.pos=or.easing[lr.animatedProperties[this.prop]](this.state,rr,0,1,lr.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update(),!0}},or.extend(or.fx,{tick:function tick(){for(var er,tr=or.timers,rr=0;rr<tr.length;rr++)!(er=tr[rr])()&&tr[rr]===er&&tr.splice(rr--,1);tr.length||or.fx.stop()},interval:13,stop:function stop(){clearInterval(ki),ki=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function opacity(er){or.style(er.elem,"opacity",er.now)},_default:function _default(er){er.elem.style&&null!=er.elem.style[er.prop]?er.elem.style[er.prop]=er.now+er.unit:er.elem[er.prop]=er.now}}}),or.each(["width","height"],(function(er,tr){or.fx.step[tr]=function(er){or.style(er.elem,tr,Math.max(0,er.now)+er.unit)}})),or.expr&&or.expr.filters&&(or.expr.filters.animated=function(er){return or.grep(or.timers,(function(tr){return er===tr.elem})).length});var Ti=/^t(?:able|d|h)$/i,Pi=/^(?:body|html)$/i;"getBoundingClientRect"in rr.documentElement?or.fn.offset=function(er){var tr,rr=this[0];if(er)return this.each((function(tr){or.offset.setOffset(this,er,tr)}));if(!rr||!rr.ownerDocument)return null;if(rr===rr.ownerDocument.body)return or.offset.bodyOffset(rr);try{tr=rr.getBoundingClientRect()}catch(er){}var nr=rr.ownerDocument,ir=nr.documentElement;if(!tr||!or.contains(ir,rr))return tr?{top:tr.top,left:tr.left}:{top:0,left:0};var ar=nr.body,sr=cy(nr),lr=ir.clientTop||ar.clientTop||0,cr=ir.clientLeft||ar.clientLeft||0,ur=sr.pageYOffset||or.support.boxModel&&ir.scrollTop||ar.scrollTop,dr=sr.pageXOffset||or.support.boxModel&&ir.scrollLeft||ar.scrollLeft;return{top:tr.top+ur-lr,left:tr.left+dr-cr}}:or.fn.offset=function(er){var tr=this[0];if(er)return this.each((function(tr){or.offset.setOffset(this,er,tr)}));if(!tr||!tr.ownerDocument)return null;if(tr===tr.ownerDocument.body)return or.offset.bodyOffset(tr);for(var rr,nr=tr.offsetParent,ir=tr.ownerDocument,ar=ir.documentElement,sr=ir.body,lr=ir.defaultView,cr=lr?lr.getComputedStyle(tr,null):tr.currentStyle,ur=tr.offsetTop,dr=tr.offsetLeft;(tr=tr.parentNode)&&tr!==sr&&tr!==ar&&(!or.support.fixedPosition||"fixed"!==cr.position);)rr=lr?lr.getComputedStyle(tr,null):tr.currentStyle,ur-=tr.scrollTop,dr-=tr.scrollLeft,tr===nr&&(ur+=tr.offsetTop,dr+=tr.offsetLeft,or.support.doesNotAddBorder&&(!or.support.doesAddBorderForTableAndCells||!Ti.test(tr.nodeName))&&(ur+=parseFloat(rr.borderTopWidth)||0,dr+=parseFloat(rr.borderLeftWidth)||0),nr=tr.offsetParent),or.support.subtractsBorderForOverflowNotVisible&&"visible"!==rr.overflow&&(ur+=parseFloat(rr.borderTopWidth)||0,dr+=parseFloat(rr.borderLeftWidth)||0),cr=rr;return"relative"!==cr.position&&"static"!==cr.position||(ur+=sr.offsetTop,dr+=sr.offsetLeft),or.support.fixedPosition&&"fixed"===cr.position&&(ur+=Math.max(ar.scrollTop,sr.scrollTop),dr+=Math.max(ar.scrollLeft,sr.scrollLeft)),{top:ur,left:dr}},or.offset={bodyOffset:function bodyOffset(er){var tr=er.offsetTop,rr=er.offsetLeft;return or.support.doesNotIncludeMarginInBodyOffset&&(tr+=parseFloat(or.css(er,"marginTop"))||0,rr+=parseFloat(or.css(er,"marginLeft"))||0),{top:tr,left:rr}},setOffset:function setOffset(er,tr,rr){var nr=or.css(er,"position");"static"===nr&&(er.style.position="relative");var ir,ar,sr=or(er),lr=sr.offset(),cr=or.css(er,"top"),ur=or.css(er,"left"),dr={},hr={};("absolute"===nr||"fixed"===nr)&&or.inArray("auto",[cr,ur])>-1?(ir=(hr=sr.position()).top,ar=hr.left):(ir=parseFloat(cr)||0,ar=parseFloat(ur)||0),or.isFunction(tr)&&(tr=tr.call(er,rr,lr)),null!=tr.top&&(dr.top=tr.top-lr.top+ir),null!=tr.left&&(dr.left=tr.left-lr.left+ar),"using"in tr?tr.using.call(er,dr):sr.css(dr)}},or.fn.extend({position:function position(){if(!this[0])return null;var er=this[0],tr=this.offsetParent(),rr=this.offset(),nr=Pi.test(tr[0].nodeName)?{top:0,left:0}:tr.offset();return rr.top-=parseFloat(or.css(er,"marginTop"))||0,rr.left-=parseFloat(or.css(er,"marginLeft"))||0,nr.top+=parseFloat(or.css(tr[0],"borderTopWidth"))||0,nr.left+=parseFloat(or.css(tr[0],"borderLeftWidth"))||0,{top:rr.top-nr.top,left:rr.left-nr.left}},offsetParent:function offsetParent(){return this.map((function(){for(var er=this.offsetParent||rr.body;er&&!Pi.test(er.nodeName)&&"static"===or.css(er,"position");)er=er.offsetParent;return er}))}}),or.each(["Left","Top"],(function(er,rr){var nr="scroll"+rr;or.fn[nr]=function(rr){var ir,ar;return rr===tr?(ir=this[0])?(ar=cy(ir))?"pageXOffset"in ar?ar[er?"pageYOffset":"pageXOffset"]:or.support.boxModel&&ar.document.documentElement[nr]||ar.document.body[nr]:ir[nr]:null:this.each((function(){(ar=cy(this))?ar.scrollTo(er?or(ar).scrollLeft():rr,er?rr:or(ar).scrollTop()):this[nr]=rr}))}})),or.each(["Height","Width"],(function(er,rr){var nr=rr.toLowerCase();or.fn["inner"+rr]=function(){var er=this[0];return er?er.style?parseFloat(or.css(er,nr,"padding")):this[nr]():null},or.fn["outer"+rr]=function(er){var tr=this[0];return tr?tr.style?parseFloat(or.css(tr,nr,er?"margin":"border")):this[nr]():null},or.fn[nr]=function(er){var ir=this[0];if(!ir)return null==er?null:this;if(or.isFunction(er))return this.each((function(tr){var rr=or(this);rr[nr](er.call(this,tr,rr[nr]()))}));if(or.isWindow(ir)){var ar=ir.document.documentElement["client"+rr],sr=ir.document.body;return"CSS1Compat"===ir.document.compatMode&&ar||sr&&sr["client"+rr]||ar}if(9===ir.nodeType)return Math.max(ir.documentElement["client"+rr],ir.body["scroll"+rr],ir.documentElement["scroll"+rr],ir.body["offset"+rr],ir.documentElement["offset"+rr]);if(er===tr){var lr=or.css(ir,nr),cr=parseFloat(lr);return or.isNumeric(cr)?cr:lr}return this.css(nr,"string"==typeof er?er:er+"px")}})),er.jQuery=er.$=or,"function"==typeof define&&define.amd&&define.amd.jQuery&&define("jquery",[],(function(){return or}))}(window);var Sa,xa,ka,Ca={},Ba=!fails((function(){function F(){}return F.prototype.constructor=null,Object.getPrototypeOf(new F)!==F.prototype})),Ea=sharedKey("IE_PROTO"),Na=Object.prototype,La=Ba?Object.getPrototypeOf:function(er){return er=toObject(er),has(er,Ea)?er[Ea]:"function"==typeof er.constructor&&er instanceof er.constructor?er.constructor.prototype:er instanceof Object?Na:null},Ta=wellKnownSymbol("iterator"),Pa=!1;[].keys&&("next"in(ka=[].keys())?(xa=La(La(ka)))!==Object.prototype&&(Sa=xa):Pa=!0),null==Sa&&(Sa={}),has(Sa,Ta)||mr(Sa,Ta,(function(){return this}));var Fa={IteratorPrototype:Sa,BUGGY_SAFARI_ITERATORS:Pa},Ua=gr.f,Ia=wellKnownSymbol("toStringTag"),setToStringTag=function(er,tr,rr){er&&!has(er=rr?er:er.prototype,Ia)&&Ua(er,Ia,{configurable:!0,value:tr})},Ra=Fa.IteratorPrototype,returnThis$1=function(){return this},createIteratorConstructor=function(er,tr,rr){var nr=tr+" Iterator";return er.prototype=wi(Ra,{next:createPropertyDescriptor(1,rr)}),setToStringTag(er,nr,!1),Ca[nr]=returnThis$1,er},Ma=Fa.IteratorPrototype,Oa=Fa.BUGGY_SAFARI_ITERATORS,Qa=wellKnownSymbol("iterator"),returnThis$2=function(){return this},defineIterator=function(er,tr,rr,nr,ir,or,ar){createIteratorConstructor(rr,tr,nr);var sr,lr,cr,getIterationMethod=function(er){if(er===ir&&Ar)return Ar;if(!Oa&&er in hr)return hr[er];switch(er){case"keys":return function keys(){return new rr(this,er)};case"values":return function values(){return new rr(this,er)};case"entries":return function entries(){return new rr(this,er)}}return function(){return new rr(this)}},ur=tr+" Iterator",dr=!1,hr=er.prototype,pr=hr[Qa]||hr["@@iterator"]||ir&&hr[ir],Ar=!Oa&&pr||getIterationMethod(ir),fr="Array"==tr&&hr.entries||pr;if(fr&&(sr=La(fr.call(new er)),Ma!==Object.prototype&&sr.next&&(La(sr)!==Ma&&(No?No(sr,Ma):"function"!=typeof sr[Qa]&&mr(sr,Qa,returnThis$2)),setToStringTag(sr,ur,!0))),"values"==ir&&pr&&"values"!==pr.name&&(dr=!0,Ar=function values(){return pr.call(this)}),hr[Qa]!==Ar&&mr(hr,Qa,Ar),Ca[tr]=Ar,ir)if(lr={values:getIterationMethod("values"),keys:or?Ar:getIterationMethod("keys"),entries:getIterationMethod("entries")},ar)for(cr in lr)(Oa||dr||!(cr in hr))&&Dr(hr,cr,lr[cr]);else _export({target:tr,proto:!0,forced:Oa||dr},lr);return lr},Da=Qr.set,ja=Qr.getterFor("Array Iterator"),Ha=defineIterator(Array,"Array",(function(er,tr){Da(this,{type:"Array Iterator",target:toIndexedObject(er),index:0,kind:tr})}),(function(){var er=ja(this),tr=er.target,rr=er.kind,nr=er.index++;return!tr||nr>=tr.length?(er.target=void 0,{value:void 0,done:!0}):"keys"==rr?{value:nr,done:!1}:"values"==rr?{value:tr[nr],done:!1}:{value:[nr,tr[nr]],done:!1}}),"values");Ca.Arguments=Ca.Array,addToUnscopables("keys"),addToUnscopables("values"),addToUnscopables("entries");var Ga=[].slice,Va={},construct=function(er,tr,rr){if(!(tr in Va)){for(var nr=[],ir=0;ir<tr;ir++)nr[ir]="a["+ir+"]";Va[tr]=Function("C,a","return new C("+nr.join(",")+")")}return Va[tr](er,rr)},za=Function.bind||function bind(er){var tr=aFunction$1(this),rr=Ga.call(arguments,1),nr=function bound(){var ir=rr.concat(Ga.call(arguments));return this instanceof nr?construct(tr,ir.length,ir):tr.apply(er,ir)};return isObject(tr.prototype)&&(nr.prototype=tr.prototype),nr};_export({target:"Function",proto:!0},{bind:za});var Ka="".repeat||function repeat(er){var tr=String(requireObjectCoercible(this)),rr="",nr=toInteger(er);if(nr<0||nr==1/0)throw RangeError("Wrong number of repetitions");for(;nr>0;(nr>>>=1)&&(tr+=tr))1&nr&&(rr+=tr);return rr},qa=1..toFixed,Wa=Math.floor,pow=function(er,tr,rr){return 0===tr?rr:tr%2==1?pow(er,tr-1,rr*er):pow(er*er,tr/2,rr)},Xa=qa&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!fails((function(){qa.call({})}));_export({target:"Number",proto:!0,forced:Xa},{toFixed:function toFixed(er){var tr,rr,nr,ir,or=function(er){if("number"!=typeof er&&"Number"!=classofRaw(er))throw TypeError("Incorrect invocation");return+er}(this),ar=toInteger(er),sr=[0,0,0,0,0,0],lr="",cr="0",multiply=function(er,tr){for(var rr=-1,nr=tr;++rr<6;)nr+=er*sr[rr],sr[rr]=nr%1e7,nr=Wa(nr/1e7)},divide=function(er){for(var tr=6,rr=0;--tr>=0;)rr+=sr[tr],sr[tr]=Wa(rr/er),rr=rr%er*1e7},dataToString=function(){for(var er=6,tr="";--er>=0;)if(""!==tr||0===er||0!==sr[er]){var rr=String(sr[er]);tr=""===tr?rr:tr+Ka.call("0",7-rr.length)+rr}return tr};if(ar<0||ar>20)throw RangeError("Incorrect fraction digits");if(or!=or)return"NaN";if(or<=-1e21||or>=1e21)return String(or);if(or<0&&(lr="-",or=-or),or>1e-21)if(rr=(tr=function(er){for(var tr=0,rr=er;rr>=4096;)tr+=12,rr/=4096;for(;rr>=2;)tr+=1,rr/=2;return tr}(or*pow(2,69,1))-69)<0?or*pow(2,-tr,1):or/pow(2,tr,1),rr*=4503599627370496,(tr=52-tr)>0){for(multiply(0,rr),nr=ar;nr>=7;)multiply(1e7,0),nr-=7;for(multiply(pow(10,nr,1),0),nr=tr-1;nr>=23;)divide(1<<23),nr-=23;divide(1<<nr),multiply(1,1),divide(2),cr=dataToString()}else multiply(0,rr),multiply(1<<-tr,0),cr=dataToString()+Ka.call("0",ar);return cr=ar>0?lr+((ir=cr.length)<=ar?"0."+Ka.call("0",ar-ir)+cr:cr.slice(0,ir-ar)+"."+cr.slice(ir-ar)):lr+cr}});var Ya={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Ja=wellKnownSymbol("iterator"),$a=wellKnownSymbol("toStringTag"),Za=Ha.values;for(var es in Ya){var ts=tr[es],rs=ts&&ts.prototype;if(rs){if(rs[Ja]!==Za)try{mr(rs,Ja,Za)}catch(er){rs[Ja]=Za}if(rs[$a]||mr(rs,$a,es),Ya[es])for(var ns in Ha)if(rs[ns]!==Ha[ns])try{mr(rs,ns,Ha[ns])}catch(er){rs[ns]=Ha[ns]}}}
|
||
/*!
|
||
* jQuery UI 1.8.17
|
||
*
|
||
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
||
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||
* http://jquery.org/license
|
||
*
|
||
* http://docs.jquery.com/UI
|
||
*/!function(er,tr){function d(tr){return!er(tr).parents().andSelf().filter((function(){return"hidden"===er.curCSS(this,"visibility")||er.expr.filters.hidden(this)})).length}function c(tr,rr){var nr=tr.nodeName.toLowerCase();if("area"===nr){var ir,or=tr.parentNode,ar=or.name;return!(!tr.href||!ar||"map"!==or.nodeName.toLowerCase())&&(!!(ir=er("img[usemap=#"+ar+"]")[0])&&d(ir))}return(/input|select|textarea|button|object/.test(nr)?!tr.disabled:"a"==nr&&tr.href||rr)&&d(tr)}er.ui=er.ui||{},er.ui.version||(er.extend(er.ui,{version:"1.8.17",keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}}),er.fn.extend({propAttr:er.fn.prop||er.fn.attr,_focus:er.fn.focus,focus:function focus(tr,rr){return"number"==typeof tr?this.each((function(){var nr=this;setTimeout((function(){er(nr).focus(),rr&&rr.call(nr)}),tr)})):this._focus.apply(this,arguments)},scrollParent:function scrollParent(){var tr;return tr=er.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter((function(){return/(relative|absolute|fixed)/.test(er.curCSS(this,"position",1))&&/(auto|scroll)/.test(er.curCSS(this,"overflow",1)+er.curCSS(this,"overflow-y",1)+er.curCSS(this,"overflow-x",1))})).eq(0):this.parents().filter((function(){return/(auto|scroll)/.test(er.curCSS(this,"overflow",1)+er.curCSS(this,"overflow-y",1)+er.curCSS(this,"overflow-x",1))})).eq(0),/fixed/.test(this.css("position"))||!tr.length?er(document):tr},zIndex:function zIndex(rr){if(rr!==tr)return this.css("zIndex",rr);if(this.length)for(var nr,ir,or=er(this[0]);or.length&&or[0]!==document;){if(("absolute"===(nr=or.css("position"))||"relative"===nr||"fixed"===nr)&&(ir=parseInt(or.css("zIndex"),10),!isNaN(ir)&&0!==ir))return ir;or=or.parent()}return 0},disableSelection:function disableSelection(){return this.bind((er.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",(function(er){er.preventDefault()}))},enableSelection:function enableSelection(){return this.unbind(".ui-disableSelection")}}),er.each(["Width","Height"],(function(rr,nr){function h(tr,rr,nr,or){return er.each(ir,(function(){rr-=parseFloat(er.curCSS(tr,"padding"+this,!0))||0,nr&&(rr-=parseFloat(er.curCSS(tr,"border"+this+"Width",!0))||0),or&&(rr-=parseFloat(er.curCSS(tr,"margin"+this,!0))||0)})),rr}var ir="Width"===nr?["Left","Right"]:["Top","Bottom"],or=nr.toLowerCase(),ar={innerWidth:er.fn.innerWidth,innerHeight:er.fn.innerHeight,outerWidth:er.fn.outerWidth,outerHeight:er.fn.outerHeight};er.fn["inner"+nr]=function(rr){return rr===tr?ar["inner"+nr].call(this):this.each((function(){er(this).css(or,h(this,rr)+"px")}))},er.fn["outer"+nr]=function(tr,rr){return"number"!=typeof tr?ar["outer"+nr].call(this,tr):this.each((function(){er(this).css(or,h(this,tr,!0,rr)+"px")}))}})),er.extend(er.expr[":"],{data:function data(tr,rr,nr){return!!er.data(tr,nr[3])},focusable:function focusable(tr){return c(tr,!isNaN(er.attr(tr,"tabindex")))},tabbable:function tabbable(tr){var rr=er.attr(tr,"tabindex"),nr=isNaN(rr);return(nr||rr>=0)&&c(tr,!nr)}}),er((function(){var tr=document.body,rr=tr.appendChild(rr=document.createElement("div"));er.extend(rr.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0}),er.support.minHeight=100===rr.offsetHeight,er.support.selectstart="onselectstart"in rr,tr.removeChild(rr).style.display="none"})),er.extend(er.ui,{plugin:{add:function add(tr,rr,nr){var ir=er.ui[tr].prototype;for(var or in nr)ir.plugins[or]=ir.plugins[or]||[],ir.plugins[or].push([rr,nr[or]])},call:function call(er,tr,rr){var nr=er.plugins[tr];if(nr&&er.element[0].parentNode)for(var ir=0;ir<nr.length;ir++)er.options[nr[ir][0]]&&nr[ir][1].apply(er.element,rr)}},contains:function contains(er,tr){return document.compareDocumentPosition?16&er.compareDocumentPosition(tr):er!==tr&&er.contains(tr)},hasScroll:function hasScroll(tr,rr){if("hidden"===er(tr).css("overflow"))return!1;var nr,ir=rr&&"left"===rr?"scrollLeft":"scrollTop";return tr[ir]>0||(tr[ir]=1,nr=tr[ir]>0,tr[ir]=0,nr)},isOverAxis:function isOverAxis(er,tr,rr){return er>tr&&er<tr+rr},isOver:function isOver(tr,rr,nr,ir,or,ar){return er.ui.isOverAxis(tr,nr,or)&&er.ui.isOverAxis(rr,ir,ar)}}))}(jQuery),
|
||
/*!
|
||
* jQuery UI Widget 1.8.17
|
||
*
|
||
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
||
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||
* http://jquery.org/license
|
||
*
|
||
* http://docs.jquery.com/UI/Widget
|
||
*/
|
||
function(er,tr){if(er.cleanData){var rr=er.cleanData;er.cleanData=function(tr){for(var nr,ir=0;null!=(nr=tr[ir]);ir++)try{er(nr).triggerHandler("remove")}catch(er){}rr(tr)}}else{var nr=er.fn.remove;er.fn.remove=function(tr,rr){return this.each((function(){return rr||(!tr||er.filter(tr,[this]).length)&&er("*",this).add([this]).each((function(){try{er(this).triggerHandler("remove")}catch(er){}})),nr.call(er(this),tr,rr)}))}}er.widget=function(tr,rr,nr){var ir,or=tr.split(".")[0];ir=or+"-"+(tr=tr.split(".")[1]),nr||(nr=rr,rr=er.Widget),er.expr[":"][ir]=function(rr){return!!er.data(rr,tr)},er[or]=er[or]||{},er[or][tr]=function(er,tr){arguments.length&&this._createWidget(er,tr)};var ar=new rr;ar.options=er.extend(!0,{},ar.options),er[or][tr].prototype=er.extend(!0,ar,{namespace:or,widgetName:tr,widgetEventPrefix:er[or][tr].prototype.widgetEventPrefix||tr,widgetBaseClass:ir},nr),er.widget.bridge(tr,er[or][tr])},er.widget.bridge=function(rr,nr){er.fn[rr]=function(ir){var or="string"==typeof ir,ar=Array.prototype.slice.call(arguments,1),sr=this;return ir=!or&&ar.length?er.extend.apply(null,[!0,ir].concat(ar)):ir,or&&"_"===ir.charAt(0)||(or?this.each((function(){var nr=er.data(this,rr),or=nr&&er.isFunction(nr[ir])?nr[ir].apply(nr,ar):nr;if(or!==nr&&or!==tr)return sr=or,!1})):this.each((function(){var tr=er.data(this,rr);tr?tr.option(ir||{})._init():er.data(this,rr,new nr(ir,this))}))),sr}},er.Widget=function(er,tr){arguments.length&&this._createWidget(er,tr)},er.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:!1},_createWidget:function _createWidget(tr,rr){er.data(rr,this.widgetName,this),this.element=er(rr),this.options=er.extend(!0,{},this.options,this._getCreateOptions(),tr);var nr=this;this.element.bind("remove."+this.widgetName,(function(){nr.destroy()})),this._create(),this._trigger("create"),this._init()},_getCreateOptions:function _getCreateOptions(){return er.metadata&&er.metadata.get(this.element[0])[this.widgetName]},_create:function _create(){},_init:function _init(){},destroy:function destroy(){this.element.unbind("."+this.widgetName).removeData(this.widgetName),this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled ui-state-disabled")},widget:function widget(){return this.element},option:function option(rr,nr){var ir=rr;if(0===arguments.length)return er.extend({},this.options);if("string"==typeof rr){if(nr===tr)return this.options[rr];(ir={})[rr]=nr}return this._setOptions(ir),this},_setOptions:function _setOptions(tr){var rr=this;return er.each(tr,(function(er,tr){rr._setOption(er,tr)})),this},_setOption:function _setOption(er,tr){return this.options[er]=tr,"disabled"===er&&this.widget()[tr?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",tr),this},enable:function enable(){return this._setOption("disabled",!1)},disable:function disable(){return this._setOption("disabled",!0)},_trigger:function _trigger(tr,rr,nr){var ir,or,ar=this.options[tr];if(nr=nr||{},(rr=er.Event(rr)).type=(tr===this.widgetEventPrefix?tr:this.widgetEventPrefix+tr).toLowerCase(),rr.target=this.element[0],or=rr.originalEvent)for(ir in or)ir in rr||(rr[ir]=or[ir]);return this.element.trigger(rr,nr),!(er.isFunction(ar)&&!1===ar.call(this.element[0],rr,nr)||rr.isDefaultPrevented())}}}(jQuery),
|
||
/*!
|
||
* jQuery UI Mouse 1.8.17
|
||
*
|
||
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
||
* Dual licensed under the MIT or GPL Version 2 licenses.
|
||
* http://jquery.org/license
|
||
*
|
||
* http://docs.jquery.com/UI/Mouse
|
||
*
|
||
* Depends:
|
||
* jquery.ui.widget.js
|
||
*/
|
||
function(er,tr){var rr=!1;er(document).mouseup((function(er){rr=!1})),er.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function _mouseInit(){var tr=this;this.element.bind("mousedown."+this.widgetName,(function(er){return tr._mouseDown(er)})).bind("click."+this.widgetName,(function(rr){if(!0===er.data(rr.target,tr.widgetName+".preventClickEvent"))return er.removeData(rr.target,tr.widgetName+".preventClickEvent"),rr.stopImmediatePropagation(),!1})),this.started=!1},_mouseDestroy:function _mouseDestroy(){this.element.unbind("."+this.widgetName)},_mouseDown:function _mouseDown(tr){if(!rr){this._mouseStarted&&this._mouseUp(tr),this._mouseDownEvent=tr;var nr=this,ir=1==tr.which,or=!("string"!=typeof this.options.cancel||!tr.target.nodeName)&&er(tr.target).closest(this.options.cancel).length;return!(ir&&!or&&this._mouseCapture(tr))||(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout((function(){nr.mouseDelayMet=!0}),this.options.delay)),this._mouseDistanceMet(tr)&&this._mouseDelayMet(tr)&&(this._mouseStarted=!1!==this._mouseStart(tr),!this._mouseStarted)?(tr.preventDefault(),!0):(!0===er.data(tr.target,this.widgetName+".preventClickEvent")&&er.removeData(tr.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(er){return nr._mouseMove(er)},this._mouseUpDelegate=function(er){return nr._mouseUp(er)},er(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),tr.preventDefault(),rr=!0,!0))}},_mouseMove:function _mouseMove(tr){return!er.browser.msie||document.documentMode>=9||tr.button?this._mouseStarted?(this._mouseDrag(tr),tr.preventDefault()):(this._mouseDistanceMet(tr)&&this._mouseDelayMet(tr)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,tr),this._mouseStarted?this._mouseDrag(tr):this._mouseUp(tr)),!this._mouseStarted):this._mouseUp(tr)},_mouseUp:function _mouseUp(tr){return er(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,tr.target==this._mouseDownEvent.target&&er.data(tr.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(tr)),!1},_mouseDistanceMet:function _mouseDistanceMet(er){return Math.max(Math.abs(this._mouseDownEvent.pageX-er.pageX),Math.abs(this._mouseDownEvent.pageY-er.pageY))>=this.options.distance},_mouseDelayMet:function _mouseDelayMet(er){return this.mouseDelayMet},_mouseStart:function _mouseStart(er){},_mouseDrag:function _mouseDrag(er){},_mouseStop:function _mouseStop(er){},_mouseCapture:function _mouseCapture(er){return!0}})}(jQuery),function(er,tr){er.widget("ui.draggable",er.ui.mouse,{widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1},_create:function _create(){"original"==this.options.helper&&!/^(?:r|a|f)/.test(this.element.css("position"))&&(this.element[0].style.position="relative"),this.options.addClasses&&this.element.addClass("ui-draggable"),this.options.disabled&&this.element.addClass("ui-draggable-disabled"),this._mouseInit()},destroy:function destroy(){if(this.element.data("draggable"))return this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"),this._mouseDestroy(),this},_mouseCapture:function _mouseCapture(tr){var rr=this.options;return!(this.helper||rr.disabled||er(tr.target).is(".ui-resizable-handle"))&&(this.handle=this._getHandle(tr),!!this.handle&&(rr.iframeFix&&er(!0===rr.iframeFix?"iframe":rr.iframeFix).each((function(){er('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1e3}).css(er(this).offset()).appendTo("body")})),!0))},_mouseStart:function _mouseStart(tr){var rr=this.options;return this.helper=this._createHelper(tr),this._cacheHelperProportions(),er.ui.ddmanager&&(er.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(),this.offset=this.positionAbs=this.element.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},er.extend(this.offset,{click:{left:tr.pageX-this.offset.left,top:tr.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.originalPosition=this.position=this._generatePosition(tr),this.originalPageX=tr.pageX,this.originalPageY=tr.pageY,rr.cursorAt&&this._adjustOffsetFromHelper(rr.cursorAt),rr.containment&&this._setContainment(),!1===this._trigger("start",tr)?(this._clear(),!1):(this._cacheHelperProportions(),er.ui.ddmanager&&!rr.dropBehaviour&&er.ui.ddmanager.prepareOffsets(this,tr),this.helper.addClass("ui-draggable-dragging"),this._mouseDrag(tr,!0),er.ui.ddmanager&&er.ui.ddmanager.dragStart(this,tr),!0)},_mouseDrag:function _mouseDrag(tr,rr){if(this.position=this._generatePosition(tr),this.positionAbs=this._convertPositionTo("absolute"),!rr){var nr=this._uiHash();if(!1===this._trigger("drag",tr,nr))return this._mouseUp({}),!1;this.position=nr.position}return this.options.axis&&"y"==this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"==this.options.axis||(this.helper[0].style.top=this.position.top+"px"),er.ui.ddmanager&&er.ui.ddmanager.drag(this,tr),!1},_mouseStop:function _mouseStop(tr){var rr=!1;if(er.ui.ddmanager&&!this.options.dropBehaviour&&(rr=er.ui.ddmanager.drop(this,tr)),this.dropped&&(rr=this.dropped,this.dropped=!1),!(this.element[0]&&this.element[0].parentNode||"original"!=this.options.helper))return!1;if("invalid"==this.options.revert&&!rr||"valid"==this.options.revert&&rr||!0===this.options.revert||er.isFunction(this.options.revert)&&this.options.revert.call(this.element,rr)){var nr=this;er(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),(function(){!1!==nr._trigger("stop",tr)&&nr._clear()}))}else!1!==this._trigger("stop",tr)&&this._clear();return!1},_mouseUp:function _mouseUp(tr){return!0===this.options.iframeFix&&er("div.ui-draggable-iframeFix").each((function(){this.parentNode.removeChild(this)})),er.ui.ddmanager&&er.ui.ddmanager.dragStop(this,tr),er.ui.mouse.prototype._mouseUp.call(this,tr)},cancel:function cancel(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear(),this},_getHandle:function _getHandle(tr){var rr=!this.options.handle||!er(this.options.handle,this.element).length;return er(this.options.handle,this.element).find("*").andSelf().each((function(){this==tr.target&&(rr=!0)})),rr},_createHelper:function _createHelper(tr){var rr=this.options,nr=er.isFunction(rr.helper)?er(rr.helper.apply(this.element[0],[tr])):"clone"==rr.helper?this.element.clone().removeAttr("id"):this.element;return nr.parents("body").length||nr.appendTo("parent"==rr.appendTo?this.element[0].parentNode:rr.appendTo),nr[0]!=this.element[0]&&!/(fixed|absolute)/.test(nr.css("position"))&&nr.css("position","absolute"),nr},_adjustOffsetFromHelper:function _adjustOffsetFromHelper(tr){"string"==typeof tr&&(tr=tr.split(" ")),er.isArray(tr)&&(tr={left:+tr[0],top:+tr[1]||0}),"left"in tr&&(this.offset.click.left=tr.left+this.margins.left),"right"in tr&&(this.offset.click.left=this.helperProportions.width-tr.right+this.margins.left),"top"in tr&&(this.offset.click.top=tr.top+this.margins.top),"bottom"in tr&&(this.offset.click.top=this.helperProportions.height-tr.bottom+this.margins.top)},_getParentOffset:function _getParentOffset(){this.offsetParent=this.helper.offsetParent();var tr=this.offsetParent.offset();return"absolute"==this.cssPosition&&this.scrollParent[0]!=document&&er.ui.contains(this.scrollParent[0],this.offsetParent[0])&&(tr.left+=this.scrollParent.scrollLeft(),tr.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&"html"==this.offsetParent[0].tagName.toLowerCase()&&er.browser.msie)&&(tr={top:0,left:0}),{top:tr.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:tr.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function _getRelativeOffset(){if("relative"==this.cssPosition){var er=this.element.position();return{top:er.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:er.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function _cacheMargins(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function _cacheHelperProportions(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function _setContainment(){var tr=this.options;if("parent"==tr.containment&&(tr.containment=this.helper[0].parentNode),"document"!=tr.containment&&"window"!=tr.containment||(this.containment=["document"==tr.containment?0:er(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,"document"==tr.containment?0:er(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,("document"==tr.containment?0:er(window).scrollLeft())+er("document"==tr.containment?document:window).width()-this.helperProportions.width-this.margins.left,("document"==tr.containment?0:er(window).scrollTop())+(er("document"==tr.containment?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(tr.containment)||tr.containment.constructor==Array)tr.containment.constructor==Array&&(this.containment=tr.containment);else{var rr=er(tr.containment),nr=rr[0];if(!nr)return;rr.offset();var ir="hidden"!=er(nr).css("overflow");this.containment=[(parseInt(er(nr).css("borderLeftWidth"),10)||0)+(parseInt(er(nr).css("paddingLeft"),10)||0),(parseInt(er(nr).css("borderTopWidth"),10)||0)+(parseInt(er(nr).css("paddingTop"),10)||0),(ir?Math.max(nr.scrollWidth,nr.offsetWidth):nr.offsetWidth)-(parseInt(er(nr).css("borderLeftWidth"),10)||0)-(parseInt(er(nr).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(ir?Math.max(nr.scrollHeight,nr.offsetHeight):nr.offsetHeight)-(parseInt(er(nr).css("borderTopWidth"),10)||0)-(parseInt(er(nr).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relative_container=rr}},_convertPositionTo:function _convertPositionTo(tr,rr){rr||(rr=this.position);var nr="absolute"==tr?1:-1,ir=(this.options,"absolute"!=this.cssPosition||this.scrollParent[0]!=document&&er.ui.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent),or=/(html|body)/i.test(ir[0].tagName);return{top:rr.top+this.offset.relative.top*nr+this.offset.parent.top*nr-(er.browser.safari&&er.browser.version<526&&"fixed"==this.cssPosition?0:("fixed"==this.cssPosition?-this.scrollParent.scrollTop():or?0:ir.scrollTop())*nr),left:rr.left+this.offset.relative.left*nr+this.offset.parent.left*nr-(er.browser.safari&&er.browser.version<526&&"fixed"==this.cssPosition?0:("fixed"==this.cssPosition?-this.scrollParent.scrollLeft():or?0:ir.scrollLeft())*nr)}},_generatePosition:function _generatePosition(tr){var rr=this.options,nr="absolute"!=this.cssPosition||this.scrollParent[0]!=document&&er.ui.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,ir=/(html|body)/i.test(nr[0].tagName),or=tr.pageX,ar=tr.pageY;if(this.originalPosition){var sr;if(this.containment){if(this.relative_container){var lr=this.relative_container.offset();sr=[this.containment[0]+lr.left,this.containment[1]+lr.top,this.containment[2]+lr.left,this.containment[3]+lr.top]}else sr=this.containment;tr.pageX-this.offset.click.left<sr[0]&&(or=sr[0]+this.offset.click.left),tr.pageY-this.offset.click.top<sr[1]&&(ar=sr[1]+this.offset.click.top),tr.pageX-this.offset.click.left>sr[2]&&(or=sr[2]+this.offset.click.left),tr.pageY-this.offset.click.top>sr[3]&&(ar=sr[3]+this.offset.click.top)}if(rr.grid){var cr=rr.grid[1]?this.originalPageY+Math.round((ar-this.originalPageY)/rr.grid[1])*rr.grid[1]:this.originalPageY;ar=sr&&(cr-this.offset.click.top<sr[1]||cr-this.offset.click.top>sr[3])?cr-this.offset.click.top<sr[1]?cr+rr.grid[1]:cr-rr.grid[1]:cr;var ur=rr.grid[0]?this.originalPageX+Math.round((or-this.originalPageX)/rr.grid[0])*rr.grid[0]:this.originalPageX;or=sr&&(ur-this.offset.click.left<sr[0]||ur-this.offset.click.left>sr[2])?ur-this.offset.click.left<sr[0]?ur+rr.grid[0]:ur-rr.grid[0]:ur}}return{top:ar-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(er.browser.safari&&er.browser.version<526&&"fixed"==this.cssPosition?0:"fixed"==this.cssPosition?-this.scrollParent.scrollTop():ir?0:nr.scrollTop()),left:or-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(er.browser.safari&&er.browser.version<526&&"fixed"==this.cssPosition?0:"fixed"==this.cssPosition?-this.scrollParent.scrollLeft():ir?0:nr.scrollLeft())}},_clear:function _clear(){this.helper.removeClass("ui-draggable-dragging"),this.helper[0]!=this.element[0]&&!this.cancelHelperRemoval&&this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1},_trigger:function _trigger(tr,rr,nr){return nr=nr||this._uiHash(),er.ui.plugin.call(this,tr,[rr,nr]),"drag"==tr&&(this.positionAbs=this._convertPositionTo("absolute")),er.Widget.prototype._trigger.call(this,tr,rr,nr)},plugins:{},_uiHash:function _uiHash(er){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),er.extend(er.ui.draggable,{version:"1.8.17"}),er.ui.plugin.add("draggable","connectToSortable",{start:function start(tr,rr){var nr=er(this).data("draggable"),ir=nr.options,or=er.extend({},rr,{item:nr.element});nr.sortables=[],er(ir.connectToSortable).each((function(){var rr=er.data(this,"sortable");rr&&!rr.options.disabled&&(nr.sortables.push({instance:rr,shouldRevert:rr.options.revert}),rr.refreshPositions(),rr._trigger("activate",tr,or))}))},stop:function stop(tr,rr){var nr=er(this).data("draggable"),ir=er.extend({},rr,{item:nr.element});er.each(nr.sortables,(function(){this.instance.isOver?(this.instance.isOver=0,nr.cancelHelperRemoval=!0,this.instance.cancelHelperRemoval=!1,this.shouldRevert&&(this.instance.options.revert=!0),this.instance._mouseStop(tr),this.instance.options.helper=this.instance.options._helper,"original"==nr.options.helper&&this.instance.currentItem.css({top:"auto",left:"auto"})):(this.instance.cancelHelperRemoval=!1,this.instance._trigger("deactivate",tr,ir))}))},drag:function drag(tr,rr){var nr=er(this).data("draggable"),ir=this;er.each(nr.sortables,(function(or){this.instance.positionAbs=nr.positionAbs,this.instance.helperProportions=nr.helperProportions,this.instance.offset.click=nr.offset.click,this.instance._intersectsWith(this.instance.containerCache)?(this.instance.isOver||(this.instance.isOver=1,this.instance.currentItem=er(ir).clone().removeAttr("id").appendTo(this.instance.element).data("sortable-item",!0),this.instance.options._helper=this.instance.options.helper,this.instance.options.helper=function(){return rr.helper[0]},tr.target=this.instance.currentItem[0],this.instance._mouseCapture(tr,!0),this.instance._mouseStart(tr,!0,!0),this.instance.offset.click.top=nr.offset.click.top,this.instance.offset.click.left=nr.offset.click.left,this.instance.offset.parent.left-=nr.offset.parent.left-this.instance.offset.parent.left,this.instance.offset.parent.top-=nr.offset.parent.top-this.instance.offset.parent.top,nr._trigger("toSortable",tr),nr.dropped=this.instance.element,nr.currentItem=nr.element,this.instance.fromOutside=nr),this.instance.currentItem&&this.instance._mouseDrag(tr)):this.instance.isOver&&(this.instance.isOver=0,this.instance.cancelHelperRemoval=!0,this.instance.options.revert=!1,this.instance._trigger("out",tr,this.instance._uiHash(this.instance)),this.instance._mouseStop(tr,!0),this.instance.options.helper=this.instance.options._helper,this.instance.currentItem.remove(),this.instance.placeholder&&this.instance.placeholder.remove(),nr._trigger("fromSortable",tr),nr.dropped=!1)}))}}),er.ui.plugin.add("draggable","cursor",{start:function start(tr,rr){var nr=er("body"),ir=er(this).data("draggable").options;nr.css("cursor")&&(ir._cursor=nr.css("cursor")),nr.css("cursor",ir.cursor)},stop:function stop(tr,rr){var nr=er(this).data("draggable").options;nr._cursor&&er("body").css("cursor",nr._cursor)}}),er.ui.plugin.add("draggable","opacity",{start:function start(tr,rr){var nr=er(rr.helper),ir=er(this).data("draggable").options;nr.css("opacity")&&(ir._opacity=nr.css("opacity")),nr.css("opacity",ir.opacity)},stop:function stop(tr,rr){var nr=er(this).data("draggable").options;nr._opacity&&er(rr.helper).css("opacity",nr._opacity)}}),er.ui.plugin.add("draggable","scroll",{start:function start(tr,rr){var nr=er(this).data("draggable");nr.scrollParent[0]!=document&&"HTML"!=nr.scrollParent[0].tagName&&(nr.overflowOffset=nr.scrollParent.offset())},drag:function drag(tr,rr){var nr=er(this).data("draggable"),ir=nr.options,or=!1;nr.scrollParent[0]!=document&&"HTML"!=nr.scrollParent[0].tagName?(ir.axis&&"x"==ir.axis||(nr.overflowOffset.top+nr.scrollParent[0].offsetHeight-tr.pageY<ir.scrollSensitivity?nr.scrollParent[0].scrollTop=or=nr.scrollParent[0].scrollTop+ir.scrollSpeed:tr.pageY-nr.overflowOffset.top<ir.scrollSensitivity&&(nr.scrollParent[0].scrollTop=or=nr.scrollParent[0].scrollTop-ir.scrollSpeed)),ir.axis&&"y"==ir.axis||(nr.overflowOffset.left+nr.scrollParent[0].offsetWidth-tr.pageX<ir.scrollSensitivity?nr.scrollParent[0].scrollLeft=or=nr.scrollParent[0].scrollLeft+ir.scrollSpeed:tr.pageX-nr.overflowOffset.left<ir.scrollSensitivity&&(nr.scrollParent[0].scrollLeft=or=nr.scrollParent[0].scrollLeft-ir.scrollSpeed))):(ir.axis&&"x"==ir.axis||(tr.pageY-er(document).scrollTop()<ir.scrollSensitivity?or=er(document).scrollTop(er(document).scrollTop()-ir.scrollSpeed):er(window).height()-(tr.pageY-er(document).scrollTop())<ir.scrollSensitivity&&(or=er(document).scrollTop(er(document).scrollTop()+ir.scrollSpeed))),ir.axis&&"y"==ir.axis||(tr.pageX-er(document).scrollLeft()<ir.scrollSensitivity?or=er(document).scrollLeft(er(document).scrollLeft()-ir.scrollSpeed):er(window).width()-(tr.pageX-er(document).scrollLeft())<ir.scrollSensitivity&&(or=er(document).scrollLeft(er(document).scrollLeft()+ir.scrollSpeed)))),!1!==or&&er.ui.ddmanager&&!ir.dropBehaviour&&er.ui.ddmanager.prepareOffsets(nr,tr)}}),er.ui.plugin.add("draggable","snap",{start:function start(tr,rr){var nr=er(this).data("draggable"),ir=nr.options;nr.snapElements=[],er(ir.snap.constructor!=String?ir.snap.items||":data(draggable)":ir.snap).each((function(){var tr=er(this),rr=tr.offset();this!=nr.element[0]&&nr.snapElements.push({item:this,width:tr.outerWidth(),height:tr.outerHeight(),top:rr.top,left:rr.left})}))},drag:function drag(tr,rr){for(var nr=er(this).data("draggable"),ir=nr.options,or=ir.snapTolerance,ar=rr.offset.left,sr=ar+nr.helperProportions.width,lr=rr.offset.top,cr=lr+nr.helperProportions.height,ur=nr.snapElements.length-1;ur>=0;ur--){var dr=nr.snapElements[ur].left,hr=dr+nr.snapElements[ur].width,pr=nr.snapElements[ur].top,Ar=pr+nr.snapElements[ur].height;if(dr-or<ar&&ar<hr+or&&pr-or<lr&&lr<Ar+or||dr-or<ar&&ar<hr+or&&pr-or<cr&&cr<Ar+or||dr-or<sr&&sr<hr+or&&pr-or<lr&&lr<Ar+or||dr-or<sr&&sr<hr+or&&pr-or<cr&&cr<Ar+or){if("inner"!=ir.snapMode){var fr=Math.abs(pr-cr)<=or,gr=Math.abs(Ar-lr)<=or,mr=Math.abs(dr-sr)<=or,_r=Math.abs(hr-ar)<=or;fr&&(rr.position.top=nr._convertPositionTo("relative",{top:pr-nr.helperProportions.height,left:0}).top-nr.margins.top),gr&&(rr.position.top=nr._convertPositionTo("relative",{top:Ar,left:0}).top-nr.margins.top),mr&&(rr.position.left=nr._convertPositionTo("relative",{top:0,left:dr-nr.helperProportions.width}).left-nr.margins.left),_r&&(rr.position.left=nr._convertPositionTo("relative",{top:0,left:hr}).left-nr.margins.left)}var vr=fr||gr||mr||_r;if("outer"!=ir.snapMode){fr=Math.abs(pr-lr)<=or,gr=Math.abs(Ar-cr)<=or,mr=Math.abs(dr-ar)<=or,_r=Math.abs(hr-sr)<=or;fr&&(rr.position.top=nr._convertPositionTo("relative",{top:pr,left:0}).top-nr.margins.top),gr&&(rr.position.top=nr._convertPositionTo("relative",{top:Ar-nr.helperProportions.height,left:0}).top-nr.margins.top),mr&&(rr.position.left=nr._convertPositionTo("relative",{top:0,left:dr}).left-nr.margins.left),_r&&(rr.position.left=nr._convertPositionTo("relative",{top:0,left:hr-nr.helperProportions.width}).left-nr.margins.left)}!nr.snapElements[ur].snapping&&(fr||gr||mr||_r||vr)&&nr.options.snap.snap&&nr.options.snap.snap.call(nr.element,tr,er.extend(nr._uiHash(),{snapItem:nr.snapElements[ur].item})),nr.snapElements[ur].snapping=fr||gr||mr||_r||vr}else nr.snapElements[ur].snapping&&nr.options.snap.release&&nr.options.snap.release.call(nr.element,tr,er.extend(nr._uiHash(),{snapItem:nr.snapElements[ur].item})),nr.snapElements[ur].snapping=!1}}}),er.ui.plugin.add("draggable","stack",{start:function start(tr,rr){var nr=er(this).data("draggable").options,ir=er.makeArray(er(nr.stack)).sort((function(tr,rr){return(parseInt(er(tr).css("zIndex"),10)||0)-(parseInt(er(rr).css("zIndex"),10)||0)}));if(ir.length){var or=parseInt(ir[0].style.zIndex)||0;er(ir).each((function(er){this.style.zIndex=or+er})),this[0].style.zIndex=or+ir.length}}}),er.ui.plugin.add("draggable","zIndex",{start:function start(tr,rr){var nr=er(rr.helper),ir=er(this).data("draggable").options;nr.css("zIndex")&&(ir._zIndex=nr.css("zIndex")),nr.css("zIndex",ir.zIndex)},stop:function stop(tr,rr){var nr=er(this).data("draggable").options;nr._zIndex&&er(rr.helper).css("zIndex",nr._zIndex)}})}(jQuery),function(er,tr){er.widget("ui.slider",er.ui.mouse,{widgetEventPrefix:"slide",options:{animate:!1,distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null},_create:function _create(){var tr=this,rr=this.options,nr=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),ir=rr.values&&rr.values.length||1,or=[];this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all"+(rr.disabled?" ui-slider-disabled ui-disabled":"")),this.range=er([]),rr.range&&(!0===rr.range&&(rr.values||(rr.values=[this._valueMin(),this._valueMin()]),rr.values.length&&2!==rr.values.length&&(rr.values=[rr.values[0],rr.values[0]])),this.range=er("<div></div>").appendTo(this.element).addClass("ui-slider-range ui-widget-header"+("min"===rr.range||"max"===rr.range?" ui-slider-range-"+rr.range:"")));for(var ar=nr.length;ar<ir;ar+=1)or.push("<a class='ui-slider-handle ui-state-default ui-corner-all' href='#'></a>");this.handles=nr.add(er(or.join("")).appendTo(tr.element)),this.handle=this.handles.eq(0),this.handles.add(this.range).filter("a").click((function(er){er.preventDefault()})).hover((function(){rr.disabled||er(this).addClass("ui-state-hover")}),(function(){er(this).removeClass("ui-state-hover")})).focus((function(){rr.disabled?er(this).blur():(er(".ui-slider .ui-state-focus").removeClass("ui-state-focus"),er(this).addClass("ui-state-focus"))})).blur((function(){er(this).removeClass("ui-state-focus")})),this.handles.each((function(tr){er(this).data("index.ui-slider-handle",tr)})),this.handles.keydown((function(rr){var nr,ir,or,ar=!0,sr=er(this).data("index.ui-slider-handle");if(!tr.options.disabled){switch(rr.keyCode){case er.ui.keyCode.HOME:case er.ui.keyCode.END:case er.ui.keyCode.PAGE_UP:case er.ui.keyCode.PAGE_DOWN:case er.ui.keyCode.UP:case er.ui.keyCode.RIGHT:case er.ui.keyCode.DOWN:case er.ui.keyCode.LEFT:if(ar=!1,!tr._keySliding&&(tr._keySliding=!0,er(this).addClass("ui-state-active"),!1===tr._start(rr,sr)))return}switch(or=tr.options.step,nr=ir=tr.options.values&&tr.options.values.length?tr.values(sr):tr.value(),rr.keyCode){case er.ui.keyCode.HOME:ir=tr._valueMin();break;case er.ui.keyCode.END:ir=tr._valueMax();break;case er.ui.keyCode.PAGE_UP:ir=tr._trimAlignValue(nr+(tr._valueMax()-tr._valueMin())/5);break;case er.ui.keyCode.PAGE_DOWN:ir=tr._trimAlignValue(nr-(tr._valueMax()-tr._valueMin())/5);break;case er.ui.keyCode.UP:case er.ui.keyCode.RIGHT:if(nr===tr._valueMax())return;ir=tr._trimAlignValue(nr+or);break;case er.ui.keyCode.DOWN:case er.ui.keyCode.LEFT:if(nr===tr._valueMin())return;ir=tr._trimAlignValue(nr-or)}return tr._slide(rr,sr,ir),ar}})).keyup((function(rr){var nr=er(this).data("index.ui-slider-handle");tr._keySliding&&(tr._keySliding=!1,tr._stop(rr,nr),tr._change(rr,nr),er(this).removeClass("ui-state-active"))})),this._refreshValue(),this._animateOff=!1},destroy:function destroy(){return this.handles.remove(),this.range.remove(),this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-slider-disabled ui-widget ui-widget-content ui-corner-all").removeData("slider").unbind(".slider"),this._mouseDestroy(),this},_mouseCapture:function _mouseCapture(tr){var rr,nr,ir,or,ar,sr,lr,cr,ur=this.options;return!ur.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),rr={x:tr.pageX,y:tr.pageY},nr=this._normValueFromMouse(rr),ir=this._valueMax()-this._valueMin()+1,ar=this,this.handles.each((function(tr){var rr=Math.abs(nr-ar.values(tr));ir>rr&&(ir=rr,or=er(this),sr=tr)})),!0===ur.range&&this.values(1)===ur.min&&(sr+=1,or=er(this.handles[sr])),!1!==this._start(tr,sr)&&(this._mouseSliding=!0,ar._handleIndex=sr,or.addClass("ui-state-active").focus(),lr=or.offset(),cr=!er(tr.target).parents().andSelf().is(".ui-slider-handle"),this._clickOffset=cr?{left:0,top:0}:{left:tr.pageX-lr.left-or.width()/2,top:tr.pageY-lr.top-or.height()/2-(parseInt(or.css("borderTopWidth"),10)||0)-(parseInt(or.css("borderBottomWidth"),10)||0)+(parseInt(or.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(tr,sr,nr),this._animateOff=!0,!0))},_mouseStart:function _mouseStart(er){return!0},_mouseDrag:function _mouseDrag(er){var tr={x:er.pageX,y:er.pageY},rr=this._normValueFromMouse(tr);return this._slide(er,this._handleIndex,rr),!1},_mouseStop:function _mouseStop(er){return this.handles.removeClass("ui-state-active"),this._mouseSliding=!1,this._stop(er,this._handleIndex),this._change(er,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function _detectOrientation(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function _normValueFromMouse(er){var tr,rr,nr,ir,or;return"horizontal"===this.orientation?(tr=this.elementSize.width,rr=er.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(tr=this.elementSize.height,rr=er.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),(nr=rr/tr)>1&&(nr=1),nr<0&&(nr=0),"vertical"===this.orientation&&(nr=1-nr),ir=this._valueMax()-this._valueMin(),or=this._valueMin()+nr*ir,this._trimAlignValue(or)},_start:function _start(er,tr){var rr={handle:this.handles[tr],value:this.value()};return this.options.values&&this.options.values.length&&(rr.value=this.values(tr),rr.values=this.values()),this._trigger("start",er,rr)},_slide:function _slide(er,tr,rr){var nr,ir,or;this.options.values&&this.options.values.length?(nr=this.values(tr?0:1),2===this.options.values.length&&!0===this.options.range&&(0===tr&&rr>nr||1===tr&&rr<nr)&&(rr=nr),rr!==this.values(tr)&&((ir=this.values())[tr]=rr,or=this._trigger("slide",er,{handle:this.handles[tr],value:rr,values:ir}),nr=this.values(tr?0:1),!1!==or&&this.values(tr,rr,!0))):rr!==this.value()&&(!1!==(or=this._trigger("slide",er,{handle:this.handles[tr],value:rr}))&&this.value(rr))},_stop:function _stop(er,tr){var rr={handle:this.handles[tr],value:this.value()};this.options.values&&this.options.values.length&&(rr.value=this.values(tr),rr.values=this.values()),this._trigger("stop",er,rr)},_change:function _change(er,tr){if(!this._keySliding&&!this._mouseSliding){var rr={handle:this.handles[tr],value:this.value()};this.options.values&&this.options.values.length&&(rr.value=this.values(tr),rr.values=this.values()),this._trigger("change",er,rr)}},value:function value(er){if(!arguments.length)return this._value();this.options.value=this._trimAlignValue(er),this._refreshValue(),this._change(null,0)},values:function values(tr,rr){var nr,ir,or;if(arguments.length>1)this.options.values[tr]=this._trimAlignValue(rr),this._refreshValue(),this._change(null,tr);else{if(!arguments.length)return this._values();if(!er.isArray(arguments[0]))return this.options.values&&this.options.values.length?this._values(tr):this.value();for(nr=this.options.values,ir=arguments[0],or=0;or<nr.length;or+=1)nr[or]=this._trimAlignValue(ir[or]),this._change(null,or);this._refreshValue()}},_setOption:function _setOption(tr,rr){var nr,ir=0;switch(er.isArray(this.options.values)&&(ir=this.options.values.length),er.Widget.prototype._setOption.apply(this,arguments),tr){case"disabled":rr?(this.handles.filter(".ui-state-focus").blur(),this.handles.removeClass("ui-state-hover"),this.handles.propAttr("disabled",!0),this.element.addClass("ui-disabled")):(this.handles.propAttr("disabled",!1),this.element.removeClass("ui-disabled"));break;case"orientation":this._detectOrientation(),this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation),this._refreshValue();break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),nr=0;nr<ir;nr+=1)this._change(null,nr);this._animateOff=!1}},_value:function _value(){var er=this.options.value;return er=this._trimAlignValue(er)},_values:function _values(er){var tr,rr,nr;if(arguments.length)return tr=this.options.values[er],tr=this._trimAlignValue(tr);for(rr=this.options.values.slice(),nr=0;nr<rr.length;nr+=1)rr[nr]=this._trimAlignValue(rr[nr]);return rr},_trimAlignValue:function _trimAlignValue(er){if(er<=this._valueMin())return this._valueMin();if(er>=this._valueMax())return this._valueMax();var tr=this.options.step>0?this.options.step:1,rr=(er-this._valueMin())%tr,nr=er-rr;return 2*Math.abs(rr)>=tr&&(nr+=rr>0?tr:-tr),parseFloat(nr.toFixed(5))},_valueMin:function _valueMin(){return this.options.min},_valueMax:function _valueMax(){return this.options.max},_refreshValue:function _refreshValue(){var tr,rr,nr,ir,or,ar=this.options.range,sr=this.options,lr=this,cr=!this._animateOff&&sr.animate,ur={};this.options.values&&this.options.values.length?this.handles.each((function(nr,ir){tr=(lr.values(nr)-lr._valueMin())/(lr._valueMax()-lr._valueMin())*100,ur["horizontal"===lr.orientation?"left":"bottom"]=tr+"%",er(this).stop(1,1)[cr?"animate":"css"](ur,sr.animate),!0===lr.options.range&&("horizontal"===lr.orientation?(0===nr&&lr.range.stop(1,1)[cr?"animate":"css"]({left:tr+"%"},sr.animate),1===nr&&lr.range[cr?"animate":"css"]({width:tr-rr+"%"},{queue:!1,duration:sr.animate})):(0===nr&&lr.range.stop(1,1)[cr?"animate":"css"]({bottom:tr+"%"},sr.animate),1===nr&&lr.range[cr?"animate":"css"]({height:tr-rr+"%"},{queue:!1,duration:sr.animate}))),rr=tr})):(nr=this.value(),ir=this._valueMin(),or=this._valueMax(),tr=or!==ir?(nr-ir)/(or-ir)*100:0,ur["horizontal"===lr.orientation?"left":"bottom"]=tr+"%",this.handle.stop(1,1)[cr?"animate":"css"](ur,sr.animate),"min"===ar&&"horizontal"===this.orientation&&this.range.stop(1,1)[cr?"animate":"css"]({width:tr+"%"},sr.animate),"max"===ar&&"horizontal"===this.orientation&&this.range[cr?"animate":"css"]({width:100-tr+"%"},{queue:!1,duration:sr.animate}),"min"===ar&&"vertical"===this.orientation&&this.range.stop(1,1)[cr?"animate":"css"]({height:tr+"%"},sr.animate),"max"===ar&&"vertical"===this.orientation&&this.range[cr?"animate":"css"]({height:100-tr+"%"},{queue:!1,duration:sr.animate}))}}),er.extend(er.ui.slider,{version:"1.8.17"})}(jQuery);var os=document.createElement("template");os.innerHTML='\n <style>\n :host :hover :not(.disabled)\n {\n background-color: #ffc;\n }\n div\n {\n height: 24px;\n width: 24px;\n margin: 2px 2px 4px;\n padding: 3px;\n box-shadow: inset 1px 1px 2px white, 1px 1px 1px rgba(0,0,0,0.3);\n background-color: #E8E8E8;\n cursor: pointer;\n border-radius: 3px;\n }\n .small {\n width: 14px;\n height: 14px;\n padding: 1px;\n border-radius: 1px;\n }\n img {\n border: none;\n overflow: none;\n width: 100%;\n height: 100%;\n }\n .pressed {\n background-color: #F4E284 !important;\n box-shadow: inset 1px 1px 2px rgba(0,0,0,0.4), 1px 1px 0 white !important;\n }\n .disabled {\n opacity: 0.3;\n cursor: default;\n }\n </style>\n <div title="title">\n <img src="./images/logo.svg" alt="icon">\n </div>\n';var as=function(er){_inherits(ToolButton,_wrapNativeSuper(HTMLElement));var tr=_createSuper(ToolButton);function ToolButton(){var er;return _classCallCheck(this,ToolButton),(er=tr.call(this))._shadowRoot=er.attachShadow({mode:"open"}),er._shadowRoot.appendChild(os.content.cloneNode(!0)),er.$div=er._shadowRoot.querySelector("div"),er.$img=er._shadowRoot.querySelector("img"),er}return _createClass(ToolButton,[{key:"attributeChangedCallback",value:function attributeChangedCallback(er,tr,rr){if(tr!==rr)switch(er){case"title":var nr=this.getAttribute("shortcut");this.$div.setAttribute("title","".concat(rr," ").concat(nr?"[".concat(nr,"]"):""));break;case"src":this.$img.setAttribute("src",rr);break;case"pressed":rr?this.$div.classList.add("pressed"):this.$div.classList.remove("pressed");break;case"size":"small"===rr?this.$div.classList.add("small"):this.$div.classList.remove("small");break;case"disabled":rr?this.$div.classList.add("disabled"):this.$div.classList.remove("disabled");break;default:console.error("unknown attribute: ".concat(er))}}},{key:"connectedCallback",value:function connectedCallback(){var er=this,tr=this.getAttribute("shortcut");tr&&document.addEventListener("keydown",(function(rr){if("BODY"===rr.target.nodeName){var nr="".concat(rr.metaKey?"meta+":"").concat(rr.ctrlKey?"ctrl+":"").concat(rr.key.toUpperCase());tr===nr&&(er.click(),rr.preventDefault())}}))}},{key:"title",get:function get(){return this.getAttribute("title")},set:function set(er){this.setAttribute("title",er)}},{key:"pressed",get:function get(){return this.hasAttribute("pressed")},set:function set(er){er?this.setAttribute("pressed","true"):this.removeAttribute("pressed","")}},{key:"disabled",get:function get(){return this.hasAttribute("disabled")},set:function set(er){er?this.setAttribute("disabled","true"):this.removeAttribute("disabled","")}},{key:"src",get:function get(){return this.getAttribute("src")},set:function set(er){this.setAttribute("src",er)}},{key:"size",get:function get(){return this.getAttribute("size")},set:function set(er){this.setAttribute("size",er)}}],[{key:"observedAttributes",get:function get(){return["title","src","pressed","disabled","size"]}}]),ToolButton}();customElements.define("se-button",as);var ss=ui.every,ls=arrayMethodIsStrict("every"),us=arrayMethodUsesToLength("every");_export({target:"Array",proto:!0,forced:!ls||!us},{every:function every(er){return ss(this,er,arguments.length>1?arguments[1]:void 0)}});var ds=ui.forEach,hs=arrayMethodIsStrict("forEach"),ps=arrayMethodUsesToLength("forEach"),As=hs&&ps?[].forEach:function forEach(er){return ds(this,er,arguments.length>1?arguments[1]:void 0)};_export({target:"Array",proto:!0,forced:[].forEach!=As},{forEach:As});var fs=qr.includes,gs=arrayMethodUsesToLength("indexOf",{ACCESSORS:!0,1:0});_export({target:"Array",proto:!0,forced:!gs},{includes:function includes(er){return fs(this,er,arguments.length>1?arguments[1]:void 0)}}),addToUnscopables("includes");var createMethod$4=function(er){return function(tr,rr,nr,ir){aFunction$1(rr);var or=toObject(tr),ar=lr(or),sr=toLength(or.length),cr=er?sr-1:0,ur=er?-1:1;if(nr<2)for(;;){if(cr in ar){ir=ar[cr],cr+=ur;break}if(cr+=ur,er?cr<0:sr<=cr)throw TypeError("Reduce of empty array with no initial value")}for(;er?cr>=0:sr>cr;cr+=ur)cr in ar&&(ir=rr(ir,ar[cr],cr,or));return ir}},ms={left:createMethod$4(!1),right:createMethod$4(!0)},_s=ms.left,vs=arrayMethodIsStrict("reduce"),ys=arrayMethodUsesToLength("reduce",{1:0});_export({target:"Array",proto:!0,forced:!vs||!ys},{reduce:function reduce(er){return _s(this,er,arguments.length,arguments.length>1?arguments[1]:void 0)}});var bs=ui.some,ws=arrayMethodIsStrict("some"),Ss=arrayMethodUsesToLength("some");_export({target:"Array",proto:!0,forced:!ws||!Ss},{some:function some(er){return bs(this,er,arguments.length>1?arguments[1]:void 0)}});var xs=Jr.f,ks=Ar.f,Cs=gr.f,Bs=yo.trim,Es=tr.Number,Ns=Es.prototype,Ls="Number"==classofRaw(wi(Ns)),toNumber=function(er){var tr,rr,nr,ir,or,ar,sr,lr,cr=toPrimitive(er,!1);if("string"==typeof cr&&cr.length>2)if(43===(tr=(cr=Bs(cr)).charCodeAt(0))||45===tr){if(88===(rr=cr.charCodeAt(2))||120===rr)return NaN}else if(48===tr){switch(cr.charCodeAt(1)){case 66:case 98:nr=2,ir=49;break;case 79:case 111:nr=8,ir=55;break;default:return+cr}for(ar=(or=cr.slice(2)).length,sr=0;sr<ar;sr++)if((lr=or.charCodeAt(sr))<48||lr>ir)return NaN;return parseInt(or,nr)}return+cr};if(Gn("Number",!Es(" 0o1")||!Es("0b1")||Es("+0x1"))){for(var Ts,Ps=function Number(er){var tr=arguments.length<1?0:er,rr=this;return rr instanceof Ps&&(Ls?fails((function(){Ns.valueOf.call(rr)})):"Number"!=classofRaw(rr))?inheritIfRequired(new Es(toNumber(tr)),rr,Ps):toNumber(tr)},Fs=rr?xs(Es):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),Us=0;Fs.length>Us;Us++)has(Es,Ts=Fs[Us])&&!has(Ps,Ts)&&Cs(Ps,Ts,ks(Es,Ts));Ps.prototype=Ns,Ns.constructor=Ps,Dr(tr,"Number",Ps)}_export({target:"Number",stat:!0},{isNaN:function isNaN(er){return er!=er}}),_export({target:"Number",stat:!0,forced:Number.parseFloat!=xo},{parseFloat:xo}),_export({target:"Number",stat:!0,forced:Number.parseInt!=Eo},{parseInt:Eo});var Is=or.f,createMethod$5=function(er){return function(tr){for(var nr,ir=toIndexedObject(tr),or=mi(ir),ar=or.length,sr=0,lr=[];ar>sr;)nr=or[sr++],rr&&!Is.call(ir,nr)||lr.push(er?[nr,ir[nr]]:ir[nr]);return lr}},Rs={entries:createMethod$5(!0),values:createMethod$5(!1)},Ms=Rs.entries;_export({target:"Object",stat:!0},{entries:function entries(er){return Ms(er)}});var Os=fails((function(){mi(1)}));_export({target:"Object",stat:!0,forced:Os},{keys:function keys(er){return mi(toObject(er))}});var Qs=Rs.values;_export({target:"Object",stat:!0},{values:function values(er){return Qs(er)}});var Ds=tr.Promise,redefineAll=function(er,tr,rr){for(var nr in tr)Dr(er,nr,tr[nr],rr);return er},anInstance=function(er,tr,rr){if(!(er instanceof tr))throw TypeError("Incorrect "+(rr?rr+" ":"")+"invocation");return er},js=wellKnownSymbol("iterator"),Hs=Array.prototype,isArrayIteratorMethod=function(er){return void 0!==er&&(Ca.Array===er||Hs[js]===er)},Gs=wellKnownSymbol("iterator"),getIteratorMethod=function(er){if(null!=er)return er[Gs]||er["@@iterator"]||Ca[Ao(er)]},callWithSafeIterationClosing=function(er,tr,rr,nr){try{return nr?tr(anObject(rr)[0],rr[1]):tr(rr)}catch(tr){var ir=er.return;throw void 0!==ir&&anObject(ir.call(er)),tr}},Vs=createCommonjsModule((function(er){var Result=function(er,tr){this.stopped=er,this.result=tr};(er.exports=function(er,tr,rr,nr,ir){var or,ar,sr,lr,cr,ur,dr,hr=functionBindContext(tr,rr,nr?2:1);if(ir)or=er;else{if("function"!=typeof(ar=getIteratorMethod(er)))throw TypeError("Target is not iterable");if(isArrayIteratorMethod(ar)){for(sr=0,lr=toLength(er.length);lr>sr;sr++)if((cr=nr?hr(anObject(dr=er[sr])[0],dr[1]):hr(er[sr]))&&cr instanceof Result)return cr;return new Result(!1)}or=ar.call(er)}for(ur=or.next;!(dr=ur.call(or)).done;)if("object"==typeof(cr=callWithSafeIterationClosing(or,hr,dr.value,nr))&&cr&&cr instanceof Result)return cr;return new Result(!1)}).stop=function(er){return new Result(!0,er)}})),zs=wellKnownSymbol("iterator"),Ks=!1;try{var qs=0,Ws={next:function(){return{done:!!qs++}},return:function(){Ks=!0}};Ws[zs]=function(){return this},Array.from(Ws,(function(){throw 2}))}catch(er){}var Xs,Ys,Js,checkCorrectnessOfIteration=function(er,tr){if(!tr&&!Ks)return!1;var rr=!1;try{var nr={};nr[zs]=function(){return{next:function(){return{done:rr=!0}}}},er(nr)}catch(er){}return rr},$s=/(iphone|ipod|ipad).*applewebkit/i.test(Zn),Zs=tr.location,el=tr.setImmediate,tl=tr.clearImmediate,rl=tr.process,nl=tr.MessageChannel,il=tr.Dispatch,ol=0,al={},run=function(er){if(al.hasOwnProperty(er)){var tr=al[er];delete al[er],tr()}},runner=function(er){return function(){run(er)}},listener=function(er){run(er.data)},post=function(er){tr.postMessage(er+"",Zs.protocol+"//"+Zs.host)};el&&tl||(el=function setImmediate(er){for(var tr=[],rr=1;arguments.length>rr;)tr.push(arguments[rr++]);return al[++ol]=function(){("function"==typeof er?er:Function(er)).apply(void 0,tr)},Xs(ol),ol},tl=function clearImmediate(er){delete al[er]},"process"==classofRaw(rl)?Xs=function(er){rl.nextTick(runner(er))}:il&&il.now?Xs=function(er){il.now(runner(er))}:nl&&!$s?(Js=(Ys=new nl).port2,Ys.port1.onmessage=listener,Xs=functionBindContext(Js.postMessage,Js,1)):!tr.addEventListener||"function"!=typeof postMessage||tr.importScripts||fails(post)||"file:"===Zs.protocol?Xs="onreadystatechange"in documentCreateElement("script")?function(er){vi.appendChild(documentCreateElement("script")).onreadystatechange=function(){vi.removeChild(this),run(er)}}:function(er){setTimeout(runner(er),0)}:(Xs=post,tr.addEventListener("message",listener,!1)));var sl,ll,cl,ul,dl,hl,pl,Al,fl={set:el,clear:tl},gl=Ar.f,ml=fl.set,_l=tr.MutationObserver||tr.WebKitMutationObserver,vl=tr.process,yl=tr.Promise,wl="process"==classofRaw(vl),Sl=gl(tr,"queueMicrotask"),xl=Sl&&Sl.value;xl||(sl=function(){var er,tr;for(wl&&(er=vl.domain)&&er.exit();ll;){tr=ll.fn,ll=ll.next;try{tr()}catch(er){throw ll?ul():cl=void 0,er}}cl=void 0,er&&er.enter()},wl?ul=function(){vl.nextTick(sl)}:_l&&!$s?(dl=!0,hl=document.createTextNode(""),new _l(sl).observe(hl,{characterData:!0}),ul=function(){hl.data=dl=!dl}):yl&&yl.resolve?(pl=yl.resolve(void 0),Al=pl.then,ul=function(){Al.call(pl,sl)}):ul=function(){ml.call(tr,sl)});var kl,Cl,Bl,El,Nl=xl||function(er){var tr={fn:er,next:void 0};cl&&(cl.next=tr),ll||(ll=tr,ul()),cl=tr},PromiseCapability=function(er){var tr,rr;this.promise=new er((function(er,nr){if(void 0!==tr||void 0!==rr)throw TypeError("Bad Promise constructor");tr=er,rr=nr})),this.resolve=aFunction$1(tr),this.reject=aFunction$1(rr)},Ll={f:function(er){return new PromiseCapability(er)}},promiseResolve=function(er,tr){if(anObject(er),isObject(tr)&&tr.constructor===er)return tr;var rr=Ll.f(er);return(0,rr.resolve)(tr),rr.promise},perform=function(er){try{return{error:!1,value:er()}}catch(er){return{error:!0,value:er}}},Tl=fl.set,Pl=wellKnownSymbol("species"),Fl="Promise",Ul=Qr.get,Il=Qr.set,Rl=Qr.getterFor(Fl),Ml=Ds,Ol=tr.TypeError,Ql=tr.document,Dl=tr.process,jl=getBuiltIn("fetch"),Hl=Ll.f,Gl=Hl,Vl="process"==classofRaw(Dl),zl=!!(Ql&&Ql.createEvent&&tr.dispatchEvent),Kl=Gn(Fl,(function(){if(!(Sr(Ml)!==String(Ml))){if(66===ni)return!0;if(!Vl&&"function"!=typeof PromiseRejectionEvent)return!0}if(ni>=51&&/native code/.test(Ml))return!1;var er=Ml.resolve(1),FakePromise=function(er){er((function(){}),(function(){}))};return(er.constructor={})[Pl]=FakePromise,!(er.then((function(){}))instanceof FakePromise)})),ql=Kl||!checkCorrectnessOfIteration((function(er){Ml.all(er).catch((function(){}))})),isThenable=function(er){var tr;return!(!isObject(er)||"function"!=typeof(tr=er.then))&&tr},notify$1=function(er,tr,rr){if(!tr.notified){tr.notified=!0;var nr=tr.reactions;Nl((function(){for(var ir=tr.value,or=1==tr.state,ar=0;nr.length>ar;){var sr,lr,cr,ur=nr[ar++],dr=or?ur.ok:ur.fail,hr=ur.resolve,pr=ur.reject,Ar=ur.domain;try{dr?(or||(2===tr.rejection&&onHandleUnhandled(er,tr),tr.rejection=1),!0===dr?sr=ir:(Ar&&Ar.enter(),sr=dr(ir),Ar&&(Ar.exit(),cr=!0)),sr===ur.promise?pr(Ol("Promise-chain cycle")):(lr=isThenable(sr))?lr.call(sr,hr,pr):hr(sr)):pr(ir)}catch(er){Ar&&!cr&&Ar.exit(),pr(er)}}tr.reactions=[],tr.notified=!1,rr&&!tr.rejection&&onUnhandled(er,tr)}))}},dispatchEvent=function(er,rr,nr){var ir,or;zl?((ir=Ql.createEvent("Event")).promise=rr,ir.reason=nr,ir.initEvent(er,!1,!0),tr.dispatchEvent(ir)):ir={promise:rr,reason:nr},(or=tr["on"+er])?or(ir):"unhandledrejection"===er&&function(er,rr){var nr=tr.console;nr&&nr.error&&(1===arguments.length?nr.error(er):nr.error(er,rr))}("Unhandled promise rejection",nr)},onUnhandled=function(er,rr){Tl.call(tr,(function(){var tr,nr=rr.value;if(isUnhandled(rr)&&(tr=perform((function(){Vl?Dl.emit("unhandledRejection",nr,er):dispatchEvent("unhandledrejection",er,nr)})),rr.rejection=Vl||isUnhandled(rr)?2:1,tr.error))throw tr.value}))},isUnhandled=function(er){return 1!==er.rejection&&!er.parent},onHandleUnhandled=function(er,rr){Tl.call(tr,(function(){Vl?Dl.emit("rejectionHandled",er):dispatchEvent("rejectionhandled",er,rr.value)}))},bind=function(er,tr,rr,nr){return function(ir){er(tr,rr,ir,nr)}},internalReject=function(er,tr,rr,nr){tr.done||(tr.done=!0,nr&&(tr=nr),tr.value=rr,tr.state=2,notify$1(er,tr,!0))},internalResolve=function(er,tr,rr,nr){if(!tr.done){tr.done=!0,nr&&(tr=nr);try{if(er===rr)throw Ol("Promise can't be resolved itself");var ir=isThenable(rr);ir?Nl((function(){var nr={done:!1};try{ir.call(rr,bind(internalResolve,er,nr,tr),bind(internalReject,er,nr,tr))}catch(rr){internalReject(er,nr,rr,tr)}})):(tr.value=rr,tr.state=1,notify$1(er,tr,!1))}catch(rr){internalReject(er,{done:!1},rr,tr)}}};Kl&&(Ml=function Promise(er){anInstance(this,Ml,Fl),aFunction$1(er),kl.call(this);var tr=Ul(this);try{er(bind(internalResolve,this,tr),bind(internalReject,this,tr))}catch(er){internalReject(this,tr,er)}},(kl=function Promise(er){Il(this,{type:Fl,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=redefineAll(Ml.prototype,{then:function then(er,tr){var rr=Rl(this),nr=Hl(speciesConstructor(this,Ml));return nr.ok="function"!=typeof er||er,nr.fail="function"==typeof tr&&tr,nr.domain=Vl?Dl.domain:void 0,rr.parent=!0,rr.reactions.push(nr),0!=rr.state&¬ify$1(this,rr,!1),nr.promise},catch:function(er){return this.then(void 0,er)}}),Cl=function(){var er=new kl,tr=Ul(er);this.promise=er,this.resolve=bind(internalResolve,er,tr),this.reject=bind(internalReject,er,tr)},Ll.f=Hl=function(er){return er===Ml||er===Bl?new Cl(er):Gl(er)},"function"==typeof Ds&&(El=Ds.prototype.then,Dr(Ds.prototype,"then",(function then(er,tr){var rr=this;return new Ml((function(er,tr){El.call(rr,er,tr)})).then(er,tr)}),{unsafe:!0}),"function"==typeof jl&&_export({global:!0,enumerable:!0,forced:!0},{fetch:function fetch(er){return promiseResolve(Ml,jl.apply(tr,arguments))}}))),_export({global:!0,wrap:!0,forced:Kl},{Promise:Ml}),setToStringTag(Ml,Fl,!1),setSpecies(Fl),Bl=getBuiltIn(Fl),_export({target:Fl,stat:!0,forced:Kl},{reject:function reject(er){var tr=Hl(this);return tr.reject.call(void 0,er),tr.promise}}),_export({target:Fl,stat:!0,forced:Kl},{resolve:function resolve(er){return promiseResolve(this,er)}}),_export({target:Fl,stat:!0,forced:ql},{all:function all(er){var tr=this,rr=Hl(tr),nr=rr.resolve,ir=rr.reject,or=perform((function(){var rr=aFunction$1(tr.resolve),or=[],ar=0,sr=1;Vs(er,(function(er){var lr=ar++,cr=!1;or.push(void 0),sr++,rr.call(tr,er).then((function(er){cr||(cr=!0,or[lr]=er,--sr||nr(or))}),ir)})),--sr||nr(or)}));return or.error&&ir(or.value),rr.promise},race:function race(er){var tr=this,rr=Hl(tr),nr=rr.reject,ir=perform((function(){var ir=aFunction$1(tr.resolve);Vs(er,(function(er){ir.call(tr,er).then(rr.resolve,nr)}))}));return ir.error&&nr(ir.value),rr.promise}});var notARegexp=function(er){if(isRegexp(er))throw TypeError("The method doesn't accept regular expressions");return er},Wl=wellKnownSymbol("match"),correctIsRegexpLogic=function(er){var tr=/./;try{"/./"[er](tr)}catch(rr){try{return tr[Wl]=!1,"/./"[er](tr)}catch(er){}}return!1};_export({target:"String",proto:!0,forced:!correctIsRegexpLogic("includes")},{includes:function includes(er){return!!~String(requireObjectCoercible(this)).indexOf(notARegexp(er),arguments.length>1?arguments[1]:void 0)}});var Xl=ua.charAt,Yl=Qr.set,Jl=Qr.getterFor("String Iterator");defineIterator(String,"String",(function(er){Yl(this,{type:"String Iterator",string:String(er),index:0})}),(function next(){var er,tr=Jl(this),rr=tr.string,nr=tr.index;return nr>=rr.length?{value:void 0,done:!0}:(er=Xl(rr,nr),tr.index+=er.length,{value:er,done:!1})}));var $l=Object.is||function is(er,tr){return er===tr?0!==er||1/er==1/tr:er!=er&&tr!=tr};fixRegexpWellKnownSymbolLogic("search",1,(function(er,tr,rr){return[function search(tr){var rr=requireObjectCoercible(this),nr=null==tr?void 0:tr[er];return void 0!==nr?nr.call(tr,rr):new RegExp(tr)[er](String(rr))},function(er){var nr=rr(tr,er,this);if(nr.done)return nr.value;var ir=anObject(er),or=String(this),ar=ir.lastIndex;$l(ar,0)||(ir.lastIndex=0);var sr=regexpExecAbstract(ir,or);return $l(ir.lastIndex,ar)||(ir.lastIndex=ar),null===sr?-1:sr.index}]}));var Zl,ec=Ar.f,tc="".startsWith,rc=Math.min,nc=correctIsRegexpLogic("startsWith"),ic=!(nc||(Zl=ec(String.prototype,"startsWith"),!Zl||Zl.writable));for(var oc in _export({target:"String",proto:!0,forced:!ic&&!nc},{startsWith:function startsWith(er){var tr=String(requireObjectCoercible(this));notARegexp(er);var rr=toLength(rc(arguments.length>1?arguments[1]:void 0,tr.length)),nr=String(er);return tc?tc.call(tr,nr,rr):tr.slice(rr,rr+nr.length)===nr}}),Ya){var ac=tr[oc],sc=ac&&ac.prototype;if(sc&&sc.forEach!==As)try{mr(sc,"forEach",As)}catch(er){sc.forEach=As}}var lc=wellKnownSymbol("iterator"),uc=!fails((function(){var er=new URL("b?a=1&b=2&c=3","http://a"),tr=er.searchParams,rr="";return er.pathname="c%20d",tr.forEach((function(er,nr){tr.delete("b"),rr+=nr+er})),!tr.sort||"http://a/c%20d?a=1&c=3"!==er.href||"3"!==tr.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!tr[lc]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==rr||"x"!==new URL("http://x",void 0).host})),dc=Object.assign,hc=Object.defineProperty,pc=!dc||fails((function(){if(rr&&1!==dc({b:1},dc(hc({},"a",{enumerable:!0,get:function(){hc(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var er={},tr={},nr=Symbol(),ir="abcdefghijklmnopqrst";return er[nr]=7,ir.split("").forEach((function(er){tr[er]=er})),7!=dc({},er)[nr]||mi(dc({},tr)).join("")!=ir}))?function assign(er,tr){for(var nr=toObject(er),ir=arguments.length,ar=1,sr=$r.f,cr=or.f;ir>ar;)for(var ur,dr=lr(arguments[ar++]),hr=sr?mi(dr).concat(sr(dr)):mi(dr),pr=hr.length,Ar=0;pr>Ar;)ur=hr[Ar++],rr&&!cr.call(dr,ur)||(nr[ur]=dr[ur]);return nr}:dc,Ac=function from(er){var tr,rr,nr,ir,or,ar,sr=toObject(er),lr="function"==typeof this?this:Array,cr=arguments.length,ur=cr>1?arguments[1]:void 0,dr=void 0!==ur,hr=getIteratorMethod(sr),pr=0;if(dr&&(ur=functionBindContext(ur,cr>2?arguments[2]:void 0,2)),null==hr||lr==Array&&isArrayIteratorMethod(hr))for(rr=new lr(tr=toLength(sr.length));tr>pr;pr++)ar=dr?ur(sr[pr],pr):sr[pr],createProperty(rr,pr,ar);else for(or=(ir=hr.call(sr)).next,rr=new lr;!(nr=or.call(ir)).done;pr++)ar=dr?callWithSafeIterationClosing(ir,ur,[nr.value,pr],!0):nr.value,createProperty(rr,pr,ar);return rr.length=pr,rr},fc=/[^\0-\u007E]/,gc=/[.\u3002\uFF0E\uFF61]/g,mc="Overflow: input needs wider integers to process",_c=Math.floor,vc=String.fromCharCode,digitToBasic=function(er){return er+22+75*(er<26)},adapt=function(er,tr,rr){var nr=0;for(er=rr?_c(er/700):er>>1,er+=_c(er/tr);er>455;nr+=36)er=_c(er/35);return _c(nr+36*er/(er+38))},encode=function(er){var tr,rr,nr=[],ir=(er=function(er){for(var tr=[],rr=0,nr=er.length;rr<nr;){var ir=er.charCodeAt(rr++);if(ir>=55296&&ir<=56319&&rr<nr){var or=er.charCodeAt(rr++);56320==(64512&or)?tr.push(((1023&ir)<<10)+(1023&or)+65536):(tr.push(ir),rr--)}else tr.push(ir)}return tr}(er)).length,or=128,ar=0,sr=72;for(tr=0;tr<er.length;tr++)(rr=er[tr])<128&&nr.push(vc(rr));var lr=nr.length,cr=lr;for(lr&&nr.push("-");cr<ir;){var ur=2147483647;for(tr=0;tr<er.length;tr++)(rr=er[tr])>=or&&rr<ur&&(ur=rr);var dr=cr+1;if(ur-or>_c((2147483647-ar)/dr))throw RangeError(mc);for(ar+=(ur-or)*dr,or=ur,tr=0;tr<er.length;tr++){if((rr=er[tr])<or&&++ar>2147483647)throw RangeError(mc);if(rr==or){for(var hr=ar,pr=36;;pr+=36){var Ar=pr<=sr?1:pr>=sr+26?26:pr-sr;if(hr<Ar)break;var fr=hr-Ar,gr=36-Ar;nr.push(vc(digitToBasic(Ar+fr%gr))),hr=_c(fr/gr)}nr.push(vc(digitToBasic(hr))),sr=adapt(ar,dr,cr==lr),ar=0,++cr}}++ar,++or}return nr.join("")},getIterator=function(er){var tr=getIteratorMethod(er);if("function"!=typeof tr)throw TypeError(String(er)+" is not iterable");return anObject(tr.call(er))},yc=getBuiltIn("fetch"),bc=getBuiltIn("Headers"),wc=wellKnownSymbol("iterator"),Sc=Qr.set,xc=Qr.getterFor("URLSearchParams"),kc=Qr.getterFor("URLSearchParamsIterator"),Cc=/\+/g,Bc=Array(4),percentSequence=function(er){return Bc[er-1]||(Bc[er-1]=RegExp("((?:%[\\da-f]{2}){"+er+"})","gi"))},percentDecode=function(er){try{return decodeURIComponent(er)}catch(tr){return er}},deserialize=function(er){var tr=er.replace(Cc," "),rr=4;try{return decodeURIComponent(tr)}catch(er){for(;rr;)tr=tr.replace(percentSequence(rr--),percentDecode);return tr}},Ec=/[!'()~]|%20/g,Nc={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},replacer=function(er){return Nc[er]},serialize=function(er){return encodeURIComponent(er).replace(Ec,replacer)},parseSearchParams=function(er,tr){if(tr)for(var rr,nr,ir=tr.split("&"),or=0;or<ir.length;)(rr=ir[or++]).length&&(nr=rr.split("="),er.push({key:deserialize(nr.shift()),value:deserialize(nr.join("="))}))},updateSearchParams=function(er){this.entries.length=0,parseSearchParams(this.entries,er)},validateArgumentsLength=function(er,tr){if(er<tr)throw TypeError("Not enough arguments")},Lc=createIteratorConstructor((function Iterator(er,tr){Sc(this,{type:"URLSearchParamsIterator",iterator:getIterator(xc(er).entries),kind:tr})}),"Iterator",(function next(){var er=kc(this),tr=er.kind,rr=er.iterator.next(),nr=rr.value;return rr.done||(rr.value="keys"===tr?nr.key:"values"===tr?nr.value:[nr.key,nr.value]),rr})),Tc=function URLSearchParams(){anInstance(this,Tc,"URLSearchParams");var er,tr,rr,nr,ir,or,ar,sr,lr,cr=arguments.length>0?arguments[0]:void 0,ur=this,dr=[];if(Sc(ur,{type:"URLSearchParams",entries:dr,updateURL:function(){},updateSearchParams:updateSearchParams}),void 0!==cr)if(isObject(cr))if("function"==typeof(er=getIteratorMethod(cr)))for(rr=(tr=er.call(cr)).next;!(nr=rr.call(tr)).done;){if((ar=(or=(ir=getIterator(anObject(nr.value))).next).call(ir)).done||(sr=or.call(ir)).done||!or.call(ir).done)throw TypeError("Expected sequence with length 2");dr.push({key:ar.value+"",value:sr.value+""})}else for(lr in cr)has(cr,lr)&&dr.push({key:lr,value:cr[lr]+""});else parseSearchParams(dr,"string"==typeof cr?"?"===cr.charAt(0)?cr.slice(1):cr:cr+"")},Pc=Tc.prototype;redefineAll(Pc,{append:function append(er,tr){validateArgumentsLength(arguments.length,2);var rr=xc(this);rr.entries.push({key:er+"",value:tr+""}),rr.updateURL()},delete:function(er){validateArgumentsLength(arguments.length,1);for(var tr=xc(this),rr=tr.entries,nr=er+"",ir=0;ir<rr.length;)rr[ir].key===nr?rr.splice(ir,1):ir++;tr.updateURL()},get:function get(er){validateArgumentsLength(arguments.length,1);for(var tr=xc(this).entries,rr=er+"",nr=0;nr<tr.length;nr++)if(tr[nr].key===rr)return tr[nr].value;return null},getAll:function getAll(er){validateArgumentsLength(arguments.length,1);for(var tr=xc(this).entries,rr=er+"",nr=[],ir=0;ir<tr.length;ir++)tr[ir].key===rr&&nr.push(tr[ir].value);return nr},has:function has(er){validateArgumentsLength(arguments.length,1);for(var tr=xc(this).entries,rr=er+"",nr=0;nr<tr.length;)if(tr[nr++].key===rr)return!0;return!1},set:function set(er,tr){validateArgumentsLength(arguments.length,1);for(var rr,nr=xc(this),ir=nr.entries,or=!1,ar=er+"",sr=tr+"",lr=0;lr<ir.length;lr++)(rr=ir[lr]).key===ar&&(or?ir.splice(lr--,1):(or=!0,rr.value=sr));or||ir.push({key:ar,value:sr}),nr.updateURL()},sort:function sort(){var er,tr,rr,nr=xc(this),ir=nr.entries,or=ir.slice();for(ir.length=0,rr=0;rr<or.length;rr++){for(er=or[rr],tr=0;tr<rr;tr++)if(ir[tr].key>er.key){ir.splice(tr,0,er);break}tr===rr&&ir.push(er)}nr.updateURL()},forEach:function forEach(er){for(var tr,rr=xc(this).entries,nr=functionBindContext(er,arguments.length>1?arguments[1]:void 0,3),ir=0;ir<rr.length;)nr((tr=rr[ir++]).value,tr.key,this)},keys:function keys(){return new Lc(this,"keys")},values:function values(){return new Lc(this,"values")},entries:function entries(){return new Lc(this,"entries")}},{enumerable:!0}),Dr(Pc,wc,Pc.entries),Dr(Pc,"toString",(function toString(){for(var er,tr=xc(this).entries,rr=[],nr=0;nr<tr.length;)er=tr[nr++],rr.push(serialize(er.key)+"="+serialize(er.value));return rr.join("&")}),{enumerable:!0}),setToStringTag(Tc,"URLSearchParams"),_export({global:!0,forced:!uc},{URLSearchParams:Tc}),uc||"function"!=typeof yc||"function"!=typeof bc||_export({global:!0,enumerable:!0,forced:!0},{fetch:function fetch(er){var tr,rr,nr,ir=[er];return arguments.length>1&&(isObject(tr=arguments[1])&&(rr=tr.body,"URLSearchParams"===Ao(rr)&&((nr=tr.headers?new bc(tr.headers):new bc).has("content-type")||nr.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),tr=wi(tr,{body:createPropertyDescriptor(0,String(rr)),headers:createPropertyDescriptor(0,nr)}))),ir.push(tr)),yc.apply(this,ir)}});var Fc,Uc={URLSearchParams:Tc,getState:xc},Ic=ua.codeAt,Rc=tr.URL,Mc=Uc.URLSearchParams,Oc=Uc.getState,Qc=Qr.set,Dc=Qr.getterFor("URL"),jc=Math.floor,Hc=Math.pow,Gc=/[A-Za-z]/,Vc=/[\d+-.A-Za-z]/,zc=/\d/,Kc=/^(0x|0X)/,qc=/^[0-7]+$/,Wc=/^\d+$/,Xc=/^[\dA-Fa-f]+$/,Yc=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,Jc=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,$c=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,Zc=/[\u0009\u000A\u000D]/g,parseHost=function(er,tr){var rr,nr,ir;if("["==tr.charAt(0)){if("]"!=tr.charAt(tr.length-1))return"Invalid host";if(!(rr=parseIPv6(tr.slice(1,-1))))return"Invalid host";er.host=rr}else if(isSpecial(er)){if(tr=function(er){var tr,rr,nr=[],ir=er.toLowerCase().replace(gc,".").split(".");for(tr=0;tr<ir.length;tr++)rr=ir[tr],nr.push(fc.test(rr)?"xn--"+encode(rr):rr);return nr.join(".")}(tr),Yc.test(tr))return"Invalid host";if(null===(rr=parseIPv4(tr)))return"Invalid host";er.host=rr}else{if(Jc.test(tr))return"Invalid host";for(rr="",nr=Ac(tr),ir=0;ir<nr.length;ir++)rr+=percentEncode(nr[ir],eu);er.host=rr}},parseIPv4=function(er){var tr,rr,nr,ir,or,ar,sr,lr=er.split(".");if(lr.length&&""==lr[lr.length-1]&&lr.pop(),(tr=lr.length)>4)return er;for(rr=[],nr=0;nr<tr;nr++){if(""==(ir=lr[nr]))return er;if(or=10,ir.length>1&&"0"==ir.charAt(0)&&(or=Kc.test(ir)?16:8,ir=ir.slice(8==or?1:2)),""===ir)ar=0;else{if(!(10==or?Wc:8==or?qc:Xc).test(ir))return er;ar=parseInt(ir,or)}rr.push(ar)}for(nr=0;nr<tr;nr++)if(ar=rr[nr],nr==tr-1){if(ar>=Hc(256,5-tr))return null}else if(ar>255)return null;for(sr=rr.pop(),nr=0;nr<rr.length;nr++)sr+=rr[nr]*Hc(256,3-nr);return sr},parseIPv6=function(er){var tr,rr,nr,ir,or,ar,sr,lr=[0,0,0,0,0,0,0,0],cr=0,ur=null,dr=0,char=function(){return er.charAt(dr)};if(":"==char()){if(":"!=er.charAt(1))return;dr+=2,ur=++cr}for(;char();){if(8==cr)return;if(":"!=char()){for(tr=rr=0;rr<4&&Xc.test(char());)tr=16*tr+parseInt(char(),16),dr++,rr++;if("."==char()){if(0==rr)return;if(dr-=rr,cr>6)return;for(nr=0;char();){if(ir=null,nr>0){if(!("."==char()&&nr<4))return;dr++}if(!zc.test(char()))return;for(;zc.test(char());){if(or=parseInt(char(),10),null===ir)ir=or;else{if(0==ir)return;ir=10*ir+or}if(ir>255)return;dr++}lr[cr]=256*lr[cr]+ir,2!=++nr&&4!=nr||cr++}if(4!=nr)return;break}if(":"==char()){if(dr++,!char())return}else if(char())return;lr[cr++]=tr}else{if(null!==ur)return;dr++,ur=++cr}}if(null!==ur)for(ar=cr-ur,cr=7;0!=cr&&ar>0;)sr=lr[cr],lr[cr--]=lr[ur+ar-1],lr[ur+--ar]=sr;else if(8!=cr)return;return lr},serializeHost=function(er){var tr,rr,nr,ir;if("number"==typeof er){for(tr=[],rr=0;rr<4;rr++)tr.unshift(er%256),er=jc(er/256);return tr.join(".")}if("object"==typeof er){for(tr="",nr=function(er){for(var tr=null,rr=1,nr=null,ir=0,or=0;or<8;or++)0!==er[or]?(ir>rr&&(tr=nr,rr=ir),nr=null,ir=0):(null===nr&&(nr=or),++ir);return ir>rr&&(tr=nr,rr=ir),tr}(er),rr=0;rr<8;rr++)ir&&0===er[rr]||(ir&&(ir=!1),nr===rr?(tr+=rr?":":"::",ir=!0):(tr+=er[rr].toString(16),rr<7&&(tr+=":")));return"["+tr+"]"}return er},eu={},tu=pc({},eu,{" ":1,'"':1,"<":1,">":1,"`":1}),ru=pc({},tu,{"#":1,"?":1,"{":1,"}":1}),nu=pc({},ru,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),percentEncode=function(er,tr){var rr=Ic(er,0);return rr>32&&rr<127&&!has(tr,er)?er:encodeURIComponent(er)},iu={ftp:21,file:null,http:80,https:443,ws:80,wss:443},isSpecial=function(er){return has(iu,er.scheme)},includesCredentials=function(er){return""!=er.username||""!=er.password},cannotHaveUsernamePasswordPort=function(er){return!er.host||er.cannotBeABaseURL||"file"==er.scheme},isWindowsDriveLetter=function(er,tr){var rr;return 2==er.length&&Gc.test(er.charAt(0))&&(":"==(rr=er.charAt(1))||!tr&&"|"==rr)},startsWithWindowsDriveLetter=function(er){var tr;return er.length>1&&isWindowsDriveLetter(er.slice(0,2))&&(2==er.length||"/"===(tr=er.charAt(2))||"\\"===tr||"?"===tr||"#"===tr)},shortenURLsPath=function(er){var tr=er.path,rr=tr.length;!rr||"file"==er.scheme&&1==rr&&isWindowsDriveLetter(tr[0],!0)||tr.pop()},isSingleDot=function(er){return"."===er||"%2e"===er.toLowerCase()},ou={},au={},su={},lu={},uu={},du={},hu={},pu={},Au={},fu={},gu={},mu={},_u={},vu={},yu={},bu={},wu={},Su={},xu={},ku={},Cu={},parseURL=function(er,tr,rr,nr){var ir,or,ar,sr,lr,cr=rr||ou,ur=0,dr="",hr=!1,pr=!1,Ar=!1;for(rr||(er.scheme="",er.username="",er.password="",er.host=null,er.port=null,er.path=[],er.query=null,er.fragment=null,er.cannotBeABaseURL=!1,tr=tr.replace($c,"")),tr=tr.replace(Zc,""),ir=Ac(tr);ur<=ir.length;){switch(or=ir[ur],cr){case ou:if(!or||!Gc.test(or)){if(rr)return"Invalid scheme";cr=su;continue}dr+=or.toLowerCase(),cr=au;break;case au:if(or&&(Vc.test(or)||"+"==or||"-"==or||"."==or))dr+=or.toLowerCase();else{if(":"!=or){if(rr)return"Invalid scheme";dr="",cr=su,ur=0;continue}if(rr&&(isSpecial(er)!=has(iu,dr)||"file"==dr&&(includesCredentials(er)||null!==er.port)||"file"==er.scheme&&!er.host))return;if(er.scheme=dr,rr)return void(isSpecial(er)&&iu[er.scheme]==er.port&&(er.port=null));dr="","file"==er.scheme?cr=vu:isSpecial(er)&&nr&&nr.scheme==er.scheme?cr=lu:isSpecial(er)?cr=pu:"/"==ir[ur+1]?(cr=uu,ur++):(er.cannotBeABaseURL=!0,er.path.push(""),cr=xu)}break;case su:if(!nr||nr.cannotBeABaseURL&&"#"!=or)return"Invalid scheme";if(nr.cannotBeABaseURL&&"#"==or){er.scheme=nr.scheme,er.path=nr.path.slice(),er.query=nr.query,er.fragment="",er.cannotBeABaseURL=!0,cr=Cu;break}cr="file"==nr.scheme?vu:du;continue;case lu:if("/"!=or||"/"!=ir[ur+1]){cr=du;continue}cr=Au,ur++;break;case uu:if("/"==or){cr=fu;break}cr=Su;continue;case du:if(er.scheme=nr.scheme,or==Fc)er.username=nr.username,er.password=nr.password,er.host=nr.host,er.port=nr.port,er.path=nr.path.slice(),er.query=nr.query;else if("/"==or||"\\"==or&&isSpecial(er))cr=hu;else if("?"==or)er.username=nr.username,er.password=nr.password,er.host=nr.host,er.port=nr.port,er.path=nr.path.slice(),er.query="",cr=ku;else{if("#"!=or){er.username=nr.username,er.password=nr.password,er.host=nr.host,er.port=nr.port,er.path=nr.path.slice(),er.path.pop(),cr=Su;continue}er.username=nr.username,er.password=nr.password,er.host=nr.host,er.port=nr.port,er.path=nr.path.slice(),er.query=nr.query,er.fragment="",cr=Cu}break;case hu:if(!isSpecial(er)||"/"!=or&&"\\"!=or){if("/"!=or){er.username=nr.username,er.password=nr.password,er.host=nr.host,er.port=nr.port,cr=Su;continue}cr=fu}else cr=Au;break;case pu:if(cr=Au,"/"!=or||"/"!=dr.charAt(ur+1))continue;ur++;break;case Au:if("/"!=or&&"\\"!=or){cr=fu;continue}break;case fu:if("@"==or){hr&&(dr="%40"+dr),hr=!0,ar=Ac(dr);for(var fr=0;fr<ar.length;fr++){var gr=ar[fr];if(":"!=gr||Ar){var mr=percentEncode(gr,nu);Ar?er.password+=mr:er.username+=mr}else Ar=!0}dr=""}else if(or==Fc||"/"==or||"?"==or||"#"==or||"\\"==or&&isSpecial(er)){if(hr&&""==dr)return"Invalid authority";ur-=Ac(dr).length+1,dr="",cr=gu}else dr+=or;break;case gu:case mu:if(rr&&"file"==er.scheme){cr=bu;continue}if(":"!=or||pr){if(or==Fc||"/"==or||"?"==or||"#"==or||"\\"==or&&isSpecial(er)){if(isSpecial(er)&&""==dr)return"Invalid host";if(rr&&""==dr&&(includesCredentials(er)||null!==er.port))return;if(sr=parseHost(er,dr))return sr;if(dr="",cr=wu,rr)return;continue}"["==or?pr=!0:"]"==or&&(pr=!1),dr+=or}else{if(""==dr)return"Invalid host";if(sr=parseHost(er,dr))return sr;if(dr="",cr=_u,rr==mu)return}break;case _u:if(!zc.test(or)){if(or==Fc||"/"==or||"?"==or||"#"==or||"\\"==or&&isSpecial(er)||rr){if(""!=dr){var _r=parseInt(dr,10);if(_r>65535)return"Invalid port";er.port=isSpecial(er)&&_r===iu[er.scheme]?null:_r,dr=""}if(rr)return;cr=wu;continue}return"Invalid port"}dr+=or;break;case vu:if(er.scheme="file","/"==or||"\\"==or)cr=yu;else{if(!nr||"file"!=nr.scheme){cr=Su;continue}if(or==Fc)er.host=nr.host,er.path=nr.path.slice(),er.query=nr.query;else if("?"==or)er.host=nr.host,er.path=nr.path.slice(),er.query="",cr=ku;else{if("#"!=or){startsWithWindowsDriveLetter(ir.slice(ur).join(""))||(er.host=nr.host,er.path=nr.path.slice(),shortenURLsPath(er)),cr=Su;continue}er.host=nr.host,er.path=nr.path.slice(),er.query=nr.query,er.fragment="",cr=Cu}}break;case yu:if("/"==or||"\\"==or){cr=bu;break}nr&&"file"==nr.scheme&&!startsWithWindowsDriveLetter(ir.slice(ur).join(""))&&(isWindowsDriveLetter(nr.path[0],!0)?er.path.push(nr.path[0]):er.host=nr.host),cr=Su;continue;case bu:if(or==Fc||"/"==or||"\\"==or||"?"==or||"#"==or){if(!rr&&isWindowsDriveLetter(dr))cr=Su;else if(""==dr){if(er.host="",rr)return;cr=wu}else{if(sr=parseHost(er,dr))return sr;if("localhost"==er.host&&(er.host=""),rr)return;dr="",cr=wu}continue}dr+=or;break;case wu:if(isSpecial(er)){if(cr=Su,"/"!=or&&"\\"!=or)continue}else if(rr||"?"!=or)if(rr||"#"!=or){if(or!=Fc&&(cr=Su,"/"!=or))continue}else er.fragment="",cr=Cu;else er.query="",cr=ku;break;case Su:if(or==Fc||"/"==or||"\\"==or&&isSpecial(er)||!rr&&("?"==or||"#"==or)){if(".."===(lr=(lr=dr).toLowerCase())||"%2e."===lr||".%2e"===lr||"%2e%2e"===lr?(shortenURLsPath(er),"/"==or||"\\"==or&&isSpecial(er)||er.path.push("")):isSingleDot(dr)?"/"==or||"\\"==or&&isSpecial(er)||er.path.push(""):("file"==er.scheme&&!er.path.length&&isWindowsDriveLetter(dr)&&(er.host&&(er.host=""),dr=dr.charAt(0)+":"),er.path.push(dr)),dr="","file"==er.scheme&&(or==Fc||"?"==or||"#"==or))for(;er.path.length>1&&""===er.path[0];)er.path.shift();"?"==or?(er.query="",cr=ku):"#"==or&&(er.fragment="",cr=Cu)}else dr+=percentEncode(or,ru);break;case xu:"?"==or?(er.query="",cr=ku):"#"==or?(er.fragment="",cr=Cu):or!=Fc&&(er.path[0]+=percentEncode(or,eu));break;case ku:rr||"#"!=or?or!=Fc&&("'"==or&&isSpecial(er)?er.query+="%27":er.query+="#"==or?"%23":percentEncode(or,eu)):(er.fragment="",cr=Cu);break;case Cu:or!=Fc&&(er.fragment+=percentEncode(or,tu))}ur++}},Bu=function URL(er){var tr,nr,ir=anInstance(this,Bu,"URL"),or=arguments.length>1?arguments[1]:void 0,ar=String(er),sr=Qc(ir,{type:"URL"});if(void 0!==or)if(or instanceof Bu)tr=Dc(or);else if(nr=parseURL(tr={},String(or)))throw TypeError(nr);if(nr=parseURL(sr,ar,null,tr))throw TypeError(nr);var lr=sr.searchParams=new Mc,cr=Oc(lr);cr.updateSearchParams(sr.query),cr.updateURL=function(){sr.query=String(lr)||null},rr||(ir.href=serializeURL.call(ir),ir.origin=getOrigin.call(ir),ir.protocol=getProtocol.call(ir),ir.username=getUsername.call(ir),ir.password=getPassword.call(ir),ir.host=getHost.call(ir),ir.hostname=getHostname.call(ir),ir.port=getPort.call(ir),ir.pathname=getPathname.call(ir),ir.search=getSearch.call(ir),ir.searchParams=getSearchParams.call(ir),ir.hash=getHash.call(ir))},Eu=Bu.prototype,serializeURL=function(){var er=Dc(this),tr=er.scheme,rr=er.username,nr=er.password,ir=er.host,or=er.port,ar=er.path,sr=er.query,lr=er.fragment,cr=tr+":";return null!==ir?(cr+="//",includesCredentials(er)&&(cr+=rr+(nr?":"+nr:"")+"@"),cr+=serializeHost(ir),null!==or&&(cr+=":"+or)):"file"==tr&&(cr+="//"),cr+=er.cannotBeABaseURL?ar[0]:ar.length?"/"+ar.join("/"):"",null!==sr&&(cr+="?"+sr),null!==lr&&(cr+="#"+lr),cr},getOrigin=function(){var er=Dc(this),tr=er.scheme,rr=er.port;if("blob"==tr)try{return new URL(tr.path[0]).origin}catch(er){return"null"}return"file"!=tr&&isSpecial(er)?tr+"://"+serializeHost(er.host)+(null!==rr?":"+rr:""):"null"},getProtocol=function(){return Dc(this).scheme+":"},getUsername=function(){return Dc(this).username},getPassword=function(){return Dc(this).password},getHost=function(){var er=Dc(this),tr=er.host,rr=er.port;return null===tr?"":null===rr?serializeHost(tr):serializeHost(tr)+":"+rr},getHostname=function(){var er=Dc(this).host;return null===er?"":serializeHost(er)},getPort=function(){var er=Dc(this).port;return null===er?"":String(er)},getPathname=function(){var er=Dc(this),tr=er.path;return er.cannotBeABaseURL?tr[0]:tr.length?"/"+tr.join("/"):""},getSearch=function(){var er=Dc(this).query;return er?"?"+er:""},getSearchParams=function(){return Dc(this).searchParams},getHash=function(){var er=Dc(this).fragment;return er?"#"+er:""},accessorDescriptor=function(er,tr){return{get:er,set:tr,configurable:!0,enumerable:!0}};if(rr&&_i(Eu,{href:accessorDescriptor(serializeURL,(function(er){var tr=Dc(this),rr=String(er),nr=parseURL(tr,rr);if(nr)throw TypeError(nr);Oc(tr.searchParams).updateSearchParams(tr.query)})),origin:accessorDescriptor(getOrigin),protocol:accessorDescriptor(getProtocol,(function(er){var tr=Dc(this);parseURL(tr,String(er)+":",ou)})),username:accessorDescriptor(getUsername,(function(er){var tr=Dc(this),rr=Ac(String(er));if(!cannotHaveUsernamePasswordPort(tr)){tr.username="";for(var nr=0;nr<rr.length;nr++)tr.username+=percentEncode(rr[nr],nu)}})),password:accessorDescriptor(getPassword,(function(er){var tr=Dc(this),rr=Ac(String(er));if(!cannotHaveUsernamePasswordPort(tr)){tr.password="";for(var nr=0;nr<rr.length;nr++)tr.password+=percentEncode(rr[nr],nu)}})),host:accessorDescriptor(getHost,(function(er){var tr=Dc(this);tr.cannotBeABaseURL||parseURL(tr,String(er),gu)})),hostname:accessorDescriptor(getHostname,(function(er){var tr=Dc(this);tr.cannotBeABaseURL||parseURL(tr,String(er),mu)})),port:accessorDescriptor(getPort,(function(er){var tr=Dc(this);cannotHaveUsernamePasswordPort(tr)||(""==(er=String(er))?tr.port=null:parseURL(tr,er,_u))})),pathname:accessorDescriptor(getPathname,(function(er){var tr=Dc(this);tr.cannotBeABaseURL||(tr.path=[],parseURL(tr,er+"",wu))})),search:accessorDescriptor(getSearch,(function(er){var tr=Dc(this);""==(er=String(er))?tr.query=null:("?"==er.charAt(0)&&(er=er.slice(1)),tr.query="",parseURL(tr,er,ku)),Oc(tr.searchParams).updateSearchParams(tr.query)})),searchParams:accessorDescriptor(getSearchParams),hash:accessorDescriptor(getHash,(function(er){var tr=Dc(this);""!=(er=String(er))?("#"==er.charAt(0)&&(er=er.slice(1)),tr.fragment="",parseURL(tr,er,Cu)):tr.fragment=null}))}),Dr(Eu,"toJSON",(function toJSON(){return serializeURL.call(this)}),{enumerable:!0}),Dr(Eu,"toString",(function toString(){return serializeURL.call(this)}),{enumerable:!0}),Rc){var Nu=Rc.createObjectURL,Lu=Rc.revokeObjectURL;Nu&&Dr(Bu,"createObjectURL",(function createObjectURL(er){return Nu.apply(Rc,arguments)})),Lu&&Dr(Bu,"revokeObjectURL",(function revokeObjectURL(er){return Lu.apply(Rc,arguments)}))}setToStringTag(Bu,"URL"),_export({global:!0,forced:!uc,sham:!rr},{URL:Bu});var Tu=Jr.f,Pu={}.toString,Fu="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Uu={f:function getOwnPropertyNames(er){return Fu&&"[object Window]"==Pu.call(er)?function(er){try{return Tu(er)}catch(er){return Fu.slice()}}(er):Tu(toIndexedObject(er))}},Iu={f:wellKnownSymbol},Ru=gr.f,defineWellKnownSymbol=function(er){var tr=jr.Symbol||(jr.Symbol={});has(tr,er)||Ru(tr,er,{value:Iu.f(er)})},Mu=ui.forEach,Ou=sharedKey("hidden"),Qu=wellKnownSymbol("toPrimitive"),Du=Qr.set,ju=Qr.getterFor("Symbol"),Hu=Object.prototype,Gu=tr.Symbol,Vu=getBuiltIn("JSON","stringify"),zu=Ar.f,Ku=gr.f,qu=Uu.f,Wu=or.f,Xu=Cr("symbols"),Yu=Cr("op-symbols"),Ju=Cr("string-to-symbol-registry"),$u=Cr("symbol-to-string-registry"),Zu=Cr("wks"),ed=tr.QObject,td=!ed||!ed.prototype||!ed.prototype.findChild,rd=rr&&fails((function(){return 7!=wi(Ku({},"a",{get:function(){return Ku(this,"a",{value:7}).a}})).a}))?function(er,tr,rr){var nr=zu(Hu,tr);nr&&delete Hu[tr],Ku(er,tr,rr),nr&&er!==Hu&&Ku(Hu,tr,nr)}:Ku,wrap=function(er,tr){var nr=Xu[er]=wi(Gu.prototype);return Du(nr,{type:"Symbol",tag:er,description:tr}),rr||(nr.description=tr),nr},nd=Wn?function(er){return"symbol"==typeof er}:function(er){return Object(er)instanceof Gu},id=function defineProperty(er,tr,rr){er===Hu&&id(Yu,tr,rr),anObject(er);var nr=toPrimitive(tr,!0);return anObject(rr),has(Xu,nr)?(rr.enumerable?(has(er,Ou)&&er[Ou][nr]&&(er[Ou][nr]=!1),rr=wi(rr,{enumerable:createPropertyDescriptor(0,!1)})):(has(er,Ou)||Ku(er,Ou,createPropertyDescriptor(1,{})),er[Ou][nr]=!0),rd(er,nr,rr)):Ku(er,nr,rr)},od=function defineProperties(er,tr){anObject(er);var nr=toIndexedObject(tr),ir=mi(nr).concat(cd(nr));return Mu(ir,(function(tr){rr&&!ad.call(nr,tr)||id(er,tr,nr[tr])})),er},ad=function propertyIsEnumerable(er){var tr=toPrimitive(er,!0),rr=Wu.call(this,tr);return!(this===Hu&&has(Xu,tr)&&!has(Yu,tr))&&(!(rr||!has(this,tr)||!has(Xu,tr)||has(this,Ou)&&this[Ou][tr])||rr)},sd=function getOwnPropertyDescriptor(er,tr){var rr=toIndexedObject(er),nr=toPrimitive(tr,!0);if(rr!==Hu||!has(Xu,nr)||has(Yu,nr)){var ir=zu(rr,nr);return!ir||!has(Xu,nr)||has(rr,Ou)&&rr[Ou][nr]||(ir.enumerable=!0),ir}},ld=function getOwnPropertyNames(er){var tr=qu(toIndexedObject(er)),rr=[];return Mu(tr,(function(er){has(Xu,er)||has(Lr,er)||rr.push(er)})),rr},cd=function getOwnPropertySymbols(er){var tr=er===Hu,rr=qu(tr?Yu:toIndexedObject(er)),nr=[];return Mu(rr,(function(er){!has(Xu,er)||tr&&!has(Hu,er)||nr.push(Xu[er])})),nr};if(Kn||(Dr((Gu=function Symbol(){if(this instanceof Gu)throw TypeError("Symbol is not a constructor");var er=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,tr=uid(er),setter=function(er){this===Hu&&setter.call(Yu,er),has(this,Ou)&&has(this[Ou],tr)&&(this[Ou][tr]=!1),rd(this,tr,createPropertyDescriptor(1,er))};return rr&&td&&rd(Hu,tr,{configurable:!0,set:setter}),wrap(tr,er)}).prototype,"toString",(function toString(){return ju(this).tag})),Dr(Gu,"withoutSetter",(function(er){return wrap(uid(er),er)})),or.f=ad,gr.f=id,Ar.f=sd,Jr.f=Uu.f=ld,$r.f=cd,Iu.f=function(er){return wrap(wellKnownSymbol(er),er)},rr&&(Ku(Gu.prototype,"description",{configurable:!0,get:function description(){return ju(this).description}}),Dr(Hu,"propertyIsEnumerable",ad,{unsafe:!0}))),_export({global:!0,wrap:!0,forced:!Kn,sham:!Kn},{Symbol:Gu}),Mu(mi(Zu),(function(er){defineWellKnownSymbol(er)})),_export({target:"Symbol",stat:!0,forced:!Kn},{for:function(er){var tr=String(er);if(has(Ju,tr))return Ju[tr];var rr=Gu(tr);return Ju[tr]=rr,$u[rr]=tr,rr},keyFor:function keyFor(er){if(!nd(er))throw TypeError(er+" is not a symbol");if(has($u,er))return $u[er]},useSetter:function(){td=!0},useSimple:function(){td=!1}}),_export({target:"Object",stat:!0,forced:!Kn,sham:!rr},{create:function create(er,tr){return void 0===tr?wi(er):od(wi(er),tr)},defineProperty:id,defineProperties:od,getOwnPropertyDescriptor:sd}),_export({target:"Object",stat:!0,forced:!Kn},{getOwnPropertyNames:ld,getOwnPropertySymbols:cd}),_export({target:"Object",stat:!0,forced:fails((function(){$r.f(1)}))},{getOwnPropertySymbols:function getOwnPropertySymbols(er){return $r.f(toObject(er))}}),Vu){var ud=!Kn||fails((function(){var er=Gu();return"[null]"!=Vu([er])||"{}"!=Vu({a:er})||"{}"!=Vu(Object(er))}));_export({target:"JSON",stat:!0,forced:ud},{stringify:function stringify(er,tr,rr){for(var nr,ir=[er],or=1;arguments.length>or;)ir.push(arguments[or++]);if(nr=tr,(isObject(tr)||void 0!==er)&&!nd(er))return zn(tr)||(tr=function(er,tr){if("function"==typeof nr&&(tr=nr.call(this,er,tr)),!nd(tr))return tr}),ir[1]=tr,Vu.apply(null,ir)}})}Gu.prototype[Qu]||mr(Gu.prototype,Qu,Gu.prototype.valueOf),setToStringTag(Gu,"Symbol"),Lr[Ou]=!0;var dd=gr.f,hd=tr.Symbol;if(rr&&"function"==typeof hd&&(!("description"in hd.prototype)||void 0!==hd().description)){var pd={},Ad=function Symbol(){var er=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),tr=this instanceof Ad?new hd(er):void 0===er?hd():hd(er);return""===er&&(pd[tr]=!0),tr};copyConstructorProperties(Ad,hd);var fd=Ad.prototype=hd.prototype;fd.constructor=Ad;var gd=fd.toString,md="Symbol(test)"==String(hd("test")),_d=/^Symbol\((.*)\)[^)]+$/;dd(fd,"description",{configurable:!0,get:function description(){var er=isObject(this)?this.valueOf():this,tr=gd.call(er);if(has(pd,er))return"";var rr=md?tr.slice(7,-1):tr.replace(_d,"$1");return""===rr?void 0:rr}}),_export({global:!0,forced:!0},{Symbol:Ad})}defineWellKnownSymbol("asyncIterator"),defineWellKnownSymbol("iterator"),defineWellKnownSymbol("toStringTag"),setToStringTag(tr.JSON,"JSON",!0),setToStringTag(Math,"Math",!0),_export({target:"Object",stat:!0,sham:!rr},{create:wi}),_export({target:"Object",stat:!0,forced:!rr,sham:!rr},{defineProperty:gr.f});var vd=fails((function(){La(1)}));_export({target:"Object",stat:!0,forced:vd,sham:!Ba},{getPrototypeOf:function getPrototypeOf(er){return La(toObject(er))}}),_export({target:"Object",stat:!0},{setPrototypeOf:No});var yd=createCommonjsModule((function(er){var tr=function(er){var tr,rr=Object.prototype,nr=rr.hasOwnProperty,ir="function"==typeof Symbol?Symbol:{},or=ir.iterator||"@@iterator",ar=ir.asyncIterator||"@@asyncIterator",sr=ir.toStringTag||"@@toStringTag";function define(er,tr,rr){return Object.defineProperty(er,tr,{value:rr,enumerable:!0,configurable:!0,writable:!0}),er[tr]}try{define({},"")}catch(er){define=function define(er,tr,rr){return er[tr]=rr}}function wrap(er,tr,rr,nr){var ir=tr&&tr.prototype instanceof Generator?tr:Generator,or=Object.create(ir.prototype),ar=new Context(nr||[]);return or._invoke=function makeInvokeMethod(er,tr,rr){var nr=lr;return function invoke(ir,or){if(nr===ur)throw new Error("Generator is already running");if(nr===dr){if("throw"===ir)throw or;return doneResult()}for(rr.method=ir,rr.arg=or;;){var ar=rr.delegate;if(ar){var sr=maybeInvokeDelegate(ar,rr);if(sr){if(sr===hr)continue;return sr}}if("next"===rr.method)rr.sent=rr._sent=rr.arg;else if("throw"===rr.method){if(nr===lr)throw nr=dr,rr.arg;rr.dispatchException(rr.arg)}else"return"===rr.method&&rr.abrupt("return",rr.arg);nr=ur;var pr=tryCatch(er,tr,rr);if("normal"===pr.type){if(nr=rr.done?dr:cr,pr.arg===hr)continue;return{value:pr.arg,done:rr.done}}"throw"===pr.type&&(nr=dr,rr.method="throw",rr.arg=pr.arg)}}}(er,rr,ar),or}function tryCatch(er,tr,rr){try{return{type:"normal",arg:er.call(tr,rr)}}catch(er){return{type:"throw",arg:er}}}er.wrap=wrap;var lr="suspendedStart",cr="suspendedYield",ur="executing",dr="completed",hr={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var pr={};pr[or]=function(){return this};var Ar=Object.getPrototypeOf,fr=Ar&&Ar(Ar(values([])));fr&&fr!==rr&&nr.call(fr,or)&&(pr=fr);var gr=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(pr);function defineIteratorMethods(er){["next","throw","return"].forEach((function(tr){define(er,tr,(function(er){return this._invoke(tr,er)}))}))}function AsyncIterator(er,tr){var rr;this._invoke=function enqueue(ir,or){function callInvokeWithMethodAndArg(){return new tr((function(rr,ar){!function invoke(rr,ir,or,ar){var sr=tryCatch(er[rr],er,ir);if("throw"!==sr.type){var lr=sr.arg,cr=lr.value;return cr&&"object"===_typeof(cr)&&nr.call(cr,"__await")?tr.resolve(cr.__await).then((function(er){invoke("next",er,or,ar)}),(function(er){invoke("throw",er,or,ar)})):tr.resolve(cr).then((function(er){lr.value=er,or(lr)}),(function(er){return invoke("throw",er,or,ar)}))}ar(sr.arg)}(ir,or,rr,ar)}))}return rr=rr?rr.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}}function maybeInvokeDelegate(er,rr){var nr=er.iterator[rr.method];if(nr===tr){if(rr.delegate=null,"throw"===rr.method){if(er.iterator.return&&(rr.method="return",rr.arg=tr,maybeInvokeDelegate(er,rr),"throw"===rr.method))return hr;rr.method="throw",rr.arg=new TypeError("The iterator does not provide a 'throw' method")}return hr}var ir=tryCatch(nr,er.iterator,rr.arg);if("throw"===ir.type)return rr.method="throw",rr.arg=ir.arg,rr.delegate=null,hr;var or=ir.arg;return or?or.done?(rr[er.resultName]=or.value,rr.next=er.nextLoc,"return"!==rr.method&&(rr.method="next",rr.arg=tr),rr.delegate=null,hr):or:(rr.method="throw",rr.arg=new TypeError("iterator result is not an object"),rr.delegate=null,hr)}function pushTryEntry(er){var tr={tryLoc:er[0]};1 in er&&(tr.catchLoc=er[1]),2 in er&&(tr.finallyLoc=er[2],tr.afterLoc=er[3]),this.tryEntries.push(tr)}function resetTryEntry(er){var tr=er.completion||{};tr.type="normal",delete tr.arg,er.completion=tr}function Context(er){this.tryEntries=[{tryLoc:"root"}],er.forEach(pushTryEntry,this),this.reset(!0)}function values(er){if(er){var rr=er[or];if(rr)return rr.call(er);if("function"==typeof er.next)return er;if(!isNaN(er.length)){var ir=-1,ar=function next(){for(;++ir<er.length;)if(nr.call(er,ir))return next.value=er[ir],next.done=!1,next;return next.value=tr,next.done=!0,next};return ar.next=ar}}return{next:doneResult}}function doneResult(){return{value:tr,done:!0}}return GeneratorFunction.prototype=gr.constructor=GeneratorFunctionPrototype,GeneratorFunctionPrototype.constructor=GeneratorFunction,GeneratorFunction.displayName=define(GeneratorFunctionPrototype,sr,"GeneratorFunction"),er.isGeneratorFunction=function(er){var tr="function"==typeof er&&er.constructor;return!!tr&&(tr===GeneratorFunction||"GeneratorFunction"===(tr.displayName||tr.name))},er.mark=function(er){return Object.setPrototypeOf?Object.setPrototypeOf(er,GeneratorFunctionPrototype):(er.__proto__=GeneratorFunctionPrototype,define(er,sr,"GeneratorFunction")),er.prototype=Object.create(gr),er},er.awrap=function(er){return{__await:er}},defineIteratorMethods(AsyncIterator.prototype),AsyncIterator.prototype[ar]=function(){return this},er.AsyncIterator=AsyncIterator,er.async=function(tr,rr,nr,ir,or){void 0===or&&(or=Promise);var ar=new AsyncIterator(wrap(tr,rr,nr,ir),or);return er.isGeneratorFunction(rr)?ar:ar.next().then((function(er){return er.done?er.value:ar.next()}))},defineIteratorMethods(gr),define(gr,sr,"Generator"),gr[or]=function(){return this},gr.toString=function(){return"[object Generator]"},er.keys=function(er){var tr=[];for(var rr in er)tr.push(rr);return tr.reverse(),function next(){for(;tr.length;){var rr=tr.pop();if(rr in er)return next.value=rr,next.done=!1,next}return next.done=!0,next}},er.values=values,Context.prototype={constructor:Context,reset:function reset(er){if(this.prev=0,this.next=0,this.sent=this._sent=tr,this.done=!1,this.delegate=null,this.method="next",this.arg=tr,this.tryEntries.forEach(resetTryEntry),!er)for(var rr in this)"t"===rr.charAt(0)&&nr.call(this,rr)&&!isNaN(+rr.slice(1))&&(this[rr]=tr)},stop:function stop(){this.done=!0;var er=this.tryEntries[0].completion;if("throw"===er.type)throw er.arg;return this.rval},dispatchException:function dispatchException(er){if(this.done)throw er;var rr=this;function handle(nr,ir){return ar.type="throw",ar.arg=er,rr.next=nr,ir&&(rr.method="next",rr.arg=tr),!!ir}for(var ir=this.tryEntries.length-1;ir>=0;--ir){var or=this.tryEntries[ir],ar=or.completion;if("root"===or.tryLoc)return handle("end");if(or.tryLoc<=this.prev){var sr=nr.call(or,"catchLoc"),lr=nr.call(or,"finallyLoc");if(sr&&lr){if(this.prev<or.catchLoc)return handle(or.catchLoc,!0);if(this.prev<or.finallyLoc)return handle(or.finallyLoc)}else if(sr){if(this.prev<or.catchLoc)return handle(or.catchLoc,!0)}else{if(!lr)throw new Error("try statement without catch or finally");if(this.prev<or.finallyLoc)return handle(or.finallyLoc)}}}},abrupt:function abrupt(er,tr){for(var rr=this.tryEntries.length-1;rr>=0;--rr){var ir=this.tryEntries[rr];if(ir.tryLoc<=this.prev&&nr.call(ir,"finallyLoc")&&this.prev<ir.finallyLoc){var or=ir;break}}or&&("break"===er||"continue"===er)&&or.tryLoc<=tr&&tr<=or.finallyLoc&&(or=null);var ar=or?or.completion:{};return ar.type=er,ar.arg=tr,or?(this.method="next",this.next=or.finallyLoc,hr):this.complete(ar)},complete:function complete(er,tr){if("throw"===er.type)throw er.arg;return"break"===er.type||"continue"===er.type?this.next=er.arg:"return"===er.type?(this.rval=this.arg=er.arg,this.method="return",this.next="end"):"normal"===er.type&&tr&&(this.next=tr),hr},finish:function finish(er){for(var tr=this.tryEntries.length-1;tr>=0;--tr){var rr=this.tryEntries[tr];if(rr.finallyLoc===er)return this.complete(rr.completion,rr.afterLoc),resetTryEntry(rr),hr}},catch:function _catch(er){for(var tr=this.tryEntries.length-1;tr>=0;--tr){var rr=this.tryEntries[tr];if(rr.tryLoc===er){var nr=rr.completion;if("throw"===nr.type){var ir=nr.arg;resetTryEntry(rr)}return ir}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(er,rr,nr){return this.delegate={iterator:values(er),resultName:rr,nextLoc:nr},"next"===this.method&&(this.arg=tr),hr}},er}(er.exports);try{regeneratorRuntime=tr}catch(er){Function("r","regeneratorRuntime = r")(tr)}})),bd=createCommonjsModule((function(er,tr){er.exports=function(){var er={true:!0,false:!1,null:null};function deparam(tr,rr){var nr={};return tr.replace(/\+/g," ").split("&").forEach((function(tr){var ir=tr.split("="),or=decodeURIComponent(ir[0]),ar=or.split("]["),sr=ar.length-1;if(/\[/.test(ar[0])&&/\]$/.test(ar[sr])?(ar[sr]=ar[sr].replace(/\]$/,""),sr=(ar=ar.shift().split("[").concat(ar)).length-1):sr=0,ir.length>=2){var lr=decodeURIComponent(ir.slice(1).join("="));if(rr&&(lr=lr&&!isNaN(lr)?+lr:"undefined"===lr?void 0:void 0!==er[lr]?er[lr]:lr),sr)for(var cr=nr,ur=0;ur<=sr;ur++)cr=cr[or=""===ar[ur]?cr.length:ar[ur]]=ur<sr?cr[or]||(ar[ur+1]&&isNaN(ar[ur+1])?{}:[]):lr;else Array.isArray(nr[or])?nr[or].push(lr):void 0!==nr[or]?nr[or]=[nr[or],lr]:nr[or]=lr}else or&&(nr[or]=rr?void 0:"")})),nr}return deparam}()}));function touchHandler(er){var tr=er.changedTouches,rr=tr[0],nr="";switch(er.type){case"touchstart":nr="mousedown";break;case"touchmove":nr="mousemove";break;case"touchend":nr="mouseup";break;default:return}var ir=rr.screenX,or=rr.screenY,ar=rr.clientX,sr=rr.clientY,lr=new MouseEvent(nr,{bubbles:!0,cancelable:!0,view:window,detail:1,screenX:ir,screenY:or,clientX:ar,clientY:sr,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:null});tr.length<2&&(rr.target.dispatchEvent(lr),er.preventDefault())}document.addEventListener("touchstart",touchHandler,!0),document.addEventListener("touchmove",touchHandler,!0),document.addEventListener("touchend",touchHandler,!0),document.addEventListener("touchcancel",touchHandler,!0);
|
||
/**
|
||
* Namespaces or tools therefor.
|
||
* @module namespaces
|
||
* @license MIT
|
||
*/
|
||
var wd={HTML:"http://www.w3.org/1999/xhtml",MATH:"http://www.w3.org/1998/Math/MathML",SE:"http://svg-edit.googlecode.com",SVG:"http://www.w3.org/2000/svg",XLINK:"http://www.w3.org/1999/xlink",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"},Sd=function getReverseNS(){var er={};return Object.entries(wd).forEach((function(tr){var rr=_slicedToArray(tr,2),nr=rr[0],ir=rr[1];er[ir]=nr.toLowerCase()})),er};"SVGPathSeg"in window||(window.SVGPathSeg=function(er,tr,rr){this.pathSegType=er,this.pathSegTypeAsLetter=tr,this._owningPathSegList=rr},window.SVGPathSeg.prototype.classname="SVGPathSeg",window.SVGPathSeg.PATHSEG_UNKNOWN=0,window.SVGPathSeg.PATHSEG_CLOSEPATH=1,window.SVGPathSeg.PATHSEG_MOVETO_ABS=2,window.SVGPathSeg.PATHSEG_MOVETO_REL=3,window.SVGPathSeg.PATHSEG_LINETO_ABS=4,window.SVGPathSeg.PATHSEG_LINETO_REL=5,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS=6,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL=7,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS=8,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL=9,window.SVGPathSeg.PATHSEG_ARC_ABS=10,window.SVGPathSeg.PATHSEG_ARC_REL=11,window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS=12,window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL=13,window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS=14,window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL=15,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS=16,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL=17,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS=18,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL=19,window.SVGPathSeg.prototype._segmentChanged=function(){this._owningPathSegList&&this._owningPathSegList.segmentChanged(this)},window.SVGPathSegClosePath=function(er){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CLOSEPATH,"z",er)},window.SVGPathSegClosePath.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegClosePath.prototype.toString=function(){return"[object SVGPathSegClosePath]"},window.SVGPathSegClosePath.prototype._asPathString=function(){return this.pathSegTypeAsLetter},window.SVGPathSegClosePath.prototype.clone=function(){return new window.SVGPathSegClosePath(void 0)},window.SVGPathSegMovetoAbs=function(er,tr,rr){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_MOVETO_ABS,"M",er),this._x=tr,this._y=rr},window.SVGPathSegMovetoAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegMovetoAbs.prototype.toString=function(){return"[object SVGPathSegMovetoAbs]"},window.SVGPathSegMovetoAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},window.SVGPathSegMovetoAbs.prototype.clone=function(){return new window.SVGPathSegMovetoAbs(void 0,this._x,this._y)},Object.defineProperty(window.SVGPathSegMovetoAbs.prototype,"x",{get:function get(){return this._x},set:function set(er){this._x=er,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegMovetoAbs.prototype,"y",{get:function get(){return this._y},set:function set(er){this._y=er,this._segmentChanged()},enumerable:!0}),window.SVGPathSegMovetoRel=function(er,tr,rr){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_MOVETO_REL,"m",er),this._x=tr,this._y=rr},window.SVGPathSegMovetoRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegMovetoRel.prototype.toString=function(){return"[object SVGPathSegMovetoRel]"},window.SVGPathSegMovetoRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},window.SVGPathSegMovetoRel.prototype.clone=function(){return new window.SVGPathSegMovetoRel(void 0,this._x,this._y)},Object.defineProperty(window.SVGPathSegMovetoRel.prototype,"x",{get:function get(){return this._x},set:function set(er){this._x=er,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegMovetoRel.prototype,"y",{get:function get(){return this._y},set:function set(er){this._y=er,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoAbs=function(er,tr,rr){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_ABS,"L",er),this._x=tr,this._y=rr},window.SVGPathSegLinetoAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegLinetoAbs.prototype.toString=function(){return"[object SVGPathSegLinetoAbs]"},window.SVGPathSegLinetoAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},window.SVGPathSegLinetoAbs.prototype.clone=function(){return new window.SVGPathSegLinetoAbs(void 0,this._x,this._y)},Object.defineProperty(window.SVGPathSegLinetoAbs.prototype,"x",{get:function get(){return this._x},set:function set(er){this._x=er,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegLinetoAbs.prototype,"y",{get:function get(){return this._y},set:function set(er){this._y=er,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoRel=function(er,tr,rr){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_REL,"l",er),this._x=tr,this._y=rr},window.SVGPathSegLinetoRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegLinetoRel.prototype.toString=function(){return"[object SVGPathSegLinetoRel]"},window.SVGPathSegLinetoRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},window.SVGPathSegLinetoRel.prototype.clone=function(){return new window.SVGPathSegLinetoRel(void 0,this._x,this._y)},Object.defineProperty(window.SVGPathSegLinetoRel.prototype,"x",{get:function get(){return this._x},set:function set(er){this._x=er,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegLinetoRel.prototype,"y",{get:function get(){return this._y},set:function set(er){this._y=er,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoCubicAbs=function(er,tr,rr,nr,ir,or,ar){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS,"C",er),this._x=tr,this._y=rr,this._x1=nr,this._y1=ir,this._x2=or,this._y2=ar},window.SVGPathSegCurvetoCubicAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoCubicAbs.prototype.toString=function(){return"[object SVGPathSegCurvetoCubicAbs]"},window.SVGPathSegCurvetoCubicAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x1+" "+this._y1+" "+this._x2+" "+this._y2+" "+this._x+" "+this._y},window.SVGPathSegCurvetoCubicAbs.prototype.clone=function(){return new window.SVGPathSegCurvetoCubicAbs(void 0,this._x,this._y,this._x1,this._y1,this._x2,this._y2)},Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"x",{get:function get(){return this._x},set:function set(er){this._x=er,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"y",{get:function get(){return this._y},set:function set(er){this._y=er,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"x1",{get:function get(){return this._x1},set:function set(er){this._x1=er,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"y1",{get:function get(){return this._y1},set:function set(er){this._y1=er,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"x2",{get:function get(){return this._x2},set:function set(er){this._x2=er,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"y2",{get:function get(){return this._y2},set:function set(er){this._y2=er,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoCubicRel=function(er,tr,rr,nr,ir,or,ar){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL,"c",er),this._x=tr,this._y=rr,this._x1=nr,this._y1=ir,this._x2=or,this._y2=ar},window.SVGPathSegCurvetoCubicRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoCubicRel.prototype.toString=function(){return"[object SVGPathSegCurvetoCubicRel]"},window.SVGPathSegCurvetoCubicRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x1+" "+this._y1+" "+this._x2+" "+this._y2+" "+this._x+" "+this._y},window.SVGPathSegCurvetoCubicRel.prototype.clone=function(){return new window.SVGPathSegCurvetoCubicRel(void 0,this._x,this._y,this._x1,this._y1,this._x2,this._y2)},Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"x",{get:function get(){return this._x},set:function set(er){this._x=er,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"y",{get:function get(){return this._y},set:function set(er){this._y=er,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"x1",{get:function get(){return this._x1},set:function set(er){this._x1=er,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"y1",{get:function get(){return this._y1},set:function set(er){this._y1=er,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"x2",{get:function get(){return this._x2},set:function set(er){this._x2=er,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"y2",{get:function get(){return this._y2},set:function set(er){this._y2=er,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoQuadraticAbs=function(er,tr,rr,nr,ir){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS,"Q",er),this._x=tr,this._y=rr,this._x1=nr,this._y1=ir},window.SVGPathSegCurvetoQuadraticAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoQuadraticAbs.prototype.toString=function(){return"[object SVGPathSegCurvetoQuadraticAbs]"},window.SVGPathSegCurvetoQuadraticAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x1+" "+this._y1+" "+this._x+" "+this._y},window.SVGPathSegCurvetoQuadraticAbs.prototype.clone=function(){return new window.SVGPathSegCurvetoQuadraticAbs(void 0,this._x,this._y,this._x1,this._y1)},Object.defineProperty(window.SVGPathSegCurvetoQuadraticAbs.prototype,"x",{get:function get(){return this._x},set:function set(er){this._x=er,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticAbs.prototype,"y",{get:function get(){return this._y},set:function set(er){this._y=er,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticAbs.prototype,"x1",{get:function get(){return this._x1},set:function set(er){this._x1=er,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticAbs.prototype,"y1",{get:function get(){return this._y1},set:function set(er){this._y1=er,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoQuadraticRel=function(er,tr,rr,nr,ir){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL,"q",er),this._x=tr,this._y=rr,this._x1=nr,this._y1=ir},window.SVGPathSegCurvetoQuadraticRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoQuadraticRel.prototype.toString=function(){return"[object SVGPathSegCurvetoQuadraticRel]"},window.SVGPathSegCurvetoQuadraticRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x1+" "+this._y1+" "+this._x+" "+this._y},window.SVGPathSegCurvetoQuadraticRel.prototype.clone=function(){return new window.SVGPathSegCurvetoQuadraticRel(void 0,this._x,this._y,this._x1,this._y1)},Object.defineProperty(window.SVGPathSegCurvetoQuadraticRel.prototype,"x",{get:function get(){return this._x},set:function set(er){this._x=er,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticRel.prototype,"y",{get:function get(){return this._y},set:function set(er){this._y=er,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticRel.prototype,"x1",{get:function get(){return this._x1},set:function set(er){this._x1=er,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticRel.prototype,"y1",{get:function get(){return this._y1},set:function set(er){this._y1=er,this._segmentChanged()},enumerable:!0}),window.SVGPathSegArcAbs=function(er,tr,rr,nr,ir,or,ar,sr){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_ARC_ABS,"A",er),this._x=tr,this._y=rr,this._r1=nr,this._r2=ir,this._angle=or,this._largeArcFlag=ar,this._sweepFlag=sr},window.SVGPathSegArcAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegArcAbs.prototype.toString=function(){return"[object SVGPathSegArcAbs]"},window.SVGPathSegArcAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._r1+" "+this._r2+" "+this._angle+" "+(this._largeArcFlag?"1":"0")+" "+(this._sweepFlag?"1":"0")+" "+this._x+" "+this._y},window.SVGPathSegArcAbs.prototype.clone=function(){return new window.SVGPathSegArcAbs(void 0,this._x,this._y,this._r1,this._r2,this._angle,this._largeArcFlag,this._sweepFlag)},Object.defineProperty(window.SVGPathSegArcAbs.prototype,"x",{get:function get(){return this._x},set:function set(er){this._x=er,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"y",{get:function get(){return this._y},set:function set(er){this._y=er,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"r1",{get:function get(){return this._r1},set:function set(er){this._r1=er,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"r2",{get:function get(){return this._r2},set:function set(er){this._r2=er,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"angle",{get:function get(){return this._angle},set:function set(er){this._angle=er,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"largeArcFlag",{get:function get(){return this._largeArcFlag},set:function set(er){this._largeArcFlag=er,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"sweepFlag",{get:function get(){return this._sweepFlag},set:function set(er){this._sweepFlag=er,this._segmentChanged()},enumerable:!0}),window.SVGPathSegArcRel=function(er,tr,rr,nr,ir,or,ar,sr){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_ARC_REL,"a",er),this._x=tr,this._y=rr,this._r1=nr,this._r2=ir,this._angle=or,this._largeArcFlag=ar,this._sweepFlag=sr},window.SVGPathSegArcRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegArcRel.prototype.toString=function(){return"[object SVGPathSegArcRel]"},window.SVGPathSegArcRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._r1+" "+this._r2+" "+this._angle+" "+(this._largeArcFlag?"1":"0")+" "+(this._sweepFlag?"1":"0")+" "+this._x+" "+this._y},window.SVGPathSegArcRel.prototype.clone=function(){return new window.SVGPathSegArcRel(void 0,this._x,this._y,this._r1,this._r2,this._angle,this._largeArcFlag,this._sweepFlag)},Object.defineProperty(window.SVGPathSegArcRel.prototype,"x",{get:function get(){return this._x},set:function set(er){this._x=er,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"y",{get:function get(){return this._y},set:function set(er){this._y=er,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"r1",{get:function get(){return this._r1},set:function set(er){this._r1=er,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"r2",{get:function get(){return this._r2},set:function set(er){this._r2=er,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"angle",{get:function get(){return this._angle},set:function set(er){this._angle=er,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"largeArcFlag",{get:function get(){return this._largeArcFlag},set:function set(er){this._largeArcFlag=er,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"sweepFlag",{get:function get(){return this._sweepFlag},set:function set(er){this._sweepFlag=er,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoHorizontalAbs=function(er,tr){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS,"H",er),this._x=tr},window.SVGPathSegLinetoHorizontalAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegLinetoHorizontalAbs.prototype.toString=function(){return"[object SVGPathSegLinetoHorizontalAbs]"},window.SVGPathSegLinetoHorizontalAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x},window.SVGPathSegLinetoHorizontalAbs.prototype.clone=function(){return new window.SVGPathSegLinetoHorizontalAbs(void 0,this._x)},Object.defineProperty(window.SVGPathSegLinetoHorizontalAbs.prototype,"x",{get:function get(){return this._x},set:function set(er){this._x=er,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoHorizontalRel=function(er,tr){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL,"h",er),this._x=tr},window.SVGPathSegLinetoHorizontalRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegLinetoHorizontalRel.prototype.toString=function(){return"[object SVGPathSegLinetoHorizontalRel]"},window.SVGPathSegLinetoHorizontalRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x},window.SVGPathSegLinetoHorizontalRel.prototype.clone=function(){return new window.SVGPathSegLinetoHorizontalRel(void 0,this._x)},Object.defineProperty(window.SVGPathSegLinetoHorizontalRel.prototype,"x",{get:function get(){return this._x},set:function set(er){this._x=er,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoVerticalAbs=function(er,tr){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS,"V",er),this._y=tr},window.SVGPathSegLinetoVerticalAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegLinetoVerticalAbs.prototype.toString=function(){return"[object SVGPathSegLinetoVerticalAbs]"},window.SVGPathSegLinetoVerticalAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._y},window.SVGPathSegLinetoVerticalAbs.prototype.clone=function(){return new window.SVGPathSegLinetoVerticalAbs(void 0,this._y)},Object.defineProperty(window.SVGPathSegLinetoVerticalAbs.prototype,"y",{get:function get(){return this._y},set:function set(er){this._y=er,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoVerticalRel=function(er,tr){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL,"v",er),this._y=tr},window.SVGPathSegLinetoVerticalRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegLinetoVerticalRel.prototype.toString=function(){return"[object SVGPathSegLinetoVerticalRel]"},window.SVGPathSegLinetoVerticalRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._y},window.SVGPathSegLinetoVerticalRel.prototype.clone=function(){return new window.SVGPathSegLinetoVerticalRel(void 0,this._y)},Object.defineProperty(window.SVGPathSegLinetoVerticalRel.prototype,"y",{get:function get(){return this._y},set:function set(er){this._y=er,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoCubicSmoothAbs=function(er,tr,rr,nr,ir){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS,"S",er),this._x=tr,this._y=rr,this._x2=nr,this._y2=ir},window.SVGPathSegCurvetoCubicSmoothAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoCubicSmoothAbs.prototype.toString=function(){return"[object SVGPathSegCurvetoCubicSmoothAbs]"},window.SVGPathSegCurvetoCubicSmoothAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x2+" "+this._y2+" "+this._x+" "+this._y},window.SVGPathSegCurvetoCubicSmoothAbs.prototype.clone=function(){return new window.SVGPathSegCurvetoCubicSmoothAbs(void 0,this._x,this._y,this._x2,this._y2)},Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothAbs.prototype,"x",{get:function get(){return this._x},set:function set(er){this._x=er,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothAbs.prototype,"y",{get:function get(){return this._y},set:function set(er){this._y=er,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothAbs.prototype,"x2",{get:function get(){return this._x2},set:function set(er){this._x2=er,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothAbs.prototype,"y2",{get:function get(){return this._y2},set:function set(er){this._y2=er,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoCubicSmoothRel=function(er,tr,rr,nr,ir){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL,"s",er),this._x=tr,this._y=rr,this._x2=nr,this._y2=ir},window.SVGPathSegCurvetoCubicSmoothRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoCubicSmoothRel.prototype.toString=function(){return"[object SVGPathSegCurvetoCubicSmoothRel]"},window.SVGPathSegCurvetoCubicSmoothRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x2+" "+this._y2+" "+this._x+" "+this._y},window.SVGPathSegCurvetoCubicSmoothRel.prototype.clone=function(){return new window.SVGPathSegCurvetoCubicSmoothRel(void 0,this._x,this._y,this._x2,this._y2)},Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothRel.prototype,"x",{get:function get(){return this._x},set:function set(er){this._x=er,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothRel.prototype,"y",{get:function get(){return this._y},set:function set(er){this._y=er,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothRel.prototype,"x2",{get:function get(){return this._x2},set:function set(er){this._x2=er,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothRel.prototype,"y2",{get:function get(){return this._y2},set:function set(er){this._y2=er,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoQuadraticSmoothAbs=function(er,tr,rr){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS,"T",er),this._x=tr,this._y=rr},window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype.toString=function(){return"[object SVGPathSegCurvetoQuadraticSmoothAbs]"},window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype.clone=function(){return new window.SVGPathSegCurvetoQuadraticSmoothAbs(void 0,this._x,this._y)},Object.defineProperty(window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype,"x",{get:function get(){return this._x},set:function set(er){this._x=er,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype,"y",{get:function get(){return this._y},set:function set(er){this._y=er,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoQuadraticSmoothRel=function(er,tr,rr){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL,"t",er),this._x=tr,this._y=rr},window.SVGPathSegCurvetoQuadraticSmoothRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoQuadraticSmoothRel.prototype.toString=function(){return"[object SVGPathSegCurvetoQuadraticSmoothRel]"},window.SVGPathSegCurvetoQuadraticSmoothRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},window.SVGPathSegCurvetoQuadraticSmoothRel.prototype.clone=function(){return new window.SVGPathSegCurvetoQuadraticSmoothRel(void 0,this._x,this._y)},Object.defineProperty(window.SVGPathSegCurvetoQuadraticSmoothRel.prototype,"x",{get:function get(){return this._x},set:function set(er){this._x=er,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticSmoothRel.prototype,"y",{get:function get(){return this._y},set:function set(er){this._y=er,this._segmentChanged()},enumerable:!0}),window.SVGPathElement.prototype.createSVGPathSegClosePath=function(){return new window.SVGPathSegClosePath(void 0)},window.SVGPathElement.prototype.createSVGPathSegMovetoAbs=function(er,tr){return new window.SVGPathSegMovetoAbs(void 0,er,tr)},window.SVGPathElement.prototype.createSVGPathSegMovetoRel=function(er,tr){return new window.SVGPathSegMovetoRel(void 0,er,tr)},window.SVGPathElement.prototype.createSVGPathSegLinetoAbs=function(er,tr){return new window.SVGPathSegLinetoAbs(void 0,er,tr)},window.SVGPathElement.prototype.createSVGPathSegLinetoRel=function(er,tr){return new window.SVGPathSegLinetoRel(void 0,er,tr)},window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicAbs=function(er,tr,rr,nr,ir,or){return new window.SVGPathSegCurvetoCubicAbs(void 0,er,tr,rr,nr,ir,or)},window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicRel=function(er,tr,rr,nr,ir,or){return new window.SVGPathSegCurvetoCubicRel(void 0,er,tr,rr,nr,ir,or)},window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticAbs=function(er,tr,rr,nr){return new window.SVGPathSegCurvetoQuadraticAbs(void 0,er,tr,rr,nr)},window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticRel=function(er,tr,rr,nr){return new window.SVGPathSegCurvetoQuadraticRel(void 0,er,tr,rr,nr)},window.SVGPathElement.prototype.createSVGPathSegArcAbs=function(er,tr,rr,nr,ir,or,ar){return new window.SVGPathSegArcAbs(void 0,er,tr,rr,nr,ir,or,ar)},window.SVGPathElement.prototype.createSVGPathSegArcRel=function(er,tr,rr,nr,ir,or,ar){return new window.SVGPathSegArcRel(void 0,er,tr,rr,nr,ir,or,ar)},window.SVGPathElement.prototype.createSVGPathSegLinetoHorizontalAbs=function(er){return new window.SVGPathSegLinetoHorizontalAbs(void 0,er)},window.SVGPathElement.prototype.createSVGPathSegLinetoHorizontalRel=function(er){return new window.SVGPathSegLinetoHorizontalRel(void 0,er)},window.SVGPathElement.prototype.createSVGPathSegLinetoVerticalAbs=function(er){return new window.SVGPathSegLinetoVerticalAbs(void 0,er)},window.SVGPathElement.prototype.createSVGPathSegLinetoVerticalRel=function(er){return new window.SVGPathSegLinetoVerticalRel(void 0,er)},window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicSmoothAbs=function(er,tr,rr,nr){return new window.SVGPathSegCurvetoCubicSmoothAbs(void 0,er,tr,rr,nr)},window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicSmoothRel=function(er,tr,rr,nr){return new window.SVGPathSegCurvetoCubicSmoothRel(void 0,er,tr,rr,nr)},window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticSmoothAbs=function(er,tr){return new window.SVGPathSegCurvetoQuadraticSmoothAbs(void 0,er,tr)},window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticSmoothRel=function(er,tr){return new window.SVGPathSegCurvetoQuadraticSmoothRel(void 0,er,tr)},"getPathSegAtLength"in window.SVGPathElement.prototype||(window.SVGPathElement.prototype.getPathSegAtLength=function(er){if(void 0===er||!isFinite(er))throw"Invalid arguments.";var tr=document.createElementNS("http://www.w3.org/2000/svg","path");tr.setAttribute("d",this.getAttribute("d"));var rr=tr.pathSegList.numberOfItems-1;if(rr<=0)return 0;do{if(tr.pathSegList.removeItem(rr),er>tr.getTotalLength())break;rr--}while(rr>0);return rr})),"SVGPathSegList"in window&&"appendItem"in window.SVGPathSegList.prototype||(window.SVGPathSegList=function(er){this._pathElement=er,this._list=this._parsePath(this._pathElement.getAttribute("d")),this._mutationObserverConfig={attributes:!0,attributeFilter:["d"]},this._pathElementMutationObserver=new MutationObserver(this._updateListFromPathMutations.bind(this)),this._pathElementMutationObserver.observe(this._pathElement,this._mutationObserverConfig)},window.SVGPathSegList.prototype.classname="SVGPathSegList",Object.defineProperty(window.SVGPathSegList.prototype,"numberOfItems",{get:function get(){return this._checkPathSynchronizedToList(),this._list.length},enumerable:!0}),Object.defineProperty(window.SVGPathElement.prototype,"pathSegList",{get:function get(){return this._pathSegList||(this._pathSegList=new window.SVGPathSegList(this)),this._pathSegList},enumerable:!0}),Object.defineProperty(window.SVGPathElement.prototype,"normalizedPathSegList",{get:function get(){return this.pathSegList},enumerable:!0}),Object.defineProperty(window.SVGPathElement.prototype,"animatedPathSegList",{get:function get(){return this.pathSegList},enumerable:!0}),Object.defineProperty(window.SVGPathElement.prototype,"animatedNormalizedPathSegList",{get:function get(){return this.pathSegList},enumerable:!0}),window.SVGPathSegList.prototype._checkPathSynchronizedToList=function(){this._updateListFromPathMutations(this._pathElementMutationObserver.takeRecords())},window.SVGPathSegList.prototype._updateListFromPathMutations=function(er){if(this._pathElement){var tr=!1;er.forEach((function(er){"d"==er.attributeName&&(tr=!0)})),tr&&(this._list=this._parsePath(this._pathElement.getAttribute("d")))}},window.SVGPathSegList.prototype._writeListToPath=function(){this._pathElementMutationObserver.disconnect(),this._pathElement.setAttribute("d",window.SVGPathSegList._pathSegArrayAsString(this._list)),this._pathElementMutationObserver.observe(this._pathElement,this._mutationObserverConfig)},window.SVGPathSegList.prototype.segmentChanged=function(er){this._writeListToPath()},window.SVGPathSegList.prototype.clear=function(){this._checkPathSynchronizedToList(),this._list.forEach((function(er){er._owningPathSegList=null})),this._list=[],this._writeListToPath()},window.SVGPathSegList.prototype.initialize=function(er){return this._checkPathSynchronizedToList(),this._list=[er],er._owningPathSegList=this,this._writeListToPath(),er},window.SVGPathSegList.prototype._checkValidIndex=function(er){if(isNaN(er)||er<0||er>=this.numberOfItems)throw"INDEX_SIZE_ERR"},window.SVGPathSegList.prototype.getItem=function(er){return this._checkPathSynchronizedToList(),this._checkValidIndex(er),this._list[er]},window.SVGPathSegList.prototype.insertItemBefore=function(er,tr){return this._checkPathSynchronizedToList(),tr>this.numberOfItems&&(tr=this.numberOfItems),er._owningPathSegList&&(er=er.clone()),this._list.splice(tr,0,er),er._owningPathSegList=this,this._writeListToPath(),er},window.SVGPathSegList.prototype.replaceItem=function(er,tr){return this._checkPathSynchronizedToList(),er._owningPathSegList&&(er=er.clone()),this._checkValidIndex(tr),this._list[tr]=er,er._owningPathSegList=this,this._writeListToPath(),er},window.SVGPathSegList.prototype.removeItem=function(er){this._checkPathSynchronizedToList(),this._checkValidIndex(er);var tr=this._list[er];return this._list.splice(er,1),this._writeListToPath(),tr},window.SVGPathSegList.prototype.appendItem=function(er){return this._checkPathSynchronizedToList(),er._owningPathSegList&&(er=er.clone()),this._list.push(er),er._owningPathSegList=this,this._writeListToPath(),er},window.SVGPathSegList._pathSegArrayAsString=function(er){var tr="",rr=!0;return er.forEach((function(er){rr?(rr=!1,tr+=er._asPathString()):tr+=" "+er._asPathString()})),tr},window.SVGPathSegList.prototype._parsePath=function(er){if(!er||0==er.length)return[];var tr=this,rr=function Builder(){this.pathSegList=[]};rr.prototype.appendSegment=function(er){this.pathSegList.push(er)};var nr=function Source(er){this._string=er,this._currentIndex=0,this._endIndex=this._string.length,this._previousCommand=window.SVGPathSeg.PATHSEG_UNKNOWN,this._skipOptionalSpaces()};nr.prototype._isCurrentSpace=function(){var er=this._string[this._currentIndex];return er<=" "&&(" "==er||"\n"==er||"\t"==er||"\r"==er||"\f"==er)},nr.prototype._skipOptionalSpaces=function(){for(;this._currentIndex<this._endIndex&&this._isCurrentSpace();)this._currentIndex++;return this._currentIndex<this._endIndex},nr.prototype._skipOptionalSpacesOrDelimiter=function(){return!(this._currentIndex<this._endIndex&&!this._isCurrentSpace()&&","!=this._string.charAt(this._currentIndex))&&(this._skipOptionalSpaces()&&this._currentIndex<this._endIndex&&","==this._string.charAt(this._currentIndex)&&(this._currentIndex++,this._skipOptionalSpaces()),this._currentIndex<this._endIndex)},nr.prototype.hasMoreData=function(){return this._currentIndex<this._endIndex},nr.prototype.peekSegmentType=function(){var er=this._string[this._currentIndex];return this._pathSegTypeFromChar(er)},nr.prototype._pathSegTypeFromChar=function(er){switch(er){case"Z":case"z":return window.SVGPathSeg.PATHSEG_CLOSEPATH;case"M":return window.SVGPathSeg.PATHSEG_MOVETO_ABS;case"m":return window.SVGPathSeg.PATHSEG_MOVETO_REL;case"L":return window.SVGPathSeg.PATHSEG_LINETO_ABS;case"l":return window.SVGPathSeg.PATHSEG_LINETO_REL;case"C":return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS;case"c":return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL;case"Q":return window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS;case"q":return window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL;case"A":return window.SVGPathSeg.PATHSEG_ARC_ABS;case"a":return window.SVGPathSeg.PATHSEG_ARC_REL;case"H":return window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS;case"h":return window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL;case"V":return window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS;case"v":return window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL;case"S":return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS;case"s":return window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL;case"T":return window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS;case"t":return window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL;default:return window.SVGPathSeg.PATHSEG_UNKNOWN}},nr.prototype._nextCommandHelper=function(er,tr){return("+"==er||"-"==er||"."==er||er>="0"&&er<="9")&&tr!=window.SVGPathSeg.PATHSEG_CLOSEPATH?tr==window.SVGPathSeg.PATHSEG_MOVETO_ABS?window.SVGPathSeg.PATHSEG_LINETO_ABS:tr==window.SVGPathSeg.PATHSEG_MOVETO_REL?window.SVGPathSeg.PATHSEG_LINETO_REL:tr:window.SVGPathSeg.PATHSEG_UNKNOWN},nr.prototype.initialCommandIsMoveTo=function(){if(!this.hasMoreData())return!0;var er=this.peekSegmentType();return er==window.SVGPathSeg.PATHSEG_MOVETO_ABS||er==window.SVGPathSeg.PATHSEG_MOVETO_REL},nr.prototype._parseNumber=function(){var er=0,tr=0,rr=1,nr=0,ir=1,or=1,ar=this._currentIndex;if(this._skipOptionalSpaces(),this._currentIndex<this._endIndex&&"+"==this._string.charAt(this._currentIndex)?this._currentIndex++:this._currentIndex<this._endIndex&&"-"==this._string.charAt(this._currentIndex)&&(this._currentIndex++,ir=-1),!(this._currentIndex==this._endIndex||(this._string.charAt(this._currentIndex)<"0"||this._string.charAt(this._currentIndex)>"9")&&"."!=this._string.charAt(this._currentIndex))){for(var sr=this._currentIndex;this._currentIndex<this._endIndex&&this._string.charAt(this._currentIndex)>="0"&&this._string.charAt(this._currentIndex)<="9";)this._currentIndex++;if(this._currentIndex!=sr)for(var lr=this._currentIndex-1,cr=1;lr>=sr;)tr+=cr*(this._string.charAt(lr--)-"0"),cr*=10;if(this._currentIndex<this._endIndex&&"."==this._string.charAt(this._currentIndex)){if(this._currentIndex++,this._currentIndex>=this._endIndex||this._string.charAt(this._currentIndex)<"0"||this._string.charAt(this._currentIndex)>"9")return;for(;this._currentIndex<this._endIndex&&this._string.charAt(this._currentIndex)>="0"&&this._string.charAt(this._currentIndex)<="9";)rr*=10,nr+=(this._string.charAt(this._currentIndex)-"0")/rr,this._currentIndex+=1}if(this._currentIndex!=ar&&this._currentIndex+1<this._endIndex&&("e"==this._string.charAt(this._currentIndex)||"E"==this._string.charAt(this._currentIndex))&&"x"!=this._string.charAt(this._currentIndex+1)&&"m"!=this._string.charAt(this._currentIndex+1)){if(this._currentIndex++,"+"==this._string.charAt(this._currentIndex)?this._currentIndex++:"-"==this._string.charAt(this._currentIndex)&&(this._currentIndex++,or=-1),this._currentIndex>=this._endIndex||this._string.charAt(this._currentIndex)<"0"||this._string.charAt(this._currentIndex)>"9")return;for(;this._currentIndex<this._endIndex&&this._string.charAt(this._currentIndex)>="0"&&this._string.charAt(this._currentIndex)<="9";)er*=10,er+=this._string.charAt(this._currentIndex)-"0",this._currentIndex++}var ur=tr+nr;if(ur*=ir,er&&(ur*=Math.pow(10,or*er)),ar!=this._currentIndex)return this._skipOptionalSpacesOrDelimiter(),ur}},nr.prototype._parseArcFlag=function(){if(!(this._currentIndex>=this._endIndex)){var er=!1,tr=this._string.charAt(this._currentIndex++);if("0"==tr)er=!1;else{if("1"!=tr)return;er=!0}return this._skipOptionalSpacesOrDelimiter(),er}},nr.prototype.parseSegment=function(){var er=this._string[this._currentIndex],rr=this._pathSegTypeFromChar(er);if(rr==window.SVGPathSeg.PATHSEG_UNKNOWN){if(this._previousCommand==window.SVGPathSeg.PATHSEG_UNKNOWN)return null;if((rr=this._nextCommandHelper(er,this._previousCommand))==window.SVGPathSeg.PATHSEG_UNKNOWN)return null}else this._currentIndex++;switch(this._previousCommand=rr,rr){case window.SVGPathSeg.PATHSEG_MOVETO_REL:return new window.SVGPathSegMovetoRel(tr,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_MOVETO_ABS:return new window.SVGPathSegMovetoAbs(tr,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_REL:return new window.SVGPathSegLinetoRel(tr,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_ABS:return new window.SVGPathSegLinetoAbs(tr,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL:return new window.SVGPathSegLinetoHorizontalRel(tr,this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS:return new window.SVGPathSegLinetoHorizontalAbs(tr,this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL:return new window.SVGPathSegLinetoVerticalRel(tr,this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS:return new window.SVGPathSegLinetoVerticalAbs(tr,this._parseNumber());case window.SVGPathSeg.PATHSEG_CLOSEPATH:return this._skipOptionalSpaces(),new window.SVGPathSegClosePath(tr);case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL:var nr={x1:this._parseNumber(),y1:this._parseNumber(),x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()};return new window.SVGPathSegCurvetoCubicRel(tr,nr.x,nr.y,nr.x1,nr.y1,nr.x2,nr.y2);case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS:return nr={x1:this._parseNumber(),y1:this._parseNumber(),x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoCubicAbs(tr,nr.x,nr.y,nr.x1,nr.y1,nr.x2,nr.y2);case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL:return nr={x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoCubicSmoothRel(tr,nr.x,nr.y,nr.x2,nr.y2);case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS:return nr={x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoCubicSmoothAbs(tr,nr.x,nr.y,nr.x2,nr.y2);case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL:return nr={x1:this._parseNumber(),y1:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoQuadraticRel(tr,nr.x,nr.y,nr.x1,nr.y1);case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS:return nr={x1:this._parseNumber(),y1:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoQuadraticAbs(tr,nr.x,nr.y,nr.x1,nr.y1);case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL:return new window.SVGPathSegCurvetoQuadraticSmoothRel(tr,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS:return new window.SVGPathSegCurvetoQuadraticSmoothAbs(tr,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_ARC_REL:return nr={x1:this._parseNumber(),y1:this._parseNumber(),arcAngle:this._parseNumber(),arcLarge:this._parseArcFlag(),arcSweep:this._parseArcFlag(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegArcRel(tr,nr.x,nr.y,nr.x1,nr.y1,nr.arcAngle,nr.arcLarge,nr.arcSweep);case window.SVGPathSeg.PATHSEG_ARC_ABS:return nr={x1:this._parseNumber(),y1:this._parseNumber(),arcAngle:this._parseNumber(),arcLarge:this._parseArcFlag(),arcSweep:this._parseArcFlag(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegArcAbs(tr,nr.x,nr.y,nr.x1,nr.y1,nr.arcAngle,nr.arcLarge,nr.arcSweep);default:throw"Unknown path seg type."}};var ir=new rr,or=new nr(er);if(!or.initialCommandIsMoveTo())return[];for(;or.hasMoreData();){var ar=or.parseSegment();if(!ar)return[];ir.appendSegment(ar)}return ir.pathSegList});Boolean(document.createElementNS&&document.createElementNS(wd.SVG,"svg").createSVGRect);var xd,kd=navigator.userAgent,Cd=document.createElementNS(wd.SVG,"svg"),Bd=Boolean(window.opera),Ed=kd.includes("AppleWebKit"),Nd=kd.includes("Gecko/"),Ld=kd.includes("MSIE"),Td=kd.includes("Chrome/"),Pd=(kd.includes("Windows"),kd.includes("Macintosh")),Fd="ontouchstart"in window,Ud=Boolean(Cd.querySelector),Id=Boolean(document.evaluate),Rd=function(){var er=document.createElementNS(wd.SVG,"path");er.setAttribute("d","M0,0 10,10");var tr=er.pathSegList,rr=er.createSVGPathSegLinetoAbs(5,5);try{return tr.replaceItem(rr,1),!0}catch(er){}return!1}(),Md=function(){var er=document.createElementNS(wd.SVG,"path");er.setAttribute("d","M0,0 10,10");var tr=er.pathSegList,rr=er.createSVGPathSegLinetoAbs(5,5);try{return tr.insertItemBefore(rr,1),!0}catch(er){}return!1}(),Od=function(){var er=document.createElementNS(wd.SVG,"svg"),tr=document.createElementNS(wd.SVG,"svg");document.documentElement.append(er),tr.setAttribute("x",5),er.append(tr);var rr=document.createElementNS(wd.SVG,"text");rr.textContent="a",tr.append(rr);try{return 0===rr.getStartPositionOfChar(0).x}catch(er){return!1}finally{er.remove()}}(),Qd=function(){var er=document.createElementNS(wd.SVG,"svg");document.documentElement.append(er);var tr=document.createElementNS(wd.SVG,"path");tr.setAttribute("d","M0,0 C0,0 10,10 10,0"),er.append(tr);var rr=tr.getBBox();return er.remove(),rr.height>4&&rr.height<5}(),Dd=function(){var er=document.createElementNS(wd.SVG,"svg");document.documentElement.append(er);var tr=document.createElementNS(wd.SVG,"path");tr.setAttribute("d","M0,0 10,0");var rr=document.createElementNS(wd.SVG,"path");rr.setAttribute("d","M5,0 15,0");var nr=document.createElementNS(wd.SVG,"g");nr.append(tr,rr),er.append(nr);var ir=nr.getBBox();return er.remove(),15===ir.width}(),jd=((xd=document.createElementNS(wd.SVG,"rect")).setAttribute("style","vector-effect:non-scaling-stroke"),"non-scaling-stroke"===xd.style.vectorEffect),Hd=function(){var er=document.createElementNS(wd.SVG,"rect").transform.baseVal,tr=Cd.createSVGTransform();er.appendItem(tr);var rr=er.getItem(0),nr=function isSVGTransform(er){return er&&"object"===_typeof(er)&&"function"==typeof er.setMatrix&&"angle"in er};return nr(rr)&&nr(tr)&&rr.type===tr.type&&rr.angle===tr.angle&&rr.matrix.a===tr.matrix.a&&rr.matrix.b===tr.matrix.b&&rr.matrix.c===tr.matrix.c&&rr.matrix.d===tr.matrix.d&&rr.matrix.e===tr.matrix.e&&rr.matrix.f===tr.matrix.f}(),Gd=function isWebkit(){return Ed},Vd=function isGecko(){return Nd},zd=function isIE(){return Ld},Kd=function isChrome(){return Td},qd=function isMac(){return Pd},Wd=function isTouch(){return Fd},Xd=function supportsGoodTextCharPos(){return Od},Yd=function supportsNonScalingStroke(){return jd},Jd="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView,toIndex=function(er){if(void 0===er)return 0;var tr=toInteger(er),rr=toLength(tr);if(tr!==rr)throw RangeError("Wrong length or index");return rr},$d=Math.abs,Zd=Math.pow,eh=Math.floor,th=Math.log,rh=Math.LN2,ieee754_pack=function(er,tr,rr){var nr,ir,or,ar=new Array(rr),sr=8*rr-tr-1,lr=(1<<sr)-1,cr=lr>>1,ur=23===tr?Zd(2,-24)-Zd(2,-77):0,dr=er<0||0===er&&1/er<0?1:0,hr=0;for((er=$d(er))!=er||Infinity===er?(ir=er!=er?1:0,nr=lr):(nr=eh(th(er)/rh),er*(or=Zd(2,-nr))<1&&(nr--,or*=2),(er+=nr+cr>=1?ur/or:ur*Zd(2,1-cr))*or>=2&&(nr++,or/=2),nr+cr>=lr?(ir=0,nr=lr):nr+cr>=1?(ir=(er*or-1)*Zd(2,tr),nr+=cr):(ir=er*Zd(2,cr-1)*Zd(2,tr),nr=0));tr>=8;ar[hr++]=255&ir,ir/=256,tr-=8);for(nr=nr<<tr|ir,sr+=tr;sr>0;ar[hr++]=255&nr,nr/=256,sr-=8);return ar[--hr]|=128*dr,ar},ieee754_unpack=function(er,tr){var rr,nr=er.length,ir=8*nr-tr-1,or=(1<<ir)-1,ar=or>>1,sr=ir-7,lr=nr-1,cr=er[lr--],ur=127&cr;for(cr>>=7;sr>0;ur=256*ur+er[lr],lr--,sr-=8);for(rr=ur&(1<<-sr)-1,ur>>=-sr,sr+=tr;sr>0;rr=256*rr+er[lr],lr--,sr-=8);if(0===ur)ur=1-ar;else{if(ur===or)return rr?NaN:cr?-Infinity:Infinity;rr+=Zd(2,tr),ur-=ar}return(cr?-1:1)*rr*Zd(2,ur-tr)},nh=function fill(er){for(var tr=toObject(this),rr=toLength(tr.length),nr=arguments.length,ir=toAbsoluteIndex(nr>1?arguments[1]:void 0,rr),or=nr>2?arguments[2]:void 0,ar=void 0===or?rr:toAbsoluteIndex(or,rr);ar>ir;)tr[ir++]=er;return tr},ih=Jr.f,oh=gr.f,ah=Qr.get,sh=Qr.set,lh=tr.ArrayBuffer,ch=lh,uh=tr.DataView,dh=uh&&uh.prototype,hh=Object.prototype,ph=tr.RangeError,Ah=ieee754_pack,fh=ieee754_unpack,packInt8=function(er){return[255&er]},packInt16=function(er){return[255&er,er>>8&255]},packInt32=function(er){return[255&er,er>>8&255,er>>16&255,er>>24&255]},unpackInt32=function(er){return er[3]<<24|er[2]<<16|er[1]<<8|er[0]},packFloat32=function(er){return Ah(er,23,4)},packFloat64=function(er){return Ah(er,52,8)},addGetter=function(er,tr){oh(er.prototype,tr,{get:function(){return ah(this)[tr]}})},get$1=function(er,tr,rr,nr){var ir=toIndex(rr),or=ah(er);if(ir+tr>or.byteLength)throw ph("Wrong index");var ar=ah(or.buffer).bytes,sr=ir+or.byteOffset,lr=ar.slice(sr,sr+tr);return nr?lr:lr.reverse()},set$2=function(er,tr,rr,nr,ir,or){var ar=toIndex(rr),sr=ah(er);if(ar+tr>sr.byteLength)throw ph("Wrong index");for(var lr=ah(sr.buffer).bytes,cr=ar+sr.byteOffset,ur=nr(+ir),dr=0;dr<tr;dr++)lr[cr+dr]=ur[or?dr:tr-dr-1]};if(Jd){if(!fails((function(){lh(1)}))||!fails((function(){new lh(-1)}))||fails((function(){return new lh,new lh(1.5),new lh(NaN),"ArrayBuffer"!=lh.name}))){for(var gh,mh=(ch=function ArrayBuffer(er){return anInstance(this,ch),new lh(toIndex(er))}).prototype=lh.prototype,_h=ih(lh),vh=0;_h.length>vh;)(gh=_h[vh++])in ch||mr(ch,gh,lh[gh]);mh.constructor=ch}No&&La(dh)!==hh&&No(dh,hh);var yh=new uh(new ch(2)),bh=dh.setInt8;yh.setInt8(0,2147483648),yh.setInt8(1,2147483649),!yh.getInt8(0)&&yh.getInt8(1)||redefineAll(dh,{setInt8:function setInt8(er,tr){bh.call(this,er,tr<<24>>24)},setUint8:function setUint8(er,tr){bh.call(this,er,tr<<24>>24)}},{unsafe:!0})}else ch=function ArrayBuffer(er){anInstance(this,ch,"ArrayBuffer");var tr=toIndex(er);sh(this,{bytes:nh.call(new Array(tr),0),byteLength:tr}),rr||(this.byteLength=tr)},uh=function DataView(er,tr,nr){anInstance(this,uh,"DataView"),anInstance(er,ch,"DataView");var ir=ah(er).byteLength,or=toInteger(tr);if(or<0||or>ir)throw ph("Wrong offset");if(or+(nr=void 0===nr?ir-or:toLength(nr))>ir)throw ph("Wrong length");sh(this,{buffer:er,byteLength:nr,byteOffset:or}),rr||(this.buffer=er,this.byteLength=nr,this.byteOffset=or)},rr&&(addGetter(ch,"byteLength"),addGetter(uh,"buffer"),addGetter(uh,"byteLength"),addGetter(uh,"byteOffset")),redefineAll(uh.prototype,{getInt8:function getInt8(er){return get$1(this,1,er)[0]<<24>>24},getUint8:function getUint8(er){return get$1(this,1,er)[0]},getInt16:function getInt16(er){var tr=get$1(this,2,er,arguments.length>1?arguments[1]:void 0);return(tr[1]<<8|tr[0])<<16>>16},getUint16:function getUint16(er){var tr=get$1(this,2,er,arguments.length>1?arguments[1]:void 0);return tr[1]<<8|tr[0]},getInt32:function getInt32(er){return unpackInt32(get$1(this,4,er,arguments.length>1?arguments[1]:void 0))},getUint32:function getUint32(er){return unpackInt32(get$1(this,4,er,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function getFloat32(er){return fh(get$1(this,4,er,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function getFloat64(er){return fh(get$1(this,8,er,arguments.length>1?arguments[1]:void 0),52)},setInt8:function setInt8(er,tr){set$2(this,1,er,packInt8,tr)},setUint8:function setUint8(er,tr){set$2(this,1,er,packInt8,tr)},setInt16:function setInt16(er,tr){set$2(this,2,er,packInt16,tr,arguments.length>2?arguments[2]:void 0)},setUint16:function setUint16(er,tr){set$2(this,2,er,packInt16,tr,arguments.length>2?arguments[2]:void 0)},setInt32:function setInt32(er,tr){set$2(this,4,er,packInt32,tr,arguments.length>2?arguments[2]:void 0)},setUint32:function setUint32(er,tr){set$2(this,4,er,packInt32,tr,arguments.length>2?arguments[2]:void 0)},setFloat32:function setFloat32(er,tr){set$2(this,4,er,packFloat32,tr,arguments.length>2?arguments[2]:void 0)},setFloat64:function setFloat64(er,tr){set$2(this,8,er,packFloat64,tr,arguments.length>2?arguments[2]:void 0)}});setToStringTag(ch,"ArrayBuffer"),setToStringTag(uh,"DataView");var wh={ArrayBuffer:ch,DataView:uh},Sh=wh.ArrayBuffer,xh=wh.DataView,kh=Sh.prototype.slice,Ch=fails((function(){return!new Sh(2).slice(1,void 0).byteLength}));_export({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:Ch},{slice:function slice(er,tr){if(void 0!==kh&&void 0===tr)return kh.call(anObject(this),er);for(var rr=anObject(this).byteLength,nr=toAbsoluteIndex(er,rr),ir=toAbsoluteIndex(void 0===tr?rr:tr,rr),or=new(speciesConstructor(this,Sh))(toLength(ir-nr)),ar=new xh(this),sr=new xh(or),lr=0;nr<ir;)sr.setUint8(lr++,ar.getUint8(nr++));return or}});var Bh,Eh=gr.f,Nh=tr.Int8Array,Lh=Nh&&Nh.prototype,Th=tr.Uint8ClampedArray,Ph=Th&&Th.prototype,Fh=Nh&&La(Nh),Uh=Lh&&La(Lh),Ih=Object.prototype,Rh=Ih.isPrototypeOf,Mh=wellKnownSymbol("toStringTag"),Oh=uid("TYPED_ARRAY_TAG"),Qh=Jd&&!!No&&"Opera"!==Ao(tr.opera),Dh=!1,jh={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},isTypedArray=function(er){return isObject(er)&&has(jh,Ao(er))};for(Bh in jh)tr[Bh]||(Qh=!1);if((!Qh||"function"!=typeof Fh||Fh===Function.prototype)&&(Fh=function TypedArray(){throw TypeError("Incorrect invocation")},Qh))for(Bh in jh)tr[Bh]&&No(tr[Bh],Fh);if((!Qh||!Uh||Uh===Ih)&&(Uh=Fh.prototype,Qh))for(Bh in jh)tr[Bh]&&No(tr[Bh].prototype,Uh);if(Qh&&La(Ph)!==Uh&&No(Ph,Uh),rr&&!has(Uh,Mh))for(Bh in Dh=!0,Eh(Uh,Mh,{get:function(){return isObject(this)?this[Oh]:void 0}}),jh)tr[Bh]&&mr(tr[Bh],Oh,Bh);var Hh={NATIVE_ARRAY_BUFFER_VIEWS:Qh,TYPED_ARRAY_TAG:Dh&&Oh,aTypedArray:function(er){if(isTypedArray(er))return er;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(er){if(No){if(Rh.call(Fh,er))return er}else for(var rr in jh)if(has(jh,Bh)){var nr=tr[rr];if(nr&&(er===nr||Rh.call(nr,er)))return er}throw TypeError("Target is not a typed array constructor")},exportTypedArrayMethod:function(er,nr,ir){if(rr){if(ir)for(var or in jh){var ar=tr[or];ar&&has(ar.prototype,er)&&delete ar.prototype[er]}Uh[er]&&!ir||Dr(Uh,er,ir?nr:Qh&&Lh[er]||nr)}},exportTypedArrayStaticMethod:function(er,nr,ir){var or,ar;if(rr){if(No){if(ir)for(or in jh)(ar=tr[or])&&has(ar,er)&&delete ar[er];if(Fh[er]&&!ir)return;try{return Dr(Fh,er,ir?nr:Qh&&Nh[er]||nr)}catch(er){}}for(or in jh)!(ar=tr[or])||ar[er]&&!ir||Dr(ar,er,nr)}},isView:function isView(er){var tr=Ao(er);return"DataView"===tr||has(jh,tr)},isTypedArray:isTypedArray,TypedArray:Fh,TypedArrayPrototype:Uh},Gh=Hh.NATIVE_ARRAY_BUFFER_VIEWS,Vh=tr.ArrayBuffer,zh=tr.Int8Array,Kh=!Gh||!fails((function(){zh(1)}))||!fails((function(){new zh(-1)}))||!checkCorrectnessOfIteration((function(er){new zh,new zh(null),new zh(1.5),new zh(er)}),!0)||fails((function(){return 1!==new zh(new Vh(2),1,void 0).length})),toOffset=function(er,tr){var rr=function(er){var tr=toInteger(er);if(tr<0)throw RangeError("The argument can't be less than 0");return tr}(er);if(rr%tr)throw RangeError("Wrong offset");return rr},qh=Hh.aTypedArrayConstructor,Wh=function from(er){var tr,rr,nr,ir,or,ar,sr=toObject(er),lr=arguments.length,cr=lr>1?arguments[1]:void 0,ur=void 0!==cr,dr=getIteratorMethod(sr);if(null!=dr&&!isArrayIteratorMethod(dr))for(ar=(or=dr.call(sr)).next,sr=[];!(ir=ar.call(or)).done;)sr.push(ir.value);for(ur&&lr>2&&(cr=functionBindContext(cr,arguments[2],2)),rr=toLength(sr.length),nr=new(qh(this))(rr),tr=0;rr>tr;tr++)nr[tr]=ur?cr(sr[tr],tr):sr[tr];return nr},Xh=createCommonjsModule((function(er){var nr=Jr.f,ir=ui.forEach,or=Qr.get,ar=Qr.set,sr=gr.f,lr=Ar.f,cr=Math.round,ur=tr.RangeError,dr=wh.ArrayBuffer,hr=wh.DataView,pr=Hh.NATIVE_ARRAY_BUFFER_VIEWS,fr=Hh.TYPED_ARRAY_TAG,_r=Hh.TypedArray,vr=Hh.TypedArrayPrototype,yr=Hh.aTypedArrayConstructor,br=Hh.isTypedArray,wr="BYTES_PER_ELEMENT",Sr="Wrong length",fromList=function(er,tr){for(var rr=0,nr=tr.length,ir=new(yr(er))(nr);nr>rr;)ir[rr]=tr[rr++];return ir},addGetter=function(er,tr){sr(er,tr,{get:function(){return or(this)[tr]}})},isArrayBuffer=function(er){var tr;return er instanceof dr||"ArrayBuffer"==(tr=Ao(er))||"SharedArrayBuffer"==tr},isTypedArrayIndex=function(er,tr){return br(er)&&"symbol"!=typeof tr&&tr in er&&String(+tr)==String(tr)},xr=function getOwnPropertyDescriptor(er,tr){return isTypedArrayIndex(er,tr=toPrimitive(tr,!0))?createPropertyDescriptor(2,er[tr]):lr(er,tr)},kr=function defineProperty(er,tr,rr){return!(isTypedArrayIndex(er,tr=toPrimitive(tr,!0))&&isObject(rr)&&has(rr,"value"))||has(rr,"get")||has(rr,"set")||rr.configurable||has(rr,"writable")&&!rr.writable||has(rr,"enumerable")&&!rr.enumerable?sr(er,tr,rr):(er[tr]=rr.value,er)};rr?(pr||(Ar.f=xr,gr.f=kr,addGetter(vr,"buffer"),addGetter(vr,"byteOffset"),addGetter(vr,"byteLength"),addGetter(vr,"length")),_export({target:"Object",stat:!0,forced:!pr},{getOwnPropertyDescriptor:xr,defineProperty:kr}),er.exports=function(er,rr,lr){var Ar=er.match(/\d+$/)[0]/8,gr=er+(lr?"Clamped":"")+"Array",yr="get"+er,xr="set"+er,kr=tr[gr],Cr=kr,Br=Cr&&Cr.prototype,Er={},addElement=function(er,tr){sr(er,tr,{get:function(){return function(er,tr){var rr=or(er);return rr.view[yr](tr*Ar+rr.byteOffset,!0)}(this,tr)},set:function(er){return function(er,tr,rr){var nr=or(er);lr&&(rr=(rr=cr(rr))<0?0:rr>255?255:255&rr),nr.view[xr](tr*Ar+nr.byteOffset,rr,!0)}(this,tr,er)},enumerable:!0})};pr?Kh&&(Cr=rr((function(er,tr,rr,nr){return anInstance(er,Cr,gr),inheritIfRequired(isObject(tr)?isArrayBuffer(tr)?void 0!==nr?new kr(tr,toOffset(rr,Ar),nr):void 0!==rr?new kr(tr,toOffset(rr,Ar)):new kr(tr):br(tr)?fromList(Cr,tr):Wh.call(Cr,tr):new kr(toIndex(tr)),er,Cr)})),No&&No(Cr,_r),ir(nr(kr),(function(er){er in Cr||mr(Cr,er,kr[er])})),Cr.prototype=Br):(Cr=rr((function(er,tr,rr,nr){anInstance(er,Cr,gr);var ir,or,sr,lr=0,cr=0;if(isObject(tr)){if(!isArrayBuffer(tr))return br(tr)?fromList(Cr,tr):Wh.call(Cr,tr);ir=tr,cr=toOffset(rr,Ar);var pr=tr.byteLength;if(void 0===nr){if(pr%Ar)throw ur(Sr);if((or=pr-cr)<0)throw ur(Sr)}else if((or=toLength(nr)*Ar)+cr>pr)throw ur(Sr);sr=or/Ar}else sr=toIndex(tr),ir=new dr(or=sr*Ar);for(ar(er,{buffer:ir,byteOffset:cr,byteLength:or,length:sr,view:new hr(ir)});lr<sr;)addElement(er,lr++)})),No&&No(Cr,_r),Br=Cr.prototype=wi(vr)),Br.constructor!==Cr&&mr(Br,"constructor",Cr),fr&&mr(Br,fr,gr),Er[gr]=Cr,_export({global:!0,forced:Cr!=kr,sham:!pr},Er),wr in Cr||mr(Cr,wr,Ar),wr in Br||mr(Br,wr,Ar),setSpecies(gr)}):er.exports=function(){}}));Xh("Uint8",(function(er){return function Uint8Array(tr,rr,nr){return er(this,tr,rr,nr)}}));var Yh=Math.min,Jh=[].copyWithin||function copyWithin(er,tr){var rr=toObject(this),nr=toLength(rr.length),ir=toAbsoluteIndex(er,nr),or=toAbsoluteIndex(tr,nr),ar=arguments.length>2?arguments[2]:void 0,sr=Yh((void 0===ar?nr:toAbsoluteIndex(ar,nr))-or,nr-ir),lr=1;for(or<ir&&ir<or+sr&&(lr=-1,or+=sr-1,ir+=sr-1);sr-- >0;)or in rr?rr[ir]=rr[or]:delete rr[ir],ir+=lr,or+=lr;return rr},$h=Hh.aTypedArray;(0,Hh.exportTypedArrayMethod)("copyWithin",(function copyWithin(er,tr){return Jh.call($h(this),er,tr,arguments.length>2?arguments[2]:void 0)}));var Zh=ui.every,ep=Hh.aTypedArray;(0,Hh.exportTypedArrayMethod)("every",(function every(er){return Zh(ep(this),er,arguments.length>1?arguments[1]:void 0)}));var tp=Hh.aTypedArray;(0,Hh.exportTypedArrayMethod)("fill",(function fill(er){return nh.apply(tp(this),arguments)}));var rp=ui.filter,np=Hh.aTypedArray,ip=Hh.aTypedArrayConstructor;(0,Hh.exportTypedArrayMethod)("filter",(function filter(er){for(var tr=rp(np(this),er,arguments.length>1?arguments[1]:void 0),rr=speciesConstructor(this,this.constructor),nr=0,ir=tr.length,or=new(ip(rr))(ir);ir>nr;)or[nr]=tr[nr++];return or}));var op=ui.find,ap=Hh.aTypedArray;(0,Hh.exportTypedArrayMethod)("find",(function find(er){return op(ap(this),er,arguments.length>1?arguments[1]:void 0)}));var sp=ui.findIndex,lp=Hh.aTypedArray;(0,Hh.exportTypedArrayMethod)("findIndex",(function findIndex(er){return sp(lp(this),er,arguments.length>1?arguments[1]:void 0)}));var cp=ui.forEach,up=Hh.aTypedArray;(0,Hh.exportTypedArrayMethod)("forEach",(function forEach(er){cp(up(this),er,arguments.length>1?arguments[1]:void 0)}));var dp=qr.includes,hp=Hh.aTypedArray;(0,Hh.exportTypedArrayMethod)("includes",(function includes(er){return dp(hp(this),er,arguments.length>1?arguments[1]:void 0)}));var pp=qr.indexOf,Ap=Hh.aTypedArray;(0,Hh.exportTypedArrayMethod)("indexOf",(function indexOf(er){return pp(Ap(this),er,arguments.length>1?arguments[1]:void 0)}));var fp=wellKnownSymbol("iterator"),gp=tr.Uint8Array,mp=Ha.values,_p=Ha.keys,vp=Ha.entries,yp=Hh.aTypedArray,wp=Hh.exportTypedArrayMethod,Sp=gp&&gp.prototype[fp],xp=!!Sp&&("values"==Sp.name||null==Sp.name),kp=function values(){return mp.call(yp(this))};wp("entries",(function entries(){return vp.call(yp(this))})),wp("keys",(function keys(){return _p.call(yp(this))})),wp("values",kp,!xp),wp(fp,kp,!xp);var Cp=Hh.aTypedArray,Bp=[].join;(0,Hh.exportTypedArrayMethod)("join",(function join(er){return Bp.apply(Cp(this),arguments)}));var Ep=Math.min,Np=[].lastIndexOf,Lp=!!Np&&1/[1].lastIndexOf(1,-0)<0,Tp=arrayMethodIsStrict("lastIndexOf"),Pp=arrayMethodUsesToLength("indexOf",{ACCESSORS:!0,1:0}),Fp=Lp||!Tp||!Pp?function lastIndexOf(er){if(Lp)return Np.apply(this,arguments)||0;var tr=toIndexedObject(this),rr=toLength(tr.length),nr=rr-1;for(arguments.length>1&&(nr=Ep(nr,toInteger(arguments[1]))),nr<0&&(nr=rr+nr);nr>=0;nr--)if(nr in tr&&tr[nr]===er)return nr||0;return-1}:Np,Up=Hh.aTypedArray;(0,Hh.exportTypedArrayMethod)("lastIndexOf",(function lastIndexOf(er){return Fp.apply(Up(this),arguments)}));var Ip=ui.map,Rp=Hh.aTypedArray,Mp=Hh.aTypedArrayConstructor;(0,Hh.exportTypedArrayMethod)("map",(function map(er){return Ip(Rp(this),er,arguments.length>1?arguments[1]:void 0,(function(er,tr){return new(Mp(speciesConstructor(er,er.constructor)))(tr)}))}));var Op=ms.left,Qp=Hh.aTypedArray;(0,Hh.exportTypedArrayMethod)("reduce",(function reduce(er){return Op(Qp(this),er,arguments.length,arguments.length>1?arguments[1]:void 0)}));var Dp=ms.right,jp=Hh.aTypedArray;(0,Hh.exportTypedArrayMethod)("reduceRight",(function reduceRight(er){return Dp(jp(this),er,arguments.length,arguments.length>1?arguments[1]:void 0)}));var Hp=Hh.aTypedArray,Gp=Hh.exportTypedArrayMethod,Vp=Math.floor;Gp("reverse",(function reverse(){for(var er,tr=this,rr=Hp(tr).length,nr=Vp(rr/2),ir=0;ir<nr;)er=tr[ir],tr[ir++]=tr[--rr],tr[rr]=er;return tr}));var zp=Hh.aTypedArray;(0,Hh.exportTypedArrayMethod)("set",(function set(er){zp(this);var tr=toOffset(arguments.length>1?arguments[1]:void 0,1),rr=this.length,nr=toObject(er),ir=toLength(nr.length),or=0;if(ir+tr>rr)throw RangeError("Wrong length");for(;or<ir;)this[tr+or]=nr[or++]}),fails((function(){new Int8Array(1).set({})})));var Kp=Hh.aTypedArray,qp=Hh.aTypedArrayConstructor,Wp=[].slice;(0,Hh.exportTypedArrayMethod)("slice",(function slice(er,tr){for(var rr=Wp.call(Kp(this),er,tr),nr=speciesConstructor(this,this.constructor),ir=0,or=rr.length,ar=new(qp(nr))(or);or>ir;)ar[ir]=rr[ir++];return ar}),fails((function(){new Int8Array(1).slice()})));var Xp=ui.some,Yp=Hh.aTypedArray;(0,Hh.exportTypedArrayMethod)("some",(function some(er){return Xp(Yp(this),er,arguments.length>1?arguments[1]:void 0)}));var Jp=Hh.aTypedArray,$p=[].sort;(0,Hh.exportTypedArrayMethod)("sort",(function sort(er){return $p.call(Jp(this),er)}));var Zp=Hh.aTypedArray;(0,Hh.exportTypedArrayMethod)("subarray",(function subarray(er,tr){var rr=Zp(this),nr=rr.length,ir=toAbsoluteIndex(er,nr);return new(speciesConstructor(rr,rr.constructor))(rr.buffer,rr.byteOffset+ir*rr.BYTES_PER_ELEMENT,toLength((void 0===tr?nr:toAbsoluteIndex(tr,nr))-ir))}));var eA=tr.Int8Array,tA=Hh.aTypedArray,rA=Hh.exportTypedArrayMethod,nA=[].toLocaleString,iA=[].slice,oA=!!eA&&fails((function(){nA.call(new eA(1))}));rA("toLocaleString",(function toLocaleString(){return nA.apply(oA?iA.call(tA(this)):tA(this),arguments)}),fails((function(){return[1,2].toLocaleString()!=new eA([1,2]).toLocaleString()}))||!fails((function(){eA.prototype.toLocaleString.call([1,2])})));var aA=Hh.exportTypedArrayMethod,sA=tr.Uint8Array,lA=sA&&sA.prototype||{},cA=[].toString,uA=[].join;fails((function(){cA.call({})}))&&(cA=function toString(){return uA.call(this)});var dA=lA.toString!=cA;
|
||
/**
|
||
* A jQuery module to work with SVG attributes.
|
||
* @module jQueryAttr
|
||
* @license MIT
|
||
*/
|
||
function jQueryPluginSVG(er){var tr=er.fn.attr;return er.fn.attr=function(er,rr){var nr=this.length;if(!nr)return tr.call(this,er,rr);for(var ir=0;ir<nr;++ir){var or=this[ir];if("http://www.w3.org/2000/svg"!==or.namespaceURI)return tr.call(this,er,rr);if(void 0!==rr)or.setAttribute(er,rr);else if(Array.isArray(er)){for(var ar={},sr=er.length;sr--;){var lr=er[sr],cr=or.getAttribute(lr);(cr||"0"===cr)&&(cr=isNaN(cr)?cr:cr-0),ar[lr]=cr}return ar}if("object"!==_typeof(er)){var ur=or.getAttribute(er);return(ur||"0"===ur)&&(ur=isNaN(ur)?ur:ur-0),ur}for(var dr=0,hr=Object.entries(er);dr<hr.length;dr++){var pr=_slicedToArray(hr[dr],2),Ar=pr[0],fr=pr[1];or.setAttribute(Ar,fr)}}return this},er}aA("toString",cA,dA);var hA=document.createElementNS(wd.SVG,"svg");function transformToString(er){var tr=er.matrix,rr="";switch(er.type){case 1:rr="matrix("+[tr.a,tr.b,tr.c,tr.d,tr.e,tr.f].join(",")+")";break;case 2:rr="translate("+tr.e+","+tr.f+")";break;case 3:rr=tr.a===tr.d?"scale(".concat(tr.a,")"):"scale(".concat(tr.a,",").concat(tr.d,")");break;case 4:var nr=0,ir=0;if(0!==er.angle){var or=1-tr.a;ir=(or*tr.f+tr.b*tr.e)/(or*or+tr.b*tr.b),nr=(tr.e-tr.b*ir)/or}rr="rotate("+er.angle+" "+nr+","+ir+")"}return rr}var pA,AA={},fA=function(){function SVGTransformList(er){_classCallCheck(this,SVGTransformList),this._elem=er||null,this._xforms=[],this._update=function(){for(var er="",tr=0;tr<this.numberOfItems;++tr){er+=transformToString(this._list.getItem(tr))+" "}this._elem.setAttribute("transform",er)},this._list=this,this._init=function(){var er=this,tr=this._elem.getAttribute("transform");if(tr)for(var rr=/\s*((scale|matrix|rotate|translate)\s*\(.*?\))\s*,?\s*/,nr=!0;nr;)nr=tr.match(rr),tr=tr.replace(rr,""),nr&&nr[1]&&function(){var tr=nr[1].split(/\s*\(/),rr=tr[0],ir=tr[1].match(/\s*(.*?)\s*\)/);ir[1]=ir[1].replace(/(\d)-/g,"$1 -");var or=ir[1].split(/[, ]+/),ar="abcdef".split(""),sr=hA.createSVGMatrix();Object.values(or).forEach((function(er,tr){or[tr]=Number.parseFloat(er),"matrix"===rr&&(sr[ar[tr]]=or[tr])}));var lr=hA.createSVGTransform(),cr="set"+rr.charAt(0).toUpperCase()+rr.slice(1),ur="matrix"===rr?[sr]:or;"scale"===rr&&1===ur.length?ur.push(ur[0]):"translate"===rr&&1===ur.length?ur.push(0):"rotate"===rr&&1===ur.length&&ur.push(0,0),lr[cr].apply(lr,_toConsumableArray(ur)),er._list.appendItem(lr)}()},this._removeFromOtherLists=function(er){er&&Object.values(AA).some((function(tr){for(var rr=0,nr=tr._xforms.length;rr<nr;++rr)if(tr._xforms[rr]===er)return tr.removeItem(rr),!0;return!1}))},this.numberOfItems=0}return _createClass(SVGTransformList,[{key:"clear",value:function clear(){this.numberOfItems=0,this._xforms=[]}},{key:"initialize",value:function initialize(er){this.numberOfItems=1,this._removeFromOtherLists(er),this._xforms=[er]}},{key:"getItem",value:function getItem(er){if(er<this.numberOfItems&&er>=0)return this._xforms[er];var tr=new Error("DOMException with code=INDEX_SIZE_ERR");throw tr.code=1,tr}},{key:"insertItemBefore",value:function insertItemBefore(er,tr){var rr=null;if(tr>=0)if(tr<this.numberOfItems){this._removeFromOtherLists(er);var nr,ir=new Array(this.numberOfItems+1);for(nr=0;nr<tr;++nr)ir[nr]=this._xforms[nr];ir[nr]=er;for(var or=nr+1;nr<this.numberOfItems;++or,++nr)ir[or]=this._xforms[nr];this.numberOfItems++,this._xforms=ir,rr=er,this._list._update()}else rr=this._list.appendItem(er);return rr}},{key:"replaceItem",value:function replaceItem(er,tr){var rr=null;return tr<this.numberOfItems&&tr>=0&&(this._removeFromOtherLists(er),this._xforms[tr]=er,rr=er,this._list._update()),rr}},{key:"removeItem",value:function removeItem(er){if(er<this.numberOfItems&&er>=0){var tr,rr=this._xforms[er],nr=new Array(this.numberOfItems-1);for(tr=0;tr<er;++tr)nr[tr]=this._xforms[tr];for(var ir=tr;ir<this.numberOfItems-1;++ir,++tr)nr[ir]=this._xforms[tr+1];return this.numberOfItems--,this._xforms=nr,this._list._update(),rr}var or=new Error("DOMException with code=INDEX_SIZE_ERR");throw or.code=1,or}},{key:"appendItem",value:function appendItem(er){return this._removeFromOtherLists(er),this._xforms.push(er),this.numberOfItems++,this._list._update(),er}}]),SVGTransformList}(),gA=function removeElementFromListMap(er){er.id&&AA[er.id]&&delete AA[er.id]},mA=function getTransformList(er){if(!function supportsNativeTransformLists(){return Hd}()){var tr=er.id||"temp",rr=AA[tr];return rr&&"temp"!==tr||(AA[tr]=new fA(er),AA[tr]._init(),rr=AA[tr]),rr}return er.transform?er.transform.baseVal:er.gradientTransform?er.gradientTransform.baseVal:er.patternTransform?er.patternTransform.baseVal:null},_A=["x","x1","cx","rx","width"],vA=["y","y1","cy","ry","height"],yA=["r","radius"].concat(_A,vA),wA={},SA=function getTypeMap(){return wA},xA=function shortFloat(er){var tr=pA.getRoundDigits();return isNaN(er)?Array.isArray(er)?shortFloat(er[0])+","+shortFloat(er[1]):Number.parseFloat(er).toFixed(tr)-0:Number(Number(er).toFixed(tr))},kA=function convertUnit(er,tr){return tr=tr||pA.getBaseUnit(),xA(er/wA[tr])},CA=function setUnitAttr(er,tr,rr){er.setAttribute(tr,rr)},BA=function convertToNum(er,tr){if(!isNaN(tr))return tr-0;if("%"===tr.substr(-1)){var rr=tr.substr(0,tr.length-1)/100,nr=pA.getWidth(),ir=pA.getHeight();return _A.includes(er)?rr*nr:vA.includes(er)?rr*ir:rr*Math.sqrt(nr*nr+ir*ir)/Math.sqrt(2)}var or=tr.substr(-2);return tr.substr(0,tr.length-2)*wA[or]},EA=function isValidUnit(er,tr,rr){if(yA.includes(er))return!isNaN(tr)||(tr=tr.toLowerCase(),Object.keys(wA).some((function(er){return new RegExp("^-?[\\d\\.]+"+er+"$").test(tr)})));if("id"===er){var nr=!1;try{var ir=pA.getElement(tr);nr=!ir||ir===rr}catch(er){}return nr}return!0},NA=ms.right,LA=arrayMethodIsStrict("reduceRight"),TA=arrayMethodUsesToLength("reduce",{1:0});_export({target:"Array",proto:!0,forced:!LA||!TA},{reduceRight:function reduceRight(er){return NA(this,er,arguments.length,arguments.length>1?arguments[1]:void 0)}});var PA=document.createElementNS(wd.SVG,"svg"),FA=function transformPoint(er,tr,rr){return{x:rr.a*er+rr.c*tr+rr.e,y:rr.b*er+rr.d*tr+rr.f}},UA=function isIdentity(er){return 1===er.a&&0===er.b&&0===er.c&&1===er.d&&0===er.e&&0===er.f},IA=function matrixMultiply(){for(var er=arguments.length,tr=new Array(er),rr=0;rr<er;rr++)tr[rr]=arguments[rr];var nr=tr.reduceRight((function(er,tr){return tr.multiply(er)}));return Math.abs(nr.a)<1e-14&&(nr.a=0),Math.abs(nr.b)<1e-14&&(nr.b=0),Math.abs(nr.c)<1e-14&&(nr.c=0),Math.abs(nr.d)<1e-14&&(nr.d=0),Math.abs(nr.e)<1e-14&&(nr.e=0),Math.abs(nr.f)<1e-14&&(nr.f=0),nr},RA=function hasMatrixTransform(er){if(!er)return!1;for(var tr=er.numberOfItems;tr--;){var rr=er.getItem(tr);if(1===rr.type&&!UA(rr.matrix))return!0}return!1},MA=function transformBox(er,tr,rr,nr,ir){var or=FA(er,tr,ir),ar=FA(er+rr,tr,ir),sr=FA(er,tr+nr,ir),lr=FA(er+rr,tr+nr,ir),cr=Math.min(or.x,ar.x,sr.x,lr.x),ur=Math.max(or.x,ar.x,sr.x,lr.x),dr=Math.min(or.y,ar.y,sr.y,lr.y);return{tl:or,tr:ar,bl:sr,br:lr,aabox:{x:cr,y:dr,width:ur-cr,height:Math.max(or.y,ar.y,sr.y,lr.y)-dr}}},OA=function transformListToTransform(er,tr,rr){if(!er)return PA.createSVGTransformFromMatrix(PA.createSVGMatrix());if(tr=tr||0,rr=rr||er.numberOfItems-1,(tr=Number.parseInt(tr))>(rr=Number.parseInt(rr))){var nr=rr;rr=tr,tr=nr}for(var ir=PA.createSVGMatrix(),or=tr;or<=rr;++or){var ar=or>=0&&or<er.numberOfItems?er.getItem(or).matrix:PA.createSVGMatrix();ir=IA(ir,ar)}return PA.createSVGTransformFromMatrix(ir)},QA=function getMatrix(er){var tr=mA(er);return OA(tr).matrix},DA=function snapToAngle(er,tr,rr,nr){var ir=Math.PI/4,or=rr-er,ar=nr-tr,sr=Math.atan2(ar,or),lr=Math.sqrt(or*or+ar*ar),cr=Math.round(sr/ir)*ir;return{x:er+lr*Math.cos(cr),y:tr+lr*Math.sin(cr),a:cr}},jA=function rectsIntersect(er,tr){return tr.x<er.x+er.width&&tr.x+tr.width>er.x&&tr.y<er.y+er.height&&tr.y+tr.height>er.y},HA=jQueryPluginSVG(jQuery),GA="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",VA="a,circle,ellipse,foreignObject,g,image,line,path,polygon,polyline,rect,svg,text,tspan,use,clipPath".split(","),zA=null,KA=null,qA=null,WA=null,XA=function dropXMLInternalSubset(er){return er.replace(/(<!DOCTYPE\s+\w*\s*\[).*(\?]>)/,"$1$2")},YA=function toXml(er){return er.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")};function encode64(er){if(er=JA(er),window.btoa)return window.btoa(er);var tr=new Array(4*Math.floor((er.length+2)/3)),rr=0,nr=0;do{var ir=er.charCodeAt(rr++),or=er.charCodeAt(rr++),ar=er.charCodeAt(rr++),sr=ir>>2,lr=(3&ir)<<4|or>>4,cr=(15&or)<<2|ar>>6,ur=63&ar;Number.isNaN(or)?(cr=64,ur=64):Number.isNaN(ar)&&(ur=64),tr[nr++]=GA.charAt(sr),tr[nr++]=GA.charAt(lr),tr[nr++]=GA.charAt(cr),tr[nr++]=GA.charAt(ur)}while(rr<er.length);return tr.join("")}function decode64(er){if(window.atob)return decodeUTF8(window.atob(er));er=er.replace(/[^A-Za-z\d+/=]/g,"");var tr="",rr=0;do{var nr=GA.indexOf(er.charAt(rr++)),ir=GA.indexOf(er.charAt(rr++)),or=GA.indexOf(er.charAt(rr++)),ar=GA.indexOf(er.charAt(rr++)),sr=nr<<2|ir>>4,lr=(15&ir)<<4|or>>2,cr=(3&or)<<6|ar;tr+=String.fromCharCode(sr),64!==or&&(tr+=String.fromCharCode(lr)),64!==ar&&(tr+=String.fromCharCode(cr))}while(rr<er.length);return decodeUTF8(tr)}function decodeUTF8(er){return decodeURIComponent(escape(er))}var JA=function encodeUTF8(er){return unescape(encodeURIComponent(er))},$A=function dataURLToObjectURL(er){if("undefined"==typeof Uint8Array||"undefined"==typeof Blob||"undefined"==typeof URL||!URL.createObjectURL)return"";for(var tr=er.split(","),rr=tr[0].match(/:(.*?);/)[1],nr=atob(tr[1]),ir=nr.length,or=new Uint8Array(ir);ir--;)or[ir]=nr.charCodeAt(ir);var ar=new Blob([or],{type:rr});return URL.createObjectURL(ar)},ZA=function createObjectURL(er){return er&&"undefined"!=typeof URL&&URL.createObjectURL?URL.createObjectURL(er):""},ef=function(){if("undefined"==typeof Blob)return"";var er=new Blob(["<html><head><title>SVG-edit</title></head><body> </body></html>"],{type:"text/html"});return ZA(er)}(),tf=function text2xml(er){var tr,rr;er.includes("<svg:svg")&&(er=er.replace(/<(\/?)svg:/g,"<$1").replace("xmlns:svg","xmlns"));try{(rr=window.DOMParser?new DOMParser:new window.ActiveXObject("Microsoft.XMLDOM")).async=!1}catch(er){throw new Error("XML Parser could not be instantiated")}try{tr=rr.loadXML?!!rr.loadXML(er)&&rr:rr.parseFromString(er,"text/xml")}catch(er){throw new Error("Error parsing XML string")}return tr},rf=function walkTree(er,tr){if(er&&1===er.nodeType){tr(er);for(var rr=er.childNodes.length;rr--;)walkTree(er.childNodes.item(rr),tr)}},nf=function getUrlFromAttr(er){if(er){if(er.startsWith('url("'))return er.substring(5,er.indexOf('"',6));if(er.startsWith("url('"))return er.substring(5,er.indexOf("'",6));if(er.startsWith("url("))return er.substring(4,er.indexOf(")"))}return null},of=function getHref(er){return er.getAttributeNS(wd.XLINK,"href")},af=function setHref(er,tr){er.setAttributeNS(wd.XLINK,"xlink:href",tr)},sf=function findDefs(){var er=zA.getSVGContent(),tr=er.getElementsByTagNameNS(wd.SVG,"defs");return tr.length>0?tr=tr[0]:(tr=er.ownerDocument.createElementNS(wd.SVG,"defs"),er.firstChild?er.insertBefore(tr,er.firstChild.nextSibling):er.append(tr)),tr},lf=function getPathBBox(er){for(var tr=er.pathSegList,rr=tr.numberOfItems,nr=[[],[]],ir=tr.getItem(0),or=[ir.x,ir.y],ar=function getCalc(er,tr,rr,nr){return function(ir){return 1-Math.pow(ir,3)*or[er]+3-Math.pow(ir,2)*ir*tr[er]+3*(1-ir)*Math.pow(ir,2)*rr[er]+Math.pow(ir,3)*nr[er]}},sr=0;sr<rr;sr++){var lr=tr.getItem(sr);if(void 0!==lr.x)if(nr[0].push(or[0]),nr[1].push(or[1]),lr.x1){for(var cr=[lr.x1,lr.y1],ur=[lr.x2,lr.y2],dr=[lr.x,lr.y],hr=0;hr<2;hr++){var pr=ar(hr,cr,ur,dr),Ar=6*or[hr]-12*cr[hr]+6*ur[hr],fr=-3*or[hr]+9*cr[hr]-9*ur[hr]+3*dr[hr],gr=3*cr[hr]-3*or[hr];if(0!==fr){var mr=Math.pow(Ar,2)-4*gr*fr;if(!(mr<0)){var _r=(-Ar+Math.sqrt(mr))/(2*fr);_r>0&&_r<1&&nr[hr].push(pr(_r));var vr=(-Ar-Math.sqrt(mr))/(2*fr);vr>0&&vr<1&&nr[hr].push(pr(vr))}}else{if(0===Ar)continue;var yr=-gr/Ar;yr>0&&yr<1&&nr[hr].push(pr(yr))}}or=dr}else nr[0].push(lr.x),nr[1].push(lr.y)}var br=Math.min.apply(null,nr[0]),wr=Math.max.apply(null,nr[0])-br,Sr=Math.min.apply(null,nr[1]);return{x:br,y:Sr,width:wr,height:Math.max.apply(null,nr[1])-Sr}};function groupBBFix(er){if(function supportsHVLineContainerBBox(){return Dd}())try{return er.getBBox()}catch(er){}var tr,rr,nr=HA.data(er,"ref"),ir=null;nr?(rr=HA(nr).children().clone().attr("visibility","hidden"),HA(WA).append(rr),ir=rr.filter("line, path")):ir=HA(er).find("line, path");var or=!1;if(ir.length)if(ir.each((function(){var er=this.getBBox();er.width&&er.height||(or=!0)})),or){var ar=nr?rr:HA(er).children();tr=ff(ar)}else tr=er.getBBox();else tr=er.getBBox();return nr&&rr.remove(),tr}var cf=function getBBox(er){var tr=er||zA.geSelectedElements()[0];if(1!==er.nodeType)return null;var rr=tr.nodeName,nr=null;switch(rr){case"text":""===tr.textContent?(tr.textContent="a",nr=tr.getBBox(),tr.textContent=""):tr.getBBox&&(nr=tr.getBBox());break;case"path":!function supportsPathBBox(){return Qd}()?nr=lf(tr):tr.getBBox&&(nr=tr.getBBox());break;case"g":case"a":nr=groupBBFix(tr);break;default:if("use"===rr&&(nr=groupBBFix(tr)),"use"===rr||"foreignObject"===rr&&Gd()){if(nr||(nr=tr.getBBox()),!Gd()){var ir=nr,or=ir.x,ar=ir.y;nr={width:ir.width,height:ir.height,x:or+Number.parseFloat(tr.getAttribute("x")||0),y:ar+Number.parseFloat(tr.getAttribute("y")||0)}}}else if(VA.includes(rr))if(tr)try{nr=tr.getBBox()}catch(er){var sr=tr.getExtentOfChar(0),lr=tr.getComputedTextLength();nr={x:sr.x,y:sr.y,width:lr,height:sr.height}}else{var cr=HA(tr).closest("foreignObject");cr.length&&cr[0].getBBox&&(nr=cr[0].getBBox())}}return nr&&(nr=function bboxToObj(er){return{x:er.x,y:er.y,width:er.width,height:er.height}}(nr)),nr},uf=function getPathDFromSegments(er){var tr="";return HA.each(er,(function(er,rr){var nr=_slicedToArray(rr,2),ir=nr[0],or=nr[1];tr+=ir;for(var ar=0;ar<or.length;ar+=2)tr+=or[ar]+","+or[ar+1]+" "})),tr},df=function getPathDFromElement(er){var tr,rr,nr,ir,or=1.81;switch(er.tagName){case"ellipse":case"circle":var ar=rr=HA(er).attr(["rx","ry","cx","cy"]),sr=ar.cx,lr=ar.cy,cr=rr;nr=cr.rx,ir=cr.ry,"circle"===er.tagName&&(nr=ir=HA(er).attr("r")),tr=uf([["M",[sr-nr,lr]],["C",[sr-nr,lr-ir/or,sr-nr/or,lr-ir,sr,lr-ir]],["C",[sr+nr/or,lr-ir,sr+nr,lr-ir/or,sr+nr,lr]],["C",[sr+nr,lr+ir/or,sr+nr/or,lr+ir,sr,lr+ir]],["C",[sr-nr/or,lr+ir,sr-nr,lr+ir/or,sr-nr,lr]],["Z",[]]]);break;case"path":tr=er.getAttribute("d");break;case"line":tr="M"+(rr=HA(er).attr(["x1","y1","x2","y2"])).x1+","+rr.y1+"L"+rr.x2+","+rr.y2;break;case"polyline":tr="M"+er.getAttribute("points");break;case"polygon":tr="M"+er.getAttribute("points")+" Z";break;case"rect":var ur=HA(er).attr(["rx","ry"]);nr=ur.rx,ir=ur.ry;var dr=er.getBBox(),hr=dr.x,pr=dr.y,Ar=dr.width,fr=dr.height;or=4-or,tr=uf(nr||ir?[["M",[hr,pr+ir]],["C",[hr,pr+ir/or,hr+nr/or,pr,hr+nr,pr]],["L",[hr+Ar-nr,pr]],["C",[hr+Ar-nr/or,pr,hr+Ar,pr+ir/or,hr+Ar,pr+ir]],["L",[hr+Ar,pr+fr-ir]],["C",[hr+Ar,pr+fr-ir/or,hr+Ar-nr/or,pr+fr,hr+Ar-nr,pr+fr]],["L",[hr+nr,pr+fr]],["C",[hr+nr/or,pr+fr,hr,pr+fr-ir/or,hr,pr+fr-ir]],["L",[hr,pr+ir]],["Z",[]]]:[["M",[hr,pr]],["L",[hr+Ar,pr]],["L",[hr+Ar,pr+fr]],["L",[hr,pr+fr]],["L",[hr,pr]],["Z",[]]])}return tr},hf=function getExtraAttributesForConvertToPath(er){var tr={};return HA.each(["marker-start","marker-end","marker-mid","filter","clip-path"],(function(){var rr=er.getAttribute(this);rr&&(tr[this]=rr)})),tr},pf=function getBBoxOfElementAsPath(er,tr,rr){var nr=tr({element:"path",attr:hf(er)}),ir=er.getAttribute("transform");ir&&nr.setAttribute("transform",ir);var or=er.parentNode;er.nextSibling?er.before(nr):or.append(nr);var ar=df(er);ar?nr.setAttribute("d",ar):nr.remove(),rr.resetOrientation(nr);var sr=!1;try{sr=nr.getBBox()}catch(er){}return nr.remove(),sr};var Af=function getBBoxWithTransform(er,tr,rr){var nr=cf(er);if(!nr)return null;var ir=mA(er),or=_f(ir),ar=RA(ir);if(or||ar){var sr=!1;if(function bBoxCanBeOptimizedOverNativeGetBBox(er,tr){var rr=er%90;return tr||!(rr>-.001&&rr<.001||rr<-89.99||rr>89.99)}(or,ar)){if(["ellipse","path","line","polyline","polygon"].includes(er.tagName))nr=sr=pf(er,tr,rr);else if("rect"===er.tagName){var lr=er.getAttribute("rx"),cr=er.getAttribute("ry");(lr||cr)&&(nr=sr=pf(er,tr,rr))}}if(!sr){var ur=OA(ir).matrix;nr=MA(nr.x,nr.y,nr.width,nr.height,ur).aabox}}return nr};function getStrokeOffsetForBBox(er){var tr=er.getAttribute("stroke-width");return isNaN(tr)||"none"===er.getAttribute("stroke")?0:tr/2}var ff=function getStrokedBBox(er,tr,rr){if(!er||!er.length)return!1;var nr;if(HA.each(er,(function(){nr||this.parentNode&&(nr=Af(this,tr,rr))})),void 0===nr)return null;var ir=nr.x+nr.width,or=nr.y+nr.height,ar=nr.x,sr=nr.y;if(1===er.length){var lr=getStrokeOffsetForBBox(er[0]);ar-=lr,sr-=lr,ir+=lr,or+=lr}else HA.each(er,(function(er,nr){var lr=Af(nr,tr,rr);if(lr){var cr=getStrokeOffsetForBBox(nr);ar=Math.min(ar,lr.x-cr),sr=Math.min(sr,lr.y-cr),1===nr.nodeType&&(ir=Math.max(ir,lr.x+lr.width+cr),or=Math.max(or,lr.y+lr.height+cr))}}));return nr.x=ar,nr.y=sr,nr.width=ir-ar,nr.height=or-sr,nr},gf=function getVisibleElements(er){er||(er=HA(zA.getSVGContent()).children());var tr=[];return HA(er).children().each((function(er,rr){rr.getBBox&&tr.push(rr)})),tr.reverse()},mf=function getStrokedBBoxDefaultVisible(er){return er||(er=gf()),ff(er,zA.addSVGElementFromJson,zA.pathActions)},_f=function getRotationAngleFromTransformList(er,tr){if(!er)return 0;for(var rr=er.numberOfItems,nr=0;nr<rr;++nr){var ir=er.getItem(nr);if(4===ir.type)return tr?ir.angle*Math.PI/180:ir.angle}return 0},vf=function getRotationAngle(er,tr){var rr=er||zA.getSelectedElements()[0],nr=mA(rr);return _f(nr,tr)},yf=function getRefElem(er){return bf(nf(er).substr(1))},bf=function supportsSelectors(){return Ud}()?function(er){return WA.querySelector("#"+er)}:function supportsXpath(){return Id}()?function(er){return KA.evaluate('svg:svg[@id="svgroot"]//svg:*[@id="'+er+'"]',qA,(function(){return wd.SVG}),9,null).singleNodeValue}:function(er){return HA(WA).find("[id=".concat(er,"]"))[0]},wf=function assignAttributes(er,tr,rr,nr){for(var ir=0,or=Object.entries(tr);ir<or.length;ir++){var ar=_slicedToArray(or[ir],2),sr=ar[0],lr=ar[1],cr="xml:"===sr.substr(0,4)?wd.XML:"xlink:"===sr.substr(0,6)?wd.XLINK:null;Cf(lr)?cr?er.removeAttributeNS(cr,sr):er.removeAttribute(sr):cr?er.setAttributeNS(cr,sr,lr):nr?CA(er,sr,lr):er.setAttribute(sr,lr)}},Sf=function cleanupElement(er){var tr={"fill-opacity":1,"stop-opacity":1,opacity:1,stroke:"none","stroke-dasharray":"none","stroke-linejoin":"miter","stroke-linecap":"butt","stroke-opacity":1,"stroke-width":1,rx:0,ry:0};"ellipse"===er.nodeName&&(delete tr.rx,delete tr.ry),Object.entries(tr).forEach((function(tr){var rr=_slicedToArray(tr,2),nr=rr[0],ir=rr[1];er.getAttribute(nr)===String(ir)&&er.removeAttribute(nr)}))},xf=function snapToGrid(er){var tr=zA.getBaseUnit(),rr=zA.getSnappingStep();return"px"!==tr&&(rr*=SA()[tr]),er=Math.round(er/rr)*rr},kf=function preventClickDefault(er){HA(er).click((function(er){er.preventDefault()}))},Cf=function isNullish(er){return null==er},Bf={},Ef=function injectExtendedContextMenuItemsIntoDom(){Object.values(Bf).forEach((function(er){!function injectExtendedContextMenuItemIntoDom(er){Object.keys(Bf).length||document.getElementById("cmenu_canvas").appendChild("<li class='separator'>");var tr=er.shortcut||"";document.getElementById("cmenu_canvas").appendChild("\n <li class='disabled'><a href='#".concat(er.id,"'>").concat(er.label,"<span class='shortcut'>").concat(tr,"</span></a></li>"))}(er)}))};_export({target:"Array",proto:!0},{fill:nh}),addToUnscopables("fill"),_export({target:"Object",stat:!0,forced:Object.assign!==pc},{assign:pc});var Nf="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},Lf=wh.ArrayBuffer,Tf=tr.ArrayBuffer;_export({global:!0,forced:Tf!==Lf},{ArrayBuffer:Lf}),setSpecies("ArrayBuffer"),_export({global:!0,forced:!Jd},{DataView:wh.DataView});var Pf=Math.floor;_export({target:"Number",stat:!0},{isInteger:function isInteger(er){return!isObject(er)&&isFinite(er)&&Pf(er)===er}}),_export({target:"Number",stat:!0},{MAX_SAFE_INTEGER:9007199254740991});var Ff=Ar.f,Uf=fails((function(){Ff(1)}));_export({target:"Object",stat:!0,forced:!rr||Uf,sham:!rr},{getOwnPropertyDescriptor:function getOwnPropertyDescriptor(er,tr){return Ff(toIndexedObject(er),tr)}});var If=Uu.f,Rf=fails((function(){return!Object.getOwnPropertyNames(1)}));_export({target:"Object",stat:!0,forced:Rf},{getOwnPropertyNames:If}),rr&&("g"!=/./g.flags||To.UNSUPPORTED_Y)&&gr.f(RegExp.prototype,"flags",{configurable:!0,get:regexpFlags}),_export({target:"String",proto:!0,forced:stringHtmlForced("link")},{link:function link(er){return createHtml(this,"a","href",er)}}),Xh("Float32",(function(er){return function Float32Array(tr,rr,nr){return er(this,tr,rr,nr)}})),Xh("Float64",(function(er){return function Float64Array(tr,rr,nr){return er(this,tr,rr,nr)}})),Xh("Int8",(function(er){return function Int8Array(tr,rr,nr){return er(this,tr,rr,nr)}})),Xh("Int16",(function(er){return function Int16Array(tr,rr,nr){return er(this,tr,rr,nr)}})),Xh("Int32",(function(er){return function Int32Array(tr,rr,nr){return er(this,tr,rr,nr)}})),Xh("Uint8",(function(er){return function Uint8ClampedArray(tr,rr,nr){return er(this,tr,rr,nr)}}),!0),Xh("Uint16",(function(er){return function Uint16Array(tr,rr,nr){return er(this,tr,rr,nr)}})),Xh("Uint32",(function(er){return function Uint32Array(tr,rr,nr){return er(this,tr,rr,nr)}}));
|
||
/** @license
|
||
*
|
||
* jsPDF - PDF Document creation from JavaScript
|
||
* Version 2.1.1 Built on 2020-09-07T12:58:19.950Z
|
||
* CommitID 00000000
|
||
*
|
||
* Copyright (c) 2010-2020 James Hall <james@parall.ax>, https://github.com/MrRio/jsPDF
|
||
* 2015-2020 yWorks GmbH, http://www.yworks.com
|
||
* 2015-2020 Lukas Holländer <lukas.hollaender@yworks.com>, https://github.com/HackbrettXXX
|
||
* 2016-2018 Aras Abbasi <aras.abbasi@gmail.com>
|
||
* 2010 Aaron Spike, https://github.com/acspike
|
||
* 2012 Willow Systems Corporation, willow-systems.com
|
||
* 2012 Pablo Hess, https://github.com/pablohess
|
||
* 2012 Florian Jenett, https://github.com/fjenett
|
||
* 2013 Warren Weckesser, https://github.com/warrenweckesser
|
||
* 2013 Youssef Beddad, https://github.com/lifof
|
||
* 2013 Lee Driscoll, https://github.com/lsdriscoll
|
||
* 2013 Stefan Slonevskiy, https://github.com/stefslon
|
||
* 2013 Jeremy Morel, https://github.com/jmorel
|
||
* 2013 Christoph Hartmann, https://github.com/chris-rock
|
||
* 2014 Juan Pablo Gaviria, https://github.com/juanpgaviria
|
||
* 2014 James Makes, https://github.com/dollaruw
|
||
* 2014 Diego Casorran, https://github.com/diegocr
|
||
* 2014 Steven Spungin, https://github.com/Flamenco
|
||
* 2014 Kenneth Glassey, https://github.com/Gavvers
|
||
*
|
||
* Permission is hereby granted, free of charge, to any person obtaining
|
||
* a copy of this software and associated documentation files (the
|
||
* "Software"), to deal in the Software without restriction, including
|
||
* without limitation the rights to use, copy, modify, merge, publish,
|
||
* distribute, sublicense, and/or sell copies of the Software, and to
|
||
* permit persons to whom the Software is furnished to do so, subject to
|
||
* the following conditions:
|
||
*
|
||
* The above copyright notice and this permission notice shall be
|
||
* included in all copies or substantial portions of the Software.
|
||
*
|
||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||
*
|
||
* Contributor(s):
|
||
* siefkenj, ahwolf, rickygu, Midnith, saintclair, eaparango,
|
||
* kim3er, mfo, alnorth, Flamenco
|
||
*/
|
||
var Mf=function(){return"undefined"!=typeof window?window:void 0!==Nf?Nf:"undefined"!=typeof self?self:this}();function e(){Mf.console&&"function"==typeof Mf.console.log&&Mf.console.log.apply(Mf.console,arguments)}var Of={log:e,warn:function warn(er){Mf.console&&("function"==typeof Mf.console.warn?Mf.console.warn.apply(Mf.console,arguments):e.call(null,arguments))},error:function error(er){Mf.console&&("function"==typeof Mf.console.error?Mf.console.error.apply(Mf.console,arguments):e(er))}};
|
||
/**
|
||
* @license
|
||
* FileSaver.js
|
||
* A saveAs() FileSaver implementation.
|
||
*
|
||
* By Eli Grey, http://eligrey.com
|
||
*
|
||
* License : https://github.com/eligrey/FileSaver.js/blob/master/LICENSE.md (MIT)
|
||
* source : http://purl.eligrey.com/github/FileSaver.js
|
||
*/function r(er,tr,rr){var nr=new XMLHttpRequest;nr.open("GET",er),nr.responseType="blob",nr.onload=function(){jf(nr.response,tr,rr)},nr.onerror=function(){Of.error("could not download file")},nr.send()}function i(er){var tr=new XMLHttpRequest;tr.open("HEAD",er,!1);try{tr.send()}catch(er){}return tr.status>=200&&tr.status<=299}function a(er){try{er.dispatchEvent(new MouseEvent("click"))}catch(rr){var tr=document.createEvent("MouseEvents");tr.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),er.dispatchEvent(tr)}}var Qf,Df,jf=Mf.saveAs||("object"!=("undefined"==typeof window?"undefined":_typeof(window))||window!==Mf?function(){}:"download"in HTMLAnchorElement.prototype?function(er,tr,rr){var nr=Mf.URL||Mf.webkitURL,ir=document.createElement("a");tr=tr||er.name||"download",ir.download=tr,ir.rel="noopener","string"==typeof er?(ir.href=er,ir.origin!==location.origin?i(ir.href)?r(er,tr,rr):a(ir,ir.target="_blank"):a(ir)):(ir.href=nr.createObjectURL(er),setTimeout((function(){nr.revokeObjectURL(ir.href)}),4e4),setTimeout((function(){a(ir)}),0))}:"msSaveOrOpenBlob"in navigator?function(er,tr,rr){if(tr=tr||er.name||"download","string"==typeof er)if(i(er))r(er,tr,rr);else{var nr=document.createElement("a");nr.href=er,nr.target="_blank",setTimeout((function(){a(nr)}))}else navigator.msSaveOrOpenBlob(function(er,tr){return void 0===tr?tr={autoBom:!1}:"object"!=_typeof(tr)&&(Of.warn("Deprecated: Expected third argument to be a object"),tr={autoBom:!tr}),tr.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(er.type)?new Blob([String.fromCharCode(65279),er],{type:er.type}):er}(er,rr),tr)}:function(er,tr,rr,nr){if((nr=nr||open("","_blank"))&&(nr.document.title=nr.document.body.innerText="downloading..."),"string"==typeof er)return r(er,tr,rr);var ir="application/octet-stream"===er.type,or=/constructor/i.test(Mf.HTMLElement)||Mf.safari,ar=/CriOS\/[\d]+/.test(navigator.userAgent);if((ar||ir&&or)&&"object"==("undefined"==typeof FileReader?"undefined":_typeof(FileReader))){var sr=new FileReader;sr.onloadend=function(){var er=sr.result;er=ar?er:er.replace(/^data:[^;]*;/,"data:attachment/file;"),nr?nr.location.href=er:location=er,nr=null},sr.readAsDataURL(er)}else{var lr=Mf.URL||Mf.webkitURL,cr=lr.createObjectURL(er);nr?nr.location=cr:location.href=cr,nr=null,setTimeout((function(){lr.revokeObjectURL(cr)}),4e4)}});
|
||
/**
|
||
* A class to parse color values
|
||
* @author Stoyan Stefanov <sstoo@gmail.com>
|
||
* {@link http://www.phpied.com/rgb-color-parser-in-javascript/}
|
||
* @license Use it if you like it
|
||
*/function c(er){var tr;er=er||"",this.ok=!1,"#"==er.charAt(0)&&(er=er.substr(1,6)),er={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[er=(er=er.replace(/ /g,"")).toLowerCase()]||er;for(var rr=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function process(er){return[parseInt(er[1]),parseInt(er[2]),parseInt(er[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function process(er){return[parseInt(er[1],16),parseInt(er[2],16),parseInt(er[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function process(er){return[parseInt(er[1]+er[1],16),parseInt(er[2]+er[2],16),parseInt(er[3]+er[3],16)]}}],nr=0;nr<rr.length;nr++){var ir=rr[nr].re,or=rr[nr].process,ar=ir.exec(er);ar&&(tr=or(ar),this.r=tr[0],this.g=tr[1],this.b=tr[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var er=this.r.toString(16),tr=this.g.toString(16),rr=this.b.toString(16);return 1==er.length&&(er="0"+er),1==tr.length&&(tr="0"+tr),1==rr.length&&(rr="0"+rr),"#"+er+tr+rr}}function h(er){if("object"!=_typeof(er))throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var tr={};this.subscribe=function(er,rr,nr){if(nr=nr||!1,"string"!=typeof er||"function"!=typeof rr||"boolean"!=typeof nr)throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");tr.hasOwnProperty(er)||(tr[er]={});var ir=Math.random().toString(35);return tr[er][ir]=[rr,!!nr],ir},this.unsubscribe=function(er){for(var rr in tr)if(tr[rr][er])return delete tr[rr][er],0===Object.keys(tr[rr]).length&&delete tr[rr],!0;return!1},this.publish=function(rr){if(tr.hasOwnProperty(rr)){var nr=Array.prototype.slice.call(arguments,1),ir=[];for(var or in tr[rr]){var ar=tr[rr][or];try{ar[0].apply(er,nr)}catch(er){Mf.console&&Of.error("jsPDF PubSub Error",er.message,er)}ar[1]&&ir.push(or)}ir.length&&ir.forEach(this.unsubscribe)}},this.getTopics=function(){return tr}}function l(er){if(!(this instanceof l))return new l(er);var tr="opacity,stroke-opacity".split(",");for(var rr in er)er.hasOwnProperty(rr)&&tr.indexOf(rr)>=0&&(this[rr]=er[rr]);this.id="",this.objectNumber=-1}function f$8(er,tr){this.gState=er,this.matrix=tr,this.id="",this.objectNumber=-1}function d(er,tr,rr,nr,ir){if(!(this instanceof d))return new d(er,tr,rr,nr,ir);this.type="axial"===er?2:3,this.coords=tr,this.colors=rr,f$8.call(this,nr,ir)}function p(er,tr,rr,nr,ir){if(!(this instanceof p))return new p(er,tr,rr,nr,ir);this.boundingBox=er,this.xStep=tr,this.yStep=rr,this.stream="",this.cloneIndex=0,f$8.call(this,nr,ir)}function g(er){var tr,rr="string"==typeof arguments[0]?arguments[0]:"p",nr=arguments[1],ir=arguments[2],or=arguments[3],ar=[],sr=1,lr=16,cr="S";"object"==_typeof(er=er||{})&&(rr=er.orientation,nr=er.unit||nr,ir=er.format||ir,or=er.compress||er.compressPdf||or,sr="number"==typeof er.userUnit?Math.abs(er.userUnit):1,void 0!==er.precision&&(tr=er.precision),void 0!==er.floatPrecision&&(lr=er.floatPrecision),cr=er.defaultPathOperation||"S"),ar=er.filters||(!0===or?["FlateEncode"]:ar),nr=nr||"mm",rr=(""+(rr||"P")).toLowerCase();var ur=er.putOnlyUsedFonts||!1,dr={},hr={internal:{},__private__:{}};hr.__private__.PubSub=h;var pr="1.3",Ar=hr.__private__.getPdfVersion=function(){return pr};hr.__private__.setPdfVersion=function(er){pr=er};var fr={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};hr.__private__.getPageFormats=function(){return fr};var gr=hr.__private__.getPageFormat=function(er){return fr[er]};ir=ir||"a4";var mr={COMPAT:"compat",ADVANCED:"advanced"},_r=mr.COMPAT;function F(){this.saveGraphicsState(),Wr(new Ai(Wn,0,0,-Wn,0,aa()*Wn).toString()+" cm"),this.setFontSize(this.getFontSize()/Wn),cr="n",_r=mr.ADVANCED}function I(){this.restoreGraphicsState(),cr="S",_r=mr.COMPAT}hr.advancedAPI=function(er){var tr=_r===mr.COMPAT;return tr&&F.call(this),"function"!=typeof er||(er(this),tr&&I.call(this)),this},hr.compatAPI=function(er){var tr=_r===mr.ADVANCED;return tr&&I.call(this),"function"!=typeof er||(er(this),tr&&F.call(this)),this},hr.isAdvancedAPI=function(){return _r===mr.ADVANCED};var vr,yr=function j(er){if(_r!==mr.ADVANCED)throw new Error(er+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},br=hr.roundToPrecision=hr.__private__.roundToPrecision=function(er,rr){var nr=tr||rr;if(isNaN(er)||isNaN(nr))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return er.toFixed(nr).replace(/0+$/,"")};vr=hr.hpf=hr.__private__.hpf="number"==typeof lr?function(er){if(isNaN(er))throw new Error("Invalid argument passed to jsPDF.hpf");return br(er,lr)}:"smart"===lr?function(er){if(isNaN(er))throw new Error("Invalid argument passed to jsPDF.hpf");return br(er,er>-1&&er<1?16:5)}:function(er){if(isNaN(er))throw new Error("Invalid argument passed to jsPDF.hpf");return br(er,16)};var wr=hr.f2=hr.__private__.f2=function(er){if(isNaN(er))throw new Error("Invalid argument passed to jsPDF.f2");return br(er,2)},Sr=hr.__private__.f3=function(er){if(isNaN(er))throw new Error("Invalid argument passed to jsPDF.f3");return br(er,3)},xr=hr.scale=hr.__private__.scale=function(er){if(isNaN(er))throw new Error("Invalid argument passed to jsPDF.scale");return _r===mr.COMPAT?er*Wn:_r===mr.ADVANCED?er:void 0},kr=function q(er){return _r===mr.COMPAT?aa()-er:_r===mr.ADVANCED?er:void 0},Cr=function R(er){return xr(kr(er))};hr.__private__.setPrecision=hr.setPrecision=function(er){"number"==typeof parseInt(er,10)&&(tr=parseInt(er,10))};var Br,Er="00000000000000000000000000000000",Nr=hr.__private__.getFileId=function(){return Er},Lr=hr.__private__.setFileId=function(er){return Er=void 0!==er&&/^[a-fA-F0-9]{32}$/.test(er)?er.toUpperCase():Er.split("").map((function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))})).join("")};hr.setFileId=function(er){return Lr(er),this},hr.getFileId=function(){return Nr()};var Tr=hr.__private__.convertDateToPDFDate=function(er){var tr=er.getTimezoneOffset(),rr=tr<0?"+":"-",nr=Math.floor(Math.abs(tr/60)),ir=Math.abs(tr%60),or=[rr,Rr(nr),"'",Rr(ir),"'"].join("");return["D:",er.getFullYear(),Rr(er.getMonth()+1),Rr(er.getDate()),Rr(er.getHours()),Rr(er.getMinutes()),Rr(er.getSeconds()),or].join("")},Pr=hr.__private__.convertPDFDateToDate=function(er){var tr=parseInt(er.substr(2,4),10),rr=parseInt(er.substr(6,2),10)-1,nr=parseInt(er.substr(8,2),10),ir=parseInt(er.substr(10,2),10),or=parseInt(er.substr(12,2),10),ar=parseInt(er.substr(14,2),10);return new Date(tr,rr,nr,ir,or,ar,0)},Fr=hr.__private__.setCreationDate=function(er){var tr;if(void 0===er&&(er=new Date),er instanceof Date)tr=Tr(er);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(er))throw new Error("Invalid argument passed to jsPDF.setCreationDate");tr=er}return Br=tr},Ur=hr.__private__.getCreationDate=function(er){var tr=Br;return"jsDate"===er&&(tr=Pr(Br)),tr};hr.setCreationDate=function(er){return Fr(er),this},hr.getCreationDate=function(er){return Ur(er)};var Ir,Rr=hr.__private__.padd2=function(er){return("0"+parseInt(er)).slice(-2)},Mr=hr.__private__.padd2Hex=function(er){return("00"+(er=er.toString())).substr(er.length)},Or=0,Qr=[],Dr=[],jr=0,Hr=[],Gr=[],Vr=!1,zr=Dr,Kr=function it(){Or=0,jr=0,Dr=[],Qr=[],Hr=[],Si=vi(),xi=vi()};hr.__private__.setCustomOutputDestination=function(er){Vr=!0,zr=er};var qr=function at(er){Vr||(zr=er)};hr.__private__.resetCustomOutputDestination=function(){Vr=!1,zr=Dr};var Wr=hr.__private__.out=function(er){return er=er.toString(),jr+=er.length+1,zr.push(er),zr},Xr=hr.__private__.write=function(er){return Wr(1===arguments.length?er.toString():Array.prototype.join.call(arguments," "))},Yr=hr.__private__.getArrayBuffer=function(er){for(var tr=er.length,rr=new ArrayBuffer(tr),nr=new Uint8Array(rr);tr--;)nr[tr]=er.charCodeAt(tr);return rr},Jr=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];hr.__private__.getStandardFonts=function(){return Jr};var $r=er.fontSize||16;hr.__private__.setFontSize=hr.setFontSize=function(er){return $r=_r===mr.ADVANCED?er/Wn:er,this};var Zr,Tn=hr.__private__.getFontSize=hr.getFontSize=function(){return _r===mr.COMPAT?$r:$r*Wn},Un=er.R2L||!1;hr.__private__.setR2L=hr.setR2L=function(er){return Un=er,this},hr.__private__.getR2L=hr.getR2L=function(){return Un};var Qn,Dn=hr.__private__.setZoomMode=function(er){if(/^\d*\.?\d*%$/.test(er))Zr=er;else if(isNaN(er)){if(-1===[void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(er))throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+er+'" is not recognized.');Zr=er}else Zr=parseInt(er,10)};hr.__private__.getZoomMode=function(){return Zr};var Hn,Gn=hr.__private__.setPageMode=function(er){if(-1==[void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(er))throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+er+'" is not recognized.');Qn=er};hr.__private__.getPageMode=function(){return Qn};var Vn=hr.__private__.setLayoutMode=function(er){if(-1==[void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(er))throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+er+'" is not recognized.');Hn=er};hr.__private__.getLayoutMode=function(){return Hn},hr.__private__.setDisplayMode=hr.setDisplayMode=function(er,tr,rr){return Dn(er),Vn(tr),Gn(rr),this};var zn={title:"",subject:"",author:"",keywords:"",creator:""};hr.__private__.getDocumentProperty=function(er){if(-1===Object.keys(zn).indexOf(er))throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return zn[er]},hr.__private__.getDocumentProperties=function(){return zn},hr.__private__.setDocumentProperties=hr.setProperties=hr.setDocumentProperties=function(er){for(var tr in zn)zn.hasOwnProperty(tr)&&er[tr]&&(zn[tr]=er[tr]);return this},hr.__private__.setDocumentProperty=function(er,tr){if(-1===Object.keys(zn).indexOf(er))throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return zn[er]=tr};var Kn,Wn,Xn,Yn,Jn,$n={},Zn={},ei=[],ti={},ri={},ni={},ii={},oi=null,ai=0,si=[],li=new h(hr),ui=er.hotfixes||[],di={},hi={},pi=[],Ai=function Dt(er,tr,rr,nr,ir,or){if(!(this instanceof Dt))return new Dt(er,tr,rr,nr,ir,or);isNaN(er)&&(er=1),isNaN(tr)&&(tr=0),isNaN(rr)&&(rr=0),isNaN(nr)&&(nr=1),isNaN(ir)&&(ir=0),isNaN(or)&&(or=0),this._matrix=[er,tr,rr,nr,ir,or]};Object.defineProperty(Ai.prototype,"sx",{get:function get(){return this._matrix[0]},set:function set(er){this._matrix[0]=er}}),Object.defineProperty(Ai.prototype,"shy",{get:function get(){return this._matrix[1]},set:function set(er){this._matrix[1]=er}}),Object.defineProperty(Ai.prototype,"shx",{get:function get(){return this._matrix[2]},set:function set(er){this._matrix[2]=er}}),Object.defineProperty(Ai.prototype,"sy",{get:function get(){return this._matrix[3]},set:function set(er){this._matrix[3]=er}}),Object.defineProperty(Ai.prototype,"tx",{get:function get(){return this._matrix[4]},set:function set(er){this._matrix[4]=er}}),Object.defineProperty(Ai.prototype,"ty",{get:function get(){return this._matrix[5]},set:function set(er){this._matrix[5]=er}}),Object.defineProperty(Ai.prototype,"a",{get:function get(){return this._matrix[0]},set:function set(er){this._matrix[0]=er}}),Object.defineProperty(Ai.prototype,"b",{get:function get(){return this._matrix[1]},set:function set(er){this._matrix[1]=er}}),Object.defineProperty(Ai.prototype,"c",{get:function get(){return this._matrix[2]},set:function set(er){this._matrix[2]=er}}),Object.defineProperty(Ai.prototype,"d",{get:function get(){return this._matrix[3]},set:function set(er){this._matrix[3]=er}}),Object.defineProperty(Ai.prototype,"e",{get:function get(){return this._matrix[4]},set:function set(er){this._matrix[4]=er}}),Object.defineProperty(Ai.prototype,"f",{get:function get(){return this._matrix[5]},set:function set(er){this._matrix[5]=er}}),Object.defineProperty(Ai.prototype,"rotation",{get:function get(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Ai.prototype,"scaleX",{get:function get(){return this.decompose().scale.sx}}),Object.defineProperty(Ai.prototype,"scaleY",{get:function get(){return this.decompose().scale.sy}}),Object.defineProperty(Ai.prototype,"isIdentity",{get:function get(){return 1===this.sx&&0===this.shy&&0===this.shx&&1===this.sy&&0===this.tx&&0===this.ty}}),Ai.prototype.join=function(er){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(vr).join(er)},Ai.prototype.multiply=function(er){var tr=er.sx*this.sx+er.shy*this.shx,rr=er.sx*this.shy+er.shy*this.sy,nr=er.shx*this.sx+er.sy*this.shx,ir=er.shx*this.shy+er.sy*this.sy,or=er.tx*this.sx+er.ty*this.shx+this.tx,ar=er.tx*this.shy+er.ty*this.sy+this.ty;return new Ai(tr,rr,nr,ir,or,ar)},Ai.prototype.decompose=function(){var er=this.sx,tr=this.shy,rr=this.shx,nr=this.sy,ir=this.tx,or=this.ty,ar=Math.sqrt(er*er+tr*tr),sr=(er/=ar)*rr+(tr/=ar)*nr;rr-=er*sr,nr-=tr*sr;var lr=Math.sqrt(rr*rr+nr*nr);return sr/=lr,er*(nr/=lr)<tr*(rr/=lr)&&(er=-er,tr=-tr,sr=-sr,ar=-ar),{scale:new Ai(ar,0,0,lr,0,0),translate:new Ai(1,0,0,1,ir,or),rotate:new Ai(er,tr,-tr,er,0,0),skew:new Ai(1,0,sr,1,0,0)}},Ai.prototype.toString=function(er){return this.join(" ")},Ai.prototype.inversed=function(){var er=this.sx,tr=this.shy,rr=this.shx,nr=this.sy,ir=this.tx,or=this.ty,ar=1/(er*nr-tr*rr),sr=nr*ar,lr=-tr*ar,cr=-rr*ar,ur=er*ar;return new Ai(sr,lr,cr,ur,-sr*ir-cr*or,-lr*ir-ur*or)},Ai.prototype.applyToPoint=function(er){var tr=er.x*this.sx+er.y*this.shx+this.tx,rr=er.x*this.shy+er.y*this.sy+this.ty;return new $o(tr,rr)},Ai.prototype.applyToRectangle=function(er){var tr=this.applyToPoint(er),rr=this.applyToPoint(new $o(er.x+er.w,er.y+er.h));return new Zo(tr.x,tr.y,rr.x-tr.x,rr.y-tr.y)},Ai.prototype.clone=function(){var er=this.sx,tr=this.shy,rr=this.shx,nr=this.sy,ir=this.tx,or=this.ty;return new Ai(er,tr,rr,nr,ir,or)},hr.Matrix=Ai;var fi=hr.matrixMult=function(er,tr){return tr.multiply(er)},gi=new Ai(1,0,0,1,0,0);hr.unitMatrix=hr.identityMatrix=gi;var mi=function Ht(er,tr){if(!ri[er]){var rr=(tr instanceof d?"Sh":"P")+(Object.keys(ti).length+1).toString(10);tr.id=rr,ri[er]=rr,ti[rr]=tr,li.publish("addPattern",tr)}};hr.ShadingPattern=d,hr.TilingPattern=p,hr.addShadingPattern=function(er,tr){return yr("addShadingPattern()"),mi(er,tr),this},hr.beginTilingPattern=function(er){yr("beginTilingPattern()"),ta(er.boundingBox[0],er.boundingBox[1],er.boundingBox[2]-er.boundingBox[0],er.boundingBox[3]-er.boundingBox[1],er.matrix)},hr.endTilingPattern=function(er,tr){yr("endTilingPattern()"),tr.stream=Gr[Ir].join("\n"),mi(er,tr),li.publish("endTilingPattern",tr),pi.pop().restore()};var _i=hr.__private__.newObject=function(){var er=vi();return yi(er,!0),er},vi=hr.__private__.newObjectDeferred=function(){return Or++,Qr[Or]=function(){return jr},Or},yi=function Gt(er,tr){return tr="boolean"==typeof tr&&tr,Qr[er]=jr,tr&&Wr(er+" 0 obj"),er},wi=hr.__private__.newAdditionalObject=function(){var er={objId:vi(),content:""};return Hr.push(er),er},Si=vi(),xi=vi(),ki=hr.__private__.decodeColorString=function(er){var tr=er.split(" ");if(2!==tr.length||"g"!==tr[1]&&"G"!==tr[1])5!==tr.length||"k"!==tr[4]&&"K"!==tr[4]||(tr=[(1-tr[0])*(1-tr[3]),(1-tr[1])*(1-tr[3]),(1-tr[2])*(1-tr[3]),"r"]);else{var rr=parseFloat(tr[0]);tr=[rr,rr,rr,"r"]}for(var nr="#",ir=0;ir<3;ir++)nr+=("0"+Math.floor(255*parseFloat(tr[ir])).toString(16)).slice(-2);return nr},Ci=hr.__private__.encodeColorString=function(er){var tr;"string"==typeof er&&(er={ch1:er});var rr=er.ch1,nr=er.ch2,ir=er.ch3,or=er.ch4,ar="draw"===er.pdfColorType?["G","RG","K"]:["g","rg","k"];if("string"==typeof rr&&"#"!==rr.charAt(0)){var sr=new c(rr);if(sr.ok)rr=sr.toHex();else if(!/^\d*\.?\d*$/.test(rr))throw new Error('Invalid color "'+rr+'" passed to jsPDF.encodeColorString.')}if("string"==typeof rr&&/^#[0-9A-Fa-f]{3}$/.test(rr)&&(rr="#"+rr[1]+rr[1]+rr[2]+rr[2]+rr[3]+rr[3]),"string"==typeof rr&&/^#[0-9A-Fa-f]{6}$/.test(rr)){var lr=parseInt(rr.substr(1),16);rr=lr>>16&255,nr=lr>>8&255,ir=255&lr}if(void 0===nr||void 0===or&&rr===nr&&nr===ir)if("string"==typeof rr)tr=rr+" "+ar[0];else switch(er.precision){case 2:tr=wr(rr/255)+" "+ar[0];break;case 3:default:tr=Sr(rr/255)+" "+ar[0]}else if(void 0===or||"object"==_typeof(or)){if(or&&!isNaN(or.a)&&0===or.a)return["1.","1.","1.",ar[1]].join(" ");if("string"==typeof rr)tr=[rr,nr,ir,ar[1]].join(" ");else switch(er.precision){case 2:tr=[wr(rr/255),wr(nr/255),wr(ir/255),ar[1]].join(" ");break;default:case 3:tr=[Sr(rr/255),Sr(nr/255),Sr(ir/255),ar[1]].join(" ")}}else if("string"==typeof rr)tr=[rr,nr,ir,or,ar[2]].join(" ");else switch(er.precision){case 2:tr=[wr(rr),wr(nr),wr(ir),wr(or),ar[2]].join(" ");break;case 3:default:tr=[Sr(rr),Sr(nr),Sr(ir),Sr(or),ar[2]].join(" ")}return tr},Bi=hr.__private__.getFilters=function(){return ar},Ei=hr.__private__.putStream=function(er){var tr=(er=er||{}).data||"",rr=er.filters||Bi(),nr=er.alreadyAppliedFilters||[],ir=er.addLength1||!1,or=tr.length,ar={};!0===rr&&(rr=["FlateEncode"]);var sr=er.additionalKeyValues||[],lr=(ar=void 0!==g.API.processDataByFilters?g.API.processDataByFilters(tr,rr):{data:tr,reverseChain:[]}).reverseChain+(Array.isArray(nr)?nr.join(" "):nr.toString());if(0!==ar.data.length&&(sr.push({key:"Length",value:ar.data.length}),!0===ir&&sr.push({key:"Length1",value:or})),0!=lr.length)if(lr.split("/").length-1==1)sr.push({key:"Filter",value:lr});else{sr.push({key:"Filter",value:"["+lr+"]"});for(var cr=0;cr<sr.length;cr+=1)if("DecodeParms"===sr[cr].key){for(var ur=[],dr=0;dr<ar.reverseChain.split("/").length-1;dr+=1)ur.push("null");ur.push(sr[cr].value),sr[cr].value="["+ur.join(" ")+"]"}}Wr("<<");for(var hr=0;hr<sr.length;hr++)Wr("/"+sr[hr].key+" "+sr[hr].value);Wr(">>"),0!==ar.data.length&&(Wr("stream"),Wr(ar.data),Wr("endstream"))},Ni=hr.__private__.putPage=function(er){var tr=er.number,rr=er.data,nr=er.objId,ir=er.contentsObjId;yi(nr,!0),Wr("<</Type /Page"),Wr("/Parent "+er.rootDictionaryObjId+" 0 R"),Wr("/Resources "+er.resourceDictionaryObjId+" 0 R"),Wr("/MediaBox ["+parseFloat(vr(er.mediaBox.bottomLeftX))+" "+parseFloat(vr(er.mediaBox.bottomLeftY))+" "+vr(er.mediaBox.topRightX)+" "+vr(er.mediaBox.topRightY)+"]"),null!==er.cropBox&&Wr("/CropBox ["+vr(er.cropBox.bottomLeftX)+" "+vr(er.cropBox.bottomLeftY)+" "+vr(er.cropBox.topRightX)+" "+vr(er.cropBox.topRightY)+"]"),null!==er.bleedBox&&Wr("/BleedBox ["+vr(er.bleedBox.bottomLeftX)+" "+vr(er.bleedBox.bottomLeftY)+" "+vr(er.bleedBox.topRightX)+" "+vr(er.bleedBox.topRightY)+"]"),null!==er.trimBox&&Wr("/TrimBox ["+vr(er.trimBox.bottomLeftX)+" "+vr(er.trimBox.bottomLeftY)+" "+vr(er.trimBox.topRightX)+" "+vr(er.trimBox.topRightY)+"]"),null!==er.artBox&&Wr("/ArtBox ["+vr(er.artBox.bottomLeftX)+" "+vr(er.artBox.bottomLeftY)+" "+vr(er.artBox.topRightX)+" "+vr(er.artBox.topRightY)+"]"),"number"==typeof er.userUnit&&1!==er.userUnit&&Wr("/UserUnit "+er.userUnit),li.publish("putPage",{objId:nr,pageContext:si[tr],pageNumber:tr,page:rr}),Wr("/Contents "+ir+" 0 R"),Wr(">>"),Wr("endobj");var or=rr.join("\n");return _r===mr.ADVANCED&&(or+="\nQ"),yi(ir,!0),Ei({data:or,filters:Bi()}),Wr("endobj"),nr},Li=hr.__private__.putPages=function(){var er,tr,rr=[];for(er=1;er<=ai;er++)si[er].objId=vi(),si[er].contentsObjId=vi();for(er=1;er<=ai;er++)rr.push(Ni({number:er,data:Gr[er],objId:si[er].objId,contentsObjId:si[er].contentsObjId,mediaBox:si[er].mediaBox,cropBox:si[er].cropBox,bleedBox:si[er].bleedBox,trimBox:si[er].trimBox,artBox:si[er].artBox,userUnit:si[er].userUnit,rootDictionaryObjId:Si,resourceDictionaryObjId:xi}));yi(Si,!0),Wr("<</Type /Pages");var nr="/Kids [";for(tr=0;tr<ai;tr++)nr+=rr[tr]+" 0 R ";Wr(nr+"]"),Wr("/Count "+ai),Wr(">>"),Wr("endobj"),li.publish("postPutPages")},Ti=function ne(er){var tr=function e(er,tr){return-1!==er.indexOf(" ")?"("+eo(er,tr)+")":eo(er,tr)};li.publish("putFont",{font:er,out:Wr,newObject:_i,putStream:Ei,pdfEscapeWithNeededParanthesis:tr}),!0!==er.isAlreadyPutted&&(er.objectNumber=_i(),Wr("<<"),Wr("/Type /Font"),Wr("/BaseFont /"+tr(er.postScriptName)),Wr("/Subtype /Type1"),"string"==typeof er.encoding&&Wr("/Encoding /"+er.encoding),Wr("/FirstChar 32"),Wr("/LastChar 255"),Wr(">>"),Wr("endobj"))},Pi=function re(){for(var er in $n)$n.hasOwnProperty(er)&&(!1===ur||!0===ur&&dr.hasOwnProperty(er))&&Ti($n[er])},Fi=function ie(er){er.objectNumber=_i();var tr=[];tr.push({key:"Type",value:"/XObject"}),tr.push({key:"Subtype",value:"/Form"}),tr.push({key:"BBox",value:"["+[vr(er.x),vr(er.y),vr(er.x+er.width),vr(er.y+er.height)].join(" ")+"]"}),tr.push({key:"Matrix",value:"["+er.matrix.toString()+"]"});var rr=er.pages[1].join("\n");Ei({data:rr,additionalKeyValues:tr}),Wr("endobj")},Ui=function ae(){for(var er in di)di.hasOwnProperty(er)&&Fi(di[er])},Ii=function oe(er,tr){var rr,nr=[],ir=1/(tr-1);for(rr=0;rr<1;rr+=ir)nr.push(rr);if(nr.push(1),0!=er[0].offset){var or={offset:0,color:er[0].color};er.unshift(or)}if(1!=er[er.length-1].offset){var ar={offset:1,color:er[er.length-1].color};er.push(ar)}for(var sr="",lr=0,cr=0;cr<nr.length;cr++){for(rr=nr[cr];rr>er[lr+1].offset;)lr++;var ur=er[lr].offset,dr=(rr-ur)/(er[lr+1].offset-ur),hr=er[lr].color,pr=er[lr+1].color;sr+=Mr(Math.round((1-dr)*hr[0]+dr*pr[0]).toString(16))+Mr(Math.round((1-dr)*hr[1]+dr*pr[1]).toString(16))+Mr(Math.round((1-dr)*hr[2]+dr*pr[2]).toString(16))}return sr.trim()},Ri=function se(er,tr){tr||(tr=21);var rr=_i(),nr=Ii(er.colors,tr),ir=[];ir.push({key:"FunctionType",value:"0"}),ir.push({key:"Domain",value:"[0.0 1.0]"}),ir.push({key:"Size",value:"["+tr+"]"}),ir.push({key:"BitsPerSample",value:"8"}),ir.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),ir.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Ei({data:nr,additionalKeyValues:ir,alreadyAppliedFilters:["/ASCIIHexDecode"]}),Wr("endobj"),er.objectNumber=_i(),Wr("<< /ShadingType "+er.type),Wr("/ColorSpace /DeviceRGB");var or="/Coords ["+vr(parseFloat(er.coords[0]))+" "+vr(parseFloat(er.coords[1]))+" ";2===er.type?or+=vr(parseFloat(er.coords[2]))+" "+vr(parseFloat(er.coords[3])):or+=vr(parseFloat(er.coords[2]))+" "+vr(parseFloat(er.coords[3]))+" "+vr(parseFloat(er.coords[4]))+" "+vr(parseFloat(er.coords[5])),Wr(or+="]"),er.matrix&&Wr("/Matrix ["+er.matrix.toString()+"]"),Wr("/Function "+rr+" 0 R"),Wr("/Extend [true true]"),Wr(">>"),Wr("endobj")},Mi=function ue(er,tr){var rr=vi(),nr=_i();tr.push({resourcesOid:rr,objectOid:nr}),er.objectNumber=nr;var ir=[];ir.push({key:"Type",value:"/Pattern"}),ir.push({key:"PatternType",value:"1"}),ir.push({key:"PaintType",value:"1"}),ir.push({key:"TilingType",value:"1"}),ir.push({key:"BBox",value:"["+er.boundingBox.map(vr).join(" ")+"]"}),ir.push({key:"XStep",value:vr(er.xStep)}),ir.push({key:"YStep",value:vr(er.yStep)}),ir.push({key:"Resources",value:rr+" 0 R"}),er.matrix&&ir.push({key:"Matrix",value:"["+er.matrix.toString()+"]"}),Ei({data:er.stream,additionalKeyValues:ir}),Wr("endobj")},Oi=function ce(er){var tr;for(tr in ti)ti.hasOwnProperty(tr)&&(ti[tr]instanceof d?Ri(ti[tr]):ti[tr]instanceof p&&Mi(ti[tr],er))},Qi=function he(er){for(var tr in er.objectNumber=_i(),Wr("<<"),er)switch(tr){case"opacity":Wr("/ca "+wr(er[tr]));break;case"stroke-opacity":Wr("/CA "+wr(er[tr]))}Wr(">>"),Wr("endobj")},Di=function le(){var er;for(er in ni)ni.hasOwnProperty(er)&&Qi(ni[er])},ji=function fe(){for(var er in Wr("/XObject <<"),di)di.hasOwnProperty(er)&&di[er].objectNumber>=0&&Wr("/"+er+" "+di[er].objectNumber+" 0 R");li.publish("putXobjectDict"),Wr(">>")},Hi=function de(){for(var er in Wr("/Font <<"),$n)$n.hasOwnProperty(er)&&(!1===ur||!0===ur&&dr.hasOwnProperty(er))&&Wr("/"+er+" "+$n[er].objectNumber+" 0 R");Wr(">>")},Gi=function pe(){if(Object.keys(ti).length>0){for(var er in Wr("/Shading <<"),ti)ti.hasOwnProperty(er)&&ti[er]instanceof d&&ti[er].objectNumber>=0&&Wr("/"+er+" "+ti[er].objectNumber+" 0 R");li.publish("putShadingPatternDict"),Wr(">>")}},Vi=function ge(er){if(Object.keys(ti).length>0){for(var tr in Wr("/Pattern <<"),ti)ti.hasOwnProperty(tr)&&ti[tr]instanceof hr.TilingPattern&&ti[tr].objectNumber>=0&&ti[tr].objectNumber<er&&Wr("/"+tr+" "+ti[tr].objectNumber+" 0 R");li.publish("putTilingPatternDict"),Wr(">>")}},zi=function me(){if(Object.keys(ni).length>0){var er;for(er in Wr("/ExtGState <<"),ni)ni.hasOwnProperty(er)&&ni[er].objectNumber>=0&&Wr("/"+er+" "+ni[er].objectNumber+" 0 R");li.publish("putGStateDict"),Wr(">>")}},Ki=function ve(er){yi(er.resourcesOid,!0),Wr("<<"),Wr("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),Hi(),Gi(),Vi(er.objectOid),zi(),ji(),Wr(">>"),Wr("endobj")},qi=function be(){var er=[];Pi(),Di(),Ui(),Oi(er),li.publish("putResources"),er.forEach(Ki),Ki({resourcesOid:xi,objectOid:Number.MAX_SAFE_INTEGER}),li.publish("postPutResources")},Wi=function ye(){li.publish("putAdditionalObjects");for(var er=0;er<Hr.length;er++){var tr=Hr[er];yi(tr.objId,!0),Wr(tr.content),Wr("endobj")}li.publish("postPutAdditionalObjects")},Xi=function we(er){Zn[er.fontName]=Zn[er.fontName]||{},Zn[er.fontName][er.fontStyle]=er.id},Yi=function Ne(er,tr,rr,nr,ir){var or={id:"F"+(Object.keys($n).length+1).toString(10),postScriptName:er,fontName:tr,fontStyle:rr,encoding:nr,isStandardFont:ir||!1,metadata:{}};return li.publish("addFont",{font:or,instance:this}),$n[or.id]=or,Xi(or),or.id},Ji=function Le(er){for(var tr=0,rr=Jr.length;tr<rr;tr++){var nr=Yi.call(this,er[tr][0],er[tr][1],er[tr][2],Jr[tr][3],!0);!1===ur&&(dr[nr]=!0);var ir=er[tr][0].split("-");Xi({id:nr,fontName:ir[0],fontStyle:ir[1]||""})}li.publish("addFonts",{fonts:$n,dictionary:Zn})},$i=function xe(er){return er.foo=function(){try{return er.apply(this,arguments)}catch(er){var tr=er.stack||"";~tr.indexOf(" at ")&&(tr=tr.split(" at ")[1]);var rr="Error in function "+tr.split("\n")[0].split("<")[0]+": "+er.message;if(!Mf.console)throw new Error(rr);Mf.console.error(rr,er),Mf.alert&&alert(rr)}},er.foo.bar=er,er.foo},Zi=function Ae(er,tr){var rr,nr,ir,or,ar,sr,lr,cr,ur;if(ir=(tr=tr||{}).sourceEncoding||"Unicode",ar=tr.outputEncoding,(tr.autoencode||ar)&&$n[Kn].metadata&&$n[Kn].metadata[ir]&&$n[Kn].metadata[ir].encoding&&(or=$n[Kn].metadata[ir].encoding,!ar&&$n[Kn].encoding&&(ar=$n[Kn].encoding),!ar&&or.codePages&&(ar=or.codePages[0]),"string"==typeof ar&&(ar=or[ar]),ar)){for(lr=!1,sr=[],rr=0,nr=er.length;rr<nr;rr++)(cr=ar[er.charCodeAt(rr)])?sr.push(String.fromCharCode(cr)):sr.push(er[rr]),sr[rr].charCodeAt(0)>>8&&(lr=!0);er=sr.join("")}for(rr=er.length;void 0===lr&&0!==rr;)er.charCodeAt(rr-1)>>8&&(lr=!0),rr--;if(!lr)return er;for(sr=tr.noBOM?[]:[254,255],rr=0,nr=er.length;rr<nr;rr++){if((ur=(cr=er.charCodeAt(rr))>>8)>>8)throw new Error("Character at position "+rr+" of string '"+er+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");sr.push(ur),sr.push(cr-(ur<<8))}return String.fromCharCode.apply(void 0,sr)},eo=hr.__private__.pdfEscape=hr.pdfEscape=function(er,tr){return Zi(er,tr).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},to=hr.__private__.beginPage=function(er){Gr[++ai]=[],si[ai]={objId:0,contentsObjId:0,userUnit:Number(sr),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(er[0]),topRightY:Number(er[1])}},io(ai),qr(Gr[Ir])},ro=function Pe(er,tr){var nr,or,ar;switch(rr=tr||rr,"string"==typeof er&&(nr=gr(er.toLowerCase()),Array.isArray(nr)&&(or=nr[0],ar=nr[1])),Array.isArray(er)&&(or=er[0]*Wn,ar=er[1]*Wn),isNaN(or)&&(or=ir[0],ar=ir[1]),(or>14400||ar>14400)&&(Of.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),or=Math.min(14400,or),ar=Math.min(14400,ar)),ir=[or,ar],rr.substr(0,1)){case"l":ar>or&&(ir=[ar,or]);break;case"p":or>ar&&(ir=[ar,or])}to(ir),Io(Uo),Wr(Go),0!==Xo&&Wr(Xo+" J"),0!==Yo&&Wr(Yo+" j"),li.publish("addPage",{pageNumber:ai})},no=function ke(er){er>0&&er<=ai&&(Gr.splice(er,1),si.splice(er,1),ai--,Ir>ai&&(Ir=ai),this.setPage(Ir))},io=function Fe(er){er>0&&er<=ai&&(Ir=er)},oo=hr.__private__.getNumberOfPages=hr.getNumberOfPages=function(){return Gr.length-1},ao=function Ce(er,tr,rr){var nr,ir=void 0;return rr=rr||{},er=void 0!==er?er:$n[Kn].fontName,tr=void 0!==tr?tr:$n[Kn].fontStyle,nr=er.toLowerCase(),void 0!==Zn[nr]&&void 0!==Zn[nr][tr]?ir=Zn[nr][tr]:void 0!==Zn[er]&&void 0!==Zn[er][tr]?ir=Zn[er][tr]:!1===rr.disableWarning&&Of.warn("Unable to look up font label for font '"+er+"', '"+tr+"'. Refer to getFontList() for available fonts."),ir||rr.noFallback||null==(ir=Zn.times[tr])&&(ir=Zn.times.normal),ir},so=hr.__private__.putInfo=function(){for(var er in _i(),Wr("<<"),Wr("/Producer (jsPDF "+g.version+")"),zn)zn.hasOwnProperty(er)&&zn[er]&&Wr("/"+er.substr(0,1).toUpperCase()+er.substr(1)+" ("+eo(zn[er])+")");Wr("/CreationDate ("+Br+")"),Wr(">>"),Wr("endobj")},lo=hr.__private__.putCatalog=function(er){var tr=(er=er||{}).rootDictionaryObjId||Si;switch(_i(),Wr("<<"),Wr("/Type /Catalog"),Wr("/Pages "+tr+" 0 R"),Zr||(Zr="fullwidth"),Zr){case"fullwidth":Wr("/OpenAction [3 0 R /FitH null]");break;case"fullheight":Wr("/OpenAction [3 0 R /FitV null]");break;case"fullpage":Wr("/OpenAction [3 0 R /Fit]");break;case"original":Wr("/OpenAction [3 0 R /XYZ null null 1]");break;default:var rr=""+Zr;"%"===rr.substr(rr.length-1)&&(Zr=parseInt(Zr)/100),"number"==typeof Zr&&Wr("/OpenAction [3 0 R /XYZ null null "+wr(Zr)+"]")}switch(Hn||(Hn="continuous"),Hn){case"continuous":Wr("/PageLayout /OneColumn");break;case"single":Wr("/PageLayout /SinglePage");break;case"two":case"twoleft":Wr("/PageLayout /TwoColumnLeft");break;case"tworight":Wr("/PageLayout /TwoColumnRight")}Qn&&Wr("/PageMode /"+Qn),li.publish("putCatalog"),Wr(">>"),Wr("endobj")},co=hr.__private__.putTrailer=function(){Wr("trailer"),Wr("<<"),Wr("/Size "+(Or+1)),Wr("/Root "+Or+" 0 R"),Wr("/Info "+(Or-1)+" 0 R"),Wr("/ID [ <"+Er+"> <"+Er+"> ]"),Wr(">>")},uo=hr.__private__.putHeader=function(){Wr("%PDF-"+pr),Wr("%ºß¬à")},ho=hr.__private__.putXRef=function(){var er="0000000000";Wr("xref"),Wr("0 "+(Or+1)),Wr("0000000000 65535 f ");for(var tr=1;tr<=Or;tr++)"function"==typeof Qr[tr]?Wr((er+Qr[tr]()).slice(-10)+" 00000 n "):void 0!==Qr[tr]?Wr((er+Qr[tr]).slice(-10)+" 00000 n "):Wr("0000000000 00000 n ")},po=hr.__private__.buildDocument=function(){Kr(),qr(Dr),li.publish("buildDocument"),uo(),Li(),Wi(),qi(),so(),lo();var er=jr;return ho(),co(),Wr("startxref"),Wr(""+er),Wr("%%EOF"),qr(Gr[Ir]),Dr.join("\n")},Ao=hr.__private__.getBlob=function(er){return new Blob([Yr(er)],{type:"application/pdf"})},fo=hr.output=hr.__private__.output=$i((function(er,tr){switch("string"==typeof(tr=tr||{})?tr={filename:tr}:tr.filename=tr.filename||"generated.pdf",er){case void 0:return po();case"save":hr.save(tr.filename);break;case"arraybuffer":return Yr(po());case"blob":return Ao(po());case"bloburi":case"bloburl":if(void 0!==Mf.URL&&"function"==typeof Mf.URL.createObjectURL)return Mf.URL&&Mf.URL.createObjectURL(Ao(po()))||void 0;Of.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var rr="",nr=po();try{rr=Df(nr)}catch(er){rr=Df(unescape(encodeURIComponent(nr)))}return"data:application/pdf;filename="+tr.filename+";base64,"+rr;case"pdfobjectnewwindow":if("[object Window]"===Object.prototype.toString.call(Mf)){var ir='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+(tr.pdfObjectUrl||"https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js")+'"><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(tr)+");<\/script></body></html>",or=Mf.open();return null!==or&&or.document.write(ir),or}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if("[object Window]"===Object.prototype.toString.call(Mf)){var ar='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(tr.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+tr.filename+'" width="500px" height="400px" /></body></html>',sr=Mf.open();if(null!==sr){sr.document.write(ar);var lr=this;sr.document.documentElement.querySelector("#pdfViewer").onload=function(){sr.document.title=tr.filename,sr.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(lr.output("bloburl"))}}return sr}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if("[object Window]"!==Object.prototype.toString.call(Mf))throw new Error("The option dataurlnewwindow just works in a browser-environment.");var cr='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",tr)+'"></iframe></body></html>',ur=Mf.open();if(null!==ur&&(ur.document.write(cr),ur.document.title=tr.filename),ur||"undefined"==typeof safari)return ur;break;case"datauri":case"dataurl":return Mf.document.location.href=this.output("datauristring",tr);default:return null}})),go=function De(er){return!0===Array.isArray(ui)&&ui.indexOf(er)>-1};switch(nr){case"pt":Wn=1;break;case"mm":Wn=72/25.4;break;case"cm":Wn=72/2.54;break;case"in":Wn=72;break;case"px":Wn=1==go("px_scaling")?.75:96/72;break;case"pc":case"em":Wn=12;break;case"ex":Wn=6;break;default:throw new Error("Invalid unit: "+nr)}Fr(),Lr();var mo=hr.__private__.getPageInfo=hr.getPageInfo=function(er){if(isNaN(er)||er%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:si[er].objId,pageNumber:er,pageContext:si[er]}},_o=hr.__private__.getPageInfoByObjId=function(er){if(isNaN(er)||er%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var tr in si)if(si[tr].objId===er)break;return mo(tr)},vo=hr.__private__.getCurrentPageInfo=hr.getCurrentPageInfo=function(){return{objId:si[Ir].objId,pageNumber:Ir,pageContext:si[Ir]}};hr.addPage=function(){return ro.apply(this,arguments),this},hr.setPage=function(){return io.apply(this,arguments),qr.call(this,Gr[Ir]),this},hr.insertPage=function(er){return this.addPage(),this.movePage(Ir,er),this},hr.movePage=function(er,tr){var rr,nr;if(er>tr){rr=Gr[er],nr=si[er];for(var ir=er;ir>tr;ir--)Gr[ir]=Gr[ir-1],si[ir]=si[ir-1];Gr[tr]=rr,si[tr]=nr,this.setPage(tr)}else if(er<tr){rr=Gr[er],nr=si[er];for(var or=er;or<tr;or++)Gr[or]=Gr[or+1],si[or]=si[or+1];Gr[tr]=rr,si[tr]=nr,this.setPage(tr)}return this},hr.deletePage=function(){return no.apply(this,arguments),this},hr.__private__.text=hr.text=function(er,tr,rr,nr,ir){var or,ar,sr,lr,cr,ur,hr,pr,Ar=(nr=nr||{}).scope||this;if("number"==typeof er&&"number"==typeof tr&&("string"==typeof rr||Array.isArray(rr))){var fr=rr;rr=tr,tr=er,er=fr}if(arguments[3]instanceof Ai==0?(sr=arguments[4],lr=arguments[5],"object"==_typeof(hr=arguments[3])&&null!==hr||("string"==typeof sr&&(lr=sr,sr=null),"string"==typeof hr&&(lr=hr,hr=null),"number"==typeof hr&&(sr=hr,hr=null),nr={flags:hr,angle:sr,align:lr})):(yr("The transform parameter of text() with a Matrix value"),pr=ir),isNaN(tr)||isNaN(rr)||null==er)throw new Error("Invalid arguments passed to jsPDF.text");if(0===er.length)return Ar;var gr="",br=!1,wr="number"==typeof nr.lineHeightFactor?nr.lineHeightFactor:Fo,Sr=Ar.internal.scaleFactor;function y(er){return er=er.split("\t").join(Array(nr.TabLen||9).join(" ")),eo(er,hr)}function w(er){for(var tr,rr=er.concat(),nr=[],ir=rr.length;ir--;)"string"==typeof(tr=rr.shift())?nr.push(tr):Array.isArray(er)&&(1===tr.length||void 0===tr[1]&&void 0===tr[2])?nr.push(tr[0]):nr.push([tr[0],tr[1],tr[2]]);return nr}function L(er,tr){var rr;if("string"==typeof er)rr=tr(er)[0];else if(Array.isArray(er)){for(var nr,ir,or=er.concat(),ar=[],sr=or.length;sr--;)"string"==typeof(nr=or.shift())?ar.push(tr(nr)[0]):Array.isArray(nr)&&"string"==typeof nr[0]&&(ir=tr(nr[0],nr[1],nr[2]),ar.push([ir[0],ir[1],ir[2]]));rr=ar}return rr}var kr=!1,Cr=!0;if("string"==typeof er)kr=!0;else if(Array.isArray(er)){var Br=er.concat();ar=[];for(var Er,Nr=Br.length;Nr--;)("string"!=typeof(Er=Br.shift())||Array.isArray(Er)&&"string"!=typeof Er[0])&&(Cr=!1);kr=Cr}if(!1===kr)throw new Error('Type of text must be string or Array. "'+er+'" is not recognized.');"string"==typeof er&&(er=er.match(/[\r?\n]/)?er.split(/\r\n|\r|\n/g):[er]);var Lr=$r/Ar.internal.scaleFactor,Tr=Lr*(Fo-1);switch(nr.baseline){case"bottom":rr-=Tr;break;case"top":rr+=Lr-Tr;break;case"hanging":rr+=Lr-2*Tr;break;case"middle":rr+=Lr/2-Tr}if((ur=nr.maxWidth||0)>0&&("string"==typeof er?er=Ar.splitTextToSize(er,ur):"[object Array]"===Object.prototype.toString.call(er)&&(er=Ar.splitTextToSize(er.join(" "),ur))),or={text:er,x:tr,y:rr,options:nr,mutex:{pdfEscape:eo,activeFontKey:Kn,fonts:$n,activeFontSize:$r}},li.publish("preProcessText",or),er=or.text,sr=(nr=or.options).angle,pr instanceof Ai==0&&sr&&"number"==typeof sr){sr*=Math.PI/180,0===nr.rotationDirection&&(sr=-sr),_r===mr.ADVANCED&&(sr=-sr);var Pr=Math.cos(sr),Fr=Math.sin(sr);pr=new Ai(Pr,Fr,-Fr,Pr,0,0)}else sr&&sr instanceof Ai&&(pr=sr);_r!==mr.ADVANCED||pr||(pr=gi),void 0!==(cr=nr.charSpace||qo)&&(gr+=vr(xr(cr))+" Tc\n",this.setCharSpace(this.getCharSpace()||0)),nr.lang;var Ur=-1,Ir=void 0!==nr.renderingMode?nr.renderingMode:nr.stroke,Rr=Ar.internal.getCurrentPageInfo().pageContext;switch(Ir){case 0:case!1:case"fill":Ur=0;break;case 1:case!0:case"stroke":Ur=1;break;case 2:case"fillThenStroke":Ur=2;break;case 3:case"invisible":Ur=3;break;case 4:case"fillAndAddForClipping":Ur=4;break;case 5:case"strokeAndAddPathForClipping":Ur=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":Ur=6;break;case 7:case"addToPathForClipping":Ur=7}var Mr=void 0!==Rr.usedRenderingMode?Rr.usedRenderingMode:-1;-1!==Ur?gr+=Ur+" Tr\n":-1!==Mr&&(gr+="0 Tr\n"),-1!==Ur&&(Rr.usedRenderingMode=Ur),lr=nr.align||"left";var Or,Qr=$r*wr,Dr=Ar.internal.pageSize.getWidth(),jr=$n[Kn];cr=nr.charSpace||qo,ur=nr.maxWidth||0,hr={};var Hr=[];if("[object Array]"===Object.prototype.toString.call(er)){var Gr;ar=w(er),"left"!==lr&&(Or=ar.map((function(er){return Ar.getStringUnitWidth(er,{font:jr,charSpace:cr,fontSize:$r,doKerning:!1})*$r/Sr})));var Vr,zr=0;if("right"===lr){tr-=Or[0],er=[],Nr=ar.length;for(var Kr=0;Kr<Nr;Kr++)0===Kr?(Vr=Qo(tr),Gr=Do(rr)):(Vr=xr(zr-Or[Kr]),Gr=-Qr),er.push([ar[Kr],Vr,Gr]),zr=Or[Kr]}else if("center"===lr){tr-=Or[0]/2,er=[],Nr=ar.length;for(var qr=0;qr<Nr;qr++)0===qr?(Vr=Qo(tr),Gr=Do(rr)):(Vr=xr((zr-Or[qr])/2),Gr=-Qr),er.push([ar[qr],Vr,Gr]),zr=Or[qr]}else if("left"===lr){er=[],Nr=ar.length;for(var Xr=0;Xr<Nr;Xr++)er.push(ar[Xr])}else{if("justify"!==lr)throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');er=[],Nr=ar.length,ur=0!==ur?ur:Dr;for(var Yr=0;Yr<Nr;Yr++)Gr=0===Yr?Do(rr):-Qr,Vr=0===Yr?Qo(tr):0,Yr<Nr-1&&Hr.push(vr(xr((ur-Or[Yr])/(ar[Yr].split(" ").length-1)))),er.push([ar[Yr],Vr,Gr])}}var Jr="boolean"==typeof nr.R2L?nr.R2L:Un;!0===Jr&&(er=L(er,(function(er,tr,rr){return[er.split("").reverse().join(""),tr,rr]}))),or={text:er,x:tr,y:rr,options:nr,mutex:{pdfEscape:eo,activeFontKey:Kn,fonts:$n,activeFontSize:$r}},li.publish("postProcessText",or),er=or.text,br=or.mutex.isHex||!1;var Zr=$n[Kn].encoding;"WinAnsiEncoding"!==Zr&&"StandardEncoding"!==Zr||(er=L(er,(function(er,tr,rr){return[y(er),tr,rr]}))),ar=w(er),er=[];for(var Tn,Qn,Dn,Hn=0,Gn=1,Vn=Array.isArray(ar[0])?Gn:Hn,zn="",Wn=function ct(er,tr,rr){var ir="";return rr instanceof Ai?(rr="number"==typeof nr.angle?fi(rr,new Ai(1,0,0,1,er,tr)):fi(new Ai(1,0,0,1,er,tr),rr),_r===mr.ADVANCED&&(rr=fi(new Ai(1,0,0,-1,0,0),rr)),ir=rr.join(" ")+" Tm\n"):ir=vr(er)+" "+vr(tr)+" Td\n",ir},Xn=0;Xn<ar.length;Xn++){switch(zn="",Vn){case Gn:Dn=(br?"<":"(")+ar[Xn][0]+(br?">":")"),Tn=parseFloat(ar[Xn][1]),Qn=parseFloat(ar[Xn][2]);break;case Hn:Dn=(br?"<":"(")+ar[Xn]+(br?">":")"),Tn=Qo(tr),Qn=Do(rr)}void 0!==Hr&&void 0!==Hr[Xn]&&(zn=Hr[Xn]+" Tw\n"),0===Xn?er.push(zn+Wn(Tn,Qn,pr)+Dn):Vn===Hn?er.push(zn+Dn):Vn===Gn&&er.push(zn+Wn(Tn,Qn,pr)+Dn)}er=Vn===Hn?er.join(" Tj\nT* "):er.join(" Tj\n"),er+=" Tj\n";var Yn="BT\n/";return Yn+=Kn+" "+$r+" Tf\n",Yn+=vr($r*wr)+" TL\n",Yn+=zo+"\n",Yn+=gr,Yn+=er,Wr(Yn+="ET"),dr[Kn]=!0,Ar};var yo=hr.__private__.clip=hr.clip=function(er){return Wr("evenodd"===er?"W*":"W"),this};hr.clipEvenOdd=function(){return yo("evenodd")},hr.__private__.discardPath=hr.discardPath=function(){return Wr("n"),this};var wo=hr.__private__.isValidStyle=function(er){var tr=!1;return-1!==[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(er)&&(tr=!0),tr};hr.__private__.setDefaultPathOperation=hr.setDefaultPathOperation=function(er){return wo(er)&&(cr=er),this};var So=hr.__private__.getStyle=hr.getStyle=function(er){var tr=cr;switch(er){case"D":case"S":tr="S";break;case"F":tr="f";break;case"FD":case"DF":tr="B";break;case"f":case"f*":case"B":case"B*":tr=er}return tr},xo=hr.close=function(){return Wr("h"),this};hr.stroke=function(){return Wr("S"),this},hr.fill=function(er){return ko("f",er),this},hr.fillEvenOdd=function(er){return ko("f*",er),this},hr.fillStroke=function(er){return ko("B",er),this},hr.fillStrokeEvenOdd=function(er){return ko("B*",er),this};var ko=function Je(er,tr){"object"==_typeof(tr)?Bo(tr,er):Wr(er)},Co=function Xe(er){null===er||_r===mr.ADVANCED&&void 0===er||(er=So(er),Wr(er))};function Ke(er,tr,rr,nr,ir){var or=new p(tr||this.boundingBox,rr||this.xStep,nr||this.yStep,this.gState,ir||this.matrix);or.stream=this.stream;var ar=er+"$$"+this.cloneIndex+++"$$";return mi(ar,or),or}var Bo=function Ze(er,tr){var rr=ri[er.key],nr=ti[rr];if(nr instanceof d)Wr("q"),Wr(Eo(tr)),nr.gState&&hr.setGState(nr.gState),Wr(er.matrix.toString()+" cm"),Wr("/"+rr+" sh"),Wr("Q");else if(nr instanceof p){var ir=new Ai(1,0,0,-1,0,aa());er.matrix&&(ir=ir.multiply(er.matrix||gi),rr=Ke.call(nr,er.key,er.boundingBox,er.xStep,er.yStep,ir).id),Wr("q"),Wr("/Pattern cs"),Wr("/"+rr+" scn"),nr.gState&&hr.setGState(nr.gState),Wr(tr),Wr("Q")}},Eo=function $e(er){switch(er){case"f":case"F":return"W n";case"f*":return"W* n";case"B":return"W S";case"B*":return"W* S";case"S":return"W S";case"n":return"W n"}},No=hr.moveTo=function(er,tr){return Wr(vr(xr(er))+" "+vr(Cr(tr))+" m"),this},Lo=hr.lineTo=function(er,tr){return Wr(vr(xr(er))+" "+vr(Cr(tr))+" l"),this},To=hr.curveTo=function(er,tr,rr,nr,ir,or){return Wr([vr(xr(er)),vr(Cr(tr)),vr(xr(rr)),vr(Cr(nr)),vr(xr(ir)),vr(Cr(or)),"c"].join(" ")),this};hr.__private__.line=hr.line=function(er,tr,rr,nr,ir){if(isNaN(er)||isNaN(tr)||isNaN(rr)||isNaN(nr)||!wo(ir))throw new Error("Invalid arguments passed to jsPDF.line");return _r===mr.COMPAT?this.lines([[rr-er,nr-tr]],er,tr,[1,1],ir||"S"):this.lines([[rr-er,nr-tr]],er,tr,[1,1]).stroke()},hr.__private__.lines=hr.lines=function(er,tr,rr,nr,ir,or){var ar,sr,lr,cr,ur,dr,hr,pr,Ar,fr,gr,mr;if("number"==typeof er&&(mr=rr,rr=tr,tr=er,er=mr),nr=nr||[1,1],or=or||!1,isNaN(tr)||isNaN(rr)||!Array.isArray(er)||!Array.isArray(nr)||!wo(ir)||"boolean"!=typeof or)throw new Error("Invalid arguments passed to jsPDF.lines");for(No(tr,rr),ar=nr[0],sr=nr[1],cr=er.length,fr=tr,gr=rr,lr=0;lr<cr;lr++)2===(ur=er[lr]).length?(fr=ur[0]*ar+fr,gr=ur[1]*sr+gr,Lo(fr,gr)):(dr=ur[0]*ar+fr,hr=ur[1]*sr+gr,pr=ur[2]*ar+fr,Ar=ur[3]*sr+gr,fr=ur[4]*ar+fr,gr=ur[5]*sr+gr,To(dr,hr,pr,Ar,fr,gr));return or&&xo(),Co(ir),this},hr.path=function(er){for(var tr=0;tr<er.length;tr++){var rr=er[tr],nr=rr.c;switch(rr.op){case"m":No(nr[0],nr[1]);break;case"l":Lo(nr[0],nr[1]);break;case"c":To.apply(this,nr);break;case"h":xo()}}return this},hr.__private__.rect=hr.rect=function(er,tr,rr,nr,ir){if(isNaN(er)||isNaN(tr)||isNaN(rr)||isNaN(nr)||!wo(ir))throw new Error("Invalid arguments passed to jsPDF.rect");return _r===mr.COMPAT&&(nr=-nr),Wr([vr(xr(er)),vr(Cr(tr)),vr(xr(rr)),vr(xr(nr)),"re"].join(" ")),Co(ir),this},hr.__private__.triangle=hr.triangle=function(er,tr,rr,nr,ir,or,ar){if(isNaN(er)||isNaN(tr)||isNaN(rr)||isNaN(nr)||isNaN(ir)||isNaN(or)||!wo(ar))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[rr-er,nr-tr],[ir-rr,or-nr],[er-ir,tr-or]],er,tr,[1,1],ar,!0),this},hr.__private__.roundedRect=hr.roundedRect=function(er,tr,rr,nr,ir,or,ar){if(isNaN(er)||isNaN(tr)||isNaN(rr)||isNaN(nr)||isNaN(ir)||isNaN(or)||!wo(ar))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var sr=4/3*(Math.SQRT2-1);return ir=Math.min(ir,.5*rr),or=Math.min(or,.5*nr),this.lines([[rr-2*ir,0],[ir*sr,0,ir,or-or*sr,ir,or],[0,nr-2*or],[0,or*sr,-ir*sr,or,-ir,or],[2*ir-rr,0],[-ir*sr,0,-ir,-or*sr,-ir,-or],[0,2*or-nr],[0,-or*sr,ir*sr,-or,ir,-or]],er+ir,tr,[1,1],ar,!0),this},hr.__private__.ellipse=hr.ellipse=function(er,tr,rr,nr,ir){if(isNaN(er)||isNaN(tr)||isNaN(rr)||isNaN(nr)||!wo(ir))throw new Error("Invalid arguments passed to jsPDF.ellipse");var or=4/3*(Math.SQRT2-1)*rr,ar=4/3*(Math.SQRT2-1)*nr;return No(er+rr,tr),To(er+rr,tr-ar,er+or,tr-nr,er,tr-nr),To(er-or,tr-nr,er-rr,tr-ar,er-rr,tr),To(er-rr,tr+ar,er-or,tr+nr,er,tr+nr),To(er+or,tr+nr,er+rr,tr+ar,er+rr,tr),Co(ir),this},hr.__private__.circle=hr.circle=function(er,tr,rr,nr){if(isNaN(er)||isNaN(tr)||isNaN(rr)||!wo(nr))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(er,tr,rr,rr,nr)},hr.setFont=function(er,tr){return Kn=ao(er,tr,{disableWarning:!1}),this};var Po=hr.__private__.getFont=hr.getFont=function(){return $n[ao.apply(hr,arguments)]};hr.__private__.getFontList=hr.getFontList=function(){var er,tr,rr={};for(er in Zn)if(Zn.hasOwnProperty(er))for(tr in rr[er]=[],Zn[er])Zn[er].hasOwnProperty(tr)&&rr[er].push(tr);return rr},hr.addFont=function(er,tr,rr,nr){return nr=nr||"Identity-H",Yi.call(this,er,tr,rr,nr)};var Fo,Uo=er.lineWidth||.200025,Io=hr.__private__.setLineWidth=hr.setLineWidth=function(er){return Wr(vr(xr(er))+" w"),this};hr.__private__.setLineDash=g.API.setLineDash=g.API.setLineDashPattern=function(er,tr){if(er=er||[],tr=tr||0,isNaN(tr)||!Array.isArray(er))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return er=er.map((function(er){return vr(xr(er))})).join(" "),tr=vr(xr(tr)),Wr("["+er+"] "+tr+" d"),this};var Ro=hr.__private__.getLineHeight=hr.getLineHeight=function(){return $r*Fo};hr.__private__.getLineHeight=hr.getLineHeight=function(){return $r*Fo};var Mo=hr.__private__.setLineHeightFactor=hr.setLineHeightFactor=function(er){return"number"==typeof(er=er||1.15)&&(Fo=er),this},Oo=hr.__private__.getLineHeightFactor=hr.getLineHeightFactor=function(){return Fo};Mo(er.lineHeight);var Qo=hr.__private__.getHorizontalCoordinate=function(er){return xr(er)},Do=hr.__private__.getVerticalCoordinate=function(er){return _r===mr.ADVANCED?er:si[Ir].mediaBox.topRightY-si[Ir].mediaBox.bottomLeftY-xr(er)},jo=hr.__private__.getHorizontalCoordinateString=hr.getHorizontalCoordinateString=function(er){return vr(Qo(er))},Ho=hr.__private__.getVerticalCoordinateString=hr.getVerticalCoordinateString=function(er){return vr(Do(er))},Go=er.strokeColor||"0 G";hr.__private__.getStrokeColor=hr.getDrawColor=function(){return ki(Go)},hr.__private__.setStrokeColor=hr.setDrawColor=function(er,tr,rr,nr){return Go=Ci({ch1:er,ch2:tr,ch3:rr,ch4:nr,pdfColorType:"draw",precision:2}),Wr(Go),this};var Vo=er.fillColor||"0 g";hr.__private__.getFillColor=hr.getFillColor=function(){return ki(Vo)},hr.__private__.setFillColor=hr.setFillColor=function(er,tr,rr,nr){return Vo=Ci({ch1:er,ch2:tr,ch3:rr,ch4:nr,pdfColorType:"fill",precision:2}),Wr(Vo),this};var zo=er.textColor||"0 g",Ko=hr.__private__.getTextColor=hr.getTextColor=function(){return ki(zo)};hr.__private__.setTextColor=hr.setTextColor=function(er,tr,rr,nr){return zo=Ci({ch1:er,ch2:tr,ch3:rr,ch4:nr,pdfColorType:"text",precision:3}),this};var qo=er.charSpace,Wo=hr.__private__.getCharSpace=hr.getCharSpace=function(){return parseFloat(qo||0)};hr.__private__.setCharSpace=hr.setCharSpace=function(er){if(isNaN(er))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return qo=er,this};var Xo=0;hr.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},hr.__private__.setLineCap=hr.setLineCap=function(er){var tr=hr.CapJoinStyles[er];if(void 0===tr)throw new Error("Line cap style of '"+er+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Xo=tr,Wr(tr+" J"),this};var Yo=0;hr.__private__.setLineJoin=hr.setLineJoin=function(er){var tr=hr.CapJoinStyles[er];if(void 0===tr)throw new Error("Line join style of '"+er+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Yo=tr,Wr(tr+" j"),this},hr.__private__.setLineMiterLimit=hr.__private__.setMiterLimit=hr.setLineMiterLimit=hr.setMiterLimit=function(er){if(er=er||0,isNaN(er))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return Wr(vr(xr(er))+" M"),this},hr.GState=l,hr.setGState=function(er){(er="string"==typeof er?ni[ii[er]]:Jo(null,er)).equals(oi)||(Wr("/"+er.id+" gs"),oi=er)};var Jo=function Ln(er,tr){if(!er||!ii[er]){var rr=!1;for(var nr in ni)if(ni.hasOwnProperty(nr)&&ni[nr].equals(tr)){rr=!0;break}if(rr)tr=ni[nr];else{var ir="GS"+(Object.keys(ni).length+1).toString(10);ni[ir]=tr,tr.id=ir}return er&&(ii[er]=tr.id),li.publish("addGState",tr),tr}};hr.addGState=function(er,tr){return Jo(er,tr),this},hr.saveGraphicsState=function(){return Wr("q"),ei.push({key:Kn,size:$r,color:zo}),this},hr.restoreGraphicsState=function(){Wr("Q");var er=ei.pop();return Kn=er.key,$r=er.size,zo=er.color,oi=null,this},hr.setCurrentTransformationMatrix=function(er){return Wr(er.toString()+" cm"),this},hr.comment=function(er){return Wr("#"+er),this};var $o=function xn(er,tr){var rr=er||0;Object.defineProperty(this,"x",{enumerable:!0,get:function get(){return rr},set:function set(er){isNaN(er)||(rr=parseFloat(er))}});var nr=tr||0;Object.defineProperty(this,"y",{enumerable:!0,get:function get(){return nr},set:function set(er){isNaN(er)||(nr=parseFloat(er))}});var ir="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function get(){return ir},set:function set(er){ir=er.toString()}}),this},Zo=function An(er,tr,rr,nr){$o.call(this,er,tr),this.type="rect";var ir=rr||0;Object.defineProperty(this,"w",{enumerable:!0,get:function get(){return ir},set:function set(er){isNaN(er)||(ir=parseFloat(er))}});var or=nr||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function get(){return or},set:function set(er){isNaN(er)||(or=parseFloat(er))}}),this},ea=function _n(){this.page=ai,this.currentPage=Ir,this.pages=Gr.slice(0),this.pagesContext=si.slice(0),this.x=Xn,this.y=Yn,this.matrix=Jn,this.width=ia(Ir),this.height=aa(Ir),this.outputDestination=zr,this.id="",this.objectNumber=-1};ea.prototype.restore=function(){ai=this.page,Ir=this.currentPage,si=this.pagesContext,Gr=this.pages,Xn=this.x,Yn=this.y,Jn=this.matrix,oa(Ir,this.width),sa(Ir,this.height),zr=this.outputDestination};var ta=function Sn(er,tr,rr,nr,ir){pi.push(new ea),ai=Ir=0,Gr=[],Xn=er,Yn=tr,Jn=ir,to([rr,nr])},ra=function Pn(er){if(!hi[er]){var tr=new ea,rr="Xo"+(Object.keys(di).length+1).toString(10);tr.id=rr,hi[er]=rr,di[rr]=tr,li.publish("addFormObject",tr),pi.pop().restore()}};for(var na in hr.beginFormObject=function(er,tr,rr,nr,ir){return ta(er,tr,rr,nr,ir),this},hr.endFormObject=function(er){return ra(er),this},hr.doFormObject=function(er,tr){var rr=di[hi[er]];return Wr("q"),Wr(tr.toString()+" cm"),Wr("/"+rr.id+" Do"),Wr("Q"),this},hr.getFormObject=function(er){var tr=di[hi[er]];return{x:tr.x,y:tr.y,width:tr.width,height:tr.height,matrix:tr.matrix}},hr.save=function(er,tr){return er=er||"generated.pdf",(tr=tr||{}).returnPromise=tr.returnPromise||!1,!1===tr.returnPromise?(jf(Ao(po()),er),"function"==typeof jf.unload&&Mf.setTimeout&&setTimeout(jf.unload,911),this):new Promise((function(tr,rr){try{var nr=jf(Ao(po()),er);"function"==typeof jf.unload&&Mf.setTimeout&&setTimeout(jf.unload,911),tr(nr)}catch(er){rr(er.message)}}))},g.API)g.API.hasOwnProperty(na)&&("events"===na&&g.API.events.length?function(er,tr){var rr,nr,ir;for(ir=tr.length-1;-1!==ir;ir--)rr=tr[ir][0],nr=tr[ir][1],er.subscribe.apply(er,[rr].concat("function"==typeof nr?[nr]:nr))}(li,g.API.events):hr[na]=g.API[na]);var ia=hr.getPageWidth=function(er){return(si[er=er||Ir].mediaBox.topRightX-si[er].mediaBox.bottomLeftX)/Wn},oa=hr.setPageWidth=function(er,tr){si[er].mediaBox.topRightX=tr*Wn+si[er].mediaBox.bottomLeftX},aa=hr.getPageHeight=function(er){return(si[er=er||Ir].mediaBox.topRightY-si[er].mediaBox.bottomLeftY)/Wn},sa=hr.setPageHeight=function(er,tr){si[er].mediaBox.topRightY=tr*Wn+si[er].mediaBox.bottomLeftY};return hr.internal={pdfEscape:eo,getStyle:So,getFont:Po,getFontSize:Tn,getCharSpace:Wo,getTextColor:Ko,getLineHeight:Ro,getLineHeightFactor:Oo,write:Xr,getHorizontalCoordinate:Qo,getVerticalCoordinate:Do,getCoordinateString:jo,getVerticalCoordinateString:Ho,collections:{},newObject:_i,newAdditionalObject:wi,newObjectDeferred:vi,newObjectDeferredBegin:yi,getFilters:Bi,putStream:Ei,events:li,scaleFactor:Wn,pageSize:{getWidth:function getWidth(){return ia(Ir)},setWidth:function setWidth(er){oa(Ir,er)},getHeight:function getHeight(){return aa(Ir)},setHeight:function setHeight(er){sa(Ir,er)}},output:fo,getNumberOfPages:oo,pages:Gr,out:Wr,f2:wr,f3:Sr,getPageInfo:mo,getPageInfoByObjId:_o,getCurrentPageInfo:vo,getPDFVersion:Ar,Point:$o,Rectangle:Zo,Matrix:Ai,hasHotfix:go},Object.defineProperty(hr.internal.pageSize,"width",{get:function get(){return ia(Ir)},set:function set(er){oa(Ir,er)},enumerable:!0,configurable:!0}),Object.defineProperty(hr.internal.pageSize,"height",{get:function get(){return aa(Ir)},set:function set(er){sa(Ir,er)},enumerable:!0,configurable:!0}),Ji.call(hr,Jr),Kn="F1",ro(ir,rr),li.publish("initialized"),hr}Qf=Mf.atob,Df=Mf.btoa,l.prototype.equals=function(er){var tr,rr="id,objectNumber,equals";if(!er||_typeof(er)!=_typeof(this))return!1;var nr=0;for(tr in this)if(!(rr.indexOf(tr)>=0)){if(this.hasOwnProperty(tr)&&!er.hasOwnProperty(tr))return!1;if(this[tr]!==er[tr])return!1;nr++}for(tr in er)er.hasOwnProperty(tr)&&rr.indexOf(tr)<0&&nr--;return 0===nr},g.API={events:[]},g.version="2.1.1";var Hf,Gf=g.API,Vf=1,zf=function y(er){return er.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Kf=function w(er){return er.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},qf=function N(er){return er.toFixed(2)},Wf=function L(er){return er.toFixed(5)};Gf.__acroform__={};var Xf=function x(er,tr){er.prototype=Object.create(tr.prototype),er.prototype.constructor=er},Yf=function A(er){return er*Vf},Jf=function _(er){var tr=new yg,rr=Ug.internal.getHeight(er)||0,nr=Ug.internal.getWidth(er)||0;return tr.BBox=[0,0,Number(qf(nr)),Number(qf(rr))],tr},$f=Gf.__acroform__.setBit=function(er,tr){if(er=er||0,tr=tr||0,isNaN(er)||isNaN(tr))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return er|1<<tr},Zf=Gf.__acroform__.clearBit=function(er,tr){if(er=er||0,tr=tr||0,isNaN(er)||isNaN(tr))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return er&~(1<<tr)},eg=Gf.__acroform__.getBit=function(er,tr){if(isNaN(er)||isNaN(tr))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return 0==(er&1<<tr)?0:1},tg=Gf.__acroform__.getBitForPdf=function(er,tr){if(isNaN(er)||isNaN(tr))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return eg(er,tr-1)},rg=Gf.__acroform__.setBitForPdf=function(er,tr){if(isNaN(er)||isNaN(tr))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return $f(er,tr-1)},ng=Gf.__acroform__.clearBitForPdf=function(er,tr){if(isNaN(er)||isNaN(tr))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return Zf(er,tr-1)},ig=Gf.__acroform__.calculateCoordinates=function(er){var tr=this.internal.getHorizontalCoordinate,rr=this.internal.getVerticalCoordinate,nr=er[0],ir=er[1],or=er[2],ar=er[3],sr={};return sr.lowerLeft_X=tr(nr)||0,sr.lowerLeft_Y=rr(ir+ar)||0,sr.upperRight_X=tr(nr+or)||0,sr.upperRight_Y=rr(ir)||0,[Number(qf(sr.lowerLeft_X)),Number(qf(sr.lowerLeft_Y)),Number(qf(sr.upperRight_X)),Number(qf(sr.upperRight_Y))]},og=function B(er){if(er.appearanceStreamContent)return er.appearanceStreamContent;if(er.V||er.DV){var tr=[],rr=er.V||er.DV,nr=ag(er,rr),ir=Hf.internal.getFont(er.fontName,er.fontStyle).id;tr.push("/Tx BMC"),tr.push("q"),tr.push("BT"),tr.push(Hf.__private__.encodeColorString(er.color)),tr.push("/"+ir+" "+qf(nr.fontSize)+" Tf"),tr.push("1 0 0 1 0 0 Tm"),tr.push(nr.text),tr.push("ET"),tr.push("Q"),tr.push("EMC");var or=new Jf(er);return or.stream=tr.join("\n"),or}},ag=function O(er,tr){var rr=0===er.fontSize?er.maxFontSize:er.fontSize,nr={text:"",fontSize:""},ir=(tr=")"==(tr="("==tr.substr(0,1)?tr.substr(1):tr).substr(tr.length-1)?tr.substr(0,tr.length-1):tr).split(" "),or=rr,ar=Ug.internal.getHeight(er)||0;ar=ar<0?-ar:ar;var sr=Ug.internal.getWidth(er)||0;sr=sr<0?-sr:sr;var lr=function u(tr,rr,nr){if(tr+1<ir.length){var or=rr+" "+ir[tr+1];return sg(or,er,nr).width<=sr-4}return!1};or++;e:for(;or>0;){tr="",or--;var cr,ur,dr=sg("3",er,or).height,hr=er.multiline?ar-or:(ar-dr)/2,pr=hr+=2,Ar=0,fr=0;if(or<=0){tr="(...) Tj\n",tr+="% Width of Text: "+sg(tr,er,or=12).width+", FieldWidth:"+sr+"\n";break}var gr="",mr=0;for(var _r in ir)if(ir.hasOwnProperty(_r)){gr=" "==(gr+=ir[_r]+" ").substr(gr.length-1)?gr.substr(0,gr.length-1):gr;var vr=parseInt(_r),yr=lr(vr,gr,or),br=_r>=ir.length-1;if(yr&&!br){gr+=" ";continue}if(yr||br){if(br)fr=vr;else if(er.multiline&&(dr+2)*(mr+2)+2>ar)continue e}else{if(!er.multiline)continue e;if((dr+2)*(mr+2)+2>ar)continue e;fr=vr}for(var wr="",Sr=Ar;Sr<=fr;Sr++)wr+=ir[Sr]+" ";switch(wr=" "==wr.substr(wr.length-1)?wr.substr(0,wr.length-1):wr,ur=sg(wr,er,or).width,er.textAlign){case"right":cr=sr-ur-2;break;case"center":cr=(sr-ur)/2;break;case"left":default:cr=2}tr+=qf(cr)+" "+qf(pr)+" Td\n",tr+="("+zf(wr)+") Tj\n",tr+=-qf(cr)+" 0 Td\n",pr=-(or+2),ur=0,Ar=fr+1,mr++,gr=""}break}return nr.text=tr,nr.fontSize=or,nr},sg=function M(er,tr,rr){var nr=Hf.internal.getFont(tr.fontName,tr.fontStyle),ir=Hf.getStringUnitWidth(er,{font:nr,fontSize:parseFloat(rr),charSpace:0})*parseFloat(rr);return{height:Hf.getStringUnitWidth("3",{font:nr,fontSize:parseFloat(rr),charSpace:0})*parseFloat(rr)*1.5,width:ir}},lg={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},cg=function q(){Hf.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var er=Hf.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var tr in er)if(er.hasOwnProperty(tr)){var rr=er[tr];rr.objId=void 0,rr.hasAnnotation&&dg.call(Hf,rr)}},ug=function R(er){Hf.internal.acroformPlugin.printedOut&&(Hf.internal.acroformPlugin.printedOut=!1,Hf.internal.acroformPlugin.acroFormDictionaryRoot=null),Hf.internal.acroformPlugin.acroFormDictionaryRoot||gg.call(Hf),Hf.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(er)},dg=function T(er){var tr={type:"reference",object:er};void 0===Hf.internal.getPageInfo(er.page).pageContext.annotations.find((function(er){return er.type===tr.type&&er.object===tr.object}))&&Hf.internal.getPageInfo(er.page).pageContext.annotations.push(tr)},hg=function D(){if(void 0===Hf.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("putCatalogCallback: Root missing.");Hf.internal.write("/AcroForm "+Hf.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")},pg=function U(){Hf.internal.events.unsubscribe(Hf.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete Hf.internal.acroformPlugin.acroFormDictionaryRoot._eventID,Hf.internal.acroformPlugin.printedOut=!0},Ag=function z(er){var tr=!er;for(var rr in er||(Hf.internal.newObjectDeferredBegin(Hf.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),Hf.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),er=er||Hf.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(er.hasOwnProperty(rr)){var nr=er[rr],ir=[],or=nr.Rect;if(nr.Rect&&(nr.Rect=ig.call(this,nr.Rect)),Hf.internal.newObjectDeferredBegin(nr.objId,!0),nr.DA=Ug.createDefaultAppearanceStream(nr),"object"==_typeof(nr)&&"function"==typeof nr.getKeyValueListForStream&&(ir=nr.getKeyValueListForStream()),nr.Rect=or,nr.hasAppearanceStream&&!nr.appearanceStreamContent){var ar=og.call(this,nr);ir.push({key:"AP",value:"<</N "+ar+">>"}),Hf.internal.acroformPlugin.xForms.push(ar)}if(nr.appearanceStreamContent){var sr="";for(var lr in nr.appearanceStreamContent)if(nr.appearanceStreamContent.hasOwnProperty(lr)){var cr=nr.appearanceStreamContent[lr];if(sr+="/"+lr+" ",sr+="<<",Object.keys(cr).length>=1||Array.isArray(cr)){for(var rr in cr)if(cr.hasOwnProperty(rr)){var ur=cr[rr];"function"==typeof ur&&(ur=ur.call(this,nr)),sr+="/"+rr+" "+ur+" ",Hf.internal.acroformPlugin.xForms.indexOf(ur)>=0||Hf.internal.acroformPlugin.xForms.push(ur)}}else"function"==typeof(ur=cr)&&(ur=ur.call(this,nr)),sr+="/"+rr+" "+ur,Hf.internal.acroformPlugin.xForms.indexOf(ur)>=0||Hf.internal.acroformPlugin.xForms.push(ur);sr+=">>"}ir.push({key:"AP",value:"<<\n"+sr+">>"})}Hf.internal.putStream({additionalKeyValues:ir}),Hf.internal.out("endobj")}tr&&fg.call(this,Hf.internal.acroformPlugin.xForms)},fg=function H(er){for(var tr in er)if(er.hasOwnProperty(tr)){var rr=tr,nr=er[tr];Hf.internal.newObjectDeferredBegin(nr&&nr.objId,!0),"object"==_typeof(nr)&&"function"==typeof nr.putStream&&nr.putStream(),delete er[rr]}},gg=function W(){if(void 0!==this.internal&&(void 0===this.internal.acroformPlugin||!1===this.internal.acroformPlugin.isInitialized)){if(Hf=this,wg.FieldNum=0,this.internal.acroformPlugin=JSON.parse(JSON.stringify(lg)),this.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");Vf=Hf.internal.scaleFactor,Hf.internal.acroformPlugin.acroFormDictionaryRoot=new bg,Hf.internal.acroformPlugin.acroFormDictionaryRoot._eventID=Hf.internal.events.subscribe("postPutResources",pg),Hf.internal.events.subscribe("buildDocument",cg),Hf.internal.events.subscribe("putCatalog",hg),Hf.internal.events.subscribe("postPutPages",Ag),Hf.internal.acroformPlugin.isInitialized=!0}},mg=Gf.__acroform__.arrayToPdfArray=function(er){if(Array.isArray(er)){for(var tr="[",rr=0;rr<er.length;rr++)switch(0!==rr&&(tr+=" "),_typeof(er[rr])){case"boolean":case"number":case"object":tr+=er[rr].toString();break;case"string":"/"!==er[rr].substr(0,1)?tr+="("+zf(er[rr].toString())+")":tr+=er[rr].toString()}return tr+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},_g=function G(er){return(er=er||"").toString(),"("+zf(er)+")"},vg=function Y(){var er;Object.defineProperty(this,"objId",{configurable:!0,get:function get(){return er||(er=Hf.internal.newObjectDeferred()),er},set:function set(tr){er=tr}})};vg.prototype.toString=function(){return this.objId+" 0 R"},vg.prototype.putStream=function(){var er=this.getKeyValueListForStream();Hf.internal.putStream({data:this.stream,additionalKeyValues:er}),Hf.internal.out("endobj")},vg.prototype.getKeyValueListForStream=function(){return function(er){var tr=[],rr=Object.getOwnPropertyNames(er).filter((function(er){return"content"!=er&&"appearanceStreamContent"!=er&&"_"!=er.substring(0,1)}));for(var nr in rr)if(!1===Object.getOwnPropertyDescriptor(er,rr[nr]).configurable){var ir=rr[nr],or=er[ir];or&&(Array.isArray(or)?tr.push({key:ir,value:mg(or)}):or instanceof vg?tr.push({key:ir,value:or.objId+" 0 R"}):"function"!=typeof or&&tr.push({key:ir,value:or}))}return tr}(this)};var yg=function J(){vg.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writeable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writeable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writeable:!0});var er,tr=[];Object.defineProperty(this,"BBox",{configurable:!1,writeable:!0,get:function get(){return tr},set:function set(er){tr=er}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writeable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function set(tr){er=tr.trim()},get:function get(){return er||null}})};Xf(yg,vg);var bg=function X(){vg.call(this);var er,tr=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function get(){return tr.length>0?tr:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function get(){return tr}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function get(){if(er)return"("+er+")"},set:function set(tr){er=tr}})};Xf(bg,vg);var wg=function K(){vg.call(this);var er=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function get(){return er},set:function set(tr){if(isNaN(tr))throw new Error('Invalid value "'+tr+'" for attribute F supplied.');er=tr}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function get(){return Boolean(tg(er,3))},set:function set(tr){!0===Boolean(tr)?this.F=rg(er,3):this.F=ng(er,3)}});var tr=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function get(){return tr},set:function set(er){if(isNaN(er))throw new Error('Invalid value "'+er+'" for attribute Ff supplied.');tr=er}});var rr=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function get(){if(0!==rr.length)return rr},set:function set(er){rr=void 0!==er?er:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function get(){return!rr||isNaN(rr[0])?0:rr[0]},set:function set(er){rr[0]=er}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function get(){return!rr||isNaN(rr[1])?0:rr[1]},set:function set(er){rr[1]=er}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function get(){return!rr||isNaN(rr[2])?0:rr[2]},set:function set(er){rr[2]=er}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function get(){return!rr||isNaN(rr[3])?0:rr[3]},set:function set(er){rr[3]=er}});var nr="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function get(){return nr},set:function set(er){switch(er){case"/Btn":case"/Tx":case"/Ch":case"/Sig":nr=er;break;default:throw new Error('Invalid value "'+er+'" for attribute FT supplied.')}}});var ir=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function get(){if(!ir||ir.length<1){if(this instanceof Lg)return;ir="FieldObject"+K.FieldNum++}return"("+zf(ir)+")"},set:function set(er){ir=er.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function get(){return ir},set:function set(er){ir=er}});var or="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function get(){return or},set:function set(er){or=er}});var ar="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function get(){return ar},set:function set(er){ar=er}});var sr=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function get(){return sr},set:function set(er){sr=er}});var lr=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function get(){return void 0===lr?50/Vf:lr},set:function set(er){lr=er}});var cr="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function get(){return cr},set:function set(er){cr=er}});var ur="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function get(){if(!(!ur||this instanceof Lg||this instanceof Pg))return _g(ur)},set:function set(er){er=er.toString(),ur=er}});var dr=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function get(){if(dr)return this instanceof Bg==0?_g(dr):dr},set:function set(er){er=er.toString(),dr=this instanceof Bg==0?"("===er.substr(0,1)?Kf(er.substr(1,er.length-2)):Kf(er):er}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function get(){return this instanceof Bg==1?Kf(dr.substr(1,dr.length-1)):dr},set:function set(er){er=er.toString(),dr=this instanceof Bg==1?"/"+er:er}});var hr=null;Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function get(){if(hr)return this instanceof Bg==0?_g(hr):hr},set:function set(er){er=er.toString(),hr=this instanceof Bg==0?"("===er.substr(0,1)?Kf(er.substr(1,er.length-2)):Kf(er):er}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function get(){return this instanceof Bg==1?Kf(hr.substr(1,hr.length-1)):hr},set:function set(er){er=er.toString(),hr=this instanceof Bg==1?"/"+er:er}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function get(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function get(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function get(){return this.hasAnnotation?"/Widget":null}});var pr,Ar=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,writeable:!0,get:function get(){return Ar},set:function set(er){er=Boolean(er),Ar=er}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,writeable:!0,get:function get(){if(pr)return pr},set:function set(er){pr=er}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function get(){return Boolean(tg(this.Ff,1))},set:function set(er){!0===Boolean(er)?this.Ff=rg(this.Ff,1):this.Ff=ng(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function get(){return Boolean(tg(this.Ff,2))},set:function set(er){!0===Boolean(er)?this.Ff=rg(this.Ff,2):this.Ff=ng(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function get(){return Boolean(tg(this.Ff,3))},set:function set(er){!0===Boolean(er)?this.Ff=rg(this.Ff,3):this.Ff=ng(this.Ff,3)}});var fr=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function get(){if(null!==fr)return fr},set:function set(er){if(-1===[0,1,2].indexOf(er))throw new Error('Invalid value "'+er+'" for attribute Q supplied.');fr=er}}),Object.defineProperty(this,"textAlign",{get:function get(){var er;switch(fr){case 0:default:er="left";break;case 1:er="center";break;case 2:er="right"}return er},configurable:!0,enumerable:!0,set:function set(er){switch(er){case"right":case 2:fr=2;break;case"center":case 1:fr=1;break;case"left":case 0:default:fr=0}}})};Xf(wg,vg);var Sg=function Z(){wg.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var er=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function get(){return er},set:function set(tr){er=tr}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function get(){return er},set:function set(tr){er=tr}});var tr=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function get(){return mg(tr)},set:function set(er){var rr,nr;nr=[],"string"==typeof(rr=er)&&(nr=function(er,tr,rr){rr||(rr=1);for(var nr,ir=[];nr=tr.exec(er);)ir.push(nr[rr]);return ir}(rr,/\((.*?)\)/g)),tr=nr}}),this.getOptions=function(){return tr},this.setOptions=function(er){tr=er,this.sort&&tr.sort()},this.addOption=function(er){er=(er=er||"").toString(),tr.push(er),this.sort&&tr.sort()},this.removeOption=function(er,rr){for(rr=rr||!1,er=(er=er||"").toString();-1!==tr.indexOf(er)&&(tr.splice(tr.indexOf(er),1),!1!==rr););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function get(){return Boolean(tg(this.Ff,18))},set:function set(er){!0===Boolean(er)?this.Ff=rg(this.Ff,18):this.Ff=ng(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function get(){return Boolean(tg(this.Ff,19))},set:function set(er){!0===this.combo&&(!0===Boolean(er)?this.Ff=rg(this.Ff,19):this.Ff=ng(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function get(){return Boolean(tg(this.Ff,20))},set:function set(er){!0===Boolean(er)?(this.Ff=rg(this.Ff,20),tr.sort()):this.Ff=ng(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function get(){return Boolean(tg(this.Ff,22))},set:function set(er){!0===Boolean(er)?this.Ff=rg(this.Ff,22):this.Ff=ng(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function get(){return Boolean(tg(this.Ff,23))},set:function set(er){!0===Boolean(er)?this.Ff=rg(this.Ff,23):this.Ff=ng(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function get(){return Boolean(tg(this.Ff,27))},set:function set(er){!0===Boolean(er)?this.Ff=rg(this.Ff,27):this.Ff=ng(this.Ff,27)}}),this.hasAppearanceStream=!1};Xf(Sg,wg);var xg=function $(){Sg.call(this),this.fontName="helvetica",this.combo=!1};Xf(xg,Sg);var kg=function Q(){xg.call(this),this.combo=!0};Xf(kg,xg);var Cg=function tt(){kg.call(this),this.edit=!0};Xf(Cg,kg);var Bg=function et(){wg.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function get(){return Boolean(tg(this.Ff,15))},set:function set(er){!0===Boolean(er)?this.Ff=rg(this.Ff,15):this.Ff=ng(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function get(){return Boolean(tg(this.Ff,16))},set:function set(er){!0===Boolean(er)?this.Ff=rg(this.Ff,16):this.Ff=ng(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function get(){return Boolean(tg(this.Ff,17))},set:function set(er){!0===Boolean(er)?this.Ff=rg(this.Ff,17):this.Ff=ng(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function get(){return Boolean(tg(this.Ff,26))},set:function set(er){!0===Boolean(er)?this.Ff=rg(this.Ff,26):this.Ff=ng(this.Ff,26)}});var er,tr={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function get(){if(0!==Object.keys(tr).length){var er,rr=[];for(er in rr.push("<<"),tr)rr.push("/"+er+" ("+tr[er]+")");return rr.push(">>"),rr.join("\n")}},set:function set(er){"object"==_typeof(er)&&(tr=er)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function get(){return tr.CA||""},set:function set(er){"string"==typeof er&&(tr.CA=er)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function get(){return er},set:function set(tr){er=tr}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function get(){return er.substr(1,er.length-1)},set:function set(tr){er="/"+tr}})};Xf(Bg,wg);var Eg=function nt(){Bg.call(this),this.pushButton=!0};Xf(Eg,Bg);var Ng=function rt(){Bg.call(this),this.radio=!0,this.pushButton=!1;var er=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function get(){return er},set:function set(tr){er=void 0!==tr?tr:[]}})};Xf(Ng,Bg);var Lg=function it(){var er,tr;wg.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function get(){return er},set:function set(tr){er=tr}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function get(){return tr},set:function set(er){tr=er}});var rr,nr={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function get(){var er,tr=[];for(er in tr.push("<<"),nr)tr.push("/"+er+" ("+nr[er]+")");return tr.push(">>"),tr.join("\n")},set:function set(er){"object"==_typeof(er)&&(nr=er)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function get(){return nr.CA||""},set:function set(er){"string"==typeof er&&(nr.CA=er)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function get(){return rr},set:function set(er){rr=er}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function get(){return rr.substr(1,rr.length-1)},set:function set(er){rr="/"+er}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=Ug.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};Xf(Lg,wg),Ng.prototype.setAppearance=function(er){if(!("createAppearanceStream"in er)||!("getCA"in er))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var tr in this.Kids)if(this.Kids.hasOwnProperty(tr)){var rr=this.Kids[tr];rr.appearanceStreamContent=er.createAppearanceStream(rr.optionName),rr.caption=er.getCA()}},Ng.prototype.createOption=function(er){var tr=new Lg;return tr.Parent=this,tr.optionName=er,this.Kids.push(tr),Ig.call(this,tr),tr};var Tg=function at(){Bg.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=Ug.CheckBox.createAppearanceStream()};Xf(Tg,Bg);var Pg=function ot(){wg.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function get(){return Boolean(tg(this.Ff,13))},set:function set(er){!0===Boolean(er)?this.Ff=rg(this.Ff,13):this.Ff=ng(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function get(){return Boolean(tg(this.Ff,21))},set:function set(er){!0===Boolean(er)?this.Ff=rg(this.Ff,21):this.Ff=ng(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function get(){return Boolean(tg(this.Ff,23))},set:function set(er){!0===Boolean(er)?this.Ff=rg(this.Ff,23):this.Ff=ng(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function get(){return Boolean(tg(this.Ff,24))},set:function set(er){!0===Boolean(er)?this.Ff=rg(this.Ff,24):this.Ff=ng(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function get(){return Boolean(tg(this.Ff,25))},set:function set(er){!0===Boolean(er)?this.Ff=rg(this.Ff,25):this.Ff=ng(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function get(){return Boolean(tg(this.Ff,26))},set:function set(er){!0===Boolean(er)?this.Ff=rg(this.Ff,26):this.Ff=ng(this.Ff,26)}});var er=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function get(){return er},set:function set(tr){er=tr}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function get(){return er},set:function set(tr){Number.isInteger(tr)&&(er=tr)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function get(){return this.V||this.DV}})};Xf(Pg,wg);var Fg=function st(){Pg.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function get(){return Boolean(tg(this.Ff,14))},set:function set(er){!0===Boolean(er)?this.Ff=rg(this.Ff,14):this.Ff=ng(this.Ff,14)}}),this.password=!0};Xf(Fg,Pg);var Ug={CheckBox:{createAppearanceStream:function createAppearanceStream(){return{N:{On:Ug.CheckBox.YesNormal},D:{On:Ug.CheckBox.YesPushDown,Off:Ug.CheckBox.OffPushDown}}},YesPushDown:function YesPushDown(er){var tr=new Jf(er),rr=[],nr=Hf.internal.getFont(er.fontName,er.fontStyle).id,ir=Hf.__private__.encodeColorString(er.color),or=ag(er,er.caption);return rr.push("0.749023 g"),rr.push("0 0 "+qf(Ug.internal.getWidth(er))+" "+qf(Ug.internal.getHeight(er))+" re"),rr.push("f"),rr.push("BMC"),rr.push("q"),rr.push("0 0 1 rg"),rr.push("/"+nr+" "+qf(or.fontSize)+" Tf "+ir),rr.push("BT"),rr.push(or.text),rr.push("ET"),rr.push("Q"),rr.push("EMC"),tr.stream=rr.join("\n"),tr},YesNormal:function YesNormal(er){var tr=new Jf(er),rr=Hf.internal.getFont(er.fontName,er.fontStyle).id,nr=Hf.__private__.encodeColorString(er.color),ir=[],or=Ug.internal.getHeight(er),ar=Ug.internal.getWidth(er),sr=ag(er,er.caption);return ir.push("1 g"),ir.push("0 0 "+qf(ar)+" "+qf(or)+" re"),ir.push("f"),ir.push("q"),ir.push("0 0 1 rg"),ir.push("0 0 "+qf(ar-1)+" "+qf(or-1)+" re"),ir.push("W"),ir.push("n"),ir.push("0 g"),ir.push("BT"),ir.push("/"+rr+" "+qf(sr.fontSize)+" Tf "+nr),ir.push(sr.text),ir.push("ET"),ir.push("Q"),tr.stream=ir.join("\n"),tr},OffPushDown:function OffPushDown(er){var tr=new Jf(er),rr=[];return rr.push("0.749023 g"),rr.push("0 0 "+qf(Ug.internal.getWidth(er))+" "+qf(Ug.internal.getHeight(er))+" re"),rr.push("f"),tr.stream=rr.join("\n"),tr}},RadioButton:{Circle:{createAppearanceStream:function createAppearanceStream(er){var tr={D:{Off:Ug.RadioButton.Circle.OffPushDown},N:{}};return tr.N[er]=Ug.RadioButton.Circle.YesNormal,tr.D[er]=Ug.RadioButton.Circle.YesPushDown,tr},getCA:function getCA(){return"l"},YesNormal:function YesNormal(er){var tr=new Jf(er),rr=[],nr=Ug.internal.getWidth(er)<=Ug.internal.getHeight(er)?Ug.internal.getWidth(er)/4:Ug.internal.getHeight(er)/4;nr=Number((.9*nr).toFixed(5));var ir=Ug.internal.Bezier_C,or=Number((nr*ir).toFixed(5));return rr.push("q"),rr.push("1 0 0 1 "+Wf(Ug.internal.getWidth(er)/2)+" "+Wf(Ug.internal.getHeight(er)/2)+" cm"),rr.push(nr+" 0 m"),rr.push(nr+" "+or+" "+or+" "+nr+" 0 "+nr+" c"),rr.push("-"+or+" "+nr+" -"+nr+" "+or+" -"+nr+" 0 c"),rr.push("-"+nr+" -"+or+" -"+or+" -"+nr+" 0 -"+nr+" c"),rr.push(or+" -"+nr+" "+nr+" -"+or+" "+nr+" 0 c"),rr.push("f"),rr.push("Q"),tr.stream=rr.join("\n"),tr},YesPushDown:function YesPushDown(er){var tr=new Jf(er),rr=[],nr=Ug.internal.getWidth(er)<=Ug.internal.getHeight(er)?Ug.internal.getWidth(er)/4:Ug.internal.getHeight(er)/4,ir=(nr=Number((.9*nr).toFixed(5)),Number((2*nr).toFixed(5))),or=Number((ir*Ug.internal.Bezier_C).toFixed(5)),ar=Number((nr*Ug.internal.Bezier_C).toFixed(5));return rr.push("0.749023 g"),rr.push("q"),rr.push("1 0 0 1 "+Wf(Ug.internal.getWidth(er)/2)+" "+Wf(Ug.internal.getHeight(er)/2)+" cm"),rr.push(ir+" 0 m"),rr.push(ir+" "+or+" "+or+" "+ir+" 0 "+ir+" c"),rr.push("-"+or+" "+ir+" -"+ir+" "+or+" -"+ir+" 0 c"),rr.push("-"+ir+" -"+or+" -"+or+" -"+ir+" 0 -"+ir+" c"),rr.push(or+" -"+ir+" "+ir+" -"+or+" "+ir+" 0 c"),rr.push("f"),rr.push("Q"),rr.push("0 g"),rr.push("q"),rr.push("1 0 0 1 "+Wf(Ug.internal.getWidth(er)/2)+" "+Wf(Ug.internal.getHeight(er)/2)+" cm"),rr.push(nr+" 0 m"),rr.push(nr+" "+ar+" "+ar+" "+nr+" 0 "+nr+" c"),rr.push("-"+ar+" "+nr+" -"+nr+" "+ar+" -"+nr+" 0 c"),rr.push("-"+nr+" -"+ar+" -"+ar+" -"+nr+" 0 -"+nr+" c"),rr.push(ar+" -"+nr+" "+nr+" -"+ar+" "+nr+" 0 c"),rr.push("f"),rr.push("Q"),tr.stream=rr.join("\n"),tr},OffPushDown:function OffPushDown(er){var tr=new Jf(er),rr=[],nr=Ug.internal.getWidth(er)<=Ug.internal.getHeight(er)?Ug.internal.getWidth(er)/4:Ug.internal.getHeight(er)/4;nr=Number((.9*nr).toFixed(5));var ir=Number((2*nr).toFixed(5)),or=Number((ir*Ug.internal.Bezier_C).toFixed(5));return rr.push("0.749023 g"),rr.push("q"),rr.push("1 0 0 1 "+Wf(Ug.internal.getWidth(er)/2)+" "+Wf(Ug.internal.getHeight(er)/2)+" cm"),rr.push(ir+" 0 m"),rr.push(ir+" "+or+" "+or+" "+ir+" 0 "+ir+" c"),rr.push("-"+or+" "+ir+" -"+ir+" "+or+" -"+ir+" 0 c"),rr.push("-"+ir+" -"+or+" -"+or+" -"+ir+" 0 -"+ir+" c"),rr.push(or+" -"+ir+" "+ir+" -"+or+" "+ir+" 0 c"),rr.push("f"),rr.push("Q"),tr.stream=rr.join("\n"),tr}},Cross:{createAppearanceStream:function createAppearanceStream(er){var tr={D:{Off:Ug.RadioButton.Cross.OffPushDown},N:{}};return tr.N[er]=Ug.RadioButton.Cross.YesNormal,tr.D[er]=Ug.RadioButton.Cross.YesPushDown,tr},getCA:function getCA(){return"8"},YesNormal:function YesNormal(er){var tr=new Jf(er),rr=[],nr=Ug.internal.calculateCross(er);return rr.push("q"),rr.push("1 1 "+qf(Ug.internal.getWidth(er)-2)+" "+qf(Ug.internal.getHeight(er)-2)+" re"),rr.push("W"),rr.push("n"),rr.push(qf(nr.x1.x)+" "+qf(nr.x1.y)+" m"),rr.push(qf(nr.x2.x)+" "+qf(nr.x2.y)+" l"),rr.push(qf(nr.x4.x)+" "+qf(nr.x4.y)+" m"),rr.push(qf(nr.x3.x)+" "+qf(nr.x3.y)+" l"),rr.push("s"),rr.push("Q"),tr.stream=rr.join("\n"),tr},YesPushDown:function YesPushDown(er){var tr=new Jf(er),rr=Ug.internal.calculateCross(er),nr=[];return nr.push("0.749023 g"),nr.push("0 0 "+qf(Ug.internal.getWidth(er))+" "+qf(Ug.internal.getHeight(er))+" re"),nr.push("f"),nr.push("q"),nr.push("1 1 "+qf(Ug.internal.getWidth(er)-2)+" "+qf(Ug.internal.getHeight(er)-2)+" re"),nr.push("W"),nr.push("n"),nr.push(qf(rr.x1.x)+" "+qf(rr.x1.y)+" m"),nr.push(qf(rr.x2.x)+" "+qf(rr.x2.y)+" l"),nr.push(qf(rr.x4.x)+" "+qf(rr.x4.y)+" m"),nr.push(qf(rr.x3.x)+" "+qf(rr.x3.y)+" l"),nr.push("s"),nr.push("Q"),tr.stream=nr.join("\n"),tr},OffPushDown:function OffPushDown(er){var tr=new Jf(er),rr=[];return rr.push("0.749023 g"),rr.push("0 0 "+qf(Ug.internal.getWidth(er))+" "+qf(Ug.internal.getHeight(er))+" re"),rr.push("f"),tr.stream=rr.join("\n"),tr}}},createDefaultAppearanceStream:function createDefaultAppearanceStream(er){var tr=Hf.internal.getFont(er.fontName,er.fontStyle).id,rr=Hf.__private__.encodeColorString(er.color);return"/"+tr+" "+er.fontSize+" Tf "+rr}};Ug.internal={Bezier_C:.551915024494,calculateCross:function calculateCross(er){var tr=Ug.internal.getWidth(er),rr=Ug.internal.getHeight(er),nr=Math.min(tr,rr);return{x1:{x:(tr-nr)/2,y:(rr-nr)/2+nr},x2:{x:(tr-nr)/2+nr,y:(rr-nr)/2},x3:{x:(tr-nr)/2,y:(rr-nr)/2},x4:{x:(tr-nr)/2+nr,y:(rr-nr)/2+nr}}}},Ug.internal.getWidth=function(er){var tr=0;return"object"==_typeof(er)&&(tr=Yf(er.Rect[2])),tr},Ug.internal.getHeight=function(er){var tr=0;return"object"==_typeof(er)&&(tr=Yf(er.Rect[3])),tr};var Ig=Gf.addField=function(er){if(gg.call(this),!(er instanceof wg))throw new Error("Invalid argument passed to jsPDF.addField.");return ug.call(this,er),er.page=Hf.internal.getCurrentPageInfo().pageNumber,this};Gf.AcroFormChoiceField=Sg,Gf.AcroFormListBox=xg,Gf.AcroFormComboBox=kg,Gf.AcroFormEditBox=Cg,Gf.AcroFormButton=Bg,Gf.AcroFormPushButton=Eg,Gf.AcroFormRadioButton=Ng,Gf.AcroFormCheckBox=Tg,Gf.AcroFormTextField=Pg,Gf.AcroFormPasswordField=Fg,Gf.AcroFormAppearance=Ug,Gf.AcroForm={ChoiceField:Sg,ListBox:xg,ComboBox:kg,EditBox:Cg,Button:Bg,PushButton:Eg,RadioButton:Ng,CheckBox:Tg,TextField:Pg,PasswordField:Fg,Appearance:Ug},g.AcroForm={ChoiceField:Sg,ListBox:xg,ComboBox:kg,EditBox:Cg,Button:Bg,PushButton:Eg,RadioButton:Ng,CheckBox:Tg,TextField:Pg,PasswordField:Fg,Appearance:Ug},function(er){er.__addimage__={};var tr="UNKNOWN",rr={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},nr=er.__addimage__.getImageFileTypeByImageData=function(er,nr){var ir,or;nr=nr||tr;var ar,sr,lr,cr=tr;if(wr(er))for(lr in rr)for(ar=rr[lr],ir=0;ir<ar.length;ir+=1){for(sr=!0,or=0;or<ar[ir].length;or+=1)if(void 0!==ar[ir][or]&&ar[ir][or]!==er[or]){sr=!1;break}if(!0===sr){cr=lr;break}}else for(lr in rr)for(ar=rr[lr],ir=0;ir<ar.length;ir+=1){for(sr=!0,or=0;or<ar[ir].length;or+=1)if(void 0!==ar[ir][or]&&ar[ir][or]!==er.charCodeAt(or)){sr=!1;break}if(!0===sr){cr=lr;break}}return cr===tr&&nr!==tr&&(cr=nr),cr},ir=function i(er){for(var tr=this.internal.write,rr=this.internal.putStream,nr=(0,this.internal.getFilters)();-1!==nr.indexOf("FlateEncode");)nr.splice(nr.indexOf("FlateEncode"),1);er.objectId=this.internal.newObject();var ir=[];if(ir.push({key:"Type",value:"/XObject"}),ir.push({key:"Subtype",value:"/Image"}),ir.push({key:"Width",value:er.width}),ir.push({key:"Height",value:er.height}),er.colorSpace===gr.INDEXED?ir.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(er.palette.length/3-1)+" "+("sMask"in er&&void 0!==er.sMask?er.objectId+2:er.objectId+1)+" 0 R]"}):(ir.push({key:"ColorSpace",value:"/"+er.colorSpace}),er.colorSpace===gr.DEVICE_CMYK&&ir.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),ir.push({key:"BitsPerComponent",value:er.bitsPerComponent}),"decodeParameters"in er&&void 0!==er.decodeParameters&&ir.push({key:"DecodeParms",value:"<<"+er.decodeParameters+">>"}),"transparency"in er&&Array.isArray(er.transparency)){for(var or="",ar=0,sr=er.transparency.length;ar<sr;ar++)or+=er.transparency[ar]+" "+er.transparency[ar]+" ";ir.push({key:"Mask",value:"["+or+"]"})}void 0!==er.sMask&&ir.push({key:"SMask",value:er.objectId+1+" 0 R"});var lr=void 0!==er.filter?["/"+er.filter]:void 0;if(rr({data:er.data,additionalKeyValues:ir,alreadyAppliedFilters:lr}),tr("endobj"),"sMask"in er&&void 0!==er.sMask){var cr="/Predictor "+er.predictor+" /Colors 1 /BitsPerComponent "+er.bitsPerComponent+" /Columns "+er.width,ur={width:er.width,height:er.height,colorSpace:"DeviceGray",bitsPerComponent:er.bitsPerComponent,decodeParameters:cr,data:er.sMask};"filter"in er&&(ur.filter=er.filter),i.call(this,ur)}er.colorSpace===gr.INDEXED&&(this.internal.newObject(),rr({data:xr(new Uint8Array(er.palette))}),tr("endobj"))},or=function a(){var er=this.internal.collections.addImage_images;for(var tr in er)ir.call(this,er[tr])},ar=function u(){var er,tr=this.internal.collections.addImage_images,rr=this.internal.write;for(var nr in tr)rr("/I"+(er=tr[nr]).index,er.objectId,"0","R")},sr=function c(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",or),this.internal.events.subscribe("putXobjectDict",ar))},lr=function h(){var er=this.internal.collections.addImage_images;return sr.call(this),er},cr=function l(){return Object.keys(this.internal.collections.addImage_images).length},ur=function f(tr){return"function"==typeof er["process"+tr.toUpperCase()]},dr=function d(er){return"object"==_typeof(er)&&1===er.nodeType},hr=function p(tr,rr){if("IMG"===tr.nodeName&&tr.hasAttribute("src")){var nr=""+tr.getAttribute("src");if(0===nr.indexOf("data:image/"))return Qf(unescape(nr).split("base64,").pop());var ir=er.loadFile(nr,!0);if(void 0!==ir)return ir}if("CANVAS"===tr.nodeName){var or;switch(rr){case"PNG":or="image/png";break;case"WEBP":or="image/webp";break;case"JPEG":case"JPG":default:or="image/jpeg"}return Qf(tr.toDataURL(or,1).split("base64,").pop())}},pr=function g(er){var tr=this.internal.collections.addImage_images;if(tr)for(var rr in tr)if(er===tr[rr].alias)return tr[rr]},Ar=function m(er,tr,rr){return er||tr||(er=-96,tr=-96),er<0&&(er=-1*rr.width*72/er/this.internal.scaleFactor),tr<0&&(tr=-1*rr.height*72/tr/this.internal.scaleFactor),0===er&&(er=tr*rr.width/rr.height),0===tr&&(tr=er*rr.height/rr.width),[er,tr]},fr=function v(er,tr,rr,nr,ir,or){var ar=Ar.call(this,rr,nr,ir),sr=this.internal.getCoordinateString,cr=this.internal.getVerticalCoordinateString,ur=lr.call(this);if(rr=ar[0],nr=ar[1],ur[ir.index]=ir,or){or*=Math.PI/180;var dr=Math.cos(or),hr=Math.sin(or),pr=function d(er){return er.toFixed(4)},fr=[pr(dr),pr(hr),pr(-1*hr),pr(dr),0,0,"cm"]}this.internal.write("q"),or?(this.internal.write([1,"0","0",1,sr(er),cr(tr+nr),"cm"].join(" ")),this.internal.write(fr.join(" ")),this.internal.write([sr(rr),"0","0",sr(nr),"0","0","cm"].join(" "))):this.internal.write([sr(rr),"0","0",sr(nr),sr(er),cr(tr+nr),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+ir.index+" Do"),this.internal.write("Q")},gr=er.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};er.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var mr=er.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},_r=er.__addimage__.sHashCode=function(er){var tr,rr,nr=0;if("string"==typeof er)for(rr=er.length,tr=0;tr<rr;tr++)nr=(nr<<5)-nr+er.charCodeAt(tr),nr|=0;else if(wr(er))for(rr=er.byteLength/2,tr=0;tr<rr;tr++)nr=(nr<<5)-nr+er[tr],nr|=0;return nr},vr=er.__addimage__.validateStringAsBase64=function(er){(er=er||"").toString().trim();var tr=!0;return 0===er.length&&(tr=!1),er.length%4!=0&&(tr=!1),!1===/^[A-Za-z0-9+/]+$/.test(er.substr(0,er.length-2))&&(tr=!1),!1===/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(er.substr(-2))&&(tr=!1),tr},yr=er.__addimage__.extractImageFromDataUrl=function(er){var tr=(er=er||"").split("base64,"),rr=null;if(2===tr.length){var nr=/^data:(\w*\/\w*);*(charset=[\w=-]*)*;*$/.exec(tr[0]);Array.isArray(nr)&&(rr={mimeType:nr[1],charset:nr[2],data:tr[1]})}return rr},br=er.__addimage__.supportsArrayBuffer=function(){return"undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array};er.__addimage__.isArrayBuffer=function(er){return br()&&er instanceof ArrayBuffer};var wr=er.__addimage__.isArrayBufferView=function(er){return br()&&"undefined"!=typeof Uint32Array&&(er instanceof Int8Array||er instanceof Uint8Array||"undefined"!=typeof Uint8ClampedArray&&er instanceof Uint8ClampedArray||er instanceof Int16Array||er instanceof Uint16Array||er instanceof Int32Array||er instanceof Uint32Array||er instanceof Float32Array||er instanceof Float64Array)},Sr=er.__addimage__.binaryStringToUint8Array=function(er){for(var tr=er.length,rr=new Uint8Array(tr),nr=0;nr<tr;nr++)rr[nr]=er.charCodeAt(nr);return rr},xr=er.__addimage__.arrayBufferToBinaryString=function(er){try{return Qf(Df(String.fromCharCode.apply(null,er)))}catch(tr){if("undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.reduce)return new Uint8Array(er).reduce((function(er,tr){return er.push(String.fromCharCode(tr)),er}),[]).join("")}};er.addImage=function(){var er,rr,nr,ir,or,ar,lr,cr,ur;if("number"==typeof arguments[1]?(rr=tr,nr=arguments[1],ir=arguments[2],or=arguments[3],ar=arguments[4],lr=arguments[5],cr=arguments[6],ur=arguments[7]):(rr=arguments[1],nr=arguments[2],ir=arguments[3],or=arguments[4],ar=arguments[5],lr=arguments[6],cr=arguments[7],ur=arguments[8]),"object"==_typeof(er=arguments[0])&&!dr(er)&&"imageData"in er){var hr=er;er=hr.imageData,rr=hr.format||rr||tr,nr=hr.x||nr||0,ir=hr.y||ir||0,or=hr.w||hr.width||or,ar=hr.h||hr.height||ar,lr=hr.alias||lr,cr=hr.compression||cr,ur=hr.rotation||hr.angle||ur}var pr=this.internal.getFilters();if(void 0===cr&&-1!==pr.indexOf("FlateEncode")&&(cr="SLOW"),isNaN(nr)||isNaN(ir))throw new Error("Invalid coordinates passed to jsPDF.addImage");sr.call(this);var Ar=kr.call(this,er,rr,lr,cr);return fr.call(this,nr,ir,or,ar,Ar,ur),this};var kr=function P(rr,ir,or,ar){var sr,lr,Ar;if("string"==typeof rr&&nr(rr)===tr){rr=unescape(rr);var fr=Cr(rr,!1);(""!==fr||void 0!==(fr=er.loadFile(rr,!0)))&&(rr=fr)}if(dr(rr)&&(rr=hr(rr,ir)),ir=nr(rr,ir),!ur(ir))throw new Error("addImage does not support files of type '"+ir+"', please ensure that a plugin for '"+ir+"' support is added.");if((null==(Ar=or)||0===Ar.length)&&(or=function(er){return"string"==typeof er||wr(er)?_r(er):null}(rr)),(sr=pr.call(this,or))||(br()&&(rr instanceof Uint8Array||(lr=rr,rr=Sr(rr))),sr=this["process"+ir.toUpperCase()](rr,cr.call(this),or,function(tr){return tr&&"string"==typeof tr&&(tr=tr.toUpperCase()),tr in er.image_compression?tr:mr.NONE}(ar),lr)),!sr)throw new Error("An unknown error occurred whilst processing the image.");return sr},Cr=er.__addimage__.convertBase64ToBinaryString=function(er,tr){var rr;tr="boolean"!=typeof tr||tr;var nr,ir="";if("string"==typeof er){nr=null!==(rr=yr(er))?rr.data:er;try{ir=Qf(nr)}catch(er){if(tr)throw vr(nr)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+er.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return ir};er.getImageProperties=function(rr){var ir,or,ar="";if(dr(rr)&&(rr=hr(rr)),"string"==typeof rr&&nr(rr)===tr&&(""===(ar=Cr(rr,!1))&&(ar=er.loadFile(rr)||""),rr=ar),or=nr(rr),!ur(or))throw new Error("addImage does not support files of type '"+or+"', please ensure that a plugin for '"+or+"' support is added.");if(!br()||rr instanceof Uint8Array||(rr=Sr(rr)),!(ir=this["process"+or.toUpperCase()](rr)))throw new Error("An unknown error occurred whilst processing the image");return ir.fileType=or,ir}}(g.API),
|
||
/**
|
||
* @license
|
||
* Copyright (c) 2014 Steven Spungin (TwelveTone LLC) steven@twelvetone.tv
|
||
*
|
||
* Licensed under the MIT License.
|
||
* http://opensource.org/licenses/mit-license
|
||
*/
|
||
function(er){var tr=function e(er){if(void 0!==er&&""!=er)return!0};g.API.events.push(["addPage",function(er){this.internal.getPageInfo(er.pageNumber).pageContext.annotations=[]}]),er.events.push(["putPage",function(er){for(var rr,nr,ir,or=this.internal.getCoordinateString,ar=this.internal.getVerticalCoordinateString,sr=this.internal.getPageInfoByObjId(er.objId),lr=er.pageContext.annotations,cr=!1,ur=0;ur<lr.length&&!cr;ur++)switch((rr=lr[ur]).type){case"link":(tr(rr.options.url)||tr(rr.options.pageNumber))&&(cr=!0);break;case"reference":case"text":case"freetext":cr=!0}if(0!=cr){this.internal.write("/Annots [");for(var dr=0;dr<lr.length;dr++)switch((rr=lr[dr]).type){case"reference":this.internal.write(" "+rr.object.objId+" 0 R ");break;case"text":var hr=this.internal.newAdditionalObject(),pr=this.internal.newAdditionalObject(),Ar=rr.title||"Note";ir="<</Type /Annot /Subtype /Text "+(nr="/Rect ["+or(rr.bounds.x)+" "+ar(rr.bounds.y+rr.bounds.h)+" "+or(rr.bounds.x+rr.bounds.w)+" "+ar(rr.bounds.y)+"] ")+"/Contents ("+rr.contents+")",ir+=" /Popup "+pr.objId+" 0 R",ir+=" /P "+sr.objId+" 0 R",ir+=" /T ("+Ar+") >>",hr.content=ir;var fr=hr.objId+" 0 R";ir="<</Type /Annot /Subtype /Popup "+(nr="/Rect ["+or(rr.bounds.x+30)+" "+ar(rr.bounds.y+rr.bounds.h)+" "+or(rr.bounds.x+rr.bounds.w+30)+" "+ar(rr.bounds.y)+"] ")+" /Parent "+fr,rr.open&&(ir+=" /Open true"),ir+=" >>",pr.content=ir,this.internal.write(hr.objId,"0 R",pr.objId,"0 R");break;case"freetext":nr="/Rect ["+or(rr.bounds.x)+" "+ar(rr.bounds.y)+" "+or(rr.bounds.x+rr.bounds.w)+" "+ar(rr.bounds.y+rr.bounds.h)+"] ";var gr=rr.color||"#000000";ir="<</Type /Annot /Subtype /FreeText "+nr+"/Contents ("+rr.contents+")",ir+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+gr+")",ir+=" /Border [0 0 0]",ir+=" >>",this.internal.write(ir);break;case"link":if(rr.options.name){var mr=this.annotations._nameMap[rr.options.name];rr.options.pageNumber=mr.page,rr.options.top=mr.y}else rr.options.top||(rr.options.top=0);if(nr="/Rect ["+or(rr.x)+" "+ar(rr.y)+" "+or(rr.x+rr.w)+" "+ar(rr.y+rr.h)+"] ",ir="",rr.options.url)ir="<</Type /Annot /Subtype /Link "+nr+"/Border [0 0 0] /A <</S /URI /URI ("+rr.options.url+") >>";else if(rr.options.pageNumber)switch(ir="<</Type /Annot /Subtype /Link "+nr+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(rr.options.pageNumber).objId+" 0 R",rr.options.magFactor=rr.options.magFactor||"XYZ",rr.options.magFactor){case"Fit":ir+=" /Fit]";break;case"FitH":ir+=" /FitH "+rr.options.top+"]";break;case"FitV":rr.options.left=rr.options.left||0,ir+=" /FitV "+rr.options.left+"]";break;case"XYZ":default:var _r=ar(rr.options.top);rr.options.left=rr.options.left||0,void 0===rr.options.zoom&&(rr.options.zoom=0),ir+=" /XYZ "+rr.options.left+" "+_r+" "+rr.options.zoom+"]"}""!=ir&&(ir+=" >>",this.internal.write(ir))}this.internal.write("]")}}]),er.createAnnotation=function(er){var tr=this.internal.getCurrentPageInfo();switch(er.type){case"link":this.link(er.bounds.x,er.bounds.y,er.bounds.w,er.bounds.h,er);break;case"text":case"freetext":tr.pageContext.annotations.push(er)}},er.link=function(er,tr,rr,nr,ir){this.internal.getCurrentPageInfo().pageContext.annotations.push({x:er,y:tr,w:rr,h:nr,options:ir,type:"link"})},er.textWithLink=function(er,tr,rr,nr){var ir=this.getTextWidth(er),or=this.internal.getLineHeight()/this.internal.scaleFactor;return this.text(er,tr,rr,nr),rr+=.2*or,this.link(tr,rr-or,ir,or,nr),ir},er.getTextWidth=function(er){var tr=this.internal.getFontSize();return this.getStringUnitWidth(er)*tr/this.internal.scaleFactor}}(g.API),
|
||
/**
|
||
* @license
|
||
* Copyright (c) 2017 Aras Abbasi
|
||
*
|
||
* Licensed under the MIT License.
|
||
* http://opensource.org/licenses/mit-license
|
||
*/
|
||
function(er){var tr={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},rr={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},nr={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},ir=[1570,1571,1573,1575];er.__arabicParser__={};var or=er.__arabicParser__.isInArabicSubstitutionA=function(er){return void 0!==tr[er.charCodeAt(0)]},ar=er.__arabicParser__.isArabicLetter=function(er){return"string"==typeof er&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(er)},sr=er.__arabicParser__.isArabicEndLetter=function(er){return ar(er)&&or(er)&&tr[er.charCodeAt(0)].length<=2},lr=er.__arabicParser__.isArabicAlfLetter=function(er){return ar(er)&&ir.indexOf(er.charCodeAt(0))>=0};er.__arabicParser__.arabicLetterHasIsolatedForm=function(er){return ar(er)&&or(er)&&tr[er.charCodeAt(0)].length>=1};var cr=er.__arabicParser__.arabicLetterHasFinalForm=function(er){return ar(er)&&or(er)&&tr[er.charCodeAt(0)].length>=2};er.__arabicParser__.arabicLetterHasInitialForm=function(er){return ar(er)&&or(er)&&tr[er.charCodeAt(0)].length>=3};var ur=er.__arabicParser__.arabicLetterHasMedialForm=function(er){return ar(er)&&or(er)&&4==tr[er.charCodeAt(0)].length},dr=er.__arabicParser__.resolveLigatures=function(er){var tr=0,nr=rr,ir="",or=0;for(tr=0;tr<er.length;tr+=1)void 0!==nr[er.charCodeAt(tr)]?(or++,"number"==typeof(nr=nr[er.charCodeAt(tr)])&&(ir+=String.fromCharCode(nr),nr=rr,or=0),tr===er.length-1&&(nr=rr,ir+=er.charAt(tr-(or-1)),tr-=or-1,or=0)):(nr=rr,ir+=er.charAt(tr-or),tr-=or,or=0);return ir};er.__arabicParser__.isArabicDiacritic=function(er){return void 0!==er&&void 0!==nr[er.charCodeAt(0)]};var hr=er.__arabicParser__.getCorrectForm=function(er,tr,rr){return ar(er)?!1===or(er)?-1:!cr(er)||!ar(tr)&&!ar(rr)||!ar(rr)&&sr(tr)||sr(er)&&!ar(tr)||sr(er)&&lr(tr)||sr(er)&&sr(tr)?0:ur(er)&&ar(tr)&&!sr(tr)&&ar(rr)&&cr(rr)?3:sr(er)||!ar(rr)?1:2:-1},pr=function d(er){var rr=0,nr=0,ir=0,or="",sr="",lr="",cr=(er=er||"").split("\\s+"),ur=[];for(rr=0;rr<cr.length;rr+=1){for(ur.push(""),nr=0;nr<cr[rr].length;nr+=1)or=cr[rr][nr],sr=cr[rr][nr-1],lr=cr[rr][nr+1],ar(or)?(ir=hr(or,sr,lr),ur[rr]+=-1!==ir?String.fromCharCode(tr[or.charCodeAt(0)][ir]):or):ur[rr]+=or;ur[rr]=dr(ur[rr])}return ur.join(" ")},Ar=er.__arabicParser__.processArabic=er.processArabic=function(){var er,tr="string"==typeof arguments[0]?arguments[0]:arguments[0].text,rr=[];if(Array.isArray(tr)){var nr=0;for(rr=[],nr=0;nr<tr.length;nr+=1)Array.isArray(tr[nr])?rr.push([pr(tr[nr][0]),tr[nr][1],tr[nr][2]]):rr.push([pr(tr[nr])]);er=rr}else er=pr(tr);return"string"==typeof arguments[0]?er:(arguments[0].text=er,arguments[0])};er.events.push(["preProcessText",Ar])}(g.API),g.API.autoPrint=function(er){var tr;switch((er=er||{}).variant=er.variant||"non-conform",er.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",(function(){tr=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){this.internal.out("/OpenAction "+tr+" 0 R")}))}return this},
|
||
/**
|
||
* @license
|
||
* Copyright (c) 2014 Steven Spungin (TwelveTone LLC) steven@twelvetone.tv
|
||
*
|
||
* Licensed under the MIT License.
|
||
* http://opensource.org/licenses/mit-license
|
||
*/
|
||
function(er){var tr=function e(){var er=void 0;Object.defineProperty(this,"pdf",{get:function get(){return er},set:function set(tr){er=tr}});var e=150;Object.defineProperty(this,"width",{get:function get(){return e},set:function set(er){e=isNaN(er)||!1===Number.isInteger(er)||er<0?150:er,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=e+1)}});var tr=300;Object.defineProperty(this,"height",{get:function get(){return tr},set:function set(er){tr=isNaN(er)||!1===Number.isInteger(er)||er<0?300:er,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=tr+1)}});var rr=[];Object.defineProperty(this,"childNodes",{get:function get(){return rr},set:function set(er){rr=er}});var nr={};Object.defineProperty(this,"style",{get:function get(){return nr},set:function set(er){nr=er}}),Object.defineProperty(this,"parentNode",{})};tr.prototype.getContext=function(er,tr){var rr;if("2d"!==(er=er||"2d"))return null;for(rr in tr)this.pdf.context2d.hasOwnProperty(rr)&&(this.pdf.context2d[rr]=tr[rr]);return this.pdf.context2d._canvas=this,this.pdf.context2d},tr.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},er.events.push(["initialized",function(){this.canvas=new tr,this.canvas.pdf=this}])}(g.API),
|
||
/**
|
||
* @license
|
||
* ====================================================================
|
||
* Copyright (c) 2013 Youssef Beddad, youssef.beddad@gmail.com
|
||
* 2013 Eduardo Menezes de Morais, eduardo.morais@usp.br
|
||
* 2013 Lee Driscoll, https://github.com/lsdriscoll
|
||
* 2014 Juan Pablo Gaviria, https://github.com/juanpgaviria
|
||
* 2014 James Hall, james@parall.ax
|
||
* 2014 Diego Casorran, https://github.com/diegocr
|
||
*
|
||
* Permission is hereby granted, free of charge, to any person obtaining
|
||
* a copy of this software and associated documentation files (the
|
||
* "Software"), to deal in the Software without restriction, including
|
||
* without limitation the rights to use, copy, modify, merge, publish,
|
||
* distribute, sublicense, and/or sell copies of the Software, and to
|
||
* permit persons to whom the Software is furnished to do so, subject to
|
||
* the following conditions:
|
||
*
|
||
* The above copyright notice and this permission notice shall be
|
||
* included in all copies or substantial portions of the Software.
|
||
*
|
||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||
* ====================================================================
|
||
*/
|
||
function(er){var tr={left:0,top:0,bottom:0,right:0},rr=!1,nr=function r(){void 0===this.internal.__cell__&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},tr),this.internal.__cell__.margins.width=this.getPageWidth(),ir.call(this))},ir=function i(){this.internal.__cell__.lastCell=new or,this.internal.__cell__.pages=1},or=function a(){var er=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function get(){return er},set:function set(tr){er=tr}});var tr=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function get(){return tr},set:function set(er){tr=er}});var rr=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function get(){return rr},set:function set(er){rr=er}});var nr=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function get(){return nr},set:function set(er){nr=er}});var ir=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function get(){return ir},set:function set(er){ir=er}});var a=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function get(){return a},set:function set(er){a=er}});var or=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function get(){return or},set:function set(er){or=er}}),this};or.prototype.clone=function(){return new or(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},or.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},er.setHeaderFunction=function(er){return nr.call(this),this.internal.__cell__.headerFunction="function"==typeof er?er:void 0,this},er.getTextDimensions=function(er,tr){nr.call(this);var rr=(tr=tr||{}).fontSize||this.getFontSize(),ir=tr.font||this.getFont(),or=tr.scaleFactor||this.internal.scaleFactor,ar=0,sr=0,lr=0;if(!Array.isArray(er)&&"string"!=typeof er){if("number"!=typeof er)throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");er=String(er)}var cr=tr.maxWidth;cr>0?"string"==typeof er?er=this.splitTextToSize(er,cr):"[object Array]"===Object.prototype.toString.call(er)&&(er=this.splitTextToSize(er.join(" "),cr)):er=Array.isArray(er)?er:[er];for(var ur=0;ur<er.length;ur++)ar<(lr=this.getStringUnitWidth(er[ur],{font:ir})*rr)&&(ar=lr);return 0!==ar&&(sr=er.length),{w:ar/=or,h:Math.max((sr*rr*this.getLineHeightFactor()-rr*(this.getLineHeightFactor()-1))/or,0)}},er.cellAddPage=function(){nr.call(this),this.addPage();var er=this.internal.__cell__.margins||tr;return this.internal.__cell__.lastCell=new or(er.left,er.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var ar=er.cell=function(){var er;er=arguments[0]instanceof or?arguments[0]:new or(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),nr.call(this);var ir=this.internal.__cell__.lastCell,ar=this.internal.__cell__.padding,sr=this.internal.__cell__.margins||tr,lr=this.internal.__cell__.tableHeaderRow,cr=this.internal.__cell__.printHeaders;return void 0!==ir.lineNumber&&(ir.lineNumber===er.lineNumber?(er.x=(ir.x||0)+(ir.width||0),er.y=ir.y||0):ir.y+ir.height+er.height+sr.bottom>this.getPageHeight()?(this.cellAddPage(),er.y=sr.top,cr&&lr&&(this.printHeaderRow(er.lineNumber,!0),er.y+=lr[0].height)):er.y=ir.y+ir.height||er.y),void 0!==er.text[0]&&(this.rect(er.x,er.y,er.width,er.height,!0===rr?"FD":void 0),"right"===er.align?this.text(er.text,er.x+er.width-ar,er.y+ar,{align:"right",baseline:"top"}):"center"===er.align?this.text(er.text,er.x+er.width/2,er.y+ar,{align:"center",baseline:"top",maxWidth:er.width-ar-ar}):this.text(er.text,er.x+ar,er.y+ar,{align:"left",baseline:"top",maxWidth:er.width-ar-ar})),this.internal.__cell__.lastCell=er,this};er.table=function(er,rr,lr,cr,ur){if(nr.call(this),!lr)throw new Error("No data for PDF table.");var dr,hr,pr,Ar,fr=[],gr=[],mr=[],_r={},vr={},yr=[],br=[],wr=(ur=ur||{}).autoSize||!1,Sr=!1!==ur.printHeaders,xr=ur.css&&void 0!==ur.css["font-size"]?16*ur.css["font-size"]:ur.fontSize||12,kr=ur.margins||Object.assign({width:this.getPageWidth()},tr),Cr="number"==typeof ur.padding?ur.padding:3,Br=ur.headerBackgroundColor||"#c8c8c8";if(ir.call(this),this.internal.__cell__.printHeaders=Sr,this.internal.__cell__.margins=kr,this.internal.__cell__.table_font_size=xr,this.internal.__cell__.padding=Cr,this.internal.__cell__.headerBackgroundColor=Br,this.setFontSize(xr),null==cr)gr=fr=Object.keys(lr[0]),mr=fr.map((function(){return"left"}));else if(Array.isArray(cr)&&"object"==_typeof(cr[0]))for(fr=cr.map((function(er){return er.name})),gr=cr.map((function(er){return er.prompt||er.name||""})),mr=fr.map((function(er){return er.align||"left"})),dr=0;dr<cr.length;dr+=1)vr[cr[dr].name]=cr[dr].width*(19.049976/25.4);else Array.isArray(cr)&&"string"==typeof cr[0]&&(gr=fr=cr,mr=fr.map((function(){return"left"})));if(wr)for(dr=0;dr<fr.length;dr+=1){for(_r[Ar=fr[dr]]=lr.map((function(er){return er[Ar]})),this.setFont(void 0,"bold"),yr.push(this.getTextDimensions(gr[dr],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),hr=_r[Ar],this.setFont(void 0,"normal"),pr=0;pr<hr.length;pr+=1)yr.push(this.getTextDimensions(hr[pr],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);vr[Ar]=Math.max.apply(null,yr)+Cr+Cr,yr=[]}if(Sr){var Er={};for(dr=0;dr<fr.length;dr+=1)Er[fr[dr]]={},Er[fr[dr]].text=gr[dr],Er[fr[dr]].align=mr[dr];var Nr=sr.call(this,Er,vr);br=fr.map((function(tr){return new or(er,rr,vr[tr],Nr,Er[tr].text,void 0,Er[tr].align)})),this.setTableHeaderRow(br),this.printHeaderRow(1,!1)}var Lr=cr.reduce((function(er,tr){return er[tr.name]=tr.align,er}),{});for(dr=0;dr<lr.length;dr+=1){var Tr=sr.call(this,lr[dr],vr);for(pr=0;pr<fr.length;pr+=1)ar.call(this,new or(er,rr,vr[fr[pr]],Tr,lr[dr][fr[pr]],dr+2,Lr[fr[pr]]))}return this.internal.__cell__.table_x=er,this.internal.__cell__.table_y=rr,this};var sr=function s(er,tr){var rr=this.internal.__cell__.padding,nr=this.internal.__cell__.table_font_size,ir=this.internal.scaleFactor;return Object.keys(er).map((function(tr){return[tr,er[tr]]})).map((function(er){var tr=er[0],rr=er[1];return"object"==_typeof(rr)?[tr,rr.text]:[tr,rr]})).map((function(er){var nr=er[0],ir=er[1];return this.splitTextToSize(ir,tr[nr]-rr-rr)}),this).map((function(er){return this.getLineHeightFactor()*er.length*nr/ir+rr+rr}),this).reduce((function(er,tr){return Math.max(er,tr)}),0)};er.setTableHeaderRow=function(er){nr.call(this),this.internal.__cell__.tableHeaderRow=er},er.printHeaderRow=function(er,tr){if(nr.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var ir;if(rr=!0,"function"==typeof this.internal.__cell__.headerFunction){var sr=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new or(sr[0],sr[1],sr[2],sr[3],void 0,-1)}this.setFont(void 0,"bold");for(var lr=[],cr=0;cr<this.internal.__cell__.tableHeaderRow.length;cr+=1)ir=this.internal.__cell__.tableHeaderRow[cr].clone(),tr&&(ir.y=this.internal.__cell__.margins.top||0,lr.push(ir)),ir.lineNumber=er,this.setFillColor(this.internal.__cell__.headerBackgroundColor),ar.call(this,ir);lr.length>0&&this.setTableHeaderRow(lr),this.setFont(void 0,"normal"),rr=!1}}(g.API),function(er){var tr,rr,nr,ir,or,ar,sr,lr,cr,ur=function f(er){return er=er||{},this.isStrokeTransparent=er.isStrokeTransparent||!1,this.strokeOpacity=er.strokeOpacity||1,this.strokeStyle=er.strokeStyle||"#000000",this.fillStyle=er.fillStyle||"#000000",this.isFillTransparent=er.isFillTransparent||!1,this.fillOpacity=er.fillOpacity||1,this.font=er.font||"10px sans-serif",this.textBaseline=er.textBaseline||"alphabetic",this.textAlign=er.textAlign||"left",this.lineWidth=er.lineWidth||1,this.lineJoin=er.lineJoin||"miter",this.lineCap=er.lineCap||"butt",this.path=er.path||[],this.transform=void 0!==er.transform?er.transform.clone():new lr,this.globalCompositeOperation=er.globalCompositeOperation||"normal",this.globalAlpha=er.globalAlpha||1,this.clip_path=er.clip_path||[],this.currentPoint=er.currentPoint||new ar,this.miterLimit=er.miterLimit||10,this.lastPoint=er.lastPoint||new ar,this.ignoreClearRect="boolean"!=typeof er.ignoreClearRect||er.ignoreClearRect,this};er.events.push(["initialized",function(){this.context2d=new dr(this),tr=this.internal.f2,rr=this.internal.getCoordinateString,nr=this.internal.getVerticalCoordinateString,ir=this.internal.getHorizontalCoordinate,or=this.internal.getVerticalCoordinate,ar=this.internal.Point,sr=this.internal.Rectangle,lr=this.internal.Matrix,cr=new ur}]);var dr=function d(er){Object.defineProperty(this,"canvas",{get:function get(){return{parentNode:!1,style:!1}}});var tr=er;Object.defineProperty(this,"pdf",{get:function get(){return tr}});var rr=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function get(){return rr},set:function set(er){rr=Boolean(er)}});var nr=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function get(){return nr},set:function set(er){nr=Boolean(er)}});var ir=0;Object.defineProperty(this,"posX",{get:function get(){return ir},set:function set(er){isNaN(er)||(ir=er)}});var or=0;Object.defineProperty(this,"posY",{get:function get(){return or},set:function set(er){isNaN(er)||(or=er)}});var ar=!1;Object.defineProperty(this,"autoPaging",{get:function get(){return ar},set:function set(er){ar=Boolean(er)}});var sr=0;Object.defineProperty(this,"lastBreak",{get:function get(){return sr},set:function set(er){sr=er}});var lr=[];Object.defineProperty(this,"pageBreaks",{get:function get(){return lr},set:function set(er){lr=er}}),Object.defineProperty(this,"ctx",{get:function get(){return cr},set:function set(er){er instanceof ur&&(cr=er)}}),Object.defineProperty(this,"path",{get:function get(){return cr.path},set:function set(er){cr.path=er}});var dr=[];Object.defineProperty(this,"ctxStack",{get:function get(){return dr},set:function set(er){dr=er}}),Object.defineProperty(this,"fillStyle",{get:function get(){return this.ctx.fillStyle},set:function set(er){var tr;tr=hr(er),this.ctx.fillStyle=tr.style,this.ctx.isFillTransparent=0===tr.a,this.ctx.fillOpacity=tr.a,this.pdf.setFillColor(tr.r,tr.g,tr.b,{a:tr.a}),this.pdf.setTextColor(tr.r,tr.g,tr.b,{a:tr.a})}}),Object.defineProperty(this,"strokeStyle",{get:function get(){return this.ctx.strokeStyle},set:function set(er){var tr=hr(er);this.ctx.strokeStyle=tr.style,this.ctx.isStrokeTransparent=0===tr.a,this.ctx.strokeOpacity=tr.a,0===tr.a?this.pdf.setDrawColor(255,255,255):(tr.a,this.pdf.setDrawColor(tr.r,tr.g,tr.b))}}),Object.defineProperty(this,"lineCap",{get:function get(){return this.ctx.lineCap},set:function set(er){-1!==["butt","round","square"].indexOf(er)&&(this.ctx.lineCap=er,this.pdf.setLineCap(er))}}),Object.defineProperty(this,"lineWidth",{get:function get(){return this.ctx.lineWidth},set:function set(er){isNaN(er)||(this.ctx.lineWidth=er,this.pdf.setLineWidth(er))}}),Object.defineProperty(this,"lineJoin",{get:function get(){return this.ctx.lineJoin},set:function set(er){-1!==["bevel","round","miter"].indexOf(er)&&(this.ctx.lineJoin=er,this.pdf.setLineJoin(er))}}),Object.defineProperty(this,"miterLimit",{get:function get(){return this.ctx.miterLimit},set:function set(er){isNaN(er)||(this.ctx.miterLimit=er,this.pdf.setMiterLimit(er))}}),Object.defineProperty(this,"textBaseline",{get:function get(){return this.ctx.textBaseline},set:function set(er){this.ctx.textBaseline=er}}),Object.defineProperty(this,"textAlign",{get:function get(){return this.ctx.textAlign},set:function set(er){-1!==["right","end","center","left","start"].indexOf(er)&&(this.ctx.textAlign=er)}}),Object.defineProperty(this,"font",{get:function get(){return this.ctx.font},set:function set(er){var tr;if(this.ctx.font=er,null!==(tr=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(er))){var rr=tr[1],nr=(tr[2],tr[3]),ir=tr[4],or=(tr[5],tr[6]),ar=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(ir)[2];ir="px"===ar?Math.floor(parseFloat(ir)*this.pdf.internal.scaleFactor):"em"===ar?Math.floor(parseFloat(ir)*this.pdf.getFontSize()):Math.floor(parseFloat(ir)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(ir);var sr="";("bold"===nr||parseInt(nr,10)>=700||"bold"===rr)&&(sr="bold"),"italic"===rr&&(sr+="italic"),0===sr.length&&(sr="normal");for(var lr="",cr=or.replace(/"|'/g,"").split(/\s*,\s*/),ur={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},dr=0;dr<cr.length;dr++){if(void 0!==this.pdf.internal.getFont(cr[dr],sr,{noFallback:!0,disableWarning:!0})){lr=cr[dr];break}if("bolditalic"===sr&&void 0!==this.pdf.internal.getFont(cr[dr],"bold",{noFallback:!0,disableWarning:!0}))lr=cr[dr],sr="bold";else if(void 0!==this.pdf.internal.getFont(cr[dr],"normal",{noFallback:!0,disableWarning:!0})){lr=cr[dr],sr="normal";break}}if(""===lr)for(var hr=0;hr<cr.length;hr++)if(ur[cr[hr]]){lr=ur[cr[hr]];break}lr=""===lr?"Times":lr,this.pdf.setFont(lr,sr)}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function get(){return this.ctx.globalCompositeOperation},set:function set(er){this.ctx.globalCompositeOperation=er}}),Object.defineProperty(this,"globalAlpha",{get:function get(){return this.ctx.globalAlpha},set:function set(er){this.ctx.globalAlpha=er}}),Object.defineProperty(this,"ignoreClearRect",{get:function get(){return this.ctx.ignoreClearRect},set:function set(er){this.ctx.ignoreClearRect=Boolean(er)}})};dr.prototype.fill=function(){vr.call(this,"fill",!1)},dr.prototype.stroke=function(){vr.call(this,"stroke",!1)},dr.prototype.beginPath=function(){this.path=[{type:"begin"}]},dr.prototype.moveTo=function(er,tr){if(isNaN(er)||isNaN(tr))throw Of.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var rr=this.ctx.transform.applyToPoint(new ar(er,tr));this.path.push({type:"mt",x:rr.x,y:rr.y}),this.ctx.lastPoint=new ar(er,tr)},dr.prototype.closePath=function(){var er=new ar(0,0),tr=0;for(tr=this.path.length-1;-1!==tr;tr--)if("begin"===this.path[tr].type&&"object"==_typeof(this.path[tr+1])&&"number"==typeof this.path[tr+1].x){er=new ar(this.path[tr+1].x,this.path[tr+1].y),this.path.push({type:"lt",x:er.x,y:er.y});break}"object"==_typeof(this.path[tr+2])&&"number"==typeof this.path[tr+2].x&&this.path.push(JSON.parse(JSON.stringify(this.path[tr+2]))),this.path.push({type:"close"}),this.ctx.lastPoint=new ar(er.x,er.y)},dr.prototype.lineTo=function(er,tr){if(isNaN(er)||isNaN(tr))throw Of.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var rr=this.ctx.transform.applyToPoint(new ar(er,tr));this.path.push({type:"lt",x:rr.x,y:rr.y}),this.ctx.lastPoint=new ar(rr.x,rr.y)},dr.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),vr.call(this,null,!0)},dr.prototype.quadraticCurveTo=function(er,tr,rr,nr){if(isNaN(rr)||isNaN(nr)||isNaN(er)||isNaN(tr))throw Of.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var ir=this.ctx.transform.applyToPoint(new ar(rr,nr)),or=this.ctx.transform.applyToPoint(new ar(er,tr));this.path.push({type:"qct",x1:or.x,y1:or.y,x:ir.x,y:ir.y}),this.ctx.lastPoint=new ar(ir.x,ir.y)},dr.prototype.bezierCurveTo=function(er,tr,rr,nr,ir,or){if(isNaN(ir)||isNaN(or)||isNaN(er)||isNaN(tr)||isNaN(rr)||isNaN(nr))throw Of.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var sr=this.ctx.transform.applyToPoint(new ar(ir,or)),lr=this.ctx.transform.applyToPoint(new ar(er,tr)),cr=this.ctx.transform.applyToPoint(new ar(rr,nr));this.path.push({type:"bct",x1:lr.x,y1:lr.y,x2:cr.x,y2:cr.y,x:sr.x,y:sr.y}),this.ctx.lastPoint=new ar(sr.x,sr.y)},dr.prototype.arc=function(er,tr,rr,nr,ir,or){if(isNaN(er)||isNaN(tr)||isNaN(rr)||isNaN(nr)||isNaN(ir))throw Of.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(or=Boolean(or),!this.ctx.transform.isIdentity){var sr=this.ctx.transform.applyToPoint(new ar(er,tr));er=sr.x,tr=sr.y;var lr=this.ctx.transform.applyToPoint(new ar(0,rr)),cr=this.ctx.transform.applyToPoint(new ar(0,0));rr=Math.sqrt(Math.pow(lr.x-cr.x,2)+Math.pow(lr.y-cr.y,2))}Math.abs(ir-nr)>=2*Math.PI&&(nr=0,ir=2*Math.PI),this.path.push({type:"arc",x:er,y:tr,radius:rr,startAngle:nr,endAngle:ir,counterclockwise:or})},dr.prototype.arcTo=function(er,tr,rr,nr,ir){throw new Error("arcTo not implemented.")},dr.prototype.rect=function(er,tr,rr,nr){if(isNaN(er)||isNaN(tr)||isNaN(rr)||isNaN(nr))throw Of.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(er,tr),this.lineTo(er+rr,tr),this.lineTo(er+rr,tr+nr),this.lineTo(er,tr+nr),this.lineTo(er,tr),this.lineTo(er+rr,tr),this.lineTo(er,tr)},dr.prototype.fillRect=function(er,tr,rr,nr){if(isNaN(er)||isNaN(tr)||isNaN(rr)||isNaN(nr))throw Of.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!pr.call(this)){var ir={};"butt"!==this.lineCap&&(ir.lineCap=this.lineCap,this.lineCap="butt"),"miter"!==this.lineJoin&&(ir.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(er,tr,rr,nr),this.fill(),ir.hasOwnProperty("lineCap")&&(this.lineCap=ir.lineCap),ir.hasOwnProperty("lineJoin")&&(this.lineJoin=ir.lineJoin)}},dr.prototype.strokeRect=function(er,tr,rr,nr){if(isNaN(er)||isNaN(tr)||isNaN(rr)||isNaN(nr))throw Of.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");Ar.call(this)||(this.beginPath(),this.rect(er,tr,rr,nr),this.stroke())},dr.prototype.clearRect=function(er,tr,rr,nr){if(isNaN(er)||isNaN(tr)||isNaN(rr)||isNaN(nr))throw Of.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(er,tr,rr,nr))},dr.prototype.save=function(er){er="boolean"!=typeof er||er;for(var tr=this.pdf.internal.getCurrentPageInfo().pageNumber,rr=0;rr<this.pdf.internal.getNumberOfPages();rr++)this.pdf.setPage(rr+1),this.pdf.internal.out("q");if(this.pdf.setPage(tr),er){this.ctx.fontSize=this.pdf.internal.getFontSize();var nr=new ur(this.ctx);this.ctxStack.push(this.ctx),this.ctx=nr}},dr.prototype.restore=function(er){er="boolean"!=typeof er||er;for(var tr=this.pdf.internal.getCurrentPageInfo().pageNumber,rr=0;rr<this.pdf.internal.getNumberOfPages();rr++)this.pdf.setPage(rr+1),this.pdf.internal.out("Q");this.pdf.setPage(tr),er&&0!==this.ctxStack.length&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin)},dr.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var hr=function p(er){var tr,rr,nr,ir;if(!0===er.isCanvasGradient&&(er=er.getColor()),!er)return{r:0,g:0,b:0,a:0,style:er};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(er))tr=0,rr=0,nr=0,ir=0;else{var or=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(er);if(null!==or)tr=parseInt(or[1]),rr=parseInt(or[2]),nr=parseInt(or[3]),ir=1;else if(null!==(or=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(er)))tr=parseInt(or[1]),rr=parseInt(or[2]),nr=parseInt(or[3]),ir=parseFloat(or[4]);else{if(ir=1,"string"==typeof er&&"#"!==er.charAt(0)){var ar=new c(er);er=ar.ok?ar.toHex():"#000000"}4===er.length?(tr=er.substring(1,2),tr+=tr,rr=er.substring(2,3),rr+=rr,nr=er.substring(3,4),nr+=nr):(tr=er.substring(1,3),rr=er.substring(3,5),nr=er.substring(5,7)),tr=parseInt(tr,16),rr=parseInt(rr,16),nr=parseInt(nr,16)}}return{r:tr,g:rr,b:nr,a:ir,style:er}},pr=function g(){return this.ctx.isFillTransparent||0==this.globalAlpha},Ar=function m(){return Boolean(this.ctx.isStrokeTransparent||0==this.globalAlpha)};dr.prototype.fillText=function(er,tr,rr,nr){if(isNaN(tr)||isNaN(rr)||"string"!=typeof er)throw Of.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(nr=isNaN(nr)?void 0:nr,!pr.call(this)){rr=br.call(this,rr);var ir=Pr(this.ctx.transform.rotation),or=this.ctx.transform.scaleX;Cr.call(this,{text:er,x:tr,y:rr,scale:or,angle:ir,align:this.textAlign,maxWidth:nr})}},dr.prototype.strokeText=function(er,tr,rr,nr){if(isNaN(tr)||isNaN(rr)||"string"!=typeof er)throw Of.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!Ar.call(this)){nr=isNaN(nr)?void 0:nr,rr=br.call(this,rr);var ir=Pr(this.ctx.transform.rotation),or=this.ctx.transform.scaleX;Cr.call(this,{text:er,x:tr,y:rr,scale:or,renderingMode:"stroke",angle:ir,align:this.textAlign,maxWidth:nr})}},dr.prototype.measureText=function(er){if("string"!=typeof er)throw Of.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var tr=this.pdf,rr=this.pdf.internal.scaleFactor,nr=tr.internal.getFontSize(),ir=tr.getStringUnitWidth(er)*nr/tr.internal.scaleFactor,or=function o(er){var tr=(er=er||{}).width||0;return Object.defineProperty(this,"width",{get:function get(){return tr}}),this};return new or({width:ir*=Math.round(96*rr/72*1e4)/1e4})},dr.prototype.scale=function(er,tr){if(isNaN(er)||isNaN(tr))throw Of.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var rr=new lr(er,0,0,tr,0,0);this.ctx.transform=this.ctx.transform.multiply(rr)},dr.prototype.rotate=function(er){if(isNaN(er))throw Of.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var tr=new lr(Math.cos(er),Math.sin(er),-Math.sin(er),Math.cos(er),0,0);this.ctx.transform=this.ctx.transform.multiply(tr)},dr.prototype.translate=function(er,tr){if(isNaN(er)||isNaN(tr))throw Of.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var rr=new lr(1,0,0,1,er,tr);this.ctx.transform=this.ctx.transform.multiply(rr)},dr.prototype.transform=function(er,tr,rr,nr,ir,or){if(isNaN(er)||isNaN(tr)||isNaN(rr)||isNaN(nr)||isNaN(ir)||isNaN(or))throw Of.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var ar=new lr(er,tr,rr,nr,ir,or);this.ctx.transform=this.ctx.transform.multiply(ar)},dr.prototype.setTransform=function(er,tr,rr,nr,ir,or){er=isNaN(er)?1:er,tr=isNaN(tr)?0:tr,rr=isNaN(rr)?0:rr,nr=isNaN(nr)?1:nr,ir=isNaN(ir)?0:ir,or=isNaN(or)?0:or,this.ctx.transform=new lr(er,tr,rr,nr,ir,or)},dr.prototype.drawImage=function(er,tr,rr,nr,ir,or,ar,cr,ur){var dr=this.pdf.getImageProperties(er),hr=1,pr=1,Ar=1,gr=1;void 0!==nr&&void 0!==cr&&(Ar=cr/nr,gr=ur/ir,hr=dr.width/nr*cr/nr,pr=dr.height/ir*ur/ir),void 0===or&&(or=tr,ar=rr,tr=0,rr=0),void 0!==nr&&void 0===cr&&(cr=nr,ur=ir),void 0===nr&&void 0===cr&&(cr=dr.width,ur=dr.height);for(var vr,br=this.ctx.transform.decompose(),wr=Pr(br.rotate.shx),Sr=new lr,xr=(Sr=(Sr=(Sr=Sr.multiply(br.translate)).multiply(br.skew)).multiply(br.scale)).applyToRectangle(new sr(or-tr*Ar,ar-rr*gr,nr*hr,ir*pr)),kr=fr.call(this,xr),Cr=[],Br=0;Br<kr.length;Br+=1)-1===Cr.indexOf(kr[Br])&&Cr.push(kr[Br]);if(_r(Cr),this.autoPaging)for(var Er=Cr[0],Nr=Cr[Cr.length-1],Lr=Er;Lr<Nr+1;Lr++){if(this.pdf.setPage(Lr),0!==this.ctx.clip_path.length){var Tr=this.path;vr=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=mr(vr,this.posX,-1*this.pdf.internal.pageSize.height*(Lr-1)+this.posY),yr.call(this,"fill",!0),this.path=Tr}var Fr=JSON.parse(JSON.stringify(xr));Fr=mr([Fr],this.posX,-1*this.pdf.internal.pageSize.height*(Lr-1)+this.posY)[0],this.pdf.addImage(er,"JPEG",Fr.x,Fr.y,Fr.w,Fr.h,null,null,wr)}else this.pdf.addImage(er,"JPEG",xr.x,xr.y,xr.w,xr.h,null,null,wr)};var fr=function v(er,tr,rr){var nr=[];switch(tr=tr||this.pdf.internal.pageSize.width,rr=rr||this.pdf.internal.pageSize.height,er.type){default:case"mt":case"lt":nr.push(Math.floor((er.y+this.posY)/rr)+1);break;case"arc":nr.push(Math.floor((er.y+this.posY-er.radius)/rr)+1),nr.push(Math.floor((er.y+this.posY+er.radius)/rr)+1);break;case"qct":var ir=Fr(this.ctx.lastPoint.x,this.ctx.lastPoint.y,er.x1,er.y1,er.x,er.y);nr.push(Math.floor(ir.y/rr)+1),nr.push(Math.floor((ir.y+ir.h)/rr)+1);break;case"bct":var or=Ur(this.ctx.lastPoint.x,this.ctx.lastPoint.y,er.x1,er.y1,er.x2,er.y2,er.x,er.y);nr.push(Math.floor(or.y/rr)+1),nr.push(Math.floor((or.y+or.h)/rr)+1);break;case"rect":nr.push(Math.floor((er.y+this.posY)/rr)+1),nr.push(Math.floor((er.y+er.h+this.posY)/rr)+1)}for(var ar=0;ar<nr.length;ar+=1)for(;this.pdf.internal.getNumberOfPages()<nr[ar];)gr.call(this);return nr},gr=function b(){var er=this.fillStyle,tr=this.strokeStyle,rr=this.font,nr=this.lineCap,ir=this.lineWidth,or=this.lineJoin;this.pdf.addPage(),this.fillStyle=er,this.strokeStyle=tr,this.font=rr,this.lineCap=nr,this.lineWidth=ir,this.lineJoin=or},mr=function y(er,tr,rr){for(var nr=0;nr<er.length;nr++)switch(er[nr].type){case"bct":er[nr].x2+=tr,er[nr].y2+=rr;case"qct":er[nr].x1+=tr,er[nr].y1+=rr;case"mt":case"lt":case"arc":default:er[nr].x+=tr,er[nr].y+=rr}return er},_r=function w(er){return er.sort((function(er,tr){return er-tr}))},vr=function N(er,tr){for(var rr,nr,ir=this.fillStyle,or=this.strokeStyle,ar=this.lineCap,sr=this.lineWidth,lr=sr*this.ctx.transform.scaleX,cr=this.lineJoin,ur=JSON.parse(JSON.stringify(this.path)),dr=JSON.parse(JSON.stringify(this.path)),hr=[],pr=0;pr<dr.length;pr++)if(void 0!==dr[pr].x)for(var Ar=fr.call(this,dr[pr]),vr=0;vr<Ar.length;vr+=1)-1===hr.indexOf(Ar[vr])&&hr.push(Ar[vr]);for(var br=0;br<hr.length;br++)for(;this.pdf.internal.getNumberOfPages()<hr[br];)gr.call(this);if(_r(hr),this.autoPaging)for(var N=hr[0],wr=hr[hr.length-1],Sr=N;Sr<wr+1;Sr++){if(this.pdf.setPage(Sr),this.fillStyle=ir,this.strokeStyle=or,this.lineCap=ar,this.lineWidth=lr,this.lineJoin=cr,0!==this.ctx.clip_path.length){var xr=this.path;rr=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=mr(rr,this.posX,-1*this.pdf.internal.pageSize.height*(Sr-1)+this.posY),yr.call(this,er,!0),this.path=xr}nr=JSON.parse(JSON.stringify(ur)),this.path=mr(nr,this.posX,-1*this.pdf.internal.pageSize.height*(Sr-1)+this.posY),!1!==tr&&0!==Sr||yr.call(this,er,tr),this.lineWidth=sr}else this.lineWidth=lr,yr.call(this,er,tr),this.lineWidth=sr;this.path=ur},yr=function L(er,tr){if(("stroke"!==er||tr||!Ar.call(this))&&("stroke"===er||tr||!pr.call(this))){for(var rr,nr,ir=[],or=this.path,ar=0;ar<or.length;ar++){var sr=or[ar];switch(sr.type){case"begin":ir.push({begin:!0});break;case"close":ir.push({close:!0});break;case"mt":ir.push({start:sr,deltas:[],abs:[]});break;case"lt":var lr=ir.length;if(!isNaN(or[ar-1].x)&&(rr=[sr.x-or[ar-1].x,sr.y-or[ar-1].y],lr>0))for(;lr>=0;lr--)if(!0!==ir[lr-1].close&&!0!==ir[lr-1].begin){ir[lr-1].deltas.push(rr),ir[lr-1].abs.push(sr);break}break;case"bct":rr=[sr.x1-or[ar-1].x,sr.y1-or[ar-1].y,sr.x2-or[ar-1].x,sr.y2-or[ar-1].y,sr.x-or[ar-1].x,sr.y-or[ar-1].y],ir[ir.length-1].deltas.push(rr);break;case"qct":var cr=or[ar-1].x+2/3*(sr.x1-or[ar-1].x),ur=or[ar-1].y+2/3*(sr.y1-or[ar-1].y),dr=sr.x+2/3*(sr.x1-sr.x),hr=sr.y+2/3*(sr.y1-sr.y),fr=sr.x,gr=sr.y;rr=[cr-or[ar-1].x,ur-or[ar-1].y,dr-or[ar-1].x,hr-or[ar-1].y,fr-or[ar-1].x,gr-or[ar-1].y],ir[ir.length-1].deltas.push(rr);break;case"arc":ir.push({deltas:[],abs:[],arc:!0}),Array.isArray(ir[ir.length-1].abs)&&ir[ir.length-1].abs.push(sr)}}nr=tr?null:"stroke"===er?"stroke":"fill";for(var mr=0;mr<ir.length;mr++){if(ir[mr].arc){for(var _r=ir[mr].abs,vr=0;vr<_r.length;vr++){var yr=_r[vr];"arc"===yr.type?wr.call(this,yr.x,yr.y,yr.radius,yr.startAngle,yr.endAngle,yr.counterclockwise,void 0,tr):Br.call(this,yr.x,yr.y)}Sr.call(this,nr),this.pdf.internal.out("h")}if(!ir[mr].arc&&!0!==ir[mr].close&&!0!==ir[mr].begin){var br=ir[mr].start.x,L=ir[mr].start.y;Er.call(this,ir[mr].deltas,br,L)}}nr&&Sr.call(this,nr),tr&&xr.call(this)}},br=function x(er){var tr=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,rr=tr*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return er-rr;case"top":return er+tr-rr;case"hanging":return er+tr-2*rr;case"middle":return er+tr/2-rr;case"ideographic":return er;case"alphabetic":default:return er}};dr.prototype.createLinearGradient=function(){var er=function t(){};return er.colorStops=[],er.addColorStop=function(er,tr){this.colorStops.push([er,tr])},er.getColor=function(){return 0===this.colorStops.length?"#000000":this.colorStops[0][1]},er.isCanvasGradient=!0,er},dr.prototype.createPattern=function(){return this.createLinearGradient()},dr.prototype.createRadialGradient=function(){return this.createLinearGradient()};var wr=function A(er,tr,rr,nr,ir,or,ar,sr){for(var lr=Lr.call(this,rr,nr,ir,or),cr=0;cr<lr.length;cr++){var ur=lr[cr];0===cr&&kr.call(this,ur.x1+er,ur.y1+tr),Nr.call(this,er,tr,ur.x2,ur.y2,ur.x3,ur.y3,ur.x4,ur.y4)}sr?xr.call(this):Sr.call(this,ar)},Sr=function _(er){switch(er){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},xr=function S(){this.pdf.clip(),this.pdf.discardPath()},kr=function P(er,tr){this.pdf.internal.out(rr(er)+" "+nr(tr)+" m")},Cr=function k(er){var tr;switch(er.align){case"right":case"end":tr="right";break;case"center":tr="center";break;case"left":case"start":default:tr="left"}var rr=this.ctx.transform.applyToPoint(new ar(er.x,er.y)),nr=this.ctx.transform.decompose(),ir=new lr;ir=(ir=(ir=ir.multiply(nr.translate)).multiply(nr.skew)).multiply(nr.scale);for(var or,cr,ur,dr=this.pdf.getTextDimensions(er.text),hr=this.ctx.transform.applyToRectangle(new sr(er.x,er.y,dr.w,dr.h)),pr=ir.applyToRectangle(new sr(er.x,er.y-dr.h,dr.w,dr.h)),Ar=fr.call(this,pr),gr=[],vr=0;vr<Ar.length;vr+=1)-1===gr.indexOf(Ar[vr])&&gr.push(Ar[vr]);if(_r(gr),!0===this.autoPaging)for(var br=gr[0],wr=gr[gr.length-1],Sr=br;Sr<wr+1;Sr++){if(this.pdf.setPage(Sr),0!==this.ctx.clip_path.length){var xr=this.path;or=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=mr(or,this.posX,-1*this.pdf.internal.pageSize.height*(Sr-1)+this.posY),yr.call(this,"fill",!0),this.path=xr}var kr=JSON.parse(JSON.stringify(hr));kr=mr([kr],this.posX,-1*this.pdf.internal.pageSize.height*(Sr-1)+this.posY)[0],er.scale>=.01&&(cr=this.pdf.internal.getFontSize(),this.pdf.setFontSize(cr*er.scale),ur=this.lineWidth,this.lineWidth=ur*er.scale),this.pdf.text(er.text,kr.x,kr.y,{angle:er.angle,align:tr,renderingMode:er.renderingMode,maxWidth:er.maxWidth}),er.scale>=.01&&(this.pdf.setFontSize(cr),this.lineWidth=ur)}else er.scale>=.01&&(cr=this.pdf.internal.getFontSize(),this.pdf.setFontSize(cr*er.scale),ur=this.lineWidth,this.lineWidth=ur*er.scale),this.pdf.text(er.text,rr.x+this.posX,rr.y+this.posY,{angle:er.angle,align:tr,renderingMode:er.renderingMode,maxWidth:er.maxWidth}),er.scale>=.01&&(this.pdf.setFontSize(cr),this.lineWidth=ur)},Br=function F(er,tr,ir,or){ir=ir||0,or=or||0,this.pdf.internal.out(rr(er+ir)+" "+nr(tr+or)+" l")},Er=function I(er,tr,rr){return this.pdf.lines(er,tr,rr,null,null)},Nr=function C(er,rr,nr,ar,sr,lr,cr,ur){this.pdf.internal.out([tr(ir(nr+er)),tr(or(ar+rr)),tr(ir(sr+er)),tr(or(lr+rr)),tr(ir(cr+er)),tr(or(ur+rr)),"c"].join(" "))},Lr=function j(er,tr,rr,nr){for(var ir=2*Math.PI,or=Math.PI/2;tr>rr;)tr-=ir;var ar=Math.abs(rr-tr);ar<ir&&nr&&(ar=ir-ar);for(var sr=[],lr=nr?-1:1,cr=tr;ar>1e-5;){var ur=cr+lr*Math.min(ar,or);sr.push(Tr.call(this,er,cr,ur)),ar-=Math.abs(ur-cr),cr=ur}return sr},Tr=function B(er,tr,rr){var nr=(rr-tr)/2,ir=er*Math.cos(nr),or=er*Math.sin(nr),ar=ir,sr=-or,lr=ar*ar+sr*sr,cr=lr+ar*ir+sr*or,ur=4/3*(Math.sqrt(2*lr*cr)-cr)/(ar*or-sr*ir),dr=ar-ur*sr,hr=sr+ur*ar,pr=dr,Ar=-hr,fr=nr+tr,gr=Math.cos(fr),mr=Math.sin(fr);return{x1:er*Math.cos(tr),y1:er*Math.sin(tr),x2:dr*gr-hr*mr,y2:dr*mr+hr*gr,x3:pr*gr-Ar*mr,y3:pr*mr+Ar*gr,x4:er*Math.cos(rr),y4:er*Math.sin(rr)}},Pr=function O(er){return 180*er/Math.PI},Fr=function M(er,tr,rr,nr,ir,or){var ar=er+.5*(rr-er),lr=tr+.5*(nr-tr),cr=ir+.5*(rr-ir),ur=or+.5*(nr-or),dr=Math.min(er,ir,ar,cr),hr=Math.max(er,ir,ar,cr),pr=Math.min(tr,or,lr,ur),Ar=Math.max(tr,or,lr,ur);return new sr(dr,pr,hr-dr,Ar-pr)},Ur=function E(er,tr,rr,nr,ir,or,ar,lr){var cr,ur,dr,hr,pr,Ar,fr,gr,mr,_r,vr,yr,br,wr,Sr=rr-er,xr=nr-tr,kr=ir-rr,Cr=or-nr,Br=ar-ir,Er=lr-or;for(ur=0;ur<41;ur++)mr=(fr=(dr=er+(cr=ur/40)*Sr)+cr*((pr=rr+cr*kr)-dr))+cr*(pr+cr*(ir+cr*Br-pr)-fr),_r=(gr=(hr=tr+cr*xr)+cr*((Ar=nr+cr*Cr)-hr))+cr*(Ar+cr*(or+cr*Er-Ar)-gr),0==ur?(vr=mr,yr=_r,br=mr,wr=_r):(vr=Math.min(vr,mr),yr=Math.min(yr,_r),br=Math.max(br,mr),wr=Math.max(wr,_r));return new sr(Math.round(vr),Math.round(yr),Math.round(br-vr),Math.round(wr-yr))}}(g.API);
|
||
/**
|
||
* @license
|
||
Copyright (c) 2013 Gildas Lormeau. All rights reserved.
|
||
|
||
Redistribution and use in source and binary forms, with or without
|
||
modification, are permitted provided that the following conditions are met:
|
||
|
||
1. Redistributions of source code must retain the above copyright notice,
|
||
this list of conditions and the following disclaimer.
|
||
|
||
2. Redistributions in binary form must reproduce the above copyright
|
||
notice, this list of conditions and the following disclaimer in
|
||
the documentation and/or other materials provided with the distribution.
|
||
|
||
3. The names of the authors may not be used to endorse or promote products
|
||
derived from this software without specific prior written permission.
|
||
|
||
THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,
|
||
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
||
FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL JCRAFT,
|
||
INC. OR ANY CONTRIBUTORS TO THIS SOFTWARE BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
|
||
OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
||
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
|
||
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||
*/
|
||
var Rg=[0,1,2,3,4,4,5,5,6,6,6,6,7,7,7,7,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,0,0,16,17,18,18,19,19,20,20,20,20,21,21,21,21,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29];function ft(){var er=this;function e(er,tr){var rr=0;do{rr|=1&er,er>>>=1,rr<<=1}while(--tr>0);return rr>>>1}er.build_tree=function(tr){var rr,nr,ir,or=er.dyn_tree,ar=er.stat_desc.static_tree,sr=er.stat_desc.elems,lr=-1;for(tr.heap_len=0,tr.heap_max=573,rr=0;rr<sr;rr++)0!==or[2*rr]?(tr.heap[++tr.heap_len]=lr=rr,tr.depth[rr]=0):or[2*rr+1]=0;for(;tr.heap_len<2;)or[2*(ir=tr.heap[++tr.heap_len]=lr<2?++lr:0)]=1,tr.depth[ir]=0,tr.opt_len--,ar&&(tr.static_len-=ar[2*ir+1]);for(er.max_code=lr,rr=Math.floor(tr.heap_len/2);rr>=1;rr--)tr.pqdownheap(or,rr);ir=sr;do{rr=tr.heap[1],tr.heap[1]=tr.heap[tr.heap_len--],tr.pqdownheap(or,1),nr=tr.heap[1],tr.heap[--tr.heap_max]=rr,tr.heap[--tr.heap_max]=nr,or[2*ir]=or[2*rr]+or[2*nr],tr.depth[ir]=Math.max(tr.depth[rr],tr.depth[nr])+1,or[2*rr+1]=or[2*nr+1]=ir,tr.heap[1]=ir++,tr.pqdownheap(or,1)}while(tr.heap_len>=2);tr.heap[--tr.heap_max]=tr.heap[1],function(tr){var rr,nr,ir,or,ar,sr,lr=er.dyn_tree,cr=er.stat_desc.static_tree,ur=er.stat_desc.extra_bits,dr=er.stat_desc.extra_base,hr=er.stat_desc.max_length,pr=0;for(or=0;or<=15;or++)tr.bl_count[or]=0;for(lr[2*tr.heap[tr.heap_max]+1]=0,rr=tr.heap_max+1;rr<573;rr++)(or=lr[2*lr[2*(nr=tr.heap[rr])+1]+1]+1)>hr&&(or=hr,pr++),lr[2*nr+1]=or,nr>er.max_code||(tr.bl_count[or]++,ar=0,nr>=dr&&(ar=ur[nr-dr]),sr=lr[2*nr],tr.opt_len+=sr*(or+ar),cr&&(tr.static_len+=sr*(cr[2*nr+1]+ar)));if(0!==pr){do{for(or=hr-1;0===tr.bl_count[or];)or--;tr.bl_count[or]--,tr.bl_count[or+1]+=2,tr.bl_count[hr]--,pr-=2}while(pr>0);for(or=hr;0!==or;or--)for(nr=tr.bl_count[or];0!==nr;)(ir=tr.heap[--rr])>er.max_code||(lr[2*ir+1]!==or&&(tr.opt_len+=(or-lr[2*ir+1])*lr[2*ir],lr[2*ir+1]=or),nr--)}}(tr),function(er,tr,rr){var nr,ir,or,ar=[],sr=0;for(nr=1;nr<=15;nr++)ar[nr]=sr=sr+rr[nr-1]<<1;for(ir=0;ir<=tr;ir++)0!==(or=er[2*ir+1])&&(er[2*ir]=e(ar[or]++,or))}(or,er.max_code,tr.bl_count)}}function dt(er,tr,rr,nr,ir){this.static_tree=er,this.extra_bits=tr,this.extra_base=rr,this.elems=nr,this.max_length=ir}function pt(er,tr,rr,nr,ir){this.good_length=er,this.max_lazy=tr,this.nice_length=rr,this.max_chain=nr,this.func=ir}ft._length_code=[0,1,2,3,4,5,6,7,8,8,9,9,10,10,11,11,12,12,12,12,13,13,13,13,14,14,14,14,15,15,15,15,16,16,16,16,16,16,16,16,17,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,28],ft.base_length=[0,1,2,3,4,5,6,7,8,10,12,14,16,20,24,28,32,40,48,56,64,80,96,112,128,160,192,224,0],ft.base_dist=[0,1,2,3,4,6,8,12,16,24,32,48,64,96,128,192,256,384,512,768,1024,1536,2048,3072,4096,6144,8192,12288,16384,24576],ft.d_code=function(er){return er<256?Rg[er]:Rg[256+(er>>>7)]},ft.extra_lbits=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],ft.extra_dbits=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],ft.extra_blbits=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],ft.bl_order=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],dt.static_ltree=[12,8,140,8,76,8,204,8,44,8,172,8,108,8,236,8,28,8,156,8,92,8,220,8,60,8,188,8,124,8,252,8,2,8,130,8,66,8,194,8,34,8,162,8,98,8,226,8,18,8,146,8,82,8,210,8,50,8,178,8,114,8,242,8,10,8,138,8,74,8,202,8,42,8,170,8,106,8,234,8,26,8,154,8,90,8,218,8,58,8,186,8,122,8,250,8,6,8,134,8,70,8,198,8,38,8,166,8,102,8,230,8,22,8,150,8,86,8,214,8,54,8,182,8,118,8,246,8,14,8,142,8,78,8,206,8,46,8,174,8,110,8,238,8,30,8,158,8,94,8,222,8,62,8,190,8,126,8,254,8,1,8,129,8,65,8,193,8,33,8,161,8,97,8,225,8,17,8,145,8,81,8,209,8,49,8,177,8,113,8,241,8,9,8,137,8,73,8,201,8,41,8,169,8,105,8,233,8,25,8,153,8,89,8,217,8,57,8,185,8,121,8,249,8,5,8,133,8,69,8,197,8,37,8,165,8,101,8,229,8,21,8,149,8,85,8,213,8,53,8,181,8,117,8,245,8,13,8,141,8,77,8,205,8,45,8,173,8,109,8,237,8,29,8,157,8,93,8,221,8,61,8,189,8,125,8,253,8,19,9,275,9,147,9,403,9,83,9,339,9,211,9,467,9,51,9,307,9,179,9,435,9,115,9,371,9,243,9,499,9,11,9,267,9,139,9,395,9,75,9,331,9,203,9,459,9,43,9,299,9,171,9,427,9,107,9,363,9,235,9,491,9,27,9,283,9,155,9,411,9,91,9,347,9,219,9,475,9,59,9,315,9,187,9,443,9,123,9,379,9,251,9,507,9,7,9,263,9,135,9,391,9,71,9,327,9,199,9,455,9,39,9,295,9,167,9,423,9,103,9,359,9,231,9,487,9,23,9,279,9,151,9,407,9,87,9,343,9,215,9,471,9,55,9,311,9,183,9,439,9,119,9,375,9,247,9,503,9,15,9,271,9,143,9,399,9,79,9,335,9,207,9,463,9,47,9,303,9,175,9,431,9,111,9,367,9,239,9,495,9,31,9,287,9,159,9,415,9,95,9,351,9,223,9,479,9,63,9,319,9,191,9,447,9,127,9,383,9,255,9,511,9,0,7,64,7,32,7,96,7,16,7,80,7,48,7,112,7,8,7,72,7,40,7,104,7,24,7,88,7,56,7,120,7,4,7,68,7,36,7,100,7,20,7,84,7,52,7,116,7,3,8,131,8,67,8,195,8,35,8,163,8,99,8,227,8],dt.static_dtree=[0,5,16,5,8,5,24,5,4,5,20,5,12,5,28,5,2,5,18,5,10,5,26,5,6,5,22,5,14,5,30,5,1,5,17,5,9,5,25,5,5,5,21,5,13,5,29,5,3,5,19,5,11,5,27,5,7,5,23,5],dt.static_l_desc=new dt(dt.static_ltree,ft.extra_lbits,257,286,15),dt.static_d_desc=new dt(dt.static_dtree,ft.extra_dbits,0,30,15),dt.static_bl_desc=new dt(null,ft.extra_blbits,0,19,7);var Mg,Og,Qg,Dg=[new pt(0,0,0,0,0),new pt(4,4,8,4,1),new pt(4,5,16,8,1),new pt(4,6,32,32,1),new pt(4,4,16,16,2),new pt(8,16,32,32,2),new pt(8,16,128,128,2),new pt(8,32,128,256,2),new pt(32,128,258,1024,2),new pt(32,258,258,4096,2)],jg=["need dictionary","stream end","","","stream error","data error","","buffer error","",""];function wt(er,tr,rr,nr){var ir=er[2*tr],or=er[2*rr];return ir<or||ir===or&&nr[tr]<=nr[rr]}function Nt(){var er,tr,rr,nr,ir,or,ar,sr,lr,cr,ur,dr,hr,pr,Ar,fr,gr,mr,_r,vr,yr,br,wr,Sr,xr,kr,Cr,Br,Er,Nr,Lr,Tr,Pr,Fr,Ur,Ir,Rr,Mr,Or,Qr,Dr,jr=this,Hr=new ft,Gr=new ft,Vr=new ft;function V(){var er;for(er=0;er<286;er++)Lr[2*er]=0;for(er=0;er<30;er++)Tr[2*er]=0;for(er=0;er<19;er++)Pr[2*er]=0;Lr[512]=1,jr.opt_len=jr.static_len=0,Ir=Mr=0}function G(er,tr){var rr,nr,ir=-1,or=er[1],ar=0,sr=7,lr=4;for(0===or&&(sr=138,lr=3),er[2*(tr+1)+1]=65535,rr=0;rr<=tr;rr++)nr=or,or=er[2*(rr+1)+1],++ar<sr&&nr===or||(ar<lr?Pr[2*nr]+=ar:0!==nr?(nr!==ir&&Pr[2*nr]++,Pr[32]++):ar<=10?Pr[34]++:Pr[36]++,ar=0,ir=nr,0===or?(sr=138,lr=3):nr===or?(sr=6,lr=3):(sr=7,lr=4))}function Y(er){jr.pending_buf[jr.pending++]=er}function J(er){Y(255&er),Y(er>>>8&255)}function X(er,tr){var rr,nr=tr;Dr>16-nr?(J(Qr|=(rr=er)<<Dr&65535),Qr=rr>>>16-Dr,Dr+=nr-16):(Qr|=er<<Dr&65535,Dr+=nr)}function K(er,tr){var rr=2*er;X(65535&tr[rr],65535&tr[rr+1])}function Z(er,tr){var rr,nr,ir=-1,or=er[1],ar=0,sr=7,lr=4;for(0===or&&(sr=138,lr=3),rr=0;rr<=tr;rr++)if(nr=or,or=er[2*(rr+1)+1],!(++ar<sr&&nr===or)){if(ar<lr)do{K(nr,Pr)}while(0!=--ar);else 0!==nr?(nr!==ir&&(K(nr,Pr),ar--),K(16,Pr),X(ar-3,2)):ar<=10?(K(17,Pr),X(ar-3,3)):(K(18,Pr),X(ar-11,7));ar=0,ir=nr,0===or?(sr=138,lr=3):nr===or?(sr=6,lr=3):(sr=7,lr=4)}}function $(){16===Dr?(J(Qr),Qr=0,Dr=0):Dr>=8&&(Y(255&Qr),Qr>>>=8,Dr-=8)}function Q(er,tr){var rr,nr,ir;if(jr.pending_buf[Rr+2*Ir]=er>>>8&255,jr.pending_buf[Rr+2*Ir+1]=255&er,jr.pending_buf[Fr+Ir]=255&tr,Ir++,0===er?Lr[2*tr]++:(Mr++,er--,Lr[2*(ft._length_code[tr]+256+1)]++,Tr[2*ft.d_code(er)]++),0==(8191&Ir)&&Cr>2){for(rr=8*Ir,nr=yr-gr,ir=0;ir<30;ir++)rr+=Tr[2*ir]*(5+ft.extra_dbits[ir]);if(rr>>>=3,Mr<Math.floor(Ir/2)&&rr<Math.floor(nr/2))return!0}return Ir===Ur-1}function tt(er,tr){var rr,nr,ir,or,ar=0;if(0!==Ir)do{rr=jr.pending_buf[Rr+2*ar]<<8&65280|255&jr.pending_buf[Rr+2*ar+1],nr=255&jr.pending_buf[Fr+ar],ar++,0===rr?K(nr,er):(K((ir=ft._length_code[nr])+256+1,er),0!==(or=ft.extra_lbits[ir])&&X(nr-=ft.base_length[ir],or),rr--,K(ir=ft.d_code(rr),tr),0!==(or=ft.extra_dbits[ir])&&X(rr-=ft.base_dist[ir],or))}while(ar<Ir);K(256,er),Or=er[513]}function et(){Dr>8?J(Qr):Dr>0&&Y(255&Qr),Qr=0,Dr=0}function nt(er,tr,rr){X(0+(rr?1:0),3),function(er,tr,rr){et(),Or=8,J(tr),J(~tr),jr.pending_buf.set(sr.subarray(er,er+tr),jr.pending),jr.pending+=tr}(er,tr)}function it(tr){(function rt(er,tr,rr){var nr,ir,or=0;Cr>0?(Hr.build_tree(jr),Gr.build_tree(jr),or=function(){var er;for(G(Lr,Hr.max_code),G(Tr,Gr.max_code),Vr.build_tree(jr),er=18;er>=3&&0===Pr[2*ft.bl_order[er]+1];er--);return jr.opt_len+=3*(er+1)+5+5+4,er}(),nr=jr.opt_len+3+7>>>3,(ir=jr.static_len+3+7>>>3)<=nr&&(nr=ir)):nr=ir=tr+5,tr+4<=nr&&-1!==er?nt(er,tr,rr):ir===nr?(X(2+(rr?1:0),3),tt(dt.static_ltree,dt.static_dtree)):(X(4+(rr?1:0),3),function(er,tr,rr){var nr;for(X(er-257,5),X(tr-1,5),X(rr-4,4),nr=0;nr<rr;nr++)X(Pr[2*ft.bl_order[nr]+1],3);Z(Lr,er-1),Z(Tr,tr-1)}(Hr.max_code+1,Gr.max_code+1,or+1),tt(Lr,Tr)),V(),rr&&et()})(gr>=0?gr:-1,yr-gr,tr),gr=yr,er.flush_pending()}function at(){var tr,rr,nr,or;do{if(0==(or=lr-wr-yr)&&0===yr&&0===wr)or=ir;else if(-1===or)or--;else if(yr>=ir+ir-262){sr.set(sr.subarray(ir,ir+ir),0),br-=ir,yr-=ir,gr-=ir,nr=tr=hr;do{rr=65535&ur[--nr],ur[nr]=rr>=ir?rr-ir:0}while(0!=--tr);nr=tr=ir;do{rr=65535&cr[--nr],cr[nr]=rr>=ir?rr-ir:0}while(0!=--tr);or+=ir}if(0===er.avail_in)return;tr=er.read_buf(sr,yr+wr,or),(wr+=tr)>=3&&(dr=((dr=255&sr[yr])<<fr^255&sr[yr+1])&Ar)}while(wr<262&&0!==er.avail_in)}function ot(er){var tr,rr,nr=xr,or=yr,lr=Sr,ur=yr>ir-262?yr-(ir-262):0,dr=Nr,hr=ar,pr=yr+258,Ar=sr[or+lr-1],fr=sr[or+lr];Sr>=Er&&(nr>>=2),dr>wr&&(dr=wr);do{if(sr[(tr=er)+lr]===fr&&sr[tr+lr-1]===Ar&&sr[tr]===sr[or]&&sr[++tr]===sr[or+1]){or+=2,tr++;do{}while(sr[++or]===sr[++tr]&&sr[++or]===sr[++tr]&&sr[++or]===sr[++tr]&&sr[++or]===sr[++tr]&&sr[++or]===sr[++tr]&&sr[++or]===sr[++tr]&&sr[++or]===sr[++tr]&&sr[++or]===sr[++tr]&&or<pr);if(rr=258-(pr-or),or=pr-258,rr>lr){if(br=er,lr=rr,rr>=dr)break;Ar=sr[or+lr-1],fr=sr[or+lr]}}}while((er=65535&cr[er&hr])>ur&&0!=--nr);return lr<=wr?lr:wr}function st(er){return er.total_in=er.total_out=0,er.msg=null,jr.pending=0,jr.pending_out=0,tr=113,nr=0,Hr.dyn_tree=Lr,Hr.stat_desc=dt.static_l_desc,Gr.dyn_tree=Tr,Gr.stat_desc=dt.static_d_desc,Vr.dyn_tree=Pr,Vr.stat_desc=dt.static_bl_desc,Qr=0,Dr=0,Or=8,V(),function(){var er;for(lr=2*ir,ur[hr-1]=0,er=0;er<hr-1;er++)ur[er]=0;kr=Dg[Cr].max_lazy,Er=Dg[Cr].good_length,Nr=Dg[Cr].nice_length,xr=Dg[Cr].max_chain,yr=0,gr=0,wr=0,mr=Sr=2,vr=0,dr=0}(),0}jr.depth=[],jr.bl_count=[],jr.heap=[],Lr=[],Tr=[],Pr=[],jr.pqdownheap=function(er,tr){for(var rr=jr.heap,nr=rr[tr],ir=tr<<1;ir<=jr.heap_len&&(ir<jr.heap_len&&wt(er,rr[ir+1],rr[ir],jr.depth)&&ir++,!wt(er,nr,rr[ir],jr.depth));)rr[tr]=rr[ir],tr=ir,ir<<=1;rr[tr]=nr},jr.deflateInit=function(er,tr,nr,lr,dr,gr){return lr||(lr=8),dr||(dr=8),gr||(gr=0),er.msg=null,-1===tr&&(tr=6),dr<1||dr>9||8!==lr||nr<9||nr>15||tr<0||tr>9||gr<0||gr>2?-2:(er.dstate=jr,ar=(ir=1<<(or=nr))-1,Ar=(hr=1<<(pr=dr+7))-1,fr=Math.floor((pr+3-1)/3),sr=new Uint8Array(2*ir),cr=[],ur=[],Ur=1<<dr+6,jr.pending_buf=new Uint8Array(4*Ur),rr=4*Ur,Rr=Math.floor(Ur/2),Fr=3*Ur,Cr=tr,Br=gr,st(er))},jr.deflateEnd=function(){return 42!==tr&&113!==tr&&666!==tr?-2:(jr.pending_buf=null,ur=null,cr=null,sr=null,jr.dstate=null,113===tr?-3:0)},jr.deflateParams=function(er,tr,rr){var nr=0;return-1===tr&&(tr=6),tr<0||tr>9||rr<0||rr>2?-2:(Dg[Cr].func!==Dg[tr].func&&0!==er.total_in&&(nr=er.deflate(1)),Cr!==tr&&(kr=Dg[Cr=tr].max_lazy,Er=Dg[Cr].good_length,Nr=Dg[Cr].nice_length,xr=Dg[Cr].max_chain),Br=rr,nr)},jr.deflateSetDictionary=function(er,rr,nr){var or,lr=nr,hr=0;if(!rr||42!==tr)return-2;if(lr<3)return 0;for(lr>ir-262&&(hr=nr-(lr=ir-262)),sr.set(rr.subarray(hr,hr+lr),0),yr=lr,gr=lr,dr=((dr=255&sr[0])<<fr^255&sr[1])&Ar,or=0;or<=lr-3;or++)dr=(dr<<fr^255&sr[or+2])&Ar,cr[or&ar]=ur[dr],ur[dr]=or;return 0},jr.deflate=function(lr,pr){var xr,Er,Nr,Lr,Tr,Pr;if(pr>4||pr<0)return-2;if(!lr.next_out||!lr.next_in&&0!==lr.avail_in||666===tr&&4!==pr)return lr.msg=jg[4],-2;if(0===lr.avail_out)return lr.msg=jg[7],-5;if(er=lr,Lr=nr,nr=pr,42===tr&&(Er=8+(or-8<<4)<<8,(Nr=(Cr-1&255)>>1)>3&&(Nr=3),Er|=Nr<<6,0!==yr&&(Er|=32),tr=113,Y((Pr=Er+=31-Er%31)>>8&255),Y(255&Pr)),0!==jr.pending){if(er.flush_pending(),0===er.avail_out)return nr=-1,0}else if(0===er.avail_in&&pr<=Lr&&4!==pr)return er.msg=jg[7],-5;if(666===tr&&0!==er.avail_in)return lr.msg=jg[7],-5;if(0!==er.avail_in||0!==wr||0!==pr&&666!==tr){switch(Tr=-1,Dg[Cr].func){case 0:Tr=function(tr){var nr,or=65535;for(or>rr-5&&(or=rr-5);;){if(wr<=1){if(at(),0===wr&&0===tr)return 0;if(0===wr)break}if(yr+=wr,wr=0,nr=gr+or,(0===yr||yr>=nr)&&(wr=yr-nr,yr=nr,it(!1),0===er.avail_out))return 0;if(yr-gr>=ir-262&&(it(!1),0===er.avail_out))return 0}return it(4===tr),0===er.avail_out?4===tr?2:0:4===tr?3:1}(pr);break;case 1:Tr=function(tr){for(var rr,nr=0;;){if(wr<262){if(at(),wr<262&&0===tr)return 0;if(0===wr)break}if(wr>=3&&(dr=(dr<<fr^255&sr[yr+2])&Ar,nr=65535&ur[dr],cr[yr&ar]=ur[dr],ur[dr]=yr),0!==nr&&(yr-nr&65535)<=ir-262&&2!==Br&&(mr=ot(nr)),mr>=3)if(rr=Q(yr-br,mr-3),wr-=mr,mr<=kr&&wr>=3){mr--;do{yr++,dr=(dr<<fr^255&sr[yr+2])&Ar,nr=65535&ur[dr],cr[yr&ar]=ur[dr],ur[dr]=yr}while(0!=--mr);yr++}else yr+=mr,mr=0,dr=((dr=255&sr[yr])<<fr^255&sr[yr+1])&Ar;else rr=Q(0,255&sr[yr]),wr--,yr++;if(rr&&(it(!1),0===er.avail_out))return 0}return it(4===tr),0===er.avail_out?4===tr?2:0:4===tr?3:1}(pr);break;case 2:Tr=function(tr){for(var rr,nr,or=0;;){if(wr<262){if(at(),wr<262&&0===tr)return 0;if(0===wr)break}if(wr>=3&&(dr=(dr<<fr^255&sr[yr+2])&Ar,or=65535&ur[dr],cr[yr&ar]=ur[dr],ur[dr]=yr),Sr=mr,_r=br,mr=2,0!==or&&Sr<kr&&(yr-or&65535)<=ir-262&&(2!==Br&&(mr=ot(or)),mr<=5&&(1===Br||3===mr&&yr-br>4096)&&(mr=2)),Sr>=3&&mr<=Sr){nr=yr+wr-3,rr=Q(yr-1-_r,Sr-3),wr-=Sr-1,Sr-=2;do{++yr<=nr&&(dr=(dr<<fr^255&sr[yr+2])&Ar,or=65535&ur[dr],cr[yr&ar]=ur[dr],ur[dr]=yr)}while(0!=--Sr);if(vr=0,mr=2,yr++,rr&&(it(!1),0===er.avail_out))return 0}else if(0!==vr){if((rr=Q(0,255&sr[yr-1]))&&it(!1),yr++,wr--,0===er.avail_out)return 0}else vr=1,yr++,wr--}return 0!==vr&&(rr=Q(0,255&sr[yr-1]),vr=0),it(4===tr),0===er.avail_out?4===tr?2:0:4===tr?3:1}(pr)}if(2!==Tr&&3!==Tr||(tr=666),0===Tr||2===Tr)return 0===er.avail_out&&(nr=-1),0;if(1===Tr){if(1===pr)X(2,3),K(256,dt.static_ltree),$(),1+Or+10-Dr<9&&(X(2,3),K(256,dt.static_ltree),$()),Or=7;else if(nt(0,0,!1),3===pr)for(xr=0;xr<hr;xr++)ur[xr]=0;if(er.flush_pending(),0===er.avail_out)return nr=-1,0}}return 4!==pr?0:1}}function Lt(){this.next_in_index=0,this.next_out_index=0,this.avail_in=0,this.total_in=0,this.avail_out=0,this.total_out=0}function xt(er){var tr=new Lt,rr=new Uint8Array(512),nr=er?er.level:-1;void 0===nr&&(nr=-1),tr.deflateInit(nr),tr.next_out=rr,this.append=function(er,nr){var ir,or=[],ar=0,sr=0,lr=0;if(er.length){tr.next_in_index=0,tr.next_in=er,tr.avail_in=er.length;do{if(tr.next_out_index=0,tr.avail_out=512,0!==tr.deflate(0))throw new Error("deflating: "+tr.msg);tr.next_out_index&&(512===tr.next_out_index?or.push(new Uint8Array(rr)):or.push(new Uint8Array(rr.subarray(0,tr.next_out_index)))),lr+=tr.next_out_index,nr&&tr.next_in_index>0&&tr.next_in_index!==ar&&(nr(tr.next_in_index),ar=tr.next_in_index)}while(tr.avail_in>0||0===tr.avail_out);return ir=new Uint8Array(lr),or.forEach((function(er){ir.set(er,sr),sr+=er.length})),ir}},this.flush=function(){var er,nr,ir=[],or=0,ar=0;do{if(tr.next_out_index=0,tr.avail_out=512,1!==(er=tr.deflate(4))&&0!==er)throw new Error("deflating: "+tr.msg);512-tr.avail_out>0&&ir.push(new Uint8Array(rr.subarray(0,tr.next_out_index))),ar+=tr.next_out_index}while(tr.avail_in>0||0===tr.avail_out);return tr.deflateEnd(),nr=new Uint8Array(ar),ir.forEach((function(er){nr.set(er,or),or+=er.length})),nr}}
|
||
/**
|
||
* @license
|
||
* jsPDF filters PlugIn
|
||
* Copyright (c) 2014 Aras Abbasi
|
||
*
|
||
* Licensed under the MIT License.
|
||
* http://opensource.org/licenses/mit-license
|
||
*/Lt.prototype={deflateInit:function deflateInit(er,tr){return this.dstate=new Nt,tr||(tr=15),this.dstate.deflateInit(this,er,tr)},deflate:function deflate(er){return this.dstate?this.dstate.deflate(this,er):-2},deflateEnd:function deflateEnd(){if(!this.dstate)return-2;var er=this.dstate.deflateEnd();return this.dstate=null,er},deflateParams:function deflateParams(er,tr){return this.dstate?this.dstate.deflateParams(this,er,tr):-2},deflateSetDictionary:function deflateSetDictionary(er,tr){return this.dstate?this.dstate.deflateSetDictionary(this,er,tr):-2},read_buf:function read_buf(er,tr,rr){var nr=this.avail_in;return nr>rr&&(nr=rr),0===nr?0:(this.avail_in-=nr,er.set(this.next_in.subarray(this.next_in_index,this.next_in_index+nr),tr),this.next_in_index+=nr,this.total_in+=nr,nr)},flush_pending:function flush_pending(){var er=this.dstate.pending;er>this.avail_out&&(er=this.avail_out),0!==er&&(this.next_out.set(this.dstate.pending_buf.subarray(this.dstate.pending_out,this.dstate.pending_out+er),this.next_out_index),this.next_out_index+=er,this.dstate.pending_out+=er,this.total_out+=er,this.avail_out-=er,this.dstate.pending-=er,0===this.dstate.pending&&(this.dstate.pending_out=0))}},function(er){var tr=function e(er){var e,tr,rr,nr,ir,or,ar,sr,lr,cr;for(/[^\x00-\xFF]/.test(er),tr=[],rr=0,nr=(er+=e="\0\0\0\0".slice(er.length%4||4)).length;nr>rr;rr+=4)0!==(ir=(er.charCodeAt(rr)<<24)+(er.charCodeAt(rr+1)<<16)+(er.charCodeAt(rr+2)<<8)+er.charCodeAt(rr+3))?(or=(ir=((ir=((ir=((ir=(ir-(cr=ir%85))/85)-(lr=ir%85))/85)-(sr=ir%85))/85)-(ar=ir%85))/85)%85,tr.push(or+33,ar+33,sr+33,lr+33,cr+33)):tr.push(122);return function(er,tr){for(var rr=tr;rr>0;rr--)er.pop()}(tr,e.length),String.fromCharCode.apply(String,tr)+"~>"},rr=function n(er){var tr,n,rr,nr,ir,or=String,ar="length",sr=255,lr="charCodeAt",cr="slice",ur="replace";for(er[cr](-2),er=er[cr](0,-2)[ur](/\s/g,"")[ur]("z","!!!!!"),rr=[],nr=0,ir=(er+=tr="uuuuu"[cr](er[ar]%5||5))[ar];ir>nr;nr+=5)n=52200625*(er[lr](nr)-33)+614125*(er[lr](nr+1)-33)+7225*(er[lr](nr+2)-33)+85*(er[lr](nr+3)-33)+(er[lr](nr+4)-33),rr.push(sr&n>>24,sr&n>>16,sr&n>>8,sr&n);return function(er,tr){for(var rr=tr;rr>0;rr--)er.pop()}(rr,tr[ar]),or.fromCharCode.apply(or,rr)},nr=function r(er){var tr=new RegExp(/^([0-9A-Fa-f]{2})+$/);if(-1!==(er=er.replace(/\s/g,"")).indexOf(">")&&(er=er.substr(0,er.indexOf(">"))),er.length%2&&(er+="0"),!1===tr.test(er))return"";for(var rr="",r=0;r<er.length;r+=2)rr+=String.fromCharCode("0x"+(er[r]+er[r+1]));return rr},ir=function i(tr){for(var rr,nr,i,ir,or,ar=[],sr=tr.length;sr--;)ar[sr]=tr.charCodeAt(sr);return rr=er.adler32cs.from(tr),i=tr=(nr=new xt(6)).append(new Uint8Array(ar)),ir=nr.flush(),(or=new Uint8Array(i.byteLength+ir.byteLength)).set(new Uint8Array(i),0),or.set(new Uint8Array(ir),i.byteLength),tr=or,(ar=new Uint8Array(tr.byteLength+6)).set(new Uint8Array([120,156])),ar.set(tr,2),ar.set(new Uint8Array([255&rr,rr>>8&255,rr>>16&255,rr>>24&255]),tr.byteLength+2),ar.reduce((function(er,tr){return er+String.fromCharCode(tr)}),"")};er.processDataByFilters=function(er,or){var ar=0,sr=er||"",lr=[];for("string"==typeof(or=or||[])&&(or=[or]),ar=0;ar<or.length;ar+=1)switch(or[ar]){case"ASCII85Decode":case"/ASCII85Decode":sr=rr(sr),lr.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":sr=tr(sr),lr.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":sr=nr(sr),lr.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":sr=sr.split("").map((function(er){return("0"+er.charCodeAt().toString(16)).slice(-2)})).join("")+">",lr.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":sr=ir(sr),lr.push("/FlateDecode");break;default:throw new Error('The filter: "'+or[ar]+'" is not implemented')}return{data:sr,reverseChain:lr.reverse().join(" ")}}}(g.API),
|
||
/**
|
||
* @license
|
||
* jsPDF fileloading PlugIn
|
||
* Copyright (c) 2018 Aras Abbasi (aras.abbasi@gmail.com)
|
||
*
|
||
* Licensed under the MIT License.
|
||
* http://opensource.org/licenses/mit-license
|
||
*/
|
||
function(er){er.loadFile=function(er,tr,rr){return function(er,tr,rr){tr=!1!==tr,rr="function"==typeof rr?rr:function(){};var nr=void 0;try{nr=function(er,tr,rr){var nr=new XMLHttpRequest,ir=0,or=function a(er){var tr=er.length,rr=[],nr=String.fromCharCode;for(ir=0;ir<tr;ir+=1)rr.push(nr(255&er.charCodeAt(ir)));return rr.join("")};if(nr.open("GET",er,!tr),nr.overrideMimeType("text/plain; charset=x-user-defined"),!1===tr&&(nr.onload=function(){200===nr.status?rr(or(this.responseText)):rr(void 0)}),nr.send(null),tr&&200===nr.status)return or(nr.responseText)}(er,tr,rr)}catch(er){}return nr}(er,tr,rr)},er.loadImageFile=er.loadFile}(g.API),
|
||
/**
|
||
* @license
|
||
* Copyright (c) 2018 Erik Koopmans
|
||
* Released under the MIT License.
|
||
*
|
||
* Licensed under the MIT License.
|
||
* http://opensource.org/licenses/mit-license
|
||
*/
|
||
function(er){function n(){return(Mf.html2canvas?Promise.resolve(Mf.html2canvas):Promise.resolve().then((function(){return sF}))).catch((function(er){return Promise.reject(new Error("Could not load dompurify: "+er))})).then((function(er){return er.default?er.default:er}))}function r(){return(Mf.DOMPurify?Promise.resolve(Mf.DOMPurify):Promise.resolve().then((function(){return bF}))).catch((function(er){return Promise.reject(new Error("Could not load dompurify: "+er))})).then((function(er){return er.default?er.default:er}))}var tr=function i(er){var tr=_typeof(er);return"undefined"===tr?"undefined":"string"===tr||er instanceof String?"string":"number"===tr||er instanceof Number?"number":"function"===tr||er instanceof Function?"function":er&&er.constructor===Array?"array":er&&1===er.nodeType?"element":"object"===tr?"object":"unknown"},rr=function a(er,tr){var rr=document.createElement(er);for(var nr in tr.className&&(rr.className=tr.className),tr.innerHTML&&tr.dompurify&&(rr.innerHTML=tr.dompurify.sanitize(tr.innerHTML)),tr.style)rr.style[nr]=tr.style[nr];return rr},nr=function t(er){var tr=Object.assign(t.convert(Promise.resolve()),JSON.parse(JSON.stringify(t.template))),rr=t.convert(Promise.resolve(),tr);return(rr=rr.setProgress(1,t,1,[t])).set(er)};(nr.prototype=Object.create(Promise.prototype)).constructor=nr,nr.convert=function(er,tr){return er.__proto__=tr||nr.prototype,er},nr.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function callback(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},nr.prototype.from=function(er,nr){return this.then((function(){switch(nr=nr||function(er){switch(tr(er)){case"string":return"string";case"element":return"canvas"===er.nodeName.toLowerCase?"canvas":"element";default:return"unknown"}}(er)){case"string":return this.then(r).then((function(tr){return this.set({src:rr("div",{innerHTML:er,dompurify:tr})})}));case"element":return this.set({src:er});case"canvas":return this.set({canvas:er});case"img":return this.set({img:er});default:return this.error("Unknown source type.")}}))},nr.prototype.to=function(er){switch(er){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},nr.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then((function(){var er={position:"relative",display:"inline-block",width:Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},tr=function o(er,tr){for(var rr=3===er.nodeType?document.createTextNode(er.nodeValue):er.cloneNode(!1),nr=er.firstChild;nr;nr=nr.nextSibling)!0!==tr&&1===nr.nodeType&&"SCRIPT"===nr.nodeName||rr.appendChild(o(nr,tr));return 1===er.nodeType&&("CANVAS"===er.nodeName?(rr.width=er.width,rr.height=er.height,rr.getContext("2d").drawImage(er,0,0)):"TEXTAREA"!==er.nodeName&&"SELECT"!==er.nodeName||(rr.value=er.value),rr.addEventListener("load",(function(){rr.scrollTop=er.scrollTop,rr.scrollLeft=er.scrollLeft}),!0)),rr}(this.prop.src,this.opt.html2canvas.javascriptEnabled);"BODY"===tr.tagName&&(er.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=rr("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=rr("div",{className:"html2pdf__container",style:er}),this.prop.container.appendChild(tr),this.prop.container.firstChild.appendChild(rr("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"}))},nr.prototype.toCanvas=function(){var er=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(er).then(n).then((function(er){var tr=Object.assign({},this.opt.html2canvas);return delete tr.onrendered,er(this.prop.container,tr)})).then((function(er){(this.opt.html2canvas.onrendered||function(){})(er),this.prop.canvas=er,document.body.removeChild(this.prop.overlay)}))},nr.prototype.toContext2d=function(){var er=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(er).then(n).then((function(er){var tr=this.opt.jsPDF,rr=Object.assign({async:!0,allowTaint:!0,scale:1,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);return delete rr.onrendered,tr.context2d.autoPaging=!0,tr.context2d.posX=this.opt.x,tr.context2d.posY=this.opt.y,rr.windowHeight=rr.windowHeight||0,rr.windowHeight=0==rr.windowHeight?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):rr.windowHeight,er(this.prop.container,rr)})).then((function(er){(this.opt.html2canvas.onrendered||function(){})(er),this.prop.canvas=er,document.body.removeChild(this.prop.overlay)}))},nr.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then((function(){var er=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=er}))},nr.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then((function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF}))},nr.prototype.output=function(er,tr,rr){return"img"===(rr=rr||"pdf").toLowerCase()||"image"===rr.toLowerCase()?this.outputImg(er,tr):this.outputPdf(er,tr)},nr.prototype.outputPdf=function(er,tr){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){return this.prop.pdf.output(er,tr)}))},nr.prototype.outputImg=function(er){return this.thenList([function(){return this.prop.img||this.toImg()}]).then((function(){switch(er){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+er+'" is not supported.'}}))},nr.prototype.save=function(er){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(er?{filename:er}:null).then((function(){this.prop.pdf.save(this.opt.filename)}))},nr.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){this.prop.callback(this.prop.pdf)}))},nr.prototype.set=function(er){if("object"!==tr(er))return this;var rr=Object.keys(er||{}).map((function(tr){if(tr in nr.template.prop)return function(){this.prop[tr]=er[tr]};switch(tr){case"margin":return this.setMargin.bind(this,er.margin);case"jsPDF":return function(){return this.opt.jsPDF=er.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,er.pageSize);default:return function(){this.opt[tr]=er[tr]}}}),this);return this.then((function(){return this.thenList(rr)}))},nr.prototype.get=function(er,tr){return this.then((function(){var rr=er in nr.template.prop?this.prop[er]:this.opt[er];return tr?tr(rr):rr}))},nr.prototype.setMargin=function(er){return this.then((function(){switch(tr(er)){case"number":er=[er,er,er,er];case"array":if(2===er.length&&(er=[er[0],er[1],er[0],er[1]]),4===er.length)break;default:return this.error("Invalid margin array.")}this.opt.margin=er})).then(this.setPageSize)},nr.prototype.setPageSize=function(er){function e(er,tr){return Math.floor(er*tr/72*96)}return this.then((function(){(er=er||g.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(er.inner={width:er.width-this.opt.margin[1]-this.opt.margin[3],height:er.height-this.opt.margin[0]-this.opt.margin[2]},er.inner.px={width:e(er.inner.width,er.k),height:e(er.inner.height,er.k)},er.inner.ratio=er.inner.height/er.inner.width),this.prop.pageSize=er}))},nr.prototype.setProgress=function(er,tr,rr,nr){return null!=er&&(this.progress.val=er),null!=tr&&(this.progress.state=tr),null!=rr&&(this.progress.n=rr),null!=nr&&(this.progress.stack=nr),this.progress.ratio=this.progress.val/this.progress.state,this},nr.prototype.updateProgress=function(er,tr,rr,nr){return this.setProgress(er?this.progress.val+er:null,tr||null,rr?this.progress.n+rr:null,nr?this.progress.stack.concat(nr):null)},nr.prototype.then=function(er,tr){var rr=this;return this.thenCore(er,tr,(function(er,tr){return rr.updateProgress(null,null,1,[er]),Promise.prototype.then.call(this,(function(tr){return rr.updateProgress(null,er),tr})).then(er,tr).then((function(er){return rr.updateProgress(1),er}))}))},nr.prototype.thenCore=function(er,tr,rr){rr=rr||Promise.prototype.then,er&&(er=er.bind(this)),tr&&(tr=tr.bind(this));var ir=-1!==Promise.toString().indexOf("[native code]")&&"Promise"===Promise.name?this:nr.convert(Object.assign({},this),Promise.prototype),or=rr.call(ir,er,tr);return nr.convert(or,this.__proto__)},nr.prototype.thenExternal=function(er,tr){return Promise.prototype.then.call(this,er,tr)},nr.prototype.thenList=function(er){var tr=this;return er.forEach((function(er){tr=tr.thenCore(er)})),tr},nr.prototype.catch=function(er){er&&(er=er.bind(this));var tr=Promise.prototype.catch.call(this,er);return nr.convert(tr,this)},nr.prototype.catchExternal=function(er){return Promise.prototype.catch.call(this,er)},nr.prototype.error=function(er){return this.then((function(){throw new Error(er)}))},nr.prototype.using=nr.prototype.set,nr.prototype.saveAs=nr.prototype.save,nr.prototype.export=nr.prototype.output,nr.prototype.run=nr.prototype.then,g.getPageSize=function(er,tr,rr){if("object"==_typeof(er)){var nr=er;er=nr.orientation,tr=nr.unit||tr,rr=nr.format||rr}tr=tr||"mm",rr=rr||"a4",er=(""+(er||"P")).toLowerCase();var ir,or=(""+rr).toLowerCase(),ar={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(tr){case"pt":ir=1;break;case"mm":ir=72/25.4;break;case"cm":ir=72/2.54;break;case"in":ir=72;break;case"px":ir=.75;break;case"pc":case"em":ir=12;break;case"ex":ir=6;break;default:throw"Invalid unit: "+tr}var sr,lr=0,cr=0;if(ar.hasOwnProperty(or))lr=ar[or][1]/ir,cr=ar[or][0]/ir;else try{lr=rr[1],cr=rr[0]}catch(er){throw new Error("Invalid format: "+rr)}if("p"===er||"portrait"===er)er="p",cr>lr&&(sr=cr,cr=lr,lr=sr);else{if("l"!==er&&"landscape"!==er)throw"Invalid orientation: "+er;er="l",lr>cr&&(sr=cr,cr=lr,lr=sr)}return{width:cr,height:lr,unit:tr,k:ir,orientation:er}},er.html=function(er,tr){(tr=tr||{}).callback=tr.callback||function(){},tr.html2canvas=tr.html2canvas||{},tr.html2canvas.canvas=tr.html2canvas.canvas||this.canvas,tr.jsPDF=tr.jsPDF||this;var rr=new nr(tr);return tr.worker?rr:rr.from(er).doCallback()}}(g.API),g.API.addJS=function(er){return Qg=er,this.internal.events.subscribe("postPutResources",(function(){Mg=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(Mg+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),Og=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+Qg+")"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){void 0!==Mg&&void 0!==Og&&this.internal.out("/Names <</JavaScript "+Mg+" 0 R>>")})),this},
|
||
/**
|
||
* @license
|
||
* Copyright (c) 2014 Steven Spungin (TwelveTone LLC) steven@twelvetone.tv
|
||
*
|
||
* Licensed under the MIT License.
|
||
* http://opensource.org/licenses/mit-license
|
||
*/
|
||
function(er){var tr;er.events.push(["postPutResources",function(){var er=this,rr=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var nr=er.outline.render().split(/\r\n/),ir=0;ir<nr.length;ir++){var or=nr[ir],ar=rr.exec(or);if(null!=ar){var sr=ar[1];er.internal.newObjectDeferredBegin(sr,!1)}er.internal.write(or)}if(this.outline.createNamedDestinations){var lr=this.internal.pages.length,cr=[];for(ir=0;ir<lr;ir++){var ur=er.internal.newObject();cr.push(ur);var dr=er.internal.getPageInfo(ir+1);er.internal.write("<< /D["+dr.objId+" 0 R /XYZ null null null]>> endobj")}var hr=er.internal.newObject();for(er.internal.write("<< /Names [ "),ir=0;ir<cr.length;ir++)er.internal.write("(page_"+(ir+1)+")"+cr[ir]+" 0 R");er.internal.write(" ] >>","endobj"),tr=er.internal.newObject(),er.internal.write("<< /Dests "+hr+" 0 R"),er.internal.write(">>","endobj")}}]),er.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+tr+" 0 R"))}]),er.events.push(["initialized",function(){var er=this;er.outline={createNamedDestinations:!1,root:{children:[]}},er.outline.add=function(er,tr,rr){var nr={title:tr,options:rr,children:[]};return null==er&&(er=this.root),er.children.push(nr),nr},er.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=er,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},er.outline.genIds_r=function(tr){tr.id=er.internal.newObjectDeferred();for(var rr=0;rr<tr.children.length;rr++)this.genIds_r(tr.children[rr])},er.outline.renderRoot=function(er){this.objStart(er),this.line("/Type /Outlines"),er.children.length>0&&(this.line("/First "+this.makeRef(er.children[0])),this.line("/Last "+this.makeRef(er.children[er.children.length-1]))),this.line("/Count "+this.count_r({count:0},er)),this.objEnd()},er.outline.renderItems=function(tr){for(var rr=this.ctx.pdf.internal.getVerticalCoordinateString,nr=0;nr<tr.children.length;nr++){var ir=tr.children[nr];this.objStart(ir),this.line("/Title "+this.makeString(ir.title)),this.line("/Parent "+this.makeRef(tr)),nr>0&&this.line("/Prev "+this.makeRef(tr.children[nr-1])),nr<tr.children.length-1&&this.line("/Next "+this.makeRef(tr.children[nr+1])),ir.children.length>0&&(this.line("/First "+this.makeRef(ir.children[0])),this.line("/Last "+this.makeRef(ir.children[ir.children.length-1])));var or=this.count=this.count_r({count:0},ir);if(or>0&&this.line("/Count "+or),ir.options&&ir.options.pageNumber){var ar=er.internal.getPageInfo(ir.options.pageNumber);this.line("/Dest ["+ar.objId+" 0 R /XYZ 0 "+rr(0)+" 0]")}this.objEnd()}for(var sr=0;sr<tr.children.length;sr++)this.renderItems(tr.children[sr])},er.outline.line=function(er){this.ctx.val+=er+"\r\n"},er.outline.makeRef=function(er){return er.id+" 0 R"},er.outline.makeString=function(tr){return"("+er.internal.pdfEscape(tr)+")"},er.outline.objStart=function(er){this.ctx.val+="\r\n"+er.id+" 0 obj\r\n<<\r\n"},er.outline.objEnd=function(){this.ctx.val+=">> \r\nendobj\r\n"},er.outline.count_r=function(er,tr){for(var rr=0;rr<tr.children.length;rr++)er.count++,this.count_r(er,tr.children[rr]);return er.count}}])}(g.API),
|
||
/**
|
||
* @license
|
||
*
|
||
* Licensed under the MIT License.
|
||
* http://opensource.org/licenses/mit-license
|
||
*/
|
||
function(er){var tr=[192,193,194,195,196,197,198,199];er.processJPEG=function(er,rr,nr,ir,or,ar){var sr,lr=this.decode.DCT_DECODE,cr=null;if("string"==typeof er||this.__addimage__.isArrayBuffer(er)||this.__addimage__.isArrayBufferView(er)){switch(er=or||er,er=this.__addimage__.isArrayBuffer(er)?new Uint8Array(er):er,(sr=function(er){for(var rr,nr=256*er.charCodeAt(4)+er.charCodeAt(5),ir=er.length,or={width:0,height:0,numcomponents:1},ar=4;ar<ir;ar+=2){if(ar+=nr,-1!==tr.indexOf(er.charCodeAt(ar+1))){rr=256*er.charCodeAt(ar+5)+er.charCodeAt(ar+6),or={width:256*er.charCodeAt(ar+7)+er.charCodeAt(ar+8),height:rr,numcomponents:er.charCodeAt(ar+9)};break}nr=256*er.charCodeAt(ar+2)+er.charCodeAt(ar+3)}return or}(er=this.__addimage__.isArrayBufferView(er)?this.__addimage__.arrayBufferToBinaryString(er):er)).numcomponents){case 1:ar=this.color_spaces.DEVICE_GRAY;break;case 4:ar=this.color_spaces.DEVICE_CMYK;break;case 3:ar=this.color_spaces.DEVICE_RGB}cr={data:er,width:sr.width,height:sr.height,colorSpace:ar,bitsPerComponent:8,filter:lr,index:rr,alias:nr}}return cr}}(g.API);
|
||
/**
|
||
* @license
|
||
* Extracted from pdf.js
|
||
* https://github.com/andreasgal/pdf.js
|
||
*
|
||
* Copyright (c) 2011 Mozilla Foundation
|
||
*
|
||
* Contributors: Andreas Gal <gal@mozilla.com>
|
||
* Chris G Jones <cjones@mozilla.com>
|
||
* Shaon Barman <shaon.barman@gmail.com>
|
||
* Vivien Nicolas <21@vingtetun.org>
|
||
* Justin D'Arcangelo <justindarc@gmail.com>
|
||
* Yury Delendik
|
||
*
|
||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||
* copy of this software and associated documentation files (the "Software"),
|
||
* to deal in the Software without restriction, including without limitation
|
||
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||
* and/or sell copies of the Software, and to permit persons to whom the
|
||
* Software is furnished to do so, subject to the following conditions:
|
||
*
|
||
* The above copyright notice and this permission notice shall be included in
|
||
* all copies or substantial portions of the Software.
|
||
*
|
||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||
* DEALINGS IN THE SOFTWARE.
|
||
*/
|
||
var Hg,Gg,Vg,zg,Kg,qg=function(){function t(){this.pos=0,this.bufferLength=0,this.eof=!1,this.buffer=null}return t.prototype={ensureBuffer:function ensureBuffer(er){var tr=this.buffer,rr=tr?tr.byteLength:0;if(er<rr)return tr;for(var nr=512;nr<er;)nr<<=1;for(var ir=new Uint8Array(nr),or=0;or<rr;++or)ir[or]=tr[or];return this.buffer=ir},getByte:function getByte(){for(var er=this.pos;this.bufferLength<=er;){if(this.eof)return null;this.readBlock()}return this.buffer[this.pos++]},getBytes:function getBytes(er){var tr=this.pos;if(er){this.ensureBuffer(tr+er);for(var rr=tr+er;!this.eof&&this.bufferLength<rr;)this.readBlock();var nr=this.bufferLength;rr>nr&&(rr=nr)}else{for(;!this.eof;)this.readBlock();rr=this.bufferLength}return this.pos=rr,this.buffer.subarray(tr,rr)},lookChar:function lookChar(){for(var er=this.pos;this.bufferLength<=er;){if(this.eof)return null;this.readBlock()}return String.fromCharCode(this.buffer[this.pos])},getChar:function getChar(){for(var er=this.pos;this.bufferLength<=er;){if(this.eof)return null;this.readBlock()}return String.fromCharCode(this.buffer[this.pos++])},makeSubStream:function makeSubStream(er,tr,rr){for(var nr=er+tr;this.bufferLength<=nr&&!this.eof;)this.readBlock();return new Stream(this.buffer,er,tr,rr)},skip:function skip(er){er||(er=1),this.pos+=er},reset:function reset(){this.pos=0}},t}(),Wg=("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||void 0!==Nf&&Nf||Function('return typeof this === "object" && this.content')()||Function("return this")()).FlateStream=function(){if("undefined"!=typeof Uint32Array){var er=new Uint32Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),tr=new Uint32Array([3,4,5,6,7,8,9,10,65547,65549,65551,65553,131091,131095,131099,131103,196643,196651,196659,196667,262211,262227,262243,262259,327811,327843,327875,327907,258,258,258]),rr=new Uint32Array([1,2,3,4,65541,65543,131081,131085,196625,196633,262177,262193,327745,327777,393345,393409,459009,459137,524801,525057,590849,591361,657409,658433,724993,727041,794625,798721,868353,876545]),nr=[new Uint32Array([459008,524368,524304,524568,459024,524400,524336,590016,459016,524384,524320,589984,524288,524416,524352,590048,459012,524376,524312,589968,459028,524408,524344,590032,459020,524392,524328,59e4,524296,524424,524360,590064,459010,524372,524308,524572,459026,524404,524340,590024,459018,524388,524324,589992,524292,524420,524356,590056,459014,524380,524316,589976,459030,524412,524348,590040,459022,524396,524332,590008,524300,524428,524364,590072,459009,524370,524306,524570,459025,524402,524338,590020,459017,524386,524322,589988,524290,524418,524354,590052,459013,524378,524314,589972,459029,524410,524346,590036,459021,524394,524330,590004,524298,524426,524362,590068,459011,524374,524310,524574,459027,524406,524342,590028,459019,524390,524326,589996,524294,524422,524358,590060,459015,524382,524318,589980,459031,524414,524350,590044,459023,524398,524334,590012,524302,524430,524366,590076,459008,524369,524305,524569,459024,524401,524337,590018,459016,524385,524321,589986,524289,524417,524353,590050,459012,524377,524313,589970,459028,524409,524345,590034,459020,524393,524329,590002,524297,524425,524361,590066,459010,524373,524309,524573,459026,524405,524341,590026,459018,524389,524325,589994,524293,524421,524357,590058,459014,524381,524317,589978,459030,524413,524349,590042,459022,524397,524333,590010,524301,524429,524365,590074,459009,524371,524307,524571,459025,524403,524339,590022,459017,524387,524323,589990,524291,524419,524355,590054,459013,524379,524315,589974,459029,524411,524347,590038,459021,524395,524331,590006,524299,524427,524363,590070,459011,524375,524311,524575,459027,524407,524343,590030,459019,524391,524327,589998,524295,524423,524359,590062,459015,524383,524319,589982,459031,524415,524351,590046,459023,524399,524335,590014,524303,524431,524367,590078,459008,524368,524304,524568,459024,524400,524336,590017,459016,524384,524320,589985,524288,524416,524352,590049,459012,524376,524312,589969,459028,524408,524344,590033,459020,524392,524328,590001,524296,524424,524360,590065,459010,524372,524308,524572,459026,524404,524340,590025,459018,524388,524324,589993,524292,524420,524356,590057,459014,524380,524316,589977,459030,524412,524348,590041,459022,524396,524332,590009,524300,524428,524364,590073,459009,524370,524306,524570,459025,524402,524338,590021,459017,524386,524322,589989,524290,524418,524354,590053,459013,524378,524314,589973,459029,524410,524346,590037,459021,524394,524330,590005,524298,524426,524362,590069,459011,524374,524310,524574,459027,524406,524342,590029,459019,524390,524326,589997,524294,524422,524358,590061,459015,524382,524318,589981,459031,524414,524350,590045,459023,524398,524334,590013,524302,524430,524366,590077,459008,524369,524305,524569,459024,524401,524337,590019,459016,524385,524321,589987,524289,524417,524353,590051,459012,524377,524313,589971,459028,524409,524345,590035,459020,524393,524329,590003,524297,524425,524361,590067,459010,524373,524309,524573,459026,524405,524341,590027,459018,524389,524325,589995,524293,524421,524357,590059,459014,524381,524317,589979,459030,524413,524349,590043,459022,524397,524333,590011,524301,524429,524365,590075,459009,524371,524307,524571,459025,524403,524339,590023,459017,524387,524323,589991,524291,524419,524355,590055,459013,524379,524315,589975,459029,524411,524347,590039,459021,524395,524331,590007,524299,524427,524363,590071,459011,524375,524311,524575,459027,524407,524343,590031,459019,524391,524327,589999,524295,524423,524359,590063,459015,524383,524319,589983,459031,524415,524351,590047,459023,524399,524335,590015,524303,524431,524367,590079]),9],ir=[new Uint32Array([327680,327696,327688,327704,327684,327700,327692,327708,327682,327698,327690,327706,327686,327702,327694,0,327681,327697,327689,327705,327685,327701,327693,327709,327683,327699,327691,327707,327687,327703,327695,0]),5];return o.prototype=Object.create(qg.prototype),o.prototype.getBits=function(er){for(var tr,rr=this.codeSize,nr=this.codeBuf,ir=this.bytes,or=this.bytesPos;rr<er;)void 0===(tr=ir[or++])&&a("Bad encoding in flate stream"),nr|=tr<<rr,rr+=8;return tr=nr&(1<<er)-1,this.codeBuf=nr>>er,this.codeSize=rr-=er,this.bytesPos=or,tr},o.prototype.getCode=function(er){for(var tr=er[0],rr=er[1],nr=this.codeSize,ir=this.codeBuf,or=this.bytes,ar=this.bytesPos;nr<rr;){var sr;void 0===(sr=or[ar++])&&a("Bad encoding in flate stream"),ir|=sr<<nr,nr+=8}var lr=tr[ir&(1<<rr)-1],cr=lr>>16,ur=65535&lr;return(0==nr||nr<cr||0==cr)&&a("Bad encoding in flate stream"),this.codeBuf=ir>>cr,this.codeSize=nr-cr,this.bytesPos=ar,ur},o.prototype.generateHuffmanTable=function(er){for(var tr=er.length,rr=0,nr=0;nr<tr;++nr)er[nr]>rr&&(rr=er[nr]);for(var ir=1<<rr,or=new Uint32Array(ir),ar=1,sr=0,lr=2;ar<=rr;++ar,sr<<=1,lr<<=1)for(var cr=0;cr<tr;++cr)if(er[cr]==ar){var ur=0,dr=sr;for(nr=0;nr<ar;++nr)ur=ur<<1|1&dr,dr>>=1;for(nr=ur;nr<ir;nr+=lr)or[nr]=ar<<16|cr;++sr}return[or,rr]},o.prototype.readBlock=function(){function o(er,tr,rr,nr,ir){for(var or=er.getBits(rr)+nr;or-- >0;)tr[hr++]=ir}var or=this.getBits(3);if(1&or&&(this.eof=!0),0!=(or>>=1)){var ar,sr;if(1==or)ar=nr,sr=ir;else if(2==or){for(var lr=this.getBits(5)+257,cr=this.getBits(5)+1,ur=this.getBits(4)+4,dr=Array(er.length),hr=0;hr<ur;)dr[er[hr++]]=this.getBits(3);for(var pr=this.generateHuffmanTable(dr),Ar=0,fr=(hr=0,lr+cr),gr=new Array(fr);hr<fr;){var mr=this.getCode(pr);16==mr?o(this,gr,2,3,Ar):17==mr?o(this,gr,3,3,Ar=0):18==mr?o(this,gr,7,11,Ar=0):gr[hr++]=Ar=mr}ar=this.generateHuffmanTable(gr.slice(0,lr)),sr=this.generateHuffmanTable(gr.slice(lr,fr))}else a("Unknown block type in flate stream");for(var _r=(Lr=this.buffer)?Lr.length:0,vr=this.bufferLength;;){var yr=this.getCode(ar);if(yr<256)vr+1>=_r&&(_r=(Lr=this.ensureBuffer(vr+1)).length),Lr[vr++]=yr;else{if(256==yr)return void(this.bufferLength=vr);var br=(yr=tr[yr-=257])>>16;br>0&&(br=this.getBits(br)),Ar=(65535&yr)+br,yr=this.getCode(sr),(br=(yr=rr[yr])>>16)>0&&(br=this.getBits(br));var wr=(65535&yr)+br;vr+Ar>=_r&&(_r=(Lr=this.ensureBuffer(vr+Ar)).length);for(var Sr=0;Sr<Ar;++Sr,++vr)Lr[vr]=Lr[vr-wr]}}}else{var xr,kr=this.bytes,Cr=this.bytesPos;void 0===(xr=kr[Cr++])&&a("Bad block header in flate stream");var Br=xr;void 0===(xr=kr[Cr++])&&a("Bad block header in flate stream"),Br|=xr<<8,void 0===(xr=kr[Cr++])&&a("Bad block header in flate stream");var Er=xr;void 0===(xr=kr[Cr++])&&a("Bad block header in flate stream"),(Er|=xr<<8)!=(65535&~Br)&&a("Bad uncompressed block length in flate stream"),this.codeBuf=0,this.codeSize=0;var Nr=this.bufferLength,Lr=this.ensureBuffer(Nr+Br),Tr=Nr+Br;this.bufferLength=Tr;for(var Pr=Nr;Pr<Tr;++Pr){if(void 0===(xr=kr[Cr++])){this.eof=!0;break}Lr[Pr]=xr}this.bytesPos=Cr}},o}function a(er){throw new Error(er)}function o(er){var tr=0,rr=er[tr++],nr=er[tr++];-1!=rr&&-1!=nr||a("Invalid header in flate stream"),8!=(15&rr)&&a("Unknown compression method in flate stream"),((rr<<8)+nr)%31!=0&&a("Bad FCHECK in flate stream"),32&nr&&a("FDICT bit set in flate stream"),this.bytes=er,this.bytesPos=2,this.codeSize=0,this.codeBuf=0,qg.call(this)}}(),Xg=function(){var er,tr,rr;function i(er){var tr,rr,nr,ir,or,ar,sr,lr,cr,ur,dr,hr,pr,Ar;for(this.data=er,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},ar=null;;){switch(tr=this.readUInt32(),cr=function(){var er,tr;for(tr=[],er=0;er<4;++er)tr.push(String.fromCharCode(this.data[this.pos++]));return tr}.call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(tr);break;case"fcTL":ar&&this.animation.frames.push(ar),this.pos+=4,ar={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},or=this.readUInt16(),ir=this.readUInt16()||100,ar.delay=1e3*or/ir,ar.disposeOp=this.data[this.pos++],ar.blendOp=this.data[this.pos++],ar.data=[];break;case"IDAT":case"fdAT":for("fdAT"===cr&&(this.pos+=4,tr-=4),er=(null!=ar?ar.data:void 0)||this.imgData,hr=0;0<=tr?hr<tr:hr>tr;0<=tr?++hr:--hr)er.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(nr=this.palette.length/3,this.transparency.indexed=this.read(tr),this.transparency.indexed.length>nr)throw new Error("More transparent colors than palette size");if((ur=nr-this.transparency.indexed.length)>0)for(pr=0;0<=ur?pr<ur:pr>ur;0<=ur?++pr:--pr)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(tr)[0];break;case 2:this.transparency.rgb=this.read(tr)}break;case"tEXt":sr=(dr=this.read(tr)).indexOf(0),lr=String.fromCharCode.apply(String,dr.slice(0,sr)),this.text[lr]=String.fromCharCode.apply(String,dr.slice(sr+1));break;case"IEND":return ar&&this.animation.frames.push(ar),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=4===(Ar=this.colorType)||6===Ar,rr=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*rr,this.colorSpace=function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}.call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=tr}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}i.prototype.read=function(er){var tr,rr;for(rr=[],tr=0;0<=er?tr<er:tr>er;0<=er?++tr:--tr)rr.push(this.data[this.pos++]);return rr},i.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},i.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},i.prototype.decodePixels=function(er){var tr=this.pixelBitlength/8,rr=new Uint8Array(this.width*this.height*tr),nr=0,ir=this;if(null==er&&(er=this.imgData),0===er.length)return new Uint8Array(0);function a(or,ar,sr,lr){var cr,ur,dr,hr,pr,Ar,fr,gr,mr,_r,vr,yr,br,wr,Sr,xr,kr,Cr,Br,Er,Nr,Lr=Math.ceil((ir.width-or)/sr),Tr=Math.ceil((ir.height-ar)/lr),Pr=ir.width==Lr&&ir.height==Tr;for(wr=tr*Lr,yr=Pr?rr:new Uint8Array(wr*Tr),Ar=er.length,br=0,ur=0;br<Tr&&nr<Ar;){switch(er[nr++]){case 0:for(hr=kr=0;kr<wr;hr=kr+=1)yr[ur++]=er[nr++];break;case 1:for(hr=Cr=0;Cr<wr;hr=Cr+=1)cr=er[nr++],pr=hr<tr?0:yr[ur-tr],yr[ur++]=(cr+pr)%256;break;case 2:for(hr=Br=0;Br<wr;hr=Br+=1)cr=er[nr++],dr=(hr-hr%tr)/tr,Sr=br&&yr[(br-1)*wr+dr*tr+hr%tr],yr[ur++]=(Sr+cr)%256;break;case 3:for(hr=Er=0;Er<wr;hr=Er+=1)cr=er[nr++],dr=(hr-hr%tr)/tr,pr=hr<tr?0:yr[ur-tr],Sr=br&&yr[(br-1)*wr+dr*tr+hr%tr],yr[ur++]=(cr+Math.floor((pr+Sr)/2))%256;break;case 4:for(hr=Nr=0;Nr<wr;hr=Nr+=1)cr=er[nr++],dr=(hr-hr%tr)/tr,pr=hr<tr?0:yr[ur-tr],0===br?Sr=xr=0:(Sr=yr[(br-1)*wr+dr*tr+hr%tr],xr=dr&&yr[(br-1)*wr+(dr-1)*tr+hr%tr]),fr=pr+Sr-xr,gr=Math.abs(fr-pr),_r=Math.abs(fr-Sr),vr=Math.abs(fr-xr),mr=gr<=_r&&gr<=vr?pr:_r<=vr?Sr:xr,yr[ur++]=(cr+mr)%256;break;default:throw new Error("Invalid filter algorithm: "+er[nr-1])}if(!Pr){var Fr=((ar+br*lr)*ir.width+or)*tr,Ur=br*wr;for(hr=0;hr<Lr;hr+=1){for(var Ir=0;Ir<tr;Ir+=1)rr[Fr++]=yr[Ur++];Fr+=(sr-1)*tr}}br++}}return er=(er=new Wg(er)).getBytes(),1==ir.interlaceMethod?(a(0,0,8,8),a(4,0,8,8),a(0,4,4,8),a(2,0,4,4),a(0,2,2,4),a(1,0,2,2),a(0,1,1,2)):a(0,0,1,1),rr},i.prototype.decodePalette=function(){var er,tr,rr,nr,ir,or,ar,sr,lr;for(rr=this.palette,or=this.transparency.indexed||[],ir=new Uint8Array((or.length||0)+rr.length),nr=0,er=0,tr=ar=0,sr=rr.length;ar<sr;tr=ar+=3)ir[nr++]=rr[tr],ir[nr++]=rr[tr+1],ir[nr++]=rr[tr+2],ir[nr++]=null!=(lr=or[er++])?lr:255;return ir},i.prototype.copyToImageData=function(er,tr){var rr,nr,ir,or,ar,sr,lr,cr,ur,dr,hr;if(nr=this.colors,ur=null,rr=this.hasAlphaChannel,this.palette.length&&(ur=null!=(hr=this._decodedPalette)?hr:this._decodedPalette=this.decodePalette(),nr=4,rr=!0),cr=(ir=er.data||er).length,ar=ur||tr,or=sr=0,1===nr)for(;or<cr;)lr=ur?4*tr[or/4]:sr,dr=ar[lr++],ir[or++]=dr,ir[or++]=dr,ir[or++]=dr,ir[or++]=rr?ar[lr++]:255,sr=lr;else for(;or<cr;)lr=ur?4*tr[or/4]:sr,ir[or++]=ar[lr++],ir[or++]=ar[lr++],ir[or++]=ar[lr++],ir[or++]=rr?ar[lr++]:255,sr=lr},i.prototype.decode=function(){var er;return er=new Uint8Array(this.width*this.height*4),this.copyToImageData(er,this.decodePixels()),er};var nr=function a(){if("[object Window]"===Object.prototype.toString.call(Mf)){try{tr=Mf.document.createElement("canvas"),rr=tr.getContext("2d")}catch(er){return!1}return!0}return!1};return nr(),er=function e(er){var e;if(!0===nr())return rr.width=er.width,rr.height=er.height,rr.clearRect(0,0,er.width,er.height),rr.putImageData(er,0,0),(e=new Image).src=tr.toDataURL(),e;throw new Error("This method requires a Browser with Canvas-capability.")},i.prototype.decodeFrames=function(tr){var rr,nr,ir,or,ar,sr,lr,cr;if(this.animation){for(cr=[],nr=ar=0,sr=(lr=this.animation.frames).length;ar<sr;nr=++ar)rr=lr[nr],ir=tr.createImageData(rr.width,rr.height),or=this.decodePixels(new Uint8Array(rr.data)),this.copyToImageData(ir,or),rr.imageData=ir,cr.push(rr.image=er(ir));return cr}},i.prototype.renderFrame=function(er,tr){var rr,nr,ir;return rr=(nr=this.animation.frames)[tr],ir=nr[tr-1],0===tr&&er.clearRect(0,0,this.width,this.height),1===(null!=ir?ir.disposeOp:void 0)?er.clearRect(ir.xOffset,ir.yOffset,ir.width,ir.height):2===(null!=ir?ir.disposeOp:void 0)&&er.putImageData(ir.imageData,ir.xOffset,ir.yOffset),0===rr.blendOp&&er.clearRect(rr.xOffset,rr.yOffset,rr.width,rr.height),er.drawImage(rr.image,rr.xOffset,rr.yOffset)},i.prototype.animate=function(er){var tr,rr,nr,ir,or,ar,sr=this;return rr=0,ar=this.animation,ir=ar.numFrames,nr=ar.frames,or=ar.numPlays,(tr=function e(){var ar,lr;if(ar=rr++%ir,lr=nr[ar],sr.renderFrame(er,ar),ir>1&&rr/ir<or)return sr.animation._timeout=setTimeout(tr,lr.delay)})()},i.prototype.stopAnimation=function(){var er;return clearTimeout(null!=(er=this.animation)?er._timeout:void 0)},i.prototype.render=function(er){var tr,rr;return er._png&&er._png.stopAnimation(),er._png=this,er.width=this.width,er.height=this.height,tr=er.getContext("2d"),this.animation?(this.decodeFrames(tr),this.animate(tr)):(rr=tr.createImageData(this.width,this.height),this.copyToImageData(rr,this.decodePixels()),tr.putImageData(rr,0,0))},i}();
|
||
/**
|
||
* @license
|
||
* (c) Dean McNamee <dean@gmail.com>, 2013.
|
||
*
|
||
* https://github.com/deanm/omggif
|
||
*
|
||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||
* of this software and associated documentation files (the "Software"), to
|
||
* deal in the Software without restriction, including without limitation the
|
||
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
||
* sell copies of the Software, and to permit persons to whom the Software is
|
||
* furnished to do so, subject to the following conditions:
|
||
*
|
||
* The above copyright notice and this permission notice shall be included in
|
||
* all copies or substantial portions of the Software.
|
||
*
|
||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||
* IN THE SOFTWARE.
|
||
*
|
||
* omggif is a JavaScript implementation of a GIF 89a encoder and decoder,
|
||
* including animation and compression. It does not rely on any specific
|
||
* underlying system, so should run in the browser, Node, or Plask.
|
||
*/function jt(er){var tr=0;if(71!==er[tr++]||73!==er[tr++]||70!==er[tr++]||56!==er[tr++]||56!=(er[tr++]+1&253)||97!==er[tr++])throw new Error("Invalid GIF 87a/89a header.");var rr=er[tr++]|er[tr++]<<8,nr=er[tr++]|er[tr++]<<8,ir=er[tr++],or=ir>>7,ar=1<<1+(7&ir);er[tr++],er[tr++];var sr=null,lr=null;or&&(sr=tr,lr=ar,tr+=3*ar);var cr=!0,ur=[],dr=0,hr=null,pr=0,Ar=null;for(this.width=rr,this.height=nr;cr&&tr<er.length;)switch(er[tr++]){case 33:switch(er[tr++]){case 255:if(11!==er[tr]||78==er[tr+1]&&69==er[tr+2]&&84==er[tr+3]&&83==er[tr+4]&&67==er[tr+5]&&65==er[tr+6]&&80==er[tr+7]&&69==er[tr+8]&&50==er[tr+9]&&46==er[tr+10]&&48==er[tr+11]&&3==er[tr+12]&&1==er[tr+13]&&0==er[tr+16])tr+=14,Ar=er[tr++]|er[tr++]<<8,tr++;else for(tr+=12;;){if(!((Br=er[tr++])>=0))throw Error("Invalid block size");if(0===Br)break;tr+=Br}break;case 249:if(4!==er[tr++]||0!==er[tr+4])throw new Error("Invalid graphics extension block.");var fr=er[tr++];dr=er[tr++]|er[tr++]<<8,hr=er[tr++],0==(1&fr)&&(hr=null),pr=fr>>2&7,tr++;break;case 254:for(;;){if(!((Br=er[tr++])>=0))throw Error("Invalid block size");if(0===Br)break;tr+=Br}break;default:throw new Error("Unknown graphic control label: 0x"+er[tr-1].toString(16))}break;case 44:var gr=er[tr++]|er[tr++]<<8,mr=er[tr++]|er[tr++]<<8,_r=er[tr++]|er[tr++]<<8,vr=er[tr++]|er[tr++]<<8,yr=er[tr++],br=yr>>6&1,wr=1<<1+(7&yr),Sr=sr,xr=lr,kr=!1;yr>>7&&(kr=!0,Sr=tr,xr=wr,tr+=3*wr);var Cr=tr;for(tr++;;){var Br;if(!((Br=er[tr++])>=0))throw Error("Invalid block size");if(0===Br)break;tr+=Br}ur.push({x:gr,y:mr,width:_r,height:vr,has_local_palette:kr,palette_offset:Sr,palette_size:xr,data_offset:Cr,data_length:tr-Cr,transparent_index:hr,interlaced:!!br,delay:dr,disposal:pr});break;case 59:cr=!1;break;default:throw new Error("Unknown gif block: 0x"+er[tr-1].toString(16))}this.numFrames=function(){return ur.length},this.loopCount=function(){return Ar},this.frameInfo=function(er){if(er<0||er>=ur.length)throw new Error("Frame index out of range.");return ur[er]},this.decodeAndBlitFrameBGRA=function(tr,nr){var ir=this.frameInfo(tr),or=ir.width*ir.height,ar=new Uint8Array(or);Bt(er,ir.data_offset,ar,or);var sr=ir.palette_offset,lr=ir.transparent_index;null===lr&&(lr=256);var cr=ir.width,ur=rr-cr,dr=cr,hr=4*(ir.y*rr+ir.x),pr=4*((ir.y+ir.height)*rr+ir.x),Ar=hr,fr=4*ur;!0===ir.interlaced&&(fr+=4*rr*7);for(var gr=8,mr=0,_r=ar.length;mr<_r;++mr){var vr=ar[mr];if(0===dr&&(dr=cr,(Ar+=fr)>=pr&&(fr=4*ur+4*rr*(gr-1),Ar=hr+(cr+ur)*(gr<<1),gr>>=1)),vr===lr)Ar+=4;else{var yr=er[sr+3*vr],br=er[sr+3*vr+1],wr=er[sr+3*vr+2];nr[Ar++]=wr,nr[Ar++]=br,nr[Ar++]=yr,nr[Ar++]=255}--dr}},this.decodeAndBlitFrameRGBA=function(tr,nr){var ir=this.frameInfo(tr),or=ir.width*ir.height,ar=new Uint8Array(or);Bt(er,ir.data_offset,ar,or);var sr=ir.palette_offset,lr=ir.transparent_index;null===lr&&(lr=256);var cr=ir.width,ur=rr-cr,dr=cr,hr=4*(ir.y*rr+ir.x),pr=4*((ir.y+ir.height)*rr+ir.x),Ar=hr,fr=4*ur;!0===ir.interlaced&&(fr+=4*rr*7);for(var gr=8,mr=0,_r=ar.length;mr<_r;++mr){var vr=ar[mr];if(0===dr&&(dr=cr,(Ar+=fr)>=pr&&(fr=4*ur+4*rr*(gr-1),Ar=hr+(cr+ur)*(gr<<1),gr>>=1)),vr===lr)Ar+=4;else{var yr=er[sr+3*vr],br=er[sr+3*vr+1],wr=er[sr+3*vr+2];nr[Ar++]=yr,nr[Ar++]=br,nr[Ar++]=wr,nr[Ar++]=255}--dr}}}function Bt(er,tr,rr,nr){for(var ir=er[tr++],or=1<<ir,ar=or+1,sr=ar+1,lr=ir+1,cr=(1<<lr)-1,ur=0,dr=0,hr=0,pr=er[tr++],Ar=new Int32Array(4096),fr=null;;){for(;ur<16&&0!==pr;)dr|=er[tr++]<<ur,ur+=8,1===pr?pr=er[tr++]:--pr;if(ur<lr)break;var gr=dr&cr;if(dr>>=lr,ur-=lr,gr!==or){if(gr===ar)break;for(var mr=gr<sr?gr:fr,_r=0,vr=mr;vr>or;)vr=Ar[vr]>>8,++_r;var yr=vr;if(hr+_r+(mr!==gr?1:0)>nr)return void Of.log("Warning, gif stream longer than expected.");rr[hr++]=yr;var br=hr+=_r;for(mr!==gr&&(rr[hr++]=yr),vr=mr;_r--;)vr=Ar[vr],rr[--br]=255&vr,vr>>=8;null!==fr&&sr<4096&&(Ar[sr++]=fr<<8|yr,sr>=cr+1&&lr<12&&(++lr,cr=cr<<1|1)),fr=gr}else sr=ar+1,cr=(1<<(lr=ir+1))-1,fr=null}return hr!==nr&&Of.log("Warning, gif stream shorter than expected."),rr
|
||
/**
|
||
* @license
|
||
Copyright (c) 2008, Adobe Systems Incorporated
|
||
All rights reserved.
|
||
|
||
Redistribution and use in source and binary forms, with or without
|
||
modification, are permitted provided that the following conditions are
|
||
met:
|
||
|
||
* Redistributions of source code must retain the above copyright notice,
|
||
this list of conditions and the following disclaimer.
|
||
|
||
* Redistributions in binary form must reproduce the above copyright
|
||
notice, this list of conditions and the following disclaimer in the
|
||
documentation and/or other materials provided with the distribution.
|
||
|
||
* Neither the name of Adobe Systems Incorporated nor the names of its
|
||
contributors may be used to endorse or promote products derived from
|
||
this software without specific prior written permission.
|
||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
|
||
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
||
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
||
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||
*/}function Ot(er){var tr,rr,nr,ir,or,ar=Math.floor,sr=new Array(64),lr=new Array(64),cr=new Array(64),ur=new Array(64),dr=new Array(65535),hr=new Array(65535),pr=new Array(64),Ar=new Array(64),fr=[],gr=0,mr=7,_r=new Array(64),vr=new Array(64),yr=new Array(64),br=new Array(256),wr=new Array(2048),Sr=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],xr=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],kr=[0,1,2,3,4,5,6,7,8,9,10,11],Cr=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],Br=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],Er=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],Nr=[0,1,2,3,4,5,6,7,8,9,10,11],Lr=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],Tr=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function j(er,tr){for(var rr=0,nr=0,ir=new Array,or=1;or<=16;or++){for(var ar=1;ar<=er[or];ar++)ir[tr[nr]]=[],ir[tr[nr]][0]=rr,ir[tr[nr]][1]=or,nr++,rr++;rr*=2}return ir}function B(er){for(var tr=er[0],rr=er[1]-1;rr>=0;)tr&1<<rr&&(gr|=1<<mr),rr--,--mr<0&&(255==gr?(O(255),O(0)):O(gr),mr=7,gr=0)}function O(er){fr.push(er)}function M(er){O(er>>8&255),O(255&er)}function E(er,tr,rr,nr,ir){for(var or,ar=ir[0],sr=ir[240],lr=function(er,tr){var rr,nr,ir,or,ar,sr,lr,cr,ur,dr,hr=0;for(ur=0;ur<8;++ur){rr=er[hr],nr=er[hr+1],ir=er[hr+2],or=er[hr+3],ar=er[hr+4],sr=er[hr+5],lr=er[hr+6];var Ar=rr+(cr=er[hr+7]),fr=rr-cr,gr=nr+lr,mr=nr-lr,_r=ir+sr,vr=ir-sr,yr=or+ar,br=or-ar,wr=Ar+yr,Sr=Ar-yr,xr=gr+_r,kr=gr-_r;er[hr]=wr+xr,er[hr+4]=wr-xr;var Cr=.707106781*(kr+Sr);er[hr+2]=Sr+Cr,er[hr+6]=Sr-Cr;var Br=.382683433*((wr=br+vr)-(kr=mr+fr)),Er=.5411961*wr+Br,Nr=1.306562965*kr+Br,Lr=.707106781*(xr=vr+mr),Tr=fr+Lr,Pr=fr-Lr;er[hr+5]=Pr+Er,er[hr+3]=Pr-Er,er[hr+1]=Tr+Nr,er[hr+7]=Tr-Nr,hr+=8}for(hr=0,ur=0;ur<8;++ur){rr=er[hr],nr=er[hr+8],ir=er[hr+16],or=er[hr+24],ar=er[hr+32],sr=er[hr+40],lr=er[hr+48];var Fr=rr+(cr=er[hr+56]),Ur=rr-cr,Ir=nr+lr,Rr=nr-lr,Mr=ir+sr,Or=ir-sr,Qr=or+ar,Dr=or-ar,jr=Fr+Qr,Hr=Fr-Qr,Gr=Ir+Mr,Vr=Ir-Mr;er[hr]=jr+Gr,er[hr+32]=jr-Gr;var zr=.707106781*(Vr+Hr);er[hr+16]=Hr+zr,er[hr+48]=Hr-zr;var Kr=.382683433*((jr=Dr+Or)-(Vr=Rr+Ur)),qr=.5411961*jr+Kr,Wr=1.306562965*Vr+Kr,Xr=.707106781*(Gr=Or+Rr),Yr=Ur+Xr,Jr=Ur-Xr;er[hr+40]=Jr+qr,er[hr+24]=Jr-qr,er[hr+8]=Yr+Wr,er[hr+56]=Yr-Wr,hr++}for(ur=0;ur<64;++ur)dr=er[ur]*tr[ur],pr[ur]=dr>0?dr+.5|0:dr-.5|0;return pr}(er,tr),cr=0;cr<64;++cr)Ar[Sr[cr]]=lr[cr];var ur=Ar[0]-rr;rr=Ar[0],0==ur?B(nr[0]):(B(nr[hr[or=32767+ur]]),B(dr[or]));for(var fr=63;fr>0&&0==Ar[fr];)fr--;if(0==fr)return B(ar),rr;for(var gr,mr=1;mr<=fr;){for(var _r=mr;0==Ar[mr]&&mr<=fr;)++mr;var vr=mr-_r;if(vr>=16){gr=vr>>4;for(var yr=1;yr<=gr;++yr)B(sr);vr&=15}or=32767+Ar[mr],B(ir[(vr<<4)+hr[or]]),B(dr[or]),mr++}return 63!=fr&&B(ar),rr}function q(er){er=Math.min(Math.max(er,1),100),or!=er&&(function(er){for(var tr=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],rr=0;rr<64;rr++){var nr=ar((tr[rr]*er+50)/100);nr=Math.min(Math.max(nr,1),255),sr[Sr[rr]]=nr}for(var ir=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],or=0;or<64;or++){var dr=ar((ir[or]*er+50)/100);dr=Math.min(Math.max(dr,1),255),lr[Sr[or]]=dr}for(var hr=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],pr=0,Ar=0;Ar<8;Ar++)for(var fr=0;fr<8;fr++)cr[pr]=1/(sr[Sr[pr]]*hr[Ar]*hr[fr]*8),ur[pr]=1/(lr[Sr[pr]]*hr[Ar]*hr[fr]*8),pr++}(er<50?Math.floor(5e3/er):Math.floor(200-2*er)),or=er)}this.encode=function(er,or){or&&q(or),fr=new Array,gr=0,mr=7,M(65496),M(65504),M(16),O(74),O(70),O(73),O(70),O(0),O(1),O(1),O(0),M(1),M(1),O(0),O(0),function(){M(65499),M(132),O(0);for(var er=0;er<64;er++)O(sr[er]);O(1);for(var tr=0;tr<64;tr++)O(lr[tr])}(),function(er,tr){M(65472),M(17),O(8),M(tr),M(er),O(3),O(1),O(17),O(0),O(2),O(17),O(1),O(3),O(17),O(1)}(er.width,er.height),function(){M(65476),M(418),O(0);for(var er=0;er<16;er++)O(xr[er+1]);for(var tr=0;tr<=11;tr++)O(kr[tr]);O(16);for(var rr=0;rr<16;rr++)O(Cr[rr+1]);for(var nr=0;nr<=161;nr++)O(Br[nr]);O(1);for(var ir=0;ir<16;ir++)O(Er[ir+1]);for(var or=0;or<=11;or++)O(Nr[or]);O(17);for(var ar=0;ar<16;ar++)O(Lr[ar+1]);for(var sr=0;sr<=161;sr++)O(Tr[sr])}(),M(65498),M(12),O(3),O(1),O(0),O(2),O(17),O(3),O(17),O(0),O(63),O(0);var ar=0,dr=0,hr=0;gr=0,mr=7,this.encode.displayName="_encode_";for(var pr,Ar,br,Sr,Pr,Fr,Ur,Ir,Rr,Mr=er.data,Or=er.width,Qr=er.height,Dr=4*Or,jr=0;jr<Qr;){for(pr=0;pr<Dr;){for(Pr=Dr*jr+pr,Ur=-1,Ir=0,Rr=0;Rr<64;Rr++)Fr=Pr+(Ir=Rr>>3)*Dr+(Ur=4*(7&Rr)),jr+Ir>=Qr&&(Fr-=Dr*(jr+1+Ir-Qr)),pr+Ur>=Dr&&(Fr-=pr+Ur-Dr+4),Ar=Mr[Fr++],br=Mr[Fr++],Sr=Mr[Fr++],_r[Rr]=(wr[Ar]+wr[br+256>>0]+wr[Sr+512>>0]>>16)-128,vr[Rr]=(wr[Ar+768>>0]+wr[br+1024>>0]+wr[Sr+1280>>0]>>16)-128,yr[Rr]=(wr[Ar+1280>>0]+wr[br+1536>>0]+wr[Sr+1792>>0]>>16)-128;ar=E(_r,cr,ar,tr,nr),dr=E(vr,ur,dr,rr,ir),hr=E(yr,ur,hr,rr,ir),pr+=32}jr+=8}if(mr>=0){var Hr=[];Hr[1]=mr+1,Hr[0]=(1<<mr+1)-1,B(Hr)}return M(65497),new Uint8Array(fr)},er=er||50,function(){for(var er=String.fromCharCode,tr=0;tr<256;tr++)br[tr]=er(tr)}(),tr=j(xr,kr),rr=j(Er,Nr),nr=j(Cr,Br),ir=j(Lr,Tr),function(){for(var er=1,tr=2,rr=1;rr<=15;rr++){for(var nr=er;nr<tr;nr++)hr[32767+nr]=rr,dr[32767+nr]=[],dr[32767+nr][1]=rr,dr[32767+nr][0]=nr;for(var ir=-(tr-1);ir<=-er;ir++)hr[32767+ir]=rr,dr[32767+ir]=[],dr[32767+ir][1]=rr,dr[32767+ir][0]=tr-1+ir;er<<=1,tr<<=1}}(),function(){for(var er=0;er<256;er++)wr[er]=19595*er,wr[er+256>>0]=38470*er,wr[er+512>>0]=7471*er+32768,wr[er+768>>0]=-11059*er,wr[er+1024>>0]=-21709*er,wr[er+1280>>0]=32768*er+8421375,wr[er+1536>>0]=-27439*er,wr[er+1792>>0]=-5329*er}(),q(er)}
|
||
/**
|
||
* @license
|
||
* Copyright (c) 2017 Aras Abbasi
|
||
*
|
||
* Licensed under the MIT License.
|
||
* http://opensource.org/licenses/mit-license
|
||
*/function Mt(er,tr){if(this.pos=0,this.buffer=er,this.datav=new DataView(er.buffer),this.is_with_alpha=!!tr,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,-1===["BM","BA","CI","CP","IC","PT"].indexOf(this.flag))throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function Et(er){function e(er){if(!er)throw Error("assert :P")}function n(er,tr,rr){for(var nr=0;4>nr;nr++)if(er[tr+nr]!=rr.charCodeAt(nr))return!0;return!1}function r(er,tr,rr,nr,ir){for(var or=0;or<ir;or++)er[tr+or]=rr[nr+or]}function i(er,tr,rr,nr){for(var ir=0;ir<nr;ir++)er[tr+ir]=rr}function a(er){return new Int32Array(er)}function o(er,tr){for(var rr=[],nr=0;nr<er;nr++)rr.push(new tr);return rr}function s(er,tr){var rr=[];return function t(er,rr,nr){for(var ir=nr[rr],or=0;or<ir&&(er.push(nr.length>rr+1?[]:new tr),!(nr.length<rr+1));or++)t(er[or],rr+1,nr)}(rr,0,er),rr}function u(er,tr){for(var rr="",nr=0;nr<4;nr++)rr+=String.fromCharCode(er[tr++]);return rr}function c(er,tr){return(er[tr+0]<<0|er[tr+1]<<8|er[tr+2]<<16)>>>0}function h(er,tr){return(er[tr+0]<<0|er[tr+1]<<8|er[tr+2]<<16|er[tr+3]<<24)>>>0}new(Et=function Et(){var er=this;function u(er,tr){for(var rr=1<<tr-1>>>0;er&rr;)rr>>>=1;return rr?(er&rr-1)+rr:er}function c(er,tr,rr,nr,ir){e(!(nr%rr));do{er[tr+(nr-=rr)]=ir}while(0<nr)}function h(er,tr,rr,nr,ir){if(e(2328>=ir),512>=ir)var or=a(512);else if(null==(or=a(ir)))return 0;return function(er,tr,rr,nr,ir,or){var ar,sr,lr=tr,cr=1<<rr,ur=a(16),dr=a(16);for(e(0!=ir),e(null!=nr),e(null!=er),e(0<rr),sr=0;sr<ir;++sr){if(15<nr[sr])return 0;++ur[nr[sr]]}if(ur[0]==ir)return 0;for(dr[1]=0,ar=1;15>ar;++ar){if(ur[ar]>1<<ar)return 0;dr[ar+1]=dr[ar]+ur[ar]}for(sr=0;sr<ir;++sr)ar=nr[sr],0<nr[sr]&&(or[dr[ar]++]=sr);if(1==dr[15])return(nr=new l).g=0,nr.value=or[0],c(er,lr,1,cr,nr),cr;var hr,pr=-1,Ar=cr-1,fr=0,gr=1,mr=1,_r=1<<rr;for(sr=0,ar=1,ir=2;ar<=rr;++ar,ir<<=1){if(gr+=mr<<=1,0>(mr-=ur[ar]))return 0;for(;0<ur[ar];--ur[ar])(nr=new l).g=ar,nr.value=or[sr++],c(er,lr+fr,ir,_r,nr),fr=u(fr,ar)}for(ar=rr+1,ir=2;15>=ar;++ar,ir<<=1){if(gr+=mr<<=1,0>(mr-=ur[ar]))return 0;for(;0<ur[ar];--ur[ar]){if(nr=new l,(fr&Ar)!=pr){for(lr+=_r,hr=1<<(pr=ar)-rr;15>pr&&!(0>=(hr-=ur[pr]));)++pr,hr<<=1;cr+=_r=1<<(hr=pr-rr),er[tr+(pr=fr&Ar)].g=hr+rr,er[tr+pr].value=lr-tr-pr}nr.g=ar-rr,nr.value=or[sr++],c(er,lr+(fr>>rr),ir,_r,nr),fr=u(fr,ar)}}return gr!=2*dr[15]-1?0:cr}(er,tr,rr,nr,ir,or)}function l(){this.value=this.g=0}function f(){this.value=this.g=0}function d(){this.G=o(5,l),this.H=a(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=o(tr,f)}function p(er,tr,rr,nr){e(null!=er),e(null!=tr),e(2147483648>nr),er.Ca=254,er.I=0,er.b=-8,er.Ka=0,er.oa=tr,er.pa=rr,er.Jd=tr,er.Yc=rr+nr,er.Zc=4<=nr?rr+nr-4+1:rr,S(er)}function g(er,tr){for(var rr=0;0<tr--;)rr|=k(er,128)<<tr;return rr}function m(er,tr){var rr=g(er,tr);return P(er)?-rr:rr}function v(er,tr,rr,nr){var ir,or=0;for(e(null!=er),e(null!=tr),e(4294967288>nr),er.Sb=nr,er.Ra=0,er.u=0,er.h=0,4<nr&&(nr=4),ir=0;ir<nr;++ir)or+=tr[rr+ir]<<8*ir;er.Ra=or,er.bb=nr,er.oa=tr,er.pa=rr}function b(er){for(;8<=er.u&&er.bb<er.Sb;)er.Ra>>>=8,er.Ra+=er.oa[er.pa+er.bb]<<ir-8>>>0,++er.bb,er.u-=8;x(er)&&(er.h=1,er.u=0)}function y(er,tr){if(e(0<=tr),!er.h&&tr<=nr){var ir=L(er)&rr[tr];return er.u+=tr,b(er),ir}return er.h=1,er.u=0}function w(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function N(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function L(er){return er.Ra>>>(er.u&ir-1)>>>0}function x(er){return e(er.bb<=er.Sb),er.h||er.bb==er.Sb&&er.u>ir}function A(er,tr){er.u=tr,er.h=x(er)}function _(er){er.u>=or&&(e(er.u>=or),b(er))}function S(er){e(null!=er&&null!=er.oa),er.pa<er.Zc?(er.I=(er.oa[er.pa++]|er.I<<8)>>>0,er.b+=8):(e(null!=er&&null!=er.oa),er.pa<er.Yc?(er.b+=8,er.I=er.oa[er.pa++]|er.I<<8):er.Ka?er.b=0:(er.I<<=8,er.b+=8,er.Ka=1))}function P(er){return g(er,1)}function k(er,tr){var rr=er.Ca;0>er.b&&S(er);var nr=er.b,ir=rr*tr>>>8,or=(er.I>>>nr>ir)+0;for(or?(rr-=ir,er.I-=ir+1<<nr>>>0):rr=ir+1,nr=rr,ir=0;256<=nr;)ir+=8,nr>>=8;return nr=7^ir+ar[nr],er.b-=nr,er.Ca=(rr<<nr)-1,or}function F(er,tr,rr){er[tr+0]=rr>>24&255,er[tr+1]=rr>>16&255,er[tr+2]=rr>>8&255,er[tr+3]=rr>>0&255}function I(er,tr){return er[tr+0]<<0|er[tr+1]<<8}function C(er,tr){return I(er,tr)|er[tr+2]<<16}function j(er,tr){return I(er,tr)|I(er,tr+2)<<16}function B(er,tr){var rr=1<<tr;return e(null!=er),e(0<tr),er.X=a(rr),null==er.X?0:(er.Mb=32-tr,er.Xa=tr,1)}function O(er,tr){e(null!=er),e(null!=tr),e(er.Xa==tr.Xa),r(tr.X,0,er.X,0,1<<tr.Xa)}function M(){this.X=[],this.Xa=this.Mb=0}function E(er,tr,rr,nr){e(null!=rr),e(null!=nr);var ir=rr[0],or=nr[0];return 0==ir&&(ir=(er*or+tr/2)/tr),0==or&&(or=(tr*ir+er/2)/er),0>=ir||0>=or?0:(rr[0]=ir,nr[0]=or,1)}function q(er,tr){return er+(1<<tr)-1>>>tr}function R(er,tr){return((4278255360&er)+(4278255360&tr)>>>0&4278255360)+((16711935&er)+(16711935&tr)>>>0&16711935)>>>0}function T(tr,rr){er[rr]=function(rr,nr,ir,or,ar,sr,lr){var cr;for(cr=0;cr<ar;++cr){var ur=er[tr](sr[lr+cr-1],ir,or+cr);sr[lr+cr]=R(rr[nr+cr],ur)}}}function D(){this.ud=this.hd=this.jd=0}function U(er,tr){return((4278124286&(er^tr))>>>1)+(er&tr)>>>0}function z(er){return 0<=er&&256>er?er:0>er?0:255<er?255:void 0}function H(er,tr){return z(er+(er-tr+.5>>1))}function W(er,tr,rr){return Math.abs(tr-rr)-Math.abs(er-rr)}function V(er,tr,rr,nr,ir,or,ar){for(nr=or[ar-1],rr=0;rr<ir;++rr)or[ar+rr]=nr=R(er[tr+rr],nr)}function G(er,tr,rr,nr,ir){var or;for(or=0;or<rr;++or){var ar=er[tr+or],sr=ar>>8&255,lr=16711935&(lr=(lr=16711935&ar)+((sr<<16)+sr));nr[ir+or]=(4278255360&ar)+lr>>>0}}function Y(er,tr){tr.jd=er>>0&255,tr.hd=er>>8&255,tr.ud=er>>16&255}function J(er,tr,rr,nr,ir,or){var ar;for(ar=0;ar<nr;++ar){var sr=tr[rr+ar],lr=sr>>>8,cr=sr,ur=255&(ur=(ur=sr>>>16)+((er.jd<<24>>24)*(lr<<24>>24)>>>5));cr=255&(cr=(cr+=(er.hd<<24>>24)*(lr<<24>>24)>>>5)+((er.ud<<24>>24)*(ur<<24>>24)>>>5)),ir[or+ar]=(4278255360&sr)+(ur<<16)+cr}}function X(tr,rr,nr,ir,or){er[rr]=function(er,tr,rr,nr,ar,sr,lr,cr,ur){for(nr=lr;nr<cr;++nr)for(lr=0;lr<ur;++lr)ar[sr++]=or(rr[ir(er[tr++])])},er[tr]=function(tr,rr,ar,sr,lr,cr,ur){var dr=8>>tr.b,hr=tr.Ea,pr=tr.K[0],Ar=tr.w;if(8>dr)for(tr=(1<<tr.b)-1,Ar=(1<<dr)-1;rr<ar;++rr){var fr,gr=0;for(fr=0;fr<hr;++fr)fr&tr||(gr=ir(sr[lr++])),cr[ur++]=or(pr[gr&Ar]),gr>>=dr}else er["VP8LMapColor"+nr](sr,lr,pr,Ar,cr,ur,rr,ar,hr)}}function K(er,tr,rr,nr,ir){for(rr=tr+rr;tr<rr;){var or=er[tr++];nr[ir++]=or>>16&255,nr[ir++]=or>>8&255,nr[ir++]=or>>0&255}}function Z(er,tr,rr,nr,ir){for(rr=tr+rr;tr<rr;){var or=er[tr++];nr[ir++]=or>>16&255,nr[ir++]=or>>8&255,nr[ir++]=or>>0&255,nr[ir++]=or>>24&255}}function $(er,tr,rr,nr,ir){for(rr=tr+rr;tr<rr;){var or=(ar=er[tr++])>>16&240|ar>>12&15,ar=ar>>0&240|ar>>28&15;nr[ir++]=or,nr[ir++]=ar}}function Q(er,tr,rr,nr,ir){for(rr=tr+rr;tr<rr;){var or=(ar=er[tr++])>>16&248|ar>>13&7,ar=ar>>5&224|ar>>3&31;nr[ir++]=or,nr[ir++]=ar}}function tt(er,tr,rr,nr,ir){for(rr=tr+rr;tr<rr;){var or=er[tr++];nr[ir++]=or>>0&255,nr[ir++]=or>>8&255,nr[ir++]=or>>16&255}}function et(er,tr,rr,nr,ir,or){if(0==or)for(rr=tr+rr;tr<rr;)F(nr,((or=er[tr++])[0]>>24|or[1]>>8&65280|or[2]<<8&16711680|or[3]<<24)>>>0),ir+=32;else r(nr,ir,er,tr,rr)}function nt(tr,rr){er[rr][0]=er[tr+"0"],er[rr][1]=er[tr+"1"],er[rr][2]=er[tr+"2"],er[rr][3]=er[tr+"3"],er[rr][4]=er[tr+"4"],er[rr][5]=er[tr+"5"],er[rr][6]=er[tr+"6"],er[rr][7]=er[tr+"7"],er[rr][8]=er[tr+"8"],er[rr][9]=er[tr+"9"],er[rr][10]=er[tr+"10"],er[rr][11]=er[tr+"11"],er[rr][12]=er[tr+"12"],er[rr][13]=er[tr+"13"],er[rr][14]=er[tr+"0"],er[rr][15]=er[tr+"0"]}function rt(er){return er==Gn||er==Vn||er==zn||er==Kn}function it(){this.eb=[],this.size=this.A=this.fb=0}function at(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function ot(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new it,this.f.kb=new at,this.sd=null}function st(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function ut(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function ct(er){return alert("todo:WebPSamplerProcessPlane"),er.T}function ht(er,tr){var rr=er.T,nr=tr.ba.f.RGBA,ir=nr.eb,or=nr.fb+er.ka*nr.A,ar=vi[tr.ba.S],sr=er.y,lr=er.O,cr=er.f,ur=er.N,dr=er.ea,hr=er.W,pr=tr.cc,Ar=tr.dc,fr=tr.Mc,gr=tr.Nc,mr=er.ka,_r=er.ka+er.T,vr=er.U,yr=vr+1>>1;for(0==mr?ar(sr,lr,null,null,cr,ur,dr,hr,cr,ur,dr,hr,ir,or,null,null,vr):(ar(tr.ec,tr.fc,sr,lr,pr,Ar,fr,gr,cr,ur,dr,hr,ir,or-nr.A,ir,or,vr),++rr);mr+2<_r;mr+=2)pr=cr,Ar=ur,fr=dr,gr=hr,ur+=er.Rc,hr+=er.Rc,or+=2*nr.A,ar(sr,(lr+=2*er.fa)-er.fa,sr,lr,pr,Ar,fr,gr,cr,ur,dr,hr,ir,or-nr.A,ir,or,vr);return lr+=er.fa,er.j+_r<er.o?(r(tr.ec,tr.fc,sr,lr,vr),r(tr.cc,tr.dc,cr,ur,yr),r(tr.Mc,tr.Nc,dr,hr,yr),rr--):1&_r||ar(sr,lr,null,null,cr,ur,dr,hr,cr,ur,dr,hr,ir,or+nr.A,null,null,vr),rr}function lt(er,tr,rr){var nr=er.F,ir=[er.J];if(null!=nr){var or=er.U,ar=tr.ba.S,sr=ar==Qn||ar==zn;tr=tr.ba.f.RGBA;var lr=[0],cr=er.ka;lr[0]=er.T,er.Kb&&(0==cr?--lr[0]:(--cr,ir[0]-=er.width),er.j+er.ka+er.T==er.o&&(lr[0]=er.o-er.j-cr));var ur=tr.eb;cr=tr.fb+cr*tr.A,er=jr(nr,ir[0],er.width,or,lr,ur,cr+(sr?0:3),tr.A),e(rr==lr),er&&rt(ar)&&Qr(ur,cr,sr,or,lr,tr.A)}return 0}function ft(er){var tr=er.ma,rr=tr.ba.S,nr=11>rr,ir=rr==Zr||rr==Un||rr==Qn||rr==Dn||12==rr||rt(rr);if(tr.memory=null,tr.Ib=null,tr.Jb=null,tr.Nd=null,!En(tr.Oa,er,ir?11:12))return 0;if(ir&&rt(rr)&&yn(),er.da)alert("todo:use_scaling");else{if(nr){if(tr.Ib=ct,er.Kb){if(rr=er.U+1>>1,tr.memory=a(er.U+2*rr),null==tr.memory)return 0;tr.ec=tr.memory,tr.fc=0,tr.cc=tr.ec,tr.dc=tr.fc+er.U,tr.Mc=tr.cc,tr.Nc=tr.dc+rr,tr.Ib=ht,yn()}}else alert("todo:EmitYUV");ir&&(tr.Jb=lt,nr&&vn())}if(nr&&!Ui){for(er=0;256>er;++er)Ii[er]=89858*(er-128)+Ni>>Ei,Oi[er]=-22014*(er-128)+Ni,Mi[er]=-45773*(er-128),Ri[er]=113618*(er-128)+Ni>>Ei;for(er=Li;er<Ti;++er)tr=76283*(er-16)+Ni>>Ei,Qi[er-Li]=Vt(tr,255),Di[er-Li]=Vt(tr+8>>4,15);Ui=1}return 1}function dt(er){var tr=er.ma,rr=er.U,nr=er.T;return e(!(1&er.ka)),0>=rr||0>=nr?0:(rr=tr.Ib(er,tr),null!=tr.Jb&&tr.Jb(er,tr,rr),tr.Dc+=rr,1)}function pt(er){er.ma.memory=null}function gt(er,tr,rr,nr){return 47!=y(er,8)?0:(tr[0]=y(er,14)+1,rr[0]=y(er,14)+1,nr[0]=y(er,1),0!=y(er,3)?0:!er.h)}function mt(er,tr){if(4>er)return er+1;var rr=er-2>>1;return(2+(1&er)<<rr)+y(tr,rr)+1}function vt(er,tr){return 120<tr?tr-120:1<=(rr=((rr=Zn[tr-1])>>4)*er+(8-(15&rr)))?rr:1;var rr}function bt(er,tr,rr){var nr=L(rr),ir=er[tr+=255&nr].g-8;return 0<ir&&(A(rr,rr.u+8),nr=L(rr),tr+=er[tr].value,tr+=nr&(1<<ir)-1),A(rr,rr.u+er[tr].g),er[tr].value}function yt(er,tr,rr){return rr.g+=er.g,rr.value+=er.value<<tr>>>0,e(8>=rr.g),er.g}function wt(er,tr,rr){var nr=er.xc;return e((tr=0==nr?0:er.vc[er.md*(rr>>nr)+(tr>>nr)])<er.Wb),er.Ya[tr]}function Nt(er,tr,rr,nr){var ir=er.ab,or=er.c*tr,ar=er.C;tr=ar+tr;var dr=rr,hr=nr;for(nr=er.Ta,rr=er.Ua;0<ir--;){var pr=er.gc[ir],gr=ar,mr=tr,_r=dr,vr=hr,yr=(hr=nr,dr=rr,pr.Ea);switch(e(gr<mr),e(mr<=pr.nc),pr.hc){case 2:cr(_r,vr,(mr-gr)*yr,hr,dr);break;case 0:var br=gr,wr=mr,Sr=hr,xr=dr,kr=(Lr=pr).Ea;0==br&&(sr(_r,vr,null,null,1,Sr,xr),V(_r,vr+1,0,0,kr-1,Sr,xr+1),vr+=kr,xr+=kr,++br);for(var Cr=1<<Lr.b,Br=Cr-1,Er=q(kr,Lr.b),Nr=Lr.K,Lr=Lr.w+(br>>Lr.b)*Er;br<wr;){var Tr=Nr,Pr=Lr,Fr=1;for(lr(_r,vr,Sr,xr-kr,1,Sr,xr);Fr<kr;){var Ur=(Fr&~Br)+Cr;Ur>kr&&(Ur=kr),(0,Ar[Tr[Pr++]>>8&15])(_r,vr+ +Fr,Sr,xr+Fr-kr,Ur-Fr,Sr,xr+Fr),Fr=Ur}vr+=kr,xr+=kr,++br&Br||(Lr+=Er)}mr!=pr.nc&&r(hr,dr-yr,hr,dr+(mr-gr-1)*yr,yr);break;case 1:for(yr=_r,wr=vr,kr=(_r=pr.Ea)-(xr=_r&~(Sr=(vr=1<<pr.b)-1)),br=q(_r,pr.b),Cr=pr.K,pr=pr.w+(gr>>pr.b)*br;gr<mr;){for(Br=Cr,Er=pr,Nr=new D,Lr=wr+xr,Tr=wr+_r;wr<Lr;)Y(Br[Er++],Nr),fr(Nr,yr,wr,vr,hr,dr),wr+=vr,dr+=vr;wr<Tr&&(Y(Br[Er++],Nr),fr(Nr,yr,wr,kr,hr,dr),wr+=kr,dr+=kr),++gr&Sr||(pr+=br)}break;case 3:if(_r==hr&&vr==dr&&0<pr.b){for(wr=hr,_r=yr=dr+(mr-gr)*yr-(xr=(mr-gr)*q(pr.Ea,pr.b)),vr=hr,Sr=dr,br=[],xr=(kr=xr)-1;0<=xr;--xr)br[xr]=vr[Sr+xr];for(xr=kr-1;0<=xr;--xr)wr[_r+xr]=br[xr];ur(pr,gr,mr,hr,yr,hr,dr)}else ur(pr,gr,mr,_r,vr,hr,dr)}dr=nr,hr=rr}hr!=rr&&r(nr,rr,dr,hr,or)}function Lt(er,tr){var rr=er.V,nr=er.Ba+er.c*er.C,ir=tr-er.C;if(e(tr<=er.l.o),e(16>=ir),0<ir){var or=er.l,ar=er.Ta,sr=er.Ua,lr=or.width;if(Nt(er,ir,rr,nr),ir=sr=[sr],e((rr=er.C)<(nr=tr)),e(or.v<or.va),nr>or.o&&(nr=or.o),rr<or.j){var cr=or.j-rr;rr=or.j,ir[0]+=cr*lr}if(rr>=nr?rr=0:(ir[0]+=4*or.v,or.ka=rr-or.j,or.U=or.va-or.v,or.T=nr-rr,rr=1),rr){if(sr=sr[0],11>(rr=er.ca).S){var ur=rr.f.RGBA,dr=(nr=rr.S,ir=or.U,or=or.T,cr=ur.eb,ur.A),hr=or;for(ur=ur.fb+er.Ma*ur.A;0<hr--;){var pr=ar,Ar=sr,fr=ir,br=cr,wr=ur;switch(nr){case $r:gr(pr,Ar,fr,br,wr);break;case Zr:mr(pr,Ar,fr,br,wr);break;case Gn:mr(pr,Ar,fr,br,wr),Qr(br,wr,0,fr,1,0);break;case Tn:yr(pr,Ar,fr,br,wr);break;case Un:et(pr,Ar,fr,br,wr,1);break;case Vn:et(pr,Ar,fr,br,wr,1),Qr(br,wr,0,fr,1,0);break;case Qn:et(pr,Ar,fr,br,wr,0);break;case zn:et(pr,Ar,fr,br,wr,0),Qr(br,wr,1,fr,1,0);break;case Dn:_r(pr,Ar,fr,br,wr);break;case Kn:_r(pr,Ar,fr,br,wr),Dr(br,wr,fr,1,0);break;case Hn:vr(pr,Ar,fr,br,wr);break;default:e(0)}sr+=lr,ur+=dr}er.Ma+=or}else alert("todo:EmitRescaledRowsYUVA");e(er.Ma<=rr.height)}}er.C=tr,e(er.C<=er.i)}function xt(er){var tr;if(0<er.ua)return 0;for(tr=0;tr<er.Wb;++tr){var rr=er.Ya[tr].G,nr=er.Ya[tr].H;if(0<rr[1][nr[1]+0].g||0<rr[2][nr[2]+0].g||0<rr[3][nr[3]+0].g)return 0}return 1}function At(er,tr,rr,nr,ir,or){if(0!=er.Z){var ar=er.qd,sr=er.rd;for(e(null!=_i[er.Z]);tr<rr;++tr)_i[er.Z](ar,sr,nr,ir,nr,ir,or),ar=nr,sr=ir,ir+=or;er.qd=ar,er.rd=sr}}function _t(er,tr){var rr=er.l.ma,nr=0==rr.Z||1==rr.Z?er.l.j:er.C;if(nr=er.C<nr?nr:er.C,e(tr<=er.l.o),tr>nr){var ir=er.l.width,or=rr.ca,ar=rr.tb+ir*nr,sr=er.V,lr=er.Ba+er.c*nr,cr=er.gc;e(1==er.ab),e(3==cr[0].hc),hr(cr[0],nr,tr,sr,lr,or,ar),At(rr,nr,tr,or,ar,ir)}er.C=er.Ma=tr}function St(er,rr,nr,ir,or,ar,sr){var lr=er.$/ir,cr=er.$%ir,ur=er.m,dr=er.s,hr=nr+er.$,pr=hr;or=nr+ir*or;var Ar=nr+ir*ar,fr=280+dr.ua,gr=er.Pb?lr:16777216,mr=0<dr.ua?dr.Wa:null,_r=dr.wc,vr=hr<Ar?wt(dr,cr,lr):null;e(er.C<ar),e(Ar<=or);var yr=!1;e:for(;;){for(;yr||hr<Ar;){var br=0;if(lr>=gr){var wr=hr-nr;e((gr=er).Pb),gr.wd=gr.m,gr.xd=wr,0<gr.s.ua&&O(gr.s.Wa,gr.s.vb),gr=lr+ti}if(cr&_r||(vr=wt(dr,cr,lr)),e(null!=vr),vr.Qb&&(rr[hr]=vr.qb,yr=!0),!yr)if(_(ur),vr.jc){br=ur,wr=rr;var Sr=hr,xr=vr.pd[L(br)&tr-1];e(vr.jc),256>xr.g?(A(br,br.u+xr.g),wr[Sr]=xr.value,br=0):(A(br,br.u+xr.g-256),e(256<=xr.value),br=xr.value),0==br&&(yr=!0)}else br=bt(vr.G[0],vr.H[0],ur);if(ur.h)break;if(yr||256>br){if(!yr)if(vr.nd)rr[hr]=(vr.qb|br<<8)>>>0;else{if(_(ur),yr=bt(vr.G[1],vr.H[1],ur),_(ur),wr=bt(vr.G[2],vr.H[2],ur),Sr=bt(vr.G[3],vr.H[3],ur),ur.h)break;rr[hr]=(Sr<<24|yr<<16|br<<8|wr)>>>0}if(yr=!1,++hr,++cr>=ir&&(cr=0,++lr,null!=sr&&lr<=ar&&!(lr%16)&&sr(er,lr),null!=mr))for(;pr<hr;)br=rr[pr++],mr.X[(506832829*br&4294967295)>>>mr.Mb]=br}else if(280>br){if(br=mt(br-256,ur),wr=bt(vr.G[4],vr.H[4],ur),_(ur),wr=vt(ir,wr=mt(wr,ur)),ur.h)break;if(hr-nr<wr||or-hr<br)break e;for(Sr=0;Sr<br;++Sr)rr[hr+Sr]=rr[hr+Sr-wr];for(hr+=br,cr+=br;cr>=ir;)cr-=ir,++lr,null!=sr&&lr<=ar&&!(lr%16)&&sr(er,lr);if(e(hr<=or),cr&_r&&(vr=wt(dr,cr,lr)),null!=mr)for(;pr<hr;)br=rr[pr++],mr.X[(506832829*br&4294967295)>>>mr.Mb]=br}else{if(!(br<fr))break e;for(yr=br-280,e(null!=mr);pr<hr;)br=rr[pr++],mr.X[(506832829*br&4294967295)>>>mr.Mb]=br;br=hr,e(!(yr>>>(wr=mr).Xa)),rr[br]=wr.X[yr],yr=!0}yr||e(ur.h==x(ur))}if(er.Pb&&ur.h&&hr<or)e(er.m.h),er.a=5,er.m=er.wd,er.$=er.xd,0<er.s.ua&&O(er.s.vb,er.s.Wa);else{if(ur.h)break e;null!=sr&&sr(er,lr>ar?ar:lr),er.a=0,er.$=hr-nr}return 1}return er.a=3,0}function Pt(er){e(null!=er),er.vc=null,er.yc=null,er.Ya=null;var tr=er.Wa;null!=tr&&(tr.X=null),er.vb=null,e(null!=er)}function kt(){var tr=new sn;return null==tr?null:(tr.a=0,tr.xb=mi,nt("Predictor","VP8LPredictors"),nt("Predictor","VP8LPredictors_C"),nt("PredictorAdd","VP8LPredictorsAdd"),nt("PredictorAdd","VP8LPredictorsAdd_C"),cr=G,fr=J,gr=K,mr=Z,_r=$,vr=Q,yr=tt,er.VP8LMapColor32b=dr,er.VP8LMapColor8b=pr,tr)}function Ft(er,rr,nr,ir,or){var ar=1,sr=[er],lr=[rr],cr=ir.m,ur=ir.s,dr=null,hr=0;e:for(;;){if(nr)for(;ar&&y(cr,1);){var pr=sr,Ar=lr,fr=ir,gr=1,mr=fr.m,_r=fr.gc[fr.ab],vr=y(mr,2);if(fr.Oc&1<<vr)ar=0;else{switch(fr.Oc|=1<<vr,_r.hc=vr,_r.Ea=pr[0],_r.nc=Ar[0],_r.K=[null],++fr.ab,e(4>=fr.ab),vr){case 0:case 1:_r.b=y(mr,3)+2,gr=Ft(q(_r.Ea,_r.b),q(_r.nc,_r.b),0,fr,_r.K),_r.K=_r.K[0];break;case 3:var yr,br=y(mr,8)+1,wr=16<br?0:4<br?1:2<br?2:3;if(pr[0]=q(_r.Ea,wr),_r.b=wr,yr=gr=Ft(br,1,0,fr,_r.K)){var Sr,xr=br,kr=_r,Cr=1<<(8>>kr.b),Br=a(Cr);if(null==Br)yr=0;else{var Er=kr.K[0],Nr=kr.w;for(Br[0]=kr.K[0][0],Sr=1;Sr<1*xr;++Sr)Br[Sr]=R(Er[Nr+Sr],Br[Sr-1]);for(;Sr<4*Cr;++Sr)Br[Sr]=0;kr.K[0]=null,kr.K[0]=Br,yr=1}}gr=yr;break;case 2:break;default:e(0)}ar=gr}}if(sr=sr[0],lr=lr[0],ar&&y(cr,1)&&!(ar=1<=(hr=y(cr,4))&&11>=hr)){ir.a=3;break e}var Lr;if(Lr=ar)t:{var Tr,Pr,Fr,Ur=ir,Ir=sr,Rr=lr,Mr=hr,Or=nr,Qr=Ur.m,Dr=Ur.s,jr=[null],Hr=1,Gr=0,Vr=ei[Mr];r:for(;;){if(Or&&y(Qr,1)){var zr=y(Qr,3)+2,Kr=q(Ir,zr),qr=q(Rr,zr),Wr=Kr*qr;if(!Ft(Kr,qr,0,Ur,jr))break r;for(jr=jr[0],Dr.xc=zr,Tr=0;Tr<Wr;++Tr){var Xr=jr[Tr]>>8&65535;jr[Tr]=Xr,Xr>=Hr&&(Hr=Xr+1)}}if(Qr.h)break r;for(Pr=0;5>Pr;++Pr){var Yr=Yn[Pr];!Pr&&0<Mr&&(Yr+=1<<Mr),Gr<Yr&&(Gr=Yr)}var Jr=o(Hr*Vr,l),$r=Hr,Zr=o($r,d);if(null==Zr)var Tn=null;else e(65536>=$r),Tn=Zr;var Un=a(Gr);if(null==Tn||null==Un||null==Jr){Ur.a=1;break r}var Qn=Jr;for(Tr=Fr=0;Tr<Hr;++Tr){var Dn=Tn[Tr],Hn=Dn.G,Gn=Dn.H,Vn=0,zn=1,Kn=0;for(Pr=0;5>Pr;++Pr){Yr=Yn[Pr],Hn[Pr]=Qn,Gn[Pr]=Fr,!Pr&&0<Mr&&(Yr+=1<<Mr);n:{var Zn,ti=Yr,ri=Ur,ni=Un,ii=Qn,oi=Fr,ai=0,si=ri.m,li=y(si,1);if(i(ni,0,0,ti),li){var ui=y(si,1)+1,di=y(si,1),hi=y(si,0==di?1:8);ni[hi]=1,2==ui&&(ni[hi=y(si,8)]=1);var pi=1}else{var Ai=a(19),fi=y(si,4)+4;if(19<fi){ri.a=3;var mi=0;break n}for(Zn=0;Zn<fi;++Zn)Ai[$n[Zn]]=y(si,3);var _i=void 0,vi=void 0,yi=ri,wi=Ai,Si=ti,xi=ni,ki=0,Ci=yi.m,Bi=8,Ei=o(128,l);i:for(;h(Ei,0,7,wi,19);){if(y(Ci,1)){var Ni=2+2*y(Ci,3);if((_i=2+y(Ci,Ni))>Si)break i}else _i=Si;for(vi=0;vi<Si&&_i--;){_(Ci);var Li=Ei[0+(127&L(Ci))];A(Ci,Ci.u+Li.g);var Ti=Li.value;if(16>Ti)xi[vi++]=Ti,0!=Ti&&(Bi=Ti);else{var Pi=16==Ti,Fi=Ti-16,Ui=Xn[Fi],Ii=y(Ci,Wn[Fi])+Ui;if(vi+Ii>Si)break i;for(var Ri=Pi?Bi:0;0<Ii--;)xi[vi++]=Ri}}ki=1;break i}ki||(yi.a=3),pi=ki}(pi=pi&&!si.h)&&(ai=h(ii,oi,8,ni,ti)),pi&&0!=ai?mi=ai:(ri.a=3,mi=0)}if(0==mi)break r;if(zn&&1==Jn[Pr]&&(zn=0==Qn[Fr].g),Vn+=Qn[Fr].g,Fr+=mi,3>=Pr){var Mi,Oi=Un[0];for(Mi=1;Mi<Yr;++Mi)Un[Mi]>Oi&&(Oi=Un[Mi]);Kn+=Oi}}if(Dn.nd=zn,Dn.Qb=0,zn&&(Dn.qb=(Hn[3][Gn[3]+0].value<<24|Hn[1][Gn[1]+0].value<<16|Hn[2][Gn[2]+0].value)>>>0,0==Vn&&256>Hn[0][Gn[0]+0].value&&(Dn.Qb=1,Dn.qb+=Hn[0][Gn[0]+0].value<<8)),Dn.jc=!Dn.Qb&&6>Kn,Dn.jc){var Qi,Di=Dn;for(Qi=0;Qi<tr;++Qi){var ji=Qi,Hi=Di.pd[ji],Gi=Di.G[0][Di.H[0]+ji];256<=Gi.value?(Hi.g=Gi.g+256,Hi.value=Gi.value):(Hi.g=0,Hi.value=0,ji>>=yt(Gi,8,Hi),ji>>=yt(Di.G[1][Di.H[1]+ji],16,Hi),ji>>=yt(Di.G[2][Di.H[2]+ji],0,Hi),yt(Di.G[3][Di.H[3]+ji],24,Hi))}}}Dr.vc=jr,Dr.Wb=Hr,Dr.Ya=Tn,Dr.yc=Jr,Lr=1;break t}Lr=0}if(!(ar=Lr)){ir.a=3;break e}if(0<hr){if(ur.ua=1<<hr,!B(ur.Wa,hr)){ir.a=1,ar=0;break e}}else ur.ua=0;var Vi=ir,zi=sr,Ki=lr,qi=Vi.s,Wi=qi.xc;if(Vi.c=zi,Vi.i=Ki,qi.md=q(zi,Wi),qi.wc=0==Wi?-1:(1<<Wi)-1,nr){ir.xb=gi;break e}if(null==(dr=a(sr*lr))){ir.a=1,ar=0;break e}ar=(ar=St(ir,dr,0,sr,lr,lr,null))&&!cr.h;break e}return ar?(null!=or?or[0]=dr:(e(null==dr),e(nr)),ir.$=0,nr||Pt(ur)):Pt(ur),ar}function It(er,tr){var rr=er.c*er.i,nr=rr+tr+16*tr;return e(er.c<=tr),er.V=a(nr),null==er.V?(er.Ta=null,er.Ua=0,er.a=1,0):(er.Ta=er.V,er.Ua=er.Ba+rr+tr,1)}function Ct(er,tr){var rr=er.C,nr=tr-rr,ir=er.V,or=er.Ba+er.c*rr;for(e(tr<=er.l.o);0<nr;){var ar=16<nr?16:nr,sr=er.l.ma,lr=er.l.width,cr=lr*ar,ur=sr.ca,dr=sr.tb+lr*rr,hr=er.Ta,pr=er.Ua;Nt(er,ar,ir,or),Hr(hr,pr,ur,dr,cr),At(sr,rr,rr+ar,ur,dr,lr),nr-=ar,ir+=ar*er.c,rr+=ar}e(rr==tr),er.C=er.Ma=tr}function jt(){this.ub=this.yd=this.td=this.Rb=0}function Bt(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Ot(){this.Fb=this.Bb=this.Cb=0,this.Zb=a(4),this.Lb=a(4)}function Mt(){this.Yb=function(){var er=[];return function t(er,tr,rr){for(var nr=rr[tr],ir=0;ir<nr&&(er.push(rr.length>tr+1?[]:0),!(rr.length<tr+1));ir++)t(er[ir],tr+1,rr)}(er,0,[3,11]),er}()}function Et(){this.jb=a(3),this.Wc=s([4,8],Mt),this.Xc=s([4,17],Mt)}function qt(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new a(4),this.od=new a(4)}function Rt(){this.ld=this.La=this.dd=this.tc=0}function Tt(){this.Na=this.la=0}function Dt(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Ut(){this.ad=a(384),this.Za=0,this.Ob=a(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function zt(){this.uc=this.M=this.Nb=0,this.wa=Array(new Rt),this.Y=0,this.ya=Array(new Ut),this.aa=0,this.l=new Gt}function Ht(){this.y=a(16),this.f=a(8),this.ea=a(8)}function Wt(){this.cb=this.a=0,this.sc="",this.m=new w,this.Od=new jt,this.Kc=new Bt,this.ed=new qt,this.Qa=new Ot,this.Ic=this.$c=this.Aa=0,this.D=new zt,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=o(8,w),this.ia=0,this.pb=o(4,Dt),this.Pa=new Et,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Ht),this.Hd=0,this.rb=Array(new Tt),this.sb=0,this.wa=Array(new Rt),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new Ut),this.L=this.aa=0,this.gd=s([4,2],Rt),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function Vt(er,tr){return 0>er?0:er>tr?tr:er}function Gt(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function Yt(){var er=new Wt;return null!=er&&(er.a=0,er.sc="OK",er.cb=0,er.Xb=0,ii||(ii=Zt)),er}function Jt(er,tr,rr){return 0==er.a&&(er.a=tr,er.sc=rr,er.cb=0),0}function Xt(er,tr,rr){return 3<=rr&&157==er[tr+0]&&1==er[tr+1]&&42==er[tr+2]}function Kt(er,tr){if(null==er)return 0;if(er.a=0,er.sc="OK",null==tr)return Jt(er,2,"null VP8Io passed to VP8GetHeaders()");var rr=tr.data,nr=tr.w,ir=tr.ha;if(4>ir)return Jt(er,7,"Truncated header.");var or=rr[nr+0]|rr[nr+1]<<8|rr[nr+2]<<16,ar=er.Od;if(ar.Rb=!(1&or),ar.td=or>>1&7,ar.yd=or>>4&1,ar.ub=or>>5,3<ar.td)return Jt(er,3,"Incorrect keyframe parameters.");if(!ar.yd)return Jt(er,4,"Frame not displayable.");nr+=3,ir-=3;var sr=er.Kc;if(ar.Rb){if(7>ir)return Jt(er,7,"cannot parse picture header");if(!Xt(rr,nr,ir))return Jt(er,3,"Bad code word");sr.c=16383&(rr[nr+4]<<8|rr[nr+3]),sr.Td=rr[nr+4]>>6,sr.i=16383&(rr[nr+6]<<8|rr[nr+5]),sr.Ud=rr[nr+6]>>6,nr+=7,ir-=7,er.za=sr.c+15>>4,er.Ub=sr.i+15>>4,tr.width=sr.c,tr.height=sr.i,tr.Da=0,tr.j=0,tr.v=0,tr.va=tr.width,tr.o=tr.height,tr.da=0,tr.ib=tr.width,tr.hb=tr.height,tr.U=tr.width,tr.T=tr.height,i((or=er.Pa).jb,0,255,or.jb.length),e(null!=(or=er.Qa)),or.Cb=0,or.Bb=0,or.Fb=1,i(or.Zb,0,0,or.Zb.length),i(or.Lb,0,0,or.Lb)}if(ar.ub>ir)return Jt(er,7,"bad partition length");p(or=er.m,rr,nr,ar.ub),nr+=ar.ub,ir-=ar.ub,ar.Rb&&(sr.Ld=P(or),sr.Kd=P(or)),sr=er.Qa;var lr,cr=er.Pa;if(e(null!=or),e(null!=sr),sr.Cb=P(or),sr.Cb){if(sr.Bb=P(or),P(or)){for(sr.Fb=P(or),lr=0;4>lr;++lr)sr.Zb[lr]=P(or)?m(or,7):0;for(lr=0;4>lr;++lr)sr.Lb[lr]=P(or)?m(or,6):0}if(sr.Bb)for(lr=0;3>lr;++lr)cr.jb[lr]=P(or)?g(or,8):255}else sr.Bb=0;if(or.Ka)return Jt(er,3,"cannot parse segment header");if((sr=er.ed).zd=P(or),sr.Tb=g(or,6),sr.wb=g(or,3),sr.Pc=P(or),sr.Pc&&P(or)){for(cr=0;4>cr;++cr)P(or)&&(sr.vd[cr]=m(or,6));for(cr=0;4>cr;++cr)P(or)&&(sr.od[cr]=m(or,6))}if(er.L=0==sr.Tb?0:sr.zd?1:2,or.Ka)return Jt(er,3,"cannot parse filter header");var ur=ir;if(ir=lr=nr,nr=lr+ur,sr=ur,er.Xb=(1<<g(er.m,2))-1,ur<3*(cr=er.Xb))rr=7;else{for(lr+=3*cr,sr-=3*cr,ur=0;ur<cr;++ur){var dr=rr[ir+0]|rr[ir+1]<<8|rr[ir+2]<<16;dr>sr&&(dr=sr),p(er.Jc[+ur],rr,lr,dr),lr+=dr,sr-=dr,ir+=3}p(er.Jc[+cr],rr,lr,sr),rr=lr<nr?0:5}if(0!=rr)return Jt(er,rr,"cannot parse partitions");for(rr=g(lr=er.m,7),ir=P(lr)?m(lr,4):0,nr=P(lr)?m(lr,4):0,sr=P(lr)?m(lr,4):0,cr=P(lr)?m(lr,4):0,lr=P(lr)?m(lr,4):0,ur=er.Qa,dr=0;4>dr;++dr){if(ur.Cb){var hr=ur.Zb[dr];ur.Fb||(hr+=rr)}else{if(0<dr){er.pb[dr]=er.pb[0];continue}hr=rr}var pr=er.pb[dr];pr.Sc[0]=ri[Vt(hr+ir,127)],pr.Sc[1]=ni[Vt(hr+0,127)],pr.Eb[0]=2*ri[Vt(hr+nr,127)],pr.Eb[1]=101581*ni[Vt(hr+sr,127)]>>16,8>pr.Eb[1]&&(pr.Eb[1]=8),pr.Qc[0]=ri[Vt(hr+cr,117)],pr.Qc[1]=ni[Vt(hr+lr,127)],pr.lc=hr+lr}if(!ar.Rb)return Jt(er,4,"Not a key frame.");for(P(or),ar=er.Pa,rr=0;4>rr;++rr){for(ir=0;8>ir;++ir)for(nr=0;3>nr;++nr)for(sr=0;11>sr;++sr)cr=k(or,di[rr][ir][nr][sr])?g(or,8):li[rr][ir][nr][sr],ar.Wc[rr][ir].Yb[nr][sr]=cr;for(ir=0;17>ir;++ir)ar.Xc[rr][ir]=ar.Wc[rr][hi[ir]]}return er.kc=P(or),er.kc&&(er.Bd=g(or,8)),er.cb=1}function Zt(er,tr,rr,nr,ir,or,ar){var sr=tr[ir].Yb[rr];for(rr=0;16>ir;++ir){if(!k(er,sr[rr+0]))return ir;for(;!k(er,sr[rr+1]);)if(sr=tr[++ir].Yb[0],rr=0,16==ir)return 16;var lr=tr[ir+1].Yb;if(k(er,sr[rr+2])){var cr=er,ur=0;if(k(cr,(hr=sr)[(dr=rr)+3]))if(k(cr,hr[dr+6])){for(sr=0,dr=2*(ur=k(cr,hr[dr+8]))+(hr=k(cr,hr[dr+9+ur])),ur=0,hr=oi[dr];hr[sr];++sr)ur+=ur+k(cr,hr[sr]);ur+=3+(8<<dr)}else k(cr,hr[dr+7])?(ur=7+2*k(cr,165),ur+=k(cr,145)):ur=5+k(cr,159);else ur=k(cr,hr[dr+4])?3+k(cr,hr[dr+5]):2;sr=lr[2]}else ur=1,sr=lr[1];lr=ar+ai[ir],0>(cr=er).b&&S(cr);var dr,hr=cr.b,pr=(dr=cr.Ca>>1)-(cr.I>>hr)>>31;--cr.b,cr.Ca+=pr,cr.Ca|=1,cr.I-=(dr+1&pr)<<hr,or[lr]=((ur^pr)-pr)*nr[(0<ir)+0]}return 16}function $t(er){var tr=er.rb[er.sb-1];tr.la=0,tr.Na=0,i(er.zc,0,0,er.zc.length),er.ja=0}function Qt(er,tr){if(null==er)return 0;if(null==tr)return Jt(er,2,"NULL VP8Io parameter in VP8Decode().");if(!er.cb&&!Kt(er,tr))return 0;if(e(er.cb),null==tr.ac||tr.ac(tr)){tr.ob&&(er.L=0);var rr=Hi[er.L];if(2==er.L?(er.yb=0,er.zb=0):(er.yb=tr.v-rr>>4,er.zb=tr.j-rr>>4,0>er.yb&&(er.yb=0),0>er.zb&&(er.zb=0)),er.Va=tr.o+15+rr>>4,er.Hb=tr.va+15+rr>>4,er.Hb>er.za&&(er.Hb=er.za),er.Va>er.Ub&&(er.Va=er.Ub),0<er.L){var nr=er.ed;for(rr=0;4>rr;++rr){var ir;if(er.Qa.Cb){var or=er.Qa.Lb[rr];er.Qa.Fb||(or+=nr.Tb)}else or=nr.Tb;for(ir=0;1>=ir;++ir){var ar=er.gd[rr][ir],sr=or;if(nr.Pc&&(sr+=nr.vd[0],ir&&(sr+=nr.od[0])),0<(sr=0>sr?0:63<sr?63:sr)){var lr=sr;0<nr.wb&&(lr=4<nr.wb?lr>>2:lr>>1)>9-nr.wb&&(lr=9-nr.wb),1>lr&&(lr=1),ar.dd=lr,ar.tc=2*sr+lr,ar.ld=40<=sr?2:15<=sr?1:0}else ar.tc=0;ar.La=ir}}}rr=0}else Jt(er,6,"Frame setup failed"),rr=er.a;if(rr=0==rr){if(rr){er.$c=0,0<er.Aa||(er.Ic=Vi);e:{rr=er.Ic,nr=4*(lr=er.za);var cr=32*lr,ur=lr+1,dr=0<er.L?lr*(0<er.Aa?2:1):0,hr=(2==er.Aa?2:1)*lr;if((ar=nr+832+(ir=3*(16*rr+Hi[er.L])/2*cr)+(or=null!=er.Fa&&0<er.Fa.length?er.Kc.c*er.Kc.i:0))!=ar)rr=0;else{if(ar>er.Vb){if(er.Vb=0,er.Ec=a(ar),er.Fc=0,null==er.Ec){rr=Jt(er,1,"no memory during frame initialization.");break e}er.Vb=ar}ar=er.Ec,sr=er.Fc,er.Ac=ar,er.Bc=sr,sr+=nr,er.Gd=o(cr,Ht),er.Hd=0,er.rb=o(ur+1,Tt),er.sb=1,er.wa=dr?o(dr,Rt):null,er.Y=0,er.D.Nb=0,er.D.wa=er.wa,er.D.Y=er.Y,0<er.Aa&&(er.D.Y+=lr),e(!0),er.oc=ar,er.pc=sr,sr+=832,er.ya=o(hr,Ut),er.aa=0,er.D.ya=er.ya,er.D.aa=er.aa,2==er.Aa&&(er.D.aa+=lr),er.R=16*lr,er.B=8*lr,lr=(cr=Hi[er.L])*er.R,cr=cr/2*er.B,er.sa=ar,er.ta=sr+lr,er.qa=er.sa,er.ra=er.ta+16*rr*er.R+cr,er.Ha=er.qa,er.Ia=er.ra+8*rr*er.B+cr,er.$c=0,sr+=ir,er.mb=or?ar:null,er.nb=or?sr:null,e(sr+or<=er.Fc+er.Vb),$t(er),i(er.Ac,er.Bc,0,nr),rr=1}}if(rr){if(tr.ka=0,tr.y=er.sa,tr.O=er.ta,tr.f=er.qa,tr.N=er.ra,tr.ea=er.Ha,tr.Vd=er.Ia,tr.fa=er.R,tr.Rc=er.B,tr.F=null,tr.J=0,!qr){for(rr=-255;255>=rr;++rr)Gr[255+rr]=0>rr?-rr:rr;for(rr=-1020;1020>=rr;++rr)Vr[1020+rr]=-128>rr?-128:127<rr?127:rr;for(rr=-112;112>=rr;++rr)zr[112+rr]=-16>rr?-16:15<rr?15:rr;for(rr=-255;510>=rr;++rr)Kr[255+rr]=0>rr?0:255<rr?255:rr;qr=1}br=ce,wr=ae,xr=oe,kr=se,Cr=ue,Sr=ie,Br=Je,Er=Xe,Nr=$e,Lr=Qe,Tr=Ke,Pr=Ze,Fr=tn,Ur=en,Ir=ze,Rr=He,Mr=We,Or=Ve,Ai[0]=Ae,Ai[1]=le,Ai[2]=Le,Ai[3]=xe,Ai[4]=_e,Ai[5]=Pe,Ai[6]=Se,Ai[7]=ke,Ai[8]=Ie,Ai[9]=Fe,pi[0]=ve,pi[1]=de,pi[2]=pe,pi[3]=ge,pi[4]=be,pi[5]=ye,pi[6]=we,fi[0]=Oe,fi[1]=fe,fi[2]=Ce,fi[3]=je,fi[4]=Ee,fi[5]=Me,fi[6]=qe,rr=1}else rr=0}rr&&(rr=function(er,tr){for(er.M=0;er.M<er.Va;++er.M){var rr,nr=er.Jc[er.M&er.Xb],ir=er.m,or=er;for(rr=0;rr<or.za;++rr){var ar=ir,sr=or,lr=sr.Ac,cr=sr.Bc+4*rr,ur=sr.zc,dr=sr.ya[sr.aa+rr];if(sr.Qa.Bb?dr.$b=k(ar,sr.Pa.jb[0])?2+k(ar,sr.Pa.jb[2]):k(ar,sr.Pa.jb[1]):dr.$b=0,sr.kc&&(dr.Ad=k(ar,sr.Bd)),dr.Za=!k(ar,145)+0,dr.Za){var hr=dr.Ob,pr=0;for(sr=0;4>sr;++sr){var Ar,fr=ur[0+sr];for(Ar=0;4>Ar;++Ar){fr=ui[lr[cr+Ar]][fr];for(var gr=si[k(ar,fr[0])];0<gr;)gr=si[2*gr+k(ar,fr[gr])];fr=-gr,lr[cr+Ar]=fr}r(hr,pr,lr,cr,4),pr+=4,ur[0+sr]=fr}}else fr=k(ar,156)?k(ar,128)?1:3:k(ar,163)?2:0,dr.Ob[0]=fr,i(lr,cr,fr,4),i(ur,0,fr,4);dr.Dd=k(ar,142)?k(ar,114)?k(ar,183)?1:3:2:0}if(or.m.Ka)return Jt(er,7,"Premature end-of-partition0 encountered.");for(;er.ja<er.za;++er.ja){if(or=nr,ar=(ir=er).rb[ir.sb-1],lr=ir.rb[ir.sb+ir.ja],rr=ir.ya[ir.aa+ir.ja],cr=ir.kc?rr.Ad:0)ar.la=lr.la=0,rr.Za||(ar.Na=lr.Na=0),rr.Hc=0,rr.Gc=0,rr.ia=0;else{var mr,_r;if(ar=lr,lr=or,cr=ir.Pa.Xc,ur=ir.ya[ir.aa+ir.ja],dr=ir.pb[ur.$b],sr=ur.ad,hr=0,pr=ir.rb[ir.sb-1],fr=Ar=0,i(sr,hr,0,384),ur.Za)var vr=0,yr=cr[3];else{gr=a(16);var wr=ar.Na+pr.Na;if(wr=ii(lr,cr[1],wr,dr.Eb,0,gr,0),ar.Na=pr.Na=(0<wr)+0,1<wr)br(gr,0,sr,hr);else{var Sr=gr[0]+3>>3;for(gr=0;256>gr;gr+=16)sr[hr+gr]=Sr}vr=1,yr=cr[0]}var xr=15&ar.la,kr=15&pr.la;for(gr=0;4>gr;++gr){var Cr=1&kr;for(Sr=_r=0;4>Sr;++Sr)xr=xr>>1|(Cr=(wr=ii(lr,yr,wr=Cr+(1&xr),dr.Sc,vr,sr,hr))>vr)<<7,_r=_r<<2|(3<wr?3:1<wr?2:0!=sr[hr+0]),hr+=16;xr>>=4,kr=kr>>1|Cr<<7,Ar=(Ar<<8|_r)>>>0}for(yr=xr,vr=kr>>4,mr=0;4>mr;mr+=2){for(_r=0,xr=ar.la>>4+mr,kr=pr.la>>4+mr,gr=0;2>gr;++gr){for(Cr=1&kr,Sr=0;2>Sr;++Sr)wr=Cr+(1&xr),xr=xr>>1|(Cr=0<(wr=ii(lr,cr[2],wr,dr.Qc,0,sr,hr)))<<3,_r=_r<<2|(3<wr?3:1<wr?2:0!=sr[hr+0]),hr+=16;xr>>=2,kr=kr>>1|Cr<<5}fr|=_r<<4*mr,yr|=xr<<4<<mr,vr|=(240&kr)<<mr}ar.la=yr,pr.la=vr,ur.Hc=Ar,ur.Gc=fr,ur.ia=43690&fr?0:dr.ia,cr=!(Ar|fr)}if(0<ir.L&&(ir.wa[ir.Y+ir.ja]=ir.gd[rr.$b][rr.Za],ir.wa[ir.Y+ir.ja].La|=!cr),or.Ka)return Jt(er,7,"Premature end-of-file encountered.")}if($t(er),ir=tr,or=1,rr=(nr=er).D,ar=0<nr.L&&nr.M>=nr.zb&&nr.M<=nr.Va,0==nr.Aa)e:{if(rr.M=nr.M,rr.uc=ar,On(nr,rr),or=1,rr=(_r=nr.D).Nb,ar=(fr=Hi[nr.L])*nr.R,lr=fr/2*nr.B,gr=16*rr*nr.R,Sr=8*rr*nr.B,cr=nr.sa,ur=nr.ta-ar+gr,dr=nr.qa,sr=nr.ra-lr+Sr,hr=nr.Ha,pr=nr.Ia-lr+Sr,kr=0==(xr=_r.M),Ar=xr>=nr.Va-1,2==nr.Aa&&On(nr,_r),_r.uc)for(Cr=(wr=nr).D.M,e(wr.D.uc),_r=wr.yb;_r<wr.Hb;++_r){vr=_r,yr=Cr;var Qr=(Dr=(Xr=wr).D).Nb;mr=Xr.R;var Dr=Dr.wa[Dr.Y+vr],jr=Xr.sa,Hr=Xr.ta+16*Qr*mr+16*vr,Gr=Dr.dd,Vr=Dr.tc;if(0!=Vr)if(e(3<=Vr),1==Xr.L)0<vr&&Rr(jr,Hr,mr,Vr+4),Dr.La&&Or(jr,Hr,mr,Vr),0<yr&&Ir(jr,Hr,mr,Vr+4),Dr.La&&Mr(jr,Hr,mr,Vr);else{var zr=Xr.B,Kr=Xr.qa,qr=Xr.ra+8*Qr*zr+8*vr,Wr=Xr.Ha,Xr=Xr.Ia+8*Qr*zr+8*vr;Qr=Dr.ld,0<vr&&(Er(jr,Hr,mr,Vr+4,Gr,Qr),Lr(Kr,qr,Wr,Xr,zr,Vr+4,Gr,Qr)),Dr.La&&(Pr(jr,Hr,mr,Vr,Gr,Qr),Ur(Kr,qr,Wr,Xr,zr,Vr,Gr,Qr)),0<yr&&(Br(jr,Hr,mr,Vr+4,Gr,Qr),Nr(Kr,qr,Wr,Xr,zr,Vr+4,Gr,Qr)),Dr.La&&(Tr(jr,Hr,mr,Vr,Gr,Qr),Fr(Kr,qr,Wr,Xr,zr,Vr,Gr,Qr))}}if(nr.ia&&alert("todo:DitherRow"),null!=ir.put){if(_r=16*xr,xr=16*(xr+1),kr?(ir.y=nr.sa,ir.O=nr.ta+gr,ir.f=nr.qa,ir.N=nr.ra+Sr,ir.ea=nr.Ha,ir.W=nr.Ia+Sr):(_r-=fr,ir.y=cr,ir.O=ur,ir.f=dr,ir.N=sr,ir.ea=hr,ir.W=pr),Ar||(xr-=fr),xr>ir.o&&(xr=ir.o),ir.F=null,ir.J=null,null!=nr.Fa&&0<nr.Fa.length&&_r<xr&&(ir.J=fn(nr,ir,_r,xr-_r),ir.F=nr.mb,null==ir.F&&0==ir.F.length)){or=Jt(nr,3,"Could not decode alpha data.");break e}_r<ir.j&&(fr=ir.j-_r,_r=ir.j,e(!(1&fr)),ir.O+=nr.R*fr,ir.N+=nr.B*(fr>>1),ir.W+=nr.B*(fr>>1),null!=ir.F&&(ir.J+=ir.width*fr)),_r<xr&&(ir.O+=ir.v,ir.N+=ir.v>>1,ir.W+=ir.v>>1,null!=ir.F&&(ir.J+=ir.v),ir.ka=_r-ir.j,ir.U=ir.va-ir.v,ir.T=xr-_r,or=ir.put(ir))}rr+1!=nr.Ic||Ar||(r(nr.sa,nr.ta-ar,cr,ur+16*nr.R,ar),r(nr.qa,nr.ra-lr,dr,sr+8*nr.B,lr),r(nr.Ha,nr.Ia-lr,hr,pr+8*nr.B,lr))}if(!or)return Jt(er,6,"Output aborted.")}return 1}(er,tr)),null!=tr.bc&&tr.bc(tr),rr&=1}return rr?(er.cb=0,rr):0}function te(er,tr,rr,nr,ir){ir=er[tr+rr+32*nr]+(ir>>3),er[tr+rr+32*nr]=-256&ir?0>ir?0:255:ir}function ee(er,tr,rr,nr,ir,or){te(er,tr,0,rr,nr+ir),te(er,tr,1,rr,nr+or),te(er,tr,2,rr,nr-or),te(er,tr,3,rr,nr-ir)}function ne(er){return(20091*er>>16)+er}function re(er,tr,rr,nr){var ir,or=0,ar=a(16);for(ir=0;4>ir;++ir){var sr=er[tr+0]+er[tr+8],lr=er[tr+0]-er[tr+8],cr=(35468*er[tr+4]>>16)-ne(er[tr+12]),ur=ne(er[tr+4])+(35468*er[tr+12]>>16);ar[or+0]=sr+ur,ar[or+1]=lr+cr,ar[or+2]=lr-cr,ar[or+3]=sr-ur,or+=4,tr++}for(ir=or=0;4>ir;++ir)sr=(er=ar[or+0]+4)+ar[or+8],lr=er-ar[or+8],cr=(35468*ar[or+4]>>16)-ne(ar[or+12]),te(rr,nr,0,0,sr+(ur=ne(ar[or+4])+(35468*ar[or+12]>>16))),te(rr,nr,1,0,lr+cr),te(rr,nr,2,0,lr-cr),te(rr,nr,3,0,sr-ur),or++,nr+=32}function ie(er,tr,rr,nr){var ir=er[tr+0]+4,or=35468*er[tr+4]>>16,ar=ne(er[tr+4]),sr=35468*er[tr+1]>>16;ee(rr,nr,0,ir+ar,er=ne(er[tr+1]),sr),ee(rr,nr,1,ir+or,er,sr),ee(rr,nr,2,ir-or,er,sr),ee(rr,nr,3,ir-ar,er,sr)}function ae(er,tr,rr,nr,ir){re(er,tr,rr,nr),ir&&re(er,tr+16,rr,nr+4)}function oe(er,tr,rr,nr){wr(er,tr+0,rr,nr,1),wr(er,tr+32,rr,nr+128,1)}function se(er,tr,rr,nr){var ir;for(er=er[tr+0]+4,ir=0;4>ir;++ir)for(tr=0;4>tr;++tr)te(rr,nr,tr,ir,er)}function ue(er,tr,rr,nr){er[tr+0]&&kr(er,tr+0,rr,nr),er[tr+16]&&kr(er,tr+16,rr,nr+4),er[tr+32]&&kr(er,tr+32,rr,nr+128),er[tr+48]&&kr(er,tr+48,rr,nr+128+4)}function ce(er,tr,rr,nr){var ir,or=a(16);for(ir=0;4>ir;++ir){var ar=er[tr+0+ir]+er[tr+12+ir],sr=er[tr+4+ir]+er[tr+8+ir],lr=er[tr+4+ir]-er[tr+8+ir],cr=er[tr+0+ir]-er[tr+12+ir];or[0+ir]=ar+sr,or[8+ir]=ar-sr,or[4+ir]=cr+lr,or[12+ir]=cr-lr}for(ir=0;4>ir;++ir)ar=(er=or[0+4*ir]+3)+or[3+4*ir],sr=or[1+4*ir]+or[2+4*ir],lr=or[1+4*ir]-or[2+4*ir],cr=er-or[3+4*ir],rr[nr+0]=ar+sr>>3,rr[nr+16]=cr+lr>>3,rr[nr+32]=ar-sr>>3,rr[nr+48]=cr-lr>>3,nr+=64}function he(er,tr,rr){var nr,ir=tr-32,or=Yr,ar=255-er[ir-1];for(nr=0;nr<rr;++nr){var sr,lr=or,cr=ar+er[tr-1];for(sr=0;sr<rr;++sr)er[tr+sr]=lr[cr+er[ir+sr]];tr+=32}}function le(er,tr){he(er,tr,4)}function fe(er,tr){he(er,tr,8)}function de(er,tr){he(er,tr,16)}function pe(er,tr){var rr;for(rr=0;16>rr;++rr)r(er,tr+32*rr,er,tr-32,16)}function ge(er,tr){var rr;for(rr=16;0<rr;--rr)i(er,tr,er[tr-1],16),tr+=32}function me(er,tr,rr){var nr;for(nr=0;16>nr;++nr)i(tr,rr+32*nr,er,16)}function ve(er,tr){var rr,nr=16;for(rr=0;16>rr;++rr)nr+=er[tr-1+32*rr]+er[tr+rr-32];me(nr>>5,er,tr)}function be(er,tr){var rr,nr=8;for(rr=0;16>rr;++rr)nr+=er[tr-1+32*rr];me(nr>>4,er,tr)}function ye(er,tr){var rr,nr=8;for(rr=0;16>rr;++rr)nr+=er[tr+rr-32];me(nr>>4,er,tr)}function we(er,tr){me(128,er,tr)}function Ne(er,tr,rr){return er+2*tr+rr+2>>2}function Le(er,tr){var rr,nr=tr-32;for(nr=new Uint8Array([Ne(er[nr-1],er[nr+0],er[nr+1]),Ne(er[nr+0],er[nr+1],er[nr+2]),Ne(er[nr+1],er[nr+2],er[nr+3]),Ne(er[nr+2],er[nr+3],er[nr+4])]),rr=0;4>rr;++rr)r(er,tr+32*rr,nr,0,nr.length)}function xe(er,tr){var rr=er[tr-1],nr=er[tr-1+32],ir=er[tr-1+64],or=er[tr-1+96];F(er,tr+0,16843009*Ne(er[tr-1-32],rr,nr)),F(er,tr+32,16843009*Ne(rr,nr,ir)),F(er,tr+64,16843009*Ne(nr,ir,or)),F(er,tr+96,16843009*Ne(ir,or,or))}function Ae(er,tr){var rr,nr=4;for(rr=0;4>rr;++rr)nr+=er[tr+rr-32]+er[tr-1+32*rr];for(nr>>=3,rr=0;4>rr;++rr)i(er,tr+32*rr,nr,4)}function _e(er,tr){var rr=er[tr-1+0],nr=er[tr-1+32],ir=er[tr-1+64],or=er[tr-1-32],ar=er[tr+0-32],sr=er[tr+1-32],lr=er[tr+2-32],cr=er[tr+3-32];er[tr+0+96]=Ne(nr,ir,er[tr-1+96]),er[tr+1+96]=er[tr+0+64]=Ne(rr,nr,ir),er[tr+2+96]=er[tr+1+64]=er[tr+0+32]=Ne(or,rr,nr),er[tr+3+96]=er[tr+2+64]=er[tr+1+32]=er[tr+0+0]=Ne(ar,or,rr),er[tr+3+64]=er[tr+2+32]=er[tr+1+0]=Ne(sr,ar,or),er[tr+3+32]=er[tr+2+0]=Ne(lr,sr,ar),er[tr+3+0]=Ne(cr,lr,sr)}function Se(er,tr){var rr=er[tr+1-32],nr=er[tr+2-32],ir=er[tr+3-32],or=er[tr+4-32],ar=er[tr+5-32],sr=er[tr+6-32],lr=er[tr+7-32];er[tr+0+0]=Ne(er[tr+0-32],rr,nr),er[tr+1+0]=er[tr+0+32]=Ne(rr,nr,ir),er[tr+2+0]=er[tr+1+32]=er[tr+0+64]=Ne(nr,ir,or),er[tr+3+0]=er[tr+2+32]=er[tr+1+64]=er[tr+0+96]=Ne(ir,or,ar),er[tr+3+32]=er[tr+2+64]=er[tr+1+96]=Ne(or,ar,sr),er[tr+3+64]=er[tr+2+96]=Ne(ar,sr,lr),er[tr+3+96]=Ne(sr,lr,lr)}function Pe(er,tr){var rr=er[tr-1+0],nr=er[tr-1+32],ir=er[tr-1+64],or=er[tr-1-32],ar=er[tr+0-32],sr=er[tr+1-32],lr=er[tr+2-32],cr=er[tr+3-32];er[tr+0+0]=er[tr+1+64]=or+ar+1>>1,er[tr+1+0]=er[tr+2+64]=ar+sr+1>>1,er[tr+2+0]=er[tr+3+64]=sr+lr+1>>1,er[tr+3+0]=lr+cr+1>>1,er[tr+0+96]=Ne(ir,nr,rr),er[tr+0+64]=Ne(nr,rr,or),er[tr+0+32]=er[tr+1+96]=Ne(rr,or,ar),er[tr+1+32]=er[tr+2+96]=Ne(or,ar,sr),er[tr+2+32]=er[tr+3+96]=Ne(ar,sr,lr),er[tr+3+32]=Ne(sr,lr,cr)}function ke(er,tr){var rr=er[tr+0-32],nr=er[tr+1-32],ir=er[tr+2-32],or=er[tr+3-32],ar=er[tr+4-32],sr=er[tr+5-32],lr=er[tr+6-32],cr=er[tr+7-32];er[tr+0+0]=rr+nr+1>>1,er[tr+1+0]=er[tr+0+64]=nr+ir+1>>1,er[tr+2+0]=er[tr+1+64]=ir+or+1>>1,er[tr+3+0]=er[tr+2+64]=or+ar+1>>1,er[tr+0+32]=Ne(rr,nr,ir),er[tr+1+32]=er[tr+0+96]=Ne(nr,ir,or),er[tr+2+32]=er[tr+1+96]=Ne(ir,or,ar),er[tr+3+32]=er[tr+2+96]=Ne(or,ar,sr),er[tr+3+64]=Ne(ar,sr,lr),er[tr+3+96]=Ne(sr,lr,cr)}function Fe(er,tr){var rr=er[tr-1+0],nr=er[tr-1+32],ir=er[tr-1+64],or=er[tr-1+96];er[tr+0+0]=rr+nr+1>>1,er[tr+2+0]=er[tr+0+32]=nr+ir+1>>1,er[tr+2+32]=er[tr+0+64]=ir+or+1>>1,er[tr+1+0]=Ne(rr,nr,ir),er[tr+3+0]=er[tr+1+32]=Ne(nr,ir,or),er[tr+3+32]=er[tr+1+64]=Ne(ir,or,or),er[tr+3+64]=er[tr+2+64]=er[tr+0+96]=er[tr+1+96]=er[tr+2+96]=er[tr+3+96]=or}function Ie(er,tr){var rr=er[tr-1+0],nr=er[tr-1+32],ir=er[tr-1+64],or=er[tr-1+96],ar=er[tr-1-32],sr=er[tr+0-32],lr=er[tr+1-32],cr=er[tr+2-32];er[tr+0+0]=er[tr+2+32]=rr+ar+1>>1,er[tr+0+32]=er[tr+2+64]=nr+rr+1>>1,er[tr+0+64]=er[tr+2+96]=ir+nr+1>>1,er[tr+0+96]=or+ir+1>>1,er[tr+3+0]=Ne(sr,lr,cr),er[tr+2+0]=Ne(ar,sr,lr),er[tr+1+0]=er[tr+3+32]=Ne(rr,ar,sr),er[tr+1+32]=er[tr+3+64]=Ne(nr,rr,ar),er[tr+1+64]=er[tr+3+96]=Ne(ir,nr,rr),er[tr+1+96]=Ne(or,ir,nr)}function Ce(er,tr){var rr;for(rr=0;8>rr;++rr)r(er,tr+32*rr,er,tr-32,8)}function je(er,tr){var rr;for(rr=0;8>rr;++rr)i(er,tr,er[tr-1],8),tr+=32}function Be(er,tr,rr){var nr;for(nr=0;8>nr;++nr)i(tr,rr+32*nr,er,8)}function Oe(er,tr){var rr,nr=8;for(rr=0;8>rr;++rr)nr+=er[tr+rr-32]+er[tr-1+32*rr];Be(nr>>4,er,tr)}function Me(er,tr){var rr,nr=4;for(rr=0;8>rr;++rr)nr+=er[tr+rr-32];Be(nr>>3,er,tr)}function Ee(er,tr){var rr,nr=4;for(rr=0;8>rr;++rr)nr+=er[tr-1+32*rr];Be(nr>>3,er,tr)}function qe(er,tr){Be(128,er,tr)}function Re(er,tr,rr){var nr=er[tr-rr],ir=er[tr+0],or=3*(ir-nr)+Wr[1020+er[tr-2*rr]-er[tr+rr]],ar=Xr[112+(or+4>>3)];er[tr-rr]=Yr[255+nr+Xr[112+(or+3>>3)]],er[tr+0]=Yr[255+ir-ar]}function Te(er,tr,rr,nr){var ir=er[tr+0],or=er[tr+rr];return Jr[255+er[tr-2*rr]-er[tr-rr]]>nr||Jr[255+or-ir]>nr}function De(er,tr,rr,nr){return 4*Jr[255+er[tr-rr]-er[tr+0]]+Jr[255+er[tr-2*rr]-er[tr+rr]]<=nr}function Ue(er,tr,rr,nr,ir){var or=er[tr-3*rr],ar=er[tr-2*rr],sr=er[tr-rr],lr=er[tr+0],cr=er[tr+rr],ur=er[tr+2*rr],dr=er[tr+3*rr];return 4*Jr[255+sr-lr]+Jr[255+ar-cr]>nr?0:Jr[255+er[tr-4*rr]-or]<=ir&&Jr[255+or-ar]<=ir&&Jr[255+ar-sr]<=ir&&Jr[255+dr-ur]<=ir&&Jr[255+ur-cr]<=ir&&Jr[255+cr-lr]<=ir}function ze(er,tr,rr,nr){var ir=2*nr+1;for(nr=0;16>nr;++nr)De(er,tr+nr,rr,ir)&&Re(er,tr+nr,rr)}function He(er,tr,rr,nr){var ir=2*nr+1;for(nr=0;16>nr;++nr)De(er,tr+nr*rr,1,ir)&&Re(er,tr+nr*rr,1)}function We(er,tr,rr,nr){var ir;for(ir=3;0<ir;--ir)ze(er,tr+=4*rr,rr,nr)}function Ve(er,tr,rr,nr){var ir;for(ir=3;0<ir;--ir)He(er,tr+=4,rr,nr)}function Ge(er,tr,rr,nr,ir,or,ar,sr){for(or=2*or+1;0<ir--;){if(Ue(er,tr,rr,or,ar))if(Te(er,tr,rr,sr))Re(er,tr,rr);else{var lr=er,cr=tr,ur=rr,dr=lr[cr-2*ur],hr=lr[cr-ur],pr=lr[cr+0],Ar=lr[cr+ur],fr=lr[cr+2*ur],gr=27*(_r=Wr[1020+3*(pr-hr)+Wr[1020+dr-Ar]])+63>>7,mr=18*_r+63>>7,_r=9*_r+63>>7;lr[cr-3*ur]=Yr[255+lr[cr-3*ur]+_r],lr[cr-2*ur]=Yr[255+dr+mr],lr[cr-ur]=Yr[255+hr+gr],lr[cr+0]=Yr[255+pr-gr],lr[cr+ur]=Yr[255+Ar-mr],lr[cr+2*ur]=Yr[255+fr-_r]}tr+=nr}}function Ye(er,tr,rr,nr,ir,or,ar,sr){for(or=2*or+1;0<ir--;){if(Ue(er,tr,rr,or,ar))if(Te(er,tr,rr,sr))Re(er,tr,rr);else{var lr=er,cr=tr,ur=rr,dr=lr[cr-ur],hr=lr[cr+0],pr=lr[cr+ur],Ar=Xr[112+(4+(fr=3*(hr-dr))>>3)],fr=Xr[112+(fr+3>>3)],gr=Ar+1>>1;lr[cr-2*ur]=Yr[255+lr[cr-2*ur]+gr],lr[cr-ur]=Yr[255+dr+fr],lr[cr+0]=Yr[255+hr-Ar],lr[cr+ur]=Yr[255+pr-gr]}tr+=nr}}function Je(er,tr,rr,nr,ir,or){Ge(er,tr,rr,1,16,nr,ir,or)}function Xe(er,tr,rr,nr,ir,or){Ge(er,tr,1,rr,16,nr,ir,or)}function Ke(er,tr,rr,nr,ir,or){var ar;for(ar=3;0<ar;--ar)Ye(er,tr+=4*rr,rr,1,16,nr,ir,or)}function Ze(er,tr,rr,nr,ir,or){var ar;for(ar=3;0<ar;--ar)Ye(er,tr+=4,1,rr,16,nr,ir,or)}function $e(er,tr,rr,nr,ir,or,ar,sr){Ge(er,tr,ir,1,8,or,ar,sr),Ge(rr,nr,ir,1,8,or,ar,sr)}function Qe(er,tr,rr,nr,ir,or,ar,sr){Ge(er,tr,1,ir,8,or,ar,sr),Ge(rr,nr,1,ir,8,or,ar,sr)}function tn(er,tr,rr,nr,ir,or,ar,sr){Ye(er,tr+4*ir,ir,1,8,or,ar,sr),Ye(rr,nr+4*ir,ir,1,8,or,ar,sr)}function en(er,tr,rr,nr,ir,or,ar,sr){Ye(er,tr+4,1,ir,8,or,ar,sr),Ye(rr,nr+4,1,ir,8,or,ar,sr)}function nn(){this.ba=new ot,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new ut,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function rn(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function an(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function on(){this.ua=0,this.Wa=new M,this.vb=new M,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new d,this.yc=new l}function sn(){this.xb=this.a=0,this.l=new Gt,this.ca=new ot,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new N,this.Pb=0,this.wd=new N,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new on,this.ab=0,this.gc=o(4,an),this.Oc=0}function un(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Gt,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function cn(er,tr,rr,nr,ir,or,ar){for(er=null==er?0:er[tr+0],tr=0;tr<ar;++tr)ir[or+tr]=er+rr[nr+tr]&255,er=ir[or+tr]}function hn(er,tr,rr,nr,ir,or,ar){var sr;if(null==er)cn(null,null,rr,nr,ir,or,ar);else for(sr=0;sr<ar;++sr)ir[or+sr]=er[tr+sr]+rr[nr+sr]&255}function ln(er,tr,rr,nr,ir,or,ar){if(null==er)cn(null,null,rr,nr,ir,or,ar);else{var sr,lr=er[tr+0],cr=lr,ur=lr;for(sr=0;sr<ar;++sr)cr=ur+(lr=er[tr+sr])-cr,ur=rr[nr+sr]+(-256&cr?0>cr?0:255:cr)&255,cr=lr,ir[or+sr]=ur}}function fn(er,tr,rr,nr){var ir=tr.width,or=tr.o;if(e(null!=er&&null!=tr),0>rr||0>=nr||rr+nr>or)return null;if(!er.Cc){if(null==er.ga){var ar;if(er.ga=new un,(ar=null==er.ga)||(ar=tr.width*tr.o,e(0==er.Gb.length),er.Gb=a(ar),er.Uc=0,null==er.Gb?ar=0:(er.mb=er.Gb,er.nb=er.Uc,er.rc=null,ar=1),ar=!ar),!ar){ar=er.ga;var sr=er.Fa,lr=er.P,cr=er.qc,ur=er.mb,dr=er.nb,hr=lr+1,pr=cr-1,Ar=ar.l;if(e(null!=sr&&null!=ur&&null!=tr),_i[0]=null,_i[1]=cn,_i[2]=hn,_i[3]=ln,ar.ca=ur,ar.tb=dr,ar.c=tr.width,ar.i=tr.height,e(0<ar.c&&0<ar.i),1>=cr)tr=0;else if(ar.$a=sr[lr+0]>>0&3,ar.Z=sr[lr+0]>>2&3,ar.Lc=sr[lr+0]>>4&3,lr=sr[lr+0]>>6&3,0>ar.$a||1<ar.$a||4<=ar.Z||1<ar.Lc||lr)tr=0;else if(Ar.put=dt,Ar.ac=ft,Ar.bc=pt,Ar.ma=ar,Ar.width=tr.width,Ar.height=tr.height,Ar.Da=tr.Da,Ar.v=tr.v,Ar.va=tr.va,Ar.j=tr.j,Ar.o=tr.o,ar.$a)e:{e(1==ar.$a),tr=kt();t:for(;;){if(null==tr){tr=0;break e}if(e(null!=ar),ar.mc=tr,tr.c=ar.c,tr.i=ar.i,tr.l=ar.l,tr.l.ma=ar,tr.l.width=ar.c,tr.l.height=ar.i,tr.a=0,v(tr.m,sr,hr,pr),!Ft(ar.c,ar.i,1,tr,null))break t;if(1==tr.ab&&3==tr.gc[0].hc&&xt(tr.s)?(ar.ic=1,sr=tr.c*tr.i,tr.Ta=null,tr.Ua=0,tr.V=a(sr),tr.Ba=0,null==tr.V?(tr.a=1,tr=0):tr=1):(ar.ic=0,tr=It(tr,ar.c)),!tr)break t;tr=1;break e}ar.mc=null,tr=0}else tr=pr>=ar.c*ar.i;ar=!tr}if(ar)return null;1!=er.ga.Lc?er.Ga=0:nr=or-rr}e(null!=er.ga),e(rr+nr<=or);e:{if(tr=(sr=er.ga).c,or=sr.l.o,0==sr.$a){if(hr=er.rc,pr=er.Vc,Ar=er.Fa,lr=er.P+1+rr*tr,cr=er.mb,ur=er.nb+rr*tr,e(lr<=er.P+er.qc),0!=sr.Z)for(e(null!=_i[sr.Z]),ar=0;ar<nr;++ar)_i[sr.Z](hr,pr,Ar,lr,cr,ur,tr),hr=cr,pr=ur,ur+=tr,lr+=tr;else for(ar=0;ar<nr;++ar)r(cr,ur,Ar,lr,tr),hr=cr,pr=ur,ur+=tr,lr+=tr;er.rc=hr,er.Vc=pr}else{if(e(null!=sr.mc),tr=rr+nr,e(null!=(ar=sr.mc)),e(tr<=ar.i),ar.C>=tr)tr=1;else if(sr.ic||vn(),sr.ic){sr=ar.V,hr=ar.Ba,pr=ar.c;var fr=ar.i,gr=(Ar=1,lr=ar.$/pr,cr=ar.$%pr,ur=ar.m,dr=ar.s,ar.$),mr=pr*fr,_r=pr*tr,vr=dr.wc,yr=gr<_r?wt(dr,cr,lr):null;e(gr<=mr),e(tr<=fr),e(xt(dr));t:for(;;){for(;!ur.h&&gr<_r;){if(cr&vr||(yr=wt(dr,cr,lr)),e(null!=yr),_(ur),256>(fr=bt(yr.G[0],yr.H[0],ur)))sr[hr+gr]=fr,++gr,++cr>=pr&&(cr=0,++lr<=tr&&!(lr%16)&&_t(ar,lr));else{if(!(280>fr)){Ar=0;break t}fr=mt(fr-256,ur);var br,wr=bt(yr.G[4],yr.H[4],ur);if(_(ur),!(gr>=(wr=vt(pr,wr=mt(wr,ur)))&&mr-gr>=fr)){Ar=0;break t}for(br=0;br<fr;++br)sr[hr+gr+br]=sr[hr+gr+br-wr];for(gr+=fr,cr+=fr;cr>=pr;)cr-=pr,++lr<=tr&&!(lr%16)&&_t(ar,lr);gr<_r&&cr&vr&&(yr=wt(dr,cr,lr))}e(ur.h==x(ur))}_t(ar,lr>tr?tr:lr);break t}!Ar||ur.h&&gr<mr?(Ar=0,ar.a=ur.h?5:3):ar.$=gr,tr=Ar}else tr=St(ar,ar.V,ar.Ba,ar.c,ar.i,tr,Ct);if(!tr){nr=0;break e}}rr+nr>=or&&(er.Cc=1),nr=1}if(!nr)return null;if(er.Cc&&(null!=(nr=er.ga)&&(nr.mc=null),er.ga=null,0<er.Ga))return alert("todo:WebPDequantizeLevels"),null}return er.nb+rr*ir}function dn(er,tr,rr,nr,ir,or){for(;0<ir--;){var ar,sr=er,lr=tr+(rr?1:0),cr=er,ur=tr+(rr?0:3);for(ar=0;ar<nr;++ar){var dr=cr[ur+4*ar];255!=dr&&(dr*=32897,sr[lr+4*ar+0]=sr[lr+4*ar+0]*dr>>23,sr[lr+4*ar+1]=sr[lr+4*ar+1]*dr>>23,sr[lr+4*ar+2]=sr[lr+4*ar+2]*dr>>23)}tr+=or}}function pn(er,tr,rr,nr,ir){for(;0<nr--;){var or;for(or=0;or<rr;++or){var ar=er[tr+2*or+0],sr=15&(cr=er[tr+2*or+1]),lr=4369*sr,cr=(240&cr|cr>>4)*lr>>16;er[tr+2*or+0]=(240&ar|ar>>4)*lr>>16&240|(15&ar|ar<<4)*lr>>16>>4&15,er[tr+2*or+1]=240&cr|sr}tr+=ir}}function gn(er,tr,rr,nr,ir,or,ar,sr){var lr,cr,ur=255;for(cr=0;cr<ir;++cr){for(lr=0;lr<nr;++lr){var dr=er[tr+lr];or[ar+4*lr]=dr,ur&=dr}tr+=rr,ar+=sr}return 255!=ur}function mn(er,tr,rr,nr,ir){var or;for(or=0;or<ir;++or)rr[nr+or]=er[tr+or]>>8}function vn(){Qr=dn,Dr=pn,jr=gn,Hr=mn}function bn(tr,rr,nr){er[tr]=function(er,tr,ir,or,ar,sr,lr,cr,ur,dr,hr,pr,Ar,fr,gr,mr,_r){var vr,yr=_r-1>>1,br=ar[sr+0]|lr[cr+0]<<16,wr=ur[dr+0]|hr[pr+0]<<16;e(null!=er);var Sr=3*br+wr+131074>>2;for(rr(er[tr+0],255&Sr,Sr>>16,Ar,fr),null!=ir&&(Sr=3*wr+br+131074>>2,rr(ir[or+0],255&Sr,Sr>>16,gr,mr)),vr=1;vr<=yr;++vr){var xr=ar[sr+vr]|lr[cr+vr]<<16,kr=ur[dr+vr]|hr[pr+vr]<<16,Cr=br+xr+wr+kr+524296,Br=Cr+2*(xr+wr)>>3;Sr=Br+br>>1,br=(Cr=Cr+2*(br+kr)>>3)+xr>>1,rr(er[tr+2*vr-1],255&Sr,Sr>>16,Ar,fr+(2*vr-1)*nr),rr(er[tr+2*vr-0],255&br,br>>16,Ar,fr+(2*vr-0)*nr),null!=ir&&(Sr=Cr+wr>>1,br=Br+kr>>1,rr(ir[or+2*vr-1],255&Sr,Sr>>16,gr,mr+(2*vr-1)*nr),rr(ir[or+2*vr+0],255&br,br>>16,gr,mr+(2*vr+0)*nr)),br=xr,wr=kr}1&_r||(Sr=3*br+wr+131074>>2,rr(er[tr+_r-1],255&Sr,Sr>>16,Ar,fr+(_r-1)*nr),null!=ir&&(Sr=3*wr+br+131074>>2,rr(ir[or+_r-1],255&Sr,Sr>>16,gr,mr+(_r-1)*nr)))}}function yn(){vi[$r]=yi,vi[Zr]=Si,vi[Tn]=wi,vi[Un]=xi,vi[Qn]=ki,vi[Dn]=Ci,vi[Hn]=Bi,vi[Gn]=Si,vi[Vn]=xi,vi[zn]=ki,vi[Kn]=Ci}function wn(er){return er&~Fi?0>er?0:255:er>>Pi}function Nn(er,tr){return wn((19077*er>>8)+(26149*tr>>8)-14234)}function Ln(er,tr,rr){return wn((19077*er>>8)-(6419*tr>>8)-(13320*rr>>8)+8708)}function xn(er,tr){return wn((19077*er>>8)+(33050*tr>>8)-17685)}function An(er,tr,rr,nr,ir){nr[ir+0]=Nn(er,rr),nr[ir+1]=Ln(er,tr,rr),nr[ir+2]=xn(er,tr)}function _n(er,tr,rr,nr,ir){nr[ir+0]=xn(er,tr),nr[ir+1]=Ln(er,tr,rr),nr[ir+2]=Nn(er,rr)}function Sn(er,tr,rr,nr,ir){var or=Ln(er,tr,rr);tr=or<<3&224|xn(er,tr)>>3,nr[ir+0]=248&Nn(er,rr)|or>>5,nr[ir+1]=tr}function Pn(er,tr,rr,nr,ir){var or=240&xn(er,tr)|15;nr[ir+0]=240&Nn(er,rr)|Ln(er,tr,rr)>>4,nr[ir+1]=or}function kn(er,tr,rr,nr,ir){nr[ir+0]=255,An(er,tr,rr,nr,ir+1)}function Fn(er,tr,rr,nr,ir){_n(er,tr,rr,nr,ir),nr[ir+3]=255}function In(er,tr,rr,nr,ir){An(er,tr,rr,nr,ir),nr[ir+3]=255}function Vt(er,tr){return 0>er?0:er>tr?tr:er}function Cn(tr,rr,nr){er[tr]=function(er,tr,ir,or,ar,sr,lr,cr,ur){for(var dr=cr+(-2&ur)*nr;cr!=dr;)rr(er[tr+0],ir[or+0],ar[sr+0],lr,cr),rr(er[tr+1],ir[or+0],ar[sr+0],lr,cr+nr),tr+=2,++or,++sr,cr+=2*nr;1&ur&&rr(er[tr+0],ir[or+0],ar[sr+0],lr,cr)}}function jn(er,tr,rr){return 0==rr?0==er?0==tr?6:5:0==tr?4:0:rr}function Bn(er,tr,rr,nr,ir){switch(er>>>30){case 3:wr(tr,rr,nr,ir,0);break;case 2:Sr(tr,rr,nr,ir);break;case 1:kr(tr,rr,nr,ir)}}function On(er,tr){var rr,nr,ir=tr.M,or=tr.Nb,ar=er.oc,sr=er.pc+40,lr=er.oc,cr=er.pc+584,ur=er.oc,dr=er.pc+600;for(rr=0;16>rr;++rr)ar[sr+32*rr-1]=129;for(rr=0;8>rr;++rr)lr[cr+32*rr-1]=129,ur[dr+32*rr-1]=129;for(0<ir?ar[sr-1-32]=lr[cr-1-32]=ur[dr-1-32]=129:(i(ar,sr-32-1,127,21),i(lr,cr-32-1,127,9),i(ur,dr-32-1,127,9)),nr=0;nr<er.za;++nr){var hr=tr.ya[tr.aa+nr];if(0<nr){for(rr=-1;16>rr;++rr)r(ar,sr+32*rr-4,ar,sr+32*rr+12,4);for(rr=-1;8>rr;++rr)r(lr,cr+32*rr-4,lr,cr+32*rr+4,4),r(ur,dr+32*rr-4,ur,dr+32*rr+4,4)}var pr=er.Gd,Ar=er.Hd+nr,fr=hr.ad,gr=hr.Hc;if(0<ir&&(r(ar,sr-32,pr[Ar].y,0,16),r(lr,cr-32,pr[Ar].f,0,8),r(ur,dr-32,pr[Ar].ea,0,8)),hr.Za){var mr=ar,_r=sr-32+16;for(0<ir&&(nr>=er.za-1?i(mr,_r,pr[Ar].y[15],4):r(mr,_r,pr[Ar+1].y,0,4)),rr=0;4>rr;rr++)mr[_r+128+rr]=mr[_r+256+rr]=mr[_r+384+rr]=mr[_r+0+rr];for(rr=0;16>rr;++rr,gr<<=2)mr=ar,_r=sr+ji[rr],Ai[hr.Ob[rr]](mr,_r),Bn(gr,fr,16*+rr,mr,_r)}else if(mr=jn(nr,ir,hr.Ob[0]),pi[mr](ar,sr),0!=gr)for(rr=0;16>rr;++rr,gr<<=2)Bn(gr,fr,16*+rr,ar,sr+ji[rr]);for(rr=hr.Gc,mr=jn(nr,ir,hr.Dd),fi[mr](lr,cr),fi[mr](ur,dr),gr=fr,mr=lr,_r=cr,255&(hr=rr>>0)&&(170&hr?xr(gr,256,mr,_r):Cr(gr,256,mr,_r)),hr=ur,gr=dr,255&(rr>>=8)&&(170&rr?xr(fr,320,hr,gr):Cr(fr,320,hr,gr)),ir<er.Ub-1&&(r(pr[Ar].y,0,ar,sr+480,16),r(pr[Ar].f,0,lr,cr+224,8),r(pr[Ar].ea,0,ur,dr+224,8)),rr=8*or*er.B,pr=er.sa,Ar=er.ta+16*nr+16*or*er.R,fr=er.qa,hr=er.ra+8*nr+rr,gr=er.Ha,mr=er.Ia+8*nr+rr,rr=0;16>rr;++rr)r(pr,Ar+rr*er.R,ar,sr+32*rr,16);for(rr=0;8>rr;++rr)r(fr,hr+rr*er.B,lr,cr+32*rr,8),r(gr,mr+rr*er.B,ur,dr+32*rr,8)}}function Mn(er,tr,rr,nr,ir,or,ar,sr,lr){var cr=[0],ur=[0],dr=0,hr=null!=lr?lr.kd:0,pr=null!=lr?lr:new rn;if(null==er||12>rr)return 7;pr.data=er,pr.w=tr,pr.ha=rr,tr=[tr],rr=[rr],pr.gb=[pr.gb];e:{var Ar=tr,fr=rr,gr=pr.gb;if(e(null!=er),e(null!=fr),e(null!=gr),gr[0]=0,12<=fr[0]&&!n(er,Ar[0],"RIFF")){if(n(er,Ar[0]+8,"WEBP")){gr=3;break e}var mr=j(er,Ar[0]+4);if(12>mr||4294967286<mr){gr=3;break e}if(hr&&mr>fr[0]-8){gr=7;break e}gr[0]=mr,Ar[0]+=12,fr[0]-=12}gr=0}if(0!=gr)return gr;for(mr=0<pr.gb[0],rr=rr[0];;){e:{var _r=er;fr=tr,gr=rr;var vr=cr,yr=ur,br=Ar=[0];if((xr=dr=[dr])[0]=0,8>gr[0])gr=7;else{if(!n(_r,fr[0],"VP8X")){if(10!=j(_r,fr[0]+4)){gr=3;break e}if(18>gr[0]){gr=7;break e}var wr=j(_r,fr[0]+8),Sr=1+C(_r,fr[0]+12);if(2147483648<=Sr*(_r=1+C(_r,fr[0]+15))){gr=3;break e}null!=br&&(br[0]=wr),null!=vr&&(vr[0]=Sr),null!=yr&&(yr[0]=_r),fr[0]+=18,gr[0]-=18,xr[0]=1}gr=0}}if(dr=dr[0],Ar=Ar[0],0!=gr)return gr;if(fr=!!(2&Ar),!mr&&dr)return 3;if(null!=or&&(or[0]=!!(16&Ar)),null!=ar&&(ar[0]=fr),null!=sr&&(sr[0]=0),ar=cr[0],Ar=ur[0],dr&&fr&&null==lr){gr=0;break}if(4>rr){gr=7;break}if(mr&&dr||!mr&&!dr&&!n(er,tr[0],"ALPH")){rr=[rr],pr.na=[pr.na],pr.P=[pr.P],pr.Sa=[pr.Sa];e:{wr=er,gr=tr,mr=rr;var xr=pr.gb;vr=pr.na,yr=pr.P,br=pr.Sa,Sr=22,e(null!=wr),e(null!=mr),_r=gr[0];var kr=mr[0];for(e(null!=vr),e(null!=br),vr[0]=null,yr[0]=null,br[0]=0;;){if(gr[0]=_r,mr[0]=kr,8>kr){gr=7;break e}var Cr=j(wr,_r+4);if(4294967286<Cr){gr=3;break e}var Br=8+Cr+1&-2;if(Sr+=Br,0<xr&&Sr>xr){gr=3;break e}if(!n(wr,_r,"VP8 ")||!n(wr,_r,"VP8L")){gr=0;break e}if(kr[0]<Br){gr=7;break e}n(wr,_r,"ALPH")||(vr[0]=wr,yr[0]=_r+8,br[0]=Cr),_r+=Br,kr-=Br}}if(rr=rr[0],pr.na=pr.na[0],pr.P=pr.P[0],pr.Sa=pr.Sa[0],0!=gr)break}rr=[rr],pr.Ja=[pr.Ja],pr.xa=[pr.xa];e:if(xr=er,gr=tr,mr=rr,vr=pr.gb[0],yr=pr.Ja,br=pr.xa,wr=gr[0],_r=!n(xr,wr,"VP8 "),Sr=!n(xr,wr,"VP8L"),e(null!=xr),e(null!=mr),e(null!=yr),e(null!=br),8>mr[0])gr=7;else{if(_r||Sr){if(xr=j(xr,wr+4),12<=vr&&xr>vr-12){gr=3;break e}if(hr&&xr>mr[0]-8){gr=7;break e}yr[0]=xr,gr[0]+=8,mr[0]-=8,br[0]=Sr}else br[0]=5<=mr[0]&&47==xr[wr+0]&&!(xr[wr+4]>>5),yr[0]=mr[0];gr=0}if(rr=rr[0],pr.Ja=pr.Ja[0],pr.xa=pr.xa[0],tr=tr[0],0!=gr)break;if(4294967286<pr.Ja)return 3;if(null==sr||fr||(sr[0]=pr.xa?2:1),ar=[ar],Ar=[Ar],pr.xa){if(5>rr){gr=7;break}sr=ar,hr=Ar,fr=or,null==er||5>rr?er=0:5<=rr&&47==er[tr+0]&&!(er[tr+4]>>5)?(mr=[0],xr=[0],vr=[0],v(yr=new N,er,tr,rr),gt(yr,mr,xr,vr)?(null!=sr&&(sr[0]=mr[0]),null!=hr&&(hr[0]=xr[0]),null!=fr&&(fr[0]=vr[0]),er=1):er=0):er=0}else{if(10>rr){gr=7;break}sr=Ar,null==er||10>rr||!Xt(er,tr+3,rr-3)?er=0:(hr=er[tr+0]|er[tr+1]<<8|er[tr+2]<<16,fr=16383&(er[tr+7]<<8|er[tr+6]),er=16383&(er[tr+9]<<8|er[tr+8]),1&hr||3<(hr>>1&7)||!(hr>>4&1)||hr>>5>=pr.Ja||!fr||!er?er=0:(ar&&(ar[0]=fr),sr&&(sr[0]=er),er=1))}if(!er)return 3;if(ar=ar[0],Ar=Ar[0],dr&&(cr[0]!=ar||ur[0]!=Ar))return 3;null!=lr&&(lr[0]=pr,lr.offset=tr-lr.w,e(4294967286>tr-lr.w),e(lr.offset==lr.ha-rr));break}return 0==gr||7==gr&&dr&&null==lr?(null!=or&&(or[0]|=null!=pr.na&&0<pr.na.length),null!=nr&&(nr[0]=ar),null!=ir&&(ir[0]=Ar),0):gr}function En(er,tr,rr){var nr=tr.width,ir=tr.height,or=0,ar=0,sr=nr,lr=ir;if(tr.Da=null!=er&&0<er.Da,tr.Da&&(sr=er.cd,lr=er.bd,or=er.v,ar=er.j,11>rr||(or&=-2,ar&=-2),0>or||0>ar||0>=sr||0>=lr||or+sr>nr||ar+lr>ir))return 0;if(tr.v=or,tr.j=ar,tr.va=or+sr,tr.o=ar+lr,tr.U=sr,tr.T=lr,tr.da=null!=er&&0<er.da,tr.da){if(!E(sr,lr,rr=[er.ib],or=[er.hb]))return 0;tr.ib=rr[0],tr.hb=or[0]}return tr.ob=null!=er&&er.ob,tr.Kb=null==er||!er.Sd,tr.da&&(tr.ob=tr.ib<3*nr/4&&tr.hb<3*ir/4,tr.Kb=0),1}function qn(er){if(null==er)return 2;if(11>er.S){var tr=er.f.RGBA;tr.fb+=(er.height-1)*tr.A,tr.A=-tr.A}else tr=er.f.kb,er=er.height,tr.O+=(er-1)*tr.fa,tr.fa=-tr.fa,tr.N+=(er-1>>1)*tr.Ab,tr.Ab=-tr.Ab,tr.W+=(er-1>>1)*tr.Db,tr.Db=-tr.Db,null!=tr.F&&(tr.J+=(er-1)*tr.lb,tr.lb=-tr.lb);return 0}function Rn(er,tr,rr,nr){if(null==nr||0>=er||0>=tr)return 2;if(null!=rr){if(rr.Da){var ir=rr.cd,or=rr.bd,ar=-2&rr.v,sr=-2&rr.j;if(0>ar||0>sr||0>=ir||0>=or||ar+ir>er||sr+or>tr)return 2;er=ir,tr=or}if(rr.da){if(!E(er,tr,ir=[rr.ib],or=[rr.hb]))return 2;er=ir[0],tr=or[0]}}nr.width=er,nr.height=tr;e:{var lr=nr.width,cr=nr.height;if(er=nr.S,0>=lr||0>=cr||!(er>=$r&&13>er))er=2;else{if(0>=nr.Rd&&null==nr.sd){ar=or=ir=tr=0;var ur=(sr=lr*zi[er])*cr;if(11>er||(or=(cr+1)/2*(tr=(lr+1)/2),12==er&&(ar=(ir=lr)*cr)),null==(cr=a(ur+2*or+ar))){er=1;break e}nr.sd=cr,11>er?((lr=nr.f.RGBA).eb=cr,lr.fb=0,lr.A=sr,lr.size=ur):((lr=nr.f.kb).y=cr,lr.O=0,lr.fa=sr,lr.Fd=ur,lr.f=cr,lr.N=0+ur,lr.Ab=tr,lr.Cd=or,lr.ea=cr,lr.W=0+ur+or,lr.Db=tr,lr.Ed=or,12==er&&(lr.F=cr,lr.J=0+ur+2*or),lr.Tc=ar,lr.lb=ir)}if(tr=1,ir=nr.S,or=nr.width,ar=nr.height,ir>=$r&&13>ir)if(11>ir)er=nr.f.RGBA,tr&=(sr=Math.abs(er.A))*(ar-1)+or<=er.size,tr&=sr>=or*zi[ir],tr&=null!=er.eb;else{er=nr.f.kb,sr=(or+1)/2,ur=(ar+1)/2,lr=Math.abs(er.fa),cr=Math.abs(er.Ab);var dr=Math.abs(er.Db),hr=Math.abs(er.lb),pr=hr*(ar-1)+or;tr&=lr*(ar-1)+or<=er.Fd,tr&=cr*(ur-1)+sr<=er.Cd,tr=(tr&=dr*(ur-1)+sr<=er.Ed)&lr>=or&cr>=sr&dr>=sr,tr&=null!=er.y,tr&=null!=er.f,tr&=null!=er.ea,12==ir&&(tr&=hr>=or,tr&=pr<=er.Tc,tr&=null!=er.F)}else tr=0;er=tr?0:2}}return 0!=er||null!=rr&&rr.fd&&(er=qn(nr)),er}var tr=64,rr=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],nr=24,ir=32,or=8,ar=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];T("Predictor0","PredictorAdd0"),er.Predictor0=function(){return 4278190080},er.Predictor1=function(er){return er},er.Predictor2=function(er,tr,rr){return tr[rr+0]},er.Predictor3=function(er,tr,rr){return tr[rr+1]},er.Predictor4=function(er,tr,rr){return tr[rr-1]},er.Predictor5=function(er,tr,rr){return U(U(er,tr[rr+1]),tr[rr+0])},er.Predictor6=function(er,tr,rr){return U(er,tr[rr-1])},er.Predictor7=function(er,tr,rr){return U(er,tr[rr+0])},er.Predictor8=function(er,tr,rr){return U(tr[rr-1],tr[rr+0])},er.Predictor9=function(er,tr,rr){return U(tr[rr+0],tr[rr+1])},er.Predictor10=function(er,tr,rr){return U(U(er,tr[rr-1]),U(tr[rr+0],tr[rr+1]))},er.Predictor11=function(er,tr,rr){var nr=tr[rr+0];return 0>=W(nr>>24&255,er>>24&255,(tr=tr[rr-1])>>24&255)+W(nr>>16&255,er>>16&255,tr>>16&255)+W(nr>>8&255,er>>8&255,tr>>8&255)+W(255&nr,255&er,255&tr)?nr:er},er.Predictor12=function(er,tr,rr){var nr=tr[rr+0];return(z((er>>24&255)+(nr>>24&255)-((tr=tr[rr-1])>>24&255))<<24|z((er>>16&255)+(nr>>16&255)-(tr>>16&255))<<16|z((er>>8&255)+(nr>>8&255)-(tr>>8&255))<<8|z((255&er)+(255&nr)-(255&tr)))>>>0},er.Predictor13=function(er,tr,rr){var nr=tr[rr-1];return(H((er=U(er,tr[rr+0]))>>24&255,nr>>24&255)<<24|H(er>>16&255,nr>>16&255)<<16|H(er>>8&255,nr>>8&255)<<8|H(er>>0&255,nr>>0&255))>>>0};var sr=er.PredictorAdd0;er.PredictorAdd1=V,T("Predictor2","PredictorAdd2"),T("Predictor3","PredictorAdd3"),T("Predictor4","PredictorAdd4"),T("Predictor5","PredictorAdd5"),T("Predictor6","PredictorAdd6"),T("Predictor7","PredictorAdd7"),T("Predictor8","PredictorAdd8"),T("Predictor9","PredictorAdd9"),T("Predictor10","PredictorAdd10"),T("Predictor11","PredictorAdd11"),T("Predictor12","PredictorAdd12"),T("Predictor13","PredictorAdd13");var lr=er.PredictorAdd2;X("ColorIndexInverseTransform","MapARGB","32b",(function(er){return er>>8&255}),(function(er){return er})),X("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",(function(er){return er}),(function(er){return er>>8&255}));var cr,ur=er.ColorIndexInverseTransform,dr=er.MapARGB,hr=er.VP8LColorIndexInverseTransformAlpha,pr=er.MapAlpha,Ar=er.VP8LPredictorsAdd=[];Ar.length=16,(er.VP8LPredictors=[]).length=16,(er.VP8LPredictorsAdd_C=[]).length=16,(er.VP8LPredictors_C=[]).length=16;var fr,gr,mr,_r,vr,yr,br,wr,Sr,xr,kr,Cr,Br,Er,Nr,Lr,Tr,Pr,Fr,Ur,Ir,Rr,Mr,Or,Qr,Dr,jr,Hr,Gr=a(511),Vr=a(2041),zr=a(225),Kr=a(767),qr=0,Wr=Vr,Xr=zr,Yr=Kr,Jr=Gr,$r=0,Zr=1,Tn=2,Un=3,Qn=4,Dn=5,Hn=6,Gn=7,Vn=8,zn=9,Kn=10,Wn=[2,3,7],Xn=[3,3,11],Yn=[280,256,256,256,40],Jn=[0,1,1,1,0],$n=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],Zn=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],ei=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],ti=8,ri=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],ni=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],ii=null,oi=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],ai=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],si=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],li=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],ui=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],di=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],hi=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],pi=[],Ai=[],fi=[],gi=1,mi=2,_i=[],vi=[];bn("UpsampleRgbLinePair",An,3),bn("UpsampleBgrLinePair",_n,3),bn("UpsampleRgbaLinePair",In,4),bn("UpsampleBgraLinePair",Fn,4),bn("UpsampleArgbLinePair",kn,4),bn("UpsampleRgba4444LinePair",Pn,2),bn("UpsampleRgb565LinePair",Sn,2);var yi=er.UpsampleRgbLinePair,wi=er.UpsampleBgrLinePair,Si=er.UpsampleRgbaLinePair,xi=er.UpsampleBgraLinePair,ki=er.UpsampleArgbLinePair,Ci=er.UpsampleRgba4444LinePair,Bi=er.UpsampleRgb565LinePair,Ei=16,Ni=1<<Ei-1,Li=-227,Ti=482,Pi=6,Fi=(256<<Pi)-1,Ui=0,Ii=a(256),Ri=a(256),Mi=a(256),Oi=a(256),Qi=a(Ti-Li),Di=a(Ti-Li);Cn("YuvToRgbRow",An,3),Cn("YuvToBgrRow",_n,3),Cn("YuvToRgbaRow",In,4),Cn("YuvToBgraRow",Fn,4),Cn("YuvToArgbRow",kn,4),Cn("YuvToRgba4444Row",Pn,2),Cn("YuvToRgb565Row",Sn,2);var ji=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Hi=[0,2,8],Gi=[8,7,6,4,4,2,2,2,1,1,1,1],Vi=1;this.WebPDecodeRGBA=function(er,tr,rr,nr,ir){var or=Zr,ar=new nn,sr=new ot;ar.ba=sr,sr.S=or,sr.width=[sr.width],sr.height=[sr.height];var lr=sr.width,cr=sr.height,ur=new st;if(null==ur||null==er)var dr=2;else e(null!=ur),dr=Mn(er,tr,rr,ur.width,ur.height,ur.Pd,ur.Qd,ur.format,null);if(0!=dr?lr=0:(null!=lr&&(lr[0]=ur.width[0]),null!=cr&&(cr[0]=ur.height[0]),lr=1),lr){sr.width=sr.width[0],sr.height=sr.height[0],null!=nr&&(nr[0]=sr.width),null!=ir&&(ir[0]=sr.height);e:{if(nr=new Gt,(ir=new rn).data=er,ir.w=tr,ir.ha=rr,ir.kd=1,tr=[0],e(null!=ir),(0==(er=Mn(ir.data,ir.w,ir.ha,null,null,null,tr,null,ir))||7==er)&&tr[0]&&(er=4),0==(tr=er)){if(e(null!=ar),nr.data=ir.data,nr.w=ir.w+ir.offset,nr.ha=ir.ha-ir.offset,nr.put=dt,nr.ac=ft,nr.bc=pt,nr.ma=ar,ir.xa){if(null==(er=kt())){ar=1;break e}if(function(er,tr){var rr=[0],nr=[0],ir=[0];t:for(;;){if(null==er)return 0;if(null==tr)return er.a=2,0;if(er.l=tr,er.a=0,v(er.m,tr.data,tr.w,tr.ha),!gt(er.m,rr,nr,ir)){er.a=3;break t}if(er.xb=mi,tr.width=rr[0],tr.height=nr[0],!Ft(rr[0],nr[0],1,er,null))break t;return 1}return e(0!=er.a),0}(er,nr)){if(nr=0==(tr=Rn(nr.width,nr.height,ar.Oa,ar.ba))){t:{nr=er;r:for(;;){if(null==nr){nr=0;break t}if(e(null!=nr.s.yc),e(null!=nr.s.Ya),e(0<nr.s.Wb),e(null!=(rr=nr.l)),e(null!=(ir=rr.ma)),0!=nr.xb){if(nr.ca=ir.ba,nr.tb=ir.tb,e(null!=nr.ca),!En(ir.Oa,rr,Un)){nr.a=2;break r}if(!It(nr,rr.width))break r;if(rr.da)break r;if((rr.da||rt(nr.ca.S))&&vn(),11>nr.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),null!=nr.ca.f.kb.F&&vn()),nr.Pb&&0<nr.s.ua&&null==nr.s.vb.X&&!B(nr.s.vb,nr.s.Wa.Xa)){nr.a=1;break r}nr.xb=0}if(!St(nr,nr.V,nr.Ba,nr.c,nr.i,rr.o,Lt))break r;ir.Dc=nr.Ma,nr=1;break t}e(0!=nr.a),nr=0}nr=!nr}nr&&(tr=er.a)}else tr=er.a}else{if(null==(er=new Yt)){ar=1;break e}if(er.Fa=ir.na,er.P=ir.P,er.qc=ir.Sa,Kt(er,nr)){if(0==(tr=Rn(nr.width,nr.height,ar.Oa,ar.ba))){if(er.Aa=0,rr=ar.Oa,e(null!=(ir=er)),null!=rr){if(0<(lr=0>(lr=rr.Md)?0:100<lr?255:255*lr/100)){for(cr=ur=0;4>cr;++cr)12>(dr=ir.pb[cr]).lc&&(dr.ia=lr*Gi[0>dr.lc?0:dr.lc]>>3),ur|=dr.ia;ur&&(alert("todo:VP8InitRandom"),ir.ia=1)}ir.Ga=rr.Id,100<ir.Ga?ir.Ga=100:0>ir.Ga&&(ir.Ga=0)}Qt(er,nr)||(tr=er.a)}}else tr=er.a}0==tr&&null!=ar.Oa&&ar.Oa.fd&&(tr=qn(ar.ba))}ar=tr}or=0!=ar?null:11>or?sr.f.RGBA.eb:sr.f.kb.y}else or=null;return or};var zi=[3,4,3,4,4,2,2,4,4,4,2,1,1]});var tr=[0],rr=[0],nr=[],ir=new Et,or=er,ar=function(er,tr){var rr={},nr=0,ir=!1,or=0,ar=0;if(rr.frames=[],!
|
||
/** @license
|
||
* Copyright (c) 2017 Dominik Homberger
|
||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||
|
||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||
|
||
https://webpjs.appspot.com
|
||
WebPRiffParser dominikhlbg@gmail.com
|
||
*/
|
||
function(er,tr,rr,nr){for(var ir=0;ir<4;ir++)if(er[tr+ir]!="RIFF".charCodeAt(ir))return!0;return!1}(er,tr)){var sr,lr;for(h(er,tr+=4),tr+=8;tr<er.length;){var cr=u(er,tr),ur=h(er,tr+=4);tr+=4;var dr=ur+(1&ur);switch(cr){case"VP8 ":case"VP8L":void 0===rr.frames[nr]&&(rr.frames[nr]={}),(Ar=rr.frames[nr]).src_off=ir?ar:tr-8,Ar.src_size=or+ur+8,nr++,ir&&(ir=!1,or=0,ar=0);break;case"VP8X":(Ar=rr.header={}).feature_flags=er[tr];var hr=tr+4;Ar.canvas_width=1+c(er,hr),hr+=3,Ar.canvas_height=1+c(er,hr),hr+=3;break;case"ALPH":ir=!0,or=dr+8,ar=tr-8;break;case"ANIM":(Ar=rr.header).bgcolor=h(er,tr),hr=tr+4,Ar.loop_count=(sr=er)[(lr=hr)+0]<<0|sr[lr+1]<<8,hr+=2;break;case"ANMF":var pr,Ar;(Ar=rr.frames[nr]={}).offset_x=2*c(er,tr),tr+=3,Ar.offset_y=2*c(er,tr),tr+=3,Ar.width=1+c(er,tr),tr+=3,Ar.height=1+c(er,tr),tr+=3,Ar.duration=c(er,tr),tr+=3,pr=er[tr++],Ar.dispose=1&pr,Ar.blend=pr>>1&1}"ANMF"!=cr&&(tr+=dr)}return rr}}(or,0);ar.response=or,ar.rgbaoutput=!0,ar.dataurl=!1;var sr=ar.header?ar.header:null,lr=ar.frames?ar.frames:null;if(sr){sr.loop_counter=sr.loop_count,tr=[sr.canvas_height],rr=[sr.canvas_width];for(var cr=0;cr<lr.length&&0!=lr[cr].blend;cr++);}var ur=lr[0],dr=ir.WebPDecodeRGBA(or,ur.src_off,ur.src_size,rr,tr);ur.rgba=dr,ur.imgwidth=rr[0],ur.imgheight=tr[0];for(var hr=0;hr<rr[0]*tr[0]*4;hr++)nr[hr]=dr[hr];return this.width=rr,this.height=tr,this.data=nr,this
|
||
/**
|
||
* @license
|
||
*
|
||
* Copyright (c) 2014 James Robb, https://github.com/jamesbrobb
|
||
*
|
||
* Permission is hereby granted, free of charge, to any person obtaining
|
||
* a copy of this software and associated documentation files (the
|
||
* "Software"), to deal in the Software without restriction, including
|
||
* without limitation the rights to use, copy, modify, merge, publish,
|
||
* distribute, sublicense, and/or sell copies of the Software, and to
|
||
* permit persons to whom the Software is furnished to do so, subject to
|
||
* the following conditions:
|
||
*
|
||
* The above copyright notice and this permission notice shall be
|
||
* included in all copies or substantial portions of the Software.
|
||
*
|
||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||
* ====================================================================
|
||
*/}!function(er){var tr=function n(tr,ir,cr,ur){var dr=5,hr=ar;switch(ur){case er.image_compression.FAST:dr=3,hr=or;break;case er.image_compression.MEDIUM:dr=6,hr=sr;break;case er.image_compression.SLOW:dr=9,hr=lr}tr=nr(tr,ir,cr,hr);var pr=new Uint8Array(rr(dr)),Ar=g.API.adler32cs.fromBuffer(tr.buffer),fr=new xt(dr),gr=fr.append(tr),mr=fr.flush(),_r=pr.length+gr.length+mr.length,vr=new Uint8Array(_r+4);return vr.set(pr),vr.set(gr,pr.length),vr.set(mr,pr.length+gr.length),vr[_r++]=Ar>>>24&255,vr[_r++]=Ar>>>16&255,vr[_r++]=Ar>>>8&255,vr[_r++]=255&Ar,er.__addimage__.arrayBufferToBinaryString(vr)},rr=function r(er){var tr=30720;return tr|=Math.min(3,(er-1&255)>>1)<<6,tr|=0,[120,255&(tr+=31-tr%31)]},nr=function i(er,tr,rr,nr){for(var i,ir,or,ar=er.length/tr,sr=new Uint8Array(er.length+ar),lr=ur(),cr=0;cr<ar;cr+=1){if(or=cr*tr,i=er.subarray(or,or+tr),nr)sr.set(nr(i,rr,ir),or+cr);else{for(var hr,pr=lr.length,Ar=[];hr<pr;hr+=1)Ar[hr]=lr[hr](i,rr,ir);var fr=dr(Ar.concat());sr.set(Ar[fr],or+cr)}ir=i}return sr},ir=function a(er){var tr=Array.apply([],er);return tr.unshift(0),tr},or=function o(er,tr){var rr,nr=[],ir=er.length;nr[0]=1;for(var or=0;or<ir;or+=1)rr=er[or-tr]||0,nr[or+1]=er[or]-rr+256&255;return nr},ar=function s(er,tr,rr){var nr,ir=[],or=er.length;ir[0]=2;for(var ar=0;ar<or;ar+=1)nr=rr&&rr[ar]||0,ir[ar+1]=er[ar]-nr+256&255;return ir},sr=function u(er,tr,rr){var nr,ir,or=[],ar=er.length;or[0]=3;for(var sr=0;sr<ar;sr+=1)nr=er[sr-tr]||0,ir=rr&&rr[sr]||0,or[sr+1]=er[sr]+256-(nr+ir>>>1)&255;return or},lr=function c(er,tr,rr){var nr,ir,or,ar,sr=[],lr=er.length;sr[0]=4;for(var c=0;c<lr;c+=1)nr=er[c-tr]||0,ir=rr&&rr[c]||0,or=rr&&rr[c-tr]||0,ar=cr(nr,ir,or),sr[c+1]=er[c]-ar+256&255;return sr},cr=function h(er,tr,rr){if(er===tr&&tr===rr)return er;var nr=Math.abs(tr-rr),ir=Math.abs(er-rr),or=Math.abs(er+tr-rr-rr);return nr<=ir&&nr<=or?er:ir<=or?tr:rr},ur=function l(){return[ir,or,ar,sr,lr]},dr=function f(er){var tr=er.map((function(er){return er.reduce((function(er,tr){return er+Math.abs(tr)}),0)}));return tr.indexOf(Math.min.apply(null,tr))};er.processPNG=function(rr,nr,ir,or){var ar,sr,lr,cr,ur,dr,hr,pr,Ar,fr,gr,mr,_r,vr,yr,br=this.decode.FLATE_DECODE,wr="";if(this.__addimage__.isArrayBuffer(rr)&&(rr=new Uint8Array(rr)),this.__addimage__.isArrayBufferView(rr)){if(rr=(lr=new Xg(rr)).imgData,sr=lr.bits,ar=lr.colorSpace,ur=lr.colors,-1!==[4,6].indexOf(lr.colorType)){if(8===lr.bits){Ar=(pr=32==lr.pixelBitlength?new Uint32Array(lr.decodePixels().buffer):16==lr.pixelBitlength?new Uint16Array(lr.decodePixels().buffer):new Uint8Array(lr.decodePixels().buffer)).length,gr=new Uint8Array(Ar*lr.colors),fr=new Uint8Array(Ar);var Sr,xr=lr.pixelBitlength-lr.bits;for(vr=0,yr=0;vr<Ar;vr++){for(_r=pr[vr],Sr=0;Sr<xr;)gr[yr++]=_r>>>Sr&255,Sr+=lr.bits;fr[vr]=_r>>>Sr&255}}if(16===lr.bits){Ar=(pr=new Uint32Array(lr.decodePixels().buffer)).length,gr=new Uint8Array(Ar*(32/lr.pixelBitlength)*lr.colors),fr=new Uint8Array(Ar*(32/lr.pixelBitlength)),mr=lr.colors>1,vr=0,yr=0;for(var kr=0;vr<Ar;)_r=pr[vr++],gr[yr++]=_r>>>0&255,mr&&(gr[yr++]=_r>>>16&255,_r=pr[vr++],gr[yr++]=_r>>>0&255),fr[kr++]=_r>>>16&255;sr=8}or!==er.image_compression.NONE?(rr=tr(gr,lr.width*lr.colors,lr.colors,or),hr=tr(fr,lr.width,1,or)):(rr=gr,hr=fr,br=void 0)}if(3===lr.colorType&&(ar=this.color_spaces.INDEXED,dr=lr.palette,lr.transparency.indexed)){var Cr=lr.transparency.indexed,Br=0;for(vr=0,Ar=Cr.length;vr<Ar;++vr)Br+=Cr[vr];if((Br/=255)==Ar-1&&-1!==Cr.indexOf(0))cr=[Cr.indexOf(0)];else if(Br!==Ar){for(pr=lr.decodePixels(),fr=new Uint8Array(pr.length),vr=0,Ar=pr.length;vr<Ar;vr++)fr[vr]=Cr[pr[vr]];hr=tr(fr,lr.width,1)}}var Er=function(tr){var rr;switch(tr){case er.image_compression.FAST:rr=11;break;case er.image_compression.MEDIUM:rr=13;break;case er.image_compression.SLOW:rr=14;break;default:rr=12}return rr}(or);return br===this.decode.FLATE_DECODE&&(wr="/Predictor "+Er+" "),wr+="/Colors "+ur+" /BitsPerComponent "+sr+" /Columns "+lr.width,(this.__addimage__.isArrayBuffer(rr)||this.__addimage__.isArrayBufferView(rr))&&(rr=this.__addimage__.arrayBufferToBinaryString(rr)),(hr&&this.__addimage__.isArrayBuffer(hr)||this.__addimage__.isArrayBufferView(hr))&&(hr=this.__addimage__.arrayBufferToBinaryString(hr)),{alias:ir,data:rr,index:nr,filter:br,decodeParameters:wr,transparency:cr,palette:dr,sMask:hr,predictor:Er,width:lr.width,height:lr.height,bitsPerComponent:sr,colorSpace:ar}}}}(g.API),function(er){er.processGIF89A=function(tr,rr,nr,ir){var or=new jt(tr),ar=or.width,sr=or.height,lr=[];or.decodeAndBlitFrameRGBA(0,lr);var cr={data:lr,width:ar,height:sr},ur=new Ot(100).encode(cr,100);return er.processJPEG.call(this,ur,rr,nr,ir)},er.processGIF87A=er.processGIF89A}(g.API),Mt.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,16===this.bitPP&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var er=0===this.colors?1<<this.bitPP:this.colors;this.palette=new Array(er);for(var tr=0;tr<er;tr++){var rr=this.datav.getUint8(this.pos++,!0),nr=this.datav.getUint8(this.pos++,!0),ir=this.datav.getUint8(this.pos++,!0),or=this.datav.getUint8(this.pos++,!0);this.palette[tr]={red:ir,green:nr,blue:rr,quad:or}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},Mt.prototype.parseBGR=function(){this.pos=this.offset;try{var er="bit"+this.bitPP,tr=this.width*this.height*4;this.data=new Uint8Array(tr),this[er]()}catch(er){Of.log("bit decode error:"+er)}},Mt.prototype.bit1=function(){var er,tr=Math.ceil(this.width/8),rr=tr%4;for(er=this.height-1;er>=0;er--){for(var nr=this.bottom_up?er:this.height-1-er,ir=0;ir<tr;ir++)for(var or=this.datav.getUint8(this.pos++,!0),ar=nr*this.width*4+8*ir*4,sr=0;sr<8&&8*ir+sr<this.width;sr++){var lr=this.palette[or>>7-sr&1];this.data[ar+4*sr]=lr.blue,this.data[ar+4*sr+1]=lr.green,this.data[ar+4*sr+2]=lr.red,this.data[ar+4*sr+3]=255}0!==rr&&(this.pos+=4-rr)}},Mt.prototype.bit4=function(){for(var er=Math.ceil(this.width/2),tr=er%4,rr=this.height-1;rr>=0;rr--){for(var nr=this.bottom_up?rr:this.height-1-rr,ir=0;ir<er;ir++){var or=this.datav.getUint8(this.pos++,!0),ar=nr*this.width*4+2*ir*4,sr=or>>4,lr=15&or,cr=this.palette[sr];if(this.data[ar]=cr.blue,this.data[ar+1]=cr.green,this.data[ar+2]=cr.red,this.data[ar+3]=255,2*ir+1>=this.width)break;cr=this.palette[lr],this.data[ar+4]=cr.blue,this.data[ar+4+1]=cr.green,this.data[ar+4+2]=cr.red,this.data[ar+4+3]=255}0!==tr&&(this.pos+=4-tr)}},Mt.prototype.bit8=function(){for(var er=this.width%4,tr=this.height-1;tr>=0;tr--){for(var rr=this.bottom_up?tr:this.height-1-tr,nr=0;nr<this.width;nr++){var ir=this.datav.getUint8(this.pos++,!0),or=rr*this.width*4+4*nr;if(ir<this.palette.length){var ar=this.palette[ir];this.data[or]=ar.red,this.data[or+1]=ar.green,this.data[or+2]=ar.blue,this.data[or+3]=255}else this.data[or]=255,this.data[or+1]=255,this.data[or+2]=255,this.data[or+3]=255}0!==er&&(this.pos+=4-er)}},Mt.prototype.bit15=function(){for(var er=this.width%3,tr=parseInt("11111",2),rr=this.height-1;rr>=0;rr--){for(var nr=this.bottom_up?rr:this.height-1-rr,ir=0;ir<this.width;ir++){var or=this.datav.getUint16(this.pos,!0);this.pos+=2;var ar=(or&tr)/tr*255|0,sr=(or>>5&tr)/tr*255|0,lr=(or>>10&tr)/tr*255|0,cr=or>>15?255:0,ur=nr*this.width*4+4*ir;this.data[ur]=lr,this.data[ur+1]=sr,this.data[ur+2]=ar,this.data[ur+3]=cr}this.pos+=er}},Mt.prototype.bit16=function(){for(var er=this.width%3,tr=parseInt("11111",2),rr=parseInt("111111",2),nr=this.height-1;nr>=0;nr--){for(var ir=this.bottom_up?nr:this.height-1-nr,or=0;or<this.width;or++){var ar=this.datav.getUint16(this.pos,!0);this.pos+=2;var sr=(ar&tr)/tr*255|0,lr=(ar>>5&rr)/rr*255|0,cr=(ar>>11)/tr*255|0,ur=ir*this.width*4+4*or;this.data[ur]=cr,this.data[ur+1]=lr,this.data[ur+2]=sr,this.data[ur+3]=255}this.pos+=er}},Mt.prototype.bit24=function(){for(var er=this.height-1;er>=0;er--){for(var tr=this.bottom_up?er:this.height-1-er,rr=0;rr<this.width;rr++){var nr=this.datav.getUint8(this.pos++,!0),ir=this.datav.getUint8(this.pos++,!0),or=this.datav.getUint8(this.pos++,!0),ar=tr*this.width*4+4*rr;this.data[ar]=or,this.data[ar+1]=ir,this.data[ar+2]=nr,this.data[ar+3]=255}this.pos+=this.width%4}},Mt.prototype.bit32=function(){for(var er=this.height-1;er>=0;er--)for(var tr=this.bottom_up?er:this.height-1-er,rr=0;rr<this.width;rr++){var nr=this.datav.getUint8(this.pos++,!0),ir=this.datav.getUint8(this.pos++,!0),or=this.datav.getUint8(this.pos++,!0),ar=this.datav.getUint8(this.pos++,!0),sr=tr*this.width*4+4*rr;this.data[sr]=or,this.data[sr+1]=ir,this.data[sr+2]=nr,this.data[sr+3]=ar}},Mt.prototype.getData=function(){return this.data},
|
||
/**
|
||
* @license
|
||
* Copyright (c) 2018 Aras Abbasi
|
||
*
|
||
* Licensed under the MIT License.
|
||
* http://opensource.org/licenses/mit-license
|
||
*/
|
||
function(er){er.processBMP=function(tr,rr,nr,ir){var or=new Mt(tr,!1),ar=or.width,sr=or.height,lr={data:or.getData(),width:ar,height:sr},cr=new Ot(100).encode(lr,100);return er.processJPEG.call(this,cr,rr,nr,ir)}}(g.API),Et.prototype.getData=function(){return this.data},
|
||
/**
|
||
* @license
|
||
* Copyright (c) 2019 Aras Abbasi
|
||
*
|
||
* Licensed under the MIT License.
|
||
* http://opensource.org/licenses/mit-license
|
||
*/
|
||
function(er){er.processWEBP=function(tr,rr,nr,ir){var or=new Et(tr,!1),ar=or.width,sr=or.height,lr={data:or.getData(),width:ar,height:sr},cr=new Ot(100).encode(lr,100);return er.processJPEG.call(this,cr,rr,nr,ir)}}(g.API),g.API.setLanguage=function(er){return void 0===this.internal.languageSettings&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),void 0!=={af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"FYRO Macedonian",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[er]&&(this.internal.languageSettings.languageCode=er,!1===this.internal.languageSettings.isSubscribed&&(this.internal.events.subscribe("putCatalog",(function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")})),this.internal.languageSettings.isSubscribed=!0)),this},
|
||
/** @license
|
||
* MIT license.
|
||
* Copyright (c) 2012 Willow Systems Corporation, willow-systems.com
|
||
* 2014 Diego Casorran, https://github.com/diegocr
|
||
*
|
||
* Permission is hereby granted, free of charge, to any person obtaining
|
||
* a copy of this software and associated documentation files (the
|
||
* "Software"), to deal in the Software without restriction, including
|
||
* without limitation the rights to use, copy, modify, merge, publish,
|
||
* distribute, sublicense, and/or sell copies of the Software, and to
|
||
* permit persons to whom the Software is furnished to do so, subject to
|
||
* the following conditions:
|
||
*
|
||
* The above copyright notice and this permission notice shall be
|
||
* included in all copies or substantial portions of the Software.
|
||
*
|
||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||
* ====================================================================
|
||
*/
|
||
Hg=g.API,Gg=Hg.getCharWidthsArray=function(er,tr){var rr,nr,ir=(tr=tr||{}).font||this.internal.getFont(),or=tr.fontSize||this.internal.getFontSize(),ar=tr.charSpace||this.internal.getCharSpace(),sr=tr.widths?tr.widths:ir.metadata.Unicode.widths,lr=sr.fof?sr.fof:1,cr=tr.kerning?tr.kerning:ir.metadata.Unicode.kerning,ur=cr.fof?cr.fof:1,dr=!1!==tr.doKerning,hr=0,pr=er.length,Ar=0,fr=sr[0]||lr,gr=[];for(rr=0;rr<pr;rr++)nr=er.charCodeAt(rr),"function"==typeof ir.metadata.widthOfString?gr.push((ir.metadata.widthOfGlyph(ir.metadata.characterToGlyph(nr))+ar*(1e3/or)||0)/1e3):(hr=dr&&"object"==_typeof(cr[nr])&&!isNaN(parseInt(cr[nr][Ar],10))?cr[nr][Ar]/ur:0,gr.push((sr[nr]||fr)/lr+hr)),Ar=nr;return gr},Vg=Hg.getStringUnitWidth=function(er,tr){var rr=(tr=tr||{}).fontSize||this.internal.getFontSize(),nr=tr.font||this.internal.getFont(),ir=tr.charSpace||this.internal.getCharSpace();return Hg.processArabic&&(er=Hg.processArabic(er)),"function"==typeof nr.metadata.widthOfString?nr.metadata.widthOfString(er,rr,ir)/rr:Gg.apply(this,arguments).reduce((function(er,tr){return er+tr}),0)},zg=function Pt(er,tr,rr,nr){for(var ir=[],or=0,ar=er.length,sr=0;or!==ar&&sr+tr[or]<rr;)sr+=tr[or],or++;ir.push(er.slice(0,or));var lr=or;for(sr=0;or!==ar;)sr+tr[or]>nr&&(ir.push(er.slice(lr,or)),sr=0,lr=or),sr+=tr[or],or++;return lr!==or&&ir.push(er.slice(lr,or)),ir},Kg=function kt(er,tr,rr){rr||(rr={});var nr,ir,or,ar,sr,lr,cr,ur=[],dr=[ur],hr=rr.textIndent||0,pr=0,Ar=0,fr=er.split(" "),gr=Gg.apply(this,[" ",rr])[0];if(lr=-1===rr.lineIndent?fr[0].length+2:rr.lineIndent||0){var mr=Array(lr).join(" "),_r=[];fr.map((function(er){(er=er.split(/\s*\n/)).length>1?_r=_r.concat(er.map((function(er,tr){return(tr&&er.length?"\n":"")+er}))):_r.push(er[0])})),fr=_r,lr=Vg.apply(this,[mr,rr])}for(or=0,ar=fr.length;or<ar;or++){var vr=0;if(nr=fr[or],lr&&"\n"==nr[0]&&(nr=nr.substr(1),vr=1),hr+pr+(Ar=(ir=Gg.apply(this,[nr,rr])).reduce((function(er,tr){return er+tr}),0))>tr||vr){if(Ar>tr){for(sr=zg.apply(this,[nr,ir,tr-(hr+pr),tr]),ur.push(sr.shift()),ur=[sr.pop()];sr.length;)dr.push([sr.shift()]);Ar=ir.slice(nr.length-(ur[0]?ur[0].length:0)).reduce((function(er,tr){return er+tr}),0)}else ur=[nr];dr.push(ur),hr=Ar+lr,pr=gr}else ur.push(nr),hr+=pr+Ar,pr=gr}return cr=lr?function(er,tr){return(tr?mr:"")+er.join(" ")}:function(er){return er.join(" ")},dr.map(cr)},Hg.splitTextToSize=function(er,tr,rr){var nr,ir=(rr=rr||{}).fontSize||this.internal.getFontSize(),or=function(er){if(er.widths&&er.kerning)return{widths:er.widths,kerning:er.kerning};var tr=this.internal.getFont(er.fontName,er.fontStyle);return tr.metadata.Unicode?{widths:tr.metadata.Unicode.widths||{0:1},kerning:tr.metadata.Unicode.kerning||{}}:{font:tr.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,rr);nr=Array.isArray(er)?er:String(er).split(/\r?\n/);var ar=1*this.internal.scaleFactor*tr/ir;or.textIndent=rr.textIndent?1*rr.textIndent*this.internal.scaleFactor/ir:0,or.lineIndent=rr.lineIndent;var sr,lr,cr=[];for(sr=0,lr=nr.length;sr<lr;sr++)cr=cr.concat(Kg.apply(this,[nr[sr],ar,or]));return cr},
|
||
/** @license
|
||
jsPDF standard_fonts_metrics plugin
|
||
* Copyright (c) 2012 Willow Systems Corporation, willow-systems.com
|
||
* MIT license.
|
||
* Permission is hereby granted, free of charge, to any person obtaining
|
||
* a copy of this software and associated documentation files (the
|
||
* "Software"), to deal in the Software without restriction, including
|
||
* without limitation the rights to use, copy, modify, merge, publish,
|
||
* distribute, sublicense, and/or sell copies of the Software, and to
|
||
* permit persons to whom the Software is furnished to do so, subject to
|
||
* the following conditions:
|
||
*
|
||
* The above copyright notice and this permission notice shall be
|
||
* included in all copies or substantial portions of the Software.
|
||
*
|
||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||
* ====================================================================
|
||
*/
|
||
function(er){er.__fontmetrics__=er.__fontmetrics__||{};for(var tr="klmnopqrstuvwxyz",rr={},nr={},ir=0;ir<tr.length;ir++)rr[tr[ir]]="0123456789abcdef"[ir],nr["0123456789abcdef"[ir]]=tr[ir];var or=function a(er){return"0x"+parseInt(er,10).toString(16)},ar=er.__fontmetrics__.compress=function(er){var tr,rr,ir,sr,lr=["{"];for(var cr in er){if(tr=er[cr],isNaN(parseInt(cr,10))?rr="'"+cr+"'":(cr=parseInt(cr,10),rr=(rr=or(cr).slice(2)).slice(0,-1)+nr[rr.slice(-1)]),"number"==typeof tr)tr<0?(ir=or(tr).slice(3),sr="-"):(ir=or(tr).slice(2),sr=""),ir=sr+ir.slice(0,-1)+nr[ir.slice(-1)];else{if("object"!=_typeof(tr))throw new Error("Don't know what to do with value type "+_typeof(tr)+".");ir=ar(tr)}lr.push(rr+ir)}return lr.push("}"),lr.join("")},sr=er.__fontmetrics__.uncompress=function(er){if("string"!=typeof er)throw new Error("Invalid argument passed to uncompress.");for(var tr,nr,ir,or,ar={},sr=1,lr=ar,cr=[],ur="",dr="",hr=er.length-1,pr=1;pr<hr;pr+=1)"'"==(or=er[pr])?tr?(ir=tr.join(""),tr=void 0):tr=[]:tr?tr.push(or):"{"==or?(cr.push([lr,ir]),lr={},ir=void 0):"}"==or?((nr=cr.pop())[0][nr[1]]=lr,ir=void 0,lr=nr[0]):"-"==or?sr=-1:void 0===ir?rr.hasOwnProperty(or)?(ur+=rr[or],ir=parseInt(ur,16)*sr,sr=1,ur=""):ur+=or:rr.hasOwnProperty(or)?(dr+=rr[or],lr[ir]=parseInt(dr,16)*sr,sr=1,ir=void 0,dr=""):dr+=or;return ar},lr={codePages:["WinAnsiEncoding"],WinAnsiEncoding:sr("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},cr={Unicode:{Courier:lr,"Courier-Bold":lr,"Courier-BoldOblique":lr,"Courier-Oblique":lr,Helvetica:lr,"Helvetica-Bold":lr,"Helvetica-BoldOblique":lr,"Helvetica-Oblique":lr,"Times-Roman":lr,"Times-Bold":lr,"Times-BoldItalic":lr,"Times-Italic":lr}},ur={Unicode:{"Courier-Oblique":sr("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":sr("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":sr("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:sr("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":sr("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":sr("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:sr("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:sr("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":sr("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:sr("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":sr("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":sr("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":sr("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":sr("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};er.events.push(["addFont",function(er){var tr=er.font,rr=ur.Unicode[tr.postScriptName];rr&&(tr.metadata.Unicode={},tr.metadata.Unicode.widths=rr.widths,tr.metadata.Unicode.kerning=rr.kerning);var nr=cr.Unicode[tr.postScriptName];nr&&(tr.metadata.Unicode.encoding=nr,tr.encoding=nr.codePages[0])}])}(g.API),
|
||
/**
|
||
* @license
|
||
* Licensed under the MIT License.
|
||
* http://opensource.org/licenses/mit-license
|
||
*/
|
||
function(er){var tr=function e(er){for(var e=er.length,tr=new Uint8Array(e),rr=0;rr<e;rr++)tr[rr]=er.charCodeAt(rr);return tr};er.API.events.push(["addFont",function(rr){var nr=void 0,ir=rr.font,or=rr.instance;if(!ir.isStandardFont){if(void 0===or)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+ir.postScriptName+"').");if("string"!=typeof(nr=!1===or.existsFileInVFS(ir.postScriptName)?or.loadFile(ir.postScriptName):or.getFileFromVFS(ir.postScriptName)))throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+ir.postScriptName+"').");!function(rr,nr){nr=/^\x00\x01\x00\x00/.test(nr)?tr(nr):tr(Qf(nr)),rr.metadata=er.API.TTFFont.open(nr),rr.metadata.Unicode=rr.metadata.Unicode||{encoding:{},kerning:{},widths:[]},rr.metadata.glyIdsUsed=[0]}(ir,nr)}}])}(g),
|
||
/** @license
|
||
* Copyright (c) 2012 Willow Systems Corporation, willow-systems.com
|
||
*
|
||
* Permission is hereby granted, free of charge, to any person obtaining
|
||
* a copy of this software and associated documentation files (the
|
||
* "Software"), to deal in the Software without restriction, including
|
||
* without limitation the rights to use, copy, modify, merge, publish,
|
||
* distribute, sublicense, and/or sell copies of the Software, and to
|
||
* permit persons to whom the Software is furnished to do so, subject to
|
||
* the following conditions:
|
||
*
|
||
* The above copyright notice and this permission notice shall be
|
||
* included in all copies or substantial portions of the Software.
|
||
*
|
||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||
* ====================================================================
|
||
*/
|
||
function(er){function r(){return(Mf.canvg?Promise.resolve(Mf.canvg):Promise.resolve().then((function(){return TL}))).catch((function(er){return Promise.reject(new Error("Could not load dompurify: "+er))})).then((function(er){return er.default?er.default:er}))}g.API.addSvgAsImage=function(er,tr,rr,nr,ir,or,ar,sr){if(isNaN(tr)||isNaN(rr))throw Of.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(nr)||isNaN(ir))throw Of.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var lr=document.createElement("canvas");lr.width=nr,lr.height=ir;var cr=lr.getContext("2d");cr.fillStyle="#fff",cr.fillRect(0,0,lr.width,lr.height);var ur={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},dr=this;return r().then((function(tr){return tr.Canvg.fromString(cr,er,ur)}),(function(){return Promise.reject(new Error("Could not load canvg."))})).then((function(er){return er.render(ur)})).then((function(){dr.addImage(lr.toDataURL("image/jpeg",1),tr,rr,nr,ir,ar,sr)}))}}(),g.API.putTotalPages=function(er){var tr,rr=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(tr=new RegExp(er,"g"),rr=this.internal.getNumberOfPages()):(tr=new RegExp(this.pdfEscape16(er,this.internal.getFont()),"g"),rr=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var nr=1;nr<=this.internal.getNumberOfPages();nr++)for(var ir=0;ir<this.internal.pages[nr].length;ir++)this.internal.pages[nr][ir]=this.internal.pages[nr][ir].replace(tr,rr);return this},g.API.viewerPreferences=function(er,tr){var rr;er=er||{},tr=tr||!1;var nr,ir,or,ar={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},sr=Object.keys(ar),lr=[],cr=0,ur=0,dr=0;function f(er,tr){var rr,nr=!1;for(rr=0;rr<er.length;rr+=1)er[rr]===tr&&(nr=!0);return nr}if(void 0===this.internal.viewerpreferences&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(ar)),this.internal.viewerpreferences.isSubscribed=!1),rr=this.internal.viewerpreferences.configuration,"reset"===er||!0===tr){var hr=sr.length;for(dr=0;dr<hr;dr+=1)rr[sr[dr]].value=rr[sr[dr]].defaultValue,rr[sr[dr]].explicitSet=!1}if("object"==_typeof(er))for(ir in er)if(or=er[ir],f(sr,ir)&&void 0!==or){if("boolean"===rr[ir].type&&"boolean"==typeof or)rr[ir].value=or;else if("name"===rr[ir].type&&f(rr[ir].valueSet,or))rr[ir].value=or;else if("integer"===rr[ir].type&&Number.isInteger(or))rr[ir].value=or;else if("array"===rr[ir].type){for(cr=0;cr<or.length;cr+=1)if(nr=!0,1===or[cr].length&&"number"==typeof or[cr][0])lr.push(String(or[cr]-1));else if(or[cr].length>1){for(ur=0;ur<or[cr].length;ur+=1)"number"!=typeof or[cr][ur]&&(nr=!1);!0===nr&&lr.push([or[cr][0]-1,or[cr][1]-1].join(" "))}rr[ir].value="["+lr.join(" ")+"]"}else rr[ir].value=rr[ir].defaultValue;rr[ir].explicitSet=!0}return!1===this.internal.viewerpreferences.isSubscribed&&(this.internal.events.subscribe("putCatalog",(function(){var er,tr=[];for(er in rr)!0===rr[er].explicitSet&&("name"===rr[er].type?tr.push("/"+er+" /"+rr[er].value):tr.push("/"+er+" "+rr[er].value));0!==tr.length&&this.internal.write("/ViewerPreferences\n<<\n"+tr.join("\n")+"\n>>")})),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=rr,this},
|
||
/** ====================================================================
|
||
* @license
|
||
* jsPDF XMP metadata plugin
|
||
* Copyright (c) 2016 Jussi Utunen, u-jussi@suomi24.fi
|
||
*
|
||
* Permission is hereby granted, free of charge, to any person obtaining
|
||
* a copy of this software and associated documentation files (the
|
||
* "Software"), to deal in the Software without restriction, including
|
||
* without limitation the rights to use, copy, modify, merge, publish,
|
||
* distribute, sublicense, and/or sell copies of the Software, and to
|
||
* permit persons to whom the Software is furnished to do so, subject to
|
||
* the following conditions:
|
||
*
|
||
* The above copyright notice and this permission notice shall be
|
||
* included in all copies or substantial portions of the Software.
|
||
*
|
||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||
* ====================================================================
|
||
*/
|
||
function(er){var tr=function e(){var er='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',e=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),tr=unescape(encodeURIComponent(er)),rr=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),nr=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),ir=unescape(encodeURIComponent("</x:xmpmeta>")),or=tr.length+rr.length+nr.length+e.length+ir.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+or+" >>"),this.internal.write("stream"),this.internal.write(e+tr+rr+nr+ir),this.internal.write("endstream"),this.internal.write("endobj")},rr=function n(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};er.addMetadata=function(er,nr){return void 0===this.internal.__metadata__&&(this.internal.__metadata__={metadata:er,namespaceuri:nr||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",rr),this.internal.events.subscribe("postPutResources",tr)),this}}(g.API),function(er){var tr=er.API,rr=tr.pdfEscape16=function(er,tr){for(var rr,nr=tr.metadata.Unicode.widths,ir=["","0","00","000","0000"],or=[""],ar=0,sr=er.length;ar<sr;++ar){if(rr=tr.metadata.characterToGlyph(er.charCodeAt(ar)),tr.metadata.glyIdsUsed.push(rr),tr.metadata.toUnicode[rr]=er.charCodeAt(ar),-1==nr.indexOf(rr)&&(nr.push(rr),nr.push([parseInt(tr.metadata.widthOfGlyph(rr),10)])),"0"==rr)return or.join("");rr=rr.toString(16),or.push(ir[4-rr.length],rr)}return or.join("")},nr=function r(er){var tr,rr,r,nr,ir,or,ar;for(ir="/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap\n/CIDSystemInfo <<\n /Registry (Adobe)\n /Ordering (UCS)\n /Supplement 0\n>> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange\n<0000><ffff>\nendcodespacerange",r=[],or=0,ar=(rr=Object.keys(er).sort((function(er,tr){return er-tr}))).length;or<ar;or++)tr=rr[or],r.length>=100&&(ir+="\n"+r.length+" beginbfchar\n"+r.join("\n")+"\nendbfchar",r=[]),void 0!==er[tr]&&null!==er[tr]&&"function"==typeof er[tr].toString&&(nr=("0000"+er[tr].toString(16)).slice(-4),tr=("0000"+(+tr).toString(16)).slice(-4),r.push("<"+tr+"><"+nr+">"));return r.length&&(ir+="\n"+r.length+" beginbfchar\n"+r.join("\n")+"\nendbfchar\n"),ir+"endcmap\nCMapName currentdict /CMap defineresource pop\nend\nend"};tr.events.push(["putFont",function(tr){!function(tr){var rr=tr.font,ir=tr.out,or=tr.newObject,ar=tr.putStream,sr=tr.pdfEscapeWithNeededParanthesis;if(rr.metadata instanceof er.API.TTFFont&&"Identity-H"===rr.encoding){for(var lr=rr.metadata.Unicode.widths,cr=rr.metadata.subset.encode(rr.metadata.glyIdsUsed,1),ur="",dr=0;dr<cr.length;dr++)ur+=String.fromCharCode(cr[dr]);var hr=or();ar({data:ur,addLength1:!0}),ir("endobj");var pr=or();ar({data:nr(rr.metadata.toUnicode),addLength1:!0}),ir("endobj");var Ar=or();ir("<<"),ir("/Type /FontDescriptor"),ir("/FontName /"+sr(rr.fontName)),ir("/FontFile2 "+hr+" 0 R"),ir("/FontBBox "+er.API.PDFObject.convert(rr.metadata.bbox)),ir("/Flags "+rr.metadata.flags),ir("/StemV "+rr.metadata.stemV),ir("/ItalicAngle "+rr.metadata.italicAngle),ir("/Ascent "+rr.metadata.ascender),ir("/Descent "+rr.metadata.decender),ir("/CapHeight "+rr.metadata.capHeight),ir(">>"),ir("endobj");var fr=or();ir("<<"),ir("/Type /Font"),ir("/BaseFont /"+sr(rr.fontName)),ir("/FontDescriptor "+Ar+" 0 R"),ir("/W "+er.API.PDFObject.convert(lr)),ir("/CIDToGIDMap /Identity"),ir("/DW 1000"),ir("/Subtype /CIDFontType2"),ir("/CIDSystemInfo"),ir("<<"),ir("/Supplement 0"),ir("/Registry (Adobe)"),ir("/Ordering ("+rr.encoding+")"),ir(">>"),ir(">>"),ir("endobj"),rr.objectNumber=or(),ir("<<"),ir("/Type /Font"),ir("/Subtype /Type0"),ir("/ToUnicode "+pr+" 0 R"),ir("/BaseFont /"+sr(rr.fontName)),ir("/Encoding /"+rr.encoding),ir("/DescendantFonts ["+fr+" 0 R]"),ir(">>"),ir("endobj"),rr.isAlreadyPutted=!0}}(tr)}]),tr.events.push(["putFont",function(tr){!function(tr){var rr=tr.font,ir=tr.out,or=tr.newObject,ar=tr.putStream,sr=tr.pdfEscapeWithNeededParanthesis;if(rr.metadata instanceof er.API.TTFFont&&"WinAnsiEncoding"===rr.encoding){for(var lr=rr.metadata.rawData,cr="",ur=0;ur<lr.length;ur++)cr+=String.fromCharCode(lr[ur]);var dr=or();ar({data:cr,addLength1:!0}),ir("endobj");var hr=or();ar({data:nr(rr.metadata.toUnicode),addLength1:!0}),ir("endobj");var pr=or();ir("<<"),ir("/Descent "+rr.metadata.decender),ir("/CapHeight "+rr.metadata.capHeight),ir("/StemV "+rr.metadata.stemV),ir("/Type /FontDescriptor"),ir("/FontFile2 "+dr+" 0 R"),ir("/Flags 96"),ir("/FontBBox "+er.API.PDFObject.convert(rr.metadata.bbox)),ir("/FontName /"+sr(rr.fontName)),ir("/ItalicAngle "+rr.metadata.italicAngle),ir("/Ascent "+rr.metadata.ascender),ir(">>"),ir("endobj"),rr.objectNumber=or();for(var Ar=0;Ar<rr.metadata.hmtx.widths.length;Ar++)rr.metadata.hmtx.widths[Ar]=parseInt(rr.metadata.hmtx.widths[Ar]*(1e3/rr.metadata.head.unitsPerEm));ir("<</Subtype/TrueType/Type/Font/ToUnicode "+hr+" 0 R/BaseFont/"+rr.fontName+"/FontDescriptor "+pr+" 0 R/Encoding/"+rr.encoding+" /FirstChar 29 /LastChar 255 /Widths "+er.API.PDFObject.convert(rr.metadata.hmtx.widths)+">>"),ir("endobj"),rr.isAlreadyPutted=!0}}(tr)}]);var ir=function i(er){var tr,nr=er.text||"",i=er.x,ir=er.y,or=er.options||{},ar=er.mutex||{},sr=ar.pdfEscape,lr=ar.activeFontKey,cr=ar.fonts,ur=lr,dr="",hr=0,pr="",Ar=cr[ur].encoding;if("Identity-H"!==cr[ur].encoding)return{text:nr,x:i,y:ir,options:or,mutex:ar};for(pr=nr,ur=lr,Array.isArray(nr)&&(pr=nr[0]),hr=0;hr<pr.length;hr+=1)cr[ur].metadata.hasOwnProperty("cmap")&&(tr=cr[ur].metadata.cmap.unicode.codeMap[pr[hr].charCodeAt(0)]),tr||pr[hr].charCodeAt(0)<256&&cr[ur].metadata.hasOwnProperty("Unicode")?dr+=pr[hr]:dr+="";var fr="";return parseInt(ur.slice(1))<14||"WinAnsiEncoding"===Ar?fr=sr(dr,ur).split("").map((function(er){return er.charCodeAt(0).toString(16)})).join(""):"Identity-H"===Ar&&(fr=rr(dr,cr[ur])),ar.isHex=!0,{text:fr,x:i,y:ir,options:or,mutex:ar}};tr.events.push(["postProcessText",function(er){var tr=er.text||"",rr=[],nr={text:tr,x:er.x,y:er.y,options:er.options,mutex:er.mutex};if(Array.isArray(tr)){var or=0;for(or=0;or<tr.length;or+=1)Array.isArray(tr[or])&&3===tr[or].length?rr.push([ir(Object.assign({},nr,{text:tr[or][0]})).text,tr[or][1],tr[or][2]]):rr.push(ir(Object.assign({},nr,{text:tr[or]})).text);er.text=rr}else er.text=ir(Object.assign({},nr,{text:tr})).text}])}(g),
|
||
/**
|
||
* @license
|
||
* jsPDF virtual FileSystem functionality
|
||
*
|
||
* Licensed under the MIT License.
|
||
* http://opensource.org/licenses/mit-license
|
||
*/
|
||
function(er){var tr=function e(){return void 0===this.internal.vFS&&(this.internal.vFS={}),!0};er.existsFileInVFS=function(er){return tr.call(this),void 0!==this.internal.vFS[er]},er.addFileToVFS=function(er,rr){return tr.call(this),this.internal.vFS[er]=rr,this},er.getFileFromVFS=function(er){return tr.call(this),void 0!==this.internal.vFS[er]?this.internal.vFS[er]:null}}(g.API),
|
||
/**
|
||
* @license
|
||
* Unicode Bidi Engine based on the work of Alex Shensis (@asthensis)
|
||
* MIT License
|
||
*/
|
||
function(er){er.__bidiEngine__=er.prototype.__bidiEngine__=function(er){var rr,nr,ir,or,ar,sr,lr,cr=tr,ur=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],dr=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],hr={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},pr={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},Ar=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],fr=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),gr=!1,mr=0;this.__bidiEngine__={};var _r=function b(er){var tr=er.charCodeAt(),rr=tr>>8,nr=pr[rr];return void 0!==nr?cr[256*nr+(255&tr)]:252===rr||253===rr?"AL":fr.test(rr)?"L":8===rr?"R":"N"},vr=function y(er){for(var tr,rr=0;rr<er.length;rr++){if("L"===(tr=_r(er.charAt(rr))))return!1;if("R"===tr)return!0}return!1},yr=function w(er,tr,ar,sr){var lr,cr,ur,dr,hr=tr[sr];switch(hr){case"L":case"R":gr=!1;break;case"N":case"AN":break;case"EN":gr&&(hr="AN");break;case"AL":gr=!0,hr="R";break;case"WS":hr="N";break;case"CS":sr<1||sr+1>=tr.length||"EN"!==(lr=ar[sr-1])&&"AN"!==lr||"EN"!==(cr=tr[sr+1])&&"AN"!==cr?hr="N":gr&&(cr="AN"),hr=cr===lr?cr:"N";break;case"ES":hr="EN"===(lr=sr>0?ar[sr-1]:"B")&&sr+1<tr.length&&"EN"===tr[sr+1]?"EN":"N";break;case"ET":if(sr>0&&"EN"===ar[sr-1]){hr="EN";break}if(gr){hr="N";break}for(ur=sr+1,dr=tr.length;ur<dr&&"ET"===tr[ur];)ur++;hr=ur<dr&&"EN"===tr[ur]?"EN":"N";break;case"NSM":if(ir&&!or){for(dr=tr.length,ur=sr+1;ur<dr&&"NSM"===tr[ur];)ur++;if(ur<dr){var pr=er[sr],Ar=pr>=1425&&pr<=2303||64286===pr;if(lr=tr[ur],Ar&&("R"===lr||"AL"===lr)){hr="R";break}}}hr=sr<1||"B"===(lr=tr[sr-1])?"N":ar[sr-1];break;case"B":gr=!1,rr=!0,hr=mr;break;case"S":nr=!0,hr="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":gr=!1;break;case"BN":hr="N"}return hr},br=function N(er,tr,rr){var nr=er.split("");return rr&&wr(nr,rr,{hiLevel:mr}),nr.reverse(),tr&&tr.reverse(),nr.join("")},wr=function L(er,tr,ir){var or,ar,sr,lr,cr,pr=-1,Ar=er.length,fr=0,vr=[],br=mr?dr:ur,L=[];for(gr=!1,rr=!1,nr=!1,ar=0;ar<Ar;ar++)L[ar]=_r(er[ar]);for(sr=0;sr<Ar;sr++){if(cr=fr,vr[sr]=yr(er,L,vr,sr),or=240&(fr=br[cr][hr[vr[sr]]]),fr&=15,tr[sr]=lr=br[fr][5],or>0)if(16===or){for(ar=pr;ar<sr;ar++)tr[ar]=1;pr=-1}else pr=-1;if(br[fr][6])-1===pr&&(pr=sr);else if(pr>-1){for(ar=pr;ar<sr;ar++)tr[ar]=lr;pr=-1}"B"===L[sr]&&(tr[sr]=0),ir.hiLevel|=lr}nr&&function(er,tr,rr){for(var nr=0;nr<rr;nr++)if("S"===er[nr]){tr[nr]=mr;for(var ir=nr-1;ir>=0&&"WS"===er[ir];ir--)tr[ir]=mr}}(L,tr,Ar)},Sr=function x(er,tr,nr,ir,or){if(!(or.hiLevel<er)){if(1===er&&1===mr&&!rr)return tr.reverse(),void(nr&&nr.reverse());for(var ar,sr,lr,cr,ur=tr.length,dr=0;dr<ur;){if(ir[dr]>=er){for(lr=dr+1;lr<ur&&ir[lr]>=er;)lr++;for(cr=dr,sr=lr-1;cr<sr;cr++,sr--)ar=tr[cr],tr[cr]=tr[sr],tr[sr]=ar,nr&&(ar=nr[cr],nr[cr]=nr[sr],nr[sr]=ar);dr=lr}dr++}}},xr=function A(er,tr,rr){var nr=er.split(""),ir={hiLevel:mr};return rr||(rr=[]),wr(nr,rr,ir),function(er,tr,rr){if(0!==rr.hiLevel&&lr)for(var nr,ir=0;ir<er.length;ir++)1===tr[ir]&&(nr=Ar.indexOf(er[ir]))>=0&&(er[ir]=Ar[nr+1])}(nr,rr,ir),Sr(2,nr,tr,rr,ir),Sr(1,nr,tr,rr,ir),nr.join("")};return this.__bidiEngine__.doBidiReorder=function(er,tr,rr){if(function(er,tr){if(tr)for(var rr=0;rr<er.length;rr++)tr[rr]=rr;void 0===or&&(or=vr(er)),void 0===sr&&(sr=vr(er))}(er,tr),ir||!ar||sr)if(ir&&ar&&or^sr)mr=or?1:0,er=br(er,tr,rr);else if(!ir&&ar&&sr)mr=or?1:0,er=xr(er,tr,rr),er=br(er,tr);else if(!ir||or||ar||sr){if(ir&&!ar&&or^sr)er=br(er,tr),or?(mr=0,er=xr(er,tr,rr)):(mr=1,er=xr(er,tr,rr),er=br(er,tr));else if(ir&&or&&!ar&&sr)mr=1,er=xr(er,tr,rr),er=br(er,tr);else if(!ir&&!ar&&or^sr){var nr=lr;or?(mr=1,er=xr(er,tr,rr),mr=0,lr=!1,er=xr(er,tr,rr),lr=nr):(mr=0,er=xr(er,tr,rr),er=br(er,tr),mr=1,lr=!1,er=xr(er,tr,rr),lr=nr,er=br(er,tr))}}else mr=0,er=xr(er,tr,rr);else mr=or?1:0,er=xr(er,tr,rr);return er},this.__bidiEngine__.setOptions=function(er){er&&(ir=er.isInputVisual,ar=er.isOutputVisual,or=er.isInputRtl,sr=er.isOutputRtl,lr=er.isSymmetricSwapping)},this.__bidiEngine__.setOptions(er),this.__bidiEngine__};var tr=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],rr=new er.__bidiEngine__({isInputVisual:!0});er.API.events.push(["postProcessText",function(er){var tr=er.text,nr=(er.x,er.y,er.options||{}),ir=(er.mutex,nr.lang,[]);if(nr.isInputVisual="boolean"!=typeof nr.isInputVisual||nr.isInputVisual,rr.setOptions(nr),"[object Array]"===Object.prototype.toString.call(tr)){var or=0;for(ir=[],or=0;or<tr.length;or+=1)"[object Array]"===Object.prototype.toString.call(tr[or])?ir.push([rr.doBidiReorder(tr[or][0]),tr[or][1],tr[or][2]]):ir.push([rr.doBidiReorder(tr[or])]);er.text=ir}else er.text=rr.doBidiReorder(tr);rr.setOptions({isInputVisual:!0})}])}(g),g.API.TTFFont=function(){function t(er){var tr;if(this.rawData=er,tr=this.contents=new Jg(er),this.contents.pos=4,"ttcf"===tr.readString(4))throw new Error("TTCF not supported.");tr.pos=0,this.parse(),this.subset=new gm(this),this.registerTTF()}return t.open=function(er){return new t(er)},t.prototype.parse=function(){return this.directory=new $g(this.contents),this.head=new tm(this),this.name=new lm(this),this.cmap=new nm(this),this.toUnicode={},this.hhea=new im(this),this.maxp=new cm(this),this.hmtx=new um(this),this.post=new am(this),this.os2=new om(this),this.loca=new fm(this),this.glyf=new hm(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},t.prototype.registerTTF=function(){var er,tr,rr,nr,ir;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var tr,rr,nr,ir;for(ir=[],tr=0,rr=(nr=this.bbox).length;tr<rr;tr++)er=nr[tr],ir.push(Math.round(er*this.scaleFactor));return ir}.call(this),this.stemV=0,this.post.exists?(rr=255&(nr=this.post.italic_angle),0!=(32768&(tr=nr>>16))&&(tr=-(1+(65535^tr))),this.italicAngle=+(tr+"."+rr)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=1===(ir=this.familyClass)||2===ir||3===ir||4===ir||5===ir||7===ir,this.isScript=10===this.familyClass,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),0!==this.italicAngle&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},t.prototype.characterToGlyph=function(er){var tr;return(null!=(tr=this.cmap.unicode)?tr.codeMap[er]:void 0)||0},t.prototype.widthOfGlyph=function(er){var tr;return tr=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(er).advance*tr},t.prototype.widthOfString=function(er,tr,rr){var nr,ir,or,ar;for(or=0,ir=0,ar=(er=""+er).length;0<=ar?ir<ar:ir>ar;ir=0<=ar?++ir:--ir)nr=er.charCodeAt(ir),or+=this.widthOfGlyph(this.characterToGlyph(nr))+rr*(1e3/tr)||0;return or*(tr/1e3)},t.prototype.lineHeight=function(er,tr){var rr;return null==tr&&(tr=!1),rr=tr?this.lineGap:0,(this.ascender+rr-this.decender)/1e3*er},t}();var Yg,Jg=function(){function t(er){this.data=null!=er?er:[],this.pos=0,this.length=this.data.length}return t.prototype.readByte=function(){return this.data[this.pos++]},t.prototype.writeByte=function(er){return this.data[this.pos++]=er},t.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},t.prototype.writeUInt32=function(er){return this.writeByte(er>>>24&255),this.writeByte(er>>16&255),this.writeByte(er>>8&255),this.writeByte(255&er)},t.prototype.readInt32=function(){var er;return(er=this.readUInt32())>=2147483648?er-4294967296:er},t.prototype.writeInt32=function(er){return er<0&&(er+=4294967296),this.writeUInt32(er)},t.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},t.prototype.writeUInt16=function(er){return this.writeByte(er>>8&255),this.writeByte(255&er)},t.prototype.readInt16=function(){var er;return(er=this.readUInt16())>=32768?er-65536:er},t.prototype.writeInt16=function(er){return er<0&&(er+=65536),this.writeUInt16(er)},t.prototype.readString=function(er){var tr,rr;for(rr=[],tr=0;0<=er?tr<er:tr>er;tr=0<=er?++tr:--tr)rr[tr]=String.fromCharCode(this.readByte());return rr.join("")},t.prototype.writeString=function(er){var tr,rr,nr;for(nr=[],tr=0,rr=er.length;0<=rr?tr<rr:tr>rr;tr=0<=rr?++tr:--tr)nr.push(this.writeByte(er.charCodeAt(tr)));return nr},t.prototype.readShort=function(){return this.readInt16()},t.prototype.writeShort=function(er){return this.writeInt16(er)},t.prototype.readLongLong=function(){var er,tr,rr,nr,ir,or,ar,sr;return er=this.readByte(),tr=this.readByte(),rr=this.readByte(),nr=this.readByte(),ir=this.readByte(),or=this.readByte(),ar=this.readByte(),sr=this.readByte(),128&er?-1*(72057594037927940*(255^er)+281474976710656*(255^tr)+1099511627776*(255^rr)+4294967296*(255^nr)+16777216*(255^ir)+65536*(255^or)+256*(255^ar)+(255^sr)+1):72057594037927940*er+281474976710656*tr+1099511627776*rr+4294967296*nr+16777216*ir+65536*or+256*ar+sr},t.prototype.writeLongLong=function(er){var tr,rr;return tr=Math.floor(er/4294967296),rr=4294967295&er,this.writeByte(tr>>24&255),this.writeByte(tr>>16&255),this.writeByte(tr>>8&255),this.writeByte(255&tr),this.writeByte(rr>>24&255),this.writeByte(rr>>16&255),this.writeByte(rr>>8&255),this.writeByte(255&rr)},t.prototype.readInt=function(){return this.readInt32()},t.prototype.writeInt=function(er){return this.writeInt32(er)},t.prototype.read=function(er){var tr,rr;for(tr=[],rr=0;0<=er?rr<er:rr>er;rr=0<=er?++rr:--rr)tr.push(this.readByte());return tr},t.prototype.write=function(er){var tr,rr,nr,ir;for(ir=[],rr=0,nr=er.length;rr<nr;rr++)tr=er[rr],ir.push(this.writeByte(tr));return ir},t}(),$g=function(){var er;function e(er){var tr,rr,nr;for(this.scalarType=er.readInt(),this.tableCount=er.readShort(),this.searchRange=er.readShort(),this.entrySelector=er.readShort(),this.rangeShift=er.readShort(),this.tables={},rr=0,nr=this.tableCount;0<=nr?rr<nr:rr>nr;rr=0<=nr?++rr:--rr)tr={tag:er.readString(4),checksum:er.readInt(),offset:er.readInt(),length:er.readInt()},this.tables[tr.tag]=tr}return e.prototype.encode=function(tr){var rr,nr,ir,or,ar,sr,lr,cr,ur,dr,hr,pr,Ar;for(Ar in hr=Object.keys(tr).length,sr=Math.log(2),ur=16*Math.floor(Math.log(hr)/sr),or=Math.floor(ur/sr),cr=16*hr-ur,(nr=new Jg).writeInt(this.scalarType),nr.writeShort(hr),nr.writeShort(ur),nr.writeShort(or),nr.writeShort(cr),ir=16*hr,lr=nr.pos+ir,ar=null,pr=[],tr)for(dr=tr[Ar],nr.writeString(Ar),nr.writeInt(er(dr)),nr.writeInt(lr),nr.writeInt(dr.length),pr=pr.concat(dr),"head"===Ar&&(ar=lr),lr+=dr.length;lr%4;)pr.push(0),lr++;return nr.write(pr),rr=2981146554-er(nr.data),nr.pos=ar+8,nr.writeUInt32(rr),nr.data},er=function t(er){var tr,rr,nr,ir;for(er=dm.call(er);er.length%4;)er.push(0);for(nr=new Jg(er),rr=0,tr=0,ir=er.length;tr<ir;tr=tr+=4)rr+=nr.readUInt32();return 4294967295&rr},e}(),Zg={}.hasOwnProperty,em=function Ut(er,tr){for(var rr in tr)Zg.call(tr,rr)&&(er[rr]=tr[rr]);function r(){this.constructor=er}return r.prototype=tr.prototype,er.prototype=new r,er.__super__=tr.prototype,er};Yg=function(){function t(er){var tr;this.file=er,tr=this.file.directory.tables[this.tag],this.exists=!!tr,tr&&(this.offset=tr.offset,this.length=tr.length,this.parse(this.file.contents))}return t.prototype.parse=function(){},t.prototype.encode=function(){},t.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},t}();var tm=function(er){function e(){return e.__super__.constructor.apply(this,arguments)}return em(e,Yg),e.prototype.tag="head",e.prototype.parse=function(er){return er.pos=this.offset,this.version=er.readInt(),this.revision=er.readInt(),this.checkSumAdjustment=er.readInt(),this.magicNumber=er.readInt(),this.flags=er.readShort(),this.unitsPerEm=er.readShort(),this.created=er.readLongLong(),this.modified=er.readLongLong(),this.xMin=er.readShort(),this.yMin=er.readShort(),this.xMax=er.readShort(),this.yMax=er.readShort(),this.macStyle=er.readShort(),this.lowestRecPPEM=er.readShort(),this.fontDirectionHint=er.readShort(),this.indexToLocFormat=er.readShort(),this.glyphDataFormat=er.readShort()},e.prototype.encode=function(er){var tr;return(tr=new Jg).writeInt(this.version),tr.writeInt(this.revision),tr.writeInt(this.checkSumAdjustment),tr.writeInt(this.magicNumber),tr.writeShort(this.flags),tr.writeShort(this.unitsPerEm),tr.writeLongLong(this.created),tr.writeLongLong(this.modified),tr.writeShort(this.xMin),tr.writeShort(this.yMin),tr.writeShort(this.xMax),tr.writeShort(this.yMax),tr.writeShort(this.macStyle),tr.writeShort(this.lowestRecPPEM),tr.writeShort(this.fontDirectionHint),tr.writeShort(er),tr.writeShort(this.glyphDataFormat),tr.data},e}(),rm=function(){function t(er,tr){var rr,nr,ir,or,ar,sr,lr,cr,ur,dr,hr,pr,Ar,fr,gr,mr,_r;switch(this.platformID=er.readUInt16(),this.encodingID=er.readShort(),this.offset=tr+er.readInt(),ur=er.pos,er.pos=this.offset,this.format=er.readUInt16(),this.length=er.readUInt16(),this.language=er.readUInt16(),this.isUnicode=3===this.platformID&&1===this.encodingID&&4===this.format||0===this.platformID&&4===this.format,this.codeMap={},this.format){case 0:for(sr=0;sr<256;++sr)this.codeMap[sr]=er.readByte();break;case 4:for(hr=er.readUInt16(),dr=hr/2,er.pos+=6,ir=function(){var tr,rr;for(rr=[],sr=tr=0;0<=dr?tr<dr:tr>dr;sr=0<=dr?++tr:--tr)rr.push(er.readUInt16());return rr}(),er.pos+=2,Ar=function(){var tr,rr;for(rr=[],sr=tr=0;0<=dr?tr<dr:tr>dr;sr=0<=dr?++tr:--tr)rr.push(er.readUInt16());return rr}(),lr=function(){var tr,rr;for(rr=[],sr=tr=0;0<=dr?tr<dr:tr>dr;sr=0<=dr?++tr:--tr)rr.push(er.readUInt16());return rr}(),cr=function(){var tr,rr;for(rr=[],sr=tr=0;0<=dr?tr<dr:tr>dr;sr=0<=dr?++tr:--tr)rr.push(er.readUInt16());return rr}(),nr=(this.length-er.pos+this.offset)/2,ar=function(){var tr,rr;for(rr=[],sr=tr=0;0<=nr?tr<nr:tr>nr;sr=0<=nr?++tr:--tr)rr.push(er.readUInt16());return rr}(),sr=gr=0,_r=ir.length;gr<_r;sr=++gr)for(fr=ir[sr],rr=mr=pr=Ar[sr];pr<=fr?mr<=fr:mr>=fr;rr=pr<=fr?++mr:--mr)0===cr[sr]?or=rr+lr[sr]:0!==(or=ar[cr[sr]/2+(rr-pr)-(dr-sr)]||0)&&(or+=lr[sr]),this.codeMap[rr]=65535&or}er.pos=ur}return t.encode=function(er,tr){var rr,nr,ir,or,ar,sr,lr,cr,ur,dr,hr,pr,Ar,fr,gr,mr,_r,vr,yr,br,wr,Sr,xr,kr,Cr,Br,Er,Nr,Lr,Tr,Pr,Fr,Ur,Ir,Rr,Mr,Or,Qr,Dr,jr,Hr,Gr,Vr,zr,Kr,qr;switch(Nr=new Jg,or=Object.keys(er).sort((function(er,tr){return er-tr})),tr){case"macroman":for(Ar=0,fr=function(){var er=[];for(pr=0;pr<256;++pr)er.push(0);return er}(),mr={0:0},ir={},Lr=0,Ur=or.length;Lr<Ur;Lr++)null==mr[Vr=er[nr=or[Lr]]]&&(mr[Vr]=++Ar),ir[nr]={old:er[nr],new:mr[er[nr]]},fr[nr]=mr[er[nr]];return Nr.writeUInt16(1),Nr.writeUInt16(0),Nr.writeUInt32(12),Nr.writeUInt16(0),Nr.writeUInt16(262),Nr.writeUInt16(0),Nr.write(fr),{charMap:ir,subtable:Nr.data,maxGlyphID:Ar+1};case"unicode":for(Br=[],ur=[],_r=0,mr={},rr={},gr=lr=null,Tr=0,Ir=or.length;Tr<Ir;Tr++)null==mr[yr=er[nr=or[Tr]]]&&(mr[yr]=++_r),rr[nr]={old:yr,new:mr[yr]},ar=mr[yr]-nr,null!=gr&&ar===lr||(gr&&ur.push(gr),Br.push(nr),lr=ar),gr=nr;for(gr&&ur.push(gr),ur.push(65535),Br.push(65535),kr=2*(xr=Br.length),Sr=2*Math.pow(Math.log(xr)/Math.LN2,2),dr=Math.log(Sr/2)/Math.LN2,wr=2*xr-Sr,sr=[],br=[],hr=[],pr=Pr=0,Rr=Br.length;Pr<Rr;pr=++Pr){if(Cr=Br[pr],cr=ur[pr],65535===Cr){sr.push(0),br.push(0);break}if(Cr-(Er=rr[Cr].new)>=32768)for(sr.push(0),br.push(2*(hr.length+xr-pr)),nr=Fr=Cr;Cr<=cr?Fr<=cr:Fr>=cr;nr=Cr<=cr?++Fr:--Fr)hr.push(rr[nr].new);else sr.push(Er-Cr),br.push(0)}for(Nr.writeUInt16(3),Nr.writeUInt16(1),Nr.writeUInt32(12),Nr.writeUInt16(4),Nr.writeUInt16(16+8*xr+2*hr.length),Nr.writeUInt16(0),Nr.writeUInt16(kr),Nr.writeUInt16(Sr),Nr.writeUInt16(dr),Nr.writeUInt16(wr),Hr=0,Mr=ur.length;Hr<Mr;Hr++)nr=ur[Hr],Nr.writeUInt16(nr);for(Nr.writeUInt16(0),Gr=0,Or=Br.length;Gr<Or;Gr++)nr=Br[Gr],Nr.writeUInt16(nr);for(zr=0,Qr=sr.length;zr<Qr;zr++)ar=sr[zr],Nr.writeUInt16(ar);for(Kr=0,Dr=br.length;Kr<Dr;Kr++)vr=br[Kr],Nr.writeUInt16(vr);for(qr=0,jr=hr.length;qr<jr;qr++)Ar=hr[qr],Nr.writeUInt16(Ar);return{charMap:rr,subtable:Nr.data,maxGlyphID:_r+1}}},t}(),nm=function(er){function e(){return e.__super__.constructor.apply(this,arguments)}return em(e,Yg),e.prototype.tag="cmap",e.prototype.parse=function(er){var tr,rr,nr;for(er.pos=this.offset,this.version=er.readUInt16(),nr=er.readUInt16(),this.tables=[],this.unicode=null,rr=0;0<=nr?rr<nr:rr>nr;rr=0<=nr?++rr:--rr)tr=new rm(er,this.offset),this.tables.push(tr),tr.isUnicode&&null==this.unicode&&(this.unicode=tr);return!0},e.encode=function(er,tr){var rr,nr;return null==tr&&(tr="macroman"),rr=rm.encode(er,tr),(nr=new Jg).writeUInt16(0),nr.writeUInt16(1),rr.table=nr.data.concat(rr.subtable),rr},e}(),im=function(er){function e(){return e.__super__.constructor.apply(this,arguments)}return em(e,Yg),e.prototype.tag="hhea",e.prototype.parse=function(er){return er.pos=this.offset,this.version=er.readInt(),this.ascender=er.readShort(),this.decender=er.readShort(),this.lineGap=er.readShort(),this.advanceWidthMax=er.readShort(),this.minLeftSideBearing=er.readShort(),this.minRightSideBearing=er.readShort(),this.xMaxExtent=er.readShort(),this.caretSlopeRise=er.readShort(),this.caretSlopeRun=er.readShort(),this.caretOffset=er.readShort(),er.pos+=8,this.metricDataFormat=er.readShort(),this.numberOfMetrics=er.readUInt16()},e}(),om=function(er){function e(){return e.__super__.constructor.apply(this,arguments)}return em(e,Yg),e.prototype.tag="OS/2",e.prototype.parse=function(er){if(er.pos=this.offset,this.version=er.readUInt16(),this.averageCharWidth=er.readShort(),this.weightClass=er.readUInt16(),this.widthClass=er.readUInt16(),this.type=er.readShort(),this.ySubscriptXSize=er.readShort(),this.ySubscriptYSize=er.readShort(),this.ySubscriptXOffset=er.readShort(),this.ySubscriptYOffset=er.readShort(),this.ySuperscriptXSize=er.readShort(),this.ySuperscriptYSize=er.readShort(),this.ySuperscriptXOffset=er.readShort(),this.ySuperscriptYOffset=er.readShort(),this.yStrikeoutSize=er.readShort(),this.yStrikeoutPosition=er.readShort(),this.familyClass=er.readShort(),this.panose=function(){var tr,rr;for(rr=[],tr=0;tr<10;++tr)rr.push(er.readByte());return rr}(),this.charRange=function(){var tr,rr;for(rr=[],tr=0;tr<4;++tr)rr.push(er.readInt());return rr}(),this.vendorID=er.readString(4),this.selection=er.readShort(),this.firstCharIndex=er.readShort(),this.lastCharIndex=er.readShort(),this.version>0&&(this.ascent=er.readShort(),this.descent=er.readShort(),this.lineGap=er.readShort(),this.winAscent=er.readShort(),this.winDescent=er.readShort(),this.codePageRange=function(){var tr,rr;for(rr=[],tr=0;tr<2;tr=++tr)rr.push(er.readInt());return rr}(),this.version>1))return this.xHeight=er.readShort(),this.capHeight=er.readShort(),this.defaultChar=er.readShort(),this.breakChar=er.readShort(),this.maxContext=er.readShort()},e}(),am=function(er){function e(){return e.__super__.constructor.apply(this,arguments)}return em(e,Yg),e.prototype.tag="post",e.prototype.parse=function(er){var tr,rr,nr;switch(er.pos=this.offset,this.format=er.readInt(),this.italicAngle=er.readInt(),this.underlinePosition=er.readShort(),this.underlineThickness=er.readShort(),this.isFixedPitch=er.readInt(),this.minMemType42=er.readInt(),this.maxMemType42=er.readInt(),this.minMemType1=er.readInt(),this.maxMemType1=er.readInt(),this.format){case 65536:break;case 131072:var ir;for(rr=er.readUInt16(),this.glyphNameIndex=[],ir=0;0<=rr?ir<rr:ir>rr;ir=0<=rr?++ir:--ir)this.glyphNameIndex.push(er.readUInt16());for(this.names=[],nr=[];er.pos<this.offset+this.length;)tr=er.readByte(),nr.push(this.names.push(er.readString(tr)));return nr;case 151552:return rr=er.readUInt16(),this.offsets=er.read(rr);case 196608:break;case 262144:return this.map=function(){var tr,rr,nr;for(nr=[],ir=tr=0,rr=this.file.maxp.numGlyphs;0<=rr?tr<rr:tr>rr;ir=0<=rr?++tr:--tr)nr.push(er.readUInt32());return nr}.call(this)}},e}(),sm=function Jt(er,tr){this.raw=er,this.length=er.length,this.platformID=tr.platformID,this.encodingID=tr.encodingID,this.languageID=tr.languageID},lm=function(er){function e(){return e.__super__.constructor.apply(this,arguments)}return em(e,Yg),e.prototype.tag="name",e.prototype.parse=function(er){var tr,rr,nr,ir,or,ar,sr,lr,cr,ur,dr;for(er.pos=this.offset,er.readShort(),tr=er.readShort(),ar=er.readShort(),rr=[],ir=0;0<=tr?ir<tr:ir>tr;ir=0<=tr?++ir:--ir)rr.push({platformID:er.readShort(),encodingID:er.readShort(),languageID:er.readShort(),nameID:er.readShort(),length:er.readShort(),offset:this.offset+ar+er.readShort()});for(sr={},ir=cr=0,ur=rr.length;cr<ur;ir=++cr)nr=rr[ir],er.pos=nr.offset,lr=er.readString(nr.length),or=new sm(lr,nr),null==sr[dr=nr.nameID]&&(sr[dr]=[]),sr[nr.nameID].push(or);this.strings=sr,this.copyright=sr[0],this.fontFamily=sr[1],this.fontSubfamily=sr[2],this.uniqueSubfamily=sr[3],this.fontName=sr[4],this.version=sr[5];try{this.postscriptName=sr[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(er){this.postscriptName=sr[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=sr[7],this.manufacturer=sr[8],this.designer=sr[9],this.description=sr[10],this.vendorUrl=sr[11],this.designerUrl=sr[12],this.license=sr[13],this.licenseUrl=sr[14],this.preferredFamily=sr[15],this.preferredSubfamily=sr[17],this.compatibleFull=sr[18],this.sampleText=sr[19]},e}(),cm=function(er){function e(){return e.__super__.constructor.apply(this,arguments)}return em(e,Yg),e.prototype.tag="maxp",e.prototype.parse=function(er){return er.pos=this.offset,this.version=er.readInt(),this.numGlyphs=er.readUInt16(),this.maxPoints=er.readUInt16(),this.maxContours=er.readUInt16(),this.maxCompositePoints=er.readUInt16(),this.maxComponentContours=er.readUInt16(),this.maxZones=er.readUInt16(),this.maxTwilightPoints=er.readUInt16(),this.maxStorage=er.readUInt16(),this.maxFunctionDefs=er.readUInt16(),this.maxInstructionDefs=er.readUInt16(),this.maxStackElements=er.readUInt16(),this.maxSizeOfInstructions=er.readUInt16(),this.maxComponentElements=er.readUInt16(),this.maxComponentDepth=er.readUInt16()},e}(),um=function(er){function e(){return e.__super__.constructor.apply(this,arguments)}return em(e,Yg),e.prototype.tag="hmtx",e.prototype.parse=function(er){var tr,rr,nr,ir,or,ar,sr;for(er.pos=this.offset,this.metrics=[],tr=0,ar=this.file.hhea.numberOfMetrics;0<=ar?tr<ar:tr>ar;tr=0<=ar?++tr:--tr)this.metrics.push({advance:er.readUInt16(),lsb:er.readInt16()});for(nr=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var rr,ir;for(ir=[],tr=rr=0;0<=nr?rr<nr:rr>nr;tr=0<=nr?++rr:--rr)ir.push(er.readInt16());return ir}(),this.widths=function(){var er,tr,rr,nr;for(nr=[],er=0,tr=(rr=this.metrics).length;er<tr;er++)ir=rr[er],nr.push(ir.advance);return nr}.call(this),rr=this.widths[this.widths.length-1],sr=[],tr=or=0;0<=nr?or<nr:or>nr;tr=0<=nr?++or:--or)sr.push(this.widths.push(rr));return sr},e.prototype.forGlyph=function(er){return er in this.metrics?this.metrics[er]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[er-this.metrics.length]}},e}(),dm=[].slice,hm=function(er){function e(){return e.__super__.constructor.apply(this,arguments)}return em(e,Yg),e.prototype.tag="glyf",e.prototype.parse=function(){return this.cache={}},e.prototype.glyphFor=function(er){var tr,rr,nr,ir,or,ar,sr,lr,cr,ur;return er in this.cache?this.cache[er]:(ir=this.file.loca,tr=this.file.contents,rr=ir.indexOf(er),0===(nr=ir.lengthOf(er))?this.cache[er]=null:(tr.pos=this.offset+rr,or=(ar=new Jg(tr.read(nr))).readShort(),lr=ar.readShort(),ur=ar.readShort(),sr=ar.readShort(),cr=ar.readShort(),this.cache[er]=-1===or?new Am(ar,lr,ur,sr,cr):new pm(ar,or,lr,ur,sr,cr),this.cache[er]))},e.prototype.encode=function(er,tr,rr){var nr,ir,or,ar,sr;for(or=[],ir=[],ar=0,sr=tr.length;ar<sr;ar++)nr=er[tr[ar]],ir.push(or.length),nr&&(or=or.concat(nr.encode(rr)));return ir.push(or.length),{table:or,offsets:ir}},e}(),pm=function(){function t(er,tr,rr,nr,ir,or){this.raw=er,this.numberOfContours=tr,this.xMin=rr,this.yMin=nr,this.xMax=ir,this.yMax=or,this.compound=!1}return t.prototype.encode=function(){return this.raw.data},t}(),Am=function(){function t(er,tr,rr,nr,ir){var or,ar;for(this.raw=er,this.xMin=tr,this.yMin=rr,this.xMax=nr,this.yMax=ir,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],or=this.raw;ar=or.readShort(),this.glyphOffsets.push(or.pos),this.glyphIDs.push(or.readUInt16()),32&ar;)or.pos+=1&ar?4:2,128&ar?or.pos+=8:64&ar?or.pos+=4:8&ar&&(or.pos+=2)}return t.prototype.encode=function(){var er,tr,rr;for(tr=new Jg(dm.call(this.raw.data)),er=0,rr=this.glyphIDs.length;er<rr;++er)tr.pos=this.glyphOffsets[er];return tr.data},t}(),fm=function(er){function e(){return e.__super__.constructor.apply(this,arguments)}return em(e,Yg),e.prototype.tag="loca",e.prototype.parse=function(er){var tr,rr;return er.pos=this.offset,tr=this.file.head.indexToLocFormat,this.offsets=0===tr?function(){var tr,nr;for(nr=[],rr=0,tr=this.length;rr<tr;rr+=2)nr.push(2*er.readUInt16());return nr}.call(this):function(){var tr,nr;for(nr=[],rr=0,tr=this.length;rr<tr;rr+=4)nr.push(er.readUInt32());return nr}.call(this)},e.prototype.indexOf=function(er){return this.offsets[er]},e.prototype.lengthOf=function(er){return this.offsets[er+1]-this.offsets[er]},e.prototype.encode=function(er,tr){for(var rr=new Uint32Array(this.offsets.length),nr=0,ir=0,or=0;or<rr.length;++or)if(rr[or]=nr,ir<tr.length&&tr[ir]==or){++ir,rr[or]=nr;var ar=this.offsets[or],sr=this.offsets[or+1]-ar;sr>0&&(nr+=sr)}for(var lr=new Array(4*rr.length),cr=0;cr<rr.length;++cr)lr[4*cr+3]=255&rr[cr],lr[4*cr+2]=(65280&rr[cr])>>8,lr[4*cr+1]=(16711680&rr[cr])>>16,lr[4*cr]=(4278190080&rr[cr])>>24;return lr},e}(),gm=function(){function t(er){this.font=er,this.subset={},this.unicodes={},this.next=33}return t.prototype.generateCmap=function(){var er,tr,rr,nr,ir;for(tr in nr=this.font.cmap.tables[0].codeMap,er={},ir=this.subset)rr=ir[tr],er[tr]=nr[rr];return er},t.prototype.glyphsFor=function(er){var tr,rr,nr,ir,or,ar,sr;for(nr={},or=0,ar=er.length;or<ar;or++)nr[ir=er[or]]=this.font.glyf.glyphFor(ir);for(ir in tr=[],nr)(null!=(rr=nr[ir])?rr.compound:void 0)&&tr.push.apply(tr,rr.glyphIDs);if(tr.length>0)for(ir in sr=this.glyphsFor(tr))rr=sr[ir],nr[ir]=rr;return nr},t.prototype.encode=function(er,tr){var rr,nr,ir,or,ar,sr,lr,cr,ur,dr,hr,pr,Ar,fr,gr;for(nr in rr=nm.encode(this.generateCmap(),"unicode"),or=this.glyphsFor(er),hr={0:0},gr=rr.charMap)hr[(sr=gr[nr]).old]=sr.new;for(pr in dr=rr.maxGlyphID,or)pr in hr||(hr[pr]=dr++);return cr=function(er){var tr,rr;for(tr in rr={},er)rr[er[tr]]=tr;return rr}(hr),ur=Object.keys(cr).sort((function(er,tr){return er-tr})),Ar=function(){var er,tr,rr;for(rr=[],er=0,tr=ur.length;er<tr;er++)ar=ur[er],rr.push(cr[ar]);return rr}(),ir=this.font.glyf.encode(or,Ar,hr),lr=this.font.loca.encode(ir.offsets,Ar),fr={cmap:this.font.cmap.raw(),glyf:ir.table,loca:lr,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(tr)},this.font.os2.exists&&(fr["OS/2"]=this.font.os2.raw()),this.font.directory.encode(fr)},t}();g.API.PDFObject=function(){var er;function e(){}return er=function t(er,tr){return(Array(tr+1).join("0")+er).slice(-tr)},e.convert=function(tr){var rr,nr,ir,or;if(Array.isArray(tr))return"["+function(){var er,nr,ir;for(ir=[],er=0,nr=tr.length;er<nr;er++)rr=tr[er],ir.push(e.convert(rr));return ir}().join(" ")+"]";if("string"==typeof tr)return"/"+tr;if(null!=tr?tr.isString:void 0)return"("+tr+")";if(tr instanceof Date)return"(D:"+er(tr.getUTCFullYear(),4)+er(tr.getUTCMonth(),2)+er(tr.getUTCDate(),2)+er(tr.getUTCHours(),2)+er(tr.getUTCMinutes(),2)+er(tr.getUTCSeconds(),2)+"Z)";if("[object Object]"==={}.toString.call(tr)){for(nr in ir=["<<"],tr)or=tr[nr],ir.push("/"+nr+" "+e.convert(or));return ir.push(">>"),ir.join("\n")}return""+tr},e}(),g.API.adler32cs=function(){var er,tr,rr,nr,ir,or="function"==typeof ArrayBuffer&&"function"==typeof Uint8Array,ar=null,sr=function(){if(!or)return function(){return!1};try{var er={};"function"==typeof er.Buffer&&(ar=er.Buffer)}catch(er){}return function(er){return er instanceof ArrayBuffer||null!==ar&&er instanceof ar}}(),lr=null!==ar?function(er){return new ar(er,"utf8").toString("binary")}:function(er){return unescape(encodeURIComponent(er))},cr=function i(er,tr){for(var rr=65535&er,nr=er>>>16,i=0,ir=tr.length;i<ir;i++)nr=(nr+(rr=(rr+(255&tr.charCodeAt(i)))%65521))%65521;return(nr<<16|rr)>>>0},ur=function a(er,tr){for(var rr=65535&er,nr=er>>>16,ir=0,a=tr.length;ir<a;ir++)nr=(nr+(rr=(rr+tr[ir])%65521))%65521;return(nr<<16|rr)>>>0},dr={},hr=dr.Adler32=((ir=(nr=function l(er){if(!(this instanceof nr))throw new TypeError("Constructor cannot called be as a function.");if(!isFinite(er=null===er?1:+er))throw new Error("First arguments needs to be a finite number.");this.checksum=er>>>0}).prototype={}).constructor=nr,nr.from=((er=function u(er){if(!(this instanceof nr))throw new TypeError("Constructor cannot called be as a function.");if(null===er)throw new Error("First argument needs to be a string.");this.checksum=cr(1,er.toString())}).prototype=ir,er),nr.fromUtf8=((tr=function c(er){if(!(this instanceof nr))throw new TypeError("Constructor cannot called be as a function.");if(null===er)throw new Error("First argument needs to be a string.");var tr=lr(er.toString());this.checksum=cr(1,tr)}).prototype=ir,tr),or&&(nr.fromBuffer=((rr=function h(er){if(!(this instanceof nr))throw new TypeError("Constructor cannot called be as a function.");if(!sr(er))throw new Error("First argument needs to be ArrayBuffer.");var tr=new Uint8Array(er);return this.checksum=ur(1,tr)}).prototype=ir,rr)),ir.update=function(er){if(null===er)throw new Error("First argument needs to be a string.");return er=er.toString(),this.checksum=cr(this.checksum,er)},ir.updateUtf8=function(er){if(null===er)throw new Error("First argument needs to be a string.");var tr=lr(er.toString());return this.checksum=cr(this.checksum,tr)},or&&(ir.updateBuffer=function(er){if(!sr(er))throw new Error("First argument needs to be ArrayBuffer.");var tr=new Uint8Array(er);return this.checksum=ur(this.checksum,tr)}),ir.clone=function(){return new hr(this.checksum)},nr);return dr.from=function(er){if(null===er)throw new Error("First argument needs to be a string.");return cr(1,er.toString())},dr.fromUtf8=function(er){if(null===er)throw new Error("First argument needs to be a string.");var tr=lr(er.toString());return cr(1,tr)},or&&(dr.fromBuffer=function(er){if(!sr(er))throw new Error("First argument need to be ArrayBuffer.");var tr=new Uint8Array(er);return ur(1,tr)}),dr}(),_export({target:"Array",proto:!0,forced:Fp!==[].lastIndexOf},{lastIndexOf:Fp}),_export({target:"String",proto:!0,forced:stringHtmlForced("anchor")},{anchor:function anchor(er){return createHtml(this,"a","name",er)}});
|
||
/*! https://mths.be/cssesc v3.0.0 by @mathias */
|
||
var mm={}.hasOwnProperty,vm=/[ -,\.\/:-@\[-\^`\{-~]/,ym=/[ -,\.\/:-@\[\]\^`\{-~]/,wm=/(^|\\+)?(\\[A-F0-9]{1,6})\x20(?![a-fA-F0-9\x20])/g,Sm=function cssesc(er,tr){"single"!=(tr=function merge(er,tr){if(!er)return tr;var rr={};for(var nr in tr)rr[nr]=mm.call(er,nr)?er[nr]:tr[nr];return rr}(tr,cssesc.options)).quotes&&"double"!=tr.quotes&&(tr.quotes="single");for(var rr="double"==tr.quotes?'"':"'",nr=tr.isIdentifier,ir=er.charAt(0),or="",ar=0,sr=er.length;ar<sr;){var lr=er.charAt(ar++),cr=lr.charCodeAt(),ur=void 0;if(cr<32||cr>126){if(cr>=55296&&cr<=56319&&ar<sr){var dr=er.charCodeAt(ar++);56320==(64512&dr)?cr=((1023&cr)<<10)+(1023&dr)+65536:ar--}ur="\\"+cr.toString(16).toUpperCase()+" "}else ur=tr.escapeEverything?vm.test(lr)?"\\"+lr:"\\"+cr.toString(16).toUpperCase()+" ":/[\t\n\f\r\x0B]/.test(lr)?"\\"+cr.toString(16).toUpperCase()+" ":"\\"==lr||!nr&&('"'==lr&&rr==lr||"'"==lr&&rr==lr)||nr&&ym.test(lr)?"\\"+lr:lr;or+=ur}return nr&&(/^-[-\d]/.test(or)?or="\\-"+or.slice(1):/\d/.test(ir)&&(or="\\3"+ir+" "+or.slice(1))),or=or.replace(wm,(function(er,tr,rr){return tr&&tr.length%2?er:(tr||"")+rr})),!nr&&tr.wrap?rr+or+rr:or};Sm.options={escapeEverything:!1,isIdentifier:!1,quotes:"single",wrap:!1},Sm.version="3.0.0";var xm=Sm,km=/[a-z0-9_-]/i,Cm=/[\s\t]/,Bm=function parse(er){for(var tr,rr,nr=!0,ir=0,or="",ar=0,sr=[];;){if(rr=er[ar],0===ir){if(!rr&&nr)break;if(!rr&&!nr)throw new Error("Parse error");if('"'===rr||"'"===rr)tr=rr,ir=1,nr=!1;else if(Cm.test(rr));else{if(!km.test(rr))throw new Error("Parse error");ir=3,nr=!1,ar--}}else if(1===ir){if(!rr)throw new Error("Parse Error");"\\"===rr?ir=2:rr===tr?(sr.push(or),or="",ir=4):or+=rr}else if(2===ir){if(rr!==tr&&"\\"!==rr)throw new Error("Parse error");or+=rr,ir=1}else if(3===ir){if(!rr){sr.push(or);break}if(km.test(rr))or+=rr;else if(","===rr)sr.push(or),or="",ir=0;else{if(!Cm.test(rr))throw new Error("Parse error");ir=5}}else if(5===ir){if(!rr){sr.push(or);break}if(km.test(rr))or+=" "+rr,ir=3;else if(","===rr)sr.push(or),or="",ir=0;else if(!Cm.test(rr))throw new Error("Parse error")}else if(4===ir){if(!rr)break;if(","===rr)ir=0;else if(!Cm.test(rr))throw new Error("Parse error")}ar++}return sr},Em={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},Nm=[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279];function isDigit(er){return er>=48&&er<=57}function State(er){this.index=0,this.path=er,this.max=er.length,this.result=[],this.param=0,this.err="",this.segmentStart=0,this.data=[]}function skipSpaces(er){for(;er.index<er.max&&(10===(tr=er.path.charCodeAt(er.index))||13===tr||8232===tr||8233===tr||32===tr||9===tr||11===tr||12===tr||160===tr||tr>=5760&&Nm.indexOf(tr)>=0);)er.index++;var tr}function scanFlag(er){var tr=er.path.charCodeAt(er.index);return 48===tr?(er.param=0,void er.index++):49===tr?(er.param=1,void er.index++):void(er.err="SvgPath: arc flag can be 0 or 1 only (at pos "+er.index+")")}function scanParam(er){var tr,rr=er.index,nr=rr,ir=er.max,or=!1,ar=!1,sr=!1,lr=!1;if(nr>=ir)er.err="SvgPath: missed param (at pos "+nr+")";else if(43!==(tr=er.path.charCodeAt(nr))&&45!==tr||(tr=++nr<ir?er.path.charCodeAt(nr):0),isDigit(tr)||46===tr){if(46!==tr){if(or=48===tr,tr=++nr<ir?er.path.charCodeAt(nr):0,or&&nr<ir&&tr&&isDigit(tr))return void(er.err="SvgPath: numbers started with `0` such as `09` are illegal (at pos "+rr+")");for(;nr<ir&&isDigit(er.path.charCodeAt(nr));)nr++,ar=!0;tr=nr<ir?er.path.charCodeAt(nr):0}if(46===tr){for(lr=!0,nr++;isDigit(er.path.charCodeAt(nr));)nr++,sr=!0;tr=nr<ir?er.path.charCodeAt(nr):0}if(101===tr||69===tr){if(lr&&!ar&&!sr)return void(er.err="SvgPath: invalid float exponent (at pos "+nr+")");if(43!==(tr=++nr<ir?er.path.charCodeAt(nr):0)&&45!==tr||nr++,!(nr<ir&&isDigit(er.path.charCodeAt(nr))))return void(er.err="SvgPath: invalid float exponent (at pos "+nr+")");for(;nr<ir&&isDigit(er.path.charCodeAt(nr));)nr++}er.index=nr,er.param=parseFloat(er.path.slice(rr,nr))+0}else er.err="SvgPath: param should start with 0..9 or `.` (at pos "+nr+")"}function finalizeSegment(er){var tr,rr;rr=(tr=er.path[er.segmentStart]).toLowerCase();var nr=er.data;if("m"===rr&&nr.length>2&&(er.result.push([tr,nr[0],nr[1]]),nr=nr.slice(2),rr="l",tr="m"===tr?"l":"L"),"r"===rr)er.result.push([tr].concat(nr));else for(;nr.length>=Em[rr]&&(er.result.push([tr].concat(nr.splice(0,Em[rr]))),Em[rr]););}function scanSegment(er){var tr,rr,nr,ir,or,ar=er.max;if(er.segmentStart=er.index,rr=function isArc(er){return 97==(32|er)}(tr=er.path.charCodeAt(er.index)),function isCommand(er){switch(32|er){case 109:case 122:case 108:case 104:case 118:case 99:case 115:case 113:case 116:case 97:case 114:return!0}return!1}(tr))if(ir=Em[er.path[er.index].toLowerCase()],er.index++,skipSpaces(er),er.data=[],ir){for(nr=!1;;){for(or=ir;or>0;or--){if(!rr||3!==or&&4!==or?scanParam(er):scanFlag(er),er.err.length)return;er.data.push(er.param),skipSpaces(er),nr=!1,er.index<ar&&44===er.path.charCodeAt(er.index)&&(er.index++,skipSpaces(er),nr=!0)}if(!nr){if(er.index>=er.max)break;if(!((sr=er.path.charCodeAt(er.index))>=48&&sr<=57||43===sr||45===sr||46===sr))break}}var sr;finalizeSegment(er)}else finalizeSegment(er);else er.err="SvgPath: bad command "+er.path[er.index]+" (at pos "+er.index+")"}function Matrix(){if(!(this instanceof Matrix))return new Matrix;this.queue=[],this.cache=null}Matrix.prototype.matrix=function(er){return 1===er[0]&&0===er[1]&&0===er[2]&&1===er[3]&&0===er[4]&&0===er[5]||(this.cache=null,this.queue.push(er)),this},Matrix.prototype.translate=function(er,tr){return 0===er&&0===tr||(this.cache=null,this.queue.push([1,0,0,1,er,tr])),this},Matrix.prototype.scale=function(er,tr){return 1===er&&1===tr||(this.cache=null,this.queue.push([er,0,0,tr,0,0])),this},Matrix.prototype.rotate=function(er,tr,rr){var nr,ir,or;return 0!==er&&(this.translate(tr,rr),nr=er*Math.PI/180,ir=Math.cos(nr),or=Math.sin(nr),this.queue.push([ir,or,-or,ir,0,0]),this.cache=null,this.translate(-tr,-rr)),this},Matrix.prototype.skewX=function(er){return 0!==er&&(this.cache=null,this.queue.push([1,0,Math.tan(er*Math.PI/180),1,0,0])),this},Matrix.prototype.skewY=function(er){return 0!==er&&(this.cache=null,this.queue.push([1,Math.tan(er*Math.PI/180),0,1,0,0])),this},Matrix.prototype.toArray=function(){if(this.cache)return this.cache;if(!this.queue.length)return this.cache=[1,0,0,1,0,0],this.cache;if(this.cache=this.queue[0],1===this.queue.length)return this.cache;for(var er=1;er<this.queue.length;er++)this.cache=(tr=this.cache,rr=this.queue[er],[tr[0]*rr[0]+tr[2]*rr[1],tr[1]*rr[0]+tr[3]*rr[1],tr[0]*rr[2]+tr[2]*rr[3],tr[1]*rr[2]+tr[3]*rr[3],tr[0]*rr[4]+tr[2]*rr[5]+tr[4],tr[1]*rr[4]+tr[3]*rr[5]+tr[5]]);var tr,rr;return this.cache},Matrix.prototype.calc=function(er,tr,rr){var nr;return this.queue.length?(this.cache||(this.cache=this.toArray()),[er*(nr=this.cache)[0]+tr*nr[2]+(rr?0:nr[4]),er*nr[1]+tr*nr[3]+(rr?0:nr[5])]):[er,tr]};var Lm=Matrix,Tm={matrix:!0,scale:!0,rotate:!0,translate:!0,skewX:!0,skewY:!0},Pm=/\s*(matrix|translate|scale|rotate|skewX|skewY)\s*\(\s*(.+?)\s*\)[\s,]*/,Fm=/[\s,]+/,Um=2*Math.PI;function unit_vector_angle(er,tr,rr,nr){var ir=er*rr+tr*nr;return ir>1&&(ir=1),ir<-1&&(ir=-1),(er*nr-tr*rr<0?-1:1)*Math.acos(ir)}function approximate_unit_arc(er,tr){var rr=4/3*Math.tan(tr/4),nr=Math.cos(er),ir=Math.sin(er),or=Math.cos(er+tr),ar=Math.sin(er+tr);return[nr,ir,nr-ir*rr,ir+nr*rr,or+ar*rr,ar-or*rr,or,ar]}var Im=function a2c(er,tr,rr,nr,ir,or,ar,sr,lr){var cr=Math.sin(lr*Um/360),ur=Math.cos(lr*Um/360),dr=ur*(er-rr)/2+cr*(tr-nr)/2,hr=-cr*(er-rr)/2+ur*(tr-nr)/2;if(0===dr&&0===hr)return[];if(0===ar||0===sr)return[];ar=Math.abs(ar),sr=Math.abs(sr);var pr=dr*dr/(ar*ar)+hr*hr/(sr*sr);pr>1&&(ar*=Math.sqrt(pr),sr*=Math.sqrt(pr));var Ar=function get_arc_center(er,tr,rr,nr,ir,or,ar,sr,lr,cr){var ur=cr*(er-rr)/2+lr*(tr-nr)/2,dr=-lr*(er-rr)/2+cr*(tr-nr)/2,hr=ar*ar,pr=sr*sr,Ar=ur*ur,fr=dr*dr,gr=hr*pr-hr*fr-pr*Ar;gr<0&&(gr=0),gr/=hr*fr+pr*Ar;var mr=(gr=Math.sqrt(gr)*(ir===or?-1:1))*ar/sr*dr,_r=gr*-sr/ar*ur,vr=cr*mr-lr*_r+(er+rr)/2,yr=lr*mr+cr*_r+(tr+nr)/2,br=(ur-mr)/ar,wr=(dr-_r)/sr,Sr=(-ur-mr)/ar,xr=(-dr-_r)/sr,kr=unit_vector_angle(1,0,br,wr),Cr=unit_vector_angle(br,wr,Sr,xr);return 0===or&&Cr>0&&(Cr-=Um),1===or&&Cr<0&&(Cr+=Um),[vr,yr,kr,Cr]}(er,tr,rr,nr,ir,or,ar,sr,cr,ur),fr=[],gr=Ar[2],mr=Ar[3],_r=Math.max(Math.ceil(Math.abs(mr)/(Um/4)),1);mr/=_r;for(var vr=0;vr<_r;vr++)fr.push(approximate_unit_arc(gr,mr)),gr+=mr;return fr.map((function(er){for(var tr=0;tr<er.length;tr+=2){var rr=er[tr+0],nr=er[tr+1],ir=ur*(rr*=ar)-cr*(nr*=sr),or=cr*rr+ur*nr;er[tr+0]=ir+Ar[0],er[tr+1]=or+Ar[1]}return er}))},Rm=Math.PI/180;function Ellipse(er,tr,rr){if(!(this instanceof Ellipse))return new Ellipse(er,tr,rr);this.rx=er,this.ry=tr,this.ax=rr}Ellipse.prototype.transform=function(er){var tr=Math.cos(this.ax*Rm),rr=Math.sin(this.ax*Rm),nr=[this.rx*(er[0]*tr+er[2]*rr),this.rx*(er[1]*tr+er[3]*rr),this.ry*(-er[0]*rr+er[2]*tr),this.ry*(-er[1]*rr+er[3]*tr)],ir=nr[0]*nr[0]+nr[2]*nr[2],or=nr[1]*nr[1]+nr[3]*nr[3],ar=((nr[0]-nr[3])*(nr[0]-nr[3])+(nr[2]+nr[1])*(nr[2]+nr[1]))*((nr[0]+nr[3])*(nr[0]+nr[3])+(nr[2]-nr[1])*(nr[2]-nr[1])),sr=(ir+or)/2;if(ar<1e-10*sr)return this.rx=this.ry=Math.sqrt(sr),this.ax=0,this;var lr=nr[0]*nr[1]+nr[2]*nr[3],cr=sr+(ar=Math.sqrt(ar))/2,ur=sr-ar/2;return this.ax=Math.abs(lr)<1e-10&&Math.abs(cr-or)<1e-10?90:180*Math.atan(Math.abs(lr)>Math.abs(cr-or)?(cr-ir)/lr:lr/(cr-or))/Math.PI,this.ax>=0?(this.rx=Math.sqrt(cr),this.ry=Math.sqrt(ur)):(this.ax+=90,this.rx=Math.sqrt(ur),this.ry=Math.sqrt(cr)),this},Ellipse.prototype.isDegenerate=function(){return this.rx<1e-10*this.ry||this.ry<1e-10*this.rx};var Mm=Ellipse;function SvgPath(er){if(!(this instanceof SvgPath))return new SvgPath(er);var tr=function pathParse(er){var tr=new State(er),rr=tr.max;for(skipSpaces(tr);tr.index<rr&&!tr.err.length;)scanSegment(tr);return tr.err.length?tr.result=[]:tr.result.length&&("mM".indexOf(tr.result[0][0])<0?(tr.err="SvgPath: string should start with `M` or `m`",tr.result=[]):tr.result[0][0]="M"),{err:tr.err,segments:tr.result}}(er);this.segments=tr.segments,this.err=tr.err,this.__stack=[]}SvgPath.from=function(er){if("string"==typeof er)return new SvgPath(er);if(er instanceof SvgPath){var tr=new SvgPath("");return tr.err=er.err,tr.segments=er.segments.map((function(er){return er.slice()})),tr.__stack=er.__stack.map((function(er){return Lm().matrix(er.toArray())})),tr}throw new Error("SvgPath.from: invalid param type "+er)},SvgPath.prototype.__matrix=function(er){var tr,rr=this;er.queue.length&&this.iterate((function(nr,ir,or,ar){var sr,lr,cr,ur;switch(nr[0]){case"v":lr=0===(sr=er.calc(0,nr[1],!0))[0]?["v",sr[1]]:["l",sr[0],sr[1]];break;case"V":lr=(sr=er.calc(or,nr[1],!1))[0]===er.calc(or,ar,!1)[0]?["V",sr[1]]:["L",sr[0],sr[1]];break;case"h":lr=0===(sr=er.calc(nr[1],0,!0))[1]?["h",sr[0]]:["l",sr[0],sr[1]];break;case"H":lr=(sr=er.calc(nr[1],ar,!1))[1]===er.calc(or,ar,!1)[1]?["H",sr[0]]:["L",sr[0],sr[1]];break;case"a":case"A":var dr=er.toArray(),hr=Mm(nr[1],nr[2],nr[3]).transform(dr);if(dr[0]*dr[3]-dr[1]*dr[2]<0&&(nr[5]=nr[5]?"0":"1"),sr=er.calc(nr[6],nr[7],"a"===nr[0]),"A"===nr[0]&&nr[6]===or&&nr[7]===ar||"a"===nr[0]&&0===nr[6]&&0===nr[7]){lr=["a"===nr[0]?"l":"L",sr[0],sr[1]];break}lr=hr.isDegenerate()?["a"===nr[0]?"l":"L",sr[0],sr[1]]:[nr[0],hr.rx,hr.ry,hr.ax,nr[4],nr[5],sr[0],sr[1]];break;case"m":ur=ir>0,lr=["m",(sr=er.calc(nr[1],nr[2],ur))[0],sr[1]];break;default:for(lr=[cr=nr[0]],ur=cr.toLowerCase()===cr,tr=1;tr<nr.length;tr+=2)sr=er.calc(nr[tr],nr[tr+1],ur),lr.push(sr[0],sr[1])}rr.segments[ir]=lr}),!0)},SvgPath.prototype.__evaluateStack=function(){var er,tr;if(this.__stack.length){if(1===this.__stack.length)return this.__matrix(this.__stack[0]),void(this.__stack=[]);for(er=Lm(),tr=this.__stack.length;--tr>=0;)er.matrix(this.__stack[tr].toArray());this.__matrix(er),this.__stack=[]}},SvgPath.prototype.toString=function(){var er,tr,rr=[];this.__evaluateStack();for(var nr=0;nr<this.segments.length;nr++)tr=this.segments[nr][0],er=nr>0&&"m"!==tr&&"M"!==tr&&tr===this.segments[nr-1][0],rr=rr.concat(er?this.segments[nr].slice(1):this.segments[nr]);return rr.join(" ").replace(/ ?([achlmqrstvz]) ?/gi,"$1").replace(/ \-/g,"-").replace(/zm/g,"z m")},SvgPath.prototype.translate=function(er,tr){return this.__stack.push(Lm().translate(er,tr||0)),this},SvgPath.prototype.scale=function(er,tr){return this.__stack.push(Lm().scale(er,tr||0===tr?tr:er)),this},SvgPath.prototype.rotate=function(er,tr,rr){return this.__stack.push(Lm().rotate(er,tr||0,rr||0)),this},SvgPath.prototype.skewX=function(er){return this.__stack.push(Lm().skewX(er)),this},SvgPath.prototype.skewY=function(er){return this.__stack.push(Lm().skewY(er)),this},SvgPath.prototype.matrix=function(er){return this.__stack.push(Lm().matrix(er)),this},SvgPath.prototype.transform=function(er){return er.trim()?(this.__stack.push(function transformParse(er){var tr,rr,nr=new Lm;return er.split(Pm).forEach((function(er){if(er.length)if(void 0===Tm[er])switch(rr=er.split(Fm).map((function(er){return+er||0})),tr){case"matrix":return void(6===rr.length&&nr.matrix(rr));case"scale":return void(1===rr.length?nr.scale(rr[0],rr[0]):2===rr.length&&nr.scale(rr[0],rr[1]));case"rotate":return void(1===rr.length?nr.rotate(rr[0],0,0):3===rr.length&&nr.rotate(rr[0],rr[1],rr[2]));case"translate":return void(1===rr.length?nr.translate(rr[0],0):2===rr.length&&nr.translate(rr[0],rr[1]));case"skewX":return void(1===rr.length&&nr.skewX(rr[0]));case"skewY":return void(1===rr.length&&nr.skewY(rr[0]))}else tr=er})),nr}(er)),this):this},SvgPath.prototype.round=function(er){var tr,rr=0,nr=0,ir=0,or=0;return er=er||0,this.__evaluateStack(),this.segments.forEach((function(ar){var sr=ar[0].toLowerCase()===ar[0];switch(ar[0]){case"H":case"h":return sr&&(ar[1]+=ir),ir=ar[1]-ar[1].toFixed(er),void(ar[1]=+ar[1].toFixed(er));case"V":case"v":return sr&&(ar[1]+=or),or=ar[1]-ar[1].toFixed(er),void(ar[1]=+ar[1].toFixed(er));case"Z":case"z":return ir=rr,void(or=nr);case"M":case"m":return sr&&(ar[1]+=ir,ar[2]+=or),ir=ar[1]-ar[1].toFixed(er),or=ar[2]-ar[2].toFixed(er),rr=ir,nr=or,ar[1]=+ar[1].toFixed(er),void(ar[2]=+ar[2].toFixed(er));case"A":case"a":return sr&&(ar[6]+=ir,ar[7]+=or),ir=ar[6]-ar[6].toFixed(er),or=ar[7]-ar[7].toFixed(er),ar[1]=+ar[1].toFixed(er),ar[2]=+ar[2].toFixed(er),ar[3]=+ar[3].toFixed(er+2),ar[6]=+ar[6].toFixed(er),void(ar[7]=+ar[7].toFixed(er));default:return tr=ar.length,sr&&(ar[tr-2]+=ir,ar[tr-1]+=or),ir=ar[tr-2]-ar[tr-2].toFixed(er),or=ar[tr-1]-ar[tr-1].toFixed(er),void ar.forEach((function(tr,rr){rr&&(ar[rr]=+ar[rr].toFixed(er))}))}})),this},SvgPath.prototype.iterate=function(er,tr){var rr,nr,ir,or=this.segments,ar={},sr=!1,lr=0,cr=0,ur=0,dr=0;if(tr||this.__evaluateStack(),or.forEach((function(tr,rr){var nr=er(tr,rr,lr,cr);Array.isArray(nr)&&(ar[rr]=nr,sr=!0);var ir=tr[0]===tr[0].toLowerCase();switch(tr[0]){case"m":case"M":return lr=tr[1]+(ir?lr:0),cr=tr[2]+(ir?cr:0),ur=lr,void(dr=cr);case"h":case"H":return void(lr=tr[1]+(ir?lr:0));case"v":case"V":return void(cr=tr[1]+(ir?cr:0));case"z":case"Z":return lr=ur,void(cr=dr);default:lr=tr[tr.length-2]+(ir?lr:0),cr=tr[tr.length-1]+(ir?cr:0)}})),!sr)return this;for(ir=[],rr=0;rr<or.length;rr++)if(void 0!==ar[rr])for(nr=0;nr<ar[rr].length;nr++)ir.push(ar[rr][nr]);else ir.push(or[rr]);return this.segments=ir,this},SvgPath.prototype.abs=function(){return this.iterate((function(er,tr,rr,nr){var ir,or=er[0],ar=or.toUpperCase();if(or!==ar)switch(er[0]=ar,or){case"v":return void(er[1]+=nr);case"a":return er[6]+=rr,void(er[7]+=nr);default:for(ir=1;ir<er.length;ir++)er[ir]+=ir%2?rr:nr}}),!0),this},SvgPath.prototype.rel=function(){return this.iterate((function(er,tr,rr,nr){var ir,or=er[0],ar=or.toLowerCase();if(or!==ar&&(0!==tr||"M"!==or))switch(er[0]=ar,or){case"V":return void(er[1]-=nr);case"A":return er[6]-=rr,void(er[7]-=nr);default:for(ir=1;ir<er.length;ir++)er[ir]-=ir%2?rr:nr}}),!0),this},SvgPath.prototype.unarc=function(){return this.iterate((function(er,tr,rr,nr){var ir,or,ar,sr=[],lr=er[0];return"A"!==lr&&"a"!==lr?null:("a"===lr?(or=rr+er[6],ar=nr+er[7]):(or=er[6],ar=er[7]),0===(ir=Im(rr,nr,or,ar,er[4],er[5],er[1],er[2],er[3])).length?[["a"===er[0]?"l":"L",er[6],er[7]]]:(ir.forEach((function(er){sr.push(["C",er[2],er[3],er[4],er[5],er[6],er[7]])})),sr))})),this},SvgPath.prototype.unshort=function(){var er,tr,rr,nr,ir,or=this.segments;return this.iterate((function(ar,sr,lr,cr){var ur,dr=ar[0],hr=dr.toUpperCase();sr&&("T"===hr?(ur="t"===dr,"Q"===(rr=or[sr-1])[0]?(er=rr[1]-lr,tr=rr[2]-cr):"q"===rr[0]?(er=rr[1]-rr[3],tr=rr[2]-rr[4]):(er=0,tr=0),nr=-er,ir=-tr,ur||(nr+=lr,ir+=cr),or[sr]=[ur?"q":"Q",nr,ir,ar[1],ar[2]]):"S"===hr&&(ur="s"===dr,"C"===(rr=or[sr-1])[0]?(er=rr[3]-lr,tr=rr[4]-cr):"c"===rr[0]?(er=rr[3]-rr[5],tr=rr[4]-rr[6]):(er=0,tr=0),nr=-er,ir=-tr,ur||(nr+=lr,ir+=cr),or[sr]=[ur?"c":"C",nr,ir,ar[1],ar[2],ar[3],ar[4]]))})),this};var Om=SvgPath,Qm=function calculateSingle(er){var tr,rr,nr=er,ir={a:0,b:0,c:0},or=[];return tr=function findMatch(tr,rr){var ar,sr,lr,cr,ur,dr;if(tr.test(nr))for(sr=0,lr=(ar=nr.match(tr)).length;sr<lr;sr+=1)ir[rr]+=1,cr=ar[sr],ur=nr.indexOf(cr),dr=cr.length,or.push({selector:er.substr(ur,dr),type:rr,index:ur,length:dr}),nr=nr.replace(cr,Array(dr+1).join(" "))},(rr=function replaceWithPlainText(er){var tr,rr,ir,or;if(er.test(nr))for(rr=0,ir=(tr=nr.match(er)).length;rr<ir;rr+=1)or=tr[rr],nr=nr.replace(or,Array(or.length+1).join("A"))})(/\\[0-9A-Fa-f]{6}\s?/g),rr(/\\[0-9A-Fa-f]{1,5}\s/g),rr(/\\./g),function(){var er,tr,rr,ir,or=/{[^]*/gm;if(or.test(nr))for(tr=0,rr=(er=nr.match(or)).length;tr<rr;tr+=1)ir=er[tr],nr=nr.replace(ir,Array(ir.length+1).join(" "))}(),tr(/(\[[^\]]+\])/g,"b"),tr(/(#[^\#\s\+>~\.\[:\)]+)/g,"a"),tr(/(\.[^\s\+>~\.\[:\)]+)/g,"b"),tr(/(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi,"c"),tr(/(:(?!not|global|local)[\w-]+\([^\)]*\))/gi,"b"),tr(/(:(?!not|global|local)[^\s\+>~\.\[:]+)/g,"b"),nr=(nr=(nr=(nr=(nr=(nr=nr.replace(/[\*\s\+>~]/g," ")).replace(/[#\.]/g," ")).replace(/:not/g," ")).replace(/:local/g," ")).replace(/:global/g," ")).replace(/[\(\)]/g," "),tr(/([^\s\+>~\.\[:]+)/g,"c"),or.sort((function(er,tr){return er.index-tr.index})),{selector:er,specificity:"0,"+ir.a.toString()+","+ir.b.toString()+","+ir.c.toString(),specificityArray:[0,ir.a,ir.b,ir.c],parts:or}},Dm=function extendStatics(er,tr){return(Dm=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(er,tr){er.__proto__=tr}||function(er,tr){for(var rr in tr)tr.hasOwnProperty(rr)&&(er[rr]=tr[rr])})(er,tr)};function __extends(er,tr){function __(){this.constructor=er}Dm(er,tr),er.prototype=null===tr?Object.create(tr):(__.prototype=tr.prototype,new __)}var jm=function __assign(){return(jm=Object.assign||function __assign(er){for(var tr,rr=1,nr=arguments.length;rr<nr;rr++)for(var ir in tr=arguments[rr])Object.prototype.hasOwnProperty.call(tr,ir)&&(er[ir]=tr[ir]);return er}).apply(this,arguments)};function __awaiter(er,tr,rr,nr){return new(rr||(rr=Promise))((function(ir,or){function fulfilled(er){try{step(nr.next(er))}catch(er){or(er)}}function rejected(er){try{step(nr.throw(er))}catch(er){or(er)}}function step(er){er.done?ir(er.value):function adopt(er){return er instanceof rr?er:new rr((function(tr){tr(er)}))}(er.value).then(fulfilled,rejected)}step((nr=nr.apply(er,tr||[])).next())}))}function __generator(er,tr){var rr,nr,ir,or,ar={label:0,sent:function sent(){if(1&ir[0])throw ir[1];return ir[1]},trys:[],ops:[]};return or={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(or[Symbol.iterator]=function(){return this}),or;function verb(or){return function(sr){return function step(or){if(rr)throw new TypeError("Generator is already executing.");for(;ar;)try{if(rr=1,nr&&(ir=2&or[0]?nr.return:or[0]?nr.throw||((ir=nr.return)&&ir.call(nr),0):nr.next)&&!(ir=ir.call(nr,or[1])).done)return ir;switch(nr=0,ir&&(or=[2&or[0],ir.value]),or[0]){case 0:case 1:ir=or;break;case 4:return ar.label++,{value:or[1],done:!1};case 5:ar.label++,nr=or[1],or=[0];continue;case 7:or=ar.ops.pop(),ar.trys.pop();continue;default:if(!(ir=ar.trys,(ir=ir.length>0&&ir[ir.length-1])||6!==or[0]&&2!==or[0])){ar=0;continue}if(3===or[0]&&(!ir||or[1]>ir[0]&&or[1]<ir[3])){ar.label=or[1];break}if(6===or[0]&&ar.label<ir[1]){ar.label=ir[1],ir=or;break}if(ir&&ar.label<ir[2]){ar.label=ir[2],ar.ops.push(or);break}ir[2]&&ar.ops.pop(),ar.trys.pop();continue}or=tr.call(er,ar)}catch(er){or=[6,er],nr=0}finally{rr=ir=0}if(5&or[0])throw or[1];return{value:or[0]?or[1]:void 0,done:!0}}([or,sr])}}}var Hm=function(){function RGBColor(er){if(this.a=void 0,this.r=0,this.g=0,this.b=0,this.simpleColors={},this.colorDefs=[],this.ok=!1,er){for(var tr in"#"==er.charAt(0)&&(er=er.substr(1,6)),er=(er=er.replace(/ /g,"")).toLowerCase(),this.simpleColors={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgrey:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",grey:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightslategrey:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"},this.simpleColors)er==tr&&(er=this.simpleColors[tr]);this.colorDefs=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function process(er){return[parseInt(er[1]),parseInt(er[2]),parseInt(er[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function process(er){return[parseInt(er[1],16),parseInt(er[2],16),parseInt(er[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function process(er){return[parseInt(er[1]+er[1],16),parseInt(er[2]+er[2],16),parseInt(er[3]+er[3],16)]}}];for(var rr=0;rr<this.colorDefs.length;rr++){var nr=this.colorDefs[rr].re,ir=this.colorDefs[rr].process,or=nr.exec(er);if(or){var ar=ir(or);this.r=ar[0],this.g=ar[1],this.b=ar[2],this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b}}return RGBColor.prototype.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},RGBColor.prototype.toHex=function(){var er=this.r.toString(16),tr=this.g.toString(16),rr=this.b.toString(16);return 1==er.length&&(er="0"+er),1==tr.length&&(tr="0"+tr),1==rr.length&&(rr="0"+rr),"#"+er+tr+rr},RGBColor.prototype.getHelpXML=function(){for(var er=[],tr=0;tr<this.colorDefs.length;tr++)for(var rr=this.colorDefs[tr].example,nr=0;nr<rr.length;nr++)er[er.length]=rr[nr];for(var ir in this.simpleColors)er[er.length]=ir;var or=document.createElement("ul");or.setAttribute("id","rgbcolor-examples");for(tr=0;tr<er.length;tr++)try{var ar=document.createElement("li"),sr=new RGBColor(er[tr]),lr=document.createElement("div");lr.style.cssText="margin: 3px; border: 1px solid black; background:"+sr.toHex()+"; color:"+sr.toHex(),lr.appendChild(document.createTextNode("test"));var cr=document.createTextNode(" "+er[tr]+" -> "+sr.toRGB()+" -> "+sr.toHex());ar.appendChild(lr),ar.appendChild(cr),or.appendChild(ar)}catch(er){}return or},RGBColor}(),Gm=function(){function ColorFill(er){this.color=er}return ColorFill.prototype.getFillData=function(er,tr){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(er){return[2,void 0]}))}))},ColorFill}(),Vm=function(){function AttributeState(){this.xmlSpace="",this.fill=null,this.fillOpacity=1,this.fontFamily="",this.fontSize=16,this.fontStyle="",this.fontWeight="",this.opacity=1,this.stroke=null,this.strokeDasharray=null,this.strokeDashoffset=0,this.strokeLinecap="",this.strokeLinejoin="",this.strokeMiterlimit=4,this.strokeOpacity=1,this.strokeWidth=1,this.alignmentBaseline="",this.textAnchor="",this.visibility=""}return AttributeState.prototype.clone=function(){var er=new AttributeState;return er.xmlSpace=this.xmlSpace,er.fill=this.fill,er.fillOpacity=this.fillOpacity,er.fontFamily=this.fontFamily,er.fontSize=this.fontSize,er.fontStyle=this.fontStyle,er.fontWeight=this.fontWeight,er.opacity=this.opacity,er.stroke=this.stroke,er.strokeDasharray=this.strokeDasharray,er.strokeDashoffset=this.strokeDashoffset,er.strokeLinecap=this.strokeLinecap,er.strokeLinejoin=this.strokeLinejoin,er.strokeMiterlimit=this.strokeMiterlimit,er.strokeOpacity=this.strokeOpacity,er.strokeWidth=this.strokeWidth,er.textAnchor=this.textAnchor,er.alignmentBaseline=this.alignmentBaseline,er.visibility=this.visibility,er},AttributeState.default=function(){var er=new AttributeState;return er.xmlSpace="default",er.fill=new Gm(new Hm("rgb(0, 0, 0)")),er.fillOpacity=1,er.fontFamily="times",er.fontSize=16,er.fontStyle="normal",er.fontWeight="normal",er.opacity=1,er.stroke=null,er.strokeDasharray=null,er.strokeDashoffset=0,er.strokeLinecap="butt",er.strokeLinejoin="miter",er.strokeMiterlimit=4,er.strokeOpacity=1,er.strokeWidth=1,er.alignmentBaseline="baseline",er.textAnchor="start",er.visibility="visible",er},AttributeState}(),zm=/url\(["']?#([^"']+)["']?\)/,Km={bottom:"bottom","text-bottom":"bottom",top:"top","text-top":"top",hanging:"hanging",middle:"middle",central:"middle",center:"middle",mathematical:"middle",ideographic:"ideographic",alphabetic:"alphabetic",baseline:"alphabetic"},qm=function(){function TextMeasure(){this.measureMethods={}}return TextMeasure.prototype.getTextOffset=function(er,tr){var rr=tr.textAnchor;if("start"===rr)return 0;var nr=this.measureTextWidth(er,tr),ir=0;switch(rr){case"end":ir=nr;break;case"middle":ir=nr/2}return ir},TextMeasure.prototype.measureTextWidth=function(er,tr){if(0===er.length)return 0;var rr=tr.fontFamily;return this.getMeasureFunction(rr).call(this,er,tr.fontFamily,tr.fontSize+"px",tr.fontStyle,tr.fontWeight)},TextMeasure.prototype.getMeasurementTextNode=function(){if(!this.textMeasuringTextElement){this.textMeasuringTextElement=document.createElementNS("http://www.w3.org/2000/svg","text");var er=document.createElementNS("http://www.w3.org/2000/svg","svg");er.appendChild(this.textMeasuringTextElement),er.style.setProperty("position","absolute"),er.style.setProperty("visibility","hidden"),document.body.appendChild(er)}return this.textMeasuringTextElement},TextMeasure.prototype.canvasTextMeasure=function(er,tr,rr,nr,ir){var or=document.createElement("canvas").getContext("2d");return null!=or?(or.font=[nr,ir,rr,tr].join(" "),or.measureText(er).width):0},TextMeasure.prototype.svgTextMeasure=function(er,tr,rr,nr,ir,or){void 0===or&&(or=this.getMeasurementTextNode());var ar=or;return ar.setAttribute("font-family",tr),ar.setAttribute("font-size",rr),ar.setAttribute("font-style",nr),ar.setAttribute("font-weight",ir),ar.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),ar.textContent=er,ar.getBBox().width},TextMeasure.prototype.getMeasureFunction=function(er){var tr=this.measureMethods[er];if(!tr){var rr="16px",nr="normal",ir="normal",or=this.canvasTextMeasure(TextMeasure.testString,er,rr,nr,ir),ar=this.svgTextMeasure(TextMeasure.testString,er,rr,nr,ir);tr=Math.abs(or-ar)<TextMeasure.epsilon?this.canvasTextMeasure:this.svgTextMeasure,this.measureMethods[er]=tr}return tr},TextMeasure.prototype.cleanupTextMeasuring=function(){if(this.textMeasuringTextElement){var er=this.textMeasuringTextElement.parentNode;er&&document.body.removeChild(er),this.textMeasuringTextElement=void 0}},TextMeasure.testString="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ 0123456789!\"$%&/()=?'\\+*-_.:,;^}][{#~|<>",TextMeasure.epsilon=.1,TextMeasure}(),Wm=function(){function Context(er,tr){var rr,nr,ir,or,ar,sr;this.pdf=er,this.svg2pdfParameters=tr.svg2pdfParameters,this.attributeState=tr.attributeState?tr.attributeState.clone():Vm.default(),this.viewport=tr.viewport,this.refsHandler=null!==(rr=tr.refsHandler)&&void 0!==rr?rr:null,this.styleSheets=null!==(nr=tr.styleSheets)&&void 0!==nr?nr:null,this.textMeasure=null!==(ir=tr.textMeasure)&&void 0!==ir?ir:new qm,this.transform=null!==(or=tr.transform)&&void 0!==or?or:this.pdf.unitMatrix,this.withinClipPath=null!==(ar=tr.withinClipPath)&&void 0!==ar&&ar,this.withinUse=null!==(sr=tr.withinUse)&&void 0!==sr&&sr}return Context.prototype.clone=function(er){var tr,rr,nr,ir,or,ar,sr,lr;return void 0===er&&(er={}),new Context(this.pdf,{svg2pdfParameters:null!==(tr=er.svg2pdfParameters)&&void 0!==tr?tr:this.svg2pdfParameters,attributeState:er.attributeState?er.attributeState.clone():this.attributeState.clone(),viewport:null!==(rr=er.viewport)&&void 0!==rr?rr:this.viewport,refsHandler:null!==(nr=er.refsHandler)&&void 0!==nr?nr:this.refsHandler,styleSheets:null!==(ir=er.styleSheets)&&void 0!==ir?ir:this.styleSheets,textMeasure:null!==(or=er.textMeasure)&&void 0!==or?or:this.textMeasure,transform:null!==(ar=er.transform)&&void 0!==ar?ar:this.transform,withinClipPath:null!==(sr=er.withinClipPath)&&void 0!==sr?sr:this.withinClipPath,withinUse:null!==(lr=er.withinUse)&&void 0!==lr?lr:this.withinUse})},Context}(),Xm=function(){function ReferencesHandler(er){this.renderedElements={},this.idMap=er}return ReferencesHandler.prototype.getRendered=function(er,tr){return __awaiter(this,void 0,void 0,(function(){var rr;return __generator(this,(function(nr){switch(nr.label){case 0:return this.renderedElements.hasOwnProperty(er)?[2,this.renderedElements[er]]:(rr=this.get(er),this.renderedElements[er]=rr,[4,tr(rr)]);case 1:return nr.sent(),[2,rr]}}))}))},ReferencesHandler.prototype.get=function(er){return this.idMap[xm(er,{isIdentifier:!0})]},ReferencesHandler}();function getAngle(er,tr){return Math.atan2(tr[1]-er[1],tr[0]-er[0])}var Ym=2/3;function toCubic(er,tr){return[Ym*(tr[0]-er[0])+er[0],Ym*(tr[1]-er[1])+er[1]]}function normalize$1(er){var tr=Math.sqrt(er[0]*er[0]+er[1]*er[1]);return[er[0]/tr,er[1]/tr]}function getDirectionVector(er,tr){return normalize$1([tr[0]-er[0],tr[1]-er[1]])}function addVectors(er,tr){return[er[0]+tr[0],er[1]+tr[1]]}function multVecMatrix(er,tr){var rr=er[0],nr=er[1];return[tr.a*rr+tr.c*nr+tr.e,tr.b*rr+tr.d*nr+tr.f]}var Jm=function(){function Path(){this.segments=[]}return Path.prototype.moveTo=function(er,tr){return this.segments.push(new $m(er,tr)),this},Path.prototype.lineTo=function(er,tr){return this.segments.push(new Zm(er,tr)),this},Path.prototype.curveTo=function(er,tr,rr,nr,ir,or){return this.segments.push(new e_(er,tr,rr,nr,ir,or)),this},Path.prototype.close=function(){return this.segments.push(new t_),this},Path.prototype.transform=function(er){this.segments.forEach((function(tr){if(tr instanceof $m||tr instanceof Zm||tr instanceof e_){var rr=multVecMatrix([tr.x,tr.y],er);tr.x=rr[0],tr.y=rr[1]}if(tr instanceof e_){var nr=multVecMatrix([tr.x1,tr.y1],er),ir=multVecMatrix([tr.x2,tr.y2],er);tr.x1=nr[0],tr.y1=nr[1],tr.x2=ir[0],tr.y2=ir[1]}}))},Path.prototype.draw=function(er){var tr=er.pdf;this.segments.forEach((function(er){er instanceof $m?tr.moveTo(er.x,er.y):er instanceof Zm?tr.lineTo(er.x,er.y):er instanceof e_?tr.curveTo(er.x1,er.y1,er.x2,er.y2,er.x,er.y):tr.close()}))},Path}(),$m=function $m(er,tr){this.x=er,this.y=tr},Zm=function Zm(er,tr){this.x=er,this.y=tr},e_=function e_(er,tr,rr,nr,ir,or){this.x1=er,this.y1=tr,this.x2=rr,this.y2=nr,this.x=ir,this.y=or},t_=function t_(){};function nodeIs(er,tr){return tr.split(",").indexOf((er.nodeName||er.tagName).toLowerCase())>=0}function getAttribute(er,tr,rr,nr){void 0===nr&&(nr=rr);var ir=er.style.getPropertyValue(nr);return ir||(tr.getPropertyValue(er,nr)?tr.getPropertyValue(er,nr):er.hasAttribute(rr)&&er.getAttribute(rr)||void 0)}function svgNodeIsVisible(er,tr,rr){if("none"===getAttribute(er.element,rr.styleSheets,"display"))return!1;var nr=tr,ir=getAttribute(er.element,rr.styleSheets,"visibility");return ir&&(nr="hidden"!==ir),nr}function svgNodeAndChildrenVisible(er,tr,rr){var nr=svgNodeIsVisible(er,tr,rr);return 0!==er.element.childNodes.length&&(er.children.forEach((function(er){er.isVisible(nr,rr)&&(nr=!0)})),nr)}var r_=function(){function MarkerList(){this.markers=[]}return MarkerList.prototype.addMarker=function(er){this.markers.push(er)},MarkerList.prototype.draw=function(er){return __awaiter(this,void 0,void 0,(function(){var tr,rr,nr,ir,or,ar,sr;return __generator(this,(function(lr){switch(lr.label){case 0:tr=0,lr.label=1;case 1:return tr<this.markers.length?(rr=this.markers[tr],nr=void 0,ir=rr.angle,or=rr.anchor,ar=Math.cos(ir),sr=Math.sin(ir),nr=er.pdf.Matrix(ar,sr,-sr,ar,or[0],or[1]),nr=er.pdf.matrixMult(er.pdf.Matrix(er.attributeState.strokeWidth,0,0,er.attributeState.strokeWidth,0,0),nr),nr=er.pdf.matrixMult(nr,er.transform),er.pdf.saveGraphicsState(),er.pdf.setLineWidth(1),[4,er.refsHandler.getRendered(rr.id,(function(tr){return tr.apply(er)}))]):[3,4];case 2:lr.sent(),er.pdf.doFormObject(rr.id,nr),er.pdf.restoreGraphicsState(),lr.label=3;case 3:return tr++,[3,1];case 4:return[2]}}))}))},MarkerList}(),n_=function n_(er,tr,rr){this.id=er,this.anchor=tr,this.angle=rr};function toPixels(er,tr){var rr;return(rr=er&&er.toString().match(/^([\-0-9.]+)em$/))?parseFloat(rr[1])*tr:(rr=er&&er.toString().match(/^([\-0-9.]+)(px|)$/))?parseFloat(rr[1]):0}function mapAlignmentBaseline(er){return Km[er]||"alphabetic"}function parseFloats(er){for(var tr,rr=[],nr=/[+-]?(?:(?:\d+\.?\d*)|(?:\d*\.?\d+))(?:[eE][+-]?\d+)?/g;tr=nr.exec(er);)rr.push(parseFloat(tr[0]));return rr}function parseColor(er){if("transparent"===er){var tr=new Hm("rgb(0,0,0)");return tr.a=0,tr}var rr=/\s*rgba\(((?:[^,\)]*,){3}[^,\)]*)\)\s*/.exec(er);if(rr){var nr=parseFloats(rr[1]),ir=new Hm("rgb("+nr.slice(0,3).join(",")+")");return ir.a=nr[3],ir}return new Hm(er)}var i_={"sans-serif":"helvetica",verdana:"helvetica",arial:"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",serif:"times",cursive:"times",fantasy:"times"};function getBoundingBoxByChildren(er,tr){if("none"===getAttribute(tr.element,er.styleSheets,"display"))return[0,0,0,0];var rr=[0,0,0,0];return tr.children.forEach((function(tr){var nr=tr.getBoundingBox(er);rr=[Math.min(rr[0],nr[0]),Math.min(rr[1],nr[1]),Math.max(rr[0]+rr[2],nr[0]+nr[2])-Math.min(rr[0],nr[0]),Math.max(rr[1]+rr[3],nr[1]+nr[3])-Math.min(rr[1],nr[1])]})),rr}function defaultBoundingBox(er,tr){var rr=parseFloat,nr=rr(er.getAttribute("x1"))||rr(getAttribute(er,tr.styleSheets,"x"))||rr(getAttribute(er,tr.styleSheets,"cx"))-rr(getAttribute(er,tr.styleSheets,"r"))||0,ir=rr(er.getAttribute("x2"))||nr+rr(getAttribute(er,tr.styleSheets,"width"))||rr(getAttribute(er,tr.styleSheets,"cx"))+rr(getAttribute(er,tr.styleSheets,"r"))||0,or=rr(er.getAttribute("y1"))||rr(getAttribute(er,tr.styleSheets,"y"))||rr(getAttribute(er,tr.styleSheets,"cy"))-rr(getAttribute(er,tr.styleSheets,"r"))||0,ar=rr(er.getAttribute("y2"))||or+rr(getAttribute(er,tr.styleSheets,"height"))||rr(getAttribute(er,tr.styleSheets,"cy"))+rr(getAttribute(er,tr.styleSheets,"r"))||0;return[Math.min(nr,ir),Math.min(or,ar),Math.max(nr,ir)-Math.min(nr,ir),Math.max(or,ar)-Math.min(or,ar)]}function computeViewBoxTransform(er,tr,rr,nr,ir,or,ar,sr){void 0===sr&&(sr=!1);var lr,cr,ur=tr[0],dr=tr[1],hr=tr[2],pr=tr[3],Ar=ir/hr,fr=or/pr,gr=er.getAttribute("preserveAspectRatio");if(gr){var mr=gr.split(" ");"defer"===mr[0]&&(mr=mr.slice(1)),lr=mr[0],cr=mr[1]||"meet"}else lr="xMidYMid",cr="meet";if("none"!==lr&&("meet"===cr?Ar=fr=Math.min(Ar,fr):"slice"===cr&&(Ar=fr=Math.max(Ar,fr))),sr)return ar.pdf.Matrix(Ar,0,0,fr,0,0);var _r=rr-ur*Ar,vr=nr-dr*fr;lr.indexOf("xMid")>=0?_r+=(ir-hr*Ar)/2:lr.indexOf("xMax")>=0&&(_r+=ir-hr*Ar),lr.indexOf("YMid")>=0?vr+=(or-pr*fr)/2:lr.indexOf("YMax")>=0&&(vr+=or-pr*fr);var yr=ar.pdf.Matrix(1,0,0,1,_r,vr),br=ar.pdf.Matrix(Ar,0,0,fr,0,0);return ar.pdf.matrixMult(br,yr)}function parseTransform(er,tr){if(!er||"none"===er)return tr.pdf.unitMatrix;for(var rr,nr,ir=/^[\s,]*matrix\(([^\)]+)\)\s*/,or=/^[\s,]*translate\(([^\)]+)\)\s*/,ar=/^[\s,]*rotate\(([^\)]+)\)\s*/,sr=/^[\s,]*scale\(([^\)]+)\)\s*/,lr=/^[\s,]*skewX\(([^\)]+)\)\s*/,cr=/^[\s,]*skewY\(([^\)]+)\)\s*/,ur=tr.pdf.unitMatrix;er.length>0&&er.length!==nr;){nr=er.length;var dr=ir.exec(er);if(dr&&(rr=parseFloats(dr[1]),ur=tr.pdf.matrixMult(tr.pdf.Matrix(rr[0],rr[1],rr[2],rr[3],rr[4],rr[5]),ur),er=er.substr(dr[0].length)),dr=ar.exec(er)){rr=parseFloats(dr[1]);var hr=Math.PI*rr[0]/180;if(ur=tr.pdf.matrixMult(tr.pdf.Matrix(Math.cos(hr),Math.sin(hr),-Math.sin(hr),Math.cos(hr),0,0),ur),rr[1]||rr[2]){var pr=tr.pdf.Matrix(1,0,0,1,rr[1],rr[2]),Ar=tr.pdf.Matrix(1,0,0,1,-rr[1],-rr[2]);ur=tr.pdf.matrixMult(Ar,tr.pdf.matrixMult(ur,pr))}er=er.substr(dr[0].length)}(dr=or.exec(er))&&(rr=parseFloats(dr[1]),ur=tr.pdf.matrixMult(tr.pdf.Matrix(1,0,0,1,rr[0],rr[1]||0),ur),er=er.substr(dr[0].length)),(dr=sr.exec(er))&&((rr=parseFloats(dr[1]))[1]||(rr[1]=rr[0]),ur=tr.pdf.matrixMult(tr.pdf.Matrix(rr[0],0,0,rr[1],0,0),ur),er=er.substr(dr[0].length)),(dr=lr.exec(er))&&(rr=parseFloat(dr[1]),rr*=Math.PI/180,ur=tr.pdf.matrixMult(tr.pdf.Matrix(1,0,Math.tan(rr),1,0,0),ur),er=er.substr(dr[0].length)),(dr=cr.exec(er))&&(rr=parseFloat(dr[1]),rr*=Math.PI/180,ur=tr.pdf.matrixMult(tr.pdf.Matrix(1,Math.tan(rr),0,1,0,0),ur),er=er.substr(dr[0].length))}return ur}var o_=function(){function SvgNode(er,tr){this.element=er,this.children=tr}return SvgNode.prototype.getBoundingBox=function(er){return"none"===getAttribute(this.element,er.styleSheets,"display")?[0,0,0,0]:this.getBoundingBoxCore(er)},SvgNode.prototype.computeNodeTransform=function(er){var tr=this.computeNodeTransformCore(er),rr=getAttribute(this.element,er.styleSheets,"transform");return rr?er.pdf.matrixMult(tr,parseTransform(rr,er)):tr},SvgNode}(),a_=function(er){function NonRenderedNode(){return null!==er&&er.apply(this,arguments)||this}return __extends(NonRenderedNode,er),NonRenderedNode.prototype.render=function(er){return Promise.resolve()},NonRenderedNode.prototype.getBoundingBoxCore=function(er){return[]},NonRenderedNode.prototype.computeNodeTransformCore=function(er){return er.pdf.unitMatrix},NonRenderedNode}(o_),s_=function(er){function Gradient(tr,rr,nr){var ir=er.call(this,rr,nr)||this;return ir.pdfGradientType=tr,ir}return __extends(Gradient,er),Gradient.prototype.apply=function(er){return __awaiter(this,void 0,void 0,(function(){var tr,rr,nr,ir,or,ar;return __generator(this,(function(sr){return(tr=this.element.getAttribute("id"))?(rr=[],nr=0,ir=!1,this.children.forEach((function(tr){if("stop"===tr.element.tagName.toLowerCase()){var or=new Hm(getAttribute(tr.element,er.styleSheets,"stop-color"));rr.push({offset:Gradient.parseGradientOffset(tr.element.getAttribute("offset")||"0"),color:[or.r,or.g,or.b]});var ar=getAttribute(tr.element,er.styleSheets,"stop-opacity");ar&&"1"!==ar&&(nr+=parseFloat(ar),ir=!0)}})),ir&&(or=new l({opacity:nr/rr.length})),ar=new d(this.pdfGradientType,this.getCoordinates(),rr,or),er.pdf.addShadingPattern(tr,ar),[2]):[2]}))}))},Gradient.prototype.getBoundingBoxCore=function(er){return defaultBoundingBox(this.element,er)},Gradient.prototype.computeNodeTransformCore=function(er){return er.pdf.unitMatrix},Gradient.prototype.isVisible=function(er,tr){return svgNodeAndChildrenVisible(this,er,tr)},Gradient.parseGradientOffset=function(er){var tr=parseFloat(er);return!isNaN(tr)&&er.indexOf("%")>=0?tr/100:tr},Gradient}(a_),l_=function(er){function LinearGradient(tr,rr){return er.call(this,"axial",tr,rr)||this}return __extends(LinearGradient,er),LinearGradient.prototype.getCoordinates=function(){return[parseFloat(this.element.getAttribute("x1")||"0"),parseFloat(this.element.getAttribute("y1")||"0"),parseFloat(this.element.getAttribute("x2")||"1"),parseFloat(this.element.getAttribute("y2")||"0")]},LinearGradient}(s_),c_=function(er){function RadialGradient(tr,rr){return er.call(this,"radial",tr,rr)||this}return __extends(RadialGradient,er),RadialGradient.prototype.getCoordinates=function(){var er=this.element.getAttribute("cx"),tr=this.element.getAttribute("cy"),rr=this.element.getAttribute("fx"),nr=this.element.getAttribute("fy");return[parseFloat(rr||er||"0.5"),parseFloat(nr||tr||"0.5"),0,parseFloat(er||"0.5"),parseFloat(tr||"0.5"),parseFloat(this.element.getAttribute("r")||"0.5")]},RadialGradient}(s_),u_=function(){function GradientFill(er,tr){this.key=er,this.gradient=tr}return GradientFill.prototype.getFillData=function(er,tr){return __awaiter(this,void 0,void 0,(function(){var rr,nr,ir;return __generator(this,(function(or){switch(or.label){case 0:return[4,tr.refsHandler.getRendered(this.key,(function(er){return er.apply(new Wm(tr.pdf,{refsHandler:tr.refsHandler,textMeasure:tr.textMeasure,styleSheets:tr.styleSheets,viewport:tr.viewport,svg2pdfParameters:tr.svg2pdfParameters}))}))];case 1:return or.sent(),this.gradient.element.hasAttribute("gradientUnits")&&"objectboundingbox"!==this.gradient.element.getAttribute("gradientUnits").toLowerCase()?rr=tr.pdf.unitMatrix:(nr=er.getBoundingBox(tr),rr=tr.pdf.Matrix(nr[2],0,0,nr[3],nr[0],nr[1])),ir=parseTransform(getAttribute(this.gradient.element,tr.styleSheets,"gradientTransform","transform"),tr),[2,{key:this.key,matrix:tr.pdf.matrixMult(ir,rr)}]}}))}))},GradientFill}(),d_=function(er){function Pattern(){return null!==er&&er.apply(this,arguments)||this}return __extends(Pattern,er),Pattern.prototype.apply=function(er){return __awaiter(this,void 0,void 0,(function(){var tr,rr,nr,ir,or;return __generator(this,(function(ar){switch(ar.label){case 0:if(!(tr=this.element.getAttribute("id")))return[2];rr=this.getBoundingBox(er),nr=new p([rr[0],rr[1],rr[0]+rr[2],rr[1]+rr[3]],rr[2],rr[3]),er.pdf.beginTilingPattern(nr),ir=0,or=this.children,ar.label=1;case 1:return ir<or.length?[4,or[ir].render(new Wm(er.pdf,{attributeState:er.attributeState,refsHandler:er.refsHandler,styleSheets:er.styleSheets,viewport:er.viewport,svg2pdfParameters:er.svg2pdfParameters}))]:[3,4];case 2:ar.sent(),ar.label=3;case 3:return ir++,[3,1];case 4:return er.pdf.endTilingPattern(tr,nr),[2]}}))}))},Pattern.prototype.getBoundingBoxCore=function(er){return defaultBoundingBox(this.element,er)},Pattern.prototype.computeNodeTransformCore=function(er){return er.pdf.unitMatrix},Pattern.prototype.isVisible=function(er,tr){return svgNodeAndChildrenVisible(this,er,tr)},Pattern}(a_),h_=function(){function PatternFill(er,tr){this.key=er,this.pattern=tr}return PatternFill.prototype.getFillData=function(er,tr){return __awaiter(this,void 0,void 0,(function(){var rr,nr,ir,or,ar,sr,lr,cr,ur,dr,hr,pr;return __generator(this,(function(Ar){switch(Ar.label){case 0:return[4,tr.refsHandler.getRendered(this.key,(function(er){return er.apply(new Wm(tr.pdf,{refsHandler:tr.refsHandler,textMeasure:tr.textMeasure,styleSheets:tr.styleSheets,viewport:tr.viewport,svg2pdfParameters:tr.svg2pdfParameters}))}))];case 1:return Ar.sent(),rr={key:this.key,boundingBox:void 0,xStep:0,yStep:0,matrix:void 0},ir=tr.pdf.unitMatrix,this.pattern.element.hasAttribute("patternUnits")&&"objectboundingbox"!==this.pattern.element.getAttribute("patternUnits").toLowerCase()||(nr=er.getBoundingBox(tr),ir=tr.pdf.Matrix(1,0,0,1,nr[0],nr[1]),ar=this.pattern.getBoundingBox(tr),sr=ar[0]*nr[0]||0,lr=ar[1]*nr[1]||0,cr=ar[2]*nr[2]||0,ur=ar[3]*nr[3]||0,rr.boundingBox=[sr,lr,sr+cr,lr+ur],rr.xStep=cr,rr.yStep=ur),or=tr.pdf.unitMatrix,this.pattern.element.hasAttribute("patternContentUnits")&&"objectboundingbox"===this.pattern.element.getAttribute("patternContentUnits").toLowerCase()&&(nr||(nr=er.getBoundingBox(tr)),or=tr.pdf.Matrix(nr[2],0,0,nr[3],0,0),ar=rr.boundingBox||this.pattern.getBoundingBox(tr),sr=ar[0]/nr[0]||0,lr=ar[1]/nr[1]||0,cr=ar[2]/nr[2]||0,ur=ar[3]/nr[3]||0,rr.boundingBox=[sr,lr,sr+cr,lr+ur],rr.xStep=cr,rr.yStep=ur),dr=tr.pdf.unitMatrix,(hr=getAttribute(this.pattern.element,tr.styleSheets,"patternTransform","transform"))&&(dr=parseTransform(hr,tr)),pr=or,pr=tr.pdf.matrixMult(pr,ir),pr=tr.pdf.matrixMult(pr,dr),pr=tr.pdf.matrixMult(pr,tr.transform),rr.matrix=pr,[2,rr]}}))}))},PatternFill}();function parseAttributes(er,tr,rr){var nr=rr||tr.element,ir=getAttribute(nr,er.styleSheets,"visibility");ir&&(er.attributeState.visibility=ir);var or=getAttribute(nr,er.styleSheets,"fill");or&&(er.attributeState.fill=function parseFill(er,tr){var rr=zm.exec(er);if(rr){var nr=rr[1],ir=tr.refsHandler.get(nr);return ir&&(ir instanceof l_||ir instanceof c_)?new u_(nr,ir):ir&&ir instanceof d_?new h_(nr,ir):new Gm(new Hm("rgb(0, 0, 0)"))}var or=parseColor(er);return or.ok?new Gm(or):null}(or,er));var ar=getAttribute(nr,er.styleSheets,"fill-opacity");ar&&(er.attributeState.fillOpacity=parseFloat(ar));var sr=getAttribute(nr,er.styleSheets,"stroke-opacity");sr&&(er.attributeState.strokeOpacity=parseFloat(sr));var lr=getAttribute(nr,er.styleSheets,"opacity");lr&&(er.attributeState.opacity=parseFloat(lr));var cr=getAttribute(nr,er.styleSheets,"stroke-width");void 0!==cr&&""!==cr&&(cr=Math.abs(parseFloat(cr)),er.attributeState.strokeWidth=cr);var ur=getAttribute(nr,er.styleSheets,"stroke");if(ur)if("none"===ur)er.attributeState.stroke=null;else{var dr=parseColor(ur);dr.ok&&(er.attributeState.stroke=new Gm(dr))}var hr=getAttribute(nr,er.styleSheets,"stroke-linecap");hr&&(er.attributeState.strokeLinecap=hr);var pr=getAttribute(nr,er.styleSheets,"stroke-linejoin");pr&&(er.attributeState.strokeLinejoin=pr);var Ar=getAttribute(nr,er.styleSheets,"stroke-dasharray");if(Ar){Ar=parseFloats(Ar);var fr=parseInt(getAttribute(nr,er.styleSheets,"stroke-dashoffset")||"0");er.attributeState.strokeDasharray=Ar,er.attributeState.strokeDashoffset=fr}var gr=getAttribute(nr,er.styleSheets,"stroke-miterlimit");void 0!==gr&&""!==gr&&(er.attributeState.strokeMiterlimit=parseFloat(gr));var mr=nr.getAttribute("xml:space");mr&&(er.attributeState.xmlSpace=mr);var _r=getAttribute(nr,er.styleSheets,"font-weight");_r&&(er.attributeState.fontWeight=_r);var vr=getAttribute(nr,er.styleSheets,"font-style");vr&&(er.attributeState.fontStyle=vr);var yr=getAttribute(nr,er.styleSheets,"font-family");if(yr){var br=Bm(yr);er.attributeState.fontFamily=function findFirstAvailableFontFamily(er,tr,rr){var nr="";"bold"===er.fontWeight&&(nr="bold"),"italic"===er.fontStyle&&(nr+="italic"),""===nr&&(nr="normal");var ir=rr.pdf.getFontList(),or="";return tr.some((function(er){var tr=ir[er];return tr&&tr.indexOf(nr)>=0?(or=er,!0):(er=er.toLowerCase(),!!i_.hasOwnProperty(er)&&(or=er,!0))}))||(or="times"),or}(er.attributeState,br,er)}var wr=getAttribute(nr,er.styleSheets,"font-size");if(wr){var Sr=er.pdf.getFontSize();er.attributeState.fontSize=toPixels(wr,Sr)}var xr=getAttribute(nr,er.styleSheets,"vertical-align")||getAttribute(nr,er.styleSheets,"alignment-baseline");if(xr){var kr=xr.match(/(baseline|text-bottom|alphabetic|ideographic|middle|central|mathematical|text-top|bottom|center|top|hanging)/);kr&&(er.attributeState.alignmentBaseline=kr[0])}var Cr=getAttribute(nr,er.styleSheets,"text-anchor");Cr&&(er.attributeState.textAnchor=Cr)}function applyAttributes(er,tr,rr){var nr=1,ir=1;nr*=er.attributeState.fillOpacity,nr*=er.attributeState.opacity,er.attributeState.fill instanceof Gm&&void 0!==er.attributeState.fill.color.a&&(nr*=er.attributeState.fill.color.a),ir*=er.attributeState.strokeOpacity,ir*=er.attributeState.opacity,er.attributeState.stroke instanceof Gm&&void 0!==er.attributeState.stroke.color.a&&(ir*=er.attributeState.stroke.color.a);var or,ar,sr=nr<1,lr=ir<1;if(nodeIs(rr,"use")?(sr=!0,lr=!0,nr*=er.attributeState.fill?1:0,ir*=er.attributeState.stroke?1:0):er.withinUse&&(er.attributeState.fill!==tr.attributeState.fill?(sr=!0,nr*=er.attributeState.fill?1:0):sr&&!er.attributeState.fill&&(nr=0),er.attributeState.stroke!==tr.attributeState.stroke?(lr=!0,ir*=er.attributeState.stroke?1:0):lr&&!er.attributeState.stroke&&(ir=0)),sr||lr){var cr={};sr&&(cr.opacity=nr),lr&&(cr["stroke-opacity"]=ir),er.pdf.setGState(new l(cr))}if(er.attributeState.fill&&er.attributeState.fill!==tr.attributeState.fill&&er.attributeState.fill instanceof Gm&&er.attributeState.fill.color.ok&&!nodeIs(rr,"text")&&er.pdf.setFillColor(er.attributeState.fill.color.r,er.attributeState.fill.color.g,er.attributeState.fill.color.b),er.attributeState.strokeWidth!==tr.attributeState.strokeWidth&&er.pdf.setLineWidth(er.attributeState.strokeWidth),er.attributeState.stroke!==tr.attributeState.stroke&&er.attributeState.stroke instanceof Gm&&er.pdf.setDrawColor(er.attributeState.stroke.color.r,er.attributeState.stroke.color.g,er.attributeState.stroke.color.b),er.attributeState.strokeLinecap!==tr.attributeState.strokeLinecap&&er.pdf.setLineCap(er.attributeState.strokeLinecap),er.attributeState.strokeLinejoin!==tr.attributeState.strokeLinejoin&&er.pdf.setLineJoin(er.attributeState.strokeLinejoin),er.attributeState.strokeDasharray===tr.attributeState.strokeDasharray&&er.attributeState.strokeDashoffset===tr.attributeState.strokeDashoffset||!er.attributeState.strokeDasharray||er.pdf.setLineDashPattern(er.attributeState.strokeDasharray,er.attributeState.strokeDashoffset),er.attributeState.strokeMiterlimit!==tr.attributeState.strokeMiterlimit&&er.pdf.setLineMiterLimit(er.attributeState.strokeMiterlimit),er.attributeState.fontFamily!==tr.attributeState.fontFamily&&(or=i_.hasOwnProperty(er.attributeState.fontFamily)?i_[er.attributeState.fontFamily]:er.attributeState.fontFamily),er.attributeState.fill&&er.attributeState.fill!==tr.attributeState.fill&&er.attributeState.fill instanceof Gm&&er.attributeState.fill.color.ok){var ur=er.attributeState.fill.color;er.pdf.setTextColor(ur.r,ur.g,ur.b)}er.attributeState.fontWeight===tr.attributeState.fontWeight&&er.attributeState.fontStyle===tr.attributeState.fontStyle||(ar="","bold"===er.attributeState.fontWeight&&(ar="bold"),"italic"===er.attributeState.fontStyle&&(ar+="italic"),""===ar&&(ar="normal")),void 0===or&&void 0===ar||(void 0===or&&(or=i_.hasOwnProperty(er.attributeState.fontFamily)?i_[er.attributeState.fontFamily]:er.attributeState.fontFamily),er.pdf.setFont(or,ar)),er.attributeState.fontSize!==tr.attributeState.fontSize&&er.pdf.setFontSize(er.attributeState.fontSize*er.pdf.internal.scaleFactor)}function getClipPathNode(er,tr){var rr=getAttribute(er.element,tr.styleSheets,"clip-path");if(rr){var nr=zm.exec(rr);if(nr){var ir=nr[1];return tr.refsHandler.get(ir)||void 0}}}function applyClipPath(er,tr,rr){return __awaiter(this,void 0,void 0,(function(){var nr,ir;return __generator(this,(function(or){switch(or.label){case 0:return nr=rr.clone(),tr.element.hasAttribute("clipPathUnits")&&"objectboundingbox"===tr.element.getAttribute("clipPathUnits").toLowerCase()&&(ir=er.getBoundingBox(rr),nr.transform=rr.pdf.matrixMult(rr.pdf.Matrix(ir[2],0,0,ir[3],ir[0],ir[1]),rr.transform)),[4,tr.apply(nr)];case 1:return or.sent(),[2]}}))}))}var p_=function(er){function RenderedNode(){return null!==er&&er.apply(this,arguments)||this}return __extends(RenderedNode,er),RenderedNode.prototype.render=function(er){return __awaiter(this,void 0,void 0,(function(){var tr,rr,nr;return __generator(this,(function(ir){switch(ir.label){case 0:return this.isVisible("hidden"!==er.attributeState.visibility,er)?((tr=er.clone()).transform=tr.pdf.matrixMult(this.computeNodeTransform(tr),er.transform),parseAttributes(tr,this),(rr=this.element.hasAttribute("clip-path")&&"none"!==getAttribute(this.element,tr.styleSheets,"clip-path"))?(nr=getClipPathNode(this,tr))&&nr.isVisible(!0,tr)?(tr.pdf.saveGraphicsState(),[4,applyClipPath(this,nr,tr)]):[3,2]:[3,3]):[2];case 1:return ir.sent(),[3,3];case 2:return[2];case 3:return tr.withinClipPath||tr.pdf.saveGraphicsState(),applyAttributes(tr,er,this.element),[4,this.renderCore(tr)];case 4:return ir.sent(),tr.withinClipPath||tr.pdf.restoreGraphicsState(),rr&&tr.pdf.restoreGraphicsState(),[2]}}))}))},RenderedNode}(o_),A_=function(er){function GraphicsNode(){return null!==er&&er.apply(this,arguments)||this}return __extends(GraphicsNode,er),GraphicsNode}(p_),f_=function(er){function GeometryNode(tr,rr,nr){var ir=er.call(this,rr,nr)||this;return ir.cachedPath=null,ir.hasMarkers=tr,ir}return __extends(GeometryNode,er),GeometryNode.prototype.renderCore=function(er){return __awaiter(this,void 0,void 0,(function(){var tr;return __generator(this,(function(rr){switch(rr.label){case 0:return null===(tr=this.getCachedPath(er))||0===tr.segments.length?[2]:(er.withinClipPath?tr.transform(er.transform):er.pdf.setCurrentTransformationMatrix(er.transform),tr.draw(er),[4,this.fillOrStroke(er)]);case 1:return rr.sent(),this.hasMarkers?[4,this.drawMarkers(er,tr)]:[3,3];case 2:rr.sent(),rr.label=3;case 3:return[2]}}))}))},GeometryNode.prototype.getCachedPath=function(er){return this.cachedPath||(this.cachedPath=this.getPath(er))},GeometryNode.prototype.drawMarkers=function(er,tr){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(rr){switch(rr.label){case 0:return[4,this.getMarkers(tr,er).draw(er.clone({transform:er.pdf.unitMatrix}))];case 1:return rr.sent(),[2]}}))}))},GeometryNode.prototype.fillOrStroke=function(er){return __awaiter(this,void 0,void 0,(function(){var tr,rr,nr,ir,or;return __generator(this,(function(ar){switch(ar.label){case 0:return er.withinClipPath?[2]:(tr=er.attributeState.fill,rr=er.attributeState.stroke&&0!==er.attributeState.strokeWidth,tr?[4,tr.getFillData(this,er)]:[3,2]);case 1:return ir=ar.sent(),[3,3];case 2:ir=void 0,ar.label=3;case 3:return nr=ir,or="evenodd"===getAttribute(this.element,er.styleSheets,"fill-rule"),tr&&rr||er.withinUse?or?er.pdf.fillStrokeEvenOdd(nr):er.pdf.fillStroke(nr):tr?or?er.pdf.fillEvenOdd(nr):er.pdf.fill(nr):rr?er.pdf.stroke():er.pdf.discardPath(),[2]}}))}))},GeometryNode.prototype.getBoundingBoxCore=function(er){var tr=this.getCachedPath(er);if(!tr)return[0,0,0,0];for(var rr=Number.POSITIVE_INFINITY,nr=Number.POSITIVE_INFINITY,ir=Number.NEGATIVE_INFINITY,or=Number.NEGATIVE_INFINITY,ar=0,sr=0,lr=0;lr<tr.segments.length;lr++){var cr=tr.segments[lr];(cr instanceof $m||cr instanceof Zm||cr instanceof e_)&&(ar=cr.x,sr=cr.y),cr instanceof e_?(rr=Math.min(rr,ar,cr.x1,cr.x2,cr.x),ir=Math.max(ir,ar,cr.x1,cr.x2,cr.x),nr=Math.min(nr,sr,cr.y1,cr.y2,cr.y),or=Math.max(or,sr,cr.y1,cr.y2,cr.y)):(rr=Math.min(rr,ar),ir=Math.max(ir,ar),nr=Math.min(nr,sr),or=Math.max(or,sr))}return[rr,nr,ir-rr,or-nr]},GeometryNode.prototype.getMarkers=function(er,tr){var rr=getAttribute(this.element,tr.styleSheets,"marker-start"),nr=getAttribute(this.element,tr.styleSheets,"marker-mid"),ir=getAttribute(this.element,tr.styleSheets,"marker-end"),or=new r_;if(rr||nr||ir){ir&&(ir=iri(ir)),rr&&(rr=iri(rr)),nr&&(nr=iri(nr));for(var ar=er.segments,sr=[1,0],lr=void 0,cr=!1,ur=[1,0],dr=!1,hr=function _loop_1(er){var tr=ar[er],hr=rr&&(1===er||!(ar[er]instanceof $m)&&ar[er-1]instanceof $m);hr&&ar.forEach((function(tr,rr){if(!dr&&tr instanceof t_&&rr>er){var nr=ar[rr-1];dr=(nr instanceof $m||nr instanceof Zm||nr instanceof e_)&&nr}}));var pr=ir&&(er===ar.length-1||!(ar[er]instanceof $m)&&ar[er+1]instanceof $m),Ar=nr&&er>0&&!(1===er&&ar[er-1]instanceof $m),fr=ar[er-1]||null;if(fr instanceof $m||fr instanceof Zm||fr instanceof e_){if(tr instanceof e_)hr&&or.addMarker(new n_(rr,[fr.x,fr.y],getAngle(dr?[dr.x,dr.y]:[fr.x,fr.y],[tr.x1,tr.y1]))),pr&&or.addMarker(new n_(ir,[tr.x,tr.y],getAngle([tr.x2,tr.y2],[tr.x,tr.y]))),Ar&&(lr=getDirectionVector([fr.x,fr.y],[tr.x1,tr.y1]),lr=fr instanceof $m?lr:normalize$1(addVectors(sr,lr)),or.addMarker(new n_(nr,[fr.x,fr.y],Math.atan2(lr[1],lr[0])))),sr=getDirectionVector([tr.x2,tr.y2],[tr.x,tr.y]);else if(tr instanceof $m||tr instanceof Zm){if(lr=getDirectionVector([fr.x,fr.y],[tr.x,tr.y]),hr){var gr=dr?getDirectionVector([dr.x,dr.y],[tr.x,tr.y]):lr;or.addMarker(new n_(rr,[fr.x,fr.y],Math.atan2(gr[1],gr[0])))}if(pr&&or.addMarker(new n_(ir,[tr.x,tr.y],Math.atan2(lr[1],lr[0]))),Ar){gr=tr instanceof $m?sr:fr instanceof $m?lr:normalize$1(addVectors(sr,lr));or.addMarker(new n_(nr,[fr.x,fr.y],Math.atan2(gr[1],gr[0])))}sr=lr}else if(tr instanceof t_){if(lr=getDirectionVector([fr.x,fr.y],[cr.x,cr.y]),Ar){gr=fr instanceof $m?lr:normalize$1(addVectors(sr,lr));or.addMarker(new n_(nr,[fr.x,fr.y],Math.atan2(gr[1],gr[0])))}if(pr){gr=normalize$1(addVectors(lr,ur));or.addMarker(new n_(ir,[cr.x,cr.y],Math.atan2(gr[1],gr[0])))}sr=lr}}else{cr=tr instanceof $m&&tr;var mr=ar[er+1];(mr instanceof $m||mr instanceof Zm||mr instanceof e_)&&(ur=getDirectionVector([cr.x,cr.y],[mr.x,mr.y]))}},pr=0;pr<ar.length;pr++)hr(pr)}return or},GeometryNode}(A_);function iri(er){var tr=zm.exec(er);return tr&&tr[1]||void 0}var g_=function(er){function Line(tr,rr){return er.call(this,!0,tr,rr)||this}return __extends(Line,er),Line.prototype.getPath=function(er){if(er.withinClipPath||null===er.attributeState.stroke)return null;var tr=parseFloat(this.element.getAttribute("x1")||"0"),rr=parseFloat(this.element.getAttribute("y1")||"0"),nr=parseFloat(this.element.getAttribute("x2")||"0"),ir=parseFloat(this.element.getAttribute("y2")||"0");return tr||nr||rr||ir?(new Jm).moveTo(tr,rr).lineTo(nr,ir):null},Line.prototype.computeNodeTransformCore=function(er){return er.pdf.unitMatrix},Line.prototype.isVisible=function(er,tr){return svgNodeIsVisible(this,er,tr)},Line.prototype.fillOrStroke=function(tr){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(rr){switch(rr.label){case 0:return tr.attributeState.fill=null,[4,er.prototype.fillOrStroke.call(this,tr)];case 1:return rr.sent(),[2]}}))}))},Line}(f_),m_=function(er){function _Symbol(){return null!==er&&er.apply(this,arguments)||this}return __extends(_Symbol,er),_Symbol.prototype.apply=function(er){return __awaiter(this,void 0,void 0,(function(){var tr,rr,nr,ir;return __generator(this,(function(or){switch(or.label){case 0:return this.isVisible("hidden"!==er.attributeState.visibility,er)?((tr=er.clone()).transform=tr.pdf.unitMatrix,parseAttributes(tr,this),this.element.hasAttribute("clip-path")&&"none"!==getAttribute(this.element,tr.styleSheets,"clip-path")?(rr=getClipPathNode(this,tr))&&rr.isVisible(!0,tr)?[4,applyClipPath(this,rr,tr)]:[3,2]:[3,3]):[2];case 1:return or.sent(),[3,3];case 2:return[2];case 3:applyAttributes(tr,er,this.element),nr=0,ir=this.children,or.label=4;case 4:return nr<ir.length?[4,ir[nr].render(tr)]:[3,7];case 5:or.sent(),or.label=6;case 6:return nr++,[3,4];case 7:return[2]}}))}))},_Symbol.prototype.getBoundingBoxCore=function(er){return getBoundingBoxByChildren(er,this)},_Symbol.prototype.isVisible=function(er,tr){return svgNodeAndChildrenVisible(this,er,tr)},_Symbol.prototype.computeNodeTransformCore=function(er){var tr=parseFloat(getAttribute(this.element,er.styleSheets,"x")||"0"),rr=parseFloat(getAttribute(this.element,er.styleSheets,"y")||"0"),nr=this.element.getAttribute("viewBox");if(nr){var ir=parseFloats(nr),or=parseFloat(getAttribute(this.element,er.styleSheets,"width")||getAttribute(this.element.ownerSVGElement,er.styleSheets,"width")||nr[2]),ar=parseFloat(getAttribute(this.element,er.styleSheets,"height")||getAttribute(this.element.ownerSVGElement,er.styleSheets,"height")||nr[3]);return computeViewBoxTransform(this.element,ir,tr,rr,or,ar,er)}return er.pdf.Matrix(1,0,0,1,tr,rr)},_Symbol}(a_),v_=function v_(er,tr){this.width=er,this.height=tr},y_=function(er){function Use(){return null!==er&&er.apply(this,arguments)||this}return __extends(Use,er),Use.prototype.renderCore=function(er){return __awaiter(this,void 0,void 0,(function(){var tr,rr,nr,ir,or,ar,sr,lr,cr,ur,dr,hr;return __generator(this,(function(pr){switch(pr.label){case 0:return tr=parseFloat,(rr=this.element.getAttribute("href")||this.element.getAttribute("xlink:href"))?(nr=rr.substring(1),ir=er.refsHandler.get(nr),or=nodeIs(ir.element,"symbol,svg")&&ir.element.hasAttribute("viewBox"),ar=tr(getAttribute(this.element,er.styleSheets,"x")||"0"),sr=tr(getAttribute(this.element,er.styleSheets,"y")||"0"),lr=void 0,cr=void 0,or?(lr=tr(getAttribute(this.element,er.styleSheets,"width")||getAttribute(ir.element,er.styleSheets,"width")||"0"),cr=tr(getAttribute(this.element,er.styleSheets,"height")||getAttribute(ir.element,er.styleSheets,"height")||"0"),ar+=tr(getAttribute(ir.element,er.styleSheets,"x")||"0"),sr+=tr(getAttribute(ir.element,er.styleSheets,"y")||"0"),dr=parseFloats(ir.element.getAttribute("viewBox")),ur=computeViewBoxTransform(ir.element,dr,ar,sr,lr,cr,er)):ur=er.pdf.Matrix(1,0,0,1,ar,sr),hr=new Wm(er.pdf,{refsHandler:er.refsHandler,styleSheets:er.styleSheets,withinUse:!0,viewport:or?new v_(lr,cr):er.viewport,svg2pdfParameters:er.svg2pdfParameters}),[4,er.refsHandler.getRendered(nr,(function(er){return Use.renderReferencedNode(er,hr)}))]):[2];case 1:return pr.sent(),er.pdf.saveGraphicsState(),er.pdf.setCurrentTransformationMatrix(er.transform),or&&"visible"!==getAttribute(ir.element,er.styleSheets,"overflow")&&(er.pdf.rect(ar,sr,lr,cr),er.pdf.clip().discardPath()),er.pdf.doFormObject(nr,ur),er.pdf.restoreGraphicsState(),[2]}}))}))},Use.renderReferencedNode=function(er,tr){return __awaiter(this,void 0,void 0,(function(){var rr;return __generator(this,(function(nr){switch(nr.label){case 0:return rr=[(rr=er.getBoundingBox(tr))[0]-.5*rr[2],rr[1]-.5*rr[3],2*rr[2],2*rr[3]],tr.pdf.beginFormObject(rr[0],rr[1],rr[2],rr[3],tr.pdf.unitMatrix),er instanceof m_?[4,er.apply(tr)]:[3,2];case 1:return nr.sent(),[3,4];case 2:return[4,er.render(tr)];case 3:nr.sent(),nr.label=4;case 4:return tr.pdf.endFormObject(er.element.getAttribute("id")),[2]}}))}))},Use.prototype.getBoundingBoxCore=function(er){return defaultBoundingBox(this.element,er)},Use.prototype.isVisible=function(er,tr){return svgNodeIsVisible(this,er,tr)},Use.prototype.computeNodeTransformCore=function(er){return er.pdf.unitMatrix},Use}(A_),w_=function(er){function Rect(tr,rr){return er.call(this,!1,tr,rr)||this}return __extends(Rect,er),Rect.prototype.getPath=function(er){var tr=parseFloat(getAttribute(this.element,er.styleSheets,"width")||"0"),rr=parseFloat(getAttribute(this.element,er.styleSheets,"height")||"0");if(!isFinite(tr)||tr<=0||!isFinite(rr)||rr<=0)return null;var nr=getAttribute(this.element,er.styleSheets,"rx"),ir=getAttribute(this.element,er.styleSheets,"ry"),or=Math.min(parseFloat(nr||ir||"0"),.5*tr),ar=Math.min(parseFloat(ir||nr||"0"),.5*rr),sr=parseFloat(getAttribute(this.element,er.styleSheets,"x")||"0"),lr=parseFloat(getAttribute(this.element,er.styleSheets,"y")||"0"),cr=4/3*(Math.SQRT2-1);return 0===or&&0===ar?(new Jm).moveTo(sr,lr).lineTo(sr+tr,lr).lineTo(sr+tr,lr+rr).lineTo(sr,lr+rr).close():(new Jm).moveTo(sr+=or,lr).lineTo(sr+=tr-2*or,lr).curveTo(sr+or*cr,lr,sr+or,lr+(ar-ar*cr),sr+=or,lr+=ar).lineTo(sr,lr+=rr-2*ar).curveTo(sr,lr+ar*cr,sr-or*cr,lr+ar,sr-=or,lr+=ar).lineTo(sr+=2*or-tr,lr).curveTo(sr-or*cr,lr,sr-or,lr-ar*cr,sr-=or,lr-=ar).lineTo(sr,lr+=2*ar-rr).curveTo(sr,lr-ar*cr,sr+or*cr,lr-ar,sr+=or,lr-=ar).close()},Rect.prototype.computeNodeTransformCore=function(er){return er.pdf.unitMatrix},Rect.prototype.isVisible=function(er,tr){return svgNodeIsVisible(this,er,tr)},Rect}(f_),S_=function(er){function EllipseBase(tr,rr){return er.call(this,!1,tr,rr)||this}return __extends(EllipseBase,er),EllipseBase.prototype.getPath=function(er){var tr=this.getRx(er),rr=this.getRy(er);if(!isFinite(tr)||rr<=0||!isFinite(rr)||rr<=0)return null;var nr=parseFloat(getAttribute(this.element,er.styleSheets,"cx")||"0"),ir=parseFloat(getAttribute(this.element,er.styleSheets,"cy")||"0"),or=4/3*(Math.SQRT2-1)*tr,ar=4/3*(Math.SQRT2-1)*rr;return(new Jm).moveTo(nr+tr,ir).curveTo(nr+tr,ir-ar,nr+or,ir-rr,nr,ir-rr).curveTo(nr-or,ir-rr,nr-tr,ir-ar,nr-tr,ir).curveTo(nr-tr,ir+ar,nr-or,ir+rr,nr,ir+rr).curveTo(nr+or,ir+rr,nr+tr,ir+ar,nr+tr,ir)},EllipseBase.prototype.computeNodeTransformCore=function(er){return er.pdf.unitMatrix},EllipseBase.prototype.isVisible=function(er,tr){return svgNodeIsVisible(this,er,tr)},EllipseBase}(f_),x_=function(er){function Ellipse(tr,rr){return er.call(this,tr,rr)||this}return __extends(Ellipse,er),Ellipse.prototype.getRx=function(er){return parseFloat(getAttribute(this.element,er.styleSheets,"rx")||"0")},Ellipse.prototype.getRy=function(er){return parseFloat(getAttribute(this.element,er.styleSheets,"ry")||"0")},Ellipse}(S_);function getTextRenderingMode(er){var tr="invisible";return er.fill&&er.stroke?tr="fillThenStroke":er.fill?tr="fill":er.stroke&&(tr="stroke"),tr}function removeNewlines(er){return er.replace(/[\n\r]/g,"")}function replaceTabsBySpace(er){return er.replace(/[\t]/g," ")}function consolidateSpaces(er){return er.replace(/ +/g," ")}function transformText(er,tr,rr){switch(getAttribute(er,rr.styleSheets,"text-transform")){case"uppercase":return tr.toUpperCase();case"lowercase":return tr.toLowerCase();default:return tr}}function trimRight(er){return er.replace(/\s+$/,"")}var k_=function(){function TextChunk(er,tr,rr,nr){this.textNode=er,this.texts=[],this.textNodes=[],this.textAnchor=tr,this.originX=rr,this.originY=nr}return TextChunk.prototype.add=function(er,tr){this.texts.push(tr),this.textNodes.push(er)},TextChunk.prototype.put=function(er){var tr,rr,nr,ir=[],or=[],ar=[],sr=this.originX,lr=this.originY,cr=sr,ur=sr;for(tr=0;tr<this.textNodes.length;tr++){var dr=sr,hr=lr,pr=void 0;if("#text"===(rr=this.textNodes[tr]).nodeName)pr=er;else{parseAttributes(pr=er.clone(),this.textNode,rr);var Ar=getAttribute(rr,er.styleSheets,"stroke");Ar&&(nr=new Hm(Ar)).ok&&(pr.attributeState.stroke=new Gm(nr));var fr=getAttribute(rr,er.styleSheets,"stroke-width");void 0!==fr&&(pr.attributeState.strokeWidth=parseFloat(fr));var gr=rr.getAttribute("dx");null!==gr&&(dr+=toPixels(gr,pr.attributeState.fontSize));var mr=rr.getAttribute("dy");null!==mr&&(hr+=toPixels(mr,pr.attributeState.fontSize))}ar[tr]=pr,ir[tr]=dr,or[tr]=hr,sr=dr+er.textMeasure.measureTextWidth(this.texts[tr],pr.attributeState),lr=hr,cr=Math.min(cr,dr),ur=Math.max(ur,sr)}var _r=0;switch(this.textAnchor){case"start":_r=0;break;case"middle":_r=(ur-cr)/2;break;case"end":_r=ur-cr}for(tr=0;tr<this.textNodes.length;tr++){if("#text"!==(rr=this.textNodes[tr]).nodeName)if("hidden"===(getAttribute(rr,er.styleSheets,"visibility")||er.attributeState.visibility))continue;er.pdf.saveGraphicsState(),applyAttributes(ar[tr],er,rr);var vr=ar[tr].attributeState.alignmentBaseline,yr=getTextRenderingMode(ar[tr].attributeState);er.pdf.text(this.texts[tr],ir[tr]-_r,or[tr],{baseline:mapAlignmentBaseline(vr),angle:er.transform,renderingMode:"fill"===yr?void 0:yr}),er.pdf.restoreGraphicsState()}return[sr,lr]},TextChunk}(),C_=function(er){function TextNode(){return null!==er&&er.apply(this,arguments)||this}return __extends(TextNode,er),TextNode.prototype.renderCore=function(er){return __awaiter(this,void 0,void 0,(function(){var tr,rr,nr,ir,or,ar,sr,lr,cr,ur,dr,hr,pr,Ar,fr,gr,mr,_r,vr,yr,br,wr,Sr,xr,kr;return __generator(this,(function(Cr){if(er.pdf.saveGraphicsState(),tr=0,rr=er.pdf.getFontSize(),nr=toPixels(this.element.getAttribute("x"),rr),ir=toPixels(this.element.getAttribute("y"),rr),or=toPixels(this.element.getAttribute("dx"),rr),ar=toPixels(this.element.getAttribute("dy"),rr),sr=er.attributeState.visibility,0===(lr=this.element.childElementCount))xr=function transformXmlSpace(er,tr){return er=replaceTabsBySpace(er=removeNewlines(er)),"default"===tr.xmlSpace&&(er=consolidateSpaces(er=er.trim())),er}(this.element.textContent||"",er.attributeState),kr=transformText(this.element,xr,er),tr=er.textMeasure.getTextOffset(kr,er.attributeState),"visible"===sr&&(cr=er.attributeState.alignmentBaseline,ur=getTextRenderingMode(er.attributeState),er.pdf.text(kr,nr+or-tr,ir+ar,{baseline:mapAlignmentBaseline(cr),angle:er.transform,renderingMode:"fill"===ur?void 0:ur}));else{for(dr=new k_(this,er.attributeState.textAnchor,nr+or,ir+ar),hr=0;hr<this.element.childNodes.length;hr++)if((pr=this.element.childNodes[hr]).textContent){if(Ar=er.attributeState.xmlSpace,fr=pr.textContent,"#text"===pr.nodeName);else{if(nodeIs(pr,"title"))continue;if(nodeIs(pr,"tspan")){if((gr=pr).childElementCount>0)for(fr="",mr=0;mr<gr.childNodes.length;mr++)"#text"===gr.childNodes[mr].nodeName&&(fr+=gr.childNodes[mr].textContent);_r=void 0,null!==(vr=gr.getAttribute("x"))&&(yr=toPixels(vr,rr),_r=dr.put(er),dr=new k_(this,getAttribute(gr,er.styleSheets,"text-anchor")||er.attributeState.textAnchor,yr,_r[1])),null!==(br=gr.getAttribute("y"))&&(wr=toPixels(br,rr),_r=dr.put(er),dr=new k_(this,getAttribute(gr,er.styleSheets,"text-anchor")||er.attributeState.textAnchor,_r[0],wr)),(Sr=gr.getAttribute("xml:space"))&&(Ar=Sr)}}xr=replaceTabsBySpace(xr=removeNewlines(fr)),"default"===Ar&&(0===hr&&(xr=xr.replace(/^\s+/,"")),hr===lr-1&&(xr=trimRight(xr)),xr=consolidateSpaces(xr)),kr=transformText(this.element,xr,er),dr.add(pr,kr)}dr.put(er)}return er.pdf.restoreGraphicsState(),[2]}))}))},TextNode.prototype.isVisible=function(er,tr){return svgNodeAndChildrenVisible(this,er,tr)},TextNode.prototype.getBoundingBoxCore=function(er){return defaultBoundingBox(this.element,er)},TextNode.prototype.computeNodeTransformCore=function(er){return er.pdf.unitMatrix},TextNode}(A_),B_=function(er){function PathNode(tr,rr){return er.call(this,!0,tr,rr)||this}return __extends(PathNode,er),PathNode.prototype.computeNodeTransformCore=function(er){return er.pdf.unitMatrix},PathNode.prototype.isVisible=function(er,tr){return svgNodeIsVisible(this,er,tr)},PathNode.prototype.getPath=function(er){var tr,rr,nr=new Om(getAttribute(this.element,er.styleSheets,"d")||"").unshort().unarc().abs(),ir=new Jm;return nr.iterate((function(er,nr){var or=er[0];switch(or){case"M":ir.moveTo(er[1],er[2]);break;case"L":ir.lineTo(er[1],er[2]);break;case"H":ir.lineTo(er[1],rr);break;case"V":ir.lineTo(tr,er[1]);break;case"C":ir.curveTo(er[1],er[2],er[3],er[4],er[5],er[6]);break;case"Q":var ar=toCubic([tr,rr],[er[1],er[2]]),sr=toCubic([er[3],er[4]],[er[1],er[2]]);ir.curveTo(ar[0],ar[1],sr[0],sr[1],er[3],er[4]);break;case"Z":ir.close()}switch(or){case"M":case"L":tr=er[1],rr=er[2];break;case"H":tr=er[1];break;case"V":rr=er[1];break;case"C":tr=er[5],rr=er[6];break;case"Q":tr=er[3],rr=er[4]}})),ir},PathNode}(f_),E_=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*\s*)$/i,N_=function(er){function ImageNode(tr,rr){var nr=er.call(this,tr,rr)||this;return nr.imageLoadingPromise=null,nr.imageUrl=nr.element.getAttribute("xlink:href")||nr.element.getAttribute("href"),nr.imageUrl&&(nr.imageLoadingPromise=ImageNode.fetchImageData(nr.imageUrl)),nr}return __extends(ImageNode,er),ImageNode.prototype.renderCore=function(er){return __awaiter(this,void 0,void 0,(function(){var tr,rr,nr,ir,or,ar,sr,lr,cr,ur,dr,hr;return __generator(this,(function(pr){switch(pr.label){case 0:return this.imageLoadingPromise?(er.pdf.setCurrentTransformationMatrix(er.transform),tr=parseFloat(getAttribute(this.element,er.styleSheets,"width")||"0"),rr=parseFloat(getAttribute(this.element,er.styleSheets,"height")||"0"),nr=parseFloat(getAttribute(this.element,er.styleSheets,"x")||"0"),ir=parseFloat(getAttribute(this.element,er.styleSheets,"y")||"0"),!isFinite(tr)||tr<=0||!isFinite(rr)||rr<=0?[2]:[4,this.imageLoadingPromise]):[2];case 1:return or=pr.sent(),ar=or.data,0!==(sr=or.format).indexOf("svg")?[3,3]:(lr=new DOMParser,cr=lr.parseFromString(ar,"image/svg+xml").firstElementChild,(!(ur=this.element.getAttribute("preserveAspectRatio"))||ur.indexOf("defer")<0||!cr.getAttribute("preserveAspectRatio"))&&cr.setAttribute("preserveAspectRatio",ur||""),cr.setAttribute("x",String(nr)),cr.setAttribute("y",String(ir)),cr.setAttribute("width",String(tr)),cr.setAttribute("height",String(rr)),[4,parse$1(cr,dr={}).render(new Wm(er.pdf,{refsHandler:new Xm(dr),styleSheets:er.styleSheets,viewport:new v_(tr,rr),svg2pdfParameters:er.svg2pdfParameters}))]);case 2:return pr.sent(),[2];case 3:hr="data:image/"+sr+";base64,"+btoa(ar);try{er.pdf.addImage(hr,"",nr,ir,tr,rr)}catch(er){"object"===("undefined"==typeof console?"undefined":_typeof(console))&&console.warn&&console.warn("Could not load image "+this.imageUrl+".\n"+er)}pr.label=4;case 4:return[2]}}))}))},ImageNode.prototype.getBoundingBoxCore=function(er){return defaultBoundingBox(this.element,er)},ImageNode.prototype.computeNodeTransformCore=function(er){return er.pdf.unitMatrix},ImageNode.prototype.isVisible=function(er,tr){return svgNodeIsVisible(this,er,tr)},ImageNode.fetchImageData=function(er){return __awaiter(this,void 0,void 0,(function(){var tr,rr,nr,ir,or;return __generator(this,(function(ar){switch(ar.label){case 0:if(!(nr=er.match(E_)))return[3,1];if(ir=nr[2],"image"!==(or=ir.split("/"))[0])throw new Error("Unsupported image URL: "+er);return rr=or[1],tr=nr[5],tr="base64"===nr[4]?atob(tr):decodeURIComponent(tr),[3,3];case 1:return[4,ImageNode.fetchImage(er)];case 2:tr=ar.sent(),rr=er.substring(er.lastIndexOf(".")+1),ar.label=3;case 3:return[2,{data:tr,format:rr}]}}))}))},ImageNode.fetchImage=function(er){return new Promise((function(tr,rr){var nr=new XMLHttpRequest;nr.open("GET",er,!0),nr.responseType="arraybuffer",nr.onload=function(){if(200!==nr.status)throw new Error("Error "+nr.status+": Failed to load image '"+er+"'");for(var rr=new Uint8Array(nr.response),ir="",or=0;or<rr.length;or++)ir+=String.fromCharCode(rr[or]);tr(ir)},nr.onerror=rr,nr.onabort=rr,nr.send(null)}))},ImageNode.getMimeType=function(er){switch(er=er.toLowerCase()){case"jpg":case"jpeg":return"image/jpeg";default:return"image/"+er}},ImageNode}(A_),L_=function(er){function Traverse(tr,rr,nr){var ir=er.call(this,!0,rr,nr)||this;return ir.closed=tr,ir}return __extends(Traverse,er),Traverse.prototype.getPath=function(er){if(!this.element.hasAttribute("points")||""===this.element.getAttribute("points"))return null;var tr=Traverse.parsePointsString(this.element.getAttribute("points")),rr=new Jm;if(tr.length<1)return rr;rr.moveTo(tr[0][0],tr[0][1]);for(var nr=1;nr<tr.length;nr++)rr.lineTo(tr[nr][0],tr[nr][1]);return this.closed&&rr.close(),rr},Traverse.prototype.isVisible=function(er,tr){return svgNodeIsVisible(this,er,tr)},Traverse.prototype.computeNodeTransformCore=function(er){return er.pdf.unitMatrix},Traverse.parsePointsString=function(er){for(var tr=parseFloats(er),rr=[],nr=0;nr<tr.length-1;nr+=2){var ir=tr[nr],or=tr[nr+1];rr.push([ir,or])}return rr},Traverse}(f_),T_=function(er){function Polygon(tr,rr){return er.call(this,!0,tr,rr)||this}return __extends(Polygon,er),Polygon}(L_),P_=function(er){function VoidNode(){return null!==er&&er.apply(this,arguments)||this}return __extends(VoidNode,er),VoidNode.prototype.render=function(er){return Promise.resolve()},VoidNode.prototype.getBoundingBoxCore=function(er){return[0,0,0,0]},VoidNode.prototype.computeNodeTransformCore=function(er){return er.pdf.unitMatrix},VoidNode.prototype.isVisible=function(er,tr){return svgNodeIsVisible(this,er,tr)},VoidNode}(o_),F_=function(er){function MarkerNode(){return null!==er&&er.apply(this,arguments)||this}return __extends(MarkerNode,er),MarkerNode.prototype.apply=function(er){return __awaiter(this,void 0,void 0,(function(){var tr,rr,nr,ir;return __generator(this,(function(or){switch(or.label){case 0:tr=this.computeNodeTransform(er),rr=this.getBoundingBox(er),er.pdf.beginFormObject(rr[0],rr[1],rr[2],rr[3],tr),nr=0,ir=this.children,or.label=1;case 1:return nr<ir.length?[4,ir[nr].render(new Wm(er.pdf,{refsHandler:er.refsHandler,styleSheets:er.styleSheets,viewport:er.viewport,svg2pdfParameters:er.svg2pdfParameters}))]:[3,4];case 2:or.sent(),or.label=3;case 3:return nr++,[3,1];case 4:return er.pdf.endFormObject(this.element.getAttribute("id")),[2]}}))}))},MarkerNode.prototype.getBoundingBoxCore=function(er){var tr,rr=this.element.getAttribute("viewBox");return rr&&(tr=parseFloats(rr)),[tr&&tr[0]||0,tr&&tr[1]||0,tr&&tr[2]||parseFloat(this.element.getAttribute("marker-width")||"0"),tr&&tr[3]||parseFloat(this.element.getAttribute("marker-height")||"0")]},MarkerNode.prototype.computeNodeTransformCore=function(er){var tr,rr=parseFloat(this.element.getAttribute("refX")||"0"),nr=parseFloat(this.element.getAttribute("refY")||"0"),ir=this.element.getAttribute("viewBox");if(ir){var or=parseFloats(ir);tr=computeViewBoxTransform(this.element,or,0,0,parseFloat(this.element.getAttribute("markerWidth")||"3"),parseFloat(this.element.getAttribute("markerHeight")||"3"),er,!0),tr=er.pdf.matrixMult(er.pdf.Matrix(1,0,0,1,-rr,-nr),tr)}else tr=er.pdf.Matrix(1,0,0,1,-rr,-nr);return tr},MarkerNode.prototype.isVisible=function(er,tr){return svgNodeAndChildrenVisible(this,er,tr)},MarkerNode}(a_),U_=function(er){function Circle(tr,rr){return er.call(this,tr,rr)||this}return __extends(Circle,er),Circle.prototype.getR=function(er){var tr;return null!==(tr=this.r)&&void 0!==tr?tr:this.r=parseFloat(getAttribute(this.element,er.styleSheets,"r")||"0")},Circle.prototype.getRx=function(er){return this.getR(er)},Circle.prototype.getRy=function(er){return this.getR(er)},Circle}(S_),I_=function(er){function Polyline(tr,rr){return er.call(this,!1,tr,rr)||this}return __extends(Polyline,er),Polyline}(L_),R_=function(er){function ContainerNode(){return null!==er&&er.apply(this,arguments)||this}return __extends(ContainerNode,er),ContainerNode.prototype.renderCore=function(er){return __awaiter(this,void 0,void 0,(function(){var tr,rr;return __generator(this,(function(nr){switch(nr.label){case 0:tr=0,rr=this.children,nr.label=1;case 1:return tr<rr.length?[4,rr[tr].render(er)]:[3,4];case 2:nr.sent(),nr.label=3;case 3:return tr++,[3,1];case 4:return[2]}}))}))},ContainerNode.prototype.getBoundingBoxCore=function(er){return getBoundingBoxByChildren(er,this)},ContainerNode}(p_),M_=function(er){function Svg(){return null!==er&&er.apply(this,arguments)||this}return __extends(Svg,er),Svg.prototype.isVisible=function(er,tr){return svgNodeAndChildrenVisible(this,er,tr)},Svg.prototype.render=function(tr){return __awaiter(this,void 0,void 0,(function(){var rr,nr,ir,or,ar;return __generator(this,(function(sr){switch(sr.label){case 0:return this.isVisible("hidden"!==tr.attributeState.visibility,tr)?(rr=this.getX(tr),nr=this.getY(tr),ir=this.getWidth(tr),or=this.getHeight(tr),tr.pdf.saveGraphicsState(),ar=tr.transform,this.element.hasAttribute("transform")&&(ar=tr.pdf.matrixMult(parseTransform(this.element.getAttribute("transform"),tr),ar)),tr.pdf.setCurrentTransformationMatrix(ar),tr.withinUse||"visible"===getAttribute(this.element,tr.styleSheets,"overflow")||tr.pdf.rect(rr,nr,ir,or).clip().discardPath(),[4,er.prototype.render.call(this,tr.clone({transform:tr.pdf.unitMatrix,viewport:tr.withinUse?tr.viewport:new v_(ir,or)}))]):[2];case 1:return sr.sent(),tr.pdf.restoreGraphicsState(),[2]}}))}))},Svg.prototype.computeNodeTransform=function(er){return this.computeNodeTransformCore(er)},Svg.prototype.computeNodeTransformCore=function(er){if(er.withinUse)return er.pdf.unitMatrix;var tr,rr=this.getX(er),nr=this.getY(er),ir=this.getViewBox();if(ir){var or=this.getWidth(er),ar=this.getHeight(er);tr=computeViewBoxTransform(this.element,ir,rr,nr,or,ar,er)}else tr=er.pdf.Matrix(1,0,0,1,rr,nr);return tr},Svg.prototype.getWidth=function(er){if(void 0!==this.width)return this.width;var tr,rr,nr=er.svg2pdfParameters;if(this.isOutermostSvg(er))if(null!=nr.width)tr=nr.width;else if(rr=getAttribute(this.element,er.styleSheets,"width"))tr=parseFloat(rr);else{var ir=this.getViewBox();if(ir&&(null!=nr.height||getAttribute(this.element,er.styleSheets,"height"))){var or=ir[2]/ir[3];tr=this.getHeight(er)*or}else tr=Math.min(300,er.viewport.width,2*er.viewport.height)}else tr=(rr=getAttribute(this.element,er.styleSheets,"width"))?parseFloat(rr):er.viewport.width;return this.width=tr},Svg.prototype.getHeight=function(er){if(void 0!==this.height)return this.height;var tr,rr,nr=er.svg2pdfParameters;if(this.isOutermostSvg(er))if(null!=nr.height)tr=nr.height;else if(rr=getAttribute(this.element,er.styleSheets,"height"))tr=parseFloat(rr);else{var ir=this.getViewBox();if(ir){var or=ir[2]/ir[3];tr=this.getWidth(er)/or}else tr=Math.min(150,er.viewport.width/2,er.viewport.height)}else tr=(rr=getAttribute(this.element,er.styleSheets,"height"))?parseFloat(rr):er.viewport.height;return this.height=tr},Svg.prototype.getX=function(er){if(void 0!==this.x)return this.x;if(this.isOutermostSvg(er))return this.x=0;var tr=getAttribute(this.element,er.styleSheets,"x");return this.x=tr?parseFloat(tr):0},Svg.prototype.getY=function(er){if(void 0!==this.y)return this.y;if(this.isOutermostSvg(er))return this.y=0;var tr=getAttribute(this.element,er.styleSheets,"y");return this.y=tr?parseFloat(tr):0},Svg.prototype.getViewBox=function(){if(void 0!==this.viewBox)return this.viewBox;var er=this.element.getAttribute("viewBox");return this.viewBox=er?parseFloats(er):void 0},Svg.prototype.isOutermostSvg=function(er){return er.svg2pdfParameters.element===this.element},Svg}(R_),O_=function(er){function Group(){return null!==er&&er.apply(this,arguments)||this}return __extends(Group,er),Group.prototype.isVisible=function(er,tr){return svgNodeAndChildrenVisible(this,er,tr)},Group.prototype.computeNodeTransformCore=function(er){return er.pdf.unitMatrix},Group}(R_),Q_=function(er){function ClipPath(){return null!==er&&er.apply(this,arguments)||this}return __extends(ClipPath,er),ClipPath.prototype.apply=function(er){return __awaiter(this,void 0,void 0,(function(){var tr,rr,nr;return __generator(this,(function(ir){switch(ir.label){case 0:if(!this.isVisible(!0,er))return[2];tr=er.pdf.matrixMult(this.computeNodeTransform(er),er.transform),er.pdf.setCurrentTransformationMatrix(tr),rr=0,nr=this.children,ir.label=1;case 1:return rr<nr.length?[4,nr[rr].render(new Wm(er.pdf,{refsHandler:er.refsHandler,styleSheets:er.styleSheets,viewport:er.viewport,withinClipPath:!0,svg2pdfParameters:er.svg2pdfParameters}))]:[3,4];case 2:ir.sent(),ir.label=3;case 3:return rr++,[3,1];case 4:return er.pdf.clip().discardPath(),er.pdf.setCurrentTransformationMatrix(tr.inversed()),[2]}}))}))},ClipPath.prototype.getBoundingBoxCore=function(er){return getBoundingBoxByChildren(er,this)},ClipPath.prototype.isVisible=function(er,tr){return svgNodeAndChildrenVisible(this,er,tr)},ClipPath}(a_);function parse$1(er,tr){var rr,nr=[];switch(function forEachChild(er,tr){for(var rr=[],nr=0;nr<er.childNodes.length;nr++){var ir=er.childNodes[nr];"#"!==ir.nodeName.charAt(0)&&rr.push(ir)}for(nr=0;nr<rr.length;nr++)tr(nr,rr[nr])}(er,(function(er,rr){return nr.push(parse$1(rr,tr))})),er.tagName.toLowerCase()){case"a":case"g":rr=new O_(er,nr);break;case"circle":rr=new U_(er,nr);break;case"clippath":rr=new Q_(er,nr);break;case"ellipse":rr=new x_(er,nr);break;case"lineargradient":rr=new l_(er,nr);break;case"image":rr=new N_(er,nr);break;case"line":rr=new g_(er,nr);break;case"marker":rr=new F_(er,nr);break;case"path":rr=new B_(er,nr);break;case"pattern":rr=new d_(er,nr);break;case"polygon":rr=new T_(er,nr);break;case"polyline":rr=new I_(er,nr);break;case"radialgradient":rr=new c_(er,nr);break;case"rect":rr=new w_(er,nr);break;case"svg":rr=new M_(er,nr);break;case"symbol":rr=new m_(er,nr);break;case"text":rr=new C_(er,nr);break;case"use":rr=new y_(er,nr);break;default:rr=new P_(er,nr)}if(null!=tr&&rr.element.hasAttribute("id")){var ir=xm(rr.element.id,{isIdentifier:!0});tr[ir]=tr[ir]||rr}return rr}var D_=function(){function StyleSheets(er,tr){this.rootSvg=er,this.loadExternalSheets=tr,this.styleSheets=[]}return StyleSheets.prototype.load=function(){return __awaiter(this,void 0,void 0,(function(){var er;return __generator(this,(function(tr){switch(tr.label){case 0:return[4,this.collectStyleSheetTexts()];case 1:return er=tr.sent(),this.parseCssSheets(er),[2]}}))}))},StyleSheets.prototype.collectStyleSheetTexts=function(){return __awaiter(this,void 0,void 0,(function(){var er,tr,rr,nr,ir;return __generator(this,(function(or){switch(or.label){case 0:if(er=[],this.loadExternalSheets&&this.rootSvg.ownerDocument)for(nr=0;nr<this.rootSvg.ownerDocument.childNodes.length;nr++)"xml-stylesheet"===(tr=this.rootSvg.ownerDocument.childNodes[nr]).nodeName&&"string"==typeof tr.data&&er.push(StyleSheets.loadSheet(tr.data.match(/href=["'].*?["']/)[0].split("=")[1].slice(1,-1)));for(rr=this.rootSvg.querySelectorAll("style,link"),nr=0;nr<rr.length;nr++)nodeIs(ir=rr[nr],"style")?er.push(ir.textContent):this.loadExternalSheets&&nodeIs(ir,"link")&&"stylesheet"===ir.getAttribute("rel")&&ir.hasAttribute("href")&&er.push(StyleSheets.loadSheet(ir.getAttribute("href")));return[4,Promise.all(er)];case 1:return[2,or.sent().filter((function(er){return null!==er}))]}}))}))},StyleSheets.prototype.parseCssSheets=function(er){for(var tr=document.implementation.createHTMLDocument(""),rr=0,nr=er;rr<nr.length;rr++){var ir=nr[rr],or=tr.createElement("style");or.textContent=ir,tr.body.appendChild(or);var ar=or.sheet;if(ar instanceof CSSStyleSheet){for(var sr=ar.cssRules.length-1;sr>=0;sr--){var lr=ar.cssRules[sr];lr instanceof CSSStyleRule||ar.deleteRule(sr);var cr=lr;if(cr.selectorText.indexOf(",")>=0){ar.deleteRule(sr);for(var ur=cr.cssText.substring(cr.selectorText.length),dr=StyleSheets.splitSelectorAtCommas(cr.selectorText),hr=0;hr<dr.length;hr++)ar.insertRule(dr[hr]+ur,sr+hr)}}this.styleSheets.push(ar)}}},StyleSheets.splitSelectorAtCommas=function(er){for(var tr,rr=/,|["']/g,nr=/[^\\]["]/g,ir=/[^\\][']/g,or=[],ar="initial",sr=-1,lr=nr,cr=0;cr<er.length;)switch(ar){case"initial":rr.lastIndex=cr,(tr=rr.exec(er))?(","===tr[0]?(or.push(er.substring(sr+1,rr.lastIndex-1).trim()),sr=rr.lastIndex-1):(ar="withinQuotes",lr='"'===tr[0]?nr:ir),cr=rr.lastIndex):(or.push(er.substring(sr+1).trim()),cr=er.length);break;case"withinQuotes":lr.lastIndex=cr,(tr=lr.exec(er))&&(cr=lr.lastIndex,ar="initial")}return or},StyleSheets.loadSheet=function(er){return new Promise((function(tr,rr){var nr=new XMLHttpRequest;nr.open("GET",er,!0),nr.responseType="text",nr.onload=function(){200!==nr.status&&rr(new Error("Error "+nr.status+": Failed to load '"+er+"'")),tr(nr.responseText)},nr.onerror=rr,nr.onabort=rr,nr.send(null)})).catch((function(){return null}))},StyleSheets.prototype.getPropertyValue=function(er,tr){for(var rr=[],nr=0,ir=this.styleSheets;nr<ir.length;nr++)for(var or=ir[nr],ar=0;ar<or.cssRules.length;ar++){var sr=or.cssRules[ar];sr.style.getPropertyValue(tr)&&er.matches(sr.selectorText)&&rr.push(sr)}if(0!==rr.length){var lr=function compare$1(er,rr){var nr=er.style.getPropertyPriority(tr);return nr!==rr.style.getPropertyPriority(tr)?"important"===nr?1:-1:function compare(er,tr){var rr,nr,ir;if("string"==typeof er){if(-1!==er.indexOf(","))throw"Invalid CSS selector";rr=Qm(er).specificityArray}else{if(!Array.isArray(er))throw"Invalid CSS selector or specificity array";if(4!==er.filter((function(er){return"number"==typeof er})).length)throw"Invalid specificity array";rr=er}if("string"==typeof tr){if(-1!==tr.indexOf(","))throw"Invalid CSS selector";nr=Qm(tr).specificityArray}else{if(!Array.isArray(tr))throw"Invalid CSS selector or specificity array";if(4!==tr.filter((function(er){return"number"==typeof er})).length)throw"Invalid specificity array";nr=tr}for(ir=0;ir<4;ir+=1){if(rr[ir]<nr[ir])return-1;if(rr[ir]>nr[ir])return 1}return 0}(er.selectorText,rr.selectorText)};return rr.reduce((function(er,tr){return 1===lr(er,tr)?er:tr})).style.getPropertyValue(tr)||void 0}},StyleSheets}();function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}g.API.svg=function(er,tr){return void 0===tr&&(tr={}),function svg2pdf(er,tr,rr){var nr,ir,or;return void 0===rr&&(rr={}),__awaiter(this,void 0,void 0,(function(){var ar,sr,lr,cr,ur,dr,hr,pr,Ar,fr;return __generator(this,(function(gr){switch(gr.label){case 0:return ar=null!==(nr=rr.x)&&void 0!==nr?nr:0,sr=null!==(ir=rr.y)&&void 0!==ir?ir:0,lr=null!==(or=rr.loadExternalStyleSheets)&&void 0!==or&&or,ur=new Xm(cr={}),[4,(dr=new D_(er,lr)).load()];case 1:return gr.sent(),hr=new v_(tr.internal.pageSize.getWidth(),tr.internal.pageSize.getHeight()),pr=jm(jm({},rr),{element:er}),Ar=new Wm(tr,{refsHandler:ur,styleSheets:dr,viewport:hr,svg2pdfParameters:pr}),tr.advancedAPI(),tr.saveGraphicsState(),tr.setCurrentTransformationMatrix(tr.Matrix(1,0,0,1,ar,sr)),tr.setLineWidth(Ar.attributeState.strokeWidth),fr=Ar.attributeState.fill.color,tr.setFillColor(fr.r,fr.g,fr.b),tr.setFont(Ar.attributeState.fontFamily),tr.setFontSize(Ar.attributeState.fontSize*tr.internal.scaleFactor),[4,parse$1(er,cr).render(Ar)];case 2:return gr.sent(),tr.restoreGraphicsState(),tr.compatAPI(),Ar.textMeasure.cleanupTextMeasuring(),[2,tr]}}))}))}(er,this,tr)};var j_=defaultSetTimout,H_=defaultClearTimeout;function runTimeout(er){if(j_===setTimeout)return setTimeout(er,0);if((j_===defaultSetTimout||!j_)&&setTimeout)return j_=setTimeout,setTimeout(er,0);try{return j_(er,0)}catch(tr){try{return j_.call(null,er,0)}catch(tr){return j_.call(this,er,0)}}}"function"==typeof Nf.setTimeout&&(j_=setTimeout),"function"==typeof Nf.clearTimeout&&(H_=clearTimeout);var G_,V_=[],z_=!1,K_=-1;function cleanUpNextTick(){z_&&G_&&(z_=!1,G_.length?V_=G_.concat(V_):K_=-1,V_.length&&drainQueue())}function drainQueue(){if(!z_){var er=runTimeout(cleanUpNextTick);z_=!0;for(var tr=V_.length;tr;){for(G_=V_,V_=[];++K_<tr;)G_&&G_[K_].run();K_=-1,tr=V_.length}G_=null,z_=!1,function runClearTimeout(er){if(H_===clearTimeout)return clearTimeout(er);if((H_===defaultClearTimeout||!H_)&&clearTimeout)return H_=clearTimeout,clearTimeout(er);try{return H_(er)}catch(tr){try{return H_.call(null,er)}catch(tr){return H_.call(this,er)}}}(er)}}function Item(er,tr){this.fun=er,this.array=tr}Item.prototype.run=function(){this.fun.apply(null,this.array)};function noop(){}var q_=noop,W_=noop,X_=noop,Y_=noop,J_=noop,$_=noop,Z_=noop;var ev=Nf.performance||{},tv=ev.now||ev.mozNow||ev.msNow||ev.oNow||ev.webkitNow||function(){return(new Date).getTime()};var rv=new Date;var nv={nextTick:function nextTick(er){var tr=new Array(arguments.length-1);if(arguments.length>1)for(var rr=1;rr<arguments.length;rr++)tr[rr-1]=arguments[rr];V_.push(new Item(er,tr)),1!==V_.length||z_||runTimeout(drainQueue)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:q_,addListener:W_,once:X_,off:Y_,removeListener:J_,removeAllListeners:$_,emit:Z_,binding:function binding(er){throw new Error("process.binding is not supported")},cwd:function cwd(){return"/"},chdir:function chdir(er){throw new Error("process.chdir is not supported")},umask:function umask(){return 0},hrtime:function hrtime(er){var tr=.001*tv.call(ev),rr=Math.floor(tr),nr=Math.floor(tr%1*1e9);return er&&(rr-=er[0],(nr-=er[1])<0&&(rr--,nr+=1e9)),[rr,nr]},platform:"browser",release:{},config:{},uptime:function uptime(){return(new Date-rv)/1e3}},iv=!fails((function(){return Object.isExtensible(Object.preventExtensions({}))})),ov=createCommonjsModule((function(er){var tr=gr.f,rr=uid("meta"),nr=0,ir=Object.isExtensible||function(){return!0},setMetadata=function(er){tr(er,rr,{value:{objectID:"O"+ ++nr,weakData:{}}})},or=er.exports={REQUIRED:!1,fastKey:function(er,tr){if(!isObject(er))return"symbol"==typeof er?er:("string"==typeof er?"S":"P")+er;if(!has(er,rr)){if(!ir(er))return"F";if(!tr)return"E";setMetadata(er)}return er[rr].objectID},getWeakData:function(er,tr){if(!has(er,rr)){if(!ir(er))return!0;if(!tr)return!1;setMetadata(er)}return er[rr].weakData},onFreeze:function(er){return iv&&or.REQUIRED&&ir(er)&&!has(er,rr)&&setMetadata(er),er}};Lr[rr]=!0})),av=ov.onFreeze,sv=Object.freeze,lv=fails((function(){sv(1)}));_export({target:"Object",stat:!0,forced:lv,sham:!iv},{freeze:function freeze(er){return sv&&isObject(er)?sv(av(er)):er}}),_export({global:!0},{globalThis:tr});var uv=function check(er){return er&&er.Math==Math&&er},dv=uv("object"==("undefined"==typeof globalThis?"undefined":_typeof(globalThis))&&globalThis)||uv("object"==("undefined"==typeof window?"undefined":_typeof(window))&&window)||uv("object"==("undefined"==typeof self?"undefined":_typeof(self))&&self)||uv("object"==_typeof(er)&&er)||Function("return this")(),hv=function fails(er){try{return!!er()}catch(er){return!0}},pv=!hv((function(){return 7!=Object.defineProperty({},1,{get:function get(){return 7}})[1]})),Av={}.propertyIsEnumerable,fv=Object.getOwnPropertyDescriptor,gv={f:fv&&!Av.call({1:2},1)?function propertyIsEnumerable(er){var tr=fv(this,er);return!!tr&&tr.enumerable}:Av},mv=function createPropertyDescriptor(er,tr){return{enumerable:!(1&er),configurable:!(2&er),writable:!(4&er),value:tr}},_v={}.toString,vv=function classofRaw(er){return _v.call(er).slice(8,-1)},yv="".split,bv=hv((function(){return!Object("z").propertyIsEnumerable(0)}))?function(er){return"String"==vv(er)?yv.call(er,""):Object(er)}:Object,wv=function requireObjectCoercible(er){if(null==er)throw TypeError("Can't call method on "+er);return er},Sv=function toIndexedObject(er){return bv(wv(er))},xv=function isObject(er){return"object"===_typeof(er)?null!==er:"function"==typeof er},kv=function toPrimitive(er,tr){if(!xv(er))return er;var rr,nr;if(tr&&"function"==typeof(rr=er.toString)&&!xv(nr=rr.call(er)))return nr;if("function"==typeof(rr=er.valueOf)&&!xv(nr=rr.call(er)))return nr;if(!tr&&"function"==typeof(rr=er.toString)&&!xv(nr=rr.call(er)))return nr;throw TypeError("Can't convert object to primitive value")},Cv={}.hasOwnProperty,Bv=function has(er,tr){return Cv.call(er,tr)},Ev=dv.document,Nv=xv(Ev)&&xv(Ev.createElement),Lv=function documentCreateElement(er){return Nv?Ev.createElement(er):{}},Tv=!pv&&!hv((function(){return 7!=Object.defineProperty(Lv("div"),"a",{get:function get(){return 7}}).a})),Pv=Object.getOwnPropertyDescriptor,Fv={f:pv?Pv:function getOwnPropertyDescriptor(er,tr){if(er=Sv(er),tr=kv(tr,!0),Tv)try{return Pv(er,tr)}catch(er){}if(Bv(er,tr))return mv(!gv.f.call(er,tr),er[tr])}},Uv=/#|\.prototype\./,Iv=function isForced(er,tr){var rr=Mv[Rv(er)];return rr==Qv||rr!=Ov&&("function"==typeof tr?hv(tr):!!tr)},Rv=Iv.normalize=function(er){return String(er).replace(Uv,".").toLowerCase()},Mv=Iv.data={},Ov=Iv.NATIVE="N",Qv=Iv.POLYFILL="P",Dv=Iv,jv={},Hv=function aFunction(er){if("function"!=typeof er)throw TypeError(String(er)+" is not a function");return er},Gv=function functionBindContext(er,tr,rr){if(Hv(er),void 0===tr)return er;switch(rr){case 0:return function(){return er.call(tr)};case 1:return function(rr){return er.call(tr,rr)};case 2:return function(rr,nr){return er.call(tr,rr,nr)};case 3:return function(rr,nr,ir){return er.call(tr,rr,nr,ir)}}return function(){return er.apply(tr,arguments)}},Vv=function anObject(er){if(!xv(er))throw TypeError(String(er)+" is not an object");return er},zv=Object.defineProperty,Kv={f:pv?zv:function defineProperty(er,tr,rr){if(Vv(er),tr=kv(tr,!0),Vv(rr),Tv)try{return zv(er,tr,rr)}catch(er){}if("get"in rr||"set"in rr)throw TypeError("Accessors not supported");return"value"in rr&&(er[tr]=rr.value),er}},qv=pv?function(er,tr,rr){return Kv.f(er,tr,mv(1,rr))}:function(er,tr,rr){return er[tr]=rr,er},Wv=Fv.f,Xv=function wrapConstructor(er){var tr=function Wrapper(tr,rr,nr){if(this instanceof er){switch(arguments.length){case 0:return new er;case 1:return new er(tr);case 2:return new er(tr,rr)}return new er(tr,rr,nr)}return er.apply(this,arguments)};return tr.prototype=er.prototype,tr},Yv=function _export(er,tr){var rr,nr,ir,or,ar,sr,lr,cr,ur=er.target,dr=er.global,hr=er.stat,pr=er.proto,Ar=dr?dv:hr?dv[ur]:(dv[ur]||{}).prototype,fr=dr?jv:jv[ur]||(jv[ur]={}),gr=fr.prototype;for(ir in tr)rr=!Dv(dr?ir:ur+(hr?".":"#")+ir,er.forced)&&Ar&&Bv(Ar,ir),ar=fr[ir],rr&&(sr=er.noTargetGet?(cr=Wv(Ar,ir))&&cr.value:Ar[ir]),or=rr&&sr?sr:tr[ir],rr&&_typeof(ar)===_typeof(or)||(lr=er.bind&&rr?Gv(or,dv):er.wrap&&rr?Xv(or):pr&&"function"==typeof or?Gv(Function.call,or):or,(er.sham||or&&or.sham||ar&&ar.sham)&&qv(lr,"sham",!0),fr[ir]=lr,pr&&(Bv(jv,nr=ur+"Prototype")||qv(jv,nr,{}),jv[nr][ir]=or,er.real&&gr&&!gr[ir]&&qv(gr,ir,or)))},Jv=Math.ceil,$v=Math.floor,Zv=function toInteger(er){return isNaN(er=+er)?0:(er>0?$v:Jv)(er)},ey=Math.min,ty=function toLength(er){return er>0?ey(Zv(er),9007199254740991):0},ry=dv["__core-js_shared__"]||function setGlobal(er,tr){try{qv(dv,er,tr)}catch(rr){dv[er]=tr}return tr}("__core-js_shared__",{}),ny=createCommonjsModule((function(er){(er.exports=function(er,tr){return ry[er]||(ry[er]=void 0!==tr?tr:{})})("versions",[]).push({version:"3.6.4",mode:"pure",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),iy=0,oy=Math.random(),ay=function uid(er){return"Symbol("+String(void 0===er?"":er)+")_"+(++iy+oy).toString(36)},sy=!!Object.getOwnPropertySymbols&&!hv((function(){return!String(Symbol())})),ly=sy&&!Symbol.sham&&"symbol"==_typeof(Symbol.iterator),uy=ny("wks"),dy=dv.Symbol,hy=ly?dy:dy&&dy.withoutSetter||ay,py=function wellKnownSymbol(er){return Bv(uy,er)||(sy&&Bv(dy,er)?uy[er]=dy[er]:uy[er]=hy("Symbol."+er)),uy[er]},Ay=py("match"),fy=function notARegexp(er){if(function isRegexp(er){var tr;return xv(er)&&(void 0!==(tr=er[Ay])?!!tr:"RegExp"==vv(er))}(er))throw TypeError("The method doesn't accept regular expressions");return er},gy=py("match"),my=function correctIsRegexpLogic(er){var tr=/./;try{"/./"[er](tr)}catch(rr){try{return tr[gy]=!1,"/./"[er](tr)}catch(er){}}return!1},_y="".startsWith,vy=Math.min,yy=my("startsWith");Yv({target:"String",proto:!0,forced:!yy},{startsWith:function startsWith(er){var tr=String(wv(this));fy(er);var rr=ty(vy(arguments.length>1?arguments[1]:void 0,tr.length)),nr=String(er);return _y?_y.call(tr,nr,rr):tr.slice(rr,rr+nr.length)===nr}});var by=function entryVirtual(er){return jv[er+"Prototype"]},wy=by("String").startsWith,Sy=String.prototype,xy=function startsWith_1(er){var tr=er.startsWith;return"string"==typeof er||er===Sy||er instanceof String&&tr===Sy.startsWith?wy:tr},ky="\t\n\v\f\r \u2028\u2029\ufeff",Cy="["+ky+"]",By=RegExp("^"+Cy+Cy+"*"),Ey=RegExp(Cy+Cy+"*$"),Ny=function createMethod(er){return function(tr){var rr=String(wv(tr));return 1&er&&(rr=rr.replace(By,"")),2&er&&(rr=rr.replace(Ey,"")),rr}},Ly={start:Ny(1),end:Ny(2),trim:Ny(3)},Ty=Ly.trim,Py=dv.parseFloat,Fy=1/Py(ky+"-0")!=-1/0?function parseFloat(er){var tr=Ty(String(er)),rr=Py(tr);return 0===rr&&"-"==tr.charAt(0)?-0:rr}:Py;Yv({global:!0,forced:parseFloat!=Fy},{parseFloat:Fy});var Uy,Iy,Ry=jv.parseFloat,My=function toObject(er){return Object(wv(er))},Oy=Array.isArray||function isArray(er){return"Array"==vv(er)},Qy=py("species"),Dy=function arraySpeciesCreate(er,tr){var rr;return Oy(er)&&("function"!=typeof(rr=er.constructor)||rr!==Array&&!Oy(rr.prototype)?xv(rr)&&null===(rr=rr[Qy])&&(rr=void 0):rr=void 0),new(void 0===rr?Array:rr)(0===tr?0:tr)},jy=[].push,Hy=function createMethod(er){var tr=1==er,rr=2==er,nr=3==er,ir=4==er,or=6==er,ar=5==er||or;return function(sr,lr,cr,ur){for(var dr,hr,pr=My(sr),Ar=bv(pr),fr=Gv(lr,cr,3),gr=ty(Ar.length),mr=0,_r=ur||Dy,vr=tr?_r(sr,gr):rr?_r(sr,0):void 0;gr>mr;mr++)if((ar||mr in Ar)&&(hr=fr(dr=Ar[mr],mr,pr),er))if(tr)vr[mr]=hr;else if(hr)switch(er){case 3:return!0;case 5:return dr;case 6:return mr;case 2:jy.call(vr,dr)}else if(ir)return!1;return or?-1:nr||ir?ir:vr}},Gy={forEach:Hy(0),map:Hy(1),filter:Hy(2),some:Hy(3),every:Hy(4),find:Hy(5),findIndex:Hy(6)},Vy=function aFunction(er){return"function"==typeof er?er:void 0},zy=function getBuiltIn(er,tr){return arguments.length<2?Vy(jv[er])||Vy(dv[er]):jv[er]&&jv[er][tr]||dv[er]&&dv[er][tr]},Ky=zy("navigator","userAgent")||"",qy=dv.process,Wy=qy&&qy.versions,Xy=Wy&&Wy.v8;Xy?Iy=(Uy=Xy.split("."))[0]+Uy[1]:Ky&&(!(Uy=Ky.match(/Edge\/(\d+)/))||Uy[1]>=74)&&(Uy=Ky.match(/Chrome\/(\d+)/))&&(Iy=Uy[1]);var Yy=Iy&&+Iy,Jy=py("species"),$y=function arrayMethodHasSpeciesSupport(er){return Yy>=51||!hv((function(){var tr=[];return(tr.constructor={})[Jy]=function(){return{foo:1}},1!==tr[er](Boolean).foo}))},Zy=Object.defineProperty,eb={},tb=function thrower(er){throw er},rb=function arrayMethodUsesToLength(er,tr){if(Bv(eb,er))return eb[er];tr||(tr={});var rr=[][er],nr=!!Bv(tr,"ACCESSORS")&&tr.ACCESSORS,ir=Bv(tr,0)?tr[0]:tb,or=Bv(tr,1)?tr[1]:void 0;return eb[er]=!!rr&&!hv((function(){if(nr&&!pv)return!0;var er={length:-1};nr?Zy(er,1,{enumerable:!0,get:tb}):er[1]=1,rr.call(er,ir,or)}))},nb=Gy.map,ib=$y("map"),ob=rb("map");Yv({target:"Array",proto:!0,forced:!ib||!ob},{map:function map(er){return nb(this,er,arguments.length>1?arguments[1]:void 0)}});var ab=by("Array").map,sb=Array.prototype,lb=function map_1(er){var tr=er.map;return er===sb||er instanceof Array&&tr===sb.map?ab:tr};Yv({target:"Array",stat:!0},{isArray:Oy});var ub=jv.Array.isArray,db=ub;var hb=function _arrayWithHoles$1(er){if(db(er))return er},pb={},Ab=ov.getWeakData,fb=Qr.set,gb=Qr.getterFor,mb=ui.find,_b=ui.findIndex,vb=0,uncaughtFrozenStore=function(er){return er.frozen||(er.frozen=new UncaughtFrozenStore)},UncaughtFrozenStore=function(){this.entries=[]},findUncaughtFrozen=function(er,tr){return mb(er.entries,(function(er){return er[0]===tr}))};UncaughtFrozenStore.prototype={get:function(er){var tr=findUncaughtFrozen(this,er);if(tr)return tr[1]},has:function(er){return!!findUncaughtFrozen(this,er)},set:function(er,tr){var rr=findUncaughtFrozen(this,er);rr?rr[1]=tr:this.entries.push([er,tr])},delete:function(er){var tr=_b(this.entries,(function(tr){return tr[0]===er}));return~tr&&this.entries.splice(tr,1),!!~tr}};var yb={getConstructor:function(er,tr,rr,nr){var ir=er((function(er,or){anInstance(er,ir,tr),fb(er,{type:tr,id:vb++,frozen:void 0}),null!=or&&Vs(or,er[nr],er,rr)})),or=gb(tr),define=function(er,tr,rr){var nr=or(er),ir=Ab(anObject(tr),!0);return!0===ir?uncaughtFrozenStore(nr).set(tr,rr):ir[nr.id]=rr,er};return redefineAll(ir.prototype,{delete:function(er){var tr=or(this);if(!isObject(er))return!1;var rr=Ab(er);return!0===rr?uncaughtFrozenStore(tr).delete(er):rr&&has(rr,tr.id)&&delete rr[tr.id]},has:function has$1(er){var tr=or(this);if(!isObject(er))return!1;var rr=Ab(er);return!0===rr?uncaughtFrozenStore(tr).has(er):rr&&has(rr,tr.id)}}),redefineAll(ir.prototype,rr?{get:function get(er){var tr=or(this);if(isObject(er)){var rr=Ab(er);return!0===rr?uncaughtFrozenStore(tr).get(er):rr?rr[tr.id]:void 0}},set:function set(er,tr){return define(this,er,tr)}}:{add:function add(er){return define(this,er,!0)}}),ir}},bb=(createCommonjsModule((function(er){var rr,nr=Qr.enforce,ir=!tr.ActiveXObject&&"ActiveXObject"in tr,or=Object.isExtensible,wrapper=function(er){return function WeakMap(){return er(this,arguments.length?arguments[0]:void 0)}},ar=er.exports=function(er,rr,nr){var ir=-1!==er.indexOf("Map"),or=-1!==er.indexOf("Weak"),ar=ir?"set":"add",sr=tr[er],lr=sr&&sr.prototype,cr=sr,ur={},fixMethod=function(er){var tr=lr[er];Dr(lr,er,"add"==er?function add(er){return tr.call(this,0===er?0:er),this}:"delete"==er?function(er){return!(or&&!isObject(er))&&tr.call(this,0===er?0:er)}:"get"==er?function get(er){return or&&!isObject(er)?void 0:tr.call(this,0===er?0:er)}:"has"==er?function has(er){return!(or&&!isObject(er))&&tr.call(this,0===er?0:er)}:function set(er,rr){return tr.call(this,0===er?0:er,rr),this})};if(Gn(er,"function"!=typeof sr||!(or||lr.forEach&&!fails((function(){(new sr).entries().next()})))))cr=nr.getConstructor(rr,er,ir,ar),ov.REQUIRED=!0;else if(Gn(er,!0)){var dr=new cr,hr=dr[ar](or?{}:-0,1)!=dr,pr=fails((function(){dr.has(1)})),Ar=checkCorrectnessOfIteration((function(er){new sr(er)})),fr=!or&&fails((function(){for(var er=new sr,tr=5;tr--;)er[ar](tr,tr);return!er.has(-0)}));Ar||((cr=rr((function(tr,rr){anInstance(tr,cr,er);var nr=inheritIfRequired(new sr,tr,cr);return null!=rr&&Vs(rr,nr[ar],nr,ir),nr}))).prototype=lr,lr.constructor=cr),(pr||fr)&&(fixMethod("delete"),fixMethod("has"),ir&&fixMethod("get")),(fr||hr)&&fixMethod(ar),or&&lr.clear&&delete lr.clear}return ur[er]=cr,_export({global:!0,forced:cr!=sr},ur),setToStringTag(cr,er),or||nr.setStrong(cr,er,ir),cr}("WeakMap",wrapper,yb);if(kr&&ir){rr=yb.getConstructor(wrapper,"WeakMap",!0),ov.REQUIRED=!0;var sr=ar.prototype,lr=sr.delete,cr=sr.has,ur=sr.get,dr=sr.set;redefineAll(sr,{delete:function(er){if(isObject(er)&&!or(er)){var tr=nr(this);return tr.frozen||(tr.frozen=new rr),lr.call(this,er)||tr.frozen.delete(er)}return lr.call(this,er)},has:function has(er){if(isObject(er)&&!or(er)){var tr=nr(this);return tr.frozen||(tr.frozen=new rr),cr.call(this,er)||tr.frozen.has(er)}return cr.call(this,er)},get:function get(er){if(isObject(er)&&!or(er)){var tr=nr(this);return tr.frozen||(tr.frozen=new rr),cr.call(this,er)?ur.call(this,er):tr.frozen.get(er)}return ur.call(this,er)},set:function set(er,tr){if(isObject(er)&&!or(er)){var ir=nr(this);ir.frozen||(ir.frozen=new rr),cr.call(this,er)?dr.call(this,er,tr):ir.frozen.set(er,tr)}else dr.call(this,er,tr);return this}})}})),Function.toString);"function"!=typeof ry.inspectSource&&(ry.inspectSource=function(er){return bb.call(er)});var wb,Sb,xb,kb=ry.inspectSource,Cb=dv.WeakMap,Bb="function"==typeof Cb&&/native code/.test(kb(Cb)),Eb=ny("keys"),Nb=function sharedKey(er){return Eb[er]||(Eb[er]=ay(er))},Lb={},Tb=dv.WeakMap;if(Bb){var Pb=new Tb,Fb=Pb.get,Ub=Pb.has,Ib=Pb.set;wb=function set(er,tr){return Ib.call(Pb,er,tr),tr},Sb=function get(er){return Fb.call(Pb,er)||{}},xb=function has(er){return Ub.call(Pb,er)}}else{var Rb=Nb("state");Lb[Rb]=!0,wb=function set(er,tr){return qv(er,Rb,tr),tr},Sb=function get(er){return Bv(er,Rb)?er[Rb]:{}},xb=function has(er){return Bv(er,Rb)}}var Mb,Ob,Qb,Db={set:wb,get:Sb,has:xb,enforce:function enforce(er){return xb(er)?Sb(er):wb(er,{})},getterFor:function getterFor(er){return function(tr){var rr;if(!xv(tr)||(rr=Sb(tr)).type!==er)throw TypeError("Incompatible receiver, "+er+" required");return rr}}},jb=!hv((function(){function F(){}return F.prototype.constructor=null,Object.getPrototypeOf(new F)!==F.prototype})),Hb=Nb("IE_PROTO"),Gb=Object.prototype,Vb=jb?Object.getPrototypeOf:function(er){return er=My(er),Bv(er,Hb)?er[Hb]:"function"==typeof er.constructor&&er instanceof er.constructor?er.constructor.prototype:er instanceof Object?Gb:null},zb=(py("iterator"),!1);[].keys&&("next"in(Qb=[].keys())?(Ob=Vb(Vb(Qb)))!==Object.prototype&&(Mb=Ob):zb=!0),null==Mb&&(Mb={});var Kb={IteratorPrototype:Mb,BUGGY_SAFARI_ITERATORS:zb};_export({target:"Object",stat:!0,forced:!rr,sham:!rr},{defineProperties:_i});var qb,Wb=Math.max,Xb=Math.min,Yb=function toAbsoluteIndex(er,tr){var rr=Zv(er);return rr<0?Wb(rr+tr,0):Xb(rr,tr)},Jb=function createMethod(er){return function(tr,rr,nr){var ir,or=Sv(tr),ar=ty(or.length),sr=Yb(nr,ar);if(er&&rr!=rr){for(;ar>sr;)if((ir=or[sr++])!=ir)return!0}else for(;ar>sr;sr++)if((er||sr in or)&&or[sr]===rr)return er||sr||0;return!er&&-1}},$b={includes:Jb(!0),indexOf:Jb(!1)},Zb=$b.indexOf,ew=function objectKeysInternal(er,tr){var rr,nr=Sv(er),ir=0,or=[];for(rr in nr)!Bv(Lb,rr)&&Bv(nr,rr)&&or.push(rr);for(;tr.length>ir;)Bv(nr,rr=tr[ir++])&&(~Zb(or,rr)||or.push(rr));return or},tw=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],rw=Object.keys||function keys(er){return ew(er,tw)},nw=pv?Object.defineProperties:function defineProperties(er,tr){Vv(er);for(var rr,nr=rw(tr),ir=nr.length,or=0;ir>or;)Kv.f(er,rr=nr[or++],tr[rr]);return er},iw=zy("document","documentElement"),ow=Nb("IE_PROTO"),aw=function EmptyConstructor(){},sw=function scriptTag(er){return"<script>"+er+"<\/script>"},lw=function NullProtoObject(){try{qb=document.domain&&new ActiveXObject("htmlfile")}catch(er){}lw=qb?function NullProtoObjectViaActiveX(er){er.write(sw("")),er.close();var tr=er.parentWindow.Object;return er=null,tr}(qb):function NullProtoObjectViaIFrame(){var er,tr=Lv("iframe");return tr.style.display="none",iw.appendChild(tr),tr.src=String("javascript:"),(er=tr.contentWindow.document).open(),er.write(sw("document.F=Object")),er.close(),er.F}();for(var er=tw.length;er--;)delete lw.prototype[tw[er]];return lw()};Lb[ow]=!0;var cw=Object.create||function create(er,tr){var rr;return null!==er?(aw.prototype=Vv(er),rr=new aw,aw.prototype=null,rr[ow]=er):rr=lw(),void 0===tr?rr:nw(rr,tr)},uw={};uw[py("toStringTag")]="z";var dw="[object z]"===String(uw),hw=py("toStringTag"),pw="Arguments"==vv(function(){return arguments}()),Aw=dw?vv:function(er){var tr,rr,nr;return void 0===er?"Undefined":null===er?"Null":"string"==typeof(rr=function tryGet(er,tr){try{return er[tr]}catch(er){}}(tr=Object(er),hw))?rr:pw?vv(tr):"Object"==(nr=vv(tr))&&"function"==typeof tr.callee?"Arguments":nr},fw=dw?{}.toString:function toString(){return"[object "+Aw(this)+"]"},gw=Kv.f,mw=py("toStringTag"),_w=function setToStringTag(er,tr,rr,nr){if(er){var ir=rr?er:er.prototype;Bv(ir,mw)||gw(ir,mw,{configurable:!0,value:tr}),nr&&!dw&&qv(ir,"toString",fw)}},vw=Kb.IteratorPrototype,yw=function returnThis(){return this},bw=Object.setPrototypeOf||("__proto__"in{}?function(){var er,tr=!1,rr={};try{(er=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(rr,[]),tr=rr instanceof Array}catch(er){}return function setPrototypeOf(rr,nr){return Vv(rr),function aPossiblePrototype(er){if(!xv(er)&&null!==er)throw TypeError("Can't set "+String(er)+" as a prototype")}(nr),tr?er.call(rr,nr):rr.__proto__=nr,rr}}():void 0),ww=function redefine(er,tr,rr,nr){nr&&nr.enumerable?er[tr]=rr:qv(er,tr,rr)},Sw=Kb.IteratorPrototype,xw=Kb.BUGGY_SAFARI_ITERATORS,kw=py("iterator"),Cw=function returnThis(){return this},Bw=function defineIterator(er,tr,rr,nr,ir,or,ar){!function createIteratorConstructor(er,tr,rr){var nr=tr+" Iterator";er.prototype=cw(vw,{next:mv(1,rr)}),_w(er,nr,!1,!0),pb[nr]=yw}(rr,tr,nr);var sr,lr,cr,ur=function getIterationMethod(er){if(er===ir&&fr)return fr;if(!xw&&er in pr)return pr[er];switch(er){case"keys":return function keys(){return new rr(this,er)};case"values":return function values(){return new rr(this,er)};case"entries":return function entries(){return new rr(this,er)}}return function(){return new rr(this)}},dr=tr+" Iterator",hr=!1,pr=er.prototype,Ar=pr[kw]||pr["@@iterator"]||ir&&pr[ir],fr=!xw&&Ar||ur(ir),gr="Array"==tr&&pr.entries||Ar;if(gr&&(sr=Vb(gr.call(new er)),Sw!==Object.prototype&&sr.next&&(_w(sr,dr,!0,!0),pb[dr]=Cw)),"values"==ir&&Ar&&"values"!==Ar.name&&(hr=!0,fr=function values(){return Ar.call(this)}),ar&&pr[kw]!==fr&&qv(pr,kw,fr),pb[tr]=fr,ir)if(lr={values:ur("values"),keys:or?fr:ur("keys"),entries:ur("entries")},ar)for(cr in lr)(xw||hr||!(cr in pr))&&ww(pr,cr,lr[cr]);else Yv({target:tr,proto:!0,forced:xw||hr},lr);return lr},Ew=Db.set,Nw=Db.getterFor("Array Iterator");Bw(Array,"Array",(function(er,tr){Ew(this,{type:"Array Iterator",target:Sv(er),index:0,kind:tr})}),(function(){var er=Nw(this),tr=er.target,rr=er.kind,nr=er.index++;return!tr||nr>=tr.length?(er.target=void 0,{value:void 0,done:!0}):"keys"==rr?{value:nr,done:!1}:"values"==rr?{value:tr[nr],done:!1}:{value:[nr,tr[nr]],done:!1}}),"values");pb.Arguments=pb.Array;var Lw=py("toStringTag");for(var Tw in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var Pw=dv[Tw],Fw=Pw&&Pw.prototype;Fw&&Aw(Fw)!==Lw&&qv(Fw,Lw,Tw),pb[Tw]=pb.Array}var Uw=function createMethod(er){return function(tr,rr){var nr,ir,or=String(wv(tr)),ar=Zv(rr),sr=or.length;return ar<0||ar>=sr?er?"":void 0:(nr=or.charCodeAt(ar))<55296||nr>56319||ar+1===sr||(ir=or.charCodeAt(ar+1))<56320||ir>57343?er?or.charAt(ar):nr:er?or.slice(ar,ar+2):ir-56320+(nr-55296<<10)+65536}},Iw={codeAt:Uw(!1),charAt:Uw(!0)}.charAt,Rw=Db.set,Mw=Db.getterFor("String Iterator");Bw(String,"String",(function(er){Rw(this,{type:"String Iterator",string:String(er),index:0})}),(function next(){var er,tr=Mw(this),rr=tr.string,nr=tr.index;return nr>=rr.length?{value:void 0,done:!0}:(er=Iw(rr,nr),tr.index+=er.length,{value:er,done:!1})}));var Ow=py("iterator"),Qw=function getIteratorMethod(er){if(null!=er)return er[Ow]||er["@@iterator"]||pb[Aw(er)]},Dw=function getIterator(er){var tr=Qw(er);if("function"!=typeof tr)throw TypeError(String(er)+" is not iterable");return Vv(tr.call(er))},jw=py("iterator"),Hw=function isIterable(er){var tr=Object(er);return void 0!==tr[jw]||"@@iterator"in tr||pb.hasOwnProperty(Aw(tr))},Gw=function createProperty(er,tr,rr){var nr=kv(tr);nr in er?Kv.f(er,nr,mv(0,rr)):er[nr]=rr},Vw=py("isConcatSpreadable"),zw=Yy>=51||!hv((function(){var er=[];return er[Vw]=!1,er.concat()[0]!==er})),Kw=$y("concat"),qw=function isConcatSpreadable(er){if(!xv(er))return!1;var tr=er[Vw];return void 0!==tr?!!tr:Oy(er)};Yv({target:"Array",proto:!0,forced:!zw||!Kw},{concat:function concat(er){var tr,rr,nr,ir,or,ar=My(this),sr=Dy(ar,0),lr=0;for(tr=-1,nr=arguments.length;tr<nr;tr++)if(qw(or=-1===tr?ar:arguments[tr])){if(lr+(ir=ty(or.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(rr=0;rr<ir;rr++,lr++)rr in or&&Gw(sr,lr,or[rr])}else{if(lr>=9007199254740991)throw TypeError("Maximum allowed index exceeded");Gw(sr,lr++,or)}return sr.length=lr,sr}});var Ww=tw.concat("length","prototype"),Xw={f:Object.getOwnPropertyNames||function getOwnPropertyNames(er){return ew(er,Ww)}},Yw=Xw.f,Jw={}.toString,$w="object"==("undefined"==typeof window?"undefined":_typeof(window))&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Zw={f:function getOwnPropertyNames(er){return $w&&"[object Window]"==Jw.call(er)?function getWindowNames(er){try{return Yw(er)}catch(er){return $w.slice()}}(er):Yw(Sv(er))}},eS={f:Object.getOwnPropertySymbols},tS={f:py},rS=Kv.f,nS=function defineWellKnownSymbol(er){var tr=jv.Symbol||(jv.Symbol={});Bv(tr,er)||rS(tr,er,{value:tS.f(er)})},iS=Gy.forEach,oS=Nb("hidden"),aS=py("toPrimitive"),sS=Db.set,lS=Db.getterFor("Symbol"),cS=Object.prototype,uS=dv.Symbol,dS=zy("JSON","stringify"),hS=Fv.f,pS=Kv.f,AS=Zw.f,fS=gv.f,gS=ny("symbols"),mS=ny("op-symbols"),_S=ny("string-to-symbol-registry"),vS=ny("symbol-to-string-registry"),yS=ny("wks"),bS=dv.QObject,wS=!bS||!bS.prototype||!bS.prototype.findChild,SS=pv&&hv((function(){return 7!=cw(pS({},"a",{get:function get(){return pS(this,"a",{value:7}).a}})).a}))?function(er,tr,rr){var nr=hS(cS,tr);nr&&delete cS[tr],pS(er,tr,rr),nr&&er!==cS&&pS(cS,tr,nr)}:pS,xS=function wrap(er,tr){var rr=gS[er]=cw(uS.prototype);return sS(rr,{type:"Symbol",tag:er,description:tr}),pv||(rr.description=tr),rr},kS=ly?function(er){return"symbol"==_typeof(er)}:function(er){return Object(er)instanceof uS},CS=function defineProperty(er,tr,rr){er===cS&&CS(mS,tr,rr),Vv(er);var nr=kv(tr,!0);return Vv(rr),Bv(gS,nr)?(rr.enumerable?(Bv(er,oS)&&er[oS][nr]&&(er[oS][nr]=!1),rr=cw(rr,{enumerable:mv(0,!1)})):(Bv(er,oS)||pS(er,oS,mv(1,{})),er[oS][nr]=!0),SS(er,nr,rr)):pS(er,nr,rr)},BS=function defineProperties(er,tr){Vv(er);var rr=Sv(tr),nr=rw(rr).concat(TS(rr));return iS(nr,(function(tr){pv&&!ES.call(rr,tr)||CS(er,tr,rr[tr])})),er},ES=function propertyIsEnumerable(er){var tr=kv(er,!0),rr=fS.call(this,tr);return!(this===cS&&Bv(gS,tr)&&!Bv(mS,tr))&&(!(rr||!Bv(this,tr)||!Bv(gS,tr)||Bv(this,oS)&&this[oS][tr])||rr)},NS=function getOwnPropertyDescriptor(er,tr){var rr=Sv(er),nr=kv(tr,!0);if(rr!==cS||!Bv(gS,nr)||Bv(mS,nr)){var ir=hS(rr,nr);return!ir||!Bv(gS,nr)||Bv(rr,oS)&&rr[oS][nr]||(ir.enumerable=!0),ir}},LS=function getOwnPropertyNames(er){var tr=AS(Sv(er)),rr=[];return iS(tr,(function(er){Bv(gS,er)||Bv(Lb,er)||rr.push(er)})),rr},TS=function getOwnPropertySymbols(er){var tr=er===cS,rr=AS(tr?mS:Sv(er)),nr=[];return iS(rr,(function(er){!Bv(gS,er)||tr&&!Bv(cS,er)||nr.push(gS[er])})),nr};if(sy||(ww((uS=function _Symbol(){if(this instanceof uS)throw TypeError("Symbol is not a constructor");var er=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,tr=ay(er),rr=function setter(er){this===cS&&setter.call(mS,er),Bv(this,oS)&&Bv(this[oS],tr)&&(this[oS][tr]=!1),SS(this,tr,mv(1,er))};return pv&&wS&&SS(cS,tr,{configurable:!0,set:rr}),xS(tr,er)}).prototype,"toString",(function toString(){return lS(this).tag})),ww(uS,"withoutSetter",(function(er){return xS(ay(er),er)})),gv.f=ES,Kv.f=CS,Fv.f=NS,Xw.f=Zw.f=LS,eS.f=TS,tS.f=function(er){return xS(py(er),er)},pv&&pS(uS.prototype,"description",{configurable:!0,get:function description(){return lS(this).description}})),Yv({global:!0,wrap:!0,forced:!sy,sham:!sy},{Symbol:uS}),iS(rw(yS),(function(er){nS(er)})),Yv({target:"Symbol",stat:!0,forced:!sy},{for:function _for(er){var tr=String(er);if(Bv(_S,tr))return _S[tr];var rr=uS(tr);return _S[tr]=rr,vS[rr]=tr,rr},keyFor:function keyFor(er){if(!kS(er))throw TypeError(er+" is not a symbol");if(Bv(vS,er))return vS[er]},useSetter:function useSetter(){wS=!0},useSimple:function useSimple(){wS=!1}}),Yv({target:"Object",stat:!0,forced:!sy,sham:!pv},{create:function create(er,tr){return void 0===tr?cw(er):BS(cw(er),tr)},defineProperty:CS,defineProperties:BS,getOwnPropertyDescriptor:NS}),Yv({target:"Object",stat:!0,forced:!sy},{getOwnPropertyNames:LS,getOwnPropertySymbols:TS}),Yv({target:"Object",stat:!0,forced:hv((function(){eS.f(1)}))},{getOwnPropertySymbols:function getOwnPropertySymbols(er){return eS.f(My(er))}}),dS){var PS=!sy||hv((function(){var er=uS();return"[null]"!=dS([er])||"{}"!=dS({a:er})||"{}"!=dS(Object(er))}));Yv({target:"JSON",stat:!0,forced:PS},{stringify:function stringify(er,tr,rr){for(var nr,ir=[er],or=1;arguments.length>or;)ir.push(arguments[or++]);if(nr=tr,(xv(tr)||void 0!==er)&&!kS(er))return Oy(tr)||(tr=function replacer(er,tr){if("function"==typeof nr&&(tr=nr.call(this,er,tr)),!kS(tr))return tr}),ir[1]=tr,dS.apply(null,ir)}})}uS.prototype[aS]||qv(uS.prototype,aS,uS.prototype.valueOf),_w(uS,"Symbol"),Lb[oS]=!0,nS("asyncIterator"),nS("hasInstance"),nS("isConcatSpreadable"),nS("iterator"),nS("match"),nS("matchAll"),nS("replace"),nS("search"),nS("species"),nS("split"),nS("toPrimitive"),nS("toStringTag"),nS("unscopables"),_w(Math,"Math",!0),_w(dv.JSON,"JSON",!0);var FS=jv.Symbol;nS("asyncDispose"),nS("dispose"),nS("observable"),nS("patternMatch"),nS("replaceAll");var US=FS;var IS=function _iterableToArrayLimit$1(er,tr){if(void 0!==US&&Hw(Object(er))){var rr=[],nr=!0,ir=!1,or=void 0;try{for(var ar,sr=Dw(er);!(nr=(ar=sr.next()).done)&&(rr.push(ar.value),!tr||rr.length!==tr);nr=!0);}catch(er){ir=!0,or=er}finally{try{nr||null==sr.return||sr.return()}finally{if(ir)throw or}}return rr}},RS=!checkCorrectnessOfIteration((function(er){Array.from(er)}));_export({target:"Array",stat:!0,forced:RS},{from:Ac});var MS=function callWithSafeIterationClosing(er,tr,rr,nr){try{return nr?tr(Vv(rr)[0],rr[1]):tr(rr)}catch(tr){var ir=er.return;throw void 0!==ir&&Vv(ir.call(er)),tr}},OS=py("iterator"),QS=Array.prototype,DS=function isArrayIteratorMethod(er){return void 0!==er&&(pb.Array===er||QS[OS]===er)},jS=py("iterator"),HS=!1;try{var GS=0,VS={next:function next(){return{done:!!GS++}},return:function _return(){HS=!0}};VS[jS]=function(){return this},Array.from(VS,(function(){throw 2}))}catch(er){}var zS=function checkCorrectnessOfIteration(er,tr){if(!tr&&!HS)return!1;var rr=!1;try{var nr={};nr[jS]=function(){return{next:function next(){return{done:rr=!0}}}},er(nr)}catch(er){}return rr},KS=!zS((function(er){Array.from(er)}));Yv({target:"Array",stat:!0,forced:KS},{from:function from(er){var tr,rr,nr,ir,or,ar,sr=My(er),lr="function"==typeof this?this:Array,cr=arguments.length,ur=cr>1?arguments[1]:void 0,dr=void 0!==ur,hr=Qw(sr),pr=0;if(dr&&(ur=Gv(ur,cr>2?arguments[2]:void 0,2)),null==hr||lr==Array&&DS(hr))for(rr=new lr(tr=ty(sr.length));tr>pr;pr++)ar=dr?ur(sr[pr],pr):sr[pr],Gw(rr,pr,ar);else for(or=(ir=hr.call(sr)).next,rr=new lr;!(nr=or.call(ir)).done;pr++)ar=dr?MS(ir,ur,[nr.value,pr],!0):nr.value,Gw(rr,pr,ar);return rr.length=pr,rr}});var qS=jv.Array.from,WS=qS,XS=$y("slice"),YS=rb("slice",{ACCESSORS:!0,0:0,1:2}),JS=py("species"),$S=[].slice,ZS=Math.max;Yv({target:"Array",proto:!0,forced:!XS||!YS},{slice:function slice(er,tr){var rr,nr,ir,or=Sv(this),ar=ty(or.length),sr=Yb(er,ar),lr=Yb(void 0===tr?ar:tr,ar);if(Oy(or)&&("function"!=typeof(rr=or.constructor)||rr!==Array&&!Oy(rr.prototype)?xv(rr)&&null===(rr=rr[JS])&&(rr=void 0):rr=void 0,rr===Array||void 0===rr))return $S.call(or,sr,lr);for(nr=new(void 0===rr?Array:rr)(ZS(lr-sr,0)),ir=0;sr<lr;sr++,ir++)sr in or&&Gw(nr,ir,or[sr]);return nr.length=ir,nr}});var ex=by("Array").slice,tx=Array.prototype,rx=function slice_1(er){var tr=er.slice;return er===tx||er instanceof Array&&tr===tx.slice?ex:tr},nx=rx;var ix=function _arrayLikeToArray$1(er,tr){(null==tr||tr>er.length)&&(tr=er.length);for(var rr=0,nr=new Array(tr);rr<tr;rr++)nr[rr]=er[rr];return nr};var ox=function _unsupportedIterableToArray$1(er,tr){var rr;if(er){if("string"==typeof er)return ix(er,tr);var nr=nx(rr=Object.prototype.toString.call(er)).call(rr,8,-1);return"Object"===nr&&er.constructor&&(nr=er.constructor.name),"Map"===nr||"Set"===nr?WS(er):"Arguments"===nr||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(nr)?ix(er,tr):void 0}};var ax=function _nonIterableRest$1(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")};var sx=function _slicedToArray$1(er,tr){return hb(er)||IS(er,tr)||ox(er,tr)||ax()};Yv({target:"Object",stat:!0,forced:!pv,sham:!pv},{defineProperty:Kv.f});var lx=createCommonjsModule((function(er){var tr=jv.Object,rr=er.exports=function defineProperty(er,rr,nr){return tr.defineProperty(er,rr,nr)};tr.defineProperty.sham&&(rr.sham=!0)})),cx=lx;Yv({target:"Object",stat:!0,forced:!pv,sham:!pv},{defineProperties:nw});var ux=createCommonjsModule((function(er){var tr=jv.Object,rr=er.exports=function defineProperties(er,rr){return tr.defineProperties(er,rr)};tr.defineProperties.sham&&(rr.sham=!0)})),dx=zy("Reflect","ownKeys")||function ownKeys(er){var tr=Xw.f(Vv(er)),rr=eS.f;return rr?tr.concat(rr(er)):tr};Yv({target:"Object",stat:!0,sham:!pv},{getOwnPropertyDescriptors:function getOwnPropertyDescriptors(er){for(var tr,rr,nr=Sv(er),ir=Fv.f,or=dx(nr),ar={},sr=0;or.length>sr;)void 0!==(rr=ir(nr,tr=or[sr++]))&&Gw(ar,tr,rr);return ar}});var hx=jv.Object.getOwnPropertyDescriptors,px=function arrayMethodIsStrict(er,tr){var rr=[][er];return!!rr&&hv((function(){rr.call(null,tr||function(){throw 1},1)}))},Ax=Gy.forEach,gx=px("forEach"),mx=rb("forEach"),_x=gx&&mx?[].forEach:function forEach(er){return Ax(this,er,arguments.length>1?arguments[1]:void 0)};Yv({target:"Array",proto:!0,forced:[].forEach!=_x},{forEach:_x});var vx=by("Array").forEach,yx=Array.prototype,bx={DOMTokenList:!0,NodeList:!0},wx=function forEach_1(er){var tr=er.forEach;return er===yx||er instanceof Array&&tr===yx.forEach||bx.hasOwnProperty(Aw(er))?vx:tr},Sx=Fv.f,xx=hv((function(){Sx(1)}));Yv({target:"Object",stat:!0,forced:!pv||xx,sham:!pv},{getOwnPropertyDescriptor:function getOwnPropertyDescriptor(er,tr){return Sx(Sv(er),tr)}});var kx=createCommonjsModule((function(er){var tr=jv.Object,rr=er.exports=function getOwnPropertyDescriptor(er,rr){return tr.getOwnPropertyDescriptor(er,rr)};tr.getOwnPropertyDescriptor.sham&&(rr.sham=!0)})),Cx=kx,Bx=Gy.filter,Ex=$y("filter"),Nx=rb("filter");Yv({target:"Array",proto:!0,forced:!Ex||!Nx},{filter:function filter(er){return Bx(this,er,arguments.length>1?arguments[1]:void 0)}});var Lx=by("Array").filter,Tx=Array.prototype,Px=function filter_1(er){var tr=er.filter;return er===Tx||er instanceof Array&&tr===Tx.filter?Lx:tr},Fx=jv.Object.getOwnPropertySymbols,Ux=hv((function(){rw(1)}));Yv({target:"Object",stat:!0,forced:Ux},{keys:function keys(er){return rw(My(er))}});var Ix=jv.Object.keys,Rx=yd,Mx=!!Ds&&fails((function(){Ds.prototype.finally.call({then:function(){}},(function(){}))}));_export({target:"Promise",proto:!0,real:!0,forced:Mx},{finally:function(er){var tr=speciesConstructor(this,getBuiltIn("Promise")),rr="function"==typeof er;return this.then(rr?function(rr){return promiseResolve(tr,er()).then((function(){return rr}))}:er,rr?function(rr){return promiseResolve(tr,er()).then((function(){throw rr}))}:er)}}),"function"!=typeof Ds||Ds.prototype.finally||Dr(Ds.prototype,"finally",getBuiltIn("Promise").prototype.finally);var Ox=dv.Promise,Qx=function redefineAll(er,tr,rr){for(var nr in tr)rr&&rr.unsafe&&er[nr]?er[nr]=tr[nr]:ww(er,nr,tr[nr],rr);return er},Dx=py("species"),jx=function setSpecies(er){var tr=zy(er),rr=Kv.f;pv&&tr&&!tr[Dx]&&rr(tr,Dx,{configurable:!0,get:function get(){return this}})},Hx=function anInstance(er,tr,rr){if(!(er instanceof tr))throw TypeError("Incorrect "+(rr?rr+" ":"")+"invocation");return er},Gx=createCommonjsModule((function(er){var tr=function Result(er,tr){this.stopped=er,this.result=tr};(er.exports=function(er,rr,nr,ir,or){var ar,sr,lr,cr,ur,dr,hr,pr=Gv(rr,nr,ir?2:1);if(or)ar=er;else{if("function"!=typeof(sr=Qw(er)))throw TypeError("Target is not iterable");if(DS(sr)){for(lr=0,cr=ty(er.length);cr>lr;lr++)if((ur=ir?pr(Vv(hr=er[lr])[0],hr[1]):pr(er[lr]))&&ur instanceof tr)return ur;return new tr(!1)}ar=sr.call(er)}for(dr=ar.next;!(hr=dr.call(ar)).done;)if("object"==_typeof(ur=MS(ar,pr,hr.value,ir))&&ur&&ur instanceof tr)return ur;return new tr(!1)}).stop=function(er){return new tr(!0,er)}})),Vx=py("species"),zx=function speciesConstructor(er,tr){var rr,nr=Vv(er).constructor;return void 0===nr||null==(rr=Vv(nr)[Vx])?tr:Hv(rr)},Kx=!tr.setImmediate||!tr.clearImmediate;_export({global:!0,bind:!0,enumerable:!0,forced:Kx},{setImmediate:fl.set,clearImmediate:fl.clear});var qx,Wx,Xx,Yx=/(iphone|ipod|ipad).*applewebkit/i.test(Ky),Jx=dv.location,$x=dv.setImmediate,Zx=dv.clearImmediate,ek=dv.process,tk=dv.MessageChannel,rk=dv.Dispatch,nk=0,ik={},ok=function run(er){if(ik.hasOwnProperty(er)){var tr=ik[er];delete ik[er],tr()}},ak=function runner(er){return function(){ok(er)}},sk=function listener(er){ok(er.data)},lk=function post(er){dv.postMessage(er+"",Jx.protocol+"//"+Jx.host)};$x&&Zx||($x=function setImmediate(er){for(var tr=[],rr=1;arguments.length>rr;)tr.push(arguments[rr++]);return ik[++nk]=function(){("function"==typeof er?er:Function(er)).apply(void 0,tr)},qx(nk),nk},Zx=function clearImmediate(er){delete ik[er]},"process"==vv(ek)?qx=function defer(er){ek.nextTick(ak(er))}:rk&&rk.now?qx=function defer(er){rk.now(ak(er))}:tk&&!Yx?(Xx=(Wx=new tk).port2,Wx.port1.onmessage=sk,qx=Gv(Xx.postMessage,Xx,1)):!dv.addEventListener||"function"!=typeof postMessage||dv.importScripts||hv(lk)||"file:"===Jx.protocol?qx="onreadystatechange"in Lv("script")?function defer(er){iw.appendChild(Lv("script")).onreadystatechange=function(){iw.removeChild(this),ok(er)}}:function defer(er){setTimeout(ak(er),0)}:(qx=lk,dv.addEventListener("message",sk,!1)));var ck,uk,dk,hk,pk,Ak,fk,gk,mk={set:$x,clear:Zx},_k=Fv.f,vk=mk.set,yk=dv.MutationObserver||dv.WebKitMutationObserver,wk=dv.process,Sk=dv.Promise,xk="process"==vv(wk),kk=_k(dv,"queueMicrotask"),Ck=kk&&kk.value;Ck||(ck=function flush(){var er,tr;for(xk&&(er=wk.domain)&&er.exit();uk;){tr=uk.fn,uk=uk.next;try{tr()}catch(er){throw uk?hk():dk=void 0,er}}dk=void 0,er&&er.enter()},xk?hk=function notify(){wk.nextTick(ck)}:yk&&!Yx?(pk=!0,Ak=document.createTextNode(""),new yk(ck).observe(Ak,{characterData:!0}),hk=function notify(){Ak.data=pk=!pk}):Sk&&Sk.resolve?(fk=Sk.resolve(void 0),gk=fk.then,hk=function notify(){gk.call(fk,ck)}):hk=function notify(){vk.call(dv,ck)});var Bk,Ek,Nk,Lk=Ck||function(er){var tr={fn:er,next:void 0};dk&&(dk.next=tr),uk||(uk=tr,hk()),dk=tr},Tk=function PromiseCapability(er){var tr,rr;this.promise=new er((function(er,nr){if(void 0!==tr||void 0!==rr)throw TypeError("Bad Promise constructor");tr=er,rr=nr})),this.resolve=Hv(tr),this.reject=Hv(rr)},Pk={f:function f(er){return new Tk(er)}},Fk=function promiseResolve(er,tr){if(Vv(er),xv(tr)&&tr.constructor===er)return tr;var rr=Pk.f(er);return(0,rr.resolve)(tr),rr.promise},Uk=function perform(er){try{return{error:!1,value:er()}}catch(er){return{error:!0,value:er}}},Ik=mk.set,Rk=py("species"),Mk=Db.get,Ok=Db.set,Qk=Db.getterFor("Promise"),Dk=Ox,jk=dv.TypeError,Hk=dv.document,Gk=dv.process,Vk=(zy("fetch"),Pk.f),zk=Vk,Kk="process"==vv(Gk),qk=!!(Hk&&Hk.createEvent&&dv.dispatchEvent),Wk=Dv("Promise",(function(){if(!(kb(Dk)!==String(Dk))){if(66===Yy)return!0;if(!Kk&&"function"!=typeof PromiseRejectionEvent)return!0}if(!Dk.prototype.finally)return!0;if(Yy>=51&&/native code/.test(Dk))return!1;var er=Dk.resolve(1),tr=function FakePromise(er){er((function(){}),(function(){}))};return(er.constructor={})[Rk]=tr,!(er.then((function(){}))instanceof tr)})),Xk=Wk||!zS((function(er){Dk.all(er).catch((function(){}))})),Yk=function isThenable(er){var tr;return!(!xv(er)||"function"!=typeof(tr=er.then))&&tr},Jk=function notify(er,tr,rr){if(!tr.notified){tr.notified=!0;var nr=tr.reactions;Lk((function(){for(var ir=tr.value,or=1==tr.state,ar=0;nr.length>ar;){var sr,lr,cr,ur=nr[ar++],dr=or?ur.ok:ur.fail,hr=ur.resolve,pr=ur.reject,Ar=ur.domain;try{dr?(or||(2===tr.rejection&&tC(er,tr),tr.rejection=1),!0===dr?sr=ir:(Ar&&Ar.enter(),sr=dr(ir),Ar&&(Ar.exit(),cr=!0)),sr===ur.promise?pr(jk("Promise-chain cycle")):(lr=Yk(sr))?lr.call(sr,hr,pr):hr(sr)):pr(ir)}catch(er){Ar&&!cr&&Ar.exit(),pr(er)}}tr.reactions=[],tr.notified=!1,rr&&!tr.rejection&&Zk(er,tr)}))}},$k=function dispatchEvent(er,tr,rr){var nr,ir;qk?((nr=Hk.createEvent("Event")).promise=tr,nr.reason=rr,nr.initEvent(er,!1,!0),dv.dispatchEvent(nr)):nr={promise:tr,reason:rr},(ir=dv["on"+er])?ir(nr):"unhandledrejection"===er&&function hostReportErrors(er,tr){var rr=dv.console;rr&&rr.error&&(1===arguments.length?rr.error(er):rr.error(er,tr))}("Unhandled promise rejection",rr)},Zk=function onUnhandled(er,tr){Ik.call(dv,(function(){var rr,nr=tr.value;if(eC(tr)&&(rr=Uk((function(){Kk?Gk.emit("unhandledRejection",nr,er):$k("unhandledrejection",er,nr)})),tr.rejection=Kk||eC(tr)?2:1,rr.error))throw rr.value}))},eC=function isUnhandled(er){return 1!==er.rejection&&!er.parent},tC=function onHandleUnhandled(er,tr){Ik.call(dv,(function(){Kk?Gk.emit("rejectionHandled",er):$k("rejectionhandled",er,tr.value)}))},rC=function bind(er,tr,rr,nr){return function(ir){er(tr,rr,ir,nr)}},nC=function internalReject(er,tr,rr,nr){tr.done||(tr.done=!0,nr&&(tr=nr),tr.value=rr,tr.state=2,Jk(er,tr,!0))},iC=function internalResolve(er,tr,rr,nr){if(!tr.done){tr.done=!0,nr&&(tr=nr);try{if(er===rr)throw jk("Promise can't be resolved itself");var ir=Yk(rr);ir?Lk((function(){var nr={done:!1};try{ir.call(rr,rC(internalResolve,er,nr,tr),rC(nC,er,nr,tr))}catch(rr){nC(er,nr,rr,tr)}})):(tr.value=rr,tr.state=1,Jk(er,tr,!1))}catch(rr){nC(er,{done:!1},rr,tr)}}};Wk&&(Dk=function Promise(er){Hx(this,Dk,"Promise"),Hv(er),Bk.call(this);var tr=Mk(this);try{er(rC(iC,this,tr),rC(nC,this,tr))}catch(er){nC(this,tr,er)}},(Bk=function Promise(er){Ok(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Qx(Dk.prototype,{then:function then(er,tr){var rr=Qk(this),nr=Vk(zx(this,Dk));return nr.ok="function"!=typeof er||er,nr.fail="function"==typeof tr&&tr,nr.domain=Kk?Gk.domain:void 0,rr.parent=!0,rr.reactions.push(nr),0!=rr.state&&Jk(this,rr,!1),nr.promise},catch:function _catch(er){return this.then(void 0,er)}}),Ek=function OwnPromiseCapability(){var er=new Bk,tr=Mk(er);this.promise=er,this.resolve=rC(iC,er,tr),this.reject=rC(nC,er,tr)},Pk.f=Vk=function newPromiseCapability(er){return er===Dk||er===Nk?new Ek(er):zk(er)}),Yv({global:!0,wrap:!0,forced:Wk},{Promise:Dk}),_w(Dk,"Promise",!1,!0),jx("Promise"),Nk=zy("Promise"),Yv({target:"Promise",stat:!0,forced:Wk},{reject:function reject(er){var tr=Vk(this);return tr.reject.call(void 0,er),tr.promise}}),Yv({target:"Promise",stat:!0,forced:!0},{resolve:function resolve(er){return Fk(this===Nk?Dk:this,er)}}),Yv({target:"Promise",stat:!0,forced:Xk},{all:function all(er){var tr=this,rr=Vk(tr),nr=rr.resolve,ir=rr.reject,or=Uk((function(){var rr=Hv(tr.resolve),or=[],ar=0,sr=1;Gx(er,(function(er){var lr=ar++,cr=!1;or.push(void 0),sr++,rr.call(tr,er).then((function(er){cr||(cr=!0,or[lr]=er,--sr||nr(or))}),ir)})),--sr||nr(or)}));return or.error&&ir(or.value),rr.promise},race:function race(er){var tr=this,rr=Vk(tr),nr=rr.reject,ir=Uk((function(){var ir=Hv(tr.resolve);Gx(er,(function(er){ir.call(tr,er).then(rr.resolve,nr)}))}));return ir.error&&nr(ir.value),rr.promise}}),Yv({target:"Promise",stat:!0},{allSettled:function allSettled(er){var tr=this,rr=Pk.f(tr),nr=rr.resolve,ir=rr.reject,or=Uk((function(){var rr=Hv(tr.resolve),ir=[],or=0,ar=1;Gx(er,(function(er){var sr=or++,lr=!1;ir.push(void 0),ar++,rr.call(tr,er).then((function(er){lr||(lr=!0,ir[sr]={status:"fulfilled",value:er},--ar||nr(ir))}),(function(er){lr||(lr=!0,ir[sr]={status:"rejected",reason:er},--ar||nr(ir))}))})),--ar||nr(ir)}));return or.error&&ir(or.value),rr.promise}});var oC=!!Ox&&hv((function(){Ox.prototype.finally.call({then:function then(){}},(function(){}))}));Yv({target:"Promise",proto:!0,real:!0,forced:oC},{finally:function _finally(er){var tr=zx(this,zy("Promise")),rr="function"==typeof er;return this.then(rr?function(rr){return Fk(tr,er()).then((function(){return rr}))}:er,rr?function(rr){return Fk(tr,er()).then((function(){throw rr}))}:er)}});var aC=jv.Promise,sC=Db.set,lC=Db.getterFor("AggregateError"),cC=function AggregateError(er,tr){var rr=this;if(!(rr instanceof cC))return new cC(er,tr);bw&&(rr=bw(new Error(tr),Vb(rr)));var nr=[];return Gx(er,nr.push,nr),pv?sC(rr,{errors:nr,type:"AggregateError"}):rr.errors=nr,void 0!==tr&&qv(rr,"message",String(tr)),rr};cC.prototype=cw(Error.prototype,{constructor:mv(5,cC),message:mv(5,""),name:mv(5,"AggregateError")}),pv&&Kv.f(cC.prototype,"errors",{get:function get(){return lC(this).errors},configurable:!0}),Yv({global:!0},{AggregateError:cC}),Yv({target:"Promise",stat:!0},{try:function _try(er){var tr=Pk.f(this),rr=Uk(er);return(rr.error?tr.reject:tr.resolve)(rr.value),tr.promise}});Yv({target:"Promise",stat:!0},{any:function any(er){var tr=this,rr=Pk.f(tr),nr=rr.resolve,ir=rr.reject,or=Uk((function(){var rr=Hv(tr.resolve),or=[],ar=0,sr=1,lr=!1;Gx(er,(function(er){var cr=ar++,ur=!1;or.push(void 0),sr++,rr.call(tr,er).then((function(er){ur||lr||(lr=!0,nr(er))}),(function(er){ur||lr||(ur=!0,or[cr]=er,--sr||ir(new(zy("AggregateError"))(or,"No one promise resolved")))}))})),--sr||ir(new(zy("AggregateError"))(or,"No one promise resolved"))}));return or.error&&ir(or.value),rr.promise}});var uC=aC;function asyncGeneratorStep$1(er,tr,rr,nr,ir,or,ar){try{var sr=er[or](ar),lr=sr.value}catch(er){return void rr(er)}sr.done?tr(lr):uC.resolve(lr).then(nr,ir)}var dC=function _asyncToGenerator$1(er){return function(){var tr=this,rr=arguments;return new uC((function(nr,ir){var or=er.apply(tr,rr);function _next(er){asyncGeneratorStep$1(or,nr,ir,_next,_throw,"next",er)}function _throw(er){asyncGeneratorStep$1(or,nr,ir,_next,_throw,"throw",er)}_next(void 0)}))}},hC=lx;var pC=function _defineProperty$1(er,tr,rr){return tr in er?hC(er,tr,{value:rr,enumerable:!0,configurable:!0,writable:!0}):er[tr]=rr,er};var AC=function _classCallCheck$1(er,tr){if(!(er instanceof tr))throw new TypeError("Cannot call a class as a function")};function _defineProperties$1(er,tr){for(var rr=0;rr<tr.length;rr++){var nr=tr[rr];nr.enumerable=nr.enumerable||!1,nr.configurable=!0,"value"in nr&&(nr.writable=!0),hC(er,nr.key,nr)}}var fC=function _createClass$1(er,tr,rr){return tr&&_defineProperties$1(er.prototype,tr),rr&&_defineProperties$1(er,rr),er},gC=by("Array").concat,mC=Array.prototype,_C=function concat_1(er){var tr=er.concat;return er===mC||er instanceof Array&&tr===mC.concat?gC:tr},vC=function createMethod(er){return function(tr,rr,nr,ir){Hv(rr);var or=My(tr),ar=bv(or),sr=ty(or.length),lr=er?sr-1:0,cr=er?-1:1;if(nr<2)for(;;){if(lr in ar){ir=ar[lr],lr+=cr;break}if(lr+=cr,er?lr<0:sr<=lr)throw TypeError("Reduce of empty array with no initial value")}for(;er?lr>=0:sr>lr;lr+=cr)lr in ar&&(ir=rr(ir,ar[lr],lr,or));return ir}},yC={left:vC(!1),right:vC(!0)}.left,wC=px("reduce"),SC=rb("reduce",{1:0});Yv({target:"Array",proto:!0,forced:!wC||!SC},{reduce:function reduce(er){return yC(this,er,arguments.length,arguments.length>1?arguments[1]:void 0)}});var xC=by("Array").reduce,kC=Array.prototype,CC=function reduce_1(er){var tr=er.reduce;return er===kC||er instanceof Array&&tr===kC.reduce?xC:tr};Yv({target:"Date",stat:!0},{now:function now(){return(new Date).getTime()}});var BC=jv.Date.now,EC=Gy.every,NC=px("every"),LC=rb("every");Yv({target:"Array",proto:!0,forced:!NC||!LC},{every:function every(er){return EC(this,er,arguments.length>1?arguments[1]:void 0)}});var TC=by("Array").every,PC=Array.prototype,FC=function every_1(er){var tr=er.every;return er===PC||er instanceof Array&&tr===PC.every?TC:tr},UC=aC,IC=[].slice,RC={},MC=function construct(er,tr,rr){if(!(tr in RC)){for(var nr=[],ir=0;ir<tr;ir++)nr[ir]="a["+ir+"]";RC[tr]=Function("C,a","return new C("+nr.join(",")+")")}return RC[tr](er,rr)},OC=Function.bind||function bind(er){var tr=Hv(this),rr=IC.call(arguments,1),nr=function bound(){var ir=rr.concat(IC.call(arguments));return this instanceof nr?MC(tr,ir.length,ir):tr.apply(er,ir)};return xv(tr.prototype)&&(nr.prototype=tr.prototype),nr};Yv({target:"Function",proto:!0},{bind:OC});var QC=by("Function").bind,DC=Function.prototype,jC=function bind_1(er){var tr=er.bind;return er===DC||er instanceof Function&&tr===DC.bind?QC:tr};_export({target:"Date",stat:!0},{now:function now(){return(new Date).getTime()}});for(var HC=createCommonjsModule((function(tr){(function(){var er,rr,nr,ir,or,ar;"undefined"!=typeof performance&&null!==performance&&performance.now?tr.exports=function(){return performance.now()}:null!=nv&&nv.hrtime?(tr.exports=function(){return(er()-or)/1e6},rr=nv.hrtime,ir=(er=function getNanoSeconds(){var er;return 1e9*(er=rr())[0]+er[1]})(),ar=1e9*nv.uptime(),or=ir-ar):Date.now?(tr.exports=function(){return Date.now()-nr},nr=Date.now()):(tr.exports=function(){return(new Date).getTime()-nr},nr=(new Date).getTime())}).call(er)})),GC="undefined"==typeof window?er:window,VC=["moz","webkit"],zC="AnimationFrame",KC=GC["request"+zC],qC=GC["cancel"+zC]||GC["cancelRequest"+zC],WC=0;!KC&&WC<VC.length;WC++)KC=GC[VC[WC]+"Request"+zC],qC=GC[VC[WC]+"Cancel"+zC]||GC[VC[WC]+"CancelRequest"+zC];if(!KC||!qC){var XC=0,YC=0,JC=[];KC=function raf(er){if(0===JC.length){var tr=HC(),rr=Math.max(0,16.666666666666668-(tr-XC));XC=rr+tr,setTimeout((function(){var er=JC.slice(0);JC.length=0;for(var tr=0;tr<er.length;tr++)if(!er[tr].cancelled)try{er[tr].callback(XC)}catch(er){setTimeout((function(){throw er}),0)}}),Math.round(rr))}return JC.push({handle:++YC,callback:er,cancelled:!1}),YC},qC=function caf(er){for(var tr=0;tr<JC.length;tr++)JC[tr].handle===er&&(JC[tr].cancelled=!0)}}var $C=function raf_1(er){return KC.call(GC,er)};$C.cancel=function cancel(){qC.apply(GC,arguments)},$C.polyfill=function polyfill(er){er||(er=GC),er.requestAnimationFrame=KC,er.cancelAnimationFrame=qC};var ZC=Ly.trim;Yv({target:"String",proto:!0,forced:function stringTrimForced(er){return hv((function(){return!!ky[er]()||"
"!="
"[er]()||ky[er].name!==er}))}("trim")},{trim:function trim(){return ZC(this)}});var eB=by("String").trim,tB=String.prototype,rB=function trim_1(er){var tr=er.trim;return"string"==typeof er||er===tB||er instanceof String&&tr===tB.trim?eB:tr},nB=function rgbcolor(er){this.ok=!1,this.alpha=1,"#"==er.charAt(0)&&(er=er.substr(1,6)),er=(er=er.replace(/ /g,"")).toLowerCase();var tr={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};er=tr[er]||er;for(var rr=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function process(er){return[parseInt(er[1]),parseInt(er[2]),parseInt(er[3]),parseFloat(er[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function process(er){return[parseInt(er[1]),parseInt(er[2]),parseInt(er[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function process(er){return[parseInt(er[1],16),parseInt(er[2],16),parseInt(er[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function process(er){return[parseInt(er[1]+er[1],16),parseInt(er[2]+er[2],16),parseInt(er[3]+er[3],16)]}}],nr=0;nr<rr.length;nr++){var ir=rr[nr].re,or=rr[nr].process,ar=ir.exec(er);if(ar){var sr=or(ar);this.r=sr[0],this.g=sr[1],this.b=sr[2],sr.length>3&&(this.alpha=sr[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var er=this.r.toString(16),tr=this.g.toString(16),rr=this.b.toString(16);return 1==er.length&&(er="0"+er),1==tr.length&&(tr="0"+tr),1==rr.length&&(rr="0"+rr),"#"+er+tr+rr},this.getHelpXML=function(){for(var er=new Array,nr=0;nr<rr.length;nr++)for(var ir=rr[nr].example,or=0;or<ir.length;or++)er[er.length]=ir[or];for(var ar in tr)er[er.length]=ar;var sr=document.createElement("ul");sr.setAttribute("id","rgbcolor-examples");for(nr=0;nr<er.length;nr++)try{var lr=document.createElement("li"),cr=new RGBColor(er[nr]),ur=document.createElement("div");ur.style.cssText="margin: 3px; border: 1px solid black; background:"+cr.toHex()+"; color:"+cr.toHex(),ur.appendChild(document.createTextNode("test"));var dr=document.createTextNode(" "+er[nr]+" -> "+cr.toRGB()+" -> "+cr.toHex());lr.appendChild(ur),lr.appendChild(dr),sr.appendChild(lr)}catch(er){}return sr}},iB=zy("Reflect","construct"),oB=hv((function(){function F(){}return!(iB((function(){}),[],F)instanceof F)})),aB=!hv((function(){iB((function(){}))})),sB=oB||aB;Yv({target:"Reflect",stat:!0,forced:sB,sham:sB},{construct:function construct(er,tr){Hv(er),Vv(tr);var rr=arguments.length<3?er:Hv(arguments[2]);if(aB&&!oB)return iB(er,tr,rr);if(er==rr){switch(tr.length){case 0:return new er;case 1:return new er(tr[0]);case 2:return new er(tr[0],tr[1]);case 3:return new er(tr[0],tr[1],tr[2]);case 4:return new er(tr[0],tr[1],tr[2],tr[3])}var nr=[null];return nr.push.apply(nr,tr),new(OC.apply(er,nr))}var ir=rr.prototype,or=cw(xv(ir)?ir:Object.prototype),ar=Function.apply.call(er,or,tr);return xv(ar)?ar:or}});var lB=jv.Reflect.construct;Yv({target:"Object",stat:!0,sham:!pv},{create:cw});var cB=jv.Object,uB=function create(er,tr){return cB.create(er,tr)};Yv({target:"Object",stat:!0},{setPrototypeOf:bw});var dB=jv.Object.setPrototypeOf,hB=createCommonjsModule((function(er){function _setPrototypeOf(tr,rr){return er.exports=_setPrototypeOf=dB||function _setPrototypeOf(er,tr){return er.__proto__=tr,er},_setPrototypeOf(tr,rr)}er.exports=_setPrototypeOf}));var pB=function _inherits$1(er,tr){if("function"!=typeof tr&&null!==tr)throw new TypeError("Super expression must either be null or a function");er.prototype=uB(tr&&tr.prototype,{constructor:{value:er,writable:!0,configurable:!0}}),tr&&hB(er,tr)},AB=tS.f("iterator"),fB=createCommonjsModule((function(er){function _typeof(tr){return er.exports=_typeof="function"==typeof US&&"symbol"==typeof AB?function _typeof(er){return typeof er}:function _typeof(er){return er&&"function"==typeof US&&er.constructor===US&&er!==US.prototype?"symbol":typeof er},_typeof(tr)}er.exports=_typeof}));var gB=function _assertThisInitialized$1(er){if(void 0===er)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return er};var mB=function _possibleConstructorReturn$1(er,tr){return!tr||"object"!==fB(tr)&&"function"!=typeof tr?gB(er):tr},vB=hv((function(){Vb(1)}));Yv({target:"Object",stat:!0,forced:vB,sham:!jb},{getPrototypeOf:function getPrototypeOf(er){return Vb(My(er))}});var yB=jv.Object.getPrototypeOf,wB=createCommonjsModule((function(er){function _getPrototypeOf(tr){return er.exports=_getPrototypeOf=dB?yB:function _getPrototypeOf(er){return er.__proto__||yB(er)},_getPrototypeOf(tr)}er.exports=_getPrototypeOf}));var SB=function _arrayWithoutHoles$1(er){if(db(er))return ix(er)};var xB=function _iterableToArray$1(er){if(void 0!==US&&Hw(Object(er)))return WS(er)};var kB=function _nonIterableSpread$1(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")};var CB=function _toConsumableArray$1(er){return SB(er)||xB(er)||ox(er)||kB()},BB=Gy.some,EB=px("some"),NB=rb("some");Yv({target:"Array",proto:!0,forced:!EB||!NB},{some:function some(er){return BB(this,er,arguments.length>1?arguments[1]:void 0)}});var LB=by("Array").some,TB=Array.prototype,PB=function some_1(er){var tr=er.some;return er===TB||er instanceof Array&&tr===TB.some?LB:tr},FB=$b.includes,UB=rb("indexOf",{ACCESSORS:!0,1:0});Yv({target:"Array",proto:!0,forced:!UB},{includes:function includes(er){return FB(this,er,arguments.length>1?arguments[1]:void 0)}});var IB=by("Array").includes;Yv({target:"String",proto:!0,forced:!my("includes")},{includes:function includes(er){return!!~String(wv(this)).indexOf(fy(er),arguments.length>1?arguments[1]:void 0)}});var RB=by("String").includes,MB=Array.prototype,OB=String.prototype,QB=function includes$2(er){var tr=er.includes;return er===MB||er instanceof Array&&tr===MB.includes?IB:"string"==typeof er||er===OB||er instanceof String&&tr===OB.includes?RB:tr},DB=qS,jB=[].reverse,HB=[1,2];Yv({target:"Array",proto:!0,forced:String(HB)===String(HB.reverse())},{reverse:function reverse(){return Oy(this)&&(this.length=this.length),jB.call(this)}});var GB=by("Array").reverse,VB=Array.prototype,zB=function reverse_1(er){var tr=er.reverse;return er===VB||er instanceof Array&&tr===VB.reverse?GB:tr},KB=$b.indexOf,qB=[].indexOf,WB=!!qB&&1/[1].indexOf(1,-0)<0,XB=px("indexOf"),YB=rb("indexOf",{ACCESSORS:!0,1:0});Yv({target:"Array",proto:!0,forced:WB||!XB||!YB},{indexOf:function indexOf(er){return WB?qB.apply(this,arguments)||0:KB(this,er,arguments.length>1?arguments[1]:void 0)}});var JB=by("Array").indexOf,$B=Array.prototype,ZB=function indexOf_1(er){var tr=er.indexOf;return er===$B||er instanceof Array&&tr===$B.indexOf?JB:tr},eE=kx;Yv({target:"Reflect",stat:!0},{get:function get$3(er,tr){var rr,nr,ir=arguments.length<3?er:arguments[2];return Vv(er)===ir?er[tr]:(rr=Fv.f(er,tr))?Bv(rr,"value")?rr.value:void 0===rr.get?void 0:rr.get.call(ir):xv(nr=Vb(er))?get$3(nr,tr,ir):void 0}});var tE=jv.Reflect.get;var rE=function _superPropBase$1(er,tr){for(;!Object.prototype.hasOwnProperty.call(er,tr)&&null!==(er=wB(er)););return er},nE=createCommonjsModule((function(er){function _get(tr,rr,nr){return"undefined"!=typeof Reflect&&tE?er.exports=_get=tE:er.exports=_get=function _get(er,tr,rr){var nr=rE(er,tr);if(nr){var ir=eE(nr,tr);return ir.get?ir.get.call(rr):ir.value}},_get(tr,rr,nr||tr)}er.exports=_get}));Yv({target:"Array",proto:!0},{fill:function fill(er){for(var tr=My(this),rr=ty(tr.length),nr=arguments.length,ir=Yb(nr>1?arguments[1]:void 0,rr),or=nr>2?arguments[2]:void 0,ar=void 0===or?rr:Yb(or,rr);ar>ir;)tr[ir++]=er;return tr}});var iE=by("Array").fill,oE=Array.prototype,aE=function fill_1(er){var tr=er.fill;return er===oE||er instanceof Array&&tr===oE.fill?iE:tr},sE=function t(er,tr){return(sE=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(er,tr){er.__proto__=tr}||function(er,tr){for(var rr in tr)tr.hasOwnProperty(rr)&&(er[rr]=tr[rr])})(er,tr)};function r$1(er,tr){function i(){this.constructor=er}sE(er,tr),er.prototype=null===tr?Object.create(tr):(i.prototype=tr.prototype,new i)}function i$2(er,tr){var rr=er[0],nr=er[1];return[rr*Math.cos(tr)-nr*Math.sin(tr),rr*Math.sin(tr)+nr*Math.cos(tr)]}function a$1(){for(var er=[],tr=0;tr<arguments.length;tr++)er[tr]=arguments[tr];for(var rr=0;rr<er.length;rr++)if("number"!=typeof er[rr])throw new Error("assertNumbers arguments["+rr+"] is not a number. "+_typeof(er[rr])+" == typeof "+er[rr]);return!0}var lE=Math.PI;function o$1(er,tr,rr){er.lArcFlag=0===er.lArcFlag?0:1,er.sweepFlag=0===er.sweepFlag?0:1;var nr=er.rX,ir=er.rY,or=er.x,ar=er.y;nr=Math.abs(er.rX),ir=Math.abs(er.rY);var sr=i$2([(tr-or)/2,(rr-ar)/2],-er.xRot/180*lE),lr=sr[0],cr=sr[1],ur=Math.pow(lr,2)/Math.pow(nr,2)+Math.pow(cr,2)/Math.pow(ir,2);1<ur&&(nr*=Math.sqrt(ur),ir*=Math.sqrt(ur)),er.rX=nr,er.rY=ir;var dr=Math.pow(nr,2)*Math.pow(cr,2)+Math.pow(ir,2)*Math.pow(lr,2),hr=(er.lArcFlag!==er.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(nr,2)*Math.pow(ir,2)-dr)/dr)),pr=nr*cr/ir*hr,Ar=-ir*lr/nr*hr,fr=i$2([pr,Ar],er.xRot/180*lE);er.cX=fr[0]+(tr+or)/2,er.cY=fr[1]+(rr+ar)/2,er.phi1=Math.atan2((cr-Ar)/ir,(lr-pr)/nr),er.phi2=Math.atan2((-cr-Ar)/ir,(-lr-pr)/nr),0===er.sweepFlag&&er.phi2>er.phi1&&(er.phi2-=2*lE),1===er.sweepFlag&&er.phi2<er.phi1&&(er.phi2+=2*lE),er.phi1*=180/lE,er.phi2*=180/lE}function s$1(er,tr,rr){a$1(er,tr,rr);var nr=er*er+tr*tr-rr*rr;if(0>nr)return[];if(0===nr)return[[er*rr/(er*er+tr*tr),tr*rr/(er*er+tr*tr)]];var ir=Math.sqrt(nr);return[[(er*rr+tr*ir)/(er*er+tr*tr),(tr*rr-er*ir)/(er*er+tr*tr)],[(er*rr-tr*ir)/(er*er+tr*tr),(tr*rr+er*ir)/(er*er+tr*tr)]]}var cE,uE=Math.PI/180;function c$1(er,tr,rr){return(1-rr)*er+rr*tr}function y$1(er,tr,rr,nr){return er+Math.cos(nr/180*lE)*tr+Math.sin(nr/180*lE)*rr}function p$1(er,tr,rr,nr){var ir=tr-er,or=rr-tr,ar=3*ir+3*(nr-rr)-6*or,sr=6*(or-ir),lr=3*ir;return Math.abs(ar)<1e-6?[-lr/sr]:function(er,tr,rr){void 0===rr&&(rr=1e-6);var nr=er*er/4-tr;if(nr<-rr)return[];if(nr<=rr)return[-er/2];var ir=Math.sqrt(nr);return[-er/2-ir,-er/2+ir]}(sr/ar,lr/ar,1e-6)}function m$1(er,tr,rr,nr,ir){var or=1-ir;return er*(or*or*or)+tr*(3*or*or*ir)+rr*(3*or*ir*ir)+nr*(ir*ir*ir)}!function(er){function r(){return u((function(er,tr,rr){return er.relative&&(void 0!==er.x1&&(er.x1+=tr),void 0!==er.y1&&(er.y1+=rr),void 0!==er.x2&&(er.x2+=tr),void 0!==er.y2&&(er.y2+=rr),void 0!==er.x&&(er.x+=tr),void 0!==er.y&&(er.y+=rr),er.relative=!1),er}))}function e(){var er=NaN,tr=NaN,rr=NaN,nr=NaN;return u((function(ir,or,ar){return ir.type&gE.SMOOTH_CURVE_TO&&(ir.type=gE.CURVE_TO,er=isNaN(er)?or:er,tr=isNaN(tr)?ar:tr,ir.x1=ir.relative?or-er:2*or-er,ir.y1=ir.relative?ar-tr:2*ar-tr),ir.type&gE.CURVE_TO?(er=ir.relative?or+ir.x2:ir.x2,tr=ir.relative?ar+ir.y2:ir.y2):(er=NaN,tr=NaN),ir.type&gE.SMOOTH_QUAD_TO&&(ir.type=gE.QUAD_TO,rr=isNaN(rr)?or:rr,nr=isNaN(nr)?ar:nr,ir.x1=ir.relative?or-rr:2*or-rr,ir.y1=ir.relative?ar-nr:2*ar-nr),ir.type&gE.QUAD_TO?(rr=ir.relative?or+ir.x1:ir.x1,nr=ir.relative?ar+ir.y1:ir.y1):(rr=NaN,nr=NaN),ir}))}function n(){var er=NaN,tr=NaN;return u((function(rr,nr,ir){if(rr.type&gE.SMOOTH_QUAD_TO&&(rr.type=gE.QUAD_TO,er=isNaN(er)?nr:er,tr=isNaN(tr)?ir:tr,rr.x1=rr.relative?nr-er:2*nr-er,rr.y1=rr.relative?ir-tr:2*ir-tr),rr.type&gE.QUAD_TO){er=rr.relative?nr+rr.x1:rr.x1,tr=rr.relative?ir+rr.y1:rr.y1;var or=rr.x1,ar=rr.y1;rr.type=gE.CURVE_TO,rr.x1=((rr.relative?0:nr)+2*or)/3,rr.y1=((rr.relative?0:ir)+2*ar)/3,rr.x2=(rr.x+2*or)/3,rr.y2=(rr.y+2*ar)/3}else er=NaN,tr=NaN;return rr}))}function u(er){var tr=0,rr=0,nr=NaN,ir=NaN;return function(or){if(isNaN(nr)&&!(or.type&gE.MOVE_TO))throw new Error("path must start with moveto");var ar=er(or,tr,rr,nr,ir);return or.type&gE.CLOSE_PATH&&(tr=nr,rr=ir),void 0!==or.x&&(tr=or.relative?tr+or.x:or.x),void 0!==or.y&&(rr=or.relative?rr+or.y:or.y),or.type&gE.MOVE_TO&&(nr=tr,ir=rr),ar}}function O(er,tr,rr,nr,ir,or){return a$1(er,tr,rr,nr,ir,or),u((function(ar,sr,lr,cr){var ur=ar.x1,dr=ar.x2,hr=ar.relative&&!isNaN(cr),pr=void 0!==ar.x?ar.x:hr?0:sr,Ar=void 0!==ar.y?ar.y:hr?0:lr;function T(er){return er*er}ar.type&gE.HORIZ_LINE_TO&&0!==tr&&(ar.type=gE.LINE_TO,ar.y=ar.relative?0:lr),ar.type&gE.VERT_LINE_TO&&0!==rr&&(ar.type=gE.LINE_TO,ar.x=ar.relative?0:sr),void 0!==ar.x&&(ar.x=ar.x*er+Ar*rr+(hr?0:ir)),void 0!==ar.y&&(ar.y=pr*tr+ar.y*nr+(hr?0:or)),void 0!==ar.x1&&(ar.x1=ar.x1*er+ar.y1*rr+(hr?0:ir)),void 0!==ar.y1&&(ar.y1=ur*tr+ar.y1*nr+(hr?0:or)),void 0!==ar.x2&&(ar.x2=ar.x2*er+ar.y2*rr+(hr?0:ir)),void 0!==ar.y2&&(ar.y2=dr*tr+ar.y2*nr+(hr?0:or));var fr=er*nr-tr*rr;if(void 0!==ar.xRot&&(1!==er||0!==tr||0!==rr||1!==nr))if(0===fr)delete ar.rX,delete ar.rY,delete ar.xRot,delete ar.lArcFlag,delete ar.sweepFlag,ar.type=gE.LINE_TO;else{var gr=ar.xRot*Math.PI/180,mr=Math.sin(gr),_r=Math.cos(gr),vr=1/T(ar.rX),yr=1/T(ar.rY),br=T(_r)*vr+T(mr)*yr,wr=2*mr*_r*(vr-yr),Sr=T(mr)*vr+T(_r)*yr,xr=br*nr*nr-wr*tr*nr+Sr*tr*tr,kr=wr*(er*nr+tr*rr)-2*(br*rr*nr+Sr*er*tr),Cr=br*rr*rr-wr*er*rr+Sr*er*er,Br=(Math.atan2(kr,xr-Cr)+Math.PI)%Math.PI/2,Er=Math.sin(Br),Nr=Math.cos(Br);ar.rX=Math.abs(fr)/Math.sqrt(xr*T(Nr)+kr*Er*Nr+Cr*T(Er)),ar.rY=Math.abs(fr)/Math.sqrt(xr*T(Er)-kr*Er*Nr+Cr*T(Nr)),ar.xRot=180*Br/Math.PI}return void 0!==ar.sweepFlag&&0>fr&&(ar.sweepFlag=+!ar.sweepFlag),ar}))}er.ROUND=function(er){function r(tr){return Math.round(tr*er)/er}return void 0===er&&(er=1e13),a$1(er),function(er){return void 0!==er.x1&&(er.x1=r(er.x1)),void 0!==er.y1&&(er.y1=r(er.y1)),void 0!==er.x2&&(er.x2=r(er.x2)),void 0!==er.y2&&(er.y2=r(er.y2)),void 0!==er.x&&(er.x=r(er.x)),void 0!==er.y&&(er.y=r(er.y)),void 0!==er.rX&&(er.rX=r(er.rX)),void 0!==er.rY&&(er.rY=r(er.rY)),er}},er.TO_ABS=r,er.TO_REL=function(){return u((function(er,tr,rr){return er.relative||(void 0!==er.x1&&(er.x1-=tr),void 0!==er.y1&&(er.y1-=rr),void 0!==er.x2&&(er.x2-=tr),void 0!==er.y2&&(er.y2-=rr),void 0!==er.x&&(er.x-=tr),void 0!==er.y&&(er.y-=rr),er.relative=!0),er}))},er.NORMALIZE_HVZ=function(er,tr,rr){return void 0===er&&(er=!0),void 0===tr&&(tr=!0),void 0===rr&&(rr=!0),u((function(nr,ir,or,ar,sr){if(isNaN(ar)&&!(nr.type&gE.MOVE_TO))throw new Error("path must start with moveto");return tr&&nr.type&gE.HORIZ_LINE_TO&&(nr.type=gE.LINE_TO,nr.y=nr.relative?0:or),rr&&nr.type&gE.VERT_LINE_TO&&(nr.type=gE.LINE_TO,nr.x=nr.relative?0:ir),er&&nr.type&gE.CLOSE_PATH&&(nr.type=gE.LINE_TO,nr.x=nr.relative?ar-ir:ar,nr.y=nr.relative?sr-or:sr),nr.type&gE.ARC&&(0===nr.rX||0===nr.rY)&&(nr.type=gE.LINE_TO,delete nr.rX,delete nr.rY,delete nr.xRot,delete nr.lArcFlag,delete nr.sweepFlag),nr}))},er.NORMALIZE_ST=e,er.QT_TO_C=n,er.INFO=u,er.SANITIZE=function(er){void 0===er&&(er=0),a$1(er);var tr=NaN,rr=NaN,nr=NaN,ir=NaN;return u((function(or,ar,sr,lr,cr){var ur=Math.abs,dr=!1,hr=0,pr=0;if(or.type&gE.SMOOTH_CURVE_TO&&(hr=isNaN(tr)?0:ar-tr,pr=isNaN(rr)?0:sr-rr),or.type&(gE.CURVE_TO|gE.SMOOTH_CURVE_TO)?(tr=or.relative?ar+or.x2:or.x2,rr=or.relative?sr+or.y2:or.y2):(tr=NaN,rr=NaN),or.type&gE.SMOOTH_QUAD_TO?(nr=isNaN(nr)?ar:2*ar-nr,ir=isNaN(ir)?sr:2*sr-ir):or.type&gE.QUAD_TO?(nr=or.relative?ar+or.x1:or.x1,ir=or.relative?sr+or.y1:or.y2):(nr=NaN,ir=NaN),or.type&gE.LINE_COMMANDS||or.type&gE.ARC&&(0===or.rX||0===or.rY||!or.lArcFlag)||or.type&gE.CURVE_TO||or.type&gE.SMOOTH_CURVE_TO||or.type&gE.QUAD_TO||or.type&gE.SMOOTH_QUAD_TO){var Ar=void 0===or.x?0:or.relative?or.x:or.x-ar,fr=void 0===or.y?0:or.relative?or.y:or.y-sr;hr=isNaN(nr)?void 0===or.x1?hr:or.relative?or.x:or.x1-ar:nr-ar,pr=isNaN(ir)?void 0===or.y1?pr:or.relative?or.y:or.y1-sr:ir-sr;var gr=void 0===or.x2?0:or.relative?or.x:or.x2-ar,mr=void 0===or.y2?0:or.relative?or.y:or.y2-sr;ur(Ar)<=er&&ur(fr)<=er&&ur(hr)<=er&&ur(pr)<=er&&ur(gr)<=er&&ur(mr)<=er&&(dr=!0)}return or.type&gE.CLOSE_PATH&&ur(ar-lr)<=er&&ur(sr-cr)<=er&&(dr=!0),dr?[]:or}))},er.MATRIX=O,er.ROTATE=function(er,tr,rr){void 0===tr&&(tr=0),void 0===rr&&(rr=0),a$1(er,tr,rr);var nr=Math.sin(er),ir=Math.cos(er);return O(ir,nr,-nr,ir,tr-tr*ir+rr*nr,rr-tr*nr-rr*ir)},er.TRANSLATE=function(er,tr){return void 0===tr&&(tr=0),a$1(er,tr),O(1,0,0,1,er,tr)},er.SCALE=function(er,tr){return void 0===tr&&(tr=er),a$1(er,tr),O(er,0,0,tr,0,0)},er.SKEW_X=function(er){return a$1(er),O(1,0,Math.atan(er),1,0,0)},er.SKEW_Y=function(er){return a$1(er),O(1,Math.atan(er),0,1,0,0)},er.X_AXIS_SYMMETRY=function(er){return void 0===er&&(er=0),a$1(er),O(-1,0,0,1,er,0)},er.Y_AXIS_SYMMETRY=function(er){return void 0===er&&(er=0),a$1(er),O(1,0,0,-1,0,er)},er.A_TO_C=function(){return u((function(er,tr,rr){return gE.ARC===er.type?function(er,tr,rr){var nr,ir,or,ar;er.cX||o$1(er,tr,rr);for(var sr=Math.min(er.phi1,er.phi2),lr=Math.max(er.phi1,er.phi2)-sr,cr=Math.ceil(lr/90),ur=new Array(cr),dr=tr,hr=rr,pr=0;pr<cr;pr++){var Ar=c$1(er.phi1,er.phi2,pr/cr),fr=c$1(er.phi1,er.phi2,(pr+1)/cr),gr=fr-Ar,mr=4/3*Math.tan(gr*uE/4),_r=[Math.cos(Ar*uE)-mr*Math.sin(Ar*uE),Math.sin(Ar*uE)+mr*Math.cos(Ar*uE)],vr=_r[0],yr=_r[1],br=[Math.cos(fr*uE),Math.sin(fr*uE)],wr=br[0],Sr=br[1],xr=[wr+mr*Math.sin(fr*uE),Sr-mr*Math.cos(fr*uE)],kr=xr[0],Cr=xr[1];ur[pr]={relative:er.relative,type:gE.CURVE_TO};var Br=function H(tr,rr){var nr=i$2([tr*er.rX,rr*er.rY],er.xRot),ir=nr[0],or=nr[1];return[er.cX+ir,er.cY+or]};nr=Br(vr,yr),ur[pr].x1=nr[0],ur[pr].y1=nr[1],ir=Br(kr,Cr),ur[pr].x2=ir[0],ur[pr].y2=ir[1],or=Br(wr,Sr),ur[pr].x=or[0],ur[pr].y=or[1],er.relative&&(ur[pr].x1-=dr,ur[pr].y1-=hr,ur[pr].x2-=dr,ur[pr].y2-=hr,ur[pr].x-=dr,ur[pr].y-=hr),dr=(ar=[ur[pr].x,ur[pr].y])[0],hr=ar[1]}return ur}(er,er.relative?0:tr,er.relative?0:rr):er}))},er.ANNOTATE_ARCS=function(){return u((function(er,tr,rr){return er.relative&&(tr=0,rr=0),gE.ARC===er.type&&o$1(er,tr,rr),er}))},er.CLONE=function T(){return function(er){var tr={};for(var rr in er)tr[rr]=er[rr];return tr}},er.CALCULATE_BOUNDS=function(){var er=r(),tr=n(),rr=e(),nr=u((function(ir,or,ar){var sr=rr(tr(er(function t(er){var tr={};for(var rr in er)tr[rr]=er[rr];return tr}(ir))));function O(er){er>nr.maxX&&(nr.maxX=er),er<nr.minX&&(nr.minX=er)}function T(er){er>nr.maxY&&(nr.maxY=er),er<nr.minY&&(nr.minY=er)}if(sr.type&gE.DRAWING_COMMANDS&&(O(or),T(ar)),sr.type&gE.HORIZ_LINE_TO&&O(sr.x),sr.type&gE.VERT_LINE_TO&&T(sr.y),sr.type&gE.LINE_TO&&(O(sr.x),T(sr.y)),sr.type&gE.CURVE_TO){O(sr.x),T(sr.y);for(var lr=0,cr=p$1(or,sr.x1,sr.x2,sr.x);lr<cr.length;lr++)0<(kr=cr[lr])&&1>kr&&O(m$1(or,sr.x1,sr.x2,sr.x,kr));for(var ur=0,dr=p$1(ar,sr.y1,sr.y2,sr.y);ur<dr.length;ur++)0<(kr=dr[ur])&&1>kr&&T(m$1(ar,sr.y1,sr.y2,sr.y,kr))}if(sr.type&gE.ARC){O(sr.x),T(sr.y),o$1(sr,or,ar);for(var hr=sr.xRot/180*Math.PI,pr=Math.cos(hr)*sr.rX,Ar=Math.sin(hr)*sr.rX,fr=-Math.sin(hr)*sr.rY,gr=Math.cos(hr)*sr.rY,mr=sr.phi1<sr.phi2?[sr.phi1,sr.phi2]:-180>sr.phi2?[sr.phi2+360,sr.phi1+360]:[sr.phi2,sr.phi1],_r=mr[0],vr=mr[1],yr=function I(er){var tr=er[0],rr=er[1],nr=180*Math.atan2(rr,tr)/Math.PI;return nr<_r?nr+360:nr},br=0,wr=s$1(fr,-pr,0).map(yr);br<wr.length;br++)(kr=wr[br])>_r&&kr<vr&&O(y$1(sr.cX,pr,fr,kr));for(var Sr=0,xr=s$1(gr,-Ar,0).map(yr);Sr<xr.length;Sr++){var kr;(kr=xr[Sr])>_r&&kr<vr&&T(y$1(sr.cY,Ar,gr,kr))}}return ir}));return nr.minX=1/0,nr.maxX=-1/0,nr.minY=1/0,nr.maxY=-1/0,nr}}(cE||(cE={}));var dE,hE=function(){function t(){}return t.prototype.round=function(er){return this.transform(cE.ROUND(er))},t.prototype.toAbs=function(){return this.transform(cE.TO_ABS())},t.prototype.toRel=function(){return this.transform(cE.TO_REL())},t.prototype.normalizeHVZ=function(er,tr,rr){return this.transform(cE.NORMALIZE_HVZ(er,tr,rr))},t.prototype.normalizeST=function(){return this.transform(cE.NORMALIZE_ST())},t.prototype.qtToC=function(){return this.transform(cE.QT_TO_C())},t.prototype.aToC=function(){return this.transform(cE.A_TO_C())},t.prototype.sanitize=function(er){return this.transform(cE.SANITIZE(er))},t.prototype.translate=function(er,tr){return this.transform(cE.TRANSLATE(er,tr))},t.prototype.scale=function(er,tr){return this.transform(cE.SCALE(er,tr))},t.prototype.rotate=function(er,tr,rr){return this.transform(cE.ROTATE(er,tr,rr))},t.prototype.matrix=function(er,tr,rr,nr,ir,or){return this.transform(cE.MATRIX(er,tr,rr,nr,ir,or))},t.prototype.skewX=function(er){return this.transform(cE.SKEW_X(er))},t.prototype.skewY=function(er){return this.transform(cE.SKEW_Y(er))},t.prototype.xSymmetry=function(er){return this.transform(cE.X_AXIS_SYMMETRY(er))},t.prototype.ySymmetry=function(er){return this.transform(cE.Y_AXIS_SYMMETRY(er))},t.prototype.annotateArcs=function(){return this.transform(cE.ANNOTATE_ARCS())},t}(),pE=function v(er){return" "===er||"\t"===er||"\r"===er||"\n"===er},AE=function l(er){return"0".charCodeAt(0)<=er.charCodeAt(0)&&er.charCodeAt(0)<="9".charCodeAt(0)},fE=function(er){function e(){var tr=er.call(this)||this;return tr.curNumber="",tr.curCommandType=-1,tr.curCommandRelative=!1,tr.canParseCommandOrComma=!0,tr.curNumberHasExp=!1,tr.curNumberHasExpDigits=!1,tr.curNumberHasDecimal=!1,tr.curArgs=[],tr}return r$1(e,er),e.prototype.finish=function(er){if(void 0===er&&(er=[]),this.parse(" ",er),0!==this.curArgs.length||!this.canParseCommandOrComma)throw new SyntaxError("Unterminated command at the path end.");return er},e.prototype.parse=function(er,tr){var rr=this;void 0===tr&&(tr=[]);for(var nr=function i(er){tr.push(er),rr.curArgs.length=0,rr.canParseCommandOrComma=!0},ir=0;ir<er.length;ir++){var or=er[ir],ar=!(this.curCommandType!==gE.ARC||3!==this.curArgs.length&&4!==this.curArgs.length||1!==this.curNumber.length||"0"!==this.curNumber&&"1"!==this.curNumber),sr=AE(or)&&("0"===this.curNumber&&"0"===or||ar);if(!AE(or)||sr)if("e"!==or&&"E"!==or)if("-"!==or&&"+"!==or||!this.curNumberHasExp||this.curNumberHasExpDigits)if("."!==or||this.curNumberHasExp||this.curNumberHasDecimal||ar){if(this.curNumber&&-1!==this.curCommandType){var lr=Number(this.curNumber);if(isNaN(lr))throw new SyntaxError("Invalid number ending at "+ir);if(this.curCommandType===gE.ARC)if(0===this.curArgs.length||1===this.curArgs.length){if(0>lr)throw new SyntaxError('Expected positive number, got "'+lr+'" at index "'+ir+'"')}else if((3===this.curArgs.length||4===this.curArgs.length)&&"0"!==this.curNumber&&"1"!==this.curNumber)throw new SyntaxError('Expected a flag, got "'+this.curNumber+'" at index "'+ir+'"');this.curArgs.push(lr),this.curArgs.length===mE[this.curCommandType]&&(gE.HORIZ_LINE_TO===this.curCommandType?nr({type:gE.HORIZ_LINE_TO,relative:this.curCommandRelative,x:lr}):gE.VERT_LINE_TO===this.curCommandType?nr({type:gE.VERT_LINE_TO,relative:this.curCommandRelative,y:lr}):this.curCommandType===gE.MOVE_TO||this.curCommandType===gE.LINE_TO||this.curCommandType===gE.SMOOTH_QUAD_TO?(nr({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),gE.MOVE_TO===this.curCommandType&&(this.curCommandType=gE.LINE_TO)):this.curCommandType===gE.CURVE_TO?nr({type:gE.CURVE_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x2:this.curArgs[2],y2:this.curArgs[3],x:this.curArgs[4],y:this.curArgs[5]}):this.curCommandType===gE.SMOOTH_CURVE_TO?nr({type:gE.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===gE.QUAD_TO?nr({type:gE.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===gE.ARC&&nr({type:gE.ARC,relative:this.curCommandRelative,rX:this.curArgs[0],rY:this.curArgs[1],xRot:this.curArgs[2],lArcFlag:this.curArgs[3],sweepFlag:this.curArgs[4],x:this.curArgs[5],y:this.curArgs[6]})),this.curNumber="",this.curNumberHasExpDigits=!1,this.curNumberHasExp=!1,this.curNumberHasDecimal=!1,this.canParseCommandOrComma=!0}if(!pE(or))if(","===or&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if("+"!==or&&"-"!==or&&"."!==or)if(sr)this.curNumber=or,this.curNumberHasDecimal=!1;else{if(0!==this.curArgs.length)throw new SyntaxError("Unterminated command at index "+ir+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+or+'" at index '+ir+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,"z"!==or&&"Z"!==or)if("h"===or||"H"===or)this.curCommandType=gE.HORIZ_LINE_TO,this.curCommandRelative="h"===or;else if("v"===or||"V"===or)this.curCommandType=gE.VERT_LINE_TO,this.curCommandRelative="v"===or;else if("m"===or||"M"===or)this.curCommandType=gE.MOVE_TO,this.curCommandRelative="m"===or;else if("l"===or||"L"===or)this.curCommandType=gE.LINE_TO,this.curCommandRelative="l"===or;else if("c"===or||"C"===or)this.curCommandType=gE.CURVE_TO,this.curCommandRelative="c"===or;else if("s"===or||"S"===or)this.curCommandType=gE.SMOOTH_CURVE_TO,this.curCommandRelative="s"===or;else if("q"===or||"Q"===or)this.curCommandType=gE.QUAD_TO,this.curCommandRelative="q"===or;else if("t"===or||"T"===or)this.curCommandType=gE.SMOOTH_QUAD_TO,this.curCommandRelative="t"===or;else{if("a"!==or&&"A"!==or)throw new SyntaxError('Unexpected character "'+or+'" at index '+ir+".");this.curCommandType=gE.ARC,this.curCommandRelative="a"===or}else tr.push({type:gE.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=or,this.curNumberHasDecimal="."===or}else this.curNumber+=or,this.curNumberHasDecimal=!0;else this.curNumber+=or;else this.curNumber+=or,this.curNumberHasExp=!0;else this.curNumber+=or,this.curNumberHasExpDigits=this.curNumberHasExp}return tr},e.prototype.transform=function(er){return Object.create(this,{parse:{value:function value(tr,rr){void 0===rr&&(rr=[]);for(var nr=0,ir=Object.getPrototypeOf(this).parse.call(this,tr);nr<ir.length;nr++){var or=ir[nr],ar=er(or);Array.isArray(ar)?rr.push.apply(rr,ar):rr.push(ar)}return rr}}})},e}(hE),gE=function(er){function i(tr){var rr=er.call(this)||this;return rr.commands="string"==typeof tr?i.parse(tr):tr,rr}return r$1(i,er),i.prototype.encode=function(){return i.encode(this.commands)},i.prototype.getBounds=function(){var er=cE.CALCULATE_BOUNDS();return this.transform(er),er},i.prototype.transform=function(er){for(var tr=[],rr=0,nr=this.commands;rr<nr.length;rr++){var ir=er(nr[rr]);Array.isArray(ir)?tr.push.apply(tr,ir):tr.push(ir)}return this.commands=tr,this},i.encode=function(er){return function e$1(er){var tr="";Array.isArray(er)||(er=[er]);for(var rr=0;rr<er.length;rr++){var nr=er[rr];if(nr.type===gE.CLOSE_PATH)tr+="z";else if(nr.type===gE.HORIZ_LINE_TO)tr+=(nr.relative?"h":"H")+nr.x;else if(nr.type===gE.VERT_LINE_TO)tr+=(nr.relative?"v":"V")+nr.y;else if(nr.type===gE.MOVE_TO)tr+=(nr.relative?"m":"M")+nr.x+" "+nr.y;else if(nr.type===gE.LINE_TO)tr+=(nr.relative?"l":"L")+nr.x+" "+nr.y;else if(nr.type===gE.CURVE_TO)tr+=(nr.relative?"c":"C")+nr.x1+" "+nr.y1+" "+nr.x2+" "+nr.y2+" "+nr.x+" "+nr.y;else if(nr.type===gE.SMOOTH_CURVE_TO)tr+=(nr.relative?"s":"S")+nr.x2+" "+nr.y2+" "+nr.x+" "+nr.y;else if(nr.type===gE.QUAD_TO)tr+=(nr.relative?"q":"Q")+nr.x1+" "+nr.y1+" "+nr.x+" "+nr.y;else if(nr.type===gE.SMOOTH_QUAD_TO)tr+=(nr.relative?"t":"T")+nr.x+" "+nr.y;else{if(nr.type!==gE.ARC)throw new Error('Unexpected command type "'+nr.type+'" at index '+rr+".");tr+=(nr.relative?"a":"A")+nr.rX+" "+nr.rY+" "+nr.xRot+" "+ +nr.lArcFlag+" "+ +nr.sweepFlag+" "+nr.x+" "+nr.y}}return tr}(er)},i.parse=function(er){var tr=new fE,rr=[];return tr.parse(er,rr),tr.finish(rr),rr},i.CLOSE_PATH=1,i.MOVE_TO=2,i.HORIZ_LINE_TO=4,i.VERT_LINE_TO=8,i.LINE_TO=16,i.CURVE_TO=32,i.SMOOTH_CURVE_TO=64,i.QUAD_TO=128,i.SMOOTH_QUAD_TO=256,i.ARC=512,i.LINE_COMMANDS=i.LINE_TO|i.HORIZ_LINE_TO|i.VERT_LINE_TO,i.DRAWING_COMMANDS=i.HORIZ_LINE_TO|i.VERT_LINE_TO|i.LINE_TO|i.CURVE_TO|i.SMOOTH_CURVE_TO|i.QUAD_TO|i.SMOOTH_QUAD_TO|i.ARC,i}(hE),mE=((dE={})[gE.MOVE_TO]=2,dE[gE.LINE_TO]=2,dE[gE.HORIZ_LINE_TO]=1,dE[gE.VERT_LINE_TO]=1,dE[gE.CLOSE_PATH]=0,dE[gE.QUAD_TO]=4,dE[gE.SMOOTH_QUAD_TO]=2,dE[gE.CURVE_TO]=6,dE[gE.SMOOTH_CURVE_TO]=4,dE[gE.ARC]=7,dE),_E=Fv.f;Yv({target:"Reflect",stat:!0},{deleteProperty:function deleteProperty(er,tr){var rr=_E(Vv(er),tr);return!(rr&&!rr.configurable)&&delete er[tr]}});var vE=jv.Reflect.deleteProperty,yE=by("Array").values,bE=Array.prototype,wE={DOMTokenList:!0,NodeList:!0},SE=function values_1(er){var tr=er.values;return er===bE||er instanceof Array&&tr===bE.values||wE.hasOwnProperty(Aw(er))?yE:tr},xE=Ly.trim,kE=dv.parseInt,CE=/^[+-]?0[Xx]/,BE=8!==kE(ky+"08")||22!==kE(ky+"0x16")?function parseInt(er,tr){var rr=xE(String(er));return kE(rr,tr>>>0||(CE.test(rr)?16:10))}:kE;Yv({global:!0,forced:parseInt!=BE},{parseInt:BE});var EE=jv.parseInt,NE=ub,LE=Qw,TE=FS,PE=rx,FE=Object.isExtensible,UE=fails((function(){FE(1)}));_export({target:"Object",stat:!0,forced:UE},{isExtensible:function isExtensible(er){return!!isObject(er)&&(!FE||FE(er))}});var IE=ov.onFreeze,ME=Object.preventExtensions,OE=fails((function(){ME(1)}));_export({target:"Object",stat:!0,forced:OE,sham:!iv},{preventExtensions:function preventExtensions(er){return ME&&isObject(er)?ME(IE(er)):er}});var QE=!hv((function(){return Object.isExtensible(Object.preventExtensions({}))})),DE=createCommonjsModule((function(er){var tr=Kv.f,rr=ay("meta"),nr=0,ir=Object.isExtensible||function(){return!0},or=function setMetadata(er){tr(er,rr,{value:{objectID:"O"+ ++nr,weakData:{}}})},ar=er.exports={REQUIRED:!1,fastKey:function fastKey(er,tr){if(!xv(er))return"symbol"==_typeof(er)?er:("string"==typeof er?"S":"P")+er;if(!Bv(er,rr)){if(!ir(er))return"F";if(!tr)return"E";or(er)}return er[rr].objectID},getWeakData:function getWeakData(er,tr){if(!Bv(er,rr)){if(!ir(er))return!0;if(!tr)return!1;or(er)}return er[rr].weakData},onFreeze:function onFreeze(er){return QE&&ar.REQUIRED&&ir(er)&&!Bv(er,rr)&&or(er),er}};Lb[rr]=!0})),jE=Kv.f,HE=Gy.forEach,GE=Db.set,VE=Db.getterFor,zE=Kv.f,KE=DE.fastKey,qE=Db.set,WE=Db.getterFor,XE=(function collection(er,tr,rr){var nr,ir=-1!==er.indexOf("Map"),or=-1!==er.indexOf("Weak"),ar=ir?"set":"add",sr=dv[er],lr=sr&&sr.prototype,cr={};if(pv&&"function"==typeof sr&&(or||lr.forEach&&!hv((function(){(new sr).entries().next()})))){nr=tr((function(tr,rr){GE(Hx(tr,nr,er),{type:er,collection:new sr}),null!=rr&&Gx(rr,tr[ar],tr,ir)}));var ur=VE(er);HE(["add","clear","delete","forEach","get","has","set","keys","values","entries"],(function(er){var tr="add"==er||"set"==er;!(er in lr)||or&&"clear"==er||qv(nr.prototype,er,(function(rr,nr){var ir=ur(this).collection;if(!tr&&or&&!xv(rr))return"get"==er&&void 0;var ar=ir[er](0===rr?0:rr,nr);return tr?this:ar}))})),or||jE(nr.prototype,"size",{configurable:!0,get:function get(){return ur(this).collection.size}})}else nr=rr.getConstructor(tr,er,ir,ar),DE.REQUIRED=!0;_w(nr,er,!1,!0),cr[er]=nr,Yv({global:!0,forced:!0},cr),or||rr.setStrong(nr,er,ir)}("Map",(function(er){return function Map(){return er(this,arguments.length?arguments[0]:void 0)}}),{getConstructor:function getConstructor(er,tr,rr,nr){var ir=er((function(er,or){Hx(er,ir,tr),qE(er,{type:tr,index:cw(null),first:void 0,last:void 0,size:0}),pv||(er.size=0),null!=or&&Gx(or,er[nr],er,rr)})),or=WE(tr),ar=function define(er,tr,rr){var nr,ir,ar=or(er),lr=sr(er,tr);return lr?lr.value=rr:(ar.last=lr={index:ir=KE(tr,!0),key:tr,value:rr,previous:nr=ar.last,next:void 0,removed:!1},ar.first||(ar.first=lr),nr&&(nr.next=lr),pv?ar.size++:er.size++,"F"!==ir&&(ar.index[ir]=lr)),er},sr=function getEntry(er,tr){var rr,nr=or(er),ir=KE(tr);if("F"!==ir)return nr.index[ir];for(rr=nr.first;rr;rr=rr.next)if(rr.key==tr)return rr};return Qx(ir.prototype,{clear:function clear(){for(var er=or(this),tr=er.index,rr=er.first;rr;)rr.removed=!0,rr.previous&&(rr.previous=rr.previous.next=void 0),delete tr[rr.index],rr=rr.next;er.first=er.last=void 0,pv?er.size=0:this.size=0},delete:function _delete(er){var tr=this,rr=or(tr),nr=sr(tr,er);if(nr){var ir=nr.next,ar=nr.previous;delete rr.index[nr.index],nr.removed=!0,ar&&(ar.next=ir),ir&&(ir.previous=ar),rr.first==nr&&(rr.first=ir),rr.last==nr&&(rr.last=ar),pv?rr.size--:tr.size--}return!!nr},forEach:function forEach(er){for(var tr,rr=or(this),nr=Gv(er,arguments.length>1?arguments[1]:void 0,3);tr=tr?tr.next:rr.first;)for(nr(tr.value,tr.key,this);tr&&tr.removed;)tr=tr.previous},has:function has(er){return!!sr(this,er)}}),Qx(ir.prototype,rr?{get:function get(er){var tr=sr(this,er);return tr&&tr.value},set:function set(er,tr){return ar(this,0===er?0:er,tr)}}:{add:function add(er){return ar(this,er=0===er?0:er,er)}}),pv&&zE(ir.prototype,"size",{get:function get(){return or(this).size}}),ir},setStrong:function setStrong(er,tr,rr){var nr=tr+" Iterator",ir=WE(tr),or=WE(nr);Bw(er,tr,(function(er,tr){qE(this,{type:nr,target:er,state:ir(er),kind:tr,last:void 0})}),(function(){for(var er=or(this),tr=er.kind,rr=er.last;rr&&rr.removed;)rr=rr.previous;return er.target&&(er.last=rr=rr?rr.next:er.state.first)?"keys"==tr?{value:rr.key,done:!1}:"values"==tr?{value:rr.value,done:!1}:{value:[rr.key,rr.value],done:!1}:(er.target=void 0,{value:void 0,done:!0})}),rr?"entries":"values",!rr,!0),jx(tr)}}),jv.Map),YE=zy("Reflect","apply"),JE=Function.apply,$E=!hv((function(){YE((function(){}))}));Yv({target:"Reflect",stat:!0,forced:$E},{apply:function apply(er,tr,rr){return Hv(er),Vv(rr),YE?YE(er,tr,rr):JE.call(er,tr,rr)}});var ZE=jv.Reflect.apply;Yv({target:"Reflect",stat:!0,sham:!jb},{getPrototypeOf:function getPrototypeOf(er){return Vb(Vv(er))}});var eN=jv.Reflect.getPrototypeOf;function _typeof$1(er){return(_typeof$1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function _typeof(er){return typeof er}:function _typeof(er){return er&&"function"==typeof Symbol&&er.constructor===Symbol&&er!==Symbol.prototype?"symbol":typeof er})(er)}var tN=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],rN=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function processCanvasRGBA(er,tr,rr,nr,ir,or){if(!(isNaN(or)||or<1)){or|=0;var ar=function getImageDataFromCanvas(er,tr,rr,nr,ir){if("string"==typeof er&&(er=document.getElementById(er)),!er||"object"!==_typeof$1(er)||!("getContext"in er))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var or=er.getContext("2d");try{return or.getImageData(tr,rr,nr,ir)}catch(er){throw new Error("unable to access image data: "+er)}}(er,tr,rr,nr,ir);ar=function processImageDataRGBA(er,tr,rr,nr,ir,or){for(var ar,sr=er.data,lr=2*or+1,cr=nr-1,ur=ir-1,dr=or+1,hr=dr*(dr+1)/2,pr=new nN,Ar=pr,fr=1;fr<lr;fr++)Ar=Ar.next=new nN,fr===dr&&(ar=Ar);Ar.next=pr;for(var gr=null,mr=null,_r=0,vr=0,yr=tN[or],br=rN[or],wr=0;wr<ir;wr++){Ar=pr;for(var Sr=sr[vr],xr=sr[vr+1],kr=sr[vr+2],Cr=sr[vr+3],Br=0;Br<dr;Br++)Ar.r=Sr,Ar.g=xr,Ar.b=kr,Ar.a=Cr,Ar=Ar.next;for(var Er=0,Nr=0,Lr=0,Tr=0,Pr=dr*Sr,Fr=dr*xr,Ur=dr*kr,Ir=dr*Cr,Rr=hr*Sr,Mr=hr*xr,Or=hr*kr,Qr=hr*Cr,Dr=1;Dr<dr;Dr++){var jr=vr+((cr<Dr?cr:Dr)<<2),Hr=sr[jr],Gr=sr[jr+1],Vr=sr[jr+2],zr=sr[jr+3],Kr=dr-Dr;Rr+=(Ar.r=Hr)*Kr,Mr+=(Ar.g=Gr)*Kr,Or+=(Ar.b=Vr)*Kr,Qr+=(Ar.a=zr)*Kr,Er+=Hr,Nr+=Gr,Lr+=Vr,Tr+=zr,Ar=Ar.next}gr=pr,mr=ar;for(var qr=0;qr<nr;qr++){var Wr=Qr*yr>>br;if(sr[vr+3]=Wr,0!==Wr){var Xr=255/Wr;sr[vr]=(Rr*yr>>br)*Xr,sr[vr+1]=(Mr*yr>>br)*Xr,sr[vr+2]=(Or*yr>>br)*Xr}else sr[vr]=sr[vr+1]=sr[vr+2]=0;Rr-=Pr,Mr-=Fr,Or-=Ur,Qr-=Ir,Pr-=gr.r,Fr-=gr.g,Ur-=gr.b,Ir-=gr.a;var Yr=qr+or+1;Yr=_r+(Yr<cr?Yr:cr)<<2,Rr+=Er+=gr.r=sr[Yr],Mr+=Nr+=gr.g=sr[Yr+1],Or+=Lr+=gr.b=sr[Yr+2],Qr+=Tr+=gr.a=sr[Yr+3],gr=gr.next;var Jr=mr,$r=Jr.r,Zr=Jr.g,Tn=Jr.b,Un=Jr.a;Pr+=$r,Fr+=Zr,Ur+=Tn,Ir+=Un,Er-=$r,Nr-=Zr,Lr-=Tn,Tr-=Un,mr=mr.next,vr+=4}_r+=nr}for(var Qn=0;Qn<nr;Qn++){var Dn=sr[vr=Qn<<2],Hn=sr[vr+1],Gn=sr[vr+2],Vn=sr[vr+3],zn=dr*Dn,Kn=dr*Hn,Wn=dr*Gn,Xn=dr*Vn,Yn=hr*Dn,Jn=hr*Hn,$n=hr*Gn,Zn=hr*Vn;Ar=pr;for(var ei=0;ei<dr;ei++)Ar.r=Dn,Ar.g=Hn,Ar.b=Gn,Ar.a=Vn,Ar=Ar.next;for(var ti=nr,ri=0,ni=0,ii=0,oi=0,ai=1;ai<=or;ai++){vr=ti+Qn<<2;var si=dr-ai;Yn+=(Ar.r=Dn=sr[vr])*si,Jn+=(Ar.g=Hn=sr[vr+1])*si,$n+=(Ar.b=Gn=sr[vr+2])*si,Zn+=(Ar.a=Vn=sr[vr+3])*si,oi+=Dn,ri+=Hn,ni+=Gn,ii+=Vn,Ar=Ar.next,ai<ur&&(ti+=nr)}vr=Qn,gr=pr,mr=ar;for(var li=0;li<ir;li++){var ui=vr<<2;sr[ui+3]=Vn=Zn*yr>>br,Vn>0?(Vn=255/Vn,sr[ui]=(Yn*yr>>br)*Vn,sr[ui+1]=(Jn*yr>>br)*Vn,sr[ui+2]=($n*yr>>br)*Vn):sr[ui]=sr[ui+1]=sr[ui+2]=0,Yn-=zn,Jn-=Kn,$n-=Wn,Zn-=Xn,zn-=gr.r,Kn-=gr.g,Wn-=gr.b,Xn-=gr.a,ui=Qn+((ui=li+dr)<ur?ui:ur)*nr<<2,Yn+=oi+=gr.r=sr[ui],Jn+=ri+=gr.g=sr[ui+1],$n+=ni+=gr.b=sr[ui+2],Zn+=ii+=gr.a=sr[ui+3],gr=gr.next,zn+=Dn=mr.r,Kn+=Hn=mr.g,Wn+=Gn=mr.b,Xn+=Vn=mr.a,oi-=Dn,ri-=Hn,ni-=Gn,ii-=Vn,mr=mr.next,vr+=nr}}return er}(ar,0,0,nr,ir,or),er.getContext("2d").putImageData(ar,tr,rr)}}var nN=function BlurStack(){!function _classCallCheck$2(er,tr){if(!(er instanceof tr))throw new TypeError("Cannot call a class as a function")}(this,BlurStack),this.r=0,this.g=0,this.b=0,this.a=0,this.next=null};function compressSpaces(er){return er.replace(/(?!\u3000)\s+/gm," ")}function trimLeft$1(er){return er.replace(/^[\n \t]+/,"")}function trimRight$1(er){return er.replace(/[\n \t]+$/,"")}function toNumbers(er){var tr=(er||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[];return lb(tr).call(tr,Ry)}var iN=/^[A-Z-]+$/;function normalizeAttributeName(er){return iN.test(er)?er.toLowerCase():er}function parseExternalUrl(er){var tr=er.match(/url\(('([^']+)'|"([^"]+)"|([^'"\)]+))\)/)||[];return tr[2]||tr[3]||tr[4]}function normalizeColor(er){if(!xy(er).call(er,"rgb"))return er;var tr=3;return er.replace(/\d+(\.\d+)?/g,(function(er,rr){return tr--&&rr?String(Math.round(Ry(er))):er}))}var oN=/(\[[^\]]+\])/g,aN=/(#[^\s\+>~\.\[:]+)/g,sN=/(\.[^\s\+>~\.\[:]+)/g,lN=/(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi,cN=/(:[\w-]+\([^\)]*\))/gi,uN=/(:[^\s\+>~\.\[:]+)/g,dN=/([^\s\+>~\.\[:]+)/g;function findSelectorMatch(er,tr){var rr=er.match(tr);return rr?[er.replace(tr," "),rr.length]:[er,0]}function getSelectorSpecificity(er){var tr=[0,0,0],rr=er.replace(/:not\(([^\)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),nr=0,ir=findSelectorMatch(rr,oN),or=sx(ir,2);rr=or[0],nr=or[1],tr[1]+=nr;var ar=findSelectorMatch(rr,aN),sr=sx(ar,2);rr=sr[0],nr=sr[1],tr[0]+=nr;var lr=findSelectorMatch(rr,sN),cr=sx(lr,2);rr=cr[0],nr=cr[1],tr[1]+=nr;var ur=findSelectorMatch(rr,lN),dr=sx(ur,2);rr=dr[0],nr=dr[1],tr[2]+=nr;var hr=findSelectorMatch(rr,cN),pr=sx(hr,2);rr=pr[0],nr=pr[1],tr[1]+=nr;var Ar=findSelectorMatch(rr,uN),fr=sx(Ar,2);rr=fr[0],nr=fr[1],tr[1]+=nr;var gr=findSelectorMatch(rr=rr.replace(/[\*\s\+>~]/g," ").replace(/[#\.]/g," "),dN),mr=sx(gr,2);return rr=mr[0],nr=mr[1],tr[2]+=nr,tr.join("")}function vectorMagnitude(er){return Math.sqrt(Math.pow(er[0],2)+Math.pow(er[1],2))}function vectorsRatio(er,tr){return(er[0]*tr[0]+er[1]*tr[1])/(vectorMagnitude(er)*vectorMagnitude(tr))}function vectorsAngle(er,tr){return(er[0]*tr[1]<er[1]*tr[0]?-1:1)*Math.acos(vectorsRatio(er,tr))}function CB1(er){return er*er*er}function CB2(er){return 3*er*er*(1-er)}function CB3(er){return 3*er*(1-er)*(1-er)}function CB4(er){return(1-er)*(1-er)*(1-er)}function QB1(er){return er*er}function QB2(er){return 2*er*(1-er)}function QB3(er){return(1-er)*(1-er)}var hN=function(){function Property(er,tr,rr){AC(this,Property),this.document=er,this.name=tr,this.value=rr,this.isNormalizedColor=!1}return fC(Property,[{key:"split",value:function split(){var er,tr,rr=arguments.length>0&&void 0!==arguments[0]?arguments[0]:" ",nr=this.document,ir=this.name;return lb(er=rB(tr=compressSpaces(this.getString())).call(tr).split(rr)).call(er,(function(er){return new Property(nr,ir,er)}))}},{key:"hasValue",value:function hasValue(er){var tr=this.value;return null!==tr&&""!==tr&&(er||0!==tr)&&void 0!==tr}},{key:"isString",value:function isString(er){var tr=this.value,rr="string"==typeof tr;return rr&&er?er.test(tr):rr}},{key:"isUrlDefinition",value:function isUrlDefinition(){return this.isString(/^url\(/)}},{key:"isPixels",value:function isPixels(){if(!this.hasValue())return!1;var er=this.getString();switch(!0){case/px$/.test(er):case/^[0-9]+$/.test(er):return!0;default:return!1}}},{key:"setValue",value:function setValue(er){return this.value=er,this}},{key:"getValue",value:function getValue(er){return void 0===er||this.hasValue()?this.value:er}},{key:"getNumber",value:function getNumber(er){if(!this.hasValue())return void 0===er?0:Ry(er);var tr=this.value,rr=Ry(tr);return this.isString(/%$/)&&(rr/=100),rr}},{key:"getString",value:function getString(er){return void 0===er||this.hasValue()?void 0===this.value?"":String(this.value):String(er)}},{key:"getColor",value:function getColor(er){var tr=this.getString(er);return this.isNormalizedColor||(this.isNormalizedColor=!0,tr=normalizeColor(tr),this.value=tr),tr}},{key:"getDpi",value:function getDpi(){return 96}},{key:"getRem",value:function getRem(){return this.document.rootEmSize}},{key:"getEm",value:function getEm(){return this.document.emSize}},{key:"getUnits",value:function getUnits(){return this.getString().replace(/[0-9\.\-]/g,"")}},{key:"getPixels",value:function getPixels(er){var tr=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.hasValue())return 0;var rr="boolean"==typeof er?[void 0,er]:[er],nr=sx(rr,2),ir=nr[0],or=nr[1],ar=this.document.screen.viewPort;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(ar.computeSize("x"),ar.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(ar.computeSize("x"),ar.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*ar.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*ar.computeSize("y");case this.isString(/rem$/):return this.getNumber()*this.getRem();case this.isString(/em$/):return this.getNumber()*this.getEm();case this.isString(/ex$/):return this.getNumber()*this.getEm()/2;case this.isString(/px$/):return this.getNumber();case this.isString(/pt$/):return this.getNumber()*this.getDpi()*(1/72);case this.isString(/pc$/):return 15*this.getNumber();case this.isString(/cm$/):return this.getNumber()*this.getDpi()/2.54;case this.isString(/mm$/):return this.getNumber()*this.getDpi()/25.4;case this.isString(/in$/):return this.getNumber()*this.getDpi();case this.isString(/%$/)&&or:return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*ar.computeSize(ir);default:var sr=this.getNumber();return tr&&sr<1?sr*ar.computeSize(ir):sr}}},{key:"getMilliseconds",value:function getMilliseconds(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():1e3*this.getNumber():0}},{key:"getRadians",value:function getRadians(){if(!this.hasValue())return 0;switch(!0){case this.isString(/deg$/):return this.getNumber()*(Math.PI/180);case this.isString(/grad$/):return this.getNumber()*(Math.PI/200);case this.isString(/rad$/):return this.getNumber();default:return this.getNumber()*(Math.PI/180)}}},{key:"getDefinition",value:function getDefinition(){var er=this.getString(),tr=er.match(/#([^\)'"]+)/);return tr&&(tr=tr[1]),tr||(tr=er),this.document.definitions[tr]}},{key:"getFillStyleDefinition",value:function getFillStyleDefinition(er,tr){var rr=this.getDefinition();if(!rr)return null;if("function"==typeof rr.createGradient)return rr.createGradient(this.document.ctx,er,tr);if("function"==typeof rr.createPattern){if(rr.getHrefAttribute().hasValue()){var nr=rr.getAttribute("patternTransform");rr=rr.getHrefAttribute().getDefinition(),nr.hasValue()&&rr.getAttribute("patternTransform",!0).setValue(nr.value)}return rr.createPattern(this.document.ctx,er,tr)}return null}},{key:"getTextBaseline",value:function getTextBaseline(){return this.hasValue()?Property.textBaselineMapping[this.getString()]:null}},{key:"addOpacity",value:function addOpacity(er){for(var tr=this.getColor(),rr=tr.length,nr=0,ir=0;ir<rr&&(","===tr[ir]&&nr++,3!==nr);ir++);if(er.hasValue()&&this.isString()&&3!==nr){var or=new nB(tr);or.ok&&(or.alpha=er.getNumber(),tr=or.toRGBA())}return new Property(this.document,this.name,tr)}}],[{key:"empty",value:function empty(er){return new Property(er,"EMPTY","")}}]),Property}();hN.textBaselineMapping={baseline:"alphabetic","before-edge":"top","text-before-edge":"top",middle:"middle",central:"middle","after-edge":"bottom","text-after-edge":"bottom",ideographic:"ideographic",alphabetic:"alphabetic",hanging:"hanging",mathematical:"alphabetic"};var pN=function(){function ViewPort(){AC(this,ViewPort),this.viewPorts=[]}return fC(ViewPort,[{key:"clear",value:function clear(){this.viewPorts=[]}},{key:"setCurrent",value:function setCurrent(er,tr){this.viewPorts.push({width:er,height:tr})}},{key:"removeCurrent",value:function removeCurrent(){this.viewPorts.pop()}},{key:"getCurrent",value:function getCurrent(){var er=this.viewPorts;return er[er.length-1]}},{key:"computeSize",value:function computeSize(er){return"number"==typeof er?er:"x"===er?this.width:"y"===er?this.height:Math.sqrt(Math.pow(this.width,2)+Math.pow(this.height,2))/Math.sqrt(2)}},{key:"width",get:function get(){return this.getCurrent().width}},{key:"height",get:function get(){return this.getCurrent().height}}]),ViewPort}(),AN=function(){function Point(er,tr){AC(this,Point),this.x=er,this.y=tr}return fC(Point,[{key:"angleTo",value:function angleTo(er){return Math.atan2(er.y-this.y,er.x-this.x)}},{key:"applyTransform",value:function applyTransform(er){var tr=this.x,rr=this.y,nr=tr*er[0]+rr*er[2]+er[4],ir=tr*er[1]+rr*er[3]+er[5];this.x=nr,this.y=ir}}],[{key:"parse",value:function parse(er){var tr=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,rr=toNumbers(er),nr=sx(rr,2),ir=nr[0],or=void 0===ir?tr:ir,ar=nr[1],sr=void 0===ar?tr:ar;return new Point(or,sr)}},{key:"parseScale",value:function parseScale(er){var tr=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,rr=toNumbers(er),nr=sx(rr,2),ir=nr[0],or=void 0===ir?tr:ir,ar=nr[1],sr=void 0===ar?or:ar;return new Point(or,sr)}},{key:"parsePath",value:function parsePath(er){for(var tr=toNumbers(er),rr=tr.length,nr=[],ir=0;ir<rr;ir+=2)nr.push(new Point(tr[ir],tr[ir+1]));return nr}}]),Point}(),fN=function(){function Mouse(er){var tr,rr;AC(this,Mouse),this.screen=er,this.working=!1,this.events=[],this.eventElements=[],this.onClick=jC(tr=this.onClick).call(tr,this),this.onMouseMove=jC(rr=this.onMouseMove).call(rr,this)}return fC(Mouse,[{key:"isWorking",value:function isWorking(){return this.working}},{key:"start",value:function start(){if(!this.working){var er=this.screen,tr=this.onClick,rr=this.onMouseMove,nr=er.ctx.canvas;nr.onclick=tr,nr.onmousemove=rr,this.working=!0}}},{key:"stop",value:function stop(){if(this.working){var er=this.screen.ctx.canvas;this.working=!1,er.onclick=null,er.onmousemove=null}}},{key:"hasEvents",value:function hasEvents(){return this.working&&this.events.length>0}},{key:"runEvents",value:function runEvents(){if(this.working){var er=this.screen,tr=this.events,rr=this.eventElements,nr=er.ctx.canvas.style;nr&&(nr.cursor=""),wx(tr).call(tr,(function(er,tr){for(var nr=er.run,ir=rr[tr];ir;)nr(ir),ir=ir.parent})),this.events=[],this.eventElements=[]}}},{key:"checkPath",value:function checkPath(er,tr){if(this.working&&tr){var rr=this.events,nr=this.eventElements;wx(rr).call(rr,(function(rr,ir){var or=rr.x,ar=rr.y;!nr[ir]&&tr.isPointInPath&&tr.isPointInPath(or,ar)&&(nr[ir]=er)}))}}},{key:"checkBoundingBox",value:function checkBoundingBox(er,tr){if(this.working&&tr){var rr=this.events,nr=this.eventElements;wx(rr).call(rr,(function(rr,ir){var or=rr.x,ar=rr.y;!nr[ir]&&tr.isPointInBox(or,ar)&&(nr[ir]=er)}))}}},{key:"mapXY",value:function mapXY(er,tr){for(var rr=this.screen,nr=rr.window,ir=rr.ctx,or=new AN(er,tr),ar=ir.canvas;ar;)or.x-=ar.offsetLeft,or.y-=ar.offsetTop,ar=ar.offsetParent;return nr.scrollX&&(or.x+=nr.scrollX),nr.scrollY&&(or.y+=nr.scrollY),or}},{key:"onClick",value:function onClick(er){var tr=this.mapXY((er||event).clientX,(er||event).clientY),rr=tr.x,nr=tr.y;this.events.push({type:"onclick",x:rr,y:nr,run:function run(er){er.onClick&&er.onClick()}})}},{key:"onMouseMove",value:function onMouseMove(er){var tr=this.mapXY((er||event).clientX,(er||event).clientY),rr=tr.x,nr=tr.y;this.events.push({type:"onmousemove",x:rr,y:nr,run:function run(er){er.onMouseMove&&er.onMouseMove()}})}}]),Mouse}(),gN="undefined"!=typeof window?window:null,mN="undefined"!=typeof fetch?jC(fetch).call(fetch,void 0):null,_N=function(){function Screen(er){var tr=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},rr=tr.fetch,nr=void 0===rr?mN:rr,ir=tr.window,or=void 0===ir?gN:ir;AC(this,Screen),this.ctx=er,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new pN,this.mouse=new fN(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=or,this.fetch=nr}return fC(Screen,[{key:"wait",value:function wait(er){this.waits.push(er)}},{key:"ready",value:function ready(){return this.readyPromise?this.readyPromise:UC.resolve()}},{key:"isReady",value:function isReady(){var er;if(this.isReadyLock)return!0;var tr=FC(er=this.waits).call(er,(function(er){return er()}));return tr&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=tr,tr}},{key:"setDefaults",value:function setDefaults(er){er.strokeStyle="rgba(0,0,0,0)",er.lineCap="butt",er.lineJoin="miter",er.miterLimit=4}},{key:"setViewBox",value:function setViewBox(er){var tr=er.document,rr=er.ctx,nr=er.aspectRatio,ir=er.width,or=er.desiredWidth,ar=er.height,sr=er.desiredHeight,lr=er.minX,cr=void 0===lr?0:lr,ur=er.minY,dr=void 0===ur?0:ur,hr=er.refX,pr=er.refY,Ar=er.clip,fr=void 0!==Ar&&Ar,gr=er.clipX,mr=void 0===gr?0:gr,_r=er.clipY,vr=void 0===_r?0:_r,yr=compressSpaces(nr).replace(/^defer\s/,"").split(" "),br=sx(yr,2),wr=br[0]||"xMidYMid",Sr=br[1]||"meet",xr=ir/or,kr=ar/sr,Cr=Math.min(xr,kr),Br=Math.max(xr,kr),Er=or,Nr=sr;"meet"===Sr&&(Er*=Cr,Nr*=Cr),"slice"===Sr&&(Er*=Br,Nr*=Br);var Lr=new hN(tr,"refX",hr),Tr=new hN(tr,"refY",pr),Pr=Lr.hasValue()&&Tr.hasValue();if(Pr&&rr.translate(-Cr*Lr.getPixels("x"),-Cr*Tr.getPixels("y")),fr){var Fr=Cr*mr,Ur=Cr*vr;rr.beginPath(),rr.moveTo(Fr,Ur),rr.lineTo(ir,Ur),rr.lineTo(ir,ar),rr.lineTo(Fr,ar),rr.closePath(),rr.clip()}if(!Pr){var Ir="meet"===Sr&&Cr===kr,Rr="slice"===Sr&&Br===kr,Mr="meet"===Sr&&Cr===xr,Or="slice"===Sr&&Br===xr;/^xMid/.test(wr)&&(Ir||Rr)&&rr.translate(ir/2-Er/2,0),/YMid$/.test(wr)&&(Mr||Or)&&rr.translate(0,ar/2-Nr/2),/^xMax/.test(wr)&&(Ir||Rr)&&rr.translate(ir-Er,0),/YMax$/.test(wr)&&(Mr||Or)&&rr.translate(0,ar-Nr)}switch(!0){case"none"===wr:rr.scale(xr,kr);break;case"meet"===Sr:rr.scale(Cr,Cr);break;case"slice"===Sr:rr.scale(Br,Br)}rr.translate(-cr,-dr)}},{key:"start",value:function start(er){var tr=this,rr=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},nr=rr.enableRedraw,ir=void 0!==nr&&nr,or=rr.ignoreMouse,ar=void 0!==or&&or,sr=rr.ignoreAnimation,lr=void 0!==sr&&sr,cr=rr.ignoreDimensions,ur=void 0!==cr&&cr,dr=rr.ignoreClear,hr=void 0!==dr&&dr,pr=rr.forceRedraw,Ar=rr.scaleWidth,fr=rr.scaleHeight,gr=rr.offsetX,mr=rr.offsetY,_r=this.FRAMERATE,vr=this.mouse,yr=1e3/_r;if(this.frameDuration=yr,this.readyPromise=new UC((function(er){tr.resolveReady=er})),this.isReady()&&this.render(er,ur,hr,Ar,fr,gr,mr),ir){var br=BC(),wr=br,Sr=0,xr=function tick(){br=BC(),(Sr=br-wr)>=yr&&(wr=br-Sr%yr,tr.shouldUpdate(lr,pr)&&(tr.render(er,ur,hr,Ar,fr,gr,mr),vr.runEvents())),tr.intervalId=$C(tick)};ar||vr.start(),this.intervalId=$C(xr)}}},{key:"stop",value:function stop(){this.intervalId&&($C.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}},{key:"shouldUpdate",value:function shouldUpdate(er,tr){if(!er){var rr,nr=this.frameDuration,shouldUpdate=CC(rr=this.animations).call(rr,(function(er,tr){return tr.update(nr)||er}),!1);if(shouldUpdate)return!0}return!("function"!=typeof tr||!tr())||(!(this.isReadyLock||!this.isReady())||!!this.mouse.hasEvents())}},{key:"render",value:function render(er,tr,rr,nr,ir,or,ar){var sr=this.CLIENT_WIDTH,lr=this.CLIENT_HEIGHT,cr=this.viewPort,ur=this.ctx,dr=this.isFirstRender,hr=ur.canvas;cr.clear(),hr.width&&hr.height?cr.setCurrent(hr.width,hr.height):cr.setCurrent(sr,lr);var pr=er.getStyle("width"),Ar=er.getStyle("height");!tr&&(dr||"number"!=typeof nr&&"number"!=typeof ir)&&(pr.hasValue()&&(hr.width=pr.getPixels("x"),hr.style&&(hr.style.width="".concat(hr.width,"px"))),Ar.hasValue()&&(hr.height=Ar.getPixels("y"),hr.style&&(hr.style.height="".concat(hr.height,"px"))));var fr=hr.clientWidth||hr.width,gr=hr.clientHeight||hr.height;if(tr&&pr.hasValue()&&Ar.hasValue()&&(fr=pr.getPixels("x"),gr=Ar.getPixels("y")),cr.setCurrent(fr,gr),"number"==typeof or&&er.getAttribute("x",!0).setValue(or),"number"==typeof ar&&er.getAttribute("y",!0).setValue(ar),"number"==typeof nr||"number"==typeof ir){var mr,_r,vr=toNumbers(er.getAttribute("viewBox").getString()),yr=0,br=0;if("number"==typeof nr){var wr=er.getStyle("width");wr.hasValue()?yr=wr.getPixels("x")/nr:isNaN(vr[2])||(yr=vr[2]/nr)}if("number"==typeof ir){var Sr=er.getStyle("height");Sr.hasValue()?br=Sr.getPixels("y")/ir:isNaN(vr[3])||(br=vr[3]/ir)}yr||(yr=br),br||(br=yr),er.getAttribute("width",!0).setValue(nr),er.getAttribute("height",!0).setValue(ir);var xr=er.getStyle("transform",!0,!0);xr.setValue(_C(mr=_C(_r="".concat(xr.getString()," scale(")).call(_r,1/yr,", ")).call(mr,1/br,")"))}rr||ur.clearRect(0,0,fr,gr),er.render(ur),dr&&(this.isFirstRender=!1)}}]),Screen}();_N.defaultWindow=gN,_N.defaultFetch=mN;var vN=_N.defaultFetch,yN="undefined"!=typeof DOMParser?DOMParser:null,bN=function(){function Parser(){var er=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},tr=er.fetch,rr=void 0===tr?vN:tr,nr=er.DOMParser,ir=void 0===nr?yN:nr;AC(this,Parser),this.fetch=rr,this.DOMParser=ir}var er,tr;return fC(Parser,[{key:"parse",value:(tr=dC(Rx.mark((function _callee(er){return Rx.wrap((function _callee$(tr){for(;;)switch(tr.prev=tr.next){case 0:if(!/^</.test(er)){tr.next=2;break}return tr.abrupt("return",this.parseFromString(er));case 2:return tr.abrupt("return",this.load(er));case 3:case"end":return tr.stop()}}),_callee,this)}))),function parse(er){return tr.apply(this,arguments)})},{key:"parseFromString",value:function parseFromString(er){var tr=new this.DOMParser;try{return this.checkDocument(tr.parseFromString(er,"image/svg+xml"))}catch(rr){return this.checkDocument(tr.parseFromString(er,"text/xml"))}}},{key:"checkDocument",value:function checkDocument(er){var tr=er.getElementsByTagName("parsererror")[0];if(tr)throw new Error(tr.textContent);return er}},{key:"load",value:(er=dC(Rx.mark((function _callee2(er){var tr,rr;return Rx.wrap((function _callee2$(nr){for(;;)switch(nr.prev=nr.next){case 0:return nr.next=2,this.fetch(er);case 2:return tr=nr.sent,nr.next=5,tr.text();case 5:return rr=nr.sent,nr.abrupt("return",this.parseFromString(rr));case 7:case"end":return nr.stop()}}),_callee2,this)}))),function load(tr){return er.apply(this,arguments)})}]),Parser}(),wN=function(){function Translate(er,tr){AC(this,Translate),this.type="translate",this.point=null,this.point=AN.parse(tr)}return fC(Translate,[{key:"apply",value:function apply(er){var tr=this.point,rr=tr.x,nr=tr.y;er.translate(rr||0,nr||0)}},{key:"unapply",value:function unapply(er){var tr=this.point,rr=tr.x,nr=tr.y;er.translate(-1*rr||0,-1*nr||0)}},{key:"applyToPoint",value:function applyToPoint(er){var tr=this.point,rr=tr.x,nr=tr.y;er.applyTransform([1,0,0,1,rr||0,nr||0])}}]),Translate}(),SN=function(){function Rotate(er,tr,rr){AC(this,Rotate),this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var nr=toNumbers(tr);this.angle=new hN(er,"angle",nr[0]),this.originX=rr[0],this.originY=rr[1],this.cx=nr[1]||0,this.cy=nr[2]||0}return fC(Rotate,[{key:"apply",value:function apply(er){var tr=this.cx,rr=this.cy,nr=this.originX,ir=this.originY,or=this.angle,ar=tr+nr.getPixels("x"),sr=rr+ir.getPixels("y");er.translate(ar,sr),er.rotate(or.getRadians()),er.translate(-ar,-sr)}},{key:"unapply",value:function unapply(er){var tr=this.cx,rr=this.cy,nr=this.angle;er.translate(tr,rr),er.rotate(-1*nr.getRadians()),er.translate(-tr,-rr)}},{key:"applyToPoint",value:function applyToPoint(er){var tr=this.cx,rr=this.cy,nr=this.angle.getRadians();er.applyTransform([1,0,0,1,tr||0,rr||0]),er.applyTransform([Math.cos(nr),Math.sin(nr),-Math.sin(nr),Math.cos(nr),0,0]),er.applyTransform([1,0,0,1,-tr||0,-rr||0])}}]),Rotate}(),xN=function(){function Scale(er,tr){AC(this,Scale),this.type="scale",this.scale=null;var rr=AN.parseScale(tr);0!==rr.x&&0!==rr.y||(rr.x=1e-8,rr.y=1e-8),this.scale=rr}return fC(Scale,[{key:"apply",value:function apply(er){var tr=this.scale,rr=tr.x,nr=tr.y;er.scale(rr,nr||rr)}},{key:"unapply",value:function unapply(er){var tr=this.scale,rr=tr.x,nr=tr.y;er.scale(1/rr,1/nr||rr)}},{key:"applyToPoint",value:function applyToPoint(er){var tr=this.scale,rr=tr.x,nr=tr.y;er.applyTransform([rr||0,0,0,nr||0,0,0])}}]),Scale}(),kN=function(){function Matrix(er,tr){AC(this,Matrix),this.type="matrix",this.matrix=[],this.matrix=toNumbers(tr)}return fC(Matrix,[{key:"apply",value:function apply(er){var tr=this.matrix;er.transform(tr[0],tr[1],tr[2],tr[3],tr[4],tr[5])}},{key:"unapply",value:function unapply(er){var tr=this.matrix,rr=tr[0],nr=tr[2],ir=tr[4],or=tr[1],ar=tr[3],sr=tr[5],lr=1/(rr*(1*ar-0*sr)-nr*(1*or-0*sr)+ir*(0*or-0*ar));er.transform(lr*(1*ar-0*sr),lr*(0*sr-1*or),lr*(0*ir-1*nr),lr*(1*rr-0*ir),lr*(nr*sr-ir*ar),lr*(ir*or-rr*sr))}},{key:"applyToPoint",value:function applyToPoint(er){er.applyTransform(this.matrix)}}]),Matrix}();function _createSuper$1(er){var tr=function _isNativeReflectConstruct$1(){if("undefined"==typeof Reflect||!lB)return!1;if(lB.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(lB(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=wB(er);if(tr){var ir=wB(this).constructor;rr=lB(nr,arguments,ir)}else rr=nr.apply(this,arguments);return mB(this,rr)}}var CN=function(er){pB(Skew,kN);var tr=_createSuper$1(Skew);function Skew(er,rr){var nr;return AC(this,Skew),(nr=tr.call(this,er,rr)).type="skew",nr.angle=null,nr.angle=new hN(er,"angle",rr),nr}return Skew}();function _createSuper$1$1(er){var tr=function _isNativeReflectConstruct$1$1(){if("undefined"==typeof Reflect||!lB)return!1;if(lB.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(lB(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=wB(er);if(tr){var ir=wB(this).constructor;rr=lB(nr,arguments,ir)}else rr=nr.apply(this,arguments);return mB(this,rr)}}var BN=function(er){pB(SkewX,CN);var tr=_createSuper$1$1(SkewX);function SkewX(er,rr){var nr;return AC(this,SkewX),(nr=tr.call(this,er,rr)).type="skewX",nr.matrix=[1,0,Math.tan(nr.angle.getRadians()),1,0,0],nr}return SkewX}();function _createSuper$2(er){var tr=function _isNativeReflectConstruct$2(){if("undefined"==typeof Reflect||!lB)return!1;if(lB.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(lB(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=wB(er);if(tr){var ir=wB(this).constructor;rr=lB(nr,arguments,ir)}else rr=nr.apply(this,arguments);return mB(this,rr)}}var EN=function(er){pB(SkewY,CN);var tr=_createSuper$2(SkewY);function SkewY(er,rr){var nr;return AC(this,SkewY),(nr=tr.call(this,er,rr)).type="skewY",nr.matrix=[1,Math.tan(nr.angle.getRadians()),0,1,0,0],nr}return SkewY}();var NN=function(){function Transform(er,tr,rr){var nr=this;AC(this,Transform),this.document=er,this.transforms=[];var ir=function parseTransforms(er){var tr;return rB(tr=compressSpaces(er)).call(tr).replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}(tr);wx(ir).call(ir,(function(er){if("none"!==er){var tr=function parseTransform$1(er){var tr=er.split("("),rr=sx(tr,2),nr=rr[0],ir=rr[1];return[rB(nr).call(nr),rB(ir).call(ir).replace(")","")]}(er),ir=sx(tr,2),or=ir[0],ar=ir[1],sr=Transform.transformTypes[or];void 0!==sr&&nr.transforms.push(new sr(nr.document,ar,rr))}}))}return fC(Transform,[{key:"apply",value:function apply(er){for(var tr=this.transforms,rr=tr.length,nr=0;nr<rr;nr++)tr[nr].apply(er)}},{key:"unapply",value:function unapply(er){for(var tr=this.transforms,rr=tr.length-1;rr>=0;rr--)tr[rr].unapply(er)}},{key:"applyToPoint",value:function applyToPoint(er){for(var tr=this.transforms,rr=tr.length,nr=0;nr<rr;nr++)tr[nr].applyToPoint(er)}}],[{key:"fromElement",value:function fromElement(er,tr){var rr=tr.getStyle("transform",!1,!0),nr=tr.getStyle("transform-origin",!1,!0).split(),ir=sx(nr,2),or=ir[0],ar=ir[1],sr=[or,void 0===ar?or:ar];return rr.hasValue()?new Transform(er,rr.getString(),sr):null}}]),Transform}();NN.transformTypes={translate:wN,rotate:SN,scale:xN,matrix:kN,skewX:BN,skewY:EN};var LN=function(){function Element(er,tr){var rr,nr,ir=this,or=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(AC(this,Element),this.document=er,this.node=tr,this.captureTextNodes=or,this.attributes={},this.styles={},this.stylesSpecificity={},this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],tr&&1===tr.nodeType){if(wx(rr=DB(tr.attributes)).call(rr,(function(tr){var rr=normalizeAttributeName(tr.nodeName);ir.attributes[rr]=new hN(er,rr,tr.value)})),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()){var ar,sr=lb(ar=this.getAttribute("style").getString().split(";")).call(ar,(function(er){return rB(er).call(er)}));wx(sr).call(sr,(function(tr){var rr;if(tr){var nr=lb(rr=tr.split(":")).call(rr,(function(er){return rB(er).call(er)})),or=sx(nr,2),ar=or[0],sr=or[1];ir.styles[ar]=new hN(er,ar,sr)}}))}var lr=er.definitions,cr=this.getAttribute("id");cr.hasValue()&&(lr[cr.getValue()]||(lr[cr.getValue()]=this)),wx(nr=DB(tr.childNodes)).call(nr,(function(tr){if(1===tr.nodeType)ir.addChild(tr);else if(or&&(3===tr.nodeType||4===tr.nodeType)){var rr=er.createTextNode(tr);rr.getText().length>0&&ir.addChild(rr)}}))}}return fC(Element,[{key:"getAttribute",value:function getAttribute(er){var tr=arguments.length>1&&void 0!==arguments[1]&&arguments[1],rr=this.attributes[er];if(!rr&&tr){var nr=new hN(this.document,er,"");return this.attributes[er]=nr,nr}return rr||hN.empty(this.document)}},{key:"getHrefAttribute",value:function getHrefAttribute(){for(var er in this.attributes)if("href"===er||/:href$/.test(er))return this.attributes[er];return hN.empty(this.document)}},{key:"getStyle",value:function getStyle(er){var tr=arguments.length>1&&void 0!==arguments[1]&&arguments[1],rr=arguments.length>2&&void 0!==arguments[2]&&arguments[2],nr=this.styles[er];if(nr)return nr;var ir=this.getAttribute(er);if(ir&&ir.hasValue())return this.styles[er]=ir,ir;if(!rr){var or=this.parent;if(or){var ar=or.getStyle(er);if(ar&&ar.hasValue())return ar}}if(tr){var sr=new hN(this.document,er,"");return this.styles[er]=sr,sr}return nr||hN.empty(this.document)}},{key:"render",value:function render(er){if("none"!==this.getStyle("display").getString()&&"hidden"!==this.getStyle("visibility").getString()){if(er.save(),this.getStyle("mask").hasValue()){var tr=this.getStyle("mask").getDefinition();tr&&(this.applyEffects(er),tr.apply(er,this))}else if("none"!==this.getStyle("filter").getValue("none")){var rr=this.getStyle("filter").getDefinition();rr&&(this.applyEffects(er),rr.apply(er,this))}else this.setContext(er),this.renderChildren(er),this.clearContext(er);er.restore()}}},{key:"setContext",value:function setContext(er){}},{key:"applyEffects",value:function applyEffects(er){var tr=NN.fromElement(this.document,this);tr&&tr.apply(er);var rr=this.getStyle("clip-path",!1,!0);if(rr.hasValue()){var nr=rr.getDefinition();nr&&nr.apply(er)}}},{key:"clearContext",value:function clearContext(er){}},{key:"renderChildren",value:function renderChildren(er){var tr;wx(tr=this.children).call(tr,(function(tr){tr.render(er)}))}},{key:"addChild",value:function addChild(er){var tr,rr=er instanceof Element?er:this.document.createElement(er);rr.parent=this,QB(tr=Element.ignoreChildTypes).call(tr,rr.type)||this.children.push(rr)}},{key:"matchesSelector",value:function matchesSelector(er){var tr,rr=this.node;if("function"==typeof rr.matches)return rr.matches(er);var nr=rr.getAttribute("class");return!(!nr||""===nr)&&PB(tr=nr.split(" ")).call(tr,(function(tr){if(".".concat(tr)===er)return!0}))}},{key:"addStylesFromStyleDefinition",value:function addStylesFromStyleDefinition(){var er=this.document,tr=er.styles,rr=er.stylesSpecificity;for(var nr in tr)if("@"!==nr[0]&&this.matchesSelector(nr)){var ir=tr[nr],or=rr[nr];if(ir)for(var ar in ir){var sr=this.stylesSpecificity[ar];void 0===sr&&(sr="000"),or>=sr&&(this.styles[ar]=ir[ar],this.stylesSpecificity[ar]=or)}}}},{key:"removeStyles",value:function removeStyles(er,tr){return CC(tr).call(tr,(function(tr,rr){var nr,ir=er.getStyle(rr);if(!ir.hasValue())return tr;var or=ir.getString();return ir.setValue(""),_C(nr=[]).call(nr,CB(tr),[[rr,or]])}),[])}},{key:"restoreStyles",value:function restoreStyles(er,tr){wx(tr).call(tr,(function(tr){var rr=sx(tr,2),nr=rr[0],ir=rr[1];er.getStyle(nr,!0).setValue(ir)}))}}]),Element}();function _createSuper$3(er){var tr=function _isNativeReflectConstruct$3(){if("undefined"==typeof Reflect||!lB)return!1;if(lB.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(lB(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=wB(er);if(tr){var ir=wB(this).constructor;rr=lB(nr,arguments,ir)}else rr=nr.apply(this,arguments);return mB(this,rr)}}LN.ignoreChildTypes=["title"];var TN=function(er){pB(UnknownElement,LN);var tr=_createSuper$3(UnknownElement);function UnknownElement(er,rr,nr){return AC(this,UnknownElement),tr.call(this,er,rr,nr)}return UnknownElement}();function wrapFontFamily(er){var tr=rB(er).call(er);return/^('|")/.test(tr)?tr:'"'.concat(tr,'"')}function prepareFontStyle(er){if(!er)return"";var tr=rB(er).call(er).toLowerCase();switch(tr){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return tr;default:return/^oblique\s+(-|)\d+deg$/.test(tr)?tr:""}}function prepareFontWeight(er){if(!er)return"";var tr=rB(er).call(er).toLowerCase();switch(tr){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return tr;default:return/^[\d.]+$/.test(tr)?tr:""}}var PN=function(){function Font(er,tr,rr,nr,ir,or){AC(this,Font);var ar=or?"string"==typeof or?Font.parse(or):or:{};this.fontFamily=ir||ar.fontFamily,this.fontSize=nr||ar.fontSize,this.fontStyle=er||ar.fontStyle,this.fontWeight=rr||ar.fontWeight,this.fontVariant=tr||ar.fontVariant}return fC(Font,[{key:"toString",value:function toString(){var er,tr,rr;return rB(er=[prepareFontStyle(this.fontStyle),this.fontVariant,prepareFontWeight(this.fontWeight),this.fontSize,(tr=this.fontFamily,void 0===nv?tr:lb(rr=rB(tr).call(tr).split(",")).call(rr,wrapFontFamily).join(","))].join(" ")).call(er)}}],[{key:"parse",value:function parse(){var er,tr=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",rr=arguments.length>1?arguments[1]:void 0,nr="",ir="",or="",ar="",sr="",lr=rB(er=compressSpaces(tr)).call(er).split(" "),cr={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return wx(lr).call(lr,(function(er){var tr,rr,lr;switch(!0){case!cr.fontStyle&&QB(tr=Font.styles).call(tr,er):"inherit"!==er&&(nr=er),cr.fontStyle=!0;break;case!cr.fontVariant&&QB(rr=Font.variants).call(rr,er):"inherit"!==er&&(ir=er),cr.fontStyle=!0,cr.fontVariant=!0;break;case!cr.fontWeight&&QB(lr=Font.weights).call(lr,er):"inherit"!==er&&(or=er),cr.fontStyle=!0,cr.fontVariant=!0,cr.fontWeight=!0;break;case!cr.fontSize:if("inherit"!==er){var ur=er.split("/"),dr=sx(ur,1);ar=dr[0]}cr.fontStyle=!0,cr.fontVariant=!0,cr.fontWeight=!0,cr.fontSize=!0;break;default:"inherit"!==er&&(sr+=er)}})),new Font(nr,ir,or,ar,sr,rr)}}]),Font}();PN.styles="normal|italic|oblique|inherit",PN.variants="normal|small-caps|inherit",PN.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";var FN=function(){function BoundingBox(){var er=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.NaN,tr=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.NaN,rr=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.NaN,nr=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Number.NaN;AC(this,BoundingBox),this.x1=er,this.y1=tr,this.x2=rr,this.y2=nr,this.addPoint(er,tr),this.addPoint(rr,nr)}return fC(BoundingBox,[{key:"addPoint",value:function addPoint(er,tr){void 0!==er&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=er,this.x2=er),er<this.x1&&(this.x1=er),er>this.x2&&(this.x2=er)),void 0!==tr&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=tr,this.y2=tr),tr<this.y1&&(this.y1=tr),tr>this.y2&&(this.y2=tr))}},{key:"addX",value:function addX(er){this.addPoint(er,null)}},{key:"addY",value:function addY(er){this.addPoint(null,er)}},{key:"addBoundingBox",value:function addBoundingBox(er){if(er){var tr=er.x1,rr=er.y1,nr=er.x2,ir=er.y2;this.addPoint(tr,rr),this.addPoint(nr,ir)}}},{key:"sumCubic",value:function sumCubic(er,tr,rr,nr,ir){return Math.pow(1-er,3)*tr+3*Math.pow(1-er,2)*er*rr+3*(1-er)*Math.pow(er,2)*nr+Math.pow(er,3)*ir}},{key:"bezierCurveAdd",value:function bezierCurveAdd(er,tr,rr,nr,ir){var or=6*tr-12*rr+6*nr,ar=-3*tr+9*rr-9*nr+3*ir,sr=3*rr-3*tr;if(0!==ar){var lr=Math.pow(or,2)-4*sr*ar;if(!(lr<0)){var cr=(-or+Math.sqrt(lr))/(2*ar);0<cr&&cr<1&&(er?this.addX(this.sumCubic(cr,tr,rr,nr,ir)):this.addY(this.sumCubic(cr,tr,rr,nr,ir)));var ur=(-or-Math.sqrt(lr))/(2*ar);0<ur&&ur<1&&(er?this.addX(this.sumCubic(ur,tr,rr,nr,ir)):this.addY(this.sumCubic(ur,tr,rr,nr,ir)))}}else{if(0===or)return;var dr=-sr/or;0<dr&&dr<1&&(er?this.addX(this.sumCubic(dr,tr,rr,nr,ir)):this.addY(this.sumCubic(dr,tr,rr,nr,ir)))}}},{key:"addBezierCurve",value:function addBezierCurve(er,tr,rr,nr,ir,or,ar,sr){this.addPoint(er,tr),this.addPoint(ar,sr),this.bezierCurveAdd(!0,er,rr,ir,ar),this.bezierCurveAdd(!1,tr,nr,or,sr)}},{key:"addQuadraticCurve",value:function addQuadraticCurve(er,tr,rr,nr,ir,or){var ar=er+2/3*(rr-er),sr=tr+2/3*(nr-tr),lr=ar+1/3*(ir-er),cr=sr+1/3*(or-tr);this.addBezierCurve(er,tr,ar,lr,sr,cr,ir,or)}},{key:"isPointInBox",value:function isPointInBox(er,tr){var rr=this.x1,nr=this.y1,ir=this.x2,or=this.y2;return rr<=er&&er<=ir&&nr<=tr&&tr<=or}},{key:"x",get:function get(){return this.x1}},{key:"y",get:function get(){return this.y1}},{key:"width",get:function get(){return this.x2-this.x1}},{key:"height",get:function get(){return this.y2-this.y1}}]),BoundingBox}();function _createSuper$4(er){var tr=function _isNativeReflectConstruct$4(){if("undefined"==typeof Reflect||!lB)return!1;if(lB.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(lB(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=wB(er);if(tr){var ir=wB(this).constructor;rr=lB(nr,arguments,ir)}else rr=nr.apply(this,arguments);return mB(this,rr)}}var UN=function(er){pB(RenderedElement,LN);var tr=_createSuper$4(RenderedElement);function RenderedElement(){var er;return AC(this,RenderedElement),(er=tr.apply(this,arguments)).modifiedEmSizeStack=!1,er}return fC(RenderedElement,[{key:"calculateOpacity",value:function calculateOpacity(){for(var er=1,tr=this;tr;){var rr=tr.getStyle("opacity",!1,!0);rr.hasValue(!0)&&(er*=rr.getNumber()),tr=tr.parent}return er}},{key:"setContext",value:function setContext(er){var tr=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!tr){var rr=this.getStyle("fill"),nr=this.getStyle("fill-opacity"),ir=this.getStyle("stroke"),or=this.getStyle("stroke-opacity");if(rr.isUrlDefinition()){var ar=rr.getFillStyleDefinition(this,nr);ar&&(er.fillStyle=ar)}else if(rr.hasValue()){"currentColor"===rr.getString()&&rr.setValue(this.getStyle("color").getColor());var sr=rr.getColor();"inherit"!==sr&&(er.fillStyle="none"===sr?"rgba(0,0,0,0)":sr)}if(nr.hasValue()){var lr=new hN(this.document,"fill",er.fillStyle).addOpacity(nr).getColor();er.fillStyle=lr}if(ir.isUrlDefinition()){var cr=ir.getFillStyleDefinition(this,or);cr&&(er.strokeStyle=cr)}else if(ir.hasValue()){"currentColor"===ir.getString()&&ir.setValue(this.getStyle("color").getColor());var ur=ir.getString();"inherit"!==ur&&(er.strokeStyle="none"===ur?"rgba(0,0,0,0)":ur)}if(or.hasValue()){var dr=new hN(this.document,"stroke",er.strokeStyle).addOpacity(or).getString();er.strokeStyle=dr}var hr=this.getStyle("stroke-width");if(hr.hasValue()){var pr=hr.getPixels();er.lineWidth=pr||1e-8}var Ar=this.getStyle("stroke-linecap"),fr=this.getStyle("stroke-linejoin"),gr=this.getStyle("stroke-miterlimit"),mr=this.getStyle("paint-order"),_r=this.getStyle("stroke-dasharray"),vr=this.getStyle("stroke-dashoffset");if(Ar.hasValue()&&(er.lineCap=Ar.getString()),fr.hasValue()&&(er.lineJoin=fr.getString()),gr.hasValue()&&(er.miterLimit=gr.getNumber()),mr.hasValue()&&(er.paintOrder=mr.getValue()),_r.hasValue()&&"none"!==_r.getString()){var yr=toNumbers(_r.getString());void 0!==er.setLineDash?er.setLineDash(yr):void 0!==er.webkitLineDash?er.webkitLineDash=yr:void 0===er.mozDash||1===yr.length&&0===yr[0]||(er.mozDash=yr);var br=vr.getPixels();void 0!==er.lineDashOffset?er.lineDashOffset=br:void 0!==er.webkitLineDashOffset?er.webkitLineDashOffset=br:void 0!==er.mozDashOffset&&(er.mozDashOffset=br)}}if(this.modifiedEmSizeStack=!1,void 0!==er.font){var wr=this.getStyle("font"),Sr=this.getStyle("font-style"),xr=this.getStyle("font-variant"),kr=this.getStyle("font-weight"),Cr=this.getStyle("font-size"),Br=this.getStyle("font-family"),Er=new PN(Sr.getString(),xr.getString(),kr.getString(),Cr.hasValue()?"".concat(Cr.getPixels(!0),"px"):"",Br.getString(),PN.parse(wr.getString(),er.font));Sr.setValue(Er.fontStyle),xr.setValue(Er.fontVariant),kr.setValue(Er.fontWeight),Cr.setValue(Er.fontSize),Br.setValue(Er.fontFamily),er.font=Er.toString(),Cr.isPixels()&&(this.document.emSize=Cr.getPixels(),this.modifiedEmSizeStack=!0)}tr||(this.applyEffects(er),er.globalAlpha=this.calculateOpacity())}},{key:"clearContext",value:function clearContext(er){nE(wB(RenderedElement.prototype),"clearContext",this).call(this,er),this.modifiedEmSizeStack&&this.document.popEmSize()}}]),RenderedElement}();function _createSuper$5(er){var tr=function _isNativeReflectConstruct$5(){if("undefined"==typeof Reflect||!lB)return!1;if(lB.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(lB(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=wB(er);if(tr){var ir=wB(this).constructor;rr=lB(nr,arguments,ir)}else rr=nr.apply(this,arguments);return mB(this,rr)}}var IN=function(er){pB(TextElement,UN);var tr=_createSuper$5(TextElement);function TextElement(er,rr,nr){var ir;return AC(this,TextElement),(ir=tr.call(this,er,rr,(this instanceof TextElement?this.constructor:void 0)===TextElement||nr)).type="text",ir.x=0,ir.y=0,ir.measureCache=-1,ir}return fC(TextElement,[{key:"setContext",value:function setContext(er){var tr=arguments.length>1&&void 0!==arguments[1]&&arguments[1];nE(wB(TextElement.prototype),"setContext",this).call(this,er,tr);var rr=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();rr&&(er.textBaseline=rr)}},{key:"initializeCoordinates",value:function initializeCoordinates(er){this.x=this.getAttribute("x").getPixels("x"),this.y=this.getAttribute("y").getPixels("y");var tr=this.getAttribute("dx"),rr=this.getAttribute("dy");tr.hasValue()&&(this.x+=tr.getPixels("x")),rr.hasValue()&&(this.y+=rr.getPixels("y")),this.x+=this.getAnchorDelta(er,this,0)}},{key:"getBoundingBox",value:function getBoundingBox(er){var tr,rr=this;if("text"!==this.type)return this.getTElementBoundingBox(er);this.initializeCoordinates(er);var nr=null;return wx(tr=this.children).call(tr,(function(tr,ir){var or=rr.getChildBoundingBox(er,rr,rr,ir);nr?nr.addBoundingBox(or):nr=or})),nr}},{key:"getFontSize",value:function getFontSize(){var er=this.document,tr=this.parent,rr=PN.parse(er.ctx.font).fontSize;return tr.getStyle("font-size").getNumber(rr)}},{key:"getTElementBoundingBox",value:function getTElementBoundingBox(er){var tr=this.getFontSize();return new FN(this.x,this.y-tr,this.x+this.measureText(er),this.y)}},{key:"getGlyph",value:function getGlyph(er,tr,rr){var nr=tr[rr],ir=null;if(er.isArabic){var or=tr.length,ar=tr[rr-1],sr=tr[rr+1],lr="isolated";(0===rr||" "===ar)&&rr<or-2&&" "!==sr&&(lr="terminal"),rr>0&&" "!==ar&&rr<or-2&&" "!==sr&&(lr="medial"),rr>0&&" "!==ar&&(rr===or-1||" "===sr)&&(lr="initial"),void 0!==er.glyphs[nr]&&((ir=er.glyphs[nr][lr])||"glyph"!==er.glyphs[nr].type||(ir=er.glyphs[nr]))}else ir=er.glyphs[nr];return ir||(ir=er.missingGlyph),ir}},{key:"getText",value:function getText(){return""}},{key:"getTextFromNode",value:function getTextFromNode(er){var tr=er||this.node,rr=DB(tr.parentNode.childNodes),nr=ZB(rr).call(rr,tr),ir=rr.length-1,or=compressSpaces(tr.value||tr.text||tr.textContent||"");return 0===nr&&(or=trimLeft$1(or)),nr===ir&&(or=trimRight$1(or)),or}},{key:"renderChildren",value:function renderChildren(er){var tr,rr=this;if("text"===this.type){this.initializeCoordinates(er),wx(tr=this.children).call(tr,(function(tr,nr){rr.renderChild(er,rr,rr,nr)}));var nr=this.document.screen.mouse;nr.isWorking()&&nr.checkBoundingBox(this,this.getBoundingBox(er))}else this.renderTElementChildren(er)}},{key:"renderTElementChildren",value:function renderTElementChildren(er){var tr=this.document,rr=this.parent,nr=this.getText(),ir=rr.getStyle("font-family").getDefinition();if(ir)for(var or,ar=ir.fontFace.unitsPerEm,sr=PN.parse(tr.ctx.font),lr=rr.getStyle("font-size").getNumber(sr.fontSize),cr=rr.getStyle("font-style").getString(sr.fontStyle),ur=lr/ar,dr=ir.isRTL?zB(or=nr.split("")).call(or).join(""):nr,hr=toNumbers(rr.getAttribute("dx").getString()),pr=dr.length,Ar=0;Ar<pr;Ar++){var fr=this.getGlyph(ir,dr,Ar);er.translate(this.x,this.y),er.scale(ur,-ur);var gr=er.lineWidth;er.lineWidth=er.lineWidth*ar/lr,"italic"===cr&&er.transform(1,0,.4,1,0,0),fr.render(er),"italic"===cr&&er.transform(1,0,-.4,1,0,0),er.lineWidth=gr,er.scale(1/ur,-1/ur),er.translate(-this.x,-this.y),this.x+=lr*(fr.horizAdvX||ir.horizAdvX)/ar,void 0===hr[Ar]||isNaN(hr[Ar])||(this.x+=hr[Ar])}else{var mr=this.x,_r=this.y;"stroke"===er.paintOrder?(er.strokeStyle&&er.strokeText(nr,mr,_r),er.fillStyle&&er.fillText(nr,mr,_r)):(er.fillStyle&&er.fillText(nr,mr,_r),er.strokeStyle&&er.strokeText(nr,mr,_r))}}},{key:"getAnchorDelta",value:function getAnchorDelta(er,tr,rr){var nr=this.getStyle("text-anchor").getString("start");if("start"!==nr){for(var ir=tr.children,or=ir.length,ar=null,sr=0,lr=rr;lr<or&&(ar=ir[lr],!(lr>rr&&ar.getAttribute("x").hasValue()||ar.getAttribute("text-anchor").hasValue()));lr++)sr+=ar.measureTextRecursive(er);return-1*("end"===nr?sr:sr/2)}return 0}},{key:"adjustChildCoordinates",value:function adjustChildCoordinates(er,tr,rr,nr){var ir=rr.children[nr];if("function"!=typeof ir.measureText)return ir;er.save(),ir.setContext(er,!0);var or=ir.getAttribute("x"),ar=ir.getAttribute("y"),sr=ir.getAttribute("dx"),lr=ir.getAttribute("dy"),cr=ir.getAttribute("text-anchor").getString("start");if(0===nr&&"textNode"!==ir.type&&(or.hasValue()||or.setValue(tr.getAttribute("x").getValue("0")),ar.hasValue()||ar.setValue(tr.getAttribute("y").getValue("0")),sr.hasValue()||sr.setValue(tr.getAttribute("dx").getValue("0")),lr.hasValue()||lr.setValue(tr.getAttribute("dy").getValue("0"))),or.hasValue()){if(ir.x=or.getPixels("x")+tr.getAnchorDelta(er,rr,nr),"start"!==cr){var ur=ir.measureTextRecursive(er);ir.x+=-1*("end"===cr?ur:ur/2)}sr.hasValue()&&(ir.x+=sr.getPixels("x"))}else{if("start"!==cr){var dr=ir.measureTextRecursive(er);tr.x+=-1*("end"===cr?dr:dr/2)}sr.hasValue()&&(tr.x+=sr.getPixels("x")),ir.x=tr.x}return tr.x=ir.x+ir.measureText(er),ar.hasValue()?(ir.y=ar.getPixels("y"),lr.hasValue()&&(ir.y+=lr.getPixels("y"))):(lr.hasValue()&&(tr.y+=lr.getPixels("y")),ir.y=tr.y),tr.y=ir.y,ir.clearContext(er),er.restore(),ir}},{key:"getChildBoundingBox",value:function getChildBoundingBox(er,tr,rr,nr){var ir,or=this.adjustChildCoordinates(er,tr,rr,nr);if("function"!=typeof or.getBoundingBox)return null;var ar=or.getBoundingBox(er);return ar?(wx(ir=or.children).call(ir,(function(rr,nr){var ir=tr.getChildBoundingBox(er,tr,or,nr);ar.addBoundingBox(ir)})),ar):null}},{key:"renderChild",value:function renderChild(er,tr,rr,nr){var ir,or=this.adjustChildCoordinates(er,tr,rr,nr);or.render(er),wx(ir=or.children).call(ir,(function(rr,nr){tr.renderChild(er,tr,or,nr)}))}},{key:"measureTextRecursive",value:function measureTextRecursive(er){var tr;return CC(tr=this.children).call(tr,(function(tr,rr){return tr+rr.measureTextRecursive(er)}),this.measureText(er))}},{key:"measureText",value:function measureText(er){var tr=this.measureCache;if(~tr)return tr;var rr=this.getText(),nr=this.measureTargetText(er,rr);return this.measureCache=nr,nr}},{key:"measureTargetText",value:function measureTargetText(er,tr){if(!tr.length)return 0;var rr=this.parent,nr=rr.getStyle("font-family").getDefinition();if(nr){for(var ir,or=this.getFontSize(),ar=nr.isRTL?zB(ir=tr.split("")).call(ir).join(""):tr,sr=toNumbers(rr.getAttribute("dx").getString()),lr=ar.length,cr=0,ur=0;ur<lr;ur++){cr+=(this.getGlyph(nr,ar,ur).horizAdvX||nr.horizAdvX)*or/nr.fontFace.unitsPerEm,void 0===sr[ur]||isNaN(sr[ur])||(cr+=sr[ur])}return cr}if(!er.measureText)return 10*tr.length;er.save(),this.setContext(er,!0);var dr=er.measureText(tr).width;return this.clearContext(er),er.restore(),dr}}]),TextElement}();function _createSuper$6(er){var tr=function _isNativeReflectConstruct$6(){if("undefined"==typeof Reflect||!lB)return!1;if(lB.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(lB(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=wB(er);if(tr){var ir=wB(this).constructor;rr=lB(nr,arguments,ir)}else rr=nr.apply(this,arguments);return mB(this,rr)}}var RN=function(er){pB(TSpanElement,IN);var tr=_createSuper$6(TSpanElement);function TSpanElement(er,rr,nr){var ir;return AC(this,TSpanElement),(ir=tr.call(this,er,rr,(this instanceof TSpanElement?this.constructor:void 0)===TSpanElement||nr)).type="tspan",ir.text=ir.children.length>0?"":ir.getTextFromNode(),ir}return fC(TSpanElement,[{key:"getText",value:function getText(){return this.text}}]),TSpanElement}();function _createSuper$7(er){var tr=function _isNativeReflectConstruct$7(){if("undefined"==typeof Reflect||!lB)return!1;if(lB.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(lB(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=wB(er);if(tr){var ir=wB(this).constructor;rr=lB(nr,arguments,ir)}else rr=nr.apply(this,arguments);return mB(this,rr)}}var MN=function(er){pB(TextNode,RN);var tr=_createSuper$7(TextNode);function TextNode(){var er;return AC(this,TextNode),(er=tr.apply(this,arguments)).type="textNode",er}return TextNode}();function _createSuper$8(er){var tr=function _isNativeReflectConstruct$8(){if("undefined"==typeof Reflect||!lB)return!1;if(lB.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(lB(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=wB(er);if(tr){var ir=wB(this).constructor;rr=lB(nr,arguments,ir)}else rr=nr.apply(this,arguments);return mB(this,rr)}}var ON=function(er){pB(PathParser,gE);var tr=_createSuper$8(PathParser);function PathParser(er){var rr;return AC(this,PathParser),(rr=tr.call(this,er.replace(/[+-.]\s+/g,"-").replace(/[^MmZzLlHhVvCcSsQqTtAae\d\s.,+-].*/g,""))).control=null,rr.start=null,rr.current=null,rr.command=null,rr.commands=rr.commands,rr.i=-1,rr.previousCommand=null,rr.points=[],rr.angles=[],rr}return fC(PathParser,[{key:"reset",value:function reset(){this.i=-1,this.command=null,this.previousCommand=null,this.start=new AN(0,0),this.control=new AN(0,0),this.current=new AN(0,0),this.points=[],this.angles=[]}},{key:"isEnd",value:function isEnd(){return this.i>=this.commands.length-1}},{key:"next",value:function next(){var er=this.commands[++this.i];return this.previousCommand=this.command,this.command=er,er}},{key:"getPoint",value:function getPoint(){var er=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"x",tr=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"y",rr=new AN(this.command[er],this.command[tr]);return this.makeAbsolute(rr)}},{key:"getAsControlPoint",value:function getAsControlPoint(er,tr){var rr=this.getPoint(er,tr);return this.control=rr,rr}},{key:"getAsCurrentPoint",value:function getAsCurrentPoint(er,tr){var rr=this.getPoint(er,tr);return this.current=rr,rr}},{key:"getReflectedControlPoint",value:function getReflectedControlPoint(){var er=this.previousCommand.type;if(er!==gE.CURVE_TO&&er!==gE.SMOOTH_CURVE_TO&&er!==gE.QUAD_TO&&er!==gE.SMOOTH_QUAD_TO)return this.current;var tr=this.current,rr=tr.x,nr=tr.y,ir=this.control,or=ir.x,ar=ir.y;return new AN(2*rr-or,2*nr-ar)}},{key:"makeAbsolute",value:function makeAbsolute(er){if(this.command.relative){var tr=this.current,rr=tr.x,nr=tr.y;er.x+=rr,er.y+=nr}return er}},{key:"addMarker",value:function addMarker(er,tr,rr){var nr=this.points,ir=this.angles;rr&&ir.length>0&&!ir[ir.length-1]&&(ir[ir.length-1]=nr[nr.length-1].angleTo(rr)),this.addMarkerAngle(er,tr?tr.angleTo(er):null)}},{key:"addMarkerAngle",value:function addMarkerAngle(er,tr){this.points.push(er),this.angles.push(tr)}},{key:"getMarkerPoints",value:function getMarkerPoints(){return this.points}},{key:"getMarkerAngles",value:function getMarkerAngles(){for(var er=this.angles,tr=er.length,rr=0;rr<tr;rr++)if(!er[rr])for(var nr=rr+1;nr<tr;nr++)if(er[nr]){er[rr]=er[nr];break}return er}}]),PathParser}();function _createSuper$9(er){var tr=function _isNativeReflectConstruct$9(){if("undefined"==typeof Reflect||!lB)return!1;if(lB.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(lB(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=wB(er);if(tr){var ir=wB(this).constructor;rr=lB(nr,arguments,ir)}else rr=nr.apply(this,arguments);return mB(this,rr)}}var QN=function(er){pB(PathElement,UN);var tr=_createSuper$9(PathElement);function PathElement(er,rr,nr){var ir;return AC(this,PathElement),(ir=tr.call(this,er,rr,nr)).type="path",ir.pathParser=null,ir.pathParser=new ON(ir.getAttribute("d").getString()),ir}return fC(PathElement,[{key:"path",value:function path(er){var tr=this.pathParser,rr=new FN;for(tr.reset(),er&&er.beginPath();!tr.isEnd();)switch(tr.next().type){case ON.MOVE_TO:this.pathM(er,rr);break;case ON.LINE_TO:this.pathL(er,rr);break;case ON.HORIZ_LINE_TO:this.pathH(er,rr);break;case ON.VERT_LINE_TO:this.pathV(er,rr);break;case ON.CURVE_TO:this.pathC(er,rr);break;case ON.SMOOTH_CURVE_TO:this.pathS(er,rr);break;case ON.QUAD_TO:this.pathQ(er,rr);break;case ON.SMOOTH_QUAD_TO:this.pathT(er,rr);break;case ON.ARC:this.pathA(er,rr);break;case ON.CLOSE_PATH:this.pathZ(er,rr)}return rr}},{key:"getBoundingBox",value:function getBoundingBox(er){return this.path()}},{key:"getMarkers",value:function getMarkers(){var er=this.pathParser,tr=er.getMarkerPoints(),rr=er.getMarkerAngles();return lb(tr).call(tr,(function(er,tr){return[er,rr[tr]]}))}},{key:"renderChildren",value:function renderChildren(er){this.path(er),this.document.screen.mouse.checkPath(this,er);var tr=this.getStyle("fill-rule");""!==er.fillStyle&&("inherit"!==tr.getString("inherit")?aE(er).call(er,tr.getString()):aE(er).call(er)),""!==er.strokeStyle&&er.stroke();var rr=this.getMarkers();if(rr){var nr=rr.length-1,ir=this.getStyle("marker-start"),or=this.getStyle("marker-mid"),ar=this.getStyle("marker-end");if(ir.isUrlDefinition()){var sr=ir.getDefinition(),lr=sx(rr[0],2),cr=lr[0],ur=lr[1];sr.render(er,cr,ur)}if(or.isUrlDefinition())for(var dr=or.getDefinition(),hr=1;hr<nr;hr++){var pr=sx(rr[hr],2),Ar=pr[0],fr=pr[1];dr.render(er,Ar,fr)}if(ar.isUrlDefinition()){var gr=ar.getDefinition(),mr=sx(rr[nr],2),_r=mr[0],vr=mr[1];gr.render(er,_r,vr)}}}},{key:"pathM",value:function pathM(er,tr){var rr=this.pathParser,nr=PathElement.pathM(rr).point,ir=nr.x,or=nr.y;rr.addMarker(nr),tr.addPoint(ir,or),er&&er.moveTo(ir,or)}},{key:"pathL",value:function pathL(er,tr){var rr=this.pathParser,nr=PathElement.pathL(rr),ir=nr.current,or=nr.point,ar=or.x,sr=or.y;rr.addMarker(or,ir),tr.addPoint(ar,sr),er&&er.lineTo(ar,sr)}},{key:"pathH",value:function pathH(er,tr){var rr=this.pathParser,nr=PathElement.pathH(rr),ir=nr.current,or=nr.point,ar=or.x,sr=or.y;rr.addMarker(or,ir),tr.addPoint(ar,sr),er&&er.lineTo(ar,sr)}},{key:"pathV",value:function pathV(er,tr){var rr=this.pathParser,nr=PathElement.pathV(rr),ir=nr.current,or=nr.point,ar=or.x,sr=or.y;rr.addMarker(or,ir),tr.addPoint(ar,sr),er&&er.lineTo(ar,sr)}},{key:"pathC",value:function pathC(er,tr){var rr=this.pathParser,nr=PathElement.pathC(rr),ir=nr.current,or=nr.point,ar=nr.controlPoint,sr=nr.currentPoint;rr.addMarker(sr,ar,or),tr.addBezierCurve(ir.x,ir.y,or.x,or.y,ar.x,ar.y,sr.x,sr.y),er&&er.bezierCurveTo(or.x,or.y,ar.x,ar.y,sr.x,sr.y)}},{key:"pathS",value:function pathS(er,tr){var rr=this.pathParser,nr=PathElement.pathS(rr),ir=nr.current,or=nr.point,ar=nr.controlPoint,sr=nr.currentPoint;rr.addMarker(sr,ar,or),tr.addBezierCurve(ir.x,ir.y,or.x,or.y,ar.x,ar.y,sr.x,sr.y),er&&er.bezierCurveTo(or.x,or.y,ar.x,ar.y,sr.x,sr.y)}},{key:"pathQ",value:function pathQ(er,tr){var rr=this.pathParser,nr=PathElement.pathQ(rr),ir=nr.current,or=nr.controlPoint,ar=nr.currentPoint;rr.addMarker(ar,or,or),tr.addQuadraticCurve(ir.x,ir.y,or.x,or.y,ar.x,ar.y),er&&er.quadraticCurveTo(or.x,or.y,ar.x,ar.y)}},{key:"pathT",value:function pathT(er,tr){var rr=this.pathParser,nr=PathElement.pathT(rr),ir=nr.current,or=nr.controlPoint,ar=nr.currentPoint;rr.addMarker(ar,or,or),tr.addQuadraticCurve(ir.x,ir.y,or.x,or.y,ar.x,ar.y),er&&er.quadraticCurveTo(or.x,or.y,ar.x,ar.y)}},{key:"pathA",value:function pathA(er,tr){var rr=this.pathParser,nr=PathElement.pathA(rr),ir=nr.currentPoint,or=nr.rX,ar=nr.rY,sr=nr.sweepFlag,lr=nr.xAxisRotation,cr=nr.centp,ur=nr.a1,dr=nr.ad,hr=1-sr?1:-1,pr=ur+hr*(dr/2),Ar=new AN(cr.x+or*Math.cos(pr),cr.y+ar*Math.sin(pr));if(rr.addMarkerAngle(Ar,pr-hr*Math.PI/2),rr.addMarkerAngle(ir,pr-hr*Math.PI),tr.addPoint(ir.x,ir.y),er&&!isNaN(ur)&&!isNaN(dr)){var fr=or>ar?or:ar,gr=or>ar?1:or/ar,mr=or>ar?ar/or:1;er.translate(cr.x,cr.y),er.rotate(lr),er.scale(gr,mr),er.arc(0,0,fr,ur,ur+dr,Boolean(1-sr)),er.scale(1/gr,1/mr),er.rotate(-lr),er.translate(-cr.x,-cr.y)}}},{key:"pathZ",value:function pathZ(er,tr){PathElement.pathZ(this.pathParser),er&&tr.x1!==tr.x2&&tr.y1!==tr.y2&&er.closePath()}}],[{key:"pathM",value:function pathM(er){var tr=er.getAsCurrentPoint();return er.start=er.current,{point:tr}}},{key:"pathL",value:function pathL(er){return{current:er.current,point:er.getAsCurrentPoint()}}},{key:"pathH",value:function pathH(er){var tr=er.current,rr=er.command,nr=new AN((rr.relative?tr.x:0)+rr.x,tr.y);return er.current=nr,{current:tr,point:nr}}},{key:"pathV",value:function pathV(er){var tr=er.current,rr=er.command,nr=new AN(tr.x,(rr.relative?tr.y:0)+rr.y);return er.current=nr,{current:tr,point:nr}}},{key:"pathC",value:function pathC(er){return{current:er.current,point:er.getPoint("x1","y1"),controlPoint:er.getAsControlPoint("x2","y2"),currentPoint:er.getAsCurrentPoint()}}},{key:"pathS",value:function pathS(er){return{current:er.current,point:er.getReflectedControlPoint(),controlPoint:er.getAsControlPoint("x2","y2"),currentPoint:er.getAsCurrentPoint()}}},{key:"pathQ",value:function pathQ(er){return{current:er.current,controlPoint:er.getAsControlPoint("x1","y1"),currentPoint:er.getAsCurrentPoint()}}},{key:"pathT",value:function pathT(er){var tr=er.current,rr=er.getReflectedControlPoint();return er.control=rr,{current:tr,controlPoint:rr,currentPoint:er.getAsCurrentPoint()}}},{key:"pathA",value:function pathA(er){var tr=er.current,rr=er.command,nr=rr.rX,ir=rr.rY,or=rr.xRot,ar=rr.lArcFlag,sr=rr.sweepFlag,lr=or*(Math.PI/180),cr=er.getAsCurrentPoint(),ur=new AN(Math.cos(lr)*(tr.x-cr.x)/2+Math.sin(lr)*(tr.y-cr.y)/2,-Math.sin(lr)*(tr.x-cr.x)/2+Math.cos(lr)*(tr.y-cr.y)/2),dr=Math.pow(ur.x,2)/Math.pow(nr,2)+Math.pow(ur.y,2)/Math.pow(ir,2);dr>1&&(nr*=Math.sqrt(dr),ir*=Math.sqrt(dr));var hr=(ar===sr?-1:1)*Math.sqrt((Math.pow(nr,2)*Math.pow(ir,2)-Math.pow(nr,2)*Math.pow(ur.y,2)-Math.pow(ir,2)*Math.pow(ur.x,2))/(Math.pow(nr,2)*Math.pow(ur.y,2)+Math.pow(ir,2)*Math.pow(ur.x,2)));isNaN(hr)&&(hr=0);var pr=new AN(hr*nr*ur.y/ir,hr*-ir*ur.x/nr),Ar=new AN((tr.x+cr.x)/2+Math.cos(lr)*pr.x-Math.sin(lr)*pr.y,(tr.y+cr.y)/2+Math.sin(lr)*pr.x+Math.cos(lr)*pr.y),fr=vectorsAngle([1,0],[(ur.x-pr.x)/nr,(ur.y-pr.y)/ir]),gr=[(ur.x-pr.x)/nr,(ur.y-pr.y)/ir],mr=[(-ur.x-pr.x)/nr,(-ur.y-pr.y)/ir],_r=vectorsAngle(gr,mr);return vectorsRatio(gr,mr)<=-1&&(_r=Math.PI),vectorsRatio(gr,mr)>=1&&(_r=0),{currentPoint:cr,rX:nr,rY:ir,sweepFlag:sr,xAxisRotation:lr,centp:Ar,a1:fr,ad:_r}}},{key:"pathZ",value:function pathZ(er){er.current=er.start}}]),PathElement}();function _createSuper$a(er){var tr=function _isNativeReflectConstruct$a(){if("undefined"==typeof Reflect||!lB)return!1;if(lB.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(lB(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=wB(er);if(tr){var ir=wB(this).constructor;rr=lB(nr,arguments,ir)}else rr=nr.apply(this,arguments);return mB(this,rr)}}var DN=function(er){pB(SVGElement,UN);var tr=_createSuper$a(SVGElement);function SVGElement(){var er;return AC(this,SVGElement),(er=tr.apply(this,arguments)).type="svg",er.root=!1,er}return fC(SVGElement,[{key:"setContext",value:function setContext(er){var tr=this.document,rr=tr.screen,nr=tr.window,ir=er.canvas;if(rr.setDefaults(er),ir.style&&void 0!==er.font&&nr&&void 0!==nr.getComputedStyle){er.font=nr.getComputedStyle(ir).getPropertyValue("font");var or=new hN(tr,"fontSize",PN.parse(er.font).fontSize);or.hasValue()&&(tr.rootEmSize=or.getPixels("y"),tr.emSize=tr.rootEmSize)}this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0);var ar=rr.viewPort,sr=ar.width,lr=ar.height;this.getStyle("width").hasValue()||this.getStyle("width",!0).setValue("100%"),this.getStyle("height").hasValue()||this.getStyle("height",!0).setValue("100%"),this.getStyle("color").hasValue()||this.getStyle("color",!0).setValue("black");var cr=this.getAttribute("refX"),ur=this.getAttribute("refY"),dr=this.getAttribute("viewBox"),hr=dr.hasValue()?toNumbers(dr.getString()):null,pr=!this.root&&"visible"!==this.getStyle("overflow").getValue("hidden"),Ar=0,fr=0,gr=0,mr=0;hr&&(Ar=hr[0],fr=hr[1]),this.root||(sr=this.getStyle("width").getPixels("x"),lr=this.getStyle("height").getPixels("y"),"marker"===this.type&&(gr=Ar,mr=fr,Ar=0,fr=0)),rr.viewPort.setCurrent(sr,lr),this.node&&this.getStyle("transform",!1,!0).hasValue()&&!this.getStyle("transform-origin",!1,!0).hasValue()&&this.getStyle("transform-origin",!0,!0).setValue("50% 50%"),nE(wB(SVGElement.prototype),"setContext",this).call(this,er),er.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),hr&&(sr=hr[2],lr=hr[3]),tr.setViewBox({ctx:er,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:rr.viewPort.width,desiredWidth:sr,height:rr.viewPort.height,desiredHeight:lr,minX:Ar,minY:fr,refX:cr.getValue(),refY:ur.getValue(),clip:pr,clipX:gr,clipY:mr}),hr&&(rr.viewPort.removeCurrent(),rr.viewPort.setCurrent(sr,lr))}},{key:"clearContext",value:function clearContext(er){nE(wB(SVGElement.prototype),"clearContext",this).call(this,er),this.document.screen.viewPort.removeCurrent()}},{key:"resize",value:function resize(er){var tr,rr=arguments.length>1&&void 0!==arguments[1]?arguments[1]:er,nr=arguments.length>2&&void 0!==arguments[2]&&arguments[2],ir=this.getAttribute("width",!0),or=this.getAttribute("height",!0),ar=this.getAttribute("viewBox"),sr=this.getAttribute("style"),lr=ir.getNumber(0),cr=or.getNumber(0);if(nr)if("string"==typeof nr)this.getAttribute("preserveAspectRatio",!0).setValue(nr);else{var ur=this.getAttribute("preserveAspectRatio");ur.hasValue()&&ur.setValue(ur.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}(ir.setValue(er),or.setValue(rr),ar.hasValue())||ar.setValue(_C(tr="0 0 ".concat(lr||er," ")).call(tr,cr||rr));if(sr.hasValue()){var dr=this.getStyle("width"),hr=this.getStyle("height");dr.hasValue()&&dr.setValue("".concat(er,"px")),hr.hasValue()&&hr.setValue("".concat(rr,"px"))}}}]),SVGElement}();function _createSuper$b(er){var tr=function _isNativeReflectConstruct$b(){if("undefined"==typeof Reflect||!lB)return!1;if(lB.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(lB(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=wB(er);if(tr){var ir=wB(this).constructor;rr=lB(nr,arguments,ir)}else rr=nr.apply(this,arguments);return mB(this,rr)}}var jN=function(er){pB(RectElement,QN);var tr=_createSuper$b(RectElement);function RectElement(){var er;return AC(this,RectElement),(er=tr.apply(this,arguments)).type="rect",er}return fC(RectElement,[{key:"path",value:function path(er){var tr=this.getAttribute("x").getPixels("x"),rr=this.getAttribute("y").getPixels("y"),nr=this.getStyle("width",!1,!0).getPixels("x"),ir=this.getStyle("height",!1,!0).getPixels("y"),or=this.getAttribute("rx"),ar=this.getAttribute("ry"),sr=or.getPixels("x"),lr=ar.getPixels("y");if(or.hasValue()&&!ar.hasValue()&&(lr=sr),ar.hasValue()&&!or.hasValue()&&(sr=lr),sr=Math.min(sr,nr/2),lr=Math.min(lr,ir/2),er){var cr=(Math.sqrt(2)-1)/3*4;er.beginPath(),ir>0&&nr>0&&(er.moveTo(tr+sr,rr),er.lineTo(tr+nr-sr,rr),er.bezierCurveTo(tr+nr-sr+cr*sr,rr,tr+nr,rr+lr-cr*lr,tr+nr,rr+lr),er.lineTo(tr+nr,rr+ir-lr),er.bezierCurveTo(tr+nr,rr+ir-lr+cr*lr,tr+nr-sr+cr*sr,rr+ir,tr+nr-sr,rr+ir),er.lineTo(tr+sr,rr+ir),er.bezierCurveTo(tr+sr-cr*sr,rr+ir,tr,rr+ir-lr+cr*lr,tr,rr+ir-lr),er.lineTo(tr,rr+lr),er.bezierCurveTo(tr,rr+lr-cr*lr,tr+sr-cr*sr,rr,tr+sr,rr),er.closePath())}return new FN(tr,rr,tr+nr,rr+ir)}},{key:"getMarkers",value:function getMarkers(){return null}}]),RectElement}();function _createSuper$c(er){var tr=function _isNativeReflectConstruct$c(){if("undefined"==typeof Reflect||!lB)return!1;if(lB.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(lB(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=wB(er);if(tr){var ir=wB(this).constructor;rr=lB(nr,arguments,ir)}else rr=nr.apply(this,arguments);return mB(this,rr)}}var HN=function(er){pB(CircleElement,QN);var tr=_createSuper$c(CircleElement);function CircleElement(){var er;return AC(this,CircleElement),(er=tr.apply(this,arguments)).type="circle",er}return fC(CircleElement,[{key:"path",value:function path(er){var tr=this.getAttribute("cx").getPixels("x"),rr=this.getAttribute("cy").getPixels("y"),nr=this.getAttribute("r").getPixels();return er&&nr>0&&(er.beginPath(),er.arc(tr,rr,nr,0,2*Math.PI,!1),er.closePath()),new FN(tr-nr,rr-nr,tr+nr,rr+nr)}},{key:"getMarkers",value:function getMarkers(){return null}}]),CircleElement}();function _createSuper$d(er){var tr=function _isNativeReflectConstruct$d(){if("undefined"==typeof Reflect||!lB)return!1;if(lB.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(lB(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=wB(er);if(tr){var ir=wB(this).constructor;rr=lB(nr,arguments,ir)}else rr=nr.apply(this,arguments);return mB(this,rr)}}var GN=function(er){pB(EllipseElement,QN);var tr=_createSuper$d(EllipseElement);function EllipseElement(){var er;return AC(this,EllipseElement),(er=tr.apply(this,arguments)).type="ellipse",er}return fC(EllipseElement,[{key:"path",value:function path(er){var tr=(Math.sqrt(2)-1)/3*4,rr=this.getAttribute("rx").getPixels("x"),nr=this.getAttribute("ry").getPixels("y"),ir=this.getAttribute("cx").getPixels("x"),or=this.getAttribute("cy").getPixels("y");return er&&rr>0&&nr>0&&(er.beginPath(),er.moveTo(ir+rr,or),er.bezierCurveTo(ir+rr,or+tr*nr,ir+tr*rr,or+nr,ir,or+nr),er.bezierCurveTo(ir-tr*rr,or+nr,ir-rr,or+tr*nr,ir-rr,or),er.bezierCurveTo(ir-rr,or-tr*nr,ir-tr*rr,or-nr,ir,or-nr),er.bezierCurveTo(ir+tr*rr,or-nr,ir+rr,or-tr*nr,ir+rr,or),er.closePath()),new FN(ir-rr,or-nr,ir+rr,or+nr)}},{key:"getMarkers",value:function getMarkers(){return null}}]),EllipseElement}();function _createSuper$e(er){var tr=function _isNativeReflectConstruct$e(){if("undefined"==typeof Reflect||!lB)return!1;if(lB.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(lB(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=wB(er);if(tr){var ir=wB(this).constructor;rr=lB(nr,arguments,ir)}else rr=nr.apply(this,arguments);return mB(this,rr)}}var VN=function(er){pB(LineElement,QN);var tr=_createSuper$e(LineElement);function LineElement(){var er;return AC(this,LineElement),(er=tr.apply(this,arguments)).type="line",er}return fC(LineElement,[{key:"getPoints",value:function getPoints(){return[new AN(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new AN(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}},{key:"path",value:function path(er){var tr=this.getPoints(),rr=sx(tr,2),nr=rr[0],ir=nr.x,or=nr.y,ar=rr[1],sr=ar.x,lr=ar.y;return er&&(er.beginPath(),er.moveTo(ir,or),er.lineTo(sr,lr)),new FN(ir,or,sr,lr)}},{key:"getMarkers",value:function getMarkers(){var er=this.getPoints(),tr=sx(er,2),rr=tr[0],nr=tr[1],ir=rr.angleTo(nr);return[[rr,ir],[nr,ir]]}}]),LineElement}();function _createSuper$f(er){var tr=function _isNativeReflectConstruct$f(){if("undefined"==typeof Reflect||!lB)return!1;if(lB.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(lB(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=wB(er);if(tr){var ir=wB(this).constructor;rr=lB(nr,arguments,ir)}else rr=nr.apply(this,arguments);return mB(this,rr)}}var zN=function(er){pB(PolylineElement,QN);var tr=_createSuper$f(PolylineElement);function PolylineElement(er,rr,nr){var ir;return AC(this,PolylineElement),(ir=tr.call(this,er,rr,nr)).type="polyline",ir.points=[],ir.points=AN.parsePath(ir.getAttribute("points").getString()),ir}return fC(PolylineElement,[{key:"path",value:function path(er){var tr=this.points,rr=sx(tr,1)[0],nr=rr.x,ir=rr.y,or=new FN(nr,ir);return er&&(er.beginPath(),er.moveTo(nr,ir)),wx(tr).call(tr,(function(tr){var rr=tr.x,nr=tr.y;or.addPoint(rr,nr),er&&er.lineTo(rr,nr)})),or}},{key:"getMarkers",value:function getMarkers(){var er=this.points,tr=er.length-1,rr=[];return wx(er).call(er,(function(nr,ir){ir!==tr&&rr.push([nr,nr.angleTo(er[ir+1])])})),rr.length>0&&rr.push([er[er.length-1],rr[rr.length-1][1]]),rr}}]),PolylineElement}();function _createSuper$g(er){var tr=function _isNativeReflectConstruct$g(){if("undefined"==typeof Reflect||!lB)return!1;if(lB.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(lB(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=wB(er);if(tr){var ir=wB(this).constructor;rr=lB(nr,arguments,ir)}else rr=nr.apply(this,arguments);return mB(this,rr)}}var KN=function(er){pB(PolygonElement,zN);var tr=_createSuper$g(PolygonElement);function PolygonElement(){var er;return AC(this,PolygonElement),(er=tr.apply(this,arguments)).type="polygon",er}return fC(PolygonElement,[{key:"path",value:function path(er){var tr=nE(wB(PolygonElement.prototype),"path",this).call(this,er),rr=sx(this.points,1)[0],nr=rr.x,ir=rr.y;return er&&(er.lineTo(nr,ir),er.closePath()),tr}}]),PolygonElement}();function _createSuper$h(er){var tr=function _isNativeReflectConstruct$h(){if("undefined"==typeof Reflect||!lB)return!1;if(lB.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(lB(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=wB(er);if(tr){var ir=wB(this).constructor;rr=lB(nr,arguments,ir)}else rr=nr.apply(this,arguments);return mB(this,rr)}}var qN=function(er){pB(PatternElement,LN);var tr=_createSuper$h(PatternElement);function PatternElement(){var er;return AC(this,PatternElement),(er=tr.apply(this,arguments)).type="pattern",er}return fC(PatternElement,[{key:"createPattern",value:function createPattern(er,tr,rr){var nr=this.getStyle("width").getPixels("x",!0),ir=this.getStyle("height").getPixels("y",!0),or=new DN(this.document,null);or.attributes.viewBox=new hN(this.document,"viewBox",this.getAttribute("viewBox").getValue()),or.attributes.width=new hN(this.document,"width","".concat(nr,"px")),or.attributes.height=new hN(this.document,"height","".concat(ir,"px")),or.attributes.transform=new hN(this.document,"transform",this.getAttribute("patternTransform").getValue()),or.children=this.children;var ar=this.document.createCanvas(nr,ir),sr=ar.getContext("2d"),lr=this.getAttribute("x"),cr=this.getAttribute("y");lr.hasValue()&&cr.hasValue()&&sr.translate(lr.getPixels("x",!0),cr.getPixels("y",!0)),rr.hasValue()?this.styles["fill-opacity"]=rr:vE(this.styles,"fill-opacity");for(var ur=-1;ur<=1;ur++)for(var dr=-1;dr<=1;dr++)sr.save(),or.attributes.x=new hN(this.document,"x",ur*ar.width),or.attributes.y=new hN(this.document,"y",dr*ar.height),or.render(sr),sr.restore();return er.createPattern(ar,"repeat")}}]),PatternElement}();function _createSuper$i(er){var tr=function _isNativeReflectConstruct$i(){if("undefined"==typeof Reflect||!lB)return!1;if(lB.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(lB(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=wB(er);if(tr){var ir=wB(this).constructor;rr=lB(nr,arguments,ir)}else rr=nr.apply(this,arguments);return mB(this,rr)}}var WN=function(er){pB(MarkerElement,LN);var tr=_createSuper$i(MarkerElement);function MarkerElement(){var er;return AC(this,MarkerElement),(er=tr.apply(this,arguments)).type="marker",er}return fC(MarkerElement,[{key:"render",value:function render(er,tr,rr){if(tr){var nr=tr.x,ir=tr.y,or=this.getAttribute("orient").getValue("auto"),ar=this.getAttribute("markerUnits").getValue("strokeWidth");er.translate(nr,ir),"auto"===or&&er.rotate(rr),"strokeWidth"===ar&&er.scale(er.lineWidth,er.lineWidth),er.save();var sr=new DN(this.document,null);sr.type=this.type,sr.attributes.viewBox=new hN(this.document,"viewBox",this.getAttribute("viewBox").getValue()),sr.attributes.refX=new hN(this.document,"refX",this.getAttribute("refX").getValue()),sr.attributes.refY=new hN(this.document,"refY",this.getAttribute("refY").getValue()),sr.attributes.width=new hN(this.document,"width",this.getAttribute("markerWidth").getValue()),sr.attributes.height=new hN(this.document,"height",this.getAttribute("markerHeight").getValue()),sr.attributes.overflow=new hN(this.document,"overflow",this.getAttribute("overflow").getValue()),sr.attributes.fill=new hN(this.document,"fill",this.getAttribute("fill").getColor("black")),sr.attributes.stroke=new hN(this.document,"stroke",this.getAttribute("stroke").getValue("none")),sr.children=this.children,sr.render(er),er.restore(),"strokeWidth"===ar&&er.scale(1/er.lineWidth,1/er.lineWidth),"auto"===or&&er.rotate(-rr),er.translate(-nr,-ir)}}}]),MarkerElement}();function _createSuper$j(er){var tr=function _isNativeReflectConstruct$j(){if("undefined"==typeof Reflect||!lB)return!1;if(lB.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(lB(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=wB(er);if(tr){var ir=wB(this).constructor;rr=lB(nr,arguments,ir)}else rr=nr.apply(this,arguments);return mB(this,rr)}}var XN=function(er){pB(DefsElement,LN);var tr=_createSuper$j(DefsElement);function DefsElement(){var er;return AC(this,DefsElement),(er=tr.apply(this,arguments)).type="defs",er}return fC(DefsElement,[{key:"render",value:function render(){}}]),DefsElement}();function _createSuper$k(er){var tr=function _isNativeReflectConstruct$k(){if("undefined"==typeof Reflect||!lB)return!1;if(lB.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(lB(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=wB(er);if(tr){var ir=wB(this).constructor;rr=lB(nr,arguments,ir)}else rr=nr.apply(this,arguments);return mB(this,rr)}}var YN=function(er){pB(GElement,UN);var tr=_createSuper$k(GElement);function GElement(){var er;return AC(this,GElement),(er=tr.apply(this,arguments)).type="g",er}return fC(GElement,[{key:"getBoundingBox",value:function getBoundingBox(er){var tr,rr=new FN;return wx(tr=this.children).call(tr,(function(tr){rr.addBoundingBox(tr.getBoundingBox(er))})),rr}}]),GElement}();function _createSuper$l(er){var tr=function _isNativeReflectConstruct$l(){if("undefined"==typeof Reflect||!lB)return!1;if(lB.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(lB(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=wB(er);if(tr){var ir=wB(this).constructor;rr=lB(nr,arguments,ir)}else rr=nr.apply(this,arguments);return mB(this,rr)}}var JN=function(er){pB(GradientElement,LN);var tr=_createSuper$l(GradientElement);function GradientElement(er,rr,nr){var ir;AC(this,GradientElement),(ir=tr.call(this,er,rr,nr)).attributesToInherit=["gradientUnits"],ir.stops=[];var or=gB(ir),ar=or.stops,sr=or.children;return wx(sr).call(sr,(function(er){"stop"===er.type&&ar.push(er)})),ir}return fC(GradientElement,[{key:"getGradientUnits",value:function getGradientUnits(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}},{key:"createGradient",value:function createGradient(er,tr,rr){var nr=this,ir=this;this.getHrefAttribute().hasValue()&&(ir=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(ir));var or=ir.stops,ar=this.getGradient(er,tr);if(!ar)return this.addParentOpacity(rr,or[or.length-1].color);if(wx(or).call(or,(function(er){ar.addColorStop(er.offset,nr.addParentOpacity(rr,er.color))})),this.getAttribute("gradientTransform").hasValue()){var sr=this.document,lr=sr.screen,cr=lr.MAX_VIRTUAL_PIXELS,ur=lr.viewPort,dr=sx(ur.viewPorts,1)[0],hr=new jN(sr,null);hr.attributes.x=new hN(sr,"x",-cr/3),hr.attributes.y=new hN(sr,"y",-cr/3),hr.attributes.width=new hN(sr,"width",cr),hr.attributes.height=new hN(sr,"height",cr);var pr=new YN(sr,null);pr.attributes.transform=new hN(sr,"transform",this.getAttribute("gradientTransform").getValue()),pr.children=[hr];var Ar=new DN(sr,null);Ar.attributes.x=new hN(sr,"x",0),Ar.attributes.y=new hN(sr,"y",0),Ar.attributes.width=new hN(sr,"width",dr.width),Ar.attributes.height=new hN(sr,"height",dr.height),Ar.children=[pr];var fr=sr.createCanvas(dr.width,dr.height),gr=fr.getContext("2d");return gr.fillStyle=ar,Ar.render(gr),gr.createPattern(fr,"no-repeat")}return ar}},{key:"inheritStopContainer",value:function inheritStopContainer(er){var tr,rr=this;wx(tr=this.attributesToInherit).call(tr,(function(tr){!rr.getAttribute(tr).hasValue()&&er.getAttribute(tr).hasValue()&&rr.getAttribute(tr,!0).setValue(er.getAttribute(tr).getValue())}))}},{key:"addParentOpacity",value:function addParentOpacity(er,tr){return er.hasValue()?new hN(this.document,"color",tr).addOpacity(er).getColor():tr}}]),GradientElement}();function _createSuper$m(er){var tr=function _isNativeReflectConstruct$m(){if("undefined"==typeof Reflect||!lB)return!1;if(lB.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(lB(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=wB(er);if(tr){var ir=wB(this).constructor;rr=lB(nr,arguments,ir)}else rr=nr.apply(this,arguments);return mB(this,rr)}}var $N=function(er){pB(LinearGradientElement,JN);var tr=_createSuper$m(LinearGradientElement);function LinearGradientElement(er,rr,nr){var ir;return AC(this,LinearGradientElement),(ir=tr.call(this,er,rr,nr)).type="linearGradient",ir.attributesToInherit.push("x1","y1","x2","y2"),ir}return fC(LinearGradientElement,[{key:"getGradient",value:function getGradient(er,tr){var rr="objectBoundingBox"===this.getGradientUnits(),nr=rr?tr.getBoundingBox(er):null;if(rr&&!nr)return null;this.getAttribute("x1").hasValue()||this.getAttribute("y1").hasValue()||this.getAttribute("x2").hasValue()||this.getAttribute("y2").hasValue()||(this.getAttribute("x1",!0).setValue(0),this.getAttribute("y1",!0).setValue(0),this.getAttribute("x2",!0).setValue(1),this.getAttribute("y2",!0).setValue(0));var ir=rr?nr.x+nr.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),or=rr?nr.y+nr.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),ar=rr?nr.x+nr.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),sr=rr?nr.y+nr.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return ir===ar&&or===sr?null:er.createLinearGradient(ir,or,ar,sr)}}]),LinearGradientElement}();function _createSuper$n(er){var tr=function _isNativeReflectConstruct$n(){if("undefined"==typeof Reflect||!lB)return!1;if(lB.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(lB(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=wB(er);if(tr){var ir=wB(this).constructor;rr=lB(nr,arguments,ir)}else rr=nr.apply(this,arguments);return mB(this,rr)}}var ZN=function(er){pB(RadialGradientElement,JN);var tr=_createSuper$n(RadialGradientElement);function RadialGradientElement(er,rr,nr){var ir;return AC(this,RadialGradientElement),(ir=tr.call(this,er,rr,nr)).type="radialGradient",ir.attributesToInherit.push("cx","cy","r","fx","fy","fr"),ir}return fC(RadialGradientElement,[{key:"getGradient",value:function getGradient(er,tr){var rr="objectBoundingBox"===this.getGradientUnits(),nr=tr.getBoundingBox(er);if(rr&&!nr)return null;this.getAttribute("cx").hasValue()||this.getAttribute("cx",!0).setValue("50%"),this.getAttribute("cy").hasValue()||this.getAttribute("cy",!0).setValue("50%"),this.getAttribute("r").hasValue()||this.getAttribute("r",!0).setValue("50%");var ir=rr?nr.x+nr.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),or=rr?nr.y+nr.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),ar=ir,sr=or;this.getAttribute("fx").hasValue()&&(ar=rr?nr.x+nr.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(sr=rr?nr.y+nr.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var lr=rr?(nr.width+nr.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),cr=this.getAttribute("fr").getPixels();return er.createRadialGradient(ar,sr,cr,ir,or,lr)}}]),RadialGradientElement}();function _createSuper$o(er){var tr=function _isNativeReflectConstruct$o(){if("undefined"==typeof Reflect||!lB)return!1;if(lB.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(lB(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=wB(er);if(tr){var ir=wB(this).constructor;rr=lB(nr,arguments,ir)}else rr=nr.apply(this,arguments);return mB(this,rr)}}var eL=function(er){pB(StopElement,LN);var tr=_createSuper$o(StopElement);function StopElement(er,rr,nr){var ir;AC(this,StopElement),(ir=tr.call(this,er,rr,nr)).type="stop";var or=Math.max(0,Math.min(1,ir.getAttribute("offset").getNumber())),ar=ir.getStyle("stop-opacity"),sr=ir.getStyle("stop-color",!0);return""===sr.getString()&&sr.setValue("#000"),ar.hasValue()&&(sr=sr.addOpacity(ar)),ir.offset=or,ir.color=sr.getColor(),ir}return StopElement}();function _createSuper$p(er){var tr=function _isNativeReflectConstruct$p(){if("undefined"==typeof Reflect||!lB)return!1;if(lB.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(lB(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=wB(er);if(tr){var ir=wB(this).constructor;rr=lB(nr,arguments,ir)}else rr=nr.apply(this,arguments);return mB(this,rr)}}var tL=function(er){pB(AnimateElement,LN);var tr=_createSuper$p(AnimateElement);function AnimateElement(er,rr,nr){var ir;return AC(this,AnimateElement),(ir=tr.call(this,er,rr,nr)).type="animate",ir.duration=0,ir.initialValue=null,ir.initialUnits="",ir.removed=!1,ir.frozen=!1,er.screen.animations.push(gB(ir)),ir.begin=ir.getAttribute("begin").getMilliseconds(),ir.maxDuration=ir.begin+ir.getAttribute("dur").getMilliseconds(),ir.from=ir.getAttribute("from"),ir.to=ir.getAttribute("to"),ir.values=ir.getAttribute("values"),SE(ir).hasValue()&&SE(ir).setValue(SE(ir).getString().split(";")),ir}return fC(AnimateElement,[{key:"getProperty",value:function getProperty(){var er=this.getAttribute("attributeType").getString(),tr=this.getAttribute("attributeName").getString();return"CSS"===er?this.parent.getStyle(tr,!0):this.parent.getAttribute(tr,!0)}},{key:"calcValue",value:function calcValue(){var er,tr=this.initialUnits,rr=this.getProgress(),nr=rr.progress,ir=rr.from,or=rr.to,ar=ir.getNumber()+(or.getNumber()-ir.getNumber())*nr;return"%"===tr&&(ar*=100),_C(er="".concat(ar)).call(er,tr)}},{key:"update",value:function update(er){var tr=this.parent,rr=this.getProperty();if(this.initialValue||(this.initialValue=rr.getString(),this.initialUnits=rr.getUnits()),this.duration>this.maxDuration){var nr=this.getAttribute("fill").getString("remove");if("indefinite"===this.getAttribute("repeatCount").getString()||"indefinite"===this.getAttribute("repeatDur").getString())this.duration=0;else if("freeze"!==nr||this.frozen){if("remove"===nr&&!this.removed)return this.removed=!0,rr.setValue(tr.animationFrozen?tr.animationFrozenValue:this.initialValue),!0}else this.frozen=!0,tr.animationFrozen=!0,tr.animationFrozenValue=rr.getString();return!1}this.duration+=er;var ir=!1;if(this.begin<this.duration){var or=this.calcValue(),ar=this.getAttribute("type");if(ar.hasValue()){var sr,lr=ar.getString();or=_C(sr="".concat(lr,"(")).call(sr,or,")")}rr.setValue(or),ir=!0}return ir}},{key:"getProgress",value:function getProgress(){var er=this.document,tr=SE(this),rr={progress:(this.duration-this.begin)/(this.maxDuration-this.begin)};if(tr.hasValue()){var nr=rr.progress*(tr.getValue().length-1),ir=Math.floor(nr),or=Math.ceil(nr);rr.from=new hN(er,"from",Ry(tr.getValue()[ir])),rr.to=new hN(er,"to",Ry(tr.getValue()[or])),rr.progress=(nr-ir)/(or-ir)}else rr.from=this.from,rr.to=this.to;return rr}}]),AnimateElement}();function _createSuper$q(er){var tr=function _isNativeReflectConstruct$q(){if("undefined"==typeof Reflect||!lB)return!1;if(lB.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(lB(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=wB(er);if(tr){var ir=wB(this).constructor;rr=lB(nr,arguments,ir)}else rr=nr.apply(this,arguments);return mB(this,rr)}}var rL=function(er){pB(AnimateColorElement,tL);var tr=_createSuper$q(AnimateColorElement);function AnimateColorElement(){var er;return AC(this,AnimateColorElement),(er=tr.apply(this,arguments)).type="animateColor",er}return fC(AnimateColorElement,[{key:"calcValue",value:function calcValue(){var er=this.getProgress(),tr=er.progress,rr=er.from,nr=er.to,ir=new nB(rr.getColor()),or=new nB(nr.getColor());if(ir.ok&&or.ok){var ar,sr,lr=ir.r+(or.r-ir.r)*tr,cr=ir.g+(or.g-ir.g)*tr,ur=ir.b+(or.b-ir.b)*tr;return _C(ar=_C(sr="rgb(".concat(EE(lr,10),", ")).call(sr,EE(cr,10),", ")).call(ar,EE(ur,10),")")}return this.getAttribute("from").getColor()}}]),AnimateColorElement}();function _createSuper$r(er){var tr=function _isNativeReflectConstruct$r(){if("undefined"==typeof Reflect||!lB)return!1;if(lB.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(lB(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=wB(er);if(tr){var ir=wB(this).constructor;rr=lB(nr,arguments,ir)}else rr=nr.apply(this,arguments);return mB(this,rr)}}var nL=function(er){pB(AnimateTransformElement,tL);var tr=_createSuper$r(AnimateTransformElement);function AnimateTransformElement(){var er;return AC(this,AnimateTransformElement),(er=tr.apply(this,arguments)).type="animateTransform",er}return fC(AnimateTransformElement,[{key:"calcValue",value:function calcValue(){var er=this.getProgress(),tr=er.progress,rr=er.from,nr=er.to,ir=toNumbers(rr.getString()),or=toNumbers(nr.getString());return lb(ir).call(ir,(function(er,rr){return er+(or[rr]-er)*tr})).join(" ")}}]),AnimateTransformElement}();function _createForOfIteratorHelper$1(er,tr){var rr;if(void 0===TE||null==LE(er)){if(NE(er)||(rr=function _unsupportedIterableToArray$2(er,tr){var rr;if(!er)return;if("string"==typeof er)return _arrayLikeToArray$2(er,tr);var nr=PE(rr=Object.prototype.toString.call(er)).call(rr,8,-1);"Object"===nr&&er.constructor&&(nr=er.constructor.name);if("Map"===nr||"Set"===nr)return DB(er);if("Arguments"===nr||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(nr))return _arrayLikeToArray$2(er,tr)}(er))||tr&&er&&"number"==typeof er.length){rr&&(er=rr);var nr=0,ir=function F(){};return{s:ir,n:function n(){return nr>=er.length?{done:!0}:{done:!1,value:er[nr++]}},e:function e(er){throw er},f:ir}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var or,ar=!0,sr=!1;return{s:function s(){rr=Dw(er)},n:function n(){var er=rr.next();return ar=er.done,er},e:function e(er){sr=!0,or=er},f:function f(){try{ar||null==rr.return||rr.return()}finally{if(sr)throw or}}}}function _arrayLikeToArray$2(er,tr){(null==tr||tr>er.length)&&(tr=er.length);for(var rr=0,nr=new Array(tr);rr<tr;rr++)nr[rr]=er[rr];return nr}function _createSuper$s(er){var tr=function _isNativeReflectConstruct$s(){if("undefined"==typeof Reflect||!lB)return!1;if(lB.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(lB(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=wB(er);if(tr){var ir=wB(this).constructor;rr=lB(nr,arguments,ir)}else rr=nr.apply(this,arguments);return mB(this,rr)}}var iL=function(er){pB(FontElement,LN);var tr=_createSuper$s(FontElement);function FontElement(er,rr,nr){var ir;AC(this,FontElement),(ir=tr.call(this,er,rr,nr)).type="font",ir.glyphs={},ir.horizAdvX=ir.getAttribute("horiz-adv-x").getNumber();var or,ar=er.definitions,sr=_createForOfIteratorHelper$1(gB(ir).children);try{for(sr.s();!(or=sr.n()).done;){var lr=or.value;switch(lr.type){case"font-face":ir.fontFace=lr;var cr=lr.getStyle("font-family");cr.hasValue()&&(ar[cr.getString()]=gB(ir));break;case"missing-glyph":ir.missingGlyph=lr;break;case"glyph":var ur=lr;ur.arabicForm?(ir.isRTL=!0,ir.isArabic=!0,void 0===ir.glyphs[ur.unicode]&&(ir.glyphs[ur.unicode]={}),ir.glyphs[ur.unicode][ur.arabicForm]=ur):ir.glyphs[ur.unicode]=ur}}}catch(er){sr.e(er)}finally{sr.f()}return ir}return fC(FontElement,[{key:"render",value:function render(){}}]),FontElement}();function _createSuper$t(er){var tr=function _isNativeReflectConstruct$t(){if("undefined"==typeof Reflect||!lB)return!1;if(lB.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(lB(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=wB(er);if(tr){var ir=wB(this).constructor;rr=lB(nr,arguments,ir)}else rr=nr.apply(this,arguments);return mB(this,rr)}}var oL=function(er){pB(FontFaceElement,LN);var tr=_createSuper$t(FontFaceElement);function FontFaceElement(er,rr,nr){var ir;return AC(this,FontFaceElement),(ir=tr.call(this,er,rr,nr)).type="font-face",ir.ascent=ir.getAttribute("ascent").getNumber(),ir.descent=ir.getAttribute("descent").getNumber(),ir.unitsPerEm=ir.getAttribute("units-per-em").getNumber(),ir}return FontFaceElement}();function _createSuper$u(er){var tr=function _isNativeReflectConstruct$u(){if("undefined"==typeof Reflect||!lB)return!1;if(lB.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(lB(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=wB(er);if(tr){var ir=wB(this).constructor;rr=lB(nr,arguments,ir)}else rr=nr.apply(this,arguments);return mB(this,rr)}}var aL=function(er){pB(MissingGlyphElement,QN);var tr=_createSuper$u(MissingGlyphElement);function MissingGlyphElement(){var er;return AC(this,MissingGlyphElement),(er=tr.apply(this,arguments)).type="missing-glyph",er.horizAdvX=0,er}return MissingGlyphElement}();function _createSuper$v(er){var tr=function _isNativeReflectConstruct$v(){if("undefined"==typeof Reflect||!lB)return!1;if(lB.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(lB(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=wB(er);if(tr){var ir=wB(this).constructor;rr=lB(nr,arguments,ir)}else rr=nr.apply(this,arguments);return mB(this,rr)}}var sL=function(er){pB(GlyphElement,QN);var tr=_createSuper$v(GlyphElement);function GlyphElement(er,rr,nr){var ir;return AC(this,GlyphElement),(ir=tr.call(this,er,rr,nr)).type="glyph",ir.horizAdvX=ir.getAttribute("horiz-adv-x").getNumber(),ir.unicode=ir.getAttribute("unicode").getString(),ir.arabicForm=ir.getAttribute("arabic-form").getString(),ir}return GlyphElement}();function _createSuper$w(er){var tr=function _isNativeReflectConstruct$w(){if("undefined"==typeof Reflect||!lB)return!1;if(lB.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(lB(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=wB(er);if(tr){var ir=wB(this).constructor;rr=lB(nr,arguments,ir)}else rr=nr.apply(this,arguments);return mB(this,rr)}}var lL=function(er){pB(TRefElement,IN);var tr=_createSuper$w(TRefElement);function TRefElement(){var er;return AC(this,TRefElement),(er=tr.apply(this,arguments)).type="tref",er}return fC(TRefElement,[{key:"getText",value:function getText(){var er=this.getHrefAttribute().getDefinition();if(er){var tr=er.children[0];if(tr)return tr.getText()}return""}}]),TRefElement}();function _createSuper$x(er){var tr=function _isNativeReflectConstruct$x(){if("undefined"==typeof Reflect||!lB)return!1;if(lB.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(lB(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=wB(er);if(tr){var ir=wB(this).constructor;rr=lB(nr,arguments,ir)}else rr=nr.apply(this,arguments);return mB(this,rr)}}var cL=function(er){pB(AElement,IN);var tr=_createSuper$x(AElement);function AElement(er,rr,nr){var ir,or;AC(this,AElement),(or=tr.call(this,er,rr,nr)).type="a";var ar=rr.childNodes,sr=ar[0],lr=ar.length>0&&FC(ir=DB(ar)).call(ir,(function(er){return 3===er.nodeType}));return or.hasText=lr,or.text=lr?or.getTextFromNode(sr):"",or}return fC(AElement,[{key:"getText",value:function getText(){return this.text}},{key:"renderChildren",value:function renderChildren(er){if(this.hasText){nE(wB(AElement.prototype),"renderChildren",this).call(this,er);var tr=this.document,rr=this.x,nr=this.y,ir=tr.screen.mouse,or=new hN(tr,"fontSize",PN.parse(tr.ctx.font).fontSize);ir.isWorking()&&ir.checkBoundingBox(this,new FN(rr,nr-or.getPixels("y"),rr+this.measureText(er),nr))}else if(this.children.length>0){var ar=new YN(this.document,null);ar.children=this.children,ar.parent=this,ar.render(er)}}},{key:"onClick",value:function onClick(){var er=this.document.window;er&&er.open(this.getHrefAttribute().getString())}},{key:"onMouseMove",value:function onMouseMove(){this.document.ctx.canvas.style.cursor="pointer"}}]),AElement}();function _createForOfIteratorHelper$1$1(er,tr){var rr;if(void 0===TE||null==LE(er)){if(NE(er)||(rr=function _unsupportedIterableToArray$1$1(er,tr){var rr;if(!er)return;if("string"==typeof er)return _arrayLikeToArray$1$1(er,tr);var nr=PE(rr=Object.prototype.toString.call(er)).call(rr,8,-1);"Object"===nr&&er.constructor&&(nr=er.constructor.name);if("Map"===nr||"Set"===nr)return DB(er);if("Arguments"===nr||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(nr))return _arrayLikeToArray$1$1(er,tr)}(er))||tr&&er&&"number"==typeof er.length){rr&&(er=rr);var nr=0,ir=function F(){};return{s:ir,n:function n(){return nr>=er.length?{done:!0}:{done:!1,value:er[nr++]}},e:function e(er){throw er},f:ir}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var or,ar=!0,sr=!1;return{s:function s(){rr=Dw(er)},n:function n(){var er=rr.next();return ar=er.done,er},e:function e(er){sr=!0,or=er},f:function f(){try{ar||null==rr.return||rr.return()}finally{if(sr)throw or}}}}function _arrayLikeToArray$1$1(er,tr){(null==tr||tr>er.length)&&(tr=er.length);for(var rr=0,nr=new Array(tr);rr<tr;rr++)nr[rr]=er[rr];return nr}function ownKeys$3(er,tr){var rr=Ix(er);if(Fx){var nr=Fx(er);tr&&(nr=Px(nr).call(nr,(function(tr){return Cx(er,tr).enumerable}))),rr.push.apply(rr,nr)}return rr}function _objectSpread(er){for(var tr=1;tr<arguments.length;tr++){var rr,nr=null!=arguments[tr]?arguments[tr]:{};if(tr%2)wx(rr=ownKeys$3(Object(nr),!0)).call(rr,(function(tr){pC(er,tr,nr[tr])}));else if(hx)ux(er,hx(nr));else{var ir;wx(ir=ownKeys$3(Object(nr))).call(ir,(function(tr){cx(er,tr,Cx(nr,tr))}))}}return er}function _createSuper$y(er){var tr=function _isNativeReflectConstruct$y(){if("undefined"==typeof Reflect||!lB)return!1;if(lB.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(lB(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=wB(er);if(tr){var ir=wB(this).constructor;rr=lB(nr,arguments,ir)}else rr=nr.apply(this,arguments);return mB(this,rr)}}var uL=function(er){pB(TextPathElement,IN);var tr=_createSuper$y(TextPathElement);function TextPathElement(er,rr,nr){var ir;AC(this,TextPathElement),(ir=tr.call(this,er,rr,nr)).type="textPath",ir.textWidth=0,ir.textHeight=0,ir.pathLength=-1,ir.glyphInfo=null,ir.letterSpacingCache=[],ir.measuresCache=new XE([["",0]]);var or=ir.getHrefAttribute().getDefinition();return ir.text=ir.getTextFromNode(),ir.dataArray=ir.parsePathData(or),ir}return fC(TextPathElement,[{key:"getText",value:function getText(){return this.text}},{key:"path",value:function path(er){var tr=this.dataArray;er&&er.beginPath(),wx(tr).call(tr,(function(tr){var rr=tr.type,nr=tr.points;switch(rr){case ON.LINE_TO:er&&er.lineTo(nr[0],nr[1]);break;case ON.MOVE_TO:er&&er.moveTo(nr[0],nr[1]);break;case ON.CURVE_TO:er&&er.bezierCurveTo(nr[0],nr[1],nr[2],nr[3],nr[4],nr[5]);break;case ON.QUAD_TO:er&&er.quadraticCurveTo(nr[0],nr[1],nr[2],nr[3]);break;case ON.ARC:var ir=sx(nr,8),or=ir[0],ar=ir[1],sr=ir[2],lr=ir[3],cr=ir[4],ur=ir[5],dr=ir[6],hr=ir[7],pr=sr>lr?sr:lr,Ar=sr>lr?1:sr/lr,fr=sr>lr?lr/sr:1;er&&(er.translate(or,ar),er.rotate(dr),er.scale(Ar,fr),er.arc(0,0,pr,cr,cr+ur,Boolean(1-hr)),er.scale(1/Ar,1/fr),er.rotate(-dr),er.translate(-or,-ar));break;case ON.CLOSE_PATH:er&&er.closePath()}}))}},{key:"renderChildren",value:function renderChildren(er){this.setTextData(er),er.save();var tr=this.parent.getStyle("text-decoration").getString(),rr=this.getFontSize(),nr=this.glyphInfo,ir=er.fillStyle;"underline"===tr&&er.beginPath(),wx(nr).call(nr,(function(nr,ir){var or=nr.p0,ar=nr.p1,sr=nr.rotation,lr=nr.text;er.save(),er.translate(or.x,or.y),er.rotate(sr),er.fillStyle&&er.fillText(lr,0,0),er.strokeStyle&&er.strokeText(lr,0,0),er.restore(),"underline"===tr&&(0===ir&&er.moveTo(or.x,or.y+rr/8),er.lineTo(ar.x,ar.y+rr/5))})),"underline"===tr&&(er.lineWidth=rr/20,er.strokeStyle=ir,er.stroke(),er.closePath()),er.restore()}},{key:"getLetterSpacingAt",value:function getLetterSpacingAt(){var er=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.letterSpacingCache[er]||0}},{key:"findSegmentToFitChar",value:function findSegmentToFitChar(er,tr,rr,nr,ir,or,ar,sr,lr){var cr=or,ur=this.measureText(er,sr);" "===sr&&"justify"===tr&&rr<nr&&(ur+=(nr-rr)/ir),lr>-1&&(cr+=this.getLetterSpacingAt(lr));var dr=this.textHeight/20,hr=this.getEquidistantPointOnPath(cr,dr,0),pr=this.getEquidistantPointOnPath(cr+ur,dr,0),Ar={p0:hr,p1:pr},fr=hr&&pr?Math.atan2(pr.y-hr.y,pr.x-hr.x):0;if(ar){var gr=Math.cos(Math.PI/2+fr)*ar,mr=Math.cos(-fr)*ar;Ar.p0=_objectSpread(_objectSpread({},hr),{},{x:hr.x+gr,y:hr.y+mr}),Ar.p1=_objectSpread(_objectSpread({},pr),{},{x:pr.x+gr,y:pr.y+mr})}return{offset:cr+=ur,segment:Ar,rotation:fr}}},{key:"measureText",value:function measureText(er,tr){var rr=this.measuresCache,nr=tr||this.getText();if(rr.has(nr))return rr.get(nr);var ir=this.measureTargetText(er,nr);return rr.set(nr,ir),ir}},{key:"setTextData",value:function setTextData(er){var tr,rr=this;if(!this.glyphInfo){var nr=this.getText(),ir=nr.split(""),or=nr.split(" ").length-1,ar=lb(tr=this.parent.getAttribute("dx").split()).call(tr,(function(er){return er.getPixels("x")})),sr=this.parent.getAttribute("dy").getPixels("y"),lr=this.parent.getStyle("text-anchor").getString("start"),cr=this.getStyle("letter-spacing"),ur=this.parent.getStyle("letter-spacing"),dr=0;cr.hasValue()&&"inherit"!==cr.getValue()?cr.hasValue()&&"initial"!==cr.getValue()&&"unset"!==cr.getValue()&&(dr=cr.getPixels()):dr=ur.getPixels();var hr=[],pr=nr.length;this.letterSpacingCache=hr;for(var Ar=0;Ar<pr;Ar++)hr.push(void 0!==ar[Ar]?ar[Ar]:dr);var fr=CC(hr).call(hr,(function(er,tr,rr){return 0===rr?0:er+tr||0}),0),gr=this.measureText(er),mr=Math.max(gr+fr,0);this.textWidth=gr,this.textHeight=this.getFontSize(),this.glyphInfo=[];var _r=this.getPathLength(),vr=this.getStyle("startOffset").getNumber(0)*_r,yr=0;"middle"!==lr&&"center"!==lr||(yr=-mr/2),"end"!==lr&&"right"!==lr||(yr=-mr),yr+=vr,wx(ir).call(ir,(function(tr,nr){var ar=rr.findSegmentToFitChar(er,lr,mr,_r,or,yr,sr,tr,nr),cr=ar.offset,ur=ar.segment,dr=ar.rotation;yr=cr,ur.p0&&ur.p1&&rr.glyphInfo.push({text:ir[nr],p0:ur.p0,p1:ur.p1,rotation:dr})}))}}},{key:"parsePathData",value:function parsePathData(er){if(this.pathLength=-1,!er)return[];var tr=[],rr=er.pathParser;for(rr.reset();!rr.isEnd();){var nr=rr.current,ir=nr?nr.x:0,or=nr?nr.y:0,ar=rr.next(),sr=ar.type,lr=[];switch(ar.type){case ON.MOVE_TO:this.pathM(rr,lr);break;case ON.LINE_TO:sr=this.pathL(rr,lr);break;case ON.HORIZ_LINE_TO:sr=this.pathH(rr,lr);break;case ON.VERT_LINE_TO:sr=this.pathV(rr,lr);break;case ON.CURVE_TO:this.pathC(rr,lr);break;case ON.SMOOTH_CURVE_TO:sr=this.pathS(rr,lr);break;case ON.QUAD_TO:this.pathQ(rr,lr);break;case ON.SMOOTH_QUAD_TO:sr=this.pathT(rr,lr);break;case ON.ARC:lr=this.pathA(rr);break;case ON.CLOSE_PATH:QN.pathZ(rr)}ar.type!==ON.CLOSE_PATH?tr.push({type:sr,points:lr,start:{x:ir,y:or},pathLength:this.calcLength(ir,or,sr,lr)}):tr.push({type:ON.CLOSE_PATH,points:[],pathLength:0})}return tr}},{key:"pathM",value:function pathM(er,tr){var rr=QN.pathM(er).point,nr=rr.x,ir=rr.y;tr.push(nr,ir)}},{key:"pathL",value:function pathL(er,tr){var rr=QN.pathL(er).point,nr=rr.x,ir=rr.y;return tr.push(nr,ir),ON.LINE_TO}},{key:"pathH",value:function pathH(er,tr){var rr=QN.pathH(er).point,nr=rr.x,ir=rr.y;return tr.push(nr,ir),ON.LINE_TO}},{key:"pathV",value:function pathV(er,tr){var rr=QN.pathV(er).point,nr=rr.x,ir=rr.y;return tr.push(nr,ir),ON.LINE_TO}},{key:"pathC",value:function pathC(er,tr){var rr=QN.pathC(er),nr=rr.point,ir=rr.controlPoint,or=rr.currentPoint;tr.push(nr.x,nr.y,ir.x,ir.y,or.x,or.y)}},{key:"pathS",value:function pathS(er,tr){var rr=QN.pathS(er),nr=rr.point,ir=rr.controlPoint,or=rr.currentPoint;return tr.push(nr.x,nr.y,ir.x,ir.y,or.x,or.y),ON.CURVE_TO}},{key:"pathQ",value:function pathQ(er,tr){var rr=QN.pathQ(er),nr=rr.controlPoint,ir=rr.currentPoint;tr.push(nr.x,nr.y,ir.x,ir.y)}},{key:"pathT",value:function pathT(er,tr){var rr=QN.pathT(er),nr=rr.controlPoint,ir=rr.currentPoint;return tr.push(nr.x,nr.y,ir.x,ir.y),ON.QUAD_TO}},{key:"pathA",value:function pathA(er){var tr=QN.pathA(er),rr=tr.rX,nr=tr.rY,ir=tr.sweepFlag,or=tr.xAxisRotation,ar=tr.centp,sr=tr.a1,lr=tr.ad;return 0===ir&&lr>0&&(lr-=2*Math.PI),1===ir&&lr<0&&(lr+=2*Math.PI),[ar.x,ar.y,rr,nr,sr,lr,or,ir]}},{key:"calcLength",value:function calcLength(er,tr,rr,nr){var ir=0,or=null,ar=null,sr=0;switch(rr){case ON.LINE_TO:return this.getLineLength(er,tr,nr[0],nr[1]);case ON.CURVE_TO:for(ir=0,or=this.getPointOnCubicBezier(0,er,tr,nr[0],nr[1],nr[2],nr[3],nr[4],nr[5]),sr=.01;sr<=1;sr+=.01)ar=this.getPointOnCubicBezier(sr,er,tr,nr[0],nr[1],nr[2],nr[3],nr[4],nr[5]),ir+=this.getLineLength(or.x,or.y,ar.x,ar.y),or=ar;return ir;case ON.QUAD_TO:for(ir=0,or=this.getPointOnQuadraticBezier(0,er,tr,nr[0],nr[1],nr[2],nr[3]),sr=.01;sr<=1;sr+=.01)ar=this.getPointOnQuadraticBezier(sr,er,tr,nr[0],nr[1],nr[2],nr[3]),ir+=this.getLineLength(or.x,or.y,ar.x,ar.y),or=ar;return ir;case ON.ARC:ir=0;var lr=nr[4],cr=nr[5],ur=nr[4]+cr,dr=Math.PI/180;if(Math.abs(lr-ur)<dr&&(dr=Math.abs(lr-ur)),or=this.getPointOnEllipticalArc(nr[0],nr[1],nr[2],nr[3],lr,0),cr<0)for(sr=lr-dr;sr>ur;sr-=dr)ar=this.getPointOnEllipticalArc(nr[0],nr[1],nr[2],nr[3],sr,0),ir+=this.getLineLength(or.x,or.y,ar.x,ar.y),or=ar;else for(sr=lr+dr;sr<ur;sr+=dr)ar=this.getPointOnEllipticalArc(nr[0],nr[1],nr[2],nr[3],sr,0),ir+=this.getLineLength(or.x,or.y,ar.x,ar.y),or=ar;return ar=this.getPointOnEllipticalArc(nr[0],nr[1],nr[2],nr[3],ur,0),ir+=this.getLineLength(or.x,or.y,ar.x,ar.y)}return 0}},{key:"getPointOnLine",value:function getPointOnLine(er,tr,rr,nr,ir){var or=arguments.length>5&&void 0!==arguments[5]?arguments[5]:tr,ar=arguments.length>6&&void 0!==arguments[6]?arguments[6]:rr,sr=(ir-rr)/(nr-tr+1e-8),lr=Math.sqrt(er*er/(1+sr*sr));nr<tr&&(lr*=-1);var cr=sr*lr,ur=null;if(nr===tr)ur={x:or,y:ar+cr};else if((ar-rr)/(or-tr+1e-8)===sr)ur={x:or+lr,y:ar+cr};else{var dr=0,hr=0,pr=this.getLineLength(tr,rr,nr,ir);if(pr<1e-8)return null;var Ar=(or-tr)*(nr-tr)+(ar-rr)*(ir-rr);dr=tr+(Ar/=pr*pr)*(nr-tr),hr=rr+Ar*(ir-rr);var fr=this.getLineLength(or,ar,dr,hr),gr=Math.sqrt(er*er-fr*fr);lr=Math.sqrt(gr*gr/(1+sr*sr)),nr<tr&&(lr*=-1),ur={x:dr+lr,y:hr+(cr=sr*lr)}}return ur}},{key:"getPointOnPath",value:function getPointOnPath(er){var tr=this.getPathLength(),rr=0,nr=null;if(er<-5e-5||er-5e-5>tr)return null;var ir,or=_createForOfIteratorHelper$1$1(this.dataArray);try{for(or.s();!(ir=or.n()).done;){var ar=ir.value;if(!ar||!(ar.pathLength<5e-5||rr+ar.pathLength+5e-5<er)){var sr=er-rr,lr=0;switch(ar.type){case ON.LINE_TO:nr=this.getPointOnLine(sr,ar.start.x,ar.start.y,ar.points[0],ar.points[1],ar.start.x,ar.start.y);break;case ON.ARC:var cr=ar.points[4],ur=ar.points[5],dr=ar.points[4]+ur;if(lr=cr+sr/ar.pathLength*ur,ur<0&&lr<dr||ur>=0&&lr>dr)break;nr=this.getPointOnEllipticalArc(ar.points[0],ar.points[1],ar.points[2],ar.points[3],lr,ar.points[6]);break;case ON.CURVE_TO:(lr=sr/ar.pathLength)>1&&(lr=1),nr=this.getPointOnCubicBezier(lr,ar.start.x,ar.start.y,ar.points[0],ar.points[1],ar.points[2],ar.points[3],ar.points[4],ar.points[5]);break;case ON.QUAD_TO:(lr=sr/ar.pathLength)>1&&(lr=1),nr=this.getPointOnQuadraticBezier(lr,ar.start.x,ar.start.y,ar.points[0],ar.points[1],ar.points[2],ar.points[3])}if(nr)return nr;break}rr+=ar.pathLength}}catch(er){or.e(er)}finally{or.f()}return null}},{key:"getLineLength",value:function getLineLength(er,tr,rr,nr){return Math.sqrt((rr-er)*(rr-er)+(nr-tr)*(nr-tr))}},{key:"getPathLength",value:function getPathLength(){var er;-1===this.pathLength&&(this.pathLength=CC(er=this.dataArray).call(er,(function(er,tr){return tr.pathLength>0?er+tr.pathLength:er}),0));return this.pathLength}},{key:"getPointOnCubicBezier",value:function getPointOnCubicBezier(er,tr,rr,nr,ir,or,ar,sr,lr){return{x:sr*CB1(er)+or*CB2(er)+nr*CB3(er)+tr*CB4(er),y:lr*CB1(er)+ar*CB2(er)+ir*CB3(er)+rr*CB4(er)}}},{key:"getPointOnQuadraticBezier",value:function getPointOnQuadraticBezier(er,tr,rr,nr,ir,or,ar){return{x:or*QB1(er)+nr*QB2(er)+tr*QB3(er),y:ar*QB1(er)+ir*QB2(er)+rr*QB3(er)}}},{key:"getPointOnEllipticalArc",value:function getPointOnEllipticalArc(er,tr,rr,nr,ir,or){var ar=Math.cos(or),sr=Math.sin(or),lr=rr*Math.cos(ir),cr=nr*Math.sin(ir);return{x:er+(lr*ar-cr*sr),y:tr+(lr*sr+cr*ar)}}},{key:"buildEquidistantCache",value:function buildEquidistantCache(er,tr){var rr=this.getPathLength(),nr=tr||.25,ir=er||rr/100;if(!this.equidistantCache||this.equidistantCache.step!==ir||this.equidistantCache.precision!==nr){this.equidistantCache={step:ir,precision:nr,points:[]};for(var or=0,ar=0;ar<=rr;ar+=nr){var sr=this.getPointOnPath(ar),lr=this.getPointOnPath(ar+nr);sr&&lr&&((or+=this.getLineLength(sr.x,sr.y,lr.x,lr.y))>=ir&&(this.equidistantCache.points.push({x:sr.x,y:sr.y,distance:ar}),or-=ir))}}}},{key:"getEquidistantPointOnPath",value:function getEquidistantPointOnPath(er,tr,rr){if(this.buildEquidistantCache(tr,rr),er<0||er-this.getPathLength()>5e-5)return null;var nr=Math.round(er/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[nr]||null}}]),TextPathElement}();function _createSuper$z(er){var tr=function _isNativeReflectConstruct$z(){if("undefined"==typeof Reflect||!lB)return!1;if(lB.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(lB(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=wB(er);if(tr){var ir=wB(this).constructor;rr=lB(nr,arguments,ir)}else rr=nr.apply(this,arguments);return mB(this,rr)}}var dL=function(er){pB(ImageElement,UN);var tr,rr,nr=_createSuper$z(ImageElement);function ImageElement(er,tr,rr){var ir;AC(this,ImageElement),(ir=nr.call(this,er,tr,rr)).type="image",ir.loaded=!1;var or=ir.getHrefAttribute().getString();if(!or)return mB(ir);var ar=/\.svg$/.test(or);return er.images.push(gB(ir)),ar?ir.loadSvg(or):ir.loadImage(or),ir.isSvg=ar,ir}return fC(ImageElement,[{key:"loadImage",value:(rr=dC(Rx.mark((function _callee(er){var tr;return Rx.wrap((function _callee$(rr){for(;;)switch(rr.prev=rr.next){case 0:return rr.prev=0,rr.next=3,this.document.createImage(er);case 3:tr=rr.sent,this.image=tr,rr.next=10;break;case 7:rr.prev=7,rr.t0=rr.catch(0),console.error('Error while loading image "'.concat(er,'":'),rr.t0);case 10:this.loaded=!0;case 11:case"end":return rr.stop()}}),_callee,this,[[0,7]])}))),function loadImage(er){return rr.apply(this,arguments)})},{key:"loadSvg",value:(tr=dC(Rx.mark((function _callee2(er){var tr,rr;return Rx.wrap((function _callee2$(nr){for(;;)switch(nr.prev=nr.next){case 0:return nr.prev=0,nr.next=3,this.document.fetch(er);case 3:return tr=nr.sent,nr.next=6,tr.text();case 6:rr=nr.sent,this.image=rr,nr.next=13;break;case 10:nr.prev=10,nr.t0=nr.catch(0),console.error('Error while loading image "'.concat(er,'":'),nr.t0);case 13:this.loaded=!0;case 14:case"end":return nr.stop()}}),_callee2,this,[[0,10]])}))),function loadSvg(er){return tr.apply(this,arguments)})},{key:"renderChildren",value:function renderChildren(er){var tr=this.document,rr=this.image,nr=this.loaded,ir=this.getAttribute("x").getPixels("x"),or=this.getAttribute("y").getPixels("y"),ar=this.getStyle("width").getPixels("x"),sr=this.getStyle("height").getPixels("y");if(nr&&rr&&ar&&sr){if(er.save(),this.isSvg)tr.canvg.forkString(er,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:ir,offsetY:or,scaleWidth:ar,scaleHeight:sr}).render();else{var lr=this.image;er.translate(ir,or),tr.setViewBox({ctx:er,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:ar,desiredWidth:lr.width,height:sr,desiredHeight:lr.height}),this.loaded&&(void 0===lr.complete||lr.complete)&&er.drawImage(lr,0,0)}er.restore()}}},{key:"getBoundingBox",value:function getBoundingBox(){var er=this.getAttribute("x").getPixels("x"),tr=this.getAttribute("y").getPixels("y"),rr=this.getStyle("width").getPixels("x"),nr=this.getStyle("height").getPixels("y");return new FN(er,tr,er+rr,tr+nr)}}]),ImageElement}();function _createSuper$A(er){var tr=function _isNativeReflectConstruct$A(){if("undefined"==typeof Reflect||!lB)return!1;if(lB.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(lB(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=wB(er);if(tr){var ir=wB(this).constructor;rr=lB(nr,arguments,ir)}else rr=nr.apply(this,arguments);return mB(this,rr)}}var hL=function(er){pB(SymbolElement,UN);var tr=_createSuper$A(SymbolElement);function SymbolElement(){var er;return AC(this,SymbolElement),(er=tr.apply(this,arguments)).type="symbol",er}return fC(SymbolElement,[{key:"render",value:function render(er){}}]),SymbolElement}(),pL=function(){function SVGFontLoader(er){AC(this,SVGFontLoader),this.document=er,this.loaded=!1,er.fonts.push(this)}var er;return fC(SVGFontLoader,[{key:"load",value:(er=dC(Rx.mark((function _callee(er,tr){var rr,nr,ir,or;return Rx.wrap((function _callee$(ar){for(;;)switch(ar.prev=ar.next){case 0:return ar.prev=0,nr=this.document,ar.next=4,nr.canvg.parser.load(tr);case 4:ir=ar.sent,or=ir.getElementsByTagName("font"),wx(rr=DB(or)).call(rr,(function(tr){var rr=nr.createElement(tr);nr.definitions[er]=rr})),ar.next=12;break;case 9:ar.prev=9,ar.t0=ar.catch(0),console.error('Error while loading font "'.concat(tr,'":'),ar.t0);case 12:this.loaded=!0;case 13:case"end":return ar.stop()}}),_callee,this,[[0,9]])}))),function load(tr,rr){return er.apply(this,arguments)})}]),SVGFontLoader}();function _createSuper$B(er){var tr=function _isNativeReflectConstruct$B(){if("undefined"==typeof Reflect||!lB)return!1;if(lB.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(lB(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=wB(er);if(tr){var ir=wB(this).constructor;rr=lB(nr,arguments,ir)}else rr=nr.apply(this,arguments);return mB(this,rr)}}var AL=function(er){pB(StyleElement,LN);var tr=_createSuper$B(StyleElement);function StyleElement(er,rr,nr){var ir,or;AC(this,StyleElement),(or=tr.call(this,er,rr,nr)).type="style";var ar=compressSpaces(lb(ir=DB(rr.childNodes)).call(ir,(function(er){return er.data})).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*\/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")).split("}");return wx(ar).call(ar,(function(tr){var rr=rB(tr).call(tr);if(rr){var nr=rr.split("{"),ir=nr[0].split(","),or=nr[1].split(";");wx(ir).call(ir,(function(tr){var rr=rB(tr).call(tr);if(rr){var nr=er.styles[rr]||{};if(wx(or).call(or,(function(tr){var rr,ir,or=ZB(tr).call(tr,":"),ar=rB(rr=tr.substr(0,or)).call(rr),sr=rB(ir=tr.substr(or+1,tr.length-or)).call(ir);ar&&sr&&(nr[ar]=new hN(er,ar,sr))})),er.styles[rr]=nr,er.stylesSpecificity[rr]=getSelectorSpecificity(rr),"@font-face"===rr){var ir=nr["font-family"].getString().replace(/"|'/g,""),ar=nr.src.getString().split(",");wx(ar).call(ar,(function(tr){if(ZB(tr).call(tr,'format("svg")')>0){var rr=parseExternalUrl(tr);rr&&new pL(er).load(ir,rr)}}))}}}))}})),or}return StyleElement}();function _createSuper$C(er){var tr=function _isNativeReflectConstruct$C(){if("undefined"==typeof Reflect||!lB)return!1;if(lB.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(lB(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=wB(er);if(tr){var ir=wB(this).constructor;rr=lB(nr,arguments,ir)}else rr=nr.apply(this,arguments);return mB(this,rr)}}AL.parseExternalUrl=parseExternalUrl;var fL=function(er){pB(UseElement,UN);var tr=_createSuper$C(UseElement);function UseElement(){var er;return AC(this,UseElement),(er=tr.apply(this,arguments)).type="use",er}return fC(UseElement,[{key:"setContext",value:function setContext(er){nE(wB(UseElement.prototype),"setContext",this).call(this,er);var tr=this.getAttribute("x"),rr=this.getAttribute("y");tr.hasValue()&&er.translate(tr.getPixels("x"),0),rr.hasValue()&&er.translate(0,rr.getPixels("y"))}},{key:"path",value:function path(er){var tr=this.element;tr&&tr.path(er)}},{key:"renderChildren",value:function renderChildren(er){var tr=this.document,rr=this.element;if(rr){var nr=rr;if("symbol"===rr.type&&((nr=new DN(tr,null)).attributes.viewBox=new hN(tr,"viewBox",rr.getAttribute("viewBox").getString()),nr.attributes.preserveAspectRatio=new hN(tr,"preserveAspectRatio",rr.getAttribute("preserveAspectRatio").getString()),nr.attributes.overflow=new hN(tr,"overflow",rr.getAttribute("overflow").getString()),nr.children=rr.children,rr.styles.opacity=new hN(tr,"opacity",this.calculateOpacity())),"svg"===nr.type){var ir=this.getStyle("width",!1,!0),or=this.getStyle("height",!1,!0);ir.hasValue()&&(nr.attributes.width=new hN(tr,"width",ir.getString())),or.hasValue()&&(nr.attributes.height=new hN(tr,"height",or.getString()))}var ar=nr.parent;nr.parent=this,nr.render(er),nr.parent=ar}}},{key:"getBoundingBox",value:function getBoundingBox(er){var tr=this.element;return tr?tr.getBoundingBox(er):null}},{key:"elementTransform",value:function elementTransform(){var er=this.document,tr=this.element;return NN.fromElement(er,tr)}},{key:"element",get:function get(){return this._element||(this._element=this.getHrefAttribute().getDefinition()),this._element}}]),UseElement}();function _createSuper$D(er){var tr=function _isNativeReflectConstruct$D(){if("undefined"==typeof Reflect||!lB)return!1;if(lB.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(lB(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=wB(er);if(tr){var ir=wB(this).constructor;rr=lB(nr,arguments,ir)}else rr=nr.apply(this,arguments);return mB(this,rr)}}function imGet(er,tr,rr,nr,ir,or){return er[rr*nr*4+4*tr+or]}function imSet(er,tr,rr,nr,ir,or,ar){er[rr*nr*4+4*tr+or]=ar}function m$2(er,tr,rr){return er[tr]*rr}function c$2(er,tr,rr,nr){return tr+Math.cos(er)*rr+Math.sin(er)*nr}var gL=function(er){pB(FeColorMatrixElement,LN);var tr=_createSuper$D(FeColorMatrixElement);function FeColorMatrixElement(er,rr,nr){var ir;AC(this,FeColorMatrixElement),(ir=tr.call(this,er,rr,nr)).type="feColorMatrix";var or=toNumbers(ir.getAttribute("values").getString());switch(ir.getAttribute("type").getString("matrix")){case"saturate":var ar=or[0];or=[.213+.787*ar,.715-.715*ar,.072-.072*ar,0,0,.213-.213*ar,.715+.285*ar,.072-.072*ar,0,0,.213-.213*ar,.715-.715*ar,.072+.928*ar,0,0,0,0,0,1,0,0,0,0,0,1];break;case"hueRotate":var sr=or[0]*Math.PI/180;or=[c$2(sr,.213,.787,-.213),c$2(sr,.715,-.715,-.715),c$2(sr,.072,-.072,.928),0,0,c$2(sr,.213,-.213,.143),c$2(sr,.715,.285,.14),c$2(sr,.072,-.072,-.283),0,0,c$2(sr,.213,-.213,-.787),c$2(sr,.715,-.715,.715),c$2(sr,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break;case"luminanceToAlpha":or=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2125,.7154,.0721,0,0,0,0,0,0,1]}return ir.matrix=or,ir.includeOpacity=ir.getAttribute("includeOpacity").hasValue(),ir}return fC(FeColorMatrixElement,[{key:"apply",value:function apply(er,tr,rr,nr,ir){for(var or=this.includeOpacity,ar=this.matrix,sr=er.getImageData(0,0,nr,ir),lr=0;lr<ir;lr++)for(var cr=0;cr<nr;cr++){var ur=imGet(sr.data,cr,lr,nr,0,0),dr=imGet(sr.data,cr,lr,nr,0,1),hr=imGet(sr.data,cr,lr,nr,0,2),pr=imGet(sr.data,cr,lr,nr,0,3),Ar=m$2(ar,0,ur)+m$2(ar,1,dr)+m$2(ar,2,hr)+m$2(ar,3,pr)+m$2(ar,4,1),fr=m$2(ar,5,ur)+m$2(ar,6,dr)+m$2(ar,7,hr)+m$2(ar,8,pr)+m$2(ar,9,1),gr=m$2(ar,10,ur)+m$2(ar,11,dr)+m$2(ar,12,hr)+m$2(ar,13,pr)+m$2(ar,14,1),mr=m$2(ar,15,ur)+m$2(ar,16,dr)+m$2(ar,17,hr)+m$2(ar,18,pr)+m$2(ar,19,1);or&&(Ar=fr=gr=0,mr*=pr/255),imSet(sr.data,cr,lr,nr,0,0,Ar),imSet(sr.data,cr,lr,nr,0,1,fr),imSet(sr.data,cr,lr,nr,0,2,gr),imSet(sr.data,cr,lr,nr,0,3,mr)}er.clearRect(0,0,nr,ir),er.putImageData(sr,0,0)}}]),FeColorMatrixElement}();function _createSuper$E(er){var tr=function _isNativeReflectConstruct$E(){if("undefined"==typeof Reflect||!lB)return!1;if(lB.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(lB(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=wB(er);if(tr){var ir=wB(this).constructor;rr=lB(nr,arguments,ir)}else rr=nr.apply(this,arguments);return mB(this,rr)}}var mL=function(er){pB(MaskElement,LN);var tr=_createSuper$E(MaskElement);function MaskElement(){var er;return AC(this,MaskElement),(er=tr.apply(this,arguments)).type="mask",er}return fC(MaskElement,[{key:"apply",value:function apply(er,tr){var rr=this.document,nr=this.getAttribute("x").getPixels("x"),ir=this.getAttribute("y").getPixels("y"),or=this.getStyle("width").getPixels("x"),ar=this.getStyle("height").getPixels("y");if(!or&&!ar){var sr,lr=new FN;wx(sr=this.children).call(sr,(function(tr){lr.addBoundingBox(tr.getBoundingBox(er))})),nr=Math.floor(lr.x1),ir=Math.floor(lr.y1),or=Math.floor(lr.width),ar=Math.floor(lr.height)}var cr=this.removeStyles(tr,MaskElement.ignoreStyles),ur=rr.createCanvas(nr+or,ir+ar),dr=ur.getContext("2d");rr.screen.setDefaults(dr),this.renderChildren(dr),new gL(rr,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(dr,0,0,nr+or,ir+ar);var hr=rr.createCanvas(nr+or,ir+ar),pr=hr.getContext("2d");rr.screen.setDefaults(pr),tr.render(pr),pr.globalCompositeOperation="destination-in",pr.fillStyle=dr.createPattern(ur,"no-repeat"),pr.fillRect(0,0,nr+or,ir+ar),er.fillStyle=pr.createPattern(hr,"no-repeat"),er.fillRect(0,0,nr+or,ir+ar),this.restoreStyles(tr,cr)}},{key:"render",value:function render(er){}}]),MaskElement}();function _createSuper$F(er){var tr=function _isNativeReflectConstruct$F(){if("undefined"==typeof Reflect||!lB)return!1;if(lB.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(lB(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=wB(er);if(tr){var ir=wB(this).constructor;rr=lB(nr,arguments,ir)}else rr=nr.apply(this,arguments);return mB(this,rr)}}mL.ignoreStyles=["mask","transform","clip-path"];var _L=function noop(){},vL=function(er){pB(ClipPathElement,LN);var tr=_createSuper$F(ClipPathElement);function ClipPathElement(){var er;return AC(this,ClipPathElement),(er=tr.apply(this,arguments)).type="clipPath",er}return fC(ClipPathElement,[{key:"apply",value:function apply(er){var tr,rr=this.document,nr=eN(er),ir=er.beginPath,or=er.closePath;nr&&(nr.beginPath=_L,nr.closePath=_L),ZE(ir,er,[]),wx(tr=this.children).call(tr,(function(tr){if(void 0!==tr.path){var ir=void 0!==tr.elementTransform?tr.elementTransform():null;ir||(ir=NN.fromElement(rr,tr)),ir&&ir.apply(er),tr.path(er),nr&&(nr.closePath=or),ir&&ir.unapply(er)}})),ZE(or,er,[]),er.clip(),nr&&(nr.beginPath=ir,nr.closePath=or)}},{key:"render",value:function render(er){}}]),ClipPathElement}();function _createSuper$G(er){var tr=function _isNativeReflectConstruct$G(){if("undefined"==typeof Reflect||!lB)return!1;if(lB.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(lB(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=wB(er);if(tr){var ir=wB(this).constructor;rr=lB(nr,arguments,ir)}else rr=nr.apply(this,arguments);return mB(this,rr)}}var yL=function(er){pB(FilterElement,LN);var tr=_createSuper$G(FilterElement);function FilterElement(){var er;return AC(this,FilterElement),(er=tr.apply(this,arguments)).type="filter",er}return fC(FilterElement,[{key:"apply",value:function apply(er,tr){var rr=this.document,nr=this.children,ir=tr.getBoundingBox(er);if(ir){var or=0,ar=0;wx(nr).call(nr,(function(er){var tr=er.extraFilterDistance||0;or=Math.max(or,tr),ar=Math.max(ar,tr)}));var sr=Math.floor(ir.width),lr=Math.floor(ir.height),cr=sr+2*or,ur=lr+2*ar;if(!(cr<1||ur<1)){var dr=Math.floor(ir.x),hr=Math.floor(ir.y),pr=this.removeStyles(tr,FilterElement.ignoreStyles),Ar=rr.createCanvas(cr,ur),fr=Ar.getContext("2d");rr.screen.setDefaults(fr),fr.translate(-dr+or,-hr+ar),tr.render(fr),wx(nr).call(nr,(function(er){"function"==typeof er.apply&&er.apply(fr,0,0,cr,ur)})),er.drawImage(Ar,0,0,cr,ur,dr-or,hr-ar,cr,ur),this.restoreStyles(tr,pr)}}}},{key:"render",value:function render(er){}}]),FilterElement}();function _createSuper$H(er){var tr=function _isNativeReflectConstruct$H(){if("undefined"==typeof Reflect||!lB)return!1;if(lB.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(lB(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=wB(er);if(tr){var ir=wB(this).constructor;rr=lB(nr,arguments,ir)}else rr=nr.apply(this,arguments);return mB(this,rr)}}yL.ignoreStyles=["filter","transform","clip-path"];var bL=function(er){pB(FeDropShadowElement,LN);var tr=_createSuper$H(FeDropShadowElement);function FeDropShadowElement(er,rr,nr){var ir;return AC(this,FeDropShadowElement),(ir=tr.call(this,er,rr,nr)).type="feDropShadow",ir.addStylesFromStyleDefinition(),ir}return fC(FeDropShadowElement,[{key:"apply",value:function apply(er,tr,rr,nr,ir){}}]),FeDropShadowElement}();function _createSuper$I(er){var tr=function _isNativeReflectConstruct$I(){if("undefined"==typeof Reflect||!lB)return!1;if(lB.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(lB(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=wB(er);if(tr){var ir=wB(this).constructor;rr=lB(nr,arguments,ir)}else rr=nr.apply(this,arguments);return mB(this,rr)}}var wL=function(er){pB(FeMorphologyElement,LN);var tr=_createSuper$I(FeMorphologyElement);function FeMorphologyElement(){var er;return AC(this,FeMorphologyElement),(er=tr.apply(this,arguments)).type="feMorphology",er}return fC(FeMorphologyElement,[{key:"apply",value:function apply(er,tr,rr,nr,ir){}}]),FeMorphologyElement}();function _createSuper$J(er){var tr=function _isNativeReflectConstruct$J(){if("undefined"==typeof Reflect||!lB)return!1;if(lB.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(lB(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=wB(er);if(tr){var ir=wB(this).constructor;rr=lB(nr,arguments,ir)}else rr=nr.apply(this,arguments);return mB(this,rr)}}var SL=function(er){pB(FeCompositeElement,LN);var tr=_createSuper$J(FeCompositeElement);function FeCompositeElement(){var er;return AC(this,FeCompositeElement),(er=tr.apply(this,arguments)).type="feComposite",er}return fC(FeCompositeElement,[{key:"apply",value:function apply(er,tr,rr,nr,ir){}}]),FeCompositeElement}();function _createSuper$K(er){var tr=function _isNativeReflectConstruct$K(){if("undefined"==typeof Reflect||!lB)return!1;if(lB.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(lB(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=wB(er);if(tr){var ir=wB(this).constructor;rr=lB(nr,arguments,ir)}else rr=nr.apply(this,arguments);return mB(this,rr)}}var xL=function(er){pB(FeGaussianBlurElement,LN);var tr=_createSuper$K(FeGaussianBlurElement);function FeGaussianBlurElement(er,rr,nr){var ir;return AC(this,FeGaussianBlurElement),(ir=tr.call(this,er,rr,nr)).type="feGaussianBlur",ir.blurRadius=Math.floor(ir.getAttribute("stdDeviation").getNumber()),ir.extraFilterDistance=ir.blurRadius,ir}return fC(FeGaussianBlurElement,[{key:"apply",value:function apply(er,tr,rr,nr,ir){var or=this.document,ar=this.blurRadius,sr=or.window?or.window.document.body:null,lr=er.canvas;lr.id=or.getUniqueId(),sr&&(lr.style.display="none",sr.appendChild(lr)),processCanvasRGBA(lr,tr,rr,nr,ir,ar),sr&&sr.removeChild(lr)}}]),FeGaussianBlurElement}();function _createSuper$L(er){var tr=function _isNativeReflectConstruct$L(){if("undefined"==typeof Reflect||!lB)return!1;if(lB.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(lB(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=wB(er);if(tr){var ir=wB(this).constructor;rr=lB(nr,arguments,ir)}else rr=nr.apply(this,arguments);return mB(this,rr)}}var kL=function(er){pB(TitleElement,LN);var tr=_createSuper$L(TitleElement);function TitleElement(){var er;return AC(this,TitleElement),(er=tr.apply(this,arguments)).type="title",er}return TitleElement}();function _createSuper$M(er){var tr=function _isNativeReflectConstruct$M(){if("undefined"==typeof Reflect||!lB)return!1;if(lB.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(lB(Date,[],(function(){}))),!0}catch(er){return!1}}();return function _createSuperInternal(){var rr,nr=wB(er);if(tr){var ir=wB(this).constructor;rr=lB(nr,arguments,ir)}else rr=nr.apply(this,arguments);return mB(this,rr)}}var CL=function(er){pB(DescElement,LN);var tr=_createSuper$M(DescElement);function DescElement(){var er;return AC(this,DescElement),(er=tr.apply(this,arguments)).type="desc",er}return DescElement}(),BL={svg:DN,rect:jN,circle:HN,ellipse:GN,line:VN,polyline:zN,polygon:KN,path:QN,pattern:qN,marker:WN,defs:XN,linearGradient:$N,radialGradient:ZN,stop:eL,animate:tL,animateColor:rL,animateTransform:nL,font:iL,"font-face":oL,"missing-glyph":aL,glyph:sL,text:IN,tspan:RN,tref:lL,a:cL,textPath:uL,image:dL,g:YN,symbol:hL,style:AL,use:fL,mask:mL,clipPath:vL,filter:yL,feDropShadow:bL,feMorphology:wL,feComposite:SL,feColorMatrix:gL,feGaussianBlur:xL,title:kL,desc:CL};function ownKeys$1$1(er,tr){var rr=Ix(er);if(Fx){var nr=Fx(er);tr&&(nr=Px(nr).call(nr,(function(tr){return Cx(er,tr).enumerable}))),rr.push.apply(rr,nr)}return rr}function _createImage(){return(_createImage=dC(Rx.mark((function _callee(er){var tr,rr,nr=arguments;return Rx.wrap((function _callee$(ir){for(;;)switch(ir.prev=ir.next){case 0:return tr=nr.length>1&&void 0!==nr[1]&&nr[1],rr=document.createElement("img"),tr&&(rr.crossOrigin="Anonymous"),ir.abrupt("return",new UC((function(tr,nr){rr.onload=function(){tr(rr)},rr.onerror=function(){nr()},rr.src=er})));case 4:case"end":return ir.stop()}}),_callee)})))).apply(this,arguments)}var EL=function(){function Document(er){var tr,rr,nr=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},ir=nr.rootEmSize,or=void 0===ir?12:ir,ar=nr.emSize,sr=void 0===ar?12:ar,lr=nr.createCanvas,cr=void 0===lr?Document.createCanvas:lr,ur=nr.createImage,dr=void 0===ur?Document.createImage:ur,hr=nr.anonymousCrossOrigin;AC(this,Document),this.canvg=er,this.definitions={},this.styles={},this.stylesSpecificity={},this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=er.screen,this.rootEmSize=or,this.emSize=sr,this.createCanvas=cr,this.createImage=this.bindCreateImage(dr,hr),this.screen.wait(jC(tr=this.isImagesLoaded).call(tr,this)),this.screen.wait(jC(rr=this.isFontsLoaded).call(rr,this))}return fC(Document,[{key:"bindCreateImage",value:function bindCreateImage(er,tr){return"boolean"==typeof tr?function(rr,nr){return er(rr,"boolean"==typeof nr?nr:tr)}:er}},{key:"popEmSize",value:function popEmSize(){this.emSizeStack.pop()}},{key:"getUniqueId",value:function getUniqueId(){return"canvg".concat(++this.uniqueId)}},{key:"isImagesLoaded",value:function isImagesLoaded(){var er;return FC(er=this.images).call(er,(function(er){return er.loaded}))}},{key:"isFontsLoaded",value:function isFontsLoaded(){var er;return FC(er=this.fonts).call(er,(function(er){return er.loaded}))}},{key:"createDocumentElement",value:function createDocumentElement(er){var tr=this.createElement(er.documentElement);return tr.root=!0,tr.addStylesFromStyleDefinition(),this.documentElement=tr,tr}},{key:"createElement",value:function createElement(er){var tr=er.nodeName.replace(/^[^:]+:/,""),rr=Document.elementTypes[tr];return void 0!==rr?new rr(this,er):new TN(this,er)}},{key:"createTextNode",value:function createTextNode(er){return new MN(this,er)}},{key:"setViewBox",value:function setViewBox(er){this.screen.setViewBox(function _objectSpread$1(er){for(var tr=1;tr<arguments.length;tr++){var rr,nr=null!=arguments[tr]?arguments[tr]:{};if(tr%2)wx(rr=ownKeys$1$1(Object(nr),!0)).call(rr,(function(tr){pC(er,tr,nr[tr])}));else if(hx)ux(er,hx(nr));else{var ir;wx(ir=ownKeys$1$1(Object(nr))).call(ir,(function(tr){cx(er,tr,Cx(nr,tr))}))}}return er}({document:this},er))}},{key:"window",get:function get(){return this.screen.window}},{key:"fetch",get:function get(){return this.screen.fetch}},{key:"ctx",get:function get(){return this.screen.ctx}},{key:"emSize",get:function get(){var er=this.emSizeStack;return er[er.length-1]},set:function set(er){this.emSizeStack.push(er)}}]),Document}();function ownKeys$2$1(er,tr){var rr=Ix(er);if(Fx){var nr=Fx(er);tr&&(nr=Px(nr).call(nr,(function(tr){return Cx(er,tr).enumerable}))),rr.push.apply(rr,nr)}return rr}function _objectSpread$2(er){for(var tr=1;tr<arguments.length;tr++){var rr,nr=null!=arguments[tr]?arguments[tr]:{};if(tr%2)wx(rr=ownKeys$2$1(Object(nr),!0)).call(rr,(function(tr){pC(er,tr,nr[tr])}));else if(hx)ux(er,hx(nr));else{var ir;wx(ir=ownKeys$2$1(Object(nr))).call(ir,(function(tr){cx(er,tr,Cx(nr,tr))}))}}return er}EL.createCanvas=function createCanvas(er,tr){var rr=document.createElement("canvas");return rr.width=er,rr.height=tr,rr},EL.createImage=function createImage(er){return _createImage.apply(this,arguments)},EL.elementTypes=BL;var NL=function(){function Canvg(er,tr){var rr=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};AC(this,Canvg),this.parser=new bN(rr),this.screen=new _N(er,rr),this.options=rr;var nr=new EL(this,rr),ir=nr.createDocumentElement(tr);this.document=nr,this.documentElement=ir}var er,tr;return fC(Canvg,[{key:"fork",value:function fork(er,tr){var rr=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Canvg.from(er,tr,_objectSpread$2(_objectSpread$2({},this.options),rr))}},{key:"forkString",value:function forkString(er,tr){var rr=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Canvg.fromString(er,tr,_objectSpread$2(_objectSpread$2({},this.options),rr))}},{key:"ready",value:function ready(){return this.screen.ready()}},{key:"isReady",value:function isReady(){return this.screen.isReady()}},{key:"render",value:(tr=dC(Rx.mark((function _callee(){var er,tr=arguments;return Rx.wrap((function _callee$(rr){for(;;)switch(rr.prev=rr.next){case 0:return er=tr.length>0&&void 0!==tr[0]?tr[0]:{},this.start(_objectSpread$2({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},er)),rr.next=4,this.ready();case 4:this.stop();case 5:case"end":return rr.stop()}}),_callee,this)}))),function render(){return tr.apply(this,arguments)})},{key:"start",value:function start(){var er=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},tr=this.documentElement,rr=this.screen,nr=this.options;rr.start(tr,_objectSpread$2(_objectSpread$2({enableRedraw:!0},nr),er))}},{key:"stop",value:function stop(){this.screen.stop()}},{key:"resize",value:function resize(er){var tr=arguments.length>1&&void 0!==arguments[1]?arguments[1]:er,rr=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.documentElement.resize(er,tr,rr)}}],[{key:"from",value:(er=dC(Rx.mark((function _callee2(er,tr){var rr,nr,ir,or=arguments;return Rx.wrap((function _callee2$(ar){for(;;)switch(ar.prev=ar.next){case 0:return rr=or.length>2&&void 0!==or[2]?or[2]:{},nr=new bN(rr),ar.next=4,nr.parse(tr);case 4:return ir=ar.sent,ar.abrupt("return",new Canvg(er,ir,rr));case 6:case"end":return ar.stop()}}),_callee2)}))),function from(tr,rr){return er.apply(this,arguments)})},{key:"fromString",value:function fromString(er,tr){var rr=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},nr=new bN(rr),ir=nr.parseFromString(tr);return new Canvg(er,ir,rr)}}]),Canvg}();var LL=Object.freeze({__proto__:null,offscreen:function offscreen(){var er=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},tr=er.DOMParser,rr={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:tr,createCanvas:function createCanvas(er,tr){return new OffscreenCanvas(er,tr)},createImage:function createImage(er){return dC(Rx.mark((function _callee(){var tr,rr,nr;return Rx.wrap((function _callee$(ir){for(;;)switch(ir.prev=ir.next){case 0:return ir.next=2,fetch(er);case 2:return tr=ir.sent,ir.next=5,tr.blob();case 5:return rr=ir.sent,ir.next=8,createImageBitmap(rr);case 8:return nr=ir.sent,ir.abrupt("return",nr);case 10:case"end":return ir.stop()}}),_callee)})))()}};return"undefined"==typeof DOMParser&&void 0!==tr||vE(rr,"DOMParser"),rr},node:function node$2(er){var tr=er.DOMParser,rr=er.canvas;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:tr,fetch:er.fetch,createCanvas:rr.createCanvas,createImage:rr.loadImage}}}),TL=Object.freeze({__proto__:null,default:NL,AElement:cL,AnimateColorElement:rL,AnimateElement:tL,AnimateTransformElement:nL,BoundingBox:FN,CB1:CB1,CB2:CB2,CB3:CB3,CB4:CB4,Canvg:NL,CircleElement:HN,ClipPathElement:vL,DefsElement:XN,DescElement:CL,Document:EL,Element:LN,EllipseElement:GN,FeColorMatrixElement:gL,FeCompositeElement:SL,FeDropShadowElement:bL,FeGaussianBlurElement:xL,FeMorphologyElement:wL,FilterElement:yL,Font:PN,FontElement:iL,FontFaceElement:oL,GElement:YN,GlyphElement:sL,GradientElement:JN,ImageElement:dL,LineElement:VN,LinearGradientElement:$N,MarkerElement:WN,MaskElement:mL,Matrix:kN,MissingGlyphElement:aL,Mouse:fN,PSEUDO_ZERO:1e-8,Parser:bN,PathElement:QN,PathParser:ON,PatternElement:qN,Point:AN,PolygonElement:KN,PolylineElement:zN,Property:hN,QB1:QB1,QB2:QB2,QB3:QB3,RadialGradientElement:ZN,RectElement:jN,RenderedElement:UN,Rotate:SN,SVGElement:DN,SVGFontLoader:pL,Scale:xN,Screen:_N,Skew:CN,SkewX:BN,SkewY:EN,StopElement:eL,StyleElement:AL,SymbolElement:hL,TRefElement:lL,TSpanElement:RN,TextElement:IN,TextPathElement:uL,TitleElement:kL,Transform:NN,Translate:wN,UnknownElement:TN,UseElement:fL,ViewPort:pN,compressSpaces:compressSpaces,getSelectorSpecificity:getSelectorSpecificity,normalizeAttributeName:normalizeAttributeName,normalizeColor:normalizeColor,parseExternalUrl:parseExternalUrl,presets:LL,toNumbers:toNumbers,trimLeft:trimLeft$1,trimRight:trimRight$1,vectorMagnitude:vectorMagnitude,vectorsAngle:vectorsAngle,vectorsRatio:vectorsRatio});function jQueryPluginDBox(er){var tr=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},rr=tr.ok,nr=void 0===rr?"Ok":rr,ir=tr.cancel,or=void 0===ir?"Cancel":ir;er("#dialog_container").draggable({cancel:"#dialog_content, #dialog_buttons *",containment:"window"}).css("position","absolute");var ar=er("#dialog_box"),sr=er("#dialog_buttons"),lr=er("#dialog_content");function dbox(tr,rr,ir,cr,ur,dr){lr.html("<p>"+rr.replace(/\n/g,"</p><p>")+"</p>").toggleClass("prompt","prompt"===tr),sr.empty();var hr=er('<input type="button" data-ok="" value="'+nr+'">').appendTo(sr);return new Promise((function(nr,pr){var Ar,fr;if("alert"!==tr&&er('<input type="button" value="'+or+'">').appendTo(sr).click((function(){ar.hide(),nr(!1)})),"prompt"===tr)(Ar=er('<input type="text">').prependTo(sr)).val(ir||""),Ar.bind("keydown","return",(function(){hr.click()}));else if("select"===tr){var gr=er('<div style="text-align:center;">');if(Ar=er('<select aria-label="'.concat(rr,'">')).appendTo(gr),dr){var mr=er("<label>").text(dr.label);(fr=er('<input type="checkbox">').appendTo(mr)).val(dr.value),dr.tooltip&&mr.attr("title",dr.tooltip),fr.prop("checked",Boolean(dr.checked)),gr.append(er("<div>").append(mr))}er.each(cr||[],(function(tr,rr){"object"===_typeof(rr)?Ar.append(er("<option>").val(rr.value).html(rr.text)):Ar.append(er("<option>").html(rr))})),lr.append(gr),ir&&Ar.val(ir),ur&&Ar.bind("change","return",ur),Ar.bind("keydown","return",(function(){hr.click()}))}else"process"===tr&&hr.hide();ar.show(),hr.click((function(){ar.hide();var er="prompt"!==tr&&"select"!==tr||Ar.val();nr(fr?{response:er,checked:fr.prop("checked")}:er)})).focus(),"prompt"!==tr&&"select"!==tr||Ar.focus()}))}return er.alert=function(er){return dbox("alert",er)},er.confirm=function(er){return dbox("confirm",er)},er.process_cancel=function(er){return dbox("process",er)},er.prompt=function(er){var tr=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return dbox("prompt",er,tr)},er.select=function(er,tr,rr,nr,ir){return dbox("select",er,nr,tr,rr,ir)},er}var PL,FL,UL,IL,RL,ML={BEFORE_APPLY:"before_apply",AFTER_APPLY:"after_apply",BEFORE_UNAPPLY:"before_unapply",AFTER_UNAPPLY:"after_unapply"},OL=function(){function Command(){_classCallCheck(this,Command)}return _createClass(Command,[{key:"getText",value:function getText(){return this.text}},{key:"apply",value:function apply(er,tr){er&&er.handleHistoryEvent(ML.BEFORE_APPLY,this),tr(er),er&&er.handleHistoryEvent(ML.AFTER_APPLY,this)}},{key:"unapply",value:function unapply(er,tr){er&&er.handleHistoryEvent(ML.BEFORE_UNAPPLY,this),tr(),er&&er.handleHistoryEvent(ML.AFTER_UNAPPLY,this)}},{key:"elements",value:function elements(){return[this.elem]}},{key:"type",value:function type(){return this.constructor.name}}]),Command}(),QL=function(er){_inherits(MoveElementCommand,OL);var tr=_createSuper(MoveElementCommand);function MoveElementCommand(er,rr,nr,ir){var or;return _classCallCheck(this,MoveElementCommand),(or=tr.call(this)).elem=er,or.text=ir?"Move "+er.tagName+" to "+ir:"Move "+er.tagName,or.oldNextSibling=rr,or.oldParent=nr,or.newNextSibling=er.nextSibling,or.newParent=er.parentNode,or}return _createClass(MoveElementCommand,[{key:"apply",value:function apply(er){var tr=this;_get(_getPrototypeOf(MoveElementCommand.prototype),"apply",this).call(this,er,(function(){tr.elem=tr.newParent.insertBefore(tr.elem,tr.newNextSibling)}))}},{key:"unapply",value:function unapply(er){var tr=this;_get(_getPrototypeOf(MoveElementCommand.prototype),"unapply",this).call(this,er,(function(){tr.elem=tr.oldParent.insertBefore(tr.elem,tr.oldNextSibling)}))}}]),MoveElementCommand}(),DL=function(er){_inherits(InsertElementCommand,OL);var tr=_createSuper(InsertElementCommand);function InsertElementCommand(er,rr){var nr;return _classCallCheck(this,InsertElementCommand),(nr=tr.call(this)).elem=er,nr.text=rr||"Create "+er.tagName,nr.parent=er.parentNode,nr.nextSibling=nr.elem.nextSibling,nr}return _createClass(InsertElementCommand,[{key:"apply",value:function apply(er){var tr=this;_get(_getPrototypeOf(InsertElementCommand.prototype),"apply",this).call(this,er,(function(){tr.elem=tr.parent.insertBefore(tr.elem,tr.nextSibling)}))}},{key:"unapply",value:function unapply(er){var tr=this;_get(_getPrototypeOf(InsertElementCommand.prototype),"unapply",this).call(this,er,(function(){tr.parent=tr.elem.parentNode,tr.elem.remove()}))}}]),InsertElementCommand}(),jL=function(er){_inherits(RemoveElementCommand,OL);var tr=_createSuper(RemoveElementCommand);function RemoveElementCommand(er,rr,nr,ir){var or;return _classCallCheck(this,RemoveElementCommand),(or=tr.call(this)).elem=er,or.text=ir||"Delete "+er.tagName,or.nextSibling=rr,or.parent=nr,gA(er),or}return _createClass(RemoveElementCommand,[{key:"apply",value:function apply(er){var tr=this;_get(_getPrototypeOf(RemoveElementCommand.prototype),"apply",this).call(this,er,(function(){gA(tr.elem),tr.parent=tr.elem.parentNode,tr.elem.remove()}))}},{key:"unapply",value:function unapply(er){var tr=this;_get(_getPrototypeOf(RemoveElementCommand.prototype),"unapply",this).call(this,er,(function(){gA(tr.elem),Cf(tr.nextSibling)&&window.console&&console.error("Reference element was lost"),tr.parent.insertBefore(tr.elem,tr.nextSibling)}))}}]),RemoveElementCommand}(),HL=function(er){_inherits(ChangeElementCommand,OL);var tr=_createSuper(ChangeElementCommand);function ChangeElementCommand(er,rr,nr){var ir;for(var or in _classCallCheck(this,ChangeElementCommand),(ir=tr.call(this)).elem=er,ir.text=nr?"Change "+er.tagName+" "+nr:"Change "+er.tagName,ir.newValues={},ir.oldValues=rr,rr)ir.newValues[or]="#text"===or?er.textContent:"#href"===or?of(er):er.getAttribute(or);return ir}return _createClass(ChangeElementCommand,[{key:"apply",value:function apply(er){var tr=this;_get(_getPrototypeOf(ChangeElementCommand.prototype),"apply",this).call(this,er,(function(){var er=!1;if(Object.entries(tr.newValues).forEach((function(rr){var nr=_slicedToArray(rr,2),ir=nr[0],or=nr[1];or?"#text"===ir?tr.elem.textContent=or:"#href"===ir?af(tr.elem,or):tr.elem.setAttribute(ir,or):"#text"===ir?tr.elem.textContent="":(tr.elem.setAttribute(ir,""),tr.elem.removeAttribute(ir)),"transform"===ir&&(er=!0)})),!er){var rr=vf(tr.elem);if(rr){var nr=tr.elem.getBBox(),ir=["rotate(",rr," ",nr.x+nr.width/2,",",nr.y+nr.height/2,")"].join("");ir!==tr.elem.getAttribute("transform")&&tr.elem.setAttribute("transform",ir)}}}))}},{key:"unapply",value:function unapply(er){var tr=this;_get(_getPrototypeOf(ChangeElementCommand.prototype),"unapply",this).call(this,er,(function(){var er=!1;if(Object.entries(tr.oldValues).forEach((function(rr){var nr=_slicedToArray(rr,2),ir=nr[0],or=nr[1];or?"#text"===ir?tr.elem.textContent=or:"#href"===ir?af(tr.elem,or):tr.elem.setAttribute(ir,or):"#text"===ir?tr.elem.textContent="":tr.elem.removeAttribute(ir),"transform"===ir&&(er=!0)})),!er){var rr=vf(tr.elem);if(rr){var nr=tr.elem.getBBox(),ir=["rotate(",rr," ",nr.x+nr.width/2,",",nr.y+nr.height/2,")"].join("");ir!==tr.elem.getAttribute("transform")&&tr.elem.setAttribute("transform",ir)}}gA(tr.elem)}))}}]),ChangeElementCommand}(),GL=function(er){_inherits(BatchCommand,OL);var tr=_createSuper(BatchCommand);function BatchCommand(er){var rr;return _classCallCheck(this,BatchCommand),(rr=tr.call(this)).text=er||"Batch Command",rr.stack=[],rr}return _createClass(BatchCommand,[{key:"apply",value:function apply(er){var tr=this;_get(_getPrototypeOf(BatchCommand.prototype),"apply",this).call(this,er,(function(){tr.stack.forEach((function(tr){console.assert(tr,"stack item should not be null"),tr&&tr.apply(er)}))}))}},{key:"unapply",value:function unapply(er){var tr=this;_get(_getPrototypeOf(BatchCommand.prototype),"unapply",this).call(this,er,(function(){tr.stack.reverse().forEach((function(tr){console.assert(tr,"stack item should not be null"),tr&&tr.unapply(er)}))}))}},{key:"elements",value:function elements(){for(var er=[],tr=this.stack.length;tr--;)if(this.stack[tr])for(var rr=this.stack[tr].elements(),nr=rr.length;nr--;)er.includes(rr[nr])||er.push(rr[nr]);return er}},{key:"addSubCommand",value:function addSubCommand(er){console.assert(null!==er,"cmd should not be null"),this.stack.push(er)}},{key:"isEmpty",value:function isEmpty(){return!this.stack.length}}]),BatchCommand}(),VL=function(){function UndoManager(er){_classCallCheck(this,UndoManager),this.handler_=er||null,this.undoStackPointer=0,this.undoStack=[],this.undoChangeStackPointer=-1,this.undoableChangeStack=[]}return _createClass(UndoManager,[{key:"resetUndoStack",value:function resetUndoStack(){this.undoStack=[],this.undoStackPointer=0}},{key:"getUndoStackSize",value:function getUndoStackSize(){return this.undoStackPointer}},{key:"getRedoStackSize",value:function getRedoStackSize(){return this.undoStack.length-this.undoStackPointer}},{key:"getNextUndoCommandText",value:function getNextUndoCommandText(){return this.undoStackPointer>0?this.undoStack[this.undoStackPointer-1].getText():""}},{key:"getNextRedoCommandText",value:function getNextRedoCommandText(){return this.undoStackPointer<this.undoStack.length?this.undoStack[this.undoStackPointer].getText():""}},{key:"undo",value:function undo(){this.undoStackPointer>0&&this.undoStack[--this.undoStackPointer].unapply(this.handler_)}},{key:"redo",value:function redo(){this.undoStackPointer<this.undoStack.length&&this.undoStack.length>0&&this.undoStack[this.undoStackPointer++].apply(this.handler_)}},{key:"addCommandToHistory",value:function addCommandToHistory(er){this.undoStackPointer<this.undoStack.length&&this.undoStack.length>0&&(this.undoStack=this.undoStack.splice(0,this.undoStackPointer)),this.undoStack.push(er),this.undoStackPointer=this.undoStack.length}},{key:"beginUndoableChange",value:function beginUndoableChange(er,tr){for(var rr=++this.undoChangeStackPointer,nr=tr.length,ir=new Array(nr),or=new Array(nr);nr--;){var ar=tr[nr];Cf(ar)||(or[nr]=ar,ir[nr]=ar.getAttribute(er))}this.undoableChangeStack[rr]={attrName:er,oldValues:ir,elements:or}}},{key:"finishUndoableChange",value:function finishUndoableChange(){for(var er=this.undoChangeStackPointer--,tr=this.undoableChangeStack[er],rr=tr.attrName,nr=new GL("Change "+rr),ir=tr.elements.length;ir--;){var or=tr.elements[ir];if(!Cf(or)){var ar={};ar[rr]=tr.oldValues[ir],ar[rr]!==or.getAttribute(rr)&&nr.addSubCommand(new HL(or,ar,rr))}}return this.undoableChangeStack[er]=null,nr}}]),UndoManager}(),zL=Object.freeze({__proto__:null,HistoryEventTypes:ML,Command:OL,MoveElementCommand:QL,InsertElementCommand:DL,RemoveElementCommand:jL,ChangeElementCommand:HL,BatchCommand:GL,UndoManager:VL}),KL=jQuery,qL={2:["x","y"],4:["x","y"],6:["x","y","x1","y1","x2","y2"],8:["x","y","x1","y1"],10:["x","y","r1","r2","angle","largeArcFlag","sweepFlag"],12:["x"],14:["y"],16:["x","y","x2","y2"],18:["x","y"]},WL={},XL=function setUiStrings(er){Object.assign(WL,er.ui)},YL=[],JL=!0,$L={},ZL=null,eT=null,tT=function init(er){eT=er,YL=[0,"ClosePath"];KL.each(["Moveto","Lineto","CurvetoCubic","CurvetoQuadratic","Arc","LinetoHorizontal","LinetoVertical","CurvetoCubicSmooth","CurvetoQuadraticSmooth"],(function(er,tr){YL.push(tr+"Abs"),YL.push(tr+"Rel")}))},rT=function insertItemBefore(er,tr,rr){var nr=er.pathSegList;if(function supportsPathInsertItemBefore(){return Md}())nr.insertItemBefore(tr,rr);else{for(var ir=nr.numberOfItems,or=[],ar=0;ar<ir;ar++){var sr=nr.getItem(ar);or.push(sr)}nr.clear();for(var lr=0;lr<ir;lr++)lr===rr&&nr.appendItem(tr),nr.appendItem(or[lr])}},nT=function ptObjToArr(er,tr){return qL[er].map((function(er){return tr[er]}))},iT=function getGripPt(er,tr){var rr=er.path,nr={x:tr?tr.x:er.item.x,y:tr?tr.y:er.item.y};rr.matrix&&(nr=FA(nr.x,nr.y,rr.matrix));var ir=eT.getCurrentZoom();return nr.x*=ir,nr.y*=ir,nr},oT=function getPointFromGrip(er,tr){var rr={x:er.x,y:er.y};tr.matrix&&(er=FA(rr.x,rr.y,tr.imatrix),rr.x=er.x,rr.y=er.y);var nr=eT.getCurrentZoom();return rr.x/=nr,rr.y/=nr,rr},aT=function addPointGrip(er,tr,rr){var nr=sT(),ir=bf("pathpointgrip_"+er);if(!ir){ir=document.createElementNS(wd.SVG,"circle");var or={id:"pathpointgrip_"+er,display:"none",r:4,fill:"#0FF",stroke:"#00F","stroke-width":2,cursor:"move",style:"pointer-events:all"};"pathNodeTooltip"in WL&&(or["xlink:title"]=WL.pathNodeTooltip),wf(ir,or),ir=nr.appendChild(ir),KL("#pathpointgrip_"+er).dblclick((function(){ZL&&ZL.setSegType()}))}return tr&&rr&&wf(ir,{cx:tr,cy:rr,display:"inline"}),ir},sT=function getGripContainer(){var er=bf("pathpointgrip_container");er||((er=bf("selectorParentGroup").appendChild(document.createElementNS(wd.SVG,"g"))).id="pathpointgrip_container");return er},lT=function addCtrlGrip(er){var tr=bf("ctrlpointgrip_"+er);if(tr)return tr;tr=document.createElementNS(wd.SVG,"circle");var rr={id:"ctrlpointgrip_"+er,display:"none",r:4,fill:"#0FF",stroke:"#55F","stroke-width":1,cursor:"move",style:"pointer-events:all"};return"pathCtrlPtTooltip"in WL&&(rr["xlink:title"]=WL.pathCtrlPtTooltip),wf(tr,rr),sT().append(tr),tr},cT=function getCtrlLine(er){var tr=bf("ctrlLine_"+er);return tr||(tr=document.createElementNS(wd.SVG,"line"),wf(tr,{id:"ctrlLine_"+er,stroke:"#555","stroke-width":1,style:"pointer-events:none"}),sT().append(tr),tr)},uT=function getControlPoints(er){var tr=er.item,rr=er.index;if(!("x1"in tr)||!("x2"in tr))return null;var nr={};sT();for(var ir=[ZL.segs[rr-1].item,tr],or=1;or<3;or++){var ar=rr+"c"+or,sr=nr["c"+or+"_line"]=cT(ar),lr=iT(er,{x:tr["x"+or],y:tr["y"+or]}),cr=iT(er,{x:ir[or-1].x,y:ir[or-1].y});wf(sr,{x1:lr.x,y1:lr.y,x2:cr.x,y2:cr.y,display:"inline"}),nr["c"+or+"_line"]=sr;var ur=nr["c"+or]=lT(ar);wf(ur,{cx:lr.x,cy:lr.y,display:"inline"}),nr["c"+or]=ur}return nr},dT=function replacePathSeg(er,tr,rr,nr){var ir=nr||ZL.elem,or=ir["createSVGPathSeg"+YL[er]].apply(ir,_toConsumableArray(rr));if(function supportsPathReplaceItem(){return Rd}())ir.pathSegList.replaceItem(or,tr);else{for(var ar=ir.pathSegList,sr=ar.numberOfItems,lr=[],cr=0;cr<sr;cr++){var ur=ar.getItem(cr);lr.push(ur)}ar.clear();for(var dr=0;dr<sr;dr++)dr===tr?ar.appendItem(or):ar.appendItem(lr[dr])}},hT=function getSegSelector(er,tr){var rr=er.index,nr=bf("segline_"+rr);if(!nr){var ir=sT();nr=document.createElementNS(wd.SVG,"path"),wf(nr,{id:"segline_"+rr,display:"none",fill:"none",stroke:"#0FF","stroke-width":2,style:"pointer-events:none",d:"M0,0 0,0"}),ir.append(nr)}if(tr){var or=er.prev;if(!or)return nr.setAttribute("display","none"),nr;var ar=iT(or);dT(2,0,[ar.x,ar.y],nr);for(var sr=nT(er.type,er.item),lr=0;lr<sr.length;lr+=2){var cr=iT(er,{x:sr[lr],y:sr[lr+1]});sr[lr]=cr.x,sr[lr+1]=cr.y}dT(er.type,1,sr,nr)}return nr},pT=function smoothControlPoints(er,tr,rr){var nr=er.x-rr.x,ir=er.y-rr.y,or=tr.x-rr.x,ar=tr.y-rr.y;if(!(0===nr&&0===ir||0===or&&0===ar)){var sr=Math.sqrt(nr*nr+ir*ir),lr=Math.sqrt(or*or+ar*ar),cr=eT.getSVGRoot().createSVGPoint(),ur=eT.getSVGRoot().createSVGPoint(),dr=Math.atan2(ir,nr),hr=Math.atan2(ar,or);dr<0&&(dr+=2*Math.PI),hr<0&&(hr+=2*Math.PI);var pr,Ar,fr=Math.abs(dr-hr),gr=Math.abs(Math.PI-fr)/2;return dr-hr>0?(pr=fr<Math.PI?dr+gr:dr-gr,Ar=fr<Math.PI?hr-gr:hr+gr):(pr=fr<Math.PI?dr-gr:dr+gr,Ar=fr<Math.PI?hr+gr:hr-gr),cr.x=sr*Math.cos(pr)+rr.x,cr.y=sr*Math.sin(pr)+rr.y,ur.x=lr*Math.cos(Ar)+rr.x,ur.y=lr*Math.sin(Ar)+rr.y,[cr,ur]}},AT=function(){function Segment(er,tr){_classCallCheck(this,Segment),this.selected=!1,this.index=er,this.item=tr,this.type=tr.pathSegType,this.ctrlpts=[],this.ptgrip=null,this.segsel=null}return _createClass(Segment,[{key:"showCtrlPts",value:function showCtrlPts(er){for(var tr in this.ctrlpts)({}).hasOwnProperty.call(this.ctrlpts,tr)&&this.ctrlpts[tr].setAttribute("display",er?"inline":"none")}},{key:"selectCtrls",value:function selectCtrls(er){KL("#ctrlpointgrip_"+this.index+"c1, #ctrlpointgrip_"+this.index+"c2").attr("fill",er?"#0FF":"#EEE")}},{key:"show",value:function show(er){this.ptgrip&&(this.ptgrip.setAttribute("display",er?"inline":"none"),this.segsel.setAttribute("display",er?"inline":"none"),this.showCtrlPts(er))}},{key:"select",value:function select(er){this.ptgrip&&(this.ptgrip.setAttribute("stroke",er?"#0FF":"#00F"),this.segsel.setAttribute("display",er?"inline":"none"),this.ctrlpts&&this.selectCtrls(er),this.selected=er)}},{key:"addGrip",value:function addGrip(){this.ptgrip=function getPointGrip(er,tr){var rr=er.index,nr=aT(rr);if(tr){var ir=iT(er);wf(nr,{cx:ir.x,cy:ir.y,display:"inline"})}return nr}(this,!0),this.ctrlpts=uT(this),this.segsel=hT(this,!0)}},{key:"update",value:function update(er){if(this.ptgrip){var tr=iT(this);wf(this.ptgrip,{cx:tr.x,cy:tr.y}),hT(this,!0),this.ctrlpts&&(er&&(this.item=ZL.elem.pathSegList.getItem(this.index),this.type=this.item.pathSegType),uT(this))}}},{key:"move",value:function move(er,tr){var rr=this.item,nr=this.ctrlpts?[rr.x+=er,rr.y+=tr,rr.x1,rr.y1,rr.x2+=er,rr.y2+=tr]:[rr.x+=er,rr.y+=tr];if(dT(this.type,this.index,10===this.type?nT(this.type,rr):nr),this.next&&this.next.ctrlpts){var ir=this.next.item,or=[ir.x,ir.y,ir.x1+=er,ir.y1+=tr,ir.x2,ir.y2];dT(this.next.type,this.next.index,or)}if(this.mate){var ar=this.mate.item,sr=[ar.x+=er,ar.y+=tr];dT(this.mate.type,this.mate.index,sr)}this.update(!0),this.next&&this.next.update(!0)}},{key:"setLinked",value:function setLinked(er){var tr,rr,nr;if(2===er){if(rr=1,!(tr=this.next))return;nr=this.item}else{if(rr=2,!(tr=this.prev))return;nr=tr.item}var ir=tr.item;ir["x"+rr]=nr.x+(nr.x-this.item["x"+er]),ir["y"+rr]=nr.y+(nr.y-this.item["y"+er]);var or=[ir.x,ir.y,ir.x1,ir.y1,ir.x2,ir.y2];dT(tr.type,tr.index,or),tr.update(!0)}},{key:"moveCtrl",value:function moveCtrl(er,tr,rr){var nr=this.item;nr["x"+er]+=tr,nr["y"+er]+=rr;var ir=[nr.x,nr.y,nr.x1,nr.y1,nr.x2,nr.y2];dT(this.type,this.index,ir),this.update(!0)}},{key:"setType",value:function setType(er,tr){dT(er,this.index,tr),this.type=er,this.item=ZL.elem.pathSegList.getItem(this.index),this.showCtrlPts(6===er),this.ctrlpts=uT(this),this.update(!0)}}]),Segment}(),fT=function(){function Path(er){if(_classCallCheck(this,Path),!er||"path"!==er.tagName)throw new Error("svgedit.path.Path constructed without a <path> element");this.elem=er,this.segs=[],this.selected_pts=[],ZL=this,this.init()}return _createClass(Path,[{key:"init",value:function init(){KL(sT()).find("*").each((function(){KL(this).attr("display","none")}));var er=this.elem.pathSegList,tr=er.numberOfItems;this.segs=[],this.selected_pts=[],this.first_seg=null;for(var rr=0;rr<tr;rr++){var nr=er.getItem(rr),ir=new AT(rr,nr);ir.path=this,this.segs.push(ir)}for(var or=this.segs,ar=null,sr=0;sr<tr;sr++){var lr=or[sr],cr=sr+1>=tr?null:or[sr+1],ur=sr-1<0?null:or[sr-1];if(2===lr.type){if(ur&&1!==ur.type){var dr=or[ar];dr.next=or[ar+1],dr.next.prev=dr,dr.addGrip()}ar=sr}else if(cr&&1===cr.type)lr.next=or[ar+1],lr.next.prev=lr,lr.mate=or[ar],lr.addGrip(),Cf(this.first_seg)&&(this.first_seg=lr);else if(cr)1!==lr.type&&(lr.addGrip(),cr&&2!==cr.type&&(lr.next=cr,lr.next.prev=lr));else if(1!==lr.type){var hr=or[ar];hr.next=or[ar+1],hr.next.prev=hr,hr.addGrip(),lr.addGrip(),this.first_seg||(this.first_seg=or[ar])}}return this}},{key:"eachSeg",value:function eachSeg(er){for(var tr=this.segs.length,rr=0;rr<tr;rr++){if(!1===er.call(this.segs[rr],rr))break}}},{key:"addSeg",value:function addSeg(er){var tr=this.segs[er];if(tr.prev){var rr,nr,ir,or=tr.prev;switch(tr.item.pathSegType){case 4:nr=(tr.item.x+or.item.x)/2,ir=(tr.item.y+or.item.y)/2,rr=this.elem.createSVGPathSegLinetoAbs(nr,ir);break;case 6:var ar=(or.item.x+tr.item.x1)/2,sr=(tr.item.x1+tr.item.x2)/2,lr=(tr.item.x2+tr.item.x)/2,cr=(ar+sr)/2,ur=(sr+lr)/2;nr=(cr+ur)/2;var dr=(or.item.y+tr.item.y1)/2,hr=(tr.item.y1+tr.item.y2)/2,pr=(tr.item.y2+tr.item.y)/2,Ar=(dr+hr)/2,fr=(hr+pr)/2;ir=(Ar+fr)/2,rr=this.elem.createSVGPathSegCurvetoCubicAbs(nr,ir,ar,dr,cr,Ar);var gr=[tr.item.x,tr.item.y,ur,fr,lr,pr];dT(tr.type,er,gr)}rT(this.elem,rr,er)}}},{key:"deleteSeg",value:function deleteSeg(er){var tr=this.segs[er],rr=this.elem.pathSegList;tr.show(!1);var nr=tr.next;if(tr.mate){var ir=[nr.item.x,nr.item.y];dT(2,nr.index,ir),dT(4,tr.index,ir),rr.removeItem(tr.mate.index)}else if(tr.prev)rr.removeItem(er);else{var or=[nr.item.x,nr.item.y];dT(2,tr.next.index,or),rr.removeItem(er)}}},{key:"removePtFromSelection",value:function removePtFromSelection(er){var tr=this.selected_pts.indexOf(er);-1!==tr&&(this.segs[er].select(!1),this.selected_pts.splice(tr,1))}},{key:"clearSelection",value:function clearSelection(){this.eachSeg((function(){this.select(!1)})),this.selected_pts=[]}},{key:"storeD",value:function storeD(){this.last_d=this.elem.getAttribute("d")}},{key:"show",value:function show(er){return this.eachSeg((function(){this.show(er)})),er&&this.selectPt(this.first_seg.index),this}},{key:"movePts",value:function movePts(er,tr){for(var rr=this.selected_pts.length;rr--;){this.segs[this.selected_pts[rr]].move(er,tr)}}},{key:"moveCtrl",value:function moveCtrl(er,tr){var rr=this.segs[this.selected_pts[0]];rr.moveCtrl(this.dragctrl,er,tr),JL&&rr.setLinked(this.dragctrl)}},{key:"setSegType",value:function setSegType(er){this.storeD();for(var tr,rr=this.selected_pts.length;rr--;){var nr=this.selected_pts[rr],ir=this.segs[nr],or=ir.prev;if(or){if(!er)tr="Toggle Path Segment Type",er=6===ir.type?4:6;er=Number(er);var ar=ir.item.x,sr=ir.item.y,lr=or.item.x,cr=or.item.y,ur=void 0;switch(er){case 6:if(ir.olditem){var dr=ir.olditem;ur=[ar,sr,dr.x1,dr.y1,dr.x2,dr.y2]}else{var hr=ar-lr,pr=sr-cr;ur=[ar,sr,lr+hr/3,cr+pr/3,ar-hr/3,sr-pr/3]}break;case 4:ur=[ar,sr],ir.olditem=ir.item}ir.setType(er,ur)}}ZL.endChanges(tr)}},{key:"selectPt",value:function selectPt(er,tr){this.clearSelection(),Cf(er)&&this.eachSeg((function(tr){this.prev&&(er=tr)})),this.addPtsToSelection(er),tr&&(this.dragctrl=tr,JL&&this.segs[er].setLinked(tr))}},{key:"update",value:function update(){var er=this.elem;return vf(er)?(this.matrix=QA(er),this.imatrix=this.matrix.inverse()):(this.matrix=null,this.imatrix=null),this.eachSeg((function(tr){this.item=er.pathSegList.getItem(tr),this.update()})),this}},{key:"endChanges",value:function endChanges(er){Gd()&&eT.resetD(this.elem);var tr=new HL(this.elem,{d:this.last_d},er);eT.endChanges({cmd:tr,elem:this.elem})}},{key:"addPtsToSelection",value:function addPtsToSelection(er){var tr=this;Array.isArray(er)||(er=[er]),er.forEach((function(er){tr.segs[er].ptgrip&&!tr.selected_pts.includes(er)&&er>=0&&tr.selected_pts.push(er)})),this.selected_pts.sort();var rr=this.selected_pts.length,nr=[];for(nr.length=rr;rr--;){var ir=this.selected_pts[rr],or=this.segs[ir];or.select(!0),nr[rr]=or.ptgrip}var ar=Path.subpathIsClosed(this.selected_pts[0]);eT.addPtsToSelection({grips:nr,closedSubpath:ar})}}],[{key:"subpathIsClosed",value:function subpathIsClosed(er){var tr=!1;return ZL.eachSeg((function(rr){return rr<=er||2!==this.type&&(1!==this.type||(tr=!0,!1))})),tr}}]),Path}(),gT=function getPath_(er){var tr=$L[er.id];return tr||(tr=$L[er.id]=new fT(er)),tr},mT=function removePath_(er){er in $L&&delete $L[er]},_T=function getRotVals(er,tr){var rr=er-UL,nr=tr-IL,ir=Math.sqrt(rr*rr+nr*nr),or=Math.atan2(nr,rr)+RL;return rr=ir*Math.cos(or)+UL,nr=ir*Math.sin(or)+IL,rr-=PL,nr-=FL,ir=Math.sqrt(rr*rr+nr*nr),or=Math.atan2(nr,rr)-RL,{x:ir*Math.cos(or)+PL,y:ir*Math.sin(or)+FL}},vT=function recalcRotatedPath(){var er=ZL.elem;if(RL=vf(er,!0)){var tr=ZL.oldbbox;UL=tr.x+tr.width/2,IL=tr.y+tr.height/2;var rr=cf(er);PL=rr.x+rr.width/2,FL=rr.y+rr.height/2;var nr=PL-UL,ir=FL-IL,or=Math.sqrt(nr*nr+ir*ir),ar=Math.atan2(ir,nr)+RL;PL=or*Math.cos(ar)+UL,FL=or*Math.sin(ar)+IL;for(var sr=er.pathSegList,lr=sr.numberOfItems;lr;){lr-=1;var cr=sr.getItem(lr),ur=cr.pathSegType;if(1!==ur){var dr=_T(cr.x,cr.y),hr=[dr.x,dr.y];if(!Cf(cr.x1)&&!Cf(cr.x2)){var pr=_T(cr.x1,cr.y1),Ar=_T(cr.x2,cr.y2);hr.splice(hr.length,0,pr.x,pr.y,Ar.x,Ar.y)}dT(ur,lr,hr)}}cf(er);var fr=eT.getSVGRoot().createSVGTransform(),gr=mA(er);fr.setRotate(180*RL/Math.PI,PL,FL),gr.replaceItem(fr,0)}},yT=[0,"z","M","m","L","l","C","c","Q","q","A","a","H","h","V","v","S","s","T","t"],bT=function convertPath(er,tr){for(var rr=er.pathSegList,nr=rr.numberOfItems,ir=0,or=0,ar="",sr=null,lr=0;lr<nr;++lr){var cr=rr.getItem(lr),ur=cr.x||0,dr=cr.y||0,hr=cr.x1||0,pr=cr.y1||0,Ar=cr.x2||0,fr=cr.y2||0,gr=cr.pathSegType,mr=yT[gr][tr?"toLowerCase":"toUpperCase"]();switch(gr){case 1:ar+="z",sr&&!tr&&(ir=sr[0],or=sr[1]);break;case 12:ur-=ir;case 13:tr?(dr=0,ir+=ur,mr="l"):(dr=or,ir=ur+=ir,mr="L"),ar+=pathDSegment(mr,[[ur,dr]]);break;case 14:dr-=or;case 15:tr?(ur=0,or+=dr,mr="l"):(ur=ir,or=dr+=or,mr="L"),ar+=pathDSegment(mr,[[ur,dr]]);break;case 2:case 4:case 18:ur-=ir,dr-=or;case 5:case 3:case 19:tr?(ir+=ur,or+=dr):(ir=ur+=ir,or=dr+=or),2!==gr&&3!==gr||(sr=[ir,or]),ar+=pathDSegment(mr,[[ur,dr]]);break;case 6:ur-=ir,hr-=ir,Ar-=ir,dr-=or,pr-=or,fr-=or;case 7:tr?(ir+=ur,or+=dr):(hr+=ir,Ar+=ir,pr+=or,fr+=or,ir=ur+=ir,or=dr+=or),ar+=pathDSegment(mr,[[hr,pr],[Ar,fr],[ur,dr]]);break;case 8:ur-=ir,hr-=ir,dr-=or,pr-=or;case 9:tr?(ir+=ur,or+=dr):(hr+=ir,pr+=or,ir=ur+=ir,or=dr+=or),ar+=pathDSegment(mr,[[hr,pr],[ur,dr]]);break;case 10:ur-=ir,dr-=or;case 11:tr?(ir+=ur,or+=dr):(ir=ur+=ir,or=dr+=or),ar+=pathDSegment(mr,[[cr.r1,cr.r2]],[cr.angle,cr.largeArcFlag?1:0,cr.sweepFlag?1:0],[ur,dr]);break;case 16:ur-=ir,Ar-=ir,dr-=or,fr-=or;case 17:tr?(ir+=ur,or+=dr):(Ar+=ir,fr+=or,ir=ur+=ir,or=dr+=or),ar+=pathDSegment(mr,[[Ar,fr],[ur,dr]])}}return ar};function pathDSegment(er,tr,rr,nr){KL.each(tr,(function(er,rr){tr[er]=xA(rr)}));var ir=er+tr.join(" ");return rr&&(ir+=" "+rr.join(" ")),nr&&(ir+=" "+xA(nr)),ir}var wT,ST,xT,kT,CT,BT=(xT=!1,kT=null,CT=!1,{mouseDown:function mouseDown(er,tr,rr,nr){var ir;if("path"!==eT.getCurrentMode()){if(ZL){var or;if(ZL.storeD(),"pathpointgrip_"===(ir=er.target.id).substr(0,14)){or=ZL.cur_pt=Number.parseInt(ir.substr(14)),ZL.dragging=[rr,nr];var ar=ZL.segs[or];er.shiftKey?ar.selected?ZL.removePtFromSelection(or):ZL.addPtsToSelection(or):((ZL.selected_pts.length<=1||!ar.selected)&&ZL.clearSelection(),ZL.addPtsToSelection(or))}else if(ir.startsWith("ctrlpointgrip_")){ZL.dragging=[rr,nr];var sr=ir.split("_")[1].split("c");or=Number(sr[0]);var lr=Number(sr[1]);ZL.selectPt(or,lr)}if(!ZL.dragging){var cr=eT.getRubberBox();Cf(cr)&&(cr=eT.setRubberBox(eT.selectorManager.getRubberBandBox())),ur=eT.getCurrentZoom(),wf(cr,{x:rr*ur,y:nr*ur,width:0,height:0,display:"inline"})}}}else{var ur,dr=rr,hr=nr,pr=dr/(ur=eT.getCurrentZoom()),Ar=hr/ur,fr=bf("path_stretch_line");wT=[pr,Ar],eT.getGridSnapping()&&(pr=xf(pr),Ar=xf(Ar),dr=xf(dr),hr=xf(hr)),fr||(fr=document.createElementNS(wd.SVG,"path"),wf(fr,{id:"path_stretch_line",stroke:"#22C","stroke-width":"0.5",fill:"none"}),fr=bf("selectorParentGroup").appendChild(fr)),fr.setAttribute("display","inline");var gr,mr=eT.getDrawnPath();if(mr){for(var _r=mr.pathSegList,vr=_r.numberOfItems,yr=6/ur,br=!1;vr;){vr--;var wr=_r.getItem(vr),Sr=wr.x,xr=wr.y;if(pr>=Sr-yr&&pr<=Sr+yr&&Ar>=xr-yr&&Ar<=xr+yr){br=!0;break}}ir=eT.getId(),mT(ir);var kr,Cr,Br=bf(ir),Er=_r.numberOfItems;if(br){if(vr<=1&&Er>=2){var Nr=_r.getItem(0).x,Lr=_r.getItem(0).y;kr=4===(Cr=fr.pathSegList.getItem(1)).pathSegType?mr.createSVGPathSegLinetoAbs(Nr,Lr):mr.createSVGPathSegCurvetoCubicAbs(Nr,Lr,Cr.x1/ur,Cr.y1/ur,Nr,Lr);var Tr=mr.createSVGPathSegClosePath();_r.appendItem(kr),_r.appendItem(Tr)}else if(Er<3)return!1;if(KL(fr).remove(),eT.setDrawnPath(null),eT.setStarted(!1),xT){ZL.matrix&&eT.remapElement(Br,{},ZL.matrix.inverse());var Pr=Br.getAttribute("d"),Fr=KL(ZL.elem).attr("d");return KL(ZL.elem).attr("d",Fr+Pr),KL(Br).remove(),ZL.matrix&&vT(),tT(),BT.toEditMode(ZL.elem),ZL.selectPt(),!1}}else{if(!KL.contains(eT.getContainer(),eT.getMouseTarget(er)))return!1;var Ur=mr.pathSegList.numberOfItems,Ir=mr.pathSegList.getItem(Ur-1),Rr=Ir.x,Mr=Ir.y;if(er.shiftKey){var Or=DA(Rr,Mr,pr,Ar);pr=Or.x,Ar=Or.y}kr=4===(Cr=fr.pathSegList.getItem(1)).pathSegType?mr.createSVGPathSegLinetoAbs(eT.round(pr),eT.round(Ar)):mr.createSVGPathSegCurvetoCubicAbs(eT.round(pr),eT.round(Ar),Cr.x1/ur,Cr.y1/ur,Cr.x2/ur,Cr.y2/ur),mr.pathSegList.appendItem(kr),pr*=ur,Ar*=ur,fr.setAttribute("d",["M",pr,Ar,pr,Ar].join(" ")),gr=Ur,xT&&(gr+=ZL.segs.length),aT(gr,pr,Ar)}}else{var Qr="M"+pr+","+Ar+" ";eT.setDrawnPath(eT.addSVGElementFromJson({element:"path",curStyles:!0,attr:{d:Qr,id:eT.getNextId(),opacity:eT.getOpacity()/2}})),fr.setAttribute("d",["M",dr,hr,dr,hr].join(" ")),gr=xT?ZL.segs.length:0,aT(gr,dr,hr)}}},mouseMove:function mouseMove(er,tr){var rr=eT.getCurrentZoom();CT=!0;var nr=eT.getDrawnPath();if("path"!==eT.getCurrentMode())if(ZL.dragging){var ir=oT({x:ZL.dragging[0],y:ZL.dragging[1]},ZL),or=oT({x:er,y:tr},ZL),ar=or.x-ir.x,sr=or.y-ir.y;ZL.dragging=[er,tr],ZL.dragctrl?ZL.moveCtrl(ar,sr):ZL.movePts(ar,sr)}else ZL.selected_pts=[],ZL.eachSeg((function(er){var tr=this;if(tr.next||tr.prev){var rr=eT.getRubberBox().getBBox(),nr=iT(tr),ir={x:nr.x,y:nr.y,width:0,height:0},or=jA(rr,ir);this.select(or),or&&ZL.selected_pts.push(tr.index)}}));else{if(!nr)return;var lr=nr.pathSegList,cr=lr.numberOfItems-1;if(wT){var ur=lT("1c1"),dr=lT("0c2");ur.setAttribute("cx",er),ur.setAttribute("cy",tr),ur.setAttribute("display","inline");var hr=wT[0],pr=wT[1],Ar=hr+(hr-er/rr),fr=pr+(pr-tr/rr);dr.setAttribute("cx",Ar*rr),dr.setAttribute("cy",fr*rr),dr.setAttribute("display","inline");var gr=cT(1);if(wf(gr,{x1:er,y1:tr,x2:Ar*rr,y2:fr*rr,display:"inline"}),0===cr)ST=[er,tr];else{var mr=lr.getItem(cr-1),_r=mr.x,vr=mr.y;6===mr.pathSegType?(_r+=_r-mr.x2,vr+=vr-mr.y2):ST&&(_r=ST[0]/rr,vr=ST[1]/rr),dT(6,cr,[hr,pr,_r,vr,Ar,fr],nr)}}else{var yr=bf("path_stretch_line");if(yr){var br=lr.getItem(cr);if(6===br.pathSegType){var wr=br.x+(br.x-br.x2),Sr=br.y+(br.y-br.y2);dT(6,1,[er,tr,wr*rr,Sr*rr,er,tr],yr)}else ST?dT(6,1,[er,tr,ST[0],ST[1],er,tr],yr):dT(4,1,[er,tr],yr)}}}},mouseUp:function mouseUp(er,tr,rr,nr){var ir=eT.getDrawnPath();if("path"===eT.getCurrentMode())return wT=null,ir||(tr=bf(eT.getId()),eT.setStarted(!1),ST=null),{keep:!0,element:tr};var or=eT.getRubberBox();if(ZL.dragging){var ar=ZL.cur_pt;ZL.dragging=!1,ZL.dragctrl=!1,ZL.update(),CT&&ZL.endChanges("Move path point(s)"),er.shiftKey||CT||ZL.selectPt(ar)}else or&&"none"!==or.getAttribute("display")?(or.setAttribute("display","none"),or.getAttribute("width")<=2&&or.getAttribute("height")<=2&&BT.toSelectMode(er.target)):BT.toSelectMode(er.target);CT=!1},toEditMode:function toEditMode(er){ZL=gT(er),eT.setCurrentMode("pathedit"),eT.clearSelection(),ZL.show(!0).update(),ZL.oldbbox=cf(ZL.elem),xT=!1},toSelectMode:function toSelectMode(er){var tr=er===ZL.elem;eT.setCurrentMode("select"),ZL.show(!1),kT=!1,eT.clearSelection(),ZL.matrix&&vT(),tr&&(eT.call("selected",[er]),eT.addToSelection([er],!0))},addSubPath:function addSubPath(er){er?(eT.setCurrentMode("path"),xT=!0):(BT.clear(!0),BT.toEditMode(ZL.elem))},select:function select(er){kT===er?(BT.toEditMode(er),eT.setCurrentMode("pathedit")):kT=er},reorient:function reorient(){var er=eT.getSelectedElements()[0];if(er&&0!==vf(er)){var tr=new GL("Reorient path"),rr={d:er.getAttribute("d"),transform:er.getAttribute("transform")};tr.addSubCommand(new HL(er,rr)),eT.clearSelection(),this.resetOrientation(er),eT.addCommandToHistory(tr),gT(er).show(!1).matrix=null,this.clear(),eT.addToSelection([er],!0),eT.call("changed",eT.getSelectedElements())}},clear:function clear(er){var tr=eT.getDrawnPath();if(kT=null,tr){var rr=bf(eT.getId());KL(bf("path_stretch_line")).remove(),KL(rr).remove(),KL(bf("pathpointgrip_container")).find("*").attr("display","none"),ST=null,eT.setDrawnPath(null),eT.setStarted(!1)}else"pathedit"===eT.getCurrentMode()&&this.toSelectMode();ZL&&ZL.init().show(!1)},resetOrientation:function resetOrientation(er){if(Cf(er)||"path"!==er.nodeName)return!1;var tr=mA(er),rr=OA(tr).matrix;tr.clear(),er.removeAttribute("transform");for(var nr=er.pathSegList,ir=nr.numberOfItems,or=function _loop(tr){var ir=nr.getItem(tr),or=ir.pathSegType;if(1===or)return"continue";var ar=[];KL.each(["",1,2],(function(er,tr){var nr=ir["x"+tr],or=ir["y"+tr];if(void 0!==nr&&void 0!==or){var sr=FA(nr,or,rr);ar.splice(ar.length,0,sr.x,sr.y)}})),dT(or,tr,ar,er)},ar=0;ar<ir;++ar)or(ar);!function reorientGrads(er,tr){for(var rr=cf(er),nr=0;nr<2;nr++){var ir=0===nr?"fill":"stroke",or=er.getAttribute(ir);if(or&&or.startsWith("url(")){var ar=yf(or);if("linearGradient"===ar.tagName){var sr=ar.getAttribute("x1")||0,lr=ar.getAttribute("y1")||0,cr=ar.getAttribute("x2")||1,ur=ar.getAttribute("y2")||0;sr=rr.width*sr+rr.x,lr=rr.height*lr+rr.y,cr=rr.width*cr+rr.x,ur=rr.height*ur+rr.y;var dr=FA(sr,lr,tr),hr=FA(cr,ur,tr),pr={x1:(dr.x-rr.x)/rr.width,y1:(dr.y-rr.y)/rr.height,x2:(hr.x-rr.x)/rr.width,y2:(hr.y-rr.y)/rr.height},Ar=ar.cloneNode(!0);KL(Ar).attr(pr),Ar.id=eT.getNextId(),sf().append(Ar),er.setAttribute(ir,"url(#"+Ar.id+")")}}}}(er,rr)},zoomChange:function zoomChange(){"pathedit"===eT.getCurrentMode()&&ZL.update()},getNodePoint:function getNodePoint(){var er=ZL.selected_pts.length?ZL.selected_pts[0]:1,tr=ZL.segs[er];return{x:tr.item.x,y:tr.item.y,type:tr.type}},linkControlPoints:function linkControlPoints(er){!function setLinkControlPoints(er){JL=er}(er)},clonePathNode:function clonePathNode(){ZL.storeD();for(var er=ZL.selected_pts,tr=er.length,rr=[];tr--;){var nr=er[tr];ZL.addSeg(nr),rr.push(nr+tr),rr.push(nr+tr+1)}ZL.init().addPtsToSelection(rr),ZL.endChanges("Clone path node(s)")},opencloseSubPath:function opencloseSubPath(){var er=ZL.selected_pts;if(1===er.length){var tr,rr,nr=ZL.elem,ir=nr.pathSegList,or=er[0],ar=null,sr=null;if(ZL.eachSeg((function(er){return 2===this.type&&er<=or&&(sr=this.item),er<=or||(2===this.type?(ar=er,!1):1!==this.type||(ar=!1,!1))})),Cf(ar)&&(ar=ZL.segs.length-1),!1!==ar){var lr=nr.createSVGPathSegLinetoAbs(sr.x,sr.y),cr=nr.createSVGPathSegClosePath();return ar===ZL.segs.length-1?(ir.appendItem(lr),ir.appendItem(cr)):(rT(nr,cr,ar),rT(nr,lr,ar)),void ZL.init().selectPt(ar+1)}if(ZL.segs[or].mate)return ir.removeItem(or),ir.removeItem(or),void ZL.init().selectPt(or-1);for(var ur=0;ur<ir.numberOfItems;ur++){var dr=ir.getItem(ur);if(2===dr.pathSegType)tr=ur;else if(ur===or)ir.removeItem(tr);else if(1===dr.pathSegType&&or<ur){rr=ur-1,ir.removeItem(ur);break}}for(var hr=or-tr-1;hr--;)rT(nr,ir.getItem(tr),rr);var pr=ir.getItem(tr);dT(2,tr,[pr.x,pr.y]),ZL.init().selectPt(0)}},deletePathNode:function deletePathNode(){if(BT.canDeleteNodes){ZL.storeD();for(var er=ZL.selected_pts,tr=er.length;tr--;){var rr=er[tr];ZL.deleteSeg(rr)}if(function cleanup(){var er=ZL.elem.pathSegList,tr=er.numberOfItems,rr=function remItems(tr,rr){for(;rr--;)er.removeItem(tr)};if(tr<=1)return!0;for(;tr--;){var nr=er.getItem(tr);if(1===nr.pathSegType){var ir=er.getItem(tr-1),or=er.getItem(tr-2);if(2===ir.pathSegType){rr(tr-1,2),cleanup();break}if(2===or.pathSegType){rr(tr-2,3),cleanup();break}}else if(2===nr.pathSegType&&tr>0){var ar=er.getItem(tr-1).pathSegType;if(2===ar){rr(tr-1,1),cleanup();break}if(1===ar&&er.numberOfItems-1===tr){rr(tr,1),cleanup();break}}}return!1}(),ZL.elem.pathSegList.numberOfItems<=1)return BT.toSelectMode(ZL.elem),void eT.canvas.deleteSelectedElements();if(ZL.init(),ZL.clearSelection(),window.opera){var nr=KL(ZL.elem);nr.attr("d",nr.attr("d"))}ZL.endChanges("Delete path node(s)")}},smoothPolylineIntoPath:function smoothPolylineIntoPath(er){var tr,rr=er.points,nr=rr.numberOfItems;if(nr>=4){var ir=rr.getItem(0),or=null,ar=[];for(ar.push(["M",ir.x,",",ir.y," C"].join("")),tr=1;tr<=nr-4;tr+=3){var sr=rr.getItem(tr),lr=rr.getItem(tr+1),cr=rr.getItem(tr+2);if(or){var ur=pT(or,sr,ir);if(ur&&2===ur.length){var dr=ar[ar.length-1].split(",");dr[2]=ur[0].x,dr[3]=ur[0].y,ar[ar.length-1]=dr.join(","),sr=ur[1]}}ar.push([sr.x,sr.y,lr.x,lr.y,cr.x,cr.y].join(",")),ir=cr,or=lr}for(ar.push("L");tr<nr;){var hr=rr.getItem(tr);ar.push([hr.x,hr.y].join(",")),tr++}ar=ar.join(" "),er=eT.addSVGElementFromJson({element:"path",curStyles:!0,attr:{id:eT.getId(),d:ar,fill:"none"}})}return er},setSegType:function setSegType(er){ZL.setSegType(er)},moveNode:function moveNode(er,tr){var rr=ZL.selected_pts;if(rr.length){ZL.storeD();var nr=ZL.segs[rr[0]],ir={x:0,y:0};ir[er]=tr-nr.item[er],nr.move(ir.x,ir.y),ZL.endChanges("Move path point")}},fixEnd:function fixEnd(er){for(var tr,rr=er.pathSegList,nr=rr.numberOfItems,ir=0;ir<nr;++ir){var or=rr.getItem(ir);if(2===or.pathSegType&&(tr=or),1===or.pathSegType){var ar=rr.getItem(ir-1);if(ar.x!==tr.x||ar.y!==tr.y){var sr=er.createSVGPathSegLinetoAbs(tr.x,tr.y);rT(er,sr,ir),BT.fixEnd(er);break}}}Gd()&&eT.resetD(er)},convertPath:bT}),ET=jQuery,NT=function(){function Layer(er,tr,rr){if(_classCallCheck(this,Layer),this.name_=er,this.group_=rr?null:tr,rr){var nr=rr.ownerDocument;this.group_=nr.createElementNS(wd.SVG,"g");var ir=nr.createElementNS(wd.SVG,"title");ir.textContent=er,this.group_.append(ir),tr?ET(tr).after(this.group_):rr.append(this.group_)}addLayerClass(this.group_),rf(this.group_,(function(er){er.setAttribute("style","pointer-events:inherit")})),this.group_.setAttribute("style",rr?"pointer-events:all":"pointer-events:none")}return _createClass(Layer,[{key:"getName",value:function getName(){return this.name_}},{key:"getGroup",value:function getGroup(){return this.group_}},{key:"activate",value:function activate(){this.group_.setAttribute("style","pointer-events:all")}},{key:"deactivate",value:function deactivate(){this.group_.setAttribute("style","pointer-events:none")}},{key:"setVisible",value:function setVisible(er){var tr=void 0===er||er?"inline":"none";this.group_.getAttribute("display")!==tr&&this.group_.setAttribute("display",tr)}},{key:"isVisible",value:function isVisible(){return"none"!==this.group_.getAttribute("display")}},{key:"getOpacity",value:function getOpacity(){var er=this.group_.getAttribute("opacity");return Cf(er)?1:Number.parseFloat(er)}},{key:"setOpacity",value:function setOpacity(er){"number"==typeof er&&er>=0&&er<=1&&this.group_.setAttribute("opacity",er)}},{key:"appendChildren",value:function appendChildren(er){var tr,rr=_createForOfIteratorHelper(er);try{for(rr.s();!(tr=rr.n()).done;){var nr=tr.value;this.group_.append(nr)}}catch(er){rr.e(er)}finally{rr.f()}}},{key:"getTitleElement",value:function getTitleElement(){for(var er=this.group_.childNodes.length,tr=0;tr<er;++tr){var rr=this.group_.childNodes.item(tr);if(rr&&"title"===rr.tagName)return rr}return null}},{key:"setName",value:function setName(er,tr){var rr=this.name_;er=YA(er);var nr=this.getTitleElement();return nr?(ET(nr).empty(),nr.textContent=er,this.name_=er,tr&&tr.changeElement(nr,{"#text":rr}),this.name_):null}},{key:"removeGroup",value:function removeGroup(){var er=this.group_;return this.group_.remove(),this.group_=void 0,er}}]),Layer}();function addLayerClass(er){var tr=er.getAttribute("class");Cf(tr)||!tr.length?er.setAttribute("class",NT.CLASS_NAME):NT.CLASS_REGEX.test(tr)||er.setAttribute("class",tr+" "+NT.CLASS_NAME)}NT.CLASS_NAME="layer",NT.CLASS_REGEX=new RegExp("(\\s|^)"+NT.CLASS_NAME+"(\\s|$)");var LT=function(){function HistoryRecordingService(er){_classCallCheck(this,HistoryRecordingService),this.undoManager_=er,this.currentBatchCommand_=null,this.batchCommandStack_=[]}return _createClass(HistoryRecordingService,[{key:"startBatchCommand",value:function startBatchCommand(er){return this.undoManager_?(this.currentBatchCommand_=new GL(er),this.batchCommandStack_.push(this.currentBatchCommand_),this):this}},{key:"endBatchCommand",value:function endBatchCommand(){if(!this.undoManager_)return this;if(this.currentBatchCommand_){var er=this.currentBatchCommand_;this.batchCommandStack_.pop();var tr=this.batchCommandStack_.length;this.currentBatchCommand_=tr?this.batchCommandStack_[tr-1]:null,this.addCommand_(er)}return this}},{key:"moveElement",value:function moveElement(er,tr,rr,nr){return this.undoManager_?(this.addCommand_(new QL(er,tr,rr,nr)),this):this}},{key:"insertElement",value:function insertElement(er,tr){return this.undoManager_?(this.addCommand_(new DL(er,tr)),this):this}},{key:"removeElement",value:function removeElement(er,tr,rr,nr){return this.undoManager_?(this.addCommand_(new jL(er,tr,rr,nr)),this):this}},{key:"changeElement",value:function changeElement(er,tr,rr){return this.undoManager_?(this.addCommand_(new HL(er,tr,rr)),this):this}},{key:"addCommand_",value:function addCommand_(er){if(!this.undoManager_)return this;this.currentBatchCommand_?this.currentBatchCommand_.addSubCommand(er):this.undoManager_.addCommandToHistory(er)}}]),HistoryRecordingService}();LT.NO_HISTORY=new LT;var TT=jQueryPluginSVG(jQuery),PT=jQuery,FT="a,circle,ellipse,foreignObject,g,image,line,path,polygon,polyline,rect,svg,text,tspan,use".split(","),UT=1,IT=2,RT=0,MT=[];function historyRecordingService(er){return er||new LT(OT.undoMgr)}function findLayerNameInGroup(er){return PT("title",er).text()||(function isOpera(){return Bd}()&&er.querySelectorAll?PT(er.querySelectorAll("title")).text():"")}function getNewLayerName(er){for(var tr=1;er.includes("Layer "+tr);)tr++;return"Layer "+tr}var OT,QT=function(){function Drawing(er,tr){if(_classCallCheck(this,Drawing),!er||!er.tagName||!er.namespaceURI||"svg"!==er.tagName||er.namespaceURI!==wd.SVG)throw new Error("Error: svgedit.draw.Drawing instance initialized without a <svg> element");this.svgElem_=er,this.obj_num=0,this.idPrefix=tr||"svg_",this.releasedNums=[],this.all_layers=[],this.layer_map={},this.current_layer=null,this.nonce_="";var rr=this.svgElem_.getAttributeNS(wd.SE,"nonce");rr&&RT!==IT?this.nonce_=rr:RT===UT&&this.setNonce(Math.floor(100001*Math.random()))}return _createClass(Drawing,[{key:"getElem_",value:function getElem_(er){return this.svgElem_.querySelector?this.svgElem_.querySelector("#"+er):PT(this.svgElem_).find("[id="+er+"]")[0]}},{key:"getSvgElem",value:function getSvgElem(){return this.svgElem_}},{key:"getNonce",value:function getNonce(){return this.nonce_}},{key:"setNonce",value:function setNonce(er){this.svgElem_.setAttributeNS(wd.XMLNS,"xmlns:se",wd.SE),this.svgElem_.setAttributeNS(wd.SE,"se:nonce",er),this.nonce_=er}},{key:"clearNonce",value:function clearNonce(){this.nonce_=""}},{key:"getId",value:function getId(){return this.nonce_?this.idPrefix+this.nonce_+"_"+this.obj_num:this.idPrefix+this.obj_num}},{key:"getNextId",value:function getNextId(){var er=this.obj_num,tr=!1;this.releasedNums.length>0?(this.obj_num=this.releasedNums.pop(),tr=!0):this.obj_num++;for(var rr=this.getId();this.getElem_(rr);)tr&&(this.obj_num=er,tr=!1),this.obj_num++,rr=this.getId();return tr&&(this.obj_num=er),rr}},{key:"releaseId",value:function releaseId(er){var tr=this.idPrefix+(this.nonce_?this.nonce_+"_":"");if("string"!=typeof er||!er.startsWith(tr))return!1;var rr=Number.parseInt(er.substr(tr.length));return!("number"!=typeof rr||rr<=0||this.releasedNums.includes(rr))&&(this.releasedNums.push(rr),!0)}},{key:"getNumLayers",value:function getNumLayers(){return this.all_layers.length}},{key:"hasLayer",value:function hasLayer(er){return void 0!==this.layer_map[er]}},{key:"getLayerName",value:function getLayerName(er){return er>=0&&er<this.getNumLayers()?this.all_layers[er].getName():""}},{key:"getCurrentLayer",value:function getCurrentLayer(){return this.current_layer?this.current_layer.getGroup():null}},{key:"getLayerByName",value:function getLayerByName(er){var tr=this.layer_map[er];return tr?tr.getGroup():null}},{key:"getCurrentLayerName",value:function getCurrentLayerName(){return this.current_layer?this.current_layer.getName():""}},{key:"setCurrentLayerName",value:function setCurrentLayerName(er,tr){var rr=null;if(this.current_layer){var nr=this.current_layer.getName();(rr=this.current_layer.setName(er,tr))&&(delete this.layer_map[nr],this.layer_map[rr]=this.current_layer)}return rr}},{key:"setCurrentLayerPosition",value:function setCurrentLayerPosition(er){var tr,rr=this.getNumLayers();if(!this.current_layer||er<0||er>=rr)return null;for(tr=0;tr<rr&&this.all_layers[tr]!==this.current_layer;++tr);if(tr===rr)return null;if(tr!==er){var nr=this.current_layer.getGroup(),ir=nr.nextSibling,or=null;return er>tr?er<rr-1&&(or=this.all_layers[er+1].getGroup()):or=this.all_layers[er].getGroup(),this.svgElem_.insertBefore(nr,or),this.identifyLayers(),this.setCurrentLayer(this.getLayerName(er)),{currentGroup:nr,oldNextSibling:ir}}return null}},{key:"mergeLayer",value:function mergeLayer(er){var tr=this.current_layer.getGroup(),rr=PT(tr).prev()[0];if(rr){er.startBatchCommand("Merge Layer");var nr=tr.nextSibling;for(er.removeElement(tr,nr,this.svgElem_);tr.firstChild;){var ir=tr.firstChild;if("title"!==ir.localName){var or=ir.nextSibling;rr.append(ir),er.moveElement(ir,or,tr)}else er.removeElement(ir,ir.nextSibling,tr),ir.remove()}this.current_layer.removeGroup();var ar=this.all_layers.indexOf(this.current_layer);if(ar>0){var sr=this.current_layer.getName();this.current_layer=this.all_layers[ar-1],this.all_layers.splice(ar,1),delete this.layer_map[sr]}er.endBatchCommand()}}},{key:"mergeAllLayers",value:function mergeAllLayers(er){for(this.current_layer=this.all_layers[this.all_layers.length-1],er.startBatchCommand("Merge all Layers");this.all_layers.length>1;)this.mergeLayer(er);er.endBatchCommand()}},{key:"setCurrentLayer",value:function setCurrentLayer(er){var tr=this.layer_map[er];return!!tr&&(this.current_layer&&this.current_layer.deactivate(),this.current_layer=tr,this.current_layer.activate(),!0)}},{key:"deleteCurrentLayer",value:function deleteCurrentLayer(){if(this.current_layer&&this.getNumLayers()>1){var er=this.current_layer.removeGroup();return this.identifyLayers(),er}return null}},{key:"identifyLayers",value:function identifyLayers(){this.all_layers=[],this.layer_map={};for(var er=this.svgElem_.childNodes.length,tr=[],rr=[],nr=null,ir=!1,or=0;or<er;++or){var ar=this.svgElem_.childNodes.item(or);if(ar&&1===ar.nodeType)if("g"===ar.tagName){ir=!0;var sr=findLayerNameInGroup(ar);sr?(rr.push(sr),nr=new NT(sr,ar),this.all_layers.push(nr),this.layer_map[sr]=nr):tr.push(ar)}else FT.includes(ar.nodeName)&&tr.push(ar)}tr.length>0||!ir?((nr=new NT(getNewLayerName(rr),null,this.svgElem_)).appendChildren(tr),this.all_layers.push(nr),this.layer_map[name]=nr):nr.activate(),this.current_layer=nr}},{key:"createLayer",value:function createLayer(er,tr){this.current_layer&&this.current_layer.deactivate(),(null==er||""===er||this.layer_map[er])&&(er=getNewLayerName(Object.keys(this.layer_map)));var rr=new NT(er,null,this.svgElem_);return tr&&(tr.startBatchCommand("Create Layer"),tr.insertElement(rr.getGroup()),tr.endBatchCommand()),this.all_layers.push(rr),this.layer_map[er]=rr,this.current_layer=rr,rr.getGroup()}},{key:"cloneLayer",value:function cloneLayer(er,tr){var rr=this;if(!this.current_layer)return null;this.current_layer.deactivate(),(null==er||""===er||this.layer_map[er])&&(er=getNewLayerName(Object.keys(this.layer_map)));var nr=this.current_layer.getGroup(),ir=new NT(er,nr,this.svgElem_),or=ir.getGroup();_toConsumableArray(nr.childNodes).forEach((function(er){"title"!==er.localName&&or.append(rr.copyElem(er))})),tr&&(tr.startBatchCommand("Duplicate Layer"),tr.insertElement(or),tr.endBatchCommand());var ar=this.all_layers.indexOf(this.current_layer);return ar>=0?this.all_layers.splice(ar+1,0,ir):this.all_layers.push(ir),this.layer_map[er]=ir,this.current_layer=ir,or}},{key:"getLayerVisibility",value:function getLayerVisibility(er){var tr=this.layer_map[er];return!!tr&&tr.isVisible()}},{key:"setLayerVisibility",value:function setLayerVisibility(er,tr){if("boolean"!=typeof tr)return null;var rr=this.layer_map[er];return rr?(rr.setVisible(tr),rr.getGroup()):null}},{key:"getLayerOpacity",value:function getLayerOpacity(er){var tr=this.layer_map[er];return tr?tr.getOpacity():null}},{key:"setLayerOpacity",value:function setLayerOpacity(er,tr){if(!("number"!=typeof tr||tr<0||tr>1)){var rr=this.layer_map[er];rr&&rr.setOpacity(tr)}}},{key:"copyElem",value:function copyElem$1(er){var tr=this;return function copyElem(er,tr){var rr=document.createElementNS(er.namespaceURI,er.nodeName);if(TT.each(er.attributes,(function(er,tr){"-moz-math-font-style"!==tr.localName&&rr.setAttributeNS(tr.namespaceURI,tr.nodeName,tr.value)})),rr.removeAttribute("id"),rr.id=tr(),Gd()&&"path"===er.nodeName){var nr=bT(er);rr.setAttribute("d",nr)}if(TT.each(er.childNodes,(function(er,nr){switch(nr.nodeType){case 1:rr.append(copyElem(nr,tr));break;case 3:rr.textContent=nr.nodeValue}})),TT(er).data("gsvg"))TT(rr).data("gsvg",rr.firstChild);else if(TT(er).data("symbol")){var ir=TT(er).data("symbol");TT(rr).data("ref",ir).data("symbol",ir)}else"image"===rr.tagName&&kf(rr);return rr}(er,(function getNextIdClosure(){return tr.getNextId()}))}}]),Drawing}(),DT=function randomizeIds(er,tr){(RT=!1===er?IT:UT)!==UT||tr.getNonce()?RT===IT&&tr.getNonce()&&tr.clearNonce():tr.setNonce(Math.floor(100001*Math.random()))},jT=function identifyLayers(){$T(),OT.getCurrentDrawing().identifyLayers()},HT=function createLayer(er,tr){var rr=OT.getCurrentDrawing().createLayer(er,historyRecordingService(tr));OT.clearSelection(),OT.call("changed",[rr])},GT=function cloneLayer(er,tr){var rr=OT.getCurrentDrawing().cloneLayer(er,historyRecordingService(tr));OT.clearSelection(),$T(),OT.call("changed",[rr])},VT=function deleteCurrentLayer(){var er=OT.getCurrentDrawing().getCurrentLayer(),tr=er.nextSibling,rr=er.parentNode;if(er=OT.getCurrentDrawing().deleteCurrentLayer()){var nr=new GL("Delete Layer");return nr.addSubCommand(new jL(er,tr,rr)),OT.addCommandToHistory(nr),OT.clearSelection(),OT.call("changed",[rr]),!0}return!1},zT=function setCurrentLayer(er){var tr=OT.getCurrentDrawing().setCurrentLayer(YA(er));return tr&&OT.clearSelection(),tr},KT=function renameCurrentLayer(er){var tr=OT.getCurrentDrawing(),rr=tr.getCurrentLayer();if(rr&&tr.setCurrentLayerName(er,historyRecordingService()))return OT.call("changed",[rr]),!0;return!1},qT=function setCurrentLayerPosition(er){var tr=OT.getCurrentDrawing().setCurrentLayerPosition(er);return!!tr&&(OT.addCommandToHistory(new QL(tr.currentGroup,tr.oldNextSibling,OT.getSVGContent())),!0)},WT=function setLayerVisibility(er,tr){var rr=OT.getCurrentDrawing(),nr=rr.getLayerVisibility(er),ir=rr.setLayerVisibility(er,tr);if(!ir)return!1;var or=nr?"inline":"none";return OT.addCommandToHistory(new HL(ir,{display:or},"Layer Visibility")),ir===rr.getCurrentLayer()&&(OT.clearSelection(),OT.pathActions.clear()),!0},XT=function moveSelectedToLayer(er){var tr=OT.getCurrentDrawing().getLayerByName(er);if(!tr)return!1;for(var rr=new GL("Move Elements to Layer"),nr=OT.getSelectedElements(),ir=nr.length;ir--;){var or=nr[ir];if(or){var ar=or.nextSibling,sr=or.parentNode;tr.append(or),rr.addSubCommand(new QL(or,ar,sr))}}return OT.addCommandToHistory(rr),!0},YT=function mergeLayer(er){OT.getCurrentDrawing().mergeLayer(historyRecordingService(er)),OT.clearSelection(),$T(),OT.changeSVGContent()},JT=function mergeAllLayers(er){OT.getCurrentDrawing().mergeAllLayers(historyRecordingService(er)),OT.clearSelection(),$T(),OT.changeSVGContent()},$T=function leaveContext(){var er=MT.length;if(er){for(var tr=0;tr<er;tr++){var rr=MT[tr],nr=OT.elData(rr,"orig_opac");1!==nr?rr.setAttribute("opacity",nr):rr.removeAttribute("opacity"),rr.setAttribute("style","pointer-events: inherit")}MT=[],OT.clearSelection(!0),OT.call("contextset",null)}OT.setCurrentGroup(null)},ZT=function setContext(er){$T(),"string"==typeof er&&(er=bf(er)),OT.setCurrentGroup(er),PT(er).parentsUntil("#svgcontent").andSelf().siblings().each((function(){var er=this.getAttribute("opacity")||1;OT.elData(this,"orig_opac",er),this.setAttribute("opacity",.33*er),this.setAttribute("style","pointer-events: none"),MT.push(this)})),OT.clearSelection(),OT.call("contextset",OT.getCurrentGroup())},eP=Sd(),tP={a:["class","clip-path","clip-rule","fill","fill-opacity","fill-rule","filter","id","mask","opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","style","systemLanguage","transform","xlink:href","xlink:title"],circle:["class","clip-path","clip-rule","cx","cy","fill","fill-opacity","fill-rule","filter","id","mask","opacity","r","requiredFeatures","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","style","systemLanguage","transform"],clipPath:["class","clipPathUnits","id"],defs:[],style:["type"],desc:[],ellipse:["class","clip-path","clip-rule","cx","cy","fill","fill-opacity","fill-rule","filter","id","mask","opacity","requiredFeatures","rx","ry","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","style","systemLanguage","transform"],feGaussianBlur:["class","color-interpolation-filters","id","requiredFeatures","stdDeviation"],feMorphology:["class","in","operator","radius"],filter:["class","color-interpolation-filters","filterRes","filterUnits","height","id","primitiveUnits","requiredFeatures","width","x","xlink:href","y"],foreignObject:["class","font-size","height","id","opacity","requiredFeatures","style","transform","width","x","y"],g:["class","clip-path","clip-rule","id","display","fill","fill-opacity","fill-rule","filter","mask","opacity","requiredFeatures","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","style","systemLanguage","transform","font-family","font-size","font-style","font-weight","text-anchor"],image:["class","clip-path","clip-rule","filter","height","id","mask","opacity","requiredFeatures","style","systemLanguage","transform","width","x","xlink:href","xlink:title","y"],line:["class","clip-path","clip-rule","fill","fill-opacity","fill-rule","filter","id","marker-end","marker-mid","marker-start","mask","opacity","requiredFeatures","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","style","systemLanguage","transform","x1","x2","y1","y2"],linearGradient:["class","id","gradientTransform","gradientUnits","requiredFeatures","spreadMethod","systemLanguage","x1","x2","xlink:href","y1","y2"],marker:["id","class","markerHeight","markerUnits","markerWidth","orient","preserveAspectRatio","refX","refY","systemLanguage","viewBox"],mask:["class","height","id","maskContentUnits","maskUnits","width","x","y"],metadata:["class","id"],path:["class","clip-path","clip-rule","d","fill","fill-opacity","fill-rule","filter","id","marker-end","marker-mid","marker-start","mask","opacity","requiredFeatures","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","style","systemLanguage","transform"],pattern:["class","height","id","patternContentUnits","patternTransform","patternUnits","requiredFeatures","style","systemLanguage","viewBox","width","x","xlink:href","y"],polygon:["class","clip-path","clip-rule","id","fill","fill-opacity","fill-rule","filter","id","class","marker-end","marker-mid","marker-start","mask","opacity","points","requiredFeatures","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","style","systemLanguage","transform"],polyline:["class","clip-path","clip-rule","id","fill","fill-opacity","fill-rule","filter","marker-end","marker-mid","marker-start","mask","opacity","points","requiredFeatures","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","style","systemLanguage","transform"],radialGradient:["class","cx","cy","fx","fy","gradientTransform","gradientUnits","id","r","requiredFeatures","spreadMethod","systemLanguage","xlink:href"],rect:["class","clip-path","clip-rule","fill","fill-opacity","fill-rule","filter","height","id","mask","opacity","requiredFeatures","rx","ry","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","style","systemLanguage","transform","width","x","y"],stop:["class","id","offset","requiredFeatures","stop-color","stop-opacity","style","systemLanguage"],svg:["class","clip-path","clip-rule","filter","id","height","mask","preserveAspectRatio","requiredFeatures","style","systemLanguage","viewBox","width","x","xmlns","xmlns:se","xmlns:xlink","y"],switch:["class","id","requiredFeatures","systemLanguage"],symbol:["class","fill","fill-opacity","fill-rule","filter","font-family","font-size","font-style","font-weight","id","opacity","preserveAspectRatio","requiredFeatures","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","style","systemLanguage","transform","viewBox"],text:["class","clip-path","clip-rule","fill","fill-opacity","fill-rule","filter","font-family","font-size","font-style","font-weight","id","mask","opacity","requiredFeatures","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","style","systemLanguage","text-anchor","transform","x","xml:space","y"],textPath:["class","id","method","requiredFeatures","spacing","startOffset","style","systemLanguage","transform","xlink:href"],title:[],tspan:["class","clip-path","clip-rule","dx","dy","fill","fill-opacity","fill-rule","filter","font-family","font-size","font-style","font-weight","id","mask","opacity","requiredFeatures","rotate","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","style","systemLanguage","text-anchor","textLength","transform","x","xml:space","y"],use:["class","clip-path","clip-rule","fill","fill-opacity","fill-rule","filter","height","id","mask","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","style","transform","width","x","xlink:href","y"],annotation:["encoding"],"annotation-xml":["encoding"],maction:["actiontype","other","selection"],math:["class","id","display","xmlns"],menclose:["notation"],merror:[],mfrac:["linethickness"],mi:["mathvariant"],mmultiscripts:[],mn:[],mo:["fence","lspace","maxsize","minsize","rspace","stretchy"],mover:[],mpadded:["lspace","width","height","depth","voffset"],mphantom:[],mprescripts:[],mroot:[],mrow:["xlink:href","xlink:type","xmlns:xlink"],mspace:["depth","height","width"],msqrt:[],mstyle:["displaystyle","mathbackground","mathcolor","mathvariant","scriptlevel"],msub:[],msubsup:[],msup:[],mtable:["align","columnalign","columnlines","columnspacing","displaystyle","equalcolumns","equalrows","frame","rowalign","rowlines","rowspacing","width"],mtd:["columnalign","columnspan","rowalign","rowspan"],mtext:[],mtr:["columnalign","rowalign"],munder:[],munderover:[],none:[],semantics:[]},rP={};Object.entries(tP).forEach((function(er){var tr=_slicedToArray(er,2),rr=tr[0],nr=tr[1],ir={};Object.entries(nr).forEach((function(er){var tr=_slicedToArray(er,2),rr=(tr[0],tr[1]);if(rr.includes(":")){var nr=rr.split(":");ir[nr[1]]=wd[nr[0].toUpperCase()]}else ir[rr]="xmlns"===rr?wd.XMLNS:null})),rP[rr]=ir}));var nP,iP,oP,aP,sP=function sanitizeSvg(er){if(3===er.nodeType&&(er.nodeValue=er.nodeValue.replace(/^\s+|\s+$/g,""),er.nodeValue.length||er.remove()),1===er.nodeType){var tr=er.ownerDocument,rr=er.parentNode;if(tr&&rr){var nr=tP[er.nodeName],ir=rP[er.nodeName];if(void 0!==nr){for(var or=[],ar=er.attributes.length;ar--;){var sr=er.attributes.item(ar),lr=sr.nodeName,cr=sr.localName,ur=sr.namespaceURI;if({}.hasOwnProperty.call(ir,cr)&&ur===ir[cr]&&ur!==wd.XMLNS||ur===wd.XMLNS&&eP[sr.value]||((lr.startsWith("se:")||lr.startsWith("data-"))&&or.push([lr,sr.value]),er.removeAttributeNS(ur,cr)),Vd())switch(lr){case"transform":case"gradientTransform":case"patternTransform":var dr=sr.value.replace(/(\d)-/g,"$1 -");er.setAttribute(lr,dr)}if("style"===lr){for(var hr=sr.value.split(";"),pr=hr.length;pr--;){var Ar=_slicedToArray(hr[pr].split(":"),2),fr=Ar[0],gr=Ar[1],mr=(fr||"").trim(),_r=(gr||"").trim();nr.includes(mr)&&er.setAttribute(mr,_r)}er.removeAttribute("style")}}Object.values(or).forEach((function(tr){var rr=_slicedToArray(tr,2),nr=rr[0],ir=rr[1];er.setAttributeNS(wd.SE,nr,ir)}));var vr=of(er);if(vr&&["filter","linearGradient","pattern","radialGradient","textPath","use"].includes(er.nodeName)&&"#"!==vr[0]&&(af(er,""),er.removeAttributeNS(wd.XLINK,"href")),"use"===er.nodeName&&!of(er))return void er.remove();for(Object.values(["clip-path","fill","filter","marker-end","marker-mid","marker-start","mask","stroke"],(function(tr){var rr=er.getAttribute(tr);rr&&(rr=nf(rr))&&"#"!==rr[0]&&(er.setAttribute(tr,""),er.removeAttribute(tr))})),ar=er.childNodes.length;ar--;)sanitizeSvg(er.childNodes.item(ar))}else{for(var yr=[];er.hasChildNodes();)yr.push(rr.insertBefore(er.firstChild,er));er.remove();for(var br=yr.length;br--;)sanitizeSvg(yr[br])}}}},lP=jQuery,cP=[0,"z","M","m","L","l","C","c","Q","q","A","a","H","h","V","v","S","s","T","t"],uP=null,dP=function remapElement(er,tr,rr){for(var nr=function remap(er,tr){return FA(er,tr,rr)},ir=function scalew(er){return rr.a*er},or=function scaleh(er){return rr.d*er},ar=uP.getGridSnapping()&&"svg"===er.parentNode.parentNode.localName,sr=function finishUp(){ar&&Object.entries(tr).forEach((function(er){var rr=_slicedToArray(er,2),nr=rr[0],ir=rr[1];tr[nr]=xf(ir)})),wf(er,tr,0,!0)},lr=cf(er),cr=0;cr<2;cr++){var ur=0===cr?"fill":"stroke",dr=er.getAttribute(ur);if(dr&&dr.startsWith("url(")&&(rr.a<0||rr.d<0)){var hr=yf(dr).cloneNode(!0);if(rr.a<0){var pr=hr.getAttribute("x1"),Ar=hr.getAttribute("x2");hr.setAttribute("x1",-(pr-1)),hr.setAttribute("x2",-(Ar-1))}if(rr.d<0){var fr=hr.getAttribute("y1"),gr=hr.getAttribute("y2");hr.setAttribute("y1",-(fr-1)),hr.setAttribute("y2",-(gr-1))}hr.id=uP.getDrawing().getNextId(),sf().append(hr),er.setAttribute(ur,"url(#"+hr.id+")")}}var mr=er.tagName;if("g"===mr||"text"===mr||"tspan"===mr||"use"===mr)if(1!==rr.a||0!==rr.b||0!==rr.c||1!==rr.d||0===rr.e&&0===rr.f){var _r=mA(er),vr=uP.getSVGRoot().createSVGTransform();vr.setMatrix(IA(OA(_r).matrix,rr)),_r.clear(),_r.appendItem(vr)}else{var yr=OA(er).matrix,br=IA(yr.inverse(),rr,yr);tr.x=Number.parseFloat(tr.x)+br.e,tr.y=Number.parseFloat(tr.y)+br.f}switch(mr){case"foreignObject":case"rect":case"image":if("image"===mr&&(rr.a<0||rr.d<0)){var wr=mA(er),Sr=uP.getSVGRoot().createSVGTransform();Sr.setMatrix(IA(OA(wr).matrix,rr)),wr.clear(),wr.appendItem(Sr)}else{var xr=nr(tr.x,tr.y);tr.width=ir(tr.width),tr.height=or(tr.height),tr.x=xr.x+Math.min(0,tr.width),tr.y=xr.y+Math.min(0,tr.height),tr.width=Math.abs(tr.width),tr.height=Math.abs(tr.height)}sr();break;case"ellipse":var kr=nr(tr.cx,tr.cy);tr.cx=kr.x,tr.cy=kr.y,tr.rx=ir(tr.rx),tr.ry=or(tr.ry),tr.rx=Math.abs(tr.rx),tr.ry=Math.abs(tr.ry),sr();break;case"circle":var Cr=nr(tr.cx,tr.cy);tr.cx=Cr.x,tr.cy=Cr.y;var Br=MA(lr.x,lr.y,lr.width,lr.height,rr),Er=Br.tr.x-Br.tl.x,Nr=Br.bl.y-Br.tl.y;tr.r=Math.min(Er/2,Nr/2),tr.r&&(tr.r=Math.abs(tr.r)),sr();break;case"line":var Lr=nr(tr.x1,tr.y1),Tr=nr(tr.x2,tr.y2);tr.x1=Lr.x,tr.y1=Lr.y,tr.x2=Tr.x,tr.y2=Tr.y;case"text":case"tspan":case"use":sr();break;case"g":var Pr=lP(er).data("gsvg");Pr&&wf(Pr,tr,0,!0);break;case"polyline":case"polygon":for(var Fr=tr.points.length,Ur=0;Ur<Fr;++Ur){var Ir=tr.points[Ur],Rr=nr(Ir.x,Ir.y),Mr=Rr.x,Or=Rr.y;tr.points[Ur].x=Mr,tr.points[Ur].y=Or}for(var Qr="",Dr=0;Dr<Fr;++Dr){var jr=tr.points[Dr];Qr+=jr.x+","+jr.y+" "}er.setAttribute("points",Qr);break;case"path":var Hr=er.pathSegList,Gr=Hr.numberOfItems;tr.d=[];for(var Vr=0;Vr<Gr;++Vr){var zr=Hr.getItem(Vr);tr.d[Vr]={type:zr.pathSegType,x:zr.x,y:zr.y,x1:zr.x1,y1:zr.y1,x2:zr.x2,y2:zr.y2,r1:zr.r1,r2:zr.r2,angle:zr.angle,largeArcFlag:zr.largeArcFlag,sweepFlag:zr.sweepFlag}}Gr=tr.d.length;var Kr=tr.d[0],qr=nr(Kr.x,Kr.y);tr.d[0].x=qr.x,tr.d[0].y=qr.y;for(var Wr=1;Wr<Gr;++Wr){var Xr=tr.d[Wr];if(Xr.type%2==0){var Yr=nr(void 0!==Xr.x?Xr.x:qr.x,void 0!==Xr.y?Xr.y:qr.y),Jr=nr(Xr.x1,Xr.y1),$r=nr(Xr.x2,Xr.y2);Xr.x=Yr.x,Xr.y=Yr.y,Xr.x1=Jr.x,Xr.y1=Jr.y,Xr.x2=$r.x,Xr.y2=$r.y,Xr.r1=ir(Xr.r1),Xr.r2=or(Xr.r2)}else Xr.x=ir(Xr.x),Xr.y=or(Xr.y),Xr.x1=ir(Xr.x1),Xr.y1=or(Xr.y1),Xr.x2=ir(Xr.x2),Xr.y2=or(Xr.y2),Xr.r1=ir(Xr.r1),Xr.r2=or(Xr.r2)}var Zr="";Gr=tr.d.length;for(var Tn=0;Tn<Gr;++Tn){var Un=tr.d[Tn],Qn=Un.type;switch(Zr+=cP[Qn],Qn){case 13:case 12:Zr+=Un.x+" ";break;case 15:case 14:Zr+=Un.y+" ";break;case 3:case 5:case 19:case 2:case 4:case 18:Zr+=Un.x+","+Un.y+" ";break;case 7:case 6:Zr+=Un.x1+","+Un.y1+" "+Un.x2+","+Un.y2+" "+Un.x+","+Un.y+" ";break;case 9:case 8:Zr+=Un.x1+","+Un.y1+" "+Un.x+","+Un.y+" ";break;case 11:case 10:Zr+=Un.r1+","+Un.r2+" "+Un.angle+" "+Number(Un.largeArcFlag)+" "+Number(Un.sweepFlag)+" "+Un.x+","+Un.y+" ";break;case 17:case 16:Zr+=Un.x2+","+Un.y2+" "+Un.x+","+Un.y+" "}}er.setAttribute("d",Zr)}},hP=jQueryPluginSVG(jQuery),pP=function updateClipPath(er,tr,rr){var nr=yf(er).firstChild,ir=mA(nr),or=nP.getSVGRoot().createSVGTransform();or.setTranslate(tr,rr),ir.appendItem(or),AP(nr)},AP=function recalculateDimensions(er){if(Cf(er))return null;if("svg"===er.nodeName&&navigator.userAgent.includes("Firefox/20"))return null;var tr=nP.getSVGRoot(),rr=mA(er);if(rr&&rr.numberOfItems>0){for(var nr=rr.numberOfItems,ir=nr;nr--;){var or=rr.getItem(nr);if(0===or.type)rr.removeItem(nr);else if(1===or.type){if(UA(or.matrix)){if(1===ir)return er.removeAttribute("transform"),null;rr.removeItem(nr)}}else 4===or.type&&0===or.angle&&rr.removeItem(nr)}if(1===rr.numberOfItems&&vf(er))return null}if(!rr||0===rr.numberOfItems)return er.setAttribute("transform",""),er.removeAttribute("transform"),null;if(rr){for(var ar=[],sr=rr.numberOfItems;sr--;){var lr=rr.getItem(sr);1===lr.type?ar.push([lr.matrix,sr]):ar.length&&(ar=[])}if(2===ar.length){var cr=tr.createSVGTransformFromMatrix(IA(ar[1][0],ar[0][0]));rr.removeItem(ar[0][1]),rr.removeItem(ar[1][1]),rr.insertItemBefore(cr,ar[1][1])}if((sr=rr.numberOfItems)>=2&&1===rr.getItem(sr-2).type&&2===rr.getItem(sr-1).type){var ur=tr.createSVGTransform(),dr=IA(rr.getItem(sr-2).matrix,rr.getItem(sr-1).matrix);ur.setMatrix(dr),rr.removeItem(sr-2),rr.removeItem(sr-2),rr.appendItem(ur)}}switch(er.tagName){case"line":case"polyline":case"polygon":case"path":break;default:if(1===rr.numberOfItems&&1===rr.getItem(0).type||2===rr.numberOfItems&&1===rr.getItem(0).type&&4===rr.getItem(0).type)return null}var hr,pr,Ar=hP(er).data("gsvg"),fr=new GL("Transform"),gr={},mr=null,_r=[];switch(er.tagName){case"line":_r=["x1","y1","x2","y2"];break;case"circle":_r=["cx","cy","r"];break;case"ellipse":_r=["cx","cy","rx","ry"];break;case"foreignObject":case"rect":case"image":_r=["width","height","x","y"];break;case"use":case"text":case"tspan":_r=["x","y"];break;case"polygon":case"polyline":(mr={}).points=er.getAttribute("points");var vr=er.points,yr=vr.numberOfItems;gr.points=new Array(yr);for(var br=0;br<yr;++br){var wr=vr.getItem(br);gr.points[br]={x:wr.x,y:wr.y}}break;case"path":(mr={}).d=er.getAttribute("d"),gr.d=er.getAttribute("d")}if(_r.length?(gr=hP(er).attr(_r),hP.each(gr,(function(er,tr){gr[er]=BA(er,tr)}))):Ar&&(gr={x:hP(Ar).attr("x")||0,y:hP(Ar).attr("y")||0}),Cf(mr)&&(mr=hP.extend(!0,{},gr),hP.each(mr,(function(er,tr){mr[er]=BA(er,tr)}))),mr.transform=nP.getStartTransform()||"","g"===er.tagName&&!Ar||"a"===er.tagName){var Sr=cf(er);hr={x:Sr.x+Sr.width/2,y:Sr.y+Sr.height/2},pr=FA(Sr.x+Sr.width/2,Sr.y+Sr.height/2,OA(rr).matrix);var xr=vf(er);if(xr)for(var kr=xr*Math.PI/180,Cr=Math.abs(kr)>1e-10?Math.sin(kr)/(1-Math.cos(kr)):2/kr,Br=0;Br<rr.numberOfItems;++Br){var Er=rr.getItem(Br);if(4===Er.type){var Nr=Er.matrix;hr.y=(Cr*Nr.e+Nr.f)/2,hr.x=(Nr.e-Cr*Nr.f)/2,rr.removeItem(Br);break}}var Lr,Tr,Pr=rr.numberOfItems,Fr=0,Ur=0,Ir=0;if(Pr&&(Lr=rr.getItem(0).matrix),Pr>=3&&3===rr.getItem(Pr-2).type&&2===rr.getItem(Pr-3).type&&2===rr.getItem(Pr-1).type){Ir=3;for(var Rr=rr.getItem(Pr-3).matrix,Mr=rr.getItem(Pr-2).matrix,Or=rr.getItem(Pr-1).matrix,Qr=er.childNodes,Dr=Qr.length;Dr--;){var jr=Qr.item(Dr);if(Fr=0,Ur=0,1===jr.nodeType){var Hr=mA(jr);if(!Hr)continue;var Gr=OA(Hr).matrix,Vr=vf(jr);if(Tr=nP.getStartTransform(),nP.setStartTransform(jr.getAttribute("transform")),Vr||RA(Hr)){var zr=tr.createSVGTransform();zr.setMatrix(IA(Rr,Mr,Or,Gr)),Hr.clear(),Hr.appendItem(zr)}else{var Kr=IA(Gr.inverse(),Or,Gr),qr=tr.createSVGMatrix();qr.e=-Kr.e,qr.f=-Kr.f;var Wr=IA(qr.inverse(),Gr.inverse(),Rr,Mr,Or,Gr,Kr.inverse()),Xr=tr.createSVGTransform(),Yr=tr.createSVGTransform(),Jr=tr.createSVGTransform();Xr.setTranslate(Kr.e,Kr.f),Yr.setScale(Wr.a,Wr.d),Jr.setTranslate(qr.e,qr.f),Hr.appendItem(Jr),Hr.appendItem(Yr),Hr.appendItem(Xr)}fr.addSubCommand(recalculateDimensions(jr)),nP.setStartTransform(Tr)}}rr.removeItem(Pr-1),rr.removeItem(Pr-2),rr.removeItem(Pr-3)}else if(Pr>=3&&1===rr.getItem(Pr-1).type){Ir=3;var $r=OA(rr).matrix,Zr=tr.createSVGTransform();Zr.setMatrix($r),rr.clear(),rr.appendItem(Zr)}else if((1===Pr||Pr>1&&3!==rr.getItem(1).type)&&2===rr.getItem(0).type){Ir=2;var Tn=OA(rr).matrix;rr.removeItem(0);var Un=OA(rr).matrix.inverse(),Qn=IA(Un,Tn);if(Fr=Qn.e,Ur=Qn.f,0!==Fr||0!==Ur){for(var Dn=er.childNodes,Hn=Dn.length,Gn=[];Hn--;){var Vn=Dn.item(Hn);if(1===Vn.nodeType){if(Vn.getAttribute("clip-path")){var zn=Vn.getAttribute("clip-path");Gn.includes(zn)||(pP(zn,Fr,Ur),Gn.push(zn))}Tr=nP.getStartTransform(),nP.setStartTransform(Vn.getAttribute("transform"));var Kn=mA(Vn);if(Kn){var Wn=tr.createSVGTransform();Wn.setTranslate(Fr,Ur),Kn.numberOfItems?Kn.insertItemBefore(Wn,0):Kn.appendItem(Wn),fr.addSubCommand(recalculateDimensions(Vn));for(var Xn=er.getElementsByTagNameNS(wd.SVG,"use"),Yn="#"+Vn.id,Jn=Xn.length;Jn--;){var $n=Xn.item(Jn);if(Yn===of($n)){var Zn=tr.createSVGTransform();Zn.setTranslate(-Fr,-Ur),mA($n).insertItemBefore(Zn,0),fr.addSubCommand(recalculateDimensions($n))}}nP.setStartTransform(Tr)}}}nP.setStartTransform(Tr)}}else{if(1!==Pr||1!==rr.getItem(0).type||xr){if(xr){var ei=tr.createSVGTransform();ei.setRotate(xr,pr.x,pr.y),rr.numberOfItems?rr.insertItemBefore(ei,0):rr.appendItem(ei)}return 0===rr.numberOfItems&&er.removeAttribute("transform"),null}Ir=1;for(var ti=rr.getItem(0).matrix,ri=er.childNodes,ni=ri.length;ni--;){var ii=ri.item(ni);if(1===ii.nodeType){Tr=nP.getStartTransform(),nP.setStartTransform(ii.getAttribute("transform"));var oi=mA(ii);if(!oi)continue;var ai=IA(ti,OA(oi).matrix),si=tr.createSVGTransform();si.setMatrix(ai),oi.clear(),oi.appendItem(si,0),fr.addSubCommand(recalculateDimensions(ii)),nP.setStartTransform(Tr);var li=ii.getAttribute("stroke-width");if("none"!==ii.getAttribute("stroke")&&!isNaN(li)){var ui=(Math.abs(ai.a)+Math.abs(ai.d))/2;ii.setAttribute("stroke-width",li*ui)}}}rr.clear()}if(2===Ir){if(xr){pr={x:hr.x+Lr.e,y:hr.y+Lr.f};var di=tr.createSVGTransform();di.setRotate(xr,pr.x,pr.y),rr.numberOfItems?rr.insertItemBefore(di,0):rr.appendItem(di)}}else if(3===Ir){var hi=OA(rr).matrix,pi=tr.createSVGTransform();pi.setRotate(xr,hr.x,hr.y);var Ai=pi.matrix,fi=tr.createSVGTransform();fi.setRotate(xr,pr.x,pr.y);var gi=fi.matrix.inverse(),mi=hi.inverse(),_i=IA(mi,gi,Ai,hi);if(Fr=_i.e,Ur=_i.f,0!==Fr||0!==Ur)for(var vi=er.childNodes,yi=vi.length;yi--;){var wi=vi.item(yi);if(1===wi.nodeType){Tr=nP.getStartTransform(),nP.setStartTransform(wi.getAttribute("transform"));var Si=mA(wi),xi=tr.createSVGTransform();xi.setTranslate(Fr,Ur),Si.numberOfItems?Si.insertItemBefore(xi,0):Si.appendItem(xi),fr.addSubCommand(recalculateDimensions(wi)),nP.setStartTransform(Tr)}}xr&&(rr.numberOfItems?rr.insertItemBefore(fi,0):rr.appendItem(fi))}}else{var ki,Ci=cf(er);if(!Ci&&"path"!==er.tagName)return null;var Bi=vf(er);if(Bi){hr={x:Ci.x+Ci.width/2,y:Ci.y+Ci.height/2},pr=FA(Ci.x+Ci.width/2,Ci.y+Ci.height/2,OA(rr).matrix);for(var Ei=Bi*Math.PI/180,Ni=Math.abs(Ei)>1e-10?Math.sin(Ei)/(1-Math.cos(Ei)):2/Ei,Li=0;Li<rr.numberOfItems;++Li){var Ti=rr.getItem(Li);if(4===Ti.type){var Pi=Ti.matrix;hr.y=(Ni*Pi.e+Pi.f)/2,hr.x=(Pi.e-Ni*Pi.f)/2,rr.removeItem(Li);break}}}var Fi=0,Ui=rr.numberOfItems;if(!Gd()){var Ii=er.getAttribute("fill");if(Ii&&Ii.startsWith("url(")){var Ri=yf(Ii),Mi="pattern";if(Ri.tagName!==Mi&&(Mi="gradient"),"userSpaceOnUse"===Ri.getAttribute(Mi+"Units")){ki=OA(rr).matrix;var Oi=mA(Ri),Qi=OA(Oi).matrix,Di="matrix("+[(ki=IA(ki,Qi)).a,ki.b,ki.c,ki.d,ki.e,ki.f].join(",")+")";Ri.setAttribute(Mi+"Transform",Di)}}}if(Ui>=3&&3===rr.getItem(Ui-2).type&&2===rr.getItem(Ui-3).type&&2===rr.getItem(Ui-1).type)Fi=3,ki=OA(rr,Ui-3,Ui-1).matrix,rr.removeItem(Ui-1),rr.removeItem(Ui-2),rr.removeItem(Ui-3);else if(4===Ui&&1===rr.getItem(Ui-1).type){Fi=3,ki=OA(rr).matrix;var ji=tr.createSVGTransform();ji.setMatrix(ki),rr.clear(),rr.appendItem(ji),ki=tr.createSVGMatrix()}else if((1===Ui||Ui>1&&3!==rr.getItem(1).type)&&2===rr.getItem(0).type){Fi=2;var Hi=rr.getItem(0).matrix,Gi=OA(rr,1).matrix,Vi=Gi.inverse();ki=IA(Vi,Hi,Gi),rr.removeItem(0)}else{if(1!==Ui||1!==rr.getItem(0).type||Bi){if(Bi){var zi=tr.createSVGTransform();zi.setRotate(Bi,pr.x,pr.y),rr.numberOfItems?rr.insertItemBefore(zi,0):rr.appendItem(zi)}return 0===rr.numberOfItems&&er.removeAttribute("transform"),null}switch(ki=OA(rr).matrix,er.tagName){case"line":gr=hP(er).attr(["x1","y1","x2","y2"]);case"polyline":case"polygon":if(gr.points=er.getAttribute("points"),gr.points){var Ki=er.points,qi=Ki.numberOfItems;gr.points=new Array(qi);for(var Wi=0;Wi<qi;++Wi){var Xi=Ki.getItem(Wi);gr.points[Wi]={x:Xi.x,y:Xi.y}}}case"path":gr.d=er.getAttribute("d"),Fi=1,rr.clear()}}if(1!==Fi&&2!==Fi&&3!==Fi||dP(er,gr,ki),2===Fi){if(Bi){RA(rr)||(pr={x:hr.x+ki.e,y:hr.y+ki.f});var Yi=tr.createSVGTransform();Yi.setRotate(Bi,pr.x,pr.y),rr.numberOfItems?rr.insertItemBefore(Yi,0):rr.appendItem(Yi)}if("text"===er.tagName)for(var Ji=er.childNodes,$i=Ji.length;$i--;){var Zi=Ji.item($i);if("tspan"===Zi.tagName){var eo={x:hP(Zi).attr("x")||0,y:hP(Zi).attr("y")||0};dP(Zi,eo,ki)}}}else if(3===Fi&&Bi){var to=OA(rr).matrix,ro=tr.createSVGTransform();ro.setRotate(Bi,hr.x,hr.y);var no=ro.matrix,io=tr.createSVGTransform();io.setRotate(Bi,pr.x,pr.y);var oo=io.matrix.inverse(),ao=to.inverse(),so=IA(ao,oo,no,to);dP(er,gr,so),Bi&&(rr.numberOfItems?rr.insertItemBefore(io,0):rr.appendItem(io))}}return 0===rr.numberOfItems&&er.removeAttribute("transform"),fr.addSubCommand(new HL(er,mr)),fr},fP=jQuery,gP=Wd()?10:4,mP=function(){function Selector(er,tr,rr){_classCallCheck(this,Selector),this.id=er,this.selectedElement=tr,this.locked=!0,this.selectorGroup=iP.createSVGElement({element:"g",attr:{id:"selectorGroup"+this.id}}),this.selectorRect=this.selectorGroup.appendChild(iP.createSVGElement({element:"path",attr:{id:"selectedBox"+this.id,fill:"none",stroke:"#22C","stroke-width":"1","stroke-dasharray":"5,5",style:"pointer-events:none"}})),this.gripCoords={nw:null,n:null,ne:null,e:null,se:null,s:null,sw:null,w:null},this.reset(this.selectedElement,rr)}return _createClass(Selector,[{key:"reset",value:function reset(er,tr){this.locked=!0,this.selectedElement=er,this.resize(tr),this.selectorGroup.setAttribute("display","inline")}},{key:"showGrips",value:function showGrips(er){var tr=er?"inline":"none";aP.selectorGripsGroup.setAttribute("display",tr);var rr=this.selectedElement;this.hasGrips=er,rr&&er&&(this.selectorGroup.append(aP.selectorGripsGroup),Selector.updateGripCursors(vf(rr)))}},{key:"resize",value:function resize(er){var tr=this.selectorRect,rr=aP,nr=rr.selectorGrips,ir=this.selectedElement,or=ir.getAttribute("stroke-width"),ar=iP.getCurrentZoom(),sr=1/ar;"none"===ir.getAttribute("stroke")||isNaN(or)||(sr+=or/2);var lr=ir.tagName;"text"===lr&&(sr+=2/ar);var cr=mA(ir),ur=OA(cr).matrix;if(ur.e*=ar,ur.f*=ar,er||(er=cf(ir)),"g"===lr&&!fP.data(ir,"gsvg")){var dr=ff([ir.childNodes]);dr&&(er=dr)}var hr=er.x,pr=er.y,Ar=er.width,fr=er.height;sr*=ar;var gr=MA(hr*ar,pr*ar,Ar*ar,fr*ar,ur),mr=gr.aabox,_r=mr.x-sr,vr=mr.y-sr,yr=mr.width+2*sr,br=mr.height+2*sr,wr=_r+yr/2,Sr=vr+br/2,xr=vf(ir);if(xr){var kr=iP.svgRoot().createSVGTransform();kr.setRotate(-xr,wr,Sr);var Cr=kr.matrix;gr.tl=FA(gr.tl.x,gr.tl.y,Cr),gr.tr=FA(gr.tr.x,gr.tr.y,Cr),gr.bl=FA(gr.bl.x,gr.bl.y,Cr),gr.br=FA(gr.br.x,gr.br.y,Cr);var Br=gr.tl,Er=Br.x,Nr=Br.y,Lr=Br.x,Tr=Br.y,Pr=Math.min,Fr=Math.max;_r=Er=Pr(Er,Pr(gr.tr.x,Pr(gr.bl.x,gr.br.x)))-sr,vr=Nr=Pr(Nr,Pr(gr.tr.y,Pr(gr.bl.y,gr.br.y)))-sr,yr=(Lr=Fr(Lr,Fr(gr.tr.x,Fr(gr.bl.x,gr.br.x)))+sr)-Er,br=(Tr=Fr(Tr,Fr(gr.tr.y,Fr(gr.bl.y,gr.br.y)))+sr)-Nr}var Ur="M"+_r+","+vr+" L"+(_r+yr)+","+vr+" "+(_r+yr)+","+(vr+br)+" "+_r+","+(vr+br)+"z";tr.setAttribute("d",Ur);var Ir=xr?"rotate("+[xr,wr,Sr].join(",")+")":"";this.selectorGroup.setAttribute("transform",Ir),this.gripCoords={nw:[_r,vr],ne:[_r+yr,vr],sw:[_r,vr+br],se:[_r+yr,vr+br],n:[_r+yr/2,vr],w:[_r,vr+br/2],e:[_r+yr,vr+br/2],s:[_r+yr/2,vr+br]},Object.entries(this.gripCoords).forEach((function(er){var tr=_slicedToArray(er,2),rr=tr[0],ir=tr[1];nr[rr].setAttribute("cx",ir[0]),nr[rr].setAttribute("cy",ir[1])})),rr.rotateGripConnector.setAttribute("x1",_r+yr/2),rr.rotateGripConnector.setAttribute("y1",vr),rr.rotateGripConnector.setAttribute("x2",_r+yr/2),rr.rotateGripConnector.setAttribute("y2",vr-5*gP),rr.rotateGrip.setAttribute("cx",_r+yr/2),rr.rotateGrip.setAttribute("cy",vr-5*gP)}}],[{key:"updateGripCursors",value:function updateGripCursors(er){var tr=Object.keys(aP.selectorGrips),rr=Math.round(er/45);for(rr<0&&(rr+=8);rr>0;)tr.push(tr.shift()),rr--;Object.values(aP.selectorGrips).forEach((function(er,rr){er.setAttribute("style","cursor:"+tr[rr]+"-resize")}))}}]),Selector}(),_P=function(){function SelectorManager(){_classCallCheck(this,SelectorManager),this.selectorParentGroup=null,this.rubberBandBox=null,this.selectors=[],this.selectorMap={},this.selectorGrips={nw:null,n:null,ne:null,e:null,se:null,s:null,sw:null,w:null},this.selectorGripsGroup=null,this.rotateGripConnector=null,this.rotateGrip=null,this.initGroup()}return _createClass(SelectorManager,[{key:"initGroup",value:function initGroup(){var er=this;if(this.selectorParentGroup&&this.selectorParentGroup.parentNode&&this.selectorParentGroup.remove(),this.selectorParentGroup=iP.createSVGElement({element:"g",attr:{id:"selectorParentGroup"}}),this.selectorGripsGroup=iP.createSVGElement({element:"g",attr:{display:"none"}}),this.selectorParentGroup.append(this.selectorGripsGroup),iP.svgRoot().append(this.selectorParentGroup),this.selectorMap={},this.selectors=[],this.rubberBandBox=null,Object.keys(this.selectorGrips).forEach((function(tr){var rr=iP.createSVGElement({element:"circle",attr:{id:"selectorGrip_resize_"+tr,fill:"#22C",r:gP,style:"cursor:"+tr+"-resize","stroke-width":2,"pointer-events":"all"}});fP.data(rr,"dir",tr),fP.data(rr,"type","resize"),er.selectorGrips[tr]=er.selectorGripsGroup.appendChild(rr)})),this.rotateGripConnector=this.selectorGripsGroup.appendChild(iP.createSVGElement({element:"line",attr:{id:"selectorGrip_rotateconnector",stroke:"#22C","stroke-width":"1"}})),this.rotateGrip=this.selectorGripsGroup.appendChild(iP.createSVGElement({element:"circle",attr:{id:"selectorGrip_rotate",fill:"lime",r:gP,stroke:"#22C","stroke-width":2,style:"cursor:url("+oP.imgPath+"rotate.png) 12 12, auto;"}})),fP.data(this.rotateGrip,"type","rotate"),!fP("#canvasBackground").length){var tr=_slicedToArray(oP.dimensions,2),rr=tr[0],nr=tr[1],ir=iP.createSVGElement({element:"svg",attr:{id:"canvasBackground",width:rr,height:nr,x:0,y:0,overflow:Gd()?"none":"visible",style:"pointer-events:none"}}),or=iP.createSVGElement({element:"rect",attr:{width:"100%",height:"100%",x:0,y:0,"stroke-width":1,stroke:"#000",fill:"#FFF",style:"pointer-events:none"}});ir.append(or),iP.svgRoot().insertBefore(ir,iP.svgContent())}}},{key:"requestSelector",value:function requestSelector(er,tr){if(Cf(er))return null;var rr=this.selectors.length;if("object"===_typeof(this.selectorMap[er.id]))return this.selectorMap[er.id].locked=!0,this.selectorMap[er.id];for(var nr=0;nr<rr;++nr)if(this.selectors[nr]&&!this.selectors[nr].locked)return this.selectors[nr].locked=!0,this.selectors[nr].reset(er,tr),this.selectorMap[er.id]=this.selectors[nr],this.selectors[nr];return this.selectors[rr]=new mP(rr,er,tr),this.selectorParentGroup.append(this.selectors[rr].selectorGroup),this.selectorMap[er.id]=this.selectors[rr],this.selectors[rr]}},{key:"releaseSelector",value:function releaseSelector(er){if(!Cf(er)){var tr=this.selectors.length,rr=this.selectorMap[er.id];rr.locked||console.log("WARNING! selector was released but was already unlocked");for(var nr=0;nr<tr;++nr)if(this.selectors[nr]&&this.selectors[nr]===rr){delete this.selectorMap[er.id],rr.locked=!1,rr.selectedElement=null,rr.showGrips(!1);try{rr.selectorGroup.setAttribute("display","none")}catch(er){}break}}}},{key:"getRubberBandBox",value:function getRubberBandBox(){return this.rubberBandBox||(this.rubberBandBox=this.selectorParentGroup.appendChild(iP.createSVGElement({element:"rect",attr:{id:"selectorRubberBand",fill:"#22C","fill-opacity":.15,stroke:"#22C","stroke-width":.5,display:"none",style:"pointer-events:none"}}))),this.rubberBandBox}}]),SelectorManager}(),vP=jQueryPluginSVG(jQuery),yP=QL,bP=DL,wP=jL,SP=HL,xP=GL,kP=VL,CP=ML;window.console||(window.console={},window.console.log=function(er){},window.console.dir=function(er){}),window.opera&&(window.console.log=function(er){window.opera.postError(er)},window.console.dir=function(er){});var BP=function SvgCanvas(er,tr){_classCallCheck(this,SvgCanvas);var rr={show_outside_canvas:!0,selectNew:!0,dimensions:[640,480]};tr&&vP.extend(rr,tr);var nr=rr.dimensions,ir=this,or=window.document,ar=or.importNode(tf('<svg id="svgroot" xmlns="'+wd.SVG+'" xlinkns="'+wd.XLINK+'" width="'+nr[0]+'" height="'+nr[1]+'" x="'+nr[0]+'" y="'+nr[1]+'" overflow="visible"><defs><filter id="canvashadow" filterUnits="objectBoundingBox"><feGaussianBlur in="SourceAlpha" stdDeviation="4" result="blur"/><feOffset in="blur" dx="5" dy="5" result="offsetBlur"/><feMerge><feMergeNode in="offsetBlur"/><feMergeNode in="SourceGraphic"/></feMerge></filter></defs></svg>').documentElement,!0);er.append(ar);var sr=or.createElementNS(wd.SVG,"svg");(ir.clearSvgContentElement=function(){vP(sr).empty(),vP(sr).attr({id:"svgcontent",width:nr[0],height:nr[1],x:nr[0],y:nr[1],overflow:rr.show_outside_canvas?"visible":"hidden",xmlns:wd.SVG,"xmlns:se":wd.SE,"xmlns:xlink":wd.XLINK}).appendTo(ar);var er=or.createComment(" Created with SVG-edit - https://github.com/SVG-Edit/svgedit");sr.append(er)})();var lr="svg_";ir.setIdPrefix=function(er){lr=er},ir.current_drawing_=new QT(sr,lr);var cr=ir.getCurrentDrawing=function(){return ir.current_drawing_},ur=1,dr=null,hr={shape:{fill:("none"===rr.initFill.color?"":"#")+rr.initFill.color,fill_paint:null,fill_opacity:rr.initFill.opacity,stroke:"#"+rr.initStroke.color,stroke_paint:null,stroke_opacity:rr.initStroke.opacity,stroke_width:rr.initStroke.width,stroke_dasharray:"none",stroke_linejoin:"miter",stroke_linecap:"butt",opacity:rr.initOpacity}};hr.text=vP.extend(!0,{},hr.shape),vP.extend(hr.text,{fill:"#000000",stroke_width:rr.text&&rr.text.stroke_width,font_size:rr.text&&rr.text.font_size,font_family:rr.text&&rr.text.font_family});var pr=hr.shape,Ar=[],fr=this.getJsonFromSvgElement=function(er){if(3===er.nodeType)return er.nodeValue;for(var tr,rr={element:er.tagName,attr:{},children:[]},nr=0;tr=er.attributes[nr];nr++)rr.attr[tr.name]=tr.value;for(var ir,or=0;ir=er.childNodes[or];or++)rr.children[or]=fr(ir);return rr},gr=this.addSVGElementFromJson=function(er){if("string"==typeof er)return or.createTextNode(er);var tr=bf(er.attr.id),rr=cr().getCurrentLayer();if(tr&&er.element!==tr.tagName&&(tr.remove(),tr=null),!tr){var nr=er.namespace||wd.SVG;tr=or.createElementNS(nr,er.element),rr&&(dr||rr).append(tr)}return er.curStyles&&wf(tr,{fill:pr.fill,stroke:pr.stroke,"stroke-width":pr.stroke_width,"stroke-dasharray":pr.stroke_dasharray,"stroke-linejoin":pr.stroke_linejoin,"stroke-linecap":pr.stroke_linecap,"stroke-opacity":pr.stroke_opacity,"fill-opacity":pr.fill_opacity,opacity:pr.opacity/2,style:"pointer-events:inherit"}),wf(tr,er.attr),Sf(tr),er.children&&er.children.forEach((function(er){tr.append(gr(er))})),tr};ir.getTransformList=mA,ir.matrixMultiply=IA,ir.hasMatrixTransform=RA,ir.transformListToTransform=OA;var mr=function getBaseUnit(){return rr.baseUnit};!function init(er){pA=er;var tr=document.createElementNS(wd.SVG,"svg");document.body.append(tr);var rr=document.createElementNS(wd.SVG,"rect");rr.setAttribute("width","1em"),rr.setAttribute("height","1ex"),rr.setAttribute("x","1in"),tr.append(rr);var nr=rr.getBBox();tr.remove();var ir=nr.x;wA={em:nr.width,ex:nr.height,in:ir,cm:ir/2.54,mm:ir/25.4,pt:ir/72,pc:ir/6,px:1,"%":0}}({getBaseUnit:mr,getElement:bf,getHeight:function getHeight(){return sr.getAttribute("height")/ur},getWidth:function getWidth(){return sr.getAttribute("width")/ur},getRoundDigits:function getRoundDigits(){return Gr.round_digits}}),ir.convertToNum=BA;var _r=function getSVGContent(){return sr},vr=this.getSelectedElems=function(){return Ar},yr=BT,br=function getSVGRoot(){return ar};!function init(er){zA=er,KA=er.getDOMDocument(),qA=er.getDOMContainer(),WA=er.getSVGRoot()}({pathActions:yr,getSVGContent:_r,addSVGElementFromJson:gr,getSelectedElements:vr,getDOMDocument:function getDOMDocument(){return or},getDOMContainer:function getDOMContainer(){return er},getSVGRoot:br,getBaseUnit:mr,getSnappingStep:function getSnappingStep(){return rr.snappingStep}}),ir.findDefs=sf,ir.getUrlFromAttr=nf,ir.getHref=of,ir.setHref=af,ir.getBBox=cf,ir.getRotationAngle=vf,ir.getElem=bf,ir.getRefElem=yf,ir.assignAttributes=wf,this.cleanupElement=Sf;var wr=function getGridSnapping(){return rr.gridSnapping};!function init(er){uP=er}({getDrawing:function getDrawing(){return cr()},getSVGRoot:br,getGridSnapping:wr}),this.remapElement=dP,function init(er){nP=er}({getSVGRoot:br,getStartTransform:function getStartTransform(){return Yr},setStartTransform:function setStartTransform(er){Yr=er}}),this.recalculateDimensions=AP;var Sr=Sd();ir.sanitizeSvg=sP;var xr=ir.undoMgr=new kP({handleHistoryEvent:function handleHistoryEvent(er,tr){var rr=CP;if(er===rr.BEFORE_UNAPPLY||er===rr.BEFORE_APPLY)ir.clearSelection();else if(er===rr.AFTER_APPLY||er===rr.AFTER_UNAPPLY){var nr=tr.elements();ir.pathActions.clear(),Tr("changed",nr);var or=tr.type(),ar=er===rr.AFTER_APPLY;if("MoveElementCommand"===or)(ar?tr.newParent:tr.oldParent)===sr&&jT();else if("InsertElementCommand"===or||"RemoveElementCommand"===or)tr.parent===sr&&jT(),"InsertElementCommand"===or?ar&&jr(tr.elem):ar||jr(tr.elem),tr.elem&&"use"===tr.elem.tagName&&vi(tr.elem);else if("ChangeElementCommand"===or){"title"===tr.elem.tagName&&tr.elem.parentNode.parentNode===sr&&jT();var lr=ar?tr.newValues:tr.oldValues;lr.stdDeviation&&ir.setBlurOffsets(tr.elem.parentNode,lr.stdDeviation)}}}}),kr=function addCommandToHistory(er){ir.undoMgr.addCommandToHistory(er)},Cr=this.getZoom=function(){return ur},Br=this.round=function(er){return Number.parseInt(er*ur)/ur};!function init(er,tr){oP=er,iP=tr,aP=new _P}(rr,{createSVGElement:function createSVGElement(er){return ir.addSVGElementFromJson(er)},svgRoot:function svgRoot(){return ar},svgContent:function svgContent(){return sr},getCurrentZoom:Cr});var Er=this.selectorManager=function getSelectorManager(){return aP}(),Nr=ir.getNextId=function(){return cr().getNextId()},Lr=ir.getId=function(){return cr().getId()},Tr=function call(er,tr){if(Kn[er])return Kn[er](window,tr)},Pr=this.clearSelection=function(er){Ar.forEach((function(er){Cf(er)||Er.releaseSelector(er)})),Ar=[],er||Tr("selected",Ar)},Fr=this.addToSelection=function(er,tr){if(er.length){for(var rr=0;rr<Ar.length&&!Cf(Ar[rr]);)++rr;for(var nr=er.length;nr--;){var ir=er[nr];if(ir){var or=cf(ir);if(or&&("a"===ir.tagName&&1===ir.childNodes.length&&(ir=ir.firstChild),!Ar.includes(ir))){Ar[rr]=ir,rr++;var ar=Er.requestSelector(ir,or);Ar.length>1&&ar.showGrips(!1)}}}if(Ar.length)for(Tr("selected",Ar),1===Ar.length&&Er.requestSelector(Ar[0]).showGrips(tr),Ar.sort((function(er,tr){return er&&tr&&er.compareDocumentPosition?3-(6&tr.compareDocumentPosition(er)):Cf(er)?1:0}));Cf(Ar[0]);)Ar.shift(0)}},Ur=function getOpacity(){return pr.opacity},Ir=this.getMouseTarget=function(tr){if(Cf(tr))return null;var rr=tr.target;if(rr.correspondingUseElement&&(rr=rr.correspondingUseElement),[wd.MATH,wd.HTML].includes(rr.namespaceURI)&&"svgcanvas"!==rr.id)for(;"foreignObject"!==rr.nodeName;)if(!(rr=rr.parentNode))return ar;var nr=cr().getCurrentLayer();if([ar,er,sr,nr].includes(rr))return ar;if(vP(rr).closest("#selectorParentGroup").length)return Er.selectorParentGroup;for(;rr.parentNode!==(dr||nr);)rr=rr.parentNode;return rr};ir.pathActions=yr,tT({selectorManager:Er,canvas:ir,call:Tr,resetD:function resetD(er){er.setAttribute("d",yr.convertPath(er))},round:Br,clearSelection:Pr,addToSelection:Fr,addCommandToHistory:kr,remapElement:dP,addSVGElementFromJson:gr,getGridSnapping:wr,getOpacity:Ur,getSelectedElements:vr,getContainer:function getContainer(){return er},setStarted:function setStarted(er){Xr=er},getRubberBox:function getRubberBox(){return Un},setRubberBox:function setRubberBox(er){return Un=er},addPtsToSelection:function addPtsToSelection(er){var tr=er.closedSubpath,rr=er.grips;yr.canDeleteNodes=!0,yr.closed_subpath=tr,Tr("pointsAdded",{closedSubpath:tr,grips:rr}),Tr("selected",rr)},endChanges:function endChanges(er){var tr=er.cmd,rr=er.elem;kr(tr),Tr("changed",[rr])},getCurrentZoom:Cr,getId:Lr,getNextId:Nr,getMouseTarget:Ir,getCurrentMode:function getCurrentMode(){return Jr},setCurrentMode:function setCurrentMode(er){return Jr=er},getDrawnPath:function getDrawnPath(){return fi},setDrawnPath:function setDrawnPath(er){return fi=er},getSVGRoot:br});var Rr={},Mr="a,circle,ellipse,foreignObject,g,image,line,path,polygon,polyline,rect,svg,text,tspan,use",Or=["clip-path","fill","filter","marker-end","marker-mid","marker-start","mask","stroke"],Qr=vP.data,Dr=document.createElementNS(wd.SVG,"animate");vP(Dr).attr({attributeName:"opacity",begin:"indefinite",dur:1,fill:"freeze"}).appendTo(ar);var jr=function restoreRefElems(er){var tr=vP(er).attr(Or);Object.values(tr).forEach((function(er){if(er&&er.startsWith("url(")){var tr=nf(er).substr(1);bf(tr)||(sf().append(qr[tr]),delete qr[tr])}}));var rr=er.getElementsByTagName("*");if(rr.length)for(var nr=0,ir=rr.length;nr<ir;nr++)restoreRefElems(rr[nr])},Hr={},Gr={round_digits:5},Vr={},zr=hr.text,Kr={},qr={},Wr=rr.imgPath+"logo.png",Xr=!1,Yr=null,Jr="select",$r="none",Zr=pr,Tn=null,Un=null,Qn=[],Dn=null;this.runExtension=function(er,tr,rr){return this.runExtensions(tr,rr,!1,(function(tr){return tr===er}))};var Hn=this.runExtensions=function(er,tr,rr,nr){var ir=!!rr&&[];return vP.each(Kr,(function(or,ar){nr&&!nr(or)||ar&&er in ar&&("function"==typeof tr&&(tr=tr(or)),rr?ir.push(ar[er](tr)):ir=ar[er](tr))})),ir};this.addExtension=function(){var er=_asyncToGenerator(regeneratorRuntime.mark((function _callee(er,tr,rr){var nr,or,lr,ur;return regeneratorRuntime.wrap((function _callee$(dr){for(;;)switch(dr.prev=dr.next){case 0:if(nr=rr.$,or=rr.importLocale,"function"==typeof tr){dr.next=3;break}throw new TypeError("Function argument expected for `svgcanvas.addExtension`");case 3:if(!(er in Kr)){dr.next=5;break}throw new Error('Cannot add extension "'+er+'", an extension by that name already exists.');case 5:return lr=vP.extend(ir.getPrivateMethods(),{$:nr,importLocale:or,svgroot:ar,svgcontent:sr,nonce:cr().getNonce(),selectorManager:Er}),dr.next=8,tr(lr);case 8:return(ur=dr.sent)&&(ur.name=er),Kr[er]=ur,dr.abrupt("return",Tr("extension_added",ur));case 12:case"end":return dr.stop()}}),_callee)})));return function(tr,rr,nr){return er.apply(this,arguments)}}();var Gn=this.getIntersectionList=function(er){if(Cf(Un))return null;var tr,rr=dr||cr().getCurrentLayer();if(er)(tr=sr.createSVGRect()).x=er.x,tr.y=er.y,tr.width=er.width,tr.height=er.height;else{tr=Un.getBBox();var nr=sr.createSVGRect();["x","y","width","height","top","right","bottom","left"].forEach((function(er){nr[er]=tr[er]/ur})),tr=nr}var ir=null;if(zd()||"function"==typeof ar.getIntersectionList&&(tr.x+=Number.parseInt(sr.getAttribute("x")),tr.y+=Number.parseInt(sr.getAttribute("y")),ir=ar.getIntersectionList(tr,rr)),Cf(ir)||"function"!=typeof ir.item){ir=[],Qn.length||(Qn=Vn(rr));for(var or=Qn.length;or--;)tr.width&&jA(tr,Qn[or].bbox)&&ir.push(Qn[or].elem)}return ir};this.getStrokedBBox=mf,this.getVisibleElements=gf;var Vn=this.getVisibleElementsAndBBoxes=function(er){er||(er=vP(sr).children());var tr=[];return vP(er).children().each((function(er,rr){rr.getBBox&&tr.push({elem:rr,bbox:mf([rr])})})),tr.reverse()},zn=this.groupSvgElem=function(er){var tr=document.createElementNS(wd.SVG,"g");er.replaceWith(tr),vP(tr).append(er).data("gsvg",er)[0].id=Nr()},Kn={};ir.call=Tr,ir.bind=function(er,tr){var rr=Kn[er];return Kn[er]=tr,rr},this.prepareSvg=function(er){this.sanitizeSvg(er.documentElement),_toConsumableArray(er.getElementsByTagNameNS(wd.SVG,"path")).forEach((function(er){er.setAttribute("d",yr.convertPath(er)),yr.fixEnd(er)}))};var Wn=function ffClone(er){if(!Vd())return er;var tr=er.cloneNode(!0);return er.before(tr),er.remove(),Er.releaseSelector(er),Ar[0]=tr,Er.requestSelector(tr).showGrips(!0),tr};this.setRotationAngle=function(er,tr){er=Number.parseFloat(er);var rr=Ar[0],nr=rr.getAttribute("transform"),ir=cf(rr),or=ir.x+ir.width/2,sr=ir.y+ir.height/2,lr=mA(rr);lr.numberOfItems>0&&(4===lr.getItem(0).type&&lr.removeItem(0));if(0!==er){var cr=FA(or,sr,OA(lr).matrix),ur=ar.createSVGTransform();ur.setRotate(er,cr.x,cr.y),lr.numberOfItems?lr.insertItemBefore(ur,0):lr.appendItem(ur)}else 0===lr.numberOfItems&&rr.removeAttribute("transform");if(!tr){var dr=rr.getAttribute("transform");rr.setAttribute("transform",nr),Ni("transform",dr,Ar),Tr("changed",Ar)}Er.requestSelector(Ar[0]).resize(),mP.updateGripCursors(er)};var Xn=this.recalculateAllSelectedDimensions=function(){for(var er=new xP("none"===$r?"position":"size"),tr=Ar.length;tr--;){var rr=Ar[tr],nr=AP(rr);nr&&er.addSubCommand(nr)}er.isEmpty()||(kr(er),Tr("changed",Ar))},Yn=function logMatrix(er){console.log([er.a,er.b,er.c,er.d,er.e,er.f])},Jn=null,$n=this.selectOnly=function(er,tr){Pr(!0),Fr(er,tr)};this.removeFromSelection=function(er){if(!Cf(Ar[0])&&er.length){for(var tr=[],rr=Ar.length,nr=0;nr<rr;++nr){var ir=Ar[nr];ir&&(er.includes(ir)?Er.releaseSelector(ir):tr.push(ir))}Ar=tr}},this.selectAllInCurrentLayer=function(){var er=cr().getCurrentLayer();er&&(Jr="select",$n(vP(dr||er).children()))};var Zn,ei,ti,ri,ni,ii,oi,ai,si,li,ui,di,hi,pi,Ai,fi=null;ei={minx:null,miny:null,maxx:null,maxy:null},ti=null,ri=null,ni=null,ii=null,oi={},ai=0,si={x:0,y:0},li={x:0,y:0},ui={x:0,y:0},di={x:0,y:0},hi={x:0,y:0},pi={x:0,y:0},Ai=function getBsplinePoint(er){var tr={x:0,y:0},rr=si,nr=li,ir=ui,or=di,ar=1/6,sr=er*er,lr=sr*er,cr=[[-1,3,-3,1],[3,-6,3,0],[-3,0,3,0],[1,4,1,0]];return tr.x=ar*((rr.x*cr[0][0]+nr.x*cr[0][1]+ir.x*cr[0][2]+or.x*cr[0][3])*lr+(rr.x*cr[1][0]+nr.x*cr[1][1]+ir.x*cr[1][2]+or.x*cr[1][3])*sr+(rr.x*cr[2][0]+nr.x*cr[2][1]+ir.x*cr[2][2]+or.x*cr[2][3])*er+(rr.x*cr[3][0]+nr.x*cr[3][1]+ir.x*cr[3][2]+or.x*cr[3][3])),tr.y=ar*((rr.y*cr[0][0]+nr.y*cr[0][1]+ir.y*cr[0][2]+or.y*cr[0][3])*lr+(rr.y*cr[1][0]+nr.y*cr[1][1]+ir.y*cr[1][2]+or.y*cr[1][3])*sr+(rr.y*cr[2][0]+nr.y*cr[2][1]+ir.y*cr[2][2]+or.y*cr[2][3])*er+(rr.y*cr[3][0]+nr.y*cr[3][1]+ir.y*cr[3][2]+or.y*cr[3][3])),{x:tr.x,y:tr.y}},vP(er).mousedown((function mouseDown(er){if(!ir.spaceKey&&1!==er.button){var tr=2===er.button;er.altKey&&ir.cloneSelectedElements(0,0),Jn=vP("#svgcontent g")[0].getScreenCTM().inverse();var nr=FA(er.pageX,er.pageY,Jn),or=nr.x*ur,sr=nr.y*ur;er.preventDefault(),tr&&(Jr="select",Dn=nr);var lr=or/ur,cr=sr/ur,dr=Ir(er);"a"===dr.tagName&&1===dr.childNodes.length&&(dr=dr.firstChild);var hr=lr;ni=ti=lr;var fr=cr;if(ii=ri=cr,rr.gridSnapping&&(lr=xf(lr),cr=xf(cr),ti=xf(ti),ri=xf(ri)),dr===Er.selectorParentGroup&&!Cf(Ar[0])){var mr=er.target,_r=Qr(mr,"type");"rotate"===_r?Jr="rotate":"resize"===_r&&(Jr="resize",$r=Qr(mr,"dir")),dr=Ar[0]}Yr=dr.getAttribute("transform");var vr=mA(dr);switch(Jr){case"select":if(Xr=!0,$r="none",tr&&(Xr=!1),dr!==ar){if(Ar.includes(dr)||(er.shiftKey||Pr(!0),Fr([dr]),Tn=dr,yr.clear()),!tr){var br,wr=_createForOfIteratorHelper(Ar);try{for(wr.s();!(br=wr.n()).done;){var Sr=br.value;if(!Cf(Sr)){var xr=mA(Sr);xr.numberOfItems?xr.insertItemBefore(ar.createSVGTransform(),0):xr.appendItem(ar.createSVGTransform())}}}catch(er){wr.e(er)}finally{wr.f()}}}else tr||(Pr(),Jr="multiselect",Cf(Un)&&(Un=Er.getRubberBandBox()),wf(Un,{x:ni*=ur,y:ii*=ur,width:0,height:0,display:"inline"}));break;case"zoom":Xr=!0,Cf(Un)&&(Un=Er.getRubberBandBox()),wf(Un,{x:hr*ur,y:hr*ur,width:0,height:0,display:"inline"});break;case"resize":Xr=!0,ti=lr,ri=cr,oi=cf(vP("#selectedBox0")[0]);var kr={};vP.each(oi,(function(er,tr){kr[er]=tr/ur})),oi=kr;var Cr=vf(dr)?1:0;if(RA(vr))vr.insertItemBefore(ar.createSVGTransform(),Cr),vr.insertItemBefore(ar.createSVGTransform(),Cr),vr.insertItemBefore(ar.createSVGTransform(),Cr);else if(vr.appendItem(ar.createSVGTransform()),vr.appendItem(ar.createSVGTransform()),vr.appendItem(ar.createSVGTransform()),Yd()){var Br,Lr=Gd();Lr&&(Br=function delayedStroke(er){var tr=er.getAttribute("stroke");er.removeAttribute("stroke"),null!==tr&&setTimeout((function(){er.setAttribute("stroke",tr)}),0)}),dr.style.vectorEffect="non-scaling-stroke",Lr&&Br(dr);for(var Tr=dr.getElementsByTagName("*"),Ur=Tr.length,Rr=0;Rr<Ur;Rr++)Tr[Rr].style&&(Tr[Rr].style.vectorEffect="non-scaling-stroke",Lr&&Br(Tr[Rr]))}break;case"fhellipse":case"fhrect":case"fhpath":ui.x=hr,ui.y=fr,li={x:0,y:0},si={x:0,y:0},Xr=!0,gr({element:"polyline",curStyles:!0,attr:{points:hr+","+fr+" ",id:Nr(),fill:"none",opacity:pr.opacity/2,"stroke-linecap":"round",style:"pointer-events:none"}}),ei.minx=hr,ei.maxx=hr,ei.miny=fr,ei.maxy=fr;break;case"image":Xr=!0;var Mr=gr({element:"image",attr:{x:lr,y:cr,width:0,height:0,id:Nr(),opacity:pr.opacity/2,style:"pointer-events:inherit"}});af(Mr,Wr),kf(Mr);break;case"square":case"rect":Xr=!0,ti=lr,ri=cr,gr({element:"rect",curStyles:!0,attr:{x:lr,y:cr,width:0,height:0,id:Nr(),opacity:pr.opacity/2}});break;case"line":Xr=!0;var Or=0===Number(pr.stroke_width)?1:pr.stroke_width;gr({element:"line",curStyles:!0,attr:{x1:lr,y1:cr,x2:lr,y2:cr,id:Nr(),stroke:pr.stroke,"stroke-width":Or,"stroke-dasharray":pr.stroke_dasharray,"stroke-linejoin":pr.stroke_linejoin,"stroke-linecap":pr.stroke_linecap,"stroke-opacity":pr.stroke_opacity,fill:"none",opacity:pr.opacity/2,style:"pointer-events:none"}});break;case"circle":Xr=!0,gr({element:"circle",curStyles:!0,attr:{cx:lr,cy:cr,r:0,id:Nr(),opacity:pr.opacity/2}});break;case"ellipse":Xr=!0,gr({element:"ellipse",curStyles:!0,attr:{cx:lr,cy:cr,rx:0,ry:0,id:Nr(),opacity:pr.opacity/2}});break;case"text":Xr=!0,gr({element:"text",curStyles:!0,attr:{x:lr,y:cr,id:Nr(),fill:zr.fill,"stroke-width":zr.stroke_width,"font-size":zr.font_size,"font-family":zr.font_family,"text-anchor":"middle","xml:space":"preserve",opacity:pr.opacity}});break;case"path":case"pathedit":ti*=ur,ri*=ur,yr.mouseDown(er,dr,ti,ri),Xr=!0;break;case"textedit":ti*=ur,ri*=ur,gi.mouseDown(er,dr,ti,ri),Xr=!0;break;case"rotate":Xr=!0,ir.undoMgr.beginUndoableChange("transform",Ar)}var Dr=Hn("mouseDown",{event:er,start_x:ti,start_y:ri,selectedElements:Ar},!0);vP.each(Dr,(function(er,tr){tr&&tr.started&&(Xr=!0)}))}})).mousemove((function mouseMove(er){if(Xr&&1!==er.button&&!ir.spaceKey){var tr,nr,or,lr,cr,dr,hr,pr,fr,gr,mr=Ar[0],_r=FA(er.pageX,er.pageY,Jn),vr=_r.x*ur,br=_r.y*ur,wr=bf(Lr()),Sr=vr/ur,xr=Sr,kr=br/ur,Cr=kr;switch(rr.gridSnapping&&(xr=xf(xr),Cr=xf(Cr)),er.preventDefault(),Jr){case"select":if(null!==Ar[0]&&(cr=xr-ti,dr=Cr-ri,rr.gridSnapping&&(cr=xf(cr),dr=xf(dr)),0!==cr||0!==dr)){for(hr=Ar.length,tr=0;tr<hr&&(mr=Ar[tr],!Cf(mr));++tr){var Br=ar.createSVGTransform();gr=mA(mr),Br.setTranslate(cr,dr),gr.numberOfItems?gr.replaceItem(Br,0):gr.appendItem(Br),Er.requestSelector(mr).resize()}Tr("transition",Ar)}break;case"multiselect":Sr*=ur,kr*=ur,wf(Un,{x:Math.min(ni,Sr),y:Math.min(ii,kr),width:Math.abs(Sr-ni),height:Math.abs(kr-ii)});var Nr=Ar.slice(),Pr=[],Fr=Gn();for(hr=Fr.length,tr=0;tr<hr;++tr){var Ur=Fr[tr];Ar.includes(Ur)||Pr.push(Ur);var Ir=Nr.indexOf(Ur);-1!==Ir&&Nr.splice(Ir,1)}Nr.length>0&&ir.removeFromSelection(Nr),Pr.length>0&&ir.addToSelection(Pr);break;case"resize":gr=mA(mr);var Rr=RA(gr),Mr=(fr=Rr?oi:cf(mr)).x,Or=fr.y,Qr=fr,Dr=Qr.width,jr=Qr.height;if(cr=xr-ti,dr=Cr-ri,rr.gridSnapping&&(cr=xf(cr),dr=xf(dr),jr=xf(jr),Dr=xf(Dr)),pr=vf(mr)){var Hr=Math.sqrt(cr*cr+dr*dr),Gr=Math.atan2(dr,cr)-pr*Math.PI/180;cr=Hr*Math.cos(Gr),dr=Hr*Math.sin(Gr)}$r.includes("n")||$r.includes("s")||(dr=0),$r.includes("e")||$r.includes("w")||(cr=0);var Vr=0,zr=0,Kr=jr?(jr+dr)/jr:1,qr=Dr?(Dr+cr)/Dr:1;$r.includes("n")&&(Kr=jr?(jr-dr)/jr:1,zr=jr),$r.includes("w")&&(qr=Dr?(Dr-cr)/Dr:1,Vr=Dr);var Wr=ar.createSVGTransform(),Yr=ar.createSVGTransform(),Zr=ar.createSVGTransform();if(rr.gridSnapping&&(Mr=xf(Mr),Vr=xf(Vr),Or=xf(Or),zr=xf(zr)),Wr.setTranslate(-(Mr+Vr),-(Or+zr)),er.shiftKey&&(1===qr?qr=Kr:Kr=qr),Yr.setScale(qr,Kr),Zr.setTranslate(Mr+Vr,Or+zr),Rr){var Tn=pr?1:0;gr.replaceItem(Wr,2+Tn),gr.replaceItem(Yr,1+Tn),gr.replaceItem(Zr,Number(Tn))}else{var Qn=gr.numberOfItems;gr.replaceItem(Zr,Qn-3),gr.replaceItem(Yr,Qn-2),gr.replaceItem(Wr,Qn-1)}Er.requestSelector(mr).resize(),Tr("transition",Ar);break;case"zoom":Sr*=ur,kr*=ur,wf(Un,{x:Math.min(ni*ur,Sr),y:Math.min(ii*ur,kr),width:Math.abs(Sr-ni*ur),height:Math.abs(kr-ii*ur)});break;case"text":wf(wr,{x:xr,y:Cr});break;case"line":rr.gridSnapping&&(xr=xf(xr),Cr=xf(Cr));var Dn=xr,Vn=Cr;er.shiftKey&&(Dn=(nr=DA(ti,ri,Dn,Vn)).x,Vn=nr.y),wr.setAttribute("x2",Dn),wr.setAttribute("y2",Vn);break;case"foreignObject":case"square":case"rect":case"image":var zn,Kn,Wn="square"===Jr||er.shiftKey,Xn=Math.abs(xr-ti),Yn=Math.abs(Cr-ri);Wn?(Xn=Yn=Math.max(Xn,Yn),zn=ti<xr?ti:ti-Xn,Kn=ri<Cr?ri:ri-Yn):(zn=Math.min(ti,xr),Kn=Math.min(ri,Cr)),rr.gridSnapping&&(Xn=xf(Xn),Yn=xf(Yn),zn=xf(zn),Kn=xf(Kn)),wf(wr,{width:Xn,height:Yn,x:zn,y:Kn});break;case"circle":var $n=vP(wr).attr(["cx","cy"]);or=$n.cx,lr=$n.cy;var fi=Math.sqrt((xr-or)*(xr-or)+(Cr-lr)*(Cr-lr));rr.gridSnapping&&(fi=xf(fi)),wr.setAttribute("r",fi);break;case"ellipse":var mi=vP(wr).attr(["cx","cy"]);or=mi.cx,lr=mi.cy,rr.gridSnapping&&(xr=xf(xr),or=xf(or),Cr=xf(Cr),lr=xf(lr)),wr.setAttribute("rx",Math.abs(xr-or));var _i=Math.abs(er.shiftKey?xr-or:Cr-lr);wr.setAttribute("ry",_i);break;case"fhellipse":case"fhrect":ei.minx=Math.min(Sr,ei.minx),ei.maxx=Math.max(Sr,ei.maxx),ei.miny=Math.min(kr,ei.miny),ei.maxy=Math.max(kr,ei.maxy);case"fhpath":if(di.x=Sr,di.y=kr,si.x&&si.y)for(tr=0;tr<9;tr++)if(Zn=tr/10,hi=Ai((tr+1)/10),pi=hi,hi=Ai(Zn),(ai+=Math.sqrt((pi.x-hi.x)*(pi.x-hi.x)+(pi.y-hi.y)*(pi.y-hi.y)))>.8){ai-=.8;var vi=sr.createSVGPoint();vi.x=hi.x,vi.y=hi.y,wr.points.appendItem(vi)}si={x:li.x,y:li.y},li={x:ui.x,y:ui.y},ui={x:di.x,y:di.y};break;case"path":case"pathedit":if(xr*=ur,Cr*=ur,rr.gridSnapping&&(xr=xf(xr),Cr=xf(Cr),ti=xf(ti),ri=xf(ri)),er.shiftKey){var yi,wi,Si=ZL;Si?(yi=Si.dragging?Si.dragging[0]:ti,wi=Si.dragging?Si.dragging[1]:ri):(yi=ti,wi=ri);var xi=nr=DA(yi,wi,xr,Cr);xr=xi.x,Cr=xi.y}Un&&"none"!==Un.getAttribute("display")&&(Sr*=ur,kr*=ur,wf(Un,{x:Math.min(ni*ur,Sr),y:Math.min(ii*ur,kr),width:Math.abs(Sr-ni*ur),height:Math.abs(kr-ii*ur)})),yr.mouseMove(xr,Cr);break;case"textedit":xr*=ur,Cr*=ur,gi.mouseMove(vr,br);break;case"rotate":or=(fr=cf(mr)).x+fr.width/2,lr=fr.y+fr.height/2;var ki=QA(mr),Ci=FA(or,lr,ki);or=Ci.x,lr=Ci.y,pr=(Math.atan2(lr-Cr,or-xr)*(180/Math.PI)-90)%360,rr.gridSnapping&&(pr=xf(pr)),er.shiftKey&&(pr=45*Math.round(pr/45)),ir.setRotationAngle(pr<-180?360+pr:pr,!0),Tr("transition",Ar)}Hn("mouseMove",{event:er,mouse_x:vr,mouse_y:br,selected:mr})}})).click((function handleLinkInCanvas(er){return er.preventDefault(),!1})).dblclick((function dblClick(er){var tr=er.target.parentNode,rr=Ir(er),nr=rr.tagName;if("text"===nr&&"textedit"!==Jr){var ir=FA(er.pageX,er.pageY,Jn);gi.select(rr,ir.x,ir.y)}tr!==dr&&("g"!==nr&&"a"!==nr||!vf(rr)||(Ti(rr),rr=Ar[0],Pr(!0)),dr&&$T(),"g"!==tr.tagName&&"a"!==tr.tagName||tr===cr().getCurrentLayer()||rr===Er.selectorParentGroup||ZT(rr))})).mouseup((function mouseUp(er){if(2!==er.button){var tr=Tn;if(Tn=null,Xr){var nr,or,ar=FA(er.pageX,er.pageY,Jn),sr=ar.x*ur,lr=ar.y*ur,dr=sr/ur,hr=lr/ur,fr=bf(Lr()),mr=!1,_r=dr,vr=hr;switch(Xr=!1,Jr){case"resize":case"multiselect":Cf(Un)||(Un.setAttribute("display","none"),Qn=[]),Jr="select";case"select":if(!Cf(Ar[0])){if(Cf(Ar[1])){var br=Ar[0];switch(br.tagName){case"g":case"use":case"image":case"foreignObject":break;default:Zr.fill=br.getAttribute("fill"),Zr.fill_opacity=br.getAttribute("fill-opacity"),Zr.stroke=br.getAttribute("stroke"),Zr.stroke_opacity=br.getAttribute("stroke-opacity"),Zr.stroke_width=br.getAttribute("stroke-width"),Zr.stroke_dasharray=br.getAttribute("stroke-dasharray"),Zr.stroke_linejoin=br.getAttribute("stroke-linejoin"),Zr.stroke_linecap=br.getAttribute("stroke-linecap")}"text"===br.tagName&&(zr.font_size=br.getAttribute("font-size"),zr.font_family=br.getAttribute("font-family")),Er.requestSelector(br).showGrips(!0)}if(Xn(),_r!==ni||vr!==ii)for(var wr=Ar.length,Sr=0;Sr<wr&&!Cf(Ar[Sr]);++Sr)Ar[Sr].firstChild||Er.requestSelector(Ar[Sr]).resize();else or=er.target,"path"===Ar[0].nodeName&&Cf(Ar[1])?yr.select(Ar[0]):er.shiftKey&&tr!==or&&ir.removeFromSelection([or]);if(Yd()){var xr=Ar[0];xr&&(xr.removeAttribute("style"),rf(xr,(function(er){er.removeAttribute("style")})))}}return;case"zoom":Cf(Un)||Un.setAttribute("display","none");var Cr=er.shiftKey?.5:2;return void Tr("zoomed",{x:Math.min(ni,_r),y:Math.min(ii,vr),width:Math.abs(_r-ni),height:Math.abs(vr-ii),factor:Cr});case"fhpath":ai=0,si={x:0,y:0},li={x:0,y:0},ui={x:0,y:0},di={x:0,y:0};var Br=fr.getAttribute("points"),Nr=Br.indexOf(",");(mr=Nr>=0?Br.includes(",",Nr+1):Br.includes(" ",Br.indexOf(" ")+1))&&(fr=yr.smoothPolylineIntoPath(fr));break;case"line":nr=vP(fr).attr(["x1","x2","y1","y2"]),mr=nr.x1!==nr.x2||nr.y1!==nr.y2;break;case"foreignObject":case"square":case"rect":case"image":nr=vP(fr).attr(["width","height"]),mr=nr.width||nr.height||"image"===Jr;break;case"circle":mr="0"!==fr.getAttribute("r");break;case"ellipse":nr=vP(fr).attr(["rx","ry"]),mr=nr.rx||nr.ry;break;case"fhellipse":ei.maxx-ei.minx>0&&ei.maxy-ei.miny>0&&(fr=gr({element:"ellipse",curStyles:!0,attr:{cx:(ei.minx+ei.maxx)/2,cy:(ei.miny+ei.maxy)/2,rx:(ei.maxx-ei.minx)/2,ry:(ei.maxy-ei.miny)/2,id:Lr()}}),Tr("changed",[fr]),mr=!0);break;case"fhrect":ei.maxx-ei.minx>0&&ei.maxy-ei.miny>0&&(fr=gr({element:"rect",curStyles:!0,attr:{x:ei.minx,y:ei.miny,width:ei.maxx-ei.minx,height:ei.maxy-ei.miny,id:Lr()}}),Tr("changed",[fr]),mr=!0);break;case"text":mr=!0,$n([fr]),gi.start(fr);break;case"path":fr=null,Xr=!0;var Pr=yr.mouseUp(er,fr,sr,lr);fr=Pr.element,mr=Pr.keep;break;case"pathedit":mr=!0,fr=null,yr.mouseUp(er);break;case"textedit":mr=!1,fr=null,gi.mouseUp(er,sr,lr);break;case"rotate":mr=!0,fr=null,Jr="select";var Fr=ir.undoMgr.finishUndoableChange();Fr.isEmpty()||kr(Fr),Xn(),Tr("changed",Ar)}var Ur=Hn("mouseUp",{event:er,mouse_x:sr,mouse_y:lr},!0);if(vP.each(Ur,(function(er,tr){tr&&(mr=tr.keep||mr,fr=tr.element,Xr=tr.started||Xr)})),mr||Cf(fr)){if(!Cf(fr)){ir.addedNew=!0;var Ir,Rr=.2;if(Dr.beginElement&&Number.parseFloat(fr.getAttribute("opacity"))!==pr.opacity){Ir=vP(Dr).clone().attr({to:pr.opacity,dur:Rr}).appendTo(fr);try{Ir[0].beginElement()}catch(er){}}else Rr=0;setTimeout((function(){Ir&&Ir.remove(),fr.setAttribute("opacity",pr.opacity),fr.setAttribute("style","pointer-events:inherit"),Sf(fr),"path"===Jr?yr.toEditMode(fr):rr.selectNew&&$n([fr],!0),kr(new bP(fr)),Tr("changed",[fr])}),1e3*Rr)}}else{for(cr().releaseId(Lr()),fr.remove(),fr=null,or=er.target;or&&or.parentNode&&or.parentNode.parentNode&&"g"===or.parentNode.parentNode.tagName;)or=or.parentNode;"path"===Jr&&fi||!or||!or.parentNode||"selectorParentGroup"===or.parentNode.id||"svgcanvas"===or.id||"svgroot"===or.id||(ir.setMode("select"),$n([or],!0))}Yr=null}}})),vP(er).bind("mousewheel DOMMouseScroll",(function(er){if(er.shiftKey){er.preventDefault();var tr=er.originalEvent;Jn=vP("#svgcontent g")[0].getScreenCTM().inverse();var nr=vP("#workarea"),or=rr.showRulers?16:0,ar=FA(tr.pageX,tr.pageY,Jn),sr=nr.width(),lr=nr.height(),cr=sr-15-or,dr=lr-15-or,hr=cr*Jn.a,pr=dr*Jn.d,Ar=nr.offset(),fr=Ar.left+or,gr=Ar.top+or,mr=tr.wheelDelta?tr.wheelDelta:tr.detail?-tr.detail:0;if(mr){var _r,vr,yr=Math.max(3/4,Math.min(4/3,mr));yr>1?(_r=Math.ceil(cr/hr*yr*100)/100,vr=Math.ceil(dr/pr*yr*100)/100):(_r=Math.floor(cr/hr*yr*100)/100,vr=Math.floor(dr/pr*yr*100)/100);var br=Math.min(_r,vr);if((br=Math.min(10,Math.max(.01,br)))!==ur){yr=br/ur;var wr=FA(fr,gr,Jn),Sr={x:(ar.x-(ar.x-wr.x)/yr)*br-or+sr/2,y:(ar.y-(ar.y-wr.y)/yr)*br-or+lr/2};ir.setZoom(br),vP("#zoom").val((100*br).toFixed(1)),Tr("updateCanvas",{center:!1,newCtr:Sr}),Tr("zoomDone")}}}}));var gi=ir.textActions=function(){var er,tr,rr,nr,or,sr,lr,cr,dr,hr,pr=[];function setCursor(er){var ir=""===tr.value;if(vP(tr).focus(),!arguments.length)if(ir)er=0;else{if(tr.selectionEnd!==tr.selectionStart)return;er=tr.selectionEnd}var ar=pr[er];ir||tr.setSelectionRange(er,er),(rr=bf("text_cursor"))||(rr=document.createElementNS(wd.SVG,"line"),wf(rr,{id:"text_cursor",stroke:"#333","stroke-width":1}),rr=bf("selectorParentGroup").appendChild(rr)),or||(or=setInterval((function(){var er="none"===rr.getAttribute("display");rr.setAttribute("display",er?"inline":"none")}),600));var lr=ptToScreen(ar.x,sr.y),cr=ptToScreen(ar.x,sr.y+sr.height);wf(rr,{x1:lr.x,y1:lr.y,x2:cr.x,y2:cr.y,visibility:"visible",display:"inline"}),nr&&nr.setAttribute("d","")}function setSelection(er,ir,or){if(er!==ir){or||tr.setSelectionRange(er,ir),(nr=bf("text_selectblock"))||(nr=document.createElementNS(wd.SVG,"path"),wf(nr,{id:"text_selectblock",fill:"green",opacity:.5,style:"pointer-events:none"}),bf("selectorParentGroup").append(nr));var ar=pr[er],lr=pr[ir];rr.setAttribute("visibility","hidden");var cr=ptToScreen(ar.x,sr.y),ur=ptToScreen(ar.x+(lr.x-ar.x),sr.y),dr=ptToScreen(ar.x,sr.y+sr.height),hr=ptToScreen(ar.x+(lr.x-ar.x),sr.y+sr.height),Ar="M"+cr.x+","+cr.y+" L"+ur.x+","+ur.y+" "+hr.x+","+hr.y+" "+dr.x+","+dr.y+"z";wf(nr,{d:Ar,display:"inline"})}else setCursor(ir)}function getIndexFromPoint(tr,rr){var nr=ar.createSVGPoint();if(nr.x=tr,nr.y=rr,1===pr.length)return 0;var ir=er.getCharNumAtPosition(nr);ir<0?(ir=pr.length-2,tr<=pr[0].x&&(ir=0)):ir>=pr.length-2&&(ir=pr.length-2);var or=pr[ir];return tr>or.x+or.width/2&&ir++,ir}function setCursorFromPoint(er,tr){setCursor(getIndexFromPoint(er,tr))}function setEndSelectionFromPoint(er,rr,nr){var ir=tr.selectionStart,or=getIndexFromPoint(er,rr);setSelection(Math.min(ir,or),Math.max(ir,or),!nr)}function screenToPt(er,tr){var rr={x:er,y:tr};if(rr.x/=ur,rr.y/=ur,lr){var nr=FA(rr.x,rr.y,lr.inverse());rr.x=nr.x,rr.y=nr.y}return rr}function ptToScreen(er,tr){var rr={x:er,y:tr};if(lr){var nr=FA(rr.x,rr.y,lr);rr.x=nr.x,rr.y=nr.y}return rr.x*=ur,rr.y*=ur,rr}function selectAll(tr){setSelection(0,er.textContent.length),vP(this).unbind(tr)}function selectWord(tr){if(hr&&er){var rr=FA(tr.pageX,tr.pageY,Jn),nr=screenToPt(rr.x*ur,rr.y*ur),ir=getIndexFromPoint(nr.x,nr.y),or=er.textContent,ar=or.substr(0,ir).replace(/[a-z\d]+$/i,"").length,sr=or.substr(ir).match(/^[a-z\d]+/i);setSelection(ar,(sr?sr[0].length:0)+ir),vP(tr.target).click(selectAll),setTimeout((function(){vP(tr.target).unbind("click",selectAll)}),300)}}return{select:function select(tr,rr,nr){er=tr,gi.toEditMode(rr,nr)},start:function start(tr){er=tr,gi.toEditMode()},mouseDown:function mouseDown(er,rr,nr,ir){var or=screenToPt(nr,ir);tr.focus(),setCursorFromPoint(or.x,or.y),cr=nr,dr=ir},mouseMove:function mouseMove(er,tr){var rr=screenToPt(er,tr);setEndSelectionFromPoint(rr.x,rr.y)},mouseUp:function mouseUp(tr,rr,nr){var ir=screenToPt(rr,nr);setEndSelectionFromPoint(ir.x,ir.y,!0),tr.target!==er&&rr<cr+2&&rr>cr-2&&nr<dr+2&&nr>dr-2&&gi.toSelectMode(!0)},setCursor:setCursor,toEditMode:function toEditMode(tr,rr){if(hr=!1,Jr="textedit",Er.requestSelector(er).showGrips(!1),Er.requestSelector(er),gi.init(),vP(er).css("cursor","text"),arguments.length){var nr=screenToPt(tr,rr);setCursorFromPoint(nr.x,nr.y)}else setCursor();setTimeout((function(){hr=!0}),300)},toSelectMode:function toSelectMode(ar){Jr="select",clearInterval(or),or=null,nr&&vP(nr).attr("display","none"),rr&&vP(rr).attr("visibility","hidden"),vP(er).css("cursor","move"),ar&&(Pr(),vP(er).css("cursor","move"),Tr("selected",[er]),Fr([er],!0)),er&&!er.textContent.length&&ir.deleteSelectedElements(),vP(tr).blur(),er=!1},setInputElem:function setInputElem(er){tr=er},clear:function clear(){"textedit"===Jr&&gi.toSelectMode()},init:function init(rr){if(er){var nr,or;er.parentNode||(er=Ar[0],Er.requestSelector(er).showGrips(!1));var ar=er.textContent.length,cr=er.getAttribute("transform");for(sr=cf(er),lr=cr?QA(er):null,(pr=[]).length=ar,tr.focus(),vP(er).unbind("dblclick",selectWord).dblclick(selectWord),ar||(or={x:sr.x+sr.width/2,width:0}),nr=0;nr<ar;nr++){var dr=er.getStartPositionOfChar(nr);if(or=er.getEndPositionOfChar(nr),!Xd()){var hr=ir.contentW*ur;dr.x-=hr,or.x-=hr,dr.x/=ur,or.x/=ur}pr[nr]={x:dr.x,y:sr.y,width:or.x-dr.x,height:sr.height}}pr.push({x:or.x,width:0}),setSelection(tr.selectionStart,tr.selectionEnd,!0)}}}}(),mi=this.removeUnusedDefElems=function(){var er=sr.getElementsByTagNameNS(wd.SVG,"defs");if(!er||!er.length)return 0;var tr,rr,nr=[],ir=0,or=["fill","stroke","filter","marker-start","marker-mid","marker-end"],ar=or.length,lr=sr.getElementsByTagNameNS(wd.SVG,"*"),cr=lr.length;for(tr=0;tr<cr;tr++){var ur=lr[tr];for(rr=0;rr<ar;rr++){var dr=nf(ur.getAttribute(or[rr]));dr&&nr.push(dr.substr(1))}var hr=of(ur);hr&&hr.startsWith("#")&&nr.push(hr.substr(1))}var pr=vP(er).find("linearGradient, radialGradient, filter, marker, svg, symbol");for(tr=pr.length;tr--;){var Ar=pr[tr],fr=Ar.id;nr.includes(fr)||(qr[fr]=Ar,Ar.remove(),ir++)}return ir};function getIssues(){Pr();var er=[],tr=[],rr={feGaussianBlur:Rr.exportNoBlur,foreignObject:Rr.exportNoforeignObject,"[stroke-dasharray]":Rr.exportNoDashArray},nr=vP(sr);return"font"in vP("<canvas>")[0].getContext("2d")||(rr.text=Rr.exportNoText),vP.each(rr,(function(rr,ir){nr.find(rr).length&&(tr.push(rr),er.push(ir))})),{issues:er,issueCodes:tr}}this.svgCanvasToString=function(){for(;mi()>0;);yr.clear(!0),vP.each(sr.childNodes,(function(er,tr){er&&8===tr.nodeType&&tr.data.includes("Created with")&&sr.firstChild.before(tr)})),dr&&($T(),$n([dr]));var er=[];vP(sr).find("g:data(gsvg)").each((function(){for(var tr=this.attributes,rr=tr.length,nr=0;nr<rr;nr++)"id"!==tr[nr].nodeName&&"style"!==tr[nr].nodeName||rr--;if(rr<=0){var ir=this.firstChild;er.push(ir),vP(this).replaceWith(ir)}}));var tr=this.svgToString(sr,0);return er.length&&vP(er).each((function(){zn(this)})),tr},this.svgToString=function(er,tr){var nr=[],ir=rr.baseUnit,or=new RegExp("^-?[\\d\\.]+"+ir+"$");if(er){Sf(er);var ar=_toConsumableArray(er.attributes),sr=er.childNodes;ar.sort((function(er,tr){return er.name>tr.name?-1:1}));for(var lr=0;lr<tr;lr++)nr.push(" ");if(nr.push("<"),nr.push(er.nodeName),"svgcontent"===er.id){var cr=xi();"px"!==ir&&(cr.w=kA(cr.w,ir)+ir,cr.h=kA(cr.h,ir)+ir),nr.push(' width="'+cr.w+'" height="'+cr.h+'" xmlns="'+wd.SVG+'"');var ur={};vP(er).find("*").andSelf().each((function(){var er=this.namespaceURI;er&&!ur[er]&&Sr[er]&&"xmlns"!==Sr[er]&&"xml"!==Sr[er]&&(ur[er]=!0,nr.push(" xmlns:"+Sr[er]+'="'+er+'"')),vP.each(this.attributes,(function(er,tr){var rr=tr.namespaceURI;rr&&!ur[rr]&&"xmlns"!==Sr[rr]&&"xml"!==Sr[rr]&&(ur[rr]=!0,nr.push(" xmlns:"+Sr[rr]+'="'+rr+'"'))}))}));for(var dr=ar.length,hr=["width","height","xmlns","x","y","viewBox","id","overflow"];dr--;){var pr=ar[dr],Ar=YA(pr.value);pr.nodeName.startsWith("xmlns:")||(""===Ar||hr.includes(pr.localName)||pr.namespaceURI&&!Sr[pr.namespaceURI]||(nr.push(" "),nr.push(pr.nodeName),nr.push('="'),nr.push(Ar),nr.push('"')))}}else{if("defs"===er.nodeName&&!er.firstChild)return"";for(var fr=["-moz-math-font-style","_moz-math-font-style"],gr=ar.length-1;gr>=0;gr--){var mr=ar[gr],_r=YA(mr.value);if(!fr.includes(mr.localName)){if("null"===_r){var vr=mr.localName.replace(/-[a-z]/g,(function(er){return er[1].toUpperCase()}));if(Object.prototype.hasOwnProperty.call(er.style,vr))continue}if(""!==_r){if(_r.startsWith("pointer-events"))continue;if("class"===mr.localName&&_r.startsWith("se_"))continue;if(nr.push(" "),"d"===mr.localName&&(_r=yr.convertPath(er,!0)),isNaN(_r)?or.test(_r)&&(_r=xA(_r)+ir):_r=xA(_r),Gr.apply&&"image"===er.nodeName&&"href"===mr.localName&&Gr.images&&"embed"===Gr.images){var br=Hr[_r];br&&(_r=br)}mr.namespaceURI&&mr.namespaceURI!==wd.SVG&&!Sr[mr.namespaceURI]||(nr.push(mr.nodeName),nr.push('="'),nr.push(_r),nr.push('"'))}}}}if(er.hasChildNodes()){nr.push(">"),tr++;for(var wr=!1,xr=0;xr<sr.length;xr++){var kr=sr.item(xr);switch(kr.nodeType){case 1:nr.push("\n"),nr.push(this.svgToString(kr,tr));break;case 3:var Cr=kr.nodeValue.replace(/^\s+|\s+$/g,"");""!==Cr&&(wr=!0,nr.push(String(YA(Cr))));break;case 4:nr.push("\n"),nr.push(new Array(tr+1).join(" ")),nr.push("<![CDATA["),nr.push(kr.nodeValue),nr.push("]]>");break;case 8:nr.push("\n"),nr.push(new Array(tr+1).join(" ")),nr.push("\x3c!--"),nr.push(kr.data),nr.push("--\x3e")}}if(tr--,!wr){nr.push("\n");for(var Br=0;Br<tr;Br++)nr.push(" ")}nr.push("</"),nr.push(er.nodeName),nr.push(">")}else nr.push("/>")}return nr.join("")},this.embedImage=function(er){return new Promise((function(tr,rr){vP(new Image).load((function(nr,ir,or){if("error"!==ir){var ar=document.createElement("canvas");ar.width=this.width,ar.height=this.height,ar.getContext("2d").drawImage(this,0,0);try{var sr=";svgedit_url="+encodeURIComponent(er);sr=ar.toDataURL().replace(";base64",sr+";base64"),Hr[er]=sr}catch(tr){Hr[er]=!1}Wr=er,tr(Hr[er])}else rr(new Error("Error loading image: "+or.status+" "+or.statusText))})).attr("src",er)}))},this.setGoodImage=function(er){Wr=er},this.open=function(){},this.save=function(er){Pr(),er&&vP.extend(Gr,er),Gr.apply=!0;var tr=this.svgCanvasToString();Tr("saved",tr)},this.rasterExport=function(){var er=_asyncToGenerator(regeneratorRuntime.mark((function _callee2(er,tr,rr){var nr,or,ar,sr,lr,cr,ur,dr,hr=arguments;return regeneratorRuntime.wrap((function _callee2$(pr){for(;;)switch(pr.prev=pr.next){case 0:return nr=hr.length>3&&void 0!==hr[3]?hr[3]:{},ar="image/"+(or="ICO"===er?"BMP":er||"PNG").toLowerCase(),sr=getIssues(),lr=sr.issues,cr=sr.issueCodes,ur=this.svgCanvasToString(),vP("#export_canvas").length||vP("<canvas>",{id:"export_canvas"}).hide().appendTo("body"),(dr=vP("#export_canvas")[0]).width=ir.contentW,dr.height=ir.contentH,pr.next=11,NL(dr,ur);case 11:return pr.abrupt("return",new Promise((function(ir,sr){var hr,pr=or.toLowerCase(),Ar=tr?dr.toDataURL("image/"+pr,tr):dr.toDataURL("image/"+pr);function done(){var or={datauri:Ar,bloburl:hr,svg:ur,issues:lr,issueCodes:cr,type:er,mimeType:ar,quality:tr,exportWindowName:rr};nr.avoidEvent||Tr("exported",or),ir(or)}dr.toBlob?dr.toBlob((function(er){hr=ZA(er),done()}),ar,tr):(hr=$A(Ar),done())})));case 12:case"end":return pr.stop()}}),_callee2,this)})));return function(tr,rr,nr){return er.apply(this,arguments)}}(),this.exportPDF=function(){var er=_asyncToGenerator(regeneratorRuntime.mark((function _callee3(er){var tr,rr,nr,ir,or,ar,lr,cr,ur,dr=arguments;return regeneratorRuntime.wrap((function _callee3$(hr){for(;;)switch(hr.prev=hr.next){case 0:return tr=dr.length>1&&void 0!==dr[1]?dr[1]:Kd()?"save":void 0,rr=xi(),nr=rr.w>rr.h?"landscape":"portrait",ir=g({orientation:nr,unit:"pt",format:[rr.w,rr.h]}),or=ki(),ir.setProperties({title:or}),ar=getIssues(),lr=ar.issues,cr=ar.issueCodes,hr.next=10,ir.svg(sr,{x:0,y:0,width:rr.w,height:rr.h});case 10:return(ur={issues:lr,issueCodes:cr,exportWindowName:er,outputType:tr=tr||"dataurlstring"}).output=ir.output(tr,"save"===tr?er||"svg.pdf":void 0),Tr("exportedPDF",ur),hr.abrupt("return",ur);case 15:case"end":return hr.stop()}}),_callee3)})));return function(tr){return er.apply(this,arguments)}}(),this.getSvgString=function(){return Gr.apply=!1,this.svgCanvasToString()},this.randomizeIds=function(er){DT(!(arguments.length>0&&!1===er),cr())};var _i=this.uniquifyElems=function(er){var tr={},rr=["filter","linearGradient","pattern","radialGradient","symbol","textPath","use"];for(var nr in rf(er,(function(er){if(1===er.nodeType){er.id&&(er.id in tr||(tr[er.id]={elem:null,attrs:[],hrefs:[]}),tr[er.id].elem=er),vP.each(Or,(function(rr,nr){var ir=er.getAttributeNode(nr);if(ir){var or=nf(ir.value),ar=or?or.substr(1):null;ar&&(ar in tr||(tr[ar]={elem:null,attrs:[],hrefs:[]}),tr[ar].attrs.push(ir))}}));var nr=of(er);if(nr&&rr.includes(er.nodeName)){var ir=nr.substr(1);ir&&(ir in tr||(tr[ir]={elem:null,attrs:[],hrefs:[]}),tr[ir].hrefs.push(er))}}})),tr)if(nr){var ir=tr[nr].elem;if(ir){var or=Nr();ir.id=or;for(var ar=tr[nr].attrs,sr=ar.length;sr--;){var lr=ar[sr];lr.ownerElement.setAttribute(lr.name,"url(#"+or+")")}for(var cr=tr[nr].hrefs,ur=cr.length;ur--;){var dr=cr[ur];af(dr,"#"+or)}}}},vi=this.setUseData=function(er){var tr=vP(er);"use"!==er.tagName&&(tr=tr.find("use")),tr.each((function(){var er=of(this).substr(1),tr=bf(er);tr&&(vP(this).data("ref",tr),"symbol"!==tr.tagName&&"svg"!==tr.tagName||vP(this).data("symbol",tr).data("ref",tr))}))},yi=this.convertGradients=function(er){var tr=vP(er).find("linearGradient, radialGradient");!tr.length&&Gd()&&(tr=vP(er).find("*").filter((function(){return this.tagName.includes("Gradient")}))),tr.each((function(){var er=this;if("userSpaceOnUse"===vP(er).attr("gradientUnits")){var tr=vP(sr).find('[fill="url(#'+er.id+')"],[stroke="url(#'+er.id+')"]');if(!tr.length)return;var rr=cf(tr[0]);if(!rr)return;if("linearGradient"===er.tagName){var nr=vP(er).attr(["x1","y1","x2","y2"]),ir=er.gradientTransform.baseVal;if(ir&&ir.numberOfItems>0){var or=OA(ir).matrix,ar=FA(nr.x1,nr.y1,or),lr=FA(nr.x2,nr.y2,or);nr.x1=ar.x,nr.y1=ar.y,nr.x2=lr.x,nr.y2=lr.y,er.removeAttribute("gradientTransform")}vP(er).attr({x1:(nr.x1-rr.x)/rr.width,y1:(nr.y1-rr.y)/rr.height,x2:(nr.x2-rr.x)/rr.width,y2:(nr.y2-rr.y)/rr.height}),er.removeAttribute("gradientUnits")}}}))},wi=this.convertToGroup=function(er){er||(er=Ar[0]);var tr,rr=vP(er),nr=new xP;if(rr.data("gsvg")){var ir=er.firstChild,lr=vP(ir).attr(["x","y"]);vP(er.firstChild.firstChild).unwrap(),vP(er).removeData("gsvg");var cr=mA(er),ur=ar.createSVGTransform();ur.setTranslate(lr.x,lr.y),cr.appendItem(ur),AP(er),Tr("selected",[er])}else if(rr.data("symbol")){er=rr.data("symbol"),tr=rr.attr("transform");var dr=rr.attr(["x","y"]),hr=er.getAttribute("viewBox");if(hr){var pr=hr.split(" ");dr.x-=Number(pr[0]),dr.y-=Number(pr[1])}tr+=" translate("+(dr.x||0)+","+(dr.y||0)+")";var fr=rr.prev();nr.addSubCommand(new wP(rr[0],rr[0].nextSibling,rr[0].parentNode)),rr.remove();var gr,mr=vP(sr).find("use:data(symbol)").length,_r=or.createElementNS(wd.SVG,"g"),vr=er.childNodes;for(gr=0;gr<vr.length;gr++)_r.append(vr[gr].cloneNode(!0));if(Vd()){var yr=vP(sf()).children("linearGradient,radialGradient,pattern").clone();vP(_r).append(yr)}tr&&_r.setAttribute("transform",tr);var br=er.parentNode;if(_i(_r),Vd()&&vP(sf()).append(vP(_r).find("linearGradient,radialGradient,pattern")),_r.id=Nr(),fr.after(_r),br){if(!mr){var wr=er.nextSibling;er.remove(),nr.addSubCommand(new wP(er,wr,br))}nr.addSubCommand(new bP(_r))}vi(_r),Vd()?yi(sf()):yi(_r),function walkTreePost(er,tr){if(er&&1===er.nodeType){for(var rr=er.childNodes.length;rr--;)rf(er.childNodes.item(rr),tr);tr(er)}}(_r,(function(er){try{AP(er)}catch(er){console.log(er)}})),vP(_r).find(Mr).each((function(){this.id||(this.id=Nr())})),$n([_r]);var Sr=Ti(_r,!0);Sr&&nr.addSubCommand(Sr),kr(nr)}else console.log("Unexpected element to ungroup:",er)};this.setSvgString=function(er,tr){try{var nr=tf(er);if(nr.firstElementChild&&nr.firstElementChild.namespaceURI!==wd.SVG)return!1;this.prepareSvg(nr);var dr=new xP("Change Source"),hr=sr.nextSibling;sr.remove();var pr=sr;dr.addSubCommand(new wP(pr,hr,ar)),sr=or.adoptNode?or.adoptNode(nr.documentElement):or.importNode(nr.documentElement,!0),ar.append(sr);var Ar=vP(sr);ir.current_drawing_=new QT(sr,lr);var fr=cr().getNonce();fr?Tr("setnonce",fr):Tr("unsetnonce"),Ar.find("image").each((function(){var er=this;kf(er);var tr=of(this);if(tr){if(tr.startsWith("data:")){var rr=tr.match(/svgedit_url=(.*?);/);if(rr){var nr=decodeURIComponent(rr[1]);vP(new Image).load((function(){er.setAttributeNS(wd.XLINK,"xlink:href",nr)})).attr("src",nr)}}ir.embedImage(tr)}})),Ar.find("svg").each((function(){if(!vP(this).closest("defs").length){_i(this);var er=this.parentNode;1===er.childNodes.length&&"g"===er.nodeName?(vP(er).data("gsvg",this),er.id=er.id||Nr()):zn(this)}})),Vd()&&Ar.find("linearGradient, radialGradient, pattern").appendTo(sf()),vi(Ar),yi(Ar[0]);var gr={id:"svgcontent",overflow:rr.show_outside_canvas?"visible":"hidden"},mr=!1;if(Ar.attr("viewBox")){var _r=Ar.attr("viewBox").split(" ");gr.width=_r[2],gr.height=_r[3]}else vP.each(["width","height"],(function(er,tr){var rr=Ar.attr(tr)||"100%";"%"===String(rr).substr(-1)?mr=!0:gr[tr]=BA(tr,rr)}));if(jT(),Ar.children().find(Mr).each((function(){this.id||(this.id=Nr())})),mr){var vr=mf();gr.width=vr.width+vr.x,gr.height=vr.height+vr.y}gr.width<=0&&(gr.width=100),gr.height<=0&&(gr.height=100),Ar.attr(gr),this.contentW=gr.width,this.contentH=gr.height,dr.addSubCommand(new bP(sr));var yr=Ar.attr(["width","height"]);dr.addSubCommand(new SP(ar,yr)),ur=1,function resetListMap(){AA={}}(),Pr(),function clearData(){$L={}}(),ar.append(Er.selectorParentGroup),tr||kr(dr),Tr("changed",[sr])}catch(er){return console.log(er),!1}return!0},this.importSvgString=function(er){var tr,rr,nr;try{var ir=encode64(er.length+er).substr(0,32),ar=!1;Vr[ir]&&vP(Vr[ir].symbol).parents("#svgroot").length&&(ar=!0);var lr,ur=new xP("Import Image");if(ar)lr=Vr[ir].symbol,rr=Vr[ir].xform;else{var hr=tf(er);this.prepareSvg(hr);var pr=or.adoptNode?or.adoptNode(hr.documentElement):or.importNode(hr.documentElement,!0);_i(pr);var Ar=BA("width",pr.getAttribute("width")),fr=BA("height",pr.getAttribute("height")),gr=pr.getAttribute("viewBox"),mr=gr?gr.split(" "):[0,0,Ar,fr];for(tr=0;tr<4;++tr)mr[tr]=Number(mr[tr]);var _r=Number(sr.getAttribute("height"));rr="translate(0) "+(rr=fr>Ar?"scale("+_r/3/mr[3]+")":"scale("+_r/3/mr[2]+")")+" translate(0)",lr=or.createElementNS(wd.SVG,"symbol");var vr=sf();for(Vd()&&vP(pr).find("linearGradient, radialGradient, pattern").appendTo(vr);pr.firstChild;){var yr=pr.firstChild;lr.append(yr)}var br,wr=_createForOfIteratorHelper(pr.attributes);try{for(wr.s();!(br=wr.n()).done;){var Sr=br.value;lr.setAttribute(Sr.nodeName,Sr.value)}}catch(er){wr.e(er)}finally{wr.f()}lr.id=Nr(),Vr[ir]={symbol:lr,xform:rr},sf().append(lr),ur.addSubCommand(new bP(lr))}(nr=or.createElementNS(wd.SVG,"use")).id=Nr(),af(nr,"#"+lr.id),(dr||cr().getCurrentLayer()).append(nr),ur.addSubCommand(new bP(nr)),Pr(),nr.setAttribute("transform",rr),AP(nr),vP(nr).data("symbol",lr).data("ref",lr),Fr([nr]),kr(ur),Tr("changed",[sr])}catch(er){return console.log(er),null}return nr};var Si={identifyLayers:jT,createLayer:HT,cloneLayer:GT,deleteCurrentLayer:VT,setCurrentLayer:zT,renameCurrentLayer:KT,setCurrentLayerPosition:qT,setLayerVisibility:WT,moveSelectedToLayer:XT,mergeLayer:YT,mergeAllLayers:JT,leaveContext:$T,setContext:ZT};Object.entries(Si).forEach((function(er){var tr=_slicedToArray(er,2),rr=tr[0],nr=tr[1];ir[rr]=nr})),function init(er){OT=er}({pathActions:yr,getCurrentGroup:function getCurrentGroup(){return dr},setCurrentGroup:function setCurrentGroup(er){dr=er},getSelectedElements:vr,getSVGContent:_r,undoMgr:xr,elData:Qr,getCurrentDrawing:cr,clearSelection:Pr,call:Tr,addCommandToHistory:kr,changeSVGContent:function changeSVGContent(){Tr("changed",[sr])}}),this.clear=function(){yr.clear(),Pr(),ir.clearSvgContentElement(),ir.current_drawing_=new QT(sr),ir.createLayer("Layer 1"),ir.undoMgr.resetUndoStack(),Er.initGroup(),Un=Er.getRubberBandBox(),Tr("cleared")},this.linkControlPoints=yr.linkControlPoints,this.getContentElem=function(){return sr},this.getRootElem=function(){return ar};var xi=this.getResolution=function(){return{w:sr.getAttribute("width")/ur,h:sr.getAttribute("height")/ur,zoom:ur}};this.getSnapToGrid=function(){return rr.gridSnapping},this.getVersion=function(){return"svgcanvas.js ($Rev$)"},this.setUiStrings=function(er){Object.assign(Rr,er.notification),vP=jQueryPluginDBox(vP,er.common),XL(er)},this.setConfig=function(er){Object.assign(rr,er)},this.getTitle=function(er){if(er=er||Ar[0]){var tr,rr=_createForOfIteratorHelper((er=vP(er).data("gsvg")||vP(er).data("symbol")||er).childNodes);try{for(rr.s();!(tr=rr.n()).done;){var nr=tr.value;if("title"===nr.nodeName)return nr.textContent}}catch(er){rr.e(er)}finally{rr.f()}return""}},this.setGroupTitle=function(er){var tr=Ar[0];tr=vP(tr).data("gsvg")||tr;var rr,nr=vP(tr).children("title"),ir=new xP("Set Label");if(er.length)nr.length?(rr=nr[0],ir.addSubCommand(new SP(rr,{"#text":rr.textContent})),rr.textContent=er):((rr=or.createElementNS(wd.SVG,"title")).textContent=er,vP(tr).prepend(rr),ir.addSubCommand(new bP(rr)));else{var ar=nr.nextSibling;ir.addSubCommand(new wP(nr[0],ar,tr)),nr.remove()}kr(ir)};var ki=this.getDocumentTitle=function(){return ir.getTitle(sr)};this.setDocumentTitle=function(er){var tr,rr=sr.childNodes,nr=!1,ir="",ar=new xP("Change Image Title"),lr=_createForOfIteratorHelper(rr);try{for(lr.s();!(tr=lr.n()).done;){var cr=tr.value;if("title"===cr.nodeName){ir=(nr=cr).textContent;break}}}catch(er){lr.e(er)}finally{lr.f()}nr||(nr=or.createElementNS(wd.SVG,"title"),sr.insertBefore(nr,sr.firstChild)),er.length?nr.textContent=er:nr.remove(),ar.addSubCommand(new SP(nr,{"#text":ir})),kr(ar)},this.getEditorNS=function(er){return er&&sr.setAttribute("xmlns:se",wd.SE),wd.SE},this.setResolution=function(er,tr){var rr,nr=xi(),or=nr.w,ar=nr.h;if("fit"===er){var lr=mf();if(!lr)return!1;rr=new xP("Fit Canvas to Content");var cr=gf();Fr(cr);var dr=[],hr=[];vP.each(cr,(function(er,tr){dr.push(-1*lr.x),hr.push(-1*lr.y)}));var pr=ir.moveSelectedElements(dr,hr,!0);rr.addSubCommand(pr),Pr(),er=Math.round(lr.width),tr=Math.round(lr.height)}return er===or&&tr===ar||(rr||(rr=new xP("Change Image Dimensions")),er=BA("width",er),tr=BA("height",tr),sr.setAttribute("width",er),sr.setAttribute("height",tr),this.contentW=er,this.contentH=tr,rr.addSubCommand(new SP(sr,{width:or,height:ar})),sr.setAttribute("viewBox",[0,0,er/ur,tr/ur].join(" ")),rr.addSubCommand(new SP(sr,{viewBox:["0 0",or,ar].join(" ")})),kr(rr),Tr("changed",[sr])),!0},this.getOffset=function(){return vP(sr).attr(["x","y"])},this.setBBoxZoom=function(er,tr,rr){var nr,or=.85,ar=function calcZoom(er){if(!er)return!1;var nr=Math.round(tr/er.width*100*or)/100,ar=Math.round(rr/er.height*100*or)/100,sr=Math.min(nr,ar);return ir.setZoom(sr),{zoom:sr,bbox:er}};if("object"===_typeof(er)){if(0===(nr=er).width||0===nr.height){var sr=nr.zoom?nr.zoom:ur*nr.factor;return ir.setZoom(sr),{zoom:ur,bbox:nr}}return ar(nr)}switch(er){case"selection":if(!Ar[0])return;var lr=vP.map(Ar,(function(er){if(er)return er}));nr=mf(lr);break;case"canvas":var dr=xi();or=.95,nr={width:dr.w,height:dr.h,x:0,y:0};break;case"content":nr=mf();break;case"layer":nr=mf(gf(cr().getCurrentLayer()));break;default:return}return ar(nr)},this.setZoom=function(er){var tr=xi();sr.setAttribute("viewBox","0 0 "+tr.w/er+" "+tr.h/er),ur=er,vP.each(Ar,(function(er,tr){tr&&Er.requestSelector(tr).resize()})),yr.zoomChange(),Hn("zoomChanged",er)},this.getMode=function(){return Jr},this.setMode=function(er){yr.clear(!0),gi.clear(),Zr=Ar[0]&&"text"===Ar[0].nodeName?zr:pr,Jr=er},this.getColor=function(er){return Zr[er]},this.setColor=function(er,tr,rr){pr[er]=tr,Zr[er+"_paint"]={type:"solidColor"};var nr=[];function addNonG(er){"g"!==er.nodeName&&nr.push(er)}for(var ir=Ar.length;ir--;){var or=Ar[ir];or&&("g"===or.tagName?rf(or,addNonG):"fill"===er?"polyline"!==or.tagName&&"line"!==or.tagName&&nr.push(or):nr.push(or))}nr.length>0&&(rr?Ei(er,tr,nr):(Ni(er,tr,nr),Tr("changed",nr)))};var Ci=this.setGradient=function(er){if(Zr[er+"_paint"]&&"solidColor"!==Zr[er+"_paint"].type){var tr=ir[er+"Grad"],rr=Bi(tr),nr=sf();rr?tr=rr:(tr=nr.appendChild(or.importNode(tr,!0))).id=Nr(),ir.setColor(er,"url(#"+tr.id+")")}},Bi=function findDuplicateGradient(er){for(var tr=sf(),rr=vP(tr).find("linearGradient, radialGradient"),nr=rr.length,ir=["r","cx","cy","fx","fy"];nr--;){var or=rr[nr];if("linearGradient"===er.tagName){if(er.getAttribute("x1")!==or.getAttribute("x1")||er.getAttribute("y1")!==or.getAttribute("y1")||er.getAttribute("x2")!==or.getAttribute("x2")||er.getAttribute("y2")!==or.getAttribute("y2"))continue}else if("continue"===function(){var tr=vP(er).attr(ir),rr=vP(or).attr(ir),nr=!1;if(vP.each(ir,(function(er,ir){tr[ir]!==rr[ir]&&(nr=!0)})),nr)return"continue"}())continue;var ar=er.getElementsByTagNameNS(wd.SVG,"stop"),sr=or.getElementsByTagNameNS(wd.SVG,"stop");if(ar.length===sr.length){for(var lr=ar.length;lr--;){var cr=ar[lr],ur=sr[lr];if(cr.getAttribute("offset")!==ur.getAttribute("offset")||cr.getAttribute("stop-opacity")!==ur.getAttribute("stop-opacity")||cr.getAttribute("stop-color")!==ur.getAttribute("stop-color"))break}if(-1===lr)return or}}return null};this.setPaint=function(er,tr){var rr=new vP.jGraduate.Paint(tr);switch(this.setPaintOpacity(er,rr.alpha/100,!0),Zr[er+"_paint"]=rr,rr.type){case"solidColor":this.setColor(er,"none"!==rr.solidColor?"#"+rr.solidColor:"none");break;case"linearGradient":case"radialGradient":ir[er+"Grad"]=rr[rr.type],Ci(er)}},this.setStrokePaint=function(er){this.setPaint("stroke",er)},this.setFillPaint=function(er){this.setPaint("fill",er)},this.getStrokeWidth=function(){return Zr.stroke_width},this.setStrokeWidth=function(er){if(0===er&&["line","path"].includes(Jr))ir.setStrokeWidth(1);else{Zr.stroke_width=er;for(var tr=[],rr=Ar.length;rr--;){var nr=Ar[rr];nr&&("g"===nr.tagName?rf(nr,addNonG):tr.push(nr))}tr.length>0&&(Ni("stroke-width",er,tr),Tr("changed",Ar))}function addNonG(er){"g"!==er.nodeName&&tr.push(er)}},this.setStrokeAttr=function(er,tr){pr[er.replace("-","_")]=tr;for(var rr=[],nr=Ar.length;nr--;){var ir=Ar[nr];ir&&("g"===ir.tagName?rf(ir,(function(er){"g"!==er.nodeName&&rr.push(er)})):rr.push(ir))}rr.length>0&&(Ni(er,tr,rr),Tr("changed",Ar))},this.getStyle=function(){return pr},this.getOpacity=Ur,this.setOpacity=function(er){pr.opacity=er,Ni("opacity",er)},this.getFillOpacity=function(){return pr.fill_opacity},this.getStrokeOpacity=function(){return pr.stroke_opacity},this.setPaintOpacity=function(er,tr,rr){pr[er+"_opacity"]=tr,rr?Ei(er+"-opacity",tr):Ni(er+"-opacity",tr)},this.getPaintOpacity=function(er){return"fill"===er?this.getFillOpacity():this.getStrokeOpacity()},this.getBlur=function(er){var tr=0;if(er&&er.getAttribute("filter")){var rr=bf(er.id+"_blur");rr&&(tr=rr.firstChild.getAttribute("stdDeviation"))}return tr},function(){var er=null,tr=null,rr=!1;function finishChange(){var rr=ir.undoMgr.finishUndoableChange();er.addSubCommand(rr),kr(er),er=null,tr=null}ir.setBlurNoUndo=function(er){if(tr)if(0===er)Ei("filter",""),rr=!0;else{var nr=Ar[0];rr&&Ei("filter","url(#"+nr.id+"_blur)"),Gd()&&(nr.removeAttribute("filter"),nr.setAttribute("filter","url(#"+nr.id+"_blur)")),Ei("stdDeviation",er,[tr.firstChild]),ir.setBlurOffsets(tr,er)}else ir.setBlur(er)},ir.setBlurOffsets=function(er,tr){tr>3?wf(er,{x:"-50%",y:"-50%",width:"200%",height:"200%"}):Gd()||(er.removeAttribute("x"),er.removeAttribute("y"),er.removeAttribute("width"),er.removeAttribute("height"))},ir.setBlur=function(rr,nr){if(er)finishChange();else{var or=Ar[0],ar=or.id;tr=bf(ar+"_blur"),rr-=0;var sr=new xP;if(tr)0===rr&&(tr=null);else{var lr=gr({element:"feGaussianBlur",attr:{in:"SourceGraphic",stdDeviation:rr}});(tr=gr({element:"filter",attr:{id:ar+"_blur"}})).append(lr),sf().append(tr),sr.addSubCommand(new bP(tr))}var cr={filter:or.getAttribute("filter")};if(0===rr)return or.removeAttribute("filter"),void sr.addSubCommand(new SP(or,cr));Ni("filter","url(#"+ar+"_blur)"),sr.addSubCommand(new SP(or,cr)),ir.setBlurOffsets(tr,rr),er=sr,ir.undoMgr.beginUndoableChange("stdDeviation",[tr?tr.firstChild:null]),nr&&(ir.setBlurNoUndo(rr),finishChange())}}}(),this.getBold=function(){var er=Ar[0];return!(Cf(er)||"text"!==er.tagName||!Cf(Ar[1]))&&"bold"===er.getAttribute("font-weight")},this.setBold=function(er){var tr=Ar[0];!Cf(tr)&&"text"===tr.tagName&&Cf(Ar[1])&&Ni("font-weight",er?"bold":"normal"),Ar[0].textContent||gi.setCursor()},this.getItalic=function(){var er=Ar[0];return!(Cf(er)||"text"!==er.tagName||!Cf(Ar[1]))&&"italic"===er.getAttribute("font-style")},this.setItalic=function(er){var tr=Ar[0];!Cf(tr)&&"text"===tr.tagName&&Cf(Ar[1])&&Ni("font-style",er?"italic":"normal"),Ar[0].textContent||gi.setCursor()},this.getFontFamily=function(){return zr.font_family},this.setFontFamily=function(er){zr.font_family=er,Ni("font-family",er),Ar[0]&&!Ar[0].textContent&&gi.setCursor()},this.setFontColor=function(er){zr.fill=er,Ni("fill",er)},this.getFontColor=function(){return zr.fill},this.getFontSize=function(){return zr.font_size},this.setFontSize=function(er){zr.font_size=er,Ni("font-size",er),Ar[0].textContent||gi.setCursor()},this.getText=function(){var er=Ar[0];return Cf(er)?"":er.textContent},this.setTextContent=function(er){Ni("#text",er),gi.init(er),gi.setCursor()},this.setImageURL=function(er){var tr=Ar[0];if(tr){var rr=vP(tr).attr(["width","height"]),nr=!rr.width||!rr.height,ir=of(tr);if(ir!==er||nr){var or=new xP("Change Image URL");af(tr,er),or.addSubCommand(new SP(tr,{"#href":ir})),vP(new Image).load((function(){var er=vP(tr).attr(["width","height"]);vP(tr).attr({width:this.width,height:this.height}),Er.requestSelector(tr).resize(),or.addSubCommand(new SP(tr,er)),kr(or),Tr("changed",[tr])})).attr("src",er)}}},this.setLinkURL=function(er){var tr=Ar[0];if(tr){if("a"!==tr.tagName){var rr=vP(tr).parents("a");if(!rr.length)return;tr=rr[0]}var nr=of(tr);if(nr!==er){var ir=new xP("Change Link URL");af(tr,er),ir.addSubCommand(new SP(tr,{"#href":nr})),kr(ir)}}},this.setRectRadius=function(er){var tr=Ar[0];if(!Cf(tr)&&"rect"===tr.tagName){var rr=tr.getAttribute("rx");rr!==String(er)&&(tr.setAttribute("rx",er),tr.setAttribute("ry",er),kr(new SP(tr,{rx:rr,ry:rr},"Radius")),Tr("changed",[tr]))}},this.makeHyperlink=function(er){ir.groupSelectedElements("a",er)},this.removeHyperlink=function(){ir.ungroupSelectedElement()},this.setSegType=function(er){yr.setSegType(er)},this.convertToPath=function(er,tr){if(!Cf(er))return tr?pf(er,gr,yr):function convertToPath(er,tr,rr,nr,ir,or,ar,sr){var lr=new ar.BatchCommand("Convert element to Path"),cr=rr({element:"path",attr:tr=HA.extend({},tr,hf(er))}),ur=er.getAttribute("transform");ur&&cr.setAttribute("transform",ur);var dr=er.id,hr=er.parentNode;er.nextSibling?er.before(cr):hr.append(cr);var pr=df(er);if(pr){if(cr.setAttribute("d",pr),ur){var Ar=mA(cr);RA(Ar)&&nr.resetOrientation(cr)}var fr=er.nextSibling;return lr.addSubCommand(new ar.RemoveElementCommand(er,fr,parent)),lr.addSubCommand(new ar.InsertElementCommand(cr)),ir(),er.remove(),cr.setAttribute("id",dr),cr.removeAttribute("visibility"),or([cr],!0),sr(lr),cr}return cr.remove(),null}(er,{fill:pr.fill,"fill-opacity":pr.fill_opacity,stroke:pr.stroke,"stroke-width":pr.stroke_width,"stroke-dasharray":pr.stroke_dasharray,"stroke-linejoin":pr.stroke_linejoin,"stroke-linecap":pr.stroke_linecap,"stroke-opacity":pr.stroke_opacity,opacity:pr.opacity,visibility:"hidden"},gr,yr,Pr,Fr,zL,kr);var rr=Ar;vP.each(rr,(function(er,tr){tr&&ir.convertToPath(tr)}))};var Ei=function changeSelectedAttributeNoUndo(er,tr,rr){"pathedit"===Jr&&yr.moveNode(er,tr);for(var nr=(rr=rr||Ar).length,or=["g","polyline","path"],sr=function _loop(){var sr=rr[nr];if(Cf(sr))return"continue";if(("x"===er||"y"===er)&&or.includes(sr.tagName)){var lr=mf([sr]),cr="x"===er?tr-lr.x:0,dr="y"===er?tr-lr.y:0;return ir.moveSelectedElements(cr*ur,dr*ur,!0),"continue"}var hr="#text"===er?sr.textContent:sr.getAttribute(er);if(Cf(hr)&&(hr=""),hr!==String(tr)){"#text"===er?(sr.textContent=tr,/rotate/.test(sr.getAttribute("transform"))&&(sr=Wn(sr))):"#href"===er?af(sr,tr):sr.setAttribute(er,tr),"textedit"===Jr&&"#text"!==er&&sr.textContent.length&&gi.toSelectMode(sr),Vd()&&"text"===sr.nodeName&&/rotate/.test(sr.getAttribute("transform"))&&(String(tr).startsWith("url")||["font-size","font-family","x","y"].includes(er)&&sr.textContent)&&(sr=Wn(sr)),Ar.includes(sr)&&setTimeout((function(){sr.parentNode&&Er.requestSelector(sr).resize()}),0);var pr=vf(sr);if(0!==pr&&"transform"!==er)for(var fr=mA(sr),gr=fr.numberOfItems;gr--;){if(4===fr.getItem(gr).type){fr.removeItem(gr);var mr=cf(sr),_r=FA(mr.x+mr.width/2,mr.y+mr.height/2,OA(fr).matrix),vr=_r.x,yr=_r.y,br=ar.createSVGTransform();br.setRotate(pr,vr,yr),fr.insertItemBefore(br,gr);break}}}};nr--;)sr()},Ni=this.changeSelectedAttribute=function(er,tr,rr){rr=rr||Ar,ir.undoMgr.beginUndoableChange(er,rr),Ei(er,tr,rr);var nr=ir.undoMgr.finishUndoableChange();nr.isEmpty()||kr(nr)};this.deleteSelectedElements=function(){for(var er=new xP("Delete Elements"),tr=Ar.length,rr=[],nr=0;nr<tr;++nr){var ir=Ar[nr];if(Cf(ir))break;var or=ir.parentNode,ar=ir;Er.releaseSelector(ar),mT(ar.id),"a"===or.tagName&&1===or.childNodes.length&&(ar=or,or=or.parentNode);var sr=ar.nextSibling;ar.remove();var lr=ar;rr.push(ir),er.addSubCommand(new wP(lr,sr,or))}Ar=[],er.isEmpty()||kr(er),Tr("changed",rr),Pr()},this.cutSelectedElements=function(){ir.copySelectedElements(),ir.deleteSelectedElements()};var Li="svgedit_clipboard";function flashStorage(){var er=sessionStorage.getItem(Li);localStorage.setItem(Li,er),setTimeout((function(){localStorage.removeItem(Li)}),1)}window.addEventListener("storage",(function storageChange(er){er.newValue&&(er.key===Li+"_startup"?(localStorage.removeItem(Li+"_startup"),flashStorage()):er.key===Li&&sessionStorage.setItem(Li,er.newValue))}),!1),localStorage.setItem(Li+"_startup",Math.random()),this.copySelectedElements=function(){var er=JSON.stringify(Ar.map((function(er){return fr(er)})));sessionStorage.setItem(Li,er),flashStorage();var tr=vP("#cmenu_canvas");tr.enableContextMenuItems&&tr.enableContextMenuItems("#paste,#paste_in_place")},this.pasteElements=function(er,tr,rr){var nr=JSON.parse(sessionStorage.getItem(Li));if(nr){var or=nr.length;if(or){var ar=[],sr=new xP("Paste elements"),lr={};for(nr.forEach((function(er){return function checkIDs(er){er.attr&&er.attr.id&&(lr[er.attr.id]=Nr(),er.attr.id=lr[er.attr.id]),er.children&&er.children.forEach((function(er){return checkIDs(er)}))}(er)})),Hn("IDsUpdated",{elems:nr,changes:lr},!0).forEach((function(er){er&&"remove"in er&&er.remove.forEach((function(er){nr=nr.filter((function(tr){return tr.attr.id!==er}))}))}));or--;){var cr=nr[or];if(cr){var ur=gr(cr);ar.push(ur),sr.addSubCommand(new bP(ur)),jr(ur)}}if($n(ar),"in_place"!==er){var dr,hr;er?"point"===er&&(dr=tr,hr=rr):(dr=Dn.x,hr=Dn.y);var pr=mf(ar),Ar=dr-(pr.x+pr.width/2),fr=hr-(pr.y+pr.height/2),mr=[],_r=[];vP.each(ar,(function(er,tr){mr.push(Ar),_r.push(fr)}));var vr=ir.moveSelectedElements(mr,_r,!1);vr&&sr.addSubCommand(vr)}kr(sr),Tr("changed",ar)}}},this.groupSelectedElements=function(er,tr){er||(er="g");var rr,nr="";switch(er){case"a":nr="Make hyperlink",rr=tr||"";break;default:er="g",nr="Group Elements"}var ir=new xP(nr),or=gr({element:er,attr:{id:Nr()}});"a"===er&&af(or,rr),ir.addSubCommand(new bP(or));for(var ar=Ar.length;ar--;){var sr=Ar[ar];if(!Cf(sr)){"a"===sr.parentNode.tagName&&1===sr.parentNode.childNodes.length&&(sr=sr.parentNode);var lr=sr.nextSibling,cr=sr.parentNode;or.append(sr),ir.addSubCommand(new yP(sr,lr,cr))}}ir.isEmpty()||kr(ir),$n([or],!0)};var Ti=this.pushGroupProperties=function(er,tr){for(var rr,nr,or,sr=er.childNodes,lr=sr.length,ur=er.getAttribute("transform"),dr=mA(er),hr=OA(dr).matrix,pr=new xP("Push group properties"),Ar=vf(er),fr=vP(er).attr(["filter","opacity"]),gr=cr(),mr=0;mr<lr;mr++){var _r=sr[mr];if(1===_r.nodeType){if(null!==fr.opacity&&1!==fr.opacity){var vr=Math.round((_r.getAttribute("opacity")||1)*fr.opacity*100)/100;Ni("opacity",vr,[_r])}if(fr.filter){var yr=this.getBlur(_r),br=yr;nr||(nr=this.getBlur(er)),yr?yr=Number(nr)+Number(yr):0===yr&&(yr=nr),br?rr=yf(_r.getAttribute("filter")):rr?(rr=gr.copyElem(rr),sf().append(rr)):rr=yf(fr.filter);var wr="feGaussianBlur"===rr.firstChild.tagName?"blur":"filter";rr.id=_r.id+"_"+wr,Ni("filter","url(#"+rr.id+")",[_r]),yr&&(Ni("stdDeviation",yr,[rr.firstChild]),ir.setBlurOffsets(rr,yr))}var Sr=mA(_r);if(_r.tagName.includes("Gradient")&&(Sr=null),Sr&&"defs"!==_r.tagName&&dr.numberOfItems){if(Ar&&1===dr.numberOfItems){var xr=dr.getItem(0).matrix,kr=ar.createSVGMatrix(),Cr=vf(_r);Cr&&(kr=Sr.getItem(0).matrix);var Br=cf(_r),Er=OA(Sr).matrix,Nr=FA(Br.x+Br.width/2,Br.y+Br.height/2,Er),Lr=Ar+Cr,Tr=ar.createSVGTransform();Tr.setRotate(Lr,Nr.x,Nr.y);var Pr=IA(xr,kr,Tr.matrix.inverse());if(Cr&&Sr.removeItem(0),Lr&&(Sr.numberOfItems?Sr.insertItemBefore(Tr,0):Sr.appendItem(Tr)),Pr.e||Pr.f){var Fr=ar.createSVGTransform();Fr.setTranslate(Pr.e,Pr.f),Sr.numberOfItems?Sr.insertItemBefore(Fr,0):Sr.appendItem(Fr)}}else{var Ur=_r.getAttribute("transform");(or={}).transform=Ur||"";var Ir=ar.createSVGTransform(),Rr=OA(Sr).matrix,Mr=Rr.inverse(),Or=IA(Mr,hr,Rr);Ir.setMatrix(Or),Sr.appendItem(Ir)}var Qr=AP(_r);Qr&&pr.addSubCommand(Qr)}}}if(ur&&((or={}).transform=ur,er.setAttribute("transform",""),er.removeAttribute("transform"),pr.addSubCommand(new SP(er,or))),tr&&!pr.isEmpty())return pr};this.ungroupSelectedElement=function(){var er=Ar[0];if(er)if(vP(er).data("gsvg")||vP(er).data("symbol"))wi(er);else{if("use"===er.tagName){var tr=bf(of(er).substr(1));return vP(er).data("symbol",tr).data("ref",tr),void wi(er)}var rr=vP(er).parents("a");if(rr.length&&(er=rr[0]),"g"===er.tagName||"a"===er.tagName){var nr=new xP("Ungroup Elements"),ir=Ti(er,!0);ir&&nr.addSubCommand(ir);for(var or=er.parentNode,ar=er.nextSibling,sr=new Array(er.childNodes.length),lr=0;er.firstChild;){var cr=er.firstChild,ur=cr.nextSibling,dr=cr.parentNode;if("title"!==cr.tagName)ar?ar.before(cr):er.after(cr),sr[lr++]=cr,nr.addSubCommand(new yP(cr,ur,dr));else{var hr=cr.nextSibling;nr.addSubCommand(new wP(cr,hr,dr)),cr.remove()}}Pr();var pr=er.nextSibling;er.remove(),nr.addSubCommand(new wP(er,pr,or)),nr.isEmpty()||kr(nr),Fr(sr)}}},this.moveToTopSelectedElement=function(){var er=_slicedToArray(Ar,1)[0];if(!Cf(er)){var tr=er,rr=tr.parentNode,nr=tr.nextSibling;nr!==(tr=tr.parentNode.appendChild(tr)).nextSibling&&(kr(new yP(tr,nr,rr,"top")),Tr("changed",[tr]))}},this.moveToBottomSelectedElement=function(){var er=_slicedToArray(Ar,1)[0];if(!Cf(er)){var tr=er,rr=tr.parentNode,nr=tr.nextSibling,ir=tr.parentNode.firstChild;"title"===ir.tagName&&(ir=ir.nextSibling),"defs"===ir.tagName&&(ir=ir.nextSibling),nr!==(tr=tr.parentNode.insertBefore(tr,ir)).nextSibling&&(kr(new yP(tr,nr,rr,"bottom")),Tr("changed",[tr]))}},this.moveUpDownSelected=function(er){var tr=Ar[0];if(tr){var rr,nr;Qn=[];var ir=vP(Gn(mf([tr]))).toArray();if("Down"===er&&ir.reverse(),vP.each(ir,(function(){return nr?(rr=this,!1):(this===tr&&(nr=!0),!0)})),rr){var or=tr,ar=or.parentNode,sr=or.nextSibling;vP(rr)["Down"===er?"before":"after"](or),sr!==or.nextSibling&&(kr(new yP(or,sr,ar,"Move "+er)),Tr("changed",[or]))}}},this.moveSelectedElements=function(er,tr,rr){er.constructor!==Array&&(er/=ur,tr/=ur),rr=rr||!0;for(var nr=new xP("position"),ir=Ar.length;ir--;){var or=Ar[ir];if(!Cf(or)){var sr=ar.createSVGTransform(),lr=mA(or);er.constructor===Array?sr.setTranslate(er[ir],tr[ir]):sr.setTranslate(er,tr),lr.numberOfItems?lr.insertItemBefore(sr,0):lr.appendItem(sr);var cr=AP(or);cr&&nr.addSubCommand(cr),Er.requestSelector(or).resize()}}if(!nr.isEmpty())return rr&&kr(nr),Tr("changed",Ar),nr},this.cloneSelectedElements=function(er,tr){var rr,nr,ir=new xP("Clone Elements"),or=Ar.length;for(Ar.sort((function sortfunction(er,tr){return vP(tr).index()-vP(er).index()})),rr=0;rr<or&&(nr=Ar[rr],!Cf(nr));++rr);var ar=Ar.slice(0,rr);this.clearSelection(!0);var sr=cr();for(rr=ar.length;rr--;)nr=ar[rr]=sr.copyElem(ar[rr]),(dr||sr.getCurrentLayer()).append(nr),ir.addSubCommand(new bP(nr));ir.isEmpty()||(Fr(ar.reverse()),this.moveSelectedElements(er,tr,!1),kr(ir))},this.alignSelectedElements=function(er,tr){var rr=[],nr=Ar.length;if(nr){for(var or=Number.MAX_VALUE,ar=Number.MIN_VALUE,sr=Number.MAX_VALUE,lr=Number.MIN_VALUE,cr=Number.MIN_VALUE,ur=Number.MIN_VALUE,dr=0;dr<nr&&!Cf(Ar[dr]);++dr){var hr=Ar[dr];switch(rr[dr]=mf([hr]),tr){case"smallest":(("l"===er||"c"===er||"r"===er)&&(cr===Number.MIN_VALUE||cr>rr[dr].width)||("t"===er||"m"===er||"b"===er)&&(ur===Number.MIN_VALUE||ur>rr[dr].height))&&(or=rr[dr].x,sr=rr[dr].y,ar=rr[dr].x+rr[dr].width,lr=rr[dr].y+rr[dr].height,cr=rr[dr].width,ur=rr[dr].height);break;case"largest":(("l"===er||"c"===er||"r"===er)&&(cr===Number.MIN_VALUE||cr<rr[dr].width)||("t"===er||"m"===er||"b"===er)&&(ur===Number.MIN_VALUE||ur<rr[dr].height))&&(or=rr[dr].x,sr=rr[dr].y,ar=rr[dr].x+rr[dr].width,lr=rr[dr].y+rr[dr].height,cr=rr[dr].width,ur=rr[dr].height);break;default:rr[dr].x<or&&(or=rr[dr].x),rr[dr].y<sr&&(sr=rr[dr].y),rr[dr].x+rr[dr].width>ar&&(ar=rr[dr].x+rr[dr].width),rr[dr].y+rr[dr].height>lr&&(lr=rr[dr].y+rr[dr].height)}}"page"===tr&&(or=0,sr=0,ar=ir.contentW,lr=ir.contentH);for(var pr=new Array(nr),fr=new Array(nr),gr=0;gr<nr&&!Cf(Ar[gr]);++gr){var mr=rr[gr];switch(pr[gr]=0,fr[gr]=0,er){case"l":pr[gr]=or-mr.x;break;case"c":pr[gr]=(or+ar)/2-(mr.x+mr.width/2);break;case"r":pr[gr]=ar-(mr.x+mr.width);break;case"t":fr[gr]=sr-mr.y;break;case"m":fr[gr]=(sr+lr)/2-(mr.y+mr.height/2);break;case"b":fr[gr]=lr-(mr.y+mr.height)}}this.moveSelectedElements(pr,fr)}},this.contentW=xi().w,this.contentH=xi().h,this.updateCanvas=function(er,tr){ar.setAttribute("width",er),ar.setAttribute("height",tr);var rr=vP("#canvasBackground")[0],nr=sr.getAttribute("x"),ir=sr.getAttribute("y"),or=(er-this.contentW*ur)/2,lr=(tr-this.contentH*ur)/2;wf(sr,{width:this.contentW*ur,height:this.contentH*ur,x:or,y:lr,viewBox:"0 0 "+this.contentW+" "+this.contentH}),wf(rr,{width:sr.getAttribute("width"),height:sr.getAttribute("height"),x:or,y:lr});var cr=bf("background_image");return cr&&wf(cr,{width:"100%",height:"100%"}),Er.selectorParentGroup.setAttribute("transform","translate("+or+","+lr+")"),Hn("canvasUpdated",{new_x:or,new_y:lr,old_x:nr,old_y:ir,d_x:or-nr,d_y:lr-ir}),{x:or,y:lr,old_x:nr,old_y:ir,d_x:or-nr,d_y:lr-ir}},this.setBackground=function(er,tr){var rr=bf("canvasBackground"),nr=vP(rr).find("rect")[0],ir=bf("background_image"),ar=bf("background_pattern");if(nr.setAttribute("fill","chessboard"===er?"#fff":er),"chessboard"===er){if(!ar){ar=or.createElementNS(wd.SVG,"foreignObject"),wf(ar,{id:"background_pattern",width:"100%",height:"100%",preserveAspectRatio:"xMinYMin",style:"pointer-events:none"});var sr=document.createElement("div");wf(sr,{style:"pointer-events:none;width:100%;height:100%;background-image:url(data:image/gif;base64,R0lGODlhEAAQAIAAAP///9bW1iH5BAAAAAAALAAAAAAQABAAAAIfjG+gq4jM3IFLJgpswNly/XkcBpIiVaInlLJr9FZWAQA7);"}),ar.appendChild(sr),rr.append(ar)}}else ar&&ar.remove();tr?(ir||(ir=or.createElementNS(wd.SVG,"image"),wf(ir,{id:"background_image",width:"100%",height:"100%",preserveAspectRatio:"xMinYMin",style:"pointer-events:none"})),af(ir,tr),rr.append(ir)):ir&&ir.remove()},this.cycleElement=function(er){var tr,rr=Ar[0],nr=!1,ir=gf(dr||cr().getCurrentLayer());if(ir.length){if(Cf(rr))nr=ir[tr=er?ir.length-1:0];else for(var or=ir.length;or--;)if(ir[or]===rr){(tr=er?or-1:or+1)>=ir.length?tr=0:tr<0&&(tr=ir.length-1),nr=ir[tr];break}$n([nr],!0),Tr("selected",Ar)}},this.clear(),this.getPrivateMethods=function(){return{addCommandToHistory:kr,BatchCommand:xP,ChangeElementCommand:SP,decode64:decode64,dropXMLInternalSubset:XA,encode64:encode64,ffClone:Wn,findDefs:sf,findDuplicateGradient:Bi,getElem:bf,getPathBBox:lf,getTypeMap:SA,getUrlFromAttr:nf,identifyLayers:jT,InsertElementCommand:bP,isChrome:Kd,isIdentity:UA,isIE:zd,logMatrix:Yn,MoveElementCommand:yP,NS:wd,preventClickDefault:kf,RemoveElementCommand:wP,SVGEditTransformList:fA,text2xml:tf,transformBox:MA,transformPoint:FA,walkTree:rf}}};var EP=Boolean(window.opera),NP=function fixIDs(er,tr,rr){var nr=er.find("defs");if(!nr.length)return er;var ir=EP?nr.find("*").filter((function(){return Boolean(this.id)})):nr.find("[id]"),or=er[0].getElementsByTagName("*"),ar=or.length;return ir.each((function(er){var rr=this.id,nr="x"+rr+tr+er;this.id=nr;var ir="url(#"+rr+")",sr="url(#"+nr+")";for(er=0;er<ar;er++){var lr=or[er];lr.getAttribute("fill")===ir&&lr.setAttribute("fill",sr),lr.getAttribute("stroke")===ir&&lr.setAttribute("stroke",sr),lr.getAttribute("filter")===ir&&lr.setAttribute("filter",sr)}})),er};
|
||
/**
|
||
* @file jGraduate 0.4
|
||
*
|
||
* jQuery Plugin for a gradient picker
|
||
*
|
||
* @module jGraduate
|
||
* @copyright 2010 Jeff Schiller {@link http://blog.codedread.com/}, 2010 Alexis Deveria {@link http://a.deveria.com/}
|
||
*
|
||
* @license Apache-2.0
|
||
* @example
|
||
* // The Paint object is described below.
|
||
* $.jGraduate.Paint(); // constructs a 'none' color
|
||
* @example $.jGraduate.Paint({copy: o}); // creates a copy of the paint o
|
||
* @example $.jGraduate.Paint({hex: '#rrggbb'}); // creates a solid color paint with hex = "#rrggbb"
|
||
* @example $.jGraduate.Paint({linearGradient: o, a: 50}); // creates a linear gradient paint with opacity=0.5
|
||
* @example $.jGraduate.Paint({radialGradient: o, a: 7}); // creates a radial gradient paint with opacity=0.07
|
||
* @example $.jGraduate.Paint({hex: '#rrggbb', linearGradient: o}); // throws an exception?
|
||
*/
|
||
var LP="http://www.w3.org/2000/svg",TP="http://www.w3.org/1999/xlink";
|
||
/**
|
||
* @file jPicker (Adapted from version 1.1.6)
|
||
*
|
||
* jQuery Plugin for Photoshop style color picker
|
||
*
|
||
* @module jPicker
|
||
* @copyright (c) 2010 Christopher T. Tillman
|
||
* Digital Magic Productions, Inc. ({@link http://www.digitalmagicpro.com/})
|
||
* FREE to use, alter, copy, sell, and especially ENHANCE
|
||
* @license MIT
|
||
*
|
||
* Painstakingly ported from John Dyers' excellent work on his own color picker based on the Prototype framework.
|
||
*
|
||
* John Dyers' website: {@link http://johndyer.name}
|
||
* Color Picker page: {@link http://johndyer.name/photoshop-like-javascript-color-picker/}
|
||
*/
|
||
function toFixedNumeric(er,tr){return void 0===tr&&(tr=0),Math.round(er*Math.pow(10,tr))/Math.pow(10,tr)}window.console||(window.console={log:function log(er){},dir:function dir(er){}});var PP,FP=function isNullish(er){return null==er};function __variableDynamicImportRuntime0__(er){switch(er){case"./locale/lang.af.js":return Promise.resolve().then((function(){return wF}));case"./locale/lang.ar.js":return Promise.resolve().then((function(){return SF}));case"./locale/lang.az.js":return Promise.resolve().then((function(){return xF}));case"./locale/lang.be.js":return Promise.resolve().then((function(){return kF}));case"./locale/lang.bg.js":return Promise.resolve().then((function(){return CF}));case"./locale/lang.ca.js":return Promise.resolve().then((function(){return BF}));case"./locale/lang.cs.js":return Promise.resolve().then((function(){return EF}));case"./locale/lang.cy.js":return Promise.resolve().then((function(){return NF}));case"./locale/lang.da.js":return Promise.resolve().then((function(){return LF}));case"./locale/lang.de.js":return Promise.resolve().then((function(){return TF}));case"./locale/lang.el.js":return Promise.resolve().then((function(){return PF}));case"./locale/lang.en.js":return Promise.resolve().then((function(){return FF}));case"./locale/lang.es.js":return Promise.resolve().then((function(){return UF}));case"./locale/lang.et.js":return Promise.resolve().then((function(){return IF}));case"./locale/lang.fa.js":return Promise.resolve().then((function(){return RF}));case"./locale/lang.fi.js":return Promise.resolve().then((function(){return MF}));case"./locale/lang.fr.js":return Promise.resolve().then((function(){return OF}));case"./locale/lang.fy.js":return Promise.resolve().then((function(){return QF}));case"./locale/lang.ga.js":return Promise.resolve().then((function(){return DF}));case"./locale/lang.gl.js":return Promise.resolve().then((function(){return jF}));case"./locale/lang.he.js":return Promise.resolve().then((function(){return HF}));case"./locale/lang.hi.js":return Promise.resolve().then((function(){return GF}));case"./locale/lang.hr.js":return Promise.resolve().then((function(){return VF}));case"./locale/lang.hu.js":return Promise.resolve().then((function(){return zF}));case"./locale/lang.hy.js":return Promise.resolve().then((function(){return KF}));case"./locale/lang.id.js":return Promise.resolve().then((function(){return qF}));case"./locale/lang.is.js":return Promise.resolve().then((function(){return WF}));case"./locale/lang.it.js":return Promise.resolve().then((function(){return XF}));case"./locale/lang.ja.js":return Promise.resolve().then((function(){return YF}));case"./locale/lang.ko.js":return Promise.resolve().then((function(){return JF}));case"./locale/lang.lt.js":return Promise.resolve().then((function(){return $F}));case"./locale/lang.lv.js":return Promise.resolve().then((function(){return ZF}));case"./locale/lang.mk.js":return Promise.resolve().then((function(){return eU}));case"./locale/lang.ms.js":return Promise.resolve().then((function(){return tU}));case"./locale/lang.mt.js":return Promise.resolve().then((function(){return rU}));case"./locale/lang.nl.js":return Promise.resolve().then((function(){return nU}));case"./locale/lang.no.js":return Promise.resolve().then((function(){return iU}));case"./locale/lang.pl.js":return Promise.resolve().then((function(){return oU}));case"./locale/lang.pt-BR.js":return Promise.resolve().then((function(){return aU}));case"./locale/lang.pt-PT.js":return Promise.resolve().then((function(){return sU}));case"./locale/lang.ro.js":return Promise.resolve().then((function(){return lU}));case"./locale/lang.ru.js":return Promise.resolve().then((function(){return cU}));case"./locale/lang.sk.js":return Promise.resolve().then((function(){return uU}));case"./locale/lang.sl.js":return Promise.resolve().then((function(){return dU}));case"./locale/lang.sq.js":return Promise.resolve().then((function(){return hU}));case"./locale/lang.sr.js":return Promise.resolve().then((function(){return pU}));case"./locale/lang.sv.js":return Promise.resolve().then((function(){return AU}));case"./locale/lang.sw.js":return Promise.resolve().then((function(){return fU}));case"./locale/lang.test.js":return Promise.resolve().then((function(){return gU}));case"./locale/lang.th.js":return Promise.resolve().then((function(){return mU}));case"./locale/lang.tl.js":return Promise.resolve().then((function(){return _U}));case"./locale/lang.tr.js":return Promise.resolve().then((function(){return vU}));case"./locale/lang.uk.js":return Promise.resolve().then((function(){return yU}));case"./locale/lang.vi.js":return Promise.resolve().then((function(){return bU}));case"./locale/lang.yi.js":return Promise.resolve().then((function(){return wU}));case"./locale/lang.zh-CN.js":return Promise.resolve().then((function(){return SU}));case"./locale/lang.zh-HK.js":return Promise.resolve().then((function(){return xU}));case"./locale/lang.zh-TW.js":return Promise.resolve().then((function(){return kU}));default:return Promise.reject(new Error("Unknown variable dynamic import: "+er))}}
|
||
/**
|
||
* Localizing script for SVG-edit UI.
|
||
* @module locale
|
||
* @license MIT
|
||
*
|
||
* @copyright 2010 Narendra Sisodya
|
||
* @copyright 2010 Alexis Deveria
|
||
*
|
||
*/_export({target:"String",proto:!0,forced:stringHtmlForced("bold")},{bold:function bold(){return createHtml(this,"b","","")}});var UP=function setStrings(er,tr,rr){var nr=document.getElementById("svg_editor").parentNode;Object.entries(tr).forEach((function(tr){var ir=_slicedToArray(tr,2),or=ir[0],ar=ir[1];if(ar){rr&&(or="#"+or);var sr=nr.querySelectorAll(or);if(sr.length){var lr=sr[0];switch(er){case"aria-label":lr.setAttribute("aria-label",ar);break;case"content":_toConsumableArray(sr).some((function(er){return!(3!==er.nodeType||!er.textContent.trim())&&(er.textContent=ar,!0)}));break;case"title":lr.setAttribute("title",ar)}}else console.log("Missing element for localization: "+or)}else console.log(or)}))},IP=function readLang(er){var tr=er.tools,rr=er.properties,nr=er.config,ir=er.layers,or=er.common,ar=er.ui;UP("content",{curve_segments:rr.curve_segments,fitToContent:tr.fitToContent,fit_to_all:tr.fit_to_all,fit_to_canvas:tr.fit_to_canvas,fit_to_layer_content:tr.fit_to_layer_content,fit_to_sel:tr.fit_to_sel,icon_large:nr.icon_large,icon_medium:nr.icon_medium,icon_small:nr.icon_small,icon_xlarge:nr.icon_xlarge,image_opt_embed:nr.image_opt_embed,image_opt_ref:nr.image_opt_ref,includedImages:nr.included_images,largest_object:tr.largest_object,layersLabel:ir.layers,page:tr.page,relativeToLabel:tr.relativeTo,selLayerLabel:ir.move_elems_to,selectedPredefined:nr.select_predefined,selected_objects:tr.selected_objects,smallest_object:tr.smallest_object,straight_segments:rr.straight_segments,svginfo_bg_url:nr.editor_img_url+":",svginfo_bg_note:nr.editor_bg_note,svginfo_change_background:nr.background,svginfo_dim:nr.doc_dims,svginfo_editor_prefs:nr.editor_prefs,svginfo_height:or.height,svginfo_icons:nr.icon_size,svginfo_image_props:nr.image_props,svginfo_lang:nr.language,svginfo_title:nr.doc_title,svginfo_width:or.width,tool_docprops_cancel:or.cancel,tool_docprops_save:or.ok,tool_source_cancel:or.cancel,tool_source_save:or.ok,tool_prefs_cancel:or.cancel,tool_prefs_save:or.ok,sidepanel_handle:ir.layers.split("").join(" "),tool_clear:tr.new_doc,tool_docprops:tr.docprops,tool_export:tr.export_img,tool_import:tr.import_doc,tool_open:tr.open_doc,tool_save:tr.save_doc,tool_editor_prefs:nr.editor_prefs,tool_editor_homepage:tr.editor_homepage,svginfo_units_rulers:nr.units_and_rulers,svginfo_rulers_onoff:nr.show_rulers,svginfo_unit:nr.base_unit,svginfo_grid_settings:nr.grid,svginfo_snap_onoff:nr.snapping_onoff,svginfo_snap_step:nr.snapping_stepsize,svginfo_grid_color:nr.grid_color},!0);var sr={};["cut","copy","paste","paste_in_place","delete","group","ungroup","move_front","move_up","move_down","move_back"].forEach((function(er){sr['#cmenu_canvas a[href="#'+er+'"]']=tr[er]})),["dupe","merge_down","merge_all"].forEach((function(er){sr['#cmenu_layers a[href="#'+er+'"]']=ir[er]})),sr['#cmenu_layers a[href="#delete"]']=ir.del,UP("content",sr);var lr={};return Object.entries({tool_blur:rr.blur,tool_position:tr.align_to_page,tool_font_family:rr.font_family,zoom_panel:ar.zoom_level,stroke_linejoin:rr.linejoin_miter,stroke_linecap:rr.linecap_butt,tool_opacity:rr.opacity}).forEach((function(er){var tr=_slicedToArray(er,2),rr=tr[0],nr=tr[1];lr["#"+rr+" button"]=nr})),Object.entries({group_opacity:rr.opacity,zoom:ar.zoom_level}).forEach((function(er){var tr=_slicedToArray(er,2),rr=tr[0],nr=tr[1];lr["#"+rr]=nr})),UP("aria-label",lr),UP("title",{align_relative_to:tr.align_relative_to,circle_cx:rr.circle_cx,circle_cy:rr.circle_cy,circle_r:rr.circle_r,cornerRadiusLabel:rr.corner_radius,ellipse_cx:rr.ellipse_cx,ellipse_cy:rr.ellipse_cy,ellipse_rx:rr.ellipse_rx,ellipse_ry:rr.ellipse_ry,fill_color:rr.fill_color,font_family:rr.font_family,idLabel:rr.id,image_height:rr.image_height,image_url:rr.image_url,image_width:rr.image_width,layer_delete:ir.del,layer_down:ir.move_down,layer_new:ir.new,layer_rename:ir.rename,layer_moreopts:or.more_opts,layer_up:ir.move_up,line_x1:rr.line_x1,line_x2:rr.line_x2,line_y1:rr.line_y1,line_y2:rr.line_y2,linecap_butt:rr.linecap_butt,linecap_round:rr.linecap_round,linecap_square:rr.linecap_square,linejoin_bevel:rr.linejoin_bevel,linejoin_miter:rr.linejoin_miter,linejoin_round:rr.linejoin_round,main_icon:tr.main_menu,palette:ar.palette_info,zoom_panel:ar.zoom_level,path_node_x:rr.node_x,path_node_y:rr.node_y,rect_height_tool:rr.rect_height,rect_width_tool:rr.rect_width,seg_type:rr.seg_type,selLayerNames:ir.move_selected,selected_x:rr.pos_x,selected_y:rr.pos_y,stroke_color:rr.stroke_color,stroke_style:rr.stroke_style,stroke_width:rr.stroke_width,svginfo_title:nr.doc_title,text:rr.text_contents,toggle_stroke_tools:ar.toggle_stroke_tools,tool_add_subpath:tr.add_subpath,tool_alignbottom:tr.align_bottom,tool_aligncenter:tr.align_center,tool_alignleft:tr.align_left,tool_alignmiddle:tr.align_middle,tool_alignright:tr.align_right,tool_aligntop:tr.align_top,tool_angle:rr.angle,tool_blur:rr.blur,tool_bold:rr.bold,tool_circle:tr.mode_circle,tool_clone:tr.clone,tool_clone_multi:tr.clone,tool_delete:tr.del,tool_delete_multi:tr.del,tool_ellipse:tr.mode_ellipse,tool_fhellipse:tr.mode_fhellipse,tool_fhpath:tr.mode_fhpath,tool_fhrect:tr.mode_fhrect,tool_font_size:rr.font_size,tool_group_elements:tr.group_elements,tool_make_link:tr.make_link,tool_link_url:tr.set_link_url,tool_image:tr.mode_image,tool_italic:rr.italic,tool_line:tr.mode_line,tool_move_bottom:tr.move_bottom,tool_move_top:tr.move_top,tool_node_clone:tr.node_clone,tool_node_delete:tr.node_delete,tool_node_link:tr.node_link,tool_opacity:rr.opacity,tool_openclose_path:tr.openclose_path,tool_path:tr.mode_path,tool_position:tr.align_to_page,tool_rect:tr.mode_rect,tool_redo:tr.redo,tool_reorient:tr.reorient_path,tool_select:tr.mode_select,tool_source:tr.source_save,tool_square:tr.mode_square,tool_text:tr.mode_text,tool_topath:tr.to_path,tool_undo:tr.undo,tool_ungroup:tr.ungroup,tool_wireframe:tr.wireframe_mode,tool_zoom:tr.mode_zoom,url_notice:tr.no_embed},!0),{langParam:PP,langData:er}},RP=function(){var er=_asyncToGenerator(regeneratorRuntime.mark((function _callee(er,tr){var rr;return regeneratorRuntime.wrap((function _callee$(nr){for(;;)switch(nr.prev=nr.next){case 0:return er?PP=er:navigator.userLanguage?PP=navigator.userLanguage:navigator.language&&(PP=navigator.language),console.log("Lang: "+PP),tr.includes(PP)||"test"===PP||(PP="en"),nr.next=5,__variableDynamicImportRuntime0__("./locale/lang.".concat(encodeURIComponent(PP),".js"));case 5:return rr=nr.sent,nr.abrupt("return",IP(rr.default));case 7:case"end":return nr.stop()}}),_callee)})));return function putLocale(tr,rr){return er.apply(this,arguments)}}(),MP=function $q(er){return document.querySelector(er)},OP=function $qq(er){return _toConsumableArray(document.querySelectorAll(er))},QP=function $id(er){return document.getElementById(er)},DP={},jP=[function jQueryPluginJSHotkeys(er){function a(tr){if("string"==typeof tr.data){var rr=tr.handler,nr=tr.data.toLowerCase().split(" ");tr.handler=function(tr){if(this===tr.target||27===tr.which||!/textarea|select/i.test(tr.target.nodeName)&&"text"!==tr.target.type){var ir="keypress"!==tr.type&&er.hotkeys.specialKeys[tr.which],or=String.fromCharCode(tr.which).toLowerCase(),ar="",sr={};tr.altKey&&"alt"!==ir&&(ar+="alt+"),tr.ctrlKey&&"ctrl"!==ir&&(ar+="ctrl+"),tr.metaKey&&!tr.ctrlKey&&"meta"!==ir&&(ar+="meta+"),tr.shiftKey&&"shift"!==ir&&(ar+="shift+"),ir?sr[ar+ir]=!0:(sr[ar+or]=!0,sr[ar+er.hotkeys.shiftNums[or]]=!0,"shift+"===ar&&(sr[er.hotkeys.shiftNums[or]]=!0));for(var lr=0,cr=nr.length;lr<cr;lr++)if(sr[nr[lr]])return rr.apply(this,arguments)}}}}return er.hotkeys={version:"0.8",specialKeys:{8:"backspace",9:"tab",13:"return",16:"shift",17:"ctrl",18:"alt",19:"pause",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"insert",46:"del",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12",144:"numlock",145:"scroll",191:"/",224:"meta",219:"[",221:"]"},shiftNums:{"`":"~",1:"!",2:"@",3:"#",4:"$",5:"%",6:"^",7:"&",8:"*",9:"(",0:")","-":"_","=":"+",";":": ","'":'"',",":"<",".":">","/":"?","\\":"|"}},er.each(["keydown","keyup","keypress"],(function(){er.event.special[this]={add:a}})),er},function jQueryPluginSVGIcons(er){var tr={};return er.svgIcons=function(rr){var nr,ir,or,ar,sr,lr=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},cr="http://www.w3.org/2000/svg",ur="http://www.w3.org/1999/xlink",dr=lr.w||24,hr=lr.h||24,pr=!1,Ar=!1,fr=0,gr="data:image/svg+xml;charset=utf-8;base64,";if(lr.svgz){ar=er('<object data="'+rr+'" type=image/svg+xml>').appendTo("body").hide();try{ir=ar[0].contentDocument,ar.load(getIcons),getIcons(0,!0)}catch(er){useFallback()}}else{var mr=new DOMParser;er.ajax({url:rr,dataType:"string",success:function success(tr){tr?(ir=mr.parseFromString(tr,"text/xml"),er((function(){getIcons("ajax")}))):er(useFallback)},error:function error(tr){window.opera?er((function(){useFallback()})):tr.responseText?((ir=mr.parseFromString(tr.responseText,"text/xml")).childNodes.length||er(useFallback),er((function(){getIcons("ajax")}))):er(useFallback)}})}function getIcons(tr,rr){if("ajax"!==tr){if(Ar)return;var sr=(ir=ar[0].contentDocument)&&ir.getElementById("svg_eof");if(!(sr||rr&&sr))return void(++fr<50?setTimeout(getIcons,20):(useFallback(),Ar=!0));Ar=!0}if(nr=er(ir.firstChild).children(),lr.no_img)setTimeout((function(){pr||makeIcons()}),500);else{var cr=gr+"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNzUiIGhlaWdodD0iMjc1Ij48L3N2Zz4%3D";or=er(new Image).attr({src:cr,width:0,height:0,alt:lr.testIconAlt||"icon"}).appendTo("body").load((function(){makeIcons(!0)})).error((function(){makeIcons()}))}}function setIcon(er,tr,rr,nr){if(EP&&tr.css("visibility","hidden"),lr.replace){nr&&tr.attr("id",rr);var ir=er.attr("class");if(ir&&tr.attr("class","svg_icon "+ir),!er.alt){var or="icon";lr.alts&&(or=lr.alts[rr]||or),tr.attr("alt",or)}er.replaceWith(tr)}else er.append(tr);EP&&setTimeout((function(){tr.removeAttr("style")}),1)}function addIcon(er,rr){void 0!==lr.id_match&&!1===lr.id_match||setIcon(sr,er,rr,!0),tr[rr]=er}function makeIcons(){var rr=arguments.length>0&&void 0!==arguments[0]&&arguments[0],ir=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!pr){var Ar;if(lr.no_img&&(rr=!1),rr&&(Ar=er(document.createElement("div"))).hide().appendTo("body"),ir){var fr=lr.fallback_path||"";er.each(ir,(function(tr,rr){sr=er("#"+tr);var nr="icon";lr.alts&&(nr=lr.alts[tr]||nr),addIcon(er(new Image).attr({class:"svg_icon",src:fr+rr,width:dr,height:hr,alt:nr}),tr)}))}else for(var mr=nr.length,_r=0;_r<mr;_r++){var vr=nr[_r],yr=vr.id;if("svg_eof"===yr)break;sr=er("#"+yr);var br=document.createElementNS(cr,"svg");br.setAttribute("viewBox",[0,0,dr,hr].join(" "));var wr=vr.getElementsByTagNameNS(cr,"svg")[0],Sr=wr.getAttribute("width"),xr=wr.getAttribute("height");wr.removeAttribute("width"),wr.removeAttribute("height");var kr=wr.getAttribute("viewBox");kr||wr.setAttribute("viewBox",[0,0,Sr,xr].join(" ")),br.setAttribute("xmlns",cr),br.setAttribute("width",dr),br.setAttribute("height",hr),br.setAttribute("xmlns:xlink",ur),br.setAttribute("class","svg_icon"),EP||(wr=wr.cloneNode(!0)),br.append(wr);var Cr=void 0;if(rr){Ar.empty().append(br);var Br=gr+encode64(unescape(encodeURIComponent((new XMLSerializer).serializeToString(br)))),Er="icon";lr.alts&&(Er=lr.alts[yr]||Er),Cr=er(new Image).attr({class:"svg_icon",src:Br,alt:Er})}else Cr=NP(er(br),_r);addIcon(Cr,yr)}lr.placement&&er.each(lr.placement,(function(nr,ir){tr[ir]&&er(nr).each((function(nr){var or=tr[ir].clone();nr>0&&!rr&&(or=NP(or,nr)),setIcon(er(this),or,ir)}))})),ir||(rr&&Ar.remove(),ar&&ar.remove(),or&&or.remove()),lr.resize&&er.resizeSvgIcons(lr.resize),pr=!0,lr.callback&&lr.callback(tr)}}function useFallback(){if(rr.includes(".svgz")){var tr=rr.replace(".svgz",".svg");window.console&&console.log(".svgz failed, trying with .svg"),er.svgIcons(tr,lr)}else lr.fallback&&makeIcons(!1,lr.fallback)}},er.getSvgIcon=function(er,rr){var nr=tr[er];return rr&&nr&&(nr=NP(nr,0).clone(!0)),nr},er.resizeSvgIcons=function(tr){var rr=!er(".svg_icon:first").length;er.each(tr,(function(tr,nr){var ir=Array.isArray(nr),or=ir?nr[0]:nr,ar=ir?nr[1]:nr;rr&&(tr=tr.replace(/\.svg_icon/g,"svg")),er(tr).each((function(){this.setAttribute("width",or),this.setAttribute("height",ar),window.opera&&window.widget&&(this.parentNode.style.width=or+"px",this.parentNode.style.height=ar+"px")}))}))},er},function jQueryPluginJGraduate(er){er.jGraduate={Paint:function Paint(er){_classCallCheck(this,Paint);var tr=er||{};if(this.alpha=isNaN(tr.alpha)?100:tr.alpha,tr.copy)switch(this.type=tr.copy.type,this.alpha=tr.copy.alpha,this.solidColor=null,this.linearGradient=null,this.radialGradient=null,this.type){case"none":break;case"solidColor":this.solidColor=tr.copy.solidColor;break;case"linearGradient":this.linearGradient=tr.copy.linearGradient.cloneNode(!0);break;case"radialGradient":this.radialGradient=tr.copy.radialGradient.cloneNode(!0)}else tr.linearGradient?(this.type="linearGradient",this.solidColor=null,this.radialGradient=null,this.linearGradient=tr.linearGradient.cloneNode(!0)):tr.radialGradient?(this.type="radialGradient",this.solidColor=null,this.linearGradient=null,this.radialGradient=tr.radialGradient.cloneNode(!0)):tr.solidColor?(this.type="solidColor",this.solidColor=tr.solidColor):(this.type="none",this.solidColor=null,this.linearGradient=null,this.radialGradient=null)}},er.fn.jGraduateDefaults={paint:new er.jGraduate.Paint,window:{pickerTitle:"Drag markers to pick a paint"},images:{clientPath:"images/"},newstop:"inverse"};var tr=navigator.userAgent.includes("Gecko/");function mkElem(er,rr,nr){var ir=document.createElementNS(LP,er);return function setAttrs(er,rr){tr?Object.entries(rr).forEach((function(tr){var rr=_slicedToArray(tr,2),nr=rr[0],ir=rr[1];er.setAttribute(nr,ir)})):Object.entries(rr).forEach((function(tr){var rr=_slicedToArray(tr,2),nr=rr[0],ir=rr[1],or=er[nr];or&&"SVGLength"===or.constructor?or.baseVal.value=ir:er.setAttribute(nr,ir)}))}(ir,rr),nr&&nr.append(ir),ir}return er.fn.jGraduate=function(tr,rr,nr){return this.each((function(){var ir=er(this),or=er.extend(!0,{},er.fn.jGraduateDefaults,tr||{}),ar=ir.attr("id"),sr="#"+ir.attr("id")+" ";if(sr){var lr=function okClicked(){switch(ir.paint.type){case"radialGradient":ir.paint.linearGradient=null;break;case"linearGradient":ir.paint.radialGradient=null;break;case"solidColor":ir.paint.radialGradient=ir.paint.linearGradient=null}"function"==typeof ir.okCallback&&ir.okCallback(ir.paint),ir.hide()},cr=function cancelClicked(){"function"==typeof ir.cancelCallback&&ir.cancelCallback(),ir.hide()};er.extend(!0,ir,{paint:new er.jGraduate.Paint({copy:or.paint}),okCallback:"function"==typeof rr?rr:null,cancelCallback:"function"==typeof nr?nr:null});var ur=null,dr=er(window);"none"===ir.paint.type&&(ir.paint=new er.jGraduate.Paint({solidColor:"ffffff"})),ir.addClass("jGraduate_Picker"),ir.html('<ul class="jGraduate_tabs"><li class="jGraduate_tab_color jGraduate_tab_current" data-type="col">Solid Color</li><li class="jGraduate_tab_lingrad" data-type="lg">Linear Gradient</li><li class="jGraduate_tab_radgrad" data-type="rg">Radial Gradient</li></ul><div class="jGraduate_colPick"></div><div class="jGraduate_gradPick"></div><div class="jGraduate_LightBox"></div><div id="'+ar+'_jGraduate_stopPicker" class="jGraduate_stopPicker"></div>');var hr=er(sr+"> .jGraduate_colPick"),pr=er(sr+"> .jGraduate_gradPick");pr.html('<div id="'+ar+'_jGraduate_Swatch" class="jGraduate_Swatch"><h2 class="jGraduate_Title">'+or.window.pickerTitle+'</h2><div id="'+ar+'_jGraduate_GradContainer" class="jGraduate_GradContainer"></div><div id="'+ar+'_jGraduate_StopSlider" class="jGraduate_StopSlider"></div></div><div class="jGraduate_Form jGraduate_Points jGraduate_lg_field"><div class="jGraduate_StopSection"><label class="jGraduate_Form_Heading">Begin Point</label><div class="jGraduate_Form_Section"><label>x:</label><input type="text" id="'+ar+'_jGraduate_x1" size="3" title="Enter starting x value between 0.0 and 1.0"/><label>y:</label><input type="text" id="'+ar+'_jGraduate_y1" size="3" title="Enter starting y value between 0.0 and 1.0"/></div></div><div class="jGraduate_StopSection"><label class="jGraduate_Form_Heading">End Point</label><div class="jGraduate_Form_Section"><label>x:</label><input type="text" id="'+ar+'_jGraduate_x2" size="3" title="Enter ending x value between 0.0 and 1.0"/><label>y:</label><input type="text" id="'+ar+'_jGraduate_y2" size="3" title="Enter ending y value between 0.0 and 1.0"/></div></div></div><div class="jGraduate_Form jGraduate_Points jGraduate_rg_field"><div class="jGraduate_StopSection"><label class="jGraduate_Form_Heading">Center Point</label><div class="jGraduate_Form_Section"><label>x:</label><input type="text" id="'+ar+'_jGraduate_cx" size="3" title="Enter x value between 0.0 and 1.0"/><label>y:</label><input type="text" id="'+ar+'_jGraduate_cy" size="3" title="Enter y value between 0.0 and 1.0"/></div></div><div class="jGraduate_StopSection"><label class="jGraduate_Form_Heading">Focal Point</label><div class="jGraduate_Form_Section"><label>Match center: <input type="checkbox" checked="checked" id="'+ar+'_jGraduate_match_ctr"/></label><br/><label>x:</label><input type="text" id="'+ar+'_jGraduate_fx" size="3" title="Enter x value between 0.0 and 1.0"/><label>y:</label><input type="text" id="'+ar+'_jGraduate_fy" size="3" title="Enter y value between 0.0 and 1.0"/></div></div></div><div class="jGraduate_StopSection jGraduate_SpreadMethod"><label class="jGraduate_Form_Heading">Spread method</label><div class="jGraduate_Form_Section"><select class="jGraduate_spreadMethod"><option value=pad selected>Pad</option><option value=reflect>Reflect</option><option value=repeat>Repeat</option></select></div></div><div class="jGraduate_Form"><div class="jGraduate_Slider jGraduate_RadiusField jGraduate_rg_field"><label class="prelabel">Radius:</label><div id="'+ar+'_jGraduate_Radius" class="jGraduate_SliderBar jGraduate_Radius" title="Click to set radius"><img id="'+ar+'_jGraduate_RadiusArrows" class="jGraduate_RadiusArrows" src="'+or.images.clientPath+'rangearrows2.gif"></div><label><input type="text" id="'+ar+'_jGraduate_RadiusInput" size="3" value="100"/>%</label></div><div class="jGraduate_Slider jGraduate_EllipField jGraduate_rg_field"><label class="prelabel">Ellip:</label><div id="'+ar+'_jGraduate_Ellip" class="jGraduate_SliderBar jGraduate_Ellip" title="Click to set Ellip"><img id="'+ar+'_jGraduate_EllipArrows" class="jGraduate_EllipArrows" src="'+or.images.clientPath+'rangearrows2.gif"></div><label><input type="text" id="'+ar+'_jGraduate_EllipInput" size="3" value="0"/>%</label></div><div class="jGraduate_Slider jGraduate_AngleField jGraduate_rg_field"><label class="prelabel">Angle:</label><div id="'+ar+'_jGraduate_Angle" class="jGraduate_SliderBar jGraduate_Angle" title="Click to set Angle"><img id="'+ar+'_jGraduate_AngleArrows" class="jGraduate_AngleArrows" src="'+or.images.clientPath+'rangearrows2.gif"></div><label><input type="text" id="'+ar+'_jGraduate_AngleInput" size="3" value="0"/>deg</label></div><div class="jGraduate_Slider jGraduate_OpacField"><label class="prelabel">Opac:</label><div id="'+ar+'_jGraduate_Opac" class="jGraduate_SliderBar jGraduate_Opac" title="Click to set Opac"><img id="'+ar+'_jGraduate_OpacArrows" class="jGraduate_OpacArrows" src="'+or.images.clientPath+'rangearrows2.gif"></div><label><input type="text" id="'+ar+'_jGraduate_OpacInput" size="3" value="100"/>%</label></div></div><div class="jGraduate_OkCancel"><input type="button" id="'+ar+'_jGraduate_Ok" class="jGraduate_Ok" value="OK"/><input type="button" id="'+ar+'_jGraduate_Cancel" class="jGraduate_Cancel" value="Cancel"/></div>');var Ar=256,fr={},gr=145;er(".jGraduate_SliderBar").width(gr);var mr,_r=er("#"+ar+"_jGraduate_GradContainer")[0],vr=mkElem("svg",{id:ar+"_jgraduate_svg",width:Ar,height:Ar,xmlns:LP},_r),yr=ir.paint.type,br=ir.paint[yr],wr=br,Sr=ir.paint.alpha,xr="solidColor"===yr;switch(yr){case"solidColor":case"linearGradient":if(xr||(wr.id=ar+"_lg_jgraduate_grad",br=wr=vr.appendChild(wr)),mkElem("radialGradient",{id:ar+"_rg_jgraduate_grad"},vr),"linearGradient"===yr)break;case"radialGradient":xr||(wr.id=ar+"_rg_jgraduate_grad",br=wr=vr.appendChild(wr)),mkElem("linearGradient",{id:ar+"_lg_jgraduate_grad"},vr)}if(xr){br=wr=er("#"+ar+"_lg_jgraduate_grad")[0],mkStop(0,"#"+(ur=ir.paint[yr]),1);var kr=_typeof(or.newstop);if("string"===kr)switch(or.newstop){case"same":mkStop(1,"#"+ur,1);break;case"inverse":for(var Cr="",Br=0;Br<6;Br+=2){var Er=(255-Number.parseInt(ur.substr(Br,2),16)).toString(16);Er.length<2&&(Er=0+Er),Cr+=Er}mkStop(1,"#"+Cr,1);break;case"white":mkStop(1,"#ffffff",1);break;case"black":mkStop(1,"#000000",1)}else if("object"===kr){var Nr="opac"in or.newstop?or.newstop.opac:1;mkStop(1,or.newstop.color||"#"+ur,Nr)}}var Lr,Tr=Number.parseFloat(br.getAttribute("x1")||0),Pr=Number.parseFloat(br.getAttribute("y1")||0),Fr=Number.parseFloat(br.getAttribute("x2")||1),Ur=Number.parseFloat(br.getAttribute("y2")||0),Ir=Number.parseFloat(br.getAttribute("cx")||.5),Rr=Number.parseFloat(br.getAttribute("cy")||.5),Mr=Number.parseFloat(br.getAttribute("fx")||Ir),Or=Number.parseFloat(br.getAttribute("fy")||Rr),Qr=mkElem("rect",{id:ar+"_jgraduate_rect",x:0,y:0,width:256,height:256,fill:"url(#"+ar+"_jgraduate_grad)","fill-opacity":Sr/100},vr),Dr=er("<div/>").attr({class:"grad_coord jGraduate_lg_field",title:"Begin Stop"}).text(1).css({top:Pr*Ar,left:Tr*Ar}).data("coord","start").appendTo(_r),jr=Dr.clone().text(2).css({top:Ur*Ar,left:Fr*Ar}).attr("title","End stop").data("coord","end").appendTo(_r),Hr=er("<div/>").attr({class:"grad_coord jGraduate_rg_field",title:"Center stop"}).text("C").css({top:Rr*Ar,left:Ir*Ar}).data("coord","center").appendTo(_r),Gr=Hr.clone().text("F").css({top:Or*Ar,left:Mr*Ar,display:"none"}).attr("title","Focus point").data("coord","focus").appendTo(_r);Gr[0].id=ar+"_jGraduate_focusCoord",er.each(["x1","y1","x2","y2","cx","cy","fx","fy"],(function(tr,rr){var nr=isNaN(rr[1]),ir=wr.getAttribute(rr);ir||(ir=nr?"0.5":"x2"===rr?"1.0":"0.0"),fr[rr]=er("#"+ar+"_jGraduate_"+rr).val(ir).change((function(){isNaN(Number.parseFloat(this.value))||this.value<0?this.value=0:this.value>1&&(this.value=1),("f"!==rr[0]||Lr)&&(nr&&"radialGradient"===yr||!nr&&"linearGradient"===yr)&&wr.setAttribute(rr,this.value);var er=nr?"c"===rr[0]?Hr:Gr:"1"===rr[1]?Dr:jr,tr=rr.includes("x")?"left":"top";er.css(tr,this.value*Ar)})).change()}));var Vr,zr,Kr,qr,Wr=er("#"+ar+"_jGraduate_StopSlider"),Xr=mkElem("path",{d:"m9.75,-6l-19.5,19.5m0,-19.5l19.5,19.5",fill:"none",stroke:"#D00","stroke-width":5,display:"none"},void 0),Yr=1,Jr=1,$r=0,Zr=Ir,Tn=Rr,Un=mkElem("svg",{width:"100%",height:45},Wr[0]),Qn=mkElem("pattern",{width:16,height:16,patternUnits:"userSpaceOnUse",id:"jGraduate_trans"},Un),Dn=mkElem("image",{width:16,height:16},Qn),Hn=or.images.clientPath+"map-opacity.png";Dn.setAttributeNS(TP,"xlink:href",Hn),er(Un).click((function(er){if(qr=Wr.offset(),"path"!==er.target.tagName){var tr=er.pageX-qr.left-8;mkStop((tr=tr<10?10:tr>266?266:tr)/Ar,0,0,!0),er.stopPropagation()}})),er(Un).mouseover((function(){Un.append(Xr)})),mr=mkElem("g",{},Un),mkElem("line",{x1:10,y1:15,x2:266,y2:15,"stroke-width":2,stroke:"#000"},Un);var Gn,Vn,zn,Kn,Wn=pr.find(".jGraduate_spreadMethod").change((function(){wr.setAttribute("spreadMethod",er(this).val())})),Xn=null,Yn=function onCoordDrag(er){var tr=er.pageX-Gn.left,rr=er.pageY-Gn.top;tr=tr<0?0:tr>Ar?Ar:tr,rr=rr<0?0:rr>Ar?Ar:rr,Xn.css("left",tr).css("top",rr);var nr=tr/256,ir=rr/256,or=Xn.data("coord"),ar=wr;switch(or){case"start":fr.x1.val(nr),fr.y1.val(ir),ar.setAttribute("x1",nr),ar.setAttribute("y1",ir);break;case"end":fr.x2.val(nr),fr.y2.val(ir),ar.setAttribute("x2",nr),ar.setAttribute("y2",ir);break;case"center":fr.cx.val(nr),fr.cy.val(ir),ar.setAttribute("cx",nr),ar.setAttribute("cy",ir),Zr=nr,Tn=ir,xform();break;case"focus":fr.fx.val(nr),fr.fy.val(ir),ar.setAttribute("fx",nr),ar.setAttribute("fy",ir),xform()}er.preventDefault()},Jn=function onCoordUp(){Xn=null,dr.unbind("mousemove",Yn).unbind("mouseup",onCoordUp)},$n=(Vr=wr.getElementsByTagNameNS(LP,"stop")).length;if($n<2){for(;$n<2;)wr.append(document.createElementNS(LP,"stop")),++$n;Vr=wr.getElementsByTagNameNS(LP,"stop")}for(var Zn=0;Zn<$n;Zn++)mkStop(0,0,0,0,Vr[Zn]);if(Wn.val(wr.getAttribute("spreadMethod")||"pad"),Lr=!1,Qr.setAttribute("fill-opacity",Sr/100),er("#"+ar+" div.grad_coord").mousedown((function(tr){tr.preventDefault(),Xn=er(this),Gn=Xn.parent().offset(),dr.mousemove(Yn).mouseup(Jn)})),er("#"+ar+"_jGraduate_Ok").bind("click",(function(){ir.paint.type=yr,ir.paint[yr]=wr.cloneNode(!0),ir.paint.solidColor=null,lr()})),er("#"+ar+"_jGraduate_Cancel").bind("click",(function(er){cr()})),"radialGradient"===yr&&(Lr?Gr.show():(Gr.hide(),fr.fx.val(""),fr.fy.val(""))),er("#"+ar+"_jGraduate_match_ctr")[0].checked=!Lr,er("#"+ar+"_jGraduate_match_ctr").change((function(){Lr=!this.checked,Gr.toggle(Lr),fr.fx.val(""),fr.fy.val("");var er=wr;if(Lr){var tr=Vn||.5,rr=zn||.5;er.setAttribute("fx",tr),er.setAttribute("fy",rr),fr.fx.val(tr),fr.fy.val(rr)}else Vn=er.getAttribute("fx"),zn=er.getAttribute("fy"),er.removeAttribute("fx"),er.removeAttribute("fy")})),($n=(Vr=wr.getElementsByTagNameNS(LP,"stop")).length)<2){for(;$n<2;)wr.append(document.createElementNS(LP,"stop")),++$n;Vr=wr.getElementsByTagNameNS(LP,"stop")}var ei=0,ti=0;if("radialGradient"===yr){var ri=wr.gradientTransform.baseVal;if(2===ri.numberOfItems){var ni=ri.getItem(0),ii=ri.getItem(1);if(2===ni.type&&3===ii.type){var oi=ii.matrix;1!==oi.a?ei=Math.round(100*-(1-oi.a)):1!==oi.d&&(ei=Math.round(100*(1-oi.d)))}}else if(3===ri.numberOfItems){var ai=ri.getItem(0),si=ri.getItem(1),li=ri.getItem(2);if(4===ai.type&&2===si.type&&3===li.type){ti=Math.round(ai.angle);var ui=li.matrix;1!==ui.a?ei=Math.round(100*-(1-ui.a)):1!==ui.d&&(ei=Math.round(100*(1-ui.d)))}}}var di={radius:{handle:"#"+ar+"_jGraduate_RadiusArrows",input:"#"+ar+"_jGraduate_RadiusInput",val:100*(wr.getAttribute("r")||.5)},opacity:{handle:"#"+ar+"_jGraduate_OpacArrows",input:"#"+ar+"_jGraduate_OpacInput",val:ir.paint.alpha||100},ellip:{handle:"#"+ar+"_jGraduate_EllipArrows",input:"#"+ar+"_jGraduate_EllipInput",val:ei},angle:{handle:"#"+ar+"_jGraduate_AngleArrows",input:"#"+ar+"_jGraduate_AngleInput",val:ti}};er.each(di,(function(tr,rr){var nr=er(rr.handle);nr.mousedown((function(ir){var or=nr.parent();Kn={type:tr,elem:nr,input:er(rr.input),parent:or,offset:or.offset()},dr.mousemove(hi).mouseup(pi),ir.preventDefault()})),er(rr.input).val(rr.val).change((function(){var er="radialGradient"===yr,rr=Number(this.value),or=0;switch(tr){case"radius":er&&wr.setAttribute("r",rr/100),or=Math.pow(rr/100,.4)/2*gr;break;case"opacity":ir.paint.alpha=rr,Qr.setAttribute("fill-opacity",rr/100),or=1.45*rr;break;case"ellip":if(Yr=Jr=1,0===rr){or=72.5;break}rr>99.5&&(rr=99.5),rr>0?Jr=1-rr/100:Yr=-rr/100-1,or=gr*((rr+100)/2)/100,er&&xform();break;case"angle":or=($r=rr)/180,or+=.5,or*=gr,er&&xform()}or>gr?or=gr:or<0&&(or=0),nr.css({"margin-left":or-5})})).change()}));for(var hi=function dragSlider(er){!function setSlider(er){var tr=Kn.offset.left,rr=Kn.parent,nr=er.pageX-tr-Number.parseInt(rr.css("border-left-width"));nr>gr&&(nr=gr),nr<=0&&(nr=0);var or=nr-5;switch(nr/=gr,Kn.type){case"radius":(nr=Math.pow(2*nr,2.5))>.98&&nr<1.02&&(nr=1),nr<=.01&&(nr=.01),wr.setAttribute("r",nr);break;case"opacity":ir.paint.alpha=Number.parseInt(100*nr),Qr.setAttribute("fill-opacity",nr);break;case"ellip":Yr=1,Jr=1,nr<.5?Yr=(nr/=.5)<=0?.01:nr:nr>.5&&(Jr=(nr=2-(nr/=.5))<=0?.01:nr),xform(),Jr===1+(nr-=1)&&(nr=Math.abs(nr));break;case"angle":nr-=.5,$r=nr*=180,xform(),nr/=100}Kn.elem.css({"margin-left":or}),nr=Math.round(100*nr),Kn.input.val(nr)}(er),er.preventDefault()},pi=function stopSlider(er){dr.unbind("mousemove",hi).unbind("mouseup",stopSlider),Kn=null},Ai=(255*ir.paint.alpha/100).toString(16);Ai.length<2;)Ai="0"+Ai;Ai=Ai.split(".")[0],ur="none"===ir.paint.solidColor?"":ir.paint.solidColor+Ai,xr||(ur=Vr[0].getAttribute("stop-color")),er.extend(er.fn.jPicker.defaults.window,{alphaSupport:!0,effects:{type:"show",speed:0}}),hr.jPicker({window:{title:or.window.pickerTitle},images:{clientPath:or.images.clientPath},color:{active:ur,alphaSupport:!0}},(function(er){ir.paint.type="solidColor",ir.paint.alpha=er.val("ahex")?Math.round(er.val("a")/255*100):100,ir.paint.solidColor=er.val("hex")?er.val("hex"):"none",ir.paint.radialGradient=null,lr()}),null,(function(){cr()}));var fi,gi=er(sr+" .jGraduate_tabs li");switch(gi.click((function(){gi.removeClass("jGraduate_tab_current"),er(this).addClass("jGraduate_tab_current"),er(sr+" > div").hide();var tr=er(this).attr("data-type");if(er(sr+" .jGraduate_gradPick").show(),"rg"===tr||"lg"===tr){er(".jGraduate_"+tr+"_field").show(),er(".jGraduate_"+("lg"===tr?"rg":"lg")+"_field").hide(),er("#"+ar+"_jgraduate_rect")[0].setAttribute("fill","url(#"+ar+"_"+tr+"_jgraduate_grad)"),yr="lg"===tr?"linearGradient":"radialGradient",er("#"+ar+"_jGraduate_OpacInput").val(ir.paint.alpha).change();var rr=er("#"+ar+"_"+tr+"_jgraduate_grad")[0];if(wr!==rr){var nr=er(wr).find("stop");er(rr).empty().append(nr),wr=rr;var or=Wn.val();wr.setAttribute("spreadMethod",or)}Lr="rg"===tr&&null!==wr.getAttribute("fx")&&!(Ir===Mr&&Rr===Or),er("#"+ar+"_jGraduate_focusCoord").toggle(Lr),Lr&&(er("#"+ar+"_jGraduate_match_ctr")[0].checked=!1)}else er(sr+" .jGraduate_gradPick").hide(),er(sr+" .jGraduate_colPick").show()})),er(sr+" > div").hide(),gi.removeClass("jGraduate_tab_current"),ir.paint.type){case"linearGradient":fi=er(sr+" .jGraduate_tab_lingrad");break;case"radialGradient":fi=er(sr+" .jGraduate_tab_radgrad");break;default:fi=er(sr+" .jGraduate_tab_color")}ir.show(),setTimeout((function(){fi.addClass("jGraduate_tab_current").click()}),10)}else er.alert("Container element must have an id attribute to maintain unique id strings for sub-elements.");function mkStop(tr,rr,nr,ir,sr){var lr=sr||mkElem("stop",{"stop-color":rr,"stop-opacity":nr,offset:tr},wr);sr?(rr=sr.getAttribute("stop-color"),nr=sr.getAttribute("stop-opacity"),tr=sr.getAttribute("offset")):wr.append(lr),null===nr&&(nr=1);var cr="M-6.2,0.9c3.6-4,6.7-4.3,6.7-12.4c-0.2,7.9,3.1,8.8,6.5,12.4c3.5,3.8,2.9,9.6,0,12.3c-3.1,2.8-10.4,2.7-13.2,0C-9.6,9.9-9.4,4.4-6.2,0.9z",ur=mkElem("path",{d:cr,fill:"url(#jGraduate_trans)",transform:"translate("+(10+tr*Ar)+", 26)"},mr),hr=mkElem("path",{d:cr,fill:rr,"fill-opacity":nr,transform:"translate("+(10+tr*Ar)+", 26)",stroke:"#000","stroke-width":1.5},mr);return er(hr).mousedown((function(er){return selectStop(this),Kr=zr,dr.mousemove(dragColor).mouseup(remDrags),qr=Wr.offset(),er.preventDefault(),!1})).data("stop",lr).data("bg",ur).dblclick((function(){er("div.jGraduate_LightBox").show();for(var tr=this,nr=Number(lr.getAttribute("stop-opacity"))||1,ir=lr.getAttribute("stop-color")||1,sr=(255*Number.parseFloat(nr)).toString(16);sr.length<2;)sr="0"+sr;rr=ir.substr(1)+sr,er("#"+ar+"_jGraduate_stopPicker").css({left:100,bottom:15}).jPicker({window:{title:"Pick the start color and opacity for the gradient"},images:{clientPath:or.images.clientPath},color:{active:rr,alphaSupport:!0}},(function(rr,or){ir=rr.val("hex")?"#"+rr.val("hex"):"none",nr=null!==rr.val("a")?rr.val("a")/256:1,tr.setAttribute("fill",ir),tr.setAttribute("fill-opacity",nr),lr.setAttribute("stop-color",ir),lr.setAttribute("stop-opacity",nr),er("div.jGraduate_LightBox").hide(),er("#"+ar+"_jGraduate_stopPicker").hide()}),null,(function(){er("div.jGraduate_LightBox").hide(),er("#"+ar+"_jGraduate_stopPicker").hide()}))})),er(wr).find("stop").each((function(){var nr=er(this);if(Number(this.getAttribute("offset"))>tr){if(!rr){var ir=this.getAttribute("stop-color"),or=this.getAttribute("stop-opacity");lr.setAttribute("stop-color",ir),hr.setAttribute("fill",ir),lr.setAttribute("stop-opacity",null===or?1:or),hr.setAttribute("fill-opacity",null===or?1:or)}return nr.before(lr),!1}return!0})),ir&&selectStop(hr),lr}function selectStop(er){zr&&zr.setAttribute("stroke","#000"),er.setAttribute("stroke","blue"),zr=er}function remDrags(){dr.unbind("mousemove",dragColor),"none"!==Xr.getAttribute("display")&&function remStop(){Xr.setAttribute("display","none");var tr=er(zr),rr=tr.data("stop"),nr=tr.data("bg");er([zr,rr,nr]).remove()}(),Kr=null}function xform(){var er=$r?"rotate("+$r+","+Zr+","+Tn+") ":"";if(1===Yr&&1===Jr)wr.removeAttribute("gradientTransform");else{var tr=-Zr*(Yr-1),rr=-Tn*(Jr-1);wr.setAttribute("gradientTransform",er+"translate("+tr+","+rr+") scale("+Yr+","+Jr+")")}}function dragColor(tr){var rr=tr.pageX-qr.left,nr=tr.pageY-qr.top,ir="translate("+(rr=rr<10?10:rr>266?266:rr)+", 26)";nr<-60||nr>130?(Xr.setAttribute("display","block"),Xr.setAttribute("transform",ir)):Xr.setAttribute("display","none"),Kr.setAttribute("transform",ir),er.data(Kr,"bg").setAttribute("transform",ir);var or=er.data(Kr,"stop"),ar=(rr-10)/Ar;or.setAttribute("offset",ar);var sr=0;er(wr).find("stop").each((function(tr){var rr=this.getAttribute("offset"),nr=er(this);rr<sr&&(nr.prev().before(nr),Vr=er(wr).find("stop")),sr=rr}))}}))},er},function jQueryPluginSpinButton(er){return er.fn.SpinButton=function(tr){function coord(tr,rr){for(var nr=document.body,ir=tr[rr];(tr=tr.offsetParent)&&tr!==nr;)er.browser.msie&&"relative"===tr.currentStyle.position||(ir+=tr[rr]);return ir}return tr=tr||{},this.each((function(){this.repeating=!1,this.spinCfg={min:isNaN(Number.parseFloat(tr.min))?null:Number(tr.min),max:isNaN(Number.parseFloat(tr.max))?null:Number(tr.max),step:tr.step?Number(tr.step):1,stepfunc:tr.stepfunc||!1,page:tr.page?Number(tr.page):10,upClass:tr.upClass||"up",downClass:tr.downClass||"down",reset:tr.reset||this.value,delay:tr.delay?Number(tr.delay):500,interval:tr.interval?Number(tr.interval):100,_btn_width:20,_direction:null,_delay:null,_repeat:null,callback:tr.callback||null},this.spinCfg.smallStep=tr.smallStep||this.spinCfg.step/2,this.adjustValue=function(er){var tr;tr=isNaN(this.value)?this.spinCfg.reset:"function"==typeof this.spinCfg.stepfunc?this.spinCfg.stepfunc(this,er):Number((Number(this.value)+Number(er)).toFixed(5)),null!==this.spinCfg.min&&(tr=Math.max(tr,this.spinCfg.min)),null!==this.spinCfg.max&&(tr=Math.min(tr,this.spinCfg.max)),this.value=tr,"function"==typeof this.spinCfg.callback&&this.spinCfg.callback(this)},er(this).addClass(tr.spinClass||"spin-button").mousemove((function(rr){var nr=rr.pageX||rr.x,ir=rr.pageY||rr.y,or=rr.target,ar=tr.stateObj.tool_scale||1,sr=er(or).height()/2,lr=nr>coord(or,"offsetLeft")+or.offsetWidth*ar-this.spinCfg._btn_width?ir<coord(or,"offsetTop")+sr*ar?1:-1:0;if(lr!==this.spinCfg._direction){switch(lr){case 1:er(this).removeClass(this.spinCfg.downClass).addClass(this.spinCfg.upClass);break;case-1:er(this).removeClass(this.spinCfg.upClass).addClass(this.spinCfg.downClass);break;default:er(this).removeClass(this.spinCfg.upClass).removeClass(this.spinCfg.downClass)}this.spinCfg._direction=lr}})).mouseout((function(){er(this).removeClass(this.spinCfg.upClass).removeClass(this.spinCfg.downClass),this.spinCfg._direction=null,window.clearInterval(this.spinCfg._repeat),window.clearTimeout(this.spinCfg._delay)})).mousedown((function(er){var tr=this;if(0===er.button&&0!==this.spinCfg._direction){var rr=er.shiftKey?this.spinCfg.smallStep:this.spinCfg.step,nr=function adjust(){tr.adjustValue(tr.spinCfg._direction*rr)};nr(),this.spinCfg._delay=window.setTimeout((function(){nr(),tr.spinCfg._repeat=window.setInterval(nr,tr.spinCfg.interval)}),this.spinCfg.delay)}})).mouseup((function(er){window.clearInterval(this.spinCfg._repeat),window.clearTimeout(this.spinCfg._delay)})).dblclick((function(tr){er.browser.msie&&this.adjustValue(this.spinCfg._direction*this.spinCfg.step)})).keydown((function(er){switch(er.keyCode){case 38:this.adjustValue(this.spinCfg.step);break;case 40:this.adjustValue(-this.spinCfg.step);break;case 33:this.adjustValue(this.spinCfg.page);break;case 34:this.adjustValue(-this.spinCfg.page)}})).keypress((function(er){if(this.repeating)switch(er.keyCode){case 38:this.adjustValue(this.spinCfg.step);break;case 40:this.adjustValue(-this.spinCfg.step);break;case 33:this.adjustValue(this.spinCfg.page);break;case 34:this.adjustValue(-this.spinCfg.page)}else this.repeating=!0})).keyup((function(er){switch(this.repeating=!1,er.keyCode){case 38:case 40:case 33:case 34:case 13:this.adjustValue(0)}})).bind("mousewheel",(function(er){er.wheelDelta>=120?this.adjustValue(this.spinCfg.step):er.wheelDelta<=-120&&this.adjustValue(-this.spinCfg.step),er.preventDefault()})).change((function(er){this.adjustValue(0)})),this.addEventListener&&this.addEventListener("DOMMouseScroll",(function(er){er.detail>0?this.adjustValue(-this.spinCfg.step):er.detail<0&&this.adjustValue(this.spinCfg.step),er.preventDefault()}))}))},er},function jQueryContextMenu(er){var tr=er(window),rr=er(document);return er.extend(er.fn,{contextMenu:function contextMenu(nr,ir){return void 0!==nr.menu&&(void 0===nr.inSpeed&&(nr.inSpeed=150),void 0===nr.outSpeed&&(nr.outSpeed=75),0===nr.inSpeed&&(nr.inSpeed=-1),0===nr.outSpeed&&(nr.outSpeed=-1),er(this).each((function(){var or=er(this),ar=er(or).offset(),sr=er("#"+nr.menu);sr.addClass("contextMenu"),er(this).bind("mousedown",(function(lr){er(this).mouseup((function(cr){var ur=er(this);if(ur.unbind("mouseup"),2===lr.button||nr.allowLeft||lr.ctrlKey&&qd()){if(cr.stopPropagation(),er(".contextMenu").hide(),or.hasClass("disabled"))return!1;var dr=cr.pageX,hr=cr.pageY,pr=tr.width()-sr.width(),Ar=tr.height()-sr.height();dr>pr-15&&(dr=pr-15),hr>Ar-30&&(hr=Ar-30),rr.unbind("click"),sr.css({top:hr,left:dr}).fadeIn(nr.inSpeed),sr.find("A").mouseover((function(){sr.find("LI.hover").removeClass("hover"),er(this).parent().addClass("hover")})).mouseout((function(){sr.find("LI.hover").removeClass("hover")})),rr.keypress((function(er){switch(er.keyCode){case 38:sr.find("LI.hover").length?(sr.find("LI.hover").removeClass("hover").prevAll("LI:not(.disabled)").eq(0).addClass("hover"),sr.find("LI.hover").length||sr.find("LI:last").addClass("hover")):sr.find("LI:last").addClass("hover");break;case 40:sr.find("LI.hover").length?(sr.find("LI.hover").removeClass("hover").nextAll("LI:not(.disabled)").eq(0).addClass("hover"),sr.find("LI.hover").length||sr.find("LI:first").addClass("hover")):sr.find("LI:first").addClass("hover");break;case 13:sr.find("LI.hover A").trigger("click");break;case 27:rr.trigger("click")}})),sr.find("A").unbind("mouseup"),sr.find("LI:not(.disabled) A").mouseup((function(){return rr.unbind("click").unbind("keypress"),er(".contextMenu").hide(),ir&&ir(er(this).attr("href").substr(1),er(ur),{x:dr-ar.left,y:hr-ar.top,docX:dr,docY:hr}),!1})),setTimeout((function(){rr.click((function(){return rr.unbind("click").unbind("keypress"),sr.fadeOut(nr.outSpeed),!1}))}),0)}}))})),er.browser.mozilla?er("#"+nr.menu).each((function(){er(this).css({MozUserSelect:"none"})})):er.browser.msie?er("#"+nr.menu).each((function(){er(this).bind("selectstart.disableTextSelect",(function(){return!1}))})):er("#"+nr.menu).each((function(){er(this).bind("mousedown.disableTextSelect",(function(){return!1}))})),er(or).add(er("UL.contextMenu")).bind("contextmenu",(function(){return!1}))})),er(this))},disableContextMenuItems:function disableContextMenuItems(tr){return void 0===tr?(er(this).find("LI").addClass("disabled"),er(this)):(er(this).each((function(){if(void 0!==tr){var rr,nr=_createForOfIteratorHelper(tr.split(","));try{for(nr.s();!(rr=nr.n()).done;){var ir=rr.value;er(this).find('A[href="'+ir+'"]').parent().addClass("disabled")}}catch(er){nr.e(er)}finally{nr.f()}}})),er(this))},enableContextMenuItems:function enableContextMenuItems(tr){return void 0===tr?(er(this).find("LI.disabled").removeClass("disabled"),er(this)):(er(this).each((function(){if(void 0!==tr){var rr,nr=_createForOfIteratorHelper(tr.split(","));try{for(nr.s();!(rr=nr.n()).done;){var ir=rr.value;er(this).find('A[href="'+ir+'"]').parent().removeClass("disabled")}}catch(er){nr.e(er)}finally{nr.f()}}})),er(this))},disableContextMenu:function disableContextMenu(){return er(this).each((function(){er(this).addClass("disabled")})),er(this)},enableContextMenu:function enableContextMenu(){return er(this).each((function(){er(this).removeClass("disabled")})),er(this)},destroyContextMenu:function destroyContextMenu(){return er(this).each((function(){er(this).unbind("mousedown").unbind("mouseup")})),er(this)}}),er},function jPicker(er){var tr=function Slider(tr,rr){_classCallCheck(this,Slider);var nr=this;function fireChangeEvents(er){fr.forEach((function(tr){tr.call(nr,nr,er)}))}function mouseDown(rr){var ar=tr.offset();ir={l:0|ar.left,t:0|ar.top},clearTimeout(or),or=setTimeout((function(){setValuesFromMousePosition.call(nr,rr)}),0),er(document).bind("mousemove",mouseMove).bind("mouseup",mouseUp),rr.preventDefault()}function mouseMove(er){return clearTimeout(or),or=setTimeout((function(){setValuesFromMousePosition.call(nr,er)}),0),er.stopPropagation(),er.preventDefault(),!1}function mouseUp(tr){return er(document).unbind("mouseup",mouseUp).unbind("mousemove",mouseMove),tr.stopPropagation(),tr.preventDefault(),!1}function setValuesFromMousePosition(er){var rr=tr.w,or=tr.h,ar=er.pageX-ir.l,sr=er.pageY-ir.t;ar<0?ar=0:ar>rr&&(ar=rr),sr<0?sr=0:sr>or&&(sr=or),val.call(nr,"xy",{x:ar/rr*ur+lr,y:sr/or*pr+dr})}function val(er,tr,rr){if(!(void 0!==tr))switch(FP(er)&&(er="xy"),er.toLowerCase()){case"x":return ar;case"y":return sr;case"xy":default:return{x:ar,y:sr}}if(FP(rr)||rr!==nr){var ir,or,ur=!1;switch(FP(er)&&(er="xy"),er.toLowerCase()){case"x":ir=tr&&(tr.x&&0|tr.x||0|tr)||0;break;case"y":or=tr&&(tr.y&&0|tr.y||0|tr)||0;break;case"xy":default:ir=tr&&tr.x&&0|tr.x||0,or=tr&&tr.y&&0|tr.y||0}FP(ir)||(ir<lr?ir=lr:ir>cr&&(ir=cr),ar!==ir&&(ar=ir,ur=!0)),FP(or)||(or<dr?or=dr:or>hr&&(or=hr),sr!==or&&(sr=or,ur=!0)),ur&&fireChangeEvents.call(nr,rr||nr)}}function bind(er){"function"==typeof er&&fr.push(er)}var ir,or,ar=0,sr=0,lr=0,cr=100,ur=100,dr=0,hr=100,pr=100,Ar=tr.find("img:first"),fr=[];er.extend(!0,nr,{val:val,range:function range(er,tr){var rr,nr,ir,or;if(!(void 0!==tr))switch(FP(er)&&(er="all"),er.toLowerCase()){case"minx":return lr;case"maxx":return cr;case"rangex":return{minX:lr,maxX:cr,rangeX:ur};case"miny":return dr;case"maxy":return hr;case"rangey":return{minY:dr,maxY:hr,rangeY:pr};case"all":default:return{minX:lr,maxX:cr,rangeX:ur,minY:dr,maxY:hr,rangeY:pr}}switch(FP(er)&&(er="all"),er.toLowerCase()){case"minx":rr=tr&&(tr.minX&&0|tr.minX||0|tr)||0;break;case"maxx":nr=tr&&(tr.maxX&&0|tr.maxX||0|tr)||0;break;case"rangex":rr=tr&&tr.minX&&0|tr.minX||0,nr=tr&&tr.maxX&&0|tr.maxX||0;break;case"miny":ir=tr&&(tr.minY&&0|tr.minY||0|tr)||0;break;case"maxy":or=tr&&(tr.maxY&&0|tr.maxY||0|tr)||0;break;case"rangey":ir=tr&&tr.minY&&0|tr.minY||0,or=tr&&tr.maxY&&0|tr.maxY||0;break;case"all":default:rr=tr&&tr.minX&&0|tr.minX||0,nr=tr&&tr.maxX&&0|tr.maxX||0,ir=tr&&tr.minY&&0|tr.minY||0,or=tr&&tr.maxY&&0|tr.maxY||0}FP(rr)||lr===rr||(ur=cr-(lr=rr)),FP(nr)||cr===nr||(ur=(cr=nr)-lr),FP(ir)||dr===ir||(pr=hr-(dr=ir)),FP(or)||hr===or||(pr=(hr=or)-dr)},bind:bind,unbind:function unbind(er){if("function"==typeof er)for(var tr;tr=fr.includes(er);)fr.splice(tr,1)},destroy:function destroy(){er(document).unbind("mouseup",mouseUp).unbind("mousemove",mouseMove),tr.unbind("mousedown",mouseDown),tr=null,Ar=null,fr=null}}),Ar.src=rr.arrow&&rr.arrow.image,Ar.w=rr.arrow&&rr.arrow.width||Ar.width(),Ar.h=rr.arrow&&rr.arrow.height||Ar.height(),tr.w=rr.map&&rr.map.width||tr.width(),tr.h=rr.map&&rr.map.height||tr.height(),tr.bind("mousedown",mouseDown),bind.call(nr,(function draw(){var er=tr.w,rr=tr.h,nr=Ar.w,ir=Ar.h,or=0,lr=0;setTimeout((function(){ur>0&&(or=ar===cr?er:ar/ur*er|0),pr>0&&(lr=sr===hr?rr:sr/pr*rr|0),nr>=er?or=(er>>1)-(nr>>1):or-=nr>>1,ir>=rr?lr=(rr>>1)-(ir>>1):lr-=ir>>1,Ar.css({left:or+"px",top:lr+"px"})}))}))},rr=function ColorValuePicker(tr,rr,nr,ir){_classCallCheck(this,ColorValuePicker);var or=this,ar=tr.find("td.Text input");function keyDown(er){if(""!==er.target.value||er.target===Ar.get(0)||(FP(nr)||er.target===nr.get(0))&&!FP(nr)){if(!validateKey(er))return er;switch(er.target){case sr.get(0):switch(er.keyCode){case 38:return sr.val(setValueInRange.call(or,1+(sr.val()<<0),0,255)),rr.val("r",sr.val(),er.target),!1;case 40:return sr.val(setValueInRange.call(or,(sr.val()<<0)-1,0,255)),rr.val("r",sr.val(),er.target),!1}break;case lr.get(0):switch(er.keyCode){case 38:return lr.val(setValueInRange.call(or,1+(lr.val()<<0),0,255)),rr.val("g",lr.val(),er.target),!1;case 40:return lr.val(setValueInRange.call(or,(lr.val()<<0)-1,0,255)),rr.val("g",lr.val(),er.target),!1}break;case cr.get(0):switch(er.keyCode){case 38:return cr.val(setValueInRange.call(or,1+(cr.val()<<0),0,255)),rr.val("b",cr.val(),er.target),!1;case 40:return cr.val(setValueInRange.call(or,(cr.val()<<0)-1,0,255)),rr.val("b",cr.val(),er.target),!1}break;case ur&&ur.get(0):switch(er.keyCode){case 38:return ur.val(setValueInRange.call(or,Number.parseFloat(ur.val())+1,0,100)),rr.val("a",toFixedNumeric(255*ur.val()/100,ir),er.target),!1;case 40:return ur.val(setValueInRange.call(or,Number.parseFloat(ur.val())-1,0,100)),rr.val("a",toFixedNumeric(255*ur.val()/100,ir),er.target),!1}break;case dr.get(0):switch(er.keyCode){case 38:return dr.val(setValueInRange.call(or,1+(dr.val()<<0),0,360)),rr.val("h",dr.val(),er.target),!1;case 40:return dr.val(setValueInRange.call(or,(dr.val()<<0)-1,0,360)),rr.val("h",dr.val(),er.target),!1}break;case hr.get(0):switch(er.keyCode){case 38:return hr.val(setValueInRange.call(or,1+(hr.val()<<0),0,100)),rr.val("s",hr.val(),er.target),!1;case 40:return hr.val(setValueInRange.call(or,(hr.val()<<0)-1,0,100)),rr.val("s",hr.val(),er.target),!1}break;case pr.get(0):switch(er.keyCode){case 38:return pr.val(setValueInRange.call(or,1+(pr.val()<<0),0,100)),rr.val("v",pr.val(),er.target),!1;case 40:return pr.val(setValueInRange.call(or,(pr.val()<<0)-1,0,100)),rr.val("v",pr.val(),er.target),!1}}}}function keyUp(er){if(""!==er.target.value||er.target===Ar.get(0)||(FP(nr)||er.target===nr.get(0))&&!FP(nr)){if(!validateKey(er))return er;switch(er.target){case sr.get(0):sr.val(setValueInRange.call(or,sr.val(),0,255)),rr.val("r",sr.val(),er.target);break;case lr.get(0):lr.val(setValueInRange.call(or,lr.val(),0,255)),rr.val("g",lr.val(),er.target);break;case cr.get(0):cr.val(setValueInRange.call(or,cr.val(),0,255)),rr.val("b",cr.val(),er.target);break;case ur&&ur.get(0):ur.val(setValueInRange.call(or,ur.val(),0,100)),rr.val("a",toFixedNumeric(255*ur.val()/100,ir),er.target);break;case dr.get(0):dr.val(setValueInRange.call(or,dr.val(),0,360)),rr.val("h",dr.val(),er.target);break;case hr.get(0):hr.val(setValueInRange.call(or,hr.val(),0,100)),rr.val("s",hr.val(),er.target);break;case pr.get(0):pr.val(setValueInRange.call(or,pr.val(),0,100)),rr.val("v",pr.val(),er.target);break;case Ar.get(0):Ar.val(Ar.val().replace(/[^a-fA-F\d]/g,"").toLowerCase().substring(0,6)),nr&&nr.val(Ar.val()),rr.val("hex",""!==Ar.val()?Ar.val():null,er.target);break;case nr&&nr.get(0):nr.val(nr.val().replace(/[^a-fA-F\d]/g,"").toLowerCase().substring(0,6)),Ar.val(nr.val()),rr.val("hex",""!==nr.val()?nr.val():null,er.target);break;case fr&&fr.get(0):fr.val(fr.val().replace(/[^a-fA-F\d]/g,"").toLowerCase().substring(0,2)),rr.val("a",FP(fr.val())?null:Number.parseInt(fr.val(),16),er.target)}}}function blur(er){if(!FP(rr.val()))switch(er.target){case sr.get(0):sr.val(rr.val("r"));break;case lr.get(0):lr.val(rr.val("g"));break;case cr.get(0):cr.val(rr.val("b"));break;case ur&&ur.get(0):ur.val(toFixedNumeric(100*rr.val("a")/255,ir));break;case dr.get(0):dr.val(rr.val("h"));break;case hr.get(0):hr.val(rr.val("s"));break;case pr.get(0):pr.val(rr.val("v"));break;case Ar.get(0):case nr&&nr.get(0):Ar.val(rr.val("hex")),nr&&nr.val(rr.val("hex"));break;case fr&&fr.get(0):fr.val(rr.val("ahex").substring(6))}}function validateKey(er){switch(er.keyCode){case 9:case 16:case 29:case 37:case 39:return!1;case"c".charCodeAt():case"v".charCodeAt():if(er.ctrlKey)return!1}return!0}function setValueInRange(er,tr,rr){return""===er||isNaN(er)?tr:er>rr?rr:er<tr?tr:er}function colorChanged(er,tr){var rr=er.val("all");tr!==sr.get(0)&&sr.val(FP(rr)?"":rr.r),tr!==lr.get(0)&&lr.val(FP(rr)?"":rr.g),tr!==cr.get(0)&&cr.val(FP(rr)?"":rr.b),ur&&tr!==ur.get(0)&&ur.val(FP(rr)?"":toFixedNumeric(100*rr.a/255,ir)),tr!==dr.get(0)&&dr.val(FP(rr)?"":rr.h),tr!==hr.get(0)&&hr.val(FP(rr)?"":rr.s),tr!==pr.get(0)&&pr.val(FP(rr)?"":rr.v),tr!==Ar.get(0)&&(nr&&tr!==nr.get(0)||!nr)&&Ar.val(FP(rr)?"":rr.hex),nr&&tr!==nr.get(0)&&tr!==Ar.get(0)&&nr.val(FP(rr)?"":rr.hex),fr&&tr!==fr.get(0)&&fr.val(FP(rr)?"":rr.ahex.substring(6))}var sr=ar.eq(3),lr=ar.eq(4),cr=ar.eq(5),ur=ar.length>7?ar.eq(6):null,dr=ar.eq(0),hr=ar.eq(1),pr=ar.eq(2),Ar=ar.eq(ar.length>7?7:6),fr=ar.length>7?ar.eq(8):null;er.extend(!0,or,{destroy:function destroy(){sr.add(lr).add(cr).add(ur).add(dr).add(hr).add(pr).add(Ar).add(nr).add(fr).unbind("keyup",keyUp).unbind("blur",blur),sr.add(lr).add(cr).add(ur).add(dr).add(hr).add(pr).unbind("keydown",keyDown),rr.unbind(colorChanged),sr=null,lr=null,cr=null,ur=null,dr=null,hr=null,pr=null,Ar=null,fr=null}}),sr.add(lr).add(cr).add(ur).add(dr).add(hr).add(pr).add(Ar).add(nr).add(fr).bind("keyup",keyUp).bind("blur",blur),sr.add(lr).add(cr).add(ur).add(dr).add(hr).add(pr).bind("keydown",keyDown),rr.bind(colorChanged)};er.jPicker={List:[],Color:function Color(tr){var rr=this;function fireChangeEvents(er){for(var tr=0;tr<dr.length;tr++)dr[tr].call(rr,rr,er)}function val(er,tr,dr){var hr=Boolean(tr);if(hr&&""===tr.ahex&&(tr.ahex="00000000"),!hr){var pr;if((FP(er)||""===er)&&(er="all"),FP(nr))return null;switch(er.toLowerCase()){case"ahex":return ar.rgbaToHex({r:nr,g:ir,b:or,a:sr});case"hex":return val("ahex").substring(0,6);case"all":return{r:nr,g:ir,b:or,a:sr,h:lr,s:cr,v:ur,hex:val.call(rr,"hex"),ahex:val.call(rr,"ahex")};default:pr={};var Ar=er.length;_toConsumableArray(er).forEach((function(er){switch(er){case"r":1===Ar?pr=nr:pr.r=nr;break;case"g":1===Ar?pr=ir:pr.g=ir;break;case"b":1===Ar?pr=or:pr.b=or;break;case"a":1===Ar?pr=sr:pr.a=sr;break;case"h":1===Ar?pr=lr:pr.h=lr;break;case"s":1===Ar?pr=cr:pr.s=cr;break;case"v":1===Ar?pr=ur:pr.v=ur}}))}return"object"!==_typeof(pr)||Object.keys(pr).length?pr:val.call(rr,"all")}if(FP(dr)||dr!==rr){FP(er)&&(er="");var fr=!1;if(FP(tr))return FP(nr)||(nr=null,fr=!0),FP(ir)||(ir=null,fr=!0),FP(or)||(or=null,fr=!0),FP(sr)||(sr=null,fr=!0),FP(lr)||(lr=null,fr=!0),FP(cr)||(cr=null,fr=!0),FP(ur)||(ur=null,fr=!0),void(fr&&fireChangeEvents.call(rr,dr||rr));switch(er.toLowerCase()){case"ahex":case"hex":var gr=ar.hexToRgba(tr&&(tr.ahex||tr.hex)||tr||"none");val.call(rr,"rgba",{r:gr.r,g:gr.g,b:gr.b,a:"ahex"===er?gr.a:FP(sr)?255:sr},dr);break;default:if(tr&&(!FP(tr.ahex)||!FP(tr.hex)))return void val.call(rr,"ahex",tr.ahex||tr.hex||"00000000",dr);var mr={},_r=!1,vr=!1;if(void 0===tr.r||er.includes("r")||(er+="r"),void 0===tr.g||er.includes("g")||(er+="g"),void 0===tr.b||er.includes("b")||(er+="b"),void 0===tr.a||er.includes("a")||(er+="a"),void 0===tr.h||er.includes("h")||(er+="h"),void 0===tr.s||er.includes("s")||(er+="s"),void 0===tr.v||er.includes("v")||(er+="v"),_toConsumableArray(er).forEach((function(er){switch(er){case"r":if(vr)return;_r=!0,mr.r=tr.r&&0|tr.r||0|tr||0,mr.r<0?mr.r=0:mr.r>255&&(mr.r=255),nr!==mr.r&&(nr=mr.r,fr=!0);break;case"g":if(vr)return;_r=!0,mr.g=tr&&tr.g&&0|tr.g||tr&&0|tr||0,mr.g<0?mr.g=0:mr.g>255&&(mr.g=255),ir!==mr.g&&(ir=mr.g,fr=!0);break;case"b":if(vr)return;_r=!0,mr.b=tr&&tr.b&&0|tr.b||tr&&0|tr||0,mr.b<0?mr.b=0:mr.b>255&&(mr.b=255),or!==mr.b&&(or=mr.b,fr=!0);break;case"a":mr.a=tr&&!FP(tr.a)?0|tr.a:0|tr,mr.a<0?mr.a=0:mr.a>255&&(mr.a=255),sr!==mr.a&&(sr=mr.a,fr=!0);break;case"h":if(_r)return;vr=!0,mr.h=tr&&tr.h&&0|tr.h||tr&&0|tr||0,mr.h<0?mr.h=0:mr.h>360&&(mr.h=360),lr!==mr.h&&(lr=mr.h,fr=!0);break;case"s":if(_r)return;vr=!0,mr.s=FP(tr.s)?0|tr:0|tr.s,mr.s<0?mr.s=0:mr.s>100&&(mr.s=100),cr!==mr.s&&(cr=mr.s,fr=!0);break;case"v":if(_r)return;vr=!0,mr.v=FP(tr.v)?0|tr:0|tr.v,mr.v<0?mr.v=0:mr.v>100&&(mr.v=100),ur!==mr.v&&(ur=mr.v,fr=!0)}})),fr){if(_r){nr=nr||0,ir=ir||0,or=or||0;var yr=ar.rgbToHsv({r:nr,g:ir,b:or});lr=yr.h,cr=yr.s,ur=yr.v}else if(vr){lr=lr||0,cr=FP(cr)?100:cr,ur=FP(ur)?100:ur;var br=ar.hsvToRgb({h:lr,s:cr,v:ur});nr=br.r,ir=br.g,or=br.b}sr=FP(sr)?255:sr,fireChangeEvents.call(rr,dr||rr)}}}}var nr,ir,or,sr,lr,cr,ur,dr=[];er.extend(!0,rr,{val:val,bind:function bind(er){"function"==typeof er&&dr.push(er)},unbind:function unbind(er){if("function"==typeof er)for(var tr;tr=dr.includes(er);)dr.splice(tr,1)},destroy:function destroy(){dr=null}}),tr&&(FP(tr.ahex)?FP(tr.hex)?FP(tr.r)||FP(tr.g)||FP(tr.b)?FP(tr.h)||FP(tr.s)||FP(tr.v)||val("hsv"+(FP(tr.a)?"":"a"),tr):val("rgb"+(FP(tr.a)?"":"a"),tr):val((FP(tr.a)?"":"a")+"hex",FP(tr.a)?tr:{ahex:tr.hex+ar.intToHex(tr.a)}):val("ahex",tr))},ColorMethods:{hexToRgba:function hexToRgba(er){if(""===er||"none"===er)return{r:null,g:null,b:null,a:null};var tr="00",rr="00",nr="00",ir="255";return 6===(er=this.validateHex(er)).length&&(er+="ff"),er.length>6?(tr=er.substring(0,2),rr=er.substring(2,4),nr=er.substring(4,6),ir=er.substring(6,er.length)):(er.length>4&&(tr=er.substring(4,er.length),er=er.substring(0,4)),er.length>2&&(rr=er.substring(2,er.length),er=er.substring(0,2)),er.length>0&&(nr=er.substring(0,er.length))),{r:this.hexToInt(tr),g:this.hexToInt(rr),b:this.hexToInt(nr),a:this.hexToInt(ir)}},validateHex:function validateHex(er){return(er=er.toLowerCase().replace(/[^a-f\d]/g,"")).length>8&&(er=er.substring(0,8)),er},rgbaToHex:function rgbaToHex(er){return this.intToHex(er.r)+this.intToHex(er.g)+this.intToHex(er.b)+this.intToHex(er.a)},intToHex:function intToHex(er){var tr=(0|er).toString(16);return 1===tr.length&&(tr="0"+tr),tr.toLowerCase()},hexToInt:function hexToInt(er){return Number.parseInt(er,16)},rgbToHsv:function rgbToHsv(er){var tr,rr=er.r/255,nr=er.g/255,ir=er.b/255,or={h:0,s:0,v:0},ar=0,sr=0;return rr>=nr&&rr>=ir?(sr=rr,ar=nr>ir?ir:nr):nr>=ir&&nr>=rr?(sr=nr,ar=rr>ir?ir:rr):(sr=ir,ar=nr>rr?rr:nr),or.v=sr,or.s=sr?(sr-ar)/sr:0,or.s?(tr=sr-ar,or.h=rr===sr?(nr-ir)/tr:nr===sr?2+(ir-rr)/tr:4+(rr-nr)/tr,or.h=Number.parseInt(60*or.h),or.h<0&&(or.h+=360)):or.h=0,or.s=100*or.s|0,or.v=100*or.v|0,or},hsvToRgb:function hsvToRgb(er){var tr={r:0,g:0,b:0,a:100},rr=er.h,nr=er.s,ir=er.v;if(0===nr)tr.r=tr.g=tr.b=0===ir?0:255*ir/100|0;else{360===rr&&(rr=0);var or=0|(rr/=60),ar=rr-or,sr=(ir/=100)*(1-(nr/=100)),lr=ir*(1-nr*ar),cr=ir*(1-nr*(1-ar));switch(or){case 0:tr.r=ir,tr.g=cr,tr.b=sr;break;case 1:tr.r=lr,tr.g=ir,tr.b=sr;break;case 2:tr.r=sr,tr.g=ir,tr.b=cr;break;case 3:tr.r=sr,tr.g=lr,tr.b=ir;break;case 4:tr.r=cr,tr.g=sr,tr.b=ir;break;case 5:tr.r=ir,tr.g=sr,tr.b=lr}tr.r=255*tr.r|0,tr.g=255*tr.g|0,tr.b=255*tr.b|0}return tr}}};var nr=er.jPicker,ir=nr.Color,or=nr.List,ar=nr.ColorMethods;return er.fn.jPicker=function(nr,sr,lr,cr){return this.each((function(){var ur=this,dr=er.extend(!0,{},er.fn.jPicker.defaults,nr);"input"===er(ur).get(0).nodeName.toLowerCase()&&(er.extend(!0,dr,{window:{bindToInput:!0,expandable:!0,input:er(ur)}}),""===er(ur).val()?(dr.color.active=new ir({hex:null}),dr.color.current=new ir({hex:null})):ar.validateHex(er(ur).val())&&(dr.color.active=new ir({hex:er(ur).val(),a:dr.color.active.val("a")}),dr.color.current=new ir({hex:er(ur).val(),a:dr.color.active.val("a")}))),dr.window.expandable?er(ur).after('<span class="jPicker"><span class="Icon"><span class="Color"> </span><span class="Alpha"> </span><span class="Image" title="Click To Open Color Picker"> </span><span class="Container"> </span></span></span>'):dr.window.liveUpdate=!1;var hr=Number.parseFloat(navigator.appVersion.split("MSIE")[1])<7&&document.body.filters;function setColorMode(er){var tr,rr,nr=fr.active,ir=nr.val("hex");switch(dr.color.mode=er,er){case"h":if(setTimeout((function(){setBG.call(ur,br,"transparent"),setImgLoc.call(ur,Sr,0),setAlpha.call(ur,Sr,100),setImgLoc.call(ur,xr,260),setAlpha.call(ur,xr,100),setBG.call(ur,wr,"transparent"),setImgLoc.call(ur,Cr,0),setAlpha.call(ur,Cr,100),setImgLoc.call(ur,Br,260),setAlpha.call(ur,Br,100),setImgLoc.call(ur,Er,260),setAlpha.call(ur,Er,100),setImgLoc.call(ur,Nr,260),setAlpha.call(ur,Nr,100),setImgLoc.call(ur,Tr,260),setAlpha.call(ur,Tr,100)}),0),Pr.range("all",{minX:0,maxX:100,minY:0,maxY:100}),Fr.range("rangeY",{minY:0,maxY:360}),FP(nr.val("ahex")))break;Pr.val("xy",{x:nr.val("s"),y:100-nr.val("v")},Pr),Fr.val("y",360-nr.val("h"),Fr);break;case"s":if(setTimeout((function(){setBG.call(ur,br,"transparent"),setImgLoc.call(ur,Sr,-260),setImgLoc.call(ur,xr,-520),setImgLoc.call(ur,Cr,-260),setImgLoc.call(ur,Br,-520),setImgLoc.call(ur,Tr,260),setAlpha.call(ur,Tr,100)}),0),Pr.range("all",{minX:0,maxX:360,minY:0,maxY:100}),Fr.range("rangeY",{minY:0,maxY:100}),FP(nr.val("ahex")))break;Pr.val("xy",{x:nr.val("h"),y:100-nr.val("v")},Pr),Fr.val("y",100-nr.val("s"),Fr);break;case"v":if(setTimeout((function(){setBG.call(ur,br,"000000"),setImgLoc.call(ur,Sr,-780),setImgLoc.call(ur,xr,260),setBG.call(ur,wr,ir),setImgLoc.call(ur,Cr,-520),setImgLoc.call(ur,Br,260),setAlpha.call(ur,Br,100),setImgLoc.call(ur,Tr,260),setAlpha.call(ur,Tr,100)}),0),Pr.range("all",{minX:0,maxX:360,minY:0,maxY:100}),Fr.range("rangeY",{minY:0,maxY:100}),FP(nr.val("ahex")))break;Pr.val("xy",{x:nr.val("h"),y:100-nr.val("s")},Pr),Fr.val("y",100-nr.val("v"),Fr);break;case"r":if(tr=-1040,rr=-780,Pr.range("all",{minX:0,maxX:255,minY:0,maxY:255}),Fr.range("rangeY",{minY:0,maxY:255}),FP(nr.val("ahex")))break;Pr.val("xy",{x:nr.val("b"),y:255-nr.val("g")},Pr),Fr.val("y",255-nr.val("r"),Fr);break;case"g":if(tr=-1560,rr=-1820,Pr.range("all",{minX:0,maxX:255,minY:0,maxY:255}),Fr.range("rangeY",{minY:0,maxY:255}),FP(nr.val("ahex")))break;Pr.val("xy",{x:nr.val("b"),y:255-nr.val("r")},Pr),Fr.val("y",255-nr.val("g"),Fr);break;case"b":if(tr=-2080,rr=-2860,Pr.range("all",{minX:0,maxX:255,minY:0,maxY:255}),Fr.range("rangeY",{minY:0,maxY:255}),FP(nr.val("ahex")))break;Pr.val("xy",{x:nr.val("r"),y:255-nr.val("g")},Pr),Fr.val("y",255-nr.val("b"),Fr);break;case"a":if(setTimeout((function(){setBG.call(ur,br,"transparent"),setImgLoc.call(ur,Sr,-260),setImgLoc.call(ur,xr,-520),setImgLoc.call(ur,Cr,260),setImgLoc.call(ur,Br,260),setAlpha.call(ur,Br,100),setImgLoc.call(ur,Tr,0),setAlpha.call(ur,Tr,100)}),0),Pr.range("all",{minX:0,maxX:360,minY:0,maxY:100}),Fr.range("rangeY",{minY:0,maxY:255}),FP(nr.val("ahex")))break;Pr.val("xy",{x:nr.val("h"),y:100-nr.val("v")},Pr),Fr.val("y",255-nr.val("a"),Fr);break;default:throw new Error("Invalid Mode")}switch(er){case"h":break;case"s":case"v":case"a":setTimeout((function(){setAlpha.call(ur,Sr,100),setAlpha.call(ur,Cr,100),setImgLoc.call(ur,Er,260),setAlpha.call(ur,Er,100),setImgLoc.call(ur,Nr,260),setAlpha.call(ur,Nr,100)}),0);break;case"r":case"g":case"b":setTimeout((function(){setBG.call(ur,br,"transparent"),setBG.call(ur,wr,"transparent"),setAlpha.call(ur,Cr,100),setAlpha.call(ur,Sr,100),setImgLoc.call(ur,Sr,tr),setImgLoc.call(ur,xr,tr-260),setImgLoc.call(ur,Cr,rr-780),setImgLoc.call(ur,Br,rr-520),setImgLoc.call(ur,Er,rr),setImgLoc.call(ur,Nr,rr-260),setImgLoc.call(ur,Tr,260),setAlpha.call(ur,Tr,100)}),0)}FP(nr.val("ahex"))||activeColorChanged.call(ur,nr)}function activeColorChanged(er,tr){(FP(tr)||tr!==Fr&&tr!==Pr)&&positionMapAndBarArrows.call(ur,er,tr),setTimeout((function(){updatePreview.call(ur,er),updateMapVisuals.call(ur,er),updateBarVisuals.call(ur,er)}),0)}function mapValueChanged(er,tr){var rr=fr.active;if(tr===Pr||!FP(rr.val())){var nr=er.val("all");switch(dr.color.mode){case"h":rr.val("sv",{s:nr.x,v:100-nr.y},tr);break;case"s":case"a":rr.val("hv",{h:nr.x,v:100-nr.y},tr);break;case"v":rr.val("hs",{h:nr.x,s:100-nr.y},tr);break;case"r":rr.val("gb",{g:255-nr.y,b:nr.x},tr);break;case"g":rr.val("rb",{r:255-nr.y,b:nr.x},tr);break;case"b":rr.val("rg",{r:nr.x,g:255-nr.y},tr)}}}function colorBarValueChanged(er,tr){var rr=fr.active;if(tr===Fr||!FP(rr.val()))switch(dr.color.mode){case"h":rr.val("h",{h:360-er.val("y")},tr);break;case"s":rr.val("s",{s:100-er.val("y")},tr);break;case"v":rr.val("v",{v:100-er.val("y")},tr);break;case"r":rr.val("r",{r:255-er.val("y")},tr);break;case"g":rr.val("g",{g:255-er.val("y")},tr);break;case"b":rr.val("b",{b:255-er.val("y")},tr);break;case"a":rr.val("a",255-er.val("y"),tr)}}function positionMapAndBarArrows(er,tr){if(tr!==Pr)switch(dr.color.mode){case"h":var rr=er.val("sv");Pr.val("xy",{x:FP(rr)?100:rr.s,y:100-(FP(rr)?100:rr.v)},tr);break;case"s":case"a":var nr=er.val("hv");Pr.val("xy",{x:nr&&nr.h||0,y:100-(FP(nr)?100:nr.v)},tr);break;case"v":var ir=er.val("hs");Pr.val("xy",{x:ir&&ir.h||0,y:100-(FP(ir)?100:ir.s)},tr);break;case"r":var or=er.val("bg");Pr.val("xy",{x:or&&or.b||0,y:255-(or&&or.g||0)},tr);break;case"g":var ar=er.val("br");Pr.val("xy",{x:ar&&ar.b||0,y:255-(ar&&ar.r||0)},tr);break;case"b":var sr=er.val("rg");Pr.val("xy",{x:sr&&sr.r||0,y:255-(sr&&sr.g||0)},tr)}if(tr!==Fr)switch(dr.color.mode){case"h":Fr.val("y",360-(er.val("h")||0),tr);break;case"s":var lr=er.val("s");Fr.val("y",100-(FP(lr)?100:lr),tr);break;case"v":var cr=er.val("v");Fr.val("y",100-(FP(cr)?100:cr),tr);break;case"r":Fr.val("y",255-(er.val("r")||0),tr);break;case"g":Fr.val("y",255-(er.val("g")||0),tr);break;case"b":Fr.val("y",255-(er.val("b")||0),tr);break;case"a":var ur=er.val("a");Fr.val("y",255-(FP(ur)?255:ur),tr)}}function updatePreview(er){try{var tr=er.val("all");Ir.css({backgroundColor:tr&&"#"+tr.hex||"transparent"}),setAlpha.call(ur,Ir,tr&&toFixedNumeric(100*tr.a/255,4)||0)}catch(er){}}function updateMapVisuals(er){switch(dr.color.mode){case"h":setBG.call(ur,br,new ir({h:er.val("h")||0,s:100,v:100}).val("hex"));break;case"s":case"a":var tr=er.val("s");setAlpha.call(ur,xr,100-(FP(tr)?100:tr));break;case"v":var rr=er.val("v");setAlpha.call(ur,Sr,FP(rr)?100:rr);break;case"r":setAlpha.call(ur,xr,toFixedNumeric((er.val("r")||0)/255*100,4));break;case"g":setAlpha.call(ur,xr,toFixedNumeric((er.val("g")||0)/255*100,4));break;case"b":setAlpha.call(ur,xr,toFixedNumeric((er.val("b")||0)/255*100))}var nr=er.val("a");setAlpha.call(ur,kr,toFixedNumeric(100*(255-(nr||0))/255,4))}function updateBarVisuals(er){switch(dr.color.mode){case"h":var tr=er.val("a");setAlpha.call(ur,Lr,toFixedNumeric(100*(255-(tr||0))/255,4));break;case"s":var rr=er.val("hva"),nr=new ir({h:rr&&rr.h||0,s:100,v:FP(rr)?100:rr.v});setBG.call(ur,wr,nr.val("hex")),setAlpha.call(ur,Br,100-(FP(rr)?100:rr.v)),setAlpha.call(ur,Lr,toFixedNumeric(100*(255-(rr&&rr.a||0))/255,4));break;case"v":var or=er.val("hsa"),ar=new ir({h:or&&or.h||0,s:FP(or)?100:or.s,v:100});setBG.call(ur,wr,ar.val("hex")),setAlpha.call(ur,Lr,toFixedNumeric(100*(255-(or&&or.a||0))/255,4));break;case"r":case"g":case"b":var sr=er.val("rgba"),lr=0,cr=0;"r"===dr.color.mode?(lr=sr&&sr.b||0,cr=sr&&sr.g||0):"g"===dr.color.mode?(lr=sr&&sr.b||0,cr=sr&&sr.r||0):"b"===dr.color.mode&&(lr=sr&&sr.r||0,cr=sr&&sr.g||0);var hr=cr>lr?lr:cr;setAlpha.call(ur,Br,lr>cr?toFixedNumeric((lr-cr)/(255-cr)*100,4):0),setAlpha.call(ur,Er,cr>lr?toFixedNumeric((cr-lr)/(255-lr)*100,4):0),setAlpha.call(ur,Nr,toFixedNumeric(hr/255*100,4)),setAlpha.call(ur,Lr,toFixedNumeric(100*(255-(sr&&sr.a||0))/255,4));break;case"a":var pr=er.val("a");setBG.call(ur,wr,er.val("hex")||"000000"),setAlpha.call(ur,Lr,FP(pr)?100:0),setAlpha.call(ur,Tr,FP(pr)?0:100)}}function setBG(er,tr){er.css({backgroundColor:tr&&6===tr.length&&"#"+tr||"transparent"})}function setImg(er,tr){hr&&(tr.includes("AlphaBar.png")||tr.includes("Bars.png")||tr.includes("Maps.png"))?(er.attr("pngSrc",tr),er.css({backgroundImage:"none",filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+tr+"', sizingMethod='scale')"})):er.css({backgroundImage:"url('"+tr+"')"})}function setImgLoc(er,tr){er.css({top:tr+"px"})}function setAlpha(er,tr){if(er.css({visibility:tr>0?"visible":"hidden"}),tr>0&&tr<100)if(hr){var rr=er.attr("pngSrc");!FP(rr)&&(rr.includes("AlphaBar.png")||rr.includes("Bars.png")||rr.includes("Maps.png"))?er.css({filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+rr+"', sizingMethod='scale') progid:DXImageTransform.Microsoft.Alpha(opacity="+tr+")"}):er.css({opacity:toFixedNumeric(tr/100,4)})}else er.css({opacity:toFixedNumeric(tr/100,4)});else if(0===tr||100===tr)if(hr){var nr=er.attr("pngSrc");!FP(nr)&&(nr.includes("AlphaBar.png")||nr.includes("Bars.png")||nr.includes("Maps.png"))?er.css({filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+nr+"', sizingMethod='scale')"}):er.css({opacity:""})}else er.css({opacity:""})}function revertColor(){fr.active.val("ahex",fr.current.val("ahex"))}function commitColor(){fr.current.val("ahex",fr.active.val("ahex"))}function radioClicked(tr){er(this).parents("tbody:first").find('input:radio[value!="'+tr.target.value+'"]').removeAttr("checked"),setColorMode.call(ur,tr.target.value)}function currentClicked(){revertColor.call(ur)}function cancelClicked(){revertColor.call(ur),dr.window.expandable&&hide.call(ur),"function"==typeof cr&&cr.call(ur,fr.active,Or)}function okClicked(){commitColor.call(ur),dr.window.expandable&&hide.call(ur),"function"==typeof sr&&sr.call(ur,fr.active,Mr)}function iconImageClicked(){show.call(ur)}function currentColorChanged(er){var tr=er.val("hex");Rr.css({backgroundColor:tr&&"#"+tr||"transparent"}),setAlpha.call(ur,Rr,toFixedNumeric(100*(er.val("a")||0)/255,4))}function expandableColorChanged(er){var tr=er.val("hex"),rr=er.val("va");Dr.css({backgroundColor:tr&&"#"+tr||"transparent"}),setAlpha.call(ur,jr,toFixedNumeric(100*(255-(rr&&rr.a||0))/255,4)),dr.window.bindToInput&&dr.window.updateInputColor&&dr.window.input.css({backgroundColor:tr&&"#"+tr||"transparent",color:FP(rr)||rr.v>75?"#000000":"#ffffff"})}function moveBarMouseDown(tr){gr=Number.parseInt(yr.css("left")),mr=Number.parseInt(yr.css("top")),_r=tr.pageX,vr=tr.pageY,er(document).bind("mousemove",documentMouseMove).bind("mouseup",documentMouseUp),tr.preventDefault()}function documentMouseMove(tr){return yr.css({left:gr-(_r-tr.pageX)+"px",top:mr-(vr-tr.pageY)+"px"}),dr.window.expandable&&!er.support.boxModel&&yr.prev().css({left:yr.css("left"),top:yr.css("top")}),tr.stopPropagation(),tr.preventDefault(),!1}function documentMouseUp(tr){return er(document).unbind("mousemove",documentMouseMove).unbind("mouseup",documentMouseUp),tr.stopPropagation(),tr.preventDefault(),!1}function quickPickClicked(tr){return tr.preventDefault(),tr.stopPropagation(),fr.active.val("ahex",er(this).attr("title")||null,tr.target),!1}function show(){function attachIFrame(){if(dr.window.expandable&&!er.support.boxModel){var tr=yr.find("table:first");yr.before("<iframe/>"),yr.prev().css({width:tr.width(),height:yr.height(),opacity:0,position:"absolute",left:yr.css("left"),top:yr.css("top")})}}switch(fr.current.val("ahex",fr.active.val("ahex")),dr.window.expandable&&(er(document.body).children("div.jPicker.Container").css({zIndex:10}),yr.css({zIndex:20})),dr.window.effects.type){case"fade":yr.fadeIn(dr.window.effects.speed.show,attachIFrame);break;case"slide":yr.slideDown(dr.window.effects.speed.show,attachIFrame);break;case"show":default:yr.show(dr.window.effects.speed.show,attachIFrame)}}function hide(){function removeIFrame(){dr.window.expandable&&yr.css({zIndex:10}),dr.window.expandable&&!er.support.boxModel&&yr.prev().remove()}switch(dr.window.effects.type){case"fade":yr.fadeOut(dr.window.effects.speed.hide,removeIFrame);break;case"slide":yr.slideUp(dr.window.effects.speed.hide,removeIFrame);break;case"show":default:yr.hide(dr.window.effects.speed.hide,removeIFrame)}}function initialize(){var nr=dr.window,or=nr.expandable?er(ur).next().find(".Container:first"):null;(yr=nr.expandable?er("<div/>"):er(ur)).addClass("jPicker Container"),nr.expandable&&yr.hide(),yr.get(0).onselectstart=function(er){return"input"===er.target.nodeName.toLowerCase()};var ar=fr.active.val("all");nr.alphaPrecision<0?nr.alphaPrecision=0:nr.alphaPrecision>2&&(nr.alphaPrecision=2);var sr='<table class="jPicker" cellpadding="0" cellspacing="0">\n <tbody>\n '.concat(nr.expandable?'<tr><td class="Move" colspan="5"> </td></tr>':"",'\n <tr>\n <td rowspan="9"><h2 class="Title">').concat(nr.title||Ar.text.title,'</h2><div class="Map"><span class="Map1"> </span><span class="Map2"> </span><span class="Map3"> </span><img src="').concat(pr.clientPath+pr.colorMap.arrow.file,'" class="Arrow"/></div></td>\n <td rowspan="9"><div class="Bar"><span class="Map1"> </span><span class="Map2"> </span><span class="Map3"> </span><span class="Map4"> </span><span class="Map5"> </span><span class="Map6"> </span><img src="').concat(pr.clientPath+pr.colorBar.arrow.file,'" class="Arrow"/></div></td>\n <td colspan="2" class="Preview">').concat(Ar.text.newColor,'<div><span class="Active" title="').concat(Ar.tooltips.colors.newColor,'"> </span><span class="Current" title="').concat(Ar.tooltips.colors.currentColor,'"> </span></div>').concat(Ar.text.currentColor,'</td>\n <td rowspan="9" class="Button"><input type="button" class="Ok" value="').concat(Ar.text.ok,'" title="').concat(Ar.tooltips.buttons.ok,'"/><input type="button" class="Cancel" value="').concat(Ar.text.cancel,'" title="').concat(Ar.tooltips.buttons.cancel,'"/><hr/><div class="Grid"> </div></td>\n </tr>\n <tr class="Hue">\n <td class="Radio"><label title="').concat(Ar.tooltips.hue.radio,'"><input type="radio" value="h"').concat("h"===dr.color.mode?' checked="checked"':"",'/>H:</label></td>\n <td class="Text"><input type="text" maxlength="3" value="').concat(FP(ar)?"":ar.h,'" title="').concat(Ar.tooltips.hue.textbox,'"/> °</td>\n </tr>\n <tr class="Saturation">\n <td class="Radio"><label title="').concat(Ar.tooltips.saturation.radio,'"><input type="radio" value="s"').concat("s"===dr.color.mode?' checked="checked"':"",'/>S:</label></td>\n <td class="Text"><input type="text" maxlength="3" value="').concat(FP(ar)?"":ar.s,'" title="').concat(Ar.tooltips.saturation.textbox,'"/> %</td>\n </tr>\n <tr class="Value">\n <td class="Radio"><label title="').concat(Ar.tooltips.value.radio,'"><input type="radio" value="v"').concat("v"===dr.color.mode?' checked="checked"':"",'/>V:</label><br/><br/></td>\n <td class="Text"><input type="text" maxlength="3" value="').concat(FP(ar)?"":ar.v,'" title="').concat(Ar.tooltips.value.textbox,'"/> %<br/><br/></td>\n </tr>\n <tr class="Red">\n <td class="Radio"><label title="').concat(Ar.tooltips.red.radio,'"><input type="radio" value="r"').concat("r"===dr.color.mode?' checked="checked"':"",'/>R:</label></td>\n <td class="Text"><input type="text" maxlength="3" value="').concat(FP(ar)?"":ar.r,'" title="').concat(Ar.tooltips.red.textbox,'"/></td>\n </tr>\n <tr class="Green">\n <td class="Radio"><label title="').concat(Ar.tooltips.green.radio,'"><input type="radio" value="g"').concat("g"===dr.color.mode?' checked="checked"':"",'/>G:</label></td>\n <td class="Text"><input type="text" maxlength="3" value="').concat(FP(ar)?"":ar.g,'" title="').concat(Ar.tooltips.green.textbox,'"/></td>\n </tr>\n <tr class="Blue">\n <td class="Radio"><label title="').concat(Ar.tooltips.blue.radio,'"><input type="radio" value="b"').concat("b"===dr.color.mode?' checked="checked"':"",'/>B:</label></td>\n <td class="Text"><input type="text" maxlength="3" value="').concat(FP(ar)?"":ar.b,'" title="').concat(Ar.tooltips.blue.textbox,'"/></td>\n </tr>\n <tr class="Alpha">\n <td class="Radio">').concat(nr.alphaSupport?'<label title="'.concat(Ar.tooltips.alpha.radio,'"><input type="radio" value="a"').concat("a"===dr.color.mode?' checked="checked"':"","/>A:</label>"):" ",'</td>\n <td class="Text">').concat(nr.alphaSupport?'<input type="text" maxlength="'.concat(3+nr.alphaPrecision,'" value="').concat(FP(ar)?"":toFixedNumeric(100*ar.a/255,nr.alphaPrecision),'" title="').concat(Ar.tooltips.alpha.textbox,'"/> %'):" ",'</td>\n </tr>\n <tr class="Hex">\n <td colspan="2" class="Text"><label title="').concat(Ar.tooltips.hex.textbox,'">#:<input type="text" maxlength="6" class="Hex" value="').concat(FP(ar)?"":ar.hex,'"/></label>').concat(nr.alphaSupport?'<input type="text" maxlength="2" class="AHex" value="'.concat(FP(ar)?"":ar.ahex.substring(6),'" title="').concat(Ar.tooltips.hex.alpha,'"/></td>'):" ","\n </tr>\n </tbody></table>");nr.expandable?(yr.html(sr),er(document.body).children("div.jPicker.Container").length?er(document.body).children("div.jPicker.Container:last").after(yr):er(document.body).prepend(yr),yr.mousedown((function(){er(document.body).children("div.jPicker.Container").css({zIndex:10}),yr.css({zIndex:20})})),yr.css({left:"left"===nr.position.x?or.offset().left-530-("center"===nr.position.y?25:0)+"px":"center"===nr.position.x?or.offset().left-260+"px":"right"===nr.position.x?or.offset().left-10+("center"===nr.position.y?25:0)+"px":"screenCenter"===nr.position.x?(er(document).width()>>1)-260+"px":or.offset().left+Number.parseInt(nr.position.x)+"px",position:"absolute",top:"top"===nr.position.y?or.offset().top-312+"px":"center"===nr.position.y?or.offset().top-156+"px":"bottom"===nr.position.y?or.offset().top+25+"px":or.offset().top+Number.parseInt(nr.position.y)+"px"})):(yr=er(ur)).html(sr);var cr=yr.find("tbody:first");br=cr.find("div.Map:first"),wr=cr.find("div.Bar:first");var hr=br.find("span"),gr=wr.find("span");Sr=hr.filter(".Map1:first"),xr=hr.filter(".Map2:first"),kr=hr.filter(".Map3:first"),Cr=gr.filter(".Map1:first"),Br=gr.filter(".Map2:first"),Er=gr.filter(".Map3:first"),Nr=gr.filter(".Map4:first"),Lr=gr.filter(".Map5:first"),Tr=gr.filter(".Map6:first"),(Pr=new tr(br,{map:{width:pr.colorMap.width,height:pr.colorMap.height},arrow:{image:pr.clientPath+pr.colorMap.arrow.file,width:pr.colorMap.arrow.width,height:pr.colorMap.arrow.height}})).bind(mapValueChanged),(Fr=new tr(wr,{map:{width:pr.colorBar.width,height:pr.colorBar.height},arrow:{image:pr.clientPath+pr.colorBar.arrow.file,width:pr.colorBar.arrow.width,height:pr.colorBar.arrow.height}})).bind(colorBarValueChanged),Ur=new rr(cr,fr.active,nr.expandable&&nr.bindToInput?nr.input:null,nr.alphaPrecision);var mr=FP(ar)?null:ar.hex,_r=cr.find(".Preview"),vr=cr.find(".Button");if(Ir=_r.find(".Active:first").css({backgroundColor:mr&&"#"+mr||"transparent"}),Rr=_r.find(".Current:first").css({backgroundColor:mr&&"#"+mr||"transparent"}).bind("click",currentClicked),setAlpha.call(ur,Rr,toFixedNumeric(100*fr.current.val("a")/255,4)),Mr=vr.find(".Ok:first").bind("click",okClicked),Or=vr.find(".Cancel:first").bind("click",cancelClicked),Qr=vr.find(".Grid:first"),setTimeout((function(){setImg.call(ur,Sr,pr.clientPath+"Maps.png"),setImg.call(ur,xr,pr.clientPath+"Maps.png"),setImg.call(ur,kr,pr.clientPath+"map-opacity.png"),setImg.call(ur,Cr,pr.clientPath+"Bars.png"),setImg.call(ur,Br,pr.clientPath+"Bars.png"),setImg.call(ur,Er,pr.clientPath+"Bars.png"),setImg.call(ur,Nr,pr.clientPath+"Bars.png"),setImg.call(ur,Lr,pr.clientPath+"bar-opacity.png"),setImg.call(ur,Tr,pr.clientPath+"AlphaBar.png"),setImg.call(ur,_r.find("div:first"),pr.clientPath+"preview-opacity.png")}),0),cr.find("td.Radio input").bind("click",radioClicked),fr.quickList&&fr.quickList.length>0){for(var Vr="",zr=0;zr<fr.quickList.length;zr++){"string"===_typeof(fr.quickList[zr]).toString().toLowerCase()&&(fr.quickList[zr]=new ir({hex:fr.quickList[zr]}));var Kr=fr.quickList[zr].val("a"),qr=fr.quickList[zr].val("ahex");!nr.alphaSupport&&qr&&(qr=qr.substring(0,6)+"ff");var Wr=fr.quickList[zr].val("hex");qr||(qr="00000000"),Vr+='<span class="QuickColor" title="#'+qr+'" style="background-color:'+(Wr&&"#"+Wr||"")+";"+(Wr?"":"background-image:url("+pr.clientPath+"NoColor.png)")+(nr.alphaSupport&&Kr&&Kr<255?";opacity:"+toFixedNumeric(Kr/255,4)+";filter:Alpha(opacity="+toFixedNumeric(Kr/2.55,4)+")":"")+'"> </span>'}setImg.call(ur,Qr,pr.clientPath+"bar-opacity.png"),Qr.html(Vr),Qr.find(".QuickColor").click(quickPickClicked)}setColorMode.call(ur,dr.color.mode),fr.active.bind(activeColorChanged),"function"==typeof lr&&fr.active.bind(lr),fr.current.bind(currentColorChanged),nr.expandable?(ur.icon=or.parents(".Icon:first"),Dr=ur.icon.find(".Color:first").css({backgroundColor:mr&&"#"+mr||"transparent"}),jr=ur.icon.find(".Alpha:first"),setImg.call(ur,jr,pr.clientPath+"bar-opacity.png"),setAlpha.call(ur,jr,toFixedNumeric(100*(255-(FP(ar)?0:ar.a))/255,4)),Hr=ur.icon.find(".Image:first").css({backgroundImage:"url('"+pr.clientPath+pr.picker.file+"')"}).bind("click",iconImageClicked),nr.bindToInput&&nr.updateInputColor&&nr.input.css({backgroundColor:mr&&"#"+mr||"transparent",color:FP(ar)||ar.v>75?"#000000":"#ffffff"}),Gr=cr.find(".Move:first").bind("mousedown",moveBarMouseDown),fr.active.bind(expandableColorChanged)):show.call(ur)}var pr=dr.images,Ar=dr.localization,fr={active:"string"===_typeof(dr.color.active).toString().toLowerCase()?new ir({ahex:!dr.window.alphaSupport&&dr.color.active?dr.color.active.substring(0,6)+"ff":dr.color.active}):new ir({ahex:!dr.window.alphaSupport&&dr.color.active.val("ahex")?dr.color.active.val("ahex").substring(0,6)+"ff":dr.color.active.val("ahex")}),current:"string"===_typeof(dr.color.active).toString().toLowerCase()?new ir({ahex:!dr.window.alphaSupport&&dr.color.active?dr.color.active.substring(0,6)+"ff":dr.color.active}):new ir({ahex:!dr.window.alphaSupport&&dr.color.active.val("ahex")?dr.color.active.val("ahex").substring(0,6)+"ff":dr.color.active.val("ahex")}),quickList:dr.color.quickList};"function"!=typeof sr&&(sr=null),"function"!=typeof lr&&(lr=null),"function"!=typeof cr&&(cr=null);var gr=null,mr=null,_r=null,vr=null,yr=null,br=null,wr=null,Sr=null,xr=null,kr=null,Cr=null,Br=null,Er=null,Nr=null,Lr=null,Tr=null,Pr=null,Fr=null,Ur=null,Ir=null,Rr=null,Mr=null,Or=null,Qr=null,Dr=null,jr=null,Hr=null,Gr=null;er.extend(!0,ur,{commitCallback:sr,liveCallback:lr,cancelCallback:cr,color:fr,show:show,hide:hide,destroy:function destroy(){yr.find("td.Radio input").unbind("click",radioClicked),Rr.unbind("click",currentClicked),Or.unbind("click",cancelClicked),Mr.unbind("click",okClicked),dr.window.expandable&&(Hr.unbind("click",iconImageClicked),Gr.unbind("mousedown",moveBarMouseDown),ur.icon=null),yr.find(".QuickColor").unbind("click",quickPickClicked),br=null,wr=null,Sr=null,xr=null,kr=null,Cr=null,Br=null,Er=null,Nr=null,Lr=null,Tr=null,Pr.destroy(),Pr=null,Fr.destroy(),Fr=null,Ur.destroy(),Ur=null,Ir=null,Rr=null,Mr=null,Or=null,Qr=null,sr=null,cr=null,lr=null,yr.html("");for(var er=0;er<or.length;er++)or[er]===ur&&(or.splice(er,1),er--)}}),or.push(ur),setTimeout((function(){initialize.call(ur)}),0)}))},er.fn.jPicker.defaults={window:{title:null,effects:{type:"slide",speed:{show:"slow",hide:"fast"}},position:{x:"screenCenter",y:"top"},expandable:!1,liveUpdate:!0,alphaSupport:!1,alphaPrecision:0,updateInputColor:!0},color:{mode:"h",active:new ir({ahex:"#ffcc00ff"}),quickList:[new ir({h:360,s:33,v:100}),new ir({h:360,s:66,v:100}),new ir({h:360,s:100,v:100}),new ir({h:360,s:100,v:75}),new ir({h:360,s:100,v:50}),new ir({h:180,s:0,v:100}),new ir({h:30,s:33,v:100}),new ir({h:30,s:66,v:100}),new ir({h:30,s:100,v:100}),new ir({h:30,s:100,v:75}),new ir({h:30,s:100,v:50}),new ir({h:180,s:0,v:90}),new ir({h:60,s:33,v:100}),new ir({h:60,s:66,v:100}),new ir({h:60,s:100,v:100}),new ir({h:60,s:100,v:75}),new ir({h:60,s:100,v:50}),new ir({h:180,s:0,v:80}),new ir({h:90,s:33,v:100}),new ir({h:90,s:66,v:100}),new ir({h:90,s:100,v:100}),new ir({h:90,s:100,v:75}),new ir({h:90,s:100,v:50}),new ir({h:180,s:0,v:70}),new ir({h:120,s:33,v:100}),new ir({h:120,s:66,v:100}),new ir({h:120,s:100,v:100}),new ir({h:120,s:100,v:75}),new ir({h:120,s:100,v:50}),new ir({h:180,s:0,v:60}),new ir({h:150,s:33,v:100}),new ir({h:150,s:66,v:100}),new ir({h:150,s:100,v:100}),new ir({h:150,s:100,v:75}),new ir({h:150,s:100,v:50}),new ir({h:180,s:0,v:50}),new ir({h:180,s:33,v:100}),new ir({h:180,s:66,v:100}),new ir({h:180,s:100,v:100}),new ir({h:180,s:100,v:75}),new ir({h:180,s:100,v:50}),new ir({h:180,s:0,v:40}),new ir({h:210,s:33,v:100}),new ir({h:210,s:66,v:100}),new ir({h:210,s:100,v:100}),new ir({h:210,s:100,v:75}),new ir({h:210,s:100,v:50}),new ir({h:180,s:0,v:30}),new ir({h:240,s:33,v:100}),new ir({h:240,s:66,v:100}),new ir({h:240,s:100,v:100}),new ir({h:240,s:100,v:75}),new ir({h:240,s:100,v:50}),new ir({h:180,s:0,v:20}),new ir({h:270,s:33,v:100}),new ir({h:270,s:66,v:100}),new ir({h:270,s:100,v:100}),new ir({h:270,s:100,v:75}),new ir({h:270,s:100,v:50}),new ir({h:180,s:0,v:10}),new ir({h:300,s:33,v:100}),new ir({h:300,s:66,v:100}),new ir({h:300,s:100,v:100}),new ir({h:300,s:100,v:75}),new ir({h:300,s:100,v:50}),new ir({h:180,s:0,v:0}),new ir({h:330,s:33,v:100}),new ir({h:330,s:66,v:100}),new ir({h:330,s:100,v:100}),new ir({h:330,s:100,v:75}),new ir({h:330,s:100,v:50}),new ir]},images:{clientPath:"/jPicker/images/",colorMap:{width:256,height:256,arrow:{file:"mappoint.gif",width:15,height:15}},colorBar:{width:20,height:256,arrow:{file:"rangearrows.gif",width:20,height:7}},picker:{file:"picker.gif",width:25,height:24}},localization:{text:{title:"Drag Markers To Pick A Color",newColor:"new",currentColor:"current",ok:"OK",cancel:"Cancel"},tooltips:{colors:{newColor:"New Color - Press “OK” To Commit",currentColor:"Click To Revert To Original Color"},buttons:{ok:"Commit To This Color Selection",cancel:"Cancel And Revert To Original Color"},hue:{radio:"Set To “Hue” Color Mode",textbox:"Enter A “Hue” Value (0-360°)"},saturation:{radio:"Set To “Saturation” Color Mode",textbox:"Enter A “Saturation” Value (0-100%)"},value:{radio:"Set To “Value” Color Mode",textbox:"Enter A “Value” Value (0-100%)"},red:{radio:"Set To “Red” Color Mode",textbox:"Enter A “Red” Value (0-255)"},green:{radio:"Set To “Green” Color Mode",textbox:"Enter A “Green” Value (0-255)"},blue:{radio:"Set To “Blue” Color Mode",textbox:"Enter A “Blue” Value (0-255)"},alpha:{radio:"Set To “Alpha” Color Mode",textbox:"Enter A “Alpha” Value (0-100)"},hex:{textbox:"Enter A “Hex” Color Value (#000000-#ffffff)",alpha:"Enter A “Alpha” Value (#00-#ff)"}}}},er}].reduce((function(er,tr){return tr(er)}),jQuery);DP.tool_scale=1,DP.exportWindowCt=0,DP.langChanged=!1,DP.showSaveWarning=!1,DP.storagePromptState="ignore";var HP,GP=[],VP={lang:"",iconsize:"",bkgd_color:"#FFF",bkgd_url:"",img_save:"embed",save_notice_done:!1,export_notice_done:!1},zP=["ext-connector","ext-eyedropper","ext-grid","ext-imagelib","ext-markers","ext-overview_window","ext-panning","ext-polygon","ext-shapes","ext-star","ext-storage"],KP={canvasName:"default",canvas_expansion:3,initFill:{color:"FF0000",opacity:1},initStroke:{width:5,color:"000000",opacity:1},text:{stroke_width:0,font_size:24,font_family:"serif"},initOpacity:1,colorPickerCSS:null,initTool:"select",exportWindowType:"new",wireframe:!1,showlayers:!1,no_save_warning:!1,imgPath:"./images/",dimensions:[640,480],gridSnapping:!1,gridColor:"#000",baseUnit:"px",snappingStep:10,showRulers:!0,preventAllURLConfig:!1,preventURLContentLoading:!1,lockExtensions:!1,noDefaultExtensions:!1,showGrid:!1,noStorageOnLoad:!1,forceStorage:!1,emptyStorageOnDecline:!1,avoidClientSide:!1,avoidClientSideDownload:!1,avoidClientSideOpen:!1},qP=DP.uiStrings={},WP={},XP=!1,YP=!1,JP=!1,$P={},ZP={extensions:[],userExtensions:[],allowedOrigins:[]},eF=function loadSvgString(er){var tr=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},rr=tr.noAlert,nr=!1!==HP.setSvgString(er);if(!nr)throw rr||window.alert(qP.notification.errorLoadingSVG),new Error("Error loading SVG")};DP.pref=function(er,tr,rr){return rr||tr?($P[er]=tr,void(DP.curPrefs=$P)):er in $P?$P[er]:VP[er]},DP.putLocale=RP,DP.readLang=IP,DP.setStrings=UP,DP.loadContentAndPrefs=function(){if(ZP.forceStorage||!ZP.noStorageOnLoad&&document.cookie.match(/(?:^|;\s*)svgeditstore=(?:prefsAndContent|prefsOnly)/)){if(DP.storage&&(ZP.forceStorage||!ZP.noStorageOnLoad&&document.cookie.match(/(?:^|;\s*)svgeditstore=prefsAndContent/))){var er="svgedit-"+ZP.canvasName,tr=DP.storage.getItem(er);tr&&DP.loadFromString(tr)}Object.keys(VP).forEach((function(er){var tr="svg-edit-"+er;if(DP.storage){var rr=DP.storage.getItem(tr);rr&&(VP[er]=String(rr))}else if(window.widget)VP[er]=window.widget.preferenceForKey(tr);else{var nr=document.cookie.match(new RegExp("(?:^|;\\s*)"+function regexEscape(er){return String(er).replace(/[.\\+*?[^\]$(){}=!<>|:-]/g,"\\$&")}(encodeURIComponent(tr))+"=([^;]+)"));VP[er]=nr?decodeURIComponent(nr[1]):""}}))}},DP.setConfig=function(er,tr){function extendOrAdd(er,tr,rr){er[tr]&&"object"===_typeof(er[tr])?jP.extend(!0,er[tr],rr):er[tr]=rr}tr=tr||{},Object.entries(er).forEach((function(er){var rr=_slicedToArray(er,2),nr=rr[0],ir=rr[1];if({}.hasOwnProperty.call(VP,nr)){if(!1===tr.overwrite&&(ZP.preventAllURLConfig||{}.hasOwnProperty.call($P,nr)))return;!0===tr.allowInitialUserOverride?VP[nr]=ir:DP.pref(nr,ir)}else if(["extensions","userExtensions","allowedOrigins"].includes(nr)){if(!1===tr.overwrite&&(ZP.preventAllURLConfig||["allowedOrigins"].includes(nr)||"extensions"===nr&&ZP.lockExtensions))return;ZP[nr]=ZP[nr].concat(ir)}else if({}.hasOwnProperty.call(KP,nr)){if(!1===tr.overwrite&&(ZP.preventAllURLConfig||{}.hasOwnProperty.call(ZP,nr)))return;if({}.hasOwnProperty.call(ZP,nr)){if(!1===tr.overwrite)return;extendOrAdd(ZP,nr,ir)}else!0===tr.allowInitialUserOverride?extendOrAdd(KP,nr,ir):KP[nr]&&"object"===_typeof(KP[nr])?(ZP[nr]=Array.isArray(KP[nr])?[]:{},jP.extend(!0,ZP[nr],ir)):ZP[nr]=ir}})),DP.curConfig=ZP},DP.setCustomHandlers=function(er){return DP.ready((function(){er.open&&(jP('#tool_open > input[type="file"]').remove(),jP("#tool_open").show(),HP.open=er.open),er.save&&(DP.showSaveWarning=!1,HP.bind("saved",er.save)),er.exportImage&&(YP=er.exportImage,HP.bind("exported",YP)),er.exportPDF&&(JP=er.exportPDF,HP.bind("exportedPDF",JP))}))},DP.randomizeIds=function(er){HP.randomizeIds(er)},DP.init=function(){try{"localStorage"in window&&(DP.storage=localStorage)}catch(er){}var er=_toConsumableArray(document.querySelectorAll("#lang_select option")).map((function(er){return er.value}));function setupCurConfig(){(ZP=_objectSpread2(_objectSpread2({},KP),ZP)).noDefaultExtensions||(ZP.extensions=ZP.extensions.concat(zP)),["extensions","allowedOrigins"].forEach((function(er){ZP[er]=jP.grep(ZP[er],(function(tr,rr){return rr===ZP[er].indexOf(tr)}))})),DP.curConfig=ZP}!function(){var er=new URL(location),tr=er.search,rr=er.searchParams;if(tr){if(WP=bd(rr.toString(),!0),["initStroke","initFill"].forEach((function(er){rr.has("".concat(er,"[color]"))&&(WP[er].color=rr.get("".concat(er,"[color]")))})),rr.has("bkgd_color")&&(WP.bkgd_color="#"+rr.get("bkgd_color")),WP.dimensions&&(WP.dimensions=WP.dimensions.split(",")),WP.extensions&&(WP.extensions=WP.extensions.match(/[:/\\]/)?"":WP.extensions.split(",")),["userExtensions","imgPath"].forEach((function(er){WP[er]&&delete WP[er]})),DP.setConfig(WP,{overwrite:!1}),setupCurConfig(),!ZP.preventURLContentLoading){var nr=WP.source;if(!nr){var ir=rr.get("source");ir&&ir.startsWith("data:")&&(nr=ir)}if(nr)return void(nr.startsWith("data:")?DP.loadFromDataURI(nr):DP.loadFromString(nr));if(WP.url)return void DP.loadFromURL(WP.url)}WP.noStorageOnLoad&&!ZP.forceStorage||DP.loadContentAndPrefs()}else setupCurConfig(),DP.loadContentAndPrefs()}(),function setupCurPrefs(){$P=_objectSpread2(_objectSpread2({},VP),$P),DP.curPrefs=$P}();var tr=DP.setIcon=function(er,tr,rr){var nr="string"==typeof tr?jP.getSvgIcon(tr,!0):tr.clone();nr?jP(er).empty().append(nr):console.log("NOTE: Icon image missing: "+tr)},rr=function(){var tr=_asyncToGenerator(regeneratorRuntime.mark((function _callee3(){var tr,rr,nr,ir,or,ar;return regeneratorRuntime.wrap((function _callee3$(sr){for(;;)switch(sr.prev=sr.next){case 0:return sr.next=2,DP.putLocale(DP.pref("lang"),er);case 2:return tr=sr.sent,rr=tr.langParam,nr=tr.langData,sr.next=7,To(rr,nr);case 7:return ir=qP.common,or=ir.ok,ar=ir.cancel,jQueryPluginDBox(jP,{ok:or,cancel:ar}),jP.svgIcons(ZP.imgPath+"svg_edit_icons.svg",{w:24,h:24,id_match:!1,no_img:!Gd(),fallback_path:ZP.imgPath,fallback:{logo:"logo.png",select_node:"select_node.png",square:"square.png",rect:"rect.png",fh_rect:"freehand-square.png",circle:"circle.png",ellipse:"ellipse.png",fh_ellipse:"freehand-circle.png",pencil:"fhpath.png",pen:"line.png",text:"text.png",path:"path.png",add_subpath:"add_subpath.png",close_path:"closepath.png",open_path:"openpath.png",image:"image.png",zoom:"zoom.png",arrow_right:"flyouth.png",arrow_right_big:"arrow_right_big.png",arrow_down:"dropdown.gif",fill:"fill.png",stroke:"stroke.png",opacity:"opacity.png",new_image:"clear.png",save:"save.png",export:"export.png",open:"open.png",import:"import.png",docprops:"document-properties.png",clone:"clone.png",delete:"delete.png",go_up:"go-up.png",go_down:"go-down.png",context_menu:"context_menu.png",move_bottom:"move_bottom.png",move_top:"move_top.png",to_path:"to_path.png",link_controls:"link_controls.png",reorient:"reorient.png",group_elements:"shape_group_elements.png",ungroup:"shape_ungroup.png",unlink_use:"unlink_use.png",width:"width.png",height:"height.png",c_radius:"c_radius.png",angle:"angle.png",blur:"blur.png",fontsize:"fontsize.png",align:"align.png",linecap_butt:"linecap_butt.png",linecap_square:"linecap_square.png",linecap_round:"linecap_round.png",linejoin_miter:"linejoin_miter.png",linejoin_bevel:"linejoin_bevel.png",linejoin_round:"linejoin_round.png",eye:"eye.png",no_color:"no_color.png",ok:"save.png",cancel:"cancel.png",warning:"warning.png",node_delete:"node_delete.png",node_clone:"node_clone.png",globe_link:"globe_link.png",config:"config.png"},placement:{"#logo":"logo","#tool_clear div":"new_image","#tool_save div":"save","#tool_export div":"export","#tool_open div":"open","#tool_import div":"import","#tool_docprops > div":"docprops","#tool_editor_prefs > div":"config","#tool_editor_homepage > div":"globe_link","#tool_fhpath":"pencil","#tool_line":"pen","#tool_rect,#tools_rect_show":"rect","#tool_square":"square","#tool_fhrect":"fh_rect","#tool_ellipse,#tools_ellipse_show":"ellipse","#tool_circle":"circle","#tool_fhellipse":"fh_ellipse","#tool_image":"image","#tool_zoom":"zoom","#tool_node_clone":"node_clone","#tool_node_delete":"node_delete","#tool_add_subpath":"add_subpath","#tool_openclose_path":"open_path","#tool_node_link":"link_controls","#tool_reorient":"reorient","#tool_group_elements":"group_elements","#tool_ungroup":"ungroup","#tool_unlink_use":"unlink_use","#tool_posleft":"align_left","#tool_poscenter":"align_center","#tool_posright":"align_right","#tool_postop":"align_top","#tool_posmiddle":"align_middle","#tool_posbottom":"align_bottom","#cur_position":"align","#linecap_butt,#cur_linecap":"linecap_butt","#linecap_round":"linecap_round","#linecap_square":"linecap_square","#linejoin_miter,#cur_linejoin":"linejoin_miter","#linejoin_round":"linejoin_round","#linejoin_bevel":"linejoin_bevel","#url_notice":"warning","#layerlist td.layervis":"eye","#tool_source_save,#tool_docprops_save,#tool_prefs_save":"ok","#tool_source_cancel,#tool_docprops_cancel,#tool_prefs_cancel":"cancel","#rwidthLabel, #iwidthLabel":"width","#rheightLabel, #iheightLabel":"height","#cornerRadiusLabel span":"c_radius","#angleLabel":"angle","#linkLabel,#tool_make_link_multi":"globe_link","#zoomLabel":"zoom","#tool_fill label":"fill","#tool_stroke .icon_label":"stroke","#group_opacityLabel":"opacity","#blurLabel":"blur","#font_sizeLabel":"fontsize",".flyout_arrow_horiz":"arrow_right",".dropdown button, #main_button .dropdown":"arrow_down","#palette .palette_item:first, #fill_bg, #stroke_bg":"no_color"},resize:{"#logo .svg_icon":28,".flyout_arrow_horiz .svg_icon":5,".svg_icon, #layerlist td.layervis .svg_icon":14,".dropdown button .svg_icon":7,"#main_button .dropdown .svg_icon":9,".palette_item:first .svg_icon":15,"#fill_bg .svg_icon, #stroke_bg .svg_icon":16,".toolbar_button button .svg_icon":16,".stroke_tool div div .svg_icon":20,"#tools_bottom label .svg_icon":18},callback:function callback(er){return _asyncToGenerator(regeneratorRuntime.mark((function _callee4(){var er,tr,rr;return regeneratorRuntime.wrap((function _callee4$(nr){for(;;)switch(nr.prev=nr.next){case 0:return jP(".toolbar_button button > svg, .toolbar_button button > img").each((function(){jP(this).parent().prepend(this)})),(er=jP("#tools_left")).length&&(tr=er.offset().top+er.outerHeight()),rr=DP.pref("iconsize"),DP.setIconSize(rr||(jP(window).height()<tr?"s":"m")),jP(".tools_flyout").each((function(){var er=jP("#"+this.id+"_show"),tr=er.attr("data-curopt");if(!er.children("svg, img").length){var rr=jP(tr).children().clone();rr.length&&(rr[0].removeAttribute("style"),er.append(rr))}})),jP("#svg_container")[0].style.visibility="visible",nr.next=9,DP.runCallbacks();case 9:case"end":return nr.stop()}}),_callee4)})))()}}),sr.prev=10,sr.next=13,Promise.all(ZP.extensions.map(function(){var er=_asyncToGenerator(regeneratorRuntime.mark((function _callee(er){var tr,nr,ir,or,ar;return regeneratorRuntime.wrap((function _callee$(sr){for(;;)switch(sr.prev=sr.next){case 0:return sr.prev=0,sr.next=3,import("./extensions/".concat(encodeURIComponent(er),"/").concat(encodeURIComponent(er),".js"));case 3:return tr=sr.sent,nr=tr.default,ir=nr.name,or=void 0===ir?er:ir,ar=nr.init,sr.abrupt("return",DP.addExtension(or,ar&&ar.bind(DP),{$:jP,langParam:rr}));case 8:return sr.prev=8,sr.t0=sr.catch(0),console.error("Extension failed to load: "+er+"; ",sr.t0),sr.abrupt("return",void 0);case 12:case"end":return sr.stop()}}),_callee,null,[[0,8]])})));return function(tr){return er.apply(this,arguments)}}()));case 13:return sr.next=15,Promise.all(ZP.userExtensions.map(function(){var er=_asyncToGenerator(regeneratorRuntime.mark((function _callee2(er){var tr,nr,ir,or;return regeneratorRuntime.wrap((function _callee2$(ar){for(;;)switch(ar.prev=ar.next){case 0:return ar.prev=0,ar.next=3,import(encodeURI(er));case 3:return tr=ar.sent,nr=tr.default,ir=nr.name,or=nr.init,ar.abrupt("return",DP.addExtension(ir,or&&or.bind(DP),{$:jP,langParam:rr}));case 8:return ar.prev=8,ar.t0=ar.catch(0),console.error("Extension failed to load: "+er+"; ",ar.t0),ar.abrupt("return",void 0);case 12:case"end":return ar.stop()}}),_callee2,null,[[0,8]])})));return function(tr){return er.apply(this,arguments)}}()));case 15:HP.bind("extensions_added",(function(er,tr){tF=!0,Co.setAll(),jP(".flyout_arrow_horiz:empty").each((function(){jP(this).append(jP.getSvgIcon("arrow_right",!0).width(5).height(5))})),"ignore"===DP.storagePromptState&&Ir(!0),rF.forEach((function(er){HP.call("message",er)}))})),HP.call("extensions_added"),sr.next=22;break;case 19:sr.prev=19,sr.t0=sr.catch(10),console.log(sr.t0);case 22:case"end":return sr.stop()}}),_callee3,null,[[10,19]])})));return function extAndLocaleFunc(){return tr.apply(this,arguments)}}(),nr={tool_scale:DP.tool_scale},ir=function setFlyoutPositions(){jP(".tools_flyout").each((function(){var er=jP("#"+this.id+"_show"),tr=er.offset(),rr=tr.left,nr=tr.top,ir=er.outerWidth();jP(this).css({left:(rr+ir)*DP.tool_scale,top:nr})}))},or=function(){var er=/^(?:Moz|Webkit|Khtml|O|ms|Icab)(?=[A-Z])/,tr=document.getElementsByTagName("script")[0];for(var rr in tr.style)if(er.test(rr))return rr.match(er)[0];return"WebkitOpacity"in tr.style?"Webkit":"KhtmlOpacity"in tr.style?"Khtml":""}(),ar=DP.setIconSize=function(er){var tr="#tools_top .toolset, #editor_panel > *, #history_panel > *, #main_button, #tools_left > *, #path_node_panel > *, #multiselected_panel > *, #g_panel > *, #tool_font_size > *, .tools_flyout",rr=jP(tr),ar=1;if("number"==typeof er)ar=er;else{ar={s:.75,m:1,l:1.25,xl:1.5}[er]}nr.tool_scale=DP.tool_scale=ar,ir();var sr=rr.parents(":hidden");sr.css("visibility","hidden").show(),sr.css("visibility","visible").hide(),DP.pref("iconsize",er),jP("#iconsize").val(er);var lr={"#tools_top":{left:50+jP("#main_button").width(),height:72},"#tools_left":{width:31,top:74},"div#workarea":{left:38,top:74}},cr=jP("#tool_size_rules");if(cr.length?cr.empty():cr=jP('<style id="tool_size_rules"></style>').appendTo("head"),"m"!==er){var ur="";jP.each(lr,(function(tr,rr){tr="#svg_editor "+tr.replace(/,/g,", #svg_editor"),ur+=tr+"{",jP.each(rr,(function(tr,rr){var nr;"number"==typeof rr?nr=rr*ar+"px":(rr[er]||rr.all)&&(nr=rr[er]||rr.all),ur+=tr+":"+nr+";"})),ur+="}"}));var dr="-"+or.toLowerCase()+"-";ur+=tr+"{"+dr+"transform: scale("+ar+");} #svg_editor div.toolset .toolset {"+dr+"transform: scale(1); margin: 1px !important;} #svg_editor .ui-slider {"+dr+"transform: scale("+1/ar+");}",cr.text(ur)}ir()};DP.canvas=HP=new BP(document.getElementById("svgcanvas"),ZP);var sr,lr,cr=qd()?"meta+":"ctrl+",ur=HP.pathActions,dr=HP.undoMgr,hr=jP("#workarea"),pr=jP("#cmenu_canvas"),Ar={fill:null,stroke:null},fr=null,gr=ZP.imgPath+"logo.png",mr="crosshair",_r="crosshair",vr="toolbars";!function(){var er=window.opener||window.parent;if(er)try{var tr=new er.CustomEvent("svgEditorReady",{bubbles:!0,cancelable:!0});er.document.documentElement.dispatchEvent(tr)}catch(er){}}();for(var yr=jP("title:first").text(),br=[],wr=.1;wr<1e5;wr*=10)br.push(wr),br.push(2*wr),br.push(5*wr);var Sr=function toggleHighlightLayer(er){var tr,rr=[],nr=HP.getCurrentDrawing().getNumLayers();for(tr=0;tr<nr;tr++)rr[tr]=HP.getCurrentDrawing().getLayerName(tr);er?rr.forEach((function(tr){tr!==er&&HP.getCurrentDrawing().setLayerOpacity(tr,.5)})):rr.forEach((function(er){HP.getCurrentDrawing().setLayerOpacity(er,1)}))},xr=function populateLayers(){HP.clearSelection();for(var er=jP("#layerlist tbody").empty(),tr=jP("#selLayerNames").empty(),rr=HP.getCurrentDrawing(),nr=rr.getCurrentLayerName(),ir=jP.getSvgIcon("eye"),or=HP.getCurrentDrawing().getNumLayers();or--;){var ar=rr.getLayerName(or),sr=jP('<tr class="layer">').toggleClass("layersel",ar===nr),lr=jP('<td class="layervis">').toggleClass("layerinvis",!rr.getLayerVisibility(ar)),cr=jP('<td class="layername">'+ar+"</td>");er.append(sr.append(lr,cr)),tr.append('<option value="'+ar+'">'+ar+"</option>")}if(void 0!==ir){var ur=ir.clone();jP("td.layervis",er).append(ur),jP.resizeSvgIcons({"td.layervis .svg_icon":14})}jP("#layerlist td.layername").mouseup((function(er){jP("#layerlist tr.layer").removeClass("layersel"),jP(this.parentNode).addClass("layersel"),HP.setCurrentLayer(this.textContent),er.preventDefault()})).mouseover((function(){Sr(this.textContent)})).mouseout((function(){Sr()})),jP("#layerlist td.layervis").click((function(){var er=jP(this.parentNode).prevAll().length,tr=jP("#layerlist tr.layer:eq("+er+") td.layername").text(),rr=jP(this).hasClass("layerinvis");HP.setLayerVisibility(tr,rr),jP(this).toggleClass("layerinvis")}));for(var dr=5-jP("#layerlist tr.layer").size();dr-- >0;)er.append('<tr><td style="color:white">_</td><td/></tr>')},kr=!1,Cr="",Br=function showSourceEditor(er,tr){kr||(kr=!0,Cr=HP.getSvgString(),jP("#save_output_btns").toggle(Boolean(tr)),jP("#tool_source_back").toggle(!tr),jP("#svg_source_textarea").val(Cr),jP("#svg_source_editor").fadeIn(),jP("#svg_source_textarea").focus())},Er=null,Nr=!1,Lr=function operaRepaint(){window.opera&&jP("<p/>").hide().appendTo("body").remove()};function setStrokeOpt(er,rr){var nr=er.id,ir=_slicedToArray(nr.split("_"),2),or=ir[0],ar=ir[1];rr&&HP.setStrokeAttr("stroke-"+or,ar),Lr(),tr("#cur_"+or,nr,20),jP(er).addClass("current").siblings().removeClass("current")}var Tr=DP.toolButtonClick=function(er,tr){if(jP(er).hasClass("disabled"))return!1;if(jP(er).parent().hasClass("tools_flyout"))return!0;return tr||jP(".tools_flyout").fadeOut("normal"),jP("#styleoverrides").text(""),hr.css("cursor","auto"),jP(".tool_button_current").removeClass("tool_button_current").addClass("tool_button"),jP(er).addClass("tool_button_current").removeClass("tool_button"),!0},Pr=function leftPanelClick(er){return!er.disabled&&(OP(".tools_panel se-button[pressed]").forEach((function(er){er.pressed=!1})),QP(er).pressed=!0,!0)},Fr=function clickSelect(){Pr("tool_select")&&(hr.css("cursor","auto"),HP.setMode("select"))},Ur=DP.setImageURL=function(er){er||(er=gr),HP.setImageURL(er),jP("#image_url").val(er),er.startsWith("data:")?(jP("#image_url").hide(),jP("#change_image_url").show()):(HP.embedImage(er,(function(tr){jP("#url_notice").toggle(!tr),gr=er})),jP("#image_url").show(),jP("#change_image_url").hide())};function setBackground(er,tr){DP.pref("bkgd_color",er),DP.pref("bkgd_url",tr,!0),HP.setBackground(er,tr)}function promptImgURL(){return _promptImgURL.apply(this,arguments)}function _promptImgURL(){return(_promptImgURL=_asyncToGenerator(regeneratorRuntime.mark((function _callee17(){var er,tr,rr,nr,ir,or=arguments;return regeneratorRuntime.wrap((function _callee17$(ar){for(;;)switch(ar.prev=ar.next){case 0:return er=or.length>0&&void 0!==or[0]?or[0]:{},tr=er.cancelDeletes,rr=void 0!==tr&&tr,nr=(nr=HP.getHref(Er)).startsWith("data:")?"":nr,ar.next=5,jP.prompt(qP.notification.enterNewImgURL,nr);case 5:(ir=ar.sent)?Ur(ir):rr&&HP.deleteSelectedElements();case 7:case"end":return ar.stop()}}),_callee17)})))).apply(this,arguments)}function updateRulers(er,tr){var rr,nr;tr||(tr=HP.getZoom()),er||(er=jP("#svgcanvas"));var ir=3e4,or=HP.getContentElem(),ar=SA()[ZP.baseUnit];for(rr=0;rr<2;rr++){var sr=0===rr,lr=sr?"x":"y",cr=sr?"width":"height",ur=Number(or.getAttribute(lr)),dr=jP("#ruler_"+lr+" canvas:first"),hr=dr.clone();dr.replaceWith(hr);var pr=hr[0],Ar=er[cr](),fr=Ar;pr.parentNode.style[cr]=fr+"px";var gr=pr.getContext("2d"),mr=void 0,_r=void 0,vr=void 0;if(gr.fillStyle="rgb(200,0,0)",gr.fillRect(0,0,pr.width,pr.height),hr.siblings().remove(),Ar>=ir){vr=Number.parseInt(Ar/ir)+1,(mr=[])[0]=gr;var yr=void 0;for(nr=1;nr<vr;nr++)pr[cr]=ir,yr=pr.cloneNode(!0),pr.parentNode.append(yr),mr[nr]=yr.getContext("2d");yr[cr]=Ar%ir,Ar=ir}pr[cr]=Ar;var wr=ar*tr,Sr=50/wr,xr=1;for(nr=0;nr<br.length&&(xr=_r=br[nr],!(Sr<=_r));nr++);var kr=xr*wr;gr.font="9px sans-serif";for(var Cr=ur/wr%xr*wr,Br=Cr-kr,Er=0;Cr<fr;){Br+=kr;var Nr=Math.round(Cr)+.5;sr?(gr.moveTo(Nr,15),gr.lineTo(Nr,0)):(gr.moveTo(15,Nr),gr.lineTo(0,Nr)),_r=(Br-ur)/wr;var Lr=void 0;if(xr>=1)Lr=Math.round(_r);else{var Tr=String(xr).split(".")[1].length;Lr=_r.toFixed(Tr)}if(0!==Lr&&1e3!==Lr&&Lr%1e3==0&&(Lr=Lr/1e3+"K"),sr)gr.fillText(Lr,Cr+2,8);else{var Pr=String(Lr).split("");for(nr=0;nr<Pr.length;nr++)gr.fillText(Pr[nr],1,Cr+9+9*nr)}var Fr=kr/10;for(nr=1;nr<10;nr++){var Ur=Math.round(Cr+Fr*nr)+.5;if(mr&&Ur>Ar){if(Er++,gr.stroke(),Er>=vr){nr=10,Cr=fr;continue}gr=mr[Er],Cr-=ir,Ur=Math.round(Cr+Fr*nr)+.5}var Ir=nr%2?12:10;sr?(gr.moveTo(Ur,15),gr.lineTo(Ur,Ir)):(gr.moveTo(15,Ur),gr.lineTo(Ir,Ur))}Cr+=kr}gr.strokeStyle="#000",gr.stroke()}}var Ir=DP.updateCanvas=function(er,tr){var rr=HP.getZoom(),nr=hr,ir=jP("#svgcanvas"),or=hr.width(),ar=hr.height(),sr=or,lr=ar,cr=nr[0].scrollLeft+sr/2,ur=nr[0].scrollTop+lr/2,dr=ZP.canvas_expansion;or=Math.max(sr,HP.contentW*rr*dr),ar=Math.max(lr,HP.contentH*rr*dr),or===sr&&ar===lr?hr.css("overflow","hidden"):hr.css("overflow","scroll");var pr=ir.height()/2,Ar=ir.width()/2;ir.width(or).height(ar);var fr=ar/2,gr=or/2,mr=HP.updateCanvas(or,ar),_r=gr/Ar,vr=or/2-sr/2,yr=ar/2-lr/2;tr?(tr.x+=mr.x,tr.y+=mr.y):tr={x:gr+(cr-Ar)*_r,y:fr+(ur-pr)*_r};er?HP.contentW>nr.width()?(hr[0].scrollLeft=mr.x-10,hr[0].scrollTop=mr.y-10):(nr[0].scrollLeft=vr,nr[0].scrollTop=yr):(nr[0].scrollLeft=tr.x-sr/2,nr[0].scrollTop=tr.y-lr/2),ZP.showRulers&&(updateRulers(ir,rr),hr.scroll()),!0!==WP.storagePrompt&&"ignore"===DP.storagePromptState&&jP("#dialog_box").hide()},Rr=function updateToolButtonState(){var er="none"===HP.getColor("fill"),tr="none"===HP.getColor("stroke"),rr=["#tool_fhpath","#tool_line"],nr=["#tools_rect .tool_button","#tools_ellipse .tool_button","#tool_text","#tool_path"];tr?rr.forEach((function(er){jP(er).hasClass("tool_button_current")&&Fr(),jP(er).addClass("disabled")})):rr.forEach((function(er){jP(er).removeClass("disabled")})),tr&&er?nr.forEach((function(er){jP(er).hasClass("tool_button_current")&&Fr(),jP(er).addClass("disabled")})):nr.forEach((function(er){jP(er).removeClass("disabled")})),HP.runExtensions("toolButtonStateUpdate",{nofill:er,nostroke:tr}),jP(".tools_flyout").each((function(){var er=jP("#"+this.id+"_show"),tr=!1;jP(this).children().each((function(){jP(this).hasClass("disabled")||(tr=!0)})),er.toggleClass("disabled",!tr)})),Lr()},Mr=function updateContextPanel(){var er=Er;Cf(er)||er.parentNode||(er=null);var rr=HP.getCurrentDrawing().getCurrentLayerName(),nr=HP.getMode(),ir="px"!==ZP.baseUnit?ZP.baseUnit:null,or="pathedit"===nr,ar=jP("#cmenu_canvas li");if(jP("#selected_panel, #multiselected_panel, #g_panel, #rect_panel, #circle_panel,#ellipse_panel, #line_panel, #text_panel, #image_panel, #container_panel, #use_panel, #a_panel").hide(),Cf(er))Nr?(jP("#multiselected_panel").show(),ar.enableContextMenuItems("#group").disableContextMenuItems("#ungroup")):ar.disableContextMenuItems("#delete,#cut,#copy,#group,#ungroup,#move_front,#move_up,#move_down,#move_back");else{var sr=er.nodeName,lr=HP.getRotationAngle(er);jP("#angle").val(lr);var cr=HP.getBlur(er);if(jP("#blur").val(cr),jP("#blur_slider").slider("option","value",cr),HP.addedNew&&"image"===sr&&"image"===HP.getMode()&&(HP.getHref(er).startsWith("data:")||promptImgURL({cancelDeletes:!0})),or||"pathedit"===nr){var hr=ur.getNodePoint();if(jP("#tool_add_subpath").removeClass("push_button_pressed").addClass("tool_button"),jP("#tool_node_delete").toggleClass("disabled",!ur.canDeleteNodes),tr("#tool_openclose_path",ur.closed_subpath?"open_path":"close_path"),hr){var Ar=jP("#seg_type");ir&&(hr.x=kA(hr.x),hr.y=kA(hr.y)),jP("#path_node_x").val(hr.x),jP("#path_node_y").val(hr.y),hr.type?Ar.val(hr.type).removeAttr("disabled"):Ar.val(4).attr("disabled","disabled")}return}if(jP("#selected_panel").show(),["line","circle","ellipse"].includes(sr))jP("#xy_panel").hide();else{var fr,gr;if(["g","polyline","path"].includes(sr)){var mr=HP.getStrokedBBox([er]);mr&&(fr=mr.x,gr=mr.y)}else fr=er.getAttribute("x"),gr=er.getAttribute("y");ir&&(fr=kA(fr),gr=kA(gr)),jP("#selected_x").val(fr||0),jP("#selected_y").val(gr||0),jP("#xy_panel").show()}var _r=!["image","text","path","g","use"].includes(sr);jP("#tool_topath").toggle(_r),jP("#tool_reorient").toggle("path"===sr),jP("#tool_reorient").toggleClass("disabled",0===lr);var vr={g:[],a:[],rect:["rx","width","height"],image:["width","height"],circle:["cx","cy","r"],ellipse:["cx","cy","rx","ry"],line:["x1","y1","x2","y2"],text:[],use:[]},yr=er.tagName,br=null;if("a"===yr&&(br=HP.getHref(er),jP("#g_panel").show()),"a"===er.parentNode.tagName&&(jP(er).siblings().length||(jP("#a_panel").show(),br=HP.getHref(er.parentNode))),jP("#tool_make_link, #tool_make_link_multi").toggle(!br),br&&jP("#link_url").val(br),vr[yr]){var wr=vr[yr];if(jP("#"+yr+"_panel").show(),jP.each(wr,(function(tr,rr){var nr=er.getAttribute(rr);if("px"!==ZP.baseUnit&&er[rr]){var ir=er[rr].baseVal.value;nr=kA(ir)}jP("#"+yr+"_"+rr).val(nr||0)})),"text"===yr)jP("#text_panel").css("display","inline"),jP("#tool_font_size").css("display","inline"),HP.getItalic()?jP("#tool_italic").addClass("push_button_pressed").removeClass("tool_button"):jP("#tool_italic").removeClass("push_button_pressed").addClass("tool_button"),HP.getBold()?jP("#tool_bold").addClass("push_button_pressed").removeClass("tool_button"):jP("#tool_bold").removeClass("push_button_pressed").addClass("tool_button"),jP("#font_family").val(er.getAttribute("font-family")),jP("#font_size").val(er.getAttribute("font-size")),jP("#text").val(er.textContent),HP.addedNew&&setTimeout((function(){jP("#text").focus().select()}),100);else if("image"===yr&&"image"===HP.getMode())Ur(HP.getHref(er));else if("g"===yr||"use"===yr){jP("#container_panel").show();var Sr=HP.getTitle(),xr=jP("#g_title")[0];xr.value=Sr,function setInputWidth(er){var tr=Math.min(Math.max(12+6*er.value.length,50),300);jP(er).width(tr)}(xr),jP("#g_title").prop("disabled","use"===yr)}}ar[("g"===yr?"en":"dis")+"ableContextMenuItems"]("#ungroup"),ar[("g"!==yr&&Nr?"en":"dis")+"ableContextMenuItems"]("#group")}QP("tool_undo").disabled=0===dr.getUndoStackSize(),QP("tool_redo").disabled=0===dr.getRedoStackSize(),HP.addedNew=!1,er&&!or||Nr?(jP("#selLayerNames").removeAttr("disabled").val(rr),pr.enableContextMenuItems("#delete,#cut,#copy,#move_front,#move_up,#move_down,#move_back")):jP("#selLayerNames").attr("disabled","disabled")},Or=function updateWireFrame(){if(!uo){var er="\n #workarea.wireframe #svgcontent * {\n stroke-width: ".concat(1/HP.getZoom(),"px;\n }\n ");jP("#wireframe_rules").text(hr.hasClass("wireframe")?er:"")}},Qr="",Dr=function updateTitle(er){er=er||HP.getDocumentTitle();var tr=yr+(er?": "+er:"");jP("title:first").text(tr)};var jr=function zoomDone(){Or()},Hr=HP.zoomChanged=function(er,tr,rr){var nr=hr,ir=HP.setBBoxZoom(tr,nr.width()-15,nr.height()-15);if(ir){var or=ir.zoom,ar=ir.bbox;or<.001?Gr({value:.1}):(jP("#zoom").val((100*or).toFixed(1)),rr?Ir():Ir(!1,{x:ar.x*or+ar.width*or/2,y:ar.y*or+ar.height*or/2}),"zoom"===HP.getMode()&&ar.width&&Fr(),jr())}},Gr=function changeZoom(er){var tr=er.value/100;if(tr<.001)er.value=.1;else{var rr=HP.getZoom(),nr=hr;Hr(window,{width:0,height:0,x:(nr[0].scrollLeft+nr.width()/2)/rr,y:(nr[0].scrollTop+nr.height()/2)/rr,zoom:tr},!0)}};jP("#cur_context_panel").delegate("a","click",(function(){var er=jP(this);return er.attr("data-root")?HP.leaveContext():HP.setContext(er.text()),HP.clearSelection(),!1}));var Vr=function prepPaints(){Ar.fill.prep(),Ar.stroke.prep()},zr={},Kr=function setFlyoutTitles(){jP(".tools_flyout").each((function(){var er=jP("#"+this.id+"_show");if(!er.data("isLibrary")){var tr=jP(this).children().map((function(){return this.title})).get();er[0].title=tr.join(" / ")}}))},qr={},Wr=function setupFlyouts(er){jP.each(er,(function(tr,rr){var nr;qr[tr]||(qr[tr]=[]),(nr=qr[tr]).push.apply(nr,_toConsumableArray(rr));var ir,or=jP(tr).children().not(".tool_button_evt_handled"),ar=tr+"_show",sr=jP(ar),lr=!1;or.addClass("tool_button tool_button_evt_handled").unbind("click mousedown mouseup").each((function(){var tr="#"+this.getAttribute("id"),nr=Object.entries(rr).find((function(er){var rr=_slicedToArray(er,2);rr[0];return rr[1].sel===tr})),ir=_slicedToArray(nr,2),or=ir[0],cr=ir[1];zr[cr.sel]=cr.fn,cr.isDefault&&(lr=or);var ur=function flyoutAction(tr){var rr=cr;if("keydown"===tr.type){var nr=jP(rr.parent+"_show").hasClass("tool_button_current"),ir=jP(rr.parent+"_show").attr("data-curopt");Object.entries(er[cr.parent]).some((function(or){var ar=_slicedToArray(or,2),sr=ar[0],lr=ar[1];return lr.sel===ir&&(tr.shiftKey&&nr?(sr=Number.parseInt(sr),rr=qr[cr.parent][sr+1]||er[cr.parent][0]):rr=lr,!0)}))}if(jP(this).hasClass("disabled"))return!1;Tr(ar)&&rr.fn();var or=rr.icon?jP.getSvgIcon(rr.icon,!0):jP(rr.sel).children().eq(0).clone();return or[0].setAttribute("width",sr.width()),or[0].setAttribute("height",sr.height()),sr.children(":not(.flyout_arrow_horiz)").remove(),sr.append(or).attr("data-curopt",rr.sel),!0};return jP(this).mouseup(ur),cr.key&&jP(document).bind("keydown",cr.key[0]+" shift+"+cr.key[0],ur),!0})),lr?sr.attr("data-curopt",rr[lr].sel):sr.attr("data-curopt")||sr.attr("data-curopt",rr[0].sel),sr.mousedown((function(er){if(sr.hasClass("disabled"))return!1;var rr=jP(tr),nr=jP(ar).position().left+34,or=-1*rr.width(),lr=rr.data("shown_popop")?200:0;return ir=setTimeout((function(){sr.data("isLibrary")?rr.css("left",nr).show():rr.css("left",or).show().animate({left:nr},150),rr.data("shown_popop",!0)}),lr),er.preventDefault(),!0})).mouseup((function(er){clearTimeout(ir);var tr=jP(this).attr("data-curopt");sr.data("isLibrary")&&jP(ar.replace("_show","")).is(":visible")?Tr(ar,!0):Tr(ar)&&zr[tr]&&zr[tr]()}))})),Kr(),ir()},Xr=function makeFlyoutHolder(er,tr){return jP("<div>",{class:"tools_flyout",id:er}).appendTo("#svg_editor").append(tr)},Yr=function addAltDropDown(er,rr,nr,ir){var or=jP(er),ar=ir.dropUp,sr=jP(rr);ar&&jP(er).addClass("dropup"),sr.find("li").bind("mouseup",(function(){ir.seticon&&(tr("#cur_"+or[0].id,jP(this).children()),jP(this).addClass("current").siblings().removeClass("current"));for(var er=arguments.length,rr=new Array(er),ar=0;ar<er;ar++)rr[ar]=arguments[ar];nr.apply.apply(nr,[this].concat(rr))}));var lr=!1;jP(window).mouseup((function(er){lr||(or.removeClass("down"),sr.hide(),sr.css({top:0,left:0})),lr=!1})),or.bind("mousedown",(function(){var er=or.offset();ar?(er.top-=sr.height(),er.left+=8):er.top+=or.height(),sr.offset(er),or.hasClass("down")?(sr.hide(),sr.css({top:0,left:0})):(sr.show(),lr=!0),or.toggleClass("down")})).hover((function(){lr=!0})).mouseout((function(){lr=!1})),ir.multiclick&&sr.mousedown((function(){lr=!0}))},Jr=function(){var er=_asyncToGenerator(regeneratorRuntime.mark((function _callee5(er,tr){var rr,nr,ir,or,lr,cr,ur,dr,hr,pr,Ar;return regeneratorRuntime.wrap((function _callee5$(er){for(;;)switch(er.prev=er.next){case 0:if(or=function _prepResize(){sr&&(clearTimeout(sr),sr=null),nr||(sr=setTimeout((function(){nr=!0,ar(DP.pref("iconsize"))}),50))},tr){er.next=3;break}return er.abrupt("return",void 0);case 3:if(rr=!1,nr=!1,!tr.langReady){er.next=10;break}if(!DP.langChanged){er.next=10;break}return ir=DP.pref("lang"),er.next=10,tr.langReady({lang:ir});case 10:if(lr=function runCallback(){tr.callback&&!rr&&(rr=!0,tr.callback.call(DP))},cr=[],tr.context_tools&&jP.each(tr.context_tools,(function(er,tr){var rr,nr=tr.container_id?' id="'+tr.container_id+'"':"",ir=jP("#"+tr.panel);switch(ir.length||(ir=jP("<div>",{id:tr.panel}).appendTo("#tools_top")),tr.type){case"tool_button":rr='<div class="tool_button">'+tr.id+"</div>";var or=jP(rr).appendTo(ir);tr.events&&jP.each(tr.events,(function(er,tr){jP(or).bind(er,tr)}));break;case"select":rr="<label"+nr+'><select id="'+tr.id+'">',jP.each(tr.options,(function(er,nr){var ir=er===tr.defval?" selected":"";rr+='<option value="'+er+'"'+ir+">"+nr+"</option>"}));var ar=jP(rr+="</select></label>").appendTo(ir).find("select");jP.each(tr.events,(function(er,tr){jP(ar).bind(er,tr)}));break;case"button-select":rr='<div id="'+tr.id+'" class="dropdown toolset" title="'+tr.title+'"><div id="cur_'+tr.id+'" class="icon_label"></div><button></button></div>';var sr=jP('<ul id="'+tr.id+'_opts"></ul>').appendTo("#option_lists");tr.colnum&&sr.addClass("optcols"+tr.colnum),jP(rr).appendTo(ir).children(),cr.push({elem:"#"+tr.id,list:"#"+tr.id+"_opts",title:tr.title,callback:tr.events.change,cur:"#cur_"+tr.id});break;case"input":rr="<label"+nr+'><span id="'+tr.id+'_label">'+tr.label+':</span><input id="'+tr.id+'" title="'+tr.title+'" size="'+(tr.size||"4")+'" value="'+(tr.defval||"")+'" type="text"/></label>';var lr=jP(rr).appendTo(ir).find("input");tr.spindata&&lr.SpinButton(tr.spindata),tr.events&&jP.each(tr.events,(function(er,tr){lr.bind(er,tr)}))}})),ur=tr.svgicons,!tr.buttons){er.next=20;break}if(dr={},hr={},pr={},Ar={},jP.each(tr.buttons,(function(er,tr){for(var rr,nr,ir,or,ar,sr,lr,cr=tr.id,fr=er;jP("#"+cr).length;)cr=tr.id+"_"+ ++fr;if(ur){dr[cr]=tr.icon,hr[cr]=tr.title;var gr=tr.svgicon||tr.id;"app_menu"===tr.type?pr["#"+cr+" > div"]=gr:pr["#"+cr]=gr}else rr=jP('<img src="'+tr.icon+(tr.title?'" alt="'+tr.title:"")+'">');switch(tr.type){case"mode_flyout":case"mode":nr="tool_button",ir="#tools_left";break;case"context":nr="tool_button",ir="#"+tr.panel,jP(ir).length||jP("<div>",{id:tr.panel}).appendTo("#tools_top");break;case"app_menu":nr="",ir="#main_menu ul"}var mr,_r=jP(tr.list||"app_menu"===tr.type?"<li/>":"<div/>").attr("id",cr).attr("title",tr.title).addClass(nr);if(tr.includeWith||tr.list){if(tr.list){if(_r.addClass("push_button"),jP("#"+tr.list+"_opts").append(_r),tr.isDefault){jP("#cur_"+tr.list).append(_r.children().clone());var vr=tr.svgicon||tr.id;pr["#cur_"+tr.list]=vr}}else if(tr.includeWith){var yr,br=tr.includeWith;or=(lr=jP(br.button)).parent(),lr.parent().hasClass("tools_flyout")||(yr=lr[0].id.replace("tool_","tools_"),ar=lr.clone().attr("id",yr+"_show").append(jP("<div>",{class:"flyout_arrow_horiz"})),lr.before(ar),or=Xr(yr,lr)),sr=Co.getButtonData(br.button),br.isDefault&&(pr["#"+yr+"_show"]=tr.id);var wr=Ar["#"+or[0].id]=[{sel:"#"+cr,fn:tr.events.click,icon:tr.id,key:tr.key,isDefault:Boolean(tr.includeWith&&tr.includeWith.isDefault)},sr],Sr="position"in br?br.position:"last",xr=or.children().length;!isNaN(Sr)&&Sr>=0&&Sr<xr?or.children().eq(Sr).before(_r):(or.append(_r),wr.reverse())}}else"position"in tr?jP(ir).children().eq(tr.position).length?jP(ir).children().eq(tr.position).before(_r):jP(ir).children().last().after(_r):_r.appendTo(ir),"mode_flyout"===tr.type?(or=(lr=jP(_r)).parent(),lr.parent().hasClass("tools_flyout")||(mr=lr[0].id.replace("tool_","tools_"),ar=lr.clone().attr("id",mr+"_show").append(jP("<div>",{class:"flyout_arrow_horiz"})),lr.before(ar),(or=Xr(mr,lr)).data("isLibrary",!0),ar.data("isLibrary",!0)),pr["#"+mr+"_show"]=tr.id,Ar["#"+or[0].id]=[{sel:"#"+cr,fn:tr.events.click,icon:tr.id,isDefault:!0}]):"app_menu"===tr.type&&_r.append("<div>").append(tr.title);ur||_r.append(rr),tr.list||jP.each(tr.events,(function(er,rr){"click"===er&&"mode"===tr.type?(Wd()&&"click"===er&&(er="mousedown"),tr.includeWith?_r.bind(er,rr):_r.bind(er,(function(){Tr(_r)&&rr()})),tr.key&&(jP(document).bind("keydown",tr.key,rr),tr.title&&_r.attr("title",tr.title+" ["+tr.key+"]"))):_r.bind(er,rr)})),Wr(Ar)})),jP.each(cr,(function(){Yr(this.elem,this.list,this.callback,{seticon:!0})})),!ur){er.next=20;break}return er.abrupt("return",new Promise((function(er,tr){jP.svgIcons("".concat(ZP.imgPath).concat(ur),{w:24,h:24,id_match:!1,no_img:!Gd(),fallback:dr,placement:pr,callback:function callback(tr){"m"!==DP.pref("iconsize")&&or(),lr(),er()}})})));case 20:return er.abrupt("return",lr());case 21:case"end":return er.stop()}}),_callee5)})));return function extAdded(tr,rr){return er.apply(this,arguments)}}();HP.bind("selected",(function selectedChanged(er,tr){var rr=HP.getMode();"select"===rr&&Fr();var nr="pathedit"===rr;Er=1===tr.length||Cf(tr[1])?tr[0]:null,Nr=tr.length>=2&&!Cf(tr[1]),Cf(Er)||nr||function updateToolbar(){var er,tr;if(!Cf(Er))switch(Er.tagName){case"use":case"image":case"foreignObject":break;case"g":case"a":var rr=Er.getElementsByTagName("*"),nr=null;for(er=0,tr=rr.length;er<tr;er++){var ir=rr[er].getAttribute("stroke-width");0===er?nr=ir:nr!==ir&&(nr=null)}jP("#stroke_width").val(null===nr?"":nr),Ar.fill.update(!0),Ar.stroke.update(!0);break;default:Ar.fill.update(!0),Ar.stroke.update(!0),jP("#stroke_width").val(Er.getAttribute("stroke-width")||1),jP("#stroke_style").val(Er.getAttribute("stroke-dasharray")||"none");var or=Er.getAttribute("stroke-linejoin")||"miter";jP("#linejoin_"+or).length&&setStrokeOpt(jP("#linejoin_"+or)[0]),or=Er.getAttribute("stroke-linecap")||"butt",jP("#linecap_"+or).length&&setStrokeOpt(jP("#linecap_"+or)[0])}if(!Cf(Er)){var ar=100*(Er.getAttribute("opacity")||1);jP("#group_opacity").val(ar),jP("#opac_slider").slider("option","value",ar),jP("#elem_id").val(Er.id),jP("#elem_class").val(Er.getAttribute("class"))}Rr()}(),function togglePathEditMode(er,tr){er?(jP(".tool_button_current").removeClass("tool_button_current").addClass("tool_button"),jP("#tool_select").addClass("tool_button_current").removeClass("tool_button"),Nr=!1,tr.length&&(Er=tr[0])):setTimeout((function(){}),1e3)}(nr,tr),Mr(),HP.runExtensions("selectedChanged",{elems:tr,selectedElement:Er,multiselected:Nr})})),HP.bind("transition",(function elementTransition(er,tr){var rr=HP.getMode(),nr=tr[0];if(nr){if(!(Nr=tr.length>=2&&!Cf(tr[1])))switch(rr){case"rotate":var ir=HP.getRotationAngle(nr);jP("#angle").val(ir),jP("#tool_reorient").toggleClass("disabled",0===ir)}HP.runExtensions("elementTransition",{elems:tr})}})),HP.bind("changed",(function elementChanged(er,tr){var rr=HP.getMode();"select"===rr&&Fr(),tr.forEach((function(er){var tr=er&&"svg"===er.tagName;tr||function isLayer(er){return er&&"g"===er.tagName&&NT.CLASS_REGEX.test(er.getAttribute("class"))}(er)?(xr(),tr&&Ir()):er&&Er&&Cf(Er.parentNode)&&(Er=er)})),DP.showSaveWarning=!0,Mr(),Er&&"select"===rr&&(Ar.fill.update(),Ar.stroke.update()),HP.runExtensions("elementChanged",{elems:tr})})),HP.bind("saved",(function saveHandler(er,tr){if(DP.showSaveWarning=!1,tr='<?xml version="1.0"?>\n'+tr,zd())Br(0,!0);else{var rr=document.createElement("a");rr.href="data:image/svg+xml;base64,"+encode64(tr),rr.download="icon.svg",rr.style.display="none",document.body.append(rr),rr.click();var nr=DP.pref("save_notice_done");if("all"!==nr){var ir=qP.notification.saveFromBrowser.replace("%s","SVG");Vd()?tr.includes("<defs")?(ir+="\n\n"+qP.notification.defsFailOnSave,DP.pref("save_notice_done","all"),nr="all"):DP.pref("save_notice_done","part"):DP.pref("save_notice_done","all"),"part"!==nr&&jP.alert(ir)}}})),HP.bind("exported",(function exportHandler(er,tr){var rr=tr.issues,nr=tr.exportWindowName;if((fr=window.open(ef||"",nr))&&!fr.closed){if(fr.location.href=tr.bloburl||tr.datauri,"all"!==DP.pref("export_notice_done")){var ir=qP.notification.saveFromBrowser.replace("%s",tr.type);if(rr.length){var or="\n • ";ir+="\n\n"+qP.notification.noteTheseIssues+or+rr.join(or)}DP.pref("export_notice_done","all"),fr.alert(ir)}}else jP.alert(qP.notification.popupWindowBlocked)})),HP.bind("exportedPDF",(function(er,tr){if(tr.output){var rr=tr.exportWindowName;rr&&(fr=window.open("",rr)),fr&&!fr.closed?fr.location.href=tr.output:jP.alert(qP.notification.popupWindowBlocked)}})),HP.bind("zoomed",Hr),HP.bind("zoomDone",jr),HP.bind("updateCanvas",(function(er,tr){var rr=tr.center,nr=tr.newCtr;Ir(rr,nr)})),HP.bind("contextset",(function contextChanged(er,tr){var rr="";if(tr){var nr="";rr='<a href="#" data-root="y">'+HP.getCurrentDrawing().getCurrentLayerName()+"</a>",jP(tr).parentsUntil("#svgcontent > g").andSelf().each((function(){this.id&&(nr+=" > "+this.id,rr+=this!==tr?' > <a href="#">'.concat(this.id,"</a>"):" > ".concat(this.id))})),Qr=nr}else Qr=null;jP("#cur_context_panel").toggle(Boolean(tr)).html(rr),Dr()})),HP.bind("extension_added",Jr),HP.textActions.setInputElem(jP("#text")[0]);var $r='<div class="palette_item" data-rgb="none"></div>';jP.each(["#000000","#3f3f3f","#7f7f7f","#bfbfbf","#ffffff","#ff0000","#ff7f00","#ffff00","#7fff00","#00ff00","#00ff7f","#00ffff","#007fff","#0000ff","#7f00ff","#ff00ff","#ff007f","#7f0000","#7f3f00","#7f7f00","#3f7f00","#007f00","#007f3f","#007f7f","#003f7f","#00007f","#3f007f","#7f007f","#7f003f","#ffaaaa","#ffd4aa","#ffffaa","#d4ffaa","#aaffaa","#aaffd4","#aaffff","#aad4ff","#aaaaff","#d4aaff","#ffaaff","#ffaad4"],(function(er,tr){$r+='<div class="palette_item" style="background-color: '+tr+';" data-rgb="'+tr+'"></div>'})),jP("#palette").append($r);$r="",jP.each(["#FFF","#888","#000","chessboard"],(function(er,tr){$r+="chessboard"===tr?'<div class="color_block" data-bgcolor="'.concat(tr,'" style="background-image:url(data:image/gif;base64,R0lGODlhEAAQAIAAAP///9bW1iH5BAAAAAAALAAAAAAQABAAAAIfjGgq4jM3IFLJgpswNly/XkcBpIiVaInlLJr9FZWAQA7);"></div>'):'<div class="color_block" data-bgcolor="'.concat(tr,'" style="background-color:').concat(tr,';"></div>')})),jP("#bg_blocks").append($r);var Zr=jP("#bg_blocks div"),Tn="cur_background";Zr.each((function(){jP(this).click((function(){Zr.removeClass(Tn),jP(this).addClass(Tn)}))})),setBackground(DP.pref("bkgd_color"),DP.pref("bkgd_url")),jP("#image_save_opts input").val([DP.pref("img_save")]);var Un=function changeOpacity(er,tr){Cf(tr)&&(tr=er.value),jP("#group_opacity").val(tr),er&&er.handle||jP("#opac_slider").slider("option","value",tr),HP.setOpacity(tr/100)},Qn=function changeBlur(er,tr,rr){Cf(tr)&&(tr=er.value),jP("#blur").val(tr);var nr=!1;er&&er.handle||(jP("#blur_slider").slider("option","value",tr),nr=!0),rr?HP.setBlurNoUndo(tr):HP.setBlur(tr,nr)};jP("#stroke_style").change((function(){HP.setStrokeAttr("stroke-dasharray",jP(this).val()),Lr()})),jP("#stroke_linejoin").change((function(){HP.setStrokeAttr("stroke-linejoin",jP(this).val()),Lr()})),jP("select").change((function(){jP(this).blur()}));var Dn,Hn,Gn,Vn,zn,Kn=!1;jP("#selLayerNames").change(_asyncToGenerator(regeneratorRuntime.mark((function _callee6(){var er,tr,rr;return regeneratorRuntime.wrap((function _callee6$(nr){for(;;)switch(nr.prev=nr.next){case 0:if(er=this.options[this.selectedIndex].value,tr=qP.notification.QmoveElemsToLayer.replace("%s",er),rr=function moveToLayer(tr){tr&&(Kn=!0,HP.moveSelectedToLayer(er),HP.clearSelection(),xr())},!er){nr.next=14;break}if(!Kn){nr.next=8;break}rr(!0),nr.next=14;break;case 8:return nr.next=10,jP.confirm(tr);case 10:if(nr.sent){nr.next=13;break}return nr.abrupt("return");case 13:rr(!0);case 14:case"end":return nr.stop()}}),_callee6,this)})))),jP("#font_family").change((function(){HP.setFontFamily(this.value)})),jP("#seg_type").change((function(){HP.setSegType(jP(this).val())})),jP("#text").bind("keyup input",(function(){HP.setTextContent(this.value)})),jP("#image_url").change((function(){Ur(this.value)})),jP("#link_url").change((function(){this.value.length?HP.setLinkURL(this.value):HP.removeHyperlink()})),jP("#g_title").change((function(){HP.setGroupTitle(this.value)})),jP(".attr_changer").change((function(){var er=this.getAttribute("data-attr"),tr=this.value;if(!EA(er,tr,Er))return this.value=Er.getAttribute(er),jP.alert(qP.notification.invalidAttrValGiven),!1;if("id"!==er&&"class"!==er)if(isNaN(tr))tr=HP.convertToNum(er,tr);else if("px"!==ZP.baseUnit){var rr=SA();(Er[er]||"pathedit"===HP.getMode()||"x"===er||"y"===er)&&(tr*=rr[ZP.baseUnit])}if("id"===er){var nr=Er;HP.clearSelection(),nr.id=tr,HP.addToSelection([nr],!0)}else HP.changeSelectedAttribute(er,tr);return this.blur(),!0})),jP("#palette").mouseover((function(){var er=jP('<input type="hidden">');jP(this).append(er),er.focus().remove()})),jP(".palette_item").mousedown((function(er){var tr,rr=er.shiftKey||2===er.button?"stroke":"fill",nr=jP(this).data("rgb");"none"===nr||"transparent"===nr||"initial"===nr?(nr="none",tr=new jP.jGraduate.Paint):tr=new jP.jGraduate.Paint({alpha:100,solidColor:nr.substr(1)}),Ar[rr].setPaint(tr),HP.setColor(rr,nr),"none"!==nr&&1!==HP.getPaintOpacity(rr)&&HP.setPaintOpacity(rr,1),Rr()})).bind("contextmenu",(function(er){er.preventDefault()})),jP("#toggle_stroke_tools").on("click",(function(){jP("#tools_bottom").toggleClass("expanded")})),Dn=hr[0],Hn=null,Gn=null,Vn=!1,zn=!1,jP("#svgcanvas").bind("mousemove mouseup",(function(er){return!1===Vn||(Dn.scrollLeft-=er.clientX-Hn,Dn.scrollTop-=er.clientY-Gn,Hn=er.clientX,Gn=er.clientY,"mouseup"===er.type&&(Vn=!1),!1)})).mousedown((function(er){return 1!==er.button&&!0!==zn||(Vn=!0,Hn=er.clientX,Gn=er.clientY,!1)})),jP(window).mouseup((function(){Vn=!1})),jP(document).bind("keydown","space",(function(er){HP.spaceKey=zn=!0,er.preventDefault()})).bind("keyup","space",(function(er){er.preventDefault(),HP.spaceKey=zn=!1})).bind("keydown","shift",(function(er){"zoom"===HP.getMode()&&hr.css("cursor",_r)})).bind("keyup","shift",(function(er){"zoom"===HP.getMode()&&hr.css("cursor",mr)})),DP.setPanning=function(er){HP.spaceKey=zn=er},function(){var er=jP("#main_icon"),tr=jP("#main_icon span"),rr=jP("#main_menu"),nr=!1,ir=0,or=!0,ar=!1;jP(window).mouseup((function(tr){nr||(er.removeClass("buttondown"),"INPUT"!==tr.target.tagName?rr.fadeOut(200):ar||(ar=!0,jP(tr.target).click((function(){rr.css("margin-left","-9999px").show()})))),nr=!1})).mousedown((function(er){jP(er.target).closest("div.tools_flyout, .contextMenu").length||jP(".tools_flyout:visible,.contextMenu").fadeOut(250)})),tr.bind("mousedown",(function(){er.hasClass("buttondown")?rr.fadeOut(200):(rr.css("margin-left",0).show(),ir||(ir=rr.height()),rr.css("height",0).animate({height:ir},200),nr=!0),er.toggleClass("buttondown buttonup")})).hover((function(){nr=!0})).mouseout((function(){nr=!1}));var sr=jP("#main_menu li");sr.mouseover((function(){or="rgba(0, 0, 0, 0)"===jP(this).css("background-color"),sr.unbind("mouseover"),or&&sr.mouseover((function(){this.style.backgroundColor="#FFC"})).mouseout((function(){return this.style.backgroundColor="transparent",!0}))}))}(),DP.addDropDown=function(er,tr,rr){if(jP(er).length){var nr=jP(er).find("button"),ir=jP(er).find("ul").attr("id",jP(er)[0].id+"-list");rr?jP(er).addClass("dropup"):jP("#option_lists").append(ir),ir.find("li").bind("mouseup",tr);var or=!1;jP(window).mouseup((function(er){or||(nr.removeClass("down"),ir.hide()),or=!1})),nr.bind("mousedown",(function(){if(nr.hasClass("down"))ir.hide();else{if(!rr){var tr=jP(er).position();ir.css({top:tr.top+24,left:tr.left-10})}ir.show(),or=!0}nr.toggleClass("down")})).hover((function(){or=!0})).mouseout((function(){or=!1}))}},DP.addDropDown("#font_family_dropdown",(function(){jP("#font_family").val(jP(this).text()).change()})),DP.addDropDown("#opacity_dropdown",(function(){if(!jP(this).find("div").length){var er=Number.parseInt(jP(this).text().split("%")[0]);Un(!1,er)}}),!0),jP("#opac_slider").slider({start:function start(){jP("#opacity_dropdown li:not(.special)").hide()},stop:function stop(){jP("#opacity_dropdown li").show(),jP(window).mouseup()},slide:function slide(er,tr){Un(tr)}}),DP.addDropDown("#blur_dropdown",jP.noop);var Wn,Xn,Yn=!1;jP("#blur_slider").slider({max:10,step:.1,stop:function stop(er,tr){Yn=!1,Qn(tr),jP("#blur_dropdown li").show(),jP(window).mouseup()},start:function start(){Yn=!0},slide:function slide(er,tr){Qn(tr,null,Yn)}}),DP.addDropDown("#zoom_dropdown",(function(){var er=jP(this),tr=er.data("val");tr?Hr(window,tr):Gr({value:Number.parseFloat(er.text())})}),!0),Yr("#stroke_linecap","#linecap_opts",(function(){setStrokeOpt(this,!0)}),{dropUp:!0}),Yr("#stroke_linejoin","#linejoin_opts",(function(){setStrokeOpt(this,!0)}),{dropUp:!0}),Yr("#tool_position","#position_opts",(function(){var er=this.id.replace("tool_pos","").charAt(0);HP.alignSelectedElements(er,"page")}),{multiclick:!0}),Xn=function unfocus(){jP(Wn).blur()},jP("#svg_editor").find("button, select, input:not(#text)").focus((function(){Wn=this,vr="toolbars",hr.mousedown(Xn)})).blur((function(){vr="canvas",hr.unbind("mousedown",Xn),"textedit"===HP.getMode()&&jP("#text").focus()}));var Jn,$n=function clickFHPath(){Pr("tool_fhpath")&&HP.setMode("fhpath")},Zn=function clickLine(){Tr("#tool_line")&&HP.setMode("line")},ei=function clickSquare(){Tr("#tool_square")&&HP.setMode("square")},ti=function clickRect(){Tr("#tool_rect")&&HP.setMode("rect")},ri=function clickFHRect(){Tr("#tool_fhrect")&&HP.setMode("fhrect")},ni=function clickCircle(){Tr("#tool_circle")&&HP.setMode("circle")},ii=function clickEllipse(){Tr("#tool_ellipse")&&HP.setMode("ellipse")},oi=function clickFHEllipse(){Tr("#tool_fhellipse")&&HP.setMode("fhellipse")},ai=function clickImage(){Pr("tool_image")&&HP.setMode("image")},si=function clickZoom(){Pr("tool_zoom")&&(HP.setMode("zoom"),hr.css("cursor",mr))},li=function zoomImage(er){var tr=HP.getResolution();er=er?tr.zoom*er:1,jP("#zoom").val(100*er),HP.setZoom(er),jr(),Ir(!0)},ui=function dblclickZoom(){Tr("#tool_zoom")&&(li(),Fr())},di=function clickText(){Pr("tool_text")&&HP.setMode("text")},hi=function clickPath(){Pr("tool_path")&&HP.setMode("path")},pi=function deleteSelected(){Cf(Er)&&!Nr||HP.deleteSelectedElements()},Ai=function cutSelected(){Cf(Er)&&!Nr||HP.cutSelectedElements()},fi=function copySelected(){Cf(Er)&&!Nr||HP.copySelectedElements()},gi=function pasteInCenter(){var er=HP.getZoom(),tr=(hr[0].scrollLeft+hr.width()/2)/er-HP.contentW,rr=(hr[0].scrollTop+hr.height()/2)/er-HP.contentH;HP.pasteElements("point",tr,rr)},mi=function moveToTopSelected(){Cf(Er)||HP.moveToTopSelectedElement()},_i=function moveToBottomSelected(){Cf(Er)||HP.moveToBottomSelectedElement()},vi=function moveUpDownSelected(er){Cf(Er)||HP.moveUpDownSelected(er)},yi=function convertToPath(){Cf(Er)||HP.convertToPath()},wi=function reorientPath(){Cf(Er)||ur.reorient()},Si=function(){var er=_asyncToGenerator(regeneratorRuntime.mark((function _callee7(){var er;return regeneratorRuntime.wrap((function _callee7$(tr){for(;;)switch(tr.prev=tr.next){case 0:if(Cf(Er)&&!Nr){tr.next=5;break}return tr.next=3,jP.prompt(qP.notification.enterNewLinkURL,"http://");case 3:(er=tr.sent)&&HP.makeHyperlink(er);case 5:case"end":return tr.stop()}}),_callee7)})));return function makeHyperlink(){return er.apply(this,arguments)}}(),xi=function moveSelected(er,tr){if(!Cf(Er)||Nr){if(ZP.gridSnapping){var rr=HP.getZoom()*ZP.snappingStep;er*=rr,tr*=rr}HP.moveSelectedElements(er,tr)}},ki=function linkControlPoints(){jP("#tool_node_link").toggleClass("push_button_pressed tool_button");var er=jP("#tool_node_link").hasClass("push_button_pressed");ur.linkControlPoints(er)},Ci=function clonePathNode(){ur.getNodePoint()&&ur.clonePathNode()},Bi=function deletePathNode(){ur.getNodePoint()&&ur.deletePathNode()},Ei=function addSubPath(){var er=jP("#tool_add_subpath"),tr=!er.hasClass("push_button_pressed");er.toggleClass("push_button_pressed tool_button"),ur.addSubPath(tr)},Ni=function opencloseSubPath(){ur.opencloseSubPath()},Li=function selectNext(){HP.cycleElement(1)},Ti=function selectPrev(){HP.cycleElement(0)},Pi=function rotateSelected(er,tr){if(!Cf(Er)&&!Nr){er||(tr*=-1);var rr=Number.parseFloat(jP("#angle").val())+tr;HP.setRotationAngle(rr),Mr()}},Fi=function(){var er=_asyncToGenerator(regeneratorRuntime.mark((function _callee8(){var er,tr,rr;return regeneratorRuntime.wrap((function _callee8$(nr){for(;;)switch(nr.prev=nr.next){case 0:return er=_slicedToArray(ZP.dimensions,2),tr=er[0],rr=er[1],nr.next=3,jP.confirm(qP.notification.QwantToClear);case 3:if(nr.sent){nr.next=6;break}return nr.abrupt("return");case 6:Fr(),HP.clear(),HP.setResolution(tr,rr),Ir(!0),li(),xr(),Mr(),Vr(),HP.runExtensions("onNewDocument");case 15:case"end":return nr.stop()}}),_callee8)})));return function clickClear(){return er.apply(this,arguments)}}(),Ui=function clickBold(){return HP.setBold(!HP.getBold()),Mr(),!1},Ii=function clickItalic(){return HP.setItalic(!HP.getItalic()),Mr(),!1},Ri=function(){var er=_asyncToGenerator(regeneratorRuntime.mark((function _callee9(){var er,tr,rr,nr,ir;return regeneratorRuntime.wrap((function _callee9$(or){for(;;)switch(or.prev=or.next){case 0:return rr=function _openExportWindow(){var er,rr,nr=qP.notification.loadingImage;if("new"===ZP.exportWindowType&&DP.exportWindowCt++,tr=ZP.canvasName+DP.exportWindowCt,Jn)rr=Jn;else{if(er='<!DOCTYPE html><html>\n <head>\n <meta charset="utf-8">\n <title>'.concat(nr,"</title>\n </head>\n <body><h1>").concat(nr,"</h1></body>\n <html>"),"undefined"!=typeof URL&&URL.createObjectURL){var ir=new Blob([er],{type:"text/html"});rr=URL.createObjectURL(ir)}else rr="data:text/html;base64;charset=utf-8,"+encode64(er);Jn=rr}fr=window.open(rr,tr)},or.next=3,jP.select("Select an image type for export: ",["PNG","JPEG","BMP","WEBP","PDF"],(function(){var er=jP(this);"JPEG"===er.val()||"WEBP"===er.val()?jP("#image-slider").length||jP("<div><label>".concat(qP.ui.quality,'\n <input id="image-slider"\n type="range" min="1" max="100" value="92" />\n </label></div>')).appendTo(er.parent()):jP("#image-slider").parent().remove()}));case 3:if(er=or.sent){or.next=6;break}return or.abrupt("return");case 6:if(nr=Kd(),"PDF"!==er){or.next=12;break}JP||nr||rr(),HP.exportPDF(tr),or.next=16;break;case 12:return YP||rr(),ir=Number.parseInt(jP("#image-slider").val())/100,or.next=16,HP.rasterExport(er,ir,tr);case 16:case"end":return or.stop()}}),_callee9)})));return function clickExport(){return er.apply(this,arguments)}}(),Mi=function clickOpen(){HP.open()},Oi=function clickImport(){},Qi=function clickUndo(){dr.getUndoStackSize()>0&&(dr.undo(),xr())},Di=function clickRedo(){dr.getRedoStackSize()>0&&(dr.redo(),xr())},ji=function clickGroup(){Nr?HP.groupSelectedElements():Er&&HP.ungroupSelectedElement()},Hi=function clickClone(){HP.cloneSelectedElements(20,20)},Gi=function clickAlign(er){HP.alignSelectedElements(er,jP("#align_relative_to").val())},Vi=function clickWireframe(){if(QP("tool_wireframe").pressed=!QP("tool_wireframe").pressed,hr.toggleClass("wireframe"),!uo){var er=jP("#wireframe_rules");er.length?er.empty():jP('<style id="wireframe_rules"></style>').appendTo("head"),Or()}};jP("#svg_docprops_container, #svg_prefs_container").draggable({cancel:"button,fieldset",containment:"window"}).css("position","absolute");var zi,Ki,qi=!1,Wi=!1,Xi=function showDocProperties(){if(!qi){qi=!0,jP("#image_save_opts input").val([DP.pref("img_save")]);var er=HP.getResolution();"px"!==ZP.baseUnit&&(er.w=kA(er.w)+ZP.baseUnit,er.h=kA(er.h)+ZP.baseUnit),jP("#canvas_width").val(er.w),jP("#canvas_height").val(er.h),jP("#canvas_title").val(HP.getDocumentTitle()),jP("#svg_docprops").show()}},Yi=function showPreferences(){if(!Wi){Wi=!0,jP("#main_menu").hide();var er=$P.bkgd_color,tr=DP.pref("bkgd_url");Zr.each((function(){var tr=jP(this),rr=tr.data("bgcolor")===er;tr.toggleClass(Tn,rr)})),er||Zr.eq(0).addClass(Tn),tr&&jP("#canvas_bg_url").val(tr),jP("#grid_snapping_on").prop("checked",ZP.gridSnapping),jP("#grid_snapping_step").attr("value",ZP.snappingStep),jP("#grid_color").attr("value",ZP.gridColor),jP("#svg_prefs").show()}},Ji=function openHomePage(){window.open("https://github.com/SVG-Edit/svgedit","_blank")},$i=function hideSourceEditor(){jP("#svg_source_editor").hide(),kr=!1,jP("#svg_source_textarea").blur()},Zi=function(){var er=_asyncToGenerator(regeneratorRuntime.mark((function _callee10(){var er;return regeneratorRuntime.wrap((function _callee10$(tr){for(;;)switch(tr.prev=tr.next){case 0:if(kr){tr.next=2;break}return tr.abrupt("return");case 2:if(er=function saveChanges(){HP.clearSelection(),$i(),li(),xr(),Dr(),Vr()},HP.setSvgString(jP("#svg_source_textarea").val())){tr.next=11;break}return tr.next=6,jP.confirm(qP.notification.QerrorsRevertToSource);case 6:if(tr.sent){tr.next=9;break}return tr.abrupt("return");case 9:return er(),tr.abrupt("return");case 11:er(),Fr();case 13:case"end":return tr.stop()}}),_callee10)})));return function saveSourceEditor(){return er.apply(this,arguments)}}(),eo=function hideDocProperties(){jP("#svg_docprops").hide(),jP("#canvas_width,#canvas_height").removeAttr("disabled"),jP("#resolution")[0].selectedIndex=0,jP("#image_save_opts input").val([DP.pref("img_save")]),qi=!1},to=function hidePreferences(){jP("#svg_prefs").hide(),Wi=!1},ro=function saveDocProperties(){var er=jP("#canvas_title").val();Dr(er),HP.setDocumentTitle(er);var tr=jP("#canvas_width"),rr=tr.val(),nr=jP("#canvas_height"),ir=nr.val();return"fit"===rr||EA("width",rr)?(tr.parent().removeClass("error"),"fit"===ir||EA("height",ir)?(nr.parent().removeClass("error"),HP.setResolution(rr,ir)?(DP.pref("img_save",jP("#image_save_opts :checked").val()),Ir(),eo(),!0):(jP.alert(qP.notification.noContentToFitTo),!1)):(nr.parent().addClass("error"),jP.alert(qP.notification.invalidAttrValGiven),!1)):(tr.parent().addClass("error"),jP.alert(qP.notification.invalidAttrValGiven),!1)},no=DP.savePreferences=_asyncToGenerator(regeneratorRuntime.mark((function _callee11(){var tr,rr,nr,ir;return regeneratorRuntime.wrap((function _callee11$(or){for(;;)switch(or.prev=or.next){case 0:if(setBackground(jP("#bg_blocks div.cur_background").data("bgcolor")||"#FFF",jP("#canvas_bg_url").val()),!(tr=jP("#lang_select").val())||tr===DP.pref("lang")){or.next=11;break}return or.next=6,DP.putLocale(tr,er);case 6:return rr=or.sent,nr=rr.langParam,ir=rr.langData,or.next=11,To(nr,ir);case 11:ar(jP("#iconsize").val()),ZP.gridSnapping=jP("#grid_snapping_on")[0].checked,ZP.snappingStep=jP("#grid_snapping_step").val(),ZP.gridColor=jP("#grid_color").val(),ZP.showRulers=jP("#show_rulers")[0].checked,jP("#rulers").toggle(ZP.showRulers),ZP.showRulers&&updateRulers(),ZP.baseUnit=jP("#base_unit").val(),HP.setConfig(ZP),Ir(),to();case 22:case"end":return or.stop()}}),_callee11)}))),io=jP.noop,oo=function(){var er=_asyncToGenerator(regeneratorRuntime.mark((function _callee12(){return regeneratorRuntime.wrap((function _callee12$(er){for(;;)switch(er.prev=er.next){case 0:if(jP("#dialog_box").hide(),kr||qi||Wi){er.next=4;break}return Qr&&HP.leaveContext(),er.abrupt("return");case 4:if(!kr){er.next=15;break}if(Cr===jP("#svg_source_textarea").val()){er.next=12;break}return er.next=8,jP.confirm(qP.notification.QignoreSourceChanges);case 8:er.sent&&$i(),er.next=13;break;case 12:$i();case 13:er.next=16;break;case 15:qi?eo():Wi&&to();case 16:io();case 17:case"end":return er.stop()}}),_callee12)})));return function cancelOverlays(){return er.apply(this,arguments)}}(),ao={width:jP(window).width(),height:jP(window).height()};zd()&&(io=function resetScrollPos(){0===hr[0].scrollLeft&&0===hr[0].scrollTop&&(hr[0].scrollLeft=lr.left,hr[0].scrollTop=lr.top)},lr={left:hr[0].scrollLeft,top:hr[0].scrollTop},jP(window).resize(io),DP.ready((function(){return new Promise((function(er,tr){setTimeout((function(){io(),er()}),500)}))})),hr.scroll((function(){lr={left:hr[0].scrollLeft,top:hr[0].scrollTop}}))),jP(window).resize((function(er){jP.each(ao,(function(er,tr){var rr=jP(window)[er]();hr[0]["scroll"+("width"===er?"Left":"Top")]-=(rr-tr)/2,ao[er]=rr})),ir()})),hr.scroll((function(){jP("#ruler_x").length&&(jP("#ruler_x")[0].scrollLeft=hr[0].scrollLeft),jP("#ruler_y").length&&(jP("#ruler_y")[0].scrollTop=hr[0].scrollTop)})),jP("#url_notice").click((function(){jP.alert(this.title)})),jP("#change_image_url").click(promptImgURL),zi="tool_button_current",Ki="",jP.each(["clear","open","save","delete","delete_multi","paste","clone","clone_multi","move_top","move_bottom"],(function(er,tr){Ki+=(er?",":"")+"#tool_"+tr})),jP(Ki).mousedown((function(){jP(this).addClass(zi)})).bind("mousedown mouseout",(function(){jP(this).removeClass(zi)}));var so=function colorPicker(er){var tr="stroke_color"===er.attr("id")?"stroke":"fill",rr="stroke"===tr?qP.ui.pick_stroke_paint_opacity:qP.ui.pick_fill_paint_opacity,nr=er.offset(),ir=Ar[tr].paint;jP("#color_picker").draggable({cancel:".jGraduate_tabs, .jGraduate_colPick, .jGraduate_gradPick, .jPicker",containment:"window"}).css(ZP.colorPickerCSS||{left:nr.left-140,bottom:40}).jGraduate({images:{clientPath:"./jgraduate/images/"},paint:ir,window:{pickerTitle:rr},newstop:"inverse"},(function(er){ir=new jP.jGraduate.Paint(er),Ar[tr].setPaint(ir),HP.setPaint(tr,ir),jP("#color_picker").hide()}),(function(){jP("#color_picker").hide()}))},lo=function(){function PaintBox(er,tr){_classCallCheck(this,PaintBox);var rr=ZP["fill"===tr?"initFill":"initStroke"],nr=(new DOMParser).parseFromString('<svg xmlns="http://www.w3.org/2000/svg">\n <rect width="16.5" height="16.5"\n fill="#'.concat(rr.color,'" opacity="').concat(rr.opacity,'"/>\n <defs><linearGradient id="gradbox_').concat(PaintBox.ctr++,'"/></defs>\n </svg>'),"text/xml").documentElement;(nr=jP(er)[0].appendChild(document.importNode(nr,!0))).setAttribute("width",16.5),this.rect=nr.firstElementChild,this.defs=nr.getElementsByTagName("defs")[0],this.grad=this.defs.firstElementChild,this.paint=new jP.jGraduate.Paint({solidColor:rr.color}),this.type=tr}return _createClass(PaintBox,[{key:"setPaint",value:function setPaint(er,tr){this.paint=er;var rr=er.type,nr=er.alpha/100,ir="none";switch(rr){case"solidColor":ir="none"!==er[rr]?"#"+er[rr]:er[rr];break;case"linearGradient":case"radialGradient":this.grad.remove(),this.grad=this.defs.appendChild(er[rr]),ir="url(#"+(this.grad.id="gradbox_"+this.type)+")"}this.rect.setAttribute("fill",ir),this.rect.setAttribute("opacity",nr),tr&&(HP.setColor(this.type,this._paintColor,!0),HP.setPaintOpacity(this.type,this._paintOpacity,!0))}},{key:"update",value:function update(er){if(Er){var tr=this.type;switch(Er.tagName){case"use":case"image":case"foreignObject":return;case"g":case"a":for(var rr=Er.getElementsByTagName("*"),nr=null,ir=0,or=rr.length;ir<or;ir++){var ar=rr[ir].getAttribute(tr);if(0===ir)nr=ar;else if(nr!==ar){nr=null;break}}if(null===nr)return void(this._paintColor=null);this._paintColor=nr,this._paintOpacity=1;break;default:this._paintOpacity=Number.parseFloat(Er.getAttribute(tr+"-opacity")),Number.isNaN(this._paintOpacity)&&(this._paintOpacity=1);var sr="fill"===tr?"black":"none";this._paintColor=Er.getAttribute(tr)||sr}er&&(HP.setColor(tr,this._paintColor,!0),HP.setPaintOpacity(tr,this._paintOpacity,!0)),this._paintOpacity*=100;var lr=function getPaint(er,tr,rr){var nr={alpha:tr};if(er.startsWith("url(#")){var ir=HP.getRefElem(er);nr[(ir=ir?ir.cloneNode(!0):jP("#"+rr+"_color defs *")[0]).tagName]=ir}else er.startsWith("#")?nr.solidColor=er.substr(1):nr.solidColor="none";return new jP.jGraduate.Paint(nr)}(this._paintColor,this._paintOpacity,tr);this.setPaint(lr)}}},{key:"prep",value:function prep(){switch(this.paint.type){case"linearGradient":case"radialGradient":var er=new jP.jGraduate.Paint({copy:this.paint});HP.setPaint(this.type,er)}}}]),PaintBox}();lo.ctr=0,Ar.fill=new lo("#fill_color","fill"),Ar.stroke=new lo("#stroke_color","stroke"),jP("#stroke_width").val(ZP.initStroke.width),jP("#group_opacity").val(100*ZP.initOpacity);var co=Ar.fill.rect.cloneNode(!1);co.setAttribute("style","vector-effect:non-scaling-stroke");var uo="non-scaling-stroke"===co.style.vectorEffect;co.removeAttribute("style");var ho,po,Ao=Ar.fill.rect.ownerDocument.createElementNS(wd.SVG,"feGaussianBlur");void 0===Ao.stdDeviationX&&jP("#tool_blur").hide(),jP(Ao).remove(),ho="-"+or.toLowerCase()+"-zoom-",po=ho+"in",hr.css("cursor",po),hr.css("cursor")===po&&(mr=po,_r=ho+"out"),hr.css("cursor","auto"),setTimeout((function(){HP.embedImage("images/logo.png",(function(er){er||(jP("#image_save_opts [value=embed]").attr("disabled","disabled"),jP("#image_save_opts input").val(["ref"]),DP.pref("img_save","ref"),jP("#image_opt_embed").css("color","#666").attr("title",qP.notification.featNotSupported))}))}),1e3),jP("#fill_color, #tool_fill .icon_label").click((function(){so(jP("#fill_color")),Rr()})),jP("#stroke_color, #tool_stroke .icon_label").click((function(){so(jP("#stroke_color")),Rr()})),jP("#group_opacityLabel").click((function(){jP("#opacity_dropdown button").mousedown(),jP(window).mouseup()})),jP("#zoomLabel").click((function(){jP("#zoom_dropdown button").mousedown(),jP(window).mouseup()})),jP(".push_button").mousedown((function(){jP(this).hasClass("disabled")||jP(this).addClass("push_button_pressed").removeClass("push_button")})).mouseout((function(){jP(this).removeClass("push_button_pressed").addClass("push_button")})).mouseup((function(){jP(this).removeClass("push_button_pressed").addClass("push_button")}));var fo=function(){var er=_asyncToGenerator(regeneratorRuntime.mark((function _callee13(){var er,tr,rr;return regeneratorRuntime.wrap((function _callee13$(nr){for(;;)switch(nr.prev=nr.next){case 0:tr=HP.getCurrentDrawing().getNumLayers();do{er=qP.layers.layer+" "+ ++tr}while(HP.getCurrentDrawing().hasLayer(er));return nr.next=4,jP.prompt(qP.notification.enterUniqueLayerName,er);case 4:if(rr=nr.sent){nr.next=7;break}return nr.abrupt("return");case 7:if(!HP.getCurrentDrawing().hasLayer(rr)){nr.next=10;break}return jP.alert(qP.notification.dupeLayerName),nr.abrupt("return");case 10:HP.createLayer(rr),Mr(),xr();case 13:case"end":return nr.stop()}}),_callee13)})));return function newLayer(){return er.apply(this,arguments)}}();function deleteLayer(){HP.deleteCurrentLayer()&&(Mr(),xr(),jP("#layerlist tr.layer").removeClass("layersel"),jP("#layerlist tr.layer:first").addClass("layersel"))}function _cloneLayer(){return(_cloneLayer=_asyncToGenerator(regeneratorRuntime.mark((function _callee18(){var er,tr;return regeneratorRuntime.wrap((function _callee18$(rr){for(;;)switch(rr.prev=rr.next){case 0:return er=HP.getCurrentDrawing().getCurrentLayerName()+" copy",rr.next=3,jP.prompt(qP.notification.enterUniqueLayerName,er);case 3:if(tr=rr.sent){rr.next=6;break}return rr.abrupt("return");case 6:if(!HP.getCurrentDrawing().hasLayer(tr)){rr.next=9;break}return jP.alert(qP.notification.dupeLayerName),rr.abrupt("return");case 9:HP.cloneLayer(tr),Mr(),xr();case 12:case"end":return rr.stop()}}),_callee18)})))).apply(this,arguments)}var go=function moveLayer(er){var tr=HP.getCurrentDrawing().getNumLayers(),rr=jP("#layerlist tr.layersel").index();(rr>0||rr<tr-1)&&(rr+=er,HP.setCurrentLayerPosition(tr-rr-1),xr())},mo=function(){var er=_asyncToGenerator(regeneratorRuntime.mark((function _callee14(){var er,tr;return regeneratorRuntime.wrap((function _callee14$(rr){for(;;)switch(rr.prev=rr.next){case 0:return er=jP("#layerlist tr.layersel td.layername").text(),rr.next=3,jP.prompt(qP.notification.enterNewLayerName,"");case 3:if(tr=rr.sent){rr.next=6;break}return rr.abrupt("return");case 6:if(er!==tr&&!HP.getCurrentDrawing().hasLayer(tr)){rr.next=9;break}return jP.alert(qP.notification.layerHasThatName),rr.abrupt("return");case 9:HP.renameCurrentLayer(tr),xr();case 11:case"end":return rr.stop()}}),_callee14)})));return function layerRename(){return er.apply(this,arguments)}}(),_o=-1,vo=!1,yo=!1,wo=function changeSidePanelWidth(er){var tr=jP("#ruler_x");jP("#sidepanels").width("+="+er),jP("#layerpanel").width("+="+er),tr.css("right",Number.parseInt(tr.css("right"))+er),hr.css("right",Number.parseInt(hr.css("right"))+er),HP.runExtensions("workareaResized")},So=function resizeSidePanel(er){if(yo&&-1!==_o){vo=!0;var tr=_o-er.pageX,rr=jP("#sidepanels").width();rr+tr>300?tr=300-rr:rr+tr<2&&(tr=2-rr),0!==tr&&(_o-=tr,wo(tr))}},xo=function toggleSidePanel(er){var tr=window.devicePixelRatio||1,rr=jP("#sidepanels").width();wo(((tr<1?rr:rr/tr)>2||er?0:150*(tr<1?1:tr))-rr)};jP("#sidepanel_handle").mousedown((function(er){_o=er.pageX,jP(window).mousemove(So),yo=!1,setTimeout((function(){yo=!0}),20)})).mouseup((function(er){vo||xo(),_o=-1,vo=!1})),jP(window).mouseup((function(){_o=-1,vo=!1,jP("#svg_editor").unbind("mousemove",So)})),xr();jP(window).bind("load resize",(function centerCanvas(){hr.css("line-height",hr.height()+"px")})),jP("#resolution").change((function(){var er=jP("#canvas_width,#canvas_height");if(this.selectedIndex)if("content"===this.value)er.val("fit").attr("disabled","disabled");else{var tr=this.value.split("x");jP("#canvas_width").val(tr[0]),jP("#canvas_height").val(tr[1]),er.removeAttr("disabled")}else"fit"===jP("#canvas_width").val()&&er.removeAttr("disabled").val(100)})),jP("input,select").attr("autocomplete","off");var ko=["#tool_source_cancel","#tool_docprops_cancel","#tool_prefs_cancel",".overlay"],Co=function(){QP("tool_source").addEventListener("click",Br),QP("tool_wireframe").addEventListener("click",Vi),QP("tool_undo").addEventListener("click",Qi),QP("tool_redo").addEventListener("click",Di),QP("tool_clone").addEventListener("click",Hi),QP("tool_clone_multi").addEventListener("click",Hi),QP("tool_delete").addEventListener("click",pi),QP("tool_delete_multi").addEventListener("click",pi),QP("tool_move_top").addEventListener("click",mi),QP("tool_move_bottom").addEventListener("click",_i),QP("tool_topath").addEventListener("click",yi),QP("tool_make_link").addEventListener("click",Si),QP("tool_make_link_multi").addEventListener("click",Si),QP("tool_reorient").addEventListener("click",wi),QP("tool_group_elements").addEventListener("click",ji),QP("tool_align_left").addEventListener("click",(function(){return Gi("left")})),QP("tool_align_right").addEventListener("click",(function(){return Gi("right")})),QP("tool_align_center").addEventListener("click",(function(){return Gi("center")})),QP("tool_align_top").addEventListener("click",(function(){return Gi("top")})),QP("tool_align_bottom").addEventListener("click",(function(){return Gi("bottom")})),QP("tool_align_middle").addEventListener("click",(function(){return Gi("middle")})),QP("tool_select").addEventListener("click",Fr),QP("tool_fhpath").addEventListener("click",$n),QP("tool_text").addEventListener("click",di),QP("tool_image").addEventListener("click",ai),QP("tool_zoom").addEventListener("click",si),QP("tool_path").addEventListener("click",hi),QP("layer_new").addEventListener("click",fo),QP("layer_delete").addEventListener("click",deleteLayer),QP("layer_up").addEventListener("click",(function(){return go(-1)})),QP("layer_down").addEventListener("click",(function(){return go(1)})),QP("layer_rename").addEventListener("click",mo);var er=[{sel:"#tool_line",fn:Zn,evt:"click",key:["L",!0],parent:"#tools_line",prepend:!0},{sel:"#tool_rect",fn:ti,evt:"mouseup",key:["R",!0],parent:"#tools_rect",icon:"rect"},{sel:"#tool_square",fn:ei,evt:"mouseup",parent:"#tools_rect",icon:"square"},{sel:"#tool_fhrect",fn:ri,evt:"mouseup",parent:"#tools_rect",icon:"fh_rect"},{sel:"#tool_ellipse",fn:ii,evt:"mouseup",key:["E",!0],parent:"#tools_ellipse",icon:"ellipse"},{sel:"#tool_circle",fn:ni,evt:"mouseup",parent:"#tools_ellipse",icon:"circle"},{sel:"#tool_fhellipse",fn:oi,evt:"mouseup",parent:"#tools_ellipse",icon:"fh_ellipse"},{sel:"#tool_clear",fn:Fi,evt:"mouseup",key:["N",!0]},{sel:"#tool_save",fn:function fn(){kr?Zi():function clickSave(){var er={images:DP.pref("img_save"),round_digits:6};HP.save(er)}()},evt:"mouseup",key:["S",!0]},{sel:"#tool_export",fn:Ri,evt:"mouseup"},{sel:"#tool_open",fn:Mi,evt:"mouseup",key:["O",!0]},{sel:"#tool_import",fn:Oi,evt:"mouseup"},{key:["esc",!1,!1],fn:function fn(){ko.every((function(er){return jP(er+":hidden").length}))&&HP.clearSelection()},hidekey:!0},{sel:ko.join(","),fn:oo,evt:"click",key:["esc",!1,!1],hidekey:!0},{sel:"#tool_source_save",fn:Zi,evt:"click"},{sel:"#tool_docprops_save",fn:ro,evt:"click"},{sel:"#tool_docprops",fn:Xi,evt:"click"},{sel:"#tool_prefs_save",fn:no,evt:"click"},{sel:"#tool_editor_prefs",fn:Yi,evt:"click"},{sel:"#tool_editor_homepage",fn:Ji,evt:"click"},{sel:"#tool_open",fn:function fn(){window.dispatchEvent(new CustomEvent("openImage"))},evt:"click"},{sel:"#tool_import",fn:function fn(){window.dispatchEvent(new CustomEvent("importImage"))},evt:"click"},{sel:"#tool_node_link",fn:ki,evt:"click"},{sel:"#tool_node_clone",fn:Ci,evt:"click"},{sel:"#tool_node_delete",fn:Bi,evt:"click"},{sel:"#tool_openclose_path",fn:Ni,evt:"click"},{sel:"#tool_add_subpath",fn:Ei,evt:"click"},{sel:"#tool_ungroup",fn:ji,evt:"click"},{sel:"#tool_unlink_use",fn:ji,evt:"click"},{sel:"#tool_bold",fn:Ui,evt:"mousedown"},{sel:"#tool_italic",fn:Ii,evt:"mousedown"},{sel:"#sidepanel_handle",fn:xo,key:["X"]},{sel:"#copy_save_done",fn:oo,evt:"click"},{key:"ctrl+left",fn:function fn(){Pi(0,1)}},{key:"ctrl+right",fn:function fn(){Pi(1,1)}},{key:"ctrl+shift+left",fn:function fn(){Pi(0,5)}},{key:"ctrl+shift+right",fn:function fn(){Pi(1,5)}},{key:"shift+O",fn:Ti},{key:"shift+P",fn:Li},{key:[cr+"up",!0],fn:function fn(){li(2)}},{key:[cr+"down",!0],fn:function fn(){li(.5)}},{key:[cr+"]",!0],fn:function fn(){vi("Up")}},{key:[cr+"[",!0],fn:function fn(){vi("Down")}},{key:["up",!0],fn:function fn(){xi(0,-1)}},{key:["down",!0],fn:function fn(){xi(0,1)}},{key:["left",!0],fn:function fn(){xi(-1,0)}},{key:["right",!0],fn:function fn(){xi(1,0)}},{key:"shift+up",fn:function fn(){xi(0,-10)}},{key:"shift+down",fn:function fn(){xi(0,10)}},{key:"shift+left",fn:function fn(){xi(-10,0)}},{key:"shift+right",fn:function fn(){xi(10,0)}},{key:["alt+up",!0],fn:function fn(){HP.cloneSelectedElements(0,-1)}},{key:["alt+down",!0],fn:function fn(){HP.cloneSelectedElements(0,1)}},{key:["alt+left",!0],fn:function fn(){HP.cloneSelectedElements(-1,0)}},{key:["alt+right",!0],fn:function fn(){HP.cloneSelectedElements(1,0)}},{key:["alt+shift+up",!0],fn:function fn(){HP.cloneSelectedElements(0,-10)}},{key:["alt+shift+down",!0],fn:function fn(){HP.cloneSelectedElements(0,10)}},{key:["alt+shift+left",!0],fn:function fn(){HP.cloneSelectedElements(-10,0)}},{key:["alt+shift+right",!0],fn:function fn(){HP.cloneSelectedElements(10,0)}},{key:"a",fn:function fn(){HP.selectAllInCurrentLayer()}},{key:cr+"a",fn:function fn(){HP.selectAllInCurrentLayer()}},{key:cr+"z",fn:Qi},{key:cr+"shift+z",fn:Di},{key:cr+"y",fn:Di},{key:cr+"x",fn:Ai},{key:cr+"c",fn:fi},{key:cr+"v",fn:gi}],tr={"4/Shift+4":"#tools_rect_show","5/Shift+5":"#tools_ellipse_show"};return{setAll:function setAll(){var rr={},nr={};er.forEach((function(er){var ir;if(er.sel){if(null===(ir=MP(er.sel)))return!0;if(er.evt&&(Wd()&&"click"===er.evt&&(er.evt="mousedown"),ir.addEventListener(er.evt,er.fn)),er.parent&&jP(er.parent+"_show").length){var or=jP(er.parent);or.length||(or=Xr(er.parent.substr(1))),er.prepend&&(ir.style.margin="initial"),or[er.prepend?"prepend":"append"](ir),Array.isArray(rr[er.parent])||(rr[er.parent]=[]),rr[er.parent].push(er)}}if(er.key){var ar=er.key,sr=!1;Array.isArray(er.key)&&(ar=er.key[0],er.key.length>1&&(sr=er.key[1])),ar=String(ar);var lr=er.fn;if(ar.split("/").forEach((function(er){nr[er]={fn:lr,pd:sr}})),er.sel&&!er.hidekey&&ir.title){var cr="".concat(ir.title.split("[")[0]," (").concat(ar,")");tr[ar]=er.sel,null===ir.closest("#main_menu")&&ir.setAttribute("title",cr)}}return!0})),document.addEventListener("keydown",(function(er){if("BODY"===er.target.nodeName){var tr="".concat(er.metaKey?"meta+":"").concat(er.ctrlKey?"ctrl+":"").concat(er.key.toLowerCase());nr[tr]&&(nr[tr].fn(),nr[tr].pd&&er.preventDefault())}})),Wr(rr),jP(".attr_changer, #image_url").bind("keydown","return",(function(er){jP(this).change(),er.preventDefault()})),jP(window).bind("keydown","tab",(function(er){"canvas"===vr&&(er.preventDefault(),Li())})).bind("keydown","shift+tab",(function(er){"canvas"===vr&&(er.preventDefault(),Ti())})),jP("#tool_zoom").dblclick(ui)},setTitles:function setTitles(){jP.each(tr,(function(er,tr){var rr=jP(tr).parents("#main_menu").length;jP(tr).each((function(){var tr=rr?jP(this).text().split(" [")[0]:this.title.split(" [")[0],nr="";jP.each(er.split("/"),(function(er,tr){var rr=tr.split("+"),ir="";rr.length>1&&(ir=rr[0]+"+",tr=rr[1]),nr+=(er?"/":"")+ir+(qP["key_"+tr]||tr)})),rr?this.lastChild.textContent=tr+" ["+nr+"]":this.title=tr+" ["+nr+"]"}))}))},getButtonData:function getButtonData(tr){return Object.values(er).find((function(er){return er.sel===tr}))}}}();DP.ready((function(){var er=document.getElementById("tool_".concat(ZP.initTool)),tr=document.getElementById(ZP.initTool),rr=document.getElementById("tool_select"),nr=new Event("mouseup");er?(er.click(),er.dispatchEvent(nr)):tr?(tr.click(),tr.dispatchEvent(nr)):(rr.click(),rr.dispatchEvent(nr)),ZP.wireframe&&jP("#tool_wireframe").click(),ZP.showlayers&&xo(),jP("#rulers").toggle(Boolean(ZP.showRulers)),ZP.showRulers&&(jP("#show_rulers")[0].checked=!0),ZP.baseUnit&&jP("#base_unit").val(ZP.baseUnit),ZP.gridSnapping&&(jP("#grid_snapping_on")[0].checked=!0),ZP.snappingStep&&jP("#grid_snapping_step").val(ZP.snappingStep),ZP.gridColor&&jP("#grid_color").val(ZP.gridColor)})),jP("#rect_rx").SpinButton({min:0,max:1e3,stateObj:nr,callback:function changeRectRadius(er){HP.setRectRadius(er.value)}}),jP("#stroke_width").SpinButton({min:0,max:99,smallStep:.1,stateObj:nr,callback:function changeStrokeWidth(er){var tr=er.value;0===tr&&Er&&["line","polyline"].includes(Er.nodeName)&&(tr=er.value=1),HP.setStrokeWidth(tr)}}),jP("#angle").SpinButton({min:-180,max:180,step:5,stateObj:nr,callback:function changeRotationAngle(er){HP.setRotationAngle(er.value),jP("#tool_reorient").toggleClass("disabled",0===Number.parseInt(er.value))}}),jP("#font_size").SpinButton({min:.001,stepfunc:function stepFontSize(er,tr){var rr=Number(er.value),nr=rr+tr,ir=nr>=rr;return 0===tr?rr:rr>=24?ir?Math.round(1.1*rr):Math.round(rr/1.1):rr<=1?ir?2*rr:rr/2:nr},stateObj:nr,callback:function changeFontSize(er){HP.setFontSize(er.value)}}),jP("#group_opacity").SpinButton({min:0,max:100,step:5,stateObj:nr,callback:Un}),jP("#blur").SpinButton({min:0,max:10,step:.1,stateObj:nr,callback:Qn}),jP("#zoom").SpinButton({min:.001,max:1e4,step:50,stepfunc:function stepZoom(er,tr){var rr=Number(er.value);if(0===rr)return 100;var nr=rr+tr;return 0===tr?rr:rr>=100?nr:nr>=rr?2*rr:rr/2},stateObj:nr,callback:Gr}).val(100*HP.getZoom()),jP("#workarea").contextMenu({menu:"cmenu_canvas",inSpeed:0},(function(er,tr,rr){switch(er){case"delete":pi();break;case"cut":Ai();break;case"copy":fi();break;case"paste":HP.pasteElements();break;case"paste_in_place":HP.pasteElements("in_place");break;case"group":case"group_elements":HP.groupSelectedElements();break;case"ungroup":HP.ungroupSelectedElement();break;case"move_front":mi();break;case"move_up":vi("Up");break;case"move_down":vi("Down");break;case"move_back":_i();break;default:(function hasCustomHandler(er){return Boolean(Bf[er])})(er)&&function getCustomHandler(er){return Bf[er].action}(er).call()}}));var Bo=function lmenuFunc(er,tr,rr){switch(er){case"dupe":!function cloneLayer(){return _cloneLayer.apply(this,arguments)}();break;case"delete":deleteLayer();break;case"merge_down":!function mergeLayer(){jP("#layerlist tr.layersel").index()!==HP.getCurrentDrawing().getNumLayers()-1&&(HP.mergeLayer(),Mr(),xr())}();break;case"merge_all":HP.mergeAllLayers(),Mr(),xr()}};function enableOrDisableClipboard(){var er;try{er=localStorage.getItem("svgedit_clipboard")}catch(er){}pr[(er?"en":"dis")+"ableContextMenuItems"]("#paste,#paste_in_place")}if(jP("#layerlist").contextMenu({menu:"cmenu_layers",inSpeed:0},Bo),jP("#layer_moreopts").contextMenu({menu:"cmenu_layers",inSpeed:0,allowLeft:!0},Bo),jP(".contextMenu li").mousedown((function(er){er.preventDefault()})),jP("#cmenu_canvas li").disableContextMenu(),pr.enableContextMenuItems("#delete,#cut,#copy"),enableOrDisableClipboard(),window.addEventListener("storage",(function(er){"svgedit_clipboard"===er.key&&enableOrDisableClipboard()})),window.addEventListener("beforeunload",(function(er){return 0===dr.getUndoStackSize()&&(DP.showSaveWarning=!1),!(!ZP.no_save_warning&&DP.showSaveWarning)||(er.returnValue=qP.notification.unsavedChanges,qP.notification.unsavedChanges)})),DP.canvas.getUIStrings=function(){return qP},DP.openPrep=function(){return jP("#main_menu").hide(),0===dr.getUndoStackSize()||jP.confirm(qP.notification.QwantToOpen)},window.FileReader){var Eo=function importImage(er){jP.process_cancel(qP.notification.loadingImage),er.stopPropagation(),er.preventDefault(),jP("#main_menu").hide();var tr,rr="drop"===er.type?er.dataTransfer.files[0]:this.files[0];rr?rr.type.includes("image")&&(rr.type.includes("svg")?((tr=new FileReader).onloadend=function(er){var tr=HP.importSvgString(er.target.result,!0);HP.ungroupSelectedElement(),HP.ungroupSelectedElement(),HP.groupSelectedElements(),HP.alignSelectedElements("m","page"),HP.alignSelectedElements("c","page"),HP.selectOnly([tr]),jP("#dialog_box").hide()},tr.readAsText(rr)):((tr=new FileReader).onloadend=function(er){var tr=er.target.result,rr=100,nr=100,ir=new Image;ir.style.opacity=0,ir.addEventListener("load",(function(){rr=ir.offsetWidth||ir.naturalWidth||ir.width,nr=ir.offsetHeight||ir.naturalHeight||ir.height,function insertNewImage(er,rr){var nr=HP.addSVGElementFromJson({element:"image",attr:{x:0,y:0,width:er,height:rr,id:HP.getNextId(),style:"pointer-events:inherit"}});HP.setHref(nr,tr),HP.selectOnly([nr]),HP.alignSelectedElements("m","page"),HP.alignSelectedElements("c","page"),Mr(),jP("#dialog_box").hide()}(rr,nr)})),ir.src=tr},tr.readAsDataURL(rr))):jP("#dialog_box").hide()};hr[0].addEventListener("dragenter",(function onDragEnter(er){er.stopPropagation(),er.preventDefault()})),hr[0].addEventListener("dragover",(function onDragOver(er){er.stopPropagation(),er.preventDefault()})),hr[0].addEventListener("dragleave",(function onDragLeave(er){er.stopPropagation(),er.preventDefault()})),hr[0].addEventListener("drop",Eo);var No=jP('<input type="file">').change(function(){var er=_asyncToGenerator(regeneratorRuntime.mark((function _callee16(er){var tr;return regeneratorRuntime.wrap((function _callee16$(er){for(;;)switch(er.prev=er.next){case 0:return er.next=2,DP.openPrep();case 2:if(er.sent){er.next=5;break}return er.abrupt("return");case 5:HP.clear(),1===this.files.length&&(jP.process_cancel(qP.notification.loadingImage),(tr=new FileReader).onloadend=function(){var er=_asyncToGenerator(regeneratorRuntime.mark((function _callee15(er){var tr;return regeneratorRuntime.wrap((function _callee15$(rr){for(;;)switch(rr.prev=rr.next){case 0:return tr=er.target,rr.next=3,eF(tr.result);case 3:Ir();case 4:case"end":return rr.stop()}}),_callee15)})));return function(tr){return er.apply(this,arguments)}}(),tr.readAsText(this.files[0]));case 7:case"end":return er.stop()}}),_callee16,this)})));return function(tr){return er.apply(this,arguments)}}());jP("#tool_open").show(),jP(window).on("openImage",(function(){return No.click()}));var Lo=jP('<input type="file">').change(Eo);jP("#tool_import").show(),jP(window).on("importImage",(function(){return Lo.click()}))}Ir(!0);var To=DP.setLang=function(er,tr){if(DP.langChanged=!0,DP.pref("lang",er),jP("#lang_select").val(er),tr){document.documentElement.lang=tr.lang,jP.extend(qP,tr);var rr=jP("#layerlist tr.layersel td.layername").text()===qP.common.layer+" 1";HP.setUiStrings(tr),Co.setTitles(),rr&&(HP.renameCurrentLayer(qP.common.layer+" 1"),xr()),HP.runExtensions("langChanged",er),Kr();jP.each({"#stroke_color":"#tool_stroke .icon_label, #tool_stroke .color_block","#fill_color":"#tool_fill label, #tool_fill .color_block","#linejoin_miter":"#cur_linejoin","#linecap_butt":"#cur_linecap"},(function(er,tr){jP(tr).attr("title",jP(er)[0].title)})),jP("#multiselected_panel div[id^=tool_align]").each((function(){jP("#tool_pos"+this.id.substr(10))[0].title=this.title}))}};rr()},DP.ready=function(er){return new Promise((function(tr,rr){XP?tr(er()):GP.push([er,tr,rr])}))},DP.runCallbacks=_asyncToGenerator(regeneratorRuntime.mark((function _callee19(){return regeneratorRuntime.wrap((function _callee19$(er){for(;;)switch(er.prev=er.next){case 0:return er.prev=0,er.next=3,Promise.all(GP.map((function(er){return(0,_slicedToArray(er,1)[0])()})));case 3:er.next=9;break;case 5:throw er.prev=5,er.t0=er.catch(0),GP.forEach((function(er){(0,_slicedToArray(er,3)[2])()})),er.t0;case 9:GP.forEach((function(er){(0,_slicedToArray(er,2)[1])()})),XP=!0;case 11:case"end":return er.stop()}}),_callee19,null,[[0,5]])}))),DP.loadFromString=function(er){var tr=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},rr=tr.noAlert;return DP.ready(_asyncToGenerator(regeneratorRuntime.mark((function _callee20(){return regeneratorRuntime.wrap((function _callee20$(tr){for(;;)switch(tr.prev=tr.next){case 0:return tr.prev=0,tr.next=3,eF(er,{noAlert:rr});case 3:tr.next=9;break;case 5:if(tr.prev=5,tr.t0=tr.catch(0),!rr){tr.next=9;break}throw tr.t0;case 9:case"end":return tr.stop()}}),_callee20,null,[[0,5]])}))))},DP.loadFromURL=function(er){var tr=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},rr=tr.cache,nr=tr.noAlert;return DP.ready((function(){return new Promise((function(tr,ir){jP.ajax({url:er,dataType:"text",cache:Boolean(rr),beforeSend:function beforeSend(){jP.process_cancel(qP.notification.loadingImage)},success:function success(er){eF(er,{noAlert:nr})},error:function error(er,rr,or){404!==er.status&&er.responseText?eF(er.responseText,{noAlert:nr}):nr?ir(new Error("URLLoadFail")):(jP.alert(qP.notification.URLLoadFail+": \n"+or),tr())},complete:function complete(){jP("#dialog_box").hide()}})}))}))},DP.loadFromDataURI=function(er){var tr=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},rr=tr.noAlert;return DP.ready((function(){var tr=!1,nr=er.match(/^data:image\/svg\+xml;base64,/);nr?tr=!0:nr=er.match(/^data:image\/svg\+xml(?:;|;utf8)?,/),nr&&(nr=nr[0]);var ir=er.slice(nr.length);return eF(tr?decode64(ir):decodeURIComponent(ir),{noAlert:rr})}))},DP.addExtension=function(er,tr,rr){if(!HP)throw new Error("Extension added too early");return HP.addExtension.call(this,er,tr,rr)},DP.ready((function(){Ef()}));var tF=!1,rF=[];window.addEventListener("message",(function messageListener(er){var tr={data:er.data,origin:er.origin};tF?HP.call("message",tr):rF.push(tr)})),_asyncToGenerator(regeneratorRuntime.mark((function _callee21(){return regeneratorRuntime.wrap((function _callee21$(er){for(;;)switch(er.prev=er.next){case 0:return er.prev=0,er.next=3,Promise.resolve();case 3:DP.init(),er.next=9;break;case 6:er.prev=6,er.t0=er.catch(0),console.error(er.t0);case 9:case"end":return er.stop()}}),_callee21,null,[[0,6]])})))(),DP.setConfig({}),DP.setConfig({},{allowInitialUserOverride:!0}),DP.setConfig({extensions:[],noDefaultExtensions:!1,userExtensions:[]}),DP.setConfig({}),DP.setConfig({});try{DP.setConfig({canvasName:"xdomain",allowedOrigins:["*"]}),console.info("xdomain config activated")}catch(er){}var nF=String.fromCharCode,iF=String.fromCodePoint,oF=!!iF&&1!=iF.length;_export({target:"String",stat:!0,forced:oF},{fromCodePoint:function fromCodePoint(er){for(var tr,rr=[],nr=arguments.length,ir=0;nr>ir;){if(tr=+arguments[ir++],toAbsoluteIndex(tr,1114111)!==tr)throw RangeError(tr+" is not a valid code point");rr.push(tr<65536?nF(tr):nF(55296+((tr-=65536)>>10),tr%1024+56320))}return rr.join("")}});var aF=createCommonjsModule((function(er,tr){
|
||
/*!
|
||
* html2canvas 1.0.0-rc.7 <https://html2canvas.hertzen.com>
|
||
* Copyright (c) 2020 Niklas von Hertzen <https://hertzen.com>
|
||
* Released under MIT License
|
||
*/
|
||
er.exports=function(){
|
||
/*! *****************************************************************************
|
||
Copyright (c) Microsoft Corporation. All rights reserved.
|
||
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|
||
this file except in compliance with the License. You may obtain a copy of the
|
||
License at http://www.apache.org/licenses/LICENSE-2.0
|
||
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
|
||
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
|
||
MERCHANTABLITY OR NON-INFRINGEMENT.
|
||
See the Apache Version 2.0 License for specific language governing permissions
|
||
and limitations under the License.
|
||
***************************************************************************** */
|
||
var er=function extendStatics(tr,rr){return(er=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(er,tr){er.__proto__=tr}||function(er,tr){for(var rr in tr)tr.hasOwnProperty(rr)&&(er[rr]=tr[rr])})(tr,rr)};function __extends(tr,rr){function __(){this.constructor=tr}er(tr,rr),tr.prototype=null===rr?Object.create(rr):(__.prototype=rr.prototype,new __)}var tr=function __assign(){return(tr=Object.assign||function __assign(er){for(var tr,rr=1,nr=arguments.length;rr<nr;rr++)for(var ir in tr=arguments[rr])Object.prototype.hasOwnProperty.call(tr,ir)&&(er[ir]=tr[ir]);return er}).apply(this,arguments)};function __awaiter(er,tr,rr,nr){return new(rr||(rr=Promise))((function(ir,or){function fulfilled(er){try{step(nr.next(er))}catch(er){or(er)}}function rejected(er){try{step(nr.throw(er))}catch(er){or(er)}}function step(er){er.done?ir(er.value):new rr((function(tr){tr(er.value)})).then(fulfilled,rejected)}step((nr=nr.apply(er,tr||[])).next())}))}function __generator(er,tr){var rr,nr,ir,or,ar={label:0,sent:function sent(){if(1&ir[0])throw ir[1];return ir[1]},trys:[],ops:[]};return or={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(or[Symbol.iterator]=function(){return this}),or;function verb(er){return function(tr){return step([er,tr])}}function step(or){if(rr)throw new TypeError("Generator is already executing.");for(;ar;)try{if(rr=1,nr&&(ir=2&or[0]?nr.return:or[0]?nr.throw||((ir=nr.return)&&ir.call(nr),0):nr.next)&&!(ir=ir.call(nr,or[1])).done)return ir;switch(nr=0,ir&&(or=[2&or[0],ir.value]),or[0]){case 0:case 1:ir=or;break;case 4:return ar.label++,{value:or[1],done:!1};case 5:ar.label++,nr=or[1],or=[0];continue;case 7:or=ar.ops.pop(),ar.trys.pop();continue;default:if(!((ir=(ir=ar.trys).length>0&&ir[ir.length-1])||6!==or[0]&&2!==or[0])){ar=0;continue}if(3===or[0]&&(!ir||or[1]>ir[0]&&or[1]<ir[3])){ar.label=or[1];break}if(6===or[0]&&ar.label<ir[1]){ar.label=ir[1],ir=or;break}if(ir&&ar.label<ir[2]){ar.label=ir[2],ar.ops.push(or);break}ir[2]&&ar.ops.pop(),ar.trys.pop();continue}or=tr.call(er,ar)}catch(er){or=[6,er],nr=0}finally{rr=ir=0}if(5&or[0])throw or[1];return{value:or[0]?or[1]:void 0,done:!0}}}for(var rr=function(){function Bounds(er,tr,rr,nr){this.left=er,this.top=tr,this.width=rr,this.height=nr}return Bounds.prototype.add=function(er,tr,rr,nr){return new Bounds(this.left+er,this.top+tr,this.width+rr,this.height+nr)},Bounds.fromClientRect=function(er){return new Bounds(er.left,er.top,er.width,er.height)},Bounds}(),nr=function parseBounds(er){return rr.fromClientRect(er.getBoundingClientRect())},ir=function parseDocumentSize(er){var tr=er.body,nr=er.documentElement;if(!tr||!nr)throw new Error("Unable to get document size");var ir=Math.max(Math.max(tr.scrollWidth,nr.scrollWidth),Math.max(tr.offsetWidth,nr.offsetWidth),Math.max(tr.clientWidth,nr.clientWidth)),or=Math.max(Math.max(tr.scrollHeight,nr.scrollHeight),Math.max(tr.offsetHeight,nr.offsetHeight),Math.max(tr.clientHeight,nr.clientHeight));return new rr(0,0,ir,or)},or=function toCodePoints(er){for(var tr=[],rr=0,nr=er.length;rr<nr;){var ir=er.charCodeAt(rr++);if(ir>=55296&&ir<=56319&&rr<nr){var or=er.charCodeAt(rr++);56320==(64512&or)?tr.push(((1023&ir)<<10)+(1023&or)+65536):(tr.push(ir),rr--)}else tr.push(ir)}return tr},ar=function fromCodePoint(){for(var er=[],tr=0;tr<arguments.length;tr++)er[tr]=arguments[tr];if(String.fromCodePoint)return String.fromCodePoint.apply(String,er);var rr=er.length;if(!rr)return"";for(var nr=[],ir=-1,or="";++ir<rr;){var ar=er[ir];ar<=65535?nr.push(ar):(ar-=65536,nr.push(55296+(ar>>10),ar%1024+56320)),(ir+1===rr||nr.length>16384)&&(or+=String.fromCharCode.apply(String,nr),nr.length=0)}return or},sr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",lr="undefined"==typeof Uint8Array?[]:new Uint8Array(256),cr=0;cr<sr.length;cr++)lr[sr.charCodeAt(cr)]=cr;var ur,dr=function decode(er){var tr,rr,nr,ir,or,ar=.75*er.length,sr=er.length,cr=0;"="===er[er.length-1]&&(ar--,"="===er[er.length-2]&&ar--);var ur="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(ar):new Array(ar),dr=Array.isArray(ur)?ur:new Uint8Array(ur);for(tr=0;tr<sr;tr+=4)rr=lr[er.charCodeAt(tr)],nr=lr[er.charCodeAt(tr+1)],ir=lr[er.charCodeAt(tr+2)],or=lr[er.charCodeAt(tr+3)],dr[cr++]=rr<<2|nr>>4,dr[cr++]=(15&nr)<<4|ir>>2,dr[cr++]=(3&ir)<<6|63∨return ur},hr=function polyUint16Array(er){for(var tr=er.length,rr=[],nr=0;nr<tr;nr+=2)rr.push(er[nr+1]<<8|er[nr]);return rr},pr=function polyUint32Array(er){for(var tr=er.length,rr=[],nr=0;nr<tr;nr+=4)rr.push(er[nr+3]<<24|er[nr+2]<<16|er[nr+1]<<8|er[nr]);return rr},Ar=5,fr=11,gr=2,mr=65536>>Ar,_r=(1<<Ar)-1,vr=mr+(1024>>Ar)+32,yr=65536>>fr,br=(1<<fr-Ar)-1,wr=function slice16(er,tr,rr){return er.slice?er.slice(tr,rr):new Uint16Array(Array.prototype.slice.call(er,tr,rr))},Sr=function slice32(er,tr,rr){return er.slice?er.slice(tr,rr):new Uint32Array(Array.prototype.slice.call(er,tr,rr))},xr=function createTrieFromBase64(er){var tr=dr(er),rr=Array.isArray(tr)?pr(tr):new Uint32Array(tr),nr=Array.isArray(tr)?hr(tr):new Uint16Array(tr),ir=24,or=wr(nr,ir/2,rr[4]/2),ar=2===rr[5]?wr(nr,(ir+rr[4])/2):Sr(rr,Math.ceil((ir+rr[4])/4));return new kr(rr[0],rr[1],rr[2],rr[3],or,ar)},kr=function(){function Trie(er,tr,rr,nr,ir,or){this.initialValue=er,this.errorValue=tr,this.highStart=rr,this.highValueIndex=nr,this.index=ir,this.data=or}return Trie.prototype.get=function(er){var tr;if(er>=0){if(er<55296||er>56319&&er<=65535)return tr=((tr=this.index[er>>Ar])<<gr)+(er&_r),this.data[tr];if(er<=65535)return tr=((tr=this.index[mr+(er-55296>>Ar)])<<gr)+(er&_r),this.data[tr];if(er<this.highStart)return tr=vr-yr+(er>>fr),tr=this.index[tr],tr+=er>>Ar&br,tr=((tr=this.index[tr])<<gr)+(er&_r),this.data[tr];if(er<=1114111)return this.data[this.highValueIndex]}return this.errorValue},Trie}(),Cr=50,Br=1,Er=2,Nr=3,Lr=4,Tr=5,Pr=7,Fr=8,Ur=9,Ir=10,Rr=11,Mr=12,Or=13,Qr=14,Dr=15,jr=16,Hr=17,Gr=18,Vr=19,zr=20,Kr=21,qr=22,Wr=23,Xr=24,Yr=25,Jr=26,$r=27,Zr=28,Tn=29,Un=30,Qn=31,Dn=32,Hn=33,Gn=34,Vn=35,zn=36,Kn=37,Wn=38,Xn=39,Yn=40,Jn=41,$n=42,Zn=43,ei="!",ti="×",ri="÷",ni=xr("KwAAAAAAAAAACA4AIDoAAPAfAAACAAAAAAAIABAAGABAAEgAUABYAF4AZgBeAGYAYABoAHAAeABeAGYAfACEAIAAiACQAJgAoACoAK0AtQC9AMUAXgBmAF4AZgBeAGYAzQDVAF4AZgDRANkA3gDmAOwA9AD8AAQBDAEUARoBIgGAAIgAJwEvATcBPwFFAU0BTAFUAVwBZAFsAXMBewGDATAAiwGTAZsBogGkAawBtAG8AcIBygHSAdoB4AHoAfAB+AH+AQYCDgIWAv4BHgImAi4CNgI+AkUCTQJTAlsCYwJrAnECeQKBAk0CiQKRApkCoQKoArACuALAAsQCzAIwANQC3ALkAjAA7AL0AvwCAQMJAxADGAMwACADJgMuAzYDPgOAAEYDSgNSA1IDUgNaA1oDYANiA2IDgACAAGoDgAByA3YDfgOAAIQDgACKA5IDmgOAAIAAogOqA4AAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAK8DtwOAAIAAvwPHA88D1wPfAyAD5wPsA/QD/AOAAIAABAQMBBIEgAAWBB4EJgQuBDMEIAM7BEEEXgBJBCADUQRZBGEEaQQwADAAcQQ+AXkEgQSJBJEEgACYBIAAoASoBK8EtwQwAL8ExQSAAIAAgACAAIAAgACgAM0EXgBeAF4AXgBeAF4AXgBeANUEXgDZBOEEXgDpBPEE+QQBBQkFEQUZBSEFKQUxBTUFPQVFBUwFVAVcBV4AYwVeAGsFcwV7BYMFiwWSBV4AmgWgBacFXgBeAF4AXgBeAKsFXgCyBbEFugW7BcIFwgXIBcIFwgXQBdQF3AXkBesF8wX7BQMGCwYTBhsGIwYrBjMGOwZeAD8GRwZNBl4AVAZbBl4AXgBeAF4AXgBeAF4AXgBeAF4AXgBeAGMGXgBqBnEGXgBeAF4AXgBeAF4AXgBeAF4AXgB5BoAG4wSGBo4GkwaAAIADHgR5AF4AXgBeAJsGgABGA4AAowarBrMGswagALsGwwbLBjAA0wbaBtoG3QbaBtoG2gbaBtoG2gblBusG8wb7BgMHCwcTBxsHCwcjBysHMAc1BzUHOgdCB9oGSgdSB1oHYAfaBloHaAfaBlIH2gbaBtoG2gbaBtoG2gbaBjUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHbQdeAF4ANQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQd1B30HNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1B4MH2gaKB68EgACAAIAAgACAAIAAgACAAI8HlwdeAJ8HpweAAIAArwe3B14AXgC/B8UHygcwANAH2AfgB4AA6AfwBz4B+AcACFwBCAgPCBcIogEYAR8IJwiAAC8INwg/CCADRwhPCFcIXwhnCEoDGgSAAIAAgABvCHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIhAiLCI4IMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAANQc1BzUHNQc1BzUHNQc1BzUHNQc1B54INQc1B6II2gaqCLIIugiAAIAAvgjGCIAAgACAAIAAgACAAIAAgACAAIAAywiHAYAA0wiAANkI3QjlCO0I9Aj8CIAAgACAAAIJCgkSCRoJIgknCTYHLwk3CZYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiAAIAAAAFAAXgBeAGAAcABeAHwAQACQAKAArQC9AJ4AXgBeAE0A3gBRAN4A7AD8AMwBGgEAAKcBNwEFAUwBXAF4QkhCmEKnArcCgAHHAsABz4LAAcABwAHAAd+C6ABoAG+C/4LAAcABwAHAAc+DF4MAAcAB54M3gweDV4Nng3eDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEeDqABVg6WDqABoQ6gAaABoAHXDvcONw/3DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DncPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB7cPPwlGCU4JMACAAIAAgABWCV4JYQmAAGkJcAl4CXwJgAkwADAAMAAwAIgJgACLCZMJgACZCZ8JowmrCYAAswkwAF4AXgB8AIAAuwkABMMJyQmAAM4JgADVCTAAMAAwADAAgACAAIAAgACAAIAAgACAAIAAqwYWBNkIMAAwADAAMADdCeAJ6AnuCR4E9gkwAP4JBQoNCjAAMACAABUK0wiAAB0KJAosCjQKgAAwADwKQwqAAEsKvQmdCVMKWwowADAAgACAALcEMACAAGMKgABrCjAAMAAwADAAMAAwADAAMAAwADAAMAAeBDAAMAAwADAAMAAwADAAMAAwADAAMAAwAIkEPQFzCnoKiQSCCooKkAqJBJgKoAqkCokEGAGsCrQKvArBCjAAMADJCtEKFQHZCuEK/gHpCvEKMAAwADAAMACAAIwE+QowAIAAPwEBCzAAMAAwADAAMACAAAkLEQswAIAAPwEZCyELgAAOCCkLMAAxCzkLMAAwADAAMAAwADAAXgBeAEELMAAwADAAMAAwADAAMAAwAEkLTQtVC4AAXAtkC4AAiQkwADAAMAAwADAAMAAwADAAbAtxC3kLgAuFC4sLMAAwAJMLlwufCzAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAApwswADAAMACAAIAAgACvC4AAgACAAIAAgACAALcLMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAvwuAAMcLgACAAIAAgACAAIAAyguAAIAAgACAAIAA0QswADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAANkLgACAAIAA4AswADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACJCR4E6AswADAAhwHwC4AA+AsADAgMEAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMACAAIAAGAwdDCUMMAAwAC0MNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQw1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHPQwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADUHNQc1BzUHNQc1BzUHNQc2BzAAMAA5DDUHNQc1BzUHNQc1BzUHNQc1BzUHNQdFDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAgACAAIAATQxSDFoMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAF4AXgBeAF4AXgBeAF4AYgxeAGoMXgBxDHkMfwxeAIUMXgBeAI0MMAAwADAAMAAwAF4AXgCVDJ0MMAAwADAAMABeAF4ApQxeAKsMswy7DF4Awgy9DMoMXgBeAF4AXgBeAF4AXgBeAF4AXgDRDNkMeQBqCeAM3Ax8AOYM7Az0DPgMXgBeAF4AXgBeAF4AXgBeAF4AXgBeAF4AXgBeAF4AXgCgAAANoAAHDQ4NFg0wADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAeDSYNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIAAgACAAIAAgACAAC4NMABeAF4ANg0wADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAD4NRg1ODVYNXg1mDTAAbQ0wADAAMAAwADAAMAAwADAA2gbaBtoG2gbaBtoG2gbaBnUNeg3CBYANwgWFDdoGjA3aBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gaUDZwNpA2oDdoG2gawDbcNvw3HDdoG2gbPDdYN3A3fDeYN2gbsDfMN2gbaBvoN/g3aBgYODg7aBl4AXgBeABYOXgBeACUG2gYeDl4AJA5eACwO2w3aBtoGMQ45DtoG2gbaBtoGQQ7aBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gZJDjUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1B1EO2gY1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQdZDjUHNQc1BzUHNQc1B2EONQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHaA41BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1B3AO2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gY1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1B2EO2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gZJDtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBkkOeA6gAKAAoAAwADAAMAAwAKAAoACgAKAAoACgAKAAgA4wADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAD//wQABAAEAAQABAAEAAQABAAEAA0AAwABAAEAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAKABMAFwAeABsAGgAeABcAFgASAB4AGwAYAA8AGAAcAEsASwBLAEsASwBLAEsASwBLAEsAGAAYAB4AHgAeABMAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAFgAbABIAHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYADQARAB4ABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkAFgAaABsAGwAbAB4AHQAdAB4ATwAXAB4ADQAeAB4AGgAbAE8ATwAOAFAAHQAdAB0ATwBPABcATwBPAE8AFgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwArAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAAQABAANAA0ASwBLAEsASwBLAEsASwBLAEsASwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUAArACsABABQAAQABAAEAAQABAAEAAQAKwArAAQABAArACsABAAEAAQAUAArACsAKwArACsAKwArACsABAArACsAKwArAFAAUAArAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAGgAaAFAAUABQAFAAUABMAB4AGwBQAB4AKwArACsABAAEAAQAKwBQAFAAUABQAFAAUAArACsAKwArAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUAArAFAAUAArACsABAArAAQABAAEAAQABAArACsAKwArAAQABAArACsABAAEAAQAKwArACsABAArACsAKwArACsAKwArAFAAUABQAFAAKwBQACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwAEAAQAUABQAFAABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUAArACsABABQAAQABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQAKwArAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwAeABsAKwArACsAKwArACsAKwBQAAQABAAEAAQABAAEACsABAAEAAQAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwArAAQABAArACsABAAEAAQAKwArACsAKwArACsAKwArAAQABAArACsAKwArAFAAUAArAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwAeAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwAEAFAAKwBQAFAAUABQAFAAUAArACsAKwBQAFAAUAArAFAAUABQAFAAKwArACsAUABQACsAUAArAFAAUAArACsAKwBQAFAAKwArACsAUABQAFAAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQAKwArACsABAAEAAQAKwAEAAQABAAEACsAKwBQACsAKwArACsAKwArAAQAKwArACsAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAB4AHgAeAB4AHgAeABsAHgArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABAArACsAKwArACsAKwArAAQABAArAFAAUABQACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAB4AUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABAArACsAKwArACsAKwArAAQABAArACsAKwArACsAKwArAFAAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwArAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAKwBcAFwAKwBcACsAKwBcACsAKwArACsAKwArAFwAXABcAFwAKwBcAFwAXABcAFwAXABcACsAXABcAFwAKwBcACsAXAArACsAXABcACsAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgArACoAKgBcACsAKwBcAFwAXABcAFwAKwBcACsAKgAqACoAKgAqACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAFwAXABcAFwAUAAOAA4ADgAOAB4ADgAOAAkADgAOAA0ACQATABMAEwATABMACQAeABMAHgAeAB4ABAAEAB4AHgAeAB4AHgAeAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUAANAAQAHgAEAB4ABAAWABEAFgARAAQABABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAAQABAAEAAQABAANAAQABABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsADQANAB4AHgAeAB4AHgAeAAQAHgAeAB4AHgAeAB4AKwAeAB4ADgAOAA0ADgAeAB4AHgAeAB4ACQAJACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgAeAB4AHgBcAFwAXABcAFwAXAAqACoAKgAqAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAKgAqACoAKgAqACoAKgBcAFwAXAAqACoAKgAqAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAXAAqAEsASwBLAEsASwBLAEsASwBLAEsAKgAqACoAKgAqACoAUABQAFAAUABQAFAAKwBQACsAKwArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQACsAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwAEAAQABAAeAA0AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAEQArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAADQANAA0AUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAA0ADQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQACsABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoADQANABUAXAANAB4ADQAbAFwAKgArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAB4AHgATABMADQANAA4AHgATABMAHgAEAAQABAAJACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAUABQAFAAUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwAeACsAKwArABMAEwBLAEsASwBLAEsASwBLAEsASwBLAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwBcAFwAXABcAFwAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcACsAKwArACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwAeAB4AXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgArACsABABLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKgAqACoAKgAqACoAKgBcACoAKgAqACoAKgAqACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAUABQAFAAUABQAFAAUAArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4ADQANAA0ADQAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAHgAeAB4AHgBQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwANAA0ADQANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwBQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsABAAEAAQAHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAABABQAFAAUABQAAQABAAEAFAAUAAEAAQABAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAKwBQACsAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAKwArAB4AHgAeAB4AHgAeACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAUABQAFAAKwAeAB4AHgAeAB4AHgAeAA4AHgArAA0ADQANAA0ADQANAA0ACQANAA0ADQAIAAQACwAEAAQADQAJAA0ADQAMAB0AHQAeABcAFwAWABcAFwAXABYAFwAdAB0AHgAeABQAFAAUAA0AAQABAAQABAAEAAQABAAJABoAGgAaABoAGgAaABoAGgAeABcAFwAdABUAFQAeAB4AHgAeAB4AHgAYABYAEQAVABUAFQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgANAB4ADQANAA0ADQAeAA0ADQANAAcAHgAeAB4AHgArAAQABAAEAAQABAAEAAQABAAEAAQAUABQACsAKwBPAFAAUABQAFAAUAAeAB4AHgAWABEATwBQAE8ATwBPAE8AUABQAFAAUABQAB4AHgAeABYAEQArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAGwAbABsAGwAbABsAGwAaABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAaABsAGwAbABsAGgAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgBQABoAHgAdAB4AUAAeABoAHgAeAB4AHgAeAB4AHgAeAB4ATwAeAFAAGwAeAB4AUABQAFAAUABQAB4AHgAeAB0AHQAeAFAAHgBQAB4AUAAeAFAATwBQAFAAHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AUABQAFAAUABPAE8AUABQAFAAUABQAE8AUABQAE8AUABPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAE8ATwBPAE8ATwBPAE8ATwBPAE8AUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAATwAeAB4AKwArACsAKwAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB0AHQAeAB4AHgAdAB0AHgAeAB0AHgAeAB4AHQAeAB0AGwAbAB4AHQAeAB4AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB0AHgAdAB4AHQAdAB0AHQAdAB0AHgAdAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAdAB0AHQAdAB4AHgAdAB0AHgAeAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABQAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAlACUAHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBQAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAeAB4AHgAeAB0AHQAeAB4AHgAeAB0AHQAdAB4AHgAdAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB0AHQAeAB4AHQAeAB4AHgAeAB0AHQAeAB4AHgAeACUAJQAdAB0AJQAeACUAJQAlACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAHgAeAB4AHgAdAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHQAdAB0AHgAdACUAHQAdAB4AHQAdAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHQAdAB0AHQAlAB4AJQAlACUAHQAlACUAHQAdAB0AJQAlAB0AHQAlAB0AHQAlACUAJQAeAB0AHgAeAB4AHgAdAB0AJQAdAB0AHQAdAB0AHQAlACUAJQAlACUAHQAlACUAIAAlAB0AHQAlACUAJQAlACUAJQAlACUAHgAeAB4AJQAlACAAIAAgACAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeABcAFwAXABcAFwAXAB4AEwATACUAHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwArACUAJQBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAKwArACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAE8ATwBPAE8ATwBPAE8ATwAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeACsAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUAArACsAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQBQAFAAUABQACsAKwArACsAUABQAFAAUABQAFAAUABQAA0AUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQACsAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgBQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAABAAEAAQAKwAEAAQAKwArACsAKwArAAQABAAEAAQAUABQAFAAUAArAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsABAAEAAQAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsADQANAA0ADQANAA0ADQANAB4AKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AUABQAFAAUABQAFAAUABQAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAUABQAFAAUABQAA0ADQANAA0ADQANABQAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwANAA0ADQANAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAeAAQABAAEAB4AKwArAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLACsADQArAB4AKwArAAQABAAEAAQAUABQAB4AUAArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwAEAAQABAAEAAQABAAEAAQABAAOAA0ADQATABMAHgAeAB4ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0AUABQAFAAUAAEAAQAKwArAAQADQANAB4AUAArACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXABcAA0ADQANACoASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUAArACsAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANACsADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEcARwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQACsAKwAeAAQABAANAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAEAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUAArACsAUAArACsAUABQACsAKwBQAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AKwArAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAeAB4ADQANAA0ADQAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAArAAQABAArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAEAAQABAAEAAQABAAEACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAFgAWAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAKwBQACsAKwArACsAKwArAFAAKwArACsAKwBQACsAUAArAFAAKwBQAFAAUAArAFAAUAArAFAAKwArAFAAKwBQACsAUAArAFAAKwBQACsAUABQACsAUAArACsAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAUABQAFAAUAArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUAArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAlACUAJQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeACUAJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeACUAJQAlACUAJQAeACUAJQAlACUAJQAgACAAIAAlACUAIAAlACUAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIQAhACEAIQAhACUAJQAgACAAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIAAgACAAIAAlACUAJQAlACAAJQAgACAAIAAgACAAIAAgACAAIAAlACUAJQAgACUAJQAlACUAIAAgACAAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeACUAHgAlAB4AJQAlACUAJQAlACAAJQAlACUAJQAeACUAHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIAAgACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIAAlACUAJQAlACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAIAAgACAAJQAlACUAIAAgACAAIAAgAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFwAXABcAFQAVABUAHgAeAB4AHgAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIAAgACAAJQAlACUAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAlACAAIAAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsA"),ii=[Un,zn],oi=[Br,Er,Nr,Tr],ai=[Ir,Fr],si=[$r,Jr],li=oi.concat(ai),ui=[Wn,Xn,Yn,Gn,Vn],di=[Dr,Or],hi=function codePointsToCharacterClasses(er,tr){void 0===tr&&(tr="strict");var rr=[],nr=[],ir=[];return er.forEach((function(er,or){var ar=ni.get(er);if(ar>Cr?(ir.push(!0),ar-=Cr):ir.push(!1),-1!==["normal","auto","loose"].indexOf(tr)&&-1!==[8208,8211,12316,12448].indexOf(er))return nr.push(or),rr.push(jr);if(ar===Lr||ar===Rr){if(0===or)return nr.push(or),rr.push(Un);var sr=rr[or-1];return-1===li.indexOf(sr)?(nr.push(nr[or-1]),rr.push(sr)):(nr.push(or),rr.push(Un))}return nr.push(or),ar===Qn?rr.push("strict"===tr?Kr:Kn):ar===$n||ar===Tn?rr.push(Un):ar===Zn?er>=131072&&er<=196605||er>=196608&&er<=262141?rr.push(Kn):rr.push(Un):void rr.push(ar)})),[nr,rr,ir]},pi=function isAdjacentWithSpaceIgnored(er,tr,rr,nr){var ir=nr[rr];if(Array.isArray(er)?-1!==er.indexOf(ir):er===ir)for(var or=rr;or<=nr.length;){if((lr=nr[++or])===tr)return!0;if(lr!==Ir)break}if(ir===Ir)for(or=rr;or>0;){var ar=nr[--or];if(Array.isArray(er)?-1!==er.indexOf(ar):er===ar)for(var sr=rr;sr<=nr.length;){var lr;if((lr=nr[++sr])===tr)return!0;if(lr!==Ir)break}if(ar!==Ir)break}return!1},Ai=function previousNonSpaceClassType(er,tr){for(var rr=er;rr>=0;){var nr=tr[rr];if(nr!==Ir)return nr;rr--}return 0},fi=function _lineBreakAtIndex(er,tr,rr,nr,ir){if(0===rr[nr])return ti;var or=nr-1;if(Array.isArray(ir)&&!0===ir[or])return ti;var ar=or-1,sr=or+1,lr=tr[or],cr=ar>=0?tr[ar]:0,ur=tr[sr];if(lr===Er&&ur===Nr)return ti;if(-1!==oi.indexOf(lr))return ei;if(-1!==oi.indexOf(ur))return ti;if(-1!==ai.indexOf(ur))return ti;if(Ai(or,tr)===Fr)return ri;if(ni.get(er[or])===Rr&&(ur===Kn||ur===Dn||ur===Hn))return ti;if(lr===Pr||ur===Pr)return ti;if(lr===Ur)return ti;if(-1===[Ir,Or,Dr].indexOf(lr)&&ur===Ur)return ti;if(-1!==[Hr,Gr,Vr,Xr,Zr].indexOf(ur))return ti;if(Ai(or,tr)===qr)return ti;if(pi(Wr,qr,or,tr))return ti;if(pi([Hr,Gr],Kr,or,tr))return ti;if(pi(Mr,Mr,or,tr))return ti;if(lr===Ir)return ri;if(lr===Wr||ur===Wr)return ti;if(ur===jr||lr===jr)return ri;if(-1!==[Or,Dr,Kr].indexOf(ur)||lr===Qr)return ti;if(cr===zn&&-1!==di.indexOf(lr))return ti;if(lr===Zr&&ur===zn)return ti;if(ur===zr&&-1!==ii.concat(zr,Vr,Yr,Kn,Dn,Hn).indexOf(lr))return ti;if(-1!==ii.indexOf(ur)&&lr===Yr||-1!==ii.indexOf(lr)&&ur===Yr)return ti;if(lr===$r&&-1!==[Kn,Dn,Hn].indexOf(ur)||-1!==[Kn,Dn,Hn].indexOf(lr)&&ur===Jr)return ti;if(-1!==ii.indexOf(lr)&&-1!==si.indexOf(ur)||-1!==si.indexOf(lr)&&-1!==ii.indexOf(ur))return ti;if(-1!==[$r,Jr].indexOf(lr)&&(ur===Yr||-1!==[qr,Dr].indexOf(ur)&&tr[sr+1]===Yr)||-1!==[qr,Dr].indexOf(lr)&&ur===Yr||lr===Yr&&-1!==[Yr,Zr,Xr].indexOf(ur))return ti;if(-1!==[Yr,Zr,Xr,Hr,Gr].indexOf(ur))for(var dr=or;dr>=0;){if((hr=tr[dr])===Yr)return ti;if(-1===[Zr,Xr].indexOf(hr))break;dr--}if(-1!==[$r,Jr].indexOf(ur))for(dr=-1!==[Hr,Gr].indexOf(lr)?ar:or;dr>=0;){var hr;if((hr=tr[dr])===Yr)return ti;if(-1===[Zr,Xr].indexOf(hr))break;dr--}if(Wn===lr&&-1!==[Wn,Xn,Gn,Vn].indexOf(ur)||-1!==[Xn,Gn].indexOf(lr)&&-1!==[Xn,Yn].indexOf(ur)||-1!==[Yn,Vn].indexOf(lr)&&ur===Yn)return ti;if(-1!==ui.indexOf(lr)&&-1!==[zr,Jr].indexOf(ur)||-1!==ui.indexOf(ur)&&lr===$r)return ti;if(-1!==ii.indexOf(lr)&&-1!==ii.indexOf(ur))return ti;if(lr===Xr&&-1!==ii.indexOf(ur))return ti;if(-1!==ii.concat(Yr).indexOf(lr)&&ur===qr||-1!==ii.concat(Yr).indexOf(ur)&&lr===Gr)return ti;if(lr===Jn&&ur===Jn){for(var pr=rr[or],Ar=1;pr>0&&tr[--pr]===Jn;)Ar++;if(Ar%2!=0)return ti}return lr===Dn&&ur===Hn?ti:ri},gi=function cssFormattedClasses(er,tr){tr||(tr={lineBreak:"normal",wordBreak:"normal"});var rr=hi(er,tr.lineBreak),nr=rr[0],ir=rr[1],or=rr[2];return"break-all"!==tr.wordBreak&&"break-word"!==tr.wordBreak||(ir=ir.map((function(er){return-1!==[Yr,Un,$n].indexOf(er)?Kn:er}))),[nr,ir,"keep-all"===tr.wordBreak?or.map((function(tr,rr){return tr&&er[rr]>=19968&&er[rr]<=40959})):void 0]},mi=function(){function Break(er,tr,rr,nr){this.codePoints=er,this.required=tr===ei,this.start=rr,this.end=nr}return Break.prototype.slice=function(){return ar.apply(void 0,this.codePoints.slice(this.start,this.end))},Break}(),_i=function LineBreaker(er,tr){var rr=or(er),nr=gi(rr,tr),ir=nr[0],ar=nr[1],sr=nr[2],lr=rr.length,cr=0,ur=0;return{next:function next(){if(ur>=lr)return{done:!0,value:null};for(var er=ti;ur<lr&&(er=fi(rr,ar,ir,++ur,sr))===ti;);if(er!==ti||ur===lr){var tr=new mi(rr,er,cr,ur);return cr=ur,{value:tr,done:!1}}return{done:!0,value:null}}}};!function(er){er[er.STRING_TOKEN=0]="STRING_TOKEN",er[er.BAD_STRING_TOKEN=1]="BAD_STRING_TOKEN",er[er.LEFT_PARENTHESIS_TOKEN=2]="LEFT_PARENTHESIS_TOKEN",er[er.RIGHT_PARENTHESIS_TOKEN=3]="RIGHT_PARENTHESIS_TOKEN",er[er.COMMA_TOKEN=4]="COMMA_TOKEN",er[er.HASH_TOKEN=5]="HASH_TOKEN",er[er.DELIM_TOKEN=6]="DELIM_TOKEN",er[er.AT_KEYWORD_TOKEN=7]="AT_KEYWORD_TOKEN",er[er.PREFIX_MATCH_TOKEN=8]="PREFIX_MATCH_TOKEN",er[er.DASH_MATCH_TOKEN=9]="DASH_MATCH_TOKEN",er[er.INCLUDE_MATCH_TOKEN=10]="INCLUDE_MATCH_TOKEN",er[er.LEFT_CURLY_BRACKET_TOKEN=11]="LEFT_CURLY_BRACKET_TOKEN",er[er.RIGHT_CURLY_BRACKET_TOKEN=12]="RIGHT_CURLY_BRACKET_TOKEN",er[er.SUFFIX_MATCH_TOKEN=13]="SUFFIX_MATCH_TOKEN",er[er.SUBSTRING_MATCH_TOKEN=14]="SUBSTRING_MATCH_TOKEN",er[er.DIMENSION_TOKEN=15]="DIMENSION_TOKEN",er[er.PERCENTAGE_TOKEN=16]="PERCENTAGE_TOKEN",er[er.NUMBER_TOKEN=17]="NUMBER_TOKEN",er[er.FUNCTION=18]="FUNCTION",er[er.FUNCTION_TOKEN=19]="FUNCTION_TOKEN",er[er.IDENT_TOKEN=20]="IDENT_TOKEN",er[er.COLUMN_TOKEN=21]="COLUMN_TOKEN",er[er.URL_TOKEN=22]="URL_TOKEN",er[er.BAD_URL_TOKEN=23]="BAD_URL_TOKEN",er[er.CDC_TOKEN=24]="CDC_TOKEN",er[er.CDO_TOKEN=25]="CDO_TOKEN",er[er.COLON_TOKEN=26]="COLON_TOKEN",er[er.SEMICOLON_TOKEN=27]="SEMICOLON_TOKEN",er[er.LEFT_SQUARE_BRACKET_TOKEN=28]="LEFT_SQUARE_BRACKET_TOKEN",er[er.RIGHT_SQUARE_BRACKET_TOKEN=29]="RIGHT_SQUARE_BRACKET_TOKEN",er[er.UNICODE_RANGE_TOKEN=30]="UNICODE_RANGE_TOKEN",er[er.WHITESPACE_TOKEN=31]="WHITESPACE_TOKEN",er[er.EOF_TOKEN=32]="EOF_TOKEN"}(ur||(ur={}));var vi=1,yi=2,wi=4,Si=8,xi=10,ki=47,Ci=92,Bi=9,Ei=32,Ni=34,Li=61,Ti=35,Pi=36,Fi=37,Ui=39,Ii=40,Ri=41,Mi=95,Oi=45,Qi=33,Di=60,ji=62,Hi=64,Gi=91,Vi=93,zi=61,Ki=123,qi=63,Wi=125,Xi=124,Yi=126,Ji=128,$i=65533,Zi=42,eo=43,to=44,ro=58,no=59,io=46,oo=0,ao=8,so=11,lo=14,co=31,uo=127,ho=-1,po=48,Ao=97,fo=101,go=102,mo=117,_o=122,vo=65,yo=69,wo=70,So=85,xo=90,ko=function isDigit(er){return er>=po&&er<=57},Co=function isSurrogateCodePoint(er){return er>=55296&&er<=57343},Bo=function isHex(er){return ko(er)||er>=vo&&er<=wo||er>=Ao&&er<=go},Eo=function isLowerCaseLetter(er){return er>=Ao&&er<=_o},No=function isUpperCaseLetter(er){return er>=vo&&er<=xo},Lo=function isLetter(er){return Eo(er)||No(er)},To=function isNonASCIICodePoint(er){return er>=Ji},Po=function isWhiteSpace(er){return er===xi||er===Bi||er===Ei},Fo=function isNameStartCodePoint(er){return Lo(er)||To(er)||er===Mi},Uo=function isNameCodePoint(er){return Fo(er)||ko(er)||er===Oi},Io=function isNonPrintableCodePoint(er){return er>=oo&&er<=ao||er===so||er>=lo&&er<=co||er===uo},Ro=function isValidEscape(er,tr){return er===Ci&&tr!==xi},Mo=function isIdentifierStart(er,tr,rr){return er===Oi?Fo(tr)||Ro(tr,rr):!!Fo(er)||!(er!==Ci||!Ro(er,tr))},Oo=function isNumberStart(er,tr,rr){return er===eo||er===Oi?!!ko(tr)||tr===io&&ko(rr):ko(er===io?tr:er)},Qo=function stringToNumber(er){var tr=0,rr=1;er[tr]!==eo&&er[tr]!==Oi||(er[tr]===Oi&&(rr=-1),tr++);for(var nr=[];ko(er[tr]);)nr.push(er[tr++]);var ir=nr.length?parseInt(ar.apply(void 0,nr),10):0;er[tr]===io&&tr++;for(var or=[];ko(er[tr]);)or.push(er[tr++]);var sr=or.length,lr=sr?parseInt(ar.apply(void 0,or),10):0;er[tr]!==yo&&er[tr]!==fo||tr++;var cr=1;er[tr]!==eo&&er[tr]!==Oi||(er[tr]===Oi&&(cr=-1),tr++);for(var ur=[];ko(er[tr]);)ur.push(er[tr++]);var dr=ur.length?parseInt(ar.apply(void 0,ur),10):0;return rr*(ir+lr*Math.pow(10,-sr))*Math.pow(10,cr*dr)},Do={type:ur.LEFT_PARENTHESIS_TOKEN},jo={type:ur.RIGHT_PARENTHESIS_TOKEN},Ho={type:ur.COMMA_TOKEN},Go={type:ur.SUFFIX_MATCH_TOKEN},Vo={type:ur.PREFIX_MATCH_TOKEN},zo={type:ur.COLUMN_TOKEN},Ko={type:ur.DASH_MATCH_TOKEN},qo={type:ur.INCLUDE_MATCH_TOKEN},Wo={type:ur.LEFT_CURLY_BRACKET_TOKEN},Xo={type:ur.RIGHT_CURLY_BRACKET_TOKEN},Yo={type:ur.SUBSTRING_MATCH_TOKEN},Jo={type:ur.BAD_URL_TOKEN},$o={type:ur.BAD_STRING_TOKEN},Zo={type:ur.CDO_TOKEN},ea={type:ur.CDC_TOKEN},ta={type:ur.COLON_TOKEN},ra={type:ur.SEMICOLON_TOKEN},na={type:ur.LEFT_SQUARE_BRACKET_TOKEN},ia={type:ur.RIGHT_SQUARE_BRACKET_TOKEN},oa={type:ur.WHITESPACE_TOKEN},aa={type:ur.EOF_TOKEN},sa=function(){function Tokenizer(){this._value=[]}return Tokenizer.prototype.write=function(er){this._value=this._value.concat(or(er))},Tokenizer.prototype.read=function(){for(var er=[],tr=this.consumeToken();tr!==aa;)er.push(tr),tr=this.consumeToken();return er},Tokenizer.prototype.consumeToken=function(){var er=this.consumeCodePoint();switch(er){case Ni:return this.consumeStringToken(Ni);case Ti:var tr=this.peekCodePoint(0),rr=this.peekCodePoint(1),nr=this.peekCodePoint(2);if(Uo(tr)||Ro(rr,nr)){var ir=Mo(tr,rr,nr)?yi:vi,or=this.consumeName();return{type:ur.HASH_TOKEN,value:or,flags:ir}}break;case Pi:if(this.peekCodePoint(0)===Li)return this.consumeCodePoint(),Go;break;case Ui:return this.consumeStringToken(Ui);case Ii:return Do;case Ri:return jo;case Zi:if(this.peekCodePoint(0)===Li)return this.consumeCodePoint(),Yo;break;case eo:if(Oo(er,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(er),this.consumeNumericToken();break;case to:return Ho;case Oi:var sr=er,lr=this.peekCodePoint(0),cr=this.peekCodePoint(1);if(Oo(sr,lr,cr))return this.reconsumeCodePoint(er),this.consumeNumericToken();if(Mo(sr,lr,cr))return this.reconsumeCodePoint(er),this.consumeIdentLikeToken();if(lr===Oi&&cr===ji)return this.consumeCodePoint(),this.consumeCodePoint(),ea;break;case io:if(Oo(er,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(er),this.consumeNumericToken();break;case ki:if(this.peekCodePoint(0)===Zi)for(this.consumeCodePoint();;){var dr=this.consumeCodePoint();if(dr===Zi&&(dr=this.consumeCodePoint())===ki)return this.consumeToken();if(dr===ho)return this.consumeToken()}break;case ro:return ta;case no:return ra;case Di:if(this.peekCodePoint(0)===Qi&&this.peekCodePoint(1)===Oi&&this.peekCodePoint(2)===Oi)return this.consumeCodePoint(),this.consumeCodePoint(),Zo;break;case Hi:var hr=this.peekCodePoint(0),pr=this.peekCodePoint(1),Ar=this.peekCodePoint(2);if(Mo(hr,pr,Ar))return or=this.consumeName(),{type:ur.AT_KEYWORD_TOKEN,value:or};break;case Gi:return na;case Ci:if(Ro(er,this.peekCodePoint(0)))return this.reconsumeCodePoint(er),this.consumeIdentLikeToken();break;case Vi:return ia;case zi:if(this.peekCodePoint(0)===Li)return this.consumeCodePoint(),Vo;break;case Ki:return Wo;case Wi:return Xo;case mo:case So:var fr=this.peekCodePoint(0),gr=this.peekCodePoint(1);return fr!==eo||!Bo(gr)&&gr!==qi||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(er),this.consumeIdentLikeToken();case Xi:if(this.peekCodePoint(0)===Li)return this.consumeCodePoint(),Ko;if(this.peekCodePoint(0)===Xi)return this.consumeCodePoint(),zo;break;case Yi:if(this.peekCodePoint(0)===Li)return this.consumeCodePoint(),qo;break;case ho:return aa}return Po(er)?(this.consumeWhiteSpace(),oa):ko(er)?(this.reconsumeCodePoint(er),this.consumeNumericToken()):Fo(er)?(this.reconsumeCodePoint(er),this.consumeIdentLikeToken()):{type:ur.DELIM_TOKEN,value:ar(er)}},Tokenizer.prototype.consumeCodePoint=function(){var er=this._value.shift();return void 0===er?-1:er},Tokenizer.prototype.reconsumeCodePoint=function(er){this._value.unshift(er)},Tokenizer.prototype.peekCodePoint=function(er){return er>=this._value.length?-1:this._value[er]},Tokenizer.prototype.consumeUnicodeRangeToken=function(){for(var er=[],tr=this.consumeCodePoint();Bo(tr)&&er.length<6;)er.push(tr),tr=this.consumeCodePoint();for(var rr=!1;tr===qi&&er.length<6;)er.push(tr),tr=this.consumeCodePoint(),rr=!0;if(rr){var nr=parseInt(ar.apply(void 0,er.map((function(er){return er===qi?po:er}))),16),ir=parseInt(ar.apply(void 0,er.map((function(er){return er===qi?wo:er}))),16);return{type:ur.UNICODE_RANGE_TOKEN,start:nr,end:ir}}var or=parseInt(ar.apply(void 0,er),16);if(this.peekCodePoint(0)===Oi&&Bo(this.peekCodePoint(1))){this.consumeCodePoint(),tr=this.consumeCodePoint();for(var sr=[];Bo(tr)&&sr.length<6;)sr.push(tr),tr=this.consumeCodePoint();return ir=parseInt(ar.apply(void 0,sr),16),{type:ur.UNICODE_RANGE_TOKEN,start:or,end:ir}}return{type:ur.UNICODE_RANGE_TOKEN,start:or,end:or}},Tokenizer.prototype.consumeIdentLikeToken=function(){var er=this.consumeName();return"url"===er.toLowerCase()&&this.peekCodePoint(0)===Ii?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Ii?(this.consumeCodePoint(),{type:ur.FUNCTION_TOKEN,value:er}):{type:ur.IDENT_TOKEN,value:er}},Tokenizer.prototype.consumeUrlToken=function(){var er=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===ho)return{type:ur.URL_TOKEN,value:""};var tr=this.peekCodePoint(0);if(tr===Ui||tr===Ni){var rr=this.consumeStringToken(this.consumeCodePoint());return rr.type===ur.STRING_TOKEN&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===ho||this.peekCodePoint(0)===Ri)?(this.consumeCodePoint(),{type:ur.URL_TOKEN,value:rr.value}):(this.consumeBadUrlRemnants(),Jo)}for(;;){var nr=this.consumeCodePoint();if(nr===ho||nr===Ri)return{type:ur.URL_TOKEN,value:ar.apply(void 0,er)};if(Po(nr))return this.consumeWhiteSpace(),this.peekCodePoint(0)===ho||this.peekCodePoint(0)===Ri?(this.consumeCodePoint(),{type:ur.URL_TOKEN,value:ar.apply(void 0,er)}):(this.consumeBadUrlRemnants(),Jo);if(nr===Ni||nr===Ui||nr===Ii||Io(nr))return this.consumeBadUrlRemnants(),Jo;if(nr===Ci){if(!Ro(nr,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),Jo;er.push(this.consumeEscapedCodePoint())}else er.push(nr)}},Tokenizer.prototype.consumeWhiteSpace=function(){for(;Po(this.peekCodePoint(0));)this.consumeCodePoint()},Tokenizer.prototype.consumeBadUrlRemnants=function(){for(;;){var er=this.consumeCodePoint();if(er===Ri||er===ho)return;Ro(er,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},Tokenizer.prototype.consumeStringSlice=function(er){for(var tr=6e4,rr="";er>0;){var nr=Math.min(tr,er);rr+=ar.apply(void 0,this._value.splice(0,nr)),er-=nr}return this._value.shift(),rr},Tokenizer.prototype.consumeStringToken=function(er){for(var tr="",rr=0;;){var nr=this._value[rr];if(nr===ho||void 0===nr||nr===er)return tr+=this.consumeStringSlice(rr),{type:ur.STRING_TOKEN,value:tr};if(nr===xi)return this._value.splice(0,rr),$o;if(nr===Ci){var ir=this._value[rr+1];ir!==ho&&void 0!==ir&&(ir===xi?(tr+=this.consumeStringSlice(rr),rr=-1,this._value.shift()):Ro(nr,ir)&&(tr+=this.consumeStringSlice(rr),tr+=ar(this.consumeEscapedCodePoint()),rr=-1))}rr++}},Tokenizer.prototype.consumeNumber=function(){var er=[],tr=wi,rr=this.peekCodePoint(0);for(rr!==eo&&rr!==Oi||er.push(this.consumeCodePoint());ko(this.peekCodePoint(0));)er.push(this.consumeCodePoint());rr=this.peekCodePoint(0);var nr=this.peekCodePoint(1);if(rr===io&&ko(nr))for(er.push(this.consumeCodePoint(),this.consumeCodePoint()),tr=Si;ko(this.peekCodePoint(0));)er.push(this.consumeCodePoint());rr=this.peekCodePoint(0),nr=this.peekCodePoint(1);var ir=this.peekCodePoint(2);if((rr===yo||rr===fo)&&((nr===eo||nr===Oi)&&ko(ir)||ko(nr)))for(er.push(this.consumeCodePoint(),this.consumeCodePoint()),tr=Si;ko(this.peekCodePoint(0));)er.push(this.consumeCodePoint());return[Qo(er),tr]},Tokenizer.prototype.consumeNumericToken=function(){var er=this.consumeNumber(),tr=er[0],rr=er[1],nr=this.peekCodePoint(0),ir=this.peekCodePoint(1),or=this.peekCodePoint(2);if(Mo(nr,ir,or)){var ar=this.consumeName();return{type:ur.DIMENSION_TOKEN,number:tr,flags:rr,unit:ar}}return nr===Fi?(this.consumeCodePoint(),{type:ur.PERCENTAGE_TOKEN,number:tr,flags:rr}):{type:ur.NUMBER_TOKEN,number:tr,flags:rr}},Tokenizer.prototype.consumeEscapedCodePoint=function(){var er=this.consumeCodePoint();if(Bo(er)){for(var tr=ar(er);Bo(this.peekCodePoint(0))&&tr.length<6;)tr+=ar(this.consumeCodePoint());Po(this.peekCodePoint(0))&&this.consumeCodePoint();var rr=parseInt(tr,16);return 0===rr||Co(rr)||rr>1114111?$i:rr}return er===ho?$i:er},Tokenizer.prototype.consumeName=function(){for(var er="";;){var tr=this.consumeCodePoint();if(Uo(tr))er+=ar(tr);else{if(!Ro(tr,this.peekCodePoint(0)))return this.reconsumeCodePoint(tr),er;er+=ar(this.consumeEscapedCodePoint())}}},Tokenizer}(),la=function(){function Parser(er){this._tokens=er}return Parser.create=function(er){var tr=new sa;return tr.write(er),new Parser(tr.read())},Parser.parseValue=function(er){return Parser.create(er).parseComponentValue()},Parser.parseValues=function(er){return Parser.create(er).parseComponentValues()},Parser.prototype.parseComponentValue=function(){for(var er=this.consumeToken();er.type===ur.WHITESPACE_TOKEN;)er=this.consumeToken();if(er.type===ur.EOF_TOKEN)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(er);var tr=this.consumeComponentValue();do{er=this.consumeToken()}while(er.type===ur.WHITESPACE_TOKEN);if(er.type===ur.EOF_TOKEN)return tr;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},Parser.prototype.parseComponentValues=function(){for(var er=[];;){var tr=this.consumeComponentValue();if(tr.type===ur.EOF_TOKEN)return er;er.push(tr),er.push()}},Parser.prototype.consumeComponentValue=function(){var er=this.consumeToken();switch(er.type){case ur.LEFT_CURLY_BRACKET_TOKEN:case ur.LEFT_SQUARE_BRACKET_TOKEN:case ur.LEFT_PARENTHESIS_TOKEN:return this.consumeSimpleBlock(er.type);case ur.FUNCTION_TOKEN:return this.consumeFunction(er)}return er},Parser.prototype.consumeSimpleBlock=function(er){for(var tr={type:er,values:[]},rr=this.consumeToken();;){if(rr.type===ur.EOF_TOKEN||_a(rr,er))return tr;this.reconsumeToken(rr),tr.values.push(this.consumeComponentValue()),rr=this.consumeToken()}},Parser.prototype.consumeFunction=function(er){for(var tr={name:er.value,values:[],type:ur.FUNCTION};;){var rr=this.consumeToken();if(rr.type===ur.EOF_TOKEN||rr.type===ur.RIGHT_PARENTHESIS_TOKEN)return tr;this.reconsumeToken(rr),tr.values.push(this.consumeComponentValue())}},Parser.prototype.consumeToken=function(){var er=this._tokens.shift();return void 0===er?aa:er},Parser.prototype.reconsumeToken=function(er){this._tokens.unshift(er)},Parser}(),ua=function isDimensionToken(er){return er.type===ur.DIMENSION_TOKEN},da=function isNumberToken(er){return er.type===ur.NUMBER_TOKEN},ha=function isIdentToken(er){return er.type===ur.IDENT_TOKEN},pa=function isStringToken(er){return er.type===ur.STRING_TOKEN},Aa=function isIdentWithValue(er,tr){return ha(er)&&er.value===tr},fa=function nonWhiteSpace(er){return er.type!==ur.WHITESPACE_TOKEN},ga=function nonFunctionArgSeparator(er){return er.type!==ur.WHITESPACE_TOKEN&&er.type!==ur.COMMA_TOKEN},ma=function parseFunctionArgs(er){var tr=[],rr=[];return er.forEach((function(er){if(er.type===ur.COMMA_TOKEN){if(0===rr.length)throw new Error("Error parsing function args, zero tokens for arg");return tr.push(rr),void(rr=[])}er.type!==ur.WHITESPACE_TOKEN&&rr.push(er)})),rr.length&&tr.push(rr),tr},_a=function isEndingTokenFor(er,tr){return tr===ur.LEFT_CURLY_BRACKET_TOKEN&&er.type===ur.RIGHT_CURLY_BRACKET_TOKEN||tr===ur.LEFT_SQUARE_BRACKET_TOKEN&&er.type===ur.RIGHT_SQUARE_BRACKET_TOKEN||tr===ur.LEFT_PARENTHESIS_TOKEN&&er.type===ur.RIGHT_PARENTHESIS_TOKEN},va=function isLength(er){return er.type===ur.NUMBER_TOKEN||er.type===ur.DIMENSION_TOKEN},ya=function isLengthPercentage(er){return er.type===ur.PERCENTAGE_TOKEN||va(er)},ba=function parseLengthPercentageTuple(er){return er.length>1?[er[0],er[1]]:[er[0]]},wa={type:ur.NUMBER_TOKEN,number:0,flags:wi},Sa={type:ur.PERCENTAGE_TOKEN,number:50,flags:wi},xa={type:ur.PERCENTAGE_TOKEN,number:100,flags:wi},ka=function getAbsoluteValueForTuple(er,tr,rr){var nr=er[0],ir=er[1];return[Ca(nr,tr),Ca(void 0!==ir?ir:nr,rr)]},Ca=function getAbsoluteValue(er,tr){if(er.type===ur.PERCENTAGE_TOKEN)return er.number/100*tr;if(ua(er))switch(er.unit){case"rem":case"em":return 16*er.number;case"px":default:return er.number}return er.number},Ba="deg",Ea="grad",Na="rad",La="turn",Ta={name:"angle",parse:function parse(er){if(er.type===ur.DIMENSION_TOKEN)switch(er.unit){case Ba:return Math.PI*er.number/180;case Ea:return Math.PI/200*er.number;case Na:return er.number;case La:return 2*Math.PI*er.number}throw new Error("Unsupported angle type")}},Pa=function isAngle(er){return er.type===ur.DIMENSION_TOKEN&&(er.unit===Ba||er.unit===Ea||er.unit===Na||er.unit===La)},Fa=function parseNamedSide(er){switch(er.filter(ha).map((function(er){return er.value})).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left":return[wa,wa];case"to top":case"bottom":return Ua(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[wa,xa];case"to right":case"left":return Ua(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[xa,xa];case"to bottom":case"top":return Ua(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[xa,wa];case"to left":case"right":return Ua(270)}return 0},Ua=function deg(er){return Math.PI*er/180},Ia={name:"color",parse:function parse(er){if(er.type===ur.FUNCTION){var tr=Va[er.name];if(void 0===tr)throw new Error('Attempting to parse an unsupported color function "'+er.name+'"');return tr(er.values)}if(er.type===ur.HASH_TOKEN){if(3===er.value.length){var rr=er.value.substring(0,1),nr=er.value.substring(1,2),ir=er.value.substring(2,3);return Oa(parseInt(rr+rr,16),parseInt(nr+nr,16),parseInt(ir+ir,16),1)}if(4===er.value.length){rr=er.value.substring(0,1),nr=er.value.substring(1,2),ir=er.value.substring(2,3);var or=er.value.substring(3,4);return Oa(parseInt(rr+rr,16),parseInt(nr+nr,16),parseInt(ir+ir,16),parseInt(or+or,16)/255)}if(6===er.value.length)return rr=er.value.substring(0,2),nr=er.value.substring(2,4),ir=er.value.substring(4,6),Oa(parseInt(rr,16),parseInt(nr,16),parseInt(ir,16),1);if(8===er.value.length)return rr=er.value.substring(0,2),nr=er.value.substring(2,4),ir=er.value.substring(4,6),or=er.value.substring(6,8),Oa(parseInt(rr,16),parseInt(nr,16),parseInt(ir,16),parseInt(or,16)/255)}if(er.type===ur.IDENT_TOKEN){var ar=za[er.value.toUpperCase()];if(void 0!==ar)return ar}return za.TRANSPARENT}},Ra=function isTransparent(er){return 0==(255&er)},Ma=function asString(er){var tr=255&er,rr=255&er>>8,nr=255&er>>16,ir=255&er>>24;return tr<255?"rgba("+ir+","+nr+","+rr+","+tr/255+")":"rgb("+ir+","+nr+","+rr+")"},Oa=function pack(er,tr,rr,nr){return(er<<24|tr<<16|rr<<8|Math.round(255*nr)<<0)>>>0},Qa=function getTokenColorValue(er,tr){if(er.type===ur.NUMBER_TOKEN)return er.number;if(er.type===ur.PERCENTAGE_TOKEN){var rr=3===tr?1:255;return 3===tr?er.number/100*rr:Math.round(er.number/100*rr)}return 0},Da=function rgb(er){var tr=er.filter(ga);if(3===tr.length){var rr=tr.map(Qa),nr=rr[0],ir=rr[1],or=rr[2];return Oa(nr,ir,or,1)}if(4===tr.length){var ar=tr.map(Qa),sr=(nr=ar[0],ir=ar[1],or=ar[2],ar[3]);return Oa(nr,ir,or,sr)}return 0};function hue2rgb(er,tr,rr){return rr<0&&(rr+=1),rr>=1&&(rr-=1),rr<1/6?(tr-er)*rr*6+er:rr<.5?tr:rr<2/3?6*(tr-er)*(2/3-rr)+er:er}var ja,Ha,Ga=function hsl(er){var tr=er.filter(ga),rr=tr[0],nr=tr[1],ir=tr[2],or=tr[3],ar=(rr.type===ur.NUMBER_TOKEN?Ua(rr.number):Ta.parse(rr))/(2*Math.PI),sr=ya(nr)?nr.number/100:0,lr=ya(ir)?ir.number/100:0,cr=void 0!==or&&ya(or)?Ca(or,1):1;if(0===sr)return Oa(255*lr,255*lr,255*lr,1);var dr=lr<=.5?lr*(sr+1):lr+sr-lr*sr,hr=2*lr-dr,pr=hue2rgb(hr,dr,ar+1/3),Ar=hue2rgb(hr,dr,ar),fr=hue2rgb(hr,dr,ar-1/3);return Oa(255*pr,255*Ar,255*fr,cr)},Va={hsl:Ga,hsla:Ga,rgb:Da,rgba:Da},za={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199};(function(er){er[er.VALUE=0]="VALUE",er[er.LIST=1]="LIST",er[er.IDENT_VALUE=2]="IDENT_VALUE",er[er.TYPE_VALUE=3]="TYPE_VALUE",er[er.TOKEN_VALUE=4]="TOKEN_VALUE"})(ja||(ja={})),function(er){er[er.BORDER_BOX=0]="BORDER_BOX",er[er.PADDING_BOX=1]="PADDING_BOX",er[er.CONTENT_BOX=2]="CONTENT_BOX"}(Ha||(Ha={}));var Ka,qa={name:"background-clip",initialValue:"border-box",prefix:!1,type:ja.LIST,parse:function parse(er){return er.map((function(er){if(ha(er))switch(er.value){case"padding-box":return Ha.PADDING_BOX;case"content-box":return Ha.CONTENT_BOX}return Ha.BORDER_BOX}))}},Wa={name:"background-color",initialValue:"transparent",prefix:!1,type:ja.TYPE_VALUE,format:"color"},Xa=function parseColorStop(er){var tr=Ia.parse(er[0]),rr=er[1];return rr&&ya(rr)?{color:tr,stop:rr}:{color:tr,stop:null}},Ya=function processColorStops(er,tr){var rr=er[0],nr=er[er.length-1];null===rr.stop&&(rr.stop=wa),null===nr.stop&&(nr.stop=xa);for(var ir=[],or=0,ar=0;ar<er.length;ar++){var sr=er[ar].stop;if(null!==sr){var lr=Ca(sr,tr);lr>or?ir.push(lr):ir.push(or),or=lr}else ir.push(null)}var cr=null;for(ar=0;ar<ir.length;ar++){var ur=ir[ar];if(null===ur)null===cr&&(cr=ar);else if(null!==cr){for(var dr=ar-cr,hr=(ur-ir[cr-1])/(dr+1),pr=1;pr<=dr;pr++)ir[cr+pr-1]=hr*pr;cr=null}}return er.map((function(er,rr){return{color:er.color,stop:Math.max(Math.min(1,ir[rr]/tr),0)}}))},Ja=function getAngleFromCorner(er,tr,rr){var nr=tr/2,ir=rr/2,or=Ca(er[0],tr)-nr,ar=ir-Ca(er[1],rr);return(Math.atan2(ar,or)+2*Math.PI)%(2*Math.PI)},$a=function calculateGradientDirection(er,tr,rr){var nr="number"==typeof er?er:Ja(er,tr,rr),ir=Math.abs(tr*Math.sin(nr))+Math.abs(rr*Math.cos(nr)),or=tr/2,ar=rr/2,sr=ir/2,lr=Math.sin(nr-Math.PI/2)*sr,cr=Math.cos(nr-Math.PI/2)*sr;return[ir,or-cr,or+cr,ar-lr,ar+lr]},Za=function distance(er,tr){return Math.sqrt(er*er+tr*tr)},es=function findCorner(er,tr,rr,nr,ir){return[[0,0],[0,tr],[er,0],[er,tr]].reduce((function(er,tr){var or=tr[0],ar=tr[1],sr=Za(rr-or,nr-ar);return(ir?sr<er.optimumDistance:sr>er.optimumDistance)?{optimumCorner:tr,optimumDistance:sr}:er}),{optimumDistance:ir?1/0:-1/0,optimumCorner:null}).optimumCorner},ts=function calculateRadius(er,tr,rr,nr,ir){var or=0,ar=0;switch(er.size){case Os.CLOSEST_SIDE:er.shape===Ms.CIRCLE?or=ar=Math.min(Math.abs(tr),Math.abs(tr-nr),Math.abs(rr),Math.abs(rr-ir)):er.shape===Ms.ELLIPSE&&(or=Math.min(Math.abs(tr),Math.abs(tr-nr)),ar=Math.min(Math.abs(rr),Math.abs(rr-ir)));break;case Os.CLOSEST_CORNER:if(er.shape===Ms.CIRCLE)or=ar=Math.min(Za(tr,rr),Za(tr,rr-ir),Za(tr-nr,rr),Za(tr-nr,rr-ir));else if(er.shape===Ms.ELLIPSE){var sr=Math.min(Math.abs(rr),Math.abs(rr-ir))/Math.min(Math.abs(tr),Math.abs(tr-nr)),lr=es(nr,ir,tr,rr,!0),cr=lr[0],ur=lr[1];ar=sr*(or=Za(cr-tr,(ur-rr)/sr))}break;case Os.FARTHEST_SIDE:er.shape===Ms.CIRCLE?or=ar=Math.max(Math.abs(tr),Math.abs(tr-nr),Math.abs(rr),Math.abs(rr-ir)):er.shape===Ms.ELLIPSE&&(or=Math.max(Math.abs(tr),Math.abs(tr-nr)),ar=Math.max(Math.abs(rr),Math.abs(rr-ir)));break;case Os.FARTHEST_CORNER:if(er.shape===Ms.CIRCLE)or=ar=Math.max(Za(tr,rr),Za(tr,rr-ir),Za(tr-nr,rr),Za(tr-nr,rr-ir));else if(er.shape===Ms.ELLIPSE){sr=Math.max(Math.abs(rr),Math.abs(rr-ir))/Math.max(Math.abs(tr),Math.abs(tr-nr));var dr=es(nr,ir,tr,rr,!1);cr=dr[0],ur=dr[1],ar=sr*(or=Za(cr-tr,(ur-rr)/sr))}}return Array.isArray(er.size)&&(or=Ca(er.size[0],nr),ar=2===er.size.length?Ca(er.size[1],ir):or),[or,ar]},rs=function linearGradient(er){var tr=Ua(180),rr=[];return ma(er).forEach((function(er,nr){if(0===nr){var ir=er[0];if(ir.type===ur.IDENT_TOKEN&&"to"===ir.value)return void(tr=Fa(er));if(Pa(ir))return void(tr=Ta.parse(ir))}var or=Xa(er);rr.push(or)})),{angle:tr,stops:rr,type:Ka.LINEAR_GRADIENT}},ns=function prefixLinearGradient(er){var tr=Ua(180),rr=[];return ma(er).forEach((function(er,nr){if(0===nr){var ir=er[0];if(ir.type===ur.IDENT_TOKEN&&-1!==["top","left","right","bottom"].indexOf(ir.value))return void(tr=Fa(er));if(Pa(ir))return void(tr=(Ta.parse(ir)+Ua(270))%Ua(360))}var or=Xa(er);rr.push(or)})),{angle:tr,stops:rr,type:Ka.LINEAR_GRADIENT}},os=function testRangeBounds(er){var tr=123;if(er.createRange){var rr=er.createRange();if(rr.getBoundingClientRect){var nr=er.createElement("boundtest");nr.style.height=tr+"px",nr.style.display="block",er.body.appendChild(nr),rr.selectNode(nr);var ir=rr.getBoundingClientRect(),or=Math.round(ir.height);if(er.body.removeChild(nr),or===tr)return!0}}return!1},as=function testCORS(){return void 0!==(new Image).crossOrigin},ss=function testResponseType(){return"string"==typeof(new XMLHttpRequest).responseType},ls=function testSVG(er){var tr=new Image,rr=er.createElement("canvas"),nr=rr.getContext("2d");if(!nr)return!1;tr.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{nr.drawImage(tr,0,0),rr.toDataURL()}catch(er){return!1}return!0},us=function isGreenPixel(er){return 0===er[0]&&255===er[1]&&0===er[2]&&255===er[3]},ds=function testForeignObject(er){var tr=er.createElement("canvas"),rr=100;tr.width=rr,tr.height=rr;var nr=tr.getContext("2d");if(!nr)return Promise.reject(!1);nr.fillStyle="rgb(0, 255, 0)",nr.fillRect(0,0,rr,rr);var ir=new Image,or=tr.toDataURL();ir.src=or;var ar=hs(rr,rr,0,0,ir);return nr.fillStyle="red",nr.fillRect(0,0,rr,rr),ps(ar).then((function(tr){nr.drawImage(tr,0,0);var ir=nr.getImageData(0,0,rr,rr).data;nr.fillStyle="red",nr.fillRect(0,0,rr,rr);var ar=er.createElement("div");return ar.style.backgroundImage="url("+or+")",ar.style.height=rr+"px",us(ir)?ps(hs(rr,rr,0,0,ar)):Promise.reject(!1)})).then((function(er){return nr.drawImage(er,0,0),us(nr.getImageData(0,0,rr,rr).data)})).catch((function(){return!1}))},hs=function createForeignObjectSVG(er,tr,rr,nr,ir){var or="http://www.w3.org/2000/svg",ar=document.createElementNS(or,"svg"),sr=document.createElementNS(or,"foreignObject");return ar.setAttributeNS(null,"width",er.toString()),ar.setAttributeNS(null,"height",tr.toString()),sr.setAttributeNS(null,"width","100%"),sr.setAttributeNS(null,"height","100%"),sr.setAttributeNS(null,"x",rr.toString()),sr.setAttributeNS(null,"y",nr.toString()),sr.setAttributeNS(null,"externalResourcesRequired","true"),ar.appendChild(sr),sr.appendChild(ir),ar},ps=function loadSerializedSVG(er){return new Promise((function(tr,rr){var nr=new Image;nr.onload=function(){return tr(nr)},nr.onerror=rr,nr.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(er))}))},As={get SUPPORT_RANGE_BOUNDS(){var er=os(document);return Object.defineProperty(As,"SUPPORT_RANGE_BOUNDS",{value:er}),er},get SUPPORT_SVG_DRAWING(){var er=ls(document);return Object.defineProperty(As,"SUPPORT_SVG_DRAWING",{value:er}),er},get SUPPORT_FOREIGNOBJECT_DRAWING(){var er="function"==typeof Array.from&&"function"==typeof window.fetch?ds(document):Promise.resolve(!1);return Object.defineProperty(As,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:er}),er},get SUPPORT_CORS_IMAGES(){var er=as();return Object.defineProperty(As,"SUPPORT_CORS_IMAGES",{value:er}),er},get SUPPORT_RESPONSE_TYPE(){var er=ss();return Object.defineProperty(As,"SUPPORT_RESPONSE_TYPE",{value:er}),er},get SUPPORT_CORS_XHR(){var er="withCredentials"in new XMLHttpRequest;return Object.defineProperty(As,"SUPPORT_CORS_XHR",{value:er}),er}},fs=function(){function Logger(er){var tr=er.id,rr=er.enabled;this.id=tr,this.enabled=rr,this.start=Date.now()}return Logger.prototype.debug=function(){for(var er=[],tr=0;tr<arguments.length;tr++)er[tr]=arguments[tr];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.debug?console.debug.apply(console,[this.id,this.getTime()+"ms"].concat(er)):this.info.apply(this,er))},Logger.prototype.getTime=function(){return Date.now()-this.start},Logger.create=function(er){Logger.instances[er.id]=new Logger(er)},Logger.destroy=function(er){delete Logger.instances[er]},Logger.getInstance=function(er){var tr=Logger.instances[er];if(void 0===tr)throw new Error("No logger instance found with id "+er);return tr},Logger.prototype.info=function(){for(var er=[],tr=0;tr<arguments.length;tr++)er[tr]=arguments[tr];this.enabled&&"undefined"!=typeof window&&window.console&&"function"==typeof console.info&&console.info.apply(console,[this.id,this.getTime()+"ms"].concat(er))},Logger.prototype.error=function(){for(var er=[],tr=0;tr<arguments.length;tr++)er[tr]=arguments[tr];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.error?console.error.apply(console,[this.id,this.getTime()+"ms"].concat(er)):this.info.apply(this,er))},Logger.instances={},Logger}(),gs=function(){function CacheStorage(){}return CacheStorage.create=function(er,tr){return CacheStorage._caches[er]=new ms(er,tr)},CacheStorage.destroy=function(er){delete CacheStorage._caches[er]},CacheStorage.open=function(er){var tr=CacheStorage._caches[er];if(void 0!==tr)return tr;throw new Error('Cache with key "'+er+'" not found')},CacheStorage.getOrigin=function(er){var tr=CacheStorage._link;return tr?(tr.href=er,tr.href=tr.href,tr.protocol+tr.hostname+tr.port):"about:blank"},CacheStorage.isSameOrigin=function(er){return CacheStorage.getOrigin(er)===CacheStorage._origin},CacheStorage.setContext=function(er){CacheStorage._link=er.document.createElement("a"),CacheStorage._origin=CacheStorage.getOrigin(er.location.href)},CacheStorage.getInstance=function(){var er=CacheStorage._current;if(null===er)throw new Error("No cache instance attached");return er},CacheStorage.attachInstance=function(er){CacheStorage._current=er},CacheStorage.detachInstance=function(){CacheStorage._current=null},CacheStorage._caches={},CacheStorage._origin="about:blank",CacheStorage._current=null,CacheStorage}(),ms=function(){function Cache(er,tr){this.id=er,this._options=tr,this._cache={}}return Cache.prototype.addImage=function(er){var tr=Promise.resolve();return this.has(er)?tr:xs(er)||bs(er)?(this._cache[er]=this.loadImage(er),tr):tr},Cache.prototype.match=function(er){return this._cache[er]},Cache.prototype.loadImage=function(er){return __awaiter(this,void 0,void 0,(function(){var tr,rr,nr,ir,or=this;return __generator(this,(function(ar){switch(ar.label){case 0:return tr=gs.isSameOrigin(er),rr=!ws(er)&&!0===this._options.useCORS&&As.SUPPORT_CORS_IMAGES&&!tr,nr=!ws(er)&&!tr&&"string"==typeof this._options.proxy&&As.SUPPORT_CORS_XHR&&!rr,tr||!1!==this._options.allowTaint||ws(er)||nr||rr?(ir=er,nr?[4,this.proxy(ir)]:[3,2]):[2];case 1:ir=ar.sent(),ar.label=2;case 2:return fs.getInstance(this.id).debug("Added image "+er.substring(0,256)),[4,new Promise((function(er,tr){var nr=new Image;nr.onload=function(){return er(nr)},nr.onerror=tr,(Ss(ir)||rr)&&(nr.crossOrigin="anonymous"),nr.src=ir,!0===nr.complete&&setTimeout((function(){return er(nr)}),500),or._options.imageTimeout>0&&setTimeout((function(){return tr("Timed out ("+or._options.imageTimeout+"ms) loading image")}),or._options.imageTimeout)}))];case 3:return[2,ar.sent()]}}))}))},Cache.prototype.has=function(er){return void 0!==this._cache[er]},Cache.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},Cache.prototype.proxy=function(er){var tr=this,rr=this._options.proxy;if(!rr)throw new Error("No proxy defined");var nr=er.substring(0,256);return new Promise((function(ir,or){var ar=As.SUPPORT_RESPONSE_TYPE?"blob":"text",sr=new XMLHttpRequest;if(sr.onload=function(){if(200===sr.status)if("text"===ar)ir(sr.response);else{var er=new FileReader;er.addEventListener("load",(function(){return ir(er.result)}),!1),er.addEventListener("error",(function(er){return or(er)}),!1),er.readAsDataURL(sr.response)}else or("Failed to proxy resource "+nr+" with status code "+sr.status)},sr.onerror=or,sr.open("GET",rr+"?url="+encodeURIComponent(er)+"&responseType="+ar),"text"!==ar&&sr instanceof XMLHttpRequest&&(sr.responseType=ar),tr._options.imageTimeout){var lr=tr._options.imageTimeout;sr.timeout=lr,sr.ontimeout=function(){return or("Timed out ("+lr+"ms) proxying "+nr)}}sr.send()}))},Cache}(),_s=/^data:image\/svg\+xml/i,vs=/^data:image\/.*;base64,/i,ys=/^data:image\/.*/i,bs=function isRenderable(er){return As.SUPPORT_SVG_DRAWING||!ks(er)},ws=function isInlineImage(er){return ys.test(er)},Ss=function isInlineBase64Image(er){return vs.test(er)},xs=function isBlobImage(er){return"blob"===er.substr(0,4)},ks=function isSVG(er){return"svg"===er.substr(-3).toLowerCase()||_s.test(er)},Cs=function webkitGradient(er){var tr=Ua(180),rr=[],nr=Ka.LINEAR_GRADIENT,ir=Ms.CIRCLE,or=Os.FARTHEST_CORNER,ar=[];return ma(er).forEach((function(er,tr){var ir=er[0];if(0===tr){if(ha(ir)&&"linear"===ir.value)return void(nr=Ka.LINEAR_GRADIENT);if(ha(ir)&&"radial"===ir.value)return void(nr=Ka.RADIAL_GRADIENT)}if(ir.type===ur.FUNCTION)if("from"===ir.name){var or=Ia.parse(ir.values[0]);rr.push({stop:wa,color:or})}else if("to"===ir.name)or=Ia.parse(ir.values[0]),rr.push({stop:xa,color:or});else if("color-stop"===ir.name){var ar=ir.values.filter(ga);if(2===ar.length){or=Ia.parse(ar[1]);var sr=ar[0];da(sr)&&rr.push({stop:{type:ur.PERCENTAGE_TOKEN,number:100*sr.number,flags:sr.flags},color:or})}}})),nr===Ka.LINEAR_GRADIENT?{angle:(tr+Ua(180))%Ua(360),stops:rr,type:nr}:{size:or,shape:ir,stops:rr,position:ar,type:nr}},Bs="closest-side",Es="farthest-side",Ns="closest-corner",Ls="farthest-corner",Ts="circle",Ps="ellipse",Fs="cover",Us="contain",Is=function radialGradient(er){var tr=Ms.CIRCLE,rr=Os.FARTHEST_CORNER,nr=[],ir=[];return ma(er).forEach((function(er,or){var ar=!0;if(0===or){var sr=!1;ar=er.reduce((function(er,nr){if(sr)if(ha(nr))switch(nr.value){case"center":return ir.push(Sa),er;case"top":case"left":return ir.push(wa),er;case"right":case"bottom":return ir.push(xa),er}else(ya(nr)||va(nr))&&ir.push(nr);else if(ha(nr))switch(nr.value){case Ts:return tr=Ms.CIRCLE,!1;case Ps:return tr=Ms.ELLIPSE,!1;case"at":return sr=!0,!1;case Bs:return rr=Os.CLOSEST_SIDE,!1;case Fs:case Es:return rr=Os.FARTHEST_SIDE,!1;case Us:case Ns:return rr=Os.CLOSEST_CORNER,!1;case Ls:return rr=Os.FARTHEST_CORNER,!1}else if(va(nr)||ya(nr))return Array.isArray(rr)||(rr=[]),rr.push(nr),!1;return er}),ar)}if(ar){var lr=Xa(er);nr.push(lr)}})),{size:rr,shape:tr,stops:nr,position:ir,type:Ka.RADIAL_GRADIENT}},Rs=function prefixRadialGradient(er){var tr=Ms.CIRCLE,rr=Os.FARTHEST_CORNER,nr=[],ir=[];return ma(er).forEach((function(er,or){var ar=!0;if(0===or?ar=er.reduce((function(er,tr){if(ha(tr))switch(tr.value){case"center":return ir.push(Sa),!1;case"top":case"left":return ir.push(wa),!1;case"right":case"bottom":return ir.push(xa),!1}else if(ya(tr)||va(tr))return ir.push(tr),!1;return er}),ar):1===or&&(ar=er.reduce((function(er,nr){if(ha(nr))switch(nr.value){case Ts:return tr=Ms.CIRCLE,!1;case Ps:return tr=Ms.ELLIPSE,!1;case Us:case Bs:return rr=Os.CLOSEST_SIDE,!1;case Es:return rr=Os.FARTHEST_SIDE,!1;case Ns:return rr=Os.CLOSEST_CORNER,!1;case Fs:case Ls:return rr=Os.FARTHEST_CORNER,!1}else if(va(nr)||ya(nr))return Array.isArray(rr)||(rr=[]),rr.push(nr),!1;return er}),ar)),ar){var sr=Xa(er);nr.push(sr)}})),{size:rr,shape:tr,stops:nr,position:ir,type:Ka.RADIAL_GRADIENT}};!function(er){er[er.URL=0]="URL",er[er.LINEAR_GRADIENT=1]="LINEAR_GRADIENT",er[er.RADIAL_GRADIENT=2]="RADIAL_GRADIENT"}(Ka||(Ka={}));var Ms,Os,Qs=function isLinearGradient(er){return er.type===Ka.LINEAR_GRADIENT},Ds=function isRadialGradient(er){return er.type===Ka.RADIAL_GRADIENT};(function(er){er[er.CIRCLE=0]="CIRCLE",er[er.ELLIPSE=1]="ELLIPSE"})(Ms||(Ms={})),function(er){er[er.CLOSEST_SIDE=0]="CLOSEST_SIDE",er[er.FARTHEST_SIDE=1]="FARTHEST_SIDE",er[er.CLOSEST_CORNER=2]="CLOSEST_CORNER",er[er.FARTHEST_CORNER=3]="FARTHEST_CORNER"}(Os||(Os={}));var js={name:"image",parse:function parse(er){if(er.type===ur.URL_TOKEN){var tr={url:er.value,type:Ka.URL};return gs.getInstance().addImage(er.value),tr}if(er.type===ur.FUNCTION){var rr=Gs[er.name];if(void 0===rr)throw new Error('Attempting to parse an unsupported image function "'+er.name+'"');return rr(er.values)}throw new Error("Unsupported image type")}};function isSupportedImage(er){return er.type!==ur.FUNCTION||Gs[er.name]}var Hs,Gs={"linear-gradient":rs,"-moz-linear-gradient":ns,"-ms-linear-gradient":ns,"-o-linear-gradient":ns,"-webkit-linear-gradient":ns,"radial-gradient":Is,"-moz-radial-gradient":Rs,"-ms-radial-gradient":Rs,"-o-radial-gradient":Rs,"-webkit-radial-gradient":Rs,"-webkit-gradient":Cs},Vs={name:"background-image",initialValue:"none",type:ja.LIST,prefix:!1,parse:function parse(er){if(0===er.length)return[];var tr=er[0];return tr.type===ur.IDENT_TOKEN&&"none"===tr.value?[]:er.filter((function(er){return ga(er)&&isSupportedImage(er)})).map(js.parse)}},zs={name:"background-origin",initialValue:"border-box",prefix:!1,type:ja.LIST,parse:function parse(er){return er.map((function(er){if(ha(er))switch(er.value){case"padding-box":return 1;case"content-box":return 2}return 0}))}},Ks={name:"background-position",initialValue:"0% 0%",type:ja.LIST,prefix:!1,parse:function parse(er){return ma(er).map((function(er){return er.filter(ya)})).map(ba)}};!function(er){er[er.REPEAT=0]="REPEAT",er[er.NO_REPEAT=1]="NO_REPEAT",er[er.REPEAT_X=2]="REPEAT_X",er[er.REPEAT_Y=3]="REPEAT_Y"}(Hs||(Hs={}));var qs,Ws={name:"background-repeat",initialValue:"repeat",prefix:!1,type:ja.LIST,parse:function parse(er){return ma(er).map((function(er){return er.filter(ha).map((function(er){return er.value})).join(" ")})).map(Xs)}},Xs=function parseBackgroundRepeat(er){switch(er){case"no-repeat":return Hs.NO_REPEAT;case"repeat-x":case"repeat no-repeat":return Hs.REPEAT_X;case"repeat-y":case"no-repeat repeat":return Hs.REPEAT_Y;case"repeat":default:return Hs.REPEAT}};!function(er){er.AUTO="auto",er.CONTAIN="contain",er.COVER="cover"}(qs||(qs={}));var Ys,Js={name:"background-size",initialValue:"0",prefix:!1,type:ja.LIST,parse:function parse(er){return ma(er).map((function(er){return er.filter($s)}))}},$s=function isBackgroundSizeInfoToken(er){return ha(er)||ya(er)},Zs=function borderColorForSide(er){return{name:"border-"+er+"-color",initialValue:"transparent",prefix:!1,type:ja.TYPE_VALUE,format:"color"}},el=Zs("top"),tl=Zs("right"),rl=Zs("bottom"),nl=Zs("left"),il=function borderRadiusForSide(er){return{name:"border-radius-"+er,initialValue:"0 0",prefix:!1,type:ja.LIST,parse:function parse(er){return ba(er.filter(ya))}}},ol=il("top-left"),al=il("top-right"),sl=il("bottom-right"),ll=il("bottom-left");!function(er){er[er.NONE=0]="NONE",er[er.SOLID=1]="SOLID"}(Ys||(Ys={}));var cl,ul=function borderStyleForSide(er){return{name:"border-"+er+"-style",initialValue:"solid",prefix:!1,type:ja.IDENT_VALUE,parse:function parse(er){switch(er){case"none":return Ys.NONE}return Ys.SOLID}}},dl=ul("top"),hl=ul("right"),pl=ul("bottom"),Al=ul("left"),fl=function borderWidthForSide(er){return{name:"border-"+er+"-width",initialValue:"0",type:ja.VALUE,prefix:!1,parse:function parse(er){return ua(er)?er.number:0}}},gl=fl("top"),ml=fl("right"),_l=fl("bottom"),vl=fl("left"),yl={name:"color",initialValue:"transparent",prefix:!1,type:ja.TYPE_VALUE,format:"color"},wl={name:"display",initialValue:"inline-block",prefix:!1,type:ja.LIST,parse:function parse(er){return er.filter(ha).reduce((function(er,tr){return er|Sl(tr.value)}),0)}},Sl=function parseDisplayValue(er){switch(er){case"block":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0};!function(er){er[er.NONE=0]="NONE",er[er.LEFT=1]="LEFT",er[er.RIGHT=2]="RIGHT",er[er.INLINE_START=3]="INLINE_START",er[er.INLINE_END=4]="INLINE_END"}(cl||(cl={}));var xl,kl={name:"float",initialValue:"none",prefix:!1,type:ja.IDENT_VALUE,parse:function parse(er){switch(er){case"left":return cl.LEFT;case"right":return cl.RIGHT;case"inline-start":return cl.INLINE_START;case"inline-end":return cl.INLINE_END}return cl.NONE}},Cl={name:"letter-spacing",initialValue:"0",prefix:!1,type:ja.VALUE,parse:function parse(er){return er.type===ur.IDENT_TOKEN&&"normal"===er.value?0:er.type===ur.NUMBER_TOKEN||er.type===ur.DIMENSION_TOKEN?er.number:0}};!function(er){er.NORMAL="normal",er.STRICT="strict"}(xl||(xl={}));var Bl,El={name:"line-break",initialValue:"normal",prefix:!1,type:ja.IDENT_VALUE,parse:function parse(er){switch(er){case"strict":return xl.STRICT;case"normal":default:return xl.NORMAL}}},Nl={name:"line-height",initialValue:"normal",prefix:!1,type:ja.TOKEN_VALUE},Ll=function computeLineHeight(er,tr){return ha(er)&&"normal"===er.value?1.2*tr:er.type===ur.NUMBER_TOKEN?tr*er.number:ya(er)?Ca(er,tr):tr},Tl={name:"list-style-image",initialValue:"none",type:ja.VALUE,prefix:!1,parse:function parse(er){return er.type===ur.IDENT_TOKEN&&"none"===er.value?null:js.parse(er)}};!function(er){er[er.INSIDE=0]="INSIDE",er[er.OUTSIDE=1]="OUTSIDE"}(Bl||(Bl={}));var Pl,Fl={name:"list-style-position",initialValue:"outside",prefix:!1,type:ja.IDENT_VALUE,parse:function parse(er){switch(er){case"inside":return Bl.INSIDE;case"outside":default:return Bl.OUTSIDE}}};!function(er){er[er.NONE=-1]="NONE",er[er.DISC=0]="DISC",er[er.CIRCLE=1]="CIRCLE",er[er.SQUARE=2]="SQUARE",er[er.DECIMAL=3]="DECIMAL",er[er.CJK_DECIMAL=4]="CJK_DECIMAL",er[er.DECIMAL_LEADING_ZERO=5]="DECIMAL_LEADING_ZERO",er[er.LOWER_ROMAN=6]="LOWER_ROMAN",er[er.UPPER_ROMAN=7]="UPPER_ROMAN",er[er.LOWER_GREEK=8]="LOWER_GREEK",er[er.LOWER_ALPHA=9]="LOWER_ALPHA",er[er.UPPER_ALPHA=10]="UPPER_ALPHA",er[er.ARABIC_INDIC=11]="ARABIC_INDIC",er[er.ARMENIAN=12]="ARMENIAN",er[er.BENGALI=13]="BENGALI",er[er.CAMBODIAN=14]="CAMBODIAN",er[er.CJK_EARTHLY_BRANCH=15]="CJK_EARTHLY_BRANCH",er[er.CJK_HEAVENLY_STEM=16]="CJK_HEAVENLY_STEM",er[er.CJK_IDEOGRAPHIC=17]="CJK_IDEOGRAPHIC",er[er.DEVANAGARI=18]="DEVANAGARI",er[er.ETHIOPIC_NUMERIC=19]="ETHIOPIC_NUMERIC",er[er.GEORGIAN=20]="GEORGIAN",er[er.GUJARATI=21]="GUJARATI",er[er.GURMUKHI=22]="GURMUKHI",er[er.HEBREW=22]="HEBREW",er[er.HIRAGANA=23]="HIRAGANA",er[er.HIRAGANA_IROHA=24]="HIRAGANA_IROHA",er[er.JAPANESE_FORMAL=25]="JAPANESE_FORMAL",er[er.JAPANESE_INFORMAL=26]="JAPANESE_INFORMAL",er[er.KANNADA=27]="KANNADA",er[er.KATAKANA=28]="KATAKANA",er[er.KATAKANA_IROHA=29]="KATAKANA_IROHA",er[er.KHMER=30]="KHMER",er[er.KOREAN_HANGUL_FORMAL=31]="KOREAN_HANGUL_FORMAL",er[er.KOREAN_HANJA_FORMAL=32]="KOREAN_HANJA_FORMAL",er[er.KOREAN_HANJA_INFORMAL=33]="KOREAN_HANJA_INFORMAL",er[er.LAO=34]="LAO",er[er.LOWER_ARMENIAN=35]="LOWER_ARMENIAN",er[er.MALAYALAM=36]="MALAYALAM",er[er.MONGOLIAN=37]="MONGOLIAN",er[er.MYANMAR=38]="MYANMAR",er[er.ORIYA=39]="ORIYA",er[er.PERSIAN=40]="PERSIAN",er[er.SIMP_CHINESE_FORMAL=41]="SIMP_CHINESE_FORMAL",er[er.SIMP_CHINESE_INFORMAL=42]="SIMP_CHINESE_INFORMAL",er[er.TAMIL=43]="TAMIL",er[er.TELUGU=44]="TELUGU",er[er.THAI=45]="THAI",er[er.TIBETAN=46]="TIBETAN",er[er.TRAD_CHINESE_FORMAL=47]="TRAD_CHINESE_FORMAL",er[er.TRAD_CHINESE_INFORMAL=48]="TRAD_CHINESE_INFORMAL",er[er.UPPER_ARMENIAN=49]="UPPER_ARMENIAN",er[er.DISCLOSURE_OPEN=50]="DISCLOSURE_OPEN",er[er.DISCLOSURE_CLOSED=51]="DISCLOSURE_CLOSED"}(Pl||(Pl={}));var Ul,Il={name:"list-style-type",initialValue:"none",prefix:!1,type:ja.IDENT_VALUE,parse:function parse(er){switch(er){case"disc":return Pl.DISC;case"circle":return Pl.CIRCLE;case"square":return Pl.SQUARE;case"decimal":return Pl.DECIMAL;case"cjk-decimal":return Pl.CJK_DECIMAL;case"decimal-leading-zero":return Pl.DECIMAL_LEADING_ZERO;case"lower-roman":return Pl.LOWER_ROMAN;case"upper-roman":return Pl.UPPER_ROMAN;case"lower-greek":return Pl.LOWER_GREEK;case"lower-alpha":return Pl.LOWER_ALPHA;case"upper-alpha":return Pl.UPPER_ALPHA;case"arabic-indic":return Pl.ARABIC_INDIC;case"armenian":return Pl.ARMENIAN;case"bengali":return Pl.BENGALI;case"cambodian":return Pl.CAMBODIAN;case"cjk-earthly-branch":return Pl.CJK_EARTHLY_BRANCH;case"cjk-heavenly-stem":return Pl.CJK_HEAVENLY_STEM;case"cjk-ideographic":return Pl.CJK_IDEOGRAPHIC;case"devanagari":return Pl.DEVANAGARI;case"ethiopic-numeric":return Pl.ETHIOPIC_NUMERIC;case"georgian":return Pl.GEORGIAN;case"gujarati":return Pl.GUJARATI;case"gurmukhi":return Pl.GURMUKHI;case"hebrew":return Pl.HEBREW;case"hiragana":return Pl.HIRAGANA;case"hiragana-iroha":return Pl.HIRAGANA_IROHA;case"japanese-formal":return Pl.JAPANESE_FORMAL;case"japanese-informal":return Pl.JAPANESE_INFORMAL;case"kannada":return Pl.KANNADA;case"katakana":return Pl.KATAKANA;case"katakana-iroha":return Pl.KATAKANA_IROHA;case"khmer":return Pl.KHMER;case"korean-hangul-formal":return Pl.KOREAN_HANGUL_FORMAL;case"korean-hanja-formal":return Pl.KOREAN_HANJA_FORMAL;case"korean-hanja-informal":return Pl.KOREAN_HANJA_INFORMAL;case"lao":return Pl.LAO;case"lower-armenian":return Pl.LOWER_ARMENIAN;case"malayalam":return Pl.MALAYALAM;case"mongolian":return Pl.MONGOLIAN;case"myanmar":return Pl.MYANMAR;case"oriya":return Pl.ORIYA;case"persian":return Pl.PERSIAN;case"simp-chinese-formal":return Pl.SIMP_CHINESE_FORMAL;case"simp-chinese-informal":return Pl.SIMP_CHINESE_INFORMAL;case"tamil":return Pl.TAMIL;case"telugu":return Pl.TELUGU;case"thai":return Pl.THAI;case"tibetan":return Pl.TIBETAN;case"trad-chinese-formal":return Pl.TRAD_CHINESE_FORMAL;case"trad-chinese-informal":return Pl.TRAD_CHINESE_INFORMAL;case"upper-armenian":return Pl.UPPER_ARMENIAN;case"disclosure-open":return Pl.DISCLOSURE_OPEN;case"disclosure-closed":return Pl.DISCLOSURE_CLOSED;case"none":default:return Pl.NONE}}},Rl=function marginForSide(er){return{name:"margin-"+er,initialValue:"0",prefix:!1,type:ja.TOKEN_VALUE}},Ml=Rl("top"),Ol=Rl("right"),Ql=Rl("bottom"),Dl=Rl("left");!function(er){er[er.VISIBLE=0]="VISIBLE",er[er.HIDDEN=1]="HIDDEN",er[er.SCROLL=2]="SCROLL",er[er.AUTO=3]="AUTO"}(Ul||(Ul={}));var jl,Hl={name:"overflow",initialValue:"visible",prefix:!1,type:ja.LIST,parse:function parse(er){return er.filter(ha).map((function(er){switch(er.value){case"hidden":return Ul.HIDDEN;case"scroll":return Ul.SCROLL;case"auto":return Ul.AUTO;case"visible":default:return Ul.VISIBLE}}))}};!function(er){er.NORMAL="normal",er.BREAK_WORD="break-word"}(jl||(jl={}));var Gl,Vl={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:ja.IDENT_VALUE,parse:function parse(er){switch(er){case"break-word":return jl.BREAK_WORD;case"normal":default:return jl.NORMAL}}},zl=function paddingForSide(er){return{name:"padding-"+er,initialValue:"0",prefix:!1,type:ja.TYPE_VALUE,format:"length-percentage"}},Kl=zl("top"),ql=zl("right"),Wl=zl("bottom"),Xl=zl("left");!function(er){er[er.LEFT=0]="LEFT",er[er.CENTER=1]="CENTER",er[er.RIGHT=2]="RIGHT"}(Gl||(Gl={}));var Yl,Jl={name:"text-align",initialValue:"left",prefix:!1,type:ja.IDENT_VALUE,parse:function parse(er){switch(er){case"right":return Gl.RIGHT;case"center":case"justify":return Gl.CENTER;case"left":default:return Gl.LEFT}}};!function(er){er[er.STATIC=0]="STATIC",er[er.RELATIVE=1]="RELATIVE",er[er.ABSOLUTE=2]="ABSOLUTE",er[er.FIXED=3]="FIXED",er[er.STICKY=4]="STICKY"}(Yl||(Yl={}));var $l,Zl={name:"position",initialValue:"static",prefix:!1,type:ja.IDENT_VALUE,parse:function parse(er){switch(er){case"relative":return Yl.RELATIVE;case"absolute":return Yl.ABSOLUTE;case"fixed":return Yl.FIXED;case"sticky":return Yl.STICKY}return Yl.STATIC}},ec={name:"text-shadow",initialValue:"none",type:ja.LIST,prefix:!1,parse:function parse(er){return 1===er.length&&Aa(er[0],"none")?[]:ma(er).map((function(er){for(var tr={color:za.TRANSPARENT,offsetX:wa,offsetY:wa,blur:wa},rr=0,nr=0;nr<er.length;nr++){var ir=er[nr];va(ir)?(0===rr?tr.offsetX=ir:1===rr?tr.offsetY=ir:tr.blur=ir,rr++):tr.color=Ia.parse(ir)}return tr}))}};!function(er){er[er.NONE=0]="NONE",er[er.LOWERCASE=1]="LOWERCASE",er[er.UPPERCASE=2]="UPPERCASE",er[er.CAPITALIZE=3]="CAPITALIZE"}($l||($l={}));var tc,rc={name:"text-transform",initialValue:"none",prefix:!1,type:ja.IDENT_VALUE,parse:function parse(er){switch(er){case"uppercase":return $l.UPPERCASE;case"lowercase":return $l.LOWERCASE;case"capitalize":return $l.CAPITALIZE}return $l.NONE}},nc={name:"transform",initialValue:"none",prefix:!0,type:ja.VALUE,parse:function parse(er){if(er.type===ur.IDENT_TOKEN&&"none"===er.value)return null;if(er.type===ur.FUNCTION){var tr=ic[er.name];if(void 0===tr)throw new Error('Attempting to parse an unsupported transform function "'+er.name+'"');return tr(er.values)}return null}},ic={matrix:function matrix(er){var tr=er.filter((function(er){return er.type===ur.NUMBER_TOKEN})).map((function(er){return er.number}));return 6===tr.length?tr:null},matrix3d:function matrix3d(er){var tr=er.filter((function(er){return er.type===ur.NUMBER_TOKEN})).map((function(er){return er.number})),rr=tr[0],nr=tr[1],ir=(tr[2],tr[3],tr[4]),or=tr[5],ar=(tr[6],tr[7],tr[8],tr[9],tr[10],tr[11],tr[12]),sr=tr[13];return tr[14],tr[15],16===tr.length?[rr,nr,ir,or,ar,sr]:null}},oc={type:ur.PERCENTAGE_TOKEN,number:50,flags:wi},ac=[oc,oc],sc={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:ja.LIST,parse:function parse(er){var tr=er.filter(ya);return 2!==tr.length?ac:[tr[0],tr[1]]}};!function(er){er[er.VISIBLE=0]="VISIBLE",er[er.HIDDEN=1]="HIDDEN",er[er.COLLAPSE=2]="COLLAPSE"}(tc||(tc={}));var lc,uc={name:"visible",initialValue:"none",prefix:!1,type:ja.IDENT_VALUE,parse:function parse(er){switch(er){case"hidden":return tc.HIDDEN;case"collapse":return tc.COLLAPSE;case"visible":default:return tc.VISIBLE}}};!function(er){er.NORMAL="normal",er.BREAK_ALL="break-all",er.KEEP_ALL="keep-all"}(lc||(lc={}));var dc,hc={name:"word-break",initialValue:"normal",prefix:!1,type:ja.IDENT_VALUE,parse:function parse(er){switch(er){case"break-all":return lc.BREAK_ALL;case"keep-all":return lc.KEEP_ALL;case"normal":default:return lc.NORMAL}}},pc={name:"z-index",initialValue:"auto",prefix:!1,type:ja.VALUE,parse:function parse(er){if(er.type===ur.IDENT_TOKEN)return{auto:!0,order:0};if(da(er))return{auto:!1,order:er.number};throw new Error("Invalid z-index number parsed")}},Ac={name:"opacity",initialValue:"1",type:ja.VALUE,prefix:!1,parse:function parse(er){return da(er)?er.number:1}},fc={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:ja.TYPE_VALUE,format:"color"},gc={name:"text-decoration-line",initialValue:"none",prefix:!1,type:ja.LIST,parse:function parse(er){return er.filter(ha).map((function(er){switch(er.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0})).filter((function(er){return 0!==er}))}},mc={name:"font-family",initialValue:"",prefix:!1,type:ja.LIST,parse:function parse(er){var tr=[],rr=[];return er.forEach((function(er){switch(er.type){case ur.IDENT_TOKEN:case ur.STRING_TOKEN:tr.push(er.value);break;case ur.NUMBER_TOKEN:tr.push(er.number.toString());break;case ur.COMMA_TOKEN:rr.push(tr.join(" ")),tr.length=0}})),tr.length&&rr.push(tr.join(" ")),rr.map((function(er){return-1===er.indexOf(" ")?er:"'"+er+"'"}))}},_c={name:"font-size",initialValue:"0",prefix:!1,type:ja.TYPE_VALUE,format:"length"},vc={name:"font-weight",initialValue:"normal",type:ja.VALUE,prefix:!1,parse:function parse(er){if(da(er))return er.number;if(ha(er))switch(er.value){case"bold":return 700;case"normal":default:return 400}return 400}},yc={name:"font-variant",initialValue:"none",type:ja.LIST,prefix:!1,parse:function parse(er){return er.filter(ha).map((function(er){return er.value}))}};!function(er){er.NORMAL="normal",er.ITALIC="italic",er.OBLIQUE="oblique"}(dc||(dc={}));var bc,wc={name:"font-style",initialValue:"normal",prefix:!1,type:ja.IDENT_VALUE,parse:function parse(er){switch(er){case"oblique":return dc.OBLIQUE;case"italic":return dc.ITALIC;case"normal":default:return dc.NORMAL}}},Sc=function contains(er,tr){return 0!=(er&tr)},xc={name:"content",initialValue:"none",type:ja.LIST,prefix:!1,parse:function parse(er){if(0===er.length)return[];var tr=er[0];return tr.type===ur.IDENT_TOKEN&&"none"===tr.value?[]:er}},kc={name:"counter-increment",initialValue:"none",prefix:!0,type:ja.LIST,parse:function parse(er){if(0===er.length)return null;var tr=er[0];if(tr.type===ur.IDENT_TOKEN&&"none"===tr.value)return null;for(var rr=[],nr=er.filter(fa),ir=0;ir<nr.length;ir++){var or=nr[ir],ar=nr[ir+1];if(or.type===ur.IDENT_TOKEN){var sr=ar&&da(ar)?ar.number:1;rr.push({counter:or.value,increment:sr})}}return rr}},Cc={name:"counter-reset",initialValue:"none",prefix:!0,type:ja.LIST,parse:function parse(er){if(0===er.length)return[];for(var tr=[],rr=er.filter(fa),nr=0;nr<rr.length;nr++){var ir=rr[nr],or=rr[nr+1];if(ha(ir)&&"none"!==ir.value){var ar=or&&da(or)?or.number:0;tr.push({counter:ir.value,reset:ar})}}return tr}},Bc={name:"quotes",initialValue:"none",prefix:!0,type:ja.LIST,parse:function parse(er){if(0===er.length)return null;var tr=er[0];if(tr.type===ur.IDENT_TOKEN&&"none"===tr.value)return null;var rr=[],nr=er.filter(pa);if(nr.length%2!=0)return null;for(var ir=0;ir<nr.length;ir+=2){var or=nr[ir].value,ar=nr[ir+1].value;rr.push({open:or,close:ar})}return rr}},Ec=function getQuote(er,tr,rr){if(!er)return"";var nr=er[Math.min(tr,er.length-1)];return nr?rr?nr.open:nr.close:""},Nc={name:"box-shadow",initialValue:"none",type:ja.LIST,prefix:!1,parse:function parse(er){return 1===er.length&&Aa(er[0],"none")?[]:ma(er).map((function(er){for(var tr={color:255,offsetX:wa,offsetY:wa,blur:wa,spread:wa,inset:!1},rr=0,nr=0;nr<er.length;nr++){var ir=er[nr];Aa(ir,"inset")?tr.inset=!0:va(ir)?(0===rr?tr.offsetX=ir:1===rr?tr.offsetY=ir:2===rr?tr.blur=ir:tr.spread=ir,rr++):tr.color=Ia.parse(ir)}return tr}))}},Lc=function(){function CSSParsedDeclaration(er){this.backgroundClip=Fc(qa,er.backgroundClip),this.backgroundColor=Fc(Wa,er.backgroundColor),this.backgroundImage=Fc(Vs,er.backgroundImage),this.backgroundOrigin=Fc(zs,er.backgroundOrigin),this.backgroundPosition=Fc(Ks,er.backgroundPosition),this.backgroundRepeat=Fc(Ws,er.backgroundRepeat),this.backgroundSize=Fc(Js,er.backgroundSize),this.borderTopColor=Fc(el,er.borderTopColor),this.borderRightColor=Fc(tl,er.borderRightColor),this.borderBottomColor=Fc(rl,er.borderBottomColor),this.borderLeftColor=Fc(nl,er.borderLeftColor),this.borderTopLeftRadius=Fc(ol,er.borderTopLeftRadius),this.borderTopRightRadius=Fc(al,er.borderTopRightRadius),this.borderBottomRightRadius=Fc(sl,er.borderBottomRightRadius),this.borderBottomLeftRadius=Fc(ll,er.borderBottomLeftRadius),this.borderTopStyle=Fc(dl,er.borderTopStyle),this.borderRightStyle=Fc(hl,er.borderRightStyle),this.borderBottomStyle=Fc(pl,er.borderBottomStyle),this.borderLeftStyle=Fc(Al,er.borderLeftStyle),this.borderTopWidth=Fc(gl,er.borderTopWidth),this.borderRightWidth=Fc(ml,er.borderRightWidth),this.borderBottomWidth=Fc(_l,er.borderBottomWidth),this.borderLeftWidth=Fc(vl,er.borderLeftWidth),this.boxShadow=Fc(Nc,er.boxShadow),this.color=Fc(yl,er.color),this.display=Fc(wl,er.display),this.float=Fc(kl,er.cssFloat),this.fontFamily=Fc(mc,er.fontFamily),this.fontSize=Fc(_c,er.fontSize),this.fontStyle=Fc(wc,er.fontStyle),this.fontVariant=Fc(yc,er.fontVariant),this.fontWeight=Fc(vc,er.fontWeight),this.letterSpacing=Fc(Cl,er.letterSpacing),this.lineBreak=Fc(El,er.lineBreak),this.lineHeight=Fc(Nl,er.lineHeight),this.listStyleImage=Fc(Tl,er.listStyleImage),this.listStylePosition=Fc(Fl,er.listStylePosition),this.listStyleType=Fc(Il,er.listStyleType),this.marginTop=Fc(Ml,er.marginTop),this.marginRight=Fc(Ol,er.marginRight),this.marginBottom=Fc(Ql,er.marginBottom),this.marginLeft=Fc(Dl,er.marginLeft),this.opacity=Fc(Ac,er.opacity);var tr=Fc(Hl,er.overflow);this.overflowX=tr[0],this.overflowY=tr[tr.length>1?1:0],this.overflowWrap=Fc(Vl,er.overflowWrap),this.paddingTop=Fc(Kl,er.paddingTop),this.paddingRight=Fc(ql,er.paddingRight),this.paddingBottom=Fc(Wl,er.paddingBottom),this.paddingLeft=Fc(Xl,er.paddingLeft),this.position=Fc(Zl,er.position),this.textAlign=Fc(Jl,er.textAlign),this.textDecorationColor=Fc(fc,er.textDecorationColor||er.color),this.textDecorationLine=Fc(gc,er.textDecorationLine),this.textShadow=Fc(ec,er.textShadow),this.textTransform=Fc(rc,er.textTransform),this.transform=Fc(nc,er.transform),this.transformOrigin=Fc(sc,er.transformOrigin),this.visibility=Fc(uc,er.visibility),this.wordBreak=Fc(hc,er.wordBreak),this.zIndex=Fc(pc,er.zIndex)}return CSSParsedDeclaration.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===tc.VISIBLE},CSSParsedDeclaration.prototype.isTransparent=function(){return Ra(this.backgroundColor)},CSSParsedDeclaration.prototype.isTransformed=function(){return null!==this.transform},CSSParsedDeclaration.prototype.isPositioned=function(){return this.position!==Yl.STATIC},CSSParsedDeclaration.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},CSSParsedDeclaration.prototype.isFloating=function(){return this.float!==cl.NONE},CSSParsedDeclaration.prototype.isInlineLevel=function(){return Sc(this.display,4)||Sc(this.display,33554432)||Sc(this.display,268435456)||Sc(this.display,536870912)||Sc(this.display,67108864)||Sc(this.display,134217728)},CSSParsedDeclaration}(),Tc=function(){function CSSParsedPseudoDeclaration(er){this.content=Fc(xc,er.content),this.quotes=Fc(Bc,er.quotes)}return CSSParsedPseudoDeclaration}(),Pc=function(){function CSSParsedCounterDeclaration(er){this.counterIncrement=Fc(kc,er.counterIncrement),this.counterReset=Fc(Cc,er.counterReset)}return CSSParsedCounterDeclaration}(),Fc=function parse(er,tr){var rr=new sa,nr=null!=tr?tr.toString():er.initialValue;rr.write(nr);var ir=new la(rr.read());switch(er.type){case ja.IDENT_VALUE:var or=ir.parseComponentValue();return er.parse(ha(or)?or.value:er.initialValue);case ja.VALUE:return er.parse(ir.parseComponentValue());case ja.LIST:return er.parse(ir.parseComponentValues());case ja.TOKEN_VALUE:return ir.parseComponentValue();case ja.TYPE_VALUE:switch(er.format){case"angle":return Ta.parse(ir.parseComponentValue());case"color":return Ia.parse(ir.parseComponentValue());case"image":return js.parse(ir.parseComponentValue());case"length":var ar=ir.parseComponentValue();return va(ar)?ar:wa;case"length-percentage":var sr=ir.parseComponentValue();return ya(sr)?sr:wa}}throw new Error("Attempting to parse unsupported css format type "+er.format)},Uc=function(){function ElementContainer(er){this.styles=new Lc(window.getComputedStyle(er,null)),this.textNodes=[],this.elements=[],null!==this.styles.transform&&_u(er)&&(er.style.transform="none"),this.bounds=nr(er),this.flags=0}return ElementContainer}(),Ic=function(){function TextBounds(er,tr){this.text=er,this.bounds=tr}return TextBounds}(),Rc=function parseTextBounds(er,tr,rr){var nr=Qc(er,tr),ir=[],or=0;return nr.forEach((function(er){if(tr.textDecorationLine.length||er.trim().length>0)if(As.SUPPORT_RANGE_BOUNDS)ir.push(new Ic(er,Oc(rr,or,er.length)));else{var nr=rr.splitText(er.length);ir.push(new Ic(er,Mc(rr))),rr=nr}else As.SUPPORT_RANGE_BOUNDS||(rr=rr.splitText(er.length));or+=er.length})),ir},Mc=function getWrapperBounds(er){var tr=er.ownerDocument;if(tr){var ir=tr.createElement("html2canvaswrapper");ir.appendChild(er.cloneNode(!0));var or=er.parentNode;if(or){or.replaceChild(ir,er);var ar=nr(ir);return ir.firstChild&&or.replaceChild(ir.firstChild,ir),ar}}return new rr(0,0,0,0)},Oc=function getRangeBounds(er,tr,nr){var ir=er.ownerDocument;if(!ir)throw new Error("Node has no owner document");var or=ir.createRange();return or.setStart(er,tr),or.setEnd(er,tr+nr),rr.fromClientRect(or.getBoundingClientRect())},Qc=function breakText(er,tr){return 0!==tr.letterSpacing?or(er).map((function(er){return ar(er)})):Dc(er,tr)},Dc=function breakWords(er,tr){for(var rr,nr=_i(er,{lineBreak:tr.lineBreak,wordBreak:tr.overflowWrap===jl.BREAK_WORD?"break-word":tr.wordBreak}),ir=[];!(rr=nr.next()).done;)rr.value&&ir.push(rr.value.slice());return ir},jc=function(){function TextContainer(er,tr){this.text=Hc(er.data,tr.textTransform),this.textBounds=Rc(this.text,tr,er)}return TextContainer}(),Hc=function transform$1(er,tr){switch(tr){case $l.LOWERCASE:return er.toLowerCase();case $l.CAPITALIZE:return er.replace(Gc,Vc);case $l.UPPERCASE:return er.toUpperCase();default:return er}},Gc=/(^|\s|:|-|\(|\))([a-z])/g,Vc=function capitalize(er,tr,rr){return er.length>0?tr+rr.toUpperCase():er},zc=function(er){function ImageElementContainer(tr){var rr=er.call(this,tr)||this;return rr.src=tr.currentSrc||tr.src,rr.intrinsicWidth=tr.naturalWidth,rr.intrinsicHeight=tr.naturalHeight,gs.getInstance().addImage(rr.src),rr}return __extends(ImageElementContainer,er),ImageElementContainer}(Uc),Kc=function(er){function CanvasElementContainer(tr){var rr=er.call(this,tr)||this;return rr.canvas=tr,rr.intrinsicWidth=tr.width,rr.intrinsicHeight=tr.height,rr}return __extends(CanvasElementContainer,er),CanvasElementContainer}(Uc),qc=function(er){function SVGElementContainer(tr){var rr=er.call(this,tr)||this,nr=new XMLSerializer;return rr.svg="data:image/svg+xml,"+encodeURIComponent(nr.serializeToString(tr)),rr.intrinsicWidth=tr.width.baseVal.value,rr.intrinsicHeight=tr.height.baseVal.value,gs.getInstance().addImage(rr.svg),rr}return __extends(SVGElementContainer,er),SVGElementContainer}(Uc),Wc=function(er){function LIElementContainer(tr){var rr=er.call(this,tr)||this;return rr.value=tr.value,rr}return __extends(LIElementContainer,er),LIElementContainer}(Uc),Xc=function(er){function OLElementContainer(tr){var rr=er.call(this,tr)||this;return rr.start=tr.start,rr.reversed="boolean"==typeof tr.reversed&&!0===tr.reversed,rr}return __extends(OLElementContainer,er),OLElementContainer}(Uc),Yc=[{type:ur.DIMENSION_TOKEN,flags:0,unit:"px",number:3}],Jc=[{type:ur.PERCENTAGE_TOKEN,flags:0,number:50}],$c=function reformatInputBounds(er){return er.width>er.height?new rr(er.left+(er.width-er.height)/2,er.top,er.height,er.height):er.width<er.height?new rr(er.left,er.top+(er.height-er.width)/2,er.width,er.width):er},Zc=function getInputValue(er){var tr=er.type===ru?new Array(er.value.length+1).join("•"):er.value;return 0===tr.length?er.placeholder||"":tr},eu="checkbox",tu="radio",ru="password",nu=707406591,iu=function(er){function InputElementContainer(tr){var rr=er.call(this,tr)||this;switch(rr.type=tr.type.toLowerCase(),rr.checked=tr.checked,rr.value=Zc(tr),rr.type!==eu&&rr.type!==tu||(rr.styles.backgroundColor=3739148031,rr.styles.borderTopColor=rr.styles.borderRightColor=rr.styles.borderBottomColor=rr.styles.borderLeftColor=2779096575,rr.styles.borderTopWidth=rr.styles.borderRightWidth=rr.styles.borderBottomWidth=rr.styles.borderLeftWidth=1,rr.styles.borderTopStyle=rr.styles.borderRightStyle=rr.styles.borderBottomStyle=rr.styles.borderLeftStyle=Ys.SOLID,rr.styles.backgroundClip=[Ha.BORDER_BOX],rr.styles.backgroundOrigin=[0],rr.bounds=$c(rr.bounds)),rr.type){case eu:rr.styles.borderTopRightRadius=rr.styles.borderTopLeftRadius=rr.styles.borderBottomRightRadius=rr.styles.borderBottomLeftRadius=Yc;break;case tu:rr.styles.borderTopRightRadius=rr.styles.borderTopLeftRadius=rr.styles.borderBottomRightRadius=rr.styles.borderBottomLeftRadius=Jc}return rr}return __extends(InputElementContainer,er),InputElementContainer}(Uc),ou=function(er){function SelectElementContainer(tr){var rr=er.call(this,tr)||this,nr=tr.options[tr.selectedIndex||0];return rr.value=nr&&nr.text||"",rr}return __extends(SelectElementContainer,er),SelectElementContainer}(Uc),au=function(er){function TextareaElementContainer(tr){var rr=er.call(this,tr)||this;return rr.value=tr.value,rr}return __extends(TextareaElementContainer,er),TextareaElementContainer}(Uc),su=function parseColor(er){return Ia.parse(la.create(er).parseComponentValue())},lu=function(er){function IFrameElementContainer(tr){var rr=er.call(this,tr)||this;rr.src=tr.src,rr.width=parseInt(tr.width,10)||0,rr.height=parseInt(tr.height,10)||0,rr.backgroundColor=rr.styles.backgroundColor;try{if(tr.contentWindow&&tr.contentWindow.document&&tr.contentWindow.document.documentElement){rr.tree=pu(tr.contentWindow.document.documentElement);var nr=tr.contentWindow.document.documentElement?su(getComputedStyle(tr.contentWindow.document.documentElement).backgroundColor):za.TRANSPARENT,ir=tr.contentWindow.document.body?su(getComputedStyle(tr.contentWindow.document.body).backgroundColor):za.TRANSPARENT;rr.backgroundColor=Ra(nr)?Ra(ir)?rr.styles.backgroundColor:ir:nr}}catch(er){}return rr}return __extends(IFrameElementContainer,er),IFrameElementContainer}(Uc),uu=["OL","UL","MENU"],du=function parseNodeTree(er,tr,rr){for(var nr=er.firstChild,ir=void 0;nr;nr=ir)if(ir=nr.nextSibling,gu(nr)&&nr.data.trim().length>0)tr.textNodes.push(new jc(nr,tr.styles));else if(mu(nr)){var or=hu(nr);or.styles.isVisible()&&(Au(nr,or,rr)?or.flags|=4:fu(or.styles)&&(or.flags|=2),-1!==uu.indexOf(nr.tagName)&&(or.flags|=8),tr.elements.push(or),Tu(nr)||xu(nr)||Pu(nr)||parseNodeTree(nr,or,rr))}},hu=function createContainer(er){return Bu(er)?new zc(er):Cu(er)?new Kc(er):xu(er)?new qc(er):yu(er)?new Wc(er):bu(er)?new Xc(er):wu(er)?new iu(er):Pu(er)?new ou(er):Tu(er)?new au(er):Eu(er)?new lu(er):new Uc(er)},pu=function parseTree(er){var tr=hu(er);return tr.flags|=4,du(er,tr,tr),tr},Au=function createsRealStackingContext(er,tr,rr){return tr.styles.isPositionedWithZIndex()||tr.styles.opacity<1||tr.styles.isTransformed()||ku(er)&&rr.styles.isTransparent()},fu=function createsStackingContext(er){return er.isPositioned()||er.isFloating()},gu=function isTextNode(er){return er.nodeType===Node.TEXT_NODE},mu=function isElementNode(er){return er.nodeType===Node.ELEMENT_NODE},_u=function isHTMLElementNode(er){return mu(er)&&void 0!==er.style&&!vu(er)},vu=function isSVGElementNode(er){return"object"===_typeof(er.className)},yu=function isLIElement(er){return"LI"===er.tagName},bu=function isOLElement(er){return"OL"===er.tagName},wu=function isInputElement(er){return"INPUT"===er.tagName},Su=function isHTMLElement(er){return"HTML"===er.tagName},xu=function isSVGElement(er){return"svg"===er.tagName},ku=function isBodyElement(er){return"BODY"===er.tagName},Cu=function isCanvasElement(er){return"CANVAS"===er.tagName},Bu=function isImageElement(er){return"IMG"===er.tagName},Eu=function isIFrameElement(er){return"IFRAME"===er.tagName},Nu=function isStyleElement(er){return"STYLE"===er.tagName},Lu=function isScriptElement(er){return"SCRIPT"===er.tagName},Tu=function isTextareaElement(er){return"TEXTAREA"===er.tagName},Pu=function isSelectElement(er){return"SELECT"===er.tagName},Fu=function(){function CounterState(){this.counters={}}return CounterState.prototype.getCounterValue=function(er){var tr=this.counters[er];return tr&&tr.length?tr[tr.length-1]:1},CounterState.prototype.getCounterValues=function(er){var tr=this.counters[er];return tr||[]},CounterState.prototype.pop=function(er){var tr=this;er.forEach((function(er){return tr.counters[er].pop()}))},CounterState.prototype.parse=function(er){var tr=this,rr=er.counterIncrement,nr=er.counterReset,ir=!0;null!==rr&&rr.forEach((function(er){var rr=tr.counters[er.counter];rr&&0!==er.increment&&(ir=!1,rr[Math.max(0,rr.length-1)]+=er.increment)}));var or=[];return ir&&nr.forEach((function(er){var rr=tr.counters[er.counter];or.push(er.counter),rr||(rr=tr.counters[er.counter]=[]),rr.push(er.reset)})),or},CounterState}(),Uu={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},Iu={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},Ru={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},Mu={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},Ou=function createAdditiveCounter(er,tr,rr,nr,ir,or){return er<tr||er>rr?Ju(er,ir,or.length>0):nr.integers.reduce((function(tr,rr,ir){for(;er>=rr;)er-=rr,tr+=nr.values[ir];return tr}),"")+or},Qu=function createCounterStyleWithSymbolResolver(er,tr,rr,nr){var ir="";do{rr||er--,ir=nr(er)+ir,er/=tr}while(er*tr>=tr);return ir},Du=function createCounterStyleFromRange(er,tr,rr,nr,ir){var or=rr-tr+1;return(er<0?"-":"")+(Qu(Math.abs(er),or,nr,(function(er){return ar(Math.floor(er%or)+tr)}))+ir)},ju=function createCounterStyleFromSymbols(er,tr,rr){void 0===rr&&(rr=". ");var nr=tr.length;return Qu(Math.abs(er),nr,!1,(function(er){return tr[Math.floor(er%nr)]}))+rr},Hu=1,Gu=2,Vu=4,zu=8,Ku=function createCJKCounter(er,tr,rr,nr,ir,or){if(er<-9999||er>9999)return Ju(er,Pl.CJK_DECIMAL,ir.length>0);var ar=Math.abs(er),sr=ir;if(0===ar)return tr[0]+sr;for(var lr=0;ar>0&&lr<=4;lr++){var cr=ar%10;0===cr&&Sc(or,Hu)&&""!==sr?sr=tr[cr]+sr:cr>1||1===cr&&0===lr||1===cr&&1===lr&&Sc(or,Gu)||1===cr&&1===lr&&Sc(or,Vu)&&er>100||1===cr&&lr>1&&Sc(or,zu)?sr=tr[cr]+(lr>0?rr[lr-1]:"")+sr:1===cr&&lr>0&&(sr=rr[lr-1]+sr),ar=Math.floor(ar/10)}return(er<0?nr:"")+sr},qu="十百千萬",Wu="拾佰仟萬",Xu="マイナス",Yu="마이너스",Ju=function createCounterText(er,tr,rr){var nr=rr?". ":"",ir=rr?"、":"",or=rr?", ":"",ar=rr?" ":"";switch(tr){case Pl.DISC:return"•"+ar;case Pl.CIRCLE:return"◦"+ar;case Pl.SQUARE:return"◾"+ar;case Pl.DECIMAL_LEADING_ZERO:var sr=Du(er,48,57,!0,nr);return sr.length<4?"0"+sr:sr;case Pl.CJK_DECIMAL:return ju(er,"〇一二三四五六七八九",ir);case Pl.LOWER_ROMAN:return Ou(er,1,3999,Uu,Pl.DECIMAL,nr).toLowerCase();case Pl.UPPER_ROMAN:return Ou(er,1,3999,Uu,Pl.DECIMAL,nr);case Pl.LOWER_GREEK:return Du(er,945,969,!1,nr);case Pl.LOWER_ALPHA:return Du(er,97,122,!1,nr);case Pl.UPPER_ALPHA:return Du(er,65,90,!1,nr);case Pl.ARABIC_INDIC:return Du(er,1632,1641,!0,nr);case Pl.ARMENIAN:case Pl.UPPER_ARMENIAN:return Ou(er,1,9999,Iu,Pl.DECIMAL,nr);case Pl.LOWER_ARMENIAN:return Ou(er,1,9999,Iu,Pl.DECIMAL,nr).toLowerCase();case Pl.BENGALI:return Du(er,2534,2543,!0,nr);case Pl.CAMBODIAN:case Pl.KHMER:return Du(er,6112,6121,!0,nr);case Pl.CJK_EARTHLY_BRANCH:return ju(er,"子丑寅卯辰巳午未申酉戌亥",ir);case Pl.CJK_HEAVENLY_STEM:return ju(er,"甲乙丙丁戊己庚辛壬癸",ir);case Pl.CJK_IDEOGRAPHIC:case Pl.TRAD_CHINESE_INFORMAL:return Ku(er,"零一二三四五六七八九",qu,"負",ir,Gu|Vu|zu);case Pl.TRAD_CHINESE_FORMAL:return Ku(er,"零壹貳參肆伍陸柒捌玖",Wu,"負",ir,Hu|Gu|Vu|zu);case Pl.SIMP_CHINESE_INFORMAL:return Ku(er,"零一二三四五六七八九",qu,"负",ir,Gu|Vu|zu);case Pl.SIMP_CHINESE_FORMAL:return Ku(er,"零壹贰叁肆伍陆柒捌玖",Wu,"负",ir,Hu|Gu|Vu|zu);case Pl.JAPANESE_INFORMAL:return Ku(er,"〇一二三四五六七八九","十百千万",Xu,ir,0);case Pl.JAPANESE_FORMAL:return Ku(er,"零壱弐参四伍六七八九","拾百千万",Xu,ir,Hu|Gu|Vu);case Pl.KOREAN_HANGUL_FORMAL:return Ku(er,"영일이삼사오육칠팔구","십백천만",Yu,or,Hu|Gu|Vu);case Pl.KOREAN_HANJA_INFORMAL:return Ku(er,"零一二三四五六七八九","十百千萬",Yu,or,0);case Pl.KOREAN_HANJA_FORMAL:return Ku(er,"零壹貳參四五六七八九","拾百千",Yu,or,Hu|Gu|Vu);case Pl.DEVANAGARI:return Du(er,2406,2415,!0,nr);case Pl.GEORGIAN:return Ou(er,1,19999,Mu,Pl.DECIMAL,nr);case Pl.GUJARATI:return Du(er,2790,2799,!0,nr);case Pl.GURMUKHI:return Du(er,2662,2671,!0,nr);case Pl.HEBREW:return Ou(er,1,10999,Ru,Pl.DECIMAL,nr);case Pl.HIRAGANA:return ju(er,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case Pl.HIRAGANA_IROHA:return ju(er,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case Pl.KANNADA:return Du(er,3302,3311,!0,nr);case Pl.KATAKANA:return ju(er,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",ir);case Pl.KATAKANA_IROHA:return ju(er,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",ir);case Pl.LAO:return Du(er,3792,3801,!0,nr);case Pl.MONGOLIAN:return Du(er,6160,6169,!0,nr);case Pl.MYANMAR:return Du(er,4160,4169,!0,nr);case Pl.ORIYA:return Du(er,2918,2927,!0,nr);case Pl.PERSIAN:return Du(er,1776,1785,!0,nr);case Pl.TAMIL:return Du(er,3046,3055,!0,nr);case Pl.TELUGU:return Du(er,3174,3183,!0,nr);case Pl.THAI:return Du(er,3664,3673,!0,nr);case Pl.TIBETAN:return Du(er,3872,3881,!0,nr);case Pl.DECIMAL:default:return Du(er,48,57,!0,nr)}},$u="data-html2canvas-ignore",Zu=function(){function DocumentCloner(er,tr){if(this.options=tr,this.scrolledElements=[],this.referenceElement=er,this.counters=new Fu,this.quoteDepth=0,!er.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(er.ownerDocument.documentElement)}return DocumentCloner.prototype.toIFrame=function(er,tr){var rr=this,nr=td(er,tr);if(!nr.contentWindow)return Promise.reject("Unable to find iframe window");var ir=er.defaultView.pageXOffset,or=er.defaultView.pageYOffset,ar=nr.contentWindow,sr=ar.document,lr=rd(nr).then((function(){return __awaiter(rr,void 0,void 0,(function(){var er;return __generator(this,(function(rr){switch(rr.label){case 0:return this.scrolledElements.forEach(ad),ar&&(ar.scrollTo(tr.left,tr.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||ar.scrollY===tr.top&&ar.scrollX===tr.left||(sr.documentElement.style.top=-tr.top+"px",sr.documentElement.style.left=-tr.left+"px",sr.documentElement.style.position="absolute")),er=this.options.onclone,void 0===this.clonedReferenceElement?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:sr.fonts&&sr.fonts.ready?[4,sr.fonts.ready]:[3,2];case 1:rr.sent(),rr.label=2;case 2:return"function"==typeof er?[2,Promise.resolve().then((function(){return er(sr)})).then((function(){return nr}))]:[2,nr]}}))}))}));return sr.open(),sr.write(id(document.doctype)+"<html></html>"),od(this.referenceElement.ownerDocument,ir,or),sr.replaceChild(sr.adoptNode(this.documentElement),sr.documentElement),sr.close(),lr},DocumentCloner.prototype.createElementClone=function(er){if(Cu(er))return this.createCanvasClone(er);if(Nu(er))return this.createStyleClone(er);var tr=er.cloneNode(!1);return Bu(tr)&&"lazy"===tr.loading&&(tr.loading="eager"),tr},DocumentCloner.prototype.createStyleClone=function(er){try{var tr=er.sheet;if(tr&&tr.cssRules){var rr=[].slice.call(tr.cssRules,0).reduce((function(er,tr){return tr&&"string"==typeof tr.cssText?er+tr.cssText:er}),""),nr=er.cloneNode(!1);return nr.textContent=rr,nr}}catch(er){if(fs.getInstance(this.options.id).error("Unable to access cssRules property",er),"SecurityError"!==er.name)throw er}return er.cloneNode(!1)},DocumentCloner.prototype.createCanvasClone=function(er){if(this.options.inlineImages&&er.ownerDocument){var tr=er.ownerDocument.createElement("img");try{return tr.src=er.toDataURL(),tr}catch(er){fs.getInstance(this.options.id).info("Unable to clone canvas contents, canvas is tainted")}}var rr=er.cloneNode(!1);try{rr.width=er.width,rr.height=er.height;var nr=er.getContext("2d"),ir=rr.getContext("2d");return ir&&(nr?ir.putImageData(nr.getImageData(0,0,er.width,er.height),0,0):ir.drawImage(er,0,0)),rr}catch(er){}return rr},DocumentCloner.prototype.cloneNode=function(er){if(gu(er))return document.createTextNode(er.data);if(!er.ownerDocument)return er.cloneNode(!1);var tr=er.ownerDocument.defaultView;if(tr&&mu(er)&&(_u(er)||vu(er))){var rr=this.createElementClone(er),nr=tr.getComputedStyle(er),ir=tr.getComputedStyle(er,":before"),or=tr.getComputedStyle(er,":after");this.referenceElement===er&&_u(rr)&&(this.clonedReferenceElement=rr),ku(rr)&&hd(rr);for(var ar=this.counters.parse(new Pc(nr)),sr=this.resolvePseudoContent(er,rr,ir,bc.BEFORE),lr=er.firstChild;lr;lr=lr.nextSibling)mu(lr)&&(Lu(lr)||lr.hasAttribute($u)||"function"==typeof this.options.ignoreElements&&this.options.ignoreElements(lr))||this.options.copyStyles&&mu(lr)&&Nu(lr)||rr.appendChild(this.cloneNode(lr));sr&&rr.insertBefore(sr,rr.firstChild);var cr=this.resolvePseudoContent(er,rr,or,bc.AFTER);return cr&&rr.appendChild(cr),this.counters.pop(ar),nr&&(this.options.copyStyles||vu(er))&&!Eu(er)&&nd(nr,rr),0===er.scrollTop&&0===er.scrollLeft||this.scrolledElements.push([rr,er.scrollLeft,er.scrollTop]),(Tu(er)||Pu(er))&&(Tu(rr)||Pu(rr))&&(rr.value=er.value),rr}return er.cloneNode(!1)},DocumentCloner.prototype.resolvePseudoContent=function(er,tr,rr,nr){var ir=this;if(rr){var or=rr.content,ar=tr.ownerDocument;if(ar&&or&&"none"!==or&&"-moz-alt-content"!==or&&"none"!==rr.display){this.counters.parse(new Pc(rr));var sr=new Tc(rr),lr=ar.createElement("html2canvaspseudoelement");nd(rr,lr),sr.content.forEach((function(tr){if(tr.type===ur.STRING_TOKEN)lr.appendChild(ar.createTextNode(tr.value));else if(tr.type===ur.URL_TOKEN){var rr=ar.createElement("img");rr.src=tr.value,rr.style.opacity="1",lr.appendChild(rr)}else if(tr.type===ur.FUNCTION){if("attr"===tr.name){var nr=tr.values.filter(ha);nr.length&&lr.appendChild(ar.createTextNode(er.getAttribute(nr[0].value)||""))}else if("counter"===tr.name){var or=tr.values.filter(ga),cr=or[0],dr=or[1];if(cr&&ha(cr)){var hr=ir.counters.getCounterValue(cr.value),pr=dr&&ha(dr)?Il.parse(dr.value):Pl.DECIMAL;lr.appendChild(ar.createTextNode(Ju(hr,pr,!1)))}}else if("counters"===tr.name){var Ar=tr.values.filter(ga),fr=(cr=Ar[0],Ar[1]);if(dr=Ar[2],cr&&ha(cr)){var gr=ir.counters.getCounterValues(cr.value),mr=dr&&ha(dr)?Il.parse(dr.value):Pl.DECIMAL,_r=fr&&fr.type===ur.STRING_TOKEN?fr.value:"",vr=gr.map((function(er){return Ju(er,mr,!1)})).join(_r);lr.appendChild(ar.createTextNode(vr))}}}else if(tr.type===ur.IDENT_TOKEN)switch(tr.value){case"open-quote":lr.appendChild(ar.createTextNode(Ec(sr.quotes,ir.quoteDepth++,!0)));break;case"close-quote":lr.appendChild(ar.createTextNode(Ec(sr.quotes,--ir.quoteDepth,!1)));break;default:lr.appendChild(ar.createTextNode(tr.value))}})),lr.className=cd+" "+ud;var cr=nr===bc.BEFORE?" "+cd:" "+ud;return vu(tr)?tr.className.baseValue+=cr:tr.className+=cr,lr}}},DocumentCloner.destroy=function(er){return!!er.parentNode&&(er.parentNode.removeChild(er),!0)},DocumentCloner}();!function(er){er[er.BEFORE=0]="BEFORE",er[er.AFTER=1]="AFTER"}(bc||(bc={}));var ed,td=function createIFrameContainer(er,tr){var rr=er.createElement("iframe");return rr.className="html2canvas-container",rr.style.visibility="hidden",rr.style.position="fixed",rr.style.left="-10000px",rr.style.top="0px",rr.style.border="0",rr.width=tr.width.toString(),rr.height=tr.height.toString(),rr.scrolling="no",rr.setAttribute($u,"true"),er.body.appendChild(rr),rr},rd=function iframeLoader(er){return new Promise((function(tr,rr){var nr=er.contentWindow;if(!nr)return rr("No window assigned for iframe");var ir=nr.document;nr.onload=er.onload=ir.onreadystatechange=function(){nr.onload=er.onload=ir.onreadystatechange=null;var rr=setInterval((function(){ir.body.childNodes.length>0&&"complete"===ir.readyState&&(clearInterval(rr),tr(er))}),50)}}))},nd=function copyCSSStyles(er,tr){for(var rr=er.length-1;rr>=0;rr--){var nr=er.item(rr);"content"!==nr&&tr.style.setProperty(nr,er.getPropertyValue(nr))}return tr},id=function serializeDoctype(er){var tr="";return er&&(tr+="<!DOCTYPE ",er.name&&(tr+=er.name),er.internalSubset&&(tr+=er.internalSubset),er.publicId&&(tr+='"'+er.publicId+'"'),er.systemId&&(tr+='"'+er.systemId+'"'),tr+=">"),tr},od=function restoreOwnerScroll(er,tr,rr){er&&er.defaultView&&(tr!==er.defaultView.pageXOffset||rr!==er.defaultView.pageYOffset)&&er.defaultView.scrollTo(tr,rr)},ad=function restoreNodeScroll(er){var tr=er[0],rr=er[1],nr=er[2];tr.scrollLeft=rr,tr.scrollTop=nr},sd=":before",ld=":after",cd="___html2canvas___pseudoelement_before",ud="___html2canvas___pseudoelement_after",dd='{\n content: "" !important;\n display: none !important;\n}',hd=function createPseudoHideStyles(er){pd(er,"."+cd+sd+dd+"\n ."+ud+ld+dd)},pd=function createStyles(er,tr){var rr=er.ownerDocument;if(rr){var nr=rr.createElement("style");nr.textContent=tr,er.appendChild(nr)}};!function(er){er[er.VECTOR=0]="VECTOR",er[er.BEZIER_CURVE=1]="BEZIER_CURVE"}(ed||(ed={}));var Ad,fd=function equalPath(er,tr){return er.length===tr.length&&er.some((function(er,rr){return er===tr[rr]}))},gd=function transformPath(er,tr,rr,nr,ir){return er.map((function(er,or){switch(or){case 0:return er.add(tr,rr);case 1:return er.add(tr+nr,rr);case 2:return er.add(tr+nr,rr+ir);case 3:return er.add(tr,rr+ir)}return er}))},md=function(){function Vector(er,tr){this.type=ed.VECTOR,this.x=er,this.y=tr}return Vector.prototype.add=function(er,tr){return new Vector(this.x+er,this.y+tr)},Vector}(),_d=function lerp(er,tr,rr){return new md(er.x+(tr.x-er.x)*rr,er.y+(tr.y-er.y)*rr)},vd=function(){function BezierCurve(er,tr,rr,nr){this.type=ed.BEZIER_CURVE,this.start=er,this.startControl=tr,this.endControl=rr,this.end=nr}return BezierCurve.prototype.subdivide=function(er,tr){var rr=_d(this.start,this.startControl,er),nr=_d(this.startControl,this.endControl,er),ir=_d(this.endControl,this.end,er),or=_d(rr,nr,er),ar=_d(nr,ir,er),sr=_d(or,ar,er);return tr?new BezierCurve(this.start,rr,or,sr):new BezierCurve(sr,ar,ir,this.end)},BezierCurve.prototype.add=function(er,tr){return new BezierCurve(this.start.add(er,tr),this.startControl.add(er,tr),this.endControl.add(er,tr),this.end.add(er,tr))},BezierCurve.prototype.reverse=function(){return new BezierCurve(this.end,this.endControl,this.startControl,this.start)},BezierCurve}(),yd=function isBezierCurve(er){return er.type===ed.BEZIER_CURVE},bd=function(){function BoundCurves(er){var tr=er.styles,rr=er.bounds,nr=ka(tr.borderTopLeftRadius,rr.width,rr.height),ir=nr[0],or=nr[1],ar=ka(tr.borderTopRightRadius,rr.width,rr.height),sr=ar[0],lr=ar[1],cr=ka(tr.borderBottomRightRadius,rr.width,rr.height),ur=cr[0],dr=cr[1],hr=ka(tr.borderBottomLeftRadius,rr.width,rr.height),pr=hr[0],Ar=hr[1],fr=[];fr.push((ir+sr)/rr.width),fr.push((pr+ur)/rr.width),fr.push((or+Ar)/rr.height),fr.push((lr+dr)/rr.height);var gr=Math.max.apply(Math,fr);gr>1&&(ir/=gr,or/=gr,sr/=gr,lr/=gr,ur/=gr,dr/=gr,pr/=gr,Ar/=gr);var mr=rr.width-sr,_r=rr.height-dr,vr=rr.width-ur,yr=rr.height-Ar,br=tr.borderTopWidth,wr=tr.borderRightWidth,Sr=tr.borderBottomWidth,xr=tr.borderLeftWidth,kr=Ca(tr.paddingTop,er.bounds.width),Cr=Ca(tr.paddingRight,er.bounds.width),Br=Ca(tr.paddingBottom,er.bounds.width),Er=Ca(tr.paddingLeft,er.bounds.width);this.topLeftBorderBox=ir>0||or>0?wd(rr.left,rr.top,ir,or,Ad.TOP_LEFT):new md(rr.left,rr.top),this.topRightBorderBox=sr>0||lr>0?wd(rr.left+mr,rr.top,sr,lr,Ad.TOP_RIGHT):new md(rr.left+rr.width,rr.top),this.bottomRightBorderBox=ur>0||dr>0?wd(rr.left+vr,rr.top+_r,ur,dr,Ad.BOTTOM_RIGHT):new md(rr.left+rr.width,rr.top+rr.height),this.bottomLeftBorderBox=pr>0||Ar>0?wd(rr.left,rr.top+yr,pr,Ar,Ad.BOTTOM_LEFT):new md(rr.left,rr.top+rr.height),this.topLeftPaddingBox=ir>0||or>0?wd(rr.left+xr,rr.top+br,Math.max(0,ir-xr),Math.max(0,or-br),Ad.TOP_LEFT):new md(rr.left+xr,rr.top+br),this.topRightPaddingBox=sr>0||lr>0?wd(rr.left+Math.min(mr,rr.width+xr),rr.top+br,mr>rr.width+xr?0:sr-xr,lr-br,Ad.TOP_RIGHT):new md(rr.left+rr.width-wr,rr.top+br),this.bottomRightPaddingBox=ur>0||dr>0?wd(rr.left+Math.min(vr,rr.width-xr),rr.top+Math.min(_r,rr.height+br),Math.max(0,ur-wr),dr-Sr,Ad.BOTTOM_RIGHT):new md(rr.left+rr.width-wr,rr.top+rr.height-Sr),this.bottomLeftPaddingBox=pr>0||Ar>0?wd(rr.left+xr,rr.top+yr,Math.max(0,pr-xr),Ar-Sr,Ad.BOTTOM_LEFT):new md(rr.left+xr,rr.top+rr.height-Sr),this.topLeftContentBox=ir>0||or>0?wd(rr.left+xr+Er,rr.top+br+kr,Math.max(0,ir-(xr+Er)),Math.max(0,or-(br+kr)),Ad.TOP_LEFT):new md(rr.left+xr+Er,rr.top+br+kr),this.topRightContentBox=sr>0||lr>0?wd(rr.left+Math.min(mr,rr.width+xr+Er),rr.top+br+kr,mr>rr.width+xr+Er?0:sr-xr+Er,lr-(br+kr),Ad.TOP_RIGHT):new md(rr.left+rr.width-(wr+Cr),rr.top+br+kr),this.bottomRightContentBox=ur>0||dr>0?wd(rr.left+Math.min(vr,rr.width-(xr+Er)),rr.top+Math.min(_r,rr.height+br+kr),Math.max(0,ur-(wr+Cr)),dr-(Sr+Br),Ad.BOTTOM_RIGHT):new md(rr.left+rr.width-(wr+Cr),rr.top+rr.height-(Sr+Br)),this.bottomLeftContentBox=pr>0||Ar>0?wd(rr.left+xr+Er,rr.top+yr,Math.max(0,pr-(xr+Er)),Ar-(Sr+Br),Ad.BOTTOM_LEFT):new md(rr.left+xr+Er,rr.top+rr.height-(Sr+Br))}return BoundCurves}();!function(er){er[er.TOP_LEFT=0]="TOP_LEFT",er[er.TOP_RIGHT=1]="TOP_RIGHT",er[er.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",er[er.BOTTOM_LEFT=3]="BOTTOM_LEFT"}(Ad||(Ad={}));var wd=function getCurvePoints(er,tr,rr,nr,ir){var or=(Math.sqrt(2)-1)/3*4,ar=rr*or,sr=nr*or,lr=er+rr,cr=tr+nr;switch(ir){case Ad.TOP_LEFT:return new vd(new md(er,cr),new md(er,cr-sr),new md(lr-ar,tr),new md(lr,tr));case Ad.TOP_RIGHT:return new vd(new md(er,tr),new md(er+ar,tr),new md(lr,cr-sr),new md(lr,cr));case Ad.BOTTOM_RIGHT:return new vd(new md(lr,tr),new md(lr,tr+sr),new md(er+ar,cr),new md(er,cr));case Ad.BOTTOM_LEFT:default:return new vd(new md(lr,cr),new md(lr-ar,cr),new md(er,tr+sr),new md(er,tr))}},Sd=function calculateBorderBoxPath(er){return[er.topLeftBorderBox,er.topRightBorderBox,er.bottomRightBorderBox,er.bottomLeftBorderBox]},xd=function calculateContentBoxPath(er){return[er.topLeftContentBox,er.topRightContentBox,er.bottomRightContentBox,er.bottomLeftContentBox]},kd=function calculatePaddingBoxPath(er){return[er.topLeftPaddingBox,er.topRightPaddingBox,er.bottomRightPaddingBox,er.bottomLeftPaddingBox]},Cd=function(){function TransformEffect(er,tr,rr){this.type=0,this.offsetX=er,this.offsetY=tr,this.matrix=rr,this.target=6}return TransformEffect}(),Bd=function(){function ClipEffect(er,tr){this.type=1,this.target=tr,this.path=er}return ClipEffect}(),Ed=function isTransformEffect(er){return 0===er.type},Nd=function isClipEffect(er){return 1===er.type},Ld=function(){function StackingContext(er){this.element=er,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return StackingContext}(),Td=function(){function ElementPaint(er,tr){if(this.container=er,this.effects=tr.slice(0),this.curves=new bd(er),null!==er.styles.transform){var rr=er.bounds.left+er.styles.transformOrigin[0].number,nr=er.bounds.top+er.styles.transformOrigin[1].number,ir=er.styles.transform;this.effects.push(new Cd(rr,nr,ir))}if(er.styles.overflowX!==Ul.VISIBLE){var or=Sd(this.curves),ar=kd(this.curves);fd(or,ar)?this.effects.push(new Bd(or,6)):(this.effects.push(new Bd(or,2)),this.effects.push(new Bd(ar,4)))}}return ElementPaint.prototype.getParentEffects=function(){var er=this.effects.slice(0);if(this.container.styles.overflowX!==Ul.VISIBLE){var tr=Sd(this.curves),rr=kd(this.curves);fd(tr,rr)||er.push(new Bd(rr,6))}return er},ElementPaint}(),Pd=function parseStackTree(er,tr,rr,nr){er.container.elements.forEach((function(ir){var or=Sc(ir.flags,4),ar=Sc(ir.flags,2),sr=new Td(ir,er.getParentEffects());Sc(ir.styles.display,2048)&&nr.push(sr);var lr=Sc(ir.flags,8)?[]:nr;if(or||ar){var cr=or||ir.styles.isPositioned()?rr:tr,ur=new Ld(sr);if(ir.styles.isPositioned()||ir.styles.opacity<1||ir.styles.isTransformed()){var dr=ir.styles.zIndex.order;if(dr<0){var hr=0;cr.negativeZIndex.some((function(er,tr){return dr>er.element.container.styles.zIndex.order?(hr=tr,!1):hr>0})),cr.negativeZIndex.splice(hr,0,ur)}else if(dr>0){var pr=0;cr.positiveZIndex.some((function(er,tr){return dr>=er.element.container.styles.zIndex.order?(pr=tr+1,!1):pr>0})),cr.positiveZIndex.splice(pr,0,ur)}else cr.zeroOrAutoZIndexOrTransformedOrOpacity.push(ur)}else ir.styles.isFloating()?cr.nonPositionedFloats.push(ur):cr.nonPositionedInlineLevel.push(ur);parseStackTree(sr,ur,or?ur:rr,lr)}else ir.styles.isInlineLevel()?tr.inlineLevel.push(sr):tr.nonInlineLevel.push(sr),parseStackTree(sr,tr,rr,lr);Sc(ir.flags,8)&&Fd(ir,lr)}))},Fd=function processListItems(er,tr){for(var rr=er instanceof Xc?er.start:1,nr=er instanceof Xc&&er.reversed,ir=0;ir<tr.length;ir++){var or=tr[ir];or.container instanceof Wc&&"number"==typeof or.container.value&&0!==or.container.value&&(rr=or.container.value),or.listValue=Ju(rr,or.container.styles.listStyleType,!0),rr+=nr?-1:1}},Ud=function parseStackingContexts(er){var tr=new Td(er,[]),rr=new Ld(tr),nr=[];return Pd(tr,rr,rr,nr),Fd(tr.container,nr),rr},Id=function parsePathForBorder(er,tr){switch(tr){case 0:return Rd(er.topLeftBorderBox,er.topLeftPaddingBox,er.topRightBorderBox,er.topRightPaddingBox);case 1:return Rd(er.topRightBorderBox,er.topRightPaddingBox,er.bottomRightBorderBox,er.bottomRightPaddingBox);case 2:return Rd(er.bottomRightBorderBox,er.bottomRightPaddingBox,er.bottomLeftBorderBox,er.bottomLeftPaddingBox);case 3:default:return Rd(er.bottomLeftBorderBox,er.bottomLeftPaddingBox,er.topLeftBorderBox,er.topLeftPaddingBox)}},Rd=function createPathFromCurves(er,tr,rr,nr){var ir=[];return yd(er)?ir.push(er.subdivide(.5,!1)):ir.push(er),yd(rr)?ir.push(rr.subdivide(.5,!0)):ir.push(rr),yd(nr)?ir.push(nr.subdivide(.5,!0).reverse()):ir.push(nr),yd(tr)?ir.push(tr.subdivide(.5,!1).reverse()):ir.push(tr),ir},Md=function paddingBox(er){var tr=er.bounds,rr=er.styles;return tr.add(rr.borderLeftWidth,rr.borderTopWidth,-(rr.borderRightWidth+rr.borderLeftWidth),-(rr.borderTopWidth+rr.borderBottomWidth))},Od=function contentBox(er){var tr=er.styles,rr=er.bounds,nr=Ca(tr.paddingLeft,rr.width),ir=Ca(tr.paddingRight,rr.width),or=Ca(tr.paddingTop,rr.width),ar=Ca(tr.paddingBottom,rr.width);return rr.add(nr+tr.borderLeftWidth,or+tr.borderTopWidth,-(tr.borderRightWidth+tr.borderLeftWidth+nr+ir),-(tr.borderTopWidth+tr.borderBottomWidth+or+ar))},Qd=function calculateBackgroundPositioningArea(er,tr){return 0===er?tr.bounds:2===er?Od(tr):Md(tr)},Dd=function calculateBackgroundPaintingArea(er,tr){return er===Ha.BORDER_BOX?tr.bounds:er===Ha.CONTENT_BOX?Od(tr):Md(tr)},jd=function calculateBackgroundRendering(er,tr,rr){var nr=Qd(zd(er.styles.backgroundOrigin,tr),er),ir=Dd(zd(er.styles.backgroundClip,tr),er),or=Vd(zd(er.styles.backgroundSize,tr),rr,nr),ar=or[0],sr=or[1],lr=ka(zd(er.styles.backgroundPosition,tr),nr.width-ar,nr.height-sr);return[Kd(zd(er.styles.backgroundRepeat,tr),lr,or,nr,ir),Math.round(nr.left+lr[0]),Math.round(nr.top+lr[1]),ar,sr]},Hd=function isAuto(er){return ha(er)&&er.value===qs.AUTO},Gd=function hasIntrinsicValue(er){return"number"==typeof er},Vd=function calculateBackgroundSize(er,tr,rr){var nr=tr[0],ir=tr[1],or=tr[2],ar=er[0],sr=er[1];if(ya(ar)&&sr&&ya(sr))return[Ca(ar,rr.width),Ca(sr,rr.height)];var lr=Gd(or);if(ha(ar)&&(ar.value===qs.CONTAIN||ar.value===qs.COVER))return Gd(or)?rr.width/rr.height<or!=(ar.value===qs.COVER)?[rr.width,rr.width/or]:[rr.height*or,rr.height]:[rr.width,rr.height];var cr=Gd(nr),ur=Gd(ir),dr=cr||ur;if(Hd(ar)&&(!sr||Hd(sr)))return cr&&ur?[nr,ir]:lr||dr?dr&&lr?[cr?nr:ir*or,ur?ir:nr/or]:[cr?nr:rr.width,ur?ir:rr.height]:[rr.width,rr.height];if(lr){var hr=0,pr=0;return ya(ar)?hr=Ca(ar,rr.width):ya(sr)&&(pr=Ca(sr,rr.height)),Hd(ar)?hr=pr*or:sr&&!Hd(sr)||(pr=hr/or),[hr,pr]}var Ar=null,fr=null;if(ya(ar)?Ar=Ca(ar,rr.width):sr&&ya(sr)&&(fr=Ca(sr,rr.height)),null===Ar||sr&&!Hd(sr)||(fr=cr&&ur?Ar/nr*ir:rr.height),null!==fr&&Hd(ar)&&(Ar=cr&&ur?fr/ir*nr:rr.width),null!==Ar&&null!==fr)return[Ar,fr];throw new Error("Unable to calculate background-size for element")},zd=function getBackgroundValueForIndex(er,tr){var rr=er[tr];return void 0===rr?er[0]:rr},Kd=function calculateBackgroundRepeatPath(er,tr,rr,nr,ir){var or=tr[0],ar=tr[1],sr=rr[0],lr=rr[1];switch(er){case Hs.REPEAT_X:return[new md(Math.round(nr.left),Math.round(nr.top+ar)),new md(Math.round(nr.left+nr.width),Math.round(nr.top+ar)),new md(Math.round(nr.left+nr.width),Math.round(lr+nr.top+ar)),new md(Math.round(nr.left),Math.round(lr+nr.top+ar))];case Hs.REPEAT_Y:return[new md(Math.round(nr.left+or),Math.round(nr.top)),new md(Math.round(nr.left+or+sr),Math.round(nr.top)),new md(Math.round(nr.left+or+sr),Math.round(nr.height+nr.top)),new md(Math.round(nr.left+or),Math.round(nr.height+nr.top))];case Hs.NO_REPEAT:return[new md(Math.round(nr.left+or),Math.round(nr.top+ar)),new md(Math.round(nr.left+or+sr),Math.round(nr.top+ar)),new md(Math.round(nr.left+or+sr),Math.round(nr.top+ar+lr)),new md(Math.round(nr.left+or),Math.round(nr.top+ar+lr))];default:return[new md(Math.round(ir.left),Math.round(ir.top)),new md(Math.round(ir.left+ir.width),Math.round(ir.top)),new md(Math.round(ir.left+ir.width),Math.round(ir.height+ir.top)),new md(Math.round(ir.left),Math.round(ir.height+ir.top))]}},qd="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Wd="Hidden Text",Xd=function(){function FontMetrics(er){this._data={},this._document=er}return FontMetrics.prototype.parseMetrics=function(er,tr){var rr=this._document.createElement("div"),nr=this._document.createElement("img"),ir=this._document.createElement("span"),or=this._document.body;rr.style.visibility="hidden",rr.style.fontFamily=er,rr.style.fontSize=tr,rr.style.margin="0",rr.style.padding="0",or.appendChild(rr),nr.src=qd,nr.width=1,nr.height=1,nr.style.margin="0",nr.style.padding="0",nr.style.verticalAlign="baseline",ir.style.fontFamily=er,ir.style.fontSize=tr,ir.style.margin="0",ir.style.padding="0",ir.appendChild(this._document.createTextNode(Wd)),rr.appendChild(ir),rr.appendChild(nr);var ar=nr.offsetTop-ir.offsetTop+2;rr.removeChild(ir),rr.appendChild(this._document.createTextNode(Wd)),rr.style.lineHeight="normal",nr.style.verticalAlign="super";var sr=nr.offsetTop-rr.offsetTop+2;return or.removeChild(rr),{baseline:ar,middle:sr}},FontMetrics.prototype.getMetrics=function(er,tr){var rr=er+" "+tr;return void 0===this._data[rr]&&(this._data[rr]=this.parseMetrics(er,tr)),this._data[rr]},FontMetrics}(),Yd=1e4,Jd=function(){function CanvasRenderer(er){this._activeEffects=[],this.canvas=er.canvas?er.canvas:document.createElement("canvas"),this.ctx=this.canvas.getContext("2d"),this.options=er,er.canvas||(this.canvas.width=Math.floor(er.width*er.scale),this.canvas.height=Math.floor(er.height*er.scale),this.canvas.style.width=er.width+"px",this.canvas.style.height=er.height+"px"),this.fontMetrics=new Xd(document),this.ctx.scale(this.options.scale,this.options.scale),this.ctx.translate(-er.x+er.scrollX,-er.y+er.scrollY),this.ctx.textBaseline="bottom",this._activeEffects=[],fs.getInstance(er.id).debug("Canvas renderer initialized ("+er.width+"x"+er.height+" at "+er.x+","+er.y+") with scale "+er.scale)}return CanvasRenderer.prototype.applyEffects=function(er,tr){for(var rr=this;this._activeEffects.length;)this.popEffect();er.filter((function(er){return Sc(er.target,tr)})).forEach((function(er){return rr.applyEffect(er)}))},CanvasRenderer.prototype.applyEffect=function(er){this.ctx.save(),Ed(er)&&(this.ctx.translate(er.offsetX,er.offsetY),this.ctx.transform(er.matrix[0],er.matrix[1],er.matrix[2],er.matrix[3],er.matrix[4],er.matrix[5]),this.ctx.translate(-er.offsetX,-er.offsetY)),Nd(er)&&(this.path(er.path),this.ctx.clip()),this._activeEffects.push(er)},CanvasRenderer.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},CanvasRenderer.prototype.renderStack=function(er){return __awaiter(this,void 0,void 0,(function(){var tr;return __generator(this,(function(rr){switch(rr.label){case 0:return(tr=er.element.container.styles).isVisible()?(this.ctx.globalAlpha=tr.opacity,[4,this.renderStackContent(er)]):[3,2];case 1:rr.sent(),rr.label=2;case 2:return[2]}}))}))},CanvasRenderer.prototype.renderNode=function(er){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(tr){switch(tr.label){case 0:return er.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(er)]:[3,3];case 1:return tr.sent(),[4,this.renderNodeContent(er)];case 2:tr.sent(),tr.label=3;case 3:return[2]}}))}))},CanvasRenderer.prototype.renderTextWithLetterSpacing=function(er,tr){var rr=this;0===tr?this.ctx.fillText(er.text,er.bounds.left,er.bounds.top+er.bounds.height):or(er.text).map((function(er){return ar(er)})).reduce((function(tr,nr){return rr.ctx.fillText(nr,tr,er.bounds.top+er.bounds.height),tr+rr.ctx.measureText(nr).width}),er.bounds.left)},CanvasRenderer.prototype.createFontStyle=function(er){var tr=er.fontVariant.filter((function(er){return"normal"===er||"small-caps"===er})).join(""),rr=er.fontFamily.join(", "),nr=ua(er.fontSize)?""+er.fontSize.number+er.fontSize.unit:er.fontSize.number+"px";return[[er.fontStyle,tr,er.fontWeight,nr,rr].join(" "),rr,nr]},CanvasRenderer.prototype.renderTextNode=function(er,tr){return __awaiter(this,void 0,void 0,(function(){var rr,nr,ir,or,ar=this;return __generator(this,(function(sr){return rr=this.createFontStyle(tr),nr=rr[0],ir=rr[1],or=rr[2],this.ctx.font=nr,er.textBounds.forEach((function(er){ar.ctx.fillStyle=Ma(tr.color),ar.renderTextWithLetterSpacing(er,tr.letterSpacing);var rr=tr.textShadow;rr.length&&er.text.trim().length&&(rr.slice(0).reverse().forEach((function(tr){ar.ctx.shadowColor=Ma(tr.color),ar.ctx.shadowOffsetX=tr.offsetX.number*ar.options.scale,ar.ctx.shadowOffsetY=tr.offsetY.number*ar.options.scale,ar.ctx.shadowBlur=tr.blur.number,ar.ctx.fillText(er.text,er.bounds.left,er.bounds.top+er.bounds.height)})),ar.ctx.shadowColor="",ar.ctx.shadowOffsetX=0,ar.ctx.shadowOffsetY=0,ar.ctx.shadowBlur=0),tr.textDecorationLine.length&&(ar.ctx.fillStyle=Ma(tr.textDecorationColor||tr.color),tr.textDecorationLine.forEach((function(tr){switch(tr){case 1:var rr=ar.fontMetrics.getMetrics(ir,or).baseline;ar.ctx.fillRect(er.bounds.left,Math.round(er.bounds.top+rr),er.bounds.width,1);break;case 2:ar.ctx.fillRect(er.bounds.left,Math.round(er.bounds.top),er.bounds.width,1);break;case 3:var nr=ar.fontMetrics.getMetrics(ir,or).middle;ar.ctx.fillRect(er.bounds.left,Math.ceil(er.bounds.top+nr),er.bounds.width,1)}})))})),[2]}))}))},CanvasRenderer.prototype.renderReplacedElement=function(er,tr,rr){if(rr&&er.intrinsicWidth>0&&er.intrinsicHeight>0){var nr=Od(er),ir=kd(tr);this.path(ir),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(rr,0,0,er.intrinsicWidth,er.intrinsicHeight,nr.left,nr.top,nr.width,nr.height),this.ctx.restore()}},CanvasRenderer.prototype.renderNodeContent=function(er){return __awaiter(this,void 0,void 0,(function(){var tr,nr,ir,or,ar,sr,lr,cr,ur,dr,hr,pr,Ar,fr;return __generator(this,(function(gr){switch(gr.label){case 0:this.applyEffects(er.effects,4),tr=er.container,nr=er.curves,ir=tr.styles,or=0,ar=tr.textNodes,gr.label=1;case 1:return or<ar.length?(sr=ar[or],[4,this.renderTextNode(sr,ir)]):[3,4];case 2:gr.sent(),gr.label=3;case 3:return or++,[3,1];case 4:if(!(tr instanceof zc))return[3,8];gr.label=5;case 5:return gr.trys.push([5,7,,8]),[4,this.options.cache.match(tr.src)];case 6:return pr=gr.sent(),this.renderReplacedElement(tr,nr,pr),[3,8];case 7:return gr.sent(),fs.getInstance(this.options.id).error("Error loading image "+tr.src),[3,8];case 8:if(tr instanceof Kc&&this.renderReplacedElement(tr,nr,tr.canvas),!(tr instanceof qc))return[3,12];gr.label=9;case 9:return gr.trys.push([9,11,,12]),[4,this.options.cache.match(tr.svg)];case 10:return pr=gr.sent(),this.renderReplacedElement(tr,nr,pr),[3,12];case 11:return gr.sent(),fs.getInstance(this.options.id).error("Error loading svg "+tr.svg.substring(0,255)),[3,12];case 12:return tr instanceof lu&&tr.tree?[4,new CanvasRenderer({id:this.options.id,scale:this.options.scale,backgroundColor:tr.backgroundColor,x:0,y:0,scrollX:0,scrollY:0,width:tr.width,height:tr.height,cache:this.options.cache,windowWidth:tr.width,windowHeight:tr.height}).render(tr.tree)]:[3,14];case 13:lr=gr.sent(),tr.width&&tr.height&&this.ctx.drawImage(lr,0,0,tr.width,tr.height,tr.bounds.left,tr.bounds.top,tr.bounds.width,tr.bounds.height),gr.label=14;case 14:if(tr instanceof iu&&(cr=Math.min(tr.bounds.width,tr.bounds.height),tr.type===eu?tr.checked&&(this.ctx.save(),this.path([new md(tr.bounds.left+.39363*cr,tr.bounds.top+.79*cr),new md(tr.bounds.left+.16*cr,tr.bounds.top+.5549*cr),new md(tr.bounds.left+.27347*cr,tr.bounds.top+.44071*cr),new md(tr.bounds.left+.39694*cr,tr.bounds.top+.5649*cr),new md(tr.bounds.left+.72983*cr,tr.bounds.top+.23*cr),new md(tr.bounds.left+.84*cr,tr.bounds.top+.34085*cr),new md(tr.bounds.left+.39363*cr,tr.bounds.top+.79*cr)]),this.ctx.fillStyle=Ma(nu),this.ctx.fill(),this.ctx.restore()):tr.type===tu&&tr.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(tr.bounds.left+cr/2,tr.bounds.top+cr/2,cr/4,0,2*Math.PI,!0),this.ctx.fillStyle=Ma(nu),this.ctx.fill(),this.ctx.restore())),$d(tr)&&tr.value.length){switch(this.ctx.font=this.createFontStyle(ir)[0],this.ctx.fillStyle=Ma(ir.color),this.ctx.textBaseline="middle",this.ctx.textAlign=eh(tr.styles.textAlign),fr=Od(tr),ur=0,tr.styles.textAlign){case Gl.CENTER:ur+=fr.width/2;break;case Gl.RIGHT:ur+=fr.width}dr=fr.add(ur,0,0,-fr.height/2+1),this.ctx.save(),this.path([new md(fr.left,fr.top),new md(fr.left+fr.width,fr.top),new md(fr.left+fr.width,fr.top+fr.height),new md(fr.left,fr.top+fr.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Ic(tr.value,dr),ir.letterSpacing),this.ctx.restore(),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"}if(!Sc(tr.styles.display,2048))return[3,20];if(null===tr.styles.listStyleImage)return[3,19];if((hr=tr.styles.listStyleImage).type!==Ka.URL)return[3,18];pr=void 0,Ar=hr.url,gr.label=15;case 15:return gr.trys.push([15,17,,18]),[4,this.options.cache.match(Ar)];case 16:return pr=gr.sent(),this.ctx.drawImage(pr,tr.bounds.left-(pr.width+10),tr.bounds.top),[3,18];case 17:return gr.sent(),fs.getInstance(this.options.id).error("Error loading list-style-image "+Ar),[3,18];case 18:return[3,20];case 19:er.listValue&&tr.styles.listStyleType!==Pl.NONE&&(this.ctx.font=this.createFontStyle(ir)[0],this.ctx.fillStyle=Ma(ir.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",fr=new rr(tr.bounds.left,tr.bounds.top+Ca(tr.styles.paddingTop,tr.bounds.width),tr.bounds.width,Ll(ir.lineHeight,ir.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Ic(er.listValue,fr),ir.letterSpacing),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),gr.label=20;case 20:return[2]}}))}))},CanvasRenderer.prototype.renderStackContent=function(er){return __awaiter(this,void 0,void 0,(function(){var tr,rr,nr,ir,or,ar,sr,lr,cr,ur,dr,hr,pr,Ar,fr;return __generator(this,(function(gr){switch(gr.label){case 0:return[4,this.renderNodeBackgroundAndBorders(er.element)];case 1:gr.sent(),tr=0,rr=er.negativeZIndex,gr.label=2;case 2:return tr<rr.length?(fr=rr[tr],[4,this.renderStack(fr)]):[3,5];case 3:gr.sent(),gr.label=4;case 4:return tr++,[3,2];case 5:return[4,this.renderNodeContent(er.element)];case 6:gr.sent(),nr=0,ir=er.nonInlineLevel,gr.label=7;case 7:return nr<ir.length?(fr=ir[nr],[4,this.renderNode(fr)]):[3,10];case 8:gr.sent(),gr.label=9;case 9:return nr++,[3,7];case 10:or=0,ar=er.nonPositionedFloats,gr.label=11;case 11:return or<ar.length?(fr=ar[or],[4,this.renderStack(fr)]):[3,14];case 12:gr.sent(),gr.label=13;case 13:return or++,[3,11];case 14:sr=0,lr=er.nonPositionedInlineLevel,gr.label=15;case 15:return sr<lr.length?(fr=lr[sr],[4,this.renderStack(fr)]):[3,18];case 16:gr.sent(),gr.label=17;case 17:return sr++,[3,15];case 18:cr=0,ur=er.inlineLevel,gr.label=19;case 19:return cr<ur.length?(fr=ur[cr],[4,this.renderNode(fr)]):[3,22];case 20:gr.sent(),gr.label=21;case 21:return cr++,[3,19];case 22:dr=0,hr=er.zeroOrAutoZIndexOrTransformedOrOpacity,gr.label=23;case 23:return dr<hr.length?(fr=hr[dr],[4,this.renderStack(fr)]):[3,26];case 24:gr.sent(),gr.label=25;case 25:return dr++,[3,23];case 26:pr=0,Ar=er.positiveZIndex,gr.label=27;case 27:return pr<Ar.length?(fr=Ar[pr],[4,this.renderStack(fr)]):[3,30];case 28:gr.sent(),gr.label=29;case 29:return pr++,[3,27];case 30:return[2]}}))}))},CanvasRenderer.prototype.mask=function(er){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(er.slice(0).reverse()),this.ctx.closePath()},CanvasRenderer.prototype.path=function(er){this.ctx.beginPath(),this.formatPath(er),this.ctx.closePath()},CanvasRenderer.prototype.formatPath=function(er){var tr=this;er.forEach((function(er,rr){var nr=yd(er)?er.start:er;0===rr?tr.ctx.moveTo(nr.x,nr.y):tr.ctx.lineTo(nr.x,nr.y),yd(er)&&tr.ctx.bezierCurveTo(er.startControl.x,er.startControl.y,er.endControl.x,er.endControl.y,er.end.x,er.end.y)}))},CanvasRenderer.prototype.renderRepeat=function(er,tr,rr,nr){this.path(er),this.ctx.fillStyle=tr,this.ctx.translate(rr,nr),this.ctx.fill(),this.ctx.translate(-rr,-nr)},CanvasRenderer.prototype.resizeImage=function(er,tr,rr){if(er.width===tr&&er.height===rr)return er;var nr=this.canvas.ownerDocument.createElement("canvas");return nr.width=tr,nr.height=rr,nr.getContext("2d").drawImage(er,0,0,er.width,er.height,0,0,tr,rr),nr},CanvasRenderer.prototype.renderBackgroundImage=function(er){return __awaiter(this,void 0,void 0,(function(){var tr,rr,nr,ir,or,ar;return __generator(this,(function(sr){switch(sr.label){case 0:tr=er.styles.backgroundImage.length-1,rr=function _loop_1(rr){var ir,or,ar,sr,lr,cr,ur,dr,hr,pr,Ar,fr,gr,mr,_r,vr,yr,br,wr,Sr,xr,kr,Cr,Br,Er,Nr,Lr,Tr,Pr,Fr,Ur;return __generator(this,(function(Ir){switch(Ir.label){case 0:if(rr.type!==Ka.URL)return[3,5];ir=void 0,or=rr.url,Ir.label=1;case 1:return Ir.trys.push([1,3,,4]),[4,nr.options.cache.match(or)];case 2:return ir=Ir.sent(),[3,4];case 3:return Ir.sent(),fs.getInstance(nr.options.id).error("Error loading background-image "+or),[3,4];case 4:return ir&&(ar=jd(er,tr,[ir.width,ir.height,ir.width/ir.height]),vr=ar[0],kr=ar[1],Cr=ar[2],wr=ar[3],Sr=ar[4],mr=nr.ctx.createPattern(nr.resizeImage(ir,wr,Sr),"repeat"),nr.renderRepeat(vr,mr,kr,Cr)),[3,6];case 5:Qs(rr)?(sr=jd(er,tr,[null,null,null]),vr=sr[0],kr=sr[1],Cr=sr[2],wr=sr[3],Sr=sr[4],lr=$a(rr.angle,wr,Sr),cr=lr[0],ur=lr[1],dr=lr[2],hr=lr[3],pr=lr[4],(Ar=document.createElement("canvas")).width=wr,Ar.height=Sr,fr=Ar.getContext("2d"),gr=fr.createLinearGradient(ur,hr,dr,pr),Ya(rr.stops,cr).forEach((function(er){return gr.addColorStop(er.stop,Ma(er.color))})),fr.fillStyle=gr,fr.fillRect(0,0,wr,Sr),wr>0&&Sr>0&&(mr=nr.ctx.createPattern(Ar,"repeat"),nr.renderRepeat(vr,mr,kr,Cr))):Ds(rr)&&(_r=jd(er,tr,[null,null,null]),vr=_r[0],yr=_r[1],br=_r[2],wr=_r[3],Sr=_r[4],xr=0===rr.position.length?[Sa]:rr.position,kr=Ca(xr[0],wr),Cr=Ca(xr[xr.length-1],Sr),Br=ts(rr,kr,Cr,wr,Sr),Er=Br[0],Nr=Br[1],Er>0&&Er>0&&(Lr=nr.ctx.createRadialGradient(yr+kr,br+Cr,0,yr+kr,br+Cr,Er),Ya(rr.stops,2*Er).forEach((function(er){return Lr.addColorStop(er.stop,Ma(er.color))})),nr.path(vr),nr.ctx.fillStyle=Lr,Er!==Nr?(Tr=er.bounds.left+.5*er.bounds.width,Pr=er.bounds.top+.5*er.bounds.height,Ur=1/(Fr=Nr/Er),nr.ctx.save(),nr.ctx.translate(Tr,Pr),nr.ctx.transform(1,0,0,Fr,0,0),nr.ctx.translate(-Tr,-Pr),nr.ctx.fillRect(yr,Ur*(br-Pr)+Pr,wr,Sr*Ur),nr.ctx.restore()):nr.ctx.fill())),Ir.label=6;case 6:return tr--,[2]}}))},nr=this,ir=0,or=er.styles.backgroundImage.slice(0).reverse(),sr.label=1;case 1:return ir<or.length?(ar=or[ir],[5,rr(ar)]):[3,4];case 2:sr.sent(),sr.label=3;case 3:return ir++,[3,1];case 4:return[2]}}))}))},CanvasRenderer.prototype.renderBorder=function(er,tr,rr){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(nr){return this.path(Id(rr,tr)),this.ctx.fillStyle=Ma(er),this.ctx.fill(),[2]}))}))},CanvasRenderer.prototype.renderNodeBackgroundAndBorders=function(er){return __awaiter(this,void 0,void 0,(function(){var tr,rr,nr,ir,or,ar,sr,lr,cr=this;return __generator(this,(function(ur){switch(ur.label){case 0:return this.applyEffects(er.effects,2),tr=er.container.styles,rr=!Ra(tr.backgroundColor)||tr.backgroundImage.length,nr=[{style:tr.borderTopStyle,color:tr.borderTopColor},{style:tr.borderRightStyle,color:tr.borderRightColor},{style:tr.borderBottomStyle,color:tr.borderBottomColor},{style:tr.borderLeftStyle,color:tr.borderLeftColor}],ir=Zd(zd(tr.backgroundClip,0),er.curves),rr||tr.boxShadow.length?(this.ctx.save(),this.path(ir),this.ctx.clip(),Ra(tr.backgroundColor)||(this.ctx.fillStyle=Ma(tr.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(er.container)]):[3,2];case 1:ur.sent(),this.ctx.restore(),tr.boxShadow.slice(0).reverse().forEach((function(tr){cr.ctx.save();var rr=Sd(er.curves),nr=tr.inset?0:Yd,ir=gd(rr,-nr+(tr.inset?1:-1)*tr.spread.number,(tr.inset?1:-1)*tr.spread.number,tr.spread.number*(tr.inset?-2:2),tr.spread.number*(tr.inset?-2:2));tr.inset?(cr.path(rr),cr.ctx.clip(),cr.mask(ir)):(cr.mask(rr),cr.ctx.clip(),cr.path(ir)),cr.ctx.shadowOffsetX=tr.offsetX.number+nr,cr.ctx.shadowOffsetY=tr.offsetY.number,cr.ctx.shadowColor=Ma(tr.color),cr.ctx.shadowBlur=tr.blur.number,cr.ctx.fillStyle=tr.inset?Ma(tr.color):"rgba(0,0,0,1)",cr.ctx.fill(),cr.ctx.restore()})),ur.label=2;case 2:or=0,ar=0,sr=nr,ur.label=3;case 3:return ar<sr.length?(lr=sr[ar]).style===Ys.NONE||Ra(lr.color)?[3,5]:[4,this.renderBorder(lr.color,or,er.curves)]:[3,7];case 4:ur.sent(),ur.label=5;case 5:or++,ur.label=6;case 6:return ar++,[3,3];case 7:return[2]}}))}))},CanvasRenderer.prototype.render=function(er){return __awaiter(this,void 0,void 0,(function(){var tr;return __generator(this,(function(rr){switch(rr.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=Ma(this.options.backgroundColor),this.ctx.fillRect(this.options.x-this.options.scrollX,this.options.y-this.options.scrollY,this.options.width,this.options.height)),tr=Ud(er),[4,this.renderStack(tr)];case 1:return rr.sent(),this.applyEffects([],2),[2,this.canvas]}}))}))},CanvasRenderer}(),$d=function isTextInputElement(er){return er instanceof au||er instanceof ou||er instanceof iu&&er.type!==tu&&er.type!==eu},Zd=function calculateBackgroundCurvedPaintingArea(er,tr){switch(er){case Ha.BORDER_BOX:return Sd(tr);case Ha.CONTENT_BOX:return xd(tr);case Ha.PADDING_BOX:default:return kd(tr)}},eh=function canvasTextAlign(er){switch(er){case Gl.CENTER:return"center";case Gl.RIGHT:return"right";case Gl.LEFT:default:return"left"}},th=function(){function ForeignObjectRenderer(er){this.canvas=er.canvas?er.canvas:document.createElement("canvas"),this.ctx=this.canvas.getContext("2d"),this.options=er,this.canvas.width=Math.floor(er.width*er.scale),this.canvas.height=Math.floor(er.height*er.scale),this.canvas.style.width=er.width+"px",this.canvas.style.height=er.height+"px",this.ctx.scale(this.options.scale,this.options.scale),this.ctx.translate(-er.x+er.scrollX,-er.y+er.scrollY),fs.getInstance(er.id).debug("EXPERIMENTAL ForeignObject renderer initialized ("+er.width+"x"+er.height+" at "+er.x+","+er.y+") with scale "+er.scale)}return ForeignObjectRenderer.prototype.render=function(er){return __awaiter(this,void 0,void 0,(function(){var tr,rr;return __generator(this,(function(nr){switch(nr.label){case 0:return tr=hs(Math.max(this.options.windowWidth,this.options.width)*this.options.scale,Math.max(this.options.windowHeight,this.options.height)*this.options.scale,this.options.scrollX*this.options.scale,this.options.scrollY*this.options.scale,er),[4,rh(tr)];case 1:return rr=nr.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=Ma(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(rr,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}}))}))},ForeignObjectRenderer}(),rh=function loadSerializedSVG$1(er){return new Promise((function(tr,rr){var nr=new Image;nr.onload=function(){tr(nr)},nr.onerror=rr,nr.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(er))}))},nh=void 0,ih=function parseColor$1(er){return Ia.parse(la.create(er).parseComponentValue())},oh=function html2canvas(er,tr){return void 0===tr&&(tr={}),ah(er,tr)};"undefined"!=typeof window&&gs.setContext(window);var ah=function renderElement(er,or){return __awaiter(nh,void 0,void 0,(function(){var ar,sr,lr,cr,ur,dr,hr,pr,Ar,fr,gr,mr,_r,vr,yr,br,wr,Sr,xr,kr,Cr,Br,Er;return __generator(this,(function(Nr){switch(Nr.label){case 0:if(!(ar=er.ownerDocument))throw new Error("Element is not attached to a Document");if(!(sr=ar.defaultView))throw new Error("Document is not attached to a Window");return lr=(Math.round(1e3*Math.random())+Date.now()).toString(16),cr=ku(er)||Su(er)?ir(ar):nr(er),ur=cr.width,dr=cr.height,hr=cr.left,pr=cr.top,Ar=tr({},{allowTaint:!1,imageTimeout:15e3,proxy:void 0,useCORS:!1},or),fr={backgroundColor:"#ffffff",cache:or.cache?or.cache:gs.create(lr,Ar),logging:!0,removeContainer:!0,foreignObjectRendering:!1,scale:sr.devicePixelRatio||1,windowWidth:sr.innerWidth,windowHeight:sr.innerHeight,scrollX:sr.pageXOffset,scrollY:sr.pageYOffset,x:hr,y:pr,width:Math.ceil(ur),height:Math.ceil(dr),id:lr},gr=tr({},fr,Ar,or),mr=new rr(gr.scrollX,gr.scrollY,gr.windowWidth,gr.windowHeight),fs.create({id:lr,enabled:gr.logging}),fs.getInstance(lr).debug("Starting document clone"),_r=new Zu(er,{id:lr,onclone:gr.onclone,ignoreElements:gr.ignoreElements,inlineImages:gr.foreignObjectRendering,copyStyles:gr.foreignObjectRendering}),(vr=_r.clonedReferenceElement)?[4,_r.toIFrame(ar,mr)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return yr=Nr.sent(),br=ar.documentElement?ih(getComputedStyle(ar.documentElement).backgroundColor):za.TRANSPARENT,wr=ar.body?ih(getComputedStyle(ar.body).backgroundColor):za.TRANSPARENT,Sr=or.backgroundColor,xr="string"==typeof Sr?ih(Sr):null===Sr?za.TRANSPARENT:4294967295,kr=er===ar.documentElement?Ra(br)?Ra(wr)?xr:wr:br:xr,Cr={id:lr,cache:gr.cache,canvas:gr.canvas,backgroundColor:kr,scale:gr.scale,x:gr.x,y:gr.y,scrollX:gr.scrollX,scrollY:gr.scrollY,width:gr.width,height:gr.height,windowWidth:gr.windowWidth,windowHeight:gr.windowHeight},gr.foreignObjectRendering?(fs.getInstance(lr).debug("Document cloned, using foreign object rendering"),[4,new th(Cr).render(vr)]):[3,3];case 2:return Br=Nr.sent(),[3,5];case 3:return fs.getInstance(lr).debug("Document cloned, using computed rendering"),gs.attachInstance(gr.cache),fs.getInstance(lr).debug("Starting DOM parsing"),Er=pu(vr),gs.detachInstance(),kr===Er.styles.backgroundColor&&(Er.styles.backgroundColor=za.TRANSPARENT),fs.getInstance(lr).debug("Starting renderer"),[4,new Jd(Cr).render(Er)];case 4:Br=Nr.sent(),Nr.label=5;case 5:return!0===gr.removeContainer&&(Zu.destroy(yr)||fs.getInstance(lr).error("Cannot detach cloned iframe as it is not in the DOM anymore")),fs.getInstance(lr).debug("Finished rendering"),fs.destroy(lr),gs.destroy(lr),[2,Br]}}))}))};return oh}()})),sF=Object.freeze(Object.assign(Object.create(null),aF,{default:aF})),lF=Object.isFrozen,cF=fails((function(){lF(1)}));_export({target:"Object",stat:!0,forced:cF},{isFrozen:function isFrozen(er){return!isObject(er)||!!lF&&lF(er)}});var uF=ov.onFreeze,dF=Object.seal,hF=fails((function(){dF(1)}));_export({target:"Object",stat:!0,forced:hF,sham:!iv},{seal:function seal(er){return dF&&isObject(er)?dF(uF(er)):er}});var pF=getBuiltIn("Reflect","apply"),AF=Function.apply,fF=!fails((function(){pF((function(){}))}));_export({target:"Reflect",stat:!0,forced:fF},{apply:function apply(er,tr,rr){return aFunction$1(er),anObject(rr),pF?pF(er,tr,rr):AF.call(er,tr,rr)}});var gF=getBuiltIn("Reflect","construct"),mF=fails((function(){function F(){}return!(gF((function(){}),[],F)instanceof F)})),_F=!fails((function(){gF((function(){}))})),vF=mF||_F;_export({target:"Reflect",stat:!0,forced:vF,sham:vF},{construct:function construct(er,tr){aFunction$1(er),anObject(tr);var rr=arguments.length<3?er:aFunction$1(arguments[2]);if(_F&&!mF)return gF(er,tr,rr);if(er==rr){switch(tr.length){case 0:return new er;case 1:return new er(tr[0]);case 2:return new er(tr[0],tr[1]);case 3:return new er(tr[0],tr[1],tr[2]);case 4:return new er(tr[0],tr[1],tr[2],tr[3])}var nr=[null];return nr.push.apply(nr,tr),new(za.apply(er,nr))}var ir=rr.prototype,or=wi(isObject(ir)?ir:Object.prototype),ar=Function.apply.call(er,or,tr);return isObject(ar)?ar:or}});var yF=createCommonjsModule((function(er,tr){
|
||
/*! @license DOMPurify | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.0.8/LICENSE */
|
||
er.exports=function(){function _toConsumableArray(er){if(Array.isArray(er)){for(var tr=0,rr=Array(er.length);tr<er.length;tr++)rr[tr]=er[tr];return rr}return Array.from(er)}var er=Object.hasOwnProperty,tr=Object.setPrototypeOf,rr=Object.isFrozen,nr=Object.keys,ir=Object.freeze,or=Object.seal,ar="undefined"!=typeof Reflect&&Reflect,sr=ar.apply,lr=ar.construct;sr||(sr=function apply(er,tr,rr){return er.apply(tr,rr)}),ir||(ir=function freeze(er){return er}),or||(or=function seal(er){return er}),lr||(lr=function construct(er,tr){return new(Function.prototype.bind.apply(er,[null].concat(_toConsumableArray(tr))))});var cr=unapply(Array.prototype.forEach),ur=unapply(Array.prototype.indexOf),dr=unapply(Array.prototype.join),hr=unapply(Array.prototype.pop),pr=unapply(Array.prototype.push),Ar=unapply(Array.prototype.slice),fr=unapply(String.prototype.toLowerCase),gr=unapply(String.prototype.match),mr=unapply(String.prototype.replace),_r=unapply(String.prototype.indexOf),vr=unapply(String.prototype.trim),yr=unapply(RegExp.prototype.test),br=unconstruct(RegExp),wr=unconstruct(TypeError);function unapply(er){return function(tr){for(var rr=arguments.length,nr=Array(rr>1?rr-1:0),ir=1;ir<rr;ir++)nr[ir-1]=arguments[ir];return sr(er,tr,nr)}}function unconstruct(er){return function(){for(var tr=arguments.length,rr=Array(tr),nr=0;nr<tr;nr++)rr[nr]=arguments[nr];return lr(er,rr)}}function addToSet(er,nr){tr&&tr(er,null);for(var ir=nr.length;ir--;){var or=nr[ir];if("string"==typeof or){var ar=fr(or);ar!==or&&(rr(nr)||(nr[ir]=ar),or=ar)}er[or]=!0}return er}function clone(tr){var rr={},nr=void 0;for(nr in tr)sr(er,tr,[nr])&&(rr[nr]=tr[nr]);return rr}var Sr=ir(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),xr=ir(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","audio","canvas","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","video","view","vkern"]),kr=ir(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Cr=ir(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),Br=ir(["#text"]),Er=ir(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns"]),Nr=ir(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","tabindex","targetx","targety","transform","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Lr=ir(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Tr=ir(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Pr=or(/\{\{[\s\S]*|[\s\S]*\}\}/gm),Fr=or(/<%[\s\S]*|[\s\S]*%>/gm),Ur=or(/^data-[\-\w.\u00B7-\uFFFF]/),Ir=or(/^aria-[\-\w]+$/),Rr=or(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Mr=or(/^(?:\w+script|data):/i),Or=or(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g),Qr="function"==typeof Symbol&&"symbol"===_typeof(Symbol.iterator)?function(er){return _typeof(er)}:function(er){return er&&"function"==typeof Symbol&&er.constructor===Symbol&&er!==Symbol.prototype?"symbol":_typeof(er)};function _toConsumableArray$1(er){if(Array.isArray(er)){for(var tr=0,rr=Array(er.length);tr<er.length;tr++)rr[tr]=er[tr];return rr}return Array.from(er)}var Dr=function getGlobal(){return"undefined"==typeof window?null:window},jr=function _createTrustedTypesPolicy(er,tr){if("object"!==(void 0===er?"undefined":Qr(er))||"function"!=typeof er.createPolicy)return null;var rr=null,nr="data-tt-policy-suffix";tr.currentScript&&tr.currentScript.hasAttribute(nr)&&(rr=tr.currentScript.getAttribute(nr));var ir="dompurify"+(rr?"#"+rr:"");try{return er.createPolicy(ir,{createHTML:function createHTML(er){return er}})}catch(er){return console.warn("TrustedTypes policy "+ir+" could not be created."),null}};function createDOMPurify(){var er=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Dr(),tr=function DOMPurify(er){return createDOMPurify(er)};if(tr.version="2.0.12",tr.removed=[],!er||!er.document||9!==er.document.nodeType)return tr.isSupported=!1,tr;var rr=er.document,or=!1,ar=er.document,sr=er.DocumentFragment,lr=er.HTMLTemplateElement,Hr=er.Node,Gr=er.NodeFilter,Vr=er.NamedNodeMap,zr=void 0===Vr?er.NamedNodeMap||er.MozNamedAttrMap:Vr,Kr=er.Text,qr=er.Comment,Wr=er.DOMParser,Xr=er.trustedTypes;if("function"==typeof lr){var Yr=ar.createElement("template");Yr.content&&Yr.content.ownerDocument&&(ar=Yr.content.ownerDocument)}var Jr=jr(Xr,rr),$r=Jr&&gi?Jr.createHTML(""):"",Zr=ar,Tn=Zr.implementation,Un=Zr.createNodeIterator,Qn=Zr.getElementsByTagName,Dn=Zr.createDocumentFragment,Hn=rr.importNode,Gn={};tr.isSupported=Tn&&void 0!==Tn.createHTMLDocument&&9!==ar.documentMode;var Vn=Pr,zn=Fr,Kn=Ur,Wn=Ir,Xn=Mr,Yn=Or,Jn=Rr,$n=null,Zn=addToSet({},[].concat(_toConsumableArray$1(Sr),_toConsumableArray$1(xr),_toConsumableArray$1(kr),_toConsumableArray$1(Cr),_toConsumableArray$1(Br))),ei=null,ti=addToSet({},[].concat(_toConsumableArray$1(Er),_toConsumableArray$1(Nr),_toConsumableArray$1(Lr),_toConsumableArray$1(Tr))),ri=null,ni=null,ii=!0,oi=!0,ai=!1,si=!1,li=!1,ui=!1,di=!1,hi=!1,pi=!1,Ai=!1,fi=!1,gi=!1,mi=!0,_i=!0,vi=!1,yi={},wi=addToSet({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","plaintext","script","style","svg","template","thead","title","video","xmp"]),Si=null,xi=addToSet({},["audio","video","img","source","image","track"]),ki=null,Ci=addToSet({},["alt","class","for","id","label","name","pattern","placeholder","summary","title","value","style","xmlns"]),Bi=null,Ei=ar.createElement("form"),Ni=function _parseConfig(er){Bi&&Bi===er||(er&&"object"===(void 0===er?"undefined":Qr(er))||(er={}),$n="ALLOWED_TAGS"in er?addToSet({},er.ALLOWED_TAGS):Zn,ei="ALLOWED_ATTR"in er?addToSet({},er.ALLOWED_ATTR):ti,ki="ADD_URI_SAFE_ATTR"in er?addToSet(clone(Ci),er.ADD_URI_SAFE_ATTR):Ci,Si="ADD_DATA_URI_TAGS"in er?addToSet(clone(xi),er.ADD_DATA_URI_TAGS):xi,ri="FORBID_TAGS"in er?addToSet({},er.FORBID_TAGS):{},ni="FORBID_ATTR"in er?addToSet({},er.FORBID_ATTR):{},yi="USE_PROFILES"in er&&er.USE_PROFILES,ii=!1!==er.ALLOW_ARIA_ATTR,oi=!1!==er.ALLOW_DATA_ATTR,ai=er.ALLOW_UNKNOWN_PROTOCOLS||!1,si=er.SAFE_FOR_JQUERY||!1,li=er.SAFE_FOR_TEMPLATES||!1,ui=er.WHOLE_DOCUMENT||!1,pi=er.RETURN_DOM||!1,Ai=er.RETURN_DOM_FRAGMENT||!1,fi=er.RETURN_DOM_IMPORT||!1,gi=er.RETURN_TRUSTED_TYPE||!1,hi=er.FORCE_BODY||!1,mi=!1!==er.SANITIZE_DOM,_i=!1!==er.KEEP_CONTENT,vi=er.IN_PLACE||!1,Jn=er.ALLOWED_URI_REGEXP||Jn,li&&(oi=!1),Ai&&(pi=!0),yi&&($n=addToSet({},[].concat(_toConsumableArray$1(Br))),ei=[],!0===yi.html&&(addToSet($n,Sr),addToSet(ei,Er)),!0===yi.svg&&(addToSet($n,xr),addToSet(ei,Nr),addToSet(ei,Tr)),!0===yi.svgFilters&&(addToSet($n,kr),addToSet(ei,Nr),addToSet(ei,Tr)),!0===yi.mathMl&&(addToSet($n,Cr),addToSet(ei,Lr),addToSet(ei,Tr))),er.ADD_TAGS&&($n===Zn&&($n=clone($n)),addToSet($n,er.ADD_TAGS)),er.ADD_ATTR&&(ei===ti&&(ei=clone(ei)),addToSet(ei,er.ADD_ATTR)),er.ADD_URI_SAFE_ATTR&&addToSet(ki,er.ADD_URI_SAFE_ATTR),_i&&($n["#text"]=!0),ui&&addToSet($n,["html","head","body"]),$n.table&&(addToSet($n,["tbody"]),delete ri.tbody),ir&&ir(er),Bi=er)},Li=function _forceRemove(er){pr(tr.removed,{element:er});try{er.parentNode.removeChild(er)}catch(tr){er.outerHTML=$r}},Ti=function _removeAttribute(er,rr){try{pr(tr.removed,{attribute:rr.getAttributeNode(er),from:rr})}catch(er){pr(tr.removed,{attribute:null,from:rr})}rr.removeAttribute(er)},Pi=function _initDocument(er){var tr=void 0,rr=void 0;if(hi)er="<remove></remove>"+er;else{var nr=gr(er,/^[\r\n\t ]+/);rr=nr&&nr[0]}var ir=Jr?Jr.createHTML(er):er;try{tr=(new Wr).parseFromString(ir,"text/html")}catch(er){}if(or&&addToSet(ri,["title"]),!tr||!tr.documentElement){var sr=(tr=Tn.createHTMLDocument("")).body;sr.parentNode.removeChild(sr.parentNode.firstElementChild),sr.outerHTML=ir}return er&&rr&&tr.body.insertBefore(ar.createTextNode(rr),tr.body.childNodes[0]||null),Qn.call(tr,ui?"html":"body")[0]};tr.isSupported&&function(){try{var er=Pi("<x/><title></title><img>");yr(/<\/title/,er.querySelector("title").innerHTML)&&(or=!0)}catch(er){}}();var Fi=function _createIterator(er){return Un.call(er.ownerDocument||er,er,Gr.SHOW_ELEMENT|Gr.SHOW_COMMENT|Gr.SHOW_TEXT,(function(){return Gr.FILTER_ACCEPT}),!1)},Ui=function _isClobbered(er){return!(er instanceof Kr||er instanceof qr||"string"==typeof er.nodeName&&"string"==typeof er.textContent&&"function"==typeof er.removeChild&&er.attributes instanceof zr&&"function"==typeof er.removeAttribute&&"function"==typeof er.setAttribute&&"string"==typeof er.namespaceURI)},Ii=function _isNode(er){return"object"===(void 0===Hr?"undefined":Qr(Hr))?er instanceof Hr:er&&"object"===(void 0===er?"undefined":Qr(er))&&"number"==typeof er.nodeType&&"string"==typeof er.nodeName},Ri=function _executeHook(er,rr,nr){Gn[er]&&cr(Gn[er],(function(er){er.call(tr,rr,nr,Bi)}))},Mi=function _sanitizeElements(er){var rr=void 0;if(Ri("beforeSanitizeElements",er,null),Ui(er))return Li(er),!0;var nr=fr(er.nodeName);if(Ri("uponSanitizeElement",er,{tagName:nr,allowedTags:$n}),("svg"===nr||"math"===nr)&&0!==er.querySelectorAll("p, br").length)return Li(er),!0;if(!$n[nr]||ri[nr]){if(_i&&!wi[nr]&&"function"==typeof er.insertAdjacentHTML)try{var ir=er.innerHTML;er.insertAdjacentHTML("AfterEnd",Jr?Jr.createHTML(ir):ir)}catch(er){}return Li(er),!0}return"noscript"===nr&&yr(/<\/noscript/i,er.innerHTML)||"noembed"===nr&&yr(/<\/noembed/i,er.innerHTML)?(Li(er),!0):(!si||er.firstElementChild||er.content&&er.content.firstElementChild||!yr(/</g,er.textContent)||(pr(tr.removed,{element:er.cloneNode()}),er.innerHTML?er.innerHTML=mr(er.innerHTML,/</g,"<"):er.innerHTML=mr(er.textContent,/</g,"<")),li&&3===er.nodeType&&(rr=er.textContent,rr=mr(rr,Vn," "),rr=mr(rr,zn," "),er.textContent!==rr&&(pr(tr.removed,{element:er.cloneNode()}),er.textContent=rr)),Ri("afterSanitizeElements",er,null),!1)},Oi=function _isValidAttribute(er,tr,rr){if(mi&&("id"===tr||"name"===tr)&&(rr in ar||rr in Ei))return!1;if(oi&&yr(Kn,tr));else if(ii&&yr(Wn,tr));else{if(!ei[tr]||ni[tr])return!1;if(ki[tr]);else if(yr(Jn,mr(rr,Yn,"")));else if("src"!==tr&&"xlink:href"!==tr&&"href"!==tr||"script"===er||0!==_r(rr,"data:")||!Si[er])if(ai&&!yr(Xn,mr(rr,Yn,"")));else if(rr)return!1}return!0},Qi=function _sanitizeAttributes(er){var rr=void 0,ir=void 0,or=void 0,ar=void 0,sr=void 0;Ri("beforeSanitizeAttributes",er,null);var lr=er.attributes;if(lr){var cr={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ei};for(sr=lr.length;sr--;){var pr=rr=lr[sr],gr=pr.name,_r=pr.namespaceURI;if(ir=vr(rr.value),or=fr(gr),cr.attrName=or,cr.attrValue=ir,cr.keepAttr=!0,cr.forceKeepAttr=void 0,Ri("uponSanitizeAttribute",er,cr),ir=cr.attrValue,!cr.forceKeepAttr){if("name"===or&&"IMG"===er.nodeName&&lr.id)ar=lr.id,lr=Ar(lr,[]),Ti("id",er),Ti(gr,er),ur(lr,ar)>sr&&er.setAttribute("id",ar.value);else{if("INPUT"===er.nodeName&&"type"===or&&"file"===ir&&cr.keepAttr&&(ei[or]||!ni[or]))continue;"id"===gr&&er.setAttribute(gr,""),Ti(gr,er)}if(cr.keepAttr)if(si&&yr(/\/>/i,ir))Ti(gr,er);else if(yr(/svg|math/i,er.namespaceURI)&&yr(br("</("+dr(nr(wi),"|")+")","i"),ir))Ti(gr,er);else{li&&(ir=mr(ir,Vn," "),ir=mr(ir,zn," "));var wr=er.nodeName.toLowerCase();if(Oi(wr,or,ir))try{_r?er.setAttributeNS(_r,gr,ir):er.setAttribute(gr,ir),hr(tr.removed)}catch(er){}}}}Ri("afterSanitizeAttributes",er,null)}},Di=function _sanitizeShadowDOM(er){var tr=void 0,rr=Fi(er);for(Ri("beforeSanitizeShadowDOM",er,null);tr=rr.nextNode();)Ri("uponSanitizeShadowNode",tr,null),Mi(tr)||(tr.content instanceof sr&&_sanitizeShadowDOM(tr.content),Qi(tr));Ri("afterSanitizeShadowDOM",er,null)};return tr.sanitize=function(nr,ir){var or=void 0,ar=void 0,lr=void 0,cr=void 0,ur=void 0;if(nr||(nr="\x3c!--\x3e"),"string"!=typeof nr&&!Ii(nr)){if("function"!=typeof nr.toString)throw wr("toString is not a function");if("string"!=typeof(nr=nr.toString()))throw wr("dirty is not a string, aborting")}if(!tr.isSupported){if("object"===Qr(er.toStaticHTML)||"function"==typeof er.toStaticHTML){if("string"==typeof nr)return er.toStaticHTML(nr);if(Ii(nr))return er.toStaticHTML(nr.outerHTML)}return nr}if(di||Ni(ir),tr.removed=[],"string"==typeof nr&&(vi=!1),vi);else if(nr instanceof Hr)1===(ar=(or=Pi("\x3c!--\x3e")).ownerDocument.importNode(nr,!0)).nodeType&&"BODY"===ar.nodeName||"HTML"===ar.nodeName?or=ar:or.appendChild(ar);else{if(!pi&&!li&&!ui&&-1===nr.indexOf("<"))return Jr&&gi?Jr.createHTML(nr):nr;if(!(or=Pi(nr)))return pi?null:$r}or&&hi&&Li(or.firstChild);for(var dr=Fi(vi?nr:or);lr=dr.nextNode();)3===lr.nodeType&&lr===cr||Mi(lr)||(lr.content instanceof sr&&Di(lr.content),Qi(lr),cr=lr);if(cr=null,vi)return nr;if(pi){if(Ai)for(ur=Dn.call(or.ownerDocument);or.firstChild;)ur.appendChild(or.firstChild);else ur=or;return fi&&(ur=Hn.call(rr,ur,!0)),ur}var hr=ui?or.outerHTML:or.innerHTML;return li&&(hr=mr(hr,Vn," "),hr=mr(hr,zn," ")),Jr&&gi?Jr.createHTML(hr):hr},tr.setConfig=function(er){Ni(er),di=!0},tr.clearConfig=function(){Bi=null,di=!1},tr.isValidAttribute=function(er,tr,rr){Bi||Ni({});var nr=fr(er),ir=fr(tr);return Oi(nr,ir,rr)},tr.addHook=function(er,tr){"function"==typeof tr&&(Gn[er]=Gn[er]||[],pr(Gn[er],tr))},tr.removeHook=function(er){Gn[er]&&hr(Gn[er])},tr.removeHooks=function(er){Gn[er]&&(Gn[er]=[])},tr.removeAllHooks=function(){Gn={}},tr}return createDOMPurify()}()})),bF=Object.freeze(Object.assign(Object.create(null),yF,{default:yF})),wF=Object.freeze({__proto__:null,default:{lang:"af",dir:"ltr",common:{ok:"Spaar",cancel:"Annuleer",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Klik om te verander vul kleur, verskuiwing klik om 'n beroerte kleur verander",zoom_level:"Change zoom vlak",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"Verandering vul kleur",stroke_color:"Verandering beroerte kleur",stroke_style:"Verandering beroerte dash styl",stroke_width:"Verandering beroerte breedte",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Verandering rotasie-hoek",blur:"Change gaussian blur value",opacity:"Verander geselekteerde item opaciteit",circle_cx:"Verandering sirkel se cx koördineer",circle_cy:"Verandering sirkel se cy koördineer",circle_r:"Verandering sirkel se radius",ellipse_cx:"Verandering ellips se cx koördineer",ellipse_cy:"Verander ellips se cy koördineer",ellipse_rx:"Verandering ellips se x radius",ellipse_ry:"Verander ellips se j radius",line_x1:"Verandering lyn se vertrek x koördinaat",line_x2:"Verandering lyn se eindig x koördinaat",line_y1:"Verandering lyn se vertrek y koördinaat",line_y2:"Verandering lyn se eindig y koördinaat",rect_height:"Verandering reghoek hoogte",rect_width:"Verandering reghoek breedte",corner_radius:"Verandering Rechthoek Corner Radius",image_width:"Verander prent breedte",image_height:"Verandering prent hoogte",image_url:"URL verander",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Verander teks inhoud",font_family:"Lettertipe verander Familie",font_size:"Verandering Lettertipe Grootte",bold:"Vetgedrukte teks",italic:"Italic Text"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Verander agtergrondkleur / opaciteit",connector_no_arrow:"No arrow",fitToContent:"Pas na inhoud",fit_to_all:"Passing tot al inhoud",fit_to_canvas:"Passing tot doek",fit_to_layer_content:"Passing tot laag inhoud",fit_to_sel:"Passing tot seleksie",align_relative_to:"Align in verhouding tot ...",relativeTo:"relatief tot:",page:"bladsy",largest_object:"grootste voorwerp",selected_objects:"verkose voorwerpe",smallest_object:"kleinste voorwerp",new_doc:"Nuwe Beeld",open_doc:"Open Beeld",export_img:"Export",save_doc:"Slaan Beeld",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"Align Bottom",align_center:"Rig Middel",align_left:"Links Regterkant",align_middle:"Align Midde",align_right:"Lijn regs uit",align_top:"Align Top",mode_select:"Select Gereedschap",mode_fhpath:"Potlood tool",mode_line:"Lyn Gereedskap",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Free-hand Rectangle",mode_ellipse:"Ellips",mode_circle:"Sirkel",mode_fhellipse:"Gratis-Hand Ellips",mode_path:"Poli Gereedskap",mode_text:"Text Gereedskap",mode_image:"Image Gereedskap",mode_zoom:"Klik op die Gereedskap",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Boontoe",redo:"Oordoen",tool_source:"Wysig Bron",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Groep Elemente",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Ungroup Elemente",docprops:"Document Properties",editor_homepage:"SVG-Edit Home Page",move_bottom:"Skuif na Bottom",move_top:"Skuif na bo",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Spaar",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Layer",layers:"Layers",del:"Verwyder Laag",move_down:"Beweeg afbreek Down",new:"Nuwe Layer",rename:"Rename Layer",move_up:"Beweeg afbreek Up",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Doek Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",select_predefined:"Kies gedefinieerde:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),SF=Object.freeze({__proto__:null,default:{lang:"ar",dir:"rtl",common:{ok:"حفظ",cancel:"إلغاء",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"انقر لتغيير لون التعبئة ، تحولا مزدوجا فوق لتغيير لون السكتة الدماغية",zoom_level:"تغيير مستوى التكبير",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"تغير لون التعبئة",stroke_color:"تغير لون السكتة الدماغية",stroke_style:"تغيير نمط السكتة الدماغية اندفاعة",stroke_width:"تغيير عرض السكتة الدماغية",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"تغيير زاوية الدوران",blur:"Change gaussian blur value",opacity:"تغيير مختارة غموض البند",circle_cx:"دائرة التغيير لتنسيق cx",circle_cy:"Change circle's cy coordinate",circle_r:"التغيير في دائرة نصف قطرها",ellipse_cx:"تغيير شكل البيضاوي cx تنسيق",ellipse_cy:"تغيير شكل البيضاوي قبرصي تنسيق",ellipse_rx:"تغيير شكل البيضاوي خ نصف قطرها",ellipse_ry:"تغيير القطع الناقص في دائرة نصف قطرها ذ",line_x1:"تغيير الخط لبدء تنسيق خ",line_x2:"تغيير الخط لانهاء خ تنسيق",line_y1:"تغيير الخط لبدء تنسيق ذ",line_y2:"تغيير الخط لإنهاء تنسيق ذ",rect_height:"تغيير المستطيل الارتفاع",rect_width:"تغيير عرض المستطيل",corner_radius:"تغيير مستطيل ركن الشعاع",image_width:"تغيير صورة العرض",image_height:"تغيير ارتفاع الصورة",image_url:"تغيير العنوان",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"تغيير محتويات النص",font_family:"تغيير الخط الأسرة",font_size:"تغيير حجم الخط",bold:"نص جريء",italic:"مائل نص"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"تغير لون الخلفية / غموض",connector_no_arrow:"No arrow",fitToContent:"لائقا للمحتوى",fit_to_all:"يصلح لجميع المحتويات",fit_to_canvas:"يصلح لوحة زيتية على قماش",fit_to_layer_content:"يصلح لطبقة المحتوى",fit_to_sel:"يصلح لاختيار",align_relative_to:"محاذاة النسبي ل ...",relativeTo:"بالنسبة إلى:",page:"الصفحة",largest_object:"أكبر كائن",selected_objects:"انتخب الأجسام",smallest_object:"أصغر كائن",new_doc:"صورة جديدة",open_doc:"فتح الصورة",export_img:"Export",save_doc:"حفظ صورة",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"محاذاة القاع",align_center:"مركز محاذاة",align_left:"محاذاة إلى اليسار",align_middle:"محاذاة الأوسط",align_right:"محاذاة إلى اليمين",align_top:"محاذاة الأعلى",mode_select:"اختر أداة",mode_fhpath:"أداة قلم رصاص",mode_line:"خط أداة",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Free-Hand Rectangle",mode_ellipse:"القطع الناقص",mode_circle:"دائرة",mode_fhellipse:"اليد الحرة البيضوي",mode_path:"بولي أداة",mode_text:"النص أداة",mode_image:"الصورة أداة",mode_zoom:"أداة تكبير",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"التراجع",redo:"إعادته",tool_source:"عدل المصدر",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"مجموعة عناصر",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"فك تجميع عناصر",docprops:"خصائص المستند",editor_homepage:"SVG-Edit Home Page",move_bottom:"الانتقال إلى أسفل",move_top:"الانتقال إلى أعلى",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"حفظ",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Layer",layers:"Layers",del:"حذف طبقة",move_down:"تحرك لأسفل طبقة",new:"طبقة جديدة",rename:"تسمية الطبقة",move_up:"تحرك لأعلى طبقة",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",select_predefined:"حدد سلفا:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),xF=Object.freeze({__proto__:null,default:{lang:"az",dir:"ltr",common:{ok:"OK",cancel:"Cancel",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Click to change fill color, shift-click to change stroke color",zoom_level:"Change zoom level",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"Change fill color",stroke_color:"Change stroke color",stroke_style:"Change stroke dash style",stroke_width:"Change stroke width",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Change rotation angle",blur:"Change gaussian blur value",opacity:"Change selected item opacity",circle_cx:"Change circle's cx coordinate",circle_cy:"Change circle's cy coordinate",circle_r:"Change circle's radius",ellipse_cx:"Change ellipse's cx coordinate",ellipse_cy:"Change ellipse's cy coordinate",ellipse_rx:"Change ellipse's x radius",ellipse_ry:"Change ellipse's y radius",line_x1:"Change line's starting x coordinate",line_x2:"Change line's ending x coordinate",line_y1:"Change line's starting y coordinate",line_y2:"Change line's ending y coordinate",rect_height:"Change rectangle height",rect_width:"Change rectangle width",corner_radius:"Change Rectangle Corner Radius",image_width:"Change image width",image_height:"Change image height",image_url:"Change URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Change text contents",font_family:"Change Font Family",font_size:"Change Font Size",bold:"Bold Text",italic:"Italic Text"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Change background color/opacity",connector_no_arrow:"No arrow",fitToContent:"Fit to Content",fit_to_all:"Fit to all content",fit_to_canvas:"Fit to canvas",fit_to_layer_content:"Fit to layer content",fit_to_sel:"Fit to selection",align_relative_to:"Align relative to ...",relativeTo:"relative to:",page:"page",largest_object:"largest object",selected_objects:"selected objects",smallest_object:"smallest object",new_doc:"New Image",open_doc:"Open SVG",export_img:"Export",save_doc:"Save Image",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"Align Bottom",align_center:"Align Center",align_left:"Align Left",align_middle:"Align Middle",align_right:"Align Right",align_top:"Align Top",mode_select:"Select Tool",mode_fhpath:"Pencil Tool",mode_line:"Line Tool",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Free-Hand Rectangle",mode_ellipse:"Ellipse",mode_circle:"Circle",mode_fhellipse:"Free-Hand Ellipse",mode_path:"Path Tool",mode_text:"Text Tool",mode_image:"Image Tool",mode_zoom:"Zoom Tool",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Undo",redo:"Redo",tool_source:"Edit Source",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Group Elements",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Ungroup Elements",docprops:"Document Properties",editor_homepage:"SVG-Edit Home Page",move_bottom:"Move to Bottom",move_top:"Move to Top",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Apply Changes",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Layer",layers:"Layers",del:"Delete Layer",move_down:"Move Layer Down",new:"New Layer",rename:"Rename Layer",move_up:"Move Layer Up",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",select_predefined:"Select predefined:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),kF=Object.freeze({__proto__:null,default:{lang:"be",dir:"ltr",common:{ok:"Захаваць",cancel:"Адмена",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Націсніце для змены колеру залівання, Shift-Click змяніць обводка",zoom_level:"Змяненне маштабу",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"Змяненне колеру залівання",stroke_color:"Змяненне колеру інсульт",stroke_style:"Змяненне стылю інсульт працяжнік",stroke_width:"Змены шырыня штрых",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Змены вугла павароту",blur:"Change gaussian blur value",opacity:"Старонка абранага пункта непразрыстасці",circle_cx:"CX змене круга каардынаты",circle_cy:"Змены гуртка CY каардынаты",circle_r:"Старонка круга's радыус",ellipse_cx:"Змены эліпса CX каардынаты",ellipse_cy:"Змены эліпса CY каардынаты",ellipse_rx:"Х змяненні эліпса радыюсам",ellipse_ry:"Змены у эліпса радыюсам",line_x1:"Змены лінія пачынае каардынаты х",line_x2:"Змяненне за перыяд, скончыўся лінія каардынаты х",line_y1:"Змены лінія пачынае Y каардынаты",line_y2:"Змяненне за перыяд, скончыўся лінія Y каардынаты",rect_height:"Змены прастакутнік вышынёй",rect_width:"Змяненне шырыні прамавугольніка",corner_radius:"Змены прастакутнік Corner Radius",image_width:"Змены шырыня выявы",image_height:"Змена вышыні выявы",image_url:"Змяніць URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Змяненне зместу тэксту",font_family:"Змены Сямейства шрыфтоў",font_size:"Змяніць памер шрыфта",bold:"Тоўсты тэкст",italic:"Нахілены тэкст"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Змяненне колеру фону / непразрыстасць",connector_no_arrow:"No arrow",fitToContent:"Па памеры ўтрымання",fit_to_all:"Па памеру ўсе змесціва",fit_to_canvas:"Памер палатна",fit_to_layer_content:"По размеру слой ўтрымання",fit_to_sel:"Выбар памеру",align_relative_to:"Выраўнаваць па дачыненні да ...",relativeTo:"па параўнанні з:",page:"старонка",largest_object:"найбуйнейшы аб'ект",selected_objects:"выбранымі аб'ектамі",smallest_object:"маленькі аб'ект",new_doc:"Новае выява",open_doc:"Адкрыць выява",export_img:"Export",save_doc:"Захаваць малюнак",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"Лінаваць па ніжнім краю",align_center:"Лінаваць па цэнтру",align_left:"Па левым краю",align_middle:"Выраўнаваць Блізкага",align_right:"Па правым краю",align_top:"Лінаваць па верхнім краю",mode_select:"Выберыце інструмент",mode_fhpath:"Pencil Tool",mode_line:"Line Tool",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Свабоднай рукі Прастакутнік",mode_ellipse:"Эліпс",mode_circle:"Круг",mode_fhellipse:"Свабоднай рукі Эліпс",mode_path:"Poly Tool",mode_text:"Тэкст Tool",mode_image:"Image Tool",mode_zoom:"Zoom Tool",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Адмяніць",redo:"Паўтор",tool_source:"Змяніць зыходны",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Група элементаў",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Элементы Разгруппировать",docprops:"Уласцівасці дакумента",editor_homepage:"SVG-Edit Home Page",move_bottom:"Перамясціць уніз",move_top:"Перамясціць угару",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Захаваць",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Layer",layers:"Layers",del:"Выдаліць слой",move_down:"Перамясціць слой на",new:"Новы слой",rename:"Перайменаваць Слой",move_up:"Перамяшчэнне слоя да",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",select_predefined:"Выберыце прадвызначэньні:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),CF=Object.freeze({__proto__:null,default:{lang:"bg",dir:"ltr",common:{ok:"Спасявам",cancel:"Отказ",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Кликнете, за да промени попълнете цвят, на смени, кликнете да променят цвета си удар",zoom_level:"Промяна на ниво на мащабиране",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"Промяна попълнете цвят",stroke_color:"Промяна на инсулт цвят",stroke_style:"Промяна на стила удар тире",stroke_width:"Промяна на ширината инсулт",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Промяна ъгъл на завъртане",blur:"Change gaussian blur value",opacity:"Промяна на избрания елемент непрозрачност",circle_cx:"CX Промяна кръг на координатната",circle_cy:"Промяна кръг's CY координира",circle_r:"Промяна кръг радиус",ellipse_cx:"Промяна на елипса's CX координира",ellipse_cy:"Промяна на елипса's CY координира",ellipse_rx:"Промяна на елипса's X радиус",ellipse_ry:"Промяна на елипса's Y радиус",line_x1:"Промяна на линия, започваща х координира",line_x2:"Промяна на линията приключва х координира",line_y1:"Промяна линия, започваща Y координира",line_y2:"Промяна на линията приключва Y координира",rect_height:"Промяна на правоъгълник височина",rect_width:"Промяна на правоъгълник ширина",corner_radius:"Промяна на правоъгълник Corner Radius",image_width:"Промяна на изображението ширина",image_height:"Промяна на изображението височина",image_url:"Промяна на URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Промяна на текст съдържание",font_family:"Промяна на шрифта Семейство",font_size:"Промени размера на буквите",bold:"Получер текст",italic:"Курсив текст"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Промяна на цвета на фона / непрозрачност",connector_no_arrow:"No arrow",fitToContent:"Fit към съдържание",fit_to_all:"Побери цялото съдържание",fit_to_canvas:"Fit на платно",fit_to_layer_content:"Fit да слой съдържание",fit_to_sel:"Fit за подбор",align_relative_to:"Привеждане в сравнение с ...",relativeTo:"в сравнение с:",page:"страница",largest_object:"най-големият обект",selected_objects:"избраните обекти",smallest_object:"най-малката обект",new_doc:"Ню Имидж",open_doc:"Отворете изображението",export_img:"Export",save_doc:"Save Image",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"Привеждане Отдолу",align_center:"Подравняване в средата",align_left:"Подравняване вляво",align_middle:"Привеждане в Близкия",align_right:"Подравняване надясно",align_top:"Привеждане Топ",mode_select:"Select Tool",mode_fhpath:"Pencil Tool",mode_line:"Line Tool",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Свободен Употребявани правоъгълник",mode_ellipse:"Елипса",mode_circle:"Кръгът",mode_fhellipse:"Свободен Употребявани Елипса",mode_path:"Поли Tool",mode_text:"Текст Оръдие",mode_image:"Image Tool",mode_zoom:"Zoom Tool",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Отмени",redo:"Възстановяване",tool_source:"Редактиране Източник",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Група Елементи",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Разгрупирай Елементи",docprops:"Document Properties",editor_homepage:"SVG-Edit Home Page",move_bottom:"Премести надолу",move_top:"Премести в началото",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Спасявам",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Layer",layers:"Layers",del:"Изтриване на слой",move_down:"Move слой надолу",new:"Нов слой",rename:"Преименуване Layer",move_up:"Move Up Layer",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",select_predefined:"Изберете предварително:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),BF=Object.freeze({__proto__:null,default:{lang:"ca",dir:"ltr",common:{ok:"Salvar",cancel:"Cancel",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Feu clic per canviar el color de farciment, shift-clic per canviar el color del traç",zoom_level:"Canviar el nivell de zoom",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"Canviar el color de farciment",stroke_color:"Canviar el color del traç",stroke_style:"Canviar estil de traç guió",stroke_width:"Canviar l'amplada del traç",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Canviar l'angle de rotació",blur:"Change gaussian blur value",opacity:"Canviar la opacitat tema seleccionat",circle_cx:"CX cercle Canvi de coordenades",circle_cy:"Cercle Canvi CY coordinar",circle_r:"Ràdio de cercle Canvi",ellipse_cx:"Canviar lipse CX coordinar",ellipse_cy:"Lipse Canvi CY coordinar",ellipse_rx:"Ràdio x lipse Canvi",ellipse_ry:"Ràdio i lipse Canvi",line_x1:"Canviar la línia de partida de la coordenada x",line_x2:"Canviar la línia d'hores de coordenada x",line_y1:"Canviar la línia de partida i de coordinar",line_y2:"Canviar la línia d'hores de coordenada",rect_height:"Rectangle d'alçada Canvi",rect_width:"Ample rectangle Canvi",corner_radius:"Canviar Rectangle Corner Radius",image_width:"Amplada de la imatge Canvi",image_height:"Canviar l'altura de la imatge",image_url:"Canviar URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Contingut del text",font_family:"Canviar la font Família",font_size:"Change Font Size",bold:"Text en negreta",italic:"Text en cursiva"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Color de fons / opacitat",connector_no_arrow:"No arrow",fitToContent:"Ajustar al contingut",fit_to_all:"Ajustar a tot el contingut",fit_to_canvas:"Ajustar a la lona",fit_to_layer_content:"Ajustar al contingut de la capa d'",fit_to_sel:"Ajustar a la selecció",align_relative_to:"Alinear pel que fa a ...",relativeTo:"en relació amb:",page:"Pàgina",largest_object:"objecte més gran",selected_objects:"objectes escollits",smallest_object:"objecte més petit",new_doc:"Nova imatge",open_doc:"Obrir imatge",export_img:"Export",save_doc:"Guardar imatge",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"Alinear baix",align_center:"Alinear al centre",align_left:"Alinear a l'esquerra",align_middle:"Alinear Medi",align_right:"Alinear a la dreta",align_top:"Alinear a dalt",mode_select:"Eina de selecció",mode_fhpath:"Eina Llapis",mode_line:"L'eina",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Free-Hand Rectangle",mode_ellipse:"Lipse",mode_circle:"Cercle",mode_fhellipse:"Free-Hand Ellipse",mode_path:"Path Tool",mode_text:"Eina de text",mode_image:"Image Tool",mode_zoom:"Zoom Tool",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Desfés",redo:"Refer",tool_source:"Font Edita",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Elements de Grup de",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Desagrupar elements",docprops:"Propietats del document",editor_homepage:"SVG-Edit Home Page",move_bottom:"Mou al final",move_top:"Mou al principi",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Salvar",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Layer",layers:"Layers",del:"Eliminar capa",move_down:"Mou la capa de Down",new:"Nova capa",rename:"Canvieu el nom de la capa",move_up:"Mou la capa Up",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",select_predefined:"Seleccioneu predefinides:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),EF=Object.freeze({__proto__:null,default:{lang:"cs",dir:"ltr",common:{ok:"Uložit",cancel:"Storno",key_backspace:"backspace",key_del:"delete",key_down:"šipka dolů",key_up:"šipka nahoru",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Běží na"},ui:{toggle_stroke_tools:"Zobrazit/schovat více možností",palette_info:"Kliknutím změníte barvu výplně, kliknutím současně s klávesou shift změníte barvu čáry",zoom_level:"Změna přiblížení",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Změnit ID elementu",fill_color:"Změnit barvu výplně",stroke_color:"Změnit barvu čáry",stroke_style:"Změnit styl čáry",stroke_width:"Změnit šířku čáry",pos_x:"Změnit souřadnici X",pos_y:"Změnit souřadnici Y",linecap_butt:"Konec úsečky: přesný",linecap_round:"Konec úsečky: zaoblený",linecap_square:"Konec úsečky: s čtvercovým přesahem",linejoin_bevel:"Styl napojení úseček: zkosené",linejoin_miter:"Styl napojení úseček: ostré",linejoin_round:"Styl napojení úseček: oblé",angle:"Změnit úhel natočení",blur:"Změnit rozostření",opacity:"Změnit průhlednost objektů",circle_cx:"Změnit souřadnici X středu kružnice",circle_cy:"Změnit souřadnici Y středu kružnice",circle_r:"Změnit poloměr kružnice",ellipse_cx:"Změnit souřadnici X středu elipsy",ellipse_cy:"Změnit souřadnici Y středu elipsy",ellipse_rx:"Změnit poloměr X elipsy",ellipse_ry:"Změnit poloměr Y elipsy",line_x1:"Změnit počáteční souřadnici X úsečky",line_x2:"Změnit koncovou souřadnici X úsečky",line_y1:"Změnit počáteční souřadnici Y úsečky",line_y2:"Změnit koncovou souřadnici X úsečky",rect_height:"Změnit výšku obdélníku",rect_width:"Změnit šířku obdélníku",corner_radius:"Změnit zaoblení obdélníku",image_width:"Změnit šířku dokumentu",image_height:"Změnit výšku dokumentu",image_url:"Změnit adresu URL",node_x:"Změnit souřadnici X uzlu",node_y:"Změnit souřadnici Y uzlu",seg_type:"Změnit typ segmentu",straight_segments:"úsečka",curve_segments:"křivka",text_contents:"Změnit text",font_family:"Změnit font",font_size:"Změnit velikost písma",bold:"Tučně",italic:"Kurzíva"},tools:{main_menu:"Hlavní menu",bkgnd_color_opac:"Změnit barvu a průhlednost pozadí",connector_no_arrow:"Bez šipky",fitToContent:"přizpůsobit obsahu",fit_to_all:"Přizpůsobit veškerému obsahu",fit_to_canvas:"Přizpůsobit stránce",fit_to_layer_content:"Přizpůsobit obsahu vrstvy",fit_to_sel:"Přizpůsobit výběru",align_relative_to:"Zarovnat relativně",relativeTo:"relatativně k:",page:"stránce",largest_object:"největšímu objektu",selected_objects:"zvoleným objektům",smallest_object:"nejmenšímu objektu",new_doc:"Nový dokument",open_doc:"Otevřít dokument",export_img:"Export",save_doc:"Uložit dokument",import_doc:"Importovat SVG",align_to_page:"Zarovnat element na stránku",align_bottom:"Zarovnat dolů",align_center:"Zarovnat nastřed",align_left:"Zarovnat doleva",align_middle:"Zarovnat nastřed",align_right:"Zarovnat doprava",align_top:"Zarovnat nahoru",mode_select:"Výběr a transformace objektů",mode_fhpath:"Kresba od ruky",mode_line:"Úsečka",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Obdélník volnou rukou",mode_ellipse:"Elipsa",mode_circle:"Kružnice",mode_fhellipse:"Elipsa volnou rukou",mode_path:"Křivka",mode_text:"Text",mode_image:"Obrázek",mode_zoom:"Přiblížení",no_embed:"POZOR: Obrázek nelze uložit s dokumentem. Bude zobrazován z adresáře, kde se nyní nachází.",undo:"Zpět",redo:"Znovu",tool_source:"Upravovat SVG kód",wireframe_mode:"Zobrazit jen kostru",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Seskupit objekty",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Objekt na křivku",reorient_path:"Změna orientace křivky",ungroup:"Zrušit seskupení",docprops:"Vlastnosti dokumentu",editor_homepage:"SVG-Edit Home Page",move_bottom:"Vrstvu úplně dospodu",move_top:"Vrstvu úplně nahoru",node_clone:"Vložit nový uzel",node_delete:"Ostranit uzel",node_link:"Provázat ovládací body uzlu",add_subpath:"Přidat další součást křivky",openclose_path:"Otevřít/zavřít součást křivky",source_save:"Uložit",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Vrstva",layers:"Layers",del:"Odstranit vrstvu",move_down:"Přesunout vrstvu níž",new:"Přidat vrstvu",rename:"Přejmenovat vrstvu",move_up:"Přesunout vrstvu výš",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Přesunout objekty do:",move_selected:"Přesunout objekty do jiné vrstvy"},config:{image_props:"Vlastnosti dokumentu",doc_title:"Název",doc_dims:"Vlastní velikost",included_images:"Vložené obrázky",image_opt_embed:"Vkládat do dokumentu",image_opt_ref:"Jen odkazem",editor_prefs:"Nastavení editoru",icon_size:"Velikost ikon",language:"Jazyk",background:"Obrázek v pozadí editoru",editor_img_url:"Image URL",editor_bg_note:"Pozor: obrázek v pozadí nebude uložen jako součást dokumentu.",icon_large:"velké",icon_medium:"střední",icon_small:"malé",icon_xlarge:"největší",select_predefined:"vybrat předdefinovaný:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Nevhodná hodnota",noContentToFitTo:"Vyberte oblast pro přizpůsobení",dupeLayerName:"Taková vrstva už bohužel existuje",enterUniqueLayerName:"Zadejte prosím jedinečné jméno pro vrstvu",enterNewLayerName:"Zadejte prosím jméno pro novou vrstvu",layerHasThatName:"Vrstva už se tak jmenuje",QmoveElemsToLayer:"Opravdu chcete přesunout vybrané objekty do vrstvy '%s'?",QwantToClear:"Opravdu chcete smazat současný dokument?\nHistorie změn bude také smazána.",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"Chyba v parsování zdrojového kódu SVG.\nChcete se vrátit k původnímu?",QignoreSourceChanges:"Opravdu chcete stornovat změny provedené v SVG kódu?",featNotSupported:"Tato vlastnost ještě není k dispozici",enterNewImgURL:"Vložte adresu URL, na které se nachází vkládaný obrázek",defsFailOnSave:"POZOR: Kvůli nedokonalosti Vašeho prohlížeče se mohou některé části dokumentu špatně vykreslovat (mohou chybět barevné přechody nebo některé objekty). Po uložení dokumentu by se ale vše mělo zobrazovat správně.",loadingImage:"Nahrávám obrázek ...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Mohou se vyskytnout následující problémy: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),NF=Object.freeze({__proto__:null,default:{lang:"cy",dir:"ltr",common:{ok:"Cadw",cancel:"Canslo",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Cliciwch yma i lenwi newid lliw, sifft-cliciwch i newid lliw strôc",zoom_level:"Newid lefel chwyddo",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"Newid lliw llenwi",stroke_color:"Newid lliw strôc",stroke_style:"Newid arddull strôc diferyn",stroke_width:"Lled strôc Newid",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Ongl cylchdro Newid",blur:"Change gaussian blur value",opacity:"Newid dewis Didreiddiad eitem",circle_cx:"CX Newid cylch yn cydlynu",circle_cy:"Newid cylch's cy gydgysylltu",circle_r:"Newid radiws cylch yn",ellipse_cx:"Newid Ellipse yn CX gydgysylltu",ellipse_cy:"Newid Ellipse yn cydlynu cy",ellipse_rx:"Radiws Newid Ellipse's x",ellipse_ry:"Radiws Newid Ellipse yn y",line_x1:"Newid llinell yn cychwyn x gydgysylltu",line_x2:"Newid llinell yn diweddu x gydgysylltu",line_y1:"Newid llinell ar y cychwyn yn cydlynu",line_y2:"Newid llinell yn dod i ben y gydgysylltu",rect_height:"Uchder petryal Newid",rect_width:"Lled petryal Newid",corner_radius:"Newid Hirsgwâr Corner Radiws",image_width:"Lled delwedd Newid",image_height:"Uchder delwedd Newid",image_url:"Newid URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Cynnwys testun Newid",font_family:"Newid Font Teulu",font_size:"Newid Maint Ffont",bold:"Testun Bras",italic:"Italig Testun"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Newid lliw cefndir / Didreiddiad",connector_no_arrow:"No arrow",fitToContent:"Ffit i Cynnwys",fit_to_all:"Yn addas i bawb content",fit_to_canvas:"Ffit i ofyn",fit_to_layer_content:"Ffit cynnwys haen i",fit_to_sel:"Yn addas at ddewis",align_relative_to:"Alinio perthynas i ...",relativeTo:"cymharol i:",page:"tudalen",largest_object:"gwrthrych mwyaf",selected_objects:"gwrthrychau etholedig",smallest_object:"lleiaf gwrthrych",new_doc:"Newydd Delwedd",open_doc:"Delwedd Agored",export_img:"Export",save_doc:"Cadw Delwedd",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"Alinio Gwaelod",align_center:"Alinio Center",align_left:"Alinio Chwith",align_middle:"Alinio Canol",align_right:"Alinio Hawl",align_top:"Alinio Top",mode_select:"Dewiswch Offer",mode_fhpath:"Teclyn pensil",mode_line:"Llinell Offer",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Hand rhad ac am ddim Hirsgwâr",mode_ellipse:"Ellipse",mode_circle:"Cylch",mode_fhellipse:"Rhad ac am ddim Hand Ellipse",mode_path:"Offer poly",mode_text:"Testun Offer",mode_image:"Offer Delwedd",mode_zoom:"Offer Chwyddo",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Dadwneud",redo:"Ail-wneud",tool_source:"Golygu Ffynhonnell",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Elfennau Grŵp",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Elfennau Ungroup",docprops:"Document Eiddo",editor_homepage:"SVG-Edit Home Page",move_bottom:"Symud i'r Gwaelod",move_top:"Symud i'r Top",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Cadw",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Layer",layers:"Layers",del:"Dileu Haen",move_down:"Symud Haen i Lawr",new:"Haen Newydd",rename:"Ail-enwi Haen",move_up:"Symud Haen Up",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",select_predefined:"Rhagosodol Dewis:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),LF=Object.freeze({__proto__:null,default:{lang:"da",dir:"ltr",common:{ok:"Gemme",cancel:"Annuller",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Klik for at ændre fyldfarve, shift-klik for at ændre stregfarve",zoom_level:"Skift zoomniveau",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"Skift fyldfarve",stroke_color:"Skift stregfarve",stroke_style:"Skift slagtilfælde Dash stil",stroke_width:"Skift slagtilfælde bredde",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Skift rotationsvinkel",blur:"Change gaussian blur value",opacity:"Skift valgte element opacitet",circle_cx:"Skift cirklens cx koordinere",circle_cy:"Skift cirklens cy koordinere",circle_r:"Skift cirklens radius",ellipse_cx:"Skift ellipse's cx koordinere",ellipse_cy:"Skift ellipse's cy koordinere",ellipse_rx:"Skift ellipse's x radius",ellipse_ry:"Skift ellipse's y radius",line_x1:"Skift linie's start x-koordinat",line_x2:"Skift Line's slutter x-koordinat",line_y1:"Skift linjens start y-koordinat",line_y2:"Skift Line's slutter y-koordinat",rect_height:"Skift rektangel højde",rect_width:"Skift rektanglets bredde",corner_radius:"Skift Rektangel Corner Radius",image_width:"Skift billede bredde",image_height:"Skift billede højde",image_url:"Skift webadresse",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Skift tekst indhold",font_family:"Skift Font Family",font_size:"Skift skriftstørrelse",bold:"Fed tekst",italic:"Italic Text"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Skift baggrundsfarve / uigennemsigtighed",connector_no_arrow:"No arrow",fitToContent:"Tilpas til indhold",fit_to_all:"Passer til alt indhold",fit_to_canvas:"Tilpas til lærred",fit_to_layer_content:"Tilpas til lag indhold",fit_to_sel:"Tilpas til udvælgelse",align_relative_to:"Juster i forhold til ...",relativeTo:"i forhold til:",page:"side",largest_object:"største objekt",selected_objects:"valgte objekter",smallest_object:"mindste objekt",new_doc:"Nyt billede",open_doc:"Open SVG",export_img:"Export",save_doc:"Gem billede",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"Juster Bottom",align_center:"Centrer",align_left:"Venstrejusteret",align_middle:"Juster Mellemøsten",align_right:"Højrejusteret",align_top:"Juster Top",mode_select:"Select Tool",mode_fhpath:"Pencil Tool",mode_line:"Line Tool",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Free-Hand Rektangel",mode_ellipse:"Ellipse",mode_circle:"Cirkel",mode_fhellipse:"Free-Hand Ellipse",mode_path:"Path Tool",mode_text:"Tekstværktøj",mode_image:"Image Tool",mode_zoom:"Zoom Tool",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Fortryd",redo:"Redo",tool_source:"Edit Source",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Gruppe Elements",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Opdel Elements",docprops:"Document Properties",editor_homepage:"SVG-Edit Home Page",move_bottom:"Flyt til bund",move_top:"Flyt til toppen",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Gemme",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Layer",layers:"Layers",del:"Slet Layer",move_down:"Flyt lag ned",new:"New Layer",rename:"Omdøb Layer",move_up:"Flyt Layer Up",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",select_predefined:"Vælg foruddefinerede:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),TF=Object.freeze({__proto__:null,default:{lang:"de",dir:"ltr",common:{ok:"OK",cancel:"Abbrechen",key_backspace:"Rücktaste",key_del:"Löschen",key_down:"nach unten",key_up:"nach oben",more_opts:"Mehr Optionen",url:"URL",width:"Breite",height:"Höhe"},misc:{powered_by:"powered by"},ui:{toggle_stroke_tools:"Zeige/Verberge weitere Linien-Werkzeuge",palette_info:"Klick zum Ändern der Füllfarbe, Shift-Klick zum Ändern der Linienfarbe",zoom_level:"vergrößern",panel_drag:"Nach links/rechts ziehen, um die Größe vom Seitenpanel zu ändern",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Element identifizieren",fill_color:"Füllfarbe ändern",stroke_color:"Linienfarbe ändern",stroke_style:"Linienstil ändern",stroke_width:"Linienbreite ändern",pos_x:"Ändere die X-Koordinate",pos_y:"Ändere die Y-Koordinate",linecap_butt:"Form der Linienendung: Stumpf",linecap_round:"Form der Linienendung: Rund",linecap_square:"Form der Linienendung: Rechteckig",linejoin_bevel:"Zusammentreffen von zwei Linien: abgeschrägte Kante",linejoin_miter:"Zusammentreffen von zwei Linien: Gehrung",linejoin_round:"Zusammentreffen von zwei Linien: Rund",angle:"Drehwinkel ändern",blur:"Ändere Wert des Gaußschen Weichzeichners",opacity:"Opazität des ausgewählten Objekts ändern",circle_cx:"Kreiszentrum (cx) ändern",circle_cy:"Kreiszentrum (cy) ändern",circle_r:"Kreisradius (r) ändern",ellipse_cx:"Ellipsenzentrum (cx) ändern",ellipse_cy:"Ellipsenzentrum (cy) ändern",ellipse_rx:"Ellipsenradius (x) ändern",ellipse_ry:"Ellipsenradius (y) ändern",line_x1:"X-Koordinate des Linienanfangs ändern",line_x2:"X-Koordinate des Linienendes ändern",line_y1:"Y-Koordinate des Linienanfangs ändern",line_y2:"Y-Koordinate des Linienendes ändern",rect_height:"Höhe des Rechtecks ändern",rect_width:"Breite des Rechtecks ändern",corner_radius:"Eckenradius des Rechtecks ändern",image_width:"Bildbreite ändern",image_height:"Bildhöhe ändern",image_url:"URL ändern",node_x:"Ändere die X-Koordinate des Knoten",node_y:"Ändere die Y-Koordinate des Knoten",seg_type:"Ändere den Typ des Segments",straight_segments:"Gerade",curve_segments:"Kurve",text_contents:"Textinhalt erstellen und bearbeiten",font_family:"Schriftart wählen",font_size:"Schriftgröße einstellen",bold:"Fetter Text",italic:"Kursiver Text"},tools:{main_menu:"Hauptmenü",bkgnd_color_opac:"Hintergrundfarbe ändern / Opazität",connector_no_arrow:"Kein Pfeil",fitToContent:"An den Inhalt anpassen",fit_to_all:"An gesamten Inhalt anpassen",fit_to_canvas:"An die Zeichenfläche anpassen",fit_to_layer_content:"An Inhalt der Ebene anpassen",fit_to_sel:"An die Auswahl anpassen",align_relative_to:"Relativ zu einem anderem Objekt ausrichten …",relativeTo:"im Vergleich zu:",page:"Seite",largest_object:"größtes Objekt",selected_objects:"gewählte Objekte",smallest_object:"kleinstes Objekt",new_doc:"Neues Bild",open_doc:"Bild öffnen",export_img:"Export",save_doc:"Bild speichern",import_doc:"Importiere SVG",align_to_page:"Element an Seite ausrichten",align_bottom:"Unten ausrichten",align_center:"Zentriert ausrichten",align_left:"Linksbündig ausrichten",align_middle:"In der Mitte ausrichten",align_right:"Rechtsbündig ausrichten",align_top:"Oben ausrichten",mode_select:"Objekte auswählen und verändern",mode_fhpath:"Freihandlinien zeichnen",mode_line:"Linien zeichnen",mode_rect:"Rechteck-Werkzeug",mode_square:"Quadrat-Werkzeug",mode_fhrect:"Freihand-Rechteck",mode_ellipse:"Ellipse",mode_circle:"Kreis",mode_fhellipse:"Freihand-Ellipse",mode_path:"Pfad zeichnen",mode_text:"Text erstellen und bearbeiten",mode_image:"Bild einfügen",mode_zoom:"Zoomfaktor vergrößern oder verringern",no_embed:"Hinweis: Dieses Bild kann nicht eingebettet werden. Eine Anzeige hängt von diesem Pfad ab.",undo:"Rückgängig",redo:"Wiederherstellen",tool_source:"Quellcode bearbeiten",wireframe_mode:"Drahtmodell-Modus",clone:"Element(e) klonen",del:"Element(e) löschen",group_elements:"Element(e) gruppieren",make_link:"Link erstellen",set_link_url:"Link setzen (leer lassen zum Entfernen)",to_path:"Gewähltes Objekt in einen Pfad konvertieren",reorient_path:"Neuausrichtung des Pfades",ungroup:"Gruppierung aufheben",docprops:"Dokument-Eigenschaften",editor_homepage:"SVG-Edit Home Page",move_bottom:"Die gewählten Objekte nach ganz unten verschieben",move_top:"Die gewählten Objekte nach ganz oben verschieben",node_clone:"Klone den Knoten",node_delete:"Lösche den Knoten",node_link:"Gekoppelte oder separate Kontrollpunkte für die Bearbeitung des Pfades",add_subpath:"Teilpfad hinzufügen",openclose_path:"Öffne/Verbinde Unterpfad",source_save:"Änderungen akzeptieren",cut:"Ausschneiden",copy:"Kopieren",paste:"Einfügen",paste_in_place:"Bei Originalposition einfügen",delete:"Löschen",group:"Gruppieren",move_front:"Nach ganz oben verschieben",move_up:"Hochschieben",move_down:"Herunterschieben",move_back:"Nach ganz unten verschieben"},layers:{layer:"Ebene",layers:"Ebenen",del:"Ebene löschen",move_down:"Ebene nach unten verschieben",new:"Neue Ebene",rename:"Ebene umbenennen",move_up:"Ebene nach oben verschieben",dupe:"Ebene duplizieren",merge_down:"Nach unten zusammenführen",merge_all:"Alle zusammenführen",move_elems_to:"Verschiebe ausgewählte Objekte:",move_selected:"Verschiebe ausgewählte Objekte auf eine andere Ebene"},config:{image_props:"Bildeigenschaften",doc_title:"Titel",doc_dims:"Dimension der Zeichenfläche",included_images:"Eingefügte Bilder",image_opt_embed:"Daten einbetten (lokale Dateien)",image_opt_ref:"Benutze die Dateireferenz",editor_prefs:"Editor-Einstellungen",icon_size:"Symbol-Abmessungen",language:"Sprache",background:"Editor-Hintergrund",editor_img_url:"Bild-URL",editor_bg_note:"Anmerkung: Der Hintergrund wird mit dem Bild nicht gespeichert.",icon_large:"Groß",icon_medium:"Mittel",icon_small:"Klein",icon_xlarge:"Sehr Groß",select_predefined:"Auswahl einer vordefinierten:",units_and_rulers:"Einheiten und Lineale",show_rulers:"Zeige Lineale",base_unit:"Basiseinheit:",grid:"Gitternetz",snapping_onoff:"Einrasten an/aus",snapping_stepsize:"Einrastabstand:",grid_color:"Gitterfarbe"},notification:{invalidAttrValGiven:"Fehlerhafter Wert",noContentToFitTo:"Kein Inhalt anzupassen",dupeLayerName:"Eine Ebene hat bereits diesen Namen",enterUniqueLayerName:"Verwenden Sie einen eindeutigen Namen für die Ebene",enterNewLayerName:"Geben Sie bitte einen neuen Namen für die Ebene ein",layerHasThatName:"Eine Ebene hat bereits diesen Namen",QmoveElemsToLayer:"Verschiebe ausgewählte Objekte in die Ebene '%s'?",QwantToClear:"Möchten Sie die Zeichnung löschen?\nDadurch wird auch die Rückgängig-Funktion zurückgesetzt!",QwantToOpen:"Möchten Sie eine neue Datei öffnen?\nDadurch wird auch die Rückgängig-Funktion zurückgesetzt!",QerrorsRevertToSource:"Es gibt Parser-Fehler in der SVG-Quelle.\nDie Original-SVG wiederherstellen?",QignoreSourceChanges:"Sollen die Änderungen an der SVG-Quelle ignoriert werden?",featNotSupported:"Diese Eigenschaft wird nicht unterstützt",enterNewImgURL:"Geben Sie die URL für das neue Bild an",defsFailOnSave:"Hinweis: Aufgrund eines Fehlers in Ihrem Browser kann dieses Bild falsch angezeigt werden (fehlende Gradienten oder Elemente). Es wird jedoch richtig angezeigt, sobald es gespeichert wird.",loadingImage:"Bild wird geladen, bitte warten ...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Beachten Sie außerdem die folgenden Probleme: ",unsavedChanges:"Es sind nicht-gespeicherte Änderungen vorhanden.",enterNewLinkURL:"Geben Sie die neue URL ein",errorLoadingSVG:"Fehler: Kann SVG-Daten nicht laden",URLLoadFail:"Kann von dieser URL nicht laden",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),PF=Object.freeze({__proto__:null,default:{lang:"el",dir:"ltr",common:{ok:"Αποθηκεύω",cancel:"Άκυρο",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Κάντε κλικ για να συμπληρώσετε την αλλαγή χρώματος, στροφή κλικ για να αλλάξετε το χρώμα εγκεφαλικό",zoom_level:"Αλλαγή επίπεδο μεγέθυνσης",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"Αλλαγή συμπληρώστε χρώμα",stroke_color:"Αλλαγή χρώματος εγκεφαλικό",stroke_style:"Αλλαγή στυλ παύλα εγκεφαλικό",stroke_width:"Αλλαγή πλάτος γραμμής",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Αλλαγή γωνία περιστροφής",blur:"Change gaussian blur value",opacity:"Αλλαγή αδιαφάνεια επιλεγμένο σημείο",circle_cx:"Cx Αλλαγή κύκλου συντονίζουν",circle_cy:"Αλλαγή κύκλου cy συντονίζουν",circle_r:"Αλλαγή ακτίνα κύκλου",ellipse_cx:"Αλλαγή ellipse του CX συντονίζουν",ellipse_cy:"Αλλαγή ellipse του cy συντονίζουν",ellipse_rx:"X ακτίνα Αλλαγή ellipse του",ellipse_ry:"Y ακτίνα Αλλαγή ellipse του",line_x1:"Αλλαγή γραμμής εκκίνησης x συντονίζουν",line_x2:"Αλλαγή γραμμής λήγει x συντονίζουν",line_y1:"Αλλαγή γραμμής εκκίνησης y συντονίζουν",line_y2:"Αλλαγή γραμμής λήγει y συντονίζουν",rect_height:"Αλλαγή ύψος ορθογωνίου",rect_width:"Αλλαγή πλάτους ορθογώνιο",corner_radius:"Αλλαγή ορθογώνιο Corner Radius",image_width:"Αλλαγή πλάτος εικόνας",image_height:"Αλλαγή ύψος εικόνας",image_url:"Αλλαγή URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Αλλαγή περιεχόμενο κειμένου",font_family:"Αλλαγή γραμματοσειράς Οικογένεια",font_size:"Αλλαγή μεγέθους γραμματοσειράς",bold:"Bold Text",italic:"Πλάγιους"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Αλλαγή χρώματος φόντου / αδιαφάνεια",connector_no_arrow:"No arrow",fitToContent:"Fit to Content",fit_to_all:"Ταιριάζει σε όλο το περιεχόμενο",fit_to_canvas:"Προσαρμογή στο μουσαμά",fit_to_layer_content:"Προσαρμογή στο περιεχόμενο στρώμα",fit_to_sel:"Fit to επιλογή",align_relative_to:"Στοίχιση σε σχέση με ...",relativeTo:"σε σχέση με:",page:"σελίδα",largest_object:"μεγαλύτερο αντικείμενο",selected_objects:"εκλέγεται αντικείμενα",smallest_object:"μικρότερο αντικείμενο",new_doc:"Νέα εικόνα",open_doc:"Άνοιγμα εικόνας",export_img:"Export",save_doc:"Αποθήκευση εικόνας",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"Στοίχισηκάτω",align_center:"Στοίχισηστοκέντρο",align_left:"Στοίχισηαριστερά",align_middle:"Ευθυγράμμιση Μέση",align_right:"Στοίχισηδεξιά",align_top:"Στοίχισηπάνω",mode_select:"Select Tool",mode_fhpath:"Εργαλείομολυβιού",mode_line:"Line Tool",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Δωρεάν-Hand ορθογώνιο",mode_ellipse:"Ellipse",mode_circle:"Κύκλος",mode_fhellipse:"Δωρεάν-Hand Ellipse",mode_path:"Path Tool",mode_text:"Κείμενο Tool",mode_image:"Image Tool",mode_zoom:"Zoom Tool",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Αναίρεση",redo:"Redo",tool_source:"Επεξεργασία Πηγή",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Ομάδα Στοιχεία",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Κατάργηση ομαδοποίησης Στοιχεία",docprops:"Ιδιότητες εγγράφου",editor_homepage:"SVG-Edit Home Page",move_bottom:"Μετακίνηση προς τα κάτω",move_top:"Μετακίνηση στην αρχή",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Αποθηκεύω",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Layer",layers:"Layers",del:"Διαγραφήστρώματος",move_down:"Μετακίνηση Layer Down",new:"Νέο Layer",rename:"Μετονομασία Layer",move_up:"Μετακίνηση Layer Up",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",select_predefined:"Επιλογή προκαθορισμένων:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),FF=Object.freeze({__proto__:null,default:{lang:"en",dir:"ltr",common:{ok:"OK",cancel:"Cancel",key_backspace:"Backspace",key_del:"Del",key_down:"Down",key_up:"Up",more_opts:"More options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Click to change fill color, shift-click to change stroke color",zoom_level:"Change zoom level",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"Change fill color",stroke_color:"Change stroke color",stroke_style:"Change stroke dash style",stroke_width:"Change stroke width by 1, shift-click to change by 0.1",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Change rotation angle",blur:"Change gaussian blur value",opacity:"Change selected item opacity",circle_cx:"Change circle's cx coordinate",circle_cy:"Change circle's cy coordinate",circle_r:"Change circle's radius",ellipse_cx:"Change ellipse's cx coordinate",ellipse_cy:"Change ellipse's cy coordinate",ellipse_rx:"Change ellipse's x radius",ellipse_ry:"Change ellipse's y radius",line_x1:"Change line's starting x coordinate",line_x2:"Change line's ending x coordinate",line_y1:"Change line's starting y coordinate",line_y2:"Change line's ending y coordinate",rect_height:"Change rectangle height",rect_width:"Change rectangle width",corner_radius:"Change Rectangle Corner Radius",image_width:"Change image width",image_height:"Change image height",image_url:"Change URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Change text contents",font_family:"Change Font Family",font_size:"Change Font Size",bold:"Bold Text [B]",italic:"Italic Text [I]"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Change background color/opacity",connector_no_arrow:"No arrow",fitToContent:"Fit to Content",fit_to_all:"Fit to all content",fit_to_canvas:"Fit to canvas",fit_to_layer_content:"Fit to layer content",fit_to_sel:"Fit to selection",align_relative_to:"Align relative to ...",relativeTo:"relative to:",page:"page",largest_object:"largest object",selected_objects:"selected objects",smallest_object:"smallest object",new_doc:"New Image",open_doc:"Open SVG",export_img:"Export",save_doc:"Save Image",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"Align Bottom",align_center:"Align Center",align_left:"Align Left",align_middle:"Align Middle",align_right:"Align Right",align_top:"Align Top",mode_select:"Select Tool",mode_fhpath:"Pencil Tool",mode_line:"Line Tool",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Free-Hand Rectangle",mode_ellipse:"Ellipse",mode_circle:"Circle",mode_fhellipse:"Free-Hand Ellipse",mode_path:"Path Tool",mode_text:"Text Tool",mode_image:"Image Tool",mode_zoom:"Zoom Tool [Ctrl+Up/Down]",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Undo [Z]",redo:"Redo [Y]",tool_source:"Edit Source [U]",wireframe_mode:"Wireframe Mode",clone:"Duplicate Element(s) [D]",del:"Delete Element(s) [Delete/Backspace]",group_elements:"Group Elements [G]",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Ungroup Elements",docprops:"Document Properties [D]",editor_homepage:"SVG-Edit Home Page",move_bottom:"Send to Back",move_top:"Bring to Front",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Apply Changes",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Layer",layers:"Layers",del:"Delete Layer",move_down:"Move Layer Down",new:"New Layer",rename:"Rename Layer",move_up:"Move Layer Up",dupe:"Duplicate Layer...",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title:",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",icon_size:"Icon size:",language:"Language:",background:"Editor Background",editor_img_url:"Image URL:",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",select_predefined:"Select predefined:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color:"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),UF=Object.freeze({__proto__:null,default:{lang:"es",dir:"ltr",common:{ok:"OK",cancel:"Cancelar",key_backspace:"retroceso",key_del:"suprimir",key_down:"abajo",key_up:"arriba",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Mostrar/ocultar herramientas de trazo adicionales",palette_info:"Haga clic para cambiar el color de relleno. Pulse Mayús y haga clic para cambiar el color del contorno.",zoom_level:"Cambiar el nivel de zoom",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"Cambiar el color de relleno",stroke_color:"Cambiar el color del contorno",stroke_style:"Cambiar el estilo del trazo del contorno",stroke_width:"Cambiar el grosor del contorno",pos_x:"Cambiar la posición horizontal X",pos_y:"Cambiar la posición vertical Y",linecap_butt:"Final de la línea: en el nodo",linecap_round:"Final de la línea: redondeada",linecap_square:"Final de la línea: cuadrada",linejoin_bevel:"Unión: biselada",linejoin_miter:"Unión: recta",linejoin_round:"Unión: redondeada",angle:"Cambiar ángulo de rotación",blur:"Ajustar desenfoque gausiano",opacity:"Cambiar la opacidad del objeto seleccionado",circle_cx:"Cambiar la posición horizonral CX del círculo",circle_cy:"Cambiar la posición vertical CY del círculo",circle_r:"Cambiar el radio del círculo",ellipse_cx:"Cambiar la posición horizontal CX de la elipse",ellipse_cy:"Cambiar la posición vertical CY de la elipse",ellipse_rx:"Cambiar el radio horizontal X de la elipse",ellipse_ry:"Cambiar el radio vertical Y de la elipse",line_x1:"Cambiar la posición horizontal X del comienzo de la línea",line_x2:"Cambiar la posición horizontal X del final de la línea",line_y1:"Cambiar la posición vertical Y del comienzo de la línea",line_y2:"Cambiar la posición vertical Y del final de la línea",rect_height:"Cambiar la altura del rectángulo",rect_width:"Cambiar el ancho rectángulo",corner_radius:"Cambiar el radio de las esquinas del rectángulo",image_width:"Cambiar el ancho de la imagen",image_height:"Cambiar la altura de la imagen",image_url:"Modificar URL",node_x:"Cambiar la posición horizontal X del nodo",node_y:"Cambiar la posición vertical Y del nodo",seg_type:"Cambiar el tipo de segmento",straight_segments:"Recta",curve_segments:"Curva",text_contents:"Modificar el texto",font_family:"Tipo de fuente",font_size:"Tamaño de la fuente",bold:"Texto en negrita",italic:"Texto en cursiva"},tools:{main_menu:"Menú principal",bkgnd_color_opac:"Cambiar color de fondo / opacidad",connector_no_arrow:"Sin flecha",fitToContent:"Ajustar al contenido",fit_to_all:"Ajustar a todo el contenido",fit_to_canvas:"Ajustar al lienzo",fit_to_layer_content:"Ajustar al contenido de la capa",fit_to_sel:"Ajustar a la selección",align_relative_to:"Alinear con respecto a ...",relativeTo:"en relación con:",page:"Página",largest_object:"El objeto más grande",selected_objects:"Objetos seleccionados",smallest_object:"El objeto más pequeño",new_doc:"Nueva imagen",open_doc:"Abrir imagen",export_img:"Export",save_doc:"Guardar imagen",import_doc:"Importar un archivo SVG",align_to_page:"Align Element to Page",align_bottom:"Alinear parte inferior",align_center:"Centrar verticalmente",align_left:"Alinear lado izquierdo",align_middle:"Centrar horizontalmente",align_right:"Alinear lado derecho",align_top:"Alinear parte superior",mode_select:"Herramienta de selección",mode_fhpath:"Herramienta de lápiz",mode_line:"Trazado de líneas",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Rectángulo a mano alzada",mode_ellipse:"Elipse",mode_circle:"Círculo",mode_fhellipse:"Elipse a mano alzada",mode_path:"Herramienta de trazado",mode_text:"Insertar texto",mode_image:"Insertar imagen",mode_zoom:"Zoom",no_embed:"NOTA: La imagen no puede ser integrada. El contenido mostrado dependerá de la imagen ubicada en esta ruta. ",undo:"Deshacer",redo:"Rehacer",tool_source:"Editar código fuente",wireframe_mode:"Modo marco de alambre",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Agrupar objetos",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convertir a trazado",reorient_path:"Reorientar el trazado",ungroup:"Desagrupar objetos",docprops:"Propiedades del documento",editor_homepage:"SVG-Edit Home Page",move_bottom:"Mover abajo",move_top:"Mover arriba",node_clone:"Clonar nodo",node_delete:"Suprimir nodo",node_link:"Enlazar puntos de control",add_subpath:"Añadir subtrazado",openclose_path:"Open/close sub-path",source_save:"Aplicar cambios",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Capa",layers:"Layers",del:"Suprimir capa",move_down:"Mover la capa hacia abajo",new:"Nueva capa",rename:"Renombrar capa",move_up:"Mover la capa hacia arriba",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Desplazar objetos a:",move_selected:"Mover los objetos seleccionados a otra capa"},config:{image_props:"Propiedades de la Imagen",doc_title:"Título",doc_dims:"Tamaño del lienzo",included_images:"Imágenes integradas",image_opt_embed:"Integrar imágenes en forma de datos (archivos locales)",image_opt_ref:"Usar la referencia del archivo",editor_prefs:"Preferencias del Editor",icon_size:"Tamaño de los iconos",language:"Idioma",background:"Fondo del editor",editor_img_url:"Image URL",editor_bg_note:"Nota: El fondo no se guardará junto con la imagen.",icon_large:"Grande",icon_medium:"Mediano",icon_small:"Pequeño",icon_xlarge:"Muy grande",select_predefined:"Seleccionar predefinido:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Valor no válido",noContentToFitTo:"No existe un contenido al que ajustarse.",dupeLayerName:"¡Ya existe una capa con este nombre!",enterUniqueLayerName:"Introduzca otro nombre distinto para la capa.",enterNewLayerName:"Introduzca el nuevo nombre de la capa.",layerHasThatName:"El nombre introducido es el nombre actual de la capa.",QmoveElemsToLayer:"¿Desplazar los elementos seleccionados a la capa '%s'?",QwantToClear:"¿Desea borrar el dibujo?\n¡El historial de acciones también se borrará!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"Existen errores sintácticos en su código fuente SVG.\n¿Desea volver al código fuente SVG original?",QignoreSourceChanges:"¿Desea ignorar los cambios realizados sobre el código fuente SVG?",featNotSupported:"Función no compatible.",enterNewImgURL:"Introduzca la nueva URL de la imagen.",defsFailOnSave:"NOTA: Debido a un fallo de su navegador, es posible que la imagen aparezca de forma incorrecta (ciertas gradaciones o elementos podría perderse). La imagen aparecerá en su forma correcta una vez guardada.",loadingImage:"Cargando imagen. Espere, por favor.",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Existen además los problemas siguientes:",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),IF=Object.freeze({__proto__:null,default:{lang:"et",dir:"ltr",common:{ok:"Salvestama",cancel:"Tühista",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Click muuta täitke värvi, Shift-nuppu, et muuta insult värvi",zoom_level:"Muuda suumi taset",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"Muuda täitke värvi",stroke_color:"Muuda insult värvi",stroke_style:"Muuda insult kriips stiil",stroke_width:"Muuda insult laius",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Muuda Pöördenurk",blur:"Change gaussian blur value",opacity:"Muuda valitud elemendi läbipaistmatus",circle_cx:"Muuda ringi's cx kooskõlastada",circle_cy:"Muuda ringi's cy kooskõlastada",circle_r:"Muuda ring on raadiusega",ellipse_cx:"Muuda ellips's cx kooskõlastada",ellipse_cy:"Muuda ellips's cy kooskõlastada",ellipse_rx:"Muuda ellips's x raadius",ellipse_ry:"Muuda ellips's y raadius",line_x1:"Muuda rööbastee algab x-koordinaadi",line_x2:"Muuda Line lõpeb x-koordinaadi",line_y1:"Muuda rööbastee algab y-koordinaadi",line_y2:"Muuda Line lõppenud y-koordinaadi",rect_height:"Muuda ristküliku kõrgus",rect_width:"Muuda ristküliku laius",corner_radius:"Muuda ristkülik Nurgakabe Raadius",image_width:"Muuda pilt laius",image_height:"Muuda pilt kõrgus",image_url:"Change URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Muuda teksti sisu",font_family:"Muutke Kirjasinperhe",font_size:"Change font size",bold:"Rasvane kiri",italic:"Kursiiv"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Muuda tausta värvi / läbipaistmatus",connector_no_arrow:"No arrow",fitToContent:"Fit to Content",fit_to_all:"Sobita kogu sisu",fit_to_canvas:"Sobita lõuend",fit_to_layer_content:"Sobita kiht sisu",fit_to_sel:"Fit valiku",align_relative_to:"Viia võrreldes ...",relativeTo:"võrreldes:",page:"lehekülg",largest_object:"suurim objekt",selected_objects:"valitud objektide",smallest_object:"väikseim objekt",new_doc:"Uus pilt",open_doc:"Pildi avamine",export_img:"Export",save_doc:"Salvesta pilt",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"Viia Bottom",align_center:"Keskele joondamine",align_left:"Vasakjoondus",align_middle:"Viia Lähis -",align_right:"Paremjoondus",align_top:"Viia Üles",mode_select:"Vali Tool",mode_fhpath:"Pencil Tool",mode_line:"Line Tool",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Online-Hand Ristkülik",mode_ellipse:"Ellips",mode_circle:"Circle",mode_fhellipse:"Online-Hand Ellips",mode_path:"Path Tool",mode_text:"Tekst Tool",mode_image:"Pilt Tool",mode_zoom:"Zoom Tool",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Undo",redo:"Redo",tool_source:"Muuda Allikas",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Rühma elemendid",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Lõhu Elements",docprops:"Dokumendi omadused",editor_homepage:"SVG-Edit Home Page",move_bottom:"Liiguta alla",move_top:"Liiguta üles",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Salvestama",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Layer",layers:"Layers",del:"Kustuta Kiht",move_down:"Liiguta kiht alla",new:"Uus kiht",rename:"Nimeta kiht",move_up:"Liiguta kiht üles",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",select_predefined:"Valige eelmääratletud:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),RF=Object.freeze({__proto__:null,default:{lang:"fa",dir:"rtl",common:{ok:"تأیید",cancel:"لغو",key_backspace:"پس بر ",key_del:"حذف ",key_down:"پایین ",key_up:"بالا ",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"برای تغییر رنگ، کلیک کنید. برای تغییر رنگ لبه، کلید تبدیل (shift) را فشرده و کلیک کنید",zoom_level:"تغییر بزرگ نمایی",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"تغییر رنگ",stroke_color:"تغییر رنگ لبه",stroke_style:"تغییر نقطه چین لبه",stroke_width:"تغییر عرض لبه",pos_x:"تغییر مختصات X",pos_y:"تغییر مختصات Y",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"تغییر زاویه چرخش",blur:"Change gaussian blur value",opacity:"تغییر تاری عنصر انتخاب شده",circle_cx:"تغییر مختصات cx دایره",circle_cy:"تغییر مختصات cy دایره",circle_r:"تغییر شعاع دایره",ellipse_cx:"تغییر مختصات cx بیضی",ellipse_cy:"تغییر مختصات cy بیضی",ellipse_rx:"تغییر شعاع rx بیضی",ellipse_ry:"تغییر شعاع ry بیضی",line_x1:"تغییر مختصات x آغاز خط",line_x2:"تغییر مختصات x پایان خط",line_y1:"تغییر مختصات y آغاز خط",line_y2:"تغییر مختصات y پایان خط",rect_height:"تغییر ارتفاع مستطیل",rect_width:"تغییر عرض مستطیل",corner_radius:"شعاع گوشه:",image_width:"تغییر عرض تصویر",image_height:"تغییر ارتفاع تصویر",image_url:"تغییر نشانی وب (url)",node_x:"تغییر مختصات x نقطه",node_y:"تغییر مختصات y نقطه",seg_type:"تغییر نوع قطعه (segment)",straight_segments:"مستقیم",curve_segments:"منحنی",text_contents:"تغییر محتویات متن",font_family:"تغییر خانواده قلم",font_size:"تغییر اندازه قلم",bold:"متن توپر ",italic:"متن کج "},tools:{main_menu:"Main Menu",bkgnd_color_opac:"تغییر رنگ پس زمینه / تاری",connector_no_arrow:"No arrow",fitToContent:"هم اندازه شدن با محتوا",fit_to_all:"هم اندازه شدن با همه محتویات",fit_to_canvas:"هم اندازه شدن با صفحه مجازی (بوم)",fit_to_layer_content:"هم اندازه شدن با محتوای لایه",fit_to_sel:"هم اندازه شدن با اشیاء انتخاب شده",align_relative_to:"تراز نسبت به ...",relativeTo:"نسبت به:",page:"صفحه",largest_object:"بزرگترین شئ",selected_objects:"اشیاء انتخاب شده",smallest_object:"کوچکترین شئ",new_doc:"تصویر جدید ",open_doc:"باز کردن تصویر ",export_img:"Export",save_doc:"ذخیره تصویر ",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"تراز پایین",align_center:"وسط چین",align_left:"چپ چین",align_middle:"تراز میانه",align_right:"راست چین",align_top:"تراز بالا",mode_select:"ابزار انتخاب ",mode_fhpath:"ابزار مداد ",mode_line:"ابزار خط ",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"مستطیل با قابلیت تغییر پویا",mode_ellipse:"بیضی",mode_circle:"دایره",mode_fhellipse:"بیضی با قابلیت تغییر پویا",mode_path:"ابزار مسیر ",mode_text:"ابزار متن ",mode_image:"ابزار تصویر ",mode_zoom:"ابزار بزرگ نمایی ",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"واگرد ",redo:"ازنو ",tool_source:"ویرایش منبع ",wireframe_mode:"حالت نمایش لبه ها ",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"قرار دادن عناصر در گروه ",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"تبدیل به مسیر",reorient_path:"جهت دهی مجدد مسیر",ungroup:"خارج کردن عناصر از گروه ",docprops:"مشخصات سند ",editor_homepage:"SVG-Edit Home Page",move_bottom:"انتقال به پایین ترین ",move_top:"انتقال به بالاترین ",node_clone:"ایجاد کپی از نقطه",node_delete:"حذف نقطه",node_link:"پیوند دادن نقاط کنترل",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"اعمال تغییرات",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"حذف",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"لایه",layers:"Layers",del:"حذف لایه",move_down:"انتقال لایه به پایین",new:"لایه جدید",rename:"تغییر نام لایه",move_up:"انتقال لایه به بالا",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"انتقال عناصر به:",move_selected:"انتقال عناصر انتخاب شده به یک لایه متفاوت"},config:{image_props:"مشخصات تصویر",doc_title:"عنوان",doc_dims:"ابعاد صفحه مجازی (بوم)",included_images:"تصاویر گنجانده شده",image_opt_embed:"داده های جای داده شده (پرونده های محلی)",image_opt_ref:"استفاده از ارجاع به پرونده",editor_prefs:"تنظیمات ویراستار",icon_size:"اندازه شمایل",language:"زبان",background:"پس زمینه ویراستار",editor_img_url:"Image URL",editor_bg_note:"توجه: پس زمینه همراه تصویر ذخیره نخواهد شد.",icon_large:"بزرگ",icon_medium:"متوسط",icon_small:"کوچک",icon_xlarge:"خیلی بزرگ",select_predefined:"از پیش تعریف شده را انتخاب کنید:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"مقدار داده شده نامعتبر است",noContentToFitTo:"محتوایی برای هم اندازه شدن وجود ندارد",dupeLayerName:"لایه ای با آن نام وجود دارد!",enterUniqueLayerName:"لطفا یک نام لایه یکتا انتخاب کنید",enterNewLayerName:"لطفا نام لایه جدید را وارد کنید",layerHasThatName:"لایه از قبل آن نام را دارد",QmoveElemsToLayer:"عناصر انتخاب شده به لایه '%s' منتقل شوند؟",QwantToClear:"آیا مطمئن هستید که می خواهید نقاشی را پاک کنید؟\nاین عمل باعث حذف تاریخچه واگرد شما خواهد شد!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"در منبع SVG شما خطاهای تجزیه (parse) وجود داشت.\nبه منبع SVG اصلی بازگردانده شود؟",QignoreSourceChanges:"تغییرات اعمال شده در منبع SVG نادیده گرفته شوند؟",featNotSupported:"این ویژگی پشتیبانی نشده است",enterNewImgURL:"نشانی وب (url) تصویر جدید را وارد کنید",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),MF=Object.freeze({__proto__:null,default:{lang:"fi",dir:"ltr",common:{ok:"Tallentaa",cancel:"Peruuta",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Klikkaa muuttaa täyttöväri, Shift-click vaihtaa aivohalvauksen väriä",zoom_level:"Muuta suurennustaso",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"Muuta täyttöväri",stroke_color:"Muuta aivohalvaus väri",stroke_style:"Muuta aivohalvaus Dash tyyli",stroke_width:"Muuta aivohalvaus leveys",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Muuta kiertokulma",blur:"Change gaussian blur value",opacity:"Muuta valitun kohteen läpinäkyvyys",circle_cx:"Muuta Circlen CX koordinoida",circle_cy:"Muuta Circlen CY koordinoida",circle_r:"Muuta ympyrän säde",ellipse_cx:"Muuta ellipsi's CX koordinoida",ellipse_cy:"Muuta ellipsi's CY koordinoida",ellipse_rx:"Muuta ellipsi's x säde",ellipse_ry:"Muuta ellipsi n y säde",line_x1:"Muuta Linen alkaa x-koordinaatti",line_x2:"Muuta Linen päättyy x koordinoida",line_y1:"Muuta Linen alkaa y-koordinaatti",line_y2:"Muuta Linen päättyy y koordinoida",rect_height:"Muuta suorakaiteen korkeus",rect_width:"Muuta suorakaiteen leveys",corner_radius:"Muuta suorakaide Corner Säde",image_width:"Muuta kuvan leveys",image_height:"Muuta kuvan korkeus",image_url:"Muuta URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Muuta tekstin sisältö",font_family:"Muuta Font Family",font_size:"Muuta fontin kokoa",bold:"Lihavoitu teksti",italic:"Kursivoitu"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Vaihda taustaväri / sameuden",connector_no_arrow:"No arrow",fitToContent:"Sovita Content",fit_to_all:"Sovita kaikki content",fit_to_canvas:"Sovita kangas",fit_to_layer_content:"Sovita kerros sisältöön",fit_to_sel:"Sovita valinta",align_relative_to:"Kohdista suhteessa ...",relativeTo:"suhteessa:",page:"sivulta",largest_object:"Suurin kohde",selected_objects:"valittujen objektien",smallest_object:"pienin kohde",new_doc:"Uusi kuva",open_doc:"Avaa kuva",export_img:"Export",save_doc:"Save Image",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"Align Bottom",align_center:"Keskitä",align_left:"Tasaa vasemmalle",align_middle:"Kohdista Lähi",align_right:"Tasaa oikealle",align_top:"Kohdista Top",mode_select:"Valitse työkalu",mode_fhpath:"Kynätyökalu",mode_line:"Viivatyökalulla",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Free-Hand suorakaide",mode_ellipse:"Soikion",mode_circle:"Ympyrään",mode_fhellipse:"Free-Hand Ellipse",mode_path:"Path Tool",mode_text:"Työkalua",mode_image:"Image Tool",mode_zoom:"Suurennustyökalu",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Kumoa",redo:"Tulppaamalla ilmakanavan",tool_source:"Muokkaa lähdekoodipaketti",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Tuoteryhmään Elements",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Ungroup Elements",docprops:"Asiakirjan ominaisuudet",editor_homepage:"SVG-Edit Home Page",move_bottom:"Move to Bottom",move_top:"Move to Top",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Tallentaa",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Layer",layers:"Layers",del:"Poista Layer",move_down:"Siirrä Layer alas",new:"New Layer",rename:"Nimeä Layer",move_up:"Siirrä Layer",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",select_predefined:"Valitse ennalta:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),OF=Object.freeze({__proto__:null,default:{lang:"fr",dir:"ltr",common:{ok:"OK",cancel:"Annuler",key_backspace:"Retour Arr.",key_del:"Suppr.",key_down:"Bas",key_up:"Haut",more_opts:"Plus d'options",url:"URL",width:"Largeur",height:"Hauteur"},misc:{powered_by:"Propulsé par"},ui:{toggle_stroke_tools:"Montrer/cacher plus d'outils de contour",palette_info:"Cliquer pour changer la couleur de remplissage, Maj+clic pour changer la couleur de contour",zoom_level:"Changer le niveau de zoom",panel_drag:"Tirer vers la gauche/droite pour redimensionner le panneau",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identifier l'élément",fill_color:"Changer la couleur de remplissage",stroke_color:"Changer la couleur du contour",stroke_style:"Changer le style du contour",stroke_width:"Changer la largeur du contour de 1, Maj+clic pour changer la largeur de 0,1",pos_x:"Changer l'abscisse (coordonnée X)",pos_y:"Changer l'ordonnée (coordonnée Y)",linecap_butt:"Terminaison : Sur le nœud",linecap_round:"Terminaison : Arrondie",linecap_square:"Terminaison : Carrée",linejoin_bevel:"Raccord : Biseauté",linejoin_miter:"Raccord : Droit",linejoin_round:"Raccord : Arrondi",angle:"Changer l'angle de rotation",blur:"Changer la valeur du flou gaussien",opacity:"Changer l'opacité de l'élément sélectionné",circle_cx:"Changer la position horizontale cx du cercle",circle_cy:"Changer la position verticale cy du cercle",circle_r:"Changer le rayon du cercle",ellipse_cx:"Changer la position horizontale cx de l'ellipse",ellipse_cy:"Changer la position verticale cy de l'ellipse",ellipse_rx:"Changer le rayon horizontal x de l'ellipse",ellipse_ry:"Changer le rayon vertical y de l'ellipse",line_x1:"Changer la position horizontale x de début de la ligne",line_x2:"Changer la position horizontale x de fin de la ligne",line_y1:"Changer la position verticale y de début de la ligne",line_y2:"Changer la position verticale y de fin de la ligne",rect_height:"Changer la hauteur du rectangle",rect_width:"Changer la largeur du rectangle",corner_radius:"Changer le rayon des coins du rectangle",image_width:"Changer la largeur de l'image",image_height:"Changer la hauteur de l'image",image_url:"Modifier l'URL",node_x:"Changer la positon horizontale x du nœud",node_y:"Changer la position verticale y du nœud",seg_type:"Changer le type du segment",straight_segments:"Droit",curve_segments:"Courbe",text_contents:"Changer le contenu du texte",font_family:"Changer la famille de police",font_size:"Changer la taille de la police",bold:"Texte en gras",italic:"Texte en italique"},tools:{main_menu:"Menu principal",bkgnd_color_opac:"Changer la couleur d'arrière-plan/l'opacité",connector_no_arrow:"Sans flèches",fitToContent:"Ajuster au contenu",fit_to_all:"Ajuster à l'ensemble du contenu",fit_to_canvas:"Ajuster au canevas",fit_to_layer_content:"Ajuster au contenu du calque",fit_to_sel:"Ajuster à la sélection",align_relative_to:"Aligner par rapport à…",relativeTo:"par rapport à :",page:"page",largest_object:"objet le plus gros",selected_objects:"objets sélectionnés",smallest_object:"objet le plus petit",new_doc:"Nouvelle image",open_doc:"Ouvrir une image SVG",export_img:"Exporter",save_doc:"Enregistrer l'image",import_doc:"Importer une image",align_to_page:"Aligner l'élément à la page",align_bottom:"Aligner en bas",align_center:"Centrer verticalement",align_left:"Aligner à gauche",align_middle:"Centrer horizontalement",align_right:"Aligner à droite",align_top:"Aligner en haut",mode_select:"Outil de sélection",mode_fhpath:"Crayon à main levée",mode_line:"Tracer des lignes",mode_rect:"Outil rectangle",mode_square:"Outil carré",mode_fhrect:"Rectangle à main levée",mode_ellipse:"Ellipse",mode_circle:"Cercle",mode_fhellipse:"Ellipse à main levée",mode_path:"Outil chemin",mode_text:"Outil texte",mode_image:"Outil image",mode_zoom:"Zoom",no_embed:"NOTE : Cette image ne peut pas être incorporée. Elle sera chargée à cette adresse",undo:"Annuler",redo:"Restaurer",tool_source:"Modifier la source",wireframe_mode:"Mode Fil de fer",clone:"Cloner élément(s)",del:"Supprimer élément(s)",group_elements:"Grouper les éléments",make_link:"Créer un hyperlien",set_link_url:"Définir l'URL du lien (laisser vide pour supprimer)",to_path:"Convertir en chemin",reorient_path:"Réorienter le chemin",ungroup:"Dégrouper les éléments",docprops:"Propriétés du document",editor_homepage:"SVG-Edit Home Page",move_bottom:"Déplacer vers le bas",move_top:"Déplacer vers le haut",node_clone:"Cloner le nœud",node_delete:"Supprimer le nœud",node_link:"Rendre les points de contrôle solidaires",add_subpath:"Ajouter un tracé secondaire",openclose_path:"Ouvrir/fermer le sous-chemin",source_save:"Appliquer les modifications",cut:"Couper",copy:"Copier",paste:"Coller",paste_in_place:"Coller sur place",delete:"Supprimer",group:"Grouper",move_front:"Placer au premier plan",move_up:"Avancer d'un plan",move_down:"Reculer d'un plan",move_back:"Placer au fond"},layers:{layer:"Calque",layers:"Calques",del:"Supprimer le calque",move_down:"Descendre le calque",new:"Nouveau calque",rename:"Renommer le calque",move_up:"Monter le calque",dupe:"Dupliquer le calque",merge_down:"Fusionner vers le bas",merge_all:"Tout fusionner",move_elems_to:"Déplacer les éléments vers :",move_selected:"Déplacer les éléments sélectionnés vers un autre calque"},config:{image_props:"Propriétés de l'image",doc_title:"Titre",doc_dims:"Dimensions du canevas",included_images:"Images insérées",image_opt_embed:"Incorporer les données des images (fichiers locaux)",image_opt_ref:"Utiliser l'adresse des fichiers",editor_prefs:"Préférences de l'éditeur",icon_size:"Taille des icônes",language:"Langue",background:"Toile de fond de l'éditeur",editor_img_url:"Image URL",editor_bg_note:"Note : La toile de fond ne sera pas sauvegardée avec l'image.",icon_large:"Grande",icon_medium:"Moyenne",icon_small:"Petite",icon_xlarge:"Super grande",select_predefined:"Sélectionner prédéfinis :",units_and_rulers:"Unités et règles",show_rulers:"Afficher les règles",base_unit:"Unité de mesure :",grid:"Grille",snapping_onoff:"Ancrer oui/non",snapping_stepsize:"Pas d'ancrage :",grid_color:"Couleur de la grille"},notification:{invalidAttrValGiven:"Valeur fournie invalide",noContentToFitTo:"Il n'y a pas de contenu auquel ajuster",dupeLayerName:"Un autre calque porte déjà ce nom !",enterUniqueLayerName:"Veuillez entrer un nom (unique) pour le calque",enterNewLayerName:"Veuillez entrer le nouveau nom du calque",layerHasThatName:"Le calque porte déjà ce nom",QmoveElemsToLayer:"Déplacer les éléments sélectionnés vers le calque « %s » ?",QwantToClear:"Voulez-vous effacer le dessin ?\nL'historique de vos actions sera également effacé !",QwantToOpen:"Voulez-vous ouvrir un nouveau document ?\nVous perdrez l'historique de vos modifications !",QerrorsRevertToSource:"Il y a des erreurs de syntaxe dans votre code source SVG.\nRestaurer le code source SVG antérieur aux modifications ?",QignoreSourceChanges:"Ignorer les modifications faites à la source SVG ?",featNotSupported:"Fonction non supportée",enterNewImgURL:"Entrer la nouvelle URL de l'image",defsFailOnSave:"NOTE : En raison d'un bogue dans votre navigateur, il se peut que cette image ne soit pas correctement affichée (dégradés ou éléments manquants). Le souci sera néanmoins réglé à la sauvegarde.",loadingImage:"Chargement de l'image, veuillez patienter…",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Notez également les problèmes suivants : ",unsavedChanges:"Il y a des changements non sauvegardés.",enterNewLinkURL:"Entrez la nouvelle URL de l'hyperlien",errorLoadingSVG:"Erreur : Impossible de charger les données SVG",URLLoadFail:"Impossible de charger l'URL",retrieving:"Récupération de « %s »…",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),QF=Object.freeze({__proto__:null,default:{lang:"fy",dir:"ltr",common:{ok:"Ok",cancel:"Ôfbrekke",key_backspace:"backspace",key_del:"delete",key_down:"omleech",key_up:"omheech",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Klik om de folkleur te feroarjen, shift-klik om de linekleur te feroarjen.",zoom_level:"Yn-/útzoome",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"Folkleur oanpasse",stroke_color:"Linekleur oanpasse",stroke_style:"Linestijl oanpasse",stroke_width:"Linebreedte oanpasse",pos_x:"X-koördinaat oanpasse",pos_y:"Y-koördinaat oanpasse",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Draaie",blur:"Change gaussian blur value",opacity:"Trochsichtigens oanpasse",circle_cx:"Feroarje it X-koördinaat fan it middelpunt fan'e sirkel.",circle_cy:"Feroarje it Y-koördinaat fan it middelpunt fan'e sirkel.",circle_r:"Feroarje sirkelradius",ellipse_cx:"Feroarje it X-koördinaat fan it middelpunt fan'e ellips.",ellipse_cy:"Feroarje it Y-koördinaat fan it middelpunt fan'e ellips.",ellipse_rx:"Feroarje ellips X radius",ellipse_ry:"Feroarje ellips Y radius",line_x1:"Feroarje start X koördinaat fan'e line",line_x2:"Feroarje ein X koördinaat fan'e line",line_y1:"Feroarje start Y koördinaat fan'e line",line_y2:"Feroarje ein Y koördinaat fan'e line",rect_height:"Hichte rjochthoeke oanpasse",rect_width:"Breedte rjochthoeke oanpasse",corner_radius:"Hoekeradius oanpasse",image_width:"Breedte ôfbielding oanpasse",image_height:"Hichte ôfbielding oanpasse",image_url:"URL oanpasse",node_x:"X-koördinaat knooppunt oanpasse",node_y:"Y-koördinaat knooppunt oanpasse",seg_type:"Segmenttype oanpasse",straight_segments:"Rjocht",curve_segments:"Bûcht",text_contents:"Tekst oanpasse",font_family:"Lettertype oanpasse",font_size:"Lettergrutte oanpasse",bold:"Fet",italic:"Skean"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Eftergrûnkleur/trochsichtigens oanpasse",connector_no_arrow:"No arrow",fitToContent:"Passe op ynhâld",fit_to_all:"Op alle ynhâld passe",fit_to_canvas:"Op kanvas passe",fit_to_layer_content:"Op laachynhâld passe",fit_to_sel:"Op seleksje passe",align_relative_to:"Útlijne relatyf oan...",relativeTo:"Relatief tsjinoer:",page:"Side",largest_object:"Grutste ûnderdiel",selected_objects:"Selektearre ûnderdielen",smallest_object:"Lytste ûnderdiel",new_doc:"Nije ôfbielding",open_doc:"Ôfbielding iepenje",export_img:"Export",save_doc:"Ôfbielding bewarje",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"Ûnder útlijne",align_center:"Midden útlijne",align_left:"Lofts útlijne",align_middle:"Midden útlijne",align_right:"Rjochts útlijne",align_top:"Boppe útlijne",mode_select:"Selektearje",mode_fhpath:"Potlead",mode_line:"Line",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Frije rjochthoeke",mode_ellipse:"Ellips",mode_circle:"Sirkel",mode_fhellipse:"Frije ellips",mode_path:"Paad",mode_text:"Tekst",mode_image:"Ôfbielding",mode_zoom:"Zoom",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Ungedien meitjse",redo:"Op 'e nij",tool_source:"Boarne oanpasse",wireframe_mode:"Triemodel",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Ûnderdielen groepearje",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Omsette nei paad",reorient_path:"Paad opnij orientearje",ungroup:"Groepering opheffe",docprops:"Dokuminteigenskippen",editor_homepage:"SVG-Edit Home Page",move_bottom:"Nei eftergrûn",move_top:"Nei foargrûn",node_clone:"Knooppunt duplisearje",node_delete:"Knooppunt fuortsmite",node_link:"Knooppunten keppelje",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Feroarings tapasse",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Laach",layers:"Layers",del:"Laach fuortsmite",move_down:"Laach omleech bringe",new:"Nije laach",rename:"Laach omneame",move_up:"Laach omheech bringe",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Ûnderdielen ferplaate nei:",move_selected:"Selektearre ûnderdielen ferplaatse nei in oare laach"},config:{image_props:"Ôfbieldingseigenskippen",doc_title:"Titel",doc_dims:"Kanvasgrutte",included_images:"Ynslúten ôfbieldingen",image_opt_embed:"Ynformaasje tafoege (lokale triemen)",image_opt_ref:"Triemreferensje brûke",editor_prefs:"Eigenskippen bewurker",icon_size:"Ikoangrutte",language:"Taal",background:"Eftergrûn bewurker",editor_img_url:"Image URL",editor_bg_note:"Let op: de eftergrûn wurd net mei de ôfbielding bewarre.",icon_large:"Grut",icon_medium:"Middel",icon_small:"Lyts",icon_xlarge:"Ekstra grut",select_predefined:"Selektearje:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Ferkearde waarde jûn",noContentToFitTo:"Gjin ynhâld om te passen",dupeLayerName:"Der is al in laach mei dy namme!",enterUniqueLayerName:"Type in unyke laachnamme",enterNewLayerName:"Type in nije laachnamme",layerHasThatName:"Laach hat dy namme al",QmoveElemsToLayer:"Selektearre ûnderdielen ferplaatse nei '%s'?",QwantToClear:"Ôfbielding leechmeitsje? Dit sil ek de skiednis fuortsmite!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"Der wiene flaters yn de SVG-boarne.\nWeromgean nei foarige SVG-boarne?",QignoreSourceChanges:"Feroarings yn SVG-boarne negeare?",featNotSupported:"Funksje wurdt net ûndersteund",enterNewImgURL:"Jou de nije URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s'...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),DF=Object.freeze({__proto__:null,default:{lang:"ga",dir:"ltr",common:{ok:"Sábháil",cancel:"Cealaigh",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Cliceáil chun athrú a líonadh dath, aistriú-cliceáil chun dath a athrú stróc",zoom_level:"Athraigh súmáil leibhéal",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"Athraigh an dath a líonadh",stroke_color:"Dath stróc Athrú",stroke_style:"Athraigh an stíl Fleasc stróc",stroke_width:"Leithead stróc Athrú",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Uillinn rothlaithe Athrú",blur:"Change gaussian blur value",opacity:"Athraigh roghnaithe teimhneacht mír",circle_cx:"Athraigh an ciorcal a chomhordú CX",circle_cy:"Athraigh an ciorcal a chomhordú ga",circle_r:"Athraigh an ciorcal's ga",ellipse_cx:"Athraigh Éilips's CX a chomhordú",ellipse_cy:"Athraigh an Éilips a chomhordú ga",ellipse_rx:"Éilips Athraigh an gha x",ellipse_ry:"Éilips Athraigh an gha y",line_x1:"Athraigh an líne tosaigh a chomhordú x",line_x2:"Athraigh an líne deireadh x chomhordú",line_y1:"Athraigh an líne tosaigh a chomhordú y",line_y2:"Athrú ar líne deireadh y chomhordú",rect_height:"Airde dronuilleog Athrú",rect_width:"Leithead dronuilleog Athrú",corner_radius:"Athraigh Dronuilleog Cúinne na Ga",image_width:"Leithead íomhá Athrú",image_height:"Airde íomhá Athrú",image_url:"Athraigh an URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Inneachar Athraigh téacs",font_family:"Athraigh an Cló Teaghlaigh",font_size:"Athraigh Clómhéid",bold:"Trom Téacs",italic:"Iodálach Téacs"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Dath cúlra Athraigh / teimhneacht",connector_no_arrow:"No arrow",fitToContent:"Fit to Content",fit_to_all:"Laghdaigh do gach ábhar",fit_to_canvas:"Laghdaigh ar chanbhás",fit_to_layer_content:"Laghdaigh shraith ábhar a",fit_to_sel:"Laghdaigh a roghnú",align_relative_to:"Ailínigh i gcomparáid leis ...",relativeTo:"i gcomparáid leis:",page:"leathanach",largest_object:"réad is mó",selected_objects:"réada tofa",smallest_object:"lú réad",new_doc:"Íomhá Nua",open_doc:"Íomhá Oscailte",export_img:"Export",save_doc:"Sábháil Íomhá",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"Cineál Bun",align_center:"Ailínigh sa Lár",align_left:"Ailínigh ar Chlé",align_middle:"Cineál Middle",align_right:"Ailínigh ar Dheis",align_top:"Cineál Barr",mode_select:"Roghnaigh Uirlis",mode_fhpath:"Phionsail Uirlis",mode_line:"Uirlis Líne",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Saor Hand Dronuilleog",mode_ellipse:"Éilips",mode_circle:"Ciorcal",mode_fhellipse:"Free-Hand Ellipse",mode_path:"Path Tool",mode_text:"Téacs Uirlis",mode_image:"Íomhá Uirlis",mode_zoom:"Zúmáil Uirlis",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Cealaigh",redo:"Athdhéan",tool_source:"Cuir Foinse",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Eilimintí Grúpa",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Eilimintí Díghrúpáil",docprops:"Doiciméad Airíonna",editor_homepage:"SVG-Edit Home Page",move_bottom:"Téigh go Bun",move_top:"Téigh go Barr",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Sábháil",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Layer",layers:"Layers",del:"Scrios Sraith",move_down:"Bog Sraith Síos",new:"Sraith Nua",rename:"Athainmnigh Sraith",move_up:"Bog Sraith Suas",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",select_predefined:"Roghnaigh réamhshainithe:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),jF=Object.freeze({__proto__:null,default:{lang:"gl",dir:"ltr",common:{ok:"Gardar",cancel:"Cancelar",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Preme aquí para cambiar a cor de recheo, Shift-clic para cambiar a cor do curso",zoom_level:"Cambiar o nivel de zoom",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"Cambia-la cor de recheo",stroke_color:"Cambiar a cor do curso",stroke_style:"Modifica o estilo do trazo do curso",stroke_width:"Cambiar o ancho do curso",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Cambiar o ángulo de xiro",blur:"Change gaussian blur value",opacity:"Cambia a opacidade elemento seleccionado",circle_cx:"Cx Cambiar círculo de coordenadas",circle_cy:"Círculo Cambio cy coordinar",circle_r:"Cambiar círculo de raio",ellipse_cx:"Cambiar elipse cx coordinar",ellipse_cy:"Elipse Cambio cy coordinar",ellipse_rx:"Raios X Change elipse",ellipse_ry:"Radio y Change elipse",line_x1:"Cambie a liña de partida coordenada x",line_x2:"Cambie a liña acaba coordenada x",line_y1:"Cambio na liña do recurso coordinada y",line_y2:"Salto de liña acaba coordinada y",rect_height:"Cambiar altura do rectángulo",rect_width:"Cambiar a largo rectángulo",corner_radius:"Cambiar Corner Rectangle Radius",image_width:"Cambiar o ancho da imaxe",image_height:"Cambiar altura da imaxe",image_url:"Cambiar URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Cambiar o contido de texto",font_family:"Cambiar fonte Familia",font_size:"Mudar tamaño de letra",bold:"Bold Text",italic:"Texto en cursiva"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Mudar a cor de fondo / Opacidade",connector_no_arrow:"No arrow",fitToContent:"Axustar ó contido",fit_to_all:"Axustar a todo o contido",fit_to_canvas:"Axustar a pantalla",fit_to_layer_content:"Axustar o contido da capa de",fit_to_sel:"Axustar a selección",align_relative_to:"Aliñar en relación a ...",relativeTo:"en relación ao:",page:"Portada",largest_object:"maior obxecto",selected_objects:"obxectos elixidos",smallest_object:"menor obxecto",new_doc:"Nova Imaxe",open_doc:"Abrir Imaxe",export_img:"Export",save_doc:"Gardar Imaxe",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"Align bottom",align_center:"Centrar",align_left:"Aliñar á Esquerda",align_middle:"Aliñar Medio",align_right:"Aliñar á Dereita",align_top:"Align Top",mode_select:"Seleccionar a ferramenta",mode_fhpath:"Ferramenta Lapis",mode_line:"Ferramenta Liña",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Free-Hand Rectangle",mode_ellipse:"Elipse",mode_circle:"Circle",mode_fhellipse:"Free-Hand Ellipse",mode_path:"Path Tool",mode_text:"Ferramenta de Texto",mode_image:"Image Tool",mode_zoom:"Zoom Tool",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Desfacer",redo:"Volver",tool_source:"Fonte Editar",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Elementos do grupo",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Elementos Desagrupadas",docprops:"Propriedades do Documento",editor_homepage:"SVG-Edit Home Page",move_bottom:"Move a Bottom",move_top:"Move to Top",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Gardar",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Layer",layers:"Layers",del:"Delete Layer",move_down:"Move capa inferior",new:"New Layer",rename:"Rename Layer",move_up:"Move Layer Up",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",select_predefined:"Seleccione por defecto:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),HF=Object.freeze({__proto__:null,default:{lang:"he",dir:"rtl",common:{ok:"לשמור",cancel:"ביטול",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"לחץ כדי לשנות צבע מילוי, לחץ על Shift-לשנות צבע שבץ",zoom_level:"שינוי גודל תצוגה",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"שינוי צבע מילוי",stroke_color:"שינוי צבע שבץ",stroke_style:"דש שבץ שינוי סגנון",stroke_width:"שינוי רוחב שבץ",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"שינוי זווית הסיבוב",blur:"Change gaussian blur value",opacity:"שינוי הפריט הנבחר אטימות",circle_cx:"CX מעגל של שנה לתאם",circle_cy:"מעגל שנה של cy לתאם",circle_r:"מעגל שנה של רדיוס",ellipse_cx:"שינוי של אליפסה CX לתאם",ellipse_cy:"אליפסה שינוי של cy לתאם",ellipse_rx:"אליפסה שינוי של רדיוס x",ellipse_ry:"אליפסה שינוי של Y רדיוס",line_x1:"שינוי קו ההתחלה של x לתאם",line_x2:"שינוי קו הסיום של x לתאם",line_y1:"שינוי קו ההתחלה של Y לתאם",line_y2:"שינוי קו הסיום של Y לתאם",rect_height:"שינוי גובה המלבן",rect_width:"שינוי רוחב המלבן",corner_radius:"לשנות מלבן פינת רדיוס",image_width:"שינוי רוחב התמונה",image_height:"שינוי גובה התמונה",image_url:"שינוי כתובת",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"שינוי תוכן טקסט",font_family:"שינוי גופן משפחה",font_size:"שנה גודל גופן",bold:"טקסט מודגש",italic:"טקסט נטוי"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"שנה את צבע הרקע / אטימות",connector_no_arrow:"No arrow",fitToContent:"התאם תוכן",fit_to_all:"התאם התכנים",fit_to_canvas:"התאם בד",fit_to_layer_content:"מתאים לתוכן שכבת",fit_to_sel:"התאם הבחירה",align_relative_to:"יישור ביחס ...",relativeTo:"יחסית:",page:"דף",largest_object:"האובייקט הגדול",selected_objects:"elected objects",smallest_object:"הקטן אובייקט",new_doc:"תמונה חדשה",open_doc:"פתח תמונה",export_img:"Export",save_doc:"שמור תמונה",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"יישור תחתון",align_center:"ישור לאמצע",align_left:"יישור לשמאל",align_middle:"יישור התיכון",align_right:"יישור לימין",align_top:"יישור למעלה",mode_select:"Select Tool",mode_fhpath:"כלי העיפרון",mode_line:"כלי הקו",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Free-Hand מלבן",mode_ellipse:"אליפסה",mode_circle:"Circle",mode_fhellipse:"Free-Hand אליפסה",mode_path:"Path Tool",mode_text:"כלי טקסט",mode_image:"כלי תמונה",mode_zoom:"זום כלי",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"בטל",redo:"בצע שוב",tool_source:"מקור ערוך",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"אלמנטים הקבוצה",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"אלמנטים פרק קבוצה",docprops:"מאפייני מסמך",editor_homepage:"SVG-Edit Home Page",move_bottom:"הזז למטה",move_top:"עבור לראש הדף",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"לשמור",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Layer",layers:"Layers",del:"מחיקת שכבה",move_down:"הזז למטה שכבה",new:"שכבהחדשה",rename:"שינוי שם שכבה",move_up:"העבר שכבה Up",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",select_predefined:"בחר מוגדרים מראש:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),GF=Object.freeze({__proto__:null,default:{lang:"hi",dir:"ltr",common:{ok:"बचाना",cancel:"रद्द करें",key_backspace:"बैकस्पेस",key_del:"हटायें",key_down:"नीचे",key_up:"ऊपर",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"रंग बदलने पर क्लिक करें, बदलाव भरने के क्लिक करने के लिए स्ट्रोक का रंग बदलने के लिए",zoom_level:"बदलें स्तर ज़ूम",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"बदलें का रंग भरना",stroke_color:"बदलें स्ट्रोक रंग",stroke_style:"बदलें स्ट्रोक डेश शैली",stroke_width:"बदलें स्ट्रोक चौड़ाई",pos_x:"X समकक्ष बदलें ",pos_y:"Y समकक्ष बदलें",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"बदलें रोटेशन कोण",blur:"Change gaussian blur value",opacity:"पारदर्शिता बदलें",circle_cx:"बदल रहा है चक्र cx समन्वय",circle_cy:"परिवर्तन चक्र cy समन्वय है",circle_r:"बदल रहा है चक्र त्रिज्या",ellipse_cx:"बदलें दीर्घवृत्त है cx समन्वय",ellipse_cy:"बदलें दीर्घवृत्त cy समन्वय है",ellipse_rx:"बदल रहा है दीर्घवृत्त x त्रिज्या",ellipse_ry:"बदल रहा है दीर्घवृत्त y त्रिज्या",line_x1:"बदल रहा है लाइन x समन्वय शुरू",line_x2:"बदल रहा है लाइन x समन्वय समाप्त",line_y1:"बदलें रेखा y शुरू हो रहा है समन्वय",line_y2:"बदलें रेखा y अंत है समन्वय",rect_height:"बदलें आयत ऊंचाई",rect_width:"बदलें आयत चौड़ाई",corner_radius:"बदलें आयत कॉर्नर त्रिज्या",image_width:"बदलें छवि चौड़ाई",image_height:"बदलें छवि ऊँचाई",image_url:"बदलें यूआरएल",node_x:"नोड का x समकक्ष बदलें",node_y:"नोड का y समकक्ष बदलें",seg_type:"वर्ग प्रकार बदलें",straight_segments:"सीधे वर्ग",curve_segments:"घुमाव",text_contents:"बदलें पाठ सामग्री",font_family:"बदलें फ़ॉन्ट परिवार",font_size:"फ़ॉन्ट का आकार बदलें",bold:"मोटा पाठ",italic:"इटैलिक पाठ"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"पृष्ठभूमि का रंग बदल / अस्पष्टता",connector_no_arrow:"No arrow",fitToContent:"सामग्री के लिए फिट",fit_to_all:"सभी सामग्री के लिए फिट",fit_to_canvas:"फिट कैनवास को",fit_to_layer_content:"फिट परत सामग्री के लिए",fit_to_sel:"चयन के लिए फिट",align_relative_to:"संरेखित करें रिश्तेदार को ...",relativeTo:"रिश्तेदार को:",page:"पृष्ठ",largest_object:"सबसे बड़ी वस्तु",selected_objects:"निर्वाचित वस्तुओं",smallest_object:"छोटी से छोटी वस्तु",new_doc:"नई छवि",open_doc:"छवि खोलें",export_img:"Export",save_doc:"सहेजें छवि",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"तलमेंपंक्तिबद्धकरें",align_center:"मध्य में समंजित करें",align_left:" पंक्तिबद्ध करें",align_middle:"मध्य संरेखित करें",align_right:"दायाँपंक्तिबद्धकरें",align_top:"शीर्षमेंपंक्तिबद्धकरें",mode_select:"उपकरण चुनें",mode_fhpath:"पेंसिल उपकरण",mode_line:"लाइन उपकरण",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"नि: शुल्क हाथ आयत",mode_ellipse:"दीर्घवृत्त",mode_circle:"वृत्त",mode_fhellipse:"नि: शुल्क हाथ दीर्घवृत्त",mode_path:"Path Tool",mode_text:"पाठ उपकरण",mode_image:"छवि उपकरण",mode_zoom:"ज़ूम उपकरण",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"पूर्ववत करें",redo:"फिर से करें",tool_source:"स्रोत में बदलाव करें",wireframe_mode:"रूपरेखा मोड",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"समूह तत्वों",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"पथ में बदलें",reorient_path:"पथ को नई दिशा दें",ungroup:"अंश को समूह से अलग करें",docprops:"दस्तावेज़ गुण",editor_homepage:"SVG-Edit Home Page",move_bottom:"नीचे ले जाएँ",move_top:"ऊपर ले जाएँ",node_clone:"नोड क्लोन",node_delete:"नोड हटायें",node_link:"कड़ी नियंत्रण बिंदु",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"बचाना",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"परत",layers:"Layers",del:"परत हटाएँ",move_down:"परत नीचे ले जाएँ",new:"नई परत",rename:"परत का नाम बदलें",move_up:"परत ऊपर ले जाएँ",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"अंश को ले जाएँ:",move_selected:"चयनित अंश को दूसरी परत पर ले जाएँ"},config:{image_props:"छवि के गुण",doc_title:"शीर्षक",doc_dims:"कैनवास आयाम",included_images:"शामिल छवियाँ",image_opt_embed:"एम्बेड डेटा (स्थानीय फ़ाइलें)",image_opt_ref:"फाइल के संदर्भ का प्रयोग",editor_prefs:"संपादक वरीयताएँ",icon_size:"चिह्न का आकार",language:"भाषा",background:"संपादक पृष्ठभूमि",editor_img_url:"Image URL",editor_bg_note:"नोट: पृष्ठभूमि छवि के साथ नहीं बचायी जाएगी",icon_large:"बड़ा",icon_medium:"मध्यम",icon_small:"छोटा",icon_xlarge:"बहुत बड़ा",select_predefined:"चुनें पूर्वनिर्धारित:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"अमान्य मूल्य",noContentToFitTo:"कोई सामग्री फिट करने के लिए उपलब्ध नहीं",dupeLayerName:"इस नाम कि परत पहले से मौजूद है !",enterUniqueLayerName:"कृपया परत का एक अद्वितीय नाम डालें",enterNewLayerName:"कृपया परत का एक नया नाम डालें",layerHasThatName:"परत का पहले से ही यही नाम है",QmoveElemsToLayer:"चयनित अंश को परत '%s' पर ले जाएँ ?",QwantToClear:"क्या आप छवि साफ़ करना चाहते हैं?\nयह आपके उन्डू इतिहास को भी मिटा देगा!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"आपके एस.वी.जी. स्रोत में त्रुटियों थी.\nक्या आप मूल एस.वी.जी स्रोत पर वापिस जाना चाहते हैं?",QignoreSourceChanges:"एसवीजी स्रोत से लाये बदलावों को ध्यान न दें?",featNotSupported:"सुविधा असमर्थित है",enterNewImgURL:"नई छवि URL दर्ज करें",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),VF=Object.freeze({__proto__:null,default:{lang:"hr",dir:"ltr",common:{ok:"Spremiti",cancel:"Odustani",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Kliknite promijeniti boju ispune, shift-click to promijeniti boju moždanog udara",zoom_level:"Promjena razine zumiranja",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"Promjena boje ispune",stroke_color:"Promjena boje moždani udar",stroke_style:"Promijeni stroke crtica stil",stroke_width:"Promjena širine moždani udar",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Promijeni rotation angle",blur:"Change gaussian blur value",opacity:"Promjena odabrane stavke neprozirnost",circle_cx:"Promjena krug's CX koordinirati",circle_cy:"Cy Promijeni krug je koordinirati",circle_r:"Promjena krug je radijusa",ellipse_cx:"Promjena elipsa's CX koordinirati",ellipse_cy:"Cy Promijeni elipsa je koordinirati",ellipse_rx:"Promijeniti elipsa's x polumjer",ellipse_ry:"Promjena elipsa's y polumjer",line_x1:"Promijeni linija je početak x koordinatu",line_x2:"Promjena linije završetak x koordinatu",line_y1:"Promijeni linija je početak y koordinatu",line_y2:"Promjena linije završetak y koordinatu",rect_height:"Promijeni pravokutnik visine",rect_width:"Promijeni pravokutnik širine",corner_radius:"Promijeni Pravokutnik Corner Radius",image_width:"Promijeni sliku širine",image_height:"Promijeni sliku visina",image_url:"Promijeni URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Promjena sadržaja teksta",font_family:"Promjena fontova",font_size:"Change font size",bold:"Podebljani tekst",italic:"Italic Text"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Promijeni boju pozadine / neprozirnost",connector_no_arrow:"No arrow",fitToContent:"Fit to Content",fit_to_all:"Prilagodi na sve sadržaje",fit_to_canvas:"Prilagodi na platnu",fit_to_layer_content:"Prilagodi sloj sadržaj",fit_to_sel:"Prilagodi odabir",align_relative_to:"Poravnaj u odnosu na ...",relativeTo:"u odnosu na:",page:"stranica",largest_object:"najveći objekt",selected_objects:"izabrani objekti",smallest_object:"najmanji objekt",new_doc:"Nove slike",open_doc:"Otvori sliku",export_img:"Export",save_doc:"Spremanje slike",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"Poravnaj dolje",align_center:"Centriraj",align_left:"Poravnaj lijevo",align_middle:"Poravnaj Srednji",align_right:"Poravnaj desno",align_top:"Poravnaj Top",mode_select:"Odaberite alat",mode_fhpath:"Pencil Tool",mode_line:"Line Tool",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Free-Hand Pravokutnik",mode_ellipse:"Elipsa",mode_circle:"Circle",mode_fhellipse:"Free-Hand Ellipse",mode_path:"Path Tool",mode_text:"Tekst Alat",mode_image:"Image Tool",mode_zoom:"Alat za zumiranje",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Poništi",redo:"Redo",tool_source:"Uredi Source",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Grupa Elementi",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Razgrupiranje Elementi",docprops:"Svojstva dokumenta",editor_homepage:"SVG-Edit Home Page",move_bottom:"Move to Bottom",move_top:"Pomakni na vrh",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Spremiti",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Layer",layers:"Layers",del:"Brisanje sloja",move_down:"Move Layer Down",new:"New Layer",rename:"Preimenuj Layer",move_up:"Move Layer Up",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",select_predefined:"Select predefinirane:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),zF=Object.freeze({__proto__:null,default:{lang:"hu",dir:"ltr",common:{ok:"Ment",cancel:"Szakítani",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Kattints ide a változások töltse szín, shift-click változtatni stroke color",zoom_level:"Change nagyítási",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"Change töltse color",stroke_color:"Change stroke color",stroke_style:"Change stroke kötőjel style",stroke_width:"Change stroke width",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Váltás forgás szög",blur:"Change gaussian blur value",opacity:"A kijelölt elem opacity",circle_cx:"Change kör CX koordináta",circle_cy:"Change kör cy koordináta",circle_r:"Change kör sugara",ellipse_cx:"Change ellipszis's CX koordináta",ellipse_cy:"Change ellipszis's cy koordináta",ellipse_rx:"Change ellipszis's x sugarú",ellipse_ry:"Change ellipszis's y sugara",line_x1:"A sor kezd x koordináta",line_x2:"A sor vége az x koordináta",line_y1:"A sor kezd y koordináta",line_y2:"A sor vége az y koordináta",rect_height:"Change téglalap magassága",rect_width:"Change téglalap szélessége",corner_radius:"Change téglalap sarok sugara",image_width:"Change kép szélessége",image_height:"Kép módosítása height",image_url:"Change URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"A szöveg tartalma",font_family:"Change Betűcsalád",font_size:"Change font size",bold:"Félkövér szöveg",italic:"Dőlt szöveg"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Change background color / homályosság",connector_no_arrow:"No arrow",fitToContent:"Fit to Content",fit_to_all:"Illeszkednek az összes tartalom",fit_to_canvas:"Igazítás a vászonra",fit_to_layer_content:"Igazítás a réteg tartalma",fit_to_sel:"Igazítás a kiválasztási",align_relative_to:"Képest Igazítás ...",relativeTo:"relatív hogy:",page:"Page",largest_object:"legnagyobb objektum",selected_objects:"választott tárgyak",smallest_object:"legkisebb objektum",new_doc:"Új kép",open_doc:"Kép megnyitása",export_img:"Export",save_doc:"Kép mentése más",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"Alulra igazítás",align_center:"Középre igazítás",align_left:"Balra igazítás",align_middle:"Közép-align",align_right:"Jobbra igazítás",align_top:"Align Top",mode_select:"Válassza ki az eszközt",mode_fhpath:"Ceruza eszköz",mode_line:"Line Tool",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Free-Hand téglalap",mode_ellipse:"Ellipszisszelet",mode_circle:"Körbe",mode_fhellipse:"Free-Hand Ellipse",mode_path:"Path Tool",mode_text:"Szöveg eszköz",mode_image:"Image Tool",mode_zoom:"Zoom Tool",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Visszavon",redo:"Megismétléséhez",tool_source:"Szerkesztés Forrás",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Csoport elemei",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Szétbont elemei",docprops:"Dokumentum tulajdonságai",editor_homepage:"SVG-Edit Home Page",move_bottom:"Mozgatás lefelé",move_top:"Move to Top",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Ment",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Layer",layers:"Layers",del:"Réteg törlése",move_down:"Mozgatása lefelé",new:"Új réteg",rename:"Réteg átnevezése",move_up:"Move Layer Up",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",select_predefined:"Válassza ki előre definiált:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),KF=Object.freeze({__proto__:null,default:{lang:"hy",dir:"ltr",common:{ok:"Save",cancel:"Cancel",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Click to change fill color, shift-click to change stroke color",zoom_level:"Change zoom level",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"Change fill color",stroke_color:"Change stroke color",stroke_style:"Change stroke dash style",stroke_width:"Change stroke width",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Change rotation angle",blur:"Change gaussian blur value",opacity:"Change selected item opacity",circle_cx:"Change circle's cx coordinate",circle_cy:"Change circle's cy coordinate",circle_r:"Change circle's radius",ellipse_cx:"Change ellipse's cx coordinate",ellipse_cy:"Change ellipse's cy coordinate",ellipse_rx:"Change ellipse's x radius",ellipse_ry:"Change ellipse's y radius",line_x1:"Change line's starting x coordinate",line_x2:"Change line's ending x coordinate",line_y1:"Change line's starting y coordinate",line_y2:"Change line's ending y coordinate",rect_height:"Change rectangle height",rect_width:"Change rectangle width",corner_radius:"Change Rectangle Corner Radius",image_width:"Change image width",image_height:"Change image height",image_url:"Change URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Change text contents",font_family:"Change Font Family",font_size:"Change Font Size",bold:"Bold Text",italic:"Italic Text"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Change background color/opacity",connector_no_arrow:"No arrow",fitToContent:"Fit to Content",fit_to_all:"Fit to all content",fit_to_canvas:"Fit to canvas",fit_to_layer_content:"Fit to layer content",fit_to_sel:"Fit to selection",align_relative_to:"Align relative to ...",relativeTo:"relative to:",page:"page",largest_object:"largest object",selected_objects:"elected objects",smallest_object:"smallest object",new_doc:"New Image",open_doc:"Open SVG",export_img:"Export",save_doc:"Save Image",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"Align Bottom",align_center:"Align Center",align_left:"Align Left",align_middle:"Align Middle",align_right:"Align Right",align_top:"Align Top",mode_select:"Select Tool",mode_fhpath:"Pencil Tool",mode_line:"Line Tool",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Free-Hand Rectangle",mode_ellipse:"Ellipse",mode_circle:"Circle",mode_fhellipse:"Free-Hand Ellipse",mode_path:"Path Tool",mode_text:"Text Tool",mode_image:"Image Tool",mode_zoom:"Zoom Tool",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Undo",redo:"Redo",tool_source:"Edit Source",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Group Elements",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Ungroup Elements",docprops:"Document Properties",editor_homepage:"SVG-Edit Home Page",move_bottom:"Move to Bottom",move_top:"Move to Top",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Save",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Layer",layers:"Layers",del:"Delete Layer",move_down:"Move Layer Down",new:"New Layer",rename:"Rename Layer",move_up:"Move Layer Up",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",select_predefined:"Select predefined:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),qF=Object.freeze({__proto__:null,default:{lang:"id",dir:"ltr",common:{ok:"Simpan",cancel:"Batal",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Klik untuk mengubah warna mengisi, shift-klik untuk mengubah warna stroke",zoom_level:"Mengubah tingkat pembesaran",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"Ubah warna mengisi",stroke_color:"Ubah warna stroke",stroke_style:"Ubah gaya dash stroke",stroke_width:"Ubah stroke width",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Ubah sudut rotasi",blur:"Change gaussian blur value",opacity:"Mengubah item yang dipilih keburaman",circle_cx:"Mengubah koordinat lingkaran cx",circle_cy:"Mengubah koordinat cy lingkaran",circle_r:"Ubah jari-jari lingkaran",ellipse_cx:"Ubah elips's cx koordinat",ellipse_cy:"Ubah elips's cy koordinat",ellipse_rx:"Ubah elips's x jari-jari",ellipse_ry:"Ubah elips's y jari-jari",line_x1:"Ubah baris mulai x koordinat",line_x2:"Ubah baris's Berakhir x koordinat",line_y1:"Ubah baris mulai y koordinat",line_y2:"Ubah baris di tiap akhir y koordinat",rect_height:"Perubahan tinggi persegi panjang",rect_width:"Ubah persegi panjang lebar",corner_radius:"Ubah Corner Rectangle Radius",image_width:"Ubah Lebar gambar",image_height:"Tinggi gambar Perubahan",image_url:"Ubah URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Ubah isi teks",font_family:"Ubah Font Keluarga",font_size:"Ubah Ukuran Font",bold:"Bold Teks",italic:"Italic Teks"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Mengubah warna latar belakang / keburaman",connector_no_arrow:"No arrow",fitToContent:"Fit to Content",fit_to_all:"Cocok untuk semua konten",fit_to_canvas:"Muat kanvas",fit_to_layer_content:"Muat konten lapisan",fit_to_sel:"Fit seleksi",align_relative_to:"Rata relatif ...",relativeTo:"relatif:",page:"Halaman",largest_object:"objek terbesar",selected_objects:"objek terpilih",smallest_object:"objek terkecil",new_doc:"Gambar Baru",open_doc:"Membuka Image",export_img:"Export",save_doc:"Save Image",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"Rata Bottom",align_center:"Rata Tengah",align_left:"Rata Kiri",align_middle:"Rata Tengah",align_right:"Rata Kanan",align_top:"Rata Top",mode_select:"Pilih Tool",mode_fhpath:"Pencil Tool",mode_line:"Line Tool",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Free-Hand Persegi Panjang",mode_ellipse:"Ellipse",mode_circle:"Lingkaran",mode_fhellipse:"Free-Hand Ellipse",mode_path:"Path Tool",mode_text:"Teks Tool",mode_image:"Image Tool",mode_zoom:"Zoom Tool",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Undo",redo:"Redo",tool_source:"Edit Source",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Kelompok Elemen",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Ungroup Elemen",docprops:"Document Properties",editor_homepage:"SVG-Edit Home Page",move_bottom:"Pindah ke Bawah",move_top:"Pindahkan ke Atas",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Simpan",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Layer",layers:"Layers",del:"Hapus Layer",move_down:"Pindahkan Layer Bawah",new:"New Layer",rename:"Rename Layer",move_up:"Pindahkan Layer Up",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",select_predefined:"Pilih standar:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),WF=Object.freeze({__proto__:null,default:{lang:"is",dir:"ltr",common:{ok:"Vista",cancel:"Hætta",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Smelltu hér til að breyta fylla lit, Shift-smelltu til að breyta högg lit",zoom_level:"Breyta Stækkunarstig",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"Breyta fylla color",stroke_color:"Breyta heilablķđfall color",stroke_style:"Breyta heilablķđfall þjóta stíl",stroke_width:"Breyta heilablķđfall width",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Breyting snúningur horn",blur:"Change gaussian blur value",opacity:"Breyta valin atriði opacity",circle_cx:"Cx Breyta hring er að samræma",circle_cy:"Breyta hring's cy samræma",circle_r:"Radíus Breyta hringsins er",ellipse_cx:"Breyta sporbaug's cx samræma",ellipse_cy:"Breyta sporbaug's cy samræma",ellipse_rx:"X radíus Breyta sporbaug's",ellipse_ry:"Y radíus Breyta sporbaug's",line_x1:"Breyta lína í byrjun x samræma",line_x2:"Breyta lína's Ending x samræma",line_y1:"Breyta lína í byrjun y samræma",line_y2:"Breyta lína er endir y samræma",rect_height:"Breyta rétthyrningur hæð",rect_width:"Skipta rétthyrningur width",corner_radius:"Breyta rétthyrningur Corner Radíus",image_width:"Breyta mynd width",image_height:"Breyta mynd hæð",image_url:"Breyta URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Breyta texta innihald",font_family:"Change Leturfjölskylda",font_size:"Breyta leturstærð",bold:"Bold Text",italic:"Italic Text"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Breyta bakgrunnslit / opacity",connector_no_arrow:"No arrow",fitToContent:"Fit to Content",fit_to_all:"Laga til efni",fit_to_canvas:"Fit á striga",fit_to_layer_content:"Laga til lag efni",fit_to_sel:"Fit til val",align_relative_to:"Jafna miðað við ...",relativeTo:"hlutfallslegt til:",page:"síðu",largest_object:"stærsti hlutinn",selected_objects:"kjörinn hlutir",smallest_object:"lítill hluti",new_doc:"New Image",open_doc:"Opna mynd",export_img:"Export",save_doc:"Spara Image",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"Jafna Bottom",align_center:"Jafna Center",align_left:"Vinstri jöfnun",align_middle:"Jafna Mið",align_right:"Hægri jöfnun",align_top:"Jöfnun Top",mode_select:"Veldu Tól",mode_fhpath:"Blýantur Tól",mode_line:"Line Tool",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Free-Hand rétthyrningur",mode_ellipse:"Sporbaugur",mode_circle:"Circle",mode_fhellipse:"Free-Hand Sporbaugur",mode_path:"Path Tool",mode_text:"Text Tool",mode_image:"Mynd Tól",mode_zoom:"Zoom Tool",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Hætta",redo:"Endurtaka",tool_source:"Edit Source",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Group Elements",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Ungroup Elements",docprops:"Document Properties",editor_homepage:"SVG-Edit Home Page",move_bottom:"Færa Bottom",move_top:"Fara efst á síðu",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Vista",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Layer",layers:"Layers",del:"Eyða Lag",move_down:"Færa Layer Down",new:"Lag",rename:"Endurnefna Lag",move_up:"Færa Lag Up",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",select_predefined:"Veldu predefined:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),XF=Object.freeze({__proto__:null,default:{lang:"it",dir:"ltr",common:{ok:"Salva",cancel:"Annulla",key_backspace:"backspace",key_del:"Canc",key_down:"giù",key_up:"su",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Mostra/nascondi strumenti per il tratto",palette_info:"Fare clic per cambiare il colore di riempimento, shift-click per cambiare colore del tratto",zoom_level:"Cambia il livello di zoom",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identifica l'elemento",fill_color:"Cambia il colore di riempimento",stroke_color:"Cambia il colore del tratto",stroke_style:"Cambia lo stile del tratto",stroke_width:"Cambia la larghezza del tratto",pos_x:"Modifica la coordinata x",pos_y:"Modifica la coordinata y",linecap_butt:"Inizio linea: Punto",linecap_round:"Inizio linea: Tondo",linecap_square:"Inizio linea: Quadrato",linejoin_bevel:"Giunzione: smussata",linejoin_miter:"Giunzione: spezzata",linejoin_round:"Giunzione: arrotondata",angle:"Cambia l'angolo di rotazione",blur:"Cambia l'intensità della sfocatura",opacity:"Cambia l'opacità dell'oggetto selezionato",circle_cx:"Cambia la coordinata Cx del cerchio",circle_cy:"Cambia la coordinata Cy del cerchio",circle_r:"Cambia il raggio del cerchio",ellipse_cx:"Cambia la coordinata Cx dell'ellisse",ellipse_cy:"Cambia la coordinata Cy dell'ellisse",ellipse_rx:"Cambia l'asse x dell'ellisse",ellipse_ry:"Cambia l'asse y dell'ellisse",line_x1:"Modifica la coordinata iniziale x della linea",line_x2:"Modifica la coordinata finale x della linea",line_y1:"Modifica la coordinata iniziale y della linea",line_y2:"Modifica la coordinata finale y della linea",rect_height:"Cambia l'altezza rettangolo",rect_width:"Cambia la larghezza rettangolo",corner_radius:"Cambia il raggio dell'angolo",image_width:"Cambia la larghezza dell'immagine",image_height:"Cambia l'altezza dell'immagine",image_url:"Cambia URL",node_x:"Modifica la coordinata x del nodo",node_y:"Modifica la coordinata y del nodo",seg_type:"Cambia il tipo di segmento",straight_segments:"Linea retta",curve_segments:"Curva",text_contents:"Cambia il contenuto del testo",font_family:"Cambia il tipo di Font",font_size:"Modifica dimensione carattere",bold:"Grassetto",italic:"Corsivo"},tools:{main_menu:"Menù principale",bkgnd_color_opac:"Cambia colore/opacità dello sfondo",connector_no_arrow:"No freccia",fitToContent:"Adatta al contenuto",fit_to_all:"Adatta a tutti i contenuti",fit_to_canvas:"Adatta all'area di disegno",fit_to_layer_content:"Adatta al contenuto del livello",fit_to_sel:"Adatta alla selezione",align_relative_to:"Allineati a ...",relativeTo:"Rispetto a:",page:"Pagina",largest_object:"Oggetto più grande",selected_objects:"Oggetti selezionati",smallest_object:"Oggetto più piccolo",new_doc:"Nuova immagine",open_doc:"Apri immagine",export_img:"Export",save_doc:"Salva",import_doc:"Importa SVG",align_to_page:"Allinea elementi alla pagina",align_bottom:"Allinea in basso",align_center:"Allinea al centro",align_left:"Allinea a sinistra",align_middle:"Allinea al centro",align_right:"Allinea a destra",align_top:"Allinea in alto",mode_select:"Seleziona",mode_fhpath:"Matita",mode_line:"Linea",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Rettangolo a mano libera",mode_ellipse:"Ellisse",mode_circle:"Cerchio",mode_fhellipse:"Ellisse a mano libera",mode_path:"Spezzata",mode_text:"Testo",mode_image:"Immagine",mode_zoom:"Zoom",no_embed:"NOTA: L'immagine non può essere incorporata: dipenderà dal percorso assoluto per essere vista",undo:"Annulla",redo:"Rifai",tool_source:"Modifica sorgente",wireframe_mode:"Contorno",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Raggruppa elementi",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Converti in tracciato",reorient_path:"Riallinea",ungroup:"Separa gli elementi",docprops:"Proprietà del documento",editor_homepage:"SVG-Edit Home Page",move_bottom:"Sposta in fondo",move_top:"Sposta in cima",node_clone:"Clona nodo",node_delete:"Elimina nodo",node_link:"Collegamento tra punti di controllo",add_subpath:"Aggiungi sotto-percorso",openclose_path:"Apri/chiudi spezzata",source_save:"Salva",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Livello",layers:"Layers",del:"Elimina il livello",move_down:"Sposta indietro il livello",new:"Nuovo livello",rename:"Rinomina il livello",move_up:"Sposta avanti il livello",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Sposta verso:",move_selected:"Sposta gli elementi in un diverso livello"},config:{image_props:"Proprietà Immagine",doc_title:"Titolo",doc_dims:"Dimensioni dell'area di disegno",included_images:"Immagini incluse",image_opt_embed:"Incorpora dati (file locali)",image_opt_ref:"Usa l'identificativo di riferimento",editor_prefs:"Preferenze",icon_size:"Dimensione Icona",language:"Lingua",background:"Sfondo dell'editor",editor_img_url:"Image URL",editor_bg_note:"Nota: Lo sfondo non verrà salvato con l'immagine.",icon_large:"Grande",icon_medium:"Medio",icon_small:"Piccolo",icon_xlarge:"Molto grande",select_predefined:"Selezioni predefinite:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Valore assegnato non valido",noContentToFitTo:"Non c'è contenuto cui adeguarsi",dupeLayerName:"C'è già un livello con questo nome!",enterUniqueLayerName:"Assegna un diverso nome a ciascun livello, grazie!",enterNewLayerName:"Assegna un nome al livello",layerHasThatName:"Un livello ha già questo nome",QmoveElemsToLayer:"Sposta gli elementi selezionali al livello '%s'?",QwantToClear:"Vuoi cancellare il disegno?\nVerrà eliminato anche lo storico delle modifiche!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"Ci sono errori nel codice sorgente SVG.\nRitorno al codice originale?",QignoreSourceChanges:"Ignoro i cambiamenti nel sorgente SVG?",featNotSupported:"Caratteristica non supportata",enterNewImgURL:"Scrivi un nuovo URL per l'immagine",defsFailOnSave:"NOTA: A causa dlle caratteristiche del tuo browser, l'immagine potrà apparire errata (senza elementi o gradazioni) finché non sarà salvata.",loadingImage:"Sto caricando l'immagine. attendere prego...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Nota le seguenti particolarità: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),YF=Object.freeze({__proto__:null,default:{lang:"ja",dir:"ltr",common:{ok:"OK",cancel:"キャンセル",key_backspace:"backspace",key_del:"削除",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"クリックで塗りの色を選択、Shift+クリックで線の色を選択",zoom_level:"ズーム倍率の変更",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"塗りの色を変更",stroke_color:"線の色を変更",stroke_style:"線種の変更",stroke_width:"線幅の変更",pos_x:"X座標を変更",pos_y:"Y座標を変更",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"回転角の変更",blur:"Change gaussian blur value",opacity:"不透明度",circle_cx:"円の中心を変更(X座標)",circle_cy:"円の中心を変更(Y座標)",circle_r:"変更円の半径",ellipse_cx:"楕円の中心を変更(X座標)",ellipse_cy:"楕円の中心を変更(Y座標)",ellipse_rx:"楕円の半径を変更(X座標)",ellipse_ry:"楕円の半径を変更(Y座標)",line_x1:"開始X座標",line_x2:"終了X座標",line_y1:"開始Y座標",line_y2:"終了Y座標",rect_height:"長方形の高さを変更",rect_width:"長方形の幅を変更",corner_radius:"長方形の角の半径を変更",image_width:"画像の幅を変更",image_height:"画像の高さを変更",image_url:"URLを変更",node_x:"ノードのX座標を変更",node_y:"ノードのY座標を変更",seg_type:"線分の種類を変更",straight_segments:"直線",curve_segments:"カーブ",text_contents:"テキストの内容の変更",font_family:"フォントファミリーの変更",font_size:"文字サイズの変更",bold:"太字",italic:"イタリック体"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"背景色/不透明度の変更",connector_no_arrow:"No arrow",fitToContent:"コンテンツに合わせる",fit_to_all:"すべてのコンテンツに合わせる",fit_to_canvas:"キャンバスに合わせる",fit_to_layer_content:"レイヤー上のコンテンツに合わせる",fit_to_sel:"選択対象に合わせる",align_relative_to:"揃える",relativeTo:"相対:",page:"ページ",largest_object:"最大のオブジェクト",selected_objects:"選択オブジェクト",smallest_object:"最小のオブジェクト",new_doc:"新規イメージ",open_doc:"イメージを開く",export_img:"Export",save_doc:"画像を保存",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"下揃え",align_center:"中央揃え",align_left:"左揃え",align_middle:"中央揃え",align_right:"右揃え",align_top:"上揃え",mode_select:"選択ツール",mode_fhpath:"鉛筆ツール",mode_line:"直線ツール",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"フリーハンド長方形",mode_ellipse:"楕円",mode_circle:"円",mode_fhellipse:"フリーハンド楕円",mode_path:"パスツール",mode_text:"テキストツール",mode_image:"イメージツール",mode_zoom:"ズームツール",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"元に戻す",redo:"やり直し",tool_source:"ソースの編集",wireframe_mode:"ワイヤーフレームで表示 [F]",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"グループ化",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"パスに変換",reorient_path:"現在の角度を0度とする",ungroup:"グループ化を解除",docprops:"文書のプロパティ",editor_homepage:"SVG-Edit Home Page",move_bottom:"奥に移動",move_top:"手前に移動",node_clone:"ノードを複製",node_delete:"ノードを削除",node_link:"制御点の接続",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"適用",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"レイヤ",layers:"Layers",del:"レイヤの削除",move_down:"レイヤを下へ移動",new:"新規レイヤ",rename:"レイヤの名前を変更",move_up:"レイヤを上へ移動",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"移動先レイヤ:",move_selected:"選択対象を別のレイヤに移動"},config:{image_props:"イメージの設定",doc_title:"タイトル",doc_dims:"キャンバスの大きさ",included_images:"挿入された画像の扱い",image_opt_embed:"SVGファイルに埋め込む",image_opt_ref:"画像を参照する",editor_prefs:"エディタの設定",icon_size:"アイコンの大きさ",language:"言語",background:"エディタの背景色",editor_img_url:"Image URL",editor_bg_note:"※背景色はファイルに保存されません。",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",select_predefined:"デフォルト",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"無効な値が指定されています。",noContentToFitTo:"合わせる対象のコンテンツがありません。",dupeLayerName:"同名のレイヤーが既に存在します。",enterUniqueLayerName:"新規レイヤの一意な名前を入力してください。",enterNewLayerName:"レイヤの新しい名前を入力してください。",layerHasThatName:"既に同名が付いています。",QmoveElemsToLayer:"選択した要素をレイヤー '%s' に移動しますか?",QwantToClear:"キャンバスをクリアしますか?\nアンドゥ履歴も消去されます。",QwantToOpen:"新しいファイルを開きますか?\nアンドゥ履歴も消去されます。",QerrorsRevertToSource:"ソースにエラーがあります。\n元のソースに戻しますか?",QignoreSourceChanges:"ソースの変更を無視しますか?",featNotSupported:"機能はサポートされていません。",enterNewImgURL:"画像のURLを入力してください。",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),JF=Object.freeze({__proto__:null,default:{lang:"ko",dir:"ltr",common:{ok:"저장",cancel:"취소",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"색상을 클릭, 근무 시간 채우기 스트로크 색상을 변경하려면 변경하려면",zoom_level:"변경 수준으로 확대",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"채우기 색상 변경",stroke_color:"뇌졸중으로 색상 변경",stroke_style:"뇌졸중 변경 대시 스타일",stroke_width:"뇌졸중 너비 변경",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"회전 각도를 변경",blur:"Change gaussian blur value",opacity:"변경 항목을 선택 불투명도",circle_cx:"변경 동그라미 CX는 좌표",circle_cy:"동그라미 싸이 변경 조정할 수있어",circle_r:"변경 원의 반지름",ellipse_cx:"CX는 타원의 좌표 변경",ellipse_cy:"싸이 타원 변경 조정할 수있어",ellipse_rx:"변경 타원의 x 반지름",ellipse_ry:"변경 타원의 y를 반경",line_x1:"변경 라인의 X 좌표 시작",line_x2:"변경 라인의 X 좌표 결말",line_y1:"라인 변경 y를 시작 좌표",line_y2:"라인 변경 y를 결말의 좌표",rect_height:"사각형의 높이를 변경",rect_width:"사각형의 너비 변경",corner_radius:"변경 직사각형 코너 반경",image_width:"이미지 변경 폭",image_height:"이미지 높이 변경",image_url:"URL 변경",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"텍스트 변경 내용",font_family:"글꼴 변경 패밀리",font_size:"글꼴 크기 변경",bold:"굵은 텍스트",italic:"기울임꼴 텍스트"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"배경 색상 변경 / 투명도",connector_no_arrow:"No arrow",fitToContent:"맞춤 콘텐츠",fit_to_all:"맞춤 모든 콘텐츠에",fit_to_canvas:"맞춤 캔버스",fit_to_layer_content:"레이어에 맞게 콘텐츠",fit_to_sel:"맞춤 선택",align_relative_to:"정렬 상대적으로 ...",relativeTo:"상대:",page:"페이지",largest_object:"큰 개체",selected_objects:"당선 개체",smallest_object:"작은 개체",new_doc:"새 이미지",open_doc:"오픈 이미지",export_img:"Export",save_doc:"이미지 저장",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"히프 정렬",align_center:"정렬 센터",align_left:"왼쪽 정렬",align_middle:"중간 정렬",align_right:"오른쪽 맞춤",align_top:"정렬 탑",mode_select:"선택 도구",mode_fhpath:"연필 도구",mode_line:"선 도구",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"자유 핸드 직사각형",mode_ellipse:"타원",mode_circle:"동그라미",mode_fhellipse:"자유 핸드 타원",mode_path:"Path Tool",mode_text:"텍스트 도구",mode_image:"이미지 도구",mode_zoom:"줌 도구",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"취소",redo:"재실행",tool_source:"수정 소스",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"그룹 요소",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"그룹 해제 요소",docprops:"문서 속성",editor_homepage:"SVG-Edit Home Page",move_bottom:"아래로 이동",move_top:"상단으로 이동",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"저장",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Layer",layers:"Layers",del:"레이어 삭제",move_down:"레이어 아래로 이동",new:"새 레이어",rename:"레이어 이름 바꾸기",move_up:"레이어 위로 이동",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",select_predefined:"미리 정의된 선택:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),$F=Object.freeze({__proto__:null,default:{lang:"lt",dir:"ltr",common:{ok:"Saugoti",cancel:"Atšaukti",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Spustelėkite norėdami keisti užpildo spalvą, perėjimo spustelėkite pakeisti insultas spalva",zoom_level:"Keisti mastelį",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"Keisti užpildyti spalvos",stroke_color:"Keisti insultas spalva",stroke_style:"Keisti insultas brūkšnys stilius",stroke_width:"Keisti insultas plotis",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Keisti sukimosi kampas",blur:"Change gaussian blur value",opacity:"Pakeisti pasirinkto elemento neskaidrumo",circle_cx:"Keisti ratas's CX koordinuoti",circle_cy:"Keisti ratas's CY koordinuoti",circle_r:"Keisti savo apskritimo spindulys",ellipse_cx:"Keisti elipse's CX koordinuoti",ellipse_cy:"Keisti elipse's CY koordinuoti",ellipse_rx:"Keisti elipsė "X spindulys",ellipse_ry:"Keisti elipse Y spindulys",line_x1:"Keisti linijos nuo koordinačių x",line_x2:"Keisti linijos baigėsi x koordinuoti",line_y1:"Keisti linijos pradžios y koordinačių",line_y2:"Keisti linijos baigėsi y koordinačių",rect_height:"Keisti stačiakampio aukščio",rect_width:"Pakeisti stačiakampio plotis",corner_radius:"Keisti stačiakampis skyrelį Spindulys",image_width:"Keisti paveikslėlio plotis",image_height:"Keisti vaizdo aukštis",image_url:"Pakeisti URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Keisti teksto turinys",font_family:"Pakeistišriftą Šeima",font_size:"Change font size",bold:"Pusjuodis",italic:"Kursyvas"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Pakeisti fono spalvą / drumstumas",connector_no_arrow:"No arrow",fitToContent:"Talpinti turinys",fit_to_all:"Talpinti All content",fit_to_canvas:"Talpinti drobė",fit_to_layer_content:"Talpinti sluoksnis turinio",fit_to_sel:"Talpinti atrankos",align_relative_to:"Derinti palyginti ...",relativeTo:"palyginti:",page:"puslapis",largest_object:"didžiausias objektas",selected_objects:"išrinktas objektai",smallest_object:"mažiausias objektą",new_doc:"New Image",open_doc:"Atidaryti atvaizdą",export_img:"Export",save_doc:"Išsaugoti nuotrauką",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"Lygiuoti apačioje",align_center:"Lygiuoti",align_left:"Lygiuoti kairėje",align_middle:"Suderinti Vidurio",align_right:"Lygiuoti dešinėje",align_top:"Lygiuoti viršų",mode_select:"Įrankis",mode_fhpath:"Pencil Tool",mode_line:"Line Tool",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Free Hand stačiakampis",mode_ellipse:"Elipse",mode_circle:"Circle",mode_fhellipse:"Free Hand Elipsė",mode_path:"Path Tool",mode_text:"Tekstas Tool",mode_image:"Image Tool",mode_zoom:"Zoom Įrankį",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Atšaukti",redo:"Atstatyti",tool_source:"Taisyti Šaltinis",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Elementų grupės",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Išgrupuoti elementai",docprops:"Document Properties",editor_homepage:"SVG-Edit Home Page",move_bottom:"Perkelti į apačią",move_top:"Perkelti į viršų",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Saugoti",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Layer",layers:"Layers",del:"Ištrinti Layer",move_down:"Perkelti sluoksnį Žemyn",new:"New Layer",rename:"Pervadinti sluoksnį",move_up:"Perkelti sluoksnį Up",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",select_predefined:"Pasirinkite iš anksto:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),ZF=Object.freeze({__proto__:null,default:{lang:"lv",dir:"ltr",common:{ok:"Glābt",cancel:"Atcelt",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Noklikšķiniet, lai mainītu aizpildījuma krāsu, shift-click to mainīt stroke krāsa",zoom_level:"Pārmaiņu mērogu",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"Change aizpildījuma krāsu",stroke_color:"Change stroke krāsa",stroke_style:"Maina stroke domuzīme stils",stroke_width:"Change stroke platums",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Mainīt griešanās leņķis",blur:"Change gaussian blur value",opacity:"Mainīt izvēlēto objektu necaurredzamība",circle_cx:"Maina aplis's CX koordinēt",circle_cy:"Pārmaiņu loks ir cy koordinēt",circle_r:"Pārmaiņu loks ir rādiuss",ellipse_cx:"Mainīt elipses's CX koordinēt",ellipse_cy:"Mainīt elipses's cy koordinēt",ellipse_rx:"Mainīt elipses's x rādiuss",ellipse_ry:"Mainīt elipses's y rādiuss",line_x1:"Mainīt līnijas sākas x koordinēt",line_x2:"Mainīt līnijas beigu x koordinēt",line_y1:"Mainīt līnijas sākas y koordinātu",line_y2:"Mainīt līnijas beigu y koordinātu",rect_height:"Change Taisnstūra augstums",rect_width:"Change taisnstūra platums",corner_radius:"Maina Taisnstūris Corner Rādiuss",image_width:"Mainīt attēla platumu",image_height:"Mainīt attēla augstums",image_url:"Change URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Mainītu teksta saturs",font_family:"Mainīt fonta Family",font_size:"Mainīt fonta izmēru",bold:"Bold Text",italic:"Kursīvs"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Change background color / necaurredzamība",connector_no_arrow:"No arrow",fitToContent:"Fit to Content",fit_to_all:"Fit uz visu saturu",fit_to_canvas:"Ievietot audekls",fit_to_layer_content:"Ievietot slānis saturs",fit_to_sel:"Fit atlases",align_relative_to:"Līdzināt, salīdzinot ar ...",relativeTo:"salīdzinājumā ar:",page:"lapa",largest_object:"lielākais objekts",selected_objects:"ievēlēts objekti",smallest_object:"mazākais objekts",new_doc:"New Image",open_doc:"Open SVG",export_img:"Export",save_doc:"Save Image",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"Līdzināt Bottom",align_center:"Līdzināt uz centru",align_left:"Līdzināt pa kreisi",align_middle:"Līdzināt Middle",align_right:"Līdzināt pa labi",align_top:"Līdzināt Top",mode_select:"Select Tool",mode_fhpath:"Pencil Tool",mode_line:"Line Tool",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Free-Hand Taisnstūris",mode_ellipse:"Elipse",mode_circle:"Circle",mode_fhellipse:"Free-Hand Ellipse",mode_path:"Path",mode_text:"Text Tool",mode_image:"Image Tool",mode_zoom:"Zoom Tool",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Atpogāt",redo:"Redo",tool_source:"Rediģēt Source",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Grupa Elements",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Atgrupēt Elements",docprops:"Document Properties",editor_homepage:"SVG-Edit Home Page",move_bottom:"Pārvietot uz leju",move_top:"Pārvietot uz augšu",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Glābt",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Layer",layers:"Layers",del:"Dzēst Layer",move_down:"Pārvietot slāni uz leju",new:"New Layer",rename:"Pārdēvēt Layer",move_up:"Pārvietot slāni uz augšu",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",select_predefined:"Izvēlieties iepriekš:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),eU=Object.freeze({__proto__:null,default:{lang:"mk",dir:"ltr",common:{ok:"Зачувува",cancel:"Откажи",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Кликни за да внесете промени бојата, промена клик да се промени бојата удар",zoom_level:"Промена зум ниво",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"Измени пополнете боја",stroke_color:"Промена боја на мозочен удар",stroke_style:"Промена удар цртичка стил",stroke_width:"Промена удар Ширина",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Change ротација агол",blur:"Change gaussian blur value",opacity:"Промена избрани ставка непроѕирноста",circle_cx:"Промена круг на cx координира",circle_cy:"Промена круг's cy координираат",circle_r:"Промена на круг со радиус",ellipse_cx:"Промена елипса's cx координираат",ellipse_cy:"Промена на елипса cy координира",ellipse_rx:"Промена на елипса x радиус",ellipse_ry:"Промена на елипса у радиус",line_x1:"Промена линија почетна x координира",line_x2:"Промена линија завршува x координира",line_y1:"Промена линија координираат почетна y",line_y2:"Промена линија завршува y координира",rect_height:"Промена правоаголник височина",rect_width:"Промена правоаголник Ширина",corner_radius:"Промена правоаголник Corner Radius",image_width:"Промена Ширина на сликата",image_height:"Промена на слика височина",image_url:"Промена URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Промена текст содржина",font_family:"Смени фонт Фамилија",font_size:"Изменифонт Големина",bold:"Задебелен текст",italic:"Italic текст"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Смени позадина / непроѕирноста",connector_no_arrow:"No arrow",fitToContent:"Способен да Содржина",fit_to_all:"Способен да сите содржина",fit_to_canvas:"Побиране да платно",fit_to_layer_content:"Способен да слој содржина",fit_to_sel:"Способен да селекција",align_relative_to:"Порамни во поглед на ...",relativeTo:"во поглед на:",page:"страница",largest_object:"најголемиот објект",selected_objects:"избран објекти",smallest_object:"најмалата објект",new_doc:"Нови слики",open_doc:"Отвори слика",export_img:"Export",save_doc:"Зачувај слика",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"Align Bottom",align_center:"Центрирано",align_left:"Порамни лево Порамни",align_middle:"Израмни Среден",align_right:"Порамни десно",align_top:"Израмни почетокот",mode_select:"Изберете ја алатката",mode_fhpath:"Алатка за молив",mode_line:"Line Tool",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Правоаголник слободна рака",mode_ellipse:"Елипса",mode_circle:"Круг",mode_fhellipse:"Free-Hand Елипса",mode_path:"Path Tool",mode_text:"Алатка за текст",mode_image:"Алатка за сликата",mode_zoom:"Алатка за зумирање",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Врати",redo:"Повтори",tool_source:"Уреди Извор",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Група на елементи",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Ungroup Елементи",docprops:"Својства на документот",editor_homepage:"SVG-Edit Home Page",move_bottom:"Move to bottom",move_top:"Поместување на почетокот",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Зачувува",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Layer",layers:"Layers",del:"Избриши Слој",move_down:"Премести слој долу",new:"Нов слој",rename:"Преименувај слој",move_up:"Премести слој горе",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",select_predefined:"Изберете предефинирани:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),tU=Object.freeze({__proto__:null,default:{lang:"ms",dir:"ltr",common:{ok:"Simpan",cancel:"Batal",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Klik untuk menukar warna mengisi, shift-klik untuk menukar warna stroke",zoom_level:"Mengubah peringkat pembesaran",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"Tukar Warna mengisi",stroke_color:"Tukar Warna stroke",stroke_style:"Tukar gaya dash stroke",stroke_width:"Tukar stroke width",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Namakan sudut putaran",blur:"Change gaussian blur value",opacity:"Mengubah item yang dipilih keburaman",circle_cx:"Mengubah koordinat bulatan cx",circle_cy:"Mengubah koordinat cy bulatan",circle_r:"Tukar jari-jari lingkaran",ellipse_cx:"Tukar elips's cx koordinat",ellipse_cy:"Tukar elips's cy koordinat",ellipse_rx:"Tukar elips's x jari-jari",ellipse_ry:"Tukar elips's y jari-jari",line_x1:"Ubah baris mulai x koordinat",line_x2:"Ubah baris's Berakhir x koordinat",line_y1:"Ubah baris mulai y koordinat",line_y2:"Ubah baris di tiap akhir y koordinat",rect_height:"Perubahan quality persegi panjang",rect_width:"Tukar persegi panjang lebar",corner_radius:"Tukar Corner Rectangle Radius",image_width:"Tukar Lebar imej",image_height:"Tinggi gambar Kaca",image_url:"Tukar URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Tukar isi teks",font_family:"Tukar Font Keluarga",font_size:"Ubah Saiz Font",bold:"Bold Teks",italic:"Italic Teks"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Mengubah warna latar belakang / keburaman",connector_no_arrow:"No arrow",fitToContent:"Fit to Content",fit_to_all:"Cocok untuk semua kandungan",fit_to_canvas:"Muat kanvas",fit_to_layer_content:"Muat kandungan lapisan",fit_to_sel:"Fit seleksi",align_relative_to:"Rata relatif ...",relativeTo:"relatif:",page:"Laman",largest_object:"objek terbesar",selected_objects:"objek terpilih",smallest_object:"objek terkecil",new_doc:"Imej Baru",open_doc:"Membuka Image",export_img:"Export",save_doc:"Save Image",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"Rata Bottom",align_center:"Rata Tengah",align_left:"Rata Kiri",align_middle:"Rata Tengah",align_right:"Rata Kanan",align_top:"Rata Popular",mode_select:"Pilih Tool",mode_fhpath:"Pencil Tool",mode_line:"Line Tool",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Free-Hand Persegi Panjang",mode_ellipse:"Ellipse",mode_circle:"Lingkaran",mode_fhellipse:"Free-Hand Ellipse",mode_path:"Path Tool",mode_text:"Teks Tool",mode_image:"Image Tool",mode_zoom:"Zoom Tool",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Undo",redo:"Redo",tool_source:"Edit Source",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Kelompok Elemen",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Ungroup Elemen",docprops:"Document Properties",editor_homepage:"SVG-Edit Home Page",move_bottom:"Pindah ke Bawah",move_top:"Pindah ke Atas",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Simpan",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Layer",layers:"Layers",del:"Padam Layer",move_down:"Pindah Layer Bawah",new:"New Layer",rename:"Rename Layer",move_up:"Pindah Layer Up",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",select_predefined:"Pilih standard:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),rU=Object.freeze({__proto__:null,default:{lang:"mt",dir:"ltr",common:{ok:"Save",cancel:"Ikkanċella",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Ikklikkja biex timla l-bidla fil-kulur, ikklikkja-bidla għall-bidla color stroke",zoom_level:"Bidla zoom livell",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"Bidla imla color",stroke_color:"Color stroke Bidla",stroke_style:"Bidla stroke dash stil",stroke_width:"Wisa 'puplesija Bidla",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Angolu ta 'rotazzjoni Bidla",blur:"Change gaussian blur value",opacity:"Bidla magħżula opaċità partita",circle_cx:"CX ċirku Tibdil jikkoordinaw",circle_cy:"Ċirku Tibdil cy jikkoordinaw",circle_r:"Raġġ ta 'ċirku tal-Bidla",ellipse_cx:"Bidla ellissi's CX jikkoordinaw",ellipse_cy:"Ellissi Tibdil cy jikkoordinaw",ellipse_rx:"Raġġ x ellissi Tibdil",ellipse_ry:"Raġġ y ellissi Tibdil",line_x1:"Bidla fil-linja tal-bidu tikkoordina x",line_x2:"Linja tal-Bidla li jispiċċa x jikkoordinaw",line_y1:"Bidla fil-linja tal-bidu y jikkoordinaw",line_y2:"Linja Tibdil jispiċċa y jikkoordinaw",rect_height:"Għoli rettangolu Bidla",rect_width:"Wisa 'rettangolu Bidla",corner_radius:"Bidla Rectangle Corner Radius",image_width:"Wisa image Bidla",image_height:"Għoli image Bidla",image_url:"Bidla URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Test kontenut Bidla",font_family:"Bidla Font Familja",font_size:"Change font size",bold:"Bold Test",italic:"Test korsiv"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Bidla fil-kulur fl-isfond / opaċità",connector_no_arrow:"No arrow",fitToContent:"Fit għall-kontenut",fit_to_all:"Tajbin għall-kontenut",fit_to_canvas:"Xieraq li kanvas",fit_to_layer_content:"Fit-kontenut ta 'saff għal",fit_to_sel:"Fit-għażla",align_relative_to:"Jallinjaw relattiv għall - ...",relativeTo:"relattiv għall -:",page:"paġna",largest_object:"akbar oġġett",selected_objects:"oġġetti elett",smallest_object:"iżgħar oġġett",new_doc:"Image New",open_doc:"Open SVG",export_img:"Export",save_doc:"Image Save",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"Tallinja Bottom",align_center:"Tallinja Center",align_left:"Tallinja Left",align_middle:"Tallinja Nofsani",align_right:"Tallinja Dritt",align_top:"Tallinja Top",mode_select:"Select Tool",mode_fhpath:"Lapes Tool",mode_line:"Line Tool",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Free Hand-Rectangle",mode_ellipse:"Ellissi",mode_circle:"Circle",mode_fhellipse:"Free Hand-ellissi",mode_path:"Path Tool",mode_text:"Text Tool",mode_image:"Image Tool",mode_zoom:"Zoom Tool",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Jneħħu",redo:"Jerġa 'jagħmel",tool_source:"Source Edit",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Grupp Elements",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Ungroup Elements",docprops:"Dokument Properties",editor_homepage:"SVG-Edit Home Page",move_bottom:"Move to Bottom",move_top:"Move to Top",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Save",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Layer",layers:"Layers",del:"Ħassar Layer",move_down:"Move Layer Down",new:"New Layer",rename:"Semmi mill-ġdid Layer",move_up:"Move Layer Up",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",select_predefined:"Select predefiniti:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),nU=Object.freeze({__proto__:null,default:{lang:"nl",dir:"ltr",common:{ok:"Ok",cancel:"Annuleren",key_backspace:"backspace",key_del:"delete",key_down:"omlaag",key_up:"omhoog",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Mogelijk gemaakt door"},ui:{toggle_stroke_tools:"Toon/verberg meer lijn gereedschap",palette_info:"Klik om de vul kleur te veranderen, shift-klik om de lijn kleur te veranderen",zoom_level:"In-/uitzoomen",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identificeer het element",fill_color:"Verander vul kleur",stroke_color:"Verander lijn kleur",stroke_style:"Verander lijn stijl",stroke_width:"Verander lijn breedte",pos_x:"Verander X coordinaat",pos_y:"Verander Y coordinaat",linecap_butt:"Lijneinde: Geen",linecap_round:"Lijneinde: Rond",linecap_square:"Lijneinde: Vierkant",linejoin_bevel:"Lijnverbinding: Afgestompt",linejoin_miter:"Lijnverbinding: Hoek",linejoin_round:"Lijnverbinding: Rond",angle:"Draai",blur:"Verander Gaussische vervaging waarde",opacity:"Verander opaciteit geselecteerde item",circle_cx:"Verander het X coordinaat van het cirkel middelpunt",circle_cy:"Verander het Y coordinaat van het cirkel middelpunt",circle_r:"Verander de cirkel radius",ellipse_cx:"Verander het X coordinaat van het ellips middelpunt",ellipse_cy:"Verander het Y coordinaat van het ellips middelpunt",ellipse_rx:"Verander ellips X radius",ellipse_ry:"Verander ellips Y radius",line_x1:"Verander start X coordinaat van de lijn",line_x2:"Verander eind X coordinaat van de lijn",line_y1:"Verander start Y coordinaat van de lijn",line_y2:"Verander eind Y coordinaat van de lijn",rect_height:"Verander hoogte rechthoek",rect_width:"Verander breedte rechthoek",corner_radius:"Verander hoekradius rechthoek",image_width:"Verander breedte afbeelding",image_height:"Verander hoogte afbeelding",image_url:"Verander URL",node_x:"Verander X coordinaat knooppunt",node_y:"Verander Y coordinaat knooppunt",seg_type:"Verander segment type",straight_segments:"Recht",curve_segments:"Gebogen",text_contents:"Wijzig tekst",font_family:"Verander lettertype",font_size:"Verander lettertype grootte",bold:"Vet",italic:"Cursief"},tools:{main_menu:"Hoofdmenu",bkgnd_color_opac:"Verander achtergrond kleur/doorzichtigheid",connector_no_arrow:"Geen pijl",fitToContent:"Pas om inhoud",fit_to_all:"Pas om alle inhoud",fit_to_canvas:"Pas om canvas",fit_to_layer_content:"Pas om laag inhoud",fit_to_sel:"Pas om selectie",align_relative_to:"Uitlijnen relatief ten opzichte van ...",relativeTo:"Relatief ten opzichte van:",page:"Pagina",largest_object:"Grootste object",selected_objects:"Geselecteerde objecten",smallest_object:"Kleinste object",new_doc:"Nieuwe afbeelding",open_doc:"Open afbeelding",export_img:"Export",save_doc:"Afbeelding opslaan",import_doc:"Importeer SVG",align_to_page:"Lijn element uit relatief ten opzichte van de pagina",align_bottom:"Onder uitlijnen",align_center:"Centreren",align_left:"Links uitlijnen",align_middle:"Midden uitlijnen",align_right:"Rechts uitlijnen",align_top:"Boven uitlijnen",mode_select:"Selecteer",mode_fhpath:"Potlood",mode_line:"Lijn",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Vrije stijl rechthoek",mode_ellipse:"Ellips",mode_circle:"Cirkel",mode_fhellipse:"Vrije stijl ellips",mode_path:"Pad",mode_text:"Tekst",mode_image:"Afbeelding",mode_zoom:"Zoom",no_embed:"Let op: Dit plaatje kan niet worden geintegreerd (embeded). Het hangt af van dit pad om te worden afgebeeld.",undo:"Ongedaan maken",redo:"Opnieuw doen",tool_source:"Bewerk bron",wireframe_mode:"Draadmodel",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Groepeer elementen",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Zet om naar pad",reorient_path:"Herorienteer pad",ungroup:"Groepering opheffen",docprops:"Documenteigenschappen",editor_homepage:"SVG-Edit Home Page",move_bottom:"Naar achtergrond",move_top:"Naar voorgrond",node_clone:"Kloon knooppunt",node_delete:"Delete knooppunt",node_link:"Koppel controle punten",add_subpath:"Subpad toevoegen",openclose_path:"Open/sluit subpad",source_save:"Veranderingen toepassen",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Laag",layers:"Layers",del:"Delete laag",move_down:"Beweeg laag omlaag",new:"Nieuwe laag",rename:"Hernoem laag",move_up:"Beweeg laag omhoog",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Verplaats elementen naar:",move_selected:"Verplaats geselecteerde elementen naar andere laag"},config:{image_props:"Afbeeldingeigenschappen",doc_title:"Titel",doc_dims:"Canvas afmetingen",included_images:"Ingesloten afbeeldingen",image_opt_embed:"Toevoegen data (lokale bestanden)",image_opt_ref:"Gebruik bestand referentie",editor_prefs:"Editor eigenschappen",icon_size:"Icoon grootte",language:"Taal",background:"Editor achtergrond",editor_img_url:"Image URL",editor_bg_note:"Let op: De achtergrond wordt niet opgeslagen met de afbeelding.",icon_large:"Groot",icon_medium:"Gemiddeld",icon_small:"Klein",icon_xlarge:"Extra groot",select_predefined:"Kies voorgedefinieerd:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Verkeerde waarde gegeven",noContentToFitTo:"Geen inhoud om omheen te passen",dupeLayerName:"Er is al een laag met die naam!",enterUniqueLayerName:"Geef een unieke laag naam",enterNewLayerName:"Geef een nieuwe laag naam",layerHasThatName:"Laag heeft al die naam",QmoveElemsToLayer:"Verplaats geselecteerde elementen naar laag '%s'?",QwantToClear:"Wil je de afbeelding leeg maken?\nDit zal ook de ongedaan maak geschiedenis wissen!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"Er waren analyse fouten in je SVG bron.\nTeruggaan naar de originele SVG bron?",QignoreSourceChanges:"Veranderingen in de SVG bron negeren?",featNotSupported:"Functie wordt niet ondersteund",enterNewImgURL:"Geef de nieuwe afbeelding URL",defsFailOnSave:"Let op: Vanwege een fout in je browser, kan dit plaatje verkeerd verschijnen (missende hoeken en/of elementen). Het zal goed verschijnen zodra het plaatje echt wordt opgeslagen.",loadingImage:"Laden van het plaatje, even geduld aub...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Let op de volgende problemen: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),iU=Object.freeze({__proto__:null,default:{lang:"no",dir:"ltr",common:{ok:"Lagre",cancel:"Avbryt",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Click å endre fyllfarge, shift-klikke for å endre slag farge",zoom_level:"Endre zoomnivå",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"Endre fyllfarge",stroke_color:"Endre stroke color",stroke_style:"Endre stroke dash stil",stroke_width:"Endre stroke width",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Endre rotasjonsvinkelen",blur:"Change gaussian blur value",opacity:"Endre valgte elementet opasitet",circle_cx:"Endre sirkelens CX koordinatsystem",circle_cy:"Endre sirkelens koordinere cy",circle_r:"Endre sirkelens radius",ellipse_cx:"Endre ellipse's CX koordinatsystem",ellipse_cy:"Endre ellipse's koordinere cy",ellipse_rx:"Endre ellipse's x radius",ellipse_ry:"Endre ellipse's y radius",line_x1:"Endre linje begynner x koordinat",line_x2:"Endre linje's ending x koordinat",line_y1:"Endre linje begynner y koordinat",line_y2:"Endre linje's ending y koordinat",rect_height:"Endre rektangel høyde",rect_width:"Endre rektangel bredde",corner_radius:"Endre rektangel Corner Radius",image_width:"Endre bilde bredde",image_height:"Endre bilde høyde",image_url:"Endre URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Endre tekst innholdet",font_family:"Change Font Family",font_size:"Endre skriftstørrelse",bold:"Fet tekst",italic:"Kursiv tekst"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Endre bakgrunnsfarge / opacity",connector_no_arrow:"No arrow",fitToContent:"Fit to Content",fit_to_all:"Passer til alt innhold",fit_to_canvas:"Tilpass til lerret",fit_to_layer_content:"Fit to lag innhold",fit_to_sel:"Tilpass til valg",align_relative_to:"Juster i forhold til ...",relativeTo:"i forhold til:",page:"side",largest_object:"største objekt",selected_objects:"velges objekter",smallest_object:"minste objekt",new_doc:"New Image",open_doc:"Åpne Image",export_img:"Export",save_doc:"Lagre bilde",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"Align Bottom",align_center:"Midtstill",align_left:"Venstrejuster",align_middle:"Rett Middle",align_right:"Høyrejuster",align_top:"Align Top",mode_select:"Select Tool",mode_fhpath:"Pencil Tool",mode_line:"Linjeverktøy",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Free-Hand rektangel",mode_ellipse:"Ellipse",mode_circle:"Circle",mode_fhellipse:"Free-Hand Ellipse",mode_path:"Path Tool",mode_text:"Text Tool",mode_image:"Image Tool",mode_zoom:"Zoom Tool",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Angre",redo:"Redo",tool_source:"Edit Source",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Gruppe Elements",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Dele opp Elements",docprops:"Document Properties",editor_homepage:"SVG-Edit Home Page",move_bottom:"Move to Bottom",move_top:"Flytt til toppen",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Lagre",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Layer",layers:"Layers",del:"Slett laget",move_down:"Flytt laget ned",new:"Nytt lag",rename:"Rename Layer",move_up:"Flytt Layer Up",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",select_predefined:"Velg forhåndsdefinerte:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),oU=Object.freeze({__proto__:null,default:{lang:"pl",dir:"ltr",author:"Aleksander Lurie",common:{ok:"OK",cancel:"Anuluj",key_backspace:"usuń",key_del:"usuń",key_down:"w dół",key_up:"w górę",more_opts:"więcej opcji",url:"adres url",width:"Szerokość",height:"Wysokość"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Pokaż/ukryj więcej opcji obramowania",palette_info:"Kliknij aby zmienić kolor wypełnienia, przytrzymaj shift aby zmienić kolor obramowania",zoom_level:"Zmiana powiększenia",panel_drag:"Przeciągnij w lewo/prawo aby zmienić szerokość panelu",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identyfikator elementu",fill_color:"Zmień kolor wypełnienia",stroke_color:"Zmień kolor obramowania",stroke_style:"Zmień styl obramowania",stroke_width:"Zmień szerokość obramowania o 1, przytrzymaj shift aby zmienić szerokość o 0.1",pos_x:"Zmień współrzędną X",pos_y:"Zmień współrzędną Y",linecap_butt:"Zakończenie linii: grzbiet",linecap_round:"Zakończenie linii: zaokrąglone",linecap_square:"Zakończenie linii: kwadrat",linejoin_bevel:"Łączenie linii: ścięte",linejoin_miter:"Łączenie linii: ostre",linejoin_round:"Łączenie linii: zaokrąglone",angle:"Zmień kąt obrotu",blur:"Zmień wartość rozmycia gaussa",opacity:"Zmień przezroczystość zaznaczonego elementu",circle_cx:"Zmień współrzędną cx okręgu",circle_cy:"Zmień współrzędną cy okręgu",circle_r:"zmień promień okręgu",ellipse_cx:"Zmień współrzędną cx elipsy",ellipse_cy:"Zmień współrzędną cy elipsy",ellipse_rx:"Zmień promień x elipsy",ellipse_ry:"Zmień promień y elipsy",line_x1:"Zmień współrzędna x początku linii",line_x2:"Zmień współrzędną x końca linii",line_y1:"Zmień współrzędną y początku linii",line_y2:"Zmień współrzędną y końca linii",rect_height:"Zmień wysokość prostokąta",rect_width:"Zmień szerokość prostokąta",corner_radius:"Zmień promień zaokrąglenia narożników prostokąta",image_width:"Zmień wysokość obrazu",image_height:"Zmień szerokość obrazu",image_url:"Zmień adres URL",node_x:"Zmień współrzędną x węzła",node_y:"Zmień współrzędną y węzła",seg_type:"Zmień typ segmentu",straight_segments:"Prosty",curve_segments:"Zaokrąglony",text_contents:"Zmień text",font_family:"Zmień krój czcionki",font_size:"Zmień rozmiar czcionki",bold:"Pogrubienie textu",italic:"Kursywa"},tools:{main_menu:"Menu główne",bkgnd_color_opac:"Zmiana koloru/przezroczystości tła",connector_no_arrow:"Brak strzałek",fitToContent:"Dopasuj do zawartości",fit_to_all:"Dopasuj do całej zawartości",fit_to_canvas:"Dopasuj do widoku",fit_to_layer_content:"Dopasuj do zawartości warstwy",fit_to_sel:"Dopasuj do zaznaczenia",align_relative_to:"Wyrównaj relatywnie do ...",relativeTo:"relatywnie do:",page:"strona",largest_object:"największy obiekt",selected_objects:"zaznaczone obiekty",smallest_object:"najmniejszy obiekt",new_doc:"Nowy obraz",open_doc:"Otwórz obraz",export_img:"Eksportuj",save_doc:"Zapisz obraz",import_doc:"Importuj SVG",align_to_page:"Wyrównaj element do strony",align_bottom:"Wyrównaj do dołu",align_center:"Wyśrodkuj w poziomie",align_left:"Wyrównaj do lewej",align_middle:"Wyśrodkuj w pionie",align_right:"Wyrównaj do prawej",align_top:"Wyrównaj do góry",mode_select:"Zaznaczenie",mode_fhpath:"Ołówek",mode_line:"Linia",mode_rect:"Prostokąt",mode_square:"Kwadrat",mode_fhrect:"Dowolny prostokąt",mode_ellipse:"Elipsa",mode_circle:"Okrąg",mode_fhellipse:"Dowolna elipsa",mode_path:"Ścieżka",mode_text:"Tekst",mode_image:"Obraz",mode_zoom:"Powiększenie",no_embed:"Uwaga: Ten obraz nie może być osadzony. Być może podany adres na to nie pozwala",undo:"Wstecz",redo:"Dalej",tool_source:"Edytuj źródło",wireframe_mode:"Tryb szkieletowy",clone:"Klonuj element(y)",del:"Usuń warstwę",group_elements:"Grupuj elementy",make_link:"Utwórz łącze",set_link_url:"Ustal adres URL (pozostaw puste aby usunąć)",to_path:"Konwertuj do ścieżki",reorient_path:"Zresetuj obwiednię",ungroup:"Rozgrupuj elementy",docprops:"Właściwości dokumentu",editor_homepage:"SVG-Edit Home Page",move_bottom:"Przenieś pod spód",move_top:"Przenieś na wierzch",node_clone:"Klonuj węzeł",node_delete:"Usuń węzeł",node_link:"Podłącz punkty kontrolne",add_subpath:"Dodaj ścieżkę podrzędną",openclose_path:"Otwórz/zamknij ścieżkę podrzędną",source_save:"Zachowaj zmiany",cut:"Wytnij",copy:"Kopiuj",paste:"Wklej",paste_in_place:"Wklej w miejscu",delete:"Usuń",group:"Grupuj",move_front:"Przenieś do przodu",move_up:"Przenieś warstwę w górę",move_down:"Przenieś warstwę w dół",move_back:"Przenieś do tyłu"},layers:{layer:"Warstwa",layers:"Warstwy",del:"Usuń warstwę",move_down:"Przenieś warstwę w dół",new:"Nowa warstwa",rename:"Zmień nazwę warstwy",move_up:"Przenieś warstwę w górę",dupe:"Duplikuj warstwę",merge_down:"Scal w dół",merge_all:"Scal wszystko",move_elems_to:"Przenieś elementy do:",move_selected:"Przenieś zaznaczone elementy do innej warstwy"},config:{image_props:"Własciwości obrazu",doc_title:"Tytuł",doc_dims:"Wymiary pola roboczego",included_images:"Dołączone obrazy",image_opt_embed:"Dane osadzone (pliki lokalne)",image_opt_ref:"Użyj referencji do pliku",editor_prefs:"Ustawienia edytora",icon_size:"Rozmiar ikon",language:"Język",background:"Tło edytora",editor_img_url:"Adres URL obrazu",editor_bg_note:"Uwaga: Tło nie zostało zapisane z obrazem.",icon_large:"Duże",icon_medium:"Średnie",icon_small:"Małe",icon_xlarge:"Bardzo duże",select_predefined:"Wybierz predefiniowany:",units_and_rulers:"Jednostki/Linijki",show_rulers:"Pokaż linijki",base_unit:"Podstawowa jednostka:",grid:"Siatka",snapping_onoff:"Włącz/wyłącz przyciąganie",snapping_stepsize:"Przyciągaj co:",grid_color:"Kolor siatki"},notification:{invalidAttrValGiven:"Podano nieprawidłową wartość",noContentToFitTo:"Brak zawartości do dopasowania",dupeLayerName:"Istnieje już warstwa o takiej nazwie!",enterUniqueLayerName:"Podaj unikalną nazwę warstwy",enterNewLayerName:"Podaj nazwe nowej warstwy",layerHasThatName:"Warstwa już tak się nazywa",QmoveElemsToLayer:"Przenies zaznaczone elementy do warstwy '%s'?",QwantToClear:"Jesteś pewien, że chcesz wyczyścić pole robocze?\nHistoria projektu również zostanie skasowana",QwantToOpen:"Jesteś pewien, że chcesz otworzyć nowy plik?\nHistoria projektu również zostanie skasowana",QerrorsRevertToSource:"Błąd parsowania źródła Twojego pliku SVG.\nPrzywrócić orginalne źródło pliku SVG?",QignoreSourceChanges:"Zignorowac zmiany w źródle pliku SVG?",featNotSupported:"Funkcjonalność niedostępna",enterNewImgURL:"Podaj adres URL nowego obrazu",defsFailOnSave:"Uwaga: Ze względu na błąd w przeglądarce, ten obraz może się źle wyswietlać (brak gradientów lub elementów). Będzie jednak wyświetlał się poprawnie skoro został zapisany.",loadingImage:"Ładowanie obrazu, proszę czekać...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Zwróć uwagę na nastepujące kwestie: ",unsavedChanges:"Wykryto niezapisane zmiany.",enterNewLinkURL:"Wpisz nowy adres URL hiperłącza",errorLoadingSVG:"Błąd: Nie można załadować danych SVG",URLLoadFail:"Nie można załadować z adresu URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),aU=Object.freeze({__proto__:null,default:{lang:"pt-BR",dir:"ltr",common:{ok:"OK",cancel:"Cancelar",key_backspace:"Tecla backspace",key_del:"Tecla delete",key_down:"Seta para baixo",key_up:"Seta para cima",more_opts:"Mais opções",url:"URL",width:"Largura",height:"Altura"},misc:{powered_by:"Tecnologia"},ui:{toggle_stroke_tools:"Mais opções de traço",palette_info:"Click para mudar a cor de preenchimento, shift-click para mudar a cor do traço",zoom_level:"Mudar zoom",panel_drag:"Arraste para redimensionar o painel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identifica o elemento",fill_color:"Mudar a cor de preenchimento",stroke_color:"Mudar a cor do traço",stroke_style:"Mudar o estilo do traço",stroke_width:"Mudar a espessura do traço em 1, shift-click para mudar 0.1",pos_x:"Mudar a coordenada X",pos_y:"Mudar a coordenada Y",linecap_butt:"Estilo do fim do traço: Topo",linecap_round:"Estilo do fim do traço: Redondo",linecap_square:"Estilo do fim do traço: Quadrado",linejoin_bevel:"Estilo da Aresta: Chanfro",linejoin_miter:"Estilo da Aresta: Reto",linejoin_round:"Estilo da Aresta: Redondo",angle:"Mudar ângulo de rotação",blur:"Mudar valor de desfoque",opacity:"Mudar opacidade do item selecionado",circle_cx:"Mudar a coordenada cx do círculo",circle_cy:"Mudar a coordenada cy do círculo",circle_r:"Mudar o raio do círculo",ellipse_cx:"Mudar a coordenada cx da elípse",ellipse_cy:"Mudar a coordenada cy da elípse",ellipse_rx:"Mudar o raio x da elípse",ellipse_ry:"Mudar o raio y da elípse",line_x1:"Mudar a coordenada x do início da linha",line_x2:"Mudar a coordenada x do fim da linha",line_y1:"Mudar a coordenada y do início da linha",line_y2:"Mudar a coordenada y do fim da linha",rect_height:"Mudar a altura do retângulo",rect_width:"Mudar a largura do retângulo",corner_radius:"Mudar o raio da aresta do retângulo",image_width:"Mudar a largura da imagem",image_height:"Mudar a altura da imagem",image_url:"Mudar URL",node_x:"Mudar a coordenada x da aresta",node_y:"Mudar a coordenada y da aresta",seg_type:"Mudar o tipo de segmento",straight_segments:"Reto",curve_segments:"Curvo",text_contents:"Mudar conteúdo do texto",font_family:"Mudar o estilo da fonte",font_size:"Mudar o tamanho da fonte",bold:"Negrito",italic:"Italico"},tools:{main_menu:"Menu Principal",bkgnd_color_opac:"Mudar cor/opacidade do fundo",connector_no_arrow:"Sem flecha",fitToContent:"Ajustar ao conteúdo",fit_to_all:"Ajustar a todo conteúdo",fit_to_canvas:"Ajustar à tela",fit_to_layer_content:"Ajustar ao conteúdo da camada",fit_to_sel:"Ajustar à seleção",align_relative_to:"Alinhar em relação à ...",relativeTo:"Referência:",page:"página",largest_object:"maior objeto",selected_objects:"objetos selecionados",smallest_object:"menor objeto",new_doc:"Nova imagem",open_doc:"Abrir imagem",export_img:"Export",save_doc:"Salvar imagem",import_doc:"Importar SVG",align_to_page:"Alinhar elemento na página",align_bottom:"Alinhar no fundo",align_center:"Alinhar no centro",align_left:"Alinhar na esquerda",align_middle:"Alinhar no meio",align_right:"Alinhar na direita",align_top:"Alinhar no topo",mode_select:"Selecão",mode_fhpath:"Lápis",mode_line:"Linha",mode_rect:"Retângulo",mode_square:"Quadrado",mode_fhrect:"Retângulo a mão-livre",mode_ellipse:"Elípse",mode_circle:"Círculo",mode_fhellipse:"Elípse a mão-livre",mode_path:"Contorno",mode_text:"Texto",mode_image:"Imagem",mode_zoom:"Zoom",no_embed:"Atenção: Esta imagem não pode ser incorporada e dependerá de seu caminho para ser exibida",undo:"Desfazer",redo:"Refazer",tool_source:"Editar o código",wireframe_mode:"Modo linhas",clone:"Clonar Elemento(s)",del:"Deletar Elemento(s)",group_elements:"Agrupar Elementos",make_link:"Criar (hyper)link",set_link_url:"Alterar URL (em branco para remover)",to_path:"Converter para Contorno",reorient_path:"Reorientar contorno",ungroup:"Desagrupar Elementos",docprops:"Propriedades",editor_homepage:"SVG-Edit Home Page",move_bottom:"Mover para o fundo",move_top:"Mover para o topo",node_clone:"Clonar Aresta",node_delete:"Deletar Aresta",node_link:"Alinhar pontos de controle",add_subpath:"Adicionar contorno",openclose_path:"Abrir/Fechar contorno",source_save:"Salvar",cut:"Recortar",copy:"Copiar",paste:"Colar",paste_in_place:"Colar no mesmo local",delete:"Deletar",group:"Agrupar",move_front:"Trazer para Frente",move_up:"Avançar",move_down:"Recuar",move_back:"Enviar para Trás"},layers:{layer:"Camada",layers:"Camadas",del:"Deletar Camada",move_down:"Enviar Camada para Trás",new:"Nova Camada",rename:"Renomear Camada",move_up:"Trazer Camada para Frente",dupe:"Duplicar Camada",merge_down:"Achatar para baixo",merge_all:"Achatar todas",move_elems_to:"Mover elementos para:",move_selected:"Mover elementos selecionados para outra camada"},config:{image_props:"Propriedades",doc_title:"Título",doc_dims:"Dimensões",included_images:"Imagens",image_opt_embed:"Incorporadas (arquivos locais)",image_opt_ref:"Usar referência",editor_prefs:"Preferências",icon_size:"Tamanho dos ícones",language:"Idioma",background:"Fundo da página",editor_img_url:"URL da Imagem",editor_bg_note:"Atenção: Fundo da página não será salvo.",icon_large:"Grande",icon_medium:"Médio",icon_small:"Pequeno",icon_xlarge:"Extra Grande",select_predefined:"Modelos:",units_and_rulers:"Unidade & Réguas",show_rulers:"Mostrar réguas",base_unit:"Unidade base:",grid:"Grade",snapping_onoff:"Snap on/off",snapping_stepsize:"Intensidade do Snap:"},notification:{invalidAttrValGiven:"Valor inválido",noContentToFitTo:"Não há conteúdo",dupeLayerName:"Nome duplicado",enterUniqueLayerName:"Insira um nome único",enterNewLayerName:"Insira um novo nome",layerHasThatName:"A camada já pussui este nome",QmoveElemsToLayer:"Mover elementos selecionados para a camada: '%s'?",QwantToClear:"Deseja criar um novo arquivo?\nO histórico também será apagado!",QwantToOpen:"Deseja abrir um novo arquivo?\nO histórico também será apagado!",QerrorsRevertToSource:"Foram encontrados erros ná análise do código SVG.\nReverter para o código SVG original?",QignoreSourceChanges:"Ignorar as mudanças no código SVG?",featNotSupported:"Recurso não suportado",enterNewImgURL:"Insira nova URL da imagem",defsFailOnSave:"Atenção: Devido a um bug em seu navegador, esta imagem pode apresentar erros, porém será salva corretamente.",loadingImage:"Carregando imagem, por favor aguarde...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Atenção para as seguintes questões: ",unsavedChanges:"Existem alterações não salvas.",enterNewLinkURL:"Insira novo URL do hyperlink",errorLoadingSVG:"Erro: Impossível carregar dados SVG",URLLoadFail:"Impossível carregar deste URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),sU=Object.freeze({__proto__:null,default:{lang:"pt-PT",dir:"ltr",common:{ok:"Salvar",cancel:"Cancelar",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Clique para mudar a cor de preenchimento, shift-clique para mudar a cor do curso",zoom_level:"Alterar o nível de zoom",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"Alterar a cor de preenchimento",stroke_color:"Mudar a cor do curso",stroke_style:"Alterar o estilo do traço do curso",stroke_width:"Alterar a largura do curso",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Alterar o ângulo de rotação",blur:"Change gaussian blur value",opacity:"Mude a opacidade item selecionado",circle_cx:"Cx Mudar círculo de coordenadas",circle_cy:"Círculo Mudança cy coordenar",circle_r:"Alterar círculo de raio",ellipse_cx:"Alterar elipse cx coordenar",ellipse_cy:"Elipse Mudança cy coordenar",ellipse_rx:"Raio X Change elipse",ellipse_ry:"Raio y Change elipse",line_x1:"Altere a linha de partida coordenada x",line_x2:"Altere a linha está terminando coordenada x",line_y1:"Mudança na linha de partida coordenada y",line_y2:"Mudança de linha está terminando coordenada y",rect_height:"Alterar altura do retângulo",rect_width:"Alterar a largura retângulo",corner_radius:"Alterar Corner Rectangle Radius",image_width:"Alterar a largura da imagem",image_height:"Alterar altura da imagem",image_url:"Alterar URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Alterar o conteúdo de texto",font_family:"Alterar fonte Família",font_size:"Alterar tamanho de letra",bold:"Bold Text",italic:"Texto em itálico"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Mudar a cor de fundo / opacidade",connector_no_arrow:"No arrow",fitToContent:"Ajustar ao conteúdo",fit_to_all:"Ajustar a todo o conteúdo",fit_to_canvas:"Ajustar à tela",fit_to_layer_content:"Ajustar o conteúdo da camada de",fit_to_sel:"Ajustar à selecção",align_relative_to:"Alinhar em relação a ...",relativeTo:"em relação ao:",page:"Página",largest_object:"maior objeto",selected_objects:"objetos eleitos",smallest_object:"menor objeto",new_doc:"Nova Imagem",open_doc:"Abrir Imagem",export_img:"Export",save_doc:"Salvar Imagem",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"Align Bottom",align_center:"Alinhar ao centro",align_left:"Alinhar à Esquerda",align_middle:"Alinhar Médio",align_right:"Alinhar à Direita",align_top:"Align Top",mode_select:"Selecione a ferramenta",mode_fhpath:"Ferramenta Lápis",mode_line:"Ferramenta Linha",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Free-Hand Rectangle",mode_ellipse:"Elipse",mode_circle:"Circle",mode_fhellipse:"Free-Hand Ellipse",mode_path:"Path Tool",mode_text:"Ferramenta de Texto",mode_image:"Image Tool",mode_zoom:"Zoom Tool",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Desfazer",redo:"Refazer",tool_source:"Fonte Editar",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Elementos do Grupo",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Elementos Desagrupar",docprops:"Propriedades do Documento",editor_homepage:"SVG-Edit Home Page",move_bottom:"Move to Bottom",move_top:"Move to Top",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Salvar",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Layer",layers:"Layers",del:"Delete Layer",move_down:"Move camada para baixo",new:"New Layer",rename:"Rename Layer",move_up:"Move Layer Up",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",select_predefined:"Selecione predefinidos:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),lU=Object.freeze({__proto__:null,default:{lang:"ro",dir:"ltr",common:{ok:"Ok",cancel:"Anulaţi",key_backspace:"backspace",key_del:"ştergere",key_down:"jos",key_up:"sus",more_opts:"Mai multe opţiuni",url:"URL",width:"Lăţime",height:"Înălţime"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Arătaţi/ascundeţi mai multe unelte de contur",palette_info:"Faceţi clic pentru a schimba culoarea de umplere, Shift-clic pentru a schimba culoarea de contur",zoom_level:"Schimbarea nivelului de zoom",panel_drag:"Trageţi la stanga/dreapta pentru redimensionare panou lateral",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identificare element",fill_color:"Schimbarea culorii de umplere",stroke_color:"Schimbarea culorii de contur",stroke_style:"Schimbarea stilului de contur",stroke_width:"Schimbarea lăţimii conturului",pos_x:"Schimbă coordonata X",pos_y:"Schimbă coordonata Y",linecap_butt:"Capăt de linie: Butuc",linecap_round:"Capăt de linie: Rotund",linecap_square:"Capăt de linie: Pătrat",linejoin_bevel:"Articulaţia liniei: Teşită",linejoin_miter:"Articulaţia liniei: Unghi ascuţit",linejoin_round:"Articulaţia liniei: Rotundă",angle:"Schimbarea unghiul de rotaţie",blur:"Schimbarea valorii estomparii gaussiene",opacity:"Schimbarea gradului de opacitate",circle_cx:"Schimbarea coordonatei CX a cercului",circle_cy:"Schimbarea coordonatei CY a cercului",circle_r:"Schimbarea razei cercului",ellipse_cx:"Schimbarea coordonatei CX a elipsei",ellipse_cy:"Schimbarea coordonatei CY a elipsei",ellipse_rx:"Schimbarea razei elipsei X",ellipse_ry:"Schimbarea razei elipsei Y",line_x1:"Schimbarea coordonatei x a punctului de start",line_x2:"Schimbarea coordonatei x a punctului final",line_y1:"Schimbarea coordonatei y a punctului de start",line_y2:"Schimbare coordonatei y a punctului final",rect_height:"Schimbarea înălţimii dreptunghiului",rect_width:"Schimbarea lăţimii dreptunghiului",corner_radius:"Schimbarea razei colţului dreptunghiului",image_width:"Schimbarea lăţimii imaginii",image_height:"Schimbarea înălţimii imaginii",image_url:"Schimbaţi URL-ul",node_x:"Schimbă coordonata x a punctului",node_y:"Schimbă coordonata x a punctului",seg_type:"Schimbă tipul de segment",straight_segments:"Drept",curve_segments:"Curb",text_contents:"Schimbarea conţinutului textului",font_family:"Modificare familie de fonturi",font_size:"Schimbă dimensiunea fontului",bold:"Text Îngroşat",italic:"Text Înclinat"},tools:{main_menu:"Menu Principal",bkgnd_color_opac:"Schimbare culoare de fundal / opacitate",connector_no_arrow:"Fără săgeată",fitToContent:"Dimensionare la conţinut",fit_to_all:"Potrivire la tot conţinutul",fit_to_canvas:"Potrivire la Şevalet",fit_to_layer_content:"Potrivire la conţinutul stratului",fit_to_sel:"Potrivire la selecţie",align_relative_to:"Aliniere în raport cu ...",relativeTo:"în raport cu:",page:"pagină",largest_object:"cel mai mare obiect",selected_objects:"obiectele alese",smallest_object:"cel mai mic obiect",new_doc:"Imagine nouă",open_doc:"Imagine deschisă",export_img:"Export",save_doc:"Salvare imagine",import_doc:"Importare SVG",align_to_page:"Aliniere la pagină",align_bottom:"Aliniere jos",align_center:"Aliniere la centru",align_left:"Aliniere la stânga",align_middle:"Aliniere la mijloc",align_right:"Aliniere la dreapta",align_top:"Aliniere sus",mode_select:"Unealtă de Selectare",mode_fhpath:"Unealtă de Traiectorie",mode_line:"Unealtă de Linie",mode_rect:"Unealtă de Dreptunghi",mode_square:"Unealtă de Pătrat",mode_fhrect:"Dreptunghi cu mana liberă",mode_ellipse:"Elipsă",mode_circle:"Cerc",mode_fhellipse:"Elipsă cu mana liberă",mode_path:"Unealtă de Traiectorie",mode_text:"Unealtă de Text",mode_image:"Unealtă de Imagine",mode_zoom:"Unealtă de Zoom",no_embed:"NOTE: Aceasta imagine nu poate fi inglobată. Va depinde de aceasta traiectorie pentru a fi prezentată.",undo:"Anulare",redo:"Refacere",tool_source:"Editare Cod Sursă",wireframe_mode:"Mod Schelet",clone:"Clonează Elementul/ele",del:"Şterge Elementul/ele",group_elements:"Grupare Elemente",make_link:"Crează (hyper)link",set_link_url:"Setează link URL (lăsaţi liber pentru eliminare)",to_path:"Converteşte in Traiectorie",reorient_path:"Reorientează Traiectoria",ungroup:"Anulare Grupare Elemente",docprops:"Proprietăţile Documentului",editor_homepage:"SVG-Edit Home Page",move_bottom:"Mutare în jos",move_top:"Mutare în sus",node_clone:"Clonează Punct",node_delete:"Şterge Punct",node_link:"Uneşte Punctele de Control",add_subpath:"Adăugaţi sub-traiectorie",openclose_path:"Deschide/inchide sub-traiectorie",source_save:"Folosiţi Schimbările",cut:"Tăiere",copy:"Copiere",paste:"Reproducere",paste_in_place:"Reproducere pe loc",delete:"Ştergere",group:"Group",move_front:"Pune in faţa",move_up:"Pune in spate",move_down:"Trimite in faţa",move_back:"Trimite in spate"},layers:{layer:"Strat",layers:"Straturi",del:"Ştergeţi Strat",move_down:"Mutare Strat în Jos",new:"Strat Nou",rename:"Redenumiţi Stratul",move_up:"Mutare Strat în Sus",dupe:"Duplicaţi Stratul",merge_down:"Fuzionare in jos",merge_all:"Fuzionarea tuturor",move_elems_to:"Mută elemente la:",move_selected:"Mută elementele selectate pe un alt strat"},config:{image_props:"Proprietăţile Imaginii",doc_title:"Titlul",doc_dims:"Dimensiunile Şevaletului",included_images:"Imaginile Incluse",image_opt_embed:"Includeţi Datele (fişiere locale)",image_opt_ref:"Foloseşte referinţe la fişiere",editor_prefs:"Preferinţele Editorului",icon_size:"Dimensiunile Butoanelor",language:"Limba",background:"Fondul Editorului",editor_img_url:"URL-ul Imaginii",editor_bg_note:"Notă: Fondul nu va fi salvat cu imaginea.",icon_large:"Mari",icon_medium:"Medii",icon_small:"Mici",icon_xlarge:"Foarte Mari",select_predefined:"Selecţii predefinite:",units_and_rulers:"Unitati si Rigle",show_rulers:"Arată Riglele",base_unit:"Unitate de baza:",grid:"Caroiaj",snapping_onoff:"Fixare on/off",snapping_stepsize:"Dimensiunea pasului de fixare:"},notification:{invalidAttrValGiven:"Valoarea data nu este validă",noContentToFitTo:"Fara conţinut de referinţă",dupeLayerName:"Deja exista un strat numit asa!",enterUniqueLayerName:"Rog introduceţi un nume unic",enterNewLayerName:"Rog introduceţi un nume pentru strat",layerHasThatName:"Statul deja are acest nume",QmoveElemsToLayer:"Mutaţi elementele selectate pe stratul '%s'?",QwantToClear:"Doriti să ştergeţi desenul?\nAceasta va sterge si posibilitatea de anulare!",QwantToOpen:"Doriti sa deschideţi un nou fişier?\nAceasta va şterge istoricul!",QerrorsRevertToSource:"Sunt erori de parsing in sursa SVG.\nRevenire la sursa SVG orginală?",QignoreSourceChanges:"Ignoraţi schimbarile la sursa SVG?",featNotSupported:"Funcţie neimplementată",enterNewImgURL:"Introduceţi noul URL pentru Imagine",defsFailOnSave:"NOTE: Din cauza unei erori in browserul dv., aceasta imagine poate apare gresit (fara gradiente sau elemente). Însă va apare corect dupa salvare.",loadingImage:"Imaginea se incarcă, va rugam asteptaţi...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"De asemenea remarcati urmatoarele probleme: ",unsavedChanges:"Sunt schimbări nesalvate.",enterNewLinkURL:"IntroduAliniere în raport cu ...sceţi noul URL",errorLoadingSVG:"Eroare: Nu se pot încărca datele SVG",URLLoadFail:"Nu se poate încărca de la URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),cU=Object.freeze({__proto__:null,default:{lang:"ru",dir:"ltr",common:{ok:"Сохранить",cancel:"Отменить",key_backspace:"Backspace",key_del:"Delete",key_down:"Вниз",key_up:"Вверх",more_opts:"Доп. Настройки",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Показать/скрыть инструменты обводки",palette_info:"Нажмите для изменения цвета заливки, Shift-Click изменить цвета обводки",zoom_level:"Изменить масштаб",panel_drag:"Drag left/right to resize side panel",quality:"Качество:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Идентификатор элемента",fill_color:"Изменить цвет заливки",stroke_color:"Изменить цвет обводки",stroke_style:"Изменить стиль обводки",stroke_width:"Изменить толщину обводки",pos_x:"Изменить горизонтальный координат",pos_y:"Изменить вертикальный координат",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Изменить угол поворота",blur:"Изменяет значение размытия",opacity:"Изменить непрозрачность элемента",circle_cx:"Изменить горизонтальный координат (CX) окружности",circle_cy:"Изменить вертикальный координат (CY) окружности",circle_r:"Изменить радиус окружности",ellipse_cx:"Изменить горизонтальный координат (CX) эллипса",ellipse_cy:"Изменить вертикальный координат (CY) эллипса",ellipse_rx:"Изменить горизонтальный радиус эллипса",ellipse_ry:"Изменить вертикальный радиус эллипса",line_x1:"Изменить горизонтальный координат X начальной точки линии",line_x2:"Изменить горизонтальный координат X конечной точки линии",line_y1:"Изменить вертикальный координат Y начальной точки линии",line_y2:"Изменить вертикальный координат Y конечной точки линии",rect_height:"Изменениe высоту прямоугольника",rect_width:"Измененить ширину прямоугольника",corner_radius:"Радиус закругленности угла",image_width:"Изменить ширину изображения",image_height:"Изменить высоту изображения",image_url:"Изменить URL",node_x:"Изменить горизонтальную координату узла",node_y:"Изменить вертикальную координату узла",seg_type:"Изменить вид",straight_segments:"Отрезок",curve_segments:"Сплайн",text_contents:"Изменить содержание текста",font_family:"Изменить семейство шрифтов",font_size:"Изменить размер шрифта",bold:"Жирный",italic:"Курсив"},tools:{main_menu:"Главное меню",bkgnd_color_opac:"Изменить цвет фона или прозрачность",connector_no_arrow:"Нет стрелки",fitToContent:"Под размер содержимого",fit_to_all:"Под размер всех слоев",fit_to_canvas:"Под размер холста",fit_to_layer_content:"Под размер содержания слоя",fit_to_sel:"Под размер выделенного",align_relative_to:"Выровнять по отношению к ...",relativeTo:"По отношению к ",page:"страница",largest_object:"Наибольший объект",selected_objects:"Выделенные объекты",smallest_object:"Самый маленький объект",new_doc:"Создать изображение",open_doc:"Открыть изображение",export_img:"Экспорт",save_doc:"Сохранить изображение",import_doc:"Импорт изображения",align_to_page:"Align Element to Page",align_bottom:"Выровнять по нижнему краю",align_center:"Центрировать по вертикальной оси",align_left:"По левому краю",align_middle:"Центрировать по горизонтальной оси",align_right:"По правому краю",align_top:"Выровнять по верхнему краю",mode_select:"Выделить",mode_fhpath:"Карандаш",mode_line:"Линия",mode_rect:"Прямоугольник",mode_square:"Квадрат",mode_fhrect:"Прямоугольник от руки",mode_ellipse:"Эллипс",mode_circle:"Окружность",mode_fhellipse:"Эллипс от руки",mode_path:"Контуры",mode_text:"Текст",mode_image:"Изображение",mode_zoom:"Лупа",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Отменить",redo:"Вернуть",tool_source:"Редактировать исходный код",wireframe_mode:"Каркас",clone:"Клонировать элемент(ы)",del:"Удалить элемент(ы)",group_elements:"Создать группу элементов",make_link:"Сделать ссылкой",set_link_url:"Ссылка(оставьте пустым для удаления)",to_path:"В контур",reorient_path:"Изменить ориентацию контура",ungroup:"Разгруппировать элементы",docprops:"Свойства документа",editor_homepage:"SVG-Edit Home Page",move_bottom:"Опустить",move_top:"Поднять",node_clone:"Создать копию узла",node_delete:"Удалить узел",node_link:"Связать узлы",add_subpath:"Добавить линию",openclose_path:"Разомкнуть/Замкнуть линию",source_save:"Сохранить",cut:"Вырезать",copy:"Копировать",paste:"Вставить",paste_in_place:"Вставить сюда",Delete:"Удалить",group:"Группировка",move_front:"На передний план",move_up:"Передвинуть вперед",move_down:"Передвинуть назад",move_back:"На задний план"},layers:{layer:"Слой",layers:"Слои",del:"Удалить слой",move_down:"Опустить слой",new:"Создать слой",rename:"Переименовать Слой",move_up:"Поднять слой",dupe:"Копировать слой",merge_down:"Объединить с нижним",merge_all:"Объединить все",move_elems_to:"Переместить выделенные элементы:",move_selected:"Переместить выделенные элементы на другой слой"},config:{image_props:"Свойства изображения",doc_title:"Название",doc_dims:"Размеры холста",included_images:"Встроенные изображения",image_opt_embed:"Локальные файлы",image_opt_ref:"По ссылкам",editor_prefs:"Параметры",icon_size:"Размер значков",language:"Язык",background:"Фон",editor_img_url:"Изображение URL",editor_bg_note:"(Фон не сохранится вместе с изображением.)",icon_large:"Большие",icon_medium:"Средние",icon_small:"Малые",icon_xlarge:"Огромные",select_predefined:"Выбирать предопределенный размер",units_and_rulers:"Единицы & Линейки",show_rulers:"Показывать линейки",base_unit:"Единицы:",grid:"Сетка",snapping_onoff:"Привязка вкл/выкл",snapping_stepsize:"Шаг привязки:",grid_color:"Цвет сетки"},notification:{invalidAttrValGiven:"Некорректное значение аргумента",noContentToFitTo:"Нет содержания, по которому выровнять.",dupeLayerName:"Слой с этим именем уже существует.",enterUniqueLayerName:"Пожалуйста, введите имя для слоя.",enterNewLayerName:"Пожалуйста, введите новое имя.",layerHasThatName:"Слой уже называется этим именем.",QmoveElemsToLayer:"Переместить выделенные элементы на слой '%s'?",QwantToClear:"Вы хотите очистить?\nИстория действий будет забыта!",QwantToOpen:"Открыть новый файл?\nИстория действий будет забыта!",QerrorsRevertToSource:"Была проблема при парсинге вашего SVG исходного кода.\nЗаменить его предыдущим SVG кодом?",QignoreSourceChanges:"Забыть без сохранения?",featNotSupported:"Возможность не реализована",enterNewImgURL:"Введите новый URL изображения",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Загрузка изоражения, придется подождать...",saveFromBrowser:"Выберите 'Сохранить как...' в вашем браузере (возможно через меню файл или в контекстном меню) чтобы сохранить как файл %s.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"Есть несохраненные изменения.",enterNewLinkURL:"Введите новую ссылку URL",errorLoadingSVG:"Ошибка: Не удалось загрузить SVG данные",URLLoadFail:"Не удалось загрузить по ссылке URL",retrieving:"Получение '%s' ...",popupWindowBlocked:"Всплывающее окно могло заблокироваться браузером",exportNoBlur:"Размытые элементы отображены как неразмытые",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Текст может показываться не так как должен"}}}),uU=Object.freeze({__proto__:null,default:{lang:"sk",dir:"ltr",common:{ok:"Uložiť",cancel:"Zrušiť",key_backspace:"Backspace",key_del:"Delete",key_down:"šípka dole",key_up:"šípka hore",more_opts:"Viac možností",url:"URL",width:"Šírka",height:"Výška"},misc:{powered_by:"Beží na"},ui:{toggle_stroke_tools:"Skryť/ukázať viac nástrojov pre krivku",palette_info:"Kliknutím zmeníte farbu výplne, so Shiftom zmeníte farbu obrysu",zoom_level:"Zmena priblíženia",panel_drag:"Potiahnutie vľavo/vpravo na zmenu veľkosti bočného panela",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Zmeniť ID elementu",fill_color:"Zmeniť farbu výplne",stroke_color:"Zmeniť farbu obrysu",stroke_style:"Zmeniť štýl obrysu",stroke_width:"Zmeniť hrúbku obrysu",pos_x:"Zmeniť súradnicu X",pos_y:"Zmeniť súradnicu Y",linecap_butt:"Koniec čiary: presný",linecap_round:"Koniec čiary: zaoblený",linecap_square:"Koniec čiary: so štvorcovým presahom",linejoin_bevel:"Napojenie čiar: skosené",linejoin_miter:"Napojenie čiar: ostré",linejoin_round:"Napojenie čiar: oblé",angle:"Zmeniť uhol natočenia",blur:"Zmeniť intenzitu rozmazania",opacity:"Zmeniť prehľadnosť vybraných položiek",circle_cx:"Zmeniť súradnicu X stredu kružnice",circle_cy:"Zmeniť súradnicu Y stredu kružnice",circle_r:"Zmeniť polomer kružnice",ellipse_cx:"Zmeniť súradnicu X stredu elipsy",ellipse_cy:"Zmeniť súradnicu Y stredu elipsy",ellipse_rx:"Zmeniť polomer X elipsy",ellipse_ry:"Zmeniť polomer Y elipsy",line_x1:"Zmeniť počiatočnú súradnicu X čiary",line_x2:"Zmeniť koncovú súradnicu X čiary",line_y1:"Zmeniť počiatočnú súradnicu Y čiary",line_y2:"Zmeniť koncovú súradnicu Y čiary",rect_height:"Zmena výšku obdĺžnika",rect_width:"Zmeniť šírku obdĺžnika",corner_radius:"Zmeniť zaoblenie rohov obdĺžnika",image_width:"Zmeniť šírku obrázka",image_height:"Zmeniť výšku obrázka",image_url:"Zmeniť URL",node_x:"Zmeniť uzlu súradnicu X",node_y:"Zmeniť uzlu súradnicu Y",seg_type:"Zmeniť typ segmentu",straight_segments:"Rovný",curve_segments:"Krivka",text_contents:"Zmeniť text",font_family:"Zmeniť font",font_size:"Zmeniť veľkosť písma",bold:"Tučné",italic:"Kurzíva"},tools:{main_menu:"Hlavné menu",bkgnd_color_opac:"Zmeniť farbu a priehľadnosť pozadia",connector_no_arrow:"Spojnica bez šípok",fitToContent:"Prispôsobiť obsahu",fit_to_all:"Prisposobiť celému obsahu",fit_to_canvas:"Prispôsobiť stránke",fit_to_layer_content:"Prispôsobiť obsahu vrstvy",fit_to_sel:"Prispôsobiť výberu",align_relative_to:"Zarovnať relatívne k ...",relativeTo:"vzhľadom k:",page:"stránke",largest_object:"najväčšiemu objektu",selected_objects:"zvoleným objektom",smallest_object:"najmenšiemu objektu",new_doc:"Nový obrázok",open_doc:"Otvoriť obrázok",export_img:"Export",save_doc:"Uložiť obrázok",import_doc:"Import Image",align_to_page:"Zarovnať element na stránku",align_bottom:"Zarovnať dole",align_center:"Zarovnať na stred",align_left:"Zarovnať doľava",align_middle:"Zarovnať na stred",align_right:"Zarovnať doprava",align_top:"Zarovnať hore",mode_select:"Výber",mode_fhpath:"Ceruzka",mode_line:"Čiara",mode_rect:"Obdĺžnik",mode_square:"Štvorec",mode_fhrect:"Obdĺžnik voľnou rukou",mode_ellipse:"Elipsa",mode_circle:"Kružnica",mode_fhellipse:"Elipsa voľnou rukou",mode_path:"Krivka",mode_text:"Text",mode_image:"Obrázok",mode_zoom:"Priblíženie",no_embed:"POZNÁMKA: Tento obrázok nemôže byť vložený. Jeho zobrazenie bude závisieť na jeho ceste",undo:"Späť",redo:"Opakovať",tool_source:"Upraviť SVG kód",wireframe_mode:"Drôtový model",clone:"Klonuj element(y)",del:"Zmaž element(y)",group_elements:"Zoskupiť elementy",make_link:"Naviaž odkaz (hyper)link",set_link_url:"Nastav odkaz URL (ak prázdny, odstráni sa)",to_path:"Previesť na krivku",reorient_path:"Zmeniť orientáciu krivky",ungroup:"Zrušiť skupinu",docprops:"Vlastnosti dokumentu",editor_homepage:"SVG-Edit Home Page",move_bottom:"Presunúť spodok",move_top:"Presunúť na vrch",node_clone:"Klonovať uzol",node_delete:"Zmazať uzol",node_link:"Prepojiť kontrolné body",add_subpath:"Pridať ďalšiu súčasť krivky",openclose_path:"Otvoriť/uzatvoriť súčasť krivky",source_save:"Uložiť",cut:"Vystrihnutie",copy:"Kópia",paste:"Vloženie",paste_in_place:"Vloženie na pôvodnom mieste",delete:"Zmazanie",group:"Group",move_front:"Vysuň navrch",move_up:"Vysuň vpred",move_down:"Zasuň na spodok",move_back:"Zasuň dozadu"},layers:{layer:"Vrstva",layers:"Vrstvy",del:"Odstrániť vrstvu",move_down:"Presunúť vrstvu dole",new:"Nová vrstva",rename:"Premenovať vrstvu",move_up:"Presunúť vrstvu hore",dupe:"Zduplikovať vrstvu",merge_down:"Zlúčiť s vrstvou dole",merge_all:"Zlúčiť všetko",move_elems_to:"Presunúť elementy do:",move_selected:"Presunúť vybrané elementy do inej vrstvy"},config:{image_props:"Vlastnosti obrázka",doc_title:"Titulok",doc_dims:"Rozmery plátna",included_images:"Vložené obrázky",image_opt_embed:"Vložiť data (lokálne súbory)",image_opt_ref:"Použiť referenciu na súbor",editor_prefs:"Vlastnosti editora",icon_size:"Veľkosť ikon",language:"Jazyk",background:"Zmeniť pozadie",editor_img_url:"Image URL",editor_bg_note:"Poznámka: Pozadie nebude uložené spolu s obrázkom.",icon_large:"Veľká",icon_medium:"Stredná",icon_small:"Malá",icon_xlarge:"Extra veľká",select_predefined:"Vybrať preddefinovaný:",units_and_rulers:"Jednotky & Pravítka",show_rulers:"Ukáž pravítka",base_unit:"Základné jednotky:",grid:"Mriežka",snapping_onoff:"Priväzovanie (do mriežky) zap/vyp",snapping_stepsize:"Priväzovanie (do mriežky) veľkosť kroku:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Neplatná hodnota",noContentToFitTo:"Vyberte oblasť na prispôsobenie",dupeLayerName:"Vrstva s daným názvom už existuje!",enterUniqueLayerName:"Zadajte jedinečný názov vrstvy",enterNewLayerName:"Zadajte názov vrstvy",layerHasThatName:"Vrstva už má zadaný tento názov",QmoveElemsToLayer:"Presunúť elementy do vrstvy '%s'?",QwantToClear:"Naozaj chcete vymazať kresbu?\n(História bude taktiež vymazaná!)!",QwantToOpen:"Chcete otvoriť nový súbor?\nTo však tiež vymaže Vašu UNDO knižnicu!",QerrorsRevertToSource:"Chyba pri načítaní SVG dokumentu.\nVrátiť povodný SVG dokument?",QignoreSourceChanges:"Ignorovať zmeny v SVG dokumente?",featNotSupported:"Vlastnosť nie je podporovaná",enterNewImgURL:"Zadajte nové URL obrázka",defsFailOnSave:"POZNÁMKA: Kvôli chybe v prehliadači sa tento obrázok môže zobraziť nesprávne (napr. chýbajúce prechody či elementy). Po uložení sa zobrazí správne.",loadingImage:"Nahrávam obrázok, prosím čakajte ...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Môžu sa vyskytnúť nasledujúce problémy: ",unsavedChanges:"Sú tu neuložené zmeny.",enterNewLinkURL:"Zadajte nové URL odkazu (hyperlink)",errorLoadingSVG:"Chyba: Nedajú sa načítať SVG data",URLLoadFail:"Nemožno čítať z URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),dU=Object.freeze({__proto__:null,default:{lang:"sl",dir:"ltr",common:{ok:"V redu",cancel:"Prekliči",key_backspace:"backspace",key_del:"delete",key_down:"dol",key_up:"gor",more_opts:"Več možnosti",url:"URL",width:"širina",height:"višina"},misc:{powered_by:"Izdelano z"},ui:{toggle_stroke_tools:"Pokaži/skrij več orodij za oris",palette_info:"Kliknite, če želite spremeniti barvo polnila, kliknite+Shift, če želite spremeniti barvo orisa",zoom_level:"Povečava",panel_drag:"Povlecite levo/desno za ogled stranske vrstice",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"ID elementa",fill_color:"Spremeni barvo polnila",stroke_color:"Spremeni barvo orisa",stroke_style:"Spremeni slog orisa",stroke_width:"Spreminjanje širino orisa",pos_x:"Spremeni X koordinato",pos_y:"Spremeni Y koordinato",linecap_butt:"Začetek črte: odsekan",linecap_round:"Začetek črte: zaobljen",linecap_square:"Začetek črte: kvadraten",linejoin_bevel:"Ovinek črte: Odsekan",linejoin_miter:"Linejoin: V kot",linejoin_round:"Linejoin: Zaobljen",angle:"Spremeni kot zasuka",blur:"Spremeni zameglitev roba",opacity:"Spremeni prosojnost",circle_cx:"Spremeni CX koordinato",circle_cy:"Spremeni CY koordinato",circle_r:"Spremeni polmer kroga",ellipse_cx:"Spremeni CX koordinato",ellipse_cy:"Spremeni CY koordinato",ellipse_rx:"Spremeni X polmer",ellipse_ry:"Spremeni Y polmer",line_x1:"Spremeni začetno X koordinato",line_x2:"Spremeni končno X koordinato",line_y1:"Spremeni začetno Y koordinato",line_y2:"Spremeni končno Y koordinato",rect_height:"Spremeni višino pravokotnika",rect_width:"Spremeni širino pravokotnika",corner_radius:"Spremeni Pravokotnik Corner Radius",image_width:"Spremeni širino slike",image_height:"Spremeni višino slike",image_url:"Spremeni URL",node_x:"Spremeni X koordinato oglišča",node_y:"Spremeni Y koordinato oglišča",seg_type:"Spremeni vrsto odseka",straight_segments:"Raven odsek",curve_segments:"Ukrivljen odsek",text_contents:"Spremeni besedilo",font_family:"Spremeni tip pisave",font_size:"Spremeni velikost pisave",bold:"Krepko",italic:"Poševno"},tools:{main_menu:"Glavni meni",bkgnd_color_opac:"Spremeni barvo / prosojnost",connector_no_arrow:"Brez puščice",fitToContent:"Prilagodi vsebini",fit_to_all:"Prilagodi vsemu",fit_to_canvas:"Prilagodi sliki",fit_to_layer_content:"Prilagodi sloju",fit_to_sel:"Prilagodi izboru",align_relative_to:"Poravnaj glede na ...",relativeTo:"glede na:",page:"page",largest_object:"največji objekt",selected_objects:"izbrani objekt",smallest_object:"najmanjši objekt",new_doc:"Nova slika",open_doc:"Odpri sliko",export_img:"Izvozi v PNG",save_doc:"Shrani sliko",import_doc:"Uvozi SVG",align_to_page:"Poravnaj na stran",align_bottom:"Poravnaj na dno",align_center:"Poravnaj na sredino",align_left:"Poravnaj levo",align_middle:"Poravnaj na sredino",align_right:"Poravnaj desno",align_top:"Poravnaj na vrh",mode_select:"Izberi",mode_fhpath:"Svinčnik",mode_line:"Crta",mode_rect:"Pravokotnik",mode_square:"Kvadrat",mode_fhrect:"Prostoročni pravokotnik",mode_ellipse:"Elipsa",mode_circle:"Krog",mode_fhellipse:"Prostoročna elipsa",mode_path:"Pot",mode_text:"Besedilo",mode_image:"Slika",mode_zoom:"Povečava",no_embed:"OPOMBA: Ta slika ne more biti vključena. It will depend on this path to be displayed",undo:"Razveljavi",redo:"Uveljavi",tool_source:"Uredi vir",wireframe_mode:"Wireframe način",clone:"Kloniraj element(e)",del:"Izbriši element(e)",group_elements:"Združi element(e)",make_link:"Vstavi (hiper)povezavo",set_link_url:"Set link URL (leave empty to remove)",to_path:"Pretvori v pot",reorient_path:"Reorient pot",ungroup:"Razdruži elemente",docprops:"Lastnosti dokumenta",editor_homepage:"SVG-Edit Home Page",move_bottom:"Premakni na dno",move_top:"Premakni na vrh",node_clone:"Kloniraj oglišče",node_delete:"Izbriši oglišče",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Shrani",cut:"Izreži",copy:"Kopiraj",paste:"Prilepi",paste_in_place:"Prilepi na mesto",delete:"Izbriši",group:"Združi",move_front:"Postavi v ospredje",move_up:"Pomakni naporej",move_down:"Pomakni nazaj",move_back:"Postavi v ozadje"},layers:{layer:"Sloj",layers:"Sloji",del:"Izbriši sloj",move_down:"Premakni navzdol",new:"Nov sloj",rename:"Preimenuj sloj",move_up:"Premakni navzgor",dupe:"Podvoji sloj",merge_down:"Združi s spodnjimi",merge_all:"Združi vse",move_elems_to:"Premakni elemente v:",move_selected:"Premakne elemente v drug sloj"},config:{image_props:"Lastnosti slike",doc_title:"Naslov",doc_dims:"Dimenzije slike",included_images:"Vključene slike",image_opt_embed:"Vključene (local files)",image_opt_ref:"Povezane (Use file reference)",editor_prefs:"Lastnosti urejevalnika",icon_size:"Velikost ikon",language:"Jezik",background:"Ozadje urejevalnika",editor_img_url:"URL slike",editor_bg_note:"OPOMBA: Ozdaje ne bo shranjeno s sliko.",icon_large:"velike",icon_medium:"srednje",icon_small:"majhne",icon_xlarge:"zelo velike",select_predefined:"Izberi prednastavljeno:",units_and_rulers:"Enote & ravnilo",show_rulers:"Pokaži ravnilo",base_unit:"Osnovne enote",grid:"Mreža",snapping_onoff:"Pripni na mrežo DA/NE",snapping_stepsize:"Snapping Step-Size:"},notification:{invalidAttrValGiven:"Napačna vrednost!",noContentToFitTo:"Ni vsebine za prilagajanje",dupeLayerName:"Sloj s tem imenom že obstajal!",enterUniqueLayerName:"Vnesite edinstveno ime sloja",enterNewLayerName:"Vnesite ime novega sloja",layerHasThatName:"Sloje že ima to ime",QmoveElemsToLayer:"Premaknem izbrane elemente v sloj '%s'?",QwantToClear:"Ali želite počistiti risbo?\nTo bo izbrisalo tudi zgodovino korakov (ni mogoče razveljaviti)!",QwantToOpen:"Ali želite odpreti novo datoteko?\nTo bo izbrisalo tudi zgodovino korakov (ni mogoče razveljaviti)!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignoriram spremembe, narejene v SVG kodi?",featNotSupported:"Ni podprto",enterNewImgURL:"Vnesite nov URL slike",defsFailOnSave:"OPOMBA: Zaradi napake vašega brskalnika obstaja možnost, da ta slika ni prikazan pravilno (manjkajo določeni elementi ali gradient). Vseeno bo prikaz pravilen, ko bo slika enkrat shranjena.",loadingImage:"Nalagam sliko, prosimo, počakajte ...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"Obstajajo neshranjene spremembe.",enterNewLinkURL:"Vnesite novo URL povezavo",errorLoadingSVG:"Napaka: Ne morem naložiti SVG podatkov",URLLoadFail:"Ne morem naložiti z URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),hU=Object.freeze({__proto__:null,default:{lang:"sq",dir:"ltr",common:{ok:"Ruaj",cancel:"Anulo",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Klikoni për të ndryshuar mbushur me ngjyra, shift-klikoni për të ndryshuar ngjyrën pash",zoom_level:"Ndryshimi zoom nivel",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"Ndryshimi mbush color",stroke_color:"Change color pash",stroke_style:"Ndryshimi dash goditje stil",stroke_width:"Ndryshimi goditje width",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Kënd Ndryshimi rrotullim",blur:"Change gaussian blur value",opacity:"Ndryshimi zgjedhur errësirë item",circle_cx:"Cx rrethi Ndryshimi i bashkërenduar",circle_cy:"Ndryshimi i rrethit cy koordinuar",circle_r:"Rreze rreth Ndryshimi i",ellipse_cx:"Ndryshimi elips e cx koordinuar",ellipse_cy:"Elips cy Ndryshimi i bashkërenduar",ellipse_rx:"Rreze x elips Ndryshimi i",ellipse_ry:"Radiusi y elips ndërroj",line_x1:"Shkarko Ndryshimi që fillon x koordinuar",line_x2:"Linjë Ndryshimi i fund x koordinuar",line_y1:"Shkarko Ndryshimi që fillon y koordinuar",line_y2:"Shkarko Ndryshimi i dhënë fund y koordinuar",rect_height:"Height Ndryshimi drejtkëndësh",rect_width:"Width Ndryshimi drejtkëndësh",corner_radius:"Ndryshimi Rectangle Corner Radius",image_width:"Ndryshimi image width",image_height:"Height të ndryshuar imazhin",image_url:"Ndrysho URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Text contents Ndryshimi",font_family:"Ndryshimi Font Family",font_size:"Ndryshimi Font Size",bold:"Bold Text",italic:"Italic Text"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Change color background / patejdukshmëri",connector_no_arrow:"No arrow",fitToContent:"Fit to Content",fit_to_all:"Fit për të gjithë përmbajtjen",fit_to_canvas:"Fit në kanavacë",fit_to_layer_content:"Shtresë Fit to content",fit_to_sel:"Fit to Selection",align_relative_to:"Vendose në lidhje me ...",relativeTo:"lidhje me:",page:"faqe",largest_object:"madh objekt",selected_objects:"objektet e zgjedhur",smallest_object:"objektit më të vogël",new_doc:"New Image",open_doc:"Image Hapur",export_img:"Export",save_doc:"Image Ruaj",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"Align Bottom",align_center:"Align Center",align_left:"Align Left",align_middle:"Align Mesme",align_right:"Align Right",align_top:"Align Top",mode_select:"Zgjidhni Tool",mode_fhpath:"Pencil Tool",mode_line:"Line Tool",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Lëndë Hand Rectangle",mode_ellipse:"Elips",mode_circle:"Rrethi",mode_fhellipse:"Free-Hand Ellipse",mode_path:"Path Tool",mode_text:"Text Tool",mode_image:"Image Tool",mode_zoom:"Zoom Tool",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Undo",redo:"Redo",tool_source:"Burimi Edit",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Elementet e Grupit",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Elemente Ungroup",docprops:"Dokumenti Prona",editor_homepage:"SVG-Edit Home Page",move_bottom:"Move to Bottom",move_top:"Move to Top",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Ruaj",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Layer",layers:"Layers",del:"Delete Layer",move_down:"Move Down Layer",new:"Re Shtresa",rename:"Rename Layer",move_up:"Move Up Layer",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",select_predefined:"Zgjidhni paracaktuara:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),pU=Object.freeze({__proto__:null,default:{lang:"sr",dir:"ltr",common:{ok:"Сачувати",cancel:"Откажи",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Кликните да бисте променили боју попуне, Схифт-кликните да промените боју удар",zoom_level:"Промените ниво зумирања",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"Промена боје попуне",stroke_color:"Промена боје удар",stroke_style:"Промена ход Дасх стил",stroke_width:"Промена удара ширина",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Промени ротације Угао",blur:"Change gaussian blur value",opacity:"Промена изабране ставке непрозирност",circle_cx:"Промена круг'с ЦКС координатни",circle_cy:"Промена круг'с ср координатни",circle_r:"Промена круга је полупречник",ellipse_cx:"Промена елипса ЦКС'с координатни",ellipse_cy:"Промена елипса'с ср координатни",ellipse_rx:"Промена елипса'с Кс радијуса",ellipse_ry:"Промена елипса је радијус Ы",line_x1:"Промена линија Стартни кс координата",line_x2:"Промена линија је завршетак кс координата",line_y1:"Промена линија у координатни почетак Ы",line_y2:"Промена линија је Ы координата се завршава",rect_height:"Промени правоугаоник висина",rect_width:"Промени правоугаоник ширине",corner_radius:"Промена правоугаоник Кутак радијуса",image_width:"Промени слику ширине",image_height:"Промени слику висине",image_url:"Промените УРЛ адресу",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Промена садржаја текстуалне",font_family:"Цханге фонт породицу",font_size:"Цханге фонт сизе",bold:"Подебљан текст",italic:"Италиц текст"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Промена боје позадине / непрозирност",connector_no_arrow:"No arrow",fitToContent:"Стане на садржај",fit_to_all:"Уклопи у сав садржај",fit_to_canvas:"Стане на платну",fit_to_layer_content:"Уклопи у слоју садржај",fit_to_sel:"Уклопи у избор",align_relative_to:"Алигн у односу на ...",relativeTo:"у односу на:",page:"страна",largest_object:"Највећи објекат",selected_objects:"изабраних објеката",smallest_object:"Најмањи објекат",new_doc:"Нова слика",open_doc:"Отвори слике",export_img:"Export",save_doc:"Сачувај слика",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"Поравнај доле",align_center:"Поравнај по центру",align_left:"Поравнај лево",align_middle:"Алигн Средњи",align_right:"Поравнај десно",align_top:"Поравнајте врх",mode_select:"Изаберите алатку",mode_fhpath:"Алатка оловка",mode_line:"Линија Алат",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Фрее-Ручни правоугаоник",mode_ellipse:"Елипса",mode_circle:"Круг",mode_fhellipse:"Фрее-Ручни Елипса",mode_path:"Path Tool",mode_text:"Текст Алат",mode_image:"Алатка за слике",mode_zoom:"Алатка за зумирање",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Поништи",redo:"Редо",tool_source:"Уреди Извор",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Група Елементи",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Разгрупирање Елементи",docprops:"Особине документа",editor_homepage:"SVG-Edit Home Page",move_bottom:"Премести на доле",move_top:"Премести на врх",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Сачувати",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Layer",layers:"Layers",del:"Избриши слој",move_down:"Помери слој доле",new:"Нови слој",rename:"Преименуј слој",move_up:"Помери слој Горе",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",select_predefined:"Изаберите унапред дефинисани:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),AU=Object.freeze({__proto__:null,default:{lang:"sv",dir:"ltr",common:{ok:"Spara",cancel:"Avbryt",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Klicka för att ändra fyllningsfärg, shift-klicka för att ändra färgar",zoom_level:"Ändra zoomnivå",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"Ändra fyllningsfärg",stroke_color:"Ändra färgar",stroke_style:"Ändra stroke Dash stil",stroke_width:"Ändra stroke bredd",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Ändra rotationsvinkel",blur:"Change gaussian blur value",opacity:"Ändra markerat objekt opacitet",circle_cx:"Ändra cirkeln cx samordna",circle_cy:"Ändra cirkeln samordna cy",circle_r:"Ändra cirkelns radie",ellipse_cx:"Ändra ellips's cx samordna",ellipse_cy:"Ändra ellips's samordna cy",ellipse_rx:"Ändra ellips's x radie",ellipse_ry:"Ändra ellips's y radie",line_x1:"Ändra Lines startar x samordna",line_x2:"Ändra Lines slutar x samordna",line_y1:"Ändra Lines startar Y-koordinat",line_y2:"Ändra Lines slutar Y-koordinat",rect_height:"Ändra rektangel höjd",rect_width:"Ändra rektangel bredd",corner_radius:"Ändra rektangel hörnradie",image_width:"Ändra bild bredd",image_height:"Ändra bildhöjd",image_url:"Ändra URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Ändra textinnehållet",font_family:"Ändra Typsnitt",font_size:"Ändra textstorlek",bold:"Fet text",italic:"Kursiv text"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Ändra bakgrundsfärg / opacitet",connector_no_arrow:"No arrow",fitToContent:"Fit to Content",fit_to_all:"Passar till allt innehåll",fit_to_canvas:"Anpassa till duk",fit_to_layer_content:"Anpassa till lager innehåll",fit_to_sel:"Anpassa till val",align_relative_to:"Justera förhållande till ...",relativeTo:"jämfört:",page:"sida",largest_object:"största objekt",selected_objects:"valda objekt",smallest_object:"minsta objektet",new_doc:"New Image",open_doc:"Öppna bild",export_img:"Export",save_doc:"Save Image",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"Align Bottom",align_center:"Centrera",align_left:"Vänsterjustera",align_middle:"Justera Middle",align_right:"Högerjustera",align_top:"Justera Top",mode_select:"Markeringsverktyget",mode_fhpath:"Pennverktyget",mode_line:"Linjeverktyg",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Fri hand rektangel",mode_ellipse:"Ellips",mode_circle:"Circle",mode_fhellipse:"Fri hand Ellipse",mode_path:"Path Tool",mode_text:"Textverktyg",mode_image:"Bildverktyg",mode_zoom:"Zoomverktyget",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Ångra",redo:"Redo",tool_source:"Redigera källa",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Group Elements",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Dela Elements",docprops:"Dokumentegenskaper",editor_homepage:"SVG-Edit Home Page",move_bottom:"Move to Bottom",move_top:"Flytta till början",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Spara",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Layer",layers:"Layers",del:"Radera Layer",move_down:"Flytta Layer Down",new:"New Layer",rename:"Byt namn på Layer",move_up:"Flytta Layer Up",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",select_predefined:"Välj fördefinierad:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),fU=Object.freeze({__proto__:null,default:{lang:"sw",dir:"ltr",common:{ok:"Okoa",cancel:"Cancel",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Click kubadili kujaza color, skiftarbete-click kubadili kiharusi color",zoom_level:"Change zoom ngazi",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"Change kujaza Michezo",stroke_color:"Change kiharusi Michezo",stroke_style:"Change kiharusi dash style",stroke_width:"Change kiharusi width",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Change mzunguko vinkel",blur:"Change gaussian blur value",opacity:"Change selected opacity punkt",circle_cx:"Change mduara's CX kuratibu",circle_cy:"Change mduara's cy kuratibu",circle_r:"Change mduara's Radius",ellipse_cx:"Change ellipse s CX kuratibu",ellipse_cy:"Change ellipse s cy kuratibu",ellipse_rx:"Change ellipse s x Radius",ellipse_ry:"Change ellipse's y Radius",line_x1:"Change Mpya's mapya x kuratibu",line_x2:"Change Mpya's kuishia x kuratibu",line_y1:"Change Mpya's mapya y kuratibu",line_y2:"Change Mpya's kuishia y kuratibu",rect_height:"Change Mstatili height",rect_width:"Change Mstatili width",corner_radius:"Change Mstatili Corner Radius",image_width:"Change image width",image_height:"Change image urefu",image_url:"Change URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Change Nakala contents",font_family:"Change font Family",font_size:"Change font Size",bold:"Bold Nakala",italic:"Italiki Nakala"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Change background color / opacity",connector_no_arrow:"No arrow",fitToContent:"Waliopo Content",fit_to_all:"Waliopo all content",fit_to_canvas:"Wanaofaa Canvas",fit_to_layer_content:"Waliopo safu content",fit_to_sel:"Waliopo uteuzi",align_relative_to:"Align jamaa na ...",relativeTo:"relativa att:",page:"Page",largest_object:"ukubwa object",selected_objects:"waliochaguliwa vitu",smallest_object:"minsta object",new_doc:"New Image",open_doc:"Open SVG",export_img:"Export",save_doc:"Save Image",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"Align Bottom",align_center:"Align Center",align_left:"Align Left",align_middle:"Kati align",align_right:"Align Right",align_top:"Align Juu",mode_select:"Select Tool",mode_fhpath:"Penseli Tool",mode_line:"Mpya Tool",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Free-Hand Rectangle",mode_ellipse:"Ellipse",mode_circle:"Circle",mode_fhellipse:"Free-Hand Ellipse",mode_path:"Path Tool",mode_text:"Nakala Tool",mode_image:"Image Tool",mode_zoom:"Zoom Tool",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Tengua",redo:"Redo",tool_source:"Edit Lugha",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Kikundi Elements",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Ungroup Elements",docprops:"Document Properties",editor_homepage:"SVG-Edit Home Page",move_bottom:"Kuhama Bottom",move_top:"Move to Top",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Save",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Layer",layers:"Layers",del:"Delete Layer",move_down:"Move Layer Down",new:"Mpya Layer",rename:"Rename Layer",move_up:"Move Layer Up",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",select_predefined:"Select predefined:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),gU=Object.freeze({__proto__:null,default:{lang:"test",dir:"ltr",common:{ok:"OK",cancel:"Cancel",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Click to change fill color, shift-click to change stroke color",zoom_level:"Change zoom level",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"Change fill color",stroke_color:"Change stroke color",stroke_style:"Change stroke dash style",stroke_width:"Change stroke width by 1, shift-click to change by 0.1",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Change rotation angle",blur:"Change gaussian blur value",opacity:"Change selected item opacity",circle_cx:"Change circle's cx coordinate",circle_cy:"Change circle's cy coordinate",circle_r:"Change circle's radius",ellipse_cx:"Change ellipse's cx coordinate",ellipse_cy:"Change ellipse's cy coordinate",ellipse_rx:"Change ellipse's x radius",ellipse_ry:"Change ellipse's y radius",line_x1:"Change line's starting x coordinate",line_x2:"Change line's ending x coordinate",line_y1:"Change line's starting y coordinate",line_y2:"Change line's ending y coordinate",rect_height:"Change rectangle height",rect_width:"Change rectangle width",corner_radius:"Change Rectangle Corner Radius",image_width:"Change image width",image_height:"Change image height",image_url:"Change URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Change text contents",font_family:"Change Font Family",font_size:"Change Font Size",bold:"Bold Text",italic:"Italic Text"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Change background color/opacity",connector_no_arrow:"No arrow",fitToContent:"Fit to Content",fit_to_all:"Fit to all content",fit_to_canvas:"Fit to canvas",fit_to_layer_content:"Fit to layer content",fit_to_sel:"Fit to selection",align_relative_to:"Align relative to ...",relativeTo:"relative to:",page:"page",largest_object:"largest object",selected_objects:"selected objects",smallest_object:"smallest object",new_doc:"New Image",open_doc:"Open SVG",export_img:"Export",save_doc:"Save Image",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"Align Bottom",align_center:"Align Center",align_left:"Align Left",align_middle:"Align Middle",align_right:"Align Right",align_top:"Align Top",mode_select:"Select Tool",mode_fhpath:"Pencil Tool",mode_line:"Line Tool",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Free-Hand Rectangle",mode_ellipse:"Ellipse",mode_circle:"Circle",mode_fhellipse:"Free-Hand Ellipse",mode_path:"Path Tool",mode_text:"Text Tool",mode_image:"Image Tool",mode_zoom:"Zoom Tool",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Undo",redo:"Redo",tool_source:"Edit Source",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Group Elements",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Ungroup Elements",docprops:"Document Properties",editor_homepage:"SVG-Edit Home Page",move_bottom:"Move to Bottom",move_top:"Move to Top",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Apply Changes",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Move Layer Up",move_down:"Move Layer Down",move_back:"Send to Back"},layers:{layer:"Layer",layers:"Layers",del:"Delete Layer",move_down:"Move Layer Down",new:"New Layer",rename:"Rename Layer",move_up:"Move Layer Up",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",select_predefined:"Select predefined:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),mU=Object.freeze({__proto__:null,default:{lang:"th",dir:"ltr",common:{ok:"บันทึก",cancel:"ยกเลิก",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"คลิกเพื่อเปลี่ยนใส่สีกะคลิกเปลี่ยนสีจังหวะ",zoom_level:"เปลี่ยนระดับการซูม",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"เปลี่ยนใส่สี",stroke_color:"สีจังหวะเปลี่ยน",stroke_style:"รีบเปลี่ยนสไตล์จังหวะ",stroke_width:"ความกว้างจังหวะเปลี่ยน",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"มุมหมุนเปลี่ยน",blur:"Change gaussian blur value",opacity:"เปลี่ยนความทึบเลือกรายการ",circle_cx:"Cx วงกลมเปลี่ยนของพิกัด",circle_cy:"วงกลมเปลี่ยนเป็น cy ประสานงาน",circle_r:"รัศมีวงกลมเปลี่ยนเป็น",ellipse_cx:"เปลี่ยน ellipse ของ cx ประสานงาน",ellipse_cy:"Ellipse เปลี่ยนของ cy ประสานงาน",ellipse_rx:"Ellipse เปลี่ยนของรัศมี x",ellipse_ry:"Ellipse เปลี่ยนของรัศมี y",line_x1:"สายเปลี่ยนเป็นเริ่มต้น x พิกัด",line_x2:"สายเปลี่ยนเป็นสิ้นสุด x พิกัด",line_y1:"สายเปลี่ยนเป็นเริ่มต้น y พิกัด",line_y2:"สายเปลี่ยนเป็นสิ้นสุด y พิกัด",rect_height:"ความสูงสี่เหลี่ยมผืนผ้าเปลี่ยน",rect_width:"ความกว้างสี่เหลี่ยมผืนผ้าเปลี่ยน",corner_radius:"รัศมีเปลี่ยนสี่เหลี่ยมผืนผ้า Corner",image_width:"ความกว้างเปลี่ยนรูปภาพ",image_height:"ความสูงเปลี่ยนรูปภาพ",image_url:"URL เปลี่ยน",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"เปลี่ยนเนื้อหาข้อความ",font_family:"ครอบครัว Change Font",font_size:"เปลี่ยนขนาดตัวอักษร",bold:"ข้อความตัวหนา",italic:"ข้อความตัวเอียง"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"สีพื้นหลังเปลี่ยน / ความทึบ",connector_no_arrow:"No arrow",fitToContent:"Fit to Content",fit_to_all:"พอดีกับเนื้อหาทั้งหมด",fit_to_canvas:"เหมาะสมในการผ้าใบ",fit_to_layer_content:"พอดีเนื้อหาชั้นที่",fit_to_sel:"เหมาะสมในการเลือก",align_relative_to:"จัดชิดเทียบกับ ...",relativeTo:"เทียบกับ:",page:"หน้า",largest_object:"ที่ใหญ่ที่สุดในวัตถุ",selected_objects:"วัตถุเลือกตั้ง",smallest_object:"วัตถุที่เล็กที่สุด",new_doc:"รูปภาพใหม่",open_doc:"ภาพเปิด",export_img:"Export",save_doc:"บันทึกรูปภาพ",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"ด้านล่างชิด",align_center:"จัดแนวกึ่งกลาง",align_left:"จัดชิดซ้าย",align_middle:"กลางชิด",align_right:"จัดชิดขวา",align_top:"ด้านบนชิด",mode_select:"เครื่องมือเลือก",mode_fhpath:"เครื่องมือดินสอ",mode_line:"เครื่องมือ Line",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"สี่เหลี่ยมผืนผ้า Free-Hand",mode_ellipse:"Ellipse",mode_circle:"Circle",mode_fhellipse:"Ellipse Free-Hand",mode_path:"Path Tool",mode_text:"เครื่องมือ Text",mode_image:"เครื่องมือ Image",mode_zoom:"เครื่องมือซูม",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"เลิก",redo:"ทำซ้ำ",tool_source:"แหล่งที่มาแก้ไข",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"องค์ประกอบของกลุ่ม",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"องค์ประกอบ Ungroup",docprops:"คุณสมบัติของเอกสาร",editor_homepage:"SVG-Edit Home Page",move_bottom:"ย้ายไปด้านล่าง",move_top:"ย้ายไปด้านบน",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"บันทึก",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Layer",layers:"Layers",del:"Delete Layer",move_down:"ย้าย Layer ลง",new:"Layer ใหม่",rename:"Layer เปลี่ยนชื่อ",move_up:"ย้าย Layer Up",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",select_predefined:"เลือกที่กำหนดไว้ล่วงหน้า:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),_U=Object.freeze({__proto__:null,default:{lang:"tl",dir:"ltr",common:{ok:"I-save",cancel:"I-cancel",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"I-click upang baguhin ang punan ang kulay, paglilipat-click upang baguhin ang paghampas ng kulay",zoom_level:"Baguhin ang antas ng zoom",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"Baguhin ang punuin ng kulay",stroke_color:"Baguhin ang kulay ng paghampas",stroke_style:"Baguhin ang stroke pagsugod estilo",stroke_width:"Baguhin ang stroke lapad",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Baguhin ang pag-ikot anggulo",blur:"Change gaussian blur value",opacity:"Palitan ang mga napiling bagay kalabuan",circle_cx:"Cx Baguhin ang bilog's coordinate",circle_cy:"Baguhin ang bilog's cy coordinate",circle_r:"Baguhin ang radius ng bilog",ellipse_cx:"Baguhin ang tambilugan's cx-ugma",ellipse_cy:"Baguhin ang tambilugan's cy coordinate",ellipse_rx:"X radius Baguhin ang tambilugan's",ellipse_ry:"Y radius Baguhin ang tambilugan's",line_x1:"Baguhin ang linya ng simula x coordinate",line_x2:"Baguhin ang linya ay nagtatapos x coordinate",line_y1:"Baguhin ang linya ng simula y coordinate",line_y2:"Baguhin ang linya ay nagtatapos y coordinate",rect_height:"Baguhin ang rektanggulo taas",rect_width:"Baguhin ang rektanggulo lapad",corner_radius:"Baguhin ang Parihaba Corner Radius",image_width:"Baguhin ang lapad ng imahe",image_height:"Baguhin ang taas ng imahe",image_url:"Baguhin ang URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Baguhin ang mga nilalaman ng teksto",font_family:"Baguhin ang Pamilya ng Font",font_size:"Baguhin ang Laki ng Font",bold:"Bold Text",italic:"Italic Text"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Baguhin ang kulay ng background / kalabuan",connector_no_arrow:"No arrow",fitToContent:"Pagkasyahin sa Nilalaman",fit_to_all:"Pagkasyahin sa lahat ng mga nilalaman",fit_to_canvas:"Pagkasyahin sa tolda",fit_to_layer_content:"Pagkasyahin sa layer nilalaman",fit_to_sel:"Pagkasyahin sa pagpili",align_relative_to:"Pantayin sa kamag-anak sa ...",relativeTo:"kamag-anak sa:",page:"pahina",largest_object:"pinakamalaking bagay",selected_objects:"inihalal na mga bagay",smallest_object:"pinakamaliit na bagay",new_doc:"Bagong Imahe",open_doc:"Buksan ang Image",export_img:"Export",save_doc:"I-save ang Image",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"Pantayin sa Ibaba",align_center:"Pantayin sa Gitna",align_left:"Pantayin ang Kaliwa",align_middle:"Pantayin sa Gitnang",align_right:"Pantayin sa Kanan",align_top:"Pantayin Top",mode_select:"Piliin ang Tool",mode_fhpath:"Kasangkapan ng lapis",mode_line:"Line Kasangkapan",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Libreng-kamay Parihaba",mode_ellipse:"Tambilugan",mode_circle:"Circle",mode_fhellipse:"Libreng-kamay tambilugan",mode_path:"Path Tool",mode_text:"Text Kasangkapan",mode_image:"Image Kasangkapan",mode_zoom:"Mag-zoom Kasangkapan",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Bawiin",redo:"Gawin muli",tool_source:"I-edit ang Source",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Group Sangkap",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Ungroup Sangkap",docprops:"Document Katangian",editor_homepage:"SVG-Edit Home Page",move_bottom:"Ilipat sa Ibaba",move_top:"Ilipat sa Tuktok",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"I-save",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Layer",layers:"Layers",del:"Tanggalin Layer",move_down:"Ilipat Layer Down",new:"Bagong Layer",rename:"Palitan ang pangalan ng Layer",move_up:"Ilipat Layer Up",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",select_predefined:"Piliin ang paunang-natukoy na:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),vU=Object.freeze({__proto__:null,default:{lang:"tr",dir:"ltr",common:{ok:"Kaydetmek",cancel:"Iptal",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Tıklatın renk, vardiya dolgu zamanlı rengini değiştirmek için tıklayın değiştirmek için",zoom_level:"Yakınlaştırma düzeyini değiştirebilirsiniz",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"Renk değiştirmek doldurmak",stroke_color:"Değiştirmek inme renk",stroke_style:"Değiştirmek inme çizgi stili",stroke_width:"Değiştirmek vuruş genişliği",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Değiştirmek dönme açısı",blur:"Change gaussian blur value",opacity:"Değiştirmek öğe opacity seçilmiş",circle_cx:"Değiştirmek daire's cx koordine",circle_cy:"Değiştirmek daire cy koordine's",circle_r:"Değiştirmek daire yarıçapı",ellipse_cx:"'s Koordine cx elips Girişi",ellipse_cy:"Değiştirmek elips cy koordine's",ellipse_rx:"Değiştirmek elips's x yarıçapı",ellipse_ry:"Değiştirmek elips Y yarıçapı",line_x1:"Değiştirmek hattı's koordine x başlangıç",line_x2:"Değiştirmek hattı's koordine x biten",line_y1:"Değiştirmek hattı y başlangıç's koordine",line_y2:"Değiştirmek hattı y biten's koordine",rect_height:"Değiştirmek dikdörtgen yüksekliği",rect_width:"Değiştirmek dikdörtgen genişliği",corner_radius:"Değiştirmek Dikdörtgen Köşe Yarıçap",image_width:"Değiştirmek görüntü genişliği",image_height:"Değiştirmek görüntü yüksekliği",image_url:"Değiştirmek URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Değiştirmek metin içeriği",font_family:"Font değiştir Aile",font_size:"Change font size",bold:"Kalın Yazı",italic:"Italik yazı"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Arka plan rengini değiştirmek / opacity",connector_no_arrow:"No arrow",fitToContent:"Fit to Content",fit_to_all:"Fit tüm içerik için",fit_to_canvas:"Fit tuvaline",fit_to_layer_content:"Sığacak şekilde katman içerik",fit_to_sel:"Fit seçimine",align_relative_to:"Align göre ...",relativeTo:"göreli:",page:"sayfa",largest_object:"en büyük nesne",selected_objects:"seçilen nesneleri",smallest_object:"küçük nesne",new_doc:"Yeni Resim",open_doc:"Aç Resim",export_img:"Export",save_doc:"Görüntüyü Kaydet",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"Align Bottom",align_center:"Ortala",align_left:"Sola",align_middle:"Align Orta",align_right:"Sağa Hizala",align_top:"Align Top",mode_select:"Seçim aracı",mode_fhpath:"Kalem Aracı",mode_line:"Line Aracı",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Free-El Dikdörtgen",mode_ellipse:"Elips",mode_circle:"Daire",mode_fhellipse:"Free-El Elips",mode_path:"Path Tool",mode_text:"Metin Aracı",mode_image:"Resim Aracı",mode_zoom:"Zoom Tool",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Geri",redo:"Redo",tool_source:"Değiştir Kaynak",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Grup Elemanları",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Çöz Elemanları",docprops:"Belge Özellikleri",editor_homepage:"SVG-Edit Home Page",move_bottom:"Altına gider",move_top:"Üste taşı",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Kaydetmek",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Layer",layers:"Layers",del:"Delete Layer",move_down:"Katman Aşağı Taşı",new:"Yeni Katman",rename:"Rename Katman",move_up:"Up Katman Taşı",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",select_predefined:"Seçin önceden tanımlanmış:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),yU=Object.freeze({__proto__:null,default:{lang:"uk",dir:"ltr",common:{ok:"Зберегти",cancel:"Скасування",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Натисніть для зміни кольору заливки, Shift-Click змінити обвід",zoom_level:"Зміна масштабу",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"Зміна кольору заливки",stroke_color:"Зміна кольору інсульт",stroke_style:"Зміна стилю інсульт тире",stroke_width:"Зміни ширина штриха",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Зміна кута повороту",blur:"Change gaussian blur value",opacity:"Зміна вибраного пункту непрозорості",circle_cx:"CX зміну кола координата",circle_cy:"Зміни гуртка CY координати",circle_r:"Зміна кола's радіус",ellipse_cx:"Зміни еліпса CX координати",ellipse_cy:"Зміни еліпса CY координати",ellipse_rx:"Х Зміни еліпса радіусом",ellipse_ry:"Зміни у еліпса радіусом",line_x1:"Зміни починає координати лінія х",line_x2:"Зміни за період, що закінчився лінія координати х",line_y1:"Зміни лінія починає Y координата",line_y2:"Зміна за період, що закінчився лінія Y координата",rect_height:"Зміни прямокутник висотою",rect_width:"Зміна ширини прямокутника",corner_radius:"Зміни прямокутник Corner Radius",image_width:"Зміни ширина зображення",image_height:"Зміна висоти зображення",image_url:"Змінити URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Зміна змісту тексту",font_family:"Зміни Сімейство шрифтів",font_size:"Змінити розмір шрифту",bold:"Товстий текст",italic:"Похилий текст"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Зміна кольору тла / непрозорість",connector_no_arrow:"No arrow",fitToContent:"За розміром змісту",fit_to_all:"За розміром весь вміст",fit_to_canvas:"Розмір полотна",fit_to_layer_content:"За розміром шар змісту",fit_to_sel:"Вибір розміру",align_relative_to:"Вирівняти по відношенню до ...",relativeTo:"в порівнянні з:",page:"сторінка",largest_object:"найбільший об'єкт",selected_objects:"обраними об'єктами",smallest_object:"маленький об'єкт",new_doc:"Нове зображення",open_doc:"Відкрити зображення",export_img:"Export",save_doc:"Зберегти малюнок",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"Вирівняти по нижньому краю",align_center:"Вирівняти по центру",align_left:"По лівому краю",align_middle:"Вирівняти Близького",align_right:"По правому краю",align_top:"Вирівняти по верхньому краю",mode_select:"Виберіть інструмент",mode_fhpath:"Pencil Tool",mode_line:"Line Tool",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Вільної руки Прямокутник",mode_ellipse:"Еліпс",mode_circle:"Коло",mode_fhellipse:"Вільної руки Еліпс",mode_path:"Path Tool",mode_text:"Текст Tool",mode_image:"Image Tool",mode_zoom:"Zoom Tool",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Скасувати",redo:"Повтор",tool_source:"Змінити вихідний",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Група елементів",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Елементи розгрупувати",docprops:"Властивості документа",editor_homepage:"SVG-Edit Home Page",move_bottom:"Перемістити вниз",move_top:"Перемістити догори",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Зберегти",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Layer",layers:"Layers",del:"Видалити шар",move_down:"Перемістити шар на",new:"Новий шар",rename:"Перейменувати Шар",move_up:"Переміщення шару до",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",select_predefined:"Виберіть зумовлений:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),bU=Object.freeze({__proto__:null,default:{lang:"vi",dir:"ltr",common:{ok:"Lưu",cancel:"Hủy",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"Nhấn vào đây để thay đổi đầy màu sắc, thay đổi nhấp chuột để thay đổi màu sắc đột quỵ",zoom_level:"Thay đổi mức độ phóng",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"Thay đổi đầy màu sắc",stroke_color:"Thay đổi màu sắc đột quỵ",stroke_style:"Thay đổi phong cách đột quỵ dash",stroke_width:"Thay đổi chiều rộng đột quỵ",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"Thay đổi góc xoay",blur:"Change gaussian blur value",opacity:"Thay đổi lựa chọn opacity mục",circle_cx:"Thay đổi hình tròn của cx phối hợp",circle_cy:"Thay đổi hình tròn của vi phối hợp",circle_r:"Thay đổi bán kính của hình tròn",ellipse_cx:"Thay đổi hình elip của cx phối hợp",ellipse_cy:"Thay đổi hình elip của vi phối hợp",ellipse_rx:"Thay đổi hình elip của x bán kính",ellipse_ry:"Y Thay đổi bán kính của hình ellipse",line_x1:"Thay đổi dòng của bắt đầu từ x phối hợp",line_x2:"Thay đổi dòng của x kết thúc sớm nhất phối hợp",line_y1:"Thay đổi dòng của bắt đầu từ y phối hợp",line_y2:"Thay đổi dòng của kết thúc y phối hợp",rect_height:"Thay đổi hình chữ nhật chiều cao",rect_width:"Thay đổi hình chữ nhật chiều rộng",corner_radius:"Thay đổi chữ nhật Corner Radius",image_width:"Thay đổi hình ảnh rộng",image_height:"Thay đổi hình ảnh chiều cao",image_url:"Thay đổi URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"Thay đổi nội dung văn bản",font_family:"Thay đổi Font Gia đình",font_size:"Thay đổi cỡ chữ",bold:"Bold Text",italic:"Italic Text"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"Thay đổi màu nền / opacity",connector_no_arrow:"No arrow",fitToContent:"Phù hợp với nội dung",fit_to_all:"Phù hợp với tất cả nội dung",fit_to_canvas:"Phù hợp với vải",fit_to_layer_content:"Vào lớp phù hợp với nội dung",fit_to_sel:"Phù hợp để lựa chọn",align_relative_to:"Căn liên quan đến ...",relativeTo:"liên quan đến:",page:"Page",largest_object:"lớn nhất đối tượng",selected_objects:"bầu các đối tượng",smallest_object:"nhỏ đối tượng",new_doc:"Hình mới",open_doc:"Mở Image",export_img:"Export",save_doc:"Save Image",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"Align Bottom",align_center:"Căn giữa",align_left:"Căn còn lại",align_middle:"Căn Trung",align_right:"Căn phải",align_top:"Căn Top",mode_select:"Chọn Công cụ",mode_fhpath:"Bút chì Công cụ",mode_line:"Line Tool",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Việt-Hand Hình chữ nhật",mode_ellipse:"Ellipse",mode_circle:"Circle",mode_fhellipse:"Việt-Hand Ellipse",mode_path:"Path Tool",mode_text:"Text Tool",mode_image:"Hình Công cụ",mode_zoom:"Zoom Tool",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"Hoàn tác",redo:"Làm lại",tool_source:"Sửa Nguồn",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"Nhóm Elements",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Ungroup Elements",docprops:"Document Properties",editor_homepage:"SVG-Edit Home Page",move_bottom:"Chuyển đến đáy",move_top:"Move to Top",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"Lưu",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Layer",layers:"Layers",del:"Xoá Layer",move_down:"Move Layer Down",new:"New Layer",rename:"Đổi tên Layer",move_up:"Di chuyển Layer Up",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",select_predefined:"Chọn định sẵn:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),wU=Object.freeze({__proto__:null,default:{lang:"yi",dir:"ltr",common:{ok:"היט",cancel:"באָטל מאַכן",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"גיט צו ענדערן אָנעסן קאָליר, יבעררוק-גיט צו טוישן מאַך קאָליר",zoom_level:"ענדערן פארגרעסער הייך",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"ענדערן אָנעסן קאָליר",stroke_color:"טוישן מאַך קאָליר",stroke_style:"טוישן מאַך לאָך מאָדע",stroke_width:"טוישן מאַך ברייט",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"ענדערן ראָוטיישאַן ווינקל",blur:"Change gaussian blur value",opacity:"ענדערן סעלעקטעד נומער אָופּאַסאַטי",circle_cx:"ענדערן קרייז ס קקס קאָואָרדאַנאַט",circle_cy:"ענדערן קרייז ס סי קאָואָרדאַנאַט",circle_r:"ענדערן קרייז ס ראַדיוס",ellipse_cx:"ענדערן יליפּס ס קקס קאָואָרדאַנאַט",ellipse_cy:"ענדערן יליפּס ס סי קאָואָרדאַנאַט",ellipse_rx:"ענדערן יליפּס ס 'קס ראַדיוס",ellipse_ry:"ענדערן יליפּס ס 'י ראַדיוס",line_x1:"טוישן ליניע ס 'סטאַרטינג קס קאָואָרדאַנאַט",line_x2:"טוישן ליניע ס 'סאָף קס קאָואָרדאַנאַט",line_y1:"טוישן ליניע ס 'סטאַרטינג י קאָואָרדאַנאַט",line_y2:"טוישן ליניע ס 'סאָף י קאָואָרדאַנאַט",rect_height:"ענדערן גראָדעק הייך",rect_width:"ענדערן גראָדעק ברייט",corner_radius:"ענדערן רעקטאַנגלע קאָרנער ראַדיוס",image_width:"טוישן בילד ברייט",image_height:"טוישן בילד הייך",image_url:"ענדערן URL",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"ענדערן טעקסט אינהאַלט",font_family:"ענדערן פאָנט פאַמילי",font_size:"בייטן פאָנט גרייס",bold:"דרייסט טעקסט",italic:"יטאַליק טעקסט"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"ענדערן הינטערגרונט פאַרב / אָופּאַסאַטי",connector_no_arrow:"No arrow",fitToContent:"פּאַסיק צו אינהאַלט",fit_to_all:"פּאַסיק צו אַלע אינהאַלט",fit_to_canvas:"פּאַסיק צו לייוונט",fit_to_layer_content:"פּאַסיק צו שיכטע אינהאַלט",fit_to_sel:"פּאַסיק צו אָפּקלייב",align_relative_to:"יינרייען קאָרעוו צו ...",relativeTo:"קאָרעוו צו:",page:"בלאַט",largest_object:"לאַרדזשאַסט קעגן",selected_objects:"עלעקטעד אַבדזשעקץ",smallest_object:"סמאָלאַסט קעגן",new_doc:"ניו בילד",open_doc:"Open בילד",export_img:"Export",save_doc:"היט בילד",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"יינרייען באָטטאָם",align_center:"יינרייען צענטער",align_left:"יינרייען לעפט",align_middle:"יינרייען מיטל",align_right:"יינרייען רעכט",align_top:"יינרייען Top",mode_select:"סעלעקטירן טול",mode_fhpath:"בלייער טול",mode_line:"שורה טול",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"Free-הענט רעקטאַנגלע",mode_ellipse:"עלליפּסע",mode_circle:"קאַראַהאָד",mode_fhellipse:"Free-הענט עלליפּסע",mode_path:"Path Tool",mode_text:"טעקסט טול",mode_image:"בילד טול",mode_zoom:"פארגרעסער טול",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"ופמאַכן",redo:"רעדאָ",tool_source:"רעדאַקטירן סאָרס",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"גרופּע עלעמענץ",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"ונגראָופּ עלעמענץ",docprops:"דאָקומענט פּראָפּערטיעס",editor_homepage:"SVG-Edit Home Page",move_bottom:"מאַך צו באָטטאָם",move_top:"באַוועגן צו Top",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"היט",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Layer",layers:"Layers",del:"ויסמעקן לייַער",move_down:"קער לייַער דאָוון",new:"ניו לייַער",rename:"רענאַמע לייַער",move_up:"באַוועגן לייַער אַרויף",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",select_predefined:"סעלעקטירן פּרעדעפינעד:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),SU=Object.freeze({__proto__:null,default:{lang:"zh-CN",dir:"ltr",common:{ok:"确定",cancel:"取消",key_backspace:"退格",key_del:"删除",key_down:"下",key_up:"上",more_opts:"更多选项",url:"URL",width:"宽度",height:"高度"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"显示/隐藏更式边线工具",palette_info:"点击更改填充颜色,按住Shift键单击更改线条颜色",zoom_level:"更改缩放级别",panel_drag:"左右拖拽调整面板大小",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"元素ID",fill_color:"更改填充颜色",stroke_color:"线条的颜色变化",stroke_style:"更改线条样式",stroke_width:"更改线条宽度",pos_x:"更改X坐标",pos_y:"更改Y坐标",linecap_butt:"顶端样式: 齐平",linecap_round:"顶端样式: 圆滑",linecap_square:"顶端样式: 方块",linejoin_bevel:"连接处: 削平",linejoin_miter:"连接处: 直角",linejoin_round:"连接处: 圆角",angle:"更改旋转角度",blur:"更改高斯模糊值",opacity:"更改所选条目的不透明度",circle_cx:"改变圆的中心X坐标",circle_cy:"改变圆的中心Y坐标",circle_r:"改变圆的半径",ellipse_cx:"改变椭圆的中心X坐标",ellipse_cy:"改变椭圆的中心Y坐标",ellipse_rx:"改变椭圆的x半径",ellipse_ry:"改变椭圆的y半径",line_x1:"更改直线起点的x坐标",line_x2:"更改直线终点的x坐标",line_y1:"更改直线起点的y坐标",line_y2:"更改直线终点的y坐标",rect_height:"更改矩形的高度",rect_width:"更改矩形的宽度",corner_radius:"角半径:",image_width:"更改图像的宽度",image_height:"更改图像的高度",image_url:"更改网址",node_x:"更改节点的X坐标",node_y:"更改节点的Y坐标",seg_type:"修改线段类型",straight_segments:"直线",curve_segments:"曲线",text_contents:"更改文本内容",font_family:"更改字体样式",font_size:"更改字体大小",bold:"粗体",italic:"斜体"},tools:{main_menu:"主菜单",bkgnd_color_opac:"更改背景颜色/不透明",connector_no_arrow:"无箭头",fitToContent:"适应内容",fit_to_all:"适应于所有的内容",fit_to_canvas:"适应画布",fit_to_layer_content:"适应层内容",fit_to_sel:"适应选中内容",align_relative_to:"相对对齐 ...",relativeTo:"相对于:",page:"网页",largest_object:"最大对象",selected_objects:"选中的对象",smallest_object:"最小的对象",new_doc:"新文档",open_doc:"打开文档",export_img:"导出",save_doc:"保存图像",import_doc:"导入SVG",align_to_page:"对齐元素到页面",align_bottom:"底部对齐",align_center:"居中对齐",align_left:"左对齐",align_middle:"水平居中对齐",align_right:"右对齐",align_top:"顶端对齐",mode_select:"选择工具",mode_fhpath:"铅笔工具",mode_line:"线工具",mode_rect:"矩形",mode_square:"正方形",mode_fhrect:"自由矩形",mode_ellipse:"椭圆",mode_circle:"圆形",mode_fhellipse:"自由椭圆",mode_path:"路径",mode_text:"文字工具",mode_image:"图像工具",mode_zoom:"缩放工具",no_embed:"注意: 根据SVG图像的存储位置,内嵌的位图可能无法显示!",undo:"撤消",redo:"重做",tool_source:"编辑源",wireframe_mode:"线条模式",clone:"克隆元素",del:"删除元素",group_elements:"组合元素",make_link:"创建超链接",set_link_url:"设置链接URL (设置为空以删除)",to_path:"转换为路径",reorient_path:"调整路径",ungroup:"取消组合元素",docprops:"文档属性",editor_homepage:"SVG-Edit 主页",move_bottom:"移至底部",move_top:"移至顶部",node_clone:"复制节点",node_delete:"删除节点",node_link:"连接控制点",add_subpath:"添加子路径",openclose_path:"打开/关闭 子路径",source_save:"保存",cut:"剪切",copy:"复制",paste:"粘贴",paste_in_place:"粘贴到原位置",delete:"删除",group:"组合",move_front:"移至顶部",move_up:"向上移动",move_down:"向下移动",move_back:"移至底部"},layers:{layer:"图层",layers:"图层",del:"删除图层",move_down:"向下移动图层",new:"新建图层",rename:"重命名图层",move_up:"向上移动图层",dupe:"复制图层",merge_down:"向下合并",merge_all:"全部合并",move_elems_to:"移动元素至:",move_selected:"移动元素至另一个图层"},config:{image_props:"图像属性",doc_title:"标题",doc_dims:"画布大小",included_images:"包含图像",image_opt_embed:"嵌入数据 (本地文件)",image_opt_ref:"使用文件引用",editor_prefs:"编辑器首选项",icon_size:"图标大小",language:"语言",background:"编辑器背景",editor_img_url:"图像 URL",editor_bg_note:"注意: 背景不会保存在图像中.",icon_large:"大",icon_medium:"中",icon_small:"小",icon_xlarge:"特大",select_predefined:"选择预定义:",units_and_rulers:"单位 & 标尺",show_rulers:"显示标尺",base_unit:"基本单位:",grid:"网格",snapping_onoff:"吸附开/关",snapping_stepsize:"吸附步长:",grid_color:"网格颜色"},notification:{invalidAttrValGiven:"无效的参数",noContentToFitTo:"无可适应的内容",dupeLayerName:"已存在同名的图层!",enterUniqueLayerName:"请输入一个唯一的图层名称",enterNewLayerName:"请输入新的图层名称",layerHasThatName:"图层已经采用了该名称",QmoveElemsToLayer:"您确定移动所选元素到图层'%s'吗?",QwantToClear:"您希望清除当前绘制的所有图形吗?\n该操作将无法撤消!",QwantToOpen:"您希望打开一个新文档吗?\n该操作将无法撤消!",QerrorsRevertToSource:"SVG文件解析错误.\n是否还原到最初的SVG文件?",QignoreSourceChanges:"忽略对SVG文件所作的更改么?",featNotSupported:"不支持该功能",enterNewImgURL:"请输入新图像的URLL",defsFailOnSave:"注意: 由于您所使用的浏览器存在缺陷, 该图像无法正确显示 (不支持渐变或相关元素). 修复该缺陷后可正确显示.",loadingImage:"正在加载图像, 请稍候...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"同时注意以下几点: ",unsavedChanges:"存在未保存的修改.",enterNewLinkURL:"输入新建链接的URL地址",errorLoadingSVG:"错误: 无法加载SVG数据",URLLoadFail:"无法从URL中加载",retrieving:"检索 '%s'...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),xU=Object.freeze({__proto__:null,default:{lang:"zh-HK",dir:"ltr",common:{ok:"确定",cancel:"取消",key_backspace:"backspace",key_del:"delete",key_down:"down",key_up:"up",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"点击更改填充颜色,按住Shift键单击更改颜色中风",zoom_level:"更改缩放级别",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"更改填充颜色",stroke_color:"中风的颜色变化",stroke_style:"更改行程冲刺风格",stroke_width:"笔划宽度的变化",pos_x:"Change X coordinate",pos_y:"Change Y coordinate",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"旋转角度的变化",blur:"Change gaussian blur value",opacity:"更改所选项目不透明",circle_cx:"改变循环的CX坐标",circle_cy:"改变循环的赛扬坐标",circle_r:"改变圆的半径",ellipse_cx:"改变椭圆的CX坐标",ellipse_cy:"改变椭圆的赛扬坐标",ellipse_rx:"改变椭圆的x半径",ellipse_ry:"改变椭圆的y半径",line_x1:"更改行的起点的x坐标",line_x2:"更改行的结束x坐标",line_y1:"更改行的起点的y坐标",line_y2:"更改行的结束y坐标",rect_height:"更改矩形的高度",rect_width:"更改矩形的宽度",corner_radius:"角半径:",image_width:"更改图像的宽度",image_height:"更改图像高度",image_url:"更改网址",node_x:"Change node's x coordinate",node_y:"Change node's y coordinate",seg_type:"Change Segment type",straight_segments:"Straight",curve_segments:"Curve",text_contents:"更改文字内容",font_family:"更改字体家族",font_size:"更改字体大小",bold:"粗体",italic:"斜体文本"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"更改背景颜色/不透明",connector_no_arrow:"No arrow",fitToContent:"适合内容",fit_to_all:"适合于所有的内容",fit_to_canvas:"适合画布",fit_to_layer_content:"适合层内容",fit_to_sel:"适合选择",align_relative_to:"相对对齐 ...",relativeTo:"相对于:",page:"网页",largest_object:"最大对象",selected_objects:"选对象",smallest_object:"最小的对象",new_doc:"新形象",open_doc:"打开图像",export_img:"Export",save_doc:"保存图像",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"底部对齐",align_center:"居中对齐",align_left:"左对齐",align_middle:"中间对齐",align_right:"右对齐",align_top:"顶端对齐",mode_select:"选择工具",mode_fhpath:"铅笔工具",mode_line:"线工具",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"免费手矩形",mode_ellipse:"椭圆",mode_circle:"圈",mode_fhellipse:"免费手椭圆",mode_path:"Path Tool",mode_text:"文字工具",mode_image:"图像工具",mode_zoom:"缩放工具",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"撤消",redo:"重做",tool_source:"编辑源",wireframe_mode:"Wireframe Mode",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"族元素",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"Convert to Path",reorient_path:"Reorient path",ungroup:"Ungroup Elements",docprops:"文档属性",editor_homepage:"SVG-Edit 主页",move_bottom:"移至底部",move_top:"移动到顶部",node_clone:"Clone Node",node_delete:"Delete Node",node_link:"Link Control Points",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"保存",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"Layer",layers:"Layers",del:"删除层",move_down:"层向下移动",new:"新层",rename:"重命名层",move_up:"移动层最多",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"Move elements to:",move_selected:"Move selected elements to a different layer"},config:{image_props:"Image Properties",doc_title:"Title",doc_dims:"Canvas Dimensions",included_images:"Included Images",image_opt_embed:"Embed data (local files)",image_opt_ref:"Use file reference",editor_prefs:"Editor Preferences",icon_size:"Icon size",language:"Language",background:"Editor Background",editor_img_url:"Image URL",editor_bg_note:"Note: Background will not be saved with image.",icon_large:"Large",icon_medium:"Medium",icon_small:"Small",icon_xlarge:"Extra Large",select_predefined:"选择预定义:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"Invalid value given",noContentToFitTo:"No content to fit to",dupeLayerName:"There is already a layer named that!",enterUniqueLayerName:"Please enter a unique layer name",enterNewLayerName:"Please enter the new layer name",layerHasThatName:"Layer already has that name",QmoveElemsToLayer:"Move selected elements to layer '%s'?",QwantToClear:"Do you want to clear the drawing?\nThis will also erase your undo history!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"There were parsing errors in your SVG source.\nRevert back to original SVG source?",QignoreSourceChanges:"Ignore changes made to SVG source?",featNotSupported:"Feature not supported",enterNewImgURL:"Enter the new image URL",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}}),kU=Object.freeze({__proto__:null,default:{lang:"zh-TW",dir:"ltr",common:{ok:"确定",cancel:"取消",key_backspace:"空白",key_del:"刪除",key_down:"下",key_up:"上",more_opts:"More Options",url:"URL",width:"Width",height:"Height"},misc:{powered_by:"Powered by"},ui:{toggle_stroke_tools:"Show/hide more stroke tools",palette_info:"點擊更改填充顏色,按住Shift鍵單擊更改線條顏色",zoom_level:"更改縮放級別",panel_drag:"Drag left/right to resize side panel",quality:"Quality:",pathNodeTooltip:"Drag node to move it. Double-click node to change segment type",pathCtrlPtTooltip:"Drag control point to adjust curve properties",pick_stroke_paint_opacity:"Pick a Stroke Paint and Opacity",pick_fill_paint_opacity:"Pick a Fill Paint and Opacity"},properties:{id:"Identify the element",fill_color:"更改填充顏色",stroke_color:"線條顏色",stroke_style:"更改線條(虛線)風格",stroke_width:"線條寬度",pos_x:"調整 X 軸",pos_y:"調整 Y 軸",linecap_butt:"Linecap: Butt",linecap_round:"Linecap: Round",linecap_square:"Linecap: Square",linejoin_bevel:"Linejoin: Bevel",linejoin_miter:"Linejoin: Miter",linejoin_round:"Linejoin: Round",angle:"旋轉角度",blur:"Change gaussian blur value",opacity:"更改所選項目不透明度",circle_cx:"改變圓的CX坐標",circle_cy:"改變圓的CY坐標",circle_r:"改變圓的半徑",ellipse_cx:"改變橢圓的圓心x軸座標",ellipse_cy:"改變橢圓的圓心y軸座標",ellipse_rx:"改變橢圓的x軸長",ellipse_ry:"改變橢圓的y軸長",line_x1:"更改行的起點的x坐標",line_x2:"更改行的終點x坐標",line_y1:"更改行的起點的y坐標",line_y2:"更改行的終點y坐標",rect_height:"更改矩形的高度",rect_width:"更改矩形的寬度",corner_radius:"角半徑:",image_width:"更改圖像的寬度",image_height:"更改圖像高度",image_url:"更改網址",node_x:"改變節點的x軸座標",node_y:"改變節點的y軸座標",seg_type:"Change Segment type",straight_segments:"直線",curve_segments:"曲線",text_contents:"更改文字內容",font_family:"更改字體",font_size:"更改字體大小",bold:"粗體",italic:"斜體"},tools:{main_menu:"Main Menu",bkgnd_color_opac:"更改背景顏色/不透明",connector_no_arrow:"No arrow",fitToContent:"適合內容",fit_to_all:"適合所有的內容",fit_to_canvas:"適合畫布",fit_to_layer_content:"適合圖層內容",fit_to_sel:"適合選取的物件",align_relative_to:"相對對齊 ...",relativeTo:"相對於:",page:"網頁",largest_object:"最大的物件",selected_objects:"選取物件",smallest_object:"最小的物件",new_doc:"清空圖像",open_doc:"打開圖像",export_img:"Export",save_doc:"保存圖像",import_doc:"Import Image",align_to_page:"Align Element to Page",align_bottom:"底部對齊",align_center:"居中對齊",align_left:"向左對齊",align_middle:"中間對齊",align_right:"向右對齊",align_top:"頂端對齊",mode_select:"選擇工具",mode_fhpath:"鉛筆工具",mode_line:"線工具",mode_rect:"Rectangle Tool",mode_square:"Square Tool",mode_fhrect:"徒手畫矩形",mode_ellipse:"橢圓",mode_circle:"圓",mode_fhellipse:"徒手畫橢圓",mode_path:"路徑工具",mode_text:"文字工具",mode_image:"圖像工具",mode_zoom:"縮放工具",no_embed:"NOTE: This image cannot be embedded. It will depend on this path to be displayed",undo:"取消復原",redo:"復原",tool_source:"編輯SVG原始碼",wireframe_mode:"框線模式(只瀏覽線條)",clone:"Clone Element(s)",del:"Delete Element(s)",group_elements:"群組",make_link:"Make (hyper)link",set_link_url:"Set link URL (leave empty to remove)",to_path:"轉換成路徑",reorient_path:"調整路徑",ungroup:"取消群組",docprops:"文件屬性",editor_homepage:"SVG-Edit 主頁",move_bottom:"移至底部",move_top:"移動到頂部",node_clone:"增加節點",node_delete:"刪除節點",node_link:"將控制點連起來",add_subpath:"Add sub-path",openclose_path:"Open/close sub-path",source_save:"保存",cut:"Cut",copy:"Copy",paste:"Paste",paste_in_place:"Paste in Place",delete:"Delete",group:"Group",move_front:"Bring to Front",move_up:"Bring Forward",move_down:"Send Backward",move_back:"Send to Back"},layers:{layer:"圖層",layers:"Layers",del:"刪除圖層",move_down:"向下移動圖層",new:"新增圖層",rename:"重新命名圖層",move_up:"向上移動圖層",dupe:"Duplicate Layer",merge_down:"Merge Down",merge_all:"Merge All",move_elems_to:"移動物件到:",move_selected:"移動被點選的物件其他圖層"},config:{image_props:"圖片屬性",doc_title:"標題",doc_dims:"畫布大小",included_images:"包含圖像",image_opt_embed:"內嵌資料 (本地端檔案)",image_opt_ref:"使用檔案參照",editor_prefs:"編輯器屬性",icon_size:"圖示大小",language:"語言",background:"編輯器背景",editor_img_url:"Image URL",editor_bg_note:"注意: 編輯器背景不會和圖像一起儲存",icon_large:"大",icon_medium:"中",icon_small:"小",icon_xlarge:"特大",select_predefined:"使用預設值:",units_and_rulers:"Units & Rulers",show_rulers:"Show rulers",base_unit:"Base Unit:",grid:"Grid",snapping_onoff:"Snapping on/off",snapping_stepsize:"Snapping Step-Size:",grid_color:"Grid color"},notification:{invalidAttrValGiven:"數值給定錯誤",noContentToFitTo:"找不到符合的內容",dupeLayerName:"喔不!已經有另一個同樣名稱的圖層了!",enterUniqueLayerName:"請輸入一個名稱不重複的",enterNewLayerName:"請輸入新圖層的名稱",layerHasThatName:"圖層本來就是這個名稱(抱怨)",QmoveElemsToLayer:"要搬移所選取的物件到'%s'層嗎?",QwantToClear:"要清空圖像嗎?\n這會順便清空你的回復紀錄!",QwantToOpen:"Do you want to open a new file?\nThis will also erase your undo history!",QerrorsRevertToSource:"SVG原始碼解析錯誤\n要回復到原本的SVG原始碼嗎?",QignoreSourceChanges:"要忽略對SVG原始碼的更動嗎?",featNotSupported:"未提供此功能",enterNewImgURL:"輸入新的圖片網址",defsFailOnSave:"NOTE: Due to a bug in your browser, this image may appear wrong (missing gradients or elements). It will however appear correct once actually saved.",loadingImage:"Loading image, please wait...",saveFromBrowser:"Select 'Save As...' in your browser (possibly via file menu or right-click context-menu) to save this image as a %s file.",noteTheseIssues:"Also note the following issues: ",unsavedChanges:"There are unsaved changes.",enterNewLinkURL:"Enter the new hyperlink URL",errorLoadingSVG:"Error: Unable to load SVG data",URLLoadFail:"Unable to load from URL",retrieving:"Retrieving '%s' ...",popupWindowBlocked:"Popup window may be blocked by browser",exportNoBlur:"Blurred elements will appear as un-blurred",exportNoforeignObject:"foreignObject elements will not appear",exportNoDashArray:"Strokes will appear filled",exportNoText:"Text may not appear as expected"}}});
|
||
//# sourceMappingURL=xdomain-index.js.map
|