@stratametriq/id-card-designer 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +352 -0
- package/dist/index-D0zsRI-j.mjs +18930 -0
- package/dist/index.css +997 -0
- package/dist/index.es-CdYxDcOg.mjs +5645 -0
- package/dist/index.es.js +15 -0
- package/dist/index.js +508 -0
- package/dist/purify.es-Bo7Q7b72.mjs +471 -0
- package/package.json +57 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,508 @@
|
|
|
1
|
+
(function(bt,y){typeof exports=="object"&&typeof module<"u"?y(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],y):(bt=typeof globalThis<"u"?globalThis:bt||self,y(bt.ReactIdCardDesigner={},bt.jsxRuntime,bt.React,bt.ReactDOM))})(this,function(bt,y,re,e0){"use strict";function kw(e){const A=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(A,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return A.default=e,Object.freeze(A)}const Di=kw(re),t0=[{id:"v_classic_traditional",name:"1. Classic Header & Footer (Traditional ERP)",orientation:"vertical",width:54,height:86,background:{color:"#ffffff",image:""},elements:[{id:"header_box",type:"shape",label:"Header Box",x:0,y:0,width:54,height:6,backgroundColor:"#000000",borderColor:"transparent",borderWidth:0,borderRadius:0,zIndex:1},{id:"school_logo",type:"image",fieldKey:"schoolLogo",label:"School Emblem Logo",x:21,y:1.5,width:12,height:12,borderWidth:1.5,borderColor:"#ffffff",borderRadius:50,zIndex:2},{id:"school_name",type:"label",label:"School / Org Title",text:"SARDAR PATEL PUBLIC SCHOOL",x:1,y:14.5,width:52,height:5.5,fontSize:9.5,fontWeight:"bold",color:"#111111",textAlign:"center",fontFamily:"Arial, sans-serif",textTransform:"uppercase",zIndex:2},{id:"school_address",type:"label",label:"School Address Subtitle",text:"Near Liberty Hospital, Thadi Market, Agarwal Farm, Jaipur, Rajasthan -302020",x:2,y:20,width:50,height:5,fontSize:5.5,fontWeight:"normal",color:"#444444",textAlign:"center",fontFamily:"Arial, sans-serif",zIndex:2},{id:"school_phone",type:"label",label:"School Contact Phone",text:"Phone No. 7827072290",x:2,y:25.5,width:50,height:3.5,fontSize:6,fontWeight:"normal",color:"#333333",textAlign:"center",fontFamily:"Arial, sans-serif",zIndex:2},{id:"profile_photo_blue",type:"image",fieldKey:"profilePhoto",label:"Student Profile Photo",x:17,y:30,width:20,height:20,borderWidth:2,borderColor:"#0d6efd",borderRadius:50,zIndex:2},{id:"student_name",type:"field",fieldKey:"studentName",label:"Student Full Name",defaultValue:"Rahul Sharma (Sample)",x:2,y:51,width:50,height:5,fontSize:10,fontWeight:"bold",color:"#111111",textAlign:"center",fontFamily:"Arial, sans-serif",zIndex:3},{id:"class_field",type:"field",fieldKey:"classSec",label:"Class & Section Row",defaultValue:"Class X [A]",prefix:"Class : ",suffix:"",x:4,y:57.5,width:46,height:4,fontSize:7.5,fontWeight:"normal",color:"#222222",textAlign:"left",fontFamily:"Arial, sans-serif",zIndex:3},{id:"father_name_field",type:"field",fieldKey:"fatherName",label:"Father Name Row",defaultValue:"Mr. Rajesh Sharma",prefix:"Father : ",suffix:"",x:4,y:62,width:46,height:4,fontSize:7.5,fontWeight:"normal",color:"#222222",textAlign:"left",fontFamily:"Arial, sans-serif",zIndex:3},{id:"dob_field",type:"field",fieldKey:"dob",label:"Date of Birth Row",defaultValue:"15-08-2014",prefix:"DOB : ",suffix:"",x:4,y:66.5,width:46,height:4,fontSize:7.5,fontWeight:"normal",color:"#222222",textAlign:"left",fontFamily:"Arial, sans-serif",zIndex:3},{id:"phone_field",type:"field",fieldKey:"phone",label:"Contact Phone Row",defaultValue:"+91 9876543210",prefix:"Phone : ",suffix:"",x:4,y:71,width:46,height:4,fontSize:7.5,fontWeight:"normal",color:"#222222",textAlign:"left",fontFamily:"Arial, sans-serif",zIndex:3},{id:"address_field",type:"field",fieldKey:"address",label:"Student Address Row",defaultValue:"117/438 AGARWAL FARM MANSAROVAR, JAIPUR, 302020",prefix:"Address : ",suffix:"",x:4,y:75.5,width:46,height:6.5,fontSize:6.5,fontWeight:"normal",color:"#333333",textAlign:"left",fontFamily:"Arial, sans-serif",zIndex:3},{id:"principal_sign_label",type:"label",label:"Principal Sign Label",text:"Principal Sign.",x:32,y:82,width:20,height:3.5,fontSize:7,fontWeight:"bold",color:"#111111",textAlign:"right",fontFamily:"Arial, sans-serif",borderWidthBottom:.5,borderColor:"#111111",zIndex:2},{id:"footer_bar",type:"shape",label:"Bottom Footer Box",x:0,y:84.5,width:54,height:1.5,backgroundColor:"#000000",borderColor:"transparent",borderWidth:0,borderRadius:0,zIndex:1}]},{id:"v_minimal_modern",name:"2. Minimalist Modern Academy",orientation:"vertical",width:54,height:86,background:{color:"#f8fafc",image:""},elements:[{id:"top_accent",type:"shape",label:"Top Accent Bar",x:0,y:0,width:54,height:7,backgroundColor:"#0d6efd",borderColor:"transparent",borderWidth:0,borderRadius:0,zIndex:1},{id:"org_title_min",type:"label",label:"Company Header",text:"NEXUS INNOVATIONS ACADEMY",x:0,y:9,width:54,height:5,fontSize:8.5,fontWeight:"bold",color:"#0f172a",textAlign:"center",fontFamily:"Arial, sans-serif",zIndex:2},{id:"profile_photo_min",type:"image",fieldKey:"profilePhoto",label:"Profile Avatar",x:13,y:17,width:28,height:28,borderWidth:2,borderColor:"#0d6efd",borderRadius:14,zIndex:2},{id:"student_name_min",type:"field",fieldKey:"studentName",label:"Full Name",x:2,y:47,width:50,height:6,fontSize:11,fontWeight:"bold",color:"#0f172a",textAlign:"center",fontFamily:"Arial, sans-serif",zIndex:3},{id:"designation_min",type:"field",fieldKey:"classSec",label:"Class / Role Title",defaultValue:"Class X [A]",x:2,y:53.5,width:50,height:4.5,fontSize:8.5,fontWeight:"bold",color:"#0d6efd",textAlign:"center",fontFamily:"Arial, sans-serif",textTransform:"uppercase",zIndex:3},{id:"divider_min",type:"shape",label:"Divider Line",x:12,y:59.5,width:30,height:.5,backgroundColor:"#cbd5e1",borderColor:"transparent",borderWidth:0,borderRadius:0,zIndex:1},{id:"dept_min",type:"field",fieldKey:"fatherName",label:"Father Name",prefix:"FATHER: ",x:4,y:62,width:46,height:4.5,fontSize:7.5,fontWeight:"normal",color:"#475569",textAlign:"center",zIndex:3},{id:"code_min",type:"field",fieldKey:"empCode",label:"Registration / ID",prefix:"ID NO: ",x:4,y:67,width:46,height:4.5,fontSize:7.5,fontWeight:"normal",color:"#475569",textAlign:"center",zIndex:3},{id:"barcode_slot",type:"barcode",fieldKey:"empCode",label:"ID Barcode",x:9,y:74,width:36,height:8,backgroundColor:"#ffffff",borderRadius:1,zIndex:3}]},{id:"v_corp_executive",name:"3. Corporate Executive Badge (Global Standard)",orientation:"vertical",width:54,height:86,background:{color:"#ffffff",image:""},elements:[{id:"top_navy_header",type:"shape",label:"Deep Navy Top Half",x:0,y:0,width:54,height:32,backgroundColor:"#0f172a",borderColor:"transparent",borderWidth:0,borderRadius:0,zIndex:1},{id:"gold_accent_strip",type:"shape",label:"Gold Accent Strip",x:0,y:32,width:54,height:1.5,backgroundColor:"#f59e0b",borderColor:"transparent",borderWidth:0,borderRadius:0,zIndex:2},{id:"corp_title",type:"label",label:"Company Title",text:"FORTUNE GLOBAL TECHNOLOGIES",x:2,y:5,width:50,height:5,fontSize:8,fontWeight:"bold",color:"#ffffff",textAlign:"center",fontFamily:"Inter, sans-serif",zIndex:3},{id:"corp_sub",type:"label",label:"Company Subtitle",text:"ENTERPRISE SOLUTIONS DIVISION",x:2,y:10.5,width:50,height:4,fontSize:5.5,fontWeight:"normal",color:"#94a3b8",textAlign:"center",fontFamily:"Inter, sans-serif",zIndex:3},{id:"photo_exec",type:"image",fieldKey:"profilePhoto",label:"Executive Avatar",x:13,y:18,width:28,height:28,borderWidth:3,borderColor:"#ffffff",borderRadius:50,zIndex:4},{id:"name_exec",type:"field",fieldKey:"studentName",label:"Employee Name",defaultValue:"Elena Rostova",x:2,y:49,width:50,height:6,fontSize:11,fontWeight:"bold",color:"#0f172a",textAlign:"center",fontFamily:"Inter, sans-serif",zIndex:3},{id:"role_exec",type:"field",fieldKey:"classSec",label:"Job Designation",defaultValue:"VP OF ENGINEERING",x:4,y:55.5,width:46,height:5,fontSize:8,fontWeight:"bold",color:"#d97706",textAlign:"center",fontFamily:"Inter, sans-serif",zIndex:3},{id:"emp_id_exec",type:"field",fieldKey:"empCode",label:"Employee ID",prefix:"ID NUMBER : ",x:4,y:63,width:46,height:4.5,fontSize:7.5,fontWeight:"normal",color:"#334155",textAlign:"center",zIndex:3},{id:"phone_exec",type:"field",fieldKey:"phone",label:"Work Phone",prefix:"PHONE : ",x:4,y:68,width:46,height:4.5,fontSize:7.5,fontWeight:"normal",color:"#334155",textAlign:"center",zIndex:3},{id:"barcode_exec",type:"barcode",fieldKey:"empCode",label:"Access Barcode",x:9,y:75,width:36,height:8,backgroundColor:"#ffffff",borderRadius:1,zIndex:3}]},{id:"v_medical_hospital",name:"4. Medical & Healthcare Staff Card (Hospital Standard)",orientation:"vertical",width:54,height:86,background:{color:"#ffffff",image:""},elements:[{id:"med_top_bar",type:"shape",label:"Medical Teal Top Bar",x:0,y:0,width:54,height:12,backgroundColor:"#0284c7",borderColor:"transparent",borderWidth:0,borderRadius:0,zIndex:1},{id:"med_title",type:"label",label:"Hospital Name",text:"ST. JUDE MEDICAL CENTER",x:2,y:3,width:50,height:6,fontSize:9,fontWeight:"bold",color:"#ffffff",textAlign:"center",fontFamily:"Inter, sans-serif",zIndex:2},{id:"photo_med",type:"image",fieldKey:"profilePhoto",label:"Staff Photo",x:13,y:15,width:28,height:32,borderWidth:1.5,borderColor:"#0284c7",borderRadius:4,zIndex:2},{id:"name_med",type:"field",fieldKey:"studentName",label:"Doctor / Nurse Name",defaultValue:"Dr. Marcus Vance",x:2,y:49,width:50,height:6,fontSize:11,fontWeight:"bold",color:"#0f172a",textAlign:"center",fontFamily:"Inter, sans-serif",zIndex:3},{id:"role_strip_med",type:"shape",label:"Role Designation Strip",x:4,y:56,width:46,height:6,backgroundColor:"#dc2626",borderRadius:3,zIndex:2},{id:"role_med",type:"field",fieldKey:"classSec",label:"Designation Text",defaultValue:"ATTENDING PHYSICIAN",x:4,y:57.2,width:46,height:4.5,fontSize:8,fontWeight:"bold",color:"#ffffff",textAlign:"center",zIndex:3},{id:"dept_med",type:"field",fieldKey:"fatherName",label:"Department",prefix:"Dept: ",defaultValue:"Cardiology & Intensive Care",x:4,y:64,width:46,height:4.5,fontSize:7.5,fontWeight:"normal",color:"#334155",textAlign:"center",zIndex:3},{id:"id_med",type:"field",fieldKey:"empCode",label:"Staff ID No",prefix:"Staff ID: ",defaultValue:"MED-8821",x:4,y:69,width:46,height:4.5,fontSize:7.5,fontWeight:"normal",color:"#334155",textAlign:"center",zIndex:3},{id:"blood_med",type:"field",fieldKey:"dob",label:"Blood Group / Emergency",prefix:"Blood Grp: ",defaultValue:"O+ Positive",x:4,y:74,width:46,height:4.5,fontSize:7.5,fontWeight:"bold",color:"#dc2626",textAlign:"center",zIndex:3},{id:"med_bottom_bar",type:"shape",label:"Bottom Medical Strip",x:0,y:83,width:54,height:3,backgroundColor:"#0284c7",zIndex:1}]},{id:"v_gov_security",name:"5. Government / High-Security Clearance Pass",orientation:"vertical",width:54,height:86,background:{color:"#ffffff",image:""},elements:[{id:"gov_border",type:"shape",label:"Security Border Frame",x:1.5,y:1.5,width:51,height:83,backgroundColor:"transparent",borderWidth:1.5,borderColor:"#1e3a8a",borderRadius:2,zIndex:1},{id:"gov_header_strip",type:"shape",label:"Header Strip",x:1.5,y:1.5,width:51,height:10,backgroundColor:"#1e3a8a",zIndex:2},{id:"gov_header_text",type:"label",label:"Header Text",text:"DEPARTMENT OF DEFENSE / SECURITY",x:2,y:4,width:50,height:5,fontSize:7.5,fontWeight:"bold",color:"#ffffff",textAlign:"center",fontFamily:"Inter, sans-serif",zIndex:3},{id:"gov_clearance",type:"shape",label:"Clearance Level Box",x:6,y:14,width:42,height:5,backgroundColor:"#dc2626",borderRadius:1,zIndex:2},{id:"gov_clearance_text",type:"label",label:"Clearance Text",text:"CLEARANCE: LEVEL 4 (TOP SECRET)",x:6,y:14.8,width:42,height:4,fontSize:6.5,fontWeight:"bold",color:"#ffffff",textAlign:"center",zIndex:3},{id:"photo_gov",type:"image",fieldKey:"profilePhoto",label:"Official Photo",x:14,y:22,width:26,height:30,borderWidth:1,borderColor:"#1e3a8a",borderRadius:2,zIndex:2},{id:"name_gov",type:"field",fieldKey:"studentName",label:"Officer Name",defaultValue:"COMMANDER A. VANCE",x:3,y:54,width:48,height:5.5,fontSize:10,fontWeight:"bold",color:"#1e3a8a",textAlign:"center",textTransform:"uppercase",zIndex:3},{id:"role_gov",type:"field",fieldKey:"classSec",label:"Role / Agency",defaultValue:"SPECIAL OPERATIONS DIVISION",x:3,y:60,width:48,height:4.5,fontSize:7.5,fontWeight:"bold",color:"#334155",textAlign:"center",zIndex:3},{id:"id_gov",type:"field",fieldKey:"empCode",label:"Badge Serial",prefix:"BADGE NO: ",defaultValue:"US-DEF-99042",x:3,y:66,width:48,height:4.5,fontSize:7.5,fontWeight:"normal",color:"#1e3a8a",textAlign:"center",zIndex:3},{id:"barcode_gov",type:"barcode",fieldKey:"empCode",label:"Security Barcode",x:9,y:73,width:36,height:8,backgroundColor:"#ffffff",zIndex:3}]},{id:"v_event_vip",name:"6. Conference & VIP Event Speaker Badge",orientation:"vertical",width:54,height:86,background:{color:"#0f172a",image:""},elements:[{id:"top_purple_grad",type:"shape",label:"Purple Top Accent",x:0,y:0,width:54,height:24,backgroundColor:"#7c3aed",zIndex:1},{id:"event_title",type:"label",label:"Event Header",text:"GLOBAL AI & WEB SUMMIT 2026",x:2,y:5,width:50,height:6,fontSize:8.5,fontWeight:"bold",color:"#ffffff",textAlign:"center",zIndex:2},{id:"vip_badge",type:"shape",label:"VIP Badge Box",x:12,y:14,width:30,height:6,backgroundColor:"#f59e0b",borderRadius:12,zIndex:2},{id:"vip_badge_text",type:"label",label:"VIP Text",text:"KEYNOTE SPEAKER",x:12,y:15.2,width:30,height:4.5,fontSize:7.5,fontWeight:"bold",color:"#ffffff",textAlign:"center",zIndex:3},{id:"photo_event",type:"image",fieldKey:"profilePhoto",label:"Speaker Photo",x:13,y:28,width:28,height:28,borderWidth:3,borderColor:"#a78bfa",borderRadius:50,zIndex:2},{id:"name_event",type:"field",fieldKey:"studentName",label:"Speaker Name",defaultValue:"SARAH JENKINS",x:2,y:59,width:50,height:6,fontSize:12,fontWeight:"bold",color:"#ffffff",textAlign:"center",zIndex:3},{id:"org_event",type:"field",fieldKey:"classSec",label:"Company / Role",defaultValue:"Lead AI Architect, Google",x:2,y:66,width:50,height:5,fontSize:8.5,fontWeight:"500",color:"#cbd5e1",textAlign:"center",zIndex:3},{id:"access_event",type:"label",label:"Access Text",text:"ALL ACCESS & BACKSTAGE PASS",x:4,y:76,width:46,height:4.5,fontSize:6.5,fontWeight:"bold",color:"#a78bfa",textAlign:"center",zIndex:3}]}],r0=[{id:"h_sidebar",name:"1. Modern Sidebar Accent (Tech / Corporate)",orientation:"horizontal",width:86,height:54,background:{color:"#ffffff",image:""},elements:[{id:"sidebar_shape",type:"shape",label:"Sidebar Accent",x:0,y:0,width:26,height:54,backgroundColor:"#1e293b",borderColor:"transparent",borderWidth:0,borderRadius:0,zIndex:1},{id:"profile_photo_side",type:"image",fieldKey:"profilePhoto",label:"Photo",x:3,y:6,width:20,height:24,borderWidth:1.5,borderColor:"#3b82f6",borderRadius:3,zIndex:2},{id:"barcode_side",type:"barcode",fieldKey:"empCode",label:"ID Barcode",x:2.5,y:33,width:21,height:15,backgroundColor:"#ffffff",borderRadius:1,zIndex:2},{id:"org_title_h",type:"label",label:"Company Name",text:"GLOBAL TECH ENTERPRISES",x:29,y:4,width:53,height:5,fontSize:9,fontWeight:"bold",color:"#3b82f6",textAlign:"left",fontFamily:"Inter, sans-serif",zIndex:2},{id:"emp_name_h",type:"field",fieldKey:"studentName",label:"Full Name",x:29,y:11,width:53,height:6,fontSize:12,fontWeight:"bold",color:"#0f172a",textAlign:"left",fontFamily:"Inter, sans-serif",textTransform:"uppercase",zIndex:3},{id:"emp_role_h",type:"field",fieldKey:"classSec",label:"Role Title",defaultValue:"Senior Cloud Architect",x:29,y:17.5,width:53,height:5,fontSize:8.5,fontWeight:"500",color:"#64748b",textAlign:"left",zIndex:3},{id:"divider_h",type:"shape",label:"Horizontal Line",x:29,y:24,width:53,height:.5,backgroundColor:"#e2e8f0",borderColor:"transparent",borderWidth:0,borderRadius:0,zIndex:1},{id:"empcode_h",type:"field",fieldKey:"empCode",label:"ID Number",prefix:"ID Number : ",x:29,y:27,width:53,height:4.5,fontSize:7.5,fontWeight:"normal",color:"#334155",textAlign:"left",zIndex:3},{id:"dept_h",type:"field",fieldKey:"fatherName",label:"Department",prefix:"Department : ",defaultValue:"Cloud & Infrastructure",x:29,y:32.5,width:53,height:4.5,fontSize:7.5,fontWeight:"normal",color:"#334155",textAlign:"left",zIndex:3},{id:"phone_h",type:"field",fieldKey:"phone",label:"Contact",prefix:"Phone : ",x:29,y:38,width:53,height:4.5,fontSize:7.5,fontWeight:"normal",color:"#334155",textAlign:"left",zIndex:3},{id:"sign_slot",type:"label",label:"Authorized Sign Label",text:"Authorized Sign",x:65,y:46,width:18,height:4,fontSize:6.5,fontWeight:"bold",color:"#334155",textAlign:"right",borderWidthBottom:.5,borderColor:"#334155",zIndex:3}]},{id:"h_sage_banner",name:"2. Sage Table Banner (University/Academy)",orientation:"horizontal",width:86,height:54,background:{color:"#f8fafc",image:""},elements:[{id:"top_banner",type:"shape",label:"Sage Top Banner",x:0,y:0,width:86,height:12,backgroundColor:"#059669",borderColor:"transparent",borderWidth:0,borderRadius:0,zIndex:1},{id:"banner_title",type:"label",label:"Organization Name",text:"SAGE UNIVERSITY CAMPUS",x:4,y:3,width:60,height:6,fontSize:10,fontWeight:"bold",color:"#ffffff",textAlign:"left",fontFamily:"Outfit, sans-serif",zIndex:2},{id:"banner_logo",type:"image",fieldKey:"schoolLogo",label:"Logo",x:74,y:2,width:8,height:8,borderWidth:1,borderColor:"#ffffff",borderRadius:4,zIndex:2},{id:"photo_sage",type:"image",fieldKey:"profilePhoto",label:"Photo Avatar",x:5,y:16,width:22,height:28,borderWidth:1.5,borderColor:"#059669",borderRadius:2,zIndex:2},{id:"name_sage",type:"field",fieldKey:"studentName",label:"Full Name",x:30,y:15,width:52,height:6,fontSize:11,fontWeight:"bold",color:"#0f172a",textAlign:"left",fontFamily:"Inter, sans-serif",textTransform:"uppercase",zIndex:3},{id:"role_sage",type:"field",fieldKey:"classSec",label:"Class or Role",defaultValue:"B.Tech Computer Science [Year 3]",x:30,y:21.5,width:52,height:5,fontSize:8,fontWeight:"600",color:"#059669",textAlign:"left",zIndex:3},{id:"row_1",type:"field",fieldKey:"empCode",label:"Enrollment / ID",prefix:"Enrollment: ",x:30,y:28,width:52,height:4.5,fontSize:7.5,fontWeight:"normal",color:"#334155",textAlign:"left",borderWidthBottom:.5,borderColor:"#e2e8f0",zIndex:3},{id:"row_2",type:"field",fieldKey:"fatherName",label:"Department / Faculty",prefix:"Faculty: ",defaultValue:"Engineering & Technology",x:30,y:34,width:52,height:4.5,fontSize:7.5,fontWeight:"normal",color:"#334155",textAlign:"left",borderWidthBottom:.5,borderColor:"#e2e8f0",zIndex:3},{id:"row_3",type:"field",fieldKey:"phone",label:"Contact Phone",prefix:"Phone: ",x:30,y:40,width:52,height:4.5,fontSize:7.5,fontWeight:"normal",color:"#334155",textAlign:"left",borderWidthBottom:.5,borderColor:"#e2e8f0",zIndex:3},{id:"bottom_banner",type:"shape",label:"Bottom Strip",x:0,y:51,width:86,height:3,backgroundColor:"#0f172a",borderColor:"transparent",borderWidth:0,borderRadius:0,zIndex:1}]},{id:"h_corp_standard",name:"3. Corporate Horizontal Standard (Fortune 500)",orientation:"horizontal",width:86,height:54,background:{color:"#ffffff",image:""},elements:[{id:"top_blue_strip",type:"shape",label:"Top Blue Strip",x:0,y:0,width:86,height:6,backgroundColor:"#0d6efd",zIndex:1},{id:"corp_logo_h",type:"image",fieldKey:"schoolLogo",label:"Company Emblem",x:4,y:9,width:10,height:10,borderWidth:0,borderRadius:50,zIndex:2},{id:"corp_name_h",type:"label",label:"Company Title",text:"GLOBAL DYNAMICS CORPORATION",x:16,y:11,width:65,height:5,fontSize:9.5,fontWeight:"bold",color:"#0f172a",textAlign:"left",fontFamily:"Inter, sans-serif",zIndex:2},{id:"photo_corp_h",type:"image",fieldKey:"profilePhoto",label:"Employee Portrait",x:4,y:22,width:20,height:26,borderWidth:1.5,borderColor:"#0d6efd",borderRadius:4,zIndex:2},{id:"emp_name_ch",type:"field",fieldKey:"studentName",label:"Employee Name",x:27,y:21,width:55,height:6,fontSize:11,fontWeight:"bold",color:"#0d6efd",textAlign:"left",textTransform:"uppercase",zIndex:3},{id:"emp_role_ch",type:"field",fieldKey:"classSec",label:"Role Designation",defaultValue:"Principal Systems Engineer",x:27,y:27.5,width:55,height:4.5,fontSize:8.5,fontWeight:"600",color:"#475569",textAlign:"left",zIndex:3},{id:"emp_id_ch",type:"field",fieldKey:"empCode",label:"Employee ID",prefix:"EMP ID: ",x:27,y:34,width:55,height:4.5,fontSize:7.5,fontWeight:"normal",color:"#334155",textAlign:"left",zIndex:3},{id:"emp_dept_ch",type:"field",fieldKey:"fatherName",label:"Department",prefix:"Dept: ",defaultValue:"Research & Development",x:27,y:39,width:55,height:4.5,fontSize:7.5,fontWeight:"normal",color:"#334155",textAlign:"left",zIndex:3},{id:"barcode_ch",type:"barcode",fieldKey:"empCode",label:"Badge Barcode",x:48,y:45,width:34,height:7,backgroundColor:"#ffffff",zIndex:3}]},{id:"h_press_visitor",name:"4. Press / Media & Visitor Pass (Event Standard)",orientation:"horizontal",width:86,height:54,background:{color:"#ffffff",image:""},elements:[{id:"press_top_bar",type:"shape",label:"Press Amber Top Bar",x:0,y:0,width:86,height:14,backgroundColor:"#f59e0b",zIndex:1},{id:"press_title",type:"label",label:"Press Title",text:"OFFICIAL PRESS & MEDIA PASS",x:4,y:4,width:78,height:6,fontSize:11,fontWeight:"bold",color:"#000000",textAlign:"center",fontFamily:"Inter, sans-serif",zIndex:2},{id:"photo_press",type:"image",fieldKey:"profilePhoto",label:"Journalist Photo",x:5,y:18,width:24,height:30,borderWidth:2,borderColor:"#000000",borderRadius:2,zIndex:2},{id:"name_press",type:"field",fieldKey:"studentName",label:"Journalist Name",x:33,y:18,width:49,height:6,fontSize:12,fontWeight:"bold",color:"#0f172a",textAlign:"left",textTransform:"uppercase",zIndex:3},{id:"pub_press",type:"field",fieldKey:"classSec",label:"Publication / Agency",defaultValue:"THE DAILY CHRONICLE / REUTERS",x:33,y:25,width:49,height:5,fontSize:8.5,fontWeight:"bold",color:"#d97706",textAlign:"left",zIndex:3},{id:"pass_no",type:"field",fieldKey:"empCode",label:"Accreditation No",prefix:"Pass No: ",defaultValue:"MEDIA-2026-9901",x:33,y:32,width:49,height:4.5,fontSize:7.5,fontWeight:"normal",color:"#334155",textAlign:"left",zIndex:3},{id:"access_press",type:"label",label:"Access Text",text:"VALID FOR ALL SUMMIT SESSIONS & BRIEFINGS",x:33,y:38,width:49,height:4,fontSize:6,fontWeight:"bold",color:"#64748b",textAlign:"left",zIndex:3},{id:"barcode_press",type:"barcode",fieldKey:"empCode",label:"Verification Barcode",x:33,y:44,width:45,height:7,backgroundColor:"#ffffff",zIndex:3}]},{id:"h_faculty_staff",name:"5. University Faculty & Staff Horizontal Card",orientation:"horizontal",width:86,height:54,background:{color:"#ffffff",image:""},elements:[{id:"top_maroon_bar",type:"shape",label:"Maroon Top Bar",x:0,y:0,width:86,height:12,backgroundColor:"#800020",zIndex:1},{id:"uni_title_h",type:"label",label:"University Title",text:"CAMBRIDGE ACADEMY OF SCIENCES",x:4,y:3,width:78,height:6,fontSize:9.5,fontWeight:"bold",color:"#ffffff",textAlign:"left",fontFamily:"Outfit, sans-serif",zIndex:2},{id:"photo_faculty",type:"image",fieldKey:"profilePhoto",label:"Faculty Photo",x:4,y:16,width:22,height:28,borderWidth:1.5,borderColor:"#800020",borderRadius:4,zIndex:2},{id:"name_faculty",type:"field",fieldKey:"studentName",label:"Professor Name",defaultValue:"Prof. Jonathan Higgins",x:29,y:16,width:53,height:6,fontSize:11,fontWeight:"bold",color:"#0f172a",textAlign:"left",zIndex:3},{id:"role_faculty",type:"field",fieldKey:"classSec",label:"Academic Title",defaultValue:"Department Chair of Physics",x:29,y:23,width:53,height:5,fontSize:8.5,fontWeight:"600",color:"#800020",textAlign:"left",zIndex:3},{id:"id_faculty",type:"field",fieldKey:"empCode",label:"Faculty ID",prefix:"Faculty ID: ",defaultValue:"FAC-10049",x:29,y:30,width:53,height:4.5,fontSize:7.5,fontWeight:"normal",color:"#334155",textAlign:"left",zIndex:3},{id:"phone_faculty",type:"field",fieldKey:"phone",label:"Office Phone",prefix:"Office Ext: ",defaultValue:"+1 (555) 404-2000 Ext 441",x:29,y:36,width:53,height:4.5,fontSize:7.5,fontWeight:"normal",color:"#334155",textAlign:"left",zIndex:3},{id:"barcode_faculty",type:"barcode",fieldKey:"empCode",label:"Library / Access Barcode",x:29,y:43,width:36,height:8,backgroundColor:"#ffffff",zIndex:3}]},{id:"h_hospital_staff",name:"6. Hospital & Emergency Healthcare Staff Horizontal",orientation:"horizontal",width:86,height:54,background:{color:"#ffffff",image:""},elements:[{id:"hosp_top_teal",type:"shape",label:"Teal Top Bar",x:0,y:0,width:86,height:10,backgroundColor:"#0d9488",zIndex:1},{id:"hosp_name_h",type:"label",label:"Hospital Title",text:"GENERAL HOSPITAL & TRAUMA CENTER",x:4,y:2.5,width:78,height:5,fontSize:8.5,fontWeight:"bold",color:"#ffffff",textAlign:"left",zIndex:2},{id:"photo_hosp",type:"image",fieldKey:"profilePhoto",label:"Staff Photo",x:4,y:14,width:22,height:28,borderWidth:1.5,borderColor:"#0d9488",borderRadius:4,zIndex:2},{id:"name_hosp",type:"field",fieldKey:"studentName",label:"Doctor / Nurse Name",defaultValue:"Dr. Emily Watson",x:29,y:14,width:53,height:6,fontSize:11,fontWeight:"bold",color:"#0f172a",textAlign:"left",zIndex:3},{id:"role_hosp",type:"field",fieldKey:"classSec",label:"Designation",defaultValue:"Chief Medical Officer (CMO)",x:29,y:21,width:53,height:5,fontSize:8.5,fontWeight:"bold",color:"#dc2626",textAlign:"left",zIndex:3},{id:"id_hosp",type:"field",fieldKey:"empCode",label:"Staff ID",prefix:"Staff ID: ",defaultValue:"HOSP-22019",x:29,y:28,width:53,height:4.5,fontSize:7.5,fontWeight:"normal",color:"#334155",textAlign:"left",zIndex:3},{id:"blood_hosp",type:"field",fieldKey:"dob",label:"Blood Group",prefix:"Emergency Grp: ",defaultValue:"AB+ Positive",x:29,y:34,width:53,height:4.5,fontSize:7.5,fontWeight:"bold",color:"#0d9488",textAlign:"left",zIndex:3},{id:"barcode_hosp",type:"barcode",fieldKey:"empCode",label:"Hospital Barcode",x:29,y:42,width:36,height:8,backgroundColor:"#ffffff",zIndex:3}]}],n0=[...t0,...r0];function cf(e="vertical"){return n0.filter(A=>A.orientation===e)}function Os(e="vertical"){const A=cf(e);return A.length>0?JSON.parse(JSON.stringify(A[0])):null}/**
|
|
2
|
+
* @license lucide-react v0.344.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/var Dw={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
7
|
+
* @license lucide-react v0.344.0 - ISC
|
|
8
|
+
*
|
|
9
|
+
* This source code is licensed under the ISC license.
|
|
10
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
11
|
+
*/const Mw=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim(),ge=(e,A)=>{const t=re.forwardRef(({color:r="currentColor",size:n=24,strokeWidth:i=2,absoluteStrokeWidth:a,className:s="",children:o,...c},u)=>re.createElement("svg",{ref:u,...Dw,width:n,height:n,stroke:r,strokeWidth:a?Number(i)*24/Number(n):i,className:["lucide",`lucide-${Mw(e)}`,s].join(" "),...c},[...A.map(([d,p])=>re.createElement(d,p)),...Array.isArray(o)?o:[o]]));return t.displayName=`${e}`,t};/**
|
|
12
|
+
* @license lucide-react v0.344.0 - ISC
|
|
13
|
+
*
|
|
14
|
+
* This source code is licensed under the ISC license.
|
|
15
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
16
|
+
*/const Rw=ge("AlignCenter",[["line",{x1:"21",x2:"3",y1:"6",y2:"6",key:"1fp77t"}],["line",{x1:"17",x2:"7",y1:"12",y2:"12",key:"rsh8ii"}],["line",{x1:"19",x2:"5",y1:"18",y2:"18",key:"1t0tuv"}]]);/**
|
|
17
|
+
* @license lucide-react v0.344.0 - ISC
|
|
18
|
+
*
|
|
19
|
+
* This source code is licensed under the ISC license.
|
|
20
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
21
|
+
*/const Kw=ge("AlignLeft",[["line",{x1:"21",x2:"3",y1:"6",y2:"6",key:"1fp77t"}],["line",{x1:"15",x2:"3",y1:"12",y2:"12",key:"v6grx8"}],["line",{x1:"17",x2:"3",y1:"18",y2:"18",key:"1awlsn"}]]);/**
|
|
22
|
+
* @license lucide-react v0.344.0 - ISC
|
|
23
|
+
*
|
|
24
|
+
* This source code is licensed under the ISC license.
|
|
25
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
26
|
+
*/const Vw=ge("AlignRight",[["line",{x1:"21",x2:"3",y1:"6",y2:"6",key:"1fp77t"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}],["line",{x1:"21",x2:"7",y1:"18",y2:"18",key:"1g9eri"}]]);/**
|
|
27
|
+
* @license lucide-react v0.344.0 - ISC
|
|
28
|
+
*
|
|
29
|
+
* This source code is licensed under the ISC license.
|
|
30
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
31
|
+
*/const i0=ge("Barcode",[["path",{d:"M3 5v14",key:"1nt18q"}],["path",{d:"M8 5v14",key:"1ybrkv"}],["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"M17 5v14",key:"ycjyhj"}],["path",{d:"M21 5v14",key:"nzette"}]]);/**
|
|
32
|
+
* @license lucide-react v0.344.0 - ISC
|
|
33
|
+
*
|
|
34
|
+
* This source code is licensed under the ISC license.
|
|
35
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
36
|
+
*/const jw=ge("Briefcase",[["rect",{width:"20",height:"14",x:"2",y:"7",rx:"2",ry:"2",key:"eto64e"}],["path",{d:"M16 21V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"zwj3tp"}]]);/**
|
|
37
|
+
* @license lucide-react v0.344.0 - ISC
|
|
38
|
+
*
|
|
39
|
+
* This source code is licensed under the ISC license.
|
|
40
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
41
|
+
*/const zw=ge("Building2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]]);/**
|
|
42
|
+
* @license lucide-react v0.344.0 - ISC
|
|
43
|
+
*
|
|
44
|
+
* This source code is licensed under the ISC license.
|
|
45
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
46
|
+
*/const a0=ge("Building",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",ry:"2",key:"76otgf"}],["path",{d:"M9 22v-4h6v4",key:"r93iot"}],["path",{d:"M8 6h.01",key:"1dz90k"}],["path",{d:"M16 6h.01",key:"1x0f13"}],["path",{d:"M12 6h.01",key:"1vi96p"}],["path",{d:"M12 10h.01",key:"1nrarc"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 10h.01",key:"1m94wz"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 10h.01",key:"19clt8"}],["path",{d:"M8 14h.01",key:"6423bh"}]]);/**
|
|
47
|
+
* @license lucide-react v0.344.0 - ISC
|
|
48
|
+
*
|
|
49
|
+
* This source code is licensed under the ISC license.
|
|
50
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
51
|
+
*/const Gw=ge("CheckCircle2",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
|
|
52
|
+
* @license lucide-react v0.344.0 - ISC
|
|
53
|
+
*
|
|
54
|
+
* This source code is licensed under the ISC license.
|
|
55
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
56
|
+
*/const uf=ge("CheckSquare",[["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}],["path",{d:"M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11",key:"1jnkn4"}]]);/**
|
|
57
|
+
* @license lucide-react v0.344.0 - ISC
|
|
58
|
+
*
|
|
59
|
+
* This source code is licensed under the ISC license.
|
|
60
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
61
|
+
*/const $w=ge("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
|
|
62
|
+
* @license lucide-react v0.344.0 - ISC
|
|
63
|
+
*
|
|
64
|
+
* This source code is licensed under the ISC license.
|
|
65
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
66
|
+
*/const Ww=ge("Eye",[["path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z",key:"rwhkz3"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
|
|
67
|
+
* @license lucide-react v0.344.0 - ISC
|
|
68
|
+
*
|
|
69
|
+
* This source code is licensed under the ISC license.
|
|
70
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
71
|
+
*/const s0=ge("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
|
|
72
|
+
* @license lucide-react v0.344.0 - ISC
|
|
73
|
+
*
|
|
74
|
+
* This source code is licensed under the ISC license.
|
|
75
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
76
|
+
*/const o0=ge("GraduationCap",[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]]);/**
|
|
77
|
+
* @license lucide-react v0.344.0 - ISC
|
|
78
|
+
*
|
|
79
|
+
* This source code is licensed under the ISC license.
|
|
80
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
81
|
+
*/const qw=ge("Grid3x3",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]]);/**
|
|
82
|
+
* @license lucide-react v0.344.0 - ISC
|
|
83
|
+
*
|
|
84
|
+
* This source code is licensed under the ISC license.
|
|
85
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
86
|
+
*/const Xw=ge("Hash",[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]]);/**
|
|
87
|
+
* @license lucide-react v0.344.0 - ISC
|
|
88
|
+
*
|
|
89
|
+
* This source code is licensed under the ISC license.
|
|
90
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
91
|
+
*/const ff=ge("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);/**
|
|
92
|
+
* @license lucide-react v0.344.0 - ISC
|
|
93
|
+
*
|
|
94
|
+
* This source code is licensed under the ISC license.
|
|
95
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
96
|
+
*/const Hs=ge("Layers",[["path",{d:"m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z",key:"8b97xw"}],["path",{d:"m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65",key:"dd6zsq"}],["path",{d:"m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65",key:"ep9fru"}]]);/**
|
|
97
|
+
* @license lucide-react v0.344.0 - ISC
|
|
98
|
+
*
|
|
99
|
+
* This source code is licensed under the ISC license.
|
|
100
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
101
|
+
*/const Yw=ge("Loader2",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
|
|
102
|
+
* @license lucide-react v0.344.0 - ISC
|
|
103
|
+
*
|
|
104
|
+
* This source code is licensed under the ISC license.
|
|
105
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
106
|
+
*/const Jw=ge("MinusCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}]]);/**
|
|
107
|
+
* @license lucide-react v0.344.0 - ISC
|
|
108
|
+
*
|
|
109
|
+
* This source code is licensed under the ISC license.
|
|
110
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
111
|
+
*/const Zw=ge("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);/**
|
|
112
|
+
* @license lucide-react v0.344.0 - ISC
|
|
113
|
+
*
|
|
114
|
+
* This source code is licensed under the ISC license.
|
|
115
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
116
|
+
*/const Ab=ge("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
|
|
117
|
+
* @license lucide-react v0.344.0 - ISC
|
|
118
|
+
*
|
|
119
|
+
* This source code is licensed under the ISC license.
|
|
120
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
121
|
+
*/const l0=ge("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/**
|
|
122
|
+
* @license lucide-react v0.344.0 - ISC
|
|
123
|
+
*
|
|
124
|
+
* This source code is licensed under the ISC license.
|
|
125
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
126
|
+
*/const eb=ge("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
|
|
127
|
+
* @license lucide-react v0.344.0 - ISC
|
|
128
|
+
*
|
|
129
|
+
* This source code is licensed under the ISC license.
|
|
130
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
131
|
+
*/const c0=ge("QrCode",[["rect",{width:"5",height:"5",x:"3",y:"3",rx:"1",key:"1tu5fj"}],["rect",{width:"5",height:"5",x:"16",y:"3",rx:"1",key:"1v8r4q"}],["rect",{width:"5",height:"5",x:"3",y:"16",rx:"1",key:"1x03jg"}],["path",{d:"M21 16h-3a2 2 0 0 0-2 2v3",key:"177gqh"}],["path",{d:"M21 21v.01",key:"ents32"}],["path",{d:"M12 7v3a2 2 0 0 1-2 2H7",key:"8crl2c"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M12 3h.01",key:"n36tog"}],["path",{d:"M12 16v.01",key:"133mhm"}],["path",{d:"M16 12h1",key:"1slzba"}],["path",{d:"M21 12v.01",key:"1lwtk9"}],["path",{d:"M12 21v-1",key:"1880an"}]]);/**
|
|
132
|
+
* @license lucide-react v0.344.0 - ISC
|
|
133
|
+
*
|
|
134
|
+
* This source code is licensed under the ISC license.
|
|
135
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
136
|
+
*/const u0=ge("Redo2",[["path",{d:"m15 14 5-5-5-5",key:"12vg1m"}],["path",{d:"M20 9H9.5A5.5 5.5 0 0 0 4 14.5v0A5.5 5.5 0 0 0 9.5 20H13",key:"19mnr4"}]]);/**
|
|
137
|
+
* @license lucide-react v0.344.0 - ISC
|
|
138
|
+
*
|
|
139
|
+
* This source code is licensed under the ISC license.
|
|
140
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
141
|
+
*/const tb=ge("Save",[["path",{d:"M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z",key:"1owoqh"}],["polyline",{points:"17 21 17 13 7 13 7 21",key:"1md35c"}],["polyline",{points:"7 3 7 8 15 8",key:"8nz8an"}]]);/**
|
|
142
|
+
* @license lucide-react v0.344.0 - ISC
|
|
143
|
+
*
|
|
144
|
+
* This source code is licensed under the ISC license.
|
|
145
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
146
|
+
*/const rb=ge("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/**
|
|
147
|
+
* @license lucide-react v0.344.0 - ISC
|
|
148
|
+
*
|
|
149
|
+
* This source code is licensed under the ISC license.
|
|
150
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
151
|
+
*/const f0=ge("Smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]);/**
|
|
152
|
+
* @license lucide-react v0.344.0 - ISC
|
|
153
|
+
*
|
|
154
|
+
* This source code is licensed under the ISC license.
|
|
155
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
156
|
+
*/const nb=ge("Sparkles",[["path",{d:"m12 3-1.912 5.813a2 2 0 0 1-1.275 1.275L3 12l5.813 1.912a2 2 0 0 1 1.275 1.275L12 21l1.912-5.813a2 2 0 0 1 1.275-1.275L21 12l-5.813-1.912a2 2 0 0 1-1.275-1.275L12 3Z",key:"17u4zn"}],["path",{d:"M5 3v4",key:"bklmnn"}],["path",{d:"M19 17v4",key:"iiml17"}],["path",{d:"M3 5h4",key:"nem4j1"}],["path",{d:"M17 19h4",key:"lbex7p"}]]);/**
|
|
157
|
+
* @license lucide-react v0.344.0 - ISC
|
|
158
|
+
*
|
|
159
|
+
* This source code is licensed under the ISC license.
|
|
160
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
161
|
+
*/const Ca=ge("Square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);/**
|
|
162
|
+
* @license lucide-react v0.344.0 - ISC
|
|
163
|
+
*
|
|
164
|
+
* This source code is licensed under the ISC license.
|
|
165
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
166
|
+
*/const ib=ge("Stethoscope",[["path",{d:"M4.8 2.3A.3.3 0 1 0 5 2H4a2 2 0 0 0-2 2v5a6 6 0 0 0 6 6v0a6 6 0 0 0 6-6V4a2 2 0 0 0-2-2h-1a.2.2 0 1 0 .3.3",key:"1jd90r"}],["path",{d:"M8 15v1a6 6 0 0 0 6 6v0a6 6 0 0 0 6-6v-4",key:"126ukv"}],["circle",{cx:"20",cy:"10",r:"2",key:"ts1r5v"}]]);/**
|
|
167
|
+
* @license lucide-react v0.344.0 - ISC
|
|
168
|
+
*
|
|
169
|
+
* This source code is licensed under the ISC license.
|
|
170
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
171
|
+
*/const ab=ge("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
|
|
172
|
+
* @license lucide-react v0.344.0 - ISC
|
|
173
|
+
*
|
|
174
|
+
* This source code is licensed under the ISC license.
|
|
175
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
176
|
+
*/const sb=ge("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
|
|
177
|
+
* @license lucide-react v0.344.0 - ISC
|
|
178
|
+
*
|
|
179
|
+
* This source code is licensed under the ISC license.
|
|
180
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
181
|
+
*/const ob=ge("Type",[["polyline",{points:"4 7 4 4 20 4 20 7",key:"1nosan"}],["line",{x1:"9",x2:"15",y1:"20",y2:"20",key:"swin9y"}],["line",{x1:"12",x2:"12",y1:"4",y2:"20",key:"1tx1rr"}]]);/**
|
|
182
|
+
* @license lucide-react v0.344.0 - ISC
|
|
183
|
+
*
|
|
184
|
+
* This source code is licensed under the ISC license.
|
|
185
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
186
|
+
*/const h0=ge("Undo2",[["path",{d:"M9 14 4 9l5-5",key:"102s5s"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5v0a5.5 5.5 0 0 1-5.5 5.5H11",key:"llx8ln"}]]);/**
|
|
187
|
+
* @license lucide-react v0.344.0 - ISC
|
|
188
|
+
*
|
|
189
|
+
* This source code is licensed under the ISC license.
|
|
190
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
191
|
+
*/const Mi=ge("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]);/**
|
|
192
|
+
* @license lucide-react v0.344.0 - ISC
|
|
193
|
+
*
|
|
194
|
+
* This source code is licensed under the ISC license.
|
|
195
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
196
|
+
*/const lb=ge("UserCheck",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["polyline",{points:"16 11 18 13 22 9",key:"1pwet4"}]]);/**
|
|
197
|
+
* @license lucide-react v0.344.0 - ISC
|
|
198
|
+
*
|
|
199
|
+
* This source code is licensed under the ISC license.
|
|
200
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
201
|
+
*/const d0=ge("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
|
|
202
|
+
* @license lucide-react v0.344.0 - ISC
|
|
203
|
+
*
|
|
204
|
+
* This source code is licensed under the ISC license.
|
|
205
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
206
|
+
*/const cb=ge("Wand2",[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72Z",key:"1bcowg"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]]);/**
|
|
207
|
+
* @license lucide-react v0.344.0 - ISC
|
|
208
|
+
*
|
|
209
|
+
* This source code is licensed under the ISC license.
|
|
210
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
211
|
+
*/const ub=ge("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
|
|
212
|
+
* @license lucide-react v0.344.0 - ISC
|
|
213
|
+
*
|
|
214
|
+
* This source code is licensed under the ISC license.
|
|
215
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
216
|
+
*/const fb=ge("ZoomIn",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]);/**
|
|
217
|
+
* @license lucide-react v0.344.0 - ISC
|
|
218
|
+
*
|
|
219
|
+
* This source code is licensed under the ISC license.
|
|
220
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
221
|
+
*/const hb=ge("ZoomOut",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]);function g0({orientation:e="vertical",onChangeOrientation:A,onSelectPreset:t,onAddElement:r,activeTemplateId:n,theme:i="enterprise",zoom:a=1.25,onChangeZoom:s=()=>{},width:o=54,height:c=86,onChangeDimensions:u=()=>{},fieldDefinitions:d=[]}){const p=cf(e);p.find(B=>B.id===n)||p[0];const h=(B,C=null,b={})=>{let L={id:`${C||B}_${Date.now().toString().slice(-4)}`,type:B,x:4,y:15,zIndex:3,...b};B==="field"?L={...L,fieldKey:C||"studentName",label:b.label||(C?`${C}`:"Dynamic Field"),width:b.width||46,height:b.height||4.5,fontSize:b.fontSize||8,fontWeight:b.fontWeight||"normal",color:b.color||"#222222",textAlign:b.textAlign||"left",fontFamily:"Arial, sans-serif",prefix:b.prefix||"",defaultValue:b.defaultValue||`Sample ${C||"Value"}`}:B==="label"?L={...L,text:b.text||"NEW LABEL TEXT",label:b.label||"Static Label",width:b.width||48,height:b.height||5,fontSize:b.fontSize||8,fontWeight:b.fontWeight||"normal",color:b.color||"#333333",textAlign:b.textAlign||"center",fontFamily:"Arial, sans-serif"}:B==="shape"?L={...L,label:b.label||"Shape Box",width:b.width||(e==="vertical"?54:86),height:b.height||6,backgroundColor:b.backgroundColor||"#000000",borderWidth:0,borderRadius:0,zIndex:1}:B==="image"?L={...L,fieldKey:C||"profilePhoto",label:b.label||(C==="schoolLogo"?"School Emblem Logo":"Profile Photo"),width:C==="schoolLogo"?12:20,height:C==="schoolLogo"?12:20,borderWidth:C==="profilePhoto"?2:1.5,borderColor:C==="profilePhoto"?"#0d6efd":"#ffffff",borderRadius:50,zIndex:2}:B==="barcode"?L={...L,fieldKey:"empCode",label:"ID Barcode Slot",width:32,height:8,backgroundColor:"#ffffff",borderRadius:1,zIndex:2}:B==="qrcode"&&(L={...L,fieldKey:"empCode",label:"ID Verification QR",width:16,height:16,backgroundColor:"#ffffff",borderRadius:1,zIndex:2}),r(L)},m=i==="enterprise";return y.jsxs("div",{className:"ricd-sidebar-left",children:[y.jsxs("div",{className:"ricd-sidebar-section",children:[y.jsx("div",{className:"ricd-section-title",children:m?"1. ORIENTATION & PRESETS":"Card Orientation"}),y.jsxs("div",{className:m?"ricd-grid-2":"ricd-orientation-switcher",style:{marginBottom:"1rem"},children:[y.jsxs("button",{type:"button",className:m?`ricd-ent-orientation-btn ${e==="vertical"?"active":""}`:`ricd-orientation-tab ${e==="vertical"?"active":""}`,onClick:()=>A("vertical"),children:[y.jsx(f0,{size:14,style:{transform:"rotate(0deg)"}}),y.jsx("span",{children:"Vertical (54×86)"})]}),y.jsxs("button",{type:"button",className:m?`ricd-ent-orientation-btn ${e==="horizontal"?"active":""}`:`ricd-orientation-tab ${e==="horizontal"?"active":""}`,onClick:()=>A("horizontal"),children:[y.jsx(f0,{size:14,style:{transform:"rotate(90deg)"}}),y.jsx("span",{children:"Horizontal (86×54)"})]})]}),y.jsxs("div",{className:"ricd-form-group",children:[y.jsx("label",{className:"ricd-form-label",style:{fontSize:"0.8rem",fontWeight:600,color:m?"#495057":void 0},children:"Layout Theme:"}),y.jsx("select",{className:"ricd-form-select",value:n||"",onChange:B=>{const C=p.find(b=>b.id===B.target.value);C&&t(C)},children:p.map(B=>y.jsx("option",{value:B.id,children:B.name},B.id))}),y.jsx("p",{style:{fontSize:"0.74rem",color:m?"#6c757d":"#94a3b8",margin:"0.35rem 0 0.75rem 0"},children:"Select a theme above as your starting point, then drag and drop below!"})]}),y.jsxs("div",{className:"ricd-grid-2",style:{marginBottom:"0.75rem"},children:[y.jsxs("div",{className:"ricd-form-group",style:{marginBottom:0},children:[y.jsx("label",{className:"ricd-form-label",children:"Width (mm)"}),y.jsx("input",{type:"number",className:"ricd-form-input",value:o,onChange:B=>u(Number(B.target.value),c)})]}),y.jsxs("div",{className:"ricd-form-group",style:{marginBottom:0},children:[y.jsx("label",{className:"ricd-form-label",children:"Height (mm)"}),y.jsx("input",{type:"number",className:"ricd-form-input",value:c,onChange:B=>u(o,Number(B.target.value))})]})]}),y.jsxs("div",{style:{display:"flex",alignItems:"center",justifySelf:"space-between",paddingTop:"0.5rem",borderTop:m?"1px dashed #ced4da":"none"},children:[y.jsx("span",{style:{fontSize:"0.8rem",fontWeight:600,color:m?"#495057":"#cbd5e1"},children:"Canvas Zoom:"}),y.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"0.4rem"},children:[y.jsx("button",{type:"button",className:"ricd-btn-icon",style:{border:"1px solid #ced4da",padding:"0.15rem 0.4rem",borderRadius:"4px"},onClick:()=>s(Math.max(.75,Math.round((a-.15)*100)/100)),children:y.jsx(Zw,{size:13})}),y.jsxs("span",{style:{fontSize:"0.8rem",fontWeight:600,width:"42px",textAlign:"center"},children:[Math.round(a*100),"%"]}),y.jsx("button",{type:"button",className:"ricd-btn-icon",style:{border:"1px solid #ced4da",padding:"0.15rem 0.4rem",borderRadius:"4px"},onClick:()=>s(Math.min(2,Math.round((a+.15)*100)/100)),children:y.jsx(eb,{size:13})})]})]})]}),y.jsxs("div",{className:"ricd-sidebar-section",style:{borderBottom:"none"},children:[y.jsx("div",{className:"ricd-section-title",children:m?"2. ADD ELEMENTS":"Insert Elements"}),y.jsxs("div",{style:{marginBottom:"1.25rem"},children:[y.jsxs("div",{style:{fontSize:"0.78rem",fontWeight:600,color:m?"#0d6efd":"#60a5fa",marginBottom:"0.5rem",display:"flex",alignItems:"center",justifySelf:"space-between"},children:[y.jsx("span",{children:"1. Dynamic Database Fields:"}),y.jsx("span",{style:{fontSize:"0.7rem",background:m?"rgba(13, 110, 253, 0.12)":"rgba(96, 165, 250, 0.15)",color:m?"#0d6efd":"#60a5fa",padding:"0.12rem 0.5rem",borderRadius:"12px"},children:d&&d.length>0?`${d.length} Bound`:"Default"})]}),y.jsx("div",{className:"ricd-ent-pill-grid",children:d&&d.length>0?d.map(B=>y.jsxs("button",{type:"button",className:"ricd-ent-pill-btn",title:`Insert field: ${B.label||B.key}`,onClick:()=>h("field",B.key,{label:B.label||B.key,defaultValue:B.defaultValue||`Sample ${B.label||B.key}`,fontSize:8,fontWeight:"normal",textAlign:"left"}),children:[y.jsx(d0,{size:13}),y.jsx("span",{children:B.label&&B.label.length>15?`${B.label.slice(0,14)}...`:B.label||B.key})]},B.key)):y.jsxs(y.Fragment,{children:[y.jsxs("button",{type:"button",className:"ricd-ent-pill-btn",onClick:()=>h("field","fullName",{label:"Full Name",defaultValue:"Person Name",fontSize:10,fontWeight:"bold",textAlign:"center"}),children:[y.jsx(d0,{size:13}),y.jsx("span",{children:"Full Name"})]}),y.jsxs("button",{type:"button",className:"ricd-ent-pill-btn",onClick:()=>h("field","designation",{label:"Designation / Class",defaultValue:"Role Designation",fontSize:8}),children:[y.jsx(o0,{size:13}),y.jsx("span",{children:"Role / Class"})]}),y.jsxs("button",{type:"button",className:"ricd-ent-pill-btn",onClick:()=>h("field","idCode",{label:"ID Number",prefix:"ID : ",defaultValue:"ID-2026-001",fontSize:7.5}),children:[y.jsx(Xw,{size:13}),y.jsx("span",{children:"ID Code"})]}),y.jsxs("button",{type:"button",className:"ricd-ent-pill-btn",onClick:()=>h("field","department",{label:"Department / Ward",defaultValue:"General Division",fontSize:7.5}),children:[y.jsx(a0,{size:13}),y.jsx("span",{children:"Department"})]}),y.jsxs("button",{type:"button",className:"ricd-ent-pill-btn",onClick:()=>h("field","phone",{label:"Contact Phone",prefix:"Phone : ",defaultValue:"+91 9876543210",fontSize:7.5}),children:[y.jsx(l0,{size:13}),y.jsx("span",{children:"Contact Phone"})]})]})})]}),y.jsxs("div",{style:{marginBottom:"1.25rem"},children:[y.jsx("div",{style:{fontSize:"0.78rem",fontWeight:600,color:m?"#0d6efd":"#60a5fa",marginBottom:"0.5rem"},children:"2. Static Text & Headers:"}),y.jsxs("div",{className:"ricd-ent-pill-grid",children:[y.jsxs("button",{type:"button",className:"ricd-ent-pill-btn",onClick:()=>h("label",null,{label:"Organization Title",text:"ORGANIZATION TITLE",fontSize:9.5,fontWeight:"bold",textAlign:"center",width:52}),children:[y.jsx(a0,{size:13}),y.jsx("span",{children:"Organization Title"})]}),y.jsxs("button",{type:"button",className:"ricd-ent-pill-btn",onClick:()=>h("label",null,{label:"Subtitle / Address",text:"Headquarters / Address Subtitle Row",fontSize:5.5,textAlign:"center",width:50}),children:[y.jsx(s0,{size:13}),y.jsx("span",{children:"Subtitle / Address"})]}),y.jsxs("button",{type:"button",className:"ricd-ent-pill-btn",onClick:()=>h("label",null,{label:"Contact Info Row",text:"Phone / Email / Website Row",fontSize:6,textAlign:"center",width:50}),children:[y.jsx(l0,{size:13}),y.jsx("span",{children:"Contact Info Row"})]}),y.jsxs("button",{type:"button",className:"ricd-ent-pill-btn",title:"Add a bottom border with text label for Authorized Signature",onClick:()=>h("label",null,{label:"Signature Label",text:"Authorized Sign.",fontSize:7,fontWeight:"bold",textAlign:"right",width:20,borderWidthBottom:.5,borderColor:"#000000"}),children:[y.jsx(s0,{size:13}),y.jsx("span",{children:"Signature Label (Text)"})]})]})]}),y.jsxs("div",{style:{marginBottom:"1.25rem"},children:[y.jsx("div",{style:{fontSize:"0.78rem",fontWeight:600,color:m?"#0d6efd":"#60a5fa",marginBottom:"0.5rem"},children:"3. Shapes & Accent Bars:"}),y.jsxs("div",{className:"ricd-ent-pill-grid",children:[y.jsxs("button",{type:"button",className:"ricd-ent-pill-btn",onClick:()=>h("shape",null,{label:"Top Header Box",width:e==="vertical"?54:86,height:6,backgroundColor:"#000000"}),children:[y.jsx(Ca,{size:13}),y.jsx("span",{children:"Top Header Box"})]}),y.jsxs("button",{type:"button",className:"ricd-ent-pill-btn",onClick:()=>h("shape",null,{label:"Bottom Footer Bar",width:e==="vertical"?54:86,height:2,backgroundColor:"#000000"}),children:[y.jsx(Ca,{size:13}),y.jsx("span",{children:"Bottom Footer Bar"})]}),y.jsxs("button",{type:"button",className:"ricd-ent-pill-btn",onClick:()=>h("shape",null,{label:"Accent Line Strip",width:e==="vertical"?50:80,height:.5,backgroundColor:"#0d6efd"}),children:[y.jsx(Jw,{size:13}),y.jsx("span",{children:"Divider Line Strip"})]})]})]}),y.jsxs("div",{children:[y.jsx("div",{style:{fontSize:"0.78rem",fontWeight:600,color:m?"#0d6efd":"#60a5fa",marginBottom:"0.5rem"},children:"4. Photos, Signatures & Barcodes:"}),y.jsxs("div",{className:"ricd-ent-pill-grid",children:[y.jsxs("button",{type:"button",className:"ricd-ent-pill-btn",onClick:()=>h("image","profilePhoto",{label:"Profile Photo Box",width:20,height:20,borderWidth:2,borderColor:"#0d6efd",borderRadius:50}),children:[y.jsx(ff,{size:13}),y.jsx("span",{children:"Person Photo Box"})]}),y.jsxs("button",{type:"button",className:"ricd-ent-pill-btn",onClick:()=>h("image","schoolLogo",{label:"Organization Emblem Logo",width:12,height:12,borderWidth:1.5,borderColor:"#ffffff",borderRadius:50}),children:[y.jsx(rb,{size:13}),y.jsx("span",{children:"Organization Logo"})]}),y.jsxs("button",{type:"button",className:"ricd-ent-pill-btn",title:"Add a Signature Image slot where you can upload an authorized signature file PNG/JPG",onClick:()=>h("image",null,{label:"Authorized Signature Image",subtype:"signature",fieldKey:"signature",url:"https://dummyimage.com/200x80/ffffff/000000&text=Authorized+Sign",width:22,height:9,zIndex:5}),children:[y.jsx(ff,{size:13}),y.jsx("span",{children:"Signature Image Slot"})]}),y.jsxs("button",{type:"button",className:"ricd-ent-pill-btn",onClick:()=>h("barcode",null,{label:"ID Barcode"}),children:[y.jsx(i0,{size:13}),y.jsx("span",{children:"ID Barcode"})]}),y.jsxs("button",{type:"button",className:"ricd-ent-pill-btn",onClick:()=>h("qrcode",null,{label:"Verification QR"}),children:[y.jsx(c0,{size:13}),y.jsx("span",{children:"QR Verification"})]})]})]})]})]})}var xa=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function hf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var p0={exports:{}},db="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",gb=db,pb=gb;function v0(){}function B0(){}B0.resetWarningCache=v0;var vb=function(){function e(r,n,i,a,s,o){if(o!==pb){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function A(){return e}var t={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:A,element:e,elementType:e,instanceOf:A,node:e,objectOf:A,oneOf:A,oneOfType:A,shape:A,exact:A,checkPropTypes:B0,resetWarningCache:v0};return t.PropTypes=t,t};p0.exports=vb();var Bb=p0.exports;const Be=hf(Bb);function m0(e){var A,t,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var n=e.length;for(A=0;A<n;A++)e[A]&&(t=m0(e[A]))&&(r&&(r+=" "),r+=t)}else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function mb(){for(var e,A,t=0,r="",n=arguments.length;t<n;t++)(e=arguments[t])&&(A=m0(e))&&(r&&(r+=" "),r+=A);return r}function df(e,A){for(let t=0,r=e.length;t<r;t++)if(A.apply(A,[e[t],t,e]))return e[t]}function y0(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Function]"}function _s(e){return typeof e=="number"&&!isNaN(e)}function $t(e){return parseInt(e,10)}function Fa(e,A,t){if(e[A])return new Error(`Invalid prop ${A} passed to ${t} - do not set this, set it on the child.`)}var gf=["Moz","Webkit","O","ms"];function yb(e="transform"){var A,t;if(typeof window>"u")return"";const r=(t=(A=window.document)==null?void 0:A.documentElement)==null?void 0:t.style;if(!r||e in r)return"";for(let n=0;n<gf.length;n++)if(w0(e,gf[n])in r)return gf[n];return""}function w0(e,A){return A?`${A}${wb(e)}`:e}function wb(e){let A="",t=!0;for(let r=0;r<e.length;r++)t?(A+=e[r].toUpperCase(),t=!1):e[r]==="-"?t=!0:A+=e[r];return A}var bb=yb(),pf="";function Cb(e,A){var t;pf||(pf=(t=df(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(n){return y0(e[n])}))!=null?t:"");const r=e[pf];return y0(r)?!!r.call(e,A):!1}function b0(e,A,t){let r=e;do{if(Cb(r,A))return!0;if(r===t)return!1;r=r.parentNode}while(r);return!1}function vf(e,A,t,r){if(!e)return;const n={capture:!0,...r},i=t;e.addEventListener?e.addEventListener(A,i,n):e.attachEvent?e.attachEvent("on"+A,i):e["on"+A]=i}function Ri(e,A,t,r){if(!e)return;const n={capture:!0,...r},i=t;e.removeEventListener?e.removeEventListener(A,i,n):e.detachEvent?e.detachEvent("on"+A,i):e["on"+A]=null}function xb(e){let A=e.clientHeight;const t=e.ownerDocument.defaultView.getComputedStyle(e);return A+=$t(t.borderTopWidth),A+=$t(t.borderBottomWidth),A}function Fb(e){let A=e.clientWidth;const t=e.ownerDocument.defaultView.getComputedStyle(e);return A+=$t(t.borderLeftWidth),A+=$t(t.borderRightWidth),A}function Qb(e){let A=e.clientHeight;const t=e.ownerDocument.defaultView.getComputedStyle(e);return A-=$t(t.paddingTop),A-=$t(t.paddingBottom),A}function Ub(e){let A=e.clientWidth;const t=e.ownerDocument.defaultView.getComputedStyle(e);return A-=$t(t.paddingLeft),A-=$t(t.paddingRight),A}function Eb(e,A,t){const n=A===A.ownerDocument.body?{left:0,top:0}:A.getBoundingClientRect(),i=(e.clientX+A.scrollLeft-n.left)/t,a=(e.clientY+A.scrollTop-n.top)/t;return{x:i,y:a}}function Sb(e,A){const t=C0(e,A,"px");return{[w0("transform",bb)]:t}}function Ib(e,A){return C0(e,A,"")}function C0({x:e,y:A},t,r){let n=`translate(${e}${r},${A}${r})`;if(t){const i=`${typeof t.x=="string"?t.x:t.x+r}`,a=`${typeof t.y=="string"?t.y:t.y+r}`;n=`translate(${i}, ${a})`+n}return n}function Lb(e,A){return e.targetTouches&&df(e.targetTouches,t=>A===t.identifier)||e.changedTouches&&df(e.changedTouches,t=>A===t.identifier)}function Nb(e){if(e.targetTouches&&e.targetTouches[0])return e.targetTouches[0].identifier;if(e.changedTouches&&e.changedTouches[0])return e.changedTouches[0].identifier}function Tb(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0}function Ob(e,A){if(!e)return;let t=e.getElementById("react-draggable-style-el");if(!t){t=e.createElement("style"),t.type="text/css",t.id="react-draggable-style-el";const r=A??Tb();r&&t.setAttribute("nonce",r),t.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
|
|
222
|
+
`,t.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
|
|
223
|
+
`,e.getElementsByTagName("head")[0].appendChild(t)}e.body&&Hb(e.body,"react-draggable-transparent-selection")}function x0(e){window.requestAnimationFrame?window.requestAnimationFrame(()=>{F0(e)}):F0(e)}function F0(e){if(e)try{e.body&&_b(e.body,"react-draggable-transparent-selection");const A=e.selection;if(A)A.empty();else{const t=(e.defaultView||window).getSelection();t&&t.type!=="Caret"&&t.removeAllRanges()}}catch{}}function Hb(e,A){e.classList?e.classList.add(A):e.className.match(new RegExp(`(?:^|\\s)${A}(?!\\S)`))||(e.className+=` ${A}`)}function _b(e,A){e.classList?e.classList.remove(A):e.className=e.className.replace(new RegExp(`(?:^|\\s)${A}(?!\\S)`,"g"),"")}function Pb(e,A,t){if(!e.props.bounds)return[A,t];let{bounds:r}=e.props;r=typeof r=="string"?r:Mb(r);const n=wf(e);if(typeof r=="string"){const{ownerDocument:i}=n,a=i.defaultView;if(!a)throw new Error("Cannot resolve the owner window of the draggable node.");let s;if(r==="parent"?s=n.parentNode:s=n.getRootNode().querySelector(r),!(s instanceof a.HTMLElement))throw new Error('Bounds selector "'+r+'" could not find an element.');const o=s,c=a.getComputedStyle(n),u=a.getComputedStyle(o);r={left:-n.offsetLeft+$t(u.paddingLeft)+$t(c.marginLeft),top:-n.offsetTop+$t(u.paddingTop)+$t(c.marginTop),right:Ub(o)-Fb(n)-n.offsetLeft+$t(u.paddingRight)-$t(c.marginRight),bottom:Qb(o)-xb(n)-n.offsetTop+$t(u.paddingBottom)-$t(c.marginBottom)}}return _s(r.right)&&(A=Math.min(A,r.right)),_s(r.bottom)&&(t=Math.min(t,r.bottom)),_s(r.left)&&(A=Math.max(A,r.left)),_s(r.top)&&(t=Math.max(t,r.top)),[A,t]}function Q0(e,A,t){const r=Math.round(A/e[0])*e[0],n=Math.round(t/e[1])*e[1];return[r,n]}function kb(e){return e.props.axis==="both"||e.props.axis==="x"}function Db(e){return e.props.axis==="both"||e.props.axis==="y"}function Bf(e,A,t){const r=typeof A=="number"?Lb(e,A):null;if(typeof A=="number"&&!r)return null;const n=wf(t),i=t.props.offsetParent||n.offsetParent||n.ownerDocument.body;return Eb(r||e,i,t.props.scale)}function mf(e,A,t){const r=!_s(e.lastX),n=wf(e);return r?{node:n,deltaX:0,deltaY:0,lastX:A,lastY:t,x:A,y:t}:{node:n,deltaX:A-e.lastX,deltaY:t-e.lastY,lastX:e.lastX,lastY:e.lastY,x:A,y:t}}function yf(e,A){const t=e.props.scale;return{node:A.node,x:e.state.x+A.deltaX/t,y:e.state.y+A.deltaY/t,deltaX:A.deltaX/t,deltaY:A.deltaY/t,lastX:e.state.x,lastY:e.state.y}}function Mb(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}function wf(e){const A=e.findDOMNode();if(!A)throw new Error("<DraggableCore>: Unmounted during event!");return A}function Rb(...e){}var Xr={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}},ni=Xr.mouse,Qa=class extends Di.Component{constructor(){super(...arguments),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,this.touchIdentifier=null,this.mounted=!1,this.handleDragStart=e=>{if(this.props.onMouseDown(e),!this.props.allowAnyClick&&(typeof e.button=="number"&&e.button!==0||e.ctrlKey))return!1;const A=this.findDOMNode();if(!A||!A.ownerDocument||!A.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:t}=A;if(this.props.disabled||!(e.target instanceof t.defaultView.Node)||this.props.handle&&!b0(e.target,this.props.handle,A)||this.props.cancel&&b0(e.target,this.props.cancel,A))return;e.type==="touchstart"&&!this.props.allowMobileScroll&&e.preventDefault();const r=Nb(e);this.touchIdentifier=r;const n=Bf(e,r,this);if(n==null)return;const{x:i,y:a}=n,s=mf(this,i,a);Rb("calling",this.props.onStart),!(this.props.onStart(e,s)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&Ob(t,this.props.nonce),this.dragging=!0,this.lastX=i,this.lastY=a,vf(t,ni.move,this.handleDrag),vf(t,ni.stop,this.handleDragStop))},this.handleDrag=e=>{const A=Bf(e,this.touchIdentifier,this);if(A==null)return;let{x:t,y:r}=A;if(Array.isArray(this.props.grid)){let a=t-this.lastX,s=r-this.lastY;if([a,s]=Q0(this.props.grid,a,s),!a&&!s)return;t=this.lastX+a,r=this.lastY+s}const n=mf(this,t,r);if(this.props.onDrag(e,n)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const a=document.createEvent("MouseEvents");a.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(a)}return}this.lastX=t,this.lastY=r},this.handleDragStop=e=>{if(!this.dragging)return;const A=Bf(e,this.touchIdentifier,this);if(A==null)return;let{x:t,y:r}=A;if(Array.isArray(this.props.grid)){let s=t-this.lastX||0,o=r-this.lastY||0;[s,o]=Q0(this.props.grid,s,o),t=this.lastX+s,r=this.lastY+o}const n=mf(this,t,r);if(this.props.onStop(e,n)===!1||this.mounted===!1)return!1;const a=this.findDOMNode();a&&this.props.enableUserSelectHack&&x0(a.ownerDocument),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,a&&(Ri(a.ownerDocument,ni.move,this.handleDrag),Ri(a.ownerDocument,ni.stop,this.handleDragStop))},this.onMouseDown=e=>(ni=Xr.mouse,this.handleDragStart(e)),this.onMouseUp=e=>(ni=Xr.mouse,this.handleDragStop(e)),this.onTouchStart=e=>(ni=Xr.touch,this.handleDragStart(e)),this.onTouchEnd=e=>(ni=Xr.touch,this.handleDragStop(e))}componentDidMount(){this.mounted=!0;const e=this.findDOMNode();e&&vf(e,Xr.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const e=this.findDOMNode();if(e){const{ownerDocument:A}=e;Ri(A,Xr.mouse.move,this.handleDrag),Ri(A,Xr.touch.move,this.handleDrag),Ri(A,Xr.mouse.stop,this.handleDragStop),Ri(A,Xr.touch.stop,this.handleDragStop),Ri(e,Xr.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&x0(A)}}findDOMNode(){var e;if((e=this.props)!=null&&e.nodeRef)return this.props.nodeRef.current;const A=e0;return typeof A.findDOMNode=="function"?A.findDOMNode(this):null}render(){return Di.cloneElement(Di.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};Qa.displayName="DraggableCore",Qa.propTypes={allowAnyClick:Be.bool,allowMobileScroll:Be.bool,children:Be.node.isRequired,disabled:Be.bool,enableUserSelectHack:Be.bool,offsetParent:function(e,A){if(e[A]&&e[A].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:Be.arrayOf(Be.number),handle:Be.string,cancel:Be.string,nodeRef:Be.object,nonce:Be.string,onStart:Be.func,onDrag:Be.func,onStop:Be.func,onMouseDown:Be.func,scale:Be.number,className:Fa,style:Fa,transform:Fa},Qa.defaultProps={allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1};var ll=class extends Di.Component{constructor(e){super(e),this.onDragStart=(A,t)=>{if(this.props.onStart(A,yf(this,t))===!1)return!1;this.setState({dragging:!0,dragged:!0})},this.onDrag=(A,t)=>{if(!this.state.dragging)return!1;const r=yf(this,t),n={x:r.x,y:r.y,slackX:0,slackY:0};if(this.props.bounds){const{x:a,y:s}=n;n.x+=this.state.slackX,n.y+=this.state.slackY;const[o,c]=Pb(this,n.x,n.y);n.x=o,n.y=c,n.slackX=this.state.slackX+(a-n.x),n.slackY=this.state.slackY+(s-n.y),r.x=n.x,r.y=n.y,r.deltaX=n.x-this.state.x,r.deltaY=n.y-this.state.y}if(this.props.onDrag(A,r)===!1)return!1;this.setState(n)},this.onDragStop=(A,t)=>{if(!this.state.dragging||this.props.onStop(A,yf(this,t))===!1)return!1;const n={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:a,y:s}=this.props.position;n.x=a,n.y=s}this.setState(n)},this.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,prevPropsPosition:{...e.position},slackX:0,slackY:0,isElementSVG:!1},e.position&&!(e.onDrag||e.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}static getDerivedStateFromProps({position:e},{prevPropsPosition:A}){return e&&(!A||e.x!==A.x||e.y!==A.y)?{x:e.x,y:e.y,prevPropsPosition:{...e}}:null}componentDidMount(){typeof window.SVGElement<"u"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.state.dragging&&this.setState({dragging:!1})}findDOMNode(){var e;if((e=this.props)!=null&&e.nodeRef)return this.props.nodeRef.current;const A=e0;return typeof A.findDOMNode=="function"?A.findDOMNode(this):null}render(){const{axis:e,bounds:A,children:t,defaultPosition:r,defaultClassName:n,defaultClassNameDragging:i,defaultClassNameDragged:a,position:s,positionOffset:o,scale:c,...u}=this.props;let d={},p=null;const m=!!!s||this.state.dragging,B=s||r,C={x:kb(this)&&m?this.state.x:B.x,y:Db(this)&&m?this.state.y:B.y};this.state.isElementSVG?p=Ib(C,o):d=Sb(C,o);const b=Di.Children.only(t),Q=mb(b.props.className||"",n,{[i]:this.state.dragging,[a]:this.state.dragged});return Di.createElement(Qa,{...u,onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop},Di.cloneElement(b,{className:Q,style:{...b.props.style,...d},transform:p}))}};ll.displayName="Draggable",ll.propTypes={...Qa.propTypes,axis:Be.oneOf(["both","x","y","none"]),bounds:Be.oneOfType([Be.shape({left:Be.number,right:Be.number,top:Be.number,bottom:Be.number}),Be.string,Be.oneOf([!1])]),defaultClassName:Be.string,defaultClassNameDragging:Be.string,defaultClassNameDragged:Be.string,defaultPosition:Be.shape({x:Be.number,y:Be.number}),positionOffset:Be.shape({x:Be.oneOfType([Be.number,Be.string]),y:Be.oneOfType([Be.number,Be.string])}),position:Be.shape({x:Be.number,y:Be.number}),className:Fa,style:Fa,transform:Fa},ll.defaultProps={...Qa.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1};var Kb=ll;function On(e,A={},t=[]){if(!e)return"";if(e.type==="label")return e.text||e.label||"";const r=e.fieldKey;let n="";if(r&&A&&A[r]!==void 0&&A[r]!==null)n=String(A[r]);else if(r&&A){const s=r.toLowerCase(),o=Object.keys(A).find(c=>c.toLowerCase()===s);o&&A[o]!==void 0&&A[o]!==null&&(n=String(A[o]))}if(!n&&r&&Array.isArray(t)){const s=t.find(o=>o.key===r);s&&s.defaultValue!==void 0&&s.defaultValue!==null&&(n=String(s.defaultValue))}n||(n=e.defaultValue||e.label||`[${r||"Field"}]`),e.textTransform==="uppercase"?n=n.toUpperCase():e.textTransform==="lowercase"?n=n.toLowerCase():e.textTransform==="capitalize"?n=n.replace(/\b\w/g,s=>s.toUpperCase()):e.textTransform==="togglecase"&&(n=n.split("").map(s=>s===s.toUpperCase()?s.toLowerCase():s.toUpperCase()).join(""));const i=e.prefix||"",a=e.suffix||"";return`${i}${n}${a}`}function bf(e,A={},t={}){if(!e)return"";if(e.url)return e.url;const r=e.fieldKey;return r==="schoolLogo"||r==="orgLogo"||e.subtype==="logo"?A.logoUrl||t.logoUrl||e.defaultUrl||"https://images.unsplash.com/photo-1599305445671-ac291c95aaa9?w=150":r==="signature"||e.subtype==="signature"?A.signatureUrl||t.signatureUrl||e.defaultUrl||"https://dummyimage.com/200x80/ffffff/000000&text=Authorized+Sign":r==="profilePhoto"||r==="profileImage"||e.subtype==="photo"?A.profileImage||A.photoUrl||A[r]||t.defaultAvatarUrl||e.defaultUrl||"https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=300":r&&A&&A[r]?A[r]:e.defaultUrl||"https://dummyimage.com/150x150/e5e7eb/64748b&text=Photo"}function U0(e="ID"){let A=0;const t=String(e||"ID");for(let n=0;n<t.length;n++)A=(A<<5)-A+t.charCodeAt(n),A|=0;const r=[re.createElement("rect",{key:"bg",width:"25",height:"25",fill:"#ffffff"}),re.createElement("rect",{key:"tl1",x:"0",y:"0",width:"7",height:"7",fill:"#0f172a"}),re.createElement("rect",{key:"tl2",x:"1",y:"1",width:"5",height:"5",fill:"#ffffff"}),re.createElement("rect",{key:"tl3",x:"2",y:"2",width:"3",height:"3",fill:"#0f172a"}),re.createElement("rect",{key:"tr1",x:"18",y:"0",width:"7",height:"7",fill:"#0f172a"}),re.createElement("rect",{key:"tr2",x:"19",y:"1",width:"5",height:"5",fill:"#ffffff"}),re.createElement("rect",{key:"tr3",x:"20",y:"2",width:"3",height:"3",fill:"#0f172a"}),re.createElement("rect",{key:"bl1",x:"0",y:"18",width:"7",height:"7",fill:"#0f172a"}),re.createElement("rect",{key:"bl2",x:"1",y:"19",width:"5",height:"5",fill:"#ffffff"}),re.createElement("rect",{key:"bl3",x:"2",y:"20",width:"3",height:"3",fill:"#0f172a"})];for(let n=0;n<25;n++)for(let i=0;i<25;i++){if(n<7&&i<7||n<7&&i>=18||n>=18&&i<7)continue;((A^n*31+i*17+(n^i))&3)!==0&&r.push(re.createElement("rect",{key:`${n}-${i}`,x:String(i),y:String(n),width:"1",height:"1",fill:"#0f172a"}))}return re.createElement("svg",{viewBox:"0 0 25 25",style:{width:"100%",height:"100%",display:"block"}},...r)}function Vb(e="ID"){let A=0;const t=String(e||"ID");for(let a=0;a<t.length;a++)A=(A<<5)-A+t.charCodeAt(a),A|=0;const r="http://www.w3.org/2000/svg",n=document.createElementNS(r,"svg");n.setAttribute("viewBox","0 0 25 25"),n.style.width="100%",n.style.height="100%",n.style.display="block";const i=(a,s,o,c,u)=>{const d=document.createElementNS(r,"rect");return d.setAttribute("x",a),d.setAttribute("y",s),d.setAttribute("width",o),d.setAttribute("height",c),d.setAttribute("fill",u),d};n.appendChild(i(0,0,25,25,"#ffffff")),n.appendChild(i(0,0,7,7,"#0f172a")),n.appendChild(i(1,1,5,5,"#ffffff")),n.appendChild(i(2,2,3,3,"#0f172a")),n.appendChild(i(18,0,7,7,"#0f172a")),n.appendChild(i(19,1,5,5,"#ffffff")),n.appendChild(i(20,2,3,3,"#0f172a")),n.appendChild(i(0,18,7,7,"#0f172a")),n.appendChild(i(1,19,5,5,"#ffffff")),n.appendChild(i(2,20,3,3,"#0f172a"));for(let a=0;a<25;a++)for(let s=0;s<25;s++){if(a<7&&s<7||a<7&&s>=18||a>=18&&s<7)continue;((A^a*31+s*17+(a^s))&3)!==0&&n.appendChild(i(s,a,1,1,"#0f172a"))}return n}function E0({templateSchema:e,selectedId:A,onSelectElement:t,onUpdateElement:r,zoom:n=1.25,gridSnap:i=1,sampleRecord:a={},orgAssets:s={},fieldDefinitions:o=[]}){var b,Q,L,D;const c=re.useRef(null);if(!e)return y.jsx("div",{className:"ricd-canvas-wrapper",children:y.jsx("div",{style:{color:"#94a3b8"},children:"No template selected. Choose a preset from the sidebar."})});const u=e.width||(e.orientation==="vertical"?54:86),d=e.height||(e.orientation==="vertical"?86:54),p=4*n,h=(O,z)=>{let R=Math.round(z.x/p*10)/10,_=Math.round(z.y/p*10)/10;i>0&&(R=Math.round(R/i)*i,_=Math.round(_/i)*i),R=Math.max(0,Math.min(R,u-(O.width||5))),_=Math.max(0,Math.min(_,d-(O.height||5))),r(O.id,{x:R,y:_})},B=[...e.elements||[]].sort((O,z)=>(O.zIndex||1)-(z.zIndex||1)),C={width:`${u*p}px`,height:`${d*p}px`,backgroundColor:((b=e.background)==null?void 0:b.color)||"#ffffff",backgroundImage:(Q=e.background)!=null&&Q.image?`url(${e.background.image})`:"none",backgroundSize:((L=e.background)==null?void 0:L.size)||"cover",backgroundPosition:"center",backgroundRepeat:((D=e.background)==null?void 0:D.size)==="repeat"?"repeat":"no-repeat",borderRadius:`${2*p}px`,border:"1px solid #94a3b8"};return y.jsx("div",{className:"ricd-canvas-wrapper",onClick:()=>t(null),children:y.jsxs("div",{ref:c,className:"ricd-canvas-container",style:C,onClick:O=>O.stopPropagation(),children:[i>0&&y.jsx("div",{className:"ricd-canvas-grid-overlay",style:{backgroundSize:`${i*p}px ${i*p}px`}}),B.map(O=>y.jsx(jb,{el:O,isSelected:A===O.id,zoom:n,gridSnap:i,MM_TO_PX:p,onSelectElement:t,handleDragStop:h,sampleRecord:a,orgAssets:s,fieldDefinitions:o},O.id))]})})}function jb({el:e,isSelected:A,zoom:t,gridSnap:r,MM_TO_PX:n,onSelectElement:i,handleDragStop:a,sampleRecord:s,orgAssets:o,fieldDefinitions:c}){const u=re.useRef(null),d={x:(e.x||0)*n,y:(e.y||0)*n},p=r>0?[r*n,r*n]:[1,1];return y.jsx(Kb,{nodeRef:u,position:d,grid:p,bounds:"parent",onStart:()=>i(e.id),onStop:(h,m)=>a(e,m),children:y.jsxs("div",{ref:u,className:`ricd-canvas-element ${A?"selected":""}`,style:{width:`${(e.width||0)*n}px`,height:`${(e.height||0)*n}px`,zIndex:e.zIndex||1,backgroundColor:e.type==="shape"?e.backgroundColor||"transparent":e.type==="barcode"||e.type==="qrcode"?e.backgroundColor||"#ffffff":"transparent",backgroundImage:e.backgroundImage?`url(${e.backgroundImage})`:"none",backgroundSize:e.backgroundSize||"cover",backgroundPosition:"center",backgroundRepeat:e.backgroundSize==="repeat"?"repeat":"no-repeat",borderColor:e.borderColor||"transparent",borderWidth:`${(e.borderWidth||0)*t}px`,borderStyle:e.borderWidth?"solid":"none",borderRadius:`${(e.borderRadius||0)*t}px`,color:e.color||"#111111",fontSize:`${(e.fontSize||9)*t*1.3}px`,fontWeight:e.fontWeight||"normal",fontFamily:e.fontFamily||"Arial, sans-serif",textAlign:e.textAlign||"left",justifyContent:e.textAlign==="center"?"center":e.textAlign==="right"?"flex-end":"flex-start",padding:e.type==="field"||e.type==="label"?`${.5*n}px ${1*n}px`:"0px",borderBottom:e.borderWidthBottom?`${e.borderWidthBottom*t}px solid ${e.borderColor||"#e5e7eb"}`:e.borderWidth?`${e.borderWidth*t}px solid ${e.borderColor}`:"none"},onClick:h=>{h.stopPropagation(),i(e.id)},children:[e.type==="image"&&y.jsx("img",{src:bf(e,s,o),alt:e.label||e.fieldKey||"image slot",style:{width:"100%",height:"100%",objectFit:"cover",display:"block"},crossOrigin:"anonymous"}),(e.type==="field"||e.type==="label")&&y.jsx("div",{style:{width:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:On(e,s,c)}),e.type==="barcode"&&y.jsxs("div",{style:{width:"100%",textAlign:"center",fontSize:`${6*t*1.3}px`,letterSpacing:"1px"},children:["[BARCODE: ",On({...e,type:"field"},s,c)||"ID","]"]}),e.type==="qrcode"&&y.jsx("div",{style:{width:"100%",height:"100%",padding:"2px",backgroundColor:"#ffffff",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden"},children:U0(On({...e,type:"field"},s,c)||"ID")})]})},e.id)}function S0({selectedElement:e,onUpdateProperty:A,onDeleteElement:t,fieldDefinitions:r=[],sampleData:n=[],theme:i="enterprise",onSaveTemplate:a=()=>{},onCancel:s=()=>{},templateSchema:o=null,onUpdateBackground:c=()=>{},onSelectElement:u=()=>{}}){var B,C,b,Q,L,D;const d=i==="enterprise",p=re.useMemo(()=>{const O=new Map;if(r.forEach(z=>O.set(z.key,z)),n&&n.length>0){const z=n[0]||{};Object.keys(z).forEach(R=>{if(!O.has(R)&&typeof z[R]!="object"){const _=R.replace(/([A-Z])/g," $1").replace(/_/g," ").replace(/^./,X=>X.toUpperCase()).trim();O.set(R,{key:R,label:_})}})}return Array.from(O.values())},[r,n]),h=(O,z)=>{let R=z;["x","y","width","height","fontSize","borderWidth","borderWidthBottom","borderRadius","zIndex"].includes(O)&&(R=z===""?0:Number(z)),A(e==null?void 0:e.id,O,R)},m=()=>{if(!e)return y.jsx(Hs,{size:16});switch(e.type){case"field":case"label":return y.jsx(ob,{size:16});case"shape":return y.jsx(Ca,{size:16});case"image":return y.jsx(ff,{size:16});case"barcode":return y.jsx(i0,{size:16});case"qrcode":return y.jsx(c0,{size:16});default:return y.jsx(Hs,{size:16})}};return y.jsxs("div",{className:"ricd-sidebar-right",style:{display:"flex",flexDirection:"column"},children:[y.jsxs("div",{className:"ricd-sidebar-section",style:{paddingBottom:"0.85rem",display:"flex",alignItems:"center",justifySelf:"space-between"},children:[y.jsx("div",{className:"ricd-section-title",style:{margin:0},children:e?d?"4. ELEMENT PROPERTIES":"Element Properties":d?"4. CARD CANVAS BACKGROUND":"Card Canvas Background"}),e&&y.jsxs("button",{type:"button",onClick:()=>u(null),className:"ricd-btn ricd-btn-secondary",style:{padding:"0.2rem 0.5rem",fontSize:"0.74rem",display:"flex",alignItems:"center",gap:"0.3rem"},title:"Edit Card Page Background Color & Image",children:[y.jsx(Mi,{size:12}),y.jsx("span",{children:"Card Background"})]})]}),e?y.jsxs(y.Fragment,{children:[y.jsx("div",{className:"ricd-sidebar-section",style:{paddingTop:"0.75rem",paddingBottom:"0.75rem"},children:y.jsxs("div",{className:d?"ricd-ent-selected-badge":"",style:d?void 0:{display:"flex",alignItems:"center",justifySelf:"space-between",background:"rgba(59,130,246,0.15)",padding:"0.5rem 0.75rem",borderRadius:"6px"},children:[y.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"0.5rem"},children:[m(),y.jsx("span",{children:e.label||e.id})]}),y.jsxs("button",{type:"button",className:"ricd-btn ricd-btn-danger",style:{padding:"0.25rem 0.6rem",fontSize:"0.78rem"},onClick:()=>t(e.id),children:[y.jsx(sb,{size:13}),y.jsx("span",{children:"Delete"})]})]})}),(e.type==="image"||e.subtype==="signature"||e.fieldKey==="signature"||(e.label||"").toLowerCase().includes("sign")||(e.text||"").toLowerCase().includes("sign"))&&y.jsxs("div",{className:"ricd-sidebar-section",style:{backgroundColor:d?"rgba(13, 110, 253, 0.05)":"rgba(59, 130, 246, 0.08)",borderRadius:"8px",padding:"0.85rem",border:d?"1px solid rgba(13, 110, 253, 0.2)":"1px solid rgba(59, 130, 246, 0.2)",marginBottom:"0.85rem"},children:[y.jsxs("div",{className:"ricd-section-title",style:{display:"flex",alignItems:"center",gap:"0.4rem",color:d?"#0d6efd":"#60a5fa",marginBottom:"0.65rem"},children:[y.jsx(Mi,{size:14}),y.jsx("span",{children:"Signature & Image Upload"})]}),e.type!=="image"&&y.jsxs("div",{style:{fontSize:"0.75rem",color:d?"#495057":"#cbd5e1",marginBottom:"0.6rem",lineHeight:"1.4"},children:["Currently a ",y.jsxs("strong",{children:["Text Line (",e.text||"Label",")"]}),". Upload an image file below to instantly convert this box into an uploaded handwritten signature PNG/JPG."]}),y.jsx("div",{style:{marginBottom:"0.65rem"},children:y.jsxs("label",{className:"ricd-btn ricd-btn-primary",style:{display:"flex",alignItems:"center",justifyContent:"center",gap:"0.45rem",width:"100%",cursor:"pointer",padding:"0.55rem",fontSize:"0.82rem",borderRadius:"6px"},children:[y.jsx(Mi,{size:14}),y.jsx("span",{children:e.url?"Replace Uploaded Signature...":"Upload Signature / Image File..."}),y.jsx("input",{type:"file",accept:"image/*",style:{display:"none"},onChange:O=>{var _;const z=(_=O.target.files)==null?void 0:_[0];if(!z)return;const R=new FileReader;R.onload=X=>{const nA=X.target.result;e.type!=="image"?A(e.id,{type:"image",subtype:"signature",fieldKey:"signature",url:nA,width:e.width||24,height:e.height||10}):A(e.id,"url",nA)},R.readAsDataURL(z)}})]})}),e.url&&y.jsxs("div",{style:{background:d?"#ffffff":"rgba(0,0,0,0.25)",padding:"0.5rem",borderRadius:"6px",border:"1px dashed rgba(148, 163, 184, 0.4)",marginBottom:"0.6rem"},children:[y.jsxs("div",{style:{fontSize:"0.72rem",color:d?"#6c757d":"#94a3b8",marginBottom:"0.35rem",display:"flex",justifyContent:"space-between",alignItems:"center"},children:[y.jsx("span",{children:"Uploaded Preview:"}),y.jsx("button",{type:"button",style:{background:"none",border:"none",color:"#ef4444",fontSize:"0.72rem",cursor:"pointer",padding:0},onClick:()=>{A(e.id,"url","")},children:"Clear Image"})]}),y.jsx("div",{style:{height:"48px",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden"},children:y.jsx("img",{src:e.url,alt:"Uploaded Signature",style:{maxHeight:"100%",maxWidth:"100%",objectFit:"contain"}})})]}),y.jsxs("div",{className:"ricd-form-group",style:{marginBottom:0},children:[y.jsx("label",{className:"ricd-form-label",style:{fontSize:"0.72rem"},children:"Or Direct Image URL / Base64"}),y.jsx("input",{type:"text",className:"ricd-form-input",style:{fontSize:"0.76rem",fontFamily:"monospace"},placeholder:"https://... or data:image/png;base64,...",value:e.url||"",onChange:O=>{const z=O.target.value;e.type!=="image"&&z?A(e.id,{type:"image",subtype:"signature",fieldKey:"signature",url:z,width:e.width||24,height:e.height||10}):A(e.id,"url",z)}})]}),e.type==="image"&&(e.subtype==="signature"||e.fieldKey==="signature"||(e.label||"").toLowerCase().includes("sign"))&&y.jsx("div",{style:{marginTop:"0.65rem",paddingTop:"0.6rem",borderTop:"1px solid rgba(148, 163, 184, 0.2)"},children:y.jsx("button",{type:"button",className:"ricd-btn ricd-btn-secondary",style:{width:"100%",fontSize:"0.76rem",padding:"0.4rem"},onClick:()=>{A(e.id,{type:"label",subtype:void 0,fieldKey:void 0,url:void 0,text:"Principal Sign.",fontSize:7,fontWeight:"bold",textAlign:"right",width:e.width||20,borderWidthBottom:.5,borderColor:"#000000"})},children:"Switch to Text Signature Line"})})]}),y.jsxs("div",{className:"ricd-sidebar-section",children:[y.jsx("div",{className:"ricd-section-title",children:"Position & Size (mm)"}),y.jsxs("div",{className:"ricd-grid-2",style:{marginBottom:"0.6rem"},children:[y.jsxs("div",{className:"ricd-form-group",style:{marginBottom:0},children:[y.jsx("label",{className:"ricd-form-label",children:"Left (X)"}),y.jsx("input",{type:"number",step:"0.5",className:"ricd-form-input",value:e.x??0,onChange:O=>h("x",O.target.value)})]}),y.jsxs("div",{className:"ricd-form-group",style:{marginBottom:0},children:[y.jsx("label",{className:"ricd-form-label",children:"Top (Y)"}),y.jsx("input",{type:"number",step:"0.5",className:"ricd-form-input",value:e.y??0,onChange:O=>h("y",O.target.value)})]})]}),y.jsxs("div",{className:"ricd-grid-2",children:[y.jsxs("div",{className:"ricd-form-group",style:{marginBottom:0},children:[y.jsx("label",{className:"ricd-form-label",children:"Width"}),y.jsx("input",{type:"number",step:"0.5",className:"ricd-form-input",value:e.width??10,onChange:O=>h("width",O.target.value)})]}),y.jsxs("div",{className:"ricd-form-group",style:{marginBottom:0},children:[y.jsx("label",{className:"ricd-form-label",children:"Height"}),y.jsx("input",{type:"number",step:"0.5",className:"ricd-form-input",value:e.height??10,onChange:O=>h("height",O.target.value)})]})]})]}),y.jsxs("div",{className:"ricd-sidebar-section",children:[y.jsx("div",{className:"ricd-section-title",children:"Background Color & Fill Image"}),y.jsxs("div",{className:"ricd-color-input-wrapper",style:{marginBottom:"0.75rem"},children:[y.jsx("input",{type:"color",className:"ricd-color-picker",value:e.backgroundColor||"#000000",onChange:O=>h("backgroundColor",O.target.value)}),y.jsx("input",{type:"text",className:"ricd-form-input",style:{border:"none",padding:"0.2rem",fontFamily:"monospace",fontSize:"0.82rem"},value:e.backgroundColor||"#000000",onChange:O=>h("backgroundColor",O.target.value)})]}),y.jsxs("div",{style:{background:d?"rgba(13,110,253,0.04)":"rgba(59,130,246,0.06)",padding:"0.65rem",borderRadius:"6px",border:d?"1px solid rgba(13,110,253,0.15)":"1px solid rgba(59,130,246,0.15)"},children:[y.jsxs("div",{style:{fontSize:"0.74rem",fontWeight:600,color:d?"#0d6efd":"#60a5fa",marginBottom:"0.45rem",display:"flex",alignItems:"center",gap:"0.35rem"},children:[y.jsx(Mi,{size:13}),y.jsx("span",{children:"Element Background Image"})]}),y.jsxs("label",{className:"ricd-btn ricd-btn-secondary",style:{display:"flex",alignItems:"center",justifySelf:"center",gap:"0.4rem",width:"100%",cursor:"pointer",padding:"0.45rem",fontSize:"0.76rem",borderRadius:"6px",marginBottom:"0.5rem"},children:[y.jsx(Mi,{size:13}),y.jsx("span",{children:e.backgroundImage?"Replace Element Background...":"Upload Element Background..."}),y.jsx("input",{type:"file",accept:"image/*",style:{display:"none"},onChange:O=>{var _;const z=(_=O.target.files)==null?void 0:_[0];if(!z)return;const R=new FileReader;R.onload=X=>{A(e.id,"backgroundImage",X.target.result)},R.readAsDataURL(z)}})]}),e.backgroundImage&&y.jsxs("div",{style:{display:"flex",justifySelf:"space-between",alignItems:"center",marginBottom:"0.45rem"},children:[y.jsx("span",{style:{fontSize:"0.72rem",color:"#10b981"},children:"✓ Image loaded"}),y.jsx("button",{type:"button",style:{background:"none",border:"none",color:"#ef4444",fontSize:"0.72rem",cursor:"pointer",padding:0},onClick:()=>A(e.id,"backgroundImage",""),children:"Remove Image"})]}),y.jsx("input",{type:"text",className:"ricd-form-input",style:{fontSize:"0.72rem",fontFamily:"monospace",marginBottom:e.backgroundImage?"0.45rem":0},placeholder:"Or direct image URL...",value:e.backgroundImage||"",onChange:O=>A(e.id,"backgroundImage",O.target.value)}),e.backgroundImage&&y.jsxs("select",{className:"ricd-form-select",style:{fontSize:"0.74rem"},value:e.backgroundSize||"cover",onChange:O=>A(e.id,"backgroundSize",O.target.value),children:[y.jsx("option",{value:"cover",children:"Cover (Fill Box)"}),y.jsx("option",{value:"contain",children:"Contain (Fit Box)"}),y.jsx("option",{value:"100% 100%",children:"Stretch Exactly"}),y.jsx("option",{value:"repeat",children:"Repeat / Tile"})]})]})]}),y.jsxs("div",{className:"ricd-sidebar-section",children:[y.jsx("div",{className:"ricd-section-title",children:"Border & Divider Styling"}),y.jsxs("div",{className:"ricd-grid-4",children:[y.jsxs("div",{className:"ricd-form-group",style:{marginBottom:0},children:[y.jsx("label",{className:"ricd-form-label",style:{fontSize:"0.68rem"},children:"Box Border"}),y.jsx("input",{type:"number",step:"0.5",className:"ricd-form-input",value:e.borderWidth??0,onChange:O=>h("borderWidth",O.target.value)})]}),y.jsxs("div",{className:"ricd-form-group",style:{marginBottom:0},children:[y.jsx("label",{className:"ricd-form-label",style:{fontSize:"0.68rem"},children:"Bottom Line"}),y.jsx("input",{type:"number",step:"0.5",className:"ricd-form-input",value:e.borderWidthBottom??0,onChange:O=>h("borderWidthBottom",O.target.value)})]}),y.jsxs("div",{className:"ricd-form-group",style:{marginBottom:0},children:[y.jsx("label",{className:"ricd-form-label",style:{fontSize:"0.68rem"},children:"Radius"}),y.jsx("input",{type:"number",className:"ricd-form-input",value:e.borderRadius??0,onChange:O=>h("borderRadius",O.target.value)})]}),y.jsxs("div",{className:"ricd-form-group",style:{marginBottom:0},children:[y.jsx("label",{className:"ricd-form-label",style:{fontSize:"0.68rem"},children:"Color"}),y.jsx("div",{className:"ricd-color-input-wrapper",style:{padding:"0.35rem"},children:y.jsx("input",{type:"color",className:"ricd-color-picker",style:{width:"18px",height:"18px"},value:e.borderColor||"#000000",onChange:O=>h("borderColor",O.target.value)})})]})]})]}),(e.type==="field"||e.type==="label")&&y.jsxs("div",{className:"ricd-sidebar-section",children:[y.jsx("div",{className:"ricd-section-title",children:"Typography & Content"}),e.type==="label"?y.jsxs("div",{className:"ricd-form-group",children:[y.jsx("label",{className:"ricd-form-label",children:"Static Text Content"}),y.jsx("input",{type:"text",className:"ricd-form-input",value:e.text||"",onChange:O=>h("text",O.target.value)})]}):y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:"ricd-form-group",children:[y.jsx("label",{className:"ricd-form-label",children:"Data Field Key"}),y.jsxs("select",{className:"ricd-form-select",value:e.fieldKey||"",onChange:O=>h("fieldKey",O.target.value),children:[p.map(O=>y.jsxs("option",{value:O.key,children:[O.label," (",O.key,")"]},O.key)),y.jsx("option",{value:"studentName",children:"Student Name (studentName)"}),y.jsx("option",{value:"classSec",children:"Class & Section (classSec)"}),y.jsx("option",{value:"fatherName",children:"Father Name (fatherName)"}),y.jsx("option",{value:"dob",children:"Date of Birth (dob)"}),y.jsx("option",{value:"phone",children:"Contact Phone (phone)"}),y.jsx("option",{value:"address",children:"Student Address (address)"}),y.jsx("option",{value:"empCode",children:"Reg / ID No (empCode)"}),y.jsx("option",{value:"bloodGroup",children:"Blood Group (bloodGroup)"})]})]}),y.jsxs("div",{className:"ricd-grid-2",children:[y.jsxs("div",{className:"ricd-form-group",children:[y.jsx("label",{className:"ricd-form-label",children:"Prefix Text"}),y.jsx("input",{type:"text",className:"ricd-form-input",placeholder:"e.g. Class : ",value:e.prefix||"",onChange:O=>h("prefix",O.target.value)})]}),y.jsxs("div",{className:"ricd-form-group",children:[y.jsx("label",{className:"ricd-form-label",children:"Suffix Text"}),y.jsx("input",{type:"text",className:"ricd-form-input",value:e.suffix||"",onChange:O=>h("suffix",O.target.value)})]})]})]}),y.jsxs("div",{className:"ricd-grid-2",children:[y.jsxs("div",{className:"ricd-form-group",children:[y.jsx("label",{className:"ricd-form-label",children:"Font Family"}),y.jsxs("select",{className:"ricd-form-select",value:e.fontFamily||"Arial, sans-serif",onChange:O=>h("fontFamily",O.target.value),children:[y.jsx("option",{value:"Arial, sans-serif",children:"Arial"}),y.jsx("option",{value:"Inter, sans-serif",children:"Inter"}),y.jsx("option",{value:"Roboto, sans-serif",children:"Roboto"}),y.jsx("option",{value:"Outfit, sans-serif",children:"Outfit"}),y.jsx("option",{value:"'Courier New', monospace",children:"Courier New"})]})]}),y.jsxs("div",{className:"ricd-form-group",children:[y.jsx("label",{className:"ricd-form-label",children:"Font Size (pt)"}),y.jsx("input",{type:"number",step:"0.5",className:"ricd-form-input",value:e.fontSize??9,onChange:O=>h("fontSize",O.target.value)})]})]}),y.jsxs("div",{className:"ricd-grid-2",children:[y.jsxs("div",{className:"ricd-form-group",style:{marginBottom:0},children:[y.jsx("label",{className:"ricd-form-label",children:"Font Weight"}),y.jsxs("select",{className:"ricd-form-select",value:e.fontWeight||"normal",onChange:O=>h("fontWeight",O.target.value),children:[y.jsx("option",{value:"normal",children:"Normal (400)"}),y.jsx("option",{value:"bold",children:"Bold (700)"})]})]}),y.jsxs("div",{className:"ricd-form-group",style:{marginBottom:0},children:[y.jsx("label",{className:"ricd-form-label",children:"Text Color"}),y.jsxs("div",{className:"ricd-color-input-wrapper",children:[y.jsx("input",{type:"color",className:"ricd-color-picker",value:e.color||"#111111",onChange:O=>h("color",O.target.value)}),y.jsx("span",{style:{fontSize:"0.75rem",fontFamily:"monospace"},children:e.color||"#111111"})]})]})]}),y.jsxs("div",{className:"ricd-form-group",style:{marginTop:"0.65rem",marginBottom:0},children:[y.jsx("label",{className:"ricd-form-label",children:"Text Casing (Transform)"}),y.jsxs("select",{className:"ricd-form-select",value:e.textTransform||"none",onChange:O=>h("textTransform",O.target.value),children:[y.jsx("option",{value:"none",children:"Normal / As Entered"}),y.jsx("option",{value:"uppercase",children:"UPPERCASE (e.g. JOHN DOE)"}),y.jsx("option",{value:"lowercase",children:"lowercase (e.g. john doe)"}),y.jsx("option",{value:"capitalize",children:"Capitalize Words (e.g. John Doe)"}),y.jsx("option",{value:"togglecase",children:"tOGGLE cASE (Invert Case)"})]})]}),y.jsxs("div",{className:"ricd-form-group",style:{marginTop:"0.65rem",marginBottom:0},children:[y.jsx("label",{className:"ricd-form-label",children:"Text Alignment"}),y.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr 1fr",gap:"0.35rem"},children:[y.jsxs("button",{type:"button",className:`ricd-btn ${!e.textAlign||e.textAlign==="left"?"ricd-btn-primary":"ricd-btn-secondary"}`,style:{padding:"0.4rem",fontSize:"0.78rem",display:"flex",alignItems:"center",justifyContent:"center",gap:"0.3rem"},onClick:()=>h("textAlign","left"),title:"Align Left",children:[y.jsx(Kw,{size:14}),y.jsx("span",{children:"Left"})]}),y.jsxs("button",{type:"button",className:`ricd-btn ${e.textAlign==="center"?"ricd-btn-primary":"ricd-btn-secondary"}`,style:{padding:"0.4rem",fontSize:"0.78rem",display:"flex",alignItems:"center",justifyContent:"center",gap:"0.3rem"},onClick:()=>h("textAlign","center"),title:"Align Center",children:[y.jsx(Rw,{size:14}),y.jsx("span",{children:"Center"})]}),y.jsxs("button",{type:"button",className:`ricd-btn ${e.textAlign==="right"?"ricd-btn-primary":"ricd-btn-secondary"}`,style:{padding:"0.4rem",fontSize:"0.78rem",display:"flex",alignItems:"center",justifyContent:"center",gap:"0.3rem"},onClick:()=>h("textAlign","right"),title:"Align Right",children:[y.jsx(Vw,{size:14}),y.jsx("span",{children:"Right"})]})]})]})]}),(e.type==="barcode"||e.type==="qrcode")&&y.jsxs("div",{className:"ricd-sidebar-section",children:[y.jsx("div",{className:"ricd-section-title",children:"Data Encoding Source"}),y.jsxs("div",{className:"ricd-form-group",children:[y.jsx("label",{className:"ricd-form-label",children:"Encode Field Value"}),y.jsxs("select",{className:"ricd-form-select",value:e.fieldKey||"empCode",onChange:O=>h("fieldKey",O.target.value),children:[y.jsx("option",{value:"empCode",children:"Reg / ID No (empCode)"}),y.jsx("option",{value:"phone",children:"Contact Phone (phone)"}),y.jsx("option",{value:"studentName",children:"Student Name (studentName)"}),y.jsx("option",{value:"classSec",children:"Class & Section (classSec)"}),r.map(O=>y.jsxs("option",{value:O.key,children:[O.label," (",O.key,")"]},O.key))]})]})]}),y.jsxs("div",{className:"ricd-sidebar-section",children:[y.jsx("div",{className:"ricd-section-title",children:"Layer Priority (Z-Index)"}),y.jsx("input",{type:"number",className:"ricd-form-input",value:e.zIndex??1,onChange:O=>h("zIndex",O.target.value)})]})]}):y.jsxs("div",{className:"ricd-sidebar-section",style:{flex:1,overflowY:"auto"},children:[y.jsxs("div",{style:{backgroundColor:d?"rgba(13, 110, 253, 0.05)":"rgba(59, 130, 246, 0.08)",borderRadius:"8px",padding:"0.85rem",border:d?"1px solid rgba(13, 110, 253, 0.2)":"1px solid rgba(59, 130, 246, 0.2)",marginBottom:"1.15rem"},children:[y.jsxs("div",{className:"ricd-section-title",style:{display:"flex",alignItems:"center",gap:"0.4rem",color:d?"#0d6efd":"#60a5fa",marginBottom:"0.5rem"},children:[y.jsx(Mi,{size:14}),y.jsx("span",{children:"Card Background Image Upload"})]}),y.jsx("p",{style:{fontSize:"0.78rem",color:d?"#495057":"#cbd5e1",marginBottom:"0.75rem",lineHeight:"1.4"},children:"Upload your organization's custom pre-printed PVC card background graphic, watermark, or gradient texture (`PNG`, `JPG`, `WebP`)."}),y.jsx("div",{style:{marginBottom:"0.75rem"},children:y.jsxs("label",{className:"ricd-btn ricd-btn-primary",style:{display:"flex",alignItems:"center",justifySelf:"center",gap:"0.45rem",width:"100%",cursor:"pointer",padding:"0.6rem",fontSize:"0.82rem",borderRadius:"6px"},children:[y.jsx(Mi,{size:14}),y.jsx("span",{children:(B=o==null?void 0:o.background)!=null&&B.image?"Replace Card Background Image...":"Upload Card Background Image..."}),y.jsx("input",{type:"file",accept:"image/*",style:{display:"none"},onChange:O=>{var _;const z=(_=O.target.files)==null?void 0:_[0];if(!z)return;const R=new FileReader;R.onload=X=>{const nA=X.target.result;c("image",nA)},R.readAsDataURL(z)}})]})}),((C=o==null?void 0:o.background)==null?void 0:C.image)&&y.jsxs("div",{style:{background:d?"#ffffff":"rgba(0,0,0,0.25)",padding:"0.5rem",borderRadius:"6px",border:"1px dashed rgba(148, 163, 184, 0.4)",marginBottom:"0.75rem"},children:[y.jsxs("div",{style:{fontSize:"0.72rem",color:d?"#6c757d":"#94a3b8",marginBottom:"0.35rem",display:"flex",justifySelf:"space-between",alignItems:"center"},children:[y.jsx("span",{children:"Active Background Preview:"}),y.jsx("button",{type:"button",style:{background:"none",border:"none",color:"#ef4444",fontSize:"0.74rem",cursor:"pointer",padding:0,fontWeight:600},onClick:()=>c("image",""),children:"Clear Background Image"})]}),y.jsx("div",{style:{height:"70px",display:"flex",alignItems:"center",justifySelf:"center",overflow:"hidden",borderRadius:"4px",background:"#e2e8f0"},children:y.jsx("img",{src:o.background.image,alt:"Card Background Preview",style:{maxHeight:"100%",maxWidth:"100%",objectFit:"contain"}})})]}),y.jsxs("div",{className:"ricd-form-group",style:{marginBottom:"0.75rem"},children:[y.jsx("label",{className:"ricd-form-label",style:{fontSize:"0.72rem"},children:"Or Direct Image URL / Base64"}),y.jsx("input",{type:"text",className:"ricd-form-input",style:{fontSize:"0.76rem",fontFamily:"monospace"},placeholder:"https://... or data:image/png;base64,...",value:((b=o==null?void 0:o.background)==null?void 0:b.image)||"",onChange:O=>c("image",O.target.value)})]}),y.jsxs("div",{className:"ricd-form-group",style:{marginBottom:0},children:[y.jsx("label",{className:"ricd-form-label",style:{fontSize:"0.72rem"},children:"Background Image Sizing & Fit"}),y.jsxs("select",{className:"ricd-form-select",style:{fontSize:"0.78rem"},value:((Q=o==null?void 0:o.background)==null?void 0:Q.size)||"cover",onChange:O=>c("size",O.target.value),children:[y.jsx("option",{value:"cover",children:"Cover (Fill Entire Card Area)"}),y.jsx("option",{value:"contain",children:"Contain (Fit Entire Image inside Card)"}),y.jsx("option",{value:"100% 100%",children:"Stretch Exactly (100% Width × 100% Height)"}),y.jsx("option",{value:"repeat",children:"Tile / Repeat Pattern"})]})]})]}),y.jsxs("div",{className:"ricd-form-group",style:{marginBottom:"1.25rem"},children:[y.jsx("label",{className:"ricd-form-label",style:{fontWeight:700},children:"Card Canvas Base Color"}),y.jsx("p",{style:{fontSize:"0.75rem",color:d?"#6c757d":"#94a3b8",margin:"0 0 0.5rem 0"},children:"Shows beneath transparent regions of uploaded background images or as solid card fill."}),y.jsxs("div",{className:"ricd-color-input-wrapper",style:{marginBottom:"0.6rem"},children:[y.jsx("input",{type:"color",className:"ricd-color-picker",value:((L=o==null?void 0:o.background)==null?void 0:L.color)||"#ffffff",onChange:O=>c("color",O.target.value)}),y.jsx("input",{type:"text",className:"ricd-form-input",style:{border:"none",padding:"0.2rem",fontFamily:"monospace",fontSize:"0.82rem"},value:((D=o==null?void 0:o.background)==null?void 0:D.color)||"#ffffff",onChange:O=>c("color",O.target.value)})]}),y.jsx("div",{style:{display:"flex",gap:"0.4rem",flexWrap:"wrap"},children:["#ffffff","#f8fafc","#f1f5f9","#0f172a","#1e293b","#0284c7","#059669","#800020"].map(O=>y.jsx("button",{type:"button",onClick:()=>c("color",O),style:{width:"24px",height:"24px",borderRadius:"4px",backgroundColor:O,border:O==="#ffffff"||O==="#f8fafc"?"1px solid #cbd5e1":"1px solid transparent",cursor:"pointer"},title:`Set base color to ${O}`},O))})]}),y.jsxs("div",{style:{textAlign:"center",padding:"1rem",background:d?"#f1f3f5":"rgba(15,23,42,0.5)",borderRadius:"8px",border:"1px dashed rgba(148,163,184,0.3)"},children:[y.jsx(Hs,{size:22,style:{margin:"0 auto 0.5rem",opacity:.6,color:d?"#495057":"#94a3b8"}}),y.jsxs("p",{style:{fontSize:"0.78rem",margin:0,color:d?"#495057":"#e2e8f0"},children:[y.jsx("strong",{children:"Select any Element"})," on the card canvas above (text, box, logo, barcode) to inspect its layout coordinates, font styling, and element fill properties."]})]})]}),y.jsxs("div",{className:d?"ricd-ent-footer-bar":"ricd-sidebar-section",style:d?void 0:{marginTop:"auto"},children:[y.jsx("button",{type:"button",className:"ricd-btn ricd-btn-secondary",onClick:s,children:y.jsx("span",{children:"Cancel"})}),y.jsxs("button",{type:"button",className:"ricd-btn ricd-btn-green",style:d?void 0:{background:"#3b82f6"},onClick:a,children:[y.jsx(tb,{size:16}),y.jsx("span",{children:"Save & Apply Template"})]})]})]})}function I0({show:e=!1,onHide:A=()=>{},initialOrientation:t="vertical",initialTemplate:r=null,fieldDefinitions:n=[],sampleData:i=[],theme:a="enterprise",orgAssets:s={},onSaveTemplate:o=c=>{}}){var $;const[c,u]=re.useState(t),[d,p]=re.useState(null),[h,m]=re.useState(null),[B,C]=re.useState(.99),[b,Q]=re.useState(1),[L,D]=re.useState(0),O=re.useRef(null);O.current=d;const[z,R]=re.useState([]),[_,X]=re.useState(-1),nA=j=>{const q=O.current||d;if(!q)return;const rA=typeof j=="function"?j(q):j;rA&&(O.current=rA,p(rA),R(oA=>[...oA.slice(0,_+1),JSON.parse(JSON.stringify(rA))].slice(-25)),X(oA=>Math.min(oA+1,24)))};re.useEffect(()=>{if(e){let j=null;r?(j=JSON.parse(JSON.stringify(r)),p(j),u(r.orientation||t)):(j=Os(t),p(j),u(t)),m(null),j&&(R([JSON.parse(JSON.stringify(j))]),X(0))}},[e,r,t]);const N=()=>{if(_>0){const j=z[_-1];p(JSON.parse(JSON.stringify(j))),X(_-1)}},T=()=>{if(_<z.length-1){const j=z[_+1];p(JSON.parse(JSON.stringify(j))),X(_+1)}};if(re.useEffect(()=>{if(!e)return;const j=q=>{var rA,oA,wA;if(!["INPUT","SELECT","TEXTAREA"].includes((rA=q.target)==null?void 0:rA.tagName)){if((q.ctrlKey||q.metaKey)&&((oA=q.key)==null?void 0:oA.toLowerCase())==="z"){q.preventDefault(),q.shiftKey?T():N();return}if((q.ctrlKey||q.metaKey)&&((wA=q.key)==null?void 0:wA.toLowerCase())==="y"){q.preventDefault(),T();return}if(h&&["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(q.key)){q.preventDefault();const FA=q.shiftKey?5:.5;nA(UA=>{var RA;const LA=(RA=UA.elements)==null?void 0:RA.find(xA=>xA.id===h);if(!LA)return UA;let MA=LA.x||0,gA=LA.y||0;const W=UA.width||(UA.orientation==="vertical"?54:86),ZA=UA.height||(UA.orientation==="vertical"?86:54);return q.key==="ArrowUp"&&(gA=Math.max(0,Math.round((gA-FA)*10)/10)),q.key==="ArrowDown"&&(gA=Math.min(ZA-(LA.height||5),Math.round((gA+FA)*10)/10)),q.key==="ArrowLeft"&&(MA=Math.max(0,Math.round((MA-FA)*10)/10)),q.key==="ArrowRight"&&(MA=Math.min(W-(LA.width||5),Math.round((MA+FA)*10)/10)),{...UA,elements:UA.elements.map(xA=>xA.id===h?{...xA,x:MA,y:gA}:xA)}})}}};return window.addEventListener("keydown",j),()=>window.removeEventListener("keydown",j)},[e,h,d,z,_]),!e)return null;const M=j=>{u(j);const q=Os(j);nA(q),m(null)},V=j=>{nA(JSON.parse(JSON.stringify(j))),m(null)},sA=j=>{nA(q=>q&&{...q,elements:[...q.elements||[],j]}),m(j.id)},iA=(j,q)=>{nA(rA=>rA&&{...rA,elements:(rA.elements||[]).map(oA=>oA.id===j?{...oA,...q}:oA)})},lA=(j,q,rA)=>{nA(oA=>oA&&{...oA,elements:(oA.elements||[]).map(wA=>wA.id!==j?wA:typeof q=="object"&&q!==null?{...wA,...q}:{...wA,[q]:rA})})},eA=(j,q)=>{nA(rA=>rA&&{...rA,width:j,height:q})},cA=j=>{nA(q=>q&&{...q,elements:(q.elements||[]).filter(rA=>rA.id!==j)}),h===j&&m(null)},fA=(j,q)=>{nA(rA=>rA&&(typeof j=="object"&&j!==null?{...rA,background:{...rA.background||{color:"#ffffff",image:""},...j}}:{...rA,background:{...rA.background||{color:"#ffffff",image:""},[j]:q}}))},BA=(($=d==null?void 0:d.elements)==null?void 0:$.find(j=>j.id===h))||null,U=i&&i.length>0?i[L]:{},P=()=>{d&&(o(d),A())},K=a==="enterprise";return y.jsx("div",{className:"ricd-modal-overlay",children:y.jsxs("div",{className:`ricd-modal-container ${K?"ricd-theme-enterprise":"ricd-theme-dark"}`,children:[y.jsxs("div",{className:"ricd-modal-header",children:[y.jsxs("div",{className:"ricd-header-title",children:[y.jsx(cb,{size:20}),y.jsxs("span",{children:["Dynamic ID Card Designer (",c.toUpperCase(),")"]})]}),y.jsxs("div",{className:"ricd-toolbar-actions",children:[i&&i.length>0&&y.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"0.375rem",background:K?"rgba(255,255,255,0.2)":"rgba(15, 23, 42, 0.6)",padding:"0.25rem 0.6rem",borderRadius:"6px",border:K?"1px solid rgba(255,255,255,0.4)":"1px solid var(--ricd-border)"},children:[y.jsx(lb,{size:15,color:"#fff"}),y.jsx("span",{style:{fontSize:"0.75rem",color:"#fff"},children:"Preview:"}),y.jsx("select",{className:"ricd-form-select",style:{width:"auto",padding:"0.2rem 0.5rem",fontSize:"0.75rem",border:"none",background:"transparent",color:"#fff"},value:L,onChange:j=>D(Number(j.target.value)),children:i.map((j,q)=>y.jsx("option",{value:q,style:{backgroundColor:K?"#ffffff":"#1e293b",color:K?"#000":"#fff"},children:j.studentName||j.name||`Record #${q+1}`},q))})]}),y.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"0.25rem"},children:[y.jsx("button",{type:"button",className:K?"ricd-btn ricd-btn-white":"ricd-btn ricd-btn-secondary",style:{padding:"0.35rem 0.6rem",opacity:_<=0?.45:1},disabled:_<=0,onClick:N,title:"Undo (Ctrl+Z)",children:y.jsx(h0,{size:15})}),y.jsx("button",{type:"button",className:K?"ricd-btn ricd-btn-white":"ricd-btn ricd-btn-secondary",style:{padding:"0.35rem 0.6rem",opacity:_>=z.length-1?.45:1},disabled:_>=z.length-1,onClick:T,title:"Redo (Ctrl+Y)",children:y.jsx(u0,{size:15})})]}),y.jsxs("button",{type:"button",className:K?"ricd-btn ricd-btn-white":"ricd-btn ricd-btn-secondary",style:{padding:"0.35rem 0.7rem"},onClick:()=>Q(j=>j===1?5:j===5?0:1),title:"Toggle Grid Snapping",children:[y.jsx(qw,{size:15}),y.jsxs("span",{children:["Grid: ",b===0?"Free":`${b}mm`]})]}),y.jsx("button",{type:"button",className:K?"ricd-btn-close":"ricd-btn ricd-btn-secondary",onClick:A,title:"Close",children:y.jsx(ub,{size:18})})]})]}),y.jsxs("div",{className:"ricd-modal-body",children:[y.jsx(g0,{orientation:c,onChangeOrientation:M,onSelectPreset:V,onAddElement:sA,activeTemplateId:d==null?void 0:d.id,theme:a,zoom:B,onChangeZoom:C,width:(d==null?void 0:d.width)||(c==="vertical"?54:86),height:(d==null?void 0:d.height)||(c==="vertical"?86:54),onChangeDimensions:eA,fieldDefinitions:n}),y.jsxs(zb,{children:[y.jsx(E0,{templateSchema:d,selectedId:h,onSelectElement:m,onUpdateElement:iA,zoom:B,gridSnap:b,sampleRecord:U,orgAssets:s,fieldDefinitions:n}),y.jsx(S0,{selectedElement:BA,onUpdateProperty:lA,onDeleteElement:cA,fieldDefinitions:n,sampleData:i,theme:a,onSaveTemplate:P,onCancel:A,templateSchema:d,onUpdateBackground:fA,onSelectElement:m})]})]})]})})}class zb extends re.Component{constructor(A){super(A),this.state={hasError:!1,error:null}}static getDerivedStateFromError(A){return{hasError:!0,error:A}}componentDidCatch(A,t){console.error("Canvas Render Error:",A,t)}render(){var A;return this.state.hasError?y.jsxs("div",{style:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"2rem",color:"#ef4444",backgroundColor:"#1e293b"},children:[y.jsx("h3",{style:{marginBottom:"0.5rem",color:"#f8fafc"},children:"Canvas Error Recovered"}),y.jsx("p",{style:{fontSize:"0.85rem",marginBottom:"1rem",color:"#cbd5e1"},children:((A=this.state.error)==null?void 0:A.message)||"An unexpected rendering error occurred."}),y.jsx("button",{type:"button",className:"ricd-btn ricd-btn-primary",onClick:()=>this.setState({hasError:!1,error:null}),children:"Retry Render"})]}):y.jsx(y.Fragment,{children:this.props.children})}}function L0({templateSchema:e,data:A={},orientation:t="vertical",zoom:r=1,className:n="",orgAssets:i={},fieldDefinitions:a=[]}){var p,h,m,B;if(!e)return null;const s=e.width||(t==="vertical"?54:86),o=e.height||(t==="vertical"?86:54),c={width:`${s*r}mm`,height:`${o*r}mm`,backgroundColor:((p=e.background)==null?void 0:p.color)||"#ffffff",backgroundImage:(h=e.background)!=null&&h.image?`url(${e.background.image})`:"none",backgroundSize:((m=e.background)==null?void 0:m.size)||"cover",backgroundPosition:"center",backgroundRepeat:((B=e.background)==null?void 0:B.size)==="repeat"?"repeat":"no-repeat",borderRadius:`${2*r}mm`,border:`${.5*r}px solid #d1d5db`},d=[...e.elements||[]].sort((C,b)=>(C.zIndex||1)-(b.zIndex||1));return y.jsx("div",{className:`ricd-preview-card ${n}`,style:c,children:d.map(C=>{const b={left:`${C.x*r}mm`,top:`${C.y*r}mm`,width:`${C.width*r}mm`,height:`${C.height*r}mm`,zIndex:C.zIndex||1};if(C.type==="shape")return y.jsx("div",{className:"ricd-preview-element",style:{...b,backgroundColor:C.backgroundColor||"transparent",backgroundImage:C.backgroundImage?`url(${C.backgroundImage})`:"none",backgroundSize:C.backgroundSize||"cover",backgroundPosition:"center",backgroundRepeat:C.backgroundSize==="repeat"?"repeat":"no-repeat",borderColor:C.borderColor||"transparent",borderWidth:`${(C.borderWidth||0)*r}px`,borderStyle:C.borderWidth?"solid":"none",borderRadius:`${(C.borderRadius||0)*r}px`}},C.id);if(C.type==="image"){const Q=bf(C,A,i);return y.jsx("div",{className:"ricd-preview-element",style:{...b,borderWidth:`${(C.borderWidth||0)*r}px`,borderColor:C.borderColor||"transparent",borderStyle:C.borderWidth?"solid":"none",borderRadius:`${(C.borderRadius||0)*r}px`},children:Q?y.jsx("img",{src:Q,alt:C.label||C.fieldKey||"image",style:{width:"100%",height:"100%",objectFit:"cover",display:"block"},crossOrigin:"anonymous"}):null},C.id)}return C.type==="barcode"?y.jsxs("div",{className:"ricd-preview-element",style:{...b,backgroundColor:C.backgroundColor||"#ffffff",border:`${1*r}px solid #cbd5e1`,borderRadius:`${(C.borderRadius||0)*r}px`,display:"flex",alignItems:"center",justifyContent:"center",fontSize:`${6*r}pt`,color:"#334155",letterSpacing:"1px"},children:["[BARCODE: ",On({...C,type:"field"},A,a)||"ID","]"]},C.id):C.type==="qrcode"?y.jsx("div",{className:"ricd-preview-element",style:{...b,backgroundColor:C.backgroundColor||"#ffffff",borderRadius:`${(C.borderRadius||0)*r}px`,padding:"2px",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden"},children:U0(On({...C,type:"field"},A,a)||"ID")},C.id):y.jsx("div",{className:"ricd-preview-element",style:{...b,backgroundColor:C.backgroundColor||"transparent",backgroundImage:C.backgroundImage?`url(${C.backgroundImage})`:"none",backgroundSize:C.backgroundSize||"cover",backgroundPosition:"center",backgroundRepeat:C.backgroundSize==="repeat"?"repeat":"no-repeat",color:C.color||"#111111",fontSize:`${(C.fontSize||9)*r}pt`,fontWeight:C.fontWeight||"normal",fontFamily:C.fontFamily||"Arial, sans-serif",display:"flex",alignItems:"center",justifyContent:C.textAlign==="center"?"center":C.textAlign==="right"?"flex-end":"flex-start",padding:`${.5*r}mm ${1*r}mm`,textAlign:C.textAlign||"left",borderBottom:C.borderWidthBottom?`${C.borderWidthBottom*r}px solid ${C.borderColor||"#e5e7eb"}`:"none"},children:On(C,A,a)},C.id)})})}/*!
|
|
224
|
+
* html2canvas 1.4.1 <https://html2canvas.hertzen.com>
|
|
225
|
+
* Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
|
|
226
|
+
* Released under MIT License
|
|
227
|
+
*//*! *****************************************************************************
|
|
228
|
+
Copyright (c) Microsoft Corporation.
|
|
229
|
+
|
|
230
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
231
|
+
purpose with or without fee is hereby granted.
|
|
232
|
+
|
|
233
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
234
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
235
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
236
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
237
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
238
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
239
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
240
|
+
***************************************************************************** */var Cf=function(e,A){return Cf=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])},Cf(e,A)};function Yr(e,A){if(typeof A!="function"&&A!==null)throw new TypeError("Class extends value "+String(A)+" is not a constructor or null");Cf(e,A);function t(){this.constructor=e}e.prototype=A===null?Object.create(A):(t.prototype=A.prototype,new t)}var xf=function(){return xf=Object.assign||function(A){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(A[i]=t[i])}return A},xf.apply(this,arguments)};function nr(e,A,t,r){function n(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function s(u){try{c(r.next(u))}catch(d){a(d)}}function o(u){try{c(r.throw(u))}catch(d){a(d)}}function c(u){u.done?i(u.value):n(u.value).then(s,o)}c((r=r.apply(e,[])).next())})}function Wt(e,A){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,n,i,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(c){return function(u){return o([c,u])}}function o(c){if(r)throw new TypeError("Generator is already executing.");for(;t;)try{if(r=1,n&&(i=c[0]&2?n.return:c[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,c[1])).done)return i;switch(n=0,i&&(c=[c[0]&2,i.value]),c[0]){case 0:case 1:i=c;break;case 4:return t.label++,{value:c[1],done:!1};case 5:t.label++,n=c[1],c=[0];continue;case 7:c=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){t=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){t.label=c[1];break}if(c[0]===6&&t.label<i[1]){t.label=i[1],i=c;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(c);break}i[2]&&t.ops.pop(),t.trys.pop();continue}c=A.call(e,t)}catch(u){c=[6,u],n=0}finally{r=i=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function cl(e,A,t){if(arguments.length===2)for(var r=0,n=A.length,i;r<n;r++)(i||!(r in A))&&(i||(i=Array.prototype.slice.call(A,0,r)),i[r]=A[r]);return e.concat(i||A)}for(var Hn=function(){function e(A,t,r,n){this.left=A,this.top=t,this.width=r,this.height=n}return e.prototype.add=function(A,t,r,n){return new e(this.left+A,this.top+t,this.width+r,this.height+n)},e.fromClientRect=function(A,t){return new e(t.left+A.windowBounds.left,t.top+A.windowBounds.top,t.width,t.height)},e.fromDOMRectList=function(A,t){var r=Array.from(t).find(function(n){return n.width!==0});return r?new e(r.left+A.windowBounds.left,r.top+A.windowBounds.top,r.width,r.height):e.EMPTY},e.EMPTY=new e(0,0,0,0),e}(),ul=function(e,A){return Hn.fromClientRect(e,A.getBoundingClientRect())},Gb=function(e){var A=e.body,t=e.documentElement;if(!A||!t)throw new Error("Unable to get document size");var r=Math.max(Math.max(A.scrollWidth,t.scrollWidth),Math.max(A.offsetWidth,t.offsetWidth),Math.max(A.clientWidth,t.clientWidth)),n=Math.max(Math.max(A.scrollHeight,t.scrollHeight),Math.max(A.offsetHeight,t.offsetHeight),Math.max(A.clientHeight,t.clientHeight));return new Hn(0,0,r,n)},fl=function(e){for(var A=[],t=0,r=e.length;t<r;){var n=e.charCodeAt(t++);if(n>=55296&&n<=56319&&t<r){var i=e.charCodeAt(t++);(i&64512)===56320?A.push(((n&1023)<<10)+(i&1023)+65536):(A.push(n),t--)}else A.push(n)}return A},ut=function(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var t=e.length;if(!t)return"";for(var r=[],n=-1,i="";++n<t;){var a=e[n];a<=65535?r.push(a):(a-=65536,r.push((a>>10)+55296,a%1024+56320)),(n+1===t||r.length>16384)&&(i+=String.fromCharCode.apply(String,r),r.length=0)}return i},N0="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",$b=typeof Uint8Array>"u"?[]:new Uint8Array(256),hl=0;hl<N0.length;hl++)$b[N0.charCodeAt(hl)]=hl;for(var T0="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ps=typeof Uint8Array>"u"?[]:new Uint8Array(256),dl=0;dl<T0.length;dl++)Ps[T0.charCodeAt(dl)]=dl;for(var Wb=function(e){var A=e.length*.75,t=e.length,r,n=0,i,a,s,o;e[e.length-1]==="="&&(A--,e[e.length-2]==="="&&A--);var c=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(A):new Array(A),u=Array.isArray(c)?c:new Uint8Array(c);for(r=0;r<t;r+=4)i=Ps[e.charCodeAt(r)],a=Ps[e.charCodeAt(r+1)],s=Ps[e.charCodeAt(r+2)],o=Ps[e.charCodeAt(r+3)],u[n++]=i<<2|a>>4,u[n++]=(a&15)<<4|s>>2,u[n++]=(s&3)<<6|o&63;return c},qb=function(e){for(var A=e.length,t=[],r=0;r<A;r+=2)t.push(e[r+1]<<8|e[r]);return t},Xb=function(e){for(var A=e.length,t=[],r=0;r<A;r+=4)t.push(e[r+3]<<24|e[r+2]<<16|e[r+1]<<8|e[r]);return t},Ki=5,Ff=11,Qf=2,Yb=Ff-Ki,O0=65536>>Ki,Jb=1<<Ki,Uf=Jb-1,Zb=1024>>Ki,AC=O0+Zb,eC=AC,tC=32,rC=eC+tC,nC=65536>>Ff,iC=1<<Yb,aC=iC-1,H0=function(e,A,t){return e.slice?e.slice(A,t):new Uint16Array(Array.prototype.slice.call(e,A,t))},sC=function(e,A,t){return e.slice?e.slice(A,t):new Uint32Array(Array.prototype.slice.call(e,A,t))},oC=function(e,A){var t=Wb(e),r=Array.isArray(t)?Xb(t):new Uint32Array(t),n=Array.isArray(t)?qb(t):new Uint16Array(t),i=24,a=H0(n,i/2,r[4]/2),s=r[5]===2?H0(n,(i+r[4])/2):sC(r,Math.ceil((i+r[4])/4));return new lC(r[0],r[1],r[2],r[3],a,s)},lC=function(){function e(A,t,r,n,i,a){this.initialValue=A,this.errorValue=t,this.highStart=r,this.highValueIndex=n,this.index=i,this.data=a}return e.prototype.get=function(A){var t;if(A>=0){if(A<55296||A>56319&&A<=65535)return t=this.index[A>>Ki],t=(t<<Qf)+(A&Uf),this.data[t];if(A<=65535)return t=this.index[O0+(A-55296>>Ki)],t=(t<<Qf)+(A&Uf),this.data[t];if(A<this.highStart)return t=rC-nC+(A>>Ff),t=this.index[t],t+=A>>Ki&aC,t=this.index[t],t=(t<<Qf)+(A&Uf),this.data[t];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e}(),_0="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",cC=typeof Uint8Array>"u"?[]:new Uint8Array(256),gl=0;gl<_0.length;gl++)cC[_0.charCodeAt(gl)]=gl;var uC="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",P0=50,fC=1,k0=2,D0=3,hC=4,dC=5,M0=7,R0=8,K0=9,ii=10,Ef=11,V0=12,Sf=13,gC=14,ks=15,If=16,pl=17,Ds=18,pC=19,j0=20,Lf=21,Ms=22,Nf=23,Ua=24,xr=25,Rs=26,Ks=27,Ea=28,vC=29,Vi=30,BC=31,vl=32,Bl=33,Tf=34,Of=35,Hf=36,Vs=37,_f=38,ml=39,yl=40,Pf=41,z0=42,mC=43,yC=[9001,65288],G0="!",Fe="×",wl="÷",kf=oC(uC),_n=[Vi,Hf],Df=[fC,k0,D0,dC],$0=[ii,R0],W0=[Ks,Rs],wC=Df.concat($0),q0=[_f,ml,yl,Tf,Of],bC=[ks,Sf],CC=function(e,A){A===void 0&&(A="strict");var t=[],r=[],n=[];return e.forEach(function(i,a){var s=kf.get(i);if(s>P0?(n.push(!0),s-=P0):n.push(!1),["normal","auto","loose"].indexOf(A)!==-1&&[8208,8211,12316,12448].indexOf(i)!==-1)return r.push(a),t.push(If);if(s===hC||s===Ef){if(a===0)return r.push(a),t.push(Vi);var o=t[a-1];return wC.indexOf(o)===-1?(r.push(r[a-1]),t.push(o)):(r.push(a),t.push(Vi))}if(r.push(a),s===BC)return t.push(A==="strict"?Lf:Vs);if(s===z0||s===vC)return t.push(Vi);if(s===mC)return i>=131072&&i<=196605||i>=196608&&i<=262141?t.push(Vs):t.push(Vi);t.push(s)}),[r,t,n]},Mf=function(e,A,t,r){var n=r[t];if(Array.isArray(e)?e.indexOf(n)!==-1:e===n)for(var i=t;i<=r.length;){i++;var a=r[i];if(a===A)return!0;if(a!==ii)break}if(n===ii)for(var i=t;i>0;){i--;var s=r[i];if(Array.isArray(e)?e.indexOf(s)!==-1:e===s)for(var o=t;o<=r.length;){o++;var a=r[o];if(a===A)return!0;if(a!==ii)break}if(s!==ii)break}return!1},X0=function(e,A){for(var t=e;t>=0;){var r=A[t];if(r===ii)t--;else return r}return 0},xC=function(e,A,t,r,n){if(t[r]===0)return Fe;var i=r-1;if(Array.isArray(n)&&n[i]===!0)return Fe;var a=i-1,s=i+1,o=A[i],c=a>=0?A[a]:0,u=A[s];if(o===k0&&u===D0)return Fe;if(Df.indexOf(o)!==-1)return G0;if(Df.indexOf(u)!==-1||$0.indexOf(u)!==-1)return Fe;if(X0(i,A)===R0)return wl;if(kf.get(e[i])===Ef||(o===vl||o===Bl)&&kf.get(e[s])===Ef||o===M0||u===M0||o===K0||[ii,Sf,ks].indexOf(o)===-1&&u===K0||[pl,Ds,pC,Ua,Ea].indexOf(u)!==-1||X0(i,A)===Ms||Mf(Nf,Ms,i,A)||Mf([pl,Ds],Lf,i,A)||Mf(V0,V0,i,A))return Fe;if(o===ii)return wl;if(o===Nf||u===Nf)return Fe;if(u===If||o===If)return wl;if([Sf,ks,Lf].indexOf(u)!==-1||o===gC||c===Hf&&bC.indexOf(o)!==-1||o===Ea&&u===Hf||u===j0||_n.indexOf(u)!==-1&&o===xr||_n.indexOf(o)!==-1&&u===xr||o===Ks&&[Vs,vl,Bl].indexOf(u)!==-1||[Vs,vl,Bl].indexOf(o)!==-1&&u===Rs||_n.indexOf(o)!==-1&&W0.indexOf(u)!==-1||W0.indexOf(o)!==-1&&_n.indexOf(u)!==-1||[Ks,Rs].indexOf(o)!==-1&&(u===xr||[Ms,ks].indexOf(u)!==-1&&A[s+1]===xr)||[Ms,ks].indexOf(o)!==-1&&u===xr||o===xr&&[xr,Ea,Ua].indexOf(u)!==-1)return Fe;if([xr,Ea,Ua,pl,Ds].indexOf(u)!==-1)for(var d=i;d>=0;){var p=A[d];if(p===xr)return Fe;if([Ea,Ua].indexOf(p)!==-1)d--;else break}if([Ks,Rs].indexOf(u)!==-1)for(var d=[pl,Ds].indexOf(o)!==-1?a:i;d>=0;){var p=A[d];if(p===xr)return Fe;if([Ea,Ua].indexOf(p)!==-1)d--;else break}if(_f===o&&[_f,ml,Tf,Of].indexOf(u)!==-1||[ml,Tf].indexOf(o)!==-1&&[ml,yl].indexOf(u)!==-1||[yl,Of].indexOf(o)!==-1&&u===yl||q0.indexOf(o)!==-1&&[j0,Rs].indexOf(u)!==-1||q0.indexOf(u)!==-1&&o===Ks||_n.indexOf(o)!==-1&&_n.indexOf(u)!==-1||o===Ua&&_n.indexOf(u)!==-1||_n.concat(xr).indexOf(o)!==-1&&u===Ms&&yC.indexOf(e[s])===-1||_n.concat(xr).indexOf(u)!==-1&&o===Ds)return Fe;if(o===Pf&&u===Pf){for(var h=t[i],m=1;h>0&&(h--,A[h]===Pf);)m++;if(m%2!==0)return Fe}return o===vl&&u===Bl?Fe:wl},FC=function(e,A){A||(A={lineBreak:"normal",wordBreak:"normal"});var t=CC(e,A.lineBreak),r=t[0],n=t[1],i=t[2];(A.wordBreak==="break-all"||A.wordBreak==="break-word")&&(n=n.map(function(s){return[xr,Vi,z0].indexOf(s)!==-1?Vs:s}));var a=A.wordBreak==="keep-all"?i.map(function(s,o){return s&&e[o]>=19968&&e[o]<=40959}):void 0;return[r,n,a]},QC=function(){function e(A,t,r,n){this.codePoints=A,this.required=t===G0,this.start=r,this.end=n}return e.prototype.slice=function(){return ut.apply(void 0,this.codePoints.slice(this.start,this.end))},e}(),UC=function(e,A){var t=fl(e),r=FC(t,A),n=r[0],i=r[1],a=r[2],s=t.length,o=0,c=0;return{next:function(){if(c>=s)return{done:!0,value:null};for(var u=Fe;c<s&&(u=xC(t,i,n,++c,a))===Fe;);if(u!==Fe||c===s){var d=new QC(t,u,o,c);return o=c,{value:d,done:!1}}return{done:!0,value:null}}}},EC=1,SC=2,js=4,Y0=8,bl=10,J0=47,zs=92,IC=9,LC=32,Cl=34,Gs=61,NC=35,TC=36,OC=37,xl=39,Fl=40,$s=41,HC=95,dr=45,_C=33,PC=60,kC=62,DC=64,MC=91,RC=93,KC=61,VC=123,Ql=63,jC=125,Z0=124,zC=126,GC=128,A1=65533,Rf=42,ji=43,$C=44,WC=58,qC=59,Ws=46,XC=0,YC=8,JC=11,ZC=14,A4=31,e4=127,yn=-1,e1=48,t1=97,r1=101,t4=102,r4=117,n4=122,n1=65,i1=69,a1=70,i4=85,a4=90,qt=function(e){return e>=e1&&e<=57},s4=function(e){return e>=55296&&e<=57343},Sa=function(e){return qt(e)||e>=n1&&e<=a1||e>=t1&&e<=t4},o4=function(e){return e>=t1&&e<=n4},l4=function(e){return e>=n1&&e<=a4},c4=function(e){return o4(e)||l4(e)},u4=function(e){return e>=GC},Ul=function(e){return e===bl||e===IC||e===LC},El=function(e){return c4(e)||u4(e)||e===HC},s1=function(e){return El(e)||qt(e)||e===dr},f4=function(e){return e>=XC&&e<=YC||e===JC||e>=ZC&&e<=A4||e===e4},ai=function(e,A){return e!==zs?!1:A!==bl},Sl=function(e,A,t){return e===dr?El(A)||ai(A,t):El(e)?!0:!!(e===zs&&ai(e,A))},Kf=function(e,A,t){return e===ji||e===dr?qt(A)?!0:A===Ws&&qt(t):qt(e===Ws?A:e)},h4=function(e){var A=0,t=1;(e[A]===ji||e[A]===dr)&&(e[A]===dr&&(t=-1),A++);for(var r=[];qt(e[A]);)r.push(e[A++]);var n=r.length?parseInt(ut.apply(void 0,r),10):0;e[A]===Ws&&A++;for(var i=[];qt(e[A]);)i.push(e[A++]);var a=i.length,s=a?parseInt(ut.apply(void 0,i),10):0;(e[A]===i1||e[A]===r1)&&A++;var o=1;(e[A]===ji||e[A]===dr)&&(e[A]===dr&&(o=-1),A++);for(var c=[];qt(e[A]);)c.push(e[A++]);var u=c.length?parseInt(ut.apply(void 0,c),10):0;return t*(n+s*Math.pow(10,-a))*Math.pow(10,o*u)},d4={type:2},g4={type:3},p4={type:4},v4={type:13},B4={type:8},m4={type:21},y4={type:9},w4={type:10},b4={type:11},C4={type:12},x4={type:14},Il={type:23},F4={type:1},Q4={type:25},U4={type:24},E4={type:26},S4={type:27},I4={type:28},L4={type:29},N4={type:31},Vf={type:32},o1=function(){function e(){this._value=[]}return e.prototype.write=function(A){this._value=this._value.concat(fl(A))},e.prototype.read=function(){for(var A=[],t=this.consumeToken();t!==Vf;)A.push(t),t=this.consumeToken();return A},e.prototype.consumeToken=function(){var A=this.consumeCodePoint();switch(A){case Cl:return this.consumeStringToken(Cl);case NC:var t=this.peekCodePoint(0),r=this.peekCodePoint(1),n=this.peekCodePoint(2);if(s1(t)||ai(r,n)){var i=Sl(t,r,n)?SC:EC,a=this.consumeName();return{type:5,value:a,flags:i}}break;case TC:if(this.peekCodePoint(0)===Gs)return this.consumeCodePoint(),v4;break;case xl:return this.consumeStringToken(xl);case Fl:return d4;case $s:return g4;case Rf:if(this.peekCodePoint(0)===Gs)return this.consumeCodePoint(),x4;break;case ji:if(Kf(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case $C:return p4;case dr:var s=A,o=this.peekCodePoint(0),c=this.peekCodePoint(1);if(Kf(s,o,c))return this.reconsumeCodePoint(A),this.consumeNumericToken();if(Sl(s,o,c))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();if(o===dr&&c===kC)return this.consumeCodePoint(),this.consumeCodePoint(),U4;break;case Ws:if(Kf(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case J0:if(this.peekCodePoint(0)===Rf)for(this.consumeCodePoint();;){var u=this.consumeCodePoint();if(u===Rf&&(u=this.consumeCodePoint(),u===J0))return this.consumeToken();if(u===yn)return this.consumeToken()}break;case WC:return E4;case qC:return S4;case PC:if(this.peekCodePoint(0)===_C&&this.peekCodePoint(1)===dr&&this.peekCodePoint(2)===dr)return this.consumeCodePoint(),this.consumeCodePoint(),Q4;break;case DC:var d=this.peekCodePoint(0),p=this.peekCodePoint(1),h=this.peekCodePoint(2);if(Sl(d,p,h)){var a=this.consumeName();return{type:7,value:a}}break;case MC:return I4;case zs:if(ai(A,this.peekCodePoint(0)))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();break;case RC:return L4;case KC:if(this.peekCodePoint(0)===Gs)return this.consumeCodePoint(),B4;break;case VC:return b4;case jC:return C4;case r4:case i4:var m=this.peekCodePoint(0),B=this.peekCodePoint(1);return m===ji&&(Sa(B)||B===Ql)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(A),this.consumeIdentLikeToken();case Z0:if(this.peekCodePoint(0)===Gs)return this.consumeCodePoint(),y4;if(this.peekCodePoint(0)===Z0)return this.consumeCodePoint(),m4;break;case zC:if(this.peekCodePoint(0)===Gs)return this.consumeCodePoint(),w4;break;case yn:return Vf}return Ul(A)?(this.consumeWhiteSpace(),N4):qt(A)?(this.reconsumeCodePoint(A),this.consumeNumericToken()):El(A)?(this.reconsumeCodePoint(A),this.consumeIdentLikeToken()):{type:6,value:ut(A)}},e.prototype.consumeCodePoint=function(){var A=this._value.shift();return typeof A>"u"?-1:A},e.prototype.reconsumeCodePoint=function(A){this._value.unshift(A)},e.prototype.peekCodePoint=function(A){return A>=this._value.length?-1:this._value[A]},e.prototype.consumeUnicodeRangeToken=function(){for(var A=[],t=this.consumeCodePoint();Sa(t)&&A.length<6;)A.push(t),t=this.consumeCodePoint();for(var r=!1;t===Ql&&A.length<6;)A.push(t),t=this.consumeCodePoint(),r=!0;if(r){var n=parseInt(ut.apply(void 0,A.map(function(o){return o===Ql?e1:o})),16),i=parseInt(ut.apply(void 0,A.map(function(o){return o===Ql?a1:o})),16);return{type:30,start:n,end:i}}var a=parseInt(ut.apply(void 0,A),16);if(this.peekCodePoint(0)===dr&&Sa(this.peekCodePoint(1))){this.consumeCodePoint(),t=this.consumeCodePoint();for(var s=[];Sa(t)&&s.length<6;)s.push(t),t=this.consumeCodePoint();var i=parseInt(ut.apply(void 0,s),16);return{type:30,start:a,end:i}}else return{type:30,start:a,end:a}},e.prototype.consumeIdentLikeToken=function(){var A=this.consumeName();return A.toLowerCase()==="url"&&this.peekCodePoint(0)===Fl?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Fl?(this.consumeCodePoint(),{type:19,value:A}):{type:20,value:A}},e.prototype.consumeUrlToken=function(){var A=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===yn)return{type:22,value:""};var t=this.peekCodePoint(0);if(t===xl||t===Cl){var r=this.consumeStringToken(this.consumeCodePoint());return r.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===yn||this.peekCodePoint(0)===$s)?(this.consumeCodePoint(),{type:22,value:r.value}):(this.consumeBadUrlRemnants(),Il)}for(;;){var n=this.consumeCodePoint();if(n===yn||n===$s)return{type:22,value:ut.apply(void 0,A)};if(Ul(n))return this.consumeWhiteSpace(),this.peekCodePoint(0)===yn||this.peekCodePoint(0)===$s?(this.consumeCodePoint(),{type:22,value:ut.apply(void 0,A)}):(this.consumeBadUrlRemnants(),Il);if(n===Cl||n===xl||n===Fl||f4(n))return this.consumeBadUrlRemnants(),Il;if(n===zs)if(ai(n,this.peekCodePoint(0)))A.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),Il;else A.push(n)}},e.prototype.consumeWhiteSpace=function(){for(;Ul(this.peekCodePoint(0));)this.consumeCodePoint()},e.prototype.consumeBadUrlRemnants=function(){for(;;){var A=this.consumeCodePoint();if(A===$s||A===yn)return;ai(A,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},e.prototype.consumeStringSlice=function(A){for(var t=5e4,r="";A>0;){var n=Math.min(t,A);r+=ut.apply(void 0,this._value.splice(0,n)),A-=n}return this._value.shift(),r},e.prototype.consumeStringToken=function(A){var t="",r=0;do{var n=this._value[r];if(n===yn||n===void 0||n===A)return t+=this.consumeStringSlice(r),{type:0,value:t};if(n===bl)return this._value.splice(0,r),F4;if(n===zs){var i=this._value[r+1];i!==yn&&i!==void 0&&(i===bl?(t+=this.consumeStringSlice(r),r=-1,this._value.shift()):ai(n,i)&&(t+=this.consumeStringSlice(r),t+=ut(this.consumeEscapedCodePoint()),r=-1))}r++}while(!0)},e.prototype.consumeNumber=function(){var A=[],t=js,r=this.peekCodePoint(0);for((r===ji||r===dr)&&A.push(this.consumeCodePoint());qt(this.peekCodePoint(0));)A.push(this.consumeCodePoint());r=this.peekCodePoint(0);var n=this.peekCodePoint(1);if(r===Ws&&qt(n))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),t=Y0;qt(this.peekCodePoint(0));)A.push(this.consumeCodePoint());r=this.peekCodePoint(0),n=this.peekCodePoint(1);var i=this.peekCodePoint(2);if((r===i1||r===r1)&&((n===ji||n===dr)&&qt(i)||qt(n)))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),t=Y0;qt(this.peekCodePoint(0));)A.push(this.consumeCodePoint());return[h4(A),t]},e.prototype.consumeNumericToken=function(){var A=this.consumeNumber(),t=A[0],r=A[1],n=this.peekCodePoint(0),i=this.peekCodePoint(1),a=this.peekCodePoint(2);if(Sl(n,i,a)){var s=this.consumeName();return{type:15,number:t,flags:r,unit:s}}return n===OC?(this.consumeCodePoint(),{type:16,number:t,flags:r}):{type:17,number:t,flags:r}},e.prototype.consumeEscapedCodePoint=function(){var A=this.consumeCodePoint();if(Sa(A)){for(var t=ut(A);Sa(this.peekCodePoint(0))&&t.length<6;)t+=ut(this.consumeCodePoint());Ul(this.peekCodePoint(0))&&this.consumeCodePoint();var r=parseInt(t,16);return r===0||s4(r)||r>1114111?A1:r}return A===yn?A1:A},e.prototype.consumeName=function(){for(var A="";;){var t=this.consumeCodePoint();if(s1(t))A+=ut(t);else if(ai(t,this.peekCodePoint(0)))A+=ut(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(t),A}},e}(),l1=function(){function e(A){this._tokens=A}return e.create=function(A){var t=new o1;return t.write(A),new e(t.read())},e.parseValue=function(A){return e.create(A).parseComponentValue()},e.parseValues=function(A){return e.create(A).parseComponentValues()},e.prototype.parseComponentValue=function(){for(var A=this.consumeToken();A.type===31;)A=this.consumeToken();if(A.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(A);var t=this.consumeComponentValue();do A=this.consumeToken();while(A.type===31);if(A.type===32)return t;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},e.prototype.parseComponentValues=function(){for(var A=[];;){var t=this.consumeComponentValue();if(t.type===32)return A;A.push(t),A.push()}},e.prototype.consumeComponentValue=function(){var A=this.consumeToken();switch(A.type){case 11:case 28:case 2:return this.consumeSimpleBlock(A.type);case 19:return this.consumeFunction(A)}return A},e.prototype.consumeSimpleBlock=function(A){for(var t={type:A,values:[]},r=this.consumeToken();;){if(r.type===32||O4(r,A))return t;this.reconsumeToken(r),t.values.push(this.consumeComponentValue()),r=this.consumeToken()}},e.prototype.consumeFunction=function(A){for(var t={name:A.value,values:[],type:18};;){var r=this.consumeToken();if(r.type===32||r.type===3)return t;this.reconsumeToken(r),t.values.push(this.consumeComponentValue())}},e.prototype.consumeToken=function(){var A=this._tokens.shift();return typeof A>"u"?Vf:A},e.prototype.reconsumeToken=function(A){this._tokens.unshift(A)},e}(),qs=function(e){return e.type===15},Ia=function(e){return e.type===17},De=function(e){return e.type===20},T4=function(e){return e.type===0},jf=function(e,A){return De(e)&&e.value===A},c1=function(e){return e.type!==31},La=function(e){return e.type!==31&&e.type!==4},wn=function(e){var A=[],t=[];return e.forEach(function(r){if(r.type===4){if(t.length===0)throw new Error("Error parsing function args, zero tokens for arg");A.push(t),t=[];return}r.type!==31&&t.push(r)}),t.length&&A.push(t),A},O4=function(e,A){return A===11&&e.type===12||A===28&&e.type===29?!0:A===2&&e.type===3},si=function(e){return e.type===17||e.type===15},Ct=function(e){return e.type===16||si(e)},u1=function(e){return e.length>1?[e[0],e[1]]:[e[0]]},Mt={type:17,number:0,flags:js},zf={type:16,number:50,flags:js},oi={type:16,number:100,flags:js},Xs=function(e,A,t){var r=e[0],n=e[1];return[ze(r,A),ze(typeof n<"u"?n:r,t)]},ze=function(e,A){if(e.type===16)return e.number/100*A;if(qs(e))switch(e.unit){case"rem":case"em":return 16*e.number;case"px":default:return e.number}return e.number},f1="deg",h1="grad",d1="rad",g1="turn",Ll={name:"angle",parse:function(e,A){if(A.type===15)switch(A.unit){case f1:return Math.PI*A.number/180;case h1:return Math.PI/200*A.number;case d1:return A.number;case g1:return Math.PI*2*A.number}throw new Error("Unsupported angle type")}},p1=function(e){return e.type===15&&(e.unit===f1||e.unit===h1||e.unit===d1||e.unit===g1)},v1=function(e){var A=e.filter(De).map(function(t){return t.value}).join(" ");switch(A){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Mt,Mt];case"to top":case"bottom":return Hr(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Mt,oi];case"to right":case"left":return Hr(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[oi,oi];case"to bottom":case"top":return Hr(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[oi,Mt];case"to left":case"right":return Hr(270)}return 0},Hr=function(e){return Math.PI*e/180},li={name:"color",parse:function(e,A){if(A.type===18){var t=H4[A.name];if(typeof t>"u")throw new Error('Attempting to parse an unsupported color function "'+A.name+'"');return t(e,A.values)}if(A.type===5){if(A.value.length===3){var r=A.value.substring(0,1),n=A.value.substring(1,2),i=A.value.substring(2,3);return ui(parseInt(r+r,16),parseInt(n+n,16),parseInt(i+i,16),1)}if(A.value.length===4){var r=A.value.substring(0,1),n=A.value.substring(1,2),i=A.value.substring(2,3),a=A.value.substring(3,4);return ui(parseInt(r+r,16),parseInt(n+n,16),parseInt(i+i,16),parseInt(a+a,16)/255)}if(A.value.length===6){var r=A.value.substring(0,2),n=A.value.substring(2,4),i=A.value.substring(4,6);return ui(parseInt(r,16),parseInt(n,16),parseInt(i,16),1)}if(A.value.length===8){var r=A.value.substring(0,2),n=A.value.substring(2,4),i=A.value.substring(4,6),a=A.value.substring(6,8);return ui(parseInt(r,16),parseInt(n,16),parseInt(i,16),parseInt(a,16)/255)}}if(A.type===20){var s=Pn[A.value.toUpperCase()];if(typeof s<"u")return s}return Pn.TRANSPARENT}},ci=function(e){return(255&e)===0},Lt=function(e){var A=255&e,t=255&e>>8,r=255&e>>16,n=255&e>>24;return A<255?"rgba("+n+","+r+","+t+","+A/255+")":"rgb("+n+","+r+","+t+")"},ui=function(e,A,t,r){return(e<<24|A<<16|t<<8|Math.round(r*255)<<0)>>>0},B1=function(e,A){if(e.type===17)return e.number;if(e.type===16){var t=A===3?1:255;return A===3?e.number/100*t:Math.round(e.number/100*t)}return 0},m1=function(e,A){var t=A.filter(La);if(t.length===3){var r=t.map(B1),n=r[0],i=r[1],a=r[2];return ui(n,i,a,1)}if(t.length===4){var s=t.map(B1),n=s[0],i=s[1],a=s[2],o=s[3];return ui(n,i,a,o)}return 0};function Gf(e,A,t){return t<0&&(t+=1),t>=1&&(t-=1),t<1/6?(A-e)*t*6+e:t<1/2?A:t<2/3?(A-e)*6*(2/3-t)+e:e}var y1=function(e,A){var t=A.filter(La),r=t[0],n=t[1],i=t[2],a=t[3],s=(r.type===17?Hr(r.number):Ll.parse(e,r))/(Math.PI*2),o=Ct(n)?n.number/100:0,c=Ct(i)?i.number/100:0,u=typeof a<"u"&&Ct(a)?ze(a,1):1;if(o===0)return ui(c*255,c*255,c*255,1);var d=c<=.5?c*(o+1):c+o-c*o,p=c*2-d,h=Gf(p,d,s+1/3),m=Gf(p,d,s),B=Gf(p,d,s-1/3);return ui(h*255,m*255,B*255,u)},H4={hsl:y1,hsla:y1,rgb:m1,rgba:m1},Ys=function(e,A){return li.parse(e,l1.create(A).parseComponentValue())},Pn={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},_4={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(e,A){return A.map(function(t){if(De(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},P4={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Nl=function(e,A){var t=li.parse(e,A[0]),r=A[1];return r&&Ct(r)?{color:t,stop:r}:{color:t,stop:null}},w1=function(e,A){var t=e[0],r=e[e.length-1];t.stop===null&&(t.stop=Mt),r.stop===null&&(r.stop=oi);for(var n=[],i=0,a=0;a<e.length;a++){var s=e[a].stop;if(s!==null){var o=ze(s,A);o>i?n.push(o):n.push(i),i=o}else n.push(null)}for(var c=null,a=0;a<n.length;a++){var u=n[a];if(u===null)c===null&&(c=a);else if(c!==null){for(var d=a-c,p=n[c-1],h=(u-p)/(d+1),m=1;m<=d;m++)n[c+m-1]=h*m;c=null}}return e.map(function(B,C){var b=B.color;return{color:b,stop:Math.max(Math.min(1,n[C]/A),0)}})},k4=function(e,A,t){var r=A/2,n=t/2,i=ze(e[0],A)-r,a=n-ze(e[1],t);return(Math.atan2(a,i)+Math.PI*2)%(Math.PI*2)},D4=function(e,A,t){var r=typeof e=="number"?e:k4(e,A,t),n=Math.abs(A*Math.sin(r))+Math.abs(t*Math.cos(r)),i=A/2,a=t/2,s=n/2,o=Math.sin(r-Math.PI/2)*s,c=Math.cos(r-Math.PI/2)*s;return[n,i-c,i+c,a-o,a+o]},Jr=function(e,A){return Math.sqrt(e*e+A*A)},b1=function(e,A,t,r,n){var i=[[0,0],[0,A],[e,0],[e,A]];return i.reduce(function(a,s){var o=s[0],c=s[1],u=Jr(t-o,r-c);return(n?u<a.optimumDistance:u>a.optimumDistance)?{optimumCorner:s,optimumDistance:u}:a},{optimumDistance:n?1/0:-1/0,optimumCorner:null}).optimumCorner},M4=function(e,A,t,r,n){var i=0,a=0;switch(e.size){case 0:e.shape===0?i=a=Math.min(Math.abs(A),Math.abs(A-r),Math.abs(t),Math.abs(t-n)):e.shape===1&&(i=Math.min(Math.abs(A),Math.abs(A-r)),a=Math.min(Math.abs(t),Math.abs(t-n)));break;case 2:if(e.shape===0)i=a=Math.min(Jr(A,t),Jr(A,t-n),Jr(A-r,t),Jr(A-r,t-n));else if(e.shape===1){var s=Math.min(Math.abs(t),Math.abs(t-n))/Math.min(Math.abs(A),Math.abs(A-r)),o=b1(r,n,A,t,!0),c=o[0],u=o[1];i=Jr(c-A,(u-t)/s),a=s*i}break;case 1:e.shape===0?i=a=Math.max(Math.abs(A),Math.abs(A-r),Math.abs(t),Math.abs(t-n)):e.shape===1&&(i=Math.max(Math.abs(A),Math.abs(A-r)),a=Math.max(Math.abs(t),Math.abs(t-n)));break;case 3:if(e.shape===0)i=a=Math.max(Jr(A,t),Jr(A,t-n),Jr(A-r,t),Jr(A-r,t-n));else if(e.shape===1){var s=Math.max(Math.abs(t),Math.abs(t-n))/Math.max(Math.abs(A),Math.abs(A-r)),d=b1(r,n,A,t,!1),c=d[0],u=d[1];i=Jr(c-A,(u-t)/s),a=s*i}break}return Array.isArray(e.size)&&(i=ze(e.size[0],r),a=e.size.length===2?ze(e.size[1],n):i),[i,a]},R4=function(e,A){var t=Hr(180),r=[];return wn(A).forEach(function(n,i){if(i===0){var a=n[0];if(a.type===20&&a.value==="to"){t=v1(n);return}else if(p1(a)){t=Ll.parse(e,a);return}}var s=Nl(e,n);r.push(s)}),{angle:t,stops:r,type:1}},Tl=function(e,A){var t=Hr(180),r=[];return wn(A).forEach(function(n,i){if(i===0){var a=n[0];if(a.type===20&&["top","left","right","bottom"].indexOf(a.value)!==-1){t=v1(n);return}else if(p1(a)){t=(Ll.parse(e,a)+Hr(270))%Hr(360);return}}var s=Nl(e,n);r.push(s)}),{angle:t,stops:r,type:1}},K4=function(e,A){var t=Hr(180),r=[],n=1,i=0,a=3,s=[];return wn(A).forEach(function(o,c){var u=o[0];if(c===0){if(De(u)&&u.value==="linear"){n=1;return}else if(De(u)&&u.value==="radial"){n=2;return}}if(u.type===18){if(u.name==="from"){var d=li.parse(e,u.values[0]);r.push({stop:Mt,color:d})}else if(u.name==="to"){var d=li.parse(e,u.values[0]);r.push({stop:oi,color:d})}else if(u.name==="color-stop"){var p=u.values.filter(La);if(p.length===2){var d=li.parse(e,p[1]),h=p[0];Ia(h)&&r.push({stop:{type:16,number:h.number*100,flags:h.flags},color:d})}}}}),n===1?{angle:(t+Hr(180))%Hr(360),stops:r,type:n}:{size:a,shape:i,stops:r,position:s,type:n}},C1="closest-side",x1="farthest-side",F1="closest-corner",Q1="farthest-corner",U1="circle",E1="ellipse",S1="cover",I1="contain",V4=function(e,A){var t=0,r=3,n=[],i=[];return wn(A).forEach(function(a,s){var o=!0;if(s===0){var c=!1;o=a.reduce(function(d,p){if(c)if(De(p))switch(p.value){case"center":return i.push(zf),d;case"top":case"left":return i.push(Mt),d;case"right":case"bottom":return i.push(oi),d}else(Ct(p)||si(p))&&i.push(p);else if(De(p))switch(p.value){case U1:return t=0,!1;case E1:return t=1,!1;case"at":return c=!0,!1;case C1:return r=0,!1;case S1:case x1:return r=1,!1;case I1:case F1:return r=2,!1;case Q1:return r=3,!1}else if(si(p)||Ct(p))return Array.isArray(r)||(r=[]),r.push(p),!1;return d},o)}if(o){var u=Nl(e,a);n.push(u)}}),{size:r,shape:t,stops:n,position:i,type:2}},Ol=function(e,A){var t=0,r=3,n=[],i=[];return wn(A).forEach(function(a,s){var o=!0;if(s===0?o=a.reduce(function(u,d){if(De(d))switch(d.value){case"center":return i.push(zf),!1;case"top":case"left":return i.push(Mt),!1;case"right":case"bottom":return i.push(oi),!1}else if(Ct(d)||si(d))return i.push(d),!1;return u},o):s===1&&(o=a.reduce(function(u,d){if(De(d))switch(d.value){case U1:return t=0,!1;case E1:return t=1,!1;case I1:case C1:return r=0,!1;case x1:return r=1,!1;case F1:return r=2,!1;case S1:case Q1:return r=3,!1}else if(si(d)||Ct(d))return Array.isArray(r)||(r=[]),r.push(d),!1;return u},o)),o){var c=Nl(e,a);n.push(c)}}),{size:r,shape:t,stops:n,position:i,type:2}},j4=function(e){return e.type===1},z4=function(e){return e.type===2},$f={name:"image",parse:function(e,A){if(A.type===22){var t={url:A.value,type:0};return e.cache.addImage(A.value),t}if(A.type===18){var r=L1[A.name];if(typeof r>"u")throw new Error('Attempting to parse an unsupported image function "'+A.name+'"');return r(e,A.values)}throw new Error("Unsupported image type "+A.type)}};function G4(e){return!(e.type===20&&e.value==="none")&&(e.type!==18||!!L1[e.name])}var L1={"linear-gradient":R4,"-moz-linear-gradient":Tl,"-ms-linear-gradient":Tl,"-o-linear-gradient":Tl,"-webkit-linear-gradient":Tl,"radial-gradient":V4,"-moz-radial-gradient":Ol,"-ms-radial-gradient":Ol,"-o-radial-gradient":Ol,"-webkit-radial-gradient":Ol,"-webkit-gradient":K4},$4={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(e,A){if(A.length===0)return[];var t=A[0];return t.type===20&&t.value==="none"?[]:A.filter(function(r){return La(r)&&G4(r)}).map(function(r){return $f.parse(e,r)})}},W4={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(e,A){return A.map(function(t){if(De(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},q4={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(e,A){return wn(A).map(function(t){return t.filter(Ct)}).map(u1)}},X4={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(e,A){return wn(A).map(function(t){return t.filter(De).map(function(r){return r.value}).join(" ")}).map(Y4)}},Y4=function(e){switch(e){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},Na;(function(e){e.AUTO="auto",e.CONTAIN="contain",e.COVER="cover"})(Na||(Na={}));var J4={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(e,A){return wn(A).map(function(t){return t.filter(Z4)})}},Z4=function(e){return De(e)||Ct(e)},Hl=function(e){return{name:"border-"+e+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},Ax=Hl("top"),ex=Hl("right"),tx=Hl("bottom"),rx=Hl("left"),_l=function(e){return{name:"border-radius-"+e,initialValue:"0 0",prefix:!1,type:1,parse:function(A,t){return u1(t.filter(Ct))}}},nx=_l("top-left"),ix=_l("top-right"),ax=_l("bottom-right"),sx=_l("bottom-left"),Pl=function(e){return{name:"border-"+e+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(A,t){switch(t){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},ox=Pl("top"),lx=Pl("right"),cx=Pl("bottom"),ux=Pl("left"),kl=function(e){return{name:"border-"+e+"-width",initialValue:"0",type:0,prefix:!1,parse:function(A,t){return qs(t)?t.number:0}}},fx=kl("top"),hx=kl("right"),dx=kl("bottom"),gx=kl("left"),px={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},vx={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(e,A){switch(A){case"rtl":return 1;case"ltr":default:return 0}}},Bx={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(e,A){return A.filter(De).reduce(function(t,r){return t|mx(r.value)},0)}},mx=function(e){switch(e){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},yx={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(e,A){switch(A){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},wx={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(e,A){return A.type===20&&A.value==="normal"?0:A.type===17||A.type===15?A.number:0}},Dl;(function(e){e.NORMAL="normal",e.STRICT="strict"})(Dl||(Dl={}));var bx={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,A){switch(A){case"strict":return Dl.STRICT;case"normal":default:return Dl.NORMAL}}},Cx={name:"line-height",initialValue:"normal",prefix:!1,type:4},N1=function(e,A){return De(e)&&e.value==="normal"?1.2*A:e.type===17?A*e.number:Ct(e)?ze(e,A):A},xx={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(e,A){return A.type===20&&A.value==="none"?null:$f.parse(e,A)}},Fx={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(e,A){switch(A){case"inside":return 0;case"outside":default:return 1}}},Wf={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(e,A){switch(A){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},Ml=function(e){return{name:"margin-"+e,initialValue:"0",prefix:!1,type:4}},Qx=Ml("top"),Ux=Ml("right"),Ex=Ml("bottom"),Sx=Ml("left"),Ix={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(e,A){return A.filter(De).map(function(t){switch(t.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},Lx={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(e,A){switch(A){case"break-word":return"break-word";case"normal":default:return"normal"}}},Rl=function(e){return{name:"padding-"+e,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Nx=Rl("top"),Tx=Rl("right"),Ox=Rl("bottom"),Hx=Rl("left"),_x={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(e,A){switch(A){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},Px={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(e,A){switch(A){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},kx={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,A){return A.length===1&&jf(A[0],"none")?[]:wn(A).map(function(t){for(var r={color:Pn.TRANSPARENT,offsetX:Mt,offsetY:Mt,blur:Mt},n=0,i=0;i<t.length;i++){var a=t[i];si(a)?(n===0?r.offsetX=a:n===1?r.offsetY=a:r.blur=a,n++):r.color=li.parse(e,a)}return r})}},Dx={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(e,A){switch(A){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},Mx={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(e,A){if(A.type===20&&A.value==="none")return null;if(A.type===18){var t=Vx[A.name];if(typeof t>"u")throw new Error('Attempting to parse an unsupported transform function "'+A.name+'"');return t(A.values)}return null}},Rx=function(e){var A=e.filter(function(t){return t.type===17}).map(function(t){return t.number});return A.length===6?A:null},Kx=function(e){var A=e.filter(function(o){return o.type===17}).map(function(o){return o.number}),t=A[0],r=A[1];A[2],A[3];var n=A[4],i=A[5];A[6],A[7],A[8],A[9],A[10],A[11];var a=A[12],s=A[13];return A[14],A[15],A.length===16?[t,r,n,i,a,s]:null},Vx={matrix:Rx,matrix3d:Kx},T1={type:16,number:50,flags:js},jx=[T1,T1],zx={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(e,A){var t=A.filter(Ct);return t.length!==2?jx:[t[0],t[1]]}},Gx={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(e,A){switch(A){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},Js;(function(e){e.NORMAL="normal",e.BREAK_ALL="break-all",e.KEEP_ALL="keep-all"})(Js||(Js={}));for(var $x={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,A){switch(A){case"break-all":return Js.BREAK_ALL;case"keep-all":return Js.KEEP_ALL;case"normal":default:return Js.NORMAL}}},Wx={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(e,A){if(A.type===20)return{auto:!0,order:0};if(Ia(A))return{auto:!1,order:A.number};throw new Error("Invalid z-index number parsed")}},O1={name:"time",parse:function(e,A){if(A.type===15)switch(A.unit.toLowerCase()){case"s":return 1e3*A.number;case"ms":return A.number}throw new Error("Unsupported time type")}},qx={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(e,A){return Ia(A)?A.number:1}},Xx={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Yx={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(e,A){return A.filter(De).map(function(t){switch(t.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(t){return t!==0})}},Jx={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(e,A){var t=[],r=[];return A.forEach(function(n){switch(n.type){case 20:case 0:t.push(n.value);break;case 17:t.push(n.number.toString());break;case 4:r.push(t.join(" ")),t.length=0;break}}),t.length&&r.push(t.join(" ")),r.map(function(n){return n.indexOf(" ")===-1?n:"'"+n+"'"})}},Zx={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},A3={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(e,A){if(Ia(A))return A.number;if(De(A))switch(A.value){case"bold":return 700;case"normal":default:return 400}return 400}},e3={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(e,A){return A.filter(De).map(function(t){return t.value})}},t3={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(e,A){switch(A){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},St=function(e,A){return(e&A)!==0},r3={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(e,A){if(A.length===0)return[];var t=A[0];return t.type===20&&t.value==="none"?[]:A}},n3={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(e,A){if(A.length===0)return null;var t=A[0];if(t.type===20&&t.value==="none")return null;for(var r=[],n=A.filter(c1),i=0;i<n.length;i++){var a=n[i],s=n[i+1];if(a.type===20){var o=s&&Ia(s)?s.number:1;r.push({counter:a.value,increment:o})}}return r}},i3={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(e,A){if(A.length===0)return[];for(var t=[],r=A.filter(c1),n=0;n<r.length;n++){var i=r[n],a=r[n+1];if(De(i)&&i.value!=="none"){var s=a&&Ia(a)?a.number:0;t.push({counter:i.value,reset:s})}}return t}},a3={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(e,A){return A.filter(qs).map(function(t){return O1.parse(e,t)})}},s3={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(e,A){if(A.length===0)return null;var t=A[0];if(t.type===20&&t.value==="none")return null;var r=[],n=A.filter(T4);if(n.length%2!==0)return null;for(var i=0;i<n.length;i+=2){var a=n[i].value,s=n[i+1].value;r.push({open:a,close:s})}return r}},H1=function(e,A,t){if(!e)return"";var r=e[Math.min(A,e.length-1)];return r?t?r.open:r.close:""},o3={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,A){return A.length===1&&jf(A[0],"none")?[]:wn(A).map(function(t){for(var r={color:255,offsetX:Mt,offsetY:Mt,blur:Mt,spread:Mt,inset:!1},n=0,i=0;i<t.length;i++){var a=t[i];jf(a,"inset")?r.inset=!0:si(a)?(n===0?r.offsetX=a:n===1?r.offsetY=a:n===2?r.blur=a:r.spread=a,n++):r.color=li.parse(e,a)}return r})}},l3={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(e,A){var t=[0,1,2],r=[];return A.filter(De).forEach(function(n){switch(n.value){case"stroke":r.push(1);break;case"fill":r.push(0);break;case"markers":r.push(2);break}}),t.forEach(function(n){r.indexOf(n)===-1&&r.push(n)}),r}},c3={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},u3={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(e,A){return qs(A)?A.number:0}},f3=function(){function e(A,t){var r,n;this.animationDuration=jA(A,a3,t.animationDuration),this.backgroundClip=jA(A,_4,t.backgroundClip),this.backgroundColor=jA(A,P4,t.backgroundColor),this.backgroundImage=jA(A,$4,t.backgroundImage),this.backgroundOrigin=jA(A,W4,t.backgroundOrigin),this.backgroundPosition=jA(A,q4,t.backgroundPosition),this.backgroundRepeat=jA(A,X4,t.backgroundRepeat),this.backgroundSize=jA(A,J4,t.backgroundSize),this.borderTopColor=jA(A,Ax,t.borderTopColor),this.borderRightColor=jA(A,ex,t.borderRightColor),this.borderBottomColor=jA(A,tx,t.borderBottomColor),this.borderLeftColor=jA(A,rx,t.borderLeftColor),this.borderTopLeftRadius=jA(A,nx,t.borderTopLeftRadius),this.borderTopRightRadius=jA(A,ix,t.borderTopRightRadius),this.borderBottomRightRadius=jA(A,ax,t.borderBottomRightRadius),this.borderBottomLeftRadius=jA(A,sx,t.borderBottomLeftRadius),this.borderTopStyle=jA(A,ox,t.borderTopStyle),this.borderRightStyle=jA(A,lx,t.borderRightStyle),this.borderBottomStyle=jA(A,cx,t.borderBottomStyle),this.borderLeftStyle=jA(A,ux,t.borderLeftStyle),this.borderTopWidth=jA(A,fx,t.borderTopWidth),this.borderRightWidth=jA(A,hx,t.borderRightWidth),this.borderBottomWidth=jA(A,dx,t.borderBottomWidth),this.borderLeftWidth=jA(A,gx,t.borderLeftWidth),this.boxShadow=jA(A,o3,t.boxShadow),this.color=jA(A,px,t.color),this.direction=jA(A,vx,t.direction),this.display=jA(A,Bx,t.display),this.float=jA(A,yx,t.cssFloat),this.fontFamily=jA(A,Jx,t.fontFamily),this.fontSize=jA(A,Zx,t.fontSize),this.fontStyle=jA(A,t3,t.fontStyle),this.fontVariant=jA(A,e3,t.fontVariant),this.fontWeight=jA(A,A3,t.fontWeight),this.letterSpacing=jA(A,wx,t.letterSpacing),this.lineBreak=jA(A,bx,t.lineBreak),this.lineHeight=jA(A,Cx,t.lineHeight),this.listStyleImage=jA(A,xx,t.listStyleImage),this.listStylePosition=jA(A,Fx,t.listStylePosition),this.listStyleType=jA(A,Wf,t.listStyleType),this.marginTop=jA(A,Qx,t.marginTop),this.marginRight=jA(A,Ux,t.marginRight),this.marginBottom=jA(A,Ex,t.marginBottom),this.marginLeft=jA(A,Sx,t.marginLeft),this.opacity=jA(A,qx,t.opacity);var i=jA(A,Ix,t.overflow);this.overflowX=i[0],this.overflowY=i[i.length>1?1:0],this.overflowWrap=jA(A,Lx,t.overflowWrap),this.paddingTop=jA(A,Nx,t.paddingTop),this.paddingRight=jA(A,Tx,t.paddingRight),this.paddingBottom=jA(A,Ox,t.paddingBottom),this.paddingLeft=jA(A,Hx,t.paddingLeft),this.paintOrder=jA(A,l3,t.paintOrder),this.position=jA(A,Px,t.position),this.textAlign=jA(A,_x,t.textAlign),this.textDecorationColor=jA(A,Xx,(r=t.textDecorationColor)!==null&&r!==void 0?r:t.color),this.textDecorationLine=jA(A,Yx,(n=t.textDecorationLine)!==null&&n!==void 0?n:t.textDecoration),this.textShadow=jA(A,kx,t.textShadow),this.textTransform=jA(A,Dx,t.textTransform),this.transform=jA(A,Mx,t.transform),this.transformOrigin=jA(A,zx,t.transformOrigin),this.visibility=jA(A,Gx,t.visibility),this.webkitTextStrokeColor=jA(A,c3,t.webkitTextStrokeColor),this.webkitTextStrokeWidth=jA(A,u3,t.webkitTextStrokeWidth),this.wordBreak=jA(A,$x,t.wordBreak),this.zIndex=jA(A,Wx,t.zIndex)}return e.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},e.prototype.isTransparent=function(){return ci(this.backgroundColor)},e.prototype.isTransformed=function(){return this.transform!==null},e.prototype.isPositioned=function(){return this.position!==0},e.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},e.prototype.isFloating=function(){return this.float!==0},e.prototype.isInlineLevel=function(){return St(this.display,4)||St(this.display,33554432)||St(this.display,268435456)||St(this.display,536870912)||St(this.display,67108864)||St(this.display,134217728)},e}(),h3=function(){function e(A,t){this.content=jA(A,r3,t.content),this.quotes=jA(A,s3,t.quotes)}return e}(),_1=function(){function e(A,t){this.counterIncrement=jA(A,n3,t.counterIncrement),this.counterReset=jA(A,i3,t.counterReset)}return e}(),jA=function(e,A,t){var r=new o1,n=t!==null&&typeof t<"u"?t.toString():A.initialValue;r.write(n);var i=new l1(r.read());switch(A.type){case 2:var a=i.parseComponentValue();return A.parse(e,De(a)?a.value:A.initialValue);case 0:return A.parse(e,i.parseComponentValue());case 1:return A.parse(e,i.parseComponentValues());case 4:return i.parseComponentValue();case 3:switch(A.format){case"angle":return Ll.parse(e,i.parseComponentValue());case"color":return li.parse(e,i.parseComponentValue());case"image":return $f.parse(e,i.parseComponentValue());case"length":var s=i.parseComponentValue();return si(s)?s:Mt;case"length-percentage":var o=i.parseComponentValue();return Ct(o)?o:Mt;case"time":return O1.parse(e,i.parseComponentValue())}break}},d3="data-html2canvas-debug",g3=function(e){var A=e.getAttribute(d3);switch(A){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},qf=function(e,A){var t=g3(e);return t===1||A===t},bn=function(){function e(A,t){if(this.context=A,this.textNodes=[],this.elements=[],this.flags=0,qf(t,3))debugger;this.styles=new f3(A,window.getComputedStyle(t,null)),lh(t)&&(this.styles.animationDuration.some(function(r){return r>0})&&(t.style.animationDuration="0s"),this.styles.transform!==null&&(t.style.transform="none")),this.bounds=ul(this.context,t),qf(t,4)&&(this.flags|=16)}return e}(),p3="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",P1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Zs=typeof Uint8Array>"u"?[]:new Uint8Array(256),Kl=0;Kl<P1.length;Kl++)Zs[P1.charCodeAt(Kl)]=Kl;for(var v3=function(e){var A=e.length*.75,t=e.length,r,n=0,i,a,s,o;e[e.length-1]==="="&&(A--,e[e.length-2]==="="&&A--);var c=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(A):new Array(A),u=Array.isArray(c)?c:new Uint8Array(c);for(r=0;r<t;r+=4)i=Zs[e.charCodeAt(r)],a=Zs[e.charCodeAt(r+1)],s=Zs[e.charCodeAt(r+2)],o=Zs[e.charCodeAt(r+3)],u[n++]=i<<2|a>>4,u[n++]=(a&15)<<4|s>>2,u[n++]=(s&3)<<6|o&63;return c},B3=function(e){for(var A=e.length,t=[],r=0;r<A;r+=2)t.push(e[r+1]<<8|e[r]);return t},m3=function(e){for(var A=e.length,t=[],r=0;r<A;r+=4)t.push(e[r+3]<<24|e[r+2]<<16|e[r+1]<<8|e[r]);return t},zi=5,Xf=11,Yf=2,y3=Xf-zi,k1=65536>>zi,w3=1<<zi,Jf=w3-1,b3=1024>>zi,C3=k1+b3,x3=C3,F3=32,Q3=x3+F3,U3=65536>>Xf,E3=1<<y3,S3=E3-1,D1=function(e,A,t){return e.slice?e.slice(A,t):new Uint16Array(Array.prototype.slice.call(e,A,t))},I3=function(e,A,t){return e.slice?e.slice(A,t):new Uint32Array(Array.prototype.slice.call(e,A,t))},L3=function(e,A){var t=v3(e),r=Array.isArray(t)?m3(t):new Uint32Array(t),n=Array.isArray(t)?B3(t):new Uint16Array(t),i=24,a=D1(n,i/2,r[4]/2),s=r[5]===2?D1(n,(i+r[4])/2):I3(r,Math.ceil((i+r[4])/4));return new N3(r[0],r[1],r[2],r[3],a,s)},N3=function(){function e(A,t,r,n,i,a){this.initialValue=A,this.errorValue=t,this.highStart=r,this.highValueIndex=n,this.index=i,this.data=a}return e.prototype.get=function(A){var t;if(A>=0){if(A<55296||A>56319&&A<=65535)return t=this.index[A>>zi],t=(t<<Yf)+(A&Jf),this.data[t];if(A<=65535)return t=this.index[k1+(A-55296>>zi)],t=(t<<Yf)+(A&Jf),this.data[t];if(A<this.highStart)return t=Q3-U3+(A>>Xf),t=this.index[t],t+=A>>zi&S3,t=this.index[t],t=(t<<Yf)+(A&Jf),this.data[t];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e}(),M1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",T3=typeof Uint8Array>"u"?[]:new Uint8Array(256),Vl=0;Vl<M1.length;Vl++)T3[M1.charCodeAt(Vl)]=Vl;var O3=1,Zf=2,Ah=3,R1=4,K1=5,H3=7,V1=8,eh=9,th=10,j1=11,z1=12,G1=13,$1=14,rh=15,_3=function(e){for(var A=[],t=0,r=e.length;t<r;){var n=e.charCodeAt(t++);if(n>=55296&&n<=56319&&t<r){var i=e.charCodeAt(t++);(i&64512)===56320?A.push(((n&1023)<<10)+(i&1023)+65536):(A.push(n),t--)}else A.push(n)}return A},P3=function(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var t=e.length;if(!t)return"";for(var r=[],n=-1,i="";++n<t;){var a=e[n];a<=65535?r.push(a):(a-=65536,r.push((a>>10)+55296,a%1024+56320)),(n+1===t||r.length>16384)&&(i+=String.fromCharCode.apply(String,r),r.length=0)}return i},k3=L3(p3),_r="×",nh="÷",D3=function(e){return k3.get(e)},M3=function(e,A,t){var r=t-2,n=A[r],i=A[t-1],a=A[t];if(i===Zf&&a===Ah)return _r;if(i===Zf||i===Ah||i===R1||a===Zf||a===Ah||a===R1)return nh;if(i===V1&&[V1,eh,j1,z1].indexOf(a)!==-1||(i===j1||i===eh)&&(a===eh||a===th)||(i===z1||i===th)&&a===th||a===G1||a===K1||a===H3||i===O3)return _r;if(i===G1&&a===$1){for(;n===K1;)n=A[--r];if(n===$1)return _r}if(i===rh&&a===rh){for(var s=0;n===rh;)s++,n=A[--r];if(s%2===0)return _r}return nh},R3=function(e){var A=_3(e),t=A.length,r=0,n=0,i=A.map(D3);return{next:function(){if(r>=t)return{done:!0,value:null};for(var a=_r;r<t&&(a=M3(A,i,++r))===_r;);if(a!==_r||r===t){var s=P3.apply(null,A.slice(n,r));return n=r,{value:s,done:!1}}return{done:!0,value:null}}}},K3=function(e){for(var A=R3(e),t=[],r;!(r=A.next()).done;)r.value&&t.push(r.value.slice());return t},V3=function(e){var A=123;if(e.createRange){var t=e.createRange();if(t.getBoundingClientRect){var r=e.createElement("boundtest");r.style.height=A+"px",r.style.display="block",e.body.appendChild(r),t.selectNode(r);var n=t.getBoundingClientRect(),i=Math.round(n.height);if(e.body.removeChild(r),i===A)return!0}}return!1},j3=function(e){var A=e.createElement("boundtest");A.style.width="50px",A.style.display="block",A.style.fontSize="12px",A.style.letterSpacing="0px",A.style.wordSpacing="0px",e.body.appendChild(A);var t=e.createRange();A.innerHTML=typeof"".repeat=="function"?"👨".repeat(10):"";var r=A.firstChild,n=fl(r.data).map(function(o){return ut(o)}),i=0,a={},s=n.every(function(o,c){t.setStart(r,i),t.setEnd(r,i+o.length);var u=t.getBoundingClientRect();i+=o.length;var d=u.x>a.x||u.y>a.y;return a=u,c===0?!0:d});return e.body.removeChild(A),s},z3=function(){return typeof new Image().crossOrigin<"u"},G3=function(){return typeof new XMLHttpRequest().responseType=="string"},$3=function(e){var A=new Image,t=e.createElement("canvas"),r=t.getContext("2d");if(!r)return!1;A.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{r.drawImage(A,0,0),t.toDataURL()}catch{return!1}return!0},W1=function(e){return e[0]===0&&e[1]===255&&e[2]===0&&e[3]===255},W3=function(e){var A=e.createElement("canvas"),t=100;A.width=t,A.height=t;var r=A.getContext("2d");if(!r)return Promise.reject(!1);r.fillStyle="rgb(0, 255, 0)",r.fillRect(0,0,t,t);var n=new Image,i=A.toDataURL();n.src=i;var a=ih(t,t,0,0,n);return r.fillStyle="red",r.fillRect(0,0,t,t),q1(a).then(function(s){r.drawImage(s,0,0);var o=r.getImageData(0,0,t,t).data;r.fillStyle="red",r.fillRect(0,0,t,t);var c=e.createElement("div");return c.style.backgroundImage="url("+i+")",c.style.height=t+"px",W1(o)?q1(ih(t,t,0,0,c)):Promise.reject(!1)}).then(function(s){return r.drawImage(s,0,0),W1(r.getImageData(0,0,t,t).data)}).catch(function(){return!1})},ih=function(e,A,t,r,n){var i="http://www.w3.org/2000/svg",a=document.createElementNS(i,"svg"),s=document.createElementNS(i,"foreignObject");return a.setAttributeNS(null,"width",e.toString()),a.setAttributeNS(null,"height",A.toString()),s.setAttributeNS(null,"width","100%"),s.setAttributeNS(null,"height","100%"),s.setAttributeNS(null,"x",t.toString()),s.setAttributeNS(null,"y",r.toString()),s.setAttributeNS(null,"externalResourcesRequired","true"),a.appendChild(s),s.appendChild(n),a},q1=function(e){return new Promise(function(A,t){var r=new Image;r.onload=function(){return A(r)},r.onerror=t,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(e))})},Rt={get SUPPORT_RANGE_BOUNDS(){var e=V3(document);return Object.defineProperty(Rt,"SUPPORT_RANGE_BOUNDS",{value:e}),e},get SUPPORT_WORD_BREAKING(){var e=Rt.SUPPORT_RANGE_BOUNDS&&j3(document);return Object.defineProperty(Rt,"SUPPORT_WORD_BREAKING",{value:e}),e},get SUPPORT_SVG_DRAWING(){var e=$3(document);return Object.defineProperty(Rt,"SUPPORT_SVG_DRAWING",{value:e}),e},get SUPPORT_FOREIGNOBJECT_DRAWING(){var e=typeof Array.from=="function"&&typeof window.fetch=="function"?W3(document):Promise.resolve(!1);return Object.defineProperty(Rt,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:e}),e},get SUPPORT_CORS_IMAGES(){var e=z3();return Object.defineProperty(Rt,"SUPPORT_CORS_IMAGES",{value:e}),e},get SUPPORT_RESPONSE_TYPE(){var e=G3();return Object.defineProperty(Rt,"SUPPORT_RESPONSE_TYPE",{value:e}),e},get SUPPORT_CORS_XHR(){var e="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Rt,"SUPPORT_CORS_XHR",{value:e}),e},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var e=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(Rt,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:e}),e}},Ao=function(){function e(A,t){this.text=A,this.bounds=t}return e}(),q3=function(e,A,t,r){var n=J3(A,t),i=[],a=0;return n.forEach(function(s){if(t.textDecorationLine.length||s.trim().length>0)if(Rt.SUPPORT_RANGE_BOUNDS){var o=X1(r,a,s.length).getClientRects();if(o.length>1){var c=ah(s),u=0;c.forEach(function(p){i.push(new Ao(p,Hn.fromDOMRectList(e,X1(r,u+a,p.length).getClientRects()))),u+=p.length})}else i.push(new Ao(s,Hn.fromDOMRectList(e,o)))}else{var d=r.splitText(s.length);i.push(new Ao(s,X3(e,r))),r=d}else Rt.SUPPORT_RANGE_BOUNDS||(r=r.splitText(s.length));a+=s.length}),i},X3=function(e,A){var t=A.ownerDocument;if(t){var r=t.createElement("html2canvaswrapper");r.appendChild(A.cloneNode(!0));var n=A.parentNode;if(n){n.replaceChild(r,A);var i=ul(e,r);return r.firstChild&&n.replaceChild(r.firstChild,r),i}}return Hn.EMPTY},X1=function(e,A,t){var r=e.ownerDocument;if(!r)throw new Error("Node has no owner document");var n=r.createRange();return n.setStart(e,A),n.setEnd(e,A+t),n},ah=function(e){if(Rt.SUPPORT_NATIVE_TEXT_SEGMENTATION){var A=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(A.segment(e)).map(function(t){return t.segment})}return K3(e)},Y3=function(e,A){if(Rt.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(t.segment(e)).map(function(r){return r.segment})}return AF(e,A)},J3=function(e,A){return A.letterSpacing!==0?ah(e):Y3(e,A)},Z3=[32,160,4961,65792,65793,4153,4241],AF=function(e,A){for(var t=UC(e,{lineBreak:A.lineBreak,wordBreak:A.overflowWrap==="break-word"?"break-word":A.wordBreak}),r=[],n,i=function(){if(n.value){var a=n.value.slice(),s=fl(a),o="";s.forEach(function(c){Z3.indexOf(c)===-1?o+=ut(c):(o.length&&r.push(o),r.push(ut(c)),o="")}),o.length&&r.push(o)}};!(n=t.next()).done;)i();return r},eF=function(){function e(A,t,r){this.text=tF(t.data,r.textTransform),this.textBounds=q3(A,this.text,r,t)}return e}(),tF=function(e,A){switch(A){case 1:return e.toLowerCase();case 3:return e.replace(rF,nF);case 2:return e.toUpperCase();default:return e}},rF=/(^|\s|:|-|\(|\))([a-z])/g,nF=function(e,A,t){return e.length>0?A+t.toUpperCase():e},Y1=function(e){Yr(A,e);function A(t,r){var n=e.call(this,t,r)||this;return n.src=r.currentSrc||r.src,n.intrinsicWidth=r.naturalWidth,n.intrinsicHeight=r.naturalHeight,n.context.cache.addImage(n.src),n}return A}(bn),J1=function(e){Yr(A,e);function A(t,r){var n=e.call(this,t,r)||this;return n.canvas=r,n.intrinsicWidth=r.width,n.intrinsicHeight=r.height,n}return A}(bn),Z1=function(e){Yr(A,e);function A(t,r){var n=e.call(this,t,r)||this,i=new XMLSerializer,a=ul(t,r);return r.setAttribute("width",a.width+"px"),r.setAttribute("height",a.height+"px"),n.svg="data:image/svg+xml,"+encodeURIComponent(i.serializeToString(r)),n.intrinsicWidth=r.width.baseVal.value,n.intrinsicHeight=r.height.baseVal.value,n.context.cache.addImage(n.svg),n}return A}(bn),A2=function(e){Yr(A,e);function A(t,r){var n=e.call(this,t,r)||this;return n.value=r.value,n}return A}(bn),sh=function(e){Yr(A,e);function A(t,r){var n=e.call(this,t,r)||this;return n.start=r.start,n.reversed=typeof r.reversed=="boolean"&&r.reversed===!0,n}return A}(bn),iF=[{type:15,flags:0,unit:"px",number:3}],aF=[{type:16,flags:0,number:50}],sF=function(e){return e.width>e.height?new Hn(e.left+(e.width-e.height)/2,e.top,e.height,e.height):e.width<e.height?new Hn(e.left,e.top+(e.height-e.width)/2,e.width,e.width):e},oF=function(e){var A=e.type===lF?new Array(e.value.length+1).join("•"):e.value;return A.length===0?e.placeholder||"":A},jl="checkbox",zl="radio",lF="password",e2=707406591,oh=function(e){Yr(A,e);function A(t,r){var n=e.call(this,t,r)||this;switch(n.type=r.type.toLowerCase(),n.checked=r.checked,n.value=oF(r),(n.type===jl||n.type===zl)&&(n.styles.backgroundColor=3739148031,n.styles.borderTopColor=n.styles.borderRightColor=n.styles.borderBottomColor=n.styles.borderLeftColor=2779096575,n.styles.borderTopWidth=n.styles.borderRightWidth=n.styles.borderBottomWidth=n.styles.borderLeftWidth=1,n.styles.borderTopStyle=n.styles.borderRightStyle=n.styles.borderBottomStyle=n.styles.borderLeftStyle=1,n.styles.backgroundClip=[0],n.styles.backgroundOrigin=[0],n.bounds=sF(n.bounds)),n.type){case jl:n.styles.borderTopRightRadius=n.styles.borderTopLeftRadius=n.styles.borderBottomRightRadius=n.styles.borderBottomLeftRadius=iF;break;case zl:n.styles.borderTopRightRadius=n.styles.borderTopLeftRadius=n.styles.borderBottomRightRadius=n.styles.borderBottomLeftRadius=aF;break}return n}return A}(bn),t2=function(e){Yr(A,e);function A(t,r){var n=e.call(this,t,r)||this,i=r.options[r.selectedIndex||0];return n.value=i&&i.text||"",n}return A}(bn),r2=function(e){Yr(A,e);function A(t,r){var n=e.call(this,t,r)||this;return n.value=r.value,n}return A}(bn),n2=function(e){Yr(A,e);function A(t,r){var n=e.call(this,t,r)||this;n.src=r.src,n.width=parseInt(r.width,10)||0,n.height=parseInt(r.height,10)||0,n.backgroundColor=n.styles.backgroundColor;try{if(r.contentWindow&&r.contentWindow.document&&r.contentWindow.document.documentElement){n.tree=a2(t,r.contentWindow.document.documentElement);var i=r.contentWindow.document.documentElement?Ys(t,getComputedStyle(r.contentWindow.document.documentElement).backgroundColor):Pn.TRANSPARENT,a=r.contentWindow.document.body?Ys(t,getComputedStyle(r.contentWindow.document.body).backgroundColor):Pn.TRANSPARENT;n.backgroundColor=ci(i)?ci(a)?n.styles.backgroundColor:a:i}}catch{}return n}return A}(bn),cF=["OL","UL","MENU"],Gl=function(e,A,t,r){for(var n=A.firstChild,i=void 0;n;n=i)if(i=n.nextSibling,s2(n)&&n.data.trim().length>0)t.textNodes.push(new eF(e,n,t.styles));else if(Ta(n))if(h2(n)&&n.assignedNodes)n.assignedNodes().forEach(function(s){return Gl(e,s,t,r)});else{var a=i2(e,n);a.styles.isVisible()&&(uF(n,a,r)?a.flags|=4:fF(a.styles)&&(a.flags|=2),cF.indexOf(n.tagName)!==-1&&(a.flags|=8),t.elements.push(a),n.slot,n.shadowRoot?Gl(e,n.shadowRoot,a,r):!Wl(n)&&!o2(n)&&!ql(n)&&Gl(e,n,a,r))}},i2=function(e,A){return uh(A)?new Y1(e,A):l2(A)?new J1(e,A):o2(A)?new Z1(e,A):hF(A)?new A2(e,A):dF(A)?new sh(e,A):gF(A)?new oh(e,A):ql(A)?new t2(e,A):Wl(A)?new r2(e,A):u2(A)?new n2(e,A):new bn(e,A)},a2=function(e,A){var t=i2(e,A);return t.flags|=4,Gl(e,A,t,t),t},uF=function(e,A,t){return A.styles.isPositionedWithZIndex()||A.styles.opacity<1||A.styles.isTransformed()||ch(e)&&t.styles.isTransparent()},fF=function(e){return e.isPositioned()||e.isFloating()},s2=function(e){return e.nodeType===Node.TEXT_NODE},Ta=function(e){return e.nodeType===Node.ELEMENT_NODE},lh=function(e){return Ta(e)&&typeof e.style<"u"&&!$l(e)},$l=function(e){return typeof e.className=="object"},hF=function(e){return e.tagName==="LI"},dF=function(e){return e.tagName==="OL"},gF=function(e){return e.tagName==="INPUT"},pF=function(e){return e.tagName==="HTML"},o2=function(e){return e.tagName==="svg"},ch=function(e){return e.tagName==="BODY"},l2=function(e){return e.tagName==="CANVAS"},c2=function(e){return e.tagName==="VIDEO"},uh=function(e){return e.tagName==="IMG"},u2=function(e){return e.tagName==="IFRAME"},f2=function(e){return e.tagName==="STYLE"},vF=function(e){return e.tagName==="SCRIPT"},Wl=function(e){return e.tagName==="TEXTAREA"},ql=function(e){return e.tagName==="SELECT"},h2=function(e){return e.tagName==="SLOT"},d2=function(e){return e.tagName.indexOf("-")>0},BF=function(){function e(){this.counters={}}return e.prototype.getCounterValue=function(A){var t=this.counters[A];return t&&t.length?t[t.length-1]:1},e.prototype.getCounterValues=function(A){var t=this.counters[A];return t||[]},e.prototype.pop=function(A){var t=this;A.forEach(function(r){return t.counters[r].pop()})},e.prototype.parse=function(A){var t=this,r=A.counterIncrement,n=A.counterReset,i=!0;r!==null&&r.forEach(function(s){var o=t.counters[s.counter];o&&s.increment!==0&&(i=!1,o.length||o.push(1),o[Math.max(0,o.length-1)]+=s.increment)});var a=[];return i&&n.forEach(function(s){var o=t.counters[s.counter];a.push(s.counter),o||(o=t.counters[s.counter]=[]),o.push(s.reset)}),a},e}(),g2={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},p2={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},mF={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},yF={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},Oa=function(e,A,t,r,n,i){return e<A||e>t?to(e,n,i.length>0):r.integers.reduce(function(a,s,o){for(;e>=s;)e-=s,a+=r.values[o];return a},"")+i},v2=function(e,A,t,r){var n="";do t||e--,n=r(e)+n,e/=A;while(e*A>=A);return n},ft=function(e,A,t,r,n){var i=t-A+1;return(e<0?"-":"")+(v2(Math.abs(e),i,r,function(a){return ut(Math.floor(a%i)+A)})+n)},Gi=function(e,A,t){t===void 0&&(t=". ");var r=A.length;return v2(Math.abs(e),r,!1,function(n){return A[Math.floor(n%r)]})+t},Ha=1,fi=2,hi=4,eo=8,kn=function(e,A,t,r,n,i){if(e<-9999||e>9999)return to(e,4,n.length>0);var a=Math.abs(e),s=n;if(a===0)return A[0]+s;for(var o=0;a>0&&o<=4;o++){var c=a%10;c===0&&St(i,Ha)&&s!==""?s=A[c]+s:c>1||c===1&&o===0||c===1&&o===1&&St(i,fi)||c===1&&o===1&&St(i,hi)&&e>100||c===1&&o>1&&St(i,eo)?s=A[c]+(o>0?t[o-1]:"")+s:c===1&&o>0&&(s=t[o-1]+s),a=Math.floor(a/10)}return(e<0?r:"")+s},B2="十百千萬",m2="拾佰仟萬",y2="マイナス",fh="마이너스",to=function(e,A,t){var r=t?". ":"",n=t?"、":"",i=t?", ":"",a=t?" ":"";switch(A){case 0:return"•"+a;case 1:return"◦"+a;case 2:return"◾"+a;case 5:var s=ft(e,48,57,!0,r);return s.length<4?"0"+s:s;case 4:return Gi(e,"〇一二三四五六七八九",n);case 6:return Oa(e,1,3999,g2,3,r).toLowerCase();case 7:return Oa(e,1,3999,g2,3,r);case 8:return ft(e,945,969,!1,r);case 9:return ft(e,97,122,!1,r);case 10:return ft(e,65,90,!1,r);case 11:return ft(e,1632,1641,!0,r);case 12:case 49:return Oa(e,1,9999,p2,3,r);case 35:return Oa(e,1,9999,p2,3,r).toLowerCase();case 13:return ft(e,2534,2543,!0,r);case 14:case 30:return ft(e,6112,6121,!0,r);case 15:return Gi(e,"子丑寅卯辰巳午未申酉戌亥",n);case 16:return Gi(e,"甲乙丙丁戊己庚辛壬癸",n);case 17:case 48:return kn(e,"零一二三四五六七八九",B2,"負",n,fi|hi|eo);case 47:return kn(e,"零壹貳參肆伍陸柒捌玖",m2,"負",n,Ha|fi|hi|eo);case 42:return kn(e,"零一二三四五六七八九",B2,"负",n,fi|hi|eo);case 41:return kn(e,"零壹贰叁肆伍陆柒捌玖",m2,"负",n,Ha|fi|hi|eo);case 26:return kn(e,"〇一二三四五六七八九","十百千万",y2,n,0);case 25:return kn(e,"零壱弐参四伍六七八九","拾百千万",y2,n,Ha|fi|hi);case 31:return kn(e,"영일이삼사오육칠팔구","십백천만",fh,i,Ha|fi|hi);case 33:return kn(e,"零一二三四五六七八九","十百千萬",fh,i,0);case 32:return kn(e,"零壹貳參四五六七八九","拾百千",fh,i,Ha|fi|hi);case 18:return ft(e,2406,2415,!0,r);case 20:return Oa(e,1,19999,yF,3,r);case 21:return ft(e,2790,2799,!0,r);case 22:return ft(e,2662,2671,!0,r);case 22:return Oa(e,1,10999,mF,3,r);case 23:return Gi(e,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return Gi(e,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return ft(e,3302,3311,!0,r);case 28:return Gi(e,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",n);case 29:return Gi(e,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",n);case 34:return ft(e,3792,3801,!0,r);case 37:return ft(e,6160,6169,!0,r);case 38:return ft(e,4160,4169,!0,r);case 39:return ft(e,2918,2927,!0,r);case 40:return ft(e,1776,1785,!0,r);case 43:return ft(e,3046,3055,!0,r);case 44:return ft(e,3174,3183,!0,r);case 45:return ft(e,3664,3673,!0,r);case 46:return ft(e,3872,3881,!0,r);case 3:default:return ft(e,48,57,!0,r)}},w2="data-html2canvas-ignore",b2=function(){function e(A,t,r){if(this.context=A,this.options=r,this.scrolledElements=[],this.referenceElement=t,this.counters=new BF,this.quoteDepth=0,!t.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(t.ownerDocument.documentElement,!1)}return e.prototype.toIFrame=function(A,t){var r=this,n=wF(A,t);if(!n.contentWindow)return Promise.reject("Unable to find iframe window");var i=A.defaultView.pageXOffset,a=A.defaultView.pageYOffset,s=n.contentWindow,o=s.document,c=xF(n).then(function(){return nr(r,void 0,void 0,function(){var u,d;return Wt(this,function(p){switch(p.label){case 0:return this.scrolledElements.forEach(EF),s&&(s.scrollTo(t.left,t.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(s.scrollY!==t.top||s.scrollX!==t.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(s.scrollX-t.left,s.scrollY-t.top,0,0))),u=this.options.onclone,d=this.clonedReferenceElement,typeof d>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:o.fonts&&o.fonts.ready?[4,o.fonts.ready]:[3,2];case 1:p.sent(),p.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,CF(o)]:[3,4];case 3:p.sent(),p.label=4;case 4:return typeof u=="function"?[2,Promise.resolve().then(function(){return u(o,d)}).then(function(){return n})]:[2,n]}})})});return o.open(),o.write(QF(document.doctype)+"<html></html>"),UF(this.referenceElement.ownerDocument,i,a),o.replaceChild(o.adoptNode(this.documentElement),o.documentElement),o.close(),c},e.prototype.createElementClone=function(A){if(qf(A,2))debugger;if(l2(A))return this.createCanvasClone(A);if(c2(A))return this.createVideoClone(A);if(f2(A))return this.createStyleClone(A);var t=A.cloneNode(!1);return uh(t)&&(uh(A)&&A.currentSrc&&A.currentSrc!==A.src&&(t.src=A.currentSrc,t.srcset=""),t.loading==="lazy"&&(t.loading="eager")),d2(t)?this.createCustomElementClone(t):t},e.prototype.createCustomElementClone=function(A){var t=document.createElement("html2canvascustomelement");return hh(A.style,t),t},e.prototype.createStyleClone=function(A){try{var t=A.sheet;if(t&&t.cssRules){var r=[].slice.call(t.cssRules,0).reduce(function(i,a){return a&&typeof a.cssText=="string"?i+a.cssText:i},""),n=A.cloneNode(!1);return n.textContent=r,n}}catch(i){if(this.context.logger.error("Unable to access cssRules property",i),i.name!=="SecurityError")throw i}return A.cloneNode(!1)},e.prototype.createCanvasClone=function(A){var t;if(this.options.inlineImages&&A.ownerDocument){var r=A.ownerDocument.createElement("img");try{return r.src=A.toDataURL(),r}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",A)}}var n=A.cloneNode(!1);try{n.width=A.width,n.height=A.height;var i=A.getContext("2d"),a=n.getContext("2d");if(a)if(!this.options.allowTaint&&i)a.putImageData(i.getImageData(0,0,A.width,A.height),0,0);else{var s=(t=A.getContext("webgl2"))!==null&&t!==void 0?t:A.getContext("webgl");if(s){var o=s.getContextAttributes();(o==null?void 0:o.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",A)}a.drawImage(A,0,0)}return n}catch{this.context.logger.info("Unable to clone canvas as it is tainted",A)}return n},e.prototype.createVideoClone=function(A){var t=A.ownerDocument.createElement("canvas");t.width=A.offsetWidth,t.height=A.offsetHeight;var r=t.getContext("2d");try{return r&&(r.drawImage(A,0,0,t.width,t.height),this.options.allowTaint||r.getImageData(0,0,t.width,t.height)),t}catch{this.context.logger.info("Unable to clone video as it is tainted",A)}var n=A.ownerDocument.createElement("canvas");return n.width=A.offsetWidth,n.height=A.offsetHeight,n},e.prototype.appendChildNode=function(A,t,r){(!Ta(t)||!vF(t)&&!t.hasAttribute(w2)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(t)))&&(!this.options.copyStyles||!Ta(t)||!f2(t))&&A.appendChild(this.cloneNode(t,r))},e.prototype.cloneChildNodes=function(A,t,r){for(var n=this,i=A.shadowRoot?A.shadowRoot.firstChild:A.firstChild;i;i=i.nextSibling)if(Ta(i)&&h2(i)&&typeof i.assignedNodes=="function"){var a=i.assignedNodes();a.length&&a.forEach(function(s){return n.appendChildNode(t,s,r)})}else this.appendChildNode(t,i,r)},e.prototype.cloneNode=function(A,t){if(s2(A))return document.createTextNode(A.data);if(!A.ownerDocument)return A.cloneNode(!1);var r=A.ownerDocument.defaultView;if(r&&Ta(A)&&(lh(A)||$l(A))){var n=this.createElementClone(A);n.style.transitionProperty="none";var i=r.getComputedStyle(A),a=r.getComputedStyle(A,":before"),s=r.getComputedStyle(A,":after");this.referenceElement===A&&lh(n)&&(this.clonedReferenceElement=n),ch(n)&&LF(n);var o=this.counters.parse(new _1(this.context,i)),c=this.resolvePseudoContent(A,n,a,ro.BEFORE);d2(A)&&(t=!0),c2(A)||this.cloneChildNodes(A,n,t),c&&n.insertBefore(c,n.firstChild);var u=this.resolvePseudoContent(A,n,s,ro.AFTER);return u&&n.appendChild(u),this.counters.pop(o),(i&&(this.options.copyStyles||$l(A))&&!u2(A)||t)&&hh(i,n),(A.scrollTop!==0||A.scrollLeft!==0)&&this.scrolledElements.push([n,A.scrollLeft,A.scrollTop]),(Wl(A)||ql(A))&&(Wl(n)||ql(n))&&(n.value=A.value),n}return A.cloneNode(!1)},e.prototype.resolvePseudoContent=function(A,t,r,n){var i=this;if(r){var a=r.content,s=t.ownerDocument;if(!(!s||!a||a==="none"||a==="-moz-alt-content"||r.display==="none")){this.counters.parse(new _1(this.context,r));var o=new h3(this.context,r),c=s.createElement("html2canvaspseudoelement");hh(r,c),o.content.forEach(function(d){if(d.type===0)c.appendChild(s.createTextNode(d.value));else if(d.type===22){var p=s.createElement("img");p.src=d.value,p.style.opacity="1",c.appendChild(p)}else if(d.type===18){if(d.name==="attr"){var h=d.values.filter(De);h.length&&c.appendChild(s.createTextNode(A.getAttribute(h[0].value)||""))}else if(d.name==="counter"){var m=d.values.filter(La),B=m[0],C=m[1];if(B&&De(B)){var b=i.counters.getCounterValue(B.value),Q=C&&De(C)?Wf.parse(i.context,C.value):3;c.appendChild(s.createTextNode(to(b,Q,!1)))}}else if(d.name==="counters"){var L=d.values.filter(La),B=L[0],D=L[1],C=L[2];if(B&&De(B)){var O=i.counters.getCounterValues(B.value),z=C&&De(C)?Wf.parse(i.context,C.value):3,R=D&&D.type===0?D.value:"",_=O.map(function(N){return to(N,z,!1)}).join(R);c.appendChild(s.createTextNode(_))}}}else if(d.type===20)switch(d.value){case"open-quote":c.appendChild(s.createTextNode(H1(o.quotes,i.quoteDepth++,!0)));break;case"close-quote":c.appendChild(s.createTextNode(H1(o.quotes,--i.quoteDepth,!1)));break;default:c.appendChild(s.createTextNode(d.value))}}),c.className=dh+" "+gh;var u=n===ro.BEFORE?" "+dh:" "+gh;return $l(t)?t.className.baseValue+=u:t.className+=u,c}}},e.destroy=function(A){return A.parentNode?(A.parentNode.removeChild(A),!0):!1},e}(),ro;(function(e){e[e.BEFORE=0]="BEFORE",e[e.AFTER=1]="AFTER"})(ro||(ro={}));var wF=function(e,A){var t=e.createElement("iframe");return t.className="html2canvas-container",t.style.visibility="hidden",t.style.position="fixed",t.style.left="-10000px",t.style.top="0px",t.style.border="0",t.width=A.width.toString(),t.height=A.height.toString(),t.scrolling="no",t.setAttribute(w2,"true"),e.body.appendChild(t),t},bF=function(e){return new Promise(function(A){if(e.complete){A();return}if(!e.src){A();return}e.onload=A,e.onerror=A})},CF=function(e){return Promise.all([].slice.call(e.images,0).map(bF))},xF=function(e){return new Promise(function(A,t){var r=e.contentWindow;if(!r)return t("No window assigned for iframe");var n=r.document;r.onload=e.onload=function(){r.onload=e.onload=null;var i=setInterval(function(){n.body.childNodes.length>0&&n.readyState==="complete"&&(clearInterval(i),A(e))},50)}})},FF=["all","d","content"],hh=function(e,A){for(var t=e.length-1;t>=0;t--){var r=e.item(t);FF.indexOf(r)===-1&&A.style.setProperty(r,e.getPropertyValue(r))}return A},QF=function(e){var A="";return e&&(A+="<!DOCTYPE ",e.name&&(A+=e.name),e.internalSubset&&(A+=e.internalSubset),e.publicId&&(A+='"'+e.publicId+'"'),e.systemId&&(A+='"'+e.systemId+'"'),A+=">"),A},UF=function(e,A,t){e&&e.defaultView&&(A!==e.defaultView.pageXOffset||t!==e.defaultView.pageYOffset)&&e.defaultView.scrollTo(A,t)},EF=function(e){var A=e[0],t=e[1],r=e[2];A.scrollLeft=t,A.scrollTop=r},SF=":before",IF=":after",dh="___html2canvas___pseudoelement_before",gh="___html2canvas___pseudoelement_after",C2=`{
|
|
241
|
+
content: "" !important;
|
|
242
|
+
display: none !important;
|
|
243
|
+
}`,LF=function(e){NF(e,"."+dh+SF+C2+`
|
|
244
|
+
.`+gh+IF+C2)},NF=function(e,A){var t=e.ownerDocument;if(t){var r=t.createElement("style");r.textContent=A,e.appendChild(r)}},x2=function(){function e(){}return e.getOrigin=function(A){var t=e._link;return t?(t.href=A,t.href=t.href,t.protocol+t.hostname+t.port):"about:blank"},e.isSameOrigin=function(A){return e.getOrigin(A)===e._origin},e.setContext=function(A){e._link=A.document.createElement("a"),e._origin=e.getOrigin(A.location.href)},e._origin="about:blank",e}(),TF=function(){function e(A,t){this.context=A,this._options=t,this._cache={}}return e.prototype.addImage=function(A){var t=Promise.resolve();return this.has(A)||(vh(A)||PF(A))&&(this._cache[A]=this.loadImage(A)).catch(function(){}),t},e.prototype.match=function(A){return this._cache[A]},e.prototype.loadImage=function(A){return nr(this,void 0,void 0,function(){var t,r,n,i,a=this;return Wt(this,function(s){switch(s.label){case 0:return t=x2.isSameOrigin(A),r=!ph(A)&&this._options.useCORS===!0&&Rt.SUPPORT_CORS_IMAGES&&!t,n=!ph(A)&&!t&&!vh(A)&&typeof this._options.proxy=="string"&&Rt.SUPPORT_CORS_XHR&&!r,!t&&this._options.allowTaint===!1&&!ph(A)&&!vh(A)&&!n&&!r?[2]:(i=A,n?[4,this.proxy(i)]:[3,2]);case 1:i=s.sent(),s.label=2;case 2:return this.context.logger.debug("Added image "+A.substring(0,256)),[4,new Promise(function(o,c){var u=new Image;u.onload=function(){return o(u)},u.onerror=c,(kF(i)||r)&&(u.crossOrigin="anonymous"),u.src=i,u.complete===!0&&setTimeout(function(){return o(u)},500),a._options.imageTimeout>0&&setTimeout(function(){return c("Timed out ("+a._options.imageTimeout+"ms) loading image")},a._options.imageTimeout)})];case 3:return[2,s.sent()]}})})},e.prototype.has=function(A){return typeof this._cache[A]<"u"},e.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},e.prototype.proxy=function(A){var t=this,r=this._options.proxy;if(!r)throw new Error("No proxy defined");var n=A.substring(0,256);return new Promise(function(i,a){var s=Rt.SUPPORT_RESPONSE_TYPE?"blob":"text",o=new XMLHttpRequest;o.onload=function(){if(o.status===200)if(s==="text")i(o.response);else{var d=new FileReader;d.addEventListener("load",function(){return i(d.result)},!1),d.addEventListener("error",function(p){return a(p)},!1),d.readAsDataURL(o.response)}else a("Failed to proxy resource "+n+" with status code "+o.status)},o.onerror=a;var c=r.indexOf("?")>-1?"&":"?";if(o.open("GET",""+r+c+"url="+encodeURIComponent(A)+"&responseType="+s),s!=="text"&&o instanceof XMLHttpRequest&&(o.responseType=s),t._options.imageTimeout){var u=t._options.imageTimeout;o.timeout=u,o.ontimeout=function(){return a("Timed out ("+u+"ms) proxying "+n)}}o.send()})},e}(),OF=/^data:image\/svg\+xml/i,HF=/^data:image\/.*;base64,/i,_F=/^data:image\/.*/i,PF=function(e){return Rt.SUPPORT_SVG_DRAWING||!DF(e)},ph=function(e){return _F.test(e)},kF=function(e){return HF.test(e)},vh=function(e){return e.substr(0,4)==="blob"},DF=function(e){return e.substr(-3).toLowerCase()==="svg"||OF.test(e)},DA=function(){function e(A,t){this.type=0,this.x=A,this.y=t}return e.prototype.add=function(A,t){return new e(this.x+A,this.y+t)},e}(),_a=function(e,A,t){return new DA(e.x+(A.x-e.x)*t,e.y+(A.y-e.y)*t)},Xl=function(){function e(A,t,r,n){this.type=1,this.start=A,this.startControl=t,this.endControl=r,this.end=n}return e.prototype.subdivide=function(A,t){var r=_a(this.start,this.startControl,A),n=_a(this.startControl,this.endControl,A),i=_a(this.endControl,this.end,A),a=_a(r,n,A),s=_a(n,i,A),o=_a(a,s,A);return t?new e(this.start,r,a,o):new e(o,s,i,this.end)},e.prototype.add=function(A,t){return new e(this.start.add(A,t),this.startControl.add(A,t),this.endControl.add(A,t),this.end.add(A,t))},e.prototype.reverse=function(){return new e(this.end,this.endControl,this.startControl,this.start)},e}(),Pr=function(e){return e.type===1},MF=function(){function e(A){var t=A.styles,r=A.bounds,n=Xs(t.borderTopLeftRadius,r.width,r.height),i=n[0],a=n[1],s=Xs(t.borderTopRightRadius,r.width,r.height),o=s[0],c=s[1],u=Xs(t.borderBottomRightRadius,r.width,r.height),d=u[0],p=u[1],h=Xs(t.borderBottomLeftRadius,r.width,r.height),m=h[0],B=h[1],C=[];C.push((i+o)/r.width),C.push((m+d)/r.width),C.push((a+B)/r.height),C.push((c+p)/r.height);var b=Math.max.apply(Math,C);b>1&&(i/=b,a/=b,o/=b,c/=b,d/=b,p/=b,m/=b,B/=b);var Q=r.width-o,L=r.height-p,D=r.width-d,O=r.height-B,z=t.borderTopWidth,R=t.borderRightWidth,_=t.borderBottomWidth,X=t.borderLeftWidth,nA=ze(t.paddingTop,A.bounds.width),N=ze(t.paddingRight,A.bounds.width),T=ze(t.paddingBottom,A.bounds.width),M=ze(t.paddingLeft,A.bounds.width);this.topLeftBorderDoubleOuterBox=i>0||a>0?Ye(r.left+X/3,r.top+z/3,i-X/3,a-z/3,Te.TOP_LEFT):new DA(r.left+X/3,r.top+z/3),this.topRightBorderDoubleOuterBox=i>0||a>0?Ye(r.left+Q,r.top+z/3,o-R/3,c-z/3,Te.TOP_RIGHT):new DA(r.left+r.width-R/3,r.top+z/3),this.bottomRightBorderDoubleOuterBox=d>0||p>0?Ye(r.left+D,r.top+L,d-R/3,p-_/3,Te.BOTTOM_RIGHT):new DA(r.left+r.width-R/3,r.top+r.height-_/3),this.bottomLeftBorderDoubleOuterBox=m>0||B>0?Ye(r.left+X/3,r.top+O,m-X/3,B-_/3,Te.BOTTOM_LEFT):new DA(r.left+X/3,r.top+r.height-_/3),this.topLeftBorderDoubleInnerBox=i>0||a>0?Ye(r.left+X*2/3,r.top+z*2/3,i-X*2/3,a-z*2/3,Te.TOP_LEFT):new DA(r.left+X*2/3,r.top+z*2/3),this.topRightBorderDoubleInnerBox=i>0||a>0?Ye(r.left+Q,r.top+z*2/3,o-R*2/3,c-z*2/3,Te.TOP_RIGHT):new DA(r.left+r.width-R*2/3,r.top+z*2/3),this.bottomRightBorderDoubleInnerBox=d>0||p>0?Ye(r.left+D,r.top+L,d-R*2/3,p-_*2/3,Te.BOTTOM_RIGHT):new DA(r.left+r.width-R*2/3,r.top+r.height-_*2/3),this.bottomLeftBorderDoubleInnerBox=m>0||B>0?Ye(r.left+X*2/3,r.top+O,m-X*2/3,B-_*2/3,Te.BOTTOM_LEFT):new DA(r.left+X*2/3,r.top+r.height-_*2/3),this.topLeftBorderStroke=i>0||a>0?Ye(r.left+X/2,r.top+z/2,i-X/2,a-z/2,Te.TOP_LEFT):new DA(r.left+X/2,r.top+z/2),this.topRightBorderStroke=i>0||a>0?Ye(r.left+Q,r.top+z/2,o-R/2,c-z/2,Te.TOP_RIGHT):new DA(r.left+r.width-R/2,r.top+z/2),this.bottomRightBorderStroke=d>0||p>0?Ye(r.left+D,r.top+L,d-R/2,p-_/2,Te.BOTTOM_RIGHT):new DA(r.left+r.width-R/2,r.top+r.height-_/2),this.bottomLeftBorderStroke=m>0||B>0?Ye(r.left+X/2,r.top+O,m-X/2,B-_/2,Te.BOTTOM_LEFT):new DA(r.left+X/2,r.top+r.height-_/2),this.topLeftBorderBox=i>0||a>0?Ye(r.left,r.top,i,a,Te.TOP_LEFT):new DA(r.left,r.top),this.topRightBorderBox=o>0||c>0?Ye(r.left+Q,r.top,o,c,Te.TOP_RIGHT):new DA(r.left+r.width,r.top),this.bottomRightBorderBox=d>0||p>0?Ye(r.left+D,r.top+L,d,p,Te.BOTTOM_RIGHT):new DA(r.left+r.width,r.top+r.height),this.bottomLeftBorderBox=m>0||B>0?Ye(r.left,r.top+O,m,B,Te.BOTTOM_LEFT):new DA(r.left,r.top+r.height),this.topLeftPaddingBox=i>0||a>0?Ye(r.left+X,r.top+z,Math.max(0,i-X),Math.max(0,a-z),Te.TOP_LEFT):new DA(r.left+X,r.top+z),this.topRightPaddingBox=o>0||c>0?Ye(r.left+Math.min(Q,r.width-R),r.top+z,Q>r.width+R?0:Math.max(0,o-R),Math.max(0,c-z),Te.TOP_RIGHT):new DA(r.left+r.width-R,r.top+z),this.bottomRightPaddingBox=d>0||p>0?Ye(r.left+Math.min(D,r.width-X),r.top+Math.min(L,r.height-_),Math.max(0,d-R),Math.max(0,p-_),Te.BOTTOM_RIGHT):new DA(r.left+r.width-R,r.top+r.height-_),this.bottomLeftPaddingBox=m>0||B>0?Ye(r.left+X,r.top+Math.min(O,r.height-_),Math.max(0,m-X),Math.max(0,B-_),Te.BOTTOM_LEFT):new DA(r.left+X,r.top+r.height-_),this.topLeftContentBox=i>0||a>0?Ye(r.left+X+M,r.top+z+nA,Math.max(0,i-(X+M)),Math.max(0,a-(z+nA)),Te.TOP_LEFT):new DA(r.left+X+M,r.top+z+nA),this.topRightContentBox=o>0||c>0?Ye(r.left+Math.min(Q,r.width+X+M),r.top+z+nA,Q>r.width+X+M?0:o-X+M,c-(z+nA),Te.TOP_RIGHT):new DA(r.left+r.width-(R+N),r.top+z+nA),this.bottomRightContentBox=d>0||p>0?Ye(r.left+Math.min(D,r.width-(X+M)),r.top+Math.min(L,r.height+z+nA),Math.max(0,d-(R+N)),p-(_+T),Te.BOTTOM_RIGHT):new DA(r.left+r.width-(R+N),r.top+r.height-(_+T)),this.bottomLeftContentBox=m>0||B>0?Ye(r.left+X+M,r.top+O,Math.max(0,m-(X+M)),B-(_+T),Te.BOTTOM_LEFT):new DA(r.left+X+M,r.top+r.height-(_+T))}return e}(),Te;(function(e){e[e.TOP_LEFT=0]="TOP_LEFT",e[e.TOP_RIGHT=1]="TOP_RIGHT",e[e.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",e[e.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(Te||(Te={}));var Ye=function(e,A,t,r,n){var i=4*((Math.sqrt(2)-1)/3),a=t*i,s=r*i,o=e+t,c=A+r;switch(n){case Te.TOP_LEFT:return new Xl(new DA(e,c),new DA(e,c-s),new DA(o-a,A),new DA(o,A));case Te.TOP_RIGHT:return new Xl(new DA(e,A),new DA(e+a,A),new DA(o,c-s),new DA(o,c));case Te.BOTTOM_RIGHT:return new Xl(new DA(o,A),new DA(o,A+s),new DA(e+a,c),new DA(e,c));case Te.BOTTOM_LEFT:default:return new Xl(new DA(o,c),new DA(o-a,c),new DA(e,A+s),new DA(e,A))}},Yl=function(e){return[e.topLeftBorderBox,e.topRightBorderBox,e.bottomRightBorderBox,e.bottomLeftBorderBox]},RF=function(e){return[e.topLeftContentBox,e.topRightContentBox,e.bottomRightContentBox,e.bottomLeftContentBox]},Jl=function(e){return[e.topLeftPaddingBox,e.topRightPaddingBox,e.bottomRightPaddingBox,e.bottomLeftPaddingBox]},KF=function(){function e(A,t,r){this.offsetX=A,this.offsetY=t,this.matrix=r,this.type=0,this.target=6}return e}(),Zl=function(){function e(A,t){this.path=A,this.target=t,this.type=1}return e}(),VF=function(){function e(A){this.opacity=A,this.type=2,this.target=6}return e}(),jF=function(e){return e.type===0},F2=function(e){return e.type===1},zF=function(e){return e.type===2},Q2=function(e,A){return e.length===A.length?e.some(function(t,r){return t===A[r]}):!1},GF=function(e,A,t,r,n){return e.map(function(i,a){switch(a){case 0:return i.add(A,t);case 1:return i.add(A+r,t);case 2:return i.add(A+r,t+n);case 3:return i.add(A,t+n)}return i})},U2=function(){function e(A){this.element=A,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return e}(),E2=function(){function e(A,t){if(this.container=A,this.parent=t,this.effects=[],this.curves=new MF(this.container),this.container.styles.opacity<1&&this.effects.push(new VF(this.container.styles.opacity)),this.container.styles.transform!==null){var r=this.container.bounds.left+this.container.styles.transformOrigin[0].number,n=this.container.bounds.top+this.container.styles.transformOrigin[1].number,i=this.container.styles.transform;this.effects.push(new KF(r,n,i))}if(this.container.styles.overflowX!==0){var a=Yl(this.curves),s=Jl(this.curves);Q2(a,s)?this.effects.push(new Zl(a,6)):(this.effects.push(new Zl(a,2)),this.effects.push(new Zl(s,4)))}}return e.prototype.getEffects=function(A){for(var t=[2,3].indexOf(this.container.styles.position)===-1,r=this.parent,n=this.effects.slice(0);r;){var i=r.effects.filter(function(o){return!F2(o)});if(t||r.container.styles.position!==0||!r.parent){if(n.unshift.apply(n,i),t=[2,3].indexOf(r.container.styles.position)===-1,r.container.styles.overflowX!==0){var a=Yl(r.curves),s=Jl(r.curves);Q2(a,s)||n.unshift(new Zl(s,6))}}else n.unshift.apply(n,i);r=r.parent}return n.filter(function(o){return St(o.target,A)})},e}(),Bh=function(e,A,t,r){e.container.elements.forEach(function(n){var i=St(n.flags,4),a=St(n.flags,2),s=new E2(n,e);St(n.styles.display,2048)&&r.push(s);var o=St(n.flags,8)?[]:r;if(i||a){var c=i||n.styles.isPositioned()?t:A,u=new U2(s);if(n.styles.isPositioned()||n.styles.opacity<1||n.styles.isTransformed()){var d=n.styles.zIndex.order;if(d<0){var p=0;c.negativeZIndex.some(function(m,B){return d>m.element.container.styles.zIndex.order?(p=B,!1):p>0}),c.negativeZIndex.splice(p,0,u)}else if(d>0){var h=0;c.positiveZIndex.some(function(m,B){return d>=m.element.container.styles.zIndex.order?(h=B+1,!1):h>0}),c.positiveZIndex.splice(h,0,u)}else c.zeroOrAutoZIndexOrTransformedOrOpacity.push(u)}else n.styles.isFloating()?c.nonPositionedFloats.push(u):c.nonPositionedInlineLevel.push(u);Bh(s,u,i?u:t,o)}else n.styles.isInlineLevel()?A.inlineLevel.push(s):A.nonInlineLevel.push(s),Bh(s,A,t,o);St(n.flags,8)&&S2(n,o)})},S2=function(e,A){for(var t=e instanceof sh?e.start:1,r=e instanceof sh?e.reversed:!1,n=0;n<A.length;n++){var i=A[n];i.container instanceof A2&&typeof i.container.value=="number"&&i.container.value!==0&&(t=i.container.value),i.listValue=to(t,i.container.styles.listStyleType,!0),t+=r?-1:1}},$F=function(e){var A=new E2(e,null),t=new U2(A),r=[];return Bh(A,t,t,r),S2(A.container,r),t},I2=function(e,A){switch(A){case 0:return kr(e.topLeftBorderBox,e.topLeftPaddingBox,e.topRightBorderBox,e.topRightPaddingBox);case 1:return kr(e.topRightBorderBox,e.topRightPaddingBox,e.bottomRightBorderBox,e.bottomRightPaddingBox);case 2:return kr(e.bottomRightBorderBox,e.bottomRightPaddingBox,e.bottomLeftBorderBox,e.bottomLeftPaddingBox);case 3:default:return kr(e.bottomLeftBorderBox,e.bottomLeftPaddingBox,e.topLeftBorderBox,e.topLeftPaddingBox)}},WF=function(e,A){switch(A){case 0:return kr(e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox,e.topRightBorderBox,e.topRightBorderDoubleOuterBox);case 1:return kr(e.topRightBorderBox,e.topRightBorderDoubleOuterBox,e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox);case 2:return kr(e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox,e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox);case 3:default:return kr(e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox,e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox)}},qF=function(e,A){switch(A){case 0:return kr(e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox,e.topRightBorderDoubleInnerBox,e.topRightPaddingBox);case 1:return kr(e.topRightBorderDoubleInnerBox,e.topRightPaddingBox,e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox);case 2:return kr(e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox,e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox);case 3:default:return kr(e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox,e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox)}},XF=function(e,A){switch(A){case 0:return Ac(e.topLeftBorderStroke,e.topRightBorderStroke);case 1:return Ac(e.topRightBorderStroke,e.bottomRightBorderStroke);case 2:return Ac(e.bottomRightBorderStroke,e.bottomLeftBorderStroke);case 3:default:return Ac(e.bottomLeftBorderStroke,e.topLeftBorderStroke)}},Ac=function(e,A){var t=[];return Pr(e)?t.push(e.subdivide(.5,!1)):t.push(e),Pr(A)?t.push(A.subdivide(.5,!0)):t.push(A),t},kr=function(e,A,t,r){var n=[];return Pr(e)?n.push(e.subdivide(.5,!1)):n.push(e),Pr(t)?n.push(t.subdivide(.5,!0)):n.push(t),Pr(r)?n.push(r.subdivide(.5,!0).reverse()):n.push(r),Pr(A)?n.push(A.subdivide(.5,!1).reverse()):n.push(A),n},L2=function(e){var A=e.bounds,t=e.styles;return A.add(t.borderLeftWidth,t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth),-(t.borderTopWidth+t.borderBottomWidth))},ec=function(e){var A=e.styles,t=e.bounds,r=ze(A.paddingLeft,t.width),n=ze(A.paddingRight,t.width),i=ze(A.paddingTop,t.width),a=ze(A.paddingBottom,t.width);return t.add(r+A.borderLeftWidth,i+A.borderTopWidth,-(A.borderRightWidth+A.borderLeftWidth+r+n),-(A.borderTopWidth+A.borderBottomWidth+i+a))},YF=function(e,A){return e===0?A.bounds:e===2?ec(A):L2(A)},JF=function(e,A){return e===0?A.bounds:e===2?ec(A):L2(A)},mh=function(e,A,t){var r=YF(ka(e.styles.backgroundOrigin,A),e),n=JF(ka(e.styles.backgroundClip,A),e),i=ZF(ka(e.styles.backgroundSize,A),t,r),a=i[0],s=i[1],o=Xs(ka(e.styles.backgroundPosition,A),r.width-a,r.height-s),c=AQ(ka(e.styles.backgroundRepeat,A),o,i,r,n),u=Math.round(r.left+o[0]),d=Math.round(r.top+o[1]);return[c,u,d,a,s]},Pa=function(e){return De(e)&&e.value===Na.AUTO},tc=function(e){return typeof e=="number"},ZF=function(e,A,t){var r=A[0],n=A[1],i=A[2],a=e[0],s=e[1];if(!a)return[0,0];if(Ct(a)&&s&&Ct(s))return[ze(a,t.width),ze(s,t.height)];var o=tc(i);if(De(a)&&(a.value===Na.CONTAIN||a.value===Na.COVER)){if(tc(i)){var c=t.width/t.height;return c<i!=(a.value===Na.COVER)?[t.width,t.width/i]:[t.height*i,t.height]}return[t.width,t.height]}var u=tc(r),d=tc(n),p=u||d;if(Pa(a)&&(!s||Pa(s))){if(u&&d)return[r,n];if(!o&&!p)return[t.width,t.height];if(p&&o){var h=u?r:n*i,m=d?n:r/i;return[h,m]}var B=u?r:t.width,C=d?n:t.height;return[B,C]}if(o){var b=0,Q=0;return Ct(a)?b=ze(a,t.width):Ct(s)&&(Q=ze(s,t.height)),Pa(a)?b=Q*i:(!s||Pa(s))&&(Q=b/i),[b,Q]}var L=null,D=null;if(Ct(a)?L=ze(a,t.width):s&&Ct(s)&&(D=ze(s,t.height)),L!==null&&(!s||Pa(s))&&(D=u&&d?L/r*n:t.height),D!==null&&Pa(a)&&(L=u&&d?D/n*r:t.width),L!==null&&D!==null)return[L,D];throw new Error("Unable to calculate background-size for element")},ka=function(e,A){var t=e[A];return typeof t>"u"?e[0]:t},AQ=function(e,A,t,r,n){var i=A[0],a=A[1],s=t[0],o=t[1];switch(e){case 2:return[new DA(Math.round(r.left),Math.round(r.top+a)),new DA(Math.round(r.left+r.width),Math.round(r.top+a)),new DA(Math.round(r.left+r.width),Math.round(o+r.top+a)),new DA(Math.round(r.left),Math.round(o+r.top+a))];case 3:return[new DA(Math.round(r.left+i),Math.round(r.top)),new DA(Math.round(r.left+i+s),Math.round(r.top)),new DA(Math.round(r.left+i+s),Math.round(r.height+r.top)),new DA(Math.round(r.left+i),Math.round(r.height+r.top))];case 1:return[new DA(Math.round(r.left+i),Math.round(r.top+a)),new DA(Math.round(r.left+i+s),Math.round(r.top+a)),new DA(Math.round(r.left+i+s),Math.round(r.top+a+o)),new DA(Math.round(r.left+i),Math.round(r.top+a+o))];default:return[new DA(Math.round(n.left),Math.round(n.top)),new DA(Math.round(n.left+n.width),Math.round(n.top)),new DA(Math.round(n.left+n.width),Math.round(n.height+n.top)),new DA(Math.round(n.left),Math.round(n.height+n.top))]}},eQ="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",N2="Hidden Text",tQ=function(){function e(A){this._data={},this._document=A}return e.prototype.parseMetrics=function(A,t){var r=this._document.createElement("div"),n=this._document.createElement("img"),i=this._document.createElement("span"),a=this._document.body;r.style.visibility="hidden",r.style.fontFamily=A,r.style.fontSize=t,r.style.margin="0",r.style.padding="0",r.style.whiteSpace="nowrap",a.appendChild(r),n.src=eQ,n.width=1,n.height=1,n.style.margin="0",n.style.padding="0",n.style.verticalAlign="baseline",i.style.fontFamily=A,i.style.fontSize=t,i.style.margin="0",i.style.padding="0",i.appendChild(this._document.createTextNode(N2)),r.appendChild(i),r.appendChild(n);var s=n.offsetTop-i.offsetTop+2;r.removeChild(i),r.appendChild(this._document.createTextNode(N2)),r.style.lineHeight="normal",n.style.verticalAlign="super";var o=n.offsetTop-r.offsetTop+2;return a.removeChild(r),{baseline:s,middle:o}},e.prototype.getMetrics=function(A,t){var r=A+" "+t;return typeof this._data[r]>"u"&&(this._data[r]=this.parseMetrics(A,t)),this._data[r]},e}(),T2=function(){function e(A,t){this.context=A,this.options=t}return e}(),rQ=1e4,nQ=function(e){Yr(A,e);function A(t,r){var n=e.call(this,t,r)||this;return n._activeEffects=[],n.canvas=r.canvas?r.canvas:document.createElement("canvas"),n.ctx=n.canvas.getContext("2d"),r.canvas||(n.canvas.width=Math.floor(r.width*r.scale),n.canvas.height=Math.floor(r.height*r.scale),n.canvas.style.width=r.width+"px",n.canvas.style.height=r.height+"px"),n.fontMetrics=new tQ(document),n.ctx.scale(n.options.scale,n.options.scale),n.ctx.translate(-r.x,-r.y),n.ctx.textBaseline="bottom",n._activeEffects=[],n.context.logger.debug("Canvas renderer initialized ("+r.width+"x"+r.height+") with scale "+r.scale),n}return A.prototype.applyEffects=function(t){for(var r=this;this._activeEffects.length;)this.popEffect();t.forEach(function(n){return r.applyEffect(n)})},A.prototype.applyEffect=function(t){this.ctx.save(),zF(t)&&(this.ctx.globalAlpha=t.opacity),jF(t)&&(this.ctx.translate(t.offsetX,t.offsetY),this.ctx.transform(t.matrix[0],t.matrix[1],t.matrix[2],t.matrix[3],t.matrix[4],t.matrix[5]),this.ctx.translate(-t.offsetX,-t.offsetY)),F2(t)&&(this.path(t.path),this.ctx.clip()),this._activeEffects.push(t)},A.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},A.prototype.renderStack=function(t){return nr(this,void 0,void 0,function(){var r;return Wt(this,function(n){switch(n.label){case 0:return r=t.element.container.styles,r.isVisible()?[4,this.renderStackContent(t)]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}})})},A.prototype.renderNode=function(t){return nr(this,void 0,void 0,function(){return Wt(this,function(r){switch(r.label){case 0:if(St(t.container.flags,16))debugger;return t.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(t)]:[3,3];case 1:return r.sent(),[4,this.renderNodeContent(t)];case 2:r.sent(),r.label=3;case 3:return[2]}})})},A.prototype.renderTextWithLetterSpacing=function(t,r,n){var i=this;if(r===0)this.ctx.fillText(t.text,t.bounds.left,t.bounds.top+n);else{var a=ah(t.text);a.reduce(function(s,o){return i.ctx.fillText(o,s,t.bounds.top+n),s+i.ctx.measureText(o).width},t.bounds.left)}},A.prototype.createFontStyle=function(t){var r=t.fontVariant.filter(function(a){return a==="normal"||a==="small-caps"}).join(""),n=lQ(t.fontFamily).join(", "),i=qs(t.fontSize)?""+t.fontSize.number+t.fontSize.unit:t.fontSize.number+"px";return[[t.fontStyle,r,t.fontWeight,i,n].join(" "),n,i]},A.prototype.renderTextNode=function(t,r){return nr(this,void 0,void 0,function(){var n,i,a,s,o,c,u,d,p=this;return Wt(this,function(h){return n=this.createFontStyle(r),i=n[0],a=n[1],s=n[2],this.ctx.font=i,this.ctx.direction=r.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",o=this.fontMetrics.getMetrics(a,s),c=o.baseline,u=o.middle,d=r.paintOrder,t.textBounds.forEach(function(m){d.forEach(function(B){switch(B){case 0:p.ctx.fillStyle=Lt(r.color),p.renderTextWithLetterSpacing(m,r.letterSpacing,c);var C=r.textShadow;C.length&&m.text.trim().length&&(C.slice(0).reverse().forEach(function(b){p.ctx.shadowColor=Lt(b.color),p.ctx.shadowOffsetX=b.offsetX.number*p.options.scale,p.ctx.shadowOffsetY=b.offsetY.number*p.options.scale,p.ctx.shadowBlur=b.blur.number,p.renderTextWithLetterSpacing(m,r.letterSpacing,c)}),p.ctx.shadowColor="",p.ctx.shadowOffsetX=0,p.ctx.shadowOffsetY=0,p.ctx.shadowBlur=0),r.textDecorationLine.length&&(p.ctx.fillStyle=Lt(r.textDecorationColor||r.color),r.textDecorationLine.forEach(function(b){switch(b){case 1:p.ctx.fillRect(m.bounds.left,Math.round(m.bounds.top+c),m.bounds.width,1);break;case 2:p.ctx.fillRect(m.bounds.left,Math.round(m.bounds.top),m.bounds.width,1);break;case 3:p.ctx.fillRect(m.bounds.left,Math.ceil(m.bounds.top+u),m.bounds.width,1);break}}));break;case 1:r.webkitTextStrokeWidth&&m.text.trim().length&&(p.ctx.strokeStyle=Lt(r.webkitTextStrokeColor),p.ctx.lineWidth=r.webkitTextStrokeWidth,p.ctx.lineJoin=window.chrome?"miter":"round",p.ctx.strokeText(m.text,m.bounds.left,m.bounds.top+c)),p.ctx.strokeStyle="",p.ctx.lineWidth=0,p.ctx.lineJoin="miter";break}})}),[2]})})},A.prototype.renderReplacedElement=function(t,r,n){if(n&&t.intrinsicWidth>0&&t.intrinsicHeight>0){var i=ec(t),a=Jl(r);this.path(a),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(n,0,0,t.intrinsicWidth,t.intrinsicHeight,i.left,i.top,i.width,i.height),this.ctx.restore()}},A.prototype.renderNodeContent=function(t){return nr(this,void 0,void 0,function(){var r,n,i,a,s,o,Q,Q,c,u,d,p,D,h,m,O,B,C,b,Q,L,D,O;return Wt(this,function(z){switch(z.label){case 0:this.applyEffects(t.getEffects(4)),r=t.container,n=t.curves,i=r.styles,a=0,s=r.textNodes,z.label=1;case 1:return a<s.length?(o=s[a],[4,this.renderTextNode(o,i)]):[3,4];case 2:z.sent(),z.label=3;case 3:return a++,[3,1];case 4:if(!(r instanceof Y1))return[3,8];z.label=5;case 5:return z.trys.push([5,7,,8]),[4,this.context.cache.match(r.src)];case 6:return Q=z.sent(),this.renderReplacedElement(r,n,Q),[3,8];case 7:return z.sent(),this.context.logger.error("Error loading image "+r.src),[3,8];case 8:if(r instanceof J1&&this.renderReplacedElement(r,n,r.canvas),!(r instanceof Z1))return[3,12];z.label=9;case 9:return z.trys.push([9,11,,12]),[4,this.context.cache.match(r.svg)];case 10:return Q=z.sent(),this.renderReplacedElement(r,n,Q),[3,12];case 11:return z.sent(),this.context.logger.error("Error loading svg "+r.svg.substring(0,255)),[3,12];case 12:return r instanceof n2&&r.tree?(c=new A(this.context,{scale:this.options.scale,backgroundColor:r.backgroundColor,x:0,y:0,width:r.width,height:r.height}),[4,c.render(r.tree)]):[3,14];case 13:u=z.sent(),r.width&&r.height&&this.ctx.drawImage(u,0,0,r.width,r.height,r.bounds.left,r.bounds.top,r.bounds.width,r.bounds.height),z.label=14;case 14:if(r instanceof oh&&(d=Math.min(r.bounds.width,r.bounds.height),r.type===jl?r.checked&&(this.ctx.save(),this.path([new DA(r.bounds.left+d*.39363,r.bounds.top+d*.79),new DA(r.bounds.left+d*.16,r.bounds.top+d*.5549),new DA(r.bounds.left+d*.27347,r.bounds.top+d*.44071),new DA(r.bounds.left+d*.39694,r.bounds.top+d*.5649),new DA(r.bounds.left+d*.72983,r.bounds.top+d*.23),new DA(r.bounds.left+d*.84,r.bounds.top+d*.34085),new DA(r.bounds.left+d*.39363,r.bounds.top+d*.79)]),this.ctx.fillStyle=Lt(e2),this.ctx.fill(),this.ctx.restore()):r.type===zl&&r.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(r.bounds.left+d/2,r.bounds.top+d/2,d/4,0,Math.PI*2,!0),this.ctx.fillStyle=Lt(e2),this.ctx.fill(),this.ctx.restore())),iQ(r)&&r.value.length){switch(p=this.createFontStyle(i),D=p[0],h=p[1],m=this.fontMetrics.getMetrics(D,h).baseline,this.ctx.font=D,this.ctx.fillStyle=Lt(i.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=sQ(r.styles.textAlign),O=ec(r),B=0,r.styles.textAlign){case 1:B+=O.width/2;break;case 2:B+=O.width;break}C=O.add(B,0,0,-O.height/2+1),this.ctx.save(),this.path([new DA(O.left,O.top),new DA(O.left+O.width,O.top),new DA(O.left+O.width,O.top+O.height),new DA(O.left,O.top+O.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Ao(r.value,C),i.letterSpacing,m),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!St(r.styles.display,2048))return[3,20];if(r.styles.listStyleImage===null)return[3,19];if(b=r.styles.listStyleImage,b.type!==0)return[3,18];Q=void 0,L=b.url,z.label=15;case 15:return z.trys.push([15,17,,18]),[4,this.context.cache.match(L)];case 16:return Q=z.sent(),this.ctx.drawImage(Q,r.bounds.left-(Q.width+10),r.bounds.top),[3,18];case 17:return z.sent(),this.context.logger.error("Error loading list-style-image "+L),[3,18];case 18:return[3,20];case 19:t.listValue&&r.styles.listStyleType!==-1&&(D=this.createFontStyle(i)[0],this.ctx.font=D,this.ctx.fillStyle=Lt(i.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",O=new Hn(r.bounds.left,r.bounds.top+ze(r.styles.paddingTop,r.bounds.width),r.bounds.width,N1(i.lineHeight,i.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Ao(t.listValue,O),i.letterSpacing,N1(i.lineHeight,i.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),z.label=20;case 20:return[2]}})})},A.prototype.renderStackContent=function(t){return nr(this,void 0,void 0,function(){var r,n,b,i,a,b,s,o,b,c,u,b,d,p,b,h,m,b,B,C,b;return Wt(this,function(Q){switch(Q.label){case 0:if(St(t.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(t.element)];case 1:Q.sent(),r=0,n=t.negativeZIndex,Q.label=2;case 2:return r<n.length?(b=n[r],[4,this.renderStack(b)]):[3,5];case 3:Q.sent(),Q.label=4;case 4:return r++,[3,2];case 5:return[4,this.renderNodeContent(t.element)];case 6:Q.sent(),i=0,a=t.nonInlineLevel,Q.label=7;case 7:return i<a.length?(b=a[i],[4,this.renderNode(b)]):[3,10];case 8:Q.sent(),Q.label=9;case 9:return i++,[3,7];case 10:s=0,o=t.nonPositionedFloats,Q.label=11;case 11:return s<o.length?(b=o[s],[4,this.renderStack(b)]):[3,14];case 12:Q.sent(),Q.label=13;case 13:return s++,[3,11];case 14:c=0,u=t.nonPositionedInlineLevel,Q.label=15;case 15:return c<u.length?(b=u[c],[4,this.renderStack(b)]):[3,18];case 16:Q.sent(),Q.label=17;case 17:return c++,[3,15];case 18:d=0,p=t.inlineLevel,Q.label=19;case 19:return d<p.length?(b=p[d],[4,this.renderNode(b)]):[3,22];case 20:Q.sent(),Q.label=21;case 21:return d++,[3,19];case 22:h=0,m=t.zeroOrAutoZIndexOrTransformedOrOpacity,Q.label=23;case 23:return h<m.length?(b=m[h],[4,this.renderStack(b)]):[3,26];case 24:Q.sent(),Q.label=25;case 25:return h++,[3,23];case 26:B=0,C=t.positiveZIndex,Q.label=27;case 27:return B<C.length?(b=C[B],[4,this.renderStack(b)]):[3,30];case 28:Q.sent(),Q.label=29;case 29:return B++,[3,27];case 30:return[2]}})})},A.prototype.mask=function(t){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(t.slice(0).reverse()),this.ctx.closePath()},A.prototype.path=function(t){this.ctx.beginPath(),this.formatPath(t),this.ctx.closePath()},A.prototype.formatPath=function(t){var r=this;t.forEach(function(n,i){var a=Pr(n)?n.start:n;i===0?r.ctx.moveTo(a.x,a.y):r.ctx.lineTo(a.x,a.y),Pr(n)&&r.ctx.bezierCurveTo(n.startControl.x,n.startControl.y,n.endControl.x,n.endControl.y,n.end.x,n.end.y)})},A.prototype.renderRepeat=function(t,r,n,i){this.path(t),this.ctx.fillStyle=r,this.ctx.translate(n,i),this.ctx.fill(),this.ctx.translate(-n,-i)},A.prototype.resizeImage=function(t,r,n){var i;if(t.width===r&&t.height===n)return t;var a=(i=this.canvas.ownerDocument)!==null&&i!==void 0?i:document,s=a.createElement("canvas");s.width=Math.max(1,r),s.height=Math.max(1,n);var o=s.getContext("2d");return o.drawImage(t,0,0,t.width,t.height,0,0,r,n),s},A.prototype.renderBackgroundImage=function(t){return nr(this,void 0,void 0,function(){var r,n,i,a,s,o;return Wt(this,function(c){switch(c.label){case 0:r=t.styles.backgroundImage.length-1,n=function(u){var d,p,h,nA,iA,lA,M,V,_,m,nA,iA,lA,M,V,B,C,b,Q,L,D,O,z,R,_,X,nA,N,T,M,V,sA,iA,lA,eA,cA,fA,BA,U,P,K,$;return Wt(this,function(j){switch(j.label){case 0:if(u.type!==0)return[3,5];d=void 0,p=u.url,j.label=1;case 1:return j.trys.push([1,3,,4]),[4,i.context.cache.match(p)];case 2:return d=j.sent(),[3,4];case 3:return j.sent(),i.context.logger.error("Error loading background-image "+p),[3,4];case 4:return d&&(h=mh(t,r,[d.width,d.height,d.width/d.height]),nA=h[0],iA=h[1],lA=h[2],M=h[3],V=h[4],_=i.ctx.createPattern(i.resizeImage(d,M,V),"repeat"),i.renderRepeat(nA,_,iA,lA)),[3,6];case 5:j4(u)?(m=mh(t,r,[null,null,null]),nA=m[0],iA=m[1],lA=m[2],M=m[3],V=m[4],B=D4(u.angle,M,V),C=B[0],b=B[1],Q=B[2],L=B[3],D=B[4],O=document.createElement("canvas"),O.width=M,O.height=V,z=O.getContext("2d"),R=z.createLinearGradient(b,L,Q,D),w1(u.stops,C).forEach(function(q){return R.addColorStop(q.stop,Lt(q.color))}),z.fillStyle=R,z.fillRect(0,0,M,V),M>0&&V>0&&(_=i.ctx.createPattern(O,"repeat"),i.renderRepeat(nA,_,iA,lA))):z4(u)&&(X=mh(t,r,[null,null,null]),nA=X[0],N=X[1],T=X[2],M=X[3],V=X[4],sA=u.position.length===0?[zf]:u.position,iA=ze(sA[0],M),lA=ze(sA[sA.length-1],V),eA=M4(u,iA,lA,M,V),cA=eA[0],fA=eA[1],cA>0&&fA>0&&(BA=i.ctx.createRadialGradient(N+iA,T+lA,0,N+iA,T+lA,cA),w1(u.stops,cA*2).forEach(function(q){return BA.addColorStop(q.stop,Lt(q.color))}),i.path(nA),i.ctx.fillStyle=BA,cA!==fA?(U=t.bounds.left+.5*t.bounds.width,P=t.bounds.top+.5*t.bounds.height,K=fA/cA,$=1/K,i.ctx.save(),i.ctx.translate(U,P),i.ctx.transform(1,0,0,K,0,0),i.ctx.translate(-U,-P),i.ctx.fillRect(N,$*(T-P)+P,M,V*$),i.ctx.restore()):i.ctx.fill())),j.label=6;case 6:return r--,[2]}})},i=this,a=0,s=t.styles.backgroundImage.slice(0).reverse(),c.label=1;case 1:return a<s.length?(o=s[a],[5,n(o)]):[3,4];case 2:c.sent(),c.label=3;case 3:return a++,[3,1];case 4:return[2]}})})},A.prototype.renderSolidBorder=function(t,r,n){return nr(this,void 0,void 0,function(){return Wt(this,function(i){return this.path(I2(n,r)),this.ctx.fillStyle=Lt(t),this.ctx.fill(),[2]})})},A.prototype.renderDoubleBorder=function(t,r,n,i){return nr(this,void 0,void 0,function(){var a,s;return Wt(this,function(o){switch(o.label){case 0:return r<3?[4,this.renderSolidBorder(t,n,i)]:[3,2];case 1:return o.sent(),[2];case 2:return a=WF(i,n),this.path(a),this.ctx.fillStyle=Lt(t),this.ctx.fill(),s=qF(i,n),this.path(s),this.ctx.fill(),[2]}})})},A.prototype.renderNodeBackgroundAndBorders=function(t){return nr(this,void 0,void 0,function(){var r,n,i,a,s,o,c,u,d=this;return Wt(this,function(p){switch(p.label){case 0:return this.applyEffects(t.getEffects(2)),r=t.container.styles,n=!ci(r.backgroundColor)||r.backgroundImage.length,i=[{style:r.borderTopStyle,color:r.borderTopColor,width:r.borderTopWidth},{style:r.borderRightStyle,color:r.borderRightColor,width:r.borderRightWidth},{style:r.borderBottomStyle,color:r.borderBottomColor,width:r.borderBottomWidth},{style:r.borderLeftStyle,color:r.borderLeftColor,width:r.borderLeftWidth}],a=aQ(ka(r.backgroundClip,0),t.curves),n||r.boxShadow.length?(this.ctx.save(),this.path(a),this.ctx.clip(),ci(r.backgroundColor)||(this.ctx.fillStyle=Lt(r.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(t.container)]):[3,2];case 1:p.sent(),this.ctx.restore(),r.boxShadow.slice(0).reverse().forEach(function(h){d.ctx.save();var m=Yl(t.curves),B=h.inset?0:rQ,C=GF(m,-B+(h.inset?1:-1)*h.spread.number,(h.inset?1:-1)*h.spread.number,h.spread.number*(h.inset?-2:2),h.spread.number*(h.inset?-2:2));h.inset?(d.path(m),d.ctx.clip(),d.mask(C)):(d.mask(m),d.ctx.clip(),d.path(C)),d.ctx.shadowOffsetX=h.offsetX.number+B,d.ctx.shadowOffsetY=h.offsetY.number,d.ctx.shadowColor=Lt(h.color),d.ctx.shadowBlur=h.blur.number,d.ctx.fillStyle=h.inset?Lt(h.color):"rgba(0,0,0,1)",d.ctx.fill(),d.ctx.restore()}),p.label=2;case 2:s=0,o=0,c=i,p.label=3;case 3:return o<c.length?(u=c[o],u.style!==0&&!ci(u.color)&&u.width>0?u.style!==2?[3,5]:[4,this.renderDashedDottedBorder(u.color,u.width,s,t.curves,2)]:[3,11]):[3,13];case 4:return p.sent(),[3,11];case 5:return u.style!==3?[3,7]:[4,this.renderDashedDottedBorder(u.color,u.width,s,t.curves,3)];case 6:return p.sent(),[3,11];case 7:return u.style!==4?[3,9]:[4,this.renderDoubleBorder(u.color,u.width,s,t.curves)];case 8:return p.sent(),[3,11];case 9:return[4,this.renderSolidBorder(u.color,s,t.curves)];case 10:p.sent(),p.label=11;case 11:s++,p.label=12;case 12:return o++,[3,3];case 13:return[2]}})})},A.prototype.renderDashedDottedBorder=function(t,r,n,i,a){return nr(this,void 0,void 0,function(){var s,o,c,u,d,p,h,m,B,C,b,Q,L,D,O,z,O,z;return Wt(this,function(R){return this.ctx.save(),s=XF(i,n),o=I2(i,n),a===2&&(this.path(o),this.ctx.clip()),Pr(o[0])?(c=o[0].start.x,u=o[0].start.y):(c=o[0].x,u=o[0].y),Pr(o[1])?(d=o[1].end.x,p=o[1].end.y):(d=o[1].x,p=o[1].y),n===0||n===2?h=Math.abs(c-d):h=Math.abs(u-p),this.ctx.beginPath(),a===3?this.formatPath(s):this.formatPath(o.slice(0,2)),m=r<3?r*3:r*2,B=r<3?r*2:r,a===3&&(m=r,B=r),C=!0,h<=m*2?C=!1:h<=m*2+B?(b=h/(2*m+B),m*=b,B*=b):(Q=Math.floor((h+B)/(m+B)),L=(h-Q*m)/(Q-1),D=(h-(Q+1)*m)/Q,B=D<=0||Math.abs(B-L)<Math.abs(B-D)?L:D),C&&(a===3?this.ctx.setLineDash([0,m+B]):this.ctx.setLineDash([m,B])),a===3?(this.ctx.lineCap="round",this.ctx.lineWidth=r):this.ctx.lineWidth=r*2+1.1,this.ctx.strokeStyle=Lt(t),this.ctx.stroke(),this.ctx.setLineDash([]),a===2&&(Pr(o[0])&&(O=o[3],z=o[0],this.ctx.beginPath(),this.formatPath([new DA(O.end.x,O.end.y),new DA(z.start.x,z.start.y)]),this.ctx.stroke()),Pr(o[1])&&(O=o[1],z=o[2],this.ctx.beginPath(),this.formatPath([new DA(O.end.x,O.end.y),new DA(z.start.x,z.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},A.prototype.render=function(t){return nr(this,void 0,void 0,function(){var r;return Wt(this,function(n){switch(n.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=Lt(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),r=$F(t),[4,this.renderStack(r)];case 1:return n.sent(),this.applyEffects([]),[2,this.canvas]}})})},A}(T2),iQ=function(e){return e instanceof r2||e instanceof t2?!0:e instanceof oh&&e.type!==zl&&e.type!==jl},aQ=function(e,A){switch(e){case 0:return Yl(A);case 2:return RF(A);case 1:default:return Jl(A)}},sQ=function(e){switch(e){case 1:return"center";case 2:return"right";case 0:default:return"left"}},oQ=["-apple-system","system-ui"],lQ=function(e){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?e.filter(function(A){return oQ.indexOf(A)===-1}):e},cQ=function(e){Yr(A,e);function A(t,r){var n=e.call(this,t,r)||this;return n.canvas=r.canvas?r.canvas:document.createElement("canvas"),n.ctx=n.canvas.getContext("2d"),n.options=r,n.canvas.width=Math.floor(r.width*r.scale),n.canvas.height=Math.floor(r.height*r.scale),n.canvas.style.width=r.width+"px",n.canvas.style.height=r.height+"px",n.ctx.scale(n.options.scale,n.options.scale),n.ctx.translate(-r.x,-r.y),n.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+r.width+"x"+r.height+" at "+r.x+","+r.y+") with scale "+r.scale),n}return A.prototype.render=function(t){return nr(this,void 0,void 0,function(){var r,n;return Wt(this,function(i){switch(i.label){case 0:return r=ih(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,t),[4,uQ(r)];case 1:return n=i.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=Lt(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(n,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},A}(T2),uQ=function(e){return new Promise(function(A,t){var r=new Image;r.onload=function(){A(r)},r.onerror=t,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(e))})},fQ=function(){function e(A){var t=A.id,r=A.enabled;this.id=t,this.enabled=r,this.start=Date.now()}return e.prototype.debug=function(){for(var A=[],t=0;t<arguments.length;t++)A[t]=arguments[t];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,cl([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},e.prototype.getTime=function(){return Date.now()-this.start},e.prototype.info=function(){for(var A=[],t=0;t<arguments.length;t++)A[t]=arguments[t];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,cl([this.id,this.getTime()+"ms"],A))},e.prototype.warn=function(){for(var A=[],t=0;t<arguments.length;t++)A[t]=arguments[t];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,cl([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},e.prototype.error=function(){for(var A=[],t=0;t<arguments.length;t++)A[t]=arguments[t];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,cl([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},e.instances={},e}(),hQ=function(){function e(A,t){var r;this.windowBounds=t,this.instanceName="#"+e.instanceCount++,this.logger=new fQ({id:this.instanceName,enabled:A.logging}),this.cache=(r=A.cache)!==null&&r!==void 0?r:new TF(this,A)}return e.instanceCount=1,e}(),O2=function(e,A){return A===void 0&&(A={}),dQ(e,A)};typeof window<"u"&&x2.setContext(window);var dQ=function(e,A){return nr(void 0,void 0,void 0,function(){var t,r,n,i,a,s,o,c,u,d,p,h,m,B,C,b,Q,L,D,O,R,z,R,_,X,nA,N,T,M,V,sA,iA,lA,eA,cA,fA,BA,U,P,K;return Wt(this,function($){switch($.label){case 0:if(!e||typeof e!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(t=e.ownerDocument,!t)throw new Error("Element is not attached to a Document");if(r=t.defaultView,!r)throw new Error("Document is not attached to a Window");return n={allowTaint:(_=A.allowTaint)!==null&&_!==void 0?_:!1,imageTimeout:(X=A.imageTimeout)!==null&&X!==void 0?X:15e3,proxy:A.proxy,useCORS:(nA=A.useCORS)!==null&&nA!==void 0?nA:!1},i=xf({logging:(N=A.logging)!==null&&N!==void 0?N:!0,cache:A.cache},n),a={windowWidth:(T=A.windowWidth)!==null&&T!==void 0?T:r.innerWidth,windowHeight:(M=A.windowHeight)!==null&&M!==void 0?M:r.innerHeight,scrollX:(V=A.scrollX)!==null&&V!==void 0?V:r.pageXOffset,scrollY:(sA=A.scrollY)!==null&&sA!==void 0?sA:r.pageYOffset},s=new Hn(a.scrollX,a.scrollY,a.windowWidth,a.windowHeight),o=new hQ(i,s),c=(iA=A.foreignObjectRendering)!==null&&iA!==void 0?iA:!1,u={allowTaint:(lA=A.allowTaint)!==null&&lA!==void 0?lA:!1,onclone:A.onclone,ignoreElements:A.ignoreElements,inlineImages:c,copyStyles:c},o.logger.debug("Starting document clone with size "+s.width+"x"+s.height+" scrolled to "+-s.left+","+-s.top),d=new b2(o,e,u),p=d.clonedReferenceElement,p?[4,d.toIFrame(t,s)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return h=$.sent(),m=ch(p)||pF(p)?Gb(p.ownerDocument):ul(o,p),B=m.width,C=m.height,b=m.left,Q=m.top,L=gQ(o,p,A.backgroundColor),D={canvas:A.canvas,backgroundColor:L,scale:(cA=(eA=A.scale)!==null&&eA!==void 0?eA:r.devicePixelRatio)!==null&&cA!==void 0?cA:1,x:((fA=A.x)!==null&&fA!==void 0?fA:0)+b,y:((BA=A.y)!==null&&BA!==void 0?BA:0)+Q,width:(U=A.width)!==null&&U!==void 0?U:Math.ceil(B),height:(P=A.height)!==null&&P!==void 0?P:Math.ceil(C)},c?(o.logger.debug("Document cloned, using foreign object rendering"),R=new cQ(o,D),[4,R.render(p)]):[3,3];case 2:return O=$.sent(),[3,5];case 3:return o.logger.debug("Document cloned, element located at "+b+","+Q+" with size "+B+"x"+C+" using computed rendering"),o.logger.debug("Starting DOM parsing"),z=a2(o,p),L===z.styles.backgroundColor&&(z.styles.backgroundColor=Pn.TRANSPARENT),o.logger.debug("Starting renderer for element at "+D.x+","+D.y+" with size "+D.width+"x"+D.height),R=new nQ(o,D),[4,R.render(z)];case 4:O=$.sent(),$.label=5;case 5:return(!((K=A.removeContainer)!==null&&K!==void 0)||K)&&(b2.destroy(h)||o.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),o.logger.debug("Finished rendering"),[2,O]}})})},gQ=function(e,A,t){var r=A.ownerDocument,n=r.documentElement?Ys(e,getComputedStyle(r.documentElement).backgroundColor):Pn.TRANSPARENT,i=r.body?Ys(e,getComputedStyle(r.body).backgroundColor):Pn.TRANSPARENT,a=typeof t=="string"?Ys(e,t):t===null?Pn.TRANSPARENT:4294967295;return A===r.documentElement?ci(n)?ci(i)?a:i:n:a};const pQ=Object.freeze(Object.defineProperty({__proto__:null,default:O2},Symbol.toStringTag,{value:"Module"}));function Le(e){"@babel/helpers - typeof";return Le=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(A){return typeof A}:function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},Le(e)}var Xt=Uint8Array,Fr=Uint16Array,yh=Int32Array,rc=new Xt([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),nc=new Xt([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),wh=new Xt([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),H2=function(e,A){for(var t=new Fr(31),r=0;r<31;++r)t[r]=A+=1<<e[r-1];for(var n=new yh(t[30]),r=1;r<30;++r)for(var i=t[r];i<t[r+1];++i)n[i]=i-t[r]<<5|r;return{b:t,r:n}},_2=H2(rc,2),P2=_2.b,bh=_2.r;P2[28]=258,bh[258]=28;for(var k2=H2(nc,0),vQ=k2.b,D2=k2.r,Ch=new Fr(32768),qe=0;qe<32768;++qe){var di=(qe&43690)>>1|(qe&21845)<<1;di=(di&52428)>>2|(di&13107)<<2,di=(di&61680)>>4|(di&3855)<<4,Ch[qe]=((di&65280)>>8|(di&255)<<8)>>1}for(var Cn=function(e,A,t){for(var r=e.length,n=0,i=new Fr(A);n<r;++n)e[n]&&++i[e[n]-1];var a=new Fr(A);for(n=1;n<A;++n)a[n]=a[n-1]+i[n-1]<<1;var s;if(t){s=new Fr(1<<A);var o=15-A;for(n=0;n<r;++n)if(e[n])for(var c=n<<4|e[n],u=A-e[n],d=a[e[n]-1]++<<u,p=d|(1<<u)-1;d<=p;++d)s[Ch[d]>>o]=c}else for(s=new Fr(r),n=0;n<r;++n)e[n]&&(s[n]=Ch[a[e[n]-1]++]>>15-e[n]);return s},gi=new Xt(288),qe=0;qe<144;++qe)gi[qe]=8;for(var qe=144;qe<256;++qe)gi[qe]=9;for(var qe=256;qe<280;++qe)gi[qe]=7;for(var qe=280;qe<288;++qe)gi[qe]=8;for(var no=new Xt(32),qe=0;qe<32;++qe)no[qe]=5;var BQ=Cn(gi,9,0),mQ=Cn(gi,9,1),yQ=Cn(no,5,0),wQ=Cn(no,5,1),xh=function(e){for(var A=e[0],t=1;t<e.length;++t)e[t]>A&&(A=e[t]);return A},Zr=function(e,A,t){var r=A/8|0;return(e[r]|e[r+1]<<8)>>(A&7)&t},Fh=function(e,A){var t=A/8|0;return(e[t]|e[t+1]<<8|e[t+2]<<16)>>(A&7)},Qh=function(e){return(e+7)/8|0},M2=function(e,A,t){return(t==null||t>e.length)&&(t=e.length),new Xt(e.subarray(A,t))},bQ=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],An=function(e,A,t){var r=new Error(A||bQ[e]);if(r.code=e,Error.captureStackTrace&&Error.captureStackTrace(r,An),!t)throw r;return r},CQ=function(e,A,t,r){var n=e.length,i=0;if(!n||A.f&&!A.l)return t||new Xt(0);var a=!t,s=a||A.i!=2,o=A.i;a&&(t=new Xt(n*3));var c=function(FA){var UA=t.length;if(FA>UA){var LA=new Xt(Math.max(UA*2,FA));LA.set(t),t=LA}},u=A.f||0,d=A.p||0,p=A.b||0,h=A.l,m=A.d,B=A.m,C=A.n,b=n*8;do{if(!h){u=Zr(e,d,1);var Q=Zr(e,d+1,3);if(d+=3,Q)if(Q==1)h=mQ,m=wQ,B=9,C=5;else if(Q==2){var z=Zr(e,d,31)+257,R=Zr(e,d+10,15)+4,_=z+Zr(e,d+5,31)+1;d+=14;for(var X=new Xt(_),nA=new Xt(19),N=0;N<R;++N)nA[wh[N]]=Zr(e,d+N*3,7);d+=R*3;for(var T=xh(nA),M=(1<<T)-1,V=Cn(nA,T,1),N=0;N<_;){var sA=V[Zr(e,d,M)];d+=sA&15;var L=sA>>4;if(L<16)X[N++]=L;else{var iA=0,lA=0;for(L==16?(lA=3+Zr(e,d,3),d+=2,iA=X[N-1]):L==17?(lA=3+Zr(e,d,7),d+=3):L==18&&(lA=11+Zr(e,d,127),d+=7);lA--;)X[N++]=iA}}var eA=X.subarray(0,z),cA=X.subarray(z);B=xh(eA),C=xh(cA),h=Cn(eA,B,1),m=Cn(cA,C,1)}else An(1);else{var L=Qh(d)+4,D=e[L-4]|e[L-3]<<8,O=L+D;if(O>n){o&&An(0);break}s&&c(p+D),t.set(e.subarray(L,O),p),A.b=p+=D,A.p=d=O*8,A.f=u;continue}if(d>b){o&&An(0);break}}s&&c(p+131072);for(var fA=(1<<B)-1,BA=(1<<C)-1,U=d;;U=d){var iA=h[Fh(e,d)&fA],P=iA>>4;if(d+=iA&15,d>b){o&&An(0);break}if(iA||An(2),P<256)t[p++]=P;else if(P==256){U=d,h=null;break}else{var K=P-254;if(P>264){var N=P-257,$=rc[N];K=Zr(e,d,(1<<$)-1)+P2[N],d+=$}var j=m[Fh(e,d)&BA],q=j>>4;j||An(3),d+=j&15;var cA=vQ[q];if(q>3){var $=nc[q];cA+=Fh(e,d)&(1<<$)-1,d+=$}if(d>b){o&&An(0);break}s&&c(p+131072);var rA=p+K;if(p<cA){var oA=i-cA,wA=Math.min(cA,rA);for(oA+p<0&&An(3);p<wA;++p)t[p]=r[oA+p]}for(;p<rA;++p)t[p]=t[p-cA]}}A.l=h,A.p=U,A.b=p,A.f=u,h&&(u=1,A.m=B,A.d=m,A.n=C)}while(!u);return p!=t.length&&a?M2(t,0,p):t.subarray(0,p)},Dn=function(e,A,t){t<<=A&7;var r=A/8|0;e[r]|=t,e[r+1]|=t>>8},io=function(e,A,t){t<<=A&7;var r=A/8|0;e[r]|=t,e[r+1]|=t>>8,e[r+2]|=t>>16},Uh=function(e,A){for(var t=[],r=0;r<e.length;++r)e[r]&&t.push({s:r,f:e[r]});var n=t.length,i=t.slice();if(!n)return{t:j2,l:0};if(n==1){var a=new Xt(t[0].s+1);return a[t[0].s]=1,{t:a,l:1}}t.sort(function(O,z){return O.f-z.f}),t.push({s:-1,f:25001});var s=t[0],o=t[1],c=0,u=1,d=2;for(t[0]={s:-1,f:s.f+o.f,l:s,r:o};u!=n-1;)s=t[t[c].f<t[d].f?c++:d++],o=t[c!=u&&t[c].f<t[d].f?c++:d++],t[u++]={s:-1,f:s.f+o.f,l:s,r:o};for(var p=i[0].s,r=1;r<n;++r)i[r].s>p&&(p=i[r].s);var h=new Fr(p+1),m=Eh(t[u-1],h,0);if(m>A){var r=0,B=0,C=m-A,b=1<<C;for(i.sort(function(z,R){return h[R.s]-h[z.s]||z.f-R.f});r<n;++r){var Q=i[r].s;if(h[Q]>A)B+=b-(1<<m-h[Q]),h[Q]=A;else break}for(B>>=C;B>0;){var L=i[r].s;h[L]<A?B-=1<<A-h[L]++-1:++r}for(;r>=0&&B;--r){var D=i[r].s;h[D]==A&&(--h[D],++B)}m=A}return{t:new Xt(h),l:m}},Eh=function(e,A,t){return e.s==-1?Math.max(Eh(e.l,A,t+1),Eh(e.r,A,t+1)):A[e.s]=t},R2=function(e){for(var A=e.length;A&&!e[--A];);for(var t=new Fr(++A),r=0,n=e[0],i=1,a=function(o){t[r++]=o},s=1;s<=A;++s)if(e[s]==n&&s!=A)++i;else{if(!n&&i>2){for(;i>138;i-=138)a(32754);i>2&&(a(i>10?i-11<<5|28690:i-3<<5|12305),i=0)}else if(i>3){for(a(n),--i;i>6;i-=6)a(8304);i>2&&(a(i-3<<5|8208),i=0)}for(;i--;)a(n);i=1,n=e[s]}return{c:t.subarray(0,r),n:A}},ao=function(e,A){for(var t=0,r=0;r<A.length;++r)t+=e[r]*A[r];return t},K2=function(e,A,t){var r=t.length,n=Qh(A+2);e[n]=r&255,e[n+1]=r>>8,e[n+2]=e[n]^255,e[n+3]=e[n+1]^255;for(var i=0;i<r;++i)e[n+i+4]=t[i];return(n+4+r)*8},V2=function(e,A,t,r,n,i,a,s,o,c,u){Dn(A,u++,t),++n[256];for(var d=Uh(n,15),p=d.t,h=d.l,m=Uh(i,15),B=m.t,C=m.l,b=R2(p),Q=b.c,L=b.n,D=R2(B),O=D.c,z=D.n,R=new Fr(19),_=0;_<Q.length;++_)++R[Q[_]&31];for(var _=0;_<O.length;++_)++R[O[_]&31];for(var X=Uh(R,7),nA=X.t,N=X.l,T=19;T>4&&!nA[wh[T-1]];--T);var M=c+5<<3,V=ao(n,gi)+ao(i,no)+a,sA=ao(n,p)+ao(i,B)+a+14+3*T+ao(R,nA)+2*R[16]+3*R[17]+7*R[18];if(o>=0&&M<=V&&M<=sA)return K2(A,u,e.subarray(o,o+c));var iA,lA,eA,cA;if(Dn(A,u,1+(sA<V)),u+=2,sA<V){iA=Cn(p,h,0),lA=p,eA=Cn(B,C,0),cA=B;var fA=Cn(nA,N,0);Dn(A,u,L-257),Dn(A,u+5,z-1),Dn(A,u+10,T-4),u+=14;for(var _=0;_<T;++_)Dn(A,u+3*_,nA[wh[_]]);u+=3*T;for(var BA=[Q,O],U=0;U<2;++U)for(var P=BA[U],_=0;_<P.length;++_){var K=P[_]&31;Dn(A,u,fA[K]),u+=nA[K],K>15&&(Dn(A,u,P[_]>>5&127),u+=P[_]>>12)}}else iA=BQ,lA=gi,eA=yQ,cA=no;for(var _=0;_<s;++_){var $=r[_];if($>255){var K=$>>18&31;io(A,u,iA[K+257]),u+=lA[K+257],K>7&&(Dn(A,u,$>>23&31),u+=rc[K]);var j=$&31;io(A,u,eA[j]),u+=cA[j],j>3&&(io(A,u,$>>5&8191),u+=nc[j])}else io(A,u,iA[$]),u+=lA[$]}return io(A,u,iA[256]),u+lA[256]},xQ=new yh([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),j2=new Xt(0),FQ=function(e,A,t,r,n,i){var a=i.z||e.length,s=new Xt(r+a+5*(1+Math.ceil(a/7e3))+n),o=s.subarray(r,s.length-n),c=i.l,u=(i.r||0)&7;if(A){u&&(o[0]=i.r>>3);for(var d=xQ[A-1],p=d>>13,h=d&8191,m=(1<<t)-1,B=i.p||new Fr(32768),C=i.h||new Fr(m+1),b=Math.ceil(t/3),Q=2*b,L=function(MA){return(e[MA]^e[MA+1]<<b^e[MA+2]<<Q)&m},D=new yh(25e3),O=new Fr(288),z=new Fr(32),R=0,_=0,X=i.i||0,nA=0,N=i.w||0,T=0;X+2<a;++X){var M=L(X),V=X&32767,sA=C[M];if(B[V]=sA,C[M]=V,N<=X){var iA=a-X;if((R>7e3||nA>24576)&&(iA>423||!c)){u=V2(e,o,0,D,O,z,_,nA,T,X-T,u),nA=R=_=0,T=X;for(var lA=0;lA<286;++lA)O[lA]=0;for(var lA=0;lA<30;++lA)z[lA]=0}var eA=2,cA=0,fA=h,BA=V-sA&32767;if(iA>2&&M==L(X-BA))for(var U=Math.min(p,iA)-1,P=Math.min(32767,X),K=Math.min(258,iA);BA<=P&&--fA&&V!=sA;){if(e[X+eA]==e[X+eA-BA]){for(var $=0;$<K&&e[X+$]==e[X+$-BA];++$);if($>eA){if(eA=$,cA=BA,$>U)break;for(var j=Math.min(BA,$-2),q=0,lA=0;lA<j;++lA){var rA=X-BA+lA&32767,oA=B[rA],wA=rA-oA&32767;wA>q&&(q=wA,sA=rA)}}}V=sA,sA=B[V],BA+=V-sA&32767}if(cA){D[nA++]=268435456|bh[eA]<<18|D2[cA];var FA=bh[eA]&31,UA=D2[cA]&31;_+=rc[FA]+nc[UA],++O[257+FA],++z[UA],N=X+eA,++R}else D[nA++]=e[X],++O[e[X]]}}for(X=Math.max(X,N);X<a;++X)D[nA++]=e[X],++O[e[X]];u=V2(e,o,c,D,O,z,_,nA,T,X-T,u),c||(i.r=u&7|o[u/8|0]<<3,u-=7,i.h=C,i.p=B,i.i=X,i.w=N)}else{for(var X=i.w||0;X<a+c;X+=65535){var LA=X+65535;LA>=a&&(o[u/8|0]=c,LA=a),u=K2(o,u+1,e.subarray(X,LA))}i.i=a}return M2(s,0,r+Qh(u)+n)},z2=function(){var e=1,A=0;return{p:function(t){for(var r=e,n=A,i=t.length|0,a=0;a!=i;){for(var s=Math.min(a+2655,i);a<s;++a)n+=r+=t[a];r=(r&65535)+15*(r>>16),n=(n&65535)+15*(n>>16)}e=r,A=n},d:function(){return e%=65521,A%=65521,(e&255)<<24|(e&65280)<<8|(A&255)<<8|A>>8}}},QQ=function(e,A,t,r,n){if(!n&&(n={l:1},A.dictionary)){var i=A.dictionary.subarray(-32768),a=new Xt(i.length+e.length);a.set(i),a.set(e,i.length),e=a,n.w=i.length}return FQ(e,A.level==null?6:A.level,A.mem==null?n.l?Math.ceil(Math.max(8,Math.min(13,Math.log(e.length)))*1.5):20:12+A.mem,t,r,n)},G2=function(e,A,t){for(;t;++A)e[A]=t,t>>>=8},UQ=function(e,A){var t=A.level,r=t==0?0:t<6?1:t==9?3:2;if(e[0]=120,e[1]=r<<6|(A.dictionary&&32),e[1]|=31-(e[0]<<8|e[1])%31,A.dictionary){var n=z2();n.p(A.dictionary),G2(e,2,n.d())}},EQ=function(e,A){return((e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31)&&An(6,"invalid zlib data"),(e[1]>>5&1)==1&&An(6,"invalid zlib data: "+(e[1]&32?"need":"unexpected")+" dictionary"),(e[1]>>3&4)+2};function Sh(e,A){A||(A={});var t=z2();t.p(e);var r=QQ(e,A,A.dictionary?6:2,4);return UQ(r,A),G2(r,r.length-4,t.d()),r}function SQ(e,A){return CQ(e.subarray(EQ(e),-4),{i:2},A,A)}var IQ=typeof TextDecoder<"u"&&new TextDecoder,LQ=0;try{IQ.decode(j2,{stream:!0}),LQ=1}catch{}/** @license
|
|
245
|
+
*
|
|
246
|
+
* jsPDF - PDF Document creation from JavaScript
|
|
247
|
+
* Version 2.5.2 Built on 2024-09-17T13:29:57.859Z
|
|
248
|
+
* CommitID 00000000
|
|
249
|
+
*
|
|
250
|
+
* Copyright (c) 2010-2021 James Hall <james@parall.ax>, https://github.com/MrRio/jsPDF
|
|
251
|
+
* 2015-2021 yWorks GmbH, http://www.yworks.com
|
|
252
|
+
* 2015-2021 Lukas Holländer <lukas.hollaender@yworks.com>, https://github.com/HackbrettXXX
|
|
253
|
+
* 2016-2018 Aras Abbasi <aras.abbasi@gmail.com>
|
|
254
|
+
* 2010 Aaron Spike, https://github.com/acspike
|
|
255
|
+
* 2012 Willow Systems Corporation, https://github.com/willowsystems
|
|
256
|
+
* 2012 Pablo Hess, https://github.com/pablohess
|
|
257
|
+
* 2012 Florian Jenett, https://github.com/fjenett
|
|
258
|
+
* 2013 Warren Weckesser, https://github.com/warrenweckesser
|
|
259
|
+
* 2013 Youssef Beddad, https://github.com/lifof
|
|
260
|
+
* 2013 Lee Driscoll, https://github.com/lsdriscoll
|
|
261
|
+
* 2013 Stefan Slonevskiy, https://github.com/stefslon
|
|
262
|
+
* 2013 Jeremy Morel, https://github.com/jmorel
|
|
263
|
+
* 2013 Christoph Hartmann, https://github.com/chris-rock
|
|
264
|
+
* 2014 Juan Pablo Gaviria, https://github.com/juanpgaviria
|
|
265
|
+
* 2014 James Makes, https://github.com/dollaruw
|
|
266
|
+
* 2014 Diego Casorran, https://github.com/diegocr
|
|
267
|
+
* 2014 Steven Spungin, https://github.com/Flamenco
|
|
268
|
+
* 2014 Kenneth Glassey, https://github.com/Gavvers
|
|
269
|
+
*
|
|
270
|
+
* Permission is hereby granted, free of charge, to any person obtaining
|
|
271
|
+
* a copy of this software and associated documentation files (the
|
|
272
|
+
* "Software"), to deal in the Software without restriction, including
|
|
273
|
+
* without limitation the rights to use, copy, modify, merge, publish,
|
|
274
|
+
* distribute, sublicense, and/or sell copies of the Software, and to
|
|
275
|
+
* permit persons to whom the Software is furnished to do so, subject to
|
|
276
|
+
* the following conditions:
|
|
277
|
+
*
|
|
278
|
+
* The above copyright notice and this permission notice shall be
|
|
279
|
+
* included in all copies or substantial portions of the Software.
|
|
280
|
+
*
|
|
281
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
282
|
+
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
283
|
+
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
284
|
+
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
285
|
+
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
286
|
+
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
287
|
+
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
288
|
+
*
|
|
289
|
+
* Contributor(s):
|
|
290
|
+
* siefkenj, ahwolf, rickygu, Midnith, saintclair, eaparango,
|
|
291
|
+
* kim3er, mfo, alnorth, Flamenco
|
|
292
|
+
*/var ae=function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this}();function Ih(){ae.console&&typeof ae.console.log=="function"&&ae.console.log.apply(ae.console,arguments)}var Ke={log:Ih,warn:function(e){ae.console&&(typeof ae.console.warn=="function"?ae.console.warn.apply(ae.console,arguments):Ih.call(null,arguments))},error:function(e){ae.console&&(typeof ae.console.error=="function"?ae.console.error.apply(ae.console,arguments):Ih(e))}};function Lh(e,A,t){var r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){$i(r.response,A,t)},r.onerror=function(){Ke.error("could not download file")},r.send()}function $2(e){var A=new XMLHttpRequest;A.open("HEAD",e,!1);try{A.send()}catch{}return A.status>=200&&A.status<=299}function ic(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{var A=document.createEvent("MouseEvents");A.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(A)}}var so,Nh,$i=ae.saveAs||((typeof window>"u"?"undefined":Le(window))!=="object"||window!==ae?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(e,A,t){var r=ae.URL||ae.webkitURL,n=document.createElement("a");A=A||e.name||"download",n.download=A,n.rel="noopener",typeof e=="string"?(n.href=e,n.origin!==location.origin?$2(n.href)?Lh(e,A,t):ic(n,n.target="_blank"):ic(n)):(n.href=r.createObjectURL(e),setTimeout(function(){r.revokeObjectURL(n.href)},4e4),setTimeout(function(){ic(n)},0))}:"msSaveOrOpenBlob"in navigator?function(e,A,t){if(A=A||e.name||"download",typeof e=="string")if($2(e))Lh(e,A,t);else{var r=document.createElement("a");r.href=e,r.target="_blank",setTimeout(function(){ic(r)})}else navigator.msSaveOrOpenBlob(function(n,i){return i===void 0?i={autoBom:!1}:Le(i)!=="object"&&(Ke.warn("Deprecated: Expected third argument to be a object"),i={autoBom:!i}),i.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(n.type)?new Blob(["\uFEFF",n],{type:n.type}):n}(e,t),A)}:function(e,A,t,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),typeof e=="string")return Lh(e,A,t);var n=e.type==="application/octet-stream",i=/constructor/i.test(ae.HTMLElement)||ae.safari,a=/CriOS\/[\d]+/.test(navigator.userAgent);if((a||n&&i)&&(typeof FileReader>"u"?"undefined":Le(FileReader))==="object"){var s=new FileReader;s.onloadend=function(){var u=s.result;u=a?u:u.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=u:location=u,r=null},s.readAsDataURL(e)}else{var o=ae.URL||ae.webkitURL,c=o.createObjectURL(e);r?r.location=c:location.href=c,r=null,setTimeout(function(){o.revokeObjectURL(c)},4e4)}});/**
|
|
293
|
+
* A class to parse color values
|
|
294
|
+
* @author Stoyan Stefanov <sstoo@gmail.com>
|
|
295
|
+
* {@link http://www.phpied.com/rgb-color-parser-in-javascript/}
|
|
296
|
+
* @license Use it if you like it
|
|
297
|
+
*/function W2(e){var A;e=e||"",this.ok=!1,e.charAt(0)=="#"&&(e=e.substr(1,6)),e={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[e=(e=e.replace(/ /g,"")).toLowerCase()]||e;for(var t=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(s){return[parseInt(s[1]),parseInt(s[2]),parseInt(s[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(s){return[parseInt(s[1],16),parseInt(s[2],16),parseInt(s[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(s){return[parseInt(s[1]+s[1],16),parseInt(s[2]+s[2],16),parseInt(s[3]+s[3],16)]}}],r=0;r<t.length;r++){var n=t[r].re,i=t[r].process,a=n.exec(e);a&&(A=i(a),this.r=A[0],this.g=A[1],this.b=A[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var s=this.r.toString(16),o=this.g.toString(16),c=this.b.toString(16);return s.length==1&&(s="0"+s),o.length==1&&(o="0"+o),c.length==1&&(c="0"+c),"#"+s+o+c}}/**
|
|
298
|
+
* @license
|
|
299
|
+
* Joseph Myers does not specify a particular license for his work.
|
|
300
|
+
*
|
|
301
|
+
* Author: Joseph Myers
|
|
302
|
+
* Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js
|
|
303
|
+
*
|
|
304
|
+
* Modified by: Owen Leong
|
|
305
|
+
*/function Th(e,A){var t=e[0],r=e[1],n=e[2],i=e[3];t=Yt(t,r,n,i,A[0],7,-680876936),i=Yt(i,t,r,n,A[1],12,-389564586),n=Yt(n,i,t,r,A[2],17,606105819),r=Yt(r,n,i,t,A[3],22,-1044525330),t=Yt(t,r,n,i,A[4],7,-176418897),i=Yt(i,t,r,n,A[5],12,1200080426),n=Yt(n,i,t,r,A[6],17,-1473231341),r=Yt(r,n,i,t,A[7],22,-45705983),t=Yt(t,r,n,i,A[8],7,1770035416),i=Yt(i,t,r,n,A[9],12,-1958414417),n=Yt(n,i,t,r,A[10],17,-42063),r=Yt(r,n,i,t,A[11],22,-1990404162),t=Yt(t,r,n,i,A[12],7,1804603682),i=Yt(i,t,r,n,A[13],12,-40341101),n=Yt(n,i,t,r,A[14],17,-1502002290),t=Jt(t,r=Yt(r,n,i,t,A[15],22,1236535329),n,i,A[1],5,-165796510),i=Jt(i,t,r,n,A[6],9,-1069501632),n=Jt(n,i,t,r,A[11],14,643717713),r=Jt(r,n,i,t,A[0],20,-373897302),t=Jt(t,r,n,i,A[5],5,-701558691),i=Jt(i,t,r,n,A[10],9,38016083),n=Jt(n,i,t,r,A[15],14,-660478335),r=Jt(r,n,i,t,A[4],20,-405537848),t=Jt(t,r,n,i,A[9],5,568446438),i=Jt(i,t,r,n,A[14],9,-1019803690),n=Jt(n,i,t,r,A[3],14,-187363961),r=Jt(r,n,i,t,A[8],20,1163531501),t=Jt(t,r,n,i,A[13],5,-1444681467),i=Jt(i,t,r,n,A[2],9,-51403784),n=Jt(n,i,t,r,A[7],14,1735328473),t=Zt(t,r=Jt(r,n,i,t,A[12],20,-1926607734),n,i,A[5],4,-378558),i=Zt(i,t,r,n,A[8],11,-2022574463),n=Zt(n,i,t,r,A[11],16,1839030562),r=Zt(r,n,i,t,A[14],23,-35309556),t=Zt(t,r,n,i,A[1],4,-1530992060),i=Zt(i,t,r,n,A[4],11,1272893353),n=Zt(n,i,t,r,A[7],16,-155497632),r=Zt(r,n,i,t,A[10],23,-1094730640),t=Zt(t,r,n,i,A[13],4,681279174),i=Zt(i,t,r,n,A[0],11,-358537222),n=Zt(n,i,t,r,A[3],16,-722521979),r=Zt(r,n,i,t,A[6],23,76029189),t=Zt(t,r,n,i,A[9],4,-640364487),i=Zt(i,t,r,n,A[12],11,-421815835),n=Zt(n,i,t,r,A[15],16,530742520),t=Ar(t,r=Zt(r,n,i,t,A[2],23,-995338651),n,i,A[0],6,-198630844),i=Ar(i,t,r,n,A[7],10,1126891415),n=Ar(n,i,t,r,A[14],15,-1416354905),r=Ar(r,n,i,t,A[5],21,-57434055),t=Ar(t,r,n,i,A[12],6,1700485571),i=Ar(i,t,r,n,A[3],10,-1894986606),n=Ar(n,i,t,r,A[10],15,-1051523),r=Ar(r,n,i,t,A[1],21,-2054922799),t=Ar(t,r,n,i,A[8],6,1873313359),i=Ar(i,t,r,n,A[15],10,-30611744),n=Ar(n,i,t,r,A[6],15,-1560198380),r=Ar(r,n,i,t,A[13],21,1309151649),t=Ar(t,r,n,i,A[4],6,-145523070),i=Ar(i,t,r,n,A[11],10,-1120210379),n=Ar(n,i,t,r,A[2],15,718787259),r=Ar(r,n,i,t,A[9],21,-343485551),e[0]=pi(t,e[0]),e[1]=pi(r,e[1]),e[2]=pi(n,e[2]),e[3]=pi(i,e[3])}function ac(e,A,t,r,n,i){return A=pi(pi(A,e),pi(r,i)),pi(A<<n|A>>>32-n,t)}function Yt(e,A,t,r,n,i,a){return ac(A&t|~A&r,e,A,n,i,a)}function Jt(e,A,t,r,n,i,a){return ac(A&r|t&~r,e,A,n,i,a)}function Zt(e,A,t,r,n,i,a){return ac(A^t^r,e,A,n,i,a)}function Ar(e,A,t,r,n,i,a){return ac(t^(A|~r),e,A,n,i,a)}function q2(e){var A,t=e.length,r=[1732584193,-271733879,-1732584194,271733878];for(A=64;A<=e.length;A+=64)Th(r,NQ(e.substring(A-64,A)));e=e.substring(A-64);var n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(A=0;A<e.length;A++)n[A>>2]|=e.charCodeAt(A)<<(A%4<<3);if(n[A>>2]|=128<<(A%4<<3),A>55)for(Th(r,n),A=0;A<16;A++)n[A]=0;return n[14]=8*t,Th(r,n),r}function NQ(e){var A,t=[];for(A=0;A<64;A+=4)t[A>>2]=e.charCodeAt(A)+(e.charCodeAt(A+1)<<8)+(e.charCodeAt(A+2)<<16)+(e.charCodeAt(A+3)<<24);return t}so=ae.atob.bind(ae),Nh=ae.btoa.bind(ae);var X2="0123456789abcdef".split("");function TQ(e){for(var A="",t=0;t<4;t++)A+=X2[e>>8*t+4&15]+X2[e>>8*t&15];return A}function OQ(e){return String.fromCharCode((255&e)>>0,(65280&e)>>8,(16711680&e)>>16,(4278190080&e)>>24)}function Oh(e){return q2(e).map(OQ).join("")}var HQ=function(e){for(var A=0;A<e.length;A++)e[A]=TQ(e[A]);return e.join("")}(q2("hello"))!="5d41402abc4b2a76b9719d911017c592";function pi(e,A){if(HQ){var t=(65535&e)+(65535&A);return(e>>16)+(A>>16)+(t>>16)<<16|65535&t}return e+A&4294967295}/**
|
|
306
|
+
* @license
|
|
307
|
+
* FPDF is released under a permissive license: there is no usage restriction.
|
|
308
|
+
* You may embed it freely in your application (commercial or not), with or
|
|
309
|
+
* without modifications.
|
|
310
|
+
*
|
|
311
|
+
* Reference: http://www.fpdf.org/en/script/script37.php
|
|
312
|
+
*/function Hh(e,A){var t,r,n,i;if(e!==t){for(var a=(n=e,i=1+(256/e.length>>0),new Array(i+1).join(n)),s=[],o=0;o<256;o++)s[o]=o;var c=0;for(o=0;o<256;o++){var u=s[o];c=(c+u+a.charCodeAt(o))%256,s[o]=s[c],s[c]=u}t=e,r=s}else s=r;var d=A.length,p=0,h=0,m="";for(o=0;o<d;o++)h=(h+(u=s[p=(p+1)%256]))%256,s[p]=s[h],s[h]=u,a=s[(s[p]+s[h])%256],m+=String.fromCharCode(A.charCodeAt(o)^a);return m}/**
|
|
313
|
+
* @license
|
|
314
|
+
* Licensed under the MIT License.
|
|
315
|
+
* http://opensource.org/licenses/mit-license
|
|
316
|
+
* Author: Owen Leong (@owenl131)
|
|
317
|
+
* Date: 15 Oct 2020
|
|
318
|
+
* References:
|
|
319
|
+
* https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt
|
|
320
|
+
* https://github.com/foliojs/pdfkit/blob/master/lib/security.js
|
|
321
|
+
* http://www.fpdf.org/en/script/script37.php
|
|
322
|
+
*/var Y2={print:4,modify:8,copy:16,"annot-forms":32};function Da(e,A,t,r){this.v=1,this.r=2;var n=192;e.forEach(function(s){if(Y2.perm!==void 0)throw new Error("Invalid permission: "+s);n+=Y2[s]}),this.padding="(¿N^NuAd\0NVÿú\b..\0¶Ðh>/\f©þdSiz";var i=(A+this.padding).substr(0,32),a=(t+this.padding).substr(0,32);this.O=this.processOwnerPassword(i,a),this.P=-(1+(255^n)),this.encryptionKey=Oh(i+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=Hh(this.encryptionKey,this.padding)}function Ma(e){if(/[^\u0000-\u00ff]/.test(e))throw new Error("Invalid PDF Name Object: "+e+", Only accept ASCII characters.");for(var A="",t=e.length,r=0;r<t;r++){var n=e.charCodeAt(r);n<33||n===35||n===37||n===40||n===41||n===47||n===60||n===62||n===91||n===93||n===123||n===125||n>126?A+="#"+("0"+n.toString(16)).slice(-2):A+=e[r]}return A}function J2(e){if(Le(e)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var A={};this.subscribe=function(t,r,n){if(n=n||!1,typeof t!="string"||typeof r!="function"||typeof n!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");A.hasOwnProperty(t)||(A[t]={});var i=Math.random().toString(35);return A[t][i]=[r,!!n],i},this.unsubscribe=function(t){for(var r in A)if(A[r][t])return delete A[r][t],Object.keys(A[r]).length===0&&delete A[r],!0;return!1},this.publish=function(t){if(A.hasOwnProperty(t)){var r=Array.prototype.slice.call(arguments,1),n=[];for(var i in A[t]){var a=A[t][i];try{a[0].apply(e,r)}catch(s){ae.console&&Ke.error("jsPDF PubSub Error",s.message,s)}a[1]&&n.push(i)}n.length&&n.forEach(this.unsubscribe)}},this.getTopics=function(){return A}}function sc(e){if(!(this instanceof sc))return new sc(e);var A="opacity,stroke-opacity".split(",");for(var t in e)e.hasOwnProperty(t)&&A.indexOf(t)>=0&&(this[t]=e[t]);this.id="",this.objectNumber=-1}function Z2(e,A){this.gState=e,this.matrix=A,this.id="",this.objectNumber=-1}function Wi(e,A,t,r,n){if(!(this instanceof Wi))return new Wi(e,A,t,r,n);this.type=e==="axial"?2:3,this.coords=A,this.colors=t,Z2.call(this,r,n)}function Ra(e,A,t,r,n){if(!(this instanceof Ra))return new Ra(e,A,t,r,n);this.boundingBox=e,this.xStep=A,this.yStep=t,this.stream="",this.cloneIndex=0,Z2.call(this,r,n)}function ne(e){var A,t=typeof arguments[0]=="string"?arguments[0]:"p",r=arguments[1],n=arguments[2],i=arguments[3],a=[],s=1,o=16,c="S",u=null;Le(e=e||{})==="object"&&(t=e.orientation,r=e.unit||r,n=e.format||n,i=e.compress||e.compressPdf||i,(u=e.encryption||null)!==null&&(u.userPassword=u.userPassword||"",u.ownerPassword=u.ownerPassword||"",u.userPermissions=u.userPermissions||[]),s=typeof e.userUnit=="number"?Math.abs(e.userUnit):1,e.precision!==void 0&&(A=e.precision),e.floatPrecision!==void 0&&(o=e.floatPrecision),c=e.defaultPathOperation||"S"),a=e.filters||(i===!0?["FlateEncode"]:a),r=r||"mm",t=(""+(t||"P")).toLowerCase();var d=e.putOnlyUsedFonts||!1,p={},h={internal:{},__private__:{}};h.__private__.PubSub=J2;var m="1.3",B=h.__private__.getPdfVersion=function(){return m};h.__private__.setPdfVersion=function(g){m=g};var C={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};h.__private__.getPageFormats=function(){return C};var b=h.__private__.getPageFormat=function(g){return C[g]};n=n||"a4";var Q={COMPAT:"compat",ADVANCED:"advanced"},L=Q.COMPAT;function D(){this.saveGraphicsState(),W(new Ae(HA,0,0,-HA,0,Ui()*HA).toString()+" cm"),this.setFontSize(this.getFontSize()/HA),c="n",L=Q.ADVANCED}function O(){this.restoreGraphicsState(),c="S",L=Q.COMPAT}var z=h.__private__.combineFontStyleAndFontWeight=function(g,F){if(g=="bold"&&F=="normal"||g=="bold"&&F==400||g=="normal"&&F=="italic"||g=="bold"&&F=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return F&&(g=F==400||F==="normal"?g==="italic"?"italic":"normal":F!=700&&F!=="bold"||g!=="normal"?(F==700?"bold":F)+""+g:"bold"),g};h.advancedAPI=function(g){var F=L===Q.COMPAT;return F&&D.call(this),typeof g!="function"||(g(this),F&&O.call(this)),this},h.compatAPI=function(g){var F=L===Q.ADVANCED;return F&&O.call(this),typeof g!="function"||(g(this),F&&D.call(this)),this},h.isAdvancedAPI=function(){return L===Q.ADVANCED};var R,_=function(g){if(L!==Q.ADVANCED)throw new Error(g+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},X=h.roundToPrecision=h.__private__.roundToPrecision=function(g,F){var G=A||F;if(isNaN(g)||isNaN(G))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return g.toFixed(G).replace(/0+$/,"")};R=h.hpf=h.__private__.hpf=typeof o=="number"?function(g){if(isNaN(g))throw new Error("Invalid argument passed to jsPDF.hpf");return X(g,o)}:o==="smart"?function(g){if(isNaN(g))throw new Error("Invalid argument passed to jsPDF.hpf");return X(g,g>-1&&g<1?16:5)}:function(g){if(isNaN(g))throw new Error("Invalid argument passed to jsPDF.hpf");return X(g,16)};var nA=h.f2=h.__private__.f2=function(g){if(isNaN(g))throw new Error("Invalid argument passed to jsPDF.f2");return X(g,2)},N=h.__private__.f3=function(g){if(isNaN(g))throw new Error("Invalid argument passed to jsPDF.f3");return X(g,3)},T=h.scale=h.__private__.scale=function(g){if(isNaN(g))throw new Error("Invalid argument passed to jsPDF.scale");return L===Q.COMPAT?g*HA:L===Q.ADVANCED?g:void 0},M=function(g){return L===Q.COMPAT?Ui()-g:L===Q.ADVANCED?g:void 0},V=function(g){return T(M(g))};h.__private__.setPrecision=h.setPrecision=function(g){typeof parseInt(g,10)=="number"&&(A=parseInt(g,10))};var sA,iA="00000000000000000000000000000000",lA=h.__private__.getFileId=function(){return iA},eA=h.__private__.setFileId=function(g){return iA=g!==void 0&&/^[a-fA-F0-9]{32}$/.test(g)?g.toUpperCase():iA.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),u!==null&&(tr=new Da(u.userPermissions,u.userPassword,u.ownerPassword,iA)),iA};h.setFileId=function(g){return eA(g),this},h.getFileId=function(){return lA()};var cA=h.__private__.convertDateToPDFDate=function(g){var F=g.getTimezoneOffset(),G=F<0?"+":"-",Y=Math.floor(Math.abs(F/60)),uA=Math.abs(F%60),vA=[G,K(Y),"'",K(uA),"'"].join("");return["D:",g.getFullYear(),K(g.getMonth()+1),K(g.getDate()),K(g.getHours()),K(g.getMinutes()),K(g.getSeconds()),vA].join("")},fA=h.__private__.convertPDFDateToDate=function(g){var F=parseInt(g.substr(2,4),10),G=parseInt(g.substr(6,2),10)-1,Y=parseInt(g.substr(8,2),10),uA=parseInt(g.substr(10,2),10),vA=parseInt(g.substr(12,2),10),SA=parseInt(g.substr(14,2),10);return new Date(F,G,Y,uA,vA,SA,0)},BA=h.__private__.setCreationDate=function(g){var F;if(g===void 0&&(g=new Date),g instanceof Date)F=cA(g);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(g))throw new Error("Invalid argument passed to jsPDF.setCreationDate");F=g}return sA=F},U=h.__private__.getCreationDate=function(g){var F=sA;return g==="jsDate"&&(F=fA(sA)),F};h.setCreationDate=function(g){return BA(g),this},h.getCreationDate=function(g){return U(g)};var P,K=h.__private__.padd2=function(g){return("0"+parseInt(g)).slice(-2)},$=h.__private__.padd2Hex=function(g){return("00"+(g=g.toString())).substr(g.length)},j=0,q=[],rA=[],oA=0,wA=[],FA=[],UA=!1,LA=rA,MA=function(){j=0,oA=0,rA=[],q=[],wA=[],Kr=Se(),lr=Se()};h.__private__.setCustomOutputDestination=function(g){UA=!0,LA=g};var gA=function(g){UA||(LA=g)};h.__private__.resetCustomOutputDestination=function(){UA=!1,LA=rA};var W=h.__private__.out=function(g){return g=g.toString(),oA+=g.length+1,LA.push(g),LA},ZA=h.__private__.write=function(g){return W(arguments.length===1?g.toString():Array.prototype.join.call(arguments," "))},RA=h.__private__.getArrayBuffer=function(g){for(var F=g.length,G=new ArrayBuffer(F),Y=new Uint8Array(G);F--;)Y[F]=g.charCodeAt(F);return G},xA=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];h.__private__.getStandardFonts=function(){return xA};var NA=e.fontSize||16;h.__private__.setFontSize=h.setFontSize=function(g){return NA=L===Q.ADVANCED?g/HA:g,this};var OA,TA=h.__private__.getFontSize=h.getFontSize=function(){return L===Q.COMPAT?NA:NA*HA},zA=e.R2L||!1;h.__private__.setR2L=h.setR2L=function(g){return zA=g,this},h.__private__.getR2L=h.getR2L=function(){return zA};var WA,ee=h.__private__.setZoomMode=function(g){var F=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(g))OA=g;else if(isNaN(g)){if(F.indexOf(g)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+g+'" is not recognized.');OA=g}else OA=parseInt(g,10)};h.__private__.getZoomMode=function(){return OA};var ie,oe=h.__private__.setPageMode=function(g){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(g)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+g+'" is not recognized.');WA=g};h.__private__.getPageMode=function(){return WA};var pe=h.__private__.setLayoutMode=function(g){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(g)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+g+'" is not recognized.');ie=g};h.__private__.getLayoutMode=function(){return ie},h.__private__.setDisplayMode=h.setDisplayMode=function(g,F,G){return ee(g),pe(F),oe(G),this};var XA={title:"",subject:"",author:"",keywords:"",creator:""};h.__private__.getDocumentProperty=function(g){if(Object.keys(XA).indexOf(g)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return XA[g]},h.__private__.getDocumentProperties=function(){return XA},h.__private__.setDocumentProperties=h.setProperties=h.setDocumentProperties=function(g){for(var F in XA)XA.hasOwnProperty(F)&&g[F]&&(XA[F]=g[F]);return this},h.__private__.setDocumentProperty=function(g,F){if(Object.keys(XA).indexOf(g)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return XA[g]=F};var se,HA,Me,me,at,be={},ye={},Ze=[],mA={},xe={},le={},_e={},He=null,Ve=0,GA=[],Ce=new J2(h),hn=e.hotfixes||[],st={},Br={},Ur=[],Ae=function g(F,G,Y,uA,vA,SA){if(!(this instanceof g))return new g(F,G,Y,uA,vA,SA);isNaN(F)&&(F=1),isNaN(G)&&(G=0),isNaN(Y)&&(Y=0),isNaN(uA)&&(uA=1),isNaN(vA)&&(vA=0),isNaN(SA)&&(SA=0),this._matrix=[F,G,Y,uA,vA,SA]};Object.defineProperty(Ae.prototype,"sx",{get:function(){return this._matrix[0]},set:function(g){this._matrix[0]=g}}),Object.defineProperty(Ae.prototype,"shy",{get:function(){return this._matrix[1]},set:function(g){this._matrix[1]=g}}),Object.defineProperty(Ae.prototype,"shx",{get:function(){return this._matrix[2]},set:function(g){this._matrix[2]=g}}),Object.defineProperty(Ae.prototype,"sy",{get:function(){return this._matrix[3]},set:function(g){this._matrix[3]=g}}),Object.defineProperty(Ae.prototype,"tx",{get:function(){return this._matrix[4]},set:function(g){this._matrix[4]=g}}),Object.defineProperty(Ae.prototype,"ty",{get:function(){return this._matrix[5]},set:function(g){this._matrix[5]=g}}),Object.defineProperty(Ae.prototype,"a",{get:function(){return this._matrix[0]},set:function(g){this._matrix[0]=g}}),Object.defineProperty(Ae.prototype,"b",{get:function(){return this._matrix[1]},set:function(g){this._matrix[1]=g}}),Object.defineProperty(Ae.prototype,"c",{get:function(){return this._matrix[2]},set:function(g){this._matrix[2]=g}}),Object.defineProperty(Ae.prototype,"d",{get:function(){return this._matrix[3]},set:function(g){this._matrix[3]=g}}),Object.defineProperty(Ae.prototype,"e",{get:function(){return this._matrix[4]},set:function(g){this._matrix[4]=g}}),Object.defineProperty(Ae.prototype,"f",{get:function(){return this._matrix[5]},set:function(g){this._matrix[5]=g}}),Object.defineProperty(Ae.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Ae.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Ae.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Ae.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),Ae.prototype.join=function(g){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(R).join(g)},Ae.prototype.multiply=function(g){var F=g.sx*this.sx+g.shy*this.shx,G=g.sx*this.shy+g.shy*this.sy,Y=g.shx*this.sx+g.sy*this.shx,uA=g.shx*this.shy+g.sy*this.sy,vA=g.tx*this.sx+g.ty*this.shx+this.tx,SA=g.tx*this.shy+g.ty*this.sy+this.ty;return new Ae(F,G,Y,uA,vA,SA)},Ae.prototype.decompose=function(){var g=this.sx,F=this.shy,G=this.shx,Y=this.sy,uA=this.tx,vA=this.ty,SA=Math.sqrt(g*g+F*F),KA=(g/=SA)*G+(F/=SA)*Y;G-=g*KA,Y-=F*KA;var JA=Math.sqrt(G*G+Y*Y);return KA/=JA,g*(Y/=JA)<F*(G/=JA)&&(g=-g,F=-F,KA=-KA,SA=-SA),{scale:new Ae(SA,0,0,JA,0,0),translate:new Ae(1,0,0,1,uA,vA),rotate:new Ae(g,F,-F,g,0,0),skew:new Ae(1,0,KA,1,0,0)}},Ae.prototype.toString=function(g){return this.join(" ")},Ae.prototype.inversed=function(){var g=this.sx,F=this.shy,G=this.shx,Y=this.sy,uA=this.tx,vA=this.ty,SA=1/(g*Y-F*G),KA=Y*SA,JA=-F*SA,de=-G*SA,fe=g*SA;return new Ae(KA,JA,de,fe,-KA*uA-de*vA,-JA*uA-fe*vA)},Ae.prototype.applyToPoint=function(g){var F=g.x*this.sx+g.y*this.shx+this.tx,G=g.x*this.shy+g.y*this.sy+this.ty;return new Bs(F,G)},Ae.prototype.applyToRectangle=function(g){var F=this.applyToPoint(g),G=this.applyToPoint(new Bs(g.x+g.w,g.y+g.h));return new Vo(F.x,F.y,G.x-F.x,G.y-F.y)},Ae.prototype.clone=function(){var g=this.sx,F=this.shy,G=this.shx,Y=this.sy,uA=this.tx,vA=this.ty;return new Ae(g,F,G,Y,uA,vA)},h.Matrix=Ae;var Er=h.matrixMult=function(g,F){return F.multiply(g)},or=new Ae(1,0,0,1,0,0);h.unitMatrix=h.identityMatrix=or;var Ot=function(g,F){if(!xe[g]){var G=(F instanceof Wi?"Sh":"P")+(Object.keys(mA).length+1).toString(10);F.id=G,xe[g]=G,mA[G]=F,Ce.publish("addPattern",F)}};h.ShadingPattern=Wi,h.TilingPattern=Ra,h.addShadingPattern=function(g,F){return _("addShadingPattern()"),Ot(g,F),this},h.beginTilingPattern=function(g){_("beginTilingPattern()"),Pu(g.boundingBox[0],g.boundingBox[1],g.boundingBox[2]-g.boundingBox[0],g.boundingBox[3]-g.boundingBox[1],g.matrix)},h.endTilingPattern=function(g,F){_("endTilingPattern()"),F.stream=FA[P].join(`
|
|
323
|
+
`),Ot(g,F),Ce.publish("endTilingPattern",F),Ur.pop().restore()};var vt=h.__private__.newObject=function(){var g=Se();return Ht(g,!0),g},Se=h.__private__.newObjectDeferred=function(){return j++,q[j]=function(){return oA},j},Ht=function(g,F){return F=typeof F=="boolean"&&F,q[g]=oA,F&&W(g+" 0 obj"),g},Wn=h.__private__.newAdditionalObject=function(){var g={objId:Se(),content:""};return wA.push(g),g},Kr=Se(),lr=Se(),jt=h.__private__.decodeColorString=function(g){var F=g.split(" ");if(F.length!==2||F[1]!=="g"&&F[1]!=="G")F.length===5&&(F[4]==="k"||F[4]==="K")&&(F=[(1-F[0])*(1-F[3]),(1-F[1])*(1-F[3]),(1-F[2])*(1-F[3]),"r"]);else{var G=parseFloat(F[0]);F=[G,G,G,"r"]}for(var Y="#",uA=0;uA<3;uA++)Y+=("0"+Math.floor(255*parseFloat(F[uA])).toString(16)).slice(-2);return Y},Bt=h.__private__.encodeColorString=function(g){var F;typeof g=="string"&&(g={ch1:g});var G=g.ch1,Y=g.ch2,uA=g.ch3,vA=g.ch4,SA=g.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof G=="string"&&G.charAt(0)!=="#"){var KA=new W2(G);if(KA.ok)G=KA.toHex();else if(!/^\d*\.?\d*$/.test(G))throw new Error('Invalid color "'+G+'" passed to jsPDF.encodeColorString.')}if(typeof G=="string"&&/^#[0-9A-Fa-f]{3}$/.test(G)&&(G="#"+G[1]+G[1]+G[2]+G[2]+G[3]+G[3]),typeof G=="string"&&/^#[0-9A-Fa-f]{6}$/.test(G)){var JA=parseInt(G.substr(1),16);G=JA>>16&255,Y=JA>>8&255,uA=255&JA}if(Y===void 0||vA===void 0&&G===Y&&Y===uA)if(typeof G=="string")F=G+" "+SA[0];else switch(g.precision){case 2:F=nA(G/255)+" "+SA[0];break;case 3:default:F=N(G/255)+" "+SA[0]}else if(vA===void 0||Le(vA)==="object"){if(vA&&!isNaN(vA.a)&&vA.a===0)return F=["1.","1.","1.",SA[1]].join(" ");if(typeof G=="string")F=[G,Y,uA,SA[1]].join(" ");else switch(g.precision){case 2:F=[nA(G/255),nA(Y/255),nA(uA/255),SA[1]].join(" ");break;default:case 3:F=[N(G/255),N(Y/255),N(uA/255),SA[1]].join(" ")}}else if(typeof G=="string")F=[G,Y,uA,vA,SA[2]].join(" ");else switch(g.precision){case 2:F=[nA(G),nA(Y),nA(uA),nA(vA),SA[2]].join(" ");break;case 3:default:F=[N(G),N(Y),N(uA),N(vA),SA[2]].join(" ")}return F},Sr=h.__private__.getFilters=function(){return a},cr=h.__private__.putStream=function(g){var F=(g=g||{}).data||"",G=g.filters||Sr(),Y=g.alreadyAppliedFilters||[],uA=g.addLength1||!1,vA=F.length,SA=g.objectId,KA=function(rr){return rr};if(u!==null&&SA===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");u!==null&&(KA=tr.encryptor(SA,0));var JA={};G===!0&&(G=["FlateEncode"]);var de=g.additionalKeyValues||[],fe=(JA=ne.API.processDataByFilters!==void 0?ne.API.processDataByFilters(F,G):{data:F,reverseChain:[]}).reverseChain+(Array.isArray(Y)?Y.join(" "):Y.toString());if(JA.data.length!==0&&(de.push({key:"Length",value:JA.data.length}),uA===!0&&de.push({key:"Length1",value:vA})),fe.length!=0)if(fe.split("/").length-1==1)de.push({key:"Filter",value:fe});else{de.push({key:"Filter",value:"["+fe+"]"});for(var Ee=0;Ee<de.length;Ee+=1)if(de[Ee].key==="DecodeParms"){for(var et=[],lt=0;lt<JA.reverseChain.split("/").length-1;lt+=1)et.push("null");et.push(de[Ee].value),de[Ee].value="["+et.join(" ")+"]"}}W("<<");for(var Qt=0;Qt<de.length;Qt++)W("/"+de[Qt].key+" "+de[Qt].value);W(">>"),JA.data.length!==0&&(W("stream"),W(KA(JA.data)),W("endstream"))},Ir=h.__private__.putPage=function(g){var F=g.number,G=g.data,Y=g.objId,uA=g.contentsObjId;Ht(Y,!0),W("<</Type /Page"),W("/Parent "+g.rootDictionaryObjId+" 0 R"),W("/Resources "+g.resourceDictionaryObjId+" 0 R"),W("/MediaBox ["+parseFloat(R(g.mediaBox.bottomLeftX))+" "+parseFloat(R(g.mediaBox.bottomLeftY))+" "+R(g.mediaBox.topRightX)+" "+R(g.mediaBox.topRightY)+"]"),g.cropBox!==null&&W("/CropBox ["+R(g.cropBox.bottomLeftX)+" "+R(g.cropBox.bottomLeftY)+" "+R(g.cropBox.topRightX)+" "+R(g.cropBox.topRightY)+"]"),g.bleedBox!==null&&W("/BleedBox ["+R(g.bleedBox.bottomLeftX)+" "+R(g.bleedBox.bottomLeftY)+" "+R(g.bleedBox.topRightX)+" "+R(g.bleedBox.topRightY)+"]"),g.trimBox!==null&&W("/TrimBox ["+R(g.trimBox.bottomLeftX)+" "+R(g.trimBox.bottomLeftY)+" "+R(g.trimBox.topRightX)+" "+R(g.trimBox.topRightY)+"]"),g.artBox!==null&&W("/ArtBox ["+R(g.artBox.bottomLeftX)+" "+R(g.artBox.bottomLeftY)+" "+R(g.artBox.topRightX)+" "+R(g.artBox.topRightY)+"]"),typeof g.userUnit=="number"&&g.userUnit!==1&&W("/UserUnit "+g.userUnit),Ce.publish("putPage",{objId:Y,pageContext:GA[F],pageNumber:F,page:G}),W("/Contents "+uA+" 0 R"),W(">>"),W("endobj");var vA=G.join(`
|
|
324
|
+
`);return L===Q.ADVANCED&&(vA+=`
|
|
325
|
+
Q`),Ht(uA,!0),cr({data:vA,filters:Sr(),objectId:uA}),W("endobj"),Y},Sn=h.__private__.putPages=function(){var g,F,G=[];for(g=1;g<=Ve;g++)GA[g].objId=Se(),GA[g].contentsObjId=Se();for(g=1;g<=Ve;g++)G.push(Ir({number:g,data:FA[g],objId:GA[g].objId,contentsObjId:GA[g].contentsObjId,mediaBox:GA[g].mediaBox,cropBox:GA[g].cropBox,bleedBox:GA[g].bleedBox,trimBox:GA[g].trimBox,artBox:GA[g].artBox,userUnit:GA[g].userUnit,rootDictionaryObjId:Kr,resourceDictionaryObjId:lr}));Ht(Kr,!0),W("<</Type /Pages");var Y="/Kids [";for(F=0;F<Ve;F++)Y+=G[F]+" 0 R ";W(Y+"]"),W("/Count "+Ve),W(">>"),W("endobj"),Ce.publish("postPutPages")},xi=function(g){Ce.publish("putFont",{font:g,out:W,newObject:vt,putStream:cr}),g.isAlreadyPutted!==!0&&(g.objectNumber=vt(),W("<<"),W("/Type /Font"),W("/BaseFont /"+Ma(g.postScriptName)),W("/Subtype /Type1"),typeof g.encoding=="string"&&W("/Encoding /"+g.encoding),W("/FirstChar 32"),W("/LastChar 255"),W(">>"),W("endobj"))},qA=function(){for(var g in be)be.hasOwnProperty(g)&&(d===!1||d===!0&&p.hasOwnProperty(g))&&xi(be[g])},J=function(g){g.objectNumber=vt();var F=[];F.push({key:"Type",value:"/XObject"}),F.push({key:"Subtype",value:"/Form"}),F.push({key:"BBox",value:"["+[R(g.x),R(g.y),R(g.x+g.width),R(g.y+g.height)].join(" ")+"]"}),F.push({key:"Matrix",value:"["+g.matrix.toString()+"]"});var G=g.pages[1].join(`
|
|
326
|
+
`);cr({data:G,additionalKeyValues:F,objectId:g.objectNumber}),W("endobj")},IA=function(){for(var g in st)st.hasOwnProperty(g)&&J(st[g])},_A=function(g,F){var G,Y=[],uA=1/(F-1);for(G=0;G<1;G+=uA)Y.push(G);if(Y.push(1),g[0].offset!=0){var vA={offset:0,color:g[0].color};g.unshift(vA)}if(g[g.length-1].offset!=1){var SA={offset:1,color:g[g.length-1].color};g.push(SA)}for(var KA="",JA=0,de=0;de<Y.length;de++){for(G=Y[de];G>g[JA+1].offset;)JA++;var fe=g[JA].offset,Ee=(G-fe)/(g[JA+1].offset-fe),et=g[JA].color,lt=g[JA+1].color;KA+=$(Math.round((1-Ee)*et[0]+Ee*lt[0]).toString(16))+$(Math.round((1-Ee)*et[1]+Ee*lt[1]).toString(16))+$(Math.round((1-Ee)*et[2]+Ee*lt[2]).toString(16))}return KA.trim()},Ue=function(g,F){F||(F=21);var G=vt(),Y=_A(g.colors,F),uA=[];uA.push({key:"FunctionType",value:"0"}),uA.push({key:"Domain",value:"[0.0 1.0]"}),uA.push({key:"Size",value:"["+F+"]"}),uA.push({key:"BitsPerSample",value:"8"}),uA.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),uA.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),cr({data:Y,additionalKeyValues:uA,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:G}),W("endobj"),g.objectNumber=vt(),W("<< /ShadingType "+g.type),W("/ColorSpace /DeviceRGB");var vA="/Coords ["+R(parseFloat(g.coords[0]))+" "+R(parseFloat(g.coords[1]))+" ";g.type===2?vA+=R(parseFloat(g.coords[2]))+" "+R(parseFloat(g.coords[3])):vA+=R(parseFloat(g.coords[2]))+" "+R(parseFloat(g.coords[3]))+" "+R(parseFloat(g.coords[4]))+" "+R(parseFloat(g.coords[5])),W(vA+="]"),g.matrix&&W("/Matrix ["+g.matrix.toString()+"]"),W("/Function "+G+" 0 R"),W("/Extend [true true]"),W(">>"),W("endobj")},_t=function(g,F){var G=Se(),Y=vt();F.push({resourcesOid:G,objectOid:Y}),g.objectNumber=Y;var uA=[];uA.push({key:"Type",value:"/Pattern"}),uA.push({key:"PatternType",value:"1"}),uA.push({key:"PaintType",value:"1"}),uA.push({key:"TilingType",value:"1"}),uA.push({key:"BBox",value:"["+g.boundingBox.map(R).join(" ")+"]"}),uA.push({key:"XStep",value:R(g.xStep)}),uA.push({key:"YStep",value:R(g.yStep)}),uA.push({key:"Resources",value:G+" 0 R"}),g.matrix&&uA.push({key:"Matrix",value:"["+g.matrix.toString()+"]"}),cr({data:g.stream,additionalKeyValues:uA,objectId:g.objectNumber}),W("endobj")},At=function(g){var F;for(F in mA)mA.hasOwnProperty(F)&&(mA[F]instanceof Wi?Ue(mA[F]):mA[F]instanceof Ra&&_t(mA[F],g))},ot=function(g){for(var F in g.objectNumber=vt(),W("<<"),g)switch(F){case"opacity":W("/ca "+nA(g[F]));break;case"stroke-opacity":W("/CA "+nA(g[F]))}W(">>"),W("endobj")},dn=function(){var g;for(g in le)le.hasOwnProperty(g)&&ot(le[g])},Xe=function(){for(var g in W("/XObject <<"),st)st.hasOwnProperty(g)&&st[g].objectNumber>=0&&W("/"+g+" "+st[g].objectNumber+" 0 R");Ce.publish("putXobjectDict"),W(">>")},ua=function(){tr.oid=vt(),W("<<"),W("/Filter /Standard"),W("/V "+tr.v),W("/R "+tr.r),W("/U <"+tr.toHexString(tr.U)+">"),W("/O <"+tr.toHexString(tr.O)+">"),W("/P "+tr.P),W(">>"),W("endobj")},fa=function(){for(var g in W("/Font <<"),be)be.hasOwnProperty(g)&&(d===!1||d===!0&&p.hasOwnProperty(g))&&W("/"+g+" "+be[g].objectNumber+" 0 R");W(">>")},wu=function(){if(Object.keys(mA).length>0){for(var g in W("/Shading <<"),mA)mA.hasOwnProperty(g)&&mA[g]instanceof Wi&&mA[g].objectNumber>=0&&W("/"+g+" "+mA[g].objectNumber+" 0 R");Ce.publish("putShadingPatternDict"),W(">>")}},us=function(g){if(Object.keys(mA).length>0){for(var F in W("/Pattern <<"),mA)mA.hasOwnProperty(F)&&mA[F]instanceof h.TilingPattern&&mA[F].objectNumber>=0&&mA[F].objectNumber<g&&W("/"+F+" "+mA[F].objectNumber+" 0 R");Ce.publish("putTilingPatternDict"),W(">>")}},Bp=function(){if(Object.keys(le).length>0){var g;for(g in W("/ExtGState <<"),le)le.hasOwnProperty(g)&&le[g].objectNumber>=0&&W("/"+g+" "+le[g].objectNumber+" 0 R");Ce.publish("putGStateDict"),W(">>")}},mt=function(g){Ht(g.resourcesOid,!0),W("<<"),W("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),fa(),wu(),us(g.objectOid),Bp(),Xe(),W(">>"),W("endobj")},bu=function(){var g=[];qA(),dn(),IA(),At(g),Ce.publish("putResources"),g.forEach(mt),mt({resourcesOid:lr,objectOid:Number.MAX_SAFE_INTEGER}),Ce.publish("postPutResources")},Cu=function(){Ce.publish("putAdditionalObjects");for(var g=0;g<wA.length;g++){var F=wA[g];Ht(F.objId,!0),W(F.content),W("endobj")}Ce.publish("postPutAdditionalObjects")},xu=function(g){ye[g.fontName]=ye[g.fontName]||{},ye[g.fontName][g.fontStyle]=g.id},Oo=function(g,F,G,Y,uA){var vA={id:"F"+(Object.keys(be).length+1).toString(10),postScriptName:g,fontName:F,fontStyle:G,encoding:Y,isStandardFont:uA||!1,metadata:{}};return Ce.publish("addFont",{font:vA,instance:this}),be[vA.id]=vA,xu(vA),vA.id},mp=function(g){for(var F=0,G=xA.length;F<G;F++){var Y=Oo.call(this,g[F][0],g[F][1],g[F][2],xA[F][3],!0);d===!1&&(p[Y]=!0);var uA=g[F][0].split("-");xu({id:Y,fontName:uA[0],fontStyle:uA[1]||""})}Ce.publish("addFonts",{fonts:be,dictionary:ye})},gn=function(g){return g.foo=function(){try{return g.apply(this,arguments)}catch(Y){var F=Y.stack||"";~F.indexOf(" at ")&&(F=F.split(" at ")[1]);var G="Error in function "+F.split(`
|
|
327
|
+
`)[0].split("<")[0]+": "+Y.message;if(!ae.console)throw new Error(G);ae.console.error(G,Y),ae.alert&&alert(G)}},g.foo.bar=g,g.foo},fs=function(g,F){var G,Y,uA,vA,SA,KA,JA,de,fe;if(uA=(F=F||{}).sourceEncoding||"Unicode",SA=F.outputEncoding,(F.autoencode||SA)&&be[se].metadata&&be[se].metadata[uA]&&be[se].metadata[uA].encoding&&(vA=be[se].metadata[uA].encoding,!SA&&be[se].encoding&&(SA=be[se].encoding),!SA&&vA.codePages&&(SA=vA.codePages[0]),typeof SA=="string"&&(SA=vA[SA]),SA)){for(JA=!1,KA=[],G=0,Y=g.length;G<Y;G++)(de=SA[g.charCodeAt(G)])?KA.push(String.fromCharCode(de)):KA.push(g[G]),KA[G].charCodeAt(0)>>8&&(JA=!0);g=KA.join("")}for(G=g.length;JA===void 0&&G!==0;)g.charCodeAt(G-1)>>8&&(JA=!0),G--;if(!JA)return g;for(KA=F.noBOM?[]:[254,255],G=0,Y=g.length;G<Y;G++){if((fe=(de=g.charCodeAt(G))>>8)>>8)throw new Error("Character at position "+G+" of string '"+g+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");KA.push(fe),KA.push(de-(fe<<8))}return String.fromCharCode.apply(void 0,KA)},mr=h.__private__.pdfEscape=h.pdfEscape=function(g,F){return fs(g,F).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Ho=h.__private__.beginPage=function(g){FA[++Ve]=[],GA[Ve]={objId:0,contentsObjId:0,userUnit:Number(s),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(g[0]),topRightY:Number(g[1])}},Qu(Ve),gA(FA[P])},Fu=function(g,F){var G,Y,uA;switch(t=F||t,typeof g=="string"&&(G=b(g.toLowerCase()),Array.isArray(G)&&(Y=G[0],uA=G[1])),Array.isArray(g)&&(Y=g[0]*HA,uA=g[1]*HA),isNaN(Y)&&(Y=n[0],uA=n[1]),(Y>14400||uA>14400)&&(Ke.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),Y=Math.min(14400,Y),uA=Math.min(14400,uA)),n=[Y,uA],t.substr(0,1)){case"l":uA>Y&&(n=[uA,Y]);break;case"p":Y>uA&&(n=[uA,Y])}Ho(n),Nu(Do),W(pn),Ro!==0&&W(Ro+" J"),Ko!==0&&W(Ko+" j"),Ce.publish("addPage",{pageNumber:Ve})},yp=function(g){g>0&&g<=Ve&&(FA.splice(g,1),GA.splice(g,1),Ve--,P>Ve&&(P=Ve),this.setPage(P))},Qu=function(g){g>0&&g<=Ve&&(P=g)},wp=h.__private__.getNumberOfPages=h.getNumberOfPages=function(){return FA.length-1},Uu=function(g,F,G){var Y,uA=void 0;return G=G||{},g=g!==void 0?g:be[se].fontName,F=F!==void 0?F:be[se].fontStyle,Y=g.toLowerCase(),ye[Y]!==void 0&&ye[Y][F]!==void 0?uA=ye[Y][F]:ye[g]!==void 0&&ye[g][F]!==void 0?uA=ye[g][F]:G.disableWarning===!1&&Ke.warn("Unable to look up font label for font '"+g+"', '"+F+"'. Refer to getFontList() for available fonts."),uA||G.noFallback||(uA=ye.times[F])==null&&(uA=ye.times.normal),uA},bp=h.__private__.putInfo=function(){var g=vt(),F=function(Y){return Y};for(var G in u!==null&&(F=tr.encryptor(g,0)),W("<<"),W("/Producer ("+mr(F("jsPDF "+ne.version))+")"),XA)XA.hasOwnProperty(G)&&XA[G]&&W("/"+G.substr(0,1).toUpperCase()+G.substr(1)+" ("+mr(F(XA[G]))+")");W("/CreationDate ("+mr(F(sA))+")"),W(">>"),W("endobj")},_o=h.__private__.putCatalog=function(g){var F=(g=g||{}).rootDictionaryObjId||Kr;switch(vt(),W("<<"),W("/Type /Catalog"),W("/Pages "+F+" 0 R"),OA||(OA="fullwidth"),OA){case"fullwidth":W("/OpenAction [3 0 R /FitH null]");break;case"fullheight":W("/OpenAction [3 0 R /FitV null]");break;case"fullpage":W("/OpenAction [3 0 R /Fit]");break;case"original":W("/OpenAction [3 0 R /XYZ null null 1]");break;default:var G=""+OA;G.substr(G.length-1)==="%"&&(OA=parseInt(OA)/100),typeof OA=="number"&&W("/OpenAction [3 0 R /XYZ null null "+nA(OA)+"]")}switch(ie||(ie="continuous"),ie){case"continuous":W("/PageLayout /OneColumn");break;case"single":W("/PageLayout /SinglePage");break;case"two":case"twoleft":W("/PageLayout /TwoColumnLeft");break;case"tworight":W("/PageLayout /TwoColumnRight")}WA&&W("/PageMode /"+WA),Ce.publish("putCatalog"),W(">>"),W("endobj")},Cp=h.__private__.putTrailer=function(){W("trailer"),W("<<"),W("/Size "+(j+1)),W("/Root "+j+" 0 R"),W("/Info "+(j-1)+" 0 R"),u!==null&&W("/Encrypt "+tr.oid+" 0 R"),W("/ID [ <"+iA+"> <"+iA+"> ]"),W(">>")},xp=h.__private__.putHeader=function(){W("%PDF-"+m),W("%ºß¬à")},Fp=h.__private__.putXRef=function(){var g="0000000000";W("xref"),W("0 "+(j+1)),W("0000000000 65535 f ");for(var F=1;F<=j;F++)typeof q[F]=="function"?W((g+q[F]()).slice(-10)+" 00000 n "):q[F]!==void 0?W((g+q[F]).slice(-10)+" 00000 n "):W("0000000000 00000 n ")},qn=h.__private__.buildDocument=function(){MA(),gA(rA),Ce.publish("buildDocument"),xp(),Sn(),Cu(),bu(),u!==null&&ua(),bp(),_o();var g=oA;return Fp(),Cp(),W("startxref"),W(""+g),W("%%EOF"),gA(FA[P]),rA.join(`
|
|
328
|
+
`)},hs=h.__private__.getBlob=function(g){return new Blob([RA(g)],{type:"application/pdf"})},ds=h.output=h.__private__.output=gn(function(g,F){switch(typeof(F=F||{})=="string"?F={filename:F}:F.filename=F.filename||"generated.pdf",g){case void 0:return qn();case"save":h.save(F.filename);break;case"arraybuffer":return RA(qn());case"blob":return hs(qn());case"bloburi":case"bloburl":if(ae.URL!==void 0&&typeof ae.URL.createObjectURL=="function")return ae.URL&&ae.URL.createObjectURL(hs(qn()))||void 0;Ke.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var G="",Y=qn();try{G=Nh(Y)}catch{G=Nh(unescape(encodeURIComponent(Y)))}return"data:application/pdf;filename="+F.filename+";base64,"+G;case"pdfobjectnewwindow":if(Object.prototype.toString.call(ae)==="[object Window]"){var uA="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",vA=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';F.pdfObjectUrl&&(uA=F.pdfObjectUrl,vA="");var SA='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+uA+'"'+vA+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(F)+");<\/script></body></html>",KA=ae.open();return KA!==null&&KA.document.write(SA),KA}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(ae)==="[object Window]"){var JA='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(F.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+F.filename+'" width="500px" height="400px" /></body></html>',de=ae.open();if(de!==null){de.document.write(JA);var fe=this;de.document.documentElement.querySelector("#pdfViewer").onload=function(){de.document.title=F.filename,de.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(fe.output("bloburl"))}}return de}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(ae)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var Ee='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",F)+'"></iframe></body></html>',et=ae.open();if(et!==null&&(et.document.write(Ee),et.document.title=F.filename),et||typeof safari>"u")return et;break;case"datauri":case"dataurl":return ae.document.location.href=this.output("datauristring",F);default:return null}}),Eu=function(g){return Array.isArray(hn)===!0&&hn.indexOf(g)>-1};switch(r){case"pt":HA=1;break;case"mm":HA=72/25.4;break;case"cm":HA=72/2.54;break;case"in":HA=72;break;case"px":HA=Eu("px_scaling")==1?.75:96/72;break;case"pc":case"em":HA=12;break;case"ex":HA=6;break;default:if(typeof r!="number")throw new Error("Invalid unit: "+r);HA=r}var tr=null;BA(),eA();var Qp=function(g){return u!==null?tr.encryptor(g,0):function(F){return F}},Su=h.__private__.getPageInfo=h.getPageInfo=function(g){if(isNaN(g)||g%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:GA[g].objId,pageNumber:g,pageContext:GA[g]}},ce=h.__private__.getPageInfoByObjId=function(g){if(isNaN(g)||g%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var F in GA)if(GA[F].objId===g)break;return Su(F)},Up=h.__private__.getCurrentPageInfo=h.getCurrentPageInfo=function(){return{objId:GA[P].objId,pageNumber:P,pageContext:GA[P]}};h.addPage=function(){return Fu.apply(this,arguments),this},h.setPage=function(){return Qu.apply(this,arguments),gA.call(this,FA[P]),this},h.insertPage=function(g){return this.addPage(),this.movePage(P,g),this},h.movePage=function(g,F){var G,Y;if(g>F){G=FA[g],Y=GA[g];for(var uA=g;uA>F;uA--)FA[uA]=FA[uA-1],GA[uA]=GA[uA-1];FA[F]=G,GA[F]=Y,this.setPage(F)}else if(g<F){G=FA[g],Y=GA[g];for(var vA=g;vA<F;vA++)FA[vA]=FA[vA+1],GA[vA]=GA[vA+1];FA[F]=G,GA[F]=Y,this.setPage(F)}return this},h.deletePage=function(){return yp.apply(this,arguments),this},h.__private__.text=h.text=function(g,F,G,Y,uA){var vA,SA,KA,JA,de,fe,Ee,et,lt,Qt=(Y=Y||{}).scope||this;if(typeof g=="number"&&typeof F=="number"&&(typeof G=="string"||Array.isArray(G))){var rr=G;G=F,F=g,g=rr}if(arguments[3]instanceof Ae?(_("The transform parameter of text() with a Matrix value"),lt=uA):(KA=arguments[4],JA=arguments[5],Le(Ee=arguments[3])==="object"&&Ee!==null||(typeof KA=="string"&&(JA=KA,KA=null),typeof Ee=="string"&&(JA=Ee,Ee=null),typeof Ee=="number"&&(KA=Ee,Ee=null),Y={flags:Ee,angle:KA,align:JA})),isNaN(F)||isNaN(G)||g==null)throw new Error("Invalid arguments passed to jsPDF.text");if(g.length===0)return Qt;var Pt="",vn=!1,Lr=typeof Y.lineHeightFactor=="number"?Y.lineHeightFactor:da,Nn=Qt.internal.scaleFactor;function ku($e){return $e=$e.split(" ").join(Array(Y.TabLen||9).join(" ")),mr($e,Ee)}function $o($e){for(var We,wt=$e.concat(),It=[],Ai=wt.length;Ai--;)typeof(We=wt.shift())=="string"?It.push(We):Array.isArray($e)&&(We.length===1||We[1]===void 0&&We[2]===void 0)?It.push(We[0]):It.push([We[0],We[1],We[2]]);return It}function Wo($e,We){var wt;if(typeof $e=="string")wt=We($e)[0];else if(Array.isArray($e)){for(var It,Ai,tl=$e.concat(),Ss=[],Vu=tl.length;Vu--;)typeof(It=tl.shift())=="string"?Ss.push(We(It)[0]):Array.isArray(It)&&typeof It[0]=="string"&&(Ai=We(It[0],It[1],It[2]),Ss.push([Ai[0],Ai[1],Ai[2]]));wt=Ss}return wt}var ys=!1,qo=!0;if(typeof g=="string")ys=!0;else if(Array.isArray(g)){var Xo=g.concat();SA=[];for(var ws,zt=Xo.length;zt--;)(typeof(ws=Xo.shift())!="string"||Array.isArray(ws)&&typeof ws[0]!="string")&&(qo=!1);ys=qo}if(ys===!1)throw new Error('Type of text must be string or Array. "'+g+'" is not recognized.');typeof g=="string"&&(g=g.match(/[\r?\n]/)?g.split(/\r\n|\r|\n/g):[g]);var bs=NA/Qt.internal.scaleFactor,Cs=bs*(Lr-1);switch(Y.baseline){case"bottom":G-=Cs;break;case"top":G+=bs-Cs;break;case"hanging":G+=bs-2*Cs;break;case"middle":G+=bs/2-Cs}if((fe=Y.maxWidth||0)>0&&(typeof g=="string"?g=Qt.splitTextToSize(g,fe):Object.prototype.toString.call(g)==="[object Array]"&&(g=g.reduce(function($e,We){return $e.concat(Qt.splitTextToSize(We,fe))},[]))),vA={text:g,x:F,y:G,options:Y,mutex:{pdfEscape:mr,activeFontKey:se,fonts:be,activeFontSize:NA}},Ce.publish("preProcessText",vA),g=vA.text,KA=(Y=vA.options).angle,!(lt instanceof Ae)&&KA&&typeof KA=="number"){KA*=Math.PI/180,Y.rotationDirection===0&&(KA=-KA),L===Q.ADVANCED&&(KA=-KA);var xs=Math.cos(KA),Yo=Math.sin(KA);lt=new Ae(xs,Yo,-Yo,xs,0,0)}else KA&&KA instanceof Ae&&(lt=KA);L!==Q.ADVANCED||lt||(lt=or),(de=Y.charSpace||vs)!==void 0&&(Pt+=R(T(de))+` Tc
|
|
329
|
+
`,this.setCharSpace(this.getCharSpace()||0)),(et=Y.horizontalScale)!==void 0&&(Pt+=R(100*et)+` Tz
|
|
330
|
+
`),Y.lang;var yr=-1,Pp=Y.renderingMode!==void 0?Y.renderingMode:Y.stroke,Jo=Qt.internal.getCurrentPageInfo().pageContext;switch(Pp){case 0:case!1:case"fill":yr=0;break;case 1:case!0:case"stroke":yr=1;break;case 2:case"fillThenStroke":yr=2;break;case 3:case"invisible":yr=3;break;case 4:case"fillAndAddForClipping":yr=4;break;case 5:case"strokeAndAddPathForClipping":yr=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":yr=6;break;case 7:case"addToPathForClipping":yr=7}var Du=Jo.usedRenderingMode!==void 0?Jo.usedRenderingMode:-1;yr!==-1?Pt+=yr+` Tr
|
|
331
|
+
`:Du!==-1&&(Pt+=`0 Tr
|
|
332
|
+
`),yr!==-1&&(Jo.usedRenderingMode=yr),JA=Y.align||"left";var Vr,Fs=NA*Lr,Mu=Qt.internal.pageSize.getWidth(),Ru=be[se];de=Y.charSpace||vs,fe=Y.maxWidth||0,Ee=Object.assign({autoencode:!0,noBOM:!0},Y.flags);var Ei=[],va=function($e){return Qt.getStringUnitWidth($e,{font:Ru,charSpace:de,fontSize:NA,doKerning:!1})*NA/Nn};if(Object.prototype.toString.call(g)==="[object Array]"){var wr;SA=$o(g),JA!=="left"&&(Vr=SA.map(va));var ur,Si=0;if(JA==="right"){F-=Vr[0],g=[],zt=SA.length;for(var Yn=0;Yn<zt;Yn++)Yn===0?(ur=Ln(F),wr=Xn(G)):(ur=T(Si-Vr[Yn]),wr=-Fs),g.push([SA[Yn],ur,wr]),Si=Vr[Yn]}else if(JA==="center"){F-=Vr[0]/2,g=[],zt=SA.length;for(var Jn=0;Jn<zt;Jn++)Jn===0?(ur=Ln(F),wr=Xn(G)):(ur=T((Si-Vr[Jn])/2),wr=-Fs),g.push([SA[Jn],ur,wr]),Si=Vr[Jn]}else if(JA==="left"){g=[],zt=SA.length;for(var Qs=0;Qs<zt;Qs++)g.push(SA[Qs])}else if(JA==="justify"&&Ru.encoding==="Identity-H"){g=[],zt=SA.length,fe=fe!==0?fe:Mu;for(var Zn=0,yt=0;yt<zt;yt++)if(wr=yt===0?Xn(G):-Fs,ur=yt===0?Ln(F):Zn,yt<zt-1){var Zo=T((fe-Vr[yt])/(SA[yt].split(" ").length-1)),fr=SA[yt].split(" ");g.push([fr[0]+" ",ur,wr]),Zn=0;for(var jr=1;jr<fr.length;jr++){var Us=(va(fr[jr-1]+" "+fr[jr])-va(fr[jr]))*Nn+Zo;jr==fr.length-1?g.push([fr[jr],Us,0]):g.push([fr[jr]+" ",Us,0]),Zn-=Us}}else g.push([SA[yt],ur,wr]);g.push(["",Zn,0])}else{if(JA!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(g=[],zt=SA.length,fe=fe!==0?fe:Mu,yt=0;yt<zt;yt++)wr=yt===0?Xn(G):-Fs,ur=yt===0?Ln(F):0,yt<zt-1?Ei.push(R(T((fe-Vr[yt])/(SA[yt].split(" ").length-1)))):Ei.push(0),g.push([SA[yt],ur,wr])}}var Ku=typeof Y.R2L=="boolean"?Y.R2L:zA;Ku===!0&&(g=Wo(g,function($e,We,wt){return[$e.split("").reverse().join(""),We,wt]})),vA={text:g,x:F,y:G,options:Y,mutex:{pdfEscape:mr,activeFontKey:se,fonts:be,activeFontSize:NA}},Ce.publish("postProcessText",vA),g=vA.text,vn=vA.mutex.isHex||!1;var Al=be[se].encoding;Al!=="WinAnsiEncoding"&&Al!=="StandardEncoding"||(g=Wo(g,function($e,We,wt){return[ku($e),We,wt]})),SA=$o(g),g=[];for(var Ba,ma,Ii,ya=0,Es=1,wa=Array.isArray(SA[0])?Es:ya,Li="",el=function($e,We,wt){var It="";return wt instanceof Ae?(wt=typeof Y.angle=="number"?Er(wt,new Ae(1,0,0,1,$e,We)):Er(new Ae(1,0,0,1,$e,We),wt),L===Q.ADVANCED&&(wt=Er(new Ae(1,0,0,-1,0,0),wt)),It=wt.join(" ")+` Tm
|
|
333
|
+
`):It=R($e)+" "+R(We)+` Td
|
|
334
|
+
`,It},zr=0;zr<SA.length;zr++){switch(Li="",wa){case Es:Ii=(vn?"<":"(")+SA[zr][0]+(vn?">":")"),Ba=parseFloat(SA[zr][1]),ma=parseFloat(SA[zr][2]);break;case ya:Ii=(vn?"<":"(")+SA[zr]+(vn?">":")"),Ba=Ln(F),ma=Xn(G)}Ei!==void 0&&Ei[zr]!==void 0&&(Li=Ei[zr]+` Tw
|
|
335
|
+
`),zr===0?g.push(Li+el(Ba,ma,lt)+Ii):wa===ya?g.push(Li+Ii):wa===Es&&g.push(Li+el(Ba,ma,lt)+Ii)}g=wa===ya?g.join(` Tj
|
|
336
|
+
T* `):g.join(` Tj
|
|
337
|
+
`),g+=` Tj
|
|
338
|
+
`;var Gr=`BT
|
|
339
|
+
/`;return Gr+=se+" "+NA+` Tf
|
|
340
|
+
`,Gr+=R(NA*Lr)+` TL
|
|
341
|
+
`,Gr+=ga+`
|
|
342
|
+
`,Gr+=Pt,Gr+=g,W(Gr+="ET"),p[se]=!0,Qt};var Ep=h.__private__.clip=h.clip=function(g){return W(g==="evenodd"?"W*":"W"),this};h.clipEvenOdd=function(){return Ep("evenodd")},h.__private__.discardPath=h.discardPath=function(){return W("n"),this};var In=h.__private__.isValidStyle=function(g){var F=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(g)!==-1&&(F=!0),F};h.__private__.setDefaultPathOperation=h.setDefaultPathOperation=function(g){return In(g)&&(c=g),this};var Iu=h.__private__.getStyle=h.getStyle=function(g){var F=c;switch(g){case"D":case"S":F="S";break;case"F":F="f";break;case"FD":case"DF":F="B";break;case"f":case"f*":case"B":case"B*":F=g}return F},Lu=h.close=function(){return W("h"),this};h.stroke=function(){return W("S"),this},h.fill=function(g){return gs("f",g),this},h.fillEvenOdd=function(g){return gs("f*",g),this},h.fillStroke=function(g){return gs("B",g),this},h.fillStrokeEvenOdd=function(g){return gs("B*",g),this};var gs=function(g,F){Le(F)==="object"?Ip(F,g):W(g)},Po=function(g){g===null||L===Q.ADVANCED&&g===void 0||(g=Iu(g),W(g))};function Sp(g,F,G,Y,uA){var vA=new Ra(F||this.boundingBox,G||this.xStep,Y||this.yStep,this.gState,uA||this.matrix);vA.stream=this.stream;var SA=g+"$$"+this.cloneIndex+++"$$";return Ot(SA,vA),vA}var Ip=function(g,F){var G=xe[g.key],Y=mA[G];if(Y instanceof Wi)W("q"),W(Lp(F)),Y.gState&&h.setGState(Y.gState),W(g.matrix.toString()+" cm"),W("/"+G+" sh"),W("Q");else if(Y instanceof Ra){var uA=new Ae(1,0,0,-1,0,Ui());g.matrix&&(uA=uA.multiply(g.matrix||or),G=Sp.call(Y,g.key,g.boundingBox,g.xStep,g.yStep,uA).id),W("q"),W("/Pattern cs"),W("/"+G+" scn"),Y.gState&&h.setGState(Y.gState),W(F),W("Q")}},Lp=function(g){switch(g){case"f":case"F":return"W n";case"f*":return"W* n";case"B":return"W S";case"B*":return"W* S";case"S":return"W S";case"n":return"W n"}},ko=h.moveTo=function(g,F){return W(R(T(g))+" "+R(V(F))+" m"),this},ha=h.lineTo=function(g,F){return W(R(T(g))+" "+R(V(F))+" l"),this},Fi=h.curveTo=function(g,F,G,Y,uA,vA){return W([R(T(g)),R(V(F)),R(T(G)),R(V(Y)),R(T(uA)),R(V(vA)),"c"].join(" ")),this};h.__private__.line=h.line=function(g,F,G,Y,uA){if(isNaN(g)||isNaN(F)||isNaN(G)||isNaN(Y)||!In(uA))throw new Error("Invalid arguments passed to jsPDF.line");return L===Q.COMPAT?this.lines([[G-g,Y-F]],g,F,[1,1],uA||"S"):this.lines([[G-g,Y-F]],g,F,[1,1]).stroke()},h.__private__.lines=h.lines=function(g,F,G,Y,uA,vA){var SA,KA,JA,de,fe,Ee,et,lt,Qt,rr,Pt,vn;if(typeof g=="number"&&(vn=G,G=F,F=g,g=vn),Y=Y||[1,1],vA=vA||!1,isNaN(F)||isNaN(G)||!Array.isArray(g)||!Array.isArray(Y)||!In(uA)||typeof vA!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(ko(F,G),SA=Y[0],KA=Y[1],de=g.length,rr=F,Pt=G,JA=0;JA<de;JA++)(fe=g[JA]).length===2?(rr=fe[0]*SA+rr,Pt=fe[1]*KA+Pt,ha(rr,Pt)):(Ee=fe[0]*SA+rr,et=fe[1]*KA+Pt,lt=fe[2]*SA+rr,Qt=fe[3]*KA+Pt,rr=fe[4]*SA+rr,Pt=fe[5]*KA+Pt,Fi(Ee,et,lt,Qt,rr,Pt));return vA&&Lu(),Po(uA),this},h.path=function(g){for(var F=0;F<g.length;F++){var G=g[F],Y=G.c;switch(G.op){case"m":ko(Y[0],Y[1]);break;case"l":ha(Y[0],Y[1]);break;case"c":Fi.apply(this,Y);break;case"h":Lu()}}return this},h.__private__.rect=h.rect=function(g,F,G,Y,uA){if(isNaN(g)||isNaN(F)||isNaN(G)||isNaN(Y)||!In(uA))throw new Error("Invalid arguments passed to jsPDF.rect");return L===Q.COMPAT&&(Y=-Y),W([R(T(g)),R(V(F)),R(T(G)),R(T(Y)),"re"].join(" ")),Po(uA),this},h.__private__.triangle=h.triangle=function(g,F,G,Y,uA,vA,SA){if(isNaN(g)||isNaN(F)||isNaN(G)||isNaN(Y)||isNaN(uA)||isNaN(vA)||!In(SA))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[G-g,Y-F],[uA-G,vA-Y],[g-uA,F-vA]],g,F,[1,1],SA,!0),this},h.__private__.roundedRect=h.roundedRect=function(g,F,G,Y,uA,vA,SA){if(isNaN(g)||isNaN(F)||isNaN(G)||isNaN(Y)||isNaN(uA)||isNaN(vA)||!In(SA))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var KA=4/3*(Math.SQRT2-1);return uA=Math.min(uA,.5*G),vA=Math.min(vA,.5*Y),this.lines([[G-2*uA,0],[uA*KA,0,uA,vA-vA*KA,uA,vA],[0,Y-2*vA],[0,vA*KA,-uA*KA,vA,-uA,vA],[2*uA-G,0],[-uA*KA,0,-uA,-vA*KA,-uA,-vA],[0,2*vA-Y],[0,-vA*KA,uA*KA,-vA,uA,-vA]],g+uA,F,[1,1],SA,!0),this},h.__private__.ellipse=h.ellipse=function(g,F,G,Y,uA){if(isNaN(g)||isNaN(F)||isNaN(G)||isNaN(Y)||!In(uA))throw new Error("Invalid arguments passed to jsPDF.ellipse");var vA=4/3*(Math.SQRT2-1)*G,SA=4/3*(Math.SQRT2-1)*Y;return ko(g+G,F),Fi(g+G,F-SA,g+vA,F-Y,g,F-Y),Fi(g-vA,F-Y,g-G,F-SA,g-G,F),Fi(g-G,F+SA,g-vA,F+Y,g,F+Y),Fi(g+vA,F+Y,g+G,F+SA,g+G,F),Po(uA),this},h.__private__.circle=h.circle=function(g,F,G,Y){if(isNaN(g)||isNaN(F)||isNaN(G)||!In(Y))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(g,F,G,G,Y)},h.setFont=function(g,F,G){return G&&(F=z(F,G)),se=Uu(g,F,{disableWarning:!1}),this};var Np=h.__private__.getFont=h.getFont=function(){return be[Uu.apply(h,arguments)]};h.__private__.getFontList=h.getFontList=function(){var g,F,G={};for(g in ye)if(ye.hasOwnProperty(g))for(F in G[g]=[],ye[g])ye[g].hasOwnProperty(F)&&G[g].push(F);return G},h.addFont=function(g,F,G,Y,uA){var vA=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&vA.indexOf(arguments[3])!==-1?uA=arguments[3]:arguments[3]&&vA.indexOf(arguments[3])==-1&&(G=z(G,Y)),uA=uA||"Identity-H",Oo.call(this,g,F,G,uA)};var da,Do=e.lineWidth||.200025,ps=h.__private__.getLineWidth=h.getLineWidth=function(){return Do},Nu=h.__private__.setLineWidth=h.setLineWidth=function(g){return Do=g,W(R(T(g))+" w"),this};h.__private__.setLineDash=ne.API.setLineDash=ne.API.setLineDashPattern=function(g,F){if(g=g||[],F=F||0,isNaN(F)||!Array.isArray(g))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return g=g.map(function(G){return R(T(G))}).join(" "),F=R(T(F)),W("["+g+"] "+F+" d"),this};var Tu=h.__private__.getLineHeight=h.getLineHeight=function(){return NA*da};h.__private__.getLineHeight=h.getLineHeight=function(){return NA*da};var Ou=h.__private__.setLineHeightFactor=h.setLineHeightFactor=function(g){return typeof(g=g||1.15)=="number"&&(da=g),this},Hu=h.__private__.getLineHeightFactor=h.getLineHeightFactor=function(){return da};Ou(e.lineHeight);var Ln=h.__private__.getHorizontalCoordinate=function(g){return T(g)},Xn=h.__private__.getVerticalCoordinate=function(g){return L===Q.ADVANCED?g:GA[P].mediaBox.topRightY-GA[P].mediaBox.bottomLeftY-T(g)},Tp=h.__private__.getHorizontalCoordinateString=h.getHorizontalCoordinateString=function(g){return R(Ln(g))},Qi=h.__private__.getVerticalCoordinateString=h.getVerticalCoordinateString=function(g){return R(Xn(g))},pn=e.strokeColor||"0 G";h.__private__.getStrokeColor=h.getDrawColor=function(){return jt(pn)},h.__private__.setStrokeColor=h.setDrawColor=function(g,F,G,Y){return pn=Bt({ch1:g,ch2:F,ch3:G,ch4:Y,pdfColorType:"draw",precision:2}),W(pn),this};var Mo=e.fillColor||"0 g";h.__private__.getFillColor=h.getFillColor=function(){return jt(Mo)},h.__private__.setFillColor=h.setFillColor=function(g,F,G,Y){return Mo=Bt({ch1:g,ch2:F,ch3:G,ch4:Y,pdfColorType:"fill",precision:2}),W(Mo),this};var ga=e.textColor||"0 g",Op=h.__private__.getTextColor=h.getTextColor=function(){return jt(ga)};h.__private__.setTextColor=h.setTextColor=function(g,F,G,Y){return ga=Bt({ch1:g,ch2:F,ch3:G,ch4:Y,pdfColorType:"text",precision:3}),this};var vs=e.charSpace,Hp=h.__private__.getCharSpace=h.getCharSpace=function(){return parseFloat(vs||0)};h.__private__.setCharSpace=h.setCharSpace=function(g){if(isNaN(g))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return vs=g,this};var Ro=0;h.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},h.__private__.setLineCap=h.setLineCap=function(g){var F=h.CapJoinStyles[g];if(F===void 0)throw new Error("Line cap style of '"+g+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Ro=F,W(F+" J"),this};var Ko=0;h.__private__.setLineJoin=h.setLineJoin=function(g){var F=h.CapJoinStyles[g];if(F===void 0)throw new Error("Line join style of '"+g+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Ko=F,W(F+" j"),this},h.__private__.setLineMiterLimit=h.__private__.setMiterLimit=h.setLineMiterLimit=h.setMiterLimit=function(g){if(g=g||0,isNaN(g))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return W(R(T(g))+" M"),this},h.GState=sc,h.setGState=function(g){(g=typeof g=="string"?le[_e[g]]:_u(null,g)).equals(He)||(W("/"+g.id+" gs"),He=g)};var _u=function(g,F){if(!g||!_e[g]){var G=!1;for(var Y in le)if(le.hasOwnProperty(Y)&&le[Y].equals(F)){G=!0;break}if(G)F=le[Y];else{var uA="GS"+(Object.keys(le).length+1).toString(10);le[uA]=F,F.id=uA}return g&&(_e[g]=F.id),Ce.publish("addGState",F),F}};h.addGState=function(g,F){return _u(g,F),this},h.saveGraphicsState=function(){return W("q"),Ze.push({key:se,size:NA,color:ga}),this},h.restoreGraphicsState=function(){W("Q");var g=Ze.pop();return se=g.key,NA=g.size,ga=g.color,He=null,this},h.setCurrentTransformationMatrix=function(g){return W(g.toString()+" cm"),this},h.comment=function(g){return W("#"+g),this};var Bs=function(g,F){var G=g||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return G},set:function(vA){isNaN(vA)||(G=parseFloat(vA))}});var Y=F||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return Y},set:function(vA){isNaN(vA)||(Y=parseFloat(vA))}});var uA="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return uA},set:function(vA){uA=vA.toString()}}),this},Vo=function(g,F,G,Y){Bs.call(this,g,F),this.type="rect";var uA=G||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return uA},set:function(SA){isNaN(SA)||(uA=parseFloat(SA))}});var vA=Y||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return vA},set:function(SA){isNaN(SA)||(vA=parseFloat(SA))}}),this},jo=function(){this.page=Ve,this.currentPage=P,this.pages=FA.slice(0),this.pagesContext=GA.slice(0),this.x=Me,this.y=me,this.matrix=at,this.width=pa(P),this.height=Ui(P),this.outputDestination=LA,this.id="",this.objectNumber=-1};jo.prototype.restore=function(){Ve=this.page,P=this.currentPage,GA=this.pagesContext,FA=this.pages,Me=this.x,me=this.y,at=this.matrix,zo(P,this.width),Go(P,this.height),LA=this.outputDestination};var Pu=function(g,F,G,Y,uA){Ur.push(new jo),Ve=P=0,FA=[],Me=g,me=F,at=uA,Ho([G,Y])},_p=function(g){if(Br[g])Ur.pop().restore();else{var F=new jo,G="Xo"+(Object.keys(st).length+1).toString(10);F.id=G,Br[g]=G,st[G]=F,Ce.publish("addFormObject",F),Ur.pop().restore()}};for(var ms in h.beginFormObject=function(g,F,G,Y,uA){return Pu(g,F,G,Y,uA),this},h.endFormObject=function(g){return _p(g),this},h.doFormObject=function(g,F){var G=st[Br[g]];return W("q"),W(F.toString()+" cm"),W("/"+G.id+" Do"),W("Q"),this},h.getFormObject=function(g){var F=st[Br[g]];return{x:F.x,y:F.y,width:F.width,height:F.height,matrix:F.matrix}},h.save=function(g,F){return g=g||"generated.pdf",(F=F||{}).returnPromise=F.returnPromise||!1,F.returnPromise===!1?($i(hs(qn()),g),typeof $i.unload=="function"&&ae.setTimeout&&setTimeout($i.unload,911),this):new Promise(function(G,Y){try{var uA=$i(hs(qn()),g);typeof $i.unload=="function"&&ae.setTimeout&&setTimeout($i.unload,911),G(uA)}catch(vA){Y(vA.message)}})},ne.API)ne.API.hasOwnProperty(ms)&&(ms==="events"&&ne.API.events.length?function(g,F){var G,Y,uA;for(uA=F.length-1;uA!==-1;uA--)G=F[uA][0],Y=F[uA][1],g.subscribe.apply(g,[G].concat(typeof Y=="function"?[Y]:Y))}(Ce,ne.API.events):h[ms]=ne.API[ms]);var pa=h.getPageWidth=function(g){return(GA[g=g||P].mediaBox.topRightX-GA[g].mediaBox.bottomLeftX)/HA},zo=h.setPageWidth=function(g,F){GA[g].mediaBox.topRightX=F*HA+GA[g].mediaBox.bottomLeftX},Ui=h.getPageHeight=function(g){return(GA[g=g||P].mediaBox.topRightY-GA[g].mediaBox.bottomLeftY)/HA},Go=h.setPageHeight=function(g,F){GA[g].mediaBox.topRightY=F*HA+GA[g].mediaBox.bottomLeftY};return h.internal={pdfEscape:mr,getStyle:Iu,getFont:Np,getFontSize:TA,getCharSpace:Hp,getTextColor:Op,getLineHeight:Tu,getLineHeightFactor:Hu,getLineWidth:ps,write:ZA,getHorizontalCoordinate:Ln,getVerticalCoordinate:Xn,getCoordinateString:Tp,getVerticalCoordinateString:Qi,collections:{},newObject:vt,newAdditionalObject:Wn,newObjectDeferred:Se,newObjectDeferredBegin:Ht,getFilters:Sr,putStream:cr,events:Ce,scaleFactor:HA,pageSize:{getWidth:function(){return pa(P)},setWidth:function(g){zo(P,g)},getHeight:function(){return Ui(P)},setHeight:function(g){Go(P,g)}},encryptionOptions:u,encryption:tr,getEncryptor:Qp,output:ds,getNumberOfPages:wp,pages:FA,out:W,f2:nA,f3:N,getPageInfo:Su,getPageInfoByObjId:ce,getCurrentPageInfo:Up,getPDFVersion:B,Point:Bs,Rectangle:Vo,Matrix:Ae,hasHotfix:Eu},Object.defineProperty(h.internal.pageSize,"width",{get:function(){return pa(P)},set:function(g){zo(P,g)},enumerable:!0,configurable:!0}),Object.defineProperty(h.internal.pageSize,"height",{get:function(){return Ui(P)},set:function(g){Go(P,g)},enumerable:!0,configurable:!0}),mp.call(h,xA),se="F1",Fu(n,t),Ce.publish("initialized"),h}Da.prototype.lsbFirstWord=function(e){return String.fromCharCode(e>>0&255,e>>8&255,e>>16&255,e>>24&255)},Da.prototype.toHexString=function(e){return e.split("").map(function(A){return("0"+(255&A.charCodeAt(0)).toString(16)).slice(-2)}).join("")},Da.prototype.hexToBytes=function(e){for(var A=[],t=0;t<e.length;t+=2)A.push(String.fromCharCode(parseInt(e.substr(t,2),16)));return A.join("")},Da.prototype.processOwnerPassword=function(e,A){return Hh(Oh(A).substr(0,5),e)},Da.prototype.encryptor=function(e,A){var t=Oh(this.encryptionKey+String.fromCharCode(255&e,e>>8&255,e>>16&255,255&A,A>>8&255)).substr(0,10);return function(r){return Hh(t,r)}},sc.prototype.equals=function(e){var A,t="id,objectNumber,equals";if(!e||Le(e)!==Le(this))return!1;var r=0;for(A in this)if(!(t.indexOf(A)>=0)){if(this.hasOwnProperty(A)&&!e.hasOwnProperty(A)||this[A]!==e[A])return!1;r++}for(A in e)e.hasOwnProperty(A)&&t.indexOf(A)<0&&r--;return r===0},ne.API={events:[]},ne.version="2.5.2";var tt=ne.API,_h=1,qi=function(e){return e.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Ka=function(e){return e.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},ue=function(e){return e.toFixed(2)},vi=function(e){return e.toFixed(5)};tt.__acroform__={};var gr=function(e,A){e.prototype=Object.create(A.prototype),e.prototype.constructor=e},Av=function(e){return e*_h},xn=function(e){var A=new tv,t=$A.internal.getHeight(e)||0,r=$A.internal.getWidth(e)||0;return A.BBox=[0,0,Number(ue(r)),Number(ue(t))],A},_Q=tt.__acroform__.setBit=function(e,A){if(e=e||0,A=A||0,isNaN(e)||isNaN(A))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return e|=1<<A},PQ=tt.__acroform__.clearBit=function(e,A){if(e=e||0,A=A||0,isNaN(e)||isNaN(A))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return e&=~(1<<A)},kQ=tt.__acroform__.getBit=function(e,A){if(isNaN(e)||isNaN(A))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return e&1<<A?1:0},ht=tt.__acroform__.getBitForPdf=function(e,A){if(isNaN(e)||isNaN(A))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return kQ(e,A-1)},dt=tt.__acroform__.setBitForPdf=function(e,A){if(isNaN(e)||isNaN(A))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return _Q(e,A-1)},gt=tt.__acroform__.clearBitForPdf=function(e,A){if(isNaN(e)||isNaN(A))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return PQ(e,A-1)},DQ=tt.__acroform__.calculateCoordinates=function(e,A){var t=A.internal.getHorizontalCoordinate,r=A.internal.getVerticalCoordinate,n=e[0],i=e[1],a=e[2],s=e[3],o={};return o.lowerLeft_X=t(n)||0,o.lowerLeft_Y=r(i+s)||0,o.upperRight_X=t(n+a)||0,o.upperRight_Y=r(i)||0,[Number(ue(o.lowerLeft_X)),Number(ue(o.lowerLeft_Y)),Number(ue(o.upperRight_X)),Number(ue(o.upperRight_Y))]},MQ=function(e){if(e.appearanceStreamContent)return e.appearanceStreamContent;if(e.V||e.DV){var A=[],t=e._V||e.DV,r=Ph(e,t),n=e.scope.internal.getFont(e.fontName,e.fontStyle).id;A.push("/Tx BMC"),A.push("q"),A.push("BT"),A.push(e.scope.__private__.encodeColorString(e.color)),A.push("/"+n+" "+ue(r.fontSize)+" Tf"),A.push("1 0 0 1 0 0 Tm"),A.push(r.text),A.push("ET"),A.push("Q"),A.push("EMC");var i=xn(e);return i.scope=e.scope,i.stream=A.join(`
|
|
343
|
+
`),i}},Ph=function(e,A){var t=e.fontSize===0?e.maxFontSize:e.fontSize,r={text:"",fontSize:""},n=(A=(A=A.substr(0,1)=="("?A.substr(1):A).substr(A.length-1)==")"?A.substr(0,A.length-1):A).split(" ");n=e.multiline?n.map(function(N){return N.split(`
|
|
344
|
+
`)}):n.map(function(N){return[N]});var i=t,a=$A.internal.getHeight(e)||0;a=a<0?-a:a;var s=$A.internal.getWidth(e)||0;s=s<0?-s:s;var o=function(N,T,M){if(N+1<n.length){var V=T+" "+n[N+1][0];return oc(V,e,M).width<=s-4}return!1};i++;A:for(;i>0;){A="",i--;var c,u,d=oc("3",e,i).height,p=e.multiline?a-i:(a-d)/2,h=p+=2,m=0,B=0,C=0;if(i<=0){A=`(...) Tj
|
|
345
|
+
`,A+="% Width of Text: "+oc(A,e,i=12).width+", FieldWidth:"+s+`
|
|
346
|
+
`;break}for(var b="",Q=0,L=0;L<n.length;L++)if(n.hasOwnProperty(L)){var D=!1;if(n[L].length!==1&&C!==n[L].length-1){if((d+2)*(Q+2)+2>a)continue A;b+=n[L][C],D=!0,B=L,L--}else{b=(b+=n[L][C]+" ").substr(b.length-1)==" "?b.substr(0,b.length-1):b;var O=parseInt(L),z=o(O,b,i),R=L>=n.length-1;if(z&&!R){b+=" ",C=0;continue}if(z||R){if(R)B=O;else if(e.multiline&&(d+2)*(Q+2)+2>a)continue A}else{if(!e.multiline||(d+2)*(Q+2)+2>a)continue A;B=O}}for(var _="",X=m;X<=B;X++){var nA=n[X];if(e.multiline){if(X===B){_+=nA[C]+" ",C=(C+1)%nA.length;continue}if(X===m){_+=nA[nA.length-1]+" ";continue}}_+=nA[0]+" "}switch(_=_.substr(_.length-1)==" "?_.substr(0,_.length-1):_,u=oc(_,e,i).width,e.textAlign){case"right":c=s-u-2;break;case"center":c=(s-u)/2;break;case"left":default:c=2}A+=ue(c)+" "+ue(h)+` Td
|
|
347
|
+
`,A+="("+qi(_)+`) Tj
|
|
348
|
+
`,A+=-ue(c)+` 0 Td
|
|
349
|
+
`,h=-(i+2),u=0,m=D?B:B+1,Q++,b=""}break}return r.text=A,r.fontSize=i,r},oc=function(e,A,t){var r=A.scope.internal.getFont(A.fontName,A.fontStyle),n=A.scope.getStringUnitWidth(e,{font:r,fontSize:parseFloat(t),charSpace:0})*parseFloat(t);return{height:A.scope.getStringUnitWidth("3",{font:r,fontSize:parseFloat(t),charSpace:0})*parseFloat(t)*1.5,width:n}},RQ={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},KQ=function(e,A){var t={type:"reference",object:e};A.internal.getPageInfo(e.page).pageContext.annotations.find(function(r){return r.type===t.type&&r.object===t.object})===void 0&&A.internal.getPageInfo(e.page).pageContext.annotations.push(t)},VQ=function(e,A){for(var t in e)if(e.hasOwnProperty(t)){var r=t,n=e[t];A.internal.newObjectDeferredBegin(n.objId,!0),Le(n)==="object"&&typeof n.putStream=="function"&&n.putStream(),delete e[r]}},jQ=function(e,A){if(A.scope=e,e.internal!==void 0&&(e.internal.acroformPlugin===void 0||e.internal.acroformPlugin.isInitialized===!1)){if(en.FieldNum=0,e.internal.acroformPlugin=JSON.parse(JSON.stringify(RQ)),e.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");_h=e.internal.scaleFactor,e.internal.acroformPlugin.acroFormDictionaryRoot=new rv,e.internal.acroformPlugin.acroFormDictionaryRoot.scope=e,e.internal.acroformPlugin.acroFormDictionaryRoot._eventID=e.internal.events.subscribe("postPutResources",function(){(function(t){t.internal.events.unsubscribe(t.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete t.internal.acroformPlugin.acroFormDictionaryRoot._eventID,t.internal.acroformPlugin.printedOut=!0})(e)}),e.internal.events.subscribe("buildDocument",function(){(function(t){t.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var r=t.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var n in r)if(r.hasOwnProperty(n)){var i=r[n];i.objId=void 0,i.hasAnnotation&&KQ(i,t)}})(e)}),e.internal.events.subscribe("putCatalog",function(){(function(t){if(t.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");t.internal.write("/AcroForm "+t.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(e)}),e.internal.events.subscribe("postPutPages",function(t){(function(r,n){var i=!r;for(var a in r||(n.internal.newObjectDeferredBegin(n.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),n.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),r=r||n.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(r.hasOwnProperty(a)){var s=r[a],o=[],c=s.Rect;if(s.Rect&&(s.Rect=DQ(s.Rect,n)),n.internal.newObjectDeferredBegin(s.objId,!0),s.DA=$A.createDefaultAppearanceStream(s),Le(s)==="object"&&typeof s.getKeyValueListForStream=="function"&&(o=s.getKeyValueListForStream()),s.Rect=c,s.hasAppearanceStream&&!s.appearanceStreamContent){var u=MQ(s);o.push({key:"AP",value:"<</N "+u+">>"}),n.internal.acroformPlugin.xForms.push(u)}if(s.appearanceStreamContent){var d="";for(var p in s.appearanceStreamContent)if(s.appearanceStreamContent.hasOwnProperty(p)){var h=s.appearanceStreamContent[p];if(d+="/"+p+" ",d+="<<",Object.keys(h).length>=1||Array.isArray(h)){for(var a in h)if(h.hasOwnProperty(a)){var m=h[a];typeof m=="function"&&(m=m.call(n,s)),d+="/"+a+" "+m+" ",n.internal.acroformPlugin.xForms.indexOf(m)>=0||n.internal.acroformPlugin.xForms.push(m)}}else typeof(m=h)=="function"&&(m=m.call(n,s)),d+="/"+a+" "+m,n.internal.acroformPlugin.xForms.indexOf(m)>=0||n.internal.acroformPlugin.xForms.push(m);d+=">>"}o.push({key:"AP",value:`<<
|
|
350
|
+
`+d+">>"})}n.internal.putStream({additionalKeyValues:o,objectId:s.objId}),n.internal.out("endobj")}i&&VQ(n.internal.acroformPlugin.xForms,n)})(t,e)}),e.internal.acroformPlugin.isInitialized=!0}},ev=tt.__acroform__.arrayToPdfArray=function(e,A,t){var r=function(a){return a};if(Array.isArray(e)){for(var n="[",i=0;i<e.length;i++)switch(i!==0&&(n+=" "),Le(e[i])){case"boolean":case"number":case"object":n+=e[i].toString();break;case"string":e[i].substr(0,1)!=="/"?(A!==void 0&&t&&(r=t.internal.getEncryptor(A)),n+="("+qi(r(e[i].toString()))+")"):n+=e[i].toString()}return n+="]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},kh=function(e,A,t){var r=function(n){return n};return A!==void 0&&t&&(r=t.internal.getEncryptor(A)),(e=e||"").toString(),e="("+qi(r(e))+")"},Fn=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(this._objId===void 0){if(this.scope===void 0)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(e){this._objId=e}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};Fn.prototype.toString=function(){return this.objId+" 0 R"},Fn.prototype.putStream=function(){var e=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:e,objectId:this.objId}),this.scope.internal.out("endobj")},Fn.prototype.getKeyValueListForStream=function(){var e=[],A=Object.getOwnPropertyNames(this).filter(function(i){return i!="content"&&i!="appearanceStreamContent"&&i!="scope"&&i!="objId"&&i.substring(0,1)!="_"});for(var t in A)if(Object.getOwnPropertyDescriptor(this,A[t]).configurable===!1){var r=A[t],n=this[r];n&&(Array.isArray(n)?e.push({key:r,value:ev(n,this.objId,this.scope)}):n instanceof Fn?(n.scope=this.scope,e.push({key:r,value:n.objId+" 0 R"})):typeof n!="function"&&e.push({key:r,value:n}))}return e};var tv=function(){Fn.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var e,A=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return A},set:function(t){A=t}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(t){e=t.trim()},get:function(){return e||null}})};gr(tv,Fn);var rv=function(){Fn.call(this);var e,A=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return A.length>0?A:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return A}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(e){var t=function(r){return r};return this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),"("+qi(t(e))+")"}},set:function(t){e=t}})};gr(rv,Fn);var en=function e(){Fn.call(this);var A=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return A},set:function(b){if(isNaN(b))throw new Error('Invalid value "'+b+'" for attribute F supplied.');A=b}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!ht(A,3)},set:function(b){b?this.F=dt(A,3):this.F=gt(A,3)}});var t=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return t},set:function(b){if(isNaN(b))throw new Error('Invalid value "'+b+'" for attribute Ff supplied.');t=b}});var r=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(r.length!==0)return r},set:function(b){r=b!==void 0?b:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[0])?0:r[0]},set:function(b){r[0]=b}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[1])?0:r[1]},set:function(b){r[1]=b}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[2])?0:r[2]},set:function(b){r[2]=b}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[3])?0:r[3]},set:function(b){r[3]=b}});var n="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return n},set:function(b){switch(b){case"/Btn":case"/Tx":case"/Ch":case"/Sig":n=b;break;default:throw new Error('Invalid value "'+b+'" for attribute FT supplied.')}}});var i=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!i||i.length<1){if(this instanceof uc)return;i="FieldObject"+e.FieldNum++}var b=function(Q){return Q};return this.scope&&(b=this.scope.internal.getEncryptor(this.objId)),"("+qi(b(i))+")"},set:function(b){i=b.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return i},set:function(b){i=b}});var a="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return a},set:function(b){a=b}});var s="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return s},set:function(b){s=b}});var o=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return o},set:function(b){o=b}});var c=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return c===void 0?50/_h:c},set:function(b){c=b}});var u="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return u},set:function(b){u=b}});var d="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!d||this instanceof uc||this instanceof Xi))return kh(d,this.objId,this.scope)},set:function(b){b=b.toString(),d=b}});var p=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(p)return this instanceof Nt?p:kh(p,this.objId,this.scope)},set:function(b){b=b.toString(),p=this instanceof Nt?b:b.substr(0,1)==="("?Ka(b.substr(1,b.length-2)):Ka(b)}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof Nt?Ka(p.substr(1,p.length-1)):p},set:function(b){b=b.toString(),p=this instanceof Nt?"/"+b:b}});var h=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(h)return h},set:function(b){this.V=b}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(h)return this instanceof Nt?h:kh(h,this.objId,this.scope)},set:function(b){b=b.toString(),h=this instanceof Nt?b:b.substr(0,1)==="("?Ka(b.substr(1,b.length-2)):Ka(b)}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof Nt?Ka(h.substr(1,h.length-1)):h},set:function(b){b=b.toString(),h=this instanceof Nt?"/"+b:b}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var m,B=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return B},set:function(b){b=!!b,B=b}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(m)return m},set:function(b){m=b}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!ht(this.Ff,1)},set:function(b){b?this.Ff=dt(this.Ff,1):this.Ff=gt(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!ht(this.Ff,2)},set:function(b){b?this.Ff=dt(this.Ff,2):this.Ff=gt(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!ht(this.Ff,3)},set:function(b){b?this.Ff=dt(this.Ff,3):this.Ff=gt(this.Ff,3)}});var C=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(C!==null)return C},set:function(b){if([0,1,2].indexOf(b)===-1)throw new Error('Invalid value "'+b+'" for attribute Q supplied.');C=b}}),Object.defineProperty(this,"textAlign",{get:function(){var b;switch(C){case 0:default:b="left";break;case 1:b="center";break;case 2:b="right"}return b},configurable:!0,enumerable:!0,set:function(b){switch(b){case"right":case 2:C=2;break;case"center":case 1:C=1;break;case"left":case 0:default:C=0}}})};gr(en,Fn);var Va=function(){en.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var e=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return e},set:function(t){e=t}});var A=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return ev(A,this.objId,this.scope)},set:function(t){var r,n;n=[],typeof(r=t)=="string"&&(n=function(i,a,s){s||(s=1);for(var o,c=[];o=a.exec(i);)c.push(o[s]);return c}(r,/\((.*?)\)/g)),A=n}}),this.getOptions=function(){return A},this.setOptions=function(t){A=t,this.sort&&A.sort()},this.addOption=function(t){t=(t=t||"").toString(),A.push(t),this.sort&&A.sort()},this.removeOption=function(t,r){for(r=r||!1,t=(t=t||"").toString();A.indexOf(t)!==-1&&(A.splice(A.indexOf(t),1),r!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!ht(this.Ff,18)},set:function(t){t?this.Ff=dt(this.Ff,18):this.Ff=gt(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!ht(this.Ff,19)},set:function(t){this.combo===!0&&(t?this.Ff=dt(this.Ff,19):this.Ff=gt(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!ht(this.Ff,20)},set:function(t){t?(this.Ff=dt(this.Ff,20),A.sort()):this.Ff=gt(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!ht(this.Ff,22)},set:function(t){t?this.Ff=dt(this.Ff,22):this.Ff=gt(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!ht(this.Ff,23)},set:function(t){t?this.Ff=dt(this.Ff,23):this.Ff=gt(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!ht(this.Ff,27)},set:function(t){t?this.Ff=dt(this.Ff,27):this.Ff=gt(this.Ff,27)}}),this.hasAppearanceStream=!1};gr(Va,en);var ja=function(){Va.call(this),this.fontName="helvetica",this.combo=!1};gr(ja,Va);var za=function(){ja.call(this),this.combo=!0};gr(za,ja);var lc=function(){za.call(this),this.edit=!0};gr(lc,za);var Nt=function(){en.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!ht(this.Ff,15)},set:function(t){t?this.Ff=dt(this.Ff,15):this.Ff=gt(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!ht(this.Ff,16)},set:function(t){t?this.Ff=dt(this.Ff,16):this.Ff=gt(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!ht(this.Ff,17)},set:function(t){t?this.Ff=dt(this.Ff,17):this.Ff=gt(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!ht(this.Ff,26)},set:function(t){t?this.Ff=dt(this.Ff,26):this.Ff=gt(this.Ff,26)}});var e,A={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var t=function(i){return i};if(this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),Object.keys(A).length!==0){var r,n=[];for(r in n.push("<<"),A)n.push("/"+r+" ("+qi(t(A[r]))+")");return n.push(">>"),n.join(`
|
|
351
|
+
`)}},set:function(t){Le(t)==="object"&&(A=t)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return A.CA||""},set:function(t){typeof t=="string"&&(A.CA=t)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(t){e="/"+t}})};gr(Nt,en);var cc=function(){Nt.call(this),this.pushButton=!0};gr(cc,Nt);var Ga=function(){Nt.call(this),this.radio=!0,this.pushButton=!1;var e=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return e},set:function(A){e=A!==void 0?A:[]}})};gr(Ga,Nt);var uc=function(){var e,A;en.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return e},set:function(n){e=n}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return A},set:function(n){A=n}});var t,r={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var n=function(s){return s};this.scope&&(n=this.scope.internal.getEncryptor(this.objId));var i,a=[];for(i in a.push("<<"),r)a.push("/"+i+" ("+qi(n(r[i]))+")");return a.push(">>"),a.join(`
|
|
352
|
+
`)},set:function(n){Le(n)==="object"&&(r=n)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return r.CA||""},set:function(n){typeof n=="string"&&(r.CA=n)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return t},set:function(n){t=n}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return t.substr(1,t.length-1)},set:function(n){t="/"+n}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=$A.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};gr(uc,en),Ga.prototype.setAppearance=function(e){if(!("createAppearanceStream"in e)||!("getCA"in e))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var A in this.Kids)if(this.Kids.hasOwnProperty(A)){var t=this.Kids[A];t.appearanceStreamContent=e.createAppearanceStream(t.optionName),t.caption=e.getCA()}},Ga.prototype.createOption=function(e){var A=new uc;return A.Parent=this,A.optionName=e,this.Kids.push(A),zQ.call(this.scope,A),A};var fc=function(){Nt.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=$A.CheckBox.createAppearanceStream()};gr(fc,Nt);var Xi=function(){en.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!ht(this.Ff,13)},set:function(A){A?this.Ff=dt(this.Ff,13):this.Ff=gt(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!ht(this.Ff,21)},set:function(A){A?this.Ff=dt(this.Ff,21):this.Ff=gt(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!ht(this.Ff,23)},set:function(A){A?this.Ff=dt(this.Ff,23):this.Ff=gt(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!ht(this.Ff,24)},set:function(A){A?this.Ff=dt(this.Ff,24):this.Ff=gt(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!ht(this.Ff,25)},set:function(A){A?this.Ff=dt(this.Ff,25):this.Ff=gt(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!ht(this.Ff,26)},set:function(A){A?this.Ff=dt(this.Ff,26):this.Ff=gt(this.Ff,26)}});var e=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return e},set:function(A){e=A}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return e},set:function(A){Number.isInteger(A)&&(e=A)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};gr(Xi,en);var hc=function(){Xi.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!ht(this.Ff,14)},set:function(e){e?this.Ff=dt(this.Ff,14):this.Ff=gt(this.Ff,14)}}),this.password=!0};gr(hc,Xi);var $A={CheckBox:{createAppearanceStream:function(){return{N:{On:$A.CheckBox.YesNormal},D:{On:$A.CheckBox.YesPushDown,Off:$A.CheckBox.OffPushDown}}},YesPushDown:function(e){var A=xn(e);A.scope=e.scope;var t=[],r=e.scope.internal.getFont(e.fontName,e.fontStyle).id,n=e.scope.__private__.encodeColorString(e.color),i=Ph(e,e.caption);return t.push("0.749023 g"),t.push("0 0 "+ue($A.internal.getWidth(e))+" "+ue($A.internal.getHeight(e))+" re"),t.push("f"),t.push("BMC"),t.push("q"),t.push("0 0 1 rg"),t.push("/"+r+" "+ue(i.fontSize)+" Tf "+n),t.push("BT"),t.push(i.text),t.push("ET"),t.push("Q"),t.push("EMC"),A.stream=t.join(`
|
|
353
|
+
`),A},YesNormal:function(e){var A=xn(e);A.scope=e.scope;var t=e.scope.internal.getFont(e.fontName,e.fontStyle).id,r=e.scope.__private__.encodeColorString(e.color),n=[],i=$A.internal.getHeight(e),a=$A.internal.getWidth(e),s=Ph(e,e.caption);return n.push("1 g"),n.push("0 0 "+ue(a)+" "+ue(i)+" re"),n.push("f"),n.push("q"),n.push("0 0 1 rg"),n.push("0 0 "+ue(a-1)+" "+ue(i-1)+" re"),n.push("W"),n.push("n"),n.push("0 g"),n.push("BT"),n.push("/"+t+" "+ue(s.fontSize)+" Tf "+r),n.push(s.text),n.push("ET"),n.push("Q"),A.stream=n.join(`
|
|
354
|
+
`),A},OffPushDown:function(e){var A=xn(e);A.scope=e.scope;var t=[];return t.push("0.749023 g"),t.push("0 0 "+ue($A.internal.getWidth(e))+" "+ue($A.internal.getHeight(e))+" re"),t.push("f"),A.stream=t.join(`
|
|
355
|
+
`),A}},RadioButton:{Circle:{createAppearanceStream:function(e){var A={D:{Off:$A.RadioButton.Circle.OffPushDown},N:{}};return A.N[e]=$A.RadioButton.Circle.YesNormal,A.D[e]=$A.RadioButton.Circle.YesPushDown,A},getCA:function(){return"l"},YesNormal:function(e){var A=xn(e);A.scope=e.scope;var t=[],r=$A.internal.getWidth(e)<=$A.internal.getHeight(e)?$A.internal.getWidth(e)/4:$A.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var n=$A.internal.Bezier_C,i=Number((r*n).toFixed(5));return t.push("q"),t.push("1 0 0 1 "+vi($A.internal.getWidth(e)/2)+" "+vi($A.internal.getHeight(e)/2)+" cm"),t.push(r+" 0 m"),t.push(r+" "+i+" "+i+" "+r+" 0 "+r+" c"),t.push("-"+i+" "+r+" -"+r+" "+i+" -"+r+" 0 c"),t.push("-"+r+" -"+i+" -"+i+" -"+r+" 0 -"+r+" c"),t.push(i+" -"+r+" "+r+" -"+i+" "+r+" 0 c"),t.push("f"),t.push("Q"),A.stream=t.join(`
|
|
356
|
+
`),A},YesPushDown:function(e){var A=xn(e);A.scope=e.scope;var t=[],r=$A.internal.getWidth(e)<=$A.internal.getHeight(e)?$A.internal.getWidth(e)/4:$A.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var n=Number((2*r).toFixed(5)),i=Number((n*$A.internal.Bezier_C).toFixed(5)),a=Number((r*$A.internal.Bezier_C).toFixed(5));return t.push("0.749023 g"),t.push("q"),t.push("1 0 0 1 "+vi($A.internal.getWidth(e)/2)+" "+vi($A.internal.getHeight(e)/2)+" cm"),t.push(n+" 0 m"),t.push(n+" "+i+" "+i+" "+n+" 0 "+n+" c"),t.push("-"+i+" "+n+" -"+n+" "+i+" -"+n+" 0 c"),t.push("-"+n+" -"+i+" -"+i+" -"+n+" 0 -"+n+" c"),t.push(i+" -"+n+" "+n+" -"+i+" "+n+" 0 c"),t.push("f"),t.push("Q"),t.push("0 g"),t.push("q"),t.push("1 0 0 1 "+vi($A.internal.getWidth(e)/2)+" "+vi($A.internal.getHeight(e)/2)+" cm"),t.push(r+" 0 m"),t.push(r+" "+a+" "+a+" "+r+" 0 "+r+" c"),t.push("-"+a+" "+r+" -"+r+" "+a+" -"+r+" 0 c"),t.push("-"+r+" -"+a+" -"+a+" -"+r+" 0 -"+r+" c"),t.push(a+" -"+r+" "+r+" -"+a+" "+r+" 0 c"),t.push("f"),t.push("Q"),A.stream=t.join(`
|
|
357
|
+
`),A},OffPushDown:function(e){var A=xn(e);A.scope=e.scope;var t=[],r=$A.internal.getWidth(e)<=$A.internal.getHeight(e)?$A.internal.getWidth(e)/4:$A.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var n=Number((2*r).toFixed(5)),i=Number((n*$A.internal.Bezier_C).toFixed(5));return t.push("0.749023 g"),t.push("q"),t.push("1 0 0 1 "+vi($A.internal.getWidth(e)/2)+" "+vi($A.internal.getHeight(e)/2)+" cm"),t.push(n+" 0 m"),t.push(n+" "+i+" "+i+" "+n+" 0 "+n+" c"),t.push("-"+i+" "+n+" -"+n+" "+i+" -"+n+" 0 c"),t.push("-"+n+" -"+i+" -"+i+" -"+n+" 0 -"+n+" c"),t.push(i+" -"+n+" "+n+" -"+i+" "+n+" 0 c"),t.push("f"),t.push("Q"),A.stream=t.join(`
|
|
358
|
+
`),A}},Cross:{createAppearanceStream:function(e){var A={D:{Off:$A.RadioButton.Cross.OffPushDown},N:{}};return A.N[e]=$A.RadioButton.Cross.YesNormal,A.D[e]=$A.RadioButton.Cross.YesPushDown,A},getCA:function(){return"8"},YesNormal:function(e){var A=xn(e);A.scope=e.scope;var t=[],r=$A.internal.calculateCross(e);return t.push("q"),t.push("1 1 "+ue($A.internal.getWidth(e)-2)+" "+ue($A.internal.getHeight(e)-2)+" re"),t.push("W"),t.push("n"),t.push(ue(r.x1.x)+" "+ue(r.x1.y)+" m"),t.push(ue(r.x2.x)+" "+ue(r.x2.y)+" l"),t.push(ue(r.x4.x)+" "+ue(r.x4.y)+" m"),t.push(ue(r.x3.x)+" "+ue(r.x3.y)+" l"),t.push("s"),t.push("Q"),A.stream=t.join(`
|
|
359
|
+
`),A},YesPushDown:function(e){var A=xn(e);A.scope=e.scope;var t=$A.internal.calculateCross(e),r=[];return r.push("0.749023 g"),r.push("0 0 "+ue($A.internal.getWidth(e))+" "+ue($A.internal.getHeight(e))+" re"),r.push("f"),r.push("q"),r.push("1 1 "+ue($A.internal.getWidth(e)-2)+" "+ue($A.internal.getHeight(e)-2)+" re"),r.push("W"),r.push("n"),r.push(ue(t.x1.x)+" "+ue(t.x1.y)+" m"),r.push(ue(t.x2.x)+" "+ue(t.x2.y)+" l"),r.push(ue(t.x4.x)+" "+ue(t.x4.y)+" m"),r.push(ue(t.x3.x)+" "+ue(t.x3.y)+" l"),r.push("s"),r.push("Q"),A.stream=r.join(`
|
|
360
|
+
`),A},OffPushDown:function(e){var A=xn(e);A.scope=e.scope;var t=[];return t.push("0.749023 g"),t.push("0 0 "+ue($A.internal.getWidth(e))+" "+ue($A.internal.getHeight(e))+" re"),t.push("f"),A.stream=t.join(`
|
|
361
|
+
`),A}}},createDefaultAppearanceStream:function(e){var A=e.scope.internal.getFont(e.fontName,e.fontStyle).id,t=e.scope.__private__.encodeColorString(e.color);return"/"+A+" "+e.fontSize+" Tf "+t}};$A.internal={Bezier_C:.551915024494,calculateCross:function(e){var A=$A.internal.getWidth(e),t=$A.internal.getHeight(e),r=Math.min(A,t);return{x1:{x:(A-r)/2,y:(t-r)/2+r},x2:{x:(A-r)/2+r,y:(t-r)/2},x3:{x:(A-r)/2,y:(t-r)/2},x4:{x:(A-r)/2+r,y:(t-r)/2+r}}}},$A.internal.getWidth=function(e){var A=0;return Le(e)==="object"&&(A=Av(e.Rect[2])),A},$A.internal.getHeight=function(e){var A=0;return Le(e)==="object"&&(A=Av(e.Rect[3])),A};var zQ=tt.addField=function(e){if(jQ(this,e),!(e instanceof en))throw new Error("Invalid argument passed to jsPDF.addField.");var A;return(A=e).scope.internal.acroformPlugin.printedOut&&(A.scope.internal.acroformPlugin.printedOut=!1,A.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),A.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(A),e.page=e.scope.internal.getCurrentPageInfo().pageNumber,this};tt.AcroFormChoiceField=Va,tt.AcroFormListBox=ja,tt.AcroFormComboBox=za,tt.AcroFormEditBox=lc,tt.AcroFormButton=Nt,tt.AcroFormPushButton=cc,tt.AcroFormRadioButton=Ga,tt.AcroFormCheckBox=fc,tt.AcroFormTextField=Xi,tt.AcroFormPasswordField=hc,tt.AcroFormAppearance=$A,tt.AcroForm={ChoiceField:Va,ListBox:ja,ComboBox:za,EditBox:lc,Button:Nt,PushButton:cc,RadioButton:Ga,CheckBox:fc,TextField:Xi,PasswordField:hc,Appearance:$A},ne.AcroForm={ChoiceField:Va,ListBox:ja,ComboBox:za,EditBox:lc,Button:Nt,PushButton:cc,RadioButton:Ga,CheckBox:fc,TextField:Xi,PasswordField:hc,Appearance:$A},ne.AcroForm;function nv(e){return e.reduce(function(A,t,r){return A[t]=r,A},{})}(function(e){e.__addimage__={};var A="UNKNOWN",t={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},r=e.__addimage__.getImageFileTypeByImageData=function(N,T){var M,V,sA,iA,lA,eA=A;if((T=T||A)==="RGBA"||N.data!==void 0&&N.data instanceof Uint8ClampedArray&&"height"in N&&"width"in N)return"RGBA";if(z(N))for(lA in t)for(sA=t[lA],M=0;M<sA.length;M+=1){for(iA=!0,V=0;V<sA[M].length;V+=1)if(sA[M][V]!==void 0&&sA[M][V]!==N[V]){iA=!1;break}if(iA===!0){eA=lA;break}}else for(lA in t)for(sA=t[lA],M=0;M<sA.length;M+=1){for(iA=!0,V=0;V<sA[M].length;V+=1)if(sA[M][V]!==void 0&&sA[M][V]!==N.charCodeAt(V)){iA=!1;break}if(iA===!0){eA=lA;break}}return eA===A&&T!==A&&(eA=T),eA},n=function N(T){for(var M=this.internal.write,V=this.internal.putStream,sA=(0,this.internal.getFilters)();sA.indexOf("FlateEncode")!==-1;)sA.splice(sA.indexOf("FlateEncode"),1);T.objectId=this.internal.newObject();var iA=[];if(iA.push({key:"Type",value:"/XObject"}),iA.push({key:"Subtype",value:"/Image"}),iA.push({key:"Width",value:T.width}),iA.push({key:"Height",value:T.height}),T.colorSpace===C.INDEXED?iA.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(T.palette.length/3-1)+" "+("sMask"in T&&T.sMask!==void 0?T.objectId+2:T.objectId+1)+" 0 R]"}):(iA.push({key:"ColorSpace",value:"/"+T.colorSpace}),T.colorSpace===C.DEVICE_CMYK&&iA.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),iA.push({key:"BitsPerComponent",value:T.bitsPerComponent}),"decodeParameters"in T&&T.decodeParameters!==void 0&&iA.push({key:"DecodeParms",value:"<<"+T.decodeParameters+">>"}),"transparency"in T&&Array.isArray(T.transparency)){for(var lA="",eA=0,cA=T.transparency.length;eA<cA;eA++)lA+=T.transparency[eA]+" "+T.transparency[eA]+" ";iA.push({key:"Mask",value:"["+lA+"]"})}T.sMask!==void 0&&iA.push({key:"SMask",value:T.objectId+1+" 0 R"});var fA=T.filter!==void 0?["/"+T.filter]:void 0;if(V({data:T.data,additionalKeyValues:iA,alreadyAppliedFilters:fA,objectId:T.objectId}),M("endobj"),"sMask"in T&&T.sMask!==void 0){var BA="/Predictor "+T.predictor+" /Colors 1 /BitsPerComponent "+T.bitsPerComponent+" /Columns "+T.width,U={width:T.width,height:T.height,colorSpace:"DeviceGray",bitsPerComponent:T.bitsPerComponent,decodeParameters:BA,data:T.sMask};"filter"in T&&(U.filter=T.filter),N.call(this,U)}if(T.colorSpace===C.INDEXED){var P=this.internal.newObject();V({data:_(new Uint8Array(T.palette)),objectId:P}),M("endobj")}},i=function(){var N=this.internal.collections.addImage_images;for(var T in N)n.call(this,N[T])},a=function(){var N,T=this.internal.collections.addImage_images,M=this.internal.write;for(var V in T)M("/I"+(N=T[V]).index,N.objectId,"0","R")},s=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",i),this.internal.events.subscribe("putXobjectDict",a))},o=function(){var N=this.internal.collections.addImage_images;return s.call(this),N},c=function(){return Object.keys(this.internal.collections.addImage_images).length},u=function(N){return typeof e["process"+N.toUpperCase()]=="function"},d=function(N){return Le(N)==="object"&&N.nodeType===1},p=function(N,T){if(N.nodeName==="IMG"&&N.hasAttribute("src")){var M=""+N.getAttribute("src");if(M.indexOf("data:image/")===0)return so(unescape(M).split("base64,").pop());var V=e.loadFile(M,!0);if(V!==void 0)return V}if(N.nodeName==="CANVAS"){if(N.width===0||N.height===0)throw new Error("Given canvas must have data. Canvas width: "+N.width+", height: "+N.height);var sA;switch(T){case"PNG":sA="image/png";break;case"WEBP":sA="image/webp";break;case"JPEG":case"JPG":default:sA="image/jpeg"}return so(N.toDataURL(sA,1).split("base64,").pop())}},h=function(N){var T=this.internal.collections.addImage_images;if(T){for(var M in T)if(N===T[M].alias)return T[M]}},m=function(N,T,M){return N||T||(N=-96,T=-96),N<0&&(N=-1*M.width*72/N/this.internal.scaleFactor),T<0&&(T=-1*M.height*72/T/this.internal.scaleFactor),N===0&&(N=T*M.width/M.height),T===0&&(T=N*M.height/M.width),[N,T]},B=function(N,T,M,V,sA,iA){var lA=m.call(this,M,V,sA),eA=this.internal.getCoordinateString,cA=this.internal.getVerticalCoordinateString,fA=o.call(this);if(M=lA[0],V=lA[1],fA[sA.index]=sA,iA){iA*=Math.PI/180;var BA=Math.cos(iA),U=Math.sin(iA),P=function($){return $.toFixed(4)},K=[P(BA),P(U),P(-1*U),P(BA),0,0,"cm"]}this.internal.write("q"),iA?(this.internal.write([1,"0","0",1,eA(N),cA(T+V),"cm"].join(" ")),this.internal.write(K.join(" ")),this.internal.write([eA(M),"0","0",eA(V),"0","0","cm"].join(" "))):this.internal.write([eA(M),"0","0",eA(V),eA(N),cA(T+V),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+sA.index+" Do"),this.internal.write("Q")},C=e.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};e.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var b=e.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},Q=e.__addimage__.sHashCode=function(N){var T,M,V=0;if(typeof N=="string")for(M=N.length,T=0;T<M;T++)V=(V<<5)-V+N.charCodeAt(T),V|=0;else if(z(N))for(M=N.byteLength/2,T=0;T<M;T++)V=(V<<5)-V+N[T],V|=0;return V},L=e.__addimage__.validateStringAsBase64=function(N){(N=N||"").toString().trim();var T=!0;return N.length===0&&(T=!1),N.length%4!=0&&(T=!1),/^[A-Za-z0-9+/]+$/.test(N.substr(0,N.length-2))===!1&&(T=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(N.substr(-2))===!1&&(T=!1),T},D=e.__addimage__.extractImageFromDataUrl=function(N){var T=(N=N||"").split("base64,"),M=null;if(T.length===2){var V=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(T[0]);Array.isArray(V)&&(M={mimeType:V[1],charset:V[2],data:T[1]})}return M},O=e.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"};e.__addimage__.isArrayBuffer=function(N){return O()&&N instanceof ArrayBuffer};var z=e.__addimage__.isArrayBufferView=function(N){return O()&&typeof Uint32Array<"u"&&(N instanceof Int8Array||N instanceof Uint8Array||typeof Uint8ClampedArray<"u"&&N instanceof Uint8ClampedArray||N instanceof Int16Array||N instanceof Uint16Array||N instanceof Int32Array||N instanceof Uint32Array||N instanceof Float32Array||N instanceof Float64Array)},R=e.__addimage__.binaryStringToUint8Array=function(N){for(var T=N.length,M=new Uint8Array(T),V=0;V<T;V++)M[V]=N.charCodeAt(V);return M},_=e.__addimage__.arrayBufferToBinaryString=function(N){for(var T="",M=z(N)?N:new Uint8Array(N),V=0;V<M.length;V+=8192)T+=String.fromCharCode.apply(null,M.subarray(V,V+8192));return T};e.addImage=function(){var N,T,M,V,sA,iA,lA,eA,cA;if(typeof arguments[1]=="number"?(T=A,M=arguments[1],V=arguments[2],sA=arguments[3],iA=arguments[4],lA=arguments[5],eA=arguments[6],cA=arguments[7]):(T=arguments[1],M=arguments[2],V=arguments[3],sA=arguments[4],iA=arguments[5],lA=arguments[6],eA=arguments[7],cA=arguments[8]),Le(N=arguments[0])==="object"&&!d(N)&&"imageData"in N){var fA=N;N=fA.imageData,T=fA.format||T||A,M=fA.x||M||0,V=fA.y||V||0,sA=fA.w||fA.width||sA,iA=fA.h||fA.height||iA,lA=fA.alias||lA,eA=fA.compression||eA,cA=fA.rotation||fA.angle||cA}var BA=this.internal.getFilters();if(eA===void 0&&BA.indexOf("FlateEncode")!==-1&&(eA="SLOW"),isNaN(M)||isNaN(V))throw new Error("Invalid coordinates passed to jsPDF.addImage");s.call(this);var U=X.call(this,N,T,lA,eA);return B.call(this,M,V,sA,iA,U,cA),this};var X=function(N,T,M,V){var sA,iA,lA;if(typeof N=="string"&&r(N)===A){N=unescape(N);var eA=nA(N,!1);(eA!==""||(eA=e.loadFile(N,!0))!==void 0)&&(N=eA)}if(d(N)&&(N=p(N,T)),T=r(N,T),!u(T))throw new Error("addImage does not support files of type '"+T+"', please ensure that a plugin for '"+T+"' support is added.");if(((lA=M)==null||lA.length===0)&&(M=function(cA){return typeof cA=="string"||z(cA)?Q(cA):z(cA.data)?Q(cA.data):null}(N)),(sA=h.call(this,M))||(O()&&(N instanceof Uint8Array||T==="RGBA"||(iA=N,N=R(N))),sA=this["process"+T.toUpperCase()](N,c.call(this),M,function(cA){return cA&&typeof cA=="string"&&(cA=cA.toUpperCase()),cA in e.image_compression?cA:b.NONE}(V),iA)),!sA)throw new Error("An unknown error occurred whilst processing the image.");return sA},nA=e.__addimage__.convertBase64ToBinaryString=function(N,T){var M;T=typeof T!="boolean"||T;var V,sA="";if(typeof N=="string"){V=(M=D(N))!==null?M.data:N;try{sA=so(V)}catch(iA){if(T)throw L(V)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+iA.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return sA};e.getImageProperties=function(N){var T,M,V="";if(d(N)&&(N=p(N)),typeof N=="string"&&r(N)===A&&((V=nA(N,!1))===""&&(V=e.loadFile(N)||""),N=V),M=r(N),!u(M))throw new Error("addImage does not support files of type '"+M+"', please ensure that a plugin for '"+M+"' support is added.");if(!O()||N instanceof Uint8Array||(N=R(N)),!(T=this["process"+M.toUpperCase()](N)))throw new Error("An unknown error occurred whilst processing the image");return T.fileType=M,T}})(ne.API),function(e){var A=function(t){if(t!==void 0&&t!="")return!0};ne.API.events.push(["addPage",function(t){this.internal.getPageInfo(t.pageNumber).pageContext.annotations=[]}]),e.events.push(["putPage",function(t){for(var r,n,i,a=this.internal.getCoordinateString,s=this.internal.getVerticalCoordinateString,o=this.internal.getPageInfoByObjId(t.objId),c=t.pageContext.annotations,u=!1,d=0;d<c.length&&!u;d++)switch((r=c[d]).type){case"link":(A(r.options.url)||A(r.options.pageNumber))&&(u=!0);break;case"reference":case"text":case"freetext":u=!0}if(u!=0){this.internal.write("/Annots [");for(var p=0;p<c.length;p++){r=c[p];var h=this.internal.pdfEscape,m=this.internal.getEncryptor(t.objId);switch(r.type){case"reference":this.internal.write(" "+r.object.objId+" 0 R ");break;case"text":var B=this.internal.newAdditionalObject(),C=this.internal.newAdditionalObject(),b=this.internal.getEncryptor(B.objId),Q=r.title||"Note";i="<</Type /Annot /Subtype /Text "+(n="/Rect ["+a(r.bounds.x)+" "+s(r.bounds.y+r.bounds.h)+" "+a(r.bounds.x+r.bounds.w)+" "+s(r.bounds.y)+"] ")+"/Contents ("+h(b(r.contents))+")",i+=" /Popup "+C.objId+" 0 R",i+=" /P "+o.objId+" 0 R",i+=" /T ("+h(b(Q))+") >>",B.content=i;var L=B.objId+" 0 R";i="<</Type /Annot /Subtype /Popup "+(n="/Rect ["+a(r.bounds.x+30)+" "+s(r.bounds.y+r.bounds.h)+" "+a(r.bounds.x+r.bounds.w+30)+" "+s(r.bounds.y)+"] ")+" /Parent "+L,r.open&&(i+=" /Open true"),i+=" >>",C.content=i,this.internal.write(B.objId,"0 R",C.objId,"0 R");break;case"freetext":n="/Rect ["+a(r.bounds.x)+" "+s(r.bounds.y)+" "+a(r.bounds.x+r.bounds.w)+" "+s(r.bounds.y+r.bounds.h)+"] ";var D=r.color||"#000000";i="<</Type /Annot /Subtype /FreeText "+n+"/Contents ("+h(m(r.contents))+")",i+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+D+")",i+=" /Border [0 0 0]",i+=" >>",this.internal.write(i);break;case"link":if(r.options.name){var O=this.annotations._nameMap[r.options.name];r.options.pageNumber=O.page,r.options.top=O.y}else r.options.top||(r.options.top=0);if(n="/Rect ["+r.finalBounds.x+" "+r.finalBounds.y+" "+r.finalBounds.w+" "+r.finalBounds.h+"] ",i="",r.options.url)i="<</Type /Annot /Subtype /Link "+n+"/Border [0 0 0] /A <</S /URI /URI ("+h(m(r.options.url))+") >>";else if(r.options.pageNumber)switch(i="<</Type /Annot /Subtype /Link "+n+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(r.options.pageNumber).objId+" 0 R",r.options.magFactor=r.options.magFactor||"XYZ",r.options.magFactor){case"Fit":i+=" /Fit]";break;case"FitH":i+=" /FitH "+r.options.top+"]";break;case"FitV":r.options.left=r.options.left||0,i+=" /FitV "+r.options.left+"]";break;case"XYZ":default:var z=s(r.options.top);r.options.left=r.options.left||0,r.options.zoom===void 0&&(r.options.zoom=0),i+=" /XYZ "+r.options.left+" "+z+" "+r.options.zoom+"]"}i!=""&&(i+=" >>",this.internal.write(i))}}this.internal.write("]")}}]),e.createAnnotation=function(t){var r=this.internal.getCurrentPageInfo();switch(t.type){case"link":this.link(t.bounds.x,t.bounds.y,t.bounds.w,t.bounds.h,t);break;case"text":case"freetext":r.pageContext.annotations.push(t)}},e.link=function(t,r,n,i,a){var s=this.internal.getCurrentPageInfo(),o=this.internal.getCoordinateString,c=this.internal.getVerticalCoordinateString;s.pageContext.annotations.push({finalBounds:{x:o(t),y:c(r),w:o(t+n),h:c(r+i)},options:a,type:"link"})},e.textWithLink=function(t,r,n,i){var a,s,o=this.getTextWidth(t),c=this.internal.getLineHeight()/this.internal.scaleFactor;if(i.maxWidth!==void 0){s=i.maxWidth;var u=this.splitTextToSize(t,s).length;a=Math.ceil(c*u)}else s=o,a=c;return this.text(t,r,n,i),n+=.2*c,i.align==="center"&&(r-=o/2),i.align==="right"&&(r-=o),this.link(r,n-c,s,a,i),o},e.getTextWidth=function(t){var r=this.internal.getFontSize();return this.getStringUnitWidth(t)*r/this.internal.scaleFactor}}(ne.API),function(e){var A={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},t={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},r={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},n=[1570,1571,1573,1575];e.__arabicParser__={};var i=e.__arabicParser__.isInArabicSubstitutionA=function(B){return A[B.charCodeAt(0)]!==void 0},a=e.__arabicParser__.isArabicLetter=function(B){return typeof B=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(B)},s=e.__arabicParser__.isArabicEndLetter=function(B){return a(B)&&i(B)&&A[B.charCodeAt(0)].length<=2},o=e.__arabicParser__.isArabicAlfLetter=function(B){return a(B)&&n.indexOf(B.charCodeAt(0))>=0};e.__arabicParser__.arabicLetterHasIsolatedForm=function(B){return a(B)&&i(B)&&A[B.charCodeAt(0)].length>=1};var c=e.__arabicParser__.arabicLetterHasFinalForm=function(B){return a(B)&&i(B)&&A[B.charCodeAt(0)].length>=2};e.__arabicParser__.arabicLetterHasInitialForm=function(B){return a(B)&&i(B)&&A[B.charCodeAt(0)].length>=3};var u=e.__arabicParser__.arabicLetterHasMedialForm=function(B){return a(B)&&i(B)&&A[B.charCodeAt(0)].length==4},d=e.__arabicParser__.resolveLigatures=function(B){var C=0,b=t,Q="",L=0;for(C=0;C<B.length;C+=1)b[B.charCodeAt(C)]!==void 0?(L++,typeof(b=b[B.charCodeAt(C)])=="number"&&(Q+=String.fromCharCode(b),b=t,L=0),C===B.length-1&&(b=t,Q+=B.charAt(C-(L-1)),C-=L-1,L=0)):(b=t,Q+=B.charAt(C-L),C-=L,L=0);return Q};e.__arabicParser__.isArabicDiacritic=function(B){return B!==void 0&&r[B.charCodeAt(0)]!==void 0};var p=e.__arabicParser__.getCorrectForm=function(B,C,b){return a(B)?i(B)===!1?-1:!c(B)||!a(C)&&!a(b)||!a(b)&&s(C)||s(B)&&!a(C)||s(B)&&o(C)||s(B)&&s(C)?0:u(B)&&a(C)&&!s(C)&&a(b)&&c(b)?3:s(B)||!a(b)?1:2:-1},h=function(B){var C=0,b=0,Q=0,L="",D="",O="",z=(B=B||"").split("\\s+"),R=[];for(C=0;C<z.length;C+=1){for(R.push(""),b=0;b<z[C].length;b+=1)L=z[C][b],D=z[C][b-1],O=z[C][b+1],a(L)?(Q=p(L,D,O),R[C]+=Q!==-1?String.fromCharCode(A[L.charCodeAt(0)][Q]):L):R[C]+=L;R[C]=d(R[C])}return R.join(" ")},m=e.__arabicParser__.processArabic=e.processArabic=function(){var B,C=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,b=[];if(Array.isArray(C)){var Q=0;for(b=[],Q=0;Q<C.length;Q+=1)Array.isArray(C[Q])?b.push([h(C[Q][0]),C[Q][1],C[Q][2]]):b.push([h(C[Q])]);B=b}else B=h(C);return typeof arguments[0]=="string"?B:(arguments[0].text=B,arguments[0])};e.events.push(["preProcessText",m])}(ne.API),ne.API.autoPrint=function(e){var A;switch((e=e||{}).variant=e.variant||"non-conform",e.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",function(){A=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+A+" 0 R")})}return this},function(e){var A=function(){var t=void 0;Object.defineProperty(this,"pdf",{get:function(){return t},set:function(s){t=s}});var r=150;Object.defineProperty(this,"width",{get:function(){return r},set:function(s){r=isNaN(s)||Number.isInteger(s)===!1||s<0?150:s,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=r+1)}});var n=300;Object.defineProperty(this,"height",{get:function(){return n},set:function(s){n=isNaN(s)||Number.isInteger(s)===!1||s<0?300:s,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=n+1)}});var i=[];Object.defineProperty(this,"childNodes",{get:function(){return i},set:function(s){i=s}});var a={};Object.defineProperty(this,"style",{get:function(){return a},set:function(s){a=s}}),Object.defineProperty(this,"parentNode",{})};A.prototype.getContext=function(t,r){var n;if((t=t||"2d")!=="2d")return null;for(n in r)this.pdf.context2d.hasOwnProperty(n)&&(this.pdf.context2d[n]=r[n]);return this.pdf.context2d._canvas=this,this.pdf.context2d},A.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},e.events.push(["initialized",function(){this.canvas=new A,this.canvas.pdf=this}])}(ne.API),function(e){var A={left:0,top:0,bottom:0,right:0},t=!1,r=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},A),this.internal.__cell__.margins.width=this.getPageWidth(),n.call(this))},n=function(){this.internal.__cell__.lastCell=new i,this.internal.__cell__.pages=1},i=function(){var o=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return o},set:function(B){o=B}});var c=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return c},set:function(B){c=B}});var u=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return u},set:function(B){u=B}});var d=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return d},set:function(B){d=B}});var p=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return p},set:function(B){p=B}});var h=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return h},set:function(B){h=B}});var m=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return m},set:function(B){m=B}}),this};i.prototype.clone=function(){return new i(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},i.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},e.setHeaderFunction=function(o){return r.call(this),this.internal.__cell__.headerFunction=typeof o=="function"?o:void 0,this},e.getTextDimensions=function(o,c){r.call(this);var u=(c=c||{}).fontSize||this.getFontSize(),d=c.font||this.getFont(),p=c.scaleFactor||this.internal.scaleFactor,h=0,m=0,B=0,C=this;if(!Array.isArray(o)&&typeof o!="string"){if(typeof o!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");o=String(o)}var b=c.maxWidth;b>0?typeof o=="string"?o=this.splitTextToSize(o,b):Object.prototype.toString.call(o)==="[object Array]"&&(o=o.reduce(function(L,D){return L.concat(C.splitTextToSize(D,b))},[])):o=Array.isArray(o)?o:[o];for(var Q=0;Q<o.length;Q++)h<(B=this.getStringUnitWidth(o[Q],{font:d})*u)&&(h=B);return h!==0&&(m=o.length),{w:h/=p,h:Math.max((m*u*this.getLineHeightFactor()-u*(this.getLineHeightFactor()-1))/p,0)}},e.cellAddPage=function(){r.call(this),this.addPage();var o=this.internal.__cell__.margins||A;return this.internal.__cell__.lastCell=new i(o.left,o.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var a=e.cell=function(){var o;o=arguments[0]instanceof i?arguments[0]:new i(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),r.call(this);var c=this.internal.__cell__.lastCell,u=this.internal.__cell__.padding,d=this.internal.__cell__.margins||A,p=this.internal.__cell__.tableHeaderRow,h=this.internal.__cell__.printHeaders;return c.lineNumber!==void 0&&(c.lineNumber===o.lineNumber?(o.x=(c.x||0)+(c.width||0),o.y=c.y||0):c.y+c.height+o.height+d.bottom>this.getPageHeight()?(this.cellAddPage(),o.y=d.top,h&&p&&(this.printHeaderRow(o.lineNumber,!0),o.y+=p[0].height)):o.y=c.y+c.height||o.y),o.text[0]!==void 0&&(this.rect(o.x,o.y,o.width,o.height,t===!0?"FD":void 0),o.align==="right"?this.text(o.text,o.x+o.width-u,o.y+u,{align:"right",baseline:"top"}):o.align==="center"?this.text(o.text,o.x+o.width/2,o.y+u,{align:"center",baseline:"top",maxWidth:o.width-u-u}):this.text(o.text,o.x+u,o.y+u,{align:"left",baseline:"top",maxWidth:o.width-u-u})),this.internal.__cell__.lastCell=o,this};e.table=function(o,c,u,d,p){if(r.call(this),!u)throw new Error("No data for PDF table.");var h,m,B,C,b=[],Q=[],L=[],D={},O={},z=[],R=[],_=(p=p||{}).autoSize||!1,X=p.printHeaders!==!1,nA=p.css&&p.css["font-size"]!==void 0?16*p.css["font-size"]:p.fontSize||12,N=p.margins||Object.assign({width:this.getPageWidth()},A),T=typeof p.padding=="number"?p.padding:3,M=p.headerBackgroundColor||"#c8c8c8",V=p.headerTextColor||"#000";if(n.call(this),this.internal.__cell__.printHeaders=X,this.internal.__cell__.margins=N,this.internal.__cell__.table_font_size=nA,this.internal.__cell__.padding=T,this.internal.__cell__.headerBackgroundColor=M,this.internal.__cell__.headerTextColor=V,this.setFontSize(nA),d==null)Q=b=Object.keys(u[0]),L=b.map(function(){return"left"});else if(Array.isArray(d)&&Le(d[0])==="object")for(b=d.map(function(fA){return fA.name}),Q=d.map(function(fA){return fA.prompt||fA.name||""}),L=d.map(function(fA){return fA.align||"left"}),h=0;h<d.length;h+=1)O[d[h].name]=d[h].width*(19.049976/25.4);else Array.isArray(d)&&typeof d[0]=="string"&&(Q=b=d,L=b.map(function(){return"left"}));if(_||Array.isArray(d)&&typeof d[0]=="string")for(h=0;h<b.length;h+=1){for(D[C=b[h]]=u.map(function(fA){return fA[C]}),this.setFont(void 0,"bold"),z.push(this.getTextDimensions(Q[h],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),m=D[C],this.setFont(void 0,"normal"),B=0;B<m.length;B+=1)z.push(this.getTextDimensions(m[B],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);O[C]=Math.max.apply(null,z)+T+T,z=[]}if(X){var sA={};for(h=0;h<b.length;h+=1)sA[b[h]]={},sA[b[h]].text=Q[h],sA[b[h]].align=L[h];var iA=s.call(this,sA,O);R=b.map(function(fA){return new i(o,c,O[fA],iA,sA[fA].text,void 0,sA[fA].align)}),this.setTableHeaderRow(R),this.printHeaderRow(1,!1)}var lA=d.reduce(function(fA,BA){return fA[BA.name]=BA.align,fA},{});for(h=0;h<u.length;h+=1){"rowStart"in p&&p.rowStart instanceof Function&&p.rowStart({row:h,data:u[h]},this);var eA=s.call(this,u[h],O);for(B=0;B<b.length;B+=1){var cA=u[h][b[B]];"cellStart"in p&&p.cellStart instanceof Function&&p.cellStart({row:h,col:B,data:cA},this),a.call(this,new i(o,c,O[b[B]],eA,cA,h+2,lA[b[B]]))}}return this.internal.__cell__.table_x=o,this.internal.__cell__.table_y=c,this};var s=function(o,c){var u=this.internal.__cell__.padding,d=this.internal.__cell__.table_font_size,p=this.internal.scaleFactor;return Object.keys(o).map(function(h){var m=o[h];return this.splitTextToSize(m.hasOwnProperty("text")?m.text:m,c[h]-u-u)},this).map(function(h){return this.getLineHeightFactor()*h.length*d/p+u+u},this).reduce(function(h,m){return Math.max(h,m)},0)};e.setTableHeaderRow=function(o){r.call(this),this.internal.__cell__.tableHeaderRow=o},e.printHeaderRow=function(o,c){if(r.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var u;if(t=!0,typeof this.internal.__cell__.headerFunction=="function"){var d=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new i(d[0],d[1],d[2],d[3],void 0,-1)}this.setFont(void 0,"bold");for(var p=[],h=0;h<this.internal.__cell__.tableHeaderRow.length;h+=1){u=this.internal.__cell__.tableHeaderRow[h].clone(),c&&(u.y=this.internal.__cell__.margins.top||0,p.push(u)),u.lineNumber=o;var m=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),a.call(this,u),this.setTextColor(m)}p.length>0&&this.setTableHeaderRow(p),this.setFont(void 0,"normal"),t=!1}}(ne.API);var iv={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},av=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Dh=nv(av),sv=[100,200,300,400,500,600,700,800,900],GQ=nv(sv);function Mh(e){var A=e.family.replace(/"|'/g,"").toLowerCase(),t=function(i){return iv[i=i||"normal"]?i:"normal"}(e.style),r=function(i){if(!i)return 400;if(typeof i=="number")return i>=100&&i<=900&&i%100==0?i:400;if(/^\d00$/.test(i))return parseInt(i);switch(i){case"bold":return 700;case"normal":default:return 400}}(e.weight),n=function(i){return typeof Dh[i=i||"normal"]=="number"?i:"normal"}(e.stretch);return{family:A,style:t,weight:r,stretch:n,src:e.src||[],ref:e.ref||{name:A,style:[n,t,r].join(" ")}}}function ov(e,A,t,r){var n;for(n=t;n>=0&&n<A.length;n+=r)if(e[A[n]])return e[A[n]];for(n=t;n>=0&&n<A.length;n-=r)if(e[A[n]])return e[A[n]]}var $Q={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},lv={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function cv(e){return[e.stretch,e.style,e.weight,e.family].join(" ")}function WQ(e,A,t){for(var r=(t=t||{}).defaultFontFamily||"times",n=Object.assign({},$Q,t.genericFontFamilies||{}),i=null,a=null,s=0;s<A.length;++s)if(n[(i=Mh(A[s])).family]&&(i.family=n[i.family]),e.hasOwnProperty(i.family)){a=e[i.family];break}if(!(a=a||e[r]))throw new Error("Could not find a font-family for the rule '"+cv(i)+"' and default family '"+r+"'.");if(a=function(o,c){if(c[o])return c[o];var u=Dh[o],d=u<=Dh.normal?-1:1,p=ov(c,av,u,d);if(!p)throw new Error("Could not find a matching font-stretch value for "+o);return p}(i.stretch,a),a=function(o,c){if(c[o])return c[o];for(var u=iv[o],d=0;d<u.length;++d)if(c[u[d]])return c[u[d]];throw new Error("Could not find a matching font-style for "+o)}(i.style,a),!(a=function(o,c){if(c[o])return c[o];if(o===400&&c[500])return c[500];if(o===500&&c[400])return c[400];var u=GQ[o],d=ov(c,sv,u,o<400?-1:1);if(!d)throw new Error("Could not find a matching font-weight for value "+o);return d}(i.weight,a)))throw new Error("Failed to resolve a font for the rule '"+cv(i)+"'.");return a}function uv(e){return e.trimLeft()}function qQ(e,A){for(var t=0;t<e.length;){if(e.charAt(t)===A)return[e.substring(0,t),e.substring(t+1)];t+=1}return null}function XQ(e){var A=e.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return A===null?null:[A[0],e.substring(A[0].length)]}var dc,fv,hv,Rh=["times"];(function(e){var A,t,r,n,i,a,s,o,c,u=function(U){return U=U||{},this.isStrokeTransparent=U.isStrokeTransparent||!1,this.strokeOpacity=U.strokeOpacity||1,this.strokeStyle=U.strokeStyle||"#000000",this.fillStyle=U.fillStyle||"#000000",this.isFillTransparent=U.isFillTransparent||!1,this.fillOpacity=U.fillOpacity||1,this.font=U.font||"10px sans-serif",this.textBaseline=U.textBaseline||"alphabetic",this.textAlign=U.textAlign||"left",this.lineWidth=U.lineWidth||1,this.lineJoin=U.lineJoin||"miter",this.lineCap=U.lineCap||"butt",this.path=U.path||[],this.transform=U.transform!==void 0?U.transform.clone():new o,this.globalCompositeOperation=U.globalCompositeOperation||"normal",this.globalAlpha=U.globalAlpha||1,this.clip_path=U.clip_path||[],this.currentPoint=U.currentPoint||new a,this.miterLimit=U.miterLimit||10,this.lastPoint=U.lastPoint||new a,this.lineDashOffset=U.lineDashOffset||0,this.lineDash=U.lineDash||[],this.margin=U.margin||[0,0,0,0],this.prevPageLastElemOffset=U.prevPageLastElemOffset||0,this.ignoreClearRect=typeof U.ignoreClearRect!="boolean"||U.ignoreClearRect,this};e.events.push(["initialized",function(){this.context2d=new d(this),A=this.internal.f2,t=this.internal.getCoordinateString,r=this.internal.getVerticalCoordinateString,n=this.internal.getHorizontalCoordinate,i=this.internal.getVerticalCoordinate,a=this.internal.Point,s=this.internal.Rectangle,o=this.internal.Matrix,c=new u}]);var d=function(U){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var P=U;Object.defineProperty(this,"pdf",{get:function(){return P}});var K=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return K},set:function(gA){K=!!gA}});var $=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return $},set:function(gA){$=!!gA}});var j=0;Object.defineProperty(this,"posX",{get:function(){return j},set:function(gA){isNaN(gA)||(j=gA)}});var q=0;Object.defineProperty(this,"posY",{get:function(){return q},set:function(gA){isNaN(gA)||(q=gA)}}),Object.defineProperty(this,"margin",{get:function(){return c.margin},set:function(gA){var W;typeof gA=="number"?W=[gA,gA,gA,gA]:((W=new Array(4))[0]=gA[0],W[1]=gA.length>=2?gA[1]:W[0],W[2]=gA.length>=3?gA[2]:W[0],W[3]=gA.length>=4?gA[3]:W[1]),c.margin=W}});var rA=!1;Object.defineProperty(this,"autoPaging",{get:function(){return rA},set:function(gA){rA=gA}});var oA=0;Object.defineProperty(this,"lastBreak",{get:function(){return oA},set:function(gA){oA=gA}});var wA=[];Object.defineProperty(this,"pageBreaks",{get:function(){return wA},set:function(gA){wA=gA}}),Object.defineProperty(this,"ctx",{get:function(){return c},set:function(gA){gA instanceof u&&(c=gA)}}),Object.defineProperty(this,"path",{get:function(){return c.path},set:function(gA){c.path=gA}});var FA=[];Object.defineProperty(this,"ctxStack",{get:function(){return FA},set:function(gA){FA=gA}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(gA){var W;W=p(gA),this.ctx.fillStyle=W.style,this.ctx.isFillTransparent=W.a===0,this.ctx.fillOpacity=W.a,this.pdf.setFillColor(W.r,W.g,W.b,{a:W.a}),this.pdf.setTextColor(W.r,W.g,W.b,{a:W.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(gA){var W=p(gA);this.ctx.strokeStyle=W.style,this.ctx.isStrokeTransparent=W.a===0,this.ctx.strokeOpacity=W.a,W.a===0?this.pdf.setDrawColor(255,255,255):(W.a,this.pdf.setDrawColor(W.r,W.g,W.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(gA){["butt","round","square"].indexOf(gA)!==-1&&(this.ctx.lineCap=gA,this.pdf.setLineCap(gA))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(gA){isNaN(gA)||(this.ctx.lineWidth=gA,this.pdf.setLineWidth(gA))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(gA){["bevel","round","miter"].indexOf(gA)!==-1&&(this.ctx.lineJoin=gA,this.pdf.setLineJoin(gA))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(gA){isNaN(gA)||(this.ctx.miterLimit=gA,this.pdf.setMiterLimit(gA))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(gA){this.ctx.textBaseline=gA}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(gA){["right","end","center","left","start"].indexOf(gA)!==-1&&(this.ctx.textAlign=gA)}});var UA=null;function LA(gA,W){if(UA===null){var ZA=function(RA){var xA=[];return Object.keys(RA).forEach(function(NA){RA[NA].forEach(function(OA){var TA=null;switch(OA){case"bold":TA={family:NA,weight:"bold"};break;case"italic":TA={family:NA,style:"italic"};break;case"bolditalic":TA={family:NA,weight:"bold",style:"italic"};break;case"":case"normal":TA={family:NA}}TA!==null&&(TA.ref={name:NA,style:OA},xA.push(TA))})}),xA}(gA.getFontList());UA=function(RA){for(var xA={},NA=0;NA<RA.length;++NA){var OA=Mh(RA[NA]),TA=OA.family,zA=OA.stretch,WA=OA.style,ee=OA.weight;xA[TA]=xA[TA]||{},xA[TA][zA]=xA[TA][zA]||{},xA[TA][zA][WA]=xA[TA][zA][WA]||{},xA[TA][zA][WA][ee]=OA}return xA}(ZA.concat(W))}return UA}var MA=null;Object.defineProperty(this,"fontFaces",{get:function(){return MA},set:function(gA){UA=null,MA=gA}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(gA){var W;if(this.ctx.font=gA,(W=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(gA))!==null){var ZA=W[1],RA=(W[2],W[3]),xA=W[4],NA=(W[5],W[6]),OA=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(xA)[2];xA=Math.floor(OA==="px"?parseFloat(xA)*this.pdf.internal.scaleFactor:OA==="em"?parseFloat(xA)*this.pdf.getFontSize():parseFloat(xA)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(xA);var TA=function(XA){var se,HA,Me=[],me=XA.trim();if(me==="")return Rh;if(me in lv)return[lv[me]];for(;me!=="";){switch(HA=null,se=(me=uv(me)).charAt(0)){case'"':case"'":HA=qQ(me.substring(1),se);break;default:HA=XQ(me)}if(HA===null||(Me.push(HA[0]),(me=uv(HA[1]))!==""&&me.charAt(0)!==","))return Rh;me=me.replace(/^,/,"")}return Me}(NA);if(this.fontFaces){var zA=WQ(LA(this.pdf,this.fontFaces),TA.map(function(XA){return{family:XA,stretch:"normal",weight:RA,style:ZA}}));this.pdf.setFont(zA.ref.name,zA.ref.style)}else{var WA="";(RA==="bold"||parseInt(RA,10)>=700||ZA==="bold")&&(WA="bold"),ZA==="italic"&&(WA+="italic"),WA.length===0&&(WA="normal");for(var ee="",ie={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},oe=0;oe<TA.length;oe++){if(this.pdf.internal.getFont(TA[oe],WA,{noFallback:!0,disableWarning:!0})!==void 0){ee=TA[oe];break}if(WA==="bolditalic"&&this.pdf.internal.getFont(TA[oe],"bold",{noFallback:!0,disableWarning:!0})!==void 0)ee=TA[oe],WA="bold";else if(this.pdf.internal.getFont(TA[oe],"normal",{noFallback:!0,disableWarning:!0})!==void 0){ee=TA[oe],WA="normal";break}}if(ee===""){for(var pe=0;pe<TA.length;pe++)if(ie[TA[pe]]){ee=ie[TA[pe]];break}}ee=ee===""?"Times":ee,this.pdf.setFont(ee,WA)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(gA){this.ctx.globalCompositeOperation=gA}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(gA){this.ctx.globalAlpha=gA}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(gA){this.ctx.lineDashOffset=gA,BA.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(gA){this.ctx.lineDash=gA,BA.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(gA){this.ctx.ignoreClearRect=!!gA}})};d.prototype.setLineDash=function(U){this.lineDash=U},d.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},d.prototype.fill=function(){D.call(this,"fill",!1)},d.prototype.stroke=function(){D.call(this,"stroke",!1)},d.prototype.beginPath=function(){this.path=[{type:"begin"}]},d.prototype.moveTo=function(U,P){if(isNaN(U)||isNaN(P))throw Ke.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var K=this.ctx.transform.applyToPoint(new a(U,P));this.path.push({type:"mt",x:K.x,y:K.y}),this.ctx.lastPoint=new a(U,P)},d.prototype.closePath=function(){var U=new a(0,0),P=0;for(P=this.path.length-1;P!==-1;P--)if(this.path[P].type==="begin"&&Le(this.path[P+1])==="object"&&typeof this.path[P+1].x=="number"){U=new a(this.path[P+1].x,this.path[P+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new a(U.x,U.y)},d.prototype.lineTo=function(U,P){if(isNaN(U)||isNaN(P))throw Ke.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var K=this.ctx.transform.applyToPoint(new a(U,P));this.path.push({type:"lt",x:K.x,y:K.y}),this.ctx.lastPoint=new a(K.x,K.y)},d.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),D.call(this,null,!0)},d.prototype.quadraticCurveTo=function(U,P,K,$){if(isNaN(K)||isNaN($)||isNaN(U)||isNaN(P))throw Ke.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var j=this.ctx.transform.applyToPoint(new a(K,$)),q=this.ctx.transform.applyToPoint(new a(U,P));this.path.push({type:"qct",x1:q.x,y1:q.y,x:j.x,y:j.y}),this.ctx.lastPoint=new a(j.x,j.y)},d.prototype.bezierCurveTo=function(U,P,K,$,j,q){if(isNaN(j)||isNaN(q)||isNaN(U)||isNaN(P)||isNaN(K)||isNaN($))throw Ke.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var rA=this.ctx.transform.applyToPoint(new a(j,q)),oA=this.ctx.transform.applyToPoint(new a(U,P)),wA=this.ctx.transform.applyToPoint(new a(K,$));this.path.push({type:"bct",x1:oA.x,y1:oA.y,x2:wA.x,y2:wA.y,x:rA.x,y:rA.y}),this.ctx.lastPoint=new a(rA.x,rA.y)},d.prototype.arc=function(U,P,K,$,j,q){if(isNaN(U)||isNaN(P)||isNaN(K)||isNaN($)||isNaN(j))throw Ke.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(q=!!q,!this.ctx.transform.isIdentity){var rA=this.ctx.transform.applyToPoint(new a(U,P));U=rA.x,P=rA.y;var oA=this.ctx.transform.applyToPoint(new a(0,K)),wA=this.ctx.transform.applyToPoint(new a(0,0));K=Math.sqrt(Math.pow(oA.x-wA.x,2)+Math.pow(oA.y-wA.y,2))}Math.abs(j-$)>=2*Math.PI&&($=0,j=2*Math.PI),this.path.push({type:"arc",x:U,y:P,radius:K,startAngle:$,endAngle:j,counterclockwise:q})},d.prototype.arcTo=function(U,P,K,$,j){throw new Error("arcTo not implemented.")},d.prototype.rect=function(U,P,K,$){if(isNaN(U)||isNaN(P)||isNaN(K)||isNaN($))throw Ke.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(U,P),this.lineTo(U+K,P),this.lineTo(U+K,P+$),this.lineTo(U,P+$),this.lineTo(U,P),this.lineTo(U+K,P),this.lineTo(U,P)},d.prototype.fillRect=function(U,P,K,$){if(isNaN(U)||isNaN(P)||isNaN(K)||isNaN($))throw Ke.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!h.call(this)){var j={};this.lineCap!=="butt"&&(j.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(j.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(U,P,K,$),this.fill(),j.hasOwnProperty("lineCap")&&(this.lineCap=j.lineCap),j.hasOwnProperty("lineJoin")&&(this.lineJoin=j.lineJoin)}},d.prototype.strokeRect=function(U,P,K,$){if(isNaN(U)||isNaN(P)||isNaN(K)||isNaN($))throw Ke.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");m.call(this)||(this.beginPath(),this.rect(U,P,K,$),this.stroke())},d.prototype.clearRect=function(U,P,K,$){if(isNaN(U)||isNaN(P)||isNaN(K)||isNaN($))throw Ke.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(U,P,K,$))},d.prototype.save=function(U){U=typeof U!="boolean"||U;for(var P=this.pdf.internal.getCurrentPageInfo().pageNumber,K=0;K<this.pdf.internal.getNumberOfPages();K++)this.pdf.setPage(K+1),this.pdf.internal.out("q");if(this.pdf.setPage(P),U){this.ctx.fontSize=this.pdf.internal.getFontSize();var $=new u(this.ctx);this.ctxStack.push(this.ctx),this.ctx=$}},d.prototype.restore=function(U){U=typeof U!="boolean"||U;for(var P=this.pdf.internal.getCurrentPageInfo().pageNumber,K=0;K<this.pdf.internal.getNumberOfPages();K++)this.pdf.setPage(K+1),this.pdf.internal.out("Q");this.pdf.setPage(P),U&&this.ctxStack.length!==0&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},d.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var p=function(U){var P,K,$,j;if(U.isCanvasGradient===!0&&(U=U.getColor()),!U)return{r:0,g:0,b:0,a:0,style:U};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(U))P=0,K=0,$=0,j=0;else{var q=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(U);if(q!==null)P=parseInt(q[1]),K=parseInt(q[2]),$=parseInt(q[3]),j=1;else if((q=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(U))!==null)P=parseInt(q[1]),K=parseInt(q[2]),$=parseInt(q[3]),j=parseFloat(q[4]);else{if(j=1,typeof U=="string"&&U.charAt(0)!=="#"){var rA=new W2(U);U=rA.ok?rA.toHex():"#000000"}U.length===4?(P=U.substring(1,2),P+=P,K=U.substring(2,3),K+=K,$=U.substring(3,4),$+=$):(P=U.substring(1,3),K=U.substring(3,5),$=U.substring(5,7)),P=parseInt(P,16),K=parseInt(K,16),$=parseInt($,16)}}return{r:P,g:K,b:$,a:j,style:U}},h=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},m=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};d.prototype.fillText=function(U,P,K,$){if(isNaN(P)||isNaN(K)||typeof U!="string")throw Ke.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if($=isNaN($)?void 0:$,!h.call(this)){var j=eA(this.ctx.transform.rotation),q=this.ctx.transform.scaleX;T.call(this,{text:U,x:P,y:K,scale:q,angle:j,align:this.textAlign,maxWidth:$})}},d.prototype.strokeText=function(U,P,K,$){if(isNaN(P)||isNaN(K)||typeof U!="string")throw Ke.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!m.call(this)){$=isNaN($)?void 0:$;var j=eA(this.ctx.transform.rotation),q=this.ctx.transform.scaleX;T.call(this,{text:U,x:P,y:K,scale:q,renderingMode:"stroke",angle:j,align:this.textAlign,maxWidth:$})}},d.prototype.measureText=function(U){if(typeof U!="string")throw Ke.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var P=this.pdf,K=this.pdf.internal.scaleFactor,$=P.internal.getFontSize(),j=P.getStringUnitWidth(U)*$/P.internal.scaleFactor,q=function(rA){var oA=(rA=rA||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return oA}}),this};return new q({width:j*=Math.round(96*K/72*1e4)/1e4})},d.prototype.scale=function(U,P){if(isNaN(U)||isNaN(P))throw Ke.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var K=new o(U,0,0,P,0,0);this.ctx.transform=this.ctx.transform.multiply(K)},d.prototype.rotate=function(U){if(isNaN(U))throw Ke.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var P=new o(Math.cos(U),Math.sin(U),-Math.sin(U),Math.cos(U),0,0);this.ctx.transform=this.ctx.transform.multiply(P)},d.prototype.translate=function(U,P){if(isNaN(U)||isNaN(P))throw Ke.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var K=new o(1,0,0,1,U,P);this.ctx.transform=this.ctx.transform.multiply(K)},d.prototype.transform=function(U,P,K,$,j,q){if(isNaN(U)||isNaN(P)||isNaN(K)||isNaN($)||isNaN(j)||isNaN(q))throw Ke.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var rA=new o(U,P,K,$,j,q);this.ctx.transform=this.ctx.transform.multiply(rA)},d.prototype.setTransform=function(U,P,K,$,j,q){U=isNaN(U)?1:U,P=isNaN(P)?0:P,K=isNaN(K)?0:K,$=isNaN($)?1:$,j=isNaN(j)?0:j,q=isNaN(q)?0:q,this.ctx.transform=new o(U,P,K,$,j,q)};var B=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};d.prototype.drawImage=function(U,P,K,$,j,q,rA,oA,wA){var FA=this.pdf.getImageProperties(U),UA=1,LA=1,MA=1,gA=1;$!==void 0&&oA!==void 0&&(MA=oA/$,gA=wA/j,UA=FA.width/$*oA/$,LA=FA.height/j*wA/j),q===void 0&&(q=P,rA=K,P=0,K=0),$!==void 0&&oA===void 0&&(oA=$,wA=j),$===void 0&&oA===void 0&&(oA=FA.width,wA=FA.height);for(var W,ZA=this.ctx.transform.decompose(),RA=eA(ZA.rotate.shx),xA=new o,NA=(xA=(xA=(xA=xA.multiply(ZA.translate)).multiply(ZA.skew)).multiply(ZA.scale)).applyToRectangle(new s(q-P*MA,rA-K*gA,$*UA,j*LA)),OA=C.call(this,NA),TA=[],zA=0;zA<OA.length;zA+=1)TA.indexOf(OA[zA])===-1&&TA.push(OA[zA]);if(L(TA),this.autoPaging)for(var WA=TA[0],ee=TA[TA.length-1],ie=WA;ie<ee+1;ie++){this.pdf.setPage(ie);var oe=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],pe=ie===1?this.posY+this.margin[0]:this.margin[0],XA=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],se=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],HA=ie===1?0:XA+(ie-2)*se;if(this.ctx.clip_path.length!==0){var Me=this.path;W=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Q(W,this.posX+this.margin[3],-HA+pe+this.ctx.prevPageLastElemOffset),O.call(this,"fill",!0),this.path=Me}var me=JSON.parse(JSON.stringify(NA));me=Q([me],this.posX+this.margin[3],-HA+pe+this.ctx.prevPageLastElemOffset)[0];var at=(ie>WA||ie<ee)&&B.call(this);at&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],oe,se,null).clip().discardPath()),this.pdf.addImage(U,"JPEG",me.x,me.y,me.w,me.h,null,null,RA),at&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(U,"JPEG",NA.x,NA.y,NA.w,NA.h,null,null,RA)};var C=function(U,P,K){var $=[];P=P||this.pdf.internal.pageSize.width,K=K||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var j=this.posY+this.ctx.prevPageLastElemOffset;switch(U.type){default:case"mt":case"lt":$.push(Math.floor((U.y+j)/K)+1);break;case"arc":$.push(Math.floor((U.y+j-U.radius)/K)+1),$.push(Math.floor((U.y+j+U.radius)/K)+1);break;case"qct":var q=cA(this.ctx.lastPoint.x,this.ctx.lastPoint.y,U.x1,U.y1,U.x,U.y);$.push(Math.floor((q.y+j)/K)+1),$.push(Math.floor((q.y+q.h+j)/K)+1);break;case"bct":var rA=fA(this.ctx.lastPoint.x,this.ctx.lastPoint.y,U.x1,U.y1,U.x2,U.y2,U.x,U.y);$.push(Math.floor((rA.y+j)/K)+1),$.push(Math.floor((rA.y+rA.h+j)/K)+1);break;case"rect":$.push(Math.floor((U.y+j)/K)+1),$.push(Math.floor((U.y+U.h+j)/K)+1)}for(var oA=0;oA<$.length;oA+=1)for(;this.pdf.internal.getNumberOfPages()<$[oA];)b.call(this);return $},b=function(){var U=this.fillStyle,P=this.strokeStyle,K=this.font,$=this.lineCap,j=this.lineWidth,q=this.lineJoin;this.pdf.addPage(),this.fillStyle=U,this.strokeStyle=P,this.font=K,this.lineCap=$,this.lineWidth=j,this.lineJoin=q},Q=function(U,P,K){for(var $=0;$<U.length;$++)switch(U[$].type){case"bct":U[$].x2+=P,U[$].y2+=K;case"qct":U[$].x1+=P,U[$].y1+=K;case"mt":case"lt":case"arc":default:U[$].x+=P,U[$].y+=K}return U},L=function(U){return U.sort(function(P,K){return P-K})},D=function(U,P){for(var K,$,j=this.fillStyle,q=this.strokeStyle,rA=this.lineCap,oA=this.lineWidth,wA=Math.abs(oA*this.ctx.transform.scaleX),FA=this.lineJoin,UA=JSON.parse(JSON.stringify(this.path)),LA=JSON.parse(JSON.stringify(this.path)),MA=[],gA=0;gA<LA.length;gA++)if(LA[gA].x!==void 0)for(var W=C.call(this,LA[gA]),ZA=0;ZA<W.length;ZA+=1)MA.indexOf(W[ZA])===-1&&MA.push(W[ZA]);for(var RA=0;RA<MA.length;RA++)for(;this.pdf.internal.getNumberOfPages()<MA[RA];)b.call(this);if(L(MA),this.autoPaging)for(var xA=MA[0],NA=MA[MA.length-1],OA=xA;OA<NA+1;OA++){this.pdf.setPage(OA),this.fillStyle=j,this.strokeStyle=q,this.lineCap=rA,this.lineWidth=wA,this.lineJoin=FA;var TA=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],zA=OA===1?this.posY+this.margin[0]:this.margin[0],WA=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],ee=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],ie=OA===1?0:WA+(OA-2)*ee;if(this.ctx.clip_path.length!==0){var oe=this.path;K=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Q(K,this.posX+this.margin[3],-ie+zA+this.ctx.prevPageLastElemOffset),O.call(this,U,!0),this.path=oe}if($=JSON.parse(JSON.stringify(UA)),this.path=Q($,this.posX+this.margin[3],-ie+zA+this.ctx.prevPageLastElemOffset),P===!1||OA===0){var pe=(OA>xA||OA<NA)&&B.call(this);pe&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],TA,ee,null).clip().discardPath()),O.call(this,U,P),pe&&this.pdf.restoreGraphicsState()}this.lineWidth=oA}else this.lineWidth=wA,O.call(this,U,P),this.lineWidth=oA;this.path=UA},O=function(U,P){if((U!=="stroke"||P||!m.call(this))&&(U==="stroke"||P||!h.call(this))){for(var K,$,j=[],q=this.path,rA=0;rA<q.length;rA++){var oA=q[rA];switch(oA.type){case"begin":j.push({begin:!0});break;case"close":j.push({close:!0});break;case"mt":j.push({start:oA,deltas:[],abs:[]});break;case"lt":var wA=j.length;if(q[rA-1]&&!isNaN(q[rA-1].x)&&(K=[oA.x-q[rA-1].x,oA.y-q[rA-1].y],wA>0)){for(;wA>=0;wA--)if(j[wA-1].close!==!0&&j[wA-1].begin!==!0){j[wA-1].deltas.push(K),j[wA-1].abs.push(oA);break}}break;case"bct":K=[oA.x1-q[rA-1].x,oA.y1-q[rA-1].y,oA.x2-q[rA-1].x,oA.y2-q[rA-1].y,oA.x-q[rA-1].x,oA.y-q[rA-1].y],j[j.length-1].deltas.push(K);break;case"qct":var FA=q[rA-1].x+2/3*(oA.x1-q[rA-1].x),UA=q[rA-1].y+2/3*(oA.y1-q[rA-1].y),LA=oA.x+2/3*(oA.x1-oA.x),MA=oA.y+2/3*(oA.y1-oA.y),gA=oA.x,W=oA.y;K=[FA-q[rA-1].x,UA-q[rA-1].y,LA-q[rA-1].x,MA-q[rA-1].y,gA-q[rA-1].x,W-q[rA-1].y],j[j.length-1].deltas.push(K);break;case"arc":j.push({deltas:[],abs:[],arc:!0}),Array.isArray(j[j.length-1].abs)&&j[j.length-1].abs.push(oA)}}$=P?null:U==="stroke"?"stroke":"fill";for(var ZA=!1,RA=0;RA<j.length;RA++)if(j[RA].arc)for(var xA=j[RA].abs,NA=0;NA<xA.length;NA++){var OA=xA[NA];OA.type==="arc"?_.call(this,OA.x,OA.y,OA.radius,OA.startAngle,OA.endAngle,OA.counterclockwise,void 0,P,!ZA):M.call(this,OA.x,OA.y),ZA=!0}else if(j[RA].close===!0)this.pdf.internal.out("h"),ZA=!1;else if(j[RA].begin!==!0){var TA=j[RA].start.x,zA=j[RA].start.y;V.call(this,j[RA].deltas,TA,zA),ZA=!0}$&&X.call(this,$),P&&nA.call(this)}},z=function(U){var P=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,K=P*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return U-K;case"top":return U+P-K;case"hanging":return U+P-2*K;case"middle":return U+P/2-K;case"ideographic":return U;case"alphabetic":default:return U}},R=function(U){return U+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};d.prototype.createLinearGradient=function(){var U=function(){};return U.colorStops=[],U.addColorStop=function(P,K){this.colorStops.push([P,K])},U.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},U.isCanvasGradient=!0,U},d.prototype.createPattern=function(){return this.createLinearGradient()},d.prototype.createRadialGradient=function(){return this.createLinearGradient()};var _=function(U,P,K,$,j,q,rA,oA,wA){for(var FA=iA.call(this,K,$,j,q),UA=0;UA<FA.length;UA++){var LA=FA[UA];UA===0&&(wA?N.call(this,LA.x1+U,LA.y1+P):M.call(this,LA.x1+U,LA.y1+P)),sA.call(this,U,P,LA.x2,LA.y2,LA.x3,LA.y3,LA.x4,LA.y4)}oA?nA.call(this):X.call(this,rA)},X=function(U){switch(U){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},nA=function(){this.pdf.clip(),this.pdf.discardPath()},N=function(U,P){this.pdf.internal.out(t(U)+" "+r(P)+" m")},T=function(U){var P;switch(U.align){case"right":case"end":P="right";break;case"center":P="center";break;case"left":case"start":default:P="left"}var K=this.pdf.getTextDimensions(U.text),$=z.call(this,U.y),j=R.call(this,$)-K.h,q=this.ctx.transform.applyToPoint(new a(U.x,$)),rA=this.ctx.transform.decompose(),oA=new o;oA=(oA=(oA=oA.multiply(rA.translate)).multiply(rA.skew)).multiply(rA.scale);for(var wA,FA,UA,LA=this.ctx.transform.applyToRectangle(new s(U.x,$,K.w,K.h)),MA=oA.applyToRectangle(new s(U.x,j,K.w,K.h)),gA=C.call(this,MA),W=[],ZA=0;ZA<gA.length;ZA+=1)W.indexOf(gA[ZA])===-1&&W.push(gA[ZA]);if(L(W),this.autoPaging)for(var RA=W[0],xA=W[W.length-1],NA=RA;NA<xA+1;NA++){this.pdf.setPage(NA);var OA=NA===1?this.posY+this.margin[0]:this.margin[0],TA=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],zA=this.pdf.internal.pageSize.height-this.margin[2],WA=zA-this.margin[0],ee=this.pdf.internal.pageSize.width-this.margin[1],ie=ee-this.margin[3],oe=NA===1?0:TA+(NA-2)*WA;if(this.ctx.clip_path.length!==0){var pe=this.path;wA=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Q(wA,this.posX+this.margin[3],-1*oe+OA),O.call(this,"fill",!0),this.path=pe}var XA=Q([JSON.parse(JSON.stringify(MA))],this.posX+this.margin[3],-oe+OA+this.ctx.prevPageLastElemOffset)[0];U.scale>=.01&&(FA=this.pdf.internal.getFontSize(),this.pdf.setFontSize(FA*U.scale),UA=this.lineWidth,this.lineWidth=UA*U.scale);var se=this.autoPaging!=="text";if(se||XA.y+XA.h<=zA){if(se||XA.y>=OA&&XA.x<=ee){var HA=se?U.text:this.pdf.splitTextToSize(U.text,U.maxWidth||ee-XA.x)[0],Me=Q([JSON.parse(JSON.stringify(LA))],this.posX+this.margin[3],-oe+OA+this.ctx.prevPageLastElemOffset)[0],me=se&&(NA>RA||NA<xA)&&B.call(this);me&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],ie,WA,null).clip().discardPath()),this.pdf.text(HA,Me.x,Me.y,{angle:U.angle,align:P,renderingMode:U.renderingMode}),me&&this.pdf.restoreGraphicsState()}}else XA.y<zA&&(this.ctx.prevPageLastElemOffset+=zA-XA.y);U.scale>=.01&&(this.pdf.setFontSize(FA),this.lineWidth=UA)}else U.scale>=.01&&(FA=this.pdf.internal.getFontSize(),this.pdf.setFontSize(FA*U.scale),UA=this.lineWidth,this.lineWidth=UA*U.scale),this.pdf.text(U.text,q.x+this.posX,q.y+this.posY,{angle:U.angle,align:P,renderingMode:U.renderingMode,maxWidth:U.maxWidth}),U.scale>=.01&&(this.pdf.setFontSize(FA),this.lineWidth=UA)},M=function(U,P,K,$){K=K||0,$=$||0,this.pdf.internal.out(t(U+K)+" "+r(P+$)+" l")},V=function(U,P,K){return this.pdf.lines(U,P,K,null,null)},sA=function(U,P,K,$,j,q,rA,oA){this.pdf.internal.out([A(n(K+U)),A(i($+P)),A(n(j+U)),A(i(q+P)),A(n(rA+U)),A(i(oA+P)),"c"].join(" "))},iA=function(U,P,K,$){for(var j=2*Math.PI,q=Math.PI/2;P>K;)P-=j;var rA=Math.abs(K-P);rA<j&&$&&(rA=j-rA);for(var oA=[],wA=$?-1:1,FA=P;rA>1e-5;){var UA=FA+wA*Math.min(rA,q);oA.push(lA.call(this,U,FA,UA)),rA-=Math.abs(UA-FA),FA=UA}return oA},lA=function(U,P,K){var $=(K-P)/2,j=U*Math.cos($),q=U*Math.sin($),rA=j,oA=-q,wA=rA*rA+oA*oA,FA=wA+rA*j+oA*q,UA=4/3*(Math.sqrt(2*wA*FA)-FA)/(rA*q-oA*j),LA=rA-UA*oA,MA=oA+UA*rA,gA=LA,W=-MA,ZA=$+P,RA=Math.cos(ZA),xA=Math.sin(ZA);return{x1:U*Math.cos(P),y1:U*Math.sin(P),x2:LA*RA-MA*xA,y2:LA*xA+MA*RA,x3:gA*RA-W*xA,y3:gA*xA+W*RA,x4:U*Math.cos(K),y4:U*Math.sin(K)}},eA=function(U){return 180*U/Math.PI},cA=function(U,P,K,$,j,q){var rA=U+.5*(K-U),oA=P+.5*($-P),wA=j+.5*(K-j),FA=q+.5*($-q),UA=Math.min(U,j,rA,wA),LA=Math.max(U,j,rA,wA),MA=Math.min(P,q,oA,FA),gA=Math.max(P,q,oA,FA);return new s(UA,MA,LA-UA,gA-MA)},fA=function(U,P,K,$,j,q,rA,oA){var wA,FA,UA,LA,MA,gA,W,ZA,RA,xA,NA,OA,TA,zA,WA=K-U,ee=$-P,ie=j-K,oe=q-$,pe=rA-j,XA=oA-q;for(FA=0;FA<41;FA++)RA=(W=(UA=U+(wA=FA/40)*WA)+wA*((MA=K+wA*ie)-UA))+wA*(MA+wA*(j+wA*pe-MA)-W),xA=(ZA=(LA=P+wA*ee)+wA*((gA=$+wA*oe)-LA))+wA*(gA+wA*(q+wA*XA-gA)-ZA),FA==0?(NA=RA,OA=xA,TA=RA,zA=xA):(NA=Math.min(NA,RA),OA=Math.min(OA,xA),TA=Math.max(TA,RA),zA=Math.max(zA,xA));return new s(Math.round(NA),Math.round(OA),Math.round(TA-NA),Math.round(zA-OA))},BA=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var U,P,K=(U=this.ctx.lineDash,P=this.ctx.lineDashOffset,JSON.stringify({lineDash:U,lineDashOffset:P}));this.prevLineDash!==K&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=K)}}})(ne.API),function(e){var A=function(i){var a,s,o,c,u,d,p,h,m,B;for(s=[],o=0,c=(i+=a="\0\0\0\0".slice(i.length%4||4)).length;c>o;o+=4)(u=(i.charCodeAt(o)<<24)+(i.charCodeAt(o+1)<<16)+(i.charCodeAt(o+2)<<8)+i.charCodeAt(o+3))!==0?(d=(u=((u=((u=((u=(u-(B=u%85))/85)-(m=u%85))/85)-(h=u%85))/85)-(p=u%85))/85)%85,s.push(d+33,p+33,h+33,m+33,B+33)):s.push(122);return function(C,b){for(var Q=b;Q>0;Q--)C.pop()}(s,a.length),String.fromCharCode.apply(String,s)+"~>"},t=function(i){var a,s,o,c,u,d=String,p="length",h=255,m="charCodeAt",B="slice",C="replace";for(i[B](-2),i=i[B](0,-2)[C](/\s/g,"")[C]("z","!!!!!"),o=[],c=0,u=(i+=a="uuuuu"[B](i[p]%5||5))[p];u>c;c+=5)s=52200625*(i[m](c)-33)+614125*(i[m](c+1)-33)+7225*(i[m](c+2)-33)+85*(i[m](c+3)-33)+(i[m](c+4)-33),o.push(h&s>>24,h&s>>16,h&s>>8,h&s);return function(b,Q){for(var L=Q;L>0;L--)b.pop()}(o,a[p]),d.fromCharCode.apply(d,o)},r=function(i){var a=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((i=i.replace(/\s/g,"")).indexOf(">")!==-1&&(i=i.substr(0,i.indexOf(">"))),i.length%2&&(i+="0"),a.test(i)===!1)return"";for(var s="",o=0;o<i.length;o+=2)s+=String.fromCharCode("0x"+(i[o]+i[o+1]));return s},n=function(i){for(var a=new Uint8Array(i.length),s=i.length;s--;)a[s]=i.charCodeAt(s);return i=(a=Sh(a)).reduce(function(o,c){return o+String.fromCharCode(c)},"")};e.processDataByFilters=function(i,a){var s=0,o=i||"",c=[];for(typeof(a=a||[])=="string"&&(a=[a]),s=0;s<a.length;s+=1)switch(a[s]){case"ASCII85Decode":case"/ASCII85Decode":o=t(o),c.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":o=A(o),c.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":o=r(o),c.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":o=o.split("").map(function(u){return("0"+u.charCodeAt().toString(16)).slice(-2)}).join("")+">",c.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":o=n(o),c.push("/FlateDecode");break;default:throw new Error('The filter: "'+a[s]+'" is not implemented')}return{data:o,reverseChain:c.reverse().join(" ")}}}(ne.API),function(e){e.loadFile=function(A,t,r){return function(n,i,a){i=i!==!1,a=typeof a=="function"?a:function(){};var s=void 0;try{s=function(o,c,u){var d=new XMLHttpRequest,p=0,h=function(m){var B=m.length,C=[],b=String.fromCharCode;for(p=0;p<B;p+=1)C.push(b(255&m.charCodeAt(p)));return C.join("")};if(d.open("GET",o,!c),d.overrideMimeType("text/plain; charset=x-user-defined"),c===!1&&(d.onload=function(){d.status===200?u(h(this.responseText)):u(void 0)}),d.send(null),c&&d.status===200)return h(d.responseText)}(n,i,a)}catch{}return s}(A,t,r)},e.loadImageFile=e.loadFile}(ne.API),function(e){function A(){return(ae.html2canvas?Promise.resolve(ae.html2canvas):Promise.resolve().then(()=>pQ)).catch(function(a){return Promise.reject(new Error("Could not load html2canvas: "+a))}).then(function(a){return a.default?a.default:a})}function t(){return(ae.DOMPurify?Promise.resolve(ae.DOMPurify):Promise.resolve().then(()=>WU)).catch(function(a){return Promise.reject(new Error("Could not load dompurify: "+a))}).then(function(a){return a.default?a.default:a})}var r=function(a){var s=Le(a);return s==="undefined"?"undefined":s==="string"||a instanceof String?"string":s==="number"||a instanceof Number?"number":s==="function"||a instanceof Function?"function":a&&a.constructor===Array?"array":a&&a.nodeType===1?"element":s==="object"?"object":"unknown"},n=function(a,s){var o=document.createElement(a);for(var c in s.className&&(o.className=s.className),s.innerHTML&&s.dompurify&&(o.innerHTML=s.dompurify.sanitize(s.innerHTML)),s.style)o.style[c]=s.style[c];return o},i=function a(s){var o=Object.assign(a.convert(Promise.resolve()),JSON.parse(JSON.stringify(a.template))),c=a.convert(Promise.resolve(),o);return c=(c=c.setProgress(1,a,1,[a])).set(s)};(i.prototype=Object.create(Promise.prototype)).constructor=i,i.convert=function(a,s){return a.__proto__=s||i.prototype,a},i.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},i.prototype.from=function(a,s){return this.then(function(){switch(s=s||function(o){switch(r(o)){case"string":return"string";case"element":return o.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(a)){case"string":return this.then(t).then(function(o){return this.set({src:n("div",{innerHTML:a,dompurify:o})})});case"element":return this.set({src:a});case"canvas":return this.set({canvas:a});case"img":return this.set({img:a});default:return this.error("Unknown source type.")}})},i.prototype.to=function(a){switch(a){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},i.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var a={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},s=function o(c,u){for(var d=c.nodeType===3?document.createTextNode(c.nodeValue):c.cloneNode(!1),p=c.firstChild;p;p=p.nextSibling)u!==!0&&p.nodeType===1&&p.nodeName==="SCRIPT"||d.appendChild(o(p,u));return c.nodeType===1&&(c.nodeName==="CANVAS"?(d.width=c.width,d.height=c.height,d.getContext("2d").drawImage(c,0,0)):c.nodeName!=="TEXTAREA"&&c.nodeName!=="SELECT"||(d.value=c.value),d.addEventListener("load",function(){d.scrollTop=c.scrollTop,d.scrollLeft=c.scrollLeft},!0)),d}(this.prop.src,this.opt.html2canvas.javascriptEnabled);s.tagName==="BODY"&&(a.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=n("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=n("div",{className:"html2pdf__container",style:a}),this.prop.container.appendChild(s),this.prop.container.firstChild.appendChild(n("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},i.prototype.toCanvas=function(){var a=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(a).then(A).then(function(s){var o=Object.assign({},this.opt.html2canvas);return delete o.onrendered,s(this.prop.container,o)}).then(function(s){(this.opt.html2canvas.onrendered||function(){})(s),this.prop.canvas=s,document.body.removeChild(this.prop.overlay)})},i.prototype.toContext2d=function(){var a=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(a).then(A).then(function(s){var o=this.opt.jsPDF,c=this.opt.fontFaces,u=typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,d=Object.assign({async:!0,allowTaint:!0,scale:u,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete d.onrendered,o.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,o.context2d.posX=this.opt.x,o.context2d.posY=this.opt.y,o.context2d.margin=this.opt.margin,o.context2d.fontFaces=c,c)for(var p=0;p<c.length;++p){var h=c[p],m=h.src.find(function(B){return B.format==="truetype"});m&&o.addFont(m.url,h.ref.name,h.ref.style)}return d.windowHeight=d.windowHeight||0,d.windowHeight=d.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):d.windowHeight,o.context2d.save(!0),s(this.prop.container,d)}).then(function(s){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(s),this.prop.canvas=s,document.body.removeChild(this.prop.overlay)})},i.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var a=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=a})},i.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},i.prototype.output=function(a,s,o){return(o=o||"pdf").toLowerCase()==="img"||o.toLowerCase()==="image"?this.outputImg(a,s):this.outputPdf(a,s)},i.prototype.outputPdf=function(a,s){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(a,s)})},i.prototype.outputImg=function(a){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(a){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+a+'" is not supported.'}})},i.prototype.save=function(a){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(a?{filename:a}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},i.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},i.prototype.set=function(a){if(r(a)!=="object")return this;var s=Object.keys(a||{}).map(function(o){if(o in i.template.prop)return function(){this.prop[o]=a[o]};switch(o){case"margin":return this.setMargin.bind(this,a.margin);case"jsPDF":return function(){return this.opt.jsPDF=a.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,a.pageSize);default:return function(){this.opt[o]=a[o]}}},this);return this.then(function(){return this.thenList(s)})},i.prototype.get=function(a,s){return this.then(function(){var o=a in i.template.prop?this.prop[a]:this.opt[a];return s?s(o):o})},i.prototype.setMargin=function(a){return this.then(function(){switch(r(a)){case"number":a=[a,a,a,a];case"array":if(a.length===2&&(a=[a[0],a[1],a[0],a[1]]),a.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=a}).then(this.setPageSize)},i.prototype.setPageSize=function(a){function s(o,c){return Math.floor(o*c/72*96)}return this.then(function(){(a=a||ne.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(a.inner={width:a.width-this.opt.margin[1]-this.opt.margin[3],height:a.height-this.opt.margin[0]-this.opt.margin[2]},a.inner.px={width:s(a.inner.width,a.k),height:s(a.inner.height,a.k)},a.inner.ratio=a.inner.height/a.inner.width),this.prop.pageSize=a})},i.prototype.setProgress=function(a,s,o,c){return a!=null&&(this.progress.val=a),s!=null&&(this.progress.state=s),o!=null&&(this.progress.n=o),c!=null&&(this.progress.stack=c),this.progress.ratio=this.progress.val/this.progress.state,this},i.prototype.updateProgress=function(a,s,o,c){return this.setProgress(a?this.progress.val+a:null,s||null,o?this.progress.n+o:null,c?this.progress.stack.concat(c):null)},i.prototype.then=function(a,s){var o=this;return this.thenCore(a,s,function(c,u){return o.updateProgress(null,null,1,[c]),Promise.prototype.then.call(this,function(d){return o.updateProgress(null,c),d}).then(c,u).then(function(d){return o.updateProgress(1),d})})},i.prototype.thenCore=function(a,s,o){o=o||Promise.prototype.then,a&&(a=a.bind(this)),s&&(s=s.bind(this));var c=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?this:i.convert(Object.assign({},this),Promise.prototype),u=o.call(c,a,s);return i.convert(u,this.__proto__)},i.prototype.thenExternal=function(a,s){return Promise.prototype.then.call(this,a,s)},i.prototype.thenList=function(a){var s=this;return a.forEach(function(o){s=s.thenCore(o)}),s},i.prototype.catch=function(a){a&&(a=a.bind(this));var s=Promise.prototype.catch.call(this,a);return i.convert(s,this)},i.prototype.catchExternal=function(a){return Promise.prototype.catch.call(this,a)},i.prototype.error=function(a){return this.then(function(){throw new Error(a)})},i.prototype.using=i.prototype.set,i.prototype.saveAs=i.prototype.save,i.prototype.export=i.prototype.output,i.prototype.run=i.prototype.then,ne.getPageSize=function(a,s,o){if(Le(a)==="object"){var c=a;a=c.orientation,s=c.unit||s,o=c.format||o}s=s||"mm",o=o||"a4",a=(""+(a||"P")).toLowerCase();var u,d=(""+o).toLowerCase(),p={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(s){case"pt":u=1;break;case"mm":u=72/25.4;break;case"cm":u=72/2.54;break;case"in":u=72;break;case"px":u=.75;break;case"pc":case"em":u=12;break;case"ex":u=6;break;default:throw"Invalid unit: "+s}var h,m=0,B=0;if(p.hasOwnProperty(d))m=p[d][1]/u,B=p[d][0]/u;else try{m=o[1],B=o[0]}catch{throw new Error("Invalid format: "+o)}if(a==="p"||a==="portrait")a="p",B>m&&(h=B,B=m,m=h);else{if(a!=="l"&&a!=="landscape")throw"Invalid orientation: "+a;a="l",m>B&&(h=B,B=m,m=h)}return{width:B,height:m,unit:s,k:u,orientation:a}},e.html=function(a,s){(s=s||{}).callback=s.callback||function(){},s.html2canvas=s.html2canvas||{},s.html2canvas.canvas=s.html2canvas.canvas||this.canvas,s.jsPDF=s.jsPDF||this,s.fontFaces=s.fontFaces?s.fontFaces.map(Mh):null;var o=new i(s);return s.worker?o:o.from(a).doCallback()}}(ne.API),ne.API.addJS=function(e){return hv=e,this.internal.events.subscribe("postPutResources",function(){dc=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(dc+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),fv=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+hv+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){dc!==void 0&&fv!==void 0&&this.internal.out("/Names <</JavaScript "+dc+" 0 R>>")}),this},function(e){var A;e.events.push(["postPutResources",function(){var t=this,r=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var n=t.outline.render().split(/\r\n/),i=0;i<n.length;i++){var a=n[i],s=r.exec(a);if(s!=null){var o=s[1];t.internal.newObjectDeferredBegin(o,!1)}t.internal.write(a)}if(this.outline.createNamedDestinations){var c=this.internal.pages.length,u=[];for(i=0;i<c;i++){var d=t.internal.newObject();u.push(d);var p=t.internal.getPageInfo(i+1);t.internal.write("<< /D["+p.objId+" 0 R /XYZ null null null]>> endobj")}var h=t.internal.newObject();for(t.internal.write("<< /Names [ "),i=0;i<u.length;i++)t.internal.write("(page_"+(i+1)+")"+u[i]+" 0 R");t.internal.write(" ] >>","endobj"),A=t.internal.newObject(),t.internal.write("<< /Dests "+h+" 0 R"),t.internal.write(">>","endobj")}}]),e.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+A+" 0 R"))}]),e.events.push(["initialized",function(){var t=this;t.outline={createNamedDestinations:!1,root:{children:[]}},t.outline.add=function(r,n,i){var a={title:n,options:i,children:[]};return r==null&&(r=this.root),r.children.push(a),a},t.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=t,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},t.outline.genIds_r=function(r){r.id=t.internal.newObjectDeferred();for(var n=0;n<r.children.length;n++)this.genIds_r(r.children[n])},t.outline.renderRoot=function(r){this.objStart(r),this.line("/Type /Outlines"),r.children.length>0&&(this.line("/First "+this.makeRef(r.children[0])),this.line("/Last "+this.makeRef(r.children[r.children.length-1]))),this.line("/Count "+this.count_r({count:0},r)),this.objEnd()},t.outline.renderItems=function(r){for(var n=this.ctx.pdf.internal.getVerticalCoordinateString,i=0;i<r.children.length;i++){var a=r.children[i];this.objStart(a),this.line("/Title "+this.makeString(a.title)),this.line("/Parent "+this.makeRef(r)),i>0&&this.line("/Prev "+this.makeRef(r.children[i-1])),i<r.children.length-1&&this.line("/Next "+this.makeRef(r.children[i+1])),a.children.length>0&&(this.line("/First "+this.makeRef(a.children[0])),this.line("/Last "+this.makeRef(a.children[a.children.length-1])));var s=this.count=this.count_r({count:0},a);if(s>0&&this.line("/Count "+s),a.options&&a.options.pageNumber){var o=t.internal.getPageInfo(a.options.pageNumber);this.line("/Dest ["+o.objId+" 0 R /XYZ 0 "+n(0)+" 0]")}this.objEnd()}for(var c=0;c<r.children.length;c++)this.renderItems(r.children[c])},t.outline.line=function(r){this.ctx.val+=r+`\r
|
|
362
|
+
`},t.outline.makeRef=function(r){return r.id+" 0 R"},t.outline.makeString=function(r){return"("+t.internal.pdfEscape(r)+")"},t.outline.objStart=function(r){this.ctx.val+=`\r
|
|
363
|
+
`+r.id+` 0 obj\r
|
|
364
|
+
<<\r
|
|
365
|
+
`},t.outline.objEnd=function(){this.ctx.val+=`>> \r
|
|
366
|
+
endobj\r
|
|
367
|
+
`},t.outline.count_r=function(r,n){for(var i=0;i<n.children.length;i++)r.count++,this.count_r(r,n.children[i]);return r.count}}])}(ne.API),function(e){var A=[192,193,194,195,196,197,198,199];e.processJPEG=function(t,r,n,i,a,s){var o,c=this.decode.DCT_DECODE,u=null;if(typeof t=="string"||this.__addimage__.isArrayBuffer(t)||this.__addimage__.isArrayBufferView(t)){switch(t=a||t,t=this.__addimage__.isArrayBuffer(t)?new Uint8Array(t):t,(o=function(d){for(var p,h=256*d.charCodeAt(4)+d.charCodeAt(5),m=d.length,B={width:0,height:0,numcomponents:1},C=4;C<m;C+=2){if(C+=h,A.indexOf(d.charCodeAt(C+1))!==-1){p=256*d.charCodeAt(C+5)+d.charCodeAt(C+6),B={width:256*d.charCodeAt(C+7)+d.charCodeAt(C+8),height:p,numcomponents:d.charCodeAt(C+9)};break}h=256*d.charCodeAt(C+2)+d.charCodeAt(C+3)}return B}(t=this.__addimage__.isArrayBufferView(t)?this.__addimage__.arrayBufferToBinaryString(t):t)).numcomponents){case 1:s=this.color_spaces.DEVICE_GRAY;break;case 4:s=this.color_spaces.DEVICE_CMYK;break;case 3:s=this.color_spaces.DEVICE_RGB}u={data:t,width:o.width,height:o.height,colorSpace:s,bitsPerComponent:8,filter:c,index:r,alias:n}}return u}}(ne.API);var $a,gc,dv,gv,pv,YQ=function(){var e,A,t;function r(i){var a,s,o,c,u,d,p,h,m,B,C,b,Q,L;for(this.data=i,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},d=null;;){switch(a=this.readUInt32(),m=(function(){var D,O;for(O=[],D=0;D<4;++D)O.push(String.fromCharCode(this.data[this.pos++]));return O}).call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(a);break;case"fcTL":d&&this.animation.frames.push(d),this.pos+=4,d={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},u=this.readUInt16(),c=this.readUInt16()||100,d.delay=1e3*u/c,d.disposeOp=this.data[this.pos++],d.blendOp=this.data[this.pos++],d.data=[];break;case"IDAT":case"fdAT":for(m==="fdAT"&&(this.pos+=4,a-=4),i=(d!=null?d.data:void 0)||this.imgData,b=0;0<=a?b<a:b>a;0<=a?++b:--b)i.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(o=this.palette.length/3,this.transparency.indexed=this.read(a),this.transparency.indexed.length>o)throw new Error("More transparent colors than palette size");if((B=o-this.transparency.indexed.length)>0)for(Q=0;0<=B?Q<B:Q>B;0<=B?++Q:--Q)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(a)[0];break;case 2:this.transparency.rgb=this.read(a)}break;case"tEXt":p=(C=this.read(a)).indexOf(0),h=String.fromCharCode.apply(String,C.slice(0,p)),this.text[h]=String.fromCharCode.apply(String,C.slice(p+1));break;case"IEND":return d&&this.animation.frames.push(d),this.colors=(function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}).call(this),this.hasAlphaChannel=(L=this.colorType)===4||L===6,s=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*s,this.colorSpace=(function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}).call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=a}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}r.prototype.read=function(i){var a,s;for(s=[],a=0;0<=i?a<i:a>i;0<=i?++a:--a)s.push(this.data[this.pos++]);return s},r.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},r.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},r.prototype.decodePixels=function(i){var a=this.pixelBitlength/8,s=new Uint8Array(this.width*this.height*a),o=0,c=this;if(i==null&&(i=this.imgData),i.length===0)return new Uint8Array(0);function u(d,p,h,m){var B,C,b,Q,L,D,O,z,R,_,X,nA,N,T,M,V,sA,iA,lA,eA,cA,fA=Math.ceil((c.width-d)/h),BA=Math.ceil((c.height-p)/m),U=c.width==fA&&c.height==BA;for(T=a*fA,nA=U?s:new Uint8Array(T*BA),D=i.length,N=0,C=0;N<BA&&o<D;){switch(i[o++]){case 0:for(Q=sA=0;sA<T;Q=sA+=1)nA[C++]=i[o++];break;case 1:for(Q=iA=0;iA<T;Q=iA+=1)B=i[o++],L=Q<a?0:nA[C-a],nA[C++]=(B+L)%256;break;case 2:for(Q=lA=0;lA<T;Q=lA+=1)B=i[o++],b=(Q-Q%a)/a,M=N&&nA[(N-1)*T+b*a+Q%a],nA[C++]=(M+B)%256;break;case 3:for(Q=eA=0;eA<T;Q=eA+=1)B=i[o++],b=(Q-Q%a)/a,L=Q<a?0:nA[C-a],M=N&&nA[(N-1)*T+b*a+Q%a],nA[C++]=(B+Math.floor((L+M)/2))%256;break;case 4:for(Q=cA=0;cA<T;Q=cA+=1)B=i[o++],b=(Q-Q%a)/a,L=Q<a?0:nA[C-a],N===0?M=V=0:(M=nA[(N-1)*T+b*a+Q%a],V=b&&nA[(N-1)*T+(b-1)*a+Q%a]),O=L+M-V,z=Math.abs(O-L),_=Math.abs(O-M),X=Math.abs(O-V),R=z<=_&&z<=X?L:_<=X?M:V,nA[C++]=(B+R)%256;break;default:throw new Error("Invalid filter algorithm: "+i[o-1])}if(!U){var P=((p+N*m)*c.width+d)*a,K=N*T;for(Q=0;Q<fA;Q+=1){for(var $=0;$<a;$+=1)s[P++]=nA[K++];P+=(h-1)*a}}N++}}return i=SQ(i),c.interlaceMethod==1?(u(0,0,8,8),u(4,0,8,8),u(0,4,4,8),u(2,0,4,4),u(0,2,2,4),u(1,0,2,2),u(0,1,1,2)):u(0,0,1,1),s},r.prototype.decodePalette=function(){var i,a,s,o,c,u,d,p,h;for(s=this.palette,u=this.transparency.indexed||[],c=new Uint8Array((u.length||0)+s.length),o=0,i=0,a=d=0,p=s.length;d<p;a=d+=3)c[o++]=s[a],c[o++]=s[a+1],c[o++]=s[a+2],c[o++]=(h=u[i++])!=null?h:255;return c},r.prototype.copyToImageData=function(i,a){var s,o,c,u,d,p,h,m,B,C,b;if(o=this.colors,B=null,s=this.hasAlphaChannel,this.palette.length&&(B=(b=this._decodedPalette)!=null?b:this._decodedPalette=this.decodePalette(),o=4,s=!0),m=(c=i.data||i).length,d=B||a,u=p=0,o===1)for(;u<m;)h=B?4*a[u/4]:p,C=d[h++],c[u++]=C,c[u++]=C,c[u++]=C,c[u++]=s?d[h++]:255,p=h;else for(;u<m;)h=B?4*a[u/4]:p,c[u++]=d[h++],c[u++]=d[h++],c[u++]=d[h++],c[u++]=s?d[h++]:255,p=h},r.prototype.decode=function(){var i;return i=new Uint8Array(this.width*this.height*4),this.copyToImageData(i,this.decodePixels()),i};var n=function(){if(Object.prototype.toString.call(ae)==="[object Window]"){try{A=ae.document.createElement("canvas"),t=A.getContext("2d")}catch{return!1}return!0}return!1};return n(),e=function(i){var a;if(n()===!0)return t.width=i.width,t.height=i.height,t.clearRect(0,0,i.width,i.height),t.putImageData(i,0,0),(a=new Image).src=A.toDataURL(),a;throw new Error("This method requires a Browser with Canvas-capability.")},r.prototype.decodeFrames=function(i){var a,s,o,c,u,d,p,h;if(this.animation){for(h=[],s=u=0,d=(p=this.animation.frames).length;u<d;s=++u)a=p[s],o=i.createImageData(a.width,a.height),c=this.decodePixels(new Uint8Array(a.data)),this.copyToImageData(o,c),a.imageData=o,h.push(a.image=e(o));return h}},r.prototype.renderFrame=function(i,a){var s,o,c;return s=(o=this.animation.frames)[a],c=o[a-1],a===0&&i.clearRect(0,0,this.width,this.height),(c!=null?c.disposeOp:void 0)===1?i.clearRect(c.xOffset,c.yOffset,c.width,c.height):(c!=null?c.disposeOp:void 0)===2&&i.putImageData(c.imageData,c.xOffset,c.yOffset),s.blendOp===0&&i.clearRect(s.xOffset,s.yOffset,s.width,s.height),i.drawImage(s.image,s.xOffset,s.yOffset)},r.prototype.animate=function(i){var a,s,o,c,u,d,p=this;return s=0,d=this.animation,c=d.numFrames,o=d.frames,u=d.numPlays,(a=function(){var h,m;if(h=s++%c,m=o[h],p.renderFrame(i,h),c>1&&s/c<u)return p.animation._timeout=setTimeout(a,m.delay)})()},r.prototype.stopAnimation=function(){var i;return clearTimeout((i=this.animation)!=null?i._timeout:void 0)},r.prototype.render=function(i){var a,s;return i._png&&i._png.stopAnimation(),i._png=this,i.width=this.width,i.height=this.height,a=i.getContext("2d"),this.animation?(this.decodeFrames(a),this.animate(a)):(s=a.createImageData(this.width,this.height),this.copyToImageData(s,this.decodePixels()),a.putImageData(s,0,0))},r}();/**
|
|
368
|
+
* @license
|
|
369
|
+
*
|
|
370
|
+
* Copyright (c) 2014 James Robb, https://github.com/jamesbrobb
|
|
371
|
+
*
|
|
372
|
+
* Permission is hereby granted, free of charge, to any person obtaining
|
|
373
|
+
* a copy of this software and associated documentation files (the
|
|
374
|
+
* "Software"), to deal in the Software without restriction, including
|
|
375
|
+
* without limitation the rights to use, copy, modify, merge, publish,
|
|
376
|
+
* distribute, sublicense, and/or sell copies of the Software, and to
|
|
377
|
+
* permit persons to whom the Software is furnished to do so, subject to
|
|
378
|
+
* the following conditions:
|
|
379
|
+
*
|
|
380
|
+
* The above copyright notice and this permission notice shall be
|
|
381
|
+
* included in all copies or substantial portions of the Software.
|
|
382
|
+
*
|
|
383
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
384
|
+
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
385
|
+
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
386
|
+
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
387
|
+
* LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
388
|
+
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
389
|
+
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
390
|
+
* ====================================================================
|
|
391
|
+
*//**
|
|
392
|
+
* @license
|
|
393
|
+
* (c) Dean McNamee <dean@gmail.com>, 2013.
|
|
394
|
+
*
|
|
395
|
+
* https://github.com/deanm/omggif
|
|
396
|
+
*
|
|
397
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
398
|
+
* of this software and associated documentation files (the "Software"), to
|
|
399
|
+
* deal in the Software without restriction, including without limitation the
|
|
400
|
+
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
401
|
+
* sell copies of the Software, and to permit persons to whom the Software is
|
|
402
|
+
* furnished to do so, subject to the following conditions:
|
|
403
|
+
*
|
|
404
|
+
* The above copyright notice and this permission notice shall be included in
|
|
405
|
+
* all copies or substantial portions of the Software.
|
|
406
|
+
*
|
|
407
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
408
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
409
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
410
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
411
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
412
|
+
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
|
413
|
+
* IN THE SOFTWARE.
|
|
414
|
+
*
|
|
415
|
+
* omggif is a JavaScript implementation of a GIF 89a encoder and decoder,
|
|
416
|
+
* including animation and compression. It does not rely on any specific
|
|
417
|
+
* underlying system, so should run in the browser, Node, or Plask.
|
|
418
|
+
*/function JQ(e){var A=0;if(e[A++]!==71||e[A++]!==73||e[A++]!==70||e[A++]!==56||(e[A++]+1&253)!=56||e[A++]!==97)throw new Error("Invalid GIF 87a/89a header.");var t=e[A++]|e[A++]<<8,r=e[A++]|e[A++]<<8,n=e[A++],i=n>>7,a=1<<(7&n)+1;e[A++],e[A++];var s=null,o=null;i&&(s=A,o=a,A+=3*a);var c=!0,u=[],d=0,p=null,h=0,m=null;for(this.width=t,this.height=r;c&&A<e.length;)switch(e[A++]){case 33:switch(e[A++]){case 255:if(e[A]!==11||e[A+1]==78&&e[A+2]==69&&e[A+3]==84&&e[A+4]==83&&e[A+5]==67&&e[A+6]==65&&e[A+7]==80&&e[A+8]==69&&e[A+9]==50&&e[A+10]==46&&e[A+11]==48&&e[A+12]==3&&e[A+13]==1&&e[A+16]==0)A+=14,m=e[A++]|e[A++]<<8,A++;else for(A+=12;;){if(!((N=e[A++])>=0))throw Error("Invalid block size");if(N===0)break;A+=N}break;case 249:if(e[A++]!==4||e[A+4]!==0)throw new Error("Invalid graphics extension block.");var B=e[A++];d=e[A++]|e[A++]<<8,p=e[A++],!(1&B)&&(p=null),h=B>>2&7,A++;break;case 254:for(;;){if(!((N=e[A++])>=0))throw Error("Invalid block size");if(N===0)break;A+=N}break;default:throw new Error("Unknown graphic control label: 0x"+e[A-1].toString(16))}break;case 44:var C=e[A++]|e[A++]<<8,b=e[A++]|e[A++]<<8,Q=e[A++]|e[A++]<<8,L=e[A++]|e[A++]<<8,D=e[A++],O=D>>6&1,z=1<<(7&D)+1,R=s,_=o,X=!1;D>>7&&(X=!0,R=A,_=z,A+=3*z);var nA=A;for(A++;;){var N;if(!((N=e[A++])>=0))throw Error("Invalid block size");if(N===0)break;A+=N}u.push({x:C,y:b,width:Q,height:L,has_local_palette:X,palette_offset:R,palette_size:_,data_offset:nA,data_length:A-nA,transparent_index:p,interlaced:!!O,delay:d,disposal:h});break;case 59:c=!1;break;default:throw new Error("Unknown gif block: 0x"+e[A-1].toString(16))}this.numFrames=function(){return u.length},this.loopCount=function(){return m},this.frameInfo=function(T){if(T<0||T>=u.length)throw new Error("Frame index out of range.");return u[T]},this.decodeAndBlitFrameBGRA=function(T,M){var V=this.frameInfo(T),sA=V.width*V.height,iA=new Uint8Array(sA);vv(e,V.data_offset,iA,sA);var lA=V.palette_offset,eA=V.transparent_index;eA===null&&(eA=256);var cA=V.width,fA=t-cA,BA=cA,U=4*(V.y*t+V.x),P=4*((V.y+V.height)*t+V.x),K=U,$=4*fA;V.interlaced===!0&&($+=4*t*7);for(var j=8,q=0,rA=iA.length;q<rA;++q){var oA=iA[q];if(BA===0&&(BA=cA,(K+=$)>=P&&($=4*fA+4*t*(j-1),K=U+(cA+fA)*(j<<1),j>>=1)),oA===eA)K+=4;else{var wA=e[lA+3*oA],FA=e[lA+3*oA+1],UA=e[lA+3*oA+2];M[K++]=UA,M[K++]=FA,M[K++]=wA,M[K++]=255}--BA}},this.decodeAndBlitFrameRGBA=function(T,M){var V=this.frameInfo(T),sA=V.width*V.height,iA=new Uint8Array(sA);vv(e,V.data_offset,iA,sA);var lA=V.palette_offset,eA=V.transparent_index;eA===null&&(eA=256);var cA=V.width,fA=t-cA,BA=cA,U=4*(V.y*t+V.x),P=4*((V.y+V.height)*t+V.x),K=U,$=4*fA;V.interlaced===!0&&($+=4*t*7);for(var j=8,q=0,rA=iA.length;q<rA;++q){var oA=iA[q];if(BA===0&&(BA=cA,(K+=$)>=P&&($=4*fA+4*t*(j-1),K=U+(cA+fA)*(j<<1),j>>=1)),oA===eA)K+=4;else{var wA=e[lA+3*oA],FA=e[lA+3*oA+1],UA=e[lA+3*oA+2];M[K++]=wA,M[K++]=FA,M[K++]=UA,M[K++]=255}--BA}}}function vv(e,A,t,r){for(var n=e[A++],i=1<<n,a=i+1,s=a+1,o=n+1,c=(1<<o)-1,u=0,d=0,p=0,h=e[A++],m=new Int32Array(4096),B=null;;){for(;u<16&&h!==0;)d|=e[A++]<<u,u+=8,h===1?h=e[A++]:--h;if(u<o)break;var C=d&c;if(d>>=o,u-=o,C!==i){if(C===a)break;for(var b=C<s?C:B,Q=0,L=b;L>i;)L=m[L]>>8,++Q;var D=L;if(p+Q+(b!==C?1:0)>r)return void Ke.log("Warning, gif stream longer than expected.");t[p++]=D;var O=p+=Q;for(b!==C&&(t[p++]=D),L=b;Q--;)L=m[L],t[--O]=255&L,L>>=8;B!==null&&s<4096&&(m[s++]=B<<8|D,s>=c+1&&o<12&&(++o,c=c<<1|1)),B=C}else s=a+1,c=(1<<(o=n+1))-1,B=null}return p!==r&&Ke.log("Warning, gif stream shorter than expected."),t}/**
|
|
419
|
+
* @license
|
|
420
|
+
Copyright (c) 2008, Adobe Systems Incorporated
|
|
421
|
+
All rights reserved.
|
|
422
|
+
|
|
423
|
+
Redistribution and use in source and binary forms, with or without
|
|
424
|
+
modification, are permitted provided that the following conditions are
|
|
425
|
+
met:
|
|
426
|
+
|
|
427
|
+
* Redistributions of source code must retain the above copyright notice,
|
|
428
|
+
this list of conditions and the following disclaimer.
|
|
429
|
+
|
|
430
|
+
* Redistributions in binary form must reproduce the above copyright
|
|
431
|
+
notice, this list of conditions and the following disclaimer in the
|
|
432
|
+
documentation and/or other materials provided with the distribution.
|
|
433
|
+
|
|
434
|
+
* Neither the name of Adobe Systems Incorporated nor the names of its
|
|
435
|
+
contributors may be used to endorse or promote products derived from
|
|
436
|
+
this software without specific prior written permission.
|
|
437
|
+
|
|
438
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
|
|
439
|
+
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
|
440
|
+
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
441
|
+
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
|
442
|
+
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
443
|
+
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
444
|
+
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
|
445
|
+
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
446
|
+
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
447
|
+
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
448
|
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
449
|
+
*/function Kh(e){var A,t,r,n,i,a=Math.floor,s=new Array(64),o=new Array(64),c=new Array(64),u=new Array(64),d=new Array(65535),p=new Array(65535),h=new Array(64),m=new Array(64),B=[],C=0,b=7,Q=new Array(64),L=new Array(64),D=new Array(64),O=new Array(256),z=new Array(2048),R=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],_=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],X=[0,1,2,3,4,5,6,7,8,9,10,11],nA=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],N=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],T=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],M=[0,1,2,3,4,5,6,7,8,9,10,11],V=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],sA=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function iA(U,P){for(var K=0,$=0,j=new Array,q=1;q<=16;q++){for(var rA=1;rA<=U[q];rA++)j[P[$]]=[],j[P[$]][0]=K,j[P[$]][1]=q,$++,K++;K*=2}return j}function lA(U){for(var P=U[0],K=U[1]-1;K>=0;)P&1<<K&&(C|=1<<b),K--,--b<0&&(C==255?(eA(255),eA(0)):eA(C),b=7,C=0)}function eA(U){B.push(U)}function cA(U){eA(U>>8&255),eA(255&U)}function fA(U,P,K,$,j){for(var q,rA=j[0],oA=j[240],wA=function(xA,NA){var OA,TA,zA,WA,ee,ie,oe,pe,XA,se,HA=0;for(XA=0;XA<8;++XA){OA=xA[HA],TA=xA[HA+1],zA=xA[HA+2],WA=xA[HA+3],ee=xA[HA+4],ie=xA[HA+5],oe=xA[HA+6];var Me=OA+(pe=xA[HA+7]),me=OA-pe,at=TA+oe,be=TA-oe,ye=zA+ie,Ze=zA-ie,mA=WA+ee,xe=WA-ee,le=Me+mA,_e=Me-mA,He=at+ye,Ve=at-ye;xA[HA]=le+He,xA[HA+4]=le-He;var GA=.707106781*(Ve+_e);xA[HA+2]=_e+GA,xA[HA+6]=_e-GA;var Ce=.382683433*((le=xe+Ze)-(Ve=be+me)),hn=.5411961*le+Ce,st=1.306562965*Ve+Ce,Br=.707106781*(He=Ze+be),Ur=me+Br,Ae=me-Br;xA[HA+5]=Ae+hn,xA[HA+3]=Ae-hn,xA[HA+1]=Ur+st,xA[HA+7]=Ur-st,HA+=8}for(HA=0,XA=0;XA<8;++XA){OA=xA[HA],TA=xA[HA+8],zA=xA[HA+16],WA=xA[HA+24],ee=xA[HA+32],ie=xA[HA+40],oe=xA[HA+48];var Er=OA+(pe=xA[HA+56]),or=OA-pe,Ot=TA+oe,vt=TA-oe,Se=zA+ie,Ht=zA-ie,Wn=WA+ee,Kr=WA-ee,lr=Er+Wn,jt=Er-Wn,Bt=Ot+Se,Sr=Ot-Se;xA[HA]=lr+Bt,xA[HA+32]=lr-Bt;var cr=.707106781*(Sr+jt);xA[HA+16]=jt+cr,xA[HA+48]=jt-cr;var Ir=.382683433*((lr=Kr+Ht)-(Sr=vt+or)),Sn=.5411961*lr+Ir,xi=1.306562965*Sr+Ir,qA=.707106781*(Bt=Ht+vt),J=or+qA,IA=or-qA;xA[HA+40]=IA+Sn,xA[HA+24]=IA-Sn,xA[HA+8]=J+xi,xA[HA+56]=J-xi,HA++}for(XA=0;XA<64;++XA)se=xA[XA]*NA[XA],h[XA]=se>0?se+.5|0:se-.5|0;return h}(U,P),FA=0;FA<64;++FA)m[R[FA]]=wA[FA];var UA=m[0]-K;K=m[0],UA==0?lA($[0]):(lA($[p[q=32767+UA]]),lA(d[q]));for(var LA=63;LA>0&&m[LA]==0;)LA--;if(LA==0)return lA(rA),K;for(var MA,gA=1;gA<=LA;){for(var W=gA;m[gA]==0&&gA<=LA;)++gA;var ZA=gA-W;if(ZA>=16){MA=ZA>>4;for(var RA=1;RA<=MA;++RA)lA(oA);ZA&=15}q=32767+m[gA],lA(j[(ZA<<4)+p[q]]),lA(d[q]),gA++}return LA!=63&&lA(rA),K}function BA(U){U=Math.min(Math.max(U,1),100),i!=U&&(function(P){for(var K=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],$=0;$<64;$++){var j=a((K[$]*P+50)/100);j=Math.min(Math.max(j,1),255),s[R[$]]=j}for(var q=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],rA=0;rA<64;rA++){var oA=a((q[rA]*P+50)/100);oA=Math.min(Math.max(oA,1),255),o[R[rA]]=oA}for(var wA=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],FA=0,UA=0;UA<8;UA++)for(var LA=0;LA<8;LA++)c[FA]=1/(s[R[FA]]*wA[UA]*wA[LA]*8),u[FA]=1/(o[R[FA]]*wA[UA]*wA[LA]*8),FA++}(U<50?Math.floor(5e3/U):Math.floor(200-2*U)),i=U)}this.encode=function(U,P){P&&BA(P),B=new Array,C=0,b=7,cA(65496),cA(65504),cA(16),eA(74),eA(70),eA(73),eA(70),eA(0),eA(1),eA(1),eA(0),cA(1),cA(1),eA(0),eA(0),function(){cA(65499),cA(132),eA(0);for(var TA=0;TA<64;TA++)eA(s[TA]);eA(1);for(var zA=0;zA<64;zA++)eA(o[zA])}(),function(TA,zA){cA(65472),cA(17),eA(8),cA(zA),cA(TA),eA(3),eA(1),eA(17),eA(0),eA(2),eA(17),eA(1),eA(3),eA(17),eA(1)}(U.width,U.height),function(){cA(65476),cA(418),eA(0);for(var TA=0;TA<16;TA++)eA(_[TA+1]);for(var zA=0;zA<=11;zA++)eA(X[zA]);eA(16);for(var WA=0;WA<16;WA++)eA(nA[WA+1]);for(var ee=0;ee<=161;ee++)eA(N[ee]);eA(1);for(var ie=0;ie<16;ie++)eA(T[ie+1]);for(var oe=0;oe<=11;oe++)eA(M[oe]);eA(17);for(var pe=0;pe<16;pe++)eA(V[pe+1]);for(var XA=0;XA<=161;XA++)eA(sA[XA])}(),cA(65498),cA(12),eA(3),eA(1),eA(0),eA(2),eA(17),eA(3),eA(17),eA(0),eA(63),eA(0);var K=0,$=0,j=0;C=0,b=7,this.encode.displayName="_encode_";for(var q,rA,oA,wA,FA,UA,LA,MA,gA,W=U.data,ZA=U.width,RA=U.height,xA=4*ZA,NA=0;NA<RA;){for(q=0;q<xA;){for(FA=xA*NA+q,LA=-1,MA=0,gA=0;gA<64;gA++)UA=FA+(MA=gA>>3)*xA+(LA=4*(7&gA)),NA+MA>=RA&&(UA-=xA*(NA+1+MA-RA)),q+LA>=xA&&(UA-=q+LA-xA+4),rA=W[UA++],oA=W[UA++],wA=W[UA++],Q[gA]=(z[rA]+z[oA+256>>0]+z[wA+512>>0]>>16)-128,L[gA]=(z[rA+768>>0]+z[oA+1024>>0]+z[wA+1280>>0]>>16)-128,D[gA]=(z[rA+1280>>0]+z[oA+1536>>0]+z[wA+1792>>0]>>16)-128;K=fA(Q,c,K,A,r),$=fA(L,u,$,t,n),j=fA(D,u,j,t,n),q+=32}NA+=8}if(b>=0){var OA=[];OA[1]=b+1,OA[0]=(1<<b+1)-1,lA(OA)}return cA(65497),new Uint8Array(B)},e=e||50,function(){for(var U=String.fromCharCode,P=0;P<256;P++)O[P]=U(P)}(),A=iA(_,X),t=iA(T,M),r=iA(nA,N),n=iA(V,sA),function(){for(var U=1,P=2,K=1;K<=15;K++){for(var $=U;$<P;$++)p[32767+$]=K,d[32767+$]=[],d[32767+$][1]=K,d[32767+$][0]=$;for(var j=-(P-1);j<=-U;j++)p[32767+j]=K,d[32767+j]=[],d[32767+j][1]=K,d[32767+j][0]=P-1+j;U<<=1,P<<=1}}(),function(){for(var U=0;U<256;U++)z[U]=19595*U,z[U+256>>0]=38470*U,z[U+512>>0]=7471*U+32768,z[U+768>>0]=-11059*U,z[U+1024>>0]=-21709*U,z[U+1280>>0]=32768*U+8421375,z[U+1536>>0]=-27439*U,z[U+1792>>0]=-5329*U}(),BA(e)}/**
|
|
450
|
+
* @license
|
|
451
|
+
* Copyright (c) 2017 Aras Abbasi
|
|
452
|
+
*
|
|
453
|
+
* Licensed under the MIT License.
|
|
454
|
+
* http://opensource.org/licenses/mit-license
|
|
455
|
+
*/function tn(e,A){if(this.pos=0,this.buffer=e,this.datav=new DataView(e.buffer),this.is_with_alpha=!!A,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,["BM","BA","CI","CP","IC","PT"].indexOf(this.flag)===-1)throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function Bv(e){function A(_){if(!_)throw Error("assert :P")}function t(_,X,nA){for(var N=0;4>N;N++)if(_[X+N]!=nA.charCodeAt(N))return!0;return!1}function r(_,X,nA,N,T){for(var M=0;M<T;M++)_[X+M]=nA[N+M]}function n(_,X,nA,N){for(var T=0;T<N;T++)_[X+T]=nA}function i(_){return new Int32Array(_)}function a(_,X){for(var nA=[],N=0;N<_;N++)nA.push(new X);return nA}function s(_,X){var nA=[];return function N(T,M,V){for(var sA=V[M],iA=0;iA<sA&&(T.push(V.length>M+1?[]:new X),!(V.length<M+1));iA++)N(T[iA],M+1,V)}(nA,0,_),nA}var o=function(){var _=this;function X(l,f){for(var v=1<<f-1>>>0;l&v;)v>>>=1;return v?(l&v-1)+v:l}function nA(l,f,v,w,x){A(!(w%v));do l[f+(w-=v)]=x;while(0<w)}function N(l,f,v,w,x){if(A(2328>=x),512>=x)var E=i(512);else if((E=i(x))==null)return 0;return function(S,I,H,k,Z,hA){var dA,aA,CA=I,pA=1<<H,AA=i(16),tA=i(16);for(A(Z!=0),A(k!=null),A(S!=null),A(0<H),aA=0;aA<Z;++aA){if(15<k[aA])return 0;++AA[k[aA]]}if(AA[0]==Z)return 0;for(tA[1]=0,dA=1;15>dA;++dA){if(AA[dA]>1<<dA)return 0;tA[dA+1]=tA[dA]+AA[dA]}for(aA=0;aA<Z;++aA)dA=k[aA],0<k[aA]&&(hA[tA[dA]++]=aA);if(tA[15]==1)return(k=new T).g=0,k.value=hA[0],nA(S,CA,1,pA,k),pA;var yA,QA=-1,bA=pA-1,VA=0,PA=1,te=1,kA=1<<H;for(aA=0,dA=1,Z=2;dA<=H;++dA,Z<<=1){if(PA+=te<<=1,0>(te-=AA[dA]))return 0;for(;0<AA[dA];--AA[dA])(k=new T).g=dA,k.value=hA[aA++],nA(S,CA+VA,Z,kA,k),VA=X(VA,dA)}for(dA=H+1,Z=2;15>=dA;++dA,Z<<=1){if(PA+=te<<=1,0>(te-=AA[dA]))return 0;for(;0<AA[dA];--AA[dA]){if(k=new T,(VA&bA)!=QA){for(CA+=kA,yA=1<<(QA=dA)-H;15>QA&&!(0>=(yA-=AA[QA]));)++QA,yA<<=1;pA+=kA=1<<(yA=QA-H),S[I+(QA=VA&bA)].g=yA+H,S[I+QA].value=CA-I-QA}k.g=dA-H,k.value=hA[aA++],nA(S,CA+(VA>>H),Z,kA,k),VA=X(VA,dA)}}return PA!=2*tA[15]-1?0:pA}(l,f,v,w,x,E)}function T(){this.value=this.g=0}function M(){this.value=this.g=0}function V(){this.G=a(5,T),this.H=i(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=a(zt,M)}function sA(l,f,v,w){A(l!=null),A(f!=null),A(2147483648>w),l.Ca=254,l.I=0,l.b=-8,l.Ka=0,l.oa=f,l.pa=v,l.Jd=f,l.Yc=v+w,l.Zc=4<=w?v+w-4+1:v,q(l)}function iA(l,f){for(var v=0;0<f--;)v|=oA(l,128)<<f;return v}function lA(l,f){var v=iA(l,f);return rA(l)?-v:v}function eA(l,f,v,w){var x,E=0;for(A(l!=null),A(f!=null),A(4294967288>w),l.Sb=w,l.Ra=0,l.u=0,l.h=0,4<w&&(w=4),x=0;x<w;++x)E+=f[v+x]<<8*x;l.Ra=E,l.bb=w,l.oa=f,l.pa=v}function cA(l){for(;8<=l.u&&l.bb<l.Sb;)l.Ra>>>=8,l.Ra+=l.oa[l.pa+l.bb]<<xs-8>>>0,++l.bb,l.u-=8;K(l)&&(l.h=1,l.u=0)}function fA(l,f){if(A(0<=f),!l.h&&f<=Cs){var v=P(l)&bs[f];return l.u+=f,cA(l),v}return l.h=1,l.u=0}function BA(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function U(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function P(l){return l.Ra>>>(l.u&xs-1)>>>0}function K(l){return A(l.bb<=l.Sb),l.h||l.bb==l.Sb&&l.u>xs}function $(l,f){l.u=f,l.h=K(l)}function j(l){l.u>=Yo&&(A(l.u>=Yo),cA(l))}function q(l){A(l!=null&&l.oa!=null),l.pa<l.Zc?(l.I=(l.oa[l.pa++]|l.I<<8)>>>0,l.b+=8):(A(l!=null&&l.oa!=null),l.pa<l.Yc?(l.b+=8,l.I=l.oa[l.pa++]|l.I<<8):l.Ka?l.b=0:(l.I<<=8,l.b+=8,l.Ka=1))}function rA(l){return iA(l,1)}function oA(l,f){var v=l.Ca;0>l.b&&q(l);var w=l.b,x=v*f>>>8,E=(l.I>>>w>x)+0;for(E?(v-=x,l.I-=x+1<<w>>>0):v=x+1,w=v,x=0;256<=w;)x+=8,w>>=8;return w=7^x+yr[w],l.b-=w,l.Ca=(v<<w)-1,E}function wA(l,f,v){l[f+0]=v>>24&255,l[f+1]=v>>16&255,l[f+2]=v>>8&255,l[f+3]=v>>0&255}function FA(l,f){return l[f+0]<<0|l[f+1]<<8}function UA(l,f){return FA(l,f)|l[f+2]<<16}function LA(l,f){return FA(l,f)|FA(l,f+2)<<16}function MA(l,f){var v=1<<f;return A(l!=null),A(0<f),l.X=i(v),l.X==null?0:(l.Mb=32-f,l.Xa=f,1)}function gA(l,f){A(l!=null),A(f!=null),A(l.Xa==f.Xa),r(f.X,0,l.X,0,1<<f.Xa)}function W(){this.X=[],this.Xa=this.Mb=0}function ZA(l,f,v,w){A(v!=null),A(w!=null);var x=v[0],E=w[0];return x==0&&(x=(l*E+f/2)/f),E==0&&(E=(f*x+l/2)/l),0>=x||0>=E?0:(v[0]=x,w[0]=E,1)}function RA(l,f){return l+(1<<f)-1>>>f}function xA(l,f){return((4278255360&l)+(4278255360&f)>>>0&4278255360)+((16711935&l)+(16711935&f)>>>0&16711935)>>>0}function NA(l,f){_[f]=function(v,w,x,E,S,I,H){var k;for(k=0;k<S;++k){var Z=_[l](I[H+k-1],x,E+k);I[H+k]=xA(v[w+k],Z)}}}function OA(){this.ud=this.hd=this.jd=0}function TA(l,f){return((4278124286&(l^f))>>>1)+(l&f)>>>0}function zA(l){return 0<=l&&256>l?l:0>l?0:255<l?255:void 0}function WA(l,f){return zA(l+(l-f+.5>>1))}function ee(l,f,v){return Math.abs(f-v)-Math.abs(l-v)}function ie(l,f,v,w,x,E,S){for(w=E[S-1],v=0;v<x;++v)E[S+v]=w=xA(l[f+v],w)}function oe(l,f,v,w,x){var E;for(E=0;E<v;++E){var S=l[f+E],I=S>>8&255,H=16711935&(H=(H=16711935&S)+((I<<16)+I));w[x+E]=(4278255360&S)+H>>>0}}function pe(l,f){f.jd=l>>0&255,f.hd=l>>8&255,f.ud=l>>16&255}function XA(l,f,v,w,x,E){var S;for(S=0;S<w;++S){var I=f[v+S],H=I>>>8,k=I,Z=255&(Z=(Z=I>>>16)+((l.jd<<24>>24)*(H<<24>>24)>>>5));k=255&(k=(k=k+((l.hd<<24>>24)*(H<<24>>24)>>>5))+((l.ud<<24>>24)*(Z<<24>>24)>>>5)),x[E+S]=(4278255360&I)+(Z<<16)+k}}function se(l,f,v,w,x){_[f]=function(E,S,I,H,k,Z,hA,dA,aA){for(H=hA;H<dA;++H)for(hA=0;hA<aA;++hA)k[Z++]=x(I[w(E[S++])])},_[l]=function(E,S,I,H,k,Z,hA){var dA=8>>E.b,aA=E.Ea,CA=E.K[0],pA=E.w;if(8>dA)for(E=(1<<E.b)-1,pA=(1<<dA)-1;S<I;++S){var AA,tA=0;for(AA=0;AA<aA;++AA)AA&E||(tA=w(H[k++])),Z[hA++]=x(CA[tA&pA]),tA>>=dA}else _["VP8LMapColor"+v](H,k,CA,pA,Z,hA,S,I,aA)}}function HA(l,f,v,w,x){for(v=f+v;f<v;){var E=l[f++];w[x++]=E>>16&255,w[x++]=E>>8&255,w[x++]=E>>0&255}}function Me(l,f,v,w,x){for(v=f+v;f<v;){var E=l[f++];w[x++]=E>>16&255,w[x++]=E>>8&255,w[x++]=E>>0&255,w[x++]=E>>24&255}}function me(l,f,v,w,x){for(v=f+v;f<v;){var E=(S=l[f++])>>16&240|S>>12&15,S=S>>0&240|S>>28&15;w[x++]=E,w[x++]=S}}function at(l,f,v,w,x){for(v=f+v;f<v;){var E=(S=l[f++])>>16&248|S>>13&7,S=S>>5&224|S>>3&31;w[x++]=E,w[x++]=S}}function be(l,f,v,w,x){for(v=f+v;f<v;){var E=l[f++];w[x++]=E>>0&255,w[x++]=E>>8&255,w[x++]=E>>16&255}}function ye(l,f,v,w,x,E){if(E==0)for(v=f+v;f<v;)wA(w,((E=l[f++])[0]>>24|E[1]>>8&65280|E[2]<<8&16711680|E[3]<<24)>>>0),x+=32;else r(w,x,l,f,v)}function Ze(l,f){_[f][0]=_[l+"0"],_[f][1]=_[l+"1"],_[f][2]=_[l+"2"],_[f][3]=_[l+"3"],_[f][4]=_[l+"4"],_[f][5]=_[l+"5"],_[f][6]=_[l+"6"],_[f][7]=_[l+"7"],_[f][8]=_[l+"8"],_[f][9]=_[l+"9"],_[f][10]=_[l+"10"],_[f][11]=_[l+"11"],_[f][12]=_[l+"12"],_[f][13]=_[l+"13"],_[f][14]=_[l+"0"],_[f][15]=_[l+"0"]}function mA(l){return l==Mp||l==Rp||l==qu||l==Kp}function xe(){this.eb=[],this.size=this.A=this.fb=0}function le(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function _e(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new xe,this.f.kb=new le,this.sd=null}function He(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function Ve(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function GA(l){return alert("todo:WebPSamplerProcessPlane"),l.T}function Ce(l,f){var v=l.T,w=f.ba.f.RGBA,x=w.eb,E=w.fb+l.ka*w.A,S=Wr[f.ba.S],I=l.y,H=l.O,k=l.f,Z=l.N,hA=l.ea,dA=l.W,aA=f.cc,CA=f.dc,pA=f.Mc,AA=f.Nc,tA=l.ka,yA=l.ka+l.T,QA=l.U,bA=QA+1>>1;for(tA==0?S(I,H,null,null,k,Z,hA,dA,k,Z,hA,dA,x,E,null,null,QA):(S(f.ec,f.fc,I,H,aA,CA,pA,AA,k,Z,hA,dA,x,E-w.A,x,E,QA),++v);tA+2<yA;tA+=2)aA=k,CA=Z,pA=hA,AA=dA,Z+=l.Rc,dA+=l.Rc,E+=2*w.A,S(I,(H+=2*l.fa)-l.fa,I,H,aA,CA,pA,AA,k,Z,hA,dA,x,E-w.A,x,E,QA);return H+=l.fa,l.j+yA<l.o?(r(f.ec,f.fc,I,H,QA),r(f.cc,f.dc,k,Z,bA),r(f.Mc,f.Nc,hA,dA,bA),v--):1&yA||S(I,H,null,null,k,Z,hA,dA,k,Z,hA,dA,x,E+w.A,null,null,QA),v}function hn(l,f,v){var w=l.F,x=[l.J];if(w!=null){var E=l.U,S=f.ba.S,I=S==Wu||S==qu;f=f.ba.f.RGBA;var H=[0],k=l.ka;H[0]=l.T,l.Kb&&(k==0?--H[0]:(--k,x[0]-=l.width),l.j+l.ka+l.T==l.o&&(H[0]=l.o-l.j-k));var Z=f.eb;k=f.fb+k*f.A,l=We(w,x[0],l.width,E,H,Z,k+(I?0:3),f.A),A(v==H),l&&mA(S)&&Gr(Z,k,I,E,H,f.A)}return 0}function st(l){var f=l.ma,v=f.ba.S,w=11>v,x=v==Gu||v==$u||v==Wu||v==Dp||v==12||mA(v);if(f.memory=null,f.Ib=null,f.Jb=null,f.Nd=null,!qo(f.Oa,l,x?11:12))return 0;if(x&&mA(v)&&SA(),l.da)alert("todo:use_scaling");else{if(w){if(f.Ib=GA,l.Kb){if(v=l.U+1>>1,f.memory=i(l.U+2*v),f.memory==null)return 0;f.ec=f.memory,f.fc=0,f.cc=f.ec,f.dc=f.fc+l.U,f.Mc=f.cc,f.Nc=f.dc+v,f.Ib=Ce,SA()}}else alert("todo:EmitYUV");x&&(f.Jb=hn,w&&uA())}if(w&&!yw){for(l=0;256>l;++l)pP[l]=89858*(l-128)+Yu>>Xu,mP[l]=-22014*(l-128)+Yu,BP[l]=-45773*(l-128),vP[l]=113618*(l-128)+Yu>>Xu;for(l=nl;l<zp;++l)f=76283*(l-16)+Yu>>Xu,yP[l-nl]=Lr(f,255),wP[l-nl]=Lr(f+8>>4,15);yw=1}return 1}function Br(l){var f=l.ma,v=l.U,w=l.T;return A(!(1&l.ka)),0>=v||0>=w?0:(v=f.Ib(l,f),f.Jb!=null&&f.Jb(l,f,v),f.Dc+=v,1)}function Ur(l){l.ma.memory=null}function Ae(l,f,v,w){return fA(l,8)!=47?0:(f[0]=fA(l,14)+1,v[0]=fA(l,14)+1,w[0]=fA(l,1),fA(l,3)!=0?0:!l.h)}function Er(l,f){if(4>l)return l+1;var v=l-2>>1;return(2+(1&l)<<v)+fA(f,v)+1}function or(l,f){return 120<f?f-120:1<=(v=((v=tP[f-1])>>4)*l+(8-(15&v)))?v:1;var v}function Ot(l,f,v){var w=P(v),x=l[f+=255&w].g-8;return 0<x&&($(v,v.u+8),w=P(v),f+=l[f].value,f+=w&(1<<x)-1),$(v,v.u+l[f].g),l[f].value}function vt(l,f,v){return v.g+=l.g,v.value+=l.value<<f>>>0,A(8>=v.g),l.g}function Se(l,f,v){var w=l.xc;return A((f=w==0?0:l.vc[l.md*(v>>w)+(f>>w)])<l.Wb),l.Ya[f]}function Ht(l,f,v,w){var x=l.ab,E=l.c*f,S=l.C;f=S+f;var I=v,H=w;for(w=l.Ta,v=l.Ua;0<x--;){var k=l.gc[x],Z=S,hA=f,dA=I,aA=H,CA=(H=w,I=v,k.Ea);switch(A(Z<hA),A(hA<=k.nc),k.hc){case 2:Du(dA,aA,(hA-Z)*CA,H,I);break;case 0:var pA=Z,AA=hA,tA=H,yA=I,QA=(kA=k).Ea;pA==0&&(Pp(dA,aA,null,null,1,tA,yA),ie(dA,aA+1,0,0,QA-1,tA,yA+1),aA+=QA,yA+=QA,++pA);for(var bA=1<<kA.b,VA=bA-1,PA=RA(QA,kA.b),te=kA.K,kA=kA.w+(pA>>kA.b)*PA;pA<AA;){var Ne=te,Pe=kA,Ie=1;for(Jo(dA,aA,tA,yA-QA,1,tA,yA);Ie<QA;){var Qe=(Ie&~VA)+bA;Qe>QA&&(Qe=QA),(0,Ei[Ne[Pe++]>>8&15])(dA,aA+ +Ie,tA,yA+Ie-QA,Qe-Ie,tA,yA+Ie),Ie=Qe}aA+=QA,yA+=QA,++pA&VA||(kA+=PA)}hA!=k.nc&&r(H,I-CA,H,I+(hA-Z-1)*CA,CA);break;case 1:for(CA=dA,AA=aA,QA=(dA=k.Ea)-(yA=dA&~(tA=(aA=1<<k.b)-1)),pA=RA(dA,k.b),bA=k.K,k=k.w+(Z>>k.b)*pA;Z<hA;){for(VA=bA,PA=k,te=new OA,kA=AA+yA,Ne=AA+dA;AA<kA;)pe(VA[PA++],te),va(te,CA,AA,aA,H,I),AA+=aA,I+=aA;AA<Ne&&(pe(VA[PA++],te),va(te,CA,AA,QA,H,I),AA+=QA,I+=QA),++Z&tA||(k+=pA)}break;case 3:if(dA==H&&aA==I&&0<k.b){for(AA=H,dA=CA=I+(hA-Z)*CA-(yA=(hA-Z)*RA(k.Ea,k.b)),aA=H,tA=I,pA=[],yA=(QA=yA)-1;0<=yA;--yA)pA[yA]=aA[tA+yA];for(yA=QA-1;0<=yA;--yA)AA[dA+yA]=pA[yA];Vr(k,Z,hA,H,CA,H,I)}else Vr(k,Z,hA,dA,aA,H,I)}I=w,H=v}H!=v&&r(w,v,I,H,E)}function Wn(l,f){var v=l.V,w=l.Ba+l.c*l.C,x=f-l.C;if(A(f<=l.l.o),A(16>=x),0<x){var E=l.l,S=l.Ta,I=l.Ua,H=E.width;if(Ht(l,x,v,w),x=I=[I],A((v=l.C)<(w=f)),A(E.v<E.va),w>E.o&&(w=E.o),v<E.j){var k=E.j-v;v=E.j,x[0]+=k*H}if(v>=w?v=0:(x[0]+=4*E.v,E.ka=v-E.j,E.U=E.va-E.v,E.T=w-v,v=1),v){if(I=I[0],11>(v=l.ca).S){var Z=v.f.RGBA,hA=(w=v.S,x=E.U,E=E.T,k=Z.eb,Z.A),dA=E;for(Z=Z.fb+l.Ma*Z.A;0<dA--;){var aA=S,CA=I,pA=x,AA=k,tA=Z;switch(w){case zu:wr(aA,CA,pA,AA,tA);break;case Gu:ur(aA,CA,pA,AA,tA);break;case Mp:ur(aA,CA,pA,AA,tA),Gr(AA,tA,0,pA,1,0);break;case uw:Jn(aA,CA,pA,AA,tA);break;case $u:ye(aA,CA,pA,AA,tA,1);break;case Rp:ye(aA,CA,pA,AA,tA,1),Gr(AA,tA,0,pA,1,0);break;case Wu:ye(aA,CA,pA,AA,tA,0);break;case qu:ye(aA,CA,pA,AA,tA,0),Gr(AA,tA,1,pA,1,0);break;case Dp:Si(aA,CA,pA,AA,tA);break;case Kp:Si(aA,CA,pA,AA,tA),$e(AA,tA,pA,1,0);break;case fw:Yn(aA,CA,pA,AA,tA);break;default:A(0)}I+=H,Z+=hA}l.Ma+=E}else alert("todo:EmitRescaledRowsYUVA");A(l.Ma<=v.height)}}l.C=f,A(l.C<=l.i)}function Kr(l){var f;if(0<l.ua)return 0;for(f=0;f<l.Wb;++f){var v=l.Ya[f].G,w=l.Ya[f].H;if(0<v[1][w[1]+0].g||0<v[2][w[2]+0].g||0<v[3][w[3]+0].g)return 0}return 1}function lr(l,f,v,w,x,E){if(l.Z!=0){var S=l.qd,I=l.rd;for(A(Ti[l.Z]!=null);f<v;++f)Ti[l.Z](S,I,w,x,w,x,E),S=w,I=x,x+=E;l.qd=S,l.rd=I}}function jt(l,f){var v=l.l.ma,w=v.Z==0||v.Z==1?l.l.j:l.C;if(w=l.C<w?w:l.C,A(f<=l.l.o),f>w){var x=l.l.width,E=v.ca,S=v.tb+x*w,I=l.V,H=l.Ba+l.c*w,k=l.gc;A(l.ab==1),A(k[0].hc==3),Mu(k[0],w,f,I,H,E,S),lr(v,w,f,E,S,x)}l.C=l.Ma=f}function Bt(l,f,v,w,x,E,S){var I=l.$/w,H=l.$%w,k=l.m,Z=l.s,hA=v+l.$,dA=hA;x=v+w*x;var aA=v+w*E,CA=280+Z.ua,pA=l.Pb?I:16777216,AA=0<Z.ua?Z.Wa:null,tA=Z.wc,yA=hA<aA?Se(Z,H,I):null;A(l.C<E),A(aA<=x);var QA=!1;A:for(;;){for(;QA||hA<aA;){var bA=0;if(I>=pA){var VA=hA-v;A((pA=l).Pb),pA.wd=pA.m,pA.xd=VA,0<pA.s.ua&&gA(pA.s.Wa,pA.s.vb),pA=I+nP}if(H&tA||(yA=Se(Z,H,I)),A(yA!=null),yA.Qb&&(f[hA]=yA.qb,QA=!0),!QA)if(j(k),yA.jc){bA=k,VA=f;var PA=hA,te=yA.pd[P(bA)&zt-1];A(yA.jc),256>te.g?($(bA,bA.u+te.g),VA[PA]=te.value,bA=0):($(bA,bA.u+te.g-256),A(256<=te.value),bA=te.value),bA==0&&(QA=!0)}else bA=Ot(yA.G[0],yA.H[0],k);if(k.h)break;if(QA||256>bA){if(!QA)if(yA.nd)f[hA]=(yA.qb|bA<<8)>>>0;else{if(j(k),QA=Ot(yA.G[1],yA.H[1],k),j(k),VA=Ot(yA.G[2],yA.H[2],k),PA=Ot(yA.G[3],yA.H[3],k),k.h)break;f[hA]=(PA<<24|QA<<16|bA<<8|VA)>>>0}if(QA=!1,++hA,++H>=w&&(H=0,++I,S!=null&&I<=E&&!(I%16)&&S(l,I),AA!=null))for(;dA<hA;)bA=f[dA++],AA.X[(506832829*bA&4294967295)>>>AA.Mb]=bA}else if(280>bA){if(bA=Er(bA-256,k),VA=Ot(yA.G[4],yA.H[4],k),j(k),VA=or(w,VA=Er(VA,k)),k.h)break;if(hA-v<VA||x-hA<bA)break A;for(PA=0;PA<bA;++PA)f[hA+PA]=f[hA+PA-VA];for(hA+=bA,H+=bA;H>=w;)H-=w,++I,S!=null&&I<=E&&!(I%16)&&S(l,I);if(A(hA<=x),H&tA&&(yA=Se(Z,H,I)),AA!=null)for(;dA<hA;)bA=f[dA++],AA.X[(506832829*bA&4294967295)>>>AA.Mb]=bA}else{if(!(bA<CA))break A;for(QA=bA-280,A(AA!=null);dA<hA;)bA=f[dA++],AA.X[(506832829*bA&4294967295)>>>AA.Mb]=bA;bA=hA,A(!(QA>>>(VA=AA).Xa)),f[bA]=VA.X[QA],QA=!0}QA||A(k.h==K(k))}if(l.Pb&&k.h&&hA<x)A(l.m.h),l.a=5,l.m=l.wd,l.$=l.xd,0<l.s.ua&&gA(l.s.vb,l.s.Wa);else{if(k.h)break A;S!=null&&S(l,I>E?E:I),l.a=0,l.$=hA-v}return 1}return l.a=3,0}function Sr(l){A(l!=null),l.vc=null,l.yc=null,l.Ya=null;var f=l.Wa;f!=null&&(f.X=null),l.vb=null,A(l!=null)}function cr(){var l=new _p;return l==null?null:(l.a=0,l.xb=gw,Ze("Predictor","VP8LPredictors"),Ze("Predictor","VP8LPredictors_C"),Ze("PredictorAdd","VP8LPredictorsAdd"),Ze("PredictorAdd","VP8LPredictorsAdd_C"),Du=oe,va=XA,wr=HA,ur=Me,Si=me,Yn=at,Jn=be,_.VP8LMapColor32b=Fs,_.VP8LMapColor8b=Ru,l)}function Ir(l,f,v,w,x){var E=1,S=[l],I=[f],H=w.m,k=w.s,Z=null,hA=0;A:for(;;){if(v)for(;E&&fA(H,1);){var dA=S,aA=I,CA=w,pA=1,AA=CA.m,tA=CA.gc[CA.ab],yA=fA(AA,2);if(CA.Oc&1<<yA)E=0;else{switch(CA.Oc|=1<<yA,tA.hc=yA,tA.Ea=dA[0],tA.nc=aA[0],tA.K=[null],++CA.ab,A(4>=CA.ab),yA){case 0:case 1:tA.b=fA(AA,3)+2,pA=Ir(RA(tA.Ea,tA.b),RA(tA.nc,tA.b),0,CA,tA.K),tA.K=tA.K[0];break;case 3:var QA,bA=fA(AA,8)+1,VA=16<bA?0:4<bA?1:2<bA?2:3;if(dA[0]=RA(tA.Ea,VA),tA.b=VA,QA=pA=Ir(bA,1,0,CA,tA.K)){var PA,te=bA,kA=tA,Ne=1<<(8>>kA.b),Pe=i(Ne);if(Pe==null)QA=0;else{var Ie=kA.K[0],Qe=kA.w;for(Pe[0]=kA.K[0][0],PA=1;PA<1*te;++PA)Pe[PA]=xA(Ie[Qe+PA],Pe[PA-1]);for(;PA<4*Ne;++PA)Pe[PA]=0;kA.K[0]=null,kA.K[0]=Pe,QA=1}}pA=QA;break;case 2:break;default:A(0)}E=pA}}if(S=S[0],I=I[0],E&&fA(H,1)&&!(E=1<=(hA=fA(H,4))&&11>=hA)){w.a=3;break A}var je;if(je=E)e:{var Re,ve,Ut,br=w,Et=S,Cr=I,ke=hA,Tr=v,Or=br.m,kt=br.s,Gt=[null],hr=1,qr=0,Tn=rP[ke];t:for(;;){if(Tr&&fA(Or,1)){var Dt=fA(Or,3)+2,ti=RA(Et,Dt),ba=RA(Cr,Dt),Is=ti*ba;if(!Ir(ti,ba,0,br,Gt))break t;for(Gt=Gt[0],kt.xc=Dt,Re=0;Re<Is;++Re){var Oi=Gt[Re]>>8&65535;Gt[Re]=Oi,Oi>=hr&&(hr=Oi+1)}}if(Or.h)break t;for(ve=0;5>ve;++ve){var ct=hw[ve];!ve&&0<ke&&(ct+=1<<ke),qr<ct&&(qr=ct)}var Gp=a(hr*Tn,T),Cw=hr,xw=a(Cw,V);if(xw==null)var Zu=null;else A(65536>=Cw),Zu=xw;var il=i(qr);if(Zu==null||il==null||Gp==null){br.a=1;break t}var Af=Gp;for(Re=Ut=0;Re<hr;++Re){var mn=Zu[Re],Ls=mn.G,Ns=mn.H,Fw=0,ef=1,Qw=0;for(ve=0;5>ve;++ve){ct=hw[ve],Ls[ve]=Af,Ns[ve]=Ut,!ve&&0<ke&&(ct+=1<<ke);n:{var tf,$p=ct,rf=br,al=il,xP=Af,FP=Ut,Wp=0,Hi=rf.m,QP=fA(Hi,1);if(n(al,0,0,$p),QP){var UP=fA(Hi,1)+1,EP=fA(Hi,1),Uw=fA(Hi,EP==0?1:8);al[Uw]=1,UP==2&&(al[Uw=fA(Hi,8)]=1);var nf=1}else{var Ew=i(19),Sw=fA(Hi,4)+4;if(19<Sw){rf.a=3;var af=0;break n}for(tf=0;tf<Sw;++tf)Ew[eP[tf]]=fA(Hi,3);var qp=void 0,sl=void 0,Iw=rf,SP=Ew,sf=$p,Lw=al,Xp=0,_i=Iw.m,Nw=8,Tw=a(128,T);r:for(;N(Tw,0,7,SP,19);){if(fA(_i,1)){var IP=2+2*fA(_i,3);if((qp=2+fA(_i,IP))>sf)break r}else qp=sf;for(sl=0;sl<sf&&qp--;){j(_i);var Ow=Tw[0+(127&P(_i))];$(_i,_i.u+Ow.g);var Ts=Ow.value;if(16>Ts)Lw[sl++]=Ts,Ts!=0&&(Nw=Ts);else{var LP=Ts==16,Hw=Ts-16,NP=Z_[Hw],_w=fA(_i,J_[Hw])+NP;if(sl+_w>sf)break r;for(var TP=LP?Nw:0;0<_w--;)Lw[sl++]=TP}}Xp=1;break r}Xp||(Iw.a=3),nf=Xp}(nf=nf&&!Hi.h)&&(Wp=N(xP,FP,8,al,$p)),nf&&Wp!=0?af=Wp:(rf.a=3,af=0)}if(af==0)break t;if(ef&&AP[ve]==1&&(ef=Af[Ut].g==0),Fw+=Af[Ut].g,Ut+=af,3>=ve){var ol,Yp=il[0];for(ol=1;ol<ct;++ol)il[ol]>Yp&&(Yp=il[ol]);Qw+=Yp}}if(mn.nd=ef,mn.Qb=0,ef&&(mn.qb=(Ls[3][Ns[3]+0].value<<24|Ls[1][Ns[1]+0].value<<16|Ls[2][Ns[2]+0].value)>>>0,Fw==0&&256>Ls[0][Ns[0]+0].value&&(mn.Qb=1,mn.qb+=Ls[0][Ns[0]+0].value<<8)),mn.jc=!mn.Qb&&6>Qw,mn.jc){var of,ri=mn;for(of=0;of<zt;++of){var Pi=of,ki=ri.pd[Pi],lf=ri.G[0][ri.H[0]+Pi];256<=lf.value?(ki.g=lf.g+256,ki.value=lf.value):(ki.g=0,ki.value=0,Pi>>=vt(lf,8,ki),Pi>>=vt(ri.G[1][ri.H[1]+Pi],16,ki),Pi>>=vt(ri.G[2][ri.H[2]+Pi],0,ki),vt(ri.G[3][ri.H[3]+Pi],24,ki))}}}kt.vc=Gt,kt.Wb=hr,kt.Ya=Zu,kt.yc=Gp,je=1;break e}je=0}if(!(E=je)){w.a=3;break A}if(0<hA){if(k.ua=1<<hA,!MA(k.Wa,hA)){w.a=1,E=0;break A}}else k.ua=0;var Jp=w,Pw=S,OP=I,Zp=Jp.s,A0=Zp.xc;if(Jp.c=Pw,Jp.i=OP,Zp.md=RA(Pw,A0),Zp.wc=A0==0?-1:(1<<A0)-1,v){w.xb=uP;break A}if((Z=i(S*I))==null){w.a=1,E=0;break A}E=(E=Bt(w,Z,0,S,I,I,null))&&!H.h;break A}return E?(x!=null?x[0]=Z:(A(Z==null),A(v)),w.$=0,v||Sr(k)):Sr(k),E}function Sn(l,f){var v=l.c*l.i,w=v+f+16*f;return A(l.c<=f),l.V=i(w),l.V==null?(l.Ta=null,l.Ua=0,l.a=1,0):(l.Ta=l.V,l.Ua=l.Ba+v+f,1)}function xi(l,f){var v=l.C,w=f-v,x=l.V,E=l.Ba+l.c*v;for(A(f<=l.l.o);0<w;){var S=16<w?16:w,I=l.l.ma,H=l.l.width,k=H*S,Z=I.ca,hA=I.tb+H*v,dA=l.Ta,aA=l.Ua;Ht(l,S,x,E),wt(dA,aA,Z,hA,k),lr(I,v,v+S,Z,hA,H),w-=S,x+=S*l.c,v+=S}A(v==f),l.C=l.Ma=f}function qA(){this.ub=this.yd=this.td=this.Rb=0}function J(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function IA(){this.Fb=this.Bb=this.Cb=0,this.Zb=i(4),this.Lb=i(4)}function _A(){this.Yb=function(){var l=[];return function f(v,w,x){for(var E=x[w],S=0;S<E&&(v.push(x.length>w+1?[]:0),!(x.length<w+1));S++)f(v[S],w+1,x)}(l,0,[3,11]),l}()}function Ue(){this.jb=i(3),this.Wc=s([4,8],_A),this.Xc=s([4,17],_A)}function _t(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new i(4),this.od=new i(4)}function At(){this.ld=this.La=this.dd=this.tc=0}function ot(){this.Na=this.la=0}function dn(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Xe(){this.ad=i(384),this.Za=0,this.Ob=i(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function ua(){this.uc=this.M=this.Nb=0,this.wa=Array(new At),this.Y=0,this.ya=Array(new Xe),this.aa=0,this.l=new us}function fa(){this.y=i(16),this.f=i(8),this.ea=i(8)}function wu(){this.cb=this.a=0,this.sc="",this.m=new BA,this.Od=new qA,this.Kc=new J,this.ed=new _t,this.Qa=new IA,this.Ic=this.$c=this.Aa=0,this.D=new ua,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=a(8,BA),this.ia=0,this.pb=a(4,dn),this.Pa=new Ue,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new fa),this.Hd=0,this.rb=Array(new ot),this.sb=0,this.wa=Array(new At),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new Xe),this.L=this.aa=0,this.gd=s([4,2],At),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function us(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function Bp(){var l=new wu;return l!=null&&(l.a=0,l.sc="OK",l.cb=0,l.Xb=0,rl||(rl=xu)),l}function mt(l,f,v){return l.a==0&&(l.a=f,l.sc=v,l.cb=0),0}function bu(l,f,v){return 3<=v&&l[f+0]==157&&l[f+1]==1&&l[f+2]==42}function Cu(l,f){if(l==null)return 0;if(l.a=0,l.sc="OK",f==null)return mt(l,2,"null VP8Io passed to VP8GetHeaders()");var v=f.data,w=f.w,x=f.ha;if(4>x)return mt(l,7,"Truncated header.");var E=v[w+0]|v[w+1]<<8|v[w+2]<<16,S=l.Od;if(S.Rb=!(1&E),S.td=E>>1&7,S.yd=E>>4&1,S.ub=E>>5,3<S.td)return mt(l,3,"Incorrect keyframe parameters.");if(!S.yd)return mt(l,4,"Frame not displayable.");w+=3,x-=3;var I=l.Kc;if(S.Rb){if(7>x)return mt(l,7,"cannot parse picture header");if(!bu(v,w,x))return mt(l,3,"Bad code word");I.c=16383&(v[w+4]<<8|v[w+3]),I.Td=v[w+4]>>6,I.i=16383&(v[w+6]<<8|v[w+5]),I.Ud=v[w+6]>>6,w+=7,x-=7,l.za=I.c+15>>4,l.Ub=I.i+15>>4,f.width=I.c,f.height=I.i,f.Da=0,f.j=0,f.v=0,f.va=f.width,f.o=f.height,f.da=0,f.ib=f.width,f.hb=f.height,f.U=f.width,f.T=f.height,n((E=l.Pa).jb,0,255,E.jb.length),A((E=l.Qa)!=null),E.Cb=0,E.Bb=0,E.Fb=1,n(E.Zb,0,0,E.Zb.length),n(E.Lb,0,0,E.Lb)}if(S.ub>x)return mt(l,7,"bad partition length");sA(E=l.m,v,w,S.ub),w+=S.ub,x-=S.ub,S.Rb&&(I.Ld=rA(E),I.Kd=rA(E)),I=l.Qa;var H,k=l.Pa;if(A(E!=null),A(I!=null),I.Cb=rA(E),I.Cb){if(I.Bb=rA(E),rA(E)){for(I.Fb=rA(E),H=0;4>H;++H)I.Zb[H]=rA(E)?lA(E,7):0;for(H=0;4>H;++H)I.Lb[H]=rA(E)?lA(E,6):0}if(I.Bb)for(H=0;3>H;++H)k.jb[H]=rA(E)?iA(E,8):255}else I.Bb=0;if(E.Ka)return mt(l,3,"cannot parse segment header");if((I=l.ed).zd=rA(E),I.Tb=iA(E,6),I.wb=iA(E,3),I.Pc=rA(E),I.Pc&&rA(E)){for(k=0;4>k;++k)rA(E)&&(I.vd[k]=lA(E,6));for(k=0;4>k;++k)rA(E)&&(I.od[k]=lA(E,6))}if(l.L=I.Tb==0?0:I.zd?1:2,E.Ka)return mt(l,3,"cannot parse filter header");var Z=x;if(x=H=w,w=H+Z,I=Z,l.Xb=(1<<iA(l.m,2))-1,Z<3*(k=l.Xb))v=7;else{for(H+=3*k,I-=3*k,Z=0;Z<k;++Z){var hA=v[x+0]|v[x+1]<<8|v[x+2]<<16;hA>I&&(hA=I),sA(l.Jc[+Z],v,H,hA),H+=hA,I-=hA,x+=3}sA(l.Jc[+k],v,H,I),v=H<w?0:5}if(v!=0)return mt(l,v,"cannot parse partitions");for(v=iA(H=l.m,7),x=rA(H)?lA(H,4):0,w=rA(H)?lA(H,4):0,I=rA(H)?lA(H,4):0,k=rA(H)?lA(H,4):0,H=rA(H)?lA(H,4):0,Z=l.Qa,hA=0;4>hA;++hA){if(Z.Cb){var dA=Z.Zb[hA];Z.Fb||(dA+=v)}else{if(0<hA){l.pb[hA]=l.pb[0];continue}dA=v}var aA=l.pb[hA];aA.Sc[0]=Vp[Lr(dA+x,127)],aA.Sc[1]=jp[Lr(dA+0,127)],aA.Eb[0]=2*Vp[Lr(dA+w,127)],aA.Eb[1]=101581*jp[Lr(dA+I,127)]>>16,8>aA.Eb[1]&&(aA.Eb[1]=8),aA.Qc[0]=Vp[Lr(dA+k,117)],aA.Qc[1]=jp[Lr(dA+H,127)],aA.lc=dA+H}if(!S.Rb)return mt(l,4,"Not a key frame.");for(rA(E),S=l.Pa,v=0;4>v;++v){for(x=0;8>x;++x)for(w=0;3>w;++w)for(I=0;11>I;++I)k=oA(E,lP[v][x][w][I])?iA(E,8):sP[v][x][w][I],S.Wc[v][x].Yb[w][I]=k;for(x=0;17>x;++x)S.Xc[v][x]=S.Wc[v][cP[x]]}return l.kc=rA(E),l.kc&&(l.Bd=iA(E,8)),l.cb=1}function xu(l,f,v,w,x,E,S){var I=f[x].Yb[v];for(v=0;16>x;++x){if(!oA(l,I[v+0]))return x;for(;!oA(l,I[v+1]);)if(I=f[++x].Yb[0],v=0,x==16)return 16;var H=f[x+1].Yb;if(oA(l,I[v+2])){var k=l,Z=0;if(oA(k,(dA=I)[(hA=v)+3]))if(oA(k,dA[hA+6])){for(I=0,hA=2*(Z=oA(k,dA[hA+8]))+(dA=oA(k,dA[hA+9+Z])),Z=0,dA=iP[hA];dA[I];++I)Z+=Z+oA(k,dA[I]);Z+=3+(8<<hA)}else oA(k,dA[hA+7])?(Z=7+2*oA(k,165),Z+=oA(k,145)):Z=5+oA(k,159);else Z=oA(k,dA[hA+4])?3+oA(k,dA[hA+5]):2;I=H[2]}else Z=1,I=H[1];H=S+aP[x],0>(k=l).b&&q(k);var hA,dA=k.b,aA=(hA=k.Ca>>1)-(k.I>>dA)>>31;--k.b,k.Ca+=aA,k.Ca|=1,k.I-=(hA+1&aA)<<dA,E[H]=((Z^aA)-aA)*w[(0<x)+0]}return 16}function Oo(l){var f=l.rb[l.sb-1];f.la=0,f.Na=0,n(l.zc,0,0,l.zc.length),l.ja=0}function mp(l,f){if(l==null)return 0;if(f==null)return mt(l,2,"NULL VP8Io parameter in VP8Decode().");if(!l.cb&&!Cu(l,f))return 0;if(A(l.cb),f.ac==null||f.ac(f)){f.ob&&(l.L=0);var v=Ju[l.L];if(l.L==2?(l.yb=0,l.zb=0):(l.yb=f.v-v>>4,l.zb=f.j-v>>4,0>l.yb&&(l.yb=0),0>l.zb&&(l.zb=0)),l.Va=f.o+15+v>>4,l.Hb=f.va+15+v>>4,l.Hb>l.za&&(l.Hb=l.za),l.Va>l.Ub&&(l.Va=l.Ub),0<l.L){var w=l.ed;for(v=0;4>v;++v){var x;if(l.Qa.Cb){var E=l.Qa.Lb[v];l.Qa.Fb||(E+=w.Tb)}else E=w.Tb;for(x=0;1>=x;++x){var S=l.gd[v][x],I=E;if(w.Pc&&(I+=w.vd[0],x&&(I+=w.od[0])),0<(I=0>I?0:63<I?63:I)){var H=I;0<w.wb&&(H=4<w.wb?H>>2:H>>1)>9-w.wb&&(H=9-w.wb),1>H&&(H=1),S.dd=H,S.tc=2*I+H,S.ld=40<=I?2:15<=I?1:0}else S.tc=0;S.La=x}}}v=0}else mt(l,6,"Frame setup failed"),v=l.a;if(v=v==0){if(v){l.$c=0,0<l.Aa||(l.Ic=CP);A:{v=l.Ic,w=4*(H=l.za);var k=32*H,Z=H+1,hA=0<l.L?H*(0<l.Aa?2:1):0,dA=(l.Aa==2?2:1)*H;if((S=w+832+(x=3*(16*v+Ju[l.L])/2*k)+(E=l.Fa!=null&&0<l.Fa.length?l.Kc.c*l.Kc.i:0))!=S)v=0;else{if(S>l.Vb){if(l.Vb=0,l.Ec=i(S),l.Fc=0,l.Ec==null){v=mt(l,1,"no memory during frame initialization.");break A}l.Vb=S}S=l.Ec,I=l.Fc,l.Ac=S,l.Bc=I,I+=w,l.Gd=a(k,fa),l.Hd=0,l.rb=a(Z+1,ot),l.sb=1,l.wa=hA?a(hA,At):null,l.Y=0,l.D.Nb=0,l.D.wa=l.wa,l.D.Y=l.Y,0<l.Aa&&(l.D.Y+=H),A(!0),l.oc=S,l.pc=I,I+=832,l.ya=a(dA,Xe),l.aa=0,l.D.ya=l.ya,l.D.aa=l.aa,l.Aa==2&&(l.D.aa+=H),l.R=16*H,l.B=8*H,H=(k=Ju[l.L])*l.R,k=k/2*l.B,l.sa=S,l.ta=I+H,l.qa=l.sa,l.ra=l.ta+16*v*l.R+k,l.Ha=l.qa,l.Ia=l.ra+8*v*l.B+k,l.$c=0,I+=x,l.mb=E?S:null,l.nb=E?I:null,A(I+E<=l.Fc+l.Vb),Oo(l),n(l.Ac,l.Bc,0,w),v=1}}if(v){if(f.ka=0,f.y=l.sa,f.O=l.ta,f.f=l.qa,f.N=l.ra,f.ea=l.Ha,f.Vd=l.Ia,f.fa=l.R,f.Rc=l.B,f.F=null,f.J=0,!Vu){for(v=-255;255>=v;++v)It[255+v]=0>v?-v:v;for(v=-1020;1020>=v;++v)Ai[1020+v]=-128>v?-128:127<v?127:v;for(v=-112;112>=v;++v)tl[112+v]=-16>v?-16:15<v?15:v;for(v=-255;510>=v;++v)Ss[255+v]=0>v?0:255<v?255:v;Vu=1}Qs=bp,Zn=yp,Zo=Qu,fr=wp,jr=Uu,yt=Fu,Us=Mo,Ku=ga,Al=Hp,Ba=Ro,ma=Op,Ii=vs,ya=Ko,Es=_u,wa=Hu,Li=Ln,el=Xn,zr=Tp,Bn[0]=In,Bn[1]=Cp,Bn[2]=Up,Bn[3]=Ep,Bn[4]=Iu,Bn[5]=gs,Bn[6]=Lu,Bn[7]=Po,Bn[8]=Ip,Bn[9]=Sp,Ni[0]=Eu,Ni[1]=Fp,Ni[2]=qn,Ni[3]=hs,Ni[4]=tr,Ni[5]=Qp,Ni[6]=Su,ei[0]=Fi,ei[1]=xp,ei[2]=Lp,ei[3]=ko,ei[4]=da,ei[5]=Np,ei[6]=Do,v=1}else v=0}v&&(v=function(aA,CA){for(aA.M=0;aA.M<aA.Va;++aA.M){var pA,AA=aA.Jc[aA.M&aA.Xb],tA=aA.m,yA=aA;for(pA=0;pA<yA.za;++pA){var QA=tA,bA=yA,VA=bA.Ac,PA=bA.Bc+4*pA,te=bA.zc,kA=bA.ya[bA.aa+pA];if(bA.Qa.Bb?kA.$b=oA(QA,bA.Pa.jb[0])?2+oA(QA,bA.Pa.jb[2]):oA(QA,bA.Pa.jb[1]):kA.$b=0,bA.kc&&(kA.Ad=oA(QA,bA.Bd)),kA.Za=!oA(QA,145)+0,kA.Za){var Ne=kA.Ob,Pe=0;for(bA=0;4>bA;++bA){var Ie,Qe=te[0+bA];for(Ie=0;4>Ie;++Ie){Qe=oP[VA[PA+Ie]][Qe];for(var je=dw[oA(QA,Qe[0])];0<je;)je=dw[2*je+oA(QA,Qe[je])];Qe=-je,VA[PA+Ie]=Qe}r(Ne,Pe,VA,PA,4),Pe+=4,te[0+bA]=Qe}}else Qe=oA(QA,156)?oA(QA,128)?1:3:oA(QA,163)?2:0,kA.Ob[0]=Qe,n(VA,PA,Qe,4),n(te,0,Qe,4);kA.Dd=oA(QA,142)?oA(QA,114)?oA(QA,183)?1:3:2:0}if(yA.m.Ka)return mt(aA,7,"Premature end-of-partition0 encountered.");for(;aA.ja<aA.za;++aA.ja){if(yA=AA,QA=(tA=aA).rb[tA.sb-1],VA=tA.rb[tA.sb+tA.ja],pA=tA.ya[tA.aa+tA.ja],PA=tA.kc?pA.Ad:0)QA.la=VA.la=0,pA.Za||(QA.Na=VA.Na=0),pA.Hc=0,pA.Gc=0,pA.ia=0;else{var Re,ve;if(QA=VA,VA=yA,PA=tA.Pa.Xc,te=tA.ya[tA.aa+tA.ja],kA=tA.pb[te.$b],bA=te.ad,Ne=0,Pe=tA.rb[tA.sb-1],Qe=Ie=0,n(bA,Ne,0,384),te.Za)var Ut=0,br=PA[3];else{je=i(16);var Et=QA.Na+Pe.Na;if(Et=rl(VA,PA[1],Et,kA.Eb,0,je,0),QA.Na=Pe.Na=(0<Et)+0,1<Et)Qs(je,0,bA,Ne);else{var Cr=je[0]+3>>3;for(je=0;256>je;je+=16)bA[Ne+je]=Cr}Ut=1,br=PA[0]}var ke=15&QA.la,Tr=15&Pe.la;for(je=0;4>je;++je){var Or=1&Tr;for(Cr=ve=0;4>Cr;++Cr)ke=ke>>1|(Or=(Et=rl(VA,br,Et=Or+(1&ke),kA.Sc,Ut,bA,Ne))>Ut)<<7,ve=ve<<2|(3<Et?3:1<Et?2:bA[Ne+0]!=0),Ne+=16;ke>>=4,Tr=Tr>>1|Or<<7,Ie=(Ie<<8|ve)>>>0}for(br=ke,Ut=Tr>>4,Re=0;4>Re;Re+=2){for(ve=0,ke=QA.la>>4+Re,Tr=Pe.la>>4+Re,je=0;2>je;++je){for(Or=1&Tr,Cr=0;2>Cr;++Cr)Et=Or+(1&ke),ke=ke>>1|(Or=0<(Et=rl(VA,PA[2],Et,kA.Qc,0,bA,Ne)))<<3,ve=ve<<2|(3<Et?3:1<Et?2:bA[Ne+0]!=0),Ne+=16;ke>>=2,Tr=Tr>>1|Or<<5}Qe|=ve<<4*Re,br|=ke<<4<<Re,Ut|=(240&Tr)<<Re}QA.la=br,Pe.la=Ut,te.Hc=Ie,te.Gc=Qe,te.ia=43690&Qe?0:kA.ia,PA=!(Ie|Qe)}if(0<tA.L&&(tA.wa[tA.Y+tA.ja]=tA.gd[pA.$b][pA.Za],tA.wa[tA.Y+tA.ja].La|=!PA),yA.Ka)return mt(aA,7,"Premature end-of-file encountered.")}if(Oo(aA),tA=CA,yA=1,pA=(AA=aA).D,QA=0<AA.L&&AA.M>=AA.zb&&AA.M<=AA.Va,AA.Aa==0)A:{if(pA.M=AA.M,pA.uc=QA,Wo(AA,pA),yA=1,pA=(ve=AA.D).Nb,QA=(Qe=Ju[AA.L])*AA.R,VA=Qe/2*AA.B,je=16*pA*AA.R,Cr=8*pA*AA.B,PA=AA.sa,te=AA.ta-QA+je,kA=AA.qa,bA=AA.ra-VA+Cr,Ne=AA.Ha,Pe=AA.Ia-VA+Cr,Tr=(ke=ve.M)==0,Ie=ke>=AA.Va-1,AA.Aa==2&&Wo(AA,ve),ve.uc)for(Or=(Et=AA).D.M,A(Et.D.uc),ve=Et.yb;ve<Et.Hb;++ve){Ut=ve,br=Or;var kt=(Gt=(ct=Et).D).Nb;Re=ct.R;var Gt=Gt.wa[Gt.Y+Ut],hr=ct.sa,qr=ct.ta+16*kt*Re+16*Ut,Tn=Gt.dd,Dt=Gt.tc;if(Dt!=0)if(A(3<=Dt),ct.L==1)0<Ut&&Li(hr,qr,Re,Dt+4),Gt.La&&zr(hr,qr,Re,Dt),0<br&&wa(hr,qr,Re,Dt+4),Gt.La&&el(hr,qr,Re,Dt);else{var ti=ct.B,ba=ct.qa,Is=ct.ra+8*kt*ti+8*Ut,Oi=ct.Ha,ct=ct.Ia+8*kt*ti+8*Ut;kt=Gt.ld,0<Ut&&(Ku(hr,qr,Re,Dt+4,Tn,kt),Ba(ba,Is,Oi,ct,ti,Dt+4,Tn,kt)),Gt.La&&(Ii(hr,qr,Re,Dt,Tn,kt),Es(ba,Is,Oi,ct,ti,Dt,Tn,kt)),0<br&&(Us(hr,qr,Re,Dt+4,Tn,kt),Al(ba,Is,Oi,ct,ti,Dt+4,Tn,kt)),Gt.La&&(ma(hr,qr,Re,Dt,Tn,kt),ya(ba,Is,Oi,ct,ti,Dt,Tn,kt))}}if(AA.ia&&alert("todo:DitherRow"),tA.put!=null){if(ve=16*ke,ke=16*(ke+1),Tr?(tA.y=AA.sa,tA.O=AA.ta+je,tA.f=AA.qa,tA.N=AA.ra+Cr,tA.ea=AA.Ha,tA.W=AA.Ia+Cr):(ve-=Qe,tA.y=PA,tA.O=te,tA.f=kA,tA.N=bA,tA.ea=Ne,tA.W=Pe),Ie||(ke-=Qe),ke>tA.o&&(ke=tA.o),tA.F=null,tA.J=null,AA.Fa!=null&&0<AA.Fa.length&&ve<ke&&(tA.J=Go(AA,tA,ve,ke-ve),tA.F=AA.mb,tA.F==null&&tA.F.length==0)){yA=mt(AA,3,"Could not decode alpha data.");break A}ve<tA.j&&(Qe=tA.j-ve,ve=tA.j,A(!(1&Qe)),tA.O+=AA.R*Qe,tA.N+=AA.B*(Qe>>1),tA.W+=AA.B*(Qe>>1),tA.F!=null&&(tA.J+=tA.width*Qe)),ve<ke&&(tA.O+=tA.v,tA.N+=tA.v>>1,tA.W+=tA.v>>1,tA.F!=null&&(tA.J+=tA.v),tA.ka=ve-tA.j,tA.U=tA.va-tA.v,tA.T=ke-ve,yA=tA.put(tA))}pA+1!=AA.Ic||Ie||(r(AA.sa,AA.ta-QA,PA,te+16*AA.R,QA),r(AA.qa,AA.ra-VA,kA,bA+8*AA.B,VA),r(AA.Ha,AA.Ia-VA,Ne,Pe+8*AA.B,VA))}if(!yA)return mt(aA,6,"Output aborted.")}return 1}(l,f)),f.bc!=null&&f.bc(f),v&=1}return v?(l.cb=0,v):0}function gn(l,f,v,w,x){x=l[f+v+32*w]+(x>>3),l[f+v+32*w]=-256&x?0>x?0:255:x}function fs(l,f,v,w,x,E){gn(l,f,0,v,w+x),gn(l,f,1,v,w+E),gn(l,f,2,v,w-E),gn(l,f,3,v,w-x)}function mr(l){return(20091*l>>16)+l}function Ho(l,f,v,w){var x,E=0,S=i(16);for(x=0;4>x;++x){var I=l[f+0]+l[f+8],H=l[f+0]-l[f+8],k=(35468*l[f+4]>>16)-mr(l[f+12]),Z=mr(l[f+4])+(35468*l[f+12]>>16);S[E+0]=I+Z,S[E+1]=H+k,S[E+2]=H-k,S[E+3]=I-Z,E+=4,f++}for(x=E=0;4>x;++x)I=(l=S[E+0]+4)+S[E+8],H=l-S[E+8],k=(35468*S[E+4]>>16)-mr(S[E+12]),gn(v,w,0,0,I+(Z=mr(S[E+4])+(35468*S[E+12]>>16))),gn(v,w,1,0,H+k),gn(v,w,2,0,H-k),gn(v,w,3,0,I-Z),E++,w+=32}function Fu(l,f,v,w){var x=l[f+0]+4,E=35468*l[f+4]>>16,S=mr(l[f+4]),I=35468*l[f+1]>>16;fs(v,w,0,x+S,l=mr(l[f+1]),I),fs(v,w,1,x+E,l,I),fs(v,w,2,x-E,l,I),fs(v,w,3,x-S,l,I)}function yp(l,f,v,w,x){Ho(l,f,v,w),x&&Ho(l,f+16,v,w+4)}function Qu(l,f,v,w){Zn(l,f+0,v,w,1),Zn(l,f+32,v,w+128,1)}function wp(l,f,v,w){var x;for(l=l[f+0]+4,x=0;4>x;++x)for(f=0;4>f;++f)gn(v,w,f,x,l)}function Uu(l,f,v,w){l[f+0]&&fr(l,f+0,v,w),l[f+16]&&fr(l,f+16,v,w+4),l[f+32]&&fr(l,f+32,v,w+128),l[f+48]&&fr(l,f+48,v,w+128+4)}function bp(l,f,v,w){var x,E=i(16);for(x=0;4>x;++x){var S=l[f+0+x]+l[f+12+x],I=l[f+4+x]+l[f+8+x],H=l[f+4+x]-l[f+8+x],k=l[f+0+x]-l[f+12+x];E[0+x]=S+I,E[8+x]=S-I,E[4+x]=k+H,E[12+x]=k-H}for(x=0;4>x;++x)S=(l=E[0+4*x]+3)+E[3+4*x],I=E[1+4*x]+E[2+4*x],H=E[1+4*x]-E[2+4*x],k=l-E[3+4*x],v[w+0]=S+I>>3,v[w+16]=k+H>>3,v[w+32]=S-I>>3,v[w+48]=k-H>>3,w+=64}function _o(l,f,v){var w,x=f-32,E=Nr,S=255-l[x-1];for(w=0;w<v;++w){var I,H=E,k=S+l[f-1];for(I=0;I<v;++I)l[f+I]=H[k+l[x+I]];f+=32}}function Cp(l,f){_o(l,f,4)}function xp(l,f){_o(l,f,8)}function Fp(l,f){_o(l,f,16)}function qn(l,f){var v;for(v=0;16>v;++v)r(l,f+32*v,l,f-32,16)}function hs(l,f){var v;for(v=16;0<v;--v)n(l,f,l[f-1],16),f+=32}function ds(l,f,v){var w;for(w=0;16>w;++w)n(f,v+32*w,l,16)}function Eu(l,f){var v,w=16;for(v=0;16>v;++v)w+=l[f-1+32*v]+l[f+v-32];ds(w>>5,l,f)}function tr(l,f){var v,w=8;for(v=0;16>v;++v)w+=l[f-1+32*v];ds(w>>4,l,f)}function Qp(l,f){var v,w=8;for(v=0;16>v;++v)w+=l[f+v-32];ds(w>>4,l,f)}function Su(l,f){ds(128,l,f)}function ce(l,f,v){return l+2*f+v+2>>2}function Up(l,f){var v,w=f-32;for(w=new Uint8Array([ce(l[w-1],l[w+0],l[w+1]),ce(l[w+0],l[w+1],l[w+2]),ce(l[w+1],l[w+2],l[w+3]),ce(l[w+2],l[w+3],l[w+4])]),v=0;4>v;++v)r(l,f+32*v,w,0,w.length)}function Ep(l,f){var v=l[f-1],w=l[f-1+32],x=l[f-1+64],E=l[f-1+96];wA(l,f+0,16843009*ce(l[f-1-32],v,w)),wA(l,f+32,16843009*ce(v,w,x)),wA(l,f+64,16843009*ce(w,x,E)),wA(l,f+96,16843009*ce(x,E,E))}function In(l,f){var v,w=4;for(v=0;4>v;++v)w+=l[f+v-32]+l[f-1+32*v];for(w>>=3,v=0;4>v;++v)n(l,f+32*v,w,4)}function Iu(l,f){var v=l[f-1+0],w=l[f-1+32],x=l[f-1+64],E=l[f-1-32],S=l[f+0-32],I=l[f+1-32],H=l[f+2-32],k=l[f+3-32];l[f+0+96]=ce(w,x,l[f-1+96]),l[f+1+96]=l[f+0+64]=ce(v,w,x),l[f+2+96]=l[f+1+64]=l[f+0+32]=ce(E,v,w),l[f+3+96]=l[f+2+64]=l[f+1+32]=l[f+0+0]=ce(S,E,v),l[f+3+64]=l[f+2+32]=l[f+1+0]=ce(I,S,E),l[f+3+32]=l[f+2+0]=ce(H,I,S),l[f+3+0]=ce(k,H,I)}function Lu(l,f){var v=l[f+1-32],w=l[f+2-32],x=l[f+3-32],E=l[f+4-32],S=l[f+5-32],I=l[f+6-32],H=l[f+7-32];l[f+0+0]=ce(l[f+0-32],v,w),l[f+1+0]=l[f+0+32]=ce(v,w,x),l[f+2+0]=l[f+1+32]=l[f+0+64]=ce(w,x,E),l[f+3+0]=l[f+2+32]=l[f+1+64]=l[f+0+96]=ce(x,E,S),l[f+3+32]=l[f+2+64]=l[f+1+96]=ce(E,S,I),l[f+3+64]=l[f+2+96]=ce(S,I,H),l[f+3+96]=ce(I,H,H)}function gs(l,f){var v=l[f-1+0],w=l[f-1+32],x=l[f-1+64],E=l[f-1-32],S=l[f+0-32],I=l[f+1-32],H=l[f+2-32],k=l[f+3-32];l[f+0+0]=l[f+1+64]=E+S+1>>1,l[f+1+0]=l[f+2+64]=S+I+1>>1,l[f+2+0]=l[f+3+64]=I+H+1>>1,l[f+3+0]=H+k+1>>1,l[f+0+96]=ce(x,w,v),l[f+0+64]=ce(w,v,E),l[f+0+32]=l[f+1+96]=ce(v,E,S),l[f+1+32]=l[f+2+96]=ce(E,S,I),l[f+2+32]=l[f+3+96]=ce(S,I,H),l[f+3+32]=ce(I,H,k)}function Po(l,f){var v=l[f+0-32],w=l[f+1-32],x=l[f+2-32],E=l[f+3-32],S=l[f+4-32],I=l[f+5-32],H=l[f+6-32],k=l[f+7-32];l[f+0+0]=v+w+1>>1,l[f+1+0]=l[f+0+64]=w+x+1>>1,l[f+2+0]=l[f+1+64]=x+E+1>>1,l[f+3+0]=l[f+2+64]=E+S+1>>1,l[f+0+32]=ce(v,w,x),l[f+1+32]=l[f+0+96]=ce(w,x,E),l[f+2+32]=l[f+1+96]=ce(x,E,S),l[f+3+32]=l[f+2+96]=ce(E,S,I),l[f+3+64]=ce(S,I,H),l[f+3+96]=ce(I,H,k)}function Sp(l,f){var v=l[f-1+0],w=l[f-1+32],x=l[f-1+64],E=l[f-1+96];l[f+0+0]=v+w+1>>1,l[f+2+0]=l[f+0+32]=w+x+1>>1,l[f+2+32]=l[f+0+64]=x+E+1>>1,l[f+1+0]=ce(v,w,x),l[f+3+0]=l[f+1+32]=ce(w,x,E),l[f+3+32]=l[f+1+64]=ce(x,E,E),l[f+3+64]=l[f+2+64]=l[f+0+96]=l[f+1+96]=l[f+2+96]=l[f+3+96]=E}function Ip(l,f){var v=l[f-1+0],w=l[f-1+32],x=l[f-1+64],E=l[f-1+96],S=l[f-1-32],I=l[f+0-32],H=l[f+1-32],k=l[f+2-32];l[f+0+0]=l[f+2+32]=v+S+1>>1,l[f+0+32]=l[f+2+64]=w+v+1>>1,l[f+0+64]=l[f+2+96]=x+w+1>>1,l[f+0+96]=E+x+1>>1,l[f+3+0]=ce(I,H,k),l[f+2+0]=ce(S,I,H),l[f+1+0]=l[f+3+32]=ce(v,S,I),l[f+1+32]=l[f+3+64]=ce(w,v,S),l[f+1+64]=l[f+3+96]=ce(x,w,v),l[f+1+96]=ce(E,x,w)}function Lp(l,f){var v;for(v=0;8>v;++v)r(l,f+32*v,l,f-32,8)}function ko(l,f){var v;for(v=0;8>v;++v)n(l,f,l[f-1],8),f+=32}function ha(l,f,v){var w;for(w=0;8>w;++w)n(f,v+32*w,l,8)}function Fi(l,f){var v,w=8;for(v=0;8>v;++v)w+=l[f+v-32]+l[f-1+32*v];ha(w>>4,l,f)}function Np(l,f){var v,w=4;for(v=0;8>v;++v)w+=l[f+v-32];ha(w>>3,l,f)}function da(l,f){var v,w=4;for(v=0;8>v;++v)w+=l[f-1+32*v];ha(w>>3,l,f)}function Do(l,f){ha(128,l,f)}function ps(l,f,v){var w=l[f-v],x=l[f+0],E=3*(x-w)+kp[1020+l[f-2*v]-l[f+v]],S=ju[112+(E+4>>3)];l[f-v]=Nr[255+w+ju[112+(E+3>>3)]],l[f+0]=Nr[255+x-S]}function Nu(l,f,v,w){var x=l[f+0],E=l[f+v];return $r[255+l[f-2*v]-l[f-v]]>w||$r[255+E-x]>w}function Tu(l,f,v,w){return 4*$r[255+l[f-v]-l[f+0]]+$r[255+l[f-2*v]-l[f+v]]<=w}function Ou(l,f,v,w,x){var E=l[f-3*v],S=l[f-2*v],I=l[f-v],H=l[f+0],k=l[f+v],Z=l[f+2*v],hA=l[f+3*v];return 4*$r[255+I-H]+$r[255+S-k]>w?0:$r[255+l[f-4*v]-E]<=x&&$r[255+E-S]<=x&&$r[255+S-I]<=x&&$r[255+hA-Z]<=x&&$r[255+Z-k]<=x&&$r[255+k-H]<=x}function Hu(l,f,v,w){var x=2*w+1;for(w=0;16>w;++w)Tu(l,f+w,v,x)&&ps(l,f+w,v)}function Ln(l,f,v,w){var x=2*w+1;for(w=0;16>w;++w)Tu(l,f+w*v,1,x)&&ps(l,f+w*v,1)}function Xn(l,f,v,w){var x;for(x=3;0<x;--x)Hu(l,f+=4*v,v,w)}function Tp(l,f,v,w){var x;for(x=3;0<x;--x)Ln(l,f+=4,v,w)}function Qi(l,f,v,w,x,E,S,I){for(E=2*E+1;0<x--;){if(Ou(l,f,v,E,S))if(Nu(l,f,v,I))ps(l,f,v);else{var H=l,k=f,Z=v,hA=H[k-2*Z],dA=H[k-Z],aA=H[k+0],CA=H[k+Z],pA=H[k+2*Z],AA=27*(yA=kp[1020+3*(aA-dA)+kp[1020+hA-CA]])+63>>7,tA=18*yA+63>>7,yA=9*yA+63>>7;H[k-3*Z]=Nr[255+H[k-3*Z]+yA],H[k-2*Z]=Nr[255+hA+tA],H[k-Z]=Nr[255+dA+AA],H[k+0]=Nr[255+aA-AA],H[k+Z]=Nr[255+CA-tA],H[k+2*Z]=Nr[255+pA-yA]}f+=w}}function pn(l,f,v,w,x,E,S,I){for(E=2*E+1;0<x--;){if(Ou(l,f,v,E,S))if(Nu(l,f,v,I))ps(l,f,v);else{var H=l,k=f,Z=v,hA=H[k-Z],dA=H[k+0],aA=H[k+Z],CA=ju[112+((pA=3*(dA-hA))+4>>3)],pA=ju[112+(pA+3>>3)],AA=CA+1>>1;H[k-2*Z]=Nr[255+H[k-2*Z]+AA],H[k-Z]=Nr[255+hA+pA],H[k+0]=Nr[255+dA-CA],H[k+Z]=Nr[255+aA-AA]}f+=w}}function Mo(l,f,v,w,x,E){Qi(l,f,v,1,16,w,x,E)}function ga(l,f,v,w,x,E){Qi(l,f,1,v,16,w,x,E)}function Op(l,f,v,w,x,E){var S;for(S=3;0<S;--S)pn(l,f+=4*v,v,1,16,w,x,E)}function vs(l,f,v,w,x,E){var S;for(S=3;0<S;--S)pn(l,f+=4,1,v,16,w,x,E)}function Hp(l,f,v,w,x,E,S,I){Qi(l,f,x,1,8,E,S,I),Qi(v,w,x,1,8,E,S,I)}function Ro(l,f,v,w,x,E,S,I){Qi(l,f,1,x,8,E,S,I),Qi(v,w,1,x,8,E,S,I)}function Ko(l,f,v,w,x,E,S,I){pn(l,f+4*x,x,1,8,E,S,I),pn(v,w+4*x,x,1,8,E,S,I)}function _u(l,f,v,w,x,E,S,I){pn(l,f+4,1,x,8,E,S,I),pn(v,w+4,1,x,8,E,S,I)}function Bs(){this.ba=new _e,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new Ve,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function Vo(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function jo(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function Pu(){this.ua=0,this.Wa=new W,this.vb=new W,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new V,this.yc=new T}function _p(){this.xb=this.a=0,this.l=new us,this.ca=new _e,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new U,this.Pb=0,this.wd=new U,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new Pu,this.ab=0,this.gc=a(4,jo),this.Oc=0}function ms(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new us,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function pa(l,f,v,w,x,E,S){for(l=l==null?0:l[f+0],f=0;f<S;++f)x[E+f]=l+v[w+f]&255,l=x[E+f]}function zo(l,f,v,w,x,E,S){var I;if(l==null)pa(null,null,v,w,x,E,S);else for(I=0;I<S;++I)x[E+I]=l[f+I]+v[w+I]&255}function Ui(l,f,v,w,x,E,S){if(l==null)pa(null,null,v,w,x,E,S);else{var I,H=l[f+0],k=H,Z=H;for(I=0;I<S;++I)k=Z+(H=l[f+I])-k,Z=v[w+I]+(-256&k?0>k?0:255:k)&255,k=H,x[E+I]=Z}}function Go(l,f,v,w){var x=f.width,E=f.o;if(A(l!=null&&f!=null),0>v||0>=w||v+w>E)return null;if(!l.Cc){if(l.ga==null){var S;if(l.ga=new ms,(S=l.ga==null)||(S=f.width*f.o,A(l.Gb.length==0),l.Gb=i(S),l.Uc=0,l.Gb==null?S=0:(l.mb=l.Gb,l.nb=l.Uc,l.rc=null,S=1),S=!S),!S){S=l.ga;var I=l.Fa,H=l.P,k=l.qc,Z=l.mb,hA=l.nb,dA=H+1,aA=k-1,CA=S.l;if(A(I!=null&&Z!=null&&f!=null),Ti[0]=null,Ti[1]=pa,Ti[2]=zo,Ti[3]=Ui,S.ca=Z,S.tb=hA,S.c=f.width,S.i=f.height,A(0<S.c&&0<S.i),1>=k)f=0;else if(S.$a=I[H+0]>>0&3,S.Z=I[H+0]>>2&3,S.Lc=I[H+0]>>4&3,H=I[H+0]>>6&3,0>S.$a||1<S.$a||4<=S.Z||1<S.Lc||H)f=0;else if(CA.put=Br,CA.ac=st,CA.bc=Ur,CA.ma=S,CA.width=f.width,CA.height=f.height,CA.Da=f.Da,CA.v=f.v,CA.va=f.va,CA.j=f.j,CA.o=f.o,S.$a)A:{A(S.$a==1),f=cr();e:for(;;){if(f==null){f=0;break A}if(A(S!=null),S.mc=f,f.c=S.c,f.i=S.i,f.l=S.l,f.l.ma=S,f.l.width=S.c,f.l.height=S.i,f.a=0,eA(f.m,I,dA,aA),!Ir(S.c,S.i,1,f,null)||(f.ab==1&&f.gc[0].hc==3&&Kr(f.s)?(S.ic=1,I=f.c*f.i,f.Ta=null,f.Ua=0,f.V=i(I),f.Ba=0,f.V==null?(f.a=1,f=0):f=1):(S.ic=0,f=Sn(f,S.c)),!f))break e;f=1;break A}S.mc=null,f=0}else f=aA>=S.c*S.i;S=!f}if(S)return null;l.ga.Lc!=1?l.Ga=0:w=E-v}A(l.ga!=null),A(v+w<=E);A:{if(f=(I=l.ga).c,E=I.l.o,I.$a==0){if(dA=l.rc,aA=l.Vc,CA=l.Fa,H=l.P+1+v*f,k=l.mb,Z=l.nb+v*f,A(H<=l.P+l.qc),I.Z!=0)for(A(Ti[I.Z]!=null),S=0;S<w;++S)Ti[I.Z](dA,aA,CA,H,k,Z,f),dA=k,aA=Z,Z+=f,H+=f;else for(S=0;S<w;++S)r(k,Z,CA,H,f),dA=k,aA=Z,Z+=f,H+=f;l.rc=dA,l.Vc=aA}else{if(A(I.mc!=null),f=v+w,A((S=I.mc)!=null),A(f<=S.i),S.C>=f)f=1;else if(I.ic||uA(),I.ic){I=S.V,dA=S.Ba,aA=S.c;var pA=S.i,AA=(CA=1,H=S.$/aA,k=S.$%aA,Z=S.m,hA=S.s,S.$),tA=aA*pA,yA=aA*f,QA=hA.wc,bA=AA<yA?Se(hA,k,H):null;A(AA<=tA),A(f<=pA),A(Kr(hA));e:for(;;){for(;!Z.h&&AA<yA;){if(k&QA||(bA=Se(hA,k,H)),A(bA!=null),j(Z),256>(pA=Ot(bA.G[0],bA.H[0],Z)))I[dA+AA]=pA,++AA,++k>=aA&&(k=0,++H<=f&&!(H%16)&&jt(S,H));else{if(!(280>pA)){CA=0;break e}pA=Er(pA-256,Z);var VA,PA=Ot(bA.G[4],bA.H[4],Z);if(j(Z),!(AA>=(PA=or(aA,PA=Er(PA,Z)))&&tA-AA>=pA)){CA=0;break e}for(VA=0;VA<pA;++VA)I[dA+AA+VA]=I[dA+AA+VA-PA];for(AA+=pA,k+=pA;k>=aA;)k-=aA,++H<=f&&!(H%16)&&jt(S,H);AA<yA&&k&QA&&(bA=Se(hA,k,H))}A(Z.h==K(Z))}jt(S,H>f?f:H);break e}!CA||Z.h&&AA<tA?(CA=0,S.a=Z.h?5:3):S.$=AA,f=CA}else f=Bt(S,S.V,S.Ba,S.c,S.i,f,xi);if(!f){w=0;break A}}v+w>=E&&(l.Cc=1),w=1}if(!w)return null;if(l.Cc&&((w=l.ga)!=null&&(w.mc=null),l.ga=null,0<l.Ga))return alert("todo:WebPDequantizeLevels"),null}return l.nb+v*x}function g(l,f,v,w,x,E){for(;0<x--;){var S,I=l,H=f+(v?1:0),k=l,Z=f+(v?0:3);for(S=0;S<w;++S){var hA=k[Z+4*S];hA!=255&&(hA*=32897,I[H+4*S+0]=I[H+4*S+0]*hA>>23,I[H+4*S+1]=I[H+4*S+1]*hA>>23,I[H+4*S+2]=I[H+4*S+2]*hA>>23)}f+=E}}function F(l,f,v,w,x){for(;0<w--;){var E;for(E=0;E<v;++E){var S=l[f+2*E+0],I=15&(k=l[f+2*E+1]),H=4369*I,k=(240&k|k>>4)*H>>16;l[f+2*E+0]=(240&S|S>>4)*H>>16&240|(15&S|S<<4)*H>>16>>4&15,l[f+2*E+1]=240&k|I}f+=x}}function G(l,f,v,w,x,E,S,I){var H,k,Z=255;for(k=0;k<x;++k){for(H=0;H<w;++H){var hA=l[f+H];E[S+4*H]=hA,Z&=hA}f+=v,S+=I}return Z!=255}function Y(l,f,v,w,x){var E;for(E=0;E<x;++E)v[w+E]=l[f+E]>>8}function uA(){Gr=g,$e=F,We=G,wt=Y}function vA(l,f,v){_[l]=function(w,x,E,S,I,H,k,Z,hA,dA,aA,CA,pA,AA,tA,yA,QA){var bA,VA=QA-1>>1,PA=I[H+0]|k[Z+0]<<16,te=hA[dA+0]|aA[CA+0]<<16;A(w!=null);var kA=3*PA+te+131074>>2;for(f(w[x+0],255&kA,kA>>16,pA,AA),E!=null&&(kA=3*te+PA+131074>>2,f(E[S+0],255&kA,kA>>16,tA,yA)),bA=1;bA<=VA;++bA){var Ne=I[H+bA]|k[Z+bA]<<16,Pe=hA[dA+bA]|aA[CA+bA]<<16,Ie=PA+Ne+te+Pe+524296,Qe=Ie+2*(Ne+te)>>3;kA=Qe+PA>>1,PA=(Ie=Ie+2*(PA+Pe)>>3)+Ne>>1,f(w[x+2*bA-1],255&kA,kA>>16,pA,AA+(2*bA-1)*v),f(w[x+2*bA-0],255&PA,PA>>16,pA,AA+(2*bA-0)*v),E!=null&&(kA=Ie+te>>1,PA=Qe+Pe>>1,f(E[S+2*bA-1],255&kA,kA>>16,tA,yA+(2*bA-1)*v),f(E[S+2*bA+0],255&PA,PA>>16,tA,yA+(2*bA+0)*v)),PA=Ne,te=Pe}1&QA||(kA=3*PA+te+131074>>2,f(w[x+QA-1],255&kA,kA>>16,pA,AA+(QA-1)*v),E!=null&&(kA=3*te+PA+131074>>2,f(E[S+QA-1],255&kA,kA>>16,tA,yA+(QA-1)*v)))}}function SA(){Wr[zu]=fP,Wr[Gu]=pw,Wr[uw]=hP,Wr[$u]=vw,Wr[Wu]=Bw,Wr[Dp]=mw,Wr[fw]=dP,Wr[Mp]=pw,Wr[Rp]=vw,Wr[qu]=Bw,Wr[Kp]=mw}function KA(l){return l&-16384?0>l?0:255:l>>gP}function JA(l,f){return KA((19077*l>>8)+(26149*f>>8)-14234)}function de(l,f,v){return KA((19077*l>>8)-(6419*f>>8)-(13320*v>>8)+8708)}function fe(l,f){return KA((19077*l>>8)+(33050*f>>8)-17685)}function Ee(l,f,v,w,x){w[x+0]=JA(l,v),w[x+1]=de(l,f,v),w[x+2]=fe(l,f)}function et(l,f,v,w,x){w[x+0]=fe(l,f),w[x+1]=de(l,f,v),w[x+2]=JA(l,v)}function lt(l,f,v,w,x){var E=de(l,f,v);f=E<<3&224|fe(l,f)>>3,w[x+0]=248&JA(l,v)|E>>5,w[x+1]=f}function Qt(l,f,v,w,x){var E=240&fe(l,f)|15;w[x+0]=240&JA(l,v)|de(l,f,v)>>4,w[x+1]=E}function rr(l,f,v,w,x){w[x+0]=255,Ee(l,f,v,w,x+1)}function Pt(l,f,v,w,x){et(l,f,v,w,x),w[x+3]=255}function vn(l,f,v,w,x){Ee(l,f,v,w,x),w[x+3]=255}function Lr(l,f){return 0>l?0:l>f?f:l}function Nn(l,f,v){_[l]=function(w,x,E,S,I,H,k,Z,hA){for(var dA=Z+(-2&hA)*v;Z!=dA;)f(w[x+0],E[S+0],I[H+0],k,Z),f(w[x+1],E[S+0],I[H+0],k,Z+v),x+=2,++S,++H,Z+=2*v;1&hA&&f(w[x+0],E[S+0],I[H+0],k,Z)}}function ku(l,f,v){return v==0?l==0?f==0?6:5:f==0?4:0:v}function $o(l,f,v,w,x){switch(l>>>30){case 3:Zn(f,v,w,x,0);break;case 2:yt(f,v,w,x);break;case 1:fr(f,v,w,x)}}function Wo(l,f){var v,w,x=f.M,E=f.Nb,S=l.oc,I=l.pc+40,H=l.oc,k=l.pc+584,Z=l.oc,hA=l.pc+600;for(v=0;16>v;++v)S[I+32*v-1]=129;for(v=0;8>v;++v)H[k+32*v-1]=129,Z[hA+32*v-1]=129;for(0<x?S[I-1-32]=H[k-1-32]=Z[hA-1-32]=129:(n(S,I-32-1,127,21),n(H,k-32-1,127,9),n(Z,hA-32-1,127,9)),w=0;w<l.za;++w){var dA=f.ya[f.aa+w];if(0<w){for(v=-1;16>v;++v)r(S,I+32*v-4,S,I+32*v+12,4);for(v=-1;8>v;++v)r(H,k+32*v-4,H,k+32*v+4,4),r(Z,hA+32*v-4,Z,hA+32*v+4,4)}var aA=l.Gd,CA=l.Hd+w,pA=dA.ad,AA=dA.Hc;if(0<x&&(r(S,I-32,aA[CA].y,0,16),r(H,k-32,aA[CA].f,0,8),r(Z,hA-32,aA[CA].ea,0,8)),dA.Za){var tA=S,yA=I-32+16;for(0<x&&(w>=l.za-1?n(tA,yA,aA[CA].y[15],4):r(tA,yA,aA[CA+1].y,0,4)),v=0;4>v;v++)tA[yA+128+v]=tA[yA+256+v]=tA[yA+384+v]=tA[yA+0+v];for(v=0;16>v;++v,AA<<=2)tA=S,yA=I+ww[v],Bn[dA.Ob[v]](tA,yA),$o(AA,pA,16*+v,tA,yA)}else if(tA=ku(w,x,dA.Ob[0]),Ni[tA](S,I),AA!=0)for(v=0;16>v;++v,AA<<=2)$o(AA,pA,16*+v,S,I+ww[v]);for(v=dA.Gc,tA=ku(w,x,dA.Dd),ei[tA](H,k),ei[tA](Z,hA),AA=pA,tA=H,yA=k,255&(dA=v>>0)&&(170&dA?Zo(AA,256,tA,yA):jr(AA,256,tA,yA)),dA=Z,AA=hA,255&(v>>=8)&&(170&v?Zo(pA,320,dA,AA):jr(pA,320,dA,AA)),x<l.Ub-1&&(r(aA[CA].y,0,S,I+480,16),r(aA[CA].f,0,H,k+224,8),r(aA[CA].ea,0,Z,hA+224,8)),v=8*E*l.B,aA=l.sa,CA=l.ta+16*w+16*E*l.R,pA=l.qa,dA=l.ra+8*w+v,AA=l.Ha,tA=l.Ia+8*w+v,v=0;16>v;++v)r(aA,CA+v*l.R,S,I+32*v,16);for(v=0;8>v;++v)r(pA,dA+v*l.B,H,k+32*v,8),r(AA,tA+v*l.B,Z,hA+32*v,8)}}function ys(l,f,v,w,x,E,S,I,H){var k=[0],Z=[0],hA=0,dA=H!=null?H.kd:0,aA=H??new Vo;if(l==null||12>v)return 7;aA.data=l,aA.w=f,aA.ha=v,f=[f],v=[v],aA.gb=[aA.gb];A:{var CA=f,pA=v,AA=aA.gb;if(A(l!=null),A(pA!=null),A(AA!=null),AA[0]=0,12<=pA[0]&&!t(l,CA[0],"RIFF")){if(t(l,CA[0]+8,"WEBP")){AA=3;break A}var tA=LA(l,CA[0]+4);if(12>tA||4294967286<tA){AA=3;break A}if(dA&&tA>pA[0]-8){AA=7;break A}AA[0]=tA,CA[0]+=12,pA[0]-=12}AA=0}if(AA!=0)return AA;for(tA=0<aA.gb[0],v=v[0];;){A:{var yA=l;pA=f,AA=v;var QA=k,bA=Z,VA=CA=[0];if((kA=hA=[hA])[0]=0,8>AA[0])AA=7;else{if(!t(yA,pA[0],"VP8X")){if(LA(yA,pA[0]+4)!=10){AA=3;break A}if(18>AA[0]){AA=7;break A}var PA=LA(yA,pA[0]+8),te=1+UA(yA,pA[0]+12);if(2147483648<=te*(yA=1+UA(yA,pA[0]+15))){AA=3;break A}VA!=null&&(VA[0]=PA),QA!=null&&(QA[0]=te),bA!=null&&(bA[0]=yA),pA[0]+=18,AA[0]-=18,kA[0]=1}AA=0}}if(hA=hA[0],CA=CA[0],AA!=0)return AA;if(pA=!!(2&CA),!tA&&hA)return 3;if(E!=null&&(E[0]=!!(16&CA)),S!=null&&(S[0]=pA),I!=null&&(I[0]=0),S=k[0],CA=Z[0],hA&&pA&&H==null){AA=0;break}if(4>v){AA=7;break}if(tA&&hA||!tA&&!hA&&!t(l,f[0],"ALPH")){v=[v],aA.na=[aA.na],aA.P=[aA.P],aA.Sa=[aA.Sa];A:{PA=l,AA=f,tA=v;var kA=aA.gb;QA=aA.na,bA=aA.P,VA=aA.Sa,te=22,A(PA!=null),A(tA!=null),yA=AA[0];var Ne=tA[0];for(A(QA!=null),A(VA!=null),QA[0]=null,bA[0]=null,VA[0]=0;;){if(AA[0]=yA,tA[0]=Ne,8>Ne){AA=7;break A}var Pe=LA(PA,yA+4);if(4294967286<Pe){AA=3;break A}var Ie=8+Pe+1&-2;if(te+=Ie,0<kA&&te>kA){AA=3;break A}if(!t(PA,yA,"VP8 ")||!t(PA,yA,"VP8L")){AA=0;break A}if(Ne[0]<Ie){AA=7;break A}t(PA,yA,"ALPH")||(QA[0]=PA,bA[0]=yA+8,VA[0]=Pe),yA+=Ie,Ne-=Ie}}if(v=v[0],aA.na=aA.na[0],aA.P=aA.P[0],aA.Sa=aA.Sa[0],AA!=0)break}v=[v],aA.Ja=[aA.Ja],aA.xa=[aA.xa];A:if(kA=l,AA=f,tA=v,QA=aA.gb[0],bA=aA.Ja,VA=aA.xa,PA=AA[0],yA=!t(kA,PA,"VP8 "),te=!t(kA,PA,"VP8L"),A(kA!=null),A(tA!=null),A(bA!=null),A(VA!=null),8>tA[0])AA=7;else{if(yA||te){if(kA=LA(kA,PA+4),12<=QA&&kA>QA-12){AA=3;break A}if(dA&&kA>tA[0]-8){AA=7;break A}bA[0]=kA,AA[0]+=8,tA[0]-=8,VA[0]=te}else VA[0]=5<=tA[0]&&kA[PA+0]==47&&!(kA[PA+4]>>5),bA[0]=tA[0];AA=0}if(v=v[0],aA.Ja=aA.Ja[0],aA.xa=aA.xa[0],f=f[0],AA!=0)break;if(4294967286<aA.Ja)return 3;if(I==null||pA||(I[0]=aA.xa?2:1),S=[S],CA=[CA],aA.xa){if(5>v){AA=7;break}I=S,dA=CA,pA=E,l==null||5>v?l=0:5<=v&&l[f+0]==47&&!(l[f+4]>>5)?(tA=[0],kA=[0],QA=[0],eA(bA=new U,l,f,v),Ae(bA,tA,kA,QA)?(I!=null&&(I[0]=tA[0]),dA!=null&&(dA[0]=kA[0]),pA!=null&&(pA[0]=QA[0]),l=1):l=0):l=0}else{if(10>v){AA=7;break}I=CA,l==null||10>v||!bu(l,f+3,v-3)?l=0:(dA=l[f+0]|l[f+1]<<8|l[f+2]<<16,pA=16383&(l[f+7]<<8|l[f+6]),l=16383&(l[f+9]<<8|l[f+8]),1&dA||3<(dA>>1&7)||!(dA>>4&1)||dA>>5>=aA.Ja||!pA||!l?l=0:(S&&(S[0]=pA),I&&(I[0]=l),l=1))}if(!l||(S=S[0],CA=CA[0],hA&&(k[0]!=S||Z[0]!=CA)))return 3;H!=null&&(H[0]=aA,H.offset=f-H.w,A(4294967286>f-H.w),A(H.offset==H.ha-v));break}return AA==0||AA==7&&hA&&H==null?(E!=null&&(E[0]|=aA.na!=null&&0<aA.na.length),w!=null&&(w[0]=S),x!=null&&(x[0]=CA),0):AA}function qo(l,f,v){var w=f.width,x=f.height,E=0,S=0,I=w,H=x;if(f.Da=l!=null&&0<l.Da,f.Da&&(I=l.cd,H=l.bd,E=l.v,S=l.j,11>v||(E&=-2,S&=-2),0>E||0>S||0>=I||0>=H||E+I>w||S+H>x))return 0;if(f.v=E,f.j=S,f.va=E+I,f.o=S+H,f.U=I,f.T=H,f.da=l!=null&&0<l.da,f.da){if(!ZA(I,H,v=[l.ib],E=[l.hb]))return 0;f.ib=v[0],f.hb=E[0]}return f.ob=l!=null&&l.ob,f.Kb=l==null||!l.Sd,f.da&&(f.ob=f.ib<3*w/4&&f.hb<3*x/4,f.Kb=0),1}function Xo(l){if(l==null)return 2;if(11>l.S){var f=l.f.RGBA;f.fb+=(l.height-1)*f.A,f.A=-f.A}else f=l.f.kb,l=l.height,f.O+=(l-1)*f.fa,f.fa=-f.fa,f.N+=(l-1>>1)*f.Ab,f.Ab=-f.Ab,f.W+=(l-1>>1)*f.Db,f.Db=-f.Db,f.F!=null&&(f.J+=(l-1)*f.lb,f.lb=-f.lb);return 0}function ws(l,f,v,w){if(w==null||0>=l||0>=f)return 2;if(v!=null){if(v.Da){var x=v.cd,E=v.bd,S=-2&v.v,I=-2&v.j;if(0>S||0>I||0>=x||0>=E||S+x>l||I+E>f)return 2;l=x,f=E}if(v.da){if(!ZA(l,f,x=[v.ib],E=[v.hb]))return 2;l=x[0],f=E[0]}}w.width=l,w.height=f;A:{var H=w.width,k=w.height;if(l=w.S,0>=H||0>=k||!(l>=zu&&13>l))l=2;else{if(0>=w.Rd&&w.sd==null){S=E=x=f=0;var Z=(I=H*bw[l])*k;if(11>l||(E=(k+1)/2*(f=(H+1)/2),l==12&&(S=(x=H)*k)),(k=i(Z+2*E+S))==null){l=1;break A}w.sd=k,11>l?((H=w.f.RGBA).eb=k,H.fb=0,H.A=I,H.size=Z):((H=w.f.kb).y=k,H.O=0,H.fa=I,H.Fd=Z,H.f=k,H.N=0+Z,H.Ab=f,H.Cd=E,H.ea=k,H.W=0+Z+E,H.Db=f,H.Ed=E,l==12&&(H.F=k,H.J=0+Z+2*E),H.Tc=S,H.lb=x)}if(f=1,x=w.S,E=w.width,S=w.height,x>=zu&&13>x)if(11>x)l=w.f.RGBA,f&=(I=Math.abs(l.A))*(S-1)+E<=l.size,f&=I>=E*bw[x],f&=l.eb!=null;else{l=w.f.kb,I=(E+1)/2,Z=(S+1)/2,H=Math.abs(l.fa),k=Math.abs(l.Ab);var hA=Math.abs(l.Db),dA=Math.abs(l.lb),aA=dA*(S-1)+E;f&=H*(S-1)+E<=l.Fd,f&=k*(Z-1)+I<=l.Cd,f=(f&=hA*(Z-1)+I<=l.Ed)&H>=E&k>=I&hA>=I,f&=l.y!=null,f&=l.f!=null,f&=l.ea!=null,x==12&&(f&=dA>=E,f&=aA<=l.Tc,f&=l.F!=null)}else f=0;l=f?0:2}}return l!=0||v!=null&&v.fd&&(l=Xo(w)),l}var zt=64,bs=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],Cs=24,xs=32,Yo=8,yr=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];NA("Predictor0","PredictorAdd0"),_.Predictor0=function(){return 4278190080},_.Predictor1=function(l){return l},_.Predictor2=function(l,f,v){return f[v+0]},_.Predictor3=function(l,f,v){return f[v+1]},_.Predictor4=function(l,f,v){return f[v-1]},_.Predictor5=function(l,f,v){return TA(TA(l,f[v+1]),f[v+0])},_.Predictor6=function(l,f,v){return TA(l,f[v-1])},_.Predictor7=function(l,f,v){return TA(l,f[v+0])},_.Predictor8=function(l,f,v){return TA(f[v-1],f[v+0])},_.Predictor9=function(l,f,v){return TA(f[v+0],f[v+1])},_.Predictor10=function(l,f,v){return TA(TA(l,f[v-1]),TA(f[v+0],f[v+1]))},_.Predictor11=function(l,f,v){var w=f[v+0];return 0>=ee(w>>24&255,l>>24&255,(f=f[v-1])>>24&255)+ee(w>>16&255,l>>16&255,f>>16&255)+ee(w>>8&255,l>>8&255,f>>8&255)+ee(255&w,255&l,255&f)?w:l},_.Predictor12=function(l,f,v){var w=f[v+0];return(zA((l>>24&255)+(w>>24&255)-((f=f[v-1])>>24&255))<<24|zA((l>>16&255)+(w>>16&255)-(f>>16&255))<<16|zA((l>>8&255)+(w>>8&255)-(f>>8&255))<<8|zA((255&l)+(255&w)-(255&f)))>>>0},_.Predictor13=function(l,f,v){var w=f[v-1];return(WA((l=TA(l,f[v+0]))>>24&255,w>>24&255)<<24|WA(l>>16&255,w>>16&255)<<16|WA(l>>8&255,w>>8&255)<<8|WA(l>>0&255,w>>0&255))>>>0};var Pp=_.PredictorAdd0;_.PredictorAdd1=ie,NA("Predictor2","PredictorAdd2"),NA("Predictor3","PredictorAdd3"),NA("Predictor4","PredictorAdd4"),NA("Predictor5","PredictorAdd5"),NA("Predictor6","PredictorAdd6"),NA("Predictor7","PredictorAdd7"),NA("Predictor8","PredictorAdd8"),NA("Predictor9","PredictorAdd9"),NA("Predictor10","PredictorAdd10"),NA("Predictor11","PredictorAdd11"),NA("Predictor12","PredictorAdd12"),NA("Predictor13","PredictorAdd13");var Jo=_.PredictorAdd2;se("ColorIndexInverseTransform","MapARGB","32b",function(l){return l>>8&255},function(l){return l}),se("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(l){return l},function(l){return l>>8&255});var Du,Vr=_.ColorIndexInverseTransform,Fs=_.MapARGB,Mu=_.VP8LColorIndexInverseTransformAlpha,Ru=_.MapAlpha,Ei=_.VP8LPredictorsAdd=[];Ei.length=16,(_.VP8LPredictors=[]).length=16,(_.VP8LPredictorsAdd_C=[]).length=16,(_.VP8LPredictors_C=[]).length=16;var va,wr,ur,Si,Yn,Jn,Qs,Zn,yt,Zo,fr,jr,Us,Ku,Al,Ba,ma,Ii,ya,Es,wa,Li,el,zr,Gr,$e,We,wt,It=i(511),Ai=i(2041),tl=i(225),Ss=i(767),Vu=0,kp=Ai,ju=tl,Nr=Ss,$r=It,zu=0,Gu=1,uw=2,$u=3,Wu=4,Dp=5,fw=6,Mp=7,Rp=8,qu=9,Kp=10,J_=[2,3,7],Z_=[3,3,11],hw=[280,256,256,256,40],AP=[0,1,1,1,0],eP=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],tP=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],rP=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],nP=8,Vp=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],jp=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],rl=null,iP=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],aP=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],dw=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],sP=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],oP=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],lP=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],cP=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],Ni=[],Bn=[],ei=[],uP=1,gw=2,Ti=[],Wr=[];vA("UpsampleRgbLinePair",Ee,3),vA("UpsampleBgrLinePair",et,3),vA("UpsampleRgbaLinePair",vn,4),vA("UpsampleBgraLinePair",Pt,4),vA("UpsampleArgbLinePair",rr,4),vA("UpsampleRgba4444LinePair",Qt,2),vA("UpsampleRgb565LinePair",lt,2);var fP=_.UpsampleRgbLinePair,hP=_.UpsampleBgrLinePair,pw=_.UpsampleRgbaLinePair,vw=_.UpsampleBgraLinePair,Bw=_.UpsampleArgbLinePair,mw=_.UpsampleRgba4444LinePair,dP=_.UpsampleRgb565LinePair,Xu=16,Yu=1<<Xu-1,nl=-227,zp=482,gP=6,yw=0,pP=i(256),vP=i(256),BP=i(256),mP=i(256),yP=i(zp-nl),wP=i(zp-nl);Nn("YuvToRgbRow",Ee,3),Nn("YuvToBgrRow",et,3),Nn("YuvToRgbaRow",vn,4),Nn("YuvToBgraRow",Pt,4),Nn("YuvToArgbRow",rr,4),Nn("YuvToRgba4444Row",Qt,2),Nn("YuvToRgb565Row",lt,2);var ww=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Ju=[0,2,8],bP=[8,7,6,4,4,2,2,2,1,1,1,1],CP=1;this.WebPDecodeRGBA=function(l,f,v,w,x){var E=Gu,S=new Bs,I=new _e;S.ba=I,I.S=E,I.width=[I.width],I.height=[I.height];var H=I.width,k=I.height,Z=new He;if(Z==null||l==null)var hA=2;else A(Z!=null),hA=ys(l,f,v,Z.width,Z.height,Z.Pd,Z.Qd,Z.format,null);if(hA!=0?H=0:(H!=null&&(H[0]=Z.width[0]),k!=null&&(k[0]=Z.height[0]),H=1),H){I.width=I.width[0],I.height=I.height[0],w!=null&&(w[0]=I.width),x!=null&&(x[0]=I.height);A:{if(w=new us,(x=new Vo).data=l,x.w=f,x.ha=v,x.kd=1,f=[0],A(x!=null),((l=ys(x.data,x.w,x.ha,null,null,null,f,null,x))==0||l==7)&&f[0]&&(l=4),(f=l)==0){if(A(S!=null),w.data=x.data,w.w=x.w+x.offset,w.ha=x.ha-x.offset,w.put=Br,w.ac=st,w.bc=Ur,w.ma=S,x.xa){if((l=cr())==null){S=1;break A}if(function(dA,aA){var CA=[0],pA=[0],AA=[0];e:for(;;){if(dA==null)return 0;if(aA==null)return dA.a=2,0;if(dA.l=aA,dA.a=0,eA(dA.m,aA.data,aA.w,aA.ha),!Ae(dA.m,CA,pA,AA)){dA.a=3;break e}if(dA.xb=gw,aA.width=CA[0],aA.height=pA[0],!Ir(CA[0],pA[0],1,dA,null))break e;return 1}return A(dA.a!=0),0}(l,w)){if(w=(f=ws(w.width,w.height,S.Oa,S.ba))==0){e:{w=l;t:for(;;){if(w==null){w=0;break e}if(A(w.s.yc!=null),A(w.s.Ya!=null),A(0<w.s.Wb),A((v=w.l)!=null),A((x=v.ma)!=null),w.xb!=0){if(w.ca=x.ba,w.tb=x.tb,A(w.ca!=null),!qo(x.Oa,v,$u)){w.a=2;break t}if(!Sn(w,v.width)||v.da)break t;if((v.da||mA(w.ca.S))&&uA(),11>w.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),w.ca.f.kb.F!=null&&uA()),w.Pb&&0<w.s.ua&&w.s.vb.X==null&&!MA(w.s.vb,w.s.Wa.Xa)){w.a=1;break t}w.xb=0}if(!Bt(w,w.V,w.Ba,w.c,w.i,v.o,Wn))break t;x.Dc=w.Ma,w=1;break e}A(w.a!=0),w=0}w=!w}w&&(f=l.a)}else f=l.a}else{if((l=new Bp)==null){S=1;break A}if(l.Fa=x.na,l.P=x.P,l.qc=x.Sa,Cu(l,w)){if((f=ws(w.width,w.height,S.Oa,S.ba))==0){if(l.Aa=0,v=S.Oa,A((x=l)!=null),v!=null){if(0<(H=0>(H=v.Md)?0:100<H?255:255*H/100)){for(k=Z=0;4>k;++k)12>(hA=x.pb[k]).lc&&(hA.ia=H*bP[0>hA.lc?0:hA.lc]>>3),Z|=hA.ia;Z&&(alert("todo:VP8InitRandom"),x.ia=1)}x.Ga=v.Id,100<x.Ga?x.Ga=100:0>x.Ga&&(x.Ga=0)}mp(l,w)||(f=l.a)}}else f=l.a}f==0&&S.Oa!=null&&S.Oa.fd&&(f=Xo(S.ba))}S=f}E=S!=0?null:11>E?I.f.RGBA.eb:I.f.kb.y}else E=null;return E};var bw=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function c(_,X){for(var nA="",N=0;N<4;N++)nA+=String.fromCharCode(_[X++]);return nA}function u(_,X){return(_[X+0]<<0|_[X+1]<<8|_[X+2]<<16)>>>0}function d(_,X){return(_[X+0]<<0|_[X+1]<<8|_[X+2]<<16|_[X+3]<<24)>>>0}new o;var p=[0],h=[0],m=[],B=new o,C=e,b=function(_,X){var nA={},N=0,T=!1,M=0,V=0;if(nA.frames=[],!function(P,K,$,j){for(var q=0;q<j;q++)if(P[K+q]!=$.charCodeAt(q))return!0;return!1}(_,X,"RIFF",4)){var sA,iA;for(d(_,X+=4),X+=8;X<_.length;){var lA=c(_,X),eA=d(_,X+=4);X+=4;var cA=eA+(1&eA);switch(lA){case"VP8 ":case"VP8L":nA.frames[N]===void 0&&(nA.frames[N]={}),(U=nA.frames[N]).src_off=T?V:X-8,U.src_size=M+eA+8,N++,T&&(T=!1,M=0,V=0);break;case"VP8X":(U=nA.header={}).feature_flags=_[X];var fA=X+4;U.canvas_width=1+u(_,fA),fA+=3,U.canvas_height=1+u(_,fA),fA+=3;break;case"ALPH":T=!0,M=cA+8,V=X-8;break;case"ANIM":(U=nA.header).bgcolor=d(_,X),fA=X+4,U.loop_count=(sA=_)[(iA=fA)+0]<<0|sA[iA+1]<<8,fA+=2;break;case"ANMF":var BA,U;(U=nA.frames[N]={}).offset_x=2*u(_,X),X+=3,U.offset_y=2*u(_,X),X+=3,U.width=1+u(_,X),X+=3,U.height=1+u(_,X),X+=3,U.duration=u(_,X),X+=3,BA=_[X++],U.dispose=1&BA,U.blend=BA>>1&1}lA!="ANMF"&&(X+=cA)}return nA}}(C,0);b.response=C,b.rgbaoutput=!0,b.dataurl=!1;var Q=b.header?b.header:null,L=b.frames?b.frames:null;if(Q){Q.loop_counter=Q.loop_count,p=[Q.canvas_height],h=[Q.canvas_width];for(var D=0;D<L.length&&L[D].blend!=0;D++);}var O=L[0],z=B.WebPDecodeRGBA(C,O.src_off,O.src_size,h,p);O.rgba=z,O.imgwidth=h[0],O.imgheight=p[0];for(var R=0;R<h[0]*p[0]*4;R++)m[R]=z[R];return this.width=h,this.height=p,this.data=m,this}(function(e){var A=function(){return typeof Sh=="function"},t=function(p,h,m,B){var C=4,b=a;switch(B){case e.image_compression.FAST:C=1,b=i;break;case e.image_compression.MEDIUM:C=6,b=s;break;case e.image_compression.SLOW:C=9,b=o}p=r(p,h,m,b);var Q=Sh(p,{level:C});return e.__addimage__.arrayBufferToBinaryString(Q)},r=function(p,h,m,B){for(var C,b,Q,L=p.length/h,D=new Uint8Array(p.length+L),O=u(),z=0;z<L;z+=1){if(Q=z*h,C=p.subarray(Q,Q+h),B)D.set(B(C,m,b),Q+z);else{for(var R,_=O.length,X=[];R<_;R+=1)X[R]=O[R](C,m,b);var nA=d(X.concat());D.set(X[nA],Q+z)}b=C}return D},n=function(p){var h=Array.apply([],p);return h.unshift(0),h},i=function(p,h){var m,B=[],C=p.length;B[0]=1;for(var b=0;b<C;b+=1)m=p[b-h]||0,B[b+1]=p[b]-m+256&255;return B},a=function(p,h,m){var B,C=[],b=p.length;C[0]=2;for(var Q=0;Q<b;Q+=1)B=m&&m[Q]||0,C[Q+1]=p[Q]-B+256&255;return C},s=function(p,h,m){var B,C,b=[],Q=p.length;b[0]=3;for(var L=0;L<Q;L+=1)B=p[L-h]||0,C=m&&m[L]||0,b[L+1]=p[L]+256-(B+C>>>1)&255;return b},o=function(p,h,m){var B,C,b,Q,L=[],D=p.length;L[0]=4;for(var O=0;O<D;O+=1)B=p[O-h]||0,C=m&&m[O]||0,b=m&&m[O-h]||0,Q=c(B,C,b),L[O+1]=p[O]-Q+256&255;return L},c=function(p,h,m){if(p===h&&h===m)return p;var B=Math.abs(h-m),C=Math.abs(p-m),b=Math.abs(p+h-m-m);return B<=C&&B<=b?p:C<=b?h:m},u=function(){return[n,i,a,s,o]},d=function(p){var h=p.map(function(m){return m.reduce(function(B,C){return B+Math.abs(C)},0)});return h.indexOf(Math.min.apply(null,h))};e.processPNG=function(p,h,m,B){var C,b,Q,L,D,O,z,R,_,X,nA,N,T,M,V,sA=this.decode.FLATE_DECODE,iA="";if(this.__addimage__.isArrayBuffer(p)&&(p=new Uint8Array(p)),this.__addimage__.isArrayBufferView(p)){if(p=(Q=new YQ(p)).imgData,b=Q.bits,C=Q.colorSpace,D=Q.colors,[4,6].indexOf(Q.colorType)!==-1){if(Q.bits===8){_=(R=Q.pixelBitlength==32?new Uint32Array(Q.decodePixels().buffer):Q.pixelBitlength==16?new Uint16Array(Q.decodePixels().buffer):new Uint8Array(Q.decodePixels().buffer)).length,nA=new Uint8Array(_*Q.colors),X=new Uint8Array(_);var lA,eA=Q.pixelBitlength-Q.bits;for(M=0,V=0;M<_;M++){for(T=R[M],lA=0;lA<eA;)nA[V++]=T>>>lA&255,lA+=Q.bits;X[M]=T>>>lA&255}}if(Q.bits===16){_=(R=new Uint32Array(Q.decodePixels().buffer)).length,nA=new Uint8Array(_*(32/Q.pixelBitlength)*Q.colors),X=new Uint8Array(_*(32/Q.pixelBitlength)),N=Q.colors>1,M=0,V=0;for(var cA=0;M<_;)T=R[M++],nA[V++]=T>>>0&255,N&&(nA[V++]=T>>>16&255,T=R[M++],nA[V++]=T>>>0&255),X[cA++]=T>>>16&255;b=8}B!==e.image_compression.NONE&&A()?(p=t(nA,Q.width*Q.colors,Q.colors,B),z=t(X,Q.width,1,B)):(p=nA,z=X,sA=void 0)}if(Q.colorType===3&&(C=this.color_spaces.INDEXED,O=Q.palette,Q.transparency.indexed)){var fA=Q.transparency.indexed,BA=0;for(M=0,_=fA.length;M<_;++M)BA+=fA[M];if((BA/=255)===_-1&&fA.indexOf(0)!==-1)L=[fA.indexOf(0)];else if(BA!==_){for(R=Q.decodePixels(),X=new Uint8Array(R.length),M=0,_=R.length;M<_;M++)X[M]=fA[R[M]];z=t(X,Q.width,1)}}var U=function(P){var K;switch(P){case e.image_compression.FAST:K=11;break;case e.image_compression.MEDIUM:K=13;break;case e.image_compression.SLOW:K=14;break;default:K=12}return K}(B);return sA===this.decode.FLATE_DECODE&&(iA="/Predictor "+U+" "),iA+="/Colors "+D+" /BitsPerComponent "+b+" /Columns "+Q.width,(this.__addimage__.isArrayBuffer(p)||this.__addimage__.isArrayBufferView(p))&&(p=this.__addimage__.arrayBufferToBinaryString(p)),(z&&this.__addimage__.isArrayBuffer(z)||this.__addimage__.isArrayBufferView(z))&&(z=this.__addimage__.arrayBufferToBinaryString(z)),{alias:m,data:p,index:h,filter:sA,decodeParameters:iA,transparency:L,palette:O,sMask:z,predictor:U,width:Q.width,height:Q.height,bitsPerComponent:b,colorSpace:C}}}})(ne.API),function(e){e.processGIF89A=function(A,t,r,n){var i=new JQ(A),a=i.width,s=i.height,o=[];i.decodeAndBlitFrameRGBA(0,o);var c={data:o,width:a,height:s},u=new Kh(100).encode(c,100);return e.processJPEG.call(this,u,t,r,n)},e.processGIF87A=e.processGIF89A}(ne.API),tn.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.bitPP===16&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var e=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(e);for(var A=0;A<e;A++){var t=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0);this.palette[A]={red:n,green:r,blue:t,quad:i}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},tn.prototype.parseBGR=function(){this.pos=this.offset;try{var e="bit"+this.bitPP,A=this.width*this.height*4;this.data=new Uint8Array(A),this[e]()}catch(t){Ke.log("bit decode error:"+t)}},tn.prototype.bit1=function(){var e,A=Math.ceil(this.width/8),t=A%4;for(e=this.height-1;e>=0;e--){for(var r=this.bottom_up?e:this.height-1-e,n=0;n<A;n++)for(var i=this.datav.getUint8(this.pos++,!0),a=r*this.width*4+8*n*4,s=0;s<8&&8*n+s<this.width;s++){var o=this.palette[i>>7-s&1];this.data[a+4*s]=o.blue,this.data[a+4*s+1]=o.green,this.data[a+4*s+2]=o.red,this.data[a+4*s+3]=255}t!==0&&(this.pos+=4-t)}},tn.prototype.bit4=function(){for(var e=Math.ceil(this.width/2),A=e%4,t=this.height-1;t>=0;t--){for(var r=this.bottom_up?t:this.height-1-t,n=0;n<e;n++){var i=this.datav.getUint8(this.pos++,!0),a=r*this.width*4+2*n*4,s=i>>4,o=15&i,c=this.palette[s];if(this.data[a]=c.blue,this.data[a+1]=c.green,this.data[a+2]=c.red,this.data[a+3]=255,2*n+1>=this.width)break;c=this.palette[o],this.data[a+4]=c.blue,this.data[a+4+1]=c.green,this.data[a+4+2]=c.red,this.data[a+4+3]=255}A!==0&&(this.pos+=4-A)}},tn.prototype.bit8=function(){for(var e=this.width%4,A=this.height-1;A>=0;A--){for(var t=this.bottom_up?A:this.height-1-A,r=0;r<this.width;r++){var n=this.datav.getUint8(this.pos++,!0),i=t*this.width*4+4*r;if(n<this.palette.length){var a=this.palette[n];this.data[i]=a.red,this.data[i+1]=a.green,this.data[i+2]=a.blue,this.data[i+3]=255}else this.data[i]=255,this.data[i+1]=255,this.data[i+2]=255,this.data[i+3]=255}e!==0&&(this.pos+=4-e)}},tn.prototype.bit15=function(){for(var e=this.width%3,A=parseInt("11111",2),t=this.height-1;t>=0;t--){for(var r=this.bottom_up?t:this.height-1-t,n=0;n<this.width;n++){var i=this.datav.getUint16(this.pos,!0);this.pos+=2;var a=(i&A)/A*255|0,s=(i>>5&A)/A*255|0,o=(i>>10&A)/A*255|0,c=i>>15?255:0,u=r*this.width*4+4*n;this.data[u]=o,this.data[u+1]=s,this.data[u+2]=a,this.data[u+3]=c}this.pos+=e}},tn.prototype.bit16=function(){for(var e=this.width%3,A=parseInt("11111",2),t=parseInt("111111",2),r=this.height-1;r>=0;r--){for(var n=this.bottom_up?r:this.height-1-r,i=0;i<this.width;i++){var a=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(a&A)/A*255|0,o=(a>>5&t)/t*255|0,c=(a>>11)/A*255|0,u=n*this.width*4+4*i;this.data[u]=c,this.data[u+1]=o,this.data[u+2]=s,this.data[u+3]=255}this.pos+=e}},tn.prototype.bit24=function(){for(var e=this.height-1;e>=0;e--){for(var A=this.bottom_up?e:this.height-1-e,t=0;t<this.width;t++){var r=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=A*this.width*4+4*t;this.data[a]=i,this.data[a+1]=n,this.data[a+2]=r,this.data[a+3]=255}this.pos+=this.width%4}},tn.prototype.bit32=function(){for(var e=this.height-1;e>=0;e--)for(var A=this.bottom_up?e:this.height-1-e,t=0;t<this.width;t++){var r=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),s=A*this.width*4+4*t;this.data[s]=i,this.data[s+1]=n,this.data[s+2]=r,this.data[s+3]=a}},tn.prototype.getData=function(){return this.data},function(e){e.processBMP=function(A,t,r,n){var i=new tn(A,!1),a=i.width,s=i.height,o={data:i.getData(),width:a,height:s},c=new Kh(100).encode(o,100);return e.processJPEG.call(this,c,t,r,n)}}(ne.API),Bv.prototype.getData=function(){return this.data},function(e){e.processWEBP=function(A,t,r,n){var i=new Bv(A),a=i.width,s=i.height,o={data:i.getData(),width:a,height:s},c=new Kh(100).encode(o,100);return e.processJPEG.call(this,c,t,r,n)}}(ne.API),ne.API.processRGBA=function(e,A,t){for(var r=e.data,n=r.length,i=new Uint8Array(n/4*3),a=new Uint8Array(n/4),s=0,o=0,c=0;c<n;c+=4){var u=r[c],d=r[c+1],p=r[c+2],h=r[c+3];i[s++]=u,i[s++]=d,i[s++]=p,a[o++]=h}var m=this.__addimage__.arrayBufferToBinaryString(i);return{alpha:this.__addimage__.arrayBufferToBinaryString(a),data:m,index:A,alias:t,colorSpace:"DeviceRGB",bitsPerComponent:8,width:e.width,height:e.height}},ne.API.setLanguage=function(e){return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),{af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[e]!==void 0&&(this.internal.languageSettings.languageCode=e,this.internal.languageSettings.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},$a=ne.API,gc=$a.getCharWidthsArray=function(e,A){var t,r,n=(A=A||{}).font||this.internal.getFont(),i=A.fontSize||this.internal.getFontSize(),a=A.charSpace||this.internal.getCharSpace(),s=A.widths?A.widths:n.metadata.Unicode.widths,o=s.fof?s.fof:1,c=A.kerning?A.kerning:n.metadata.Unicode.kerning,u=c.fof?c.fof:1,d=A.doKerning!==!1,p=0,h=e.length,m=0,B=s[0]||o,C=[];for(t=0;t<h;t++)r=e.charCodeAt(t),typeof n.metadata.widthOfString=="function"?C.push((n.metadata.widthOfGlyph(n.metadata.characterToGlyph(r))+a*(1e3/i)||0)/1e3):(p=d&&Le(c[r])==="object"&&!isNaN(parseInt(c[r][m],10))?c[r][m]/u:0,C.push((s[r]||B)/o+p)),m=r;return C},dv=$a.getStringUnitWidth=function(e,A){var t=(A=A||{}).fontSize||this.internal.getFontSize(),r=A.font||this.internal.getFont(),n=A.charSpace||this.internal.getCharSpace();return $a.processArabic&&(e=$a.processArabic(e)),typeof r.metadata.widthOfString=="function"?r.metadata.widthOfString(e,t,n)/t:gc.apply(this,arguments).reduce(function(i,a){return i+a},0)},gv=function(e,A,t,r){for(var n=[],i=0,a=e.length,s=0;i!==a&&s+A[i]<t;)s+=A[i],i++;n.push(e.slice(0,i));var o=i;for(s=0;i!==a;)s+A[i]>r&&(n.push(e.slice(o,i)),s=0,o=i),s+=A[i],i++;return o!==i&&n.push(e.slice(o,i)),n},pv=function(e,A,t){t||(t={});var r,n,i,a,s,o,c,u=[],d=[u],p=t.textIndent||0,h=0,m=0,B=e.split(" "),C=gc.apply(this,[" ",t])[0];if(o=t.lineIndent===-1?B[0].length+2:t.lineIndent||0){var b=Array(o).join(" "),Q=[];B.map(function(D){(D=D.split(/\s*\n/)).length>1?Q=Q.concat(D.map(function(O,z){return(z&&O.length?`
|
|
456
|
+
`:"")+O})):Q.push(D[0])}),B=Q,o=dv.apply(this,[b,t])}for(i=0,a=B.length;i<a;i++){var L=0;if(r=B[i],o&&r[0]==`
|
|
457
|
+
`&&(r=r.substr(1),L=1),p+h+(m=(n=gc.apply(this,[r,t])).reduce(function(D,O){return D+O},0))>A||L){if(m>A){for(s=gv.apply(this,[r,n,A-(p+h),A]),u.push(s.shift()),u=[s.pop()];s.length;)d.push([s.shift()]);m=n.slice(r.length-(u[0]?u[0].length:0)).reduce(function(D,O){return D+O},0)}else u=[r];d.push(u),p=m+o,h=C}else u.push(r),p+=h+m,h=C}return c=o?function(D,O){return(O?b:"")+D.join(" ")}:function(D){return D.join(" ")},d.map(c)},$a.splitTextToSize=function(e,A,t){var r,n=(t=t||{}).fontSize||this.internal.getFontSize(),i=(function(u){if(u.widths&&u.kerning)return{widths:u.widths,kerning:u.kerning};var d=this.internal.getFont(u.fontName,u.fontStyle);return d.metadata.Unicode?{widths:d.metadata.Unicode.widths||{0:1},kerning:d.metadata.Unicode.kerning||{}}:{font:d.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,t);r=Array.isArray(e)?e:String(e).split(/\r?\n/);var a=1*this.internal.scaleFactor*A/n;i.textIndent=t.textIndent?1*t.textIndent*this.internal.scaleFactor/n:0,i.lineIndent=t.lineIndent;var s,o,c=[];for(s=0,o=r.length;s<o;s++)c=c.concat(pv.apply(this,[r[s],a,i]));return c},function(e){e.__fontmetrics__=e.__fontmetrics__||{};for(var A="klmnopqrstuvwxyz",t={},r={},n=0;n<A.length;n++)t[A[n]]="0123456789abcdef"[n],r["0123456789abcdef"[n]]=A[n];var i=function(d){return"0x"+parseInt(d,10).toString(16)},a=e.__fontmetrics__.compress=function(d){var p,h,m,B,C=["{"];for(var b in d){if(p=d[b],isNaN(parseInt(b,10))?h="'"+b+"'":(b=parseInt(b,10),h=(h=i(b).slice(2)).slice(0,-1)+r[h.slice(-1)]),typeof p=="number")p<0?(m=i(p).slice(3),B="-"):(m=i(p).slice(2),B=""),m=B+m.slice(0,-1)+r[m.slice(-1)];else{if(Le(p)!=="object")throw new Error("Don't know what to do with value type "+Le(p)+".");m=a(p)}C.push(h+m)}return C.push("}"),C.join("")},s=e.__fontmetrics__.uncompress=function(d){if(typeof d!="string")throw new Error("Invalid argument passed to uncompress.");for(var p,h,m,B,C={},b=1,Q=C,L=[],D="",O="",z=d.length-1,R=1;R<z;R+=1)(B=d[R])=="'"?p?(m=p.join(""),p=void 0):p=[]:p?p.push(B):B=="{"?(L.push([Q,m]),Q={},m=void 0):B=="}"?((h=L.pop())[0][h[1]]=Q,m=void 0,Q=h[0]):B=="-"?b=-1:m===void 0?t.hasOwnProperty(B)?(D+=t[B],m=parseInt(D,16)*b,b=1,D=""):D+=B:t.hasOwnProperty(B)?(O+=t[B],Q[m]=parseInt(O,16)*b,b=1,m=void 0,O=""):O+=B;return C},o={codePages:["WinAnsiEncoding"],WinAnsiEncoding:s("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},c={Unicode:{Courier:o,"Courier-Bold":o,"Courier-BoldOblique":o,"Courier-Oblique":o,Helvetica:o,"Helvetica-Bold":o,"Helvetica-BoldOblique":o,"Helvetica-Oblique":o,"Times-Roman":o,"Times-Bold":o,"Times-BoldItalic":o,"Times-Italic":o}},u={Unicode:{"Courier-Oblique":s("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":s("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":s("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:s("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":s("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":s("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:s("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:s("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":s("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:s("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":s("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":s("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":s("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":s("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};e.events.push(["addFont",function(d){var p=d.font,h=u.Unicode[p.postScriptName];h&&(p.metadata.Unicode={},p.metadata.Unicode.widths=h.widths,p.metadata.Unicode.kerning=h.kerning);var m=c.Unicode[p.postScriptName];m&&(p.metadata.Unicode.encoding=m,p.encoding=m.codePages[0])}])}(ne.API),function(e){var A=function(t){for(var r=t.length,n=new Uint8Array(r),i=0;i<r;i++)n[i]=t.charCodeAt(i);return n};e.API.events.push(["addFont",function(t){var r=void 0,n=t.font,i=t.instance;if(!n.isStandardFont){if(i===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+n.postScriptName+"').");if(typeof(r=i.existsFileInVFS(n.postScriptName)===!1?i.loadFile(n.postScriptName):i.getFileFromVFS(n.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+n.postScriptName+"').");(function(a,s){s=/^\x00\x01\x00\x00/.test(s)?A(s):A(so(s)),a.metadata=e.API.TTFFont.open(s),a.metadata.Unicode=a.metadata.Unicode||{encoding:{},kerning:{},widths:[]},a.metadata.glyIdsUsed=[0]})(n,r)}}])}(ne),function(e){function A(){return(ae.canvg?Promise.resolve(ae.canvg):Promise.resolve().then(()=>Y_)).catch(function(t){return Promise.reject(new Error("Could not load canvg: "+t))}).then(function(t){return t.default?t.default:t})}ne.API.addSvgAsImage=function(t,r,n,i,a,s,o,c){if(isNaN(r)||isNaN(n))throw Ke.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(i)||isNaN(a))throw Ke.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var u=document.createElement("canvas");u.width=i,u.height=a;var d=u.getContext("2d");d.fillStyle="#fff",d.fillRect(0,0,u.width,u.height);var p={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},h=this;return A().then(function(m){return m.fromString(d,t,p)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(m){return m.render(p)}).then(function(){h.addImage(u.toDataURL("image/jpeg",1),r,n,i,a,o,c)})}}(),ne.API.putTotalPages=function(e){var A,t=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(A=new RegExp(e,"g"),t=this.internal.getNumberOfPages()):(A=new RegExp(this.pdfEscape16(e,this.internal.getFont()),"g"),t=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var r=1;r<=this.internal.getNumberOfPages();r++)for(var n=0;n<this.internal.pages[r].length;n++)this.internal.pages[r][n]=this.internal.pages[r][n].replace(A,t);return this},ne.API.viewerPreferences=function(e,A){var t;e=e||{},A=A||!1;var r,n,i,a={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},s=Object.keys(a),o=[],c=0,u=0,d=0;function p(m,B){var C,b=!1;for(C=0;C<m.length;C+=1)m[C]===B&&(b=!0);return b}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(a)),this.internal.viewerpreferences.isSubscribed=!1),t=this.internal.viewerpreferences.configuration,e==="reset"||A===!0){var h=s.length;for(d=0;d<h;d+=1)t[s[d]].value=t[s[d]].defaultValue,t[s[d]].explicitSet=!1}if(Le(e)==="object"){for(n in e)if(i=e[n],p(s,n)&&i!==void 0){if(t[n].type==="boolean"&&typeof i=="boolean")t[n].value=i;else if(t[n].type==="name"&&p(t[n].valueSet,i))t[n].value=i;else if(t[n].type==="integer"&&Number.isInteger(i))t[n].value=i;else if(t[n].type==="array"){for(c=0;c<i.length;c+=1)if(r=!0,i[c].length===1&&typeof i[c][0]=="number")o.push(String(i[c]-1));else if(i[c].length>1){for(u=0;u<i[c].length;u+=1)typeof i[c][u]!="number"&&(r=!1);r===!0&&o.push([i[c][0]-1,i[c][1]-1].join(" "))}t[n].value="["+o.join(" ")+"]"}else t[n].value=t[n].defaultValue;t[n].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var m,B=[];for(m in t)t[m].explicitSet===!0&&(t[m].type==="name"?B.push("/"+m+" /"+t[m].value):B.push("/"+m+" "+t[m].value));B.length!==0&&this.internal.write(`/ViewerPreferences
|
|
458
|
+
<<
|
|
459
|
+
`+B.join(`
|
|
460
|
+
`)+`
|
|
461
|
+
>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=t,this},function(e){var A=function(){var r='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',n=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),i=unescape(encodeURIComponent(r)),a=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),s=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),o=unescape(encodeURIComponent("</x:xmpmeta>")),c=i.length+a.length+s.length+n.length+o.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+c+" >>"),this.internal.write("stream"),this.internal.write(n+i+a+s+o),this.internal.write("endstream"),this.internal.write("endobj")},t=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};e.addMetadata=function(r,n){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:r,namespaceuri:n||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",t),this.internal.events.subscribe("postPutResources",A)),this}}(ne.API),function(e){var A=e.API,t=A.pdfEscape16=function(i,a){for(var s,o=a.metadata.Unicode.widths,c=["","0","00","000","0000"],u=[""],d=0,p=i.length;d<p;++d){if(s=a.metadata.characterToGlyph(i.charCodeAt(d)),a.metadata.glyIdsUsed.push(s),a.metadata.toUnicode[s]=i.charCodeAt(d),o.indexOf(s)==-1&&(o.push(s),o.push([parseInt(a.metadata.widthOfGlyph(s),10)])),s=="0")return u.join("");s=s.toString(16),u.push(c[4-s.length],s)}return u.join("")},r=function(i){var a,s,o,c,u,d,p;for(u=`/CIDInit /ProcSet findresource begin
|
|
462
|
+
12 dict begin
|
|
463
|
+
begincmap
|
|
464
|
+
/CIDSystemInfo <<
|
|
465
|
+
/Registry (Adobe)
|
|
466
|
+
/Ordering (UCS)
|
|
467
|
+
/Supplement 0
|
|
468
|
+
>> def
|
|
469
|
+
/CMapName /Adobe-Identity-UCS def
|
|
470
|
+
/CMapType 2 def
|
|
471
|
+
1 begincodespacerange
|
|
472
|
+
<0000><ffff>
|
|
473
|
+
endcodespacerange`,o=[],d=0,p=(s=Object.keys(i).sort(function(h,m){return h-m})).length;d<p;d++)a=s[d],o.length>=100&&(u+=`
|
|
474
|
+
`+o.length+` beginbfchar
|
|
475
|
+
`+o.join(`
|
|
476
|
+
`)+`
|
|
477
|
+
endbfchar`,o=[]),i[a]!==void 0&&i[a]!==null&&typeof i[a].toString=="function"&&(c=("0000"+i[a].toString(16)).slice(-4),a=("0000"+(+a).toString(16)).slice(-4),o.push("<"+a+"><"+c+">"));return o.length&&(u+=`
|
|
478
|
+
`+o.length+` beginbfchar
|
|
479
|
+
`+o.join(`
|
|
480
|
+
`)+`
|
|
481
|
+
endbfchar
|
|
482
|
+
`),u+=`endcmap
|
|
483
|
+
CMapName currentdict /CMap defineresource pop
|
|
484
|
+
end
|
|
485
|
+
end`};A.events.push(["putFont",function(i){(function(a){var s=a.font,o=a.out,c=a.newObject,u=a.putStream;if(s.metadata instanceof e.API.TTFFont&&s.encoding==="Identity-H"){for(var d=s.metadata.Unicode.widths,p=s.metadata.subset.encode(s.metadata.glyIdsUsed,1),h="",m=0;m<p.length;m++)h+=String.fromCharCode(p[m]);var B=c();u({data:h,addLength1:!0,objectId:B}),o("endobj");var C=c();u({data:r(s.metadata.toUnicode),addLength1:!0,objectId:C}),o("endobj");var b=c();o("<<"),o("/Type /FontDescriptor"),o("/FontName /"+Ma(s.fontName)),o("/FontFile2 "+B+" 0 R"),o("/FontBBox "+e.API.PDFObject.convert(s.metadata.bbox)),o("/Flags "+s.metadata.flags),o("/StemV "+s.metadata.stemV),o("/ItalicAngle "+s.metadata.italicAngle),o("/Ascent "+s.metadata.ascender),o("/Descent "+s.metadata.decender),o("/CapHeight "+s.metadata.capHeight),o(">>"),o("endobj");var Q=c();o("<<"),o("/Type /Font"),o("/BaseFont /"+Ma(s.fontName)),o("/FontDescriptor "+b+" 0 R"),o("/W "+e.API.PDFObject.convert(d)),o("/CIDToGIDMap /Identity"),o("/DW 1000"),o("/Subtype /CIDFontType2"),o("/CIDSystemInfo"),o("<<"),o("/Supplement 0"),o("/Registry (Adobe)"),o("/Ordering ("+s.encoding+")"),o(">>"),o(">>"),o("endobj"),s.objectNumber=c(),o("<<"),o("/Type /Font"),o("/Subtype /Type0"),o("/ToUnicode "+C+" 0 R"),o("/BaseFont /"+Ma(s.fontName)),o("/Encoding /"+s.encoding),o("/DescendantFonts ["+Q+" 0 R]"),o(">>"),o("endobj"),s.isAlreadyPutted=!0}})(i)}]),A.events.push(["putFont",function(i){(function(a){var s=a.font,o=a.out,c=a.newObject,u=a.putStream;if(s.metadata instanceof e.API.TTFFont&&s.encoding==="WinAnsiEncoding"){for(var d=s.metadata.rawData,p="",h=0;h<d.length;h++)p+=String.fromCharCode(d[h]);var m=c();u({data:p,addLength1:!0,objectId:m}),o("endobj");var B=c();u({data:r(s.metadata.toUnicode),addLength1:!0,objectId:B}),o("endobj");var C=c();o("<<"),o("/Descent "+s.metadata.decender),o("/CapHeight "+s.metadata.capHeight),o("/StemV "+s.metadata.stemV),o("/Type /FontDescriptor"),o("/FontFile2 "+m+" 0 R"),o("/Flags 96"),o("/FontBBox "+e.API.PDFObject.convert(s.metadata.bbox)),o("/FontName /"+Ma(s.fontName)),o("/ItalicAngle "+s.metadata.italicAngle),o("/Ascent "+s.metadata.ascender),o(">>"),o("endobj"),s.objectNumber=c();for(var b=0;b<s.metadata.hmtx.widths.length;b++)s.metadata.hmtx.widths[b]=parseInt(s.metadata.hmtx.widths[b]*(1e3/s.metadata.head.unitsPerEm));o("<</Subtype/TrueType/Type/Font/ToUnicode "+B+" 0 R/BaseFont/"+Ma(s.fontName)+"/FontDescriptor "+C+" 0 R/Encoding/"+s.encoding+" /FirstChar 29 /LastChar 255 /Widths "+e.API.PDFObject.convert(s.metadata.hmtx.widths)+">>"),o("endobj"),s.isAlreadyPutted=!0}})(i)}]);var n=function(i){var a,s=i.text||"",o=i.x,c=i.y,u=i.options||{},d=i.mutex||{},p=d.pdfEscape,h=d.activeFontKey,m=d.fonts,B=h,C="",b=0,Q="",L=m[B].encoding;if(m[B].encoding!=="Identity-H")return{text:s,x:o,y:c,options:u,mutex:d};for(Q=s,B=h,Array.isArray(s)&&(Q=s[0]),b=0;b<Q.length;b+=1)m[B].metadata.hasOwnProperty("cmap")&&(a=m[B].metadata.cmap.unicode.codeMap[Q[b].charCodeAt(0)]),a||Q[b].charCodeAt(0)<256&&m[B].metadata.hasOwnProperty("Unicode")?C+=Q[b]:C+="";var D="";return parseInt(B.slice(1))<14||L==="WinAnsiEncoding"?D=p(C,B).split("").map(function(O){return O.charCodeAt(0).toString(16)}).join(""):L==="Identity-H"&&(D=t(C,m[B])),d.isHex=!0,{text:D,x:o,y:c,options:u,mutex:d}};A.events.push(["postProcessText",function(i){var a=i.text||"",s=[],o={text:a,x:i.x,y:i.y,options:i.options,mutex:i.mutex};if(Array.isArray(a)){var c=0;for(c=0;c<a.length;c+=1)Array.isArray(a[c])&&a[c].length===3?s.push([n(Object.assign({},o,{text:a[c][0]})).text,a[c][1],a[c][2]]):s.push(n(Object.assign({},o,{text:a[c]})).text);i.text=s}else i.text=n(Object.assign({},o,{text:a})).text}])}(ne),function(e){var A=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};e.existsFileInVFS=function(t){return A.call(this),this.internal.vFS[t]!==void 0},e.addFileToVFS=function(t,r){return A.call(this),this.internal.vFS[t]=r,this},e.getFileFromVFS=function(t){return A.call(this),this.internal.vFS[t]!==void 0?this.internal.vFS[t]:null}}(ne.API),function(e){e.__bidiEngine__=e.prototype.__bidiEngine__=function(r){var n,i,a,s,o,c,u,d=A,p=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],h=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],m={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},B={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},C=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],b=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),Q=!1,L=0;this.__bidiEngine__={};var D=function(N){var T=N.charCodeAt(),M=T>>8,V=B[M];return V!==void 0?d[256*V+(255&T)]:M===252||M===253?"AL":b.test(M)?"L":M===8?"R":"N"},O=function(N){for(var T,M=0;M<N.length;M++){if((T=D(N.charAt(M)))==="L")return!1;if(T==="R")return!0}return!1},z=function(N,T,M,V){var sA,iA,lA,eA,cA=T[V];switch(cA){case"L":case"R":Q=!1;break;case"N":case"AN":break;case"EN":Q&&(cA="AN");break;case"AL":Q=!0,cA="R";break;case"WS":cA="N";break;case"CS":V<1||V+1>=T.length||(sA=M[V-1])!=="EN"&&sA!=="AN"||(iA=T[V+1])!=="EN"&&iA!=="AN"?cA="N":Q&&(iA="AN"),cA=iA===sA?iA:"N";break;case"ES":cA=(sA=V>0?M[V-1]:"B")==="EN"&&V+1<T.length&&T[V+1]==="EN"?"EN":"N";break;case"ET":if(V>0&&M[V-1]==="EN"){cA="EN";break}if(Q){cA="N";break}for(lA=V+1,eA=T.length;lA<eA&&T[lA]==="ET";)lA++;cA=lA<eA&&T[lA]==="EN"?"EN":"N";break;case"NSM":if(a&&!s){for(eA=T.length,lA=V+1;lA<eA&&T[lA]==="NSM";)lA++;if(lA<eA){var fA=N[V],BA=fA>=1425&&fA<=2303||fA===64286;if(sA=T[lA],BA&&(sA==="R"||sA==="AL")){cA="R";break}}}cA=V<1||(sA=T[V-1])==="B"?"N":M[V-1];break;case"B":Q=!1,n=!0,cA=L;break;case"S":i=!0,cA="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":Q=!1;break;case"BN":cA="N"}return cA},R=function(N,T,M){var V=N.split("");return M&&_(V,M,{hiLevel:L}),V.reverse(),T&&T.reverse(),V.join("")},_=function(N,T,M){var V,sA,iA,lA,eA,cA=-1,fA=N.length,BA=0,U=[],P=L?h:p,K=[];for(Q=!1,n=!1,i=!1,sA=0;sA<fA;sA++)K[sA]=D(N[sA]);for(iA=0;iA<fA;iA++){if(eA=BA,U[iA]=z(N,K,U,iA),V=240&(BA=P[eA][m[U[iA]]]),BA&=15,T[iA]=lA=P[BA][5],V>0)if(V===16){for(sA=cA;sA<iA;sA++)T[sA]=1;cA=-1}else cA=-1;if(P[BA][6])cA===-1&&(cA=iA);else if(cA>-1){for(sA=cA;sA<iA;sA++)T[sA]=lA;cA=-1}K[iA]==="B"&&(T[iA]=0),M.hiLevel|=lA}i&&function($,j,q){for(var rA=0;rA<q;rA++)if($[rA]==="S"){j[rA]=L;for(var oA=rA-1;oA>=0&&$[oA]==="WS";oA--)j[oA]=L}}(K,T,fA)},X=function(N,T,M,V,sA){if(!(sA.hiLevel<N)){if(N===1&&L===1&&!n)return T.reverse(),void(M&&M.reverse());for(var iA,lA,eA,cA,fA=T.length,BA=0;BA<fA;){if(V[BA]>=N){for(eA=BA+1;eA<fA&&V[eA]>=N;)eA++;for(cA=BA,lA=eA-1;cA<lA;cA++,lA--)iA=T[cA],T[cA]=T[lA],T[lA]=iA,M&&(iA=M[cA],M[cA]=M[lA],M[lA]=iA);BA=eA}BA++}}},nA=function(N,T,M){var V=N.split(""),sA={hiLevel:L};return M||(M=[]),_(V,M,sA),function(iA,lA,eA){if(eA.hiLevel!==0&&u)for(var cA,fA=0;fA<iA.length;fA++)lA[fA]===1&&(cA=C.indexOf(iA[fA]))>=0&&(iA[fA]=C[cA+1])}(V,M,sA),X(2,V,T,M,sA),X(1,V,T,M,sA),V.join("")};return this.__bidiEngine__.doBidiReorder=function(N,T,M){if(function(sA,iA){if(iA)for(var lA=0;lA<sA.length;lA++)iA[lA]=lA;s===void 0&&(s=O(sA)),c===void 0&&(c=O(sA))}(N,T),a||!o||c)if(a&&o&&s^c)L=s?1:0,N=R(N,T,M);else if(!a&&o&&c)L=s?1:0,N=nA(N,T,M),N=R(N,T);else if(!a||s||o||c){if(a&&!o&&s^c)N=R(N,T),s?(L=0,N=nA(N,T,M)):(L=1,N=nA(N,T,M),N=R(N,T));else if(a&&s&&!o&&c)L=1,N=nA(N,T,M),N=R(N,T);else if(!a&&!o&&s^c){var V=u;s?(L=1,N=nA(N,T,M),L=0,u=!1,N=nA(N,T,M),u=V):(L=0,N=nA(N,T,M),N=R(N,T),L=1,u=!1,N=nA(N,T,M),u=V,N=R(N,T))}}else L=0,N=nA(N,T,M);else L=s?1:0,N=nA(N,T,M);return N},this.__bidiEngine__.setOptions=function(N){N&&(a=N.isInputVisual,o=N.isOutputVisual,s=N.isInputRtl,c=N.isOutputRtl,u=N.isSymmetricSwapping)},this.__bidiEngine__.setOptions(r),this.__bidiEngine__};var A=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],t=new e.__bidiEngine__({isInputVisual:!0});e.API.events.push(["postProcessText",function(r){var n=r.text,i=(r.x,r.y,r.options||{}),a=(r.mutex,i.lang,[]);if(i.isInputVisual=typeof i.isInputVisual!="boolean"||i.isInputVisual,t.setOptions(i),Object.prototype.toString.call(n)==="[object Array]"){var s=0;for(a=[],s=0;s<n.length;s+=1)Object.prototype.toString.call(n[s])==="[object Array]"?a.push([t.doBidiReorder(n[s][0]),n[s][1],n[s][2]]):a.push([t.doBidiReorder(n[s])]);r.text=a}else r.text=t.doBidiReorder(n);t.setOptions({isInputVisual:!0})}])}(ne),ne.API.TTFFont=function(){function e(A){var t;if(this.rawData=A,t=this.contents=new Bi(A),this.contents.pos=4,t.readString(4)==="ttcf")throw new Error("TTCF not supported.");t.pos=0,this.parse(),this.subset=new hU(this),this.registerTTF()}return e.open=function(A){return new e(A)},e.prototype.parse=function(){return this.directory=new ZQ(this.contents),this.head=new eU(this),this.name=new aU(this),this.cmap=new yv(this),this.toUnicode={},this.hhea=new tU(this),this.maxp=new sU(this),this.hmtx=new oU(this),this.post=new nU(this),this.os2=new rU(this),this.loca=new fU(this),this.glyf=new lU(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},e.prototype.registerTTF=function(){var A,t,r,n,i;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=(function(){var a,s,o,c;for(c=[],a=0,s=(o=this.bbox).length;a<s;a++)A=o[a],c.push(Math.round(A*this.scaleFactor));return c}).call(this),this.stemV=0,this.post.exists?(r=255&(n=this.post.italic_angle),32768&(t=n>>16)&&(t=-(1+(65535^t))),this.italicAngle=+(t+"."+r)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=(i=this.familyClass)===1||i===2||i===3||i===4||i===5||i===7,this.isScript=this.familyClass===10,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),this.italicAngle!==0&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},e.prototype.characterToGlyph=function(A){var t;return((t=this.cmap.unicode)!=null?t.codeMap[A]:void 0)||0},e.prototype.widthOfGlyph=function(A){var t;return t=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(A).advance*t},e.prototype.widthOfString=function(A,t,r){var n,i,a,s;for(a=0,i=0,s=(A=""+A).length;0<=s?i<s:i>s;i=0<=s?++i:--i)n=A.charCodeAt(i),a+=this.widthOfGlyph(this.characterToGlyph(n))+r*(1e3/t)||0;return a*(t/1e3)},e.prototype.lineHeight=function(A,t){var r;return t==null&&(t=!1),r=t?this.lineGap:0,(this.ascender+r-this.decender)/1e3*A},e}();var rn,Bi=function(){function e(A){this.data=A??[],this.pos=0,this.length=this.data.length}return e.prototype.readByte=function(){return this.data[this.pos++]},e.prototype.writeByte=function(A){return this.data[this.pos++]=A},e.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},e.prototype.writeUInt32=function(A){return this.writeByte(A>>>24&255),this.writeByte(A>>16&255),this.writeByte(A>>8&255),this.writeByte(255&A)},e.prototype.readInt32=function(){var A;return(A=this.readUInt32())>=2147483648?A-4294967296:A},e.prototype.writeInt32=function(A){return A<0&&(A+=4294967296),this.writeUInt32(A)},e.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},e.prototype.writeUInt16=function(A){return this.writeByte(A>>8&255),this.writeByte(255&A)},e.prototype.readInt16=function(){var A;return(A=this.readUInt16())>=32768?A-65536:A},e.prototype.writeInt16=function(A){return A<0&&(A+=65536),this.writeUInt16(A)},e.prototype.readString=function(A){var t,r;for(r=[],t=0;0<=A?t<A:t>A;t=0<=A?++t:--t)r[t]=String.fromCharCode(this.readByte());return r.join("")},e.prototype.writeString=function(A){var t,r,n;for(n=[],t=0,r=A.length;0<=r?t<r:t>r;t=0<=r?++t:--t)n.push(this.writeByte(A.charCodeAt(t)));return n},e.prototype.readShort=function(){return this.readInt16()},e.prototype.writeShort=function(A){return this.writeInt16(A)},e.prototype.readLongLong=function(){var A,t,r,n,i,a,s,o;return A=this.readByte(),t=this.readByte(),r=this.readByte(),n=this.readByte(),i=this.readByte(),a=this.readByte(),s=this.readByte(),o=this.readByte(),128&A?-1*(72057594037927940*(255^A)+281474976710656*(255^t)+1099511627776*(255^r)+4294967296*(255^n)+16777216*(255^i)+65536*(255^a)+256*(255^s)+(255^o)+1):72057594037927940*A+281474976710656*t+1099511627776*r+4294967296*n+16777216*i+65536*a+256*s+o},e.prototype.writeLongLong=function(A){var t,r;return t=Math.floor(A/4294967296),r=4294967295&A,this.writeByte(t>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t),this.writeByte(r>>24&255),this.writeByte(r>>16&255),this.writeByte(r>>8&255),this.writeByte(255&r)},e.prototype.readInt=function(){return this.readInt32()},e.prototype.writeInt=function(A){return this.writeInt32(A)},e.prototype.read=function(A){var t,r;for(t=[],r=0;0<=A?r<A:r>A;r=0<=A?++r:--r)t.push(this.readByte());return t},e.prototype.write=function(A){var t,r,n,i;for(i=[],r=0,n=A.length;r<n;r++)t=A[r],i.push(this.writeByte(t));return i},e}(),ZQ=function(){var e;function A(t){var r,n,i;for(this.scalarType=t.readInt(),this.tableCount=t.readShort(),this.searchRange=t.readShort(),this.entrySelector=t.readShort(),this.rangeShift=t.readShort(),this.tables={},n=0,i=this.tableCount;0<=i?n<i:n>i;n=0<=i?++n:--n)r={tag:t.readString(4),checksum:t.readInt(),offset:t.readInt(),length:t.readInt()},this.tables[r.tag]=r}return A.prototype.encode=function(t){var r,n,i,a,s,o,c,u,d,p,h,m,B;for(B in h=Object.keys(t).length,o=Math.log(2),d=16*Math.floor(Math.log(h)/o),a=Math.floor(d/o),u=16*h-d,(n=new Bi).writeInt(this.scalarType),n.writeShort(h),n.writeShort(d),n.writeShort(a),n.writeShort(u),i=16*h,c=n.pos+i,s=null,m=[],t)for(p=t[B],n.writeString(B),n.writeInt(e(p)),n.writeInt(c),n.writeInt(p.length),m=m.concat(p),B==="head"&&(s=c),c+=p.length;c%4;)m.push(0),c++;return n.write(m),r=2981146554-e(n.data),n.pos=s+8,n.writeUInt32(r),n.data},e=function(t){var r,n,i,a;for(t=wv.call(t);t.length%4;)t.push(0);for(i=new Bi(t),n=0,r=0,a=t.length;r<a;r=r+=4)n+=i.readUInt32();return 4294967295&n},A}(),AU={}.hasOwnProperty,Qn=function(e,A){for(var t in A)AU.call(A,t)&&(e[t]=A[t]);function r(){this.constructor=e}return r.prototype=A.prototype,e.prototype=new r,e.__super__=A.prototype,e};rn=function(){function e(A){var t;this.file=A,t=this.file.directory.tables[this.tag],this.exists=!!t,t&&(this.offset=t.offset,this.length=t.length,this.parse(this.file.contents))}return e.prototype.parse=function(){},e.prototype.encode=function(){},e.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},e}();var eU=function(e){function A(){return A.__super__.constructor.apply(this,arguments)}return Qn(A,rn),A.prototype.tag="head",A.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.revision=t.readInt(),this.checkSumAdjustment=t.readInt(),this.magicNumber=t.readInt(),this.flags=t.readShort(),this.unitsPerEm=t.readShort(),this.created=t.readLongLong(),this.modified=t.readLongLong(),this.xMin=t.readShort(),this.yMin=t.readShort(),this.xMax=t.readShort(),this.yMax=t.readShort(),this.macStyle=t.readShort(),this.lowestRecPPEM=t.readShort(),this.fontDirectionHint=t.readShort(),this.indexToLocFormat=t.readShort(),this.glyphDataFormat=t.readShort()},A.prototype.encode=function(t){var r;return(r=new Bi).writeInt(this.version),r.writeInt(this.revision),r.writeInt(this.checkSumAdjustment),r.writeInt(this.magicNumber),r.writeShort(this.flags),r.writeShort(this.unitsPerEm),r.writeLongLong(this.created),r.writeLongLong(this.modified),r.writeShort(this.xMin),r.writeShort(this.yMin),r.writeShort(this.xMax),r.writeShort(this.yMax),r.writeShort(this.macStyle),r.writeShort(this.lowestRecPPEM),r.writeShort(this.fontDirectionHint),r.writeShort(t),r.writeShort(this.glyphDataFormat),r.data},A}(),mv=function(){function e(A,t){var r,n,i,a,s,o,c,u,d,p,h,m,B,C,b,Q,L;switch(this.platformID=A.readUInt16(),this.encodingID=A.readShort(),this.offset=t+A.readInt(),d=A.pos,A.pos=this.offset,this.format=A.readUInt16(),this.length=A.readUInt16(),this.language=A.readUInt16(),this.isUnicode=this.platformID===3&&this.encodingID===1&&this.format===4||this.platformID===0&&this.format===4,this.codeMap={},this.format){case 0:for(o=0;o<256;++o)this.codeMap[o]=A.readByte();break;case 4:for(h=A.readUInt16(),p=h/2,A.pos+=6,i=function(){var D,O;for(O=[],o=D=0;0<=p?D<p:D>p;o=0<=p?++D:--D)O.push(A.readUInt16());return O}(),A.pos+=2,B=function(){var D,O;for(O=[],o=D=0;0<=p?D<p:D>p;o=0<=p?++D:--D)O.push(A.readUInt16());return O}(),c=function(){var D,O;for(O=[],o=D=0;0<=p?D<p:D>p;o=0<=p?++D:--D)O.push(A.readUInt16());return O}(),u=function(){var D,O;for(O=[],o=D=0;0<=p?D<p:D>p;o=0<=p?++D:--D)O.push(A.readUInt16());return O}(),n=(this.length-A.pos+this.offset)/2,s=function(){var D,O;for(O=[],o=D=0;0<=n?D<n:D>n;o=0<=n?++D:--D)O.push(A.readUInt16());return O}(),o=b=0,L=i.length;b<L;o=++b)for(C=i[o],r=Q=m=B[o];m<=C?Q<=C:Q>=C;r=m<=C?++Q:--Q)u[o]===0?a=r+c[o]:(a=s[u[o]/2+(r-m)-(p-o)]||0)!==0&&(a+=c[o]),this.codeMap[r]=65535&a}A.pos=d}return e.encode=function(A,t){var r,n,i,a,s,o,c,u,d,p,h,m,B,C,b,Q,L,D,O,z,R,_,X,nA,N,T,M,V,sA,iA,lA,eA,cA,fA,BA,U,P,K,$,j,q,rA,oA,wA,FA,UA;switch(V=new Bi,a=Object.keys(A).sort(function(LA,MA){return LA-MA}),t){case"macroman":for(B=0,C=function(){var LA=[];for(m=0;m<256;++m)LA.push(0);return LA}(),Q={0:0},i={},sA=0,cA=a.length;sA<cA;sA++)Q[oA=A[n=a[sA]]]==null&&(Q[oA]=++B),i[n]={old:A[n],new:Q[A[n]]},C[n]=Q[A[n]];return V.writeUInt16(1),V.writeUInt16(0),V.writeUInt32(12),V.writeUInt16(0),V.writeUInt16(262),V.writeUInt16(0),V.write(C),{charMap:i,subtable:V.data,maxGlyphID:B+1};case"unicode":for(T=[],d=[],L=0,Q={},r={},b=c=null,iA=0,fA=a.length;iA<fA;iA++)Q[O=A[n=a[iA]]]==null&&(Q[O]=++L),r[n]={old:O,new:Q[O]},s=Q[O]-n,b!=null&&s===c||(b&&d.push(b),T.push(n),c=s),b=n;for(b&&d.push(b),d.push(65535),T.push(65535),nA=2*(X=T.length),_=2*Math.pow(Math.log(X)/Math.LN2,2),p=Math.log(_/2)/Math.LN2,R=2*X-_,o=[],z=[],h=[],m=lA=0,BA=T.length;lA<BA;m=++lA){if(N=T[m],u=d[m],N===65535){o.push(0),z.push(0);break}if(N-(M=r[N].new)>=32768)for(o.push(0),z.push(2*(h.length+X-m)),n=eA=N;N<=u?eA<=u:eA>=u;n=N<=u?++eA:--eA)h.push(r[n].new);else o.push(M-N),z.push(0)}for(V.writeUInt16(3),V.writeUInt16(1),V.writeUInt32(12),V.writeUInt16(4),V.writeUInt16(16+8*X+2*h.length),V.writeUInt16(0),V.writeUInt16(nA),V.writeUInt16(_),V.writeUInt16(p),V.writeUInt16(R),q=0,U=d.length;q<U;q++)n=d[q],V.writeUInt16(n);for(V.writeUInt16(0),rA=0,P=T.length;rA<P;rA++)n=T[rA],V.writeUInt16(n);for(wA=0,K=o.length;wA<K;wA++)s=o[wA],V.writeUInt16(s);for(FA=0,$=z.length;FA<$;FA++)D=z[FA],V.writeUInt16(D);for(UA=0,j=h.length;UA<j;UA++)B=h[UA],V.writeUInt16(B);return{charMap:r,subtable:V.data,maxGlyphID:L+1}}},e}(),yv=function(e){function A(){return A.__super__.constructor.apply(this,arguments)}return Qn(A,rn),A.prototype.tag="cmap",A.prototype.parse=function(t){var r,n,i;for(t.pos=this.offset,this.version=t.readUInt16(),i=t.readUInt16(),this.tables=[],this.unicode=null,n=0;0<=i?n<i:n>i;n=0<=i?++n:--n)r=new mv(t,this.offset),this.tables.push(r),r.isUnicode&&this.unicode==null&&(this.unicode=r);return!0},A.encode=function(t,r){var n,i;return r==null&&(r="macroman"),n=mv.encode(t,r),(i=new Bi).writeUInt16(0),i.writeUInt16(1),n.table=i.data.concat(n.subtable),n},A}(),tU=function(e){function A(){return A.__super__.constructor.apply(this,arguments)}return Qn(A,rn),A.prototype.tag="hhea",A.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.ascender=t.readShort(),this.decender=t.readShort(),this.lineGap=t.readShort(),this.advanceWidthMax=t.readShort(),this.minLeftSideBearing=t.readShort(),this.minRightSideBearing=t.readShort(),this.xMaxExtent=t.readShort(),this.caretSlopeRise=t.readShort(),this.caretSlopeRun=t.readShort(),this.caretOffset=t.readShort(),t.pos+=8,this.metricDataFormat=t.readShort(),this.numberOfMetrics=t.readUInt16()},A}(),rU=function(e){function A(){return A.__super__.constructor.apply(this,arguments)}return Qn(A,rn),A.prototype.tag="OS/2",A.prototype.parse=function(t){if(t.pos=this.offset,this.version=t.readUInt16(),this.averageCharWidth=t.readShort(),this.weightClass=t.readUInt16(),this.widthClass=t.readUInt16(),this.type=t.readShort(),this.ySubscriptXSize=t.readShort(),this.ySubscriptYSize=t.readShort(),this.ySubscriptXOffset=t.readShort(),this.ySubscriptYOffset=t.readShort(),this.ySuperscriptXSize=t.readShort(),this.ySuperscriptYSize=t.readShort(),this.ySuperscriptXOffset=t.readShort(),this.ySuperscriptYOffset=t.readShort(),this.yStrikeoutSize=t.readShort(),this.yStrikeoutPosition=t.readShort(),this.familyClass=t.readShort(),this.panose=function(){var r,n;for(n=[],r=0;r<10;++r)n.push(t.readByte());return n}(),this.charRange=function(){var r,n;for(n=[],r=0;r<4;++r)n.push(t.readInt());return n}(),this.vendorID=t.readString(4),this.selection=t.readShort(),this.firstCharIndex=t.readShort(),this.lastCharIndex=t.readShort(),this.version>0&&(this.ascent=t.readShort(),this.descent=t.readShort(),this.lineGap=t.readShort(),this.winAscent=t.readShort(),this.winDescent=t.readShort(),this.codePageRange=function(){var r,n;for(n=[],r=0;r<2;r=++r)n.push(t.readInt());return n}(),this.version>1))return this.xHeight=t.readShort(),this.capHeight=t.readShort(),this.defaultChar=t.readShort(),this.breakChar=t.readShort(),this.maxContext=t.readShort()},A}(),nU=function(e){function A(){return A.__super__.constructor.apply(this,arguments)}return Qn(A,rn),A.prototype.tag="post",A.prototype.parse=function(t){var r,n,i;switch(t.pos=this.offset,this.format=t.readInt(),this.italicAngle=t.readInt(),this.underlinePosition=t.readShort(),this.underlineThickness=t.readShort(),this.isFixedPitch=t.readInt(),this.minMemType42=t.readInt(),this.maxMemType42=t.readInt(),this.minMemType1=t.readInt(),this.maxMemType1=t.readInt(),this.format){case 65536:break;case 131072:var a;for(n=t.readUInt16(),this.glyphNameIndex=[],a=0;0<=n?a<n:a>n;a=0<=n?++a:--a)this.glyphNameIndex.push(t.readUInt16());for(this.names=[],i=[];t.pos<this.offset+this.length;)r=t.readByte(),i.push(this.names.push(t.readString(r)));return i;case 151552:return n=t.readUInt16(),this.offsets=t.read(n);case 196608:break;case 262144:return this.map=(function(){var s,o,c;for(c=[],a=s=0,o=this.file.maxp.numGlyphs;0<=o?s<o:s>o;a=0<=o?++s:--s)c.push(t.readUInt32());return c}).call(this)}},A}(),iU=function(e,A){this.raw=e,this.length=e.length,this.platformID=A.platformID,this.encodingID=A.encodingID,this.languageID=A.languageID},aU=function(e){function A(){return A.__super__.constructor.apply(this,arguments)}return Qn(A,rn),A.prototype.tag="name",A.prototype.parse=function(t){var r,n,i,a,s,o,c,u,d,p,h;for(t.pos=this.offset,t.readShort(),r=t.readShort(),o=t.readShort(),n=[],a=0;0<=r?a<r:a>r;a=0<=r?++a:--a)n.push({platformID:t.readShort(),encodingID:t.readShort(),languageID:t.readShort(),nameID:t.readShort(),length:t.readShort(),offset:this.offset+o+t.readShort()});for(c={},a=d=0,p=n.length;d<p;a=++d)i=n[a],t.pos=i.offset,u=t.readString(i.length),s=new iU(u,i),c[h=i.nameID]==null&&(c[h]=[]),c[i.nameID].push(s);this.strings=c,this.copyright=c[0],this.fontFamily=c[1],this.fontSubfamily=c[2],this.uniqueSubfamily=c[3],this.fontName=c[4],this.version=c[5];try{this.postscriptName=c[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch{this.postscriptName=c[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=c[7],this.manufacturer=c[8],this.designer=c[9],this.description=c[10],this.vendorUrl=c[11],this.designerUrl=c[12],this.license=c[13],this.licenseUrl=c[14],this.preferredFamily=c[15],this.preferredSubfamily=c[17],this.compatibleFull=c[18],this.sampleText=c[19]},A}(),sU=function(e){function A(){return A.__super__.constructor.apply(this,arguments)}return Qn(A,rn),A.prototype.tag="maxp",A.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.numGlyphs=t.readUInt16(),this.maxPoints=t.readUInt16(),this.maxContours=t.readUInt16(),this.maxCompositePoints=t.readUInt16(),this.maxComponentContours=t.readUInt16(),this.maxZones=t.readUInt16(),this.maxTwilightPoints=t.readUInt16(),this.maxStorage=t.readUInt16(),this.maxFunctionDefs=t.readUInt16(),this.maxInstructionDefs=t.readUInt16(),this.maxStackElements=t.readUInt16(),this.maxSizeOfInstructions=t.readUInt16(),this.maxComponentElements=t.readUInt16(),this.maxComponentDepth=t.readUInt16()},A}(),oU=function(e){function A(){return A.__super__.constructor.apply(this,arguments)}return Qn(A,rn),A.prototype.tag="hmtx",A.prototype.parse=function(t){var r,n,i,a,s,o,c;for(t.pos=this.offset,this.metrics=[],r=0,o=this.file.hhea.numberOfMetrics;0<=o?r<o:r>o;r=0<=o?++r:--r)this.metrics.push({advance:t.readUInt16(),lsb:t.readInt16()});for(i=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var u,d;for(d=[],r=u=0;0<=i?u<i:u>i;r=0<=i?++u:--u)d.push(t.readInt16());return d}(),this.widths=(function(){var u,d,p,h;for(h=[],u=0,d=(p=this.metrics).length;u<d;u++)a=p[u],h.push(a.advance);return h}).call(this),n=this.widths[this.widths.length-1],c=[],r=s=0;0<=i?s<i:s>i;r=0<=i?++s:--s)c.push(this.widths.push(n));return c},A.prototype.forGlyph=function(t){return t in this.metrics?this.metrics[t]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[t-this.metrics.length]}},A}(),wv=[].slice,lU=function(e){function A(){return A.__super__.constructor.apply(this,arguments)}return Qn(A,rn),A.prototype.tag="glyf",A.prototype.parse=function(){return this.cache={}},A.prototype.glyphFor=function(t){var r,n,i,a,s,o,c,u,d,p;return t in this.cache?this.cache[t]:(a=this.file.loca,r=this.file.contents,n=a.indexOf(t),(i=a.lengthOf(t))===0?this.cache[t]=null:(r.pos=this.offset+n,s=(o=new Bi(r.read(i))).readShort(),u=o.readShort(),p=o.readShort(),c=o.readShort(),d=o.readShort(),this.cache[t]=s===-1?new uU(o,u,p,c,d):new cU(o,s,u,p,c,d),this.cache[t]))},A.prototype.encode=function(t,r,n){var i,a,s,o,c;for(s=[],a=[],o=0,c=r.length;o<c;o++)i=t[r[o]],a.push(s.length),i&&(s=s.concat(i.encode(n)));return a.push(s.length),{table:s,offsets:a}},A}(),cU=function(){function e(A,t,r,n,i,a){this.raw=A,this.numberOfContours=t,this.xMin=r,this.yMin=n,this.xMax=i,this.yMax=a,this.compound=!1}return e.prototype.encode=function(){return this.raw.data},e}(),uU=function(){function e(A,t,r,n,i){var a,s;for(this.raw=A,this.xMin=t,this.yMin=r,this.xMax=n,this.yMax=i,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],a=this.raw;s=a.readShort(),this.glyphOffsets.push(a.pos),this.glyphIDs.push(a.readUInt16()),32&s;)a.pos+=1&s?4:2,128&s?a.pos+=8:64&s?a.pos+=4:8&s&&(a.pos+=2)}return e.prototype.encode=function(){var A,t,r;for(t=new Bi(wv.call(this.raw.data)),A=0,r=this.glyphIDs.length;A<r;++A)t.pos=this.glyphOffsets[A];return t.data},e}(),fU=function(e){function A(){return A.__super__.constructor.apply(this,arguments)}return Qn(A,rn),A.prototype.tag="loca",A.prototype.parse=function(t){var r,n;return t.pos=this.offset,r=this.file.head.indexToLocFormat,this.offsets=r===0?(function(){var i,a;for(a=[],n=0,i=this.length;n<i;n+=2)a.push(2*t.readUInt16());return a}).call(this):(function(){var i,a;for(a=[],n=0,i=this.length;n<i;n+=4)a.push(t.readUInt32());return a}).call(this)},A.prototype.indexOf=function(t){return this.offsets[t]},A.prototype.lengthOf=function(t){return this.offsets[t+1]-this.offsets[t]},A.prototype.encode=function(t,r){for(var n=new Uint32Array(this.offsets.length),i=0,a=0,s=0;s<n.length;++s)if(n[s]=i,a<r.length&&r[a]==s){++a,n[s]=i;var o=this.offsets[s],c=this.offsets[s+1]-o;c>0&&(i+=c)}for(var u=new Array(4*n.length),d=0;d<n.length;++d)u[4*d+3]=255&n[d],u[4*d+2]=(65280&n[d])>>8,u[4*d+1]=(16711680&n[d])>>16,u[4*d]=(4278190080&n[d])>>24;return u},A}(),hU=function(){function e(A){this.font=A,this.subset={},this.unicodes={},this.next=33}return e.prototype.generateCmap=function(){var A,t,r,n,i;for(t in n=this.font.cmap.tables[0].codeMap,A={},i=this.subset)r=i[t],A[t]=n[r];return A},e.prototype.glyphsFor=function(A){var t,r,n,i,a,s,o;for(n={},a=0,s=A.length;a<s;a++)n[i=A[a]]=this.font.glyf.glyphFor(i);for(i in t=[],n)(r=n[i])!=null&&r.compound&&t.push.apply(t,r.glyphIDs);if(t.length>0)for(i in o=this.glyphsFor(t))r=o[i],n[i]=r;return n},e.prototype.encode=function(A,t){var r,n,i,a,s,o,c,u,d,p,h,m,B,C,b;for(n in r=yv.encode(this.generateCmap(),"unicode"),a=this.glyphsFor(A),h={0:0},b=r.charMap)h[(o=b[n]).old]=o.new;for(m in p=r.maxGlyphID,a)m in h||(h[m]=p++);return u=function(Q){var L,D;for(L in D={},Q)D[Q[L]]=L;return D}(h),d=Object.keys(u).sort(function(Q,L){return Q-L}),B=function(){var Q,L,D;for(D=[],Q=0,L=d.length;Q<L;Q++)s=d[Q],D.push(u[s]);return D}(),i=this.font.glyf.encode(a,B,h),c=this.font.loca.encode(i.offsets,B),C={cmap:this.font.cmap.raw(),glyf:i.table,loca:c,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(t)},this.font.os2.exists&&(C["OS/2"]=this.font.os2.raw()),this.font.directory.encode(C)},e}();ne.API.PDFObject=function(){var e;function A(){}return e=function(t,r){return(Array(r+1).join("0")+t).slice(-r)},A.convert=function(t){var r,n,i,a;if(Array.isArray(t))return"["+function(){var s,o,c;for(c=[],s=0,o=t.length;s<o;s++)r=t[s],c.push(A.convert(r));return c}().join(" ")+"]";if(typeof t=="string")return"/"+t;if(t!=null&&t.isString)return"("+t+")";if(t instanceof Date)return"(D:"+e(t.getUTCFullYear(),4)+e(t.getUTCMonth(),2)+e(t.getUTCDate(),2)+e(t.getUTCHours(),2)+e(t.getUTCMinutes(),2)+e(t.getUTCSeconds(),2)+"Z)";if({}.toString.call(t)==="[object Object]"){for(n in i=["<<"],t)a=t[n],i.push("/"+n+" "+A.convert(a));return i.push(">>"),i.join(`
|
|
486
|
+
`)}return""+t},A}();async function bv({records:e=[],templateSchema:A,orientation:t="vertical",fileName:r="ID_Cards_Batch_Print.pdf",pageOptions:n={},onProgress:i=()=>{},orgAssets:a={},fieldDefinitions:s=[]}){if(!e||!e.length||!A)throw new Error("Records array and templateSchema are required for PDF generation.");const{format:o="a4",sheetOrientation:c="portrait",cardDimensions:u=null,scale:d=2,marginMm:p=12,spacingMm:h=8,showCropMarks:m=!0,showCutOutline:B=!0,showSheetHeader:C=!0,bleedMm:b=0}=n,Q=c.toLowerCase()==="landscape",L=o.toLowerCase()==="letter"?{width:215.9,height:279.4}:{width:210,height:297},D=Q?{width:L.height,height:L.width}:L,O=(u==null?void 0:u.width)||A.width||(t==="vertical"?54:86),z=(u==null?void 0:u.height)||A.height||(t==="vertical"?86:54),R=D.width-p*2,_=D.height-p*2,X=Math.max(1,Math.floor((R+h)/(O+h))),nA=Math.max(1,Math.floor((_+h)/(z+h))),N=X*nA,T=Math.ceil(e.length/N),M=document.createElement("div");M.style.position="fixed",M.style.top="-9999px",M.style.left="-9999px",M.style.width=`${D.width}mm`,M.style.height=`${D.height}mm`,M.style.backgroundColor="#ffffff",M.style.zIndex="-1000",document.body.appendChild(M);const V=new ne({orientation:Q?"landscape":"portrait",unit:"mm",format:o.toLowerCase()});try{for(let sA=0;sA<T;sA++){i&&i(sA+1,T);const iA=sA*N,lA=e.slice(iA,iA+N);M.innerHTML="";const eA=document.createElement("div");if(eA.style.width=`${D.width}mm`,eA.style.height=`${D.height}mm`,eA.style.padding=`${p}mm`,eA.style.boxSizing="border-box",eA.style.position="relative",eA.style.backgroundColor="#ffffff",C){const BA=document.createElement("div");BA.style.position="absolute",BA.style.top="4.5mm",BA.style.left=`${p}mm`,BA.style.right=`${p}mm`,BA.style.display="flex",BA.style.justifyContent="space-between",BA.style.alignItems="center",BA.style.fontSize="6.5pt",BA.style.fontFamily="monospace",BA.style.fontWeight="bold",BA.style.color="#334155",BA.style.borderBottom="0.6px solid #cbd5e1",BA.style.paddingBottom="1.2mm",BA.innerHTML=`
|
|
487
|
+
<span>PRECISION CUT SHEET — PAGE ${sA+1} OF ${T} [SHEET: ${c.toUpperCase()} | CARD: ${t.toUpperCase()} ${O}×${z}mm]</span>
|
|
488
|
+
<span>CUT GUIDES: ${m?"ACTIVE (0.35mm stroke)":"OFF"} | GRID: ${X}×${nA} | SPACING: ${h}mm</span>
|
|
489
|
+
`,eA.appendChild(BA)}lA.forEach((BA,U)=>{const P=U%X,K=Math.floor(U/X),$=p+P*(O+h),j=p+K*(z+h),q=dU(BA,A,a,s,O,z,B);q.style.position="absolute",q.style.left=`${$}mm`,q.style.top=`${j}mm`,eA.appendChild(q),m&&gU(eA,$,j,O,z)}),M.appendChild(eA),await new Promise(BA=>setTimeout(BA,350));const fA=(await O2(eA,{scale:d,useCORS:!0,allowTaint:!0,backgroundColor:"#ffffff",logging:!1})).toDataURL("image/jpeg",.96);sA>0&&V.addPage(o.toLowerCase(),"portrait"),V.addImage(fA,"JPEG",0,0,D.width,D.height)}V.save(r)}finally{document.body.contains(M)&&document.body.removeChild(M)}}function dU(e,A,t,r,n,i,a){var u,d,p,h;const s=document.createElement("div");return s.style.width=`${n}mm`,s.style.height=`${i}mm`,s.style.position="relative",s.style.overflow="hidden",s.style.boxSizing="border-box",s.style.backgroundColor=((u=A.background)==null?void 0:u.color)||"#ffffff",(d=A.background)!=null&&d.image&&(s.style.backgroundImage=`url(${A.background.image})`,s.style.backgroundSize=((p=A.background)==null?void 0:p.size)||"cover",s.style.backgroundPosition="center",s.style.backgroundRepeat=((h=A.background)==null?void 0:h.size)==="repeat"?"repeat":"no-repeat"),a?s.style.border="0.6px solid #94a3b8":s.style.border="none",s.style.borderRadius=`${A.borderRadius||2}mm`,[...A.elements||[]].sort((m,B)=>(m.zIndex||1)-(B.zIndex||1)).forEach(m=>{const B=document.createElement("div");if(B.style.position="absolute",B.style.left=`${m.x}mm`,B.style.top=`${m.y}mm`,B.style.width=`${m.width}mm`,B.style.height=`${m.height}mm`,B.style.zIndex=m.zIndex||1,B.style.boxSizing="border-box",m.backgroundImage&&(B.style.backgroundImage=`url(${m.backgroundImage})`,B.style.backgroundSize=m.backgroundSize||"cover",B.style.backgroundPosition="center",B.style.backgroundRepeat=m.backgroundSize==="repeat"?"repeat":"no-repeat"),m.type==="shape")B.style.backgroundColor=m.backgroundColor||"transparent",B.style.borderColor=m.borderColor||"transparent",B.style.borderWidth=`${m.borderWidth||0}px`,B.style.borderStyle=m.borderWidth?"solid":"none",B.style.borderRadius=`${m.borderRadius||0}px`;else if(m.type==="image"){B.style.borderWidth=`${m.borderWidth||0}px`,B.style.borderColor=m.borderColor||"transparent",B.style.borderStyle=m.borderWidth?"solid":"none",B.style.borderRadius=`${m.borderRadius||0}px`,B.style.overflow="hidden";const C=bf(m,e,t);if(C){const b=document.createElement("img");b.src=C,b.style.width="100%",b.style.height="100%",b.style.objectFit="cover",b.style.display="block",b.crossOrigin="anonymous",B.appendChild(b)}}else if(m.type==="field"||m.type==="label"){B.style.color=m.color||"#111111",B.style.fontSize=`${m.fontSize||9}pt`,B.style.fontWeight=m.fontWeight||"normal",B.style.fontFamily=m.fontFamily||"Arial, sans-serif",B.style.display="flex",B.style.alignItems="center",B.style.justifyContent=m.textAlign==="center"?"center":m.textAlign==="right"?"flex-end":"flex-start",B.style.padding="0.5mm 1mm",B.style.textAlign=m.textAlign||"left",m.borderWidthBottom&&(B.style.borderBottom=`${m.borderWidthBottom}px solid ${m.borderColor||"#e5e7eb"}`);const C=On(m,e,r);B.textContent=C}else if(m.type==="barcode")B.style.display="flex",B.style.alignItems="center",B.style.justifyContent="center",B.style.backgroundColor=m.backgroundColor||"#ffffff",B.style.border="1px solid #cbd5e1",B.style.borderRadius=`${m.borderRadius||0}px`,B.style.fontSize="6pt",B.style.color="#334155",B.textContent=`[BARCODE: ${On({...m,type:"field"},e,r)||"ID"}]`;else if(m.type==="qrcode"){B.style.display="flex",B.style.alignItems="center",B.style.justifyContent="center",B.style.backgroundColor=m.backgroundColor||"#ffffff",B.style.borderRadius=`${m.borderRadius||0}px`,B.style.padding="2px",B.style.overflow="hidden";const C=Vb(On({...m,type:"field"},e,r)||"ID");B.appendChild(C)}s.appendChild(B)}),s}function gU(e,A,t,r,n){const o="#0f172a",c=(u,d,p,h)=>{const m=document.createElement("div");m.style.position="absolute",m.style.left=`${u}mm`,m.style.top=`${d}mm`,m.style.width=`${p}mm`,m.style.height=`${h}mm`,m.style.backgroundColor=o,m.style.zIndex="10",e.appendChild(m)};c(A-1-3.2,t,3.2,.35),c(A,t-1-3.2,.35,3.2),c(A+r+1,t,3.2,.35),c(A+r-.35,t-1-3.2,.35,3.2),c(A-1-3.2,t+n-.35,3.2,.35),c(A,t+n+1,.35,3.2),c(A+r+1,t+n-.35,3.2,.35),c(A+r-.35,t+n+1,.35,3.2)}const pU={student:{id:"student",label:"Student ID Cards (Education)",badge:"🎓 K-12 & University",icon:o0,themeColor:"#0d6efd",defaultOrientation:"vertical",templateCount:2,description:"Dynamic field binding tailored for student admission numbers, class sections, bus routes, and emergency contacts.",fieldDefinitions:[{key:"studentName",label:"Student Full Name",defaultValue:"Rahul Sharma"},{key:"admissionNo",label:"Admission / Roll Number",defaultValue:"ADM-2026-104"},{key:"classSec",label:"Class & Section",defaultValue:"Class X [A]"},{key:"guardianName",label:"Parent / Guardian Name",defaultValue:"Mr. Rajesh Sharma"},{key:"dob",label:"Date of Birth",defaultValue:"15-08-2014"},{key:"busRoute",label:"Bus Route / Stop",defaultValue:"Route #12 (Mansarovar)"},{key:"bloodGroup",label:"Blood Group",defaultValue:"O+ POSITIVE"},{key:"phone",label:"Emergency Contact",defaultValue:"+91 9876543210"},{key:"address",label:"Home Address",defaultValue:"117/438 Agarwal Farm, Jaipur"}]},staff:{id:"staff",label:"Faculty & Administration",badge:"👔 Academic Staff",icon:jw,themeColor:"#198754",defaultOrientation:"horizontal",templateCount:1,description:"Dynamic field binding tailored for faculty designations, employee IDs, academic departments, and qualification badges.",fieldDefinitions:[{key:"staffName",label:"Faculty / Staff Name",defaultValue:"Dr. Ananya Iyer"},{key:"employeeId",label:"Employee ID Code",defaultValue:"EMP-SCH-802"},{key:"designation",label:"Job Designation",defaultValue:"Senior Physics Lecturer"},{key:"department",label:"Department / Faculty",defaultValue:"Science & Mathematics"},{key:"qualification",label:"Academic Qualifications",defaultValue:"M.Sc, Ph.D, B.Ed"},{key:"phone",label:"Direct Phone",defaultValue:"+91 9811122334"},{key:"email",label:"Official Email",defaultValue:"a.iyer@academy.edu"}]},corporate:{id:"corporate",label:"Corporate Employee Badges",badge:"🏢 Enterprise Access",icon:zw,themeColor:"#6f42c1",defaultOrientation:"vertical",templateCount:3,description:"Dynamic field binding tailored for corporate employee codes, floor access security levels, and organizational divisions.",fieldDefinitions:[{key:"employeeName",label:"Employee Full Name",defaultValue:"Siddharth Verma"},{key:"empCode",label:"Corporate Employee ID",defaultValue:"TECH-9921"},{key:"designation",label:"Designation / Role",defaultValue:"Principal Cloud Architect"},{key:"department",label:"Division / Team",defaultValue:"Cloud Infrastructure"},{key:"floorAccess",label:"Security & Floor Access",defaultValue:"Tower B - Floor 8 (All-Access)"},{key:"phone",label:"Office Phone",defaultValue:"+1 (555) 019-2834"},{key:"email",label:"Work Email",defaultValue:"s.verma@enterprise.com"},{key:"joiningDate",label:"Date of Joining",defaultValue:"01-04-2022"}]},hospital:{id:"hospital",label:"Healthcare & Medical Pass",badge:"🏥 Medical Personnel",icon:ib,themeColor:"#3b82f6",defaultOrientation:"vertical",templateCount:2,description:"Dynamic field binding tailored for attending physicians, medical license numbers, clinical specializations, and ward privileges.",fieldDefinitions:[{key:"doctorName",label:"Doctor / Nurse Name",defaultValue:"Dr. Marcus Vance"},{key:"licenseNo",label:"Medical License ID",defaultValue:"MED-REG-4491"},{key:"specialization",label:"Medical Specialization",defaultValue:"Cardiothoracic Surgery"},{key:"department",label:"Hospital Ward / Unit",defaultValue:"Cardiology & Intensive Care"},{key:"wardPrivileges",label:"ICU / Surgery Access Level",defaultValue:"Level 4 (ICU & OT Authorized)"},{key:"emergencyPager",label:"Emergency Pager / Ext",defaultValue:"Pager #992"},{key:"phone",label:"Contact Phone",defaultValue:"+91 7827072290"},{key:"hospitalAddress",label:"Hospital Branch Address",defaultValue:"Near Liberty Hospital, Health Park"},{key:"bloodGroup",label:"Blood Group",defaultValue:"AB+ POSITIVE"}]}},vU={student:[{studentName:"Rahul Sharma (Sample)",admissionNo:"ADM-2026-104",classSec:"Class X [A]",guardianName:"Mr. Rajesh Sharma",dob:"15-08-2014",busRoute:"Route #12 (Mansarovar)",bloodGroup:"O+ POSITIVE",phone:"+91 9876543210",address:"117/438 Agarwal Farm, Mansarovar, Jaipur 302020",profilePhoto:"https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=300",schoolLogo:"https://dummyimage.com/100x100/0d6efd/ffffff&text=EDU"},{studentName:"Diya Patel",admissionNo:"ADM-2026-209",classSec:"Class XII [B]",guardianName:"Mr. Suresh Patel",dob:"22-11-2012",busRoute:"Route #04 (West Gate)",bloodGroup:"B+ POSITIVE",phone:"+91 9811122334",address:"42 Science Park Road, Jaipur 302018",profilePhoto:"https://images.unsplash.com/photo-1517841905240-472988babdf9?w=300",schoolLogo:"https://dummyimage.com/100x100/0d6efd/ffffff&text=EDU"}],staff:[{staffName:"Dr. Ananya Iyer",employeeId:"EMP-SCH-802",designation:"Senior Physics Lecturer",department:"Science & Mathematics",qualification:"M.Sc, Ph.D, B.Ed",phone:"+91 9811122334",email:"a.iyer@academy.edu",profilePhoto:"https://images.unsplash.com/photo-1544005313-94ddf0286df2?w=300",schoolLogo:"https://dummyimage.com/100x100/198754/ffffff&text=EDU"}],corporate:[{employeeName:"Siddharth Verma",empCode:"TECH-9921",designation:"Principal Cloud Architect",department:"Cloud Infrastructure",floorAccess:"Tower B - Floor 8 (All-Access)",phone:"+1 (555) 019-2834",email:"s.verma@enterprise.com",joiningDate:"01-04-2022",profilePhoto:"https://images.unsplash.com/photo-1500648767791-00dcc994a43e?w=300",schoolLogo:"https://dummyimage.com/100x100/6f42c1/ffffff&text=CORP"}],hospital:[{doctorName:"Dr. Marcus Vance",licenseNo:"MED-REG-4491",specialization:"Cardiothoracic Surgery",department:"Cardiology & Intensive Care",wardPrivileges:"Level 4 (ICU & Operation Theatre)",emergencyPager:"Pager #992",phone:"+91 7827072290",hospitalAddress:"Near Liberty Hospital, Health Park, Suite 400",bloodGroup:"AB+ POSITIVE",profilePhoto:"https://images.unsplash.com/photo-1506794778202-cad84cf45f1d?w=300",schoolLogo:"https://dummyimage.com/100x100/3b82f6/ffffff&text=HOSPITAL"},{doctorName:"Dr. Sarah Jenkins",licenseNo:"MED-REG-7712",specialization:"Pediatric Emergency Care",department:"Pediatrics Ward",wardPrivileges:"Level 2 (Emergency & NICU)",emergencyPager:"Pager #104",phone:"+91 9822233445",hospitalAddress:"Near Liberty Hospital, Thalla Mandi, Agarwal Farm, Jaipur, Rajasthan 302020",bloodGroup:"O+ POSITIVE",profilePhoto:"https://images.unsplash.com/photo-1544005313-94ddf0286df2?w=300",schoolLogo:"https://dummyimage.com/100x100/3b82f6/ffffff&text=HOSPITAL"}]};function BU({categories:e=pU,sampleRecords:A=vU,onSaveCategoryTemplate:t,onBatchExportComplete:r}){var pe,XA,se,HA,Me,me,at,be,ye,Ze;const n=Object.keys(e),[i,a]=re.useState(n[0]||"student"),[s,o]=re.useState(()=>{const mA={};return n.forEach(xe=>{var le;mA[xe]=Os(((le=e[xe])==null?void 0:le.defaultOrientation)||"vertical")}),mA}),[c,u]=re.useState(!1),[d,p]=re.useState(0),[h,m]=re.useState("dark"),[B,C]=re.useState(""),[b,Q]=re.useState(1.4),[L,D]=re.useState(!0),[O,z]=re.useState(!1),[R,_]=re.useState(!1),[X,nA]=re.useState({current:0,total:0}),[N,T]=re.useState("a4"),[M,V]=re.useState("Portrait"),[sA,iA]=re.useState("86x54"),[lA,eA]=re.useState(8),[cA,fA]=re.useState(!0),[BA,U]=re.useState(!0),[P,K]=re.useState(!0),$=A[i]||[],j=e[i]||{},q=s[i]||Os(j.defaultOrientation||"vertical"),rA=sA==="100x70"?{width:q.orientation==="horizontal"?100:70,height:q.orientation==="horizontal"?70:100}:sA==="90x50"?{width:q.orientation==="horizontal"?90:50,height:q.orientation==="horizontal"?50:90}:{width:q.orientation==="horizontal"?86:54,height:q.orientation==="horizontal"?54:86},oA={...q,width:rA.width,height:rA.height},wA=$[d]||$[0]||{},FA=mA=>mA.admissionNo||mA.employeeId||mA.empCode||mA.licenseNo||mA.id||"rec-1",[UA,LA]=re.useState(()=>$.map(FA)),MA=M.toLowerCase()==="landscape",gA=N==="letter"?{width:215.9,height:279.4}:{width:210,height:297},W=MA?{width:gA.height,height:gA.width}:gA,ZA=W.width-24,RA=W.height-24,xA=Math.max(1,Math.floor((ZA+lA)/(rA.width+lA))),NA=Math.max(1,Math.floor((RA+lA)/(rA.height+lA))),OA=xA*NA,TA=Math.ceil(Math.max(1,UA.length)/OA),zA=mA=>{a(mA),p(0);const xe=A[mA]||[];LA(xe.map(FA))},WA=mA=>{o(xe=>({...xe,[i]:mA})),u(!1),C(`Successfully saved ${j.label} template (${mA.orientation})!`),setTimeout(()=>C(""),5e3),t&&t(i,mA)},ee=()=>{UA.length===$.length?LA([]):LA($.map(FA))},ie=mA=>{UA.includes(mA)?LA(UA.filter(xe=>xe!==mA)):LA([...UA,mA])},oe=async()=>{const mA=$.filter(xe=>UA.includes(FA(xe)));if(mA.length===0){alert("Please select at least one card from the roster table.");return}_(!0),nA({current:0,total:mA.length});try{await bv({records:mA,templateSchema:oA,orientation:oA.orientation||j.defaultOrientation,fileName:`${i.toUpperCase()}_Cards_Batch_${new Date().toISOString().slice(0,10)}.pdf`,pageOptions:{format:N,sheetOrientation:M.toLowerCase(),cardDimensions:rA,scale:2,marginMm:12,spacingMm:lA,showCropMarks:cA,showCutOutline:BA,showSheetHeader:P},onProgress:(xe,le)=>nA({current:xe,total:le})}),r&&r(i,mA)}catch(xe){console.error("Batch export failed:",xe),alert("An error occurred while generating the PDF: "+xe.message)}finally{_(!1)}};return y.jsx("div",{className:"pg-app-wrapper",children:y.jsxs("main",{className:"pg-main-content",children:[y.jsxs("div",{className:"pg-master-header",children:[y.jsxs("div",{className:"pg-header-left",children:[y.jsx("div",{className:"pg-logo",children:y.jsx(Hs,{size:22})}),y.jsxs("div",{style:{minWidth:0,flex:1},children:[y.jsxs("div",{className:"pg-title",style:{display:"flex",alignItems:"center",gap:"0.65rem",flexWrap:"wrap"},children:[y.jsx("span",{style:{fontSize:"1.35rem",fontWeight:800,color:"#fff"},children:"React ID Card Designer"}),y.jsx("span",{className:"pg-version-pill",children:"v1.0.0"}),y.jsxs("span",{className:"pg-status-pill",style:{padding:"0.22rem 0.65rem",fontSize:"0.72rem"},children:[y.jsx("span",{className:"pg-status-dot"}),y.jsx("span",{children:"Dynamic Binding Active"})]})]}),y.jsx("p",{className:"pg-subtitle",style:{fontSize:"0.82rem",color:"#94a3b8",margin:"0.3rem 0 0 0",lineHeight:1.4},children:"Universal Multi-Department Studio & Batch A4 PDF Export Engine"})]})]}),y.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"0.75rem",flexWrap:"wrap"},children:[y.jsxs("button",{type:"button",onClick:()=>m(mA=>mA==="dark"?"enterprise":"dark"),className:"pg-btn-sm pg-btn-sm-glass",style:{padding:"0.55rem 0.95rem"},children:[h==="dark"?y.jsx(Ab,{size:15,color:"#60a5fa"}):y.jsx(ab,{size:15,color:"#fbbf24"}),y.jsxs("span",{children:["Theme: ",h==="dark"?"Dark":"Light"]})]}),y.jsxs("button",{type:"button",onClick:()=>u(!0),className:"pg-btn-violet",style:{padding:"0.6rem 1.25rem",fontSize:"0.88rem"},children:[y.jsx(nb,{size:17}),y.jsx("span",{children:"Launch Studio Canvas"})]})]})]}),B&&y.jsxs("div",{style:{padding:"0.85rem 1.25rem",backgroundColor:"rgba(16, 185, 129, 0.15)",border:"1px solid rgba(16, 185, 129, 0.45)",borderRadius:"12px",color:"#34d399",display:"flex",alignItems:"center",gap:"0.65rem",marginBottom:"1.75rem",fontSize:"0.88rem",fontWeight:600},children:[y.jsx(Gw,{size:18}),y.jsx("span",{children:B})]}),y.jsxs("div",{style:{marginBottom:"2.25rem"},children:[y.jsxs("div",{className:"pg-section-header",children:[y.jsx("span",{className:"pg-section-badge",children:"1"}),y.jsx("h2",{className:"pg-section-title",children:"Select Department / Organization Category"}),y.jsx("span",{className:"pg-section-subtitle",children:"Each tab maintains its own unique fields & saved template"})]}),y.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(210px, 1fr))",gap:"1rem",alignItems:"stretch"},children:Object.values(e).map(mA=>{var _e;const xe=mA.icon||Hs,le=i===mA.id;return y.jsxs("button",{type:"button",onClick:()=>zA(mA.id),style:{display:"flex",flexDirection:"column",justifyContent:"space-between",alignItems:"flex-start",padding:"1.25rem",height:"100%",background:le?"linear-gradient(135deg, rgba(59, 130, 246, 0.22) 0%, rgba(30, 58, 138, 0.45) 100%)":"rgba(30, 41, 59, 0.5)",border:le?"2px solid #3b82f6":"1px solid rgba(255, 255, 255, 0.08)",borderRadius:"16px",cursor:"pointer",textAlign:"left",transition:"all 0.2s ease",boxShadow:le?"0 10px 25px -5px rgba(59, 130, 246, 0.45)":void 0},children:[y.jsxs("div",{style:{width:"100%"},children:[y.jsxs("div",{style:{display:"flex",alignItems:"center",justifySelf:"space-between",width:"100%",marginBottom:"0.85rem"},children:[y.jsx("div",{style:{padding:"0.5rem",background:le?"#3b82f6":"rgba(255,255,255,0.06)",borderRadius:"10px",color:"#fff",display:"flex"},children:y.jsx(xe,{size:19})}),y.jsx("span",{style:{fontSize:"0.74rem",background:le?"rgba(59,130,246,0.3)":"rgba(255,255,255,0.06)",color:le?"#60a5fa":"#94a3b8",padding:"0.22rem 0.6rem",borderRadius:"20px",fontWeight:700},children:mA.badge||"Department"})]}),y.jsx("div",{style:{fontSize:"1.05rem",fontWeight:800,color:"#fff",marginBottom:"0.45rem",lineHeight:1.3},children:mA.label})]}),y.jsxs("div",{style:{fontSize:"0.78rem",color:"#94a3b8",fontWeight:600,marginTop:"0.75rem"},children:[((_e=mA.fieldDefinitions)==null?void 0:_e.length)||0," Fields · ",mA.templateCount||1," ",mA.templateCount>1?"Templates":"Template"]})]},mA.id)})})]}),y.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 400px",gap:"1.75rem",alignItems:"stretch",marginBottom:"2.5rem"},children:[y.jsxs("div",{className:"pg-card",style:{margin:0,display:"flex",flexDirection:"column"},children:[y.jsxs("div",{className:"pg-section-header",children:[y.jsx("span",{className:"pg-section-badge",children:"2"}),y.jsxs("h3",{className:"pg-section-title",style:{fontSize:"0.88rem",color:"#60a5fa"},children:[(pe=j.label)==null?void 0:pe.toUpperCase()," LIVE STAGE (",(XA=oA.orientation)==null?void 0:XA.toUpperCase(),")"]}),y.jsxs("span",{className:"pg-section-subtitle",style:{background:"rgba(255,255,255,0.06)",padding:"0.22rem 0.65rem",borderRadius:"6px",color:"#cbd5e1"},children:["Previewing: ",y.jsx("strong",{style:{color:"#fff"},children:wA.studentName||wA.staffName||wA.employeeName||wA.doctorName||"Record #1"})]})]}),y.jsxs("div",{className:"pg-stage-toolbar",children:[y.jsxs("div",{className:"pg-toolbar-group",children:[y.jsx("span",{style:{fontSize:"0.76rem",color:"#94a3b8",fontWeight:600},children:"Zoom"}),y.jsxs("select",{value:b,onChange:mA=>Q(Number(mA.target.value)),style:{background:"#0f172a",border:"1px solid rgba(255,255,255,0.12)",color:"#fff",padding:"0.25rem 0.5rem",borderRadius:"6px",fontSize:"0.78rem",fontWeight:700},children:[y.jsx("option",{value:.9,children:"80%"}),y.jsx("option",{value:1.1,children:"100%"}),y.jsx("option",{value:1.35,children:"125%"}),y.jsx("option",{value:1.55,children:"150%"})]}),y.jsx("button",{type:"button",onClick:()=>Q(mA=>Math.min(2,mA+.1)),className:"pg-btn-sm-glass",style:{padding:"0.25rem 0.45rem"},children:y.jsx(fb,{size:14})}),y.jsx("button",{type:"button",onClick:()=>Q(mA=>Math.max(.6,mA-.1)),className:"pg-btn-sm-glass",style:{padding:"0.25rem 0.45rem"},children:y.jsx(hb,{size:14})})]}),y.jsxs("div",{className:"pg-toolbar-group",style:{gap:"0.4rem"},children:[y.jsx("button",{type:"button",onClick:()=>{Q(mA=>Math.max(.7,mA-.15)),C("Undid previous stage view adjustment"),setTimeout(()=>C(""),3e3)},className:"pg-btn-sm-glass",style:{padding:"0.3rem 0.55rem"},title:"Undo Stage Adjustment",children:y.jsx(h0,{size:14})}),y.jsx("button",{type:"button",onClick:()=>{Q(mA=>Math.min(1.8,mA+.15)),C("Redid previous stage zoom adjustment"),setTimeout(()=>C(""),3e3)},className:"pg-btn-sm-glass",style:{padding:"0.3rem 0.55rem"},title:"Redo Stage Adjustment",children:y.jsx(u0,{size:14})})]}),y.jsxs("div",{className:"pg-toolbar-group",style:{gap:"1.25rem"},children:[y.jsxs("label",{className:"pg-toggle-label",children:[y.jsx("span",{children:"Grid"}),y.jsx("input",{type:"checkbox",checked:L,onChange:mA=>D(mA.target.checked),style:{accentColor:"#3b82f6",cursor:"pointer"}})]}),y.jsxs("label",{className:"pg-toggle-label",children:[y.jsx("span",{children:"Rulers"}),y.jsx("input",{type:"checkbox",checked:O,onChange:mA=>z(mA.target.checked),style:{accentColor:"#3b82f6",cursor:"pointer"}})]})]}),y.jsx("div",{children:y.jsxs("button",{type:"button",onClick:()=>u(!0),className:"pg-btn-sm-glass",style:{padding:"0.32rem 0.75rem",fontSize:"0.78rem"},children:[y.jsx(Ww,{size:14}),y.jsx("span",{children:"Preview"})]})})]}),y.jsxs("div",{className:"pg-preview-stage",style:{flex:1,backgroundImage:L?"radial-gradient(circle, rgba(59, 130, 246, 0.16) 1px, transparent 1px)":"none",backgroundColor:L?"rgba(15, 23, 42, 0.75)":"#0b0f19",position:"relative"},children:[O&&y.jsxs("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,pointerEvents:"none",zIndex:5,border:"1px solid rgba(96,165,250,0.35)",display:"flex"},children:[y.jsxs("div",{style:{position:"absolute",top:0,left:"26px",right:0,height:"24px",background:"rgba(15,23,42,0.92)",borderBottom:"1px solid rgba(96,165,250,0.45)",display:"flex",alignItems:"center",paddingLeft:"15px",fontSize:"0.65rem",color:"#60a5fa",gap:"35px",fontFamily:"monospace",fontWeight:700},children:[y.jsx("span",{children:"0mm"}),y.jsx("span",{children:"10mm"}),y.jsx("span",{children:"20mm"}),y.jsx("span",{children:"30mm"}),y.jsx("span",{children:"40mm"}),y.jsx("span",{children:"50mm"}),y.jsx("span",{children:"60mm"}),y.jsx("span",{children:"70mm"}),y.jsx("span",{children:"80mm"})]}),y.jsxs("div",{style:{position:"absolute",top:"24px",left:0,bottom:0,width:"26px",background:"rgba(15,23,42,0.92)",borderRight:"1px solid rgba(96,165,250,0.45)",display:"flex",flexDirection:"column",alignItems:"center",paddingTop:"15px",fontSize:"0.62rem",color:"#60a5fa",gap:"28px",fontFamily:"monospace",fontWeight:700},children:[y.jsx("span",{children:"0"}),y.jsx("span",{children:"10"}),y.jsx("span",{children:"20"}),y.jsx("span",{children:"30"}),y.jsx("span",{children:"40"}),y.jsx("span",{children:"50"}),y.jsx("span",{children:"60"})]})]}),y.jsx(L0,{templateSchema:oA,data:wA,orientation:oA.orientation||j.defaultOrientation,zoom:b,fieldDefinitions:j.fieldDefinitions,orgAssets:{logoUrl:wA.schoolLogo||"https://dummyimage.com/100x100/0d6efd/ffffff&text=LOGO",signatureUrl:"https://dummyimage.com/200x80/ffffff/000000&text=Authorized+Sign"}})]}),y.jsxs("div",{style:{marginTop:"1.15rem",fontSize:"0.8rem",color:"#cbd5e1",background:"rgba(15, 23, 42, 0.85)",padding:"0.75rem 1.1rem",borderRadius:"12px",border:"1px solid rgba(59, 130, 246, 0.25)",display:"flex",alignItems:"flex-start",gap:"0.75rem"},children:[y.jsx("span",{style:{fontSize:"1.1rem",color:"#fbbf24"},children:"💡"}),y.jsxs("span",{style:{lineHeight:1.45},children:["When you open the Studio for ",y.jsx("strong",{children:j.label}),", the Property Inspector automatically binds ",y.jsxs("strong",{children:[((se=j.fieldDefinitions)==null?void 0:se.length)||8," specific fields"]})," (`",((Me=(HA=j.fieldDefinitions)==null?void 0:HA[0])==null?void 0:Me.label)||"Name","`, `",((at=(me=j.fieldDefinitions)==null?void 0:me[1])==null?void 0:at.label)||"ID","`, `",((ye=(be=j.fieldDefinitions)==null?void 0:be[2])==null?void 0:ye.label)||"Department","`, etc.)."]})]})]}),y.jsxs("div",{className:"pg-card",style:{margin:0,display:"flex",flexDirection:"column",justifySelf:"space-between",background:"rgba(15, 23, 42, 0.85)",border:"1px solid rgba(59, 130, 246, 0.35)"},children:[y.jsxs("div",{children:[y.jsxs("div",{className:"pg-section-header",style:{marginBottom:"0.75rem"},children:[y.jsx("span",{className:"pg-section-badge",children:"3"}),y.jsx("h3",{className:"pg-section-title",style:{fontSize:"1rem"},children:"Batch A4 Print Engine"})]}),y.jsxs("p",{style:{fontSize:"0.8rem",color:"#94a3b8",marginBottom:"1.25rem",lineHeight:1.5},children:["Generate high-resolution A4 multi-page grid sheets specifically for checked ",y.jsx("strong",{children:(Ze=j.label)==null?void 0:Ze.split(" ")[0]})," cards."]}),y.jsxs("div",{style:{background:"rgba(30, 41, 59, 0.75)",border:"1px solid rgba(255, 255, 255, 0.08)",padding:"0.75rem 0.95rem",borderRadius:"10px",marginBottom:"1rem",display:"flex",alignItems:"center",justifySelf:"space-between"},children:[y.jsx("span",{style:{fontSize:"0.82rem",color:"#cbd5e1",fontWeight:600},children:"Ready to Export:"}),y.jsxs("span",{style:{fontSize:"0.82rem",background:"rgba(16, 185, 129, 0.22)",color:"#34d399",padding:"0.2rem 0.65rem",borderRadius:"20px",fontWeight:800},children:[UA.length," of ",$.length," Cards"]})]}),y.jsxs("div",{style:{background:"rgba(15, 23, 42, 0.9)",border:"1px solid rgba(59, 130, 246, 0.45)",borderRadius:"12px",padding:"0.85rem 1rem",marginBottom:"1.25rem"},children:[y.jsxs("div",{style:{display:"flex",justifySelf:"space-between",alignItems:"center",marginBottom:"0.6rem"},children:[y.jsx("span",{style:{fontSize:"0.73rem",color:"#60a5fa",fontWeight:800,textTransform:"uppercase",letterSpacing:"0.05em"},children:"⚡ Live Sheet Matrix"}),y.jsxs("span",{style:{fontSize:"0.74rem",background:"rgba(59, 130, 246, 0.25)",color:"#93c5fd",padding:"0.18rem 0.6rem",borderRadius:"12px",fontWeight:700},children:[xA," Cols × ",NA," Rows"]})]}),y.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"0.45rem",fontSize:"0.76rem",color:"#cbd5e1"},children:[y.jsxs("div",{children:[y.jsx("strong",{style:{color:"#94a3b8"},children:"Sheet Size:"})," ",N.toUpperCase()," (",W.width,"×",W.height,"mm)"]}),y.jsxs("div",{children:[y.jsx("strong",{style:{color:"#94a3b8"},children:"Card Cut:"})," ",rA.width,"×",rA.height,"mm"]}),y.jsxs("div",{children:[y.jsx("strong",{style:{color:"#94a3b8"},children:"Sheet Capacity:"})," ",OA," cards/page"]}),y.jsxs("div",{children:[y.jsx("strong",{style:{color:"#94a3b8"},children:"Job Output:"})," ",TA," ",TA===1?"page":"pages"," needed"]})]})]}),y.jsxs("div",{style:{marginBottom:"1.1rem"},children:[y.jsx("label",{style:{display:"block",fontSize:"0.75rem",color:"#94a3b8",marginBottom:"0.35rem",fontWeight:700},children:"Paper Sheet Size"}),y.jsxs("select",{value:N,onChange:mA=>T(mA.target.value),className:"pg-select",children:[y.jsx("option",{value:"a4",children:"A4 Sheet (210 × 297 mm)"}),y.jsx("option",{value:"letter",children:"US Letter Sheet (8.5 × 11 in)"})]})]}),y.jsxs("div",{style:{marginBottom:"1.1rem"},children:[y.jsx("label",{style:{display:"block",fontSize:"0.75rem",color:"#94a3b8",marginBottom:"0.35rem",fontWeight:700},children:"Orientation"}),y.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"0.5rem"},children:[y.jsx("button",{type:"button",onClick:()=>V("Portrait"),className:"pg-btn-sm-glass",style:{padding:"0.55rem",background:M==="Portrait"?"rgba(59, 130, 246, 0.3)":void 0,borderColor:M==="Portrait"?"#3b82f6":void 0,color:M==="Portrait"?"#60a5fa":"#94a3b8"},children:y.jsx("span",{children:"Portrait"})}),y.jsx("button",{type:"button",onClick:()=>V("Landscape"),className:"pg-btn-sm-glass",style:{padding:"0.55rem",background:M==="Landscape"?"rgba(59, 130, 246, 0.3)":void 0,borderColor:M==="Landscape"?"#3b82f6":void 0,color:M==="Landscape"?"#60a5fa":"#94a3b8"},children:y.jsx("span",{children:"Landscape"})})]})]}),y.jsxs("div",{style:{marginBottom:"1.25rem"},children:[y.jsx("label",{style:{display:"block",fontSize:"0.75rem",color:"#94a3b8",marginBottom:"0.35rem",fontWeight:700},children:"Card Size (Cut Out)"}),y.jsxs("select",{value:sA,onChange:mA=>iA(mA.target.value),className:"pg-select",children:[y.jsx("option",{value:"86x54",children:"86 mm x 54 mm (Standard ID-1)"}),y.jsx("option",{value:"90x50",children:"90 mm x 50 mm (Business Card Size)"}),y.jsx("option",{value:"100x70",children:"100 mm x 70 mm (Event Badge Size)"})]})]}),y.jsxs("div",{style:{background:"rgba(30, 41, 59, 0.45)",border:"1px solid rgba(255, 255, 255, 0.08)",padding:"0.9rem 1rem",borderRadius:"12px",marginBottom:"1.35rem"},children:[y.jsx("div",{style:{fontSize:"0.74rem",fontWeight:800,textTransform:"uppercase",letterSpacing:"0.05em",color:"#60a5fa",marginBottom:"0.7rem"},children:"Hardware Cut Guides"}),y.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"0.6rem"},children:[y.jsxs("label",{style:{display:"flex",alignItems:"center",gap:"0.6rem",fontSize:"0.8rem",color:"#e2e8f0",cursor:"pointer",userSelect:"none"},children:[y.jsx("input",{type:"checkbox",checked:cA,onChange:mA=>fA(mA.target.checked),style:{accentColor:"#3b82f6"}}),y.jsx("span",{children:"Corner Cut Marks (Guideline Guides)"})]}),y.jsxs("label",{style:{display:"flex",alignItems:"center",gap:"0.6rem",fontSize:"0.8rem",color:"#e2e8f0",cursor:"pointer",userSelect:"none"},children:[y.jsx("input",{type:"checkbox",checked:BA,onChange:mA=>U(mA.target.checked),style:{accentColor:"#3b82f6"}}),y.jsx("span",{children:"Card Perimeter Cut Outline"})]}),y.jsxs("label",{style:{display:"flex",alignItems:"center",gap:"0.6rem",fontSize:"0.8rem",color:"#e2e8f0",cursor:"pointer",userSelect:"none"},children:[y.jsx("input",{type:"checkbox",checked:P,onChange:mA=>K(mA.target.checked),style:{accentColor:"#3b82f6"}}),y.jsx("span",{children:"Technical Registration Header"})]})]})]})]}),y.jsxs("div",{children:[y.jsx("button",{type:"button",disabled:R||UA.length===0,onClick:oe,className:"pg-btn pg-btn-emerald",style:{width:"100%",marginBottom:"0.85rem"},children:R?y.jsxs(y.Fragment,{children:[y.jsx(Yw,{size:16,className:"ricd-spin"}),y.jsxs("span",{children:["Rendering Page ",X.current," of ",X.total,"..."]})]}):y.jsxs(y.Fragment,{children:[y.jsx($w,{size:16}),y.jsxs("span",{children:["Export ",i.toUpperCase()," A4 Sheet (",UA.length," Cards)"]})]})}),y.jsxs("div",{style:{textAlign:"center",fontSize:"0.72rem",color:"#94a3b8"},children:[y.jsx("span",{style:{color:"#60a5fa",fontWeight:700},children:"ℹ️ Output Format:"})," High Resolution PDF · 300 DPI · Print Ready"]})]})]})]}),y.jsxs("div",{className:"pg-card",style:{margin:0},children:[y.jsxs("div",{className:"pg-section-header",children:[y.jsx("span",{className:"pg-section-badge",children:"4"}),y.jsxs("div",{children:[y.jsxs("h3",{className:"pg-section-title",style:{fontSize:"1rem"},children:[j.label," — Live Roster Directory"]}),y.jsx("p",{style:{fontSize:"0.8rem",color:"#94a3b8",margin:"0.2rem 0 0 0",fontWeight:400,textTransform:"none"},children:"Check records below to include in batch export. Click any row to preview their ID card above!"})]}),y.jsxs("button",{type:"button",onClick:ee,className:"pg-btn-sm pg-btn-sm-glass",style:{fontSize:"0.78rem",padding:"0.45rem 0.85rem",marginLeft:"auto"},children:[UA.length===$.length?y.jsx(uf,{size:16,color:"#3b82f6"}):y.jsx(Ca,{size:16}),y.jsx("span",{children:UA.length===$.length?"Unselect All":"Select All Records"})]})]}),y.jsx("div",{className:"pg-table-wrapper",children:y.jsxs("table",{className:"pg-table",children:[y.jsx("thead",{children:y.jsxs("tr",{children:[y.jsx("th",{style:{width:"48px"},children:y.jsx("button",{type:"button",onClick:ee,style:{background:"none",border:"none",cursor:"pointer",display:"flex",alignItems:"center"},children:UA.length===$.length?y.jsx(uf,{size:16,color:"#3b82f6"}):y.jsx(Ca,{size:16,color:"#64748b"})})}),y.jsx("th",{children:"Name & Avatar"}),y.jsx("th",{children:i==="student"?"Class & Section":i==="staff"?"Designation":i==="corporate"?"Role":"Specialization"}),y.jsx("th",{children:"ID / Reg Number"}),y.jsx("th",{children:i==="student"?"Guardian Name":"Department"}),y.jsx("th",{children:"Contact Phone"})]})}),y.jsx("tbody",{children:$.map((mA,xe)=>{const le=FA(mA),_e=UA.includes(le),He=d===xe,Ve=mA.studentName||mA.staffName||mA.employeeName||mA.doctorName||mA.name||"Person Name",GA=mA.busRoute||mA.qualification||mA.floorAccess||mA.wardPrivileges||"Active Record",Ce=mA.classSec||mA.designation||mA.specialization||"General",hn=mA.guardianName||mA.department||"Division";return y.jsxs("tr",{style:{cursor:"pointer",backgroundColor:He?"rgba(59, 130, 246, 0.18)":_e?"rgba(30, 41, 59, 0.5)":void 0,borderLeft:He?"4px solid #3b82f6":"4px solid transparent"},onClick:()=>p(xe),children:[y.jsx("td",{onClick:st=>{st.stopPropagation(),ie(le)},children:_e?y.jsx(uf,{size:16,color:"#3b82f6"}):y.jsx(Ca,{size:16,color:"#64748b"})}),y.jsx("td",{children:y.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"0.8rem"},children:[y.jsx("img",{src:mA.profilePhoto||"https://dummyimage.com/100x100/3b82f6/ffffff&text=USER",alt:Ve,className:"pg-avatar",style:{borderColor:He?"#3b82f6":"#475569"}}),y.jsxs("div",{children:[y.jsx("div",{style:{fontWeight:700,color:"#fff",fontSize:"0.92rem"},children:Ve}),y.jsx("div",{style:{fontSize:"0.76rem",color:"#94a3b8"},children:GA})]})]})}),y.jsx("td",{children:y.jsx("span",{style:{fontWeight:600,color:"#60a5fa",background:"rgba(59, 130, 246, 0.12)",padding:"0.25rem 0.6rem",borderRadius:"6px",fontSize:"0.8rem"},children:Ce})}),y.jsx("td",{children:y.jsx("span",{style:{fontFamily:"monospace",fontSize:"0.81rem",backgroundColor:"rgba(15, 23, 42, 0.9)",padding:"0.25rem 0.6rem",borderRadius:"6px",border:"1px solid rgba(255,255,255,0.08)"},children:le})}),y.jsx("td",{style:{color:"#cbd5e1"},children:hn}),y.jsx("td",{style:{color:"#94a3b8",fontFamily:"monospace"},children:mA.phone||"+91 00000-00000"})]},le)})})]})})]}),y.jsx(I0,{show:c,onHide:()=>u(!1),initialOrientation:oA.orientation||j.defaultOrientation||"vertical",initialTemplate:oA,fieldDefinitions:j.fieldDefinitions||[],sampleData:$,theme:h,orgAssets:{logoUrl:(wA==null?void 0:wA.schoolLogo)||"https://dummyimage.com/100x100/0d6efd/ffffff&text=LOGO",signatureUrl:"https://dummyimage.com/200x80/ffffff/000000&text=Principal+Sign"},onSaveTemplate:WA})]})})}/*! @license DOMPurify 2.5.9 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.5.9/LICENSE */function mi(e){"@babel/helpers - typeof";return mi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(A){return typeof A}:function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},mi(e)}function Vh(e,A){return Vh=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},Vh(e,A)}function mU(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function pc(e,A,t){return mU()?pc=Reflect.construct:pc=function(n,i,a){var s=[null];s.push.apply(s,i);var o=Function.bind.apply(n,s),c=new o;return a&&Vh(c,a.prototype),c},pc.apply(null,arguments)}function nn(e){return yU(e)||wU(e)||bU(e)||CU()}function yU(e){if(Array.isArray(e))return jh(e)}function wU(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function bU(e,A){if(e){if(typeof e=="string")return jh(e,A);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return jh(e,A)}}function jh(e,A){(A==null||A>e.length)&&(A=e.length);for(var t=0,r=new Array(A);t<A;t++)r[t]=e[t];return r}function CU(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
490
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var xU=Object.hasOwnProperty,Cv=Object.setPrototypeOf,FU=Object.isFrozen,QU=Object.getPrototypeOf,UU=Object.getOwnPropertyDescriptor,ir=Object.freeze,Dr=Object.seal,EU=Object.create,xv=typeof Reflect<"u"&&Reflect,vc=xv.apply,zh=xv.construct;vc||(vc=function(A,t,r){return A.apply(t,r)}),ir||(ir=function(A){return A}),Dr||(Dr=function(A){return A}),zh||(zh=function(A,t){return pc(A,nn(t))});var SU=Mr(Array.prototype.forEach),Fv=Mr(Array.prototype.pop),oo=Mr(Array.prototype.push),Bc=Mr(String.prototype.toLowerCase),Gh=Mr(String.prototype.toString),Qv=Mr(String.prototype.match),an=Mr(String.prototype.replace),IU=Mr(String.prototype.indexOf),LU=Mr(String.prototype.trim),Kt=Mr(RegExp.prototype.test),$h=NU(TypeError);function Mr(e){return function(A){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return vc(e,A,r)}}function NU(e){return function(){for(var A=arguments.length,t=new Array(A),r=0;r<A;r++)t[r]=arguments[r];return zh(e,t)}}function we(e,A,t){var r;t=(r=t)!==null&&r!==void 0?r:Bc,Cv&&Cv(e,null);for(var n=A.length;n--;){var i=A[n];if(typeof i=="string"){var a=t(i);a!==i&&(FU(A)||(A[n]=a),i=a)}e[i]=!0}return e}function Yi(e){var A=EU(null),t;for(t in e)vc(xU,e,[t])===!0&&(A[t]=e[t]);return A}function mc(e,A){for(;e!==null;){var t=UU(e,A);if(t){if(t.get)return Mr(t.get);if(typeof t.value=="function")return Mr(t.value)}e=QU(e)}function r(n){return console.warn("fallback value for",n),null}return r}var Uv=ir(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Wh=ir(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),qh=ir(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),TU=ir(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Xh=ir(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),OU=ir(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Ev=ir(["#text"]),Sv=ir(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),Yh=ir(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Iv=ir(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),yc=ir(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),HU=Dr(/\{\{[\w\W]*|[\w\W]*\}\}/gm),_U=Dr(/<%[\w\W]*|[\w\W]*%>/gm),PU=Dr(/\${[\w\W]*}/gm),kU=Dr(/^data-[\-\w.\u00B7-\uFFFF]+$/),DU=Dr(/^aria-[\-\w]+$/),MU=Dr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),RU=Dr(/^(?:\w+script|data):/i),KU=Dr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),VU=Dr(/^html$/i),jU=Dr(/^[a-z][.\w]*(-[.\w]+)+$/i),zU=function(){return typeof window>"u"?null:window},GU=function(A,t){if(mi(A)!=="object"||typeof A.createPolicy!="function")return null;var r=null,n="data-tt-policy-suffix";t.currentScript&&t.currentScript.hasAttribute(n)&&(r=t.currentScript.getAttribute(n));var i="dompurify"+(r?"#"+r:"");try{return A.createPolicy(i,{createHTML:function(s){return s},createScriptURL:function(s){return s}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}};function Lv(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:zU(),A=function(J){return Lv(J)};if(A.version="2.5.9",A.removed=[],!e||!e.document||e.document.nodeType!==9)return A.isSupported=!1,A;var t=e.document,r=e.document,n=e.DocumentFragment,i=e.HTMLTemplateElement,a=e.Node,s=e.Element,o=e.NodeFilter,c=e.NamedNodeMap,u=c===void 0?e.NamedNodeMap||e.MozNamedAttrMap:c,d=e.HTMLFormElement,p=e.DOMParser,h=e.trustedTypes,m=s.prototype,B=mc(m,"cloneNode"),C=mc(m,"nextSibling"),b=mc(m,"childNodes"),Q=mc(m,"parentNode");if(typeof i=="function"){var L=r.createElement("template");L.content&&L.content.ownerDocument&&(r=L.content.ownerDocument)}var D=GU(h,t),O=D?D.createHTML(""):"",z=r,R=z.implementation,_=z.createNodeIterator,X=z.createDocumentFragment,nA=z.getElementsByTagName,N=t.importNode,T={};try{T=Yi(r).documentMode?r.documentMode:{}}catch{}var M={};A.isSupported=typeof Q=="function"&&R&&R.createHTMLDocument!==void 0&&T!==9;var V=HU,sA=_U,iA=PU,lA=kU,eA=DU,cA=RU,fA=KU,BA=jU,U=MU,P=null,K=we({},[].concat(nn(Uv),nn(Wh),nn(qh),nn(Xh),nn(Ev))),$=null,j=we({},[].concat(nn(Sv),nn(Yh),nn(Iv),nn(yc))),q=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),rA=null,oA=null,wA=!0,FA=!0,UA=!1,LA=!0,MA=!1,gA=!0,W=!1,ZA=!1,RA=!1,xA=!1,NA=!1,OA=!1,TA=!0,zA=!1,WA="user-content-",ee=!0,ie=!1,oe={},pe=null,XA=we({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),se=null,HA=we({},["audio","video","img","source","image","track"]),Me=null,me=we({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),at="http://www.w3.org/1998/Math/MathML",be="http://www.w3.org/2000/svg",ye="http://www.w3.org/1999/xhtml",Ze=ye,mA=!1,xe=null,le=we({},[at,be,ye],Gh),_e,He=["application/xhtml+xml","text/html"],Ve="text/html",GA,Ce=null,hn=r.createElement("form"),st=function(J){return J instanceof RegExp||J instanceof Function},Br=function(J){Ce&&Ce===J||((!J||mi(J)!=="object")&&(J={}),J=Yi(J),_e=He.indexOf(J.PARSER_MEDIA_TYPE)===-1?_e=Ve:_e=J.PARSER_MEDIA_TYPE,GA=_e==="application/xhtml+xml"?Gh:Bc,P="ALLOWED_TAGS"in J?we({},J.ALLOWED_TAGS,GA):K,$="ALLOWED_ATTR"in J?we({},J.ALLOWED_ATTR,GA):j,xe="ALLOWED_NAMESPACES"in J?we({},J.ALLOWED_NAMESPACES,Gh):le,Me="ADD_URI_SAFE_ATTR"in J?we(Yi(me),J.ADD_URI_SAFE_ATTR,GA):me,se="ADD_DATA_URI_TAGS"in J?we(Yi(HA),J.ADD_DATA_URI_TAGS,GA):HA,pe="FORBID_CONTENTS"in J?we({},J.FORBID_CONTENTS,GA):XA,rA="FORBID_TAGS"in J?we({},J.FORBID_TAGS,GA):{},oA="FORBID_ATTR"in J?we({},J.FORBID_ATTR,GA):{},oe="USE_PROFILES"in J?J.USE_PROFILES:!1,wA=J.ALLOW_ARIA_ATTR!==!1,FA=J.ALLOW_DATA_ATTR!==!1,UA=J.ALLOW_UNKNOWN_PROTOCOLS||!1,LA=J.ALLOW_SELF_CLOSE_IN_ATTR!==!1,MA=J.SAFE_FOR_TEMPLATES||!1,gA=J.SAFE_FOR_XML!==!1,W=J.WHOLE_DOCUMENT||!1,xA=J.RETURN_DOM||!1,NA=J.RETURN_DOM_FRAGMENT||!1,OA=J.RETURN_TRUSTED_TYPE||!1,RA=J.FORCE_BODY||!1,TA=J.SANITIZE_DOM!==!1,zA=J.SANITIZE_NAMED_PROPS||!1,ee=J.KEEP_CONTENT!==!1,ie=J.IN_PLACE||!1,U=J.ALLOWED_URI_REGEXP||U,Ze=J.NAMESPACE||ye,q=J.CUSTOM_ELEMENT_HANDLING||{},J.CUSTOM_ELEMENT_HANDLING&&st(J.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(q.tagNameCheck=J.CUSTOM_ELEMENT_HANDLING.tagNameCheck),J.CUSTOM_ELEMENT_HANDLING&&st(J.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(q.attributeNameCheck=J.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),J.CUSTOM_ELEMENT_HANDLING&&typeof J.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(q.allowCustomizedBuiltInElements=J.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),MA&&(FA=!1),NA&&(xA=!0),oe&&(P=we({},nn(Ev)),$=[],oe.html===!0&&(we(P,Uv),we($,Sv)),oe.svg===!0&&(we(P,Wh),we($,Yh),we($,yc)),oe.svgFilters===!0&&(we(P,qh),we($,Yh),we($,yc)),oe.mathMl===!0&&(we(P,Xh),we($,Iv),we($,yc))),J.ADD_TAGS&&(P===K&&(P=Yi(P)),we(P,J.ADD_TAGS,GA)),J.ADD_ATTR&&($===j&&($=Yi($)),we($,J.ADD_ATTR,GA)),J.ADD_URI_SAFE_ATTR&&we(Me,J.ADD_URI_SAFE_ATTR,GA),J.FORBID_CONTENTS&&(pe===XA&&(pe=Yi(pe)),we(pe,J.FORBID_CONTENTS,GA)),ee&&(P["#text"]=!0),W&&we(P,["html","head","body"]),P.table&&(we(P,["tbody"]),delete rA.tbody),ir&&ir(J),Ce=J)},Ur=we({},["mi","mo","mn","ms","mtext"]),Ae=we({},["annotation-xml"]),Er=we({},["title","style","font","a","script"]),or=we({},Wh);we(or,qh),we(or,TU);var Ot=we({},Xh);we(Ot,OU);var vt=function(J){var IA=Q(J);(!IA||!IA.tagName)&&(IA={namespaceURI:Ze,tagName:"template"});var _A=Bc(J.tagName),Ue=Bc(IA.tagName);return xe[J.namespaceURI]?J.namespaceURI===be?IA.namespaceURI===ye?_A==="svg":IA.namespaceURI===at?_A==="svg"&&(Ue==="annotation-xml"||Ur[Ue]):!!or[_A]:J.namespaceURI===at?IA.namespaceURI===ye?_A==="math":IA.namespaceURI===be?_A==="math"&&Ae[Ue]:!!Ot[_A]:J.namespaceURI===ye?IA.namespaceURI===be&&!Ae[Ue]||IA.namespaceURI===at&&!Ur[Ue]?!1:!Ot[_A]&&(Er[_A]||!or[_A]):!!(_e==="application/xhtml+xml"&&xe[J.namespaceURI]):!1},Se=function(J){oo(A.removed,{element:J});try{J.parentNode.removeChild(J)}catch{try{J.outerHTML=O}catch{J.remove()}}},Ht=function(J,IA){try{oo(A.removed,{attribute:IA.getAttributeNode(J),from:IA})}catch{oo(A.removed,{attribute:null,from:IA})}if(IA.removeAttribute(J),J==="is"&&!$[J])if(xA||NA)try{Se(IA)}catch{}else try{IA.setAttribute(J,"")}catch{}},Wn=function(J){var IA,_A;if(RA)J="<remove></remove>"+J;else{var Ue=Qv(J,/^[\r\n\t ]+/);_A=Ue&&Ue[0]}_e==="application/xhtml+xml"&&Ze===ye&&(J='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+J+"</body></html>");var _t=D?D.createHTML(J):J;if(Ze===ye)try{IA=new p().parseFromString(_t,_e)}catch{}if(!IA||!IA.documentElement){IA=R.createDocument(Ze,"template",null);try{IA.documentElement.innerHTML=mA?O:_t}catch{}}var At=IA.body||IA.documentElement;return J&&_A&&At.insertBefore(r.createTextNode(_A),At.childNodes[0]||null),Ze===ye?nA.call(IA,W?"html":"body")[0]:W?IA.documentElement:At},Kr=function(J){return _.call(J.ownerDocument||J,J,o.SHOW_ELEMENT|o.SHOW_COMMENT|o.SHOW_TEXT|o.SHOW_PROCESSING_INSTRUCTION|o.SHOW_CDATA_SECTION,null,!1)},lr=function(J){return J instanceof d&&(typeof J.nodeName!="string"||typeof J.textContent!="string"||typeof J.removeChild!="function"||!(J.attributes instanceof u)||typeof J.removeAttribute!="function"||typeof J.setAttribute!="function"||typeof J.namespaceURI!="string"||typeof J.insertBefore!="function"||typeof J.hasChildNodes!="function")},jt=function(J){return mi(a)==="object"?J instanceof a:J&&mi(J)==="object"&&typeof J.nodeType=="number"&&typeof J.nodeName=="string"},Bt=function(J,IA,_A){M[J]&&SU(M[J],function(Ue){Ue.call(A,IA,_A,Ce)})},Sr=function(J){var IA;if(Bt("beforeSanitizeElements",J,null),lr(J)||Kt(/[\u0080-\uFFFF]/,J.nodeName))return Se(J),!0;var _A=GA(J.nodeName);if(Bt("uponSanitizeElement",J,{tagName:_A,allowedTags:P}),J.hasChildNodes()&&!jt(J.firstElementChild)&&(!jt(J.content)||!jt(J.content.firstElementChild))&&Kt(/<[/\w]/g,J.innerHTML)&&Kt(/<[/\w]/g,J.textContent)||_A==="select"&&Kt(/<template/i,J.innerHTML)||J.nodeType===7||gA&&J.nodeType===8&&Kt(/<[/\w]/g,J.data))return Se(J),!0;if(!P[_A]||rA[_A]){if(!rA[_A]&&Ir(_A)&&(q.tagNameCheck instanceof RegExp&&Kt(q.tagNameCheck,_A)||q.tagNameCheck instanceof Function&&q.tagNameCheck(_A)))return!1;if(ee&&!pe[_A]){var Ue=Q(J)||J.parentNode,_t=b(J)||J.childNodes;if(_t&&Ue)for(var At=_t.length,ot=At-1;ot>=0;--ot){var dn=B(_t[ot],!0);dn.__removalCount=(J.__removalCount||0)+1,Ue.insertBefore(dn,C(J))}}return Se(J),!0}return J instanceof s&&!vt(J)||(_A==="noscript"||_A==="noembed"||_A==="noframes")&&Kt(/<\/no(script|embed|frames)/i,J.innerHTML)?(Se(J),!0):(MA&&J.nodeType===3&&(IA=J.textContent,IA=an(IA,V," "),IA=an(IA,sA," "),IA=an(IA,iA," "),J.textContent!==IA&&(oo(A.removed,{element:J.cloneNode()}),J.textContent=IA)),Bt("afterSanitizeElements",J,null),!1)},cr=function(J,IA,_A){if(TA&&(IA==="id"||IA==="name")&&(_A in r||_A in hn))return!1;if(!(FA&&!oA[IA]&&Kt(lA,IA))){if(!(wA&&Kt(eA,IA))){if(!$[IA]||oA[IA]){if(!(Ir(J)&&(q.tagNameCheck instanceof RegExp&&Kt(q.tagNameCheck,J)||q.tagNameCheck instanceof Function&&q.tagNameCheck(J))&&(q.attributeNameCheck instanceof RegExp&&Kt(q.attributeNameCheck,IA)||q.attributeNameCheck instanceof Function&&q.attributeNameCheck(IA))||IA==="is"&&q.allowCustomizedBuiltInElements&&(q.tagNameCheck instanceof RegExp&&Kt(q.tagNameCheck,_A)||q.tagNameCheck instanceof Function&&q.tagNameCheck(_A))))return!1}else if(!Me[IA]){if(!Kt(U,an(_A,fA,""))){if(!((IA==="src"||IA==="xlink:href"||IA==="href")&&J!=="script"&&IU(_A,"data:")===0&&se[J])){if(!(UA&&!Kt(cA,an(_A,fA,"")))){if(_A)return!1}}}}}}return!0},Ir=function(J){return J!=="annotation-xml"&&Qv(J,BA)},Sn=function(J){var IA,_A,Ue,_t;Bt("beforeSanitizeAttributes",J,null);var At=J.attributes;if(!(!At||lr(J))){var ot={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:$};for(_t=At.length;_t--;){IA=At[_t];var dn=IA,Xe=dn.name,ua=dn.namespaceURI;if(_A=Xe==="value"?IA.value:LU(IA.value),Ue=GA(Xe),ot.attrName=Ue,ot.attrValue=_A,ot.keepAttr=!0,ot.forceKeepAttr=void 0,Bt("uponSanitizeAttribute",J,ot),_A=ot.attrValue,!ot.forceKeepAttr&&(Ht(Xe,J),!!ot.keepAttr)){if(!LA&&Kt(/\/>/i,_A)){Ht(Xe,J);continue}MA&&(_A=an(_A,V," "),_A=an(_A,sA," "),_A=an(_A,iA," "));var fa=GA(J.nodeName);if(cr(fa,Ue,_A)){if(zA&&(Ue==="id"||Ue==="name")&&(Ht(Xe,J),_A=WA+_A),gA&&Kt(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,_A)){Ht(Xe,J);continue}if(D&&mi(h)==="object"&&typeof h.getAttributeType=="function"&&!ua)switch(h.getAttributeType(fa,Ue)){case"TrustedHTML":{_A=D.createHTML(_A);break}case"TrustedScriptURL":{_A=D.createScriptURL(_A);break}}try{ua?J.setAttributeNS(ua,Xe,_A):J.setAttribute(Xe,_A),lr(J)?Se(J):Fv(A.removed)}catch{}}}}Bt("afterSanitizeAttributes",J,null)}},xi=function qA(J){var IA,_A=Kr(J);for(Bt("beforeSanitizeShadowDOM",J,null);IA=_A.nextNode();)Bt("uponSanitizeShadowNode",IA,null),Sr(IA),Sn(IA),IA.content instanceof n&&qA(IA.content);Bt("afterSanitizeShadowDOM",J,null)};return A.sanitize=function(qA){var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},IA,_A,Ue,_t,At;if(mA=!qA,mA&&(qA="<!-->"),typeof qA!="string"&&!jt(qA))if(typeof qA.toString=="function"){if(qA=qA.toString(),typeof qA!="string")throw $h("dirty is not a string, aborting")}else throw $h("toString is not a function");if(!A.isSupported){if(mi(e.toStaticHTML)==="object"||typeof e.toStaticHTML=="function"){if(typeof qA=="string")return e.toStaticHTML(qA);if(jt(qA))return e.toStaticHTML(qA.outerHTML)}return qA}if(ZA||Br(J),A.removed=[],typeof qA=="string"&&(ie=!1),ie){if(qA.nodeName){var ot=GA(qA.nodeName);if(!P[ot]||rA[ot])throw $h("root node is forbidden and cannot be sanitized in-place")}}else if(qA instanceof a)IA=Wn("<!---->"),_A=IA.ownerDocument.importNode(qA,!0),_A.nodeType===1&&_A.nodeName==="BODY"||_A.nodeName==="HTML"?IA=_A:IA.appendChild(_A);else{if(!xA&&!MA&&!W&&qA.indexOf("<")===-1)return D&&OA?D.createHTML(qA):qA;if(IA=Wn(qA),!IA)return xA?null:OA?O:""}IA&&RA&&Se(IA.firstChild);for(var dn=Kr(ie?qA:IA);Ue=dn.nextNode();)Ue.nodeType===3&&Ue===_t||(Sr(Ue),Sn(Ue),Ue.content instanceof n&&xi(Ue.content),_t=Ue);if(_t=null,ie)return qA;if(xA){if(NA)for(At=X.call(IA.ownerDocument);IA.firstChild;)At.appendChild(IA.firstChild);else At=IA;return($.shadowroot||$.shadowrootmod)&&(At=N.call(t,At,!0)),At}var Xe=W?IA.outerHTML:IA.innerHTML;return W&&P["!doctype"]&&IA.ownerDocument&&IA.ownerDocument.doctype&&IA.ownerDocument.doctype.name&&Kt(VU,IA.ownerDocument.doctype.name)&&(Xe="<!DOCTYPE "+IA.ownerDocument.doctype.name+`>
|
|
491
|
+
`+Xe),MA&&(Xe=an(Xe,V," "),Xe=an(Xe,sA," "),Xe=an(Xe,iA," ")),D&&OA?D.createHTML(Xe):Xe},A.setConfig=function(qA){Br(qA),ZA=!0},A.clearConfig=function(){Ce=null,ZA=!1},A.isValidAttribute=function(qA,J,IA){Ce||Br({});var _A=GA(qA),Ue=GA(J);return cr(_A,Ue,IA)},A.addHook=function(qA,J){typeof J=="function"&&(M[qA]=M[qA]||[],oo(M[qA],J))},A.removeHook=function(qA){if(M[qA])return Fv(M[qA])},A.removeHooks=function(qA){M[qA]&&(M[qA]=[])},A.removeAllHooks=function(){M={}},A}var $U=Lv();const WU=Object.freeze(Object.defineProperty({__proto__:null,default:$U},Symbol.toStringTag,{value:"Module"}));var lo=function(e){return e&&e.Math===Math&&e},Je=lo(typeof globalThis=="object"&&globalThis)||lo(typeof window=="object"&&window)||lo(typeof self=="object"&&self)||lo(typeof xa=="object"&&xa)||lo(typeof xa=="object"&&xa)||function(){return this}()||Function("return this")(),co={},rt=function(e){try{return!!e()}catch{return!0}},qU=rt,sn=!qU(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),XU=rt,wc=!XU(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")}),YU=wc,bc=Function.prototype.call,Vt=YU?bc.bind(bc):function(){return bc.apply(bc,arguments)},Nv={},Tv={}.propertyIsEnumerable,Ov=Object.getOwnPropertyDescriptor,JU=Ov&&!Tv.call({1:2},1);Nv.f=JU?function(A){var t=Ov(this,A);return!!t&&t.enumerable}:Tv;var Jh=function(e,A){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:A}},Hv=wc,_v=Function.prototype,Zh=_v.call,ZU=Hv&&_v.bind.bind(Zh,Zh),nt=Hv?ZU:function(e){return function(){return Zh.apply(e,arguments)}},Pv=nt,AE=Pv({}.toString),eE=Pv("".slice),Ji=function(e){return eE(AE(e),8,-1)},tE=nt,rE=rt,nE=Ji,Ad=Object,iE=tE("".split),kv=rE(function(){return!Ad("z").propertyIsEnumerable(0)})?function(e){return nE(e)==="String"?iE(e,""):Ad(e)}:Ad,Cc=function(e){return e==null},aE=Cc,sE=TypeError,on=function(e){if(aE(e))throw new sE("Can't call method on "+e);return e},oE=kv,lE=on,uo=function(e){return oE(lE(e))},ed=typeof document=="object"&&document.all,pt=typeof ed>"u"&&ed!==void 0?function(e){return typeof e=="function"||e===ed}:function(e){return typeof e=="function"},cE=pt,pr=function(e){return typeof e=="object"?e!==null:cE(e)},td=Je,uE=pt,fE=function(e){return uE(e)?e:void 0},Zi=function(e,A){return arguments.length<2?fE(td[e]):td[e]&&td[e][A]},hE=nt,xc=hE({}.isPrototypeOf),dE=Je,Dv=dE.navigator,Mv=Dv&&Dv.userAgent,fo=Mv?String(Mv):"",Rv=Je,rd=fo,Kv=Rv.process,Vv=Rv.Deno,jv=Kv&&Kv.versions||Vv&&Vv.version,zv=jv&&jv.v8,ln,Fc;zv&&(ln=zv.split("."),Fc=ln[0]>0&&ln[0]<4?1:+(ln[0]+ln[1])),!Fc&&rd&&(ln=rd.match(/Edge\/(\d+)/),(!ln||ln[1]>=74)&&(ln=rd.match(/Chrome\/(\d+)/),ln&&(Fc=+ln[1])));var nd=Fc,Gv=nd,gE=rt,pE=Je,vE=pE.String,$v=!!Object.getOwnPropertySymbols&&!gE(function(){var e=Symbol("symbol detection");return!vE(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Gv&&Gv<41}),BE=$v,Wv=BE&&!Symbol.sham&&typeof Symbol.iterator=="symbol",mE=Zi,yE=pt,wE=xc,bE=Wv,CE=Object,qv=bE?function(e){return typeof e=="symbol"}:function(e){var A=mE("Symbol");return yE(A)&&wE(A.prototype,CE(e))},xE=String,Qc=function(e){try{return xE(e)}catch{return"Object"}},FE=pt,QE=Qc,UE=TypeError,Mn=function(e){if(FE(e))return e;throw new UE(QE(e)+" is not a function")},EE=Mn,SE=Cc,Wa=function(e,A){var t=e[A];return SE(t)?void 0:EE(t)},id=Vt,ad=pt,sd=pr,IE=TypeError,LE=function(e,A){var t,r;if(A==="string"&&ad(t=e.toString)&&!sd(r=id(t,e))||ad(t=e.valueOf)&&!sd(r=id(t,e))||A!=="string"&&ad(t=e.toString)&&!sd(r=id(t,e)))return r;throw new IE("Can't convert object to primitive value")},Xv={exports:{}},Yv=Je,NE=Object.defineProperty,od=function(e,A){try{NE(Yv,e,{value:A,configurable:!0,writable:!0})}catch{Yv[e]=A}return A},TE=Je,OE=od,Jv="__core-js_shared__",Zv=Xv.exports=TE[Jv]||OE(Jv,{});(Zv.versions||(Zv.versions=[])).push({version:"3.49.0",mode:"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE",source:"https://github.com/zloirock/core-js"});var ld=Xv.exports,AB=ld,cd=function(e,A){return AB[e]||(AB[e]=A||{})},HE=on,_E=Object,Uc=function(e){return _E(HE(e))},PE=nt,kE=Uc,DE=PE({}.hasOwnProperty),cn=Object.hasOwn||function(A,t){return DE(kE(A),t)},ME=nt,RE=0,KE=Math.random(),VE=ME(1.1.toString),eB=function(e){return"Symbol("+(e===void 0?"":e)+")_"+VE(++RE+KE,36)},jE=Je,zE=cd,tB=cn,GE=eB,$E=$v,WE=Wv,qa=jE.Symbol,ud=zE("wks"),qE=WE?qa.for||qa:qa&&qa.withoutSetter||GE,Tt=function(e){return tB(ud,e)||(ud[e]=$E&&tB(qa,e)?qa[e]:qE("Symbol."+e)),ud[e]},XE=Vt,rB=pr,nB=qv,YE=Wa,JE=LE,ZE=Tt,AS=TypeError,eS=ZE("toPrimitive"),tS=function(e,A){if(!rB(e)||nB(e))return e;var t=YE(e,eS),r;if(t){if(A===void 0&&(A="default"),r=XE(t,e,A),!rB(r)||nB(r))return r;throw new AS("Can't convert object to primitive value")}return A===void 0&&(A="number"),JE(e,A)},rS=tS,nS=qv,iB=function(e){var A=rS(e,"string");return nS(A)?A:A+""},iS=Je,aB=pr,fd=iS.document,aS=aB(fd)&&aB(fd.createElement),Ec=function(e){return aS?fd.createElement(e):{}},sS=sn,oS=rt,lS=Ec,sB=!sS&&!oS(function(){return Object.defineProperty(lS("div"),"a",{get:function(){return 7}}).a!==7}),cS=sn,uS=Vt,fS=Nv,hS=Jh,dS=uo,gS=iB,pS=cn,vS=sB,oB=Object.getOwnPropertyDescriptor;co.f=cS?oB:function(A,t){if(A=dS(A),t=gS(t),vS)try{return oB(A,t)}catch{}if(pS(A,t))return hS(!uS(fS.f,A,t),A[t])};var Rn={},BS=sn,mS=rt,lB=BS&&mS(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),yS=pr,wS=String,bS=TypeError,ar=function(e){if(yS(e))return e;throw new bS(wS(e)+" is not an object")},CS=sn,xS=sB,FS=lB,Sc=ar,cB=iB,QS=TypeError,hd=Object.defineProperty,US=Object.getOwnPropertyDescriptor,dd="enumerable",gd="configurable",pd="writable";Rn.f=CS?FS?function(A,t,r){if(Sc(A),t=cB(t),Sc(r),typeof A=="function"&&t==="prototype"&&"value"in r&&pd in r&&!r[pd]){var n=US(A,t);n&&n[pd]&&(A[t]=r.value,r={configurable:gd in r?r[gd]:n[gd],enumerable:dd in r?r[dd]:n[dd],writable:!1})}return hd(A,t,r)}:hd:function(A,t,r){if(Sc(A),t=cB(t),Sc(r),xS)try{return hd(A,t,r)}catch{}if("get"in r||"set"in r)throw new QS("Accessors not supported");return"value"in r&&(A[t]=r.value),A};var ES=sn,SS=Rn,IS=Jh,ho=ES?function(e,A,t){return SS.f(e,A,IS(1,t))}:function(e,A,t){return e[A]=t,e},uB={exports:{}},vd=sn,LS=cn,fB=Function.prototype,NS=vd&&Object.getOwnPropertyDescriptor,hB=LS(fB,"name"),TS=hB&&(function(){}).name==="something",OS=hB&&(!vd||vd&&NS(fB,"name").configurable),Ic={PROPER:TS,CONFIGURABLE:OS},HS=nt,_S=pt,Bd=ld,PS=HS(Function.toString);_S(Bd.inspectSource)||(Bd.inspectSource=function(e){return PS(e)});var md=Bd.inspectSource,kS=Je,DS=pt,dB=kS.WeakMap,MS=DS(dB)&&/native code/.test(String(dB)),RS=cd,KS=eB,gB=RS("keys"),yd=function(e){return gB[e]||(gB[e]=KS(e))},wd={},VS=MS,pB=Je,jS=pr,zS=ho,bd=cn,Cd=ld,GS=yd,$S=wd,vB="Object already initialized",xd=pB.TypeError,WS=pB.WeakMap,Lc,go,Nc,qS=function(e){return Nc(e)?go(e):Lc(e,{})},XS=function(e){return function(A){var t;if(!jS(A)||(t=go(A)).type!==e)throw new xd("Incompatible receiver, "+e+" required");return t}};if(VS||Cd.state){var Un=Cd.state||(Cd.state=new WS);Un.get=Un.get,Un.has=Un.has,Un.set=Un.set,Lc=function(e,A){if(Un.has(e))throw new xd(vB);return A.facade=e,Un.set(e,A),A},go=function(e){return Un.get(e)||{}},Nc=function(e){return Un.has(e)}}else{var Xa=GS("state");$S[Xa]=!0,Lc=function(e,A){if(bd(e,Xa))throw new xd(vB);return A.facade=e,zS(e,Xa,A),A},go=function(e){return bd(e,Xa)?e[Xa]:{}},Nc=function(e){return bd(e,Xa)}}var Tc={set:Lc,get:go,has:Nc,enforce:qS,getterFor:XS},Fd=nt,YS=rt,JS=pt,Oc=cn,Qd=sn,ZS=Ic.CONFIGURABLE,AI=md,BB=Tc,eI=BB.enforce,tI=BB.get,mB=String,Hc=Object.defineProperty,rI=Fd("".slice),nI=Fd("".replace),iI=Fd([].join),aI=Qd&&!YS(function(){return Hc(function(){},"length",{value:8}).length!==8}),sI=String(String).split("String"),oI=uB.exports=function(e,A,t){rI(mB(A),0,7)==="Symbol("&&(A="["+nI(mB(A),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),t&&t.getter&&(A="get "+A),t&&t.setter&&(A="set "+A),(!Oc(e,"name")||ZS&&e.name!==A)&&(Qd?Hc(e,"name",{value:A,configurable:!0}):e.name=A),aI&&t&&Oc(t,"arity")&&e.length!==t.arity&&Hc(e,"length",{value:t.arity});try{t&&Oc(t,"constructor")&&t.constructor?Qd&&Hc(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch{}var r=eI(e);return Oc(r,"source")||(r.source=iI(sI,typeof A=="string"?A:"")),e};Function.prototype.toString=oI(function(){return JS(this)&&tI(this).source||AI(this)},"toString");var yB=uB.exports,lI=pt,cI=Rn,uI=yB,fI=od,Aa=function(e,A,t,r){r||(r={});var n=r.enumerable,i=r.name!==void 0?r.name:A;if(lI(t)&&uI(t,i,r),r.global)n?e[A]=t:fI(A,t);else{try{r.unsafe?e[A]&&(n=!0):delete e[A]}catch{}n?e[A]=t:cI.f(e,A,{value:t,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return e},wB={},hI=Math.ceil,dI=Math.floor,gI=Math.trunc||function(A){var t=+A;return(t>0?dI:hI)(t)},pI=gI,_c=function(e){var A=+e;return A!==A||A===0?0:pI(A)},vI=_c,BI=Math.max,mI=Math.min,yI=function(e,A){var t=vI(e);return t<0?BI(t+A,0):mI(t,A)},wI=_c,bI=Math.min,Ya=function(e){var A=wI(e);return A>0?bI(A,9007199254740991):0},CI=Ya,Ud=function(e){return CI(e.length)},xI=uo,FI=yI,QI=Ud,UI=function(e){return function(A,t,r){var n=xI(A),i=QI(n);if(i===0)return!e&&-1;var a=FI(r,i),s;if(e&&t!==t){for(;i>a;)if(s=n[a++],s!==s)return!0}else for(;i>a;a++)if((e||a in n)&&n[a]===t)return e||a||0;return!e&&-1}},bB={indexOf:UI(!1)},EI=nt,Ed=cn,SI=uo,II=bB.indexOf,LI=wd,CB=EI([].push),xB=function(e,A){var t=SI(e),r=0,n=[],i;for(i in t)!Ed(LI,i)&&Ed(t,i)&&CB(n,i);for(;A.length>r;)Ed(t,i=A[r++])&&(~II(n,i)||CB(n,i));return n},Sd=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],NI=xB,TI=Sd,OI=TI.concat("length","prototype");wB.f=Object.getOwnPropertyNames||function(A){return NI(A,OI)};var FB={};FB.f=Object.getOwnPropertySymbols;var HI=Zi,_I=nt,PI=wB,kI=FB,DI=ar,MI=_I([].concat),RI=HI("Reflect","ownKeys")||function(A){var t=PI.f(DI(A)),r=kI.f;return r?MI(t,r(A)):t},QB=cn,KI=RI,VI=co,jI=Rn,zI=function(e,A,t){for(var r=KI(A),n=jI.f,i=VI.f,a=0;a<r.length;a++){var s=r[a];!QB(e,s)&&!(t&&QB(t,s))&&n(e,s,i(A,s))}},GI=rt,$I=pt,WI=/#|\.prototype\./,po=function(e,A){var t=XI[qI(e)];return t===JI?!0:t===YI?!1:$I(A)?GI(A):!!A},qI=po.normalize=function(e){return String(e).replace(WI,".").toLowerCase()},XI=po.data={},YI=po.NATIVE="N",JI=po.POLYFILL="P",UB=po,Pc=Je,ZI=co.f,AL=ho,eL=Aa,tL=od,rL=zI,nL=UB,sr=function(e,A){var t=e.target,r=e.global,n=e.stat,i,a,s,o,c,u;if(r?a=Pc:n?a=Pc[t]||tL(t,{}):a=Pc[t]&&Pc[t].prototype,a)for(s in A){if(c=A[s],e.dontCallGetSet?(u=ZI(a,s),o=u&&u.value):o=a[s],i=nL(r?s:t+(n?".":"#")+s,e.forced),!i&&o!==void 0){if(typeof c==typeof o)continue;rL(c,o)}(e.sham||o&&o.sham)&&AL(c,"sham",!0),eL(a,s,c,e)}},vo=Je,iL=fo,aL=Ji,kc=function(e){return iL.slice(0,e.length)===e},EB=function(){return kc("Bun/")?"BUN":kc("Cloudflare-Workers")?"CLOUDFLARE":kc("Deno/")?"DENO":kc("Node.js/")?"NODE":vo.Bun&&typeof Bun.version=="string"?"BUN":vo.Deno&&typeof Deno.version=="object"?"DENO":aL(vo.process)==="process"?"NODE":vo.window&&vo.document?"BROWSER":"REST"}(),sL=EB,Dc=sL==="NODE",oL=Je,lL=oL,cL=nt,uL=Mn,fL=function(e,A,t){try{return cL(uL(Object.getOwnPropertyDescriptor(e,A)[t]))}catch{}},hL=pr,dL=function(e){return hL(e)||e===null},gL=dL,pL=String,vL=TypeError,BL=function(e){if(gL(e))return e;throw new vL("Can't set "+pL(e)+" as a prototype")},mL=fL,yL=pr,wL=on,bL=BL,SB=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,A={},t;try{t=mL(Object.prototype,"__proto__","set"),t(A,[]),e=A instanceof Array}catch{}return function(n,i){return wL(n),bL(i),yL(n)&&(e?t(n,i):n.__proto__=i),n}}():void 0),CL=Rn.f,xL=cn,FL=Tt,IB=FL("toStringTag"),Mc=function(e,A,t){e&&!t&&(e=e.prototype),e&&!xL(e,IB)&&CL(e,IB,{configurable:!0,value:A})},LB=yB,QL=Rn,UL=function(e,A,t){return t.get&&LB(t.get,A,{getter:!0}),t.set&&LB(t.set,A,{setter:!0}),QL.f(e,A,t)},EL=Zi,SL=UL,IL=Tt,LL=sn,NB=IL("species"),NL=function(e){var A=EL(e);LL&&A&&!A[NB]&&SL(A,NB,{configurable:!0,get:function(){return this}})},TL=xc,OL=TypeError,HL=function(e,A){if(TL(A,e))return e;throw new OL("Incorrect invocation")},_L=Tt,PL=_L("toStringTag"),TB={};TB[PL]="z";var kL=String(TB)==="[object z]",DL=kL,ML=pt,Rc=Ji,RL=Tt,KL=RL("toStringTag"),VL=Object,jL=Rc(function(){return arguments}())==="Arguments",zL=function(e,A){try{return e[A]}catch{}},Id=DL?Rc:function(e){var A,t,r;return e===void 0?"Undefined":e===null?"Null":typeof(t=zL(A=VL(e),KL))=="string"?t:jL?Rc(A):(r=Rc(A))==="Object"&&ML(A.callee)?"Arguments":r},GL=nt,$L=rt,OB=pt,WL=Id,qL=Zi,XL=md,HB=function(){},_B=qL("Reflect","construct"),Ld=/^\s*(?:class|function)\b/,YL=GL(Ld.exec),JL=!Ld.test(HB),Bo=function(A){if(!OB(A))return!1;try{return _B(HB,[],A),!0}catch{return!1}},PB=function(A){if(!OB(A))return!1;switch(WL(A)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return JL||!!YL(Ld,XL(A))}catch{return!0}};PB.sham=!0;var ZL=!_B||$L(function(){var e;return Bo(Bo.call)||!Bo(Object)||!Bo(function(){e=!0})||e})?PB:Bo,AN=ZL,eN=Qc,tN=TypeError,rN=function(e){if(AN(e))return e;throw new tN(eN(e)+" is not a constructor")},kB=ar,nN=rN,iN=Cc,aN=Tt,sN=aN("species"),DB=function(e,A){var t=kB(e).constructor,r;return t===void 0||iN(r=kB(t)[sN])?A:nN(r)},oN=wc,MB=Function.prototype,RB=MB.apply,KB=MB.call,VB=typeof Reflect=="object"&&Reflect.apply||(oN?KB.bind(RB):function(){return KB.apply(RB,arguments)}),lN=Ji,cN=nt,Kc=function(e){if(lN(e)==="Function")return cN(e)},jB=Kc,uN=Mn,fN=wc,hN=jB(jB.bind),Nd=function(e,A){return uN(e),A===void 0?e:fN?hN(e,A):function(){return e.apply(A,arguments)}},dN=Zi,zB=dN("document","documentElement"),gN=nt,pN=gN([].slice),vN=TypeError,BN=function(e,A){if(e<A)throw new vN("Not enough arguments");return e},GB=fo,$B=/ipad|iphone|ipod/i.test(GB)&&/applewebkit/i.test(GB),Qr=Je,mN=VB,yN=Nd,WB=pt,wN=cn,qB=rt,XB=zB,bN=pN,YB=Ec,CN=BN,xN=$B,FN=Dc,Td=Qr.setImmediate,JB=Qr.clearImmediate,QN=Qr.process,Od=Qr.Dispatch,UN=Qr.Function,ZB=Qr.MessageChannel,EN=Qr.String,Hd=0,mo={},Am="onreadystatechange",yo,ea,_d,Pd;qB(function(){yo=Qr.location});var kd=function(e){if(wN(mo,e)){var A=mo[e];delete mo[e],A()}},Dd=function(e){return function(){kd(e)}},em=function(e){kd(e.data)},tm=function(e){Qr.postMessage(EN(e),yo.protocol+"//"+yo.host)};(!Td||!JB)&&(Td=function(A){CN(arguments.length,1);var t=WB(A)?A:UN(A),r=bN(arguments,1);return mo[++Hd]=function(){mN(t,void 0,r)},ea(Hd),Hd},JB=function(A){delete mo[A]},FN?ea=function(e){QN.nextTick(Dd(e))}:Od&&Od.now?ea=function(e){Od.now(Dd(e))}:ZB&&!xN?(_d=new ZB,Pd=_d.port2,_d.port1.onmessage=em,ea=yN(Pd.postMessage,Pd)):Qr.addEventListener&&WB(Qr.postMessage)&&!Qr.importScripts&&yo&&yo.protocol!=="file:"&&!qB(tm)?(ea=tm,Qr.addEventListener("message",em,!1)):Am in YB("script")?ea=function(e){XB.appendChild(YB("script"))[Am]=function(){XB.removeChild(this),kd(e)}}:ea=function(e){setTimeout(Dd(e),0)});var rm={set:Td},nm=Je,SN=sn,IN=Object.getOwnPropertyDescriptor,LN=function(e){if(!SN)return nm[e];var A=IN(nm,e);return A&&A.value},im=function(){this.head=null,this.tail=null};im.prototype={add:function(e){var A={item:e,next:null},t=this.tail;t?t.next=A:this.head=A,this.tail=A},get:function(){var e=this.head;if(e){var A=this.head=e.next;return A===null&&(this.tail=null),e.item}}};var am=im,NN=fo,TN=/ipad|iphone|ipod/i.test(NN)&&typeof Pebble<"u",ON=fo,HN=/web0s(?!.*chrome)/i.test(ON),Ja=Je,_N=LN,sm=Nd,Md=rm.set,PN=am,kN=$B,DN=TN,MN=HN,Rd=Dc,om=Ja.MutationObserver||Ja.WebKitMutationObserver,lm=Ja.document,cm=Ja.process,Vc=Ja.Promise,Kd=_N("queueMicrotask"),Za,Vd,jd,jc,um;if(!Kd){var zc=new PN,Gc=function(){var e,A;for(Rd&&(e=cm.domain)&&e.exit();A=zc.get();)try{A()}catch(t){throw zc.head&&Za(),t}e&&e.enter()};!kN&&!Rd&&!MN&&om&&lm?(Vd=!0,jd=lm.createTextNode(""),new om(Gc).observe(jd,{characterData:!0}),Za=function(){jd.data=Vd=!Vd}):!DN&&Vc&&Vc.resolve?(jc=Vc.resolve(void 0),jc.constructor=Vc,um=sm(jc.then,jc),Za=function(){um(Gc)}):Rd?Za=function(){cm.nextTick(Gc)}:(Md=sm(Md,Ja),Za=function(){Md(Gc)}),Kd=function(e){zc.head||Za(),zc.add(e)}}var RN=Kd,KN=function(e,A){try{arguments.length===1?console.error(e):console.error(e,A)}catch{}},zd=function(e){try{return{error:!1,value:e()}}catch(A){return{error:!0,value:A}}},VN=Je,$c=VN.Promise,jN=Je,wo=$c,zN=pt,GN=UB,$N=md,WN=Tt,fm=EB,Gd=nd;wo&&wo.prototype;var qN=WN("species"),$d=!1,hm=zN(jN.PromiseRejectionEvent),XN=GN("Promise",function(){var e=$N(wo),A=e!==String(wo);if(!A&&Gd===66)return!0;if(!Gd||Gd<51||!/native code/.test(e)){var t=new wo(function(i){i(1)}),r=function(i){i(function(){},function(){})},n=t.constructor={};if(n[qN]=r,$d=t.then(function(){})instanceof r,!$d)return!0}return!A&&(fm==="BROWSER"||fm==="DENO")&&!hm}),bo={CONSTRUCTOR:XN,REJECTION_EVENT:hm,SUBCLASSING:$d},As={},dm=Mn,YN=TypeError,JN=function(e){var A,t;this.promise=new e(function(r,n){if(A!==void 0||t!==void 0)throw new YN("Bad Promise constructor");A=r,t=n}),this.resolve=dm(A),this.reject=dm(t)};As.f=function(e){return new JN(e)};var ZN=sr,Wc=Dc,yi=Je,A6=lL,es=Vt,gm=Aa,pm=SB,e6=Mc,t6=NL,r6=Mn,qc=pt,n6=pr,i6=HL,a6=DB,vm=rm.set,Wd=RN,s6=KN,o6=zd,l6=am,Bm=Tc,Xc=$c,qd=bo,mm=As,Yc="Promise",ym=qd.CONSTRUCTOR,c6=qd.REJECTION_EVENT,u6=qd.SUBCLASSING,Xd=Bm.getterFor(Yc),f6=Bm.set,ts=Xc&&Xc.prototype,ta=Xc,Jc=ts,wm=yi.TypeError,Yd=yi.document,Jd=yi.process,Zd=mm.f,h6=Zd,d6=!!(Yd&&Yd.createEvent&&yi.dispatchEvent),bm="unhandledrejection",g6="rejectionhandled",Cm=0,xm=1,p6=2,Ag=1,Fm=2,Zc,Qm,Um,Em,Sm=function(e){var A;return n6(e)&&qc(A=e.then)?A:!1},Im=function(e,A){var t=A.value,r=A.state===xm,n=r?e.ok:e.fail,i=e.resolve,a=e.reject,s=e.domain,o,c,u;try{n?(r||(A.rejection===Fm&&B6(A),A.rejection=Ag),n===!0?o=t:(s&&s.enter(),o=n(t),s&&(s.exit(),u=!0)),o===e.promise?a(new wm("Promise-chain cycle")):(c=Sm(o))?es(c,o,i,a):i(o)):a(t)}catch(d){s&&!u&&s.exit(),a(d)}},Lm=function(e,A){e.notified||(e.notified=!0,Wd(function(){for(var t=e.reactions,r;r=t.get();)Im(r,e);e.notified=!1,A&&!e.rejection&&v6(e)}))},Nm=function(e,A,t){var r,n;d6?(r=Yd.createEvent("Event"),r.promise=A,r.reason=t,r.initEvent(e,!1,!0),yi.dispatchEvent(r)):r={promise:A,reason:t},!c6&&(n=yi["on"+e])?n(r):e===bm&&s6("Unhandled promise rejection",t)},v6=function(e){es(vm,yi,function(){var A=e.facade,t=e.value,r=Tm(e),n;if(r&&(n=o6(function(){Wc?Jd.emit("unhandledRejection",t,A):Nm(bm,A,t)}),e.rejection=Wc||Tm(e)?Fm:Ag,n.error))throw n.value})},Tm=function(e){return e.rejection!==Ag&&!e.parent},B6=function(e){es(vm,yi,function(){var A=e.facade;Wc?Jd.emit("rejectionHandled",A):Nm(g6,A,e.value)})},rs=function(e,A,t){return function(r){e(A,r,t)}},ns=function(e,A,t){e.done||(e.done=!0,t&&(e=t),e.value=A,e.state=p6,Lm(e,!0))},eg=function(e,A,t){if(!e.done){e.done=!0,t&&(e=t);try{if(e.facade===A)throw new wm("Promise can't be resolved itself");var r=Sm(A);r?Wd(function(){var n={done:!1};try{es(r,A,rs(eg,n,e),rs(ns,n,e))}catch(i){ns(n,i,e)}}):(e.value=A,e.state=xm,Lm(e,!1))}catch(n){ns({done:!1},n,e)}}};if(ym&&(ta=function(A){i6(this,Jc),r6(A),es(Zc,this);var t=Xd(this);try{A(rs(eg,t),rs(ns,t))}catch(r){ns(t,r)}},Jc=ta.prototype,Zc=function(A){f6(this,{type:Yc,done:!1,notified:!1,parent:!1,reactions:new l6,rejection:!1,state:Cm,value:null})},Zc.prototype=gm(Jc,"then",function(A,t){var r=Xd(this),n=Zd(a6(this,ta));return r.parent=!0,n.ok=qc(A)?A:!0,n.fail=qc(t)&&t,n.domain=Wc?Jd.domain:void 0,r.state===Cm?r.reactions.add(n):Wd(function(){Im(n,r)}),n.promise}),Qm=function(){var e=new Zc,A=Xd(e);this.promise=e,this.resolve=rs(eg,A),this.reject=rs(ns,A)},mm.f=Zd=function(e){return e===ta||e===Um?new Qm(e):h6(e)},qc(Xc)&&ts!==Object.prototype)){Em=ts.then,u6||gm(ts,"then",function(A,t){var r=this;return new ta(function(n,i){es(Em,r,n,i)}).then(A,t)},{unsafe:!0});try{delete ts.constructor}catch{}pm&&pm(ts,Jc)}ZN({global:!0,constructor:!0,wrap:!0,forced:ym},{Promise:ta}),Um=A6.Promise,e6(ta,Yc,!1),t6(Yc);var Co={},m6=Tt,y6=Co,w6=m6("iterator"),b6=Array.prototype,C6=function(e){return e!==void 0&&(y6.Array===e||b6[w6]===e)},x6=Id,Om=Wa,F6=Cc,Q6=Co,U6=Tt,E6=U6("iterator"),Hm=function(e){if(!F6(e))return Om(e,E6)||Om(e,"@@iterator")||Q6[x6(e)]},S6=Vt,I6=Mn,L6=ar,N6=Qc,T6=Hm,O6=TypeError,H6=function(e,A){var t=arguments.length<2?T6(e):A;if(I6(t))return L6(S6(t,e));throw new O6(N6(e)+" is not iterable")},_6=Vt,_m=ar,P6=Wa,k6=function(e,A,t){var r,n;_m(e);try{if(r=P6(e,"return"),!r){if(A==="throw")throw t;return t}r=_6(r,e)}catch(i){n=!0,r=i}if(A==="throw")throw t;if(n)throw r;return _m(r),t},D6=Nd,M6=Vt,R6=ar,K6=Qc,V6=C6,j6=Ud,Pm=xc,z6=H6,G6=Hm,km=k6,$6=TypeError,Au=function(e,A){this.stopped=e,this.result=A},Dm=Au.prototype,Mm=function(e,A,t){var r=t&&t.that,n=!!(t&&t.AS_ENTRIES),i=!!(t&&t.IS_RECORD),a=!!(t&&t.IS_ITERATOR),s=!!(t&&t.INTERRUPTED),o=D6(A,r),c,u,d,p,h,m,B,C=function(L){var D=c;return c=void 0,D&&km(D,"normal"),new Au(!0,L)},b=function(L){return n?(R6(L),s?o(L[0],L[1],C):o(L[0],L[1])):s?o(L,C):o(L)};if(i)c=e.iterator;else if(a)c=e;else{if(u=G6(e),!u)throw new $6(K6(e)+" is not iterable");if(V6(u)){for(d=0,p=j6(e);p>d;d++)if(h=b(e[d]),h&&Pm(Dm,h))return h;return new Au(!1)}c=z6(e,u)}for(m=i?e.next:c.next;!(B=M6(m,c)).done;){var Q=B.value;try{h=b(Q)}catch(L){if(c)km(c,"throw",L);else throw L}if(typeof h=="object"&&h&&Pm(Dm,h))return h}return new Au(!1)},W6=Tt,Rm=W6("iterator"),Km=!1;try{var q6=0,Vm={next:function(){return{done:!!q6++}},return:function(){Km=!0}};Vm[Rm]=function(){return this},Array.from(Vm,function(){throw 2})}catch{}var X6=function(e,A){try{if(!A&&!Km)return!1}catch{return!1}var t=!1;try{var r={};r[Rm]=function(){return{next:function(){return{done:t=!0}}}},e(r)}catch{}return t},Y6=$c,J6=X6,Z6=bo.CONSTRUCTOR,jm=Z6||!J6(function(e){Y6.all(e).then(void 0,function(){})}),A8=sr,e8=Vt,t8=Mn,r8=As,n8=zd,i8=Mm,a8=jm;A8({target:"Promise",stat:!0,forced:a8},{all:function(A){var t=this,r=r8.f(t),n=r.resolve,i=r.reject,a=n8(function(){var s=t8(t.resolve),o=[],c=0,u=1;i8(A,function(d){var p=c++,h=!1;u++,e8(s,t,d).then(function(m){h||(h=!0,o[p]=m,--u||n(o))},i)}),--u||n(o)});return a.error&&i(a.value),r.promise}});var s8=sr,o8=bo.CONSTRUCTOR,tg=$c,l8=Zi,c8=pt,u8=Aa,zm=tg&&tg.prototype;if(s8({target:"Promise",proto:!0,forced:o8,real:!0},{catch:function(e){return this.then(void 0,e)}}),c8(tg)){var Gm=l8("Promise").prototype.catch;zm.catch!==Gm&&u8(zm,"catch",Gm,{unsafe:!0})}var f8=sr,h8=Vt,d8=Mn,g8=As,p8=zd,v8=Mm,B8=jm;f8({target:"Promise",stat:!0,forced:B8},{race:function(A){var t=this,r=g8.f(t),n=r.reject,i=p8(function(){var a=d8(t.resolve);v8(A,function(s){h8(a,t,s).then(r.resolve,n)})});return i.error&&n(i.value),r.promise}});var m8=sr,y8=As,w8=bo.CONSTRUCTOR;m8({target:"Promise",stat:!0,forced:w8},{reject:function(A){var t=y8.f(this),r=t.reject;return r(A),t.promise}});var b8=ar,C8=pr,x8=As,F8=function(e,A){if(b8(e),C8(A)&&A.constructor===e)return A;var t=x8.f(e),r=t.resolve;return r(A),t.promise},Q8=sr,U8=Zi,E8=bo.CONSTRUCTOR,S8=F8;U8("Promise"),Q8({target:"Promise",stat:!0,forced:E8},{resolve:function(A){return S8(this,A)}});function $m(e,A,t,r,n,i,a){try{var s=e[i](a),o=s.value}catch(c){return void t(c)}s.done?A(o):Promise.resolve(o).then(r,n)}function Kn(e){return function(){var A=this,t=arguments;return new Promise(function(r,n){var i=e.apply(A,t);function a(o){$m(i,r,n,a,s,"next",o)}function s(o){$m(i,r,n,a,s,"throw",o)}a(void 0)})}}var I8=Id,L8=String,En=function(e){if(I8(e)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return L8(e)},N8=ar,Wm=function(){var e=N8(this),A="";return e.hasIndices&&(A+="d"),e.global&&(A+="g"),e.ignoreCase&&(A+="i"),e.multiline&&(A+="m"),e.dotAll&&(A+="s"),e.unicode&&(A+="u"),e.unicodeSets&&(A+="v"),e.sticky&&(A+="y"),A},rg=rt,T8=Je,ng=T8.RegExp,ig=rg(function(){var e=ng("a","y");return e.lastIndex=2,e.exec("abcd")!==null});ig||rg(function(){return!ng("a","y").sticky});var O8=ig||rg(function(){var e=ng("^r","gy");return e.lastIndex=2,e.exec("str")!==null}),qm={BROKEN_CARET:O8,UNSUPPORTED_Y:ig},Xm={},H8=xB,_8=Sd,P8=Object.keys||function(A){return H8(A,_8)},k8=sn,D8=lB,M8=Rn,R8=ar,K8=uo,V8=P8;Xm.f=k8&&!D8?Object.defineProperties:function(A,t){R8(A);for(var r=K8(t),n=V8(t),i=n.length,a=0,s;i>a;)M8.f(A,s=n[a++],r[s]);return A};var j8=ar,z8=Xm,Ym=Sd,G8=wd,$8=zB,W8=Ec,q8=yd,Jm=">",Zm="<",ag="prototype",sg="script",A5=q8("IE_PROTO"),og=function(){},e5=function(e){return Zm+sg+Jm+e+Zm+"/"+sg+Jm},t5=function(e){e.write(e5("")),e.close();var A=e.parentWindow.Object;return e=null,A},X8=function(){var e=W8("iframe"),A="java"+sg+":",t;return e.style.display="none",$8.appendChild(e),e.src=String(A),t=e.contentWindow.document,t.open(),t.write(e5("document.F=Object")),t.close(),t.F},eu,tu=function(){try{eu=new ActiveXObject("htmlfile")}catch{}tu=typeof document<"u"?document.domain&&eu?t5(eu):X8():t5(eu);for(var e=Ym.length;e--;)delete tu[ag][Ym[e]];return tu()};G8[A5]=!0;var lg=Object.create||function(A,t){var r;return A!==null?(og[ag]=j8(A),r=new og,og[ag]=null,r[A5]=A):r=tu(),t===void 0?r:z8.f(r,t)},Y8=rt,J8=Je,Z8=J8.RegExp,AT=Y8(function(){var e=Z8(".","s");return!(e.dotAll&&e.test(`
|
|
492
|
+
`)&&e.flags==="s")}),eT=rt,tT=Je,rT=tT.RegExp,nT=eT(function(){var e=rT("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),is=Vt,ru=nt,iT=En,aT=Wm,sT=qm,oT=cd,lT=lg,cT=Tc.get,uT=AT,fT=nT,hT=oT("native-string-replace",String.prototype.replace),nu=RegExp.prototype.exec,cg=nu,dT=ru("".charAt),gT=ru("".indexOf),pT=ru("".replace),r5=ru("".slice),ug=function(){var e=/a/,A=/b*/g;return is(nu,e,"a"),is(nu,A,"a"),e.lastIndex!==0||A.lastIndex!==0}(),n5=sT.BROKEN_CARET,fg=/()??/.exec("")[1]!==void 0,vT=ug||fg||n5||uT||fT,i5=function(e,A){for(var t=e.groups=lT(null),r=0;r<A.length;r++){var n=A[r];t[n[0]]=e[n[1]]}};vT&&(cg=function(A){var t=this,r=cT(t),n=iT(A),i=r.raw,a,s,o;if(i)return i.lastIndex=t.lastIndex,a=is(cg,i,n),t.lastIndex=i.lastIndex,a&&r.groups&&i5(a,r.groups),a;var c=r.groups,u=n5&&t.sticky,d=is(aT,t),p=t.source,h=0,m=n;if(u){d=pT(d,"y",""),gT(d,"g")===-1&&(d+="g"),m=r5(n,t.lastIndex);var B=t.lastIndex>0&&dT(n,t.lastIndex-1);t.lastIndex>0&&(!t.multiline||t.multiline&&B!==`
|
|
493
|
+
`&&B!=="\r"&&B!=="\u2028"&&B!=="\u2029")&&(p="(?: (?:"+p+"))",m=" "+m,h++),s=new RegExp("^(?:"+p+")",d)}fg&&(s=new RegExp("^"+p+"$(?!\\s)",d)),ug&&(o=t.lastIndex);var C=is(nu,u?s:t,m);return u?C?(C.input=n,C[0]=r5(C[0],h),C.index=t.lastIndex,t.lastIndex+=C[0].length):t.lastIndex=0:ug&&C&&(t.lastIndex=t.global?C.index+C[0].length:o),fg&&C&&C.length>1&&is(hT,C[0],s,function(){for(var b=1;b<arguments.length-2;b++)arguments[b]===void 0&&(C[b]=void 0)}),C&&c&&i5(C,c),C});var hg=cg,BT=sr,a5=hg;BT({target:"RegExp",proto:!0,forced:/./.exec!==a5},{exec:a5});var s5=Vt,o5=Aa,mT=hg,l5=rt,c5=Tt,yT=ho,wT=c5("species"),dg=RegExp.prototype,gg=function(e,A,t,r){var n=c5(e),i=!l5(function(){var c={};return c[n]=function(){return 7},""[e](c)!==7}),a=i&&!l5(function(){var c=!1,u=/a/;if(e==="split"){var d={};d[wT]=function(){return u},u={constructor:d,flags:""},u[n]=/./[n]}return u.exec=function(){return c=!0,null},u[n](""),!c});if(!i||!a||t){var s=/./[n],o=A(n,""[e],function(c,u,d,p,h){var m=u.exec;return m===mT||m===dg.exec?i&&!h?{done:!0,value:s5(s,u,d,p)}:{done:!0,value:s5(c,d,u,p)}:{done:!1}});o5(String.prototype,e,o[0]),o5(dg,n,o[1])}r&&yT(dg[n],"sham",!0)},pg=nt,bT=_c,CT=En,xT=on,FT=pg("".charAt),u5=pg("".charCodeAt),QT=pg("".slice),UT=function(e){return function(A,t){var r=CT(xT(A)),n=bT(t),i=r.length,a,s;return n<0||n>=i?e?"":void 0:(a=u5(r,n),a<55296||a>56319||n+1===i||(s=u5(r,n+1))<56320||s>57343?e?FT(r,n):a:e?QT(r,n,n+2):(a-55296<<10)+(s-56320)+65536)}},ET={charAt:UT(!0)},ST=ET.charAt,vg=function(e,A,t){return A+(t&&ST(e,A).length||1)},IT=Je,LT=rt,f5=IT.RegExp,NT=!LT(function(){var e=!0;try{f5(".","d")}catch{e=!1}var A={},t="",r=e?"dgimsy":"gimsy",n=function(o,c){Object.defineProperty(A,o,{get:function(){return t+=c,!0}})},i={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};e&&(i.hasIndices="d");for(var a in i)n(a,i[a]);var s=Object.getOwnPropertyDescriptor(f5.prototype,"flags").get.call(A);return s!==r||t!==r}),TT={correct:NT},OT=Vt,HT=cn,_T=xc,h5=TT,PT=Wm,kT=RegExp.prototype,iu=h5.correct?function(e){return e.flags}:function(e){return!h5.correct&&_T(kT,e)&&!HT(e,"flags")?OT(PT,e):e.flags},d5=Vt,DT=ar,MT=pt,RT=Ji,KT=hg,VT=TypeError,Bg=function(e,A){var t=e.exec;if(MT(t)){var r=d5(t,e,A);return r!==null&&DT(r),r}if(RT(e)==="RegExp")return d5(KT,e,A);throw new VT("RegExp#exec called on incompatible receiver")},jT=Vt,zT=nt,GT=gg,$T=ar,WT=pr,qT=Ya,au=En,XT=on,YT=Wa,JT=vg,ZT=iu,g5=Bg,mg=zT("".indexOf);GT("match",function(e,A,t){return[function(n){var i=XT(this),a=WT(n)?YT(n,e):void 0;return a?jT(a,n,i):new RegExp(n)[e](au(i))},function(r){var n=$T(this),i=au(r),a=t(A,n,i);if(a.done)return a.value;var s=au(ZT(n));if(!~mg(s,"g"))return g5(n,i);var o=!!~mg(s,"u")||!!~mg(s,"v");n.lastIndex=0;for(var c=[],u=0,d;(d=g5(n,i))!==null;){var p=au(d[0]);c[u]=p,p===""&&(n.lastIndex=JT(i,qT(n.lastIndex),o)),u++}return u===0?null:c}]});var yg=nt,AO=Uc,eO=Math.floor,wg=yg("".charAt),tO=yg("".replace),bg=yg("".slice),rO=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,nO=/\$([$&'`]|\d{1,2})/g,iO=function(e,A,t,r,n,i){var a=t+e.length,s=r.length,o=nO;return n!==void 0&&(n=AO(n),o=rO),tO(i,o,function(c,u){var d;switch(wg(u,0)){case"$":return"$";case"&":return e;case"`":return bg(A,0,t);case"'":return bg(A,a);case"<":d=n[bg(u,1,-1)];break;default:var p=+u;if(p===0)return c;if(p>s){var h=eO(p/10);return h===0?c:h<=s?r[h-1]===void 0?wg(u,1):r[h-1]+wg(u,1):c}d=r[p-1]}return d===void 0?"":d})},aO=VB,p5=Vt,su=nt,sO=gg,oO=rt,lO=ar,cO=pt,uO=pr,fO=_c,hO=Ya,ra=En,dO=on,gO=vg,pO=Wa,vO=iO,BO=iu,mO=Bg,yO=Tt,Cg=yO("replace"),wO=Math.max,bO=Math.min,CO=su([].concat),xg=su([].push),as=su("".indexOf),v5=su("".slice),xO=function(e){return e===void 0?e:String(e)},FO=function(){return"a".replace(/./,"$0")==="$0"}(),B5=function(){return/./[Cg]?/./[Cg]("a","$0")==="":!1}(),QO=!oO(function(){var e=/./;return e.exec=function(){var A=[];return A.groups={a:"7"},A},"".replace(e,"$<a>")!=="7"});sO("replace",function(e,A,t){var r=B5?"$":"$0";return[function(i,a){var s=dO(this),o=uO(i)?pO(i,Cg):void 0;return o?p5(o,i,s,a):p5(A,ra(s),i,a)},function(n,i){var a=lO(this),s=ra(n),o=cO(i);o||(i=ra(i));var c=ra(BO(a));if(typeof i=="string"&&!~as(i,r)&&!~as(i,"$<")&&!~as(c,"y")){var u=t(A,a,s,i);if(u.done)return u.value}var d=!!~as(c,"g"),p;d&&(p=!!~as(c,"u")||!!~as(c,"v"),a.lastIndex=0);for(var h=[],m;m=mO(a,s),!(m===null||(xg(h,m),!d));){var B=ra(m[0]);B===""&&(a.lastIndex=gO(s,hO(a.lastIndex),p))}for(var C="",b=0,Q=0;Q<h.length;Q++){m=h[Q];for(var L=ra(m[0]),D=wO(bO(fO(m.index),s.length),0),O=[],z,R=1;R<m.length;R++)xg(O,xO(m[R]));var _=m.groups;if(o){var X=CO([L],O,D,s);_!==void 0&&xg(X,_),z=ra(aO(i,void 0,X))}else z=vO(L,s,D,O,_,i);D>=b&&(C+=v5(s,b,D)+z,b=D+L.length)}return C+v5(s,b)}]},!QO||!FO||B5);var UO=pr,EO=Ji,SO=Tt,IO=SO("match"),LO=function(e){var A;return UO(e)&&((A=e[IO])!==void 0?!!A:EO(e)==="RegExp")},NO=LO,TO=TypeError,Fg=function(e){if(NO(e))throw new TO("The method doesn't accept regular expressions");return e},OO=Tt,HO=OO("match"),Qg=function(e){var A=/./;try{"/./"[e](A)}catch{try{return A[HO]=!1,"/./"[e](A)}catch{}}return!1},_O=sr,PO=Kc,kO=co.f,DO=Ya,m5=En,MO=Fg,RO=on,KO=Qg,VO=PO("".slice),jO=Math.min,y5=KO("startsWith"),zO=!y5&&!!function(){var e=kO(String.prototype,"startsWith");return e&&!e.writable}();_O({target:"String",proto:!0,forced:!zO&&!y5},{startsWith:function(A){var t=m5(RO(this));MO(A);var r=m5(A),n=DO(jO(arguments.length>1?arguments[1]:void 0,t.length));return VO(t,n,n+r.length)===r}});var GO=Tt,$O=lg,WO=Rn.f,Ug=GO("unscopables"),Eg=Array.prototype;Eg[Ug]===void 0&&WO(Eg,Ug,{configurable:!0,value:$O(null)});var qO=function(e){Eg[Ug][e]=!0},XO=rt,YO=!XO(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),JO=cn,ZO=pt,A7=Uc,e7=yd,t7=YO,w5=e7("IE_PROTO"),Sg=Object,r7=Sg.prototype,b5=t7?Sg.getPrototypeOf:function(e){var A=A7(e);if(JO(A,w5))return A[w5];var t=A.constructor;return ZO(t)&&A instanceof t?t.prototype:A instanceof Sg?r7:null},n7=rt,i7=pt,a7=pr,C5=b5,s7=Aa,o7=Tt,Ig=o7("iterator"),x5=!1,na,Lg,Ng;[].keys&&(Ng=[].keys(),"next"in Ng?(Lg=C5(C5(Ng)),Lg!==Object.prototype&&(na=Lg)):x5=!0);var l7=!a7(na)||n7(function(){var e={};return na[Ig].call(e)!==e});l7&&(na={}),i7(na[Ig])||s7(na,Ig,function(){return this});var F5={IteratorPrototype:na,BUGGY_SAFARI_ITERATORS:x5},c7=F5.IteratorPrototype,u7=lg,f7=Jh,h7=Mc,d7=Co,g7=function(){return this},p7=function(e,A,t,r){var n=A+" Iterator";return e.prototype=u7(c7,{next:f7(+!r,t)}),h7(e,n,!1),d7[n]=g7,e},v7=sr,B7=Vt,Q5=Ic,m7=pt,y7=p7,U5=b5,E5=SB,w7=Mc,b7=ho,Tg=Aa,C7=Tt,x7=Co,S5=F5,F7=Q5.PROPER,Q7=Q5.CONFIGURABLE,I5=S5.IteratorPrototype,ou=S5.BUGGY_SAFARI_ITERATORS,xo=C7("iterator"),L5="keys",Fo="values",N5="entries",U7=function(){return this},E7=function(e,A,t,r,n,i,a){y7(t,A,r);var s=function(b){if(b===n&&p)return p;if(!ou&&b&&b in u)return u[b];switch(b){case L5:return function(){return new t(this,b)};case Fo:return function(){return new t(this,b)};case N5:return function(){return new t(this,b)}}return function(){return new t(this)}},o=A+" Iterator",c=!1,u=e.prototype,d=u[xo]||u["@@iterator"]||n&&u[n],p=!ou&&d||s(n),h=A==="Array"&&u.entries||d,m,B,C;if(h&&(m=U5(h.call(new e)),m!==Object.prototype&&m.next&&(U5(m)!==I5&&(E5?E5(m,I5):m7(m[xo])||Tg(m,xo,U7)),w7(m,o,!0))),F7&&n===Fo&&d&&d.name!==Fo&&(Q7?b7(u,"name",Fo):(c=!0,p=function(){return B7(d,this)})),n)if(B={values:s(Fo),keys:i?p:s(L5),entries:s(N5)},a)for(C in B)(ou||c||!(C in u))&&Tg(u,C,B[C]);else v7({target:A,proto:!0,forced:ou||c},B);return u[xo]!==p&&Tg(u,xo,p,{name:n}),x7[A]=p,B},S7=function(e,A){return{value:e,done:A}},I7=uo,Og=qO,T5=Co,O5=Tc,L7=Rn.f,N7=E7,lu=S7,T7=sn,H5="Array Iterator",O7=O5.set,H7=O5.getterFor(H5),_7=N7(Array,"Array",function(e,A){O7(this,{type:H5,target:I7(e),index:0,kind:A})},function(){var e=H7(this),A=e.target,t=e.index++;if(!A||t>=A.length)return e.target=null,lu(void 0,!0);switch(e.kind){case"keys":return lu(t,!1);case"values":return lu(A[t],!1)}return lu([t,A[t]],!1)},"values"),_5=T5.Arguments=T5.Array;if(Og("keys"),Og("values"),Og("entries"),T7&&_5.name!=="values")try{L7(_5,"name",{value:"values"})}catch{}var P7={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},k7=Ec,Hg=k7("span").classList,P5=Hg&&Hg.constructor&&Hg.constructor.prototype,D7=P5===Object.prototype?void 0:P5,k5=Je,D5=P7,M7=D7,Qo=_7,M5=ho,R7=Mc,K7=Tt,_g=K7("iterator"),Pg=Qo.values,R5=function(e,A){if(e){if(e[_g]!==Pg)try{M5(e,_g,Pg)}catch{e[_g]=Pg}if(R7(e,A,!0),D5[A]){for(var t in Qo)if(e[t]!==Qo[t])try{M5(e,t,Qo[t])}catch{e[t]=Qo[t]}}}};for(var kg in D5)R5(k5[kg]&&k5[kg].prototype,kg);R5(M7,"DOMTokenList");function V7(e,A){if(Le(e)!="object"||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var r=t.call(e,A);if(Le(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(A==="string"?String:Number)(e)}function j7(e){var A=V7(e,"string");return Le(A)=="symbol"?A:A+""}function Dg(e,A,t){return(A=j7(A))in e?Object.defineProperty(e,A,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[A]=t,e}var z7=Mn,G7=Uc,$7=kv,W7=Ud,K5=TypeError,V5="Reduce of empty array with no initial value",q7=function(e){return function(A,t,r,n){var i=G7(A),a=$7(i),s=W7(i);if(z7(t),s===0&&r<2)throw new K5(V5);var o=e?s-1:0,c=e?-1:1;if(r<2)for(;;){if(o in a){n=a[o],o+=c;break}if(o+=c,e?o<0:s<=o)throw new K5(V5)}for(;e?o>=0:s>o;o+=c)o in a&&(n=t(n,a[o],o,i));return n}},X7={left:q7(!1)},Y7=rt,j5=function(e,A){var t=[][e];return!!t&&Y7(function(){t.call(null,A||function(){return 1},1)})},J7=sr,Z7=X7.left,AH=j5,z5=nd,eH=Dc,tH=!eH&&z5>79&&z5<83,rH=tH||!AH("reduce");J7({target:"Array",proto:!0,forced:rH},{reduce:function(A){var t=arguments.length;return Z7(this,A,t,t>1?arguments[1]:void 0)}});var nH=sr,iH=Kc,aH=co.f,sH=Ya,G5=En,oH=Fg,lH=on,cH=Qg,uH=iH("".slice),fH=Math.min,$5=cH("endsWith"),hH=!$5&&!!function(){var e=aH(String.prototype,"endsWith");return e&&!e.writable}();nH({target:"String",proto:!0,forced:!hH&&!$5},{endsWith:function(A){var t=G5(lH(this));oH(A);var r=G5(A),n=arguments.length>1?arguments[1]:void 0,i=t.length,a=n===void 0?i:fH(sH(n),i);return uH(t,a-r.length,a)===r}});var Mg=Vt,Rg=nt,dH=gg,gH=ar,pH=pr,vH=on,BH=DB,mH=vg,yH=Ya,Kg=En,wH=Wa,bH=iu,W5=Bg,CH=qm,xH=rt,ss=CH.UNSUPPORTED_Y,FH=4294967295,QH=Math.min,Vg=Rg([].push),jg=Rg("".slice),cu=Rg("".indexOf),UH=!xH(function(){var e=/(?:)/,A=e.exec;e.exec=function(){return A.apply(this,arguments)};var t="ab".split(e);return t.length!==2||t[0]!=="a"||t[1]!=="b"}),q5="abbc".split(/(b)*/)[1]==="c"||"test".split(/(?:)/,-1).length!==4||"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||".".split(/()()/).length>1||"".split(/.?/).length;dH("split",function(e,A,t){var r="0".split(void 0,0).length?function(n,i){return n===void 0&&i===0?[]:Mg(A,this,n,i)}:A;return[function(i,a){var s=vH(this),o=pH(i)?wH(i,e):void 0;return o?Mg(o,i,s,a):Mg(r,Kg(s),i,a)},function(n,i){var a=gH(this),s=Kg(n);if(!q5){var o=t(r,a,s,i,r!==A);if(o.done)return o.value}var c=BH(a,RegExp),u=Kg(bH(a)),d=!!~cu(u,"u")||!!~cu(u,"v");ss?~cu(u,"g")||(u+="g"):~cu(u,"y")||(u+="y");var p=new c(ss?"^(?:"+a.source+")":a,u),h=i===void 0?FH:i>>>0;if(h===0)return[];if(s.length===0)return W5(p,s)===null?[s]:[];for(var m=0,B=0,C=[];B<s.length;){p.lastIndex=ss?0:B;var b=W5(p,ss?jg(s,B):s),Q;if(b===null||(Q=QH(yH(p.lastIndex+(ss?B:0)),s.length))===m)B=mH(s,B,d);else{if(Vg(C,jg(s,m,B)),C.length===h)return C;for(var L=1;L<=b.length-1;L++)if(Vg(C,b[L]),C.length===h)return C;B=m=Q}}return Vg(C,jg(s,m)),C}]},q5||!UH,ss);var uu={exports:{}},Uo={exports:{}};(function(){var e,A,t,r,n,i;typeof performance<"u"&&performance!==null&&performance.now?Uo.exports=function(){return performance.now()}:typeof process<"u"&&process!==null&&process.hrtime?(Uo.exports=function(){return(e()-n)/1e6},A=process.hrtime,e=function(){var a;return a=A(),a[0]*1e9+a[1]},r=e(),i=process.uptime()*1e9,n=r-i):Date.now?(Uo.exports=function(){return Date.now()-t},t=Date.now()):(Uo.exports=function(){return new Date().getTime()-t},t=new Date().getTime())}).call(xa);for(var EH=Uo.exports,SH=EH,Vn=typeof window>"u"?xa:window,fu=["moz","webkit"],os="AnimationFrame",ls=Vn["request"+os],Eo=Vn["cancel"+os]||Vn["cancelRequest"+os],So=0;!ls&&So<fu.length;So++)ls=Vn[fu[So]+"Request"+os],Eo=Vn[fu[So]+"Cancel"+os]||Vn[fu[So]+"CancelRequest"+os];if(!ls||!Eo){var zg=0,X5=0,ia=[],IH=1e3/60;ls=function(e){if(ia.length===0){var A=SH(),t=Math.max(0,IH-(A-zg));zg=t+A,setTimeout(function(){var r=ia.slice(0);ia.length=0;for(var n=0;n<r.length;n++)if(!r[n].cancelled)try{r[n].callback(zg)}catch(i){setTimeout(function(){throw i},0)}},Math.round(t))}return ia.push({handle:++X5,callback:e,cancelled:!1}),X5},Eo=function(e){for(var A=0;A<ia.length;A++)ia[A].handle===e&&(ia[A].cancelled=!0)}}uu.exports=function(e){return ls.call(Vn,e)},uu.exports.cancel=function(){Eo.apply(Vn,arguments)},uu.exports.polyfill=function(e){e||(e=Vn),e.requestAnimationFrame=ls,e.cancelAnimationFrame=Eo};var LH=uu.exports;const Gg=hf(LH);var Y5=`
|
|
494
|
+
\v\f\r \u2028\u2029\uFEFF`,NH=nt,TH=on,OH=En,$g=Y5,J5=NH("".replace),HH=RegExp("^["+$g+"]+"),_H=RegExp("(^|[^"+$g+"])["+$g+"]+$"),PH=function(e){return function(A){var t=OH(TH(A));return e&1&&(t=J5(t,HH,"")),e&2&&(t=J5(t,_H,"$1")),t}},kH={trim:PH(3)},DH=Ic.PROPER,MH=rt,Z5=Y5,Ay="
",RH=function(e){return MH(function(){return!!Z5[e]()||Ay[e]()!==Ay||DH&&Z5[e].name!==e})},KH=sr,VH=kH.trim,jH=RH;KH({target:"String",proto:!0,forced:jH("trim")},{trim:function(){return VH(this)}});var zH=function(e){this.ok=!1,this.alpha=1,e.charAt(0)=="#"&&(e=e.substr(1,6)),e=e.replace(/ /g,""),e=e.toLowerCase();var A={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};e=A[e]||e;for(var t=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function(o){return[parseInt(o[1]),parseInt(o[2]),parseInt(o[3]),parseFloat(o[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(o){return[parseInt(o[1]),parseInt(o[2]),parseInt(o[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(o){return[parseInt(o[1],16),parseInt(o[2],16),parseInt(o[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(o){return[parseInt(o[1]+o[1],16),parseInt(o[2]+o[2],16),parseInt(o[3]+o[3],16)]}}],r=0;r<t.length;r++){var n=t[r].re,i=t[r].process,a=n.exec(e);if(a){var s=i(a);this.r=s[0],this.g=s[1],this.b=s[2],s.length>3&&(this.alpha=s[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var o=this.r.toString(16),c=this.g.toString(16),u=this.b.toString(16);return o.length==1&&(o="0"+o),c.length==1&&(c="0"+c),u.length==1&&(u="0"+u),"#"+o+c+u},this.getHelpXML=function(){for(var o=new Array,c=0;c<t.length;c++)for(var u=t[c].example,d=0;d<u.length;d++)o[o.length]=u[d];for(var p in A)o[o.length]=p;var h=document.createElement("ul");h.setAttribute("id","rgbcolor-examples");for(var c=0;c<o.length;c++)try{var m=document.createElement("li"),B=new RGBColor(o[c]),C=document.createElement("div");C.style.cssText="margin: 3px; border: 1px solid black; background:"+B.toHex()+"; color:"+B.toHex(),C.appendChild(document.createTextNode("test"));var b=document.createTextNode(" "+o[c]+" -> "+B.toRGB()+" -> "+B.toHex());m.appendChild(C),m.appendChild(b),h.appendChild(m)}catch{}return h}};const Wg=hf(zH);var GH=sr,$H=Kc,WH=bB.indexOf,qH=j5,qg=$H([].indexOf),ey=!!qg&&1/qg([1],1,-0)<0,XH=ey||!qH("indexOf");GH({target:"Array",proto:!0,forced:XH},{indexOf:function(A){var t=arguments.length>1?arguments[1]:void 0;return ey?qg(this,A,t)||0:WH(this,A,t)}});var YH=sr,JH=nt,ZH=Fg,A_=on,ty=En,e_=Qg,t_=JH("".indexOf);YH({target:"String",proto:!0,forced:!e_("includes")},{includes:function(A){return!!~t_(ty(A_(this)),ty(ZH(A)),arguments.length>1?arguments[1]:void 0)}});var r_=Ji,n_=Array.isArray||function(A){return r_(A)==="Array"},i_=sr,a_=nt,s_=n_,o_=a_([].reverse),ry=[1,2];i_({target:"Array",proto:!0,forced:String(ry)===String(ry.reverse())},{reverse:function(){return s_(this)&&(this.length=this.length),o_(this)}});/*! *****************************************************************************
|
|
495
|
+
Copyright (c) Microsoft Corporation.
|
|
496
|
+
|
|
497
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
498
|
+
purpose with or without fee is hereby granted.
|
|
499
|
+
|
|
500
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
501
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
502
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
503
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
504
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
505
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
506
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
507
|
+
***************************************************************************** */var ny=function(e,A){return(ny=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])})(e,A)};function iy(e,A){if(typeof A!="function"&&A!==null)throw new TypeError("Class extends value "+String(A)+" is not a constructor or null");function t(){this.constructor=e}ny(e,A),e.prototype=A===null?Object.create(A):(t.prototype=A.prototype,new t)}function l_(e){var A="";Array.isArray(e)||(e=[e]);for(var t=0;t<e.length;t++){var r=e[t];if(r.type===EA.CLOSE_PATH)A+="z";else if(r.type===EA.HORIZ_LINE_TO)A+=(r.relative?"h":"H")+r.x;else if(r.type===EA.VERT_LINE_TO)A+=(r.relative?"v":"V")+r.y;else if(r.type===EA.MOVE_TO)A+=(r.relative?"m":"M")+r.x+" "+r.y;else if(r.type===EA.LINE_TO)A+=(r.relative?"l":"L")+r.x+" "+r.y;else if(r.type===EA.CURVE_TO)A+=(r.relative?"c":"C")+r.x1+" "+r.y1+" "+r.x2+" "+r.y2+" "+r.x+" "+r.y;else if(r.type===EA.SMOOTH_CURVE_TO)A+=(r.relative?"s":"S")+r.x2+" "+r.y2+" "+r.x+" "+r.y;else if(r.type===EA.QUAD_TO)A+=(r.relative?"q":"Q")+r.x1+" "+r.y1+" "+r.x+" "+r.y;else if(r.type===EA.SMOOTH_QUAD_TO)A+=(r.relative?"t":"T")+r.x+" "+r.y;else{if(r.type!==EA.ARC)throw new Error('Unexpected command type "'+r.type+'" at index '+t+".");A+=(r.relative?"a":"A")+r.rX+" "+r.rY+" "+r.xRot+" "+ +r.lArcFlag+" "+ +r.sweepFlag+" "+r.x+" "+r.y}}return A}function Xg(e,A){var t=e[0],r=e[1];return[t*Math.cos(A)-r*Math.sin(A),t*Math.sin(A)+r*Math.cos(A)]}function un(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];for(var t=0;t<e.length;t++)if(typeof e[t]!="number")throw new Error("assertNumbers arguments["+t+"] is not a number. "+typeof e[t]+" == typeof "+e[t]);return!0}var wi=Math.PI;function Yg(e,A,t){e.lArcFlag=e.lArcFlag===0?0:1,e.sweepFlag=e.sweepFlag===0?0:1;var r=e.rX,n=e.rY,i=e.x,a=e.y;r=Math.abs(e.rX),n=Math.abs(e.rY);var s=Xg([(A-i)/2,(t-a)/2],-e.xRot/180*wi),o=s[0],c=s[1],u=Math.pow(o,2)/Math.pow(r,2)+Math.pow(c,2)/Math.pow(n,2);1<u&&(r*=Math.sqrt(u),n*=Math.sqrt(u)),e.rX=r,e.rY=n;var d=Math.pow(r,2)*Math.pow(c,2)+Math.pow(n,2)*Math.pow(o,2),p=(e.lArcFlag!==e.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(r,2)*Math.pow(n,2)-d)/d)),h=r*c/n*p,m=-n*o/r*p,B=Xg([h,m],e.xRot/180*wi);e.cX=B[0]+(A+i)/2,e.cY=B[1]+(t+a)/2,e.phi1=Math.atan2((c-m)/n,(o-h)/r),e.phi2=Math.atan2((-c-m)/n,(-o-h)/r),e.sweepFlag===0&&e.phi2>e.phi1&&(e.phi2-=2*wi),e.sweepFlag===1&&e.phi2<e.phi1&&(e.phi2+=2*wi),e.phi1*=180/wi,e.phi2*=180/wi}function ay(e,A,t){un(e,A,t);var r=e*e+A*A-t*t;if(0>r)return[];if(r===0)return[[e*t/(e*e+A*A),A*t/(e*e+A*A)]];var n=Math.sqrt(r);return[[(e*t+A*n)/(e*e+A*A),(A*t-e*n)/(e*e+A*A)],[(e*t-A*n)/(e*e+A*A),(A*t+e*n)/(e*e+A*A)]]}var xt,jn=Math.PI/180;function sy(e,A,t){return(1-t)*e+t*A}function oy(e,A,t,r){return e+Math.cos(r/180*wi)*A+Math.sin(r/180*wi)*t}function ly(e,A,t,r){var n=1e-6,i=A-e,a=t-A,s=3*i+3*(r-t)-6*a,o=6*(a-i),c=3*i;return Math.abs(s)<n?[-c/o]:function(u,d,p){var h=u*u/4-d;if(h<-p)return[];if(h<=p)return[-u/2];var m=Math.sqrt(h);return[-u/2-m,-u/2+m]}(o/s,c/s,n)}function cy(e,A,t,r,n){var i=1-n;return e*(i*i*i)+A*(3*i*i*n)+t*(3*i*n*n)+r*(n*n*n)}(function(e){function A(){return n(function(s,o,c){return s.relative&&(s.x1!==void 0&&(s.x1+=o),s.y1!==void 0&&(s.y1+=c),s.x2!==void 0&&(s.x2+=o),s.y2!==void 0&&(s.y2+=c),s.x!==void 0&&(s.x+=o),s.y!==void 0&&(s.y+=c),s.relative=!1),s})}function t(){var s=NaN,o=NaN,c=NaN,u=NaN;return n(function(d,p,h){return d.type&EA.SMOOTH_CURVE_TO&&(d.type=EA.CURVE_TO,s=isNaN(s)?p:s,o=isNaN(o)?h:o,d.x1=d.relative?p-s:2*p-s,d.y1=d.relative?h-o:2*h-o),d.type&EA.CURVE_TO?(s=d.relative?p+d.x2:d.x2,o=d.relative?h+d.y2:d.y2):(s=NaN,o=NaN),d.type&EA.SMOOTH_QUAD_TO&&(d.type=EA.QUAD_TO,c=isNaN(c)?p:c,u=isNaN(u)?h:u,d.x1=d.relative?p-c:2*p-c,d.y1=d.relative?h-u:2*h-u),d.type&EA.QUAD_TO?(c=d.relative?p+d.x1:d.x1,u=d.relative?h+d.y1:d.y1):(c=NaN,u=NaN),d})}function r(){var s=NaN,o=NaN;return n(function(c,u,d){if(c.type&EA.SMOOTH_QUAD_TO&&(c.type=EA.QUAD_TO,s=isNaN(s)?u:s,o=isNaN(o)?d:o,c.x1=c.relative?u-s:2*u-s,c.y1=c.relative?d-o:2*d-o),c.type&EA.QUAD_TO){s=c.relative?u+c.x1:c.x1,o=c.relative?d+c.y1:c.y1;var p=c.x1,h=c.y1;c.type=EA.CURVE_TO,c.x1=((c.relative?0:u)+2*p)/3,c.y1=((c.relative?0:d)+2*h)/3,c.x2=(c.x+2*p)/3,c.y2=(c.y+2*h)/3}else s=NaN,o=NaN;return c})}function n(s){var o=0,c=0,u=NaN,d=NaN;return function(p){if(isNaN(u)&&!(p.type&EA.MOVE_TO))throw new Error("path must start with moveto");var h=s(p,o,c,u,d);return p.type&EA.CLOSE_PATH&&(o=u,c=d),p.x!==void 0&&(o=p.relative?o+p.x:p.x),p.y!==void 0&&(c=p.relative?c+p.y:p.y),p.type&EA.MOVE_TO&&(u=o,d=c),h}}function i(s,o,c,u,d,p){return un(s,o,c,u,d,p),n(function(h,m,B,C){var b=h.x1,Q=h.x2,L=h.relative&&!isNaN(C),D=h.x!==void 0?h.x:L?0:m,O=h.y!==void 0?h.y:L?0:B;function z(U){return U*U}h.type&EA.HORIZ_LINE_TO&&o!==0&&(h.type=EA.LINE_TO,h.y=h.relative?0:B),h.type&EA.VERT_LINE_TO&&c!==0&&(h.type=EA.LINE_TO,h.x=h.relative?0:m),h.x!==void 0&&(h.x=h.x*s+O*c+(L?0:d)),h.y!==void 0&&(h.y=D*o+h.y*u+(L?0:p)),h.x1!==void 0&&(h.x1=h.x1*s+h.y1*c+(L?0:d)),h.y1!==void 0&&(h.y1=b*o+h.y1*u+(L?0:p)),h.x2!==void 0&&(h.x2=h.x2*s+h.y2*c+(L?0:d)),h.y2!==void 0&&(h.y2=Q*o+h.y2*u+(L?0:p));var R=s*u-o*c;if(h.xRot!==void 0&&(s!==1||o!==0||c!==0||u!==1))if(R===0)delete h.rX,delete h.rY,delete h.xRot,delete h.lArcFlag,delete h.sweepFlag,h.type=EA.LINE_TO;else{var _=h.xRot*Math.PI/180,X=Math.sin(_),nA=Math.cos(_),N=1/z(h.rX),T=1/z(h.rY),M=z(nA)*N+z(X)*T,V=2*X*nA*(N-T),sA=z(X)*N+z(nA)*T,iA=M*u*u-V*o*u+sA*o*o,lA=V*(s*u+o*c)-2*(M*c*u+sA*s*o),eA=M*c*c-V*s*c+sA*s*s,cA=(Math.atan2(lA,iA-eA)+Math.PI)%Math.PI/2,fA=Math.sin(cA),BA=Math.cos(cA);h.rX=Math.abs(R)/Math.sqrt(iA*z(BA)+lA*fA*BA+eA*z(fA)),h.rY=Math.abs(R)/Math.sqrt(iA*z(fA)-lA*fA*BA+eA*z(BA)),h.xRot=180*cA/Math.PI}return h.sweepFlag!==void 0&&0>R&&(h.sweepFlag=+!h.sweepFlag),h})}function a(){return function(s){var o={};for(var c in s)o[c]=s[c];return o}}e.ROUND=function(s){function o(c){return Math.round(c*s)/s}return s===void 0&&(s=1e13),un(s),function(c){return c.x1!==void 0&&(c.x1=o(c.x1)),c.y1!==void 0&&(c.y1=o(c.y1)),c.x2!==void 0&&(c.x2=o(c.x2)),c.y2!==void 0&&(c.y2=o(c.y2)),c.x!==void 0&&(c.x=o(c.x)),c.y!==void 0&&(c.y=o(c.y)),c.rX!==void 0&&(c.rX=o(c.rX)),c.rY!==void 0&&(c.rY=o(c.rY)),c}},e.TO_ABS=A,e.TO_REL=function(){return n(function(s,o,c){return s.relative||(s.x1!==void 0&&(s.x1-=o),s.y1!==void 0&&(s.y1-=c),s.x2!==void 0&&(s.x2-=o),s.y2!==void 0&&(s.y2-=c),s.x!==void 0&&(s.x-=o),s.y!==void 0&&(s.y-=c),s.relative=!0),s})},e.NORMALIZE_HVZ=function(s,o,c){return s===void 0&&(s=!0),o===void 0&&(o=!0),c===void 0&&(c=!0),n(function(u,d,p,h,m){if(isNaN(h)&&!(u.type&EA.MOVE_TO))throw new Error("path must start with moveto");return o&&u.type&EA.HORIZ_LINE_TO&&(u.type=EA.LINE_TO,u.y=u.relative?0:p),c&&u.type&EA.VERT_LINE_TO&&(u.type=EA.LINE_TO,u.x=u.relative?0:d),s&&u.type&EA.CLOSE_PATH&&(u.type=EA.LINE_TO,u.x=u.relative?h-d:h,u.y=u.relative?m-p:m),u.type&EA.ARC&&(u.rX===0||u.rY===0)&&(u.type=EA.LINE_TO,delete u.rX,delete u.rY,delete u.xRot,delete u.lArcFlag,delete u.sweepFlag),u})},e.NORMALIZE_ST=t,e.QT_TO_C=r,e.INFO=n,e.SANITIZE=function(s){s===void 0&&(s=0),un(s);var o=NaN,c=NaN,u=NaN,d=NaN;return n(function(p,h,m,B,C){var b=Math.abs,Q=!1,L=0,D=0;if(p.type&EA.SMOOTH_CURVE_TO&&(L=isNaN(o)?0:h-o,D=isNaN(c)?0:m-c),p.type&(EA.CURVE_TO|EA.SMOOTH_CURVE_TO)?(o=p.relative?h+p.x2:p.x2,c=p.relative?m+p.y2:p.y2):(o=NaN,c=NaN),p.type&EA.SMOOTH_QUAD_TO?(u=isNaN(u)?h:2*h-u,d=isNaN(d)?m:2*m-d):p.type&EA.QUAD_TO?(u=p.relative?h+p.x1:p.x1,d=p.relative?m+p.y1:p.y2):(u=NaN,d=NaN),p.type&EA.LINE_COMMANDS||p.type&EA.ARC&&(p.rX===0||p.rY===0||!p.lArcFlag)||p.type&EA.CURVE_TO||p.type&EA.SMOOTH_CURVE_TO||p.type&EA.QUAD_TO||p.type&EA.SMOOTH_QUAD_TO){var O=p.x===void 0?0:p.relative?p.x:p.x-h,z=p.y===void 0?0:p.relative?p.y:p.y-m;L=isNaN(u)?p.x1===void 0?L:p.relative?p.x:p.x1-h:u-h,D=isNaN(d)?p.y1===void 0?D:p.relative?p.y:p.y1-m:d-m;var R=p.x2===void 0?0:p.relative?p.x:p.x2-h,_=p.y2===void 0?0:p.relative?p.y:p.y2-m;b(O)<=s&&b(z)<=s&&b(L)<=s&&b(D)<=s&&b(R)<=s&&b(_)<=s&&(Q=!0)}return p.type&EA.CLOSE_PATH&&b(h-B)<=s&&b(m-C)<=s&&(Q=!0),Q?[]:p})},e.MATRIX=i,e.ROTATE=function(s,o,c){o===void 0&&(o=0),c===void 0&&(c=0),un(s,o,c);var u=Math.sin(s),d=Math.cos(s);return i(d,u,-u,d,o-o*d+c*u,c-o*u-c*d)},e.TRANSLATE=function(s,o){return o===void 0&&(o=0),un(s,o),i(1,0,0,1,s,o)},e.SCALE=function(s,o){return o===void 0&&(o=s),un(s,o),i(s,0,0,o,0,0)},e.SKEW_X=function(s){return un(s),i(1,0,Math.atan(s),1,0,0)},e.SKEW_Y=function(s){return un(s),i(1,Math.atan(s),0,1,0,0)},e.X_AXIS_SYMMETRY=function(s){return s===void 0&&(s=0),un(s),i(-1,0,0,1,s,0)},e.Y_AXIS_SYMMETRY=function(s){return s===void 0&&(s=0),un(s),i(1,0,0,-1,0,s)},e.A_TO_C=function(){return n(function(s,o,c){return EA.ARC===s.type?function(u,d,p){var h,m,B,C;u.cX||Yg(u,d,p);for(var b=Math.min(u.phi1,u.phi2),Q=Math.max(u.phi1,u.phi2)-b,L=Math.ceil(Q/90),D=new Array(L),O=d,z=p,R=0;R<L;R++){var _=sy(u.phi1,u.phi2,R/L),X=sy(u.phi1,u.phi2,(R+1)/L),nA=X-_,N=4/3*Math.tan(nA*jn/4),T=[Math.cos(_*jn)-N*Math.sin(_*jn),Math.sin(_*jn)+N*Math.cos(_*jn)],M=T[0],V=T[1],sA=[Math.cos(X*jn),Math.sin(X*jn)],iA=sA[0],lA=sA[1],eA=[iA+N*Math.sin(X*jn),lA-N*Math.cos(X*jn)],cA=eA[0],fA=eA[1];D[R]={relative:u.relative,type:EA.CURVE_TO};var BA=function(U,P){var K=Xg([U*u.rX,P*u.rY],u.xRot),$=K[0],j=K[1];return[u.cX+$,u.cY+j]};h=BA(M,V),D[R].x1=h[0],D[R].y1=h[1],m=BA(cA,fA),D[R].x2=m[0],D[R].y2=m[1],B=BA(iA,lA),D[R].x=B[0],D[R].y=B[1],u.relative&&(D[R].x1-=O,D[R].y1-=z,D[R].x2-=O,D[R].y2-=z,D[R].x-=O,D[R].y-=z),O=(C=[D[R].x,D[R].y])[0],z=C[1]}return D}(s,s.relative?0:o,s.relative?0:c):s})},e.ANNOTATE_ARCS=function(){return n(function(s,o,c){return s.relative&&(o=0,c=0),EA.ARC===s.type&&Yg(s,o,c),s})},e.CLONE=a,e.CALCULATE_BOUNDS=function(){var s=function(p){var h={};for(var m in p)h[m]=p[m];return h},o=A(),c=r(),u=t(),d=n(function(p,h,m){var B=u(c(o(s(p))));function C(fA){fA>d.maxX&&(d.maxX=fA),fA<d.minX&&(d.minX=fA)}function b(fA){fA>d.maxY&&(d.maxY=fA),fA<d.minY&&(d.minY=fA)}if(B.type&EA.DRAWING_COMMANDS&&(C(h),b(m)),B.type&EA.HORIZ_LINE_TO&&C(B.x),B.type&EA.VERT_LINE_TO&&b(B.y),B.type&EA.LINE_TO&&(C(B.x),b(B.y)),B.type&EA.CURVE_TO){C(B.x),b(B.y);for(var Q=0,L=ly(h,B.x1,B.x2,B.x);Q<L.length;Q++)0<(cA=L[Q])&&1>cA&&C(cy(h,B.x1,B.x2,B.x,cA));for(var D=0,O=ly(m,B.y1,B.y2,B.y);D<O.length;D++)0<(cA=O[D])&&1>cA&&b(cy(m,B.y1,B.y2,B.y,cA))}if(B.type&EA.ARC){C(B.x),b(B.y),Yg(B,h,m);for(var z=B.xRot/180*Math.PI,R=Math.cos(z)*B.rX,_=Math.sin(z)*B.rX,X=-Math.sin(z)*B.rY,nA=Math.cos(z)*B.rY,N=B.phi1<B.phi2?[B.phi1,B.phi2]:-180>B.phi2?[B.phi2+360,B.phi1+360]:[B.phi2,B.phi1],T=N[0],M=N[1],V=function(fA){var BA=fA[0],U=fA[1],P=180*Math.atan2(U,BA)/Math.PI;return P<T?P+360:P},sA=0,iA=ay(X,-R,0).map(V);sA<iA.length;sA++)(cA=iA[sA])>T&&cA<M&&C(oy(B.cX,R,X,cA));for(var lA=0,eA=ay(nA,-_,0).map(V);lA<eA.length;lA++){var cA;(cA=eA[lA])>T&&cA<M&&b(oy(B.cY,_,nA,cA))}}return p});return d.minX=1/0,d.maxX=-1/0,d.minY=1/0,d.maxY=-1/0,d}})(xt||(xt={}));var fn,uy=function(){function e(){}return e.prototype.round=function(A){return this.transform(xt.ROUND(A))},e.prototype.toAbs=function(){return this.transform(xt.TO_ABS())},e.prototype.toRel=function(){return this.transform(xt.TO_REL())},e.prototype.normalizeHVZ=function(A,t,r){return this.transform(xt.NORMALIZE_HVZ(A,t,r))},e.prototype.normalizeST=function(){return this.transform(xt.NORMALIZE_ST())},e.prototype.qtToC=function(){return this.transform(xt.QT_TO_C())},e.prototype.aToC=function(){return this.transform(xt.A_TO_C())},e.prototype.sanitize=function(A){return this.transform(xt.SANITIZE(A))},e.prototype.translate=function(A,t){return this.transform(xt.TRANSLATE(A,t))},e.prototype.scale=function(A,t){return this.transform(xt.SCALE(A,t))},e.prototype.rotate=function(A,t,r){return this.transform(xt.ROTATE(A,t,r))},e.prototype.matrix=function(A,t,r,n,i,a){return this.transform(xt.MATRIX(A,t,r,n,i,a))},e.prototype.skewX=function(A){return this.transform(xt.SKEW_X(A))},e.prototype.skewY=function(A){return this.transform(xt.SKEW_Y(A))},e.prototype.xSymmetry=function(A){return this.transform(xt.X_AXIS_SYMMETRY(A))},e.prototype.ySymmetry=function(A){return this.transform(xt.Y_AXIS_SYMMETRY(A))},e.prototype.annotateArcs=function(){return this.transform(xt.ANNOTATE_ARCS())},e}(),c_=function(e){return e===" "||e===" "||e==="\r"||e===`
|
|
508
|
+
`},fy=function(e){return 48<=e.charCodeAt(0)&&e.charCodeAt(0)<=57},u_=function(e){function A(){var t=e.call(this)||this;return t.curNumber="",t.curCommandType=-1,t.curCommandRelative=!1,t.canParseCommandOrComma=!0,t.curNumberHasExp=!1,t.curNumberHasExpDigits=!1,t.curNumberHasDecimal=!1,t.curArgs=[],t}return iy(A,e),A.prototype.finish=function(t){if(t===void 0&&(t=[]),this.parse(" ",t),this.curArgs.length!==0||!this.canParseCommandOrComma)throw new SyntaxError("Unterminated command at the path end.");return t},A.prototype.parse=function(t,r){var n=this;r===void 0&&(r=[]);for(var i=function(d){r.push(d),n.curArgs.length=0,n.canParseCommandOrComma=!0},a=0;a<t.length;a++){var s=t[a],o=!(this.curCommandType!==EA.ARC||this.curArgs.length!==3&&this.curArgs.length!==4||this.curNumber.length!==1||this.curNumber!=="0"&&this.curNumber!=="1"),c=fy(s)&&(this.curNumber==="0"&&s==="0"||o);if(!fy(s)||c)if(s!=="e"&&s!=="E")if(s!=="-"&&s!=="+"||!this.curNumberHasExp||this.curNumberHasExpDigits)if(s!=="."||this.curNumberHasExp||this.curNumberHasDecimal||o){if(this.curNumber&&this.curCommandType!==-1){var u=Number(this.curNumber);if(isNaN(u))throw new SyntaxError("Invalid number ending at "+a);if(this.curCommandType===EA.ARC){if(this.curArgs.length===0||this.curArgs.length===1){if(0>u)throw new SyntaxError('Expected positive number, got "'+u+'" at index "'+a+'"')}else if((this.curArgs.length===3||this.curArgs.length===4)&&this.curNumber!=="0"&&this.curNumber!=="1")throw new SyntaxError('Expected a flag, got "'+this.curNumber+'" at index "'+a+'"')}this.curArgs.push(u),this.curArgs.length===f_[this.curCommandType]&&(EA.HORIZ_LINE_TO===this.curCommandType?i({type:EA.HORIZ_LINE_TO,relative:this.curCommandRelative,x:u}):EA.VERT_LINE_TO===this.curCommandType?i({type:EA.VERT_LINE_TO,relative:this.curCommandRelative,y:u}):this.curCommandType===EA.MOVE_TO||this.curCommandType===EA.LINE_TO||this.curCommandType===EA.SMOOTH_QUAD_TO?(i({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),EA.MOVE_TO===this.curCommandType&&(this.curCommandType=EA.LINE_TO)):this.curCommandType===EA.CURVE_TO?i({type:EA.CURVE_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x2:this.curArgs[2],y2:this.curArgs[3],x:this.curArgs[4],y:this.curArgs[5]}):this.curCommandType===EA.SMOOTH_CURVE_TO?i({type:EA.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===EA.QUAD_TO?i({type:EA.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===EA.ARC&&i({type:EA.ARC,relative:this.curCommandRelative,rX:this.curArgs[0],rY:this.curArgs[1],xRot:this.curArgs[2],lArcFlag:this.curArgs[3],sweepFlag:this.curArgs[4],x:this.curArgs[5],y:this.curArgs[6]})),this.curNumber="",this.curNumberHasExpDigits=!1,this.curNumberHasExp=!1,this.curNumberHasDecimal=!1,this.canParseCommandOrComma=!0}if(!c_(s))if(s===","&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if(s!=="+"&&s!=="-"&&s!==".")if(c)this.curNumber=s,this.curNumberHasDecimal=!1;else{if(this.curArgs.length!==0)throw new SyntaxError("Unterminated command at index "+a+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+s+'" at index '+a+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,s!=="z"&&s!=="Z")if(s==="h"||s==="H")this.curCommandType=EA.HORIZ_LINE_TO,this.curCommandRelative=s==="h";else if(s==="v"||s==="V")this.curCommandType=EA.VERT_LINE_TO,this.curCommandRelative=s==="v";else if(s==="m"||s==="M")this.curCommandType=EA.MOVE_TO,this.curCommandRelative=s==="m";else if(s==="l"||s==="L")this.curCommandType=EA.LINE_TO,this.curCommandRelative=s==="l";else if(s==="c"||s==="C")this.curCommandType=EA.CURVE_TO,this.curCommandRelative=s==="c";else if(s==="s"||s==="S")this.curCommandType=EA.SMOOTH_CURVE_TO,this.curCommandRelative=s==="s";else if(s==="q"||s==="Q")this.curCommandType=EA.QUAD_TO,this.curCommandRelative=s==="q";else if(s==="t"||s==="T")this.curCommandType=EA.SMOOTH_QUAD_TO,this.curCommandRelative=s==="t";else{if(s!=="a"&&s!=="A")throw new SyntaxError('Unexpected character "'+s+'" at index '+a+".");this.curCommandType=EA.ARC,this.curCommandRelative=s==="a"}else r.push({type:EA.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=s,this.curNumberHasDecimal=s==="."}else this.curNumber+=s,this.curNumberHasDecimal=!0;else this.curNumber+=s;else this.curNumber+=s,this.curNumberHasExp=!0;else this.curNumber+=s,this.curNumberHasExpDigits=this.curNumberHasExp}return r},A.prototype.transform=function(t){return Object.create(this,{parse:{value:function(r,n){n===void 0&&(n=[]);for(var i=0,a=Object.getPrototypeOf(this).parse.call(this,r);i<a.length;i++){var s=a[i],o=t(s);Array.isArray(o)?n.push.apply(n,o):n.push(o)}return n}}})},A}(uy),EA=function(e){function A(t){var r=e.call(this)||this;return r.commands=typeof t=="string"?A.parse(t):t,r}return iy(A,e),A.prototype.encode=function(){return A.encode(this.commands)},A.prototype.getBounds=function(){var t=xt.CALCULATE_BOUNDS();return this.transform(t),t},A.prototype.transform=function(t){for(var r=[],n=0,i=this.commands;n<i.length;n++){var a=t(i[n]);Array.isArray(a)?r.push.apply(r,a):r.push(a)}return this.commands=r,this},A.encode=function(t){return l_(t)},A.parse=function(t){var r=new u_,n=[];return r.parse(t,n),r.finish(n),n},A.CLOSE_PATH=1,A.MOVE_TO=2,A.HORIZ_LINE_TO=4,A.VERT_LINE_TO=8,A.LINE_TO=16,A.CURVE_TO=32,A.SMOOTH_CURVE_TO=64,A.QUAD_TO=128,A.SMOOTH_QUAD_TO=256,A.ARC=512,A.LINE_COMMANDS=A.LINE_TO|A.HORIZ_LINE_TO|A.VERT_LINE_TO,A.DRAWING_COMMANDS=A.HORIZ_LINE_TO|A.VERT_LINE_TO|A.LINE_TO|A.CURVE_TO|A.SMOOTH_CURVE_TO|A.QUAD_TO|A.SMOOTH_QUAD_TO|A.ARC,A}(uy),f_=((fn={})[EA.MOVE_TO]=2,fn[EA.LINE_TO]=2,fn[EA.HORIZ_LINE_TO]=1,fn[EA.VERT_LINE_TO]=1,fn[EA.CLOSE_PATH]=0,fn[EA.QUAD_TO]=4,fn[EA.SMOOTH_QUAD_TO]=2,fn[EA.CURVE_TO]=6,fn[EA.SMOOTH_CURVE_TO]=4,fn[EA.ARC]=7,fn),h_=Ic.PROPER,d_=Aa,g_=ar,hy=En,p_=rt,v_=iu,Jg="toString",dy=RegExp.prototype,gy=dy[Jg],B_=p_(function(){return gy.call({source:"a",flags:"b"})!=="/a/b"}),m_=h_&&gy.name!==Jg;(B_||m_)&&d_(dy,Jg,function(){var A=g_(this),t=hy(A.source),r=hy(v_(A));return"/"+t+"/"+r},{unsafe:!0});function hu(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?hu=function(A){return typeof A}:hu=function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},hu(e)}function y_(e,A){if(!(e instanceof A))throw new TypeError("Cannot call a class as a function")}var w_=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],b_=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function C_(e,A,t,r,n){if(typeof e=="string"&&(e=document.getElementById(e)),!e||hu(e)!=="object"||!("getContext"in e))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var i=e.getContext("2d");try{return i.getImageData(A,t,r,n)}catch(a){throw new Error("unable to access image data: "+a)}}function x_(e,A,t,r,n,i){if(!(isNaN(i)||i<1)){i|=0;var a=C_(e,A,t,r,n);a=F_(a,A,t,r,n,i),e.getContext("2d").putImageData(a,A,t)}}function F_(e,A,t,r,n,i){for(var a=e.data,s=2*i+1,o=r-1,c=n-1,u=i+1,d=u*(u+1)/2,p=new py,h=p,m,B=1;B<s;B++)h=h.next=new py,B===u&&(m=h);h.next=p;for(var C=null,b=null,Q=0,L=0,D=w_[i],O=b_[i],z=0;z<n;z++){h=p;for(var R=a[L],_=a[L+1],X=a[L+2],nA=a[L+3],N=0;N<u;N++)h.r=R,h.g=_,h.b=X,h.a=nA,h=h.next;for(var T=0,M=0,V=0,sA=0,iA=u*R,lA=u*_,eA=u*X,cA=u*nA,fA=d*R,BA=d*_,U=d*X,P=d*nA,K=1;K<u;K++){var $=L+((o<K?o:K)<<2),j=a[$],q=a[$+1],rA=a[$+2],oA=a[$+3],wA=u-K;fA+=(h.r=j)*wA,BA+=(h.g=q)*wA,U+=(h.b=rA)*wA,P+=(h.a=oA)*wA,T+=j,M+=q,V+=rA,sA+=oA,h=h.next}C=p,b=m;for(var FA=0;FA<r;FA++){var UA=P*D>>>O;if(a[L+3]=UA,UA!==0){var LA=255/UA;a[L]=(fA*D>>>O)*LA,a[L+1]=(BA*D>>>O)*LA,a[L+2]=(U*D>>>O)*LA}else a[L]=a[L+1]=a[L+2]=0;fA-=iA,BA-=lA,U-=eA,P-=cA,iA-=C.r,lA-=C.g,eA-=C.b,cA-=C.a;var MA=FA+i+1;MA=Q+(MA<o?MA:o)<<2,T+=C.r=a[MA],M+=C.g=a[MA+1],V+=C.b=a[MA+2],sA+=C.a=a[MA+3],fA+=T,BA+=M,U+=V,P+=sA,C=C.next;var gA=b,W=gA.r,ZA=gA.g,RA=gA.b,xA=gA.a;iA+=W,lA+=ZA,eA+=RA,cA+=xA,T-=W,M-=ZA,V-=RA,sA-=xA,b=b.next,L+=4}Q+=r}for(var NA=0;NA<r;NA++){L=NA<<2;var OA=a[L],TA=a[L+1],zA=a[L+2],WA=a[L+3],ee=u*OA,ie=u*TA,oe=u*zA,pe=u*WA,XA=d*OA,se=d*TA,HA=d*zA,Me=d*WA;h=p;for(var me=0;me<u;me++)h.r=OA,h.g=TA,h.b=zA,h.a=WA,h=h.next;for(var at=r,be=0,ye=0,Ze=0,mA=0,xe=1;xe<=i;xe++){L=at+NA<<2;var le=u-xe;XA+=(h.r=OA=a[L])*le,se+=(h.g=TA=a[L+1])*le,HA+=(h.b=zA=a[L+2])*le,Me+=(h.a=WA=a[L+3])*le,mA+=OA,be+=TA,ye+=zA,Ze+=WA,h=h.next,xe<c&&(at+=r)}L=NA,C=p,b=m;for(var _e=0;_e<n;_e++){var He=L<<2;a[He+3]=WA=Me*D>>>O,WA>0?(WA=255/WA,a[He]=(XA*D>>>O)*WA,a[He+1]=(se*D>>>O)*WA,a[He+2]=(HA*D>>>O)*WA):a[He]=a[He+1]=a[He+2]=0,XA-=ee,se-=ie,HA-=oe,Me-=pe,ee-=C.r,ie-=C.g,oe-=C.b,pe-=C.a,He=NA+((He=_e+u)<c?He:c)*r<<2,XA+=mA+=C.r=a[He],se+=be+=C.g=a[He+1],HA+=ye+=C.b=a[He+2],Me+=Ze+=C.a=a[He+3],C=C.next,ee+=OA=b.r,ie+=TA=b.g,oe+=zA=b.b,pe+=WA=b.a,mA-=OA,be-=TA,ye-=zA,Ze-=WA,b=b.next,L+=r}}return e}var py=function e(){y_(this,e),this.r=0,this.g=0,this.b=0,this.a=0,this.next=null};function Q_(){var{DOMParser:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},A={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:e,createCanvas(t,r){return new OffscreenCanvas(t,r)},createImage(t){return Kn(function*(){var r=yield fetch(t),n=yield r.blob(),i=yield createImageBitmap(n);return i})()}};return(typeof DOMParser<"u"||typeof e>"u")&&Reflect.deleteProperty(A,"DOMParser"),A}function U_(e){var{DOMParser:A,canvas:t,fetch:r}=e;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:A,fetch:r,createCanvas:t.createCanvas,createImage:t.loadImage}}var E_=Object.freeze({__proto__:null,offscreen:Q_,node:U_});function aa(e){return e.replace(/(?!\u3000)\s+/gm," ")}function vy(e){return e.replace(/^[\n \t]+/,"")}function By(e){return e.replace(/[\n \t]+$/,"")}function vr(e){var A=(e||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[];return A.map(parseFloat)}var S_=/^[A-Z-]+$/;function my(e){return S_.test(e)?e.toLowerCase():e}function Zg(e){var A=/url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(e)||[];return A[2]||A[3]||A[4]}function yy(e){if(!e.startsWith("rgb"))return e;var A=3,t=e.replace(/\d+(\.\d+)?/g,(r,n)=>A--&&n?String(Math.round(parseFloat(r))):r);return t}var I_=/(\[[^\]]+\])/g,L_=/(#[^\s+>~.[:]+)/g,N_=/(\.[^\s+>~.[:]+)/g,T_=/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi,O_=/(:[\w-]+\([^)]*\))/gi,H_=/(:[^\s+>~.[:]+)/g,__=/([^\s+>~.[:]+)/g;function sa(e,A){var t=A.exec(e);return t?[e.replace(A," "),t.length]:[e,0]}function wy(e){var A=[0,0,0],t=e.replace(/:not\(([^)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),r=0;return[t,r]=sa(t,I_),A[1]+=r,[t,r]=sa(t,L_),A[0]+=r,[t,r]=sa(t,N_),A[1]+=r,[t,r]=sa(t,T_),A[2]+=r,[t,r]=sa(t,O_),A[1]+=r,[t,r]=sa(t,H_),A[1]+=r,t=t.replace(/[*\s+>~]/g," ").replace(/[#.]/g," "),[t,r]=sa(t,__),A[2]+=r,A.join("")}var oa=1e-8;function Ap(e){return Math.sqrt(Math.pow(e[0],2)+Math.pow(e[1],2))}function du(e,A){return(e[0]*A[0]+e[1]*A[1])/(Ap(e)*Ap(A))}function ep(e,A){return(e[0]*A[1]<e[1]*A[0]?-1:1)*Math.acos(du(e,A))}function tp(e){return e*e*e}function rp(e){return 3*e*e*(1-e)}function np(e){return 3*e*(1-e)*(1-e)}function ip(e){return(1-e)*(1-e)*(1-e)}function ap(e){return e*e}function sp(e){return 2*e*(1-e)}function op(e){return(1-e)*(1-e)}class YA{constructor(A,t,r){this.document=A,this.name=t,this.value=r,this.isNormalizedColor=!1}static empty(A){return new YA(A,"EMPTY","")}split(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:" ",{document:t,name:r}=this;return aa(this.getString()).trim().split(A).map(n=>new YA(t,r,n))}hasValue(A){var{value:t}=this;return t!==null&&t!==""&&(A||t!==0)&&typeof t<"u"}isString(A){var{value:t}=this,r=typeof t=="string";return!r||!A?r:A.test(t)}isUrlDefinition(){return this.isString(/^url\(/)}isPixels(){if(!this.hasValue())return!1;var A=this.getString();switch(!0){case A.endsWith("px"):case/^[0-9]+$/.test(A):return!0;default:return!1}}setValue(A){return this.value=A,this}getValue(A){return typeof A>"u"||this.hasValue()?this.value:A}getNumber(A){if(!this.hasValue())return typeof A>"u"?0:parseFloat(A);var{value:t}=this,r=parseFloat(t);return this.isString(/%$/)&&(r/=100),r}getString(A){return typeof A>"u"||this.hasValue()?typeof this.value>"u"?"":String(this.value):String(A)}getColor(A){var t=this.getString(A);return this.isNormalizedColor||(this.isNormalizedColor=!0,t=yy(t),this.value=t),t}getDpi(){return 96}getRem(){return this.document.rootEmSize}getEm(){return this.document.emSize}getUnits(){return this.getString().replace(/[0-9.-]/g,"")}getPixels(A){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!this.hasValue())return 0;var[r,n]=typeof A=="boolean"?[void 0,A]:[A],{viewPort:i}=this.document.screen;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(i.computeSize("x"),i.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(i.computeSize("x"),i.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*i.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*i.computeSize("y");case this.isString(/rem$/):return this.getNumber()*this.getRem();case this.isString(/em$/):return this.getNumber()*this.getEm();case this.isString(/ex$/):return this.getNumber()*this.getEm()/2;case this.isString(/px$/):return this.getNumber();case this.isString(/pt$/):return this.getNumber()*this.getDpi()*(1/72);case this.isString(/pc$/):return this.getNumber()*15;case this.isString(/cm$/):return this.getNumber()*this.getDpi()/2.54;case this.isString(/mm$/):return this.getNumber()*this.getDpi()/25.4;case this.isString(/in$/):return this.getNumber()*this.getDpi();case(this.isString(/%$/)&&n):return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*i.computeSize(r);default:{var a=this.getNumber();return t&&a<1?a*i.computeSize(r):a}}}getMilliseconds(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():this.getNumber()*1e3:0}getRadians(){if(!this.hasValue())return 0;switch(!0){case this.isString(/deg$/):return this.getNumber()*(Math.PI/180);case this.isString(/grad$/):return this.getNumber()*(Math.PI/200);case this.isString(/rad$/):return this.getNumber();default:return this.getNumber()*(Math.PI/180)}}getDefinition(){var A=this.getString(),t=/#([^)'"]+)/.exec(A);return t&&(t=t[1]),t||(t=A),this.document.definitions[t]}getFillStyleDefinition(A,t){var r=this.getDefinition();if(!r)return null;if(typeof r.createGradient=="function")return r.createGradient(this.document.ctx,A,t);if(typeof r.createPattern=="function"){if(r.getHrefAttribute().hasValue()){var n=r.getAttribute("patternTransform");r=r.getHrefAttribute().getDefinition(),n.hasValue()&&r.getAttribute("patternTransform",!0).setValue(n.value)}return r.createPattern(this.document.ctx,A,t)}return null}getTextBaseline(){return this.hasValue()?YA.textBaselineMapping[this.getString()]:null}addOpacity(A){for(var t=this.getColor(),r=t.length,n=0,i=0;i<r&&(t[i]===","&&n++,n!==3);i++);if(A.hasValue()&&this.isString()&&n!==3){var a=new Wg(t);a.ok&&(a.alpha=A.getNumber(),t=a.toRGBA())}return new YA(this.document,this.name,t)}}YA.textBaselineMapping={baseline:"alphabetic","before-edge":"top","text-before-edge":"top",middle:"middle",central:"middle","after-edge":"bottom","text-after-edge":"bottom",ideographic:"ideographic",alphabetic:"alphabetic",hanging:"hanging",mathematical:"alphabetic"};class by{constructor(){this.viewPorts=[]}clear(){this.viewPorts=[]}setCurrent(A,t){this.viewPorts.push({width:A,height:t})}removeCurrent(){this.viewPorts.pop()}getCurrent(){var{viewPorts:A}=this;return A[A.length-1]}get width(){return this.getCurrent().width}get height(){return this.getCurrent().height}computeSize(A){return typeof A=="number"?A:A==="x"?this.width:A==="y"?this.height:Math.sqrt(Math.pow(this.width,2)+Math.pow(this.height,2))/Math.sqrt(2)}}class it{constructor(A,t){this.x=A,this.y=t}static parse(A){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,[r=t,n=t]=vr(A);return new it(r,n)}static parseScale(A){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,[r=t,n=r]=vr(A);return new it(r,n)}static parsePath(A){for(var t=vr(A),r=t.length,n=[],i=0;i<r;i+=2)n.push(new it(t[i],t[i+1]));return n}angleTo(A){return Math.atan2(A.y-this.y,A.x-this.x)}applyTransform(A){var{x:t,y:r}=this,n=t*A[0]+r*A[2]+A[4],i=t*A[1]+r*A[3]+A[5];this.x=n,this.y=i}}class Cy{constructor(A){this.screen=A,this.working=!1,this.events=[],this.eventElements=[],this.onClick=this.onClick.bind(this),this.onMouseMove=this.onMouseMove.bind(this)}isWorking(){return this.working}start(){if(!this.working){var{screen:A,onClick:t,onMouseMove:r}=this,n=A.ctx.canvas;n.onclick=t,n.onmousemove=r,this.working=!0}}stop(){if(this.working){var A=this.screen.ctx.canvas;this.working=!1,A.onclick=null,A.onmousemove=null}}hasEvents(){return this.working&&this.events.length>0}runEvents(){if(this.working){var{screen:A,events:t,eventElements:r}=this,{style:n}=A.ctx.canvas;n&&(n.cursor=""),t.forEach((i,a)=>{for(var{run:s}=i,o=r[a];o;)s(o),o=o.parent}),this.events=[],this.eventElements=[]}}checkPath(A,t){if(!(!this.working||!t)){var{events:r,eventElements:n}=this;r.forEach((i,a)=>{var{x:s,y:o}=i;!n[a]&&t.isPointInPath&&t.isPointInPath(s,o)&&(n[a]=A)})}}checkBoundingBox(A,t){if(!(!this.working||!t)){var{events:r,eventElements:n}=this;r.forEach((i,a)=>{var{x:s,y:o}=i;!n[a]&&t.isPointInBox(s,o)&&(n[a]=A)})}}mapXY(A,t){for(var{window:r,ctx:n}=this.screen,i=new it(A,t),a=n.canvas;a;)i.x-=a.offsetLeft,i.y-=a.offsetTop,a=a.offsetParent;return r.scrollX&&(i.x+=r.scrollX),r.scrollY&&(i.y+=r.scrollY),i}onClick(A){var{x:t,y:r}=this.mapXY(A.clientX,A.clientY);this.events.push({type:"onclick",x:t,y:r,run(n){n.onClick&&n.onClick()}})}onMouseMove(A){var{x:t,y:r}=this.mapXY(A.clientX,A.clientY);this.events.push({type:"onmousemove",x:t,y:r,run(n){n.onMouseMove&&n.onMouseMove()}})}}var xy=typeof window<"u"?window:null,Fy=typeof fetch<"u"?fetch.bind(void 0):null;class Io{constructor(A){var{fetch:t=Fy,window:r=xy}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.ctx=A,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new by,this.mouse=new Cy(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=r,this.fetch=t}wait(A){this.waits.push(A)}ready(){return this.readyPromise?this.readyPromise:Promise.resolve()}isReady(){if(this.isReadyLock)return!0;var A=this.waits.every(t=>t());return A&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=A,A}setDefaults(A){A.strokeStyle="rgba(0,0,0,0)",A.lineCap="butt",A.lineJoin="miter",A.miterLimit=4}setViewBox(A){var{document:t,ctx:r,aspectRatio:n,width:i,desiredWidth:a,height:s,desiredHeight:o,minX:c=0,minY:u=0,refX:d,refY:p,clip:h=!1,clipX:m=0,clipY:B=0}=A,C=aa(n).replace(/^defer\s/,""),[b,Q]=C.split(" "),L=b||"xMidYMid",D=Q||"meet",O=i/a,z=s/o,R=Math.min(O,z),_=Math.max(O,z),X=a,nA=o;D==="meet"&&(X*=R,nA*=R),D==="slice"&&(X*=_,nA*=_);var N=new YA(t,"refX",d),T=new YA(t,"refY",p),M=N.hasValue()&&T.hasValue();if(M&&r.translate(-R*N.getPixels("x"),-R*T.getPixels("y")),h){var V=R*m,sA=R*B;r.beginPath(),r.moveTo(V,sA),r.lineTo(i,sA),r.lineTo(i,s),r.lineTo(V,s),r.closePath(),r.clip()}if(!M){var iA=D==="meet"&&R===z,lA=D==="slice"&&_===z,eA=D==="meet"&&R===O,cA=D==="slice"&&_===O;L.startsWith("xMid")&&(iA||lA)&&r.translate(i/2-X/2,0),L.endsWith("YMid")&&(eA||cA)&&r.translate(0,s/2-nA/2),L.startsWith("xMax")&&(iA||lA)&&r.translate(i-X,0),L.endsWith("YMax")&&(eA||cA)&&r.translate(0,s-nA)}switch(!0){case L==="none":r.scale(O,z);break;case D==="meet":r.scale(R,R);break;case D==="slice":r.scale(_,_);break}r.translate(-c,-u)}start(A){var{enableRedraw:t=!1,ignoreMouse:r=!1,ignoreAnimation:n=!1,ignoreDimensions:i=!1,ignoreClear:a=!1,forceRedraw:s,scaleWidth:o,scaleHeight:c,offsetX:u,offsetY:d}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{FRAMERATE:p,mouse:h}=this,m=1e3/p;if(this.frameDuration=m,this.readyPromise=new Promise(L=>{this.resolveReady=L}),this.isReady()&&this.render(A,i,a,o,c,u,d),!!t){var B=Date.now(),C=B,b=0,Q=()=>{B=Date.now(),b=B-C,b>=m&&(C=B-b%m,this.shouldUpdate(n,s)&&(this.render(A,i,a,o,c,u,d),h.runEvents())),this.intervalId=Gg(Q)};r||h.start(),this.intervalId=Gg(Q)}}stop(){this.intervalId&&(Gg.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}shouldUpdate(A,t){if(!A){var{frameDuration:r}=this,n=this.animations.reduce((i,a)=>a.update(r)||i,!1);if(n)return!0}return!!(typeof t=="function"&&t()||!this.isReadyLock&&this.isReady()||this.mouse.hasEvents())}render(A,t,r,n,i,a,s){var{CLIENT_WIDTH:o,CLIENT_HEIGHT:c,viewPort:u,ctx:d,isFirstRender:p}=this,h=d.canvas;u.clear(),h.width&&h.height?u.setCurrent(h.width,h.height):u.setCurrent(o,c);var m=A.getStyle("width"),B=A.getStyle("height");!t&&(p||typeof n!="number"&&typeof i!="number")&&(m.hasValue()&&(h.width=m.getPixels("x"),h.style&&(h.style.width="".concat(h.width,"px"))),B.hasValue()&&(h.height=B.getPixels("y"),h.style&&(h.style.height="".concat(h.height,"px"))));var C=h.clientWidth||h.width,b=h.clientHeight||h.height;if(t&&m.hasValue()&&B.hasValue()&&(C=m.getPixels("x"),b=B.getPixels("y")),u.setCurrent(C,b),typeof a=="number"&&A.getAttribute("x",!0).setValue(a),typeof s=="number"&&A.getAttribute("y",!0).setValue(s),typeof n=="number"||typeof i=="number"){var Q=vr(A.getAttribute("viewBox").getString()),L=0,D=0;if(typeof n=="number"){var O=A.getStyle("width");O.hasValue()?L=O.getPixels("x")/n:isNaN(Q[2])||(L=Q[2]/n)}if(typeof i=="number"){var z=A.getStyle("height");z.hasValue()?D=z.getPixels("y")/i:isNaN(Q[3])||(D=Q[3]/i)}L||(L=D),D||(D=L),A.getAttribute("width",!0).setValue(n),A.getAttribute("height",!0).setValue(i);var R=A.getStyle("transform",!0,!0);R.setValue("".concat(R.getString()," scale(").concat(1/L,", ").concat(1/D,")"))}r||d.clearRect(0,0,C,b),A.render(d),p&&(this.isFirstRender=!1)}}Io.defaultWindow=xy,Io.defaultFetch=Fy;var{defaultFetch:P_}=Io,k_=typeof DOMParser<"u"?DOMParser:null;class gu{constructor(){var{fetch:A=P_,DOMParser:t=k_}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.fetch=A,this.DOMParser=t}parse(A){var t=this;return Kn(function*(){return A.startsWith("<")?t.parseFromString(A):t.load(A)})()}parseFromString(A){var t=new this.DOMParser;try{return this.checkDocument(t.parseFromString(A,"image/svg+xml"))}catch{return this.checkDocument(t.parseFromString(A,"text/xml"))}}checkDocument(A){var t=A.getElementsByTagName("parsererror")[0];if(t)throw new Error(t.textContent);return A}load(A){var t=this;return Kn(function*(){var r=yield t.fetch(A),n=yield r.text();return t.parseFromString(n)})()}}class Qy{constructor(A,t){this.type="translate",this.point=null,this.point=it.parse(t)}apply(A){var{x:t,y:r}=this.point;A.translate(t||0,r||0)}unapply(A){var{x:t,y:r}=this.point;A.translate(-1*t||0,-1*r||0)}applyToPoint(A){var{x:t,y:r}=this.point;A.applyTransform([1,0,0,1,t||0,r||0])}}class Uy{constructor(A,t,r){this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var n=vr(t);this.angle=new YA(A,"angle",n[0]),this.originX=r[0],this.originY=r[1],this.cx=n[1]||0,this.cy=n[2]||0}apply(A){var{cx:t,cy:r,originX:n,originY:i,angle:a}=this,s=t+n.getPixels("x"),o=r+i.getPixels("y");A.translate(s,o),A.rotate(a.getRadians()),A.translate(-s,-o)}unapply(A){var{cx:t,cy:r,originX:n,originY:i,angle:a}=this,s=t+n.getPixels("x"),o=r+i.getPixels("y");A.translate(s,o),A.rotate(-1*a.getRadians()),A.translate(-s,-o)}applyToPoint(A){var{cx:t,cy:r,angle:n}=this,i=n.getRadians();A.applyTransform([1,0,0,1,t||0,r||0]),A.applyTransform([Math.cos(i),Math.sin(i),-Math.sin(i),Math.cos(i),0,0]),A.applyTransform([1,0,0,1,-t||0,-r||0])}}class Ey{constructor(A,t,r){this.type="scale",this.scale=null,this.originX=null,this.originY=null;var n=it.parseScale(t);(n.x===0||n.y===0)&&(n.x=oa,n.y=oa),this.scale=n,this.originX=r[0],this.originY=r[1]}apply(A){var{scale:{x:t,y:r},originX:n,originY:i}=this,a=n.getPixels("x"),s=i.getPixels("y");A.translate(a,s),A.scale(t,r||t),A.translate(-a,-s)}unapply(A){var{scale:{x:t,y:r},originX:n,originY:i}=this,a=n.getPixels("x"),s=i.getPixels("y");A.translate(a,s),A.scale(1/t,1/r||t),A.translate(-a,-s)}applyToPoint(A){var{x:t,y:r}=this.scale;A.applyTransform([t||0,0,0,r||0,0,0])}}class lp{constructor(A,t,r){this.type="matrix",this.matrix=[],this.originX=null,this.originY=null,this.matrix=vr(t),this.originX=r[0],this.originY=r[1]}apply(A){var{originX:t,originY:r,matrix:n}=this,i=t.getPixels("x"),a=r.getPixels("y");A.translate(i,a),A.transform(n[0],n[1],n[2],n[3],n[4],n[5]),A.translate(-i,-a)}unapply(A){var{originX:t,originY:r,matrix:n}=this,i=n[0],a=n[2],s=n[4],o=n[1],c=n[3],u=n[5],d=0,p=0,h=1,m=1/(i*(c*h-u*p)-a*(o*h-u*d)+s*(o*p-c*d)),B=t.getPixels("x"),C=r.getPixels("y");A.translate(B,C),A.transform(m*(c*h-u*p),m*(u*d-o*h),m*(s*p-a*h),m*(i*h-s*d),m*(a*u-s*c),m*(s*o-i*u)),A.translate(-B,-C)}applyToPoint(A){A.applyTransform(this.matrix)}}class cp extends lp{constructor(A,t,r){super(A,t,r),this.type="skew",this.angle=null,this.angle=new YA(A,"angle",t)}}class Sy extends cp{constructor(A,t,r){super(A,t,r),this.type="skewX",this.matrix=[1,0,Math.tan(this.angle.getRadians()),1,0,0]}}class Iy extends cp{constructor(A,t,r){super(A,t,r),this.type="skewY",this.matrix=[1,Math.tan(this.angle.getRadians()),0,1,0,0]}}function D_(e){return aa(e).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}function M_(e){var[A,t]=e.split("(");return[A.trim(),t.trim().replace(")","")]}class bi{constructor(A,t,r){this.document=A,this.transforms=[];var n=D_(t);n.forEach(i=>{if(i!=="none"){var[a,s]=M_(i),o=bi.transformTypes[a];typeof o<"u"&&this.transforms.push(new o(this.document,s,r))}})}static fromElement(A,t){var r=t.getStyle("transform",!1,!0),[n,i=n]=t.getStyle("transform-origin",!1,!0).split(),a=[n,i];return r.hasValue()?new bi(A,r.getString(),a):null}apply(A){for(var{transforms:t}=this,r=t.length,n=0;n<r;n++)t[n].apply(A)}unapply(A){for(var{transforms:t}=this,r=t.length,n=r-1;n>=0;n--)t[n].unapply(A)}applyToPoint(A){for(var{transforms:t}=this,r=t.length,n=0;n<r;n++)t[n].applyToPoint(A)}}bi.transformTypes={translate:Qy,rotate:Uy,scale:Ey,matrix:lp,skewX:Sy,skewY:Iy};class Ge{constructor(A,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(this.document=A,this.node=t,this.captureTextNodes=r,this.attributes=Object.create(null),this.styles=Object.create(null),this.stylesSpecificity=Object.create(null),this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],!(!t||t.nodeType!==1)){if(Array.from(t.attributes).forEach(s=>{var o=my(s.nodeName);this.attributes[o]=new YA(A,o,s.value)}),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()){var n=this.getAttribute("style").getString().split(";").map(s=>s.trim());n.forEach(s=>{if(s){var[o,c]=s.split(":").map(u=>u.trim());this.styles[o]=new YA(A,o,c)}})}var{definitions:i}=A,a=this.getAttribute("id");a.hasValue()&&(i[a.getString()]||(i[a.getString()]=this)),Array.from(t.childNodes).forEach(s=>{if(s.nodeType===1)this.addChild(s);else if(r&&(s.nodeType===3||s.nodeType===4)){var o=A.createTextNode(s);o.getText().length>0&&this.addChild(o)}})}}getAttribute(A){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=this.attributes[A];if(!r&&t){var n=new YA(this.document,A,"");return this.attributes[A]=n,n}return r||YA.empty(this.document)}getHrefAttribute(){for(var A in this.attributes)if(A==="href"||A.endsWith(":href"))return this.attributes[A];return YA.empty(this.document)}getStyle(A){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=this.styles[A];if(n)return n;var i=this.getAttribute(A);if(i!=null&&i.hasValue())return this.styles[A]=i,i;if(!r){var{parent:a}=this;if(a){var s=a.getStyle(A);if(s!=null&&s.hasValue())return s}}if(t){var o=new YA(this.document,A,"");return this.styles[A]=o,o}return n||YA.empty(this.document)}render(A){if(!(this.getStyle("display").getString()==="none"||this.getStyle("visibility").getString()==="hidden")){if(A.save(),this.getStyle("mask").hasValue()){var t=this.getStyle("mask").getDefinition();t&&(this.applyEffects(A),t.apply(A,this))}else if(this.getStyle("filter").getValue("none")!=="none"){var r=this.getStyle("filter").getDefinition();r&&(this.applyEffects(A),r.apply(A,this))}else this.setContext(A),this.renderChildren(A),this.clearContext(A);A.restore()}}setContext(A){}applyEffects(A){var t=bi.fromElement(this.document,this);t&&t.apply(A);var r=this.getStyle("clip-path",!1,!0);if(r.hasValue()){var n=r.getDefinition();n&&n.apply(A)}}clearContext(A){}renderChildren(A){this.children.forEach(t=>{t.render(A)})}addChild(A){var t=A instanceof Ge?A:this.document.createElement(A);t.parent=this,Ge.ignoreChildTypes.includes(t.type)||this.children.push(t)}matchesSelector(A){var t,{node:r}=this;if(typeof r.matches=="function")return r.matches(A);var n=(t=r.getAttribute)===null||t===void 0?void 0:t.call(r,"class");return!n||n===""?!1:n.split(" ").some(i=>".".concat(i)===A)}addStylesFromStyleDefinition(){var{styles:A,stylesSpecificity:t}=this.document;for(var r in A)if(!r.startsWith("@")&&this.matchesSelector(r)){var n=A[r],i=t[r];if(n)for(var a in n){var s=this.stylesSpecificity[a];typeof s>"u"&&(s="000"),i>=s&&(this.styles[a]=n[a],this.stylesSpecificity[a]=i)}}}removeStyles(A,t){var r=t.reduce((n,i)=>{var a=A.getStyle(i);if(!a.hasValue())return n;var s=a.getString();return a.setValue(""),[...n,[i,s]]},[]);return r}restoreStyles(A,t){t.forEach(r=>{var[n,i]=r;A.getStyle(n,!0).setValue(i)})}isFirstChild(){var A;return((A=this.parent)===null||A===void 0?void 0:A.children.indexOf(this))===0}}Ge.ignoreChildTypes=["title"];class Ly extends Ge{constructor(A,t,r){super(A,t,r)}}function R_(e){var A=e.trim();return/^('|")/.test(A)?A:'"'.concat(A,'"')}function K_(e){return typeof process>"u"?e:e.trim().split(",").map(R_).join(",")}function V_(e){if(!e)return"";var A=e.trim().toLowerCase();switch(A){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return A;default:return/^oblique\s+(-|)\d+deg$/.test(A)?A:""}}function j_(e){if(!e)return"";var A=e.trim().toLowerCase();switch(A){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return A;default:return/^[\d.]+$/.test(A)?A:""}}class er{constructor(A,t,r,n,i,a){var s=a?typeof a=="string"?er.parse(a):a:{};this.fontFamily=i||s.fontFamily,this.fontSize=n||s.fontSize,this.fontStyle=A||s.fontStyle,this.fontWeight=r||s.fontWeight,this.fontVariant=t||s.fontVariant}static parse(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,r="",n="",i="",a="",s="",o=aa(A).trim().split(" "),c={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return o.forEach(u=>{switch(!0){case(!c.fontStyle&&er.styles.includes(u)):u!=="inherit"&&(r=u),c.fontStyle=!0;break;case(!c.fontVariant&&er.variants.includes(u)):u!=="inherit"&&(n=u),c.fontStyle=!0,c.fontVariant=!0;break;case(!c.fontWeight&&er.weights.includes(u)):u!=="inherit"&&(i=u),c.fontStyle=!0,c.fontVariant=!0,c.fontWeight=!0;break;case!c.fontSize:u!=="inherit"&&([a]=u.split("/")),c.fontStyle=!0,c.fontVariant=!0,c.fontWeight=!0,c.fontSize=!0;break;default:u!=="inherit"&&(s+=u)}}),new er(r,n,i,a,s,t)}toString(){return[V_(this.fontStyle),this.fontVariant,j_(this.fontWeight),this.fontSize,K_(this.fontFamily)].join(" ").trim()}}er.styles="normal|italic|oblique|inherit",er.variants="normal|small-caps|inherit",er.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";class Rr{constructor(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Number.NaN,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.NaN,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Number.NaN,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Number.NaN;this.x1=A,this.y1=t,this.x2=r,this.y2=n,this.addPoint(A,t),this.addPoint(r,n)}get x(){return this.x1}get y(){return this.y1}get width(){return this.x2-this.x1}get height(){return this.y2-this.y1}addPoint(A,t){typeof A<"u"&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=A,this.x2=A),A<this.x1&&(this.x1=A),A>this.x2&&(this.x2=A)),typeof t<"u"&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=t,this.y2=t),t<this.y1&&(this.y1=t),t>this.y2&&(this.y2=t))}addX(A){this.addPoint(A,null)}addY(A){this.addPoint(null,A)}addBoundingBox(A){if(A){var{x1:t,y1:r,x2:n,y2:i}=A;this.addPoint(t,r),this.addPoint(n,i)}}sumCubic(A,t,r,n,i){return Math.pow(1-A,3)*t+3*Math.pow(1-A,2)*A*r+3*(1-A)*Math.pow(A,2)*n+Math.pow(A,3)*i}bezierCurveAdd(A,t,r,n,i){var a=6*t-12*r+6*n,s=-3*t+9*r-9*n+3*i,o=3*r-3*t;if(s===0){if(a===0)return;var c=-o/a;0<c&&c<1&&(A?this.addX(this.sumCubic(c,t,r,n,i)):this.addY(this.sumCubic(c,t,r,n,i)));return}var u=Math.pow(a,2)-4*o*s;if(!(u<0)){var d=(-a+Math.sqrt(u))/(2*s);0<d&&d<1&&(A?this.addX(this.sumCubic(d,t,r,n,i)):this.addY(this.sumCubic(d,t,r,n,i)));var p=(-a-Math.sqrt(u))/(2*s);0<p&&p<1&&(A?this.addX(this.sumCubic(p,t,r,n,i)):this.addY(this.sumCubic(p,t,r,n,i)))}}addBezierCurve(A,t,r,n,i,a,s,o){this.addPoint(A,t),this.addPoint(s,o),this.bezierCurveAdd(!0,A,r,i,s),this.bezierCurveAdd(!1,t,n,a,o)}addQuadraticCurve(A,t,r,n,i,a){var s=A+.6666666666666666*(r-A),o=t+2/3*(n-t),c=s+1/3*(i-A),u=o+1/3*(a-t);this.addBezierCurve(A,t,s,c,o,u,i,a)}isPointInBox(A,t){var{x1:r,y1:n,x2:i,y2:a}=this;return r<=A&&A<=i&&n<=t&&t<=a}}class he extends EA{constructor(A){super(A.replace(/([+\-.])\s+/gm,"$1").replace(/[^MmZzLlHhVvCcSsQqTtAae\d\s.,+-].*/g,"")),this.control=null,this.start=null,this.current=null,this.command=null,this.commands=this.commands,this.i=-1,this.previousCommand=null,this.points=[],this.angles=[]}reset(){this.i=-1,this.command=null,this.previousCommand=null,this.start=new it(0,0),this.control=new it(0,0),this.current=new it(0,0),this.points=[],this.angles=[]}isEnd(){var{i:A,commands:t}=this;return A>=t.length-1}next(){var A=this.commands[++this.i];return this.previousCommand=this.command,this.command=A,A}getPoint(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"x",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"y",r=new it(this.command[A],this.command[t]);return this.makeAbsolute(r)}getAsControlPoint(A,t){var r=this.getPoint(A,t);return this.control=r,r}getAsCurrentPoint(A,t){var r=this.getPoint(A,t);return this.current=r,r}getReflectedControlPoint(){var A=this.previousCommand.type;if(A!==EA.CURVE_TO&&A!==EA.SMOOTH_CURVE_TO&&A!==EA.QUAD_TO&&A!==EA.SMOOTH_QUAD_TO)return this.current;var{current:{x:t,y:r},control:{x:n,y:i}}=this,a=new it(2*t-n,2*r-i);return a}makeAbsolute(A){if(this.command.relative){var{x:t,y:r}=this.current;A.x+=t,A.y+=r}return A}addMarker(A,t,r){var{points:n,angles:i}=this;r&&i.length>0&&!i[i.length-1]&&(i[i.length-1]=n[n.length-1].angleTo(r)),this.addMarkerAngle(A,t?t.angleTo(A):null)}addMarkerAngle(A,t){this.points.push(A),this.angles.push(t)}getMarkerPoints(){return this.points}getMarkerAngles(){for(var{angles:A}=this,t=A.length,r=0;r<t;r++)if(!A[r]){for(var n=r+1;n<t;n++)if(A[n]){A[r]=A[n];break}}return A}}class Ci extends Ge{constructor(){super(...arguments),this.modifiedEmSizeStack=!1}calculateOpacity(){for(var A=1,t=this;t;){var r=t.getStyle("opacity",!1,!0);r.hasValue(!0)&&(A*=r.getNumber()),t=t.parent}return A}setContext(A){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!t){var r=this.getStyle("fill"),n=this.getStyle("fill-opacity"),i=this.getStyle("stroke"),a=this.getStyle("stroke-opacity");if(r.isUrlDefinition()){var s=r.getFillStyleDefinition(this,n);s&&(A.fillStyle=s)}else if(r.hasValue()){r.getString()==="currentColor"&&r.setValue(this.getStyle("color").getColor());var o=r.getColor();o!=="inherit"&&(A.fillStyle=o==="none"?"rgba(0,0,0,0)":o)}if(n.hasValue()){var c=new YA(this.document,"fill",A.fillStyle).addOpacity(n).getColor();A.fillStyle=c}if(i.isUrlDefinition()){var u=i.getFillStyleDefinition(this,a);u&&(A.strokeStyle=u)}else if(i.hasValue()){i.getString()==="currentColor"&&i.setValue(this.getStyle("color").getColor());var d=i.getString();d!=="inherit"&&(A.strokeStyle=d==="none"?"rgba(0,0,0,0)":d)}if(a.hasValue()){var p=new YA(this.document,"stroke",A.strokeStyle).addOpacity(a).getString();A.strokeStyle=p}var h=this.getStyle("stroke-width");if(h.hasValue()){var m=h.getPixels();A.lineWidth=m||oa}var B=this.getStyle("stroke-linecap"),C=this.getStyle("stroke-linejoin"),b=this.getStyle("stroke-miterlimit"),Q=this.getStyle("stroke-dasharray"),L=this.getStyle("stroke-dashoffset");if(B.hasValue()&&(A.lineCap=B.getString()),C.hasValue()&&(A.lineJoin=C.getString()),b.hasValue()&&(A.miterLimit=b.getNumber()),Q.hasValue()&&Q.getString()!=="none"){var D=vr(Q.getString());typeof A.setLineDash<"u"?A.setLineDash(D):typeof A.webkitLineDash<"u"?A.webkitLineDash=D:typeof A.mozDash<"u"&&!(D.length===1&&D[0]===0)&&(A.mozDash=D);var O=L.getPixels();typeof A.lineDashOffset<"u"?A.lineDashOffset=O:typeof A.webkitLineDashOffset<"u"?A.webkitLineDashOffset=O:typeof A.mozDashOffset<"u"&&(A.mozDashOffset=O)}}if(this.modifiedEmSizeStack=!1,typeof A.font<"u"){var z=this.getStyle("font"),R=this.getStyle("font-style"),_=this.getStyle("font-variant"),X=this.getStyle("font-weight"),nA=this.getStyle("font-size"),N=this.getStyle("font-family"),T=new er(R.getString(),_.getString(),X.getString(),nA.hasValue()?"".concat(nA.getPixels(!0),"px"):"",N.getString(),er.parse(z.getString(),A.font));R.setValue(T.fontStyle),_.setValue(T.fontVariant),X.setValue(T.fontWeight),nA.setValue(T.fontSize),N.setValue(T.fontFamily),A.font=T.toString(),nA.isPixels()&&(this.document.emSize=nA.getPixels(),this.modifiedEmSizeStack=!0)}t||(this.applyEffects(A),A.globalAlpha=this.calculateOpacity())}clearContext(A){super.clearContext(A),this.modifiedEmSizeStack&&this.document.popEmSize()}}class Oe extends Ci{constructor(A,t,r){super(A,t,r),this.type="path",this.pathParser=null,this.pathParser=new he(this.getAttribute("d").getString())}path(A){var{pathParser:t}=this,r=new Rr;for(t.reset(),A&&A.beginPath();!t.isEnd();)switch(t.next().type){case he.MOVE_TO:this.pathM(A,r);break;case he.LINE_TO:this.pathL(A,r);break;case he.HORIZ_LINE_TO:this.pathH(A,r);break;case he.VERT_LINE_TO:this.pathV(A,r);break;case he.CURVE_TO:this.pathC(A,r);break;case he.SMOOTH_CURVE_TO:this.pathS(A,r);break;case he.QUAD_TO:this.pathQ(A,r);break;case he.SMOOTH_QUAD_TO:this.pathT(A,r);break;case he.ARC:this.pathA(A,r);break;case he.CLOSE_PATH:this.pathZ(A,r);break}return r}getBoundingBox(A){return this.path()}getMarkers(){var{pathParser:A}=this,t=A.getMarkerPoints(),r=A.getMarkerAngles(),n=t.map((i,a)=>[i,r[a]]);return n}renderChildren(A){this.path(A),this.document.screen.mouse.checkPath(this,A);var t=this.getStyle("fill-rule");A.fillStyle!==""&&(t.getString("inherit")!=="inherit"?A.fill(t.getString()):A.fill()),A.strokeStyle!==""&&(this.getAttribute("vector-effect").getString()==="non-scaling-stroke"?(A.save(),A.setTransform(1,0,0,1,0,0),A.stroke(),A.restore()):A.stroke());var r=this.getMarkers();if(r){var n=r.length-1,i=this.getStyle("marker-start"),a=this.getStyle("marker-mid"),s=this.getStyle("marker-end");if(i.isUrlDefinition()){var o=i.getDefinition(),[c,u]=r[0];o.render(A,c,u)}if(a.isUrlDefinition())for(var d=a.getDefinition(),p=1;p<n;p++){var[h,m]=r[p];d.render(A,h,m)}if(s.isUrlDefinition()){var B=s.getDefinition(),[C,b]=r[n];B.render(A,C,b)}}}static pathM(A){var t=A.getAsCurrentPoint();return A.start=A.current,{point:t}}pathM(A,t){var{pathParser:r}=this,{point:n}=Oe.pathM(r),{x:i,y:a}=n;r.addMarker(n),t.addPoint(i,a),A&&A.moveTo(i,a)}static pathL(A){var{current:t}=A,r=A.getAsCurrentPoint();return{current:t,point:r}}pathL(A,t){var{pathParser:r}=this,{current:n,point:i}=Oe.pathL(r),{x:a,y:s}=i;r.addMarker(i,n),t.addPoint(a,s),A&&A.lineTo(a,s)}static pathH(A){var{current:t,command:r}=A,n=new it((r.relative?t.x:0)+r.x,t.y);return A.current=n,{current:t,point:n}}pathH(A,t){var{pathParser:r}=this,{current:n,point:i}=Oe.pathH(r),{x:a,y:s}=i;r.addMarker(i,n),t.addPoint(a,s),A&&A.lineTo(a,s)}static pathV(A){var{current:t,command:r}=A,n=new it(t.x,(r.relative?t.y:0)+r.y);return A.current=n,{current:t,point:n}}pathV(A,t){var{pathParser:r}=this,{current:n,point:i}=Oe.pathV(r),{x:a,y:s}=i;r.addMarker(i,n),t.addPoint(a,s),A&&A.lineTo(a,s)}static pathC(A){var{current:t}=A,r=A.getPoint("x1","y1"),n=A.getAsControlPoint("x2","y2"),i=A.getAsCurrentPoint();return{current:t,point:r,controlPoint:n,currentPoint:i}}pathC(A,t){var{pathParser:r}=this,{current:n,point:i,controlPoint:a,currentPoint:s}=Oe.pathC(r);r.addMarker(s,a,i),t.addBezierCurve(n.x,n.y,i.x,i.y,a.x,a.y,s.x,s.y),A&&A.bezierCurveTo(i.x,i.y,a.x,a.y,s.x,s.y)}static pathS(A){var{current:t}=A,r=A.getReflectedControlPoint(),n=A.getAsControlPoint("x2","y2"),i=A.getAsCurrentPoint();return{current:t,point:r,controlPoint:n,currentPoint:i}}pathS(A,t){var{pathParser:r}=this,{current:n,point:i,controlPoint:a,currentPoint:s}=Oe.pathS(r);r.addMarker(s,a,i),t.addBezierCurve(n.x,n.y,i.x,i.y,a.x,a.y,s.x,s.y),A&&A.bezierCurveTo(i.x,i.y,a.x,a.y,s.x,s.y)}static pathQ(A){var{current:t}=A,r=A.getAsControlPoint("x1","y1"),n=A.getAsCurrentPoint();return{current:t,controlPoint:r,currentPoint:n}}pathQ(A,t){var{pathParser:r}=this,{current:n,controlPoint:i,currentPoint:a}=Oe.pathQ(r);r.addMarker(a,i,i),t.addQuadraticCurve(n.x,n.y,i.x,i.y,a.x,a.y),A&&A.quadraticCurveTo(i.x,i.y,a.x,a.y)}static pathT(A){var{current:t}=A,r=A.getReflectedControlPoint();A.control=r;var n=A.getAsCurrentPoint();return{current:t,controlPoint:r,currentPoint:n}}pathT(A,t){var{pathParser:r}=this,{current:n,controlPoint:i,currentPoint:a}=Oe.pathT(r);r.addMarker(a,i,i),t.addQuadraticCurve(n.x,n.y,i.x,i.y,a.x,a.y),A&&A.quadraticCurveTo(i.x,i.y,a.x,a.y)}static pathA(A){var{current:t,command:r}=A,{rX:n,rY:i,xRot:a,lArcFlag:s,sweepFlag:o}=r,c=a*(Math.PI/180),u=A.getAsCurrentPoint(),d=new it(Math.cos(c)*(t.x-u.x)/2+Math.sin(c)*(t.y-u.y)/2,-Math.sin(c)*(t.x-u.x)/2+Math.cos(c)*(t.y-u.y)/2),p=Math.pow(d.x,2)/Math.pow(n,2)+Math.pow(d.y,2)/Math.pow(i,2);p>1&&(n*=Math.sqrt(p),i*=Math.sqrt(p));var h=(s===o?-1:1)*Math.sqrt((Math.pow(n,2)*Math.pow(i,2)-Math.pow(n,2)*Math.pow(d.y,2)-Math.pow(i,2)*Math.pow(d.x,2))/(Math.pow(n,2)*Math.pow(d.y,2)+Math.pow(i,2)*Math.pow(d.x,2)));isNaN(h)&&(h=0);var m=new it(h*n*d.y/i,h*-i*d.x/n),B=new it((t.x+u.x)/2+Math.cos(c)*m.x-Math.sin(c)*m.y,(t.y+u.y)/2+Math.sin(c)*m.x+Math.cos(c)*m.y),C=ep([1,0],[(d.x-m.x)/n,(d.y-m.y)/i]),b=[(d.x-m.x)/n,(d.y-m.y)/i],Q=[(-d.x-m.x)/n,(-d.y-m.y)/i],L=ep(b,Q);return du(b,Q)<=-1&&(L=Math.PI),du(b,Q)>=1&&(L=0),{currentPoint:u,rX:n,rY:i,sweepFlag:o,xAxisRotation:c,centp:B,a1:C,ad:L}}pathA(A,t){var{pathParser:r}=this,{currentPoint:n,rX:i,rY:a,sweepFlag:s,xAxisRotation:o,centp:c,a1:u,ad:d}=Oe.pathA(r),p=1-s?1:-1,h=u+p*(d/2),m=new it(c.x+i*Math.cos(h),c.y+a*Math.sin(h));if(r.addMarkerAngle(m,h-p*Math.PI/2),r.addMarkerAngle(n,h-p*Math.PI),t.addPoint(n.x,n.y),A&&!isNaN(u)&&!isNaN(d)){var B=i>a?i:a,C=i>a?1:i/a,b=i>a?a/i:1;A.translate(c.x,c.y),A.rotate(o),A.scale(C,b),A.arc(0,0,B,u,u+d,!!(1-s)),A.scale(1/C,1/b),A.rotate(-o),A.translate(-c.x,-c.y)}}static pathZ(A){A.current=A.start}pathZ(A,t){Oe.pathZ(this.pathParser),A&&t.x1!==t.x2&&t.y1!==t.y2&&A.closePath()}}class up extends Oe{constructor(A,t,r){super(A,t,r),this.type="glyph",this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber(),this.unicode=this.getAttribute("unicode").getString(),this.arabicForm=this.getAttribute("arabic-form").getString()}}class zn extends Ci{constructor(A,t,r){super(A,t,new.target===zn?!0:r),this.type="text",this.x=0,this.y=0,this.measureCache=-1}setContext(A){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;super.setContext(A,t);var r=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();r&&(A.textBaseline=r)}initializeCoordinates(){this.x=0,this.y=0,this.leafTexts=[],this.textChunkStart=0,this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY}getBoundingBox(A){if(this.type!=="text")return this.getTElementBoundingBox(A);this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(A);var t=null;return this.children.forEach((r,n)=>{var i=this.getChildBoundingBox(A,this,this,n);t?t.addBoundingBox(i):t=i}),t}getFontSize(){var{document:A,parent:t}=this,r=er.parse(A.ctx.font).fontSize,n=t.getStyle("font-size").getNumber(r);return n}getTElementBoundingBox(A){var t=this.getFontSize();return new Rr(this.x,this.y-t,this.x+this.measureText(A),this.y)}getGlyph(A,t,r){var n=t[r],i=null;if(A.isArabic){var a=t.length,s=t[r-1],o=t[r+1],c="isolated";if((r===0||s===" ")&&r<a-1&&o!==" "&&(c="terminal"),r>0&&s!==" "&&r<a-1&&o!==" "&&(c="medial"),r>0&&s!==" "&&(r===a-1||o===" ")&&(c="initial"),typeof A.glyphs[n]<"u"){var u=A.glyphs[n];i=u instanceof up?u:u[c]}}else i=A.glyphs[n];return i||(i=A.missingGlyph),i}getText(){return""}getTextFromNode(A){var t=A||this.node,r=Array.from(t.parentNode.childNodes),n=r.indexOf(t),i=r.length-1,a=aa(t.textContent||"");return n===0&&(a=vy(a)),n===i&&(a=By(a)),a}renderChildren(A){if(this.type!=="text"){this.renderTElementChildren(A);return}this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(A),this.children.forEach((r,n)=>{this.renderChild(A,this,this,n)});var{mouse:t}=this.document.screen;t.isWorking()&&t.checkBoundingBox(this,this.getBoundingBox(A))}renderTElementChildren(A){var{document:t,parent:r}=this,n=this.getText(),i=r.getStyle("font-family").getDefinition();if(i){for(var{unitsPerEm:a}=i.fontFace,s=er.parse(t.ctx.font),o=r.getStyle("font-size").getNumber(s.fontSize),c=r.getStyle("font-style").getString(s.fontStyle),u=o/a,d=i.isRTL?n.split("").reverse().join(""):n,p=vr(r.getAttribute("dx").getString()),h=d.length,m=0;m<h;m++){var B=this.getGlyph(i,d,m);A.translate(this.x,this.y),A.scale(u,-u);var C=A.lineWidth;A.lineWidth=A.lineWidth*a/o,c==="italic"&&A.transform(1,0,.4,1,0,0),B.render(A),c==="italic"&&A.transform(1,0,-.4,1,0,0),A.lineWidth=C,A.scale(1/u,-1/u),A.translate(-this.x,-this.y),this.x+=o*(B.horizAdvX||i.horizAdvX)/a,typeof p[m]<"u"&&!isNaN(p[m])&&(this.x+=p[m])}return}var{x:b,y:Q}=this;A.fillStyle&&A.fillText(n,b,Q),A.strokeStyle&&A.strokeText(n,b,Q)}applyAnchoring(){if(!(this.textChunkStart>=this.leafTexts.length)){var A=this.leafTexts[this.textChunkStart],t=A.getStyle("text-anchor").getString("start"),r=!1,n=0;t==="start"&&!r||t==="end"&&r?n=A.x-this.minX:t==="end"&&!r||t==="start"&&r?n=A.x-this.maxX:n=A.x-(this.minX+this.maxX)/2;for(var i=this.textChunkStart;i<this.leafTexts.length;i++)this.leafTexts[i].x+=n;this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY,this.textChunkStart=this.leafTexts.length}}adjustChildCoordinatesRecursive(A){this.children.forEach((t,r)=>{this.adjustChildCoordinatesRecursiveCore(A,this,this,r)}),this.applyAnchoring()}adjustChildCoordinatesRecursiveCore(A,t,r,n){var i=r.children[n];i.children.length>0?i.children.forEach((a,s)=>{t.adjustChildCoordinatesRecursiveCore(A,t,i,s)}):this.adjustChildCoordinates(A,t,r,n)}adjustChildCoordinates(A,t,r,n){var i=r.children[n];if(typeof i.measureText!="function")return i;A.save(),i.setContext(A,!0);var a=i.getAttribute("x"),s=i.getAttribute("y"),o=i.getAttribute("dx"),c=i.getAttribute("dy"),u=i.getStyle("font-family").getDefinition(),d=!!u&&u.isRTL;n===0&&(a.hasValue()||a.setValue(i.getInheritedAttribute("x")),s.hasValue()||s.setValue(i.getInheritedAttribute("y")),o.hasValue()||o.setValue(i.getInheritedAttribute("dx")),c.hasValue()||c.setValue(i.getInheritedAttribute("dy")));var p=i.measureText(A);return d&&(t.x-=p),a.hasValue()?(t.applyAnchoring(),i.x=a.getPixels("x"),o.hasValue()&&(i.x+=o.getPixels("x"))):(o.hasValue()&&(t.x+=o.getPixels("x")),i.x=t.x),t.x=i.x,d||(t.x+=p),s.hasValue()?(i.y=s.getPixels("y"),c.hasValue()&&(i.y+=c.getPixels("y"))):(c.hasValue()&&(t.y+=c.getPixels("y")),i.y=t.y),t.y=i.y,t.leafTexts.push(i),t.minX=Math.min(t.minX,i.x,i.x+p),t.maxX=Math.max(t.maxX,i.x,i.x+p),i.clearContext(A),A.restore(),i}getChildBoundingBox(A,t,r,n){var i=r.children[n];if(typeof i.getBoundingBox!="function")return null;var a=i.getBoundingBox(A);return a?(i.children.forEach((s,o)=>{var c=t.getChildBoundingBox(A,t,i,o);a.addBoundingBox(c)}),a):null}renderChild(A,t,r,n){var i=r.children[n];i.render(A),i.children.forEach((a,s)=>{t.renderChild(A,t,i,s)})}measureText(A){var{measureCache:t}=this;if(~t)return t;var r=this.getText(),n=this.measureTargetText(A,r);return this.measureCache=n,n}measureTargetText(A,t){if(!t.length)return 0;var{parent:r}=this,n=r.getStyle("font-family").getDefinition();if(n){for(var i=this.getFontSize(),a=n.isRTL?t.split("").reverse().join(""):t,s=vr(r.getAttribute("dx").getString()),o=a.length,c=0,u=0;u<o;u++){var d=this.getGlyph(n,a,u);c+=(d.horizAdvX||n.horizAdvX)*i/n.fontFace.unitsPerEm,typeof s[u]<"u"&&!isNaN(s[u])&&(c+=s[u])}return c}if(!A.measureText)return t.length*10;A.save(),this.setContext(A,!0);var{width:p}=A.measureText(t);return this.clearContext(A),A.restore(),p}getInheritedAttribute(A){for(var t=this;t instanceof zn&&t.isFirstChild();){var r=t.parent.getAttribute(A);if(r.hasValue(!0))return r.getValue("0");t=t.parent}return null}}class Lo extends zn{constructor(A,t,r){super(A,t,new.target===Lo?!0:r),this.type="tspan",this.text=this.children.length>0?"":this.getTextFromNode()}getText(){return this.text}}class z_ extends Lo{constructor(){super(...arguments),this.type="textNode"}}class cs extends Ci{constructor(){super(...arguments),this.type="svg",this.root=!1}setContext(A){var t,{document:r}=this,{screen:n,window:i}=r,a=A.canvas;if(n.setDefaults(A),a.style&&typeof A.font<"u"&&i&&typeof i.getComputedStyle<"u"){A.font=i.getComputedStyle(a).getPropertyValue("font");var s=new YA(r,"fontSize",er.parse(A.font).fontSize);s.hasValue()&&(r.rootEmSize=s.getPixels("y"),r.emSize=r.rootEmSize)}this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0);var{width:o,height:c}=n.viewPort;this.getStyle("width").hasValue()||this.getStyle("width",!0).setValue("100%"),this.getStyle("height").hasValue()||this.getStyle("height",!0).setValue("100%"),this.getStyle("color").hasValue()||this.getStyle("color",!0).setValue("black");var u=this.getAttribute("refX"),d=this.getAttribute("refY"),p=this.getAttribute("viewBox"),h=p.hasValue()?vr(p.getString()):null,m=!this.root&&this.getStyle("overflow").getValue("hidden")!=="visible",B=0,C=0,b=0,Q=0;h&&(B=h[0],C=h[1]),this.root||(o=this.getStyle("width").getPixels("x"),c=this.getStyle("height").getPixels("y"),this.type==="marker"&&(b=B,Q=C,B=0,C=0)),n.viewPort.setCurrent(o,c),this.node&&(!this.parent||((t=this.node.parentNode)===null||t===void 0?void 0:t.nodeName)==="foreignObject")&&this.getStyle("transform",!1,!0).hasValue()&&!this.getStyle("transform-origin",!1,!0).hasValue()&&this.getStyle("transform-origin",!0,!0).setValue("50% 50%"),super.setContext(A),A.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),h&&(o=h[2],c=h[3]),r.setViewBox({ctx:A,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:n.viewPort.width,desiredWidth:o,height:n.viewPort.height,desiredHeight:c,minX:B,minY:C,refX:u.getValue(),refY:d.getValue(),clip:m,clipX:b,clipY:Q}),h&&(n.viewPort.removeCurrent(),n.viewPort.setCurrent(o,c))}clearContext(A){super.clearContext(A),this.document.screen.viewPort.removeCurrent()}resize(A){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:A,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=this.getAttribute("width",!0),i=this.getAttribute("height",!0),a=this.getAttribute("viewBox"),s=this.getAttribute("style"),o=n.getNumber(0),c=i.getNumber(0);if(r)if(typeof r=="string")this.getAttribute("preserveAspectRatio",!0).setValue(r);else{var u=this.getAttribute("preserveAspectRatio");u.hasValue()&&u.setValue(u.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}if(n.setValue(A),i.setValue(t),a.hasValue()||a.setValue("0 0 ".concat(o||A," ").concat(c||t)),s.hasValue()){var d=this.getStyle("width"),p=this.getStyle("height");d.hasValue()&&d.setValue("".concat(A,"px")),p.hasValue()&&p.setValue("".concat(t,"px"))}}}class fp extends Oe{constructor(){super(...arguments),this.type="rect"}path(A){var t=this.getAttribute("x").getPixels("x"),r=this.getAttribute("y").getPixels("y"),n=this.getStyle("width",!1,!0).getPixels("x"),i=this.getStyle("height",!1,!0).getPixels("y"),a=this.getAttribute("rx"),s=this.getAttribute("ry"),o=a.getPixels("x"),c=s.getPixels("y");if(a.hasValue()&&!s.hasValue()&&(c=o),s.hasValue()&&!a.hasValue()&&(o=c),o=Math.min(o,n/2),c=Math.min(c,i/2),A){var u=4*((Math.sqrt(2)-1)/3);A.beginPath(),i>0&&n>0&&(A.moveTo(t+o,r),A.lineTo(t+n-o,r),A.bezierCurveTo(t+n-o+u*o,r,t+n,r+c-u*c,t+n,r+c),A.lineTo(t+n,r+i-c),A.bezierCurveTo(t+n,r+i-c+u*c,t+n-o+u*o,r+i,t+n-o,r+i),A.lineTo(t+o,r+i),A.bezierCurveTo(t+o-u*o,r+i,t,r+i-c+u*c,t,r+i-c),A.lineTo(t,r+c),A.bezierCurveTo(t,r+c-u*c,t+o-u*o,r,t+o,r),A.closePath())}return new Rr(t,r,t+n,r+i)}getMarkers(){return null}}class Ny extends Oe{constructor(){super(...arguments),this.type="circle"}path(A){var t=this.getAttribute("cx").getPixels("x"),r=this.getAttribute("cy").getPixels("y"),n=this.getAttribute("r").getPixels();return A&&n>0&&(A.beginPath(),A.arc(t,r,n,0,Math.PI*2,!1),A.closePath()),new Rr(t-n,r-n,t+n,r+n)}getMarkers(){return null}}class Ty extends Oe{constructor(){super(...arguments),this.type="ellipse"}path(A){var t=4*((Math.sqrt(2)-1)/3),r=this.getAttribute("rx").getPixels("x"),n=this.getAttribute("ry").getPixels("y"),i=this.getAttribute("cx").getPixels("x"),a=this.getAttribute("cy").getPixels("y");return A&&r>0&&n>0&&(A.beginPath(),A.moveTo(i+r,a),A.bezierCurveTo(i+r,a+t*n,i+t*r,a+n,i,a+n),A.bezierCurveTo(i-t*r,a+n,i-r,a+t*n,i-r,a),A.bezierCurveTo(i-r,a-t*n,i-t*r,a-n,i,a-n),A.bezierCurveTo(i+t*r,a-n,i+r,a-t*n,i+r,a),A.closePath()),new Rr(i-r,a-n,i+r,a+n)}getMarkers(){return null}}class Oy extends Oe{constructor(){super(...arguments),this.type="line"}getPoints(){return[new it(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new it(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}path(A){var[{x:t,y:r},{x:n,y:i}]=this.getPoints();return A&&(A.beginPath(),A.moveTo(t,r),A.lineTo(n,i)),new Rr(t,r,n,i)}getMarkers(){var[A,t]=this.getPoints(),r=A.angleTo(t);return[[A,r],[t,r]]}}class hp extends Oe{constructor(A,t,r){super(A,t,r),this.type="polyline",this.points=[],this.points=it.parsePath(this.getAttribute("points").getString())}path(A){var{points:t}=this,[{x:r,y:n}]=t,i=new Rr(r,n);return A&&(A.beginPath(),A.moveTo(r,n)),t.forEach(a=>{var{x:s,y:o}=a;i.addPoint(s,o),A&&A.lineTo(s,o)}),i}getMarkers(){var{points:A}=this,t=A.length-1,r=[];return A.forEach((n,i)=>{i!==t&&r.push([n,n.angleTo(A[i+1])])}),r.length>0&&r.push([A[A.length-1],r[r.length-1][1]]),r}}class Hy extends hp{constructor(){super(...arguments),this.type="polygon"}path(A){var t=super.path(A),[{x:r,y:n}]=this.points;return A&&(A.lineTo(r,n),A.closePath()),t}}class _y extends Ge{constructor(){super(...arguments),this.type="pattern"}createPattern(A,t,r){var n=this.getStyle("width").getPixels("x",!0),i=this.getStyle("height").getPixels("y",!0),a=new cs(this.document,null);a.attributes.viewBox=new YA(this.document,"viewBox",this.getAttribute("viewBox").getValue()),a.attributes.width=new YA(this.document,"width","".concat(n,"px")),a.attributes.height=new YA(this.document,"height","".concat(i,"px")),a.attributes.transform=new YA(this.document,"transform",this.getAttribute("patternTransform").getValue()),a.children=this.children;var s=this.document.createCanvas(n,i),o=s.getContext("2d"),c=this.getAttribute("x"),u=this.getAttribute("y");c.hasValue()&&u.hasValue()&&o.translate(c.getPixels("x",!0),u.getPixels("y",!0)),r.hasValue()?this.styles["fill-opacity"]=r:Reflect.deleteProperty(this.styles,"fill-opacity");for(var d=-1;d<=1;d++)for(var p=-1;p<=1;p++)o.save(),a.attributes.x=new YA(this.document,"x",d*s.width),a.attributes.y=new YA(this.document,"y",p*s.height),a.render(o),o.restore();var h=A.createPattern(s,"repeat");return h}}class Py extends Ge{constructor(){super(...arguments),this.type="marker"}render(A,t,r){if(t){var{x:n,y:i}=t,a=this.getAttribute("orient").getString("auto"),s=this.getAttribute("markerUnits").getString("strokeWidth");A.translate(n,i),a==="auto"&&A.rotate(r),s==="strokeWidth"&&A.scale(A.lineWidth,A.lineWidth),A.save();var o=new cs(this.document,null);o.type=this.type,o.attributes.viewBox=new YA(this.document,"viewBox",this.getAttribute("viewBox").getValue()),o.attributes.refX=new YA(this.document,"refX",this.getAttribute("refX").getValue()),o.attributes.refY=new YA(this.document,"refY",this.getAttribute("refY").getValue()),o.attributes.width=new YA(this.document,"width",this.getAttribute("markerWidth").getValue()),o.attributes.height=new YA(this.document,"height",this.getAttribute("markerHeight").getValue()),o.attributes.overflow=new YA(this.document,"overflow",this.getAttribute("overflow").getValue()),o.attributes.fill=new YA(this.document,"fill",this.getAttribute("fill").getColor("black")),o.attributes.stroke=new YA(this.document,"stroke",this.getAttribute("stroke").getValue("none")),o.children=this.children,o.render(A),A.restore(),s==="strokeWidth"&&A.scale(1/A.lineWidth,1/A.lineWidth),a==="auto"&&A.rotate(-r),A.translate(-n,-i)}}}class ky extends Ge{constructor(){super(...arguments),this.type="defs"}render(){}}class pu extends Ci{constructor(){super(...arguments),this.type="g"}getBoundingBox(A){var t=new Rr;return this.children.forEach(r=>{t.addBoundingBox(r.getBoundingBox(A))}),t}}class dp extends Ge{constructor(A,t,r){super(A,t,r),this.attributesToInherit=["gradientUnits"],this.stops=[];var{stops:n,children:i}=this;i.forEach(a=>{a.type==="stop"&&n.push(a)})}getGradientUnits(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}createGradient(A,t,r){var n=this;this.getHrefAttribute().hasValue()&&(n=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(n));var{stops:i}=n,a=this.getGradient(A,t);if(!a)return this.addParentOpacity(r,i[i.length-1].color);if(i.forEach(C=>{a.addColorStop(C.offset,this.addParentOpacity(r,C.color))}),this.getAttribute("gradientTransform").hasValue()){var{document:s}=this,{MAX_VIRTUAL_PIXELS:o,viewPort:c}=s.screen,[u]=c.viewPorts,d=new fp(s,null);d.attributes.x=new YA(s,"x",-o/3),d.attributes.y=new YA(s,"y",-o/3),d.attributes.width=new YA(s,"width",o),d.attributes.height=new YA(s,"height",o);var p=new pu(s,null);p.attributes.transform=new YA(s,"transform",this.getAttribute("gradientTransform").getValue()),p.children=[d];var h=new cs(s,null);h.attributes.x=new YA(s,"x",0),h.attributes.y=new YA(s,"y",0),h.attributes.width=new YA(s,"width",u.width),h.attributes.height=new YA(s,"height",u.height),h.children=[p];var m=s.createCanvas(u.width,u.height),B=m.getContext("2d");return B.fillStyle=a,h.render(B),B.createPattern(m,"no-repeat")}return a}inheritStopContainer(A){this.attributesToInherit.forEach(t=>{!this.getAttribute(t).hasValue()&&A.getAttribute(t).hasValue()&&this.getAttribute(t,!0).setValue(A.getAttribute(t).getValue())})}addParentOpacity(A,t){if(A.hasValue()){var r=new YA(this.document,"color",t);return r.addOpacity(A).getColor()}return t}}class Dy extends dp{constructor(A,t,r){super(A,t,r),this.type="linearGradient",this.attributesToInherit.push("x1","y1","x2","y2")}getGradient(A,t){var r=this.getGradientUnits()==="objectBoundingBox",n=r?t.getBoundingBox(A):null;if(r&&!n)return null;!this.getAttribute("x1").hasValue()&&!this.getAttribute("y1").hasValue()&&!this.getAttribute("x2").hasValue()&&!this.getAttribute("y2").hasValue()&&(this.getAttribute("x1",!0).setValue(0),this.getAttribute("y1",!0).setValue(0),this.getAttribute("x2",!0).setValue(1),this.getAttribute("y2",!0).setValue(0));var i=r?n.x+n.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),a=r?n.y+n.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),s=r?n.x+n.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),o=r?n.y+n.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return i===s&&a===o?null:A.createLinearGradient(i,a,s,o)}}class My extends dp{constructor(A,t,r){super(A,t,r),this.type="radialGradient",this.attributesToInherit.push("cx","cy","r","fx","fy","fr")}getGradient(A,t){var r=this.getGradientUnits()==="objectBoundingBox",n=t.getBoundingBox(A);if(r&&!n)return null;this.getAttribute("cx").hasValue()||this.getAttribute("cx",!0).setValue("50%"),this.getAttribute("cy").hasValue()||this.getAttribute("cy",!0).setValue("50%"),this.getAttribute("r").hasValue()||this.getAttribute("r",!0).setValue("50%");var i=r?n.x+n.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),a=r?n.y+n.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),s=i,o=a;this.getAttribute("fx").hasValue()&&(s=r?n.x+n.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(o=r?n.y+n.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var c=r?(n.width+n.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),u=this.getAttribute("fr").getPixels();return A.createRadialGradient(s,o,u,i,a,c)}}class Ry extends Ge{constructor(A,t,r){super(A,t,r),this.type="stop";var n=Math.max(0,Math.min(1,this.getAttribute("offset").getNumber())),i=this.getStyle("stop-opacity"),a=this.getStyle("stop-color",!0);a.getString()===""&&a.setValue("#000"),i.hasValue()&&(a=a.addOpacity(i)),this.offset=n,this.color=a.getColor()}}class vu extends Ge{constructor(A,t,r){super(A,t,r),this.type="animate",this.duration=0,this.initialValue=null,this.initialUnits="",this.removed=!1,this.frozen=!1,A.screen.animations.push(this),this.begin=this.getAttribute("begin").getMilliseconds(),this.maxDuration=this.begin+this.getAttribute("dur").getMilliseconds(),this.from=this.getAttribute("from"),this.to=this.getAttribute("to"),this.values=new YA(A,"values",null);var n=this.getAttribute("values");n.hasValue()&&this.values.setValue(n.getString().split(";"))}getProperty(){var A=this.getAttribute("attributeType").getString(),t=this.getAttribute("attributeName").getString();return A==="CSS"?this.parent.getStyle(t,!0):this.parent.getAttribute(t,!0)}calcValue(){var{initialUnits:A}=this,{progress:t,from:r,to:n}=this.getProgress(),i=r.getNumber()+(n.getNumber()-r.getNumber())*t;return A==="%"&&(i*=100),"".concat(i).concat(A)}update(A){var{parent:t}=this,r=this.getProperty();if(this.initialValue||(this.initialValue=r.getString(),this.initialUnits=r.getUnits()),this.duration>this.maxDuration){var n=this.getAttribute("fill").getString("remove");if(this.getAttribute("repeatCount").getString()==="indefinite"||this.getAttribute("repeatDur").getString()==="indefinite")this.duration=0;else if(n==="freeze"&&!this.frozen)this.frozen=!0,t.animationFrozen=!0,t.animationFrozenValue=r.getString();else if(n==="remove"&&!this.removed)return this.removed=!0,r.setValue(t.animationFrozen?t.animationFrozenValue:this.initialValue),!0;return!1}this.duration+=A;var i=!1;if(this.begin<this.duration){var a=this.calcValue(),s=this.getAttribute("type");if(s.hasValue()){var o=s.getString();a="".concat(o,"(").concat(a,")")}r.setValue(a),i=!0}return i}getProgress(){var{document:A,values:t}=this,r={progress:(this.duration-this.begin)/(this.maxDuration-this.begin)};if(t.hasValue()){var n=r.progress*(t.getValue().length-1),i=Math.floor(n),a=Math.ceil(n);r.from=new YA(A,"from",parseFloat(t.getValue()[i])),r.to=new YA(A,"to",parseFloat(t.getValue()[a])),r.progress=(n-i)/(a-i)}else r.from=this.from,r.to=this.to;return r}}class Ky extends vu{constructor(){super(...arguments),this.type="animateColor"}calcValue(){var{progress:A,from:t,to:r}=this.getProgress(),n=new Wg(t.getColor()),i=new Wg(r.getColor());if(n.ok&&i.ok){var a=n.r+(i.r-n.r)*A,s=n.g+(i.g-n.g)*A,o=n.b+(i.b-n.b)*A;return"rgb(".concat(Math.floor(a),", ").concat(Math.floor(s),", ").concat(Math.floor(o),")")}return this.getAttribute("from").getColor()}}class Vy extends vu{constructor(){super(...arguments),this.type="animateTransform"}calcValue(){var{progress:A,from:t,to:r}=this.getProgress(),n=vr(t.getString()),i=vr(r.getString()),a=n.map((s,o)=>{var c=i[o];return s+(c-s)*A}).join(" ");return a}}class jy extends Ge{constructor(A,t,r){super(A,t,r),this.type="font",this.glyphs=Object.create(null),this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber();var{definitions:n}=A,{children:i}=this;for(var a of i)switch(a.type){case"font-face":{this.fontFace=a;var s=a.getStyle("font-family");s.hasValue()&&(n[s.getString()]=this);break}case"missing-glyph":this.missingGlyph=a;break;case"glyph":{var o=a;o.arabicForm?(this.isRTL=!0,this.isArabic=!0,typeof this.glyphs[o.unicode]>"u"&&(this.glyphs[o.unicode]=Object.create(null)),this.glyphs[o.unicode][o.arabicForm]=o):this.glyphs[o.unicode]=o;break}}}render(){}}class zy extends Ge{constructor(A,t,r){super(A,t,r),this.type="font-face",this.ascent=this.getAttribute("ascent").getNumber(),this.descent=this.getAttribute("descent").getNumber(),this.unitsPerEm=this.getAttribute("units-per-em").getNumber()}}class Gy extends Oe{constructor(){super(...arguments),this.type="missing-glyph",this.horizAdvX=0}}class $y extends zn{constructor(){super(...arguments),this.type="tref"}getText(){var A=this.getHrefAttribute().getDefinition();if(A){var t=A.children[0];if(t)return t.getText()}return""}}class Wy extends zn{constructor(A,t,r){super(A,t,r),this.type="a";var{childNodes:n}=t,i=n[0],a=n.length>0&&Array.from(n).every(s=>s.nodeType===3);this.hasText=a,this.text=a?this.getTextFromNode(i):""}getText(){return this.text}renderChildren(A){if(this.hasText){super.renderChildren(A);var{document:t,x:r,y:n}=this,{mouse:i}=t.screen,a=new YA(t,"fontSize",er.parse(t.ctx.font).fontSize);i.isWorking()&&i.checkBoundingBox(this,new Rr(r,n-a.getPixels("y"),r+this.measureText(A),n))}else if(this.children.length>0){var s=new pu(this.document,null);s.children=this.children,s.parent=this,s.render(A)}}onClick(){var{window:A}=this.document;A&&A.open(this.getHrefAttribute().getString())}onMouseMove(){var A=this.document.ctx;A.canvas.style.cursor="pointer"}}function qy(e,A){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);A&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,r)}return t}function Bu(e){for(var A=1;A<arguments.length;A++){var t=arguments[A]!=null?arguments[A]:{};A%2?qy(Object(t),!0).forEach(function(r){Dg(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):qy(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}class Xy extends zn{constructor(A,t,r){super(A,t,r),this.type="textPath",this.textWidth=0,this.textHeight=0,this.pathLength=-1,this.glyphInfo=null,this.letterSpacingCache=[],this.measuresCache=new Map([["",0]]);var n=this.getHrefAttribute().getDefinition();this.text=this.getTextFromNode(),this.dataArray=this.parsePathData(n)}getText(){return this.text}path(A){var{dataArray:t}=this;A&&A.beginPath(),t.forEach(r=>{var{type:n,points:i}=r;switch(n){case he.LINE_TO:A&&A.lineTo(i[0],i[1]);break;case he.MOVE_TO:A&&A.moveTo(i[0],i[1]);break;case he.CURVE_TO:A&&A.bezierCurveTo(i[0],i[1],i[2],i[3],i[4],i[5]);break;case he.QUAD_TO:A&&A.quadraticCurveTo(i[0],i[1],i[2],i[3]);break;case he.ARC:{var[a,s,o,c,u,d,p,h]=i,m=o>c?o:c,B=o>c?1:o/c,C=o>c?c/o:1;A&&(A.translate(a,s),A.rotate(p),A.scale(B,C),A.arc(0,0,m,u,u+d,!!(1-h)),A.scale(1/B,1/C),A.rotate(-p),A.translate(-a,-s));break}case he.CLOSE_PATH:A&&A.closePath();break}})}renderChildren(A){this.setTextData(A),A.save();var t=this.parent.getStyle("text-decoration").getString(),r=this.getFontSize(),{glyphInfo:n}=this,i=A.fillStyle;t==="underline"&&A.beginPath(),n.forEach((a,s)=>{var{p0:o,p1:c,rotation:u,text:d}=a;A.save(),A.translate(o.x,o.y),A.rotate(u),A.fillStyle&&A.fillText(d,0,0),A.strokeStyle&&A.strokeText(d,0,0),A.restore(),t==="underline"&&(s===0&&A.moveTo(o.x,o.y+r/8),A.lineTo(c.x,c.y+r/5))}),t==="underline"&&(A.lineWidth=r/20,A.strokeStyle=i,A.stroke(),A.closePath()),A.restore()}getLetterSpacingAt(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return this.letterSpacingCache[A]||0}findSegmentToFitChar(A,t,r,n,i,a,s,o,c){var u=a,d=this.measureText(A,o);o===" "&&t==="justify"&&r<n&&(d+=(n-r)/i),c>-1&&(u+=this.getLetterSpacingAt(c));var p=this.textHeight/20,h=this.getEquidistantPointOnPath(u,p,0),m=this.getEquidistantPointOnPath(u+d,p,0),B={p0:h,p1:m},C=h&&m?Math.atan2(m.y-h.y,m.x-h.x):0;if(s){var b=Math.cos(Math.PI/2+C)*s,Q=Math.cos(-C)*s;B.p0=Bu(Bu({},h),{},{x:h.x+b,y:h.y+Q}),B.p1=Bu(Bu({},m),{},{x:m.x+b,y:m.y+Q})}return u+=d,{offset:u,segment:B,rotation:C}}measureText(A,t){var{measuresCache:r}=this,n=t||this.getText();if(r.has(n))return r.get(n);var i=this.measureTargetText(A,n);return r.set(n,i),i}setTextData(A){if(!this.glyphInfo){var t=this.getText(),r=t.split(""),n=t.split(" ").length-1,i=this.parent.getAttribute("dx").split().map(D=>D.getPixels("x")),a=this.parent.getAttribute("dy").getPixels("y"),s=this.parent.getStyle("text-anchor").getString("start"),o=this.getStyle("letter-spacing"),c=this.parent.getStyle("letter-spacing"),u=0;!o.hasValue()||o.getValue()==="inherit"?u=c.getPixels():o.hasValue()&&o.getValue()!=="initial"&&o.getValue()!=="unset"&&(u=o.getPixels());var d=[],p=t.length;this.letterSpacingCache=d;for(var h=0;h<p;h++)d.push(typeof i[h]<"u"?i[h]:u);var m=d.reduce((D,O,z)=>z===0?0:D+O||0,0),B=this.measureText(A),C=Math.max(B+m,0);this.textWidth=B,this.textHeight=this.getFontSize(),this.glyphInfo=[];var b=this.getPathLength(),Q=this.getStyle("startOffset").getNumber(0)*b,L=0;(s==="middle"||s==="center")&&(L=-C/2),(s==="end"||s==="right")&&(L=-C),L+=Q,r.forEach((D,O)=>{var{offset:z,segment:R,rotation:_}=this.findSegmentToFitChar(A,s,C,b,n,L,a,D,O);L=z,!(!R.p0||!R.p1)&&this.glyphInfo.push({text:r[O],p0:R.p0,p1:R.p1,rotation:_})})}}parsePathData(A){if(this.pathLength=-1,!A)return[];var t=[],{pathParser:r}=A;for(r.reset();!r.isEnd();){var{current:n}=r,i=n?n.x:0,a=n?n.y:0,s=r.next(),o=s.type,c=[];switch(s.type){case he.MOVE_TO:this.pathM(r,c);break;case he.LINE_TO:o=this.pathL(r,c);break;case he.HORIZ_LINE_TO:o=this.pathH(r,c);break;case he.VERT_LINE_TO:o=this.pathV(r,c);break;case he.CURVE_TO:this.pathC(r,c);break;case he.SMOOTH_CURVE_TO:o=this.pathS(r,c);break;case he.QUAD_TO:this.pathQ(r,c);break;case he.SMOOTH_QUAD_TO:o=this.pathT(r,c);break;case he.ARC:c=this.pathA(r);break;case he.CLOSE_PATH:Oe.pathZ(r);break}s.type!==he.CLOSE_PATH?t.push({type:o,points:c,start:{x:i,y:a},pathLength:this.calcLength(i,a,o,c)}):t.push({type:he.CLOSE_PATH,points:[],pathLength:0})}return t}pathM(A,t){var{x:r,y:n}=Oe.pathM(A).point;t.push(r,n)}pathL(A,t){var{x:r,y:n}=Oe.pathL(A).point;return t.push(r,n),he.LINE_TO}pathH(A,t){var{x:r,y:n}=Oe.pathH(A).point;return t.push(r,n),he.LINE_TO}pathV(A,t){var{x:r,y:n}=Oe.pathV(A).point;return t.push(r,n),he.LINE_TO}pathC(A,t){var{point:r,controlPoint:n,currentPoint:i}=Oe.pathC(A);t.push(r.x,r.y,n.x,n.y,i.x,i.y)}pathS(A,t){var{point:r,controlPoint:n,currentPoint:i}=Oe.pathS(A);return t.push(r.x,r.y,n.x,n.y,i.x,i.y),he.CURVE_TO}pathQ(A,t){var{controlPoint:r,currentPoint:n}=Oe.pathQ(A);t.push(r.x,r.y,n.x,n.y)}pathT(A,t){var{controlPoint:r,currentPoint:n}=Oe.pathT(A);return t.push(r.x,r.y,n.x,n.y),he.QUAD_TO}pathA(A){var{rX:t,rY:r,sweepFlag:n,xAxisRotation:i,centp:a,a1:s,ad:o}=Oe.pathA(A);return n===0&&o>0&&(o-=2*Math.PI),n===1&&o<0&&(o+=2*Math.PI),[a.x,a.y,t,r,s,o,i,n]}calcLength(A,t,r,n){var i=0,a=null,s=null,o=0;switch(r){case he.LINE_TO:return this.getLineLength(A,t,n[0],n[1]);case he.CURVE_TO:for(i=0,a=this.getPointOnCubicBezier(0,A,t,n[0],n[1],n[2],n[3],n[4],n[5]),o=.01;o<=1;o+=.01)s=this.getPointOnCubicBezier(o,A,t,n[0],n[1],n[2],n[3],n[4],n[5]),i+=this.getLineLength(a.x,a.y,s.x,s.y),a=s;return i;case he.QUAD_TO:for(i=0,a=this.getPointOnQuadraticBezier(0,A,t,n[0],n[1],n[2],n[3]),o=.01;o<=1;o+=.01)s=this.getPointOnQuadraticBezier(o,A,t,n[0],n[1],n[2],n[3]),i+=this.getLineLength(a.x,a.y,s.x,s.y),a=s;return i;case he.ARC:{i=0;var c=n[4],u=n[5],d=n[4]+u,p=Math.PI/180;if(Math.abs(c-d)<p&&(p=Math.abs(c-d)),a=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],c,0),u<0)for(o=c-p;o>d;o-=p)s=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],o,0),i+=this.getLineLength(a.x,a.y,s.x,s.y),a=s;else for(o=c+p;o<d;o+=p)s=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],o,0),i+=this.getLineLength(a.x,a.y,s.x,s.y),a=s;return s=this.getPointOnEllipticalArc(n[0],n[1],n[2],n[3],d,0),i+=this.getLineLength(a.x,a.y,s.x,s.y),i}}return 0}getPointOnLine(A,t,r,n,i){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:t,s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:r,o=(i-r)/(n-t+oa),c=Math.sqrt(A*A/(1+o*o));n<t&&(c*=-1);var u=o*c,d=null;if(n===t)d={x:a,y:s+u};else if((s-r)/(a-t+oa)===o)d={x:a+c,y:s+u};else{var p=0,h=0,m=this.getLineLength(t,r,n,i);if(m<oa)return null;var B=(a-t)*(n-t)+(s-r)*(i-r);B/=m*m,p=t+B*(n-t),h=r+B*(i-r);var C=this.getLineLength(a,s,p,h),b=Math.sqrt(A*A-C*C);c=Math.sqrt(b*b/(1+o*o)),n<t&&(c*=-1),u=o*c,d={x:p+c,y:h+u}}return d}getPointOnPath(A){var t=this.getPathLength(),r=0,n=null;if(A<-5e-5||A-5e-5>t)return null;var{dataArray:i}=this;for(var a of i){if(a&&(a.pathLength<5e-5||r+a.pathLength+5e-5<A)){r+=a.pathLength;continue}var s=A-r,o=0;switch(a.type){case he.LINE_TO:n=this.getPointOnLine(s,a.start.x,a.start.y,a.points[0],a.points[1],a.start.x,a.start.y);break;case he.ARC:{var c=a.points[4],u=a.points[5],d=a.points[4]+u;if(o=c+s/a.pathLength*u,u<0&&o<d||u>=0&&o>d)break;n=this.getPointOnEllipticalArc(a.points[0],a.points[1],a.points[2],a.points[3],o,a.points[6]);break}case he.CURVE_TO:o=s/a.pathLength,o>1&&(o=1),n=this.getPointOnCubicBezier(o,a.start.x,a.start.y,a.points[0],a.points[1],a.points[2],a.points[3],a.points[4],a.points[5]);break;case he.QUAD_TO:o=s/a.pathLength,o>1&&(o=1),n=this.getPointOnQuadraticBezier(o,a.start.x,a.start.y,a.points[0],a.points[1],a.points[2],a.points[3]);break}if(n)return n;break}return null}getLineLength(A,t,r,n){return Math.sqrt((r-A)*(r-A)+(n-t)*(n-t))}getPathLength(){return this.pathLength===-1&&(this.pathLength=this.dataArray.reduce((A,t)=>t.pathLength>0?A+t.pathLength:A,0)),this.pathLength}getPointOnCubicBezier(A,t,r,n,i,a,s,o,c){var u=o*tp(A)+a*rp(A)+n*np(A)+t*ip(A),d=c*tp(A)+s*rp(A)+i*np(A)+r*ip(A);return{x:u,y:d}}getPointOnQuadraticBezier(A,t,r,n,i,a,s){var o=a*ap(A)+n*sp(A)+t*op(A),c=s*ap(A)+i*sp(A)+r*op(A);return{x:o,y:c}}getPointOnEllipticalArc(A,t,r,n,i,a){var s=Math.cos(a),o=Math.sin(a),c={x:r*Math.cos(i),y:n*Math.sin(i)};return{x:A+(c.x*s-c.y*o),y:t+(c.x*o+c.y*s)}}buildEquidistantCache(A,t){var r=this.getPathLength(),n=t||.25,i=A||r/100;if(!this.equidistantCache||this.equidistantCache.step!==i||this.equidistantCache.precision!==n){this.equidistantCache={step:i,precision:n,points:[]};for(var a=0,s=0;s<=r;s+=n){var o=this.getPointOnPath(s),c=this.getPointOnPath(s+n);!o||!c||(a+=this.getLineLength(o.x,o.y,c.x,c.y),a>=i&&(this.equidistantCache.points.push({x:o.x,y:o.y,distance:s}),a-=i))}}}getEquidistantPointOnPath(A,t,r){if(this.buildEquidistantCache(t,r),A<0||A-this.getPathLength()>5e-5)return null;var n=Math.round(A/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[n]||null}}var G_=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i;class Yy extends Ci{constructor(A,t,r){super(A,t,r),this.type="image",this.loaded=!1;var n=this.getHrefAttribute().getString();if(n){var i=n.endsWith(".svg")||/^\s*data:image\/svg\+xml/i.test(n);A.images.push(this),i?this.loadSvg(n):this.loadImage(n),this.isSvg=i}}loadImage(A){var t=this;return Kn(function*(){try{var r=yield t.document.createImage(A);t.image=r}catch(n){console.error('Error while loading image "'.concat(A,'":'),n)}t.loaded=!0})()}loadSvg(A){var t=this;return Kn(function*(){var r=G_.exec(A);if(r){var n=r[5];r[4]==="base64"?t.image=atob(n):t.image=decodeURIComponent(n)}else try{var i=yield t.document.fetch(A),a=yield i.text();t.image=a}catch(s){console.error('Error while loading image "'.concat(A,'":'),s)}t.loaded=!0})()}renderChildren(A){var{document:t,image:r,loaded:n}=this,i=this.getAttribute("x").getPixels("x"),a=this.getAttribute("y").getPixels("y"),s=this.getStyle("width").getPixels("x"),o=this.getStyle("height").getPixels("y");if(!(!n||!r||!s||!o)){if(A.save(),A.translate(i,a),this.isSvg){var c=t.canvg.forkString(A,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:0,offsetY:0,scaleWidth:s,scaleHeight:o});c.document.documentElement.parent=this,c.render()}else{var u=this.image;t.setViewBox({ctx:A,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:s,desiredWidth:u.width,height:o,desiredHeight:u.height}),this.loaded&&(typeof u.complete>"u"||u.complete)&&A.drawImage(u,0,0)}A.restore()}}getBoundingBox(){var A=this.getAttribute("x").getPixels("x"),t=this.getAttribute("y").getPixels("y"),r=this.getStyle("width").getPixels("x"),n=this.getStyle("height").getPixels("y");return new Rr(A,t,A+r,t+n)}}class Jy extends Ci{constructor(){super(...arguments),this.type="symbol"}render(A){}}class Zy{constructor(A){this.document=A,this.loaded=!1,A.fonts.push(this)}load(A,t){var r=this;return Kn(function*(){try{var{document:n}=r,i=yield n.canvg.parser.load(t),a=i.getElementsByTagName("font");Array.from(a).forEach(s=>{var o=n.createElement(s);n.definitions[A]=o})}catch(s){console.error('Error while loading font "'.concat(t,'":'),s)}r.loaded=!0})()}}class gp extends Ge{constructor(A,t,r){super(A,t,r),this.type="style";var n=aa(Array.from(t.childNodes).map(a=>a.textContent).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")),i=n.split("}");i.forEach(a=>{var s=a.trim();if(s){var o=s.split("{"),c=o[0].split(","),u=o[1].split(";");c.forEach(d=>{var p=d.trim();if(p){var h=A.styles[p]||{};if(u.forEach(C=>{var b=C.indexOf(":"),Q=C.substr(0,b).trim(),L=C.substr(b+1,C.length-b).trim();Q&&L&&(h[Q]=new YA(A,Q,L))}),A.styles[p]=h,A.stylesSpecificity[p]=wy(p),p==="@font-face"){var m=h["font-family"].getString().replace(/"|'/g,""),B=h.src.getString().split(",");B.forEach(C=>{if(C.indexOf('format("svg")')>0){var b=Zg(C);b&&new Zy(A).load(m,b)}})}}})}})}}gp.parseExternalUrl=Zg;class Aw extends Ci{constructor(){super(...arguments),this.type="use"}setContext(A){super.setContext(A);var t=this.getAttribute("x"),r=this.getAttribute("y");t.hasValue()&&A.translate(t.getPixels("x"),0),r.hasValue()&&A.translate(0,r.getPixels("y"))}path(A){var{element:t}=this;t&&t.path(A)}renderChildren(A){var{document:t,element:r}=this;if(r){var n=r;if(r.type==="symbol"&&(n=new cs(t,null),n.attributes.viewBox=new YA(t,"viewBox",r.getAttribute("viewBox").getString()),n.attributes.preserveAspectRatio=new YA(t,"preserveAspectRatio",r.getAttribute("preserveAspectRatio").getString()),n.attributes.overflow=new YA(t,"overflow",r.getAttribute("overflow").getString()),n.children=r.children,r.styles.opacity=new YA(t,"opacity",this.calculateOpacity())),n.type==="svg"){var i=this.getStyle("width",!1,!0),a=this.getStyle("height",!1,!0);i.hasValue()&&(n.attributes.width=new YA(t,"width",i.getString())),a.hasValue()&&(n.attributes.height=new YA(t,"height",a.getString()))}var s=n.parent;n.parent=this,n.render(A),n.parent=s}}getBoundingBox(A){var{element:t}=this;return t?t.getBoundingBox(A):null}elementTransform(){var{document:A,element:t}=this;return bi.fromElement(A,t)}get element(){return this.cachedElement||(this.cachedElement=this.getHrefAttribute().getDefinition()),this.cachedElement}}function mu(e,A,t,r,n,i){return e[t*r*4+A*4+i]}function yu(e,A,t,r,n,i,a){e[t*r*4+A*4+i]=a}function Ft(e,A,t){var r=e[A];return r*t}function Gn(e,A,t,r){return A+Math.cos(e)*t+Math.sin(e)*r}class pp extends Ge{constructor(A,t,r){super(A,t,r),this.type="feColorMatrix";var n=vr(this.getAttribute("values").getString());switch(this.getAttribute("type").getString("matrix")){case"saturate":{var i=n[0];n=[.213+.787*i,.715-.715*i,.072-.072*i,0,0,.213-.213*i,.715+.285*i,.072-.072*i,0,0,.213-.213*i,.715-.715*i,.072+.928*i,0,0,0,0,0,1,0,0,0,0,0,1];break}case"hueRotate":{var a=n[0]*Math.PI/180;n=[Gn(a,.213,.787,-.213),Gn(a,.715,-.715,-.715),Gn(a,.072,-.072,.928),0,0,Gn(a,.213,-.213,.143),Gn(a,.715,.285,.14),Gn(a,.072,-.072,-.283),0,0,Gn(a,.213,-.213,-.787),Gn(a,.715,-.715,.715),Gn(a,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break}case"luminanceToAlpha":n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2125,.7154,.0721,0,0,0,0,0,0,1];break}this.matrix=n,this.includeOpacity=this.getAttribute("includeOpacity").hasValue()}apply(A,t,r,n,i){for(var{includeOpacity:a,matrix:s}=this,o=A.getImageData(0,0,n,i),c=0;c<i;c++)for(var u=0;u<n;u++){var d=mu(o.data,u,c,n,i,0),p=mu(o.data,u,c,n,i,1),h=mu(o.data,u,c,n,i,2),m=mu(o.data,u,c,n,i,3),B=Ft(s,0,d)+Ft(s,1,p)+Ft(s,2,h)+Ft(s,3,m)+Ft(s,4,1),C=Ft(s,5,d)+Ft(s,6,p)+Ft(s,7,h)+Ft(s,8,m)+Ft(s,9,1),b=Ft(s,10,d)+Ft(s,11,p)+Ft(s,12,h)+Ft(s,13,m)+Ft(s,14,1),Q=Ft(s,15,d)+Ft(s,16,p)+Ft(s,17,h)+Ft(s,18,m)+Ft(s,19,1);a&&(B=0,C=0,b=0,Q*=m/255),yu(o.data,u,c,n,i,0,B),yu(o.data,u,c,n,i,1,C),yu(o.data,u,c,n,i,2,b),yu(o.data,u,c,n,i,3,Q)}A.clearRect(0,0,n,i),A.putImageData(o,0,0)}}class No extends Ge{constructor(){super(...arguments),this.type="mask"}apply(A,t){var{document:r}=this,n=this.getAttribute("x").getPixels("x"),i=this.getAttribute("y").getPixels("y"),a=this.getStyle("width").getPixels("x"),s=this.getStyle("height").getPixels("y");if(!a&&!s){var o=new Rr;this.children.forEach(m=>{o.addBoundingBox(m.getBoundingBox(A))}),n=Math.floor(o.x1),i=Math.floor(o.y1),a=Math.floor(o.width),s=Math.floor(o.height)}var c=this.removeStyles(t,No.ignoreStyles),u=r.createCanvas(n+a,i+s),d=u.getContext("2d");r.screen.setDefaults(d),this.renderChildren(d),new pp(r,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(d,0,0,n+a,i+s);var p=r.createCanvas(n+a,i+s),h=p.getContext("2d");r.screen.setDefaults(h),t.render(h),h.globalCompositeOperation="destination-in",h.fillStyle=d.createPattern(u,"no-repeat"),h.fillRect(0,0,n+a,i+s),A.fillStyle=h.createPattern(p,"no-repeat"),A.fillRect(0,0,n+a,i+s),this.restoreStyles(t,c)}render(A){}}No.ignoreStyles=["mask","transform","clip-path"];var ew=()=>{};class tw extends Ge{constructor(){super(...arguments),this.type="clipPath"}apply(A){var{document:t}=this,r=Reflect.getPrototypeOf(A),{beginPath:n,closePath:i}=A;r&&(r.beginPath=ew,r.closePath=ew),Reflect.apply(n,A,[]),this.children.forEach(a=>{if(!(typeof a.path>"u")){var s=typeof a.elementTransform<"u"?a.elementTransform():null;s||(s=bi.fromElement(t,a)),s&&s.apply(A),a.path(A),r&&(r.closePath=i),s&&s.unapply(A)}}),Reflect.apply(i,A,[]),A.clip(),r&&(r.beginPath=n,r.closePath=i)}render(A){}}class To extends Ge{constructor(){super(...arguments),this.type="filter"}apply(A,t){var{document:r,children:n}=this,i=t.getBoundingBox(A);if(i){var a=0,s=0;n.forEach(b=>{var Q=b.extraFilterDistance||0;a=Math.max(a,Q),s=Math.max(s,Q)});var o=Math.floor(i.width),c=Math.floor(i.height),u=o+2*a,d=c+2*s;if(!(u<1||d<1)){var p=Math.floor(i.x),h=Math.floor(i.y),m=this.removeStyles(t,To.ignoreStyles),B=r.createCanvas(u,d),C=B.getContext("2d");r.screen.setDefaults(C),C.translate(-p+a,-h+s),t.render(C),n.forEach(b=>{typeof b.apply=="function"&&b.apply(C,0,0,u,d)}),A.drawImage(B,0,0,u,d,p-a,h-s,u,d),this.restoreStyles(t,m)}}}render(A){}}To.ignoreStyles=["filter","transform","clip-path"];class rw extends Ge{constructor(A,t,r){super(A,t,r),this.type="feDropShadow",this.addStylesFromStyleDefinition()}apply(A,t,r,n,i){}}class nw extends Ge{constructor(){super(...arguments),this.type="feMorphology"}apply(A,t,r,n,i){}}class iw extends Ge{constructor(){super(...arguments),this.type="feComposite"}apply(A,t,r,n,i){}}class aw extends Ge{constructor(A,t,r){super(A,t,r),this.type="feGaussianBlur",this.blurRadius=Math.floor(this.getAttribute("stdDeviation").getNumber()),this.extraFilterDistance=this.blurRadius}apply(A,t,r,n,i){var{document:a,blurRadius:s}=this,o=a.window?a.window.document.body:null,c=A.canvas;c.id=a.getUniqueId(),o&&(c.style.display="none",o.appendChild(c)),x_(c,t,r,n,i,s),o&&o.removeChild(c)}}class sw extends Ge{constructor(){super(...arguments),this.type="title"}}class ow extends Ge{constructor(){super(...arguments),this.type="desc"}}var $_={svg:cs,rect:fp,circle:Ny,ellipse:Ty,line:Oy,polyline:hp,polygon:Hy,path:Oe,pattern:_y,marker:Py,defs:ky,linearGradient:Dy,radialGradient:My,stop:Ry,animate:vu,animateColor:Ky,animateTransform:Vy,font:jy,"font-face":zy,"missing-glyph":Gy,glyph:up,text:zn,tspan:Lo,tref:$y,a:Wy,textPath:Xy,image:Yy,g:pu,symbol:Jy,style:gp,use:Aw,mask:No,clipPath:tw,filter:To,feDropShadow:rw,feMorphology:nw,feComposite:iw,feColorMatrix:pp,feGaussianBlur:aw,title:sw,desc:ow};function lw(e,A){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);A&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,r)}return t}function W_(e){for(var A=1;A<arguments.length;A++){var t=arguments[A]!=null?arguments[A]:{};A%2?lw(Object(t),!0).forEach(function(r){Dg(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):lw(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}function q_(e,A){var t=document.createElement("canvas");return t.width=e,t.height=A,t}function X_(e){return vp.apply(this,arguments)}function vp(){return vp=Kn(function*(e){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t=document.createElement("img");return A&&(t.crossOrigin="Anonymous"),new Promise((r,n)=>{t.onload=()=>{r(t)},t.onerror=(i,a,s,o,c)=>{n(c)},t.src=e})}),vp.apply(this,arguments)}class $n{constructor(A){var{rootEmSize:t=12,emSize:r=12,createCanvas:n=$n.createCanvas,createImage:i=$n.createImage,anonymousCrossOrigin:a}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.canvg=A,this.definitions=Object.create(null),this.styles=Object.create(null),this.stylesSpecificity=Object.create(null),this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=A.screen,this.rootEmSize=t,this.emSize=r,this.createCanvas=n,this.createImage=this.bindCreateImage(i,a),this.screen.wait(this.isImagesLoaded.bind(this)),this.screen.wait(this.isFontsLoaded.bind(this))}bindCreateImage(A,t){return typeof t=="boolean"?(r,n)=>A(r,typeof n=="boolean"?n:t):A}get window(){return this.screen.window}get fetch(){return this.screen.fetch}get ctx(){return this.screen.ctx}get emSize(){var{emSizeStack:A}=this;return A[A.length-1]}set emSize(A){var{emSizeStack:t}=this;t.push(A)}popEmSize(){var{emSizeStack:A}=this;A.pop()}getUniqueId(){return"canvg".concat(++this.uniqueId)}isImagesLoaded(){return this.images.every(A=>A.loaded)}isFontsLoaded(){return this.fonts.every(A=>A.loaded)}createDocumentElement(A){var t=this.createElement(A.documentElement);return t.root=!0,t.addStylesFromStyleDefinition(),this.documentElement=t,t}createElement(A){var t=A.nodeName.replace(/^[^:]+:/,""),r=$n.elementTypes[t];return typeof r<"u"?new r(this,A):new Ly(this,A)}createTextNode(A){return new z_(this,A)}setViewBox(A){this.screen.setViewBox(W_({document:this},A))}}$n.createCanvas=q_,$n.createImage=X_,$n.elementTypes=$_;function cw(e,A){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);A&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,r)}return t}function la(e){for(var A=1;A<arguments.length;A++){var t=arguments[A]!=null?arguments[A]:{};A%2?cw(Object(t),!0).forEach(function(r){Dg(e,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):cw(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))})}return e}class ca{constructor(A,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.parser=new gu(r),this.screen=new Io(A,r),this.options=r;var n=new $n(this,r),i=n.createDocumentElement(t);this.document=n,this.documentElement=i}static from(A,t){var r=arguments;return Kn(function*(){var n=r.length>2&&r[2]!==void 0?r[2]:{},i=new gu(n),a=yield i.parse(t);return new ca(A,a,n)})()}static fromString(A,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=new gu(r),i=n.parseFromString(t);return new ca(A,i,r)}fork(A,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return ca.from(A,t,la(la({},this.options),r))}forkString(A,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return ca.fromString(A,t,la(la({},this.options),r))}ready(){return this.screen.ready()}isReady(){return this.screen.isReady()}render(){var A=arguments,t=this;return Kn(function*(){var r=A.length>0&&A[0]!==void 0?A[0]:{};t.start(la({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},r)),yield t.ready(),t.stop()})()}start(){var A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{documentElement:t,screen:r,options:n}=this;r.start(t,la(la({enableRedraw:!0},n),A))}stop(){this.screen.stop()}resize(A){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:A,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;this.documentElement.resize(A,t,r)}}const Y_=Object.freeze(Object.defineProperty({__proto__:null,AElement:Wy,AnimateColorElement:Ky,AnimateElement:vu,AnimateTransformElement:Vy,BoundingBox:Rr,CB1:tp,CB2:rp,CB3:np,CB4:ip,Canvg:ca,CircleElement:Ny,ClipPathElement:tw,DefsElement:ky,DescElement:ow,Document:$n,Element:Ge,EllipseElement:Ty,FeColorMatrixElement:pp,FeCompositeElement:iw,FeDropShadowElement:rw,FeGaussianBlurElement:aw,FeMorphologyElement:nw,FilterElement:To,Font:er,FontElement:jy,FontFaceElement:zy,GElement:pu,GlyphElement:up,GradientElement:dp,ImageElement:Yy,LineElement:Oy,LinearGradientElement:Dy,MarkerElement:Py,MaskElement:No,Matrix:lp,MissingGlyphElement:Gy,Mouse:Cy,PSEUDO_ZERO:oa,Parser:gu,PathElement:Oe,PathParser:he,PatternElement:_y,Point:it,PolygonElement:Hy,PolylineElement:hp,Property:YA,QB1:ap,QB2:sp,QB3:op,RadialGradientElement:My,RectElement:fp,RenderedElement:Ci,Rotate:Uy,SVGElement:cs,SVGFontLoader:Zy,Scale:Ey,Screen:Io,Skew:cp,SkewX:Sy,SkewY:Iy,StopElement:Ry,StyleElement:gp,SymbolElement:Jy,TRefElement:$y,TSpanElement:Lo,TextElement:zn,TextPathElement:Xy,TitleElement:sw,Transform:bi,Translate:Qy,UnknownElement:Ly,UseElement:Aw,ViewPort:by,compressSpaces:aa,default:ca,getSelectorSpecificity:wy,normalizeAttributeName:my,normalizeColor:yy,parseExternalUrl:Zg,presets:E_,toNumbers:vr,trimLeft:vy,trimRight:By,vectorMagnitude:Ap,vectorsAngle:ep,vectorsRatio:du},Symbol.toStringTag,{value:"Module"}));bt.ALL_PRESETS=n0,bt.ElementPropertyEditor=S0,bt.HORIZONTAL_PRESETS=r0,bt.IdCardCanvas=E0,bt.IdCardDesignerModal=I0,bt.IdCardManager=BU,bt.IdCardPreview=L0,bt.PresetsSidebar=g0,bt.VERTICAL_PRESETS=t0,bt.generateIdCardsPdf=bv,bt.getDefaultPreset=Os,bt.getPresetsByOrientation=cf,Object.defineProperty(bt,Symbol.toStringTag,{value:"Module"})});
|