PageSourceSearch

https://abem-nacional.com.br/scripts.2271e5f058958e90.js

js abem-nacional.com.br collected 2026-10-04 06:06:02 UTC 437,081 bytes, 1 lines download raw bytes

1!function(Q,M){"object"==typeof exports&&typeof module<"u"?module.exports=M():"function"==typeof define&&define.amd?define(M):(Q=typeof globalThis<"u"?globalThis:Q||self).Chart=M()}(this,function(){"use strict";function Q(){}const M=function(){let n=0;return function(){return n++}}();function T(n){return null==n}function q(n){if(Array.isArray&&Array.isArray(n))return!0;const t=Object.prototype.toString.call(n);return"[object"===t.slice(0,7)&&"Array]"===t.slice(-6)}function P(n){return null!==n&&"[object Object]"===Object.prototype.toString.call(n)}const R=n=>("number"==typeof n||n instanceof Number)&&isFinite(+n);function A(n,t){return R(n)?n:t}function E(n,t){return void 0===n?t:n}const x=(n,t)=>"string"==typeof n&&n.endsWith("%")?parseFloat(n)/100:n/t,g=(n,t)=>"string"==typeof n&&n.endsWith("%")?parseFloat(n)/100*t:+n;function h(n,t,e){if(n&&"function"==typeof n.call)return n.apply(e,t)}function u(n,t,e,i){let r,o,s;if(q(n))if(o=n.length,i)for(r=o-1;r>=0;r--)t.call(e,n[r],r);else for(r=0;r<o;r++)t.call(e,n[r],r);else if(P(n))for(s=Object.keys(n),o=s.length,r=0;r<o;r++)t.call(e,n[s[r]],s[r])}function v(n,t){let e,i,r,o;if(!n||!t||n.length!==t.length)return!1;for(e=0,i=n.length;e<i;++e)if(r=n[e],o=t[e],r.datasetIndex!==o.datasetIndex||r.index!==o.index)return!1;return!0}function m(n){if(q(n))return n.map(m);if(P(n)){const t=Object.create(null),e=Object.keys(n),i=e.length;let r=0;for(;r<i;++r)t[e[r]]=m(n[e[r]]);return t}return n}function b(n){return-1===["__proto__","prototype","constructor"].indexOf(n)}function d(n,t,e,i){if(!b(n))return;const r=t[n],o=e[n];P(r)&&P(o)?p(r,o,i):t[n]=m(o)}function p(n,t,e){const i=q(t)?t:[t],r=i.length;if(!P(n))return n;const o=(e=e||{}).merger||d;for(let s=0;s<r;++s){if(!P(t=i[s]))continue;const a=Object.keys(t);for(let l=0,c=a.length;l<c;++l)o(a[l],n,t,e)}return n}function O(n,t){return p(n,t,{merger:f})}function f(n,t,e){if(!b(n))return;const i=t[n],r=e[n];P(i)&&P(r)?O(i,r):Object.prototype.hasOwnProperty.call(t,n)||(t[n]=m(r))}const w={"":n=>n,x:n=>n.x,y:n=>n.y};function z(n,t){return(w[t]||(w[t]=function(i){const r=I(i);return o=>{for(const s of r){if(""===s)break;o=o&&o[s]}return o}}(t)))(n)}function I(n){const t=n.split("."),e=[];let i="";for(const r of t)i+=r,i.endsWith("\\")?i=i.slice(0,-1)+".":(e.push(i),i="");return e}function B(n){return n.charAt(0).toUpperCase()+n.slice(1)}const W=n=>void 0!==n,L=n=>"function"==typeof n,S=(n,t)=>{if(n.size!==t.size)return!1;for(const e of n)if(!t.has(e))return!1;return!0};function D(n){return"mouseup"===n.type||"click"===n.type||"contextmenu"===n.type}const j=Math.PI,V=2*j,Y=V+j,rt=Number.POSITIVE_INFINITY,st=j/180,dt=j/2,et=j/4,X=2*j/3,F=Math.log10,K=Math.sign;function G(n){const t=Math.round(n);n=$(n,t,n/1e3)?t:n;const e=Math.pow(10,Math.floor(F(n))),i=n/e;return(i<=1?1:i<=2?2:i<=5?5:10)*e}function at(n){const t=[],e=Math.sqrt(n);let i;for(i=1;i<e;i++)n%i==0&&(t.push(i),t.push(n/i));return e===(0|e)&&t.push(e),t.sort((r,o)=>r-o).pop(),t}function it(n){return!isNaN(parseFloat(n))&&isFinite(n)}function $(n,t,e){return Math.abs(n-t)<e}function tt(n,t){const e=Math.round(n);return e-t<=n&&e+t>=n}function ut(n,t,e){let i,r,o;for(i=0,r=n.length;i<r;i++)o=n[i][e],isNaN(o)||(t.min=Math.min(t.min,o),t.max=Math.max(t.max,o))}function lt(n){return n*(j/180)}function pt(n){return n*(180/j)}function kt(n){if(!R(n))return;let t=1,e=0;for(;Math.round(n*t)/t!==n;)t*=10,e++;return e}function Pt(n,t){const e=t.x-n.x,i=t.y-n.y,r=Math.sqrt(e*e+i*i);let o=Math.atan2(i,e);return o<-.5*j&&(o+=V),{angle:o,distance:r}}function Mt(n,t){return Math.sqrt(Math.pow(t.x-n.x,2)+Math.pow(t.y-n.y,2))}function jt(n,t){return(n-t+Y)%V-j}function Nt(n){return(n%V+V)%V}function Wt(n,t,e,i){const r=Nt(n),o=Nt(t),s=Nt(e),a=Nt(o-r),l=Nt(s-r),c=Nt(r-o),y=Nt(r-s);return r===o||r===s||i&&o===s||a>l&&c<y}function It(n,t,e){return Math.max(t,Math.min(e,n))}function ft(n){return It(n,-32768,32767)}function ht(n,t,e,i=1e-6){return n>=Math.min(t,e)-i&&n<=Math.max(t,e)+i}function _t(n,t,e){e=e||(s=>n[s]<t);let i,r=n.length-1,o=0;for(;r-o>1;)i=o+r>>1,e(i)?o=i:r=i;return{lo:o,hi:r}}const xt=(n,t,e,i)=>_t(n,e,i?r=>n[r][t]<=e:r=>n[r][t]<e),mt=(n,t,e)=>_t(n,e,i=>n[i][t]>=e);function Lt(n,t,e){let i=0,r=n.length;for(;i<r&&n[i]<t;)i++;for(;r>i&&n[r-1]>e;)r--;return i>0||r<n.length?n.slice(i,r):n}const Rt=["push","pop","shift","splice","unshift"];function Dt(n,t){n._chartjs?n._chartjs.listeners.push(t):(Object.defineProperty(n,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}
1),Rt.forEach(e=>{const i="_onData"+B(e),r=n[e];Object.defineProperty(n,e,{configurable:!0,enumerable:!1,value(...o){const s=r.apply(this,o);return n._chartjs.listeners.forEach(a=>{"function"==typeof a[i]&&a[i](...o)}),s}})}))}function Zt(n,t){const e=n._chartjs;if(!e)return;const i=e.listeners,r=i.indexOf(t);-1!==r&&i.splice(r,1),i.length>0||(Rt.forEach(o=>{delete n[o]}),delete n._chartjs)}function Qt(n){const t=new Set;let e,i;for(e=0,i=n.length;e<i;++e)t.add(n[e]);return t.size===i?n:Array.from(t)}const qt=typeof window>"u"?function(n){return n()}:window.requestAnimationFrame;function ze(n,t,e){const i=e||(s=>Array.prototype.slice.call(s));let r=!1,o=[];return function(...s){o=i(s),r||(r=!0,qt.call(window,()=>{r=!1,n.apply(t,o)}))}}function zt(n,t){let e;return function(...i){return t?(clearTimeout(e),e=setTimeout(n,t,i)):n.apply(this,i),t}}const Jt=n=>"start"===n?"left":"end"===n?"right":"center",Kt=(n,t,e)=>"start"===n?t:"end"===n?e:(t+e)/2,qi=(n,t,e,i)=>n===(i?"left":"right")?e:"center"===n?(t+e)/2:t;function zn(n,t,e){const i=t.length;let r=0,o=i;if(n._sorted){const{iScale:s,_parsed:a}=n,l=s.axis,{min:c,max:y,minDefined:_,maxDefined:k}=s.getUserBounds();_&&(r=It(Math.min(xt(a,s.axis,c).lo,e?i:xt(t,l,s.getPixelForValue(c)).lo),0,i-1)),o=k?It(Math.max(xt(a,s.axis,y,!0).hi+1,e?0:xt(t,l,s.getPixelForValue(y),!0).hi+1),r,i)-r:i-r}return{start:r,count:o}}function Hn(n){const{xScale:t,yScale:e,_scaleRanges:i}=n,r={xmin:t.min,xmax:t.max,ymin:e.min,ymax:e.max};if(!i)return n._scaleRanges=r,!0;const o=i.xmin!==t.min||i.xmax!==t.max||i.ymin!==e.min||i.ymax!==e.max;return Object.assign(i,r),o}var ae=new class{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(n,t,e,i){const o=t.duration;
vendor: 6,240 bytes, line 1
1t.listeners[i].forEach(s=>s({chart:n,initial:t.initial,numSteps:o,currentStep:Math.min(e-t.start,o)}))}_refresh(){this._request||(this._running=!0,this._request=qt.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(n=Date.now()){let t=0;this._charts.forEach((e,i)=>{if(!e.running||!e.items.length)return;const r=e.items;let o,s=r.length-1,a=!1;for(;s>=0;--s)o=r[s],o._active?(o._total>e.duration&&(e.duration=o._total),o.tick(n),a=!0):(r[s]=r[r.length-1],r.pop());a&&(i.draw(),this._notify(i,e,n,"progress")),r.length||(e.running=!1,this._notify(i,e,n,"complete"),e.initial=!1),t+=r.length}),this._lastDate=n,0===t&&(this._running=!1)}_getAnims(n){const t=this._charts;let e=t.get(n);return e||(e={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},t.set(n,e)),e}listen(n,t,e){this._getAnims(n).listeners[t].push(e)}add(n,t){t&&t.length&&this._getAnims(n).items.push(...t)}has(n){return this._getAnims(n).items.length>0}start(n){const t=this._charts.get(n);t&&(t.running=!0,t.start=Date.now(),t.duration=t.items.reduce((e,i)=>Math.max(e,i._duration),0),this._refresh())}running(n){if(!this._running)return!1;const t=this._charts.get(n);return!!(t&&t.running&&t.items.length)}stop(n){const t=this._charts.get(n);if(!t||!t.items.length)return;const e=t.items;let i=e.length-1;for(;i>=0;--i)e[i].cancel();t.items=[],this._notify(n,t,Date.now(),"complete")}remove(n){return this._charts.delete(n)}};function He(n){return n+.5|0}const ge=(n,t,e)=>Math.max(Math.min(n,e),t);function Ve(n){return ge(He(2.55*n),0,255)}function me(n){return ge(He(255*n),0,255)}function ue(n){return ge(He(n/2.55)/100,0,1)}function Fi(n){return ge(He(100*n),0,100)}const ne={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},Vn=[..."0123456789ABCDEF"],Uo=n=>Vn[15&n],$o=n=>Vn[(240&n)>>4]+Vn[15&n],an=n=>(240&n)>>4==(15&n),Yo=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function zi(n,t,e){const i=t*Math.min(e,1-e),r=(o,s=(o+n/30)%12)=>e-i*Math.max(Math.min(s-3,9-s,1),-1);return[r(0),r(8),r(4)]}function Go(n,t,e){const i=(r,o=(r+n/60)%6)=>e-e*t*Math.max(Math.min(o,4-o,1),0);return[i(5),i(3),i(1)]}function Zo(n,t,e){const i=zi(n,1,.5);let r;for(t+e>1&&(r=1/(t+e),t*=r,e*=r),r=0;r<3;r++)i[r]*=1-t-e,i[r]+=t;return i}function Wn(n){const t=n.r/255,e=n.g/255,i=n.b/255,r=Math.max(t,e,i),o=Math.min(t,e,i),s=(r+o)/2;let a,l,c;return r!==o&&(c=r-o,l=s>.5?c/(2-r-o):c/(r+o),_=e,k=i,N=c,a=(y=t)===(C=r)?(_-k)/N+(_<k?6:0):_===C?(k-y)/N+2:(y-_)/N+4,a=60*a+.5),[0|a,l||0,s];var y,_,k,N,C}function Un(n,t,e,i){return(Array.isArray(t)?n(t[0],t[1],t[2]):n(t,e,i)).map(me)}function $n(n,t,e){return Un(zi,n,t,e)}function Hi(n){return(n%360+360)%360}const Vi={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},Wi={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};let ln;const Jo=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/,Kn=n=>n<=.0031308?12.92*n:1.055*Math.pow(n,1/2.4)-.055,Le=n=>n<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4);function un(n,t,e){if(n){let i=Wn(n);i[t]=Math.max(0,Math.min(i[t]+i[t]*e,0===t?360:1)),i=$n(i),n.r=i[0],n.g=i[1],n.b=i[2]}}function Ui(n,t){return n&&Object.assign(t||{},n)}function $i(n){var t={r:0,g:0,b:0,a:255};return Array.isArray(n)?n.length>=3&&(t={r:n[0],g:n[1],b:n[2],a:255},n.length>3&&(t.a=me(n[3]))):(t=Ui(n,{r:0,g:0,b:0,a:1})).a=me(t.a),t}class cn{constructor(t){if(t instanceof cn)return t;const e=typeof t;let i;var r,o,s;"object"===e?i=$i(t):"string"===e&&(s=(r=t).length,"#"===r[0]&&(4===s||5===s?o={r:255&17*ne[r[1]],g:255&17*ne[r[2]],b:255&17*ne[r[3]],a:5===s?17*ne[r[4]]:255}:7!==s&&9!==s||(o={r:ne[r[1]]<<4|ne[r[2]],g:ne[r[3]]<<4|ne[r[4]],b:ne[r[5]]<<4|ne[r[6]],a:9===s?
1ne[r[7]]<<4|ne[r[8]]:255})),i=o||function Qo(n){ln||(ln=function(){const e={},i=Object.keys(Wi),r=Object.keys(Vi);let o,s,a,l,c;for(o=0;o<i.length;o++){for(l=c=i[o],s=0;s<r.length;s++)a=r[s],c=c.replace(a,Vi[a]);a=parseInt(Wi[l],16),e[c]=[a>>16&255,a>>8&255,255&a]}return e}(),ln.transparent=[0,0,0,0]);const t=ln[n.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:4===t.length?t[3]:255}}(t)||function ts(n){return"r"===n.charAt(0)?function(t){const e=Jo.exec(t);let i,r,o,s=255;if(e){if(e[7]!==i){const a=+e[7];s=e[8]?Ve(a):ge(255*a,0,255)}return i=+e[1],r=+e[3],o=+e[5],i=255&(e[2]?Ve(i):ge(i,0,255)),r=255&(e[4]?Ve(r):ge(r,0,255)),o=255&(e[6]?Ve(o):ge(o,0,255)),{r:i,g:r,b:o,a:s}}}(n):function Xo(n){const t=Yo.exec(n);let e,i=255;if(!t)return;t[5]!==e&&(i=t[6]?Ve(+t[5]):me(+t[5]));const r=Hi(+t[2]),o=+t[3]/100,s=+t[4]/100;return e="hwb"===t[1]?Un(Zo,r,o,s):"hsv"===t[1]?Un(Go,r,o,s):$n(r,o,s),{r:e[0],g:e[1],b:e[2],a:i}}(n)}(t)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var t=Ui(this._rgb);return t&&(t.a=ue(t.a)),t}set rgb(t){this._rgb=$i(t)}rgbString(){return this._valid?(t=this._rgb)&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${ue(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`):void 0;var t}hexString(){return this._valid?function Ko(n){var e,t=an((e=n).r)&&an(e.g)&&an(e.b)&&an(e.a)?Uo:$o;return n?"#"+t(n.r)+t(n.g)+t(n.b)+((e,i)=>e<255?i(e):"")(n.a,t):void 0}(this._rgb):void 0}hslString(){return this._valid?function(t){if(!t)return;const e=Wn(t),i=e[0],r=Fi(e[1]),o=Fi(e[2]);return t.a<255?`hsla(${i}, ${r}%, ${o}%, ${ue(t.a)})`:`hsl(${i}, ${r}%, ${o}%)`}(this._rgb):void 0}mix(t,e){if(t){const i=this.rgb,r=t.rgb;let o;const s=e===o?.5:e,a=2*s-1,l=i.a-r.a,c=((a*l==-1?a:(a+l)/(1+a*l))+1)/2;o=1-c,i.r=255&c*i.r+o*r.r+.5,i.g=255&c*i.g+o*r.g+.5,i.b=255&c*i.b+o*r.b+.5,i.a=s*i.a+(1-s)*r.a,this.rgb=i}return this}interpolate(t,e){return t&&(this._rgb=function(i,r,o){const s=Le(ue(i.r)),a=Le(ue(i.g)),l=Le(ue(i.b));return{r:me(Kn(s+o*(Le(ue(r.r))-s))),g:me(Kn(a+o*(Le(ue(r.g))-a))),b:me(Kn(l+o*(Le(ue(r.b))-l))),a:i.a+o*(r.a-i.a)}}(this._rgb,t._rgb,e)),this}clone(){return new cn(this.rgb)}alpha(t){return this._rgb.a=me(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){const t=this._rgb,e=He(.3*t.r+.59*t.g+.11*t.b);return t.r=t.g=t.b=e,this}opaquer(t){return this._rgb.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return un(this._rgb,2,t),this}darken(t){return un(this._rgb,2,-t),this}saturate(t){return un(this._rgb,1,t),this}desaturate(t){return un(this._rgb,1,-t),this}rotate(t){return i=t,(r=Wn(e=this._rgb))[0]=Hi(r[0]+i),r=$n(r),e.r=r[0],e.g=r[1],e.b=r[2],this;var e,i,r}}function Ki(n){return new cn(n)}function Yn(n){if(n&&"object"==typeof n){const t=n.toString();return"[object CanvasPattern]"===t||"[object CanvasGradient]"===t}return!1}function Gn(n){return Yn(n)?n:Ki(n)}function hn(n){return Yn(n)?n:Ki(n).saturate(.5).darken(.1).hexString()}const Se=Object.create(null),Zn=Object.create(null);function We(n,t){if(!t)return n;const e=t.split(".");for(let i=0,r=e.length;i<r;++i){const o=e[i];n=n[o]||(n[o]=Object.create(null))}return n}function Xn(n,t,e){return"string"==typeof t?p(We(n,t),e):p(We(n,""),t)}var Bt=new class{constructor(n){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=t=>t.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(t,e)=>hn(e.backgroundColor),this.hoverBorderColor=(t,e)=>hn(e.borderColor),this.hoverColor=(t,e)=>hn(e.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={}
1,this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(n)}set(n,t){return Xn(this,n,t)}get(n){return We(this,n)}describe(n,t){return Xn(Zn,n,t)}override(n,t){return Xn(Se,n,t)}route(n,t,e,i){const r=We(this,n),o=We(this,e),s="_"+t;Object.defineProperties(r,{[s]:{value:r[t],writable:!0},[t]:{enumerable:!0,get(){const a=this[s],l=o[i];return P(a)?Object.assign({},l,a):E(a,l)},set(a){this[s]=a}}})}}({_scriptable:n=>!n.startsWith("on"),_indexable:n=>"events"!==n,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function Qn(){return typeof window<"u"&&typeof document<"u"}function fn(n){let t=n.parentNode;return t&&"[object ShadowRoot]"===t.toString()&&(t=t.host),t}function dn(n,t,e){let i;return"string"==typeof n?(i=parseInt(n,10),-1!==n.indexOf("%")&&(i=i/100*t.parentNode[e])):i=n,i}const pn=n=>window.getComputedStyle(n,null);function Yi(n,t){return pn(n).getPropertyValue(t)}const es=["top","right","bottom","left"];function Ae(n,t,e){const i={};e=e?"-"+e:"";for(let r=0;r<4;r++){const o=es[r];i[o]=parseFloat(n[t+"-"+o+e])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}function ve(n,t){if("native"in n)return n;const{canvas:e,currentDevicePixelRatio:i}=t,r=pn(e),o="border-box"===r.boxSizing,s=Ae(r,"padding"),a=Ae(r,"border","width"),{x:l,y:c,box:y}=function(H,U){const Z=H.touches,J=Z&&Z.length?Z[0]:H,{offsetX:nt,offsetY:ot}=J;let ct,gt,vt=!1;if(bt=H.target,!(nt>0||ot>0)||bt&&bt.shadowRoot){const wt=U.getBoundingClientRect();ct=J.clientX-wt.left,gt=J.clientY-wt.top,vt=!0}else ct=nt,gt=ot;var bt;return{x:ct,y:gt,box:vt}}(n,e),_=s.left+(y&&a.left),k=s.top+(y&&a.top);let{width:N,height:C}=t;return o&&(N-=s.width+a.width,C-=s.height+a.height),{x:Math.round((l-_)/N*e.width/i),y:Math.round((c-k)/C*e.height/i)}}const Jn=n=>Math.round(10*n)/10;function Gi(n,t,e,i){const r=pn(n),o=Ae(r,"margin"),s=dn(r.maxWidth,n,"clientWidth")||rt,a=dn(r.maxHeight,n,"clientHeight")||rt,l=function(_,k,N){let C,H;if(void 0===k||void 0===N){const U=fn(_);if(U){const Z=U.getBoundingClientRect(),J=pn(U),nt=Ae(J,"border","width"),ot=Ae(J,"padding");k=Z.width-ot.width-nt.width,N=Z.height-ot.height-nt.height,C=dn(J.maxWidth,U,"clientWidth"),H=dn(J.maxHeight,U,"clientHeight")}else k=_.clientWidth,N=_.clientHeight}return{width:k,height:N,maxWidth:C||rt,maxHeight:H||rt}}(n,t,e);let{width:c,height:y}=l;if("content-box"===r.boxSizing){const _=Ae(r,"border","width"),k=Ae(r,"padding");c-=k.width+_.width,y-=k.height+_.height}return c=Math.max(0,c-o.width),y=Math.max(0,i?Math.floor(c/i):y-o.height),c=Jn(Math.min(c,s,l.maxWidth)),y=Jn(Math.min(y,a,l.maxHeight)),c&&!y&&(y=Jn(c/2)),{width:c,height:y}}function ti(n,t,e){const i=t||1,r=Math.floor(n.height*i),o=Math.floor(n.width*i);n.height=r/i,n.width=o/i;const s=n.canvas;return s.style&&(e||!s.style.height&&!s.style.width)&&(s.style.height=`${n.height}px`,s.style.width=`${n.width}px`),(n.currentDevicePixelRatio!==i||s.height!==r||s.width!==o)&&(n.currentDevicePixelRatio=i,s.height=r,s.width=o,n.ctx.setTransform(i,0,0,i,0,0),!0)}const Zi=function(){let n=!1;try{const t={get passive(){return n=!0,!1}};window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch{}return n}();function ei(n,t){const e=Yi(n,t),i=e&&e.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}function Xi(n){return!n||T(n.size)||T(n.family)?null:(n.style?n.style+" ":"")+(n.weight?n.weight+" ":"")+n.size+"px "+n.family}function Ue(n,t,e,i,r){let o=t[r];return o||(o=t[r]=n.measureText(r).width,e.push(r)),o>i&&(i=o),i}function Qi(n,t,e,i){let r=(i=i||{}).data=i.data||{},o=i.garbageCollect=i.garbageCollect||[];i.font!==t&&(r=i.data={},o=i.garbageCollect=[],i.font=t),n.save(),n.font=t;let s=0;const a=e.length;let l,c,y,_,k;for(l=0;l<a;l++)if(_=e[l],null!=_&&!0!==q(_))s=Ue(n,r,o,s,_);else if(q(_))for(c=0,y=_.length;c<y;c++)k=_[c],null==k||q(k)||(s=Ue(n,r,o,s,k));n.restore();const N=o.length/2;if(N>e.length){for(l=0;l<N;l++)delete r[o[l]];o.splice(0,N)}return s}function ye(n,t,e){const i=n.currentDevicePixelRatio,r=0!==e?Math.max(e/2,.5):0;return Math.round((t-r)*i)/i+r}function ni(n,t){(t=t||n.getContext("2d")).save(),t.resetTransform(),t.clearRect(0,0,n.width,n.height),t.restore(
1)}function gn(n,t,e,i){ii(n,t,e,i,null)}function ii(n,t,e,i,r){let o,s,a,l,c,y;const _=t.pointStyle,k=t.rotation,N=t.radius;let C=(k||0)*st;if(_&&"object"==typeof _&&(o=_.toString(),"[object HTMLImageElement]"===o||"[object HTMLCanvasElement]"===o))return n.save(),n.translate(e,i),n.rotate(C),n.drawImage(_,-_.width/2,-_.height/2,_.width,_.height),void n.restore();if(!(isNaN(N)||N<=0)){switch(n.beginPath(),_){default:r?n.ellipse(e,i,r/2,N,0,0,V):n.arc(e,i,N,0,V),n.closePath();break;case"triangle":n.moveTo(e+Math.sin(C)*N,i-Math.cos(C)*N),C+=X,n.lineTo(e+Math.sin(C)*N,i-Math.cos(C)*N),C+=X,n.lineTo(e+Math.sin(C)*N,i-Math.cos(C)*N),n.closePath();break;case"rectRounded":c=.516*N,l=N-c,s=Math.cos(C+et)*l,a=Math.sin(C+et)*l,n.arc(e-s,i-a,c,C-j,C-dt),n.arc(e+a,i-s,c,C-dt,C),n.arc(e+s,i+a,c,C,C+dt),n.arc(e-a,i+s,c,C+dt,C+j),n.closePath();break;case"rect":if(!k){l=Math.SQRT1_2*N,y=r?r/2:l,n.rect(e-y,i-l,2*y,2*l);break}C+=et;case"rectRot":s=Math.cos(C)*N,a=Math.sin(C)*N,n.moveTo(e-s,i-a),n.lineTo(e+a,i-s),n.lineTo(e+s,i+a),n.lineTo(e-a,i+s),n.closePath();break;case"crossRot":C+=et;case"cross":s=Math.cos(C)*N,a=Math.sin(C)*N,n.moveTo(e-s,i-a),n.lineTo(e+s,i+a),n.moveTo(e+a,i-s),n.lineTo(e-a,i+s);break;case"star":s=Math.cos(C)*N,a=Math.sin(C)*N,n.moveTo(e-s,i-a),n.lineTo(e+s,i+a),n.moveTo(e+a,i-s),n.lineTo(e-a,i+s),C+=et,s=Math.cos(C)*N,a=Math.sin(C)*N,n.moveTo(e-s,i-a),n.lineTo(e+s,i+a),n.moveTo(e+a,i-s),n.lineTo(e-a,i+s);break;case"line":s=r?r/2:Math.cos(C)*N,a=Math.sin(C)*N,n.moveTo(e-s,i-a),n.lineTo(e+s,i+a);break;case"dash":n.moveTo(e,i),n.lineTo(e+Math.cos(C)*N,i+Math.sin(C)*N)}n.fill(),t.borderWidth>0&&n.stroke()}}function Re(n,t,e){return e=e||.5,!t||n&&n.x>t.left-e&&n.x<t.right+e&&n.y>t.top-e&&n.y<t.bottom+e}function $e(n,t){n.save(),n.beginPath(),n.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),n.clip()}function Ke(n){n.restore()}function Ji(n,t,e,i,r){if(!t)return n.lineTo(e.x,e.y);if("middle"===r){const o=(t.x+e.x)/2;n.lineTo(o,t.y),n.lineTo(o,e.y)}else"after"===r!=!!i?n.lineTo(t.x,e.y):n.lineTo(e.x,t.y);n.lineTo(e.x,e.y)}function tr(n,t,e,i){if(!t)return n.lineTo(e.x,e.y);n.bezierCurveTo(i?t.cp1x:t.cp2x,i?t.cp1y:t.cp2y,i?e.cp2x:e.cp1x,i?e.cp2y:e.cp1y,e.x,e.y)}function be(n,t,e,i,r,o={}){const s=q(t)?t:[t],a=o.strokeWidth>0&&""!==o.strokeColor;let l,c;for(n.save(),n.font=r.string,y=n,(_=o).translation&&y.translate(_.translation[0],_.translation[1]),T(_.rotation)||y.rotate(_.rotation),_.color&&(y.fillStyle=_.color),_.textAlign&&(y.textAlign=_.textAlign),_.textBaseline&&(y.textBaseline=_.textBaseline),l=0;l<s.length;++l)c=s[l],a&&(o.strokeColor&&(n.strokeStyle=o.strokeColor),T(o.strokeWidth)||(n.lineWidth=o.strokeWidth),n.strokeText(c,e,i,o.maxWidth)),n.fillText(c,e,i,o.maxWidth),ns(n,e,i,c,o),i+=r.lineHeight;var y,_;n.restore()}function ns(n,t,e,i,r){if(r.strikethrough||r.underline){const o=n.measureText(i),s=t-o.actualBoundingBoxLeft,a=t+o.actualBoundingBoxRight,c=e+o.actualBoundingBoxDescent,y=r.strikethrough?(e-o.actualBoundingBoxAscent+c)/2:c;n.strokeStyle=n.fillStyle,n.beginPath(),n.lineWidth=r.decorationWidth||2,n.moveTo(s,y),n.lineTo(a,y),n.stroke()}}function De(n,t){const{x:e,y:i,w:r,h:o,radius:s}=t;n.arc(e+s.topLeft,i+s.topLeft,s.topLeft,-dt,j,!0),n.lineTo(e,i+o-s.bottomLeft),n.arc(e+s.bottomLeft,i+o-s.bottomLeft,s.bottomLeft,j,dt,!0),n.lineTo(e+r-s.bottomRight,i+o),n.arc(e+r-s.bottomRight,i+o-s.bottomRight,s.bottomRight,dt,0,!0),n.lineTo(e+r,i+s.topRight),n.arc(e+r-s.topRight,i+s.topRight,s.topRight,0,-dt,!0),n.lineTo(e+s.topLeft,i)}function mn(n,t=[""],e=n,i,r=()=>n[0]){W(i)||(i=rr("_fallback",n));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:n,_rootScopes:e,_fallback:i,_getTarget:r,override:s=>mn([s,...n],t,e,i)};return new Proxy(o,{deleteProperty:(s,a)=>(delete s[a],delete s._keys,delete n[0][a],!0),get:(s,a)=>er(s,a,()=>function(l,c,y,_){let k;for(const N of c)if(k=rr(is(N,l),y),W(k))return oi(l,k)?si(y,_,l,k):k}(a,t,n,s)),getOwnPropertyDescriptor:(s,a)=>Reflect.getOwnPropertyDescriptor(s._scopes[0],a),getPrototypeOf:()=>Reflect.getPrototypeOf(n[0]),has:(s,a)=>or(s).includes(a),ownKeys:s=>or(s),set(s,a,l){const c=s._storage||(s._storage=r());return s[a]=c[a]=l,delete s._keys,!0}})}function Te(n,t,e,i){const r={_cacheable:!1,_proxy:n,_context:t,_subProxy:e,_stack:new Set,_descriptors:ri(n,i),setContext:o=>Te(n,o,e,i),override:o=>Te(n.override(o),t,e,i)};return new Proxy(r,{deleteProperty:(o,s)=>(delete o[s],delete n[s],!0),get:(o,s,a)=>er(o,s,()=>function(l,c,y){const{_proxy:_,_context:k,_subProxy:N,_descriptors:C}=l;let H=_[c];return L(H)&&C.isScriptable(c)&&(H=function(U,Z,J,nt){const{_proxy:ot,_context:ct,_subProxy:gt,_stack:vt}=J;if(vt.has(U))throw new Error("Recursion detected: "+Array.from(vt).join("->")+"->"+U);return vt.add(U),Z=Z(ct,gt||nt),vt.delete(U),oi(U,Z)&&(Z=si(ot._scopes,ot,U,Z)),Z}(c,H,l,y)),q(H)&&H.length&&(H=function(U,Z,J,nt){const{_proxy:ot,_context:ct,_subProxy:gt,_descriptors:vt}=J;if(W(ct.index)&&nt(U))Z=Z[ct.index%Z.length];else if(P(Z[0])){const wt=Z,Ot=ot._scopes.filter(bt=>bt!==wt);Z=[];for(const bt of wt){const Et=si(Ot,ot,U,bt);Z.push(Te(Et,ct,gt&&gt[U],vt))}}return Z}(c,H,l,C.isIndexable)),oi(c,H)&&(H=Te(H,k,N&&N[c],C)),H}(o,s,a)),getOwnPropertyDescriptor:(o,s)=>o._descriptors.allKeys?Reflect.has(n,s)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(n,s),getPrototypeOf:()=>Reflect.getPrototypeOf(n),has:(o,s)=>Reflect.has(n,s),ownKeys:()=>Reflect.ownKeys(n),set:(o,s,a)=>(n[s]=a,delete o[s],!0)})}function ri(n,t={scriptable:!0,indexable:!0}){const{_scriptable:e=t.scriptable,_indexable:i=t.indexable,_allKeys:r=t.allKeys}=n;return{allKeys:r,scriptable:e,indexable:i,isScriptable:L(e)?e:()=>e,isIndexable:L(i)?i:()=>i}}const is=(n,t)=>n?n+B(t):t,oi=(n,t)=>P(t)&&"adapters"!==n&&(null===Object.getPrototypeOf(t)||t.constructor===Object);function er(n,t,e){if(Object.prototype.hasOwnProperty.call(n,t))return n[t];const i=e();return n[t]=i,i}function nr(n,t,e){return L(n)?n(t,e):n}const rs=(n,t)=>!0===n?t:"string"==typeof n?z(t,n):void 0;function os(n,t,e,i,r){for(const o of t){const s=rs(e,o);if(s){n.add(s);const a=nr(s._fallback,e,r);if(W(a)&&a!==e&&a!==i)return a}else if(!1===s&&W(i)&&e!==i)return null}return!1}function si(n,t,e,i){const r=t._rootScopes,o=nr(t._fallback,e,i),s=[...n,...r],a=new Set;a.add(i);let l=ir(a,s,e,o||e,i);return null!==l&&(!W(o)||o===e||(l=ir(a,s,o,l,i),null!==l))&&mn(Array.from(a),[""],r,o,()=>function(c,y,_){const k=c._getTarget();y in k||(k[y]={});const N=k[y];return q(N)&&P(_)?_:N}(t,e,i))}function ir(n,t,e,i,r){for(;e;)e=os(n,t,e,i,r);return e}function rr(n,t){for(const e of t){if(!e)continue;const i=e[n];if(W(i))return i}}function or(n){let t=n._keys;return t||(t=n._keys=function(e){const i=new Set;for(const r of e)for(const o of Object.keys(r).filter(s=>!s.startsWith("_")))i.add(o);return Array.from(i)}(n._scopes)),t}function ai(n,t,e,i){const{iScale:r}=n,{key:o="r"}=this._parsing,s=new Array(i);let a,l,c,y;for(a=0,l=i;a<l;++a)c=a+e,y=t[c],s[a]={r:r.parse(z(y,o),c)};return s}const ss=Number.EPSILON||1e-14,Ce=(n,t)=>t<n.length&&!n[t].skip&&n[t],sr=n=>"x"===n?"y":"x";
vendor: 9,629 bytes, line 1
1function ar(n,t,e,i){const r=n.skip?t:n,o=t,s=e.skip?t:e,a=Mt(o,r),l=Mt(s,o);let c=a/(a+l),y=l/(a+l);c=isNaN(c)?0:c,y=isNaN(y)?0:y;const _=i*c,k=i*y;return{previous:{x:o.x-_*(s.x-r.x),y:o.y-_*(s.y-r.y)},next:{x:o.x+k*(s.x-r.x),y:o.y+k*(s.y-r.y)}}}function lr(n,t="x"){const e=sr(t),i=n.length,r=Array(i).fill(0),o=Array(i);let s,a,l,c=Ce(n,0);for(s=0;s<i;++s)if(a=l,l=c,c=Ce(n,s+1),l){if(c){const y=c[t]-l[t];r[s]=0!==y?(c[e]-l[e])/y:0}o[s]=a?c?K(r[s-1])!==K(r[s])?0:(r[s-1]+r[s])/2:r[s-1]:r[s]}(function(y,_,k){const N=y.length;let C,H,U,Z,J,nt=Ce(y,0);for(let ot=0;ot<N-1;++ot)J=nt,nt=Ce(y,ot+1),J&&nt&&($(_[ot],0,ss)?k[ot]=k[ot+1]=0:(C=k[ot]/_[ot],H=k[ot+1]/_[ot],Z=Math.pow(C,2)+Math.pow(H,2),Z<=9||(U=3/Math.sqrt(Z),k[ot]=C*U*_[ot],k[ot+1]=H*U*_[ot])))})(n,r,o),function(y,_,k="x"){const N=sr(k),C=y.length;let H,U,Z,J=Ce(y,0);for(let nt=0;nt<C;++nt){if(U=Z,Z=J,J=Ce(y,nt+1),!Z)continue;const ot=Z[k],ct=Z[N];U&&(H=(ot-U[k])/3,Z[`cp1${k}`]=ot-H,Z[`cp1${N}`]=ct-H*_[nt]),J&&(H=(J[k]-ot)/3,Z[`cp2${k}`]=ot+H,Z[`cp2${N}`]=ct+H*_[nt])}}(n,o,t)}function vn(n,t,e){return Math.max(Math.min(n,e),t)}function ur(n,t,e,i,r){let o,s,a,l;if(t.spanGaps&&(n=n.filter(c=>!c.skip)),"monotone"===t.cubicInterpolationMode)lr(n,r);else{let c=i?n[n.length-1]:n[0];for(o=0,s=n.length;o<s;++o)a=n[o],l=ar(c,a,n[Math.min(o+1,s-(i?0:1))%s],t.tension),a.cp1x=l.previous.x,a.cp1y=l.previous.y,a.cp2x=l.next.x,a.cp2y=l.next.y,c=a}t.capBezierPoints&&function(c,y){let _,k,N,C,H,U=Re(c[0],y);for(_=0,k=c.length;_<k;++_)H=C,C=U,U=_<k-1&&Re(c[_+1],y),C&&(N=c[_],H&&(N.cp1x=vn(N.cp1x,y.left,y.right),N.cp1y=vn(N.cp1y,y.top,y.bottom)),U&&(N.cp2x=vn(N.cp2x,y.left,y.right),N.cp2y=vn(N.cp2y,y.top,y.bottom)))}(n,e)}const yn=n=>0===n||1===n,cr=(n,t,e)=>-Math.pow(2,10*(n-=1))*Math.sin((n-t)*V/e),hr=(n,t,e)=>Math.pow(2,-10*n)*Math.sin((n-t)*V/e)+1,Ie={linear:n=>n,easeInQuad:n=>n*n,easeOutQuad:n=>-n*(n-2),easeInOutQuad:n=>(n/=.5)<1?.5*n*n:-.5*(--n*(n-2)-1),easeInCubic:n=>n*n*n,easeOutCubic:n=>(n-=1)*n*n+1,easeInOutCubic:n=>(n/=.5)<1?.5*n*n*n:.5*((n-=2)*n*n+2),easeInQuart:n=>n*n*n*n,easeOutQuart:n=>-((n-=1)*n*n*n-1),easeInOutQuart:n=>(n/=.5)<1?.5*n*n*n*n:-.5*((n-=2)*n*n*n-2),easeInQuint:n=>n*n*n*n*n,easeOutQuint:n=>(n-=1)*n*n*n*n+1,easeInOutQuint:n=>(n/=.5)<1?.5*n*n*n*n*n:.5*((n-=2)*n*n*n*n+2),easeInSine:n=>1-Math.cos(n*dt),easeOutSine:n=>Math.sin(n*dt),easeInOutSine:n=>-.5*(Math.cos(j*n)-1),easeInExpo:n=>0===n?0:Math.pow(2,10*(n-1)),easeOutExpo:n=>1===n?1:1-Math.pow(2,-10*n),easeInOutExpo:n=>yn(n)?n:n<.5?.5*Math.pow(2,10*(2*n-1)):.5*(2-Math.pow(2,-10*(2*n-1))),easeInCirc:n=>n>=1?n:-(Math.sqrt(1-n*n)-1),easeOutCirc:n=>Math.sqrt(1-(n-=1)*n),easeInOutCirc:n=>(n/=.5)<1?-.5*(Math.sqrt(1-n*n)-1):.5*(Math.sqrt(1-(n-=2)*n)+1),easeInElastic:n=>yn(n)?n:cr(n,.075,.3),easeOutElastic:n=>yn(n)?n:hr(n,.075,.3),easeInOutElastic:n=>yn(n)?n:n<.5?.5*cr(2*n,.1125,.45):.5+.5*hr(2*n-1,.1125,.45),easeInBack:n=>n*n*(2.70158*n-1.70158),easeOutBack:n=>(n-=1)*n*(2.70158*n+1.70158)+1,easeInOutBack(n){let t=1.70158;return(n/=.5)<1?n*n*((1+(t*=1.525))*n-t)*.5:.5*((n-=2)*n*((1+(t*=1.525))*n+t)+2)},easeInBounce:n=>1-Ie.easeOutBounce(1-n),easeOutBounce:n=>n<1/2.75?7.5625*n*n:n<2/2.75?7.5625*(n-=1.5/2.75)*n+.75:n<2.5/2.75?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375,easeInOutBounce:n=>n<.5?.5*Ie.easeInBounce(2*n):.5*Ie.easeOutBounce(2*n-1)+.5};function _e(n,t,e,i){return{x:n.x+e*(t.x-n.x),y:n.y+e*(t.y-n.y)}}function fr(n,t,e,i){return{x:n.x+e*(t.x-n.x),y:"middle"===i?e<.5?n.y:t.y:"after"===i?e<1?n.y:t.y:e>0?t.y:n.y}}function dr(n,t,e,i){const r={x:n.cp2x,y:n.cp2y},o={x:t.cp1x,y:t.cp1y},s=_e(n,r,e),a=_e(r,o,e),l=_e(o,t,e),c=_e(s,a,e),y=_e(a,l,e);return _e(c,y,e)}const pr=new Map;function je(n,t,e){return function(i,r){r=r||{};const o=i+JSON.stringify(r);let s=pr.get(o);return s||(s=new Intl.NumberFormat(i,r),pr.set(o,s)),s}(t,e).format(n)}const as=new RegExp(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/),ls=new RegExp(/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/);function gr(n,t){const e=(""+n).match(as);if(!e||"normal"===e[1])return 1.2*t;switch(n=+e[2],e[3]){case"px":return n;case"%":n/=100}return t*n}function bn(n,t){const e={},i=P(t),r=i?Object.keys(t):t,o=P(n)?i?s=>E(n[s],n[t[s]]):s=>n[s]:()=>n;for(const s of r)e[s]=+o(s)||0;return e}function li(n){return bn(n,{top:"y",right:"x",bottom:"y",left:"x"})}function xe(n){return bn(n,["topLeft","topRight","bottomLeft","bottomRight"])}function Yt(n){const t=li(n);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function Ut(n,t){let e=E((n=n||{}).size,(t=t||Bt.font).size);"string"==typeof e&&(e=parseInt(e,10));let i=E(n.style,t.style);i&&!(""+i).match(ls)&&(console.warn('Invalid font style specified: "'+i+'"'),i="");const r={family:E(n.family,t.family),lineHeight:gr(E(n.lineHeight,t.lineHeight),e),size:e,style:i,weight:E(n.weight,t.weight),string:""};return r.string=Xi(r),r}function Be(n,t,e,i){let r,o,s,a=!0;for(r=0,o=n.length;r<o;++r)if(s=n[r],void 0!==s&&(void 0!==t&&"function"==typeof s&&(s=s(t),a=!1),void 0!==e&&q(s)&&(s=s[e%s.length],a=!1),void 0!==s))return i&&!a&&(i.cacheable=!1),s}function mr(n,t,e){const{min:i,max:r}=n,o=g(t,(r-i)/2),s=(a,l)=>e&&0===a?0:a+l;return{min:s(i,-Math.abs(o)),max:s(r,o)}}function ce(n,t){return Object.assign(Object.create(n),t)}function Pe(n,t,e){return n?function(i,r){return{x:o=>i+i+r-o,setWidth(o){r=o},textAlign:o=>"center"===o?o:"right"===o?"left":"right",xPlus:(o,s)=>o-s,leftForLtr:(o,s)=>o-s}}(t,e):{x:i=>i,setWidth(i){},textAlign:i=>i,xPlus:(i,r)=>i+r,leftForLtr:(i,r)=>i}}function ui(n,t){let e,i;"ltr"!==t&&"rtl"!==t||(e=n.canvas.style,i=[e.getPropertyValue("direction"),e.getPropertyPriority("direction")],e.setProperty("direction",t,"important"),n.prevTextDirection=i)}function ci(n,t){void 0!==t&&(delete n.prevTextDirection,n.canvas.style.setProperty("direction",t[0],t[1]))}function vr(n){return"angle"===n?{between:Wt,compare:jt,normalize:Nt}:{between:ht,compare:(t,e)=>t-e,normalize:t=>t}}function yr({start:n,end:t,count:e,loop:i,style:r}){return{start:n%e,end:t%e,loop:i&&(t-n+1)%e==0,style:r}}function hi(n,t,e){if(!e)return[n];const{property:i,start:r,end:o}=e,s=t.length,{compare:a,between:l,normalize:c}=vr(i),{start:y,end:_,loop:k,style:N}=function(gt,vt,wt){const{property:Ot,start:bt,end:Et}=wt,{between:St,normalize:Tt}=vr(Ot),yt=vt.length;let At,Ct,{start:Ft,end:Vt,loop:$t}=gt;if($t){for(Ft+=yt,Vt+=yt,At=0,Ct=yt;At<Ct&&St(Tt(vt[Ft%yt][Ot]),bt,Et);++At)Ft--,Vt--;Ft%=yt,Vt%=yt}return Vt<Ft&&(Vt+=yt),{start:Ft,end:Vt,loop:$t,style:gt.style}}(n,t,e),C=[];let H,U,Z,J=!1,nt=null;const ot=()=>J||l(r,Z,H)&&0!==a(r,Z),ct=()=>!J||0===a(o,H)||l(o,Z,H);for(let gt=y,vt=y;gt<=_;++gt)U=t[gt%s],U.skip||(H=c(U[i]),H!==Z&&(J=l(H,r,o),null===nt&&ot()&&(nt=0===a(H,r)?gt:vt),null!==nt&&ct()&&(C.push(yr({start:nt,end:gt,loop:k,count:s,style:N})),nt=null),vt=gt,Z=H));return null!==nt&&C.push(yr({start:nt,end:_,loop:k,count:s,style:N})),C}function fi(n,t){const e=[],i=n.segments;for(let r=0;r<i.length;r++){const o=hi(i[r],n.points,t);o.length&&e.push(...o)}return e}function br(n,t){const e=n.points,i=n.options.spanGaps,r=e.length;if(!r)return[];const o=!!n._loop,{start:s,end:a}=function(l,c,y,_){let k=0,N=c-1;if(y&&!_)for(;k<c&&!l[k].skip;)k++;for(;k<c&&l[k].skip;)k++;for(k%=c,y&&(N+=k);N>k&&l[N%c].skip;)N--;return N%=c,{start:k,end:N}}(e,r,o,i);return function _r(n,t,e,i){return i&&i.setContext&&e?function(r,o,s,a){const l=r._chart.getContext(),c=xr(r.options),{_datasetIndex:y,options:{spanGaps:_}}=r,k=s.length,N=[];let C=c,H=o[0].start,U=H;function Z(J,nt,ot,ct){const gt=_?-1:1;if(J!==nt){for(J+=k;s[J%k].skip;)J-=gt;for(;s[nt%k].skip;)nt+=gt;J%k!=nt%k&&(N.push({start:J%k,end:nt%k,loop:ot,style:ct}),C=ct,H=nt%k)}}for(const J of o){H=_?H:J.start;let nt,ot=s[H%k];for(U=H+1;U<=J.end;U++){const ct=s[U%k];nt=xr(a.setContext(ce(l,{type:"segment",p0:ot,p1:ct,p0DataIndex:(U-1)%k,p1DataIndex:U%k,datasetIndex:y}))),us(nt,C)&&Z(H,U-1,J.loop,C),ot=ct,C=nt}H<U-1&&Z(H,U-1,J.loop,C)}return N}(n,t,e,i):t}(n,!0===i?[{start:s,end:a,loop:o}]:function(l,c,y,_){const k=l.length,N=[];let C,H=c,U=l[c];for(C=c+1;C<=y;++C){const Z=l[C%k];Z.skip||Z.stop?U.skip||(N.push({start:c%k,end:(C-1)%k,loop:_=!1}),c=H=Z.stop?C:null):(H=C,U.skip&&(c=C)),U=Z}return null!==H&&N.push({start:c%k,end:H%k,loop:_}),N}(e,s,a<s?a+r:a,!!n._fullLoop&&0===s&&a===r-1),e,t)}function xr(n){return{backgroundColor:n.backgroundColor,borderCapStyle:n.borderCapStyle,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderJoinStyle:n.borderJoinStyle,borderWidth:n.borderWidth,borderColor:n.borderColor}}function us(n,t){return t&&JSON.stringify(n)!==JSON.stringify(t)}var cs=Object.freeze({__proto__:null,easingEffects:Ie,isPatternOrGradient:Yn,color:Gn,getHoverColor:hn,noop:Q,uid:M,isNullOrUndef:T,isArray:q,isObject:P,isFinite:R,finiteOrDefault:A,valueOrDefault:E,toPercentage:x,toDimension:g,callback:h,each:u,_elementsEqual:v,clone:m,_merger:d,merge:p,mergeIf:O,_mergerIf:f,_deprecated:function(n,t,e,i){void 0!==t&&console.warn(n+': "'+e+'" is deprecated. Please use "'+i+'" instead')},resolveObjectKey:z,_splitKey:I,_capitalize:B,defined:W,isFunction:L,setsEqual:S,_isClickEvent:D,toFontString:Xi,_measureText:Ue,_longestText:Qi,_alignPixel:ye,clearCanvas:ni,drawPoint:gn,drawPointLegend:ii,_isPointInArea:Re,clipArea:$e,unclipArea:Ke,_steppedLineTo:Ji,_bezierCurveTo:tr,renderText:be,addRoundedRectPath:De,_lookup:_t,_lookupByKey:xt,_rlookupByKey:mt,_filterBetween:Lt,listenArrayEvents:Dt,unlistenArrayEvents:Zt,_arrayUnique:Qt,_createResolver:mn,_attachContext:Te,_descriptors:ri,_parseObjectDataRadialScale:ai,splineCurve:ar,splineCurveMonotone:lr,_updateBezierControlPoints:ur,_isDomSupp
vendor: 7,193 bytes, line 1
1orted:Qn,_getParentNode:fn,getStyle:Yi,getRelativePosition:ve,getMaximumSize:Gi,retinaScale:ti,supportsEventListenerOptions:Zi,readUsedSize:ei,fontString:function(n,t,e){return t+" "+n+"px "+e},requestAnimFrame:qt,throttled:ze,debounce:zt,_toLeftRightCenter:Jt,_alignStartEnd:Kt,_textX:qi,_getStartAndCountOfVisiblePoints:zn,_scaleRangesChanged:Hn,_pointInLine:_e,_steppedInterpolation:fr,_bezierInterpolation:dr,formatNumber:je,toLineHeight:gr,_readValueToProps:bn,toTRBL:li,toTRBLCorners:xe,toPadding:Yt,toFont:Ut,resolve:Be,_addGrace:mr,createContext:ce,PI:j,TAU:V,PITAU:Y,INFINITY:rt,RAD_PER_DEG:st,HALF_PI:dt,QUARTER_PI:et,TWO_THIRDS_PI:X,log10:F,sign:K,niceNum:G,_factorize:at,isNumber:it,almostEquals:$,almostWhole:tt,_setMinAndMaxByKey:ut,toRadians:lt,toDegrees:pt,_decimalPlaces:kt,getAngleFromPoint:Pt,distanceBetweenPoints:Mt,_angleDiff:jt,_normalizeAngle:Nt,_angleBetween:Wt,_limitValue:It,_int16Range:ft,_isBetween:ht,getRtlAdapter:Pe,overrideTextDirection:ui,restoreTextDirection:ci,_boundSegment:hi,_boundSegments:fi,_computeSegments:br});function hs(n,t,e,i){const{controller:r,data:o,_sorted:s}=n,a=r._cachedMeta.iScale;if(a&&t===a.axis&&"r"!==t&&s&&o.length){const l=a._reversePixels?mt:xt;if(!i)return l(o,t,e);if(r._sharedOptions){const c=o[0],y="function"==typeof c.getRange&&c.getRange(t);if(y){const _=l(o,t,e-y),k=l(o,t,e+y);return{lo:_.lo,hi:k.hi}}}}return{lo:0,hi:o.length-1}}function Ye(n,t,e,i,r){const o=n.getSortedVisibleDatasetMetas(),s=e[t];for(let a=0,l=o.length;a<l;++a){const{index:c,data:y}=o[a],{lo:_,hi:k}=hs(o[a],t,s,r);for(let N=_;N<=k;++N){const C=y[N];C.skip||i(C,c,N)}}}function di(n,t,e,i,r){const o=[];return!r&&!n.isPointInArea(t)||Ye(n,e,t,function(s,a,l){(r||Re(s,n.chartArea,0))&&s.inRange(t.x,t.y,i)&&o.push({element:s,datasetIndex:a,index:l})},!0),o}function pi(n,t,e,i,r,o){return o||n.isPointInArea(t)?"r"!==e||i?function fs(n,t,e,i,r,o){let s=[];const a=function(c){const y=-1!==c.indexOf("x"),_=-1!==c.indexOf("y");return function(k,N){const C=y?Math.abs(k.x-N.x):0,H=_?Math.abs(k.y-N.y):0;return Math.sqrt(Math.pow(C,2)+Math.pow(H,2))}}(e);let l=Number.POSITIVE_INFINITY;return Ye(n,e,t,function(c,y,_){const k=c.inRange(t.x,t.y,r);if(i&&!k)return;const N=c.getCenterPoint(r);if(!o&&!n.isPointInArea(N)&&!k)return;const C=a(t,N);C<l?(s=[{element:c,datasetIndex:y,index:_}],l=C):C===l&&s.push({element:c,datasetIndex:y,index:_})}),s}(n,t,e,i,r,o):function(s,a,l,c){let y=[];return Ye(s,l,a,function(_,k,N){const{startAngle:C,endAngle:H}=_.getProps(["startAngle","endAngle"],c),{angle:U}=Pt(_,{x:a.x,y:a.y});Wt(U,C,H)&&y.push({element:_,datasetIndex:k,index:N})}),y}(n,t,e,r):[]}function Or(n,t,e,i,r){const o=[],s="x"===e?"inXRange":"inYRange";let a=!1;return Ye(n,e,t,(l,c,y)=>{l[s](t[e],r)&&(o.push({element:l,datasetIndex:c,index:y}),a=a||l.inRange(t.x,t.y,r))}),i&&!a?[]:o}var wr={evaluateInteractionItems:Ye,modes:{index(n,t,e,i){const r=ve(t,n),o=e.axis||"x",s=e.includeInvisible||!1,a=e.intersect?di(n,r,o,i,s):pi(n,r,o,!1,i,s),l=[];return a.length?(n.getSortedVisibleDatasetMetas().forEach(c=>{const y=a[0].index,_=c.data[y];_&&!_.skip&&l.push({element:_,datasetIndex:c.index,index:y})}),l):[]},dataset(n,t,e,i){const r=ve(t,n),o=e.axis||"xy",s=e.includeInvisible||!1;let a=e.intersect?di(n,r,o,i,s):pi(n,r,o,!1,i,s);if(a.length>0){const l=a[0].datasetIndex,c=n.getDatasetMeta(l).data;a=[];for(let y=0;y<c.length;++y)a.push({element:c[y],datasetIndex:l,index:y})}return a},point:(n,t,e,i)=>di(n,ve(t,n),e.axis||"xy",i,e.includeInvisible||!1),nearest:(n,t,e,i)=>pi(n,ve(t,n),e.axis||"xy",e.intersect,i,e.includeInvisible||!1),x:(n,t,e,i)=>Or(n,ve(t,n),"x",e.intersect,i),y:(n,t,e,i)=>Or(n,ve(t,n),"y",e.intersect,i)}};const kr=["left","top","right","bottom"];function Ge(n,t){return n.filter(e=>e.pos===t)}function Er(n,t){return n.filter(e=>-1===kr.indexOf(e.pos)&&e.box.axis===t)}function Ze(n,t){return n.sort((e,i)=>{const r=t?i:e,o=t?e:i;return r.weight===o.weight?r.index-o.index:r.weight-o.weight})}function Sr(n,t,e,i){return Math.max(n[e],t[e])+Math.max(n[i],t[i])}function Ar(n,t){n.top=Math.max(n.top,t.top),n.left=Math.max(n.left,t.left),n.bottom=Math.max(n.bottom,t.bottom),n.right=Math.max(n.right,t.right)}function ps(n,t,e,i){const{pos:r,box:o}=e,s=n.maxPadding;if(!P(r)){e.size&&(n[r]-=e.size);const _=i[e.stack]||{size:0,count:1};_.size=Math.max(_.size,e.horizontal?o.height:o.width),e.size=_.size/_.count,n[r]+=e.size}o.getPadding&&Ar(s,o.getPadding());const a=Math.max(0,t.outerWidth-Sr(s,n,"left","right")),l=Math.max(0,t.outerHeight-Sr(s,n,"top","bottom")),c=a!==n.w,y=l!==n.h;return n.w=a,n.h=l,e.horizontal?{same:c,other:y}:{same:y,other:c}}function gs(n,t){const e=t.maxPadding;return function i(r){const o={left:0,top:0,right:0,bottom:0};return r.forEach(s=>{o[s]=Math.max(t[s],e[s])}),o}(n?["left","right"]:["top","bottom"])}function Xe(n,t,e,i){const r=[];let o,s,a,l,c,y;for(o=0,s=n.length,c=0;o<s;++o){a=n[o],l=a.box,l.update(a.width||t.w,a.height||t.h,gs(a.horizontal,t));const{same:_,other:k}=ps(t,e,a,i);c|=_&&r.length,y=y||k,l.fullSize||r.push(a)}return c&&Xe(r,t,e,i)||y}function _n(n,t,e,i,r){n.top=e,n.left=t,n.right=t+i,n.bottom=e+r,n.width=i,n.height=r}function Tr(n,t,e,i){const r=e.padding;let{x:o,y:s}=t;for(const a of n){const l=a.box,c=i[a.stack]||{count:1,placed:0,weight:1},y=a.stackWeight/c.weight||1;if(a.horizontal){const _=t.w*y,k=c.size||l.height;W(c.start)&&(s=c.start),l.fullSize?_n(l,r.left,s,e.outerWidth-r.right-r.left,k):_n(l,t.left+c.placed,s,_,k),c.start=s,c.placed+=_,s=l.bottom}else{const _=t.h*y,k=c.size||l.width;W(c.start)&&(o=c.start),l.fullSize?_n(l,o,r.top,k,e.outerHeight-r.bottom-r.top):_n(l,o,t.top+c.placed,k,_),c.start=o,c.placed+=_,o=l.right}}t.x=o,t.y=s}Bt.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}});var Gt={addBox(n,t){n.boxes||(n.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(e){t.draw(e)}}]},n.boxes.push(t)},removeBox(n,t){const e=n.boxes?n.boxes.indexOf(t):-1;-1!==e&&n.boxes.splice(e,1)},configure(n,t,e){t.fullSize=e.fullSize,t.position=e.position,t.weight=e.weight},update(n,t,e,i){if(!n)return;const r=Yt(n.options.layout.padding),o=Math.max(t-r.width,0),s=Math.max(e-r.height,0),a=function(H){const U=function(wt){const Ot=[];let bt,Et,St,Tt,yt,At;for(bt=0,Et=(wt||[]).length;bt<Et;++bt)St=wt[bt],({position:Tt,options:{stack:yt,stackWeight:At=1}}=St),Ot.push({index:bt,box:St,pos:Tt,horizontal:St.isHorizontal(),weight:St.weight,stack:yt&&Tt+yt,stackWeight:At});return Ot}(H),Z=Ze(U.filter(wt=>wt.box.fullSize),!0),J=Ze(Ge(U,"left"),!0),nt=Ze(Ge(U,"right")),ot=Ze(Ge(U,"top"),!0),ct=Ze(Ge(U,"bottom")),gt=Er(U,"x"),vt=Er(U,"y");return{fullSize:Z,leftAndTop:J.concat(ot),rightAndBottom:nt.concat(vt).concat(ct).concat(gt),chartArea:Ge(U,"chartArea"),vertical:J.concat(nt).concat(vt),horizontal:ot.concat(ct).concat(gt)}}(n.boxes),l=a.vertical,c=a.horizontal;u(n.boxes,H=>{"function"==typeof H.beforeLayout&&H.beforeLayout()});const y=l.reduce((H,U)=>U.box.options&&!1===U.box.options.display?H:H+1,0)||1,_=Object.freeze({outerWidth:t,outerHeight:e,padding:r,availableWidth:o,availableHeight:s,vBoxMaxWidth:o/2/y,hBoxMaxHeight:s/2}
1),k=Object.assign({},r);Ar(k,Yt(i));const N=Object.assign({maxPadding:k,w:o,h:s,x:r.left,y:r.top},r),C=function ds(n,t){const e=function(l){const c={};for(const y of l){const{stack:_,pos:k,stackWeight:N}=y;if(!_||!kr.includes(k))continue;const C=c[_]||(c[_]={count:0,placed:0,weight:0,size:0});C.count++,C.weight+=N}return c}(n),{vBoxMaxWidth:i,hBoxMaxHeight:r}=t;let o,s,a;for(o=0,s=n.length;o<s;++o){a=n[o];const{fullSize:l}=a.box,c=e[a.stack],y=c&&a.stackWeight/c.weight;a.horizontal?(a.width=y?y*i:l&&t.availableWidth,a.height=r):(a.width=i,a.height=y?y*r:l&&t.availableHeight)}return e}(l.concat(c),_);Xe(a.fullSize,N,_,C),Xe(l,N,_,C),Xe(c,N,_,C)&&Xe(l,N,_,C),function(H){const U=H.maxPadding;function Z(J){const nt=Math.max(U[J]-H[J],0);return H[J]+=nt,nt}H.y+=Z("top"),H.x+=Z("left"),Z("right"),Z("bottom")}(N),Tr(a.leftAndTop,N,_,C),N.x+=N.w,N.y+=N.h,Tr(a.rightAndBottom,N,_,C),n.chartArea={left:N.left,top:N.top,right:N.left+N.w,bottom:N.top+N.h,height:N.h,width:N.w},u(a.chartArea,H=>{const U=H.box;Object.assign(U,n.chartArea),U.update(N.w,N.h,{left:0,top:0,right:0,bottom:0})})}};class gi{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,i){}removeEventListener(t,e,i){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,i,r){return e=Math.max(0,e||t.width),i=i||t.height,{width:e,height:Math.max(0,r?Math.floor(e/r):i)}}isAttached(t){return!0}updateConfig(t){}}class Pr extends gi{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const ms={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Mr=n=>null===n||""===n,Nr=!!Zi&&{passive:!0};function vs(n,t,e){n.canvas.removeEventListener(t,e,Nr)}function xn(n,t){for(const e of n)if(e===t||e.contains(t))return!0}function ys(n,t,e){const i=n.canvas,r=new MutationObserver(o=>{let s=!1;for(const a of o)s=s||xn(a.addedNodes,i),s=s&&!xn(a.removedNodes,i);s&&e()});return r.observe(document,{childList:!0,subtree:!0}),r}function bs(n,t,e){const i=n.canvas,r=new MutationObserver(o=>{let s=!1;for(const a of o)s=s||xn(a.removedNodes,i),s=s&&!xn(a.addedNodes,i);s&&e()});return r.observe(document,{childList:!0,subtree:!0}),r}const Qe=new Map;let Lr=0;function Rr(){const n=window.devicePixelRatio;n!==Lr&&(Lr=n,Qe.forEach((t,e)=>{e.currentDevicePixelRatio!==n&&t()}))}function _s(n,t,e){const i=n.canvas,r=i&&fn(i);if(!r)return;const o=ze((a,l)=>{const c=r.clientWidth;e(a,l),c<r.clientWidth&&e()},window),s=new ResizeObserver(a=>{const l=a[0],c=l.contentRect.width,y=l.contentRect.height;0===c&&0===y||o(c,y)});return s.observe(r),a=n,l=o,Qe.size||window.addEventListener("resize",Rr),Qe.set(a,l),s;var a,l}function mi(n,t,e){e&&e.disconnect(),"resize"===t&&(Qe.delete(n),Qe.size||window.removeEventListener("resize",Rr))}function xs(n,t,e){const i=n.canvas,r=ze(o=>{null!==n.ctx&&e(function(s,a){const l=ms[s.type]||s.type,{x:c,y}=ve(s,a);return{type:l,chart:a,native:s,x:void 0!==c?c:null,y:void 0!==y?y:null}}(o,n))},n,o=>{const s=o[0];return[s,s.offsetX,s.offsetY]});return i.addEventListener(t,r,Nr),r}class Dr extends gi{acquireContext(t,e){const i=t&&t.getContext&&t.getContext("2d");return i&&i.canvas===t?(function(r,o){const s=r.style,a=r.getAttribute("height"),l=r.getAttribute("width");if(r.$chartjs={initial:{height:a,width:l,style:{display:s.display,height:s.height,width:s.width}}},s.display=s.display||"block",s.boxSizing=s.boxSizing||"border-box",Mr(l)){const c=ei(r,"width");void 0!==c&&(r.width=c)}if(Mr(a))if(""===r.style.height)r.height=r.width/(o||2);else{const c=ei(r,"height");void 0!==c&&(r.height=c)}}(t,e),i):null}releaseContext(t){const e=t.canvas;if(!e.$chartjs)return!1;const i=e.$chartjs.initial;["height","width"].forEach(o=>{const s=i[o];T(s)?e.removeAttribute(o):e.setAttribute(o,s)});const r=i.style||{};return Object.keys(r).forEach(o=>{e.style[o]=r[o]}),e.width=e.width,delete e.$chartjs,!0}addEventListener(t,e,i){this.removeEventListener(t,e),(t.$proxies||(t.$proxies={}))[e]=({attach:ys,detach:bs,resize:_s}[e]||xs)(t,e,i)}removeEventListener(t,e){const i=t.$proxies||(t.$proxies={}),r=i[e];r&&(({attach:mi,detach:mi,resize:mi}[e]||vs)(t,e,r),i[e]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,i,r){return Gi(t,e,i,r)}isAttached(t){const e=fn(t);return!(!e||!e.isConnected)}}function Cr(n){return!Qn()||typeof OffscreenCanvas<"u"&&n instanceof OffscreenCanvas?Pr:Dr}var Ir=Object.freeze({__proto__:null,_detectPlatform:Cr,BasePlatform:gi,BasicPlatform:Pr,DomPlatform:Dr});const jr="transparent",Os={boolean:(n,t,e)=>e>.5?t:n,color(n,t,e){const i=Gn(n||jr),r=i.valid&&Gn(t||jr);return r&&r.valid?r.mix(i,e).hexString():t},number:(n,t,e)=>n+(t-n)*e};class Br{constructor(t,e,i,r){const o=e[i];r=Be([t.to,r,o,t.from]);const s=Be([t.from,o,r]);this._active=!0,this._fn=t.fn||Os[t.type||typeof s],this._easing=Ie[t.easing]||Ie.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=i,this._from=s,this._to=r,this._promises=void 0}active(){return this._active}update(t,e,i){if(this._active){this._notify(!1);const r=this._target[this._prop],o=i-this._start,s=this._duration-o;this._start=i,this._duration=Math.floor(Math.max(s,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=Be([t.to,e,r,t.from]),this._from=Be([t.from,r,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,i=this._duration,r=this._prop,o=this._from,s=this._loop,a=this._to;let l;if(this._active=o!==a&&(s||e<i),!this._active)return this._target[r]=a,void this._notify(!0);e<0?this._target[r]=o:(l=e/i%2,l=s&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[r]=this._fn(o,a,l))}wait(){const t=this._promises||(this._promises=[]);return new Promise((e,i)=>{t.push({res:e,rej:i})})}_notify(t){const e=t?"res":"rej",i=this._promises||[];for(let r=0;r<i.length;r++)i[r][e]()}}Bt.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0});const ws=Object.keys(Bt.animation);Bt.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:n=>"onProgress"!==n&&"onComplete"!==n&&"fn"!==n}),Bt.set("animations",{colors:{type:"color",properties:["color","borderColor","backgroundColor"]},numbers:{type:"number",properties:["x","y","borderWidth","radius","tension"]}}),Bt.describe("animations",{_fallback:"animation"}),Bt.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:n=>0|n}}}});class vi{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!P(t))return;const e=this._properties;Object.getOwnPropertyNames(t).forEach(i=>
vendor: 4,329 bytes, line 1
1{const r=t[i];if(!P(r))return;const o={};for(const s of ws)o[s]=r[s];(q(r.properties)&&r.properties||[i]).forEach(s=>{s!==i&&e.has(s)||e.set(s,o)})})}_animateOptions(t,e){const i=e.options,r=function(s,a){if(!a)return;let l=s.options;return l?(l.$shared&&(s.options=l=Object.assign({},l,{$shared:!1,$animations:{}})),l):void(s.options=a)}(t,i);if(!r)return[];const o=this._createAnimations(r,i);return i.$shared&&function(s,a){const l=[],c=Object.keys(a);for(let y=0;y<c.length;y++){const _=s[c[y]];_&&_.active()&&l.push(_.wait())}return Promise.all(l)}(t.options.$animations,i).then(()=>{t.options=i},()=>{}),o}_createAnimations(t,e){const i=this._properties,r=[],o=t.$animations||(t.$animations={}),s=Object.keys(e),a=Date.now();let l;for(l=s.length-1;l>=0;--l){const c=s[l];if("$"===c.charAt(0))continue;if("options"===c){r.push(...this._animateOptions(t,e));continue}const y=e[c];let _=o[c];const k=i.get(c);if(_){if(k&&_.active()){_.update(k,y,a);continue}_.cancel()}k&&k.duration?(o[c]=_=new Br(k,t,c,y),r.push(_)):t[c]=y}return r}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const i=this._createAnimations(t,e);return i.length?(ae.add(this._chart,i),!0):void 0}}function qr(n,t){const e=n&&n.options||{},i=e.reverse,r=void 0===e.min?t:0,o=void 0===e.max?t:0;return{start:i?o:r,end:i?r:o}}function Fr(n,t){const e=[],i=n._getSortedDatasetMetas(t);let r,o;for(r=0,o=i.length;r<o;++r)e.push(i[r].index);return e}function zr(n,t,e,i={}){const r=n.keys,o="single"===i.mode;let s,a,l,c;if(null!==t){for(s=0,a=r.length;s<a;++s){if(l=+r[s],l===e){if(i.all)continue;break}c=n.values[l],R(c)&&(o||0===t||K(t)===K(c))&&(t+=c)}return t}}function Hr(n,t){const e=n&&n.options.stacked;return e||void 0===e&&void 0!==t.stack}function ks(n,t,e){const i=n[t]||(n[t]={});return i[e]||(i[e]={})}function Vr(n,t,e,i){for(const r of t.getMatchingVisibleMetas(i).reverse()){const o=n[r.index];if(e&&o>0||!e&&o<0)return r.index}return null}function Wr(n,t){const{chart:e,_cachedMeta:i}=n,r=e._stacks||(e._stacks={}),{iScale:o,vScale:s,index:a}=i,l=o.axis,c=s.axis,y=`${o.id}.${s.id}.${(H=i).stack||H.type}`,_=t.length;var H;let k;for(let N=0;N<_;++N){const C=t[N],{[l]:H,[c]:U}=C;k=(C._stacks||(C._stacks={}))[c]=ks(r,y,H),k[a]=U,k._top=Vr(k,s,!0,i.type),k._bottom=Vr(k,s,!1,i.type)}}function yi(n,t){const e=n.scales;return Object.keys(e).filter(i=>e[i].axis===t).shift()}function Je(n,t){const e=n.controller.index,i=n.vScale&&n.vScale.axis;if(i){t=t||n._parsed;for(const r of t){const o=r._stacks;if(!o||void 0===o[i]||void 0===o[i][e])return;delete o[i][e]}}}const bi=n=>"reset"===n||"none"===n,Ur=(n,t)=>t?n:Object.assign({},n);class ie{constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=Hr(t.vScale,t),this.addElements()}updateIndex(t){this.index!==t&&Je(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,i=this.getDataset(),r=(_,k,N,C)=>"x"===_?k:"r"===_?C:N,o=e.xAxisID=E(i.xAxisID,yi(t,"x")),s=e.yAxisID=E(i.yAxisID,yi(t,"y")),a=e.rAxisID=E(i.rAxisID,yi(t,"r")),l=e.indexAxis,c=e.iAxisID=r(l,o,s,a),y=e.vAxisID=r(l,s,o,a);e.xScale=this.getScaleForId(o),e.yScale=this.getScaleForId(s),e.rScale=this.getScaleForId(a),e.iScale=this.getScaleForId(c),e.vScale=this.getScaleForId(y)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&Zt(this._data,this),t._stacked&&Je(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),i=this._data;if(P(e))this._data=function(r){const o=Object.keys(r),s=new Array(o.length);let a,l,c;for(a=0,l=o.length;a<l;++a)c=o[a],s[a]={x:c,y:r[c]};return s}(e);else if(i!==e){if(i){Zt(i,this);const r=this._cachedMeta;Je(r),r._parsed=[]}
vendor: 6,234 bytes, line 1
1e&&Object.isExtensible(e)&&Dt(e,this),this._syncList=[],this._data=e}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const e=this._cachedMeta,i=this.getDataset();let r=!1;this._dataCheck();const o=e._stacked;e._stacked=Hr(e.vScale,e),e.stack!==i.stack&&(r=!0,Je(e),e.stack=i.stack),this._resyncElements(t),(r||o!==e._stacked)&&Wr(this,e._parsed)}configure(){const t=this.chart.config,e=t.datasetScopeKeys(this._type),i=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(i,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){const{_cachedMeta:i,_data:r}=this,{iScale:o,_stacked:s}=i,a=o.axis;let l,c,y,_=0===t&&e===r.length||i._sorted,k=t>0&&i._parsed[t-1];if(!1===this._parsing)i._parsed=r,i._sorted=!0,y=r;else{y=q(r[t])?this.parseArrayData(i,r,t,e):P(r[t])?this.parseObjectData(i,r,t,e):this.parsePrimitiveData(i,r,t,e);const N=()=>null===c[a]||k&&c[a]<k[a];for(l=0;l<e;++l)i._parsed[l+t]=c=y[l],_&&(N()&&(_=!1),k=c);i._sorted=_}s&&Wr(this,y)}parsePrimitiveData(t,e,i,r){const{iScale:o,vScale:s}=t,a=o.axis,l=s.axis,c=o.getLabels(),y=o===s,_=new Array(r);let k,N,C;for(k=0,N=r;k<N;++k)C=k+i,_[k]={[a]:y||o.parse(c[C],C),[l]:s.parse(e[C],C)};return _}parseArrayData(t,e,i,r){const{xScale:o,yScale:s}=t,a=new Array(r);let l,c,y,_;for(l=0,c=r;l<c;++l)y=l+i,_=e[y],a[l]={x:o.parse(_[0],y),y:s.parse(_[1],y)};return a}parseObjectData(t,e,i,r){const{xScale:o,yScale:s}=t,{xAxisKey:a="x",yAxisKey:l="y"}=this._parsing,c=new Array(r);let y,_,k,N;for(y=0,_=r;y<_;++y)k=y+i,N=e[k],c[y]={x:o.parse(z(N,a),k),y:s.parse(z(N,l),k)};return c}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,e,i){const o=this._cachedMeta,s=e[t.axis];return zr({keys:Fr(this.chart,!0),values:e._stacks[t.axis]},s,o.index,{mode:i})}updateRangeFromParsed(t,e,i,r){const o=i[e.axis];let s=null===o?NaN:o;const a=r&&i._stacks[e.axis];r&&a&&(r.values=a,s=zr(r,o,this._cachedMeta.index)),t.min=Math.min(t.min,s),t.max=Math.max(t.max,s)}getMinMax(t,e){const i=this._cachedMeta,r=i._parsed,o=i._sorted&&t===i.iScale,s=r.length,a=this._getOtherScale(t),l=((H,U)=>H&&!U.hidden&&U._stacked&&{keys:Fr(this.chart,!0),values:null})(e,i),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:y,max:_}=function(H){const{min:U,max:Z,minDefined:J,maxDefined:nt}=H.getUserBounds();return{min:J?U:Number.NEGATIVE_INFINITY,max:nt?Z:Number.POSITIVE_INFINITY}}(a);let k,N;function C(){N=r[k];const H=N[a.axis];return!R(N[t.axis])||y>H||_<H}for(k=0;k<s&&(C()||(this.updateRangeFromParsed(c,t,N,l),!o));++k);if(o)for(k=s-1;k>=0;--k)if(!C()){this.updateRangeFromParsed(c,t,N,l);break}return c}getAllParsedValues(t){const e=this._cachedMeta._parsed,i=[];let r,o,s;for(r=0,o=e.length;r<o;++r)s=e[r][t.axis],R(s)&&i.push(s);return i}getMaxOverflow(){return!1}getLabelAndValue(t){const e=this._cachedMeta,i=e.iScale,r=e.vScale,o=this.getParsed(t);return{label:i?""+i.getLabelForValue(o[i.axis]):"",value:r?""+r.getLabelForValue(o[r.axis]):""}}_update(t){const e=this._cachedMeta;this.update(t||"default"),e._clip=function(i){let r,o,s,a;return P(i)?(r=i.top,o=i.right,s=i.bottom,a=i.left):r=o=s=a=i,{top:r,right:o,bottom:s,left:a,disabled:!1===i}}(E(this.options.clip,function(i,r,o){if(!1===o)return!1;const s=qr(i,o),a=qr(r,o);return{top:a.end,right:s.end,bottom:a.start,left:s.start}}(e.xScale,e.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,i=this._cachedMeta,r=i.data||[],o=this.chart.chartArea,s=[],a=this._drawStart||0,l=this._drawCount||r.length-a,c=this.options.drawActiveElementsOnTop;let y;for(i.dataset&&i.dataset.draw(t,o,a,l),y=a;y<a+l;++y){const _=r[y];_.hidden||(_.active&&c?s.push(_):_.draw(t,o))}for(y=0;y<s.length;++y)s[y].draw(t,o)}getStyle(t,e){const i=e?"active":"default";return void 0===t&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(i):this.resolveDataElementOptions(t||0,i)}getContext(t,e,i){const r=this.getDataset();let o;if(t>=0&&t<this._cachedMeta.data.length){const s=this._cachedMeta.data[t];o=s.$context||(s.$context=ce(this.getContext(),{active:!1,dataIndex:l=t,parsed:void 0,raw:void 0,element:s,index:l,mode:"default",type:"data"})),o.parsed=this.getParsed(t),o.raw=r.data[t],o.index=o.dataIndex=t}else o=this.$context||(this.$context=ce(this.chart.getContext(),{active:!1,dataset:void 0,datasetIndex:a=this.index,index:a,mode:"default",type:"dataset"})),o.dataset=r,o.index=o.datasetIndex=this.index;var a,l;return o.active=!!e,o.mode=i,o}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,e){return this._resolveElementOptions(this.dataElementType.id,e,t)}_resolveElementOptions(t,e="default",i){const r="active"===e,o=this._cachedDataOpts,s=t+"-"+e,a=o[s],l=this.enableOptionSharing&&W(i);if(a)return Ur(a,l);const c=this.chart.config,y=c.datasetElementScopeKeys(this._type,t),_=r?[`${t}Hover`,"hover",t,""]:[t,""],k=c.getOptionScopes(this.getDataset(),y),N=Object.keys(Bt.elements[t]),C=c.resolveNamedOptions(k,N,()=>this.getContext(i,r),_);return C.$shared&&(C.$shared=l,o[s]=Object.freeze(Ur(C,l))),C}_resolveAnimations(t,e,i){const r=this.chart,o=this._cachedDataOpts,s=`animation-${e}`,a=o[s];if(a)return a;let l;if(!1!==r.options.animation){const y=this.chart.config,_=y.datasetAnimationScopeKeys(this._type,e),k=y.getOptionScopes(this.getDataset(),_);l=y.createResolver(k,this.getContext(t,i,e))}const c=new vi(r,l&&l.animations);return l&&l._cacheable&&(o[s]=Object.freeze(c)),c}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||bi(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const i=this.resolveDataElementOptions(t,e),r=this._sharedOptions,o=this.getSharedOptions(i),s=this.includeOptions(e,o)||o!==r;return this.updateSharedOptions(o,e,i),{sharedOptions:o,includeOptions:s}}updateElement(t,e,i,r){bi(r)?Object.assign(t,i):this._resolveAnimations(e,r).update(t,i)}updateSharedOptions(t,e,i){t&&!bi(e)&&this._resolveAnimations(void 0,e).update(t,i)}_setStyle(t,e,i,r){t.active=r;const o=this.getStyle(e,r);
1this._resolveAnimations(e,i,r).update(t,{options:!r&&this.getSharedOptions(o)||o})}removeHoverStyle(t,e,i){this._setStyle(t,i,"active",!1)}setHoverStyle(t,e,i){this._setStyle(t,i,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const e=this._data,i=this._cachedMeta.data;for(const[a,l,c]of this._syncList)this[a](l,c);this._syncList=[];const r=i.length,o=e.length,s=Math.min(o,r);s&&this.parse(0,s),o>r?this._insertElements(r,o-r,t):o<r&&this._removeElements(o,r-o)}_insertElements(t,e,i=!0){const r=this._cachedMeta,o=r.data,s=t+e;let a;const l=c=>{for(c.length+=e,a=c.length-1;a>=s;a--)c[a]=c[a-e]};for(l(o),a=t;a<s;++a)o[a]=new this.dataElementType;this._parsing&&l(r._parsed),this.parse(t,e),i&&this.updateElements(o,t,e,"reset")}updateElements(t,e,i,r){}_removeElements(t,e){const i=this._cachedMeta;if(this._parsing){const r=i._parsed.splice(t,e);i._stacked&&Je(i,r)}i.data.splice(t,e)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[e,i,r]=t;this[e](i,r)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,e){e&&this._sync(["_removeElements",t,e]);const i=arguments.length-2;i&&this._sync(["_insertElements",t,i])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}ie.defaults={},ie.prototype.datasetElementType=null,ie.prototype.dataElementType=null;class re{constructor(){this.x=void 0,this.y=void 0,this.active=!1,this.options=void 0,this.$animations=void 0}tooltipPosition(t){const{x:e,y:i}=this.getProps(["x","y"],t);return{x:e,y:i}}hasValue(){return it(this.x)&&it(this.y)}getProps(t,e){const i=this.$animations;if(!e||!i)return this;const r={};return t.forEach(o=>{r[o]=i[o]&&i[o].active()?i[o]._to:this[o]}),r}}re.defaults={},re.defaultRoutes=void 0;const $r={values:n=>q(n)?n:""+n,numeric(n,t,e){if(0===n)return"0";const i=this.chart.options.locale;let r,o=n;if(e.length>1){const c=Math.max(Math.abs(e[0].value),Math.abs(e[e.length-1].value));(c<1e-4||c>1e15)&&(r="scientific"),o=function(y,_){let k=_.length>3?_[2].value-_[1].value:_[1].value-_[0].value;return Math.abs(k)>=1&&y!==Math.floor(y)&&(k=y-Math.floor(y)),k}(n,e)}const s=F(Math.abs(o)),a=Math.max(Math.min(-1*Math.floor(s),20),0),l={notation:r,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),je(n,i,l)},logarithmic(n,t,e){if(0===n)return"0";const i=n/Math.pow(10,Math.floor(F(n)));return 1===i||2===i||5===i?$r.numeric.call(this,n,t,e):""}};var tn={formatters:$r};function On(n,t,e,i,r){const o=E(i,0),s=Math.min(E(r,n.length),n.length);let a,l,c,y=0;for(e=Math.ceil(e),r&&(a=r-i,e=a/Math.floor(a/e)),c=o;c<0;)y++,c=Math.round(o+y*e);for(l=Math.max(o,0);l<s;l++)l===c&&(t.push(n[l]),y++,c=Math.round(o+y*e))}Bt.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(n,t)=>t.lineWidth,tickColor:(n,t)=>t.color,offset:!1,borderDash:[],borderDashOffset:0,borderWidth:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:tn.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),Bt.route("scale.ticks","color","","color"),Bt.route("scale.grid","color","","borderColor"),Bt.route("scale.grid","borderColor","","borderColor"),Bt.route("scale.title","color","","color"),Bt.describe("scale",{_fallback:!1,_scriptable:n=>!n.startsWith("before")&&!n.startsWith("after")&&"callback"!==n&&"parser"!==n,_indexable:n=>"borderDash"!==n&&"tickBorderDash"!==n}),Bt.describe("scales",{_fallback:"scale"}),Bt.describe("scale.ticks",{_scriptable:n=>"backdropPadding"!==n&&"callback"!==n,_indexable:n=>"backdropPadding"!==n});const Kr=(n,t,e)=>"top"===t||"left"===t?n[t]+e:n[t]-e;function Yr(n,t){const e=[],i=n.length/t,r=n.length;let o=0;for(;o<r;o+=i)e.push(n[Math.floor(o)]);return e}function Ss(n,t,e){const i=n.ticks.length,r=Math.min(t,i-1),o=n._startPixel,s=n._endPixel,a=1e-6;let l,c=n.getPixelForTick(r);if(!(e&&(l=1===i?Math.max(c-o,s-c):0===t?(n.getPixelForTick(1)-c)/2:(c-n.getPixelForTick(r-1))/2,c+=r<t?l:-l,c<o-a||c>s+a)))return c}function en(n){return n.drawTicks?n.tickLength:0}function Gr(n,t){if(!n.display)return 0;const e=Ut(n.font,t),i=Yt(n.padding);return(q(n.text)?n.text.length:1)*e.lineHeight+i.height}function As(n,t,e){let i=Jt(n);return(e&&"right"!==t||!e&&"right"===t)&&(i=(r=>
vendor: 5,732 bytes, line 1
1"left"===r?"right":"right"===r?"left":r)(i)),i}class Oe extends re{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,e){return t}getUserBounds(){let{_userMin:t,_userMax:e,_suggestedMin:i,_suggestedMax:r}=this;return t=A(t,Number.POSITIVE_INFINITY),e=A(e,Number.NEGATIVE_INFINITY),i=A(i,Number.POSITIVE_INFINITY),r=A(r,Number.NEGATIVE_INFINITY),{min:A(t,i),max:A(e,r),minDefined:R(t),maxDefined:R(e)}}getMinMax(t){let e,{min:i,max:r,minDefined:o,maxDefined:s}=this.getUserBounds();if(o&&s)return{min:i,max:r};const a=this.getMatchingVisibleMetas();for(let l=0,c=a.length;l<c;++l)e=a[l].controller.getMinMax(this,t),o||(i=Math.min(i,e.min)),s||(r=Math.max(r,e.max));return i=s&&i>r?r:i,r=o&&i>r?i:r,{min:A(i,A(r,i)),max:A(r,A(i,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){h(this.options.beforeUpdate,[this])}update(t,e,i){const{beginAtZero:r,grace:o,ticks:s}=this.options,a=s.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=mr(this,o,r),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=a<this.ticks.length;this._convertTicksToLabels(l?Yr(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),s.display&&(s.autoSkip||"auto"===s.source)&&(this.ticks=function Es(n,t){const e=n.options.ticks,i=e.maxTicksLimit||function(y){const _=y.options.offset,k=y._tickSize();return Math.floor(Math.min(y._length/k+(_?0:1),y._maxLength/k))}(n),r=e.major.enabled?function(y){const _=[];let k,N;for(k=0,N=y.length;k<N;k++)y[k].major&&_.push(k);return _}(t):[],o=r.length,s=r[0],a=r[o-1],l=[];if(o>i)return function(y,_,k,N){let C,H=0,U=k[0];for(N=Math.ceil(N),C=0;C<y.length;C++)C===U&&(_.push(y[C]),H++,U=k[H*N])}(t,l,r,o/i),l;const c=function(y,_,k){const N=function(U){const Z=U.length;let J,nt;if(Z<2)return!1;for(nt=U[0],J=1;J<Z;++J)if(U[J]-U[J-1]!==nt)return!1;return nt}(y),C=_.length/k;if(!N)return Math.max(C,1);const H=at(N);for(let U=0,Z=H.length-1;U<Z;U++){const J=H[U];if(J>C)return J}return Math.max(C,1)}(r,t,i);if(o>0){let y,_;const k=o>1?Math.round((a-s)/(o-1)):null;for(On(t,l,c,T(k)?0:s-k,s),y=0,_=o-1;y<_;y++)On(t,l,c,r[y],r[y+1]);return On(t,l,c,a,T(k)?t.length:a+k),l}return On(t,l,c),l}(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t,e,i=this.options.reverse;this.isHorizontal()?(t=this.left,e=this.right):(t=this.top,e=this.bottom,i=!i),this._startPixel=t,this._endPixel=e,this._reversePixels=i,this._length=e-t,this._alignToPixels=this.options.alignToPixels}afterUpdate(){h(this.options.afterUpdate,[this])}beforeSetDimensions(){h(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){h(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),h(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){h(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const e=this.options.ticks;let i,r,o;for(i=0,r=t.length;i<r;i++)o=t[i],o.label=h(e.callback,[o.value,i,t],this)}afterTickToLabelConversion(){h(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){h(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,e=t.ticks,i=this.ticks.length,r=e.minRotation||0,o=e.maxR
vendor: 5,238 bytes, line 1
1otation;let s,a,l,c=r;if(!this._isVisible()||!e.display||r>=o||i<=1||!this.isHorizontal())return void(this.labelRotation=r);const y=this._getLabelSizes(),_=y.widest.width,k=y.highest.height,N=It(this.chart.width-_,0,this.maxWidth);s=t.offset?this.maxWidth/i:N/(i-1),_+6>s&&(s=N/(i-(t.offset?.5:1)),a=this.maxHeight-en(t.grid)-e.padding-Gr(t.title,this.chart.options.font),l=Math.sqrt(_*_+k*k),c=pt(Math.min(Math.asin(It((y.highest.height+6)/s,-1,1)),Math.asin(It(a/l,-1,1))-Math.asin(It(k/l,-1,1)))),c=Math.max(r,Math.min(o,c))),this.labelRotation=c}afterCalculateLabelRotation(){h(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){h(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:i,title:r,grid:o}}=this,s=this._isVisible(),a=this.isHorizontal();if(s){const l=Gr(r,e.options.font);if(a?(t.width=this.maxWidth,t.height=en(o)+l):(t.height=this.maxHeight,t.width=en(o)+l),i.display&&this.ticks.length){const{first:c,last:y,widest:_,highest:k}=this._getLabelSizes(),N=2*i.padding,C=lt(this.labelRotation),H=Math.cos(C),U=Math.sin(C);a?t.height=Math.min(this.maxHeight,t.height+(i.mirror?0:U*_.width+H*k.height)+N):t.width=Math.min(this.maxWidth,t.width+(i.mirror?0:H*_.width+U*k.height)+N),this._calculatePadding(c,y,U,H)}}this._handleMargins(),a?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,e,i,r){const{ticks:{align:o,padding:s},position:a}=this.options,l=0!==this.labelRotation,c="top"!==a&&"x"===this.axis;if(this.isHorizontal()){const y=this.getPixelForTick(0)-this.left,_=this.right-this.getPixelForTick(this.ticks.length-1);let k=0,N=0;l?c?(k=r*t.width,N=i*e.height):(k=i*t.height,N=r*e.width):"start"===o?N=e.width:"end"===o?k=t.width:"inner"!==o&&(k=t.width/2,N=e.width/2),this.paddingLeft=Math.max((k-y+s)*this.width/(this.width-y),0),this.paddingRight=Math.max((N-_+s)*this.width/(this.width-_),0)}else{let y=e.height/2,_=t.height/2;"start"===o?(y=0,_=t.height):"end"===o&&(y=e.height,_=0),this.paddingTop=y+s,this.paddingBottom=_+s}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){h(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:e}=this.options;return"top"===e||"bottom"===e||"x"===t}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){let e,i;for(this.beforeTickToLabelConversion(),this.generateTickLabels(t),e=0,i=t.length;e<i;e++)T(t[e].label)&&(t.splice(e,1),i--,e--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const e=this.options.ticks.sampleSize;let i=this.ticks;e<i.length&&(i=Yr(i,e)),this._labelSizes=t=this._computeLabelSizes(i,i.length)}return t}_computeLabelSizes(t,e){const{ctx:i,_longestTextCache:r}=this,o=[],s=[];let a,l,c,y,_,k,N,C,H,U,Z,J=0,nt=0;for(a=0;a<e;++a){if(y=t[a].label,_=this._resolveTickFontOptions(a),i.font=k=_.string,N=r[k]=r[k]||{data:{},gc:[]},C=_.lineHeight,H=U=0,T(y)||q(y)){if(q(y))for(l=0,c=y.length;l<c;++l)Z=y[l],T(Z)||q(Z)||(H=Ue(i,N.data,N.gc,H,Z),U+=C)}else H=Ue(i,N.data,N.gc,H,y),U=C;o.push(H),s.push(U),J=Math.max(H,J),nt=Math.max(U,nt)}var wt;wt=e,u(r,Ot=>{const bt=Ot.gc,Et=bt.length/2;let St;if(Et>wt){for(St=0;St<Et;++St)delete Ot.data[bt[St]];bt.splice(0,Et)}});const ot=o.indexOf(J),ct=s.indexOf(nt),gt=vt=>({width:o[vt]||0,height:s[vt]||0});return{first:gt(0),last:gt(e-1),widest:gt(ot),highest:gt(ct),widths:o,heights:s}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const e=this._startPixel+t*this._length;return ft(this._alignToPixels?ye(this.chart,e,0):e)}getDecimalForPixel(t){const e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}getContext(t){const e=this.ticks||[];if(t>=0&&t<e.length){const i=e[t];return i.$context||(i.$context=ce(this.getContext(),{tick:i,index:t,type:"tick"}))}return this.$context||(this.$context=ce(this.chart.getContext(),{scale:this,type:"scale"}))}_tickSize(){const t=this.options.ticks,e=lt(this.labelRotation),i=Math.abs(Math.cos(e)),r=Math.abs(Math.sin(e)),o=this._getLabelSizes(),s=t.autoSkipPadding||0,a=o?o.widest.width+s:0,l=o?o.highest.height+s:0;return this.isHorizontal()?l*i>a*r?a/i:l/r:l*r<a*i?l/i:a/r}_isVisible(){const t=this.options.display;return"auto"!==t?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const e=this.axis,i=this.chart,r=this.options,{grid:o,position:s}=r,a=o.offset,l=this.isHorizontal(),c=this.ticks.length+(a?1:0),y=en(o),_=[],k=o.setContext(this.getContext()),N=k.drawBorder?k.borderWidth:0,C=N/2,H=function(yt){return ye(i,yt,N)};let U,Z,J,nt,ot,ct,gt,vt,wt,Ot,bt,Et;
vendor: 4,434 bytes, line 1
1if("top"===s)U=H(this.bottom),ct=this.bottom-y,vt=U-C,Ot=H(t.top)+C,Et=t.bottom;else if("bottom"===s)U=H(this.top),Ot=t.top,Et=H(t.bottom)-C,ct=U+C,vt=this.top+y;else if("left"===s)U=H(this.right),ot=this.right-y,gt=U-C,wt=H(t.left)+C,bt=t.right;else if("right"===s)U=H(this.left),wt=t.left,bt=H(t.right)-C,ot=U+C,gt=this.left+y;else if("x"===e){if("center"===s)U=H((t.top+t.bottom)/2+.5);else if(P(s)){const yt=Object.keys(s)[0];U=H(this.chart.scales[yt].getPixelForValue(s[yt]))}Ot=t.top,Et=t.bottom,ct=U+C,vt=ct+y}else if("y"===e){if("center"===s)U=H((t.left+t.right)/2);else if(P(s)){const yt=Object.keys(s)[0];U=H(this.chart.scales[yt].getPixelForValue(s[yt]))}ot=U-C,gt=ot-y,wt=t.left,bt=t.right}const St=E(r.ticks.maxTicksLimit,c),Tt=Math.max(1,Math.ceil(c/St));for(Z=0;Z<c;Z+=Tt){const yt=o.setContext(this.getContext(Z)),At=yt.lineWidth,Ct=yt.color,Ft=yt.borderDash||[],Vt=yt.borderDashOffset,$t=yt.tickWidth,te=yt.tickColor,ee=yt.tickBorderDash||[],oe=yt.tickBorderDashOffset;J=Ss(this,Z,a),void 0!==J&&(nt=ye(i,J,At),l?ot=gt=wt=bt=nt:ct=vt=Ot=Et=nt,_.push({tx1:ot,ty1:ct,tx2:gt,ty2:vt,x1:wt,y1:Ot,x2:bt,y2:Et,width:At,color:Ct,borderDash:Ft,borderDashOffset:Vt,tickWidth:$t,tickColor:te,tickBorderDash:ee,tickBorderDashOffset:oe}))}return this._ticksLength=c,this._borderValue=U,_}_computeLabelItems(t){const e=this.axis,i=this.options,{position:r,ticks:o}=i,s=this.isHorizontal(),a=this.ticks,{align:l,crossAlign:c,padding:y,mirror:_}=o,k=en(i.grid),N=k+y,C=_?-y:N,H=-lt(this.labelRotation),U=[];let Z,J,nt,ot,ct,gt,vt,wt,Ot,bt,Et,St,Tt="middle";if("top"===r)gt=this.bottom-C,vt=this._getXAxisLabelAlignment();else if("bottom"===r)gt=this.top+C,vt=this._getXAxisLabelAlignment();else if("left"===r){const At=this._getYAxisLabelAlignment(k);vt=At.textAlign,ct=At.x}else if("right"===r){const At=this._getYAxisLabelAlignment(k);vt=At.textAlign,ct=At.x}else if("x"===e){if("center"===r)gt=(t.top+t.bottom)/2+N;else if(P(r)){const At=Object.keys(r)[0];gt=this.chart.scales[At].getPixelForValue(r[At])+N}vt=this._getXAxisLabelAlignment()}else if("y"===e){if("center"===r)ct=(t.left+t.right)/2-N;else if(P(r)){const At=Object.keys(r)[0];ct=this.chart.scales[At].getPixelForValue(r[At])}vt=this._getYAxisLabelAlignment(k).textAlign}"y"===e&&("start"===l?Tt="top":"end"===l&&(Tt="bottom"));const yt=this._getLabelSizes();for(Z=0,J=a.length;Z<J;++Z){nt=a[Z],ot=nt.label;const At=o.setContext(this.getContext(Z));wt=this.getPixelForTick(Z)+o.labelOffset,Ot=this._resolveTickFontOptions(Z),bt=Ot.lineHeight,Et=q(ot)?ot.length:1;const Ct=Et/2,Ft=At.color,Vt=At.textStrokeColor,$t=At.textStrokeWidth;let te,ee=vt;if(s?(ct=wt,"inner"===vt&&(ee=Z===J-1?this.options.reverse?"left":"right":0===Z?this.options.reverse?"right":"left":"center"),St="top"===r?"near"===c||0!==H?-Et*bt+bt/2:"center"===c?-yt.highest.height/2-Ct*bt+bt:bt/2-yt.highest.height:"near"===c||0!==H?bt/2:"center"===c?yt.highest.height/2-Ct*bt:yt.highest.height-Et*bt,_&&(St*=-1)):(gt=wt,St=(1-Et)*bt/2),At.showLabelBackdrop){const oe=Yt(At.backdropPadding),fe=yt.heights[Z],Ne=yt.widths[Z];let de=gt+St-oe.top,pe=ct-oe.left;switch(Tt){case"middle":de-=fe/2;break;case"bottom":de-=fe}switch(vt){case"center":pe-=Ne/2;break;case"right":pe-=Ne}te={left:pe,top:de,width:Ne+oe.width,height:fe+oe.height,color:At.backdropColor}}U.push({rotation:H,label:ot,font:Ot,color:Ft,strokeColor:Vt,strokeWidth:$t,textOffset:St,textAlign:ee,textBaseline:Tt,translation:[ct,gt],backdrop:te})}return U}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options;if(-lt(this.labelRotation))return"top"===t?"left":"right";let i="center";return"start"===e.align?i="left":"end"===e.align?i="right":"inner"===e.align&&(i="inner"),i}_getYAxisLabelAlignment(t){const{position:e,ticks:{crossAlign:i,mirror:r,padding:o}}=this.options,s=t+o,a=this._getLabelSizes().widest.width;let l,c;return"left"===e?r?(c=this.right+o,"near"===i?l="left":"center"===i?(l="center",c+=a/2):(l="right",c+=a)):(c=this.right-s,"near"===i?l="right":"center"===i?(l="center",c-=a/2):(l="left",c=this.left)):"right"===e?r?(c=this.left+o,"near"===i?l="right":"center"===i?(l="center",c-=a/2):(l="left",c-=a)):(c=this.left+s,"near"===i?l="left":"center"===i?(l="center",c+=a/2):(l="right",c=this.right)):l="right",{textAlign:l,x:c}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,e=this.options.position;return"left"===e||"right"===e?{top:0,left:this.left,bottom:t.height,right:this.right}
vendor: 4,351 bytes, line 1
1:"top"===e||"bottom"===e?{top:this.top,left:0,bottom:this.bottom,right:t.width}:void 0}drawBackground(){const{ctx:t,options:{backgroundColor:e},left:i,top:r,width:o,height:s}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(i,r,o,s),t.restore())}getLineWidthForValue(t){const e=this.options.grid;if(!this._isVisible()||!e.display)return 0;const i=this.ticks.findIndex(r=>r.value===t);return i>=0?e.setContext(this.getContext(i)).lineWidth:0}drawGrid(t){const e=this.options.grid,i=this.ctx,r=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let o,s;const a=(l,c,y)=>{y.width&&y.color&&(i.save(),i.lineWidth=y.width,i.strokeStyle=y.color,i.setLineDash(y.borderDash||[]),i.lineDashOffset=y.borderDashOffset,i.beginPath(),i.moveTo(l.x,l.y),i.lineTo(c.x,c.y),i.stroke(),i.restore())};if(e.display)for(o=0,s=r.length;o<s;++o){const l=r[o];e.drawOnChartArea&&a({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),e.drawTicks&&a({x:l.tx1,y:l.ty1},{x:l.tx2,y:l.ty2},{color:l.tickColor,width:l.tickWidth,borderDash:l.tickBorderDash,borderDashOffset:l.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:e,options:{grid:i}}=this,r=i.setContext(this.getContext()),o=i.drawBorder?r.borderWidth:0;if(!o)return;const s=i.setContext(this.getContext(0)).lineWidth,a=this._borderValue;let l,c,y,_;this.isHorizontal()?(l=ye(t,this.left,o)-o/2,c=ye(t,this.right,s)+s/2,y=_=a):(y=ye(t,this.top,o)-o/2,_=ye(t,this.bottom,s)+s/2,l=c=a),e.save(),e.lineWidth=r.borderWidth,e.strokeStyle=r.borderColor,e.beginPath(),e.moveTo(l,y),e.lineTo(c,_),e.stroke(),e.restore()}drawLabels(t){if(!this.options.ticks.display)return;const e=this.ctx,i=this._computeLabelArea();i&&$e(e,i);const r=this._labelItems||(this._labelItems=this._computeLabelItems(t));let o,s;for(o=0,s=r.length;o<s;++o){const a=r[o],l=a.font,c=a.label;a.backdrop&&(e.fillStyle=a.backdrop.color,e.fillRect(a.backdrop.left,a.backdrop.top,a.backdrop.width,a.backdrop.height)),be(e,c,0,a.textOffset,l,a)}i&&Ke(e)}drawTitle(){const{ctx:t,options:{position:e,title:i,reverse:r}}=this;if(!i.display)return;const o=Ut(i.font),s=Yt(i.padding),a=i.align;let l=o.lineHeight/2;"bottom"===e||"center"===e||P(e)?(l+=s.bottom,q(i.text)&&(l+=o.lineHeight*(i.text.length-1))):l+=s.top;const{titleX:c,titleY:y,maxWidth:_,rotation:k}=function(N,C,H,U){const{top:Z,left:J,bottom:nt,right:ot,chart:ct}=N,{chartArea:gt,scales:vt}=ct;let wt,Ot,bt,Et=0;const St=nt-Z,Tt=ot-J;if(N.isHorizontal()){if(Ot=Kt(U,J,ot),P(H)){const yt=Object.keys(H)[0];bt=vt[yt].getPixelForValue(H[yt])+St-C}else bt="center"===H?(gt.bottom+gt.top)/2+St-C:Kr(N,H,C);wt=ot-J}else{if(P(H)){const yt=Object.keys(H)[0];Ot=vt[yt].getPixelForValue(H[yt])-Tt+C}else Ot="center"===H?(gt.left+gt.right)/2-Tt+C:Kr(N,H,C);bt=Kt(U,nt,Z),Et="left"===H?-dt:dt}return{titleX:Ot,titleY:bt,maxWidth:wt,rotation:Et}}(this,l,e,a);be(t,i.text,0,0,o,{color:i.color,maxWidth:_,rotation:k,textAlign:As(a,e,r),textBaseline:"middle",translation:[c,y]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,e=t.ticks&&t.ticks.z||0,i=E(t.grid&&t.grid.z,-1);return this._isVisible()&&this.draw===Oe.prototype.draw?[{z:i,draw:r=>{this.drawBackground(),this.drawGrid(r),this.drawTitle()}},{z:i+1,draw:()=>{this.drawBorder()}},{z:e,draw:r=>{this.drawLabels(r)}}]:[{z:e,draw:r=>{this.draw(r)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",r=[];let o,s;for(o=0,s=e.length;o<s;++o){const a=e[o];a[i]!==this.id||t&&a.type!==t||r.push(a)}return r}_resolveTickFontOptions(t){return Ut(this.options.ticks.setContext(this.getContext(t)).font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class wn{constructor(t,e,i){this.type=t,this.scope=e,this.override=i,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const e=Object.getPrototypeOf(t);let i;var a;"id"in(a=e)&&"defaults"in a&&(i=this.register(e));const r=this.items,o=t.id,s=this.scope+"."+o;if(!o)throw new Error("class does not have id: "+t);return o in r||(r[o]=t,function(a,l,c){const y=p(Object.create(null),[c?Bt.get(c):{},Bt.get(l),a.defaults]);var _,k;Bt.set(l,y),a.defaultRoutes&&(_=l,k=a.defaultRoutes,Object.keys(k).forEac
vendor: 3,828 bytes, line 1
1h(N=>{const C=N.split("."),H=C.pop(),U=[_].concat(C).join("."),Z=k[N].split("."),J=Z.pop(),nt=Z.join(".");Bt.route(U,H,nt,J)})),a.descriptors&&Bt.describe(l,a.descriptors)}(t,s,i),this.override&&Bt.override(t.id,t.overrides)),s}get(t){return this.items[t]}unregister(t){const e=this.items,i=t.id,r=this.scope;i in e&&delete e[i],r&&i in Bt[r]&&(delete Bt[r][i],this.override&&delete Se[i])}}var se=new class{constructor(){this.controllers=new wn(ie,"datasets",!0),this.elements=new wn(re,"elements"),this.plugins=new wn(Object,"plugins"),this.scales=new wn(Oe,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...n){this._each("register",n)}remove(...n){this._each("unregister",n)}addControllers(...n){this._each("register",n,this.controllers)}addElements(...n){this._each("register",n,this.elements)}addPlugins(...n){this._each("register",n,this.plugins)}addScales(...n){this._each("register",n,this.scales)}getController(n){return this._get(n,this.controllers,"controller")}getElement(n){return this._get(n,this.elements,"element")}getPlugin(n){return this._get(n,this.plugins,"plugin")}getScale(n){return this._get(n,this.scales,"scale")}removeControllers(...n){this._each("unregister",n,this.controllers)}removeElements(...n){this._each("unregister",n,this.elements)}removePlugins(...n){this._each("unregister",n,this.plugins)}removeScales(...n){this._each("unregister",n,this.scales)}_each(n,t,e){[...t].forEach(i=>{const r=e||this._getRegistryForType(i);e||r.isForType(i)||r===this.plugins&&i.id?this._exec(n,r,i):u(i,o=>{const s=e||this._getRegistryForType(o);this._exec(n,s,o)})})}_exec(n,t,e){const i=B(n);h(e["before"+i],[],e),t[n](e),h(e["after"+i],[],e)}_getRegistryForType(n){for(let t=0;t<this._typedRegistries.length;t++){const e=this._typedRegistries[t];if(e.isForType(n))return e}return this.plugins}_get(n,t,e){const i=t.get(n);if(void 0===i)throw new Error('"'+n+'" is not a registered '+e+".");return i}};class Ts{constructor(){this._init=[]}notify(t,e,i,r){"beforeInit"===e&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const o=r?this._descriptors(t).filter(r):this._descriptors(t),s=this._notify(o,t,e,i);return"afterDestroy"===e&&(this._notify(o,t,"stop"),this._notify(this._init,t,"uninstall")),s}_notify(t,e,i,r){r=r||{};for(const o of t){const s=o.plugin;if(!1===h(s[i],[e,r,o.options],s)&&r.cancelable)return!1}return!0}invalidate(){T(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const e=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),e}_createDescriptors(t,e){const i=t&&t.config,r=E(i.options&&i.options.plugins,{}),o=function(s){const a={},l=[],c=Object.keys(se.plugins.items);for(let _=0;_<c.length;_++)l.push(se.getPlugin(c[_]));const y=s.plugins||[];for(let _=0;_<y.length;_++){const k=y[_];-1===l.indexOf(k)&&(l.push(k),a[k.id]=!0)}return{plugins:l,localIds:a}}(i);return!1!==r||e?function(s,{plugins:a,localIds:l},c,y){const _=[],k=s.getContext();for(const N of a){const C=N.id,H=Ps(c[C],y);null!==H&&_.push({plugin:N,options:Ms(s.config,{plugin:N,local:l[C]},H,k)})}return _}(t,o,r,e):[]}_notifyStateChanges(t){const e=this._oldCache||[],i=this._cache,r=(o,s)=>o.filter(a=>!s.some(l=>a.plugin.id===l.plugin.id));this._notify(r(e,i),t,"stop"),this._notify(r(i,e),t,"start")}}function Ps(n,t){return t||!1!==n?!0===n?{}:n:null}function Ms(n,{plugin:t,local:e},i,r){const o=n.pluginScopeKeys(t),s=n.getOptionScopes(i,o);return e&&t.defaults&&s.push(t.defaults),n.createResolver(s,r,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function _i(n,t){return((t.datasets||{})[n]||{}).indexAxis||t.indexAxis||(Bt.datasets[n]||{}).indexAxis||"x"}function xi(n,t){return"x"===n||"y"===n?n:t.axis||("top"===(e=t.position)||"bottom"===e?"x":"left"
1===e||"right"===e?"y":void 0)||n.charAt(0).toLowerCase();var e}function Zr(n){const t=n.options||(n.options={});t.plugins=E(t.plugins,{}),t.scales=function(e,i){const r=Se[e.type]||{scales:{}},o=i.scales||{},s=_i(e.type,i),a=Object.create(null),l=Object.create(null);return Object.keys(o).forEach(c=>{const y=o[c];if(!P(y))return console.error(`Invalid scale configuration for scale: ${c}`);if(y._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${c}`);const _=xi(c,y),k=function(C,H){return C===H?"_index_":"_value_"}(_,s),N=r.scales||{};a[_]=a[_]||c,l[c]=O(Object.create(null),[{axis:_},y,N[_],N[k]])}),e.data.datasets.forEach(c=>{const y=c.type||e.type,_=c.indexAxis||_i(y,i),k=(Se[y]||{}).scales||{};Object.keys(k).forEach(N=>{const C=function(U,Z){let J=U;return"_index_"===U?J=Z:"_value_"===U&&(J="x"===Z?"y":"x"),J}(N,_),H=c[C+"AxisID"]||a[C]||C;l[H]=l[H]||Object.create(null),O(l[H],[{axis:C},o[H],k[N]])})}),Object.keys(l).forEach(c=>{const y=l[c];O(y,[Bt.scales[y.type],Bt.scale])}),l}(n,t)}function Xr(n){return(n=n||{}).datasets=n.datasets||[],n.labels=n.labels||[],n}const Qr=new Map,Jr=new Set;function kn(n,t){let e=Qr.get(n);return e||(e=t(),Qr.set(n,e),Jr.add(e)),e}const nn=(n,t,e)=>{const i=z(t,e);void 0!==i&&n.add(i)};class Ns{constructor(t){var e;this._config=((e=(e=t)||{}).data=Xr(e.data),Zr(e),e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=Xr(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),Zr(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return kn(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,e){return kn(`${t}.transition.${e}`,()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,e){return kn(`${t}-${e}`,()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]])}pluginScopeKeys(t){const e=t.id;return kn(`${this.type}-plugin-${e}`,()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,e){const i=this._scopeCache;let r=i.get(t);return r&&!e||(r=new Map,i.set(t,r)),r}getOptionScopes(t,e,i){const{options:r,type:o}=this,s=this._cachedScopes(t,i),a=s.get(e);if(a)return a;const l=new Set;e.forEach(y=>
1{t&&(l.add(t),y.forEach(_=>nn(l,t,_))),y.forEach(_=>nn(l,r,_)),y.forEach(_=>nn(l,Se[o]||{},_)),y.forEach(_=>nn(l,Bt,_)),y.forEach(_=>nn(l,Zn,_))});const c=Array.from(l);return 0===c.length&&c.push(Object.create(null)),Jr.has(e)&&s.set(e,c),c}chartOptionScopes(){const{options:t,type:e}=this;return[t,Se[e]||{},Bt.datasets[e]||{},{type:e},Bt,Zn]}resolveNamedOptions(t,e,i,r=[""]){const o={$shared:!0},{resolver:s,subPrefixes:a}=to(this._resolverCache,t,r);let l=s;(function(c,y){const{isScriptable:_,isIndexable:k}=ri(c);for(const N of y){const C=_(N),H=k(N),U=(H||C)&&c[N];if(C&&(L(U)||Ls(U))||H&&q(U))return!0}return!1})(s,e)&&(o.$shared=!1,l=Te(s,i=L(i)?i():i,this.createResolver(t,i,a)));for(const c of e)o[c]=l[c];return o}createResolver(t,e,i=[""],r){const{resolver:o}=to(this._resolverCache,t,i);return P(e)?Te(o,e,void 0,r):o}}function to(n,t,e){let i=n.get(t);i||(i=new Map,n.set(t,i));const r=e.join();let o=i.get(r);return o||(o={resolver:mn(t,e),subPrefixes:e.filter(s=>!s.toLowerCase().includes("hover"))},i.set(r,o)),o}const Ls=n=>P(n)&&Object.getOwnPropertyNames(n).reduce((t,e)=>t||L(n[e]),!1),Rs=["top","bottom","left","right","chartArea"];function eo(n,t){return"top"===n||"bottom"===n||-1===Rs.indexOf(n)&&"x"===t}function no(n,t){return function(e,i){return e[n]===i[n]?e[t]-i[t]:e[n]-i[n]}}function io(n){const t=n.chart,e=t.options.animation;t.notifyPlugins("afterRender"),h(e&&e.onComplete,[n],t)}function Ds(n){const t=n.chart,e=t.options.animation;h(e&&e.onProgress,[n],t)}function ro(n){return Qn()&&"string"==typeof n?n=document.getElementById(n):n&&n.length&&(n=n[0]),n&&n.canvas&&(n=n.canvas),n}const En={},oo=n=>{const t=ro(n);return Object.values(En).filter(e=>e.canvas===t).pop()};function Cs(n,t,e){const i=Object.keys(n);for(const r of i){const o=+r;if(o>=t){const s=n[r];delete n[r],(e>0||o>t)&&(n[o+e]=s)}}}class Ht{constructor(t,e){const i=this.config=new Ns(e),r=ro(t),o=oo(r);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const s=i.createResolver(i.chartOptionScopes(),this.getContext());this.platform=new(i.platform||Cr(r)),this.platform.updateConfig(i);const a=this.platform.acquireContext(r,s.aspectRatio),l=a&&a.canvas,c=l&&l.height,y=l&&l.width;this.id=M(),this.ctx=a,this.canvas=l,this.width=y,this.height=c,this._options=s,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new Ts,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=zt(_=>this.update(_),s.resizeDelay||0),this._dataChanges=[],En[this.id]=this,a&&l?(ae.listen(this,"complete",io),ae.listen(this,"progress",Ds),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:e},width:i,height:r,_aspectRatio:o}=this;return T(t)?e&&o?o:r?i/r:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():ti(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return ni(this.canvas,this.ctx),this}stop(){return ae.stop(this),this}resize(t,e){ae.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const i=this.options,s=this.platform.getMaximumSize(this.canvas,t,e,i.maintainAspectRatio&&this.aspectRatio),a=i.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=s.width,this.height=s.height,this._aspectRatio=this.aspectRatio,ti(this,a,!0)&&(this.notifyPlugins("resize",{size:s}),h(i.onResize,[this,s],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){u(this.options.scales||{},(t,e)=>{t.id=e})}buildOrUpdateScales(){const t=this.options,e=t.scales,i=this.scales,r=Object.keys(i).reduce((s,a)=>(s[a]=!1,s),{});let o=[];e&&(o=o.concat(Object.keys(e).map(s=>{const a=e[s],l=xi(s,a),c="r"===l,y="x"===l;return{options:a,dposition:c?"chartArea":y?"bottom":"left",dtype:c?"radialLinear":y?"category":"linear"}}))),u(o,s=>{const a=s.options,l=a.id,c=xi(l,a),y=E(a.type,s.dtype);void 0!==a.position&&eo(a.position,c)===eo(s.dposition)||(a.position=s.dposition),r[l]=!0;let _=null;l in i&&i[l].type===y?_=i[l]:(_=new(se.getScale(y))({id:l,type:y,ctx:this.ctx,
vendor: 11,851 bytes, line 1
1chart:this}),i[_.id]=_),_.init(a,t)}),u(r,(s,a)=>{s||delete i[a]}),u(i,s=>{Gt.configure(this,s,s.options),Gt.addBox(this,s)})}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,i=t.length;if(t.sort((r,o)=>r.index-o.index),i>e){for(let r=e;r<i;++r)this._destroyDatasetMeta(r);t.splice(e,i-e)}this._sortedMetasets=t.slice(0).sort(no("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:e}}=this;t.length>e.length&&delete this._stacks,t.forEach((i,r)=>{0===e.filter(o=>o===i._dataset).length&&this._destroyDatasetMeta(r)})}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let i,r;for(this._removeUnreferencedMetasets(),i=0,r=e.length;i<r;i++){const o=e[i];let s=this.getDatasetMeta(i);const a=o.type||this.config.type;if(s.type&&s.type!==a&&(this._destroyDatasetMeta(i),s=this.getDatasetMeta(i)),s.type=a,s.indexAxis=o.indexAxis||_i(a,this.options),s.order=o.order||0,s.index=i,s.label=""+o.label,s.visible=this.isDatasetVisible(i),s.controller)s.controller.updateIndex(i),s.controller.linkScales();else{const l=se.getController(a),{datasetElementType:c,dataElementType:y}=Bt.datasets[a];Object.assign(l.prototype,{dataElementType:se.getElement(y),datasetElementType:c&&se.getElement(c)}),s.controller=new l(this,i),t.push(s.controller)}}return this._updateMetasets(),t}_resetElements(){u(this.data.datasets,(t,e)=>{this.getDatasetMeta(e).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const e=this.config;e.update();const i=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),r=this._animationsDisabled=!i.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let s=0;for(let c=0,y=this.data.datasets.length;c<y;c++){const{controller:_}=this.getDatasetMeta(c),k=!r&&-1===o.indexOf(_);_.buildOrUpdateElements(k),s=Math.max(+_.getMaxOverflow(),s)}s=this._minPadding=i.layout.autoPadding?s:0,this._updateLayout(s),r||u(o,c=>{c.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(no("z","_idx"));const{_active:a,_lastEvent:l}=this;l?this._eventHandler(l,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){u(this.scales,t=>{Gt.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),i=new Set(t.events);S(e,i)&&!!this._responsiveListeners===t.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:i,start:r,count:o}of e)Cs(t,r,"_removeElements"===i?-o:o)}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,i=o=>new Set(t.filter(s=>s[0]===o).map((s,a)=>a+","+s.splice(1).join(","))),r=i(0);for(let o=1;o<e;o++)if(!S(r,i(o)))return;return Array.from(r).map(o=>o.split(",")).map(o=>({method:o[1],start:+o[2],count:+o[3]}))}_updateLayout(t){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;Gt.update(this,this.width,this.height,t);const e=this.chartArea,i=e.width<=0||e.height<=0;this._layers=[],u(this.boxes,r=>{i&&"chartArea"===r.position||(r.configure&&r.configure(),this._layers.push(...r._layers()))},this),this._layers.forEach((r,o)=>{r._idx=o}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})){for(let e=0,i=this.data.datasets.length;e<i;++e)this.getDatasetMeta(e).controller.configure();for(let e=0,i=this.data.datasets.length;e<i;++e)this._updateDataset(e,L(t)?t({datasetIndex:e}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,e){const i=this.getDatasetMeta(t),r={meta:i,index:t,mode:e,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",r)&&(i.controller._update(e),r.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",r))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(ae.has(this)?this.attached&&!ae.running(this)&&ae.start(this):(this.draw(),io({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:i,height:r}=this._resizeBeforeDraw;this._resize(i,r),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0||!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const e=this._layers;for(t=0;t<e.length&&e[t].z<=0;++t)e[t].draw(this.chartArea);for(this._drawDatasets();t<e.length;++t)e[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const e=this._sortedMetasets,i=[];let r,o;for(r=0,o=e.length;r<o;++r){const s=e[r];t&&!s.visible||i.push(s)}return i}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const t=this.getSortedVisibleDatasetMetas();for(let e=t.length-1;e>=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const e=this.ctx,i=t._clip,r=!i.disabled,o=this.chartArea,s={meta:t,index:t.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",s)&&(r&&$e(e,{left:!1===i.left?0:o.left-i.left,right:!1===i.right?this.width:o.right+i.right,top:!1===i.top?0:o.top-i.top,bottom:!1===i.bottom?this.height:o.bottom+i.bottom}),t.controller.draw(),r&&Ke(e),s.cancelable=!1,this.notifyPlugins("afterDatasetDraw",s))}isPointInArea(t){return Re(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,i,r){const o=wr.modes[e];return"function"==typeof o?o(this,t,i,r):[]}getDatasetMeta(t){const e=this.data.datasets[t],i=this._metasets;let r=i.filter(o=>o&&o._dataset===e).pop();return r||(r={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},i.push(r)),r}getContext(){return this.$context||(this.$context=ce(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const i=this.getDatasetMeta(t);return"boolean"==typeof i.hidden?!i.hidden:!e.hidden}setDatasetVisibility(t,e){this.getDatasetMeta(t).hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,i){const r=i?"show":"hide",o=this.getDatasetMeta(t),s=o.controller._resolveAnimations(void 0,r);W(e)?(o.data[e].hidden=!i,this.update()):(this.setDatasetVisibility(t,i),s.update(o,{visible:i}),this.update(a=>a.datasetIndex===t?r:void 0))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){const e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),ae.remove(this),t=0,e=this.data.datasets.length;t<e;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:e}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),ni(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),this.notifyPlugins("destroy"),delete En[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,e=this.platform,i=(o,s)=>{e.addEventListener(this,o,s),t[o]=s},r=(o,s,a)=>{o.offsetX=s,o.offsetY=a,this._eventHandler(o)};u(this.options.events,o=>i(o,r))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,i=(l,c)=>{e.addEventListener(this,l,c),t[l]=c},r=(l,c)=>{t[l]&&(e.removeEventListener(this,l,c),delete t[l])},o=(l,c)=>{this.canvas&&this.resize(l,c)};let s;const a=()=>{r("attach",a),this.attached=!0,this.resize(),i("resize",o),i("detach",s)};s=()=>{this.attached=!1,r("resize",o),this._stop(),this._resize(0,0),i("attach",a)},e.isAttached(this.canvas)?a():s()}unbindEvents(){u(this._listeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._listeners={},u(this._responsiveListeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,e,i){const r=i?"set":"remove";let o,s,a,l;for("dataset"===e&&(o=this.getDatasetMeta(t[0].datasetIndex),o.controller["_"+r+"DatasetHoverStyle"]()),a=0,l=t.length;a<l;++a){s=t[a];const c=s&&this.getDatasetMeta(s.datasetIndex).controller;c&&c[r+"HoverStyle"](s.element,s.datasetIndex,s.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const e=this._active||[],i=t.map(({datasetIndex:r,index:o})=>{const s=this.getDatasetMeta(r);if(!s)throw new Error("No dataset found at index "+r);return{datasetIndex:r,element:s.data[o],index:o}});!v(i,e)&&(this._active=i,this._lastEvent=null,this._updateHoverStyles(i,e))}notifyPlugins(t,e,i){return this._plugins.notify(this,t,e,i)}_updateHoverStyles(t,e,i){const r=this.options.hover,o=(l,c)=>l.filter(y=>!c.some(_=>y.datasetIndex===_.datasetIndex&&y.index===_.index)),s=o(e,t),a=i?t:o(t,e);s.length&&this.updateHoverStyle(s,r.mode,!1),a.length&&r.mode&&this.updateHoverStyle(a,r.mode,!0)}_eventHandler(t,e){const i={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},r=s=>(s.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins("beforeEvent",i,r))return;const o=this._handleEvent(t,e,i.inChartArea);return i.cancelable=!1,this.notifyPlugins("afterEvent",i,r),(o||i.changed)&&this.render(),this}_handleEvent(t,e,i){const{_active:r=[],options:o}=this,a=this._getActiveElements(t,r,i,e),l=D(t),c=(_=t,i&&"mouseout"!==_.type?l?this._lastEvent:_:null);var _;i&&(this._lastEvent=null,h(o.onHover,[t,a,this],this),l&&h(o.onClick,[t,a,this],this));const y=!v(a,r);return(y||e)&&(this._active=a,this._updateHoverStyles(a,r,e)),this._lastEvent=c,y}_getActiveElements(t,e,i,r){if("mouseout"===t.type)return[];if(!i)return e;const o=this.options.hover;return this.getElementsAtEventForMode(t,o.mode,o,r)}}const so=()=>u(Ht.instances,n=>n._plugins.invalidate()),we=!0;function Me(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}Object.defineProperties(Ht,{defaults:{enumerable:we,value:Bt},instances:{enumerable:we,value:En},overrides:{enumerable:we,value:Se},registry:{enumerable:we,value:se},version:{enumerable:we,value:"3.9.1"},getChart:{enumerable:we,value:oo},register:{enumerable:we,value:(...n)=>{se.add(...n),so()}},unregister:{enumerable:we,value:(...n)=>{se.remove(...n),so()}}});class Oi{constructor(t){this.options=t||{}}init(t){}formats(){return Me()}parse(t,e){return Me()}format(t,e){return Me()}add(t,e,i){return Me()}diff(t,e,i){return Me()}startOf(t,e,i){return Me()}endOf(t,e){return Me()}}Oi.override=function(n){Object.assign(Oi.prototype,n)};var ao={_date:Oi};function Is(n){const t=n.iScale,e=function(c,y){if(!c._cache.$bar){const _=c.getMatchingVisibleMetas(y);let k=[];for(let N=0,C=_.length;N<C;N++)k=k.concat(_[N].controller.getAllParsedValues(c));c._cache.$bar=Qt(k.sort((N,C)=>N-C))}return c._cache.$bar}(t,n.type);let i,r,o,s,a=t._length;const l=()=>{32767!==o&&-32768!==o&&(W(s)&&(a=Math.min(a,Math.abs(o-s)||a)),s=o)};for(i=0,r=e.length;i<r;++i)o=t.getPixelForValue(e[i]),l();for(s=void 0,i=0,r=t.ticks.length;i<r;++i)o=t.getPixelForTick(i),l();return a}function lo(n,t,e,i){return q(n)?function(r,o,s,a){const l=s.parse(r[0],a),c=s.parse(r[1],a),y=Math.min(l,c),_=Math.max(l,c);let k=y,N=_;Math.abs(y)>Math.abs(_)&&(k=_,N=y),o[s.axis]=N,o._custom={barStart:k,barEnd:N,start:l,end:c,min:y,max:_}}
vendor: 4,766 bytes, line 1
1(n,t,e,i):t[e.axis]=e.parse(n,i),t}function uo(n,t,e,i){const r=n.iScale,o=n.vScale,s=r.getLabels(),a=r===o,l=[];let c,y,_,k;for(c=e,y=e+i;c<y;++c)k=t[c],_={},_[r.axis]=a||r.parse(s[c],c),l.push(lo(k,_,o,c));return l}function wi(n){return n&&void 0!==n.barStart&&void 0!==n.barEnd}function js(n,t,e,i){let r=t.borderSkipped;const o={};if(!r)return void(n.borderSkipped=o);if(!0===r)return void(n.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:s,end:a,reverse:l,top:c,bottom:y}=function(_){let k,N,C,H,U;return _.horizontal?(k=_.base>_.x,N="left",C="right"):(k=_.base<_.y,N="bottom",C="top"),k?(H="end",U="start"):(H="start",U="end"),{start:N,end:C,reverse:k,top:H,bottom:U}}(n);"middle"===r&&e&&(n.enableBorderRadius=!0,(e._top||0)===i?r=c:(e._bottom||0)===i?r=y:(o[co(y,s,a,l)]=!0,r=c)),o[co(r,s,a,l)]=!0,n.borderSkipped=o}function co(n,t,e,i){var r,o,s;return i?(s=e,n=ho(n=(r=n)===(o=t)?s:r===s?o:r,e,t)):n=ho(n,t,e),n}function ho(n,t,e){return"start"===n?t:"end"===n?e:n}function Bs(n,{inflateAmount:t},e){n.inflateAmount="auto"===t?1===e?.33:0:t}class Sn extends ie{parsePrimitiveData(t,e,i,r){return uo(t,e,i,r)}parseArrayData(t,e,i,r){return uo(t,e,i,r)}parseObjectData(t,e,i,r){const{iScale:o,vScale:s}=t,{xAxisKey:a="x",yAxisKey:l="y"}=this._parsing,c="x"===o.axis?a:l,y="x"===s.axis?a:l,_=[];let k,N,C,H;for(k=i,N=i+r;k<N;++k)H=e[k],C={},C[o.axis]=o.parse(z(H,c),k),_.push(lo(z(H,y),C,s,k));return _}updateRangeFromParsed(t,e,i,r){super.updateRangeFromParsed(t,e,i,r);const o=i._custom;o&&e===this._cachedMeta.vScale&&(t.min=Math.min(t.min,o.min),t.max=Math.max(t.max,o.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const e=this._cachedMeta,{iScale:i,vScale:r}=e,o=this.getParsed(t),s=o._custom,a=wi(s)?"["+s.start+", "+s.end+"]":""+r.getLabelForValue(o[r.axis]);return{label:""+i.getLabelForValue(o[i.axis]),value:a}}initialize(){this.enableOptionSharing=!0,super.initialize(),this._cachedMeta.stack=this.getDataset().stack}update(t){const e=this._cachedMeta;this.updateElements(e.data,0,e.data.length,t)}updateElements(t,e,i,r){const o="reset"===r,{index:s,_cachedMeta:{vScale:a}}=this,l=a.getBasePixel(),c=a.isHorizontal(),y=this._getRuler(),{sharedOptions:_,includeOptions:k}=this._getSharedOptions(e,r);for(let N=e;N<e+i;N++){const C=this.getParsed(N),H=o||T(C[a.axis])?{base:l,head:l}:this._calculateBarValuePixels(N),U=this._calculateBarIndexPixels(N,y),Z=(C._stacks||{})[a.axis],J={horizontal:c,base:H.base,enableBorderRadius:!Z||wi(C._custom)||s===Z._top||s===Z._bottom,x:c?H.head:U.center,y:c?U.center:H.head,height:c?U.size:Math.abs(H.size),width:c?Math.abs(H.size):U.size};k&&(J.options=_||this.resolveDataElementOptions(N,t[N].active?"active":r));const nt=J.options||t[N].options;js(J,nt,Z,s),Bs(J,nt,y.ratio),this.updateElement(t[N],N,J,r)}}_getStacks(t,e){const{iScale:i}=this._cachedMeta,r=i.getMatchingVisibleMetas(this._type).filter(l=>l.controller.options.grouped),o=i.options.stacked,s=[],a=l=>{const c=l.controller.getParsed(e),y=c&&c[l.vScale.axis];if(T(y)||isNaN(y))return!0};for(const l of r)if((void 0===e||!a(l))&&((!1===o||-1===s.indexOf(l.stack)||void 0===o&&void 0===l.stack)&&s.push(l.stack),l.index===t))break;return s.length||s.push(void 0),s}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,e,i){const r=this._getStacks(t,i),o=void 0!==e?r.indexOf(e):-1;return-1===o?r.length-1:o}_getRuler(){const t=this.options,e=this._cachedMeta,i=e.iScale,r=[];let o,s;for(o=0,s=e.data.length;o<s;++o)r.push(i.getPixelForValue(this.getParsed(o)[i.axis],o));const a=t.barThickness;return{min:a||Is(e),pixels:r,start:i._startPixel,end:i._endPixel,stackCount:this._getStackCount(),scale:i,grouped:t.grouped,ratio:a?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:e,_stacked:i},options:{base:r,minBarLength:o}}=this,s=r||0,a=this.getParsed(t),l=a._custom,c=wi(l);let y,_,k=a[e.axis],N=0,C=i?this.applyStack(e,a,i):k;C!==k&&(N=C-k,C=k),c&&(k=l.barStart,C=l.barEnd-l.barStart,0!==k&&K(k)!==K(l.barEnd)&&(N=0),N+=k);const H=T(r)||c?N:r;let U=e.getPixelForValue(H);if(y=this.chart.getDataVisibility(t)?e.getPixelForValue(N+C):U,_=y-U,Math.abs(_)<o){gt=e,vt=s,_=(0!==(ct=_)?K(ct):(gt.isHorizontal()?1:-1)*(gt.min>=vt?1:-1))*o,k===s&&(U-=_/2);const Z=e.getPixelForDecimal(0),J=e.getPixelForDecimal(1),nt=Math.min(Z,J),ot=Math.max(Z,J);U=Math.max(Math.min(U,ot),nt),y=U+_}var ct,gt,vt;if(U===e.getPixelForValue(s)){const Z=K(_)*e.getLineWidthForValue(s)/2;U+=Z,_-=Z}return{size:_,base:U,head:y,center:y+_/2}}_calculateBarIndexPixels(t,e){const i=e.scale,r=this.options,o=r.skipNull,s=E(r.maxBarThickness,1/0);let a,l;if(e.grouped){const c=o?this._getStackCount(t):e.stackCount,y="flex"===r.barThickness?function(k,N,C,H){const U=N.pixels,Z=U[k];let J=k>
vendor: 4,637 bytes, line 1
10?U[k-1]:null,nt=k<U.length-1?U[k+1]:null;const ot=C.categoryPercentage;null===J&&(J=Z-(null===nt?N.end-N.start:nt-Z)),null===nt&&(nt=Z+Z-J);const ct=Z-(Z-Math.min(J,nt))/2*ot;return{chunk:Math.abs(nt-J)/2*ot/H,ratio:C.barPercentage,start:ct}}(t,e,r,c):function(k,N,C,H){const U=C.barThickness;let Z,J;return T(U)?(Z=N.min*C.categoryPercentage,J=C.barPercentage):(Z=U*H,J=1),{chunk:Z/H,ratio:J,start:N.pixels[k]-Z/2}}(t,e,r,c),_=this._getStackIndex(this.index,this._cachedMeta.stack,o?t:void 0);a=y.start+y.chunk*_+y.chunk/2,l=Math.min(s,y.chunk*y.ratio)}else a=i.getPixelForValue(this.getParsed(t)[i.axis],t),l=Math.min(s,e.min*e.ratio);return{base:a-l/2,head:a+l/2,center:a,size:l}}draw(){const t=this._cachedMeta,e=t.vScale,i=t.data,r=i.length;let o=0;for(;o<r;++o)null!==this.getParsed(o)[e.axis]&&i[o].draw(this._ctx)}}Sn.id="bar",Sn.defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}},Sn.overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};class An extends ie{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,e,i,r){const o=super.parsePrimitiveData(t,e,i,r);for(let s=0;s<o.length;s++)o[s]._custom=this.resolveDataElementOptions(s+i).radius;return o}parseArrayData(t,e,i,r){const o=super.parseArrayData(t,e,i,r);for(let s=0;s<o.length;s++)o[s]._custom=E(e[i+s][2],this.resolveDataElementOptions(s+i).radius);return o}parseObjectData(t,e,i,r){const o=super.parseObjectData(t,e,i,r);for(let s=0;s<o.length;s++){const a=e[i+s];o[s]._custom=E(a&&a.r&&+a.r,this.resolveDataElementOptions(s+i).radius)}return o}getMaxOverflow(){const t=this._cachedMeta.data;let e=0;for(let i=t.length-1;i>=0;--i)e=Math.max(e,t[i].size(this.resolveDataElementOptions(i))/2);return e>0&&e}getLabelAndValue(t){const e=this._cachedMeta,{xScale:i,yScale:r}=e,o=this.getParsed(t),s=i.getLabelForValue(o.x),a=r.getLabelForValue(o.y),l=o._custom;return{label:e.label,value:"("+s+", "+a+(l?", "+l:"")+")"}}update(t){const e=this._cachedMeta.data;this.updateElements(e,0,e.length,t)}updateElements(t,e,i,r){const o="reset"===r,{iScale:s,vScale:a}=this._cachedMeta,{sharedOptions:l,includeOptions:c}=this._getSharedOptions(e,r),y=s.axis,_=a.axis;for(let k=e;k<e+i;k++){const N=t[k],C=!o&&this.getParsed(k),H={},U=H[y]=o?s.getPixelForDecimal(.5):s.getPixelForValue(C[y]),Z=H[_]=o?a.getBasePixel():a.getPixelForValue(C[_]);H.skip=isNaN(U)||isNaN(Z),c&&(H.options=l||this.resolveDataElementOptions(k,N.active?"active":r),o&&(H.options.radius=0)),this.updateElement(N,k,H,r)}}resolveDataElementOptions(t,e){const i=this.getParsed(t);let r=super.resolveDataElementOptions(t,e);r.$shared&&(r=Object.assign({},r,{$shared:!1}));const o=r.radius;return"active"!==e&&(r.radius=0),r.radius+=E(i&&i._custom,o),r}}An.id="bubble",An.defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}},An.overrides={scales:{x:{type:"linear"},y:{type:"linear"}},plugins:{tooltip:{callbacks:{title:()=>""}}}};class qe extends ie{constructor(t,e){super(t,e),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,e){const i=this.getDataset().data,r=this._cachedMeta;if(!1===this._parsing)r._parsed=i;else{let o,s,a=l=>+i[l];if(P(i[t])){const{key:l="value"}=this._parsing;a=c=>+z(i[c],l)}for(o=t,s=t+e;o<s;++o)r._parsed[o]=a(o)}}_getRotation(){return lt(this.options.rotation-90)}_getCircumference(){return lt(this.options.circumference)}_getRotationExtents(){let t=V,e=-V;for(let i=0;i<this.chart.data.datasets.length;++i)if(this.chart.isDatasetVisible(i)){const r=this.chart.getDatasetMeta(i).controller,o=r._getRotation(),s=r._getCircumference();t=Math.min(t,o),e=Math.max(e,o+s)}return{rotation:t,circumference:e-t}}update(t){const e=this.chart,{chartArea:i}=e,r=this._cachedMeta,o=r.data,s=this.getMaxBorderWidth()+this.getMaxOffset(o)+this.options.spacing,a=Math.max((Math.min(i.width,i.height)-s)/2,0),l=Math.min(x(this.options.cutout,a),1),c=this._getRingWeight(this.index),{circumference:y,rotation:_}=this._getRotationExtents(),{ratioX:k,ratioY:N,offsetX:C,offsetY:H}=function(ct,gt,vt){let wt=1,Ot=1,bt=0,Et=0;if(gt<V){const St=ct,Tt=St+gt,yt=Math.cos(St),At=Math.sin(St),Ct=Math.cos(Tt),Ft=Math.sin(Tt),Vt=(Ne,de,pe)=>Wt(Ne,St,Tt,!0)?1:Math.max(de,de*vt,pe,pe*vt),$t=(Ne,de,pe)=>Wt(Ne,St,Tt,!0)?-1:Math.min(de,de*vt,pe,pe*vt),te=Vt(0,yt,Ct),ee=Vt(dt,At,Ft),oe=$t(j,yt,Ct),fe=$t(j+dt,At,Ft);
vendor: 4,744 bytes, line 1
1wt=(te-oe)/2,Ot=(ee-fe)/2,bt=-(te+oe)/2,Et=-(ee+fe)/2}return{ratioX:wt,ratioY:Ot,offsetX:bt,offsetY:Et}}(_,y,l),J=Math.max(Math.min((i.width-s)/k,(i.height-s)/N)/2,0),nt=g(this.options.radius,J),ot=(nt-Math.max(nt*l,0))/this._getVisibleDatasetWeightTotal();this.offsetX=C*nt,this.offsetY=H*nt,r.total=this.calculateTotal(),this.outerRadius=nt-ot*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-ot*c,0),this.updateElements(o,0,o.length,t)}_circumference(t,e){const i=this.options,r=this._cachedMeta,o=this._getCircumference();return e&&i.animation.animateRotate||!this.chart.getDataVisibility(t)||null===r._parsed[t]||r.data[t].hidden?0:this.calculateCircumference(r._parsed[t]*o/V)}updateElements(t,e,i,r){const o="reset"===r,s=this.chart,a=s.chartArea,c=(a.left+a.right)/2,y=(a.top+a.bottom)/2,_=o&&s.options.animation.animateScale,k=_?0:this.innerRadius,N=_?0:this.outerRadius,{sharedOptions:C,includeOptions:H}=this._getSharedOptions(e,r);let U,Z=this._getRotation();for(U=0;U<e;++U)Z+=this._circumference(U,o);for(U=e;U<e+i;++U){const J=this._circumference(U,o),nt=t[U],ot={x:c+this.offsetX,y:y+this.offsetY,startAngle:Z,endAngle:Z+J,circumference:J,outerRadius:N,innerRadius:k};H&&(ot.options=C||this.resolveDataElementOptions(U,nt.active?"active":r)),Z+=J,this.updateElement(nt,U,ot,r)}}calculateTotal(){const t=this._cachedMeta,e=t.data;let i,r=0;for(i=0;i<e.length;i++){const o=t._parsed[i];null===o||isNaN(o)||!this.chart.getDataVisibility(i)||e[i].hidden||(r+=Math.abs(o))}return r}calculateCircumference(t){const e=this._cachedMeta.total;return e>0&&!isNaN(t)?V*(Math.abs(t)/e):0}getLabelAndValue(t){const i=this.chart,r=i.data.labels||[],o=je(this._cachedMeta._parsed[t],i.options.locale);return{label:r[t]||"",value:o}}getMaxBorderWidth(t){let e=0;const i=this.chart;let r,o,s,a,l;if(!t)for(r=0,o=i.data.datasets.length;r<o;++r)if(i.isDatasetVisible(r)){s=i.getDatasetMeta(r),t=s.data,a=s.controller;break}if(!t)return 0;for(r=0,o=t.length;r<o;++r)l=a.resolveDataElementOptions(r),"inner"!==l.borderAlign&&(e=Math.max(e,l.borderWidth||0,l.hoverBorderWidth||0));return e}getMaxOffset(t){let e=0;for(let i=0,r=t.length;i<r;++i){const o=this.resolveDataElementOptions(i);e=Math.max(e,o.offset||0,o.hoverOffset||0)}return e}_getRingWeightOffset(t){let e=0;for(let i=0;i<t;++i)this.chart.isDatasetVisible(i)&&(e+=this._getRingWeight(i));return e}_getRingWeight(t){return Math.max(E(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}qe.id="doughnut",qe.defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"},qe.descriptors={_scriptable:n=>"spacing"!==n,_indexable:n=>"spacing"!==n},qe.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(n){const t=n.data;if(t.labels.length&&t.datasets.length){const{labels:{pointStyle:e}}=n.legend.options;return t.labels.map((i,r)=>{const o=n.getDatasetMeta(0).controller.getStyle(r);return{text:i,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,lineWidth:o.borderWidth,pointStyle:e,hidden:!n.getDataVisibility(r),index:r}})}return[]}},onClick(n,t,e){e.chart.toggleDataVisibility(t.index),e.chart.update()}},tooltip:{callbacks:{title:()=>"",label(n){let t=n.label;const e=": "+n.formattedValue;return q(t)?(t=t.slice(),t[0]+=e):t+=e,t}}}}};class Tn extends ie{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const e=this._cachedMeta,{dataset:i,data:r=[],_dataset:o}=e,s=this.chart._animationsDisabled;let{start:a,count:l}=zn(e,r,s);this._drawStart=a,this._drawCount=l,Hn(e)&&(a=0,l=r.length),i._chart=this.chart,i._datasetIndex=this.index,i._decimated=!!o._decimated,i.points=r;const c=this.resolveDatasetElementOptions(t);this.options.showLine||(c.borderWidth=0),c.segment=this.options.segment,this.updateElement(i,void 0,{animated:!s,options:c},t),this.updateElements(r,a,l,t)}updateElements(t,e,i,r){const o="reset"===r,{iScale:s,vScale:a,_stacked:l,_dataset:c}=this._cachedMeta,{sharedOptions:y,includeOptions:_}=this._getSharedOptions(e,r),k=s.axis,N=a.axis,{spanGaps:C,segment:H}=this.options,U=it(C)?C:Number.POSITIVE_INFINITY,Z=this.chart._animationsDisabled||o||"none"===r;let J=e>0&&this.getParsed(e-1);for(let nt=e;nt<e+i;++nt){const ot=t[nt],ct=this.getParsed(nt),gt=Z?ot:{},vt=T(ct[N]),wt=gt[k]=s.getPixelForValue(ct[k],nt),Ot=gt[N]=o||vt?a.getBasePixel():a.getPixelForValue(l?this.applyStack(a,ct,l):ct[N],nt);
1gt.skip=isNaN(wt)||isNaN(Ot)||vt,gt.stop=nt>0&&Math.abs(ct[k]-J[k])>U,H&&(gt.parsed=ct,gt.raw=c.data[nt]),_&&(gt.options=y||this.resolveDataElementOptions(nt,ot.active?"active":r)),Z||this.updateElement(ot,nt,gt,r),J=ct}}getMaxOverflow(){const t=this._cachedMeta,e=t.dataset,i=e.options&&e.options.borderWidth||0,r=t.data||[];if(!r.length)return i;const o=r[0].size(this.resolveDataElementOptions(0)),s=r[r.length-1].size(this.resolveDataElementOptions(r.length-1));return Math.max(i,o,s)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}Tn.id="line",Tn.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1},Tn.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};class Pn extends ie{constructor(t,e){super(t,e),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const i=this.chart,r=i.data.labels||[],o=je(this._cachedMeta._parsed[t].r,i.options.locale);return{label:r[t]||"",value:o}}parseObjectData(t,e,i,r){return ai.bind(this)(t,e,i,r)}update(t){const e=this._cachedMeta.data;this._updateRadius(),this.updateElements(e,0,e.length,t)}getMinMax(){const e={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return this._cachedMeta.data.forEach((i,r)=>{const o=this.getParsed(r).r;!isNaN(o)&&this.chart.getDataVisibility(r)&&(o<e.min&&(e.min=o),o>e.max&&(e.max=o))}),e}_updateRadius(){const t=this.chart,e=t.chartArea,i=t.options,r=Math.min(e.right-e.left,e.bottom-e.top),o=Math.max(r/2,0),s=(o-Math.max(i.cutoutPercentage?o/100*i.cutoutPercentage:1,0))/t.getVisibleDatasetCount();this.outerRadius=o-s*this.index,this.innerRadius=this.outerRadius-s}updateElements(t,e,i,r){const o="reset"===r,s=this.chart,a=s.options.animation,l=this._cachedMeta.rScale,c=l.xCenter,y=l.yCenter,_=l.getIndexAngle(0)-.5*j;let k,N=_;const C=360/this.countVisibleElements();for(k=0;k<e;++k)N+=this._computeAngle(k,r,C);for(k=e;k<e+i;k++){const H=t[k];let U=N,Z=N+this._computeAngle(k,r,C),J=s.getDataVisibility(k)?l.getDistanceFromCenterForValue(this.getParsed(k).r):0;N=Z,o&&(a.animateScale&&(J=0),a.animateRotate&&(U=Z=_));const nt={x:c,y,innerRadius:0,outerRadius:J,startAngle:U,endAngle:Z,options:this.resolveDataElementOptions(k,H.active?"active":r)};this.updateElement(H,k,nt,r)}}countVisibleElements(){let e=0;return this._cachedMeta.data.forEach((i,r)=>{!isNaN(this.getParsed(r).r)&&this.chart.getDataVisibility(r)&&e++}),e}_computeAngle(t,e,i){return this.chart.getDataVisibility(t)?lt(this.resolveDataElementOptions(t,e).angle||i):0}}Pn.id="polarArea",Pn.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0},Pn.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(n){const t=n.data;if(t.labels.length&&t.datasets.length){const{labels:{pointStyle:e}}=n.legend.options;return t.labels.map((i,r)=>{const o=n.getDatasetMeta(0).controller.getStyle(r);return{text:i,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,lineWidth:o.borderWidth,pointStyle:e,hidden:!n.getDataVisibility(r),index:r}})}return[]}},onClick(n,t,e){e.chart.toggleDataVisibility(t.index),e.chart.update()}},tooltip:{callbacks:{title:()=>"",label:n=>n.chart.data.labels[n.dataIndex]+": "+n.formattedValue}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};class ki extends qe{}ki.id="pie",ki.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"};class Mn extends ie{getLabelAndValue(t){const e=this._cachedMeta.vScale,i=this.getParsed(t);return{label:e.getLabels()[t],value:""+e.getLabelForValue(i[e.axis])}}parseObjectData(t,e,i,r){return ai.bind(this)(t,e,i,r)}update(t){const e=this._cachedMeta,i=e.dataset,r=e.data||[],o=e.iScale.getLabels();if(i.points=r,"resize"!==t){const s=this.resolveDatasetElementOptions(t);this.options.showLine||(s.borderWidth=0),this.updateElement(i,void 0,{_loop:!0,_fullLoop:o.length===r.length,options:s},t)}this.updateElements(r,0,r.length,t)}updateElements(t,e,i,r){const o=this._cachedMeta.rScale,s="reset"===r;for(let a=e;a<e+i;a++){const l=t[a],c=this.resolveDataElementOptions(a,l.active?"active":r),y=o.getPointPositionForValue(a,this.getParsed(a).r),_=s?o.xCenter:y.x,k=s?o.yCenter:y.y,N={x:_,y:k,angle:y.angle,skip:isNaN(_)||isNaN(k),options:c};this.updateElement(l,a,N,r)}}}Mn.id="radar",Mn.defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}},Mn.overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};class Nn extends ie{update(t){const e=this._cachedMeta,{data:i=[]}=e,r=this.chart._animationsDisabled;let{start:o,count:s}=zn(e,i,r);if(this._drawStart=o,this._drawCount=s,Hn(e)&&(o=0,s=i.length),this.options.showLine){const{dataset:a,_dataset:l}=e;a._chart=this.chart,a._datasetIndex=this.index,a._decimated=!!l._decimated,a.points=i;const c=this.resolveDatasetElementOptions(t);c.segment=this.options.segment,this.updateElement(a,void 0,{animated:!r,options:c},t)}this.updateElements(i,o,s,t)}
1addElements(){const{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=se.getElement("line")),super.addElements()}updateElements(t,e,i,r){const o="reset"===r,{iScale:s,vScale:a,_stacked:l,_dataset:c}=this._cachedMeta,y=this.resolveDataElementOptions(e,r),_=this.getSharedOptions(y),k=this.includeOptions(r,_),N=s.axis,C=a.axis,{spanGaps:H,segment:U}=this.options,Z=it(H)?H:Number.POSITIVE_INFINITY,J=this.chart._animationsDisabled||o||"none"===r;let nt=e>0&&this.getParsed(e-1);for(let ot=e;ot<e+i;++ot){const ct=t[ot],gt=this.getParsed(ot),vt=J?ct:{},wt=T(gt[C]),Ot=vt[N]=s.getPixelForValue(gt[N],ot),bt=vt[C]=o||wt?a.getBasePixel():a.getPixelForValue(l?this.applyStack(a,gt,l):gt[C],ot);vt.skip=isNaN(Ot)||isNaN(bt)||wt,vt.stop=ot>0&&Math.abs(gt[N]-nt[N])>Z,U&&(vt.parsed=gt,vt.raw=c.data[ot]),k&&(vt.options=_||this.resolveDataElementOptions(ot,ct.active?"active":r)),J||this.updateElement(ct,ot,vt,r),nt=gt}this.updateSharedOptions(_,r,y)}getMaxOverflow(){const t=this._cachedMeta,e=t.data||[];if(!this.options.showLine){let a=0;for(let l=e.length-1;l>=0;--l)a=Math.max(a,e[l].size(this.resolveDataElementOptions(l))/2);return a>0&&a}const i=t.dataset,r=i.options&&i.options.borderWidth||0;if(!e.length)return r;const o=e[0].size(this.resolveDataElementOptions(0)),s=e[e.length-1].size(this.resolveDataElementOptions(e.length-1));return Math.max(r,o,s)/2}}Nn.id="scatter",Nn.defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1},Nn.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title:()=>"",label:n=>"("+n.label+", "+n.formattedValue+")"}}},scales:{x:{type:"linear"},y:{type:"linear"}}};var fo=Object.freeze({__proto__:null,BarController:Sn,BubbleController:An,DoughnutController:qe,LineController:Tn,PolarAreaController:Pn,PieController:ki,RadarController:Mn,ScatterController:Nn});function po(n,t,e){const{startAngle:i,pixelMargin:r,x:o,y:s,outerRadius:a,innerRadius:l}=t;let c=r/a;n.beginPath(),n.arc(o,s,a,i-c,e+c),l>r?(c=r/l,n.arc(o,s,l,e+c,i-c,!0)):n.arc(o,s,r,e+dt,i-dt),n.closePath(),n.clip()}function Fe(n,t,e,i){return{x:e+n*Math.cos(t),y:i+n*Math.sin(t)}}function Ei(n,t,e,i,r,o){const{x:s,y:a,startAngle:l,pixelMargin:c,innerRadius:y}=t,_=Math.max(t.outerRadius+i+e-c,0),k=y>0?y+i+e+c:0;let N=0;const C=r-l;if(i){const yt=((y>0?y-i:0)+(_>0?_-i:0))/2;N=(C-(0!==yt?C*yt/(yt+i):C))/2}const H=(C-Math.max(.001,C*_-e/j)/_)/2,U=l+H+N,Z=r-H-N,{outerStart:J,outerEnd:nt,innerStart:ot,innerEnd:ct}=function qs(n,t,e,i){const r=bn(n.options.borderRadius,["outerStart","outerEnd","innerStart","innerEnd"]),o=(e-t)/2,s=Math.min(o,i*t/2),a=l=>{const c=(e-Math.min(o,l))*i/2;return It(l,0,Math.min(o,c))};return{outerStart:a(r.outerStart),outerEnd:a(r.outerEnd),innerStart:It(r.innerStart,0,s),innerEnd:It(r.innerEnd,0,s)}}(t,k,_,Z-U),gt=_-J,vt=_-nt,wt=U+J/gt,Ot=Z-nt/vt,bt=k+ot,Et=k+ct,St=U+ot/bt,Tt=Z-ct/Et;if(n.beginPath(),o){if(n.arc(s,a,_,wt,Ot),nt>0){const Ct=Fe(vt,Ot,s,a);n.arc(Ct.x,Ct.y,nt,Ot,Z+dt)}const yt=Fe(Et,Z,s,a);if(n.lineTo(yt.x,yt.y),ct>0){const Ct=Fe(Et,Tt,s,a);n.arc(Ct.x,Ct.y,ct,Z+dt,Tt+Math.PI)}if(n.arc(s,a,k,Z-ct/k,U+ot/k,!0),ot>0){const Ct=Fe(bt,St,s,a);n.arc(Ct.x,Ct.y,ot,St+Math.PI,U-dt)}const At=Fe(gt,U,s,a);if(n.lineTo(At.x,At.y),J>0){const Ct=Fe(gt,wt,s,a);n.arc(Ct.x,Ct.y,J,U-dt,wt)}}else{n.moveTo(s,a);const yt=Math.cos(wt)*_+s,At=Math.sin(wt)*_+a;n.lineTo(yt,At);const Ct=Math.cos(Ot)*_+s,Ft=Math.sin(Ot)*_+a;n.lineTo(Ct,Ft)}n.closePath()}class Ln extends re{constructor(t){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,t&&Object.assign(this,t)}inRange(t,e,i){const r=this.getProps(["x","y"],i),{angle:o,distance:s}=Pt(r,{x:t,y:e}),{startAngle:a,endAngle:l,innerRadius:c,outerRadius:y,circumference:_}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i),k=this.options.spacing/2,N=E(_,l-a)>=V||Wt(o,a,l),C=ht(s,c+k,y+k);return N&&C}getCenterPoint(t){const{x:e,y:i,startAngle:r,endAngle:o,innerRadius:s,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],t),{offset:l,spacing:c}=this.options,y=(r+o)/2,_=(s+a+c+l)/2;return{x:e+Math.cos(y)*_,y:i+Math.sin(y)*_}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:e,circumference:i}=this,r=(e.offset||0)/2,o=(e.spacing||0)/2,s=e.circular;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=i>V?Math.floor(i/V):0,0===i||this.innerRadius<0||this.outerRadius<0)return;t.save();let a=0;if(r){a=r/2;const c=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(c)*a,Math.sin(c)*a),this.circumference>=j&&(a=r)}t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor,function Fs(n,t,e,i,r,o){const{options:s}=t,{borderWidth:a,borderJoinStyle:l}=s,c="inner"===s.borderAlign;a&&(c?(n.lineWidth=2*a,n.lineJoin=l||"round"):(n.lineWidth=a,n.lineJoin=l||"bevel"),t.fullCircles&&function(y,_,k){const{x:N,y:C,startAngle:H,pixelMargin:U,fullCircles:Z}=_,J=Math.max(_.outerRadius-U,0),nt=_.innerRadius+U;let ot;
1for(k&&po(y,_,H+V),y.beginPath(),y.arc(N,C,nt,H+V,H,!0),ot=0;ot<Z;++ot)y.stroke();for(y.beginPath(),y.arc(N,C,J,H,H+V),ot=0;ot<Z;++ot)y.stroke()}(n,t,c),c&&po(n,t,r),Ei(n,t,e,i,r,o),n.stroke())}(t,this,a,o,function(c,y,_,k,N){const{fullCircles:C,startAngle:H,circumference:U}=y;let Z=y.endAngle;if(C){Ei(c,y,_,k,H+V,N);for(let J=0;J<C;++J)c.fill();isNaN(U)||(Z=H+U%V,U%V==0&&(Z+=V))}return Ei(c,y,_,k,Z,N),c.fill(),Z}(t,this,a,o,s),s),t.restore()}}function go(n,t,e=t){n.lineCap=E(e.borderCapStyle,t.borderCapStyle),n.setLineDash(E(e.borderDash,t.borderDash)),n.lineDashOffset=E(e.borderDashOffset,t.borderDashOffset),n.lineJoin=E(e.borderJoinStyle,t.borderJoinStyle),n.lineWidth=E(e.borderWidth,t.borderWidth),n.strokeStyle=E(e.borderColor,t.borderColor)}function zs(n,t,e){n.lineTo(e.x,e.y)}function mo(n,t,e={}){const i=n.length,{start:r=0,end:o=i-1}=e,{start:s,end:a}=t,l=Math.max(r,s),c=Math.min(o,a);return{count:i,start:l,loop:t.loop,ilen:c<l&&!(r<s&&o<s||r>a&&o>a)?i+c-l:c-l}}function Hs(n,t,e,i){const{points:r,options:o}=t,{count:s,start:a,loop:l,ilen:c}=mo(r,e,i),y=(U=o).stepped?Ji:U.tension||"monotone"===U.cubicInterpolationMode?tr:zs;var U;let _,k,N,{move:C=!0,reverse:H}=i||{};for(_=0;_<=c;++_)k=r[(a+(H?c-_:_))%s],k.skip||(C?(n.moveTo(k.x,k.y),C=!1):y(n,N,k,H,o.stepped),N=k);return l&&(k=r[(a+(H?c:0))%s],y(n,N,k,H,o.stepped)),!!l}function Vs(n,t,e,i){const r=t.points,{count:o,start:s,ilen:a}=mo(r,e,i),{move:l=!0,reverse:c}=i||{};let y,_,k,N,C,H,U=0,Z=0;const J=ot=>(s+(c?a-ot:ot))%o,nt=()=>{N!==C&&(n.lineTo(U,C),n.lineTo(U,N),n.lineTo(U,H))};for(l&&(_=r[J(0)],n.moveTo(_.x,_.y)),y=0;y<=a;++y){if(_=r[J(y)],_.skip)continue;const ot=_.x,ct=_.y,gt=0|ot;gt===k?(ct<N?N=ct:ct>C&&(C=ct),U=(Z*U+ot)/++Z):(nt(),n.lineTo(ot,ct),k=gt,Z=0,N=C=ct),H=ct}nt()}function Si(n){const t=n.options;return n._decimated||n._loop||t.tension||"monotone"===t.cubicInterpolationMode||t.stepped||t.borderDash&&t.borderDash.length?Hs:Vs}Ln.id="arc",Ln.defaults={borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0},Ln.defaultRoutes={backgroundColor:"backgroundColor"};const Ws="function"==typeof Path2D;class ke extends re{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,e){const i=this.options;!i.tension&&"monotone"!==i.cubicInterpolationMode||i.stepped||this._pointsUpdated||(ur(this._points,i,t,i.spanGaps?this._loop:this._fullLoop,e),this._pointsUpdated=!0)}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=br(this,this.options.segment))}first(){const t=this.segments;return t.length&&this.points[t[0].start]}last(){const t=this.segments,i=t.length;return i&&this.points[t[i-1].end]}interpolate(t,e){const i=this.options,r=t[e],o=this.points,s=fi(this,{property:e,start:r,end:r});if(!s.length)return;const a=[],l=(_=i).stepped?fr:_.tension||"monotone"===_.cubicInterpolationMode?dr:_e;var _;let c,y;for(c=0,y=s.length;c<y;++c){const{start:_,end:k}=s[c],N=o[_],C=o[k];if(N===C){a.push(N);continue}const H=l(N,C,Math.abs((r-N[e])/(C[e]-N[e])),i.stepped);H[e]=t[e],a.push(H)}return 1===a.length?a[0]:a}pathSegment(t,e,i){return Si(this)(t,this,e,i)}path(t,e,i){const r=this.segments,o=Si(this);let s=this._loop;e=e||0,i=i||this.points.length-e;for(const a of r)s&=o(t,this,a,{start:e,end:e+i-1});return!!s}draw(t,e,i,r){(this.points||[]).length&&(this.options||{}).borderWidth&&(t.save(),function Us(n,t,e,i){Ws&&!t.options.segment?function(r,o,s,a){let l=o._path;l||(l=o._path=new Path2D,o.path(l,s,a)&&l.closePath()),go(r,o.options),r.stroke(l)}(n,t,e,i):function(r,o,s,a){const{segments:l,options:c}=o,y=Si(o);for(const _ of l)go(r,c,_.style),r.beginPath(),y(r,o,_,{start:s,end:s+a-1})&&r.closePath(),r.stroke()}(n,t,e,i)}
vendor: 10,404 bytes, line 1
1(t,this,i,r),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function vo(n,t,e,i){const r=n.options,{[e]:o}=n.getProps([e],i);return Math.abs(t-o)<r.radius+r.hitRadius}ke.id="line",ke.defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0},ke.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"},ke.descriptors={_scriptable:!0,_indexable:n=>"borderDash"!==n&&"fill"!==n};class Rn extends re{constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,e,i){const r=this.options,{x:o,y:s}=this.getProps(["x","y"],i);return Math.pow(t-o,2)+Math.pow(e-s,2)<Math.pow(r.hitRadius+r.radius,2)}inXRange(t,e){return vo(this,t,"x",e)}inYRange(t,e){return vo(this,t,"y",e)}getCenterPoint(t){const{x:e,y:i}=this.getProps(["x","y"],t);return{x:e,y:i}}size(t){let e=(t=t||this.options||{}).radius||0;return e=Math.max(e,e&&t.hoverRadius||0),2*(e+(e&&t.borderWidth||0))}draw(t,e){const i=this.options;this.skip||i.radius<.1||!Re(this,e,this.size(i)/2)||(t.strokeStyle=i.borderColor,t.lineWidth=i.borderWidth,t.fillStyle=i.backgroundColor,gn(t,i,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}}function yo(n,t){const{x:e,y:i,base:r,width:o,height:s}=n.getProps(["x","y","base","width","height"],t);let a,l,c,y,_;return n.horizontal?(_=s/2,a=Math.min(e,r),l=Math.max(e,r),c=i-_,y=i+_):(_=o/2,a=e-_,l=e+_,c=Math.min(i,r),y=Math.max(i,r)),{left:a,top:c,right:l,bottom:y}}function Ee(n,t,e,i){return n?0:It(t,e,i)}function Ai(n,t,e,i){const r=null===t,o=null===e,s=n&&!(r&&o)&&yo(n,i);return s&&(r||ht(t,s.left,s.right))&&(o||ht(e,s.top,s.bottom))}function Ks(n,t){n.rect(t.x,t.y,t.w,t.h)}function Ti(n,t,e={}){const i=n.x!==e.x?-t:0,r=n.y!==e.y?-t:0;return{x:n.x+i,y:n.y+r,w:n.w+((n.x+n.w!==e.x+e.w?t:0)-i),h:n.h+((n.y+n.h!==e.y+e.h?t:0)-r),radius:n.radius}}Rn.id="point",Rn.defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0},Rn.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};class Dn extends re{constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:e,options:{borderColor:i,backgroundColor:r}}=this,{inner:o,outer:s}=function $s(n){const t=yo(n),e=t.right-t.left,i=t.bottom-t.top,r=function(s,a,l){const y=s.borderSkipped,_=li(s.options.borderWidth);return{t:Ee(y.top,_.top,0,l),r:Ee(y.right,_.right,0,a),b:Ee(y.bottom,_.bottom,0,l),l:Ee(y.left,_.left,0,a)}}(n,e/2,i/2),o=function(s,a,l){const{enableBorderRadius:c}=s.getProps(["enableBorderRadius"]),y=s.options.borderRadius,_=xe(y),k=Math.min(a,l),N=s.borderSkipped,C=c||P(y);return{topLeft:Ee(!C||N.top||N.left,_.topLeft,0,k),topRight:Ee(!C||N.top||N.right,_.topRight,0,k),bottomLeft:Ee(!C||N.bottom||N.left,_.bottomLeft,0,k),bottomRight:Ee(!C||N.bottom||N.right,_.bottomRight,0,k)}}(n,e/2,i/2);return{outer:{x:t.left,y:t.top,w:e,h:i,radius:o},inner:{x:t.left+r.l,y:t.top+r.t,w:e-r.l-r.r,h:i-r.t-r.b,radius:{topLeft:Math.max(0,o.topLeft-Math.max(r.t,r.l)),topRight:Math.max(0,o.topRight-Math.max(r.t,r.r)),bottomLeft:Math.max(0,o.bottomLeft-Math.max(r.b,r.l)),bottomRight:Math.max(0,o.bottomRight-Math.max(r.b,r.r))}}}}(this),a=(l=s.radius).topLeft||l.topRight||l.bottomLeft||l.bottomRight?De:Ks;var l;t.save(),s.w===o.w&&s.h===o.h||(t.beginPath(),a(t,Ti(s,e,o)),t.clip(),a(t,Ti(o,-e,s)),t.fillStyle=i,t.fill("evenodd")),t.beginPath(),a(t,Ti(o,e)),t.fillStyle=r,t.fill(),t.restore()}inRange(t,e,i){return Ai(this,t,e,i)}inXRange(t,e){return Ai(this,t,null,e)}inYRange(t,e){return Ai(this,null,t,e)}getCenterPoint(t){const{x:e,y:i,base:r,horizontal:o}=this.getProps(["x","y","base","horizontal"],t);return{x:o?(e+r)/2:e,y:o?i:(i+r)/2}}getRange(t){return"x"===t?this.width/2:this.height/2}}Dn.id="bar",Dn.defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0},Dn.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};var Pi=Object.freeze({__proto__:null,ArcElement:Ln,LineElement:ke,PointElement:Rn,BarElement:Dn});function bo(n){if(n._decimated){const t=n._data;delete n._decimated,delete n._data,Object.defineProperty(n,"data",{value:t})}}function _o(n){n.data.datasets.forEach(t=>{bo(t)})}var Ys={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(n,t,e)=>{if(!e.enabled)return void _o(n);const i=n.width;n.data.datasets.forEach((r,o)=>{const{_data:s,indexAxis:a}=r,l=n.getDatasetMeta(o),c=s||r.data;if("y"===Be([a,n.options.indexAxis])||!l.controller.supportsDecimation)return;const y=n.scales[l.xAxisID];if("linear"!==y.type&&"time"!==y.type||n.options.parsing)return;let N,{start:_,count:k}=function(C,H){const U=H.length;let Z,J=0;const{iScale:nt}=C,{min:ot,max:ct,minDefined:gt,maxDefined:vt}=nt.getUserBounds();return gt&&(J=It(xt(H,nt.axis,ot).lo,0,U-1)),Z=vt?It(xt(H,nt.axis,ct).hi+1,J,U)-J:U-J,{start:J,count:Z}}(l,c);if(k<=(e.threshold||4*i))bo(r);else{switch(T(s)&&(r._data=c,delete r.data,Object.defineProperty(r,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(C){this._data=C}})),e.algorithm){case"lttb":N=function(C,H,U,Z,J){const nt=J.samples||Z;if(nt>=U)return C.slice(H,H+U);const ot=[],ct=(U-2)/(nt-2);let gt=0;const vt=H+U-1;let wt,Ot,bt,Et,St,Tt=H;for(ot[gt++]=C[Tt],wt=0;wt<nt-2;wt++){let yt,At=0,Ct=0;const Ft=Math.floor((wt+1)*ct)+1+H,Vt=Math.min(Math.floor((wt+2)*ct)+1,U)+H,$t=Vt-Ft;for(yt=Ft;yt<Vt;yt++)At+=C[yt].x,Ct+=C[yt].y;At/=$t,Ct/=$t;const te=Math.floor(wt*ct)+1+H,ee=Math.min(Math.floor((wt+1)*ct)+1,U)+H,{x:oe,y:fe}=C[Tt];for(bt=Et=-1,yt=te;yt<ee;yt++)Et=.5*Math.abs((oe-At)*(C[yt].y-fe)-(oe-C[yt].x)*(Ct-fe)),Et>bt&&(bt=Et,Ot=C[yt],St=yt);ot[gt++]=Ot,Tt=St}return ot[gt++]=C[vt],ot}(c,_,k,i,e);break;case"min-max":N=function(C,H,U,Z){let J,nt,ot,ct,gt,vt,wt,Ot,bt,Et,St=0,Tt=0;const yt=[],Ct=C[H].x,Ft=C[H+U-1].x-Ct;for(J=H;J<H+U;++J){nt=C[J],ot=(nt.x-Ct)/Ft*Z,ct=nt.y;const Vt=0|ot;if(Vt===gt)ct<bt?(bt=ct,vt=J):ct>Et&&(Et=ct,wt=J),St=(Tt*St+nt.x)/++Tt;else{const $t=J-1;if(!T(vt)&&!T(wt)){const te=Math.min(vt,wt),ee=Math.max(vt,wt);te!==Ot&&te!==$t&&yt.push({...C[te],x:St}),ee!==Ot&&ee!==$t&&yt.push({...C[ee],x:St})}J>0&&$t!==Ot&&yt.push(C[$t]),yt.push(nt),gt=Vt,Tt=0,bt=Et=ct,vt=wt=Ot=J}}return yt}(c,_,k,i);break;default:throw new Error(`Unsupported decimation algorithm '${e.algorithm}'`)}r._decimated=N}})},destroy(n){_o(n)}};function Mi(n,t,e,i){if(i)return;let r=t[n],o=e[n];return"angle"===n&&(r=Nt(r),o=Nt(o)),{property:n,start:r,end:o}}function Ni(n,t,e){for(;t>n;t--){const i=e[t];if(!isNaN(i.x)&&!isNaN(i.y))break}return t}function xo(n,t,e,i){return n&&t?i(n[e],t[e]):n?n[e]:t?t[e]:0}function Oo(n,t){let e=[],i=!1;return q(n)?(i=!0,e=n):e=function(r,o){const{x:s=null,y:a=null}=r||{},l=o.points,c=[];return o.segments.forEach(({start:y,end:_})=>{_=Ni(y,_,l);const k=l[y],N=l[_];null!==a?(c.push({x:k.x,y:a}),c.push({x:N.x,y:a})):null!==s&&(c.push({x:s,y:k.y}),c.push({x:s,y:N.y}))}),c}(n,t),e.length?new ke({points:e,options:{tension:0},_loop:i,_fullLoop:i}):null}function wo(n){return n&&!1!==n.fill}function Gs(n,t,e){let i=n[t].fill;const r=[t];let o;if(!e)return i;for(;!1!==i&&-1===r.indexOf(i);){if(!R(i))return i;if(o=n[i],!o)return!1;if(o.visible)return i;r.push(i),i=o.fill}return!1}function Zs(n,t,e){const i=function(o){const s=o.options,a=s.fill;let l=E(a&&a.target,a);return void 0===l&&(l=!!s.backgroundColor),!1!==l&&null!==l&&(!0===l?"origin":l)}(n);if(P(i))return!isNaN(i.value)&&i;let r=parseFloat(i);return R(r)&&Math.floor(r)===r?(s=t,a=r,"-"!==(o=i[0])&&"+"!==o||(a=s+a),!(a===s||a<0||a>=e)&&a):["origin","start","end","stack","shape"].indexOf(i)>=0&&i;var o,s,a}function Xs(n,t,e){const i=[];for(let r=0;r<e.length;r++){const o=e[r],{first:s,last:a,point:l}=Qs(o,t,"x");if(!(!l||s&&a))if(s)i.unshift(l);else if(n.push(l),!a)break}n.push(...i)}function Qs(n,t,e){const i=n.interpolate(t,e);if(!i)return{};const r=i[e],o=n.segments,s=n.points;let a=!1,l=!1;for(let c=0;c<o.length;c++){const y=o[c],_=s[y.start][e],k=s[y.end][e];if(ht(r,_,k)){a=r===_,l=r===k;break}}return{first:a,last:l,point:i}}class ko{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,e,i){const{x:r,y:o,radius:s}=this;return t.arc(r,o,s,(e=e||{start:0,end:V}).end,e.start,!0),!i.bounds}interpolate(t){const{x:e,y:i,radius:r}=this,o=t.angle;return{x:e+Math.cos(o)*r,y:i+Math.sin(o)*r,angle:o}}}function Li(n,t,e){const i=function Js(n){const{chart:t,fill:e,line:i}=n;if(R(e))return function(o,s){const a=o.getDatasetMeta(s);return a&&o.isDatasetVisible(s)?a.dataset:null}(t,e);if("stack"===e)return function(o){const{scale:s,index:a,line:l}=o,c=[],y=l.segments,_=l.points,k=function(N,C){const H=[],U=N.getMatchingVisibleMetas("line");for(let Z=0;Z<U.length;Z++){const J=U[Z];if(J.index===C)break;J.hidden||H.unshift(J.dataset)}return H}(s,a);k.push(Oo({x:null,y:s.bottom},l));for(let N=0;N<y.length;N++){const C=y[N];for(let H=C.start;H<=C.end;H++)Xs(c,_[H],k)}return new ke({points:c,options:{}})}(n);if("shape"===e)return!0;const r=((o=n).scale||{}).getPointPositionForValue?function(s){const{scale:a,fill:l}=s,c=a.options,y=a.getLabels().length,_=c.reverse?a.max:a.min,k=function(C,H,U){let Z;return Z="start"===C?U:"end"===C?H.options.reverse?H.min:H.max:P(C)?C.value:H.getBaseValue(),Z}(l,a,_),N=[];if(c.grid.circular){const C=a.getPointPositionForValue(0,_);return new ko({x:C.x,y:C.y,radius:a.getDistanceFromCenterForValue(k)})}for(let C=0;C<y;++C)N.push(a.getPointPositionForValue(C,k));return N}(o):function(s){const{scale:a={},fill:l}=s,c=function(y,_){let k=null;return"start"===y?k=_.bottom:"end"===y?k=_.top:P(y)?k=_.getPixelForValue(y.value):_.getBasePixel&&(k=_.getBasePixel()),k}(l,a);if(R(c)){const y=a.isHorizontal();return{x:y?c:null,y:y?null:c}}return null}(o);var o;return r instanceof ko?r:Oo(r,i)}(t),{line:r,scale:o,axis:s}=t,a=r.options,l=a.fill,c=a.backgroundColor,{above:y=c,below:_=c}=l||{};i&&r.points.length&&($e(n,e),function(k,N){const{line:C,target:H,above:U,below:Z,area:J,scale:nt}=N,ot=C._loop?"angle":N.axis;k.save(),"x"===ot&&Z!==U&&(Eo(k,H,J.top),So(k,{line:C,target:H,color:U,scale:nt,property:ot}
vendor: 4,416 bytes, line 1
1),k.restore(),k.save(),Eo(k,H,J.bottom)),So(k,{line:C,target:H,color:Z,scale:nt,property:ot}),k.restore()}(n,{line:r,target:i,above:y,below:_,area:e,scale:o,axis:s}),Ke(n))}function Eo(n,t,e){const{segments:i,points:r}=t;let o=!0,s=!1;n.beginPath();for(const a of i){const{start:l,end:c}=a,y=r[l],_=r[Ni(l,c,r)];o?(n.moveTo(y.x,y.y),o=!1):(n.lineTo(y.x,e),n.lineTo(y.x,y.y)),s=!!t.pathSegment(n,a,{move:s}),s?n.closePath():n.lineTo(_.x,e)}n.lineTo(t.first().x,e),n.closePath(),n.clip()}function So(n,t){const{line:e,target:i,property:r,color:o,scale:s}=t,a=function(l,c,y){const _=l.segments,k=l.points,N=c.points,C=[];for(const H of _){let{start:U,end:Z}=H;Z=Ni(U,Z,k);const J=Mi(y,k[U],k[Z],H.loop);if(!c.segments){C.push({source:H,target:J,start:k[U],end:k[Z]});continue}const nt=fi(c,J);for(const ot of nt){const ct=Mi(y,N[ot.start],N[ot.end],ot.loop),gt=hi(H,k,ct);for(const vt of gt)C.push({source:vt,target:ot,start:{[y]:xo(J,ct,"start",Math.max)},end:{[y]:xo(J,ct,"end",Math.min)}})}}return C}(e,i,r);for(const{source:l,target:c,start:y,end:_}of a){const{style:{backgroundColor:k=o}={}}=l,N=!0!==i;n.save(),n.fillStyle=k,ta(n,s,N&&Mi(r,y,_)),n.beginPath();const C=!!e.pathSegment(n,l);let H;if(N){C?n.closePath():Ao(n,i,_,r);const U=!!i.pathSegment(n,c,{move:C,reverse:!0});H=C&&U,H||Ao(n,i,y,r)}n.closePath(),n.fill(H?"evenodd":"nonzero"),n.restore()}}function ta(n,t,e){const{top:i,bottom:r}=t.chart.chartArea,{property:o,start:s,end:a}=e||{};"x"===o&&(n.beginPath(),n.rect(s,i,a-s,r-i),n.clip())}function Ao(n,t,e,i){const r=t.interpolate(e,i);r&&n.lineTo(r.x,r.y)}var ea={id:"filler",afterDatasetsUpdate(n,t,e){const i=(n.data.datasets||[]).length,r=[];let o,s,a,l;for(s=0;s<i;++s)o=n.getDatasetMeta(s),a=o.dataset,l=null,a&&a.options&&a instanceof ke&&(l={visible:n.isDatasetVisible(s),index:s,fill:Zs(a,s,i),chart:n,axis:o.controller.options.indexAxis,scale:o.vScale,line:a}),o.$filler=l,r.push(l);for(s=0;s<i;++s)l=r[s],l&&!1!==l.fill&&(l.fill=Gs(r,s,e.propagate))},beforeDraw(n,t,e){const i="beforeDraw"===e.drawTime,r=n.getSortedVisibleDatasetMetas(),o=n.chartArea;for(let s=r.length-1;s>=0;--s){const a=r[s].$filler;a&&(a.line.updateControlPoints(o,a.axis),i&&a.fill&&Li(n.ctx,a,o))}},beforeDatasetsDraw(n,t,e){if("beforeDatasetsDraw"!==e.drawTime)return;const i=n.getSortedVisibleDatasetMetas();for(let r=i.length-1;r>=0;--r){const o=i[r].$filler;wo(o)&&Li(n.ctx,o,n.chartArea)}},beforeDatasetDraw(n,t,e){const i=t.meta.$filler;wo(i)&&"beforeDatasetDraw"===e.drawTime&&Li(n.ctx,i,n.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const To=(n,t)=>{let{boxHeight:e=t,boxWidth:i=t}=n;return n.usePointStyle&&(e=Math.min(e,t),i=n.pointStyleWidth||Math.min(i,t)),{boxWidth:i,boxHeight:e,itemHeight:Math.max(t,e)}};class Po extends re{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e,i){this.maxWidth=t,this.maxHeight=e,this._margins=i,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let e=h(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter(i=>t.filter(i,this.chart.data))),t.sort&&(e=e.sort((i,r)=>t.sort(i,r,this.chart.data))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){const{options:t,ctx:e}=this;if(!t.display)return void(this.width=this.height=0);const i=t.labels,r=Ut(i.font),o=r.size,s=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=To(i,o);let c,y;e.font=r.string,this.isHorizontal()?(c=this.maxWidth,y=this._fitRows(s,o,a,l)+10):(y=this.maxHeight,c=this._fitCols(s,o,a,l)+10),this.width=Math.min(c,t.maxWidth||this.maxWidth),this.height=Math.min(y,t.maxHeight||this.maxHeight)}_fitRows(t,e,i,r){const{ctx:o,maxWidth:s,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],y=r+a;let _=t;o.textAlign="left",o.textBaseline="middle";let k=-1,N=-y;
vendor: 4,173 bytes, line 1
1return this.legendItems.forEach((C,H)=>{const U=i+e/2+o.measureText(C.text).width;(0===H||c[c.length-1]+U+2*a>s)&&(_+=y,c[c.length-(H>0?0:1)]=0,N+=y,k++),l[H]={left:0,top:N,row:k,width:U,height:r},c[c.length-1]+=U+a}),_}_fitCols(t,e,i,r){const{ctx:o,maxHeight:s,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],y=s-t;let _=a,k=0,N=0,C=0,H=0;return this.legendItems.forEach((U,Z)=>{const J=i+e/2+o.measureText(U.text).width;Z>0&&N+r+2*a>y&&(_+=k+a,c.push({width:k,height:N}),C+=k+a,H++,k=N=0),l[Z]={left:C,top:N,col:H,width:J,height:r},k=Math.max(k,J),N+=r+a}),_+=k,c.push({width:k,height:N}),_}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:i,labels:{padding:r},rtl:o}}=this,s=Pe(o,this.left,this.width);if(this.isHorizontal()){let a=0,l=Kt(i,this.left+r,this.right-this.lineWidths[a]);for(const c of e)a!==c.row&&(a=c.row,l=Kt(i,this.left+r,this.right-this.lineWidths[a])),c.top+=this.top+t+r,c.left=s.leftForLtr(s.x(l),c.width),l+=c.width+r}else{let a=0,l=Kt(i,this.top+t+r,this.bottom-this.columnSizes[a].height);for(const c of e)c.col!==a&&(a=c.col,l=Kt(i,this.top+t+r,this.bottom-this.columnSizes[a].height)),c.top=l,c.left+=this.left+r,c.left=s.leftForLtr(s.x(c.left),c.width),l+=c.height+r}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const t=this.ctx;$e(t,this),this._draw(),Ke(t)}}_draw(){const{options:t,columnSizes:e,lineWidths:i,ctx:r}=this,{align:o,labels:s}=t,a=Bt.color,l=Pe(t.rtl,this.left,this.width),c=Ut(s.font),{color:y,padding:_}=s,k=c.size,N=k/2;let C;this.drawTitle(),r.textAlign=l.textAlign("left"),r.textBaseline="middle",r.lineWidth=.5,r.font=c.string;const{boxWidth:H,boxHeight:U,itemHeight:Z}=To(s,k),J=this.isHorizontal(),nt=this._computeTitleHeight();C=J?{x:Kt(o,this.left+_,this.right-i[0]),y:this.top+_+nt,line:0}:{x:this.left+_,y:Kt(o,this.top+nt+_,this.bottom-e[0].height),line:0},ui(this.ctx,t.textDirection);const ot=Z+_;this.legendItems.forEach((ct,gt)=>{r.strokeStyle=ct.fontColor||y,r.fillStyle=ct.fontColor||y;const vt=r.measureText(ct.text).width,wt=l.textAlign(ct.textAlign||(ct.textAlign=s.textAlign)),Ot=H+N+vt;let bt=C.x,Et=C.y;var St,yt;l.setWidth(this.width),J?gt>0&&bt+Ot+_>this.right&&(Et=C.y+=ot,C.line++,bt=C.x=Kt(o,this.left+_,this.right-i[C.line])):gt>0&&Et+ot>this.bottom&&(bt=C.x=bt+e[C.line].width+_,C.line++,Et=C.y=Kt(o,this.top+nt+_,this.bottom-e[C.line].height)),function(St,Tt,yt){if(isNaN(H)||H<=0||isNaN(U)||U<0)return;r.save();const At=E(yt.lineWidth,1);if(r.fillStyle=E(yt.fillStyle,a),r.lineCap=E(yt.lineCap,"butt"),r.lineDashOffset=E(yt.lineDashOffset,0),r.lineJoin=E(yt.lineJoin,"miter"),r.lineWidth=At,r.strokeStyle=E(yt.strokeStyle,a),r.setLineDash(E(yt.lineDash,[])),s.usePointStyle){const Ct={radius:U*Math.SQRT2/2,pointStyle:yt.pointStyle,rotation:yt.rotation,borderWidth:At},Ft=l.xPlus(St,H/2);ii(r,Ct,Ft,Tt+N,s.pointStyleWidth&&H)}else{const Ct=Tt+Math.max((k-U)/2,0),Ft=l.leftForLtr(St,H),Vt=xe(yt.borderRadius);r.beginPath(),Object.values(Vt).some($t=>0!==$t)?De(r,{x:Ft,y:Ct,w:H,h:U,radius:Vt}):r.rect(Ft,Ct,H,U),r.fill(),0!==At&&r.stroke()}r.restore()}(l.x(bt),Et,ct),bt=qi(wt,bt+H+N,J?bt+Ot:this.right,t.rtl),St=l.x(bt),be(r,(yt=ct).text,St,Et+Z/2,c,{strikethrough:yt.hidden,textAlign:l.textAlign(yt.textAlign)}),J?C.x+=Ot+_:C.y+=ot}),ci(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,i=Ut(e.font),r=Yt(e.padding);if(!e.display)return;const o=Pe(t.rtl,this.left,this.width),s=this.ctx,a=e.position,c=r.top+i.size/2;let y,_=this.left,k=this.width;if(this.isHorizontal())k=Math.max(...this.lineWidths),y=this.top+c,_=Kt(t.align,_,this.right-k);else{const C=this.columnSizes.reduce((H,U)=>Math.max(H,U.height),0);y=c+Kt(t.align,this.top,this.bottom-C-t.labels.padding-this._computeTitleHeight())}const N=Kt(a,_,_+k);s.textAlign=o.textAlign(Jt(a)),s.textBaseline="middle",s.strokeStyle=e.color,s.fillStyle=e.color,s.font=i.string,be(s,e.text,N,y,i)}_computeTitleHeight(){const t=this.options.title,e=Ut(t.font),i=Yt(t.padding);return t.display?e.lineHeight+i.height:0}_getLegendItemAt(t,e){let i,r,o;
vendor: 5,792 bytes, line 1
1if(ht(t,this.left,this.right)&&ht(e,this.top,this.bottom))for(o=this.legendHitBoxes,i=0;i<o.length;++i)if(r=o[i],ht(t,r.left,r.left+r.width)&&ht(e,r.top,r.top+r.height))return this.legendItems[i];return null}handleEvent(t){const e=this.options;if(a=e,("mousemove"!==(s=t.type)&&"mouseout"!==s||!a.onHover&&!a.onLeave)&&(!a.onClick||"click"!==s&&"mouseup"!==s))return;var s,a;const i=this._getLegendItemAt(t.x,t.y);if("mousemove"===t.type||"mouseout"===t.type){const s=this._hoveredItem,a=(o=i,null!==(r=s)&&null!==o&&r.datasetIndex===o.datasetIndex&&r.index===o.index);s&&!a&&h(e.onLeave,[t,s,this],this),this._hoveredItem=i,i&&!a&&h(e.onHover,[t,i,this],this)}else i&&h(e.onClick,[t,i,this],this);var r,o}}var na={id:"legend",_element:Po,start(n,t,e){const i=n.legend=new Po({ctx:n.ctx,options:e,chart:n});Gt.configure(n,i,e),Gt.addBox(n,i)},stop(n){Gt.removeBox(n,n.legend),delete n.legend},beforeUpdate(n,t,e){const i=n.legend;Gt.configure(n,i,e),i.options=e},afterUpdate(n){const t=n.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(n,t){t.replay||n.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(n,t,e){const i=t.datasetIndex,r=e.chart;r.isDatasetVisible(i)?(r.hide(i),t.hidden=!0):(r.show(i),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:n=>n.chart.options.color,boxWidth:40,padding:10,generateLabels(n){const t=n.data.datasets,{labels:{usePointStyle:e,pointStyle:i,textAlign:r,color:o}}=n.legend.options;return n._getSortedDatasetMetas().map(s=>{const a=s.controller.getStyle(e?0:void 0),l=Yt(a.borderWidth);return{text:t[s.index].label,fillStyle:a.backgroundColor,fontColor:o,hidden:!s.visible,lineCap:a.borderCapStyle,lineDash:a.borderDash,lineDashOffset:a.borderDashOffset,lineJoin:a.borderJoinStyle,lineWidth:(l.width+l.height)/4,strokeStyle:a.borderColor,pointStyle:i||a.pointStyle,rotation:a.rotation,textAlign:r||a.textAlign,borderRadius:0,datasetIndex:s.index}},this)}},title:{color:n=>n.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:n=>!n.startsWith("on"),labels:{_scriptable:n=>!["generateLabels","filter","sort"].includes(n)}}};class Ri extends re{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e){const i=this.options;if(this.left=0,this.top=0,!i.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=t,this.height=this.bottom=e;const r=q(i.text)?i.text.length:1;this._padding=Yt(i.padding);const o=r*Ut(i.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){const t=this.options.position;return"top"===t||"bottom"===t}_drawArgs(t){const{top:e,left:i,bottom:r,right:o,options:s}=this,a=s.align;let l,c,y,_=0;return this.isHorizontal()?(c=Kt(a,i,o),y=e+t,l=o-i):("left"===s.position?(c=i+t,y=Kt(a,r,e),_=-.5*j):(c=o-t,y=Kt(a,e,r),_=.5*j),l=r-e),{titleX:c,titleY:y,maxWidth:l,rotation:_}}draw(){const t=this.ctx,e=this.options;if(!e.display)return;const i=Ut(e.font),r=i.lineHeight/2+this._padding.top,{titleX:o,titleY:s,maxWidth:a,rotation:l}=this._drawArgs(r);be(t,e.text,0,0,i,{color:e.color,maxWidth:a,rotation:l,textAlign:Jt(e.align),textBaseline:"middle",translation:[o,s]})}}var ia={id:"title",_element:Ri,start(n,t,e){!function(i,r){const o=new Ri({ctx:i.ctx,options:r,chart:i});Gt.configure(i,o,r),Gt.addBox(i,o),i.titleBlock=o}(n,e)},stop(n){Gt.removeBox(n,n.titleBlock),delete n.titleBlock},beforeUpdate(n,t,e){const i=n.titleBlock;Gt.configure(n,i,e),i.options=e},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Cn=new WeakMap;var ra={id:"subtitle",start(n,t,e){const i=new Ri({ctx:n.ctx,options:e,chart:n});Gt.configure(n,i,e),Gt.addBox(n,i),Cn.set(n,i)},stop(n){Gt.removeBox(n,Cn.get(n)),Cn.delete(n)},beforeUpdate(n,t,e){const i=Cn.get(n);Gt.configure(n,i,e),i.options=e},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const rn={average(n){if(!n.length)return!1;let t,e,i=0,r=0,o=0;for(t=0,e=n.length;t<e;++t){const s=n[t].element;if(s&&s.hasValue()){const a=s.tooltipPosition();i+=a.x,r+=a.y,++o}}return{x:i/o,y:r/o}},nearest(n,t){if(!n.length)return!1;let e,i,r,o=t.x,s=t.y,a=Number.POSITIVE_INFINITY;for(e=0,i=n.length;e<i;++e){const l=n[e].element;if(l&&l.hasValue()){const c=Mt(t,l.getCenterPoint());c<a&&(a=c,r=l)}}if(r){const l=r.tooltipPosition();o=l.x,s=l.y}return{x:o,y:s}}};function le(n,t){return t&&(q(t)?Array.prototype.push.apply(n,t):n.push(t)),n}function he(n){return("string"==typeof n||n instanceof String)&&n.indexOf("\n")>-1?n.split("\n"):n}function oa(n,t){const{element:e,datasetIndex:i,index:r}=t,o=n.getDatasetMeta(i).controller,{label:s,value:a}=o.getLabelAndValue(r);return{chart:n,label:s,parsed:o.getParsed(r),raw:n.data.datasets[i].data[r],formattedValue:a,dataset:o.getDataset(),dataIndex:r,datasetIndex:i,element:e}}function Mo(n,t){const e=n.chart.ctx,{body:i,footer:r,title:o}=n,{boxWidth:s,boxHeight:a}=t,l=Ut(t.bodyFont),c=Ut(t.titleFont),y=Ut(t.footerFont),_=o.length,k=r.length,N=i.length,C=Yt(t.padding);let H=C.height,U=0,Z=i.reduce((ot,ct)=>ot+ct.before.length+ct.lines.length+ct.after.length,0);Z+=n.beforeBody.length+n.afterBody.length,_&&(H+=_*c.lineHeight+(_-1)*t.titleSpacing+t.titleMarginBottom),Z&&(H+=N*(t.displayColors?Math.max(a,l.lineHeight):l.lineHeight)+(Z-N)*l.lineHeight+(
1Z-1)*t.bodySpacing),k&&(H+=t.footerMarginTop+k*y.lineHeight+(k-1)*t.footerSpacing);let J=0;const nt=function(ot){U=Math.max(U,e.measureText(ot).width+J)};return e.save(),e.font=c.string,u(n.title,nt),e.font=l.string,u(n.beforeBody.concat(n.afterBody),nt),J=t.displayColors?s+2+t.boxPadding:0,u(i,ot=>{u(ot.before,nt),u(ot.lines,nt),u(ot.after,nt)}),J=0,e.font=y.string,u(n.footer,nt),e.restore(),U+=C.width,{width:U,height:H}}function sa(n,t,e,i){const{x:r,width:o}=e,{width:s,chartArea:{left:a,right:l}}=n;let c="center";return"center"===i?c=r<=(a+l)/2?"left":"right":r<=o/2?c="left":r>=s-o/2&&(c="right"),function(y,_,k,N){const{x:C,width:H}=N,U=k.caretSize+k.caretPadding;return"left"===y&&C+H+U>_.width||"right"===y&&C-H-U<0||void 0}(c,n,t,e)&&(c="center"),c}function No(n,t,e){const i=e.yAlign||t.yAlign||function(r,o){const{y:s,height:a}=o;return s<a/2?"top":s>r.height-a/2?"bottom":"center"}(n,e);return{xAlign:e.xAlign||t.xAlign||sa(n,t,e,i),yAlign:i}}function Lo(n,t,e,i){const{caretSize:r,caretPadding:o,cornerRadius:s}=n,{xAlign:a,yAlign:l}=e,c=r+o,{topLeft:y,topRight:_,bottomLeft:k,bottomRight:N}=xe(s);let C=function(U,Z){let{x:J,width:nt}=U;return"right"===Z?J-=nt:"center"===Z&&(J-=nt/2),J}(t,a);const H=function(U,Z,J){let{y:nt,height:ot}=U;return"top"===Z?nt+=J:nt-="bottom"===Z?ot+J:ot/2,nt}(t,l,c);return"center"===l?"left"===a?C+=c:"right"===a&&(C-=c):"left"===a?C-=Math.max(y,k)+r:"right"===a&&(C+=Math.max(_,N)+r),{x:It(C,0,i.width-t.width),y:It(H,0,i.height-t.height)}}function In(n,t,e){const i=Yt(e.padding);return"center"===t?n.x+n.width/2:"right"===t?n.x+n.width-i.right:n.x+i.left}function Ro(n){return le([],he(n))}function Do(n,t){const e=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return e?n.override(e):n}class Di extends re{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart||t._chart,this._chart=this.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const e=this.chart,i=this.options.setContext(this.getContext()),r=i.enabled&&e.options.animation&&i.animations,o=new vi(this.chart,r);return r._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=ce(this.chart.getContext(),{tooltip:this,tooltipItems:this._tooltipItems,type:"tooltip"}))}getTitle(t,e){const{callbacks:i}=e,r=i.beforeTitle.apply(this,[t]),o=i.title.apply(this,[t]),s=i.afterTitle.apply(this,[t]);let a=[];return a=le(a,he(r)),a=le(a,he(o)),a=le(a,he(s)),a}getBeforeBody(t,e){return Ro(e.callbacks.beforeBody.apply(this,[t]))}getBody(t,e){const{callbacks:i}=e,r=[];return u(t,o=>{const s={before:[],lines:[],after:[]},a=Do(i,o);le(s.before,he(a.beforeLabel.call(this,o))),le(s.lines,a.label.call(this,o)),le(s.after,he(a.afterLabel.call(this,o))),r.push(s)}),r}getAfterBody(t,e){return Ro(e.callbacks.afterBody.apply(this,[t]))}getFooter(t,e){const{callbacks:i}=e,r=i.beforeFooter.apply(this,[t]),o=i.footer.apply(this,[t]),s=i.afterFooter.apply(this,[t]);let a=[];return a=le(a,he(r)),a=le(a,he(o)),a=le(a,he(s)),a}_createItems(t){const e=this._active,i=this.chart.data,r=[],o=[],s=[];let a,l,c=[];for(a=0,l=e.length;a<l;++a)c.push(oa(this.chart,e[a]));return t.filter&&(c=c.filter((y,_,k)=>t.filter(y,_,k,i))),t.itemSort&&(c=c.sort((y,_)=>t.itemSort(y,_,i))),u(c,y=>{const _=Do(t.callbacks,y);r.push(_.labelColor.call(this,y)),o.push(_.labelPointStyle.call(this,y)),s.push(_.labelTextColor.call(this,y))}),this.labelColors=r,this.labelPointStyles=o,this.labelTextColors=s,this.dataPoints=c,c}update(t,e){const i=this.options.setContext(this.getContext()),r=this._active;let o,s=[];if(r.length){const a=rn[i.position].call(this,r,this._eventPosition);s=this._createItems(i),this.title=this.getTitle(s,i),this.beforeBody=this.getBeforeBody(s,i),this.body=this.getBody(s,i),this.afterBody=this.getAfterBody(s,i),this.footer=this.getFooter(s,i);const l=this._size=Mo(this,i),c=Object.assign({},a,l),y=No(this.chart,i,c),_=Lo(i,c,y,this.chart);this.xAlign=y.xAlign,this.yAlign=y.yAlign,o={opacity:1,x:_.x,y:_.y,width:l.width,height:l.height,caretX:a.x,caretY:a.y}}else 0!==this.opacity&&(o={opacity:0}
vendor: 5,022 bytes, line 1
1);this._tooltipItems=s,this.$context=void 0,o&&this._resolveAnimations().update(this,o),t&&i.external&&i.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,i,r){const o=this.getCaretPosition(t,i,r);e.lineTo(o.x1,o.y1),e.lineTo(o.x2,o.y2),e.lineTo(o.x3,o.y3)}getCaretPosition(t,e,i){const{xAlign:r,yAlign:o}=this,{caretSize:s,cornerRadius:a}=i,{topLeft:l,topRight:c,bottomLeft:y,bottomRight:_}=xe(a),{x:k,y:N}=t,{width:C,height:H}=e;let U,Z,J,nt,ot,ct;return"center"===o?(ot=N+H/2,"left"===r?(U=k,Z=U-s,nt=ot+s,ct=ot-s):(U=k+C,Z=U+s,nt=ot-s,ct=ot+s),J=U):(Z="left"===r?k+Math.max(l,y)+s:"right"===r?k+C-Math.max(c,_)-s:this.caretX,"top"===o?(nt=N,ot=nt-s,U=Z-s,J=Z+s):(nt=N+H,ot=nt+s,U=Z+s,J=Z-s),ct=nt),{x1:U,x2:Z,x3:J,y1:nt,y2:ot,y3:ct}}drawTitle(t,e,i){const r=this.title,o=r.length;let s,a,l;if(o){const c=Pe(i.rtl,this.x,this.width);for(t.x=In(this,i.titleAlign,i),e.textAlign=c.textAlign(i.titleAlign),e.textBaseline="middle",s=Ut(i.titleFont),a=i.titleSpacing,e.fillStyle=i.titleColor,e.font=s.string,l=0;l<o;++l)e.fillText(r[l],c.x(t.x),t.y+s.lineHeight/2),t.y+=s.lineHeight+a,l+1===o&&(t.y+=i.titleMarginBottom-a)}}_drawColorBox(t,e,i,r,o){const s=this.labelColors[i],a=this.labelPointStyles[i],{boxHeight:l,boxWidth:c,boxPadding:y}=o,_=Ut(o.bodyFont),k=In(this,"left",o),N=r.x(k),H=e.y+(l<_.lineHeight?(_.lineHeight-l)/2:0);if(o.usePointStyle){const U={radius:Math.min(c,l)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},Z=r.leftForLtr(N,c)+c/2,J=H+l/2;t.strokeStyle=o.multiKeyBackground,t.fillStyle=o.multiKeyBackground,gn(t,U,Z,J),t.strokeStyle=s.borderColor,t.fillStyle=s.backgroundColor,gn(t,U,Z,J)}else{t.lineWidth=P(s.borderWidth)?Math.max(...Object.values(s.borderWidth)):s.borderWidth||1,t.strokeStyle=s.borderColor,t.setLineDash(s.borderDash||[]),t.lineDashOffset=s.borderDashOffset||0;const U=r.leftForLtr(N,c-y),Z=r.leftForLtr(r.xPlus(N,1),c-y-2),J=xe(s.borderRadius);Object.values(J).some(nt=>0!==nt)?(t.beginPath(),t.fillStyle=o.multiKeyBackground,De(t,{x:U,y:H,w:c,h:l,radius:J}),t.fill(),t.stroke(),t.fillStyle=s.backgroundColor,t.beginPath(),De(t,{x:Z,y:H+1,w:c-2,h:l-2,radius:J}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(U,H,c,l),t.strokeRect(U,H,c,l),t.fillStyle=s.backgroundColor,t.fillRect(Z,H+1,c-2,l-2))}t.fillStyle=this.labelTextColors[i]}drawBody(t,e,i){const{body:r}=this,{bodySpacing:o,bodyAlign:s,displayColors:a,boxHeight:l,boxWidth:c,boxPadding:y}=i,_=Ut(i.bodyFont);let k=_.lineHeight,N=0;const C=Pe(i.rtl,this.x,this.width),H=function(wt){e.fillText(wt,C.x(t.x+N),t.y+k/2),t.y+=k+o},U=C.textAlign(s);let Z,J,nt,ot,ct,gt,vt;for(e.textAlign=s,e.textBaseline="middle",e.font=_.string,t.x=In(this,U,i),e.fillStyle=i.bodyColor,u(this.beforeBody,H),N=a&&"right"!==U?"center"===s?c/2+y:c+2+y:0,ot=0,gt=r.length;ot<gt;++ot){for(Z=r[ot],J=this.labelTextColors[ot],e.fillStyle=J,u(Z.before,H),nt=Z.lines,a&&nt.length&&(this._drawColorBox(e,t,ot,C,i),k=Math.max(_.lineHeight,l)),ct=0,vt=nt.length;ct<vt;++ct)H(nt[ct]),k=_.lineHeight;u(Z.after,H)}N=0,k=_.lineHeight,u(this.afterBody,H),t.y-=o}drawFooter(t,e,i){const r=this.footer,o=r.length;let s,a;if(o){const l=Pe(i.rtl,this.x,this.width);for(t.x=In(this,i.footerAlign,i),t.y+=i.footerMarginTop,e.textAlign=l.textAlign(i.footerAlign),e.textBaseline="middle",s=Ut(i.footerFont),e.fillStyle=i.footerColor,e.font=s.string,a=0;a<o;++a)e.fillText(r[a],l.x(t.x),t.y+s.lineHeight/2),t.y+=s.lineHeight+i.footerSpacing}}drawBackground(t,e,i,r){const{xAlign:o,yAlign:s}=this,{x:a,y:l}=t,{width:c,height:y}=i,{topLeft:_,topRight:k,bottomLeft:N,bottomRight:C}=xe(r.cornerRadius);e.fillStyle=r.backgroundColor,e.strokeStyle=r.borderColor,e.lineWidth=r.borderWidth,e.beginPath(),e.moveTo(a+_,l),"top"===s&&this.drawCaret(t,e,i,r),e.lineTo(a+c-k,l),e.quadraticCurveTo(a+c,l,a+c,l+k),"center"===s&&"right"===o&&this.drawCaret(t,e,i,r),e.lineTo(a+c,l+y-C),e.quadraticCurveTo(a+c,l+y,a+c-C,l+y),"bottom"===s&&this.drawCaret(t,e,i,r),e.lineTo(a+N,l+y),e.quadraticCurveTo(a,l+y,a,l+y-N),"center"===s&&"left"===o&&this.drawCaret(t,e,i,r),e.lineTo(a,l+_),e.quadraticCurveTo(a,l,a+_,l),e.closePath(),e.fill(),r.borderWidth>0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,i=this.$animations,r=i&&i.x,o=i&&i.y;if(r||o){const s=rn[t.position].call(this,this._active,this._eventPosition);if(!s)return;const a=this._size=Mo(this,t),l=Object.assign({},s,this._size),c=No(e,t,l),y=Lo(t,l,c,e);r._to===y.x&&o._to===y.y||(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=a.width,this.height=a.height,this.caretX=s.x,this.caretY=s.y,this._resolveAnimations().update(this,y))}}_willRender(){return!!this.opacity}draw(t){const e=this.options.setContext(this.getContext());let i=this.opacity;if(!i)return;this._updateAnimationTarget(e);const r={width:this.width,height:this.height},o={x:this.x,y:this.y};i=Math.abs(i)<.001?0:i;const s=Yt(e.padding);e.enabled&&(this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length)&&(t.save(),t.globalAlpha=i,this.drawBackgroun
1d(o,t,r,e),ui(t,e.textDirection),o.y+=s.top,this.drawTitle(o,t,e),this.drawBody(o,t,e),this.drawFooter(o,t,e),ci(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const i=this._active,r=t.map(({datasetIndex:a,index:l})=>{const c=this.chart.getDatasetMeta(a);if(!c)throw new Error("Cannot find a dataset at index "+a);return{datasetIndex:a,element:c.data[l],index:l}}),o=!v(i,r),s=this._positionChanged(r,e);(o||s)&&(this._active=r,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,i=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const r=this.options,o=this._active||[],s=this._getActiveElements(t,o,e,i),a=this._positionChanged(s,t),l=e||!v(s,o)||a;return l&&(this._active=s,(r.enabled||r.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),l}_getActiveElements(t,e,i,r){const o=this.options;if("mouseout"===t.type)return[];if(!r)return e;const s=this.chart.getElementsAtEventForMode(t,o.mode,o,i);return o.reverse&&s.reverse(),s}_positionChanged(t,e){const{caretX:i,caretY:r,options:o}=this,s=rn[o.position].call(this,t,e);return!1!==s&&(i!==s.x||r!==s.y)}}Di.positioners=rn;var Co=Object.freeze({__proto__:null,Decimation:Ys,Filler:ea,Legend:na,SubTitle:ra,Title:ia,Tooltip:{id:"tooltip",_element:Di,positioners:rn,afterInit(n,t,e){e&&(n.tooltip=new Di({chart:n,options:e}))},beforeUpdate(n,t,e){n.tooltip&&n.tooltip.initialize(e)},reset(n,t,e){n.tooltip&&n.tooltip.initialize(e)},afterDraw(n){const t=n.tooltip;if(t&&t._willRender()){const e={tooltip:t};if(!1===n.notifyPlugins("beforeTooltipDraw",e))return;t.draw(n.ctx),n.notifyPlugins("afterTooltipDraw",e)}},afterEvent(n,t){n.tooltip&&n.tooltip.handleEvent(t.event,t.replay,t.inChartArea)&&(t.changed=!0)},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(n,t)=>t.bodyFont.size,boxWidth:(n,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:{beforeTitle:Q,title(n){if(n.length>0){const t=n[0],e=t.chart.data.labels,i=e?e.length:0;if(this&&this.options&&"dataset"===this.options.mode)return t.dataset.label||"";if(t.label)return t.label;if(i>0&&t.dataIndex<i)return e[t.dataIndex]}return""},afterTitle:Q,beforeBody:Q,beforeLabel:Q,label(n){if(this&&this.options&&"dataset"===this.options.mode)return n.label+": "+n.formattedValue||n.formattedValue;let t=n.dataset.label||"";t&&(t+=": ");const e=n.formattedValue;return T(e)||(t+=e),t},labelColor(n){const t=n.chart.getDatasetMeta(n.datasetIndex).controller.getStyle(n.dataIndex);return{borderColor:t.borderColor,backgroundColor:t.backgroundColor,borderWidth:t.borderWidth,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(n){const t=n.chart.getDatasetMeta(n.datasetIndex).controller.getStyle(n.dataIndex);return{pointStyle:t.pointStyle,rotation:t.rotation}},afterLabel:Q,afterBody:Q,beforeFooter:Q,footer:Q,afterFooter:Q}},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:n=>"filter"!==n&&"itemSort"!==n&&"external"!==n,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]}});class jn extends Oe{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const e=this._addedLabels;if(e.length){const i=this.getLabels();for(const{index:r,label:o}of e)i[r]===o&&i.splice(r,1);this._addedLabels=[]}super.init(t)}parse(t,e){if(T(t))return null;const i=this.getLabels();return r=e=isFinite(e)&&i[e]===t?e:function la(n,t,e,i){const r=n.indexOf(t);return-1===r?(a=e,l=i,"string"==typeof(s=t)?(a=n.push(s)-1,l.unshift({index:a,label:s})):isNaN(s)&&(a=null),a):r!==n.lastIndexOf(t)?e:r;var s,a,l}(i,t,E(e,t),this._addedLabels),o=i.length-1,null===r?null:It(Math.round(r),0,o);var r,o}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:i,max:r}=this.getMinMax(!0);"ticks"===this.options.bounds&&(t||(i=0),e||(r=this.getLabels().length-1)),this.min=i,this.max=r}buildTicks(){const t=this.min,e=this.max,i=this.options.offset,r=[];let o=this.getLabels();o=0===t&&e===o.length-1?o:o.slice(t,e+1),this._valueRange=Math.max(o.length-(i?0:1),1),this._startValue=this.min-(i?.5:0);for(let s=t;s<=e;s++)r.push({value:s});return r}getLabelForValue(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return"number"!=typeof t&&(t=this.parse(t)),null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}function Io(n,t,{horizontal:e,minRotation:i}){const r=lt(i),o=(e?Math.sin(r):Math.cos(r))||.001;return Math.min(t/o,.75*t*(""+n).length)}jn.id="category",jn.defaults={ticks:{callback:jn.prototype.getLabelForValue}};class Bn extends Oe{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,e){return T(t)||("number"==typeof t||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:i}=this.getUserBounds();let{min:r,max:o}=this;const s=l=>r=e?r:l,a=l=>o=i?o:l;if(t){const l=K(r),c=K(o);l<0&&c<0?a(0):l>0&&c>0&&s(0)}if(r===o){let l=1;(o>=Number.MAX_SAFE_INTEGER||r<=Number.MIN_SAFE_INTEGER)&&(l=Math.abs(.05*o)),a(o+l),t||s(r-l)}this.min=r,this.max=o}getTickLimit(){const t=this.options.ticks;let e,{maxTicksLimit:i,stepSize:r}=t;return r?(e=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,e>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${e} ticks. Limiting to 1000.`),e=1e3)):(e=this.computeTickLimit(),i=i||11),i&&(e=Math.min(i,e)),e}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let i=this.getTickLimit();i=Math.max(2,i);const r=function(o,s){const a=[],{bounds:l,step:c,min:y,max:_,precision:k,count:N,maxTicks:C,maxDigits:H,includeBounds:U}
vendor: 7,179 bytes, line 1
1=o,Z=c||1,J=C-1,{min:nt,max:ot}=s,ct=!T(y),gt=!T(_),vt=!T(N),wt=(ot-nt)/(H+1);let Ot,bt,Et,St,Tt=G((ot-nt)/J/Z)*Z;if(Tt<1e-14&&!ct&&!gt)return[{value:nt},{value:ot}];St=Math.ceil(ot/Tt)-Math.floor(nt/Tt),St>J&&(Tt=G(St*Tt/J/Z)*Z),T(k)||(Ot=Math.pow(10,k),Tt=Math.ceil(Tt*Ot)/Ot),"ticks"===l?(bt=Math.floor(nt/Tt)*Tt,Et=Math.ceil(ot/Tt)*Tt):(bt=nt,Et=ot),ct&&gt&&c&&tt((_-y)/c,Tt/1e3)?(St=Math.round(Math.min((_-y)/Tt,C)),Tt=(_-y)/St,bt=y,Et=_):vt?(bt=ct?y:bt,Et=gt?_:Et,St=N-1,Tt=(Et-bt)/St):(St=(Et-bt)/Tt,St=$(St,Math.round(St),Tt/1e3)?Math.round(St):Math.ceil(St));const yt=Math.max(kt(Tt),kt(bt));Ot=Math.pow(10,T(k)?yt:k),bt=Math.round(bt*Ot)/Ot,Et=Math.round(Et*Ot)/Ot;let At=0;for(ct&&(U&&bt!==y?(a.push({value:y}),bt<y&&At++,$(Math.round((bt+At*Tt)*Ot)/Ot,y,Io(y,wt,o))&&At++):bt<y&&At++);At<St;++At)a.push({value:Math.round((bt+At*Tt)*Ot)/Ot});return gt&&U&&Et!==_?a.length&&$(a[a.length-1].value,_,Io(_,wt,o))?a[a.length-1].value=_:a.push({value:_}):gt&&Et!==_||a.push({value:Et}),a}({maxTicks:i,bounds:t.bounds,min:t.min,max:t.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:!1!==e.includeBounds},this._range||this);return"ticks"===t.bounds&&ut(r,this,"value"),t.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}configure(){const t=this.ticks;let e=this.min,i=this.max;if(super.configure(),this.options.offset&&t.length){const r=(i-e)/Math.max(t.length-1,1)/2;e-=r,i+=r}this._startValue=e,this._endValue=i,this._valueRange=i-e}getLabelForValue(t){return je(t,this.chart.options.locale,this.options.ticks.format)}}class Ci extends Bn{determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=R(t)?t:0,this.max=R(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,i=lt(this.options.ticks.minRotation),r=(t?Math.sin(i):Math.cos(i))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,o.lineHeight/r))}getPixelForValue(t){return null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}function jo(n){return n/Math.pow(10,Math.floor(F(n)))===1}Ci.id="linear",Ci.defaults={ticks:{callback:tn.formatters.numeric}};class Ii extends Oe{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,e){const i=Bn.prototype.parse.apply(this,[t,e]);if(0!==i)return R(i)&&i>0?i:null;this._zero=!0}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=R(t)?Math.max(0,t):null,this.max=R(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let i=this.min,r=this.max;const o=l=>i=t?i:l,s=l=>r=e?r:l,a=(l,c)=>Math.pow(10,Math.floor(F(l))+c);i===r&&(i<=0?(o(1),s(10)):(o(a(i,-1)),s(a(r,1)))),i<=0&&o(a(r,-1)),r<=0&&s(a(i,1)),this._zero&&this.min!==this._suggestedMin&&i===a(this.min,0)&&o(a(i,-1)),this.min=i,this.max=r}buildTicks(){const t=this.options,e=function(i,r){const o=Math.floor(F(r.max)),s=Math.ceil(r.max/Math.pow(10,o)),a=[];let l=A(i.min,Math.pow(10,Math.floor(F(r.min)))),c=Math.floor(F(l)),y=Math.floor(l/Math.pow(10,c)),_=c<0?Math.pow(10,Math.abs(c)):1;do{a.push({value:l,major:jo(l)}),++y,10===y&&(y=1,++c,_=c>=0?1:_),l=Math.round(y*Math.pow(10,c)*_)/_}while(c<o||c===o&&y<s);const k=A(i.max,l);return a.push({value:k,major:jo(l)}),a}({min:this._userMin,max:this._userMax},this);return"ticks"===t.bounds&&ut(e,this,"value"),t.reverse?(e.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),e}getLabelForValue(t){return void 0===t?"0":je(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=F(t),this._valueRange=F(this.max)-F(t)}getPixelForValue(t){return void 0!==t&&0!==t||(t=this.min),null===t||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(F(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const e=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+e*this._valueRange)}}function ji(n){const t=n.ticks;if(t.display&&n.display){const e=Yt(t.backdropPadding);return E(t.font&&t.font.size,Bt.font.size)+e.height}return 0}function Bo(n,t,e,i,r){return n===i||n===r?{start:t-e/2,end:t+e/2}:n<i||n>r?{start:t-e,end:t}:{start:t,end:t+e}}function ca(n,t,e,i,r){const o=Math.abs(Math.sin(e)),s=Math.abs(Math.cos(e));let a=0,l=0;i.start<t.l?(a=(t.l-i.start)/o,n.l=Math.min(n.l,t.l-a)):i.end>t.r&&(a=(i.end-t.r)/o,n.r=Math.max(n.r,t.r+a)),r.start<t.t?(l=(t.t-r.start)/s,n.t=Math.min(n.t,t.t-l)):r.end>t.b&&(l=(r.end-t.b)/s,n.b=Math.max(n.b,t.b+l))}function ha(n){return 0===n||180===n?"center":n<180?"left":"right"}function fa(n,t,e){return"right"===e?n-=t:"center"===e&&(n-=t/2),n}function da(n,t,e){return 90===e||270===e?n-=t/2:(e>270||e<90)&&(n-=t),n}function qo(n,t,e,i){const{ctx:r}=n;if(e)r.arc(n.xCenter,n.yCenter,t,0,V);else{let o=n.getPointPosition(0,t);r.moveTo(o.x,o.y);for(let s=1;s<i;s++)o=n.getPointPosition(s,t),r.lineTo(o.x,o.y)}}Ii.id="logarithmic",Ii.defaults={ticks:{callback:tn.formatters.logarithmic,major:{enabled:!0}}};class on extends Bn{constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const t=this._padding=Yt(ji(this.options)/2),e=this.width=this.maxWidth-t.width,i=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+e/2+t.left),this.yCenter=Math.floor(this.top+i/2+t.top),this.drawingArea=Math.floor(Math.min(e,i)/2)}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!1);this.min=R(t)&&!isNaN(t)?t:0,this.max=R(e)&&!isNaN(e)?e:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/ji(this.options))}generateTickLabels(t){Bn.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((e,i)=>{const r=h(this.options.pointLabels.callback,[e,i],this);return r||0===r?r:""}).filter((e,i)=>this.chart.getDataVisibility(i))}fit(){const t=this.options;t.display&&t.pointLabels.display?function ua(n){const t={l:n.left+n._padding.left,r:n.right-n._padding.right,t:n.top+n._padding.top,b:n.bottom-n._padding.bottom},e=Object.assign({},t),i=[],r=[],o=n._pointLabels.length,s=n.options.pointLabels,a=s.centerPointLabels?j/o:0;for(let _=0;_<o;_++){const k=s.setContext(n.getPointLabelContext(_));r[_]=k.padding;const N=n.getPointPosition(_,n.drawingArea+r[_],a),C=Ut(k.font),H=(l=n.ctx,c=C,y=q(y=n._pointLabels[_])?y:[y],{w:Qi(l,c.string,y),h:y.length*c.lineHeight});i[_]=H;const U=Nt(n.getIndexAngle(_)+a),Z=Math.round(pt(U));ca(e,t,U,Bo(Z,N.x,H.w,0,180),Bo(Z,N.y,H.h,90,270))}var l,c,y;n.setCenterPoint(t.l-e.l,e.r-t.r,t.t-e.t,e.b-t.b),n._pointLabelItems=function(_,k,N){const C=[],H=_._pointLabels.length,U=_.options,Z=ji(U)/2,J=_.drawingArea,nt=U.pointLabels.centerPointLabels?j/H:0;for(let ot=0;ot<H;ot++){const ct=_.getPointPosition(ot,J+Z+N[ot],nt),gt=Math.round(pt(Nt(ct.angle+dt))),vt=k[ot],wt=d
vendor: 7,138 bytes, line 1
1a(ct.y,vt.h,gt),Ot=ha(gt),bt=fa(ct.x,vt.w,Ot);C.push({x:ct.x,y:wt,textAlign:Ot,left:bt,top:wt,right:bt+vt.w,bottom:wt+vt.h})}return C}(n,i,r)}(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,e,i,r){this.xCenter+=Math.floor((t-e)/2),this.yCenter+=Math.floor((i-r)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,e,i,r))}getIndexAngle(t){return Nt(t*(V/(this._pointLabels.length||1))+lt(this.options.startAngle||0))}getDistanceFromCenterForValue(t){if(T(t))return NaN;const e=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*e:(t-this.min)*e}getValueForDistanceFromCenter(t){if(T(t))return NaN;const e=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-e:this.min+e}getPointLabelContext(t){const e=this._pointLabels||[];if(t>=0&&t<e.length){const i=e[t];return ce(this.getContext(),{label:i,index:t,type:"pointLabel"})}}getPointPosition(t,e,i=0){const r=this.getIndexAngle(t)-dt+i;return{x:Math.cos(r)*e+this.xCenter,y:Math.sin(r)*e+this.yCenter,angle:r}}getPointPositionForValue(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){const{left:e,top:i,right:r,bottom:o}=this._pointLabelItems[t];return{left:e,top:i,right:r,bottom:o}}drawBackground(){const{backgroundColor:t,grid:{circular:e}}=this.options;if(t){const i=this.ctx;i.save(),i.beginPath(),qo(this,this.getDistanceFromCenterForValue(this._endValue),e,this._pointLabels.length),i.closePath(),i.fillStyle=t,i.fill(),i.restore()}}drawGrid(){const t=this.ctx,e=this.options,{angleLines:i,grid:r}=e,o=this._pointLabels.length;let s,a,l;if(e.pointLabels.display&&function(c,y){const{ctx:_,options:{pointLabels:k}}=c;for(let N=y-1;N>=0;N--){const C=k.setContext(c.getPointLabelContext(N)),H=Ut(C.font),{x:U,y:Z,textAlign:J,left:nt,top:ot,right:ct,bottom:gt}=c._pointLabelItems[N],{backdropColor:vt}=C;if(!T(vt)){const wt=xe(C.borderRadius),Ot=Yt(C.backdropPadding);_.fillStyle=vt;const bt=nt-Ot.left,Et=ot-Ot.top,St=ct-nt+Ot.width,Tt=gt-ot+Ot.height;Object.values(wt).some(yt=>0!==yt)?(_.beginPath(),De(_,{x:bt,y:Et,w:St,h:Tt,radius:wt}),_.fill()):_.fillRect(bt,Et,St,Tt)}be(_,c._pointLabels[N],U,Z+H.lineHeight/2,H,{color:C.color,textAlign:J,textBaseline:"middle"})}}(this,o),r.display&&this.ticks.forEach((c,y)=>{0!==y&&(a=this.getDistanceFromCenterForValue(c.value),function(_,k,N,C){const H=_.ctx,U=k.circular,{color:Z,lineWidth:J}=k;!U&&!C||!Z||!J||N<0||(H.save(),H.strokeStyle=Z,H.lineWidth=J,H.setLineDash(k.borderDash),H.lineDashOffset=k.borderDashOffset,H.beginPath(),qo(_,N,U,C),H.closePath(),H.stroke(),H.restore())}(this,r.setContext(this.getContext(y-1)),a,o))}),i.display){for(t.save(),s=o-1;s>=0;s--){const c=i.setContext(this.getPointLabelContext(s)),{color:y,lineWidth:_}=c;_&&y&&(t.lineWidth=_,t.strokeStyle=y,t.setLineDash(c.borderDash),t.lineDashOffset=c.borderDashOffset,a=this.getDistanceFromCenterForValue(e.ticks.reverse?this.min:this.max),l=this.getPointPosition(s,a),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(l.x,l.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,e=this.options,i=e.ticks;if(!i.display)return;const r=this.getIndexAngle(0);let o,s;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(r),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((a,l)=>{if(0===l&&!e.reverse)return;const c=i.setContext(this.getContext(l)),y=Ut(c.font);if(o=this.getDistanceFromCenterForValue(this.ticks[l].value),c.showLabelBackdrop){t.font=y.string,s=t.measureText(a.label).width,t.fillStyle=c.backdropColor;const _=Yt(c.backdropPadding);t.fillRect(-s/2-_.left,-o-y.size/2-_.top,s+_.width,y.size+_.height)}be(t,a.label,0,-o,y,{color:c.color})}),t.restore()}drawTitle(){}}on.id="radialLinear",on.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:tn.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:n=>n,padding:5,centerPointLabels:!1}},on.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},on.descriptors={angleLines:{_fallback:"grid"}};const qn={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Xt=Object.keys(qn);function pa(n,t){return n-t}function Fo(n,t){if(T(t))return null;const e=n._adapter,{parser:i,round:r,isoWeekday:o}=n._parseOpts;let s=t;return"function"==typeof i&&(s=i(s)),R(s)||(s="string"==typeof i?e.parse(s,i):e.parse(s)),null===s?null:(r&&(s="week"!==r||!it(o)&&!0!==o?e.startOf(s,r):e.startOf(s,"isoWeek",o)),+s)}function zo(n,t,e,i){const r=Xt.length;for(let o=Xt.indexOf(n);o<r-1;++o){const s=qn[Xt[o]];if(s.common&&Math.ceil((e-t)/((s.steps?s.steps:Number.MAX_SAFE_INTEGER)*s.size))<=i)return Xt[o]}return Xt[r-1]}function Ho(n,t,e){if(e){if(e.length){const{lo:i,hi:r}=_t(e,t);n[e[i]>=t?e[i]:e[r]]=!0}}else n[t]=!0}function Vo(n,t,e){const i=[],r={},o=t.length;let s,a;for(s=0;s<o;++s)a=t[s],r[a]=s,i.push({value:a,major:!1});return 0!==o&&e?function(l,c,y,_){const k=l._adapter,N=+k.startOf(c[0].value,_),C=c[c.length-1].value;let H,U;for(H=N;H<=C;H=+k.add(H,1,_))U=y[H],U>=0&&(c[U].major=!0);return c}(n,i,r,e):i}class sn extends Oe{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,e){const i=t.time||(t.time={}),r=this._adapter=new ao._date(t.adapters.date);r.init(e),O(i.displayFormats,r.formats()),this._parseOpts={parser:i.parser,round:i.round,isoWeekday:i.isoWeekday},super.init(t),this._normalized=e.normalized}parse(t,e){return void 0===t?null:Fo(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,e=this._adapter,i=t.time.unit||"day";let{min:r,max:o,minDefined:s,maxDefined:a}=this.getUserBounds();function l(c){s||isNaN(c.min)||(r=Math.min(r,c.min)),a||isNaN(c.max)||(o=Math.max(o,c.max))}s&&a||(l(this._getLabelBounds()),"ticks"===t.bounds&&"labels"===t.ticks.source||l(this.getMinMax(!1))),r=R(r)&&!isNaN(r)?r:+e.startOf(Date.now(),i),o=R(o)&&!isNaN(o)?o:+e.endOf(Date.now(),i)+1,this.min=Math.min(r,o-1),this.max=Math.max(r+1,o)}_getLabelBounds(){const t=this.getLabelTimestamps();let e=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;return t.length&&(e=t[0],i=t[t.length-1]),{min:e,max:i}}buildTicks(){const t=this.options,e=t.time,i=t.ticks,r="labels"===i.source?this.getLabelTimestamps():this._generate();"ticks"===t.bounds&&r.length&&(this.min=this._userMin||r[0],this.max=this._userMax||r[r.length-1]);const o=this.min,s=Lt(r,o,this.max);return this._unit=e.unit||(i.autoSkip?zo(e.minUnit,this.min,this.max,this._getLabelCapacity(o)
vendor: 5,536 bytes, line 1
1):function(a,l,c,y,_){for(let k=Xt.length-1;k>=Xt.indexOf(c);k--){const N=Xt[k];if(qn[N].common&&a._adapter.diff(_,y,N)>=l-1)return N}return Xt[c?Xt.indexOf(c):0]}(this,s.length,e.minUnit,this.min,this.max)),this._majorUnit=i.major.enabled&&"year"!==this._unit?function(a){for(let l=Xt.indexOf(a)+1,c=Xt.length;l<c;++l)if(qn[Xt[l]].common)return Xt[l]}(this._unit):void 0,this.initOffsets(r),t.reverse&&s.reverse(),Vo(this,s,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t){let e,i,r=0,o=0;this.options.offset&&t.length&&(e=this.getDecimalForValue(t[0]),r=1===t.length?1-e:(this.getDecimalForValue(t[1])-e)/2,i=this.getDecimalForValue(t[t.length-1]),o=1===t.length?i:(i-this.getDecimalForValue(t[t.length-2]))/2);const s=t.length<3?.5:.25;r=It(r,0,s),o=It(o,0,s),this._offsets={start:r,end:o,factor:1/(r+1+o)}}_generate(){const t=this._adapter,e=this.min,i=this.max,r=this.options,o=r.time,s=o.unit||zo(o.minUnit,e,i,this._getLabelCapacity(e)),a=E(o.stepSize,1),l="week"===s&&o.isoWeekday,c=it(l)||!0===l,y={};let _,k,N=e;if(c&&(N=+t.startOf(N,"isoWeek",l)),N=+t.startOf(N,c?"day":s),t.diff(i,e,s)>1e5*a)throw new Error(e+" and "+i+" are too far apart with stepSize of "+a+" "+s);const C="data"===r.ticks.source&&this.getDataTimestamps();for(_=N,k=0;_<i;_=+t.add(_,a,s),k++)Ho(y,_,C);return _!==i&&"ticks"!==r.bounds&&1!==k||Ho(y,_,C),Object.keys(y).sort((H,U)=>H-U).map(H=>+H)}getLabelForValue(t){const i=this.options.time;return this._adapter.format(t,i.tooltipFormat?i.tooltipFormat:i.displayFormats.datetime)}_tickFormatFunction(t,e,i,r){const o=this.options,s=o.time.displayFormats,a=this._unit,l=this._majorUnit,y=l&&s[l],_=i[e],N=this._adapter.format(t,r||(l&&y&&_&&_.major?y:a&&s[a])),C=o.ticks.callback;return C?h(C,[N,e,i],this):N}generateTickLabels(t){let e,i,r;for(e=0,i=t.length;e<i;++e)r=t[e],r.label=this._tickFormatFunction(r.value,e,t)}getDecimalForValue(t){return null===t?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const e=this._offsets,i=this.getDecimalForValue(t);return this.getPixelForDecimal((e.start+i)*e.factor)}getValueForPixel(t){const e=this._offsets,i=this.getDecimalForPixel(t)/e.factor-e.end;return this.min+i*(this.max-this.min)}_getLabelSize(t){const e=this.options.ticks,i=this.ctx.measureText(t).width,r=lt(this.isHorizontal()?e.maxRotation:e.minRotation),o=Math.cos(r),s=Math.sin(r),a=this._resolveTickFontOptions(0).size;return{w:i*o+a*s,h:i*s+a*o}}_getLabelCapacity(t){const e=this.options.time,i=e.displayFormats,r=i[e.unit]||i.millisecond,o=this._tickFormatFunction(t,0,Vo(this,[t],this._majorUnit),r),s=this._getLabelSize(o),a=Math.floor(this.isHorizontal()?this.width/s.w:this.height/s.h)-1;return a>0?a:1}getDataTimestamps(){let t,e,i=this._cache.data||[];if(i.length)return i;const r=this.getMatchingVisibleMetas();if(this._normalized&&r.length)return this._cache.data=r[0].controller.getAllParsedValues(this);for(t=0,e=r.length;t<e;++t)i=i.concat(r[t].controller.getAllParsedValues(this));return this._cache.data=this.normalize(i)}getLabelTimestamps(){const t=this._cache.labels||[];let e,i;if(t.length)return t;const r=this.getLabels();for(e=0,i=r.length;e<i;++e)t.push(Fo(this,r[e]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return Qt(t.sort(pa))}}function Fn(n,t,e){let i,r,o,s,a=0,l=n.length-1;e?(t>=n[a].pos&&t<=n[l].pos&&({lo:a,hi:l}=xt(n,"pos",t)),({pos:i,time:o}=n[a]),({pos:r,time:s}=n[l])):(t>=n[a].time&&t<=n[l].time&&({lo:a,hi:l}=xt(n,"time",t)),({time:i,pos:o}=n[a]),({time:r,pos:s}=n[l]));const c=r-i;return c?o+(s-o)*(t-i)/c:o}sn.id="time",sn.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}};class Bi extends sn{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(t);this._minPos=Fn(e,this.min),this._tableRange=Fn(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:e,max:i}=this,r=[],o=[];let s,a,l,c,y;for(s=0,a=t.length;s<a;++s)c=t[s],c>=e&&c<=i&&r.push(c);if(r.length<2)return[{time:e,pos:0},{time:i,pos:1}];for(s=0,a=r.length;s<a;++s)y=r[s+1],l=r[s-1],c=r[s],Math.round((y+l)/2)!==c&&o.push({time:c,pos:s/(a-1)});return o}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const e=this.getDataTimestamps(),i=this.getLabelTimestamps();return t=e.length&&i.length?this.normalize(e.concat(i)):e.length?e:i,t=this._cache.all=t,t}getDecimalForValue(t){return(Fn(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const e=this._offsets,i=this.getDecimalForPixel(t)/e.factor-e.end;return Fn(this._table,i*this._tableRange+this._minPos,!0)}}Bi.id="timeseries",Bi.defaults=sn.defaults;var Wo=Object.freeze({__proto__:null,CategoryScale:jn,LinearScale:Ci,LogarithmicScale:Ii,RadialLinearScale:on,TimeScale:sn,TimeSeriesScale:Bi});return Ht.register(fo,Wo,Pi,Co),Ht.helpers={...cs},Ht._adapters=ao,Ht.Animation=Br,Ht.Animations=vi,Ht.animator=ae,Ht.controllers=se.controllers.items,Ht.DatasetController=ie,Ht.Element=re,Ht.elements=Pi,Ht.Interaction=wr,Ht.layouts=Gt,Ht.platforms=Ir,Ht.Scale=Oe,Ht.Ticks=tn,Object.assign(Ht,fo,Wo,Pi,Co,Ir),Ht.Chart=Ht,typeof window<"u"&&(window.Chart=Ht),Ht}),function(M,T){"object"==typeof exports&&"object"==typeof module?module.exports=T():"function"==typeof define&&define.amd?define([],T):"object"==typeof exports?exp
vendor: 20,173 bytes, line 1
1orts.Quill=T():M.Quill=T()}(typeof self<"u"?self:this,function(){return function(Q){var M={};function T(q){if(M[q])return M[q].exports;var P=M[q]={i:q,l:!1,exports:{}};return Q[q].call(P.exports,P,P.exports,T),P.l=!0,P.exports}return T.m=Q,T.c=M,T.d=function(q,P,R){T.o(q,P)||Object.defineProperty(q,P,{configurable:!1,enumerable:!0,get:R})},T.n=function(q){var P=q&&q.__esModule?function(){return q.default}:function(){return q};return T.d(P,"a",P),P},T.o=function(q,P){return Object.prototype.hasOwnProperty.call(q,P)},T.p="",T(T.s=109)}([function(Q,M,T){"use strict";Object.defineProperty(M,"__esModule",{value:!0});var q=T(17),P=T(18),R=T(19),A=T(45),E=T(46),x=T(47),g=T(48),h=T(49),u=T(12),v=T(32),m=T(33),b=T(31),d=T(1);M.default={Scope:d.Scope,create:d.create,find:d.find,query:d.query,register:d.register,Container:q.default,Format:P.default,Leaf:R.default,Embed:g.default,Scroll:A.default,Block:x.default,Inline:E.default,Text:h.default,Attributor:{Attribute:u.default,Class:v.default,Style:m.default,Store:b.default}}},function(Q,M,T){"use strict";var b,q=this&&this.__extends||(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,p){d.__proto__=p}||function(d,p){for(var O in p)p.hasOwnProperty(O)&&(d[O]=p[O])},function(d,p){function O(){this.constructor=d}b(d,p),d.prototype=null===p?Object.create(p):(O.prototype=p.prototype,new O)});Object.defineProperty(M,"__esModule",{value:!0});var P=function(b){function d(p){var O=this;return(O=b.call(this,p="[Parchment] "+p)||this).message=p,O.name=O.constructor.name,O}return q(d,b),d}(Error);M.ParchmentError=P;var g,R={},A={},E={},x={};function v(b,d){var p;if(void 0===d&&(d=g.ANY),"string"==typeof b)p=x[b]||R[b];else if(b instanceof Text||b.nodeType===Node.TEXT_NODE)p=x.text;else if("number"==typeof b)b&g.LEVEL&g.BLOCK?p=x.block:b&g.LEVEL&g.INLINE&&(p=x.inline);else if(b instanceof HTMLElement){var O=(b.getAttribute("class")||"").split(/\s+/);for(var f in O)if(p=A[O[f]])break;p=p||E[b.tagName]}return null==p?null:d&g.LEVEL&p.scope&&d&g.TYPE&p.scope?p:null}M.DATA_KEY="__blot",function(b){b[b.TYPE=3]="TYPE",b[b.LEVEL=12]="LEVEL",b[b.ATTRIBUTE=13]="ATTRIBUTE",b[b.BLOT=14]="BLOT",b[b.INLINE=7]="INLINE",b[b.BLOCK=11]="BLOCK",b[b.BLOCK_BLOT=10]="BLOCK_BLOT",b[b.INLINE_BLOT=6]="INLINE_BLOT",b[b.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",b[b.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",b[b.ANY=15]="ANY"}(g=M.Scope||(M.Scope={})),M.create=function h(b,d){var p=v(b);if(null==p)throw new P("Unable to create "+b+" blot");var O=p,f=b instanceof Node||b.nodeType===Node.TEXT_NODE?b:O.create(d);return new O(f,d)},M.find=function u(b,d){return void 0===d&&(d=!1),null==b?null:null!=b[M.DATA_KEY]?b[M.DATA_KEY].blot:d?u(b.parentNode,d):null},M.query=v,M.register=function m(){for(var b=[],d=0;d<arguments.length;d++)b[d]=arguments[d];if(b.length>1)return b.map(function(f){return m(f)});var p=b[0];if("string"!=typeof p.blotName&&"string"!=typeof p.attrName)throw new P("Invalid definition");if("abstract"===p.blotName)throw new P("Cannot register abstract class");return x[p.blotName||p.attrName]=p,"string"==typeof p.keyName?R[p.keyName]=p:(null!=p.className&&(A[p.className]=p),null!=p.tagName&&(p.tagName=Array.isArray(p.tagName)?p.tagName.map(function(f){return f.toUpperCase()}):p.tagName.toUpperCase(),(Array.isArray(p.tagName)?p.tagName:[p.tagName]).forEach(function(f){(null==E[f]||null==p.className)&&(E[f]=p)}))),p}},function(Q,M,T){var q=T(51),P=T(11),R=T(3),A=T(20),x=function(g){this.ops=Array.isArray(g)?g:null!=g&&Array.isArray(g.ops)?g.ops:[]};x.prototype.insert=function(g,h){var u={};return 0===g.length?this:(u.insert=g,null!=h&&"object"==typeof h&&Object.keys(h).length>0&&(u.attributes=h),this.push(u))},x.prototype.delete=function(g){return g<=0?this:this.push({delete:g})},x.prototype.retain=function(g,h){if(g<=0)return this;var u={retain:g};return null!=h&&"object"==typeof h&&Object.keys(h).length>0&&(u.attributes=h),this.push(u)},x.prototype.push=function(g){var h=this.ops.length,u=this.ops[h-1];if(g=R(!0,{},g),"object"==typeof u){if("number"==typeof g.delete&&"number"==typeof u.delete)return this.ops[h-1]={delete:u.delete+g.delete},this;if("number"==typeof u.delete&&null!=g.insert&&"object"!=typeof(u=this.ops[(h-=1)-1]))return this.ops.unshift(g),this;if(P(g.attributes,u.attributes)){if("string"==typeof g.insert&&"string"==typeof u.insert)return this.ops[h-1]={insert:u.insert+g.insert},"object"==typeof g.attributes&&(this.ops[h-1].attributes=g.attributes),this;if("number"==typeof g.retain&&"number"==typeof u.retain)return this.ops[h-1]={retain:u.retain+g.retain},"object"==typeof g.attributes&&(this.ops[h-1].attributes=g.attributes),this}}return h===this.ops.length?this.ops.push(g):this.ops.splice(h,0,g),this},x.prototype.chop=function(){var g=this.ops[this.ops.length-1];return g&&g.retain&&!g.attributes&&this.ops.pop(),this},x.prototype.filter=function(g){return this.ops.filter(g)},x.prototype.forEach=function(g){this.ops.forEach(g)},x.prototype.map=function(g){return this.ops.map(g)},x.prototype.partition=function(g){var h=[],u=[];return this.forEach(function(v){(g(v)?h:u).push(v)}),[h,u]},x.prototype.reduce=function(g,h){return this.ops.reduce(g,h)},x.prototype.changeLength=function(){return this.reduce(function(g,h){return h.insert?g+A.length(h):h.delete?g-h.delete:g},0)},x.prototype.length=function(){return this.reduce(function(g,h){return g+A.length(h)},0)},x.prototype.slice=function(g,h){g=g||0,"number"!=typeof h&&(h=1/0);for(var u=[],v=A.iterator(this.ops),m=0;m<h&&v.hasNext();){var b;m<g?b=v.next(g-m):(b=v.next(h-m),u.push(b)),m+=A.length(b)}return new x(u)},x.prototype.compose=function(g){var h=A.iterator(this.ops),u=A.iterator(g.ops),v=[],m=u.peek();if(null!=m&&"number"==typeof m.retain&&null==m.attributes){for(var b=m.retain;"insert"===h.peekType()&&h.peekLength()<=b;)b-=h.peekLength(),v.push(h.next());m.retain-b>0&&u.next(m.retain-b)}for(var d=new x(v);h.hasNext()||u.hasNext();)if("insert"===u.peekType())d.push(u.next());else if("delete"===h.peekType())d.push(h.next());else{var p=Math.min(h.peekLength(),u.peekLength()),O=h.next(p),f=u.next(p);if("number"==typeof f.retain){var w={};"number"==typeof O.retain?w.retain=p:w.insert=O.insert;var z=A.attributes.compose(O.attributes,f.attributes,"number"==typeof O.retain);if(z&&(w.attributes=z),d.push(w),!u.hasNext()&&P(d.ops[d.ops.length-1],w)){var I=new x(h.rest());return d.concat(I).chop()}}else"number"==typeof f.delete&&"number"==typeof O.retain&&d.push(f)}return d.chop()},x.prototype.concat=function(g){var h=new x(this.ops.slice());return g.ops.length>0&&(h.push(g.ops[0]),h.ops=h.ops.concat(g.ops.slice(1))),h},x.prototype.diff=function(g,h){if(this.ops===g.ops)return new x;var u=[this,g].map(function(p){return p.map(function(O){if(null!=O.insert)return"string"==typeof O.insert?O.insert:"\0";throw new Error("diff() called "+(p===g?"on":"with")+" non-document")}).join("")}),v=new x,m=q(u[0],u[1],h),b=A.iterator(this.ops),d=A.iterator(g.ops);return m.forEach(function(p){for(var O=p[1].length;O>0;){var f=0;switch(p[0]){case q.INSERT:f=Math.min(d.peekLength(),O),v.push(d.next(f));break;case q.DELETE:f=Math.min(O,b.peekLength()),b.next(f),v.delete(f);break;case q.EQUAL:f=Math.min(b.peekLength(),d.peekLength(),O);var w=b.next(f),z=d.next(f);P(w.insert,z.insert)?v.retain(f,A.attributes.diff(w.attributes,z.attributes)):v.push(z).delete(f)}O-=f}}),v.chop()},x.prototype.eachLine=function(g,h){h=h||"\n";for(var u=A.iterator(this.ops),v=new x,m=0;u.hasNext();){if("insert"!==u.peekType())return;var b=u.peek(),d=A.length(b)-u.peekLength(),p="string"==typeof b.insert?b.insert.indexOf(h,d)-d:-1;if(p<0)v.push(u.next());else if(p>0)v.push(u.next(p));else{if(!1===g(v,u.next(1).attributes||{},m))return;m+=1,v=new x}}v.length()>0&&g(v,{},m)},x.prototype.transform=function(g,h){if(h=!!h,"number"==typeof g)return this.transformPosition(g,h);for(var u=A.iterator(this.ops),v=A.iterator(g.ops),m=new x;u.hasNext()||v.hasNext();)if("insert"!==u.peekType()||!h&&"insert"===v.peekType())if("insert"===v.peekType())m.push(v.next());else{var b=Math.min(u.peekLength(),v.peekLength()),d=u.next(b),p=v.next(b);if(d.delete)continue;p.delete?m.push(p):m.retain(b,A.attributes.transform(d.attributes,p.attributes,h))}else m.retain(A.length(u.next()));return m.chop()},x.prototype.transformPosition=function(g,h){h=!!h;for(var u=A.iterator(this.ops),v=0;u.hasNext()&&v<=g;){var m=u.peekLength(),b=u.peekType();u.next(),"delete"!==b?("insert"===b&&(v<g||!h)&&(g+=m),v+=m):g-=Math.min(m,g-v)}return g},Q.exports=x},function(Q,M){"use strict";var T=Object.prototype.hasOwnProperty,q=Object.prototype.toString,P=Object.defineProperty,R=Object.getOwnPropertyDescriptor,A=function(u){return"function"==typeof Array.isArray?Array.isArray(u):"[object Array]"===q.call(u)},E=function(u){if(!u||"[object Object]"!==q.call(u))return!1;var b,v=T.call(u,"constructor"),m=u.constructor&&u.constructor.prototype&&T.call(u.constructor.prototype,"isPrototypeOf");if(u.constructor&&!v&&!m)return!1;for(b in u);return typeof b>"u"||T.call(u,b)},x=function(u,v){P&&"__proto__"===v.name?P(u,v.name,{enumerable:!0,configurable:!0,value:v.newValue,writable:!0}):u[v.name]=v.newValue},g=function(u,v){if("__proto__"===v){if(!T.call(u,v))return;if(R)return R(u,v).value}return u[v]};Q.exports=function h(){var u,v,m,b,d,p,O=arguments[0],f=1,w=arguments.length,z=!1;for("boolean"==typeof O&&(z=O,O=arguments[1]||{},f=2),(null==O||"object"!=typeof O&&"function"!=typeof O)&&(O={});f<w;++f)if(null!=(u=arguments[f]))for(v in u)m=g(O,v),O!==(b=g(u,v))&&(z&&b&&(E(b)||(d=A(b)))?(d?(d=!1,p=m&&A(m)?m:[]):p=m&&E(m)?m:{},x(O,{name:v,newValue:h(z,p,b)})):typeof b<"u"&&x(O,{name:v,newValue:b}));return O}},function(Q,M,T){"use strict";Object.defineProperty(M,"__esModule",{value:!0}),M.default=M.BlockEmbed=M.bubbleFormats=void 0;var q=function(){function S(D,j){for(var V=0;V<j.length;V++){var Y=j[V];Y.enumerable=Y.enumerable||!1,Y.configurable=!0,"value"in Y&&(Y.writable=!0),Object.defineProperty(D,Y.key,Y)}}return function(D,j,V){return j&&S(D.prototype,j),V&&S(D,V),D}}(),P=function S(D,j,V){null===D&&(D=Function.prototype);var Y=Object.getOwnPropertyDescriptor(D,j);if(void 0===Y){var rt=Object.getPrototypeOf(D);return null===rt?void 0:S(rt,j,V)}if("value"in Y)return Y.value;var st=Y.get;return void 0===st?void 0:st.call(V)},A=O(T(3)),x=O(T(2)),h=O(T(0)),v=O(T(16)),b=O(T(6)),p=O(T(7));function O(S){return S&&S.__esModule?S:{default:S}}function f(S,D){if(!(S instanceof D))throw new TypeError("Cannot call a class as a function")}function w(S,D){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!D||"object"!=typeof D&&"function"!=typeof D?S:D}function z(S,D){if("function"!=typeof D&&null!==D)throw new TypeError("Super expression must either be null or a function, not "+typeof D);S.prototype=Object.create(D&&D.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),D&&(Object.setPrototypeOf?Object.setPrototypeOf(S,D):S.__proto__=D)}var B=function(S){function D(){return f(this,D),w(this,(D.__proto__||Object.getPrototypeOf(D)).apply(this,arguments))}return z(D,S),q(D,[{key:"attach",value:function(){P(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"attach",this).call(this),this.attributes=new h.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new x.default).insert(this.value(),(0,A.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(V,Y){var rt=h.default.query(V,h.default.Scope.BLOCK_ATTRIBUTE);null!=rt&&this.attributes.attribute(rt,Y)}},{key:"formatAt",value:function(V,Y,rt,st){this.format(rt,st)}},{key:"insertAt",value:function(V,Y,rt){if("string"==typeof Y&&Y.endsWith("\n")){var st=h.default.create(W.blotName);this.parent.insertBefore(st,0===V?this:this.next),st.insertAt(0,Y.slice(0,-1))}else P(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"insertAt",this).call(this,V,Y,rt)}}]),D}(h.default.Embed);B.scope=h.default.Scope.BLOCK_BLOT;var W=function(S){function D(j){f(this,D);var V=w(this,(D.__proto__||Object.getPrototypeOf(D)).call(this,j));return V.cache={},V}return z(D,S),q(D,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(h.default.Leaf).reduce(function(V,Y){return 0===Y.length()?V:V.insert(Y.value(),L(Y))},new x.default).insert("\n",L(this))),this.cache.delta}},{key:"deleteAt",value:function(V,Y){P(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"deleteAt",this).call(this,V,Y),this.cache={}}},{key:"formatAt",value:function(V,Y,rt,st){Y<=0||(h.default.query(rt,h.default.Scope.BLOCK)?V+Y===this.length()&&this.format(rt,st):P(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"formatAt",this).call(this,V,Math.min(Y,this.length()-V-1),rt,st),this.cache={})}},{key:"insertAt",value:function(V,Y,rt){if(null!=rt)return P(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"insertAt",this).call(this,V,Y,rt);if(0!==Y.length){var st=Y.split("\n"),dt=st.shift();dt.length>0&&(V<this.length()-1||null==this.children.tail?P(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"insertAt",this).call(this,Math.min(V,this.length()-1),dt):this.children.tail.insertAt(this.children.tail.length(),dt),this.cache={});var et=this;st.reduce(function(X,F){return(et=et.split(X,!0)).insertAt(0,F),F.length},V+dt.length)}}},{key:"insertBefore",value:function(V,Y){var rt=this.children.head;P(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"insertBefore",this).call(this,V,Y),rt instanceof v.default&&rt.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=P(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"length",this).call(this)+1),this.cache.length}},{key:"moveChildren",value:function(V,Y){P(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"moveChildren",this).call(this,V,Y),this.cache={}}},{key:"optimize",value:function(V){P(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"optimize",this).call(this,V),this.cache={}}},{key:"path",value:function(V){return P(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"path",this).call(this,V,!0)}},{key:"removeChild",value:function(V){P(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"removeChild",this).call(this,V),this.cache={}}},{key:"split",value:function(V){var Y=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(Y&&(0===V||V>=this.length()-1)){var rt=this.clone();return 0===V?(this.parent.insertBefore(rt,this),this):(this.parent.insertBefore(rt,this.next),rt)}var st=P(D.prototype.__proto__||Object.getPrototypeOf(D.prototype),"split",this).call(this,V,Y);return this.cache={},st}}]),D}(h.default.Block);function L(S){var D=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==S||("function"==typeof S.formats&&(D=(0,A.default)(D,S.formats())),null==S.parent||"scroll"==S.parent.blotName||S.parent.statics.scope!==S.statics.scope)?D:L(S.parent,D)}W.blotName="block",W.tagName="P",W.defaultChild="break",W.allowedChildren=[b.default,h.default.Embed,p.default],M.bubbleFormats=L,M.BlockEmbed=B,M.default=W},function(Q,M,T){"use strict";Object.defineProperty(M,"__esModule",{value:!0}),M.default=M.overload=M.expandConfig=void 0;var q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(et){return typeof et}:function(et){return et&&"function"==typeof Symbol&&et.constructor===Symbol&&et!==Symbol.prototype?"symbol":typeof et},P=function(){return function(X,F){if(Array.isArray(X))return X;if(Symbol.iterator in Object(X))return function et(X,F){var K=[],G=!0,at=!1,it=void 0;try{for(var tt,$=X[Symbol.iterator]();!(G=(tt=$.next()).done)&&(K.push(tt.value),!F||K.length!==F);G=!0);}catch(ut){at=!0,it=ut}finally{try{!G&&$.return&&$.return()}finally{if(at)throw it}}return K}(X,F);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),R=function(){function et(X,F){for(var K=0;K<F.length;K++){var G=F[K];G.enumerable=G.enumerable||!1,G.configurable=!0,"value"in G&&(G.writable=!0),Object.defineProperty(X,G.key,G)}}return function(X,F,K){return F&&et(X.prototype,F),K&&et(X,K),X}}();T(50);var E=L(T(2)),g=L(T(14)),u=L(T(8)),m=L(T(9)),d=L(T(0)),p=T(15),O=L(p),w=L(T(3)),I=L(T(10)),W=L(T(34));function L(et){return et&&et.__esModule?et:{default:et}}function S(et,X,F){return X in et?Object.defineProperty(et,X,{value:F,enumerable:!0,configurable:!0,writable:!0}):et[X]=F,et}var j=(0,I.default)("quill"),V=function(){function et(X){var F=this,K=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(function D(et,X){if(!(et instanceof X))throw new TypeError("Cannot call a class as a function")}(this,et),this.options=Y(X,K),this.container=this.options.container,null==this.container)return j.error("Invalid Quill container",X);this.options.debug&&et.debug(this.options.debug);var G=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new u.default,this.scroll=d.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new g.default(this.scroll),this.selection=new O.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(u.default.events.EDITOR_CHANGE,function(it){it===u.default.events.TEXT_CHANGE&&F.root.classList.toggle("ql-blank",F.editor.isBlank())}),this.emitter.on(u.default.events.SCROLL_UPDATE,function(it,$){var tt=F.selection.lastRange,ut=tt&&0===tt.length?tt.index:void 0;rt.call(F,function(){return F.editor.update(null,$,ut)},it)});var at=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+G+"<p><br></p></div>");this.setContents(at),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return R(et,null,[{key:"debug",value:function(F){!0===F&&(F="log"),I.default.level(F)}},{key:"find",value:function(F){return F.__quill||d.default.find(F)}},{key:"import",value:function(F){return null==this.imports[F]&&j.error("Cannot import "+F+". Are you sure it was registered?"),this.imports[F]}},{key:"register",value:function(F,K){var G=this,at=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!=typeof F){var it=F.attrName||F.blotName;"string"==typeof it?this.register("formats/"+it,F,K):Object.keys(F).forEach(function($){G.register($,F[$],K)})}else null!=this.imports[F]&&!at&&j.warn("Overwriting "+F+" with",K),this.imports[F]=K,(F.startsWith("blots/")||F.startsWith("formats/"))&&"abstract"!==K.blotName?d.default.register(K):F.startsWith("modules")&&"function"==typeof K.register&&K.register()}}]),R(et,[{key:"addContainer",value:function(F){var K=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof F){var G=F;(F=document.createElement("div")).classList.add(G)}return this.container.insertBefore(F,K),F}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(F,K,G){var at=this,it=st(F,K,G),$=P(it,4);return rt.call(this,function(){return at.editor.deleteText(F,K)},G=$[3],F=$[0],-1*(K=$[1]))}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var F=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(F),this.container.classList.toggle("ql-disabled",!F)}},{key:"focus",value:function(){var F=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=F,this.scrollIntoView()}},{key:"format",value:function(F,K){var G=this;return rt.call(this,function(){var it=G.getSelection(!0),$=new E.default;if(null==it)return $;if(d.default.query(F,d.default.Scope.BLOCK))$=G.editor.formatLine(it.index,it.length,S({},F,K));else{if(0===it.length)return G.selection.format(F,K),$;
1$=G.editor.formatText(it.index,it.length,S({},F,K))}return G.setSelection(it,u.default.sources.SILENT),$},arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.default.sources.API)}},{key:"formatLine",value:function(F,K,G,at,it){var tt,$=this,ut=st(F,K,G,at,it),lt=P(ut,4);return K=lt[1],tt=lt[2],rt.call(this,function(){return $.editor.formatLine(F,K,tt)},it=lt[3],F=lt[0],0)}},{key:"formatText",value:function(F,K,G,at,it){var tt,$=this,ut=st(F,K,G,at,it),lt=P(ut,4);return K=lt[1],tt=lt[2],rt.call(this,function(){return $.editor.formatText(F,K,tt)},it=lt[3],F=lt[0],0)}},{key:"getBounds",value:function(F){var G;G="number"==typeof F?this.selection.getBounds(F,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0):this.selection.getBounds(F.index,F.length);var at=this.container.getBoundingClientRect();return{bottom:G.bottom-at.top,height:G.height,left:G.left-at.left,right:G.right-at.left,top:G.top-at.top,width:G.width}}},{key:"getContents",value:function(){var F=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,K=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-F,G=st(F,K),at=P(G,2);return this.editor.getContents(F=at[0],K=at[1])}},{key:"getFormat",value:function(){var F=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0);return"number"==typeof F?this.editor.getFormat(F,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0):this.editor.getFormat(F.index,F.length)}},{key:"getIndex",value:function(F){return F.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(F){return this.scroll.leaf(F)}},{key:"getLine",value:function(F){return this.scroll.line(F)}},{key:"getLines",value:function(){var F=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,K=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof F?this.scroll.lines(F.index,F.length):this.scroll.lines(F,K)}},{key:"getModule",value:function(F){return this.theme.modules[F]}},{key:"getSelection",value:function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var F=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,K=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-F,G=st(F,K),at=P(G,2);return this.editor.getText(F=at[0],K=at[1])}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(F,K,G){var at=this;return rt.call(this,function(){return at.editor.insertEmbed(F,K,G)},arguments.length>3&&void 0!==arguments[3]?arguments[3]:et.sources.API,F)}},{key:"insertText",value:function(F,K,G,at,it){var tt,$=this,ut=st(F,0,G,at,it),lt=P(ut,4);return tt=lt[2],rt.call(this,function(){return $.editor.insertText(F,K,tt)},it=lt[3],F=lt[0],K.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(F,K,G){this.clipboard.dangerouslyPasteHTML(F,K,G)}},{key:"removeFormat",value:function(F,K,G){var at=this,it=st(F,K,G),$=P(it,4);return K=$[1],rt.call(this,function(){return at.editor.removeFormat(F,K)},G=$[3],F=$[0])}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(F){var K=this;return rt.call(this,function(){F=new E.default(F);var at=K.getLength(),it=K.editor.deleteText(0,at),$=K.editor.applyDelta(F),tt=$.ops[$.ops.length-1];return null!=tt&&"string"==typeof tt.insert&&"\n"===tt.insert[tt.insert.length-1]&&(K.editor.deleteText(K.getLength()-1,1),$.delete(1)),it.compose($)},arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.sources.API)}},{key:"setSelection",value:function(F,K,G){if(null==F)this.selection.setRange(null,K||et.sources.API);else{var at=st(F,K,G),it=P(at,4);G=it[3],this.selection.setRange(new p.Range(F=it[0],K=it[1]),G),G!==u.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(F){var K=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.sources.API,G=(new E.default).insert(F);return this.setContents(G,K)}},{key:"update",value:function(){var F=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.default.sources.USER,K=this.scroll.update(F);return this.selection.update(F),K}},{key:"updateContents",value:function(F){var K=this,G=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.sources.API;return rt.call(this,function(){return F=new E.default(F),K.editor.applyDelta(F,G)},G,!0)}}]),et}();
vendor: 4,686 bytes, line 1
1function Y(et,X){if((X=(0,w.default)(!0,{container:et,modules:{clipboard:!0,keyboard:!0,history:!0}},X)).theme&&X.theme!==V.DEFAULTS.theme){if(X.theme=V.import("themes/"+X.theme),null==X.theme)throw new Error("Invalid theme "+X.theme+". Did you register it?")}else X.theme=W.default;var F=(0,w.default)(!0,{},X.theme.DEFAULTS);[F,X].forEach(function(at){at.modules=at.modules||{},Object.keys(at.modules).forEach(function(it){!0===at.modules[it]&&(at.modules[it]={})})});var G=Object.keys(F.modules).concat(Object.keys(X.modules)).reduce(function(at,it){var $=V.import("modules/"+it);return null==$?j.error("Cannot load "+it+" module. Are you sure you registered it?"):at[it]=$.DEFAULTS||{},at},{});return null!=X.modules&&X.modules.toolbar&&X.modules.toolbar.constructor!==Object&&(X.modules.toolbar={container:X.modules.toolbar}),X=(0,w.default)(!0,{},V.DEFAULTS,{modules:G},F,X),["bounds","container","scrollingContainer"].forEach(function(at){"string"==typeof X[at]&&(X[at]=document.querySelector(X[at]))}),X.modules=Object.keys(X.modules).reduce(function(at,it){return X.modules[it]&&(at[it]=X.modules[it]),at},{}),X}function rt(et,X,F,K){if(this.options.strict&&!this.isEnabled()&&X===u.default.sources.USER)return new E.default;var G=null==F?null:this.getSelection(),at=this.editor.delta,it=et();if(null!=G&&(!0===F&&(F=G.index),null==K?G=dt(G,it,X):0!==K&&(G=dt(G,F,K,X)),this.setSelection(G,u.default.sources.SILENT)),it.length()>0){var $,ut,tt=[u.default.events.TEXT_CHANGE,it,at,X];($=this.emitter).emit.apply($,[u.default.events.EDITOR_CHANGE].concat(tt)),X!==u.default.sources.SILENT&&(ut=this.emitter).emit.apply(ut,tt)}return it}function st(et,X,F,K,G){var at={};return"number"==typeof et.index&&"number"==typeof et.length?"number"!=typeof X?(G=K,K=F,F=X,X=et.length,et=et.index):(X=et.length,et=et.index):"number"!=typeof X&&(G=K,K=F,F=X,X=0),"object"===(typeof F>"u"?"undefined":q(F))?(at=F,G=K):"string"==typeof F&&(null!=K?at[F]=K:G=F),[et,X,at,G=G||u.default.sources.API]}function dt(et,X,F,K){if(null==et)return null;var G=void 0,at=void 0;if(X instanceof E.default){var it=[et.index,et.index+et.length].map(function(lt){return X.transformPosition(lt,K!==u.default.sources.USER)}),$=P(it,2);G=$[0],at=$[1]}else{var tt=[et.index,et.index+et.length].map(function(lt){return lt<X||lt===X&&K===u.default.sources.USER?lt:F>=0?lt+F:Math.max(X,lt+F)}),ut=P(tt,2);G=ut[0],at=ut[1]}return new p.Range(G,at-G)}V.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},V.events=u.default.events,V.sources=u.default.sources,V.version="1.3.7",V.imports={delta:E.default,parchment:d.default,"core/module":m.default,"core/theme":W.default},M.expandConfig=Y,M.overload=st,M.default=V},function(Q,M,T){"use strict";Object.defineProperty(M,"__esModule",{value:!0});var q=function(){function b(d,p){for(var O=0;O<p.length;O++){var f=p[O];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(d,f.key,f)}}return function(d,p,O){return p&&b(d.prototype,p),O&&b(d,O),d}}(),P=function b(d,p,O){null===d&&(d=Function.prototype);var f=Object.getOwnPropertyDescriptor(d,p);if(void 0===f){var w=Object.getPrototypeOf(d);return null===w?void 0:b(w,p,O)}if("value"in f)return f.value;var z=f.get;return void 0===z?void 0:z.call(O)},A=g(T(7)),x=g(T(0));function g(b){return b&&b.__esModule?b:{default:b}}var m=function(b){function d(){return function h(b,d){if(!(b instanceof d))throw new TypeError("Cannot call a class as a function")}(this,d),function u(b,d){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!d||"object"!=typeof d&&"function"!=typeof d?b:d}(this,(d.__proto__||Object.getPrototypeOf(d)).apply(this,arguments))}return function v(b,d){if("function"!=typeof d&&null!==d)throw new TypeError("Super expression must either be null or a function, not "+typeof d);b.prototype=Object.create(d&&d.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(b,d):b.__proto__=d)}(d,b),q(d,[{key:"formatAt",value:function(O,f,w,z){if(d.compare(this.statics.blotName,w)<0&&x.default.query(w,x.default.Scope.BLOT)){var I=this.isolate(O,f);z&&I.wrap(w,z)}else P(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"formatAt",this).call(this,O,f,w,z)}},{key:"optimize",value:function(O){if(P(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"optimize",this).call(this,O),this.parent instanceof d&&d.compare(this.statics.blotName,this.parent.statics.blotName)>0){var f=this.parent.isolate(this.offset(),this.length());this.moveChildren(f),f.wrap(this)}}}
1],[{key:"compare",value:function(O,f){var w=d.order.indexOf(O),z=d.order.indexOf(f);return w>=0||z>=0?w-z:O===f?0:O<f?-1:1}}]),d}(x.default.Inline);m.allowedChildren=[m,x.default.Embed,A.default],m.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],M.default=m},function(Q,M,T){"use strict";Object.defineProperty(M,"__esModule",{value:!0});var g=function(h){function u(){return function A(h,u){if(!(h instanceof u))throw new TypeError("Cannot call a class as a function")}(this,u),function E(h,u){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!u||"object"!=typeof u&&"function"!=typeof u?h:u}(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return function x(h,u){if("function"!=typeof u&&null!==u)throw new TypeError("Super expression must either be null or a function, not "+typeof u);h.prototype=Object.create(u&&u.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(h,u):h.__proto__=u)}(u,h),u}(function R(h){return h&&h.__esModule?h:{default:h}}(T(0)).default.Text);M.default=g},function(Q,M,T){"use strict";Object.defineProperty(M,"__esModule",{value:!0});var q=function(){function p(O,f){for(var w=0;w<f.length;w++){var z=f[w];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty(O,z.key,z)}}return function(O,f,w){return f&&p(O.prototype,f),w&&p(O,w),O}}(),P=function p(O,f,w){null===O&&(O=Function.prototype);var z=Object.getOwnPropertyDescriptor(O,f);if(void 0===z){var I=Object.getPrototypeOf(O);return null===I?void 0:p(I,f,w)}if("value"in z)return z.value;var B=z.get;return void 0===B?void 0:B.call(w)},A=g(T(54));function g(p){return p&&p.__esModule?p:{default:p}}var m=(0,g(T(10)).default)("quill:events");["selectionchange","mousedown","mouseup","click"].forEach(function(p){document.addEventListener(p,function(){for(var O=arguments.length,f=Array(O),w=0;w<O;w++)f[w]=arguments[w];[].slice.call(document.querySelectorAll(".ql-container")).forEach(function(z){var I;z.__quill&&z.__quill.emitter&&(I=z.__quill.emitter).handleDOM.apply(I,f)})})});var d=function(p){function O(){!function h(p,O){if(!(p instanceof O))throw new TypeError("Cannot call a class as a function")}(this,O);var f=function u(p,O){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!O||"object"!=typeof O&&"function"!=typeof O?p:O}(this,(O.__proto__||Object.getPrototypeOf(O)).call(this));return f.listeners={},f.on("error",m.error),f}return function v(p,O){if("function"!=typeof O&&null!==O)throw new TypeError("Super expression must either be null or a function, not "+typeof O);p.prototype=Object.create(O&&O.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),O&&(Object.setPrototypeOf?Object.setPrototypeOf(p,O):p.__proto__=O)}(O,p),q(O,[{key:"emit",value:function(){m.log.apply(m,arguments),P(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(w){for(var z=arguments.length,I=Array(z>1?z-1:0),B=1;B<z;B++)I[B-1]=arguments[B];(this.listeners[w.type]||[]).forEach(function(W){var L=W.node,S=W.handler;(w.target===L||L.contains(w.target))&&S.apply(void 0,[w].concat(I))})}},{key:"listenDOM",value:function(w,z,I){this.listeners[w]||(this.listeners[w]=[]),this.listeners[w].push({node:z,handler:I})}}]),O}(A.default);d.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},d.sources={API:"api",SILENT:"silent",USER:"user"},M.default=d},function(Q,M,T){"use strict";Object.defineProperty(M,"__esModule",{value:!0});var P=function R(A){var E=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(function q(R,A){if(!(R instanceof A))throw new TypeError("Cannot call a class as a function")})(this,R),this.quill=A,this.options=E};P.DEFAULTS={},M.default=P},function(Q,M,T){"use strict";Object.defineProperty(M,"__esModule",{value:!0});var q=["error","warn","log","info"],P="warn";function R(E){if(q.indexOf(E)<=q.indexOf(P)){for(var x,g=arguments.length,h=Array(g>1?g-1:0),u=1;u<g;u++)h[u-1]=arguments[u];(x=console)[E].apply(x,h)}}function A(E){return q.reduce(function(x,g){return x[g]=R.bind(console,g,E),x},{})}R.level=A.level=function(E){P=E},M.default=A},function(Q,M,T){var q=Array.prototype.slice,P=T(52),R=T(53),A=Q.exports=function(h,u,v){return v||(v={}),h===u||(h instanceof Date&&u instanceof Date?h.getTime()===u.getTime():!h||!u||"object"!=typeof h&&"object"!=typeof u?v.strict?h===u:h==u:function g(h,u,v){var m,b;if(E(h)||E(u)||h.prototype!==u.prototype)return!1;if(R(h))return!!R(u)&&(h=q.call(h),u=q.call(u),A(h,u,v));if(x(h)){if(!x(u)||h.length!==u.length)return!1;for(m=0;m<h.length;m++)if(h[m]!==u[m])return!1;return!0}try{var d=P(h),p=P(u)}catch{return!1}if(d.length!=p.length)return!1;for(d.sort(),p.sort(),m=d.length-1;m>=0;m--)if(d[m]!=p[m])return!1;for(m=d.length-1;m>=0;m--)if(!A(h[b=d[m]],u[b],v))return!1;return typeof h==typeof u}(h,u,v))};function E(h){return null==h}function x(h){return!(!h||"object"!=typeof h||"number"!=typeof h.length||"function"!=typeof h.copy||"function"!=typeof h.slice||h.length>0&&"number"!=typeof h[0])}},function(Q,M,T){"use strict";Object.defineProperty(M,"__esModule",{value:!0});var q=T(1),P=function(){function R(A,E,x){void 0===x&&(x={}),this.attrName=A,this.keyName=E,this.scope=null!=x.scope?x.scope&q.Scope.LEVEL|q.Scope.TYPE&q.Scope.ATTRIBUTE:q.Scope.ATTRIBUTE,null!=x.whitelist&&(this.whitelist=
1x.whitelist)}return R.keys=function(A){return[].map.call(A.attributes,function(E){return E.name})},R.prototype.add=function(A,E){return!!this.canAdd(A,E)&&(A.setAttribute(this.keyName,E),!0)},R.prototype.canAdd=function(A,E){return null!=q.query(A,q.Scope.BLOT&(this.scope|q.Scope.TYPE))&&(null==this.whitelist||("string"==typeof E?this.whitelist.indexOf(E.replace(/["']/g,""))>-1:this.whitelist.indexOf(E)>-1))},R.prototype.remove=function(A){A.removeAttribute(this.keyName)},R.prototype.value=function(A){var E=A.getAttribute(this.keyName);return this.canAdd(A,E)&&E?E:""},R}();M.default=P},function(Q,M,T){"use strict";Object.defineProperty(M,"__esModule",{value:!0}),M.default=M.Code=void 0;var q=function(){return function(W,L){if(Array.isArray(W))return W;if(Symbol.iterator in Object(W))return function B(W,L){var S=[],D=!0,j=!1,V=void 0;try{for(var rt,Y=W[Symbol.iterator]();!(D=(rt=Y.next()).done)&&(S.push(rt.value),!L||S.length!==L);D=!0);}catch(st){j=!0,V=st}finally{try{!D&&Y.return&&Y.return()}finally{if(j)throw V}}return S}(W,L);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),P=function(){function B(W,L){for(var S=0;S<L.length;S++){var D=L[S];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(W,D.key,D)}}return function(W,L,S){return L&&B(W.prototype,L),S&&B(W,S),W}}(),R=function B(W,L,S){null===W&&(W=Function.prototype);var D=Object.getOwnPropertyDescriptor(W,L);if(void 0===D){var j=Object.getPrototypeOf(W);return null===j?void 0:B(j,L,S)}if("value"in D)return D.value;var V=D.get;return void 0===V?void 0:V.call(S)},E=p(T(2)),g=p(T(0)),u=p(T(4)),m=p(T(6)),d=p(T(7));function p(B){return B&&B.__esModule?B:{default:B}}function O(B,W){if(!(B instanceof W))throw new TypeError("Cannot call a class as a function")}function f(B,W){if(!B)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!W||"object"!=typeof W&&"function"!=typeof W?B:W}function w(B,W){if("function"!=typeof W&&null!==W)throw new TypeError("Super expression must either be null or a function, not "+typeof W);B.prototype=Object.create(W&&W.prototype,{constructor:{value:B,enumerable:!1,writable:!0,configurable:!0}}),W&&(Object.setPrototypeOf?Object.setPrototypeOf(B,W):B.__proto__=W)}var z=function(B){function W(){return O(this,W),f(this,(W.__proto__||Object.getPrototypeOf(W)).apply(this,arguments))}return w(W,B),W}(m.default);z.blotName="code",z.tagName="CODE";var I=function(B){function W(){return O(this,W),f(this,(W.__proto__||Object.getPrototypeOf(W)).apply(this,arguments))}return w(W,B),P(W,[{key:"delta",value:function(){var S=this,D=this.domNode.textContent;return D.endsWith("\n")&&(D=D.slice(0,-1)),D.split("\n").reduce(function(j,V){return j.insert(V).insert("\n",S.formats())},new E.default)}},{key:"format",value:function(S,D){if(S!==this.statics.blotName||!D){var j=this.descendant(d.default,this.length()-1),Y=q(j,1)[0];Y?.deleteAt(Y.length()-1,1),R(W.prototype.__proto__||Object.getPrototypeOf(W.prototype),"format",this).call(this,S,D)}}},{key:"formatAt",value:function(S,D,j,V){if(0!==D&&null!=g.default.query(j,g.default.Scope.BLOCK)&&(j!==this.statics.blotName||V!==this.statics.formats(this.domNode))){var Y=this.newlineIndex(S);if(!(Y<0||Y>=S+D)){var rt=this.newlineIndex(S,!0)+1,st=Y-rt+1,dt=this.isolate(rt,st),et=dt.next;dt.format(j,V),et instanceof W&&et.formatAt(0,S-rt+D-st,j,V)}}}},{key:"insertAt",value:function(S,D,j){if(null==j){var V=this.descendant(d.default,S),Y=q(V,2);Y[0].insertAt(Y[1],D)}}},{key:"length",value:function(){var S=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?S:S+1}},{key:"newlineIndex",value:function(S){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])return this.domNode.textContent.slice(0,S).lastIndexOf("\n");var j=this.domNode.textContent.slice(S).indexOf("\n");return j>-1?S+j:-1}},{key:"optimize",value:function(S){this.domNode.textContent.endsWith("\n")||this.appendChild(g.default.create("text","\n")),R(W.prototype.__proto__||Object.getPrototypeOf(W.prototype),"optimize",this).call(this,S);var D=this.next;null!=D&&D.prev===this&&D.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===D.statics.formats(D.domNo
1de)&&(D.optimize(S),D.moveChildren(this),D.remove())}},{key:"replace",value:function(S){R(W.prototype.__proto__||Object.getPrototypeOf(W.prototype),"replace",this).call(this,S),[].slice.call(this.domNode.querySelectorAll("*")).forEach(function(D){var j=g.default.find(D);null==j?D.parentNode.removeChild(D):j instanceof g.default.Embed?j.remove():j.unwrap()})}}],[{key:"create",value:function(S){var D=R(W.__proto__||Object.getPrototypeOf(W),"create",this).call(this,S);return D.setAttribute("spellcheck",!1),D}},{key:"formats",value:function(){return!0}}]),W}(u.default);I.blotName="code-block",I.tagName="PRE",I.TAB="  ",M.Code=z,M.default=I},function(Q,M,T){"use strict";Object.defineProperty(M,"__esModule",{value:!0});var q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(et){return typeof et}:function(et){return et&&"function"==typeof Symbol&&et.constructor===Symbol&&et!==Symbol.prototype?"symbol":typeof et},P=function(){return function(X,F){if(Array.isArray(X))return X;if(Symbol.iterator in Object(X))return function et(X,F){var K=[],G=!0,at=!1,it=void 0;try{for(var tt,$=X[Symbol.iterator]();!(G=(tt=$.next()).done)&&(K.push(tt.value),!F||K.length!==F);G=!0);}catch(ut){at=!0,it=ut}finally{try{!G&&$.return&&$.return()}finally{if(at)throw it}}return K}(X,F);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),R=function(){function et(X,F){for(var K=0;K<F.length;K++){var G=F[K];G.enumerable=G.enumerable||!1,G.configurable=!0,"value"in G&&(G.writable=!0),Object.defineProperty(X,G.key,G)}}return function(X,F,K){return F&&et(X.prototype,F),K&&et(X,K),X}}(),E=D(T(2)),g=D(T(20)),u=D(T(0)),m=D(T(13)),d=D(T(24)),p=T(4),O=D(p),w=D(T(16)),I=D(T(21)),W=D(T(11)),S=D(T(3));function D(et){return et&&et.__esModule?et:{default:et}}var Y=/^[ -~]*$/,rt=function(){function et(X){(function V(et,X){if(!(et instanceof X))throw new TypeError("Cannot call a class as a function")})(this,et),this.scroll=X,this.delta=this.getDelta()}return R(et,[{key:"applyDelta",value:function(F){var K=this,G=!1;this.scroll.update();var at=this.scroll.length();return this.scroll.batchStart(),F=function dt(et){return et.reduce(function(X,F){if(1===F.insert){var K=(0,I.default)(F.attributes);return delete K.image,X.insert({image:F.attributes.image},K)}if(null!=F.attributes&&(!0===F.attributes.list||!0===F.attributes.bullet)&&((F=(0,I.default)(F)).attributes.list?F.attributes.list="ordered":(F.attributes.list="bullet",delete F.attributes.bullet)),"string"==typeof F.insert){var G=F.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return X.insert(G,F.attributes)}return X.push(F)},new E.default)}(F),F.reduce(function(it,$){var tt=$.retain||$.delete||$.insert.length||1,ut=$.attributes||{};if(null!=$.insert){if("string"==typeof $.insert){var lt=$.insert;lt.endsWith("\n")&&G&&(G=!1,lt=lt.slice(0,-1)),it>=at&&!lt.endsWith("\n")&&(G=!0),K.scroll.insertAt(it,lt);var pt=K.scroll.line(it),kt=P(pt,2),Pt=kt[0],Mt=kt[1],jt=(0,S.default)({},(0,p.bubbleFormats)(Pt));if(Pt instanceof O.default){var Nt=Pt.descendant(u.default.Leaf,Mt),Wt=P(Nt,1);jt=(0,S.default)(jt,(0,p.bubbleFormats)(Wt[0]))}ut=g.default.attributes.diff(jt,ut)||{}}else if("object"===q($.insert)){var ft=Object.keys($.insert)[0];if(null==ft)return it;K.scroll.insertAt(it,ft,$.insert[ft])}at+=tt}return Object.keys(ut).forEach(function(ht){K.scroll.formatAt(it,tt,ht,ut[ht])}),it+tt},0),F.reduce(function(it,$){return"number"==typeof $.delete?(K.scroll.deleteAt(it,$.delete),it):it+($.retain||$.insert.length||1)},0),this.scroll.batchEnd(),this.update(F)}},{key:"deleteText",value:function(F,K){return this.scroll.deleteAt(F,K),this.update((new E.default).retain(F).delete(K))}},{key:"formatLine",value:function(F,K){var G=this,at=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(at).forEach(function(it){if(null==G.scroll.whitelist||G.scroll.whitelist[it]){var $=G.scroll.lines(F,Math.max(K,1)),tt=K;$.forEach(function(ut){var lt=ut.length();if(ut instanceof m.default){var pt=F-ut.offset(G.scroll),kt=ut.newlineIndex(pt+tt)-pt+1;ut.formatAt(pt,kt,it,at[it])}else ut.format(it,at[it]);tt-=lt})}}),this.scroll.optimize(),this.update((new E.default).retain(F).retain(K,(0,I.default)(at)))}},{key:"formatText",value:function(F,K){var G=this,at=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(at).forEach(function(it){G.scroll.formatAt(F,K,it,at[it])}),this.update((new E.default).retain(F).retain(K,(0,I.default)(at)))}},{key:"getContents",value:function(F,K){return this.delta.slice(F,F+K)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce(function(F,K){return F.concat(K.delta())},new E.default)}},{key:"getFormat",value:function(F){var K=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,G=[],at=[];
vendor: 5,414 bytes, line 1
10===K?this.scroll.path(F).forEach(function($){var ut=P($,1)[0];ut instanceof O.default?G.push(ut):ut instanceof u.default.Leaf&&at.push(ut)}):(G=this.scroll.lines(F,K),at=this.scroll.descendants(u.default.Leaf,F,K));var it=[G,at].map(function($){if(0===$.length)return{};for(var tt=(0,p.bubbleFormats)($.shift());Object.keys(tt).length>0;){var ut=$.shift();if(null==ut)return tt;tt=st((0,p.bubbleFormats)(ut),tt)}return tt});return S.default.apply(S.default,it)}},{key:"getText",value:function(F,K){return this.getContents(F,K).filter(function(G){return"string"==typeof G.insert}).map(function(G){return G.insert}).join("")}},{key:"insertEmbed",value:function(F,K,G){return this.scroll.insertAt(F,K,G),this.update((new E.default).retain(F).insert(function j(et,X,F){return X in et?Object.defineProperty(et,X,{value:F,enumerable:!0,configurable:!0,writable:!0}):et[X]=F,et}({},K,G)))}},{key:"insertText",value:function(F,K){var G=this,at=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return K=K.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(F,K),Object.keys(at).forEach(function(it){G.scroll.formatAt(F,K.length,it,at[it])}),this.update((new E.default).retain(F).insert(K,(0,I.default)(at)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var F=this.scroll.children.head;return!(F.statics.blotName!==O.default.blotName||F.children.length>1)&&F.children.head instanceof w.default}},{key:"removeFormat",value:function(F,K){var G=this.getText(F,K),at=this.scroll.line(F+K),it=P(at,2),$=it[0],tt=it[1],ut=0,lt=new E.default;null!=$&&(ut=$ instanceof m.default?$.newlineIndex(tt)-tt+1:$.length()-tt,lt=$.delta().slice(tt,tt+ut-1).insert("\n"));var kt=this.getContents(F,K+ut).diff((new E.default).insert(G).concat(lt)),Pt=(new E.default).retain(F).concat(kt);return this.applyDelta(Pt)}},{key:"update",value:function(F){var K=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],G=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,at=this.delta;if(1===K.length&&"characterData"===K[0].type&&K[0].target.data.match(Y)&&u.default.find(K[0].target)){var it=u.default.find(K[0].target),$=(0,p.bubbleFormats)(it),tt=it.offset(this.scroll),ut=K[0].oldValue.replace(d.default.CONTENTS,""),lt=(new E.default).insert(ut),pt=(new E.default).insert(it.value());F=(new E.default).retain(tt).concat(lt.diff(pt,G)).reduce(function(Pt,Mt){return Mt.insert?Pt.insert(Mt.insert,$):Pt.push(Mt)},new E.default),this.delta=at.compose(F)}else this.delta=this.getDelta(),(!F||!(0,W.default)(at.compose(F),this.delta))&&(F=at.diff(this.delta,G));return F}}]),et}();function st(et,X){return Object.keys(X).reduce(function(F,K){return null==et[K]||(X[K]===et[K]?F[K]=X[K]:Array.isArray(X[K])?X[K].indexOf(et[K])<0&&(F[K]=X[K].concat([et[K]])):F[K]=[X[K],et[K]]),F},{})}M.default=rt},function(Q,M,T){"use strict";Object.defineProperty(M,"__esModule",{value:!0}),M.default=M.Range=void 0;var q=function(){return function(W,L){if(Array.isArray(W))return W;if(Symbol.iterator in Object(W))return function B(W,L){var S=[],D=!0,j=!1,V=void 0;try{for(var rt,Y=W[Symbol.iterator]();!(D=(rt=Y.next()).done)&&(S.push(rt.value),!L||S.length!==L);D=!0);}catch(st){j=!0,V=st}finally{try{!D&&Y.return&&Y.return()}finally{if(j)throw V}}return S}(W,L);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),P=function(){function B(W,L){for(var S=0;S<L.length;S++){var D=L[S];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(W,D.key,D)}}return function(W,L,S){return L&&B(W.prototype,L),S&&B(W,S),W}}(),A=d(T(0)),x=d(T(21)),h=d(T(11)),v=d(T(8));function d(B){return B&&B.__esModule?B:{default:B}}function p(B){if(Array.isArray(B)){for(var W=0,L=Array(B.length);W<B.length;W++)L[W]=B[W];return L}return Array.from(B)}function O(B,W){if(!(B instanceof W))throw new TypeError("Cannot call a class as a function")}var f=(0,d(T(10)).default)("quill:selection"),w=function B(W){var L=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;O(this,B),this.index=W,this.length=L},z=function(){function B(W,L){var S=this;O(this,B),this.emitter=L,this.scroll=W,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=A.default.create("cursor",this),this.lastRange=this.savedRange=new w(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,function(){S.mouseDown||setTimeout(S.update.bind(S,v.default.sources.USER),1)}),this.emitter.on(v.default.events.EDITOR_CHANGE,function(D,j){D===v.default.events.TEXT_CHANGE&&j.length()>0&&S.update(v.default.sources.SILENT)}),this.emitter.on(v.default.events.SCROLL_BEFORE_UPDATE,function(){if(S.hasFocus()){var D=S.getNativeRange();null!=D&&D.start.node!==S.cursor.textNode&&S.emitter.once(v.default.events.SCROLL_UPDATE,function(){try{S.setNativeRange(D.start.node,D.start.offset,D.end.node,D.end.offset)}catch{}})}}),this.emitter.on(v.default.events.SCROLL_OPTIMIZE,function(D,j){if(j.range){var V=j.range;S.setNativeRange(V.startNode,V.startOffset,V.endNode,V.endOffset)}}),this.update(v.default.sources.SILENT)}return P(B,[{key:"handleComposition",value:function(){var L=this;this.root.addEventListener("compositionstart",function(){L.composing=!0}),this.root.addEventListener("compositionend",function(){if(L.composing=!1,L.cursor.parent){var S=L.cursor.restore(
vendor: 5,708 bytes, line 1
1);if(!S)return;setTimeout(function(){L.setNativeRange(S.startNode,S.startOffset,S.endNode,S.endOffset)},1)}})}},{key:"handleDragging",value:function(){var L=this;this.emitter.listenDOM("mousedown",document.body,function(){L.mouseDown=!0}),this.emitter.listenDOM("mouseup",document.body,function(){L.mouseDown=!1,L.update(v.default.sources.USER)})}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(L,S){if(null==this.scroll.whitelist||this.scroll.whitelist[L]){this.scroll.update();var D=this.getNativeRange();if(null!=D&&D.native.collapsed&&!A.default.query(L,A.default.Scope.BLOCK)){if(D.start.node!==this.cursor.textNode){var j=A.default.find(D.start.node,!1);if(null==j)return;if(j instanceof A.default.Leaf){var V=j.split(D.start.offset);j.parent.insertBefore(this.cursor,V)}else j.insertBefore(this.cursor,D.start.node);this.cursor.attach()}this.cursor.format(L,S),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(L){var S=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,D=this.scroll.length();L=Math.min(L,D-1),S=Math.min(L+S,D-1)-L;var j=void 0,V=this.scroll.leaf(L),Y=q(V,2),rt=Y[0],st=Y[1];if(null==rt)return null;var dt=rt.position(st,!0),et=q(dt,2);j=et[0],st=et[1];var X=document.createRange();if(S>0){X.setStart(j,st);var F=this.scroll.leaf(L+S),K=q(F,2);if(null==(rt=K[0]))return null;var G=rt.position(st=K[1],!0),at=q(G,2);return X.setEnd(j=at[0],st=at[1]),X.getBoundingClientRect()}var it="left",$=void 0;return j instanceof Text?(st<j.data.length?(X.setStart(j,st),X.setEnd(j,st+1)):(X.setStart(j,st-1),X.setEnd(j,st),it="right"),$=X.getBoundingClientRect()):($=rt.domNode.getBoundingClientRect(),st>0&&(it="right")),{bottom:$.top+$.height,height:$.height,left:$[it],right:$[it],top:$.top,width:0}}},{key:"getNativeRange",value:function(){var L=document.getSelection();if(null==L||L.rangeCount<=0)return null;var S=L.getRangeAt(0);if(null==S)return null;var D=this.normalizeNative(S);return f.info("getNativeRange",D),D}},{key:"getRange",value:function(){var L=this.getNativeRange();return null==L?[null,null]:[this.normalizedToRange(L),L]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(L){var S=this,D=[[L.start.node,L.start.offset]];L.native.collapsed||D.push([L.end.node,L.end.offset]);var j=D.map(function(rt){var st=q(rt,2),dt=st[0],et=st[1],X=A.default.find(dt,!0),F=X.offset(S.scroll);return 0===et?F:X instanceof A.default.Container?F+X.length():F+X.index(dt,et)}),V=Math.min(Math.max.apply(Math,p(j)),this.scroll.length()-1),Y=Math.min.apply(Math,[V].concat(p(j)));return new w(Y,V-Y)}},{key:"normalizeNative",value:function(L){if(!I(this.root,L.startContainer)||!L.collapsed&&!I(this.root,L.endContainer))return null;var S={start:{node:L.startContainer,offset:L.startOffset},end:{node:L.endContainer,offset:L.endOffset},native:L};return[S.start,S.end].forEach(function(D){for(var j=D.node,V=D.offset;!(j instanceof Text)&&j.childNodes.length>0;)if(j.childNodes.length>V)j=j.childNodes[V],V=0;else{if(j.childNodes.length!==V)break;V=(j=j.lastChild)instanceof Text?j.data.length:j.childNodes.length+1}D.node=j,D.offset=V}),S}},{key:"rangeToNative",value:function(L){var S=this,D=L.collapsed?[L.index]:[L.index,L.index+L.length],j=[],V=this.scroll.length();return D.forEach(function(Y,rt){Y=Math.min(V-1,Y);var dt=S.scroll.leaf(Y),et=q(dt,2),F=et[1],K=et[0].position(F,0!==rt),G=q(K,2);j.push(G[0],F=G[1])}),j.length<2&&(j=j.concat(j)),j}},{key:"scrollIntoView",value:function(L){var S=this.lastRange;if(null!=S){var D=this.getBounds(S.index,S.length);if(null!=D){var j=this.scroll.length()-1,V=this.scroll.line(Math.min(S.index,j)),rt=q(V,1)[0],st=rt;if(S.length>0){var dt=this.scroll.line(Math.min(S.index+S.length,j));st=q(dt,1)[0]}if(null!=rt&&null!=st){var X=L.getBoundingClientRect();D.top<X.top?L.scrollTop-=X.top-D.top:D.bottom>X.bottom&&(L.scrollTop+=D.bottom-X.bottom)}}}}},{key:"setNativeRange",value:function(L,S){var D=arguments.length>2&&void 0!==arguments[2]?arguments[2]:L,j=arguments.length>3&&void 0!==arguments[3]?arguments[3]:S,V=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(f.info("setNativeRange",L,S,D,j),null==L||null!=this.root.parentNode&&null!=L.parentNode&&null!=D.parentNode){var Y=document.getSelection();if(null!=Y)if(null!=L){this.hasFocus()||this.root.focus();var rt=(this.getNativeRange()||{}).native;if(null==rt||V||L!==rt.startContainer||S!==rt.startOffset||D!==rt.endContainer||j!==rt.endOffset){"BR"==L.tagName&&(S=[].indexOf.call(L.parentNode.childNodes,L),L=L.parentNode),"BR"==D.tagName&&(j=[].indexOf.call(D.parentNode.childNodes,D),D=D.parentNode);var st=document.createRange();st.setStart(L,S),st.setEnd(D,j),Y.removeAllRanges(),Y.addRange(st)}}else Y.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(L){var S=arguments.length>1&&void 0!==arguments[1]&&arguments[1],D=arguments.length>2&&void 0!==arguments[2]?arguments[2]:v.default.sources.API;if("string"==typeof S&&(D=S,S=!1),f.info("setRange",L),null!=L){var j=this.rangeToNative(L);this.setNativeRange.apply(this,p(j).concat([S]))}else this.setNativeRange(null);this.update(D)}},{key:"update",value:function(){var L=arguments.length>0&&void 0!==arguments[0]?arguments[0]:v.default.sources.USER,S=this.lastRange,D=this.getRange(),j=q(D,2),Y=j[1];if(this.lastRange=j[0],null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,h.default)(S,this.lastRange)){var rt;!this.composing&&null!=Y&&Y.native.collapsed&&Y.start.node!==this.cursor.textNode&&this.cursor.restore(
1);var dt,st=[v.default.events.SELECTION_CHANGE,(0,x.default)(this.lastRange),(0,x.default)(S),L];(rt=this.emitter).emit.apply(rt,[v.default.events.EDITOR_CHANGE].concat(st)),L!==v.default.sources.SILENT&&(dt=this.emitter).emit.apply(dt,st)}}}]),B}();function I(B,W){return W instanceof Text&&(W=W.parentNode),B.contains(W)}M.Range=w,M.default=z},function(Q,M,T){"use strict";Object.defineProperty(M,"__esModule",{value:!0});var q=function(){function v(m,b){for(var d=0;d<b.length;d++){var p=b[d];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(m,p.key,p)}}return function(m,b,d){return b&&v(m.prototype,b),d&&v(m,d),m}}(),P=function v(m,b,d){null===m&&(m=Function.prototype);var p=Object.getOwnPropertyDescriptor(m,b);if(void 0===p){var O=Object.getPrototypeOf(m);return null===O?void 0:v(O,b,d)}if("value"in p)return p.value;var f=p.get;return void 0===f?void 0:f.call(d)},u=function(v){function m(){return function x(v,m){if(!(v instanceof m))throw new TypeError("Cannot call a class as a function")}(this,m),function g(v,m){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!m||"object"!=typeof m&&"function"!=typeof m?v:m}(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return function h(v,m){if("function"!=typeof m&&null!==m)throw new TypeError("Super expression must either be null or a function, not "+typeof m);v.prototype=Object.create(m&&m.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(v,m):v.__proto__=m)}(m,v),q(m,[{key:"insertInto",value:function(d,p){0===d.children.length?P(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"insertInto",this).call(this,d,p):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),m}(function E(v){return v&&v.__esModule?v:{default:v}}(T(0)).default.Embed);u.blotName="break",u.tagName="BR",M.default=u},function(Q,M,T){"use strict";var g,q=this&&this.__extends||(g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,u){h.__proto__=u}||function(h,u){for(var v in u)u.hasOwnProperty(v)&&(h[v]=u[v])},function(h,u){function v(){this.constructor=h}g(h,u),h.prototype=null===u?Object.create(u):(v.prototype=u.prototype,new v)});Object.defineProperty(M,"__esModule",{value:!0});var P=T(44),R=T(30),A=T(1),E=function(g){function h(u){var v=g.call(this,u)||this;return v.build(),v}return q(h,g),h.prototype.appendChild=function(u){this.insertBefore(u)},h.prototype.attach=function(){g.prototype.attach.call(this),this.children.forEach(function(u){u.attach()})},h.prototype.build=function(){var u=this;this.children=new P.default,[].slice.call(this.domNode.childNodes).reverse().forEach(function(v){try{var m=x(v);u.insertBefore(m,u.children.head||void 0)}catch(b){if(b instanceof A.ParchmentError)return;throw b}})},h.prototype.deleteAt=function(u,v){if(0===u&&v===this.length())return this.remove();this.children.forEachAt(u,v,function(m,b,d){m.deleteAt(b,d)})},h.prototype.descendant=function(u,v){var m=this.children.find(v),b=m[0],d=m[1];return null==u.blotName&&u(b)||null!=u.blotName&&b instanceof u?[b,d]:b instanceof h?b.descendant(u,d):[null,-1]},h.prototype.descendants=function(u,v,m){void 0===v&&(v=0),void 0===m&&(m=Number.MAX_VALUE);var b=[],d=m;return this.children.forEachAt(v,m,function(p,O,f){(null==u.blotName&&u(p)||null!=u.blotName&&p instanceof u)&&b.push(p),p instanceof h&&(b=b.concat(p.descendants(u,O,d))),d-=f}),b},h.prototype.detach=function(){this.children.forEach(function(u){u.detach()}),g.prototype.detach.call(this)},h.prototype.formatAt=function(u,v,m,b){this.children.forEachAt(u,v,function(d,p,O){d.formatAt(p,O,m,b)})},h.prototype.insertAt=function(u,v,m){var b=this.children.find(u),d=b[0];if(d)d.insertAt(b[1],v,m);else{var O=null==m?A.create("text",v):A.create(v,m);this.appendChild(O)}},h.prototype.insertBefore=function(u,v){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some(function(m){return u instanceof m}))throw new A.ParchmentError("Cannot insert "+u.statics.blotName+" into "+this.statics.blotName);u.insertInto(this,v)},h.prototype.length=function(){return this.children.reduce(function(u,v){return u+v.length()},0)}
vendor: 5,080 bytes, line 1
1,h.prototype.moveChildren=function(u,v){this.children.forEach(function(m){u.insertBefore(m,v)})},h.prototype.optimize=function(u){if(g.prototype.optimize.call(this,u),0===this.children.length)if(null!=this.statics.defaultChild){var v=A.create(this.statics.defaultChild);this.appendChild(v),v.optimize(u)}else this.remove()},h.prototype.path=function(u,v){void 0===v&&(v=!1);var m=this.children.find(u,v),b=m[0],d=m[1],p=[[this,u]];return b instanceof h?p.concat(b.path(d,v)):(null!=b&&p.push([b,d]),p)},h.prototype.removeChild=function(u){this.children.remove(u)},h.prototype.replace=function(u){u instanceof h&&u.moveChildren(this),g.prototype.replace.call(this,u)},h.prototype.split=function(u,v){if(void 0===v&&(v=!1),!v){if(0===u)return this;if(u===this.length())return this.next}var m=this.clone();return this.parent.insertBefore(m,this.next),this.children.forEachAt(u,this.length(),function(b,d,p){b=b.split(d,v),m.appendChild(b)}),m},h.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},h.prototype.update=function(u,v){var m=this,b=[],d=[];u.forEach(function(p){p.target===m.domNode&&"childList"===p.type&&(b.push.apply(b,p.addedNodes),d.push.apply(d,p.removedNodes))}),d.forEach(function(p){if(!(null!=p.parentNode&&"IFRAME"!==p.tagName&&document.body.compareDocumentPosition(p)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var O=A.find(p);null!=O&&(null==O.domNode.parentNode||O.domNode.parentNode===m.domNode)&&O.detach()}}),b.filter(function(p){return p.parentNode==m.domNode}).sort(function(p,O){return p===O?0:p.compareDocumentPosition(O)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1}).forEach(function(p){var O=null;null!=p.nextSibling&&(O=A.find(p.nextSibling));var f=x(p);(f.next!=O||null==f.next)&&(null!=f.parent&&f.parent.removeChild(m),m.insertBefore(f,O||void 0))})},h}(R.default);function x(g){var h=A.find(g);if(null==h)try{h=A.create(g)}catch{h=A.create(A.Scope.INLINE),[].slice.call(g.childNodes).forEach(function(v){h.domNode.appendChild(v)}),g.parentNode&&g.parentNode.replaceChild(h.domNode,g),h.attach()}return h}M.default=E},function(Q,M,T){"use strict";var g,q=this&&this.__extends||(g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,u){h.__proto__=u}||function(h,u){for(var v in u)u.hasOwnProperty(v)&&(h[v]=u[v])},function(h,u){function v(){this.constructor=h}g(h,u),h.prototype=null===u?Object.create(u):(v.prototype=u.prototype,new v)});Object.defineProperty(M,"__esModule",{value:!0});var P=T(12),R=T(31),A=T(17),E=T(1),x=function(g){function h(u){var v=g.call(this,u)||this;return v.attributes=new R.default(v.domNode),v}return q(h,g),h.formats=function(u){return"string"==typeof this.tagName||(Array.isArray(this.tagName)?u.tagName.toLowerCase():void 0)},h.prototype.format=function(u,v){var m=E.query(u);m instanceof P.default?this.attributes.attribute(m,v):v&&null!=m&&(u!==this.statics.blotName||this.formats()[u]!==v)&&this.replaceWith(u,v)},h.prototype.formats=function(){var u=this.attributes.values(),v=this.statics.formats(this.domNode);return null!=v&&(u[this.statics.blotName]=v),u},h.prototype.replaceWith=function(u,v){var m=g.prototype.replaceWith.call(this,u,v);return this.attributes.copy(m),m},h.prototype.update=function(u,v){var m=this;g.prototype.update.call(this,u,v),u.some(function(b){return b.target===m.domNode&&"attributes"===b.type})&&this.attributes.build()},h.prototype.wrap=function(u,v){var m=g.prototype.wrap.call(this,u,v);return m instanceof h&&m.statics.scope===this.statics.scope&&this.attributes.move(m),m},h}(A.default);M.default=x},function(Q,M,T){"use strict";var E,q=this&&this.__extends||(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,g){x.__proto__=g}||function(x,g){for(var h in g)g.hasOwnProperty(h)&&(x[h]=g[h])},function(x,g){function h(){this.constructor=x}E(x,g),x.prototype=null===g?Object.create(g):(h.prototype=g.prototype,new h)});Object.defineProperty(M,"__esModule",{value:!0});var P=T(30),R=T(1),A=function(E){function x(){return null!==E&&E.apply(this,arguments)||this}return q(x,E),x.value=function(g){return!0},x.prototype.index=function(g,h){return this.domNode===g||this.domNode.compareDocumentPosition(g)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(h,1):-1},x.prototype.position=function(g,h){var u=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return g>0&&(u+=1),[this.parent.domNode,u]},x.prototype.value=function(){var g;return(g={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,g},x.scope=R.Scope.INLINE_BLOT,x}(P.default);M.default=A},function(Q,M,T){var q=T(11),P=T(3),R={attributes:{compose:function(E,x,g){"object"!=typeof E&&(E={}),"object"!=typeof x&&(x={});var h=P(!0,{},x);for(var u in g||(h=Object.keys(h).reduce(function(v,m){return null!=h[m]&&(v[m]=h[m]),v},{})),E)void 0!==E[u]&&void 0===x[u]&&(h[u]=E[u]);return Object.keys(h).length>0?h:void 0},diff:function(E,x){"object"!=typeof E&&(E={}),"object"!=typeof x&&(x={});var g=Object.keys(E).concat(Object.keys(x)).reduce(function(h,u){return q(E[u],x[u])||(h[u]=void 0===x[u]?null:x[u]),h},{});return Object.keys(g).length>
10?g:void 0},transform:function(E,x,g){if("object"!=typeof E)return x;if("object"==typeof x){if(!g)return x;var h=Object.keys(x).reduce(function(u,v){return void 0===E[v]&&(u[v]=x[v]),u},{});return Object.keys(h).length>0?h:void 0}}},iterator:function(E){return new A(E)},length:function(E){return"number"==typeof E.delete?E.delete:"number"==typeof E.retain?E.retain:"string"==typeof E.insert?E.insert.length:1}};function A(E){this.ops=E,this.index=0,this.offset=0}A.prototype.hasNext=function(){return this.peekLength()<1/0},A.prototype.next=function(E){E||(E=1/0);var x=this.ops[this.index];if(x){var g=this.offset,h=R.length(x);if(E>=h-g?(E=h-g,this.index+=1,this.offset=0):this.offset+=E,"number"==typeof x.delete)return{delete:E};var u={};return x.attributes&&(u.attributes=x.attributes),"number"==typeof x.retain?u.retain=E:u.insert="string"==typeof x.insert?x.insert.substr(g,E):x.insert,u}return{retain:1/0}},A.prototype.peek=function(){return this.ops[this.index]},A.prototype.peekLength=function(){return this.ops[this.index]?R.length(this.ops[this.index])-this.offset:1/0},A.prototype.peekType=function(){return this.ops[this.index]?"number"==typeof this.ops[this.index].delete?"delete":"number"==typeof this.ops[this.index].retain?"retain":"insert":"retain"},A.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var E=this.offset,x=this.index,g=this.next(),h=this.ops.slice(this.index);return this.offset=E,this.index=x,[g].concat(h)}return[]},Q.exports=R},function(Q,M){var T=function(){"use strict";function q(m,b){return null!=b&&m instanceof b}var P,R,A;try{P=Map}catch{P=function(){}}try{R=Set}catch{R=function(){}}try{A=Promise}catch{A=function(){}}function E(m,b,d,p,O){"object"==typeof b&&(d=b.depth,p=b.prototype,O=b.includeNonEnumerable,b=b.circular);var f=[],w=[],z=typeof Buffer<"u";return typeof b>"u"&&(b=!0),typeof d>"u"&&(d=1/0),function I(B,W){if(null===B)return null;if(0===W)return B;var L,S;if("object"!=typeof B)return B;if(q(B,P))L=new P;else if(q(B,R))L=new R;else if(q(B,A))L=new A(function(X,F){B.then(function(K){X(I(K,W-1))},function(K){F(I(K,W-1))})});else if(E.__isArray(B))L=[];else if(E.__isRegExp(B))L=new RegExp(B.source,v(B)),B.lastIndex&&(L.lastIndex=B.lastIndex);else if(E.__isDate(B))L=new Date(B.getTime());else{if(z&&Buffer.isBuffer(B))return L=Buffer.allocUnsafe?Buffer.allocUnsafe(B.length):new Buffer(B.length),B.copy(L),L;q(B,Error)?L=Object.create(B):typeof p>"u"?(S=Object.getPrototypeOf(B),L=Object.create(S)):(L=Object.create(p),S=p)}if(b){var D=f.indexOf(B);if(-1!=D)return w[D];f.push(B),w.push(L)}for(var j in q(B,P)&&B.forEach(function(X,F){var K=I(F,W-1),G=I(X,W-1);L.set(K,G)}),q(B,R)&&B.forEach(function(X){var F=I(X,W-1);L.add(F)}),B){var V;S&&(V=Object.getOwnPropertyDescriptor(S,j)),(!V||null!=V.set)&&(L[j]=I(B[j],W-1))}if(Object.getOwnPropertySymbols){var Y=Object.getOwnPropertySymbols(B);for(j=0;j<Y.length;j++){var rt=Y[j];(st=Object.getOwnPropertyDescriptor(B,rt))&&!st.enumerable&&!O||(L[rt]=I(B[rt],W-1),st.enumerable||Object.defineProperty(L,rt,{enumerable:!1}))}}if(O){var dt=Object.getOwnPropertyNames(B);for(j=0;j<dt.length;j++){var st,et=dt[j];(st=Object.getOwnPropertyDescriptor(B,et))&&st.enumerable||(L[et]=I(B[et],W-1),Object.defineProperty(L,et,{enumerable:!1}))}}return L}(m,d)}function x(m){return Object.prototype.toString.call(m)}function v(m){var b="";return m.global&&(b+="g"),m.ignoreCase&&(b+="i"),m.multiline&&(b+="m"),b}return E.clonePrototype=function(b){if(null===b)return null;var d=function(){};return d.prototype=b,new d},E.__objToStr=x,E.__isDate=function g(m){return"object"==typeof m&&"[object Date]"===x(m)},E.__isArray=function h(m){return"object"==typeof m&&"[object Array]"===x(m)},E.__isRegExp=function u(m){return"object"==typeof m&&"[object RegExp]"===x(m)},E.__getRegExpFlags=v,E}();"object"==typeof Q&&Q.exports&&(Q.exports=T)},function(Q,M,T){"use strict";Object.defineProperty(M,"__esModule",{value:!0});var q=function(){return function(S,D){if(Array.isArray(S))return S;if(Symbol.iterator in Object(S))return function L(S,D){var j=[],V=!0,Y=!1,rt=void 0;try{for(var dt,st=S[Symbol.iterator]();!(V=(dt=st.next()).done)&&(j.push(dt.value),!D||j.length!==D);V=!0);}catch(et){Y=!0,rt=et}finally{try{!V&&st.return&&st.return()}finally{if(Y)throw rt}}return j}(S,D);
1throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),P=function(){function L(S,D){for(var j=0;j<D.length;j++){var V=D[j];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(S,V.key,V)}}return function(S,D,j){return D&&L(S.prototype,D),j&&L(S,j),S}}(),R=function L(S,D,j){null===S&&(S=Function.prototype);var V=Object.getOwnPropertyDescriptor(S,D);if(void 0===V){var Y=Object.getPrototypeOf(S);return null===Y?void 0:L(Y,D,j)}if("value"in V)return V.value;var rt=V.get;return void 0===rt?void 0:rt.call(j)},E=f(T(0)),g=f(T(8)),h=T(4),u=f(h),m=f(T(16)),d=f(T(13)),O=f(T(25));function f(L){return L&&L.__esModule?L:{default:L}}function B(L){return L instanceof u.default||L instanceof h.BlockEmbed}var W=function(L){function S(D,j){!function w(L,S){if(!(L instanceof S))throw new TypeError("Cannot call a class as a function")}(this,S);var V=function z(L,S){if(!L)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!S||"object"!=typeof S&&"function"!=typeof S?L:S}(this,(S.__proto__||Object.getPrototypeOf(S)).call(this,D));return V.emitter=j.emitter,Array.isArray(j.whitelist)&&(V.whitelist=j.whitelist.reduce(function(Y,rt){return Y[rt]=!0,Y},{})),V.domNode.addEventListener("DOMNodeInserted",function(){}),V.optimize(),V.enable(),V}return function I(L,S){if("function"!=typeof S&&null!==S)throw new TypeError("Super expression must either be null or a function, not "+typeof S);L.prototype=Object.create(S&&S.prototype,{constructor:{value:L,enumerable:!1,writable:!0,configurable:!0}}),S&&(Object.setPrototypeOf?Object.setPrototypeOf(L,S):L.__proto__=S)}(S,L),P(S,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(j,V){var Y=this.line(j),rt=q(Y,2),st=rt[0],dt=rt[1],et=this.line(j+V),F=q(et,1)[0];if(R(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"deleteAt",this).call(this,j,V),null!=F&&st!==F&&dt>0){if(st instanceof h.BlockEmbed||F instanceof h.BlockEmbed)return void this.optimize();if(st instanceof d.default){var K=st.newlineIndex(st.length(),!0);if(K>-1&&(st=st.split(K+1))===F)return void this.optimize()}else if(F instanceof d.default){var G=F.newlineIndex(0);G>-1&&F.split(G+1)}st.moveChildren(F,F.children.head instanceof m.default?null:F.children.head),st.remove()}this.optimize()}},{key:"enable",value:function(){this.domNode.setAttribute("contenteditable",!(arguments.length>0&&void 0!==arguments[0])||arguments[0])}},{key:"formatAt",value:function(j,V,Y,rt){null!=this.whitelist&&!this.whitelist[Y]||(R(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"formatAt",this).call(this,j,V,Y,rt),this.optimize())}},{key:"insertAt",value:function(j,V,Y){if(null==Y||null==this.whitelist||this.whitelist[V]){if(j>=this.length())if(null==Y||null==E.default.query(V,E.default.Scope.BLOCK)){var rt=E.default.create(this.statics.defaultChild);this.appendChild(rt),null==Y&&V.endsWith("\n")&&(V=V.slice(0,-1)),rt.insertAt(0,V,Y)}else{var st=E.default.create(V,Y);this.appendChild(st)}else R(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"insertAt",this).call(this,j,V,Y);this.optimize()}}},{key:"insertBefore",value:function(j,V){if(j.statics.scope===E.default.Scope.INLINE_BLOT){var Y=E.default.create(this.statics.defaultChild);Y.appendChild(j),j=Y}R(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"insertBefore",this).call(this,j,V)}},{key:"leaf",value:function(j){return this.path(j).pop()||[null,-1]}},{key:"line",value:function(j){return j===this.length()?this.line(j-1):this.descendant(B,j)}},{key:"lines",value:function(){return function rt(st,dt,et){var X=[],F=et;return st.children.forEachAt(dt,et,function(K,G,at){B(K)?X.push(K):K instanceof E.default.Container&&(X=X.concat(rt(K,G,F))),F-=at}),X}(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE)}},{key:"optimize",value:function(){var j=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],V=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(R(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"optimize",this).call(this,j,V),j.length>0&&this.emitter.emit(g.default.events.SCROLL_OPTIMIZE,j,V))}},{key:"path",value:function(j){return R(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"path",this).call(this,j).slice(1)}},{key:"update",value:function(j){if(!0!==this.batch){var V=g.default.sources.USER;"string"==typeof j&&(V=j),Array.isArray(j)||(j=this.observer.takeRecords()),j.length>0&&this.emitter.emit(g.default.events.SCROLL_BEFORE_UPDATE,V,j),R(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"update",this).call(this,j.concat([])),j.length>0&&this.emitter.emit(g.default.events.SCROLL_UPDATE,V,j)}}}]),S}(E.default.Scroll);W.blotName="scroll",W.className="ql-editor",W.tagName="DIV",W.defaultChild="block",W.allowedChildren=[u.default,h.BlockEmbed,O.default],M.default=W},function(Q,M,T){"use strict";Object.defineProperty(M,"__esModule",{value:!0}),M.SHORTKEY=M.default=void 0;var q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function($){return typeof $}:function($){return $&&"function"==typeof Symbol&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},P=function(){return function(tt,ut){if(Array.isArray(tt))return tt;if(Symbol.iterator in Object(tt))return function $(tt,ut){var lt=[],pt=!0,kt=!1,Pt=void 0;try{for(var jt,Mt=tt[Symbol.iterator]();!(pt=(jt=Mt.next()).done)&&(lt.push(jt.value),!ut||lt.length!==ut);pt=!0);}catch(Nt){kt=!0,Pt=Nt}finally{try{!pt&&Mt.return&&Mt.return()}finally{if(kt)throw Pt}}return lt}(tt,ut);
1throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),R=function(){function $(tt,ut){for(var lt=0;lt<ut.length;lt++){var pt=ut[lt];pt.enumerable=pt.enumerable||!1,pt.configurable=!0,"value"in pt&&(pt.writable=!0),Object.defineProperty(tt,pt.key,pt)}}return function(tt,ut,lt){return ut&&$(tt.prototype,ut),lt&&$(tt,lt),tt}}(),E=L(T(21)),g=L(T(11)),u=L(T(3)),m=L(T(2)),d=L(T(20)),O=L(T(0)),w=L(T(5)),I=L(T(10)),W=L(T(9));function L($){return $&&$.__esModule?$:{default:$}}function S($,tt,ut){return tt in $?Object.defineProperty($,tt,{value:ut,enumerable:!0,configurable:!0,writable:!0}):$[tt]=ut,$}var Y=(0,I.default)("quill:keyboard"),rt=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",st=function($){function tt(ut,lt){!function D($,tt){if(!($ instanceof tt))throw new TypeError("Cannot call a class as a function")}(this,tt);var pt=function j($,tt){if(!$)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!tt||"object"!=typeof tt&&"function"!=typeof tt?$:tt}(this,(tt.__proto__||Object.getPrototypeOf(tt)).call(this,ut,lt));return pt.bindings={},Object.keys(pt.options.bindings).forEach(function(kt){"list autofill"===kt&&null!=ut.scroll.whitelist&&!ut.scroll.whitelist.list||pt.options.bindings[kt]&&pt.addBinding(pt.options.bindings[kt])}),pt.addBinding({key:tt.keys.ENTER,shiftKey:null},K),pt.addBinding({key:tt.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},function(){}),/Firefox/i.test(navigator.userAgent)?(pt.addBinding({key:tt.keys.BACKSPACE},{collapsed:!0},et),pt.addBinding({key:tt.keys.DELETE},{collapsed:!0},X)):(pt.addBinding({key:tt.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},et),pt.addBinding({key:tt.keys.DELETE},{collapsed:!0,suffix:/^.?$/},X)),pt.addBinding({key:tt.keys.BACKSPACE},{collapsed:!1},F),pt.addBinding({key:tt.keys.DELETE},{collapsed:!1},F),pt.addBinding({key:tt.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},et),pt.listen(),pt}return function V($,tt){if("function"!=typeof tt&&null!==tt)throw new TypeError("Super expression must either be null or a function, not "+typeof tt);$.prototype=Object.create(tt&&tt.prototype,{constructor:{value:$,enumerable:!1,writable:!0,configurable:!0}}),tt&&(Object.setPrototypeOf?Object.setPrototypeOf($,tt):$.__proto__=tt)}(tt,$),R(tt,null,[{key:"match",value:function(lt,pt){return pt=it(pt),!["altKey","ctrlKey","metaKey","shiftKey"].some(function(kt){return!!pt[kt]!==lt[kt]&&null!==pt[kt]})&&pt.key===(lt.which||lt.keyCode)}}]),R(tt,[{key:"addBinding",value:function(lt){var pt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},kt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},Pt=it(lt);if(null==Pt||null==Pt.key)return Y.warn("Attempted to add invalid keyboard binding",Pt);"function"==typeof pt&&(pt={handler:pt}),"function"==typeof kt&&(kt={handler:kt}),Pt=(0,u.default)(Pt,pt,kt),this.bindings[Pt.key]=this.bindings[Pt.key]||[],this.bindings[Pt.key].push(Pt)}},{key:"listen",value:function(){var lt=this;this.quill.root.addEventListener("keydown",function(pt){if(!pt.defaultPrevented){var Pt=(lt.bindings[pt.which||pt.keyCode]||[]).filter(function(zt){return tt.match(pt,zt)});if(0!==Pt.length){var Mt=lt.quill.getSelection();if(null!=Mt&&lt.quill.hasFocus()){var jt=lt.quill.getLine(Mt.index),Nt=P(jt,2),Wt=Nt[0],It=Nt[1],ft=lt.quill.getLeaf(Mt.index),ht=P(ft,2),_t=ht[0],xt=ht[1],mt=0===Mt.length?[_t,xt]:lt.quill.getLeaf(Mt.index+Mt.length),Lt=P(mt,2),Rt=Lt[0],Dt=Lt[1],Zt=_t instanceof O.default.Text?_t.value().slice(0,xt):"",Qt=Rt instanceof O.default.Text?Rt.value().slice(Dt):"",qt={collapsed:0===Mt.length,empty:0===Mt.length&&Wt.length()<=1,format:lt.quill.getFormat(Mt),offset:It,prefix:Zt,suffix:Qt};Pt.some(function(zt){if(null!=zt.collapsed&&zt.collapsed!==qt.collapsed||null!=zt.empty&&zt.empty!==qt.empty||null!=zt.offset&&zt.offset!==qt.offset)return!1;if(Array.isArray(zt.format)){if(zt.format.every(function(Jt){return null==qt.format[Jt]}))return!1}else if("object"===q(zt.format)&&!Object.keys(zt.format).every(function(Jt){return!0===zt.format[Jt]?null!=qt.format[Jt]:!1===zt.format[Jt]?null==qt.format[Jt]:(0,g.default)(zt.format[Jt],qt.format[Jt])}))return!1;return!(null!=zt.prefix&&!zt.prefix.test(qt.prefix)||null!=zt.suffix&&!zt.suffix.test(qt.suffix))&&!0!==zt.handler.call(lt,Mt,qt)})&&pt.preventDefault()}}}})}}]),tt}(W.default);function dt($,tt){var ut;return S(ut={key:$,shiftKey:tt,altKey:null},$===st.keys.LEFT?"prefix":"suffix",/^$/),S(ut,"handler",function(kt){var Pt=kt.index;$===st.keys.RIGHT&&(Pt+=kt.length+1);var Mt=this.quill.getLeaf(Pt);return!(P(Mt,1)[0]instanceof O.default.Embed&&($===st.keys.LEFT?tt?this.quill.setSelection(kt.index-1,kt.length+1,w.default.sources.USER):this.quill.setSelection(kt.index-1,w.default.sources.USER):tt?this.quill.setSelection(kt.index,kt.length+1,w.default.sources.USER):this.quill.setSelection(kt.index+kt.length+1,w.default.sources.USER),1))}),ut}function et($,tt){if(!(0===$.index||this.quill.getLength()<=1)){var ut=this.quill.getLine($.index),pt=P(ut,1)[0],kt={};
vendor: 5,901 bytes, line 1
1if(0===tt.offset){var Pt=this.quill.getLine($.index-1),jt=P(Pt,1)[0];if(null!=jt&&jt.length()>1){var Nt=pt.formats(),Wt=this.quill.getFormat($.index-1,1);kt=d.default.attributes.diff(Nt,Wt)||{}}}var It=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(tt.prefix)?2:1;this.quill.deleteText($.index-It,It,w.default.sources.USER),Object.keys(kt).length>0&&this.quill.formatLine($.index-It,It,kt,w.default.sources.USER),this.quill.focus()}}function X($,tt){var ut=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(tt.suffix)?2:1;if(!($.index>=this.quill.getLength()-ut)){var lt={},pt=0,kt=this.quill.getLine($.index),Mt=P(kt,1)[0];if(tt.offset>=Mt.length()-1){var jt=this.quill.getLine($.index+1),Wt=P(jt,1)[0];if(Wt){var It=Mt.formats(),ft=this.quill.getFormat($.index,1);lt=d.default.attributes.diff(It,ft)||{},pt=Wt.length()}}this.quill.deleteText($.index,ut,w.default.sources.USER),Object.keys(lt).length>0&&this.quill.formatLine($.index+pt-1,ut,lt,w.default.sources.USER)}}function F($){var tt=this.quill.getLines($),ut={};if(tt.length>1){var lt=tt[0].formats(),pt=tt[tt.length-1].formats();ut=d.default.attributes.diff(pt,lt)||{}}this.quill.deleteText($,w.default.sources.USER),Object.keys(ut).length>0&&this.quill.formatLine($.index,1,ut,w.default.sources.USER),this.quill.setSelection($.index,w.default.sources.SILENT),this.quill.focus()}function K($,tt){var ut=this;$.length>0&&this.quill.scroll.deleteAt($.index,$.length);var lt=Object.keys(tt.format).reduce(function(pt,kt){return O.default.query(kt,O.default.Scope.BLOCK)&&!Array.isArray(tt.format[kt])&&(pt[kt]=tt.format[kt]),pt},{});this.quill.insertText($.index,"\n",lt,w.default.sources.USER),this.quill.setSelection($.index+1,w.default.sources.SILENT),this.quill.focus(),Object.keys(tt.format).forEach(function(pt){null==lt[pt]&&(Array.isArray(tt.format[pt])||"link"!==pt&&ut.quill.format(pt,tt.format[pt],w.default.sources.USER))})}function G($){return{key:st.keys.TAB,shiftKey:!$,format:{"code-block":!0},handler:function(ut){var lt=O.default.query("code-block"),pt=ut.index,kt=ut.length,Pt=this.quill.scroll.descendant(lt,pt),Mt=P(Pt,2),jt=Mt[0],Nt=Mt[1];if(null!=jt){var Wt=this.quill.getIndex(jt),It=jt.newlineIndex(Nt,!0)+1,ft=jt.newlineIndex(Wt+Nt+kt),ht=jt.domNode.textContent.slice(It,ft).split("\n");Nt=0,ht.forEach(function(_t,xt){$?(jt.insertAt(It+Nt,lt.TAB),Nt+=lt.TAB.length,0===xt?pt+=lt.TAB.length:kt+=lt.TAB.length):_t.startsWith(lt.TAB)&&(jt.deleteAt(It+Nt,lt.TAB.length),Nt-=lt.TAB.length,0===xt?pt-=lt.TAB.length:kt-=lt.TAB.length),Nt+=_t.length+1}),this.quill.update(w.default.sources.USER),this.quill.setSelection(pt,kt,w.default.sources.SILENT)}}}}function at($){return{key:$[0].toUpperCase(),shortKey:!0,handler:function(ut,lt){this.quill.format($,!lt.format[$],w.default.sources.USER)}}}function it($){if("string"==typeof $||"number"==typeof $)return it({key:$});if("object"===(typeof $>"u"?"undefined":q($))&&($=(0,E.default)($,!1)),"string"==typeof $.key)if(null!=st.keys[$.key.toUpperCase()])$.key=st.keys[$.key.toUpperCase()];else{if(1!==$.key.length)return null;$.key=$.key.toUpperCase().charCodeAt(0)}return $.shortKey&&($[rt]=$.shortKey,delete $.shortKey),$}st.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},st.DEFAULTS={bindings:{bold:at("bold"),italic:at("italic"),underline:at("underline"),indent:{key:st.keys.TAB,format:["blockquote","indent","list"],handler:function(tt,ut){if(ut.collapsed&&0!==ut.offset)return!0;this.quill.format("indent","+1",w.default.sources.USER)}},outdent:{key:st.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(tt,ut){if(ut.collapsed&&0!==ut.offset)return!0;this.quill.format("indent","-1",w.default.sources.USER)}},"outdent backspace":{key:st.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(tt,ut){null!=ut.format.indent?this.quill.format("indent","-1",w.default.sources.USER):null!=ut.format.list&&this.quill.format("list",!1,w.default.sources.USER)}},"indent code-block":G(!0),"outdent code-block":G(!1),"remove tab":{key:st.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(tt){this.quill.deleteText(tt.index-1,1,w.default.sources.USER)}},tab:{key:st.keys.TAB,handler:function(tt){this.quill.history.cutoff();var ut=(new m.default).retain(tt.index).delete(tt.length).insert("\t");this.quill.updateContents(ut,w.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(tt.index+1,w.default.sources.SILENT)}},"list empty enter":{key:st.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(tt,ut){this.quill.format("list",!1,w.default.sources.USER),ut.format.indent&&this.quill.format("indent",!1,w.default.sources.USER)}},"checklist enter":{key:st.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(tt){var ut=this.quill.getLine(tt.index),lt=P(ut,2),pt=lt[0],kt=lt[1],Pt=(0,u.default)({},pt.formats(),{list:"checked"}),Mt=(new m.default).retain(tt.index).insert("\n",Pt).retain(pt.length()-kt-1).retain(1,{list:"unchecked"});this.quill.updateContents(Mt,w.default.sources.USER),this.quill.setSelection(tt.index+1,w.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:st.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(tt,ut){var lt=this.quill.getLine(tt.index),pt=P(lt,2),kt=pt[0],Pt=pt[1],Mt=(new m.default).retain(tt.index).insert("\n",ut.format).retain(kt.length()-Pt-1).retain(1,{header:null});this.quill.updateContents(Mt,w.default.sources.USER),this.quill.setSelection(tt.index+1,w.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(tt,ut){var lt=ut.prefix.length,pt=this.quill.getLine(tt.index),kt=P(pt,2),Pt=kt[0],Mt=kt[1];if(Mt>lt)return!0;var jt=void 0;switch(ut.prefix.trim()){case"[]":case"[ ]":jt="unchecked";break;
vendor: 4,144 bytes, line 1
1case"[x]":jt="checked";break;case"-":case"*":jt="bullet";break;default:jt="ordered"}this.quill.insertText(tt.index," ",w.default.sources.USER),this.quill.history.cutoff();var Nt=(new m.default).retain(tt.index-Mt).delete(lt+1).retain(Pt.length()-2-Mt).retain(1,{list:jt});this.quill.updateContents(Nt,w.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(tt.index-lt,w.default.sources.SILENT)}},"code exit":{key:st.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(tt){var ut=this.quill.getLine(tt.index),lt=P(ut,2),pt=lt[0],kt=lt[1],Pt=(new m.default).retain(tt.index+pt.length()-kt-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(Pt,w.default.sources.USER)}},"embed left":dt(st.keys.LEFT,!1),"embed left shift":dt(st.keys.LEFT,!0),"embed right":dt(st.keys.RIGHT,!1),"embed right shift":dt(st.keys.RIGHT,!0)}},M.default=st,M.SHORTKEY=rt},function(Q,M,T){"use strict";Object.defineProperty(M,"__esModule",{value:!0});var q=function(){return function(p,O){if(Array.isArray(p))return p;if(Symbol.iterator in Object(p))return function d(p,O){var f=[],w=!0,z=!1,I=void 0;try{for(var W,B=p[Symbol.iterator]();!(w=(W=B.next()).done)&&(f.push(W.value),!O||f.length!==O);w=!0);}catch(L){z=!0,I=L}finally{try{!w&&B.return&&B.return()}finally{if(z)throw I}}return f}(p,O);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),P=function d(p,O,f){null===p&&(p=Function.prototype);var w=Object.getOwnPropertyDescriptor(p,O);if(void 0===w){var z=Object.getPrototypeOf(p);return null===z?void 0:d(z,O,f)}if("value"in w)return w.value;var I=w.get;return void 0===I?void 0:I.call(f)},R=function(){function d(p,O){for(var f=0;f<O.length;f++){var w=O[f];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(p,w.key,w)}}return function(p,O,f){return O&&d(p.prototype,O),f&&d(p,f),p}}(),E=h(T(0)),g=h(T(7));function h(d){return d&&d.__esModule?d:{default:d}}var b=function(d){function p(O,f){!function u(d,p){if(!(d instanceof p))throw new TypeError("Cannot call a class as a function")}(this,p);var w=function v(d,p){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!p||"object"!=typeof p&&"function"!=typeof p?d:p}(this,(p.__proto__||Object.getPrototypeOf(p)).call(this,O));return w.selection=f,w.textNode=document.createTextNode(p.CONTENTS),w.domNode.appendChild(w.textNode),w._length=0,w}return function m(d,p){if("function"!=typeof p&&null!==p)throw new TypeError("Super expression must either be null or a function, not "+typeof p);d.prototype=Object.create(p&&p.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(d,p):d.__proto__=p)}(p,d),R(p,null,[{key:"value",value:function(){}}]),R(p,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(f,w){if(0!==this._length)return P(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"format",this).call(this,f,w);for(var z=this,I=0;null!=z&&z.statics.scope!==E.default.Scope.BLOCK_BLOT;)I+=z.offset(z.parent),z=z.parent;null!=z&&(this._length=p.CONTENTS.length,z.optimize(),z.formatAt(I,p.CONTENTS.length,f,w),this._length=0)}},{key:"index",value:function(f,w){return f===this.textNode?0:P(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"index",this).call(this,f,w)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){P(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var f=this.textNode,w=this.selection.getNativeRange(),z=void 0,I=void 0,B=void 0;if(null!=w&&w.start.node===f&&w.end.node===f){var W=[f,w.start.offset,w.end.offset];z=W[0],I=W[1],B=W[2]}for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);
1if(this.textNode.data!==p.CONTENTS){var L=this.textNode.data.split(p.CONTENTS).join("");this.next instanceof g.default?(z=this.next.domNode,this.next.insertAt(0,L),this.textNode.data=p.CONTENTS):(this.textNode.data=L,this.parent.insertBefore(E.default.create(this.textNode),this),this.textNode=document.createTextNode(p.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),null!=I){var S=[I,B].map(function(j){return Math.max(0,Math.min(z.data.length,j-1))}),D=q(S,2);return{startNode:z,startOffset:I=D[0],endNode:z,endOffset:B=D[1]}}}}},{key:"update",value:function(f,w){var z=this;if(f.some(function(B){return"characterData"===B.type&&B.target===z.textNode})){var I=this.restore();I&&(w.range=I)}}},{key:"value",value:function(){return""}}]),p}(E.default.Embed);b.blotName="cursor",b.className="ql-cursor",b.tagName="span",b.CONTENTS="\ufeff",M.default=b},function(Q,M,T){"use strict";Object.defineProperty(M,"__esModule",{value:!0});var P=E(T(0)),R=T(4),A=E(R);function E(v){return v&&v.__esModule?v:{default:v}}var u=function(v){function m(){return function x(v,m){if(!(v instanceof m))throw new TypeError("Cannot call a class as a function")}(this,m),function g(v,m){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!m||"object"!=typeof m&&"function"!=typeof m?v:m}(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return function h(v,m){if("function"!=typeof m&&null!==m)throw new TypeError("Super expression must either be null or a function, not "+typeof m);v.prototype=Object.create(m&&m.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(v,m):v.__proto__=m)}(m,v),m}(P.default.Container);u.allowedChildren=[A.default,R.BlockEmbed,u],M.default=u},function(Q,M,T){"use strict";Object.defineProperty(M,"__esModule",{value:!0}),M.ColorStyle=M.ColorClass=M.ColorAttributor=void 0;var q=function(){function b(d,p){for(var O=0;O<p.length;O++){var f=p[O];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(d,f.key,f)}}return function(d,p,O){return p&&b(d.prototype,p),O&&b(d,O),d}}(),P=function b(d,p,O){null===d&&(d=Function.prototype);var f=Object.getOwnPropertyDescriptor(d,p);if(void 0===f){var w=Object.getPrototypeOf(d);return null===w?void 0:b(w,p,O)}if("value"in f)return f.value;var z=f.get;return void 0===z?void 0:z.call(O)},A=function E(b){return b&&b.__esModule?b:{default:b}}(T(0)),u=function(b){function d(){return function x(b,d){if(!(b instanceof d))throw new TypeError("Cannot call a class as a function")}(this,d),function g(b,d){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!d||"object"!=typeof d&&"function"!=typeof d?b:d}(this,(d.__proto__||Object.getPrototypeOf(d)).apply(this,arguments))}return function h(b,d){if("function"!=typeof d&&null!==d)throw new TypeError("Super expression must either be null or a function, not "+typeof d);b.prototype=Object.create(d&&d.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(b,d):b.__proto__=d)}(d,b),q(d,[{key:"value",value:function(O){var f=P(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"value",this).call(this,O);return f.startsWith("rgb(")?"#"+(f=f.replace(/^[^\d]+/,"").replace(/[^\d]+$/,"")).split(",").map(function(w){return("00"+parseInt(w).toString(16)).slice(-2)}).join(""):f}}]),d}(A.default.Attributor.Style),v=new A.default.Attributor.Class("color","ql-color",{scope:A.default.Scope.INLINE}),m=new u("color","color",{scope:A.default.Scope.INLINE});M.ColorAttributor=u,M.ColorClass=v,M.ColorStyle=m},function(Q,M,T){"use strict";Object.defineProperty(M,"__esModule",{value:!0}),M.sanitize=M.default=void 0;var q=function(){function m(b,d){for(var p=0;p<d.length;p++){var O=d[p];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(b,O.key,O)}}return function(b,d,p){return d&&m(b.prototype,d),p&&m(b,p),b}}(),P=function m(b,d,p){null===b&&(b=Function.prototype);var O=Object.getOwnPropertyDescriptor(b,d);if(void 0===O){var f=Object.getPrototypeOf(b);return null===f?void 0:m(f,d,p)}if("value"in O)return O.value;var w=O.get;return void 0===w?void 0:w.call(p)},u=function(m){function b(){return function x(m,b){if(!(m instanceof b))throw new TypeError("Cannot call a class as a function")}(this,b),function g(m,b){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?m:b}(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return function h(m,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);m.prototype=Object.create(b&&b.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(m,b):m.__proto__=b)}(b,m),q(b,[{key:"format",value:function(p,O){if(p!==this.statics.blotName||!O)return P(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"format",this).call(this,p,O);O=this.constructor.sanitize(O),this.domNode.setAttribute("href",O)}}],[{key:"create",value:function(p){var O=P(b.__proto__||Object.getPrototypeOf(b),"create",this).call(this,p);return p=this.sanitize(p),O.setAttribute("href",p),O.setAttribute("rel","noopener noreferrer"),O.setAttribute("target","_blank"),O}},{key:"formats",value:function(p){return p.getAttribute("href")}},{key:"sanitize",value:function(p){return v(p,this.PROTOCOL_WHITELIST)?p:this.SANITIZED_URL}}]),b}
vendor: 10,593 bytes, line 1
1(function E(m){return m&&m.__esModule?m:{default:m}}(T(6)).default);function v(m,b){var d=document.createElement("a");d.href=m;var p=d.href.slice(0,d.href.indexOf(":"));return b.indexOf(p)>-1}u.blotName="link",u.tagName="A",u.SANITIZED_URL="about:blank",u.PROTOCOL_WHITELIST=["http","https","mailto","tel"],M.default=u,M.sanitize=v},function(Q,M,T){"use strict";Object.defineProperty(M,"__esModule",{value:!0});var q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(b){return typeof b}:function(b){return b&&"function"==typeof Symbol&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},P=function(){function b(d,p){for(var O=0;O<p.length;O++){var f=p[O];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(d,f.key,f)}}return function(d,p,O){return p&&b(d.prototype,p),O&&b(d,O),d}}(),A=g(T(23)),x=g(T(107));function g(b){return b&&b.__esModule?b:{default:b}}var u=0;function v(b,d){b.setAttribute(d,"true"!==b.getAttribute(d))}var m=function(){function b(d){var p=this;(function h(b,d){if(!(b instanceof d))throw new TypeError("Cannot call a class as a function")})(this,b),this.select=d,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",function(){p.togglePicker()}),this.label.addEventListener("keydown",function(O){switch(O.keyCode){case A.default.keys.ENTER:p.togglePicker();break;case A.default.keys.ESCAPE:p.escape(),O.preventDefault()}}),this.select.addEventListener("change",this.update.bind(this))}return P(b,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),v(this.label,"aria-expanded"),v(this.options,"aria-hidden")}},{key:"buildItem",value:function(p){var O=this,f=document.createElement("span");return f.tabIndex="0",f.setAttribute("role","button"),f.classList.add("ql-picker-item"),p.hasAttribute("value")&&f.setAttribute("data-value",p.getAttribute("value")),p.textContent&&f.setAttribute("data-label",p.textContent),f.addEventListener("click",function(){O.selectItem(f,!0)}),f.addEventListener("keydown",function(w){switch(w.keyCode){case A.default.keys.ENTER:O.selectItem(f,!0),w.preventDefault();break;case A.default.keys.ESCAPE:O.escape(),w.preventDefault()}}),f}},{key:"buildLabel",value:function(){var p=document.createElement("span");return p.classList.add("ql-picker-label"),p.innerHTML=x.default,p.tabIndex="0",p.setAttribute("role","button"),p.setAttribute("aria-expanded","false"),this.container.appendChild(p),p}},{key:"buildOptions",value:function(){var p=this,O=document.createElement("span");O.classList.add("ql-picker-options"),O.setAttribute("aria-hidden","true"),O.tabIndex="-1",O.id="ql-picker-options-"+u,u+=1,this.label.setAttribute("aria-controls",O.id),this.options=O,[].slice.call(this.select.options).forEach(function(f){var w=p.buildItem(f);O.appendChild(w),!0===f.selected&&p.selectItem(w)}),this.container.appendChild(O)}},{key:"buildPicker",value:function(){var p=this;[].slice.call(this.select.attributes).forEach(function(O){p.container.setAttribute(O.name,O.value)}),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var p=this;this.close(),setTimeout(function(){return p.label.focus()},1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(p){var O=arguments.length>1&&void 0!==arguments[1]&&arguments[1],f=this.container.querySelector(".ql-selected");if(p!==f&&(f?.classList.remove("ql-selected"),null!=p&&(p.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(p.parentNode.children,p),p.hasAttribute("data-value")?this.label.setAttribute("data-value",p.getAttribute("data-value")):this.label.removeAttribute("data-value"),p.hasAttribute("data-label")?this.label.setAttribute("data-label",p.getAttribute("data-label")):this.label.removeAttribute("data-label"),O))){if("function"==typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===(typeof Event>"u"?"undefined":q(Event))){var w=document.createEvent("Event");w.initEvent("change",!0,!0),this.select.dispatchEvent(w)}this.close()}}},{key:"update",value:function(){var p=void 0;if(this.select.selectedIndex>-1){var O=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];p=this.select.options[this.select.selectedIndex],this.selectItem(O)}else this.selectItem(null);var f=null!=p&&p!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",f)}}]),b}();M.default=m},function(Q,M,T){"use strict";Object.defineProperty(M,"__esModule",{value:!0});var P=Y(T(0)),A=Y(T(5)),E=T(4),x=Y(E),h=Y(T(16)),v=Y(T(25)),b=Y(T(24)),p=Y(T(35)),f=Y(T(6)),z=Y(T(22)),B=Y(T(7)),L=Y(T(55)),D=Y(T(42)),V=Y(T(23));function Y(rt){return rt&&rt.__esModule?rt:{default:rt}}A.default.register({"blots/block":x.default,"blots/block/embed":E.BlockEmbed,"blots/break":h.default,"blots/container":v.default,"blots/cursor":b.default,"blots/embed":p.default,"blots/inline":f.default,"blots/scroll":z.default,"blots/text":B.default,"modules/clipboard":L.default,"modules/history":D.default,"modules/keyboard":V.default}),P.default.register(x.default,h.default,b.default,f.default,z.default,B.default),M.default=A.default},function(Q,M,T){"use strict";Object.defineProperty(M,"__esModule",{value:!0});var q=T(1),P=function(){function R(A){this.domNode=A,this.domNode[q.DATA_KEY]={blot:this}}return Object.defineProperty(R.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),R.create=function(A){if(null==this.tagName)throw new q.ParchmentError("Blot definition missing tagName");var E;return Array.isArray(this.tagName)?("string"==typeof A&&(A=A.toUpperCase(),parseInt(A).toString()===A&&(A=parseInt(A))),E="number"==typeof A?document.createElement(this.tagName[A-1]):this.tagName.indexOf(A)>-1?document.createElement(A):document.createElement(this.tagName[0])):E=document.createElement(this.tagName),this.className&&E.classList.add(this.className),E},R.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},R.prototype.clone=function(){var A=this.domNode.cloneNode(!1);return q.create(A)},R.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[q.DATA_KEY]},R.prototype.deleteAt=function(A,E){this.isolate(A,E).remove()},R.prototype.formatAt=function(A,E,x,g){var h=this.isolate(A,E);if(null!=q.query(x,q.Scope.BLOT)&&g)h.wrap(x,g);else if(null!=q.query(x,q.Scope.ATTRIBUTE)){var u=q.create(this.statics.scope);h.wrap(u),u.format(x,g)}},R.prototype.insertAt=function(A,E,x){var g=null==x?q.create("text",E):q.create(E,x),h=this.split(A);this.parent.insertBefore(g,h)},R.prototype.insertInto=function(A,E){void 0===E&&(E=null),null!=this.parent&&this.parent.children.remove(this);var x=null;A.children.insertBefore(this,E),null!=E&&(x=E.domNode),(this.domNode.parentNode!=A.domNode||this.domNode.nextSibling!=x)&&A.domNode.insertBefore(this.domNode,x),this.parent=A,this.attach()},R.prototype.isolate=function(A,E){var x=this.split(A);return x.split(E),x},R.prototype.length=function(){return 1},R.prototype.offset=function(A){return void 0===A&&(A=this.parent),null==this.parent||this==A?0:this.parent.children.offset(this)+this.parent.offset(A)},R.prototype.optimize=function(A){null!=this.domNode[q.DATA_KEY]&&delete this.domNode[q.DATA_KEY].mutations},R.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},R.prototype.replace=function(A){null!=A.parent&&(A.parent.insertBefore(this,A.next),A.remove())},R.prototype.replaceWith=function(A,E){var x="string"==typeof A?q.create(A,E):A;return x.replace(this),x},R.prototype.split=function(A,E){return 0===A?this:this.next},R.prototype.update=function(A,E){},R.prototype.wrap=function(A,E){var x="string"==typeof A?q.create(A,E):A;return null!=this.parent&&this.parent.insertBefore(x,this.next),x.appendChild(this),x},R.blotName="abstract",R}();M.default=P},function(Q,M,T){"use strict";Object.defineProperty(M,"__esModule",{value:!0});var q=T(12),P=T(32),R=T(33),A=T(1),E=function(){function x(g){this.attributes={},this.domNode=g,this.build()}return x.prototype.attribute=function(g,h){h?g.add(this.domNode,h)&&(null!=g.value(this.domNode)?this.attributes[g.attrName]=g:delete this.attributes[g.attrName]):(g.remove(this.domNode),delete this.attributes[g.attrName])},x.prototype.build=function(){var g=this;this.attributes={};var h=q.default.keys(this.domNode),u=P.default.keys(this.domNode),v=R.default.keys(this.domNode);h.concat(u).concat(v).forEach(function(m){var b=A.query(m,A.Scope.ATTRIBUTE);b instanceof q.default&&(g.attributes[b.attrName]=b)})},x.prototype.copy=function(g){var h=this;Object.keys(this.attributes).forEach(function(u){var v=h.attributes[u].value(h.domNode);g.format(u,v)})},x.prototype.move=function(g){var h=this;this.copy(g),Object.keys(this.attributes).forEach(function(u){h.attributes[u].remove(h.domNode)}),this.attributes={}},x.prototype.values=function(){var g=this;return Object.keys(this.attributes).reduce(function(h,u){return h[u]=g.attributes[u].value(g.domNode),h},{})},x}();M.default=E},function(Q,M,T){"use strict";var E,q=this&&this.__extends||(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,g){x.__proto__=g}||function(x,g){for(var h in g)g.hasOwnProperty(h)&&(x[h]=g[h])},function(x,g){function h(){this.constructor=x}E(x,g),x.prototype=null===g?Object.create(g):(h.prototype=g.prototype,new h)});function R(E,x){return(E.getAttribute("class")||"").split(/\s+/).filter(function(h){return 0===h.indexOf(x+"-")})}Object.defineProperty(M,"__esModule",{value:!0});var A=function(E){function x(){return null!==E&&E.apply(this,arguments)||this}return q(x,E),x.keys=function(g){return(g.getAttribute("class")||"").split(/\s+/).map(function(h){return h.split("-").slice(0,-1).join("-")})},x.prototype.add=function(g,h){return!!this.canAdd(g,h)&&(this.remove(g),g.classList.add(this.keyName+"-"+h),!0)},x.prototype.remove=function(g){R(g,this.keyName).forEach(function(u){g.classList.remove(u)}),0===g.classList.length&&g.removeAttribute("class")},x.prototype.value=function(g){var u=(R(g,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(g,u)?u:""},x}(T(12).default);M.default=A},function(Q,M,T){"use strict";
1var E,q=this&&this.__extends||(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,g){x.__proto__=g}||function(x,g){for(var h in g)g.hasOwnProperty(h)&&(x[h]=g[h])},function(x,g){function h(){this.constructor=x}E(x,g),x.prototype=null===g?Object.create(g):(h.prototype=g.prototype,new h)});function R(E){var x=E.split("-"),g=x.slice(1).map(function(h){return h[0].toUpperCase()+h.slice(1)}).join("");return x[0]+g}Object.defineProperty(M,"__esModule",{value:!0});var A=function(E){function x(){return null!==E&&E.apply(this,arguments)||this}return q(x,E),x.keys=function(g){return(g.getAttribute("style")||"").split(";").map(function(h){return h.split(":")[0].trim()})},x.prototype.add=function(g,h){return!!this.canAdd(g,h)&&(g.style[R(this.keyName)]=h,!0)},x.prototype.remove=function(g){g.style[R(this.keyName)]="",g.getAttribute("style")||g.removeAttribute("style")},x.prototype.value=function(g){var h=g.style[R(this.keyName)];return this.canAdd(g,h)?h:""},x}(T(12).default);M.default=A},function(Q,M,T){"use strict";Object.defineProperty(M,"__esModule",{value:!0});var q=function(){function A(E,x){for(var g=0;g<x.length;g++){var h=x[g];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(E,h.key,h)}}return function(E,x,g){return x&&A(E.prototype,x),g&&A(E,g),E}}(),R=function(){function A(E,x){(function P(A,E){if(!(A instanceof E))throw new TypeError("Cannot call a class as a function")})(this,A),this.quill=E,this.options=x,this.modules={}}return q(A,[{key:"init",value:function(){var x=this;Object.keys(this.options.modules).forEach(function(g){null==x.modules[g]&&x.addModule(g)})}},{key:"addModule",value:function(x){var g=this.quill.constructor.import("modules/"+x);return this.modules[x]=new g(this.quill,this.options.modules[x]||{}),this.modules[x]}}]),A}();R.DEFAULTS={modules:{}},R.themes={default:R},M.default=R},function(Q,M,T){"use strict";Object.defineProperty(M,"__esModule",{value:!0});var q=function(){function d(p,O){for(var f=0;f<O.length;f++){var w=O[f];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(p,w.key,w)}}return function(p,O,f){return O&&d(p.prototype,O),f&&d(p,f),p}}(),P=function d(p,O,f){null===p&&(p=Function.prototype);var w=Object.getOwnPropertyDescriptor(p,O);if(void 0===w){var z=Object.getPrototypeOf(p);return null===z?void 0:d(z,O,f)}if("value"in w)return w.value;var I=w.get;return void 0===I?void 0:I.call(f)},A=g(T(0)),x=g(T(7));function g(d){return d&&d.__esModule?d:{default:d}}var m="\ufeff",b=function(d){function p(O){!function h(d,p){if(!(d instanceof p))throw new TypeError("Cannot call a class as a function")}(this,p);var f=function u(d,p){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!p||"object"!=typeof p&&"function"!=typeof p?d:p}(this,(p.__proto__||Object.getPrototypeOf(p)).call(this,O));return f.contentNode=document.createElement("span"),f.contentNode.setAttribute("contenteditable",!1),[].slice.call(f.domNode.childNodes).forEach(function(w){f.contentNode.appendChild(w)}),f.leftGuard=document.createTextNode(m),f.rightGuard=document.createTextNode(m),f.domNode.appendChild(f.leftGuard),f.domNode.appendChild(f.contentNode),f.domNode.appendChild(f.rightGuard),f}return function v(d,p){if("function"!=typeof p&&null!==p)throw new TypeError("Super expression must either be null or a function, not "+typeof p);d.prototype=Object.create(p&&p.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(d,p):d.__proto__=p)}(p,d),q(p,[{key:"index",value:function(f,w){return f===this.leftGuard?0:f===this.rightGuard?1:P(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"index",this).call(this,f,w)}},{key:"restore",value:function(f){var w=void 0,z=void 0,I=f.data.split(m).join("");if(f===this.leftGuard)if(this.prev instanceof x.default){var B=this.prev.length();this.prev.insertAt(B,I),w={startNode:this.prev.domNode,startOffset:B+I.length}}else z=document.createTextNode(I),this.parent.insertBefore(A.default.create(z),this),w={startNode:z,startOffset:I.length};else f===this.rightGuard&&(this.next instanceof x.default?(this.next.insertAt(0,I),w={startNode:this.next.domNode,startOffset:I.length}):(z=document.createTextNode(I),this.parent.insertBefore(A.default.create(z),this.next),w={startNode:z,startOffset:I.length}));return f.data=m,w}},{key:"update",value:function(f,w){var z=this;f.forEach(function(I){if("characterData"===I.type&&(I.target===z.leftGuard||I.target===z.rightGuard)){var B=z.restore(I.target);B&&(w.range=B)}})}}]),p}(A.default.Embed);M.default=b},function(Q,M,T){"use strict";Object.defineProperty(M,"__esModule",{value:!0}),M.AlignStyle=M.AlignClass=M.AlignAttribute=void 0;var P=function R(h){return h&&h.__esModule?h:{default:h}}(T(0)),A={scope:P.default.Scope.BLOCK,whitelist:["right","center","justify"]},E=new P.default.Attributor.Attribute("align","align",A),x=new P.default.Attributor.Class("align","ql-align",A),g=new P.default.Attributor.Style("align","text-align",A);M.AlignAttribute=E,M.AlignClass=x,M.AlignStyle=g},function(Q,M,T){"use strict";Object.defineProperty(M,"__esModule",{value:!0}
1),M.BackgroundStyle=M.BackgroundClass=void 0;var P=function A(g){return g&&g.__esModule?g:{default:g}}(T(0)),R=T(26),E=new P.default.Attributor.Class("background","ql-bg",{scope:P.default.Scope.INLINE}),x=new R.ColorAttributor("background","background-color",{scope:P.default.Scope.INLINE});M.BackgroundClass=E,M.BackgroundStyle=x},function(Q,M,T){"use strict";Object.defineProperty(M,"__esModule",{value:!0}),M.DirectionStyle=M.DirectionClass=M.DirectionAttribute=void 0;var P=function R(h){return h&&h.__esModule?h:{default:h}}(T(0)),A={scope:P.default.Scope.BLOCK,whitelist:["rtl"]},E=new P.default.Attributor.Attribute("direction","dir",A),x=new P.default.Attributor.Class("direction","ql-direction",A),g=new P.default.Attributor.Style("direction","direction",A);M.DirectionAttribute=E,M.DirectionClass=x,M.DirectionStyle=g},function(Q,M,T){"use strict";Object.defineProperty(M,"__esModule",{value:!0}),M.FontClass=M.FontStyle=void 0;var q=function(){function d(p,O){for(var f=0;f<O.length;f++){var w=O[f];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(p,w.key,w)}}return function(p,O,f){return O&&d(p.prototype,O),f&&d(p,f),p}}(),P=function d(p,O,f){null===p&&(p=Function.prototype);var w=Object.getOwnPropertyDescriptor(p,O);if(void 0===w){var z=Object.getPrototypeOf(p);return null===z?void 0:d(z,O,f)}if("value"in w)return w.value;var I=w.get;return void 0===I?void 0:I.call(f)},A=function E(d){return d&&d.__esModule?d:{default:d}}(T(0)),u={scope:A.default.Scope.INLINE,whitelist:["serif","monospace"]},v=new A.default.Attributor.Class("font","ql-font",u),m=function(d){function p(){return function x(d,p){if(!(d instanceof p))throw new TypeError("Cannot call a class as a function")}(this,p),function g(d,p){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!p||"object"!=typeof p&&"function"!=typeof p?d:p}(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return function h(d,p){if("function"!=typeof p&&null!==p)throw new TypeError("Super expression must either be null or a function, not "+typeof p);d.prototype=Object.create(p&&p.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(d,p):d.__proto__=p)}(p,d),q(p,[{key:"value",value:function(f){return P(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"value",this).call(this,f).replace(/["']/g,"")}}]),p}(A.default.Attributor.Style),b=new m("font","font-family",u);M.FontStyle=b,M.FontClass=v},function(Q,M,T){"use strict";Object.defineProperty(M,"__esModule",{value:!0}),M.SizeStyle=M.SizeClass=void 0;var P=function R(x){return x&&x.__esModule?x:{default:x}}(T(0)),A=new P.default.Attributor.Class("size","ql-size",{scope:P.default.Scope.INLINE,whitelist:["small","large","huge"]}),E=new P.default.Attributor.Style("size","font-size",{scope:P.default.Scope.INLINE,whitelist:["10px","18px","32px"]});M.SizeClass=A,M.SizeStyle=E},function(Q,M,T){"use strict";Q.exports={align:{"":T(76),center:T(77),right:T(78),justify:T(79)},background:T(80),blockquote:T(81),bold:T(82),clean:T(83),code:T(58),"code-block":T(58),color:T(84),direction:{"":T(85),rtl:T(86)},float:{center:T(87),full:T(88),left:T(89),right:T(90)},formula:T(91),header:{1:T(92),2:T(93)},italic:T(94),image:T(95),indent:{"+1":T(96),"-1":T(97)},link:T(98),list:{ordered:T(99),bullet:T(100),check:T(101)},script:{sub:T(102),super:T(103)},strike:T(104),underline:T(105),video:T(106)}},function(Q,M,T){"use strict";Object.defineProperty(M,"__esModule",{value:!0}),M.getLastChangeIndex=M.default=void 0;var q=function(){function O(f,w){for(var z=0;z<w.length;z++){var I=w[z];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(f,I.key,I)}}return function(f,w,z){return w&&O(f.prototype,w),z&&O(f,z),f}}(),R=h(T(0)),E=h(T(5));function h(O){return O&&O.__esModule?O:{default:O}}var b=function(O){function f(w,z){!function u(O,f){if(!(O instanceof f))throw new TypeError("Cannot call a class as a function")}(this,f);var I=function v(O,f){if(!O)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!f||"object"!=typeof f&&"function"!=typeof f?O:f}(this,(f.__proto__||Object.getPrototypeOf(f)).call(this,w,z));return I.lastRecorded=0,I.ignoreChange=!1,I.clear(),I.quill.on(E.default.events.EDITOR_CHANGE,function(B,W,L,S){B!==E.default.events.TEXT_CHANGE||I.ignoreChange||(I.options.userOnly&&S!==E.default.sources.USER?I.transform(W):I.record(W,L))}),I.quill.keyboard.addBinding({key:"Z",shortKey:!0},I.undo.bind(I)),I.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},I.redo.bind(I)),/Win/i.test(navigator.platform)&&I.quill.keyboard.addBinding({key:"Y",shortKey:!0},I.redo.bind(I)),I}return function m(O,f){if("function"!=typeof f&&null!==f)throw new TypeError("Super expression must either be null or a function, not "+typeof f);O.prototype=Object.create(f&&f.prototype,{constructor:{value:O,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(O,f):O.__proto__=f)}(f,O),q(f,[{key:"change",value:function(z,I){if(0!==this.stack[z].length){var B=this.stack[z].pop();this.stack[I].push(B),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(B[z],E.default.sources.USER),this.ignoreChange=!1;var W=p(B[z]);this.quill.setSelection(W)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(z,I){if(0!==z.ops.length){this.stack.redo=[];var B=this.quill.getContents().diff(I),W=Date.now();if(this.lastRecorded+this.options.delay>W&&this.stack.undo.length>0){var L=this.stack.undo.pop();B=B.compose(L.undo),z=L.redo.compose(z)}
1else this.lastRecorded=W;this.stack.undo.push({redo:z,undo:B}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(z){this.stack.undo.forEach(function(I){I.undo=z.transform(I.undo,!0),I.redo=z.transform(I.redo,!0)}),this.stack.redo.forEach(function(I){I.undo=z.transform(I.undo,!0),I.redo=z.transform(I.redo,!0)})}},{key:"undo",value:function(){this.change("undo","redo")}}]),f}(h(T(9)).default);function p(O){var f=O.reduce(function(z,I){return z+(I.delete||0)},0),w=O.length()-f;return function d(O){var f=O.ops[O.ops.length-1];return null!=f&&(null!=f.insert?"string"==typeof f.insert&&f.insert.endsWith("\n"):null!=f.attributes&&Object.keys(f.attributes).some(function(w){return null!=R.default.query(w,R.default.Scope.BLOCK)}))}(O)&&(w-=1),w}b.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},M.default=b,M.getLastChangeIndex=p},function(Q,M,T){"use strict";Object.defineProperty(M,"__esModule",{value:!0}),M.default=M.BaseTooltip=void 0;var q=function(){function K(G,at){for(var it=0;
1it<at.length;it++){var $=at[it];$.enumerable=$.enumerable||!1,$.configurable=!0,"value"in $&&($.writable=!0),Object.defineProperty(G,$.key,$)}}return function(G,at,it){return at&&K(G.prototype,at),it&&K(G,it),G}}(),P=function K(G,at,it){null===G&&(G=Function.prototype);var $=Object.getOwnPropertyDescriptor(G,at);if(void 0===$){var tt=Object.getPrototypeOf(G);return null===tt?void 0:K(tt,at,it)}if("value"in $)return $.value;var ut=$.get;return void 0===ut?void 0:ut.call(it)},A=W(T(3)),x=W(T(2)),h=W(T(8)),v=W(T(23)),b=W(T(34)),p=W(T(59)),f=W(T(60)),z=W(T(28)),B=W(T(61));function W(K){return K&&K.__esModule?K:{default:K}}function L(K,G){if(!(K instanceof G))throw new TypeError("Cannot call a class as a function")}function S(K,G){if(!K)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!G||"object"!=typeof G&&"function"!=typeof G?K:G}function D(K,G){if("function"!=typeof G&&null!==G)throw new TypeError("Super expression must either be null or a function, not "+typeof G);K.prototype=Object.create(G&&G.prototype,{constructor:{value:K,enumerable:!1,writable:!0,configurable:!0}}),G&&(Object.setPrototypeOf?Object.setPrototypeOf(K,G):K.__proto__=G)}var j=[!1,"center","right","justify"],V=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],Y=[!1,"serif","monospace"],rt=["1","2","3",!1],st=["small",!1,"large","huge"],dt=function(K){function G(at,it){L(this,G);var $=S(this,(G.__proto__||Object.getPrototypeOf(G)).call(this,at,it));return at.emitter.listenDOM("click",document.body,function ut(lt){if(!document.body.contains(at.root))return document.body.removeEventListener("click",ut);null!=$.tooltip&&!$.tooltip.root.contains(lt.target)&&document.activeElement!==$.tooltip.textbox&&!$.quill.hasFocus()&&$.tooltip.hide(),null!=$.pickers&&$.pickers.forEach(function(pt){pt.container.contains(lt.target)||pt.close()})}),$}return D(G,K),q(G,[{key:"addModule",value:function(it){var $=P(G.prototype.__proto__||Object.getPrototypeOf(G.prototype),"addModule",this).call(this,it);return"toolbar"===it&&this.extendToolbar($),$}},{key:"buildButtons",value:function(it,$){it.forEach(function(tt){(tt.getAttribute("class")||"").split(/\s+/).forEach(function(lt){if(lt.startsWith("ql-")&&(lt=lt.slice(3),null!=$[lt]))if("direction"===lt)tt.innerHTML=$[lt][""]+$[lt].rtl;else if("string"==typeof $[lt])tt.innerHTML=$[lt];else{var pt=tt.value||"";null!=pt&&$[lt][pt]&&(tt.innerHTML=$[lt][pt])}})})}},{key:"buildPickers",value:function(it,$){var tt=this;this.pickers=it.map(function(lt){if(lt.classList.contains("ql-align"))return null==lt.querySelector("option")&&F(lt,j),new f.default(lt,$.align);if(lt.classList.contains("ql-background")||lt.classList.contains("ql-color")){var pt=lt.classList.contains("ql-background")?"background":"color";return null==lt.querySelector("option")&&F(lt,V,"background"===pt?"#ffffff"
vendor: 6,480 bytes, line 1
1:"#000000"),new p.default(lt,$[pt])}return null==lt.querySelector("option")&&(lt.classList.contains("ql-font")?F(lt,Y):lt.classList.contains("ql-header")?F(lt,rt):lt.classList.contains("ql-size")&&F(lt,st)),new z.default(lt)}),this.quill.on(h.default.events.EDITOR_CHANGE,function(){tt.pickers.forEach(function(pt){pt.update()})})}}]),G}(b.default);dt.DEFAULTS=(0,A.default)(!0,{},b.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var G=this,at=this.container.querySelector("input.ql-image[type=file]");null==at&&((at=document.createElement("input")).setAttribute("type","file"),at.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),at.classList.add("ql-image"),at.addEventListener("change",function(){if(null!=at.files&&null!=at.files[0]){var it=new FileReader;it.onload=function($){var tt=G.quill.getSelection(!0);G.quill.updateContents((new x.default).retain(tt.index).delete(tt.length).insert({image:$.target.result}),h.default.sources.USER),G.quill.setSelection(tt.index+1,h.default.sources.SILENT),at.value=""},it.readAsDataURL(at.files[0])}}),this.container.appendChild(at)),at.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var et=function(K){function G(at,it){L(this,G);var $=S(this,(G.__proto__||Object.getPrototypeOf(G)).call(this,at,it));return $.textbox=$.root.querySelector('input[type="text"]'),$.listen(),$}return D(G,K),q(G,[{key:"listen",value:function(){var it=this;this.textbox.addEventListener("keydown",function($){v.default.match($,"enter")?(it.save(),$.preventDefault()):v.default.match($,"escape")&&(it.cancel(),$.preventDefault())})}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var it=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",$=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=$?this.textbox.value=$:it!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+it)||""),this.root.setAttribute("data-mode",it)}},{key:"restoreFocus",value:function(){var it=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=it}},{key:"save",value:function(){var it=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var $=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",it,h.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",it,h.default.sources.USER)),this.quill.root.scrollTop=$;break;case"video":it=function X(K){var G=K.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||K.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return G?(G[1]||"https")+"://www.youtube.com/embed/"+G[2]+"?showinfo=0":(G=K.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(G[1]||"https")+"://player.vimeo.com/video/"+G[2]+"/":K}(it);case"formula":if(!it)break;var tt=this.quill.getSelection(!0);if(null!=tt){var ut=tt.index+tt.length;this.quill.insertEmbed(ut,this.root.getAttribute("data-mode"),it,h.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(ut+1," ",h.default.sources.USER),this.quill.setSelection(ut+2,h.default.sources.USER)}}this.textbox.value="",this.hide()}}]),G}(B.default);function F(K,G){var at=arguments.length>2&&void 0!==arguments[2]&&arguments[2];G.forEach(function(it){var $=document.createElement("option");it===at?$.setAttribute("selected","selected"):$.setAttribute("value",it),K.appendChild($)})}M.BaseTooltip=et,M.default=dt},function(Q,M,T){"use strict";Object.defineProperty(M,"__esModule",{value:!0});var q=function(){function P(){this.head=this.tail=null,this.length=0}return P.prototype.append=function(){for(var R=[],A=0;A<arguments.length;A++)R[A]=arguments[A];this.insertBefore(R[0],null),R.length>1&&this.append.apply(this,R.slice(1))},P.prototype.contains=function(R){for(var A,E=this.iterator();A=E();)if(A===R)return!0;return!1},P.prototype.insertBefore=function(R,A){R&&(R.next=A,null!=A?(R.prev=A.prev,null!=A.prev&&(A.prev.next=R),A.prev=R,A===this.head&&(this.head=R)):null!=this.tail?(this.tail.next=R,R.prev=this.tail,this.tail=R):(R.prev=null,this.head=this.tail=R),this.length+=1)},P.prototype.offset=function(R){for(var A=0,E=this.head;null!=E;){if(E===R)return A;A+=E.length(),E=E.next}return-1},P.prototype.remove=function(R){this.contains(R)&&(null!=R.prev&&(R.prev.next=R.next),null!=R.next&&(R.next.prev=R.prev),R===this.head&&(this.head=R.next),R===this.tail&&(this.tail=R.prev),this.length-=1)},P.prototype.iterator=function(R){return void 0===R&&(R=this.head),function(){var A=R;return null!=R&&(R=R.next),A}},P.prototype.find=function(R,A){void 0===A&&(A=!1);for(var E,x=this.iterator();E=x();){var g=E.length();if(R<g||A&&R===g&&(null==E.next||0!==E.next.length()))return[E,R];R-=g}return[null,0]},P.prototype.forEach=function(R){for(var A,E=this.iterator();A=E();)R(A)},P.prototype.forEachAt=function(R,A,E){if(!(A<=0))for(var u,x=this.find(R),v=R-x[1],m=this.iterator(x[0]);(u=m())&&v<R+A;){var b=u.length();R>v?E(u,R-v,Math.min(A,v+b-R)):E(u,0,Math.min(b,R+A-v)),v+=b}},P.prototype.map=function(R){return this.reduce(function(A,E){return A.push(R(E)),A},[])},P.prototype.reduce=function(R,A){for(var E,x=this.iterator();E=x();)A=R(A,E);return A},P}();M.default=q},function(Q,M,T){"use strict";var g,q=this&&this.__extends||(g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,u){h.__proto__=u}||function(h,u){for(var v in u)u.hasOwnProperty(v)&&(h[v]=u[v])},function(h,u){function v(){this.constructor=h}g(h,u),h.prototype=null===u?Object.create(u):(v.prototype=u.prototype,new v)});Object.defineProperty(M,"__esModule",{value:!0});var P=T(17),R=T(1),A={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},x=function(g){function h(u){var v=g.call(this,u)||this;return v.scroll=v,v.observer=new MutationObserver(function(m){v.update(m)}),v.observer.observe(v.domNode,A),v.attach(),v}return q(h,g),h.prototype.detach=function(){g.prototype.detach.call(this),this.observer.disconnect()},h.prototype.deleteAt=function(u,v){this.update(),0===u&&v===this.length()?this.children.forEac
1h(function(m){m.remove()}):g.prototype.deleteAt.call(this,u,v)},h.prototype.formatAt=function(u,v,m,b){this.update(),g.prototype.formatAt.call(this,u,v,m,b)},h.prototype.insertAt=function(u,v,m){this.update(),g.prototype.insertAt.call(this,u,v,m)},h.prototype.optimize=function(u,v){var m=this;void 0===u&&(u=[]),void 0===v&&(v={}),g.prototype.optimize.call(this,v);for(var b=[].slice.call(this.observer.takeRecords());b.length>0;)u.push(b.pop());for(var d=function(w,z){void 0===z&&(z=!0),null!=w&&w!==m&&null!=w.domNode.parentNode&&(null==w.domNode[R.DATA_KEY].mutations&&(w.domNode[R.DATA_KEY].mutations=[]),z&&d(w.parent))},p=function(w){null==w.domNode[R.DATA_KEY]||null==w.domNode[R.DATA_KEY].mutations||(w instanceof P.default&&w.children.forEach(p),w.optimize(v))},O=u,f=0;O.length>0;f+=1){if(f>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(O.forEach(function(w){var z=R.find(w.target,!0);null!=z&&(z.domNode===w.target&&("childList"===w.type?(d(R.find(w.previousSibling,!1)),[].forEach.call(w.addedNodes,function(I){var B=R.find(I,!1);d(B,!1),B instanceof P.default&&B.children.forEach(function(W){d(W,!1)})})):"attributes"===w.type&&d(z.prev)),d(z))}),this.children.forEach(p),b=(O=[].slice.call(this.observer.takeRecords())).slice();b.length>0;)u.push(b.pop())}},h.prototype.update=function(u,v){var m=this;void 0===v&&(v={}),(u=u||this.observer.takeRecords()).map(function(b){var d=R.find(b.target,!0);return null==d?null:null==d.domNode[R.DATA_KEY].mutations?(d.domNode[R.DATA_KEY].mutations=[b],d):(d.domNode[R.DATA_KEY].mutations.push(b),null)}).forEach(function(b){null==b||b===m||null==b.domNode[R.DATA_KEY]||b.update(b.domNode[R.DATA_KEY].mutations||[],v)}),null!=this.domNode[R.DATA_KEY].mutations&&g.prototype.update.call(this,this.domNode[R.DATA_KEY].mutations,v),this.optimize(u,v)},h.blotName="scroll",h.defaultChild="block",h.scope=R.Scope.BLOCK_BLOT,h.tagName="DIV",h}(P.default);M.default=x},function(Q,M,T){"use strict";
vendor: 4,849 bytes, line 1
1var x,q=this&&this.__extends||(x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,h){g.__proto__=h}||function(g,h){for(var u in h)h.hasOwnProperty(u)&&(g[u]=h[u])},function(g,h){function u(){this.constructor=g}x(g,h),g.prototype=null===h?Object.create(h):(u.prototype=h.prototype,new u)});Object.defineProperty(M,"__esModule",{value:!0});var P=T(18),R=T(1),E=function(x){function g(){return null!==x&&x.apply(this,arguments)||this}return q(g,x),g.formats=function(h){if(h.tagName!==g.tagName)return x.formats.call(this,h)},g.prototype.format=function(h,u){var v=this;h!==this.statics.blotName||u?x.prototype.format.call(this,h,u):(this.children.forEach(function(m){m instanceof P.default||(m=m.wrap(g.blotName,!0)),v.attributes.copy(m)}),this.unwrap())},g.prototype.formatAt=function(h,u,v,m){null!=this.formats()[v]||R.query(v,R.Scope.ATTRIBUTE)?this.isolate(h,u).format(v,m):x.prototype.formatAt.call(this,h,u,v,m)},g.prototype.optimize=function(h){x.prototype.optimize.call(this,h);var u=this.formats();if(0===Object.keys(u).length)return this.unwrap();var v=this.next;v instanceof g&&v.prev===this&&function A(x,g){if(Object.keys(x).length!==Object.keys(g).length)return!1;for(var h in x)if(x[h]!==g[h])return!1;return!0}(u,v.formats())&&(v.moveChildren(this),v.remove())},g.blotName="inline",g.scope=R.Scope.INLINE_BLOT,g.tagName="SPAN",g}(P.default);M.default=E},function(Q,M,T){"use strict";var E,q=this&&this.__extends||(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,g){x.__proto__=g}||function(x,g){for(var h in g)g.hasOwnProperty(h)&&(x[h]=g[h])},function(x,g){function h(){this.constructor=x}E(x,g),x.prototype=null===g?Object.create(g):(h.prototype=g.prototype,new h)});Object.defineProperty(M,"__esModule",{value:!0});var P=T(18),R=T(1),A=function(E){function x(){return null!==E&&E.apply(this,arguments)||this}return q(x,E),x.formats=function(g){var h=R.query(x.blotName).tagName;if(g.tagName!==h)return E.formats.call(this,g)},x.prototype.format=function(g,h){null!=R.query(g,R.Scope.BLOCK)&&(g!==this.statics.blotName||h?E.prototype.format.call(this,g,h):this.replaceWith(x.blotName))},x.prototype.formatAt=function(g,h,u,v){null!=R.query(u,R.Scope.BLOCK)?this.format(u,v):E.prototype.formatAt.call(this,g,h,u,v)},x.prototype.insertAt=function(g,h,u){if(null==u||null!=R.query(h,R.Scope.INLINE))E.prototype.insertAt.call(this,g,h,u);else{var v=this.split(g),m=R.create(h,u);v.parent.insertBefore(m,v)}},x.prototype.update=function(g,h){navigator.userAgent.match(/Trident/)?this.build():E.prototype.update.call(this,g,h)},x.blotName="block",x.scope=R.Scope.BLOCK_BLOT,x.tagName="P",x}(P.default);M.default=A},function(Q,M,T){"use strict";var A,q=this&&this.__extends||(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,x){E.__proto__=x}||function(E,x){for(var g in x)x.hasOwnProperty(g)&&(E[g]=x[g])},function(E,x){function g(){this.constructor=E}A(E,x),E.prototype=null===x?Object.create(x):(g.prototype=x.prototype,new g)});Object.defineProperty(M,"__esModule",{value:!0});var R=function(A){function E(){return null!==A&&A.apply(this,arguments)||this}return q(E,A),E.formats=function(x){},E.prototype.format=function(x,g){A.prototype.formatAt.call(this,0,this.length(),x,g)},E.prototype.formatAt=function(x,g,h,u){0===x&&g===this.length()?this.format(h,u):A.prototype.formatAt.call(this,x,g,h,u)},E.prototype.formats=function(){return this.statics.formats(this.domNode)},E}(T(19).default);M.default=R},function(Q,M,T){"use strict";var E,q=this&&this.__extends||(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,g){x.__proto__=g}||function(x,g){for(var h in g)g.hasOwnProperty(h)&&(x[h]=g[h])},function(x,g){function h(){this.constructor=x}E(x,g),x.prototype=null===g?Object.create(g):(h.prototype=g.prototype,new h)});Object.defineProperty(M,"__esModule",{value:!0});var P=T(19),R=T(1),A=function(E){function x(g){var h=E.call(this,g)||this;return h.text=h.statics.value(h.domNode),h}return q(x,E),x.create=function(g){return document.createTextNode(g)},x.value=function(g){var h=g.data;return h.normalize&&(h=h.normalize()),h},x.prototype.deleteAt=function(g,h){this.domNode.data=this.text=this.text.slice(0,g)+this.text.slice(g+h)},x.prototype.index=function(g,h){return this.domNode===g?h:-1},x.prototype.insertAt=function(g,h,u){null==u?(this.text=this.text.slice(0,g)+h+this.text.slice(g),this.domNode.data=this.text):E.prototype.insertAt.call(this,g,h,u)},x.prototype.length=function(){return this.text.length},x.prototype.optimize=function(g){E.prototype.optimize.call(this,g),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof x&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},x.prototype.position=function(g,h){return void 0===h&&(h=!1),[this.domNode,g]}
1,x.prototype.split=function(g,h){if(void 0===h&&(h=!1),!h){if(0===g)return this;if(g===this.length())return this.next}var u=R.create(this.domNode.splitText(g));return this.parent.insertBefore(u,this.next),this.text=this.statics.value(this.domNode),u},x.prototype.update=function(g,h){var u=this;g.some(function(v){return"characterData"===v.type&&v.target===u.domNode})&&(this.text=this.statics.value(this.domNode))},x.prototype.value=function(){return this.text},x.blotName="text",x.scope=R.Scope.INLINE_BLOT,x}(P.default);M.default=A},function(Q,M,T){"use strict";var q=document.createElement("div");if(q.classList.toggle("test-class",!1),q.classList.contains("test-class")){var P=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(R,A){return arguments.length>1&&!this.contains(R)==!A?A:P.call(this,R)}}String.prototype.startsWith||(String.prototype.startsWith=function(R,A){return this.substr(A=A||0,R.length)===R}),String.prototype.endsWith||(String.prototype.endsWith=function(R,A){var E=this.toString();("number"!=typeof A||!isFinite(A)||Math.floor(A)!==A||A>E.length)&&(A=E.length);var x=E.indexOf(R,A-=R.length);return-1!==x&&x===A}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(A){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof A)throw new TypeError("predicate must be a function");for(var h,E=Object(this),x=E.length>>>0,g=arguments[1],u=0;u<x;u++)if(A.call(g,h=E[u],u,E))return h}}),document.addEventListener("DOMContentLoaded",function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)})},function(Q,M){var T=-1;function R(f,w,z){if(f==w)return f?[[0,f]]:[];(z<0||f.length<z)&&(z=null);var I=g(f,w),B=f.substring(0,I);I=h(f=f.substring(I),w=w.substring(I));var W=f.substring(f.length-I),L=function A(f,w){var z;if(!f)return[[1,w]];if(!w)return[[T,f]];var I=f.length>w.length?f:w,B=f.length>w.length?w:f,W=I.indexOf(B);if(-1!=W)return z=[[1,I.substring(0,W)],[0,B],[1,I.substring(W+B.length)]],f.length>w.length&&(z[0][0]=z[2][0]=T),z;if(1==B.length)return[[T,f],[1,w]];var L=function u(f,w){var z=f.length>w.length?f:w,I=f.length>w.length?w:f;if(z.length<4||2*I.length<z.length)return null;function B(st,dt,et){for(var G,at,it,$,X=st.substring(et,et+Math.floor(st.length/4)),F=-1,K="";-1!=(F=dt.indexOf(X,F+1));){var tt=g(st.substring(et),dt.substring(F)),ut=h(st.substring(0,et),dt.substring(0,F));K.length<ut+tt&&(K=dt.substring(F-ut,F)+dt.substring(F,F+tt),G=st.substring(0,et-ut),at=st.substring(et+tt),it=dt.substring(0,F-ut),$=dt.substring(F+tt))}return 2*K.length>=st.length?[G,at,it,$,K]:null}var S,D,j,V,Y,W=B(z,I,Math.ceil(z.length/4)),L=B(z,I,Math.ceil(z.length/2));return W||L?(S=L?W&&W[4].length>L[4].length?W:L:W,f.length>w.length?(D=S[0],j=S[1],V=S[2],Y=S[3]):(V=S[0],Y=S[1],D=S[2],j=S[3]),[D,j,V,Y,S[4]]):null}(f,w);if(L){var D=L[1],V=L[3],Y=L[4],rt=R(L[0],L[2]),st=R(D,V);return rt.concat([[0,Y]],st)}return function E(f,w){for(var z=f.length,I=w.length,B=Math.ceil((z+I)/2),W=B,L=2*B,S=new Array(L),D=new Array(L),j=0;j<L;j++)S[j]=-1,D[j]=-1;S[W+1]=0,D[W+1]=0;for(var V=z-I,Y=V%2!=0,rt=0,st=0,dt=0,et=0,X=0;X<B;X++){for(var F=-X+rt;F<=X-st;F+=2){for(var K=W+F,at=(G=F==-X||F!=X&&S[K-1]<S[K+1]?S[K+1]:S[K-1]+1)-F;G<z&&at<I&&f.charAt(G)==w.charAt(at);)G++,at++;if(S[K]=G,G>z)st+=2;else if(at>I)rt+=2;else if(Y&&(it=W+V-F)>=0&&it<L&&-1!=D[it]&&G>=($=z-D[it]))return x(f,w,G,at)}for(var tt=-X+dt;tt<=X-et;tt+=2){for(var $,it=W+tt,ut=($=tt==-X||tt!=X&&D[it-1]<D[it+1]?D[it+1]:D[it-1]+1)-tt;$<z&&ut<I&&f.charAt(z-$-1)==w.charAt(I-ut-1);)$++,ut++;if(D[it]=$,$>z)et+=2;else if(ut>I)dt+=2;else if(!Y){var G;if((K=W+V-tt)>=0&&K<L&&-1!=S[K])if(at=W+(G=S[K])-K,G>=($=z-$))return x(f,w,G,at)}}}return[[T,f],[1,w]]}(f,w)}(f=f.substring(0,f.length-I),w=w.substring(0,w.length-I));return B&&L.unshift([0,B]),W&&L.push([0,W]),v(L),null!=z&&(L=function d(f,w){var z=function b(f,w){if(0===w)return[0,f];for(var z=0,I=0;I<f.length;I++){var B=f[I];if(B[0]===T||0===B[0]){var W=z+B[1].length;if(w===W)return[I+1,f];if(w<W){f=f.slice();var L=w-z,S=[B[0],B[1].slice(0,L)],D=[B[0],B[1].slice(L)];return f.splice(I,1,S,D),[I+1,f]}z=W}}throw new Error("cursor_pos is out of bounds!")}(f,w),I=z[1],B=z[0],W=I[B],L=I[B+1];if(null==W)return f;if(0!==W[0])return f;if(null!=L&&W[1]+L[1]===L[1]+W[1])return I.splice(B,2,L,W),O(I,B,2);if(null!=L&&0===L[1].indexOf(W[1])){I.splice(B,2,[L[0],W[1]],[0,W[1]]);var S=L[1].slice(W[1].length);return S.length>0&&I.splice(B+2,0,[L[0],S]),O(I,B,3)}return f}(L,z)),L=function p(f){for(var w=!1,z=function(L){return L.charCo
vendor: 6,547 bytes, line 1
1deAt(0)>=56320&&L.charCodeAt(0)<=57343},I=function(L){return L.charCodeAt(L.length-1)>=55296&&L.charCodeAt(L.length-1)<=56319},B=2;B<f.length;B+=1)0===f[B-2][0]&&I(f[B-2][1])&&f[B-1][0]===T&&z(f[B-1][1])&&1===f[B][0]&&z(f[B][1])&&(w=!0,f[B-1][1]=f[B-2][1].slice(-1)+f[B-1][1],f[B][1]=f[B-2][1].slice(-1)+f[B][1],f[B-2][1]=f[B-2][1].slice(0,-1));if(!w)return f;var W=[];for(B=0;B<f.length;B+=1)f[B][1].length>0&&W.push(f[B]);return W}(L),L}function x(f,w,z,I){var B=f.substring(0,z),W=w.substring(0,I),L=f.substring(z),S=w.substring(I),D=R(B,W),j=R(L,S);return D.concat(j)}function g(f,w){if(!f||!w||f.charAt(0)!=w.charAt(0))return 0;for(var z=0,I=Math.min(f.length,w.length),B=I,W=0;z<B;)f.substring(W,B)==w.substring(W,B)?W=z=B:I=B,B=Math.floor((I-z)/2+z);return B}function h(f,w){if(!f||!w||f.charAt(f.length-1)!=w.charAt(w.length-1))return 0;for(var z=0,I=Math.min(f.length,w.length),B=I,W=0;z<B;)f.substring(f.length-B,f.length-W)==w.substring(w.length-B,w.length-W)?W=z=B:I=B,B=Math.floor((I-z)/2+z);return B}function v(f){f.push([0,""]);for(var L,w=0,z=0,I=0,B="",W="";w<f.length;)switch(f[w][0]){case 1:I++,W+=f[w][1],w++;break;case T:z++,B+=f[w][1],w++;break;case 0:z+I>1?(0!==z&&0!==I&&(0!==(L=g(W,B))&&(w-z-I>0&&0==f[w-z-I-1][0]?f[w-z-I-1][1]+=W.substring(0,L):(f.splice(0,0,[0,W.substring(0,L)]),w++),W=W.substring(L),B=B.substring(L)),0!==(L=h(W,B))&&(f[w][1]=W.substring(W.length-L)+f[w][1],W=W.substring(0,W.length-L),B=B.substring(0,B.length-L))),0===z?f.splice(w-I,z+I,[1,W]):0===I?f.splice(w-z,z+I,[T,B]):f.splice(w-z-I,z+I,[T,B],[1,W]),w=w-z-I+(z?1:0)+(I?1:0)+1):0!==w&&0==f[w-1][0]?(f[w-1][1]+=f[w][1],f.splice(w,1)):w++,I=0,z=0,B="",W=""}""===f[f.length-1][1]&&f.pop();var S=!1;for(w=1;w<f.length-1;)0==f[w-1][0]&&0==f[w+1][0]&&(f[w][1].substring(f[w][1].length-f[w-1][1].length)==f[w-1][1]?(f[w][1]=f[w-1][1]+f[w][1].substring(0,f[w][1].length-f[w-1][1].length),f[w+1][1]=f[w-1][1]+f[w+1][1],f.splice(w-1,1),S=!0):f[w][1].substring(0,f[w+1][1].length)==f[w+1][1]&&(f[w-1][1]+=f[w+1][1],f[w][1]=f[w][1].substring(f[w+1][1].length)+f[w+1][1],f.splice(w+1,1),S=!0)),w++;S&&v(f)}var m=R;function O(f,w,z){for(var I=w+z-1;I>=0&&I>=w-1;I--)if(I+1<f.length){var B=f[I],W=f[I+1];B[0]===W[1]&&f.splice(I,2,[B[0],B[1]+W[1]])}return f}m.INSERT=1,m.DELETE=T,m.EQUAL=0,Q.exports=m},function(Q,M){function T(q){var P=[];for(var R in q)P.push(R);return P}(Q.exports="function"==typeof Object.keys?Object.keys:T).shim=T},function(Q,M){var T="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function q(R){return"[object Arguments]"==Object.prototype.toString.call(R)}function P(R){return R&&"object"==typeof R&&"number"==typeof R.length&&Object.prototype.hasOwnProperty.call(R,"callee")&&!Object.prototype.propertyIsEnumerable.call(R,"callee")||!1}(M=Q.exports=T?q:P).supported=q,M.unsupported=P},function(Q,M){"use strict";var T=Object.prototype.hasOwnProperty,q="~";function P(){}function R(E,x,g){this.fn=E,this.context=x,this.once=g||!1}function A(){this._events=new P,this._eventsCount=0}Object.create&&(P.prototype=Object.create(null),(new P).__proto__||(q=!1)),A.prototype.eventNames=function(){var g,h,x=[];if(0===this._eventsCount)return x;for(h in g=this._events)T.call(g,h)&&x.push(q?h.slice(1):h);return Object.getOwnPropertySymbols?x.concat(Object.getOwnPropertySymbols(g)):x},A.prototype.listeners=function(x,g){var u=this._events[q?q+x:x];if(g)return!!u;if(!u)return[];if(u.fn)return[u.fn];for(var v=0,m=u.length,b=new Array(m);v<m;v++)b[v]=u[v].fn;return b},A.prototype.emit=function(x,g,h,u,v,m){var b=q?q+x:x;if(!this._events[b])return!1;var O,f,d=this._events[b],p=arguments.length;if(d.fn){switch(d.once&&this.removeListener(x,d.fn,void 0,!0),p){case 1:return d.fn.call(d.context),!0;case 2:return d.fn.call(d.context,g),!0;case 3:return d.fn.call(d.context,g,h),!0;case 4:return d.fn.call(d.context,g,h,u),!0;case 5:return d.fn.call(d.context,g,h,u,v),!0;case 6:return d.fn.call(d.context,g,h,u,v,m),!0}for(f=1,O=new Array(p-1);f<p;f++)O[f-1]=arguments[f];d.fn.apply(d.context,O)}else{var z,w=d.length;for(f=0;f<w;f++)switch(d[f].once&&this.removeListener(x,d[f].fn,void 0,!0),p){case 1:d[f].fn.call(d[f].context);break;case 2:d[f].fn.call(d[f].context,g);break;case 3:d[f].fn.call(d[f].context,g,h);break;case 4:d[f].fn.call(d[f].context,g,h,u);break;default:if(!O)for(z=1,O=new Array(p-1);z<p;z++)O[z-1]=arguments[z];d[f].fn.apply(d[f].context,O)}}return!0},A.prototype.on=function(x,g,h){var u=new R(g,h||this),v=q?q+x:x;return this._events[v]?this._events[v].fn?this._events[v]=[this._events[v],u]:this._events[v].push(u):(this._events[v]=u,this._eventsCount++),this},A.prototype.once=function(x,g,h){var u=new R(g,h||this,!0),v=q?q+x:x;return this._events[v]?this._events[v].fn?this._events[v]=[this._events[v],u]:this._events[v].push(u):(this._events[v]=u,this._eventsCount++),this},A.prototype.removeListener=function(x,g,h,u){var v=q?q+x:x;if(!this._events[v])return this;if(!g)return 0===--this._eventsCount?this._events=new P:delete this._events[v],this;var m=this._events[v];if(m.fn)m.fn===g&&(!u||m.once)&&(!h||m.context===h)&&(0===--this._eventsCount?this._events=new P:delete this._events[v]);else{for(var b=0,d=[],p=m.length;b<p;b++)(m[b].fn!==g||u&&!m[b].once||h&&m[b].context!==h)&&d.push(m[b]);d.length?this._events[v]=1===d.length?d[0]:d:0===--this._eventsCount?this._events=new P:delete this._events[v]}return this},A.prototype.removeAllListeners=function(x){var g;return x?this._events[g=q?q+x:x]&&(0===--this._eventsCount?this._events=new P:delete this._events[g]):(this._events=new P,this._eventsCount=0),this},A.prototype.off=A.prototype.removeListener,A.prototype.addListener=A.prototype.on,A.prototype.setMaxListeners=function(){return this},A.prefixed=q,A.EventEmitter=A,typeof Q<"u"&&(Q.exports=A)},function(Q,M,T){"use strict";Object.defineProperty(M,"__esModule",{value:!0}),M.matchText=M.matchSpacing=M.matchNewline=M.matchBlot=M.matchAttributor=M.default=void 0;var q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(ft){return typeof ft}:function(ft){return ft&&"function"==typeof Symbol&&ft.constructor===Symbol&&ft!==Symbol.prototype?"symbol":typeof ft},P=function(){return function(ht,_t){if(Array.isArray(ht))return ht;if(Symbol.iterator in Object(ht))return function ft(ht,_t){var xt=[],mt=!0,Lt=!1,Rt=void 0;try{for(var Zt,Dt=ht[Symbol.iterator]();!(mt=(Zt=Dt.next()).done)&&(xt.push(Zt.value),!_t||xt.length!==_t);mt=!0);}catch(Qt){Lt=!0,Rt=Qt}finally{try{!mt&&Dt.return&&Dt.return()}finally{if(Lt)throw Rt}}return xt}(ht,_t);
1throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),R=function(){function ft(ht,_t){for(var xt=0;xt<_t.length;xt++){var mt=_t[xt];mt.enumerable=mt.enumerable||!1,mt.configurable=!0,"value"in mt&&(mt.writable=!0),Object.defineProperty(ht,mt.key,mt)}}return function(ht,_t,xt){return _t&&ft(ht.prototype,_t),xt&&ft(ht,xt),ht}}(),E=D(T(3)),g=D(T(2)),u=D(T(0)),m=D(T(5)),d=D(T(10)),O=D(T(9)),f=T(36),w=T(37),I=D(T(13)),B=T(26),W=T(38),L=T(39),S=T(40);function D(ft){return ft&&ft.__esModule?ft:{default:ft}}function j(ft,ht,_t){return ht in ft?Object.defineProperty(ft,ht,{value:_t,enumerable:!0,configurable:!0,writable:!0}):ft[ht]=_t,ft}var st=(0,d.default)("quill:clipboard"),dt="__ql-matcher",et=[[Node.TEXT_NODE,It],[Node.TEXT_NODE,jt],["br",function kt(ft,ht){return it(ht,"\n")||ht.insert("\n"),ht}],[Node.ELEMENT_NODE,jt],[Node.ELEMENT_NODE,pt],[Node.ELEMENT_NODE,Nt],[Node.ELEMENT_NODE,lt],[Node.ELEMENT_NODE,function Wt(ft,ht){var _t={},xt=ft.style||{};return xt.fontStyle&&"italic"===at(ft).fontStyle&&(_t.italic=!0),xt.fontWeight&&(at(ft).fontWeight.startsWith("bold")||parseInt(at(ft).fontWeight)>=700)&&(_t.bold=!0),Object.keys(_t).length>0&&(ht=G(ht,_t)),parseFloat(xt.textIndent||0)>0&&(ht=(new g.default).insert("\t").concat(ht)),ht}],["li",function Mt(ft,ht){var _t=u.default.query(ft);if(null==_t||"list-item"!==_t.blotName||!it(ht,"\n"))return ht;for(var xt=-1,mt=ft.parentNode;!mt.classList.contains("ql-clipboard");)"list"===(u.default.query(mt)||{}).blotName&&(xt+=1),mt=mt.parentNode;return xt<=0?ht:ht.compose((new g.default).retain(ht.length()-1).retain(1,{indent:xt}))}],["b",ut.bind(ut,"bold")],["i",ut.bind(ut,"italic")],["style",function Pt(){return new g.default}]],X=[f.AlignAttribute,W.DirectionAttribute].reduce(function(ft,ht){return ft[ht.keyName]=ht,ft},{}),F=[f.AlignStyle,w.BackgroundStyle,B.ColorStyle,W.DirectionStyle,L.FontStyle,S.SizeStyle].reduce(function(ft,ht){return ft[ht.keyName]=ht,ft},{}),K=function(ft){function ht(_t,xt){!function V(ft,ht){if(!(ft instanceof ht))throw new TypeError("Cannot call a class as a function")}(this,ht);var mt=function Y(ft,ht){if(!ft)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!ht||"object"!=typeof ht&&"function"!=typeof ht?ft:ht}(this,(ht.__proto__||Object.getPrototypeOf(ht)).call(this,_t,xt));return mt.quill.root.addEventListener("paste",mt.onPaste.bind(mt)),mt.container=mt.quill.addContainer("ql-clipboard"),mt.container.setAttribute("contenteditable",!0),mt.container.setAttribute("tabindex",-1),mt.matchers=[],et.concat(mt.options.matchers).forEach(function(Lt){var Rt=P(Lt,2),Zt=Rt[1];!xt.matchVisual&&Zt===Nt||mt.addMatcher(Rt[0],Zt)}),mt}return function rt(ft,ht){if("function"!=typeof ht&&null!==ht)throw new TypeError("Super expression must either be null or a function, not "+typeof ht);ft.prototype=Object.create(ht&&ht.prototype,{constructor:{value:ft,enumerable:!1,writable:!0,configurable:!0}}),ht&&(Object.setPrototypeOf?Object.setPrototypeOf(ft,ht):ft.__proto__=ht)}(ht,ft),R(ht,[{key:"addMatcher",value:function(xt,mt){this.matchers.push([xt,mt])}},{key:"convert",value:function(xt){if("string"==typeof xt)return this.container.innerHTML=xt.replace(/\>\r?\n +\</g,"><"),this.convert();var mt=this.quill.getFormat(this.quill.selection.savedRange.index);if(mt[I.default.blotName]){var Lt=this.container.innerText;return this.container.innerHTML="",(new g.default).insert(Lt,j({},I.default.blotName,mt[I.default.blotName]))}var Rt=this.prepareMatching(),Dt=P(Rt,2),qt=tt(this.container,Dt[0],Dt[1]);return it(qt,"\n")&&null==qt.ops[qt.ops.length-1].attributes&&(qt=qt.compose((new g.default).retain(qt.length()-1).delete(1))),st.log("convert",this.container.innerHTML,qt),this.container.innerHTML="",qt}},{key:"dangerouslyPasteHTML",value:function(xt,mt){var Lt=arguments.length>2&&void 0!==arguments[2]?arguments[2]:m.default.sources.API;if("string"==typeof xt)this.quill.setContents(this.convert(xt),mt),this.quill.setSelection(0,m.default.sources.SILENT);else{var Rt=this.convert(mt);this.quill.updateContents((new g.default).retain(xt).concat(Rt),Lt),this.quill.setSelection(xt+Rt.length(),m.default.sources.SILENT)}}},{key:"onPaste",value:function(xt){var mt=this;if(!xt.defaultPrevented&&this.quill.isEnabled()){var Lt=this.quill.getSelection(),Rt=(new g.default).retain(Lt.index),Dt=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(m.default.sources.SILENT),setTimeout(function(){Rt=Rt.concat(mt.convert()).delete(Lt.length),mt.quill.updateContents(Rt,m.default.sources.USER),mt.quill.setSelection(Rt.length()-Lt.length,m.default.sources.SILENT),mt.quill.scrollingContainer.scrollTop=Dt,mt.quill.focus()},1)}}},{key:"prepareMatching",value:function(){var xt=this,mt=[],Lt=[];
vendor: 2,987 bytes, line 1
1return this.matchers.forEach(function(Rt){var Dt=P(Rt,2),Zt=Dt[0],Qt=Dt[1];switch(Zt){case Node.TEXT_NODE:Lt.push(Qt);break;case Node.ELEMENT_NODE:mt.push(Qt);break;default:[].forEach.call(xt.container.querySelectorAll(Zt),function(qt){qt[dt]=qt[dt]||[],qt[dt].push(Qt)})}}),[mt,Lt]}}]),ht}(O.default);function G(ft,ht,_t){return"object"===(typeof ht>"u"?"undefined":q(ht))?Object.keys(ht).reduce(function(xt,mt){return G(xt,mt,ht[mt])},ft):ft.reduce(function(xt,mt){return mt.attributes&&mt.attributes[ht]?xt.push(mt):xt.insert(mt.insert,(0,E.default)({},j({},ht,_t),mt.attributes))},new g.default)}function at(ft){if(ft.nodeType!==Node.ELEMENT_NODE)return{};var ht="__ql-computed-style";return ft[ht]||(ft[ht]=window.getComputedStyle(ft))}function it(ft,ht){for(var _t="",xt=ft.ops.length-1;xt>=0&&_t.length<ht.length;--xt){var mt=ft.ops[xt];if("string"!=typeof mt.insert)break;_t=mt.insert+_t}return _t.slice(-1*ht.length)===ht}function $(ft){if(0===ft.childNodes.length)return!1;var ht=at(ft);return["block","list-item"].indexOf(ht.display)>-1}function tt(ft,ht,_t){return ft.nodeType===ft.TEXT_NODE?_t.reduce(function(xt,mt){return mt(ft,xt)},new g.default):ft.nodeType===ft.ELEMENT_NODE?[].reduce.call(ft.childNodes||[],function(xt,mt){var Lt=tt(mt,ht,_t);return mt.nodeType===ft.ELEMENT_NODE&&(Lt=ht.reduce(function(Rt,Dt){return Dt(mt,Rt)},Lt),Lt=(mt[dt]||[]).reduce(function(Rt,Dt){return Dt(mt,Rt)},Lt)),xt.concat(Lt)},new g.default):new g.default}function ut(ft,ht,_t){return G(_t,ft,!0)}function lt(ft,ht){var _t=u.default.Attributor.Attribute.keys(ft),xt=u.default.Attributor.Class.keys(ft),mt=u.default.Attributor.Style.keys(ft),Lt={};return _t.concat(xt).concat(mt).forEach(function(Rt){var Dt=u.default.query(Rt,u.default.Scope.ATTRIBUTE);null!=Dt&&(Lt[Dt.attrName]=Dt.value(ft),Lt[Dt.attrName])||(null!=(Dt=X[Rt])&&(Dt.attrName===Rt||Dt.keyName===Rt)&&(Lt[Dt.attrName]=Dt.value(ft)||void 0),null!=(Dt=F[Rt])&&(Dt.attrName===Rt||Dt.keyName===Rt)&&(Lt[(Dt=F[Rt]).attrName]=Dt.value(ft)||void 0))}),Object.keys(Lt).length>0&&(ht=G(ht,Lt)),ht}function pt(ft,ht){var _t=u.default.query(ft);if(null==_t)return ht;if(_t.prototype instanceof u.default.Embed){var xt={},mt=_t.value(ft);null!=mt&&(xt[_t.blotName]=mt,ht=(new g.default).insert(xt,_t.formats(ft)))}else"function"==typeof _t.formats&&(ht=G(ht,_t.blotName,_t.formats(ft)));return ht}function jt(ft,ht){return it(ht,"\n")||($(ft)||ht.length()>0&&ft.nextSibling&&$(ft.nextSibling))&&ht.insert("\n"),ht}function Nt(ft,ht){if($(ft)&&null!=ft.nextElementSibling&&!it(ht,"\n\n")){var _t=ft.offsetHeight+parseFloat(at(ft).marginTop)+parseFloat(at(ft).marginBottom);ft.nextElementSibling.offsetTop>ft.offsetTop+1.5*_t&&ht.insert("\n")}return ht}function It(ft,ht){var _t=ft.data;if("O:P"===ft.parentNode.tagName)return ht.insert(_t.trim());if(0===_t.trim().length&&ft.parentNode.classList.contains("ql-clipboard"))return ht;if(!at(ft.parentNode).whiteSpace.startsWith("pre")){var xt=function(Lt,Rt){return(Rt=Rt.replace(/[^\u
100a0]/g,"")).length<1&&Lt?" ":Rt};_t=(_t=_t.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,xt.bind(xt,!0)),(null==ft.previousSibling&&$(ft.parentNode)||null!=ft.previousSibling&&$(ft.previousSibling))&&(_t=_t.replace(/^\s+/,xt.bind(xt,!1))),(null==ft.nextSibling&&$(ft.parentNode)||null!=ft.nextSibling&&$(ft.nextSibling))&&(_t=_t.replace(/\s+$/,xt.bind(xt,!1)))}return ht.insert(_t)}K.DEFAULTS={matchers:[],matchVisual:!0},M.default=K,M.matchAttributor=lt,M.matchBlot=pt,M.matchNewline=jt,M.matchSpacing=Nt,M.matchText=It},function(Q,M,T){"use strict";Object.defineProperty(M,"__esModule",{value:!0});var q=function(){function v(m,b){for(var d=0;d<b.length;d++){var p=b[d];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(m,p.key,p)}}return function(m,b,d){return b&&v(m.prototype,b),d&&v(m,d),m}}(),P=function v(m,b,d){null===m&&(m=Function.prototype);var p=Object.getOwnPropertyDescriptor(m,b);if(void 0===p){var O=Object.getPrototypeOf(m);return null===O?void 0:v(O,b,d)}if("value"in p)return p.value;var f=p.get;return void 0===f?void 0:f.call(d)},u=function(v){function m(){return function x(v,m){if(!(v instanceof m))throw new TypeError("Cannot call a class as a function")}(this,m),function g(v,m){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!m||"object"!=typeof m&&"function"!=typeof m?v:m}(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return function h(v,m){if("function"!=typeof m&&null!==m)throw new TypeError("Super expression must either be null or a function, not "+typeof m);v.prototype=Object.create(m&&m.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(v,m):v.__proto__=m)}(m,v),q(m,[{key:"optimize",value:function(d){P(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"optimize",this).call(this,d),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return P(m.__proto__||Object.getPrototypeOf(m),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),m}(function E(v){return v&&v.__esModule?v:{default:v}}(T(6)).default);u.blotName="bold",u.tagName=["STRONG","B"],M.default=u},function(Q,M,T){"use strict";Object.defineProperty(M,"__esModule",{value:!0}),M.addControls=M.default=void 0;var q=function(){return function(D,j){if(Array.isArray(D))return D;if(Symbol.iterator in Object(D))return function S(D,j){var V=[],Y=!0,rt=!1,st=void 0;try{for(var et,dt=D[Symbol.iterator]();!(Y=(et=dt.next()).done)&&(V.push(et.value),!j||V.length!==j);Y=!0);}catch(X){rt=!0,st=X}finally{try{!Y&&dt.return&&dt.return()}finally{if(rt)throw st}}return V}(D,j);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),P=function(){function S(D,j){for(var V=0;V<j.length;V++){var Y=j[V];Y.enumerable=Y.enumerable||!1,Y.configurable=!0,"value"in Y&&(Y.writable=!0),Object.defineProperty(D,Y.key,Y)}}return function(D,j,V){return j&&S(D.prototype,j),V&&S(D,V),D}}(),A=d(T(2)),x=d(T(0)),h=d(T(5)),v=d(T(10)),b=d(T(9));function d(S){return S&&S.__esModule?S:{default:S}}function f(S,D){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!D||"object"!=typeof D&&"function"!=typeof D?S:D}var z=(0,v.default)("quill:toolbar"),I=function(S){function D(j,V){!function O(S,D){if(!(S instanceof D))throw new TypeError("Cannot call a class as a function")}(this,D);var st,Y=f(this,(D.__proto__||Object.getPrototypeOf(D)).call(this,j,V));if(Array.isArray(Y.options.container)){var rt=document.createElement("div");W(rt,Y.options.container),j.container.parentNode.insertBefore(rt,j.container),Y.container=rt}else Y.container="string"==typeof Y.options.container?document.querySelector(Y.options.container):Y.options.container;return Y.container instanceof HTMLElement?(Y.container.classList.add("ql-toolbar"),Y.controls=[],Y.handlers={},Object.keys(Y.options.handlers).forEach(function(dt){Y.addHandler(dt,Y.options.handlers[dt])}),[].forEach.call(Y.container.querySelectorAll("button, select"),function(dt){Y.attach(dt)}),Y.quill.on(h.default.events.EDITOR_CHANGE,function(dt,et){dt===h.default.events.SELECTION_CHANGE&&Y.update(et)}),Y.quill.on(h.default.events.SCROLL_OPTIMIZE,function(){var dt=Y.quill.selection.getRange(),et=q(dt,1);Y.update(et[0])}),Y):(st=z.error("Container required for toolbar",Y.options),f(Y,st))}return function w(S,D){if("function"!=typeof D&&null!==D)throw new TypeError("Super expression must either be null or a function, not "+typeof D);S.prototype=Object.create(D&&D.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),D&&(Object.setPrototypeOf?Object.setPrototypeOf(S,D):S.__proto__=D)}(D,S),P(D,[{key:"addHandler",value:function(V,Y){this.handlers[V]=Y}},{key:"attach",value:function(V){var Y=this,rt=[].find.call(V.classList,function(dt){return 0===dt.indexOf("ql-")});if(rt){if(rt=rt.slice(3),"BUTTON"===V.tagName&&V.setAttribute("type","button"),null==this.handlers[rt]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[rt])return void z.warn("ignoring attaching to disabled format",rt,V);if(null==x.default.query(rt))return void z.warn("ignoring attaching to nonexistent format",rt,V)}V.addEventListener("SELECT"===V.tagName?"change":"click",function(dt){var et=void 0;if("SELECT"===V.tagName){if(V.selectedIndex<0)return;var X=V.options[V.selectedIndex];et=!X.hasAttribute("selected")&&(X.value||!1)}else et=!V.classList.contains("ql-active")&&(V.value||!V.hasAttribute("value")),dt.preventDefault();Y.quill.focus();var F=Y.quill.selection.getRange(),G=q(F,1)[0];if(null!=Y.handlers[rt])Y.handlers[rt].call(Y,et);else if(x.default.query(rt).prototype instanceof x.default.Embed){if(!(et=prompt("Enter "+rt)))return;Y.quill.updateContents((new A.default).retain(G.index).delete(G.length).insert(function p(S,D,j){return D in S?Object.defineProperty(S,D,{value:j,enumerable:!0,configurable:!0,writable:!0}):S[D]=j,S}({},rt,et)),h.default.sources.USER)}else Y.quill.format(rt,et,h.default.sources.USER);Y.update(G)}),this.controls.push([rt,V])}}},{key:"update",value:function(V){var Y=null==V?{}:this.quill.getFormat(V);
vendor: 4,741 bytes, line 1
1this.controls.forEach(function(rt){var st=q(rt,2),dt=st[0],et=st[1];if("SELECT"===et.tagName){var X=void 0;if(null==V)X=null;else if(null==Y[dt])X=et.querySelector("option[selected]");else if(!Array.isArray(Y[dt])){var F=Y[dt];"string"==typeof F&&(F=F.replace(/\"/g,'\\"')),X=et.querySelector('option[value="'+F+'"]')}null==X?(et.value="",et.selectedIndex=-1):X.selected=!0}else if(null==V)et.classList.remove("ql-active");else if(et.hasAttribute("value")){var K=Y[dt]===et.getAttribute("value")||null!=Y[dt]&&Y[dt].toString()===et.getAttribute("value")||null==Y[dt]&&!et.getAttribute("value");et.classList.toggle("ql-active",K)}else et.classList.toggle("ql-active",null!=Y[dt])})}}]),D}(b.default);function B(S,D,j){var V=document.createElement("button");V.setAttribute("type","button"),V.classList.add("ql-"+D),null!=j&&(V.value=j),S.appendChild(V)}function W(S,D){Array.isArray(D[0])||(D=[D]),D.forEach(function(j){var V=document.createElement("span");V.classList.add("ql-formats"),j.forEach(function(Y){if("string"==typeof Y)B(V,Y);else{var rt=Object.keys(Y)[0],st=Y[rt];Array.isArray(st)?function L(S,D,j){var V=document.createElement("select");V.classList.add("ql-"+D),j.forEach(function(Y){var rt=document.createElement("option");!1!==Y?rt.setAttribute("value",Y):rt.setAttribute("selected","selected"),V.appendChild(rt)}),S.appendChild(V)}(V,rt,st):B(V,rt,st)}}),S.appendChild(V)})}I.DEFAULTS={},I.DEFAULTS={container:null,handlers:{clean:function(){var D=this,j=this.quill.getSelection();if(null!=j)if(0==j.length){var V=this.quill.getFormat();Object.keys(V).forEach(function(Y){null!=x.default.query(Y,x.default.Scope.INLINE)&&D.quill.format(Y,!1)})}else this.quill.removeFormat(j,h.default.sources.USER)},direction:function(D){var j=this.quill.getFormat().align;"rtl"===D&&null==j?this.quill.format("align","right",h.default.sources.USER):!D&&"right"===j&&this.quill.format("align",!1,h.default.sources.USER),this.quill.format("direction",D,h.default.sources.USER)},indent:function(D){var j=this.quill.getSelection(),V=this.quill.getFormat(j),Y=parseInt(V.indent||0);if("+1"===D||"-1"===D){var rt="+1"===D?1:-1;"rtl"===V.direction&&(rt*=-1),this.quill.format("indent",Y+rt,h.default.sources.USER)}},link:function(D){!0===D&&(D=prompt("Enter link URL:")),this.quill.format("link",D,h.default.sources.USER)},list:function(D){var j=this.quill.getSelection(),V=this.quill.getFormat(j);this.quill.format("list","check"===D?"checked"!==V.list&&"unchecked"!==V.list&&"unchecked":D,h.default.sources.USER)}}},M.default=I,M.addControls=W},function(Q,M){Q.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(Q,M,T){"use strict";Object.defineProperty(M,"__esModule",{value:!0});var q=function(){function v(m,b){for(var d=0;d<b.length;d++){var p=b[d];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(m,p.key,p)}}return function(m,b,d){return b&&v(m.prototype,b),d&&v(m,d),m}}(),P=function v(m,b,d){null===m&&(m=Function.prototype);var p=Object.getOwnPropertyDescriptor(m,b);if(void 0===p){var O=Object.getPrototypeOf(m);return null===O?void 0:v(O,b,d)}if("value"in p)return p.value;var f=p.get;return void 0===f?void 0:f.call(d)},u=function(v){function m(b,d){!function x(v,m){if(!(v instanceof m))throw new TypeError("Cannot call a class as a function")}(this,m);var p=function g(v,m){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!m||"object"!=typeof m&&"function"!=typeof m?v:m}(this,(m.__proto__||Object.getPrototypeOf(m)).call(this,b));return p.label.innerHTML=d,p.container.classList.add("ql-color-picker"),[].slice.call(p.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(O){O.classList.add("ql-primary")}),p}return function h(v,m){if("function"!=typeof m&&null!==m)throw new TypeError("Super expression must either be null or a function, not "+typeof m);v.prototype=Object.create(m&&m.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(v,m):v.__proto__=m)}(m,v),q(m,[{key:"buildItem",value:function(d){var p=P(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"buildItem",this).call(this,d);return p.style.backgroundColor=d.getAttribute("value")||"",p}},{key:"selectItem",value:function(d,p){P(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"selectItem",this).call(this,d,p);var O=this.label.querySelector(".ql-color-label"),f=d&&d.getAttribute("data-value")||"";O&&("line"===O.tagName?O.style.stroke=f:O.style.fill=f)}}]),m}
1(function E(v){return v&&v.__esModule?v:{default:v}}(T(28)).default);M.default=u},function(Q,M,T){"use strict";Object.defineProperty(M,"__esModule",{value:!0});var q=function(){function v(m,b){for(var d=0;d<b.length;d++){var p=b[d];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(m,p.key,p)}}return function(m,b,d){return b&&v(m.prototype,b),d&&v(m,d),m}}(),P=function v(m,b,d){null===m&&(m=Function.prototype);var p=Object.getOwnPropertyDescriptor(m,b);if(void 0===p){var O=Object.getPrototypeOf(m);return null===O?void 0:v(O,b,d)}if("value"in p)return p.value;var f=p.get;return void 0===f?void 0:f.call(d)},u=function(v){function m(b,d){!function x(v,m){if(!(v instanceof m))throw new TypeError("Cannot call a class as a function")}(this,m);var p=function g(v,m){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!m||"object"!=typeof m&&"function"!=typeof m?v:m}(this,(m.__proto__||Object.getPrototypeOf(m)).call(this,b));return p.container.classList.add("ql-icon-picker"),[].forEach.call(p.container.querySelectorAll(".ql-picker-item"),function(O){O.innerHTML=d[O.getAttribute("data-value")||""]}),p.defaultItem=p.container.querySelector(".ql-selected"),p.selectItem(p.defaultItem),p}return function h(v,m){if("function"!=typeof m&&null!==m)throw new TypeError("Super expression must either be null or a function, not "+typeof m);v.prototype=Object.create(m&&m.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(v,m):v.__proto__=m)}(m,v),q(m,[{key:"selectItem",value:function(d,p){P(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"selectItem",this).call(this,d,p),this.label.innerHTML=(d=d||this.defaultItem).innerHTML}}]),m}(function E(v){return v&&v.__esModule?v:{default:v}}(T(28)).default);M.default=u},function(Q,M,T){"use strict";Object.defineProperty(M,"__esModule",{value:!0});var q=function(){function A(E,x){for(var g=0;g<x.length;g++){var h=x[g];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(E,h.key,h)}}return function(E,x,g){return x&&A(E.prototype,x),g&&A(E,g),E}}(),R=function(){function A(E,x){var g=this;(function P(A,E){if(!(A instanceof E))throw new TypeError("Cannot call a class as a function")})(this,A),this.quill=E,this.boundsContainer=x||document.body,this.root=E.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){g.root.style.marginTop=-1*g.quill.root.scrollTop+"px"}),this.hide()}return q(A,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(x){var g=x.left+x.width/2-this.root.offsetWidth/2,h=x.bottom+this.quill.root.scrollTop;this.root.style.left=g+"px",this.root.style.top=h+"px",this.root.classList.remove("ql-flip");var u=this.boundsContainer.getBoundingClientRect(),v=this.root.getBoundingClientRect(),m=0;return v.right>u.right&&(this.root.style.left=g+(m=u.right-v.right)+"px"),v.left<u.left&&(this.root.style.left=g+(m=u.left-v.left)+"px"),v.bottom>u.bottom&&(this.root.style.top=h-(x.bottom-x.top+(v.bottom-v.top))+"px",this.root.classList.add("ql-flip")),m}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),A}();M.default=R},function(Q,M,T){"use strict";Object.defineProperty(M,"__esModule",{value:!0});var q=function(){return function(S,D){if(Array.isArray(S))return S;if(Symbol.iterator in Object(S))return function L(S,D){var j=[],V=!0,Y=!1,rt=void 0;try{for(var dt,st=S[Symbol.iterator]();!(V=(dt=st.next()).done)&&(j.push(dt.value),!D||j.length!==D);V=!0);}catch(et){Y=!0,rt=et}finally{try{!V&&st.return&&st.return()}finally{if(Y)throw rt}}return j}(S,D);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),P=function L(S,D,j){null===S&&(S=Function.prototype);var V=Object.getOwnPropertyDescriptor(S,D);if(void 0===V){var Y=Object.getPrototypeOf(S);return null===Y?void 0:L(Y,D,j)}if("value"in V)return V.value;var rt=V.get;return void 0===rt?void 0:rt.call(j)},R=function(){function L(S,D){for(var j=0;j<D.length;j++){var V=D[j];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(S,V.key,V
vendor: 4,238 bytes, line 1
1)}}return function(S,D,j){return D&&L(S.prototype,D),j&&L(S,j),S}}(),E=O(T(3)),g=O(T(8)),h=T(43),u=O(h),m=O(T(27)),b=T(15),p=O(T(41));function O(L){return L&&L.__esModule?L:{default:L}}function f(L,S){if(!(L instanceof S))throw new TypeError("Cannot call a class as a function")}function w(L,S){if(!L)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!S||"object"!=typeof S&&"function"!=typeof S?L:S}function z(L,S){if("function"!=typeof S&&null!==S)throw new TypeError("Super expression must either be null or a function, not "+typeof S);L.prototype=Object.create(S&&S.prototype,{constructor:{value:L,enumerable:!1,writable:!0,configurable:!0}}),S&&(Object.setPrototypeOf?Object.setPrototypeOf(L,S):L.__proto__=S)}var I=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],B=function(L){function S(D,j){f(this,S),null!=j.modules.toolbar&&null==j.modules.toolbar.container&&(j.modules.toolbar.container=I);var V=w(this,(S.__proto__||Object.getPrototypeOf(S)).call(this,D,j));return V.quill.container.classList.add("ql-snow"),V}return z(S,L),R(S,[{key:"extendToolbar",value:function(j){j.container.classList.add("ql-snow"),this.buildButtons([].slice.call(j.container.querySelectorAll("button")),p.default),this.buildPickers([].slice.call(j.container.querySelectorAll("select")),p.default),this.tooltip=new W(this.quill,this.options.bounds),j.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(V,Y){j.handlers.link.call(j,!Y.format.link)})}}]),S}(u.default);B.DEFAULTS=(0,E.default)(!0,{},u.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(S){if(S){var D=this.quill.getSelection();if(null==D||0==D.length)return;var j=this.quill.getText(D);/^\S+@\S+\.\S+$/.test(j)&&0!==j.indexOf("mailto:")&&(j="mailto:"+j),this.quill.theme.tooltip.edit("link",j)}else this.quill.format("link",!1)}}}}});var W=function(L){function S(D,j){f(this,S);var V=w(this,(S.__proto__||Object.getPrototypeOf(S)).call(this,D,j));return V.preview=V.root.querySelector("a.ql-preview"),V}return z(S,L),R(S,[{key:"listen",value:function(){var j=this;P(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(V){j.root.classList.contains("ql-editing")?j.save():j.edit("link",j.preview.textContent),V.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(V){if(null!=j.linkRange){var Y=j.linkRange;j.restoreFocus(),j.quill.formatText(Y,"link",!1,g.default.sources.USER),delete j.linkRange}V.preventDefault(),j.hide()}),this.quill.on(g.default.events.SELECTION_CHANGE,function(V,Y,rt){if(null!=V){if(0===V.length&&rt===g.default.sources.USER){var st=j.quill.scroll.descendant(m.default,V.index),dt=q(st,2),et=dt[0];if(null!=et){j.linkRange=new b.Range(V.index-dt[1],et.length());var F=m.default.formats(et.domNode);return j.preview.textContent=F,j.preview.setAttribute("href",F),j.show(),void j.position(j.quill.getBounds(j.linkRange))}}else delete j.linkRange;j.hide()}})}},{key:"show",value:function(){P(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),S}(h.BaseTooltip);W.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),M.default=B},function(Q,M,T){"use strict";Object.defineProperty(M,"__esModule",{value:!0});var P=mt(T(29)),R=T(36),A=T(38),E=T(64),g=mt(T(65)),u=mt(T(66)),v=T(67),m=mt(v),b=T(37),d=T(26),p=T(39),O=T(40),w=mt(T(56)),I=mt(T(68)),W=mt(T(27)),S=mt(T(69)),j=mt(T(70)),Y=mt(T(71)),st=mt(T(72)),et=mt(T(73)),X=T(13),F=mt(X),G=mt(T(74)),it=mt(T(75)),tt=mt(T(57)),lt=mt(T(41)),kt=mt(T(28)),Mt=mt(T(59)),Nt=mt(T(60)),It=mt(T(61)),ht=mt(T(108)),xt=mt(T(62));function mt(Lt){return Lt&&Lt.__esModule?Lt:{default:Lt}}P.default.register({"attributors/attribute/direction":A.DirectionAttribute,"attributors/class/align":R.AlignClass,"attributors/class/background":b.Backgroun
1dClass,"attributors/class/color":d.ColorClass,"attributors/class/direction":A.DirectionClass,"attributors/class/font":p.FontClass,"attributors/class/size":O.SizeClass,"attributors/style/align":R.AlignStyle,"attributors/style/background":b.BackgroundStyle,"attributors/style/color":d.ColorStyle,"attributors/style/direction":A.DirectionStyle,"attributors/style/font":p.FontStyle,"attributors/style/size":O.SizeStyle},!0),P.default.register({"formats/align":R.AlignClass,"formats/direction":A.DirectionClass,"formats/indent":E.IndentClass,"formats/background":b.BackgroundStyle,"formats/color":d.ColorStyle,"formats/font":p.FontClass,"formats/size":O.SizeClass,"formats/blockquote":g.default,"formats/code-block":F.default,"formats/header":u.default,"formats/list":m.default,"formats/bold":w.default,"formats/code":X.Code,"formats/italic":I.default,"formats/link":W.default,"formats/script":S.default,"formats/strike":j.default,"formats/underline":Y.default,"formats/image":st.default,"formats/video":et.default,"formats/list/item":v.ListItem,"modules/formula":G.default,"modules/syntax":it.default,"modules/toolbar":tt.default,"themes/bubble":ht.default,"themes/snow":xt.default,"ui/icons":lt.default,"ui/picker":kt.default,"ui/icon-picker":Nt.default,"ui/color-picker":Mt.default,"ui/tooltip":It.default},!0),M.default=P.default},function(Q,M,T){"use strict";Object.defineProperty(M,"__esModule",{value:!0}),M.IndentClass=void 0;var q=function(){function m(b,d){for(var p=0;p<d.length;p++){var O=d[p];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(b,O.key,O)}}return function(b,d,p){return d&&m(b.prototype,d),p&&m(b,p),b}}(),P=function m(b,d,p){null===b&&(b=Function.prototype);var O=Object.getOwnPropertyDescriptor(b,d);if(void 0===O){var f=Object.getPrototypeOf(b);return null===f?void 0:m(f,d,p)}if("value"in O)return O.value;var w=O.get;return void 0===w?void 0:w.call(p)},A=function E(m){return m&&m.__esModule?m:{default:m}}(T(0)),u=function(m){function b(){return function x(m,b){if(!(m instanceof b))throw new TypeError("Cannot call a class as a function")}(this,b),function g(m,b){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!b||"object"!=typeof b&&"function"!=typeof b?m:b}(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return function h(m,b){if("function"!=typeof b&&null!==b)throw new TypeError("Super expression must either be null or a function, not "+typeof b);m.prototype=Object.create(b&&b.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(m,b):m.__proto__=b)}(b,m),q(b,[{key:"add",value:function(p,O){if("+1"===O||"-1"===O){var f=this.value(p)||0;O="+1"===O?f+1:f-1}return 0===O?(this.remove(p),!0):P(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"add",this).call(this,p,O)}},{key:"canAdd",value:function(p,O){return P(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"canAdd",this).call(this,p,O)||P(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"canAdd",this).call(this,p,parseInt(O))}},{key:"value",value:function(p){return parseInt(P(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"value",this).call(this,p))||void 0}}]),b}(A.default.Attributor.Class),v=new u("indent","ql-indent",{scope:A.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});M.IndentClass=v},function(Q,M,T){"use strict";Object.defineProperty(M,"__esModule",{value:!0});var g=function(h){function u(){return function A(h,u){if(!(h instanceof u))throw new TypeError("Cannot call a class as a function")}(this,u),function E(h,u){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!u||"object"!=typeof u&&"function"!=typeof u?h:u}(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return function x(h,u){if("function"!=typeof u&&null!==u)throw new TypeError("Super expression must either be null or a function, not "+typeof u);h.prototype=Object.create(u&&u.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(h,u):h.__proto__=u)}(u,h),u}(function R(h){return h&&h.__esModule?h:{default:h}}(T(4)).default);g.blotName="blockquote",g.tagName="blockquote",M.default=g},function(Q,M,T){"use strict";Object.defineProperty(M,"__esModule",{value:!0});var q=function(){function u(v,m){for(var b=0;b<m.length;b++){var d=m[b];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(v,d.key,d)}}return function(v,m,b){return m&&u(v.prototype,m),b&&u(v,b),v}}(),h=function(u){function v(){return function E(u,v){if(!(u instanceof v))throw new TypeError("Cannot call a class as a function")}(this,v),function x(u,v){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!v||"object"!=typeof v&&"function"!=typeof v?u:v}(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return function g(u,v){if("function"!=typeof v&&null!==v)throw new TypeError("Super expression must either be null or a function, not "+typeof v);u.prototype=Object.create(v&&v.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(u,v):u.__proto__=v)}(v,u),q(v,null,[{key:"formats",value:function(b){return this.tagName.indexOf(b.tagName)+1}}]),v}
vendor: 22,685 bytes, line 1
1(function A(u){return u&&u.__esModule?u:{default:u}}(T(4)).default);h.blotName="header",h.tagName=["H1","H2","H3","H4","H5","H6"],M.default=h},function(Q,M,T){"use strict";Object.defineProperty(M,"__esModule",{value:!0}),M.default=M.ListItem=void 0;var q=function(){function f(w,z){for(var I=0;I<z.length;I++){var B=z[I];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(w,B.key,B)}}return function(w,z,I){return z&&f(w.prototype,z),I&&f(w,I),w}}(),P=function f(w,z,I){null===w&&(w=Function.prototype);var B=Object.getOwnPropertyDescriptor(w,z);if(void 0===B){var W=Object.getPrototypeOf(w);return null===W?void 0:f(W,z,I)}if("value"in B)return B.value;var L=B.get;return void 0===L?void 0:L.call(I)},A=u(T(0)),x=u(T(4)),h=u(T(25));function u(f){return f&&f.__esModule?f:{default:f}}function m(f,w){if(!(f instanceof w))throw new TypeError("Cannot call a class as a function")}function b(f,w){if(!f)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!w||"object"!=typeof w&&"function"!=typeof w?f:w}function d(f,w){if("function"!=typeof w&&null!==w)throw new TypeError("Super expression must either be null or a function, not "+typeof w);f.prototype=Object.create(w&&w.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(f,w):f.__proto__=w)}var p=function(f){function w(){return m(this,w),b(this,(w.__proto__||Object.getPrototypeOf(w)).apply(this,arguments))}return d(w,f),q(w,[{key:"format",value:function(I,B){I!==O.blotName||B?P(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"format",this).call(this,I,B):this.replaceWith(A.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():P(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(I,B){return this.parent.isolate(this.offset(this.parent),this.length()),I===this.parent.statics.blotName?(this.parent.replaceWith(I,B),this):(this.parent.unwrap(),P(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"replaceWith",this).call(this,I,B))}}],[{key:"formats",value:function(I){return I.tagName===this.tagName?void 0:P(w.__proto__||Object.getPrototypeOf(w),"formats",this).call(this,I)}}]),w}(x.default);p.blotName="list-item",p.tagName="LI";var O=function(f){function w(z){m(this,w);var I=b(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,z)),B=function(L){if(L.target.parentNode===z){var S=I.statics.formats(z),D=A.default.find(L.target);"checked"===S?D.format("list","unchecked"):"unchecked"===S&&D.format("list","checked")}};return z.addEventListener("touchstart",B),z.addEventListener("mousedown",B),I}return d(w,f),q(w,null,[{key:"create",value:function(I){var B="ordered"===I?"OL":"UL",W=P(w.__proto__||Object.getPrototypeOf(w),"create",this).call(this,B);return("checked"===I||"unchecked"===I)&&W.setAttribute("data-checked","checked"===I),W}},{key:"formats",value:function(I){return"OL"===I.tagName?"ordered":"UL"===I.tagName?I.hasAttribute("data-checked")?"true"===I.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),q(w,[{key:"format",value:function(I,B){this.children.length>0&&this.children.tail.format(I,B)}},{key:"formats",value:function(){return function v(f,w,z){return w in f?Object.defineProperty(f,w,{value:z,enumerable:!0,configurable:!0,writable:!0}):f[w]=z,f}({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(I,B){if(I instanceof p)P(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"insertBefore",this).call(this,I,B);else{var W=null==B?this.length():B.offset(this),L=this.split(W);L.parent.insertBefore(I,L)}}},{key:"optimize",value:function(I){P(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"optimize",this).call(this,I);var B=this.next;null!=B&&B.prev===this&&B.statics.blotName===this.statics.blotName&&B.domNode.tagName===this.domNode.tagName&&B.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(B.moveChildren(this),B.remove())}},{key:"replace",value:function(I){if(I.statics.blotName!==this.statics.blotName){var B=A.default.create(this.statics.defaultChild);I.moveChildren(B),this.appendChild(B)}P(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"replace",this).call(this,I)}}]),w}(h.default);O.blotName="list",O.scope=A.default.Scope.BLOCK_BLOT,O.tagName=["OL","UL"],O.defaultChild="list-item",O.allowedChildren=[p],M.ListItem=p,M.default=O},function(Q,M,T){"use strict";Object.defineProperty(M,"__esModule",{value:!0});var g=function(h){function u(){return function A(h,u){if(!(h instanceof u))throw new TypeError("Cannot call a class as a function")}(this,u),function E(h,u){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!u||"object"!=typeof u&&"function"!=typeof u?h:u}(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return function x(h,u){if("function"!=typeof u&&null!==u)throw new TypeError("Super expression must either be null or a function, not "+typeof u);h.prototype=Object.create(u&&u.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(h,u):h.__proto__=u)}(u,h),u}(function R(h){return h&&h.__esModule?h:{default:h}}(T(56)).default);g.blotName="italic",g.tagName=["EM","I"],M.default=g},function(Q,M,T){"use strict";Object.defineProperty(M,"__esModule",{value:!0});var q=function(){function v(m,b){for(var d=0;d<b.length;d++){var p=b[d];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(m,p.key,p)}}return function(m,b,d){return b&&v(m.prototype,b),d&&v(m,d),m}}(),P=function v(m,b,d){null===m&&(m=Function.prototype);var p=Object.getOwnPropertyDescriptor(m,b);if(void 0===p){var O=Object.getPrototypeOf(m);return null===O?void 0:v(O,b,d)}if("value"in p)return p.value;var f=p.get;return void 0===f?void 0:f.call(d)},u=function(v){function m(){return function x(v,m){if(!(v instanceof m))throw new TypeError("Cannot call a class as a function")}(this,m),function g(v,m){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!m||"object"!=typeof m&&"function"!=typeof m?v:m}(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return function h(v,m){if("function"!=typeof m&&null!==m)throw new TypeError("Super expression must either be null or a function, not "+typeof m);v.prototype=Object.create(m&&m.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(v,m):v.__proto__=m)}(m,v),q(m,null,[{key:"create",value:function(d){return"super"===d?document.createElement("sup"):"sub"===d?document.createElement("sub"):P(m.__proto__||Object.getPrototypeOf(m),"create",this).call(this,d)}},{key:"formats",value:function(d){return"SUB"===d.tagName?"sub":"SUP"===d.tagName?"super":void 0}}]),m}(function E(v){return v&&v.__esModule?v:{default:v}}(T(6)).default);u.blotName="script",u.tagName=["SUB","SUP"],M.default=u},function(Q,M,T){"use strict";Object.defineProperty(M,"__esModule",{value:!0});var g=function(h){function u(){return function A(h,u){if(!(h instanceof u))throw new TypeError("Cannot call a class as a function")}(this,u),function E(h,u){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!u||"object"!=typeof u&&"function"!=typeof u?h:u}(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return function x(h,u){if("function"!=typeof u&&null!==u)throw new TypeError("Super expression must either be null or a function, not "+typeof u);h.prototype=Object.create(u&&u.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(h,u):h.__proto__=u)}(u,h),u}(function R(h){return h&&h.__esModule?h:{default:h}}(T(6)).default);g.blotName="strike",g.tagName="S",M.default=g},function(Q,M,T){"use strict";Object.defineProperty(M,"__esModule",{value:!0});var g=function(h){function u(){return function A(h,u){if(!(h instanceof u))throw new TypeError("Cannot call a class as a function")}(this,u),function E(h,u){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!u||"object"!=typeof u&&"function"!=typeof u?h:u}(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return function x(h,u){if("function"!=typeof u&&null!==u)throw new TypeError("Super expression must either be null or a function, not "+typeof u);h.prototype=Object.create(u&&u.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(h,u):h.__proto__=u)}(u,h),u}(function R(h){return h&&h.__esModule?h:{default:h}}(T(6)).default);g.blotName="underline",g.tagName="U",M.default=g},function(Q,M,T){"use strict";Object.defineProperty(M,"__esModule",{value:!0});var q=function(){function b(d,p){for(var O=0;O<p.length;O++){var f=p[O];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(d,f.key,f)}}return function(d,p,O){return p&&b(d.prototype,p),O&&b(d,O),d}}(),P=function b(d,p,O){null===d&&(d=Function.prototype);var f=Object.getOwnPropertyDescriptor(d,p);if(void 0===f){var w=Object.getPrototypeOf(d);return null===w?void 0:b(w,p,O)}if("value"in f)return f.value;var z=f.get;return void 0===z?void 0:z.call(O)},A=function x(b){return b&&b.__esModule?b:{default:b}}(T(0)),E=T(27),v=["alt","height","width"],m=function(b){function d(){return function g(b,d){if(!(b instanceof d))throw new TypeError("Cannot call a class as a function")}(this,d),function h(b,d){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!d||"object"!=typeof d&&"function"!=typeof d?b:d}(this,(d.__proto__||Object.getPrototypeOf(d)).apply(this,arguments))}return function u(b,d){if("function"!=typeof d&&null!==d)throw new TypeError("Super expression must either be null or a function, not "+typeof d);b.prototype=Object.create(d&&d.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(b,d):b.__proto__=d)}(d,b),q(d,[{key:"format",value:function(O,f){v.indexOf(O)>-1?f?this.domNode.setAttribute(O,f):this.domNode.removeAttribute(O):P(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"format",this).call(this,O,f)}}],[{key:"create",value:function(O){var f=P(d.__proto__||Object.getPrototypeOf(d),"create",this).call(this,O);return"string"==typeof O&&f.setAttribute("src",this.sanitize(O)),f}},{key:"formats",value:function(O){return v.reduce(function(f,w){return O.hasAttribute(w)&&(f[w]=O.getAttribute(w)),f},{})}},{key:"match",value:function(O){return/\.(jpe?g|gif|png)$/.test(O)||/^data:image\/.+;base64/.test(O)}},{key:"sanitize",value:function(O){return(0,E.sanitize)(O,["http","https","data"])?O:"//:0"}},{key:"value",value:function(O){return O.getAttribute("src")}}]),d}(A.default.Embed);m.blotName="image",m.tagName="IMG",M.default=m},function(Q,M,T){"use strict";Object.defineProperty(M,"__esModule",{value:!0});var q=function(){function b(d,p){for(var O=0;O<p.length;O++){var f=p[O];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(d,f.key,f)}}return function(d,p,O){return p&&b(d.prototype,p),O&&b(d,O),d}}(),P=function b(d,p,O){null===d&&(d=Function.prototype);var f=Object.getOwnPropertyDescriptor(d,p);if(void 0===f){var w=Object.getPrototypeOf(d);return null===w?void 0:b(w,p,O)}if("value"in f)return f.value;var z=f.get;return void 0===z?void 0:z.call(O)},R=T(4),E=function x(b){return b&&b.__esModule?b:{default:b}}(T(27)),v=["height","width"],m=function(b){function d(){return function g(b,d){if(!(b instanceof d))throw new TypeError("Cannot call a class as a function")}(this,d),function h(b,d){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!d||"object"!=typeof d&&"function"!=typeof d?b:d}(this,(d.__proto__||Object.getPrototypeOf(d)).apply(this,arguments))}return function u(b,d){if("function"!=typeof d&&null!==d)throw new TypeError("Super expression must either be null or a function, not "+typeof d);b.prototype=Object.create(d&&d.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(b,d):b.__proto__=d)}(d,b),q(d,[{key:"format",value:function(O,f){v.indexOf(O)>-1?f?this.domNode.setAttribute(O,f):this.domNode.removeAttribute(O):P(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"format",this).call(this,O,f)}}],[{key:"create",value:function(O){var f=P(d.__proto__||Object.getPrototypeOf(d),"create",this).call(this,O);return f.setAttribute("frameborder","0"),f.setAttribute("allowfullscreen",!0),f.setAttribute("src",this.sanitize(O)),f}},{key:"formats",value:function(O){return v.reduce(function(f,w){return O.hasAttribute(w)&&(f[w]=O.getAttribute(w)),f},{})}},{key:"sanitize",value:function(O){return E.default.sanitize(O)}},{key:"value",value:function(O){return O.getAttribute("src")}}]),d}(R.BlockEmbed);m.blotName="video",m.className="ql-video",m.tagName="IFRAME",M.default=m},function(Q,M,T){"use strict";Object.defineProperty(M,"__esModule",{value:!0}),M.default=M.FormulaBlot=void 0;var q=function(){function O(f,w){for(var z=0;z<w.length;z++){var I=w[z];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(f,I.key,I)}}return function(f,w,z){return w&&O(f.prototype,w),z&&O(f,z),f}}(),P=function O(f,w,z){null===f&&(f=Function.prototype);var I=Object.getOwnPropertyDescriptor(f,w);if(void 0===I){var B=Object.getPrototypeOf(f);return null===B?void 0:O(B,w,z)}if("value"in I)return I.value;var W=I.get;return void 0===W?void 0:W.call(z)},A=u(T(35)),x=u(T(5)),h=u(T(9));function u(O){return O&&O.__esModule?O:{default:O}}function v(O,f){if(!(O instanceof f))throw new TypeError("Cannot call a class as a function")}function m(O,f){if(!O)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!f||"object"!=typeof f&&"function"!=typeof f?O:f}function b(O,f){if("function"!=typeof f&&null!==f)throw new TypeError("Super expression must either be null or a function, not "+typeof f);O.prototype=Object.create(f&&f.prototype,{constructor:{value:O,enumerable:!1,writable:!0,configurable:!0}}),f&&(Object.setPrototypeOf?Object.setPrototypeOf(O,f):O.__proto__=f)}var d=function(O){function f(){return v(this,f),m(this,(f.__proto__||Object.getPrototypeOf(f)).apply(this,arguments))}return b(f,O),q(f,null,[{key:"create",value:function(z){var I=P(f.__proto__||Object.getPrototypeOf(f),"create",this).call(this,z);return"string"==typeof z&&(window.katex.render(z,I,{throwOnError:!1,errorColor:"#f00"}),I.setAttribute("data-value",z)),I}},{key:"value",value:function(z){return z.getAttribute("data-value")}}]),f}(A.default);d.blotName="formula",d.className="ql-formula",d.tagName="SPAN";var p=function(O){function f(){v(this,f);var w=m(this,(f.__proto__||Object.getPrototypeOf(f)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return w}return b(f,O),q(f,null,[{key:"register",value:function(){x.default.register(d,!0)}}]),f}(h.default);M.FormulaBlot=d,M.default=p},function(Q,M,T){"use strict";Object.defineProperty(M,"__esModule",{value:!0}),M.default=M.CodeToken=M.CodeBlock=void 0;var q=function(){function z(I,B){for(var W=0;W<B.length;W++){var L=B[W];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(I,L.key,L)}}return function(I,B,W){return B&&z(I.prototype,B),W&&z(I,W),I}}(),P=function z(I,B,W){null===I&&(I=Function.prototype);var L=Object.getOwnPropertyDescriptor(I,B);if(void 0===L){var S=Object.getPrototypeOf(I);return null===S?void 0:z(S,B,W)}if("value"in L)return L.value;var D=L.get;return void 0===D?void 0:D.call(W)},A=m(T(0)),x=m(T(5)),h=m(T(9));function m(z){return z&&z.__esModule?z:{default:z}}function b(z,I){if(!(z instanceof I))throw new TypeError("Cannot call a class as a function")}function d(z,I){if(!z)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!I||"object"!=typeof I&&"function"!=typeof I?z:I}function p(z,I){if("function"!=typeof I&&null!==I)throw new TypeError("Super expression must either be null or a function, not "+typeof I);z.prototype=Object.create(I&&I.prototype,{constructor:{value:z,enumerable:!1,writable:!0,configurable:!0}}),I&&(Object.setPrototypeOf?Object.setPrototypeOf(z,I):z.__proto__=I)}var O=function(z){function I(){return b(this,I),d(this,(I.__proto__||Object.getPrototypeOf(I)).apply(this,arguments))}return p(I,z),q(I,[{key:"replaceWith",value:function(W){this.domNode.textContent=this.domNode.textContent,this.attach(),P(I.prototype.__proto__||Object.getPrototypeOf(I.prototype),"replaceWith",this).call(this,W)}},{key:"highlight",value:function(W){var L=this.domNode.textContent;this.cachedText!==L&&((L.trim().length>0||null==this.cachedText)&&(this.domNode.innerHTML=W(L),this.domNode.normalize(),this.attach()),this.cachedText=L)}}]),I}(m(T(13)).default);O.className="ql-syntax";var f=new A.default.Attributor.Class("token","hljs",{scope:A.default.Scope.INLINE}),w=function(z){function I(B,W){b(this,I);var L=d(this,(I.__proto__||Object.getPrototypeOf(I)).call(this,B,W));if("function"!=typeof L.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var S=null;return L.quill.on(x.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(S),S=setTimeout(function(){L.highlight(),S=null},L.options.interval)}),L.highlight(),L}return p(I,z),q(I,null,[{key:"register",value:function(){x.default.register(f,!0),x.default.register(O,!0)}}]),q(I,[{key:"highlight",value:function(){var W=this;if(!this.quill.selection.composing){this.quill.update(x.default.sources.USER);var L=this.quill.getSelection();this.quill.scroll.descendants(O).forEach(function(S){S.highlight(W.options.highlight)}),this.quill.update(x.default.sources.SILENT),null!=L&&this.quill.setSelection(L,x.default.sources.SILENT)}}}]),I}(h.default);w.DEFAULTS={highlight:null==window.hljs?null:function(z){return window.hljs.highlightAuto(z).value},interval:1e3},M.CodeBlock=O,M.CodeToken=f,M.default=w},function(Q,M){Q.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(Q,M){Q.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(Q,M){Q.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(Q,M){Q.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(Q,M){Q.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(Q,M){Q.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(Q,M){Q.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(Q,M){Q.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line>
1 <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(Q,M){Q.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(Q,M){Q.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(Q,M){Q.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(Q,M){Q.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(Q,M){Q.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(Q,M){Q.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(Q,M){Q.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(Q,M){Q.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(Q,M){Q.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(Q,M){Q.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(Q,M){Q.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(Q,M){Q.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(Q,M){Q.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(Q,M){Q.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(Q,M){Q.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(Q,M){Q.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(Q,M){Q.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(Q,M){Q.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(Q,M){Q.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(Q,M){Q.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(Q,M){Q.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(Q,M){Q.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(Q,M){Q.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(Q,M){Q.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(Q,M,T){"use strict";Object.defineProperty(M,"__esModule",{value:!0}),M.default=M.BubbleTooltip=void 0;var q=function I(B,W,L){null===B&&(B=Function.prototype);var S=Object.getOwnPropertyDescriptor(B,W);if(void 0===S){var D=Object.getPrototypeOf(B);return null===D?void 0:I(D,W,L)}if("value"in S)return S.value;var j=S.get;return void 0===j?void 0:j.call(L)},P=function(){function I(B,W){for(var L=0;L<W.length;L++){var S=W[L];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(B,S.key,S)}}return function(B,W,L){return W&&I(B.prototype,W),L&&I(B,L),B}}(),A=b(T(3)),x=b(T(8)),g=T(43),h=b(g),u=T(15),m=b(T(41));function b(I){return I&&I.__esModule?I:{default:I}}function d(I,B){if(!(I instanceof B))throw new TypeError("Cannot call a class as a function")}function p(I,B){if(!I)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!B||"object"!=typeof B&&"function"!=typeof B?I:B}function O(I,B){if("function"!=typeof B&&null!==B)throw new TypeError("Super expression must either be null or a function, not "+typeof B);I.prototype=Object.create(B&&B.prototype,{constructor:{value:I,enumerable:!1,writable:!0,configurable:!0}}),B&&(Object.setPrototypeOf?Object.setPrototypeOf(I,B):I.__proto__=B)}var f=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],w=function(I){function B(W,L){d(this,B),null!=L.modules.toolbar&&null==L.modules.toolbar.container&&(L.modules.toolbar.container=f);
1var S=p(this,(B.__proto__||Object.getPrototypeOf(B)).call(this,W,L));return S.quill.container.classList.add("ql-bubble"),S}return O(B,I),P(B,[{key:"extendToolbar",value:function(L){this.tooltip=new z(this.quill,this.options.bounds),this.tooltip.root.appendChild(L.container),this.buildButtons([].slice.call(L.container.querySelectorAll("button")),m.default),this.buildPickers([].slice.call(L.container.querySelectorAll("select")),m.default)}}]),B}(h.default);w.DEFAULTS=(0,A.default)(!0,{},h.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(B){B?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var z=function(I){function B(W,L){d(this,B);var S=p(this,(B.__proto__||Object.getPrototypeOf(B)).call(this,W,L));return S.quill.on(x.default.events.EDITOR_CHANGE,function(D,j,V,Y){if(D===x.default.events.SELECTION_CHANGE)if(null!=j&&j.length>0&&Y===x.default.sources.USER){S.show(),S.root.style.left="0px",S.root.style.width="",S.root.style.width=S.root.offsetWidth+"px";var rt=S.quill.getLines(j.index,j.length);if(1===rt.length)S.position(S.quill.getBounds(j));else{var st=rt[rt.length-1],dt=S.quill.getIndex(st),et=Math.min(st.length()-1,j.index+j.length-dt),X=S.quill.getBounds(new u.Range(dt,et));S.position(X)}}else document.activeElement!==S.textbox&&S.quill.hasFocus()&&S.hide()}),S}return O(B,I),P(B,[{key:"listen",value:function(){var L=this;q(B.prototype.__proto__||Object.getPrototypeOf(B.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){L.root.classList.remove("ql-editing")}),this.quill.on(x.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!L.root.classList.contains("ql-hidden")){var S=L.quill.getSelection();null!=S&&L.position(L.quill.getBounds(S))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(L){var S=q(B.prototype.__proto__||Object.getPrototypeOf(B.prototype),"position",this).call(this,L),D=this.root.querySelector(".ql-tooltip-arrow");if(D.style.marginLeft="",0===S)return S;D.style.marginLeft=-1*S-D.offsetWidth/2+"px"}}]),B}(g.BaseTooltip);z.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),M.BubbleTooltip=z,M.default=w},function(Q,M,T){Q.exports=T(63)}]).default}),function(Q){if(!Q.hasInitialised){var M={escapeRegExp:function(q){return q.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},hasClass:function(q,P){var R=" ";return 1===q.nodeType&&(R+q.className+R).replace(/[\n\t]/g,R).indexOf(R+P+R)>=0},addClass:function(q,P){q.className+=" "+P},removeClass:function(q,P){var R=new RegExp("\\b"+this.escapeRegExp(P)+"\\b");q.className=q.className.replace(R,"")},interpolateString:function(q,P){return q.replace(/{{([a-z][a-z0-9\-_]*)}}/gi,function(R){return P(arguments[1])||""})},getCookie:function(q){var P=("; "+document.cookie).split("; "+q+"=");return P.length<2?void 0:P.pop().split(";").shift()}
vendor: 6,196 bytes, line 1
1,setCookie:function(q,P,R,A,E,x){var g=new Date;g.setHours(g.getHours()+24*(R||365));var h=[q+"="+P,"expires="+g.toUTCString(),"path="+(E||"/")];A&&h.push("domain="+A),x&&h.push("secure"),document.cookie=h.join(";")},deepExtend:function(q,P){for(var R in P)P.hasOwnProperty(R)&&(R in q&&this.isPlainObject(q[R])&&this.isPlainObject(P[R])?this.deepExtend(q[R],P[R]):q[R]=P[R]);return q},throttle:function(q,P){var R=!1;return function(){R||(q.apply(this,arguments),R=!0,setTimeout(function(){R=!1},P))}},hash:function(q){var P,R,A=0;if(0===q.length)return A;for(P=0,R=q.length;P<R;++P)A=(A<<5)-A+q.charCodeAt(P),A|=0;return A},normaliseHex:function(q){return"#"==q[0]&&(q=q.substr(1)),3==q.length&&(q=q[0]+q[0]+q[1]+q[1]+q[2]+q[2]),q},getContrast:function(q){return q=this.normaliseHex(q),(299*parseInt(q.substr(0,2),16)+587*parseInt(q.substr(2,2),16)+114*parseInt(q.substr(4,2),16))/1e3>=128?"#000":"#fff"},getLuminance:function(q){var P=parseInt(this.normaliseHex(q),16),R=38+(P>>16),A=38+(P>>8&255),E=38+(255&P);return"#"+(16777216+65536*(R<255?R<1?0:R:255)+256*(A<255?A<1?0:A:255)+(E<255?E<1?0:E:255)).toString(16).slice(1)},isMobile:function(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)},isPlainObject:function(q){return"object"==typeof q&&null!==q&&q.constructor==Object},traverseDOMPath:function(q,P){return q&&q.parentNode?M.hasClass(q,P)?q:this.traverseDOMPath(q.parentNode,P):null}};Q.status={deny:"deny",allow:"allow",dismiss:"dismiss"},Q.transitionEnd=function(){var q=document.createElement("div"),P={t:"transitionend",OT:"oTransitionEnd",msT:"MSTransitionEnd",MozT:"transitionend",WebkitT:"webkitTransitionEnd"};for(var R in P)if(P.hasOwnProperty(R)&&void 0!==q.style[R+"ransition"])return P[R];return""}(),Q.hasTransition=!!Q.transitionEnd;var T=Object.keys(Q.status).map(M.escapeRegExp);Q.customStyles={},Q.Popup=function(){var q={enabled:!0,container:null,cookie:{name:"cookieconsent_status",path:"/",domain:"",expiryDays:365,secure:!1},onPopupOpen:function(){},onPopupClose:function(){},onInitialise:function(u){},onStatusChange:function(u,v){},onRevokeChoice:function(){},onNoCookieLaw:function(u,v){},content:{header:"Cookies used on the website!",message:"This website uses cookies to ensure you get the best experience on our website.",dismiss:"Got it!",allow:"Allow cookies",deny:"Decline",link:"Learn more",href:"https://www.cookiesandyou.com",close:"&#x274c;",target:"_blank",policy:"Cookie Policy"},elements:{header:'<span class="cc-header">{{header}}</span>&nbsp;',message:'<span id="cookieconsent:desc" class="cc-message">{{message}}</span>',messagelink:'<span id="cookieconsent:desc" class="cc-message">{{message}} <a aria-label="learn more about cookies" role=button tabindex="0" class="cc-link" href="{{href}}" rel="noopener noreferrer nofollow" target="{{target}}">{{link}}</a></span>',dismiss:'<a aria-label="dismiss cookie message" role=button tabindex="0" class="cc-btn cc-dismiss">{{dismiss}}</a>',allow:'<a aria-label="allow cookies" role=button tabindex="0"  class="cc-btn cc-allow">{{allow}}</a>',deny:'<a aria-label="deny cookies" role=button tabindex="0" class="cc-btn cc-deny">{{deny}}</a>',link:'<a aria-label="learn more about cookies" role=button tabindex="0" class="cc-link" href="{{href}}" rel="noopener noreferrer nofollow" target="{{target}}">{{link}}</a>',close:'<span aria-label="dismiss cookie message" role=button tabindex="0" class="cc-close">{{close}}</span>'},window:'<div role="dialog" aria-live="polite" aria-label="cookieconsent" aria-describedby="cookieconsent:desc" class="cc-window {{classes}}">\x3c!--googleoff: all--\x3e{{children}}\x3c!--googleon: all--\x3e</div>',revokeBtn:'<div class="cc-revoke {{classes}}">{{policy}}</div>',compliance:{info:'<div class="cc-compliance">{{dismiss}}</div>',"opt-in":'<div class="cc-compliance cc-highlight">{{deny}}{{allow}}</div>',"opt-out":'<div class="cc-compliance cc-highlight">{{deny}}{{allow}}</div>'},type:"info",layouts:{basic:"{{messagelink}}{{compliance}}","basic-close":"{{messagelink}}{{compliance}}{{close}}","basic-header":"{{header}}{{message}}{{link}}{{compliance}}"},layout:"basic",position:"bottom",theme:"block",static:!1,palette:null,revokable:!1,animateRevokable:!0,showLink:!0,dismissOnScroll:!1,dismissOnTimeout:!1,dismissOnWindowClick:!1,ignoreClicksFrom:["cc-revoke","cc-btn"],autoOpen:!0,autoAttach:!0,whitelistPage:[],blacklistPage:[],overrideHTML:null};function P(){this.initialise.apply(this,arguments)}function R(u){this.openingTimeout=null,M.removeClass(u,"cc-invisible")}function A(u){u.style.display="none",u.removeEventListener(Q.transitionEnd,this.afterTransition),this.afterTransition=null}function E(){var u=this.options.position.split("-"),v=[];return u.forEach(function(m){v.push("cc-"+m)}),v}function x(u){var v=this.options,m=document.createElement("div"),b=v.container&&1===v.container.nodeType?v.container:document.body;m.innerHTML=u;var d=m.children[0];return d.style.display="none",M.hasClass(d,"cc-window")&&Q.hasTransition&&M.addClass(d,"cc-invisible"),this.onButtonClick=function(p){var O=M.traverseDOMPath(p.target,"cc-btn")||p.target;if(M.hasClass(O,"cc-btn")){var f=O.className.match(new RegExp("\\bcc-("+T.join("|")+")\\b")),w=f&&f[1]||!1;w&&(this.setStatus(w),this.close(!0))}M.hasClass(O,"cc-close")&&(this.setStatus(Q.status.dismiss),this.close(!0)),M.hasClass(O,"cc-revoke")&&this.revokeChoice()}.bind(this),d.addEventListener("click",this.onButtonClick),v.autoAttach&&(b.firstChild?b.insertBefore(d,b.firstChild):b.appendChild(d)),d}function g(u){return"000000"==(u=M.normaliseHex(u))?"#222":M.getLuminance(u)}function h(u,v){for(var m=0,b=u.length;m<b;++m){var d=u[m];if(d instanceof RegExp&&d.test(v)||"string"==typeof d&&d.length&&d===v)return!0}return!1}return P.prototype.initialise=function(u){this.options&&this.destroy(),M.deepExtend(this.options={},q),M.isPlainObject(u)&&M.deepExtend(this.options,u),function(){var d=this.options.onInitialise.bind(this);if(!window.navigator.cookieEnabled)return d(Q.status.deny),!0;if(window.CookiesOK||window.navigator.CookiesOK)return d(Q.status.allow),!0;var p=Object.keys(Q.status),O=this.getStatus(),f=p.indexOf(O)>=0;return f&&d(O),f}
1.call(this)&&(this.options.enabled=!1),h(this.options.blacklistPage,location.pathname)&&(this.options.enabled=!1),h(this.options.whitelistPage,location.pathname)&&(this.options.enabled=!0);var v=this.options.window.replace("{{classes}}",function(){var d=this.options,p="top"==d.position||"bottom"==d.position?"banner":"floating";M.isMobile()&&(p="floating");var O=["cc-"+p,"cc-type-"+d.type,"cc-theme-"+d.theme];return d.static&&O.push("cc-static"),O.push.apply(O,E.call(this)),function(f){var w=M.hash(JSON.stringify(f)),z="cc-color-override-"+w,I=M.isPlainObject(f);return this.customStyleSelector=I?z:null,I&&function(B,W,L){if(Q.customStyles[B])++Q.customStyles[B].references;else{var S={},D=W.popup,j=W.button,V=W.highlight;D&&(D.text=D.text?D.text:M.getContrast(D.background),D.link=D.link?D.link:D.text,S[L+".cc-window"]=["color: "+D.text,"background-color: "+D.background],S[L+".cc-revoke"]=["color: "+D.text,"background-color: "+D.background],S[L+" .cc-link,"+L+" .cc-link:active,"+L+" .cc-link:visited"]=["color: "+D.link],j&&(j.text=j.text?j.text:M.getContrast(j.background),j.border=j.border?j.border:"transparent",S[L+" .cc-btn"]=["color: "+j.text,"border-color: "+j.border,"background-color: "+j.background],j.padding&&S[L+" .cc-btn"].push("padding: "+j.padding),"transparent"!=j.background&&(S[L+" .cc-btn:hover, "+L+" .cc-btn:focus"]=["background-color: "+(j.hover||g(j.background))]),V?(V.text=V.text?V.text:M.getContrast(V.background),V.border=V.border?V.border:"transparent",S[L+" .cc-highlight .cc-btn:first-child"]=["color: "+V.text,"border-color: "+V.border,"background-color: "+V.background]):S[L+" .cc-highlight .cc-btn:first-child"]=["color: "+D.text]));var Y=document.createElement("style");document.head.appendChild(Y),Q.customStyles[B]={references:1,element:Y.sheet};var rt=-1;for(var st in S)S.hasOwnProperty(st)&&Y.sheet.insertRule(st+"{"+S[st].join(";")+"}",++rt)}}(w,f,"."+z),I}.call(this,this.options.palette),this.customStyleSelector&&O.push(this.customStyleSelector),O}.call(this).join(" ")).replace("{{children}}",function(){var d={},p=this.options;p.showLink||(p.elements.link="",p.elements.messagelink=p.elements.message),Object.keys(p.elements).forEach(function(w){d[w]=M.interpolateString(p.elements[w],function(z){var I=p.content[z];return z&&"string"==typeof I&&I.length?I:""})});var O=p.compliance[p.type];O||(O=p.compliance.info),d.compliance=M.interpolateString(O,function(w){return d[w]});var f=p.layouts[p.layout];return f||(f=p.layouts.basic),M.interpolateString(f,function(w){return d[w]})}.call(this)),m=this.options.overrideHTML;if("string"==typeof m&&m.length&&(v=m),this.options.static){var b=x.call(this,'<div class="cc-grower">'+v+"</div>");b.style.display="",this.element=b.firstChild,this.element.style.display="none",M.addClass(this.element,"cc-invisible")}else this.element=x.call(this,v);(function(){var d=this.setStatus.bind(this),p=this.close.bind(this),O=this.options.dismissOnTimeout;"number"==typeof O&&O>=0&&(this.dismissTimeout=window.setTimeout(function(){d(Q.status.dismiss),p(!0)},Math.floor(O)));var f=this.options.dismissOnScroll;if("number"==typeof f&&f>=0){var w=function(W){window.pageYOffset>Math.floor(f)&&(d(Q.status.dismiss),p(!0),window.removeEventListener("scroll",w),this.onWindowScroll=null)};this.options.enabled&&(this.onWindowScroll=w,window.addEventListener("scroll",w))}var I=this.options.ignoreClicksFrom;if(this.options.dismissOnWindowClick){var B=function(W){for(var L=!1,S=W.path.length,D=I.length,j=0;j<S;j++)if(!L)for(var V=0;V<D;V++)L||(L=M.hasClass(W.path[j],I[V]));L||(d(Q.status.dismiss),p(!0),window.removeEventListener("click",B),window.removeEventListener("touchend",B),this.onWindowClick=null)}.bind(this);this.options.enabled&&(this.onWindowClick=B,window.addEventListener("click",B),window.addEventListener("touchend",B))}}).call(this),function(){if("info"!=this.options.type&&(this.options.revokable=!0),M.isMobile()&&(this.options.animateRevokable=!1),this.options.revokable){var d=E.call(this);this.options.animateRevokable&&d.push("cc-animate"),this.customStyleSelector&&d.push(this.customStyleSelector);var p=this.options.revokeBtn.replace("{{classes}}",d.join(" ")).replace("{{policy}}",this.options.content.policy);this.revokeBtn=x.call(this,p);var O=this.revokeBtn;if(this.options.animateRevokable){var f=M.throttle(function(w){var z=!1,I=window.innerHeight-20;
vendor: 9,465 bytes, line 1
1M.hasClass(O,"cc-top")&&w.clientY<20&&(z=!0),M.hasClass(O,"cc-bottom")&&w.clientY>I&&(z=!0),z?M.hasClass(O,"cc-active")||M.addClass(O,"cc-active"):M.hasClass(O,"cc-active")&&M.removeClass(O,"cc-active")},200);this.onMouseMove=f,window.addEventListener("mousemove",f)}}}.call(this),this.options.autoOpen&&this.autoOpen()},P.prototype.destroy=function(){this.onButtonClick&&this.element&&(this.element.removeEventListener("click",this.onButtonClick),this.onButtonClick=null),this.dismissTimeout&&(clearTimeout(this.dismissTimeout),this.dismissTimeout=null),this.onWindowScroll&&(window.removeEventListener("scroll",this.onWindowScroll),this.onWindowScroll=null),this.onWindowClick&&(window.removeEventListener("click",this.onWindowClick),this.onWindowClick=null),this.onMouseMove&&(window.removeEventListener("mousemove",this.onMouseMove),this.onMouseMove=null),this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.element=null,this.revokeBtn&&this.revokeBtn.parentNode&&this.revokeBtn.parentNode.removeChild(this.revokeBtn),this.revokeBtn=null,function(u){if(M.isPlainObject(u)){var v=M.hash(JSON.stringify(u)),m=Q.customStyles[v];if(m&&! --m.references){var b=m.element.ownerNode;b&&b.parentNode&&b.parentNode.removeChild(b),Q.customStyles[v]=null}}}(this.options.palette),this.options=null},P.prototype.open=function(u){if(this.element)return this.isOpen()||(Q.hasTransition?this.fadeIn():this.element.style.display="",this.options.revokable&&this.toggleRevokeButton(),this.options.onPopupOpen.call(this)),this},P.prototype.close=function(u){if(this.element)return this.isOpen()&&(Q.hasTransition?this.fadeOut():this.element.style.display="none",u&&this.options.revokable&&this.toggleRevokeButton(!0),this.options.onPopupClose.call(this)),this},P.prototype.fadeIn=function(){var u=this.element;Q.hasTransition&&u&&(this.afterTransition&&A.call(this,u),M.hasClass(u,"cc-invisible"))&&(u.style.display="",this.options.static&&(this.element.parentNode.style.maxHeight=this.element.clientHeight+"px"),this.openingTimeout=setTimeout(R.bind(this,u),20))},P.prototype.fadeOut=function(){var u=this.element;Q.hasTransition&&u&&(this.openingTimeout&&(clearTimeout(this.openingTimeout),R.bind(this,u)),M.hasClass(u,"cc-invisible")||(this.options.static&&(this.element.parentNode.style.maxHeight=""),this.afterTransition=A.bind(this,u),u.addEventListener(Q.transitionEnd,this.afterTransition),M.addClass(u,"cc-invisible")))},P.prototype.isOpen=function(){return this.element&&""==this.element.style.display&&(!Q.hasTransition||!M.hasClass(this.element,"cc-invisible"))},P.prototype.toggleRevokeButton=function(u){this.revokeBtn&&(this.revokeBtn.style.display=u?"":"none")},P.prototype.revokeChoice=function(u){this.options.enabled=!0,this.clearStatus(),this.options.onRevokeChoice.call(this),u||this.autoOpen()},P.prototype.hasAnswered=function(u){return Object.keys(Q.status).indexOf(this.getStatus())>=0},P.prototype.hasConsented=function(u){var v=this.getStatus();return v==Q.status.allow||v==Q.status.dismiss},P.prototype.autoOpen=function(u){!this.hasAnswered()&&this.options.enabled?this.open():this.hasAnswered()&&this.options.revokable&&this.toggleRevokeButton(!0)},P.prototype.setStatus=function(u){var v=this.options.cookie,m=M.getCookie(v.name),b=Object.keys(Q.status).indexOf(m)>=0;Object.keys(Q.status).indexOf(u)>=0?(M.setCookie(v.name,u,v.expiryDays,v.domain,v.path,v.secure),this.options.onStatusChange.call(this,u,b)):this.clearStatus()},P.prototype.getStatus=function(){return M.getCookie(this.options.cookie.name)},P.prototype.clearStatus=function(){var u=this.options.cookie;M.setCookie(u.name,"",-1,u.domain,u.path)},P}(),Q.Location=function(){var q={timeout:5e3,services:["ipinfo"],serviceDefinitions:{ipinfo:function(){return{url:"//ipinfo.io",headers:["Accept: application/json"],callback:function(x,g){try{var h=JSON.parse(g);return h.error?E(h):{code:h.country}}catch(u){return E({error:"Invalid response ("+u+")"})}}}},ipinfodb:function(x){return{url:"//api.ipinfodb.com/v3/ip-country/?key={api_key}&format=json&callback={callback}",isScript:!0,callback:function(g,h){try{var u=JSON.parse(h);return"ERROR"==u.statusCode?E({error:u.statusMessage}):{code:u.countryCode}}catch(v){return E({error:"Invalid response ("+v+")"})}}}},maxmind:function(){return{url:"//js.maxmind.com/js/apis/geoip2/v2.1/geoip2.js",isScript:!0,callback:function(x){window.geoip2?geoip2.country(function(g){try{x({code:g.country.iso_code})}catch(h){x(E(h))}},function(g){x(E(g))}):x(new Error("Unexpected response format. The downloaded script should have exported `geoip2` to the global scope"))}}}}};function P(x){M.deepExtend(this.options={},q),M.isPlainObject(x)&&M.deepExtend(this.options,x),this.currentServiceIndex=-1}function R(x,g,h){var u,v=document.createElement("script");v.type="text/"+(x.type||"javascript"),v.src=x.src||x,v.async=!1,v.onreadystatechange=v.onload=function(){var m=v.readyState;clearTimeout(u),g.done||m&&!/loaded|complete/.test(m)||(g.done=!0,g(),v.onreadystatechange=v.onload=null)},document.body.appendChild(v),u=setTimeout(function(){g.done=!0,g(),v.onreadystatechange=v.onload=null},h)}function A(x,g,h,u,v){var m=new(window.XMLHttpRequest||window.ActiveXObject)("MSXML2.XMLHTTP.3.0");if(m.open(u?"POST":"GET",x,1),m.setRequestHeader("Content-type","application/x-www-form-urlencoded"),Array.isArray(v))for(var b=0,d=v.length;b<d;++b){var p=v[b].split(":",2);m.setRequestHeader(p[0].replace(/^\s+|\s+$/g,""),p[1].replace(/^\s+|\s+$/g,""))}"function"==typeof g&&(m.onreadystatechange=function(){m.readyState>3&&g(m)}),m.send(u)}function E(x){return new Error("Error ["+(x.code||"UNKNOWN")+"]: "+x.error)}return P.prototype.getNextService=function(){var x;do{x=this.getServiceByIdx(++this.currentServiceIndex)}while(this.currentServiceIndex<this.options.services.length&&!x);return x},P.prototype.getServiceByIdx=function(x){var g=this.options.services[x];if("function"==typeof g){var h=g();return h.name&&M.deepExtend(h,this.options.serviceDefinitions[h.name](h)),h}return"string"==typeof g?this.options.serviceDefinitions[g]():M.isPlainObject(g)?this.options.serviceDefinitions[g.name](g):null},P.prototype.locate=function(x,g){var h=this.getNextService();h?(this.callbackComplete=x,this.callbackError=g,this.runService(h,this.runNextServiceOnError.bind(this))):g(new Error("No services to run"))},P.prototype.setupUrl=function(x){var g=this.getCurrentServiceOpts();return x.url.replace(/\{(.*?)\}/g,function(h,u){if("callback"===u){var v="callback"+Date.now();return window[v]=function(m){x.__JSONP_DATA=JSON.stringify(m)},v}if(u in g.interpolateUrl)return g.interpolateUrl[u]})},P.prototype.runService=function(x,g){var h=this;x&&x.url&&x.callback&&(x.isScript?R:A)(this.setupUrl(x),function(u){var v=u?u.responseText:"";x.__JSONP_DATA&&(v=x.__JSONP_DATA,delete x.__JSONP_DATA),h.runServiceCallback.call(h,g,x,v)},this.options.timeout,x.data,x.headers)},P.prototype.runServiceCallback=function(x,g,h){var u=this,v=g.callback(function(m){v||u.onServiceResult.call(u,x,m)},h);v&&this.onServiceResult.call(this,x,v)},P.prototype.onServiceResult=function(x,g){g instanceof Error||g&&g.error?x.call(this,g,null):x.call(this,null,g)},P.prototype.runNextServiceOnError=function(x,g){if(x){this.logError(x);var h=this.getNextService();h?this.runService(h,this.runNextServiceOnError.bind(this)):this.completeService.call(this,this.callbackError,new Error("All services failed"))}else this.completeService.call(this,this.callbackComplete,g)},P.prototype.getCurrentServiceOpts=function(){var x=this.options.services[this.currentServiceIndex];return"string"==typeof x?{name:x}:"function"==typeof x?x():M.isPlainObject(x)?x:{}},P.prototype.completeService=function(x,g){this.currentServiceIndex=-1,x&&x(g)},P.prototype.logError=function(x){var g=this.currentServiceIndex,h=this.getServiceByIdx(g);console.warn("The service["+g+"] ("+h.url+") responded with the following error",x)},P}(),Q.Law=function(){var q={regionalLaw:!0,hasLaw:["AT","BE","BG","HR","CZ","CY","DK","EE","FI","FR","DE","EL","HU","IE","IT","LV","LT","LU","MT","NL","PL","PT","SK","ES","SE","GB","UK","GR","EU"],revokable:["HR","CY","DK","EE","FR","DE","LV","LT","NL","PT","ES"],explicitAction:["HR","IT","ES"]};function P(R){this.initialise.apply(this,arguments)}return P.prototype.initialise=function(R){M.deepExtend(this.options={},q),M.isPlainObject(R)&&M.deepExtend(this.options,R)},P.prototype.get=function(R){var A=this.options;return{hasLaw:A.hasLaw.indexOf(R)>=0,revokable:A.revokable.indexOf(R)>=0,explicitAction:A.explicitAction.indexOf(R)>=0}},P.prototype.applyLaw=function(R,A){var E=this.get(A);return E.hasLaw||(R.enabled=!1,"function"==typeof R.onNoCookieLaw&&R.onNoCookieLaw(A,E)),this.options.regionalLaw&&(E.revokable&&(R.revokable=!0),E.explicitAction&&(R.dismissOnScroll=!1,R.dismissOnTimeout=!1)),R},P}(),Q.initialise=function(q,P,R){var A=new Q.Law(q.law);P||(P=function(){}),R||(R=function(){});var E=Object.keys(Q.status),x=M.getCookie("cookieconsent_status");E.indexOf(x)>=0?P(new Q.Popup(q)):Q.getCountryCode(q,function(g){delete q.law,delete q.location,g.code&&(q=A.applyLaw(q,g.code)),P(new Q.Popup(q))},function(g){delete q.law,delete q.location,R(g,new Q.Popup(q))})},Q.getCountryCode=function(q,P,R){q.law&&q.law.countryCode?P({code:q.law.countryCode}):q.location?new Q.Location(q.location).locate(function(A){P(A||{})},R):P({})},Q.utils=M,Q.hasInitialised=!0,window.cookieconsent=Q}}(window.cookieconsent||{});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.