ablok-components 0.1.121 → 0.1.123
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -22748,7 +22748,7 @@ const O3 = /* @__PURE__ */ NA({
|
|
|
22748
22748
|
},
|
|
22749
22749
|
ratio: {
|
|
22750
22750
|
type: String,
|
|
22751
|
-
default: "
|
|
22751
|
+
default: "3x2"
|
|
22752
22752
|
},
|
|
22753
22753
|
enableAudio: {
|
|
22754
22754
|
type: Boolean,
|
|
@@ -22763,8 +22763,10 @@ const O3 = /* @__PURE__ */ NA({
|
|
|
22763
22763
|
setup(t, { expose: A, emit: e }) {
|
|
22764
22764
|
const n = {
|
|
22765
22765
|
"1x1": { width: 720, height: 720 },
|
|
22766
|
-
"
|
|
22767
|
-
"
|
|
22766
|
+
"3x2": { width: 1152, height: 768 },
|
|
22767
|
+
"2x3": { width: 768, height: 1152 },
|
|
22768
|
+
"4x3": { width: 1024, height: 768 },
|
|
22769
|
+
"3x4": { width: 768, height: 1024 },
|
|
22768
22770
|
"16x9": { width: 1280, height: 720 },
|
|
22769
22771
|
"9x16": { width: 720, height: 1280 }
|
|
22770
22772
|
}, r = t, i = e, s = MA(), a = MA(), u = MA(!1), c = MA([]), f = MA(), h = MA(), p = MA(!1), B = MA(!1), m = MA(0), Q = MA(0), E = MA(), U = kA(() => c.value.filter((iA) => iA.kind === "videoinput")), x = kA(() => c.value.filter((iA) => iA.kind === "audioinput")), S = kA({
|
|
@@ -28862,6 +28864,10 @@ const k3 = /* @__PURE__ */ NA({
|
|
|
28862
28864
|
type: Boolean,
|
|
28863
28865
|
default: !1
|
|
28864
28866
|
},
|
|
28867
|
+
options: {
|
|
28868
|
+
type: Object,
|
|
28869
|
+
default: () => ({})
|
|
28870
|
+
},
|
|
28865
28871
|
debug: {
|
|
28866
28872
|
type: Boolean,
|
|
28867
28873
|
default: !1
|
|
@@ -28876,7 +28882,8 @@ const k3 = /* @__PURE__ */ NA({
|
|
|
28876
28882
|
backgroundColor: "rgba(0, 0, 0, 0)",
|
|
28877
28883
|
scale: 1,
|
|
28878
28884
|
width: c.offsetWidth,
|
|
28879
|
-
height: c.offsetHeight
|
|
28885
|
+
height: c.offsetHeight,
|
|
28886
|
+
...e.options
|
|
28880
28887
|
})).toDataURL();
|
|
28881
28888
|
if (n("update:modelValue", h), e.debug) {
|
|
28882
28889
|
const p = new Image();
|
|
@@ -159,7 +159,7 @@ __p += '`),MA&&(J+=`' +
|
|
|
159
159
|
function print() { __p += __j.call(arguments, '') }
|
|
160
160
|
`:`;
|
|
161
161
|
`)+J+`return __p
|
|
162
|
-
}`;var UA=aE(function(){return JA(Q,lA+"return "+J).apply(e,v)});if(UA.source=J,qd(UA))throw UA;return UA}function $2(o){return zA(o).toLowerCase()}function J2(o){return zA(o).toUpperCase()}function X2(o,l,d){if(o=zA(o),o&&(d||l===e))return B0(o);if(!o||!(l=Lt(l)))return o;var B=dn(o),C=dn(l),Q=m0(B,C),v=w0(B,C)+1;return Kr(B,Q,v).join("")}function Y2(o,l,d){if(o=zA(o),o&&(d||l===e))return o.slice(0,y0(o)+1);if(!o||!(l=Lt(l)))return o;var B=dn(o),C=w0(B,dn(l))+1;return Kr(B,0,C).join("")}function z2(o,l,d){if(o=zA(o),o&&(d||l===e))return o.replace(qf,"");if(!o||!(l=Lt(l)))return o;var B=dn(o),C=m0(B,dn(l));return Kr(B,C).join("")}function q2(o,l){var d=sA,B=mA;if(he(l)){var C="separator"in l?l.separator:C;d="length"in l?EA(l.length):d,B="omission"in l?Lt(l.omission):B}o=zA(o);var Q=o.length;if(us(o)){var v=dn(o);Q=v.length}if(d>=Q)return o;var x=d-fs(B);if(x<1)return B;var k=v?Kr(v,0,x).join(""):o.slice(0,x);if(C===e)return k+B;if(v&&(x+=k.length-x),Zd(C)){if(o.slice(x).search(C)){var G,W=k;for(C.global||(C=hd(C.source,zA(DC.exec(C))+"g")),C.lastIndex=0;G=C.exec(W);)var J=G.index;k=k.slice(0,J===e?x:J)}}else if(o.indexOf(Lt(C),x)!=x){var q=k.lastIndexOf(C);q>-1&&(k=k.slice(0,q))}return k+B}function Z2(o){return o=zA(o),o&&zn.test(o)?o.replace(Yn,vR):o}var j2=ws(function(o,l,d){return o+(d?" ":"")+l.toUpperCase()}),eh=ly("toUpperCase");function oE(o,l,d){return o=zA(o),l=d?e:l,l===e?ER(o)?TR(o):dR(o):o.match(l)||[]}var aE=vA(function(o,l){try{return xt(o,e,l)}catch(d){return qd(d)?d:new wA(d)}}),AG=er(function(o,l){return Yt(l,function(d){d=On(d),jn(o,d,Yd(o[d],o))}),o});function eG(o){var l=o==null?0:o.length,d=dA();return o=l?fe(o,function(B){if(typeof B[1]!="function")throw new zt(s);return[d(B[0]),B[1]]}):[],vA(function(B){for(var C=-1;++C<l;){var Q=o[C];if(xt(Q[0],this,B))return xt(Q[1],this,B)}})}function tG(o){return v4(Zt(o,h))}function th(o){return function(){return o}}function nG(o,l){return o==null||o!==o?l:o}var rG=uy(),iG=uy(!0);function Ft(o){return o}function nh(o){return K0(typeof o=="function"?o:Zt(o,h))}function sG(o){return V0(Zt(o,h))}function oG(o,l){return G0(o,Zt(l,h))}var aG=vA(function(o,l){return function(d){return So(d,o,l)}}),lG=vA(function(o,l){return function(d){return So(o,d,l)}});function rh(o,l,d){var B=Me(l),C=zl(l,B);d==null&&!(he(l)&&(C.length||!B.length))&&(d=l,l=o,o=this,C=zl(l,Me(l)));var Q=!(he(d)&&"chain"in d)||!!d.chain,v=nr(o);return Yt(C,function(x){var k=l[x];o[x]=k,v&&(o.prototype[x]=function(){var G=this.__chain__;if(Q||G){var W=o(this.__wrapped__),J=W.__actions__=yt(this.__actions__);return J.push({func:k,args:arguments,thisArg:o}),W.__chain__=G,W}return k.apply(o,Hr([this.value()],arguments))})}),o}function cG(){return We._===this&&(We._=kR),this}function ih(){}function uG(o){return o=EA(o),vA(function(l){return W0(l,o)})}var fG=kd(fe),dG=kd(f0),hG=kd(od);function lE(o){return Vd(o)?ad(On(o)):G4(o)}function pG(o){return function(l){return o==null?e:Ci(o,l)}}var gG=dy(),BG=dy(!0);function sh(){return[]}function oh(){return!1}function mG(){return{}}function wG(){return""}function CG(){return!0}function yG(o,l){if(o=EA(o),o<1||o>rA)return[];var d=VA,B=At(o,VA);l=dA(l),o-=VA;for(var C=ud(B,l);++d<o;)l(d);return C}function EG(o){return yA(o)?fe(o,On):Ht(o)?[o]:yt(Sy(zA(o)))}function QG(o){var l=++LR;return zA(o)+l}var FG=tc(function(o,l){return o+l},0),bG=Nd("ceil"),UG=tc(function(o,l){return o/l},1),vG=Nd("floor");function IG(o){return o&&o.length?Yl(o,Ft,Ed):e}function SG(o,l){return o&&o.length?Yl(o,dA(l,2),Ed):e}function TG(o){return p0(o,Ft)}function _G(o,l){return p0(o,dA(l,2))}function xG(o){return o&&o.length?Yl(o,Ft,Ud):e}function OG(o,l){return o&&o.length?Yl(o,dA(l,2),Ud):e}var LG=tc(function(o,l){return o*l},1),HG=Nd("round"),kG=tc(function(o,l){return o-l},0);function NG(o){return o&&o.length?cd(o,Ft):0}function MG(o,l){return o&&o.length?cd(o,dA(l,2)):0}return y.after=sV,y.ary=Ry,y.assign=JV,y.assignIn=AE,y.assignInWith=pc,y.assignWith=XV,y.at=YV,y.before=Ky,y.bind=Yd,y.bindAll=AG,y.bindKey=Py,y.castArray=mV,y.chain=Ny,y.chunk=vK,y.compact=IK,y.concat=SK,y.cond=eG,y.conforms=tG,y.constant=th,y.countBy=NP,y.create=zV,y.curry=Vy,y.curryRight=Gy,y.debounce=Wy,y.defaults=qV,y.defaultsDeep=ZV,y.defer=oV,y.delay=aV,y.difference=TK,y.differenceBy=_K,y.differenceWith=xK,y.drop=OK,y.dropRight=LK,y.dropRightWhile=HK,y.dropWhile=kK,y.fill=NK,y.filter=DP,y.flatMap=PP,y.flatMapDeep=VP,y.flatMapDepth=GP,y.flatten=Oy,y.flattenDeep=MK,y.flattenDepth=DK,y.flip=lV,y.flow=rG,y.flowRight=iG,y.fromPairs=RK,y.functions=i2,y.functionsIn=s2,y.groupBy=WP,y.initial=PK,y.intersection=VK,y.intersectionBy=GK,y.intersectionWith=WK,y.invert=a2,y.invertBy=l2,y.invokeMap=JP,y.iteratee=nh,y.keyBy=XP,y.keys=Me,y.keysIn=Qt,y.map=lc,y.mapKeys=u2,y.mapValues=f2,y.matches=sG,y.matchesProperty=oG,y.memoize=uc,y.merge=d2,y.mergeWith=eE,y.method=aG,y.methodOf=lG,y.mixin=rh,y.negate=fc,y.nthArg=uG,y.omit=h2,y.omitBy=p2,y.once=cV,y.orderBy=YP,y.over=fG,y.overArgs=uV,y.overEvery=dG,y.overSome=hG,y.partial=zd,y.partialRight=$y,y.partition=zP,y.pick=g2,y.pickBy=tE,y.property=lE,y.propertyOf=pG,y.pull=YK,y.pullAll=Hy,y.pullAllBy=zK,y.pullAllWith=qK,y.pullAt=ZK,y.range=gG,y.rangeRight=BG,y.rearg=fV,y.reject=jP,y.remove=jK,y.rest=dV,y.reverse=Jd,y.sampleSize=eV,y.set=m2,y.setWith=w2,y.shuffle=tV,y.slice=AP,y.sortBy=iV,y.sortedUniq=oP,y.sortedUniqBy=aP,y.split=P2,y.spread=hV,y.tail=lP,y.take=cP,y.takeRight=uP,y.takeRightWhile=fP,y.takeWhile=dP,y.tap=IP,y.throttle=pV,y.thru=ac,y.toArray=qy,y.toPairs=nE,y.toPairsIn=rE,y.toPath=EG,y.toPlainObject=jy,y.transform=C2,y.unary=gV,y.union=hP,y.unionBy=pP,y.unionWith=gP,y.uniq=BP,y.uniqBy=mP,y.uniqWith=wP,y.unset=y2,y.unzip=Xd,y.unzipWith=ky,y.update=E2,y.updateWith=Q2,y.values=Es,y.valuesIn=F2,y.without=CP,y.words=oE,y.wrap=BV,y.xor=yP,y.xorBy=EP,y.xorWith=QP,y.zip=FP,y.zipObject=bP,y.zipObjectDeep=UP,y.zipWith=vP,y.entries=nE,y.entriesIn=rE,y.extend=AE,y.extendWith=pc,rh(y,y),y.add=FG,y.attempt=aE,y.camelCase=I2,y.capitalize=iE,y.ceil=bG,y.clamp=b2,y.clone=wV,y.cloneDeep=yV,y.cloneDeepWith=EV,y.cloneWith=CV,y.conformsTo=QV,y.deburr=sE,y.defaultTo=nG,y.divide=UG,y.endsWith=S2,y.eq=pn,y.escape=T2,y.escapeRegExp=_2,y.every=MP,y.find=RP,y.findIndex=_y,y.findKey=jV,y.findLast=KP,y.findLastIndex=xy,y.findLastKey=A2,y.floor=vG,y.forEach=My,y.forEachRight=Dy,y.forIn=e2,y.forInRight=t2,y.forOwn=n2,y.forOwnRight=r2,y.get=jd,y.gt=FV,y.gte=bV,y.has=o2,y.hasIn=Ah,y.head=Ly,y.identity=Ft,y.includes=$P,y.indexOf=KK,y.inRange=U2,y.invoke=c2,y.isArguments=Qi,y.isArray=yA,y.isArrayBuffer=UV,y.isArrayLike=Et,y.isArrayLikeObject=Ce,y.isBoolean=vV,y.isBuffer=Pr,y.isDate=IV,y.isElement=SV,y.isEmpty=TV,y.isEqual=_V,y.isEqualWith=xV,y.isError=qd,y.isFinite=OV,y.isFunction=nr,y.isInteger=Jy,y.isLength=dc,y.isMap=Xy,y.isMatch=LV,y.isMatchWith=HV,y.isNaN=kV,y.isNative=NV,y.isNil=DV,y.isNull=MV,y.isNumber=Yy,y.isObject=he,y.isObjectLike=ge,y.isPlainObject=Ho,y.isRegExp=Zd,y.isSafeInteger=RV,y.isSet=zy,y.isString=hc,y.isSymbol=Ht,y.isTypedArray=ys,y.isUndefined=KV,y.isWeakMap=PV,y.isWeakSet=VV,y.join=$K,y.kebabCase=x2,y.last=An,y.lastIndexOf=JK,y.lowerCase=O2,y.lowerFirst=L2,y.lt=GV,y.lte=WV,y.max=IG,y.maxBy=SG,y.mean=TG,y.meanBy=_G,y.min=xG,y.minBy=OG,y.stubArray=sh,y.stubFalse=oh,y.stubObject=mG,y.stubString=wG,y.stubTrue=CG,y.multiply=LG,y.nth=XK,y.noConflict=cG,y.noop=ih,y.now=cc,y.pad=H2,y.padEnd=k2,y.padStart=N2,y.parseInt=M2,y.random=v2,y.reduce=qP,y.reduceRight=ZP,y.repeat=D2,y.replace=R2,y.result=B2,y.round=HG,y.runInContext=L,y.sample=AV,y.size=nV,y.snakeCase=K2,y.some=rV,y.sortedIndex=eP,y.sortedIndexBy=tP,y.sortedIndexOf=nP,y.sortedLastIndex=rP,y.sortedLastIndexBy=iP,y.sortedLastIndexOf=sP,y.startCase=V2,y.startsWith=G2,y.subtract=kG,y.sum=NG,y.sumBy=MG,y.template=W2,y.times=yG,y.toFinite=rr,y.toInteger=EA,y.toLength=Zy,y.toLower=$2,y.toNumber=en,y.toSafeInteger=$V,y.toString=zA,y.toUpper=J2,y.trim=X2,y.trimEnd=Y2,y.trimStart=z2,y.truncate=q2,y.unescape=Z2,y.uniqueId=QG,y.upperCase=j2,y.upperFirst=eh,y.each=My,y.eachRight=Dy,y.first=Ly,rh(y,function(){var o={};return _n(y,function(l,d){ZA.call(y.prototype,d)||(o[d]=l)}),o}(),{chain:!1}),y.VERSION=n,Yt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(o){y[o].placeholder=y}),Yt(["drop","take"],function(o,l){OA.prototype[o]=function(d){d=d===e?1:Te(EA(d),0);var B=this.__filtered__&&!l?new OA(this):this.clone();return B.__filtered__?B.__takeCount__=At(d,B.__takeCount__):B.__views__.push({size:At(d,VA),type:o+(B.__dir__<0?"Right":"")}),B},OA.prototype[o+"Right"]=function(d){return this.reverse()[o](d).reverse()}}),Yt(["filter","map","takeWhile"],function(o,l){var d=l+1,B=d==LA||d==RA;OA.prototype[o]=function(C){var Q=this.clone();return Q.__iteratees__.push({iteratee:dA(C,3),type:d}),Q.__filtered__=Q.__filtered__||B,Q}}),Yt(["head","last"],function(o,l){var d="take"+(l?"Right":"");OA.prototype[o]=function(){return this[d](1).value()[0]}}),Yt(["initial","tail"],function(o,l){var d="drop"+(l?"":"Right");OA.prototype[o]=function(){return this.__filtered__?new OA(this):this[d](1)}}),OA.prototype.compact=function(){return this.filter(Ft)},OA.prototype.find=function(o){return this.filter(o).head()},OA.prototype.findLast=function(o){return this.reverse().find(o)},OA.prototype.invokeMap=vA(function(o,l){return typeof o=="function"?new OA(this):this.map(function(d){return So(d,o,l)})}),OA.prototype.reject=function(o){return this.filter(fc(dA(o)))},OA.prototype.slice=function(o,l){o=EA(o);var d=this;return d.__filtered__&&(o>0||l<0)?new OA(d):(o<0?d=d.takeRight(-o):o&&(d=d.drop(o)),l!==e&&(l=EA(l),d=l<0?d.dropRight(-l):d.take(l-o)),d)},OA.prototype.takeRightWhile=function(o){return this.reverse().takeWhile(o).reverse()},OA.prototype.toArray=function(){return this.take(VA)},_n(OA.prototype,function(o,l){var d=/^(?:filter|find|map|reject)|While$/.test(l),B=/^(?:head|last)$/.test(l),C=y[B?"take"+(l=="last"?"Right":""):l],Q=B||/^find/.test(l);C&&(y.prototype[l]=function(){var v=this.__wrapped__,x=B?[1]:arguments,k=v instanceof OA,G=x[0],W=k||yA(v),J=function(SA){var MA=C.apply(y,Hr([SA],x));return B&&q?MA[0]:MA};W&&d&&typeof G=="function"&&G.length!=1&&(k=W=!1);var q=this.__chain__,lA=!!this.__actions__.length,hA=Q&&!q,UA=k&&!lA;if(!Q&&W){v=UA?v:new OA(this);var pA=o.apply(v,x);return pA.__actions__.push({func:ac,args:[J],thisArg:e}),new qt(pA,q)}return hA&&UA?o.apply(this,x):(pA=this.thru(J),hA?B?pA.value()[0]:pA.value():pA)})}),Yt(["pop","push","shift","sort","splice","unshift"],function(o){var l=Ll[o],d=/^(?:push|sort|unshift)$/.test(o)?"tap":"thru",B=/^(?:pop|shift)$/.test(o);y.prototype[o]=function(){var C=arguments;if(B&&!this.__chain__){var Q=this.value();return l.apply(yA(Q)?Q:[],C)}return this[d](function(v){return l.apply(yA(v)?v:[],C)})}}),_n(OA.prototype,function(o,l){var d=y[l];if(d){var B=d.name+"";ZA.call(gs,B)||(gs[B]=[]),gs[B].push({name:l,func:d})}}),gs[ec(e,I).name]=[{name:"wrapper",func:e}],OA.prototype.clone=ZR,OA.prototype.reverse=jR,OA.prototype.value=A4,y.prototype.at=SP,y.prototype.chain=TP,y.prototype.commit=_P,y.prototype.next=xP,y.prototype.plant=LP,y.prototype.reverse=HP,y.prototype.toJSON=y.prototype.valueOf=y.prototype.value=kP,y.prototype.first=y.prototype.head,Eo&&(y.prototype[Eo]=OP),y},ds=_R();pi?((pi.exports=ds)._=ds,nd._=ds):We._=ds}).call(Ys)}(Oa,Oa.exports);var vm=Oa.exports;const c_="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABAAAAAQACAYAAAB/HSuDAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAHkJJREFUeNrs3Q1u8zaXgNHS8JK4/xVwTyzytgnS1HZsixR/7jlAgZkMBl+hT6Z1H1FyqrX+BQAAAOzt4hAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAgAAAAAA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CqUTNxlwBwxu8XAgAAwI56zdQeAQAAAIAAmgcAL/8DAACAx0a8DNAOAAAAAAjg1ADg7j8AAACMmZGbBgAv/wMAAIA5Z2yPAAAAAEAApwUA2/8BAABg3KzcLADY/g8AAABttZy1PQIAAAAAAZwSAGz/BwAAgLEzc5MAYPs/AAAA9NFq5vYIAAAAAATQPQDY/g8AAADjZ+fDAcD2fwAAAOirxeztEQAAAAAIoGsAsP0fAAAA5pihDwUA2/8BAADgHEdncI8AAAAAQADdAoDt/wAAADDPLG0HAAAAAATwdgDw/D8AAACc68gsbgcAAAAABNAlAHj+HwAAAOaaqe0AAAAAgADeDgD3ioS7/wAAAHBMj5n70vJfyPAPAAAAfSLA0Zk71epl/gAAALA77wAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAEAIcAAAAABAAAAABAAAAAAAAEAAAAAEAAAAAAAAQAAAAAQAAAAAAABAAAAABAAAAAAAABAAAAABAAAAAAAAEAAAAAEAAAAACAs13f+X/KOdfv/3spJTmUAAAA0EeLOfxy9D/03t8AAACA9sP/u3O4RwAAAAAggJcCgDv9AAAAMIdXZ3Q7AAAAACAAAQAAAAAEAAAAAEAAAADgb3bsWAAAAABgkL/1IPYWRgAgAAAAAAABAAAAAAgAAAAAQAAAAAAAAgAAAAAQAAAAACAAAAAAAAEAAAAACAAAAABAAAAAAAACAAAAABAAAAAAgAAAAAAABAAAAAAIAAAAAEAAAAAAAAIAAAAAEAAAAACAAAAAAAAEAAAAALAkwACd6iSVhnRezwAAAABJRU5ErkJggg==",u_={class:"camera__preview"},f_={key:0,class:"camera__bg-notification"},d_={class:p.normalizeClass("d-block light--text")},h_=["width","height"],p_=["width","height"],g_={key:1,class:"camera__countdown-overlay"},B_=["innerHTML","data-countdown"],m_=["src"],w_={class:"camera__controls"},C_={class:"container"},y_={class:"row"},E_={class:"col"},Q_={class:"btn-group"},F_={key:0},b_={key:1},U_={key:0,class:"camera__switch-cam"},v_={key:1,class:"base-camera__devices"},I_={name:"BaseCamera",inheritAttrs:!1};function S_(t){const A=atob(t.split(",")[1]),e=new ArrayBuffer(A.length),n=new Uint8Array(e);for(let r=0;r<A.length;r++)n[r]=A.charCodeAt(r);return new Blob([e],{type:"image/png"})}const T_=p.defineComponent({...I_,props:{modelValue:{type:null},enableSwitchCamera:{type:Boolean,default:!0},defaultRearCamera:{type:Boolean,default:!1},enableMirrorCamera:{type:Boolean,default:!1},enableGuide:{type:Boolean,default:!0},guideSrc:{type:String,default:()=>c_},countdown:{type:Number,default:3},ratio:{type:String,default:"16x9"},enableAudio:{type:Boolean,default:!1},enableSelectDevice:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{expose:A,emit:e}){const n={"1x1":{width:720,height:720},"4x3":{width:640,height:480},"3x4":{width:480,height:640},"16x9":{width:1280,height:720},"9x16":{width:720,height:1280}},r=t,i=e,s=p.ref(),a=p.ref(),c=p.ref(!1),u=p.ref([]),f=p.ref(),h=p.ref(),g=p.ref(!1),m=p.ref(!1),w=p.ref(0),F=p.ref(0),b=p.ref(),I=p.computed(()=>u.value.filter(rA=>rA.kind==="videoinput")),O=p.computed(()=>u.value.filter(rA=>rA.kind==="audioinput")),T=p.computed({get(){return f.value&&f.value.deviceId},set(rA){f.value=I.value.find(BA=>BA.deviceId===rA)}}),E=p.computed({get(){return h.value&&h.value.deviceId},set(rA){h.value=O.value.find(BA=>BA.deviceId===rA)}}),H=p.computed(()=>{const rA=f.value&&I.value.findIndex(BA=>BA.deviceId===f.value.deviceId);return r.enableMirrorCamera&&rA===0?"mirror-cam":""}),U=p.computed(()=>{const rA=f.value&&u.value.findIndex(BA=>BA.deviceId===f.value.deviceId);return H.value?`${H.value} mirror-device-${rA}`:""});function M(){w.value=n[r.ratio]?n[r.ratio].width:s.value.parentElement&&s.value.parentElement.clientWidth,F.value=n[r.ratio]?n[r.ratio].height:s.value.parentElement&&s.value.parentElement.clientHeight}const P=vm.debounce(()=>{M()},300,{trailing:!0,leading:!1});async function N(){const rA={audio:r.enableAudio&&{...h.value?{deviceId:h.value.deviceId}:{}},video:{...f.value?{deviceId:f.value.deviceId}:{},width:{ideal:n[r.ratio]?n[r.ratio].width:s.value.clientWidth},height:{ideal:n[r.ratio]?n[r.ratio].height:s.value.clientHeight}}};return navigator.mediaDevices.getUserMedia(rA).catch(BA=>{console.error(BA,"navigator.mediaDevices.getUserMedia: failed")})}function sA(){s.value&&s.value.srcObject&&s.value.srcObject.getTracks().forEach(BA=>{BA.stop()})}async function mA(){return s.value.srcObject=await N(),u.value=await navigator.mediaDevices.enumerateDevices(),{stream:s.value.srcObject,devices:u.value}}function nA(){g.value?(g.value=!1,m.value=!1,sA()):(g.value=!0,mA())}function cA(){u.value.length>1&&(sA(),f.value=f.value&&f.value.deviceId===I.value[0].deviceId?I.value[I.value.length-1]:I.value[0],mA())}async function LA(rA,BA){sA(),rA&&(!BA||rA.deviceId!==BA.deviceId)&&await mA()}p.watch(()=>f.value,LA),p.watch(()=>h.value,LA);function se(){r.countdown?(b.value=b.value?b.value-1:r.countdown,b.value?setTimeout(se,1e3):RA()):RA()}A({onCapture:se});function RA(){m.value=!0;const rA=a.value.getContext("2d"),BA=s.value,YA=BA&&BA.srcObject&&BA.srcObject.getTracks(),{width:VA,height:GA}=YA.length&&YA[0].getSettings(),DA=VA/GA;let qA=a.value.width,WA=qA/DA;WA<a.value.height&&(WA=a.value.height,qA=WA*DA);const ue=H.value?-1:1;rA.save(),rA.scale(ue,1),rA.drawImage(BA,qA>a.value.width?(a.value.width-qA)/2:0,WA>a.value.height?(a.value.height-WA)/2:0,qA*ue,WA),rA.restore();const Ne=a.value.toDataURL("image/png");console.log("dataUrl",Ne),HA(Ne)}function HA(rA){const BA=S_(rA);i("update:modelValue",{name:`cam-pic-${new Date().toISOString()}`,id:`cam-pic-${new Date().toISOString()}`,blob:BA,size:BA.size})}return p.onMounted(async()=>{sA(),await mA(),f.value=I.value[0],r.enableAudio&&(h.value=O.value[0]),navigator.mediaDevices.addEventListener("devicechange",async rA=>{await mA()}),r.defaultRearCamera&&cA(),nA(),window.addEventListener("resize",P),M(),await p.nextTick(),c.value=!0}),p.onBeforeUnmount(()=>{g.value=!1,m.value=!1,sA(),window.removeEventListener("resize",P)}),(rA,BA)=>{const YA=p.resolveComponent("loading-spinner"),VA=p.resolveComponent("svg-icon"),GA=p.resolveComponent("input-dropdown");return p.openBlock(),p.createElementBlock("div",{class:p.normalizeClass(["camera",U.value])},[p.createElementVNode("div",u_,[c.value?p.createCommentVNode("",!0):(p.openBlock(),p.createElementBlock("div",f_,[p.createVNode(YA,{color:"#000"},{default:p.withCtx(()=>[p.createElementVNode("span",d_,p.toDisplayString(rA.$t("camera.waitForCameraNotification")),1)]),_:1})])),p.withDirectives(p.createElementVNode("video",{ref_key:"camera",ref:s,class:"camera__video",width:w.value,height:F.value,autoplay:"",playsinline:""},null,8,h_),[[p.vShow,c.value]]),p.withDirectives(p.createElementVNode("canvas",{ref_key:"canvas",ref:a,class:"camera__canvas",width:w.value,height:F.value},null,8,p_),[[p.vShow,m.value]]),b.value?(p.openBlock(),p.createElementBlock("div",g_,[(p.openBlock(),p.createElementBlock("p",{class:"countdown",key:b.value,innerHTML:b.value,"data-countdown":b.value},null,8,B_))])):p.createCommentVNode("",!0),t.enableGuide&&g.value&&c.value?(p.openBlock(),p.createElementBlock("img",{key:2,class:"camera__guide",src:t.guideSrc},null,8,m_)):p.createCommentVNode("",!0)]),p.createElementVNode("div",w_,[p.createElementVNode("div",C_,[p.createElementVNode("div",y_,[p.createElementVNode("div",E_,[p.createElementVNode("div",Q_,[p.createElementVNode("button",{type:"button",class:"camera__toggle btn btn-primary",onClick:nA},[g.value?(p.openBlock(),p.createElementBlock("span",b_,p.toDisplayString(rA.$t("common.pause")),1)):(p.openBlock(),p.createElementBlock("span",F_,p.toDisplayString(rA.$t("common.play")),1))]),p.createElementVNode("button",{type:"button",class:"camera__capture btn btn-primary",onClick:se},p.toDisplayString(rA.$t("camera.capture")),1)])])])])]),I.value&&I.value.length>1?(p.openBlock(),p.createElementBlock("div",U_,[p.createElementVNode("button",{class:"btn",onClick:p.withModifiers(cA,["prevent"])},[p.createVNode(VA,{symbol:"switch-camera"})])])):p.createCommentVNode("",!0),t.enableSelectDevice?(p.openBlock(),p.createElementBlock("div",v_,[O.value.length&&h.value?(p.openBlock(),p.createBlock(GA,{key:0,modelValue:E.value,"onUpdate:modelValue":BA[0]||(BA[0]=DA=>E.value=DA),options:O.value.map((DA,qA)=>({text:DA.label||`Microphone ${qA+1}`,value:DA.deviceId}))},null,8,["modelValue","options"])):p.createCommentVNode("",!0),I.value.length?(p.openBlock(),p.createBlock(GA,{key:1,modelValue:T.value,"onUpdate:modelValue":BA[1]||(BA[1]=DA=>T.value=DA),options:I.value.map((DA,qA)=>({text:DA.label||`Camera ${qA+1}`,value:DA.deviceId}))},null,8,["modelValue","options"])):p.createCommentVNode("",!0)])):p.createCommentVNode("",!0)],2)}}}),o3="",__=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,x_=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,O_=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function L_(t,A){if(t==="__proto__"||t==="constructor"&&A&&typeof A=="object"&&"prototype"in A){H_(t);return}return A}function H_(t){console.warn(`[destr] Dropping "${t}" key to prevent prototype pollution.`)}function k_(t,A={}){if(typeof t!="string")return t;const e=t.trim();if(t[0]==='"'&&t.endsWith('"')&&!t.includes("\\"))return e.slice(1,-1);if(e.length<=9){const n=e.toLowerCase();if(n==="true")return!0;if(n==="false")return!1;if(n==="undefined")return;if(n==="null")return null;if(n==="nan")return Number.NaN;if(n==="infinity")return Number.POSITIVE_INFINITY;if(n==="-infinity")return Number.NEGATIVE_INFINITY}if(!O_.test(t)){if(A.strict)throw new SyntaxError("[destr] Invalid JSON");return t}try{if(__.test(t)||x_.test(t)){if(A.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(t,L_)}return JSON.parse(t)}catch(n){if(A.strict)throw n;return t}}const N_=/#/g,M_=/&/g,D_=/\//g,R_=/=/g,Ju=/\+/g,K_=/%5e/gi,P_=/%60/gi,V_=/%7c/gi,G_=/%20/gi;function W_(t){return encodeURI(""+t).replace(V_,"|")}function Xu(t){return W_(typeof t=="string"?t:JSON.stringify(t)).replace(Ju,"%2B").replace(G_,"+").replace(N_,"%23").replace(M_,"%26").replace(P_,"`").replace(K_,"^").replace(D_,"%2F")}function Yu(t){return Xu(t).replace(R_,"%3D")}function Im(t=""){try{return decodeURIComponent(""+t)}catch{return""+t}}function $_(t){return Im(t.replace(Ju," "))}function J_(t){return Im(t.replace(Ju," "))}function X_(t=""){const A={};t[0]==="?"&&(t=t.slice(1));for(const e of t.split("&")){const n=e.match(/([^=]+)=?(.*)/)||[];if(n.length<2)continue;const r=$_(n[1]);if(r==="__proto__"||r==="constructor")continue;const i=J_(n[2]||"");A[r]===void 0?A[r]=i:Array.isArray(A[r])?A[r].push(i):A[r]=[A[r],i]}return A}function Y_(t,A){return(typeof A=="number"||typeof A=="boolean")&&(A=String(A)),A?Array.isArray(A)?A.map(e=>`${Yu(t)}=${Xu(e)}`).join("&"):`${Yu(t)}=${Xu(A)}`:Yu(t)}function z_(t){return Object.keys(t).filter(A=>t[A]!==void 0).map(A=>Y_(A,t[A])).filter(Boolean).join("&")}const q_=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,Z_=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,j_=/^([/\\]\s*){2,}[^/\\]/,Ax=/\/$|\/\?|\/#/,ex=/^\.?\//;function Sm(t,A={}){return typeof A=="boolean"&&(A={acceptRelative:A}),A.strict?q_.test(t):Z_.test(t)||(A.acceptRelative?j_.test(t):!1)}function zu(t="",A){return A?Ax.test(t):t.endsWith("/")}function tx(t="",A){if(!A)return(zu(t)?t.slice(0,-1):t)||"/";if(!zu(t,!0))return t||"/";let e=t,n="";const r=t.indexOf("#");r>=0&&(e=t.slice(0,r),n=t.slice(r));const[i,...s]=e.split("?");return((i.endsWith("/")?i.slice(0,-1):i)||"/")+(s.length>0?`?${s.join("?")}`:"")+n}function nx(t="",A){if(!A)return t.endsWith("/")?t:t+"/";if(zu(t,!0))return t||"/";let e=t,n="";const r=t.indexOf("#");if(r>=0&&(e=t.slice(0,r),n=t.slice(r),!e))return n;const[i,...s]=e.split("?");return i+"/"+(s.length>0?`?${s.join("?")}`:"")+n}function rx(t,A){if(sx(A)||Sm(t))return t;const e=tx(A);return t.startsWith(e)?t:ax(e,t)}function ix(t,A){const e=_m(t),n={...X_(e.search),...A};return e.search=z_(n),lx(e)}function sx(t){return!t||t==="/"}function ox(t){return t&&t!=="/"}function ax(t,...A){let e=t||"";for(const n of A.filter(r=>ox(r)))if(e){const r=n.replace(ex,"");e=nx(e)+r}else e=n;return e}const Tm=Symbol.for("ufo:protocolRelative");function _m(t="",A){const e=t.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(e){const[,h,g=""]=e;return{protocol:h.toLowerCase(),pathname:g,href:h+g,auth:"",host:"",search:"",hash:""}}if(!Sm(t,{acceptRelative:!0}))return A?_m(A+t):xm(t);const[,n="",r,i=""]=t.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[],[,s="",a=""]=i.match(/([^#/?]*)(.*)?/)||[],{pathname:c,search:u,hash:f}=xm(a.replace(/\/(?=[A-Za-z]:)/,""));return{protocol:n.toLowerCase(),auth:r?r.slice(0,Math.max(0,r.length-1)):"",host:s,pathname:c,search:u,hash:f,[Tm]:!n}}function xm(t=""){const[A="",e="",n=""]=(t.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:A,search:e,hash:n}}function lx(t){const A=t.pathname||"",e=t.search?(t.search.startsWith("?")?"":"?")+t.search:"",n=t.hash||"",r=t.auth?t.auth+"@":"",i=t.host||"";return(t.protocol||t[Tm]?(t.protocol||"")+"//":"")+r+i+A+e+n}class cx extends Error{constructor(A,e){super(A,e),this.name="FetchError",e!=null&&e.cause&&!this.cause&&(this.cause=e.cause)}}function ux(t){var c,u,f,h,g;const A=((c=t.error)==null?void 0:c.message)||((u=t.error)==null?void 0:u.toString())||"",e=((f=t.request)==null?void 0:f.method)||((h=t.options)==null?void 0:h.method)||"GET",n=((g=t.request)==null?void 0:g.url)||String(t.request)||"/",r=`[${e}] ${JSON.stringify(n)}`,i=t.response?`${t.response.status} ${t.response.statusText}`:"<no response>",s=`${r}: ${i}${A?` ${A}`:""}`,a=new cx(s,t.error?{cause:t.error}:void 0);for(const m of["request","options","response"])Object.defineProperty(a,m,{get(){return t[m]}});for(const[m,w]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,m,{get(){return t.response&&t.response[w]}});return a}const fx=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function Om(t="GET"){return fx.has(t.toUpperCase())}function dx(t){if(t===void 0)return!1;const A=typeof t;return A==="string"||A==="number"||A==="boolean"||A===null?!0:A!=="object"?!1:Array.isArray(t)?!0:t.buffer?!1:t.constructor&&t.constructor.name==="Object"||typeof t.toJSON=="function"}const hx=new Set(["image/svg","application/xml","application/xhtml","application/html"]),px=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function gx(t=""){if(!t)return"json";const A=t.split(";").shift()||"";return px.test(A)?"json":hx.has(A)||A.startsWith("text/")?"text":"blob"}function Bx(t,A,e=globalThis.Headers){const n={...A,...t};if(A!=null&&A.params&&(t!=null&&t.params)&&(n.params={...A==null?void 0:A.params,...t==null?void 0:t.params}),A!=null&&A.query&&(t!=null&&t.query)&&(n.query={...A==null?void 0:A.query,...t==null?void 0:t.query}),A!=null&&A.headers&&(t!=null&&t.headers)){n.headers=new e((A==null?void 0:A.headers)||{});for(const[r,i]of new e((t==null?void 0:t.headers)||{}))n.headers.set(r,i)}return n}const mx=new Set([408,409,425,429,500,502,503,504]),wx=new Set([101,204,205,304]);function Lm(t={}){const{fetch:A=globalThis.fetch,Headers:e=globalThis.Headers,AbortController:n=globalThis.AbortController}=t;async function r(a){const c=a.error&&a.error.name==="AbortError"&&!a.options.timeout||!1;if(a.options.retry!==!1&&!c){let f;typeof a.options.retry=="number"?f=a.options.retry:f=Om(a.options.method)?0:1;const h=a.response&&a.response.status||500;if(f>0&&(Array.isArray(a.options.retryStatusCodes)?a.options.retryStatusCodes.includes(h):mx.has(h))){const g=a.options.retryDelay||0;return g>0&&await new Promise(m=>setTimeout(m,g)),i(a.request,{...a.options,retry:f-1})}}const u=ux(a);throw Error.captureStackTrace&&Error.captureStackTrace(u,i),u}const i=async function(c,u={}){var m;const f={request:c,options:Bx(u,t.defaults,e),response:void 0,error:void 0};f.options.method=(m=f.options.method)==null?void 0:m.toUpperCase(),f.options.onRequest&&await f.options.onRequest(f),typeof f.request=="string"&&(f.options.baseURL&&(f.request=rx(f.request,f.options.baseURL)),(f.options.query||f.options.params)&&(f.request=ix(f.request,{...f.options.params,...f.options.query}))),f.options.body&&Om(f.options.method)&&(dx(f.options.body)?(f.options.body=typeof f.options.body=="string"?f.options.body:JSON.stringify(f.options.body),f.options.headers=new e(f.options.headers||{}),f.options.headers.has("content-type")||f.options.headers.set("content-type","application/json"),f.options.headers.has("accept")||f.options.headers.set("accept","application/json")):("pipeTo"in f.options.body&&typeof f.options.body.pipeTo=="function"||typeof f.options.body.pipe=="function")&&("duplex"in f.options||(f.options.duplex="half")));let h;if(!f.options.signal&&f.options.timeout){const w=new n;h=setTimeout(()=>w.abort(),f.options.timeout),f.options.signal=w.signal}try{f.response=await A(f.request,f.options)}catch(w){return f.error=w,f.options.onRequestError&&await f.options.onRequestError(f),await r(f)}finally{h&&clearTimeout(h)}if(f.response.body&&!wx.has(f.response.status)&&f.options.method!=="HEAD"){const w=(f.options.parseResponse?"json":f.options.responseType)||gx(f.response.headers.get("content-type")||"");switch(w){case"json":{const F=await f.response.text(),b=f.options.parseResponse||k_;f.response._data=b(F);break}case"stream":{f.response._data=f.response.body;break}default:f.response._data=await f.response[w]()}}return f.options.onResponse&&await f.options.onResponse(f),!f.options.ignoreResponseError&&f.response.status>=400&&f.response.status<600?(f.options.onResponseError&&await f.options.onResponseError(f),await r(f)):f.response},s=async function(c,u){return(await i(c,u))._data};return s.raw=i,s.native=(...a)=>A(...a),s.create=(a={})=>Lm({...t,defaults:{...t.defaults,...a}}),s}const qu=function(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}(),Cx=qu.fetch||(()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!"))),yx=qu.Headers,Ex=qu.AbortController,Qx=Lm({fetch:Cx,Headers:yx,AbortController:Ex}),Fx={class:"file-upload"},bx=["src"],Ux=["onClick"],vx=["onClick"],Ix=["for"],Sx=["innerHTML"],Tx={key:0,class:"file-upload__loading-spinner"},_x=[p.createElementVNode("span",{class:"spinner-border",role:"status"},[p.createElementVNode("span",{class:"visually-hidden"},"Loading...")],-1)];async function xx(t){return await new Promise(A=>{let e=new FileReader;e.onload=()=>A(e.result),e.readAsDataURL(t)})}const Ox=p.defineComponent({__name:"file-upload",props:{modelValue:{type:Array,default:[]},src:{type:String},name:{type:String,default:()=>Be()},id:{type:String,default:()=>Be()},label:{type:String,default:"Select file"},placeholder:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},pattern:{type:String,default:null},multiple:{type:Boolean,default:!1},accept:{type:String,default:"image/*"},endpoint:{type:String,default:""},toDataUrl:{type:Boolean,default:!0},authToken:{type:String,default:""},customFetch:null,baseResponsePath:{type:String,default:"/media"},enablePreview:{type:Boolean,default:!0},previewWidth:{type:Number,default:0}},emits:["update:modelValue","update:src"],setup(t,{emit:A}){const e=t,n=A,r=p.ref([]),i=p.ref([]),s=p.ref(!1),a=p.computed(()=>e.modelValue.length?e.modelValue:e.src?[{type:"",src:e.src}]:i.value);p.watch(()=>r.value,async f=>{i.value=await Promise.all(f.map(async h=>({src:e.toDataUrl?await xx(h):await u(h),type:h.type})))},{deep:!0}),p.watch(()=>i.value,async f=>{const h=e.multiple?f:f[0];n("update:modelValue",h),e.multiple||n("update:src",f[0]&&f[0].src)},{deep:!0});function c(f){r.value.splice(f,1),(!i.value||!i.value.length)&&n("update:src","")}async function u(f){const h=new FormData;h.append("file",f),s.value=!0;const m=await(e.customFetch||Qx)(e.endpoint,{method:"POST",...e.customFetch?{}:{headers:{Accept:"application/json",...e.authToken?{Authorization:`Bearer ${e.authToken}`}:{}}},body:h}).catch(w=>{console.error("Error",w)});return s.value=!1,`${e.baseResponsePath}/${m.path}`}return(f,h)=>{const g=p.resolveComponent("svg-icon"),m=p.resolveComponent("input-file");return p.openBlock(),p.createElementBlock("div",Fx,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(a.value,(w,F)=>(p.openBlock(),p.createElementBlock("div",{key:w.src,class:p.normalizeClass(t.enablePreview?"file-upload__thumbnail":"file-upload__reset")},[t.enablePreview?(p.openBlock(),p.createElementBlock(p.Fragment,{key:0},[p.createElementVNode("img",{src:`${w.src}${t.previewWidth?`?width=${t.previewWidth}`:""}`,class:"img-thumbnail rounded"},null,8,bx),p.createElementVNode("button",{onClick:p.withModifiers(b=>c(F),["prevent"]),class:"btn btn--close"},[p.createVNode(g,{symbol:"x"})],8,Ux)],64)):(p.openBlock(),p.createElementBlock("button",{key:1,onClick:p.withModifiers(b=>c(F),["prevent"]),class:"btn btn--close btn-outline-dark"},[p.createVNode(g,{symbol:"x"})],8,vx))],2))),128)),p.createVNode(m,{modelValue:r.value,"onUpdate:modelValue":h[0]||(h[0]=w=>r.value=w),id:t.id,name:t.name,accept:t.accept,class:"d-none"},null,8,["modelValue","id","name","accept"]),p.createElementVNode("label",{for:t.id,class:"file-upload__label"},[p.renderSlot(f.$slots,"button",{},()=>[p.createElementVNode("span",{class:"btn btn-outline-dark",innerHTML:t.label},null,8,Sx)]),p.createVNode(p.Transition,{name:"fade"},{default:p.withCtx(()=>[s.value?(p.openBlock(),p.createElementBlock("span",Tx,_x)):p.createCommentVNode("",!0)]),_:1})],8,Ix)])}}}),l3="",Lx={class:"upload-group"},Hx=["innerHTML"],kx={class:"row"},Nx={class:"img-container"},Mx=["src"],Dx=["onClick"],Rx={class:"col-auto mb-4"},Kx={role:"button",class:"img-thumbnail d-flex justify-content-center align-items-center"},Hm=p.defineComponent({__name:"upload-group",props:{modelValue:{type:Array,default:()=>[]},name:{type:String,default:()=>Be()},id:{type:String,default:()=>Be()},label:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},accept:{type:String,default:"image/*"},endpoint:{type:String,default:""},authToken:{type:String,default:""},customFetch:null,baseResponsePath:{type:String,default:"/media"},previewWidth:{type:Number,default:0}},emits:["update:modelValue"],setup(t,{emit:A}){const e=t,n=A,r=p.ref([...e.modelValue]);function i(s){r.value.splice(s,1),n("update:modelValue",r.value)}return p.watch(r.value,(s,a)=>{n("update:modelValue",s)}),(s,a)=>{const c=p.resolveComponent("svg-icon"),u=p.resolveComponent("file-upload");return p.openBlock(),p.createElementBlock("div",Lx,[p.createElementVNode("label",{innerHTML:t.label},null,8,Hx),p.createElementVNode("div",kx,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(r.value,(f,h)=>(p.openBlock(),p.createElementBlock("div",{key:f,class:"col-auto mb-4"},[p.createElementVNode("div",Nx,[p.createElementVNode("img",{src:`${f}${t.previewWidth?`?width=${t.previewWidth}`:""}`,class:"img-thumbnail"},null,8,Mx),p.createElementVNode("button",{onClick:p.withModifiers(g=>i(h),["prevent"]),class:"btn btn--close"},[p.createVNode(c,{symbol:"x"})],8,Dx)])]))),128)),p.createElementVNode("div",Rx,[p.createVNode(u,{src:r.value[r.value.length],"onUpdate:src":a[0]||(a[0]=f=>r.value[r.value.length]=f),multiple:!1,endpoint:t.endpoint,"custom-fetch":t.customFetch,"to-data-url":!t.endpoint,"auth-token":t.authToken,disabled:t.disabled,"base-response-path":t.baseResponsePath},{button:p.withCtx(()=>[p.createElementVNode("span",Kx,[p.createVNode(c,{symbol:"plus"})])]),_:1},8,["src","endpoint","custom-fetch","to-data-url","auth-token","disabled","base-response-path"])])])])}}}),c3="",Px={class:"upload-group"},Vx=["innerHTML"],Gx=p.defineComponent({__name:"asset-uploader",props:{modelValue:{type:Array,default:()=>[]},name:{type:String,default:()=>Be()},id:{type:String,default:()=>Be()},type:{type:String,default:""},label:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},accept:{type:String,default:"image/*"},endpoint:{type:String,default:""},authToken:{type:String,default:""},customFetch:null,mediaTypeMap:{type:Object,default:()=>({svg:"Svg",png:"Image",jpg:"Image"})},baseResponsePath:{type:String,default:"/media"},previewWidth:{type:Number,default:0}},emits:["update:modelValue"],setup(t,{emit:A}){const e=t,n=A,r=p.computed({get(){return e.modelValue.map(i=>i.src)},set(i){n("update:modelValue",i.map((s,a)=>({mediaType:e.modelValue[a]&&e.modelValue[a].mediaType||s.includes("data:image")?s.includes("data:image/svg")?"Svg":"Image":e.mediaTypeMap[s.split(".")[1]],src:s,name:e.modelValue[a]&&e.modelValue[a].name||`${e.name}-${a}`,...e.type?{type:e.type}:{}})))}});return(i,s)=>(p.openBlock(),p.createElementBlock("div",Px,[p.createElementVNode("label",{innerHTML:t.label},null,8,Vx),p.createVNode(Hm,{modelValue:r.value,"onUpdate:modelValue":s[0]||(s[0]=a=>r.value=a),endpoint:t.endpoint,"custom-fetch":t.customFetch,"auth-token":t.authToken,disabled:t.disabled,"preview-width":t.previewWidth,"base-response-path":t.baseResponsePath},null,8,["modelValue","endpoint","custom-fetch","auth-token","disabled","preview-width","base-response-path"])]))}}),u3="",Wx={class:"carousel d-flex"},$x=["onClick"],km=p.defineComponent({__name:"base-carousel",props:{modelValue:{type:Number,default:-1},config:{type:Object,default:null},messages:{type:Object,default:{}},items:{type:Array,default:[]},navigation:{type:Boolean,default:!0}},emits:["update:modelValue","select"],setup(t,{emit:A}){const e=A,n=p.ref(),r=p.ref();function i(){n.value.scrollTo({top:0,left:n.value.scrollLeft-n.value.clientWidth>0?n.value.scrollLeft-n.value.clientWidth:0,behavior:"smooth"})}function s(){console.log(n.value.clientWidth,n.value.scrollLeft),n.value.scrollTo({top:0,left:n.value.scrollLeft-n.value.clientWidth<=r.value.clientWidth?n.value.scrollLeft+n.value.clientWidth:r.value.clientWidth,behavior:"smooth"})}function a(c){e("update:modelValue",c)}return(c,u)=>{const f=p.resolveComponent("svg-icon");return p.openBlock(),p.createElementBlock("div",Wx,[t.navigation?(p.openBlock(),p.createElementBlock("button",{key:0,class:"carousel__control btn btn-link text-light",type:"button",onClick:p.withModifiers(i,["prevent","stop"])},[p.createVNode(f,{symbol:"chevron-left"})])):p.createCommentVNode("",!0),p.createElementVNode("div",{ref_key:"viewport",ref:n,class:"carousel__viewport flex-grow-1"},[p.createElementVNode("div",{ref_key:"track",ref:r,class:"carousel__track d-flex justify-center align-items-center"},[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(t.items,(h,g)=>p.renderSlot(c.$slots,"carousel-item",{key:h.src,item:h,index:g},()=>[p.createElementVNode("div",{class:p.normalizeClass(["carousel__item",g===t.modelValue?"selected":""]),onClick:m=>a(g)},p.toDisplayString(h),11,$x)])),128))],512)],512),t.navigation?(p.openBlock(),p.createElementBlock("button",{key:1,class:"carousel__control btn btn-link text-light",type:"button",onClick:p.withModifiers(s,["prevent","stop"])},[p.createVNode(f,{symbol:"chevron-right"})])):p.createCommentVNode("",!0)])}}}),f3="",Jx={class:"media-thumbnails"},Xx=["onClick"],Yx={class:"img-container ratio ratio-1x1"},zx=["src"],qx=p.defineComponent({__name:"media-thumbnails",props:{modelValue:{default:null},config:{type:Object,default:null},messages:{type:Object,default:{}},assets:{type:Array,default:[]}},emits:["update:modelValue","select"],setup(t,{emit:A}){const e=A,n=p.ref(-1);function r(i){e("update:modelValue",i),e("select",i)}return(i,s)=>(p.openBlock(),p.createElementBlock("div",Jx,[p.createVNode(km,{items:t.assets},{"carousel-item":p.withCtx(a=>[p.createElementVNode("a",{role:"button",class:"carousel__item media-thumbnails__thumbnail",onClick:c=>r(a.index)},[p.createElementVNode("div",Yx,[p.createElementVNode("img",{src:a.item.thumbnail||a.item.src,class:p.normalizeClass(["img-fluid",n.value===a.index?"is-active":""])},null,10,zx)])],8,Xx)]),_:1},8,["items"])]))}}),d3="",Zx={class:"progress-steps"},jx={class:"progress-steps__list"},AO={class:"progress-step"},eO=["checked","id","value","disabled","read-only","required","onChange"],tO=["for"],nO=["innerHTML"],rO=["for"],iO=["innerHTML"],sO=p.defineComponent({__name:"progress-steps",props:{modelValue:{type:Number,default:0},progress:{type:Number,default:0},steps:{type:Array},label:{type:String,default:""},reveal:{type:Boolean,default:!1}},emits:["update:modelValue","update:progress"],setup(t,{emit:A}){const e=t,n=A;function r(i){n("update:modelValue",i),i>=e.progress&&n("update:progress",i)}return(i,s)=>(p.openBlock(),p.createElementBlock("div",Zx,[p.createElementVNode("ul",jx,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(t.steps,(a,c)=>(p.openBlock(),p.createElementBlock("li",{key:c,class:p.normalizeClass(["progress-steps__step",{"progress-steps__step--disabled":c>t.progress+(t.reveal?1:0),"progress-steps__step--active":c===(t.modelValue||0)}])},[p.renderSlot(i.$slots,"step",{},()=>[p.createElementVNode("div",AO,[p.createElementVNode("input",{type:"radio",checked:c<=(t.progress||0),id:`step-${c}`,name:"step",class:"form-check-input",value:a.value,disabled:a.disabled||c>t.progress+(t.reveal?1:0),"read-only":a.readOnly,required:a.required,onChange:u=>r(c)},null,40,eO),p.createElementVNode("label",{for:`step-${c}`},[p.renderSlot(i.$slots,"button",{step:a},()=>[p.createElementVNode("span",{class:"btn rounded-circle",innerHTML:a.text},null,8,nO)])],8,tO),p.createElementVNode("label",{for:`step-${c}`},[p.renderSlot(i.$slots,"label",{step:a},()=>[p.createElementVNode("span",{class:"form-check-label",innerHTML:a.label},null,8,iO)])],8,rO)])])],2))),128))])]))}}),h3="";/*!
|
|
162
|
+
}`;var UA=aE(function(){return JA(Q,lA+"return "+J).apply(e,v)});if(UA.source=J,qd(UA))throw UA;return UA}function $2(o){return zA(o).toLowerCase()}function J2(o){return zA(o).toUpperCase()}function X2(o,l,d){if(o=zA(o),o&&(d||l===e))return B0(o);if(!o||!(l=Lt(l)))return o;var B=dn(o),C=dn(l),Q=m0(B,C),v=w0(B,C)+1;return Kr(B,Q,v).join("")}function Y2(o,l,d){if(o=zA(o),o&&(d||l===e))return o.slice(0,y0(o)+1);if(!o||!(l=Lt(l)))return o;var B=dn(o),C=w0(B,dn(l))+1;return Kr(B,0,C).join("")}function z2(o,l,d){if(o=zA(o),o&&(d||l===e))return o.replace(qf,"");if(!o||!(l=Lt(l)))return o;var B=dn(o),C=m0(B,dn(l));return Kr(B,C).join("")}function q2(o,l){var d=sA,B=mA;if(he(l)){var C="separator"in l?l.separator:C;d="length"in l?EA(l.length):d,B="omission"in l?Lt(l.omission):B}o=zA(o);var Q=o.length;if(us(o)){var v=dn(o);Q=v.length}if(d>=Q)return o;var x=d-fs(B);if(x<1)return B;var k=v?Kr(v,0,x).join(""):o.slice(0,x);if(C===e)return k+B;if(v&&(x+=k.length-x),Zd(C)){if(o.slice(x).search(C)){var G,W=k;for(C.global||(C=hd(C.source,zA(DC.exec(C))+"g")),C.lastIndex=0;G=C.exec(W);)var J=G.index;k=k.slice(0,J===e?x:J)}}else if(o.indexOf(Lt(C),x)!=x){var q=k.lastIndexOf(C);q>-1&&(k=k.slice(0,q))}return k+B}function Z2(o){return o=zA(o),o&&zn.test(o)?o.replace(Yn,vR):o}var j2=ws(function(o,l,d){return o+(d?" ":"")+l.toUpperCase()}),eh=ly("toUpperCase");function oE(o,l,d){return o=zA(o),l=d?e:l,l===e?ER(o)?TR(o):dR(o):o.match(l)||[]}var aE=vA(function(o,l){try{return xt(o,e,l)}catch(d){return qd(d)?d:new wA(d)}}),AG=er(function(o,l){return Yt(l,function(d){d=On(d),jn(o,d,Yd(o[d],o))}),o});function eG(o){var l=o==null?0:o.length,d=dA();return o=l?fe(o,function(B){if(typeof B[1]!="function")throw new zt(s);return[d(B[0]),B[1]]}):[],vA(function(B){for(var C=-1;++C<l;){var Q=o[C];if(xt(Q[0],this,B))return xt(Q[1],this,B)}})}function tG(o){return v4(Zt(o,h))}function th(o){return function(){return o}}function nG(o,l){return o==null||o!==o?l:o}var rG=uy(),iG=uy(!0);function Ft(o){return o}function nh(o){return K0(typeof o=="function"?o:Zt(o,h))}function sG(o){return V0(Zt(o,h))}function oG(o,l){return G0(o,Zt(l,h))}var aG=vA(function(o,l){return function(d){return So(d,o,l)}}),lG=vA(function(o,l){return function(d){return So(o,d,l)}});function rh(o,l,d){var B=Me(l),C=zl(l,B);d==null&&!(he(l)&&(C.length||!B.length))&&(d=l,l=o,o=this,C=zl(l,Me(l)));var Q=!(he(d)&&"chain"in d)||!!d.chain,v=nr(o);return Yt(C,function(x){var k=l[x];o[x]=k,v&&(o.prototype[x]=function(){var G=this.__chain__;if(Q||G){var W=o(this.__wrapped__),J=W.__actions__=yt(this.__actions__);return J.push({func:k,args:arguments,thisArg:o}),W.__chain__=G,W}return k.apply(o,Hr([this.value()],arguments))})}),o}function cG(){return We._===this&&(We._=kR),this}function ih(){}function uG(o){return o=EA(o),vA(function(l){return W0(l,o)})}var fG=kd(fe),dG=kd(f0),hG=kd(od);function lE(o){return Vd(o)?ad(On(o)):G4(o)}function pG(o){return function(l){return o==null?e:Ci(o,l)}}var gG=dy(),BG=dy(!0);function sh(){return[]}function oh(){return!1}function mG(){return{}}function wG(){return""}function CG(){return!0}function yG(o,l){if(o=EA(o),o<1||o>rA)return[];var d=VA,B=At(o,VA);l=dA(l),o-=VA;for(var C=ud(B,l);++d<o;)l(d);return C}function EG(o){return yA(o)?fe(o,On):Ht(o)?[o]:yt(Sy(zA(o)))}function QG(o){var l=++LR;return zA(o)+l}var FG=tc(function(o,l){return o+l},0),bG=Nd("ceil"),UG=tc(function(o,l){return o/l},1),vG=Nd("floor");function IG(o){return o&&o.length?Yl(o,Ft,Ed):e}function SG(o,l){return o&&o.length?Yl(o,dA(l,2),Ed):e}function TG(o){return p0(o,Ft)}function _G(o,l){return p0(o,dA(l,2))}function xG(o){return o&&o.length?Yl(o,Ft,Ud):e}function OG(o,l){return o&&o.length?Yl(o,dA(l,2),Ud):e}var LG=tc(function(o,l){return o*l},1),HG=Nd("round"),kG=tc(function(o,l){return o-l},0);function NG(o){return o&&o.length?cd(o,Ft):0}function MG(o,l){return o&&o.length?cd(o,dA(l,2)):0}return y.after=sV,y.ary=Ry,y.assign=JV,y.assignIn=AE,y.assignInWith=pc,y.assignWith=XV,y.at=YV,y.before=Ky,y.bind=Yd,y.bindAll=AG,y.bindKey=Py,y.castArray=mV,y.chain=Ny,y.chunk=vK,y.compact=IK,y.concat=SK,y.cond=eG,y.conforms=tG,y.constant=th,y.countBy=NP,y.create=zV,y.curry=Vy,y.curryRight=Gy,y.debounce=Wy,y.defaults=qV,y.defaultsDeep=ZV,y.defer=oV,y.delay=aV,y.difference=TK,y.differenceBy=_K,y.differenceWith=xK,y.drop=OK,y.dropRight=LK,y.dropRightWhile=HK,y.dropWhile=kK,y.fill=NK,y.filter=DP,y.flatMap=PP,y.flatMapDeep=VP,y.flatMapDepth=GP,y.flatten=Oy,y.flattenDeep=MK,y.flattenDepth=DK,y.flip=lV,y.flow=rG,y.flowRight=iG,y.fromPairs=RK,y.functions=i2,y.functionsIn=s2,y.groupBy=WP,y.initial=PK,y.intersection=VK,y.intersectionBy=GK,y.intersectionWith=WK,y.invert=a2,y.invertBy=l2,y.invokeMap=JP,y.iteratee=nh,y.keyBy=XP,y.keys=Me,y.keysIn=Qt,y.map=lc,y.mapKeys=u2,y.mapValues=f2,y.matches=sG,y.matchesProperty=oG,y.memoize=uc,y.merge=d2,y.mergeWith=eE,y.method=aG,y.methodOf=lG,y.mixin=rh,y.negate=fc,y.nthArg=uG,y.omit=h2,y.omitBy=p2,y.once=cV,y.orderBy=YP,y.over=fG,y.overArgs=uV,y.overEvery=dG,y.overSome=hG,y.partial=zd,y.partialRight=$y,y.partition=zP,y.pick=g2,y.pickBy=tE,y.property=lE,y.propertyOf=pG,y.pull=YK,y.pullAll=Hy,y.pullAllBy=zK,y.pullAllWith=qK,y.pullAt=ZK,y.range=gG,y.rangeRight=BG,y.rearg=fV,y.reject=jP,y.remove=jK,y.rest=dV,y.reverse=Jd,y.sampleSize=eV,y.set=m2,y.setWith=w2,y.shuffle=tV,y.slice=AP,y.sortBy=iV,y.sortedUniq=oP,y.sortedUniqBy=aP,y.split=P2,y.spread=hV,y.tail=lP,y.take=cP,y.takeRight=uP,y.takeRightWhile=fP,y.takeWhile=dP,y.tap=IP,y.throttle=pV,y.thru=ac,y.toArray=qy,y.toPairs=nE,y.toPairsIn=rE,y.toPath=EG,y.toPlainObject=jy,y.transform=C2,y.unary=gV,y.union=hP,y.unionBy=pP,y.unionWith=gP,y.uniq=BP,y.uniqBy=mP,y.uniqWith=wP,y.unset=y2,y.unzip=Xd,y.unzipWith=ky,y.update=E2,y.updateWith=Q2,y.values=Es,y.valuesIn=F2,y.without=CP,y.words=oE,y.wrap=BV,y.xor=yP,y.xorBy=EP,y.xorWith=QP,y.zip=FP,y.zipObject=bP,y.zipObjectDeep=UP,y.zipWith=vP,y.entries=nE,y.entriesIn=rE,y.extend=AE,y.extendWith=pc,rh(y,y),y.add=FG,y.attempt=aE,y.camelCase=I2,y.capitalize=iE,y.ceil=bG,y.clamp=b2,y.clone=wV,y.cloneDeep=yV,y.cloneDeepWith=EV,y.cloneWith=CV,y.conformsTo=QV,y.deburr=sE,y.defaultTo=nG,y.divide=UG,y.endsWith=S2,y.eq=pn,y.escape=T2,y.escapeRegExp=_2,y.every=MP,y.find=RP,y.findIndex=_y,y.findKey=jV,y.findLast=KP,y.findLastIndex=xy,y.findLastKey=A2,y.floor=vG,y.forEach=My,y.forEachRight=Dy,y.forIn=e2,y.forInRight=t2,y.forOwn=n2,y.forOwnRight=r2,y.get=jd,y.gt=FV,y.gte=bV,y.has=o2,y.hasIn=Ah,y.head=Ly,y.identity=Ft,y.includes=$P,y.indexOf=KK,y.inRange=U2,y.invoke=c2,y.isArguments=Qi,y.isArray=yA,y.isArrayBuffer=UV,y.isArrayLike=Et,y.isArrayLikeObject=Ce,y.isBoolean=vV,y.isBuffer=Pr,y.isDate=IV,y.isElement=SV,y.isEmpty=TV,y.isEqual=_V,y.isEqualWith=xV,y.isError=qd,y.isFinite=OV,y.isFunction=nr,y.isInteger=Jy,y.isLength=dc,y.isMap=Xy,y.isMatch=LV,y.isMatchWith=HV,y.isNaN=kV,y.isNative=NV,y.isNil=DV,y.isNull=MV,y.isNumber=Yy,y.isObject=he,y.isObjectLike=ge,y.isPlainObject=Ho,y.isRegExp=Zd,y.isSafeInteger=RV,y.isSet=zy,y.isString=hc,y.isSymbol=Ht,y.isTypedArray=ys,y.isUndefined=KV,y.isWeakMap=PV,y.isWeakSet=VV,y.join=$K,y.kebabCase=x2,y.last=An,y.lastIndexOf=JK,y.lowerCase=O2,y.lowerFirst=L2,y.lt=GV,y.lte=WV,y.max=IG,y.maxBy=SG,y.mean=TG,y.meanBy=_G,y.min=xG,y.minBy=OG,y.stubArray=sh,y.stubFalse=oh,y.stubObject=mG,y.stubString=wG,y.stubTrue=CG,y.multiply=LG,y.nth=XK,y.noConflict=cG,y.noop=ih,y.now=cc,y.pad=H2,y.padEnd=k2,y.padStart=N2,y.parseInt=M2,y.random=v2,y.reduce=qP,y.reduceRight=ZP,y.repeat=D2,y.replace=R2,y.result=B2,y.round=HG,y.runInContext=L,y.sample=AV,y.size=nV,y.snakeCase=K2,y.some=rV,y.sortedIndex=eP,y.sortedIndexBy=tP,y.sortedIndexOf=nP,y.sortedLastIndex=rP,y.sortedLastIndexBy=iP,y.sortedLastIndexOf=sP,y.startCase=V2,y.startsWith=G2,y.subtract=kG,y.sum=NG,y.sumBy=MG,y.template=W2,y.times=yG,y.toFinite=rr,y.toInteger=EA,y.toLength=Zy,y.toLower=$2,y.toNumber=en,y.toSafeInteger=$V,y.toString=zA,y.toUpper=J2,y.trim=X2,y.trimEnd=Y2,y.trimStart=z2,y.truncate=q2,y.unescape=Z2,y.uniqueId=QG,y.upperCase=j2,y.upperFirst=eh,y.each=My,y.eachRight=Dy,y.first=Ly,rh(y,function(){var o={};return _n(y,function(l,d){ZA.call(y.prototype,d)||(o[d]=l)}),o}(),{chain:!1}),y.VERSION=n,Yt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(o){y[o].placeholder=y}),Yt(["drop","take"],function(o,l){OA.prototype[o]=function(d){d=d===e?1:Te(EA(d),0);var B=this.__filtered__&&!l?new OA(this):this.clone();return B.__filtered__?B.__takeCount__=At(d,B.__takeCount__):B.__views__.push({size:At(d,VA),type:o+(B.__dir__<0?"Right":"")}),B},OA.prototype[o+"Right"]=function(d){return this.reverse()[o](d).reverse()}}),Yt(["filter","map","takeWhile"],function(o,l){var d=l+1,B=d==LA||d==RA;OA.prototype[o]=function(C){var Q=this.clone();return Q.__iteratees__.push({iteratee:dA(C,3),type:d}),Q.__filtered__=Q.__filtered__||B,Q}}),Yt(["head","last"],function(o,l){var d="take"+(l?"Right":"");OA.prototype[o]=function(){return this[d](1).value()[0]}}),Yt(["initial","tail"],function(o,l){var d="drop"+(l?"":"Right");OA.prototype[o]=function(){return this.__filtered__?new OA(this):this[d](1)}}),OA.prototype.compact=function(){return this.filter(Ft)},OA.prototype.find=function(o){return this.filter(o).head()},OA.prototype.findLast=function(o){return this.reverse().find(o)},OA.prototype.invokeMap=vA(function(o,l){return typeof o=="function"?new OA(this):this.map(function(d){return So(d,o,l)})}),OA.prototype.reject=function(o){return this.filter(fc(dA(o)))},OA.prototype.slice=function(o,l){o=EA(o);var d=this;return d.__filtered__&&(o>0||l<0)?new OA(d):(o<0?d=d.takeRight(-o):o&&(d=d.drop(o)),l!==e&&(l=EA(l),d=l<0?d.dropRight(-l):d.take(l-o)),d)},OA.prototype.takeRightWhile=function(o){return this.reverse().takeWhile(o).reverse()},OA.prototype.toArray=function(){return this.take(VA)},_n(OA.prototype,function(o,l){var d=/^(?:filter|find|map|reject)|While$/.test(l),B=/^(?:head|last)$/.test(l),C=y[B?"take"+(l=="last"?"Right":""):l],Q=B||/^find/.test(l);C&&(y.prototype[l]=function(){var v=this.__wrapped__,x=B?[1]:arguments,k=v instanceof OA,G=x[0],W=k||yA(v),J=function(SA){var MA=C.apply(y,Hr([SA],x));return B&&q?MA[0]:MA};W&&d&&typeof G=="function"&&G.length!=1&&(k=W=!1);var q=this.__chain__,lA=!!this.__actions__.length,hA=Q&&!q,UA=k&&!lA;if(!Q&&W){v=UA?v:new OA(this);var pA=o.apply(v,x);return pA.__actions__.push({func:ac,args:[J],thisArg:e}),new qt(pA,q)}return hA&&UA?o.apply(this,x):(pA=this.thru(J),hA?B?pA.value()[0]:pA.value():pA)})}),Yt(["pop","push","shift","sort","splice","unshift"],function(o){var l=Ll[o],d=/^(?:push|sort|unshift)$/.test(o)?"tap":"thru",B=/^(?:pop|shift)$/.test(o);y.prototype[o]=function(){var C=arguments;if(B&&!this.__chain__){var Q=this.value();return l.apply(yA(Q)?Q:[],C)}return this[d](function(v){return l.apply(yA(v)?v:[],C)})}}),_n(OA.prototype,function(o,l){var d=y[l];if(d){var B=d.name+"";ZA.call(gs,B)||(gs[B]=[]),gs[B].push({name:l,func:d})}}),gs[ec(e,I).name]=[{name:"wrapper",func:e}],OA.prototype.clone=ZR,OA.prototype.reverse=jR,OA.prototype.value=A4,y.prototype.at=SP,y.prototype.chain=TP,y.prototype.commit=_P,y.prototype.next=xP,y.prototype.plant=LP,y.prototype.reverse=HP,y.prototype.toJSON=y.prototype.valueOf=y.prototype.value=kP,y.prototype.first=y.prototype.head,Eo&&(y.prototype[Eo]=OP),y},ds=_R();pi?((pi.exports=ds)._=ds,nd._=ds):We._=ds}).call(Ys)}(Oa,Oa.exports);var vm=Oa.exports;const c_="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABAAAAAQACAYAAAB/HSuDAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAHkJJREFUeNrs3Q1u8zaXgNHS8JK4/xVwTyzytgnS1HZsixR/7jlAgZkMBl+hT6Z1H1FyqrX+BQAAAOzt4hAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAgAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAAACAAAAACAAAAAAAAIAAAAAIAAAAAAAAgAAAAAgAAAAAAACAAAAACAAAAAAgAAAAAAACAAAAACAAAAAAA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U5ErkJggg==",u_={class:"camera__preview"},f_={key:0,class:"camera__bg-notification"},d_={class:p.normalizeClass("d-block light--text")},h_=["width","height"],p_=["width","height"],g_={key:1,class:"camera__countdown-overlay"},B_=["innerHTML","data-countdown"],m_=["src"],w_={class:"camera__controls"},C_={class:"container"},y_={class:"row"},E_={class:"col"},Q_={class:"btn-group"},F_={key:0},b_={key:1},U_={key:0,class:"camera__switch-cam"},v_={key:1,class:"base-camera__devices"},I_={name:"BaseCamera",inheritAttrs:!1};function S_(t){const A=atob(t.split(",")[1]),e=new ArrayBuffer(A.length),n=new Uint8Array(e);for(let r=0;r<A.length;r++)n[r]=A.charCodeAt(r);return new Blob([e],{type:"image/png"})}const T_=p.defineComponent({...I_,props:{modelValue:{type:null},enableSwitchCamera:{type:Boolean,default:!0},defaultRearCamera:{type:Boolean,default:!1},enableMirrorCamera:{type:Boolean,default:!1},enableGuide:{type:Boolean,default:!0},guideSrc:{type:String,default:()=>c_},countdown:{type:Number,default:3},ratio:{type:String,default:"3x2"},enableAudio:{type:Boolean,default:!1},enableSelectDevice:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{expose:A,emit:e}){const n={"1x1":{width:720,height:720},"3x2":{width:1152,height:768},"2x3":{width:768,height:1152},"4x3":{width:1024,height:768},"3x4":{width:768,height:1024},"16x9":{width:1280,height:720},"9x16":{width:720,height:1280}},r=t,i=e,s=p.ref(),a=p.ref(),c=p.ref(!1),u=p.ref([]),f=p.ref(),h=p.ref(),g=p.ref(!1),m=p.ref(!1),w=p.ref(0),F=p.ref(0),b=p.ref(),I=p.computed(()=>u.value.filter(rA=>rA.kind==="videoinput")),O=p.computed(()=>u.value.filter(rA=>rA.kind==="audioinput")),T=p.computed({get(){return f.value&&f.value.deviceId},set(rA){f.value=I.value.find(BA=>BA.deviceId===rA)}}),E=p.computed({get(){return h.value&&h.value.deviceId},set(rA){h.value=O.value.find(BA=>BA.deviceId===rA)}}),H=p.computed(()=>{const rA=f.value&&I.value.findIndex(BA=>BA.deviceId===f.value.deviceId);return r.enableMirrorCamera&&rA===0?"mirror-cam":""}),U=p.computed(()=>{const rA=f.value&&u.value.findIndex(BA=>BA.deviceId===f.value.deviceId);return H.value?`${H.value} mirror-device-${rA}`:""});function M(){w.value=n[r.ratio]?n[r.ratio].width:s.value.parentElement&&s.value.parentElement.clientWidth,F.value=n[r.ratio]?n[r.ratio].height:s.value.parentElement&&s.value.parentElement.clientHeight}const P=vm.debounce(()=>{M()},300,{trailing:!0,leading:!1});async function N(){const rA={audio:r.enableAudio&&{...h.value?{deviceId:h.value.deviceId}:{}},video:{...f.value?{deviceId:f.value.deviceId}:{},width:{ideal:n[r.ratio]?n[r.ratio].width:s.value.clientWidth},height:{ideal:n[r.ratio]?n[r.ratio].height:s.value.clientHeight}}};return navigator.mediaDevices.getUserMedia(rA).catch(BA=>{console.error(BA,"navigator.mediaDevices.getUserMedia: failed")})}function sA(){s.value&&s.value.srcObject&&s.value.srcObject.getTracks().forEach(BA=>{BA.stop()})}async function mA(){return s.value.srcObject=await N(),u.value=await navigator.mediaDevices.enumerateDevices(),{stream:s.value.srcObject,devices:u.value}}function nA(){g.value?(g.value=!1,m.value=!1,sA()):(g.value=!0,mA())}function cA(){u.value.length>1&&(sA(),f.value=f.value&&f.value.deviceId===I.value[0].deviceId?I.value[I.value.length-1]:I.value[0],mA())}async function LA(rA,BA){sA(),rA&&(!BA||rA.deviceId!==BA.deviceId)&&await mA()}p.watch(()=>f.value,LA),p.watch(()=>h.value,LA);function se(){r.countdown?(b.value=b.value?b.value-1:r.countdown,b.value?setTimeout(se,1e3):RA()):RA()}A({onCapture:se});function RA(){m.value=!0;const rA=a.value.getContext("2d"),BA=s.value,YA=BA&&BA.srcObject&&BA.srcObject.getTracks(),{width:VA,height:GA}=YA.length&&YA[0].getSettings(),DA=VA/GA;let qA=a.value.width,WA=qA/DA;WA<a.value.height&&(WA=a.value.height,qA=WA*DA);const ue=H.value?-1:1;rA.save(),rA.scale(ue,1),rA.drawImage(BA,qA>a.value.width?(a.value.width-qA)/2:0,WA>a.value.height?(a.value.height-WA)/2:0,qA*ue,WA),rA.restore();const Ne=a.value.toDataURL("image/png");console.log("dataUrl",Ne),HA(Ne)}function HA(rA){const BA=S_(rA);i("update:modelValue",{name:`cam-pic-${new Date().toISOString()}`,id:`cam-pic-${new Date().toISOString()}`,blob:BA,size:BA.size})}return p.onMounted(async()=>{sA(),await mA(),f.value=I.value[0],r.enableAudio&&(h.value=O.value[0]),navigator.mediaDevices.addEventListener("devicechange",async rA=>{await mA()}),r.defaultRearCamera&&cA(),nA(),window.addEventListener("resize",P),M(),await p.nextTick(),c.value=!0}),p.onBeforeUnmount(()=>{g.value=!1,m.value=!1,sA(),window.removeEventListener("resize",P)}),(rA,BA)=>{const YA=p.resolveComponent("loading-spinner"),VA=p.resolveComponent("svg-icon"),GA=p.resolveComponent("input-dropdown");return p.openBlock(),p.createElementBlock("div",{class:p.normalizeClass(["camera",U.value])},[p.createElementVNode("div",u_,[c.value?p.createCommentVNode("",!0):(p.openBlock(),p.createElementBlock("div",f_,[p.createVNode(YA,{color:"#000"},{default:p.withCtx(()=>[p.createElementVNode("span",d_,p.toDisplayString(rA.$t("camera.waitForCameraNotification")),1)]),_:1})])),p.withDirectives(p.createElementVNode("video",{ref_key:"camera",ref:s,class:"camera__video",width:w.value,height:F.value,autoplay:"",playsinline:""},null,8,h_),[[p.vShow,c.value]]),p.withDirectives(p.createElementVNode("canvas",{ref_key:"canvas",ref:a,class:"camera__canvas",width:w.value,height:F.value},null,8,p_),[[p.vShow,m.value]]),b.value?(p.openBlock(),p.createElementBlock("div",g_,[(p.openBlock(),p.createElementBlock("p",{class:"countdown",key:b.value,innerHTML:b.value,"data-countdown":b.value},null,8,B_))])):p.createCommentVNode("",!0),t.enableGuide&&g.value&&c.value?(p.openBlock(),p.createElementBlock("img",{key:2,class:"camera__guide",src:t.guideSrc},null,8,m_)):p.createCommentVNode("",!0)]),p.createElementVNode("div",w_,[p.createElementVNode("div",C_,[p.createElementVNode("div",y_,[p.createElementVNode("div",E_,[p.createElementVNode("div",Q_,[p.createElementVNode("button",{type:"button",class:"camera__toggle btn btn-primary",onClick:nA},[g.value?(p.openBlock(),p.createElementBlock("span",b_,p.toDisplayString(rA.$t("common.pause")),1)):(p.openBlock(),p.createElementBlock("span",F_,p.toDisplayString(rA.$t("common.play")),1))]),p.createElementVNode("button",{type:"button",class:"camera__capture btn btn-primary",onClick:se},p.toDisplayString(rA.$t("camera.capture")),1)])])])])]),I.value&&I.value.length>1?(p.openBlock(),p.createElementBlock("div",U_,[p.createElementVNode("button",{class:"btn",onClick:p.withModifiers(cA,["prevent"])},[p.createVNode(VA,{symbol:"switch-camera"})])])):p.createCommentVNode("",!0),t.enableSelectDevice?(p.openBlock(),p.createElementBlock("div",v_,[O.value.length&&h.value?(p.openBlock(),p.createBlock(GA,{key:0,modelValue:E.value,"onUpdate:modelValue":BA[0]||(BA[0]=DA=>E.value=DA),options:O.value.map((DA,qA)=>({text:DA.label||`Microphone ${qA+1}`,value:DA.deviceId}))},null,8,["modelValue","options"])):p.createCommentVNode("",!0),I.value.length?(p.openBlock(),p.createBlock(GA,{key:1,modelValue:T.value,"onUpdate:modelValue":BA[1]||(BA[1]=DA=>T.value=DA),options:I.value.map((DA,qA)=>({text:DA.label||`Camera ${qA+1}`,value:DA.deviceId}))},null,8,["modelValue","options"])):p.createCommentVNode("",!0)])):p.createCommentVNode("",!0)],2)}}}),o3="",__=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,x_=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,O_=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function L_(t,A){if(t==="__proto__"||t==="constructor"&&A&&typeof A=="object"&&"prototype"in A){H_(t);return}return A}function H_(t){console.warn(`[destr] Dropping "${t}" key to prevent prototype pollution.`)}function k_(t,A={}){if(typeof t!="string")return t;const e=t.trim();if(t[0]==='"'&&t.endsWith('"')&&!t.includes("\\"))return e.slice(1,-1);if(e.length<=9){const n=e.toLowerCase();if(n==="true")return!0;if(n==="false")return!1;if(n==="undefined")return;if(n==="null")return null;if(n==="nan")return Number.NaN;if(n==="infinity")return Number.POSITIVE_INFINITY;if(n==="-infinity")return Number.NEGATIVE_INFINITY}if(!O_.test(t)){if(A.strict)throw new SyntaxError("[destr] Invalid JSON");return t}try{if(__.test(t)||x_.test(t)){if(A.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(t,L_)}return JSON.parse(t)}catch(n){if(A.strict)throw n;return t}}const N_=/#/g,M_=/&/g,D_=/\//g,R_=/=/g,Ju=/\+/g,K_=/%5e/gi,P_=/%60/gi,V_=/%7c/gi,G_=/%20/gi;function W_(t){return encodeURI(""+t).replace(V_,"|")}function Xu(t){return W_(typeof t=="string"?t:JSON.stringify(t)).replace(Ju,"%2B").replace(G_,"+").replace(N_,"%23").replace(M_,"%26").replace(P_,"`").replace(K_,"^").replace(D_,"%2F")}function Yu(t){return Xu(t).replace(R_,"%3D")}function Im(t=""){try{return decodeURIComponent(""+t)}catch{return""+t}}function $_(t){return Im(t.replace(Ju," "))}function J_(t){return Im(t.replace(Ju," "))}function X_(t=""){const A={};t[0]==="?"&&(t=t.slice(1));for(const e of t.split("&")){const n=e.match(/([^=]+)=?(.*)/)||[];if(n.length<2)continue;const r=$_(n[1]);if(r==="__proto__"||r==="constructor")continue;const i=J_(n[2]||"");A[r]===void 0?A[r]=i:Array.isArray(A[r])?A[r].push(i):A[r]=[A[r],i]}return A}function Y_(t,A){return(typeof A=="number"||typeof A=="boolean")&&(A=String(A)),A?Array.isArray(A)?A.map(e=>`${Yu(t)}=${Xu(e)}`).join("&"):`${Yu(t)}=${Xu(A)}`:Yu(t)}function z_(t){return Object.keys(t).filter(A=>t[A]!==void 0).map(A=>Y_(A,t[A])).filter(Boolean).join("&")}const q_=/^[\s\w\0+.-]{2,}:([/\\]{1,2})/,Z_=/^[\s\w\0+.-]{2,}:([/\\]{2})?/,j_=/^([/\\]\s*){2,}[^/\\]/,Ax=/\/$|\/\?|\/#/,ex=/^\.?\//;function Sm(t,A={}){return typeof A=="boolean"&&(A={acceptRelative:A}),A.strict?q_.test(t):Z_.test(t)||(A.acceptRelative?j_.test(t):!1)}function zu(t="",A){return A?Ax.test(t):t.endsWith("/")}function tx(t="",A){if(!A)return(zu(t)?t.slice(0,-1):t)||"/";if(!zu(t,!0))return t||"/";let e=t,n="";const r=t.indexOf("#");r>=0&&(e=t.slice(0,r),n=t.slice(r));const[i,...s]=e.split("?");return((i.endsWith("/")?i.slice(0,-1):i)||"/")+(s.length>0?`?${s.join("?")}`:"")+n}function nx(t="",A){if(!A)return t.endsWith("/")?t:t+"/";if(zu(t,!0))return t||"/";let e=t,n="";const r=t.indexOf("#");if(r>=0&&(e=t.slice(0,r),n=t.slice(r),!e))return n;const[i,...s]=e.split("?");return i+"/"+(s.length>0?`?${s.join("?")}`:"")+n}function rx(t,A){if(sx(A)||Sm(t))return t;const e=tx(A);return t.startsWith(e)?t:ax(e,t)}function ix(t,A){const e=_m(t),n={...X_(e.search),...A};return e.search=z_(n),lx(e)}function sx(t){return!t||t==="/"}function ox(t){return t&&t!=="/"}function ax(t,...A){let e=t||"";for(const n of A.filter(r=>ox(r)))if(e){const r=n.replace(ex,"");e=nx(e)+r}else e=n;return e}const Tm=Symbol.for("ufo:protocolRelative");function _m(t="",A){const e=t.match(/^[\s\0]*(blob:|data:|javascript:|vbscript:)(.*)/i);if(e){const[,h,g=""]=e;return{protocol:h.toLowerCase(),pathname:g,href:h+g,auth:"",host:"",search:"",hash:""}}if(!Sm(t,{acceptRelative:!0}))return A?_m(A+t):xm(t);const[,n="",r,i=""]=t.replace(/\\/g,"/").match(/^[\s\0]*([\w+.-]{2,}:)?\/\/([^/@]+@)?(.*)/)||[],[,s="",a=""]=i.match(/([^#/?]*)(.*)?/)||[],{pathname:c,search:u,hash:f}=xm(a.replace(/\/(?=[A-Za-z]:)/,""));return{protocol:n.toLowerCase(),auth:r?r.slice(0,Math.max(0,r.length-1)):"",host:s,pathname:c,search:u,hash:f,[Tm]:!n}}function xm(t=""){const[A="",e="",n=""]=(t.match(/([^#?]*)(\?[^#]*)?(#.*)?/)||[]).splice(1);return{pathname:A,search:e,hash:n}}function lx(t){const A=t.pathname||"",e=t.search?(t.search.startsWith("?")?"":"?")+t.search:"",n=t.hash||"",r=t.auth?t.auth+"@":"",i=t.host||"";return(t.protocol||t[Tm]?(t.protocol||"")+"//":"")+r+i+A+e+n}class cx extends Error{constructor(A,e){super(A,e),this.name="FetchError",e!=null&&e.cause&&!this.cause&&(this.cause=e.cause)}}function ux(t){var c,u,f,h,g;const A=((c=t.error)==null?void 0:c.message)||((u=t.error)==null?void 0:u.toString())||"",e=((f=t.request)==null?void 0:f.method)||((h=t.options)==null?void 0:h.method)||"GET",n=((g=t.request)==null?void 0:g.url)||String(t.request)||"/",r=`[${e}] ${JSON.stringify(n)}`,i=t.response?`${t.response.status} ${t.response.statusText}`:"<no response>",s=`${r}: ${i}${A?` ${A}`:""}`,a=new cx(s,t.error?{cause:t.error}:void 0);for(const m of["request","options","response"])Object.defineProperty(a,m,{get(){return t[m]}});for(const[m,w]of[["data","_data"],["status","status"],["statusCode","status"],["statusText","statusText"],["statusMessage","statusText"]])Object.defineProperty(a,m,{get(){return t.response&&t.response[w]}});return a}const fx=new Set(Object.freeze(["PATCH","POST","PUT","DELETE"]));function Om(t="GET"){return fx.has(t.toUpperCase())}function dx(t){if(t===void 0)return!1;const A=typeof t;return A==="string"||A==="number"||A==="boolean"||A===null?!0:A!=="object"?!1:Array.isArray(t)?!0:t.buffer?!1:t.constructor&&t.constructor.name==="Object"||typeof t.toJSON=="function"}const hx=new Set(["image/svg","application/xml","application/xhtml","application/html"]),px=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function gx(t=""){if(!t)return"json";const A=t.split(";").shift()||"";return px.test(A)?"json":hx.has(A)||A.startsWith("text/")?"text":"blob"}function Bx(t,A,e=globalThis.Headers){const n={...A,...t};if(A!=null&&A.params&&(t!=null&&t.params)&&(n.params={...A==null?void 0:A.params,...t==null?void 0:t.params}),A!=null&&A.query&&(t!=null&&t.query)&&(n.query={...A==null?void 0:A.query,...t==null?void 0:t.query}),A!=null&&A.headers&&(t!=null&&t.headers)){n.headers=new e((A==null?void 0:A.headers)||{});for(const[r,i]of new e((t==null?void 0:t.headers)||{}))n.headers.set(r,i)}return n}const mx=new Set([408,409,425,429,500,502,503,504]),wx=new Set([101,204,205,304]);function Lm(t={}){const{fetch:A=globalThis.fetch,Headers:e=globalThis.Headers,AbortController:n=globalThis.AbortController}=t;async function r(a){const c=a.error&&a.error.name==="AbortError"&&!a.options.timeout||!1;if(a.options.retry!==!1&&!c){let f;typeof a.options.retry=="number"?f=a.options.retry:f=Om(a.options.method)?0:1;const h=a.response&&a.response.status||500;if(f>0&&(Array.isArray(a.options.retryStatusCodes)?a.options.retryStatusCodes.includes(h):mx.has(h))){const g=a.options.retryDelay||0;return g>0&&await new Promise(m=>setTimeout(m,g)),i(a.request,{...a.options,retry:f-1})}}const u=ux(a);throw Error.captureStackTrace&&Error.captureStackTrace(u,i),u}const i=async function(c,u={}){var m;const f={request:c,options:Bx(u,t.defaults,e),response:void 0,error:void 0};f.options.method=(m=f.options.method)==null?void 0:m.toUpperCase(),f.options.onRequest&&await f.options.onRequest(f),typeof f.request=="string"&&(f.options.baseURL&&(f.request=rx(f.request,f.options.baseURL)),(f.options.query||f.options.params)&&(f.request=ix(f.request,{...f.options.params,...f.options.query}))),f.options.body&&Om(f.options.method)&&(dx(f.options.body)?(f.options.body=typeof f.options.body=="string"?f.options.body:JSON.stringify(f.options.body),f.options.headers=new e(f.options.headers||{}),f.options.headers.has("content-type")||f.options.headers.set("content-type","application/json"),f.options.headers.has("accept")||f.options.headers.set("accept","application/json")):("pipeTo"in f.options.body&&typeof f.options.body.pipeTo=="function"||typeof f.options.body.pipe=="function")&&("duplex"in f.options||(f.options.duplex="half")));let h;if(!f.options.signal&&f.options.timeout){const w=new n;h=setTimeout(()=>w.abort(),f.options.timeout),f.options.signal=w.signal}try{f.response=await A(f.request,f.options)}catch(w){return f.error=w,f.options.onRequestError&&await f.options.onRequestError(f),await r(f)}finally{h&&clearTimeout(h)}if(f.response.body&&!wx.has(f.response.status)&&f.options.method!=="HEAD"){const w=(f.options.parseResponse?"json":f.options.responseType)||gx(f.response.headers.get("content-type")||"");switch(w){case"json":{const F=await f.response.text(),b=f.options.parseResponse||k_;f.response._data=b(F);break}case"stream":{f.response._data=f.response.body;break}default:f.response._data=await f.response[w]()}}return f.options.onResponse&&await f.options.onResponse(f),!f.options.ignoreResponseError&&f.response.status>=400&&f.response.status<600?(f.options.onResponseError&&await f.options.onResponseError(f),await r(f)):f.response},s=async function(c,u){return(await i(c,u))._data};return s.raw=i,s.native=(...a)=>A(...a),s.create=(a={})=>Lm({...t,defaults:{...t.defaults,...a}}),s}const qu=function(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}(),Cx=qu.fetch||(()=>Promise.reject(new Error("[ofetch] global.fetch is not supported!"))),yx=qu.Headers,Ex=qu.AbortController,Qx=Lm({fetch:Cx,Headers:yx,AbortController:Ex}),Fx={class:"file-upload"},bx=["src"],Ux=["onClick"],vx=["onClick"],Ix=["for"],Sx=["innerHTML"],Tx={key:0,class:"file-upload__loading-spinner"},_x=[p.createElementVNode("span",{class:"spinner-border",role:"status"},[p.createElementVNode("span",{class:"visually-hidden"},"Loading...")],-1)];async function xx(t){return await new Promise(A=>{let e=new FileReader;e.onload=()=>A(e.result),e.readAsDataURL(t)})}const Ox=p.defineComponent({__name:"file-upload",props:{modelValue:{type:Array,default:[]},src:{type:String},name:{type:String,default:()=>Be()},id:{type:String,default:()=>Be()},label:{type:String,default:"Select file"},placeholder:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},readOnly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},pattern:{type:String,default:null},multiple:{type:Boolean,default:!1},accept:{type:String,default:"image/*"},endpoint:{type:String,default:""},toDataUrl:{type:Boolean,default:!0},authToken:{type:String,default:""},customFetch:null,baseResponsePath:{type:String,default:"/media"},enablePreview:{type:Boolean,default:!0},previewWidth:{type:Number,default:0}},emits:["update:modelValue","update:src"],setup(t,{emit:A}){const e=t,n=A,r=p.ref([]),i=p.ref([]),s=p.ref(!1),a=p.computed(()=>e.modelValue.length?e.modelValue:e.src?[{type:"",src:e.src}]:i.value);p.watch(()=>r.value,async f=>{i.value=await Promise.all(f.map(async h=>({src:e.toDataUrl?await xx(h):await u(h),type:h.type})))},{deep:!0}),p.watch(()=>i.value,async f=>{const h=e.multiple?f:f[0];n("update:modelValue",h),e.multiple||n("update:src",f[0]&&f[0].src)},{deep:!0});function c(f){r.value.splice(f,1),(!i.value||!i.value.length)&&n("update:src","")}async function u(f){const h=new FormData;h.append("file",f),s.value=!0;const m=await(e.customFetch||Qx)(e.endpoint,{method:"POST",...e.customFetch?{}:{headers:{Accept:"application/json",...e.authToken?{Authorization:`Bearer ${e.authToken}`}:{}}},body:h}).catch(w=>{console.error("Error",w)});return s.value=!1,`${e.baseResponsePath}/${m.path}`}return(f,h)=>{const g=p.resolveComponent("svg-icon"),m=p.resolveComponent("input-file");return p.openBlock(),p.createElementBlock("div",Fx,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(a.value,(w,F)=>(p.openBlock(),p.createElementBlock("div",{key:w.src,class:p.normalizeClass(t.enablePreview?"file-upload__thumbnail":"file-upload__reset")},[t.enablePreview?(p.openBlock(),p.createElementBlock(p.Fragment,{key:0},[p.createElementVNode("img",{src:`${w.src}${t.previewWidth?`?width=${t.previewWidth}`:""}`,class:"img-thumbnail rounded"},null,8,bx),p.createElementVNode("button",{onClick:p.withModifiers(b=>c(F),["prevent"]),class:"btn btn--close"},[p.createVNode(g,{symbol:"x"})],8,Ux)],64)):(p.openBlock(),p.createElementBlock("button",{key:1,onClick:p.withModifiers(b=>c(F),["prevent"]),class:"btn btn--close btn-outline-dark"},[p.createVNode(g,{symbol:"x"})],8,vx))],2))),128)),p.createVNode(m,{modelValue:r.value,"onUpdate:modelValue":h[0]||(h[0]=w=>r.value=w),id:t.id,name:t.name,accept:t.accept,class:"d-none"},null,8,["modelValue","id","name","accept"]),p.createElementVNode("label",{for:t.id,class:"file-upload__label"},[p.renderSlot(f.$slots,"button",{},()=>[p.createElementVNode("span",{class:"btn btn-outline-dark",innerHTML:t.label},null,8,Sx)]),p.createVNode(p.Transition,{name:"fade"},{default:p.withCtx(()=>[s.value?(p.openBlock(),p.createElementBlock("span",Tx,_x)):p.createCommentVNode("",!0)]),_:1})],8,Ix)])}}}),l3="",Lx={class:"upload-group"},Hx=["innerHTML"],kx={class:"row"},Nx={class:"img-container"},Mx=["src"],Dx=["onClick"],Rx={class:"col-auto mb-4"},Kx={role:"button",class:"img-thumbnail d-flex justify-content-center align-items-center"},Hm=p.defineComponent({__name:"upload-group",props:{modelValue:{type:Array,default:()=>[]},name:{type:String,default:()=>Be()},id:{type:String,default:()=>Be()},label:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},accept:{type:String,default:"image/*"},endpoint:{type:String,default:""},authToken:{type:String,default:""},customFetch:null,baseResponsePath:{type:String,default:"/media"},previewWidth:{type:Number,default:0}},emits:["update:modelValue"],setup(t,{emit:A}){const e=t,n=A,r=p.ref([...e.modelValue]);function i(s){r.value.splice(s,1),n("update:modelValue",r.value)}return p.watch(r.value,(s,a)=>{n("update:modelValue",s)}),(s,a)=>{const c=p.resolveComponent("svg-icon"),u=p.resolveComponent("file-upload");return p.openBlock(),p.createElementBlock("div",Lx,[p.createElementVNode("label",{innerHTML:t.label},null,8,Hx),p.createElementVNode("div",kx,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(r.value,(f,h)=>(p.openBlock(),p.createElementBlock("div",{key:f,class:"col-auto mb-4"},[p.createElementVNode("div",Nx,[p.createElementVNode("img",{src:`${f}${t.previewWidth?`?width=${t.previewWidth}`:""}`,class:"img-thumbnail"},null,8,Mx),p.createElementVNode("button",{onClick:p.withModifiers(g=>i(h),["prevent"]),class:"btn btn--close"},[p.createVNode(c,{symbol:"x"})],8,Dx)])]))),128)),p.createElementVNode("div",Rx,[p.createVNode(u,{src:r.value[r.value.length],"onUpdate:src":a[0]||(a[0]=f=>r.value[r.value.length]=f),multiple:!1,endpoint:t.endpoint,"custom-fetch":t.customFetch,"to-data-url":!t.endpoint,"auth-token":t.authToken,disabled:t.disabled,"base-response-path":t.baseResponsePath},{button:p.withCtx(()=>[p.createElementVNode("span",Kx,[p.createVNode(c,{symbol:"plus"})])]),_:1},8,["src","endpoint","custom-fetch","to-data-url","auth-token","disabled","base-response-path"])])])])}}}),c3="",Px={class:"upload-group"},Vx=["innerHTML"],Gx=p.defineComponent({__name:"asset-uploader",props:{modelValue:{type:Array,default:()=>[]},name:{type:String,default:()=>Be()},id:{type:String,default:()=>Be()},type:{type:String,default:""},label:{type:String,default:""},variant:{type:String,default:""},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},accept:{type:String,default:"image/*"},endpoint:{type:String,default:""},authToken:{type:String,default:""},customFetch:null,mediaTypeMap:{type:Object,default:()=>({svg:"Svg",png:"Image",jpg:"Image"})},baseResponsePath:{type:String,default:"/media"},previewWidth:{type:Number,default:0}},emits:["update:modelValue"],setup(t,{emit:A}){const e=t,n=A,r=p.computed({get(){return e.modelValue.map(i=>i.src)},set(i){n("update:modelValue",i.map((s,a)=>({mediaType:e.modelValue[a]&&e.modelValue[a].mediaType||s.includes("data:image")?s.includes("data:image/svg")?"Svg":"Image":e.mediaTypeMap[s.split(".")[1]],src:s,name:e.modelValue[a]&&e.modelValue[a].name||`${e.name}-${a}`,...e.type?{type:e.type}:{}})))}});return(i,s)=>(p.openBlock(),p.createElementBlock("div",Px,[p.createElementVNode("label",{innerHTML:t.label},null,8,Vx),p.createVNode(Hm,{modelValue:r.value,"onUpdate:modelValue":s[0]||(s[0]=a=>r.value=a),endpoint:t.endpoint,"custom-fetch":t.customFetch,"auth-token":t.authToken,disabled:t.disabled,"preview-width":t.previewWidth,"base-response-path":t.baseResponsePath},null,8,["modelValue","endpoint","custom-fetch","auth-token","disabled","preview-width","base-response-path"])]))}}),u3="",Wx={class:"carousel d-flex"},$x=["onClick"],km=p.defineComponent({__name:"base-carousel",props:{modelValue:{type:Number,default:-1},config:{type:Object,default:null},messages:{type:Object,default:{}},items:{type:Array,default:[]},navigation:{type:Boolean,default:!0}},emits:["update:modelValue","select"],setup(t,{emit:A}){const e=A,n=p.ref(),r=p.ref();function i(){n.value.scrollTo({top:0,left:n.value.scrollLeft-n.value.clientWidth>0?n.value.scrollLeft-n.value.clientWidth:0,behavior:"smooth"})}function s(){console.log(n.value.clientWidth,n.value.scrollLeft),n.value.scrollTo({top:0,left:n.value.scrollLeft-n.value.clientWidth<=r.value.clientWidth?n.value.scrollLeft+n.value.clientWidth:r.value.clientWidth,behavior:"smooth"})}function a(c){e("update:modelValue",c)}return(c,u)=>{const f=p.resolveComponent("svg-icon");return p.openBlock(),p.createElementBlock("div",Wx,[t.navigation?(p.openBlock(),p.createElementBlock("button",{key:0,class:"carousel__control btn btn-link text-light",type:"button",onClick:p.withModifiers(i,["prevent","stop"])},[p.createVNode(f,{symbol:"chevron-left"})])):p.createCommentVNode("",!0),p.createElementVNode("div",{ref_key:"viewport",ref:n,class:"carousel__viewport flex-grow-1"},[p.createElementVNode("div",{ref_key:"track",ref:r,class:"carousel__track d-flex justify-center align-items-center"},[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(t.items,(h,g)=>p.renderSlot(c.$slots,"carousel-item",{key:h.src,item:h,index:g},()=>[p.createElementVNode("div",{class:p.normalizeClass(["carousel__item",g===t.modelValue?"selected":""]),onClick:m=>a(g)},p.toDisplayString(h),11,$x)])),128))],512)],512),t.navigation?(p.openBlock(),p.createElementBlock("button",{key:1,class:"carousel__control btn btn-link text-light",type:"button",onClick:p.withModifiers(s,["prevent","stop"])},[p.createVNode(f,{symbol:"chevron-right"})])):p.createCommentVNode("",!0)])}}}),f3="",Jx={class:"media-thumbnails"},Xx=["onClick"],Yx={class:"img-container ratio ratio-1x1"},zx=["src"],qx=p.defineComponent({__name:"media-thumbnails",props:{modelValue:{default:null},config:{type:Object,default:null},messages:{type:Object,default:{}},assets:{type:Array,default:[]}},emits:["update:modelValue","select"],setup(t,{emit:A}){const e=A,n=p.ref(-1);function r(i){e("update:modelValue",i),e("select",i)}return(i,s)=>(p.openBlock(),p.createElementBlock("div",Jx,[p.createVNode(km,{items:t.assets},{"carousel-item":p.withCtx(a=>[p.createElementVNode("a",{role:"button",class:"carousel__item media-thumbnails__thumbnail",onClick:c=>r(a.index)},[p.createElementVNode("div",Yx,[p.createElementVNode("img",{src:a.item.thumbnail||a.item.src,class:p.normalizeClass(["img-fluid",n.value===a.index?"is-active":""])},null,10,zx)])],8,Xx)]),_:1},8,["items"])]))}}),d3="",Zx={class:"progress-steps"},jx={class:"progress-steps__list"},AO={class:"progress-step"},eO=["checked","id","value","disabled","read-only","required","onChange"],tO=["for"],nO=["innerHTML"],rO=["for"],iO=["innerHTML"],sO=p.defineComponent({__name:"progress-steps",props:{modelValue:{type:Number,default:0},progress:{type:Number,default:0},steps:{type:Array},label:{type:String,default:""},reveal:{type:Boolean,default:!1}},emits:["update:modelValue","update:progress"],setup(t,{emit:A}){const e=t,n=A;function r(i){n("update:modelValue",i),i>=e.progress&&n("update:progress",i)}return(i,s)=>(p.openBlock(),p.createElementBlock("div",Zx,[p.createElementVNode("ul",jx,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(t.steps,(a,c)=>(p.openBlock(),p.createElementBlock("li",{key:c,class:p.normalizeClass(["progress-steps__step",{"progress-steps__step--disabled":c>t.progress+(t.reveal?1:0),"progress-steps__step--active":c===(t.modelValue||0)}])},[p.renderSlot(i.$slots,"step",{},()=>[p.createElementVNode("div",AO,[p.createElementVNode("input",{type:"radio",checked:c<=(t.progress||0),id:`step-${c}`,name:"step",class:"form-check-input",value:a.value,disabled:a.disabled||c>t.progress+(t.reveal?1:0),"read-only":a.readOnly,required:a.required,onChange:u=>r(c)},null,40,eO),p.createElementVNode("label",{for:`step-${c}`},[p.renderSlot(i.$slots,"button",{step:a},()=>[p.createElementVNode("span",{class:"btn rounded-circle",innerHTML:a.text},null,8,nO)])],8,tO),p.createElementVNode("label",{for:`step-${c}`},[p.renderSlot(i.$slots,"label",{step:a},()=>[p.createElementVNode("span",{class:"form-check-label",innerHTML:a.label},null,8,iO)])],8,rO)])])],2))),128))])]))}}),h3="";/*!
|
|
163
163
|
* html2canvas 1.4.1 <https://html2canvas.hertzen.com>
|
|
164
164
|
* Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
|
|
165
165
|
* Released under MIT License
|
|
@@ -180,4 +180,4 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
180
180
|
content: "" !important;
|
|
181
181
|
display: none !important;
|
|
182
182
|
}`,$N=function(t){JN(t,"."+Gf+GN+IC+`
|
|
183
|
-
.`+Wf+WN+IC)},JN=function(t,A){var e=t.ownerDocument;if(e){var n=e.createElement("style");n.textContent=A,t.appendChild(n)}},SC=function(){function t(){}return t.getOrigin=function(A){var e=t._link;return e?(e.href=A,e.href=e.href,e.protocol+e.hostname+e.port):"about:blank"},t.isSameOrigin=function(A){return t.getOrigin(A)===t._origin},t.setContext=function(A){t._link=A.document.createElement("a"),t._origin=t.getOrigin(A.location.href)},t._origin="about:blank",t}(),XN=function(){function t(A,e){this.context=A,this._options=e,this._cache={}}return t.prototype.addImage=function(A){var e=Promise.resolve();return this.has(A)||(Jf(A)||ZN(A))&&(this._cache[A]=this.loadImage(A)).catch(function(){}),e},t.prototype.match=function(A){return this._cache[A]},t.prototype.loadImage=function(A){return at(this,void 0,void 0,function(){var e,n,r,i,s=this;return Ze(this,function(a){switch(a.label){case 0:return e=SC.isSameOrigin(A),n=!$f(A)&&this._options.useCORS===!0&&Ve.SUPPORT_CORS_IMAGES&&!e,r=!$f(A)&&!e&&!Jf(A)&&typeof this._options.proxy=="string"&&Ve.SUPPORT_CORS_XHR&&!n,!e&&this._options.allowTaint===!1&&!$f(A)&&!Jf(A)&&!r&&!n?[2]:(i=A,r?[4,this.proxy(i)]:[3,2]);case 1:i=a.sent(),a.label=2;case 2:return this.context.logger.debug("Added image "+A.substring(0,256)),[4,new Promise(function(c,u){var f=new Image;f.onload=function(){return c(f)},f.onerror=u,(jN(i)||n)&&(f.crossOrigin="anonymous"),f.src=i,f.complete===!0&&setTimeout(function(){return c(f)},500),s._options.imageTimeout>0&&setTimeout(function(){return u("Timed out ("+s._options.imageTimeout+"ms) loading image")},s._options.imageTimeout)})];case 3:return[2,a.sent()]}})})},t.prototype.has=function(A){return typeof this._cache[A]<"u"},t.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},t.prototype.proxy=function(A){var e=this,n=this._options.proxy;if(!n)throw new Error("No proxy defined");var r=A.substring(0,256);return new Promise(function(i,s){var a=Ve.SUPPORT_RESPONSE_TYPE?"blob":"text",c=new XMLHttpRequest;c.onload=function(){if(c.status===200)if(a==="text")i(c.response);else{var h=new FileReader;h.addEventListener("load",function(){return i(h.result)},!1),h.addEventListener("error",function(g){return s(g)},!1),h.readAsDataURL(c.response)}else s("Failed to proxy resource "+r+" with status code "+c.status)},c.onerror=s;var u=n.indexOf("?")>-1?"&":"?";if(c.open("GET",""+n+u+"url="+encodeURIComponent(A)+"&responseType="+a),a!=="text"&&c instanceof XMLHttpRequest&&(c.responseType=a),e._options.imageTimeout){var f=e._options.imageTimeout;c.timeout=f,c.ontimeout=function(){return s("Timed out ("+f+"ms) proxying "+r)}}c.send()})},t}(),YN=/^data:image\/svg\+xml/i,zN=/^data:image\/.*;base64,/i,qN=/^data:image\/.*/i,ZN=function(t){return Ve.SUPPORT_SVG_DRAWING||!AM(t)},$f=function(t){return qN.test(t)},jN=function(t){return zN.test(t)},Jf=function(t){return t.substr(0,4)==="blob"},AM=function(t){return t.substr(-3).toLowerCase()==="svg"||YN.test(t)},Z=function(){function t(A,e){this.type=0,this.x=A,this.y=e}return t.prototype.add=function(A,e){return new t(this.x+A,this.y+e)},t}(),ns=function(t,A,e){return new Z(t.x+(A.x-t.x)*e,t.y+(A.y-t.y)*e)},Cl=function(){function t(A,e,n,r){this.type=1,this.start=A,this.startControl=e,this.endControl=n,this.end=r}return t.prototype.subdivide=function(A,e){var n=ns(this.start,this.startControl,A),r=ns(this.startControl,this.endControl,A),i=ns(this.endControl,this.end,A),s=ns(n,r,A),a=ns(r,i,A),c=ns(s,a,A);return e?new t(this.start,n,s,c):new t(c,a,i,this.end)},t.prototype.add=function(A,e){return new t(this.start.add(A,e),this.startControl.add(A,e),this.endControl.add(A,e),this.end.add(A,e))},t.prototype.reverse=function(){return new t(this.end,this.endControl,this.startControl,this.start)},t}(),Gt=function(t){return t.type===1},eM=function(){function t(A){var e=A.styles,n=A.bounds,r=lo(e.borderTopLeftRadius,n.width,n.height),i=r[0],s=r[1],a=lo(e.borderTopRightRadius,n.width,n.height),c=a[0],u=a[1],f=lo(e.borderBottomRightRadius,n.width,n.height),h=f[0],g=f[1],m=lo(e.borderBottomLeftRadius,n.width,n.height),w=m[0],F=m[1],b=[];b.push((i+c)/n.width),b.push((w+h)/n.width),b.push((s+F)/n.height),b.push((u+g)/n.height);var I=Math.max.apply(Math,b);I>1&&(i/=I,s/=I,c/=I,u/=I,h/=I,g/=I,w/=I,F/=I);var O=n.width-c,T=n.height-g,E=n.width-h,H=n.height-F,U=e.borderTopWidth,M=e.borderRightWidth,P=e.borderBottomWidth,N=e.borderLeftWidth,sA=ie(e.paddingTop,A.bounds.width),mA=ie(e.paddingRight,A.bounds.width),nA=ie(e.paddingBottom,A.bounds.width),cA=ie(e.paddingLeft,A.bounds.width);this.topLeftBorderDoubleOuterBox=i>0||s>0?ce(n.left+N/3,n.top+U/3,i-N/3,s-U/3,XA.TOP_LEFT):new Z(n.left+N/3,n.top+U/3),this.topRightBorderDoubleOuterBox=i>0||s>0?ce(n.left+O,n.top+U/3,c-M/3,u-U/3,XA.TOP_RIGHT):new Z(n.left+n.width-M/3,n.top+U/3),this.bottomRightBorderDoubleOuterBox=h>0||g>0?ce(n.left+E,n.top+T,h-M/3,g-P/3,XA.BOTTOM_RIGHT):new Z(n.left+n.width-M/3,n.top+n.height-P/3),this.bottomLeftBorderDoubleOuterBox=w>0||F>0?ce(n.left+N/3,n.top+H,w-N/3,F-P/3,XA.BOTTOM_LEFT):new Z(n.left+N/3,n.top+n.height-P/3),this.topLeftBorderDoubleInnerBox=i>0||s>0?ce(n.left+N*2/3,n.top+U*2/3,i-N*2/3,s-U*2/3,XA.TOP_LEFT):new Z(n.left+N*2/3,n.top+U*2/3),this.topRightBorderDoubleInnerBox=i>0||s>0?ce(n.left+O,n.top+U*2/3,c-M*2/3,u-U*2/3,XA.TOP_RIGHT):new Z(n.left+n.width-M*2/3,n.top+U*2/3),this.bottomRightBorderDoubleInnerBox=h>0||g>0?ce(n.left+E,n.top+T,h-M*2/3,g-P*2/3,XA.BOTTOM_RIGHT):new Z(n.left+n.width-M*2/3,n.top+n.height-P*2/3),this.bottomLeftBorderDoubleInnerBox=w>0||F>0?ce(n.left+N*2/3,n.top+H,w-N*2/3,F-P*2/3,XA.BOTTOM_LEFT):new Z(n.left+N*2/3,n.top+n.height-P*2/3),this.topLeftBorderStroke=i>0||s>0?ce(n.left+N/2,n.top+U/2,i-N/2,s-U/2,XA.TOP_LEFT):new Z(n.left+N/2,n.top+U/2),this.topRightBorderStroke=i>0||s>0?ce(n.left+O,n.top+U/2,c-M/2,u-U/2,XA.TOP_RIGHT):new Z(n.left+n.width-M/2,n.top+U/2),this.bottomRightBorderStroke=h>0||g>0?ce(n.left+E,n.top+T,h-M/2,g-P/2,XA.BOTTOM_RIGHT):new Z(n.left+n.width-M/2,n.top+n.height-P/2),this.bottomLeftBorderStroke=w>0||F>0?ce(n.left+N/2,n.top+H,w-N/2,F-P/2,XA.BOTTOM_LEFT):new Z(n.left+N/2,n.top+n.height-P/2),this.topLeftBorderBox=i>0||s>0?ce(n.left,n.top,i,s,XA.TOP_LEFT):new Z(n.left,n.top),this.topRightBorderBox=c>0||u>0?ce(n.left+O,n.top,c,u,XA.TOP_RIGHT):new Z(n.left+n.width,n.top),this.bottomRightBorderBox=h>0||g>0?ce(n.left+E,n.top+T,h,g,XA.BOTTOM_RIGHT):new Z(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=w>0||F>0?ce(n.left,n.top+H,w,F,XA.BOTTOM_LEFT):new Z(n.left,n.top+n.height),this.topLeftPaddingBox=i>0||s>0?ce(n.left+N,n.top+U,Math.max(0,i-N),Math.max(0,s-U),XA.TOP_LEFT):new Z(n.left+N,n.top+U),this.topRightPaddingBox=c>0||u>0?ce(n.left+Math.min(O,n.width-M),n.top+U,O>n.width+M?0:Math.max(0,c-M),Math.max(0,u-U),XA.TOP_RIGHT):new Z(n.left+n.width-M,n.top+U),this.bottomRightPaddingBox=h>0||g>0?ce(n.left+Math.min(E,n.width-N),n.top+Math.min(T,n.height-P),Math.max(0,h-M),Math.max(0,g-P),XA.BOTTOM_RIGHT):new Z(n.left+n.width-M,n.top+n.height-P),this.bottomLeftPaddingBox=w>0||F>0?ce(n.left+N,n.top+Math.min(H,n.height-P),Math.max(0,w-N),Math.max(0,F-P),XA.BOTTOM_LEFT):new Z(n.left+N,n.top+n.height-P),this.topLeftContentBox=i>0||s>0?ce(n.left+N+cA,n.top+U+sA,Math.max(0,i-(N+cA)),Math.max(0,s-(U+sA)),XA.TOP_LEFT):new Z(n.left+N+cA,n.top+U+sA),this.topRightContentBox=c>0||u>0?ce(n.left+Math.min(O,n.width+N+cA),n.top+U+sA,O>n.width+N+cA?0:c-N+cA,u-(U+sA),XA.TOP_RIGHT):new Z(n.left+n.width-(M+mA),n.top+U+sA),this.bottomRightContentBox=h>0||g>0?ce(n.left+Math.min(E,n.width-(N+cA)),n.top+Math.min(T,n.height+U+sA),Math.max(0,h-(M+mA)),g-(P+nA),XA.BOTTOM_RIGHT):new Z(n.left+n.width-(M+mA),n.top+n.height-(P+nA)),this.bottomLeftContentBox=w>0||F>0?ce(n.left+N+cA,n.top+H,Math.max(0,w-(N+cA)),F-(P+nA),XA.BOTTOM_LEFT):new Z(n.left+N+cA,n.top+n.height-(P+nA))}return t}(),XA;(function(t){t[t.TOP_LEFT=0]="TOP_LEFT",t[t.TOP_RIGHT=1]="TOP_RIGHT",t[t.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",t[t.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(XA||(XA={}));var ce=function(t,A,e,n,r){var i=4*((Math.sqrt(2)-1)/3),s=e*i,a=n*i,c=t+e,u=A+n;switch(r){case XA.TOP_LEFT:return new Cl(new Z(t,u),new Z(t,u-a),new Z(c-s,A),new Z(c,A));case XA.TOP_RIGHT:return new Cl(new Z(t,A),new Z(t+s,A),new Z(c,u-a),new Z(c,u));case XA.BOTTOM_RIGHT:return new Cl(new Z(c,A),new Z(c,A+a),new Z(t+s,u),new Z(t,u));case XA.BOTTOM_LEFT:default:return new Cl(new Z(c,u),new Z(c-s,u),new Z(t,A+a),new Z(t,A))}},yl=function(t){return[t.topLeftBorderBox,t.topRightBorderBox,t.bottomRightBorderBox,t.bottomLeftBorderBox]},tM=function(t){return[t.topLeftContentBox,t.topRightContentBox,t.bottomRightContentBox,t.bottomLeftContentBox]},El=function(t){return[t.topLeftPaddingBox,t.topRightPaddingBox,t.bottomRightPaddingBox,t.bottomLeftPaddingBox]},nM=function(){function t(A,e,n){this.offsetX=A,this.offsetY=e,this.matrix=n,this.type=0,this.target=6}return t}(),Ql=function(){function t(A,e){this.path=A,this.target=e,this.type=1}return t}(),rM=function(){function t(A){this.opacity=A,this.type=2,this.target=6}return t}(),iM=function(t){return t.type===0},TC=function(t){return t.type===1},sM=function(t){return t.type===2},_C=function(t,A){return t.length===A.length?t.some(function(e,n){return e===A[n]}):!1},oM=function(t,A,e,n,r){return t.map(function(i,s){switch(s){case 0:return i.add(A,e);case 1:return i.add(A+n,e);case 2:return i.add(A+n,e+r);case 3:return i.add(A,e+r)}return i})},xC=function(){function t(A){this.element=A,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return t}(),OC=function(){function t(A,e){if(this.container=A,this.parent=e,this.effects=[],this.curves=new eM(this.container),this.container.styles.opacity<1&&this.effects.push(new rM(this.container.styles.opacity)),this.container.styles.transform!==null){var n=this.container.bounds.left+this.container.styles.transformOrigin[0].number,r=this.container.bounds.top+this.container.styles.transformOrigin[1].number,i=this.container.styles.transform;this.effects.push(new nM(n,r,i))}if(this.container.styles.overflowX!==0){var s=yl(this.curves),a=El(this.curves);_C(s,a)?this.effects.push(new Ql(s,6)):(this.effects.push(new Ql(s,2)),this.effects.push(new Ql(a,4)))}}return t.prototype.getEffects=function(A){for(var e=[2,3].indexOf(this.container.styles.position)===-1,n=this.parent,r=this.effects.slice(0);n;){var i=n.effects.filter(function(c){return!TC(c)});if(e||n.container.styles.position!==0||!n.parent){if(r.unshift.apply(r,i),e=[2,3].indexOf(n.container.styles.position)===-1,n.container.styles.overflowX!==0){var s=yl(n.curves),a=El(n.curves);_C(s,a)||r.unshift(new Ql(a,6))}}else r.unshift.apply(r,i);n=n.parent}return r.filter(function(c){return Ie(c.target,A)})},t}(),Xf=function(t,A,e,n){t.container.elements.forEach(function(r){var i=Ie(r.flags,4),s=Ie(r.flags,2),a=new OC(r,t);Ie(r.styles.display,2048)&&n.push(a);var c=Ie(r.flags,8)?[]:n;if(i||s){var u=i||r.styles.isPositioned()?e:A,f=new xC(a);if(r.styles.isPositioned()||r.styles.opacity<1||r.styles.isTransformed()){var h=r.styles.zIndex.order;if(h<0){var g=0;u.negativeZIndex.some(function(w,F){return h>w.element.container.styles.zIndex.order?(g=F,!1):g>0}),u.negativeZIndex.splice(g,0,f)}else if(h>0){var m=0;u.positiveZIndex.some(function(w,F){return h>=w.element.container.styles.zIndex.order?(m=F+1,!1):m>0}),u.positiveZIndex.splice(m,0,f)}else u.zeroOrAutoZIndexOrTransformedOrOpacity.push(f)}else r.styles.isFloating()?u.nonPositionedFloats.push(f):u.nonPositionedInlineLevel.push(f);Xf(a,f,i?f:e,c)}else r.styles.isInlineLevel()?A.inlineLevel.push(a):A.nonInlineLevel.push(a),Xf(a,A,e,c);Ie(r.flags,8)&&LC(r,c)})},LC=function(t,A){for(var e=t instanceof Nf?t.start:1,n=t instanceof Nf?t.reversed:!1,r=0;r<A.length;r++){var i=A[r];i.container instanceof iC&&typeof i.container.value=="number"&&i.container.value!==0&&(e=i.container.value),i.listValue=go(e,i.container.styles.listStyleType,!0),e+=n?-1:1}},aM=function(t){var A=new OC(t,null),e=new xC(A),n=[];return Xf(A,e,e,n),LC(A.container,n),e},HC=function(t,A){switch(A){case 0:return Wt(t.topLeftBorderBox,t.topLeftPaddingBox,t.topRightBorderBox,t.topRightPaddingBox);case 1:return Wt(t.topRightBorderBox,t.topRightPaddingBox,t.bottomRightBorderBox,t.bottomRightPaddingBox);case 2:return Wt(t.bottomRightBorderBox,t.bottomRightPaddingBox,t.bottomLeftBorderBox,t.bottomLeftPaddingBox);case 3:default:return Wt(t.bottomLeftBorderBox,t.bottomLeftPaddingBox,t.topLeftBorderBox,t.topLeftPaddingBox)}},lM=function(t,A){switch(A){case 0:return Wt(t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox,t.topRightBorderBox,t.topRightBorderDoubleOuterBox);case 1:return Wt(t.topRightBorderBox,t.topRightBorderDoubleOuterBox,t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox);case 2:return Wt(t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox,t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox);case 3:default:return Wt(t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox,t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox)}},cM=function(t,A){switch(A){case 0:return Wt(t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox,t.topRightBorderDoubleInnerBox,t.topRightPaddingBox);case 1:return Wt(t.topRightBorderDoubleInnerBox,t.topRightPaddingBox,t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox);case 2:return Wt(t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox,t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox);case 3:default:return Wt(t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox,t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox)}},uM=function(t,A){switch(A){case 0:return Fl(t.topLeftBorderStroke,t.topRightBorderStroke);case 1:return Fl(t.topRightBorderStroke,t.bottomRightBorderStroke);case 2:return Fl(t.bottomRightBorderStroke,t.bottomLeftBorderStroke);case 3:default:return Fl(t.bottomLeftBorderStroke,t.topLeftBorderStroke)}},Fl=function(t,A){var e=[];return Gt(t)?e.push(t.subdivide(.5,!1)):e.push(t),Gt(A)?e.push(A.subdivide(.5,!0)):e.push(A),e},Wt=function(t,A,e,n){var r=[];return Gt(t)?r.push(t.subdivide(.5,!1)):r.push(t),Gt(e)?r.push(e.subdivide(.5,!0)):r.push(e),Gt(n)?r.push(n.subdivide(.5,!0).reverse()):r.push(n),Gt(A)?r.push(A.subdivide(.5,!1).reverse()):r.push(A),r},kC=function(t){var A=t.bounds,e=t.styles;return A.add(e.borderLeftWidth,e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth),-(e.borderTopWidth+e.borderBottomWidth))},bl=function(t){var A=t.styles,e=t.bounds,n=ie(A.paddingLeft,e.width),r=ie(A.paddingRight,e.width),i=ie(A.paddingTop,e.width),s=ie(A.paddingBottom,e.width);return e.add(n+A.borderLeftWidth,i+A.borderTopWidth,-(A.borderRightWidth+A.borderLeftWidth+n+r),-(A.borderTopWidth+A.borderBottomWidth+i+s))},fM=function(t,A){return t===0?A.bounds:t===2?bl(A):kC(A)},dM=function(t,A){return t===0?A.bounds:t===2?bl(A):kC(A)},Yf=function(t,A,e){var n=fM(is(t.styles.backgroundOrigin,A),t),r=dM(is(t.styles.backgroundClip,A),t),i=hM(is(t.styles.backgroundSize,A),e,n),s=i[0],a=i[1],c=lo(is(t.styles.backgroundPosition,A),n.width-s,n.height-a),u=pM(is(t.styles.backgroundRepeat,A),c,i,n,r),f=Math.round(n.left+c[0]),h=Math.round(n.top+c[1]);return[u,f,h,s,a]},rs=function(t){return Ae(t)&&t.value===ji.AUTO},Ul=function(t){return typeof t=="number"},hM=function(t,A,e){var n=A[0],r=A[1],i=A[2],s=t[0],a=t[1];if(!s)return[0,0];if(be(s)&&a&&be(a))return[ie(s,e.width),ie(a,e.height)];var c=Ul(i);if(Ae(s)&&(s.value===ji.CONTAIN||s.value===ji.COVER)){if(Ul(i)){var u=e.width/e.height;return u<i!=(s.value===ji.COVER)?[e.width,e.width/i]:[e.height*i,e.height]}return[e.width,e.height]}var f=Ul(n),h=Ul(r),g=f||h;if(rs(s)&&(!a||rs(a))){if(f&&h)return[n,r];if(!c&&!g)return[e.width,e.height];if(g&&c){var m=f?n:r*i,w=h?r:n/i;return[m,w]}var F=f?n:e.width,b=h?r:e.height;return[F,b]}if(c){var I=0,O=0;return be(s)?I=ie(s,e.width):be(a)&&(O=ie(a,e.height)),rs(s)?I=O*i:(!a||rs(a))&&(O=I/i),[I,O]}var T=null,E=null;if(be(s)?T=ie(s,e.width):a&&be(a)&&(E=ie(a,e.height)),T!==null&&(!a||rs(a))&&(E=f&&h?T/n*r:e.height),E!==null&&rs(s)&&(T=f&&h?E/r*n:e.width),T!==null&&E!==null)return[T,E];throw new Error("Unable to calculate background-size for element")},is=function(t,A){var e=t[A];return typeof e>"u"?t[0]:e},pM=function(t,A,e,n,r){var i=A[0],s=A[1],a=e[0],c=e[1];switch(t){case 2:return[new Z(Math.round(n.left),Math.round(n.top+s)),new Z(Math.round(n.left+n.width),Math.round(n.top+s)),new Z(Math.round(n.left+n.width),Math.round(c+n.top+s)),new Z(Math.round(n.left),Math.round(c+n.top+s))];case 3:return[new Z(Math.round(n.left+i),Math.round(n.top)),new Z(Math.round(n.left+i+a),Math.round(n.top)),new Z(Math.round(n.left+i+a),Math.round(n.height+n.top)),new Z(Math.round(n.left+i),Math.round(n.height+n.top))];case 1:return[new Z(Math.round(n.left+i),Math.round(n.top+s)),new Z(Math.round(n.left+i+a),Math.round(n.top+s)),new Z(Math.round(n.left+i+a),Math.round(n.top+s+c)),new Z(Math.round(n.left+i),Math.round(n.top+s+c))];default:return[new Z(Math.round(r.left),Math.round(r.top)),new Z(Math.round(r.left+r.width),Math.round(r.top)),new Z(Math.round(r.left+r.width),Math.round(r.height+r.top)),new Z(Math.round(r.left),Math.round(r.height+r.top))]}},gM="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",NC="Hidden Text",BM=function(){function t(A){this._data={},this._document=A}return t.prototype.parseMetrics=function(A,e){var n=this._document.createElement("div"),r=this._document.createElement("img"),i=this._document.createElement("span"),s=this._document.body;n.style.visibility="hidden",n.style.fontFamily=A,n.style.fontSize=e,n.style.margin="0",n.style.padding="0",n.style.whiteSpace="nowrap",s.appendChild(n),r.src=gM,r.width=1,r.height=1,r.style.margin="0",r.style.padding="0",r.style.verticalAlign="baseline",i.style.fontFamily=A,i.style.fontSize=e,i.style.margin="0",i.style.padding="0",i.appendChild(this._document.createTextNode(NC)),n.appendChild(i),n.appendChild(r);var a=r.offsetTop-i.offsetTop+2;n.removeChild(i),n.appendChild(this._document.createTextNode(NC)),n.style.lineHeight="normal",r.style.verticalAlign="super";var c=r.offsetTop-n.offsetTop+2;return s.removeChild(n),{baseline:a,middle:c}},t.prototype.getMetrics=function(A,e){var n=A+" "+e;return typeof this._data[n]>"u"&&(this._data[n]=this.parseMetrics(A,e)),this._data[n]},t}(),MC=function(){function t(A,e){this.context=A,this.options=e}return t}(),mM=1e4,wM=function(t){ln(A,t);function A(e,n){var r=t.call(this,e,n)||this;return r._activeEffects=[],r.canvas=n.canvas?n.canvas:document.createElement("canvas"),r.ctx=r.canvas.getContext("2d"),n.canvas||(r.canvas.width=Math.floor(n.width*n.scale),r.canvas.height=Math.floor(n.height*n.scale),r.canvas.style.width=n.width+"px",r.canvas.style.height=n.height+"px"),r.fontMetrics=new BM(document),r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-n.x,-n.y),r.ctx.textBaseline="bottom",r._activeEffects=[],r.context.logger.debug("Canvas renderer initialized ("+n.width+"x"+n.height+") with scale "+n.scale),r}return A.prototype.applyEffects=function(e){for(var n=this;this._activeEffects.length;)this.popEffect();e.forEach(function(r){return n.applyEffect(r)})},A.prototype.applyEffect=function(e){this.ctx.save(),sM(e)&&(this.ctx.globalAlpha=e.opacity),iM(e)&&(this.ctx.translate(e.offsetX,e.offsetY),this.ctx.transform(e.matrix[0],e.matrix[1],e.matrix[2],e.matrix[3],e.matrix[4],e.matrix[5]),this.ctx.translate(-e.offsetX,-e.offsetY)),TC(e)&&(this.path(e.path),this.ctx.clip()),this._activeEffects.push(e)},A.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},A.prototype.renderStack=function(e){return at(this,void 0,void 0,function(){var n;return Ze(this,function(r){switch(r.label){case 0:return n=e.element.container.styles,n.isVisible()?[4,this.renderStackContent(e)]:[3,2];case 1:r.sent(),r.label=2;case 2:return[2]}})})},A.prototype.renderNode=function(e){return at(this,void 0,void 0,function(){return Ze(this,function(n){switch(n.label){case 0:if(Ie(e.container.flags,16))debugger;return e.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(e)]:[3,3];case 1:return n.sent(),[4,this.renderNodeContent(e)];case 2:n.sent(),n.label=3;case 3:return[2]}})})},A.prototype.renderTextWithLetterSpacing=function(e,n,r){var i=this;if(n===0)this.ctx.fillText(e.text,e.bounds.left,e.bounds.top+r);else{var s=kf(e.text);s.reduce(function(a,c){return i.ctx.fillText(c,a,e.bounds.top+r),a+i.ctx.measureText(c).width},e.bounds.left)}},A.prototype.createFontStyle=function(e){var n=e.fontVariant.filter(function(s){return s==="normal"||s==="small-caps"}).join(""),r=FM(e.fontFamily).join(", "),i=ao(e.fontSize)?""+e.fontSize.number+e.fontSize.unit:e.fontSize.number+"px";return[[e.fontStyle,n,e.fontWeight,i,r].join(" "),r,i]},A.prototype.renderTextNode=function(e,n){return at(this,void 0,void 0,function(){var r,i,s,a,c,u,f,h,g=this;return Ze(this,function(m){return r=this.createFontStyle(n),i=r[0],s=r[1],a=r[2],this.ctx.font=i,this.ctx.direction=n.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",c=this.fontMetrics.getMetrics(s,a),u=c.baseline,f=c.middle,h=n.paintOrder,e.textBounds.forEach(function(w){h.forEach(function(F){switch(F){case 0:g.ctx.fillStyle=ke(n.color),g.renderTextWithLetterSpacing(w,n.letterSpacing,u);var b=n.textShadow;b.length&&w.text.trim().length&&(b.slice(0).reverse().forEach(function(I){g.ctx.shadowColor=ke(I.color),g.ctx.shadowOffsetX=I.offsetX.number*g.options.scale,g.ctx.shadowOffsetY=I.offsetY.number*g.options.scale,g.ctx.shadowBlur=I.blur.number,g.renderTextWithLetterSpacing(w,n.letterSpacing,u)}),g.ctx.shadowColor="",g.ctx.shadowOffsetX=0,g.ctx.shadowOffsetY=0,g.ctx.shadowBlur=0),n.textDecorationLine.length&&(g.ctx.fillStyle=ke(n.textDecorationColor||n.color),n.textDecorationLine.forEach(function(I){switch(I){case 1:g.ctx.fillRect(w.bounds.left,Math.round(w.bounds.top+u),w.bounds.width,1);break;case 2:g.ctx.fillRect(w.bounds.left,Math.round(w.bounds.top),w.bounds.width,1);break;case 3:g.ctx.fillRect(w.bounds.left,Math.ceil(w.bounds.top+f),w.bounds.width,1);break}}));break;case 1:n.webkitTextStrokeWidth&&w.text.trim().length&&(g.ctx.strokeStyle=ke(n.webkitTextStrokeColor),g.ctx.lineWidth=n.webkitTextStrokeWidth,g.ctx.lineJoin=window.chrome?"miter":"round",g.ctx.strokeText(w.text,w.bounds.left,w.bounds.top+u)),g.ctx.strokeStyle="",g.ctx.lineWidth=0,g.ctx.lineJoin="miter";break}})}),[2]})})},A.prototype.renderReplacedElement=function(e,n,r){if(r&&e.intrinsicWidth>0&&e.intrinsicHeight>0){var i=bl(e),s=El(n);this.path(s),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(r,0,0,e.intrinsicWidth,e.intrinsicHeight,i.left,i.top,i.width,i.height),this.ctx.restore()}},A.prototype.renderNodeContent=function(e){return at(this,void 0,void 0,function(){var n,r,i,s,a,c,O,O,u,f,h,g,E,m,w,H,F,b,I,O,T,E,H;return Ze(this,function(U){switch(U.label){case 0:this.applyEffects(e.getEffects(4)),n=e.container,r=e.curves,i=n.styles,s=0,a=n.textNodes,U.label=1;case 1:return s<a.length?(c=a[s],[4,this.renderTextNode(c,i)]):[3,4];case 2:U.sent(),U.label=3;case 3:return s++,[3,1];case 4:if(!(n instanceof tC))return[3,8];U.label=5;case 5:return U.trys.push([5,7,,8]),[4,this.context.cache.match(n.src)];case 6:return O=U.sent(),this.renderReplacedElement(n,r,O),[3,8];case 7:return U.sent(),this.context.logger.error("Error loading image "+n.src),[3,8];case 8:if(n instanceof nC&&this.renderReplacedElement(n,r,n.canvas),!(n instanceof rC))return[3,12];U.label=9;case 9:return U.trys.push([9,11,,12]),[4,this.context.cache.match(n.svg)];case 10:return O=U.sent(),this.renderReplacedElement(n,r,O),[3,12];case 11:return U.sent(),this.context.logger.error("Error loading svg "+n.svg.substring(0,255)),[3,12];case 12:return n instanceof lC&&n.tree?(u=new A(this.context,{scale:this.options.scale,backgroundColor:n.backgroundColor,x:0,y:0,width:n.width,height:n.height}),[4,u.render(n.tree)]):[3,14];case 13:f=U.sent(),n.width&&n.height&&this.ctx.drawImage(f,0,0,n.width,n.height,n.bounds.left,n.bounds.top,n.bounds.width,n.bounds.height),U.label=14;case 14:if(n instanceof Mf&&(h=Math.min(n.bounds.width,n.bounds.height),n.type===hl?n.checked&&(this.ctx.save(),this.path([new Z(n.bounds.left+h*.39363,n.bounds.top+h*.79),new Z(n.bounds.left+h*.16,n.bounds.top+h*.5549),new Z(n.bounds.left+h*.27347,n.bounds.top+h*.44071),new Z(n.bounds.left+h*.39694,n.bounds.top+h*.5649),new Z(n.bounds.left+h*.72983,n.bounds.top+h*.23),new Z(n.bounds.left+h*.84,n.bounds.top+h*.34085),new Z(n.bounds.left+h*.39363,n.bounds.top+h*.79)]),this.ctx.fillStyle=ke(sC),this.ctx.fill(),this.ctx.restore()):n.type===pl&&n.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(n.bounds.left+h/2,n.bounds.top+h/2,h/4,0,Math.PI*2,!0),this.ctx.fillStyle=ke(sC),this.ctx.fill(),this.ctx.restore())),CM(n)&&n.value.length){switch(g=this.createFontStyle(i),E=g[0],m=g[1],w=this.fontMetrics.getMetrics(E,m).baseline,this.ctx.font=E,this.ctx.fillStyle=ke(i.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=EM(n.styles.textAlign),H=bl(n),F=0,n.styles.textAlign){case 1:F+=H.width/2;break;case 2:F+=H.width;break}b=H.add(F,0,0,-H.height/2+1),this.ctx.save(),this.path([new Z(H.left,H.top),new Z(H.left+H.width,H.top),new Z(H.left+H.width,H.top+H.height),new Z(H.left,H.top+H.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new ho(n.value,b),i.letterSpacing,w),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!Ie(n.styles.display,2048))return[3,20];if(n.styles.listStyleImage===null)return[3,19];if(I=n.styles.listStyleImage,I.type!==0)return[3,18];O=void 0,T=I.url,U.label=15;case 15:return U.trys.push([15,17,,18]),[4,this.context.cache.match(T)];case 16:return O=U.sent(),this.ctx.drawImage(O,n.bounds.left-(O.width+10),n.bounds.top),[3,18];case 17:return U.sent(),this.context.logger.error("Error loading list-style-image "+T),[3,18];case 18:return[3,20];case 19:e.listValue&&n.styles.listStyleType!==-1&&(E=this.createFontStyle(i)[0],this.ctx.font=E,this.ctx.fillStyle=ke(i.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",H=new Wn(n.bounds.left,n.bounds.top+ie(n.styles.paddingTop,n.bounds.width),n.bounds.width,Nw(i.lineHeight,i.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new ho(e.listValue,H),i.letterSpacing,Nw(i.lineHeight,i.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),U.label=20;case 20:return[2]}})})},A.prototype.renderStackContent=function(e){return at(this,void 0,void 0,function(){var n,r,I,i,s,I,a,c,I,u,f,I,h,g,I,m,w,I,F,b,I;return Ze(this,function(O){switch(O.label){case 0:if(Ie(e.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(e.element)];case 1:O.sent(),n=0,r=e.negativeZIndex,O.label=2;case 2:return n<r.length?(I=r[n],[4,this.renderStack(I)]):[3,5];case 3:O.sent(),O.label=4;case 4:return n++,[3,2];case 5:return[4,this.renderNodeContent(e.element)];case 6:O.sent(),i=0,s=e.nonInlineLevel,O.label=7;case 7:return i<s.length?(I=s[i],[4,this.renderNode(I)]):[3,10];case 8:O.sent(),O.label=9;case 9:return i++,[3,7];case 10:a=0,c=e.nonPositionedFloats,O.label=11;case 11:return a<c.length?(I=c[a],[4,this.renderStack(I)]):[3,14];case 12:O.sent(),O.label=13;case 13:return a++,[3,11];case 14:u=0,f=e.nonPositionedInlineLevel,O.label=15;case 15:return u<f.length?(I=f[u],[4,this.renderStack(I)]):[3,18];case 16:O.sent(),O.label=17;case 17:return u++,[3,15];case 18:h=0,g=e.inlineLevel,O.label=19;case 19:return h<g.length?(I=g[h],[4,this.renderNode(I)]):[3,22];case 20:O.sent(),O.label=21;case 21:return h++,[3,19];case 22:m=0,w=e.zeroOrAutoZIndexOrTransformedOrOpacity,O.label=23;case 23:return m<w.length?(I=w[m],[4,this.renderStack(I)]):[3,26];case 24:O.sent(),O.label=25;case 25:return m++,[3,23];case 26:F=0,b=e.positiveZIndex,O.label=27;case 27:return F<b.length?(I=b[F],[4,this.renderStack(I)]):[3,30];case 28:O.sent(),O.label=29;case 29:return F++,[3,27];case 30:return[2]}})})},A.prototype.mask=function(e){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(e.slice(0).reverse()),this.ctx.closePath()},A.prototype.path=function(e){this.ctx.beginPath(),this.formatPath(e),this.ctx.closePath()},A.prototype.formatPath=function(e){var n=this;e.forEach(function(r,i){var s=Gt(r)?r.start:r;i===0?n.ctx.moveTo(s.x,s.y):n.ctx.lineTo(s.x,s.y),Gt(r)&&n.ctx.bezierCurveTo(r.startControl.x,r.startControl.y,r.endControl.x,r.endControl.y,r.end.x,r.end.y)})},A.prototype.renderRepeat=function(e,n,r,i){this.path(e),this.ctx.fillStyle=n,this.ctx.translate(r,i),this.ctx.fill(),this.ctx.translate(-r,-i)},A.prototype.resizeImage=function(e,n,r){var i;if(e.width===n&&e.height===r)return e;var s=(i=this.canvas.ownerDocument)!==null&&i!==void 0?i:document,a=s.createElement("canvas");a.width=Math.max(1,n),a.height=Math.max(1,r);var c=a.getContext("2d");return c.drawImage(e,0,0,e.width,e.height,0,0,n,r),a},A.prototype.renderBackgroundImage=function(e){return at(this,void 0,void 0,function(){var n,r,i,s,a,c;return Ze(this,function(u){switch(u.label){case 0:n=e.styles.backgroundImage.length-1,r=function(f){var h,g,m,sA,RA,HA,cA,LA,P,w,sA,RA,HA,cA,LA,F,b,I,O,T,E,H,U,M,P,N,sA,mA,nA,cA,LA,se,RA,HA,rA,BA,YA,VA,GA,DA,qA,WA;return Ze(this,function(ue){switch(ue.label){case 0:if(f.type!==0)return[3,5];h=void 0,g=f.url,ue.label=1;case 1:return ue.trys.push([1,3,,4]),[4,i.context.cache.match(g)];case 2:return h=ue.sent(),[3,4];case 3:return ue.sent(),i.context.logger.error("Error loading background-image "+g),[3,4];case 4:return h&&(m=Yf(e,n,[h.width,h.height,h.width/h.height]),sA=m[0],RA=m[1],HA=m[2],cA=m[3],LA=m[4],P=i.ctx.createPattern(i.resizeImage(h,cA,LA),"repeat"),i.renderRepeat(sA,P,RA,HA)),[3,6];case 5:iH(f)?(w=Yf(e,n,[null,null,null]),sA=w[0],RA=w[1],HA=w[2],cA=w[3],LA=w[4],F=AH(f.angle,cA,LA),b=F[0],I=F[1],O=F[2],T=F[3],E=F[4],H=document.createElement("canvas"),H.width=cA,H.height=LA,U=H.getContext("2d"),M=U.createLinearGradient(I,T,O,E),Uw(f.stops,b).forEach(function(Ne){return M.addColorStop(Ne.stop,ke(Ne.color))}),U.fillStyle=M,U.fillRect(0,0,cA,LA),cA>0&&LA>0&&(P=i.ctx.createPattern(H,"repeat"),i.renderRepeat(sA,P,RA,HA))):sH(f)&&(N=Yf(e,n,[null,null,null]),sA=N[0],mA=N[1],nA=N[2],cA=N[3],LA=N[4],se=f.position.length===0?[yf]:f.position,RA=ie(se[0],cA),HA=ie(se[se.length-1],LA),rA=eH(f,RA,HA,cA,LA),BA=rA[0],YA=rA[1],BA>0&&YA>0&&(VA=i.ctx.createRadialGradient(mA+RA,nA+HA,0,mA+RA,nA+HA,BA),Uw(f.stops,BA*2).forEach(function(Ne){return VA.addColorStop(Ne.stop,ke(Ne.color))}),i.path(sA),i.ctx.fillStyle=VA,BA!==YA?(GA=e.bounds.left+.5*e.bounds.width,DA=e.bounds.top+.5*e.bounds.height,qA=YA/BA,WA=1/qA,i.ctx.save(),i.ctx.translate(GA,DA),i.ctx.transform(1,0,0,qA,0,0),i.ctx.translate(-GA,-DA),i.ctx.fillRect(mA,WA*(nA-DA)+DA,cA,LA*WA),i.ctx.restore()):i.ctx.fill())),ue.label=6;case 6:return n--,[2]}})},i=this,s=0,a=e.styles.backgroundImage.slice(0).reverse(),u.label=1;case 1:return s<a.length?(c=a[s],[5,r(c)]):[3,4];case 2:u.sent(),u.label=3;case 3:return s++,[3,1];case 4:return[2]}})})},A.prototype.renderSolidBorder=function(e,n,r){return at(this,void 0,void 0,function(){return Ze(this,function(i){return this.path(HC(r,n)),this.ctx.fillStyle=ke(e),this.ctx.fill(),[2]})})},A.prototype.renderDoubleBorder=function(e,n,r,i){return at(this,void 0,void 0,function(){var s,a;return Ze(this,function(c){switch(c.label){case 0:return n<3?[4,this.renderSolidBorder(e,r,i)]:[3,2];case 1:return c.sent(),[2];case 2:return s=lM(i,r),this.path(s),this.ctx.fillStyle=ke(e),this.ctx.fill(),a=cM(i,r),this.path(a),this.ctx.fill(),[2]}})})},A.prototype.renderNodeBackgroundAndBorders=function(e){return at(this,void 0,void 0,function(){var n,r,i,s,a,c,u,f,h=this;return Ze(this,function(g){switch(g.label){case 0:return this.applyEffects(e.getEffects(2)),n=e.container.styles,r=!Ir(n.backgroundColor)||n.backgroundImage.length,i=[{style:n.borderTopStyle,color:n.borderTopColor,width:n.borderTopWidth},{style:n.borderRightStyle,color:n.borderRightColor,width:n.borderRightWidth},{style:n.borderBottomStyle,color:n.borderBottomColor,width:n.borderBottomWidth},{style:n.borderLeftStyle,color:n.borderLeftColor,width:n.borderLeftWidth}],s=yM(is(n.backgroundClip,0),e.curves),r||n.boxShadow.length?(this.ctx.save(),this.path(s),this.ctx.clip(),Ir(n.backgroundColor)||(this.ctx.fillStyle=ke(n.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(e.container)]):[3,2];case 1:g.sent(),this.ctx.restore(),n.boxShadow.slice(0).reverse().forEach(function(m){h.ctx.save();var w=yl(e.curves),F=m.inset?0:mM,b=oM(w,-F+(m.inset?1:-1)*m.spread.number,(m.inset?1:-1)*m.spread.number,m.spread.number*(m.inset?-2:2),m.spread.number*(m.inset?-2:2));m.inset?(h.path(w),h.ctx.clip(),h.mask(b)):(h.mask(w),h.ctx.clip(),h.path(b)),h.ctx.shadowOffsetX=m.offsetX.number+F,h.ctx.shadowOffsetY=m.offsetY.number,h.ctx.shadowColor=ke(m.color),h.ctx.shadowBlur=m.blur.number,h.ctx.fillStyle=m.inset?ke(m.color):"rgba(0,0,0,1)",h.ctx.fill(),h.ctx.restore()}),g.label=2;case 2:a=0,c=0,u=i,g.label=3;case 3:return c<u.length?(f=u[c],f.style!==0&&!Ir(f.color)&&f.width>0?f.style!==2?[3,5]:[4,this.renderDashedDottedBorder(f.color,f.width,a,e.curves,2)]:[3,11]):[3,13];case 4:return g.sent(),[3,11];case 5:return f.style!==3?[3,7]:[4,this.renderDashedDottedBorder(f.color,f.width,a,e.curves,3)];case 6:return g.sent(),[3,11];case 7:return f.style!==4?[3,9]:[4,this.renderDoubleBorder(f.color,f.width,a,e.curves)];case 8:return g.sent(),[3,11];case 9:return[4,this.renderSolidBorder(f.color,a,e.curves)];case 10:g.sent(),g.label=11;case 11:a++,g.label=12;case 12:return c++,[3,3];case 13:return[2]}})})},A.prototype.renderDashedDottedBorder=function(e,n,r,i,s){return at(this,void 0,void 0,function(){var a,c,u,f,h,g,m,w,F,b,I,O,T,E,H,U,H,U;return Ze(this,function(M){return this.ctx.save(),a=uM(i,r),c=HC(i,r),s===2&&(this.path(c),this.ctx.clip()),Gt(c[0])?(u=c[0].start.x,f=c[0].start.y):(u=c[0].x,f=c[0].y),Gt(c[1])?(h=c[1].end.x,g=c[1].end.y):(h=c[1].x,g=c[1].y),r===0||r===2?m=Math.abs(u-h):m=Math.abs(f-g),this.ctx.beginPath(),s===3?this.formatPath(a):this.formatPath(c.slice(0,2)),w=n<3?n*3:n*2,F=n<3?n*2:n,s===3&&(w=n,F=n),b=!0,m<=w*2?b=!1:m<=w*2+F?(I=m/(2*w+F),w*=I,F*=I):(O=Math.floor((m+F)/(w+F)),T=(m-O*w)/(O-1),E=(m-(O+1)*w)/O,F=E<=0||Math.abs(F-T)<Math.abs(F-E)?T:E),b&&(s===3?this.ctx.setLineDash([0,w+F]):this.ctx.setLineDash([w,F])),s===3?(this.ctx.lineCap="round",this.ctx.lineWidth=n):this.ctx.lineWidth=n*2+1.1,this.ctx.strokeStyle=ke(e),this.ctx.stroke(),this.ctx.setLineDash([]),s===2&&(Gt(c[0])&&(H=c[3],U=c[0],this.ctx.beginPath(),this.formatPath([new Z(H.end.x,H.end.y),new Z(U.start.x,U.start.y)]),this.ctx.stroke()),Gt(c[1])&&(H=c[1],U=c[2],this.ctx.beginPath(),this.formatPath([new Z(H.end.x,H.end.y),new Z(U.start.x,U.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},A.prototype.render=function(e){return at(this,void 0,void 0,function(){var n;return Ze(this,function(r){switch(r.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=ke(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),n=aM(e),[4,this.renderStack(n)];case 1:return r.sent(),this.applyEffects([]),[2,this.canvas]}})})},A}(MC),CM=function(t){return t instanceof aC||t instanceof oC?!0:t instanceof Mf&&t.type!==pl&&t.type!==hl},yM=function(t,A){switch(t){case 0:return yl(A);case 2:return tM(A);case 1:default:return El(A)}},EM=function(t){switch(t){case 1:return"center";case 2:return"right";case 0:default:return"left"}},QM=["-apple-system","system-ui"],FM=function(t){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?t.filter(function(A){return QM.indexOf(A)===-1}):t},bM=function(t){ln(A,t);function A(e,n){var r=t.call(this,e,n)||this;return r.canvas=n.canvas?n.canvas:document.createElement("canvas"),r.ctx=r.canvas.getContext("2d"),r.options=n,r.canvas.width=Math.floor(n.width*n.scale),r.canvas.height=Math.floor(n.height*n.scale),r.canvas.style.width=n.width+"px",r.canvas.style.height=n.height+"px",r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-n.x,-n.y),r.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+n.width+"x"+n.height+" at "+n.x+","+n.y+") with scale "+n.scale),r}return A.prototype.render=function(e){return at(this,void 0,void 0,function(){var n,r;return Ze(this,function(i){switch(i.label){case 0:return n=Hf(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,e),[4,UM(n)];case 1:return r=i.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=ke(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(r,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},A}(MC),UM=function(t){return new Promise(function(A,e){var n=new Image;n.onload=function(){A(n)},n.onerror=e,n.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(t))})},vM=function(){function t(A){var e=A.id,n=A.enabled;this.id=e,this.enabled=n,this.start=Date.now()}return t.prototype.debug=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,La([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},t.prototype.getTime=function(){return Date.now()-this.start},t.prototype.info=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,La([this.id,this.getTime()+"ms"],A))},t.prototype.warn=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,La([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},t.prototype.error=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,La([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},t.instances={},t}(),IM=function(){function t(A,e){var n;this.windowBounds=e,this.instanceName="#"+t.instanceCount++,this.logger=new vM({id:this.instanceName,enabled:A.logging}),this.cache=(n=A.cache)!==null&&n!==void 0?n:new XN(this,A)}return t.instanceCount=1,t}(),SM=function(t,A){return A===void 0&&(A={}),TM(t,A)};typeof window<"u"&&SC.setContext(window);var TM=function(t,A){return at(void 0,void 0,void 0,function(){var e,n,r,i,s,a,c,u,f,h,g,m,w,F,b,I,O,T,E,H,M,U,M,P,N,sA,mA,nA,cA,LA,se,RA,HA,rA,BA,YA,VA,GA,DA,qA;return Ze(this,function(WA){switch(WA.label){case 0:if(!t||typeof t!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(e=t.ownerDocument,!e)throw new Error("Element is not attached to a Document");if(n=e.defaultView,!n)throw new Error("Document is not attached to a Window");return r={allowTaint:(P=A.allowTaint)!==null&&P!==void 0?P:!1,imageTimeout:(N=A.imageTimeout)!==null&&N!==void 0?N:15e3,proxy:A.proxy,useCORS:(sA=A.useCORS)!==null&&sA!==void 0?sA:!1},i=ju({logging:(mA=A.logging)!==null&&mA!==void 0?mA:!0,cache:A.cache},r),s={windowWidth:(nA=A.windowWidth)!==null&&nA!==void 0?nA:n.innerWidth,windowHeight:(cA=A.windowHeight)!==null&&cA!==void 0?cA:n.innerHeight,scrollX:(LA=A.scrollX)!==null&&LA!==void 0?LA:n.pageXOffset,scrollY:(se=A.scrollY)!==null&&se!==void 0?se:n.pageYOffset},a=new Wn(s.scrollX,s.scrollY,s.windowWidth,s.windowHeight),c=new IM(i,a),u=(RA=A.foreignObjectRendering)!==null&&RA!==void 0?RA:!1,f={allowTaint:(HA=A.allowTaint)!==null&&HA!==void 0?HA:!1,onclone:A.onclone,ignoreElements:A.ignoreElements,inlineImages:u,copyStyles:u},c.logger.debug("Starting document clone with size "+a.width+"x"+a.height+" scrolled to "+-a.left+","+-a.top),h=new vC(c,t,f),g=h.clonedReferenceElement,g?[4,h.toIFrame(e,a)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return m=WA.sent(),w=Rf(g)||_N(g)?oO(g.ownerDocument):Ha(c,g),F=w.width,b=w.height,I=w.left,O=w.top,T=_M(c,g,A.backgroundColor),E={canvas:A.canvas,backgroundColor:T,scale:(BA=(rA=A.scale)!==null&&rA!==void 0?rA:n.devicePixelRatio)!==null&&BA!==void 0?BA:1,x:((YA=A.x)!==null&&YA!==void 0?YA:0)+I,y:((VA=A.y)!==null&&VA!==void 0?VA:0)+O,width:(GA=A.width)!==null&&GA!==void 0?GA:Math.ceil(F),height:(DA=A.height)!==null&&DA!==void 0?DA:Math.ceil(b)},u?(c.logger.debug("Document cloned, using foreign object rendering"),M=new bM(c,E),[4,M.render(g)]):[3,3];case 2:return H=WA.sent(),[3,5];case 3:return c.logger.debug("Document cloned, element located at "+I+","+O+" with size "+F+"x"+b+" using computed rendering"),c.logger.debug("Starting DOM parsing"),U=uC(c,g),T===U.styles.backgroundColor&&(U.styles.backgroundColor=Jn.TRANSPARENT),c.logger.debug("Starting renderer for element at "+E.x+","+E.y+" with size "+E.width+"x"+E.height),M=new wM(c,E),[4,M.render(U)];case 4:H=WA.sent(),WA.label=5;case 5:return(!((qA=A.removeContainer)!==null&&qA!==void 0)||qA)&&(vC.destroy(m)||c.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),c.logger.debug("Finished rendering"),[2,H]}})})},_M=function(t,A,e){var n=A.ownerDocument,r=n.documentElement?co(t,getComputedStyle(n.documentElement).backgroundColor):Jn.TRANSPARENT,i=n.body?co(t,getComputedStyle(n.body).backgroundColor):Jn.TRANSPARENT,s=typeof e=="string"?co(t,e):e===null?Jn.TRANSPARENT:4294967295;return A===n.documentElement?Ir(r)?Ir(i)?s:i:r:s};const xM=p.defineComponent({__name:"dom-renderer",props:{modelValue:{type:String,default:""},fixedWidth:{type:Number,default:0},renderUpdates:{type:Boolean,default:!1},exportToSvg:{type:Boolean,default:!1},debug:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:A}){const e=t,n=A,r=p.ref(),i=p.ref(""),s=p.ref();async function a(){if(r.value){const u=r.value,h=(await SM(u.firstElementChild,{backgroundColor:"rgba(0, 0, 0, 0)",scale:1,width:u.offsetWidth,height:u.offsetHeight})).toDataURL();if(n("update:modelValue",h),e.debug){const g=new Image;g.src=h,document.body.appendChild(g)}return h}return""}const c=vm.debounce(async()=>{i.value=await a()},300,{trailing:!0,leading:!1});return p.onMounted(()=>{const u=r.value;e.renderUpdates&&(s.value=new MutationObserver(async f=>{c()}),s.value.observe(u,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),setTimeout(()=>{c()},500)}),(u,f)=>(p.openBlock(),p.createElementBlock("div",{class:p.normalizeClass(["dom-renderer",{"off-screen":!t.debug}]),ref_key:"renderer",ref:r,style:p.normalizeStyle(t.fixedWidth>0?{width:`${t.fixedWidth}px`}:{})},[p.renderSlot(u.$slots,"default")],6))}}),OM={class:"link-sharing"},LM={key:0,class:"link-sharing__links container"},HM={class:"row"},kM={key:0,class:"col-12 col-md-6"},NM=["href"],MM={class:"caption"},DM={key:1,class:"col-12 col-md-6"},RM=["href"],KM={class:"caption"},PM={key:2,class:"col-12 col-md-6"},VM={class:"caption"},GM={key:3,class:"col-12 col-md-6"},WM=["href"],$M={class:"caption"},JM={key:4,class:"col-12 col-md-6"},XM=["href"],YM={class:"caption"},zM={key:5,class:"col-12 col-md-6"},qM={class:"caption"},ZM={key:6,class:"col-12 col-md-6"},jM=["href"],AD={class:"caption"},eD={key:1,class:"link-sharing__instructions pt-5"},tD={class:"row"},nD={class:"col-12 text-center py-0"},rD={class:"mb-5"},iD=t=>t.replace(/<(?:.|\n)*?>/gm,""),sD=p.defineComponent({__name:"link-sharing",props:{url:{type:String,default:""},subject:{type:String,default:""},hashtags:Array,text:{type:String,default:""},media:{type:String,default:""},services:{type:Object,default:{facebook:!0,instagram:!0,linkedin:!0,whatsapp:!0,mailto:!0,clipboard:!0,x:!0}}},setup(t){const A=t,e=p.ref(!1),n=p.computed(()=>encodeURIComponent(A.url));p.computed(()=>encodeURIComponent(A.media));const r=p.computed(()=>iD(A.text)),i=p.computed(()=>!!(navigator&&navigator.userAgent&&/Mobi|Android/i.test(navigator.userAgent)));async function s(){const a=document.createElement("textarea");document.body.appendChild(a),a.value=A.url,a.select(),a.setSelectionRange(0,99999),navigator.clipboard.writeText(a.value),document.body.removeChild(a)}return(a,c)=>{const u=p.resolveComponent("svg-icon");return p.openBlock(),p.createElementBlock("div",OM,[e.value?(p.openBlock(),p.createElementBlock("div",eD,[p.createElementVNode("div",tD,[p.createElementVNode("div",nD,[p.createElementVNode("div",rD,[p.createElementVNode("p",null,p.toDisplayString(a.$t("sharing.instructions",{service:"Instagram"})),1),p.createElementVNode("p",null,[p.createElementVNode("strong",null,p.toDisplayString(t.hashtags),1)])])])])])):(p.openBlock(),p.createElementBlock("div",LM,[p.createElementVNode("div",HM,[t.services.facebook?(p.openBlock(),p.createElementBlock("div",kM,[p.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`https://www.facebook.com/sharer.php?u=${n.value}`,target:"_blank",rel:"noopener"},[p.createVNode(u,{symbol:"facebook"}),p.createElementVNode("span",MM,p.toDisplayString(a.$t("sharing.facebook")),1)],8,NM)])):p.createCommentVNode("",!0),t.services.x?(p.openBlock(),p.createElementBlock("div",DM,[p.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`https://x.com/share?text=${t.subject}&url=${n.value}`,target:"_blank",rel:"noopener"},[p.createVNode(u,{symbol:"x-logo"}),p.createElementVNode("span",KM,p.toDisplayString(a.$t("sharing.x")),1)],8,RM)])):p.createCommentVNode("",!0),t.services.instagram?(p.openBlock(),p.createElementBlock("div",PM,[p.createElementVNode("button",{type:"button",class:"link-sharing__link btn btn-primary",onClick:c[0]||(c[0]=p.withModifiers(f=>e.value=!e.value,["prevent"]))},[p.createVNode(u,{symbol:"instagram"}),p.createElementVNode("span",VM,p.toDisplayString(a.$t("sharing.instagram")),1)])])):p.createCommentVNode("",!0),t.services.linkedin?(p.openBlock(),p.createElementBlock("div",GM,[p.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`https://www.linkedin.com/shareArticle?mini=true&url=${n.value}&title=${t.subject}`,target:"_blank",rel:"noopener"},[p.createVNode(u,{symbol:"linkedin"}),p.createElementVNode("span",$M,p.toDisplayString(a.$t("sharing.linkedin")),1)],8,WM)])):p.createCommentVNode("",!0),t.services.whatsapp&&i.value?(p.openBlock(),p.createElementBlock("div",JM,[p.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`whatsapp://send?text=${n.value}`,target:"_blank",rel:"noopener"},[p.createVNode(u,{symbol:"whatsapp"}),p.createElementVNode("span",YM,p.toDisplayString(a.$t("sharing.whatsapp")),1)],8,XM)])):p.createCommentVNode("",!0),t.services.clipboard?(p.openBlock(),p.createElementBlock("div",zM,[p.createElementVNode("button",{type:"button",class:"link-sharing__link btn btn-primary",onClick:p.withModifiers(s,["prevent","stop"])},[p.createVNode(u,{symbol:"copy"}),p.createElementVNode("span",qM,p.toDisplayString(a.$t("sharing.clipboard")),1)])])):p.createCommentVNode("",!0),t.services.mailto?(p.openBlock(),p.createElementBlock("div",ZM,[p.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`mailto:?subject=${t.subject}&body=${r.value}%0D%0A${t.url}`,target:"_blank",rel:"noopener"},[p.createVNode(u,{symbol:"mail"}),p.createElementVNode("span",AD,p.toDisplayString(a.$t("sharing.mailto")),1)],8,jM)])):p.createCommentVNode("",!0)])]))])}}}),p3="",oD={class:"base-form"},aD=p.defineComponent({__name:"base-form",props:{id:{},name:{},variant:{},disabled:{type:Boolean},pending:{type:Boolean}},setup(t){function A(r){console.log("input",r)}function e(r){console.log("reset",r)}function n(r){console.log("submit",r)}return(r,i)=>(p.openBlock(),p.createElementBlock("div",oD,[p.createElementVNode("form",{ref:"form",onInput:A,onReset:e,onSubmit:p.withModifiers(n,["prevent"])},[p.renderSlot(r.$slots,"default")],544)]))}}),g3="",lD={class:"modal-dialog__content d-flex flex-column"},cD={class:"modal-dialog__header d-flex p-3 border-bottom"},uD={key:0,class:"modal-dialog__title",id:"exampleModalLabel"},fD={class:"modal-dialog__body"},dD={key:0,class:"modal-dialog__footer d-flex p-3 border-top"},hD=p.defineComponent({__name:"modal-dialog",props:{modelValue:{type:Boolean,default:!1},modal:{type:Boolean,default:!0},size:{type:String,default:"md"},dismiss:{type:Boolean,default:!0},title:{type:String,default:""},footer:{type:Boolean,default:!0},classes:{type:String,default:""}},emits:["update:modelValue","confirm","cancel"],setup(t,{expose:A,emit:e}){const n=t,r=e,i=p.ref();function s(){var g,m;document.documentElement.style.setProperty("--scroll-position",`${Math.round(document.documentElement.scrollTop)}px`),n.modal?(g=i.value)==null||g.showModal():(m=i.value)==null||m.show(),r("update:modelValue",!0)}function a(){const g=i.value&&new KeyframeEffect(i.value,[{translate:"0 -100%",opacity:"0"}],{duration:320,easing:"ease",direction:"normal"}),m=new Animation(g,document.timeline);m.play(),m.addEventListener("finish",()=>{var w;(w=i.value)==null||w.close(),c()}),r("update:modelValue",!1)}function c(){const g=getComputedStyle(document.documentElement).getPropertyValue("--scroll-position");document.documentElement.scrollTo({top:parseInt(g,10),behavior:"instant"}),r("update:modelValue",!1)}function u(g){s(),r("confirm",g)}function f(){a(),r("cancel")}function h(g){const m=g.target;m&&m.nodeName==="DIALOG"&&a()}return p.watch(()=>n.modelValue,(g,m)=>{g&&g!==m?s():m&&a()},{immediate:!0}),p.onMounted(()=>{var g;(g=i.value)==null||g.addEventListener("cancel",m=>{m.preventDefault(),a()}),n.dismiss&&document.addEventListener("click",h),n.modelValue&&s()}),p.onBeforeUnmount(()=>{n.dismiss&&document.removeEventListener("click",h)}),A({show:s,close:a,confirm:u,cancel:f}),(g,m)=>(p.openBlock(),p.createElementBlock("dialog",{ref_key:"dialog",ref:i,class:p.normalizeClass(["modal-dialog",{[`modal-dialog--${t.size}`]:t.size}]),onClose:c},[p.createElementVNode("div",lD,[p.createElementVNode("div",cD,[t.title?(p.openBlock(),p.createElementBlock("h5",uD,p.toDisplayString(t.title),1)):p.createCommentVNode("",!0),p.createElementVNode("button",{type:"button",class:"btn-close ms-auto border-radius-none","aria-label":"Close",onClick:a})]),p.createElementVNode("div",fD,[p.renderSlot(g.$slots,"default")]),t.footer?(p.openBlock(),p.createElementBlock("div",dD,[p.renderSlot(g.$slots,"footer"),p.createElementVNode("button",{type:"button",class:"btn ms-auto",onClick:a},p.toDisplayString(g.$t("common.close")),1)])):p.createCommentVNode("",!0)])],34))}}),B3="";TA.Accordion=HE,TA.AccordionItem=TE,TA.AssetUploader=Gx,TA.BaseButton=NE,TA.BaseCamera=T_,TA.BaseCarousel=km,TA.BaseForm=aD,TA.BaseHeadline=CE,TA.BaseImage=wE,TA.BaseInput=KE,TA.BaseParagraph=EE,TA.CheckGroup=nQ,TA.DomRenderer=xM,TA.FileUpload=Ox,TA.InputCheckbox=YE,TA.InputColor=AS,TA.InputDatetime=jE,TA.InputDropdown=l_,TA.InputFile=gQ,TA.InputTextarea=WE,TA.LinkSharing=sD,TA.LoadingSpinner=BE,TA.MediaThumbnails=qx,TA.ModalDialog=hD,TA.ProgressSteps=sO,TA.RadioGroup=aQ,TA.RteEditor=z1,TA.SvgIcon=hE,TA.UploadGroup=Hm,Object.defineProperty(TA,Symbol.toStringTag,{value:"Module"})});
|
|
183
|
+
.`+Wf+WN+IC)},JN=function(t,A){var e=t.ownerDocument;if(e){var n=e.createElement("style");n.textContent=A,t.appendChild(n)}},SC=function(){function t(){}return t.getOrigin=function(A){var e=t._link;return e?(e.href=A,e.href=e.href,e.protocol+e.hostname+e.port):"about:blank"},t.isSameOrigin=function(A){return t.getOrigin(A)===t._origin},t.setContext=function(A){t._link=A.document.createElement("a"),t._origin=t.getOrigin(A.location.href)},t._origin="about:blank",t}(),XN=function(){function t(A,e){this.context=A,this._options=e,this._cache={}}return t.prototype.addImage=function(A){var e=Promise.resolve();return this.has(A)||(Jf(A)||ZN(A))&&(this._cache[A]=this.loadImage(A)).catch(function(){}),e},t.prototype.match=function(A){return this._cache[A]},t.prototype.loadImage=function(A){return at(this,void 0,void 0,function(){var e,n,r,i,s=this;return Ze(this,function(a){switch(a.label){case 0:return e=SC.isSameOrigin(A),n=!$f(A)&&this._options.useCORS===!0&&Ve.SUPPORT_CORS_IMAGES&&!e,r=!$f(A)&&!e&&!Jf(A)&&typeof this._options.proxy=="string"&&Ve.SUPPORT_CORS_XHR&&!n,!e&&this._options.allowTaint===!1&&!$f(A)&&!Jf(A)&&!r&&!n?[2]:(i=A,r?[4,this.proxy(i)]:[3,2]);case 1:i=a.sent(),a.label=2;case 2:return this.context.logger.debug("Added image "+A.substring(0,256)),[4,new Promise(function(c,u){var f=new Image;f.onload=function(){return c(f)},f.onerror=u,(jN(i)||n)&&(f.crossOrigin="anonymous"),f.src=i,f.complete===!0&&setTimeout(function(){return c(f)},500),s._options.imageTimeout>0&&setTimeout(function(){return u("Timed out ("+s._options.imageTimeout+"ms) loading image")},s._options.imageTimeout)})];case 3:return[2,a.sent()]}})})},t.prototype.has=function(A){return typeof this._cache[A]<"u"},t.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},t.prototype.proxy=function(A){var e=this,n=this._options.proxy;if(!n)throw new Error("No proxy defined");var r=A.substring(0,256);return new Promise(function(i,s){var a=Ve.SUPPORT_RESPONSE_TYPE?"blob":"text",c=new XMLHttpRequest;c.onload=function(){if(c.status===200)if(a==="text")i(c.response);else{var h=new FileReader;h.addEventListener("load",function(){return i(h.result)},!1),h.addEventListener("error",function(g){return s(g)},!1),h.readAsDataURL(c.response)}else s("Failed to proxy resource "+r+" with status code "+c.status)},c.onerror=s;var u=n.indexOf("?")>-1?"&":"?";if(c.open("GET",""+n+u+"url="+encodeURIComponent(A)+"&responseType="+a),a!=="text"&&c instanceof XMLHttpRequest&&(c.responseType=a),e._options.imageTimeout){var f=e._options.imageTimeout;c.timeout=f,c.ontimeout=function(){return s("Timed out ("+f+"ms) proxying "+r)}}c.send()})},t}(),YN=/^data:image\/svg\+xml/i,zN=/^data:image\/.*;base64,/i,qN=/^data:image\/.*/i,ZN=function(t){return Ve.SUPPORT_SVG_DRAWING||!AM(t)},$f=function(t){return qN.test(t)},jN=function(t){return zN.test(t)},Jf=function(t){return t.substr(0,4)==="blob"},AM=function(t){return t.substr(-3).toLowerCase()==="svg"||YN.test(t)},Z=function(){function t(A,e){this.type=0,this.x=A,this.y=e}return t.prototype.add=function(A,e){return new t(this.x+A,this.y+e)},t}(),ns=function(t,A,e){return new Z(t.x+(A.x-t.x)*e,t.y+(A.y-t.y)*e)},Cl=function(){function t(A,e,n,r){this.type=1,this.start=A,this.startControl=e,this.endControl=n,this.end=r}return t.prototype.subdivide=function(A,e){var n=ns(this.start,this.startControl,A),r=ns(this.startControl,this.endControl,A),i=ns(this.endControl,this.end,A),s=ns(n,r,A),a=ns(r,i,A),c=ns(s,a,A);return e?new t(this.start,n,s,c):new t(c,a,i,this.end)},t.prototype.add=function(A,e){return new t(this.start.add(A,e),this.startControl.add(A,e),this.endControl.add(A,e),this.end.add(A,e))},t.prototype.reverse=function(){return new t(this.end,this.endControl,this.startControl,this.start)},t}(),Gt=function(t){return t.type===1},eM=function(){function t(A){var e=A.styles,n=A.bounds,r=lo(e.borderTopLeftRadius,n.width,n.height),i=r[0],s=r[1],a=lo(e.borderTopRightRadius,n.width,n.height),c=a[0],u=a[1],f=lo(e.borderBottomRightRadius,n.width,n.height),h=f[0],g=f[1],m=lo(e.borderBottomLeftRadius,n.width,n.height),w=m[0],F=m[1],b=[];b.push((i+c)/n.width),b.push((w+h)/n.width),b.push((s+F)/n.height),b.push((u+g)/n.height);var I=Math.max.apply(Math,b);I>1&&(i/=I,s/=I,c/=I,u/=I,h/=I,g/=I,w/=I,F/=I);var O=n.width-c,T=n.height-g,E=n.width-h,H=n.height-F,U=e.borderTopWidth,M=e.borderRightWidth,P=e.borderBottomWidth,N=e.borderLeftWidth,sA=ie(e.paddingTop,A.bounds.width),mA=ie(e.paddingRight,A.bounds.width),nA=ie(e.paddingBottom,A.bounds.width),cA=ie(e.paddingLeft,A.bounds.width);this.topLeftBorderDoubleOuterBox=i>0||s>0?ce(n.left+N/3,n.top+U/3,i-N/3,s-U/3,XA.TOP_LEFT):new Z(n.left+N/3,n.top+U/3),this.topRightBorderDoubleOuterBox=i>0||s>0?ce(n.left+O,n.top+U/3,c-M/3,u-U/3,XA.TOP_RIGHT):new Z(n.left+n.width-M/3,n.top+U/3),this.bottomRightBorderDoubleOuterBox=h>0||g>0?ce(n.left+E,n.top+T,h-M/3,g-P/3,XA.BOTTOM_RIGHT):new Z(n.left+n.width-M/3,n.top+n.height-P/3),this.bottomLeftBorderDoubleOuterBox=w>0||F>0?ce(n.left+N/3,n.top+H,w-N/3,F-P/3,XA.BOTTOM_LEFT):new Z(n.left+N/3,n.top+n.height-P/3),this.topLeftBorderDoubleInnerBox=i>0||s>0?ce(n.left+N*2/3,n.top+U*2/3,i-N*2/3,s-U*2/3,XA.TOP_LEFT):new Z(n.left+N*2/3,n.top+U*2/3),this.topRightBorderDoubleInnerBox=i>0||s>0?ce(n.left+O,n.top+U*2/3,c-M*2/3,u-U*2/3,XA.TOP_RIGHT):new Z(n.left+n.width-M*2/3,n.top+U*2/3),this.bottomRightBorderDoubleInnerBox=h>0||g>0?ce(n.left+E,n.top+T,h-M*2/3,g-P*2/3,XA.BOTTOM_RIGHT):new Z(n.left+n.width-M*2/3,n.top+n.height-P*2/3),this.bottomLeftBorderDoubleInnerBox=w>0||F>0?ce(n.left+N*2/3,n.top+H,w-N*2/3,F-P*2/3,XA.BOTTOM_LEFT):new Z(n.left+N*2/3,n.top+n.height-P*2/3),this.topLeftBorderStroke=i>0||s>0?ce(n.left+N/2,n.top+U/2,i-N/2,s-U/2,XA.TOP_LEFT):new Z(n.left+N/2,n.top+U/2),this.topRightBorderStroke=i>0||s>0?ce(n.left+O,n.top+U/2,c-M/2,u-U/2,XA.TOP_RIGHT):new Z(n.left+n.width-M/2,n.top+U/2),this.bottomRightBorderStroke=h>0||g>0?ce(n.left+E,n.top+T,h-M/2,g-P/2,XA.BOTTOM_RIGHT):new Z(n.left+n.width-M/2,n.top+n.height-P/2),this.bottomLeftBorderStroke=w>0||F>0?ce(n.left+N/2,n.top+H,w-N/2,F-P/2,XA.BOTTOM_LEFT):new Z(n.left+N/2,n.top+n.height-P/2),this.topLeftBorderBox=i>0||s>0?ce(n.left,n.top,i,s,XA.TOP_LEFT):new Z(n.left,n.top),this.topRightBorderBox=c>0||u>0?ce(n.left+O,n.top,c,u,XA.TOP_RIGHT):new Z(n.left+n.width,n.top),this.bottomRightBorderBox=h>0||g>0?ce(n.left+E,n.top+T,h,g,XA.BOTTOM_RIGHT):new Z(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=w>0||F>0?ce(n.left,n.top+H,w,F,XA.BOTTOM_LEFT):new Z(n.left,n.top+n.height),this.topLeftPaddingBox=i>0||s>0?ce(n.left+N,n.top+U,Math.max(0,i-N),Math.max(0,s-U),XA.TOP_LEFT):new Z(n.left+N,n.top+U),this.topRightPaddingBox=c>0||u>0?ce(n.left+Math.min(O,n.width-M),n.top+U,O>n.width+M?0:Math.max(0,c-M),Math.max(0,u-U),XA.TOP_RIGHT):new Z(n.left+n.width-M,n.top+U),this.bottomRightPaddingBox=h>0||g>0?ce(n.left+Math.min(E,n.width-N),n.top+Math.min(T,n.height-P),Math.max(0,h-M),Math.max(0,g-P),XA.BOTTOM_RIGHT):new Z(n.left+n.width-M,n.top+n.height-P),this.bottomLeftPaddingBox=w>0||F>0?ce(n.left+N,n.top+Math.min(H,n.height-P),Math.max(0,w-N),Math.max(0,F-P),XA.BOTTOM_LEFT):new Z(n.left+N,n.top+n.height-P),this.topLeftContentBox=i>0||s>0?ce(n.left+N+cA,n.top+U+sA,Math.max(0,i-(N+cA)),Math.max(0,s-(U+sA)),XA.TOP_LEFT):new Z(n.left+N+cA,n.top+U+sA),this.topRightContentBox=c>0||u>0?ce(n.left+Math.min(O,n.width+N+cA),n.top+U+sA,O>n.width+N+cA?0:c-N+cA,u-(U+sA),XA.TOP_RIGHT):new Z(n.left+n.width-(M+mA),n.top+U+sA),this.bottomRightContentBox=h>0||g>0?ce(n.left+Math.min(E,n.width-(N+cA)),n.top+Math.min(T,n.height+U+sA),Math.max(0,h-(M+mA)),g-(P+nA),XA.BOTTOM_RIGHT):new Z(n.left+n.width-(M+mA),n.top+n.height-(P+nA)),this.bottomLeftContentBox=w>0||F>0?ce(n.left+N+cA,n.top+H,Math.max(0,w-(N+cA)),F-(P+nA),XA.BOTTOM_LEFT):new Z(n.left+N+cA,n.top+n.height-(P+nA))}return t}(),XA;(function(t){t[t.TOP_LEFT=0]="TOP_LEFT",t[t.TOP_RIGHT=1]="TOP_RIGHT",t[t.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",t[t.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(XA||(XA={}));var ce=function(t,A,e,n,r){var i=4*((Math.sqrt(2)-1)/3),s=e*i,a=n*i,c=t+e,u=A+n;switch(r){case XA.TOP_LEFT:return new Cl(new Z(t,u),new Z(t,u-a),new Z(c-s,A),new Z(c,A));case XA.TOP_RIGHT:return new Cl(new Z(t,A),new Z(t+s,A),new Z(c,u-a),new Z(c,u));case XA.BOTTOM_RIGHT:return new Cl(new Z(c,A),new Z(c,A+a),new Z(t+s,u),new Z(t,u));case XA.BOTTOM_LEFT:default:return new Cl(new Z(c,u),new Z(c-s,u),new Z(t,A+a),new Z(t,A))}},yl=function(t){return[t.topLeftBorderBox,t.topRightBorderBox,t.bottomRightBorderBox,t.bottomLeftBorderBox]},tM=function(t){return[t.topLeftContentBox,t.topRightContentBox,t.bottomRightContentBox,t.bottomLeftContentBox]},El=function(t){return[t.topLeftPaddingBox,t.topRightPaddingBox,t.bottomRightPaddingBox,t.bottomLeftPaddingBox]},nM=function(){function t(A,e,n){this.offsetX=A,this.offsetY=e,this.matrix=n,this.type=0,this.target=6}return t}(),Ql=function(){function t(A,e){this.path=A,this.target=e,this.type=1}return t}(),rM=function(){function t(A){this.opacity=A,this.type=2,this.target=6}return t}(),iM=function(t){return t.type===0},TC=function(t){return t.type===1},sM=function(t){return t.type===2},_C=function(t,A){return t.length===A.length?t.some(function(e,n){return e===A[n]}):!1},oM=function(t,A,e,n,r){return t.map(function(i,s){switch(s){case 0:return i.add(A,e);case 1:return i.add(A+n,e);case 2:return i.add(A+n,e+r);case 3:return i.add(A,e+r)}return i})},xC=function(){function t(A){this.element=A,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return t}(),OC=function(){function t(A,e){if(this.container=A,this.parent=e,this.effects=[],this.curves=new eM(this.container),this.container.styles.opacity<1&&this.effects.push(new rM(this.container.styles.opacity)),this.container.styles.transform!==null){var n=this.container.bounds.left+this.container.styles.transformOrigin[0].number,r=this.container.bounds.top+this.container.styles.transformOrigin[1].number,i=this.container.styles.transform;this.effects.push(new nM(n,r,i))}if(this.container.styles.overflowX!==0){var s=yl(this.curves),a=El(this.curves);_C(s,a)?this.effects.push(new Ql(s,6)):(this.effects.push(new Ql(s,2)),this.effects.push(new Ql(a,4)))}}return t.prototype.getEffects=function(A){for(var e=[2,3].indexOf(this.container.styles.position)===-1,n=this.parent,r=this.effects.slice(0);n;){var i=n.effects.filter(function(c){return!TC(c)});if(e||n.container.styles.position!==0||!n.parent){if(r.unshift.apply(r,i),e=[2,3].indexOf(n.container.styles.position)===-1,n.container.styles.overflowX!==0){var s=yl(n.curves),a=El(n.curves);_C(s,a)||r.unshift(new Ql(a,6))}}else r.unshift.apply(r,i);n=n.parent}return r.filter(function(c){return Ie(c.target,A)})},t}(),Xf=function(t,A,e,n){t.container.elements.forEach(function(r){var i=Ie(r.flags,4),s=Ie(r.flags,2),a=new OC(r,t);Ie(r.styles.display,2048)&&n.push(a);var c=Ie(r.flags,8)?[]:n;if(i||s){var u=i||r.styles.isPositioned()?e:A,f=new xC(a);if(r.styles.isPositioned()||r.styles.opacity<1||r.styles.isTransformed()){var h=r.styles.zIndex.order;if(h<0){var g=0;u.negativeZIndex.some(function(w,F){return h>w.element.container.styles.zIndex.order?(g=F,!1):g>0}),u.negativeZIndex.splice(g,0,f)}else if(h>0){var m=0;u.positiveZIndex.some(function(w,F){return h>=w.element.container.styles.zIndex.order?(m=F+1,!1):m>0}),u.positiveZIndex.splice(m,0,f)}else u.zeroOrAutoZIndexOrTransformedOrOpacity.push(f)}else r.styles.isFloating()?u.nonPositionedFloats.push(f):u.nonPositionedInlineLevel.push(f);Xf(a,f,i?f:e,c)}else r.styles.isInlineLevel()?A.inlineLevel.push(a):A.nonInlineLevel.push(a),Xf(a,A,e,c);Ie(r.flags,8)&&LC(r,c)})},LC=function(t,A){for(var e=t instanceof Nf?t.start:1,n=t instanceof Nf?t.reversed:!1,r=0;r<A.length;r++){var i=A[r];i.container instanceof iC&&typeof i.container.value=="number"&&i.container.value!==0&&(e=i.container.value),i.listValue=go(e,i.container.styles.listStyleType,!0),e+=n?-1:1}},aM=function(t){var A=new OC(t,null),e=new xC(A),n=[];return Xf(A,e,e,n),LC(A.container,n),e},HC=function(t,A){switch(A){case 0:return Wt(t.topLeftBorderBox,t.topLeftPaddingBox,t.topRightBorderBox,t.topRightPaddingBox);case 1:return Wt(t.topRightBorderBox,t.topRightPaddingBox,t.bottomRightBorderBox,t.bottomRightPaddingBox);case 2:return Wt(t.bottomRightBorderBox,t.bottomRightPaddingBox,t.bottomLeftBorderBox,t.bottomLeftPaddingBox);case 3:default:return Wt(t.bottomLeftBorderBox,t.bottomLeftPaddingBox,t.topLeftBorderBox,t.topLeftPaddingBox)}},lM=function(t,A){switch(A){case 0:return Wt(t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox,t.topRightBorderBox,t.topRightBorderDoubleOuterBox);case 1:return Wt(t.topRightBorderBox,t.topRightBorderDoubleOuterBox,t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox);case 2:return Wt(t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox,t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox);case 3:default:return Wt(t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox,t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox)}},cM=function(t,A){switch(A){case 0:return Wt(t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox,t.topRightBorderDoubleInnerBox,t.topRightPaddingBox);case 1:return Wt(t.topRightBorderDoubleInnerBox,t.topRightPaddingBox,t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox);case 2:return Wt(t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox,t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox);case 3:default:return Wt(t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox,t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox)}},uM=function(t,A){switch(A){case 0:return Fl(t.topLeftBorderStroke,t.topRightBorderStroke);case 1:return Fl(t.topRightBorderStroke,t.bottomRightBorderStroke);case 2:return Fl(t.bottomRightBorderStroke,t.bottomLeftBorderStroke);case 3:default:return Fl(t.bottomLeftBorderStroke,t.topLeftBorderStroke)}},Fl=function(t,A){var e=[];return Gt(t)?e.push(t.subdivide(.5,!1)):e.push(t),Gt(A)?e.push(A.subdivide(.5,!0)):e.push(A),e},Wt=function(t,A,e,n){var r=[];return Gt(t)?r.push(t.subdivide(.5,!1)):r.push(t),Gt(e)?r.push(e.subdivide(.5,!0)):r.push(e),Gt(n)?r.push(n.subdivide(.5,!0).reverse()):r.push(n),Gt(A)?r.push(A.subdivide(.5,!1).reverse()):r.push(A),r},kC=function(t){var A=t.bounds,e=t.styles;return A.add(e.borderLeftWidth,e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth),-(e.borderTopWidth+e.borderBottomWidth))},bl=function(t){var A=t.styles,e=t.bounds,n=ie(A.paddingLeft,e.width),r=ie(A.paddingRight,e.width),i=ie(A.paddingTop,e.width),s=ie(A.paddingBottom,e.width);return e.add(n+A.borderLeftWidth,i+A.borderTopWidth,-(A.borderRightWidth+A.borderLeftWidth+n+r),-(A.borderTopWidth+A.borderBottomWidth+i+s))},fM=function(t,A){return t===0?A.bounds:t===2?bl(A):kC(A)},dM=function(t,A){return t===0?A.bounds:t===2?bl(A):kC(A)},Yf=function(t,A,e){var n=fM(is(t.styles.backgroundOrigin,A),t),r=dM(is(t.styles.backgroundClip,A),t),i=hM(is(t.styles.backgroundSize,A),e,n),s=i[0],a=i[1],c=lo(is(t.styles.backgroundPosition,A),n.width-s,n.height-a),u=pM(is(t.styles.backgroundRepeat,A),c,i,n,r),f=Math.round(n.left+c[0]),h=Math.round(n.top+c[1]);return[u,f,h,s,a]},rs=function(t){return Ae(t)&&t.value===ji.AUTO},Ul=function(t){return typeof t=="number"},hM=function(t,A,e){var n=A[0],r=A[1],i=A[2],s=t[0],a=t[1];if(!s)return[0,0];if(be(s)&&a&&be(a))return[ie(s,e.width),ie(a,e.height)];var c=Ul(i);if(Ae(s)&&(s.value===ji.CONTAIN||s.value===ji.COVER)){if(Ul(i)){var u=e.width/e.height;return u<i!=(s.value===ji.COVER)?[e.width,e.width/i]:[e.height*i,e.height]}return[e.width,e.height]}var f=Ul(n),h=Ul(r),g=f||h;if(rs(s)&&(!a||rs(a))){if(f&&h)return[n,r];if(!c&&!g)return[e.width,e.height];if(g&&c){var m=f?n:r*i,w=h?r:n/i;return[m,w]}var F=f?n:e.width,b=h?r:e.height;return[F,b]}if(c){var I=0,O=0;return be(s)?I=ie(s,e.width):be(a)&&(O=ie(a,e.height)),rs(s)?I=O*i:(!a||rs(a))&&(O=I/i),[I,O]}var T=null,E=null;if(be(s)?T=ie(s,e.width):a&&be(a)&&(E=ie(a,e.height)),T!==null&&(!a||rs(a))&&(E=f&&h?T/n*r:e.height),E!==null&&rs(s)&&(T=f&&h?E/r*n:e.width),T!==null&&E!==null)return[T,E];throw new Error("Unable to calculate background-size for element")},is=function(t,A){var e=t[A];return typeof e>"u"?t[0]:e},pM=function(t,A,e,n,r){var i=A[0],s=A[1],a=e[0],c=e[1];switch(t){case 2:return[new Z(Math.round(n.left),Math.round(n.top+s)),new Z(Math.round(n.left+n.width),Math.round(n.top+s)),new Z(Math.round(n.left+n.width),Math.round(c+n.top+s)),new Z(Math.round(n.left),Math.round(c+n.top+s))];case 3:return[new Z(Math.round(n.left+i),Math.round(n.top)),new Z(Math.round(n.left+i+a),Math.round(n.top)),new Z(Math.round(n.left+i+a),Math.round(n.height+n.top)),new Z(Math.round(n.left+i),Math.round(n.height+n.top))];case 1:return[new Z(Math.round(n.left+i),Math.round(n.top+s)),new Z(Math.round(n.left+i+a),Math.round(n.top+s)),new Z(Math.round(n.left+i+a),Math.round(n.top+s+c)),new Z(Math.round(n.left+i),Math.round(n.top+s+c))];default:return[new Z(Math.round(r.left),Math.round(r.top)),new Z(Math.round(r.left+r.width),Math.round(r.top)),new Z(Math.round(r.left+r.width),Math.round(r.height+r.top)),new Z(Math.round(r.left),Math.round(r.height+r.top))]}},gM="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",NC="Hidden Text",BM=function(){function t(A){this._data={},this._document=A}return t.prototype.parseMetrics=function(A,e){var n=this._document.createElement("div"),r=this._document.createElement("img"),i=this._document.createElement("span"),s=this._document.body;n.style.visibility="hidden",n.style.fontFamily=A,n.style.fontSize=e,n.style.margin="0",n.style.padding="0",n.style.whiteSpace="nowrap",s.appendChild(n),r.src=gM,r.width=1,r.height=1,r.style.margin="0",r.style.padding="0",r.style.verticalAlign="baseline",i.style.fontFamily=A,i.style.fontSize=e,i.style.margin="0",i.style.padding="0",i.appendChild(this._document.createTextNode(NC)),n.appendChild(i),n.appendChild(r);var a=r.offsetTop-i.offsetTop+2;n.removeChild(i),n.appendChild(this._document.createTextNode(NC)),n.style.lineHeight="normal",r.style.verticalAlign="super";var c=r.offsetTop-n.offsetTop+2;return s.removeChild(n),{baseline:a,middle:c}},t.prototype.getMetrics=function(A,e){var n=A+" "+e;return typeof this._data[n]>"u"&&(this._data[n]=this.parseMetrics(A,e)),this._data[n]},t}(),MC=function(){function t(A,e){this.context=A,this.options=e}return t}(),mM=1e4,wM=function(t){ln(A,t);function A(e,n){var r=t.call(this,e,n)||this;return r._activeEffects=[],r.canvas=n.canvas?n.canvas:document.createElement("canvas"),r.ctx=r.canvas.getContext("2d"),n.canvas||(r.canvas.width=Math.floor(n.width*n.scale),r.canvas.height=Math.floor(n.height*n.scale),r.canvas.style.width=n.width+"px",r.canvas.style.height=n.height+"px"),r.fontMetrics=new BM(document),r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-n.x,-n.y),r.ctx.textBaseline="bottom",r._activeEffects=[],r.context.logger.debug("Canvas renderer initialized ("+n.width+"x"+n.height+") with scale "+n.scale),r}return A.prototype.applyEffects=function(e){for(var n=this;this._activeEffects.length;)this.popEffect();e.forEach(function(r){return n.applyEffect(r)})},A.prototype.applyEffect=function(e){this.ctx.save(),sM(e)&&(this.ctx.globalAlpha=e.opacity),iM(e)&&(this.ctx.translate(e.offsetX,e.offsetY),this.ctx.transform(e.matrix[0],e.matrix[1],e.matrix[2],e.matrix[3],e.matrix[4],e.matrix[5]),this.ctx.translate(-e.offsetX,-e.offsetY)),TC(e)&&(this.path(e.path),this.ctx.clip()),this._activeEffects.push(e)},A.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},A.prototype.renderStack=function(e){return at(this,void 0,void 0,function(){var n;return Ze(this,function(r){switch(r.label){case 0:return n=e.element.container.styles,n.isVisible()?[4,this.renderStackContent(e)]:[3,2];case 1:r.sent(),r.label=2;case 2:return[2]}})})},A.prototype.renderNode=function(e){return at(this,void 0,void 0,function(){return Ze(this,function(n){switch(n.label){case 0:if(Ie(e.container.flags,16))debugger;return e.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(e)]:[3,3];case 1:return n.sent(),[4,this.renderNodeContent(e)];case 2:n.sent(),n.label=3;case 3:return[2]}})})},A.prototype.renderTextWithLetterSpacing=function(e,n,r){var i=this;if(n===0)this.ctx.fillText(e.text,e.bounds.left,e.bounds.top+r);else{var s=kf(e.text);s.reduce(function(a,c){return i.ctx.fillText(c,a,e.bounds.top+r),a+i.ctx.measureText(c).width},e.bounds.left)}},A.prototype.createFontStyle=function(e){var n=e.fontVariant.filter(function(s){return s==="normal"||s==="small-caps"}).join(""),r=FM(e.fontFamily).join(", "),i=ao(e.fontSize)?""+e.fontSize.number+e.fontSize.unit:e.fontSize.number+"px";return[[e.fontStyle,n,e.fontWeight,i,r].join(" "),r,i]},A.prototype.renderTextNode=function(e,n){return at(this,void 0,void 0,function(){var r,i,s,a,c,u,f,h,g=this;return Ze(this,function(m){return r=this.createFontStyle(n),i=r[0],s=r[1],a=r[2],this.ctx.font=i,this.ctx.direction=n.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",c=this.fontMetrics.getMetrics(s,a),u=c.baseline,f=c.middle,h=n.paintOrder,e.textBounds.forEach(function(w){h.forEach(function(F){switch(F){case 0:g.ctx.fillStyle=ke(n.color),g.renderTextWithLetterSpacing(w,n.letterSpacing,u);var b=n.textShadow;b.length&&w.text.trim().length&&(b.slice(0).reverse().forEach(function(I){g.ctx.shadowColor=ke(I.color),g.ctx.shadowOffsetX=I.offsetX.number*g.options.scale,g.ctx.shadowOffsetY=I.offsetY.number*g.options.scale,g.ctx.shadowBlur=I.blur.number,g.renderTextWithLetterSpacing(w,n.letterSpacing,u)}),g.ctx.shadowColor="",g.ctx.shadowOffsetX=0,g.ctx.shadowOffsetY=0,g.ctx.shadowBlur=0),n.textDecorationLine.length&&(g.ctx.fillStyle=ke(n.textDecorationColor||n.color),n.textDecorationLine.forEach(function(I){switch(I){case 1:g.ctx.fillRect(w.bounds.left,Math.round(w.bounds.top+u),w.bounds.width,1);break;case 2:g.ctx.fillRect(w.bounds.left,Math.round(w.bounds.top),w.bounds.width,1);break;case 3:g.ctx.fillRect(w.bounds.left,Math.ceil(w.bounds.top+f),w.bounds.width,1);break}}));break;case 1:n.webkitTextStrokeWidth&&w.text.trim().length&&(g.ctx.strokeStyle=ke(n.webkitTextStrokeColor),g.ctx.lineWidth=n.webkitTextStrokeWidth,g.ctx.lineJoin=window.chrome?"miter":"round",g.ctx.strokeText(w.text,w.bounds.left,w.bounds.top+u)),g.ctx.strokeStyle="",g.ctx.lineWidth=0,g.ctx.lineJoin="miter";break}})}),[2]})})},A.prototype.renderReplacedElement=function(e,n,r){if(r&&e.intrinsicWidth>0&&e.intrinsicHeight>0){var i=bl(e),s=El(n);this.path(s),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(r,0,0,e.intrinsicWidth,e.intrinsicHeight,i.left,i.top,i.width,i.height),this.ctx.restore()}},A.prototype.renderNodeContent=function(e){return at(this,void 0,void 0,function(){var n,r,i,s,a,c,O,O,u,f,h,g,E,m,w,H,F,b,I,O,T,E,H;return Ze(this,function(U){switch(U.label){case 0:this.applyEffects(e.getEffects(4)),n=e.container,r=e.curves,i=n.styles,s=0,a=n.textNodes,U.label=1;case 1:return s<a.length?(c=a[s],[4,this.renderTextNode(c,i)]):[3,4];case 2:U.sent(),U.label=3;case 3:return s++,[3,1];case 4:if(!(n instanceof tC))return[3,8];U.label=5;case 5:return U.trys.push([5,7,,8]),[4,this.context.cache.match(n.src)];case 6:return O=U.sent(),this.renderReplacedElement(n,r,O),[3,8];case 7:return U.sent(),this.context.logger.error("Error loading image "+n.src),[3,8];case 8:if(n instanceof nC&&this.renderReplacedElement(n,r,n.canvas),!(n instanceof rC))return[3,12];U.label=9;case 9:return U.trys.push([9,11,,12]),[4,this.context.cache.match(n.svg)];case 10:return O=U.sent(),this.renderReplacedElement(n,r,O),[3,12];case 11:return U.sent(),this.context.logger.error("Error loading svg "+n.svg.substring(0,255)),[3,12];case 12:return n instanceof lC&&n.tree?(u=new A(this.context,{scale:this.options.scale,backgroundColor:n.backgroundColor,x:0,y:0,width:n.width,height:n.height}),[4,u.render(n.tree)]):[3,14];case 13:f=U.sent(),n.width&&n.height&&this.ctx.drawImage(f,0,0,n.width,n.height,n.bounds.left,n.bounds.top,n.bounds.width,n.bounds.height),U.label=14;case 14:if(n instanceof Mf&&(h=Math.min(n.bounds.width,n.bounds.height),n.type===hl?n.checked&&(this.ctx.save(),this.path([new Z(n.bounds.left+h*.39363,n.bounds.top+h*.79),new Z(n.bounds.left+h*.16,n.bounds.top+h*.5549),new Z(n.bounds.left+h*.27347,n.bounds.top+h*.44071),new Z(n.bounds.left+h*.39694,n.bounds.top+h*.5649),new Z(n.bounds.left+h*.72983,n.bounds.top+h*.23),new Z(n.bounds.left+h*.84,n.bounds.top+h*.34085),new Z(n.bounds.left+h*.39363,n.bounds.top+h*.79)]),this.ctx.fillStyle=ke(sC),this.ctx.fill(),this.ctx.restore()):n.type===pl&&n.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(n.bounds.left+h/2,n.bounds.top+h/2,h/4,0,Math.PI*2,!0),this.ctx.fillStyle=ke(sC),this.ctx.fill(),this.ctx.restore())),CM(n)&&n.value.length){switch(g=this.createFontStyle(i),E=g[0],m=g[1],w=this.fontMetrics.getMetrics(E,m).baseline,this.ctx.font=E,this.ctx.fillStyle=ke(i.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=EM(n.styles.textAlign),H=bl(n),F=0,n.styles.textAlign){case 1:F+=H.width/2;break;case 2:F+=H.width;break}b=H.add(F,0,0,-H.height/2+1),this.ctx.save(),this.path([new Z(H.left,H.top),new Z(H.left+H.width,H.top),new Z(H.left+H.width,H.top+H.height),new Z(H.left,H.top+H.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new ho(n.value,b),i.letterSpacing,w),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!Ie(n.styles.display,2048))return[3,20];if(n.styles.listStyleImage===null)return[3,19];if(I=n.styles.listStyleImage,I.type!==0)return[3,18];O=void 0,T=I.url,U.label=15;case 15:return U.trys.push([15,17,,18]),[4,this.context.cache.match(T)];case 16:return O=U.sent(),this.ctx.drawImage(O,n.bounds.left-(O.width+10),n.bounds.top),[3,18];case 17:return U.sent(),this.context.logger.error("Error loading list-style-image "+T),[3,18];case 18:return[3,20];case 19:e.listValue&&n.styles.listStyleType!==-1&&(E=this.createFontStyle(i)[0],this.ctx.font=E,this.ctx.fillStyle=ke(i.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",H=new Wn(n.bounds.left,n.bounds.top+ie(n.styles.paddingTop,n.bounds.width),n.bounds.width,Nw(i.lineHeight,i.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new ho(e.listValue,H),i.letterSpacing,Nw(i.lineHeight,i.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),U.label=20;case 20:return[2]}})})},A.prototype.renderStackContent=function(e){return at(this,void 0,void 0,function(){var n,r,I,i,s,I,a,c,I,u,f,I,h,g,I,m,w,I,F,b,I;return Ze(this,function(O){switch(O.label){case 0:if(Ie(e.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(e.element)];case 1:O.sent(),n=0,r=e.negativeZIndex,O.label=2;case 2:return n<r.length?(I=r[n],[4,this.renderStack(I)]):[3,5];case 3:O.sent(),O.label=4;case 4:return n++,[3,2];case 5:return[4,this.renderNodeContent(e.element)];case 6:O.sent(),i=0,s=e.nonInlineLevel,O.label=7;case 7:return i<s.length?(I=s[i],[4,this.renderNode(I)]):[3,10];case 8:O.sent(),O.label=9;case 9:return i++,[3,7];case 10:a=0,c=e.nonPositionedFloats,O.label=11;case 11:return a<c.length?(I=c[a],[4,this.renderStack(I)]):[3,14];case 12:O.sent(),O.label=13;case 13:return a++,[3,11];case 14:u=0,f=e.nonPositionedInlineLevel,O.label=15;case 15:return u<f.length?(I=f[u],[4,this.renderStack(I)]):[3,18];case 16:O.sent(),O.label=17;case 17:return u++,[3,15];case 18:h=0,g=e.inlineLevel,O.label=19;case 19:return h<g.length?(I=g[h],[4,this.renderNode(I)]):[3,22];case 20:O.sent(),O.label=21;case 21:return h++,[3,19];case 22:m=0,w=e.zeroOrAutoZIndexOrTransformedOrOpacity,O.label=23;case 23:return m<w.length?(I=w[m],[4,this.renderStack(I)]):[3,26];case 24:O.sent(),O.label=25;case 25:return m++,[3,23];case 26:F=0,b=e.positiveZIndex,O.label=27;case 27:return F<b.length?(I=b[F],[4,this.renderStack(I)]):[3,30];case 28:O.sent(),O.label=29;case 29:return F++,[3,27];case 30:return[2]}})})},A.prototype.mask=function(e){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(e.slice(0).reverse()),this.ctx.closePath()},A.prototype.path=function(e){this.ctx.beginPath(),this.formatPath(e),this.ctx.closePath()},A.prototype.formatPath=function(e){var n=this;e.forEach(function(r,i){var s=Gt(r)?r.start:r;i===0?n.ctx.moveTo(s.x,s.y):n.ctx.lineTo(s.x,s.y),Gt(r)&&n.ctx.bezierCurveTo(r.startControl.x,r.startControl.y,r.endControl.x,r.endControl.y,r.end.x,r.end.y)})},A.prototype.renderRepeat=function(e,n,r,i){this.path(e),this.ctx.fillStyle=n,this.ctx.translate(r,i),this.ctx.fill(),this.ctx.translate(-r,-i)},A.prototype.resizeImage=function(e,n,r){var i;if(e.width===n&&e.height===r)return e;var s=(i=this.canvas.ownerDocument)!==null&&i!==void 0?i:document,a=s.createElement("canvas");a.width=Math.max(1,n),a.height=Math.max(1,r);var c=a.getContext("2d");return c.drawImage(e,0,0,e.width,e.height,0,0,n,r),a},A.prototype.renderBackgroundImage=function(e){return at(this,void 0,void 0,function(){var n,r,i,s,a,c;return Ze(this,function(u){switch(u.label){case 0:n=e.styles.backgroundImage.length-1,r=function(f){var h,g,m,sA,RA,HA,cA,LA,P,w,sA,RA,HA,cA,LA,F,b,I,O,T,E,H,U,M,P,N,sA,mA,nA,cA,LA,se,RA,HA,rA,BA,YA,VA,GA,DA,qA,WA;return Ze(this,function(ue){switch(ue.label){case 0:if(f.type!==0)return[3,5];h=void 0,g=f.url,ue.label=1;case 1:return ue.trys.push([1,3,,4]),[4,i.context.cache.match(g)];case 2:return h=ue.sent(),[3,4];case 3:return ue.sent(),i.context.logger.error("Error loading background-image "+g),[3,4];case 4:return h&&(m=Yf(e,n,[h.width,h.height,h.width/h.height]),sA=m[0],RA=m[1],HA=m[2],cA=m[3],LA=m[4],P=i.ctx.createPattern(i.resizeImage(h,cA,LA),"repeat"),i.renderRepeat(sA,P,RA,HA)),[3,6];case 5:iH(f)?(w=Yf(e,n,[null,null,null]),sA=w[0],RA=w[1],HA=w[2],cA=w[3],LA=w[4],F=AH(f.angle,cA,LA),b=F[0],I=F[1],O=F[2],T=F[3],E=F[4],H=document.createElement("canvas"),H.width=cA,H.height=LA,U=H.getContext("2d"),M=U.createLinearGradient(I,T,O,E),Uw(f.stops,b).forEach(function(Ne){return M.addColorStop(Ne.stop,ke(Ne.color))}),U.fillStyle=M,U.fillRect(0,0,cA,LA),cA>0&&LA>0&&(P=i.ctx.createPattern(H,"repeat"),i.renderRepeat(sA,P,RA,HA))):sH(f)&&(N=Yf(e,n,[null,null,null]),sA=N[0],mA=N[1],nA=N[2],cA=N[3],LA=N[4],se=f.position.length===0?[yf]:f.position,RA=ie(se[0],cA),HA=ie(se[se.length-1],LA),rA=eH(f,RA,HA,cA,LA),BA=rA[0],YA=rA[1],BA>0&&YA>0&&(VA=i.ctx.createRadialGradient(mA+RA,nA+HA,0,mA+RA,nA+HA,BA),Uw(f.stops,BA*2).forEach(function(Ne){return VA.addColorStop(Ne.stop,ke(Ne.color))}),i.path(sA),i.ctx.fillStyle=VA,BA!==YA?(GA=e.bounds.left+.5*e.bounds.width,DA=e.bounds.top+.5*e.bounds.height,qA=YA/BA,WA=1/qA,i.ctx.save(),i.ctx.translate(GA,DA),i.ctx.transform(1,0,0,qA,0,0),i.ctx.translate(-GA,-DA),i.ctx.fillRect(mA,WA*(nA-DA)+DA,cA,LA*WA),i.ctx.restore()):i.ctx.fill())),ue.label=6;case 6:return n--,[2]}})},i=this,s=0,a=e.styles.backgroundImage.slice(0).reverse(),u.label=1;case 1:return s<a.length?(c=a[s],[5,r(c)]):[3,4];case 2:u.sent(),u.label=3;case 3:return s++,[3,1];case 4:return[2]}})})},A.prototype.renderSolidBorder=function(e,n,r){return at(this,void 0,void 0,function(){return Ze(this,function(i){return this.path(HC(r,n)),this.ctx.fillStyle=ke(e),this.ctx.fill(),[2]})})},A.prototype.renderDoubleBorder=function(e,n,r,i){return at(this,void 0,void 0,function(){var s,a;return Ze(this,function(c){switch(c.label){case 0:return n<3?[4,this.renderSolidBorder(e,r,i)]:[3,2];case 1:return c.sent(),[2];case 2:return s=lM(i,r),this.path(s),this.ctx.fillStyle=ke(e),this.ctx.fill(),a=cM(i,r),this.path(a),this.ctx.fill(),[2]}})})},A.prototype.renderNodeBackgroundAndBorders=function(e){return at(this,void 0,void 0,function(){var n,r,i,s,a,c,u,f,h=this;return Ze(this,function(g){switch(g.label){case 0:return this.applyEffects(e.getEffects(2)),n=e.container.styles,r=!Ir(n.backgroundColor)||n.backgroundImage.length,i=[{style:n.borderTopStyle,color:n.borderTopColor,width:n.borderTopWidth},{style:n.borderRightStyle,color:n.borderRightColor,width:n.borderRightWidth},{style:n.borderBottomStyle,color:n.borderBottomColor,width:n.borderBottomWidth},{style:n.borderLeftStyle,color:n.borderLeftColor,width:n.borderLeftWidth}],s=yM(is(n.backgroundClip,0),e.curves),r||n.boxShadow.length?(this.ctx.save(),this.path(s),this.ctx.clip(),Ir(n.backgroundColor)||(this.ctx.fillStyle=ke(n.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(e.container)]):[3,2];case 1:g.sent(),this.ctx.restore(),n.boxShadow.slice(0).reverse().forEach(function(m){h.ctx.save();var w=yl(e.curves),F=m.inset?0:mM,b=oM(w,-F+(m.inset?1:-1)*m.spread.number,(m.inset?1:-1)*m.spread.number,m.spread.number*(m.inset?-2:2),m.spread.number*(m.inset?-2:2));m.inset?(h.path(w),h.ctx.clip(),h.mask(b)):(h.mask(w),h.ctx.clip(),h.path(b)),h.ctx.shadowOffsetX=m.offsetX.number+F,h.ctx.shadowOffsetY=m.offsetY.number,h.ctx.shadowColor=ke(m.color),h.ctx.shadowBlur=m.blur.number,h.ctx.fillStyle=m.inset?ke(m.color):"rgba(0,0,0,1)",h.ctx.fill(),h.ctx.restore()}),g.label=2;case 2:a=0,c=0,u=i,g.label=3;case 3:return c<u.length?(f=u[c],f.style!==0&&!Ir(f.color)&&f.width>0?f.style!==2?[3,5]:[4,this.renderDashedDottedBorder(f.color,f.width,a,e.curves,2)]:[3,11]):[3,13];case 4:return g.sent(),[3,11];case 5:return f.style!==3?[3,7]:[4,this.renderDashedDottedBorder(f.color,f.width,a,e.curves,3)];case 6:return g.sent(),[3,11];case 7:return f.style!==4?[3,9]:[4,this.renderDoubleBorder(f.color,f.width,a,e.curves)];case 8:return g.sent(),[3,11];case 9:return[4,this.renderSolidBorder(f.color,a,e.curves)];case 10:g.sent(),g.label=11;case 11:a++,g.label=12;case 12:return c++,[3,3];case 13:return[2]}})})},A.prototype.renderDashedDottedBorder=function(e,n,r,i,s){return at(this,void 0,void 0,function(){var a,c,u,f,h,g,m,w,F,b,I,O,T,E,H,U,H,U;return Ze(this,function(M){return this.ctx.save(),a=uM(i,r),c=HC(i,r),s===2&&(this.path(c),this.ctx.clip()),Gt(c[0])?(u=c[0].start.x,f=c[0].start.y):(u=c[0].x,f=c[0].y),Gt(c[1])?(h=c[1].end.x,g=c[1].end.y):(h=c[1].x,g=c[1].y),r===0||r===2?m=Math.abs(u-h):m=Math.abs(f-g),this.ctx.beginPath(),s===3?this.formatPath(a):this.formatPath(c.slice(0,2)),w=n<3?n*3:n*2,F=n<3?n*2:n,s===3&&(w=n,F=n),b=!0,m<=w*2?b=!1:m<=w*2+F?(I=m/(2*w+F),w*=I,F*=I):(O=Math.floor((m+F)/(w+F)),T=(m-O*w)/(O-1),E=(m-(O+1)*w)/O,F=E<=0||Math.abs(F-T)<Math.abs(F-E)?T:E),b&&(s===3?this.ctx.setLineDash([0,w+F]):this.ctx.setLineDash([w,F])),s===3?(this.ctx.lineCap="round",this.ctx.lineWidth=n):this.ctx.lineWidth=n*2+1.1,this.ctx.strokeStyle=ke(e),this.ctx.stroke(),this.ctx.setLineDash([]),s===2&&(Gt(c[0])&&(H=c[3],U=c[0],this.ctx.beginPath(),this.formatPath([new Z(H.end.x,H.end.y),new Z(U.start.x,U.start.y)]),this.ctx.stroke()),Gt(c[1])&&(H=c[1],U=c[2],this.ctx.beginPath(),this.formatPath([new Z(H.end.x,H.end.y),new Z(U.start.x,U.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},A.prototype.render=function(e){return at(this,void 0,void 0,function(){var n;return Ze(this,function(r){switch(r.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=ke(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),n=aM(e),[4,this.renderStack(n)];case 1:return r.sent(),this.applyEffects([]),[2,this.canvas]}})})},A}(MC),CM=function(t){return t instanceof aC||t instanceof oC?!0:t instanceof Mf&&t.type!==pl&&t.type!==hl},yM=function(t,A){switch(t){case 0:return yl(A);case 2:return tM(A);case 1:default:return El(A)}},EM=function(t){switch(t){case 1:return"center";case 2:return"right";case 0:default:return"left"}},QM=["-apple-system","system-ui"],FM=function(t){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?t.filter(function(A){return QM.indexOf(A)===-1}):t},bM=function(t){ln(A,t);function A(e,n){var r=t.call(this,e,n)||this;return r.canvas=n.canvas?n.canvas:document.createElement("canvas"),r.ctx=r.canvas.getContext("2d"),r.options=n,r.canvas.width=Math.floor(n.width*n.scale),r.canvas.height=Math.floor(n.height*n.scale),r.canvas.style.width=n.width+"px",r.canvas.style.height=n.height+"px",r.ctx.scale(r.options.scale,r.options.scale),r.ctx.translate(-n.x,-n.y),r.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+n.width+"x"+n.height+" at "+n.x+","+n.y+") with scale "+n.scale),r}return A.prototype.render=function(e){return at(this,void 0,void 0,function(){var n,r;return Ze(this,function(i){switch(i.label){case 0:return n=Hf(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,e),[4,UM(n)];case 1:return r=i.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=ke(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(r,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},A}(MC),UM=function(t){return new Promise(function(A,e){var n=new Image;n.onload=function(){A(n)},n.onerror=e,n.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(t))})},vM=function(){function t(A){var e=A.id,n=A.enabled;this.id=e,this.enabled=n,this.start=Date.now()}return t.prototype.debug=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,La([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},t.prototype.getTime=function(){return Date.now()-this.start},t.prototype.info=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,La([this.id,this.getTime()+"ms"],A))},t.prototype.warn=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,La([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},t.prototype.error=function(){for(var A=[],e=0;e<arguments.length;e++)A[e]=arguments[e];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,La([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},t.instances={},t}(),IM=function(){function t(A,e){var n;this.windowBounds=e,this.instanceName="#"+t.instanceCount++,this.logger=new vM({id:this.instanceName,enabled:A.logging}),this.cache=(n=A.cache)!==null&&n!==void 0?n:new XN(this,A)}return t.instanceCount=1,t}(),SM=function(t,A){return A===void 0&&(A={}),TM(t,A)};typeof window<"u"&&SC.setContext(window);var TM=function(t,A){return at(void 0,void 0,void 0,function(){var e,n,r,i,s,a,c,u,f,h,g,m,w,F,b,I,O,T,E,H,M,U,M,P,N,sA,mA,nA,cA,LA,se,RA,HA,rA,BA,YA,VA,GA,DA,qA;return Ze(this,function(WA){switch(WA.label){case 0:if(!t||typeof t!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(e=t.ownerDocument,!e)throw new Error("Element is not attached to a Document");if(n=e.defaultView,!n)throw new Error("Document is not attached to a Window");return r={allowTaint:(P=A.allowTaint)!==null&&P!==void 0?P:!1,imageTimeout:(N=A.imageTimeout)!==null&&N!==void 0?N:15e3,proxy:A.proxy,useCORS:(sA=A.useCORS)!==null&&sA!==void 0?sA:!1},i=ju({logging:(mA=A.logging)!==null&&mA!==void 0?mA:!0,cache:A.cache},r),s={windowWidth:(nA=A.windowWidth)!==null&&nA!==void 0?nA:n.innerWidth,windowHeight:(cA=A.windowHeight)!==null&&cA!==void 0?cA:n.innerHeight,scrollX:(LA=A.scrollX)!==null&&LA!==void 0?LA:n.pageXOffset,scrollY:(se=A.scrollY)!==null&&se!==void 0?se:n.pageYOffset},a=new Wn(s.scrollX,s.scrollY,s.windowWidth,s.windowHeight),c=new IM(i,a),u=(RA=A.foreignObjectRendering)!==null&&RA!==void 0?RA:!1,f={allowTaint:(HA=A.allowTaint)!==null&&HA!==void 0?HA:!1,onclone:A.onclone,ignoreElements:A.ignoreElements,inlineImages:u,copyStyles:u},c.logger.debug("Starting document clone with size "+a.width+"x"+a.height+" scrolled to "+-a.left+","+-a.top),h=new vC(c,t,f),g=h.clonedReferenceElement,g?[4,h.toIFrame(e,a)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return m=WA.sent(),w=Rf(g)||_N(g)?oO(g.ownerDocument):Ha(c,g),F=w.width,b=w.height,I=w.left,O=w.top,T=_M(c,g,A.backgroundColor),E={canvas:A.canvas,backgroundColor:T,scale:(BA=(rA=A.scale)!==null&&rA!==void 0?rA:n.devicePixelRatio)!==null&&BA!==void 0?BA:1,x:((YA=A.x)!==null&&YA!==void 0?YA:0)+I,y:((VA=A.y)!==null&&VA!==void 0?VA:0)+O,width:(GA=A.width)!==null&&GA!==void 0?GA:Math.ceil(F),height:(DA=A.height)!==null&&DA!==void 0?DA:Math.ceil(b)},u?(c.logger.debug("Document cloned, using foreign object rendering"),M=new bM(c,E),[4,M.render(g)]):[3,3];case 2:return H=WA.sent(),[3,5];case 3:return c.logger.debug("Document cloned, element located at "+I+","+O+" with size "+F+"x"+b+" using computed rendering"),c.logger.debug("Starting DOM parsing"),U=uC(c,g),T===U.styles.backgroundColor&&(U.styles.backgroundColor=Jn.TRANSPARENT),c.logger.debug("Starting renderer for element at "+E.x+","+E.y+" with size "+E.width+"x"+E.height),M=new wM(c,E),[4,M.render(U)];case 4:H=WA.sent(),WA.label=5;case 5:return(!((qA=A.removeContainer)!==null&&qA!==void 0)||qA)&&(vC.destroy(m)||c.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),c.logger.debug("Finished rendering"),[2,H]}})})},_M=function(t,A,e){var n=A.ownerDocument,r=n.documentElement?co(t,getComputedStyle(n.documentElement).backgroundColor):Jn.TRANSPARENT,i=n.body?co(t,getComputedStyle(n.body).backgroundColor):Jn.TRANSPARENT,s=typeof e=="string"?co(t,e):e===null?Jn.TRANSPARENT:4294967295;return A===n.documentElement?Ir(r)?Ir(i)?s:i:r:s};const xM=p.defineComponent({__name:"dom-renderer",props:{modelValue:{type:String,default:""},fixedWidth:{type:Number,default:0},renderUpdates:{type:Boolean,default:!1},exportToSvg:{type:Boolean,default:!1},options:{type:Object,default:()=>({})},debug:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:A}){const e=t,n=A,r=p.ref(),i=p.ref(""),s=p.ref();async function a(){if(r.value){const u=r.value,h=(await SM(u.firstElementChild,{backgroundColor:"rgba(0, 0, 0, 0)",scale:1,width:u.offsetWidth,height:u.offsetHeight,...e.options})).toDataURL();if(n("update:modelValue",h),e.debug){const g=new Image;g.src=h,document.body.appendChild(g)}return h}return""}const c=vm.debounce(async()=>{i.value=await a()},300,{trailing:!0,leading:!1});return p.onMounted(()=>{const u=r.value;e.renderUpdates&&(s.value=new MutationObserver(async f=>{c()}),s.value.observe(u,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),setTimeout(()=>{c()},500)}),(u,f)=>(p.openBlock(),p.createElementBlock("div",{class:p.normalizeClass(["dom-renderer",{"off-screen":!t.debug}]),ref_key:"renderer",ref:r,style:p.normalizeStyle(t.fixedWidth>0?{width:`${t.fixedWidth}px`}:{})},[p.renderSlot(u.$slots,"default")],6))}}),OM={class:"link-sharing"},LM={key:0,class:"link-sharing__links container"},HM={class:"row"},kM={key:0,class:"col-12 col-md-6"},NM=["href"],MM={class:"caption"},DM={key:1,class:"col-12 col-md-6"},RM=["href"],KM={class:"caption"},PM={key:2,class:"col-12 col-md-6"},VM={class:"caption"},GM={key:3,class:"col-12 col-md-6"},WM=["href"],$M={class:"caption"},JM={key:4,class:"col-12 col-md-6"},XM=["href"],YM={class:"caption"},zM={key:5,class:"col-12 col-md-6"},qM={class:"caption"},ZM={key:6,class:"col-12 col-md-6"},jM=["href"],AD={class:"caption"},eD={key:1,class:"link-sharing__instructions pt-5"},tD={class:"row"},nD={class:"col-12 text-center py-0"},rD={class:"mb-5"},iD=t=>t.replace(/<(?:.|\n)*?>/gm,""),sD=p.defineComponent({__name:"link-sharing",props:{url:{type:String,default:""},subject:{type:String,default:""},hashtags:Array,text:{type:String,default:""},media:{type:String,default:""},services:{type:Object,default:{facebook:!0,instagram:!0,linkedin:!0,whatsapp:!0,mailto:!0,clipboard:!0,x:!0}}},setup(t){const A=t,e=p.ref(!1),n=p.computed(()=>encodeURIComponent(A.url));p.computed(()=>encodeURIComponent(A.media));const r=p.computed(()=>iD(A.text)),i=p.computed(()=>!!(navigator&&navigator.userAgent&&/Mobi|Android/i.test(navigator.userAgent)));async function s(){const a=document.createElement("textarea");document.body.appendChild(a),a.value=A.url,a.select(),a.setSelectionRange(0,99999),navigator.clipboard.writeText(a.value),document.body.removeChild(a)}return(a,c)=>{const u=p.resolveComponent("svg-icon");return p.openBlock(),p.createElementBlock("div",OM,[e.value?(p.openBlock(),p.createElementBlock("div",eD,[p.createElementVNode("div",tD,[p.createElementVNode("div",nD,[p.createElementVNode("div",rD,[p.createElementVNode("p",null,p.toDisplayString(a.$t("sharing.instructions",{service:"Instagram"})),1),p.createElementVNode("p",null,[p.createElementVNode("strong",null,p.toDisplayString(t.hashtags),1)])])])])])):(p.openBlock(),p.createElementBlock("div",LM,[p.createElementVNode("div",HM,[t.services.facebook?(p.openBlock(),p.createElementBlock("div",kM,[p.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`https://www.facebook.com/sharer.php?u=${n.value}`,target:"_blank",rel:"noopener"},[p.createVNode(u,{symbol:"facebook"}),p.createElementVNode("span",MM,p.toDisplayString(a.$t("sharing.facebook")),1)],8,NM)])):p.createCommentVNode("",!0),t.services.x?(p.openBlock(),p.createElementBlock("div",DM,[p.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`https://x.com/share?text=${t.subject}&url=${n.value}`,target:"_blank",rel:"noopener"},[p.createVNode(u,{symbol:"x-logo"}),p.createElementVNode("span",KM,p.toDisplayString(a.$t("sharing.x")),1)],8,RM)])):p.createCommentVNode("",!0),t.services.instagram?(p.openBlock(),p.createElementBlock("div",PM,[p.createElementVNode("button",{type:"button",class:"link-sharing__link btn btn-primary",onClick:c[0]||(c[0]=p.withModifiers(f=>e.value=!e.value,["prevent"]))},[p.createVNode(u,{symbol:"instagram"}),p.createElementVNode("span",VM,p.toDisplayString(a.$t("sharing.instagram")),1)])])):p.createCommentVNode("",!0),t.services.linkedin?(p.openBlock(),p.createElementBlock("div",GM,[p.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`https://www.linkedin.com/shareArticle?mini=true&url=${n.value}&title=${t.subject}`,target:"_blank",rel:"noopener"},[p.createVNode(u,{symbol:"linkedin"}),p.createElementVNode("span",$M,p.toDisplayString(a.$t("sharing.linkedin")),1)],8,WM)])):p.createCommentVNode("",!0),t.services.whatsapp&&i.value?(p.openBlock(),p.createElementBlock("div",JM,[p.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`whatsapp://send?text=${n.value}`,target:"_blank",rel:"noopener"},[p.createVNode(u,{symbol:"whatsapp"}),p.createElementVNode("span",YM,p.toDisplayString(a.$t("sharing.whatsapp")),1)],8,XM)])):p.createCommentVNode("",!0),t.services.clipboard?(p.openBlock(),p.createElementBlock("div",zM,[p.createElementVNode("button",{type:"button",class:"link-sharing__link btn btn-primary",onClick:p.withModifiers(s,["prevent","stop"])},[p.createVNode(u,{symbol:"copy"}),p.createElementVNode("span",qM,p.toDisplayString(a.$t("sharing.clipboard")),1)])])):p.createCommentVNode("",!0),t.services.mailto?(p.openBlock(),p.createElementBlock("div",ZM,[p.createElementVNode("a",{class:"link-sharing__link btn btn-primary",href:`mailto:?subject=${t.subject}&body=${r.value}%0D%0A${t.url}`,target:"_blank",rel:"noopener"},[p.createVNode(u,{symbol:"mail"}),p.createElementVNode("span",AD,p.toDisplayString(a.$t("sharing.mailto")),1)],8,jM)])):p.createCommentVNode("",!0)])]))])}}}),p3="",oD={class:"base-form"},aD=p.defineComponent({__name:"base-form",props:{id:{},name:{},variant:{},disabled:{type:Boolean},pending:{type:Boolean}},setup(t){function A(r){console.log("input",r)}function e(r){console.log("reset",r)}function n(r){console.log("submit",r)}return(r,i)=>(p.openBlock(),p.createElementBlock("div",oD,[p.createElementVNode("form",{ref:"form",onInput:A,onReset:e,onSubmit:p.withModifiers(n,["prevent"])},[p.renderSlot(r.$slots,"default")],544)]))}}),g3="",lD={class:"modal-dialog__content d-flex flex-column"},cD={class:"modal-dialog__header d-flex p-3 border-bottom"},uD={key:0,class:"modal-dialog__title",id:"exampleModalLabel"},fD={class:"modal-dialog__body"},dD={key:0,class:"modal-dialog__footer d-flex p-3 border-top"},hD=p.defineComponent({__name:"modal-dialog",props:{modelValue:{type:Boolean,default:!1},modal:{type:Boolean,default:!0},size:{type:String,default:"md"},dismiss:{type:Boolean,default:!0},title:{type:String,default:""},footer:{type:Boolean,default:!0},classes:{type:String,default:""}},emits:["update:modelValue","confirm","cancel"],setup(t,{expose:A,emit:e}){const n=t,r=e,i=p.ref();function s(){var g,m;document.documentElement.style.setProperty("--scroll-position",`${Math.round(document.documentElement.scrollTop)}px`),n.modal?(g=i.value)==null||g.showModal():(m=i.value)==null||m.show(),r("update:modelValue",!0)}function a(){const g=i.value&&new KeyframeEffect(i.value,[{translate:"0 -100%",opacity:"0"}],{duration:320,easing:"ease",direction:"normal"}),m=new Animation(g,document.timeline);m.play(),m.addEventListener("finish",()=>{var w;(w=i.value)==null||w.close(),c()}),r("update:modelValue",!1)}function c(){const g=getComputedStyle(document.documentElement).getPropertyValue("--scroll-position");document.documentElement.scrollTo({top:parseInt(g,10),behavior:"instant"}),r("update:modelValue",!1)}function u(g){s(),r("confirm",g)}function f(){a(),r("cancel")}function h(g){const m=g.target;m&&m.nodeName==="DIALOG"&&a()}return p.watch(()=>n.modelValue,(g,m)=>{g&&g!==m?s():m&&a()},{immediate:!0}),p.onMounted(()=>{var g;(g=i.value)==null||g.addEventListener("cancel",m=>{m.preventDefault(),a()}),n.dismiss&&document.addEventListener("click",h),n.modelValue&&s()}),p.onBeforeUnmount(()=>{n.dismiss&&document.removeEventListener("click",h)}),A({show:s,close:a,confirm:u,cancel:f}),(g,m)=>(p.openBlock(),p.createElementBlock("dialog",{ref_key:"dialog",ref:i,class:p.normalizeClass(["modal-dialog",{[`modal-dialog--${t.size}`]:t.size}]),onClose:c},[p.createElementVNode("div",lD,[p.createElementVNode("div",cD,[t.title?(p.openBlock(),p.createElementBlock("h5",uD,p.toDisplayString(t.title),1)):p.createCommentVNode("",!0),p.createElementVNode("button",{type:"button",class:"btn-close ms-auto border-radius-none","aria-label":"Close",onClick:a})]),p.createElementVNode("div",fD,[p.renderSlot(g.$slots,"default")]),t.footer?(p.openBlock(),p.createElementBlock("div",dD,[p.renderSlot(g.$slots,"footer"),p.createElementVNode("button",{type:"button",class:"btn ms-auto",onClick:a},p.toDisplayString(g.$t("common.close")),1)])):p.createCommentVNode("",!0)])],34))}}),B3="";TA.Accordion=HE,TA.AccordionItem=TE,TA.AssetUploader=Gx,TA.BaseButton=NE,TA.BaseCamera=T_,TA.BaseCarousel=km,TA.BaseForm=aD,TA.BaseHeadline=CE,TA.BaseImage=wE,TA.BaseInput=KE,TA.BaseParagraph=EE,TA.CheckGroup=nQ,TA.DomRenderer=xM,TA.FileUpload=Ox,TA.InputCheckbox=YE,TA.InputColor=AS,TA.InputDatetime=jE,TA.InputDropdown=l_,TA.InputFile=gQ,TA.InputTextarea=WE,TA.LinkSharing=sD,TA.LoadingSpinner=BE,TA.MediaThumbnails=qx,TA.ModalDialog=hD,TA.ProgressSteps=sO,TA.RadioGroup=aQ,TA.RteEditor=z1,TA.SvgIcon=hE,TA.UploadGroup=Hm,Object.defineProperty(TA,Symbol.toStringTag,{value:"Module"})});
|
|
@@ -15,6 +15,10 @@ declare const _sfc_main: import('./vue/dist/vue.esm-bundler.js').DefineComponent
|
|
|
15
15
|
type: BooleanConstructor;
|
|
16
16
|
default: boolean;
|
|
17
17
|
};
|
|
18
|
+
options: {
|
|
19
|
+
type: ObjectConstructor;
|
|
20
|
+
default: () => {};
|
|
21
|
+
};
|
|
18
22
|
debug: {
|
|
19
23
|
type: BooleanConstructor;
|
|
20
24
|
default: boolean;
|
|
@@ -36,6 +40,10 @@ declare const _sfc_main: import('./vue/dist/vue.esm-bundler.js').DefineComponent
|
|
|
36
40
|
type: BooleanConstructor;
|
|
37
41
|
default: boolean;
|
|
38
42
|
};
|
|
43
|
+
options: {
|
|
44
|
+
type: ObjectConstructor;
|
|
45
|
+
default: () => {};
|
|
46
|
+
};
|
|
39
47
|
debug: {
|
|
40
48
|
type: BooleanConstructor;
|
|
41
49
|
default: boolean;
|
|
@@ -44,6 +52,7 @@ declare const _sfc_main: import('./vue/dist/vue.esm-bundler.js').DefineComponent
|
|
|
44
52
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
45
53
|
}, {
|
|
46
54
|
modelValue: string;
|
|
55
|
+
options: Record<string, any>;
|
|
47
56
|
fixedWidth: number;
|
|
48
57
|
renderUpdates: boolean;
|
|
49
58
|
exportToSvg: boolean;
|